]> git.proxmox.com Git - mirror_spl-debian.git/blame - configure
Correctly handle division on 32-bit RHEL5 systems by returning dividend.
[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
86933a6e 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 LICENSE SPL_CONFIG LINUX LINUX_OBJ LINUX_VERSION LINUX_SYMBOLS KERNELMAKE_PARAMS KERNELCPPFLAGS CONFIG_USER_TRUE CONFIG_USER_FALSE CONFIG_KERNEL_TRUE CONFIG_KERNEL_FALSE 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)
055ffd98
BB
1037 --enable-debug Enable generic debug support [default=no]
1038 --enable-debug-kmem Enable basic kmem accounting [default=yes]
1039 --enable-debug-kmem-tracking
1040 Enable detailed kmem tracking [default=no]
5e9b5d83
BB
1041 --enable-atomic-spinlocks
1042 Atomic types use spinlocks [default=no]
bf9f3bac 1043
1044Optional Packages:
1045 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1046 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1047 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1048 --with-pic try to use only PIC/non-PIC objects [default=use
1049 both]
1050 --with-tags[=TAGS]
1051 include additional configurations [automatic]
c1541dfe 1052 --with-config=CONFIG Config file 'kernel|user|all|srpm'
bf9f3bac 1053 --with-linux=PATH Path to kernel source
1054 --with-linux-obj=PATH Path to kernel build objects
1055
1056Some influential environment variables:
1057 CC C compiler command
1058 CFLAGS C compiler flags
1059 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1060 nonstandard directory <lib dir>
1061 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1062 headers in a nonstandard directory <include dir>
1063 CPP C preprocessor
1064 CXX C++ compiler command
1065 CXXFLAGS C++ compiler flags
1066 CXXCPP C++ preprocessor
1067 F77 Fortran 77 compiler command
1068 FFLAGS Fortran 77 compiler flags
1069
1070Use these variables to override the choices made by `configure' or to help
1071it to find libraries and programs with nonstandard names/locations.
1072
1073_ACEOF
1074fi
1075
1076if test "$ac_init_help" = "recursive"; then
1077 # If there are subdirs, report their specific --help.
1078 ac_popdir=`pwd`
1079 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1080 test -d $ac_dir || continue
1081 ac_builddir=.
1082
1083if test "$ac_dir" != .; then
1084 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1085 # A "../" for each directory in $ac_dir_suffix.
1086 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1087else
1088 ac_dir_suffix= ac_top_builddir=
1089fi
1090
1091case $srcdir in
1092 .) # No --srcdir option. We are building in place.
1093 ac_srcdir=.
1094 if test -z "$ac_top_builddir"; then
1095 ac_top_srcdir=.
1096 else
1097 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1098 fi ;;
1099 [\\/]* | ?:[\\/]* ) # Absolute path.
1100 ac_srcdir=$srcdir$ac_dir_suffix;
1101 ac_top_srcdir=$srcdir ;;
1102 *) # Relative path.
1103 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1104 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1105esac
1106
1107# Do not use `cd foo && pwd` to compute absolute paths, because
1108# the directories may not exist.
1109case `pwd` in
1110.) ac_abs_builddir="$ac_dir";;
1111*)
1112 case "$ac_dir" in
1113 .) ac_abs_builddir=`pwd`;;
1114 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1115 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1116 esac;;
1117esac
1118case $ac_abs_builddir in
1119.) ac_abs_top_builddir=${ac_top_builddir}.;;
1120*)
1121 case ${ac_top_builddir}. in
1122 .) ac_abs_top_builddir=$ac_abs_builddir;;
1123 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1124 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1125 esac;;
1126esac
1127case $ac_abs_builddir in
1128.) ac_abs_srcdir=$ac_srcdir;;
1129*)
1130 case $ac_srcdir in
1131 .) ac_abs_srcdir=$ac_abs_builddir;;
1132 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1133 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1134 esac;;
1135esac
1136case $ac_abs_builddir in
1137.) ac_abs_top_srcdir=$ac_top_srcdir;;
1138*)
1139 case $ac_top_srcdir in
1140 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1141 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1142 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1143 esac;;
1144esac
1145
1146 cd $ac_dir
1147 # Check for guested configure; otherwise get Cygnus style configure.
1148 if test -f $ac_srcdir/configure.gnu; then
1149 echo
1150 $SHELL $ac_srcdir/configure.gnu --help=recursive
1151 elif test -f $ac_srcdir/configure; then
1152 echo
1153 $SHELL $ac_srcdir/configure --help=recursive
1154 elif test -f $ac_srcdir/configure.ac ||
1155 test -f $ac_srcdir/configure.in; then
1156 echo
1157 $ac_configure --help
1158 else
1159 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1160 fi
1161 cd $ac_popdir
1162 done
1163fi
1164
1165test -n "$ac_init_help" && exit 0
1166if $ac_init_version; then
1167 cat <<\_ACEOF
1168
1169Copyright (C) 2003 Free Software Foundation, Inc.
1170This configure script is free software; the Free Software Foundation
1171gives unlimited permission to copy, distribute and modify it.
1172_ACEOF
1173 exit 0
1174fi
1175exec 5>config.log
1176cat >&5 <<_ACEOF
1177This file contains any messages produced by compilers while
1178running configure, to aid debugging if configure makes a mistake.
1179
1180It was created by $as_me, which was
1181generated by GNU Autoconf 2.59. Invocation command line was
1182
1183 $ $0 $@
1184
1185_ACEOF
1186{
1187cat <<_ASUNAME
1188## --------- ##
1189## Platform. ##
1190## --------- ##
1191
1192hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1193uname -m = `(uname -m) 2>/dev/null || echo unknown`
1194uname -r = `(uname -r) 2>/dev/null || echo unknown`
1195uname -s = `(uname -s) 2>/dev/null || echo unknown`
1196uname -v = `(uname -v) 2>/dev/null || echo unknown`
1197
1198/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1199/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1200
1201/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1202/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1203/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1204hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1205/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1206/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1207/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1208
1209_ASUNAME
1210
1211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1212for as_dir in $PATH
1213do
1214 IFS=$as_save_IFS
1215 test -z "$as_dir" && as_dir=.
1216 echo "PATH: $as_dir"
1217done
1218
1219} >&5
1220
1221cat >&5 <<_ACEOF
1222
1223
1224## ----------- ##
1225## Core tests. ##
1226## ----------- ##
1227
1228_ACEOF
1229
1230
1231# Keep a trace of the command line.
1232# Strip out --no-create and --no-recursion so they do not pile up.
1233# Strip out --silent because we don't want to record it for future runs.
1234# Also quote any args containing shell meta-characters.
1235# Make two passes to allow for proper duplicate-argument suppression.
1236ac_configure_args=
1237ac_configure_args0=
1238ac_configure_args1=
1239ac_sep=
1240ac_must_keep_next=false
1241for ac_pass in 1 2
1242do
1243 for ac_arg
1244 do
1245 case $ac_arg in
1246 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1247 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1248 | -silent | --silent | --silen | --sile | --sil)
1249 continue ;;
1250 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1251 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1252 esac
1253 case $ac_pass in
1254 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1255 2)
1256 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1257 if test $ac_must_keep_next = true; then
1258 ac_must_keep_next=false # Got value, back to normal.
1259 else
1260 case $ac_arg in
1261 *=* | --config-cache | -C | -disable-* | --disable-* \
1262 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1263 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1264 | -with-* | --with-* | -without-* | --without-* | --x)
1265 case "$ac_configure_args0 " in
1266 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1267 esac
1268 ;;
1269 -* ) ac_must_keep_next=true ;;
1270 esac
1271 fi
1272 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1273 # Get rid of the leading space.
1274 ac_sep=" "
1275 ;;
1276 esac
1277 done
1278done
1279$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1280$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1281
1282# When interrupted or exit'd, cleanup temporary files, and complete
1283# config.log. We remove comments because anyway the quotes in there
1284# would cause problems or look ugly.
1285# WARNING: Be sure not to use single quotes in there, as some shells,
1286# such as our DU 5.0 friend, will then `close' the trap.
1287trap 'exit_status=$?
1288 # Save into config.log some information that might help in debugging.
1289 {
1290 echo
1291
1292 cat <<\_ASBOX
1293## ---------------- ##
1294## Cache variables. ##
1295## ---------------- ##
1296_ASBOX
1297 echo
1298 # The following way of writing the cache mishandles newlines in values,
1299{
1300 (set) 2>&1 |
1301 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1302 *ac_space=\ *)
1303 sed -n \
1304 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1305 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1306 ;;
1307 *)
1308 sed -n \
1309 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1310 ;;
1311 esac;
1312}
1313 echo
1314
1315 cat <<\_ASBOX
1316## ----------------- ##
1317## Output variables. ##
1318## ----------------- ##
1319_ASBOX
1320 echo
1321 for ac_var in $ac_subst_vars
1322 do
1323 eval ac_val=$`echo $ac_var`
1324 echo "$ac_var='"'"'$ac_val'"'"'"
1325 done | sort
1326 echo
1327
1328 if test -n "$ac_subst_files"; then
1329 cat <<\_ASBOX
1330## ------------- ##
1331## Output files. ##
1332## ------------- ##
1333_ASBOX
1334 echo
1335 for ac_var in $ac_subst_files
1336 do
1337 eval ac_val=$`echo $ac_var`
1338 echo "$ac_var='"'"'$ac_val'"'"'"
1339 done | sort
1340 echo
1341 fi
1342
1343 if test -s confdefs.h; then
1344 cat <<\_ASBOX
1345## ----------- ##
1346## confdefs.h. ##
1347## ----------- ##
1348_ASBOX
1349 echo
1350 sed "/^$/d" confdefs.h | sort
1351 echo
1352 fi
1353 test "$ac_signal" != 0 &&
1354 echo "$as_me: caught signal $ac_signal"
1355 echo "$as_me: exit $exit_status"
1356 } >&5
1357 rm -f core *.core &&
1358 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1359 exit $exit_status
1360 ' 0
1361for ac_signal in 1 2 13 15; do
1362 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1363done
1364ac_signal=0
1365
1366# confdefs.h avoids OS command line length limits that DEFS can exceed.
1367rm -rf conftest* confdefs.h
1368# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1369echo >confdefs.h
1370
1371# Predefined preprocessor variables.
1372
1373cat >>confdefs.h <<_ACEOF
1374#define PACKAGE_NAME "$PACKAGE_NAME"
1375_ACEOF
1376
1377
1378cat >>confdefs.h <<_ACEOF
1379#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1380_ACEOF
1381
1382
1383cat >>confdefs.h <<_ACEOF
1384#define PACKAGE_VERSION "$PACKAGE_VERSION"
1385_ACEOF
1386
1387
1388cat >>confdefs.h <<_ACEOF
1389#define PACKAGE_STRING "$PACKAGE_STRING"
1390_ACEOF
1391
1392
1393cat >>confdefs.h <<_ACEOF
1394#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1395_ACEOF
1396
1397
1398# Let the site file select an alternate cache file if it wants to.
1399# Prefer explicitly selected file to automatically selected ones.
1400if test -z "$CONFIG_SITE"; then
1401 if test "x$prefix" != xNONE; then
1402 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1403 else
1404 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1405 fi
1406fi
1407for ac_site_file in $CONFIG_SITE; do
1408 if test -r "$ac_site_file"; then
1409 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1410echo "$as_me: loading site script $ac_site_file" >&6;}
1411 sed 's/^/| /' "$ac_site_file" >&5
1412 . "$ac_site_file"
1413 fi
1414done
1415
1416if test -r "$cache_file"; then
1417 # Some versions of bash will fail to source /dev/null (special
1418 # files actually), so we avoid doing that.
1419 if test -f "$cache_file"; then
1420 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1421echo "$as_me: loading cache $cache_file" >&6;}
1422 case $cache_file in
1423 [\\/]* | ?:[\\/]* ) . $cache_file;;
1424 *) . ./$cache_file;;
1425 esac
1426 fi
1427else
1428 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1429echo "$as_me: creating cache $cache_file" >&6;}
1430 >$cache_file
1431fi
1432
1433# Check that the precious variables saved in the cache have kept the same
1434# value.
1435ac_cache_corrupted=false
1436for ac_var in `(set) 2>&1 |
1437 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1438 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1439 eval ac_new_set=\$ac_env_${ac_var}_set
1440 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1441 eval ac_new_val="\$ac_env_${ac_var}_value"
1442 case $ac_old_set,$ac_new_set in
1443 set,)
1444 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1445echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1446 ac_cache_corrupted=: ;;
1447 ,set)
1448 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1449echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1450 ac_cache_corrupted=: ;;
1451 ,);;
1452 *)
1453 if test "x$ac_old_val" != "x$ac_new_val"; then
1454 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1455echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1456 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1457echo "$as_me: former value: $ac_old_val" >&2;}
1458 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1459echo "$as_me: current value: $ac_new_val" >&2;}
1460 ac_cache_corrupted=:
1461 fi;;
1462 esac
1463 # Pass precious variables to config.status.
1464 if test "$ac_new_set" = set; then
1465 case $ac_new_val in
1466 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1467 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1468 *) ac_arg=$ac_var=$ac_new_val ;;
1469 esac
1470 case " $ac_configure_args " in
1471 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1472 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1473 esac
1474 fi
1475done
1476if $ac_cache_corrupted; then
1477 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1478echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1479 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1480echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1481 { (exit 1); exit 1; }; }
1482fi
1483
1484ac_ext=c
1485ac_cpp='$CPP $CPPFLAGS'
1486ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1487ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1488ac_compiler_gnu=$ac_cv_c_compiler_gnu
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
0c617c9a
BB
1508ac_ext=c
1509ac_cpp='$CPP $CPPFLAGS'
1510ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1511ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1512ac_compiler_gnu=$ac_cv_c_compiler_gnu
1513
1514
dd529a30 1515 echo "$as_me:$LINENO: checking metadata" >&5
1516echo $ECHO_N "checking metadata... $ECHO_C" >&6
1517
1518 META="$srcdir/META"
1519 _spl_ac_meta_got_file=no
1520 if test -f "$META"; then
1521 _spl_ac_meta_got_file=yes
1522
abc3ca14 1523 SPL_META_NAME=`perl -n\
dd529a30 1524 -e "BEGIN { \\$key=shift @ARGV; }"\
1525 -e "next unless s/^\s*\\$key[:=]//i;"\
1526 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
1527 -e "s/^\s+//;"\
1528 -e "s/\s+$//;"\
1529 -e "s/^(['\"])(.*)\1/\\$2/;"\
1530 -e "\\$val=\\$_;"\
1531 -e "END { print \\$val if defined \\$val; }"\
1532 '(?:NAME|PROJECT|PACKAGE)' $META`;
abc3ca14 1533 if test -n "$SPL_META_NAME"; then
dd529a30 1534
1535cat >>confdefs.h <<_ACEOF
abc3ca14 1536#define SPL_META_NAME "$SPL_META_NAME"
dd529a30 1537_ACEOF
1538
1539
1540 fi
1541
abc3ca14 1542 SPL_META_VERSION=`perl -n\
dd529a30 1543 -e "BEGIN { \\$key=shift @ARGV; }"\
1544 -e "next unless s/^\s*\\$key[:=]//i;"\
1545 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
1546 -e "s/^\s+//;"\
1547 -e "s/\s+$//;"\
1548 -e "s/^(['\"])(.*)\1/\\$2/;"\
1549 -e "\\$val=\\$_;"\
1550 -e "END { print \\$val if defined \\$val; }"\
1551 'VERSION' $META`;
abc3ca14 1552 if test -n "$SPL_META_VERSION"; then
dd529a30 1553
1554cat >>confdefs.h <<_ACEOF
abc3ca14 1555#define SPL_META_VERSION "$SPL_META_VERSION"
dd529a30 1556_ACEOF
1557
1558
1559 fi
1560
abc3ca14 1561 SPL_META_RELEASE=`perl -n\
dd529a30 1562 -e "BEGIN { \\$key=shift @ARGV; }"\
1563 -e "next unless s/^\s*\\$key[:=]//i;"\
1564 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
1565 -e "s/^\s+//;"\
1566 -e "s/\s+$//;"\
1567 -e "s/^(['\"])(.*)\1/\\$2/;"\
1568 -e "\\$val=\\$_;"\
1569 -e "END { print \\$val if defined \\$val; }"\
1570 'RELEASE' $META`;
abc3ca14 1571 if test -n "$SPL_META_RELEASE"; then
dd529a30 1572
1573cat >>confdefs.h <<_ACEOF
abc3ca14 1574#define SPL_META_RELEASE "$SPL_META_RELEASE"
dd529a30 1575_ACEOF
1576
1577
1578 fi
1579
abc3ca14 1580 if test -n "$SPL_META_NAME" -a -n "$SPL_META_VERSION"; then
72e7de60 1581 SPL_META_ALIAS="$SPL_META_NAME-$SPL_META_VERSION"
abc3ca14 1582 test -n "$SPL_META_RELEASE" &&
72e7de60 1583 SPL_META_ALIAS="$SPL_META_ALIAS-$SPL_META_RELEASE"
dd529a30 1584
1585cat >>confdefs.h <<_ACEOF
72e7de60 1586#define SPL_META_ALIAS "$SPL_META_ALIAS"
dd529a30 1587_ACEOF
1588
1589
1590 fi
1591
abc3ca14 1592 SPL_META_DATA=`perl -n\
dd529a30 1593 -e "BEGIN { \\$key=shift @ARGV; }"\
1594 -e "next unless s/^\s*\\$key[:=]//i;"\
1595 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
1596 -e "s/^\s+//;"\
1597 -e "s/\s+$//;"\
1598 -e "s/^(['\"])(.*)\1/\\$2/;"\
1599 -e "\\$val=\\$_;"\
1600 -e "END { print \\$val if defined \\$val; }"\
1601 'DATE' $META`;
abc3ca14 1602 if test -n "$SPL_META_DATA"; then
dd529a30 1603
1604cat >>confdefs.h <<_ACEOF
abc3ca14 1605#define SPL_META_DATA "$SPL_META_DATA"
dd529a30 1606_ACEOF
1607
1608
1609 fi
1610
abc3ca14 1611 SPL_META_AUTHOR=`perl -n\
dd529a30 1612 -e "BEGIN { \\$key=shift @ARGV; }"\
1613 -e "next unless s/^\s*\\$key[:=]//i;"\
1614 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
1615 -e "s/^\s+//;"\
1616 -e "s/\s+$//;"\
1617 -e "s/^(['\"])(.*)\1/\\$2/;"\
1618 -e "\\$val=\\$_;"\
1619 -e "END { print \\$val if defined \\$val; }"\
1620 'AUTHOR' $META`;
abc3ca14 1621 if test -n "$SPL_META_AUTHOR"; then
dd529a30 1622
1623cat >>confdefs.h <<_ACEOF
abc3ca14 1624#define SPL_META_AUTHOR "$SPL_META_AUTHOR"
dd529a30 1625_ACEOF
1626
1627
1628 fi
1629
1630
abc3ca14 1631 SPL_META_LT_CURRENT=`perl -n\
dd529a30 1632 -e "BEGIN { \\$key=shift @ARGV; }"\
1633 -e "next unless s/^\s*\\$key[:=]//i;"\
1634 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
1635 -e "s/^\s+//;"\
1636 -e "s/\s+$//;"\
1637 -e "s/^(['\"])(.*)\1/\\$2/;"\
1638 -e "\\$val=\\$_;"\
1639 -e "END { print \\$val if defined \\$val; }"\
1640 'LT_CURRENT' $META`;
abc3ca14 1641 SPL_META_LT_REVISION=`perl -n\
dd529a30 1642 -e "BEGIN { \\$key=shift @ARGV; }"\
1643 -e "next unless s/^\s*\\$key[:=]//i;"\
1644 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
1645 -e "s/^\s+//;"\
1646 -e "s/\s+$//;"\
1647 -e "s/^(['\"])(.*)\1/\\$2/;"\
1648 -e "\\$val=\\$_;"\
1649 -e "END { print \\$val if defined \\$val; }"\
1650 'LT_REVISION' $META`;
abc3ca14 1651 SPL_META_LT_AGE=`perl -n\
dd529a30 1652 -e "BEGIN { \\$key=shift @ARGV; }"\
1653 -e "next unless s/^\s*\\$key[:=]//i;"\
1654 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
1655 -e "s/^\s+//;"\
1656 -e "s/\s+$//;"\
1657 -e "s/^(['\"])(.*)\1/\\$2/;"\
1658 -e "\\$val=\\$_;"\
1659 -e "END { print \\$val if defined \\$val; }"\
1660 'LT_AGE' $META`;
abc3ca14
BB
1661 if test -n "$SPL_META_LT_CURRENT" \
1662 -o -n "$SPL_META_LT_REVISION" \
1663 -o -n "$SPL_META_LT_AGE"; then
1664 test -n "$SPL_META_LT_CURRENT" || SPL_META_LT_CURRENT="0"
1665 test -n "$SPL_META_LT_REVISION" || SPL_META_LT_REVISION="0"
1666 test -n "$SPL_META_LT_AGE" || SPL_META_LT_AGE="0"
dd529a30 1667
1668cat >>confdefs.h <<_ACEOF
abc3ca14 1669#define SPL_META_LT_CURRENT "$SPL_META_LT_CURRENT"
dd529a30 1670_ACEOF
1671
1672
1673cat >>confdefs.h <<_ACEOF
abc3ca14 1674#define SPL_META_LT_REVISION "$SPL_META_LT_REVISION"
dd529a30 1675_ACEOF
1676
1677
1678cat >>confdefs.h <<_ACEOF
abc3ca14 1679#define SPL_META_LT_AGE "$SPL_META_LT_AGE"
dd529a30 1680_ACEOF
1681
1682
1683
1684
1685 fi
1686 fi
1687
1688 echo "$as_me:$LINENO: result: $_spl_ac_meta_got_file" >&5
1689echo "${ECHO_T}$_spl_ac_meta_got_file" >&6
1690
1691
bf9f3bac 1692ac_aux_dir=
1693for ac_dir in config $srcdir/config; do
1694 if test -f $ac_dir/install-sh; then
1695 ac_aux_dir=$ac_dir
1696 ac_install_sh="$ac_aux_dir/install-sh -c"
1697 break
1698 elif test -f $ac_dir/install.sh; then
1699 ac_aux_dir=$ac_dir
1700 ac_install_sh="$ac_aux_dir/install.sh -c"
1701 break
1702 elif test -f $ac_dir/shtool; then
1703 ac_aux_dir=$ac_dir
1704 ac_install_sh="$ac_aux_dir/shtool install -c"
1705 break
1706 fi
1707done
1708if test -z "$ac_aux_dir"; then
1709 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1710echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1711 { (exit 1); exit 1; }; }
1712fi
1713ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1714ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1715ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1716
1717# Make sure we can run config.sub.
1718$ac_config_sub sun4 >/dev/null 2>&1 ||
1719 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1720echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1721 { (exit 1); exit 1; }; }
1722
1723echo "$as_me:$LINENO: checking build system type" >&5
1724echo $ECHO_N "checking build system type... $ECHO_C" >&6
1725if test "${ac_cv_build+set}" = set; then
1726 echo $ECHO_N "(cached) $ECHO_C" >&6
1727else
1728 ac_cv_build_alias=$build_alias
1729test -z "$ac_cv_build_alias" &&
1730 ac_cv_build_alias=`$ac_config_guess`
1731test -z "$ac_cv_build_alias" &&
1732 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1733echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1734 { (exit 1); exit 1; }; }
1735ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1736 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1737echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1738 { (exit 1); exit 1; }; }
1739
1740fi
1741echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1742echo "${ECHO_T}$ac_cv_build" >&6
1743build=$ac_cv_build
1744build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1745build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1746build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1747
1748
1749echo "$as_me:$LINENO: checking host system type" >&5
1750echo $ECHO_N "checking host system type... $ECHO_C" >&6
1751if test "${ac_cv_host+set}" = set; then
1752 echo $ECHO_N "(cached) $ECHO_C" >&6
1753else
1754 ac_cv_host_alias=$host_alias
1755test -z "$ac_cv_host_alias" &&
1756 ac_cv_host_alias=$ac_cv_build_alias
1757ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1758 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1759echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1760 { (exit 1); exit 1; }; }
1761
1762fi
1763echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1764echo "${ECHO_T}$ac_cv_host" >&6
1765host=$ac_cv_host
1766host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1767host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1768host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1769
1770
1771echo "$as_me:$LINENO: checking target system type" >&5
1772echo $ECHO_N "checking target system type... $ECHO_C" >&6
1773if test "${ac_cv_target+set}" = set; then
1774 echo $ECHO_N "(cached) $ECHO_C" >&6
1775else
1776 ac_cv_target_alias=$target_alias
1777test "x$ac_cv_target_alias" = "x" &&
1778 ac_cv_target_alias=$ac_cv_host_alias
1779ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1780 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1781echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1782 { (exit 1); exit 1; }; }
1783
1784fi
1785echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1786echo "${ECHO_T}$ac_cv_target" >&6
1787target=$ac_cv_target
1788target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1789target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1790target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1791
1792
1793# The aliases save the names the user supplied, while $host etc.
1794# will get canonicalized.
1795test -n "$target_alias" &&
1796 test "$program_prefix$program_suffix$program_transform_name" = \
1797 NONENONEs,x,x, &&
1798 program_prefix=${target_alias}-
1799am__api_version="1.9"
1800# Find a good install program. We prefer a C program (faster),
1801# so one script is as good as another. But avoid the broken or
1802# incompatible versions:
1803# SysV /etc/install, /usr/sbin/install
1804# SunOS /usr/etc/install
1805# IRIX /sbin/install
1806# AIX /bin/install
1807# AmigaOS /C/install, which installs bootblocks on floppy discs
1808# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1809# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1810# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1811# OS/2's system install, which has a completely different semantic
1812# ./install, which can be erroneously created by make from ./install.sh.
1813echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1814echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1815if test -z "$INSTALL"; then
1816if test "${ac_cv_path_install+set}" = set; then
1817 echo $ECHO_N "(cached) $ECHO_C" >&6
1818else
1819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1820for as_dir in $PATH
1821do
1822 IFS=$as_save_IFS
1823 test -z "$as_dir" && as_dir=.
1824 # Account for people who put trailing slashes in PATH elements.
1825case $as_dir/ in
1826 ./ | .// | /cC/* | \
1827 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1828 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1829 /usr/ucb/* ) ;;
1830 *)
1831 # OSF1 and SCO ODT 3.0 have their own names for install.
1832 # Don't use installbsd from OSF since it installs stuff as root
1833 # by default.
1834 for ac_prog in ginstall scoinst install; do
1835 for ac_exec_ext in '' $ac_executable_extensions; do
1836 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1837 if test $ac_prog = install &&
1838 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1839 # AIX install. It has an incompatible calling convention.
1840 :
1841 elif test $ac_prog = install &&
1842 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1843 # program-specific install script used by HP pwplus--don't use.
1844 :
1845 else
1846 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1847 break 3
1848 fi
1849 fi
1850 done
1851 done
1852 ;;
1853esac
1854done
1855
1856
1857fi
1858 if test "${ac_cv_path_install+set}" = set; then
1859 INSTALL=$ac_cv_path_install
1860 else
1861 # As a last resort, use the slow shell script. We don't cache a
1862 # path for INSTALL within a source directory, because that will
1863 # break other packages using the cache if that directory is
1864 # removed, or if the path is relative.
1865 INSTALL=$ac_install_sh
1866 fi
1867fi
1868echo "$as_me:$LINENO: result: $INSTALL" >&5
1869echo "${ECHO_T}$INSTALL" >&6
1870
1871# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1872# It thinks the first close brace ends the variable substitution.
1873test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1874
1875test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1876
1877test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1878
1879echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1880echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1881# Just in case
1882sleep 1
1883echo timestamp > conftest.file
1884# Do `set' in a subshell so we don't clobber the current shell's
1885# arguments. Must try -L first in case configure is actually a
1886# symlink; some systems play weird games with the mod time of symlinks
1887# (eg FreeBSD returns the mod time of the symlink's containing
1888# directory).
1889if (
1890 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1891 if test "$*" = "X"; then
1892 # -L didn't work.
1893 set X `ls -t $srcdir/configure conftest.file`
1894 fi
1895 rm -f conftest.file
1896 if test "$*" != "X $srcdir/configure conftest.file" \
1897 && test "$*" != "X conftest.file $srcdir/configure"; then
1898
1899 # If neither matched, then we have a broken ls. This can happen
1900 # if, for instance, CONFIG_SHELL is bash and it inherits a
1901 # broken ls alias from the environment. This has actually
1902 # happened. Such a system could not be considered "sane".
1903 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1904alias in your environment" >&5
1905echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1906alias in your environment" >&2;}
1907 { (exit 1); exit 1; }; }
1908 fi
1909
1910 test "$2" = conftest.file
1911 )
1912then
1913 # Ok.
1914 :
1915else
1916 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1917Check your system clock" >&5
1918echo "$as_me: error: newly created file is older than distributed files!
1919Check your system clock" >&2;}
1920 { (exit 1); exit 1; }; }
1921fi
1922echo "$as_me:$LINENO: result: yes" >&5
1923echo "${ECHO_T}yes" >&6
1924test "$program_prefix" != NONE &&
1925 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1926# Use a double $ so make ignores it.
1927test "$program_suffix" != NONE &&
1928 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1929# Double any \ or $. echo might interpret backslashes.
1930# By default was `s,x,x', remove it if useless.
1931cat <<\_ACEOF >conftest.sed
1932s/[\\$]/&&/g;s/;s,x,x,$//
1933_ACEOF
1934program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1935rm conftest.sed
1936
1937# expand $ac_aux_dir to an absolute path
1938am_aux_dir=`cd $ac_aux_dir && pwd`
1939
1940test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1941# Use eval to expand $SHELL
1942if eval "$MISSING --run true"; then
1943 am_missing_run="$MISSING --run "
1944else
1945 am_missing_run=
1946 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1947echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1948fi
1949
1950if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1951 # We used to keeping the `.' as first argument, in order to
1952 # allow $(mkdir_p) to be used without argument. As in
1953 # $(mkdir_p) $(somedir)
1954 # where $(somedir) is conditionally defined. However this is wrong
1955 # for two reasons:
1956 # 1. if the package is installed by a user who cannot write `.'
1957 # make install will fail,
1958 # 2. the above comment should most certainly read
1959 # $(mkdir_p) $(DESTDIR)$(somedir)
1960 # so it does not work when $(somedir) is undefined and
1961 # $(DESTDIR) is not.
1962 # To support the latter case, we have to write
1963 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1964 # so the `.' trick is pointless.
1965 mkdir_p='mkdir -p --'
1966else
1967 # On NextStep and OpenStep, the `mkdir' command does not
1968 # recognize any option. It will interpret all options as
1969 # directories to create, and then abort because `.' already
1970 # exists.
1971 for d in ./-p ./--version;
1972 do
1973 test -d $d && rmdir $d
1974 done
1975 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1976 if test -f "$ac_aux_dir/mkinstalldirs"; then
1977 mkdir_p='$(mkinstalldirs)'
1978 else
1979 mkdir_p='$(install_sh) -d'
1980 fi
1981fi
1982
1983for ac_prog in gawk mawk nawk awk
1984do
1985 # Extract the first word of "$ac_prog", so it can be a program name with args.
1986set dummy $ac_prog; ac_word=$2
1987echo "$as_me:$LINENO: checking for $ac_word" >&5
1988echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1989if test "${ac_cv_prog_AWK+set}" = set; then
1990 echo $ECHO_N "(cached) $ECHO_C" >&6
1991else
1992 if test -n "$AWK"; then
1993 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1994else
1995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1996for as_dir in $PATH
1997do
1998 IFS=$as_save_IFS
1999 test -z "$as_dir" && as_dir=.
2000 for ac_exec_ext in '' $ac_executable_extensions; do
2001 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2002 ac_cv_prog_AWK="$ac_prog"
2003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2004 break 2
2005 fi
2006done
2007done
2008
2009fi
2010fi
2011AWK=$ac_cv_prog_AWK
2012if test -n "$AWK"; then
2013 echo "$as_me:$LINENO: result: $AWK" >&5
2014echo "${ECHO_T}$AWK" >&6
2015else
2016 echo "$as_me:$LINENO: result: no" >&5
2017echo "${ECHO_T}no" >&6
2018fi
2019
2020 test -n "$AWK" && break
2021done
2022
2023echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2024echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2025set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2026if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2027 echo $ECHO_N "(cached) $ECHO_C" >&6
2028else
2029 cat >conftest.make <<\_ACEOF
2030all:
2031 @echo 'ac_maketemp="$(MAKE)"'
2032_ACEOF
2033# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2034eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2035if test -n "$ac_maketemp"; then
2036 eval ac_cv_prog_make_${ac_make}_set=yes
2037else
2038 eval ac_cv_prog_make_${ac_make}_set=no
2039fi
2040rm -f conftest.make
2041fi
2042if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2043 echo "$as_me:$LINENO: result: yes" >&5
2044echo "${ECHO_T}yes" >&6
2045 SET_MAKE=
2046else
2047 echo "$as_me:$LINENO: result: no" >&5
2048echo "${ECHO_T}no" >&6
2049 SET_MAKE="MAKE=${MAKE-make}"
2050fi
2051
2052rm -rf .tst 2>/dev/null
2053mkdir .tst 2>/dev/null
2054if test -d .tst; then
2055 am__leading_dot=.
2056else
2057 am__leading_dot=_
2058fi
2059rmdir .tst 2>/dev/null
2060
2061# test to see if srcdir already configured
2062if test "`cd $srcdir && pwd`" != "`pwd`" &&
2063 test -f $srcdir/config.status; then
2064 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2065echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2066 { (exit 1); exit 1; }; }
2067fi
2068
2069# test whether we have cygpath
2070if test -z "$CYGPATH_W"; then
2071 if (cygpath --version) >/dev/null 2>/dev/null; then
2072 CYGPATH_W='cygpath -w'
2073 else
2074 CYGPATH_W=echo
2075 fi
2076fi
2077
2078
2079# Define the identity of the package.
abc3ca14
BB
2080 PACKAGE=$SPL_META_NAME
2081 VERSION=$SPL_META_VERSION
bf9f3bac 2082
2083
2084cat >>confdefs.h <<_ACEOF
2085#define PACKAGE "$PACKAGE"
2086_ACEOF
2087
2088
2089cat >>confdefs.h <<_ACEOF
2090#define VERSION "$VERSION"
2091_ACEOF
2092
2093# Some tools Automake needs.
2094
2095ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2096
2097
2098AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2099
2100
2101AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2102
2103
2104AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2105
2106
2107MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2108
2109install_sh=${install_sh-"$am_aux_dir/install-sh"}
2110
2111# Installed binaries are usually stripped using `strip' when the user
2112# run `make install-strip'. However `strip' might not be the right
2113# tool to use in cross-compilation environments, therefore Automake
2114# will honor the `STRIP' environment variable to overrule this program.
2115if test "$cross_compiling" != no; then
2116 if test -n "$ac_tool_prefix"; then
2117 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2118set dummy ${ac_tool_prefix}strip; ac_word=$2
2119echo "$as_me:$LINENO: checking for $ac_word" >&5
2120echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2121if test "${ac_cv_prog_STRIP+set}" = set; then
2122 echo $ECHO_N "(cached) $ECHO_C" >&6
2123else
2124 if test -n "$STRIP"; then
2125 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2126else
2127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2128for as_dir in $PATH
2129do
2130 IFS=$as_save_IFS
2131 test -z "$as_dir" && as_dir=.
2132 for ac_exec_ext in '' $ac_executable_extensions; do
2133 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2134 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2136 break 2
2137 fi
2138done
2139done
2140
2141fi
2142fi
2143STRIP=$ac_cv_prog_STRIP
2144if test -n "$STRIP"; then
2145 echo "$as_me:$LINENO: result: $STRIP" >&5
2146echo "${ECHO_T}$STRIP" >&6
2147else
2148 echo "$as_me:$LINENO: result: no" >&5
2149echo "${ECHO_T}no" >&6
2150fi
2151
2152fi
2153if test -z "$ac_cv_prog_STRIP"; then
2154 ac_ct_STRIP=$STRIP
2155 # Extract the first word of "strip", so it can be a program name with args.
2156set dummy strip; ac_word=$2
2157echo "$as_me:$LINENO: checking for $ac_word" >&5
2158echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2159if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2160 echo $ECHO_N "(cached) $ECHO_C" >&6
2161else
2162 if test -n "$ac_ct_STRIP"; then
2163 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2164else
2165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2166for as_dir in $PATH
2167do
2168 IFS=$as_save_IFS
2169 test -z "$as_dir" && as_dir=.
2170 for ac_exec_ext in '' $ac_executable_extensions; do
2171 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2172 ac_cv_prog_ac_ct_STRIP="strip"
2173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2174 break 2
2175 fi
2176done
2177done
2178
2179 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2180fi
2181fi
2182ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2183if test -n "$ac_ct_STRIP"; then
2184 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2185echo "${ECHO_T}$ac_ct_STRIP" >&6
2186else
2187 echo "$as_me:$LINENO: result: no" >&5
2188echo "${ECHO_T}no" >&6
2189fi
2190
2191 STRIP=$ac_ct_STRIP
2192else
2193 STRIP="$ac_cv_prog_STRIP"
2194fi
2195
2196fi
2197INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2198
2199# We need awk for the "check" target. The system "awk" is bad on
2200# some platforms.
2201# Always define AMTAR for backward compatibility.
2202
2203AMTAR=${AMTAR-"${am_missing_run}tar"}
2204
2205am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2206
2207
2208
2209
2210
2211 ac_config_headers="$ac_config_headers spl_config.h"
2212
0cbaeb11
BB
2213
2214
bf9f3bac 2215echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2216echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
2217 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2218if test "${enable_maintainer_mode+set}" = set; then
2219 enableval="$enable_maintainer_mode"
2220 USE_MAINTAINER_MODE=$enableval
2221else
2222 USE_MAINTAINER_MODE=no
2223fi;
2224 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2225echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2226
2227
2228if test $USE_MAINTAINER_MODE = yes; then
2229 MAINTAINER_MODE_TRUE=
2230 MAINTAINER_MODE_FALSE='#'
2231else
2232 MAINTAINER_MODE_TRUE='#'
2233 MAINTAINER_MODE_FALSE=
2234fi
2235
2236 MAINT=$MAINTAINER_MODE_TRUE
2237
2238
2239
2240# Find a good install program. We prefer a C program (faster),
2241# so one script is as good as another. But avoid the broken or
2242# incompatible versions:
2243# SysV /etc/install, /usr/sbin/install
2244# SunOS /usr/etc/install
2245# IRIX /sbin/install
2246# AIX /bin/install
2247# AmigaOS /C/install, which installs bootblocks on floppy discs
2248# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2249# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2250# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2251# OS/2's system install, which has a completely different semantic
2252# ./install, which can be erroneously created by make from ./install.sh.
2253echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2254echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2255if test -z "$INSTALL"; then
2256if test "${ac_cv_path_install+set}" = set; then
2257 echo $ECHO_N "(cached) $ECHO_C" >&6
2258else
2259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2260for as_dir in $PATH
2261do
2262 IFS=$as_save_IFS
2263 test -z "$as_dir" && as_dir=.
2264 # Account for people who put trailing slashes in PATH elements.
2265case $as_dir/ in
2266 ./ | .// | /cC/* | \
2267 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2268 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2269 /usr/ucb/* ) ;;
2270 *)
2271 # OSF1 and SCO ODT 3.0 have their own names for install.
2272 # Don't use installbsd from OSF since it installs stuff as root
2273 # by default.
2274 for ac_prog in ginstall scoinst install; do
2275 for ac_exec_ext in '' $ac_executable_extensions; do
2276 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2277 if test $ac_prog = install &&
2278 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2279 # AIX install. It has an incompatible calling convention.
2280 :
2281 elif test $ac_prog = install &&
2282 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2283 # program-specific install script used by HP pwplus--don't use.
2284 :
2285 else
2286 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2287 break 3
2288 fi
2289 fi
2290 done
2291 done
2292 ;;
2293esac
2294done
2295
2296
2297fi
2298 if test "${ac_cv_path_install+set}" = set; then
2299 INSTALL=$ac_cv_path_install
2300 else
2301 # As a last resort, use the slow shell script. We don't cache a
2302 # path for INSTALL within a source directory, because that will
2303 # break other packages using the cache if that directory is
2304 # removed, or if the path is relative.
2305 INSTALL=$ac_install_sh
2306 fi
2307fi
2308echo "$as_me:$LINENO: result: $INSTALL" >&5
2309echo "${ECHO_T}$INSTALL" >&6
2310
2311# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2312# It thinks the first close brace ends the variable substitution.
2313test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2314
2315test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2316
2317test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2318
2319ac_ext=c
2320ac_cpp='$CPP $CPPFLAGS'
2321ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2322ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2323ac_compiler_gnu=$ac_cv_c_compiler_gnu
2324if test -n "$ac_tool_prefix"; then
2325 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2326set dummy ${ac_tool_prefix}gcc; ac_word=$2
2327echo "$as_me:$LINENO: checking for $ac_word" >&5
2328echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2329if test "${ac_cv_prog_CC+set}" = set; then
2330 echo $ECHO_N "(cached) $ECHO_C" >&6
2331else
2332 if test -n "$CC"; then
2333 ac_cv_prog_CC="$CC" # Let the user override the test.
2334else
2335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2336for as_dir in $PATH
2337do
2338 IFS=$as_save_IFS
2339 test -z "$as_dir" && as_dir=.
2340 for ac_exec_ext in '' $ac_executable_extensions; do
2341 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2342 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2344 break 2
2345 fi
2346done
2347done
2348
2349fi
2350fi
2351CC=$ac_cv_prog_CC
2352if test -n "$CC"; then
2353 echo "$as_me:$LINENO: result: $CC" >&5
2354echo "${ECHO_T}$CC" >&6
2355else
2356 echo "$as_me:$LINENO: result: no" >&5
2357echo "${ECHO_T}no" >&6
2358fi
2359
2360fi
2361if test -z "$ac_cv_prog_CC"; then
2362 ac_ct_CC=$CC
2363 # Extract the first word of "gcc", so it can be a program name with args.
2364set dummy gcc; ac_word=$2
2365echo "$as_me:$LINENO: checking for $ac_word" >&5
2366echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2367if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2368 echo $ECHO_N "(cached) $ECHO_C" >&6
2369else
2370 if test -n "$ac_ct_CC"; then
2371 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2372else
2373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2374for as_dir in $PATH
2375do
2376 IFS=$as_save_IFS
2377 test -z "$as_dir" && as_dir=.
2378 for ac_exec_ext in '' $ac_executable_extensions; do
2379 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2380 ac_cv_prog_ac_ct_CC="gcc"
2381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2382 break 2
2383 fi
2384done
2385done
2386
2387fi
2388fi
2389ac_ct_CC=$ac_cv_prog_ac_ct_CC
2390if test -n "$ac_ct_CC"; then
2391 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2392echo "${ECHO_T}$ac_ct_CC" >&6
2393else
2394 echo "$as_me:$LINENO: result: no" >&5
2395echo "${ECHO_T}no" >&6
2396fi
2397
2398 CC=$ac_ct_CC
2399else
2400 CC="$ac_cv_prog_CC"
2401fi
2402
2403if test -z "$CC"; then
2404 if test -n "$ac_tool_prefix"; then
2405 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2406set dummy ${ac_tool_prefix}cc; ac_word=$2
2407echo "$as_me:$LINENO: checking for $ac_word" >&5
2408echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2409if test "${ac_cv_prog_CC+set}" = set; then
2410 echo $ECHO_N "(cached) $ECHO_C" >&6
2411else
2412 if test -n "$CC"; then
2413 ac_cv_prog_CC="$CC" # Let the user override the test.
2414else
2415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2416for as_dir in $PATH
2417do
2418 IFS=$as_save_IFS
2419 test -z "$as_dir" && as_dir=.
2420 for ac_exec_ext in '' $ac_executable_extensions; do
2421 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2422 ac_cv_prog_CC="${ac_tool_prefix}cc"
2423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2424 break 2
2425 fi
2426done
2427done
2428
2429fi
2430fi
2431CC=$ac_cv_prog_CC
2432if test -n "$CC"; then
2433 echo "$as_me:$LINENO: result: $CC" >&5
2434echo "${ECHO_T}$CC" >&6
2435else
2436 echo "$as_me:$LINENO: result: no" >&5
2437echo "${ECHO_T}no" >&6
2438fi
2439
2440fi
2441if test -z "$ac_cv_prog_CC"; then
2442 ac_ct_CC=$CC
2443 # Extract the first word of "cc", so it can be a program name with args.
2444set dummy cc; ac_word=$2
2445echo "$as_me:$LINENO: checking for $ac_word" >&5
2446echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2447if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2448 echo $ECHO_N "(cached) $ECHO_C" >&6
2449else
2450 if test -n "$ac_ct_CC"; then
2451 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2452else
2453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2454for as_dir in $PATH
2455do
2456 IFS=$as_save_IFS
2457 test -z "$as_dir" && as_dir=.
2458 for ac_exec_ext in '' $ac_executable_extensions; do
2459 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2460 ac_cv_prog_ac_ct_CC="cc"
2461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2462 break 2
2463 fi
2464done
2465done
2466
2467fi
2468fi
2469ac_ct_CC=$ac_cv_prog_ac_ct_CC
2470if test -n "$ac_ct_CC"; then
2471 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2472echo "${ECHO_T}$ac_ct_CC" >&6
2473else
2474 echo "$as_me:$LINENO: result: no" >&5
2475echo "${ECHO_T}no" >&6
2476fi
2477
2478 CC=$ac_ct_CC
2479else
2480 CC="$ac_cv_prog_CC"
2481fi
2482
2483fi
2484if test -z "$CC"; then
2485 # Extract the first word of "cc", so it can be a program name with args.
2486set dummy cc; ac_word=$2
2487echo "$as_me:$LINENO: checking for $ac_word" >&5
2488echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2489if test "${ac_cv_prog_CC+set}" = set; then
2490 echo $ECHO_N "(cached) $ECHO_C" >&6
2491else
2492 if test -n "$CC"; then
2493 ac_cv_prog_CC="$CC" # Let the user override the test.
2494else
2495 ac_prog_rejected=no
2496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2497for as_dir in $PATH
2498do
2499 IFS=$as_save_IFS
2500 test -z "$as_dir" && as_dir=.
2501 for ac_exec_ext in '' $ac_executable_extensions; do
2502 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2503 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2504 ac_prog_rejected=yes
2505 continue
2506 fi
2507 ac_cv_prog_CC="cc"
2508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2509 break 2
2510 fi
2511done
2512done
2513
2514if test $ac_prog_rejected = yes; then
2515 # We found a bogon in the path, so make sure we never use it.
2516 set dummy $ac_cv_prog_CC
2517 shift
2518 if test $# != 0; then
2519 # We chose a different compiler from the bogus one.
2520 # However, it has the same basename, so the bogon will be chosen
2521 # first if we set CC to just the basename; use the full file name.
2522 shift
2523 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2524 fi
2525fi
2526fi
2527fi
2528CC=$ac_cv_prog_CC
2529if test -n "$CC"; then
2530 echo "$as_me:$LINENO: result: $CC" >&5
2531echo "${ECHO_T}$CC" >&6
2532else
2533 echo "$as_me:$LINENO: result: no" >&5
2534echo "${ECHO_T}no" >&6
2535fi
2536
2537fi
2538if test -z "$CC"; then
2539 if test -n "$ac_tool_prefix"; then
2540 for ac_prog in cl
2541 do
2542 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2543set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2544echo "$as_me:$LINENO: checking for $ac_word" >&5
2545echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2546if test "${ac_cv_prog_CC+set}" = set; then
2547 echo $ECHO_N "(cached) $ECHO_C" >&6
2548else
2549 if test -n "$CC"; then
2550 ac_cv_prog_CC="$CC" # Let the user override the test.
2551else
2552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2553for as_dir in $PATH
2554do
2555 IFS=$as_save_IFS
2556 test -z "$as_dir" && as_dir=.
2557 for ac_exec_ext in '' $ac_executable_extensions; do
2558 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2559 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2561 break 2
2562 fi
2563done
2564done
2565
2566fi
2567fi
2568CC=$ac_cv_prog_CC
2569if test -n "$CC"; then
2570 echo "$as_me:$LINENO: result: $CC" >&5
2571echo "${ECHO_T}$CC" >&6
2572else
2573 echo "$as_me:$LINENO: result: no" >&5
2574echo "${ECHO_T}no" >&6
2575fi
2576
2577 test -n "$CC" && break
2578 done
2579fi
2580if test -z "$CC"; then
2581 ac_ct_CC=$CC
2582 for ac_prog in cl
2583do
2584 # Extract the first word of "$ac_prog", so it can be a program name with args.
2585set dummy $ac_prog; ac_word=$2
2586echo "$as_me:$LINENO: checking for $ac_word" >&5
2587echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2588if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2589 echo $ECHO_N "(cached) $ECHO_C" >&6
2590else
2591 if test -n "$ac_ct_CC"; then
2592 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2593else
2594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2595for as_dir in $PATH
2596do
2597 IFS=$as_save_IFS
2598 test -z "$as_dir" && as_dir=.
2599 for ac_exec_ext in '' $ac_executable_extensions; do
2600 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2601 ac_cv_prog_ac_ct_CC="$ac_prog"
2602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2603 break 2
2604 fi
2605done
2606done
2607
2608fi
2609fi
2610ac_ct_CC=$ac_cv_prog_ac_ct_CC
2611if test -n "$ac_ct_CC"; then
2612 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2613echo "${ECHO_T}$ac_ct_CC" >&6
2614else
2615 echo "$as_me:$LINENO: result: no" >&5
2616echo "${ECHO_T}no" >&6
2617fi
2618
2619 test -n "$ac_ct_CC" && break
2620done
2621
2622 CC=$ac_ct_CC
2623fi
2624
2625fi
2626
2627
2628test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2629See \`config.log' for more details." >&5
2630echo "$as_me: error: no acceptable C compiler found in \$PATH
2631See \`config.log' for more details." >&2;}
2632 { (exit 1); exit 1; }; }
2633
2634# Provide some information about the compiler.
2635echo "$as_me:$LINENO:" \
2636 "checking for C compiler version" >&5
2637ac_compiler=`set X $ac_compile; echo $2`
2638{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2639 (eval $ac_compiler --version </dev/null >&5) 2>&5
2640 ac_status=$?
2641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642 (exit $ac_status); }
2643{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2644 (eval $ac_compiler -v </dev/null >&5) 2>&5
2645 ac_status=$?
2646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647 (exit $ac_status); }
2648{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2649 (eval $ac_compiler -V </dev/null >&5) 2>&5
2650 ac_status=$?
2651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652 (exit $ac_status); }
2653
2654cat >conftest.$ac_ext <<_ACEOF
2655/* confdefs.h. */
2656_ACEOF
2657cat confdefs.h >>conftest.$ac_ext
2658cat >>conftest.$ac_ext <<_ACEOF
2659/* end confdefs.h. */
2660
2661int
2662main ()
2663{
2664
2665 ;
2666 return 0;
2667}
2668_ACEOF
2669ac_clean_files_save=$ac_clean_files
2670ac_clean_files="$ac_clean_files a.out a.exe b.out"
2671# Try to create an executable without -o first, disregard a.out.
2672# It will help us diagnose broken compilers, and finding out an intuition
2673# of exeext.
2674echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2675echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2676ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2677if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2678 (eval $ac_link_default) 2>&5
2679 ac_status=$?
2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681 (exit $ac_status); }; then
2682 # Find the output, starting from the most likely. This scheme is
2683# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2684# resort.
2685
2686# Be careful to initialize this variable, since it used to be cached.
2687# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2688ac_cv_exeext=
2689# b.out is created by i960 compilers.
2690for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2691do
2692 test -f "$ac_file" || continue
2693 case $ac_file in
2694 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2695 ;;
2696 conftest.$ac_ext )
2697 # This is the source file.
2698 ;;
2699 [ab].out )
2700 # We found the default executable, but exeext='' is most
2701 # certainly right.
2702 break;;
2703 *.* )
2704 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2705 # FIXME: I believe we export ac_cv_exeext for Libtool,
2706 # but it would be cool to find out if it's true. Does anybody
2707 # maintain Libtool? --akim.
2708 export ac_cv_exeext
2709 break;;
2710 * )
2711 break;;
2712 esac
2713done
2714else
2715 echo "$as_me: failed program was:" >&5
2716sed 's/^/| /' conftest.$ac_ext >&5
2717
2718{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2719See \`config.log' for more details." >&5
2720echo "$as_me: error: C compiler cannot create executables
2721See \`config.log' for more details." >&2;}
2722 { (exit 77); exit 77; }; }
2723fi
2724
2725ac_exeext=$ac_cv_exeext
2726echo "$as_me:$LINENO: result: $ac_file" >&5
2727echo "${ECHO_T}$ac_file" >&6
2728
2729# Check the compiler produces executables we can run. If not, either
2730# the compiler is broken, or we cross compile.
2731echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2732echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2733# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2734# If not cross compiling, check that we can run a simple program.
2735if test "$cross_compiling" != yes; then
2736 if { ac_try='./$ac_file'
2737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2738 (eval $ac_try) 2>&5
2739 ac_status=$?
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); }; }; then
2742 cross_compiling=no
2743 else
2744 if test "$cross_compiling" = maybe; then
2745 cross_compiling=yes
2746 else
2747 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2748If you meant to cross compile, use \`--host'.
2749See \`config.log' for more details." >&5
2750echo "$as_me: error: cannot run C compiled programs.
2751If you meant to cross compile, use \`--host'.
2752See \`config.log' for more details." >&2;}
2753 { (exit 1); exit 1; }; }
2754 fi
2755 fi
2756fi
2757echo "$as_me:$LINENO: result: yes" >&5
2758echo "${ECHO_T}yes" >&6
2759
2760rm -f a.out a.exe conftest$ac_cv_exeext b.out
2761ac_clean_files=$ac_clean_files_save
2762# Check the compiler produces executables we can run. If not, either
2763# the compiler is broken, or we cross compile.
2764echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2765echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2766echo "$as_me:$LINENO: result: $cross_compiling" >&5
2767echo "${ECHO_T}$cross_compiling" >&6
2768
2769echo "$as_me:$LINENO: checking for suffix of executables" >&5
2770echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2771if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2772 (eval $ac_link) 2>&5
2773 ac_status=$?
2774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2775 (exit $ac_status); }; then
2776 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2777# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2778# work properly (i.e., refer to `conftest.exe'), while it won't with
2779# `rm'.
2780for ac_file in conftest.exe conftest conftest.*; do
2781 test -f "$ac_file" || continue
2782 case $ac_file in
2783 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2784 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2785 export ac_cv_exeext
2786 break;;
2787 * ) break;;
2788 esac
2789done
2790else
2791 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2792See \`config.log' for more details." >&5
2793echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2794See \`config.log' for more details." >&2;}
2795 { (exit 1); exit 1; }; }
2796fi
2797
2798rm -f conftest$ac_cv_exeext
2799echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2800echo "${ECHO_T}$ac_cv_exeext" >&6
2801
2802rm -f conftest.$ac_ext
2803EXEEXT=$ac_cv_exeext
2804ac_exeext=$EXEEXT
2805echo "$as_me:$LINENO: checking for suffix of object files" >&5
2806echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2807if test "${ac_cv_objext+set}" = set; then
2808 echo $ECHO_N "(cached) $ECHO_C" >&6
2809else
2810 cat >conftest.$ac_ext <<_ACEOF
2811/* confdefs.h. */
2812_ACEOF
2813cat confdefs.h >>conftest.$ac_ext
2814cat >>conftest.$ac_ext <<_ACEOF
2815/* end confdefs.h. */
2816
2817int
2818main ()
2819{
2820
2821 ;
2822 return 0;
2823}
2824_ACEOF
2825rm -f conftest.o conftest.obj
2826if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2827 (eval $ac_compile) 2>&5
2828 ac_status=$?
2829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830 (exit $ac_status); }; then
2831 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2832 case $ac_file in
2833 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2834 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2835 break;;
2836 esac
2837done
2838else
2839 echo "$as_me: failed program was:" >&5
2840sed 's/^/| /' conftest.$ac_ext >&5
2841
2842{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2843See \`config.log' for more details." >&5
2844echo "$as_me: error: cannot compute suffix of object files: cannot compile
2845See \`config.log' for more details." >&2;}
2846 { (exit 1); exit 1; }; }
2847fi
2848
2849rm -f conftest.$ac_cv_objext conftest.$ac_ext
2850fi
2851echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2852echo "${ECHO_T}$ac_cv_objext" >&6
2853OBJEXT=$ac_cv_objext
2854ac_objext=$OBJEXT
2855echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2856echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2857if test "${ac_cv_c_compiler_gnu+set}" = set; then
2858 echo $ECHO_N "(cached) $ECHO_C" >&6
2859else
2860 cat >conftest.$ac_ext <<_ACEOF
2861/* confdefs.h. */
2862_ACEOF
2863cat confdefs.h >>conftest.$ac_ext
2864cat >>conftest.$ac_ext <<_ACEOF
2865/* end confdefs.h. */
2866
2867int
2868main ()
2869{
2870#ifndef __GNUC__
2871 choke me
2872#endif
2873
2874 ;
2875 return 0;
2876}
2877_ACEOF
2878rm -f conftest.$ac_objext
2879if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2880 (eval $ac_compile) 2>conftest.er1
2881 ac_status=$?
2882 grep -v '^ *+' conftest.er1 >conftest.err
2883 rm -f conftest.er1
2884 cat conftest.err >&5
2885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886 (exit $ac_status); } &&
2887 { ac_try='test -z "$ac_c_werror_flag"
2888 || test ! -s conftest.err'
2889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2890 (eval $ac_try) 2>&5
2891 ac_status=$?
2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); }; } &&
2894 { ac_try='test -s conftest.$ac_objext'
2895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2896 (eval $ac_try) 2>&5
2897 ac_status=$?
2898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899 (exit $ac_status); }; }; then
2900 ac_compiler_gnu=yes
2901else
2902 echo "$as_me: failed program was:" >&5
2903sed 's/^/| /' conftest.$ac_ext >&5
2904
2905ac_compiler_gnu=no
2906fi
2907rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2908ac_cv_c_compiler_gnu=$ac_compiler_gnu
2909
2910fi
2911echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2912echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2913GCC=`test $ac_compiler_gnu = yes && echo yes`
2914ac_test_CFLAGS=${CFLAGS+set}
2915ac_save_CFLAGS=$CFLAGS
2916CFLAGS="-g"
2917echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2918echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2919if test "${ac_cv_prog_cc_g+set}" = set; then
2920 echo $ECHO_N "(cached) $ECHO_C" >&6
2921else
2922 cat >conftest.$ac_ext <<_ACEOF
2923/* confdefs.h. */
2924_ACEOF
2925cat confdefs.h >>conftest.$ac_ext
2926cat >>conftest.$ac_ext <<_ACEOF
2927/* end confdefs.h. */
2928
2929int
2930main ()
2931{
2932
2933 ;
2934 return 0;
2935}
2936_ACEOF
2937rm -f conftest.$ac_objext
2938if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2939 (eval $ac_compile) 2>conftest.er1
2940 ac_status=$?
2941 grep -v '^ *+' conftest.er1 >conftest.err
2942 rm -f conftest.er1
2943 cat conftest.err >&5
2944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945 (exit $ac_status); } &&
2946 { ac_try='test -z "$ac_c_werror_flag"
2947 || test ! -s conftest.err'
2948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2949 (eval $ac_try) 2>&5
2950 ac_status=$?
2951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952 (exit $ac_status); }; } &&
2953 { ac_try='test -s conftest.$ac_objext'
2954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2955 (eval $ac_try) 2>&5
2956 ac_status=$?
2957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958 (exit $ac_status); }; }; then
2959 ac_cv_prog_cc_g=yes
2960else
2961 echo "$as_me: failed program was:" >&5
2962sed 's/^/| /' conftest.$ac_ext >&5
2963
2964ac_cv_prog_cc_g=no
2965fi
2966rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2967fi
2968echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2969echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2970if test "$ac_test_CFLAGS" = set; then
2971 CFLAGS=$ac_save_CFLAGS
2972elif test $ac_cv_prog_cc_g = yes; then
2973 if test "$GCC" = yes; then
2974 CFLAGS="-g -O2"
2975 else
2976 CFLAGS="-g"
2977 fi
2978else
2979 if test "$GCC" = yes; then
2980 CFLAGS="-O2"
2981 else
2982 CFLAGS=
2983 fi
2984fi
2985echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2986echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2987if test "${ac_cv_prog_cc_stdc+set}" = set; then
2988 echo $ECHO_N "(cached) $ECHO_C" >&6
2989else
2990 ac_cv_prog_cc_stdc=no
2991ac_save_CC=$CC
2992cat >conftest.$ac_ext <<_ACEOF
2993/* confdefs.h. */
2994_ACEOF
2995cat confdefs.h >>conftest.$ac_ext
2996cat >>conftest.$ac_ext <<_ACEOF
2997/* end confdefs.h. */
2998#include <stdarg.h>
2999#include <stdio.h>
3000#include <sys/types.h>
3001#include <sys/stat.h>
3002/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3003struct buf { int x; };
3004FILE * (*rcsopen) (struct buf *, struct stat *, int);
3005static char *e (p, i)
3006 char **p;
3007 int i;
3008{
3009 return p[i];
3010}
3011static char *f (char * (*g) (char **, int), char **p, ...)
3012{
3013 char *s;
3014 va_list v;
3015 va_start (v,p);
3016 s = g (p, va_arg (v,int));
3017 va_end (v);
3018 return s;
3019}
3020
3021/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3022 function prototypes and stuff, but not '\xHH' hex character constants.
3023 These don't provoke an error unfortunately, instead are silently treated
3024 as 'x'. The following induces an error, until -std1 is added to get
3025 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3026 array size at least. It's necessary to write '\x00'==0 to get something
3027 that's true only with -std1. */
3028int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3029
3030int test (int i, double x);
3031struct s1 {int (*f) (int a);};
3032struct s2 {int (*f) (double a);};
3033int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3034int argc;
3035char **argv;
3036int
3037main ()
3038{
3039return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3040 ;
3041 return 0;
3042}
3043_ACEOF
3044# Don't try gcc -ansi; that turns off useful extensions and
3045# breaks some systems' header files.
3046# AIX -qlanglvl=ansi
3047# Ultrix and OSF/1 -std1
3048# HP-UX 10.20 and later -Ae
3049# HP-UX older versions -Aa -D_HPUX_SOURCE
3050# SVR4 -Xc -D__EXTENSIONS__
3051for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3052do
3053 CC="$ac_save_CC $ac_arg"
3054 rm -f conftest.$ac_objext
3055if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3056 (eval $ac_compile) 2>conftest.er1
3057 ac_status=$?
3058 grep -v '^ *+' conftest.er1 >conftest.err
3059 rm -f conftest.er1
3060 cat conftest.err >&5
3061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062 (exit $ac_status); } &&
3063 { ac_try='test -z "$ac_c_werror_flag"
3064 || test ! -s conftest.err'
3065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3066 (eval $ac_try) 2>&5
3067 ac_status=$?
3068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069 (exit $ac_status); }; } &&
3070 { ac_try='test -s conftest.$ac_objext'
3071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3072 (eval $ac_try) 2>&5
3073 ac_status=$?
3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075 (exit $ac_status); }; }; then
3076 ac_cv_prog_cc_stdc=$ac_arg
3077break
3078else
3079 echo "$as_me: failed program was:" >&5
3080sed 's/^/| /' conftest.$ac_ext >&5
3081
3082fi
3083rm -f conftest.err conftest.$ac_objext
3084done
3085rm -f conftest.$ac_ext conftest.$ac_objext
3086CC=$ac_save_CC
3087
3088fi
3089
3090case "x$ac_cv_prog_cc_stdc" in
3091 x|xno)
3092 echo "$as_me:$LINENO: result: none needed" >&5
3093echo "${ECHO_T}none needed" >&6 ;;
3094 *)
3095 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3096echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3097 CC="$CC $ac_cv_prog_cc_stdc" ;;
3098esac
3099
3100# Some people use a C++ compiler to compile C. Since we use `exit',
3101# in C++ we need to declare it. In case someone uses the same compiler
3102# for both compiling C and C++ we need to have the C++ compiler decide
3103# the declaration of exit, since it's the most demanding environment.
3104cat >conftest.$ac_ext <<_ACEOF
3105#ifndef __cplusplus
3106 choke me
3107#endif
3108_ACEOF
3109rm -f conftest.$ac_objext
3110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3111 (eval $ac_compile) 2>conftest.er1
3112 ac_status=$?
3113 grep -v '^ *+' conftest.er1 >conftest.err
3114 rm -f conftest.er1
3115 cat conftest.err >&5
3116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117 (exit $ac_status); } &&
3118 { ac_try='test -z "$ac_c_werror_flag"
3119 || test ! -s conftest.err'
3120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3121 (eval $ac_try) 2>&5
3122 ac_status=$?
3123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124 (exit $ac_status); }; } &&
3125 { ac_try='test -s conftest.$ac_objext'
3126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3127 (eval $ac_try) 2>&5
3128 ac_status=$?
3129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3130 (exit $ac_status); }; }; then
3131 for ac_declaration in \
3132 '' \
3133 'extern "C" void std::exit (int) throw (); using std::exit;' \
3134 'extern "C" void std::exit (int); using std::exit;' \
3135 'extern "C" void exit (int) throw ();' \
3136 'extern "C" void exit (int);' \
3137 'void exit (int);'
3138do
3139 cat >conftest.$ac_ext <<_ACEOF
3140/* confdefs.h. */
3141_ACEOF
3142cat confdefs.h >>conftest.$ac_ext
3143cat >>conftest.$ac_ext <<_ACEOF
3144/* end confdefs.h. */
3145$ac_declaration
3146#include <stdlib.h>
3147int
3148main ()
3149{
3150exit (42);
3151 ;
3152 return 0;
3153}
3154_ACEOF
3155rm -f conftest.$ac_objext
3156if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3157 (eval $ac_compile) 2>conftest.er1
3158 ac_status=$?
3159 grep -v '^ *+' conftest.er1 >conftest.err
3160 rm -f conftest.er1
3161 cat conftest.err >&5
3162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163 (exit $ac_status); } &&
3164 { ac_try='test -z "$ac_c_werror_flag"
3165 || test ! -s conftest.err'
3166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3167 (eval $ac_try) 2>&5
3168 ac_status=$?
3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170 (exit $ac_status); }; } &&
3171 { ac_try='test -s conftest.$ac_objext'
3172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3173 (eval $ac_try) 2>&5
3174 ac_status=$?
3175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176 (exit $ac_status); }; }; then
3177 :
3178else
3179 echo "$as_me: failed program was:" >&5
3180sed 's/^/| /' conftest.$ac_ext >&5
3181
3182continue
3183fi
3184rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3185 cat >conftest.$ac_ext <<_ACEOF
3186/* confdefs.h. */
3187_ACEOF
3188cat confdefs.h >>conftest.$ac_ext
3189cat >>conftest.$ac_ext <<_ACEOF
3190/* end confdefs.h. */
3191$ac_declaration
3192int
3193main ()
3194{
3195exit (42);
3196 ;
3197 return 0;
3198}
3199_ACEOF
3200rm -f conftest.$ac_objext
3201if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3202 (eval $ac_compile) 2>conftest.er1
3203 ac_status=$?
3204 grep -v '^ *+' conftest.er1 >conftest.err
3205 rm -f conftest.er1
3206 cat conftest.err >&5
3207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208 (exit $ac_status); } &&
3209 { ac_try='test -z "$ac_c_werror_flag"
3210 || test ! -s conftest.err'
3211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3212 (eval $ac_try) 2>&5
3213 ac_status=$?
3214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3215 (exit $ac_status); }; } &&
3216 { ac_try='test -s conftest.$ac_objext'
3217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3218 (eval $ac_try) 2>&5
3219 ac_status=$?
3220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3221 (exit $ac_status); }; }; then
3222 break
3223else
3224 echo "$as_me: failed program was:" >&5
3225sed 's/^/| /' conftest.$ac_ext >&5
3226
3227fi
3228rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3229done
3230rm -f conftest*
3231if test -n "$ac_declaration"; then
3232 echo '#ifdef __cplusplus' >>confdefs.h
3233 echo $ac_declaration >>confdefs.h
3234 echo '#endif' >>confdefs.h
3235fi
3236
3237else
3238 echo "$as_me: failed program was:" >&5
3239sed 's/^/| /' conftest.$ac_ext >&5
3240
3241fi
3242rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3243ac_ext=c
3244ac_cpp='$CPP $CPPFLAGS'
3245ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3246ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3247ac_compiler_gnu=$ac_cv_c_compiler_gnu
3248DEPDIR="${am__leading_dot}deps"
3249
3250 ac_config_commands="$ac_config_commands depfiles"
3251
3252
3253am_make=${MAKE-make}
3254cat > confinc << 'END'
3255am__doit:
3256 @echo done
3257.PHONY: am__doit
3258END
3259# If we don't find an include directive, just comment out the code.
3260echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3261echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3262am__include="#"
3263am__quote=
3264_am_result=none
3265# First try GNU make style include.
3266echo "include confinc" > confmf
3267# We grep out `Entering directory' and `Leaving directory'
3268# messages which can occur if `w' ends up in MAKEFLAGS.
3269# In particular we don't look at `^make:' because GNU make might
3270# be invoked under some other name (usually "gmake"), in which
3271# case it prints its new name instead of `make'.
3272if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3273 am__include=include
3274 am__quote=
3275 _am_result=GNU
3276fi
3277# Now try BSD make style include.
3278if test "$am__include" = "#"; then
3279 echo '.include "confinc"' > confmf
3280 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3281 am__include=.include
3282 am__quote="\""
3283 _am_result=BSD
3284 fi
3285fi
3286
3287
3288echo "$as_me:$LINENO: result: $_am_result" >&5
3289echo "${ECHO_T}$_am_result" >&6
3290rm -f confinc confmf
3291
3292# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3293if test "${enable_dependency_tracking+set}" = set; then
3294 enableval="$enable_dependency_tracking"
3295
3296fi;
3297if test "x$enable_dependency_tracking" != xno; then
3298 am_depcomp="$ac_aux_dir/depcomp"
3299 AMDEPBACKSLASH='\'
3300fi
3301
3302
3303if test "x$enable_dependency_tracking" != xno; then
3304 AMDEP_TRUE=
3305 AMDEP_FALSE='#'
3306else
3307 AMDEP_TRUE='#'
3308 AMDEP_FALSE=
3309fi
3310
3311
3312
3313
3314depcc="$CC" am_compiler_list=
3315
3316echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3317echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3318if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3319 echo $ECHO_N "(cached) $ECHO_C" >&6
3320else
3321 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3322 # We make a subdir and do the tests there. Otherwise we can end up
3323 # making bogus files that we don't know about and never remove. For
3324 # instance it was reported that on HP-UX the gcc test will end up
3325 # making a dummy file named `D' -- because `-MD' means `put the output
3326 # in D'.
3327 mkdir conftest.dir
3328 # Copy depcomp to subdir because otherwise we won't find it if we're
3329 # using a relative directory.
3330 cp "$am_depcomp" conftest.dir
3331 cd conftest.dir
3332 # We will build objects and dependencies in a subdirectory because
3333 # it helps to detect inapplicable dependency modes. For instance
3334 # both Tru64's cc and ICC support -MD to output dependencies as a
3335 # side effect of compilation, but ICC will put the dependencies in
3336 # the current directory while Tru64 will put them in the object
3337 # directory.
3338 mkdir sub
3339
3340 am_cv_CC_dependencies_compiler_type=none
3341 if test "$am_compiler_list" = ""; then
3342 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3343 fi
3344 for depmode in $am_compiler_list; do
3345 # Setup a source with many dependencies, because some compilers
3346 # like to wrap large dependency lists on column 80 (with \), and
3347 # we should not choose a depcomp mode which is confused by this.
3348 #
3349 # We need to recreate these files for each test, as the compiler may
3350 # overwrite some of them when testing with obscure command lines.
3351 # This happens at least with the AIX C compiler.
3352 : > sub/conftest.c
3353 for i in 1 2 3 4 5 6; do
3354 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3355 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3356 # Solaris 8's {/usr,}/bin/sh.
3357 touch sub/conftst$i.h
3358 done
3359 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3360
3361 case $depmode in
3362 nosideeffect)
3363 # after this tag, mechanisms are not by side-effect, so they'll
3364 # only be used when explicitly requested
3365 if test "x$enable_dependency_tracking" = xyes; then
3366 continue
3367 else
3368 break
3369 fi
3370 ;;
3371 none) break ;;
3372 esac
3373 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3374 # mode. It turns out that the SunPro C++ compiler does not properly
3375 # handle `-M -o', and we need to detect this.
3376 if depmode=$depmode \
3377 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3378 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3379 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3380 >/dev/null 2>conftest.err &&
3381 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3382 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3383 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3384 # icc doesn't choke on unknown options, it will just issue warnings
3385 # or remarks (even with -Werror). So we grep stderr for any message
3386 # that says an option was ignored or not supported.
3387 # When given -MP, icc 7.0 and 7.1 complain thusly:
3388 # icc: Command line warning: ignoring option '-M'; no argument required
3389 # The diagnosis changed in icc 8.0:
3390 # icc: Command line remark: option '-MP' not supported
3391 if (grep 'ignoring option' conftest.err ||
3392 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3393 am_cv_CC_dependencies_compiler_type=$depmode
3394 break
3395 fi
3396 fi
3397 done
3398
3399 cd ..
3400 rm -rf conftest.dir
3401else
3402 am_cv_CC_dependencies_compiler_type=none
3403fi
3404
3405fi
3406echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3407echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3408CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3409
3410
3411
3412if
3413 test "x$enable_dependency_tracking" != xno \
3414 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3415 am__fastdepCC_TRUE=
3416 am__fastdepCC_FALSE='#'
3417else
3418 am__fastdepCC_TRUE='#'
3419 am__fastdepCC_FALSE=
3420fi
3421
3422
3423# Check whether --enable-shared or --disable-shared was given.
3424if test "${enable_shared+set}" = set; then
3425 enableval="$enable_shared"
3426 p=${PACKAGE-default}
3427 case $enableval in
3428 yes) enable_shared=yes ;;
3429 no) enable_shared=no ;;
3430 *)
3431 enable_shared=no
3432 # Look at the argument we got. We use all the common list separators.
3433 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3434 for pkg in $enableval; do
3435 IFS="$lt_save_ifs"
3436 if test "X$pkg" = "X$p"; then
3437 enable_shared=yes
3438 fi
3439 done
3440 IFS="$lt_save_ifs"
3441 ;;
3442 esac
3443else
3444 enable_shared=yes
3445fi;
3446
3447# Check whether --enable-static or --disable-static was given.
3448if test "${enable_static+set}" = set; then
3449 enableval="$enable_static"
3450 p=${PACKAGE-default}
3451 case $enableval in
3452 yes) enable_static=yes ;;
3453 no) enable_static=no ;;
3454 *)
3455 enable_static=no
3456 # Look at the argument we got. We use all the common list separators.
3457 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3458 for pkg in $enableval; do
3459 IFS="$lt_save_ifs"
3460 if test "X$pkg" = "X$p"; then
3461 enable_static=yes
3462 fi
3463 done
3464 IFS="$lt_save_ifs"
3465 ;;
3466 esac
3467else
3468 enable_static=yes
3469fi;
3470
3471# Check whether --enable-fast-install or --disable-fast-install was given.
3472if test "${enable_fast_install+set}" = set; then
3473 enableval="$enable_fast_install"
3474 p=${PACKAGE-default}
3475 case $enableval in
3476 yes) enable_fast_install=yes ;;
3477 no) enable_fast_install=no ;;
3478 *)
3479 enable_fast_install=no
3480 # Look at the argument we got. We use all the common list separators.
3481 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3482 for pkg in $enableval; do
3483 IFS="$lt_save_ifs"
3484 if test "X$pkg" = "X$p"; then
3485 enable_fast_install=yes
3486 fi
3487 done
3488 IFS="$lt_save_ifs"
3489 ;;
3490 esac
3491else
3492 enable_fast_install=yes
3493fi;
3494
3495echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3496echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3497if test "${lt_cv_path_SED+set}" = set; then
3498 echo $ECHO_N "(cached) $ECHO_C" >&6
3499else
3500 # Loop through the user's path and test for sed and gsed.
3501# Then use that list of sed's as ones to test for truncation.
3502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3503for as_dir in $PATH
3504do
3505 IFS=$as_save_IFS
3506 test -z "$as_dir" && as_dir=.
3507 for lt_ac_prog in sed gsed; do
3508 for ac_exec_ext in '' $ac_executable_extensions; do
3509 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3510 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3511 fi
3512 done
3513 done
3514done
3515IFS=$as_save_IFS
3516lt_ac_max=0
3517lt_ac_count=0
3518# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3519# along with /bin/sed that truncates output.
3520for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3521 test ! -f $lt_ac_sed && continue
3522 cat /dev/null > conftest.in
3523 lt_ac_count=0
3524 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3525 # Check for GNU sed and select it if it is found.
3526 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3527 lt_cv_path_SED=$lt_ac_sed
3528 break
3529 fi
3530 while true; do
3531 cat conftest.in conftest.in >conftest.tmp
3532 mv conftest.tmp conftest.in
3533 cp conftest.in conftest.nl
3534 echo >>conftest.nl
3535 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3536 cmp -s conftest.out conftest.nl || break
3537 # 10000 chars as input seems more than enough
3538 test $lt_ac_count -gt 10 && break
3539 lt_ac_count=`expr $lt_ac_count + 1`
3540 if test $lt_ac_count -gt $lt_ac_max; then
3541 lt_ac_max=$lt_ac_count
3542 lt_cv_path_SED=$lt_ac_sed
3543 fi
3544 done
3545done
3546
3547fi
3548
3549SED=$lt_cv_path_SED
3550
3551echo "$as_me:$LINENO: result: $SED" >&5
3552echo "${ECHO_T}$SED" >&6
3553
3554echo "$as_me:$LINENO: checking for egrep" >&5
3555echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3556if test "${ac_cv_prog_egrep+set}" = set; then
3557 echo $ECHO_N "(cached) $ECHO_C" >&6
3558else
3559 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3560 then ac_cv_prog_egrep='grep -E'
3561 else ac_cv_prog_egrep='egrep'
3562 fi
3563fi
3564echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3565echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3566 EGREP=$ac_cv_prog_egrep
3567
3568
3569
3570# Check whether --with-gnu-ld or --without-gnu-ld was given.
3571if test "${with_gnu_ld+set}" = set; then
3572 withval="$with_gnu_ld"
3573 test "$withval" = no || with_gnu_ld=yes
3574else
3575 with_gnu_ld=no
3576fi;
3577ac_prog=ld
3578if test "$GCC" = yes; then
3579 # Check if gcc -print-prog-name=ld gives a path.
3580 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3581echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3582 case $host in
3583 *-*-mingw*)
3584 # gcc leaves a trailing carriage return which upsets mingw
3585 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3586 *)
3587 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3588 esac
3589 case $ac_prog in
3590 # Accept absolute paths.
3591 [\\/]* | ?:[\\/]*)
3592 re_direlt='/[^/][^/]*/\.\./'
3593 # Canonicalize the pathname of ld
3594 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3595 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3596 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3597 done
3598 test -z "$LD" && LD="$ac_prog"
3599 ;;
3600 "")
3601 # If it fails, then pretend we aren't using GCC.
3602 ac_prog=ld
3603 ;;
3604 *)
3605 # If it is relative, then search for the first ld in PATH.
3606 with_gnu_ld=unknown
3607 ;;
3608 esac
3609elif test "$with_gnu_ld" = yes; then
3610 echo "$as_me:$LINENO: checking for GNU ld" >&5
3611echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3612else
3613 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3614echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3615fi
3616if test "${lt_cv_path_LD+set}" = set; then
3617 echo $ECHO_N "(cached) $ECHO_C" >&6
3618else
3619 if test -z "$LD"; then
3620 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3621 for ac_dir in $PATH; do
3622 IFS="$lt_save_ifs"
3623 test -z "$ac_dir" && ac_dir=.
3624 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3625 lt_cv_path_LD="$ac_dir/$ac_prog"
3626 # Check to see if the program is GNU ld. I'd rather use --version,
3627 # but apparently some variants of GNU ld only accept -v.
3628 # Break only if it was the GNU/non-GNU ld that we prefer.
3629 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3630 *GNU* | *'with BFD'*)
3631 test "$with_gnu_ld" != no && break
3632 ;;
3633 *)
3634 test "$with_gnu_ld" != yes && break
3635 ;;
3636 esac
3637 fi
3638 done
3639 IFS="$lt_save_ifs"
3640else
3641 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3642fi
3643fi
3644
3645LD="$lt_cv_path_LD"
3646if test -n "$LD"; then
3647 echo "$as_me:$LINENO: result: $LD" >&5
3648echo "${ECHO_T}$LD" >&6
3649else
3650 echo "$as_me:$LINENO: result: no" >&5
3651echo "${ECHO_T}no" >&6
3652fi
3653test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3654echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3655 { (exit 1); exit 1; }; }
3656echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3657echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3658if test "${lt_cv_prog_gnu_ld+set}" = set; then
3659 echo $ECHO_N "(cached) $ECHO_C" >&6
3660else
3661 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3662case `$LD -v 2>&1 </dev/null` in
3663*GNU* | *'with BFD'*)
3664 lt_cv_prog_gnu_ld=yes
3665 ;;
3666*)
3667 lt_cv_prog_gnu_ld=no
3668 ;;
3669esac
3670fi
3671echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3672echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3673with_gnu_ld=$lt_cv_prog_gnu_ld
3674
3675
3676echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3677echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3678if test "${lt_cv_ld_reload_flag+set}" = set; then
3679 echo $ECHO_N "(cached) $ECHO_C" >&6
3680else
3681 lt_cv_ld_reload_flag='-r'
3682fi
3683echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3684echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3685reload_flag=$lt_cv_ld_reload_flag
3686case $reload_flag in
3687"" | " "*) ;;
3688*) reload_flag=" $reload_flag" ;;
3689esac
3690reload_cmds='$LD$reload_flag -o $output$reload_objs'
3691case $host_os in
3692 darwin*)
3693 if test "$GCC" = yes; then
3694 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3695 else
3696 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3697 fi
3698 ;;
3699esac
3700
3701echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3702echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3703if test "${lt_cv_path_NM+set}" = set; then
3704 echo $ECHO_N "(cached) $ECHO_C" >&6
3705else
3706 if test -n "$NM"; then
3707 # Let the user override the test.
3708 lt_cv_path_NM="$NM"
3709else
3710 lt_nm_to_check="${ac_tool_prefix}nm"
3711 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3712 lt_nm_to_check="$lt_nm_to_check nm"
3713 fi
3714 for lt_tmp_nm in $lt_nm_to_check; do
3715 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3716 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3717 IFS="$lt_save_ifs"
3718 test -z "$ac_dir" && ac_dir=.
3719 tmp_nm="$ac_dir/$lt_tmp_nm"
3720 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3721 # Check to see if the nm accepts a BSD-compat flag.
3722 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3723 # nm: unknown option "B" ignored
3724 # Tru64's nm complains that /dev/null is an invalid object file
3725 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3726 */dev/null* | *'Invalid file or object type'*)
3727 lt_cv_path_NM="$tmp_nm -B"
3728 break
3729 ;;
3730 *)
3731 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3732 */dev/null*)
3733 lt_cv_path_NM="$tmp_nm -p"
3734 break
3735 ;;
3736 *)
3737 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3738 continue # so that we can try to find one that supports BSD flags
3739 ;;
3740 esac
3741 ;;
3742 esac
3743 fi
3744 done
3745 IFS="$lt_save_ifs"
3746 done
3747 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3748fi
3749fi
3750echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3751echo "${ECHO_T}$lt_cv_path_NM" >&6
3752NM="$lt_cv_path_NM"
3753
3754echo "$as_me:$LINENO: checking whether ln -s works" >&5
3755echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3756LN_S=$as_ln_s
3757if test "$LN_S" = "ln -s"; then
3758 echo "$as_me:$LINENO: result: yes" >&5
3759echo "${ECHO_T}yes" >&6
3760else
3761 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3762echo "${ECHO_T}no, using $LN_S" >&6
3763fi
3764
3765echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3766echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3767if test "${lt_cv_deplibs_check_method+set}" = set; then
3768 echo $ECHO_N "(cached) $ECHO_C" >&6
3769else
3770 lt_cv_file_magic_cmd='$MAGIC_CMD'
3771lt_cv_file_magic_test_file=
3772lt_cv_deplibs_check_method='unknown'
3773# Need to set the preceding variable on all platforms that support
3774# interlibrary dependencies.
3775# 'none' -- dependencies not supported.
3776# `unknown' -- same as none, but documents that we really don't know.
3777# 'pass_all' -- all dependencies passed with no checks.
3778# 'test_compile' -- check by making test program.
3779# 'file_magic [[regex]]' -- check by looking for files in library path
3780# which responds to the $file_magic_cmd with a given extended regex.
3781# If you have `file' or equivalent on your system and you're not sure
3782# whether `pass_all' will *always* work, you probably want this one.
3783
3784case $host_os in
3785aix4* | aix5*)
3786 lt_cv_deplibs_check_method=pass_all
3787 ;;
3788
3789beos*)
3790 lt_cv_deplibs_check_method=pass_all
3791 ;;
3792
3793bsdi[45]*)
3794 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3795 lt_cv_file_magic_cmd='/usr/bin/file -L'
3796 lt_cv_file_magic_test_file=/shlib/libc.so
3797 ;;
3798
3799cygwin*)
3800 # func_win32_libid is a shell function defined in ltmain.sh
3801 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3802 lt_cv_file_magic_cmd='func_win32_libid'
3803 ;;
3804
3805mingw* | pw32*)
3806 # Base MSYS/MinGW do not provide the 'file' command needed by
3807 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3808 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3809 lt_cv_file_magic_cmd='$OBJDUMP -f'
3810 ;;
3811
3812darwin* | rhapsody*)
3813 lt_cv_deplibs_check_method=pass_all
3814 ;;
3815
3816freebsd* | kfreebsd*-gnu | dragonfly*)
3817 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3818 case $host_cpu in
3819 i*86 )
3820 # Not sure whether the presence of OpenBSD here was a mistake.
3821 # Let's accept both of them until this is cleared up.
3822 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3823 lt_cv_file_magic_cmd=/usr/bin/file
3824 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3825 ;;
3826 esac
3827 else
3828 lt_cv_deplibs_check_method=pass_all
3829 fi
3830 ;;
3831
3832gnu*)
3833 lt_cv_deplibs_check_method=pass_all
3834 ;;
3835
3836hpux10.20* | hpux11*)
3837 lt_cv_file_magic_cmd=/usr/bin/file
3838 case $host_cpu in
3839 ia64*)
3840 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3841 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3842 ;;
3843 hppa*64*)
3844 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]'
3845 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3846 ;;
3847 *)
3848 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3849 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3850 ;;
3851 esac
3852 ;;
3853
3854interix3*)
3855 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3856 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3857 ;;
3858
3859irix5* | irix6* | nonstopux*)
3860 case $LD in
3861 *-32|*"-32 ") libmagic=32-bit;;
3862 *-n32|*"-n32 ") libmagic=N32;;
3863 *-64|*"-64 ") libmagic=64-bit;;
3864 *) libmagic=never-match;;
3865 esac
3866 lt_cv_deplibs_check_method=pass_all
3867 ;;
3868
3869# This must be Linux ELF.
3870linux*)
3871 lt_cv_deplibs_check_method=pass_all
3872 ;;
3873
3874netbsd*)
3875 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3876 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3877 else
3878 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3879 fi
3880 ;;
3881
3882newos6*)
3883 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3884 lt_cv_file_magic_cmd=/usr/bin/file
3885 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3886 ;;
3887
3888nto-qnx*)
3889 lt_cv_deplibs_check_method=unknown
3890 ;;
3891
3892openbsd*)
3893 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3894 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3895 else
3896 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3897 fi
3898 ;;
3899
3900osf3* | osf4* | osf5*)
3901 lt_cv_deplibs_check_method=pass_all
3902 ;;
3903
3904solaris*)
3905 lt_cv_deplibs_check_method=pass_all
3906 ;;
3907
3908sysv4 | sysv4.3*)
3909 case $host_vendor in
3910 motorola)
3911 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]'
3912 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3913 ;;
3914 ncr)
3915 lt_cv_deplibs_check_method=pass_all
3916 ;;
3917 sequent)
3918 lt_cv_file_magic_cmd='/bin/file'
3919 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3920 ;;
3921 sni)
3922 lt_cv_file_magic_cmd='/bin/file'
3923 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3924 lt_cv_file_magic_test_file=/lib/libc.so
3925 ;;
3926 siemens)
3927 lt_cv_deplibs_check_method=pass_all
3928 ;;
3929 pc)
3930 lt_cv_deplibs_check_method=pass_all
3931 ;;
3932 esac
3933 ;;
3934
3935sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3936 lt_cv_deplibs_check_method=pass_all
3937 ;;
3938esac
3939
3940fi
3941echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3942echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3943file_magic_cmd=$lt_cv_file_magic_cmd
3944deplibs_check_method=$lt_cv_deplibs_check_method
3945test -z "$deplibs_check_method" && deplibs_check_method=unknown
3946
3947
3948
3949
3950# If no C compiler was specified, use CC.
3951LTCC=${LTCC-"$CC"}
3952
3953# If no C compiler flags were specified, use CFLAGS.
3954LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3955
3956# Allow CC to be a program name with arguments.
3957compiler=$CC
3958
3959
3960# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3961if test "${enable_libtool_lock+set}" = set; then
3962 enableval="$enable_libtool_lock"
3963
3964fi;
3965test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3966
3967# Some flags need to be propagated to the compiler or linker for good
3968# libtool support.
3969case $host in
3970ia64-*-hpux*)
3971 # Find out which ABI we are using.
3972 echo 'int i;' > conftest.$ac_ext
3973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3974 (eval $ac_compile) 2>&5
3975 ac_status=$?
3976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977 (exit $ac_status); }; then
3978 case `/usr/bin/file conftest.$ac_objext` in
3979 *ELF-32*)
3980 HPUX_IA64_MODE="32"
3981 ;;
3982 *ELF-64*)
3983 HPUX_IA64_MODE="64"
3984 ;;
3985 esac
3986 fi
3987 rm -rf conftest*
3988 ;;
3989*-*-irix6*)
3990 # Find out which ABI we are using.
5e9b5d83 3991 echo '#line 3991 "configure"' > conftest.$ac_ext
bf9f3bac 3992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3993 (eval $ac_compile) 2>&5
3994 ac_status=$?
3995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996 (exit $ac_status); }; then
3997 if test "$lt_cv_prog_gnu_ld" = yes; then
3998 case `/usr/bin/file conftest.$ac_objext` in
3999 *32-bit*)
4000 LD="${LD-ld} -melf32bsmip"
4001 ;;
4002 *N32*)
4003 LD="${LD-ld} -melf32bmipn32"
4004 ;;
4005 *64-bit*)
4006 LD="${LD-ld} -melf64bmip"
4007 ;;
4008 esac
4009 else
4010 case `/usr/bin/file conftest.$ac_objext` in
4011 *32-bit*)
4012 LD="${LD-ld} -32"
4013 ;;
4014 *N32*)
4015 LD="${LD-ld} -n32"
4016 ;;
4017 *64-bit*)
4018 LD="${LD-ld} -64"
4019 ;;
4020 esac
4021 fi
4022 fi
4023 rm -rf conftest*
4024 ;;
4025
4026x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4027 # Find out which ABI we are using.
4028 echo 'int i;' > conftest.$ac_ext
4029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4030 (eval $ac_compile) 2>&5
4031 ac_status=$?
4032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4033 (exit $ac_status); }; then
4034 case `/usr/bin/file conftest.o` in
4035 *32-bit*)
4036 case $host in
4037 x86_64-*linux*)
4038 LD="${LD-ld} -m elf_i386"
4039 ;;
4040 ppc64-*linux*|powerpc64-*linux*)
4041 LD="${LD-ld} -m elf32ppclinux"
4042 ;;
4043 s390x-*linux*)
4044 LD="${LD-ld} -m elf_s390"
4045 ;;
4046 sparc64-*linux*)
4047 LD="${LD-ld} -m elf32_sparc"
4048 ;;
4049 esac
4050 ;;
4051 *64-bit*)
4052 case $host in
4053 x86_64-*linux*)
4054 LD="${LD-ld} -m elf_x86_64"
4055 ;;
4056 ppc*-*linux*|powerpc*-*linux*)
4057 LD="${LD-ld} -m elf64ppc"
4058 ;;
4059 s390*-*linux*)
4060 LD="${LD-ld} -m elf64_s390"
4061 ;;
4062 sparc*-*linux*)
4063 LD="${LD-ld} -m elf64_sparc"
4064 ;;
4065 esac
4066 ;;
4067 esac
4068 fi
4069 rm -rf conftest*
4070 ;;
4071
4072*-*-sco3.2v5*)
4073 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4074 SAVE_CFLAGS="$CFLAGS"
4075 CFLAGS="$CFLAGS -belf"
4076 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4077echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4078if test "${lt_cv_cc_needs_belf+set}" = set; then
4079 echo $ECHO_N "(cached) $ECHO_C" >&6
4080else
4081 ac_ext=c
4082ac_cpp='$CPP $CPPFLAGS'
4083ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4084ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4085ac_compiler_gnu=$ac_cv_c_compiler_gnu
4086
4087 cat >conftest.$ac_ext <<_ACEOF
4088/* confdefs.h. */
4089_ACEOF
4090cat confdefs.h >>conftest.$ac_ext
4091cat >>conftest.$ac_ext <<_ACEOF
4092/* end confdefs.h. */
4093
4094int
4095main ()
4096{
4097
4098 ;
4099 return 0;
4100}
4101_ACEOF
4102rm -f conftest.$ac_objext conftest$ac_exeext
4103if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4104 (eval $ac_link) 2>conftest.er1
4105 ac_status=$?
4106 grep -v '^ *+' conftest.er1 >conftest.err
4107 rm -f conftest.er1
4108 cat conftest.err >&5
4109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110 (exit $ac_status); } &&
4111 { ac_try='test -z "$ac_c_werror_flag"
4112 || test ! -s conftest.err'
4113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4114 (eval $ac_try) 2>&5
4115 ac_status=$?
4116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 (exit $ac_status); }; } &&
4118 { ac_try='test -s conftest$ac_exeext'
4119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4120 (eval $ac_try) 2>&5
4121 ac_status=$?
4122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123 (exit $ac_status); }; }; then
4124 lt_cv_cc_needs_belf=yes
4125else
4126 echo "$as_me: failed program was:" >&5
4127sed 's/^/| /' conftest.$ac_ext >&5
4128
4129lt_cv_cc_needs_belf=no
4130fi
4131rm -f conftest.err conftest.$ac_objext \
4132 conftest$ac_exeext conftest.$ac_ext
4133 ac_ext=c
4134ac_cpp='$CPP $CPPFLAGS'
4135ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4136ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4137ac_compiler_gnu=$ac_cv_c_compiler_gnu
4138
4139fi
4140echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4141echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4142 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4143 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4144 CFLAGS="$SAVE_CFLAGS"
4145 fi
4146 ;;
4147sparc*-*solaris*)
4148 # Find out which ABI we are using.
4149 echo 'int i;' > conftest.$ac_ext
4150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4151 (eval $ac_compile) 2>&5
4152 ac_status=$?
4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); }; then
4155 case `/usr/bin/file conftest.o` in
4156 *64-bit*)
4157 case $lt_cv_prog_gnu_ld in
4158 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4159 *) LD="${LD-ld} -64" ;;
4160 esac
4161 ;;
4162 esac
4163 fi
4164 rm -rf conftest*
4165 ;;
4166
4167
4168esac
4169
4170need_locks="$enable_libtool_lock"
4171
4172
4173ac_ext=c
4174ac_cpp='$CPP $CPPFLAGS'
4175ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4176ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4177ac_compiler_gnu=$ac_cv_c_compiler_gnu
4178echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4179echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4180# On Suns, sometimes $CPP names a directory.
4181if test -n "$CPP" && test -d "$CPP"; then
4182 CPP=
4183fi
4184if test -z "$CPP"; then
4185 if test "${ac_cv_prog_CPP+set}" = set; then
4186 echo $ECHO_N "(cached) $ECHO_C" >&6
4187else
4188 # Double quotes because CPP needs to be expanded
4189 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4190 do
4191 ac_preproc_ok=false
4192for ac_c_preproc_warn_flag in '' yes
4193do
4194 # Use a header file that comes with gcc, so configuring glibc
4195 # with a fresh cross-compiler works.
4196 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4197 # <limits.h> exists even on freestanding compilers.
4198 # On the NeXT, cc -E runs the code through the compiler's parser,
4199 # not just through cpp. "Syntax error" is here to catch this case.
4200 cat >conftest.$ac_ext <<_ACEOF
4201/* confdefs.h. */
4202_ACEOF
4203cat confdefs.h >>conftest.$ac_ext
4204cat >>conftest.$ac_ext <<_ACEOF
4205/* end confdefs.h. */
4206#ifdef __STDC__
4207# include <limits.h>
4208#else
4209# include <assert.h>
4210#endif
4211 Syntax error
4212_ACEOF
4213if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4214 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4215 ac_status=$?
4216 grep -v '^ *+' conftest.er1 >conftest.err
4217 rm -f conftest.er1
4218 cat conftest.err >&5
4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220 (exit $ac_status); } >/dev/null; then
4221 if test -s conftest.err; then
4222 ac_cpp_err=$ac_c_preproc_warn_flag
4223 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4224 else
4225 ac_cpp_err=
4226 fi
4227else
4228 ac_cpp_err=yes
4229fi
4230if test -z "$ac_cpp_err"; then
4231 :
4232else
4233 echo "$as_me: failed program was:" >&5
4234sed 's/^/| /' conftest.$ac_ext >&5
4235
4236 # Broken: fails on valid input.
4237continue
4238fi
4239rm -f conftest.err conftest.$ac_ext
4240
4241 # OK, works on sane cases. Now check whether non-existent headers
4242 # can be detected and how.
4243 cat >conftest.$ac_ext <<_ACEOF
4244/* confdefs.h. */
4245_ACEOF
4246cat confdefs.h >>conftest.$ac_ext
4247cat >>conftest.$ac_ext <<_ACEOF
4248/* end confdefs.h. */
4249#include <ac_nonexistent.h>
4250_ACEOF
4251if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4252 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4253 ac_status=$?
4254 grep -v '^ *+' conftest.er1 >conftest.err
4255 rm -f conftest.er1
4256 cat conftest.err >&5
4257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258 (exit $ac_status); } >/dev/null; then
4259 if test -s conftest.err; then
4260 ac_cpp_err=$ac_c_preproc_warn_flag
4261 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4262 else
4263 ac_cpp_err=
4264 fi
4265else
4266 ac_cpp_err=yes
4267fi
4268if test -z "$ac_cpp_err"; then
4269 # Broken: success on invalid input.
4270continue
4271else
4272 echo "$as_me: failed program was:" >&5
4273sed 's/^/| /' conftest.$ac_ext >&5
4274
4275 # Passes both tests.
4276ac_preproc_ok=:
4277break
4278fi
4279rm -f conftest.err conftest.$ac_ext
4280
4281done
4282# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4283rm -f conftest.err conftest.$ac_ext
4284if $ac_preproc_ok; then
4285 break
4286fi
4287
4288 done
4289 ac_cv_prog_CPP=$CPP
4290
4291fi
4292 CPP=$ac_cv_prog_CPP
4293else
4294 ac_cv_prog_CPP=$CPP
4295fi
4296echo "$as_me:$LINENO: result: $CPP" >&5
4297echo "${ECHO_T}$CPP" >&6
4298ac_preproc_ok=false
4299for ac_c_preproc_warn_flag in '' yes
4300do
4301 # Use a header file that comes with gcc, so configuring glibc
4302 # with a fresh cross-compiler works.
4303 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4304 # <limits.h> exists even on freestanding compilers.
4305 # On the NeXT, cc -E runs the code through the compiler's parser,
4306 # not just through cpp. "Syntax error" is here to catch this case.
4307 cat >conftest.$ac_ext <<_ACEOF
4308/* confdefs.h. */
4309_ACEOF
4310cat confdefs.h >>conftest.$ac_ext
4311cat >>conftest.$ac_ext <<_ACEOF
4312/* end confdefs.h. */
4313#ifdef __STDC__
4314# include <limits.h>
4315#else
4316# include <assert.h>
4317#endif
4318 Syntax error
4319_ACEOF
4320if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4321 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4322 ac_status=$?
4323 grep -v '^ *+' conftest.er1 >conftest.err
4324 rm -f conftest.er1
4325 cat conftest.err >&5
4326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4327 (exit $ac_status); } >/dev/null; then
4328 if test -s conftest.err; then
4329 ac_cpp_err=$ac_c_preproc_warn_flag
4330 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4331 else
4332 ac_cpp_err=
4333 fi
4334else
4335 ac_cpp_err=yes
4336fi
4337if test -z "$ac_cpp_err"; then
4338 :
4339else
4340 echo "$as_me: failed program was:" >&5
4341sed 's/^/| /' conftest.$ac_ext >&5
4342
4343 # Broken: fails on valid input.
4344continue
4345fi
4346rm -f conftest.err conftest.$ac_ext
4347
4348 # OK, works on sane cases. Now check whether non-existent headers
4349 # can be detected and how.
4350 cat >conftest.$ac_ext <<_ACEOF
4351/* confdefs.h. */
4352_ACEOF
4353cat confdefs.h >>conftest.$ac_ext
4354cat >>conftest.$ac_ext <<_ACEOF
4355/* end confdefs.h. */
4356#include <ac_nonexistent.h>
4357_ACEOF
4358if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4359 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4360 ac_status=$?
4361 grep -v '^ *+' conftest.er1 >conftest.err
4362 rm -f conftest.er1
4363 cat conftest.err >&5
4364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365 (exit $ac_status); } >/dev/null; then
4366 if test -s conftest.err; then
4367 ac_cpp_err=$ac_c_preproc_warn_flag
4368 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4369 else
4370 ac_cpp_err=
4371 fi
4372else
4373 ac_cpp_err=yes
4374fi
4375if test -z "$ac_cpp_err"; then
4376 # Broken: success on invalid input.
4377continue
4378else
4379 echo "$as_me: failed program was:" >&5
4380sed 's/^/| /' conftest.$ac_ext >&5
4381
4382 # Passes both tests.
4383ac_preproc_ok=:
4384break
4385fi
4386rm -f conftest.err conftest.$ac_ext
4387
4388done
4389# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4390rm -f conftest.err conftest.$ac_ext
4391if $ac_preproc_ok; then
4392 :
4393else
4394 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4395See \`config.log' for more details." >&5
4396echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4397See \`config.log' for more details." >&2;}
4398 { (exit 1); exit 1; }; }
4399fi
4400
4401ac_ext=c
4402ac_cpp='$CPP $CPPFLAGS'
4403ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4404ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4405ac_compiler_gnu=$ac_cv_c_compiler_gnu
4406
4407
4408echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4409echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4410if test "${ac_cv_header_stdc+set}" = set; then
4411 echo $ECHO_N "(cached) $ECHO_C" >&6
4412else
4413 cat >conftest.$ac_ext <<_ACEOF
4414/* confdefs.h. */
4415_ACEOF
4416cat confdefs.h >>conftest.$ac_ext
4417cat >>conftest.$ac_ext <<_ACEOF
4418/* end confdefs.h. */
4419#include <stdlib.h>
4420#include <stdarg.h>
4421#include <string.h>
4422#include <float.h>
4423
4424int
4425main ()
4426{
4427
4428 ;
4429 return 0;
4430}
4431_ACEOF
4432rm -f conftest.$ac_objext
4433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4434 (eval $ac_compile) 2>conftest.er1
4435 ac_status=$?
4436 grep -v '^ *+' conftest.er1 >conftest.err
4437 rm -f conftest.er1
4438 cat conftest.err >&5
4439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440 (exit $ac_status); } &&
4441 { ac_try='test -z "$ac_c_werror_flag"
4442 || test ! -s conftest.err'
4443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4444 (eval $ac_try) 2>&5
4445 ac_status=$?
4446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447 (exit $ac_status); }; } &&
4448 { ac_try='test -s conftest.$ac_objext'
4449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4450 (eval $ac_try) 2>&5
4451 ac_status=$?
4452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453 (exit $ac_status); }; }; then
4454 ac_cv_header_stdc=yes
4455else
4456 echo "$as_me: failed program was:" >&5
4457sed 's/^/| /' conftest.$ac_ext >&5
4458
4459ac_cv_header_stdc=no
4460fi
4461rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4462
4463if test $ac_cv_header_stdc = yes; then
4464 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4465 cat >conftest.$ac_ext <<_ACEOF
4466/* confdefs.h. */
4467_ACEOF
4468cat confdefs.h >>conftest.$ac_ext
4469cat >>conftest.$ac_ext <<_ACEOF
4470/* end confdefs.h. */
4471#include <string.h>
4472
4473_ACEOF
4474if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4475 $EGREP "memchr" >/dev/null 2>&1; then
4476 :
4477else
4478 ac_cv_header_stdc=no
4479fi
4480rm -f conftest*
4481
4482fi
4483
4484if test $ac_cv_header_stdc = yes; then
4485 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4486 cat >conftest.$ac_ext <<_ACEOF
4487/* confdefs.h. */
4488_ACEOF
4489cat confdefs.h >>conftest.$ac_ext
4490cat >>conftest.$ac_ext <<_ACEOF
4491/* end confdefs.h. */
4492#include <stdlib.h>
4493
4494_ACEOF
4495if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4496 $EGREP "free" >/dev/null 2>&1; then
4497 :
4498else
4499 ac_cv_header_stdc=no
4500fi
4501rm -f conftest*
4502
4503fi
4504
4505if test $ac_cv_header_stdc = yes; then
4506 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4507 if test "$cross_compiling" = yes; then
4508 :
4509else
4510 cat >conftest.$ac_ext <<_ACEOF
4511/* confdefs.h. */
4512_ACEOF
4513cat confdefs.h >>conftest.$ac_ext
4514cat >>conftest.$ac_ext <<_ACEOF
4515/* end confdefs.h. */
4516#include <ctype.h>
4517#if ((' ' & 0x0FF) == 0x020)
4518# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4519# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4520#else
4521# define ISLOWER(c) \
4522 (('a' <= (c) && (c) <= 'i') \
4523 || ('j' <= (c) && (c) <= 'r') \
4524 || ('s' <= (c) && (c) <= 'z'))
4525# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4526#endif
4527
4528#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4529int
4530main ()
4531{
4532 int i;
4533 for (i = 0; i < 256; i++)
4534 if (XOR (islower (i), ISLOWER (i))
4535 || toupper (i) != TOUPPER (i))
4536 exit(2);
4537 exit (0);
4538}
4539_ACEOF
4540rm -f conftest$ac_exeext
4541if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4542 (eval $ac_link) 2>&5
4543 ac_status=$?
4544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4547 (eval $ac_try) 2>&5
4548 ac_status=$?
4549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550 (exit $ac_status); }; }; then
4551 :
4552else
4553 echo "$as_me: program exited with status $ac_status" >&5
4554echo "$as_me: failed program was:" >&5
4555sed 's/^/| /' conftest.$ac_ext >&5
4556
4557( exit $ac_status )
4558ac_cv_header_stdc=no
4559fi
4560rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4561fi
4562fi
4563fi
4564echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4565echo "${ECHO_T}$ac_cv_header_stdc" >&6
4566if test $ac_cv_header_stdc = yes; then
4567
4568cat >>confdefs.h <<\_ACEOF
4569#define STDC_HEADERS 1
4570_ACEOF
4571
4572fi
4573
4574# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4585 inttypes.h stdint.h unistd.h
4586do
4587as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4588echo "$as_me:$LINENO: checking for $ac_header" >&5
4589echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4590if eval "test \"\${$as_ac_Header+set}\" = set"; then
4591 echo $ECHO_N "(cached) $ECHO_C" >&6
4592else
4593 cat >conftest.$ac_ext <<_ACEOF
4594/* confdefs.h. */
4595_ACEOF
4596cat confdefs.h >>conftest.$ac_ext
4597cat >>conftest.$ac_ext <<_ACEOF
4598/* end confdefs.h. */
4599$ac_includes_default
4600
4601#include <$ac_header>
4602_ACEOF
4603rm -f conftest.$ac_objext
4604if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4605 (eval $ac_compile) 2>conftest.er1
4606 ac_status=$?
4607 grep -v '^ *+' conftest.er1 >conftest.err
4608 rm -f conftest.er1
4609 cat conftest.err >&5
4610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611 (exit $ac_status); } &&
4612 { ac_try='test -z "$ac_c_werror_flag"
4613 || test ! -s conftest.err'
4614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4615 (eval $ac_try) 2>&5
4616 ac_status=$?
4617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618 (exit $ac_status); }; } &&
4619 { ac_try='test -s conftest.$ac_objext'
4620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4621 (eval $ac_try) 2>&5
4622 ac_status=$?
4623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624 (exit $ac_status); }; }; then
4625 eval "$as_ac_Header=yes"
4626else
4627 echo "$as_me: failed program was:" >&5
4628sed 's/^/| /' conftest.$ac_ext >&5
4629
4630eval "$as_ac_Header=no"
4631fi
4632rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4633fi
4634echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4635echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4636if test `eval echo '${'$as_ac_Header'}'` = yes; then
4637 cat >>confdefs.h <<_ACEOF
4638#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4639_ACEOF
4640
4641fi
4642
4643done
4644
4645
4646
4647for ac_header in dlfcn.h
4648do
4649as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4650if eval "test \"\${$as_ac_Header+set}\" = set"; then
4651 echo "$as_me:$LINENO: checking for $ac_header" >&5
4652echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4653if eval "test \"\${$as_ac_Header+set}\" = set"; then
4654 echo $ECHO_N "(cached) $ECHO_C" >&6
4655fi
4656echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4657echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4658else
4659 # Is the header compilable?
4660echo "$as_me:$LINENO: checking $ac_header usability" >&5
4661echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4662cat >conftest.$ac_ext <<_ACEOF
4663/* confdefs.h. */
4664_ACEOF
4665cat confdefs.h >>conftest.$ac_ext
4666cat >>conftest.$ac_ext <<_ACEOF
4667/* end confdefs.h. */
4668$ac_includes_default
4669#include <$ac_header>
4670_ACEOF
4671rm -f conftest.$ac_objext
4672if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4673 (eval $ac_compile) 2>conftest.er1
4674 ac_status=$?
4675 grep -v '^ *+' conftest.er1 >conftest.err
4676 rm -f conftest.er1
4677 cat conftest.err >&5
4678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4679 (exit $ac_status); } &&
4680 { ac_try='test -z "$ac_c_werror_flag"
4681 || test ! -s conftest.err'
4682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4683 (eval $ac_try) 2>&5
4684 ac_status=$?
4685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686 (exit $ac_status); }; } &&
4687 { ac_try='test -s conftest.$ac_objext'
4688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4689 (eval $ac_try) 2>&5
4690 ac_status=$?
4691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692 (exit $ac_status); }; }; then
4693 ac_header_compiler=yes
4694else
4695 echo "$as_me: failed program was:" >&5
4696sed 's/^/| /' conftest.$ac_ext >&5
4697
4698ac_header_compiler=no
4699fi
4700rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4701echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4702echo "${ECHO_T}$ac_header_compiler" >&6
4703
4704# Is the header present?
4705echo "$as_me:$LINENO: checking $ac_header presence" >&5
4706echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4707cat >conftest.$ac_ext <<_ACEOF
4708/* confdefs.h. */
4709_ACEOF
4710cat confdefs.h >>conftest.$ac_ext
4711cat >>conftest.$ac_ext <<_ACEOF
4712/* end confdefs.h. */
4713#include <$ac_header>
4714_ACEOF
4715if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4716 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4717 ac_status=$?
4718 grep -v '^ *+' conftest.er1 >conftest.err
4719 rm -f conftest.er1
4720 cat conftest.err >&5
4721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722 (exit $ac_status); } >/dev/null; then
4723 if test -s conftest.err; then
4724 ac_cpp_err=$ac_c_preproc_warn_flag
4725 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4726 else
4727 ac_cpp_err=
4728 fi
4729else
4730 ac_cpp_err=yes
4731fi
4732if test -z "$ac_cpp_err"; then
4733 ac_header_preproc=yes
4734else
4735 echo "$as_me: failed program was:" >&5
4736sed 's/^/| /' conftest.$ac_ext >&5
4737
4738 ac_header_preproc=no
4739fi
4740rm -f conftest.err conftest.$ac_ext
4741echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4742echo "${ECHO_T}$ac_header_preproc" >&6
4743
4744# So? What about this header?
4745case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4746 yes:no: )
4747 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4748echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4749 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4750echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4751 ac_header_preproc=yes
4752 ;;
4753 no:yes:* )
4754 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4755echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4756 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4757echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4758 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4759echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4760 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4761echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4762 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4763echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4764 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4765echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4766 (
4767 cat <<\_ASBOX
4768## ------------------------------------------ ##
4769## Report this to the AC_PACKAGE_NAME lists. ##
4770## ------------------------------------------ ##
4771_ASBOX
4772 ) |
4773 sed "s/^/$as_me: WARNING: /" >&2
4774 ;;
4775esac
4776echo "$as_me:$LINENO: checking for $ac_header" >&5
4777echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4778if eval "test \"\${$as_ac_Header+set}\" = set"; then
4779 echo $ECHO_N "(cached) $ECHO_C" >&6
4780else
4781 eval "$as_ac_Header=\$ac_header_preproc"
4782fi
4783echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4784echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4785
4786fi
4787if test `eval echo '${'$as_ac_Header'}'` = yes; then
4788 cat >>confdefs.h <<_ACEOF
4789#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4790_ACEOF
4791
4792fi
4793
4794done
4795
4796ac_ext=cc
4797ac_cpp='$CXXCPP $CPPFLAGS'
4798ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4799ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4800ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4801if test -n "$ac_tool_prefix"; then
4802 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4803 do
4804 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4805set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4806echo "$as_me:$LINENO: checking for $ac_word" >&5
4807echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4808if test "${ac_cv_prog_CXX+set}" = set; then
4809 echo $ECHO_N "(cached) $ECHO_C" >&6
4810else
4811 if test -n "$CXX"; then
4812 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4813else
4814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4815for as_dir in $PATH
4816do
4817 IFS=$as_save_IFS
4818 test -z "$as_dir" && as_dir=.
4819 for ac_exec_ext in '' $ac_executable_extensions; do
4820 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4821 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4823 break 2
4824 fi
4825done
4826done
4827
4828fi
4829fi
4830CXX=$ac_cv_prog_CXX
4831if test -n "$CXX"; then
4832 echo "$as_me:$LINENO: result: $CXX" >&5
4833echo "${ECHO_T}$CXX" >&6
4834else
4835 echo "$as_me:$LINENO: result: no" >&5
4836echo "${ECHO_T}no" >&6
4837fi
4838
4839 test -n "$CXX" && break
4840 done
4841fi
4842if test -z "$CXX"; then
4843 ac_ct_CXX=$CXX
4844 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4845do
4846 # Extract the first word of "$ac_prog", so it can be a program name with args.
4847set dummy $ac_prog; ac_word=$2
4848echo "$as_me:$LINENO: checking for $ac_word" >&5
4849echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4850if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4851 echo $ECHO_N "(cached) $ECHO_C" >&6
4852else
4853 if test -n "$ac_ct_CXX"; then
4854 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4855else
4856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4857for as_dir in $PATH
4858do
4859 IFS=$as_save_IFS
4860 test -z "$as_dir" && as_dir=.
4861 for ac_exec_ext in '' $ac_executable_extensions; do
4862 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4863 ac_cv_prog_ac_ct_CXX="$ac_prog"
4864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4865 break 2
4866 fi
4867done
4868done
4869
4870fi
4871fi
4872ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4873if test -n "$ac_ct_CXX"; then
4874 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4875echo "${ECHO_T}$ac_ct_CXX" >&6
4876else
4877 echo "$as_me:$LINENO: result: no" >&5
4878echo "${ECHO_T}no" >&6
4879fi
4880
4881 test -n "$ac_ct_CXX" && break
4882done
4883test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4884
4885 CXX=$ac_ct_CXX
4886fi
4887
4888
4889# Provide some information about the compiler.
4890echo "$as_me:$LINENO:" \
4891 "checking for C++ compiler version" >&5
4892ac_compiler=`set X $ac_compile; echo $2`
4893{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4894 (eval $ac_compiler --version </dev/null >&5) 2>&5
4895 ac_status=$?
4896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897 (exit $ac_status); }
4898{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4899 (eval $ac_compiler -v </dev/null >&5) 2>&5
4900 ac_status=$?
4901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902 (exit $ac_status); }
4903{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4904 (eval $ac_compiler -V </dev/null >&5) 2>&5
4905 ac_status=$?
4906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4907 (exit $ac_status); }
4908
4909echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4910echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4911if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4912 echo $ECHO_N "(cached) $ECHO_C" >&6
4913else
4914 cat >conftest.$ac_ext <<_ACEOF
4915/* confdefs.h. */
4916_ACEOF
4917cat confdefs.h >>conftest.$ac_ext
4918cat >>conftest.$ac_ext <<_ACEOF
4919/* end confdefs.h. */
4920
4921int
4922main ()
4923{
4924#ifndef __GNUC__
4925 choke me
4926#endif
4927
4928 ;
4929 return 0;
4930}
4931_ACEOF
4932rm -f conftest.$ac_objext
4933if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4934 (eval $ac_compile) 2>conftest.er1
4935 ac_status=$?
4936 grep -v '^ *+' conftest.er1 >conftest.err
4937 rm -f conftest.er1
4938 cat conftest.err >&5
4939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940 (exit $ac_status); } &&
4941 { ac_try='test -z "$ac_cxx_werror_flag"
4942 || test ! -s conftest.err'
4943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4944 (eval $ac_try) 2>&5
4945 ac_status=$?
4946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947 (exit $ac_status); }; } &&
4948 { ac_try='test -s conftest.$ac_objext'
4949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4950 (eval $ac_try) 2>&5
4951 ac_status=$?
4952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953 (exit $ac_status); }; }; then
4954 ac_compiler_gnu=yes
4955else
4956 echo "$as_me: failed program was:" >&5
4957sed 's/^/| /' conftest.$ac_ext >&5
4958
4959ac_compiler_gnu=no
4960fi
4961rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4962ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4963
4964fi
4965echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4966echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4967GXX=`test $ac_compiler_gnu = yes && echo yes`
4968ac_test_CXXFLAGS=${CXXFLAGS+set}
4969ac_save_CXXFLAGS=$CXXFLAGS
4970CXXFLAGS="-g"
4971echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4972echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4973if test "${ac_cv_prog_cxx_g+set}" = set; then
4974 echo $ECHO_N "(cached) $ECHO_C" >&6
4975else
4976 cat >conftest.$ac_ext <<_ACEOF
4977/* confdefs.h. */
4978_ACEOF
4979cat confdefs.h >>conftest.$ac_ext
4980cat >>conftest.$ac_ext <<_ACEOF
4981/* end confdefs.h. */
4982
4983int
4984main ()
4985{
4986
4987 ;
4988 return 0;
4989}
4990_ACEOF
4991rm -f conftest.$ac_objext
4992if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4993 (eval $ac_compile) 2>conftest.er1
4994 ac_status=$?
4995 grep -v '^ *+' conftest.er1 >conftest.err
4996 rm -f conftest.er1
4997 cat conftest.err >&5
4998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999 (exit $ac_status); } &&
5000 { ac_try='test -z "$ac_cxx_werror_flag"
5001 || test ! -s conftest.err'
5002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5003 (eval $ac_try) 2>&5
5004 ac_status=$?
5005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006 (exit $ac_status); }; } &&
5007 { ac_try='test -s conftest.$ac_objext'
5008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5009 (eval $ac_try) 2>&5
5010 ac_status=$?
5011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5012 (exit $ac_status); }; }; then
5013 ac_cv_prog_cxx_g=yes
5014else
5015 echo "$as_me: failed program was:" >&5
5016sed 's/^/| /' conftest.$ac_ext >&5
5017
5018ac_cv_prog_cxx_g=no
5019fi
5020rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5021fi
5022echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5023echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5024if test "$ac_test_CXXFLAGS" = set; then
5025 CXXFLAGS=$ac_save_CXXFLAGS
5026elif test $ac_cv_prog_cxx_g = yes; then
5027 if test "$GXX" = yes; then
5028 CXXFLAGS="-g -O2"
5029 else
5030 CXXFLAGS="-g"
5031 fi
5032else
5033 if test "$GXX" = yes; then
5034 CXXFLAGS="-O2"
5035 else
5036 CXXFLAGS=
5037 fi
5038fi
5039for ac_declaration in \
5040 '' \
5041 'extern "C" void std::exit (int) throw (); using std::exit;' \
5042 'extern "C" void std::exit (int); using std::exit;' \
5043 'extern "C" void exit (int) throw ();' \
5044 'extern "C" void exit (int);' \
5045 'void exit (int);'
5046do
5047 cat >conftest.$ac_ext <<_ACEOF
5048/* confdefs.h. */
5049_ACEOF
5050cat confdefs.h >>conftest.$ac_ext
5051cat >>conftest.$ac_ext <<_ACEOF
5052/* end confdefs.h. */
5053$ac_declaration
5054#include <stdlib.h>
5055int
5056main ()
5057{
5058exit (42);
5059 ;
5060 return 0;
5061}
5062_ACEOF
5063rm -f conftest.$ac_objext
5064if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5065 (eval $ac_compile) 2>conftest.er1
5066 ac_status=$?
5067 grep -v '^ *+' conftest.er1 >conftest.err
5068 rm -f conftest.er1
5069 cat conftest.err >&5
5070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071 (exit $ac_status); } &&
5072 { ac_try='test -z "$ac_cxx_werror_flag"
5073 || test ! -s conftest.err'
5074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5075 (eval $ac_try) 2>&5
5076 ac_status=$?
5077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078 (exit $ac_status); }; } &&
5079 { ac_try='test -s conftest.$ac_objext'
5080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5081 (eval $ac_try) 2>&5
5082 ac_status=$?
5083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084 (exit $ac_status); }; }; then
5085 :
5086else
5087 echo "$as_me: failed program was:" >&5
5088sed 's/^/| /' conftest.$ac_ext >&5
5089
5090continue
5091fi
5092rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5093 cat >conftest.$ac_ext <<_ACEOF
5094/* confdefs.h. */
5095_ACEOF
5096cat confdefs.h >>conftest.$ac_ext
5097cat >>conftest.$ac_ext <<_ACEOF
5098/* end confdefs.h. */
5099$ac_declaration
5100int
5101main ()
5102{
5103exit (42);
5104 ;
5105 return 0;
5106}
5107_ACEOF
5108rm -f conftest.$ac_objext
5109if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5110 (eval $ac_compile) 2>conftest.er1
5111 ac_status=$?
5112 grep -v '^ *+' conftest.er1 >conftest.err
5113 rm -f conftest.er1
5114 cat conftest.err >&5
5115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116 (exit $ac_status); } &&
5117 { ac_try='test -z "$ac_cxx_werror_flag"
5118 || test ! -s conftest.err'
5119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5120 (eval $ac_try) 2>&5
5121 ac_status=$?
5122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123 (exit $ac_status); }; } &&
5124 { ac_try='test -s conftest.$ac_objext'
5125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5126 (eval $ac_try) 2>&5
5127 ac_status=$?
5128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129 (exit $ac_status); }; }; then
5130 break
5131else
5132 echo "$as_me: failed program was:" >&5
5133sed 's/^/| /' conftest.$ac_ext >&5
5134
5135fi
5136rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5137done
5138rm -f conftest*
5139if test -n "$ac_declaration"; then
5140 echo '#ifdef __cplusplus' >>confdefs.h
5141 echo $ac_declaration >>confdefs.h
5142 echo '#endif' >>confdefs.h
5143fi
5144
5145ac_ext=cc
5146ac_cpp='$CXXCPP $CPPFLAGS'
5147ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5148ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5149ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5150
5151depcc="$CXX" am_compiler_list=
5152
5153echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5154echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5155if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5156 echo $ECHO_N "(cached) $ECHO_C" >&6
5157else
5158 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5159 # We make a subdir and do the tests there. Otherwise we can end up
5160 # making bogus files that we don't know about and never remove. For
5161 # instance it was reported that on HP-UX the gcc test will end up
5162 # making a dummy file named `D' -- because `-MD' means `put the output
5163 # in D'.
5164 mkdir conftest.dir
5165 # Copy depcomp to subdir because otherwise we won't find it if we're
5166 # using a relative directory.
5167 cp "$am_depcomp" conftest.dir
5168 cd conftest.dir
5169 # We will build objects and dependencies in a subdirectory because
5170 # it helps to detect inapplicable dependency modes. For instance
5171 # both Tru64's cc and ICC support -MD to output dependencies as a
5172 # side effect of compilation, but ICC will put the dependencies in
5173 # the current directory while Tru64 will put them in the object
5174 # directory.
5175 mkdir sub
5176
5177 am_cv_CXX_dependencies_compiler_type=none
5178 if test "$am_compiler_list" = ""; then
5179 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5180 fi
5181 for depmode in $am_compiler_list; do
5182 # Setup a source with many dependencies, because some compilers
5183 # like to wrap large dependency lists on column 80 (with \), and
5184 # we should not choose a depcomp mode which is confused by this.
5185 #
5186 # We need to recreate these files for each test, as the compiler may
5187 # overwrite some of them when testing with obscure command lines.
5188 # This happens at least with the AIX C compiler.
5189 : > sub/conftest.c
5190 for i in 1 2 3 4 5 6; do
5191 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5192 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5193 # Solaris 8's {/usr,}/bin/sh.
5194 touch sub/conftst$i.h
5195 done
5196 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5197
5198 case $depmode in
5199 nosideeffect)
5200 # after this tag, mechanisms are not by side-effect, so they'll
5201 # only be used when explicitly requested
5202 if test "x$enable_dependency_tracking" = xyes; then
5203 continue
5204 else
5205 break
5206 fi
5207 ;;
5208 none) break ;;
5209 esac
5210 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5211 # mode. It turns out that the SunPro C++ compiler does not properly
5212 # handle `-M -o', and we need to detect this.
5213 if depmode=$depmode \
5214 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5215 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5216 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5217 >/dev/null 2>conftest.err &&
5218 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5219 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5220 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5221 # icc doesn't choke on unknown options, it will just issue warnings
5222 # or remarks (even with -Werror). So we grep stderr for any message
5223 # that says an option was ignored or not supported.
5224 # When given -MP, icc 7.0 and 7.1 complain thusly:
5225 # icc: Command line warning: ignoring option '-M'; no argument required
5226 # The diagnosis changed in icc 8.0:
5227 # icc: Command line remark: option '-MP' not supported
5228 if (grep 'ignoring option' conftest.err ||
5229 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5230 am_cv_CXX_dependencies_compiler_type=$depmode
5231 break
5232 fi
5233 fi
5234 done
5235
5236 cd ..
5237 rm -rf conftest.dir
5238else
5239 am_cv_CXX_dependencies_compiler_type=none
5240fi
5241
5242fi
5243echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5244echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5245CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5246
5247
5248
5249if
5250 test "x$enable_dependency_tracking" != xno \
5251 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5252 am__fastdepCXX_TRUE=
5253 am__fastdepCXX_FALSE='#'
5254else
5255 am__fastdepCXX_TRUE='#'
5256 am__fastdepCXX_FALSE=
5257fi
5258
5259
5260
5261
5262if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5263 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5264 (test "X$CXX" != "Xg++"))) ; then
5265 ac_ext=cc
5266ac_cpp='$CXXCPP $CPPFLAGS'
5267ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5268ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5269ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5270echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5271echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5272if test -z "$CXXCPP"; then
5273 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5274 echo $ECHO_N "(cached) $ECHO_C" >&6
5275else
5276 # Double quotes because CXXCPP needs to be expanded
5277 for CXXCPP in "$CXX -E" "/lib/cpp"
5278 do
5279 ac_preproc_ok=false
5280for ac_cxx_preproc_warn_flag in '' yes
5281do
5282 # Use a header file that comes with gcc, so configuring glibc
5283 # with a fresh cross-compiler works.
5284 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5285 # <limits.h> exists even on freestanding compilers.
5286 # On the NeXT, cc -E runs the code through the compiler's parser,
5287 # not just through cpp. "Syntax error" is here to catch this case.
5288 cat >conftest.$ac_ext <<_ACEOF
5289/* confdefs.h. */
5290_ACEOF
5291cat confdefs.h >>conftest.$ac_ext
5292cat >>conftest.$ac_ext <<_ACEOF
5293/* end confdefs.h. */
5294#ifdef __STDC__
5295# include <limits.h>
5296#else
5297# include <assert.h>
5298#endif
5299 Syntax error
5300_ACEOF
5301if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5302 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5303 ac_status=$?
5304 grep -v '^ *+' conftest.er1 >conftest.err
5305 rm -f conftest.er1
5306 cat conftest.err >&5
5307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5308 (exit $ac_status); } >/dev/null; then
5309 if test -s conftest.err; then
5310 ac_cpp_err=$ac_cxx_preproc_warn_flag
5311 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5312 else
5313 ac_cpp_err=
5314 fi
5315else
5316 ac_cpp_err=yes
5317fi
5318if test -z "$ac_cpp_err"; then
5319 :
5320else
5321 echo "$as_me: failed program was:" >&5
5322sed 's/^/| /' conftest.$ac_ext >&5
5323
5324 # Broken: fails on valid input.
5325continue
5326fi
5327rm -f conftest.err conftest.$ac_ext
5328
5329 # OK, works on sane cases. Now check whether non-existent headers
5330 # can be detected and how.
5331 cat >conftest.$ac_ext <<_ACEOF
5332/* confdefs.h. */
5333_ACEOF
5334cat confdefs.h >>conftest.$ac_ext
5335cat >>conftest.$ac_ext <<_ACEOF
5336/* end confdefs.h. */
5337#include <ac_nonexistent.h>
5338_ACEOF
5339if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5340 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5341 ac_status=$?
5342 grep -v '^ *+' conftest.er1 >conftest.err
5343 rm -f conftest.er1
5344 cat conftest.err >&5
5345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346 (exit $ac_status); } >/dev/null; then
5347 if test -s conftest.err; then
5348 ac_cpp_err=$ac_cxx_preproc_warn_flag
5349 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5350 else
5351 ac_cpp_err=
5352 fi
5353else
5354 ac_cpp_err=yes
5355fi
5356if test -z "$ac_cpp_err"; then
5357 # Broken: success on invalid input.
5358continue
5359else
5360 echo "$as_me: failed program was:" >&5
5361sed 's/^/| /' conftest.$ac_ext >&5
5362
5363 # Passes both tests.
5364ac_preproc_ok=:
5365break
5366fi
5367rm -f conftest.err conftest.$ac_ext
5368
5369done
5370# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5371rm -f conftest.err conftest.$ac_ext
5372if $ac_preproc_ok; then
5373 break
5374fi
5375
5376 done
5377 ac_cv_prog_CXXCPP=$CXXCPP
5378
5379fi
5380 CXXCPP=$ac_cv_prog_CXXCPP
5381else
5382 ac_cv_prog_CXXCPP=$CXXCPP
5383fi
5384echo "$as_me:$LINENO: result: $CXXCPP" >&5
5385echo "${ECHO_T}$CXXCPP" >&6
5386ac_preproc_ok=false
5387for ac_cxx_preproc_warn_flag in '' yes
5388do
5389 # Use a header file that comes with gcc, so configuring glibc
5390 # with a fresh cross-compiler works.
5391 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5392 # <limits.h> exists even on freestanding compilers.
5393 # On the NeXT, cc -E runs the code through the compiler's parser,
5394 # not just through cpp. "Syntax error" is here to catch this case.
5395 cat >conftest.$ac_ext <<_ACEOF
5396/* confdefs.h. */
5397_ACEOF
5398cat confdefs.h >>conftest.$ac_ext
5399cat >>conftest.$ac_ext <<_ACEOF
5400/* end confdefs.h. */
5401#ifdef __STDC__
5402# include <limits.h>
5403#else
5404# include <assert.h>
5405#endif
5406 Syntax error
5407_ACEOF
5408if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5409 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5410 ac_status=$?
5411 grep -v '^ *+' conftest.er1 >conftest.err
5412 rm -f conftest.er1
5413 cat conftest.err >&5
5414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5415 (exit $ac_status); } >/dev/null; then
5416 if test -s conftest.err; then
5417 ac_cpp_err=$ac_cxx_preproc_warn_flag
5418 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5419 else
5420 ac_cpp_err=
5421 fi
5422else
5423 ac_cpp_err=yes
5424fi
5425if test -z "$ac_cpp_err"; then
5426 :
5427else
5428 echo "$as_me: failed program was:" >&5
5429sed 's/^/| /' conftest.$ac_ext >&5
5430
5431 # Broken: fails on valid input.
5432continue
5433fi
5434rm -f conftest.err conftest.$ac_ext
5435
5436 # OK, works on sane cases. Now check whether non-existent headers
5437 # can be detected and how.
5438 cat >conftest.$ac_ext <<_ACEOF
5439/* confdefs.h. */
5440_ACEOF
5441cat confdefs.h >>conftest.$ac_ext
5442cat >>conftest.$ac_ext <<_ACEOF
5443/* end confdefs.h. */
5444#include <ac_nonexistent.h>
5445_ACEOF
5446if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5447 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5448 ac_status=$?
5449 grep -v '^ *+' conftest.er1 >conftest.err
5450 rm -f conftest.er1
5451 cat conftest.err >&5
5452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453 (exit $ac_status); } >/dev/null; then
5454 if test -s conftest.err; then
5455 ac_cpp_err=$ac_cxx_preproc_warn_flag
5456 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5457 else
5458 ac_cpp_err=
5459 fi
5460else
5461 ac_cpp_err=yes
5462fi
5463if test -z "$ac_cpp_err"; then
5464 # Broken: success on invalid input.
5465continue
5466else
5467 echo "$as_me: failed program was:" >&5
5468sed 's/^/| /' conftest.$ac_ext >&5
5469
5470 # Passes both tests.
5471ac_preproc_ok=:
5472break
5473fi
5474rm -f conftest.err conftest.$ac_ext
5475
5476done
5477# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5478rm -f conftest.err conftest.$ac_ext
5479if $ac_preproc_ok; then
5480 :
5481else
5482 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5483See \`config.log' for more details." >&5
5484echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5485See \`config.log' for more details." >&2;}
5486 { (exit 1); exit 1; }; }
5487fi
5488
5489ac_ext=cc
5490ac_cpp='$CXXCPP $CPPFLAGS'
5491ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5492ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5493ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5494
5495fi
5496
5497
5498ac_ext=f
5499ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5500ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5501ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5502if test -n "$ac_tool_prefix"; then
5503 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5504 do
5505 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5506set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5507echo "$as_me:$LINENO: checking for $ac_word" >&5
5508echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5509if test "${ac_cv_prog_F77+set}" = set; then
5510 echo $ECHO_N "(cached) $ECHO_C" >&6
5511else
5512 if test -n "$F77"; then
5513 ac_cv_prog_F77="$F77" # Let the user override the test.
5514else
5515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5516for as_dir in $PATH
5517do
5518 IFS=$as_save_IFS
5519 test -z "$as_dir" && as_dir=.
5520 for ac_exec_ext in '' $ac_executable_extensions; do
5521 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5522 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5524 break 2
5525 fi
5526done
5527done
5528
5529fi
5530fi
5531F77=$ac_cv_prog_F77
5532if test -n "$F77"; then
5533 echo "$as_me:$LINENO: result: $F77" >&5
5534echo "${ECHO_T}$F77" >&6
5535else
5536 echo "$as_me:$LINENO: result: no" >&5
5537echo "${ECHO_T}no" >&6
5538fi
5539
5540 test -n "$F77" && break
5541 done
5542fi
5543if test -z "$F77"; then
5544 ac_ct_F77=$F77
5545 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5546do
5547 # Extract the first word of "$ac_prog", so it can be a program name with args.
5548set dummy $ac_prog; ac_word=$2
5549echo "$as_me:$LINENO: checking for $ac_word" >&5
5550echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5551if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5552 echo $ECHO_N "(cached) $ECHO_C" >&6
5553else
5554 if test -n "$ac_ct_F77"; then
5555 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5556else
5557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5558for as_dir in $PATH
5559do
5560 IFS=$as_save_IFS
5561 test -z "$as_dir" && as_dir=.
5562 for ac_exec_ext in '' $ac_executable_extensions; do
5563 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5564 ac_cv_prog_ac_ct_F77="$ac_prog"
5565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5566 break 2
5567 fi
5568done
5569done
5570
5571fi
5572fi
5573ac_ct_F77=$ac_cv_prog_ac_ct_F77
5574if test -n "$ac_ct_F77"; then
5575 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5576echo "${ECHO_T}$ac_ct_F77" >&6
5577else
5578 echo "$as_me:$LINENO: result: no" >&5
5579echo "${ECHO_T}no" >&6
5580fi
5581
5582 test -n "$ac_ct_F77" && break
5583done
5584
5585 F77=$ac_ct_F77
5586fi
5587
5588
5589# Provide some information about the compiler.
5e9b5d83 5590echo "$as_me:5590:" \
bf9f3bac 5591 "checking for Fortran 77 compiler version" >&5
5592ac_compiler=`set X $ac_compile; echo $2`
5593{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5594 (eval $ac_compiler --version </dev/null >&5) 2>&5
5595 ac_status=$?
5596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597 (exit $ac_status); }
5598{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5599 (eval $ac_compiler -v </dev/null >&5) 2>&5
5600 ac_status=$?
5601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602 (exit $ac_status); }
5603{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5604 (eval $ac_compiler -V </dev/null >&5) 2>&5
5605 ac_status=$?
5606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5607 (exit $ac_status); }
5608rm -f a.out
5609
5610# If we don't use `.F' as extension, the preprocessor is not run on the
5611# input file. (Note that this only needs to work for GNU compilers.)
5612ac_save_ext=$ac_ext
5613ac_ext=F
5614echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5615echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5616if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5617 echo $ECHO_N "(cached) $ECHO_C" >&6
5618else
5619 cat >conftest.$ac_ext <<_ACEOF
5620 program main
5621#ifndef __GNUC__
5622 choke me
5623#endif
5624
5625 end
5626_ACEOF
5627rm -f conftest.$ac_objext
5628if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5629 (eval $ac_compile) 2>conftest.er1
5630 ac_status=$?
5631 grep -v '^ *+' conftest.er1 >conftest.err
5632 rm -f conftest.er1
5633 cat conftest.err >&5
5634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5635 (exit $ac_status); } &&
5636 { ac_try='test -z "$ac_f77_werror_flag"
5637 || test ! -s conftest.err'
5638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5639 (eval $ac_try) 2>&5
5640 ac_status=$?
5641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642 (exit $ac_status); }; } &&
5643 { ac_try='test -s conftest.$ac_objext'
5644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5645 (eval $ac_try) 2>&5
5646 ac_status=$?
5647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5648 (exit $ac_status); }; }; then
5649 ac_compiler_gnu=yes
5650else
5651 echo "$as_me: failed program was:" >&5
5652sed 's/^/| /' conftest.$ac_ext >&5
5653
5654ac_compiler_gnu=no
5655fi
5656rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5657ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5658
5659fi
5660echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5661echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5662ac_ext=$ac_save_ext
5663ac_test_FFLAGS=${FFLAGS+set}
5664ac_save_FFLAGS=$FFLAGS
5665FFLAGS=
5666echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5667echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5668if test "${ac_cv_prog_f77_g+set}" = set; then
5669 echo $ECHO_N "(cached) $ECHO_C" >&6
5670else
5671 FFLAGS=-g
5672cat >conftest.$ac_ext <<_ACEOF
5673 program main
5674
5675 end
5676_ACEOF
5677rm -f conftest.$ac_objext
5678if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5679 (eval $ac_compile) 2>conftest.er1
5680 ac_status=$?
5681 grep -v '^ *+' conftest.er1 >conftest.err
5682 rm -f conftest.er1
5683 cat conftest.err >&5
5684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685 (exit $ac_status); } &&
5686 { ac_try='test -z "$ac_f77_werror_flag"
5687 || test ! -s conftest.err'
5688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5689 (eval $ac_try) 2>&5
5690 ac_status=$?
5691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5692 (exit $ac_status); }; } &&
5693 { ac_try='test -s conftest.$ac_objext'
5694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5695 (eval $ac_try) 2>&5
5696 ac_status=$?
5697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698 (exit $ac_status); }; }; then
5699 ac_cv_prog_f77_g=yes
5700else
5701 echo "$as_me: failed program was:" >&5
5702sed 's/^/| /' conftest.$ac_ext >&5
5703
5704ac_cv_prog_f77_g=no
5705fi
5706rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5707
5708fi
5709echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5710echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5711if test "$ac_test_FFLAGS" = set; then
5712 FFLAGS=$ac_save_FFLAGS
5713elif test $ac_cv_prog_f77_g = yes; then
5714 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5715 FFLAGS="-g -O2"
5716 else
5717 FFLAGS="-g"
5718 fi
5719else
5720 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5721 FFLAGS="-O2"
5722 else
5723 FFLAGS=
5724 fi
5725fi
5726
5727G77=`test $ac_compiler_gnu = yes && echo yes`
5728ac_ext=c
5729ac_cpp='$CPP $CPPFLAGS'
5730ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5731ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5732ac_compiler_gnu=$ac_cv_c_compiler_gnu
5733
5734
5735
5736# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5737
5738# find the maximum length of command line arguments
5739echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5740echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5741if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5742 echo $ECHO_N "(cached) $ECHO_C" >&6
5743else
5744 i=0
5745 teststring="ABCD"
5746
5747 case $build_os in
5748 msdosdjgpp*)
5749 # On DJGPP, this test can blow up pretty badly due to problems in libc
5750 # (any single argument exceeding 2000 bytes causes a buffer overrun
5751 # during glob expansion). Even if it were fixed, the result of this
5752 # check would be larger than it should be.
5753 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5754 ;;
5755
5756 gnu*)
5757 # Under GNU Hurd, this test is not required because there is
5758 # no limit to the length of command line arguments.
5759 # Libtool will interpret -1 as no limit whatsoever
5760 lt_cv_sys_max_cmd_len=-1;
5761 ;;
5762
5763 cygwin* | mingw*)
5764 # On Win9x/ME, this test blows up -- it succeeds, but takes
5765 # about 5 minutes as the teststring grows exponentially.
5766 # Worse, since 9x/ME are not pre-emptively multitasking,
5767 # you end up with a "frozen" computer, even though with patience
5768 # the test eventually succeeds (with a max line length of 256k).
5769 # Instead, let's just punt: use the minimum linelength reported by
5770 # all of the supported platforms: 8192 (on NT/2K/XP).
5771 lt_cv_sys_max_cmd_len=8192;
5772 ;;
5773
5774 amigaos*)
5775 # On AmigaOS with pdksh, this test takes hours, literally.
5776 # So we just punt and use a minimum line length of 8192.
5777 lt_cv_sys_max_cmd_len=8192;
5778 ;;
5779
5780 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5781 # This has been around since 386BSD, at least. Likely further.
5782 if test -x /sbin/sysctl; then
5783 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5784 elif test -x /usr/sbin/sysctl; then
5785 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5786 else
5787 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5788 fi
5789 # And add a safety zone
5790 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5791 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5792 ;;
5793
5794 interix*)
5795 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5796 lt_cv_sys_max_cmd_len=196608
5797 ;;
5798
5799 osf*)
5800 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5801 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5802 # nice to cause kernel panics so lets avoid the loop below.
5803 # First set a reasonable default.
5804 lt_cv_sys_max_cmd_len=16384
5805 #
5806 if test -x /sbin/sysconfig; then
5807 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5808 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5809 esac
5810 fi
5811 ;;
5812 sco3.2v5*)
5813 lt_cv_sys_max_cmd_len=102400
5814 ;;
5815 sysv5* | sco5v6* | sysv4.2uw2*)
5816 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5817 if test -n "$kargmax"; then
5818 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5819 else
5820 lt_cv_sys_max_cmd_len=32768
5821 fi
5822 ;;
5823 *)
5824 # If test is not a shell built-in, we'll probably end up computing a
5825 # maximum length that is only half of the actual maximum length, but
5826 # we can't tell.
5827 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5828 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5829 = "XX$teststring") >/dev/null 2>&1 &&
5830 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5831 lt_cv_sys_max_cmd_len=$new_result &&
5832 test $i != 17 # 1/2 MB should be enough
5833 do
5834 i=`expr $i + 1`
5835 teststring=$teststring$teststring
5836 done
5837 teststring=
5838 # Add a significant safety factor because C++ compilers can tack on massive
5839 # amounts of additional arguments before passing them to the linker.
5840 # It appears as though 1/2 is a usable value.
5841 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5842 ;;
5843 esac
5844
5845fi
5846
5847if test -n $lt_cv_sys_max_cmd_len ; then
5848 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5849echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5850else
5851 echo "$as_me:$LINENO: result: none" >&5
5852echo "${ECHO_T}none" >&6
5853fi
5854
5855
5856
5857
5858# Check for command to grab the raw symbol name followed by C symbol from nm.
5859echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5860echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5861if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5862 echo $ECHO_N "(cached) $ECHO_C" >&6
5863else
5864
5865# These are sane defaults that work on at least a few old systems.
5866# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5867
5868# Character class describing NM global symbol codes.
5869symcode='[BCDEGRST]'
5870
5871# Regexp to match symbols that can be accessed directly from C.
5872sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5873
5874# Transform an extracted symbol line into a proper C declaration
5875lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5876
5877# Transform an extracted symbol line into symbol name and symbol address
5878lt_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'"
5879
5880# Define system-specific variables.
5881case $host_os in
5882aix*)
5883 symcode='[BCDT]'
5884 ;;
5885cygwin* | mingw* | pw32*)
5886 symcode='[ABCDGISTW]'
5887 ;;
5888hpux*) # Its linker distinguishes data from code symbols
5889 if test "$host_cpu" = ia64; then
5890 symcode='[ABCDEGRST]'
5891 fi
5892 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5893 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'"
5894 ;;
5895linux*)
5896 if test "$host_cpu" = ia64; then
5897 symcode='[ABCDGIRSTW]'
5898 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5899 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'"
5900 fi
5901 ;;
5902irix* | nonstopux*)
5903 symcode='[BCDEGRST]'
5904 ;;
5905osf*)
5906 symcode='[BCDEGQRST]'
5907 ;;
5908solaris*)
5909 symcode='[BDRT]'
5910 ;;
5911sco3.2v5*)
5912 symcode='[DT]'
5913 ;;
5914sysv4.2uw2*)
5915 symcode='[DT]'
5916 ;;
5917sysv5* | sco5v6* | unixware* | OpenUNIX*)
5918 symcode='[ABDT]'
5919 ;;
5920sysv4)
5921 symcode='[DFNSTU]'
5922 ;;
5923esac
5924
5925# Handle CRLF in mingw tool chain
5926opt_cr=
5927case $build_os in
5928mingw*)
5929 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5930 ;;
5931esac
5932
5933# If we're using GNU nm, then use its standard symbol codes.
5934case `$NM -V 2>&1` in
5935*GNU* | *'with BFD'*)
5936 symcode='[ABCDGIRSTW]' ;;
5937esac
5938
5939# Try without a prefix undercore, then with it.
5940for ac_symprfx in "" "_"; do
5941
5942 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5943 symxfrm="\\1 $ac_symprfx\\2 \\2"
5944
5945 # Write the raw and C identifiers.
5946 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5947
5948 # Check to see that the pipe works correctly.
5949 pipe_works=no
5950
5951 rm -f conftest*
5952 cat > conftest.$ac_ext <<EOF
5953#ifdef __cplusplus
5954extern "C" {
5955#endif
5956char nm_test_var;
5957void nm_test_func(){}
5958#ifdef __cplusplus
5959}
5960#endif
5961int main(){nm_test_var='a';nm_test_func();return(0);}
5962EOF
5963
5964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5965 (eval $ac_compile) 2>&5
5966 ac_status=$?
5967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5968 (exit $ac_status); }; then
5969 # Now try to grab the symbols.
5970 nlist=conftest.nm
5971 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5972 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5973 ac_status=$?
5974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975 (exit $ac_status); } && test -s "$nlist"; then
5976 # Try sorting and uniquifying the output.
5977 if sort "$nlist" | uniq > "$nlist"T; then
5978 mv -f "$nlist"T "$nlist"
5979 else
5980 rm -f "$nlist"T
5981 fi
5982
5983 # Make sure that we snagged all the symbols we need.
5984 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5985 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5986 cat <<EOF > conftest.$ac_ext
5987#ifdef __cplusplus
5988extern "C" {
5989#endif
5990
5991EOF
5992 # Now generate the symbol file.
5993 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5994
5995 cat <<EOF >> conftest.$ac_ext
5996#if defined (__STDC__) && __STDC__
5997# define lt_ptr_t void *
5998#else
5999# define lt_ptr_t char *
6000# define const
6001#endif
6002
6003/* The mapping between symbol names and symbols. */
6004const struct {
6005 const char *name;
6006 lt_ptr_t address;
6007}
6008lt_preloaded_symbols[] =
6009{
6010EOF
6011 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6012 cat <<\EOF >> conftest.$ac_ext
6013 {0, (lt_ptr_t) 0}
6014};
6015
6016#ifdef __cplusplus
6017}
6018#endif
6019EOF
6020 # Now try linking the two files.
6021 mv conftest.$ac_objext conftstm.$ac_objext
6022 lt_save_LIBS="$LIBS"
6023 lt_save_CFLAGS="$CFLAGS"
6024 LIBS="conftstm.$ac_objext"
6025 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6027 (eval $ac_link) 2>&5
6028 ac_status=$?
6029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6030 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6031 pipe_works=yes
6032 fi
6033 LIBS="$lt_save_LIBS"
6034 CFLAGS="$lt_save_CFLAGS"
6035 else
6036 echo "cannot find nm_test_func in $nlist" >&5
6037 fi
6038 else
6039 echo "cannot find nm_test_var in $nlist" >&5
6040 fi
6041 else
6042 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6043 fi
6044 else
6045 echo "$progname: failed program was:" >&5
6046 cat conftest.$ac_ext >&5
6047 fi
6048 rm -f conftest* conftst*
6049
6050 # Do not use the global_symbol_pipe unless it works.
6051 if test "$pipe_works" = yes; then
6052 break
6053 else
6054 lt_cv_sys_global_symbol_pipe=
6055 fi
6056done
6057
6058fi
6059
6060if test -z "$lt_cv_sys_global_symbol_pipe"; then
6061 lt_cv_sys_global_symbol_to_cdecl=
6062fi
6063if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6064 echo "$as_me:$LINENO: result: failed" >&5
6065echo "${ECHO_T}failed" >&6
6066else
6067 echo "$as_me:$LINENO: result: ok" >&5
6068echo "${ECHO_T}ok" >&6
6069fi
6070
6071echo "$as_me:$LINENO: checking for objdir" >&5
6072echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6073if test "${lt_cv_objdir+set}" = set; then
6074 echo $ECHO_N "(cached) $ECHO_C" >&6
6075else
6076 rm -f .libs 2>/dev/null
6077mkdir .libs 2>/dev/null
6078if test -d .libs; then
6079 lt_cv_objdir=.libs
6080else
6081 # MS-DOS does not allow filenames that begin with a dot.
6082 lt_cv_objdir=_libs
6083fi
6084rmdir .libs 2>/dev/null
6085fi
6086echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6087echo "${ECHO_T}$lt_cv_objdir" >&6
6088objdir=$lt_cv_objdir
6089
6090
6091
6092
6093
6094case $host_os in
6095aix3*)
6096 # AIX sometimes has problems with the GCC collect2 program. For some
6097 # reason, if we set the COLLECT_NAMES environment variable, the problems
6098 # vanish in a puff of smoke.
6099 if test "X${COLLECT_NAMES+set}" != Xset; then
6100 COLLECT_NAMES=
6101 export COLLECT_NAMES
6102 fi
6103 ;;
6104esac
6105
6106# Sed substitution that helps us do robust quoting. It backslashifies
6107# metacharacters that are still active within double-quoted strings.
6108Xsed='sed -e 1s/^X//'
6109sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6110
6111# Same as above, but do not quote variable references.
6112double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6113
6114# Sed substitution to delay expansion of an escaped shell variable in a
6115# double_quote_subst'ed string.
6116delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6117
6118# Sed substitution to avoid accidental globbing in evaled expressions
6119no_glob_subst='s/\*/\\\*/g'
6120
6121# Constants:
6122rm="rm -f"
6123
6124# Global variables:
6125default_ofile=libtool
6126can_build_shared=yes
6127
6128# All known linkers require a `.a' archive for static linking (except MSVC,
6129# which needs '.lib').
6130libext=a
6131ltmain="$ac_aux_dir/ltmain.sh"
6132ofile="$default_ofile"
6133with_gnu_ld="$lt_cv_prog_gnu_ld"
6134
6135if test -n "$ac_tool_prefix"; then
6136 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6137set dummy ${ac_tool_prefix}ar; ac_word=$2
6138echo "$as_me:$LINENO: checking for $ac_word" >&5
6139echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6140if test "${ac_cv_prog_AR+set}" = set; then
6141 echo $ECHO_N "(cached) $ECHO_C" >&6
6142else
6143 if test -n "$AR"; then
6144 ac_cv_prog_AR="$AR" # Let the user override the test.
6145else
6146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6147for as_dir in $PATH
6148do
6149 IFS=$as_save_IFS
6150 test -z "$as_dir" && as_dir=.
6151 for ac_exec_ext in '' $ac_executable_extensions; do
6152 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6153 ac_cv_prog_AR="${ac_tool_prefix}ar"
6154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6155 break 2
6156 fi
6157done
6158done
6159
6160fi
6161fi
6162AR=$ac_cv_prog_AR
6163if test -n "$AR"; then
6164 echo "$as_me:$LINENO: result: $AR" >&5
6165echo "${ECHO_T}$AR" >&6
6166else
6167 echo "$as_me:$LINENO: result: no" >&5
6168echo "${ECHO_T}no" >&6
6169fi
6170
6171fi
6172if test -z "$ac_cv_prog_AR"; then
6173 ac_ct_AR=$AR
6174 # Extract the first word of "ar", so it can be a program name with args.
6175set dummy ar; ac_word=$2
6176echo "$as_me:$LINENO: checking for $ac_word" >&5
6177echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6178if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6179 echo $ECHO_N "(cached) $ECHO_C" >&6
6180else
6181 if test -n "$ac_ct_AR"; then
6182 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6183else
6184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6185for as_dir in $PATH
6186do
6187 IFS=$as_save_IFS
6188 test -z "$as_dir" && as_dir=.
6189 for ac_exec_ext in '' $ac_executable_extensions; do
6190 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6191 ac_cv_prog_ac_ct_AR="ar"
6192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6193 break 2
6194 fi
6195done
6196done
6197
6198 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6199fi
6200fi
6201ac_ct_AR=$ac_cv_prog_ac_ct_AR
6202if test -n "$ac_ct_AR"; then
6203 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6204echo "${ECHO_T}$ac_ct_AR" >&6
6205else
6206 echo "$as_me:$LINENO: result: no" >&5
6207echo "${ECHO_T}no" >&6
6208fi
6209
6210 AR=$ac_ct_AR
6211else
6212 AR="$ac_cv_prog_AR"
6213fi
6214
6215if test -n "$ac_tool_prefix"; then
6216 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6217set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6218echo "$as_me:$LINENO: checking for $ac_word" >&5
6219echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6220if test "${ac_cv_prog_RANLIB+set}" = set; then
6221 echo $ECHO_N "(cached) $ECHO_C" >&6
6222else
6223 if test -n "$RANLIB"; then
6224 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6225else
6226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6227for as_dir in $PATH
6228do
6229 IFS=$as_save_IFS
6230 test -z "$as_dir" && as_dir=.
6231 for ac_exec_ext in '' $ac_executable_extensions; do
6232 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6233 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6235 break 2
6236 fi
6237done
6238done
6239
6240fi
6241fi
6242RANLIB=$ac_cv_prog_RANLIB
6243if test -n "$RANLIB"; then
6244 echo "$as_me:$LINENO: result: $RANLIB" >&5
6245echo "${ECHO_T}$RANLIB" >&6
6246else
6247 echo "$as_me:$LINENO: result: no" >&5
6248echo "${ECHO_T}no" >&6
6249fi
6250
6251fi
6252if test -z "$ac_cv_prog_RANLIB"; then
6253 ac_ct_RANLIB=$RANLIB
6254 # Extract the first word of "ranlib", so it can be a program name with args.
6255set dummy ranlib; ac_word=$2
6256echo "$as_me:$LINENO: checking for $ac_word" >&5
6257echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6258if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6259 echo $ECHO_N "(cached) $ECHO_C" >&6
6260else
6261 if test -n "$ac_ct_RANLIB"; then
6262 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6263else
6264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6265for as_dir in $PATH
6266do
6267 IFS=$as_save_IFS
6268 test -z "$as_dir" && as_dir=.
6269 for ac_exec_ext in '' $ac_executable_extensions; do
6270 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6271 ac_cv_prog_ac_ct_RANLIB="ranlib"
6272 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6273 break 2
6274 fi
6275done
6276done
6277
6278 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6279fi
6280fi
6281ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6282if test -n "$ac_ct_RANLIB"; then
6283 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6284echo "${ECHO_T}$ac_ct_RANLIB" >&6
6285else
6286 echo "$as_me:$LINENO: result: no" >&5
6287echo "${ECHO_T}no" >&6
6288fi
6289
6290 RANLIB=$ac_ct_RANLIB
6291else
6292 RANLIB="$ac_cv_prog_RANLIB"
6293fi
6294
6295if test -n "$ac_tool_prefix"; then
6296 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6297set dummy ${ac_tool_prefix}strip; ac_word=$2
6298echo "$as_me:$LINENO: checking for $ac_word" >&5
6299echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6300if test "${ac_cv_prog_STRIP+set}" = set; then
6301 echo $ECHO_N "(cached) $ECHO_C" >&6
6302else
6303 if test -n "$STRIP"; then
6304 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6305else
6306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6307for as_dir in $PATH
6308do
6309 IFS=$as_save_IFS
6310 test -z "$as_dir" && as_dir=.
6311 for ac_exec_ext in '' $ac_executable_extensions; do
6312 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6313 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6315 break 2
6316 fi
6317done
6318done
6319
6320fi
6321fi
6322STRIP=$ac_cv_prog_STRIP
6323if test -n "$STRIP"; then
6324 echo "$as_me:$LINENO: result: $STRIP" >&5
6325echo "${ECHO_T}$STRIP" >&6
6326else
6327 echo "$as_me:$LINENO: result: no" >&5
6328echo "${ECHO_T}no" >&6
6329fi
6330
6331fi
6332if test -z "$ac_cv_prog_STRIP"; then
6333 ac_ct_STRIP=$STRIP
6334 # Extract the first word of "strip", so it can be a program name with args.
6335set dummy strip; ac_word=$2
6336echo "$as_me:$LINENO: checking for $ac_word" >&5
6337echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6338if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6339 echo $ECHO_N "(cached) $ECHO_C" >&6
6340else
6341 if test -n "$ac_ct_STRIP"; then
6342 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6343else
6344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6345for as_dir in $PATH
6346do
6347 IFS=$as_save_IFS
6348 test -z "$as_dir" && as_dir=.
6349 for ac_exec_ext in '' $ac_executable_extensions; do
6350 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6351 ac_cv_prog_ac_ct_STRIP="strip"
6352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6353 break 2
6354 fi
6355done
6356done
6357
6358 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6359fi
6360fi
6361ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6362if test -n "$ac_ct_STRIP"; then
6363 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6364echo "${ECHO_T}$ac_ct_STRIP" >&6
6365else
6366 echo "$as_me:$LINENO: result: no" >&5
6367echo "${ECHO_T}no" >&6
6368fi
6369
6370 STRIP=$ac_ct_STRIP
6371else
6372 STRIP="$ac_cv_prog_STRIP"
6373fi
6374
6375
6376old_CC="$CC"
6377old_CFLAGS="$CFLAGS"
6378
6379# Set sane defaults for various variables
6380test -z "$AR" && AR=ar
6381test -z "$AR_FLAGS" && AR_FLAGS=cru
6382test -z "$AS" && AS=as
6383test -z "$CC" && CC=cc
6384test -z "$LTCC" && LTCC=$CC
6385test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6386test -z "$DLLTOOL" && DLLTOOL=dlltool
6387test -z "$LD" && LD=ld
6388test -z "$LN_S" && LN_S="ln -s"
6389test -z "$MAGIC_CMD" && MAGIC_CMD=file
6390test -z "$NM" && NM=nm
6391test -z "$SED" && SED=sed
6392test -z "$OBJDUMP" && OBJDUMP=objdump
6393test -z "$RANLIB" && RANLIB=:
6394test -z "$STRIP" && STRIP=:
6395test -z "$ac_objext" && ac_objext=o
6396
6397# Determine commands to create old-style static archives.
6398old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6399old_postinstall_cmds='chmod 644 $oldlib'
6400old_postuninstall_cmds=
6401
6402if test -n "$RANLIB"; then
6403 case $host_os in
6404 openbsd*)
6405 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6406 ;;
6407 *)
6408 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6409 ;;
6410 esac
6411 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6412fi
6413
6414for cc_temp in $compiler""; do
6415 case $cc_temp in
6416 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6417 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6418 \-*) ;;
6419 *) break;;
6420 esac
6421done
6422cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6423
6424
6425# Only perform the check for file, if the check method requires it
6426case $deplibs_check_method in
6427file_magic*)
6428 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6429 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6430echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6431if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6432 echo $ECHO_N "(cached) $ECHO_C" >&6
6433else
6434 case $MAGIC_CMD in
6435[\\/*] | ?:[\\/]*)
6436 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6437 ;;
6438*)
6439 lt_save_MAGIC_CMD="$MAGIC_CMD"
6440 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6441 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6442 for ac_dir in $ac_dummy; do
6443 IFS="$lt_save_ifs"
6444 test -z "$ac_dir" && ac_dir=.
6445 if test -f $ac_dir/${ac_tool_prefix}file; then
6446 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6447 if test -n "$file_magic_test_file"; then
6448 case $deplibs_check_method in
6449 "file_magic "*)
6450 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6451 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6452 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6453 $EGREP "$file_magic_regex" > /dev/null; then
6454 :
6455 else
6456 cat <<EOF 1>&2
6457
6458*** Warning: the command libtool uses to detect shared libraries,
6459*** $file_magic_cmd, produces output that libtool cannot recognize.
6460*** The result is that libtool may fail to recognize shared libraries
6461*** as such. This will affect the creation of libtool libraries that
6462*** depend on shared libraries, but programs linked with such libtool
6463*** libraries will work regardless of this problem. Nevertheless, you
6464*** may want to report the problem to your system manager and/or to
6465*** bug-libtool@gnu.org
6466
6467EOF
6468 fi ;;
6469 esac
6470 fi
6471 break
6472 fi
6473 done
6474 IFS="$lt_save_ifs"
6475 MAGIC_CMD="$lt_save_MAGIC_CMD"
6476 ;;
6477esac
6478fi
6479
6480MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6481if test -n "$MAGIC_CMD"; then
6482 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6483echo "${ECHO_T}$MAGIC_CMD" >&6
6484else
6485 echo "$as_me:$LINENO: result: no" >&5
6486echo "${ECHO_T}no" >&6
6487fi
6488
6489if test -z "$lt_cv_path_MAGIC_CMD"; then
6490 if test -n "$ac_tool_prefix"; then
6491 echo "$as_me:$LINENO: checking for file" >&5
6492echo $ECHO_N "checking for file... $ECHO_C" >&6
6493if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6494 echo $ECHO_N "(cached) $ECHO_C" >&6
6495else
6496 case $MAGIC_CMD in
6497[\\/*] | ?:[\\/]*)
6498 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6499 ;;
6500*)
6501 lt_save_MAGIC_CMD="$MAGIC_CMD"
6502 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6503 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6504 for ac_dir in $ac_dummy; do
6505 IFS="$lt_save_ifs"
6506 test -z "$ac_dir" && ac_dir=.
6507 if test -f $ac_dir/file; then
6508 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6509 if test -n "$file_magic_test_file"; then
6510 case $deplibs_check_method in
6511 "file_magic "*)
6512 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6513 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6514 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6515 $EGREP "$file_magic_regex" > /dev/null; then
6516 :
6517 else
6518 cat <<EOF 1>&2
6519
6520*** Warning: the command libtool uses to detect shared libraries,
6521*** $file_magic_cmd, produces output that libtool cannot recognize.
6522*** The result is that libtool may fail to recognize shared libraries
6523*** as such. This will affect the creation of libtool libraries that
6524*** depend on shared libraries, but programs linked with such libtool
6525*** libraries will work regardless of this problem. Nevertheless, you
6526*** may want to report the problem to your system manager and/or to
6527*** bug-libtool@gnu.org
6528
6529EOF
6530 fi ;;
6531 esac
6532 fi
6533 break
6534 fi
6535 done
6536 IFS="$lt_save_ifs"
6537 MAGIC_CMD="$lt_save_MAGIC_CMD"
6538 ;;
6539esac
6540fi
6541
6542MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6543if test -n "$MAGIC_CMD"; then
6544 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6545echo "${ECHO_T}$MAGIC_CMD" >&6
6546else
6547 echo "$as_me:$LINENO: result: no" >&5
6548echo "${ECHO_T}no" >&6
6549fi
6550
6551 else
6552 MAGIC_CMD=:
6553 fi
6554fi
6555
6556 fi
6557 ;;
6558esac
6559
6560enable_dlopen=no
6561enable_win32_dll=no
6562
6563# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6564if test "${enable_libtool_lock+set}" = set; then
6565 enableval="$enable_libtool_lock"
6566
6567fi;
6568test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6569
6570
6571# Check whether --with-pic or --without-pic was given.
6572if test "${with_pic+set}" = set; then
6573 withval="$with_pic"
6574 pic_mode="$withval"
6575else
6576 pic_mode=default
6577fi;
6578test -z "$pic_mode" && pic_mode=default
6579
6580# Use C for the default configuration in the libtool script
6581tagname=
6582lt_save_CC="$CC"
6583ac_ext=c
6584ac_cpp='$CPP $CPPFLAGS'
6585ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6586ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6587ac_compiler_gnu=$ac_cv_c_compiler_gnu
6588
6589
6590# Source file extension for C test sources.
6591ac_ext=c
6592
6593# Object file extension for compiled C test sources.
6594objext=o
6595objext=$objext
6596
6597# Code to be used in simple compile tests
6598lt_simple_compile_test_code="int some_variable = 0;\n"
6599
6600# Code to be used in simple link tests
6601lt_simple_link_test_code='int main(){return(0);}\n'
6602
6603
6604# If no C compiler was specified, use CC.
6605LTCC=${LTCC-"$CC"}
6606
6607# If no C compiler flags were specified, use CFLAGS.
6608LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6609
6610# Allow CC to be a program name with arguments.
6611compiler=$CC
6612
6613
6614# save warnings/boilerplate of simple test code
6615ac_outfile=conftest.$ac_objext
6616printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6617eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6618_lt_compiler_boilerplate=`cat conftest.err`
6619$rm conftest*
6620
6621ac_outfile=conftest.$ac_objext
6622printf "$lt_simple_link_test_code" >conftest.$ac_ext
6623eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6624_lt_linker_boilerplate=`cat conftest.err`
6625$rm conftest*
6626
6627
6628
6629lt_prog_compiler_no_builtin_flag=
6630
6631if test "$GCC" = yes; then
6632 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6633
6634
6635echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6636echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6637if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6638 echo $ECHO_N "(cached) $ECHO_C" >&6
6639else
6640 lt_cv_prog_compiler_rtti_exceptions=no
6641 ac_outfile=conftest.$ac_objext
6642 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6643 lt_compiler_flag="-fno-rtti -fno-exceptions"
6644 # Insert the option either (1) after the last *FLAGS variable, or
6645 # (2) before a word containing "conftest.", or (3) at the end.
6646 # Note that $ac_compile itself does not contain backslashes and begins
6647 # with a dollar sign (not a hyphen), so the echo should work correctly.
6648 # The option is referenced via a variable to avoid confusing sed.
6649 lt_compile=`echo "$ac_compile" | $SED \
6650 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6651 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6652 -e 's:$: $lt_compiler_flag:'`
5e9b5d83 6653 (eval echo "\"\$as_me:6653: $lt_compile\"" >&5)
bf9f3bac 6654 (eval "$lt_compile" 2>conftest.err)
6655 ac_status=$?
6656 cat conftest.err >&5
5e9b5d83 6657 echo "$as_me:6657: \$? = $ac_status" >&5
bf9f3bac 6658 if (exit $ac_status) && test -s "$ac_outfile"; then
6659 # The compiler can only warn and ignore the option if not recognized
6660 # So say no if there are warnings other than the usual output.
6661 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6662 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6663 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6664 lt_cv_prog_compiler_rtti_exceptions=yes
6665 fi
6666 fi
6667 $rm conftest*
6668
6669fi
6670echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6671echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6672
6673if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6674 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6675else
6676 :
6677fi
6678
6679fi
6680
6681lt_prog_compiler_wl=
6682lt_prog_compiler_pic=
6683lt_prog_compiler_static=
6684
6685echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6686echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6687
6688 if test "$GCC" = yes; then
6689 lt_prog_compiler_wl='-Wl,'
6690 lt_prog_compiler_static='-static'
6691
6692 case $host_os in
6693 aix*)
6694 # All AIX code is PIC.
6695 if test "$host_cpu" = ia64; then
6696 # AIX 5 now supports IA64 processor
6697 lt_prog_compiler_static='-Bstatic'
6698 fi
6699 ;;
6700
6701 amigaos*)
6702 # FIXME: we need at least 68020 code to build shared libraries, but
6703 # adding the `-m68020' flag to GCC prevents building anything better,
6704 # like `-m68040'.
6705 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6706 ;;
6707
6708 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6709 # PIC is the default for these OSes.
6710 ;;
6711
6712 mingw* | pw32* | os2*)
6713 # This hack is so that the source file can tell whether it is being
6714 # built for inclusion in a dll (and should export symbols for example).
6715 lt_prog_compiler_pic='-DDLL_EXPORT'
6716 ;;
6717
6718 darwin* | rhapsody*)
6719 # PIC is the default on this platform
6720 # Common symbols not allowed in MH_DYLIB files
6721 lt_prog_compiler_pic='-fno-common'
6722 ;;
6723
6724 interix3*)
6725 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6726 # Instead, we relocate shared libraries at runtime.
6727 ;;
6728
6729 msdosdjgpp*)
6730 # Just because we use GCC doesn't mean we suddenly get shared libraries
6731 # on systems that don't support them.
6732 lt_prog_compiler_can_build_shared=no
6733 enable_shared=no
6734 ;;
6735
6736 sysv4*MP*)
6737 if test -d /usr/nec; then
6738 lt_prog_compiler_pic=-Kconform_pic
6739 fi
6740 ;;
6741
6742 hpux*)
6743 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6744 # not for PA HP-UX.
6745 case $host_cpu in
6746 hppa*64*|ia64*)
6747 # +Z the default
6748 ;;
6749 *)
6750 lt_prog_compiler_pic='-fPIC'
6751 ;;
6752 esac
6753 ;;
6754
6755 *)
6756 lt_prog_compiler_pic='-fPIC'
6757 ;;
6758 esac
6759 else
6760 # PORTME Check for flag to pass linker flags through the system compiler.
6761 case $host_os in
6762 aix*)
6763 lt_prog_compiler_wl='-Wl,'
6764 if test "$host_cpu" = ia64; then
6765 # AIX 5 now supports IA64 processor
6766 lt_prog_compiler_static='-Bstatic'
6767 else
6768 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6769 fi
6770 ;;
6771 darwin*)
6772 # PIC is the default on this platform
6773 # Common symbols not allowed in MH_DYLIB files
6774 case $cc_basename in
6775 xlc*)
6776 lt_prog_compiler_pic='-qnocommon'
6777 lt_prog_compiler_wl='-Wl,'
6778 ;;
6779 esac
6780 ;;
6781
6782 mingw* | pw32* | os2*)
6783 # This hack is so that the source file can tell whether it is being
6784 # built for inclusion in a dll (and should export symbols for example).
6785 lt_prog_compiler_pic='-DDLL_EXPORT'
6786 ;;
6787
6788 hpux9* | hpux10* | hpux11*)
6789 lt_prog_compiler_wl='-Wl,'
6790 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6791 # not for PA HP-UX.
6792 case $host_cpu in
6793 hppa*64*|ia64*)
6794 # +Z the default
6795 ;;
6796 *)
6797 lt_prog_compiler_pic='+Z'
6798 ;;
6799 esac
6800 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6801 lt_prog_compiler_static='${wl}-a ${wl}archive'
6802 ;;
6803
6804 irix5* | irix6* | nonstopux*)
6805 lt_prog_compiler_wl='-Wl,'
6806 # PIC (with -KPIC) is the default.
6807 lt_prog_compiler_static='-non_shared'
6808 ;;
6809
6810 newsos6)
6811 lt_prog_compiler_pic='-KPIC'
6812 lt_prog_compiler_static='-Bstatic'
6813 ;;
6814
6815 linux*)
6816 case $cc_basename in
6817 icc* | ecc*)
6818 lt_prog_compiler_wl='-Wl,'
6819 lt_prog_compiler_pic='-KPIC'
6820 lt_prog_compiler_static='-static'
6821 ;;
6822 pgcc* | pgf77* | pgf90* | pgf95*)
6823 # Portland Group compilers (*not* the Pentium gcc compiler,
6824 # which looks to be a dead project)
6825 lt_prog_compiler_wl='-Wl,'
6826 lt_prog_compiler_pic='-fpic'
6827 lt_prog_compiler_static='-Bstatic'
6828 ;;
6829 ccc*)
6830 lt_prog_compiler_wl='-Wl,'
6831 # All Alpha code is PIC.
6832 lt_prog_compiler_static='-non_shared'
6833 ;;
6834 esac
6835 ;;
6836
6837 osf3* | osf4* | osf5*)
6838 lt_prog_compiler_wl='-Wl,'
6839 # All OSF/1 code is PIC.
6840 lt_prog_compiler_static='-non_shared'
6841 ;;
6842
6843 solaris*)
6844 lt_prog_compiler_pic='-KPIC'
6845 lt_prog_compiler_static='-Bstatic'
6846 case $cc_basename in
6847 f77* | f90* | f95*)
6848 lt_prog_compiler_wl='-Qoption ld ';;
6849 *)
6850 lt_prog_compiler_wl='-Wl,';;
6851 esac
6852 ;;
6853
6854 sunos4*)
6855 lt_prog_compiler_wl='-Qoption ld '
6856 lt_prog_compiler_pic='-PIC'
6857 lt_prog_compiler_static='-Bstatic'
6858 ;;
6859
6860 sysv4 | sysv4.2uw2* | sysv4.3*)
6861 lt_prog_compiler_wl='-Wl,'
6862 lt_prog_compiler_pic='-KPIC'
6863 lt_prog_compiler_static='-Bstatic'
6864 ;;
6865
6866 sysv4*MP*)
6867 if test -d /usr/nec ;then
6868 lt_prog_compiler_pic='-Kconform_pic'
6869 lt_prog_compiler_static='-Bstatic'
6870 fi
6871 ;;
6872
6873 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6874 lt_prog_compiler_wl='-Wl,'
6875 lt_prog_compiler_pic='-KPIC'
6876 lt_prog_compiler_static='-Bstatic'
6877 ;;
6878
6879 unicos*)
6880 lt_prog_compiler_wl='-Wl,'
6881 lt_prog_compiler_can_build_shared=no
6882 ;;
6883
6884 uts4*)
6885 lt_prog_compiler_pic='-pic'
6886 lt_prog_compiler_static='-Bstatic'
6887 ;;
6888
6889 *)
6890 lt_prog_compiler_can_build_shared=no
6891 ;;
6892 esac
6893 fi
6894
6895echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6896echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6897
6898#
6899# Check to make sure the PIC flag actually works.
6900#
6901if test -n "$lt_prog_compiler_pic"; then
6902
6903echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6904echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6905if test "${lt_prog_compiler_pic_works+set}" = set; then
6906 echo $ECHO_N "(cached) $ECHO_C" >&6
6907else
6908 lt_prog_compiler_pic_works=no
6909 ac_outfile=conftest.$ac_objext
6910 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6911 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6912 # Insert the option either (1) after the last *FLAGS variable, or
6913 # (2) before a word containing "conftest.", or (3) at the end.
6914 # Note that $ac_compile itself does not contain backslashes and begins
6915 # with a dollar sign (not a hyphen), so the echo should work correctly.
6916 # The option is referenced via a variable to avoid confusing sed.
6917 lt_compile=`echo "$ac_compile" | $SED \
6918 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6919 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6920 -e 's:$: $lt_compiler_flag:'`
5e9b5d83 6921 (eval echo "\"\$as_me:6921: $lt_compile\"" >&5)
bf9f3bac 6922 (eval "$lt_compile" 2>conftest.err)
6923 ac_status=$?
6924 cat conftest.err >&5
5e9b5d83 6925 echo "$as_me:6925: \$? = $ac_status" >&5
bf9f3bac 6926 if (exit $ac_status) && test -s "$ac_outfile"; then
6927 # The compiler can only warn and ignore the option if not recognized
6928 # So say no if there are warnings other than the usual output.
6929 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6930 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6931 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6932 lt_prog_compiler_pic_works=yes
6933 fi
6934 fi
6935 $rm conftest*
6936
6937fi
6938echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6939echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6940
6941if test x"$lt_prog_compiler_pic_works" = xyes; then
6942 case $lt_prog_compiler_pic in
6943 "" | " "*) ;;
6944 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6945 esac
6946else
6947 lt_prog_compiler_pic=
6948 lt_prog_compiler_can_build_shared=no
6949fi
6950
6951fi
6952case $host_os in
6953 # For platforms which do not support PIC, -DPIC is meaningless:
6954 *djgpp*)
6955 lt_prog_compiler_pic=
6956 ;;
6957 *)
6958 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6959 ;;
6960esac
6961
6962#
6963# Check to make sure the static flag actually works.
6964#
6965wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6966echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6967echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6968if test "${lt_prog_compiler_static_works+set}" = set; then
6969 echo $ECHO_N "(cached) $ECHO_C" >&6
6970else
6971 lt_prog_compiler_static_works=no
6972 save_LDFLAGS="$LDFLAGS"
6973 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6974 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6975 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6976 # The linker can only warn and ignore the option if not recognized
6977 # So say no if there are warnings
6978 if test -s conftest.err; then
6979 # Append any errors to the config.log.
6980 cat conftest.err 1>&5
6981 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6982 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6983 if diff conftest.exp conftest.er2 >/dev/null; then
6984 lt_prog_compiler_static_works=yes
6985 fi
6986 else
6987 lt_prog_compiler_static_works=yes
6988 fi
6989 fi
6990 $rm conftest*
6991 LDFLAGS="$save_LDFLAGS"
6992
6993fi
6994echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6995echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6996
6997if test x"$lt_prog_compiler_static_works" = xyes; then
6998 :
6999else
7000 lt_prog_compiler_static=
7001fi
7002
7003
7004echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7005echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7006if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7007 echo $ECHO_N "(cached) $ECHO_C" >&6
7008else
7009 lt_cv_prog_compiler_c_o=no
7010 $rm -r conftest 2>/dev/null
7011 mkdir conftest
7012 cd conftest
7013 mkdir out
7014 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7015
7016 lt_compiler_flag="-o out/conftest2.$ac_objext"
7017 # Insert the option either (1) after the last *FLAGS variable, or
7018 # (2) before a word containing "conftest.", or (3) at the end.
7019 # Note that $ac_compile itself does not contain backslashes and begins
7020 # with a dollar sign (not a hyphen), so the echo should work correctly.
7021 lt_compile=`echo "$ac_compile" | $SED \
7022 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7023 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7024 -e 's:$: $lt_compiler_flag:'`
5e9b5d83 7025 (eval echo "\"\$as_me:7025: $lt_compile\"" >&5)
bf9f3bac 7026 (eval "$lt_compile" 2>out/conftest.err)
7027 ac_status=$?
7028 cat out/conftest.err >&5
5e9b5d83 7029 echo "$as_me:7029: \$? = $ac_status" >&5
bf9f3bac 7030 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7031 then
7032 # The compiler can only warn and ignore the option if not recognized
7033 # So say no if there are warnings
7034 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7035 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7036 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7037 lt_cv_prog_compiler_c_o=yes
7038 fi
7039 fi
7040 chmod u+w . 2>&5
7041 $rm conftest*
7042 # SGI C++ compiler will create directory out/ii_files/ for
7043 # template instantiation
7044 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7045 $rm out/* && rmdir out
7046 cd ..
7047 rmdir conftest
7048 $rm conftest*
7049
7050fi
7051echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7052echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7053
7054
7055hard_links="nottested"
7056if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7057 # do not overwrite the value of need_locks provided by the user
7058 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7059echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7060 hard_links=yes
7061 $rm conftest*
7062 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7063 touch conftest.a
7064 ln conftest.a conftest.b 2>&5 || hard_links=no
7065 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7066 echo "$as_me:$LINENO: result: $hard_links" >&5
7067echo "${ECHO_T}$hard_links" >&6
7068 if test "$hard_links" = no; then
7069 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7070echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7071 need_locks=warn
7072 fi
7073else
7074 need_locks=no
7075fi
7076
7077echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7078echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7079
7080 runpath_var=
7081 allow_undefined_flag=
7082 enable_shared_with_static_runtimes=no
7083 archive_cmds=
7084 archive_expsym_cmds=
7085 old_archive_From_new_cmds=
7086 old_archive_from_expsyms_cmds=
7087 export_dynamic_flag_spec=
7088 whole_archive_flag_spec=
7089 thread_safe_flag_spec=
7090 hardcode_libdir_flag_spec=
7091 hardcode_libdir_flag_spec_ld=
7092 hardcode_libdir_separator=
7093 hardcode_direct=no
7094 hardcode_minus_L=no
7095 hardcode_shlibpath_var=unsupported
7096 link_all_deplibs=unknown
7097 hardcode_automatic=no
7098 module_cmds=
7099 module_expsym_cmds=
7100 always_export_symbols=no
7101 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7102 # include_expsyms should be a list of space-separated symbols to be *always*
7103 # included in the symbol list
7104 include_expsyms=
7105 # exclude_expsyms can be an extended regexp of symbols to exclude
7106 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7107 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7108 # as well as any symbol that contains `d'.
7109 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7110 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7111 # platforms (ab)use it in PIC code, but their linkers get confused if
7112 # the symbol is explicitly referenced. Since portable code cannot
7113 # rely on this symbol name, it's probably fine to never include it in
7114 # preloaded symbol tables.
7115 extract_expsyms_cmds=
7116 # Just being paranoid about ensuring that cc_basename is set.
7117 for cc_temp in $compiler""; do
7118 case $cc_temp in
7119 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7120 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7121 \-*) ;;
7122 *) break;;
7123 esac
7124done
7125cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7126
7127 case $host_os in
7128 cygwin* | mingw* | pw32*)
7129 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7130 # When not using gcc, we currently assume that we are using
7131 # Microsoft Visual C++.
7132 if test "$GCC" != yes; then
7133 with_gnu_ld=no
7134 fi
7135 ;;
7136 interix*)
7137 # we just hope/assume this is gcc and not c89 (= MSVC++)
7138 with_gnu_ld=yes
7139 ;;
7140 openbsd*)
7141 with_gnu_ld=no
7142 ;;
7143 esac
7144
7145 ld_shlibs=yes
7146 if test "$with_gnu_ld" = yes; then
7147 # If archive_cmds runs LD, not CC, wlarc should be empty
7148 wlarc='${wl}'
7149
7150 # Set some defaults for GNU ld with shared library support. These
7151 # are reset later if shared libraries are not supported. Putting them
7152 # here allows them to be overridden if necessary.
7153 runpath_var=LD_RUN_PATH
7154 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7155 export_dynamic_flag_spec='${wl}--export-dynamic'
7156 # ancient GNU ld didn't support --whole-archive et. al.
7157 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7158 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7159 else
7160 whole_archive_flag_spec=
7161 fi
7162 supports_anon_versioning=no
7163 case `$LD -v 2>/dev/null` in
7164 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7165 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7166 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7167 *\ 2.11.*) ;; # other 2.11 versions
7168 *) supports_anon_versioning=yes ;;
7169 esac
7170
7171 # See if GNU ld supports shared libraries.
7172 case $host_os in
7173 aix3* | aix4* | aix5*)
7174 # On AIX/PPC, the GNU linker is very broken
7175 if test "$host_cpu" != ia64; then
7176 ld_shlibs=no
7177 cat <<EOF 1>&2
7178
7179*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7180*** to be unable to reliably create shared libraries on AIX.
7181*** Therefore, libtool is disabling shared libraries support. If you
7182*** really care for shared libraries, you may want to modify your PATH
7183*** so that a non-GNU linker is found, and then restart.
7184
7185EOF
7186 fi
7187 ;;
7188
7189 amigaos*)
7190 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)'
7191 hardcode_libdir_flag_spec='-L$libdir'
7192 hardcode_minus_L=yes
7193
7194 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7195 # that the semantics of dynamic libraries on AmigaOS, at least up
7196 # to version 4, is to share data among multiple programs linked
7197 # with the same dynamic library. Since this doesn't match the
7198 # behavior of shared libraries on other platforms, we can't use
7199 # them.
7200 ld_shlibs=no
7201 ;;
7202
7203 beos*)
7204 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7205 allow_undefined_flag=unsupported
7206 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7207 # support --undefined. This deserves some investigation. FIXME
7208 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7209 else
7210 ld_shlibs=no
7211 fi
7212 ;;
7213
7214 cygwin* | mingw* | pw32*)
7215 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7216 # as there is no search path for DLLs.
7217 hardcode_libdir_flag_spec='-L$libdir'
7218 allow_undefined_flag=unsupported
7219 always_export_symbols=no
7220 enable_shared_with_static_runtimes=yes
7221 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7222
7223 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7224 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7225 # If the export-symbols file already is a .def file (1st line
7226 # is EXPORTS), use it as is; otherwise, prepend...
7227 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7228 cp $export_symbols $output_objdir/$soname.def;
7229 else
7230 echo EXPORTS > $output_objdir/$soname.def;
7231 cat $export_symbols >> $output_objdir/$soname.def;
7232 fi~
7233 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7234 else
7235 ld_shlibs=no
7236 fi
7237 ;;
7238
7239 interix3*)
7240 hardcode_direct=no
7241 hardcode_shlibpath_var=no
7242 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7243 export_dynamic_flag_spec='${wl}-E'
7244 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7245 # Instead, shared libraries are loaded at an image base (0x10000000 by
7246 # default) and relocated if they conflict, which is a slow very memory
7247 # consuming and fragmenting process. To avoid this, we pick a random,
7248 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7249 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7250 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7251 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'
7252 ;;
7253
7254 linux*)
7255 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7256 tmp_addflag=
7257 case $cc_basename,$host_cpu in
7258 pgcc*) # Portland Group C compiler
7259 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'
7260 tmp_addflag=' $pic_flag'
7261 ;;
7262 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7263 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'
7264 tmp_addflag=' $pic_flag -Mnomain' ;;
7265 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7266 tmp_addflag=' -i_dynamic' ;;
7267 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7268 tmp_addflag=' -i_dynamic -nofor_main' ;;
7269 ifc* | ifort*) # Intel Fortran compiler
7270 tmp_addflag=' -nofor_main' ;;
7271 esac
7272 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7273
7274 if test $supports_anon_versioning = yes; then
7275 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7276 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7277 $echo "local: *; };" >> $output_objdir/$libname.ver~
7278 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7279 fi
7280 else
7281 ld_shlibs=no
7282 fi
7283 ;;
7284
7285 netbsd*)
7286 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7287 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7288 wlarc=
7289 else
7290 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7291 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7292 fi
7293 ;;
7294
7295 solaris*)
7296 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7297 ld_shlibs=no
7298 cat <<EOF 1>&2
7299
7300*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7301*** create shared libraries on Solaris systems. Therefore, libtool
7302*** is disabling shared libraries support. We urge you to upgrade GNU
7303*** binutils to release 2.9.1 or newer. Another option is to modify
7304*** your PATH or compiler configuration so that the native linker is
7305*** used, and then restart.
7306
7307EOF
7308 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7309 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7310 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7311 else
7312 ld_shlibs=no
7313 fi
7314 ;;
7315
7316 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7317 case `$LD -v 2>&1` in
7318 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7319 ld_shlibs=no
7320 cat <<_LT_EOF 1>&2
7321
7322*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7323*** reliably create shared libraries on SCO systems. Therefore, libtool
7324*** is disabling shared libraries support. We urge you to upgrade GNU
7325*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7326*** your PATH or compiler configuration so that the native linker is
7327*** used, and then restart.
7328
7329_LT_EOF
7330 ;;
7331 *)
7332 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7333 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7334 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7335 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7336 else
7337 ld_shlibs=no
7338 fi
7339 ;;
7340 esac
7341 ;;
7342
7343 sunos4*)
7344 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7345 wlarc=
7346 hardcode_direct=yes
7347 hardcode_shlibpath_var=no
7348 ;;
7349
7350 *)
7351 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7352 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7353 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7354 else
7355 ld_shlibs=no
7356 fi
7357 ;;
7358 esac
7359
7360 if test "$ld_shlibs" = no; then
7361 runpath_var=
7362 hardcode_libdir_flag_spec=
7363 export_dynamic_flag_spec=
7364 whole_archive_flag_spec=
7365 fi
7366 else
7367 # PORTME fill in a description of your system's linker (not GNU ld)
7368 case $host_os in
7369 aix3*)
7370 allow_undefined_flag=unsupported
7371 always_export_symbols=yes
7372 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'
7373 # Note: this linker hardcodes the directories in LIBPATH if there
7374 # are no directories specified by -L.
7375 hardcode_minus_L=yes
7376 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7377 # Neither direct hardcoding nor static linking is supported with a
7378 # broken collect2.
7379 hardcode_direct=unsupported
7380 fi
7381 ;;
7382
7383 aix4* | aix5*)
7384 if test "$host_cpu" = ia64; then
7385 # On IA64, the linker does run time linking by default, so we don't
7386 # have to do anything special.
7387 aix_use_runtimelinking=no
7388 exp_sym_flag='-Bexport'
7389 no_entry_flag=""
7390 else
7391 # If we're using GNU nm, then we don't want the "-C" option.
7392 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7393 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7394 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'
7395 else
7396 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'
7397 fi
7398 aix_use_runtimelinking=no
7399
7400 # Test if we are trying to use run time linking or normal
7401 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7402 # need to do runtime linking.
7403 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7404 for ld_flag in $LDFLAGS; do
7405 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7406 aix_use_runtimelinking=yes
7407 break
7408 fi
7409 done
7410 ;;
7411 esac
7412
7413 exp_sym_flag='-bexport'
7414 no_entry_flag='-bnoentry'
7415 fi
7416
7417 # When large executables or shared objects are built, AIX ld can
7418 # have problems creating the table of contents. If linking a library
7419 # or program results in "error TOC overflow" add -mminimal-toc to
7420 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7421 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7422
7423 archive_cmds=''
7424 hardcode_direct=yes
7425 hardcode_libdir_separator=':'
7426 link_all_deplibs=yes
7427
7428 if test "$GCC" = yes; then
7429 case $host_os in aix4.[012]|aix4.[012].*)
7430 # We only want to do this on AIX 4.2 and lower, the check
7431 # below for broken collect2 doesn't work under 4.3+
7432 collect2name=`${CC} -print-prog-name=collect2`
7433 if test -f "$collect2name" && \
7434 strings "$collect2name" | grep resolve_lib_name >/dev/null
7435 then
7436 # We have reworked collect2
7437 hardcode_direct=yes
7438 else
7439 # We have old collect2
7440 hardcode_direct=unsupported
7441 # It fails to find uninstalled libraries when the uninstalled
7442 # path is not listed in the libpath. Setting hardcode_minus_L
7443 # to unsupported forces relinking
7444 hardcode_minus_L=yes
7445 hardcode_libdir_flag_spec='-L$libdir'
7446 hardcode_libdir_separator=
7447 fi
7448 ;;
7449 esac
7450 shared_flag='-shared'
7451 if test "$aix_use_runtimelinking" = yes; then
7452 shared_flag="$shared_flag "'${wl}-G'
7453 fi
7454 else
7455 # not using gcc
7456 if test "$host_cpu" = ia64; then
7457 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7458 # chokes on -Wl,-G. The following line is correct:
7459 shared_flag='-G'
7460 else
7461 if test "$aix_use_runtimelinking" = yes; then
7462 shared_flag='${wl}-G'
7463 else
7464 shared_flag='${wl}-bM:SRE'
7465 fi
7466 fi
7467 fi
7468
7469 # It seems that -bexpall does not export symbols beginning with
7470 # underscore (_), so it is better to generate a list of symbols to export.
7471 always_export_symbols=yes
7472 if test "$aix_use_runtimelinking" = yes; then
7473 # Warning - without using the other runtime loading flags (-brtl),
7474 # -berok will link without error, but may produce a broken library.
7475 allow_undefined_flag='-berok'
7476 # Determine the default libpath from the value encoded in an empty executable.
7477 cat >conftest.$ac_ext <<_ACEOF
7478/* confdefs.h. */
7479_ACEOF
7480cat confdefs.h >>conftest.$ac_ext
7481cat >>conftest.$ac_ext <<_ACEOF
7482/* end confdefs.h. */
7483
7484int
7485main ()
7486{
7487
7488 ;
7489 return 0;
7490}
7491_ACEOF
7492rm -f conftest.$ac_objext conftest$ac_exeext
7493if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7494 (eval $ac_link) 2>conftest.er1
7495 ac_status=$?
7496 grep -v '^ *+' conftest.er1 >conftest.err
7497 rm -f conftest.er1
7498 cat conftest.err >&5
7499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7500 (exit $ac_status); } &&
7501 { ac_try='test -z "$ac_c_werror_flag"
7502 || test ! -s conftest.err'
7503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7504 (eval $ac_try) 2>&5
7505 ac_status=$?
7506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7507 (exit $ac_status); }; } &&
7508 { ac_try='test -s conftest$ac_exeext'
7509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7510 (eval $ac_try) 2>&5
7511 ac_status=$?
7512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513 (exit $ac_status); }; }; then
7514
7515aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7516}'`
7517# Check for a 64-bit object if we didn't find anything.
7518if 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; }
7519}'`; fi
7520else
7521 echo "$as_me: failed program was:" >&5
7522sed 's/^/| /' conftest.$ac_ext >&5
7523
7524fi
7525rm -f conftest.err conftest.$ac_objext \
7526 conftest$ac_exeext conftest.$ac_ext
7527if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7528
7529 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7530 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"
7531 else
7532 if test "$host_cpu" = ia64; then
7533 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7534 allow_undefined_flag="-z nodefs"
7535 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"
7536 else
7537 # Determine the default libpath from the value encoded in an empty executable.
7538 cat >conftest.$ac_ext <<_ACEOF
7539/* confdefs.h. */
7540_ACEOF
7541cat confdefs.h >>conftest.$ac_ext
7542cat >>conftest.$ac_ext <<_ACEOF
7543/* end confdefs.h. */
7544
7545int
7546main ()
7547{
7548
7549 ;
7550 return 0;
7551}
7552_ACEOF
7553rm -f conftest.$ac_objext conftest$ac_exeext
7554if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7555 (eval $ac_link) 2>conftest.er1
7556 ac_status=$?
7557 grep -v '^ *+' conftest.er1 >conftest.err
7558 rm -f conftest.er1
7559 cat conftest.err >&5
7560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7561 (exit $ac_status); } &&
7562 { ac_try='test -z "$ac_c_werror_flag"
7563 || test ! -s conftest.err'
7564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7565 (eval $ac_try) 2>&5
7566 ac_status=$?
7567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7568 (exit $ac_status); }; } &&
7569 { ac_try='test -s conftest$ac_exeext'
7570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7571 (eval $ac_try) 2>&5
7572 ac_status=$?
7573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7574 (exit $ac_status); }; }; then
7575
7576aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7577}'`
7578# Check for a 64-bit object if we didn't find anything.
7579if 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; }
7580}'`; fi
7581else
7582 echo "$as_me: failed program was:" >&5
7583sed 's/^/| /' conftest.$ac_ext >&5
7584
7585fi
7586rm -f conftest.err conftest.$ac_objext \
7587 conftest$ac_exeext conftest.$ac_ext
7588if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7589
7590 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7591 # Warning - without using the other run time loading flags,
7592 # -berok will link without error, but may produce a broken library.
7593 no_undefined_flag=' ${wl}-bernotok'
7594 allow_undefined_flag=' ${wl}-berok'
7595 # Exported symbols can be pulled into shared objects from archives
7596 whole_archive_flag_spec='$convenience'
7597 archive_cmds_need_lc=yes
7598 # This is similar to how AIX traditionally builds its shared libraries.
7599 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'
7600 fi
7601 fi
7602 ;;
7603
7604 amigaos*)
7605 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)'
7606 hardcode_libdir_flag_spec='-L$libdir'
7607 hardcode_minus_L=yes
7608 # see comment about different semantics on the GNU ld section
7609 ld_shlibs=no
7610 ;;
7611
7612 bsdi[45]*)
7613 export_dynamic_flag_spec=-rdynamic
7614 ;;
7615
7616 cygwin* | mingw* | pw32*)
7617 # When not using gcc, we currently assume that we are using
7618 # Microsoft Visual C++.
7619 # hardcode_libdir_flag_spec is actually meaningless, as there is
7620 # no search path for DLLs.
7621 hardcode_libdir_flag_spec=' '
7622 allow_undefined_flag=unsupported
7623 # Tell ltmain to make .lib files, not .a files.
7624 libext=lib
7625 # Tell ltmain to make .dll files, not .so files.
7626 shrext_cmds=".dll"
7627 # FIXME: Setting linknames here is a bad hack.
7628 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7629 # The linker will automatically build a .lib file if we build a DLL.
7630 old_archive_From_new_cmds='true'
7631 # FIXME: Should let the user specify the lib program.
7632 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7633 fix_srcfile_path='`cygpath -w "$srcfile"`'
7634 enable_shared_with_static_runtimes=yes
7635 ;;
7636
7637 darwin* | rhapsody*)
7638 case $host_os in
7639 rhapsody* | darwin1.[012])
7640 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7641 ;;
7642 *) # Darwin 1.3 on
7643 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7644 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7645 else
7646 case ${MACOSX_DEPLOYMENT_TARGET} in
7647 10.[012])
7648 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7649 ;;
7650 10.*)
7651 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7652 ;;
7653 esac
7654 fi
7655 ;;
7656 esac
7657 archive_cmds_need_lc=no
7658 hardcode_direct=no
7659 hardcode_automatic=yes
7660 hardcode_shlibpath_var=unsupported
7661 whole_archive_flag_spec=''
7662 link_all_deplibs=yes
7663 if test "$GCC" = yes ; then
7664 output_verbose_link_cmd='echo'
7665 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7666 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7667 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7668 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}'
7669 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}'
7670 else
7671 case $cc_basename in
7672 xlc*)
7673 output_verbose_link_cmd='echo'
7674 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7675 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7676 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7677 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}'
7678 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}'
7679 ;;
7680 *)
7681 ld_shlibs=no
7682 ;;
7683 esac
7684 fi
7685 ;;
7686
7687 dgux*)
7688 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7689 hardcode_libdir_flag_spec='-L$libdir'
7690 hardcode_shlibpath_var=no
7691 ;;
7692
7693 freebsd1*)
7694 ld_shlibs=no
7695 ;;
7696
7697 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7698 # support. Future versions do this automatically, but an explicit c++rt0.o
7699 # does not break anything, and helps significantly (at the cost of a little
7700 # extra space).
7701 freebsd2.2*)
7702 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7703 hardcode_libdir_flag_spec='-R$libdir'
7704 hardcode_direct=yes
7705 hardcode_shlibpath_var=no
7706 ;;
7707
7708 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7709 freebsd2*)
7710 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7711 hardcode_direct=yes
7712 hardcode_minus_L=yes
7713 hardcode_shlibpath_var=no
7714 ;;
7715
7716 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7717 freebsd* | kfreebsd*-gnu | dragonfly*)
7718 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7719 hardcode_libdir_flag_spec='-R$libdir'
7720 hardcode_direct=yes
7721 hardcode_shlibpath_var=no
7722 ;;
7723
7724 hpux9*)
7725 if test "$GCC" = yes; then
7726 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'
7727 else
7728 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'
7729 fi
7730 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7731 hardcode_libdir_separator=:
7732 hardcode_direct=yes
7733
7734 # hardcode_minus_L: Not really in the search PATH,
7735 # but as the default location of the library.
7736 hardcode_minus_L=yes
7737 export_dynamic_flag_spec='${wl}-E'
7738 ;;
7739
7740 hpux10*)
7741 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7742 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7743 else
7744 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7745 fi
7746 if test "$with_gnu_ld" = no; then
7747 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7748 hardcode_libdir_separator=:
7749
7750 hardcode_direct=yes
7751 export_dynamic_flag_spec='${wl}-E'
7752
7753 # hardcode_minus_L: Not really in the search PATH,
7754 # but as the default location of the library.
7755 hardcode_minus_L=yes
7756 fi
7757 ;;
7758
7759 hpux11*)
7760 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7761 case $host_cpu in
7762 hppa*64*)
7763 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7764 ;;
7765 ia64*)
7766 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7767 ;;
7768 *)
7769 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7770 ;;
7771 esac
7772 else
7773 case $host_cpu in
7774 hppa*64*)
7775 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7776 ;;
7777 ia64*)
7778 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7779 ;;
7780 *)
7781 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7782 ;;
7783 esac
7784 fi
7785 if test "$with_gnu_ld" = no; then
7786 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7787 hardcode_libdir_separator=:
7788
7789 case $host_cpu in
7790 hppa*64*|ia64*)
7791 hardcode_libdir_flag_spec_ld='+b $libdir'
7792 hardcode_direct=no
7793 hardcode_shlibpath_var=no
7794 ;;
7795 *)
7796 hardcode_direct=yes
7797 export_dynamic_flag_spec='${wl}-E'
7798
7799 # hardcode_minus_L: Not really in the search PATH,
7800 # but as the default location of the library.
7801 hardcode_minus_L=yes
7802 ;;
7803 esac
7804 fi
7805 ;;
7806
7807 irix5* | irix6* | nonstopux*)
7808 if test "$GCC" = yes; then
7809 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'
7810 else
7811 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'
7812 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7813 fi
7814 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7815 hardcode_libdir_separator=:
7816 link_all_deplibs=yes
7817 ;;
7818
7819 netbsd*)
7820 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7821 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7822 else
7823 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7824 fi
7825 hardcode_libdir_flag_spec='-R$libdir'
7826 hardcode_direct=yes
7827 hardcode_shlibpath_var=no
7828 ;;
7829
7830 newsos6)
7831 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7832 hardcode_direct=yes
7833 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7834 hardcode_libdir_separator=:
7835 hardcode_shlibpath_var=no
7836 ;;
7837
7838 openbsd*)
7839 hardcode_direct=yes
7840 hardcode_shlibpath_var=no
7841 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7842 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7843 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7844 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7845 export_dynamic_flag_spec='${wl}-E'
7846 else
7847 case $host_os in
7848 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7849 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7850 hardcode_libdir_flag_spec='-R$libdir'
7851 ;;
7852 *)
7853 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7854 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7855 ;;
7856 esac
7857 fi
7858 ;;
7859
7860 os2*)
7861 hardcode_libdir_flag_spec='-L$libdir'
7862 hardcode_minus_L=yes
7863 allow_undefined_flag=unsupported
7864 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'
7865 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7866 ;;
7867
7868 osf3*)
7869 if test "$GCC" = yes; then
7870 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7871 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'
7872 else
7873 allow_undefined_flag=' -expect_unresolved \*'
7874 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'
7875 fi
7876 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7877 hardcode_libdir_separator=:
7878 ;;
7879
7880 osf4* | osf5*) # as osf3* with the addition of -msym flag
7881 if test "$GCC" = yes; then
7882 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7883 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'
7884 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7885 else
7886 allow_undefined_flag=' -expect_unresolved \*'
7887 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'
7888 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7889 $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'
7890
7891 # Both c and cxx compiler support -rpath directly
7892 hardcode_libdir_flag_spec='-rpath $libdir'
7893 fi
7894 hardcode_libdir_separator=:
7895 ;;
7896
7897 solaris*)
7898 no_undefined_flag=' -z text'
7899 if test "$GCC" = yes; then
7900 wlarc='${wl}'
7901 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7902 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7903 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7904 else
7905 wlarc=''
7906 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7907 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7908 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7909 fi
7910 hardcode_libdir_flag_spec='-R$libdir'
7911 hardcode_shlibpath_var=no
7912 case $host_os in
7913 solaris2.[0-5] | solaris2.[0-5].*) ;;
7914 *)
7915 # The compiler driver will combine linker options so we
7916 # cannot just pass the convience library names through
7917 # without $wl, iff we do not link with $LD.
7918 # Luckily, gcc supports the same syntax we need for Sun Studio.
7919 # Supported since Solaris 2.6 (maybe 2.5.1?)
7920 case $wlarc in
7921 '')
7922 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7923 *)
7924 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' ;;
7925 esac ;;
7926 esac
7927 link_all_deplibs=yes
7928 ;;
7929
7930 sunos4*)
7931 if test "x$host_vendor" = xsequent; then
7932 # Use $CC to link under sequent, because it throws in some extra .o
7933 # files that make .init and .fini sections work.
7934 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7935 else
7936 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7937 fi
7938 hardcode_libdir_flag_spec='-L$libdir'
7939 hardcode_direct=yes
7940 hardcode_minus_L=yes
7941 hardcode_shlibpath_var=no
7942 ;;
7943
7944 sysv4)
7945 case $host_vendor in
7946 sni)
7947 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7948 hardcode_direct=yes # is this really true???
7949 ;;
7950 siemens)
7951 ## LD is ld it makes a PLAMLIB
7952 ## CC just makes a GrossModule.
7953 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7954 reload_cmds='$CC -r -o $output$reload_objs'
7955 hardcode_direct=no
7956 ;;
7957 motorola)
7958 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7959 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7960 ;;
7961 esac
7962 runpath_var='LD_RUN_PATH'
7963 hardcode_shlibpath_var=no
7964 ;;
7965
7966 sysv4.3*)
7967 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7968 hardcode_shlibpath_var=no
7969 export_dynamic_flag_spec='-Bexport'
7970 ;;
7971
7972 sysv4*MP*)
7973 if test -d /usr/nec; then
7974 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7975 hardcode_shlibpath_var=no
7976 runpath_var=LD_RUN_PATH
7977 hardcode_runpath_var=yes
7978 ld_shlibs=yes
7979 fi
7980 ;;
7981
7982 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7983 no_undefined_flag='${wl}-z,text'
7984 archive_cmds_need_lc=no
7985 hardcode_shlibpath_var=no
7986 runpath_var='LD_RUN_PATH'
7987
7988 if test "$GCC" = yes; then
7989 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7990 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7991 else
7992 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7993 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7994 fi
7995 ;;
7996
7997 sysv5* | sco3.2v5* | sco5v6*)
7998 # Note: We can NOT use -z defs as we might desire, because we do not
7999 # link with -lc, and that would cause any symbols used from libc to
8000 # always be unresolved, which means just about no library would
8001 # ever link correctly. If we're not using GNU ld we use -z text
8002 # though, which does catch some bad symbols but isn't as heavy-handed
8003 # as -z defs.
8004 no_undefined_flag='${wl}-z,text'
8005 allow_undefined_flag='${wl}-z,nodefs'
8006 archive_cmds_need_lc=no
8007 hardcode_shlibpath_var=no
8008 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8009 hardcode_libdir_separator=':'
8010 link_all_deplibs=yes
8011 export_dynamic_flag_spec='${wl}-Bexport'
8012 runpath_var='LD_RUN_PATH'
8013
8014 if test "$GCC" = yes; then
8015 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8016 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8017 else
8018 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8019 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8020 fi
8021 ;;
8022
8023 uts4*)
8024 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8025 hardcode_libdir_flag_spec='-L$libdir'
8026 hardcode_shlibpath_var=no
8027 ;;
8028
8029 *)
8030 ld_shlibs=no
8031 ;;
8032 esac
8033 fi
8034
8035echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8036echo "${ECHO_T}$ld_shlibs" >&6
8037test "$ld_shlibs" = no && can_build_shared=no
8038
8039#
8040# Do we need to explicitly link libc?
8041#
8042case "x$archive_cmds_need_lc" in
8043x|xyes)
8044 # Assume -lc should be added
8045 archive_cmds_need_lc=yes
8046
8047 if test "$enable_shared" = yes && test "$GCC" = yes; then
8048 case $archive_cmds in
8049 *'~'*)
8050 # FIXME: we may have to deal with multi-command sequences.
8051 ;;
8052 '$CC '*)
8053 # Test whether the compiler implicitly links with -lc since on some
8054 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8055 # to ld, don't add -lc before -lgcc.
8056 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8057echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8058 $rm conftest*
8059 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8060
8061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8062 (eval $ac_compile) 2>&5
8063 ac_status=$?
8064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065 (exit $ac_status); } 2>conftest.err; then
8066 soname=conftest
8067 lib=conftest
8068 libobjs=conftest.$ac_objext
8069 deplibs=
8070 wl=$lt_prog_compiler_wl
8071 pic_flag=$lt_prog_compiler_pic
8072 compiler_flags=-v
8073 linker_flags=-v
8074 verstring=
8075 output_objdir=.
8076 libname=conftest
8077 lt_save_allow_undefined_flag=$allow_undefined_flag
8078 allow_undefined_flag=
8079 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8080 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8081 ac_status=$?
8082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8083 (exit $ac_status); }
8084 then
8085 archive_cmds_need_lc=no
8086 else
8087 archive_cmds_need_lc=yes
8088 fi
8089 allow_undefined_flag=$lt_save_allow_undefined_flag
8090 else
8091 cat conftest.err 1>&5
8092 fi
8093 $rm conftest*
8094 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8095echo "${ECHO_T}$archive_cmds_need_lc" >&6
8096 ;;
8097 esac
8098 fi
8099 ;;
8100esac
8101
8102echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8103echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8104library_names_spec=
8105libname_spec='lib$name'
8106soname_spec=
8107shrext_cmds=".so"
8108postinstall_cmds=
8109postuninstall_cmds=
8110finish_cmds=
8111finish_eval=
8112shlibpath_var=
8113shlibpath_overrides_runpath=unknown
8114version_type=none
8115dynamic_linker="$host_os ld.so"
8116sys_lib_dlsearch_path_spec="/lib /usr/lib"
8117if test "$GCC" = yes; then
8118 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8119 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8120 # if the path contains ";" then we assume it to be the separator
8121 # otherwise default to the standard path separator (i.e. ":") - it is
8122 # assumed that no part of a normal pathname contains ";" but that should
8123 # okay in the real world where ";" in dirpaths is itself problematic.
8124 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8125 else
8126 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8127 fi
8128else
8129 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8130fi
8131need_lib_prefix=unknown
8132hardcode_into_libs=no
8133
8134# when you set need_version to no, make sure it does not cause -set_version
8135# flags to be left without arguments
8136need_version=unknown
8137
8138case $host_os in
8139aix3*)
8140 version_type=linux
8141 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8142 shlibpath_var=LIBPATH
8143
8144 # AIX 3 has no versioning support, so we append a major version to the name.
8145 soname_spec='${libname}${release}${shared_ext}$major'
8146 ;;
8147
8148aix4* | aix5*)
8149 version_type=linux
8150 need_lib_prefix=no
8151 need_version=no
8152 hardcode_into_libs=yes
8153 if test "$host_cpu" = ia64; then
8154 # AIX 5 supports IA64
8155 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8156 shlibpath_var=LD_LIBRARY_PATH
8157 else
8158 # With GCC up to 2.95.x, collect2 would create an import file
8159 # for dependence libraries. The import file would start with
8160 # the line `#! .'. This would cause the generated library to
8161 # depend on `.', always an invalid library. This was fixed in
8162 # development snapshots of GCC prior to 3.0.
8163 case $host_os in
8164 aix4 | aix4.[01] | aix4.[01].*)
8165 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8166 echo ' yes '
8167 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8168 :
8169 else
8170 can_build_shared=no
8171 fi
8172 ;;
8173 esac
8174 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8175 # soname into executable. Probably we can add versioning support to
8176 # collect2, so additional links can be useful in future.
8177 if test "$aix_use_runtimelinking" = yes; then
8178 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8179 # instead of lib<name>.a to let people know that these are not
8180 # typical AIX shared libraries.
8181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8182 else
8183 # We preserve .a as extension for shared libraries through AIX4.2
8184 # and later when we are not doing run time linking.
8185 library_names_spec='${libname}${release}.a $libname.a'
8186 soname_spec='${libname}${release}${shared_ext}$major'
8187 fi
8188 shlibpath_var=LIBPATH
8189 fi
8190 ;;
8191
8192amigaos*)
8193 library_names_spec='$libname.ixlibrary $libname.a'
8194 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8195 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'
8196 ;;
8197
8198beos*)
8199 library_names_spec='${libname}${shared_ext}'
8200 dynamic_linker="$host_os ld.so"
8201 shlibpath_var=LIBRARY_PATH
8202 ;;
8203
8204bsdi[45]*)
8205 version_type=linux
8206 need_version=no
8207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8208 soname_spec='${libname}${release}${shared_ext}$major'
8209 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8210 shlibpath_var=LD_LIBRARY_PATH
8211 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8212 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8213 # the default ld.so.conf also contains /usr/contrib/lib and
8214 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8215 # libtool to hard-code these into programs
8216 ;;
8217
8218cygwin* | mingw* | pw32*)
8219 version_type=windows
8220 shrext_cmds=".dll"
8221 need_version=no
8222 need_lib_prefix=no
8223
8224 case $GCC,$host_os in
8225 yes,cygwin* | yes,mingw* | yes,pw32*)
8226 library_names_spec='$libname.dll.a'
8227 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8228 postinstall_cmds='base_file=`basename \${file}`~
8229 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8230 dldir=$destdir/`dirname \$dlpath`~
8231 test -d \$dldir || mkdir -p \$dldir~
8232 $install_prog $dir/$dlname \$dldir/$dlname~
8233 chmod a+x \$dldir/$dlname'
8234 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8235 dlpath=$dir/\$dldll~
8236 $rm \$dlpath'
8237 shlibpath_overrides_runpath=yes
8238
8239 case $host_os in
8240 cygwin*)
8241 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8242 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8243 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8244 ;;
8245 mingw*)
8246 # MinGW DLLs use traditional 'lib' prefix
8247 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8248 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8249 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8250 # It is most probably a Windows format PATH printed by
8251 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8252 # path with ; separators, and with drive letters. We can handle the
8253 # drive letters (cygwin fileutils understands them), so leave them,
8254 # especially as we might pass files found there to a mingw objdump,
8255 # which wouldn't understand a cygwinified path. Ahh.
8256 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8257 else
8258 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8259 fi
8260 ;;
8261 pw32*)
8262 # pw32 DLLs use 'pw' prefix rather than 'lib'
8263 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8264 ;;
8265 esac
8266 ;;
8267
8268 *)
8269 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8270 ;;
8271 esac
8272 dynamic_linker='Win32 ld.exe'
8273 # FIXME: first we should search . and the directory the executable is in
8274 shlibpath_var=PATH
8275 ;;
8276
8277darwin* | rhapsody*)
8278 dynamic_linker="$host_os dyld"
8279 version_type=darwin
8280 need_lib_prefix=no
8281 need_version=no
8282 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8283 soname_spec='${libname}${release}${major}$shared_ext'
8284 shlibpath_overrides_runpath=yes
8285 shlibpath_var=DYLD_LIBRARY_PATH
8286 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8287 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8288 if test "$GCC" = yes; then
8289 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"`
8290 else
8291 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8292 fi
8293 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8294 ;;
8295
8296dgux*)
8297 version_type=linux
8298 need_lib_prefix=no
8299 need_version=no
8300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8301 soname_spec='${libname}${release}${shared_ext}$major'
8302 shlibpath_var=LD_LIBRARY_PATH
8303 ;;
8304
8305freebsd1*)
8306 dynamic_linker=no
8307 ;;
8308
8309kfreebsd*-gnu)
8310 version_type=linux
8311 need_lib_prefix=no
8312 need_version=no
8313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8314 soname_spec='${libname}${release}${shared_ext}$major'
8315 shlibpath_var=LD_LIBRARY_PATH
8316 shlibpath_overrides_runpath=no
8317 hardcode_into_libs=yes
8318 dynamic_linker='GNU ld.so'
8319 ;;
8320
8321freebsd* | dragonfly*)
8322 # DragonFly does not have aout. When/if they implement a new
8323 # versioning mechanism, adjust this.
8324 if test -x /usr/bin/objformat; then
8325 objformat=`/usr/bin/objformat`
8326 else
8327 case $host_os in
8328 freebsd[123]*) objformat=aout ;;
8329 *) objformat=elf ;;
8330 esac
8331 fi
8332 version_type=freebsd-$objformat
8333 case $version_type in
8334 freebsd-elf*)
8335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8336 need_version=no
8337 need_lib_prefix=no
8338 ;;
8339 freebsd-*)
8340 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8341 need_version=yes
8342 ;;
8343 esac
8344 shlibpath_var=LD_LIBRARY_PATH
8345 case $host_os in
8346 freebsd2*)
8347 shlibpath_overrides_runpath=yes
8348 ;;
8349 freebsd3.[01]* | freebsdelf3.[01]*)
8350 shlibpath_overrides_runpath=yes
8351 hardcode_into_libs=yes
8352 ;;
8353 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8354 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8355 shlibpath_overrides_runpath=no
8356 hardcode_into_libs=yes
8357 ;;
8358 freebsd*) # from 4.6 on
8359 shlibpath_overrides_runpath=yes
8360 hardcode_into_libs=yes
8361 ;;
8362 esac
8363 ;;
8364
8365gnu*)
8366 version_type=linux
8367 need_lib_prefix=no
8368 need_version=no
8369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8370 soname_spec='${libname}${release}${shared_ext}$major'
8371 shlibpath_var=LD_LIBRARY_PATH
8372 hardcode_into_libs=yes
8373 ;;
8374
8375hpux9* | hpux10* | hpux11*)
8376 # Give a soname corresponding to the major version so that dld.sl refuses to
8377 # link against other versions.
8378 version_type=sunos
8379 need_lib_prefix=no
8380 need_version=no
8381 case $host_cpu in
8382 ia64*)
8383 shrext_cmds='.so'
8384 hardcode_into_libs=yes
8385 dynamic_linker="$host_os dld.so"
8386 shlibpath_var=LD_LIBRARY_PATH
8387 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8389 soname_spec='${libname}${release}${shared_ext}$major'
8390 if test "X$HPUX_IA64_MODE" = X32; then
8391 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8392 else
8393 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8394 fi
8395 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8396 ;;
8397 hppa*64*)
8398 shrext_cmds='.sl'
8399 hardcode_into_libs=yes
8400 dynamic_linker="$host_os dld.sl"
8401 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8402 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8404 soname_spec='${libname}${release}${shared_ext}$major'
8405 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8406 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8407 ;;
8408 *)
8409 shrext_cmds='.sl'
8410 dynamic_linker="$host_os dld.sl"
8411 shlibpath_var=SHLIB_PATH
8412 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8414 soname_spec='${libname}${release}${shared_ext}$major'
8415 ;;
8416 esac
8417 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8418 postinstall_cmds='chmod 555 $lib'
8419 ;;
8420
8421interix3*)
8422 version_type=linux
8423 need_lib_prefix=no
8424 need_version=no
8425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8426 soname_spec='${libname}${release}${shared_ext}$major'
8427 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8428 shlibpath_var=LD_LIBRARY_PATH
8429 shlibpath_overrides_runpath=no
8430 hardcode_into_libs=yes
8431 ;;
8432
8433irix5* | irix6* | nonstopux*)
8434 case $host_os in
8435 nonstopux*) version_type=nonstopux ;;
8436 *)
8437 if test "$lt_cv_prog_gnu_ld" = yes; then
8438 version_type=linux
8439 else
8440 version_type=irix
8441 fi ;;
8442 esac
8443 need_lib_prefix=no
8444 need_version=no
8445 soname_spec='${libname}${release}${shared_ext}$major'
8446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8447 case $host_os in
8448 irix5* | nonstopux*)
8449 libsuff= shlibsuff=
8450 ;;
8451 *)
8452 case $LD in # libtool.m4 will add one of these switches to LD
8453 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8454 libsuff= shlibsuff= libmagic=32-bit;;
8455 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8456 libsuff=32 shlibsuff=N32 libmagic=N32;;
8457 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8458 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8459 *) libsuff= shlibsuff= libmagic=never-match;;
8460 esac
8461 ;;
8462 esac
8463 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8464 shlibpath_overrides_runpath=no
8465 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8466 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8467 hardcode_into_libs=yes
8468 ;;
8469
8470# No shared lib support for Linux oldld, aout, or coff.
8471linux*oldld* | linux*aout* | linux*coff*)
8472 dynamic_linker=no
8473 ;;
8474
8475# This must be Linux ELF.
8476linux*)
8477 version_type=linux
8478 need_lib_prefix=no
8479 need_version=no
8480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8481 soname_spec='${libname}${release}${shared_ext}$major'
8482 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8483 shlibpath_var=LD_LIBRARY_PATH
8484 shlibpath_overrides_runpath=no
8485 # This implies no fast_install, which is unacceptable.
8486 # Some rework will be needed to allow for fast_install
8487 # before this can be enabled.
8488 hardcode_into_libs=yes
8489
8490 # find out which ABI we are using
8491 libsuff=
8492 case "$host_cpu" in
8493 x86_64*|s390x*|powerpc64*)
5e9b5d83 8494 echo '#line 8494 "configure"' > conftest.$ac_ext
bf9f3bac 8495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8496 (eval $ac_compile) 2>&5
8497 ac_status=$?
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 (exit $ac_status); }; then
8500 case `/usr/bin/file conftest.$ac_objext` in
8501 *64-bit*)
8502 libsuff=64
8503 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8504 ;;
8505 esac
8506 fi
8507 rm -rf conftest*
8508 ;;
8509 esac
8510
8511 # Append ld.so.conf contents to the search path
8512 if test -f /etc/ld.so.conf; then
8513 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' ' '`
8514 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8515 fi
8516
8517 # We used to test for /lib/ld.so.1 and disable shared libraries on
8518 # powerpc, because MkLinux only supported shared libraries with the
8519 # GNU dynamic linker. Since this was broken with cross compilers,
8520 # most powerpc-linux boxes support dynamic linking these days and
8521 # people can always --disable-shared, the test was removed, and we
8522 # assume the GNU/Linux dynamic linker is in use.
8523 dynamic_linker='GNU/Linux ld.so'
8524 ;;
8525
8526knetbsd*-gnu)
8527 version_type=linux
8528 need_lib_prefix=no
8529 need_version=no
8530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8531 soname_spec='${libname}${release}${shared_ext}$major'
8532 shlibpath_var=LD_LIBRARY_PATH
8533 shlibpath_overrides_runpath=no
8534 hardcode_into_libs=yes
8535 dynamic_linker='GNU ld.so'
8536 ;;
8537
8538netbsd*)
8539 version_type=sunos
8540 need_lib_prefix=no
8541 need_version=no
8542 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8544 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8545 dynamic_linker='NetBSD (a.out) ld.so'
8546 else
8547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8548 soname_spec='${libname}${release}${shared_ext}$major'
8549 dynamic_linker='NetBSD ld.elf_so'
8550 fi
8551 shlibpath_var=LD_LIBRARY_PATH
8552 shlibpath_overrides_runpath=yes
8553 hardcode_into_libs=yes
8554 ;;
8555
8556newsos6)
8557 version_type=linux
8558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8559 shlibpath_var=LD_LIBRARY_PATH
8560 shlibpath_overrides_runpath=yes
8561 ;;
8562
8563nto-qnx*)
8564 version_type=linux
8565 need_lib_prefix=no
8566 need_version=no
8567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8568 soname_spec='${libname}${release}${shared_ext}$major'
8569 shlibpath_var=LD_LIBRARY_PATH
8570 shlibpath_overrides_runpath=yes
8571 ;;
8572
8573openbsd*)
8574 version_type=sunos
8575 sys_lib_dlsearch_path_spec="/usr/lib"
8576 need_lib_prefix=no
8577 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8578 case $host_os in
8579 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8580 *) need_version=no ;;
8581 esac
8582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8583 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8584 shlibpath_var=LD_LIBRARY_PATH
8585 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8586 case $host_os in
8587 openbsd2.[89] | openbsd2.[89].*)
8588 shlibpath_overrides_runpath=no
8589 ;;
8590 *)
8591 shlibpath_overrides_runpath=yes
8592 ;;
8593 esac
8594 else
8595 shlibpath_overrides_runpath=yes
8596 fi
8597 ;;
8598
8599os2*)
8600 libname_spec='$name'
8601 shrext_cmds=".dll"
8602 need_lib_prefix=no
8603 library_names_spec='$libname${shared_ext} $libname.a'
8604 dynamic_linker='OS/2 ld.exe'
8605 shlibpath_var=LIBPATH
8606 ;;
8607
8608osf3* | osf4* | osf5*)
8609 version_type=osf
8610 need_lib_prefix=no
8611 need_version=no
8612 soname_spec='${libname}${release}${shared_ext}$major'
8613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8614 shlibpath_var=LD_LIBRARY_PATH
8615 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8616 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8617 ;;
8618
8619solaris*)
8620 version_type=linux
8621 need_lib_prefix=no
8622 need_version=no
8623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8624 soname_spec='${libname}${release}${shared_ext}$major'
8625 shlibpath_var=LD_LIBRARY_PATH
8626 shlibpath_overrides_runpath=yes
8627 hardcode_into_libs=yes
8628 # ldd complains unless libraries are executable
8629 postinstall_cmds='chmod +x $lib'
8630 ;;
8631
8632sunos4*)
8633 version_type=sunos
8634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8635 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8636 shlibpath_var=LD_LIBRARY_PATH
8637 shlibpath_overrides_runpath=yes
8638 if test "$with_gnu_ld" = yes; then
8639 need_lib_prefix=no
8640 fi
8641 need_version=yes
8642 ;;
8643
8644sysv4 | sysv4.3*)
8645 version_type=linux
8646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8647 soname_spec='${libname}${release}${shared_ext}$major'
8648 shlibpath_var=LD_LIBRARY_PATH
8649 case $host_vendor in
8650 sni)
8651 shlibpath_overrides_runpath=no
8652 need_lib_prefix=no
8653 export_dynamic_flag_spec='${wl}-Blargedynsym'
8654 runpath_var=LD_RUN_PATH
8655 ;;
8656 siemens)
8657 need_lib_prefix=no
8658 ;;
8659 motorola)
8660 need_lib_prefix=no
8661 need_version=no
8662 shlibpath_overrides_runpath=no
8663 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8664 ;;
8665 esac
8666 ;;
8667
8668sysv4*MP*)
8669 if test -d /usr/nec ;then
8670 version_type=linux
8671 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8672 soname_spec='$libname${shared_ext}.$major'
8673 shlibpath_var=LD_LIBRARY_PATH
8674 fi
8675 ;;
8676
8677sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8678 version_type=freebsd-elf
8679 need_lib_prefix=no
8680 need_version=no
8681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8682 soname_spec='${libname}${release}${shared_ext}$major'
8683 shlibpath_var=LD_LIBRARY_PATH
8684 hardcode_into_libs=yes
8685 if test "$with_gnu_ld" = yes; then
8686 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8687 shlibpath_overrides_runpath=no
8688 else
8689 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8690 shlibpath_overrides_runpath=yes
8691 case $host_os in
8692 sco3.2v5*)
8693 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8694 ;;
8695 esac
8696 fi
8697 sys_lib_dlsearch_path_spec='/usr/lib'
8698 ;;
8699
8700uts4*)
8701 version_type=linux
8702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8703 soname_spec='${libname}${release}${shared_ext}$major'
8704 shlibpath_var=LD_LIBRARY_PATH
8705 ;;
8706
8707*)
8708 dynamic_linker=no
8709 ;;
8710esac
8711echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8712echo "${ECHO_T}$dynamic_linker" >&6
8713test "$dynamic_linker" = no && can_build_shared=no
8714
8715variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8716if test "$GCC" = yes; then
8717 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8718fi
8719
8720echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8721echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8722hardcode_action=
8723if test -n "$hardcode_libdir_flag_spec" || \
8724 test -n "$runpath_var" || \
8725 test "X$hardcode_automatic" = "Xyes" ; then
8726
8727 # We can hardcode non-existant directories.
8728 if test "$hardcode_direct" != no &&
8729 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8730 # have to relink, otherwise we might link with an installed library
8731 # when we should be linking with a yet-to-be-installed one
8732 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8733 test "$hardcode_minus_L" != no; then
8734 # Linking always hardcodes the temporary library directory.
8735 hardcode_action=relink
8736 else
8737 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8738 hardcode_action=immediate
8739 fi
8740else
8741 # We cannot hardcode anything, or else we can only hardcode existing
8742 # directories.
8743 hardcode_action=unsupported
8744fi
8745echo "$as_me:$LINENO: result: $hardcode_action" >&5
8746echo "${ECHO_T}$hardcode_action" >&6
8747
8748if test "$hardcode_action" = relink; then
8749 # Fast installation is not supported
8750 enable_fast_install=no
8751elif test "$shlibpath_overrides_runpath" = yes ||
8752 test "$enable_shared" = no; then
8753 # Fast installation is not necessary
8754 enable_fast_install=needless
8755fi
8756
8757striplib=
8758old_striplib=
8759echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8760echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8761if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8762 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8763 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8764 echo "$as_me:$LINENO: result: yes" >&5
8765echo "${ECHO_T}yes" >&6
8766else
8767# FIXME - insert some real tests, host_os isn't really good enough
8768 case $host_os in
8769 darwin*)
8770 if test -n "$STRIP" ; then
8771 striplib="$STRIP -x"
8772 echo "$as_me:$LINENO: result: yes" >&5
8773echo "${ECHO_T}yes" >&6
8774 else
8775 echo "$as_me:$LINENO: result: no" >&5
8776echo "${ECHO_T}no" >&6
8777fi
8778 ;;
8779 *)
8780 echo "$as_me:$LINENO: result: no" >&5
8781echo "${ECHO_T}no" >&6
8782 ;;
8783 esac
8784fi
8785
8786if test "x$enable_dlopen" != xyes; then
8787 enable_dlopen=unknown
8788 enable_dlopen_self=unknown
8789 enable_dlopen_self_static=unknown
8790else
8791 lt_cv_dlopen=no
8792 lt_cv_dlopen_libs=
8793
8794 case $host_os in
8795 beos*)
8796 lt_cv_dlopen="load_add_on"
8797 lt_cv_dlopen_libs=
8798 lt_cv_dlopen_self=yes
8799 ;;
8800
8801 mingw* | pw32*)
8802 lt_cv_dlopen="LoadLibrary"
8803 lt_cv_dlopen_libs=
8804 ;;
8805
8806 cygwin*)
8807 lt_cv_dlopen="dlopen"
8808 lt_cv_dlopen_libs=
8809 ;;
8810
8811 darwin*)
8812 # if libdl is installed we need to link against it
8813 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8814echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8815if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8816 echo $ECHO_N "(cached) $ECHO_C" >&6
8817else
8818 ac_check_lib_save_LIBS=$LIBS
8819LIBS="-ldl $LIBS"
8820cat >conftest.$ac_ext <<_ACEOF
8821/* confdefs.h. */
8822_ACEOF
8823cat confdefs.h >>conftest.$ac_ext
8824cat >>conftest.$ac_ext <<_ACEOF
8825/* end confdefs.h. */
8826
8827/* Override any gcc2 internal prototype to avoid an error. */
8828#ifdef __cplusplus
8829extern "C"
8830#endif
8831/* We use char because int might match the return type of a gcc2
8832 builtin and then its argument prototype would still apply. */
8833char dlopen ();
8834int
8835main ()
8836{
8837dlopen ();
8838 ;
8839 return 0;
8840}
8841_ACEOF
8842rm -f conftest.$ac_objext conftest$ac_exeext
8843if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8844 (eval $ac_link) 2>conftest.er1
8845 ac_status=$?
8846 grep -v '^ *+' conftest.er1 >conftest.err
8847 rm -f conftest.er1
8848 cat conftest.err >&5
8849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850 (exit $ac_status); } &&
8851 { ac_try='test -z "$ac_c_werror_flag"
8852 || test ! -s conftest.err'
8853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8854 (eval $ac_try) 2>&5
8855 ac_status=$?
8856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8857 (exit $ac_status); }; } &&
8858 { ac_try='test -s conftest$ac_exeext'
8859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8860 (eval $ac_try) 2>&5
8861 ac_status=$?
8862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8863 (exit $ac_status); }; }; then
8864 ac_cv_lib_dl_dlopen=yes
8865else
8866 echo "$as_me: failed program was:" >&5
8867sed 's/^/| /' conftest.$ac_ext >&5
8868
8869ac_cv_lib_dl_dlopen=no
8870fi
8871rm -f conftest.err conftest.$ac_objext \
8872 conftest$ac_exeext conftest.$ac_ext
8873LIBS=$ac_check_lib_save_LIBS
8874fi
8875echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8876echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8877if test $ac_cv_lib_dl_dlopen = yes; then
8878 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8879else
8880
8881 lt_cv_dlopen="dyld"
8882 lt_cv_dlopen_libs=
8883 lt_cv_dlopen_self=yes
8884
8885fi
8886
8887 ;;
8888
8889 *)
8890 echo "$as_me:$LINENO: checking for shl_load" >&5
8891echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8892if test "${ac_cv_func_shl_load+set}" = set; then
8893 echo $ECHO_N "(cached) $ECHO_C" >&6
8894else
8895 cat >conftest.$ac_ext <<_ACEOF
8896/* confdefs.h. */
8897_ACEOF
8898cat confdefs.h >>conftest.$ac_ext
8899cat >>conftest.$ac_ext <<_ACEOF
8900/* end confdefs.h. */
8901/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8902 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8903#define shl_load innocuous_shl_load
8904
8905/* System header to define __stub macros and hopefully few prototypes,
8906 which can conflict with char shl_load (); below.
8907 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8908 <limits.h> exists even on freestanding compilers. */
8909
8910#ifdef __STDC__
8911# include <limits.h>
8912#else
8913# include <assert.h>
8914#endif
8915
8916#undef shl_load
8917
8918/* Override any gcc2 internal prototype to avoid an error. */
8919#ifdef __cplusplus
8920extern "C"
8921{
8922#endif
8923/* We use char because int might match the return type of a gcc2
8924 builtin and then its argument prototype would still apply. */
8925char shl_load ();
8926/* The GNU C library defines this for functions which it implements
8927 to always fail with ENOSYS. Some functions are actually named
8928 something starting with __ and the normal name is an alias. */
8929#if defined (__stub_shl_load) || defined (__stub___shl_load)
8930choke me
8931#else
8932char (*f) () = shl_load;
8933#endif
8934#ifdef __cplusplus
8935}
8936#endif
8937
8938int
8939main ()
8940{
8941return f != shl_load;
8942 ;
8943 return 0;
8944}
8945_ACEOF
8946rm -f conftest.$ac_objext conftest$ac_exeext
8947if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8948 (eval $ac_link) 2>conftest.er1
8949 ac_status=$?
8950 grep -v '^ *+' conftest.er1 >conftest.err
8951 rm -f conftest.er1
8952 cat conftest.err >&5
8953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954 (exit $ac_status); } &&
8955 { ac_try='test -z "$ac_c_werror_flag"
8956 || test ! -s conftest.err'
8957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8958 (eval $ac_try) 2>&5
8959 ac_status=$?
8960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8961 (exit $ac_status); }; } &&
8962 { ac_try='test -s conftest$ac_exeext'
8963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8964 (eval $ac_try) 2>&5
8965 ac_status=$?
8966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967 (exit $ac_status); }; }; then
8968 ac_cv_func_shl_load=yes
8969else
8970 echo "$as_me: failed program was:" >&5
8971sed 's/^/| /' conftest.$ac_ext >&5
8972
8973ac_cv_func_shl_load=no
8974fi
8975rm -f conftest.err conftest.$ac_objext \
8976 conftest$ac_exeext conftest.$ac_ext
8977fi
8978echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8979echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8980if test $ac_cv_func_shl_load = yes; then
8981 lt_cv_dlopen="shl_load"
8982else
8983 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8984echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8985if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8986 echo $ECHO_N "(cached) $ECHO_C" >&6
8987else
8988 ac_check_lib_save_LIBS=$LIBS
8989LIBS="-ldld $LIBS"
8990cat >conftest.$ac_ext <<_ACEOF
8991/* confdefs.h. */
8992_ACEOF
8993cat confdefs.h >>conftest.$ac_ext
8994cat >>conftest.$ac_ext <<_ACEOF
8995/* end confdefs.h. */
8996
8997/* Override any gcc2 internal prototype to avoid an error. */
8998#ifdef __cplusplus
8999extern "C"
9000#endif
9001/* We use char because int might match the return type of a gcc2
9002 builtin and then its argument prototype would still apply. */
9003char shl_load ();
9004int
9005main ()
9006{
9007shl_load ();
9008 ;
9009 return 0;
9010}
9011_ACEOF
9012rm -f conftest.$ac_objext conftest$ac_exeext
9013if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9014 (eval $ac_link) 2>conftest.er1
9015 ac_status=$?
9016 grep -v '^ *+' conftest.er1 >conftest.err
9017 rm -f conftest.er1
9018 cat conftest.err >&5
9019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020 (exit $ac_status); } &&
9021 { ac_try='test -z "$ac_c_werror_flag"
9022 || test ! -s conftest.err'
9023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9024 (eval $ac_try) 2>&5
9025 ac_status=$?
9026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9027 (exit $ac_status); }; } &&
9028 { ac_try='test -s conftest$ac_exeext'
9029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9030 (eval $ac_try) 2>&5
9031 ac_status=$?
9032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9033 (exit $ac_status); }; }; then
9034 ac_cv_lib_dld_shl_load=yes
9035else
9036 echo "$as_me: failed program was:" >&5
9037sed 's/^/| /' conftest.$ac_ext >&5
9038
9039ac_cv_lib_dld_shl_load=no
9040fi
9041rm -f conftest.err conftest.$ac_objext \
9042 conftest$ac_exeext conftest.$ac_ext
9043LIBS=$ac_check_lib_save_LIBS
9044fi
9045echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9046echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9047if test $ac_cv_lib_dld_shl_load = yes; then
9048 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9049else
9050 echo "$as_me:$LINENO: checking for dlopen" >&5
9051echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9052if test "${ac_cv_func_dlopen+set}" = set; then
9053 echo $ECHO_N "(cached) $ECHO_C" >&6
9054else
9055 cat >conftest.$ac_ext <<_ACEOF
9056/* confdefs.h. */
9057_ACEOF
9058cat confdefs.h >>conftest.$ac_ext
9059cat >>conftest.$ac_ext <<_ACEOF
9060/* end confdefs.h. */
9061/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9062 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9063#define dlopen innocuous_dlopen
9064
9065/* System header to define __stub macros and hopefully few prototypes,
9066 which can conflict with char dlopen (); below.
9067 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9068 <limits.h> exists even on freestanding compilers. */
9069
9070#ifdef __STDC__
9071# include <limits.h>
9072#else
9073# include <assert.h>
9074#endif
9075
9076#undef dlopen
9077
9078/* Override any gcc2 internal prototype to avoid an error. */
9079#ifdef __cplusplus
9080extern "C"
9081{
9082#endif
9083/* We use char because int might match the return type of a gcc2
9084 builtin and then its argument prototype would still apply. */
9085char dlopen ();
9086/* The GNU C library defines this for functions which it implements
9087 to always fail with ENOSYS. Some functions are actually named
9088 something starting with __ and the normal name is an alias. */
9089#if defined (__stub_dlopen) || defined (__stub___dlopen)
9090choke me
9091#else
9092char (*f) () = dlopen;
9093#endif
9094#ifdef __cplusplus
9095}
9096#endif
9097
9098int
9099main ()
9100{
9101return f != dlopen;
9102 ;
9103 return 0;
9104}
9105_ACEOF
9106rm -f conftest.$ac_objext conftest$ac_exeext
9107if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9108 (eval $ac_link) 2>conftest.er1
9109 ac_status=$?
9110 grep -v '^ *+' conftest.er1 >conftest.err
9111 rm -f conftest.er1
9112 cat conftest.err >&5
9113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9114 (exit $ac_status); } &&
9115 { ac_try='test -z "$ac_c_werror_flag"
9116 || test ! -s conftest.err'
9117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9118 (eval $ac_try) 2>&5
9119 ac_status=$?
9120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9121 (exit $ac_status); }; } &&
9122 { ac_try='test -s conftest$ac_exeext'
9123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9124 (eval $ac_try) 2>&5
9125 ac_status=$?
9126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9127 (exit $ac_status); }; }; then
9128 ac_cv_func_dlopen=yes
9129else
9130 echo "$as_me: failed program was:" >&5
9131sed 's/^/| /' conftest.$ac_ext >&5
9132
9133ac_cv_func_dlopen=no
9134fi
9135rm -f conftest.err conftest.$ac_objext \
9136 conftest$ac_exeext conftest.$ac_ext
9137fi
9138echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9139echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9140if test $ac_cv_func_dlopen = yes; then
9141 lt_cv_dlopen="dlopen"
9142else
9143 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9144echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9145if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9146 echo $ECHO_N "(cached) $ECHO_C" >&6
9147else
9148 ac_check_lib_save_LIBS=$LIBS
9149LIBS="-ldl $LIBS"
9150cat >conftest.$ac_ext <<_ACEOF
9151/* confdefs.h. */
9152_ACEOF
9153cat confdefs.h >>conftest.$ac_ext
9154cat >>conftest.$ac_ext <<_ACEOF
9155/* end confdefs.h. */
9156
9157/* Override any gcc2 internal prototype to avoid an error. */
9158#ifdef __cplusplus
9159extern "C"
9160#endif
9161/* We use char because int might match the return type of a gcc2
9162 builtin and then its argument prototype would still apply. */
9163char dlopen ();
9164int
9165main ()
9166{
9167dlopen ();
9168 ;
9169 return 0;
9170}
9171_ACEOF
9172rm -f conftest.$ac_objext conftest$ac_exeext
9173if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9174 (eval $ac_link) 2>conftest.er1
9175 ac_status=$?
9176 grep -v '^ *+' conftest.er1 >conftest.err
9177 rm -f conftest.er1
9178 cat conftest.err >&5
9179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9180 (exit $ac_status); } &&
9181 { ac_try='test -z "$ac_c_werror_flag"
9182 || test ! -s conftest.err'
9183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9184 (eval $ac_try) 2>&5
9185 ac_status=$?
9186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9187 (exit $ac_status); }; } &&
9188 { ac_try='test -s conftest$ac_exeext'
9189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9190 (eval $ac_try) 2>&5
9191 ac_status=$?
9192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9193 (exit $ac_status); }; }; then
9194 ac_cv_lib_dl_dlopen=yes
9195else
9196 echo "$as_me: failed program was:" >&5
9197sed 's/^/| /' conftest.$ac_ext >&5
9198
9199ac_cv_lib_dl_dlopen=no
9200fi
9201rm -f conftest.err conftest.$ac_objext \
9202 conftest$ac_exeext conftest.$ac_ext
9203LIBS=$ac_check_lib_save_LIBS
9204fi
9205echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9206echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9207if test $ac_cv_lib_dl_dlopen = yes; then
9208 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9209else
9210 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9211echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9212if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9213 echo $ECHO_N "(cached) $ECHO_C" >&6
9214else
9215 ac_check_lib_save_LIBS=$LIBS
9216LIBS="-lsvld $LIBS"
9217cat >conftest.$ac_ext <<_ACEOF
9218/* confdefs.h. */
9219_ACEOF
9220cat confdefs.h >>conftest.$ac_ext
9221cat >>conftest.$ac_ext <<_ACEOF
9222/* end confdefs.h. */
9223
9224/* Override any gcc2 internal prototype to avoid an error. */
9225#ifdef __cplusplus
9226extern "C"
9227#endif
9228/* We use char because int might match the return type of a gcc2
9229 builtin and then its argument prototype would still apply. */
9230char dlopen ();
9231int
9232main ()
9233{
9234dlopen ();
9235 ;
9236 return 0;
9237}
9238_ACEOF
9239rm -f conftest.$ac_objext conftest$ac_exeext
9240if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9241 (eval $ac_link) 2>conftest.er1
9242 ac_status=$?
9243 grep -v '^ *+' conftest.er1 >conftest.err
9244 rm -f conftest.er1
9245 cat conftest.err >&5
9246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247 (exit $ac_status); } &&
9248 { ac_try='test -z "$ac_c_werror_flag"
9249 || test ! -s conftest.err'
9250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9251 (eval $ac_try) 2>&5
9252 ac_status=$?
9253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254 (exit $ac_status); }; } &&
9255 { ac_try='test -s conftest$ac_exeext'
9256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9257 (eval $ac_try) 2>&5
9258 ac_status=$?
9259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9260 (exit $ac_status); }; }; then
9261 ac_cv_lib_svld_dlopen=yes
9262else
9263 echo "$as_me: failed program was:" >&5
9264sed 's/^/| /' conftest.$ac_ext >&5
9265
9266ac_cv_lib_svld_dlopen=no
9267fi
9268rm -f conftest.err conftest.$ac_objext \
9269 conftest$ac_exeext conftest.$ac_ext
9270LIBS=$ac_check_lib_save_LIBS
9271fi
9272echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9273echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9274if test $ac_cv_lib_svld_dlopen = yes; then
9275 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9276else
9277 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9278echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9279if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9280 echo $ECHO_N "(cached) $ECHO_C" >&6
9281else
9282 ac_check_lib_save_LIBS=$LIBS
9283LIBS="-ldld $LIBS"
9284cat >conftest.$ac_ext <<_ACEOF
9285/* confdefs.h. */
9286_ACEOF
9287cat confdefs.h >>conftest.$ac_ext
9288cat >>conftest.$ac_ext <<_ACEOF
9289/* end confdefs.h. */
9290
9291/* Override any gcc2 internal prototype to avoid an error. */
9292#ifdef __cplusplus
9293extern "C"
9294#endif
9295/* We use char because int might match the return type of a gcc2
9296 builtin and then its argument prototype would still apply. */
9297char dld_link ();
9298int
9299main ()
9300{
9301dld_link ();
9302 ;
9303 return 0;
9304}
9305_ACEOF
9306rm -f conftest.$ac_objext conftest$ac_exeext
9307if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9308 (eval $ac_link) 2>conftest.er1
9309 ac_status=$?
9310 grep -v '^ *+' conftest.er1 >conftest.err
9311 rm -f conftest.er1
9312 cat conftest.err >&5
9313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9314 (exit $ac_status); } &&
9315 { ac_try='test -z "$ac_c_werror_flag"
9316 || test ! -s conftest.err'
9317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9318 (eval $ac_try) 2>&5
9319 ac_status=$?
9320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9321 (exit $ac_status); }; } &&
9322 { ac_try='test -s conftest$ac_exeext'
9323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9324 (eval $ac_try) 2>&5
9325 ac_status=$?
9326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9327 (exit $ac_status); }; }; then
9328 ac_cv_lib_dld_dld_link=yes
9329else
9330 echo "$as_me: failed program was:" >&5
9331sed 's/^/| /' conftest.$ac_ext >&5
9332
9333ac_cv_lib_dld_dld_link=no
9334fi
9335rm -f conftest.err conftest.$ac_objext \
9336 conftest$ac_exeext conftest.$ac_ext
9337LIBS=$ac_check_lib_save_LIBS
9338fi
9339echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9340echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9341if test $ac_cv_lib_dld_dld_link = yes; then
9342 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9343fi
9344
9345
9346fi
9347
9348
9349fi
9350
9351
9352fi
9353
9354
9355fi
9356
9357
9358fi
9359
9360 ;;
9361 esac
9362
9363 if test "x$lt_cv_dlopen" != xno; then
9364 enable_dlopen=yes
9365 else
9366 enable_dlopen=no
9367 fi
9368
9369 case $lt_cv_dlopen in
9370 dlopen)
9371 save_CPPFLAGS="$CPPFLAGS"
9372 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9373
9374 save_LDFLAGS="$LDFLAGS"
9375 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9376
9377 save_LIBS="$LIBS"
9378 LIBS="$lt_cv_dlopen_libs $LIBS"
9379
9380 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9381echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9382if test "${lt_cv_dlopen_self+set}" = set; then
9383 echo $ECHO_N "(cached) $ECHO_C" >&6
9384else
9385 if test "$cross_compiling" = yes; then :
9386 lt_cv_dlopen_self=cross
9387else
9388 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9389 lt_status=$lt_dlunknown
9390 cat > conftest.$ac_ext <<EOF
5e9b5d83 9391#line 9391 "configure"
bf9f3bac 9392#include "confdefs.h"
9393
9394#if HAVE_DLFCN_H
9395#include <dlfcn.h>
9396#endif
9397
9398#include <stdio.h>
9399
9400#ifdef RTLD_GLOBAL
9401# define LT_DLGLOBAL RTLD_GLOBAL
9402#else
9403# ifdef DL_GLOBAL
9404# define LT_DLGLOBAL DL_GLOBAL
9405# else
9406# define LT_DLGLOBAL 0
9407# endif
9408#endif
9409
9410/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9411 find out it does not work in some platform. */
9412#ifndef LT_DLLAZY_OR_NOW
9413# ifdef RTLD_LAZY
9414# define LT_DLLAZY_OR_NOW RTLD_LAZY
9415# else
9416# ifdef DL_LAZY
9417# define LT_DLLAZY_OR_NOW DL_LAZY
9418# else
9419# ifdef RTLD_NOW
9420# define LT_DLLAZY_OR_NOW RTLD_NOW
9421# else
9422# ifdef DL_NOW
9423# define LT_DLLAZY_OR_NOW DL_NOW
9424# else
9425# define LT_DLLAZY_OR_NOW 0
9426# endif
9427# endif
9428# endif
9429# endif
9430#endif
9431
9432#ifdef __cplusplus
9433extern "C" void exit (int);
9434#endif
9435
9436void fnord() { int i=42;}
9437int main ()
9438{
9439 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9440 int status = $lt_dlunknown;
9441
9442 if (self)
9443 {
9444 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9445 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9446 /* dlclose (self); */
9447 }
9448 else
9449 puts (dlerror ());
9450
9451 exit (status);
9452}
9453EOF
9454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9455 (eval $ac_link) 2>&5
9456 ac_status=$?
9457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9458 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9459 (./conftest; exit; ) >&5 2>/dev/null
9460 lt_status=$?
9461 case x$lt_status in
9462 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9463 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9464 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9465 esac
9466 else :
9467 # compilation failed
9468 lt_cv_dlopen_self=no
9469 fi
9470fi
9471rm -fr conftest*
9472
9473
9474fi
9475echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9476echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9477
9478 if test "x$lt_cv_dlopen_self" = xyes; then
9479 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9480 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9481echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9482if test "${lt_cv_dlopen_self_static+set}" = set; then
9483 echo $ECHO_N "(cached) $ECHO_C" >&6
9484else
9485 if test "$cross_compiling" = yes; then :
9486 lt_cv_dlopen_self_static=cross
9487else
9488 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9489 lt_status=$lt_dlunknown
9490 cat > conftest.$ac_ext <<EOF
5e9b5d83 9491#line 9491 "configure"
bf9f3bac 9492#include "confdefs.h"
9493
9494#if HAVE_DLFCN_H
9495#include <dlfcn.h>
9496#endif
9497
9498#include <stdio.h>
9499
9500#ifdef RTLD_GLOBAL
9501# define LT_DLGLOBAL RTLD_GLOBAL
9502#else
9503# ifdef DL_GLOBAL
9504# define LT_DLGLOBAL DL_GLOBAL
9505# else
9506# define LT_DLGLOBAL 0
9507# endif
9508#endif
9509
9510/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9511 find out it does not work in some platform. */
9512#ifndef LT_DLLAZY_OR_NOW
9513# ifdef RTLD_LAZY
9514# define LT_DLLAZY_OR_NOW RTLD_LAZY
9515# else
9516# ifdef DL_LAZY
9517# define LT_DLLAZY_OR_NOW DL_LAZY
9518# else
9519# ifdef RTLD_NOW
9520# define LT_DLLAZY_OR_NOW RTLD_NOW
9521# else
9522# ifdef DL_NOW
9523# define LT_DLLAZY_OR_NOW DL_NOW
9524# else
9525# define LT_DLLAZY_OR_NOW 0
9526# endif
9527# endif
9528# endif
9529# endif
9530#endif
9531
9532#ifdef __cplusplus
9533extern "C" void exit (int);
9534#endif
9535
9536void fnord() { int i=42;}
9537int main ()
9538{
9539 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9540 int status = $lt_dlunknown;
9541
9542 if (self)
9543 {
9544 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9545 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9546 /* dlclose (self); */
9547 }
9548 else
9549 puts (dlerror ());
9550
9551 exit (status);
9552}
9553EOF
9554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9555 (eval $ac_link) 2>&5
9556 ac_status=$?
9557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9558 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9559 (./conftest; exit; ) >&5 2>/dev/null
9560 lt_status=$?
9561 case x$lt_status in
9562 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9563 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9564 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9565 esac
9566 else :
9567 # compilation failed
9568 lt_cv_dlopen_self_static=no
9569 fi
9570fi
9571rm -fr conftest*
9572
9573
9574fi
9575echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9576echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9577 fi
9578
9579 CPPFLAGS="$save_CPPFLAGS"
9580 LDFLAGS="$save_LDFLAGS"
9581 LIBS="$save_LIBS"
9582 ;;
9583 esac
9584
9585 case $lt_cv_dlopen_self in
9586 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9587 *) enable_dlopen_self=unknown ;;
9588 esac
9589
9590 case $lt_cv_dlopen_self_static in
9591 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9592 *) enable_dlopen_self_static=unknown ;;
9593 esac
9594fi
9595
9596
9597# Report which library types will actually be built
9598echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9599echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9600echo "$as_me:$LINENO: result: $can_build_shared" >&5
9601echo "${ECHO_T}$can_build_shared" >&6
9602
9603echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9604echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9605test "$can_build_shared" = "no" && enable_shared=no
9606
9607# On AIX, shared libraries and static libraries use the same namespace, and
9608# are all built from PIC.
9609case $host_os in
9610aix3*)
9611 test "$enable_shared" = yes && enable_static=no
9612 if test -n "$RANLIB"; then
9613 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9614 postinstall_cmds='$RANLIB $lib'
9615 fi
9616 ;;
9617
9618aix4* | aix5*)
9619 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9620 test "$enable_shared" = yes && enable_static=no
9621 fi
9622 ;;
9623esac
9624echo "$as_me:$LINENO: result: $enable_shared" >&5
9625echo "${ECHO_T}$enable_shared" >&6
9626
9627echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9628echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9629# Make sure either enable_shared or enable_static is yes.
9630test "$enable_shared" = yes || enable_static=yes
9631echo "$as_me:$LINENO: result: $enable_static" >&5
9632echo "${ECHO_T}$enable_static" >&6
9633
9634# The else clause should only fire when bootstrapping the
9635# libtool distribution, otherwise you forgot to ship ltmain.sh
9636# with your package, and you will get complaints that there are
9637# no rules to generate ltmain.sh.
9638if test -f "$ltmain"; then
9639 # See if we are running on zsh, and set the options which allow our commands through
9640 # without removal of \ escapes.
9641 if test -n "${ZSH_VERSION+set}" ; then
9642 setopt NO_GLOB_SUBST
9643 fi
9644 # Now quote all the things that may contain metacharacters while being
9645 # careful not to overquote the AC_SUBSTed values. We take copies of the
9646 # variables and quote the copies for generation of the libtool script.
9647 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9648 SED SHELL STRIP \
9649 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9650 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9651 deplibs_check_method reload_flag reload_cmds need_locks \
9652 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9653 lt_cv_sys_global_symbol_to_c_name_address \
9654 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9655 old_postinstall_cmds old_postuninstall_cmds \
9656 compiler \
9657 CC \
9658 LD \
9659 lt_prog_compiler_wl \
9660 lt_prog_compiler_pic \
9661 lt_prog_compiler_static \
9662 lt_prog_compiler_no_builtin_flag \
9663 export_dynamic_flag_spec \
9664 thread_safe_flag_spec \
9665 whole_archive_flag_spec \
9666 enable_shared_with_static_runtimes \
9667 old_archive_cmds \
9668 old_archive_from_new_cmds \
9669 predep_objects \
9670 postdep_objects \
9671 predeps \
9672 postdeps \
9673 compiler_lib_search_path \
9674 archive_cmds \
9675 archive_expsym_cmds \
9676 postinstall_cmds \
9677 postuninstall_cmds \
9678 old_archive_from_expsyms_cmds \
9679 allow_undefined_flag \
9680 no_undefined_flag \
9681 export_symbols_cmds \
9682 hardcode_libdir_flag_spec \
9683 hardcode_libdir_flag_spec_ld \
9684 hardcode_libdir_separator \
9685 hardcode_automatic \
9686 module_cmds \
9687 module_expsym_cmds \
9688 lt_cv_prog_compiler_c_o \
9689 exclude_expsyms \
9690 include_expsyms; do
9691
9692 case $var in
9693 old_archive_cmds | \
9694 old_archive_from_new_cmds | \
9695 archive_cmds | \
9696 archive_expsym_cmds | \
9697 module_cmds | \
9698 module_expsym_cmds | \
9699 old_archive_from_expsyms_cmds | \
9700 export_symbols_cmds | \
9701 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9702 postinstall_cmds | postuninstall_cmds | \
9703 old_postinstall_cmds | old_postuninstall_cmds | \
9704 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9705 # Double-quote double-evaled strings.
9706 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9707 ;;
9708 *)
9709 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9710 ;;
9711 esac
9712 done
9713
9714 case $lt_echo in
9715 *'\$0 --fallback-echo"')
9716 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9717 ;;
9718 esac
9719
9720cfgfile="${ofile}T"
9721 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9722 $rm -f "$cfgfile"
9723 { echo "$as_me:$LINENO: creating $ofile" >&5
9724echo "$as_me: creating $ofile" >&6;}
9725
9726 cat <<__EOF__ >> "$cfgfile"
9727#! $SHELL
9728
9729# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9730# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9731# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9732#
9733# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9734# Free Software Foundation, Inc.
9735#
9736# This file is part of GNU Libtool:
9737# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9738#
9739# This program is free software; you can redistribute it and/or modify
9740# it under the terms of the GNU General Public License as published by
9741# the Free Software Foundation; either version 2 of the License, or
9742# (at your option) any later version.
9743#
9744# This program is distributed in the hope that it will be useful, but
9745# WITHOUT ANY WARRANTY; without even the implied warranty of
9746# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9747# General Public License for more details.
9748#
9749# You should have received a copy of the GNU General Public License
9750# along with this program; if not, write to the Free Software
9751# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9752#
9753# As a special exception to the GNU General Public License, if you
9754# distribute this file as part of a program that contains a
9755# configuration script generated by Autoconf, you may include it under
9756# the same distribution terms that you use for the rest of that program.
9757
9758# A sed program that does not truncate output.
9759SED=$lt_SED
9760
9761# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9762Xsed="$SED -e 1s/^X//"
9763
9764# The HP-UX ksh and POSIX shell print the target directory to stdout
9765# if CDPATH is set.
9766(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9767
9768# The names of the tagged configurations supported by this script.
9769available_tags=
9770
9771# ### BEGIN LIBTOOL CONFIG
9772
9773# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9774
9775# Shell to use when invoking shell scripts.
9776SHELL=$lt_SHELL
9777
9778# Whether or not to build shared libraries.
9779build_libtool_libs=$enable_shared
9780
9781# Whether or not to build static libraries.
9782build_old_libs=$enable_static
9783
9784# Whether or not to add -lc for building shared libraries.
9785build_libtool_need_lc=$archive_cmds_need_lc
9786
9787# Whether or not to disallow shared libs when runtime libs are static
9788allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9789
9790# Whether or not to optimize for fast installation.
9791fast_install=$enable_fast_install
9792
9793# The host system.
9794host_alias=$host_alias
9795host=$host
9796host_os=$host_os
9797
9798# The build system.
9799build_alias=$build_alias
9800build=$build
9801build_os=$build_os
9802
9803# An echo program that does not interpret backslashes.
9804echo=$lt_echo
9805
9806# The archiver.
9807AR=$lt_AR
9808AR_FLAGS=$lt_AR_FLAGS
9809
9810# A C compiler.
9811LTCC=$lt_LTCC
9812
9813# LTCC compiler flags.
9814LTCFLAGS=$lt_LTCFLAGS
9815
9816# A language-specific compiler.
9817CC=$lt_compiler
9818
9819# Is the compiler the GNU C compiler?
9820with_gcc=$GCC
9821
9822gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
9823gcc_ver=\`gcc -dumpversion\`
9824
9825# An ERE matcher.
9826EGREP=$lt_EGREP
9827
9828# The linker used to build libraries.
9829LD=$lt_LD
9830
9831# Whether we need hard or soft links.
9832LN_S=$lt_LN_S
9833
9834# A BSD-compatible nm program.
9835NM=$lt_NM
9836
9837# A symbol stripping program
9838STRIP=$lt_STRIP
9839
9840# Used to examine libraries when file_magic_cmd begins "file"
9841MAGIC_CMD=$MAGIC_CMD
9842
9843# Used on cygwin: DLL creation program.
9844DLLTOOL="$DLLTOOL"
9845
9846# Used on cygwin: object dumper.
9847OBJDUMP="$OBJDUMP"
9848
9849# Used on cygwin: assembler.
9850AS="$AS"
9851
9852# The name of the directory that contains temporary libtool files.
9853objdir=$objdir
9854
9855# How to create reloadable object files.
9856reload_flag=$lt_reload_flag
9857reload_cmds=$lt_reload_cmds
9858
9859# How to pass a linker flag through the compiler.
9860wl=$lt_lt_prog_compiler_wl
9861
9862# Object file suffix (normally "o").
9863objext="$ac_objext"
9864
9865# Old archive suffix (normally "a").
9866libext="$libext"
9867
9868# Shared library suffix (normally ".so").
9869shrext_cmds='$shrext_cmds'
9870
9871# Executable file suffix (normally "").
9872exeext="$exeext"
9873
9874# Additional compiler flags for building library objects.
9875pic_flag=$lt_lt_prog_compiler_pic
9876pic_mode=$pic_mode
9877
9878# What is the maximum length of a command?
9879max_cmd_len=$lt_cv_sys_max_cmd_len
9880
9881# Does compiler simultaneously support -c and -o options?
9882compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9883
9884# Must we lock files when doing compilation?
9885need_locks=$lt_need_locks
9886
9887# Do we need the lib prefix for modules?
9888need_lib_prefix=$need_lib_prefix
9889
9890# Do we need a version for libraries?
9891need_version=$need_version
9892
9893# Whether dlopen is supported.
9894dlopen_support=$enable_dlopen
9895
9896# Whether dlopen of programs is supported.
9897dlopen_self=$enable_dlopen_self
9898
9899# Whether dlopen of statically linked programs is supported.
9900dlopen_self_static=$enable_dlopen_self_static
9901
9902# Compiler flag to prevent dynamic linking.
9903link_static_flag=$lt_lt_prog_compiler_static
9904
9905# Compiler flag to turn off builtin functions.
9906no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9907
9908# Compiler flag to allow reflexive dlopens.
9909export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9910
9911# Compiler flag to generate shared objects directly from archives.
9912whole_archive_flag_spec=$lt_whole_archive_flag_spec
9913
9914# Compiler flag to generate thread-safe objects.
9915thread_safe_flag_spec=$lt_thread_safe_flag_spec
9916
9917# Library versioning type.
9918version_type=$version_type
9919
9920# Format of library name prefix.
9921libname_spec=$lt_libname_spec
9922
9923# List of archive names. First name is the real one, the rest are links.
9924# The last name is the one that the linker finds with -lNAME.
9925library_names_spec=$lt_library_names_spec
9926
9927# The coded name of the library, if different from the real name.
9928soname_spec=$lt_soname_spec
9929
9930# Commands used to build and install an old-style archive.
9931RANLIB=$lt_RANLIB
9932old_archive_cmds=$lt_old_archive_cmds
9933old_postinstall_cmds=$lt_old_postinstall_cmds
9934old_postuninstall_cmds=$lt_old_postuninstall_cmds
9935
9936# Create an old-style archive from a shared archive.
9937old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9938
9939# Create a temporary old-style archive to link instead of a shared archive.
9940old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9941
9942# Commands used to build and install a shared archive.
9943archive_cmds=$lt_archive_cmds
9944archive_expsym_cmds=$lt_archive_expsym_cmds
9945postinstall_cmds=$lt_postinstall_cmds
9946postuninstall_cmds=$lt_postuninstall_cmds
9947
9948# Commands used to build a loadable module (assumed same as above if empty)
9949module_cmds=$lt_module_cmds
9950module_expsym_cmds=$lt_module_expsym_cmds
9951
9952# Commands to strip libraries.
9953old_striplib=$lt_old_striplib
9954striplib=$lt_striplib
9955
9956# Dependencies to place before the objects being linked to create a
9957# shared library.
9958predep_objects=\`echo $lt_predep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9959
9960# Dependencies to place after the objects being linked to create a
9961# shared library.
9962postdep_objects=\`echo $lt_postdep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9963
9964# Dependencies to place before the objects being linked to create a
9965# shared library.
9966predeps=$lt_predeps
9967
9968# Dependencies to place after the objects being linked to create a
9969# shared library.
9970postdeps=$lt_postdeps
9971
9972# The library search path used internally by the compiler when linking
9973# a shared library.
9974compiler_lib_search_path=\`echo $lt_compiler_lib_search_path | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9975
9976# Method to check whether dependent libraries are shared objects.
9977deplibs_check_method=$lt_deplibs_check_method
9978
9979# Command to use when deplibs_check_method == file_magic.
9980file_magic_cmd=$lt_file_magic_cmd
9981
9982# Flag that allows shared libraries with undefined symbols to be built.
9983allow_undefined_flag=$lt_allow_undefined_flag
9984
9985# Flag that forces no undefined symbols.
9986no_undefined_flag=$lt_no_undefined_flag
9987
9988# Commands used to finish a libtool library installation in a directory.
9989finish_cmds=$lt_finish_cmds
9990
9991# Same as above, but a single script fragment to be evaled but not shown.
9992finish_eval=$lt_finish_eval
9993
9994# Take the output of nm and produce a listing of raw symbols and C names.
9995global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9996
9997# Transform the output of nm in a proper C declaration
9998global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9999
10000# Transform the output of nm in a C name address pair
10001global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10002
10003# This is the shared library runtime path variable.
10004runpath_var=$runpath_var
10005
10006# This is the shared library path variable.
10007shlibpath_var=$shlibpath_var
10008
10009# Is shlibpath searched before the hard-coded library search path?
10010shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10011
10012# How to hardcode a shared library path into an executable.
10013hardcode_action=$hardcode_action
10014
10015# Whether we should hardcode library paths into libraries.
10016hardcode_into_libs=$hardcode_into_libs
10017
10018# Flag to hardcode \$libdir into a binary during linking.
10019# This must work even if \$libdir does not exist.
10020hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10021
10022# If ld is used when linking, flag to hardcode \$libdir into
10023# a binary during linking. This must work even if \$libdir does
10024# not exist.
10025hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10026
10027# Whether we need a single -rpath flag with a separated argument.
10028hardcode_libdir_separator=$lt_hardcode_libdir_separator
10029
10030# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10031# resulting binary.
10032hardcode_direct=$hardcode_direct
10033
10034# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10035# resulting binary.
10036hardcode_minus_L=$hardcode_minus_L
10037
10038# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10039# the resulting binary.
10040hardcode_shlibpath_var=$hardcode_shlibpath_var
10041
10042# Set to yes if building a shared library automatically hardcodes DIR into the library
10043# and all subsequent libraries and executables linked against it.
10044hardcode_automatic=$hardcode_automatic
10045
10046# Variables whose values should be saved in libtool wrapper scripts and
10047# restored at relink time.
10048variables_saved_for_relink="$variables_saved_for_relink"
10049
10050# Whether libtool must link a program against all its dependency libraries.
10051link_all_deplibs=$link_all_deplibs
10052
10053# Compile-time system search path for libraries
10054sys_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"\`
10055
10056# Run-time system search path for libraries
10057sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10058
10059# Fix the shell variable \$srcfile for the compiler.
10060fix_srcfile_path="$fix_srcfile_path"
10061
10062# Set to yes if exported symbols are required.
10063always_export_symbols=$always_export_symbols
10064
10065# The commands to list exported symbols.
10066export_symbols_cmds=$lt_export_symbols_cmds
10067
10068# The commands to extract the exported symbol list from a shared archive.
10069extract_expsyms_cmds=$lt_extract_expsyms_cmds
10070
10071# Symbols that should not be listed in the preloaded symbols.
10072exclude_expsyms=$lt_exclude_expsyms
10073
10074# Symbols that must always be exported.
10075include_expsyms=$lt_include_expsyms
10076
10077# ### END LIBTOOL CONFIG
10078
10079__EOF__
10080
10081
10082 case $host_os in
10083 aix3*)
10084 cat <<\EOF >> "$cfgfile"
10085
10086# AIX sometimes has problems with the GCC collect2 program. For some
10087# reason, if we set the COLLECT_NAMES environment variable, the problems
10088# vanish in a puff of smoke.
10089if test "X${COLLECT_NAMES+set}" != Xset; then
10090 COLLECT_NAMES=
10091 export COLLECT_NAMES
10092fi
10093EOF
10094 ;;
10095 esac
10096
10097 # We use sed instead of cat because bash on DJGPP gets confused if
10098 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10099 # text mode, it properly converts lines to CR/LF. This bash problem
10100 # is reportedly fixed, but why not run on old versions too?
10101 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10102
10103 mv -f "$cfgfile" "$ofile" || \
10104 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10105 chmod +x "$ofile"
10106
10107else
10108 # If there is no Makefile yet, we rely on a make rule to execute
10109 # `config.status --recheck' to rerun these tests and create the
10110 # libtool script then.
10111 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10112 if test -f "$ltmain_in"; then
10113 test -f Makefile && make "$ltmain"
10114 fi
10115fi
10116
10117
10118ac_ext=c
10119ac_cpp='$CPP $CPPFLAGS'
10120ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10121ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10122ac_compiler_gnu=$ac_cv_c_compiler_gnu
10123
10124CC="$lt_save_CC"
10125
10126
10127# Check whether --with-tags or --without-tags was given.
10128if test "${with_tags+set}" = set; then
10129 withval="$with_tags"
10130 tagnames="$withval"
10131fi;
10132
10133if test -f "$ltmain" && test -n "$tagnames"; then
10134 if test ! -f "${ofile}"; then
10135 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10136echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10137 fi
10138
10139 if test -z "$LTCC"; then
10140 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10141 if test -z "$LTCC"; then
10142 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10143echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10144 else
10145 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10146echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10147 fi
10148 fi
10149 if test -z "$LTCFLAGS"; then
10150 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10151 fi
10152
10153 # Extract list of available tagged configurations in $ofile.
10154 # Note that this assumes the entire list is on one line.
10155 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10156
10157 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10158 for tagname in $tagnames; do
10159 IFS="$lt_save_ifs"
10160 # Check whether tagname contains only valid characters
10161 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10162 "") ;;
10163 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10164echo "$as_me: error: invalid tag name: $tagname" >&2;}
10165 { (exit 1); exit 1; }; }
10166 ;;
10167 esac
10168
10169 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10170 then
10171 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10172echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10173 { (exit 1); exit 1; }; }
10174 fi
10175
10176 # Update the list of available tags.
10177 if test -n "$tagname"; then
10178 echo appending configuration tag \"$tagname\" to $ofile
10179
10180 case $tagname in
10181 CXX)
10182 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10183 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10184 (test "X$CXX" != "Xg++"))) ; then
10185 ac_ext=cc
10186ac_cpp='$CXXCPP $CPPFLAGS'
10187ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10188ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10189ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10190
10191
10192
10193
10194archive_cmds_need_lc_CXX=no
10195allow_undefined_flag_CXX=
10196always_export_symbols_CXX=no
10197archive_expsym_cmds_CXX=
10198export_dynamic_flag_spec_CXX=
10199hardcode_direct_CXX=no
10200hardcode_libdir_flag_spec_CXX=
10201hardcode_libdir_flag_spec_ld_CXX=
10202hardcode_libdir_separator_CXX=
10203hardcode_minus_L_CXX=no
10204hardcode_shlibpath_var_CXX=unsupported
10205hardcode_automatic_CXX=no
10206module_cmds_CXX=
10207module_expsym_cmds_CXX=
10208link_all_deplibs_CXX=unknown
10209old_archive_cmds_CXX=$old_archive_cmds
10210no_undefined_flag_CXX=
10211whole_archive_flag_spec_CXX=
10212enable_shared_with_static_runtimes_CXX=no
10213
10214# Dependencies to place before and after the object being linked:
10215predep_objects_CXX=
10216postdep_objects_CXX=
10217predeps_CXX=
10218postdeps_CXX=
10219compiler_lib_search_path_CXX=
10220
10221# Source file extension for C++ test sources.
10222ac_ext=cpp
10223
10224# Object file extension for compiled C++ test sources.
10225objext=o
10226objext_CXX=$objext
10227
10228# Code to be used in simple compile tests
10229lt_simple_compile_test_code="int some_variable = 0;\n"
10230
10231# Code to be used in simple link tests
10232lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10233
10234# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10235
10236# If no C compiler was specified, use CC.
10237LTCC=${LTCC-"$CC"}
10238
10239# If no C compiler flags were specified, use CFLAGS.
10240LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10241
10242# Allow CC to be a program name with arguments.
10243compiler=$CC
10244
10245
10246# save warnings/boilerplate of simple test code
10247ac_outfile=conftest.$ac_objext
10248printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10249eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10250_lt_compiler_boilerplate=`cat conftest.err`
10251$rm conftest*
10252
10253ac_outfile=conftest.$ac_objext
10254printf "$lt_simple_link_test_code" >conftest.$ac_ext
10255eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10256_lt_linker_boilerplate=`cat conftest.err`
10257$rm conftest*
10258
10259
10260# Allow CC to be a program name with arguments.
10261lt_save_CC=$CC
10262lt_save_LD=$LD
10263lt_save_GCC=$GCC
10264GCC=$GXX
10265lt_save_with_gnu_ld=$with_gnu_ld
10266lt_save_path_LD=$lt_cv_path_LD
10267if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10268 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10269else
10270 $as_unset lt_cv_prog_gnu_ld
10271fi
10272if test -n "${lt_cv_path_LDCXX+set}"; then
10273 lt_cv_path_LD=$lt_cv_path_LDCXX
10274else
10275 $as_unset lt_cv_path_LD
10276fi
10277test -z "${LDCXX+set}" || LD=$LDCXX
10278CC=${CXX-"c++"}
10279compiler=$CC
10280compiler_CXX=$CC
10281for cc_temp in $compiler""; do
10282 case $cc_temp in
10283 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10284 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10285 \-*) ;;
10286 *) break;;
10287 esac
10288done
10289cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10290
10291
10292# We don't want -fno-exception wen compiling C++ code, so set the
10293# no_builtin_flag separately
10294if test "$GXX" = yes; then
10295 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10296else
10297 lt_prog_compiler_no_builtin_flag_CXX=
10298fi
10299
10300if test "$GXX" = yes; then
10301 # Set up default GNU C++ configuration
10302
10303
10304# Check whether --with-gnu-ld or --without-gnu-ld was given.
10305if test "${with_gnu_ld+set}" = set; then
10306 withval="$with_gnu_ld"
10307 test "$withval" = no || with_gnu_ld=yes
10308else
10309 with_gnu_ld=no
10310fi;
10311ac_prog=ld
10312if test "$GCC" = yes; then
10313 # Check if gcc -print-prog-name=ld gives a path.
10314 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10315echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10316 case $host in
10317 *-*-mingw*)
10318 # gcc leaves a trailing carriage return which upsets mingw
10319 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10320 *)
10321 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10322 esac
10323 case $ac_prog in
10324 # Accept absolute paths.
10325 [\\/]* | ?:[\\/]*)
10326 re_direlt='/[^/][^/]*/\.\./'
10327 # Canonicalize the pathname of ld
10328 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10329 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10330 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10331 done
10332 test -z "$LD" && LD="$ac_prog"
10333 ;;
10334 "")
10335 # If it fails, then pretend we aren't using GCC.
10336 ac_prog=ld
10337 ;;
10338 *)
10339 # If it is relative, then search for the first ld in PATH.
10340 with_gnu_ld=unknown
10341 ;;
10342 esac
10343elif test "$with_gnu_ld" = yes; then
10344 echo "$as_me:$LINENO: checking for GNU ld" >&5
10345echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10346else
10347 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10348echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10349fi
10350if test "${lt_cv_path_LD+set}" = set; then
10351 echo $ECHO_N "(cached) $ECHO_C" >&6
10352else
10353 if test -z "$LD"; then
10354 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10355 for ac_dir in $PATH; do
10356 IFS="$lt_save_ifs"
10357 test -z "$ac_dir" && ac_dir=.
10358 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10359 lt_cv_path_LD="$ac_dir/$ac_prog"
10360 # Check to see if the program is GNU ld. I'd rather use --version,
10361 # but apparently some variants of GNU ld only accept -v.
10362 # Break only if it was the GNU/non-GNU ld that we prefer.
10363 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10364 *GNU* | *'with BFD'*)
10365 test "$with_gnu_ld" != no && break
10366 ;;
10367 *)
10368 test "$with_gnu_ld" != yes && break
10369 ;;
10370 esac
10371 fi
10372 done
10373 IFS="$lt_save_ifs"
10374else
10375 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10376fi
10377fi
10378
10379LD="$lt_cv_path_LD"
10380if test -n "$LD"; then
10381 echo "$as_me:$LINENO: result: $LD" >&5
10382echo "${ECHO_T}$LD" >&6
10383else
10384 echo "$as_me:$LINENO: result: no" >&5
10385echo "${ECHO_T}no" >&6
10386fi
10387test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10388echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10389 { (exit 1); exit 1; }; }
10390echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10391echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10392if test "${lt_cv_prog_gnu_ld+set}" = set; then
10393 echo $ECHO_N "(cached) $ECHO_C" >&6
10394else
10395 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10396case `$LD -v 2>&1 </dev/null` in
10397*GNU* | *'with BFD'*)
10398 lt_cv_prog_gnu_ld=yes
10399 ;;
10400*)
10401 lt_cv_prog_gnu_ld=no
10402 ;;
10403esac
10404fi
10405echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10406echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10407with_gnu_ld=$lt_cv_prog_gnu_ld
10408
10409
10410
10411 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10412 # archiving commands below assume that GNU ld is being used.
10413 if test "$with_gnu_ld" = yes; then
10414 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10415 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'
10416
10417 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10418 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10419
10420 # If archive_cmds runs LD, not CC, wlarc should be empty
10421 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10422 # investigate it a little bit more. (MM)
10423 wlarc='${wl}'
10424
10425 # ancient GNU ld didn't support --whole-archive et. al.
10426 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10427 grep 'no-whole-archive' > /dev/null; then
10428 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10429 else
10430 whole_archive_flag_spec_CXX=
10431 fi
10432 else
10433 with_gnu_ld=no
10434 wlarc=
10435
10436 # A generic and very simple default shared library creation
10437 # command for GNU C++ for the case where it uses the native
10438 # linker, instead of GNU ld. If possible, this setting should
10439 # overridden to take advantage of the native linker features on
10440 # the platform it is being used on.
10441 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10442 fi
10443
10444 # Commands to make compiler produce verbose output that lists
10445 # what "hidden" libraries, object files and flags are used when
10446 # linking a shared library.
10447 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10448
10449else
10450 GXX=no
10451 with_gnu_ld=no
10452 wlarc=
10453fi
10454
10455# PORTME: fill in a description of your system's C++ link characteristics
10456echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10457echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10458ld_shlibs_CXX=yes
10459case $host_os in
10460 aix3*)
10461 # FIXME: insert proper C++ library support
10462 ld_shlibs_CXX=no
10463 ;;
10464 aix4* | aix5*)
10465 if test "$host_cpu" = ia64; then
10466 # On IA64, the linker does run time linking by default, so we don't
10467 # have to do anything special.
10468 aix_use_runtimelinking=no
10469 exp_sym_flag='-Bexport'
10470 no_entry_flag=""
10471 else
10472 aix_use_runtimelinking=no
10473
10474 # Test if we are trying to use run time linking or normal
10475 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10476 # need to do runtime linking.
10477 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10478 for ld_flag in $LDFLAGS; do
10479 case $ld_flag in
10480 *-brtl*)
10481 aix_use_runtimelinking=yes
10482 break
10483 ;;
10484 esac
10485 done
10486 ;;
10487 esac
10488
10489 exp_sym_flag='-bexport'
10490 no_entry_flag='-bnoentry'
10491 fi
10492
10493 # When large executables or shared objects are built, AIX ld can
10494 # have problems creating the table of contents. If linking a library
10495 # or program results in "error TOC overflow" add -mminimal-toc to
10496 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10497 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10498
10499 archive_cmds_CXX=''
10500 hardcode_direct_CXX=yes
10501 hardcode_libdir_separator_CXX=':'
10502 link_all_deplibs_CXX=yes
10503
10504 if test "$GXX" = yes; then
10505 case $host_os in aix4.[012]|aix4.[012].*)
10506 # We only want to do this on AIX 4.2 and lower, the check
10507 # below for broken collect2 doesn't work under 4.3+
10508 collect2name=`${CC} -print-prog-name=collect2`
10509 if test -f "$collect2name" && \
10510 strings "$collect2name" | grep resolve_lib_name >/dev/null
10511 then
10512 # We have reworked collect2
10513 hardcode_direct_CXX=yes
10514 else
10515 # We have old collect2
10516 hardcode_direct_CXX=unsupported
10517 # It fails to find uninstalled libraries when the uninstalled
10518 # path is not listed in the libpath. Setting hardcode_minus_L
10519 # to unsupported forces relinking
10520 hardcode_minus_L_CXX=yes
10521 hardcode_libdir_flag_spec_CXX='-L$libdir'
10522 hardcode_libdir_separator_CXX=
10523 fi
10524 ;;
10525 esac
10526 shared_flag='-shared'
10527 if test "$aix_use_runtimelinking" = yes; then
10528 shared_flag="$shared_flag "'${wl}-G'
10529 fi
10530 else
10531 # not using gcc
10532 if test "$host_cpu" = ia64; then
10533 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10534 # chokes on -Wl,-G. The following line is correct:
10535 shared_flag='-G'
10536 else
10537 if test "$aix_use_runtimelinking" = yes; then
10538 shared_flag='${wl}-G'
10539 else
10540 shared_flag='${wl}-bM:SRE'
10541 fi
10542 fi
10543 fi
10544
10545 # It seems that -bexpall does not export symbols beginning with
10546 # underscore (_), so it is better to generate a list of symbols to export.
10547 always_export_symbols_CXX=yes
10548 if test "$aix_use_runtimelinking" = yes; then
10549 # Warning - without using the other runtime loading flags (-brtl),
10550 # -berok will link without error, but may produce a broken library.
10551 allow_undefined_flag_CXX='-berok'
10552 # Determine the default libpath from the value encoded in an empty executable.
10553 cat >conftest.$ac_ext <<_ACEOF
10554/* confdefs.h. */
10555_ACEOF
10556cat confdefs.h >>conftest.$ac_ext
10557cat >>conftest.$ac_ext <<_ACEOF
10558/* end confdefs.h. */
10559
10560int
10561main ()
10562{
10563
10564 ;
10565 return 0;
10566}
10567_ACEOF
10568rm -f conftest.$ac_objext conftest$ac_exeext
10569if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10570 (eval $ac_link) 2>conftest.er1
10571 ac_status=$?
10572 grep -v '^ *+' conftest.er1 >conftest.err
10573 rm -f conftest.er1
10574 cat conftest.err >&5
10575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10576 (exit $ac_status); } &&
10577 { ac_try='test -z "$ac_cxx_werror_flag"
10578 || test ! -s conftest.err'
10579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10580 (eval $ac_try) 2>&5
10581 ac_status=$?
10582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10583 (exit $ac_status); }; } &&
10584 { ac_try='test -s conftest$ac_exeext'
10585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10586 (eval $ac_try) 2>&5
10587 ac_status=$?
10588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10589 (exit $ac_status); }; }; then
10590
10591aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10592}'`
10593# Check for a 64-bit object if we didn't find anything.
10594if 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; }
10595}'`; fi
10596else
10597 echo "$as_me: failed program was:" >&5
10598sed 's/^/| /' conftest.$ac_ext >&5
10599
10600fi
10601rm -f conftest.err conftest.$ac_objext \
10602 conftest$ac_exeext conftest.$ac_ext
10603if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10604
10605 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10606
10607 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"
10608 else
10609 if test "$host_cpu" = ia64; then
10610 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10611 allow_undefined_flag_CXX="-z nodefs"
10612 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"
10613 else
10614 # Determine the default libpath from the value encoded in an empty executable.
10615 cat >conftest.$ac_ext <<_ACEOF
10616/* confdefs.h. */
10617_ACEOF
10618cat confdefs.h >>conftest.$ac_ext
10619cat >>conftest.$ac_ext <<_ACEOF
10620/* end confdefs.h. */
10621
10622int
10623main ()
10624{
10625
10626 ;
10627 return 0;
10628}
10629_ACEOF
10630rm -f conftest.$ac_objext conftest$ac_exeext
10631if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10632 (eval $ac_link) 2>conftest.er1
10633 ac_status=$?
10634 grep -v '^ *+' conftest.er1 >conftest.err
10635 rm -f conftest.er1
10636 cat conftest.err >&5
10637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10638 (exit $ac_status); } &&
10639 { ac_try='test -z "$ac_cxx_werror_flag"
10640 || test ! -s conftest.err'
10641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10642 (eval $ac_try) 2>&5
10643 ac_status=$?
10644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10645 (exit $ac_status); }; } &&
10646 { ac_try='test -s conftest$ac_exeext'
10647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10648 (eval $ac_try) 2>&5
10649 ac_status=$?
10650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651 (exit $ac_status); }; }; then
10652
10653aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10654}'`
10655# Check for a 64-bit object if we didn't find anything.
10656if 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; }
10657}'`; fi
10658else
10659 echo "$as_me: failed program was:" >&5
10660sed 's/^/| /' conftest.$ac_ext >&5
10661
10662fi
10663rm -f conftest.err conftest.$ac_objext \
10664 conftest$ac_exeext conftest.$ac_ext
10665if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10666
10667 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10668 # Warning - without using the other run time loading flags,
10669 # -berok will link without error, but may produce a broken library.
10670 no_undefined_flag_CXX=' ${wl}-bernotok'
10671 allow_undefined_flag_CXX=' ${wl}-berok'
10672 # Exported symbols can be pulled into shared objects from archives
10673 whole_archive_flag_spec_CXX='$convenience'
10674 archive_cmds_need_lc_CXX=yes
10675 # This is similar to how AIX traditionally builds its shared libraries.
10676 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'
10677 fi
10678 fi
10679 ;;
10680
10681 beos*)
10682 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10683 allow_undefined_flag_CXX=unsupported
10684 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10685 # support --undefined. This deserves some investigation. FIXME
10686 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10687 else
10688 ld_shlibs_CXX=no
10689 fi
10690 ;;
10691
10692 chorus*)
10693 case $cc_basename in
10694 *)
10695 # FIXME: insert proper C++ library support
10696 ld_shlibs_CXX=no
10697 ;;
10698 esac
10699 ;;
10700
10701 cygwin* | mingw* | pw32*)
10702 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10703 # as there is no search path for DLLs.
10704 hardcode_libdir_flag_spec_CXX='-L$libdir'
10705 allow_undefined_flag_CXX=unsupported
10706 always_export_symbols_CXX=no
10707 enable_shared_with_static_runtimes_CXX=yes
10708
10709 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10710 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'
10711 # If the export-symbols file already is a .def file (1st line
10712 # is EXPORTS), use it as is; otherwise, prepend...
10713 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10714 cp $export_symbols $output_objdir/$soname.def;
10715 else
10716 echo EXPORTS > $output_objdir/$soname.def;
10717 cat $export_symbols >> $output_objdir/$soname.def;
10718 fi~
10719 $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'
10720 else
10721 ld_shlibs_CXX=no
10722 fi
10723 ;;
10724 darwin* | rhapsody*)
10725 case $host_os in
10726 rhapsody* | darwin1.[012])
10727 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10728 ;;
10729 *) # Darwin 1.3 on
10730 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10731 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10732 else
10733 case ${MACOSX_DEPLOYMENT_TARGET} in
10734 10.[012])
10735 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10736 ;;
10737 10.*)
10738 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10739 ;;
10740 esac
10741 fi
10742 ;;
10743 esac
10744 archive_cmds_need_lc_CXX=no
10745 hardcode_direct_CXX=no
10746 hardcode_automatic_CXX=yes
10747 hardcode_shlibpath_var_CXX=unsupported
10748 whole_archive_flag_spec_CXX=''
10749 link_all_deplibs_CXX=yes
10750
10751 if test "$GXX" = yes ; then
10752 lt_int_apple_cc_single_mod=no
10753 output_verbose_link_cmd='echo'
10754 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10755 lt_int_apple_cc_single_mod=yes
10756 fi
10757 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10758 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10759 else
10760 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'
10761 fi
10762 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10763 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10764 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10765 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}'
10766 else
10767 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}'
10768 fi
10769 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}'
10770 else
10771 case $cc_basename in
10772 xlc*)
10773 output_verbose_link_cmd='echo'
10774 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'
10775 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10776 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10777 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}'
10778 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}'
10779 ;;
10780 *)
10781 ld_shlibs_CXX=no
10782 ;;
10783 esac
10784 fi
10785 ;;
10786
10787 dgux*)
10788 case $cc_basename in
10789 ec++*)
10790 # FIXME: insert proper C++ library support
10791 ld_shlibs_CXX=no
10792 ;;
10793 ghcx*)
10794 # Green Hills C++ Compiler
10795 # FIXME: insert proper C++ library support
10796 ld_shlibs_CXX=no
10797 ;;
10798 *)
10799 # FIXME: insert proper C++ library support
10800 ld_shlibs_CXX=no
10801 ;;
10802 esac
10803 ;;
10804 freebsd[12]*)
10805 # C++ shared libraries reported to be fairly broken before switch to ELF
10806 ld_shlibs_CXX=no
10807 ;;
10808 freebsd-elf*)
10809 archive_cmds_need_lc_CXX=no
10810 ;;
10811 freebsd* | kfreebsd*-gnu | dragonfly*)
10812 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10813 # conventions
10814 ld_shlibs_CXX=yes
10815 ;;
10816 gnu*)
10817 ;;
10818 hpux9*)
10819 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10820 hardcode_libdir_separator_CXX=:
10821 export_dynamic_flag_spec_CXX='${wl}-E'
10822 hardcode_direct_CXX=yes
10823 hardcode_minus_L_CXX=yes # Not in the search PATH,
10824 # but as the default
10825 # location of the library.
10826
10827 case $cc_basename in
10828 CC*)
10829 # FIXME: insert proper C++ library support
10830 ld_shlibs_CXX=no
10831 ;;
10832 aCC*)
10833 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'
10834 # Commands to make compiler produce verbose output that lists
10835 # what "hidden" libraries, object files and flags are used when
10836 # linking a shared library.
10837 #
10838 # There doesn't appear to be a way to prevent this compiler from
10839 # explicitly linking system object files so we need to strip them
10840 # from the output so that they don't get included in the library
10841 # dependencies.
10842 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'
10843 ;;
10844 *)
10845 if test "$GXX" = yes; then
10846 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'
10847 else
10848 # FIXME: insert proper C++ library support
10849 ld_shlibs_CXX=no
10850 fi
10851 ;;
10852 esac
10853 ;;
10854 hpux10*|hpux11*)
10855 if test $with_gnu_ld = no; then
10856 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10857 hardcode_libdir_separator_CXX=:
10858
10859 case $host_cpu in
10860 hppa*64*|ia64*)
10861 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10862 ;;
10863 *)
10864 export_dynamic_flag_spec_CXX='${wl}-E'
10865 ;;
10866 esac
10867 fi
10868 case $host_cpu in
10869 hppa*64*|ia64*)
10870 hardcode_direct_CXX=no
10871 hardcode_shlibpath_var_CXX=no
10872 ;;
10873 *)
10874 hardcode_direct_CXX=yes
10875 hardcode_minus_L_CXX=yes # Not in the search PATH,
10876 # but as the default
10877 # location of the library.
10878 ;;
10879 esac
10880
10881 case $cc_basename in
10882 CC*)
10883 # FIXME: insert proper C++ library support
10884 ld_shlibs_CXX=no
10885 ;;
10886 aCC*)
10887 case $host_cpu in
10888 hppa*64*)
10889 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10890 ;;
10891 ia64*)
10892 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10893 ;;
10894 *)
10895 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10896 ;;
10897 esac
10898 # Commands to make compiler produce verbose output that lists
10899 # what "hidden" libraries, object files and flags are used when
10900 # linking a shared library.
10901 #
10902 # There doesn't appear to be a way to prevent this compiler from
10903 # explicitly linking system object files so we need to strip them
10904 # from the output so that they don't get included in the library
10905 # dependencies.
10906 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'
10907 ;;
10908 *)
10909 if test "$GXX" = yes; then
10910 if test $with_gnu_ld = no; then
10911 case $host_cpu in
10912 hppa*64*)
10913 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10914 ;;
10915 ia64*)
10916 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10917 ;;
10918 *)
10919 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'
10920 ;;
10921 esac
10922 fi
10923 else
10924 # FIXME: insert proper C++ library support
10925 ld_shlibs_CXX=no
10926 fi
10927 ;;
10928 esac
10929 ;;
10930 interix3*)
10931 hardcode_direct_CXX=no
10932 hardcode_shlibpath_var_CXX=no
10933 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10934 export_dynamic_flag_spec_CXX='${wl}-E'
10935 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10936 # Instead, shared libraries are loaded at an image base (0x10000000 by
10937 # default) and relocated if they conflict, which is a slow very memory
10938 # consuming and fragmenting process. To avoid this, we pick a random,
10939 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10940 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10941 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'
10942 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'
10943 ;;
10944 irix5* | irix6*)
10945 case $cc_basename in
10946 CC*)
10947 # SGI C++
10948 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'
10949
10950 # Archives containing C++ object files must be created using
10951 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10952 # necessary to make sure instantiated templates are included
10953 # in the archive.
10954 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10955 ;;
10956 *)
10957 if test "$GXX" = yes; then
10958 if test "$with_gnu_ld" = no; then
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` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10960 else
10961 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'
10962 fi
10963 fi
10964 link_all_deplibs_CXX=yes
10965 ;;
10966 esac
10967 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10968 hardcode_libdir_separator_CXX=:
10969 ;;
10970 linux*)
10971 case $cc_basename in
10972 KCC*)
10973 # Kuck and Associates, Inc. (KAI) C++ Compiler
10974
10975 # KCC will only create a shared library if the output file
10976 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10977 # to its proper name (with version) after linking.
10978 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'
10979 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'
10980 # Commands to make compiler produce verbose output that lists
10981 # what "hidden" libraries, object files and flags are used when
10982 # linking a shared library.
10983 #
10984 # There doesn't appear to be a way to prevent this compiler from
10985 # explicitly linking system object files so we need to strip them
10986 # from the output so that they don't get included in the library
10987 # dependencies.
10988 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'
10989
10990 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10991 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10992
10993 # Archives containing C++ object files must be created using
10994 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10995 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10996 ;;
10997 icpc*)
10998 # Intel C++
10999 with_gnu_ld=yes
11000 # version 8.0 and above of icpc choke on multiply defined symbols
11001 # if we add $predep_objects and $postdep_objects, however 7.1 and
11002 # earlier do not add the objects themselves.
11003 case `$CC -V 2>&1` in
11004 *"Version 7."*)
11005 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11006 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'
11007 ;;
11008 *) # Version 8.0 or newer
11009 tmp_idyn=
11010 case $host_cpu in
11011 ia64*) tmp_idyn=' -i_dynamic';;
11012 esac
11013 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11014 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'
11015 ;;
11016 esac
11017 archive_cmds_need_lc_CXX=no
11018 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11019 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11020 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11021 ;;
11022 pgCC*)
11023 # Portland Group C++ compiler
11024 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11025 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'
11026
11027 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11028 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11029 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'
11030 ;;
11031 cxx*)
11032 # Compaq C++
11033 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11034 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'
11035
11036 runpath_var=LD_RUN_PATH
11037 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11038 hardcode_libdir_separator_CXX=:
11039
11040 # Commands to make compiler produce verbose output that lists
11041 # what "hidden" libraries, object files and flags are used when
11042 # linking a shared library.
11043 #
11044 # There doesn't appear to be a way to prevent this compiler from
11045 # explicitly linking system object files so we need to strip them
11046 # from the output so that they don't get included in the library
11047 # dependencies.
11048 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'
11049 ;;
11050 esac
11051 ;;
11052 lynxos*)
11053 # FIXME: insert proper C++ library support
11054 ld_shlibs_CXX=no
11055 ;;
11056 m88k*)
11057 # FIXME: insert proper C++ library support
11058 ld_shlibs_CXX=no
11059 ;;
11060 mvs*)
11061 case $cc_basename in
11062 cxx*)
11063 # FIXME: insert proper C++ library support
11064 ld_shlibs_CXX=no
11065 ;;
11066 *)
11067 # FIXME: insert proper C++ library support
11068 ld_shlibs_CXX=no
11069 ;;
11070 esac
11071 ;;
11072 netbsd*)
11073 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11074 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11075 wlarc=
11076 hardcode_libdir_flag_spec_CXX='-R$libdir'
11077 hardcode_direct_CXX=yes
11078 hardcode_shlibpath_var_CXX=no
11079 fi
11080 # Workaround some broken pre-1.5 toolchains
11081 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11082 ;;
11083 openbsd2*)
11084 # C++ shared libraries are fairly broken
11085 ld_shlibs_CXX=no
11086 ;;
11087 openbsd*)
11088 hardcode_direct_CXX=yes
11089 hardcode_shlibpath_var_CXX=no
11090 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11091 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11092 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11093 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11094 export_dynamic_flag_spec_CXX='${wl}-E'
11095 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11096 fi
11097 output_verbose_link_cmd='echo'
11098 ;;
11099 osf3*)
11100 case $cc_basename in
11101 KCC*)
11102 # Kuck and Associates, Inc. (KAI) C++ Compiler
11103
11104 # KCC will only create a shared library if the output file
11105 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11106 # to its proper name (with version) after linking.
11107 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'
11108
11109 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11110 hardcode_libdir_separator_CXX=:
11111
11112 # Archives containing C++ object files must be created using
11113 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11114 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11115
11116 ;;
11117 RCC*)
11118 # Rational C++ 2.4.1
11119 # FIXME: insert proper C++ library support
11120 ld_shlibs_CXX=no
11121 ;;
11122 cxx*)
11123 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11124 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'
11125
11126 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11127 hardcode_libdir_separator_CXX=:
11128
11129 # Commands to make compiler produce verbose output that lists
11130 # what "hidden" libraries, object files and flags are used when
11131 # linking a shared library.
11132 #
11133 # There doesn't appear to be a way to prevent this compiler from
11134 # explicitly linking system object files so we need to strip them
11135 # from the output so that they don't get included in the library
11136 # dependencies.
11137 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'
11138 ;;
11139 *)
11140 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11141 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11142 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'
11143
11144 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11145 hardcode_libdir_separator_CXX=:
11146
11147 # Commands to make compiler produce verbose output that lists
11148 # what "hidden" libraries, object files and flags are used when
11149 # linking a shared library.
11150 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11151
11152 else
11153 # FIXME: insert proper C++ library support
11154 ld_shlibs_CXX=no
11155 fi
11156 ;;
11157 esac
11158 ;;
11159 osf4* | osf5*)
11160 case $cc_basename in
11161 KCC*)
11162 # Kuck and Associates, Inc. (KAI) C++ Compiler
11163
11164 # KCC will only create a shared library if the output file
11165 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11166 # to its proper name (with version) after linking.
11167 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'
11168
11169 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11170 hardcode_libdir_separator_CXX=:
11171
11172 # Archives containing C++ object files must be created using
11173 # the KAI C++ compiler.
11174 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11175 ;;
11176 RCC*)
11177 # Rational C++ 2.4.1
11178 # FIXME: insert proper C++ library support
11179 ld_shlibs_CXX=no
11180 ;;
11181 cxx*)
11182 allow_undefined_flag_CXX=' -expect_unresolved \*'
11183 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'
11184 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11185 echo "-hidden">> $lib.exp~
11186 $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~
11187 $rm $lib.exp'
11188
11189 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11190 hardcode_libdir_separator_CXX=:
11191
11192 # Commands to make compiler produce verbose output that lists
11193 # what "hidden" libraries, object files and flags are used when
11194 # linking a shared library.
11195 #
11196 # There doesn't appear to be a way to prevent this compiler from
11197 # explicitly linking system object files so we need to strip them
11198 # from the output so that they don't get included in the library
11199 # dependencies.
11200 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'
11201 ;;
11202 *)
11203 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11204 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11205 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'
11206
11207 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11208 hardcode_libdir_separator_CXX=:
11209
11210 # Commands to make compiler produce verbose output that lists
11211 # what "hidden" libraries, object files and flags are used when
11212 # linking a shared library.
11213 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11214
11215 else
11216 # FIXME: insert proper C++ library support
11217 ld_shlibs_CXX=no
11218 fi
11219 ;;
11220 esac
11221 ;;
11222 psos*)
11223 # FIXME: insert proper C++ library support
11224 ld_shlibs_CXX=no
11225 ;;
11226 sunos4*)
11227 case $cc_basename in
11228 CC*)
11229 # Sun C++ 4.x
11230 # FIXME: insert proper C++ library support
11231 ld_shlibs_CXX=no
11232 ;;
11233 lcc*)
11234 # Lucid
11235 # FIXME: insert proper C++ library support
11236 ld_shlibs_CXX=no
11237 ;;
11238 *)
11239 # FIXME: insert proper C++ library support
11240 ld_shlibs_CXX=no
11241 ;;
11242 esac
11243 ;;
11244 solaris*)
11245 case $cc_basename in
11246 CC*)
11247 # Sun C++ 4.2, 5.x and Centerline C++
11248 archive_cmds_need_lc_CXX=yes
11249 no_undefined_flag_CXX=' -zdefs'
11250 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11251 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11252 $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'
11253
11254 hardcode_libdir_flag_spec_CXX='-R$libdir'
11255 hardcode_shlibpath_var_CXX=no
11256 case $host_os in
11257 solaris2.[0-5] | solaris2.[0-5].*) ;;
11258 *)
11259 # The C++ compiler is used as linker so we must use $wl
11260 # flag to pass the commands to the underlying system
11261 # linker. We must also pass each convience library through
11262 # to the system linker between allextract/defaultextract.
11263 # The C++ compiler will combine linker options so we
11264 # cannot just pass the convience library names through
11265 # without $wl.
11266 # Supported since Solaris 2.6 (maybe 2.5.1?)
11267 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'
11268 ;;
11269 esac
11270 link_all_deplibs_CXX=yes
11271
11272 output_verbose_link_cmd='echo'
11273
11274 # Archives containing C++ object files must be created using
11275 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11276 # necessary to make sure instantiated templates are included
11277 # in the archive.
11278 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11279 ;;
11280 gcx*)
11281 # Green Hills C++ Compiler
11282 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11283
11284 # The C++ compiler must be used to create the archive.
11285 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11286 ;;
11287 *)
11288 # GNU C++ compiler with Solaris linker
11289 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11290 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11291 if $CC --version | grep -v '^2\.7' > /dev/null; then
11292 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11293 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11294 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11295
11296 # Commands to make compiler produce verbose output that lists
11297 # what "hidden" libraries, object files and flags are used when
11298 # linking a shared library.
11299 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11300 else
11301 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11302 # platform.
11303 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11304 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11305 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11306
11307 # Commands to make compiler produce verbose output that lists
11308 # what "hidden" libraries, object files and flags are used when
11309 # linking a shared library.
11310 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11311 fi
11312
11313 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11314 fi
11315 ;;
11316 esac
11317 ;;
11318 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11319 no_undefined_flag_CXX='${wl}-z,text'
11320 archive_cmds_need_lc_CXX=no
11321 hardcode_shlibpath_var_CXX=no
11322 runpath_var='LD_RUN_PATH'
11323
11324 case $cc_basename in
11325 CC*)
11326 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11327 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11328 ;;
11329 *)
11330 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11331 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11332 ;;
11333 esac
11334 ;;
11335 sysv5* | sco3.2v5* | sco5v6*)
11336 # Note: We can NOT use -z defs as we might desire, because we do not
11337 # link with -lc, and that would cause any symbols used from libc to
11338 # always be unresolved, which means just about no library would
11339 # ever link correctly. If we're not using GNU ld we use -z text
11340 # though, which does catch some bad symbols but isn't as heavy-handed
11341 # as -z defs.
11342 # For security reasons, it is highly recommended that you always
11343 # use absolute paths for naming shared libraries, and exclude the
11344 # DT_RUNPATH tag from executables and libraries. But doing so
11345 # requires that you compile everything twice, which is a pain.
11346 # So that behaviour is only enabled if SCOABSPATH is set to a
11347 # non-empty value in the environment. Most likely only useful for
11348 # creating official distributions of packages.
11349 # This is a hack until libtool officially supports absolute path
11350 # names for shared libraries.
11351 no_undefined_flag_CXX='${wl}-z,text'
11352 allow_undefined_flag_CXX='${wl}-z,nodefs'
11353 archive_cmds_need_lc_CXX=no
11354 hardcode_shlibpath_var_CXX=no
11355 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11356 hardcode_libdir_separator_CXX=':'
11357 link_all_deplibs_CXX=yes
11358 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11359 runpath_var='LD_RUN_PATH'
11360
11361 case $cc_basename in
11362 CC*)
11363 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11364 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11365 ;;
11366 *)
11367 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11368 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11369 ;;
11370 esac
11371 ;;
11372 tandem*)
11373 case $cc_basename in
11374 NCC*)
11375 # NonStop-UX NCC 3.20
11376 # FIXME: insert proper C++ library support
11377 ld_shlibs_CXX=no
11378 ;;
11379 *)
11380 # FIXME: insert proper C++ library support
11381 ld_shlibs_CXX=no
11382 ;;
11383 esac
11384 ;;
11385 vxworks*)
11386 # FIXME: insert proper C++ library support
11387 ld_shlibs_CXX=no
11388 ;;
11389 *)
11390 # FIXME: insert proper C++ library support
11391 ld_shlibs_CXX=no
11392 ;;
11393esac
11394echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11395echo "${ECHO_T}$ld_shlibs_CXX" >&6
11396test "$ld_shlibs_CXX" = no && can_build_shared=no
11397
11398GCC_CXX="$GXX"
11399LD_CXX="$LD"
11400
11401
11402cat > conftest.$ac_ext <<EOF
11403class Foo
11404{
11405public:
11406 Foo (void) { a = 0; }
11407private:
11408 int a;
11409};
11410EOF
11411
11412if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11413 (eval $ac_compile) 2>&5
11414 ac_status=$?
11415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11416 (exit $ac_status); }; then
11417 # Parse the compiler output and extract the necessary
11418 # objects, libraries and library flags.
11419
11420 # Sentinel used to keep track of whether or not we are before
11421 # the conftest object file.
11422 pre_test_object_deps_done=no
11423
11424 # The `*' in the case matches for architectures that use `case' in
11425 # $output_verbose_cmd can trigger glob expansion during the loop
11426 # eval without this substitution.
11427 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11428
11429 for p in `eval $output_verbose_link_cmd`; do
11430 case $p in
11431
11432 -L* | -R* | -l*)
11433 # Some compilers place space between "-{L,R}" and the path.
11434 # Remove the space.
11435 if test $p = "-L" \
11436 || test $p = "-R"; then
11437 prev=$p
11438 continue
11439 else
11440 prev=
11441 fi
11442
11443 if test "$pre_test_object_deps_done" = no; then
11444 case $p in
11445 -L* | -R*)
11446 # Internal compiler library paths should come after those
11447 # provided the user. The postdeps already come after the
11448 # user supplied libs so there is no need to process them.
11449 if test -z "$compiler_lib_search_path_CXX"; then
11450 compiler_lib_search_path_CXX="${prev}${p}"
11451 else
11452 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11453 fi
11454 ;;
11455 # The "-l" case would never come before the object being
11456 # linked, so don't bother handling this case.
11457 esac
11458 else
11459 if test -z "$postdeps_CXX"; then
11460 postdeps_CXX="${prev}${p}"
11461 else
11462 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11463 fi
11464 fi
11465 ;;
11466
11467 *.$objext)
11468 # This assumes that the test object file only shows up
11469 # once in the compiler output.
11470 if test "$p" = "conftest.$objext"; then
11471 pre_test_object_deps_done=yes
11472 continue
11473 fi
11474
11475 if test "$pre_test_object_deps_done" = no; then
11476 if test -z "$predep_objects_CXX"; then
11477 predep_objects_CXX="$p"
11478 else
11479 predep_objects_CXX="$predep_objects_CXX $p"
11480 fi
11481 else
11482 if test -z "$postdep_objects_CXX"; then
11483 postdep_objects_CXX="$p"
11484 else
11485 postdep_objects_CXX="$postdep_objects_CXX $p"
11486 fi
11487 fi
11488 ;;
11489
11490 *) ;; # Ignore the rest.
11491
11492 esac
11493 done
11494
11495 # Clean up.
11496 rm -f a.out a.exe
11497else
11498 echo "libtool.m4: error: problem compiling CXX test program"
11499fi
11500
11501$rm -f confest.$objext
11502
11503# PORTME: override above test on systems where it is broken
11504case $host_os in
11505interix3*)
11506 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11507 # hack all around it, let's just trust "g++" to DTRT.
11508 predep_objects_CXX=
11509 postdep_objects_CXX=
11510 postdeps_CXX=
11511 ;;
11512
11513solaris*)
11514 case $cc_basename in
11515 CC*)
11516 # Adding this requires a known-good setup of shared libraries for
11517 # Sun compiler versions before 5.6, else PIC objects from an old
11518 # archive will be linked into the output, leading to subtle bugs.
11519 postdeps_CXX='-lCstd -lCrun'
11520 ;;
11521 esac
11522 ;;
11523esac
11524
11525
11526case " $postdeps_CXX " in
11527*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11528esac
11529
11530lt_prog_compiler_wl_CXX=
11531lt_prog_compiler_pic_CXX=
11532lt_prog_compiler_static_CXX=
11533
11534echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11535echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11536
11537 # C++ specific cases for pic, static, wl, etc.
11538 if test "$GXX" = yes; then
11539 lt_prog_compiler_wl_CXX='-Wl,'
11540 lt_prog_compiler_static_CXX='-static'
11541
11542 case $host_os in
11543 aix*)
11544 # All AIX code is PIC.
11545 if test "$host_cpu" = ia64; then
11546 # AIX 5 now supports IA64 processor
11547 lt_prog_compiler_static_CXX='-Bstatic'
11548 fi
11549 ;;
11550 amigaos*)
11551 # FIXME: we need at least 68020 code to build shared libraries, but
11552 # adding the `-m68020' flag to GCC prevents building anything better,
11553 # like `-m68040'.
11554 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11555 ;;
11556 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11557 # PIC is the default for these OSes.
11558 ;;
11559 mingw* | os2* | pw32*)
11560 # This hack is so that the source file can tell whether it is being
11561 # built for inclusion in a dll (and should export symbols for example).
11562 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11563 ;;
11564 darwin* | rhapsody*)
11565 # PIC is the default on this platform
11566 # Common symbols not allowed in MH_DYLIB files
11567 lt_prog_compiler_pic_CXX='-fno-common'
11568 ;;
11569 *djgpp*)
11570 # DJGPP does not support shared libraries at all
11571 lt_prog_compiler_pic_CXX=
11572 ;;
11573 interix3*)
11574 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11575 # Instead, we relocate shared libraries at runtime.
11576 ;;
11577 sysv4*MP*)
11578 if test -d /usr/nec; then
11579 lt_prog_compiler_pic_CXX=-Kconform_pic
11580 fi
11581 ;;
11582 hpux*)
11583 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11584 # not for PA HP-UX.
11585 case $host_cpu in
11586 hppa*64*|ia64*)
11587 ;;
11588 *)
11589 lt_prog_compiler_pic_CXX='-fPIC'
11590 ;;
11591 esac
11592 ;;
11593 *)
11594 lt_prog_compiler_pic_CXX='-fPIC'
11595 ;;
11596 esac
11597 else
11598 case $host_os in
11599 aix4* | aix5*)
11600 # All AIX code is PIC.
11601 if test "$host_cpu" = ia64; then
11602 # AIX 5 now supports IA64 processor
11603 lt_prog_compiler_static_CXX='-Bstatic'
11604 else
11605 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11606 fi
11607 ;;
11608 chorus*)
11609 case $cc_basename in
11610 cxch68*)
11611 # Green Hills C++ Compiler
11612 # _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"
11613 ;;
11614 esac
11615 ;;
11616 darwin*)
11617 # PIC is the default on this platform
11618 # Common symbols not allowed in MH_DYLIB files
11619 case $cc_basename in
11620 xlc*)
11621 lt_prog_compiler_pic_CXX='-qnocommon'
11622 lt_prog_compiler_wl_CXX='-Wl,'
11623 ;;
11624 esac
11625 ;;
11626 dgux*)
11627 case $cc_basename in
11628 ec++*)
11629 lt_prog_compiler_pic_CXX='-KPIC'
11630 ;;
11631 ghcx*)
11632 # Green Hills C++ Compiler
11633 lt_prog_compiler_pic_CXX='-pic'
11634 ;;
11635 *)
11636 ;;
11637 esac
11638 ;;
11639 freebsd* | kfreebsd*-gnu | dragonfly*)
11640 # FreeBSD uses GNU C++
11641 ;;
11642 hpux9* | hpux10* | hpux11*)
11643 case $cc_basename in
11644 CC*)
11645 lt_prog_compiler_wl_CXX='-Wl,'
11646 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11647 if test "$host_cpu" != ia64; then
11648 lt_prog_compiler_pic_CXX='+Z'
11649 fi
11650 ;;
11651 aCC*)
11652 lt_prog_compiler_wl_CXX='-Wl,'
11653 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11654 case $host_cpu in
11655 hppa*64*|ia64*)
11656 # +Z the default
11657 ;;
11658 *)
11659 lt_prog_compiler_pic_CXX='+Z'
11660 ;;
11661 esac
11662 ;;
11663 *)
11664 ;;
11665 esac
11666 ;;
11667 interix*)
11668 # This is c89, which is MS Visual C++ (no shared libs)
11669 # Anyone wants to do a port?
11670 ;;
11671 irix5* | irix6* | nonstopux*)
11672 case $cc_basename in
11673 CC*)
11674 lt_prog_compiler_wl_CXX='-Wl,'
11675 lt_prog_compiler_static_CXX='-non_shared'
11676 # CC pic flag -KPIC is the default.
11677 ;;
11678 *)
11679 ;;
11680 esac
11681 ;;
11682 linux*)
11683 case $cc_basename in
11684 KCC*)
11685 # KAI C++ Compiler
11686 lt_prog_compiler_wl_CXX='--backend -Wl,'
11687 lt_prog_compiler_pic_CXX='-fPIC'
11688 ;;
11689 icpc* | ecpc*)
11690 # Intel C++
11691 lt_prog_compiler_wl_CXX='-Wl,'
11692 lt_prog_compiler_pic_CXX='-KPIC'
11693 lt_prog_compiler_static_CXX='-static'
11694 ;;
11695 pgCC*)
11696 # Portland Group C++ compiler.
11697 lt_prog_compiler_wl_CXX='-Wl,'
11698 lt_prog_compiler_pic_CXX='-fpic'
11699 lt_prog_compiler_static_CXX='-Bstatic'
11700 ;;
11701 cxx*)
11702 # Compaq C++
11703 # Make sure the PIC flag is empty. It appears that all Alpha
11704 # Linux and Compaq Tru64 Unix objects are PIC.
11705 lt_prog_compiler_pic_CXX=
11706 lt_prog_compiler_static_CXX='-non_shared'
11707 ;;
11708 *)
11709 ;;
11710 esac
11711 ;;
11712 lynxos*)
11713 ;;
11714 m88k*)
11715 ;;
11716 mvs*)
11717 case $cc_basename in
11718 cxx*)
11719 lt_prog_compiler_pic_CXX='-W c,exportall'
11720 ;;
11721 *)
11722 ;;
11723 esac
11724 ;;
11725 netbsd*)
11726 ;;
11727 osf3* | osf4* | osf5*)
11728 case $cc_basename in
11729 KCC*)
11730 lt_prog_compiler_wl_CXX='--backend -Wl,'
11731 ;;
11732 RCC*)
11733 # Rational C++ 2.4.1
11734 lt_prog_compiler_pic_CXX='-pic'
11735 ;;
11736 cxx*)
11737 # Digital/Compaq C++
11738 lt_prog_compiler_wl_CXX='-Wl,'
11739 # Make sure the PIC flag is empty. It appears that all Alpha
11740 # Linux and Compaq Tru64 Unix objects are PIC.
11741 lt_prog_compiler_pic_CXX=
11742 lt_prog_compiler_static_CXX='-non_shared'
11743 ;;
11744 *)
11745 ;;
11746 esac
11747 ;;
11748 psos*)
11749 ;;
11750 solaris*)
11751 case $cc_basename in
11752 CC*)
11753 # Sun C++ 4.2, 5.x and Centerline C++
11754 lt_prog_compiler_pic_CXX='-KPIC'
11755 lt_prog_compiler_static_CXX='-Bstatic'
11756 lt_prog_compiler_wl_CXX='-Qoption ld '
11757 ;;
11758 gcx*)
11759 # Green Hills C++ Compiler
11760 lt_prog_compiler_pic_CXX='-PIC'
11761 ;;
11762 *)
11763 ;;
11764 esac
11765 ;;
11766 sunos4*)
11767 case $cc_basename in
11768 CC*)
11769 # Sun C++ 4.x
11770 lt_prog_compiler_pic_CXX='-pic'
11771 lt_prog_compiler_static_CXX='-Bstatic'
11772 ;;
11773 lcc*)
11774 # Lucid
11775 lt_prog_compiler_pic_CXX='-pic'
11776 ;;
11777 *)
11778 ;;
11779 esac
11780 ;;
11781 tandem*)
11782 case $cc_basename in
11783 NCC*)
11784 # NonStop-UX NCC 3.20
11785 lt_prog_compiler_pic_CXX='-KPIC'
11786 ;;
11787 *)
11788 ;;
11789 esac
11790 ;;
11791 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11792 case $cc_basename in
11793 CC*)
11794 lt_prog_compiler_wl_CXX='-Wl,'
11795 lt_prog_compiler_pic_CXX='-KPIC'
11796 lt_prog_compiler_static_CXX='-Bstatic'
11797 ;;
11798 esac
11799 ;;
11800 vxworks*)
11801 ;;
11802 *)
11803 lt_prog_compiler_can_build_shared_CXX=no
11804 ;;
11805 esac
11806 fi
11807
11808echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11809echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11810
11811#
11812# Check to make sure the PIC flag actually works.
11813#
11814if test -n "$lt_prog_compiler_pic_CXX"; then
11815
11816echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11817echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11818if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11819 echo $ECHO_N "(cached) $ECHO_C" >&6
11820else
11821 lt_prog_compiler_pic_works_CXX=no
11822 ac_outfile=conftest.$ac_objext
11823 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11824 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11825 # Insert the option either (1) after the last *FLAGS variable, or
11826 # (2) before a word containing "conftest.", or (3) at the end.
11827 # Note that $ac_compile itself does not contain backslashes and begins
11828 # with a dollar sign (not a hyphen), so the echo should work correctly.
11829 # The option is referenced via a variable to avoid confusing sed.
11830 lt_compile=`echo "$ac_compile" | $SED \
11831 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11832 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11833 -e 's:$: $lt_compiler_flag:'`
5e9b5d83 11834 (eval echo "\"\$as_me:11834: $lt_compile\"" >&5)
bf9f3bac 11835 (eval "$lt_compile" 2>conftest.err)
11836 ac_status=$?
11837 cat conftest.err >&5
5e9b5d83 11838 echo "$as_me:11838: \$? = $ac_status" >&5
bf9f3bac 11839 if (exit $ac_status) && test -s "$ac_outfile"; then
11840 # The compiler can only warn and ignore the option if not recognized
11841 # So say no if there are warnings other than the usual output.
11842 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11843 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11844 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11845 lt_prog_compiler_pic_works_CXX=yes
11846 fi
11847 fi
11848 $rm conftest*
11849
11850fi
11851echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11852echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11853
11854if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11855 case $lt_prog_compiler_pic_CXX in
11856 "" | " "*) ;;
11857 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11858 esac
11859else
11860 lt_prog_compiler_pic_CXX=
11861 lt_prog_compiler_can_build_shared_CXX=no
11862fi
11863
11864fi
11865case $host_os in
11866 # For platforms which do not support PIC, -DPIC is meaningless:
11867 *djgpp*)
11868 lt_prog_compiler_pic_CXX=
11869 ;;
11870 *)
11871 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11872 ;;
11873esac
11874
11875#
11876# Check to make sure the static flag actually works.
11877#
11878wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11879echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11880echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11881if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11882 echo $ECHO_N "(cached) $ECHO_C" >&6
11883else
11884 lt_prog_compiler_static_works_CXX=no
11885 save_LDFLAGS="$LDFLAGS"
11886 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11887 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11888 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11889 # The linker can only warn and ignore the option if not recognized
11890 # So say no if there are warnings
11891 if test -s conftest.err; then
11892 # Append any errors to the config.log.
11893 cat conftest.err 1>&5
11894 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11895 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11896 if diff conftest.exp conftest.er2 >/dev/null; then
11897 lt_prog_compiler_static_works_CXX=yes
11898 fi
11899 else
11900 lt_prog_compiler_static_works_CXX=yes
11901 fi
11902 fi
11903 $rm conftest*
11904 LDFLAGS="$save_LDFLAGS"
11905
11906fi
11907echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11908echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11909
11910if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11911 :
11912else
11913 lt_prog_compiler_static_CXX=
11914fi
11915
11916
11917echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11918echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11919if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11920 echo $ECHO_N "(cached) $ECHO_C" >&6
11921else
11922 lt_cv_prog_compiler_c_o_CXX=no
11923 $rm -r conftest 2>/dev/null
11924 mkdir conftest
11925 cd conftest
11926 mkdir out
11927 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11928
11929 lt_compiler_flag="-o out/conftest2.$ac_objext"
11930 # Insert the option either (1) after the last *FLAGS variable, or
11931 # (2) before a word containing "conftest.", or (3) at the end.
11932 # Note that $ac_compile itself does not contain backslashes and begins
11933 # with a dollar sign (not a hyphen), so the echo should work correctly.
11934 lt_compile=`echo "$ac_compile" | $SED \
11935 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11936 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11937 -e 's:$: $lt_compiler_flag:'`
5e9b5d83 11938 (eval echo "\"\$as_me:11938: $lt_compile\"" >&5)
bf9f3bac 11939 (eval "$lt_compile" 2>out/conftest.err)
11940 ac_status=$?
11941 cat out/conftest.err >&5
5e9b5d83 11942 echo "$as_me:11942: \$? = $ac_status" >&5
bf9f3bac 11943 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11944 then
11945 # The compiler can only warn and ignore the option if not recognized
11946 # So say no if there are warnings
11947 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11948 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11949 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11950 lt_cv_prog_compiler_c_o_CXX=yes
11951 fi
11952 fi
11953 chmod u+w . 2>&5
11954 $rm conftest*
11955 # SGI C++ compiler will create directory out/ii_files/ for
11956 # template instantiation
11957 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11958 $rm out/* && rmdir out
11959 cd ..
11960 rmdir conftest
11961 $rm conftest*
11962
11963fi
11964echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11965echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11966
11967
11968hard_links="nottested"
11969if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11970 # do not overwrite the value of need_locks provided by the user
11971 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11972echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11973 hard_links=yes
11974 $rm conftest*
11975 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11976 touch conftest.a
11977 ln conftest.a conftest.b 2>&5 || hard_links=no
11978 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11979 echo "$as_me:$LINENO: result: $hard_links" >&5
11980echo "${ECHO_T}$hard_links" >&6
11981 if test "$hard_links" = no; then
11982 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11983echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11984 need_locks=warn
11985 fi
11986else
11987 need_locks=no
11988fi
11989
11990echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11991echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11992
11993 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11994 case $host_os in
11995 aix4* | aix5*)
11996 # If we're using GNU nm, then we don't want the "-C" option.
11997 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11998 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11999 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'
12000 else
12001 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'
12002 fi
12003 ;;
12004 pw32*)
12005 export_symbols_cmds_CXX="$ltdll_cmds"
12006 ;;
12007 cygwin* | mingw*)
12008 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'
12009 ;;
12010 *)
12011 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12012 ;;
12013 esac
12014
12015echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12016echo "${ECHO_T}$ld_shlibs_CXX" >&6
12017test "$ld_shlibs_CXX" = no && can_build_shared=no
12018
12019#
12020# Do we need to explicitly link libc?
12021#
12022case "x$archive_cmds_need_lc_CXX" in
12023x|xyes)
12024 # Assume -lc should be added
12025 archive_cmds_need_lc_CXX=yes
12026
12027 if test "$enable_shared" = yes && test "$GCC" = yes; then
12028 case $archive_cmds_CXX in
12029 *'~'*)
12030 # FIXME: we may have to deal with multi-command sequences.
12031 ;;
12032 '$CC '*)
12033 # Test whether the compiler implicitly links with -lc since on some
12034 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12035 # to ld, don't add -lc before -lgcc.
12036 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12037echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12038 $rm conftest*
12039 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12040
12041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12042 (eval $ac_compile) 2>&5
12043 ac_status=$?
12044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045 (exit $ac_status); } 2>conftest.err; then
12046 soname=conftest
12047 lib=conftest
12048 libobjs=conftest.$ac_objext
12049 deplibs=
12050 wl=$lt_prog_compiler_wl_CXX
12051 pic_flag=$lt_prog_compiler_pic_CXX
12052 compiler_flags=-v
12053 linker_flags=-v
12054 verstring=
12055 output_objdir=.
12056 libname=conftest
12057 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12058 allow_undefined_flag_CXX=
12059 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12060 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12061 ac_status=$?
12062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12063 (exit $ac_status); }
12064 then
12065 archive_cmds_need_lc_CXX=no
12066 else
12067 archive_cmds_need_lc_CXX=yes
12068 fi
12069 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12070 else
12071 cat conftest.err 1>&5
12072 fi
12073 $rm conftest*
12074 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12075echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12076 ;;
12077 esac
12078 fi
12079 ;;
12080esac
12081
12082echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12083echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12084library_names_spec=
12085libname_spec='lib$name'
12086soname_spec=
12087shrext_cmds=".so"
12088postinstall_cmds=
12089postuninstall_cmds=
12090finish_cmds=
12091finish_eval=
12092shlibpath_var=
12093shlibpath_overrides_runpath=unknown
12094version_type=none
12095dynamic_linker="$host_os ld.so"
12096sys_lib_dlsearch_path_spec="/lib /usr/lib"
12097if test "$GCC" = yes; then
12098 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12099 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12100 # if the path contains ";" then we assume it to be the separator
12101 # otherwise default to the standard path separator (i.e. ":") - it is
12102 # assumed that no part of a normal pathname contains ";" but that should
12103 # okay in the real world where ";" in dirpaths is itself problematic.
12104 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12105 else
12106 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12107 fi
12108else
12109 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12110fi
12111need_lib_prefix=unknown
12112hardcode_into_libs=no
12113
12114# when you set need_version to no, make sure it does not cause -set_version
12115# flags to be left without arguments
12116need_version=unknown
12117
12118case $host_os in
12119aix3*)
12120 version_type=linux
12121 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12122 shlibpath_var=LIBPATH
12123
12124 # AIX 3 has no versioning support, so we append a major version to the name.
12125 soname_spec='${libname}${release}${shared_ext}$major'
12126 ;;
12127
12128aix4* | aix5*)
12129 version_type=linux
12130 need_lib_prefix=no
12131 need_version=no
12132 hardcode_into_libs=yes
12133 if test "$host_cpu" = ia64; then
12134 # AIX 5 supports IA64
12135 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12136 shlibpath_var=LD_LIBRARY_PATH
12137 else
12138 # With GCC up to 2.95.x, collect2 would create an import file
12139 # for dependence libraries. The import file would start with
12140 # the line `#! .'. This would cause the generated library to
12141 # depend on `.', always an invalid library. This was fixed in
12142 # development snapshots of GCC prior to 3.0.
12143 case $host_os in
12144 aix4 | aix4.[01] | aix4.[01].*)
12145 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12146 echo ' yes '
12147 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12148 :
12149 else
12150 can_build_shared=no
12151 fi
12152 ;;
12153 esac
12154 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12155 # soname into executable. Probably we can add versioning support to
12156 # collect2, so additional links can be useful in future.
12157 if test "$aix_use_runtimelinking" = yes; then
12158 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12159 # instead of lib<name>.a to let people know that these are not
12160 # typical AIX shared libraries.
12161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12162 else
12163 # We preserve .a as extension for shared libraries through AIX4.2
12164 # and later when we are not doing run time linking.
12165 library_names_spec='${libname}${release}.a $libname.a'
12166 soname_spec='${libname}${release}${shared_ext}$major'
12167 fi
12168 shlibpath_var=LIBPATH
12169 fi
12170 ;;
12171
12172amigaos*)
12173 library_names_spec='$libname.ixlibrary $libname.a'
12174 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12175 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'
12176 ;;
12177
12178beos*)
12179 library_names_spec='${libname}${shared_ext}'
12180 dynamic_linker="$host_os ld.so"
12181 shlibpath_var=LIBRARY_PATH
12182 ;;
12183
12184bsdi[45]*)
12185 version_type=linux
12186 need_version=no
12187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12188 soname_spec='${libname}${release}${shared_ext}$major'
12189 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12190 shlibpath_var=LD_LIBRARY_PATH
12191 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12192 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12193 # the default ld.so.conf also contains /usr/contrib/lib and
12194 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12195 # libtool to hard-code these into programs
12196 ;;
12197
12198cygwin* | mingw* | pw32*)
12199 version_type=windows
12200 shrext_cmds=".dll"
12201 need_version=no
12202 need_lib_prefix=no
12203
12204 case $GCC,$host_os in
12205 yes,cygwin* | yes,mingw* | yes,pw32*)
12206 library_names_spec='$libname.dll.a'
12207 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12208 postinstall_cmds='base_file=`basename \${file}`~
12209 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12210 dldir=$destdir/`dirname \$dlpath`~
12211 test -d \$dldir || mkdir -p \$dldir~
12212 $install_prog $dir/$dlname \$dldir/$dlname~
12213 chmod a+x \$dldir/$dlname'
12214 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12215 dlpath=$dir/\$dldll~
12216 $rm \$dlpath'
12217 shlibpath_overrides_runpath=yes
12218
12219 case $host_os in
12220 cygwin*)
12221 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12222 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12223 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12224 ;;
12225 mingw*)
12226 # MinGW DLLs use traditional 'lib' prefix
12227 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12228 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12229 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12230 # It is most probably a Windows format PATH printed by
12231 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12232 # path with ; separators, and with drive letters. We can handle the
12233 # drive letters (cygwin fileutils understands them), so leave them,
12234 # especially as we might pass files found there to a mingw objdump,
12235 # which wouldn't understand a cygwinified path. Ahh.
12236 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12237 else
12238 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12239 fi
12240 ;;
12241 pw32*)
12242 # pw32 DLLs use 'pw' prefix rather than 'lib'
12243 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12244 ;;
12245 esac
12246 ;;
12247
12248 *)
12249 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12250 ;;
12251 esac
12252 dynamic_linker='Win32 ld.exe'
12253 # FIXME: first we should search . and the directory the executable is in
12254 shlibpath_var=PATH
12255 ;;
12256
12257darwin* | rhapsody*)
12258 dynamic_linker="$host_os dyld"
12259 version_type=darwin
12260 need_lib_prefix=no
12261 need_version=no
12262 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12263 soname_spec='${libname}${release}${major}$shared_ext'
12264 shlibpath_overrides_runpath=yes
12265 shlibpath_var=DYLD_LIBRARY_PATH
12266 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12267 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12268 if test "$GCC" = yes; then
12269 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"`
12270 else
12271 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12272 fi
12273 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12274 ;;
12275
12276dgux*)
12277 version_type=linux
12278 need_lib_prefix=no
12279 need_version=no
12280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12281 soname_spec='${libname}${release}${shared_ext}$major'
12282 shlibpath_var=LD_LIBRARY_PATH
12283 ;;
12284
12285freebsd1*)
12286 dynamic_linker=no
12287 ;;
12288
12289kfreebsd*-gnu)
12290 version_type=linux
12291 need_lib_prefix=no
12292 need_version=no
12293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12294 soname_spec='${libname}${release}${shared_ext}$major'
12295 shlibpath_var=LD_LIBRARY_PATH
12296 shlibpath_overrides_runpath=no
12297 hardcode_into_libs=yes
12298 dynamic_linker='GNU ld.so'
12299 ;;
12300
12301freebsd* | dragonfly*)
12302 # DragonFly does not have aout. When/if they implement a new
12303 # versioning mechanism, adjust this.
12304 if test -x /usr/bin/objformat; then
12305 objformat=`/usr/bin/objformat`
12306 else
12307 case $host_os in
12308 freebsd[123]*) objformat=aout ;;
12309 *) objformat=elf ;;
12310 esac
12311 fi
12312 version_type=freebsd-$objformat
12313 case $version_type in
12314 freebsd-elf*)
12315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12316 need_version=no
12317 need_lib_prefix=no
12318 ;;
12319 freebsd-*)
12320 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12321 need_version=yes
12322 ;;
12323 esac
12324 shlibpath_var=LD_LIBRARY_PATH
12325 case $host_os in
12326 freebsd2*)
12327 shlibpath_overrides_runpath=yes
12328 ;;
12329 freebsd3.[01]* | freebsdelf3.[01]*)
12330 shlibpath_overrides_runpath=yes
12331 hardcode_into_libs=yes
12332 ;;
12333 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12334 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12335 shlibpath_overrides_runpath=no
12336 hardcode_into_libs=yes
12337 ;;
12338 freebsd*) # from 4.6 on
12339 shlibpath_overrides_runpath=yes
12340 hardcode_into_libs=yes
12341 ;;
12342 esac
12343 ;;
12344
12345gnu*)
12346 version_type=linux
12347 need_lib_prefix=no
12348 need_version=no
12349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12350 soname_spec='${libname}${release}${shared_ext}$major'
12351 shlibpath_var=LD_LIBRARY_PATH
12352 hardcode_into_libs=yes
12353 ;;
12354
12355hpux9* | hpux10* | hpux11*)
12356 # Give a soname corresponding to the major version so that dld.sl refuses to
12357 # link against other versions.
12358 version_type=sunos
12359 need_lib_prefix=no
12360 need_version=no
12361 case $host_cpu in
12362 ia64*)
12363 shrext_cmds='.so'
12364 hardcode_into_libs=yes
12365 dynamic_linker="$host_os dld.so"
12366 shlibpath_var=LD_LIBRARY_PATH
12367 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12369 soname_spec='${libname}${release}${shared_ext}$major'
12370 if test "X$HPUX_IA64_MODE" = X32; then
12371 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12372 else
12373 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12374 fi
12375 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12376 ;;
12377 hppa*64*)
12378 shrext_cmds='.sl'
12379 hardcode_into_libs=yes
12380 dynamic_linker="$host_os dld.sl"
12381 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12382 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12384 soname_spec='${libname}${release}${shared_ext}$major'
12385 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12386 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12387 ;;
12388 *)
12389 shrext_cmds='.sl'
12390 dynamic_linker="$host_os dld.sl"
12391 shlibpath_var=SHLIB_PATH
12392 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12394 soname_spec='${libname}${release}${shared_ext}$major'
12395 ;;
12396 esac
12397 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12398 postinstall_cmds='chmod 555 $lib'
12399 ;;
12400
12401interix3*)
12402 version_type=linux
12403 need_lib_prefix=no
12404 need_version=no
12405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12406 soname_spec='${libname}${release}${shared_ext}$major'
12407 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12408 shlibpath_var=LD_LIBRARY_PATH
12409 shlibpath_overrides_runpath=no
12410 hardcode_into_libs=yes
12411 ;;
12412
12413irix5* | irix6* | nonstopux*)
12414 case $host_os in
12415 nonstopux*) version_type=nonstopux ;;
12416 *)
12417 if test "$lt_cv_prog_gnu_ld" = yes; then
12418 version_type=linux
12419 else
12420 version_type=irix
12421 fi ;;
12422 esac
12423 need_lib_prefix=no
12424 need_version=no
12425 soname_spec='${libname}${release}${shared_ext}$major'
12426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12427 case $host_os in
12428 irix5* | nonstopux*)
12429 libsuff= shlibsuff=
12430 ;;
12431 *)
12432 case $LD in # libtool.m4 will add one of these switches to LD
12433 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12434 libsuff= shlibsuff= libmagic=32-bit;;
12435 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12436 libsuff=32 shlibsuff=N32 libmagic=N32;;
12437 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12438 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12439 *) libsuff= shlibsuff= libmagic=never-match;;
12440 esac
12441 ;;
12442 esac
12443 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12444 shlibpath_overrides_runpath=no
12445 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12446 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12447 hardcode_into_libs=yes
12448 ;;
12449
12450# No shared lib support for Linux oldld, aout, or coff.
12451linux*oldld* | linux*aout* | linux*coff*)
12452 dynamic_linker=no
12453 ;;
12454
12455# This must be Linux ELF.
12456linux*)
12457 version_type=linux
12458 need_lib_prefix=no
12459 need_version=no
12460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12461 soname_spec='${libname}${release}${shared_ext}$major'
12462 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12463 shlibpath_var=LD_LIBRARY_PATH
12464 shlibpath_overrides_runpath=no
12465 # This implies no fast_install, which is unacceptable.
12466 # Some rework will be needed to allow for fast_install
12467 # before this can be enabled.
12468 hardcode_into_libs=yes
12469
12470 # find out which ABI we are using
12471 libsuff=
12472 case "$host_cpu" in
12473 x86_64*|s390x*|powerpc64*)
5e9b5d83 12474 echo '#line 12474 "configure"' > conftest.$ac_ext
bf9f3bac 12475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12476 (eval $ac_compile) 2>&5
12477 ac_status=$?
12478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12479 (exit $ac_status); }; then
12480 case `/usr/bin/file conftest.$ac_objext` in
12481 *64-bit*)
12482 libsuff=64
12483 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12484 ;;
12485 esac
12486 fi
12487 rm -rf conftest*
12488 ;;
12489 esac
12490
12491 # Append ld.so.conf contents to the search path
12492 if test -f /etc/ld.so.conf; then
12493 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' ' '`
12494 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12495 fi
12496
12497 # We used to test for /lib/ld.so.1 and disable shared libraries on
12498 # powerpc, because MkLinux only supported shared libraries with the
12499 # GNU dynamic linker. Since this was broken with cross compilers,
12500 # most powerpc-linux boxes support dynamic linking these days and
12501 # people can always --disable-shared, the test was removed, and we
12502 # assume the GNU/Linux dynamic linker is in use.
12503 dynamic_linker='GNU/Linux ld.so'
12504 ;;
12505
12506knetbsd*-gnu)
12507 version_type=linux
12508 need_lib_prefix=no
12509 need_version=no
12510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12511 soname_spec='${libname}${release}${shared_ext}$major'
12512 shlibpath_var=LD_LIBRARY_PATH
12513 shlibpath_overrides_runpath=no
12514 hardcode_into_libs=yes
12515 dynamic_linker='GNU ld.so'
12516 ;;
12517
12518netbsd*)
12519 version_type=sunos
12520 need_lib_prefix=no
12521 need_version=no
12522 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12524 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12525 dynamic_linker='NetBSD (a.out) ld.so'
12526 else
12527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12528 soname_spec='${libname}${release}${shared_ext}$major'
12529 dynamic_linker='NetBSD ld.elf_so'
12530 fi
12531 shlibpath_var=LD_LIBRARY_PATH
12532 shlibpath_overrides_runpath=yes
12533 hardcode_into_libs=yes
12534 ;;
12535
12536newsos6)
12537 version_type=linux
12538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12539 shlibpath_var=LD_LIBRARY_PATH
12540 shlibpath_overrides_runpath=yes
12541 ;;
12542
12543nto-qnx*)
12544 version_type=linux
12545 need_lib_prefix=no
12546 need_version=no
12547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12548 soname_spec='${libname}${release}${shared_ext}$major'
12549 shlibpath_var=LD_LIBRARY_PATH
12550 shlibpath_overrides_runpath=yes
12551 ;;
12552
12553openbsd*)
12554 version_type=sunos
12555 sys_lib_dlsearch_path_spec="/usr/lib"
12556 need_lib_prefix=no
12557 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12558 case $host_os in
12559 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12560 *) need_version=no ;;
12561 esac
12562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12563 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12564 shlibpath_var=LD_LIBRARY_PATH
12565 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12566 case $host_os in
12567 openbsd2.[89] | openbsd2.[89].*)
12568 shlibpath_overrides_runpath=no
12569 ;;
12570 *)
12571 shlibpath_overrides_runpath=yes
12572 ;;
12573 esac
12574 else
12575 shlibpath_overrides_runpath=yes
12576 fi
12577 ;;
12578
12579os2*)
12580 libname_spec='$name'
12581 shrext_cmds=".dll"
12582 need_lib_prefix=no
12583 library_names_spec='$libname${shared_ext} $libname.a'
12584 dynamic_linker='OS/2 ld.exe'
12585 shlibpath_var=LIBPATH
12586 ;;
12587
12588osf3* | osf4* | osf5*)
12589 version_type=osf
12590 need_lib_prefix=no
12591 need_version=no
12592 soname_spec='${libname}${release}${shared_ext}$major'
12593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12594 shlibpath_var=LD_LIBRARY_PATH
12595 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12596 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12597 ;;
12598
12599solaris*)
12600 version_type=linux
12601 need_lib_prefix=no
12602 need_version=no
12603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12604 soname_spec='${libname}${release}${shared_ext}$major'
12605 shlibpath_var=LD_LIBRARY_PATH
12606 shlibpath_overrides_runpath=yes
12607 hardcode_into_libs=yes
12608 # ldd complains unless libraries are executable
12609 postinstall_cmds='chmod +x $lib'
12610 ;;
12611
12612sunos4*)
12613 version_type=sunos
12614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12615 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12616 shlibpath_var=LD_LIBRARY_PATH
12617 shlibpath_overrides_runpath=yes
12618 if test "$with_gnu_ld" = yes; then
12619 need_lib_prefix=no
12620 fi
12621 need_version=yes
12622 ;;
12623
12624sysv4 | sysv4.3*)
12625 version_type=linux
12626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12627 soname_spec='${libname}${release}${shared_ext}$major'
12628 shlibpath_var=LD_LIBRARY_PATH
12629 case $host_vendor in
12630 sni)
12631 shlibpath_overrides_runpath=no
12632 need_lib_prefix=no
12633 export_dynamic_flag_spec='${wl}-Blargedynsym'
12634 runpath_var=LD_RUN_PATH
12635 ;;
12636 siemens)
12637 need_lib_prefix=no
12638 ;;
12639 motorola)
12640 need_lib_prefix=no
12641 need_version=no
12642 shlibpath_overrides_runpath=no
12643 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12644 ;;
12645 esac
12646 ;;
12647
12648sysv4*MP*)
12649 if test -d /usr/nec ;then
12650 version_type=linux
12651 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12652 soname_spec='$libname${shared_ext}.$major'
12653 shlibpath_var=LD_LIBRARY_PATH
12654 fi
12655 ;;
12656
12657sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12658 version_type=freebsd-elf
12659 need_lib_prefix=no
12660 need_version=no
12661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12662 soname_spec='${libname}${release}${shared_ext}$major'
12663 shlibpath_var=LD_LIBRARY_PATH
12664 hardcode_into_libs=yes
12665 if test "$with_gnu_ld" = yes; then
12666 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12667 shlibpath_overrides_runpath=no
12668 else
12669 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12670 shlibpath_overrides_runpath=yes
12671 case $host_os in
12672 sco3.2v5*)
12673 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12674 ;;
12675 esac
12676 fi
12677 sys_lib_dlsearch_path_spec='/usr/lib'
12678 ;;
12679
12680uts4*)
12681 version_type=linux
12682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12683 soname_spec='${libname}${release}${shared_ext}$major'
12684 shlibpath_var=LD_LIBRARY_PATH
12685 ;;
12686
12687*)
12688 dynamic_linker=no
12689 ;;
12690esac
12691echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12692echo "${ECHO_T}$dynamic_linker" >&6
12693test "$dynamic_linker" = no && can_build_shared=no
12694
12695variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12696if test "$GCC" = yes; then
12697 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12698fi
12699
12700echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12701echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12702hardcode_action_CXX=
12703if test -n "$hardcode_libdir_flag_spec_CXX" || \
12704 test -n "$runpath_var_CXX" || \
12705 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12706
12707 # We can hardcode non-existant directories.
12708 if test "$hardcode_direct_CXX" != no &&
12709 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12710 # have to relink, otherwise we might link with an installed library
12711 # when we should be linking with a yet-to-be-installed one
12712 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12713 test "$hardcode_minus_L_CXX" != no; then
12714 # Linking always hardcodes the temporary library directory.
12715 hardcode_action_CXX=relink
12716 else
12717 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12718 hardcode_action_CXX=immediate
12719 fi
12720else
12721 # We cannot hardcode anything, or else we can only hardcode existing
12722 # directories.
12723 hardcode_action_CXX=unsupported
12724fi
12725echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12726echo "${ECHO_T}$hardcode_action_CXX" >&6
12727
12728if test "$hardcode_action_CXX" = relink; then
12729 # Fast installation is not supported
12730 enable_fast_install=no
12731elif test "$shlibpath_overrides_runpath" = yes ||
12732 test "$enable_shared" = no; then
12733 # Fast installation is not necessary
12734 enable_fast_install=needless
12735fi
12736
12737
12738# The else clause should only fire when bootstrapping the
12739# libtool distribution, otherwise you forgot to ship ltmain.sh
12740# with your package, and you will get complaints that there are
12741# no rules to generate ltmain.sh.
12742if test -f "$ltmain"; then
12743 # See if we are running on zsh, and set the options which allow our commands through
12744 # without removal of \ escapes.
12745 if test -n "${ZSH_VERSION+set}" ; then
12746 setopt NO_GLOB_SUBST
12747 fi
12748 # Now quote all the things that may contain metacharacters while being
12749 # careful not to overquote the AC_SUBSTed values. We take copies of the
12750 # variables and quote the copies for generation of the libtool script.
12751 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12752 SED SHELL STRIP \
12753 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12754 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12755 deplibs_check_method reload_flag reload_cmds need_locks \
12756 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12757 lt_cv_sys_global_symbol_to_c_name_address \
12758 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12759 old_postinstall_cmds old_postuninstall_cmds \
12760 compiler_CXX \
12761 CC_CXX \
12762 LD_CXX \
12763 lt_prog_compiler_wl_CXX \
12764 lt_prog_compiler_pic_CXX \
12765 lt_prog_compiler_static_CXX \
12766 lt_prog_compiler_no_builtin_flag_CXX \
12767 export_dynamic_flag_spec_CXX \
12768 thread_safe_flag_spec_CXX \
12769 whole_archive_flag_spec_CXX \
12770 enable_shared_with_static_runtimes_CXX \
12771 old_archive_cmds_CXX \
12772 old_archive_from_new_cmds_CXX \
12773 predep_objects_CXX \
12774 postdep_objects_CXX \
12775 predeps_CXX \
12776 postdeps_CXX \
12777 compiler_lib_search_path_CXX \
12778 archive_cmds_CXX \
12779 archive_expsym_cmds_CXX \
12780 postinstall_cmds_CXX \
12781 postuninstall_cmds_CXX \
12782 old_archive_from_expsyms_cmds_CXX \
12783 allow_undefined_flag_CXX \
12784 no_undefined_flag_CXX \
12785 export_symbols_cmds_CXX \
12786 hardcode_libdir_flag_spec_CXX \
12787 hardcode_libdir_flag_spec_ld_CXX \
12788 hardcode_libdir_separator_CXX \
12789 hardcode_automatic_CXX \
12790 module_cmds_CXX \
12791 module_expsym_cmds_CXX \
12792 lt_cv_prog_compiler_c_o_CXX \
12793 exclude_expsyms_CXX \
12794 include_expsyms_CXX; do
12795
12796 case $var in
12797 old_archive_cmds_CXX | \
12798 old_archive_from_new_cmds_CXX | \
12799 archive_cmds_CXX | \
12800 archive_expsym_cmds_CXX | \
12801 module_cmds_CXX | \
12802 module_expsym_cmds_CXX | \
12803 old_archive_from_expsyms_cmds_CXX | \
12804 export_symbols_cmds_CXX | \
12805 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12806 postinstall_cmds | postuninstall_cmds | \
12807 old_postinstall_cmds | old_postuninstall_cmds | \
12808 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12809 # Double-quote double-evaled strings.
12810 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12811 ;;
12812 *)
12813 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12814 ;;
12815 esac
12816 done
12817
12818 case $lt_echo in
12819 *'\$0 --fallback-echo"')
12820 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12821 ;;
12822 esac
12823
12824cfgfile="$ofile"
12825
12826 cat <<__EOF__ >> "$cfgfile"
12827# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12828
12829# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12830
12831# Shell to use when invoking shell scripts.
12832SHELL=$lt_SHELL
12833
12834# Whether or not to build shared libraries.
12835build_libtool_libs=$enable_shared
12836
12837# Whether or not to build static libraries.
12838build_old_libs=$enable_static
12839
12840# Whether or not to add -lc for building shared libraries.
12841build_libtool_need_lc=$archive_cmds_need_lc_CXX
12842
12843# Whether or not to disallow shared libs when runtime libs are static
12844allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12845
12846# Whether or not to optimize for fast installation.
12847fast_install=$enable_fast_install
12848
12849# The host system.
12850host_alias=$host_alias
12851host=$host
12852host_os=$host_os
12853
12854# The build system.
12855build_alias=$build_alias
12856build=$build
12857build_os=$build_os
12858
12859# An echo program that does not interpret backslashes.
12860echo=$lt_echo
12861
12862# The archiver.
12863AR=$lt_AR
12864AR_FLAGS=$lt_AR_FLAGS
12865
12866# A C compiler.
12867LTCC=$lt_LTCC
12868
12869# LTCC compiler flags.
12870LTCFLAGS=$lt_LTCFLAGS
12871
12872# A language-specific compiler.
12873CC=$lt_compiler_CXX
12874
12875# Is the compiler the GNU C compiler?
12876with_gcc=$GCC_CXX
12877
12878gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
12879gcc_ver=\`gcc -dumpversion\`
12880
12881# An ERE matcher.
12882EGREP=$lt_EGREP
12883
12884# The linker used to build libraries.
12885LD=$lt_LD_CXX
12886
12887# Whether we need hard or soft links.
12888LN_S=$lt_LN_S
12889
12890# A BSD-compatible nm program.
12891NM=$lt_NM
12892
12893# A symbol stripping program
12894STRIP=$lt_STRIP
12895
12896# Used to examine libraries when file_magic_cmd begins "file"
12897MAGIC_CMD=$MAGIC_CMD
12898
12899# Used on cygwin: DLL creation program.
12900DLLTOOL="$DLLTOOL"
12901
12902# Used on cygwin: object dumper.
12903OBJDUMP="$OBJDUMP"
12904
12905# Used on cygwin: assembler.
12906AS="$AS"
12907
12908# The name of the directory that contains temporary libtool files.
12909objdir=$objdir
12910
12911# How to create reloadable object files.
12912reload_flag=$lt_reload_flag
12913reload_cmds=$lt_reload_cmds
12914
12915# How to pass a linker flag through the compiler.
12916wl=$lt_lt_prog_compiler_wl_CXX
12917
12918# Object file suffix (normally "o").
12919objext="$ac_objext"
12920
12921# Old archive suffix (normally "a").
12922libext="$libext"
12923
12924# Shared library suffix (normally ".so").
12925shrext_cmds='$shrext_cmds'
12926
12927# Executable file suffix (normally "").
12928exeext="$exeext"
12929
12930# Additional compiler flags for building library objects.
12931pic_flag=$lt_lt_prog_compiler_pic_CXX
12932pic_mode=$pic_mode
12933
12934# What is the maximum length of a command?
12935max_cmd_len=$lt_cv_sys_max_cmd_len
12936
12937# Does compiler simultaneously support -c and -o options?
12938compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12939
12940# Must we lock files when doing compilation?
12941need_locks=$lt_need_locks
12942
12943# Do we need the lib prefix for modules?
12944need_lib_prefix=$need_lib_prefix
12945
12946# Do we need a version for libraries?
12947need_version=$need_version
12948
12949# Whether dlopen is supported.
12950dlopen_support=$enable_dlopen
12951
12952# Whether dlopen of programs is supported.
12953dlopen_self=$enable_dlopen_self
12954
12955# Whether dlopen of statically linked programs is supported.
12956dlopen_self_static=$enable_dlopen_self_static
12957
12958# Compiler flag to prevent dynamic linking.
12959link_static_flag=$lt_lt_prog_compiler_static_CXX
12960
12961# Compiler flag to turn off builtin functions.
12962no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12963
12964# Compiler flag to allow reflexive dlopens.
12965export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12966
12967# Compiler flag to generate shared objects directly from archives.
12968whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12969
12970# Compiler flag to generate thread-safe objects.
12971thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12972
12973# Library versioning type.
12974version_type=$version_type
12975
12976# Format of library name prefix.
12977libname_spec=$lt_libname_spec
12978
12979# List of archive names. First name is the real one, the rest are links.
12980# The last name is the one that the linker finds with -lNAME.
12981library_names_spec=$lt_library_names_spec
12982
12983# The coded name of the library, if different from the real name.
12984soname_spec=$lt_soname_spec
12985
12986# Commands used to build and install an old-style archive.
12987RANLIB=$lt_RANLIB
12988old_archive_cmds=$lt_old_archive_cmds_CXX
12989old_postinstall_cmds=$lt_old_postinstall_cmds
12990old_postuninstall_cmds=$lt_old_postuninstall_cmds
12991
12992# Create an old-style archive from a shared archive.
12993old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12994
12995# Create a temporary old-style archive to link instead of a shared archive.
12996old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12997
12998# Commands used to build and install a shared archive.
12999archive_cmds=$lt_archive_cmds_CXX
13000archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13001postinstall_cmds=$lt_postinstall_cmds
13002postuninstall_cmds=$lt_postuninstall_cmds
13003
13004# Commands used to build a loadable module (assumed same as above if empty)
13005module_cmds=$lt_module_cmds_CXX
13006module_expsym_cmds=$lt_module_expsym_cmds_CXX
13007
13008# Commands to strip libraries.
13009old_striplib=$lt_old_striplib
13010striplib=$lt_striplib
13011
13012# Dependencies to place before the objects being linked to create a
13013# shared library.
13014predep_objects=\`echo $lt_predep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13015
13016# Dependencies to place after the objects being linked to create a
13017# shared library.
13018postdep_objects=\`echo $lt_postdep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13019
13020# Dependencies to place before the objects being linked to create a
13021# shared library.
13022predeps=$lt_predeps_CXX
13023
13024# Dependencies to place after the objects being linked to create a
13025# shared library.
13026postdeps=$lt_postdeps_CXX
13027
13028# The library search path used internally by the compiler when linking
13029# a shared library.
13030compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13031
13032# Method to check whether dependent libraries are shared objects.
13033deplibs_check_method=$lt_deplibs_check_method
13034
13035# Command to use when deplibs_check_method == file_magic.
13036file_magic_cmd=$lt_file_magic_cmd
13037
13038# Flag that allows shared libraries with undefined symbols to be built.
13039allow_undefined_flag=$lt_allow_undefined_flag_CXX
13040
13041# Flag that forces no undefined symbols.
13042no_undefined_flag=$lt_no_undefined_flag_CXX
13043
13044# Commands used to finish a libtool library installation in a directory.
13045finish_cmds=$lt_finish_cmds
13046
13047# Same as above, but a single script fragment to be evaled but not shown.
13048finish_eval=$lt_finish_eval
13049
13050# Take the output of nm and produce a listing of raw symbols and C names.
13051global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13052
13053# Transform the output of nm in a proper C declaration
13054global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13055
13056# Transform the output of nm in a C name address pair
13057global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13058
13059# This is the shared library runtime path variable.
13060runpath_var=$runpath_var
13061
13062# This is the shared library path variable.
13063shlibpath_var=$shlibpath_var
13064
13065# Is shlibpath searched before the hard-coded library search path?
13066shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13067
13068# How to hardcode a shared library path into an executable.
13069hardcode_action=$hardcode_action_CXX
13070
13071# Whether we should hardcode library paths into libraries.
13072hardcode_into_libs=$hardcode_into_libs
13073
13074# Flag to hardcode \$libdir into a binary during linking.
13075# This must work even if \$libdir does not exist.
13076hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13077
13078# If ld is used when linking, flag to hardcode \$libdir into
13079# a binary during linking. This must work even if \$libdir does
13080# not exist.
13081hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13082
13083# Whether we need a single -rpath flag with a separated argument.
13084hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13085
13086# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13087# resulting binary.
13088hardcode_direct=$hardcode_direct_CXX
13089
13090# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13091# resulting binary.
13092hardcode_minus_L=$hardcode_minus_L_CXX
13093
13094# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13095# the resulting binary.
13096hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13097
13098# Set to yes if building a shared library automatically hardcodes DIR into the library
13099# and all subsequent libraries and executables linked against it.
13100hardcode_automatic=$hardcode_automatic_CXX
13101
13102# Variables whose values should be saved in libtool wrapper scripts and
13103# restored at relink time.
13104variables_saved_for_relink="$variables_saved_for_relink"
13105
13106# Whether libtool must link a program against all its dependency libraries.
13107link_all_deplibs=$link_all_deplibs_CXX
13108
13109# Compile-time system search path for libraries
13110sys_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"\`
13111
13112# Run-time system search path for libraries
13113sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13114
13115# Fix the shell variable \$srcfile for the compiler.
13116fix_srcfile_path="$fix_srcfile_path_CXX"
13117
13118# Set to yes if exported symbols are required.
13119always_export_symbols=$always_export_symbols_CXX
13120
13121# The commands to list exported symbols.
13122export_symbols_cmds=$lt_export_symbols_cmds_CXX
13123
13124# The commands to extract the exported symbol list from a shared archive.
13125extract_expsyms_cmds=$lt_extract_expsyms_cmds
13126
13127# Symbols that should not be listed in the preloaded symbols.
13128exclude_expsyms=$lt_exclude_expsyms_CXX
13129
13130# Symbols that must always be exported.
13131include_expsyms=$lt_include_expsyms_CXX
13132
13133# ### END LIBTOOL TAG CONFIG: $tagname
13134
13135__EOF__
13136
13137
13138else
13139 # If there is no Makefile yet, we rely on a make rule to execute
13140 # `config.status --recheck' to rerun these tests and create the
13141 # libtool script then.
13142 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13143 if test -f "$ltmain_in"; then
13144 test -f Makefile && make "$ltmain"
13145 fi
13146fi
13147
13148
13149ac_ext=c
13150ac_cpp='$CPP $CPPFLAGS'
13151ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13152ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13153ac_compiler_gnu=$ac_cv_c_compiler_gnu
13154
13155CC=$lt_save_CC
13156LDCXX=$LD
13157LD=$lt_save_LD
13158GCC=$lt_save_GCC
13159with_gnu_ldcxx=$with_gnu_ld
13160with_gnu_ld=$lt_save_with_gnu_ld
13161lt_cv_path_LDCXX=$lt_cv_path_LD
13162lt_cv_path_LD=$lt_save_path_LD
13163lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13164lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13165
13166 else
13167 tagname=""
13168 fi
13169 ;;
13170
13171 F77)
13172 if test -n "$F77" && test "X$F77" != "Xno"; then
13173
13174ac_ext=f
13175ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13176ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13177ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13178
13179
13180archive_cmds_need_lc_F77=no
13181allow_undefined_flag_F77=
13182always_export_symbols_F77=no
13183archive_expsym_cmds_F77=
13184export_dynamic_flag_spec_F77=
13185hardcode_direct_F77=no
13186hardcode_libdir_flag_spec_F77=
13187hardcode_libdir_flag_spec_ld_F77=
13188hardcode_libdir_separator_F77=
13189hardcode_minus_L_F77=no
13190hardcode_automatic_F77=no
13191module_cmds_F77=
13192module_expsym_cmds_F77=
13193link_all_deplibs_F77=unknown
13194old_archive_cmds_F77=$old_archive_cmds
13195no_undefined_flag_F77=
13196whole_archive_flag_spec_F77=
13197enable_shared_with_static_runtimes_F77=no
13198
13199# Source file extension for f77 test sources.
13200ac_ext=f
13201
13202# Object file extension for compiled f77 test sources.
13203objext=o
13204objext_F77=$objext
13205
13206# Code to be used in simple compile tests
13207lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13208
13209# Code to be used in simple link tests
13210lt_simple_link_test_code=" program t\n end\n"
13211
13212# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13213
13214# If no C compiler was specified, use CC.
13215LTCC=${LTCC-"$CC"}
13216
13217# If no C compiler flags were specified, use CFLAGS.
13218LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13219
13220# Allow CC to be a program name with arguments.
13221compiler=$CC
13222
13223
13224# save warnings/boilerplate of simple test code
13225ac_outfile=conftest.$ac_objext
13226printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13227eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13228_lt_compiler_boilerplate=`cat conftest.err`
13229$rm conftest*
13230
13231ac_outfile=conftest.$ac_objext
13232printf "$lt_simple_link_test_code" >conftest.$ac_ext
13233eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13234_lt_linker_boilerplate=`cat conftest.err`
13235$rm conftest*
13236
13237
13238# Allow CC to be a program name with arguments.
13239lt_save_CC="$CC"
13240CC=${F77-"f77"}
13241compiler=$CC
13242compiler_F77=$CC
13243for cc_temp in $compiler""; do
13244 case $cc_temp in
13245 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13246 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13247 \-*) ;;
13248 *) break;;
13249 esac
13250done
13251cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13252
13253
13254echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13255echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13256echo "$as_me:$LINENO: result: $can_build_shared" >&5
13257echo "${ECHO_T}$can_build_shared" >&6
13258
13259echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13260echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13261test "$can_build_shared" = "no" && enable_shared=no
13262
13263# On AIX, shared libraries and static libraries use the same namespace, and
13264# are all built from PIC.
13265case $host_os in
13266aix3*)
13267 test "$enable_shared" = yes && enable_static=no
13268 if test -n "$RANLIB"; then
13269 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13270 postinstall_cmds='$RANLIB $lib'
13271 fi
13272 ;;
13273aix4* | aix5*)
13274 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13275 test "$enable_shared" = yes && enable_static=no
13276 fi
13277 ;;
13278esac
13279echo "$as_me:$LINENO: result: $enable_shared" >&5
13280echo "${ECHO_T}$enable_shared" >&6
13281
13282echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13283echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13284# Make sure either enable_shared or enable_static is yes.
13285test "$enable_shared" = yes || enable_static=yes
13286echo "$as_me:$LINENO: result: $enable_static" >&5
13287echo "${ECHO_T}$enable_static" >&6
13288
13289GCC_F77="$G77"
13290LD_F77="$LD"
13291
13292lt_prog_compiler_wl_F77=
13293lt_prog_compiler_pic_F77=
13294lt_prog_compiler_static_F77=
13295
13296echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13297echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13298
13299 if test "$GCC" = yes; then
13300 lt_prog_compiler_wl_F77='-Wl,'
13301 lt_prog_compiler_static_F77='-static'
13302
13303 case $host_os in
13304 aix*)
13305 # All AIX code is PIC.
13306 if test "$host_cpu" = ia64; then
13307 # AIX 5 now supports IA64 processor
13308 lt_prog_compiler_static_F77='-Bstatic'
13309 fi
13310 ;;
13311
13312 amigaos*)
13313 # FIXME: we need at least 68020 code to build shared libraries, but
13314 # adding the `-m68020' flag to GCC prevents building anything better,
13315 # like `-m68040'.
13316 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13317 ;;
13318
13319 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13320 # PIC is the default for these OSes.
13321 ;;
13322
13323 mingw* | pw32* | os2*)
13324 # This hack is so that the source file can tell whether it is being
13325 # built for inclusion in a dll (and should export symbols for example).
13326 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13327 ;;
13328
13329 darwin* | rhapsody*)
13330 # PIC is the default on this platform
13331 # Common symbols not allowed in MH_DYLIB files
13332 lt_prog_compiler_pic_F77='-fno-common'
13333 ;;
13334
13335 interix3*)
13336 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13337 # Instead, we relocate shared libraries at runtime.
13338 ;;
13339
13340 msdosdjgpp*)
13341 # Just because we use GCC doesn't mean we suddenly get shared libraries
13342 # on systems that don't support them.
13343 lt_prog_compiler_can_build_shared_F77=no
13344 enable_shared=no
13345 ;;
13346
13347 sysv4*MP*)
13348 if test -d /usr/nec; then
13349 lt_prog_compiler_pic_F77=-Kconform_pic
13350 fi
13351 ;;
13352
13353 hpux*)
13354 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13355 # not for PA HP-UX.
13356 case $host_cpu in
13357 hppa*64*|ia64*)
13358 # +Z the default
13359 ;;
13360 *)
13361 lt_prog_compiler_pic_F77='-fPIC'
13362 ;;
13363 esac
13364 ;;
13365
13366 *)
13367 lt_prog_compiler_pic_F77='-fPIC'
13368 ;;
13369 esac
13370 else
13371 # PORTME Check for flag to pass linker flags through the system compiler.
13372 case $host_os in
13373 aix*)
13374 lt_prog_compiler_wl_F77='-Wl,'
13375 if test "$host_cpu" = ia64; then
13376 # AIX 5 now supports IA64 processor
13377 lt_prog_compiler_static_F77='-Bstatic'
13378 else
13379 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13380 fi
13381 ;;
13382 darwin*)
13383 # PIC is the default on this platform
13384 # Common symbols not allowed in MH_DYLIB files
13385 case $cc_basename in
13386 xlc*)
13387 lt_prog_compiler_pic_F77='-qnocommon'
13388 lt_prog_compiler_wl_F77='-Wl,'
13389 ;;
13390 esac
13391 ;;
13392
13393 mingw* | pw32* | os2*)
13394 # This hack is so that the source file can tell whether it is being
13395 # built for inclusion in a dll (and should export symbols for example).
13396 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13397 ;;
13398
13399 hpux9* | hpux10* | hpux11*)
13400 lt_prog_compiler_wl_F77='-Wl,'
13401 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13402 # not for PA HP-UX.
13403 case $host_cpu in
13404 hppa*64*|ia64*)
13405 # +Z the default
13406 ;;
13407 *)
13408 lt_prog_compiler_pic_F77='+Z'
13409 ;;
13410 esac
13411 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13412 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13413 ;;
13414
13415 irix5* | irix6* | nonstopux*)
13416 lt_prog_compiler_wl_F77='-Wl,'
13417 # PIC (with -KPIC) is the default.
13418 lt_prog_compiler_static_F77='-non_shared'
13419 ;;
13420
13421 newsos6)
13422 lt_prog_compiler_pic_F77='-KPIC'
13423 lt_prog_compiler_static_F77='-Bstatic'
13424 ;;
13425
13426 linux*)
13427 case $cc_basename in
13428 icc* | ecc*)
13429 lt_prog_compiler_wl_F77='-Wl,'
13430 lt_prog_compiler_pic_F77='-KPIC'
13431 lt_prog_compiler_static_F77='-static'
13432 ;;
13433 pgcc* | pgf77* | pgf90* | pgf95*)
13434 # Portland Group compilers (*not* the Pentium gcc compiler,
13435 # which looks to be a dead project)
13436 lt_prog_compiler_wl_F77='-Wl,'
13437 lt_prog_compiler_pic_F77='-fpic'
13438 lt_prog_compiler_static_F77='-Bstatic'
13439 ;;
13440 ccc*)
13441 lt_prog_compiler_wl_F77='-Wl,'
13442 # All Alpha code is PIC.
13443 lt_prog_compiler_static_F77='-non_shared'
13444 ;;
13445 esac
13446 ;;
13447
13448 osf3* | osf4* | osf5*)
13449 lt_prog_compiler_wl_F77='-Wl,'
13450 # All OSF/1 code is PIC.
13451 lt_prog_compiler_static_F77='-non_shared'
13452 ;;
13453
13454 solaris*)
13455 lt_prog_compiler_pic_F77='-KPIC'
13456 lt_prog_compiler_static_F77='-Bstatic'
13457 case $cc_basename in
13458 f77* | f90* | f95*)
13459 lt_prog_compiler_wl_F77='-Qoption ld ';;
13460 *)
13461 lt_prog_compiler_wl_F77='-Wl,';;
13462 esac
13463 ;;
13464
13465 sunos4*)
13466 lt_prog_compiler_wl_F77='-Qoption ld '
13467 lt_prog_compiler_pic_F77='-PIC'
13468 lt_prog_compiler_static_F77='-Bstatic'
13469 ;;
13470
13471 sysv4 | sysv4.2uw2* | sysv4.3*)
13472 lt_prog_compiler_wl_F77='-Wl,'
13473 lt_prog_compiler_pic_F77='-KPIC'
13474 lt_prog_compiler_static_F77='-Bstatic'
13475 ;;
13476
13477 sysv4*MP*)
13478 if test -d /usr/nec ;then
13479 lt_prog_compiler_pic_F77='-Kconform_pic'
13480 lt_prog_compiler_static_F77='-Bstatic'
13481 fi
13482 ;;
13483
13484 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13485 lt_prog_compiler_wl_F77='-Wl,'
13486 lt_prog_compiler_pic_F77='-KPIC'
13487 lt_prog_compiler_static_F77='-Bstatic'
13488 ;;
13489
13490 unicos*)
13491 lt_prog_compiler_wl_F77='-Wl,'
13492 lt_prog_compiler_can_build_shared_F77=no
13493 ;;
13494
13495 uts4*)
13496 lt_prog_compiler_pic_F77='-pic'
13497 lt_prog_compiler_static_F77='-Bstatic'
13498 ;;
13499
13500 *)
13501 lt_prog_compiler_can_build_shared_F77=no
13502 ;;
13503 esac
13504 fi
13505
13506echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13507echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13508
13509#
13510# Check to make sure the PIC flag actually works.
13511#
13512if test -n "$lt_prog_compiler_pic_F77"; then
13513
13514echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13515echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13516if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13517 echo $ECHO_N "(cached) $ECHO_C" >&6
13518else
13519 lt_prog_compiler_pic_works_F77=no
13520 ac_outfile=conftest.$ac_objext
13521 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13522 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13523 # Insert the option either (1) after the last *FLAGS variable, or
13524 # (2) before a word containing "conftest.", or (3) at the end.
13525 # Note that $ac_compile itself does not contain backslashes and begins
13526 # with a dollar sign (not a hyphen), so the echo should work correctly.
13527 # The option is referenced via a variable to avoid confusing sed.
13528 lt_compile=`echo "$ac_compile" | $SED \
13529 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13530 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13531 -e 's:$: $lt_compiler_flag:'`
5e9b5d83 13532 (eval echo "\"\$as_me:13532: $lt_compile\"" >&5)
bf9f3bac 13533 (eval "$lt_compile" 2>conftest.err)
13534 ac_status=$?
13535 cat conftest.err >&5
5e9b5d83 13536 echo "$as_me:13536: \$? = $ac_status" >&5
bf9f3bac 13537 if (exit $ac_status) && test -s "$ac_outfile"; then
13538 # The compiler can only warn and ignore the option if not recognized
13539 # So say no if there are warnings other than the usual output.
13540 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13541 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13542 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13543 lt_prog_compiler_pic_works_F77=yes
13544 fi
13545 fi
13546 $rm conftest*
13547
13548fi
13549echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13550echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13551
13552if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13553 case $lt_prog_compiler_pic_F77 in
13554 "" | " "*) ;;
13555 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13556 esac
13557else
13558 lt_prog_compiler_pic_F77=
13559 lt_prog_compiler_can_build_shared_F77=no
13560fi
13561
13562fi
13563case $host_os in
13564 # For platforms which do not support PIC, -DPIC is meaningless:
13565 *djgpp*)
13566 lt_prog_compiler_pic_F77=
13567 ;;
13568 *)
13569 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13570 ;;
13571esac
13572
13573#
13574# Check to make sure the static flag actually works.
13575#
13576wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13577echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13578echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13579if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13580 echo $ECHO_N "(cached) $ECHO_C" >&6
13581else
13582 lt_prog_compiler_static_works_F77=no
13583 save_LDFLAGS="$LDFLAGS"
13584 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13585 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13586 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13587 # The linker can only warn and ignore the option if not recognized
13588 # So say no if there are warnings
13589 if test -s conftest.err; then
13590 # Append any errors to the config.log.
13591 cat conftest.err 1>&5
13592 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13593 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13594 if diff conftest.exp conftest.er2 >/dev/null; then
13595 lt_prog_compiler_static_works_F77=yes
13596 fi
13597 else
13598 lt_prog_compiler_static_works_F77=yes
13599 fi
13600 fi
13601 $rm conftest*
13602 LDFLAGS="$save_LDFLAGS"
13603
13604fi
13605echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13606echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13607
13608if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13609 :
13610else
13611 lt_prog_compiler_static_F77=
13612fi
13613
13614
13615echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13616echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13617if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13618 echo $ECHO_N "(cached) $ECHO_C" >&6
13619else
13620 lt_cv_prog_compiler_c_o_F77=no
13621 $rm -r conftest 2>/dev/null
13622 mkdir conftest
13623 cd conftest
13624 mkdir out
13625 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13626
13627 lt_compiler_flag="-o out/conftest2.$ac_objext"
13628 # Insert the option either (1) after the last *FLAGS variable, or
13629 # (2) before a word containing "conftest.", or (3) at the end.
13630 # Note that $ac_compile itself does not contain backslashes and begins
13631 # with a dollar sign (not a hyphen), so the echo should work correctly.
13632 lt_compile=`echo "$ac_compile" | $SED \
13633 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13634 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13635 -e 's:$: $lt_compiler_flag:'`
5e9b5d83 13636 (eval echo "\"\$as_me:13636: $lt_compile\"" >&5)
bf9f3bac 13637 (eval "$lt_compile" 2>out/conftest.err)
13638 ac_status=$?
13639 cat out/conftest.err >&5
5e9b5d83 13640 echo "$as_me:13640: \$? = $ac_status" >&5
bf9f3bac 13641 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13642 then
13643 # The compiler can only warn and ignore the option if not recognized
13644 # So say no if there are warnings
13645 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13646 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13647 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13648 lt_cv_prog_compiler_c_o_F77=yes
13649 fi
13650 fi
13651 chmod u+w . 2>&5
13652 $rm conftest*
13653 # SGI C++ compiler will create directory out/ii_files/ for
13654 # template instantiation
13655 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13656 $rm out/* && rmdir out
13657 cd ..
13658 rmdir conftest
13659 $rm conftest*
13660
13661fi
13662echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13663echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13664
13665
13666hard_links="nottested"
13667if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13668 # do not overwrite the value of need_locks provided by the user
13669 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13670echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13671 hard_links=yes
13672 $rm conftest*
13673 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13674 touch conftest.a
13675 ln conftest.a conftest.b 2>&5 || hard_links=no
13676 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13677 echo "$as_me:$LINENO: result: $hard_links" >&5
13678echo "${ECHO_T}$hard_links" >&6
13679 if test "$hard_links" = no; then
13680 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13681echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13682 need_locks=warn
13683 fi
13684else
13685 need_locks=no
13686fi
13687
13688echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13689echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13690
13691 runpath_var=
13692 allow_undefined_flag_F77=
13693 enable_shared_with_static_runtimes_F77=no
13694 archive_cmds_F77=
13695 archive_expsym_cmds_F77=
13696 old_archive_From_new_cmds_F77=
13697 old_archive_from_expsyms_cmds_F77=
13698 export_dynamic_flag_spec_F77=
13699 whole_archive_flag_spec_F77=
13700 thread_safe_flag_spec_F77=
13701 hardcode_libdir_flag_spec_F77=
13702 hardcode_libdir_flag_spec_ld_F77=
13703 hardcode_libdir_separator_F77=
13704 hardcode_direct_F77=no
13705 hardcode_minus_L_F77=no
13706 hardcode_shlibpath_var_F77=unsupported
13707 link_all_deplibs_F77=unknown
13708 hardcode_automatic_F77=no
13709 module_cmds_F77=
13710 module_expsym_cmds_F77=
13711 always_export_symbols_F77=no
13712 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13713 # include_expsyms should be a list of space-separated symbols to be *always*
13714 # included in the symbol list
13715 include_expsyms_F77=
13716 # exclude_expsyms can be an extended regexp of symbols to exclude
13717 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13718 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13719 # as well as any symbol that contains `d'.
13720 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13721 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13722 # platforms (ab)use it in PIC code, but their linkers get confused if
13723 # the symbol is explicitly referenced. Since portable code cannot
13724 # rely on this symbol name, it's probably fine to never include it in
13725 # preloaded symbol tables.
13726 extract_expsyms_cmds=
13727 # Just being paranoid about ensuring that cc_basename is set.
13728 for cc_temp in $compiler""; do
13729 case $cc_temp in
13730 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13731 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13732 \-*) ;;
13733 *) break;;
13734 esac
13735done
13736cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13737
13738 case $host_os in
13739 cygwin* | mingw* | pw32*)
13740 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13741 # When not using gcc, we currently assume that we are using
13742 # Microsoft Visual C++.
13743 if test "$GCC" != yes; then
13744 with_gnu_ld=no
13745 fi
13746 ;;
13747 interix*)
13748 # we just hope/assume this is gcc and not c89 (= MSVC++)
13749 with_gnu_ld=yes
13750 ;;
13751 openbsd*)
13752 with_gnu_ld=no
13753 ;;
13754 esac
13755
13756 ld_shlibs_F77=yes
13757 if test "$with_gnu_ld" = yes; then
13758 # If archive_cmds runs LD, not CC, wlarc should be empty
13759 wlarc='${wl}'
13760
13761 # Set some defaults for GNU ld with shared library support. These
13762 # are reset later if shared libraries are not supported. Putting them
13763 # here allows them to be overridden if necessary.
13764 runpath_var=LD_RUN_PATH
13765 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13766 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13767 # ancient GNU ld didn't support --whole-archive et. al.
13768 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13769 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13770 else
13771 whole_archive_flag_spec_F77=
13772 fi
13773 supports_anon_versioning=no
13774 case `$LD -v 2>/dev/null` in
13775 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13776 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13777 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13778 *\ 2.11.*) ;; # other 2.11 versions
13779 *) supports_anon_versioning=yes ;;
13780 esac
13781
13782 # See if GNU ld supports shared libraries.
13783 case $host_os in
13784 aix3* | aix4* | aix5*)
13785 # On AIX/PPC, the GNU linker is very broken
13786 if test "$host_cpu" != ia64; then
13787 ld_shlibs_F77=no
13788 cat <<EOF 1>&2
13789
13790*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13791*** to be unable to reliably create shared libraries on AIX.
13792*** Therefore, libtool is disabling shared libraries support. If you
13793*** really care for shared libraries, you may want to modify your PATH
13794*** so that a non-GNU linker is found, and then restart.
13795
13796EOF
13797 fi
13798 ;;
13799
13800 amigaos*)
13801 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)'
13802 hardcode_libdir_flag_spec_F77='-L$libdir'
13803 hardcode_minus_L_F77=yes
13804
13805 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13806 # that the semantics of dynamic libraries on AmigaOS, at least up
13807 # to version 4, is to share data among multiple programs linked
13808 # with the same dynamic library. Since this doesn't match the
13809 # behavior of shared libraries on other platforms, we can't use
13810 # them.
13811 ld_shlibs_F77=no
13812 ;;
13813
13814 beos*)
13815 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13816 allow_undefined_flag_F77=unsupported
13817 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13818 # support --undefined. This deserves some investigation. FIXME
13819 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13820 else
13821 ld_shlibs_F77=no
13822 fi
13823 ;;
13824
13825 cygwin* | mingw* | pw32*)
13826 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13827 # as there is no search path for DLLs.
13828 hardcode_libdir_flag_spec_F77='-L$libdir'
13829 allow_undefined_flag_F77=unsupported
13830 always_export_symbols_F77=no
13831 enable_shared_with_static_runtimes_F77=yes
13832 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13833
13834 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13835 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13836 # If the export-symbols file already is a .def file (1st line
13837 # is EXPORTS), use it as is; otherwise, prepend...
13838 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13839 cp $export_symbols $output_objdir/$soname.def;
13840 else
13841 echo EXPORTS > $output_objdir/$soname.def;
13842 cat $export_symbols >> $output_objdir/$soname.def;
13843 fi~
13844 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13845 else
13846 ld_shlibs_F77=no
13847 fi
13848 ;;
13849
13850 interix3*)
13851 hardcode_direct_F77=no
13852 hardcode_shlibpath_var_F77=no
13853 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13854 export_dynamic_flag_spec_F77='${wl}-E'
13855 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13856 # Instead, shared libraries are loaded at an image base (0x10000000 by
13857 # default) and relocated if they conflict, which is a slow very memory
13858 # consuming and fragmenting process. To avoid this, we pick a random,
13859 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13860 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13861 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'
13862 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'
13863 ;;
13864
13865 linux*)
13866 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13867 tmp_addflag=
13868 case $cc_basename,$host_cpu in
13869 pgcc*) # Portland Group C compiler
13870 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'
13871 tmp_addflag=' $pic_flag'
13872 ;;
13873 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13874 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'
13875 tmp_addflag=' $pic_flag -Mnomain' ;;
13876 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13877 tmp_addflag=' -i_dynamic' ;;
13878 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13879 tmp_addflag=' -i_dynamic -nofor_main' ;;
13880 ifc* | ifort*) # Intel Fortran compiler
13881 tmp_addflag=' -nofor_main' ;;
13882 esac
13883 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13884
13885 if test $supports_anon_versioning = yes; then
13886 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13887 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13888 $echo "local: *; };" >> $output_objdir/$libname.ver~
13889 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13890 fi
13891 else
13892 ld_shlibs_F77=no
13893 fi
13894 ;;
13895
13896 netbsd*)
13897 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13898 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13899 wlarc=
13900 else
13901 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13902 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13903 fi
13904 ;;
13905
13906 solaris*)
13907 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13908 ld_shlibs_F77=no
13909 cat <<EOF 1>&2
13910
13911*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13912*** create shared libraries on Solaris systems. Therefore, libtool
13913*** is disabling shared libraries support. We urge you to upgrade GNU
13914*** binutils to release 2.9.1 or newer. Another option is to modify
13915*** your PATH or compiler configuration so that the native linker is
13916*** used, and then restart.
13917
13918EOF
13919 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13920 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13921 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13922 else
13923 ld_shlibs_F77=no
13924 fi
13925 ;;
13926
13927 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13928 case `$LD -v 2>&1` in
13929 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13930 ld_shlibs_F77=no
13931 cat <<_LT_EOF 1>&2
13932
13933*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13934*** reliably create shared libraries on SCO systems. Therefore, libtool
13935*** is disabling shared libraries support. We urge you to upgrade GNU
13936*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13937*** your PATH or compiler configuration so that the native linker is
13938*** used, and then restart.
13939
13940_LT_EOF
13941 ;;
13942 *)
13943 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13944 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13945 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13946 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13947 else
13948 ld_shlibs_F77=no
13949 fi
13950 ;;
13951 esac
13952 ;;
13953
13954 sunos4*)
13955 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13956 wlarc=
13957 hardcode_direct_F77=yes
13958 hardcode_shlibpath_var_F77=no
13959 ;;
13960
13961 *)
13962 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13963 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13964 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13965 else
13966 ld_shlibs_F77=no
13967 fi
13968 ;;
13969 esac
13970
13971 if test "$ld_shlibs_F77" = no; then
13972 runpath_var=
13973 hardcode_libdir_flag_spec_F77=
13974 export_dynamic_flag_spec_F77=
13975 whole_archive_flag_spec_F77=
13976 fi
13977 else
13978 # PORTME fill in a description of your system's linker (not GNU ld)
13979 case $host_os in
13980 aix3*)
13981 allow_undefined_flag_F77=unsupported
13982 always_export_symbols_F77=yes
13983 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'
13984 # Note: this linker hardcodes the directories in LIBPATH if there
13985 # are no directories specified by -L.
13986 hardcode_minus_L_F77=yes
13987 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13988 # Neither direct hardcoding nor static linking is supported with a
13989 # broken collect2.
13990 hardcode_direct_F77=unsupported
13991 fi
13992 ;;
13993
13994 aix4* | aix5*)
13995 if test "$host_cpu" = ia64; then
13996 # On IA64, the linker does run time linking by default, so we don't
13997 # have to do anything special.
13998 aix_use_runtimelinking=no
13999 exp_sym_flag='-Bexport'
14000 no_entry_flag=""
14001 else
14002 # If we're using GNU nm, then we don't want the "-C" option.
14003 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14004 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14005 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'
14006 else
14007 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'
14008 fi
14009 aix_use_runtimelinking=no
14010
14011 # Test if we are trying to use run time linking or normal
14012 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14013 # need to do runtime linking.
14014 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14015 for ld_flag in $LDFLAGS; do
14016 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14017 aix_use_runtimelinking=yes
14018 break
14019 fi
14020 done
14021 ;;
14022 esac
14023
14024 exp_sym_flag='-bexport'
14025 no_entry_flag='-bnoentry'
14026 fi
14027
14028 # When large executables or shared objects are built, AIX ld can
14029 # have problems creating the table of contents. If linking a library
14030 # or program results in "error TOC overflow" add -mminimal-toc to
14031 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14032 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14033
14034 archive_cmds_F77=''
14035 hardcode_direct_F77=yes
14036 hardcode_libdir_separator_F77=':'
14037 link_all_deplibs_F77=yes
14038
14039 if test "$GCC" = yes; then
14040 case $host_os in aix4.[012]|aix4.[012].*)
14041 # We only want to do this on AIX 4.2 and lower, the check
14042 # below for broken collect2 doesn't work under 4.3+
14043 collect2name=`${CC} -print-prog-name=collect2`
14044 if test -f "$collect2name" && \
14045 strings "$collect2name" | grep resolve_lib_name >/dev/null
14046 then
14047 # We have reworked collect2
14048 hardcode_direct_F77=yes
14049 else
14050 # We have old collect2
14051 hardcode_direct_F77=unsupported
14052 # It fails to find uninstalled libraries when the uninstalled
14053 # path is not listed in the libpath. Setting hardcode_minus_L
14054 # to unsupported forces relinking
14055 hardcode_minus_L_F77=yes
14056 hardcode_libdir_flag_spec_F77='-L$libdir'
14057 hardcode_libdir_separator_F77=
14058 fi
14059 ;;
14060 esac
14061 shared_flag='-shared'
14062 if test "$aix_use_runtimelinking" = yes; then
14063 shared_flag="$shared_flag "'${wl}-G'
14064 fi
14065 else
14066 # not using gcc
14067 if test "$host_cpu" = ia64; then
14068 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14069 # chokes on -Wl,-G. The following line is correct:
14070 shared_flag='-G'
14071 else
14072 if test "$aix_use_runtimelinking" = yes; then
14073 shared_flag='${wl}-G'
14074 else
14075 shared_flag='${wl}-bM:SRE'
14076 fi
14077 fi
14078 fi
14079
14080 # It seems that -bexpall does not export symbols beginning with
14081 # underscore (_), so it is better to generate a list of symbols to export.
14082 always_export_symbols_F77=yes
14083 if test "$aix_use_runtimelinking" = yes; then
14084 # Warning - without using the other runtime loading flags (-brtl),
14085 # -berok will link without error, but may produce a broken library.
14086 allow_undefined_flag_F77='-berok'
14087 # Determine the default libpath from the value encoded in an empty executable.
14088 cat >conftest.$ac_ext <<_ACEOF
14089 program main
14090
14091 end
14092_ACEOF
14093rm -f conftest.$ac_objext conftest$ac_exeext
14094if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14095 (eval $ac_link) 2>conftest.er1
14096 ac_status=$?
14097 grep -v '^ *+' conftest.er1 >conftest.err
14098 rm -f conftest.er1
14099 cat conftest.err >&5
14100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14101 (exit $ac_status); } &&
14102 { ac_try='test -z "$ac_f77_werror_flag"
14103 || test ! -s conftest.err'
14104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14105 (eval $ac_try) 2>&5
14106 ac_status=$?
14107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14108 (exit $ac_status); }; } &&
14109 { ac_try='test -s conftest$ac_exeext'
14110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14111 (eval $ac_try) 2>&5
14112 ac_status=$?
14113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14114 (exit $ac_status); }; }; then
14115
14116aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14117}'`
14118# Check for a 64-bit object if we didn't find anything.
14119if 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; }
14120}'`; fi
14121else
14122 echo "$as_me: failed program was:" >&5
14123sed 's/^/| /' conftest.$ac_ext >&5
14124
14125fi
14126rm -f conftest.err conftest.$ac_objext \
14127 conftest$ac_exeext conftest.$ac_ext
14128if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14129
14130 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14131 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"
14132 else
14133 if test "$host_cpu" = ia64; then
14134 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14135 allow_undefined_flag_F77="-z nodefs"
14136 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"
14137 else
14138 # Determine the default libpath from the value encoded in an empty executable.
14139 cat >conftest.$ac_ext <<_ACEOF
14140 program main
14141
14142 end
14143_ACEOF
14144rm -f conftest.$ac_objext conftest$ac_exeext
14145if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14146 (eval $ac_link) 2>conftest.er1
14147 ac_status=$?
14148 grep -v '^ *+' conftest.er1 >conftest.err
14149 rm -f conftest.er1
14150 cat conftest.err >&5
14151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14152 (exit $ac_status); } &&
14153 { ac_try='test -z "$ac_f77_werror_flag"
14154 || test ! -s conftest.err'
14155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14156 (eval $ac_try) 2>&5
14157 ac_status=$?
14158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14159 (exit $ac_status); }; } &&
14160 { ac_try='test -s conftest$ac_exeext'
14161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14162 (eval $ac_try) 2>&5
14163 ac_status=$?
14164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14165 (exit $ac_status); }; }; then
14166
14167aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14168}'`
14169# Check for a 64-bit object if we didn't find anything.
14170if 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; }
14171}'`; fi
14172else
14173 echo "$as_me: failed program was:" >&5
14174sed 's/^/| /' conftest.$ac_ext >&5
14175
14176fi
14177rm -f conftest.err conftest.$ac_objext \
14178 conftest$ac_exeext conftest.$ac_ext
14179if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14180
14181 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14182 # Warning - without using the other run time loading flags,
14183 # -berok will link without error, but may produce a broken library.
14184 no_undefined_flag_F77=' ${wl}-bernotok'
14185 allow_undefined_flag_F77=' ${wl}-berok'
14186 # Exported symbols can be pulled into shared objects from archives
14187 whole_archive_flag_spec_F77='$convenience'
14188 archive_cmds_need_lc_F77=yes
14189 # This is similar to how AIX traditionally builds its shared libraries.
14190 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'
14191 fi
14192 fi
14193 ;;
14194
14195 amigaos*)
14196 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)'
14197 hardcode_libdir_flag_spec_F77='-L$libdir'
14198 hardcode_minus_L_F77=yes
14199 # see comment about different semantics on the GNU ld section
14200 ld_shlibs_F77=no
14201 ;;
14202
14203 bsdi[45]*)
14204 export_dynamic_flag_spec_F77=-rdynamic
14205 ;;
14206
14207 cygwin* | mingw* | pw32*)
14208 # When not using gcc, we currently assume that we are using
14209 # Microsoft Visual C++.
14210 # hardcode_libdir_flag_spec is actually meaningless, as there is
14211 # no search path for DLLs.
14212 hardcode_libdir_flag_spec_F77=' '
14213 allow_undefined_flag_F77=unsupported
14214 # Tell ltmain to make .lib files, not .a files.
14215 libext=lib
14216 # Tell ltmain to make .dll files, not .so files.
14217 shrext_cmds=".dll"
14218 # FIXME: Setting linknames here is a bad hack.
14219 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14220 # The linker will automatically build a .lib file if we build a DLL.
14221 old_archive_From_new_cmds_F77='true'
14222 # FIXME: Should let the user specify the lib program.
14223 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14224 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14225 enable_shared_with_static_runtimes_F77=yes
14226 ;;
14227
14228 darwin* | rhapsody*)
14229 case $host_os in
14230 rhapsody* | darwin1.[012])
14231 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14232 ;;
14233 *) # Darwin 1.3 on
14234 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14235 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14236 else
14237 case ${MACOSX_DEPLOYMENT_TARGET} in
14238 10.[012])
14239 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14240 ;;
14241 10.*)
14242 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14243 ;;
14244 esac
14245 fi
14246 ;;
14247 esac
14248 archive_cmds_need_lc_F77=no
14249 hardcode_direct_F77=no
14250 hardcode_automatic_F77=yes
14251 hardcode_shlibpath_var_F77=unsupported
14252 whole_archive_flag_spec_F77=''
14253 link_all_deplibs_F77=yes
14254 if test "$GCC" = yes ; then
14255 output_verbose_link_cmd='echo'
14256 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14257 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14258 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14259 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}'
14260 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}'
14261 else
14262 case $cc_basename in
14263 xlc*)
14264 output_verbose_link_cmd='echo'
14265 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14266 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14267 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14268 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}'
14269 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}'
14270 ;;
14271 *)
14272 ld_shlibs_F77=no
14273 ;;
14274 esac
14275 fi
14276 ;;
14277
14278 dgux*)
14279 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14280 hardcode_libdir_flag_spec_F77='-L$libdir'
14281 hardcode_shlibpath_var_F77=no
14282 ;;
14283
14284 freebsd1*)
14285 ld_shlibs_F77=no
14286 ;;
14287
14288 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14289 # support. Future versions do this automatically, but an explicit c++rt0.o
14290 # does not break anything, and helps significantly (at the cost of a little
14291 # extra space).
14292 freebsd2.2*)
14293 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14294 hardcode_libdir_flag_spec_F77='-R$libdir'
14295 hardcode_direct_F77=yes
14296 hardcode_shlibpath_var_F77=no
14297 ;;
14298
14299 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14300 freebsd2*)
14301 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14302 hardcode_direct_F77=yes
14303 hardcode_minus_L_F77=yes
14304 hardcode_shlibpath_var_F77=no
14305 ;;
14306
14307 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14308 freebsd* | kfreebsd*-gnu | dragonfly*)
14309 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14310 hardcode_libdir_flag_spec_F77='-R$libdir'
14311 hardcode_direct_F77=yes
14312 hardcode_shlibpath_var_F77=no
14313 ;;
14314
14315 hpux9*)
14316 if test "$GCC" = yes; then
14317 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'
14318 else
14319 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'
14320 fi
14321 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14322 hardcode_libdir_separator_F77=:
14323 hardcode_direct_F77=yes
14324
14325 # hardcode_minus_L: Not really in the search PATH,
14326 # but as the default location of the library.
14327 hardcode_minus_L_F77=yes
14328 export_dynamic_flag_spec_F77='${wl}-E'
14329 ;;
14330
14331 hpux10*)
14332 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14333 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14334 else
14335 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14336 fi
14337 if test "$with_gnu_ld" = no; then
14338 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14339 hardcode_libdir_separator_F77=:
14340
14341 hardcode_direct_F77=yes
14342 export_dynamic_flag_spec_F77='${wl}-E'
14343
14344 # hardcode_minus_L: Not really in the search PATH,
14345 # but as the default location of the library.
14346 hardcode_minus_L_F77=yes
14347 fi
14348 ;;
14349
14350 hpux11*)
14351 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14352 case $host_cpu in
14353 hppa*64*)
14354 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14355 ;;
14356 ia64*)
14357 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14358 ;;
14359 *)
14360 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14361 ;;
14362 esac
14363 else
14364 case $host_cpu in
14365 hppa*64*)
14366 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14367 ;;
14368 ia64*)
14369 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14370 ;;
14371 *)
14372 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14373 ;;
14374 esac
14375 fi
14376 if test "$with_gnu_ld" = no; then
14377 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14378 hardcode_libdir_separator_F77=:
14379
14380 case $host_cpu in
14381 hppa*64*|ia64*)
14382 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14383 hardcode_direct_F77=no
14384 hardcode_shlibpath_var_F77=no
14385 ;;
14386 *)
14387 hardcode_direct_F77=yes
14388 export_dynamic_flag_spec_F77='${wl}-E'
14389
14390 # hardcode_minus_L: Not really in the search PATH,
14391 # but as the default location of the library.
14392 hardcode_minus_L_F77=yes
14393 ;;
14394 esac
14395 fi
14396 ;;
14397
14398 irix5* | irix6* | nonstopux*)
14399 if test "$GCC" = yes; then
14400 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'
14401 else
14402 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'
14403 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14404 fi
14405 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14406 hardcode_libdir_separator_F77=:
14407 link_all_deplibs_F77=yes
14408 ;;
14409
14410 netbsd*)
14411 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14412 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14413 else
14414 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14415 fi
14416 hardcode_libdir_flag_spec_F77='-R$libdir'
14417 hardcode_direct_F77=yes
14418 hardcode_shlibpath_var_F77=no
14419 ;;
14420
14421 newsos6)
14422 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14423 hardcode_direct_F77=yes
14424 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14425 hardcode_libdir_separator_F77=:
14426 hardcode_shlibpath_var_F77=no
14427 ;;
14428
14429 openbsd*)
14430 hardcode_direct_F77=yes
14431 hardcode_shlibpath_var_F77=no
14432 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14433 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14434 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14435 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14436 export_dynamic_flag_spec_F77='${wl}-E'
14437 else
14438 case $host_os in
14439 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14440 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14441 hardcode_libdir_flag_spec_F77='-R$libdir'
14442 ;;
14443 *)
14444 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14445 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14446 ;;
14447 esac
14448 fi
14449 ;;
14450
14451 os2*)
14452 hardcode_libdir_flag_spec_F77='-L$libdir'
14453 hardcode_minus_L_F77=yes
14454 allow_undefined_flag_F77=unsupported
14455 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'
14456 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14457 ;;
14458
14459 osf3*)
14460 if test "$GCC" = yes; then
14461 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14462 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'
14463 else
14464 allow_undefined_flag_F77=' -expect_unresolved \*'
14465 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'
14466 fi
14467 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14468 hardcode_libdir_separator_F77=:
14469 ;;
14470
14471 osf4* | osf5*) # as osf3* with the addition of -msym flag
14472 if test "$GCC" = yes; then
14473 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14474 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'
14475 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14476 else
14477 allow_undefined_flag_F77=' -expect_unresolved \*'
14478 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'
14479 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~
14480 $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'
14481
14482 # Both c and cxx compiler support -rpath directly
14483 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14484 fi
14485 hardcode_libdir_separator_F77=:
14486 ;;
14487
14488 solaris*)
14489 no_undefined_flag_F77=' -z text'
14490 if test "$GCC" = yes; then
14491 wlarc='${wl}'
14492 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14493 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14494 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14495 else
14496 wlarc=''
14497 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14498 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14499 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14500 fi
14501 hardcode_libdir_flag_spec_F77='-R$libdir'
14502 hardcode_shlibpath_var_F77=no
14503 case $host_os in
14504 solaris2.[0-5] | solaris2.[0-5].*) ;;
14505 *)
14506 # The compiler driver will combine linker options so we
14507 # cannot just pass the convience library names through
14508 # without $wl, iff we do not link with $LD.
14509 # Luckily, gcc supports the same syntax we need for Sun Studio.
14510 # Supported since Solaris 2.6 (maybe 2.5.1?)
14511 case $wlarc in
14512 '')
14513 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14514 *)
14515 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' ;;
14516 esac ;;
14517 esac
14518 link_all_deplibs_F77=yes
14519 ;;
14520
14521 sunos4*)
14522 if test "x$host_vendor" = xsequent; then
14523 # Use $CC to link under sequent, because it throws in some extra .o
14524 # files that make .init and .fini sections work.
14525 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14526 else
14527 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14528 fi
14529 hardcode_libdir_flag_spec_F77='-L$libdir'
14530 hardcode_direct_F77=yes
14531 hardcode_minus_L_F77=yes
14532 hardcode_shlibpath_var_F77=no
14533 ;;
14534
14535 sysv4)
14536 case $host_vendor in
14537 sni)
14538 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14539 hardcode_direct_F77=yes # is this really true???
14540 ;;
14541 siemens)
14542 ## LD is ld it makes a PLAMLIB
14543 ## CC just makes a GrossModule.
14544 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14545 reload_cmds_F77='$CC -r -o $output$reload_objs'
14546 hardcode_direct_F77=no
14547 ;;
14548 motorola)
14549 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14550 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14551 ;;
14552 esac
14553 runpath_var='LD_RUN_PATH'
14554 hardcode_shlibpath_var_F77=no
14555 ;;
14556
14557 sysv4.3*)
14558 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14559 hardcode_shlibpath_var_F77=no
14560 export_dynamic_flag_spec_F77='-Bexport'
14561 ;;
14562
14563 sysv4*MP*)
14564 if test -d /usr/nec; then
14565 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14566 hardcode_shlibpath_var_F77=no
14567 runpath_var=LD_RUN_PATH
14568 hardcode_runpath_var=yes
14569 ld_shlibs_F77=yes
14570 fi
14571 ;;
14572
14573 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14574 no_undefined_flag_F77='${wl}-z,text'
14575 archive_cmds_need_lc_F77=no
14576 hardcode_shlibpath_var_F77=no
14577 runpath_var='LD_RUN_PATH'
14578
14579 if test "$GCC" = yes; then
14580 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14581 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14582 else
14583 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14584 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14585 fi
14586 ;;
14587
14588 sysv5* | sco3.2v5* | sco5v6*)
14589 # Note: We can NOT use -z defs as we might desire, because we do not
14590 # link with -lc, and that would cause any symbols used from libc to
14591 # always be unresolved, which means just about no library would
14592 # ever link correctly. If we're not using GNU ld we use -z text
14593 # though, which does catch some bad symbols but isn't as heavy-handed
14594 # as -z defs.
14595 no_undefined_flag_F77='${wl}-z,text'
14596 allow_undefined_flag_F77='${wl}-z,nodefs'
14597 archive_cmds_need_lc_F77=no
14598 hardcode_shlibpath_var_F77=no
14599 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14600 hardcode_libdir_separator_F77=':'
14601 link_all_deplibs_F77=yes
14602 export_dynamic_flag_spec_F77='${wl}-Bexport'
14603 runpath_var='LD_RUN_PATH'
14604
14605 if test "$GCC" = yes; then
14606 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14607 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14608 else
14609 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14610 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14611 fi
14612 ;;
14613
14614 uts4*)
14615 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14616 hardcode_libdir_flag_spec_F77='-L$libdir'
14617 hardcode_shlibpath_var_F77=no
14618 ;;
14619
14620 *)
14621 ld_shlibs_F77=no
14622 ;;
14623 esac
14624 fi
14625
14626echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14627echo "${ECHO_T}$ld_shlibs_F77" >&6
14628test "$ld_shlibs_F77" = no && can_build_shared=no
14629
14630#
14631# Do we need to explicitly link libc?
14632#
14633case "x$archive_cmds_need_lc_F77" in
14634x|xyes)
14635 # Assume -lc should be added
14636 archive_cmds_need_lc_F77=yes
14637
14638 if test "$enable_shared" = yes && test "$GCC" = yes; then
14639 case $archive_cmds_F77 in
14640 *'~'*)
14641 # FIXME: we may have to deal with multi-command sequences.
14642 ;;
14643 '$CC '*)
14644 # Test whether the compiler implicitly links with -lc since on some
14645 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14646 # to ld, don't add -lc before -lgcc.
14647 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14648echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14649 $rm conftest*
14650 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14651
14652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14653 (eval $ac_compile) 2>&5
14654 ac_status=$?
14655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14656 (exit $ac_status); } 2>conftest.err; then
14657 soname=conftest
14658 lib=conftest
14659 libobjs=conftest.$ac_objext
14660 deplibs=
14661 wl=$lt_prog_compiler_wl_F77
14662 pic_flag=$lt_prog_compiler_pic_F77
14663 compiler_flags=-v
14664 linker_flags=-v
14665 verstring=
14666 output_objdir=.
14667 libname=conftest
14668 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14669 allow_undefined_flag_F77=
14670 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14671 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14672 ac_status=$?
14673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14674 (exit $ac_status); }
14675 then
14676 archive_cmds_need_lc_F77=no
14677 else
14678 archive_cmds_need_lc_F77=yes
14679 fi
14680 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14681 else
14682 cat conftest.err 1>&5
14683 fi
14684 $rm conftest*
14685 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14686echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14687 ;;
14688 esac
14689 fi
14690 ;;
14691esac
14692
14693echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14694echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14695library_names_spec=
14696libname_spec='lib$name'
14697soname_spec=
14698shrext_cmds=".so"
14699postinstall_cmds=
14700postuninstall_cmds=
14701finish_cmds=
14702finish_eval=
14703shlibpath_var=
14704shlibpath_overrides_runpath=unknown
14705version_type=none
14706dynamic_linker="$host_os ld.so"
14707sys_lib_dlsearch_path_spec="/lib /usr/lib"
14708if test "$GCC" = yes; then
14709 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14710 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14711 # if the path contains ";" then we assume it to be the separator
14712 # otherwise default to the standard path separator (i.e. ":") - it is
14713 # assumed that no part of a normal pathname contains ";" but that should
14714 # okay in the real world where ";" in dirpaths is itself problematic.
14715 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14716 else
14717 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14718 fi
14719else
14720 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14721fi
14722need_lib_prefix=unknown
14723hardcode_into_libs=no
14724
14725# when you set need_version to no, make sure it does not cause -set_version
14726# flags to be left without arguments
14727need_version=unknown
14728
14729case $host_os in
14730aix3*)
14731 version_type=linux
14732 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14733 shlibpath_var=LIBPATH
14734
14735 # AIX 3 has no versioning support, so we append a major version to the name.
14736 soname_spec='${libname}${release}${shared_ext}$major'
14737 ;;
14738
14739aix4* | aix5*)
14740 version_type=linux
14741 need_lib_prefix=no
14742 need_version=no
14743 hardcode_into_libs=yes
14744 if test "$host_cpu" = ia64; then
14745 # AIX 5 supports IA64
14746 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14747 shlibpath_var=LD_LIBRARY_PATH
14748 else
14749 # With GCC up to 2.95.x, collect2 would create an import file
14750 # for dependence libraries. The import file would start with
14751 # the line `#! .'. This would cause the generated library to
14752 # depend on `.', always an invalid library. This was fixed in
14753 # development snapshots of GCC prior to 3.0.
14754 case $host_os in
14755 aix4 | aix4.[01] | aix4.[01].*)
14756 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14757 echo ' yes '
14758 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14759 :
14760 else
14761 can_build_shared=no
14762 fi
14763 ;;
14764 esac
14765 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14766 # soname into executable. Probably we can add versioning support to
14767 # collect2, so additional links can be useful in future.
14768 if test "$aix_use_runtimelinking" = yes; then
14769 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14770 # instead of lib<name>.a to let people know that these are not
14771 # typical AIX shared libraries.
14772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14773 else
14774 # We preserve .a as extension for shared libraries through AIX4.2
14775 # and later when we are not doing run time linking.
14776 library_names_spec='${libname}${release}.a $libname.a'
14777 soname_spec='${libname}${release}${shared_ext}$major'
14778 fi
14779 shlibpath_var=LIBPATH
14780 fi
14781 ;;
14782
14783amigaos*)
14784 library_names_spec='$libname.ixlibrary $libname.a'
14785 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14786 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'
14787 ;;
14788
14789beos*)
14790 library_names_spec='${libname}${shared_ext}'
14791 dynamic_linker="$host_os ld.so"
14792 shlibpath_var=LIBRARY_PATH
14793 ;;
14794
14795bsdi[45]*)
14796 version_type=linux
14797 need_version=no
14798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14799 soname_spec='${libname}${release}${shared_ext}$major'
14800 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14801 shlibpath_var=LD_LIBRARY_PATH
14802 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14803 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14804 # the default ld.so.conf also contains /usr/contrib/lib and
14805 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14806 # libtool to hard-code these into programs
14807 ;;
14808
14809cygwin* | mingw* | pw32*)
14810 version_type=windows
14811 shrext_cmds=".dll"
14812 need_version=no
14813 need_lib_prefix=no
14814
14815 case $GCC,$host_os in
14816 yes,cygwin* | yes,mingw* | yes,pw32*)
14817 library_names_spec='$libname.dll.a'
14818 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14819 postinstall_cmds='base_file=`basename \${file}`~
14820 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14821 dldir=$destdir/`dirname \$dlpath`~
14822 test -d \$dldir || mkdir -p \$dldir~
14823 $install_prog $dir/$dlname \$dldir/$dlname~
14824 chmod a+x \$dldir/$dlname'
14825 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14826 dlpath=$dir/\$dldll~
14827 $rm \$dlpath'
14828 shlibpath_overrides_runpath=yes
14829
14830 case $host_os in
14831 cygwin*)
14832 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14833 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14834 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14835 ;;
14836 mingw*)
14837 # MinGW DLLs use traditional 'lib' prefix
14838 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14839 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14840 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14841 # It is most probably a Windows format PATH printed by
14842 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14843 # path with ; separators, and with drive letters. We can handle the
14844 # drive letters (cygwin fileutils understands them), so leave them,
14845 # especially as we might pass files found there to a mingw objdump,
14846 # which wouldn't understand a cygwinified path. Ahh.
14847 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14848 else
14849 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14850 fi
14851 ;;
14852 pw32*)
14853 # pw32 DLLs use 'pw' prefix rather than 'lib'
14854 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14855 ;;
14856 esac
14857 ;;
14858
14859 *)
14860 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14861 ;;
14862 esac
14863 dynamic_linker='Win32 ld.exe'
14864 # FIXME: first we should search . and the directory the executable is in
14865 shlibpath_var=PATH
14866 ;;
14867
14868darwin* | rhapsody*)
14869 dynamic_linker="$host_os dyld"
14870 version_type=darwin
14871 need_lib_prefix=no
14872 need_version=no
14873 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14874 soname_spec='${libname}${release}${major}$shared_ext'
14875 shlibpath_overrides_runpath=yes
14876 shlibpath_var=DYLD_LIBRARY_PATH
14877 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14878 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14879 if test "$GCC" = yes; then
14880 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"`
14881 else
14882 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14883 fi
14884 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14885 ;;
14886
14887dgux*)
14888 version_type=linux
14889 need_lib_prefix=no
14890 need_version=no
14891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14892 soname_spec='${libname}${release}${shared_ext}$major'
14893 shlibpath_var=LD_LIBRARY_PATH
14894 ;;
14895
14896freebsd1*)
14897 dynamic_linker=no
14898 ;;
14899
14900kfreebsd*-gnu)
14901 version_type=linux
14902 need_lib_prefix=no
14903 need_version=no
14904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14905 soname_spec='${libname}${release}${shared_ext}$major'
14906 shlibpath_var=LD_LIBRARY_PATH
14907 shlibpath_overrides_runpath=no
14908 hardcode_into_libs=yes
14909 dynamic_linker='GNU ld.so'
14910 ;;
14911
14912freebsd* | dragonfly*)
14913 # DragonFly does not have aout. When/if they implement a new
14914 # versioning mechanism, adjust this.
14915 if test -x /usr/bin/objformat; then
14916 objformat=`/usr/bin/objformat`
14917 else
14918 case $host_os in
14919 freebsd[123]*) objformat=aout ;;
14920 *) objformat=elf ;;
14921 esac
14922 fi
14923 version_type=freebsd-$objformat
14924 case $version_type in
14925 freebsd-elf*)
14926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14927 need_version=no
14928 need_lib_prefix=no
14929 ;;
14930 freebsd-*)
14931 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14932 need_version=yes
14933 ;;
14934 esac
14935 shlibpath_var=LD_LIBRARY_PATH
14936 case $host_os in
14937 freebsd2*)
14938 shlibpath_overrides_runpath=yes
14939 ;;
14940 freebsd3.[01]* | freebsdelf3.[01]*)
14941 shlibpath_overrides_runpath=yes
14942 hardcode_into_libs=yes
14943 ;;
14944 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14945 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14946 shlibpath_overrides_runpath=no
14947 hardcode_into_libs=yes
14948 ;;
14949 freebsd*) # from 4.6 on
14950 shlibpath_overrides_runpath=yes
14951 hardcode_into_libs=yes
14952 ;;
14953 esac
14954 ;;
14955
14956gnu*)
14957 version_type=linux
14958 need_lib_prefix=no
14959 need_version=no
14960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14961 soname_spec='${libname}${release}${shared_ext}$major'
14962 shlibpath_var=LD_LIBRARY_PATH
14963 hardcode_into_libs=yes
14964 ;;
14965
14966hpux9* | hpux10* | hpux11*)
14967 # Give a soname corresponding to the major version so that dld.sl refuses to
14968 # link against other versions.
14969 version_type=sunos
14970 need_lib_prefix=no
14971 need_version=no
14972 case $host_cpu in
14973 ia64*)
14974 shrext_cmds='.so'
14975 hardcode_into_libs=yes
14976 dynamic_linker="$host_os dld.so"
14977 shlibpath_var=LD_LIBRARY_PATH
14978 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14980 soname_spec='${libname}${release}${shared_ext}$major'
14981 if test "X$HPUX_IA64_MODE" = X32; then
14982 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14983 else
14984 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14985 fi
14986 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14987 ;;
14988 hppa*64*)
14989 shrext_cmds='.sl'
14990 hardcode_into_libs=yes
14991 dynamic_linker="$host_os dld.sl"
14992 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14993 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14995 soname_spec='${libname}${release}${shared_ext}$major'
14996 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14997 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14998 ;;
14999 *)
15000 shrext_cmds='.sl'
15001 dynamic_linker="$host_os dld.sl"
15002 shlibpath_var=SHLIB_PATH
15003 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15005 soname_spec='${libname}${release}${shared_ext}$major'
15006 ;;
15007 esac
15008 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15009 postinstall_cmds='chmod 555 $lib'
15010 ;;
15011
15012interix3*)
15013 version_type=linux
15014 need_lib_prefix=no
15015 need_version=no
15016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15017 soname_spec='${libname}${release}${shared_ext}$major'
15018 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15019 shlibpath_var=LD_LIBRARY_PATH
15020 shlibpath_overrides_runpath=no
15021 hardcode_into_libs=yes
15022 ;;
15023
15024irix5* | irix6* | nonstopux*)
15025 case $host_os in
15026 nonstopux*) version_type=nonstopux ;;
15027 *)
15028 if test "$lt_cv_prog_gnu_ld" = yes; then
15029 version_type=linux
15030 else
15031 version_type=irix
15032 fi ;;
15033 esac
15034 need_lib_prefix=no
15035 need_version=no
15036 soname_spec='${libname}${release}${shared_ext}$major'
15037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15038 case $host_os in
15039 irix5* | nonstopux*)
15040 libsuff= shlibsuff=
15041 ;;
15042 *)
15043 case $LD in # libtool.m4 will add one of these switches to LD
15044 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15045 libsuff= shlibsuff= libmagic=32-bit;;
15046 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15047 libsuff=32 shlibsuff=N32 libmagic=N32;;
15048 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15049 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15050 *) libsuff= shlibsuff= libmagic=never-match;;
15051 esac
15052 ;;
15053 esac
15054 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15055 shlibpath_overrides_runpath=no
15056 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15057 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15058 hardcode_into_libs=yes
15059 ;;
15060
15061# No shared lib support for Linux oldld, aout, or coff.
15062linux*oldld* | linux*aout* | linux*coff*)
15063 dynamic_linker=no
15064 ;;
15065
15066# This must be Linux ELF.
15067linux*)
15068 version_type=linux
15069 need_lib_prefix=no
15070 need_version=no
15071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15072 soname_spec='${libname}${release}${shared_ext}$major'
15073 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15074 shlibpath_var=LD_LIBRARY_PATH
15075 shlibpath_overrides_runpath=no
15076 # This implies no fast_install, which is unacceptable.
15077 # Some rework will be needed to allow for fast_install
15078 # before this can be enabled.
15079 hardcode_into_libs=yes
15080
15081 # find out which ABI we are using
15082 libsuff=
15083 case "$host_cpu" in
15084 x86_64*|s390x*|powerpc64*)
5e9b5d83 15085 echo '#line 15085 "configure"' > conftest.$ac_ext
bf9f3bac 15086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15087 (eval $ac_compile) 2>&5
15088 ac_status=$?
15089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15090 (exit $ac_status); }; then
15091 case `/usr/bin/file conftest.$ac_objext` in
15092 *64-bit*)
15093 libsuff=64
15094 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15095 ;;
15096 esac
15097 fi
15098 rm -rf conftest*
15099 ;;
15100 esac
15101
15102 # Append ld.so.conf contents to the search path
15103 if test -f /etc/ld.so.conf; then
15104 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' ' '`
15105 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15106 fi
15107
15108 # We used to test for /lib/ld.so.1 and disable shared libraries on
15109 # powerpc, because MkLinux only supported shared libraries with the
15110 # GNU dynamic linker. Since this was broken with cross compilers,
15111 # most powerpc-linux boxes support dynamic linking these days and
15112 # people can always --disable-shared, the test was removed, and we
15113 # assume the GNU/Linux dynamic linker is in use.
15114 dynamic_linker='GNU/Linux ld.so'
15115 ;;
15116
15117knetbsd*-gnu)
15118 version_type=linux
15119 need_lib_prefix=no
15120 need_version=no
15121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15122 soname_spec='${libname}${release}${shared_ext}$major'
15123 shlibpath_var=LD_LIBRARY_PATH
15124 shlibpath_overrides_runpath=no
15125 hardcode_into_libs=yes
15126 dynamic_linker='GNU ld.so'
15127 ;;
15128
15129netbsd*)
15130 version_type=sunos
15131 need_lib_prefix=no
15132 need_version=no
15133 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15135 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15136 dynamic_linker='NetBSD (a.out) ld.so'
15137 else
15138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15139 soname_spec='${libname}${release}${shared_ext}$major'
15140 dynamic_linker='NetBSD ld.elf_so'
15141 fi
15142 shlibpath_var=LD_LIBRARY_PATH
15143 shlibpath_overrides_runpath=yes
15144 hardcode_into_libs=yes
15145 ;;
15146
15147newsos6)
15148 version_type=linux
15149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15150 shlibpath_var=LD_LIBRARY_PATH
15151 shlibpath_overrides_runpath=yes
15152 ;;
15153
15154nto-qnx*)
15155 version_type=linux
15156 need_lib_prefix=no
15157 need_version=no
15158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15159 soname_spec='${libname}${release}${shared_ext}$major'
15160 shlibpath_var=LD_LIBRARY_PATH
15161 shlibpath_overrides_runpath=yes
15162 ;;
15163
15164openbsd*)
15165 version_type=sunos
15166 sys_lib_dlsearch_path_spec="/usr/lib"
15167 need_lib_prefix=no
15168 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15169 case $host_os in
15170 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15171 *) need_version=no ;;
15172 esac
15173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15174 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15175 shlibpath_var=LD_LIBRARY_PATH
15176 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15177 case $host_os in
15178 openbsd2.[89] | openbsd2.[89].*)
15179 shlibpath_overrides_runpath=no
15180 ;;
15181 *)
15182 shlibpath_overrides_runpath=yes
15183 ;;
15184 esac
15185 else
15186 shlibpath_overrides_runpath=yes
15187 fi
15188 ;;
15189
15190os2*)
15191 libname_spec='$name'
15192 shrext_cmds=".dll"
15193 need_lib_prefix=no
15194 library_names_spec='$libname${shared_ext} $libname.a'
15195 dynamic_linker='OS/2 ld.exe'
15196 shlibpath_var=LIBPATH
15197 ;;
15198
15199osf3* | osf4* | osf5*)
15200 version_type=osf
15201 need_lib_prefix=no
15202 need_version=no
15203 soname_spec='${libname}${release}${shared_ext}$major'
15204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15205 shlibpath_var=LD_LIBRARY_PATH
15206 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15207 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15208 ;;
15209
15210solaris*)
15211 version_type=linux
15212 need_lib_prefix=no
15213 need_version=no
15214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15215 soname_spec='${libname}${release}${shared_ext}$major'
15216 shlibpath_var=LD_LIBRARY_PATH
15217 shlibpath_overrides_runpath=yes
15218 hardcode_into_libs=yes
15219 # ldd complains unless libraries are executable
15220 postinstall_cmds='chmod +x $lib'
15221 ;;
15222
15223sunos4*)
15224 version_type=sunos
15225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15226 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15227 shlibpath_var=LD_LIBRARY_PATH
15228 shlibpath_overrides_runpath=yes
15229 if test "$with_gnu_ld" = yes; then
15230 need_lib_prefix=no
15231 fi
15232 need_version=yes
15233 ;;
15234
15235sysv4 | sysv4.3*)
15236 version_type=linux
15237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15238 soname_spec='${libname}${release}${shared_ext}$major'
15239 shlibpath_var=LD_LIBRARY_PATH
15240 case $host_vendor in
15241 sni)
15242 shlibpath_overrides_runpath=no
15243 need_lib_prefix=no
15244 export_dynamic_flag_spec='${wl}-Blargedynsym'
15245 runpath_var=LD_RUN_PATH
15246 ;;
15247 siemens)
15248 need_lib_prefix=no
15249 ;;
15250 motorola)
15251 need_lib_prefix=no
15252 need_version=no
15253 shlibpath_overrides_runpath=no
15254 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15255 ;;
15256 esac
15257 ;;
15258
15259sysv4*MP*)
15260 if test -d /usr/nec ;then
15261 version_type=linux
15262 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15263 soname_spec='$libname${shared_ext}.$major'
15264 shlibpath_var=LD_LIBRARY_PATH
15265 fi
15266 ;;
15267
15268sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15269 version_type=freebsd-elf
15270 need_lib_prefix=no
15271 need_version=no
15272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15273 soname_spec='${libname}${release}${shared_ext}$major'
15274 shlibpath_var=LD_LIBRARY_PATH
15275 hardcode_into_libs=yes
15276 if test "$with_gnu_ld" = yes; then
15277 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15278 shlibpath_overrides_runpath=no
15279 else
15280 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15281 shlibpath_overrides_runpath=yes
15282 case $host_os in
15283 sco3.2v5*)
15284 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15285 ;;
15286 esac
15287 fi
15288 sys_lib_dlsearch_path_spec='/usr/lib'
15289 ;;
15290
15291uts4*)
15292 version_type=linux
15293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15294 soname_spec='${libname}${release}${shared_ext}$major'
15295 shlibpath_var=LD_LIBRARY_PATH
15296 ;;
15297
15298*)
15299 dynamic_linker=no
15300 ;;
15301esac
15302echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15303echo "${ECHO_T}$dynamic_linker" >&6
15304test "$dynamic_linker" = no && can_build_shared=no
15305
15306variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15307if test "$GCC" = yes; then
15308 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15309fi
15310
15311echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15312echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15313hardcode_action_F77=
15314if test -n "$hardcode_libdir_flag_spec_F77" || \
15315 test -n "$runpath_var_F77" || \
15316 test "X$hardcode_automatic_F77" = "Xyes" ; then
15317
15318 # We can hardcode non-existant directories.
15319 if test "$hardcode_direct_F77" != no &&
15320 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15321 # have to relink, otherwise we might link with an installed library
15322 # when we should be linking with a yet-to-be-installed one
15323 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15324 test "$hardcode_minus_L_F77" != no; then
15325 # Linking always hardcodes the temporary library directory.
15326 hardcode_action_F77=relink
15327 else
15328 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15329 hardcode_action_F77=immediate
15330 fi
15331else
15332 # We cannot hardcode anything, or else we can only hardcode existing
15333 # directories.
15334 hardcode_action_F77=unsupported
15335fi
15336echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15337echo "${ECHO_T}$hardcode_action_F77" >&6
15338
15339if test "$hardcode_action_F77" = relink; then
15340 # Fast installation is not supported
15341 enable_fast_install=no
15342elif test "$shlibpath_overrides_runpath" = yes ||
15343 test "$enable_shared" = no; then
15344 # Fast installation is not necessary
15345 enable_fast_install=needless
15346fi
15347
15348
15349# The else clause should only fire when bootstrapping the
15350# libtool distribution, otherwise you forgot to ship ltmain.sh
15351# with your package, and you will get complaints that there are
15352# no rules to generate ltmain.sh.
15353if test -f "$ltmain"; then
15354 # See if we are running on zsh, and set the options which allow our commands through
15355 # without removal of \ escapes.
15356 if test -n "${ZSH_VERSION+set}" ; then
15357 setopt NO_GLOB_SUBST
15358 fi
15359 # Now quote all the things that may contain metacharacters while being
15360 # careful not to overquote the AC_SUBSTed values. We take copies of the
15361 # variables and quote the copies for generation of the libtool script.
15362 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15363 SED SHELL STRIP \
15364 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15365 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15366 deplibs_check_method reload_flag reload_cmds need_locks \
15367 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15368 lt_cv_sys_global_symbol_to_c_name_address \
15369 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15370 old_postinstall_cmds old_postuninstall_cmds \
15371 compiler_F77 \
15372 CC_F77 \
15373 LD_F77 \
15374 lt_prog_compiler_wl_F77 \
15375 lt_prog_compiler_pic_F77 \
15376 lt_prog_compiler_static_F77 \
15377 lt_prog_compiler_no_builtin_flag_F77 \
15378 export_dynamic_flag_spec_F77 \
15379 thread_safe_flag_spec_F77 \
15380 whole_archive_flag_spec_F77 \
15381 enable_shared_with_static_runtimes_F77 \
15382 old_archive_cmds_F77 \
15383 old_archive_from_new_cmds_F77 \
15384 predep_objects_F77 \
15385 postdep_objects_F77 \
15386 predeps_F77 \
15387 postdeps_F77 \
15388 compiler_lib_search_path_F77 \
15389 archive_cmds_F77 \
15390 archive_expsym_cmds_F77 \
15391 postinstall_cmds_F77 \
15392 postuninstall_cmds_F77 \
15393 old_archive_from_expsyms_cmds_F77 \
15394 allow_undefined_flag_F77 \
15395 no_undefined_flag_F77 \
15396 export_symbols_cmds_F77 \
15397 hardcode_libdir_flag_spec_F77 \
15398 hardcode_libdir_flag_spec_ld_F77 \
15399 hardcode_libdir_separator_F77 \
15400 hardcode_automatic_F77 \
15401 module_cmds_F77 \
15402 module_expsym_cmds_F77 \
15403 lt_cv_prog_compiler_c_o_F77 \
15404 exclude_expsyms_F77 \
15405 include_expsyms_F77; do
15406
15407 case $var in
15408 old_archive_cmds_F77 | \
15409 old_archive_from_new_cmds_F77 | \
15410 archive_cmds_F77 | \
15411 archive_expsym_cmds_F77 | \
15412 module_cmds_F77 | \
15413 module_expsym_cmds_F77 | \
15414 old_archive_from_expsyms_cmds_F77 | \
15415 export_symbols_cmds_F77 | \
15416 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15417 postinstall_cmds | postuninstall_cmds | \
15418 old_postinstall_cmds | old_postuninstall_cmds | \
15419 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15420 # Double-quote double-evaled strings.
15421 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15422 ;;
15423 *)
15424 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15425 ;;
15426 esac
15427 done
15428
15429 case $lt_echo in
15430 *'\$0 --fallback-echo"')
15431 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15432 ;;
15433 esac
15434
15435cfgfile="$ofile"
15436
15437 cat <<__EOF__ >> "$cfgfile"
15438# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15439
15440# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15441
15442# Shell to use when invoking shell scripts.
15443SHELL=$lt_SHELL
15444
15445# Whether or not to build shared libraries.
15446build_libtool_libs=$enable_shared
15447
15448# Whether or not to build static libraries.
15449build_old_libs=$enable_static
15450
15451# Whether or not to add -lc for building shared libraries.
15452build_libtool_need_lc=$archive_cmds_need_lc_F77
15453
15454# Whether or not to disallow shared libs when runtime libs are static
15455allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15456
15457# Whether or not to optimize for fast installation.
15458fast_install=$enable_fast_install
15459
15460# The host system.
15461host_alias=$host_alias
15462host=$host
15463host_os=$host_os
15464
15465# The build system.
15466build_alias=$build_alias
15467build=$build
15468build_os=$build_os
15469
15470# An echo program that does not interpret backslashes.
15471echo=$lt_echo
15472
15473# The archiver.
15474AR=$lt_AR
15475AR_FLAGS=$lt_AR_FLAGS
15476
15477# A C compiler.
15478LTCC=$lt_LTCC
15479
15480# LTCC compiler flags.
15481LTCFLAGS=$lt_LTCFLAGS
15482
15483# A language-specific compiler.
15484CC=$lt_compiler_F77
15485
15486# Is the compiler the GNU C compiler?
15487with_gcc=$GCC_F77
15488
15489gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
15490gcc_ver=\`gcc -dumpversion\`
15491
15492# An ERE matcher.
15493EGREP=$lt_EGREP
15494
15495# The linker used to build libraries.
15496LD=$lt_LD_F77
15497
15498# Whether we need hard or soft links.
15499LN_S=$lt_LN_S
15500
15501# A BSD-compatible nm program.
15502NM=$lt_NM
15503
15504# A symbol stripping program
15505STRIP=$lt_STRIP
15506
15507# Used to examine libraries when file_magic_cmd begins "file"
15508MAGIC_CMD=$MAGIC_CMD
15509
15510# Used on cygwin: DLL creation program.
15511DLLTOOL="$DLLTOOL"
15512
15513# Used on cygwin: object dumper.
15514OBJDUMP="$OBJDUMP"
15515
15516# Used on cygwin: assembler.
15517AS="$AS"
15518
15519# The name of the directory that contains temporary libtool files.
15520objdir=$objdir
15521
15522# How to create reloadable object files.
15523reload_flag=$lt_reload_flag
15524reload_cmds=$lt_reload_cmds
15525
15526# How to pass a linker flag through the compiler.
15527wl=$lt_lt_prog_compiler_wl_F77
15528
15529# Object file suffix (normally "o").
15530objext="$ac_objext"
15531
15532# Old archive suffix (normally "a").
15533libext="$libext"
15534
15535# Shared library suffix (normally ".so").
15536shrext_cmds='$shrext_cmds'
15537
15538# Executable file suffix (normally "").
15539exeext="$exeext"
15540
15541# Additional compiler flags for building library objects.
15542pic_flag=$lt_lt_prog_compiler_pic_F77
15543pic_mode=$pic_mode
15544
15545# What is the maximum length of a command?
15546max_cmd_len=$lt_cv_sys_max_cmd_len
15547
15548# Does compiler simultaneously support -c and -o options?
15549compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15550
15551# Must we lock files when doing compilation?
15552need_locks=$lt_need_locks
15553
15554# Do we need the lib prefix for modules?
15555need_lib_prefix=$need_lib_prefix
15556
15557# Do we need a version for libraries?
15558need_version=$need_version
15559
15560# Whether dlopen is supported.
15561dlopen_support=$enable_dlopen
15562
15563# Whether dlopen of programs is supported.
15564dlopen_self=$enable_dlopen_self
15565
15566# Whether dlopen of statically linked programs is supported.
15567dlopen_self_static=$enable_dlopen_self_static
15568
15569# Compiler flag to prevent dynamic linking.
15570link_static_flag=$lt_lt_prog_compiler_static_F77
15571
15572# Compiler flag to turn off builtin functions.
15573no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15574
15575# Compiler flag to allow reflexive dlopens.
15576export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15577
15578# Compiler flag to generate shared objects directly from archives.
15579whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15580
15581# Compiler flag to generate thread-safe objects.
15582thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15583
15584# Library versioning type.
15585version_type=$version_type
15586
15587# Format of library name prefix.
15588libname_spec=$lt_libname_spec
15589
15590# List of archive names. First name is the real one, the rest are links.
15591# The last name is the one that the linker finds with -lNAME.
15592library_names_spec=$lt_library_names_spec
15593
15594# The coded name of the library, if different from the real name.
15595soname_spec=$lt_soname_spec
15596
15597# Commands used to build and install an old-style archive.
15598RANLIB=$lt_RANLIB
15599old_archive_cmds=$lt_old_archive_cmds_F77
15600old_postinstall_cmds=$lt_old_postinstall_cmds
15601old_postuninstall_cmds=$lt_old_postuninstall_cmds
15602
15603# Create an old-style archive from a shared archive.
15604old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15605
15606# Create a temporary old-style archive to link instead of a shared archive.
15607old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15608
15609# Commands used to build and install a shared archive.
15610archive_cmds=$lt_archive_cmds_F77
15611archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15612postinstall_cmds=$lt_postinstall_cmds
15613postuninstall_cmds=$lt_postuninstall_cmds
15614
15615# Commands used to build a loadable module (assumed same as above if empty)
15616module_cmds=$lt_module_cmds_F77
15617module_expsym_cmds=$lt_module_expsym_cmds_F77
15618
15619# Commands to strip libraries.
15620old_striplib=$lt_old_striplib
15621striplib=$lt_striplib
15622
15623# Dependencies to place before the objects being linked to create a
15624# shared library.
15625predep_objects=\`echo $lt_predep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15626
15627# Dependencies to place after the objects being linked to create a
15628# shared library.
15629postdep_objects=\`echo $lt_postdep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15630
15631# Dependencies to place before the objects being linked to create a
15632# shared library.
15633predeps=$lt_predeps_F77
15634
15635# Dependencies to place after the objects being linked to create a
15636# shared library.
15637postdeps=$lt_postdeps_F77
15638
15639# The library search path used internally by the compiler when linking
15640# a shared library.
15641compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15642
15643# Method to check whether dependent libraries are shared objects.
15644deplibs_check_method=$lt_deplibs_check_method
15645
15646# Command to use when deplibs_check_method == file_magic.
15647file_magic_cmd=$lt_file_magic_cmd
15648
15649# Flag that allows shared libraries with undefined symbols to be built.
15650allow_undefined_flag=$lt_allow_undefined_flag_F77
15651
15652# Flag that forces no undefined symbols.
15653no_undefined_flag=$lt_no_undefined_flag_F77
15654
15655# Commands used to finish a libtool library installation in a directory.
15656finish_cmds=$lt_finish_cmds
15657
15658# Same as above, but a single script fragment to be evaled but not shown.
15659finish_eval=$lt_finish_eval
15660
15661# Take the output of nm and produce a listing of raw symbols and C names.
15662global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15663
15664# Transform the output of nm in a proper C declaration
15665global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15666
15667# Transform the output of nm in a C name address pair
15668global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15669
15670# This is the shared library runtime path variable.
15671runpath_var=$runpath_var
15672
15673# This is the shared library path variable.
15674shlibpath_var=$shlibpath_var
15675
15676# Is shlibpath searched before the hard-coded library search path?
15677shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15678
15679# How to hardcode a shared library path into an executable.
15680hardcode_action=$hardcode_action_F77
15681
15682# Whether we should hardcode library paths into libraries.
15683hardcode_into_libs=$hardcode_into_libs
15684
15685# Flag to hardcode \$libdir into a binary during linking.
15686# This must work even if \$libdir does not exist.
15687hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15688
15689# If ld is used when linking, flag to hardcode \$libdir into
15690# a binary during linking. This must work even if \$libdir does
15691# not exist.
15692hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15693
15694# Whether we need a single -rpath flag with a separated argument.
15695hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15696
15697# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15698# resulting binary.
15699hardcode_direct=$hardcode_direct_F77
15700
15701# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15702# resulting binary.
15703hardcode_minus_L=$hardcode_minus_L_F77
15704
15705# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15706# the resulting binary.
15707hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15708
15709# Set to yes if building a shared library automatically hardcodes DIR into the library
15710# and all subsequent libraries and executables linked against it.
15711hardcode_automatic=$hardcode_automatic_F77
15712
15713# Variables whose values should be saved in libtool wrapper scripts and
15714# restored at relink time.
15715variables_saved_for_relink="$variables_saved_for_relink"
15716
15717# Whether libtool must link a program against all its dependency libraries.
15718link_all_deplibs=$link_all_deplibs_F77
15719
15720# Compile-time system search path for libraries
15721sys_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"\`
15722
15723# Run-time system search path for libraries
15724sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15725
15726# Fix the shell variable \$srcfile for the compiler.
15727fix_srcfile_path="$fix_srcfile_path_F77"
15728
15729# Set to yes if exported symbols are required.
15730always_export_symbols=$always_export_symbols_F77
15731
15732# The commands to list exported symbols.
15733export_symbols_cmds=$lt_export_symbols_cmds_F77
15734
15735# The commands to extract the exported symbol list from a shared archive.
15736extract_expsyms_cmds=$lt_extract_expsyms_cmds
15737
15738# Symbols that should not be listed in the preloaded symbols.
15739exclude_expsyms=$lt_exclude_expsyms_F77
15740
15741# Symbols that must always be exported.
15742include_expsyms=$lt_include_expsyms_F77
15743
15744# ### END LIBTOOL TAG CONFIG: $tagname
15745
15746__EOF__
15747
15748
15749else
15750 # If there is no Makefile yet, we rely on a make rule to execute
15751 # `config.status --recheck' to rerun these tests and create the
15752 # libtool script then.
15753 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15754 if test -f "$ltmain_in"; then
15755 test -f Makefile && make "$ltmain"
15756 fi
15757fi
15758
15759
15760ac_ext=c
15761ac_cpp='$CPP $CPPFLAGS'
15762ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15763ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15764ac_compiler_gnu=$ac_cv_c_compiler_gnu
15765
15766CC="$lt_save_CC"
15767
15768 else
15769 tagname=""
15770 fi
15771 ;;
15772
15773 GCJ)
15774 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15775
15776
15777
15778# Source file extension for Java test sources.
15779ac_ext=java
15780
15781# Object file extension for compiled Java test sources.
15782objext=o
15783objext_GCJ=$objext
15784
15785# Code to be used in simple compile tests
15786lt_simple_compile_test_code="class foo {}\n"
15787
15788# Code to be used in simple link tests
15789lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15790
15791# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15792
15793# If no C compiler was specified, use CC.
15794LTCC=${LTCC-"$CC"}
15795
15796# If no C compiler flags were specified, use CFLAGS.
15797LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15798
15799# Allow CC to be a program name with arguments.
15800compiler=$CC
15801
15802
15803# save warnings/boilerplate of simple test code
15804ac_outfile=conftest.$ac_objext
15805printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15806eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15807_lt_compiler_boilerplate=`cat conftest.err`
15808$rm conftest*
15809
15810ac_outfile=conftest.$ac_objext
15811printf "$lt_simple_link_test_code" >conftest.$ac_ext
15812eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15813_lt_linker_boilerplate=`cat conftest.err`
15814$rm conftest*
15815
15816
15817# Allow CC to be a program name with arguments.
15818lt_save_CC="$CC"
15819CC=${GCJ-"gcj"}
15820compiler=$CC
15821compiler_GCJ=$CC
15822for cc_temp in $compiler""; do
15823 case $cc_temp in
15824 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15825 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15826 \-*) ;;
15827 *) break;;
15828 esac
15829done
15830cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15831
15832
15833# GCJ did not exist at the time GCC didn't implicitly link libc in.
15834archive_cmds_need_lc_GCJ=no
15835
15836old_archive_cmds_GCJ=$old_archive_cmds
15837
15838
15839lt_prog_compiler_no_builtin_flag_GCJ=
15840
15841if test "$GCC" = yes; then
15842 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15843
15844
15845echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15846echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15847if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15848 echo $ECHO_N "(cached) $ECHO_C" >&6
15849else
15850 lt_cv_prog_compiler_rtti_exceptions=no
15851 ac_outfile=conftest.$ac_objext
15852 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15853 lt_compiler_flag="-fno-rtti -fno-exceptions"
15854 # Insert the option either (1) after the last *FLAGS variable, or
15855 # (2) before a word containing "conftest.", or (3) at the end.
15856 # Note that $ac_compile itself does not contain backslashes and begins
15857 # with a dollar sign (not a hyphen), so the echo should work correctly.
15858 # The option is referenced via a variable to avoid confusing sed.
15859 lt_compile=`echo "$ac_compile" | $SED \
15860 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15861 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15862 -e 's:$: $lt_compiler_flag:'`
5e9b5d83 15863 (eval echo "\"\$as_me:15863: $lt_compile\"" >&5)
bf9f3bac 15864 (eval "$lt_compile" 2>conftest.err)
15865 ac_status=$?
15866 cat conftest.err >&5
5e9b5d83 15867 echo "$as_me:15867: \$? = $ac_status" >&5
bf9f3bac 15868 if (exit $ac_status) && test -s "$ac_outfile"; then
15869 # The compiler can only warn and ignore the option if not recognized
15870 # So say no if there are warnings other than the usual output.
15871 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15872 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15873 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15874 lt_cv_prog_compiler_rtti_exceptions=yes
15875 fi
15876 fi
15877 $rm conftest*
15878
15879fi
15880echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15881echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15882
15883if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15884 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15885else
15886 :
15887fi
15888
15889fi
15890
15891lt_prog_compiler_wl_GCJ=
15892lt_prog_compiler_pic_GCJ=
15893lt_prog_compiler_static_GCJ=
15894
15895echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15896echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15897
15898 if test "$GCC" = yes; then
15899 lt_prog_compiler_wl_GCJ='-Wl,'
15900 lt_prog_compiler_static_GCJ='-static'
15901
15902 case $host_os in
15903 aix*)
15904 # All AIX code is PIC.
15905 if test "$host_cpu" = ia64; then
15906 # AIX 5 now supports IA64 processor
15907 lt_prog_compiler_static_GCJ='-Bstatic'
15908 fi
15909 ;;
15910
15911 amigaos*)
15912 # FIXME: we need at least 68020 code to build shared libraries, but
15913 # adding the `-m68020' flag to GCC prevents building anything better,
15914 # like `-m68040'.
15915 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15916 ;;
15917
15918 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15919 # PIC is the default for these OSes.
15920 ;;
15921
15922 mingw* | pw32* | os2*)
15923 # This hack is so that the source file can tell whether it is being
15924 # built for inclusion in a dll (and should export symbols for example).
15925 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15926 ;;
15927
15928 darwin* | rhapsody*)
15929 # PIC is the default on this platform
15930 # Common symbols not allowed in MH_DYLIB files
15931 lt_prog_compiler_pic_GCJ='-fno-common'
15932 ;;
15933
15934 interix3*)
15935 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15936 # Instead, we relocate shared libraries at runtime.
15937 ;;
15938
15939 msdosdjgpp*)
15940 # Just because we use GCC doesn't mean we suddenly get shared libraries
15941 # on systems that don't support them.
15942 lt_prog_compiler_can_build_shared_GCJ=no
15943 enable_shared=no
15944 ;;
15945
15946 sysv4*MP*)
15947 if test -d /usr/nec; then
15948 lt_prog_compiler_pic_GCJ=-Kconform_pic
15949 fi
15950 ;;
15951
15952 hpux*)
15953 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15954 # not for PA HP-UX.
15955 case $host_cpu in
15956 hppa*64*|ia64*)
15957 # +Z the default
15958 ;;
15959 *)
15960 lt_prog_compiler_pic_GCJ='-fPIC'
15961 ;;
15962 esac
15963 ;;
15964
15965 *)
15966 lt_prog_compiler_pic_GCJ='-fPIC'
15967 ;;
15968 esac
15969 else
15970 # PORTME Check for flag to pass linker flags through the system compiler.
15971 case $host_os in
15972 aix*)
15973 lt_prog_compiler_wl_GCJ='-Wl,'
15974 if test "$host_cpu" = ia64; then
15975 # AIX 5 now supports IA64 processor
15976 lt_prog_compiler_static_GCJ='-Bstatic'
15977 else
15978 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15979 fi
15980 ;;
15981 darwin*)
15982 # PIC is the default on this platform
15983 # Common symbols not allowed in MH_DYLIB files
15984 case $cc_basename in
15985 xlc*)
15986 lt_prog_compiler_pic_GCJ='-qnocommon'
15987 lt_prog_compiler_wl_GCJ='-Wl,'
15988 ;;
15989 esac
15990 ;;
15991
15992 mingw* | pw32* | os2*)
15993 # This hack is so that the source file can tell whether it is being
15994 # built for inclusion in a dll (and should export symbols for example).
15995 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15996 ;;
15997
15998 hpux9* | hpux10* | hpux11*)
15999 lt_prog_compiler_wl_GCJ='-Wl,'
16000 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16001 # not for PA HP-UX.
16002 case $host_cpu in
16003 hppa*64*|ia64*)
16004 # +Z the default
16005 ;;
16006 *)
16007 lt_prog_compiler_pic_GCJ='+Z'
16008 ;;
16009 esac
16010 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16011 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16012 ;;
16013
16014 irix5* | irix6* | nonstopux*)
16015 lt_prog_compiler_wl_GCJ='-Wl,'
16016 # PIC (with -KPIC) is the default.
16017 lt_prog_compiler_static_GCJ='-non_shared'
16018 ;;
16019
16020 newsos6)
16021 lt_prog_compiler_pic_GCJ='-KPIC'
16022 lt_prog_compiler_static_GCJ='-Bstatic'
16023 ;;
16024
16025 linux*)
16026 case $cc_basename in
16027 icc* | ecc*)
16028 lt_prog_compiler_wl_GCJ='-Wl,'
16029 lt_prog_compiler_pic_GCJ='-KPIC'
16030 lt_prog_compiler_static_GCJ='-static'
16031 ;;
16032 pgcc* | pgf77* | pgf90* | pgf95*)
16033 # Portland Group compilers (*not* the Pentium gcc compiler,
16034 # which looks to be a dead project)
16035 lt_prog_compiler_wl_GCJ='-Wl,'
16036 lt_prog_compiler_pic_GCJ='-fpic'
16037 lt_prog_compiler_static_GCJ='-Bstatic'
16038 ;;
16039 ccc*)
16040 lt_prog_compiler_wl_GCJ='-Wl,'
16041 # All Alpha code is PIC.
16042 lt_prog_compiler_static_GCJ='-non_shared'
16043 ;;
16044 esac
16045 ;;
16046
16047 osf3* | osf4* | osf5*)
16048 lt_prog_compiler_wl_GCJ='-Wl,'
16049 # All OSF/1 code is PIC.
16050 lt_prog_compiler_static_GCJ='-non_shared'
16051 ;;
16052
16053 solaris*)
16054 lt_prog_compiler_pic_GCJ='-KPIC'
16055 lt_prog_compiler_static_GCJ='-Bstatic'
16056 case $cc_basename in
16057 f77* | f90* | f95*)
16058 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16059 *)
16060 lt_prog_compiler_wl_GCJ='-Wl,';;
16061 esac
16062 ;;
16063
16064 sunos4*)
16065 lt_prog_compiler_wl_GCJ='-Qoption ld '
16066 lt_prog_compiler_pic_GCJ='-PIC'
16067 lt_prog_compiler_static_GCJ='-Bstatic'
16068 ;;
16069
16070 sysv4 | sysv4.2uw2* | sysv4.3*)
16071 lt_prog_compiler_wl_GCJ='-Wl,'
16072 lt_prog_compiler_pic_GCJ='-KPIC'
16073 lt_prog_compiler_static_GCJ='-Bstatic'
16074 ;;
16075
16076 sysv4*MP*)
16077 if test -d /usr/nec ;then
16078 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16079 lt_prog_compiler_static_GCJ='-Bstatic'
16080 fi
16081 ;;
16082
16083 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16084 lt_prog_compiler_wl_GCJ='-Wl,'
16085 lt_prog_compiler_pic_GCJ='-KPIC'
16086 lt_prog_compiler_static_GCJ='-Bstatic'
16087 ;;
16088
16089 unicos*)
16090 lt_prog_compiler_wl_GCJ='-Wl,'
16091 lt_prog_compiler_can_build_shared_GCJ=no
16092 ;;
16093
16094 uts4*)
16095 lt_prog_compiler_pic_GCJ='-pic'
16096 lt_prog_compiler_static_GCJ='-Bstatic'
16097 ;;
16098
16099 *)
16100 lt_prog_compiler_can_build_shared_GCJ=no
16101 ;;
16102 esac
16103 fi
16104
16105echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16106echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16107
16108#
16109# Check to make sure the PIC flag actually works.
16110#
16111if test -n "$lt_prog_compiler_pic_GCJ"; then
16112
16113echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16114echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16115if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16116 echo $ECHO_N "(cached) $ECHO_C" >&6
16117else
16118 lt_prog_compiler_pic_works_GCJ=no
16119 ac_outfile=conftest.$ac_objext
16120 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16121 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16122 # Insert the option either (1) after the last *FLAGS variable, or
16123 # (2) before a word containing "conftest.", or (3) at the end.
16124 # Note that $ac_compile itself does not contain backslashes and begins
16125 # with a dollar sign (not a hyphen), so the echo should work correctly.
16126 # The option is referenced via a variable to avoid confusing sed.
16127 lt_compile=`echo "$ac_compile" | $SED \
16128 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16129 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16130 -e 's:$: $lt_compiler_flag:'`
5e9b5d83 16131 (eval echo "\"\$as_me:16131: $lt_compile\"" >&5)
bf9f3bac 16132 (eval "$lt_compile" 2>conftest.err)
16133 ac_status=$?
16134 cat conftest.err >&5
5e9b5d83 16135 echo "$as_me:16135: \$? = $ac_status" >&5
bf9f3bac 16136 if (exit $ac_status) && test -s "$ac_outfile"; then
16137 # The compiler can only warn and ignore the option if not recognized
16138 # So say no if there are warnings other than the usual output.
16139 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16140 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16141 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16142 lt_prog_compiler_pic_works_GCJ=yes
16143 fi
16144 fi
16145 $rm conftest*
16146
16147fi
16148echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16149echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16150
16151if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16152 case $lt_prog_compiler_pic_GCJ in
16153 "" | " "*) ;;
16154 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16155 esac
16156else
16157 lt_prog_compiler_pic_GCJ=
16158 lt_prog_compiler_can_build_shared_GCJ=no
16159fi
16160
16161fi
16162case $host_os in
16163 # For platforms which do not support PIC, -DPIC is meaningless:
16164 *djgpp*)
16165 lt_prog_compiler_pic_GCJ=
16166 ;;
16167 *)
16168 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16169 ;;
16170esac
16171
16172#
16173# Check to make sure the static flag actually works.
16174#
16175wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16176echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16177echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16178if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16179 echo $ECHO_N "(cached) $ECHO_C" >&6
16180else
16181 lt_prog_compiler_static_works_GCJ=no
16182 save_LDFLAGS="$LDFLAGS"
16183 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16184 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16185 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16186 # The linker can only warn and ignore the option if not recognized
16187 # So say no if there are warnings
16188 if test -s conftest.err; then
16189 # Append any errors to the config.log.
16190 cat conftest.err 1>&5
16191 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16192 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16193 if diff conftest.exp conftest.er2 >/dev/null; then
16194 lt_prog_compiler_static_works_GCJ=yes
16195 fi
16196 else
16197 lt_prog_compiler_static_works_GCJ=yes
16198 fi
16199 fi
16200 $rm conftest*
16201 LDFLAGS="$save_LDFLAGS"
16202
16203fi
16204echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16205echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
16206
16207if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16208 :
16209else
16210 lt_prog_compiler_static_GCJ=
16211fi
16212
16213
16214echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16215echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16216if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16217 echo $ECHO_N "(cached) $ECHO_C" >&6
16218else
16219 lt_cv_prog_compiler_c_o_GCJ=no
16220 $rm -r conftest 2>/dev/null
16221 mkdir conftest
16222 cd conftest
16223 mkdir out
16224 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16225
16226 lt_compiler_flag="-o out/conftest2.$ac_objext"
16227 # Insert the option either (1) after the last *FLAGS variable, or
16228 # (2) before a word containing "conftest.", or (3) at the end.
16229 # Note that $ac_compile itself does not contain backslashes and begins
16230 # with a dollar sign (not a hyphen), so the echo should work correctly.
16231 lt_compile=`echo "$ac_compile" | $SED \
16232 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16233 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16234 -e 's:$: $lt_compiler_flag:'`
5e9b5d83 16235 (eval echo "\"\$as_me:16235: $lt_compile\"" >&5)
bf9f3bac 16236 (eval "$lt_compile" 2>out/conftest.err)
16237 ac_status=$?
16238 cat out/conftest.err >&5
5e9b5d83 16239 echo "$as_me:16239: \$? = $ac_status" >&5
bf9f3bac 16240 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16241 then
16242 # The compiler can only warn and ignore the option if not recognized
16243 # So say no if there are warnings
16244 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16245 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16246 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16247 lt_cv_prog_compiler_c_o_GCJ=yes
16248 fi
16249 fi
16250 chmod u+w . 2>&5
16251 $rm conftest*
16252 # SGI C++ compiler will create directory out/ii_files/ for
16253 # template instantiation
16254 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16255 $rm out/* && rmdir out
16256 cd ..
16257 rmdir conftest
16258 $rm conftest*
16259
16260fi
16261echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16262echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16263
16264
16265hard_links="nottested"
16266if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16267 # do not overwrite the value of need_locks provided by the user
16268 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16269echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16270 hard_links=yes
16271 $rm conftest*
16272 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16273 touch conftest.a
16274 ln conftest.a conftest.b 2>&5 || hard_links=no
16275 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16276 echo "$as_me:$LINENO: result: $hard_links" >&5
16277echo "${ECHO_T}$hard_links" >&6
16278 if test "$hard_links" = no; then
16279 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16280echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16281 need_locks=warn
16282 fi
16283else
16284 need_locks=no
16285fi
16286
16287echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16288echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16289
16290 runpath_var=
16291 allow_undefined_flag_GCJ=
16292 enable_shared_with_static_runtimes_GCJ=no
16293 archive_cmds_GCJ=
16294 archive_expsym_cmds_GCJ=
16295 old_archive_From_new_cmds_GCJ=
16296 old_archive_from_expsyms_cmds_GCJ=
16297 export_dynamic_flag_spec_GCJ=
16298 whole_archive_flag_spec_GCJ=
16299 thread_safe_flag_spec_GCJ=
16300 hardcode_libdir_flag_spec_GCJ=
16301 hardcode_libdir_flag_spec_ld_GCJ=
16302 hardcode_libdir_separator_GCJ=
16303 hardcode_direct_GCJ=no
16304 hardcode_minus_L_GCJ=no
16305 hardcode_shlibpath_var_GCJ=unsupported
16306 link_all_deplibs_GCJ=unknown
16307 hardcode_automatic_GCJ=no
16308 module_cmds_GCJ=
16309 module_expsym_cmds_GCJ=
16310 always_export_symbols_GCJ=no
16311 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16312 # include_expsyms should be a list of space-separated symbols to be *always*
16313 # included in the symbol list
16314 include_expsyms_GCJ=
16315 # exclude_expsyms can be an extended regexp of symbols to exclude
16316 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16317 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16318 # as well as any symbol that contains `d'.
16319 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16320 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16321 # platforms (ab)use it in PIC code, but their linkers get confused if
16322 # the symbol is explicitly referenced. Since portable code cannot
16323 # rely on this symbol name, it's probably fine to never include it in
16324 # preloaded symbol tables.
16325 extract_expsyms_cmds=
16326 # Just being paranoid about ensuring that cc_basename is set.
16327 for cc_temp in $compiler""; do
16328 case $cc_temp in
16329 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16330 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16331 \-*) ;;
16332 *) break;;
16333 esac
16334done
16335cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16336
16337 case $host_os in
16338 cygwin* | mingw* | pw32*)
16339 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16340 # When not using gcc, we currently assume that we are using
16341 # Microsoft Visual C++.
16342 if test "$GCC" != yes; then
16343 with_gnu_ld=no
16344 fi
16345 ;;
16346 interix*)
16347 # we just hope/assume this is gcc and not c89 (= MSVC++)
16348 with_gnu_ld=yes
16349 ;;
16350 openbsd*)
16351 with_gnu_ld=no
16352 ;;
16353 esac
16354
16355 ld_shlibs_GCJ=yes
16356 if test "$with_gnu_ld" = yes; then
16357 # If archive_cmds runs LD, not CC, wlarc should be empty
16358 wlarc='${wl}'
16359
16360 # Set some defaults for GNU ld with shared library support. These
16361 # are reset later if shared libraries are not supported. Putting them
16362 # here allows them to be overridden if necessary.
16363 runpath_var=LD_RUN_PATH
16364 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16365 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16366 # ancient GNU ld didn't support --whole-archive et. al.
16367 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16368 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16369 else
16370 whole_archive_flag_spec_GCJ=
16371 fi
16372 supports_anon_versioning=no
16373 case `$LD -v 2>/dev/null` in
16374 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16375 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16376 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16377 *\ 2.11.*) ;; # other 2.11 versions
16378 *) supports_anon_versioning=yes ;;
16379 esac
16380
16381 # See if GNU ld supports shared libraries.
16382 case $host_os in
16383 aix3* | aix4* | aix5*)
16384 # On AIX/PPC, the GNU linker is very broken
16385 if test "$host_cpu" != ia64; then
16386 ld_shlibs_GCJ=no
16387 cat <<EOF 1>&2
16388
16389*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16390*** to be unable to reliably create shared libraries on AIX.
16391*** Therefore, libtool is disabling shared libraries support. If you
16392*** really care for shared libraries, you may want to modify your PATH
16393*** so that a non-GNU linker is found, and then restart.
16394
16395EOF
16396 fi
16397 ;;
16398
16399 amigaos*)
16400 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)'
16401 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16402 hardcode_minus_L_GCJ=yes
16403
16404 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16405 # that the semantics of dynamic libraries on AmigaOS, at least up
16406 # to version 4, is to share data among multiple programs linked
16407 # with the same dynamic library. Since this doesn't match the
16408 # behavior of shared libraries on other platforms, we can't use
16409 # them.
16410 ld_shlibs_GCJ=no
16411 ;;
16412
16413 beos*)
16414 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16415 allow_undefined_flag_GCJ=unsupported
16416 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16417 # support --undefined. This deserves some investigation. FIXME
16418 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16419 else
16420 ld_shlibs_GCJ=no
16421 fi
16422 ;;
16423
16424 cygwin* | mingw* | pw32*)
16425 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16426 # as there is no search path for DLLs.
16427 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16428 allow_undefined_flag_GCJ=unsupported
16429 always_export_symbols_GCJ=no
16430 enable_shared_with_static_runtimes_GCJ=yes
16431 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16432
16433 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16434 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16435 # If the export-symbols file already is a .def file (1st line
16436 # is EXPORTS), use it as is; otherwise, prepend...
16437 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16438 cp $export_symbols $output_objdir/$soname.def;
16439 else
16440 echo EXPORTS > $output_objdir/$soname.def;
16441 cat $export_symbols >> $output_objdir/$soname.def;
16442 fi~
16443 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16444 else
16445 ld_shlibs_GCJ=no
16446 fi
16447 ;;
16448
16449 interix3*)
16450 hardcode_direct_GCJ=no
16451 hardcode_shlibpath_var_GCJ=no
16452 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16453 export_dynamic_flag_spec_GCJ='${wl}-E'
16454 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16455 # Instead, shared libraries are loaded at an image base (0x10000000 by
16456 # default) and relocated if they conflict, which is a slow very memory
16457 # consuming and fragmenting process. To avoid this, we pick a random,
16458 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16459 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16460 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'
16461 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'
16462 ;;
16463
16464 linux*)
16465 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16466 tmp_addflag=
16467 case $cc_basename,$host_cpu in
16468 pgcc*) # Portland Group C compiler
16469 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'
16470 tmp_addflag=' $pic_flag'
16471 ;;
16472 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16473 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'
16474 tmp_addflag=' $pic_flag -Mnomain' ;;
16475 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16476 tmp_addflag=' -i_dynamic' ;;
16477 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16478 tmp_addflag=' -i_dynamic -nofor_main' ;;
16479 ifc* | ifort*) # Intel Fortran compiler
16480 tmp_addflag=' -nofor_main' ;;
16481 esac
16482 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16483
16484 if test $supports_anon_versioning = yes; then
16485 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16486 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16487 $echo "local: *; };" >> $output_objdir/$libname.ver~
16488 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16489 fi
16490 else
16491 ld_shlibs_GCJ=no
16492 fi
16493 ;;
16494
16495 netbsd*)
16496 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16497 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16498 wlarc=
16499 else
16500 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16501 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16502 fi
16503 ;;
16504
16505 solaris*)
16506 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16507 ld_shlibs_GCJ=no
16508 cat <<EOF 1>&2
16509
16510*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16511*** create shared libraries on Solaris systems. Therefore, libtool
16512*** is disabling shared libraries support. We urge you to upgrade GNU
16513*** binutils to release 2.9.1 or newer. Another option is to modify
16514*** your PATH or compiler configuration so that the native linker is
16515*** used, and then restart.
16516
16517EOF
16518 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16519 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16520 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16521 else
16522 ld_shlibs_GCJ=no
16523 fi
16524 ;;
16525
16526 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16527 case `$LD -v 2>&1` in
16528 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16529 ld_shlibs_GCJ=no
16530 cat <<_LT_EOF 1>&2
16531
16532*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16533*** reliably create shared libraries on SCO systems. Therefore, libtool
16534*** is disabling shared libraries support. We urge you to upgrade GNU
16535*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16536*** your PATH or compiler configuration so that the native linker is
16537*** used, and then restart.
16538
16539_LT_EOF
16540 ;;
16541 *)
16542 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16543 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16544 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16545 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16546 else
16547 ld_shlibs_GCJ=no
16548 fi
16549 ;;
16550 esac
16551 ;;
16552
16553 sunos4*)
16554 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16555 wlarc=
16556 hardcode_direct_GCJ=yes
16557 hardcode_shlibpath_var_GCJ=no
16558 ;;
16559
16560 *)
16561 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16562 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16563 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16564 else
16565 ld_shlibs_GCJ=no
16566 fi
16567 ;;
16568 esac
16569
16570 if test "$ld_shlibs_GCJ" = no; then
16571 runpath_var=
16572 hardcode_libdir_flag_spec_GCJ=
16573 export_dynamic_flag_spec_GCJ=
16574 whole_archive_flag_spec_GCJ=
16575 fi
16576 else
16577 # PORTME fill in a description of your system's linker (not GNU ld)
16578 case $host_os in
16579 aix3*)
16580 allow_undefined_flag_GCJ=unsupported
16581 always_export_symbols_GCJ=yes
16582 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'
16583 # Note: this linker hardcodes the directories in LIBPATH if there
16584 # are no directories specified by -L.
16585 hardcode_minus_L_GCJ=yes
16586 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16587 # Neither direct hardcoding nor static linking is supported with a
16588 # broken collect2.
16589 hardcode_direct_GCJ=unsupported
16590 fi
16591 ;;
16592
16593 aix4* | aix5*)
16594 if test "$host_cpu" = ia64; then
16595 # On IA64, the linker does run time linking by default, so we don't
16596 # have to do anything special.
16597 aix_use_runtimelinking=no
16598 exp_sym_flag='-Bexport'
16599 no_entry_flag=""
16600 else
16601 # If we're using GNU nm, then we don't want the "-C" option.
16602 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16603 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16604 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'
16605 else
16606 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'
16607 fi
16608 aix_use_runtimelinking=no
16609
16610 # Test if we are trying to use run time linking or normal
16611 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16612 # need to do runtime linking.
16613 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16614 for ld_flag in $LDFLAGS; do
16615 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16616 aix_use_runtimelinking=yes
16617 break
16618 fi
16619 done
16620 ;;
16621 esac
16622
16623 exp_sym_flag='-bexport'
16624 no_entry_flag='-bnoentry'
16625 fi
16626
16627 # When large executables or shared objects are built, AIX ld can
16628 # have problems creating the table of contents. If linking a library
16629 # or program results in "error TOC overflow" add -mminimal-toc to
16630 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16631 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16632
16633 archive_cmds_GCJ=''
16634 hardcode_direct_GCJ=yes
16635 hardcode_libdir_separator_GCJ=':'
16636 link_all_deplibs_GCJ=yes
16637
16638 if test "$GCC" = yes; then
16639 case $host_os in aix4.[012]|aix4.[012].*)
16640 # We only want to do this on AIX 4.2 and lower, the check
16641 # below for broken collect2 doesn't work under 4.3+
16642 collect2name=`${CC} -print-prog-name=collect2`
16643 if test -f "$collect2name" && \
16644 strings "$collect2name" | grep resolve_lib_name >/dev/null
16645 then
16646 # We have reworked collect2
16647 hardcode_direct_GCJ=yes
16648 else
16649 # We have old collect2
16650 hardcode_direct_GCJ=unsupported
16651 # It fails to find uninstalled libraries when the uninstalled
16652 # path is not listed in the libpath. Setting hardcode_minus_L
16653 # to unsupported forces relinking
16654 hardcode_minus_L_GCJ=yes
16655 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16656 hardcode_libdir_separator_GCJ=
16657 fi
16658 ;;
16659 esac
16660 shared_flag='-shared'
16661 if test "$aix_use_runtimelinking" = yes; then
16662 shared_flag="$shared_flag "'${wl}-G'
16663 fi
16664 else
16665 # not using gcc
16666 if test "$host_cpu" = ia64; then
16667 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16668 # chokes on -Wl,-G. The following line is correct:
16669 shared_flag='-G'
16670 else
16671 if test "$aix_use_runtimelinking" = yes; then
16672 shared_flag='${wl}-G'
16673 else
16674 shared_flag='${wl}-bM:SRE'
16675 fi
16676 fi
16677 fi
16678
16679 # It seems that -bexpall does not export symbols beginning with
16680 # underscore (_), so it is better to generate a list of symbols to export.
16681 always_export_symbols_GCJ=yes
16682 if test "$aix_use_runtimelinking" = yes; then
16683 # Warning - without using the other runtime loading flags (-brtl),
16684 # -berok will link without error, but may produce a broken library.
16685 allow_undefined_flag_GCJ='-berok'
16686 # Determine the default libpath from the value encoded in an empty executable.
16687 cat >conftest.$ac_ext <<_ACEOF
16688/* confdefs.h. */
16689_ACEOF
16690cat confdefs.h >>conftest.$ac_ext
16691cat >>conftest.$ac_ext <<_ACEOF
16692/* end confdefs.h. */
16693
16694int
16695main ()
16696{
16697
16698 ;
16699 return 0;
16700}
16701_ACEOF
16702rm -f conftest.$ac_objext conftest$ac_exeext
16703if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16704 (eval $ac_link) 2>conftest.er1
16705 ac_status=$?
16706 grep -v '^ *+' conftest.er1 >conftest.err
16707 rm -f conftest.er1
16708 cat conftest.err >&5
16709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16710 (exit $ac_status); } &&
16711 { ac_try='test -z "$ac_c_werror_flag"
16712 || test ! -s conftest.err'
16713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16714 (eval $ac_try) 2>&5
16715 ac_status=$?
16716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16717 (exit $ac_status); }; } &&
16718 { ac_try='test -s conftest$ac_exeext'
16719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16720 (eval $ac_try) 2>&5
16721 ac_status=$?
16722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723 (exit $ac_status); }; }; then
16724
16725aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16726}'`
16727# Check for a 64-bit object if we didn't find anything.
16728if 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; }
16729}'`; fi
16730else
16731 echo "$as_me: failed program was:" >&5
16732sed 's/^/| /' conftest.$ac_ext >&5
16733
16734fi
16735rm -f conftest.err conftest.$ac_objext \
16736 conftest$ac_exeext conftest.$ac_ext
16737if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16738
16739 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16740 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"
16741 else
16742 if test "$host_cpu" = ia64; then
16743 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16744 allow_undefined_flag_GCJ="-z nodefs"
16745 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"
16746 else
16747 # Determine the default libpath from the value encoded in an empty executable.
16748 cat >conftest.$ac_ext <<_ACEOF
16749/* confdefs.h. */
16750_ACEOF
16751cat confdefs.h >>conftest.$ac_ext
16752cat >>conftest.$ac_ext <<_ACEOF
16753/* end confdefs.h. */
16754
16755int
16756main ()
16757{
16758
16759 ;
16760 return 0;
16761}
16762_ACEOF
16763rm -f conftest.$ac_objext conftest$ac_exeext
16764if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16765 (eval $ac_link) 2>conftest.er1
16766 ac_status=$?
16767 grep -v '^ *+' conftest.er1 >conftest.err
16768 rm -f conftest.er1
16769 cat conftest.err >&5
16770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16771 (exit $ac_status); } &&
16772 { ac_try='test -z "$ac_c_werror_flag"
16773 || test ! -s conftest.err'
16774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16775 (eval $ac_try) 2>&5
16776 ac_status=$?
16777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16778 (exit $ac_status); }; } &&
16779 { ac_try='test -s conftest$ac_exeext'
16780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16781 (eval $ac_try) 2>&5
16782 ac_status=$?
16783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16784 (exit $ac_status); }; }; then
16785
16786aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16787}'`
16788# Check for a 64-bit object if we didn't find anything.
16789if 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; }
16790}'`; fi
16791else
16792 echo "$as_me: failed program was:" >&5
16793sed 's/^/| /' conftest.$ac_ext >&5
16794
16795fi
16796rm -f conftest.err conftest.$ac_objext \
16797 conftest$ac_exeext conftest.$ac_ext
16798if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16799
16800 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16801 # Warning - without using the other run time loading flags,
16802 # -berok will link without error, but may produce a broken library.
16803 no_undefined_flag_GCJ=' ${wl}-bernotok'
16804 allow_undefined_flag_GCJ=' ${wl}-berok'
16805 # Exported symbols can be pulled into shared objects from archives
16806 whole_archive_flag_spec_GCJ='$convenience'
16807 archive_cmds_need_lc_GCJ=yes
16808 # This is similar to how AIX traditionally builds its shared libraries.
16809 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'
16810 fi
16811 fi
16812 ;;
16813
16814 amigaos*)
16815 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)'
16816 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16817 hardcode_minus_L_GCJ=yes
16818 # see comment about different semantics on the GNU ld section
16819 ld_shlibs_GCJ=no
16820 ;;
16821
16822 bsdi[45]*)
16823 export_dynamic_flag_spec_GCJ=-rdynamic
16824 ;;
16825
16826 cygwin* | mingw* | pw32*)
16827 # When not using gcc, we currently assume that we are using
16828 # Microsoft Visual C++.
16829 # hardcode_libdir_flag_spec is actually meaningless, as there is
16830 # no search path for DLLs.
16831 hardcode_libdir_flag_spec_GCJ=' '
16832 allow_undefined_flag_GCJ=unsupported
16833 # Tell ltmain to make .lib files, not .a files.
16834 libext=lib
16835 # Tell ltmain to make .dll files, not .so files.
16836 shrext_cmds=".dll"
16837 # FIXME: Setting linknames here is a bad hack.
16838 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16839 # The linker will automatically build a .lib file if we build a DLL.
16840 old_archive_From_new_cmds_GCJ='true'
16841 # FIXME: Should let the user specify the lib program.
16842 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16843 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16844 enable_shared_with_static_runtimes_GCJ=yes
16845 ;;
16846
16847 darwin* | rhapsody*)
16848 case $host_os in
16849 rhapsody* | darwin1.[012])
16850 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16851 ;;
16852 *) # Darwin 1.3 on
16853 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16854 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16855 else
16856 case ${MACOSX_DEPLOYMENT_TARGET} in
16857 10.[012])
16858 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16859 ;;
16860 10.*)
16861 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16862 ;;
16863 esac
16864 fi
16865 ;;
16866 esac
16867 archive_cmds_need_lc_GCJ=no
16868 hardcode_direct_GCJ=no
16869 hardcode_automatic_GCJ=yes
16870 hardcode_shlibpath_var_GCJ=unsupported
16871 whole_archive_flag_spec_GCJ=''
16872 link_all_deplibs_GCJ=yes
16873 if test "$GCC" = yes ; then
16874 output_verbose_link_cmd='echo'
16875 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16876 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16877 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16878 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}'
16879 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}'
16880 else
16881 case $cc_basename in
16882 xlc*)
16883 output_verbose_link_cmd='echo'
16884 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16885 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16886 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16887 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}'
16888 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}'
16889 ;;
16890 *)
16891 ld_shlibs_GCJ=no
16892 ;;
16893 esac
16894 fi
16895 ;;
16896
16897 dgux*)
16898 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16899 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16900 hardcode_shlibpath_var_GCJ=no
16901 ;;
16902
16903 freebsd1*)
16904 ld_shlibs_GCJ=no
16905 ;;
16906
16907 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16908 # support. Future versions do this automatically, but an explicit c++rt0.o
16909 # does not break anything, and helps significantly (at the cost of a little
16910 # extra space).
16911 freebsd2.2*)
16912 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16913 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16914 hardcode_direct_GCJ=yes
16915 hardcode_shlibpath_var_GCJ=no
16916 ;;
16917
16918 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16919 freebsd2*)
16920 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16921 hardcode_direct_GCJ=yes
16922 hardcode_minus_L_GCJ=yes
16923 hardcode_shlibpath_var_GCJ=no
16924 ;;
16925
16926 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16927 freebsd* | kfreebsd*-gnu | dragonfly*)
16928 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16929 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16930 hardcode_direct_GCJ=yes
16931 hardcode_shlibpath_var_GCJ=no
16932 ;;
16933
16934 hpux9*)
16935 if test "$GCC" = yes; then
16936 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'
16937 else
16938 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'
16939 fi
16940 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16941 hardcode_libdir_separator_GCJ=:
16942 hardcode_direct_GCJ=yes
16943
16944 # hardcode_minus_L: Not really in the search PATH,
16945 # but as the default location of the library.
16946 hardcode_minus_L_GCJ=yes
16947 export_dynamic_flag_spec_GCJ='${wl}-E'
16948 ;;
16949
16950 hpux10*)
16951 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16952 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16953 else
16954 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16955 fi
16956 if test "$with_gnu_ld" = no; then
16957 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16958 hardcode_libdir_separator_GCJ=:
16959
16960 hardcode_direct_GCJ=yes
16961 export_dynamic_flag_spec_GCJ='${wl}-E'
16962
16963 # hardcode_minus_L: Not really in the search PATH,
16964 # but as the default location of the library.
16965 hardcode_minus_L_GCJ=yes
16966 fi
16967 ;;
16968
16969 hpux11*)
16970 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16971 case $host_cpu in
16972 hppa*64*)
16973 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16974 ;;
16975 ia64*)
16976 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16977 ;;
16978 *)
16979 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16980 ;;
16981 esac
16982 else
16983 case $host_cpu in
16984 hppa*64*)
16985 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16986 ;;
16987 ia64*)
16988 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16989 ;;
16990 *)
16991 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16992 ;;
16993 esac
16994 fi
16995 if test "$with_gnu_ld" = no; then
16996 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16997 hardcode_libdir_separator_GCJ=:
16998
16999 case $host_cpu in
17000 hppa*64*|ia64*)
17001 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17002 hardcode_direct_GCJ=no
17003 hardcode_shlibpath_var_GCJ=no
17004 ;;
17005 *)
17006 hardcode_direct_GCJ=yes
17007 export_dynamic_flag_spec_GCJ='${wl}-E'
17008
17009 # hardcode_minus_L: Not really in the search PATH,
17010 # but as the default location of the library.
17011 hardcode_minus_L_GCJ=yes
17012 ;;
17013 esac
17014 fi
17015 ;;
17016
17017 irix5* | irix6* | nonstopux*)
17018 if test "$GCC" = yes; then
17019 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'
17020 else
17021 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'
17022 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17023 fi
17024 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17025 hardcode_libdir_separator_GCJ=:
17026 link_all_deplibs_GCJ=yes
17027 ;;
17028
17029 netbsd*)
17030 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17031 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17032 else
17033 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17034 fi
17035 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17036 hardcode_direct_GCJ=yes
17037 hardcode_shlibpath_var_GCJ=no
17038 ;;
17039
17040 newsos6)
17041 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17042 hardcode_direct_GCJ=yes
17043 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17044 hardcode_libdir_separator_GCJ=:
17045 hardcode_shlibpath_var_GCJ=no
17046 ;;
17047
17048 openbsd*)
17049 hardcode_direct_GCJ=yes
17050 hardcode_shlibpath_var_GCJ=no
17051 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17052 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17053 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17054 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17055 export_dynamic_flag_spec_GCJ='${wl}-E'
17056 else
17057 case $host_os in
17058 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17059 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17060 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17061 ;;
17062 *)
17063 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17064 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17065 ;;
17066 esac
17067 fi
17068 ;;
17069
17070 os2*)
17071 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17072 hardcode_minus_L_GCJ=yes
17073 allow_undefined_flag_GCJ=unsupported
17074 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'
17075 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17076 ;;
17077
17078 osf3*)
17079 if test "$GCC" = yes; then
17080 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17081 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'
17082 else
17083 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17084 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'
17085 fi
17086 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17087 hardcode_libdir_separator_GCJ=:
17088 ;;
17089
17090 osf4* | osf5*) # as osf3* with the addition of -msym flag
17091 if test "$GCC" = yes; then
17092 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17093 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'
17094 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17095 else
17096 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17097 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'
17098 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~
17099 $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'
17100
17101 # Both c and cxx compiler support -rpath directly
17102 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17103 fi
17104 hardcode_libdir_separator_GCJ=:
17105 ;;
17106
17107 solaris*)
17108 no_undefined_flag_GCJ=' -z text'
17109 if test "$GCC" = yes; then
17110 wlarc='${wl}'
17111 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17112 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17113 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17114 else
17115 wlarc=''
17116 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17117 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17118 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17119 fi
17120 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17121 hardcode_shlibpath_var_GCJ=no
17122 case $host_os in
17123 solaris2.[0-5] | solaris2.[0-5].*) ;;
17124 *)
17125 # The compiler driver will combine linker options so we
17126 # cannot just pass the convience library names through
17127 # without $wl, iff we do not link with $LD.
17128 # Luckily, gcc supports the same syntax we need for Sun Studio.
17129 # Supported since Solaris 2.6 (maybe 2.5.1?)
17130 case $wlarc in
17131 '')
17132 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17133 *)
17134 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' ;;
17135 esac ;;
17136 esac
17137 link_all_deplibs_GCJ=yes
17138 ;;
17139
17140 sunos4*)
17141 if test "x$host_vendor" = xsequent; then
17142 # Use $CC to link under sequent, because it throws in some extra .o
17143 # files that make .init and .fini sections work.
17144 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17145 else
17146 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17147 fi
17148 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17149 hardcode_direct_GCJ=yes
17150 hardcode_minus_L_GCJ=yes
17151 hardcode_shlibpath_var_GCJ=no
17152 ;;
17153
17154 sysv4)
17155 case $host_vendor in
17156 sni)
17157 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17158 hardcode_direct_GCJ=yes # is this really true???
17159 ;;
17160 siemens)
17161 ## LD is ld it makes a PLAMLIB
17162 ## CC just makes a GrossModule.
17163 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17164 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17165 hardcode_direct_GCJ=no
17166 ;;
17167 motorola)
17168 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17169 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17170 ;;
17171 esac
17172 runpath_var='LD_RUN_PATH'
17173 hardcode_shlibpath_var_GCJ=no
17174 ;;
17175
17176 sysv4.3*)
17177 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17178 hardcode_shlibpath_var_GCJ=no
17179 export_dynamic_flag_spec_GCJ='-Bexport'
17180 ;;
17181
17182 sysv4*MP*)
17183 if test -d /usr/nec; then
17184 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17185 hardcode_shlibpath_var_GCJ=no
17186 runpath_var=LD_RUN_PATH
17187 hardcode_runpath_var=yes
17188 ld_shlibs_GCJ=yes
17189 fi
17190 ;;
17191
17192 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17193 no_undefined_flag_GCJ='${wl}-z,text'
17194 archive_cmds_need_lc_GCJ=no
17195 hardcode_shlibpath_var_GCJ=no
17196 runpath_var='LD_RUN_PATH'
17197
17198 if test "$GCC" = yes; then
17199 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17200 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17201 else
17202 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17203 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17204 fi
17205 ;;
17206
17207 sysv5* | sco3.2v5* | sco5v6*)
17208 # Note: We can NOT use -z defs as we might desire, because we do not
17209 # link with -lc, and that would cause any symbols used from libc to
17210 # always be unresolved, which means just about no library would
17211 # ever link correctly. If we're not using GNU ld we use -z text
17212 # though, which does catch some bad symbols but isn't as heavy-handed
17213 # as -z defs.
17214 no_undefined_flag_GCJ='${wl}-z,text'
17215 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17216 archive_cmds_need_lc_GCJ=no
17217 hardcode_shlibpath_var_GCJ=no
17218 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17219 hardcode_libdir_separator_GCJ=':'
17220 link_all_deplibs_GCJ=yes
17221 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17222 runpath_var='LD_RUN_PATH'
17223
17224 if test "$GCC" = yes; then
17225 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17226 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17227 else
17228 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17229 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17230 fi
17231 ;;
17232
17233 uts4*)
17234 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17235 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17236 hardcode_shlibpath_var_GCJ=no
17237 ;;
17238
17239 *)
17240 ld_shlibs_GCJ=no
17241 ;;
17242 esac
17243 fi
17244
17245echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17246echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17247test "$ld_shlibs_GCJ" = no && can_build_shared=no
17248
17249#
17250# Do we need to explicitly link libc?
17251#
17252case "x$archive_cmds_need_lc_GCJ" in
17253x|xyes)
17254 # Assume -lc should be added
17255 archive_cmds_need_lc_GCJ=yes
17256
17257 if test "$enable_shared" = yes && test "$GCC" = yes; then
17258 case $archive_cmds_GCJ in
17259 *'~'*)
17260 # FIXME: we may have to deal with multi-command sequences.
17261 ;;
17262 '$CC '*)
17263 # Test whether the compiler implicitly links with -lc since on some
17264 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17265 # to ld, don't add -lc before -lgcc.
17266 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17267echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17268 $rm conftest*
17269 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17270
17271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17272 (eval $ac_compile) 2>&5
17273 ac_status=$?
17274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17275 (exit $ac_status); } 2>conftest.err; then
17276 soname=conftest
17277 lib=conftest
17278 libobjs=conftest.$ac_objext
17279 deplibs=
17280 wl=$lt_prog_compiler_wl_GCJ
17281 pic_flag=$lt_prog_compiler_pic_GCJ
17282 compiler_flags=-v
17283 linker_flags=-v
17284 verstring=
17285 output_objdir=.
17286 libname=conftest
17287 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17288 allow_undefined_flag_GCJ=
17289 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17290 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17291 ac_status=$?
17292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17293 (exit $ac_status); }
17294 then
17295 archive_cmds_need_lc_GCJ=no
17296 else
17297 archive_cmds_need_lc_GCJ=yes
17298 fi
17299 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17300 else
17301 cat conftest.err 1>&5
17302 fi
17303 $rm conftest*
17304 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17305echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17306 ;;
17307 esac
17308 fi
17309 ;;
17310esac
17311
17312echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17313echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17314library_names_spec=
17315libname_spec='lib$name'
17316soname_spec=
17317shrext_cmds=".so"
17318postinstall_cmds=
17319postuninstall_cmds=
17320finish_cmds=
17321finish_eval=
17322shlibpath_var=
17323shlibpath_overrides_runpath=unknown
17324version_type=none
17325dynamic_linker="$host_os ld.so"
17326sys_lib_dlsearch_path_spec="/lib /usr/lib"
17327if test "$GCC" = yes; then
17328 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17329 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17330 # if the path contains ";" then we assume it to be the separator
17331 # otherwise default to the standard path separator (i.e. ":") - it is
17332 # assumed that no part of a normal pathname contains ";" but that should
17333 # okay in the real world where ";" in dirpaths is itself problematic.
17334 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17335 else
17336 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17337 fi
17338else
17339 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17340fi
17341need_lib_prefix=unknown
17342hardcode_into_libs=no
17343
17344# when you set need_version to no, make sure it does not cause -set_version
17345# flags to be left without arguments
17346need_version=unknown
17347
17348case $host_os in
17349aix3*)
17350 version_type=linux
17351 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17352 shlibpath_var=LIBPATH
17353
17354 # AIX 3 has no versioning support, so we append a major version to the name.
17355 soname_spec='${libname}${release}${shared_ext}$major'
17356 ;;
17357
17358aix4* | aix5*)
17359 version_type=linux
17360 need_lib_prefix=no
17361 need_version=no
17362 hardcode_into_libs=yes
17363 if test "$host_cpu" = ia64; then
17364 # AIX 5 supports IA64
17365 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17366 shlibpath_var=LD_LIBRARY_PATH
17367 else
17368 # With GCC up to 2.95.x, collect2 would create an import file
17369 # for dependence libraries. The import file would start with
17370 # the line `#! .'. This would cause the generated library to
17371 # depend on `.', always an invalid library. This was fixed in
17372 # development snapshots of GCC prior to 3.0.
17373 case $host_os in
17374 aix4 | aix4.[01] | aix4.[01].*)
17375 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17376 echo ' yes '
17377 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17378 :
17379 else
17380 can_build_shared=no
17381 fi
17382 ;;
17383 esac
17384 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17385 # soname into executable. Probably we can add versioning support to
17386 # collect2, so additional links can be useful in future.
17387 if test "$aix_use_runtimelinking" = yes; then
17388 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17389 # instead of lib<name>.a to let people know that these are not
17390 # typical AIX shared libraries.
17391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17392 else
17393 # We preserve .a as extension for shared libraries through AIX4.2
17394 # and later when we are not doing run time linking.
17395 library_names_spec='${libname}${release}.a $libname.a'
17396 soname_spec='${libname}${release}${shared_ext}$major'
17397 fi
17398 shlibpath_var=LIBPATH
17399 fi
17400 ;;
17401
17402amigaos*)
17403 library_names_spec='$libname.ixlibrary $libname.a'
17404 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17405 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'
17406 ;;
17407
17408beos*)
17409 library_names_spec='${libname}${shared_ext}'
17410 dynamic_linker="$host_os ld.so"
17411 shlibpath_var=LIBRARY_PATH
17412 ;;
17413
17414bsdi[45]*)
17415 version_type=linux
17416 need_version=no
17417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17418 soname_spec='${libname}${release}${shared_ext}$major'
17419 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17420 shlibpath_var=LD_LIBRARY_PATH
17421 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17422 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17423 # the default ld.so.conf also contains /usr/contrib/lib and
17424 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17425 # libtool to hard-code these into programs
17426 ;;
17427
17428cygwin* | mingw* | pw32*)
17429 version_type=windows
17430 shrext_cmds=".dll"
17431 need_version=no
17432 need_lib_prefix=no
17433
17434 case $GCC,$host_os in
17435 yes,cygwin* | yes,mingw* | yes,pw32*)
17436 library_names_spec='$libname.dll.a'
17437 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17438 postinstall_cmds='base_file=`basename \${file}`~
17439 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17440 dldir=$destdir/`dirname \$dlpath`~
17441 test -d \$dldir || mkdir -p \$dldir~
17442 $install_prog $dir/$dlname \$dldir/$dlname~
17443 chmod a+x \$dldir/$dlname'
17444 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17445 dlpath=$dir/\$dldll~
17446 $rm \$dlpath'
17447 shlibpath_overrides_runpath=yes
17448
17449 case $host_os in
17450 cygwin*)
17451 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17452 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17453 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17454 ;;
17455 mingw*)
17456 # MinGW DLLs use traditional 'lib' prefix
17457 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17458 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17459 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17460 # It is most probably a Windows format PATH printed by
17461 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17462 # path with ; separators, and with drive letters. We can handle the
17463 # drive letters (cygwin fileutils understands them), so leave them,
17464 # especially as we might pass files found there to a mingw objdump,
17465 # which wouldn't understand a cygwinified path. Ahh.
17466 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17467 else
17468 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17469 fi
17470 ;;
17471 pw32*)
17472 # pw32 DLLs use 'pw' prefix rather than 'lib'
17473 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17474 ;;
17475 esac
17476 ;;
17477
17478 *)
17479 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17480 ;;
17481 esac
17482 dynamic_linker='Win32 ld.exe'
17483 # FIXME: first we should search . and the directory the executable is in
17484 shlibpath_var=PATH
17485 ;;
17486
17487darwin* | rhapsody*)
17488 dynamic_linker="$host_os dyld"
17489 version_type=darwin
17490 need_lib_prefix=no
17491 need_version=no
17492 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17493 soname_spec='${libname}${release}${major}$shared_ext'
17494 shlibpath_overrides_runpath=yes
17495 shlibpath_var=DYLD_LIBRARY_PATH
17496 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17497 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17498 if test "$GCC" = yes; then
17499 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"`
17500 else
17501 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17502 fi
17503 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17504 ;;
17505
17506dgux*)
17507 version_type=linux
17508 need_lib_prefix=no
17509 need_version=no
17510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17511 soname_spec='${libname}${release}${shared_ext}$major'
17512 shlibpath_var=LD_LIBRARY_PATH
17513 ;;
17514
17515freebsd1*)
17516 dynamic_linker=no
17517 ;;
17518
17519kfreebsd*-gnu)
17520 version_type=linux
17521 need_lib_prefix=no
17522 need_version=no
17523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17524 soname_spec='${libname}${release}${shared_ext}$major'
17525 shlibpath_var=LD_LIBRARY_PATH
17526 shlibpath_overrides_runpath=no
17527 hardcode_into_libs=yes
17528 dynamic_linker='GNU ld.so'
17529 ;;
17530
17531freebsd* | dragonfly*)
17532 # DragonFly does not have aout. When/if they implement a new
17533 # versioning mechanism, adjust this.
17534 if test -x /usr/bin/objformat; then
17535 objformat=`/usr/bin/objformat`
17536 else
17537 case $host_os in
17538 freebsd[123]*) objformat=aout ;;
17539 *) objformat=elf ;;
17540 esac
17541 fi
17542 version_type=freebsd-$objformat
17543 case $version_type in
17544 freebsd-elf*)
17545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17546 need_version=no
17547 need_lib_prefix=no
17548 ;;
17549 freebsd-*)
17550 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17551 need_version=yes
17552 ;;
17553 esac
17554 shlibpath_var=LD_LIBRARY_PATH
17555 case $host_os in
17556 freebsd2*)
17557 shlibpath_overrides_runpath=yes
17558 ;;
17559 freebsd3.[01]* | freebsdelf3.[01]*)
17560 shlibpath_overrides_runpath=yes
17561 hardcode_into_libs=yes
17562 ;;
17563 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17564 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17565 shlibpath_overrides_runpath=no
17566 hardcode_into_libs=yes
17567 ;;
17568 freebsd*) # from 4.6 on
17569 shlibpath_overrides_runpath=yes
17570 hardcode_into_libs=yes
17571 ;;
17572 esac
17573 ;;
17574
17575gnu*)
17576 version_type=linux
17577 need_lib_prefix=no
17578 need_version=no
17579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17580 soname_spec='${libname}${release}${shared_ext}$major'
17581 shlibpath_var=LD_LIBRARY_PATH
17582 hardcode_into_libs=yes
17583 ;;
17584
17585hpux9* | hpux10* | hpux11*)
17586 # Give a soname corresponding to the major version so that dld.sl refuses to
17587 # link against other versions.
17588 version_type=sunos
17589 need_lib_prefix=no
17590 need_version=no
17591 case $host_cpu in
17592 ia64*)
17593 shrext_cmds='.so'
17594 hardcode_into_libs=yes
17595 dynamic_linker="$host_os dld.so"
17596 shlibpath_var=LD_LIBRARY_PATH
17597 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17599 soname_spec='${libname}${release}${shared_ext}$major'
17600 if test "X$HPUX_IA64_MODE" = X32; then
17601 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17602 else
17603 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17604 fi
17605 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17606 ;;
17607 hppa*64*)
17608 shrext_cmds='.sl'
17609 hardcode_into_libs=yes
17610 dynamic_linker="$host_os dld.sl"
17611 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17612 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17614 soname_spec='${libname}${release}${shared_ext}$major'
17615 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17616 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17617 ;;
17618 *)
17619 shrext_cmds='.sl'
17620 dynamic_linker="$host_os dld.sl"
17621 shlibpath_var=SHLIB_PATH
17622 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17624 soname_spec='${libname}${release}${shared_ext}$major'
17625 ;;
17626 esac
17627 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17628 postinstall_cmds='chmod 555 $lib'
17629 ;;
17630
17631interix3*)
17632 version_type=linux
17633 need_lib_prefix=no
17634 need_version=no
17635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17636 soname_spec='${libname}${release}${shared_ext}$major'
17637 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17638 shlibpath_var=LD_LIBRARY_PATH
17639 shlibpath_overrides_runpath=no
17640 hardcode_into_libs=yes
17641 ;;
17642
17643irix5* | irix6* | nonstopux*)
17644 case $host_os in
17645 nonstopux*) version_type=nonstopux ;;
17646 *)
17647 if test "$lt_cv_prog_gnu_ld" = yes; then
17648 version_type=linux
17649 else
17650 version_type=irix
17651 fi ;;
17652 esac
17653 need_lib_prefix=no
17654 need_version=no
17655 soname_spec='${libname}${release}${shared_ext}$major'
17656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17657 case $host_os in
17658 irix5* | nonstopux*)
17659 libsuff= shlibsuff=
17660 ;;
17661 *)
17662 case $LD in # libtool.m4 will add one of these switches to LD
17663 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17664 libsuff= shlibsuff= libmagic=32-bit;;
17665 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17666 libsuff=32 shlibsuff=N32 libmagic=N32;;
17667 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17668 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17669 *) libsuff= shlibsuff= libmagic=never-match;;
17670 esac
17671 ;;
17672 esac
17673 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17674 shlibpath_overrides_runpath=no
17675 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17676 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17677 hardcode_into_libs=yes
17678 ;;
17679
17680# No shared lib support for Linux oldld, aout, or coff.
17681linux*oldld* | linux*aout* | linux*coff*)
17682 dynamic_linker=no
17683 ;;
17684
17685# This must be Linux ELF.
17686linux*)
17687 version_type=linux
17688 need_lib_prefix=no
17689 need_version=no
17690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17691 soname_spec='${libname}${release}${shared_ext}$major'
17692 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17693 shlibpath_var=LD_LIBRARY_PATH
17694 shlibpath_overrides_runpath=no
17695 # This implies no fast_install, which is unacceptable.
17696 # Some rework will be needed to allow for fast_install
17697 # before this can be enabled.
17698 hardcode_into_libs=yes
17699
17700 # find out which ABI we are using
17701 libsuff=
17702 case "$host_cpu" in
17703 x86_64*|s390x*|powerpc64*)
5e9b5d83 17704 echo '#line 17704 "configure"' > conftest.$ac_ext
bf9f3bac 17705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17706 (eval $ac_compile) 2>&5
17707 ac_status=$?
17708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17709 (exit $ac_status); }; then
17710 case `/usr/bin/file conftest.$ac_objext` in
17711 *64-bit*)
17712 libsuff=64
17713 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17714 ;;
17715 esac
17716 fi
17717 rm -rf conftest*
17718 ;;
17719 esac
17720
17721 # Append ld.so.conf contents to the search path
17722 if test -f /etc/ld.so.conf; then
17723 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' ' '`
17724 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
17725 fi
17726
17727 # We used to test for /lib/ld.so.1 and disable shared libraries on
17728 # powerpc, because MkLinux only supported shared libraries with the
17729 # GNU dynamic linker. Since this was broken with cross compilers,
17730 # most powerpc-linux boxes support dynamic linking these days and
17731 # people can always --disable-shared, the test was removed, and we
17732 # assume the GNU/Linux dynamic linker is in use.
17733 dynamic_linker='GNU/Linux ld.so'
17734 ;;
17735
17736knetbsd*-gnu)
17737 version_type=linux
17738 need_lib_prefix=no
17739 need_version=no
17740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17741 soname_spec='${libname}${release}${shared_ext}$major'
17742 shlibpath_var=LD_LIBRARY_PATH
17743 shlibpath_overrides_runpath=no
17744 hardcode_into_libs=yes
17745 dynamic_linker='GNU ld.so'
17746 ;;
17747
17748netbsd*)
17749 version_type=sunos
17750 need_lib_prefix=no
17751 need_version=no
17752 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17754 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17755 dynamic_linker='NetBSD (a.out) ld.so'
17756 else
17757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17758 soname_spec='${libname}${release}${shared_ext}$major'
17759 dynamic_linker='NetBSD ld.elf_so'
17760 fi
17761 shlibpath_var=LD_LIBRARY_PATH
17762 shlibpath_overrides_runpath=yes
17763 hardcode_into_libs=yes
17764 ;;
17765
17766newsos6)
17767 version_type=linux
17768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17769 shlibpath_var=LD_LIBRARY_PATH
17770 shlibpath_overrides_runpath=yes
17771 ;;
17772
17773nto-qnx*)
17774 version_type=linux
17775 need_lib_prefix=no
17776 need_version=no
17777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17778 soname_spec='${libname}${release}${shared_ext}$major'
17779 shlibpath_var=LD_LIBRARY_PATH
17780 shlibpath_overrides_runpath=yes
17781 ;;
17782
17783openbsd*)
17784 version_type=sunos
17785 sys_lib_dlsearch_path_spec="/usr/lib"
17786 need_lib_prefix=no
17787 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17788 case $host_os in
17789 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17790 *) need_version=no ;;
17791 esac
17792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17793 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17794 shlibpath_var=LD_LIBRARY_PATH
17795 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17796 case $host_os in
17797 openbsd2.[89] | openbsd2.[89].*)
17798 shlibpath_overrides_runpath=no
17799 ;;
17800 *)
17801 shlibpath_overrides_runpath=yes
17802 ;;
17803 esac
17804 else
17805 shlibpath_overrides_runpath=yes
17806 fi
17807 ;;
17808
17809os2*)
17810 libname_spec='$name'
17811 shrext_cmds=".dll"
17812 need_lib_prefix=no
17813 library_names_spec='$libname${shared_ext} $libname.a'
17814 dynamic_linker='OS/2 ld.exe'
17815 shlibpath_var=LIBPATH
17816 ;;
17817
17818osf3* | osf4* | osf5*)
17819 version_type=osf
17820 need_lib_prefix=no
17821 need_version=no
17822 soname_spec='${libname}${release}${shared_ext}$major'
17823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17824 shlibpath_var=LD_LIBRARY_PATH
17825 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17826 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17827 ;;
17828
17829solaris*)
17830 version_type=linux
17831 need_lib_prefix=no
17832 need_version=no
17833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17834 soname_spec='${libname}${release}${shared_ext}$major'
17835 shlibpath_var=LD_LIBRARY_PATH
17836 shlibpath_overrides_runpath=yes
17837 hardcode_into_libs=yes
17838 # ldd complains unless libraries are executable
17839 postinstall_cmds='chmod +x $lib'
17840 ;;
17841
17842sunos4*)
17843 version_type=sunos
17844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17845 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17846 shlibpath_var=LD_LIBRARY_PATH
17847 shlibpath_overrides_runpath=yes
17848 if test "$with_gnu_ld" = yes; then
17849 need_lib_prefix=no
17850 fi
17851 need_version=yes
17852 ;;
17853
17854sysv4 | sysv4.3*)
17855 version_type=linux
17856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17857 soname_spec='${libname}${release}${shared_ext}$major'
17858 shlibpath_var=LD_LIBRARY_PATH
17859 case $host_vendor in
17860 sni)
17861 shlibpath_overrides_runpath=no
17862 need_lib_prefix=no
17863 export_dynamic_flag_spec='${wl}-Blargedynsym'
17864 runpath_var=LD_RUN_PATH
17865 ;;
17866 siemens)
17867 need_lib_prefix=no
17868 ;;
17869 motorola)
17870 need_lib_prefix=no
17871 need_version=no
17872 shlibpath_overrides_runpath=no
17873 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17874 ;;
17875 esac
17876 ;;
17877
17878sysv4*MP*)
17879 if test -d /usr/nec ;then
17880 version_type=linux
17881 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17882 soname_spec='$libname${shared_ext}.$major'
17883 shlibpath_var=LD_LIBRARY_PATH
17884 fi
17885 ;;
17886
17887sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17888 version_type=freebsd-elf
17889 need_lib_prefix=no
17890 need_version=no
17891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17892 soname_spec='${libname}${release}${shared_ext}$major'
17893 shlibpath_var=LD_LIBRARY_PATH
17894 hardcode_into_libs=yes
17895 if test "$with_gnu_ld" = yes; then
17896 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17897 shlibpath_overrides_runpath=no
17898 else
17899 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17900 shlibpath_overrides_runpath=yes
17901 case $host_os in
17902 sco3.2v5*)
17903 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17904 ;;
17905 esac
17906 fi
17907 sys_lib_dlsearch_path_spec='/usr/lib'
17908 ;;
17909
17910uts4*)
17911 version_type=linux
17912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17913 soname_spec='${libname}${release}${shared_ext}$major'
17914 shlibpath_var=LD_LIBRARY_PATH
17915 ;;
17916
17917*)
17918 dynamic_linker=no
17919 ;;
17920esac
17921echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17922echo "${ECHO_T}$dynamic_linker" >&6
17923test "$dynamic_linker" = no && can_build_shared=no
17924
17925variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17926if test "$GCC" = yes; then
17927 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17928fi
17929
17930echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17931echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17932hardcode_action_GCJ=
17933if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17934 test -n "$runpath_var_GCJ" || \
17935 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17936
17937 # We can hardcode non-existant directories.
17938 if test "$hardcode_direct_GCJ" != no &&
17939 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17940 # have to relink, otherwise we might link with an installed library
17941 # when we should be linking with a yet-to-be-installed one
17942 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17943 test "$hardcode_minus_L_GCJ" != no; then
17944 # Linking always hardcodes the temporary library directory.
17945 hardcode_action_GCJ=relink
17946 else
17947 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17948 hardcode_action_GCJ=immediate
17949 fi
17950else
17951 # We cannot hardcode anything, or else we can only hardcode existing
17952 # directories.
17953 hardcode_action_GCJ=unsupported
17954fi
17955echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17956echo "${ECHO_T}$hardcode_action_GCJ" >&6
17957
17958if test "$hardcode_action_GCJ" = relink; then
17959 # Fast installation is not supported
17960 enable_fast_install=no
17961elif test "$shlibpath_overrides_runpath" = yes ||
17962 test "$enable_shared" = no; then
17963 # Fast installation is not necessary
17964 enable_fast_install=needless
17965fi
17966
17967
17968# The else clause should only fire when bootstrapping the
17969# libtool distribution, otherwise you forgot to ship ltmain.sh
17970# with your package, and you will get complaints that there are
17971# no rules to generate ltmain.sh.
17972if test -f "$ltmain"; then
17973 # See if we are running on zsh, and set the options which allow our commands through
17974 # without removal of \ escapes.
17975 if test -n "${ZSH_VERSION+set}" ; then
17976 setopt NO_GLOB_SUBST
17977 fi
17978 # Now quote all the things that may contain metacharacters while being
17979 # careful not to overquote the AC_SUBSTed values. We take copies of the
17980 # variables and quote the copies for generation of the libtool script.
17981 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17982 SED SHELL STRIP \
17983 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17984 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17985 deplibs_check_method reload_flag reload_cmds need_locks \
17986 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17987 lt_cv_sys_global_symbol_to_c_name_address \
17988 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17989 old_postinstall_cmds old_postuninstall_cmds \
17990 compiler_GCJ \
17991 CC_GCJ \
17992 LD_GCJ \
17993 lt_prog_compiler_wl_GCJ \
17994 lt_prog_compiler_pic_GCJ \
17995 lt_prog_compiler_static_GCJ \
17996 lt_prog_compiler_no_builtin_flag_GCJ \
17997 export_dynamic_flag_spec_GCJ \
17998 thread_safe_flag_spec_GCJ \
17999 whole_archive_flag_spec_GCJ \
18000 enable_shared_with_static_runtimes_GCJ \
18001 old_archive_cmds_GCJ \
18002 old_archive_from_new_cmds_GCJ \
18003 predep_objects_GCJ \
18004 postdep_objects_GCJ \
18005 predeps_GCJ \
18006 postdeps_GCJ \
18007 compiler_lib_search_path_GCJ \
18008 archive_cmds_GCJ \
18009 archive_expsym_cmds_GCJ \
18010 postinstall_cmds_GCJ \
18011 postuninstall_cmds_GCJ \
18012 old_archive_from_expsyms_cmds_GCJ \
18013 allow_undefined_flag_GCJ \
18014 no_undefined_flag_GCJ \
18015 export_symbols_cmds_GCJ \
18016 hardcode_libdir_flag_spec_GCJ \
18017 hardcode_libdir_flag_spec_ld_GCJ \
18018 hardcode_libdir_separator_GCJ \
18019 hardcode_automatic_GCJ \
18020 module_cmds_GCJ \
18021 module_expsym_cmds_GCJ \
18022 lt_cv_prog_compiler_c_o_GCJ \
18023 exclude_expsyms_GCJ \
18024 include_expsyms_GCJ; do
18025
18026 case $var in
18027 old_archive_cmds_GCJ | \
18028 old_archive_from_new_cmds_GCJ | \
18029 archive_cmds_GCJ | \
18030 archive_expsym_cmds_GCJ | \
18031 module_cmds_GCJ | \
18032 module_expsym_cmds_GCJ | \
18033 old_archive_from_expsyms_cmds_GCJ | \
18034 export_symbols_cmds_GCJ | \
18035 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18036 postinstall_cmds | postuninstall_cmds | \
18037 old_postinstall_cmds | old_postuninstall_cmds | \
18038 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18039 # Double-quote double-evaled strings.
18040 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18041 ;;
18042 *)
18043 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18044 ;;
18045 esac
18046 done
18047
18048 case $lt_echo in
18049 *'\$0 --fallback-echo"')
18050 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18051 ;;
18052 esac
18053
18054cfgfile="$ofile"
18055
18056 cat <<__EOF__ >> "$cfgfile"
18057# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18058
18059# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18060
18061# Shell to use when invoking shell scripts.
18062SHELL=$lt_SHELL
18063
18064# Whether or not to build shared libraries.
18065build_libtool_libs=$enable_shared
18066
18067# Whether or not to build static libraries.
18068build_old_libs=$enable_static
18069
18070# Whether or not to add -lc for building shared libraries.
18071build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18072
18073# Whether or not to disallow shared libs when runtime libs are static
18074allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18075
18076# Whether or not to optimize for fast installation.
18077fast_install=$enable_fast_install
18078
18079# The host system.
18080host_alias=$host_alias
18081host=$host
18082host_os=$host_os
18083
18084# The build system.
18085build_alias=$build_alias
18086build=$build
18087build_os=$build_os
18088
18089# An echo program that does not interpret backslashes.
18090echo=$lt_echo
18091
18092# The archiver.
18093AR=$lt_AR
18094AR_FLAGS=$lt_AR_FLAGS
18095
18096# A C compiler.
18097LTCC=$lt_LTCC
18098
18099# LTCC compiler flags.
18100LTCFLAGS=$lt_LTCFLAGS
18101
18102# A language-specific compiler.
18103CC=$lt_compiler_GCJ
18104
18105# Is the compiler the GNU C compiler?
18106with_gcc=$GCC_GCJ
18107
18108gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
18109gcc_ver=\`gcc -dumpversion\`
18110
18111# An ERE matcher.
18112EGREP=$lt_EGREP
18113
18114# The linker used to build libraries.
18115LD=$lt_LD_GCJ
18116
18117# Whether we need hard or soft links.
18118LN_S=$lt_LN_S
18119
18120# A BSD-compatible nm program.
18121NM=$lt_NM
18122
18123# A symbol stripping program
18124STRIP=$lt_STRIP
18125
18126# Used to examine libraries when file_magic_cmd begins "file"
18127MAGIC_CMD=$MAGIC_CMD
18128
18129# Used on cygwin: DLL creation program.
18130DLLTOOL="$DLLTOOL"
18131
18132# Used on cygwin: object dumper.
18133OBJDUMP="$OBJDUMP"
18134
18135# Used on cygwin: assembler.
18136AS="$AS"
18137
18138# The name of the directory that contains temporary libtool files.
18139objdir=$objdir
18140
18141# How to create reloadable object files.
18142reload_flag=$lt_reload_flag
18143reload_cmds=$lt_reload_cmds
18144
18145# How to pass a linker flag through the compiler.
18146wl=$lt_lt_prog_compiler_wl_GCJ
18147
18148# Object file suffix (normally "o").
18149objext="$ac_objext"
18150
18151# Old archive suffix (normally "a").
18152libext="$libext"
18153
18154# Shared library suffix (normally ".so").
18155shrext_cmds='$shrext_cmds'
18156
18157# Executable file suffix (normally "").
18158exeext="$exeext"
18159
18160# Additional compiler flags for building library objects.
18161pic_flag=$lt_lt_prog_compiler_pic_GCJ
18162pic_mode=$pic_mode
18163
18164# What is the maximum length of a command?
18165max_cmd_len=$lt_cv_sys_max_cmd_len
18166
18167# Does compiler simultaneously support -c and -o options?
18168compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18169
18170# Must we lock files when doing compilation?
18171need_locks=$lt_need_locks
18172
18173# Do we need the lib prefix for modules?
18174need_lib_prefix=$need_lib_prefix
18175
18176# Do we need a version for libraries?
18177need_version=$need_version
18178
18179# Whether dlopen is supported.
18180dlopen_support=$enable_dlopen
18181
18182# Whether dlopen of programs is supported.
18183dlopen_self=$enable_dlopen_self
18184
18185# Whether dlopen of statically linked programs is supported.
18186dlopen_self_static=$enable_dlopen_self_static
18187
18188# Compiler flag to prevent dynamic linking.
18189link_static_flag=$lt_lt_prog_compiler_static_GCJ
18190
18191# Compiler flag to turn off builtin functions.
18192no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18193
18194# Compiler flag to allow reflexive dlopens.
18195export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18196
18197# Compiler flag to generate shared objects directly from archives.
18198whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18199
18200# Compiler flag to generate thread-safe objects.
18201thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18202
18203# Library versioning type.
18204version_type=$version_type
18205
18206# Format of library name prefix.
18207libname_spec=$lt_libname_spec
18208
18209# List of archive names. First name is the real one, the rest are links.
18210# The last name is the one that the linker finds with -lNAME.
18211library_names_spec=$lt_library_names_spec
18212
18213# The coded name of the library, if different from the real name.
18214soname_spec=$lt_soname_spec
18215
18216# Commands used to build and install an old-style archive.
18217RANLIB=$lt_RANLIB
18218old_archive_cmds=$lt_old_archive_cmds_GCJ
18219old_postinstall_cmds=$lt_old_postinstall_cmds
18220old_postuninstall_cmds=$lt_old_postuninstall_cmds
18221
18222# Create an old-style archive from a shared archive.
18223old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18224
18225# Create a temporary old-style archive to link instead of a shared archive.
18226old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18227
18228# Commands used to build and install a shared archive.
18229archive_cmds=$lt_archive_cmds_GCJ
18230archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18231postinstall_cmds=$lt_postinstall_cmds
18232postuninstall_cmds=$lt_postuninstall_cmds
18233
18234# Commands used to build a loadable module (assumed same as above if empty)
18235module_cmds=$lt_module_cmds_GCJ
18236module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18237
18238# Commands to strip libraries.
18239old_striplib=$lt_old_striplib
18240striplib=$lt_striplib
18241
18242# Dependencies to place before the objects being linked to create a
18243# shared library.
18244predep_objects=\`echo $lt_predep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18245
18246# Dependencies to place after the objects being linked to create a
18247# shared library.
18248postdep_objects=\`echo $lt_postdep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18249
18250# Dependencies to place before the objects being linked to create a
18251# shared library.
18252predeps=$lt_predeps_GCJ
18253
18254# Dependencies to place after the objects being linked to create a
18255# shared library.
18256postdeps=$lt_postdeps_GCJ
18257
18258# The library search path used internally by the compiler when linking
18259# a shared library.
18260compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18261
18262# Method to check whether dependent libraries are shared objects.
18263deplibs_check_method=$lt_deplibs_check_method
18264
18265# Command to use when deplibs_check_method == file_magic.
18266file_magic_cmd=$lt_file_magic_cmd
18267
18268# Flag that allows shared libraries with undefined symbols to be built.
18269allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18270
18271# Flag that forces no undefined symbols.
18272no_undefined_flag=$lt_no_undefined_flag_GCJ
18273
18274# Commands used to finish a libtool library installation in a directory.
18275finish_cmds=$lt_finish_cmds
18276
18277# Same as above, but a single script fragment to be evaled but not shown.
18278finish_eval=$lt_finish_eval
18279
18280# Take the output of nm and produce a listing of raw symbols and C names.
18281global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18282
18283# Transform the output of nm in a proper C declaration
18284global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18285
18286# Transform the output of nm in a C name address pair
18287global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18288
18289# This is the shared library runtime path variable.
18290runpath_var=$runpath_var
18291
18292# This is the shared library path variable.
18293shlibpath_var=$shlibpath_var
18294
18295# Is shlibpath searched before the hard-coded library search path?
18296shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18297
18298# How to hardcode a shared library path into an executable.
18299hardcode_action=$hardcode_action_GCJ
18300
18301# Whether we should hardcode library paths into libraries.
18302hardcode_into_libs=$hardcode_into_libs
18303
18304# Flag to hardcode \$libdir into a binary during linking.
18305# This must work even if \$libdir does not exist.
18306hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18307
18308# If ld is used when linking, flag to hardcode \$libdir into
18309# a binary during linking. This must work even if \$libdir does
18310# not exist.
18311hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18312
18313# Whether we need a single -rpath flag with a separated argument.
18314hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18315
18316# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18317# resulting binary.
18318hardcode_direct=$hardcode_direct_GCJ
18319
18320# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18321# resulting binary.
18322hardcode_minus_L=$hardcode_minus_L_GCJ
18323
18324# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18325# the resulting binary.
18326hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18327
18328# Set to yes if building a shared library automatically hardcodes DIR into the library
18329# and all subsequent libraries and executables linked against it.
18330hardcode_automatic=$hardcode_automatic_GCJ
18331
18332# Variables whose values should be saved in libtool wrapper scripts and
18333# restored at relink time.
18334variables_saved_for_relink="$variables_saved_for_relink"
18335
18336# Whether libtool must link a program against all its dependency libraries.
18337link_all_deplibs=$link_all_deplibs_GCJ
18338
18339# Compile-time system search path for libraries
18340sys_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"\`
18341
18342# Run-time system search path for libraries
18343sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18344
18345# Fix the shell variable \$srcfile for the compiler.
18346fix_srcfile_path="$fix_srcfile_path_GCJ"
18347
18348# Set to yes if exported symbols are required.
18349always_export_symbols=$always_export_symbols_GCJ
18350
18351# The commands to list exported symbols.
18352export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18353
18354# The commands to extract the exported symbol list from a shared archive.
18355extract_expsyms_cmds=$lt_extract_expsyms_cmds
18356
18357# Symbols that should not be listed in the preloaded symbols.
18358exclude_expsyms=$lt_exclude_expsyms_GCJ
18359
18360# Symbols that must always be exported.
18361include_expsyms=$lt_include_expsyms_GCJ
18362
18363# ### END LIBTOOL TAG CONFIG: $tagname
18364
18365__EOF__
18366
18367
18368else
18369 # If there is no Makefile yet, we rely on a make rule to execute
18370 # `config.status --recheck' to rerun these tests and create the
18371 # libtool script then.
18372 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18373 if test -f "$ltmain_in"; then
18374 test -f Makefile && make "$ltmain"
18375 fi
18376fi
18377
18378
18379ac_ext=c
18380ac_cpp='$CPP $CPPFLAGS'
18381ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18382ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18383ac_compiler_gnu=$ac_cv_c_compiler_gnu
18384
18385CC="$lt_save_CC"
18386
18387 else
18388 tagname=""
18389 fi
18390 ;;
18391
18392 RC)
18393
18394
18395
18396# Source file extension for RC test sources.
18397ac_ext=rc
18398
18399# Object file extension for compiled RC test sources.
18400objext=o
18401objext_RC=$objext
18402
18403# Code to be used in simple compile tests
18404lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18405
18406# Code to be used in simple link tests
18407lt_simple_link_test_code="$lt_simple_compile_test_code"
18408
18409# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18410
18411# If no C compiler was specified, use CC.
18412LTCC=${LTCC-"$CC"}
18413
18414# If no C compiler flags were specified, use CFLAGS.
18415LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18416
18417# Allow CC to be a program name with arguments.
18418compiler=$CC
18419
18420
18421# save warnings/boilerplate of simple test code
18422ac_outfile=conftest.$ac_objext
18423printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18424eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18425_lt_compiler_boilerplate=`cat conftest.err`
18426$rm conftest*
18427
18428ac_outfile=conftest.$ac_objext
18429printf "$lt_simple_link_test_code" >conftest.$ac_ext
18430eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18431_lt_linker_boilerplate=`cat conftest.err`
18432$rm conftest*
18433
18434
18435# Allow CC to be a program name with arguments.
18436lt_save_CC="$CC"
18437CC=${RC-"windres"}
18438compiler=$CC
18439compiler_RC=$CC
18440for cc_temp in $compiler""; do
18441 case $cc_temp in
18442 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18443 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18444 \-*) ;;
18445 *) break;;
18446 esac
18447done
18448cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18449
18450lt_cv_prog_compiler_c_o_RC=yes
18451
18452# The else clause should only fire when bootstrapping the
18453# libtool distribution, otherwise you forgot to ship ltmain.sh
18454# with your package, and you will get complaints that there are
18455# no rules to generate ltmain.sh.
18456if test -f "$ltmain"; then
18457 # See if we are running on zsh, and set the options which allow our commands through
18458 # without removal of \ escapes.
18459 if test -n "${ZSH_VERSION+set}" ; then
18460 setopt NO_GLOB_SUBST
18461 fi
18462 # Now quote all the things that may contain metacharacters while being
18463 # careful not to overquote the AC_SUBSTed values. We take copies of the
18464 # variables and quote the copies for generation of the libtool script.
18465 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18466 SED SHELL STRIP \
18467 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18468 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18469 deplibs_check_method reload_flag reload_cmds need_locks \
18470 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18471 lt_cv_sys_global_symbol_to_c_name_address \
18472 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18473 old_postinstall_cmds old_postuninstall_cmds \
18474 compiler_RC \
18475 CC_RC \
18476 LD_RC \
18477 lt_prog_compiler_wl_RC \
18478 lt_prog_compiler_pic_RC \
18479 lt_prog_compiler_static_RC \
18480 lt_prog_compiler_no_builtin_flag_RC \
18481 export_dynamic_flag_spec_RC \
18482 thread_safe_flag_spec_RC \
18483 whole_archive_flag_spec_RC \
18484 enable_shared_with_static_runtimes_RC \
18485 old_archive_cmds_RC \
18486 old_archive_from_new_cmds_RC \
18487 predep_objects_RC \
18488 postdep_objects_RC \
18489 predeps_RC \
18490 postdeps_RC \
18491 compiler_lib_search_path_RC \
18492 archive_cmds_RC \
18493 archive_expsym_cmds_RC \
18494 postinstall_cmds_RC \
18495 postuninstall_cmds_RC \
18496 old_archive_from_expsyms_cmds_RC \
18497 allow_undefined_flag_RC \
18498 no_undefined_flag_RC \
18499 export_symbols_cmds_RC \
18500 hardcode_libdir_flag_spec_RC \
18501 hardcode_libdir_flag_spec_ld_RC \
18502 hardcode_libdir_separator_RC \
18503 hardcode_automatic_RC \
18504 module_cmds_RC \
18505 module_expsym_cmds_RC \
18506 lt_cv_prog_compiler_c_o_RC \
18507 exclude_expsyms_RC \
18508 include_expsyms_RC; do
18509
18510 case $var in
18511 old_archive_cmds_RC | \
18512 old_archive_from_new_cmds_RC | \
18513 archive_cmds_RC | \
18514 archive_expsym_cmds_RC | \
18515 module_cmds_RC | \
18516 module_expsym_cmds_RC | \
18517 old_archive_from_expsyms_cmds_RC | \
18518 export_symbols_cmds_RC | \
18519 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18520 postinstall_cmds | postuninstall_cmds | \
18521 old_postinstall_cmds | old_postuninstall_cmds | \
18522 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18523 # Double-quote double-evaled strings.
18524 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18525 ;;
18526 *)
18527 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18528 ;;
18529 esac
18530 done
18531
18532 case $lt_echo in
18533 *'\$0 --fallback-echo"')
18534 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18535 ;;
18536 esac
18537
18538cfgfile="$ofile"
18539
18540 cat <<__EOF__ >> "$cfgfile"
18541# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18542
18543# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18544
18545# Shell to use when invoking shell scripts.
18546SHELL=$lt_SHELL
18547
18548# Whether or not to build shared libraries.
18549build_libtool_libs=$enable_shared
18550
18551# Whether or not to build static libraries.
18552build_old_libs=$enable_static
18553
18554# Whether or not to add -lc for building shared libraries.
18555build_libtool_need_lc=$archive_cmds_need_lc_RC
18556
18557# Whether or not to disallow shared libs when runtime libs are static
18558allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18559
18560# Whether or not to optimize for fast installation.
18561fast_install=$enable_fast_install
18562
18563# The host system.
18564host_alias=$host_alias
18565host=$host
18566host_os=$host_os
18567
18568# The build system.
18569build_alias=$build_alias
18570build=$build
18571build_os=$build_os
18572
18573# An echo program that does not interpret backslashes.
18574echo=$lt_echo
18575
18576# The archiver.
18577AR=$lt_AR
18578AR_FLAGS=$lt_AR_FLAGS
18579
18580# A C compiler.
18581LTCC=$lt_LTCC
18582
18583# LTCC compiler flags.
18584LTCFLAGS=$lt_LTCFLAGS
18585
18586# A language-specific compiler.
18587CC=$lt_compiler_RC
18588
18589# Is the compiler the GNU C compiler?
18590with_gcc=$GCC_RC
18591
18592gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
18593gcc_ver=\`gcc -dumpversion\`
18594
18595# An ERE matcher.
18596EGREP=$lt_EGREP
18597
18598# The linker used to build libraries.
18599LD=$lt_LD_RC
18600
18601# Whether we need hard or soft links.
18602LN_S=$lt_LN_S
18603
18604# A BSD-compatible nm program.
18605NM=$lt_NM
18606
18607# A symbol stripping program
18608STRIP=$lt_STRIP
18609
18610# Used to examine libraries when file_magic_cmd begins "file"
18611MAGIC_CMD=$MAGIC_CMD
18612
18613# Used on cygwin: DLL creation program.
18614DLLTOOL="$DLLTOOL"
18615
18616# Used on cygwin: object dumper.
18617OBJDUMP="$OBJDUMP"
18618
18619# Used on cygwin: assembler.
18620AS="$AS"
18621
18622# The name of the directory that contains temporary libtool files.
18623objdir=$objdir
18624
18625# How to create reloadable object files.
18626reload_flag=$lt_reload_flag
18627reload_cmds=$lt_reload_cmds
18628
18629# How to pass a linker flag through the compiler.
18630wl=$lt_lt_prog_compiler_wl_RC
18631
18632# Object file suffix (normally "o").
18633objext="$ac_objext"
18634
18635# Old archive suffix (normally "a").
18636libext="$libext"
18637
18638# Shared library suffix (normally ".so").
18639shrext_cmds='$shrext_cmds'
18640
18641# Executable file suffix (normally "").
18642exeext="$exeext"
18643
18644# Additional compiler flags for building library objects.
18645pic_flag=$lt_lt_prog_compiler_pic_RC
18646pic_mode=$pic_mode
18647
18648# What is the maximum length of a command?
18649max_cmd_len=$lt_cv_sys_max_cmd_len
18650
18651# Does compiler simultaneously support -c and -o options?
18652compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18653
18654# Must we lock files when doing compilation?
18655need_locks=$lt_need_locks
18656
18657# Do we need the lib prefix for modules?
18658need_lib_prefix=$need_lib_prefix
18659
18660# Do we need a version for libraries?
18661need_version=$need_version
18662
18663# Whether dlopen is supported.
18664dlopen_support=$enable_dlopen
18665
18666# Whether dlopen of programs is supported.
18667dlopen_self=$enable_dlopen_self
18668
18669# Whether dlopen of statically linked programs is supported.
18670dlopen_self_static=$enable_dlopen_self_static
18671
18672# Compiler flag to prevent dynamic linking.
18673link_static_flag=$lt_lt_prog_compiler_static_RC
18674
18675# Compiler flag to turn off builtin functions.
18676no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18677
18678# Compiler flag to allow reflexive dlopens.
18679export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18680
18681# Compiler flag to generate shared objects directly from archives.
18682whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18683
18684# Compiler flag to generate thread-safe objects.
18685thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18686
18687# Library versioning type.
18688version_type=$version_type
18689
18690# Format of library name prefix.
18691libname_spec=$lt_libname_spec
18692
18693# List of archive names. First name is the real one, the rest are links.
18694# The last name is the one that the linker finds with -lNAME.
18695library_names_spec=$lt_library_names_spec
18696
18697# The coded name of the library, if different from the real name.
18698soname_spec=$lt_soname_spec
18699
18700# Commands used to build and install an old-style archive.
18701RANLIB=$lt_RANLIB
18702old_archive_cmds=$lt_old_archive_cmds_RC
18703old_postinstall_cmds=$lt_old_postinstall_cmds
18704old_postuninstall_cmds=$lt_old_postuninstall_cmds
18705
18706# Create an old-style archive from a shared archive.
18707old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18708
18709# Create a temporary old-style archive to link instead of a shared archive.
18710old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18711
18712# Commands used to build and install a shared archive.
18713archive_cmds=$lt_archive_cmds_RC
18714archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18715postinstall_cmds=$lt_postinstall_cmds
18716postuninstall_cmds=$lt_postuninstall_cmds
18717
18718# Commands used to build a loadable module (assumed same as above if empty)
18719module_cmds=$lt_module_cmds_RC
18720module_expsym_cmds=$lt_module_expsym_cmds_RC
18721
18722# Commands to strip libraries.
18723old_striplib=$lt_old_striplib
18724striplib=$lt_striplib
18725
18726# Dependencies to place before the objects being linked to create a
18727# shared library.
18728predep_objects=\`echo $lt_predep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18729
18730# Dependencies to place after the objects being linked to create a
18731# shared library.
18732postdep_objects=\`echo $lt_postdep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18733
18734# Dependencies to place before the objects being linked to create a
18735# shared library.
18736predeps=$lt_predeps_RC
18737
18738# Dependencies to place after the objects being linked to create a
18739# shared library.
18740postdeps=$lt_postdeps_RC
18741
18742# The library search path used internally by the compiler when linking
18743# a shared library.
18744compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18745
18746# Method to check whether dependent libraries are shared objects.
18747deplibs_check_method=$lt_deplibs_check_method
18748
18749# Command to use when deplibs_check_method == file_magic.
18750file_magic_cmd=$lt_file_magic_cmd
18751
18752# Flag that allows shared libraries with undefined symbols to be built.
18753allow_undefined_flag=$lt_allow_undefined_flag_RC
18754
18755# Flag that forces no undefined symbols.
18756no_undefined_flag=$lt_no_undefined_flag_RC
18757
18758# Commands used to finish a libtool library installation in a directory.
18759finish_cmds=$lt_finish_cmds
18760
18761# Same as above, but a single script fragment to be evaled but not shown.
18762finish_eval=$lt_finish_eval
18763
18764# Take the output of nm and produce a listing of raw symbols and C names.
18765global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18766
18767# Transform the output of nm in a proper C declaration
18768global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18769
18770# Transform the output of nm in a C name address pair
18771global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18772
18773# This is the shared library runtime path variable.
18774runpath_var=$runpath_var
18775
18776# This is the shared library path variable.
18777shlibpath_var=$shlibpath_var
18778
18779# Is shlibpath searched before the hard-coded library search path?
18780shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18781
18782# How to hardcode a shared library path into an executable.
18783hardcode_action=$hardcode_action_RC
18784
18785# Whether we should hardcode library paths into libraries.
18786hardcode_into_libs=$hardcode_into_libs
18787
18788# Flag to hardcode \$libdir into a binary during linking.
18789# This must work even if \$libdir does not exist.
18790hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18791
18792# If ld is used when linking, flag to hardcode \$libdir into
18793# a binary during linking. This must work even if \$libdir does
18794# not exist.
18795hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18796
18797# Whether we need a single -rpath flag with a separated argument.
18798hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18799
18800# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18801# resulting binary.
18802hardcode_direct=$hardcode_direct_RC
18803
18804# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18805# resulting binary.
18806hardcode_minus_L=$hardcode_minus_L_RC
18807
18808# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18809# the resulting binary.
18810hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18811
18812# Set to yes if building a shared library automatically hardcodes DIR into the library
18813# and all subsequent libraries and executables linked against it.
18814hardcode_automatic=$hardcode_automatic_RC
18815
18816# Variables whose values should be saved in libtool wrapper scripts and
18817# restored at relink time.
18818variables_saved_for_relink="$variables_saved_for_relink"
18819
18820# Whether libtool must link a program against all its dependency libraries.
18821link_all_deplibs=$link_all_deplibs_RC
18822
18823# Compile-time system search path for libraries
18824sys_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"\`
18825
18826# Run-time system search path for libraries
18827sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18828
18829# Fix the shell variable \$srcfile for the compiler.
18830fix_srcfile_path="$fix_srcfile_path_RC"
18831
18832# Set to yes if exported symbols are required.
18833always_export_symbols=$always_export_symbols_RC
18834
18835# The commands to list exported symbols.
18836export_symbols_cmds=$lt_export_symbols_cmds_RC
18837
18838# The commands to extract the exported symbol list from a shared archive.
18839extract_expsyms_cmds=$lt_extract_expsyms_cmds
18840
18841# Symbols that should not be listed in the preloaded symbols.
18842exclude_expsyms=$lt_exclude_expsyms_RC
18843
18844# Symbols that must always be exported.
18845include_expsyms=$lt_include_expsyms_RC
18846
18847# ### END LIBTOOL TAG CONFIG: $tagname
18848
18849__EOF__
18850
18851
18852else
18853 # If there is no Makefile yet, we rely on a make rule to execute
18854 # `config.status --recheck' to rerun these tests and create the
18855 # libtool script then.
18856 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18857 if test -f "$ltmain_in"; then
18858 test -f Makefile && make "$ltmain"
18859 fi
18860fi
18861
18862
18863ac_ext=c
18864ac_cpp='$CPP $CPPFLAGS'
18865ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18866ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18867ac_compiler_gnu=$ac_cv_c_compiler_gnu
18868
18869CC="$lt_save_CC"
18870
18871 ;;
18872
18873 *)
18874 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18875echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18876 { (exit 1); exit 1; }; }
18877 ;;
18878 esac
18879
18880 # Append the new tag name to the list of available tags.
18881 if test -n "$tagname" ; then
18882 available_tags="$available_tags $tagname"
18883 fi
18884 fi
18885 done
18886 IFS="$lt_save_ifs"
18887
18888 # Now substitute the updated list of available tags.
18889 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18890 mv "${ofile}T" "$ofile"
18891 chmod +x "$ofile"
18892 else
18893 rm -f "${ofile}T"
18894 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18895echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18896 { (exit 1); exit 1; }; }
18897 fi
18898fi
18899
18900
18901
18902# This can be used to rebuild libtool when needed
18903LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18904
18905# Always use our own libtool.
18906LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18907
18908# Prevent multiple expansion
18909
18910
18911
18912
18913
18914
18915
18916
18917
18918
18919
18920
18921
18922
18923
18924
18925
18926
18927
18928
bf9f3bac 18929
86933a6e
BB
18930
18931 echo "$as_me:$LINENO: checking spl license" >&5
18932echo $ECHO_N "checking spl license... $ECHO_C" >&6
18933 LICENSE=GPL
18934 echo "$as_me:$LINENO: result: $LICENSE" >&5
18935echo "${ECHO_T}$LICENSE" >&6
18936 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DHAVE_GPL_ONLY_SYMBOLS"
18937
18938
18939
18940 SPL_CONFIG=all
18941
18942# Check whether --with-config or --without-config was given.
18943if test "${with_config+set}" = set; then
18944 withval="$with_config"
18945 SPL_CONFIG="$withval"
18946fi;
18947
18948 echo "$as_me:$LINENO: checking spl config" >&5
18949echo $ECHO_N "checking spl config... $ECHO_C" >&6
18950 echo "$as_me:$LINENO: result: $SPL_CONFIG" >&5
18951echo "${ECHO_T}$SPL_CONFIG" >&6;
18952
18953
18954 case "$SPL_CONFIG" in
18955 kernel)
18956
18957
18958# Check whether --with-linux or --without-linux was given.
18959if test "${with_linux+set}" = set; then
18960 withval="$with_linux"
18961 kernelsrc="$withval"
18962fi;
18963
18964
18965# Check whether --with-linux-obj or --without-linux-obj was given.
18966if test "${with_linux_obj+set}" = set; then
18967 withval="$with_linux_obj"
18968 kernelbuild="$withval"
18969fi;
18970
18971 echo "$as_me:$LINENO: checking kernel source directory" >&5
18972echo $ECHO_N "checking kernel source directory... $ECHO_C" >&6
18973 if test -z "$kernelsrc"; then
18974 sourcelink=`ls -1d /usr/src/kernels/* /usr/src/linux-* \
18975 2>/dev/null | grep -v obj | tail -1`
18976
18977 if test -e ${sourcelink}; then
18978 kernelsrc=`readlink -f ${sourcelink}`
18979 else
18980 echo "$as_me:$LINENO: result: Not found" >&5
18981echo "${ECHO_T}Not found" >&6
18982 { { echo "$as_me:$LINENO: error:
18983 *** Please specify the location of the kernel source
18984 *** with the '--with-linux=PATH' option" >&5
18985echo "$as_me: error:
18986 *** Please specify the location of the kernel source
18987 *** with the '--with-linux=PATH' option" >&2;}
18988 { (exit 1); exit 1; }; }
18989 fi
18990 else
18991 if test "$kernelsrc" = "NONE"; then
18992 kernsrcver=NONE
18993 fi
18994 fi
18995
18996 echo "$as_me:$LINENO: result: $kernelsrc" >&5
18997echo "${ECHO_T}$kernelsrc" >&6
18998 echo "$as_me:$LINENO: checking kernel build directory" >&5
18999echo $ECHO_N "checking kernel build directory... $ECHO_C" >&6
19000 if test -z "$kernelbuild"; then
749e5eb1 19001 if test -d ${kernelsrc}-obj/`arch`/`arch`; then
86933a6e 19002 kernelbuild=${kernelsrc}-obj/`arch`/`arch`
749e5eb1
BB
19003 elif test -d ${kernelsrc}-obj/`arch`/default; then
19004 kernelbuild=${kernelsrc}-obj/`arch`/default
86933a6e
BB
19005 elif test -d `dirname ${kernelsrc}`/build-`arch`; then
19006 kernelbuild=`dirname ${kernelsrc}`/build-`arch`
19007 else
19008 kernelbuild=${kernelsrc}
19009 fi
19010 fi
19011 echo "$as_me:$LINENO: result: $kernelbuild" >&5
19012echo "${ECHO_T}$kernelbuild" >&6
19013
19014 echo "$as_me:$LINENO: checking kernel source version" >&5
19015echo $ECHO_N "checking kernel source version... $ECHO_C" >&6
19016 if test -r $kernelbuild/include/linux/version.h &&
19017 fgrep -q UTS_RELEASE $kernelbuild/include/linux/version.h; then
19018
19019 kernsrcver=`(echo "#include <linux/version.h>";
19020 echo "kernsrcver=UTS_RELEASE") |
19021 cpp -I $kernelbuild/include |
19022 grep "^kernsrcver=" | cut -d \" -f 2`
19023
19024 elif test -r $kernelbuild/include/linux/utsrelease.h &&
19025 fgrep -q UTS_RELEASE $kernelbuild/include/linux/utsrelease.h; then
19026
19027 kernsrcver=`(echo "#include <linux/utsrelease.h>";
19028 echo "kernsrcver=UTS_RELEASE") |
19029 cpp -I $kernelbuild/include |
19030 grep "^kernsrcver=" | cut -d \" -f 2`
19031 fi
19032
19033 if test -z "$kernsrcver"; then
19034 echo "$as_me:$LINENO: result: Not found" >&5
19035echo "${ECHO_T}Not found" >&6
19036 { { echo "$as_me:$LINENO: error:
19037 *** Cannot determine the version of the linux kernel source.
19038 *** Please prepare the kernel before running this script" >&5
19039echo "$as_me: error:
19040 *** Cannot determine the version of the linux kernel source.
19041 *** Please prepare the kernel before running this script" >&2;}
19042 { (exit 1); exit 1; }; }
19043 fi
19044
19045 echo "$as_me:$LINENO: result: $kernsrcver" >&5
19046echo "${ECHO_T}$kernsrcver" >&6
19047
19048 LINUX=${kernelsrc}
19049 LINUX_OBJ=${kernelbuild}
19050 LINUX_VERSION=${kernsrcver}
19051
19052
19053
19054
19055
19056
bb339d06 19057 modpost=$LINUX/scripts/Makefile.modpost
86933a6e
BB
19058 echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
19059echo $ECHO_N "checking kernel file name for module symbols... $ECHO_C" >&6
bb339d06
BB
19060 if test -f "$modpost"; then
19061 if grep -q Modules.symvers $modpost; then
19062 LINUX_SYMBOLS=Modules.symvers
19063 else
19064 LINUX_SYMBOLS=Module.symvers
19065 fi
86933a6e 19066 else
bb339d06 19067 LINUX_SYMBOLS=NONE
86933a6e
BB
19068 fi
19069 echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
19070echo "${ECHO_T}$LINUX_SYMBOLS" >&6
19071
19072
19073
19074
19075 KERNELMAKE_PARAMS="V=1"
19076
19077 abs_srcdir=`readlink -f ${srcdir}`
19078 KERNELCPPFLAGS="$KERNELCPPFLAGS -Wstrict-prototypes -Werror"
19079 KERNELCPPFLAGS="$KERNELCPPFLAGS -I${abs_srcdir} -I${abs_srcdir}/include"
19080
19081 if test "${LINUX_OBJ}" != "${LINUX}"; then
19082 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
19083 fi
19084
19085
19086
19087
19088
86933a6e
BB
19089 # Check whether --enable-debug or --disable-debug was given.
19090if test "${enable_debug+set}" = set; then
19091 enableval="$enable_debug"
86933a6e 19092
055ffd98
BB
19093else
19094 enable_debug=no
86933a6e 19095fi;
055ffd98
BB
19096
19097 if test "x$enable_debug" = xyes; then
19098 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG"
19099else
19100 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG"
19101fi
19102
19103
19104 echo "$as_me:$LINENO: checking whether debugging is enabled" >&5
19105echo $ECHO_N "checking whether debugging is enabled... $ECHO_C" >&6
19106 echo "$as_me:$LINENO: result: $enable_debug" >&5
19107echo "${ECHO_T}$enable_debug" >&6
86933a6e
BB
19108
19109
86933a6e
BB
19110 # Check whether --enable-debug-kmem or --disable-debug-kmem was given.
19111if test "${enable_debug_kmem+set}" = set; then
19112 enableval="$enable_debug_kmem"
86933a6e 19113
055ffd98
BB
19114else
19115 enable_debug_kmem=yes
86933a6e 19116fi;
055ffd98
BB
19117
19118 if test "x$enable_debug_kmem" = xyes; then
86933a6e
BB
19119
19120cat >>confdefs.h <<\_ACEOF
19121#define DEBUG_KMEM 1
19122_ACEOF
19123
19124 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM"
055ffd98 19125fi
86933a6e 19126
86933a6e 19127
055ffd98
BB
19128 echo "$as_me:$LINENO: checking whether basic kmem accounting is enabled" >&5
19129echo $ECHO_N "checking whether basic kmem accounting is enabled... $ECHO_C" >&6
19130 echo "$as_me:$LINENO: result: $enable_debug_kmem" >&5
19131echo "${ECHO_T}$enable_debug_kmem" >&6
86933a6e
BB
19132
19133
055ffd98
BB
19134 # Check whether --enable-debug-kmem-tracking or --disable-debug-kmem-tracking was given.
19135if test "${enable_debug_kmem_tracking+set}" = set; then
19136 enableval="$enable_debug_kmem_tracking"
86933a6e 19137
055ffd98
BB
19138else
19139 enable_debug_kmem_tracking=no
86933a6e 19140fi;
055ffd98
BB
19141
19142 if test "x$enable_debug_kmem_tracking" = xyes; then
86933a6e
BB
19143
19144cat >>confdefs.h <<\_ACEOF
055ffd98 19145#define DEBUG_KMEM_TRACKING 1
86933a6e
BB
19146_ACEOF
19147
055ffd98
BB
19148 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM_TRACKING"
19149fi
19150
19151
19152 echo "$as_me:$LINENO: checking whether detailed kmem tracking is enabled" >&5
19153echo $ECHO_N "checking whether detailed kmem tracking is enabled... $ECHO_C" >&6
19154 echo "$as_me:$LINENO: result: $enable_debug_kmem_tracking" >&5
19155echo "${ECHO_T}$enable_debug_kmem_tracking" >&6
86933a6e 19156
5e9b5d83
BB
19157
19158 # Check whether --enable-atomic-spinlocks or --disable-atomic-spinlocks was given.
19159if test "${enable_atomic_spinlocks+set}" = set; then
19160 enableval="$enable_atomic_spinlocks"
19161
19162else
19163 enable_atomic_spinlocks=no
19164fi;
19165
19166 if test "x$enable_atomic_spinlocks" = xyes; then
19167
19168cat >>confdefs.h <<\_ACEOF
19169#define ATOMIC_SPINLOCK 1
19170_ACEOF
19171
19172fi
19173
19174
19175 echo "$as_me:$LINENO: checking whether atomic types use spinlocks" >&5
19176echo $ECHO_N "checking whether atomic types use spinlocks... $ECHO_C" >&6
19177 echo "$as_me:$LINENO: result: $enable_atomic_spinlocks" >&5
19178echo "${ECHO_T}$enable_atomic_spinlocks" >&6
19179
86933a6e
BB
19180 echo "$as_me:$LINENO: checking whether kernel defines uintptr_t" >&5
19181echo $ECHO_N "checking whether kernel defines uintptr_t... $ECHO_C" >&6
19182
19183
19184cat >conftest.c <<_ACEOF
19185/* confdefs.h. */
19186_ACEOF
19187cat confdefs.h >>conftest.$ac_ext
19188cat >>conftest.$ac_ext <<_ACEOF
19189/* end confdefs.h. */
19190
19191
19192 #include <linux/types.h>
19193
19194int
19195main (void)
19196{
19197
19198 uintptr_t *ptr;
19199
19200 ;
19201 return 0;
19202}
19203
19204_ACEOF
19205
19206
19207 rm -Rf build && mkdir -p build
19208 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 19209 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
19210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19211 (eval $ac_try) 2>&5
19212 ac_status=$?
19213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19214 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19216 (eval $ac_try) 2>&5
19217 ac_status=$?
19218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19219 (exit $ac_status); }; }; then
19220
19221 echo "$as_me:$LINENO: result: yes" >&5
19222echo "${ECHO_T}yes" >&6
19223
19224cat >>confdefs.h <<\_ACEOF
19225#define HAVE_UINTPTR_T 1
19226_ACEOF
19227
19228
19229else
19230 echo "$as_me: failed program was:" >&5
19231sed 's/^/| /' conftest.$ac_ext >&5
19232
19233 echo "$as_me:$LINENO: result: no" >&5
19234echo "${ECHO_T}no" >&6
19235
19236
19237
19238fi
19239
19240 rm -Rf build
19241
19242
19243
19244 echo "$as_me:$LINENO: checking whether kernel defines atomic64_t" >&5
19245echo $ECHO_N "checking whether kernel defines atomic64_t... $ECHO_C" >&6
19246
19247
19248cat >conftest.c <<_ACEOF
19249/* confdefs.h. */
19250_ACEOF
19251cat confdefs.h >>conftest.$ac_ext
19252cat >>conftest.$ac_ext <<_ACEOF
19253/* end confdefs.h. */
19254
19255
19256 #include <asm/atomic.h>
19257
19258int
19259main (void)
19260{
19261
19262 atomic64_t *ptr;
19263
19264 ;
19265 return 0;
19266}
19267
19268_ACEOF
19269
19270
19271 rm -Rf build && mkdir -p build
19272 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 19273 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
19274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19275 (eval $ac_try) 2>&5
19276 ac_status=$?
19277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19278 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19280 (eval $ac_try) 2>&5
19281 ac_status=$?
19282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19283 (exit $ac_status); }; }; then
19284
19285 echo "$as_me:$LINENO: result: yes" >&5
19286echo "${ECHO_T}yes" >&6
19287
19288cat >>confdefs.h <<\_ACEOF
19289#define HAVE_ATOMIC64_T 1
19290_ACEOF
19291
19292
19293else
19294 echo "$as_me: failed program was:" >&5
19295sed 's/^/| /' conftest.$ac_ext >&5
19296
19297 echo "$as_me:$LINENO: result: no" >&5
19298echo "${ECHO_T}no" >&6
19299
19300
19301
302b88e6
BB
19302fi
19303
19304 rm -Rf build
19305
19306
19307
19308 echo "$as_me:$LINENO: checking whether kernel defines atomic64_cmpxchg" >&5
19309echo $ECHO_N "checking whether kernel defines atomic64_cmpxchg... $ECHO_C" >&6
19310
19311
19312cat >conftest.c <<_ACEOF
19313/* confdefs.h. */
19314_ACEOF
19315cat confdefs.h >>conftest.$ac_ext
19316cat >>conftest.$ac_ext <<_ACEOF
19317/* end confdefs.h. */
19318
19319
19320 #include <asm/atomic.h>
19321
19322int
19323main (void)
19324{
19325
19326 atomic64_cmpxchg((atomic64_t *)NULL, 0, 0);
19327
19328 ;
19329 return 0;
19330}
19331
19332_ACEOF
19333
19334
19335 rm -Rf build && mkdir -p build
19336 echo "obj-m := conftest.o" >build/Makefile
19337 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19339 (eval $ac_try) 2>&5
19340 ac_status=$?
19341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19342 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19344 (eval $ac_try) 2>&5
19345 ac_status=$?
19346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19347 (exit $ac_status); }; }; then
19348
19349 echo "$as_me:$LINENO: result: yes" >&5
19350echo "${ECHO_T}yes" >&6
19351
19352cat >>confdefs.h <<\_ACEOF
19353#define HAVE_ATOMIC64_CMPXCHG 1
19354_ACEOF
19355
19356
19357else
19358 echo "$as_me: failed program was:" >&5
19359sed 's/^/| /' conftest.$ac_ext >&5
19360
19361 echo "$as_me:$LINENO: result: no" >&5
19362echo "${ECHO_T}no" >&6
19363
19364
19365
19366fi
19367
19368 rm -Rf build
19369
19370
19371
19372 echo "$as_me:$LINENO: checking whether kernel defines atomic64_xchg" >&5
19373echo $ECHO_N "checking whether kernel defines atomic64_xchg... $ECHO_C" >&6
19374
19375
19376cat >conftest.c <<_ACEOF
19377/* confdefs.h. */
19378_ACEOF
19379cat confdefs.h >>conftest.$ac_ext
19380cat >>conftest.$ac_ext <<_ACEOF
19381/* end confdefs.h. */
19382
19383
19384 #include <asm/atomic.h>
19385
19386int
19387main (void)
19388{
19389
19390 atomic64_xchg((atomic64_t *)NULL, 0);
19391
19392 ;
19393 return 0;
19394}
19395
19396_ACEOF
19397
19398
19399 rm -Rf build && mkdir -p build
19400 echo "obj-m := conftest.o" >build/Makefile
19401 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19403 (eval $ac_try) 2>&5
19404 ac_status=$?
19405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19406 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19408 (eval $ac_try) 2>&5
19409 ac_status=$?
19410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19411 (exit $ac_status); }; }; then
19412
19413 echo "$as_me:$LINENO: result: yes" >&5
19414echo "${ECHO_T}yes" >&6
19415
19416cat >>confdefs.h <<\_ACEOF
19417#define HAVE_ATOMIC64_XCHG 1
19418_ACEOF
19419
19420
19421else
19422 echo "$as_me: failed program was:" >&5
19423sed 's/^/| /' conftest.$ac_ext >&5
19424
19425 echo "$as_me:$LINENO: result: no" >&5
19426echo "${ECHO_T}no" >&6
19427
19428
19429
86933a6e
BB
19430fi
19431
19432 rm -Rf build
19433
19434
19435
19436 echo "$as_me:$LINENO: checking whether INIT_WORK wants 3 args" >&5
19437echo $ECHO_N "checking whether INIT_WORK wants 3 args... $ECHO_C" >&6
19438
19439
19440cat >conftest.c <<_ACEOF
19441/* confdefs.h. */
19442_ACEOF
19443cat confdefs.h >>conftest.$ac_ext
19444cat >>conftest.$ac_ext <<_ACEOF
19445/* end confdefs.h. */
19446
19447
19448 #include <linux/workqueue.h>
19449
19450int
19451main (void)
19452{
19453
19454 struct work_struct work;
19455 INIT_WORK(&work, NULL, NULL);
19456
19457 ;
19458 return 0;
19459}
19460
19461_ACEOF
19462
19463
19464 rm -Rf build && mkdir -p build
19465 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 19466 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
19467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19468 (eval $ac_try) 2>&5
19469 ac_status=$?
19470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19471 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19473 (eval $ac_try) 2>&5
19474 ac_status=$?
19475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19476 (exit $ac_status); }; }; then
19477
19478 echo "$as_me:$LINENO: result: yes" >&5
19479echo "${ECHO_T}yes" >&6
19480
19481cat >>confdefs.h <<\_ACEOF
19482#define HAVE_3ARGS_INIT_WORK 1
19483_ACEOF
19484
19485
19486else
19487 echo "$as_me: failed program was:" >&5
19488sed 's/^/| /' conftest.$ac_ext >&5
19489
19490 echo "$as_me:$LINENO: result: no" >&5
19491echo "${ECHO_T}no" >&6
19492
19493
19494
19495fi
19496
19497 rm -Rf build
19498
19499
19500
19501 echo "$as_me:$LINENO: checking whether register_sysctl_table() wants 2 args" >&5
19502echo $ECHO_N "checking whether register_sysctl_table() wants 2 args... $ECHO_C" >&6
19503
19504
19505cat >conftest.c <<_ACEOF
19506/* confdefs.h. */
19507_ACEOF
19508cat confdefs.h >>conftest.$ac_ext
19509cat >>conftest.$ac_ext <<_ACEOF
19510/* end confdefs.h. */
19511
19512
19513 #include <linux/sysctl.h>
19514
19515int
19516main (void)
19517{
19518
19519 return register_sysctl_table(NULL,0);
19520
19521 ;
19522 return 0;
19523}
19524
19525_ACEOF
19526
19527
19528 rm -Rf build && mkdir -p build
19529 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 19530 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
19531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19532 (eval $ac_try) 2>&5
19533 ac_status=$?
19534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19535 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19537 (eval $ac_try) 2>&5
19538 ac_status=$?
19539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19540 (exit $ac_status); }; }; then
19541
19542 echo "$as_me:$LINENO: result: yes" >&5
19543echo "${ECHO_T}yes" >&6
19544
19545cat >>confdefs.h <<\_ACEOF
19546#define HAVE_2ARGS_REGISTER_SYSCTL 1
19547_ACEOF
19548
19549
19550else
19551 echo "$as_me: failed program was:" >&5
19552sed 's/^/| /' conftest.$ac_ext >&5
19553
19554 echo "$as_me:$LINENO: result: no" >&5
19555echo "${ECHO_T}no" >&6
19556
19557
19558
19559fi
19560
19561 rm -Rf build
19562
19563
19564
19565
19566 echo "$as_me:$LINENO: checking whether set_shrinker() available" >&5
19567echo $ECHO_N "checking whether set_shrinker() available... $ECHO_C" >&6
19568
19569
19570cat >conftest.c <<_ACEOF
19571/* confdefs.h. */
19572_ACEOF
19573cat confdefs.h >>conftest.$ac_ext
19574cat >>conftest.$ac_ext <<_ACEOF
19575/* end confdefs.h. */
19576
19577
19578 #include <linux/mm.h>
19579
19580int
19581main (void)
19582{
19583
19584 return set_shrinker(DEFAULT_SEEKS, NULL);
19585
19586 ;
19587 return 0;
19588}
19589
19590_ACEOF
19591
19592
19593 rm -Rf build && mkdir -p build
19594 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 19595 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
19596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19597 (eval $ac_try) 2>&5
19598 ac_status=$?
19599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19600 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19602 (eval $ac_try) 2>&5
19603 ac_status=$?
19604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19605 (exit $ac_status); }; }; then
19606
19607 echo "$as_me:$LINENO: result: yes" >&5
19608echo "${ECHO_T}yes" >&6
19609
19610cat >>confdefs.h <<\_ACEOF
19611#define HAVE_SET_SHRINKER 1
19612_ACEOF
19613
19614
19615else
19616 echo "$as_me: failed program was:" >&5
19617sed 's/^/| /' conftest.$ac_ext >&5
19618
19619 echo "$as_me:$LINENO: result: no" >&5
19620echo "${ECHO_T}no" >&6
19621
19622
19623
19624fi
19625
19626 rm -Rf build
19627
19628
19629
19630 echo "$as_me:$LINENO: checking whether struct path used in struct nameidata" >&5
19631echo $ECHO_N "checking whether struct path used in struct nameidata... $ECHO_C" >&6
19632
19633
19634cat >conftest.c <<_ACEOF
19635/* confdefs.h. */
19636_ACEOF
19637cat confdefs.h >>conftest.$ac_ext
19638cat >>conftest.$ac_ext <<_ACEOF
19639/* end confdefs.h. */
19640
19641
19642 #include <linux/namei.h>
19643
19644int
19645main (void)
19646{
19647
19648 struct nameidata nd;
19649
19650 nd.path.mnt = NULL;
19651 nd.path.dentry = NULL;
19652
19653 ;
19654 return 0;
19655}
19656
19657_ACEOF
19658
19659
19660 rm -Rf build && mkdir -p build
19661 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 19662 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
19663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19664 (eval $ac_try) 2>&5
19665 ac_status=$?
19666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19667 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19669 (eval $ac_try) 2>&5
19670 ac_status=$?
19671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19672 (exit $ac_status); }; }; then
19673
19674 echo "$as_me:$LINENO: result: yes" >&5
19675echo "${ECHO_T}yes" >&6
19676
19677cat >>confdefs.h <<\_ACEOF
19678#define HAVE_PATH_IN_NAMEIDATA 1
19679_ACEOF
19680
19681
19682else
19683 echo "$as_me: failed program was:" >&5
19684sed 's/^/| /' conftest.$ac_ext >&5
19685
19686 echo "$as_me:$LINENO: result: no" >&5
19687echo "${ECHO_T}no" >&6
19688
19689
19690
19691fi
19692
19693 rm -Rf build
19694
19695
19696
19697
19698 echo "$as_me:$LINENO: checking whether symbol task_curr is exported" >&5
19699echo $ECHO_N "checking whether symbol task_curr is exported... $ECHO_C" >&6
19700 grep -q -E '[[:space:]]task_curr[[:space:]]' \
19701 $LINUX_OBJ/Module*.symvers 2>/dev/null
19702 rc=$?
19703 if test $rc -ne 0; then
19704 export=0
19705 for file in kernel/sched.c; do
19706 grep -q -E "EXPORT_SYMBOL.*(task_curr)" \
19707 "$LINUX_OBJ/$file" 2>/dev/null
19708 rc=$?
19709 if test $rc -eq 0; then
19710 export=1
19711 break;
19712 fi
19713 done
19714 if test $export -eq 0; then
19715 echo "$as_me:$LINENO: result: no" >&5
19716echo "${ECHO_T}no" >&6
19717
19718 else
19719 echo "$as_me:$LINENO: result: yes" >&5
19720echo "${ECHO_T}yes" >&6
19721
19722cat >>confdefs.h <<\_ACEOF
19723#define HAVE_TASK_CURR 1
19724_ACEOF
19725
19726 fi
19727 else
19728 echo "$as_me:$LINENO: result: yes" >&5
19729echo "${ECHO_T}yes" >&6
19730
19731cat >>confdefs.h <<\_ACEOF
19732#define HAVE_TASK_CURR 1
19733_ACEOF
19734
19735 fi
19736
19737
19738 echo "$as_me:$LINENO: checking whether unnumbered sysctl support exists" >&5
19739echo $ECHO_N "checking whether unnumbered sysctl support exists... $ECHO_C" >&6
19740
19741
19742cat >conftest.c <<_ACEOF
19743/* confdefs.h. */
19744_ACEOF
19745cat confdefs.h >>conftest.$ac_ext
19746cat >>conftest.$ac_ext <<_ACEOF
19747/* end confdefs.h. */
19748
19749
19750 #include <linux/sysctl.h>
19751
19752int
19753main (void)
19754{
19755
19756 #ifndef CTL_UNNUMBERED
19757 #error CTL_UNNUMBERED undefined
19758 #endif
19759
19760 ;
19761 return 0;
19762}
19763
19764_ACEOF
19765
19766
19767 rm -Rf build && mkdir -p build
19768 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 19769 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
19770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19771 (eval $ac_try) 2>&5
19772 ac_status=$?
19773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19774 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19776 (eval $ac_try) 2>&5
19777 ac_status=$?
19778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19779 (exit $ac_status); }; }; then
19780
19781 echo "$as_me:$LINENO: result: yes" >&5
19782echo "${ECHO_T}yes" >&6
19783
19784cat >>confdefs.h <<\_ACEOF
19785#define HAVE_CTL_UNNUMBERED 1
19786_ACEOF
19787
19788
19789else
19790 echo "$as_me: failed program was:" >&5
19791sed 's/^/| /' conftest.$ac_ext >&5
19792
19793 echo "$as_me:$LINENO: result: no" >&5
19794echo "${ECHO_T}no" >&6
19795
19796
19797
19798fi
19799
19800 rm -Rf build
19801
19802
19803
19804 echo "$as_me:$LINENO: checking whether fls64() is available" >&5
19805echo $ECHO_N "checking whether fls64() is available... $ECHO_C" >&6
19806
19807
19808cat >conftest.c <<_ACEOF
19809/* confdefs.h. */
19810_ACEOF
19811cat confdefs.h >>conftest.$ac_ext
19812cat >>conftest.$ac_ext <<_ACEOF
19813/* end confdefs.h. */
19814
19815
19816 #include <linux/bitops.h>
19817
19818int
19819main (void)
19820{
19821
19822 return fls64(0);
19823
19824 ;
19825 return 0;
19826}
19827
19828_ACEOF
19829
19830
19831 rm -Rf build && mkdir -p build
19832 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 19833 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
19834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19835 (eval $ac_try) 2>&5
19836 ac_status=$?
19837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19838 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19840 (eval $ac_try) 2>&5
19841 ac_status=$?
19842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19843 (exit $ac_status); }; }; then
19844
19845 echo "$as_me:$LINENO: result: yes" >&5
19846echo "${ECHO_T}yes" >&6
19847
19848cat >>confdefs.h <<\_ACEOF
19849#define HAVE_FLS64 1
19850_ACEOF
19851
19852
19853else
19854 echo "$as_me: failed program was:" >&5
19855sed 's/^/| /' conftest.$ac_ext >&5
19856
19857 echo "$as_me:$LINENO: result: no" >&5
19858echo "${ECHO_T}no" >&6
19859
19860
19861
19862fi
19863
19864 rm -Rf build
19865
19866
19867
19868
19869 echo "$as_me:$LINENO: checking whether symbol device_create is exported" >&5
19870echo $ECHO_N "checking whether symbol device_create is exported... $ECHO_C" >&6
19871 grep -q -E '[[:space:]]device_create[[:space:]]' \
19872 $LINUX_OBJ/Module*.symvers 2>/dev/null
19873 rc=$?
19874 if test $rc -ne 0; then
19875 export=0
19876 for file in drivers/base/core.c; do
19877 grep -q -E "EXPORT_SYMBOL.*(device_create)" \
19878 "$LINUX_OBJ/$file" 2>/dev/null
19879 rc=$?
19880 if test $rc -eq 0; then
19881 export=1
19882 break;
19883 fi
19884 done
19885 if test $export -eq 0; then
19886 echo "$as_me:$LINENO: result: no" >&5
19887echo "${ECHO_T}no" >&6
19888
19889 else
19890 echo "$as_me:$LINENO: result: yes" >&5
19891echo "${ECHO_T}yes" >&6
19892
19893cat >>confdefs.h <<\_ACEOF
19894#define HAVE_DEVICE_CREATE 1
19895_ACEOF
19896
19897 fi
19898 else
19899 echo "$as_me:$LINENO: result: yes" >&5
19900echo "${ECHO_T}yes" >&6
19901
19902cat >>confdefs.h <<\_ACEOF
19903#define HAVE_DEVICE_CREATE 1
19904_ACEOF
19905
19906 fi
19907
19908
19909
19910 echo "$as_me:$LINENO: checking whether device_create() wants 5 args" >&5
19911echo $ECHO_N "checking whether device_create() wants 5 args... $ECHO_C" >&6
19912 tmp_flags="$EXTRA_KCFLAGS"
19913 EXTRA_KCFLAGS="-Werror"
19914
19915
19916cat >conftest.c <<_ACEOF
19917/* confdefs.h. */
19918_ACEOF
19919cat confdefs.h >>conftest.$ac_ext
19920cat >>conftest.$ac_ext <<_ACEOF
19921/* end confdefs.h. */
19922
19923
19924 #include <linux/device.h>
19925
19926int
19927main (void)
19928{
19929
19930 device_create(NULL, NULL, 0, NULL, "%d", 1);
19931
19932 ;
19933 return 0;
19934}
19935
19936_ACEOF
19937
19938
19939 rm -Rf build && mkdir -p build
19940 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 19941 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
19942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19943 (eval $ac_try) 2>&5
19944 ac_status=$?
19945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19946 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19948 (eval $ac_try) 2>&5
19949 ac_status=$?
19950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19951 (exit $ac_status); }; }; then
19952
19953 echo "$as_me:$LINENO: result: yes" >&5
19954echo "${ECHO_T}yes" >&6
19955
19956cat >>confdefs.h <<\_ACEOF
19957#define HAVE_5ARGS_DEVICE_CREATE 1
19958_ACEOF
19959
19960
19961else
19962 echo "$as_me: failed program was:" >&5
19963sed 's/^/| /' conftest.$ac_ext >&5
19964
19965 echo "$as_me:$LINENO: result: no" >&5
19966echo "${ECHO_T}no" >&6
19967
19968
19969
19970fi
19971
19972 rm -Rf build
19973
19974
19975 EXTRA_KCFLAGS="$tmp_flags"
19976
19977
19978 echo "$as_me:$LINENO: checking whether symbol class_device_create is exported" >&5
19979echo $ECHO_N "checking whether symbol class_device_create is exported... $ECHO_C" >&6
19980 grep -q -E '[[:space:]]class_device_create[[:space:]]' \
19981 $LINUX_OBJ/Module*.symvers 2>/dev/null
19982 rc=$?
19983 if test $rc -ne 0; then
19984 export=0
19985 for file in drivers/base/class.c; do
19986 grep -q -E "EXPORT_SYMBOL.*(class_device_create)" \
19987 "$LINUX_OBJ/$file" 2>/dev/null
19988 rc=$?
19989 if test $rc -eq 0; then
19990 export=1
19991 break;
19992 fi
19993 done
19994 if test $export -eq 0; then
19995 echo "$as_me:$LINENO: result: no" >&5
19996echo "${ECHO_T}no" >&6
19997
19998 else
19999 echo "$as_me:$LINENO: result: yes" >&5
20000echo "${ECHO_T}yes" >&6
20001
20002cat >>confdefs.h <<\_ACEOF
20003#define HAVE_CLASS_DEVICE_CREATE 1
20004_ACEOF
20005
20006 fi
20007 else
20008 echo "$as_me:$LINENO: result: yes" >&5
20009echo "${ECHO_T}yes" >&6
20010
20011cat >>confdefs.h <<\_ACEOF
20012#define HAVE_CLASS_DEVICE_CREATE 1
20013_ACEOF
20014
20015 fi
20016
20017
20018
20019 echo "$as_me:$LINENO: checking whether symbol set_normalized_timespec is exported" >&5
20020echo $ECHO_N "checking whether symbol set_normalized_timespec is exported... $ECHO_C" >&6
20021 grep -q -E '[[:space:]]set_normalized_timespec[[:space:]]' \
20022 $LINUX_OBJ/Module*.symvers 2>/dev/null
20023 rc=$?
20024 if test $rc -ne 0; then
20025 export=0
20026 for file in kernel/time.c; do
20027 grep -q -E "EXPORT_SYMBOL.*(set_normalized_timespec)" \
20028 "$LINUX_OBJ/$file" 2>/dev/null
20029 rc=$?
20030 if test $rc -eq 0; then
20031 export=1
20032 break;
20033 fi
20034 done
20035 if test $export -eq 0; then
20036 echo "$as_me:$LINENO: result: no" >&5
20037echo "${ECHO_T}no" >&6
20038
20039 else
20040 echo "$as_me:$LINENO: result: yes" >&5
20041echo "${ECHO_T}yes" >&6
20042
20043cat >>confdefs.h <<\_ACEOF
20044#define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1
20045_ACEOF
20046
20047 fi
20048 else
20049 echo "$as_me:$LINENO: result: yes" >&5
20050echo "${ECHO_T}yes" >&6
20051
20052cat >>confdefs.h <<\_ACEOF
20053#define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1
20054_ACEOF
20055
20056 fi
20057
20058
20059
20060 echo "$as_me:$LINENO: checking whether set_normalized_timespec() is an inline" >&5
20061echo $ECHO_N "checking whether set_normalized_timespec() is an inline... $ECHO_C" >&6
20062
20063
20064cat >conftest.c <<_ACEOF
20065/* confdefs.h. */
20066_ACEOF
20067cat confdefs.h >>conftest.$ac_ext
20068cat >>conftest.$ac_ext <<_ACEOF
20069/* end confdefs.h. */
20070
20071
20072 #include <linux/time.h>
20073 void set_normalized_timespec(struct timespec *ts,
20074 time_t sec, long nsec) { }
20075
20076int
20077main (void)
20078{
20079
20080 ;
20081 return 0;
20082}
20083
20084_ACEOF
20085
20086
20087 rm -Rf build && mkdir -p build
20088 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 20089 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
20090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20091 (eval $ac_try) 2>&5
20092 ac_status=$?
20093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20094 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20096 (eval $ac_try) 2>&5
20097 ac_status=$?
20098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20099 (exit $ac_status); }; }; then
20100
20101 echo "$as_me:$LINENO: result: no" >&5
20102echo "${ECHO_T}no" >&6
20103
20104else
20105 echo "$as_me: failed program was:" >&5
20106sed 's/^/| /' conftest.$ac_ext >&5
20107
20108 echo "$as_me:$LINENO: result: yes" >&5
20109echo "${ECHO_T}yes" >&6
20110
20111cat >>confdefs.h <<\_ACEOF
20112#define HAVE_SET_NORMALIZED_TIMESPEC_INLINE 1
20113_ACEOF
20114
20115
20116
20117
20118fi
20119
20120 rm -Rf build
20121
20122
20123
20124
20125 echo "$as_me:$LINENO: checking whether timespec_sub() is available" >&5
20126echo $ECHO_N "checking whether timespec_sub() is available... $ECHO_C" >&6
20127
20128
20129cat >conftest.c <<_ACEOF
20130/* confdefs.h. */
20131_ACEOF
20132cat confdefs.h >>conftest.$ac_ext
20133cat >>conftest.$ac_ext <<_ACEOF
20134/* end confdefs.h. */
20135
20136
20137 #include <linux/time.h>
20138
20139int
20140main (void)
20141{
20142
20143 struct timespec a, b, c = { 0 };
20144 c = timespec_sub(a, b);
20145
20146 ;
20147 return 0;
20148}
20149
20150_ACEOF
20151
20152
20153 rm -Rf build && mkdir -p build
20154 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 20155 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
20156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20157 (eval $ac_try) 2>&5
20158 ac_status=$?
20159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20160 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20162 (eval $ac_try) 2>&5
20163 ac_status=$?
20164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20165 (exit $ac_status); }; }; then
20166
20167 echo "$as_me:$LINENO: result: yes" >&5
20168echo "${ECHO_T}yes" >&6
20169
20170cat >>confdefs.h <<\_ACEOF
20171#define HAVE_TIMESPEC_SUB 1
20172_ACEOF
20173
20174
20175else
20176 echo "$as_me: failed program was:" >&5
20177sed 's/^/| /' conftest.$ac_ext >&5
20178
20179 echo "$as_me:$LINENO: result: no" >&5
20180echo "${ECHO_T}no" >&6
20181
20182
20183
20184fi
20185
20186 rm -Rf build
20187
20188
20189
20190
20191 echo "$as_me:$LINENO: checking whether init_utsname() is available" >&5
20192echo $ECHO_N "checking whether init_utsname() is available... $ECHO_C" >&6
20193
20194
20195cat >conftest.c <<_ACEOF
20196/* confdefs.h. */
20197_ACEOF
20198cat confdefs.h >>conftest.$ac_ext
20199cat >>conftest.$ac_ext <<_ACEOF
20200/* end confdefs.h. */
20201
20202
20203 #include <linux/utsname.h>
20204
20205int
20206main (void)
20207{
20208
20209 struct new_utsname *a = init_utsname();
20210
20211 ;
20212 return 0;
20213}
20214
20215_ACEOF
20216
20217
20218 rm -Rf build && mkdir -p build
20219 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 20220 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
20221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20222 (eval $ac_try) 2>&5
20223 ac_status=$?
20224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20225 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20227 (eval $ac_try) 2>&5
20228 ac_status=$?
20229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20230 (exit $ac_status); }; }; then
20231
20232 echo "$as_me:$LINENO: result: yes" >&5
20233echo "${ECHO_T}yes" >&6
20234
20235cat >>confdefs.h <<\_ACEOF
20236#define HAVE_INIT_UTSNAME 1
20237_ACEOF
20238
20239
20240else
20241 echo "$as_me: failed program was:" >&5
20242sed 's/^/| /' conftest.$ac_ext >&5
20243
20244 echo "$as_me:$LINENO: result: no" >&5
20245echo "${ECHO_T}no" >&6
20246
20247
20248
20249fi
20250
20251 rm -Rf build
20252
20253
20254
20255
20256 echo "$as_me:$LINENO: checking whether header linux/fdtable.h exists" >&5
20257echo $ECHO_N "checking whether header linux/fdtable.h exists... $ECHO_C" >&6
20258
20259
20260cat >conftest.c <<_ACEOF
20261/* confdefs.h. */
20262_ACEOF
20263cat confdefs.h >>conftest.$ac_ext
20264cat >>conftest.$ac_ext <<_ACEOF
20265/* end confdefs.h. */
20266
20267
20268 #include <linux/fdtable.h>
20269
20270int
20271main (void)
20272{
20273
20274 return 0;
20275
20276 ;
20277 return 0;
20278}
20279
20280_ACEOF
20281
20282
20283 rm -Rf build && mkdir -p build
20284 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 20285 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
20286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20287 (eval $ac_try) 2>&5
20288 ac_status=$?
20289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20290 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20292 (eval $ac_try) 2>&5
20293 ac_status=$?
20294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20295 (exit $ac_status); }; }; then
20296
20297
20298cat >>confdefs.h <<\_ACEOF
20299#define HAVE_FDTABLE_HEADER 1
20300_ACEOF
20301
20302 echo "$as_me:$LINENO: result: yes" >&5
20303echo "${ECHO_T}yes" >&6
20304
20305
20306else
20307 echo "$as_me: failed program was:" >&5
20308sed 's/^/| /' conftest.$ac_ext >&5
20309
20310 echo "$as_me:$LINENO: result: no" >&5
20311echo "${ECHO_T}no" >&6
20312
20313
20314
20315
20316fi
20317
20318 rm -Rf build
20319
20320
20321
20322
20323
20324 echo "$as_me:$LINENO: checking whether files_fdtable() is available" >&5
20325echo $ECHO_N "checking whether files_fdtable() is available... $ECHO_C" >&6
20326
20327
20328cat >conftest.c <<_ACEOF
20329/* confdefs.h. */
20330_ACEOF
20331cat confdefs.h >>conftest.$ac_ext
20332cat >>conftest.$ac_ext <<_ACEOF
20333/* end confdefs.h. */
20334
20335
20336 #include <linux/sched.h>
20337 #include <linux/file.h>
20338 #ifdef HAVE_FDTABLE_HEADER
20339 #include <linux/fdtable.h>
20340 #endif
20341
20342int
20343main (void)
20344{
20345
20346 struct files_struct *files = current->files;
20347 struct fdtable *fdt = files_fdtable(files);
20348
20349 ;
20350 return 0;
20351}
20352
20353_ACEOF
20354
20355
20356 rm -Rf build && mkdir -p build
20357 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 20358 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
20359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20360 (eval $ac_try) 2>&5
20361 ac_status=$?
20362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20363 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20365 (eval $ac_try) 2>&5
20366 ac_status=$?
20367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20368 (exit $ac_status); }; }; then
20369
20370 echo "$as_me:$LINENO: result: yes" >&5
20371echo "${ECHO_T}yes" >&6
20372
20373cat >>confdefs.h <<\_ACEOF
20374#define HAVE_FILES_FDTABLE 1
20375_ACEOF
20376
20377
20378else
20379 echo "$as_me: failed program was:" >&5
20380sed 's/^/| /' conftest.$ac_ext >&5
20381
20382 echo "$as_me:$LINENO: result: no" >&5
20383echo "${ECHO_T}no" >&6
20384
20385
20386
20387fi
20388
20389 rm -Rf build
20390
20391
20392
20393
20394 echo "$as_me:$LINENO: checking whether header linux/uaccess.h exists" >&5
20395echo $ECHO_N "checking whether header linux/uaccess.h exists... $ECHO_C" >&6
20396
20397
20398cat >conftest.c <<_ACEOF
20399/* confdefs.h. */
20400_ACEOF
20401cat confdefs.h >>conftest.$ac_ext
20402cat >>conftest.$ac_ext <<_ACEOF
20403/* end confdefs.h. */
20404
20405
20406 #include <linux/uaccess.h>
20407
20408int
20409main (void)
20410{
20411
20412 return 0;
20413
20414 ;
20415 return 0;
20416}
20417
20418_ACEOF
20419
20420
20421 rm -Rf build && mkdir -p build
20422 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 20423 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
20424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20425 (eval $ac_try) 2>&5
20426 ac_status=$?
20427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20428 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20430 (eval $ac_try) 2>&5
20431 ac_status=$?
20432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20433 (exit $ac_status); }; }; then
20434
20435
20436cat >>confdefs.h <<\_ACEOF
20437#define HAVE_UACCESS_HEADER 1
20438_ACEOF
20439
20440 echo "$as_me:$LINENO: result: yes" >&5
20441echo "${ECHO_T}yes" >&6
20442
20443
20444else
20445 echo "$as_me: failed program was:" >&5
20446sed 's/^/| /' conftest.$ac_ext >&5
20447
20448 echo "$as_me:$LINENO: result: no" >&5
20449echo "${ECHO_T}no" >&6
20450
20451
20452
20453
20454fi
20455
20456 rm -Rf build
20457
20458
20459
20460
20461
20462 echo "$as_me:$LINENO: checking whether kmalloc_node() is available" >&5
20463echo $ECHO_N "checking whether kmalloc_node() is available... $ECHO_C" >&6
20464
20465
20466cat >conftest.c <<_ACEOF
20467/* confdefs.h. */
20468_ACEOF
20469cat confdefs.h >>conftest.$ac_ext
20470cat >>conftest.$ac_ext <<_ACEOF
20471/* end confdefs.h. */
20472
20473
20474 #include <linux/slab.h>
20475
20476int
20477main (void)
20478{
20479
20480 void *a = kmalloc_node(1, GFP_KERNEL, 0);
20481
20482 ;
20483 return 0;
20484}
20485
20486_ACEOF
20487
20488
20489 rm -Rf build && mkdir -p build
20490 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 20491 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
20492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20493 (eval $ac_try) 2>&5
20494 ac_status=$?
20495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20496 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20498 (eval $ac_try) 2>&5
20499 ac_status=$?
20500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20501 (exit $ac_status); }; }; then
20502
20503 echo "$as_me:$LINENO: result: yes" >&5
20504echo "${ECHO_T}yes" >&6
20505
20506cat >>confdefs.h <<\_ACEOF
20507#define HAVE_KMALLOC_NODE 1
20508_ACEOF
20509
20510
20511else
20512 echo "$as_me: failed program was:" >&5
20513sed 's/^/| /' conftest.$ac_ext >&5
20514
20515 echo "$as_me:$LINENO: result: no" >&5
20516echo "${ECHO_T}no" >&6
20517
20518
20519
20520fi
20521
20522 rm -Rf build
20523
20524
20525
20526
20527 echo "$as_me:$LINENO: checking whether symbol monotonic_clock is exported" >&5
20528echo $ECHO_N "checking whether symbol monotonic_clock is exported... $ECHO_C" >&6
20529 grep -q -E '[[:space:]]monotonic_clock[[:space:]]' \
20530 $LINUX_OBJ/Module*.symvers 2>/dev/null
20531 rc=$?
20532 if test $rc -ne 0; then
20533 export=0
20534 for file in ; do
20535 grep -q -E "EXPORT_SYMBOL.*(monotonic_clock)" \
20536 "$LINUX_OBJ/$file" 2>/dev/null
20537 rc=$?
20538 if test $rc -eq 0; then
20539 export=1
20540 break;
20541 fi
20542 done
20543 if test $export -eq 0; then
20544 echo "$as_me:$LINENO: result: no" >&5
20545echo "${ECHO_T}no" >&6
20546
20547 else
20548 echo "$as_me:$LINENO: result: yes" >&5
20549echo "${ECHO_T}yes" >&6
20550
20551cat >>confdefs.h <<\_ACEOF
20552#define HAVE_MONOTONIC_CLOCK 1
20553_ACEOF
20554
20555 fi
20556 else
20557 echo "$as_me:$LINENO: result: yes" >&5
20558echo "${ECHO_T}yes" >&6
20559
20560cat >>confdefs.h <<\_ACEOF
20561#define HAVE_MONOTONIC_CLOCK 1
20562_ACEOF
20563
20564 fi
20565
20566
20567
20568 echo "$as_me:$LINENO: checking whether struct inode has i_mutex" >&5
20569echo $ECHO_N "checking whether struct inode has i_mutex... $ECHO_C" >&6
20570
20571
20572cat >conftest.c <<_ACEOF
20573/* confdefs.h. */
20574_ACEOF
20575cat confdefs.h >>conftest.$ac_ext
20576cat >>conftest.$ac_ext <<_ACEOF
20577/* end confdefs.h. */
20578
20579
20580 #include <linux/fs.h>
20581 #include <linux/mutex.h>
20582
20583int
20584main (void)
20585{
20586
20587 struct inode i;
20588 mutex_init(&i.i_mutex);
20589
20590 ;
20591 return 0;
20592}
20593
20594_ACEOF
20595
20596
20597 rm -Rf build && mkdir -p build
20598 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 20599 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
20600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20601 (eval $ac_try) 2>&5
20602 ac_status=$?
20603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20604 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20606 (eval $ac_try) 2>&5
20607 ac_status=$?
20608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20609 (exit $ac_status); }; }; then
20610
20611 echo "$as_me:$LINENO: result: yes" >&5
20612echo "${ECHO_T}yes" >&6
20613
20614cat >>confdefs.h <<\_ACEOF
20615#define HAVE_INODE_I_MUTEX 1
20616_ACEOF
20617
20618
20619else
20620 echo "$as_me: failed program was:" >&5
20621sed 's/^/| /' conftest.$ac_ext >&5
20622
20623 echo "$as_me:$LINENO: result: no" >&5
20624echo "${ECHO_T}no" >&6
20625
20626
20627
20628fi
20629
20630 rm -Rf build
20631
20632
20633
20634
4d54fdee
BB
20635 echo "$as_me:$LINENO: checking whether struct mutex has owner" >&5
20636echo $ECHO_N "checking whether struct mutex has owner... $ECHO_C" >&6
20637
20638
20639cat >conftest.c <<_ACEOF
20640/* confdefs.h. */
20641_ACEOF
20642cat confdefs.h >>conftest.$ac_ext
20643cat >>conftest.$ac_ext <<_ACEOF
20644/* end confdefs.h. */
20645
20646
20647 #include <linux/mutex.h>
20648
20649int
20650main (void)
20651{
20652
20653 struct mutex mtx;
20654 mtx.owner = NULL;
20655
20656 ;
20657 return 0;
20658}
20659
20660_ACEOF
20661
20662
20663 rm -Rf build && mkdir -p build
20664 echo "obj-m := conftest.o" >build/Makefile
20665 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20667 (eval $ac_try) 2>&5
20668 ac_status=$?
20669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20670 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20672 (eval $ac_try) 2>&5
20673 ac_status=$?
20674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20675 (exit $ac_status); }; }; then
20676
20677 echo "$as_me:$LINENO: result: yes" >&5
20678echo "${ECHO_T}yes" >&6
20679
20680cat >>confdefs.h <<\_ACEOF
20681#define HAVE_MUTEX_OWNER 1
20682_ACEOF
20683
20684
20685else
20686 echo "$as_me: failed program was:" >&5
20687sed 's/^/| /' conftest.$ac_ext >&5
20688
20689 echo "$as_me:$LINENO: result: no" >&5
20690echo "${ECHO_T}no" >&6
20691
20692
20693
20694fi
20695
20696 rm -Rf build
20697
20698
20699
20700
86933a6e
BB
20701 echo "$as_me:$LINENO: checking whether mutex_lock_nested() is available" >&5
20702echo $ECHO_N "checking whether mutex_lock_nested() is available... $ECHO_C" >&6
20703
20704
20705cat >conftest.c <<_ACEOF
20706/* confdefs.h. */
20707_ACEOF
20708cat confdefs.h >>conftest.$ac_ext
20709cat >>conftest.$ac_ext <<_ACEOF
20710/* end confdefs.h. */
20711
20712
20713 #include <linux/mutex.h>
20714
20715int
20716main (void)
20717{
20718
20719 struct mutex mutex;
20720 mutex_init(&mutex);
20721 mutex_lock_nested(&mutex, 0);
20722
20723 ;
20724 return 0;
20725}
20726
20727_ACEOF
20728
20729
20730 rm -Rf build && mkdir -p build
20731 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 20732 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
20733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20734 (eval $ac_try) 2>&5
20735 ac_status=$?
20736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20737 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20739 (eval $ac_try) 2>&5
20740 ac_status=$?
20741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20742 (exit $ac_status); }; }; then
20743
20744 echo "$as_me:$LINENO: result: yes" >&5
20745echo "${ECHO_T}yes" >&6
20746
20747cat >>confdefs.h <<\_ACEOF
20748#define HAVE_MUTEX_LOCK_NESTED 1
20749_ACEOF
20750
20751
20752else
20753 echo "$as_me: failed program was:" >&5
20754sed 's/^/| /' conftest.$ac_ext >&5
20755
20756 echo "$as_me:$LINENO: result: no" >&5
20757echo "${ECHO_T}no" >&6
20758
20759
20760
20761fi
20762
20763 rm -Rf build
20764
20765
20766
20767
20768 echo "$as_me:$LINENO: checking whether symbol div64_64 is exported" >&5
20769echo $ECHO_N "checking whether symbol div64_64 is exported... $ECHO_C" >&6
20770 grep -q -E '[[:space:]]div64_64[[:space:]]' \
20771 $LINUX_OBJ/Module*.symvers 2>/dev/null
20772 rc=$?
20773 if test $rc -ne 0; then
20774 export=0
20775 for file in ; do
20776 grep -q -E "EXPORT_SYMBOL.*(div64_64)" \
20777 "$LINUX_OBJ/$file" 2>/dev/null
20778 rc=$?
20779 if test $rc -eq 0; then
20780 export=1
20781 break;
20782 fi
20783 done
20784 if test $export -eq 0; then
20785 echo "$as_me:$LINENO: result: no" >&5
20786echo "${ECHO_T}no" >&6
20787
20788 else
20789 echo "$as_me:$LINENO: result: yes" >&5
20790echo "${ECHO_T}yes" >&6
20791
20792cat >>confdefs.h <<\_ACEOF
20793#define HAVE_DIV64_64 1
20794_ACEOF
20795
20796 fi
20797 else
20798 echo "$as_me:$LINENO: result: yes" >&5
20799echo "${ECHO_T}yes" >&6
20800
20801cat >>confdefs.h <<\_ACEOF
20802#define HAVE_DIV64_64 1
20803_ACEOF
20804
20805 fi
20806
20807
20808
20809 echo "$as_me:$LINENO: checking whether symbol div64_u64 is exported" >&5
20810echo $ECHO_N "checking whether symbol div64_u64 is exported... $ECHO_C" >&6
20811 grep -q -E '[[:space:]]div64_u64[[:space:]]' \
20812 $LINUX_OBJ/Module*.symvers 2>/dev/null
20813 rc=$?
20814 if test $rc -ne 0; then
20815 export=0
20816 for file in ; do
20817 grep -q -E "EXPORT_SYMBOL.*(div64_u64)" \
20818 "$LINUX_OBJ/$file" 2>/dev/null
20819 rc=$?
20820 if test $rc -eq 0; then
20821 export=1
20822 break;
20823 fi
20824 done
20825 if test $export -eq 0; then
20826 echo "$as_me:$LINENO: result: no" >&5
20827echo "${ECHO_T}no" >&6
20828
20829 else
20830 echo "$as_me:$LINENO: result: yes" >&5
20831echo "${ECHO_T}yes" >&6
20832
20833cat >>confdefs.h <<\_ACEOF
20834#define HAVE_DIV64_U64 1
20835_ACEOF
20836
20837 fi
20838 else
20839 echo "$as_me:$LINENO: result: yes" >&5
20840echo "${ECHO_T}yes" >&6
20841
20842cat >>confdefs.h <<\_ACEOF
20843#define HAVE_DIV64_U64 1
20844_ACEOF
20845
20846 fi
20847
20848
20849
20850 echo "$as_me:$LINENO: checking whether on_each_cpu() wants 3 args" >&5
20851echo $ECHO_N "checking whether on_each_cpu() wants 3 args... $ECHO_C" >&6
20852
20853
20854cat >conftest.c <<_ACEOF
20855/* confdefs.h. */
20856_ACEOF
20857cat confdefs.h >>conftest.$ac_ext
20858cat >>conftest.$ac_ext <<_ACEOF
20859/* end confdefs.h. */
20860
20861
20862 #include <linux/smp.h>
20863
20864int
20865main (void)
20866{
20867
20868 on_each_cpu(NULL, NULL, 0);
20869
20870 ;
20871 return 0;
20872}
20873
20874_ACEOF
20875
20876
20877 rm -Rf build && mkdir -p build
20878 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 20879 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
20880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20881 (eval $ac_try) 2>&5
20882 ac_status=$?
20883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20884 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20886 (eval $ac_try) 2>&5
20887 ac_status=$?
20888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20889 (exit $ac_status); }; }; then
20890
20891 echo "$as_me:$LINENO: result: yes" >&5
20892echo "${ECHO_T}yes" >&6
20893
20894cat >>confdefs.h <<\_ACEOF
20895#define HAVE_3ARGS_ON_EACH_CPU 1
20896_ACEOF
20897
20898
20899else
20900 echo "$as_me: failed program was:" >&5
20901sed 's/^/| /' conftest.$ac_ext >&5
20902
20903 echo "$as_me:$LINENO: result: no" >&5
20904echo "${ECHO_T}no" >&6
20905
20906
20907
20908fi
20909
20910 rm -Rf build
20911
20912
20913
20914
20915 echo "$as_me:$LINENO: checking whether symbol kallsyms_lookup_name is exported" >&5
20916echo $ECHO_N "checking whether symbol kallsyms_lookup_name is exported... $ECHO_C" >&6
20917 grep -q -E '[[:space:]]kallsyms_lookup_name[[:space:]]' \
20918 $LINUX_OBJ/Module*.symvers 2>/dev/null
20919 rc=$?
20920 if test $rc -ne 0; then
20921 export=0
20922 for file in ; do
20923 grep -q -E "EXPORT_SYMBOL.*(kallsyms_lookup_name)" \
20924 "$LINUX_OBJ/$file" 2>/dev/null
20925 rc=$?
20926 if test $rc -eq 0; then
20927 export=1
20928 break;
20929 fi
20930 done
20931 if test $export -eq 0; then
20932 echo "$as_me:$LINENO: result: no" >&5
20933echo "${ECHO_T}no" >&6
20934
20935 else
20936 echo "$as_me:$LINENO: result: yes" >&5
20937echo "${ECHO_T}yes" >&6
20938
20939cat >>confdefs.h <<\_ACEOF
20940#define HAVE_KALLSYMS_LOOKUP_NAME 1
20941_ACEOF
20942
20943 fi
20944 else
20945 echo "$as_me:$LINENO: result: yes" >&5
20946echo "${ECHO_T}yes" >&6
20947
20948cat >>confdefs.h <<\_ACEOF
20949#define HAVE_KALLSYMS_LOOKUP_NAME 1
20950_ACEOF
20951
20952 fi
20953
20954
20955
20956 echo "$as_me:$LINENO: checking whether symbol get_vmalloc_info is exported" >&5
20957echo $ECHO_N "checking whether symbol get_vmalloc_info is exported... $ECHO_C" >&6
20958 grep -q -E '[[:space:]]get_vmalloc_info[[:space:]]' \
20959 $LINUX_OBJ/Module*.symvers 2>/dev/null
20960 rc=$?
20961 if test $rc -ne 0; then
20962 export=0
20963 for file in ; do
20964 grep -q -E "EXPORT_SYMBOL.*(get_vmalloc_info)" \
20965 "$LINUX_OBJ/$file" 2>/dev/null
20966 rc=$?
20967 if test $rc -eq 0; then
20968 export=1
20969 break;
20970 fi
20971 done
20972 if test $export -eq 0; then
20973 echo "$as_me:$LINENO: result: no" >&5
20974echo "${ECHO_T}no" >&6
20975
20976 else
20977 echo "$as_me:$LINENO: result: yes" >&5
20978echo "${ECHO_T}yes" >&6
20979
20980cat >>confdefs.h <<\_ACEOF
20981#define HAVE_GET_VMALLOC_INFO 1
20982_ACEOF
20983
20984 fi
20985 else
20986 echo "$as_me:$LINENO: result: yes" >&5
20987echo "${ECHO_T}yes" >&6
20988
20989cat >>confdefs.h <<\_ACEOF
20990#define HAVE_GET_VMALLOC_INFO 1
20991_ACEOF
20992
20993 fi
20994
20995
20996
20997 echo "$as_me:$LINENO: checking whether symbol *_pgdat exist" >&5
20998echo $ECHO_N "checking whether symbol *_pgdat exist... $ECHO_C" >&6
20999 grep -q -E 'first_online_pgdat' $LINUX/include/linux/mmzone.h 2>/dev/null
21000 rc=$?
21001 if test $rc -eq 0; then
21002 echo "$as_me:$LINENO: result: yes" >&5
21003echo "${ECHO_T}yes" >&6
21004
21005cat >>confdefs.h <<\_ACEOF
21006#define HAVE_PGDAT_HELPERS 1
21007_ACEOF
21008
21009 else
21010 echo "$as_me:$LINENO: result: no" >&5
21011echo "${ECHO_T}no" >&6
21012 fi
21013
21014
21015 echo "$as_me:$LINENO: checking whether symbol first_online_pgdat is exported" >&5
21016echo $ECHO_N "checking whether symbol first_online_pgdat is exported... $ECHO_C" >&6
21017 grep -q -E '[[:space:]]first_online_pgdat[[:space:]]' \
21018 $LINUX_OBJ/Module*.symvers 2>/dev/null
21019 rc=$?
21020 if test $rc -ne 0; then
21021 export=0
21022 for file in ; do
21023 grep -q -E "EXPORT_SYMBOL.*(first_online_pgdat)" \
21024 "$LINUX_OBJ/$file" 2>/dev/null
21025 rc=$?
21026 if test $rc -eq 0; then
21027 export=1
21028 break;
21029 fi
21030 done
21031 if test $export -eq 0; then
21032 echo "$as_me:$LINENO: result: no" >&5
21033echo "${ECHO_T}no" >&6
21034
21035 else
21036 echo "$as_me:$LINENO: result: yes" >&5
21037echo "${ECHO_T}yes" >&6
21038
21039cat >>confdefs.h <<\_ACEOF
21040#define HAVE_FIRST_ONLINE_PGDAT 1
21041_ACEOF
21042
21043 fi
21044 else
21045 echo "$as_me:$LINENO: result: yes" >&5
21046echo "${ECHO_T}yes" >&6
21047
21048cat >>confdefs.h <<\_ACEOF
21049#define HAVE_FIRST_ONLINE_PGDAT 1
21050_ACEOF
21051
21052 fi
21053
21054
21055
21056 echo "$as_me:$LINENO: checking whether symbol next_online_pgdat is exported" >&5
21057echo $ECHO_N "checking whether symbol next_online_pgdat is exported... $ECHO_C" >&6
21058 grep -q -E '[[:space:]]next_online_pgdat[[:space:]]' \
21059 $LINUX_OBJ/Module*.symvers 2>/dev/null
21060 rc=$?
21061 if test $rc -ne 0; then
21062 export=0
21063 for file in ; do
21064 grep -q -E "EXPORT_SYMBOL.*(next_online_pgdat)" \
21065 "$LINUX_OBJ/$file" 2>/dev/null
21066 rc=$?
21067 if test $rc -eq 0; then
21068 export=1
21069 break;
21070 fi
21071 done
21072 if test $export -eq 0; then
21073 echo "$as_me:$LINENO: result: no" >&5
21074echo "${ECHO_T}no" >&6
21075
21076 else
21077 echo "$as_me:$LINENO: result: yes" >&5
21078echo "${ECHO_T}yes" >&6
21079
21080cat >>confdefs.h <<\_ACEOF
21081#define HAVE_NEXT_ONLINE_PGDAT 1
21082_ACEOF
21083
21084 fi
21085 else
21086 echo "$as_me:$LINENO: result: yes" >&5
21087echo "${ECHO_T}yes" >&6
21088
21089cat >>confdefs.h <<\_ACEOF
21090#define HAVE_NEXT_ONLINE_PGDAT 1
21091_ACEOF
21092
21093 fi
21094
21095
21096
21097 echo "$as_me:$LINENO: checking whether symbol next_zone is exported" >&5
21098echo $ECHO_N "checking whether symbol next_zone is exported... $ECHO_C" >&6
21099 grep -q -E '[[:space:]]next_zone[[:space:]]' \
21100 $LINUX_OBJ/Module*.symvers 2>/dev/null
21101 rc=$?
21102 if test $rc -ne 0; then
21103 export=0
21104 for file in ; do
21105 grep -q -E "EXPORT_SYMBOL.*(next_zone)" \
21106 "$LINUX_OBJ/$file" 2>/dev/null
21107 rc=$?
21108 if test $rc -eq 0; then
21109 export=1
21110 break;
21111 fi
21112 done
21113 if test $export -eq 0; then
21114 echo "$as_me:$LINENO: result: no" >&5
21115echo "${ECHO_T}no" >&6
21116
21117 else
21118 echo "$as_me:$LINENO: result: yes" >&5
21119echo "${ECHO_T}yes" >&6
21120
21121cat >>confdefs.h <<\_ACEOF
21122#define HAVE_NEXT_ZONE 1
21123_ACEOF
21124
21125 fi
21126 else
21127 echo "$as_me:$LINENO: result: yes" >&5
21128echo "${ECHO_T}yes" >&6
21129
21130cat >>confdefs.h <<\_ACEOF
21131#define HAVE_NEXT_ZONE 1
21132_ACEOF
21133
21134 fi
21135
21136
21137
21138 echo "$as_me:$LINENO: checking whether symbol pgdat_list is exported" >&5
21139echo $ECHO_N "checking whether symbol pgdat_list is exported... $ECHO_C" >&6
21140 grep -q -E '[[:space:]]pgdat_list[[:space:]]' \
21141 $LINUX_OBJ/Module*.symvers 2>/dev/null
21142 rc=$?
21143 if test $rc -ne 0; then
21144 export=0
21145 for file in ; do
21146 grep -q -E "EXPORT_SYMBOL.*(pgdat_list)" \
21147 "$LINUX_OBJ/$file" 2>/dev/null
21148 rc=$?
21149 if test $rc -eq 0; then
21150 export=1
21151 break;
21152 fi
21153 done
21154 if test $export -eq 0; then
21155 echo "$as_me:$LINENO: result: no" >&5
21156echo "${ECHO_T}no" >&6
21157
21158 else
21159 echo "$as_me:$LINENO: result: yes" >&5
21160echo "${ECHO_T}yes" >&6
21161
21162cat >>confdefs.h <<\_ACEOF
21163#define HAVE_PGDAT_LIST 1
21164_ACEOF
21165
21166 fi
21167 else
21168 echo "$as_me:$LINENO: result: yes" >&5
21169echo "${ECHO_T}yes" >&6
21170
21171cat >>confdefs.h <<\_ACEOF
21172#define HAVE_PGDAT_LIST 1
21173_ACEOF
21174
21175 fi
21176
21177
21178
6ae7fef5
BB
21179 echo "$as_me:$LINENO: checking whether global_page_state() is available" >&5
21180echo $ECHO_N "checking whether global_page_state() is available... $ECHO_C" >&6
86933a6e 21181
86933a6e 21182
6ae7fef5
BB
21183cat >conftest.c <<_ACEOF
21184/* confdefs.h. */
86933a6e 21185_ACEOF
6ae7fef5
BB
21186cat confdefs.h >>conftest.$ac_ext
21187cat >>conftest.$ac_ext <<_ACEOF
21188/* end confdefs.h. */
21189
21190
21191 #include <linux/mm.h>
21192
21193int
21194main (void)
21195{
21196
21197 unsigned long state;
21198 state = global_page_state(0);
21199
21200 ;
21201 return 0;
21202}
21203
21204_ACEOF
21205
21206
21207 rm -Rf build && mkdir -p build
21208 echo "obj-m := conftest.o" >build/Makefile
21209 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
21210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21211 (eval $ac_try) 2>&5
21212 ac_status=$?
21213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21214 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21216 (eval $ac_try) 2>&5
21217 ac_status=$?
21218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21219 (exit $ac_status); }; }; then
86933a6e 21220
86933a6e
BB
21221 echo "$as_me:$LINENO: result: yes" >&5
21222echo "${ECHO_T}yes" >&6
21223
21224cat >>confdefs.h <<\_ACEOF
6ae7fef5 21225#define HAVE_GLOBAL_PAGE_STATE 1
86933a6e
BB
21226_ACEOF
21227
6ae7fef5
BB
21228
21229else
21230 echo "$as_me: failed program was:" >&5
21231sed 's/^/| /' conftest.$ac_ext >&5
21232
21233 echo "$as_me:$LINENO: result: no" >&5
21234echo "${ECHO_T}no" >&6
21235
21236
21237
21238fi
21239
21240 rm -Rf build
86933a6e
BB
21241
21242
21243
6ae7fef5
BB
21244
21245 echo "$as_me:$LINENO: checking whether page state NR_FREE_PAGES is available" >&5
21246echo $ECHO_N "checking whether page state NR_FREE_PAGES is available... $ECHO_C" >&6
86933a6e
BB
21247
21248
21249cat >conftest.c <<_ACEOF
21250/* confdefs.h. */
21251_ACEOF
21252cat confdefs.h >>conftest.$ac_ext
21253cat >>conftest.$ac_ext <<_ACEOF
21254/* end confdefs.h. */
21255
21256
6ae7fef5 21257 #include <linux/mm.h>
86933a6e
BB
21258
21259int
21260main (void)
21261{
21262
6ae7fef5
BB
21263 enum zone_stat_item zsi;
21264 zsi = NR_FREE_PAGES;
86933a6e
BB
21265
21266 ;
21267 return 0;
21268}
21269
21270_ACEOF
21271
21272
21273 rm -Rf build && mkdir -p build
21274 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 21275 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
21276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21277 (eval $ac_try) 2>&5
21278 ac_status=$?
21279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21280 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21282 (eval $ac_try) 2>&5
21283 ac_status=$?
21284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21285 (exit $ac_status); }; }; then
21286
21287 echo "$as_me:$LINENO: result: yes" >&5
21288echo "${ECHO_T}yes" >&6
21289
21290cat >>confdefs.h <<\_ACEOF
6ae7fef5 21291#define HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES 1
86933a6e
BB
21292_ACEOF
21293
21294
21295else
21296 echo "$as_me: failed program was:" >&5
21297sed 's/^/| /' conftest.$ac_ext >&5
21298
21299 echo "$as_me:$LINENO: result: no" >&5
21300echo "${ECHO_T}no" >&6
21301
21302
21303
21304fi
21305
21306 rm -Rf build
21307
21308
21309
21310
6ae7fef5
BB
21311 echo "$as_me:$LINENO: checking whether page state NR_INACTIVE is available" >&5
21312echo $ECHO_N "checking whether page state NR_INACTIVE is available... $ECHO_C" >&6
86933a6e
BB
21313
21314
21315cat >conftest.c <<_ACEOF
21316/* confdefs.h. */
21317_ACEOF
21318cat confdefs.h >>conftest.$ac_ext
21319cat >>conftest.$ac_ext <<_ACEOF
21320/* end confdefs.h. */
21321
21322
6ae7fef5 21323 #include <linux/mm.h>
86933a6e
BB
21324
21325int
21326main (void)
21327{
21328
6ae7fef5
BB
21329 enum zone_stat_item zsi;
21330 zsi = NR_INACTIVE;
86933a6e
BB
21331
21332 ;
21333 return 0;
21334}
21335
21336_ACEOF
21337
21338
21339 rm -Rf build && mkdir -p build
21340 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 21341 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
21342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21343 (eval $ac_try) 2>&5
21344 ac_status=$?
21345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21346 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21348 (eval $ac_try) 2>&5
21349 ac_status=$?
21350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21351 (exit $ac_status); }; }; then
21352
21353 echo "$as_me:$LINENO: result: yes" >&5
21354echo "${ECHO_T}yes" >&6
21355
21356cat >>confdefs.h <<\_ACEOF
6ae7fef5 21357#define HAVE_ZONE_STAT_ITEM_NR_INACTIVE 1
86933a6e
BB
21358_ACEOF
21359
21360
21361else
21362 echo "$as_me: failed program was:" >&5
21363sed 's/^/| /' conftest.$ac_ext >&5
21364
21365 echo "$as_me:$LINENO: result: no" >&5
21366echo "${ECHO_T}no" >&6
21367
21368
21369
21370fi
21371
21372 rm -Rf build
21373
21374
21375
6ae7fef5
BB
21376 echo "$as_me:$LINENO: checking whether page state NR_INACTIVE_ANON is available" >&5
21377echo $ECHO_N "checking whether page state NR_INACTIVE_ANON is available... $ECHO_C" >&6
86933a6e
BB
21378
21379
21380cat >conftest.c <<_ACEOF
21381/* confdefs.h. */
21382_ACEOF
21383cat confdefs.h >>conftest.$ac_ext
21384cat >>conftest.$ac_ext <<_ACEOF
21385/* end confdefs.h. */
21386
21387
6ae7fef5 21388 #include <linux/mm.h>
86933a6e
BB
21389
21390int
21391main (void)
21392{
21393
6ae7fef5
BB
21394 enum zone_stat_item zsi;
21395 zsi = NR_INACTIVE_ANON;
86933a6e
BB
21396
21397 ;
21398 return 0;
21399}
21400
21401_ACEOF
21402
21403
21404 rm -Rf build && mkdir -p build
21405 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 21406 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
21407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21408 (eval $ac_try) 2>&5
21409 ac_status=$?
21410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21411 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21413 (eval $ac_try) 2>&5
21414 ac_status=$?
21415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21416 (exit $ac_status); }; }; then
21417
21418 echo "$as_me:$LINENO: result: yes" >&5
21419echo "${ECHO_T}yes" >&6
21420
21421cat >>confdefs.h <<\_ACEOF
6ae7fef5 21422#define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON 1
86933a6e
BB
21423_ACEOF
21424
21425
21426else
21427 echo "$as_me: failed program was:" >&5
21428sed 's/^/| /' conftest.$ac_ext >&5
21429
21430 echo "$as_me:$LINENO: result: no" >&5
21431echo "${ECHO_T}no" >&6
21432
21433
21434
21435fi
21436
21437 rm -Rf build
21438
21439
21440
6ae7fef5
BB
21441 echo "$as_me:$LINENO: checking whether page state NR_INACTIVE_FILE is available" >&5
21442echo $ECHO_N "checking whether page state NR_INACTIVE_FILE is available... $ECHO_C" >&6
86933a6e
BB
21443
21444
21445cat >conftest.c <<_ACEOF
21446/* confdefs.h. */
21447_ACEOF
21448cat confdefs.h >>conftest.$ac_ext
21449cat >>conftest.$ac_ext <<_ACEOF
21450/* end confdefs.h. */
21451
21452
6ae7fef5 21453 #include <linux/mm.h>
86933a6e
BB
21454
21455int
21456main (void)
21457{
21458
6ae7fef5
BB
21459 enum zone_stat_item zsi;
21460 zsi = NR_INACTIVE_FILE;
86933a6e
BB
21461
21462 ;
21463 return 0;
21464}
21465
21466_ACEOF
21467
21468
21469 rm -Rf build && mkdir -p build
21470 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 21471 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
21472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21473 (eval $ac_try) 2>&5
21474 ac_status=$?
21475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21476 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21478 (eval $ac_try) 2>&5
21479 ac_status=$?
21480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21481 (exit $ac_status); }; }; then
21482
21483 echo "$as_me:$LINENO: result: yes" >&5
21484echo "${ECHO_T}yes" >&6
21485
21486cat >>confdefs.h <<\_ACEOF
6ae7fef5 21487#define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE 1
86933a6e
BB
21488_ACEOF
21489
21490
21491else
21492 echo "$as_me: failed program was:" >&5
21493sed 's/^/| /' conftest.$ac_ext >&5
21494
21495 echo "$as_me:$LINENO: result: no" >&5
21496echo "${ECHO_T}no" >&6
21497
21498
21499
21500fi
21501
21502 rm -Rf build
21503
21504
21505
ec7d53e9 21506
6ae7fef5
BB
21507 echo "$as_me:$LINENO: checking whether page state NR_ACTIVE is available" >&5
21508echo $ECHO_N "checking whether page state NR_ACTIVE is available... $ECHO_C" >&6
ec7d53e9
BB
21509
21510
21511cat >conftest.c <<_ACEOF
21512/* confdefs.h. */
21513_ACEOF
21514cat confdefs.h >>conftest.$ac_ext
21515cat >>conftest.$ac_ext <<_ACEOF
21516/* end confdefs.h. */
21517
21518
6ae7fef5 21519 #include <linux/mm.h>
ec7d53e9
BB
21520
21521int
21522main (void)
21523{
21524
6ae7fef5
BB
21525 enum zone_stat_item zsi;
21526 zsi = NR_ACTIVE;
ec7d53e9
BB
21527
21528 ;
21529 return 0;
21530}
21531
21532_ACEOF
21533
21534
21535 rm -Rf build && mkdir -p build
21536 echo "obj-m := conftest.o" >build/Makefile
21537 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
21538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21539 (eval $ac_try) 2>&5
21540 ac_status=$?
21541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21542 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21544 (eval $ac_try) 2>&5
21545 ac_status=$?
21546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21547 (exit $ac_status); }; }; then
21548
21549 echo "$as_me:$LINENO: result: yes" >&5
21550echo "${ECHO_T}yes" >&6
21551
21552cat >>confdefs.h <<\_ACEOF
6ae7fef5 21553#define HAVE_ZONE_STAT_ITEM_NR_ACTIVE 1
ec7d53e9
BB
21554_ACEOF
21555
21556
21557else
21558 echo "$as_me: failed program was:" >&5
21559sed 's/^/| /' conftest.$ac_ext >&5
21560
21561 echo "$as_me:$LINENO: result: no" >&5
21562echo "${ECHO_T}no" >&6
21563
21564
21565
21566fi
21567
21568 rm -Rf build
21569
21570
21571
6ae7fef5
BB
21572 echo "$as_me:$LINENO: checking whether page state NR_ACTIVE_ANON is available" >&5
21573echo $ECHO_N "checking whether page state NR_ACTIVE_ANON is available... $ECHO_C" >&6
ec7d53e9 21574
ec7d53e9 21575
6ae7fef5
BB
21576cat >conftest.c <<_ACEOF
21577/* confdefs.h. */
21578_ACEOF
21579cat confdefs.h >>conftest.$ac_ext
21580cat >>conftest.$ac_ext <<_ACEOF
21581/* end confdefs.h. */
21582
21583
21584 #include <linux/mm.h>
21585
21586int
21587main (void)
21588{
21589
21590 enum zone_stat_item zsi;
21591 zsi = NR_ACTIVE_ANON;
21592
21593 ;
21594 return 0;
21595}
ec7d53e9 21596
ec7d53e9
BB
21597_ACEOF
21598
6ae7fef5
BB
21599
21600 rm -Rf build && mkdir -p build
21601 echo "obj-m := conftest.o" >build/Makefile
21602 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
21603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21604 (eval $ac_try) 2>&5
21605 ac_status=$?
21606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21607 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21609 (eval $ac_try) 2>&5
21610 ac_status=$?
21611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21612 (exit $ac_status); }; }; then
21613
ec7d53e9
BB
21614 echo "$as_me:$LINENO: result: yes" >&5
21615echo "${ECHO_T}yes" >&6
21616
21617cat >>confdefs.h <<\_ACEOF
6ae7fef5 21618#define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON 1
ec7d53e9
BB
21619_ACEOF
21620
ec7d53e9 21621
6ae7fef5
BB
21622else
21623 echo "$as_me: failed program was:" >&5
21624sed 's/^/| /' conftest.$ac_ext >&5
ec7d53e9 21625
6ae7fef5
BB
21626 echo "$as_me:$LINENO: result: no" >&5
21627echo "${ECHO_T}no" >&6
bf9f3bac 21628
bf9f3bac 21629
bf9f3bac 21630
6ae7fef5 21631fi
bf9f3bac 21632
6ae7fef5 21633 rm -Rf build
bf9f3bac 21634
bf9f3bac 21635
bf9f3bac 21636
6ae7fef5
BB
21637 echo "$as_me:$LINENO: checking whether page state NR_ACTIVE_FILE is available" >&5
21638echo $ECHO_N "checking whether page state NR_ACTIVE_FILE is available... $ECHO_C" >&6
bf9f3bac 21639
bf9f3bac 21640
6ae7fef5
BB
21641cat >conftest.c <<_ACEOF
21642/* confdefs.h. */
21643_ACEOF
21644cat confdefs.h >>conftest.$ac_ext
21645cat >>conftest.$ac_ext <<_ACEOF
21646/* end confdefs.h. */
bf9f3bac 21647
bf9f3bac 21648
6ae7fef5 21649 #include <linux/mm.h>
bf9f3bac 21650
6ae7fef5
BB
21651int
21652main (void)
21653{
21654
21655 enum zone_stat_item zsi;
21656 zsi = NR_ACTIVE_FILE;
21657
21658 ;
21659 return 0;
21660}
21661
21662_ACEOF
21663
21664
21665 rm -Rf build && mkdir -p build
21666 echo "obj-m := conftest.o" >build/Makefile
21667 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
21668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21669 (eval $ac_try) 2>&5
21670 ac_status=$?
21671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21672 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21674 (eval $ac_try) 2>&5
21675 ac_status=$?
21676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21677 (exit $ac_status); }; }; then
21678
21679 echo "$as_me:$LINENO: result: yes" >&5
21680echo "${ECHO_T}yes" >&6
21681
21682cat >>confdefs.h <<\_ACEOF
21683#define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE 1
21684_ACEOF
21685
21686
21687else
21688 echo "$as_me: failed program was:" >&5
21689sed 's/^/| /' conftest.$ac_ext >&5
21690
21691 echo "$as_me:$LINENO: result: no" >&5
21692echo "${ECHO_T}no" >&6
21693
21694
21695
21696fi
21697
21698 rm -Rf build
21699
21700
21701
21702
21703 echo "$as_me:$LINENO: checking whether symbol get_zone_counts is needed" >&5
21704echo $ECHO_N "checking whether symbol get_zone_counts is needed... $ECHO_C" >&6
21705
21706
21707cat >conftest.c <<_ACEOF
21708/* confdefs.h. */
21709_ACEOF
21710cat confdefs.h >>conftest.$ac_ext
21711cat >>conftest.$ac_ext <<_ACEOF
21712/* end confdefs.h. */
21713
21714
21715
21716int
21717main (void)
21718{
21719
21720 #if !defined(HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES)
21721 #error "global_page_state needs NR_FREE_PAGES"
21722 #endif
21723
21724 #if !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE) && \
21725 !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON) && \
21726 !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE)
21727 #error "global_page_state needs NR_ACTIVE*"
21728 #endif
21729
21730 #if !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE) && \
21731 !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON) && \
21732 !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE)
21733 #error "global_page_state needs NR_INACTIVE*"
21734 #endif
21735
21736 ;
21737 return 0;
21738}
21739
21740_ACEOF
21741
21742
21743 rm -Rf build && mkdir -p build
21744 echo "obj-m := conftest.o" >build/Makefile
21745 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
21746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21747 (eval $ac_try) 2>&5
21748 ac_status=$?
21749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21750 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21752 (eval $ac_try) 2>&5
21753 ac_status=$?
21754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21755 (exit $ac_status); }; }; then
21756
21757 echo "$as_me:$LINENO: result: no" >&5
21758echo "${ECHO_T}no" >&6
21759
21760else
21761 echo "$as_me: failed program was:" >&5
21762sed 's/^/| /' conftest.$ac_ext >&5
21763
21764 echo "$as_me:$LINENO: result: yes" >&5
21765echo "${ECHO_T}yes" >&6
21766
21767cat >>confdefs.h <<\_ACEOF
21768#define NEED_GET_ZONE_COUNTS 1
21769_ACEOF
21770
21771
21772 echo "$as_me:$LINENO: checking whether symbol get_zone_counts is exported" >&5
21773echo $ECHO_N "checking whether symbol get_zone_counts is exported... $ECHO_C" >&6
21774 grep -q -E '[[:space:]]get_zone_counts[[:space:]]' \
21775 $LINUX_OBJ/Module*.symvers 2>/dev/null
21776 rc=$?
21777 if test $rc -ne 0; then
21778 export=0
21779 for file in ; do
21780 grep -q -E "EXPORT_SYMBOL.*(get_zone_counts)" \
21781 "$LINUX_OBJ/$file" 2>/dev/null
21782 rc=$?
21783 if test $rc -eq 0; then
21784 export=1
21785 break;
21786 fi
21787 done
21788 if test $export -eq 0; then
21789 echo "$as_me:$LINENO: result: no" >&5
21790echo "${ECHO_T}no" >&6
21791
21792 else
21793 echo "$as_me:$LINENO: result: yes" >&5
21794echo "${ECHO_T}yes" >&6
21795
21796cat >>confdefs.h <<\_ACEOF
21797#define HAVE_GET_ZONE_COUNTS 1
21798_ACEOF
21799
21800 fi
21801 else
21802 echo "$as_me:$LINENO: result: yes" >&5
21803echo "${ECHO_T}yes" >&6
21804
21805cat >>confdefs.h <<\_ACEOF
21806#define HAVE_GET_ZONE_COUNTS 1
21807_ACEOF
21808
21809 fi
21810
21811
21812
21813
51a727e9
BB
21814fi
21815
21816 rm -Rf build
21817
21818
21819
21820
21821 echo "$as_me:$LINENO: checking whether symbol set_fs_pwd is exported" >&5
21822echo $ECHO_N "checking whether symbol set_fs_pwd is exported... $ECHO_C" >&6
21823 grep -q -E '[[:space:]]set_fs_pwd[[:space:]]' \
21824 $LINUX_OBJ/Module*.symvers 2>/dev/null
21825 rc=$?
21826 if test $rc -ne 0; then
21827 export=0
21828 for file in ; do
21829 grep -q -E "EXPORT_SYMBOL.*(set_fs_pwd)" \
21830 "$LINUX_OBJ/$file" 2>/dev/null
21831 rc=$?
21832 if test $rc -eq 0; then
21833 export=1
21834 break;
21835 fi
21836 done
21837 if test $export -eq 0; then
21838 echo "$as_me:$LINENO: result: no" >&5
21839echo "${ECHO_T}no" >&6
21840
21841 else
21842 echo "$as_me:$LINENO: result: yes" >&5
21843echo "${ECHO_T}yes" >&6
21844
21845cat >>confdefs.h <<\_ACEOF
21846#define HAVE_SET_FS_PWD 1
21847_ACEOF
21848
21849 fi
21850 else
21851 echo "$as_me:$LINENO: result: yes" >&5
21852echo "${ECHO_T}yes" >&6
21853
21854cat >>confdefs.h <<\_ACEOF
21855#define HAVE_SET_FS_PWD 1
21856_ACEOF
21857
21858 fi
21859
21860
21861 echo "$as_me:$LINENO: checking whether set_fs_pwd() wants 2 args" >&5
21862echo $ECHO_N "checking whether set_fs_pwd() wants 2 args... $ECHO_C" >&6
21863
21864
21865cat >conftest.c <<_ACEOF
21866/* confdefs.h. */
21867_ACEOF
21868cat confdefs.h >>conftest.$ac_ext
21869cat >>conftest.$ac_ext <<_ACEOF
21870/* end confdefs.h. */
21871
21872
21873 #include <linux/sched.h>
baf2979e 21874 #include <linux/fs_struct.h>
51a727e9
BB
21875
21876int
21877main (void)
21878{
21879
21880 set_fs_pwd(NULL, NULL);
21881
21882 ;
21883 return 0;
21884}
21885
21886_ACEOF
21887
21888
21889 rm -Rf build && mkdir -p build
21890 echo "obj-m := conftest.o" >build/Makefile
21891 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
21892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21893 (eval $ac_try) 2>&5
21894 ac_status=$?
21895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21896 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21898 (eval $ac_try) 2>&5
21899 ac_status=$?
21900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21901 (exit $ac_status); }; }; then
21902
21903 echo "$as_me:$LINENO: result: yes" >&5
21904echo "${ECHO_T}yes" >&6
21905
21906cat >>confdefs.h <<\_ACEOF
21907#define HAVE_2ARGS_SET_FS_PWD 1
21908_ACEOF
21909
21910
21911else
21912 echo "$as_me: failed program was:" >&5
21913sed 's/^/| /' conftest.$ac_ext >&5
21914
21915 echo "$as_me:$LINENO: result: no" >&5
21916echo "${ECHO_T}no" >&6
21917
21918
21919
6ae7fef5
BB
21920fi
21921
21922 rm -Rf build
21923
21924
21925
21926 echo "$as_me:$LINENO: checking whether vfs_unlink() wants 2 args" >&5
21927echo $ECHO_N "checking whether vfs_unlink() wants 2 args... $ECHO_C" >&6
21928
21929
21930cat >conftest.c <<_ACEOF
21931/* confdefs.h. */
21932_ACEOF
21933cat confdefs.h >>conftest.$ac_ext
21934cat >>conftest.$ac_ext <<_ACEOF
21935/* end confdefs.h. */
21936
21937
21938 #include <linux/fs.h>
21939
21940int
21941main (void)
21942{
21943
21944 vfs_unlink(NULL, NULL);
21945
21946 ;
21947 return 0;
21948}
21949
21950_ACEOF
21951
21952
21953 rm -Rf build && mkdir -p build
21954 echo "obj-m := conftest.o" >build/Makefile
21955 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
21956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21957 (eval $ac_try) 2>&5
21958 ac_status=$?
21959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21960 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21962 (eval $ac_try) 2>&5
21963 ac_status=$?
21964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21965 (exit $ac_status); }; }; then
21966
21967 echo "$as_me:$LINENO: result: yes" >&5
21968echo "${ECHO_T}yes" >&6
21969
21970cat >>confdefs.h <<\_ACEOF
21971#define HAVE_2ARGS_VFS_UNLINK 1
21972_ACEOF
21973
21974
21975else
21976 echo "$as_me: failed program was:" >&5
21977sed 's/^/| /' conftest.$ac_ext >&5
21978
21979 echo "$as_me:$LINENO: result: no" >&5
21980echo "${ECHO_T}no" >&6
21981
21982
21983
21984fi
21985
21986 rm -Rf build
21987
21988
21989
21990 echo "$as_me:$LINENO: checking whether vfs_rename() wants 4 args" >&5
21991echo $ECHO_N "checking whether vfs_rename() wants 4 args... $ECHO_C" >&6
21992
21993
21994cat >conftest.c <<_ACEOF
21995/* confdefs.h. */
21996_ACEOF
21997cat confdefs.h >>conftest.$ac_ext
21998cat >>conftest.$ac_ext <<_ACEOF
21999/* end confdefs.h. */
22000
22001
22002 #include <linux/fs.h>
22003
22004int
22005main (void)
22006{
22007
22008 vfs_rename(NULL, NULL, NULL, NULL);
22009
22010 ;
22011 return 0;
22012}
22013
22014_ACEOF
22015
22016
22017 rm -Rf build && mkdir -p build
22018 echo "obj-m := conftest.o" >build/Makefile
22019 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
22020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22021 (eval $ac_try) 2>&5
22022 ac_status=$?
22023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22024 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22026 (eval $ac_try) 2>&5
22027 ac_status=$?
22028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22029 (exit $ac_status); }; }; then
22030
22031 echo "$as_me:$LINENO: result: yes" >&5
22032echo "${ECHO_T}yes" >&6
22033
22034cat >>confdefs.h <<\_ACEOF
22035#define HAVE_4ARGS_VFS_RENAME 1
22036_ACEOF
22037
22038
22039else
22040 echo "$as_me: failed program was:" >&5
22041sed 's/^/| /' conftest.$ac_ext >&5
22042
22043 echo "$as_me:$LINENO: result: no" >&5
22044echo "${ECHO_T}no" >&6
22045
22046
22047
22048fi
22049
22050 rm -Rf build
22051
22052
22053
22054
22055 echo "$as_me:$LINENO: checking whether struct cred exists" >&5
22056echo $ECHO_N "checking whether struct cred exists... $ECHO_C" >&6
22057
22058
22059cat >conftest.c <<_ACEOF
22060/* confdefs.h. */
22061_ACEOF
22062cat confdefs.h >>conftest.$ac_ext
22063cat >>conftest.$ac_ext <<_ACEOF
22064/* end confdefs.h. */
22065
22066
22067 #include <linux/cred.h>
22068
22069int
22070main (void)
22071{
22072
22073 struct cred *cr;
22074 cr = NULL;
22075
22076 ;
22077 return 0;
22078}
22079
22080_ACEOF
22081
22082
22083 rm -Rf build && mkdir -p build
22084 echo "obj-m := conftest.o" >build/Makefile
22085 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
22086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22087 (eval $ac_try) 2>&5
22088 ac_status=$?
22089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22090 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22092 (eval $ac_try) 2>&5
22093 ac_status=$?
22094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22095 (exit $ac_status); }; }; then
22096
22097 echo "$as_me:$LINENO: result: yes" >&5
22098echo "${ECHO_T}yes" >&6
22099
22100cat >>confdefs.h <<\_ACEOF
22101#define HAVE_CRED_STRUCT 1
22102_ACEOF
22103
22104
22105else
22106 echo "$as_me: failed program was:" >&5
22107sed 's/^/| /' conftest.$ac_ext >&5
22108
22109 echo "$as_me:$LINENO: result: no" >&5
22110echo "${ECHO_T}no" >&6
22111
22112
22113
22114fi
22115
22116 rm -Rf build
22117
22118
22119
22120
22121 echo "$as_me:$LINENO: checking whether symbol groups_search is exported" >&5
22122echo $ECHO_N "checking whether symbol groups_search is exported... $ECHO_C" >&6
22123 grep -q -E '[[:space:]]groups_search[[:space:]]' \
22124 $LINUX_OBJ/Module*.symvers 2>/dev/null
22125 rc=$?
22126 if test $rc -ne 0; then
22127 export=0
22128 for file in ; do
22129 grep -q -E "EXPORT_SYMBOL.*(groups_search)" \
22130 "$LINUX_OBJ/$file" 2>/dev/null
22131 rc=$?
22132 if test $rc -eq 0; then
22133 export=1
22134 break;
22135 fi
22136 done
22137 if test $export -eq 0; then
22138 echo "$as_me:$LINENO: result: no" >&5
22139echo "${ECHO_T}no" >&6
22140
22141 else
22142 echo "$as_me:$LINENO: result: yes" >&5
22143echo "${ECHO_T}yes" >&6
22144
22145cat >>confdefs.h <<\_ACEOF
22146#define HAVE_GROUPS_SEARCH 1
22147_ACEOF
22148
22149 fi
22150 else
22151 echo "$as_me:$LINENO: result: yes" >&5
22152echo "${ECHO_T}yes" >&6
22153
22154cat >>confdefs.h <<\_ACEOF
22155#define HAVE_GROUPS_SEARCH 1
22156_ACEOF
22157
22158 fi
22159
22160
e811949a
BB
22161
22162 echo "$as_me:$LINENO: checking whether symbol __put_task_struct is exported" >&5
22163echo $ECHO_N "checking whether symbol __put_task_struct is exported... $ECHO_C" >&6
22164 grep -q -E '[[:space:]]__put_task_struct[[:space:]]' \
22165 $LINUX_OBJ/Module*.symvers 2>/dev/null
22166 rc=$?
22167 if test $rc -ne 0; then
22168 export=0
22169 for file in ; do
22170 grep -q -E "EXPORT_SYMBOL.*(__put_task_struct)" \
22171 "$LINUX_OBJ/$file" 2>/dev/null
22172 rc=$?
22173 if test $rc -eq 0; then
22174 export=1
22175 break;
22176 fi
22177 done
22178 if test $export -eq 0; then
22179 echo "$as_me:$LINENO: result: no" >&5
22180echo "${ECHO_T}no" >&6
22181
22182 else
22183 echo "$as_me:$LINENO: result: yes" >&5
22184echo "${ECHO_T}yes" >&6
22185
22186cat >>confdefs.h <<\_ACEOF
22187#define HAVE_PUT_TASK_STRUCT 1
22188_ACEOF
22189
22190 fi
22191 else
22192 echo "$as_me:$LINENO: result: yes" >&5
22193echo "${ECHO_T}yes" >&6
22194
22195cat >>confdefs.h <<\_ACEOF
22196#define HAVE_PUT_TASK_STRUCT 1
22197_ACEOF
22198
22199 fi
22200
22201
6ae7fef5
BB
22202 ;;
22203 user) ;;
22204 all)
22205
22206
22207# Check whether --with-linux or --without-linux was given.
22208if test "${with_linux+set}" = set; then
22209 withval="$with_linux"
22210 kernelsrc="$withval"
22211fi;
22212
22213
22214# Check whether --with-linux-obj or --without-linux-obj was given.
22215if test "${with_linux_obj+set}" = set; then
22216 withval="$with_linux_obj"
22217 kernelbuild="$withval"
22218fi;
22219
22220 echo "$as_me:$LINENO: checking kernel source directory" >&5
22221echo $ECHO_N "checking kernel source directory... $ECHO_C" >&6
22222 if test -z "$kernelsrc"; then
22223 sourcelink=`ls -1d /usr/src/kernels/* /usr/src/linux-* \
22224 2>/dev/null | grep -v obj | tail -1`
22225
22226 if test -e ${sourcelink}; then
22227 kernelsrc=`readlink -f ${sourcelink}`
22228 else
22229 echo "$as_me:$LINENO: result: Not found" >&5
22230echo "${ECHO_T}Not found" >&6
22231 { { echo "$as_me:$LINENO: error:
22232 *** Please specify the location of the kernel source
22233 *** with the '--with-linux=PATH' option" >&5
22234echo "$as_me: error:
22235 *** Please specify the location of the kernel source
22236 *** with the '--with-linux=PATH' option" >&2;}
22237 { (exit 1); exit 1; }; }
22238 fi
22239 else
22240 if test "$kernelsrc" = "NONE"; then
22241 kernsrcver=NONE
22242 fi
22243 fi
22244
22245 echo "$as_me:$LINENO: result: $kernelsrc" >&5
22246echo "${ECHO_T}$kernelsrc" >&6
22247 echo "$as_me:$LINENO: checking kernel build directory" >&5
22248echo $ECHO_N "checking kernel build directory... $ECHO_C" >&6
22249 if test -z "$kernelbuild"; then
22250 if test -d ${kernelsrc}-obj/`arch`/`arch`; then
22251 kernelbuild=${kernelsrc}-obj/`arch`/`arch`
22252 elif test -d ${kernelsrc}-obj/`arch`/default; then
22253 kernelbuild=${kernelsrc}-obj/`arch`/default
22254 elif test -d `dirname ${kernelsrc}`/build-`arch`; then
22255 kernelbuild=`dirname ${kernelsrc}`/build-`arch`
22256 else
22257 kernelbuild=${kernelsrc}
22258 fi
22259 fi
22260 echo "$as_me:$LINENO: result: $kernelbuild" >&5
22261echo "${ECHO_T}$kernelbuild" >&6
22262
22263 echo "$as_me:$LINENO: checking kernel source version" >&5
22264echo $ECHO_N "checking kernel source version... $ECHO_C" >&6
22265 if test -r $kernelbuild/include/linux/version.h &&
22266 fgrep -q UTS_RELEASE $kernelbuild/include/linux/version.h; then
22267
22268 kernsrcver=`(echo "#include <linux/version.h>";
22269 echo "kernsrcver=UTS_RELEASE") |
22270 cpp -I $kernelbuild/include |
22271 grep "^kernsrcver=" | cut -d \" -f 2`
22272
22273 elif test -r $kernelbuild/include/linux/utsrelease.h &&
22274 fgrep -q UTS_RELEASE $kernelbuild/include/linux/utsrelease.h; then
22275
22276 kernsrcver=`(echo "#include <linux/utsrelease.h>";
22277 echo "kernsrcver=UTS_RELEASE") |
22278 cpp -I $kernelbuild/include |
22279 grep "^kernsrcver=" | cut -d \" -f 2`
22280 fi
22281
22282 if test -z "$kernsrcver"; then
22283 echo "$as_me:$LINENO: result: Not found" >&5
22284echo "${ECHO_T}Not found" >&6
22285 { { echo "$as_me:$LINENO: error:
22286 *** Cannot determine the version of the linux kernel source.
22287 *** Please prepare the kernel before running this script" >&5
22288echo "$as_me: error:
22289 *** Cannot determine the version of the linux kernel source.
22290 *** Please prepare the kernel before running this script" >&2;}
bf9f3bac 22291 { (exit 1); exit 1; }; }
22292 fi
22293
22294 echo "$as_me:$LINENO: result: $kernsrcver" >&5
22295echo "${ECHO_T}$kernsrcver" >&6
22296
bf9f3bac 22297 LINUX=${kernelsrc}
22298 LINUX_OBJ=${kernelbuild}
c5f70460
BB
22299 LINUX_VERSION=${kernsrcver}
22300
bf9f3bac 22301
22302
22303
22304
22305
bb339d06 22306 modpost=$LINUX/scripts/Makefile.modpost
2e0e7e69
BB
22307 echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
22308echo $ECHO_N "checking kernel file name for module symbols... $ECHO_C" >&6
bb339d06
BB
22309 if test -f "$modpost"; then
22310 if grep -q Modules.symvers $modpost; then
22311 LINUX_SYMBOLS=Modules.symvers
22312 else
22313 LINUX_SYMBOLS=Module.symvers
22314 fi
2e0e7e69 22315 else
bb339d06 22316 LINUX_SYMBOLS=NONE
2e0e7e69
BB
22317 fi
22318 echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
22319echo "${ECHO_T}$LINUX_SYMBOLS" >&6
22320
22321
22322
86933a6e
BB
22323
22324 KERNELMAKE_PARAMS="V=1"
22325
22326 abs_srcdir=`readlink -f ${srcdir}`
22327 KERNELCPPFLAGS="$KERNELCPPFLAGS -Wstrict-prototypes -Werror"
22328 KERNELCPPFLAGS="$KERNELCPPFLAGS -I${abs_srcdir} -I${abs_srcdir}/include"
22329
22330 if test "${LINUX_OBJ}" != "${LINUX}"; then
22331 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
22332 fi
22333
22334
22335
bf9f3bac 22336
22337
bf9f3bac 22338 # Check whether --enable-debug or --disable-debug was given.
22339if test "${enable_debug+set}" = set; then
22340 enableval="$enable_debug"
bf9f3bac 22341
055ffd98
BB
22342else
22343 enable_debug=no
bf9f3bac 22344fi;
055ffd98
BB
22345
22346 if test "x$enable_debug" = xyes; then
22347 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG"
22348else
22349 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG"
22350fi
22351
22352
22353 echo "$as_me:$LINENO: checking whether debugging is enabled" >&5
22354echo $ECHO_N "checking whether debugging is enabled... $ECHO_C" >&6
22355 echo "$as_me:$LINENO: result: $enable_debug" >&5
22356echo "${ECHO_T}$enable_debug" >&6
bf9f3bac 22357
22358
bf9f3bac 22359 # Check whether --enable-debug-kmem or --disable-debug-kmem was given.
22360if test "${enable_debug_kmem+set}" = set; then
22361 enableval="$enable_debug_kmem"
bf9f3bac 22362
055ffd98
BB
22363else
22364 enable_debug_kmem=yes
bf9f3bac 22365fi;
055ffd98
BB
22366
22367 if test "x$enable_debug_kmem" = xyes; then
bf9f3bac 22368
22369cat >>confdefs.h <<\_ACEOF
22370#define DEBUG_KMEM 1
22371_ACEOF
22372
22373 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM"
055ffd98 22374fi
bf9f3bac 22375
bf9f3bac 22376
055ffd98
BB
22377 echo "$as_me:$LINENO: checking whether basic kmem accounting is enabled" >&5
22378echo $ECHO_N "checking whether basic kmem accounting is enabled... $ECHO_C" >&6
22379 echo "$as_me:$LINENO: result: $enable_debug_kmem" >&5
22380echo "${ECHO_T}$enable_debug_kmem" >&6
bf9f3bac 22381
22382
055ffd98
BB
22383 # Check whether --enable-debug-kmem-tracking or --disable-debug-kmem-tracking was given.
22384if test "${enable_debug_kmem_tracking+set}" = set; then
22385 enableval="$enable_debug_kmem_tracking"
bf9f3bac 22386
055ffd98
BB
22387else
22388 enable_debug_kmem_tracking=no
bf9f3bac 22389fi;
055ffd98
BB
22390
22391 if test "x$enable_debug_kmem_tracking" = xyes; then
bf9f3bac 22392
22393cat >>confdefs.h <<\_ACEOF
055ffd98 22394#define DEBUG_KMEM_TRACKING 1
bf9f3bac 22395_ACEOF
22396
055ffd98
BB
22397 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM_TRACKING"
22398fi
22399
22400
22401 echo "$as_me:$LINENO: checking whether detailed kmem tracking is enabled" >&5
22402echo $ECHO_N "checking whether detailed kmem tracking is enabled... $ECHO_C" >&6
22403 echo "$as_me:$LINENO: result: $enable_debug_kmem_tracking" >&5
22404echo "${ECHO_T}$enable_debug_kmem_tracking" >&6
bf9f3bac 22405
5e9b5d83
BB
22406
22407 # Check whether --enable-atomic-spinlocks or --disable-atomic-spinlocks was given.
22408if test "${enable_atomic_spinlocks+set}" = set; then
22409 enableval="$enable_atomic_spinlocks"
22410
22411else
22412 enable_atomic_spinlocks=no
22413fi;
22414
22415 if test "x$enable_atomic_spinlocks" = xyes; then
22416
22417cat >>confdefs.h <<\_ACEOF
22418#define ATOMIC_SPINLOCK 1
22419_ACEOF
22420
22421fi
22422
22423
22424 echo "$as_me:$LINENO: checking whether atomic types use spinlocks" >&5
22425echo $ECHO_N "checking whether atomic types use spinlocks... $ECHO_C" >&6
22426 echo "$as_me:$LINENO: result: $enable_atomic_spinlocks" >&5
22427echo "${ECHO_T}$enable_atomic_spinlocks" >&6
22428
86933a6e 22429 echo "$as_me:$LINENO: checking whether kernel defines uintptr_t" >&5
bf9f3bac 22430echo $ECHO_N "checking whether kernel defines uintptr_t... $ECHO_C" >&6
22431
22432
22433cat >conftest.c <<_ACEOF
22434/* confdefs.h. */
22435_ACEOF
22436cat confdefs.h >>conftest.$ac_ext
22437cat >>conftest.$ac_ext <<_ACEOF
22438/* end confdefs.h. */
22439
22440
22441 #include <linux/types.h>
22442
22443int
22444main (void)
22445{
22446
22447 uintptr_t *ptr;
22448
22449 ;
22450 return 0;
22451}
22452
22453_ACEOF
22454
c5f70460
BB
22455
22456 rm -Rf build && mkdir -p build
22457 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 22458 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 22459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22460 (eval $ac_try) 2>&5
22461 ac_status=$?
22462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22463 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22465 (eval $ac_try) 2>&5
22466 ac_status=$?
22467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22468 (exit $ac_status); }; }; then
22469
22470 echo "$as_me:$LINENO: result: yes" >&5
22471echo "${ECHO_T}yes" >&6
22472
22473cat >>confdefs.h <<\_ACEOF
22474#define HAVE_UINTPTR_T 1
22475_ACEOF
22476
22477
22478else
22479 echo "$as_me: failed program was:" >&5
22480sed 's/^/| /' conftest.$ac_ext >&5
22481
bf9f3bac 22482 echo "$as_me:$LINENO: result: no" >&5
22483echo "${ECHO_T}no" >&6
22484
c5f70460
BB
22485
22486
bf9f3bac 22487fi
c5f70460
BB
22488
22489 rm -Rf build
22490
bf9f3bac 22491
22492
86933a6e 22493 echo "$as_me:$LINENO: checking whether kernel defines atomic64_t" >&5
bf9f3bac 22494echo $ECHO_N "checking whether kernel defines atomic64_t... $ECHO_C" >&6
22495
22496
22497cat >conftest.c <<_ACEOF
22498/* confdefs.h. */
22499_ACEOF
22500cat confdefs.h >>conftest.$ac_ext
22501cat >>conftest.$ac_ext <<_ACEOF
22502/* end confdefs.h. */
22503
22504
22505 #include <asm/atomic.h>
22506
22507int
22508main (void)
22509{
22510
22511 atomic64_t *ptr;
22512
22513 ;
22514 return 0;
22515}
22516
22517_ACEOF
22518
c5f70460
BB
22519
22520 rm -Rf build && mkdir -p build
22521 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 22522 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 22523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22524 (eval $ac_try) 2>&5
22525 ac_status=$?
22526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22527 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22529 (eval $ac_try) 2>&5
22530 ac_status=$?
22531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22532 (exit $ac_status); }; }; then
22533
22534 echo "$as_me:$LINENO: result: yes" >&5
22535echo "${ECHO_T}yes" >&6
22536
22537cat >>confdefs.h <<\_ACEOF
22538#define HAVE_ATOMIC64_T 1
22539_ACEOF
22540
22541
302b88e6
BB
22542else
22543 echo "$as_me: failed program was:" >&5
22544sed 's/^/| /' conftest.$ac_ext >&5
22545
22546 echo "$as_me:$LINENO: result: no" >&5
22547echo "${ECHO_T}no" >&6
22548
22549
22550
22551fi
22552
22553 rm -Rf build
22554
22555
22556
22557 echo "$as_me:$LINENO: checking whether kernel defines atomic64_cmpxchg" >&5
22558echo $ECHO_N "checking whether kernel defines atomic64_cmpxchg... $ECHO_C" >&6
22559
22560
22561cat >conftest.c <<_ACEOF
22562/* confdefs.h. */
22563_ACEOF
22564cat confdefs.h >>conftest.$ac_ext
22565cat >>conftest.$ac_ext <<_ACEOF
22566/* end confdefs.h. */
22567
22568
22569 #include <asm/atomic.h>
22570
22571int
22572main (void)
22573{
22574
22575 atomic64_cmpxchg((atomic64_t *)NULL, 0, 0);
22576
22577 ;
22578 return 0;
22579}
22580
22581_ACEOF
22582
22583
22584 rm -Rf build && mkdir -p build
22585 echo "obj-m := conftest.o" >build/Makefile
22586 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
22587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22588 (eval $ac_try) 2>&5
22589 ac_status=$?
22590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22591 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22593 (eval $ac_try) 2>&5
22594 ac_status=$?
22595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22596 (exit $ac_status); }; }; then
22597
22598 echo "$as_me:$LINENO: result: yes" >&5
22599echo "${ECHO_T}yes" >&6
22600
22601cat >>confdefs.h <<\_ACEOF
22602#define HAVE_ATOMIC64_CMPXCHG 1
22603_ACEOF
22604
22605
22606else
22607 echo "$as_me: failed program was:" >&5
22608sed 's/^/| /' conftest.$ac_ext >&5
22609
22610 echo "$as_me:$LINENO: result: no" >&5
22611echo "${ECHO_T}no" >&6
22612
22613
22614
22615fi
22616
22617 rm -Rf build
22618
22619
22620
22621 echo "$as_me:$LINENO: checking whether kernel defines atomic64_xchg" >&5
22622echo $ECHO_N "checking whether kernel defines atomic64_xchg... $ECHO_C" >&6
22623
22624
22625cat >conftest.c <<_ACEOF
22626/* confdefs.h. */
22627_ACEOF
22628cat confdefs.h >>conftest.$ac_ext
22629cat >>conftest.$ac_ext <<_ACEOF
22630/* end confdefs.h. */
22631
22632
22633 #include <asm/atomic.h>
22634
22635int
22636main (void)
22637{
22638
22639 atomic64_xchg((atomic64_t *)NULL, 0);
22640
22641 ;
22642 return 0;
22643}
22644
22645_ACEOF
22646
22647
22648 rm -Rf build && mkdir -p build
22649 echo "obj-m := conftest.o" >build/Makefile
22650 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
22651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22652 (eval $ac_try) 2>&5
22653 ac_status=$?
22654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22655 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22657 (eval $ac_try) 2>&5
22658 ac_status=$?
22659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22660 (exit $ac_status); }; }; then
22661
22662 echo "$as_me:$LINENO: result: yes" >&5
22663echo "${ECHO_T}yes" >&6
22664
22665cat >>confdefs.h <<\_ACEOF
22666#define HAVE_ATOMIC64_XCHG 1
22667_ACEOF
22668
22669
bf9f3bac 22670else
22671 echo "$as_me: failed program was:" >&5
22672sed 's/^/| /' conftest.$ac_ext >&5
22673
bf9f3bac 22674 echo "$as_me:$LINENO: result: no" >&5
22675echo "${ECHO_T}no" >&6
22676
c5f70460
BB
22677
22678
bf9f3bac 22679fi
c5f70460
BB
22680
22681 rm -Rf build
22682
bf9f3bac 22683
22684
86933a6e 22685 echo "$as_me:$LINENO: checking whether INIT_WORK wants 3 args" >&5
bf9f3bac 22686echo $ECHO_N "checking whether INIT_WORK wants 3 args... $ECHO_C" >&6
22687
22688
22689cat >conftest.c <<_ACEOF
22690/* confdefs.h. */
22691_ACEOF
22692cat confdefs.h >>conftest.$ac_ext
22693cat >>conftest.$ac_ext <<_ACEOF
22694/* end confdefs.h. */
22695
22696
22697 #include <linux/workqueue.h>
22698
22699int
22700main (void)
22701{
22702
22703 struct work_struct work;
22704 INIT_WORK(&work, NULL, NULL);
22705
22706 ;
22707 return 0;
22708}
22709
22710_ACEOF
22711
c5f70460
BB
22712
22713 rm -Rf build && mkdir -p build
22714 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 22715 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 22716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22717 (eval $ac_try) 2>&5
22718 ac_status=$?
22719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22720 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22722 (eval $ac_try) 2>&5
22723 ac_status=$?
22724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22725 (exit $ac_status); }; }; then
22726
22727 echo "$as_me:$LINENO: result: yes" >&5
22728echo "${ECHO_T}yes" >&6
22729
22730cat >>confdefs.h <<\_ACEOF
22731#define HAVE_3ARGS_INIT_WORK 1
22732_ACEOF
22733
22734
22735else
22736 echo "$as_me: failed program was:" >&5
22737sed 's/^/| /' conftest.$ac_ext >&5
22738
bf9f3bac 22739 echo "$as_me:$LINENO: result: no" >&5
22740echo "${ECHO_T}no" >&6
22741
c5f70460
BB
22742
22743
bf9f3bac 22744fi
c5f70460
BB
22745
22746 rm -Rf build
22747
bf9f3bac 22748
22749
86933a6e 22750 echo "$as_me:$LINENO: checking whether register_sysctl_table() wants 2 args" >&5
bf9f3bac 22751echo $ECHO_N "checking whether register_sysctl_table() wants 2 args... $ECHO_C" >&6
22752
22753
22754cat >conftest.c <<_ACEOF
22755/* confdefs.h. */
22756_ACEOF
22757cat confdefs.h >>conftest.$ac_ext
22758cat >>conftest.$ac_ext <<_ACEOF
22759/* end confdefs.h. */
22760
22761
22762 #include <linux/sysctl.h>
22763
22764int
22765main (void)
22766{
22767
22768 return register_sysctl_table(NULL,0);
22769
22770 ;
22771 return 0;
22772}
22773
22774_ACEOF
22775
c5f70460
BB
22776
22777 rm -Rf build && mkdir -p build
22778 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 22779 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 22780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22781 (eval $ac_try) 2>&5
22782 ac_status=$?
22783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22784 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22786 (eval $ac_try) 2>&5
22787 ac_status=$?
22788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22789 (exit $ac_status); }; }; then
22790
22791 echo "$as_me:$LINENO: result: yes" >&5
22792echo "${ECHO_T}yes" >&6
22793
22794cat >>confdefs.h <<\_ACEOF
22795#define HAVE_2ARGS_REGISTER_SYSCTL 1
22796_ACEOF
22797
22798
22799else
22800 echo "$as_me: failed program was:" >&5
22801sed 's/^/| /' conftest.$ac_ext >&5
22802
bf9f3bac 22803 echo "$as_me:$LINENO: result: no" >&5
22804echo "${ECHO_T}no" >&6
22805
c5f70460
BB
22806
22807
bf9f3bac 22808fi
c5f70460
BB
22809
22810 rm -Rf build
22811
bf9f3bac 22812
22813
22814
22815 echo "$as_me:$LINENO: checking whether set_shrinker() available" >&5
22816echo $ECHO_N "checking whether set_shrinker() available... $ECHO_C" >&6
22817
22818
22819cat >conftest.c <<_ACEOF
22820/* confdefs.h. */
22821_ACEOF
22822cat confdefs.h >>conftest.$ac_ext
22823cat >>conftest.$ac_ext <<_ACEOF
22824/* end confdefs.h. */
22825
22826
22827 #include <linux/mm.h>
22828
22829int
22830main (void)
22831{
22832
22833 return set_shrinker(DEFAULT_SEEKS, NULL);
22834
22835 ;
22836 return 0;
22837}
22838
22839_ACEOF
22840
c5f70460
BB
22841
22842 rm -Rf build && mkdir -p build
22843 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 22844 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 22845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22846 (eval $ac_try) 2>&5
22847 ac_status=$?
22848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22849 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22851 (eval $ac_try) 2>&5
22852 ac_status=$?
22853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22854 (exit $ac_status); }; }; then
22855
22856 echo "$as_me:$LINENO: result: yes" >&5
22857echo "${ECHO_T}yes" >&6
22858
22859cat >>confdefs.h <<\_ACEOF
22860#define HAVE_SET_SHRINKER 1
22861_ACEOF
22862
22863
22864else
22865 echo "$as_me: failed program was:" >&5
22866sed 's/^/| /' conftest.$ac_ext >&5
22867
bf9f3bac 22868 echo "$as_me:$LINENO: result: no" >&5
22869echo "${ECHO_T}no" >&6
22870
c5f70460
BB
22871
22872
bf9f3bac 22873fi
c5f70460
BB
22874
22875 rm -Rf build
22876
bf9f3bac 22877
22878
86933a6e 22879 echo "$as_me:$LINENO: checking whether struct path used in struct nameidata" >&5
bf9f3bac 22880echo $ECHO_N "checking whether struct path used in struct nameidata... $ECHO_C" >&6
22881
22882
22883cat >conftest.c <<_ACEOF
22884/* confdefs.h. */
22885_ACEOF
22886cat confdefs.h >>conftest.$ac_ext
22887cat >>conftest.$ac_ext <<_ACEOF
22888/* end confdefs.h. */
22889
22890
22891 #include <linux/namei.h>
22892
22893int
22894main (void)
22895{
22896
22897 struct nameidata nd;
22898
22899 nd.path.mnt = NULL;
22900 nd.path.dentry = NULL;
22901
22902 ;
22903 return 0;
22904}
22905
22906_ACEOF
22907
c5f70460
BB
22908
22909 rm -Rf build && mkdir -p build
22910 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 22911 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 22912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22913 (eval $ac_try) 2>&5
22914 ac_status=$?
22915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22916 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22918 (eval $ac_try) 2>&5
22919 ac_status=$?
22920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22921 (exit $ac_status); }; }; then
22922
22923 echo "$as_me:$LINENO: result: yes" >&5
22924echo "${ECHO_T}yes" >&6
22925
22926cat >>confdefs.h <<\_ACEOF
22927#define HAVE_PATH_IN_NAMEIDATA 1
22928_ACEOF
22929
22930
22931else
22932 echo "$as_me: failed program was:" >&5
22933sed 's/^/| /' conftest.$ac_ext >&5
22934
bf9f3bac 22935 echo "$as_me:$LINENO: result: no" >&5
22936echo "${ECHO_T}no" >&6
22937
c5f70460
BB
22938
22939
bf9f3bac 22940fi
c5f70460
BB
22941
22942 rm -Rf build
22943
bf9f3bac 22944
22945
22946
22947 echo "$as_me:$LINENO: checking whether symbol task_curr is exported" >&5
22948echo $ECHO_N "checking whether symbol task_curr is exported... $ECHO_C" >&6
2e0e7e69
BB
22949 grep -q -E '[[:space:]]task_curr[[:space:]]' \
22950 $LINUX_OBJ/Module*.symvers 2>/dev/null
bf9f3bac 22951 rc=$?
22952 if test $rc -ne 0; then
22953 export=0
22954 for file in kernel/sched.c; do
2e0e7e69
BB
22955 grep -q -E "EXPORT_SYMBOL.*(task_curr)" \
22956 "$LINUX_OBJ/$file" 2>/dev/null
bf9f3bac 22957 rc=$?
22958 if test $rc -eq 0; then
22959 export=1
22960 break;
22961 fi
22962 done
22963 if test $export -eq 0; then
22964 echo "$as_me:$LINENO: result: no" >&5
22965echo "${ECHO_T}no" >&6
22966
22967 else
22968 echo "$as_me:$LINENO: result: yes" >&5
22969echo "${ECHO_T}yes" >&6
22970
22971cat >>confdefs.h <<\_ACEOF
22972#define HAVE_TASK_CURR 1
22973_ACEOF
22974
22975 fi
22976 else
22977 echo "$as_me:$LINENO: result: yes" >&5
22978echo "${ECHO_T}yes" >&6
22979
22980cat >>confdefs.h <<\_ACEOF
22981#define HAVE_TASK_CURR 1
22982_ACEOF
22983
22984 fi
22985
22986
86933a6e 22987 echo "$as_me:$LINENO: checking whether unnumbered sysctl support exists" >&5
bf9f3bac 22988echo $ECHO_N "checking whether unnumbered sysctl support exists... $ECHO_C" >&6
22989
22990
22991cat >conftest.c <<_ACEOF
22992/* confdefs.h. */
22993_ACEOF
22994cat confdefs.h >>conftest.$ac_ext
22995cat >>conftest.$ac_ext <<_ACEOF
22996/* end confdefs.h. */
22997
22998
22999 #include <linux/sysctl.h>
23000
23001int
23002main (void)
23003{
23004
23005 #ifndef CTL_UNNUMBERED
23006 #error CTL_UNNUMBERED undefined
23007 #endif
23008
23009 ;
23010 return 0;
23011}
23012
23013_ACEOF
23014
c5f70460
BB
23015
23016 rm -Rf build && mkdir -p build
23017 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 23018 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 23019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23020 (eval $ac_try) 2>&5
23021 ac_status=$?
23022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23023 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23025 (eval $ac_try) 2>&5
23026 ac_status=$?
23027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23028 (exit $ac_status); }; }; then
23029
23030 echo "$as_me:$LINENO: result: yes" >&5
23031echo "${ECHO_T}yes" >&6
23032
23033cat >>confdefs.h <<\_ACEOF
23034#define HAVE_CTL_UNNUMBERED 1
23035_ACEOF
23036
23037
23038else
23039 echo "$as_me: failed program was:" >&5
23040sed 's/^/| /' conftest.$ac_ext >&5
23041
bf9f3bac 23042 echo "$as_me:$LINENO: result: no" >&5
23043echo "${ECHO_T}no" >&6
23044
c5f70460
BB
23045
23046
bf9f3bac 23047fi
c5f70460
BB
23048
23049 rm -Rf build
23050
bf9f3bac 23051
23052
86933a6e 23053 echo "$as_me:$LINENO: checking whether fls64() is available" >&5
bf9f3bac 23054echo $ECHO_N "checking whether fls64() is available... $ECHO_C" >&6
23055
23056
23057cat >conftest.c <<_ACEOF
23058/* confdefs.h. */
23059_ACEOF
23060cat confdefs.h >>conftest.$ac_ext
23061cat >>conftest.$ac_ext <<_ACEOF
23062/* end confdefs.h. */
23063
23064
23065 #include <linux/bitops.h>
23066
23067int
23068main (void)
23069{
23070
23071 return fls64(0);
23072
23073 ;
23074 return 0;
23075}
23076
23077_ACEOF
23078
c5f70460
BB
23079
23080 rm -Rf build && mkdir -p build
23081 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 23082 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 23083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23084 (eval $ac_try) 2>&5
23085 ac_status=$?
23086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23087 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23089 (eval $ac_try) 2>&5
23090 ac_status=$?
23091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23092 (exit $ac_status); }; }; then
23093
23094 echo "$as_me:$LINENO: result: yes" >&5
23095echo "${ECHO_T}yes" >&6
23096
23097cat >>confdefs.h <<\_ACEOF
23098#define HAVE_FLS64 1
23099_ACEOF
23100
23101
23102else
23103 echo "$as_me: failed program was:" >&5
23104sed 's/^/| /' conftest.$ac_ext >&5
23105
bf9f3bac 23106 echo "$as_me:$LINENO: result: no" >&5
23107echo "${ECHO_T}no" >&6
23108
c5f70460
BB
23109
23110
bf9f3bac 23111fi
c5f70460
BB
23112
23113 rm -Rf build
23114
bf9f3bac 23115
23116
23117
23118 echo "$as_me:$LINENO: checking whether symbol device_create is exported" >&5
23119echo $ECHO_N "checking whether symbol device_create is exported... $ECHO_C" >&6
2e0e7e69
BB
23120 grep -q -E '[[:space:]]device_create[[:space:]]' \
23121 $LINUX_OBJ/Module*.symvers 2>/dev/null
bf9f3bac 23122 rc=$?
23123 if test $rc -ne 0; then
23124 export=0
23125 for file in drivers/base/core.c; do
2e0e7e69
BB
23126 grep -q -E "EXPORT_SYMBOL.*(device_create)" \
23127 "$LINUX_OBJ/$file" 2>/dev/null
bf9f3bac 23128 rc=$?
23129 if test $rc -eq 0; then
23130 export=1
23131 break;
23132 fi
23133 done
23134 if test $export -eq 0; then
23135 echo "$as_me:$LINENO: result: no" >&5
23136echo "${ECHO_T}no" >&6
23137
23138 else
23139 echo "$as_me:$LINENO: result: yes" >&5
23140echo "${ECHO_T}yes" >&6
23141
23142cat >>confdefs.h <<\_ACEOF
23143#define HAVE_DEVICE_CREATE 1
23144_ACEOF
23145
23146 fi
23147 else
23148 echo "$as_me:$LINENO: result: yes" >&5
23149echo "${ECHO_T}yes" >&6
23150
23151cat >>confdefs.h <<\_ACEOF
23152#define HAVE_DEVICE_CREATE 1
23153_ACEOF
23154
23155 fi
23156
23157
23158
8123ac4f
BB
23159 echo "$as_me:$LINENO: checking whether device_create() wants 5 args" >&5
23160echo $ECHO_N "checking whether device_create() wants 5 args... $ECHO_C" >&6
23161 tmp_flags="$EXTRA_KCFLAGS"
23162 EXTRA_KCFLAGS="-Werror"
23163
23164
23165cat >conftest.c <<_ACEOF
23166/* confdefs.h. */
23167_ACEOF
23168cat confdefs.h >>conftest.$ac_ext
23169cat >>conftest.$ac_ext <<_ACEOF
23170/* end confdefs.h. */
23171
23172
23173 #include <linux/device.h>
23174
23175int
23176main (void)
23177{
23178
23179 device_create(NULL, NULL, 0, NULL, "%d", 1);
23180
23181 ;
23182 return 0;
23183}
23184
23185_ACEOF
23186
23187
23188 rm -Rf build && mkdir -p build
23189 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 23190 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
8123ac4f
BB
23191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23192 (eval $ac_try) 2>&5
23193 ac_status=$?
23194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23195 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23197 (eval $ac_try) 2>&5
23198 ac_status=$?
23199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23200 (exit $ac_status); }; }; then
23201
23202 echo "$as_me:$LINENO: result: yes" >&5
23203echo "${ECHO_T}yes" >&6
23204
23205cat >>confdefs.h <<\_ACEOF
23206#define HAVE_5ARGS_DEVICE_CREATE 1
23207_ACEOF
23208
23209
23210else
23211 echo "$as_me: failed program was:" >&5
23212sed 's/^/| /' conftest.$ac_ext >&5
23213
23214 echo "$as_me:$LINENO: result: no" >&5
23215echo "${ECHO_T}no" >&6
23216
23217
23218
23219fi
23220
23221 rm -Rf build
23222
23223
23224 EXTRA_KCFLAGS="$tmp_flags"
23225
23226
bf9f3bac 23227 echo "$as_me:$LINENO: checking whether symbol class_device_create is exported" >&5
23228echo $ECHO_N "checking whether symbol class_device_create is exported... $ECHO_C" >&6
2e0e7e69
BB
23229 grep -q -E '[[:space:]]class_device_create[[:space:]]' \
23230 $LINUX_OBJ/Module*.symvers 2>/dev/null
bf9f3bac 23231 rc=$?
23232 if test $rc -ne 0; then
23233 export=0
23234 for file in drivers/base/class.c; do
2e0e7e69
BB
23235 grep -q -E "EXPORT_SYMBOL.*(class_device_create)" \
23236 "$LINUX_OBJ/$file" 2>/dev/null
bf9f3bac 23237 rc=$?
23238 if test $rc -eq 0; then
23239 export=1
23240 break;
23241 fi
23242 done
23243 if test $export -eq 0; then
23244 echo "$as_me:$LINENO: result: no" >&5
23245echo "${ECHO_T}no" >&6
23246
23247 else
23248 echo "$as_me:$LINENO: result: yes" >&5
23249echo "${ECHO_T}yes" >&6
23250
23251cat >>confdefs.h <<\_ACEOF
23252#define HAVE_CLASS_DEVICE_CREATE 1
23253_ACEOF
23254
23255 fi
23256 else
23257 echo "$as_me:$LINENO: result: yes" >&5
23258echo "${ECHO_T}yes" >&6
23259
23260cat >>confdefs.h <<\_ACEOF
23261#define HAVE_CLASS_DEVICE_CREATE 1
23262_ACEOF
23263
23264 fi
23265
23266
23267
23268 echo "$as_me:$LINENO: checking whether symbol set_normalized_timespec is exported" >&5
23269echo $ECHO_N "checking whether symbol set_normalized_timespec is exported... $ECHO_C" >&6
2e0e7e69
BB
23270 grep -q -E '[[:space:]]set_normalized_timespec[[:space:]]' \
23271 $LINUX_OBJ/Module*.symvers 2>/dev/null
bf9f3bac 23272 rc=$?
23273 if test $rc -ne 0; then
23274 export=0
23275 for file in kernel/time.c; do
2e0e7e69
BB
23276 grep -q -E "EXPORT_SYMBOL.*(set_normalized_timespec)" \
23277 "$LINUX_OBJ/$file" 2>/dev/null
bf9f3bac 23278 rc=$?
23279 if test $rc -eq 0; then
23280 export=1
23281 break;
23282 fi
23283 done
23284 if test $export -eq 0; then
23285 echo "$as_me:$LINENO: result: no" >&5
23286echo "${ECHO_T}no" >&6
23287
6ae7fef5
BB
23288 else
23289 echo "$as_me:$LINENO: result: yes" >&5
23290echo "${ECHO_T}yes" >&6
23291
23292cat >>confdefs.h <<\_ACEOF
23293#define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1
23294_ACEOF
23295
23296 fi
23297 else
23298 echo "$as_me:$LINENO: result: yes" >&5
23299echo "${ECHO_T}yes" >&6
23300
23301cat >>confdefs.h <<\_ACEOF
23302#define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1
23303_ACEOF
23304
23305 fi
23306
23307
23308
23309 echo "$as_me:$LINENO: checking whether set_normalized_timespec() is an inline" >&5
23310echo $ECHO_N "checking whether set_normalized_timespec() is an inline... $ECHO_C" >&6
23311
23312
23313cat >conftest.c <<_ACEOF
23314/* confdefs.h. */
23315_ACEOF
23316cat confdefs.h >>conftest.$ac_ext
23317cat >>conftest.$ac_ext <<_ACEOF
23318/* end confdefs.h. */
23319
23320
23321 #include <linux/time.h>
23322 void set_normalized_timespec(struct timespec *ts,
23323 time_t sec, long nsec) { }
23324
23325int
23326main (void)
23327{
23328
23329 ;
23330 return 0;
23331}
23332
23333_ACEOF
23334
23335
23336 rm -Rf build && mkdir -p build
23337 echo "obj-m := conftest.o" >build/Makefile
23338 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
23339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23340 (eval $ac_try) 2>&5
23341 ac_status=$?
23342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23343 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23345 (eval $ac_try) 2>&5
23346 ac_status=$?
23347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23348 (exit $ac_status); }; }; then
23349
23350 echo "$as_me:$LINENO: result: no" >&5
23351echo "${ECHO_T}no" >&6
23352
23353else
23354 echo "$as_me: failed program was:" >&5
23355sed 's/^/| /' conftest.$ac_ext >&5
23356
23357 echo "$as_me:$LINENO: result: yes" >&5
23358echo "${ECHO_T}yes" >&6
23359
23360cat >>confdefs.h <<\_ACEOF
23361#define HAVE_SET_NORMALIZED_TIMESPEC_INLINE 1
23362_ACEOF
23363
23364
23365
23366
23367fi
23368
23369 rm -Rf build
23370
23371
23372
23373
23374 echo "$as_me:$LINENO: checking whether timespec_sub() is available" >&5
23375echo $ECHO_N "checking whether timespec_sub() is available... $ECHO_C" >&6
23376
23377
23378cat >conftest.c <<_ACEOF
23379/* confdefs.h. */
23380_ACEOF
23381cat confdefs.h >>conftest.$ac_ext
23382cat >>conftest.$ac_ext <<_ACEOF
23383/* end confdefs.h. */
23384
23385
23386 #include <linux/time.h>
23387
23388int
23389main (void)
23390{
23391
23392 struct timespec a, b, c = { 0 };
23393 c = timespec_sub(a, b);
23394
23395 ;
23396 return 0;
23397}
23398
23399_ACEOF
23400
23401
23402 rm -Rf build && mkdir -p build
23403 echo "obj-m := conftest.o" >build/Makefile
23404 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
23405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23406 (eval $ac_try) 2>&5
23407 ac_status=$?
23408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23409 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23411 (eval $ac_try) 2>&5
23412 ac_status=$?
23413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23414 (exit $ac_status); }; }; then
23415
23416 echo "$as_me:$LINENO: result: yes" >&5
23417echo "${ECHO_T}yes" >&6
23418
23419cat >>confdefs.h <<\_ACEOF
23420#define HAVE_TIMESPEC_SUB 1
23421_ACEOF
23422
23423
23424else
23425 echo "$as_me: failed program was:" >&5
23426sed 's/^/| /' conftest.$ac_ext >&5
23427
23428 echo "$as_me:$LINENO: result: no" >&5
23429echo "${ECHO_T}no" >&6
23430
23431
23432
23433fi
23434
23435 rm -Rf build
23436
23437
23438
23439
23440 echo "$as_me:$LINENO: checking whether init_utsname() is available" >&5
23441echo $ECHO_N "checking whether init_utsname() is available... $ECHO_C" >&6
23442
23443
23444cat >conftest.c <<_ACEOF
23445/* confdefs.h. */
23446_ACEOF
23447cat confdefs.h >>conftest.$ac_ext
23448cat >>conftest.$ac_ext <<_ACEOF
23449/* end confdefs.h. */
23450
23451
23452 #include <linux/utsname.h>
23453
23454int
23455main (void)
23456{
23457
23458 struct new_utsname *a = init_utsname();
23459
23460 ;
23461 return 0;
23462}
23463
23464_ACEOF
23465
23466
23467 rm -Rf build && mkdir -p build
23468 echo "obj-m := conftest.o" >build/Makefile
23469 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
23470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23471 (eval $ac_try) 2>&5
23472 ac_status=$?
23473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23474 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23476 (eval $ac_try) 2>&5
23477 ac_status=$?
23478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23479 (exit $ac_status); }; }; then
23480
23481 echo "$as_me:$LINENO: result: yes" >&5
23482echo "${ECHO_T}yes" >&6
23483
23484cat >>confdefs.h <<\_ACEOF
23485#define HAVE_INIT_UTSNAME 1
23486_ACEOF
23487
23488
23489else
23490 echo "$as_me: failed program was:" >&5
23491sed 's/^/| /' conftest.$ac_ext >&5
23492
23493 echo "$as_me:$LINENO: result: no" >&5
23494echo "${ECHO_T}no" >&6
23495
23496
23497
23498fi
23499
23500 rm -Rf build
23501
23502
23503
23504
23505 echo "$as_me:$LINENO: checking whether header linux/fdtable.h exists" >&5
23506echo $ECHO_N "checking whether header linux/fdtable.h exists... $ECHO_C" >&6
23507
23508
23509cat >conftest.c <<_ACEOF
23510/* confdefs.h. */
23511_ACEOF
23512cat confdefs.h >>conftest.$ac_ext
23513cat >>conftest.$ac_ext <<_ACEOF
23514/* end confdefs.h. */
23515
23516
23517 #include <linux/fdtable.h>
23518
23519int
23520main (void)
23521{
23522
23523 return 0;
23524
23525 ;
23526 return 0;
23527}
23528
23529_ACEOF
23530
23531
23532 rm -Rf build && mkdir -p build
23533 echo "obj-m := conftest.o" >build/Makefile
23534 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
23535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23536 (eval $ac_try) 2>&5
23537 ac_status=$?
23538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23539 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23541 (eval $ac_try) 2>&5
23542 ac_status=$?
23543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23544 (exit $ac_status); }; }; then
23545
bf9f3bac 23546
23547cat >>confdefs.h <<\_ACEOF
6ae7fef5 23548#define HAVE_FDTABLE_HEADER 1
bf9f3bac 23549_ACEOF
23550
bf9f3bac 23551 echo "$as_me:$LINENO: result: yes" >&5
23552echo "${ECHO_T}yes" >&6
23553
bf9f3bac 23554
6ae7fef5
BB
23555else
23556 echo "$as_me: failed program was:" >&5
23557sed 's/^/| /' conftest.$ac_ext >&5
23558
23559 echo "$as_me:$LINENO: result: no" >&5
23560echo "${ECHO_T}no" >&6
bf9f3bac 23561
23562
23563
6ae7fef5
BB
23564
23565fi
23566
23567 rm -Rf build
23568
23569
23570
23571
23572
23573 echo "$as_me:$LINENO: checking whether files_fdtable() is available" >&5
23574echo $ECHO_N "checking whether files_fdtable() is available... $ECHO_C" >&6
bf9f3bac 23575
23576
23577cat >conftest.c <<_ACEOF
23578/* confdefs.h. */
23579_ACEOF
23580cat confdefs.h >>conftest.$ac_ext
23581cat >>conftest.$ac_ext <<_ACEOF
23582/* end confdefs.h. */
23583
23584
6ae7fef5
BB
23585 #include <linux/sched.h>
23586 #include <linux/file.h>
23587 #ifdef HAVE_FDTABLE_HEADER
23588 #include <linux/fdtable.h>
23589 #endif
bf9f3bac 23590
23591int
23592main (void)
23593{
23594
6ae7fef5
BB
23595 struct files_struct *files = current->files;
23596 struct fdtable *fdt = files_fdtable(files);
23597
bf9f3bac 23598 ;
23599 return 0;
23600}
23601
23602_ACEOF
23603
c5f70460
BB
23604
23605 rm -Rf build && mkdir -p build
23606 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 23607 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 23608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23609 (eval $ac_try) 2>&5
23610 ac_status=$?
23611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23612 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23614 (eval $ac_try) 2>&5
23615 ac_status=$?
23616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23617 (exit $ac_status); }; }; then
23618
bf9f3bac 23619 echo "$as_me:$LINENO: result: yes" >&5
23620echo "${ECHO_T}yes" >&6
23621
23622cat >>confdefs.h <<\_ACEOF
6ae7fef5 23623#define HAVE_FILES_FDTABLE 1
bf9f3bac 23624_ACEOF
23625
23626
6ae7fef5
BB
23627else
23628 echo "$as_me: failed program was:" >&5
23629sed 's/^/| /' conftest.$ac_ext >&5
23630
23631 echo "$as_me:$LINENO: result: no" >&5
23632echo "${ECHO_T}no" >&6
23633
c5f70460
BB
23634
23635
bf9f3bac 23636fi
c5f70460
BB
23637
23638 rm -Rf build
23639
bf9f3bac 23640
23641
23642
6ae7fef5
BB
23643 echo "$as_me:$LINENO: checking whether header linux/uaccess.h exists" >&5
23644echo $ECHO_N "checking whether header linux/uaccess.h exists... $ECHO_C" >&6
bf9f3bac 23645
23646
23647cat >conftest.c <<_ACEOF
23648/* confdefs.h. */
23649_ACEOF
23650cat confdefs.h >>conftest.$ac_ext
23651cat >>conftest.$ac_ext <<_ACEOF
23652/* end confdefs.h. */
23653
23654
6ae7fef5 23655 #include <linux/uaccess.h>
bf9f3bac 23656
23657int
23658main (void)
23659{
23660
6ae7fef5 23661 return 0;
bf9f3bac 23662
23663 ;
23664 return 0;
23665}
23666
23667_ACEOF
23668
c5f70460
BB
23669
23670 rm -Rf build && mkdir -p build
23671 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 23672 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 23673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23674 (eval $ac_try) 2>&5
23675 ac_status=$?
23676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23677 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23679 (eval $ac_try) 2>&5
23680 ac_status=$?
23681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23682 (exit $ac_status); }; }; then
23683
bf9f3bac 23684
23685cat >>confdefs.h <<\_ACEOF
6ae7fef5 23686#define HAVE_UACCESS_HEADER 1
bf9f3bac 23687_ACEOF
23688
6ae7fef5
BB
23689 echo "$as_me:$LINENO: result: yes" >&5
23690echo "${ECHO_T}yes" >&6
23691
bf9f3bac 23692
23693else
23694 echo "$as_me: failed program was:" >&5
23695sed 's/^/| /' conftest.$ac_ext >&5
23696
bf9f3bac 23697 echo "$as_me:$LINENO: result: no" >&5
23698echo "${ECHO_T}no" >&6
23699
c5f70460
BB
23700
23701
6ae7fef5 23702
bf9f3bac 23703fi
c5f70460
BB
23704
23705 rm -Rf build
23706
bf9f3bac 23707
23708
23709
6ae7fef5
BB
23710
23711 echo "$as_me:$LINENO: checking whether kmalloc_node() is available" >&5
23712echo $ECHO_N "checking whether kmalloc_node() is available... $ECHO_C" >&6
bf9f3bac 23713
23714
23715cat >conftest.c <<_ACEOF
23716/* confdefs.h. */
23717_ACEOF
23718cat confdefs.h >>conftest.$ac_ext
23719cat >>conftest.$ac_ext <<_ACEOF
23720/* end confdefs.h. */
23721
23722
6ae7fef5 23723 #include <linux/slab.h>
bf9f3bac 23724
23725int
23726main (void)
23727{
23728
6ae7fef5 23729 void *a = kmalloc_node(1, GFP_KERNEL, 0);
bf9f3bac 23730
23731 ;
23732 return 0;
23733}
23734
23735_ACEOF
23736
c5f70460
BB
23737
23738 rm -Rf build && mkdir -p build
23739 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 23740 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 23741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23742 (eval $ac_try) 2>&5
23743 ac_status=$?
23744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23745 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23747 (eval $ac_try) 2>&5
23748 ac_status=$?
23749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23750 (exit $ac_status); }; }; then
23751
23752 echo "$as_me:$LINENO: result: yes" >&5
23753echo "${ECHO_T}yes" >&6
23754
23755cat >>confdefs.h <<\_ACEOF
6ae7fef5 23756#define HAVE_KMALLOC_NODE 1
bf9f3bac 23757_ACEOF
23758
23759
23760else
23761 echo "$as_me: failed program was:" >&5
23762sed 's/^/| /' conftest.$ac_ext >&5
23763
bf9f3bac 23764 echo "$as_me:$LINENO: result: no" >&5
23765echo "${ECHO_T}no" >&6
23766
c5f70460
BB
23767
23768
bf9f3bac 23769fi
c5f70460
BB
23770
23771 rm -Rf build
23772
bf9f3bac 23773
23774
23775
6ae7fef5
BB
23776 echo "$as_me:$LINENO: checking whether symbol monotonic_clock is exported" >&5
23777echo $ECHO_N "checking whether symbol monotonic_clock is exported... $ECHO_C" >&6
23778 grep -q -E '[[:space:]]monotonic_clock[[:space:]]' \
23779 $LINUX_OBJ/Module*.symvers 2>/dev/null
23780 rc=$?
23781 if test $rc -ne 0; then
23782 export=0
23783 for file in ; do
23784 grep -q -E "EXPORT_SYMBOL.*(monotonic_clock)" \
23785 "$LINUX_OBJ/$file" 2>/dev/null
23786 rc=$?
23787 if test $rc -eq 0; then
23788 export=1
23789 break;
23790 fi
23791 done
23792 if test $export -eq 0; then
23793 echo "$as_me:$LINENO: result: no" >&5
23794echo "${ECHO_T}no" >&6
23795
23796 else
23797 echo "$as_me:$LINENO: result: yes" >&5
23798echo "${ECHO_T}yes" >&6
23799
23800cat >>confdefs.h <<\_ACEOF
23801#define HAVE_MONOTONIC_CLOCK 1
23802_ACEOF
23803
23804 fi
23805 else
23806 echo "$as_me:$LINENO: result: yes" >&5
23807echo "${ECHO_T}yes" >&6
23808
23809cat >>confdefs.h <<\_ACEOF
23810#define HAVE_MONOTONIC_CLOCK 1
23811_ACEOF
23812
23813 fi
23814
23815
23816
23817 echo "$as_me:$LINENO: checking whether struct inode has i_mutex" >&5
23818echo $ECHO_N "checking whether struct inode has i_mutex... $ECHO_C" >&6
bf9f3bac 23819
23820
23821cat >conftest.c <<_ACEOF
23822/* confdefs.h. */
23823_ACEOF
23824cat confdefs.h >>conftest.$ac_ext
23825cat >>conftest.$ac_ext <<_ACEOF
23826/* end confdefs.h. */
23827
23828
6ae7fef5
BB
23829 #include <linux/fs.h>
23830 #include <linux/mutex.h>
bf9f3bac 23831
23832int
23833main (void)
23834{
23835
6ae7fef5
BB
23836 struct inode i;
23837 mutex_init(&i.i_mutex);
bf9f3bac 23838
23839 ;
23840 return 0;
23841}
23842
23843_ACEOF
23844
c5f70460
BB
23845
23846 rm -Rf build && mkdir -p build
23847 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 23848 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 23849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23850 (eval $ac_try) 2>&5
23851 ac_status=$?
23852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23853 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23855 (eval $ac_try) 2>&5
23856 ac_status=$?
23857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23858 (exit $ac_status); }; }; then
23859
6ae7fef5
BB
23860 echo "$as_me:$LINENO: result: yes" >&5
23861echo "${ECHO_T}yes" >&6
bf9f3bac 23862
23863cat >>confdefs.h <<\_ACEOF
6ae7fef5 23864#define HAVE_INODE_I_MUTEX 1
bf9f3bac 23865_ACEOF
23866
bf9f3bac 23867
23868else
23869 echo "$as_me: failed program was:" >&5
23870sed 's/^/| /' conftest.$ac_ext >&5
23871
bf9f3bac 23872 echo "$as_me:$LINENO: result: no" >&5
23873echo "${ECHO_T}no" >&6
23874
23875
c5f70460 23876
bf9f3bac 23877fi
c5f70460
BB
23878
23879 rm -Rf build
23880
bf9f3bac 23881
23882
23883
4d54fdee
BB
23884 echo "$as_me:$LINENO: checking whether struct mutex has owner" >&5
23885echo $ECHO_N "checking whether struct mutex has owner... $ECHO_C" >&6
23886
23887
23888cat >conftest.c <<_ACEOF
23889/* confdefs.h. */
23890_ACEOF
23891cat confdefs.h >>conftest.$ac_ext
23892cat >>conftest.$ac_ext <<_ACEOF
23893/* end confdefs.h. */
23894
23895
23896 #include <linux/mutex.h>
23897
23898int
23899main (void)
23900{
23901
23902 struct mutex mtx;
23903 mtx.owner = NULL;
23904
23905 ;
23906 return 0;
23907}
23908
23909_ACEOF
23910
23911
23912 rm -Rf build && mkdir -p build
23913 echo "obj-m := conftest.o" >build/Makefile
23914 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
23915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23916 (eval $ac_try) 2>&5
23917 ac_status=$?
23918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23919 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23921 (eval $ac_try) 2>&5
23922 ac_status=$?
23923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23924 (exit $ac_status); }; }; then
23925
23926 echo "$as_me:$LINENO: result: yes" >&5
23927echo "${ECHO_T}yes" >&6
23928
23929cat >>confdefs.h <<\_ACEOF
23930#define HAVE_MUTEX_OWNER 1
23931_ACEOF
23932
23933
23934else
23935 echo "$as_me: failed program was:" >&5
23936sed 's/^/| /' conftest.$ac_ext >&5
23937
23938 echo "$as_me:$LINENO: result: no" >&5
23939echo "${ECHO_T}no" >&6
23940
23941
23942
23943fi
23944
23945 rm -Rf build
23946
23947
23948
23949
6ae7fef5
BB
23950 echo "$as_me:$LINENO: checking whether mutex_lock_nested() is available" >&5
23951echo $ECHO_N "checking whether mutex_lock_nested() is available... $ECHO_C" >&6
bf9f3bac 23952
23953
23954cat >conftest.c <<_ACEOF
23955/* confdefs.h. */
23956_ACEOF
23957cat confdefs.h >>conftest.$ac_ext
23958cat >>conftest.$ac_ext <<_ACEOF
23959/* end confdefs.h. */
23960
23961
6ae7fef5 23962 #include <linux/mutex.h>
bf9f3bac 23963
23964int
23965main (void)
23966{
23967
6ae7fef5
BB
23968 struct mutex mutex;
23969 mutex_init(&mutex);
23970 mutex_lock_nested(&mutex, 0);
bf9f3bac 23971
23972 ;
23973 return 0;
23974}
23975
23976_ACEOF
23977
c5f70460
BB
23978
23979 rm -Rf build && mkdir -p build
23980 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 23981 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 23982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23983 (eval $ac_try) 2>&5
23984 ac_status=$?
23985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23986 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23988 (eval $ac_try) 2>&5
23989 ac_status=$?
23990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23991 (exit $ac_status); }; }; then
23992
23993 echo "$as_me:$LINENO: result: yes" >&5
23994echo "${ECHO_T}yes" >&6
23995
23996cat >>confdefs.h <<\_ACEOF
6ae7fef5 23997#define HAVE_MUTEX_LOCK_NESTED 1
bf9f3bac 23998_ACEOF
23999
24000
24001else
24002 echo "$as_me: failed program was:" >&5
24003sed 's/^/| /' conftest.$ac_ext >&5
24004
bf9f3bac 24005 echo "$as_me:$LINENO: result: no" >&5
24006echo "${ECHO_T}no" >&6
24007
c5f70460
BB
24008
24009
bf9f3bac 24010fi
c5f70460
BB
24011
24012 rm -Rf build
24013
bf9f3bac 24014
24015
24016
6ae7fef5
BB
24017 echo "$as_me:$LINENO: checking whether symbol div64_64 is exported" >&5
24018echo $ECHO_N "checking whether symbol div64_64 is exported... $ECHO_C" >&6
24019 grep -q -E '[[:space:]]div64_64[[:space:]]' \
24020 $LINUX_OBJ/Module*.symvers 2>/dev/null
24021 rc=$?
24022 if test $rc -ne 0; then
24023 export=0
24024 for file in ; do
24025 grep -q -E "EXPORT_SYMBOL.*(div64_64)" \
24026 "$LINUX_OBJ/$file" 2>/dev/null
24027 rc=$?
24028 if test $rc -eq 0; then
24029 export=1
24030 break;
24031 fi
24032 done
24033 if test $export -eq 0; then
24034 echo "$as_me:$LINENO: result: no" >&5
24035echo "${ECHO_T}no" >&6
24036
24037 else
24038 echo "$as_me:$LINENO: result: yes" >&5
24039echo "${ECHO_T}yes" >&6
24040
24041cat >>confdefs.h <<\_ACEOF
24042#define HAVE_DIV64_64 1
24043_ACEOF
24044
24045 fi
24046 else
24047 echo "$as_me:$LINENO: result: yes" >&5
24048echo "${ECHO_T}yes" >&6
24049
24050cat >>confdefs.h <<\_ACEOF
24051#define HAVE_DIV64_64 1
24052_ACEOF
24053
24054 fi
24055
24056
24057
24058 echo "$as_me:$LINENO: checking whether symbol div64_u64 is exported" >&5
24059echo $ECHO_N "checking whether symbol div64_u64 is exported... $ECHO_C" >&6
24060 grep -q -E '[[:space:]]div64_u64[[:space:]]' \
24061 $LINUX_OBJ/Module*.symvers 2>/dev/null
24062 rc=$?
24063 if test $rc -ne 0; then
24064 export=0
24065 for file in ; do
24066 grep -q -E "EXPORT_SYMBOL.*(div64_u64)" \
24067 "$LINUX_OBJ/$file" 2>/dev/null
24068 rc=$?
24069 if test $rc -eq 0; then
24070 export=1
24071 break;
24072 fi
24073 done
24074 if test $export -eq 0; then
24075 echo "$as_me:$LINENO: result: no" >&5
24076echo "${ECHO_T}no" >&6
24077
24078 else
24079 echo "$as_me:$LINENO: result: yes" >&5
24080echo "${ECHO_T}yes" >&6
24081
24082cat >>confdefs.h <<\_ACEOF
24083#define HAVE_DIV64_U64 1
24084_ACEOF
24085
24086 fi
24087 else
24088 echo "$as_me:$LINENO: result: yes" >&5
24089echo "${ECHO_T}yes" >&6
24090
24091cat >>confdefs.h <<\_ACEOF
24092#define HAVE_DIV64_U64 1
24093_ACEOF
24094
24095 fi
24096
24097
24098
24099 echo "$as_me:$LINENO: checking whether on_each_cpu() wants 3 args" >&5
24100echo $ECHO_N "checking whether on_each_cpu() wants 3 args... $ECHO_C" >&6
bf9f3bac 24101
24102
24103cat >conftest.c <<_ACEOF
24104/* confdefs.h. */
24105_ACEOF
24106cat confdefs.h >>conftest.$ac_ext
24107cat >>conftest.$ac_ext <<_ACEOF
24108/* end confdefs.h. */
24109
24110
6ae7fef5 24111 #include <linux/smp.h>
bf9f3bac 24112
24113int
24114main (void)
24115{
24116
6ae7fef5 24117 on_each_cpu(NULL, NULL, 0);
bf9f3bac 24118
24119 ;
24120 return 0;
24121}
24122
24123_ACEOF
24124
c5f70460
BB
24125
24126 rm -Rf build && mkdir -p build
24127 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 24128 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 24129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24130 (eval $ac_try) 2>&5
24131 ac_status=$?
24132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24133 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
24134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24135 (eval $ac_try) 2>&5
24136 ac_status=$?
24137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24138 (exit $ac_status); }; }; then
24139
6ae7fef5
BB
24140 echo "$as_me:$LINENO: result: yes" >&5
24141echo "${ECHO_T}yes" >&6
bf9f3bac 24142
24143cat >>confdefs.h <<\_ACEOF
6ae7fef5 24144#define HAVE_3ARGS_ON_EACH_CPU 1
bf9f3bac 24145_ACEOF
24146
bf9f3bac 24147
24148else
24149 echo "$as_me: failed program was:" >&5
24150sed 's/^/| /' conftest.$ac_ext >&5
24151
bf9f3bac 24152 echo "$as_me:$LINENO: result: no" >&5
24153echo "${ECHO_T}no" >&6
24154
24155
c5f70460 24156
bf9f3bac 24157fi
c5f70460
BB
24158
24159 rm -Rf build
24160
bf9f3bac 24161
24162
24163
6ae7fef5
BB
24164 echo "$as_me:$LINENO: checking whether symbol kallsyms_lookup_name is exported" >&5
24165echo $ECHO_N "checking whether symbol kallsyms_lookup_name is exported... $ECHO_C" >&6
24166 grep -q -E '[[:space:]]kallsyms_lookup_name[[:space:]]' \
24167 $LINUX_OBJ/Module*.symvers 2>/dev/null
24168 rc=$?
24169 if test $rc -ne 0; then
24170 export=0
24171 for file in ; do
24172 grep -q -E "EXPORT_SYMBOL.*(kallsyms_lookup_name)" \
24173 "$LINUX_OBJ/$file" 2>/dev/null
24174 rc=$?
24175 if test $rc -eq 0; then
24176 export=1
24177 break;
24178 fi
24179 done
24180 if test $export -eq 0; then
24181 echo "$as_me:$LINENO: result: no" >&5
24182echo "${ECHO_T}no" >&6
bf9f3bac 24183
6ae7fef5
BB
24184 else
24185 echo "$as_me:$LINENO: result: yes" >&5
24186echo "${ECHO_T}yes" >&6
bf9f3bac 24187
6ae7fef5
BB
24188cat >>confdefs.h <<\_ACEOF
24189#define HAVE_KALLSYMS_LOOKUP_NAME 1
24190_ACEOF
bf9f3bac 24191
6ae7fef5
BB
24192 fi
24193 else
24194 echo "$as_me:$LINENO: result: yes" >&5
24195echo "${ECHO_T}yes" >&6
24196
24197cat >>confdefs.h <<\_ACEOF
24198#define HAVE_KALLSYMS_LOOKUP_NAME 1
bf9f3bac 24199_ACEOF
bf9f3bac 24200
6ae7fef5 24201 fi
bf9f3bac 24202
bf9f3bac 24203
bf9f3bac 24204
6ae7fef5
BB
24205 echo "$as_me:$LINENO: checking whether symbol get_vmalloc_info is exported" >&5
24206echo $ECHO_N "checking whether symbol get_vmalloc_info is exported... $ECHO_C" >&6
24207 grep -q -E '[[:space:]]get_vmalloc_info[[:space:]]' \
24208 $LINUX_OBJ/Module*.symvers 2>/dev/null
24209 rc=$?
24210 if test $rc -ne 0; then
24211 export=0
24212 for file in ; do
24213 grep -q -E "EXPORT_SYMBOL.*(get_vmalloc_info)" \
24214 "$LINUX_OBJ/$file" 2>/dev/null
24215 rc=$?
24216 if test $rc -eq 0; then
24217 export=1
24218 break;
24219 fi
24220 done
24221 if test $export -eq 0; then
24222 echo "$as_me:$LINENO: result: no" >&5
24223echo "${ECHO_T}no" >&6
bf9f3bac 24224
6ae7fef5
BB
24225 else
24226 echo "$as_me:$LINENO: result: yes" >&5
24227echo "${ECHO_T}yes" >&6
bf9f3bac 24228
6ae7fef5
BB
24229cat >>confdefs.h <<\_ACEOF
24230#define HAVE_GET_VMALLOC_INFO 1
bf9f3bac 24231_ACEOF
24232
6ae7fef5
BB
24233 fi
24234 else
24235 echo "$as_me:$LINENO: result: yes" >&5
24236echo "${ECHO_T}yes" >&6
24237
24238cat >>confdefs.h <<\_ACEOF
24239#define HAVE_GET_VMALLOC_INFO 1
24240_ACEOF
24241
24242 fi
24243
c5f70460 24244
bf9f3bac 24245
6ae7fef5
BB
24246 echo "$as_me:$LINENO: checking whether symbol *_pgdat exist" >&5
24247echo $ECHO_N "checking whether symbol *_pgdat exist... $ECHO_C" >&6
24248 grep -q -E 'first_online_pgdat' $LINUX/include/linux/mmzone.h 2>/dev/null
24249 rc=$?
24250 if test $rc -eq 0; then
bf9f3bac 24251 echo "$as_me:$LINENO: result: yes" >&5
24252echo "${ECHO_T}yes" >&6
24253
24254cat >>confdefs.h <<\_ACEOF
6ae7fef5 24255#define HAVE_PGDAT_HELPERS 1
bf9f3bac 24256_ACEOF
24257
6ae7fef5
BB
24258 else
24259 echo "$as_me:$LINENO: result: no" >&5
24260echo "${ECHO_T}no" >&6
24261 fi
bf9f3bac 24262
bf9f3bac 24263
6ae7fef5
BB
24264 echo "$as_me:$LINENO: checking whether symbol first_online_pgdat is exported" >&5
24265echo $ECHO_N "checking whether symbol first_online_pgdat is exported... $ECHO_C" >&6
24266 grep -q -E '[[:space:]]first_online_pgdat[[:space:]]' \
24267 $LINUX_OBJ/Module*.symvers 2>/dev/null
24268 rc=$?
24269 if test $rc -ne 0; then
24270 export=0
24271 for file in ; do
24272 grep -q -E "EXPORT_SYMBOL.*(first_online_pgdat)" \
24273 "$LINUX_OBJ/$file" 2>/dev/null
24274 rc=$?
24275 if test $rc -eq 0; then
24276 export=1
24277 break;
24278 fi
24279 done
24280 if test $export -eq 0; then
24281 echo "$as_me:$LINENO: result: no" >&5
bf9f3bac 24282echo "${ECHO_T}no" >&6
24283
6ae7fef5
BB
24284 else
24285 echo "$as_me:$LINENO: result: yes" >&5
24286echo "${ECHO_T}yes" >&6
c5f70460 24287
6ae7fef5
BB
24288cat >>confdefs.h <<\_ACEOF
24289#define HAVE_FIRST_ONLINE_PGDAT 1
24290_ACEOF
c5f70460 24291
6ae7fef5
BB
24292 fi
24293 else
24294 echo "$as_me:$LINENO: result: yes" >&5
24295echo "${ECHO_T}yes" >&6
c5f70460 24296
6ae7fef5
BB
24297cat >>confdefs.h <<\_ACEOF
24298#define HAVE_FIRST_ONLINE_PGDAT 1
24299_ACEOF
c5f70460 24300
6ae7fef5 24301 fi
bf9f3bac 24302
24303
24304
6ae7fef5
BB
24305 echo "$as_me:$LINENO: checking whether symbol next_online_pgdat is exported" >&5
24306echo $ECHO_N "checking whether symbol next_online_pgdat is exported... $ECHO_C" >&6
24307 grep -q -E '[[:space:]]next_online_pgdat[[:space:]]' \
2e0e7e69 24308 $LINUX_OBJ/Module*.symvers 2>/dev/null
bf9f3bac 24309 rc=$?
24310 if test $rc -ne 0; then
24311 export=0
24312 for file in ; do
6ae7fef5 24313 grep -q -E "EXPORT_SYMBOL.*(next_online_pgdat)" \
2e0e7e69 24314 "$LINUX_OBJ/$file" 2>/dev/null
bf9f3bac 24315 rc=$?
24316 if test $rc -eq 0; then
24317 export=1
24318 break;
24319 fi
24320 done
24321 if test $export -eq 0; then
24322 echo "$as_me:$LINENO: result: no" >&5
24323echo "${ECHO_T}no" >&6
24324
24325 else
24326 echo "$as_me:$LINENO: result: yes" >&5
24327echo "${ECHO_T}yes" >&6
24328
24329cat >>confdefs.h <<\_ACEOF
6ae7fef5 24330#define HAVE_NEXT_ONLINE_PGDAT 1
bf9f3bac 24331_ACEOF
24332
24333 fi
24334 else
24335 echo "$as_me:$LINENO: result: yes" >&5
24336echo "${ECHO_T}yes" >&6
24337
24338cat >>confdefs.h <<\_ACEOF
6ae7fef5 24339#define HAVE_NEXT_ONLINE_PGDAT 1
bf9f3bac 24340_ACEOF
24341
24342 fi
24343
24344
24345
6ae7fef5
BB
24346 echo "$as_me:$LINENO: checking whether symbol next_zone is exported" >&5
24347echo $ECHO_N "checking whether symbol next_zone is exported... $ECHO_C" >&6
24348 grep -q -E '[[:space:]]next_zone[[:space:]]' \
24349 $LINUX_OBJ/Module*.symvers 2>/dev/null
24350 rc=$?
24351 if test $rc -ne 0; then
24352 export=0
24353 for file in ; do
24354 grep -q -E "EXPORT_SYMBOL.*(next_zone)" \
24355 "$LINUX_OBJ/$file" 2>/dev/null
24356 rc=$?
24357 if test $rc -eq 0; then
24358 export=1
24359 break;
24360 fi
24361 done
24362 if test $export -eq 0; then
24363 echo "$as_me:$LINENO: result: no" >&5
24364echo "${ECHO_T}no" >&6
24365
24366 else
24367 echo "$as_me:$LINENO: result: yes" >&5
24368echo "${ECHO_T}yes" >&6
24369
24370cat >>confdefs.h <<\_ACEOF
24371#define HAVE_NEXT_ZONE 1
24372_ACEOF
24373
24374 fi
24375 else
24376 echo "$as_me:$LINENO: result: yes" >&5
24377echo "${ECHO_T}yes" >&6
24378
24379cat >>confdefs.h <<\_ACEOF
24380#define HAVE_NEXT_ZONE 1
24381_ACEOF
24382
24383 fi
24384
24385
24386
24387 echo "$as_me:$LINENO: checking whether symbol pgdat_list is exported" >&5
24388echo $ECHO_N "checking whether symbol pgdat_list is exported... $ECHO_C" >&6
24389 grep -q -E '[[:space:]]pgdat_list[[:space:]]' \
24390 $LINUX_OBJ/Module*.symvers 2>/dev/null
24391 rc=$?
24392 if test $rc -ne 0; then
24393 export=0
24394 for file in ; do
24395 grep -q -E "EXPORT_SYMBOL.*(pgdat_list)" \
24396 "$LINUX_OBJ/$file" 2>/dev/null
24397 rc=$?
24398 if test $rc -eq 0; then
24399 export=1
24400 break;
24401 fi
24402 done
24403 if test $export -eq 0; then
24404 echo "$as_me:$LINENO: result: no" >&5
24405echo "${ECHO_T}no" >&6
24406
24407 else
24408 echo "$as_me:$LINENO: result: yes" >&5
24409echo "${ECHO_T}yes" >&6
24410
24411cat >>confdefs.h <<\_ACEOF
24412#define HAVE_PGDAT_LIST 1
24413_ACEOF
24414
24415 fi
24416 else
24417 echo "$as_me:$LINENO: result: yes" >&5
24418echo "${ECHO_T}yes" >&6
24419
24420cat >>confdefs.h <<\_ACEOF
24421#define HAVE_PGDAT_LIST 1
24422_ACEOF
24423
24424 fi
24425
24426
24427
24428 echo "$as_me:$LINENO: checking whether global_page_state() is available" >&5
24429echo $ECHO_N "checking whether global_page_state() is available... $ECHO_C" >&6
bf9f3bac 24430
24431
24432cat >conftest.c <<_ACEOF
24433/* confdefs.h. */
24434_ACEOF
24435cat confdefs.h >>conftest.$ac_ext
24436cat >>conftest.$ac_ext <<_ACEOF
24437/* end confdefs.h. */
24438
24439
6ae7fef5 24440 #include <linux/mm.h>
bf9f3bac 24441
24442int
24443main (void)
24444{
24445
6ae7fef5
BB
24446 unsigned long state;
24447 state = global_page_state(0);
bf9f3bac 24448
24449 ;
24450 return 0;
24451}
24452
24453_ACEOF
24454
c5f70460
BB
24455
24456 rm -Rf build && mkdir -p build
24457 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 24458 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 24459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24460 (eval $ac_try) 2>&5
24461 ac_status=$?
24462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24463 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
24464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24465 (eval $ac_try) 2>&5
24466 ac_status=$?
24467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24468 (exit $ac_status); }; }; then
24469
24470 echo "$as_me:$LINENO: result: yes" >&5
24471echo "${ECHO_T}yes" >&6
24472
24473cat >>confdefs.h <<\_ACEOF
6ae7fef5 24474#define HAVE_GLOBAL_PAGE_STATE 1
bf9f3bac 24475_ACEOF
24476
24477
24478else
24479 echo "$as_me: failed program was:" >&5
24480sed 's/^/| /' conftest.$ac_ext >&5
24481
bf9f3bac 24482 echo "$as_me:$LINENO: result: no" >&5
24483echo "${ECHO_T}no" >&6
24484
c5f70460
BB
24485
24486
bf9f3bac 24487fi
c5f70460
BB
24488
24489 rm -Rf build
24490
bf9f3bac 24491
24492
24493
6ae7fef5
BB
24494 echo "$as_me:$LINENO: checking whether page state NR_FREE_PAGES is available" >&5
24495echo $ECHO_N "checking whether page state NR_FREE_PAGES is available... $ECHO_C" >&6
6c9433c1
BB
24496
24497
24498cat >conftest.c <<_ACEOF
24499/* confdefs.h. */
24500_ACEOF
24501cat confdefs.h >>conftest.$ac_ext
24502cat >>conftest.$ac_ext <<_ACEOF
24503/* end confdefs.h. */
24504
24505
6ae7fef5 24506 #include <linux/mm.h>
6c9433c1
BB
24507
24508int
24509main (void)
24510{
24511
6ae7fef5
BB
24512 enum zone_stat_item zsi;
24513 zsi = NR_FREE_PAGES;
6c9433c1
BB
24514
24515 ;
24516 return 0;
24517}
24518
24519_ACEOF
24520
24521
24522 rm -Rf build && mkdir -p build
24523 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 24524 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
6c9433c1
BB
24525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24526 (eval $ac_try) 2>&5
24527 ac_status=$?
24528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24529 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
24530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24531 (eval $ac_try) 2>&5
24532 ac_status=$?
24533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24534 (exit $ac_status); }; }; then
24535
24536 echo "$as_me:$LINENO: result: yes" >&5
24537echo "${ECHO_T}yes" >&6
24538
24539cat >>confdefs.h <<\_ACEOF
6ae7fef5 24540#define HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES 1
6c9433c1
BB
24541_ACEOF
24542
24543
24544else
24545 echo "$as_me: failed program was:" >&5
24546sed 's/^/| /' conftest.$ac_ext >&5
24547
24548 echo "$as_me:$LINENO: result: no" >&5
24549echo "${ECHO_T}no" >&6
24550
24551
24552
24553fi
24554
24555 rm -Rf build
24556
24557
24558
24559
6ae7fef5
BB
24560 echo "$as_me:$LINENO: checking whether page state NR_INACTIVE is available" >&5
24561echo $ECHO_N "checking whether page state NR_INACTIVE is available... $ECHO_C" >&6
bf9f3bac 24562
bf9f3bac 24563
6ae7fef5
BB
24564cat >conftest.c <<_ACEOF
24565/* confdefs.h. */
bf9f3bac 24566_ACEOF
6ae7fef5
BB
24567cat confdefs.h >>conftest.$ac_ext
24568cat >>conftest.$ac_ext <<_ACEOF
24569/* end confdefs.h. */
bf9f3bac 24570
bf9f3bac 24571
6ae7fef5 24572 #include <linux/mm.h>
bf9f3bac 24573
6ae7fef5
BB
24574int
24575main (void)
24576{
96dded38 24577
6ae7fef5
BB
24578 enum zone_stat_item zsi;
24579 zsi = NR_INACTIVE;
bf9f3bac 24580
6ae7fef5
BB
24581 ;
24582 return 0;
24583}
31a033ec 24584
6ae7fef5 24585_ACEOF
31a033ec 24586
c5f70460 24587
6ae7fef5
BB
24588 rm -Rf build && mkdir -p build
24589 echo "obj-m := conftest.o" >build/Makefile
24590 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
24591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24592 (eval $ac_try) 2>&5
24593 ac_status=$?
24594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24595 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
24596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24597 (eval $ac_try) 2>&5
24598 ac_status=$?
24599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24600 (exit $ac_status); }; }; then
c5f70460 24601
96dded38
BB
24602 echo "$as_me:$LINENO: result: yes" >&5
24603echo "${ECHO_T}yes" >&6
c5f70460 24604
96dded38 24605cat >>confdefs.h <<\_ACEOF
6ae7fef5 24606#define HAVE_ZONE_STAT_ITEM_NR_INACTIVE 1
96dded38 24607_ACEOF
c5f70460 24608
31a033ec 24609
6ae7fef5
BB
24610else
24611 echo "$as_me: failed program was:" >&5
24612sed 's/^/| /' conftest.$ac_ext >&5
24613
24614 echo "$as_me:$LINENO: result: no" >&5
24615echo "${ECHO_T}no" >&6
24616
24617
24618
24619fi
24620
24621 rm -Rf build
31a033ec
BB
24622
24623
6ae7fef5
BB
24624
24625 echo "$as_me:$LINENO: checking whether page state NR_INACTIVE_ANON is available" >&5
24626echo $ECHO_N "checking whether page state NR_INACTIVE_ANON is available... $ECHO_C" >&6
31a033ec
BB
24627
24628
24629cat >conftest.c <<_ACEOF
24630/* confdefs.h. */
24631_ACEOF
24632cat confdefs.h >>conftest.$ac_ext
24633cat >>conftest.$ac_ext <<_ACEOF
24634/* end confdefs.h. */
24635
24636
6ae7fef5 24637 #include <linux/mm.h>
31a033ec
BB
24638
24639int
24640main (void)
24641{
24642
6ae7fef5
BB
24643 enum zone_stat_item zsi;
24644 zsi = NR_INACTIVE_ANON;
31a033ec
BB
24645
24646 ;
24647 return 0;
24648}
24649
24650_ACEOF
24651
c5f70460
BB
24652
24653 rm -Rf build && mkdir -p build
24654 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 24655 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
31a033ec
BB
24656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24657 (eval $ac_try) 2>&5
24658 ac_status=$?
24659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24660 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
24661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24662 (eval $ac_try) 2>&5
24663 ac_status=$?
24664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24665 (exit $ac_status); }; }; then
24666
24667 echo "$as_me:$LINENO: result: yes" >&5
24668echo "${ECHO_T}yes" >&6
24669
24670cat >>confdefs.h <<\_ACEOF
6ae7fef5 24671#define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON 1
31a033ec
BB
24672_ACEOF
24673
24674
bf9f3bac 24675else
24676 echo "$as_me: failed program was:" >&5
24677sed 's/^/| /' conftest.$ac_ext >&5
24678
bf9f3bac 24679 echo "$as_me:$LINENO: result: no" >&5
24680echo "${ECHO_T}no" >&6
24681
c5f70460
BB
24682
24683
bf9f3bac 24684fi
c5f70460
BB
24685
24686 rm -Rf build
24687
bf9f3bac 24688
24689
6ae7fef5
BB
24690 echo "$as_me:$LINENO: checking whether page state NR_INACTIVE_FILE is available" >&5
24691echo $ECHO_N "checking whether page state NR_INACTIVE_FILE is available... $ECHO_C" >&6
bf9f3bac 24692
d1ff2312 24693
6ae7fef5
BB
24694cat >conftest.c <<_ACEOF
24695/* confdefs.h. */
d1ff2312 24696_ACEOF
6ae7fef5
BB
24697cat confdefs.h >>conftest.$ac_ext
24698cat >>conftest.$ac_ext <<_ACEOF
24699/* end confdefs.h. */
d1ff2312 24700
d1ff2312 24701
6ae7fef5 24702 #include <linux/mm.h>
d1ff2312 24703
6ae7fef5
BB
24704int
24705main (void)
24706{
d1ff2312 24707
6ae7fef5
BB
24708 enum zone_stat_item zsi;
24709 zsi = NR_INACTIVE_FILE;
d1ff2312 24710
6ae7fef5
BB
24711 ;
24712 return 0;
24713}
d1ff2312 24714
6ae7fef5 24715_ACEOF
d1ff2312 24716
d1ff2312 24717
6ae7fef5
BB
24718 rm -Rf build && mkdir -p build
24719 echo "obj-m := conftest.o" >build/Makefile
24720 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
24721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24722 (eval $ac_try) 2>&5
24723 ac_status=$?
24724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24725 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
24726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24727 (eval $ac_try) 2>&5
24728 ac_status=$?
24729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24730 (exit $ac_status); }; }; then
d1ff2312 24731
d1ff2312
BB
24732 echo "$as_me:$LINENO: result: yes" >&5
24733echo "${ECHO_T}yes" >&6
24734
24735cat >>confdefs.h <<\_ACEOF
6ae7fef5 24736#define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE 1
d1ff2312
BB
24737_ACEOF
24738
5232d256 24739
6ae7fef5
BB
24740else
24741 echo "$as_me: failed program was:" >&5
24742sed 's/^/| /' conftest.$ac_ext >&5
5232d256 24743
5232d256
BB
24744 echo "$as_me:$LINENO: result: no" >&5
24745echo "${ECHO_T}no" >&6
5232d256
BB
24746
24747
36b313da 24748
6ae7fef5
BB
24749fi
24750
24751 rm -Rf build
24752
36b313da 24753
36b313da 24754
36b313da 24755
6ae7fef5
BB
24756 echo "$as_me:$LINENO: checking whether page state NR_ACTIVE is available" >&5
24757echo $ECHO_N "checking whether page state NR_ACTIVE is available... $ECHO_C" >&6
24758
24759
24760cat >conftest.c <<_ACEOF
24761/* confdefs.h. */
36b313da 24762_ACEOF
6ae7fef5
BB
24763cat confdefs.h >>conftest.$ac_ext
24764cat >>conftest.$ac_ext <<_ACEOF
24765/* end confdefs.h. */
36b313da 24766
36b313da 24767
6ae7fef5 24768 #include <linux/mm.h>
36b313da 24769
6ae7fef5
BB
24770int
24771main (void)
24772{
36b313da 24773
6ae7fef5
BB
24774 enum zone_stat_item zsi;
24775 zsi = NR_ACTIVE;
36b313da 24776
6ae7fef5
BB
24777 ;
24778 return 0;
24779}
36b313da 24780
36b313da
BB
24781_ACEOF
24782
6ae7fef5
BB
24783
24784 rm -Rf build && mkdir -p build
24785 echo "obj-m := conftest.o" >build/Makefile
24786 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
24787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24788 (eval $ac_try) 2>&5
24789 ac_status=$?
24790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24791 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
24792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24793 (eval $ac_try) 2>&5
24794 ac_status=$?
24795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24796 (exit $ac_status); }; }; then
24797
36b313da
BB
24798 echo "$as_me:$LINENO: result: yes" >&5
24799echo "${ECHO_T}yes" >&6
24800
24801cat >>confdefs.h <<\_ACEOF
6ae7fef5 24802#define HAVE_ZONE_STAT_ITEM_NR_ACTIVE 1
36b313da
BB
24803_ACEOF
24804
36b313da 24805
6ae7fef5
BB
24806else
24807 echo "$as_me: failed program was:" >&5
24808sed 's/^/| /' conftest.$ac_ext >&5
36b313da 24809
6ae7fef5 24810 echo "$as_me:$LINENO: result: no" >&5
36b313da
BB
24811echo "${ECHO_T}no" >&6
24812
36b313da 24813
36b313da 24814
6ae7fef5 24815fi
36b313da 24816
6ae7fef5
BB
24817 rm -Rf build
24818
24819
24820
24821 echo "$as_me:$LINENO: checking whether page state NR_ACTIVE_ANON is available" >&5
24822echo $ECHO_N "checking whether page state NR_ACTIVE_ANON is available... $ECHO_C" >&6
24823
24824
24825cat >conftest.c <<_ACEOF
24826/* confdefs.h. */
36b313da 24827_ACEOF
6ae7fef5
BB
24828cat confdefs.h >>conftest.$ac_ext
24829cat >>conftest.$ac_ext <<_ACEOF
24830/* end confdefs.h. */
36b313da 24831
36b313da 24832
6ae7fef5 24833 #include <linux/mm.h>
36b313da 24834
6ae7fef5
BB
24835int
24836main (void)
24837{
36b313da 24838
6ae7fef5
BB
24839 enum zone_stat_item zsi;
24840 zsi = NR_ACTIVE_ANON;
5232d256 24841
6ae7fef5
BB
24842 ;
24843 return 0;
24844}
5232d256 24845
5232d256
BB
24846_ACEOF
24847
6ae7fef5
BB
24848
24849 rm -Rf build && mkdir -p build
24850 echo "obj-m := conftest.o" >build/Makefile
24851 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
24852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24853 (eval $ac_try) 2>&5
24854 ac_status=$?
24855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24856 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
24857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24858 (eval $ac_try) 2>&5
24859 ac_status=$?
24860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24861 (exit $ac_status); }; }; then
24862
5232d256
BB
24863 echo "$as_me:$LINENO: result: yes" >&5
24864echo "${ECHO_T}yes" >&6
24865
24866cat >>confdefs.h <<\_ACEOF
6ae7fef5 24867#define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON 1
5232d256
BB
24868_ACEOF
24869
5232d256 24870
6ae7fef5
BB
24871else
24872 echo "$as_me: failed program was:" >&5
24873sed 's/^/| /' conftest.$ac_ext >&5
5232d256 24874
6ae7fef5 24875 echo "$as_me:$LINENO: result: no" >&5
4ab13d3b
BB
24876echo "${ECHO_T}no" >&6
24877
4ab13d3b 24878
4ab13d3b 24879
6ae7fef5 24880fi
4ab13d3b 24881
6ae7fef5 24882 rm -Rf build
96dded38
BB
24883
24884
24885
6ae7fef5
BB
24886 echo "$as_me:$LINENO: checking whether page state NR_ACTIVE_FILE is available" >&5
24887echo $ECHO_N "checking whether page state NR_ACTIVE_FILE is available... $ECHO_C" >&6
96dded38
BB
24888
24889
24890cat >conftest.c <<_ACEOF
24891/* confdefs.h. */
24892_ACEOF
24893cat confdefs.h >>conftest.$ac_ext
24894cat >>conftest.$ac_ext <<_ACEOF
24895/* end confdefs.h. */
24896
24897
6ae7fef5 24898 #include <linux/mm.h>
96dded38
BB
24899
24900int
24901main (void)
24902{
24903
6ae7fef5
BB
24904 enum zone_stat_item zsi;
24905 zsi = NR_ACTIVE_FILE;
96dded38
BB
24906
24907 ;
24908 return 0;
24909}
24910
24911_ACEOF
24912
24913
24914 rm -Rf build && mkdir -p build
24915 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 24916 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
96dded38
BB
24917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24918 (eval $ac_try) 2>&5
24919 ac_status=$?
24920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24921 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
24922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24923 (eval $ac_try) 2>&5
24924 ac_status=$?
24925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24926 (exit $ac_status); }; }; then
24927
24928 echo "$as_me:$LINENO: result: yes" >&5
24929echo "${ECHO_T}yes" >&6
24930
24931cat >>confdefs.h <<\_ACEOF
6ae7fef5 24932#define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE 1
96dded38
BB
24933_ACEOF
24934
24935
24936else
24937 echo "$as_me: failed program was:" >&5
24938sed 's/^/| /' conftest.$ac_ext >&5
24939
24940 echo "$as_me:$LINENO: result: no" >&5
24941echo "${ECHO_T}no" >&6
24942
24943
24944
24945fi
24946
24947 rm -Rf build
24948
4ab13d3b
BB
24949
24950
24951
6ae7fef5
BB
24952 echo "$as_me:$LINENO: checking whether symbol get_zone_counts is needed" >&5
24953echo $ECHO_N "checking whether symbol get_zone_counts is needed... $ECHO_C" >&6
e11d6c5f
BB
24954
24955
24956cat >conftest.c <<_ACEOF
24957/* confdefs.h. */
24958_ACEOF
24959cat confdefs.h >>conftest.$ac_ext
24960cat >>conftest.$ac_ext <<_ACEOF
24961/* end confdefs.h. */
24962
24963
e11d6c5f
BB
24964
24965int
24966main (void)
24967{
24968
6ae7fef5
BB
24969 #if !defined(HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES)
24970 #error "global_page_state needs NR_FREE_PAGES"
24971 #endif
24972
24973 #if !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE) && \
24974 !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON) && \
24975 !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE)
24976 #error "global_page_state needs NR_ACTIVE*"
24977 #endif
24978
24979 #if !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE) && \
24980 !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON) && \
24981 !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE)
24982 #error "global_page_state needs NR_INACTIVE*"
24983 #endif
e11d6c5f
BB
24984
24985 ;
24986 return 0;
24987}
24988
24989_ACEOF
24990
24991
24992 rm -Rf build && mkdir -p build
24993 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 24994 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
e11d6c5f
BB
24995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24996 (eval $ac_try) 2>&5
24997 ac_status=$?
24998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24999 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
25000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25001 (eval $ac_try) 2>&5
25002 ac_status=$?
25003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25004 (exit $ac_status); }; }; then
25005
6ae7fef5
BB
25006 echo "$as_me:$LINENO: result: no" >&5
25007echo "${ECHO_T}no" >&6
25008
25009else
25010 echo "$as_me: failed program was:" >&5
25011sed 's/^/| /' conftest.$ac_ext >&5
25012
e11d6c5f
BB
25013 echo "$as_me:$LINENO: result: yes" >&5
25014echo "${ECHO_T}yes" >&6
25015
25016cat >>confdefs.h <<\_ACEOF
6ae7fef5 25017#define NEED_GET_ZONE_COUNTS 1
e11d6c5f
BB
25018_ACEOF
25019
25020
6ae7fef5
BB
25021 echo "$as_me:$LINENO: checking whether symbol get_zone_counts is exported" >&5
25022echo $ECHO_N "checking whether symbol get_zone_counts is exported... $ECHO_C" >&6
25023 grep -q -E '[[:space:]]get_zone_counts[[:space:]]' \
25024 $LINUX_OBJ/Module*.symvers 2>/dev/null
25025 rc=$?
25026 if test $rc -ne 0; then
25027 export=0
25028 for file in ; do
25029 grep -q -E "EXPORT_SYMBOL.*(get_zone_counts)" \
25030 "$LINUX_OBJ/$file" 2>/dev/null
25031 rc=$?
25032 if test $rc -eq 0; then
25033 export=1
25034 break;
25035 fi
25036 done
25037 if test $export -eq 0; then
25038 echo "$as_me:$LINENO: result: no" >&5
e11d6c5f
BB
25039echo "${ECHO_T}no" >&6
25040
6ae7fef5
BB
25041 else
25042 echo "$as_me:$LINENO: result: yes" >&5
25043echo "${ECHO_T}yes" >&6
25044
25045cat >>confdefs.h <<\_ACEOF
25046#define HAVE_GET_ZONE_COUNTS 1
25047_ACEOF
25048
25049 fi
25050 else
25051 echo "$as_me:$LINENO: result: yes" >&5
25052echo "${ECHO_T}yes" >&6
25053
25054cat >>confdefs.h <<\_ACEOF
25055#define HAVE_GET_ZONE_COUNTS 1
25056_ACEOF
25057
25058 fi
25059
25060
e11d6c5f
BB
25061
25062
51a727e9
BB
25063fi
25064
25065 rm -Rf build
25066
25067
25068
25069
25070 echo "$as_me:$LINENO: checking whether symbol set_fs_pwd is exported" >&5
25071echo $ECHO_N "checking whether symbol set_fs_pwd is exported... $ECHO_C" >&6
25072 grep -q -E '[[:space:]]set_fs_pwd[[:space:]]' \
25073 $LINUX_OBJ/Module*.symvers 2>/dev/null
25074 rc=$?
25075 if test $rc -ne 0; then
25076 export=0
25077 for file in ; do
25078 grep -q -E "EXPORT_SYMBOL.*(set_fs_pwd)" \
25079 "$LINUX_OBJ/$file" 2>/dev/null
25080 rc=$?
25081 if test $rc -eq 0; then
25082 export=1
25083 break;
25084 fi
25085 done
25086 if test $export -eq 0; then
25087 echo "$as_me:$LINENO: result: no" >&5
25088echo "${ECHO_T}no" >&6
25089
25090 else
25091 echo "$as_me:$LINENO: result: yes" >&5
25092echo "${ECHO_T}yes" >&6
25093
25094cat >>confdefs.h <<\_ACEOF
25095#define HAVE_SET_FS_PWD 1
25096_ACEOF
25097
25098 fi
25099 else
25100 echo "$as_me:$LINENO: result: yes" >&5
25101echo "${ECHO_T}yes" >&6
25102
25103cat >>confdefs.h <<\_ACEOF
25104#define HAVE_SET_FS_PWD 1
25105_ACEOF
25106
25107 fi
25108
25109
25110 echo "$as_me:$LINENO: checking whether set_fs_pwd() wants 2 args" >&5
25111echo $ECHO_N "checking whether set_fs_pwd() wants 2 args... $ECHO_C" >&6
25112
25113
25114cat >conftest.c <<_ACEOF
25115/* confdefs.h. */
25116_ACEOF
25117cat confdefs.h >>conftest.$ac_ext
25118cat >>conftest.$ac_ext <<_ACEOF
25119/* end confdefs.h. */
25120
25121
25122 #include <linux/sched.h>
baf2979e 25123 #include <linux/fs_struct.h>
51a727e9
BB
25124
25125int
25126main (void)
25127{
25128
25129 set_fs_pwd(NULL, NULL);
25130
25131 ;
25132 return 0;
25133}
25134
25135_ACEOF
25136
25137
25138 rm -Rf build && mkdir -p build
25139 echo "obj-m := conftest.o" >build/Makefile
25140 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
25141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25142 (eval $ac_try) 2>&5
25143 ac_status=$?
25144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25145 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
25146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25147 (eval $ac_try) 2>&5
25148 ac_status=$?
25149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25150 (exit $ac_status); }; }; then
25151
25152 echo "$as_me:$LINENO: result: yes" >&5
25153echo "${ECHO_T}yes" >&6
25154
25155cat >>confdefs.h <<\_ACEOF
25156#define HAVE_2ARGS_SET_FS_PWD 1
25157_ACEOF
25158
25159
25160else
25161 echo "$as_me: failed program was:" >&5
25162sed 's/^/| /' conftest.$ac_ext >&5
25163
25164 echo "$as_me:$LINENO: result: no" >&5
25165echo "${ECHO_T}no" >&6
25166
25167
25168
a093c6a4
BB
25169fi
25170
25171 rm -Rf build
25172
25173
25174
86933a6e 25175 echo "$as_me:$LINENO: checking whether vfs_unlink() wants 2 args" >&5
a093c6a4
BB
25176echo $ECHO_N "checking whether vfs_unlink() wants 2 args... $ECHO_C" >&6
25177
25178
25179cat >conftest.c <<_ACEOF
25180/* confdefs.h. */
25181_ACEOF
25182cat confdefs.h >>conftest.$ac_ext
25183cat >>conftest.$ac_ext <<_ACEOF
25184/* end confdefs.h. */
25185
25186
25187 #include <linux/fs.h>
25188
25189int
25190main (void)
25191{
25192
25193 vfs_unlink(NULL, NULL);
25194
25195 ;
25196 return 0;
25197}
25198
25199_ACEOF
25200
25201
25202 rm -Rf build && mkdir -p build
25203 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 25204 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
a093c6a4
BB
25205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25206 (eval $ac_try) 2>&5
25207 ac_status=$?
25208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25209 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
25210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25211 (eval $ac_try) 2>&5
25212 ac_status=$?
25213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25214 (exit $ac_status); }; }; then
25215
25216 echo "$as_me:$LINENO: result: yes" >&5
25217echo "${ECHO_T}yes" >&6
25218
25219cat >>confdefs.h <<\_ACEOF
25220#define HAVE_2ARGS_VFS_UNLINK 1
25221_ACEOF
25222
25223
25224else
25225 echo "$as_me: failed program was:" >&5
25226sed 's/^/| /' conftest.$ac_ext >&5
25227
25228 echo "$as_me:$LINENO: result: no" >&5
25229echo "${ECHO_T}no" >&6
25230
25231
25232
25233fi
25234
25235 rm -Rf build
25236
25237
25238
86933a6e 25239 echo "$as_me:$LINENO: checking whether vfs_rename() wants 4 args" >&5
a093c6a4
BB
25240echo $ECHO_N "checking whether vfs_rename() wants 4 args... $ECHO_C" >&6
25241
25242
25243cat >conftest.c <<_ACEOF
25244/* confdefs.h. */
25245_ACEOF
25246cat confdefs.h >>conftest.$ac_ext
25247cat >>conftest.$ac_ext <<_ACEOF
25248/* end confdefs.h. */
25249
25250
25251 #include <linux/fs.h>
25252
25253int
25254main (void)
25255{
25256
25257 vfs_rename(NULL, NULL, NULL, NULL);
25258
25259 ;
25260 return 0;
25261}
25262
25263_ACEOF
25264
25265
25266 rm -Rf build && mkdir -p build
25267 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 25268 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
a093c6a4
BB
25269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25270 (eval $ac_try) 2>&5
25271 ac_status=$?
25272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25273 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
25274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25275 (eval $ac_try) 2>&5
25276 ac_status=$?
25277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25278 (exit $ac_status); }; }; then
25279
25280 echo "$as_me:$LINENO: result: yes" >&5
25281echo "${ECHO_T}yes" >&6
25282
25283cat >>confdefs.h <<\_ACEOF
25284#define HAVE_4ARGS_VFS_RENAME 1
25285_ACEOF
25286
25287
25288else
25289 echo "$as_me: failed program was:" >&5
25290sed 's/^/| /' conftest.$ac_ext >&5
25291
25292 echo "$as_me:$LINENO: result: no" >&5
25293echo "${ECHO_T}no" >&6
25294
25295
25296
e11d6c5f
BB
25297fi
25298
25299 rm -Rf build
25300
25301
25302
25303
ec7d53e9
BB
25304 echo "$as_me:$LINENO: checking whether struct cred exists" >&5
25305echo $ECHO_N "checking whether struct cred exists... $ECHO_C" >&6
25306
25307
25308cat >conftest.c <<_ACEOF
25309/* confdefs.h. */
25310_ACEOF
25311cat confdefs.h >>conftest.$ac_ext
25312cat >>conftest.$ac_ext <<_ACEOF
25313/* end confdefs.h. */
25314
25315
25316 #include <linux/cred.h>
25317
25318int
25319main (void)
25320{
25321
25322 struct cred *cr;
25323 cr = NULL;
25324
25325 ;
25326 return 0;
25327}
25328
25329_ACEOF
25330
25331
25332 rm -Rf build && mkdir -p build
25333 echo "obj-m := conftest.o" >build/Makefile
25334 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
25335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25336 (eval $ac_try) 2>&5
25337 ac_status=$?
25338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25339 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
25340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25341 (eval $ac_try) 2>&5
25342 ac_status=$?
25343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25344 (exit $ac_status); }; }; then
25345
25346 echo "$as_me:$LINENO: result: yes" >&5
25347echo "${ECHO_T}yes" >&6
25348
25349cat >>confdefs.h <<\_ACEOF
25350#define HAVE_CRED_STRUCT 1
25351_ACEOF
25352
25353
25354else
25355 echo "$as_me: failed program was:" >&5
25356sed 's/^/| /' conftest.$ac_ext >&5
25357
25358 echo "$as_me:$LINENO: result: no" >&5
25359echo "${ECHO_T}no" >&6
25360
25361
25362
25363fi
25364
25365 rm -Rf build
25366
25367
25368
25369
25370 echo "$as_me:$LINENO: checking whether symbol groups_search is exported" >&5
25371echo $ECHO_N "checking whether symbol groups_search is exported... $ECHO_C" >&6
25372 grep -q -E '[[:space:]]groups_search[[:space:]]' \
25373 $LINUX_OBJ/Module*.symvers 2>/dev/null
25374 rc=$?
25375 if test $rc -ne 0; then
25376 export=0
25377 for file in ; do
25378 grep -q -E "EXPORT_SYMBOL.*(groups_search)" \
25379 "$LINUX_OBJ/$file" 2>/dev/null
25380 rc=$?
25381 if test $rc -eq 0; then
25382 export=1
25383 break;
25384 fi
25385 done
25386 if test $export -eq 0; then
25387 echo "$as_me:$LINENO: result: no" >&5
25388echo "${ECHO_T}no" >&6
25389
25390 else
25391 echo "$as_me:$LINENO: result: yes" >&5
25392echo "${ECHO_T}yes" >&6
25393
25394cat >>confdefs.h <<\_ACEOF
25395#define HAVE_GROUPS_SEARCH 1
25396_ACEOF
25397
25398 fi
25399 else
25400 echo "$as_me:$LINENO: result: yes" >&5
25401echo "${ECHO_T}yes" >&6
25402
25403cat >>confdefs.h <<\_ACEOF
25404#define HAVE_GROUPS_SEARCH 1
25405_ACEOF
25406
25407 fi
25408
25409
25410
e811949a
BB
25411 echo "$as_me:$LINENO: checking whether symbol __put_task_struct is exported" >&5
25412echo $ECHO_N "checking whether symbol __put_task_struct is exported... $ECHO_C" >&6
25413 grep -q -E '[[:space:]]__put_task_struct[[:space:]]' \
25414 $LINUX_OBJ/Module*.symvers 2>/dev/null
25415 rc=$?
25416 if test $rc -ne 0; then
25417 export=0
25418 for file in ; do
25419 grep -q -E "EXPORT_SYMBOL.*(__put_task_struct)" \
25420 "$LINUX_OBJ/$file" 2>/dev/null
25421 rc=$?
25422 if test $rc -eq 0; then
25423 export=1
25424 break;
25425 fi
25426 done
25427 if test $export -eq 0; then
25428 echo "$as_me:$LINENO: result: no" >&5
25429echo "${ECHO_T}no" >&6
25430
25431 else
25432 echo "$as_me:$LINENO: result: yes" >&5
25433echo "${ECHO_T}yes" >&6
25434
25435cat >>confdefs.h <<\_ACEOF
25436#define HAVE_PUT_TASK_STRUCT 1
25437_ACEOF
25438
25439 fi
25440 else
25441 echo "$as_me:$LINENO: result: yes" >&5
25442echo "${ECHO_T}yes" >&6
25443
25444cat >>confdefs.h <<\_ACEOF
25445#define HAVE_PUT_TASK_STRUCT 1
25446_ACEOF
25447
25448 fi
25449
25450
25451
86933a6e 25452 ;;
c1541dfe 25453 srpm) ;;
86933a6e
BB
25454 *)
25455 echo "$as_me:$LINENO: result: Error!" >&5
25456echo "${ECHO_T}Error!" >&6
25457 { { echo "$as_me:$LINENO: error: Bad value \"$SPL_CONFIG\" for --with-config,
c1541dfe 25458 user kernel|user|all|srpm" >&5
86933a6e 25459echo "$as_me: error: Bad value \"$SPL_CONFIG\" for --with-config,
c1541dfe 25460 user kernel|user|all|srpm" >&2;}
86933a6e
BB
25461 { (exit 1); exit 1; }; } ;;
25462 esac
25463
25464
25465
25466if test "$SPL_CONFIG" = user ||
25467 test "$SPL_CONFIG" = all; then
25468 CONFIG_USER_TRUE=
25469 CONFIG_USER_FALSE='#'
25470else
25471 CONFIG_USER_TRUE='#'
25472 CONFIG_USER_FALSE=
25473fi
25474
25475
25476
25477if test "$SPL_CONFIG" = kernel ||
25478 test "$SPL_CONFIG" = all; then
25479 CONFIG_KERNEL_TRUE=
25480 CONFIG_KERNEL_FALSE='#'
25481else
25482 CONFIG_KERNEL_TRUE='#'
25483 CONFIG_KERNEL_FALSE=
25484fi
25485
25486
25487
25488 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 spl-modules.spec"
bf9f3bac 25489
25490
25491cat >confcache <<\_ACEOF
25492# This file is a shell script that caches the results of configure
25493# tests run on this system so they can be shared between configure
25494# scripts and configure runs, see configure's option --config-cache.
25495# It is not useful on other systems. If it contains results you don't
25496# want to keep, you may remove or edit it.
25497#
25498# config.status only pays attention to the cache file if you give it
25499# the --recheck option to rerun configure.
25500#
25501# `ac_cv_env_foo' variables (set or unset) will be overridden when
25502# loading this file, other *unset* `ac_cv_foo' will be assigned the
25503# following values.
25504
25505_ACEOF
25506
25507# The following way of writing the cache mishandles newlines in values,
25508# but we know of no workaround that is simple, portable, and efficient.
25509# So, don't put newlines in cache variables' values.
25510# Ultrix sh set writes to stderr and can't be redirected directly,
25511# and sets the high bit in the cache file unless we assign to the vars.
25512{
25513 (set) 2>&1 |
25514 case `(ac_space=' '; set | grep ac_space) 2>&1` in
25515 *ac_space=\ *)
25516 # `set' does not quote correctly, so add quotes (double-quote
25517 # substitution turns \\\\ into \\, and sed turns \\ into \).
25518 sed -n \
25519 "s/'/'\\\\''/g;
25520 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25521 ;;
25522 *)
25523 # `set' quotes correctly as required by POSIX, so do not add quotes.
25524 sed -n \
25525 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
25526 ;;
25527 esac;
25528} |
25529 sed '
25530 t clear
25531 : clear
25532 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25533 t end
25534 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25535 : end' >>confcache
25536if diff $cache_file confcache >/dev/null 2>&1; then :; else
25537 if test -w $cache_file; then
25538 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
25539 cat confcache >$cache_file
25540 else
25541 echo "not updating unwritable cache $cache_file"
25542 fi
25543fi
25544rm -f confcache
25545
25546test "x$prefix" = xNONE && prefix=$ac_default_prefix
25547# Let make expand exec_prefix.
25548test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25549
25550# VPATH may cause trouble with some makes, so we remove $(srcdir),
25551# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25552# trailing colons and then remove the whole line if VPATH becomes empty
25553# (actually we leave an empty line to preserve line numbers).
25554if test "x$srcdir" = x.; then
25555 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25556s/:*\$(srcdir):*/:/;
25557s/:*\${srcdir}:*/:/;
25558s/:*@srcdir@:*/:/;
25559s/^\([^=]*=[ ]*\):*/\1/;
25560s/:*$//;
25561s/^[^=]*=[ ]*$//;
25562}'
25563fi
25564
25565DEFS=-DHAVE_CONFIG_H
25566
25567ac_libobjs=
25568ac_ltlibobjs=
25569for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25570 # 1. Remove the extension, and $U if already installed.
25571 ac_i=`echo "$ac_i" |
25572 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
25573 # 2. Add them.
25574 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
25575 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
25576done
25577LIBOBJS=$ac_libobjs
25578
25579LTLIBOBJS=$ac_ltlibobjs
25580
25581
25582if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
25583 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
25584Usually this means the macro was only invoked conditionally." >&5
25585echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
25586Usually this means the macro was only invoked conditionally." >&2;}
25587 { (exit 1); exit 1; }; }
25588fi
25589if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25590 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
25591Usually this means the macro was only invoked conditionally." >&5
25592echo "$as_me: error: conditional \"AMDEP\" was never defined.
25593Usually this means the macro was only invoked conditionally." >&2;}
25594 { (exit 1); exit 1; }; }
25595fi
25596if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25597 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
25598Usually this means the macro was only invoked conditionally." >&5
25599echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
25600Usually this means the macro was only invoked conditionally." >&2;}
25601 { (exit 1); exit 1; }; }
25602fi
25603if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
25604 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
25605Usually this means the macro was only invoked conditionally." >&5
25606echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
25607Usually this means the macro was only invoked conditionally." >&2;}
25608 { (exit 1); exit 1; }; }
25609fi
86933a6e
BB
25610if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then
25611 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_USER\" was never defined.
25612Usually this means the macro was only invoked conditionally." >&5
25613echo "$as_me: error: conditional \"CONFIG_USER\" was never defined.
25614Usually this means the macro was only invoked conditionally." >&2;}
25615 { (exit 1); exit 1; }; }
25616fi
25617if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then
25618 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_KERNEL\" was never defined.
25619Usually this means the macro was only invoked conditionally." >&5
25620echo "$as_me: error: conditional \"CONFIG_KERNEL\" was never defined.
25621Usually this means the macro was only invoked conditionally." >&2;}
25622 { (exit 1); exit 1; }; }
25623fi
bf9f3bac 25624
25625: ${CONFIG_STATUS=./config.status}
25626ac_clean_files_save=$ac_clean_files
25627ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25628{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25629echo "$as_me: creating $CONFIG_STATUS" >&6;}
25630cat >$CONFIG_STATUS <<_ACEOF
25631#! $SHELL
25632# Generated by $as_me.
25633# Run this file to recreate the current configuration.
25634# Compiler output produced by configure, useful for debugging
25635# configure, is in config.log if it exists.
25636
25637debug=false
25638ac_cs_recheck=false
25639ac_cs_silent=false
25640SHELL=\${CONFIG_SHELL-$SHELL}
25641_ACEOF
25642
25643cat >>$CONFIG_STATUS <<\_ACEOF
25644## --------------------- ##
25645## M4sh Initialization. ##
25646## --------------------- ##
25647
25648# Be Bourne compatible
25649if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25650 emulate sh
25651 NULLCMD=:
25652 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25653 # is contrary to our usage. Disable this feature.
25654 alias -g '${1+"$@"}'='"$@"'
25655elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
25656 set -o posix
25657fi
25658DUALCASE=1; export DUALCASE # for MKS sh
25659
25660# Support unset when possible.
25661if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25662 as_unset=unset
25663else
25664 as_unset=false
25665fi
25666
25667
25668# Work around bugs in pre-3.0 UWIN ksh.
25669$as_unset ENV MAIL MAILPATH
25670PS1='$ '
25671PS2='> '
25672PS4='+ '
25673
25674# NLS nuisances.
25675for as_var in \
25676 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25677 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25678 LC_TELEPHONE LC_TIME
25679do
25680 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25681 eval $as_var=C; export $as_var
25682 else
25683 $as_unset $as_var
25684 fi
25685done
25686
25687# Required to use basename.
25688if expr a : '\(a\)' >/dev/null 2>&1; then
25689 as_expr=expr
25690else
25691 as_expr=false
25692fi
25693
25694if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
25695 as_basename=basename
25696else
25697 as_basename=false
25698fi
25699
25700
25701# Name of the executable.
25702as_me=`$as_basename "$0" ||
25703$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25704 X"$0" : 'X\(//\)$' \| \
25705 X"$0" : 'X\(/\)$' \| \
25706 . : '\(.\)' 2>/dev/null ||
25707echo X/"$0" |
25708 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
25709 /^X\/\(\/\/\)$/{ s//\1/; q; }
25710 /^X\/\(\/\).*/{ s//\1/; q; }
25711 s/.*/./; q'`
25712
25713
25714# PATH needs CR, and LINENO needs CR and PATH.
25715# Avoid depending upon Character Ranges.
25716as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25717as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25718as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25719as_cr_digits='0123456789'
25720as_cr_alnum=$as_cr_Letters$as_cr_digits
25721
25722# The user is always right.
25723if test "${PATH_SEPARATOR+set}" != set; then
25724 echo "#! /bin/sh" >conf$$.sh
25725 echo "exit 0" >>conf$$.sh
25726 chmod +x conf$$.sh
25727 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25728 PATH_SEPARATOR=';'
25729 else
25730 PATH_SEPARATOR=:
25731 fi
25732 rm -f conf$$.sh
25733fi
25734
25735
25736 as_lineno_1=$LINENO
25737 as_lineno_2=$LINENO
25738 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25739 test "x$as_lineno_1" != "x$as_lineno_2" &&
25740 test "x$as_lineno_3" = "x$as_lineno_2" || {
25741 # Find who we are. Look in the path if we contain no path at all
25742 # relative or not.
25743 case $0 in
25744 *[\\/]* ) as_myself=$0 ;;
25745 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25746for as_dir in $PATH
25747do
25748 IFS=$as_save_IFS
25749 test -z "$as_dir" && as_dir=.
25750 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25751done
25752
25753 ;;
25754 esac
25755 # We did not find ourselves, most probably we were run as `sh COMMAND'
25756 # in which case we are not to be found in the path.
25757 if test "x$as_myself" = x; then
25758 as_myself=$0
25759 fi
25760 if test ! -f "$as_myself"; then
25761 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
25762echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
25763 { (exit 1); exit 1; }; }
25764 fi
25765 case $CONFIG_SHELL in
25766 '')
25767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25768for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
25769do
25770 IFS=$as_save_IFS
25771 test -z "$as_dir" && as_dir=.
25772 for as_base in sh bash ksh sh5; do
25773 case $as_dir in
25774 /*)
25775 if ("$as_dir/$as_base" -c '
25776 as_lineno_1=$LINENO
25777 as_lineno_2=$LINENO
25778 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25779 test "x$as_lineno_1" != "x$as_lineno_2" &&
25780 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
25781 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
25782 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
25783 CONFIG_SHELL=$as_dir/$as_base
25784 export CONFIG_SHELL
25785 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
25786 fi;;
25787 esac
25788 done
25789done
25790;;
25791 esac
25792
25793 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25794 # uniformly replaced by the line number. The first 'sed' inserts a
25795 # line-number line before each line; the second 'sed' does the real
25796 # work. The second script uses 'N' to pair each line-number line
25797 # with the numbered line, and appends trailing '-' during
25798 # substitution so that $LINENO is not a special case at line end.
25799 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25800 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
25801 sed '=' <$as_myself |
25802 sed '
25803 N
25804 s,$,-,
25805 : loop
25806 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
25807 t loop
25808 s,-$,,
25809 s,^['$as_cr_digits']*\n,,
25810 ' >$as_me.lineno &&
25811 chmod +x $as_me.lineno ||
25812 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
25813echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
25814 { (exit 1); exit 1; }; }
25815
25816 # Don't try to exec as it changes $[0], causing all sort of problems
25817 # (the dirname of $[0] is not the place where we might find the
25818 # original and so on. Autoconf is especially sensible to this).
25819 . ./$as_me.lineno
25820 # Exit status is that of the last command.
25821 exit
25822}
25823
25824
25825case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
25826 *c*,-n*) ECHO_N= ECHO_C='
25827' ECHO_T=' ' ;;
25828 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
25829 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
25830esac
25831
25832if expr a : '\(a\)' >/dev/null 2>&1; then
25833 as_expr=expr
25834else
25835 as_expr=false
25836fi
25837
25838rm -f conf$$ conf$$.exe conf$$.file
25839echo >conf$$.file
25840if ln -s conf$$.file conf$$ 2>/dev/null; then
25841 # We could just check for DJGPP; but this test a) works b) is more generic
25842 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
25843 if test -f conf$$.exe; then
25844 # Don't use ln at all; we don't have any links
25845 as_ln_s='cp -p'
25846 else
25847 as_ln_s='ln -s'
25848 fi
25849elif ln conf$$.file conf$$ 2>/dev/null; then
25850 as_ln_s=ln
25851else
25852 as_ln_s='cp -p'
25853fi
25854rm -f conf$$ conf$$.exe conf$$.file
25855
25856if mkdir -p . 2>/dev/null; then
25857 as_mkdir_p=:
25858else
25859 test -d ./-p && rmdir ./-p
25860 as_mkdir_p=false
25861fi
25862
25863as_executable_p="test -f"
25864
25865# Sed expression to map a string onto a valid CPP name.
25866as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25867
25868# Sed expression to map a string onto a valid variable name.
25869as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25870
25871
25872# IFS
25873# We need space, tab and new line, in precisely that order.
25874as_nl='
25875'
25876IFS=" $as_nl"
25877
25878# CDPATH.
25879$as_unset CDPATH
25880
25881exec 6>&1
25882
25883# Open the log real soon, to keep \$[0] and so on meaningful, and to
25884# report actual input values of CONFIG_FILES etc. instead of their
25885# values after options handling. Logging --version etc. is OK.
25886exec 5>>config.log
25887{
25888 echo
25889 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25890## Running $as_me. ##
25891_ASBOX
25892} >&5
25893cat >&5 <<_CSEOF
25894
25895This file was extended by $as_me, which was
25896generated by GNU Autoconf 2.59. Invocation command line was
25897
25898 CONFIG_FILES = $CONFIG_FILES
25899 CONFIG_HEADERS = $CONFIG_HEADERS
25900 CONFIG_LINKS = $CONFIG_LINKS
25901 CONFIG_COMMANDS = $CONFIG_COMMANDS
25902 $ $0 $@
25903
25904_CSEOF
25905echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
25906echo >&5
25907_ACEOF
25908
25909# Files that config.status was made for.
25910if test -n "$ac_config_files"; then
25911 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
25912fi
25913
25914if test -n "$ac_config_headers"; then
25915 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
25916fi
25917
25918if test -n "$ac_config_links"; then
25919 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
25920fi
25921
25922if test -n "$ac_config_commands"; then
25923 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
25924fi
25925
25926cat >>$CONFIG_STATUS <<\_ACEOF
25927
25928ac_cs_usage="\
25929\`$as_me' instantiates files from templates according to the
25930current configuration.
25931
25932Usage: $0 [OPTIONS] [FILE]...
25933
25934 -h, --help print this help, then exit
25935 -V, --version print version number, then exit
25936 -q, --quiet do not print progress messages
25937 -d, --debug don't remove temporary files
25938 --recheck update $as_me by reconfiguring in the same conditions
25939 --file=FILE[:TEMPLATE]
25940 instantiate the configuration file FILE
25941 --header=FILE[:TEMPLATE]
25942 instantiate the configuration header FILE
25943
25944Configuration files:
25945$config_files
25946
25947Configuration headers:
25948$config_headers
25949
25950Configuration commands:
25951$config_commands
25952
25953Report bugs to <bug-autoconf@gnu.org>."
25954_ACEOF
25955
25956cat >>$CONFIG_STATUS <<_ACEOF
25957ac_cs_version="\\
25958config.status
25959configured by $0, generated by GNU Autoconf 2.59,
25960 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
25961
25962Copyright (C) 2003 Free Software Foundation, Inc.
25963This config.status script is free software; the Free Software Foundation
25964gives unlimited permission to copy, distribute and modify it."
25965srcdir=$srcdir
25966INSTALL="$INSTALL"
25967_ACEOF
25968
25969cat >>$CONFIG_STATUS <<\_ACEOF
25970# If no file are specified by the user, then we need to provide default
25971# value. By we need to know if files were specified by the user.
25972ac_need_defaults=:
25973while test $# != 0
25974do
25975 case $1 in
25976 --*=*)
25977 ac_option=`expr "x$1" : 'x\([^=]*\)='`
25978 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
25979 ac_shift=:
25980 ;;
25981 -*)
25982 ac_option=$1
25983 ac_optarg=$2
25984 ac_shift=shift
25985 ;;
25986 *) # This is not an option, so the user has probably given explicit
25987 # arguments.
25988 ac_option=$1
25989 ac_need_defaults=false;;
25990 esac
25991
25992 case $ac_option in
25993 # Handling of the options.
25994_ACEOF
25995cat >>$CONFIG_STATUS <<\_ACEOF
25996 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25997 ac_cs_recheck=: ;;
25998 --version | --vers* | -V )
25999 echo "$ac_cs_version"; exit 0 ;;
26000 --he | --h)
26001 # Conflict between --help and --header
26002 { { echo "$as_me:$LINENO: error: ambiguous option: $1
26003Try \`$0 --help' for more information." >&5
26004echo "$as_me: error: ambiguous option: $1
26005Try \`$0 --help' for more information." >&2;}
26006 { (exit 1); exit 1; }; };;
26007 --help | --hel | -h )
26008 echo "$ac_cs_usage"; exit 0 ;;
26009 --debug | --d* | -d )
26010 debug=: ;;
26011 --file | --fil | --fi | --f )
26012 $ac_shift
26013 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26014 ac_need_defaults=false;;
26015 --header | --heade | --head | --hea )
26016 $ac_shift
26017 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26018 ac_need_defaults=false;;
26019 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26020 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26021 ac_cs_silent=: ;;
26022
26023 # This is an error.
26024 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
26025Try \`$0 --help' for more information." >&5
26026echo "$as_me: error: unrecognized option: $1
26027Try \`$0 --help' for more information." >&2;}
26028 { (exit 1); exit 1; }; } ;;
26029
26030 *) ac_config_targets="$ac_config_targets $1" ;;
26031
26032 esac
26033 shift
26034done
26035
26036ac_configure_extra_args=
26037
26038if $ac_cs_silent; then
26039 exec 6>/dev/null
26040 ac_configure_extra_args="$ac_configure_extra_args --silent"
26041fi
26042
26043_ACEOF
26044cat >>$CONFIG_STATUS <<_ACEOF
26045if \$ac_cs_recheck; then
26046 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26047 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26048fi
26049
26050_ACEOF
26051
26052cat >>$CONFIG_STATUS <<_ACEOF
26053#
26054# INIT-COMMANDS section.
26055#
26056
26057AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26058
26059_ACEOF
26060
26061
26062
26063cat >>$CONFIG_STATUS <<\_ACEOF
26064for ac_config_target in $ac_config_targets
26065do
26066 case "$ac_config_target" in
26067 # Handling of arguments.
26068 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26069 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
26070 "cmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES cmd/Makefile" ;;
617d5a67
BB
26071 "module/Makefile" ) CONFIG_FILES="$CONFIG_FILES module/Makefile" ;;
26072 "module/spl/Makefile" ) CONFIG_FILES="$CONFIG_FILES module/spl/Makefile" ;;
26073 "module/splat/Makefile" ) CONFIG_FILES="$CONFIG_FILES module/splat/Makefile" ;;
bf9f3bac 26074 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
bf9f3bac 26075 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
c5f70460 26076 "spl.spec" ) CONFIG_FILES="$CONFIG_FILES spl.spec" ;;
86933a6e 26077 "spl-modules.spec" ) CONFIG_FILES="$CONFIG_FILES spl-modules.spec" ;;
bf9f3bac 26078 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26079 "spl_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS spl_config.h" ;;
26080 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26081echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26082 { (exit 1); exit 1; }; };;
26083 esac
26084done
26085
26086# If the user did not use the arguments to specify the items to instantiate,
26087# then the envvar interface is used. Set only those that are not.
26088# We use the long form for the default assignment because of an extremely
26089# bizarre bug on SunOS 4.1.3.
26090if $ac_need_defaults; then
26091 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26092 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26093 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26094fi
26095
26096# Have a temporary directory for convenience. Make it in the build tree
26097# simply because there is no reason to put it here, and in addition,
26098# creating and moving files from /tmp can sometimes cause problems.
26099# Create a temporary directory, and hook for its removal unless debugging.
26100$debug ||
26101{
26102 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
26103 trap '{ (exit 1); exit 1; }' 1 2 13 15
26104}
26105
26106# Create a (secure) tmp directory for tmp files.
26107
26108{
26109 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
26110 test -n "$tmp" && test -d "$tmp"
26111} ||
26112{
26113 tmp=./confstat$$-$RANDOM
26114 (umask 077 && mkdir $tmp)
26115} ||
26116{
26117 echo "$me: cannot create a temporary directory in ." >&2
26118 { (exit 1); exit 1; }
26119}
26120
26121_ACEOF
26122
26123cat >>$CONFIG_STATUS <<_ACEOF
26124
26125#
26126# CONFIG_FILES section.
26127#
26128
26129# No need to generate the scripts if there are no CONFIG_FILES.
26130# This happens for instance when ./config.status config.h
26131if test -n "\$CONFIG_FILES"; then
26132 # Protect against being on the right side of a sed subst in config.status.
26133 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
26134 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
26135s,@SHELL@,$SHELL,;t t
26136s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
26137s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
26138s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
26139s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
26140s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
26141s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
26142s,@exec_prefix@,$exec_prefix,;t t
26143s,@prefix@,$prefix,;t t
26144s,@program_transform_name@,$program_transform_name,;t t
26145s,@bindir@,$bindir,;t t
26146s,@sbindir@,$sbindir,;t t
26147s,@libexecdir@,$libexecdir,;t t
26148s,@datadir@,$datadir,;t t
26149s,@sysconfdir@,$sysconfdir,;t t
26150s,@sharedstatedir@,$sharedstatedir,;t t
26151s,@localstatedir@,$localstatedir,;t t
26152s,@libdir@,$libdir,;t t
26153s,@includedir@,$includedir,;t t
26154s,@oldincludedir@,$oldincludedir,;t t
26155s,@infodir@,$infodir,;t t
26156s,@mandir@,$mandir,;t t
26157s,@build_alias@,$build_alias,;t t
26158s,@host_alias@,$host_alias,;t t
26159s,@target_alias@,$target_alias,;t t
26160s,@DEFS@,$DEFS,;t t
26161s,@ECHO_C@,$ECHO_C,;t t
26162s,@ECHO_N@,$ECHO_N,;t t
26163s,@ECHO_T@,$ECHO_T,;t t
26164s,@LIBS@,$LIBS,;t t
abc3ca14
BB
26165s,@SPL_META_NAME@,$SPL_META_NAME,;t t
26166s,@SPL_META_VERSION@,$SPL_META_VERSION,;t t
26167s,@SPL_META_RELEASE@,$SPL_META_RELEASE,;t t
72e7de60 26168s,@SPL_META_ALIAS@,$SPL_META_ALIAS,;t t
abc3ca14
BB
26169s,@SPL_META_DATA@,$SPL_META_DATA,;t t
26170s,@SPL_META_AUTHOR@,$SPL_META_AUTHOR,;t t
26171s,@SPL_META_LT_CURRENT@,$SPL_META_LT_CURRENT,;t t
26172s,@SPL_META_LT_REVISION@,$SPL_META_LT_REVISION,;t t
26173s,@SPL_META_LT_AGE@,$SPL_META_LT_AGE,;t t
bf9f3bac 26174s,@build@,$build,;t t
26175s,@build_cpu@,$build_cpu,;t t
26176s,@build_vendor@,$build_vendor,;t t
26177s,@build_os@,$build_os,;t t
26178s,@host@,$host,;t t
26179s,@host_cpu@,$host_cpu,;t t
26180s,@host_vendor@,$host_vendor,;t t
26181s,@host_os@,$host_os,;t t
26182s,@target@,$target,;t t
26183s,@target_cpu@,$target_cpu,;t t
26184s,@target_vendor@,$target_vendor,;t t
26185s,@target_os@,$target_os,;t t
26186s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
26187s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
26188s,@INSTALL_DATA@,$INSTALL_DATA,;t t
26189s,@CYGPATH_W@,$CYGPATH_W,;t t
26190s,@PACKAGE@,$PACKAGE,;t t
26191s,@VERSION@,$VERSION,;t t
26192s,@ACLOCAL@,$ACLOCAL,;t t
26193s,@AUTOCONF@,$AUTOCONF,;t t
26194s,@AUTOMAKE@,$AUTOMAKE,;t t
26195s,@AUTOHEADER@,$AUTOHEADER,;t t
26196s,@MAKEINFO@,$MAKEINFO,;t t
26197s,@install_sh@,$install_sh,;t t
26198s,@STRIP@,$STRIP,;t t
26199s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
26200s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
26201s,@mkdir_p@,$mkdir_p,;t t
26202s,@AWK@,$AWK,;t t
26203s,@SET_MAKE@,$SET_MAKE,;t t
26204s,@am__leading_dot@,$am__leading_dot,;t t
26205s,@AMTAR@,$AMTAR,;t t
26206s,@am__tar@,$am__tar,;t t
26207s,@am__untar@,$am__untar,;t t
26208s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
26209s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
26210s,@MAINT@,$MAINT,;t t
26211s,@CC@,$CC,;t t
26212s,@CFLAGS@,$CFLAGS,;t t
26213s,@LDFLAGS@,$LDFLAGS,;t t
26214s,@CPPFLAGS@,$CPPFLAGS,;t t
26215s,@ac_ct_CC@,$ac_ct_CC,;t t
26216s,@EXEEXT@,$EXEEXT,;t t
26217s,@OBJEXT@,$OBJEXT,;t t
26218s,@DEPDIR@,$DEPDIR,;t t
26219s,@am__include@,$am__include,;t t
26220s,@am__quote@,$am__quote,;t t
26221s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
26222s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
26223s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
26224s,@CCDEPMODE@,$CCDEPMODE,;t t
26225s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
26226s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
26227s,@SED@,$SED,;t t
26228s,@EGREP@,$EGREP,;t t
26229s,@LN_S@,$LN_S,;t t
26230s,@ECHO@,$ECHO,;t t
26231s,@AR@,$AR,;t t
26232s,@ac_ct_AR@,$ac_ct_AR,;t t
26233s,@RANLIB@,$RANLIB,;t t
26234s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
26235s,@CPP@,$CPP,;t t
26236s,@CXX@,$CXX,;t t
26237s,@CXXFLAGS@,$CXXFLAGS,;t t
26238s,@ac_ct_CXX@,$ac_ct_CXX,;t t
26239s,@CXXDEPMODE@,$CXXDEPMODE,;t t
26240s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
26241s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
26242s,@CXXCPP@,$CXXCPP,;t t
26243s,@F77@,$F77,;t t
26244s,@FFLAGS@,$FFLAGS,;t t
26245s,@ac_ct_F77@,$ac_ct_F77,;t t
26246s,@LIBTOOL@,$LIBTOOL,;t t
86933a6e
BB
26247s,@LICENSE@,$LICENSE,;t t
26248s,@SPL_CONFIG@,$SPL_CONFIG,;t t
bf9f3bac 26249s,@LINUX@,$LINUX,;t t
26250s,@LINUX_OBJ@,$LINUX_OBJ,;t t
c5f70460 26251s,@LINUX_VERSION@,$LINUX_VERSION,;t t
86933a6e 26252s,@LINUX_SYMBOLS@,$LINUX_SYMBOLS,;t t
bf9f3bac 26253s,@KERNELMAKE_PARAMS@,$KERNELMAKE_PARAMS,;t t
26254s,@KERNELCPPFLAGS@,$KERNELCPPFLAGS,;t t
86933a6e
BB
26255s,@CONFIG_USER_TRUE@,$CONFIG_USER_TRUE,;t t
26256s,@CONFIG_USER_FALSE@,$CONFIG_USER_FALSE,;t t
26257s,@CONFIG_KERNEL_TRUE@,$CONFIG_KERNEL_TRUE,;t t
26258s,@CONFIG_KERNEL_FALSE@,$CONFIG_KERNEL_FALSE,;t t
bf9f3bac 26259s,@LIBOBJS@,$LIBOBJS,;t t
26260s,@LTLIBOBJS@,$LTLIBOBJS,;t t
26261CEOF
26262
26263_ACEOF
26264
26265 cat >>$CONFIG_STATUS <<\_ACEOF
26266 # Split the substitutions into bite-sized pieces for seds with
26267 # small command number limits, like on Digital OSF/1 and HP-UX.
26268 ac_max_sed_lines=48
26269 ac_sed_frag=1 # Number of current file.
26270 ac_beg=1 # First line for current file.
26271 ac_end=$ac_max_sed_lines # Line after last line for current file.
26272 ac_more_lines=:
26273 ac_sed_cmds=
26274 while $ac_more_lines; do
26275 if test $ac_beg -gt 1; then
26276 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26277 else
26278 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26279 fi
26280 if test ! -s $tmp/subs.frag; then
26281 ac_more_lines=false
26282 else
26283 # The purpose of the label and of the branching condition is to
26284 # speed up the sed processing (if there are no `@' at all, there
26285 # is no need to browse any of the substitutions).
26286 # These are the two extra sed commands mentioned above.
26287 (echo ':t
26288 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
26289 if test -z "$ac_sed_cmds"; then
26290 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
26291 else
26292 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
26293 fi
26294 ac_sed_frag=`expr $ac_sed_frag + 1`
26295 ac_beg=$ac_end
26296 ac_end=`expr $ac_end + $ac_max_sed_lines`
26297 fi
26298 done
26299 if test -z "$ac_sed_cmds"; then
26300 ac_sed_cmds=cat
26301 fi
26302fi # test -n "$CONFIG_FILES"
26303
26304_ACEOF
26305cat >>$CONFIG_STATUS <<\_ACEOF
26306for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
26307 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
26308 case $ac_file in
26309 - | *:- | *:-:* ) # input from stdin
26310 cat >$tmp/stdin
26311 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26312 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26313 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26314 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26315 * ) ac_file_in=$ac_file.in ;;
26316 esac
26317
26318 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
26319 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
26320$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26321 X"$ac_file" : 'X\(//\)[^/]' \| \
26322 X"$ac_file" : 'X\(//\)$' \| \
26323 X"$ac_file" : 'X\(/\)' \| \
26324 . : '\(.\)' 2>/dev/null ||
26325echo X"$ac_file" |
26326 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26327 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26328 /^X\(\/\/\)$/{ s//\1/; q; }
26329 /^X\(\/\).*/{ s//\1/; q; }
26330 s/.*/./; q'`
26331 { if $as_mkdir_p; then
26332 mkdir -p "$ac_dir"
26333 else
26334 as_dir="$ac_dir"
26335 as_dirs=
26336 while test ! -d "$as_dir"; do
26337 as_dirs="$as_dir $as_dirs"
26338 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26339$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26340 X"$as_dir" : 'X\(//\)[^/]' \| \
26341 X"$as_dir" : 'X\(//\)$' \| \
26342 X"$as_dir" : 'X\(/\)' \| \
26343 . : '\(.\)' 2>/dev/null ||
26344echo X"$as_dir" |
26345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26346 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26347 /^X\(\/\/\)$/{ s//\1/; q; }
26348 /^X\(\/\).*/{ s//\1/; q; }
26349 s/.*/./; q'`
26350 done
26351 test ! -n "$as_dirs" || mkdir $as_dirs
26352 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26353echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26354 { (exit 1); exit 1; }; }; }
26355
26356 ac_builddir=.
26357
26358if test "$ac_dir" != .; then
26359 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26360 # A "../" for each directory in $ac_dir_suffix.
26361 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26362else
26363 ac_dir_suffix= ac_top_builddir=
26364fi
26365
26366case $srcdir in
26367 .) # No --srcdir option. We are building in place.
26368 ac_srcdir=.
26369 if test -z "$ac_top_builddir"; then
26370 ac_top_srcdir=.
26371 else
26372 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26373 fi ;;
26374 [\\/]* | ?:[\\/]* ) # Absolute path.
26375 ac_srcdir=$srcdir$ac_dir_suffix;
26376 ac_top_srcdir=$srcdir ;;
26377 *) # Relative path.
26378 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26379 ac_top_srcdir=$ac_top_builddir$srcdir ;;
26380esac
26381
26382# Do not use `cd foo && pwd` to compute absolute paths, because
26383# the directories may not exist.
26384case `pwd` in
26385.) ac_abs_builddir="$ac_dir";;
26386*)
26387 case "$ac_dir" in
26388 .) ac_abs_builddir=`pwd`;;
26389 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26390 *) ac_abs_builddir=`pwd`/"$ac_dir";;
26391 esac;;
26392esac
26393case $ac_abs_builddir in
26394.) ac_abs_top_builddir=${ac_top_builddir}.;;
26395*)
26396 case ${ac_top_builddir}. in
26397 .) ac_abs_top_builddir=$ac_abs_builddir;;
26398 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26399 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26400 esac;;
26401esac
26402case $ac_abs_builddir in
26403.) ac_abs_srcdir=$ac_srcdir;;
26404*)
26405 case $ac_srcdir in
26406 .) ac_abs_srcdir=$ac_abs_builddir;;
26407 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26408 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26409 esac;;
26410esac
26411case $ac_abs_builddir in
26412.) ac_abs_top_srcdir=$ac_top_srcdir;;
26413*)
26414 case $ac_top_srcdir in
26415 .) ac_abs_top_srcdir=$ac_abs_builddir;;
26416 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26417 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26418 esac;;
26419esac
26420
26421
26422 case $INSTALL in
26423 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26424 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
26425 esac
26426
26427 if test x"$ac_file" != x-; then
26428 { echo "$as_me:$LINENO: creating $ac_file" >&5
26429echo "$as_me: creating $ac_file" >&6;}
26430 rm -f "$ac_file"
26431 fi
26432 # Let's still pretend it is `configure' which instantiates (i.e., don't
26433 # use $as_me), people would be surprised to read:
26434 # /* config.h. Generated by config.status. */
26435 if test x"$ac_file" = x-; then
26436 configure_input=
26437 else
26438 configure_input="$ac_file. "
26439 fi
26440 configure_input=$configure_input"Generated from `echo $ac_file_in |
26441 sed 's,.*/,,'` by configure."
26442
26443 # First look for the input files in the build tree, otherwise in the
26444 # src tree.
26445 ac_file_inputs=`IFS=:
26446 for f in $ac_file_in; do
26447 case $f in
26448 -) echo $tmp/stdin ;;
26449 [\\/$]*)
26450 # Absolute (can't be DOS-style, as IFS=:)
26451 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26452echo "$as_me: error: cannot find input file: $f" >&2;}
26453 { (exit 1); exit 1; }; }
26454 echo "$f";;
26455 *) # Relative
26456 if test -f "$f"; then
26457 # Build tree
26458 echo "$f"
26459 elif test -f "$srcdir/$f"; then
26460 # Source tree
26461 echo "$srcdir/$f"
26462 else
26463 # /dev/null tree
26464 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26465echo "$as_me: error: cannot find input file: $f" >&2;}
26466 { (exit 1); exit 1; }; }
26467 fi;;
26468 esac
26469 done` || { (exit 1); exit 1; }
26470_ACEOF
26471cat >>$CONFIG_STATUS <<_ACEOF
26472 sed "$ac_vpsub
26473$extrasub
26474_ACEOF
26475cat >>$CONFIG_STATUS <<\_ACEOF
26476:t
26477/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26478s,@configure_input@,$configure_input,;t t
26479s,@srcdir@,$ac_srcdir,;t t
26480s,@abs_srcdir@,$ac_abs_srcdir,;t t
26481s,@top_srcdir@,$ac_top_srcdir,;t t
26482s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
26483s,@builddir@,$ac_builddir,;t t
26484s,@abs_builddir@,$ac_abs_builddir,;t t
26485s,@top_builddir@,$ac_top_builddir,;t t
26486s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
26487s,@INSTALL@,$ac_INSTALL,;t t
26488" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
26489 rm -f $tmp/stdin
26490 if test x"$ac_file" != x-; then
26491 mv $tmp/out $ac_file
26492 else
26493 cat $tmp/out
26494 rm -f $tmp/out
26495 fi
26496
26497done
26498_ACEOF
26499cat >>$CONFIG_STATUS <<\_ACEOF
26500
26501#
26502# CONFIG_HEADER section.
26503#
26504
26505# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
26506# NAME is the cpp macro being defined and VALUE is the value it is being given.
26507#
26508# ac_d sets the value in "#define NAME VALUE" lines.
26509ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
26510ac_dB='[ ].*$,\1#\2'
26511ac_dC=' '
26512ac_dD=',;t'
26513# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
26514ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
26515ac_uB='$,\1#\2define\3'
26516ac_uC=' '
26517ac_uD=',;t'
26518
26519for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
26520 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
26521 case $ac_file in
26522 - | *:- | *:-:* ) # input from stdin
26523 cat >$tmp/stdin
26524 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26525 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26526 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26527 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26528 * ) ac_file_in=$ac_file.in ;;
26529 esac
26530
26531 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
26532echo "$as_me: creating $ac_file" >&6;}
26533
26534 # First look for the input files in the build tree, otherwise in the
26535 # src tree.
26536 ac_file_inputs=`IFS=:
26537 for f in $ac_file_in; do
26538 case $f in
26539 -) echo $tmp/stdin ;;
26540 [\\/$]*)
26541 # Absolute (can't be DOS-style, as IFS=:)
26542 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26543echo "$as_me: error: cannot find input file: $f" >&2;}
26544 { (exit 1); exit 1; }; }
26545 # Do quote $f, to prevent DOS paths from being IFS'd.
26546 echo "$f";;
26547 *) # Relative
26548 if test -f "$f"; then
26549 # Build tree
26550 echo "$f"
26551 elif test -f "$srcdir/$f"; then
26552 # Source tree
26553 echo "$srcdir/$f"
26554 else
26555 # /dev/null tree
26556 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26557echo "$as_me: error: cannot find input file: $f" >&2;}
26558 { (exit 1); exit 1; }; }
26559 fi;;
26560 esac
26561 done` || { (exit 1); exit 1; }
26562 # Remove the trailing spaces.
26563 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
26564
26565_ACEOF
26566
26567# Transform confdefs.h into two sed scripts, `conftest.defines' and
26568# `conftest.undefs', that substitutes the proper values into
26569# config.h.in to produce config.h. The first handles `#define'
26570# templates, and the second `#undef' templates.
26571# And first: Protect against being on the right side of a sed subst in
26572# config.status. Protect against being in an unquoted here document
26573# in config.status.
26574rm -f conftest.defines conftest.undefs
26575# Using a here document instead of a string reduces the quoting nightmare.
26576# Putting comments in sed scripts is not portable.
26577#
26578# `end' is used to avoid that the second main sed command (meant for
26579# 0-ary CPP macros) applies to n-ary macro definitions.
26580# See the Autoconf documentation for `clear'.
26581cat >confdef2sed.sed <<\_ACEOF
26582s/[\\&,]/\\&/g
26583s,[\\$`],\\&,g
26584t clear
26585: clear
26586s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
26587t end
26588s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
26589: end
26590_ACEOF
26591# If some macros were called several times there might be several times
26592# the same #defines, which is useless. Nevertheless, we may not want to
26593# sort them, since we want the *last* AC-DEFINE to be honored.
26594uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
26595sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
26596rm -f confdef2sed.sed
26597
26598# This sed command replaces #undef with comments. This is necessary, for
26599# example, in the case of _POSIX_SOURCE, which is predefined and required
26600# on some systems where configure will not decide to define it.
26601cat >>conftest.undefs <<\_ACEOF
26602s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
26603_ACEOF
26604
26605# Break up conftest.defines because some shells have a limit on the size
26606# of here documents, and old seds have small limits too (100 cmds).
26607echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
26608echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
26609echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
26610echo ' :' >>$CONFIG_STATUS
26611rm -f conftest.tail
26612while grep . conftest.defines >/dev/null
26613do
26614 # Write a limited-size here document to $tmp/defines.sed.
26615 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
26616 # Speed up: don't consider the non `#define' lines.
26617 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
26618 # Work around the forget-to-reset-the-flag bug.
26619 echo 't clr' >>$CONFIG_STATUS
26620 echo ': clr' >>$CONFIG_STATUS
26621 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
26622 echo 'CEOF
26623 sed -f $tmp/defines.sed $tmp/in >$tmp/out
26624 rm -f $tmp/in
26625 mv $tmp/out $tmp/in
26626' >>$CONFIG_STATUS
26627 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
26628 rm -f conftest.defines
26629 mv conftest.tail conftest.defines
26630done
26631rm -f conftest.defines
26632echo ' fi # grep' >>$CONFIG_STATUS
26633echo >>$CONFIG_STATUS
26634
26635# Break up conftest.undefs because some shells have a limit on the size
26636# of here documents, and old seds have small limits too (100 cmds).
26637echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
26638rm -f conftest.tail
26639while grep . conftest.undefs >/dev/null
26640do
26641 # Write a limited-size here document to $tmp/undefs.sed.
26642 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
26643 # Speed up: don't consider the non `#undef'
26644 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
26645 # Work around the forget-to-reset-the-flag bug.
26646 echo 't clr' >>$CONFIG_STATUS
26647 echo ': clr' >>$CONFIG_STATUS
26648 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
26649 echo 'CEOF
26650 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
26651 rm -f $tmp/in
26652 mv $tmp/out $tmp/in
26653' >>$CONFIG_STATUS
26654 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
26655 rm -f conftest.undefs
26656 mv conftest.tail conftest.undefs
26657done
26658rm -f conftest.undefs
26659
26660cat >>$CONFIG_STATUS <<\_ACEOF
26661 # Let's still pretend it is `configure' which instantiates (i.e., don't
26662 # use $as_me), people would be surprised to read:
26663 # /* config.h. Generated by config.status. */
26664 if test x"$ac_file" = x-; then
26665 echo "/* Generated by configure. */" >$tmp/config.h
26666 else
26667 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
26668 fi
26669 cat $tmp/in >>$tmp/config.h
26670 rm -f $tmp/in
26671 if test x"$ac_file" != x-; then
26672 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
26673 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26674echo "$as_me: $ac_file is unchanged" >&6;}
26675 else
26676 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
26677$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26678 X"$ac_file" : 'X\(//\)[^/]' \| \
26679 X"$ac_file" : 'X\(//\)$' \| \
26680 X"$ac_file" : 'X\(/\)' \| \
26681 . : '\(.\)' 2>/dev/null ||
26682echo X"$ac_file" |
26683 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26684 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26685 /^X\(\/\/\)$/{ s//\1/; q; }
26686 /^X\(\/\).*/{ s//\1/; q; }
26687 s/.*/./; q'`
26688 { if $as_mkdir_p; then
26689 mkdir -p "$ac_dir"
26690 else
26691 as_dir="$ac_dir"
26692 as_dirs=
26693 while test ! -d "$as_dir"; do
26694 as_dirs="$as_dir $as_dirs"
26695 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26696$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26697 X"$as_dir" : 'X\(//\)[^/]' \| \
26698 X"$as_dir" : 'X\(//\)$' \| \
26699 X"$as_dir" : 'X\(/\)' \| \
26700 . : '\(.\)' 2>/dev/null ||
26701echo X"$as_dir" |
26702 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26703 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26704 /^X\(\/\/\)$/{ s//\1/; q; }
26705 /^X\(\/\).*/{ s//\1/; q; }
26706 s/.*/./; q'`
26707 done
26708 test ! -n "$as_dirs" || mkdir $as_dirs
26709 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26710echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26711 { (exit 1); exit 1; }; }; }
26712
26713 rm -f $ac_file
26714 mv $tmp/config.h $ac_file
26715 fi
26716 else
26717 cat $tmp/config.h
26718 rm -f $tmp/config.h
26719 fi
26720# Compute $ac_file's index in $config_headers.
26721_am_stamp_count=1
26722for _am_header in $config_headers :; do
26723 case $_am_header in
26724 $ac_file | $ac_file:* )
26725 break ;;
26726 * )
26727 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26728 esac
26729done
26730echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
26731$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26732 X$ac_file : 'X\(//\)[^/]' \| \
26733 X$ac_file : 'X\(//\)$' \| \
26734 X$ac_file : 'X\(/\)' \| \
26735 . : '\(.\)' 2>/dev/null ||
26736echo X$ac_file |
26737 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26738 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26739 /^X\(\/\/\)$/{ s//\1/; q; }
26740 /^X\(\/\).*/{ s//\1/; q; }
26741 s/.*/./; q'`/stamp-h$_am_stamp_count
26742done
26743_ACEOF
26744cat >>$CONFIG_STATUS <<\_ACEOF
26745
26746#
26747# CONFIG_COMMANDS section.
26748#
26749for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
26750 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
26751 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
26752 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
26753$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26754 X"$ac_dest" : 'X\(//\)[^/]' \| \
26755 X"$ac_dest" : 'X\(//\)$' \| \
26756 X"$ac_dest" : 'X\(/\)' \| \
26757 . : '\(.\)' 2>/dev/null ||
26758echo X"$ac_dest" |
26759 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26760 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26761 /^X\(\/\/\)$/{ s//\1/; q; }
26762 /^X\(\/\).*/{ s//\1/; q; }
26763 s/.*/./; q'`
26764 { if $as_mkdir_p; then
26765 mkdir -p "$ac_dir"
26766 else
26767 as_dir="$ac_dir"
26768 as_dirs=
26769 while test ! -d "$as_dir"; do
26770 as_dirs="$as_dir $as_dirs"
26771 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26772$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26773 X"$as_dir" : 'X\(//\)[^/]' \| \
26774 X"$as_dir" : 'X\(//\)$' \| \
26775 X"$as_dir" : 'X\(/\)' \| \
26776 . : '\(.\)' 2>/dev/null ||
26777echo X"$as_dir" |
26778 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26779 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26780 /^X\(\/\/\)$/{ s//\1/; q; }
26781 /^X\(\/\).*/{ s//\1/; q; }
26782 s/.*/./; q'`
26783 done
26784 test ! -n "$as_dirs" || mkdir $as_dirs
26785 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26786echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26787 { (exit 1); exit 1; }; }; }
26788
26789 ac_builddir=.
26790
26791if test "$ac_dir" != .; then
26792 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26793 # A "../" for each directory in $ac_dir_suffix.
26794 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26795else
26796 ac_dir_suffix= ac_top_builddir=
26797fi
26798
26799case $srcdir in
26800 .) # No --srcdir option. We are building in place.
26801 ac_srcdir=.
26802 if test -z "$ac_top_builddir"; then
26803 ac_top_srcdir=.
26804 else
26805 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26806 fi ;;
26807 [\\/]* | ?:[\\/]* ) # Absolute path.
26808 ac_srcdir=$srcdir$ac_dir_suffix;
26809 ac_top_srcdir=$srcdir ;;
26810 *) # Relative path.
26811 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26812 ac_top_srcdir=$ac_top_builddir$srcdir ;;
26813esac
26814
26815# Do not use `cd foo && pwd` to compute absolute paths, because
26816# the directories may not exist.
26817case `pwd` in
26818.) ac_abs_builddir="$ac_dir";;
26819*)
26820 case "$ac_dir" in
26821 .) ac_abs_builddir=`pwd`;;
26822 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26823 *) ac_abs_builddir=`pwd`/"$ac_dir";;
26824 esac;;
26825esac
26826case $ac_abs_builddir in
26827.) ac_abs_top_builddir=${ac_top_builddir}.;;
26828*)
26829 case ${ac_top_builddir}. in
26830 .) ac_abs_top_builddir=$ac_abs_builddir;;
26831 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26832 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26833 esac;;
26834esac
26835case $ac_abs_builddir in
26836.) ac_abs_srcdir=$ac_srcdir;;
26837*)
26838 case $ac_srcdir in
26839 .) ac_abs_srcdir=$ac_abs_builddir;;
26840 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26841 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26842 esac;;
26843esac
26844case $ac_abs_builddir in
26845.) ac_abs_top_srcdir=$ac_top_srcdir;;
26846*)
26847 case $ac_top_srcdir in
26848 .) ac_abs_top_srcdir=$ac_abs_builddir;;
26849 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26850 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26851 esac;;
26852esac
26853
26854
26855 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
26856echo "$as_me: executing $ac_dest commands" >&6;}
26857 case $ac_dest in
26858 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
26859 # Strip MF so we end up with the name of the file.
26860 mf=`echo "$mf" | sed -e 's/:.*$//'`
26861 # Check whether this is an Automake generated Makefile or not.
26862 # We used to match only the files named `Makefile.in', but
26863 # some people rename them; so instead we look at the file content.
26864 # Grep'ing the first line is not enough: some people post-process
26865 # each Makefile.in and add a new line on top of each file to say so.
26866 # So let's grep whole file.
26867 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
26868 dirpart=`(dirname "$mf") 2>/dev/null ||
26869$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26870 X"$mf" : 'X\(//\)[^/]' \| \
26871 X"$mf" : 'X\(//\)$' \| \
26872 X"$mf" : 'X\(/\)' \| \
26873 . : '\(.\)' 2>/dev/null ||
26874echo X"$mf" |
26875 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26876 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26877 /^X\(\/\/\)$/{ s//\1/; q; }
26878 /^X\(\/\).*/{ s//\1/; q; }
26879 s/.*/./; q'`
26880 else
26881 continue
26882 fi
26883 # Extract the definition of DEPDIR, am__include, and am__quote
26884 # from the Makefile without running `make'.
26885 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26886 test -z "$DEPDIR" && continue
26887 am__include=`sed -n 's/^am__include = //p' < "$mf"`
26888 test -z "am__include" && continue
26889 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26890 # When using ansi2knr, U may be empty or an underscore; expand it
26891 U=`sed -n 's/^U = //p' < "$mf"`
26892 # Find all dependency output files, they are included files with
26893 # $(DEPDIR) in their names. We invoke sed twice because it is the
26894 # simplest approach to changing $(DEPDIR) to its actual value in the
26895 # expansion.
26896 for file in `sed -n "
26897 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26898 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26899 # Make sure the directory exists.
26900 test -f "$dirpart/$file" && continue
26901 fdir=`(dirname "$file") 2>/dev/null ||
26902$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26903 X"$file" : 'X\(//\)[^/]' \| \
26904 X"$file" : 'X\(//\)$' \| \
26905 X"$file" : 'X\(/\)' \| \
26906 . : '\(.\)' 2>/dev/null ||
26907echo X"$file" |
26908 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26909 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26910 /^X\(\/\/\)$/{ s//\1/; q; }
26911 /^X\(\/\).*/{ s//\1/; q; }
26912 s/.*/./; q'`
26913 { if $as_mkdir_p; then
26914 mkdir -p $dirpart/$fdir
26915 else
26916 as_dir=$dirpart/$fdir
26917 as_dirs=
26918 while test ! -d "$as_dir"; do
26919 as_dirs="$as_dir $as_dirs"
26920 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26921$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26922 X"$as_dir" : 'X\(//\)[^/]' \| \
26923 X"$as_dir" : 'X\(//\)$' \| \
26924 X"$as_dir" : 'X\(/\)' \| \
26925 . : '\(.\)' 2>/dev/null ||
26926echo X"$as_dir" |
26927 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26928 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26929 /^X\(\/\/\)$/{ s//\1/; q; }
26930 /^X\(\/\).*/{ s//\1/; q; }
26931 s/.*/./; q'`
26932 done
26933 test ! -n "$as_dirs" || mkdir $as_dirs
26934 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
26935echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
26936 { (exit 1); exit 1; }; }; }
26937
26938 # echo "creating $dirpart/$file"
26939 echo '# dummy' > "$dirpart/$file"
26940 done
26941done
26942 ;;
26943 esac
26944done
26945_ACEOF
26946
26947cat >>$CONFIG_STATUS <<\_ACEOF
26948
26949{ (exit 0); exit 0; }
26950_ACEOF
26951chmod +x $CONFIG_STATUS
26952ac_clean_files=$ac_clean_files_save
26953
26954
26955# configure is writing to config.log, and then calls config.status.
26956# config.status does its own redirection, appending to config.log.
26957# Unfortunately, on DOS this fails, as config.log is still kept open
26958# by configure, so config.status won't be able to write to it; its
26959# output is simply discarded. So we exec the FD to /dev/null,
26960# effectively closing config.log, so it can be properly (re)opened and
26961# appended to by config.status. When coming back to configure, we
26962# need to make the FD available again.
26963if test "$no_create" != yes; then
26964 ac_cs_success=:
26965 ac_config_status_args=
26966 test "$silent" = yes &&
26967 ac_config_status_args="$ac_config_status_args --quiet"
26968 exec 5>/dev/null
26969 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26970 exec 5>>config.log
26971 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26972 # would make configure fail if this is the last instruction.
26973 $ac_cs_success || { (exit 1); exit 1; }
26974fi
26975