]> git.proxmox.com Git - mirror_spl-debian.git/blob - configure
Reimplement mutexs for Linux lock profiling/analysis
[mirror_spl-debian.git] / configure
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
13 if 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+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for 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
43 do
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
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo 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.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if 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
97 fi
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
110 for as_dir in $PATH
111 do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
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
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
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
152 done
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
187 case `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= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if 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
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_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.
231 as_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.
236 as_nl='
237 '
238 IFS=" $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
247
248 case X$ECHO in
249 X*--fallback-echo)
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
252 ;;
253 esac
254
255 echo=${ECHO-echo}
256 if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
258 shift
259 elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
261 :
262 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $echo works!
264 :
265 else
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
268 fi
269
270 if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
272 shift
273 cat <<EOF
274 $*
275 EOF
276 exit 0
277 fi
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
283 if test -z "$ECHO"; then
284 if 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
295 fi
296
297 if 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 :
301 else
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
381 fi
382 fi
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.
386 ECHO=$echo
387 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
389 fi
390
391
392
393
394 tagnames=${tagnames+${tagnames},}CXX
395
396 tagnames=${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.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
402
403 exec 6>&1
404
405 #
406 # Initializations.
407 #
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
410 cross_compiling=no
411 subdirs=
412 MFLAGS=
413 MAKEFLAGS=
414 SHELL=${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.
422 PACKAGE_NAME=
423 PACKAGE_TARNAME=
424 PACKAGE_VERSION=
425 PACKAGE_STRING=
426 PACKAGE_BUGREPORT=
427
428 # Factoring default headers for most tests.
429 ac_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
465 ac_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'
466 ac_subst_files=''
467
468 # Initialize some variables set by options.
469 ac_init_help=
470 ac_init_version=false
471 # The variables have the same names as the options, with
472 # dashes changed to underlines.
473 cache_file=/dev/null
474 exec_prefix=NONE
475 no_create=
476 no_recursion=
477 prefix=NONE
478 program_prefix=NONE
479 program_suffix=NONE
480 program_transform_name=s,x,x,
481 silent=
482 site=
483 srcdir=
484 verbose=
485 x_includes=NONE
486 x_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.
493 bindir='${exec_prefix}/bin'
494 sbindir='${exec_prefix}/sbin'
495 libexecdir='${exec_prefix}/libexec'
496 datadir='${prefix}/share'
497 sysconfdir='${prefix}/etc'
498 sharedstatedir='${prefix}/com'
499 localstatedir='${prefix}/var'
500 libdir='${exec_prefix}/lib'
501 includedir='${prefix}/include'
502 oldincludedir='/usr/include'
503 infodir='${prefix}/info'
504 mandir='${prefix}/man'
505
506 ac_prev=
507 for ac_option
508 do
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
780 Try \`$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
803 done
804
805 if 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; }; }
809 fi
810
811 # Be sure to have absolute paths.
812 for ac_var in exec_prefix prefix
813 do
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
820 done
821
822 # Be sure to have absolute paths.
823 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
824 localstatedir libdir includedir oldincludedir infodir mandir
825 do
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
832 done
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.
837 build=$build_alias
838 host=$host_alias
839 target=$target_alias
840
841 # FIXME: To remove some day.
842 if 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
850 fi
851
852 ac_tool_prefix=
853 test -n "$host_alias" && ac_tool_prefix=$host_alias-
854
855 test "$silent" = yes && exec 6>/dev/null
856
857
858 # Find the source files, if location was not specified.
859 if 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 ||
868 echo 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
878 else
879 ac_srcdir_defaulted=no
880 fi
881 if 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
889 fi
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; }; }
893 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
894 ac_env_build_alias_set=${build_alias+set}
895 ac_env_build_alias_value=$build_alias
896 ac_cv_env_build_alias_set=${build_alias+set}
897 ac_cv_env_build_alias_value=$build_alias
898 ac_env_host_alias_set=${host_alias+set}
899 ac_env_host_alias_value=$host_alias
900 ac_cv_env_host_alias_set=${host_alias+set}
901 ac_cv_env_host_alias_value=$host_alias
902 ac_env_target_alias_set=${target_alias+set}
903 ac_env_target_alias_value=$target_alias
904 ac_cv_env_target_alias_set=${target_alias+set}
905 ac_cv_env_target_alias_value=$target_alias
906 ac_env_CC_set=${CC+set}
907 ac_env_CC_value=$CC
908 ac_cv_env_CC_set=${CC+set}
909 ac_cv_env_CC_value=$CC
910 ac_env_CFLAGS_set=${CFLAGS+set}
911 ac_env_CFLAGS_value=$CFLAGS
912 ac_cv_env_CFLAGS_set=${CFLAGS+set}
913 ac_cv_env_CFLAGS_value=$CFLAGS
914 ac_env_LDFLAGS_set=${LDFLAGS+set}
915 ac_env_LDFLAGS_value=$LDFLAGS
916 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
917 ac_cv_env_LDFLAGS_value=$LDFLAGS
918 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
919 ac_env_CPPFLAGS_value=$CPPFLAGS
920 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
921 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
922 ac_env_CPP_set=${CPP+set}
923 ac_env_CPP_value=$CPP
924 ac_cv_env_CPP_set=${CPP+set}
925 ac_cv_env_CPP_value=$CPP
926 ac_env_CXX_set=${CXX+set}
927 ac_env_CXX_value=$CXX
928 ac_cv_env_CXX_set=${CXX+set}
929 ac_cv_env_CXX_value=$CXX
930 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
931 ac_env_CXXFLAGS_value=$CXXFLAGS
932 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
933 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
934 ac_env_CXXCPP_set=${CXXCPP+set}
935 ac_env_CXXCPP_value=$CXXCPP
936 ac_cv_env_CXXCPP_set=${CXXCPP+set}
937 ac_cv_env_CXXCPP_value=$CXXCPP
938 ac_env_F77_set=${F77+set}
939 ac_env_F77_value=$F77
940 ac_cv_env_F77_set=${F77+set}
941 ac_cv_env_F77_value=$F77
942 ac_env_FFLAGS_set=${FFLAGS+set}
943 ac_env_FFLAGS_value=$FFLAGS
944 ac_cv_env_FFLAGS_set=${FFLAGS+set}
945 ac_cv_env_FFLAGS_value=$FFLAGS
946
947 #
948 # Report the --help message.
949 #
950 if 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
956 Usage: $0 [OPTION]... [VAR=VALUE]...
957
958 To assign environment variables (e.g., CC, CFLAGS...), specify them as
959 VAR=VALUE. See below for descriptions of some of the useful variables.
960
961 Defaults for the options are specified in brackets.
962
963 Configuration:
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
977 Installation 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
983 By default, \`make install' will install all the files in
984 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
985 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
986 for instance \`--prefix=\$HOME'.
987
988 For better control, use the options below.
989
990 Fine 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
1007 Program 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
1012 System 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
1017 fi
1018
1019 if test -n "$ac_init_help"; then
1020
1021 cat <<\_ACEOF
1022
1023 Optional Features:
1024 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1025 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1026 --enable-maintainer-mode enable make rules and dependencies not useful
1027 (and sometimes confusing) to the casual installer
1028 --disable-dependency-tracking speeds up one-time build
1029 --enable-dependency-tracking do not reject slow dependency extractors
1030 --enable-shared[=PKGS]
1031 build shared libraries [default=yes]
1032 --enable-static[=PKGS]
1033 build static libraries [default=yes]
1034 --enable-fast-install[=PKGS]
1035 optimize for fast installation [default=yes]
1036 --disable-libtool-lock avoid locking (might break parallel builds)
1037 --enable-debug Enable generic debug support (default off)
1038 --enable-debug-kmem Enable kmem debug support (default off)
1039 --enable-debug-kstat Enable kstat debug support (default off)
1040 --enable-debug-callb Enable callb debug support (default off)
1041
1042 Optional Packages:
1043 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1044 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1045 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1046 --with-pic try to use only PIC/non-PIC objects [default=use
1047 both]
1048 --with-tags[=TAGS]
1049 include additional configurations [automatic]
1050 --with-config=CONFIG Config file 'kernel|user|all'
1051 --with-linux=PATH Path to kernel source
1052 --with-linux-obj=PATH Path to kernel build objects
1053
1054 Some influential environment variables:
1055 CC C compiler command
1056 CFLAGS C compiler flags
1057 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1058 nonstandard directory <lib dir>
1059 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1060 headers in a nonstandard directory <include dir>
1061 CPP C preprocessor
1062 CXX C++ compiler command
1063 CXXFLAGS C++ compiler flags
1064 CXXCPP C++ preprocessor
1065 F77 Fortran 77 compiler command
1066 FFLAGS Fortran 77 compiler flags
1067
1068 Use these variables to override the choices made by `configure' or to help
1069 it to find libraries and programs with nonstandard names/locations.
1070
1071 _ACEOF
1072 fi
1073
1074 if test "$ac_init_help" = "recursive"; then
1075 # If there are subdirs, report their specific --help.
1076 ac_popdir=`pwd`
1077 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1078 test -d $ac_dir || continue
1079 ac_builddir=.
1080
1081 if test "$ac_dir" != .; then
1082 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1083 # A "../" for each directory in $ac_dir_suffix.
1084 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1085 else
1086 ac_dir_suffix= ac_top_builddir=
1087 fi
1088
1089 case $srcdir in
1090 .) # No --srcdir option. We are building in place.
1091 ac_srcdir=.
1092 if test -z "$ac_top_builddir"; then
1093 ac_top_srcdir=.
1094 else
1095 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1096 fi ;;
1097 [\\/]* | ?:[\\/]* ) # Absolute path.
1098 ac_srcdir=$srcdir$ac_dir_suffix;
1099 ac_top_srcdir=$srcdir ;;
1100 *) # Relative path.
1101 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1102 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1103 esac
1104
1105 # Do not use `cd foo && pwd` to compute absolute paths, because
1106 # the directories may not exist.
1107 case `pwd` in
1108 .) ac_abs_builddir="$ac_dir";;
1109 *)
1110 case "$ac_dir" in
1111 .) ac_abs_builddir=`pwd`;;
1112 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1113 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1114 esac;;
1115 esac
1116 case $ac_abs_builddir in
1117 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1118 *)
1119 case ${ac_top_builddir}. in
1120 .) ac_abs_top_builddir=$ac_abs_builddir;;
1121 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1122 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1123 esac;;
1124 esac
1125 case $ac_abs_builddir in
1126 .) ac_abs_srcdir=$ac_srcdir;;
1127 *)
1128 case $ac_srcdir in
1129 .) ac_abs_srcdir=$ac_abs_builddir;;
1130 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1131 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1132 esac;;
1133 esac
1134 case $ac_abs_builddir in
1135 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1136 *)
1137 case $ac_top_srcdir in
1138 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1139 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1140 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1141 esac;;
1142 esac
1143
1144 cd $ac_dir
1145 # Check for guested configure; otherwise get Cygnus style configure.
1146 if test -f $ac_srcdir/configure.gnu; then
1147 echo
1148 $SHELL $ac_srcdir/configure.gnu --help=recursive
1149 elif test -f $ac_srcdir/configure; then
1150 echo
1151 $SHELL $ac_srcdir/configure --help=recursive
1152 elif test -f $ac_srcdir/configure.ac ||
1153 test -f $ac_srcdir/configure.in; then
1154 echo
1155 $ac_configure --help
1156 else
1157 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1158 fi
1159 cd $ac_popdir
1160 done
1161 fi
1162
1163 test -n "$ac_init_help" && exit 0
1164 if $ac_init_version; then
1165 cat <<\_ACEOF
1166
1167 Copyright (C) 2003 Free Software Foundation, Inc.
1168 This configure script is free software; the Free Software Foundation
1169 gives unlimited permission to copy, distribute and modify it.
1170 _ACEOF
1171 exit 0
1172 fi
1173 exec 5>config.log
1174 cat >&5 <<_ACEOF
1175 This file contains any messages produced by compilers while
1176 running configure, to aid debugging if configure makes a mistake.
1177
1178 It was created by $as_me, which was
1179 generated by GNU Autoconf 2.59. Invocation command line was
1180
1181 $ $0 $@
1182
1183 _ACEOF
1184 {
1185 cat <<_ASUNAME
1186 ## --------- ##
1187 ## Platform. ##
1188 ## --------- ##
1189
1190 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1191 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1192 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1193 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1194 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1195
1196 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1197 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1198
1199 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1200 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1201 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1202 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1203 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1204 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1205 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1206
1207 _ASUNAME
1208
1209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1210 for as_dir in $PATH
1211 do
1212 IFS=$as_save_IFS
1213 test -z "$as_dir" && as_dir=.
1214 echo "PATH: $as_dir"
1215 done
1216
1217 } >&5
1218
1219 cat >&5 <<_ACEOF
1220
1221
1222 ## ----------- ##
1223 ## Core tests. ##
1224 ## ----------- ##
1225
1226 _ACEOF
1227
1228
1229 # Keep a trace of the command line.
1230 # Strip out --no-create and --no-recursion so they do not pile up.
1231 # Strip out --silent because we don't want to record it for future runs.
1232 # Also quote any args containing shell meta-characters.
1233 # Make two passes to allow for proper duplicate-argument suppression.
1234 ac_configure_args=
1235 ac_configure_args0=
1236 ac_configure_args1=
1237 ac_sep=
1238 ac_must_keep_next=false
1239 for ac_pass in 1 2
1240 do
1241 for ac_arg
1242 do
1243 case $ac_arg in
1244 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1245 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1246 | -silent | --silent | --silen | --sile | --sil)
1247 continue ;;
1248 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1249 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1250 esac
1251 case $ac_pass in
1252 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1253 2)
1254 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1255 if test $ac_must_keep_next = true; then
1256 ac_must_keep_next=false # Got value, back to normal.
1257 else
1258 case $ac_arg in
1259 *=* | --config-cache | -C | -disable-* | --disable-* \
1260 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1261 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1262 | -with-* | --with-* | -without-* | --without-* | --x)
1263 case "$ac_configure_args0 " in
1264 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1265 esac
1266 ;;
1267 -* ) ac_must_keep_next=true ;;
1268 esac
1269 fi
1270 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1271 # Get rid of the leading space.
1272 ac_sep=" "
1273 ;;
1274 esac
1275 done
1276 done
1277 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1278 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1279
1280 # When interrupted or exit'd, cleanup temporary files, and complete
1281 # config.log. We remove comments because anyway the quotes in there
1282 # would cause problems or look ugly.
1283 # WARNING: Be sure not to use single quotes in there, as some shells,
1284 # such as our DU 5.0 friend, will then `close' the trap.
1285 trap 'exit_status=$?
1286 # Save into config.log some information that might help in debugging.
1287 {
1288 echo
1289
1290 cat <<\_ASBOX
1291 ## ---------------- ##
1292 ## Cache variables. ##
1293 ## ---------------- ##
1294 _ASBOX
1295 echo
1296 # The following way of writing the cache mishandles newlines in values,
1297 {
1298 (set) 2>&1 |
1299 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1300 *ac_space=\ *)
1301 sed -n \
1302 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1303 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1304 ;;
1305 *)
1306 sed -n \
1307 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1308 ;;
1309 esac;
1310 }
1311 echo
1312
1313 cat <<\_ASBOX
1314 ## ----------------- ##
1315 ## Output variables. ##
1316 ## ----------------- ##
1317 _ASBOX
1318 echo
1319 for ac_var in $ac_subst_vars
1320 do
1321 eval ac_val=$`echo $ac_var`
1322 echo "$ac_var='"'"'$ac_val'"'"'"
1323 done | sort
1324 echo
1325
1326 if test -n "$ac_subst_files"; then
1327 cat <<\_ASBOX
1328 ## ------------- ##
1329 ## Output files. ##
1330 ## ------------- ##
1331 _ASBOX
1332 echo
1333 for ac_var in $ac_subst_files
1334 do
1335 eval ac_val=$`echo $ac_var`
1336 echo "$ac_var='"'"'$ac_val'"'"'"
1337 done | sort
1338 echo
1339 fi
1340
1341 if test -s confdefs.h; then
1342 cat <<\_ASBOX
1343 ## ----------- ##
1344 ## confdefs.h. ##
1345 ## ----------- ##
1346 _ASBOX
1347 echo
1348 sed "/^$/d" confdefs.h | sort
1349 echo
1350 fi
1351 test "$ac_signal" != 0 &&
1352 echo "$as_me: caught signal $ac_signal"
1353 echo "$as_me: exit $exit_status"
1354 } >&5
1355 rm -f core *.core &&
1356 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1357 exit $exit_status
1358 ' 0
1359 for ac_signal in 1 2 13 15; do
1360 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1361 done
1362 ac_signal=0
1363
1364 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1365 rm -rf conftest* confdefs.h
1366 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1367 echo >confdefs.h
1368
1369 # Predefined preprocessor variables.
1370
1371 cat >>confdefs.h <<_ACEOF
1372 #define PACKAGE_NAME "$PACKAGE_NAME"
1373 _ACEOF
1374
1375
1376 cat >>confdefs.h <<_ACEOF
1377 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1378 _ACEOF
1379
1380
1381 cat >>confdefs.h <<_ACEOF
1382 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1383 _ACEOF
1384
1385
1386 cat >>confdefs.h <<_ACEOF
1387 #define PACKAGE_STRING "$PACKAGE_STRING"
1388 _ACEOF
1389
1390
1391 cat >>confdefs.h <<_ACEOF
1392 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1393 _ACEOF
1394
1395
1396 # Let the site file select an alternate cache file if it wants to.
1397 # Prefer explicitly selected file to automatically selected ones.
1398 if test -z "$CONFIG_SITE"; then
1399 if test "x$prefix" != xNONE; then
1400 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1401 else
1402 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1403 fi
1404 fi
1405 for ac_site_file in $CONFIG_SITE; do
1406 if test -r "$ac_site_file"; then
1407 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1408 echo "$as_me: loading site script $ac_site_file" >&6;}
1409 sed 's/^/| /' "$ac_site_file" >&5
1410 . "$ac_site_file"
1411 fi
1412 done
1413
1414 if test -r "$cache_file"; then
1415 # Some versions of bash will fail to source /dev/null (special
1416 # files actually), so we avoid doing that.
1417 if test -f "$cache_file"; then
1418 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1419 echo "$as_me: loading cache $cache_file" >&6;}
1420 case $cache_file in
1421 [\\/]* | ?:[\\/]* ) . $cache_file;;
1422 *) . ./$cache_file;;
1423 esac
1424 fi
1425 else
1426 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1427 echo "$as_me: creating cache $cache_file" >&6;}
1428 >$cache_file
1429 fi
1430
1431 # Check that the precious variables saved in the cache have kept the same
1432 # value.
1433 ac_cache_corrupted=false
1434 for ac_var in `(set) 2>&1 |
1435 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1436 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1437 eval ac_new_set=\$ac_env_${ac_var}_set
1438 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1439 eval ac_new_val="\$ac_env_${ac_var}_value"
1440 case $ac_old_set,$ac_new_set in
1441 set,)
1442 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1443 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1444 ac_cache_corrupted=: ;;
1445 ,set)
1446 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1447 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1448 ac_cache_corrupted=: ;;
1449 ,);;
1450 *)
1451 if test "x$ac_old_val" != "x$ac_new_val"; then
1452 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1453 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1454 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1455 echo "$as_me: former value: $ac_old_val" >&2;}
1456 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1457 echo "$as_me: current value: $ac_new_val" >&2;}
1458 ac_cache_corrupted=:
1459 fi;;
1460 esac
1461 # Pass precious variables to config.status.
1462 if test "$ac_new_set" = set; then
1463 case $ac_new_val in
1464 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1465 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1466 *) ac_arg=$ac_var=$ac_new_val ;;
1467 esac
1468 case " $ac_configure_args " in
1469 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1470 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1471 esac
1472 fi
1473 done
1474 if $ac_cache_corrupted; then
1475 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1476 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1477 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1478 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1479 { (exit 1); exit 1; }; }
1480 fi
1481
1482 ac_ext=c
1483 ac_cpp='$CPP $CPPFLAGS'
1484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506 ac_ext=c
1507 ac_cpp='$CPP $CPPFLAGS'
1508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1511
1512
1513 echo "$as_me:$LINENO: checking metadata" >&5
1514 echo $ECHO_N "checking metadata... $ECHO_C" >&6
1515
1516 META="$srcdir/META"
1517 _spl_ac_meta_got_file=no
1518 if test -f "$META"; then
1519 _spl_ac_meta_got_file=yes
1520
1521 SPL_META_NAME=`perl -n\
1522 -e "BEGIN { \\$key=shift @ARGV; }"\
1523 -e "next unless s/^\s*\\$key[:=]//i;"\
1524 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
1525 -e "s/^\s+//;"\
1526 -e "s/\s+$//;"\
1527 -e "s/^(['\"])(.*)\1/\\$2/;"\
1528 -e "\\$val=\\$_;"\
1529 -e "END { print \\$val if defined \\$val; }"\
1530 '(?:NAME|PROJECT|PACKAGE)' $META`;
1531 if test -n "$SPL_META_NAME"; then
1532
1533 cat >>confdefs.h <<_ACEOF
1534 #define SPL_META_NAME "$SPL_META_NAME"
1535 _ACEOF
1536
1537
1538 fi
1539
1540 SPL_META_VERSION=`perl -n\
1541 -e "BEGIN { \\$key=shift @ARGV; }"\
1542 -e "next unless s/^\s*\\$key[:=]//i;"\
1543 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
1544 -e "s/^\s+//;"\
1545 -e "s/\s+$//;"\
1546 -e "s/^(['\"])(.*)\1/\\$2/;"\
1547 -e "\\$val=\\$_;"\
1548 -e "END { print \\$val if defined \\$val; }"\
1549 'VERSION' $META`;
1550 if test -n "$SPL_META_VERSION"; then
1551
1552 cat >>confdefs.h <<_ACEOF
1553 #define SPL_META_VERSION "$SPL_META_VERSION"
1554 _ACEOF
1555
1556
1557 fi
1558
1559 SPL_META_RELEASE=`perl -n\
1560 -e "BEGIN { \\$key=shift @ARGV; }"\
1561 -e "next unless s/^\s*\\$key[:=]//i;"\
1562 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
1563 -e "s/^\s+//;"\
1564 -e "s/\s+$//;"\
1565 -e "s/^(['\"])(.*)\1/\\$2/;"\
1566 -e "\\$val=\\$_;"\
1567 -e "END { print \\$val if defined \\$val; }"\
1568 'RELEASE' $META`;
1569 if test -n "$SPL_META_RELEASE"; then
1570
1571 cat >>confdefs.h <<_ACEOF
1572 #define SPL_META_RELEASE "$SPL_META_RELEASE"
1573 _ACEOF
1574
1575
1576 fi
1577
1578 if test -n "$SPL_META_NAME" -a -n "$SPL_META_VERSION"; then
1579 SPL_META_ALIAS="$SPL_META_NAME-$SPL_META_VERSION"
1580 test -n "$SPL_META_RELEASE" &&
1581 SPL_META_ALIAS="$SPL_META_ALIAS-$SPL_META_RELEASE"
1582
1583 cat >>confdefs.h <<_ACEOF
1584 #define SPL_META_ALIAS "$SPL_META_ALIAS"
1585 _ACEOF
1586
1587
1588 fi
1589
1590 SPL_META_DATA=`perl -n\
1591 -e "BEGIN { \\$key=shift @ARGV; }"\
1592 -e "next unless s/^\s*\\$key[:=]//i;"\
1593 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
1594 -e "s/^\s+//;"\
1595 -e "s/\s+$//;"\
1596 -e "s/^(['\"])(.*)\1/\\$2/;"\
1597 -e "\\$val=\\$_;"\
1598 -e "END { print \\$val if defined \\$val; }"\
1599 'DATE' $META`;
1600 if test -n "$SPL_META_DATA"; then
1601
1602 cat >>confdefs.h <<_ACEOF
1603 #define SPL_META_DATA "$SPL_META_DATA"
1604 _ACEOF
1605
1606
1607 fi
1608
1609 SPL_META_AUTHOR=`perl -n\
1610 -e "BEGIN { \\$key=shift @ARGV; }"\
1611 -e "next unless s/^\s*\\$key[:=]//i;"\
1612 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
1613 -e "s/^\s+//;"\
1614 -e "s/\s+$//;"\
1615 -e "s/^(['\"])(.*)\1/\\$2/;"\
1616 -e "\\$val=\\$_;"\
1617 -e "END { print \\$val if defined \\$val; }"\
1618 'AUTHOR' $META`;
1619 if test -n "$SPL_META_AUTHOR"; then
1620
1621 cat >>confdefs.h <<_ACEOF
1622 #define SPL_META_AUTHOR "$SPL_META_AUTHOR"
1623 _ACEOF
1624
1625
1626 fi
1627
1628
1629 SPL_META_LT_CURRENT=`perl -n\
1630 -e "BEGIN { \\$key=shift @ARGV; }"\
1631 -e "next unless s/^\s*\\$key[:=]//i;"\
1632 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
1633 -e "s/^\s+//;"\
1634 -e "s/\s+$//;"\
1635 -e "s/^(['\"])(.*)\1/\\$2/;"\
1636 -e "\\$val=\\$_;"\
1637 -e "END { print \\$val if defined \\$val; }"\
1638 'LT_CURRENT' $META`;
1639 SPL_META_LT_REVISION=`perl -n\
1640 -e "BEGIN { \\$key=shift @ARGV; }"\
1641 -e "next unless s/^\s*\\$key[:=]//i;"\
1642 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
1643 -e "s/^\s+//;"\
1644 -e "s/\s+$//;"\
1645 -e "s/^(['\"])(.*)\1/\\$2/;"\
1646 -e "\\$val=\\$_;"\
1647 -e "END { print \\$val if defined \\$val; }"\
1648 'LT_REVISION' $META`;
1649 SPL_META_LT_AGE=`perl -n\
1650 -e "BEGIN { \\$key=shift @ARGV; }"\
1651 -e "next unless s/^\s*\\$key[:=]//i;"\
1652 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
1653 -e "s/^\s+//;"\
1654 -e "s/\s+$//;"\
1655 -e "s/^(['\"])(.*)\1/\\$2/;"\
1656 -e "\\$val=\\$_;"\
1657 -e "END { print \\$val if defined \\$val; }"\
1658 'LT_AGE' $META`;
1659 if test -n "$SPL_META_LT_CURRENT" \
1660 -o -n "$SPL_META_LT_REVISION" \
1661 -o -n "$SPL_META_LT_AGE"; then
1662 test -n "$SPL_META_LT_CURRENT" || SPL_META_LT_CURRENT="0"
1663 test -n "$SPL_META_LT_REVISION" || SPL_META_LT_REVISION="0"
1664 test -n "$SPL_META_LT_AGE" || SPL_META_LT_AGE="0"
1665
1666 cat >>confdefs.h <<_ACEOF
1667 #define SPL_META_LT_CURRENT "$SPL_META_LT_CURRENT"
1668 _ACEOF
1669
1670
1671 cat >>confdefs.h <<_ACEOF
1672 #define SPL_META_LT_REVISION "$SPL_META_LT_REVISION"
1673 _ACEOF
1674
1675
1676 cat >>confdefs.h <<_ACEOF
1677 #define SPL_META_LT_AGE "$SPL_META_LT_AGE"
1678 _ACEOF
1679
1680
1681
1682
1683 fi
1684 fi
1685
1686 echo "$as_me:$LINENO: result: $_spl_ac_meta_got_file" >&5
1687 echo "${ECHO_T}$_spl_ac_meta_got_file" >&6
1688
1689
1690 ac_aux_dir=
1691 for ac_dir in config $srcdir/config; do
1692 if test -f $ac_dir/install-sh; then
1693 ac_aux_dir=$ac_dir
1694 ac_install_sh="$ac_aux_dir/install-sh -c"
1695 break
1696 elif test -f $ac_dir/install.sh; then
1697 ac_aux_dir=$ac_dir
1698 ac_install_sh="$ac_aux_dir/install.sh -c"
1699 break
1700 elif test -f $ac_dir/shtool; then
1701 ac_aux_dir=$ac_dir
1702 ac_install_sh="$ac_aux_dir/shtool install -c"
1703 break
1704 fi
1705 done
1706 if test -z "$ac_aux_dir"; then
1707 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1708 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1709 { (exit 1); exit 1; }; }
1710 fi
1711 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1712 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1713 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1714
1715 # Make sure we can run config.sub.
1716 $ac_config_sub sun4 >/dev/null 2>&1 ||
1717 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1718 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1719 { (exit 1); exit 1; }; }
1720
1721 echo "$as_me:$LINENO: checking build system type" >&5
1722 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1723 if test "${ac_cv_build+set}" = set; then
1724 echo $ECHO_N "(cached) $ECHO_C" >&6
1725 else
1726 ac_cv_build_alias=$build_alias
1727 test -z "$ac_cv_build_alias" &&
1728 ac_cv_build_alias=`$ac_config_guess`
1729 test -z "$ac_cv_build_alias" &&
1730 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1731 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1732 { (exit 1); exit 1; }; }
1733 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1734 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1735 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1736 { (exit 1); exit 1; }; }
1737
1738 fi
1739 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1740 echo "${ECHO_T}$ac_cv_build" >&6
1741 build=$ac_cv_build
1742 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1743 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1744 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1745
1746
1747 echo "$as_me:$LINENO: checking host system type" >&5
1748 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1749 if test "${ac_cv_host+set}" = set; then
1750 echo $ECHO_N "(cached) $ECHO_C" >&6
1751 else
1752 ac_cv_host_alias=$host_alias
1753 test -z "$ac_cv_host_alias" &&
1754 ac_cv_host_alias=$ac_cv_build_alias
1755 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1756 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1757 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1758 { (exit 1); exit 1; }; }
1759
1760 fi
1761 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1762 echo "${ECHO_T}$ac_cv_host" >&6
1763 host=$ac_cv_host
1764 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1765 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1766 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1767
1768
1769 echo "$as_me:$LINENO: checking target system type" >&5
1770 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1771 if test "${ac_cv_target+set}" = set; then
1772 echo $ECHO_N "(cached) $ECHO_C" >&6
1773 else
1774 ac_cv_target_alias=$target_alias
1775 test "x$ac_cv_target_alias" = "x" &&
1776 ac_cv_target_alias=$ac_cv_host_alias
1777 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1778 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1779 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1780 { (exit 1); exit 1; }; }
1781
1782 fi
1783 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1784 echo "${ECHO_T}$ac_cv_target" >&6
1785 target=$ac_cv_target
1786 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1787 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1788 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1789
1790
1791 # The aliases save the names the user supplied, while $host etc.
1792 # will get canonicalized.
1793 test -n "$target_alias" &&
1794 test "$program_prefix$program_suffix$program_transform_name" = \
1795 NONENONEs,x,x, &&
1796 program_prefix=${target_alias}-
1797 am__api_version="1.9"
1798 # Find a good install program. We prefer a C program (faster),
1799 # so one script is as good as another. But avoid the broken or
1800 # incompatible versions:
1801 # SysV /etc/install, /usr/sbin/install
1802 # SunOS /usr/etc/install
1803 # IRIX /sbin/install
1804 # AIX /bin/install
1805 # AmigaOS /C/install, which installs bootblocks on floppy discs
1806 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1807 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1808 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1809 # OS/2's system install, which has a completely different semantic
1810 # ./install, which can be erroneously created by make from ./install.sh.
1811 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1812 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1813 if test -z "$INSTALL"; then
1814 if test "${ac_cv_path_install+set}" = set; then
1815 echo $ECHO_N "(cached) $ECHO_C" >&6
1816 else
1817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1818 for as_dir in $PATH
1819 do
1820 IFS=$as_save_IFS
1821 test -z "$as_dir" && as_dir=.
1822 # Account for people who put trailing slashes in PATH elements.
1823 case $as_dir/ in
1824 ./ | .// | /cC/* | \
1825 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1826 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1827 /usr/ucb/* ) ;;
1828 *)
1829 # OSF1 and SCO ODT 3.0 have their own names for install.
1830 # Don't use installbsd from OSF since it installs stuff as root
1831 # by default.
1832 for ac_prog in ginstall scoinst install; do
1833 for ac_exec_ext in '' $ac_executable_extensions; do
1834 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1835 if test $ac_prog = install &&
1836 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1837 # AIX install. It has an incompatible calling convention.
1838 :
1839 elif test $ac_prog = install &&
1840 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1841 # program-specific install script used by HP pwplus--don't use.
1842 :
1843 else
1844 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1845 break 3
1846 fi
1847 fi
1848 done
1849 done
1850 ;;
1851 esac
1852 done
1853
1854
1855 fi
1856 if test "${ac_cv_path_install+set}" = set; then
1857 INSTALL=$ac_cv_path_install
1858 else
1859 # As a last resort, use the slow shell script. We don't cache a
1860 # path for INSTALL within a source directory, because that will
1861 # break other packages using the cache if that directory is
1862 # removed, or if the path is relative.
1863 INSTALL=$ac_install_sh
1864 fi
1865 fi
1866 echo "$as_me:$LINENO: result: $INSTALL" >&5
1867 echo "${ECHO_T}$INSTALL" >&6
1868
1869 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1870 # It thinks the first close brace ends the variable substitution.
1871 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1872
1873 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1874
1875 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1876
1877 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1878 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1879 # Just in case
1880 sleep 1
1881 echo timestamp > conftest.file
1882 # Do `set' in a subshell so we don't clobber the current shell's
1883 # arguments. Must try -L first in case configure is actually a
1884 # symlink; some systems play weird games with the mod time of symlinks
1885 # (eg FreeBSD returns the mod time of the symlink's containing
1886 # directory).
1887 if (
1888 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1889 if test "$*" = "X"; then
1890 # -L didn't work.
1891 set X `ls -t $srcdir/configure conftest.file`
1892 fi
1893 rm -f conftest.file
1894 if test "$*" != "X $srcdir/configure conftest.file" \
1895 && test "$*" != "X conftest.file $srcdir/configure"; then
1896
1897 # If neither matched, then we have a broken ls. This can happen
1898 # if, for instance, CONFIG_SHELL is bash and it inherits a
1899 # broken ls alias from the environment. This has actually
1900 # happened. Such a system could not be considered "sane".
1901 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1902 alias in your environment" >&5
1903 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1904 alias in your environment" >&2;}
1905 { (exit 1); exit 1; }; }
1906 fi
1907
1908 test "$2" = conftest.file
1909 )
1910 then
1911 # Ok.
1912 :
1913 else
1914 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1915 Check your system clock" >&5
1916 echo "$as_me: error: newly created file is older than distributed files!
1917 Check your system clock" >&2;}
1918 { (exit 1); exit 1; }; }
1919 fi
1920 echo "$as_me:$LINENO: result: yes" >&5
1921 echo "${ECHO_T}yes" >&6
1922 test "$program_prefix" != NONE &&
1923 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1924 # Use a double $ so make ignores it.
1925 test "$program_suffix" != NONE &&
1926 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1927 # Double any \ or $. echo might interpret backslashes.
1928 # By default was `s,x,x', remove it if useless.
1929 cat <<\_ACEOF >conftest.sed
1930 s/[\\$]/&&/g;s/;s,x,x,$//
1931 _ACEOF
1932 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1933 rm conftest.sed
1934
1935 # expand $ac_aux_dir to an absolute path
1936 am_aux_dir=`cd $ac_aux_dir && pwd`
1937
1938 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1939 # Use eval to expand $SHELL
1940 if eval "$MISSING --run true"; then
1941 am_missing_run="$MISSING --run "
1942 else
1943 am_missing_run=
1944 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1945 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1946 fi
1947
1948 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1949 # We used to keeping the `.' as first argument, in order to
1950 # allow $(mkdir_p) to be used without argument. As in
1951 # $(mkdir_p) $(somedir)
1952 # where $(somedir) is conditionally defined. However this is wrong
1953 # for two reasons:
1954 # 1. if the package is installed by a user who cannot write `.'
1955 # make install will fail,
1956 # 2. the above comment should most certainly read
1957 # $(mkdir_p) $(DESTDIR)$(somedir)
1958 # so it does not work when $(somedir) is undefined and
1959 # $(DESTDIR) is not.
1960 # To support the latter case, we have to write
1961 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1962 # so the `.' trick is pointless.
1963 mkdir_p='mkdir -p --'
1964 else
1965 # On NextStep and OpenStep, the `mkdir' command does not
1966 # recognize any option. It will interpret all options as
1967 # directories to create, and then abort because `.' already
1968 # exists.
1969 for d in ./-p ./--version;
1970 do
1971 test -d $d && rmdir $d
1972 done
1973 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1974 if test -f "$ac_aux_dir/mkinstalldirs"; then
1975 mkdir_p='$(mkinstalldirs)'
1976 else
1977 mkdir_p='$(install_sh) -d'
1978 fi
1979 fi
1980
1981 for ac_prog in gawk mawk nawk awk
1982 do
1983 # Extract the first word of "$ac_prog", so it can be a program name with args.
1984 set dummy $ac_prog; ac_word=$2
1985 echo "$as_me:$LINENO: checking for $ac_word" >&5
1986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1987 if test "${ac_cv_prog_AWK+set}" = set; then
1988 echo $ECHO_N "(cached) $ECHO_C" >&6
1989 else
1990 if test -n "$AWK"; then
1991 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1992 else
1993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1994 for as_dir in $PATH
1995 do
1996 IFS=$as_save_IFS
1997 test -z "$as_dir" && as_dir=.
1998 for ac_exec_ext in '' $ac_executable_extensions; do
1999 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2000 ac_cv_prog_AWK="$ac_prog"
2001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2002 break 2
2003 fi
2004 done
2005 done
2006
2007 fi
2008 fi
2009 AWK=$ac_cv_prog_AWK
2010 if test -n "$AWK"; then
2011 echo "$as_me:$LINENO: result: $AWK" >&5
2012 echo "${ECHO_T}$AWK" >&6
2013 else
2014 echo "$as_me:$LINENO: result: no" >&5
2015 echo "${ECHO_T}no" >&6
2016 fi
2017
2018 test -n "$AWK" && break
2019 done
2020
2021 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2022 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2023 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2024 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2025 echo $ECHO_N "(cached) $ECHO_C" >&6
2026 else
2027 cat >conftest.make <<\_ACEOF
2028 all:
2029 @echo 'ac_maketemp="$(MAKE)"'
2030 _ACEOF
2031 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2032 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2033 if test -n "$ac_maketemp"; then
2034 eval ac_cv_prog_make_${ac_make}_set=yes
2035 else
2036 eval ac_cv_prog_make_${ac_make}_set=no
2037 fi
2038 rm -f conftest.make
2039 fi
2040 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2041 echo "$as_me:$LINENO: result: yes" >&5
2042 echo "${ECHO_T}yes" >&6
2043 SET_MAKE=
2044 else
2045 echo "$as_me:$LINENO: result: no" >&5
2046 echo "${ECHO_T}no" >&6
2047 SET_MAKE="MAKE=${MAKE-make}"
2048 fi
2049
2050 rm -rf .tst 2>/dev/null
2051 mkdir .tst 2>/dev/null
2052 if test -d .tst; then
2053 am__leading_dot=.
2054 else
2055 am__leading_dot=_
2056 fi
2057 rmdir .tst 2>/dev/null
2058
2059 # test to see if srcdir already configured
2060 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2061 test -f $srcdir/config.status; then
2062 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2063 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2064 { (exit 1); exit 1; }; }
2065 fi
2066
2067 # test whether we have cygpath
2068 if test -z "$CYGPATH_W"; then
2069 if (cygpath --version) >/dev/null 2>/dev/null; then
2070 CYGPATH_W='cygpath -w'
2071 else
2072 CYGPATH_W=echo
2073 fi
2074 fi
2075
2076
2077 # Define the identity of the package.
2078 PACKAGE=$SPL_META_NAME
2079 VERSION=$SPL_META_VERSION
2080
2081
2082 cat >>confdefs.h <<_ACEOF
2083 #define PACKAGE "$PACKAGE"
2084 _ACEOF
2085
2086
2087 cat >>confdefs.h <<_ACEOF
2088 #define VERSION "$VERSION"
2089 _ACEOF
2090
2091 # Some tools Automake needs.
2092
2093 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2094
2095
2096 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2097
2098
2099 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2100
2101
2102 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2103
2104
2105 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2106
2107 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2108
2109 # Installed binaries are usually stripped using `strip' when the user
2110 # run `make install-strip'. However `strip' might not be the right
2111 # tool to use in cross-compilation environments, therefore Automake
2112 # will honor the `STRIP' environment variable to overrule this program.
2113 if test "$cross_compiling" != no; then
2114 if test -n "$ac_tool_prefix"; then
2115 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2116 set dummy ${ac_tool_prefix}strip; ac_word=$2
2117 echo "$as_me:$LINENO: checking for $ac_word" >&5
2118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2119 if test "${ac_cv_prog_STRIP+set}" = set; then
2120 echo $ECHO_N "(cached) $ECHO_C" >&6
2121 else
2122 if test -n "$STRIP"; then
2123 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2124 else
2125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2126 for as_dir in $PATH
2127 do
2128 IFS=$as_save_IFS
2129 test -z "$as_dir" && as_dir=.
2130 for ac_exec_ext in '' $ac_executable_extensions; do
2131 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2132 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2134 break 2
2135 fi
2136 done
2137 done
2138
2139 fi
2140 fi
2141 STRIP=$ac_cv_prog_STRIP
2142 if test -n "$STRIP"; then
2143 echo "$as_me:$LINENO: result: $STRIP" >&5
2144 echo "${ECHO_T}$STRIP" >&6
2145 else
2146 echo "$as_me:$LINENO: result: no" >&5
2147 echo "${ECHO_T}no" >&6
2148 fi
2149
2150 fi
2151 if test -z "$ac_cv_prog_STRIP"; then
2152 ac_ct_STRIP=$STRIP
2153 # Extract the first word of "strip", so it can be a program name with args.
2154 set dummy strip; ac_word=$2
2155 echo "$as_me:$LINENO: checking for $ac_word" >&5
2156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2157 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2158 echo $ECHO_N "(cached) $ECHO_C" >&6
2159 else
2160 if test -n "$ac_ct_STRIP"; then
2161 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2162 else
2163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2164 for as_dir in $PATH
2165 do
2166 IFS=$as_save_IFS
2167 test -z "$as_dir" && as_dir=.
2168 for ac_exec_ext in '' $ac_executable_extensions; do
2169 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2170 ac_cv_prog_ac_ct_STRIP="strip"
2171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2172 break 2
2173 fi
2174 done
2175 done
2176
2177 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2178 fi
2179 fi
2180 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2181 if test -n "$ac_ct_STRIP"; then
2182 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2183 echo "${ECHO_T}$ac_ct_STRIP" >&6
2184 else
2185 echo "$as_me:$LINENO: result: no" >&5
2186 echo "${ECHO_T}no" >&6
2187 fi
2188
2189 STRIP=$ac_ct_STRIP
2190 else
2191 STRIP="$ac_cv_prog_STRIP"
2192 fi
2193
2194 fi
2195 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2196
2197 # We need awk for the "check" target. The system "awk" is bad on
2198 # some platforms.
2199 # Always define AMTAR for backward compatibility.
2200
2201 AMTAR=${AMTAR-"${am_missing_run}tar"}
2202
2203 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2204
2205
2206
2207
2208
2209 ac_config_headers="$ac_config_headers spl_config.h"
2210
2211
2212
2213 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2214 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
2215 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2216 if test "${enable_maintainer_mode+set}" = set; then
2217 enableval="$enable_maintainer_mode"
2218 USE_MAINTAINER_MODE=$enableval
2219 else
2220 USE_MAINTAINER_MODE=no
2221 fi;
2222 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2223 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2224
2225
2226 if test $USE_MAINTAINER_MODE = yes; then
2227 MAINTAINER_MODE_TRUE=
2228 MAINTAINER_MODE_FALSE='#'
2229 else
2230 MAINTAINER_MODE_TRUE='#'
2231 MAINTAINER_MODE_FALSE=
2232 fi
2233
2234 MAINT=$MAINTAINER_MODE_TRUE
2235
2236
2237
2238 # Find a good install program. We prefer a C program (faster),
2239 # so one script is as good as another. But avoid the broken or
2240 # incompatible versions:
2241 # SysV /etc/install, /usr/sbin/install
2242 # SunOS /usr/etc/install
2243 # IRIX /sbin/install
2244 # AIX /bin/install
2245 # AmigaOS /C/install, which installs bootblocks on floppy discs
2246 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2247 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2248 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2249 # OS/2's system install, which has a completely different semantic
2250 # ./install, which can be erroneously created by make from ./install.sh.
2251 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2252 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2253 if test -z "$INSTALL"; then
2254 if test "${ac_cv_path_install+set}" = set; then
2255 echo $ECHO_N "(cached) $ECHO_C" >&6
2256 else
2257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2258 for as_dir in $PATH
2259 do
2260 IFS=$as_save_IFS
2261 test -z "$as_dir" && as_dir=.
2262 # Account for people who put trailing slashes in PATH elements.
2263 case $as_dir/ in
2264 ./ | .// | /cC/* | \
2265 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2266 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2267 /usr/ucb/* ) ;;
2268 *)
2269 # OSF1 and SCO ODT 3.0 have their own names for install.
2270 # Don't use installbsd from OSF since it installs stuff as root
2271 # by default.
2272 for ac_prog in ginstall scoinst install; do
2273 for ac_exec_ext in '' $ac_executable_extensions; do
2274 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2275 if test $ac_prog = install &&
2276 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2277 # AIX install. It has an incompatible calling convention.
2278 :
2279 elif test $ac_prog = install &&
2280 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2281 # program-specific install script used by HP pwplus--don't use.
2282 :
2283 else
2284 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2285 break 3
2286 fi
2287 fi
2288 done
2289 done
2290 ;;
2291 esac
2292 done
2293
2294
2295 fi
2296 if test "${ac_cv_path_install+set}" = set; then
2297 INSTALL=$ac_cv_path_install
2298 else
2299 # As a last resort, use the slow shell script. We don't cache a
2300 # path for INSTALL within a source directory, because that will
2301 # break other packages using the cache if that directory is
2302 # removed, or if the path is relative.
2303 INSTALL=$ac_install_sh
2304 fi
2305 fi
2306 echo "$as_me:$LINENO: result: $INSTALL" >&5
2307 echo "${ECHO_T}$INSTALL" >&6
2308
2309 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2310 # It thinks the first close brace ends the variable substitution.
2311 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2312
2313 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2314
2315 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2316
2317 ac_ext=c
2318 ac_cpp='$CPP $CPPFLAGS'
2319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2322 if test -n "$ac_tool_prefix"; then
2323 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2324 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2325 echo "$as_me:$LINENO: checking for $ac_word" >&5
2326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2327 if test "${ac_cv_prog_CC+set}" = set; then
2328 echo $ECHO_N "(cached) $ECHO_C" >&6
2329 else
2330 if test -n "$CC"; then
2331 ac_cv_prog_CC="$CC" # Let the user override the test.
2332 else
2333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2334 for as_dir in $PATH
2335 do
2336 IFS=$as_save_IFS
2337 test -z "$as_dir" && as_dir=.
2338 for ac_exec_ext in '' $ac_executable_extensions; do
2339 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2340 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2342 break 2
2343 fi
2344 done
2345 done
2346
2347 fi
2348 fi
2349 CC=$ac_cv_prog_CC
2350 if test -n "$CC"; then
2351 echo "$as_me:$LINENO: result: $CC" >&5
2352 echo "${ECHO_T}$CC" >&6
2353 else
2354 echo "$as_me:$LINENO: result: no" >&5
2355 echo "${ECHO_T}no" >&6
2356 fi
2357
2358 fi
2359 if test -z "$ac_cv_prog_CC"; then
2360 ac_ct_CC=$CC
2361 # Extract the first word of "gcc", so it can be a program name with args.
2362 set dummy gcc; ac_word=$2
2363 echo "$as_me:$LINENO: checking for $ac_word" >&5
2364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2365 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2366 echo $ECHO_N "(cached) $ECHO_C" >&6
2367 else
2368 if test -n "$ac_ct_CC"; then
2369 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2370 else
2371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2372 for as_dir in $PATH
2373 do
2374 IFS=$as_save_IFS
2375 test -z "$as_dir" && as_dir=.
2376 for ac_exec_ext in '' $ac_executable_extensions; do
2377 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2378 ac_cv_prog_ac_ct_CC="gcc"
2379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2380 break 2
2381 fi
2382 done
2383 done
2384
2385 fi
2386 fi
2387 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2388 if test -n "$ac_ct_CC"; then
2389 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2390 echo "${ECHO_T}$ac_ct_CC" >&6
2391 else
2392 echo "$as_me:$LINENO: result: no" >&5
2393 echo "${ECHO_T}no" >&6
2394 fi
2395
2396 CC=$ac_ct_CC
2397 else
2398 CC="$ac_cv_prog_CC"
2399 fi
2400
2401 if test -z "$CC"; then
2402 if test -n "$ac_tool_prefix"; then
2403 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2404 set dummy ${ac_tool_prefix}cc; ac_word=$2
2405 echo "$as_me:$LINENO: checking for $ac_word" >&5
2406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2407 if test "${ac_cv_prog_CC+set}" = set; then
2408 echo $ECHO_N "(cached) $ECHO_C" >&6
2409 else
2410 if test -n "$CC"; then
2411 ac_cv_prog_CC="$CC" # Let the user override the test.
2412 else
2413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2414 for as_dir in $PATH
2415 do
2416 IFS=$as_save_IFS
2417 test -z "$as_dir" && as_dir=.
2418 for ac_exec_ext in '' $ac_executable_extensions; do
2419 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2420 ac_cv_prog_CC="${ac_tool_prefix}cc"
2421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2422 break 2
2423 fi
2424 done
2425 done
2426
2427 fi
2428 fi
2429 CC=$ac_cv_prog_CC
2430 if test -n "$CC"; then
2431 echo "$as_me:$LINENO: result: $CC" >&5
2432 echo "${ECHO_T}$CC" >&6
2433 else
2434 echo "$as_me:$LINENO: result: no" >&5
2435 echo "${ECHO_T}no" >&6
2436 fi
2437
2438 fi
2439 if test -z "$ac_cv_prog_CC"; then
2440 ac_ct_CC=$CC
2441 # Extract the first word of "cc", so it can be a program name with args.
2442 set dummy cc; ac_word=$2
2443 echo "$as_me:$LINENO: checking for $ac_word" >&5
2444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2445 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2446 echo $ECHO_N "(cached) $ECHO_C" >&6
2447 else
2448 if test -n "$ac_ct_CC"; then
2449 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2450 else
2451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2452 for as_dir in $PATH
2453 do
2454 IFS=$as_save_IFS
2455 test -z "$as_dir" && as_dir=.
2456 for ac_exec_ext in '' $ac_executable_extensions; do
2457 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2458 ac_cv_prog_ac_ct_CC="cc"
2459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2460 break 2
2461 fi
2462 done
2463 done
2464
2465 fi
2466 fi
2467 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2468 if test -n "$ac_ct_CC"; then
2469 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2470 echo "${ECHO_T}$ac_ct_CC" >&6
2471 else
2472 echo "$as_me:$LINENO: result: no" >&5
2473 echo "${ECHO_T}no" >&6
2474 fi
2475
2476 CC=$ac_ct_CC
2477 else
2478 CC="$ac_cv_prog_CC"
2479 fi
2480
2481 fi
2482 if test -z "$CC"; then
2483 # Extract the first word of "cc", so it can be a program name with args.
2484 set dummy cc; ac_word=$2
2485 echo "$as_me:$LINENO: checking for $ac_word" >&5
2486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2487 if test "${ac_cv_prog_CC+set}" = set; then
2488 echo $ECHO_N "(cached) $ECHO_C" >&6
2489 else
2490 if test -n "$CC"; then
2491 ac_cv_prog_CC="$CC" # Let the user override the test.
2492 else
2493 ac_prog_rejected=no
2494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2495 for as_dir in $PATH
2496 do
2497 IFS=$as_save_IFS
2498 test -z "$as_dir" && as_dir=.
2499 for ac_exec_ext in '' $ac_executable_extensions; do
2500 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2501 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2502 ac_prog_rejected=yes
2503 continue
2504 fi
2505 ac_cv_prog_CC="cc"
2506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2507 break 2
2508 fi
2509 done
2510 done
2511
2512 if test $ac_prog_rejected = yes; then
2513 # We found a bogon in the path, so make sure we never use it.
2514 set dummy $ac_cv_prog_CC
2515 shift
2516 if test $# != 0; then
2517 # We chose a different compiler from the bogus one.
2518 # However, it has the same basename, so the bogon will be chosen
2519 # first if we set CC to just the basename; use the full file name.
2520 shift
2521 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2522 fi
2523 fi
2524 fi
2525 fi
2526 CC=$ac_cv_prog_CC
2527 if test -n "$CC"; then
2528 echo "$as_me:$LINENO: result: $CC" >&5
2529 echo "${ECHO_T}$CC" >&6
2530 else
2531 echo "$as_me:$LINENO: result: no" >&5
2532 echo "${ECHO_T}no" >&6
2533 fi
2534
2535 fi
2536 if test -z "$CC"; then
2537 if test -n "$ac_tool_prefix"; then
2538 for ac_prog in cl
2539 do
2540 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2541 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2542 echo "$as_me:$LINENO: checking for $ac_word" >&5
2543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2544 if test "${ac_cv_prog_CC+set}" = set; then
2545 echo $ECHO_N "(cached) $ECHO_C" >&6
2546 else
2547 if test -n "$CC"; then
2548 ac_cv_prog_CC="$CC" # Let the user override the test.
2549 else
2550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2551 for as_dir in $PATH
2552 do
2553 IFS=$as_save_IFS
2554 test -z "$as_dir" && as_dir=.
2555 for ac_exec_ext in '' $ac_executable_extensions; do
2556 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2557 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2559 break 2
2560 fi
2561 done
2562 done
2563
2564 fi
2565 fi
2566 CC=$ac_cv_prog_CC
2567 if test -n "$CC"; then
2568 echo "$as_me:$LINENO: result: $CC" >&5
2569 echo "${ECHO_T}$CC" >&6
2570 else
2571 echo "$as_me:$LINENO: result: no" >&5
2572 echo "${ECHO_T}no" >&6
2573 fi
2574
2575 test -n "$CC" && break
2576 done
2577 fi
2578 if test -z "$CC"; then
2579 ac_ct_CC=$CC
2580 for ac_prog in cl
2581 do
2582 # Extract the first word of "$ac_prog", so it can be a program name with args.
2583 set dummy $ac_prog; ac_word=$2
2584 echo "$as_me:$LINENO: checking for $ac_word" >&5
2585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2586 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2587 echo $ECHO_N "(cached) $ECHO_C" >&6
2588 else
2589 if test -n "$ac_ct_CC"; then
2590 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2591 else
2592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2593 for as_dir in $PATH
2594 do
2595 IFS=$as_save_IFS
2596 test -z "$as_dir" && as_dir=.
2597 for ac_exec_ext in '' $ac_executable_extensions; do
2598 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2599 ac_cv_prog_ac_ct_CC="$ac_prog"
2600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2601 break 2
2602 fi
2603 done
2604 done
2605
2606 fi
2607 fi
2608 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2609 if test -n "$ac_ct_CC"; then
2610 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2611 echo "${ECHO_T}$ac_ct_CC" >&6
2612 else
2613 echo "$as_me:$LINENO: result: no" >&5
2614 echo "${ECHO_T}no" >&6
2615 fi
2616
2617 test -n "$ac_ct_CC" && break
2618 done
2619
2620 CC=$ac_ct_CC
2621 fi
2622
2623 fi
2624
2625
2626 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2627 See \`config.log' for more details." >&5
2628 echo "$as_me: error: no acceptable C compiler found in \$PATH
2629 See \`config.log' for more details." >&2;}
2630 { (exit 1); exit 1; }; }
2631
2632 # Provide some information about the compiler.
2633 echo "$as_me:$LINENO:" \
2634 "checking for C compiler version" >&5
2635 ac_compiler=`set X $ac_compile; echo $2`
2636 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2637 (eval $ac_compiler --version </dev/null >&5) 2>&5
2638 ac_status=$?
2639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640 (exit $ac_status); }
2641 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2642 (eval $ac_compiler -v </dev/null >&5) 2>&5
2643 ac_status=$?
2644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2645 (exit $ac_status); }
2646 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2647 (eval $ac_compiler -V </dev/null >&5) 2>&5
2648 ac_status=$?
2649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650 (exit $ac_status); }
2651
2652 cat >conftest.$ac_ext <<_ACEOF
2653 /* confdefs.h. */
2654 _ACEOF
2655 cat confdefs.h >>conftest.$ac_ext
2656 cat >>conftest.$ac_ext <<_ACEOF
2657 /* end confdefs.h. */
2658
2659 int
2660 main ()
2661 {
2662
2663 ;
2664 return 0;
2665 }
2666 _ACEOF
2667 ac_clean_files_save=$ac_clean_files
2668 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2669 # Try to create an executable without -o first, disregard a.out.
2670 # It will help us diagnose broken compilers, and finding out an intuition
2671 # of exeext.
2672 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2673 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2674 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2675 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2676 (eval $ac_link_default) 2>&5
2677 ac_status=$?
2678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2679 (exit $ac_status); }; then
2680 # Find the output, starting from the most likely. This scheme is
2681 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2682 # resort.
2683
2684 # Be careful to initialize this variable, since it used to be cached.
2685 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2686 ac_cv_exeext=
2687 # b.out is created by i960 compilers.
2688 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2689 do
2690 test -f "$ac_file" || continue
2691 case $ac_file in
2692 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2693 ;;
2694 conftest.$ac_ext )
2695 # This is the source file.
2696 ;;
2697 [ab].out )
2698 # We found the default executable, but exeext='' is most
2699 # certainly right.
2700 break;;
2701 *.* )
2702 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2703 # FIXME: I believe we export ac_cv_exeext for Libtool,
2704 # but it would be cool to find out if it's true. Does anybody
2705 # maintain Libtool? --akim.
2706 export ac_cv_exeext
2707 break;;
2708 * )
2709 break;;
2710 esac
2711 done
2712 else
2713 echo "$as_me: failed program was:" >&5
2714 sed 's/^/| /' conftest.$ac_ext >&5
2715
2716 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2717 See \`config.log' for more details." >&5
2718 echo "$as_me: error: C compiler cannot create executables
2719 See \`config.log' for more details." >&2;}
2720 { (exit 77); exit 77; }; }
2721 fi
2722
2723 ac_exeext=$ac_cv_exeext
2724 echo "$as_me:$LINENO: result: $ac_file" >&5
2725 echo "${ECHO_T}$ac_file" >&6
2726
2727 # Check the compiler produces executables we can run. If not, either
2728 # the compiler is broken, or we cross compile.
2729 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2730 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2731 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2732 # If not cross compiling, check that we can run a simple program.
2733 if test "$cross_compiling" != yes; then
2734 if { ac_try='./$ac_file'
2735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2736 (eval $ac_try) 2>&5
2737 ac_status=$?
2738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739 (exit $ac_status); }; }; then
2740 cross_compiling=no
2741 else
2742 if test "$cross_compiling" = maybe; then
2743 cross_compiling=yes
2744 else
2745 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2746 If you meant to cross compile, use \`--host'.
2747 See \`config.log' for more details." >&5
2748 echo "$as_me: error: cannot run C compiled programs.
2749 If you meant to cross compile, use \`--host'.
2750 See \`config.log' for more details." >&2;}
2751 { (exit 1); exit 1; }; }
2752 fi
2753 fi
2754 fi
2755 echo "$as_me:$LINENO: result: yes" >&5
2756 echo "${ECHO_T}yes" >&6
2757
2758 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2759 ac_clean_files=$ac_clean_files_save
2760 # Check the compiler produces executables we can run. If not, either
2761 # the compiler is broken, or we cross compile.
2762 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2763 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2764 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2765 echo "${ECHO_T}$cross_compiling" >&6
2766
2767 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2768 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2770 (eval $ac_link) 2>&5
2771 ac_status=$?
2772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773 (exit $ac_status); }; then
2774 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2775 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2776 # work properly (i.e., refer to `conftest.exe'), while it won't with
2777 # `rm'.
2778 for ac_file in conftest.exe conftest conftest.*; do
2779 test -f "$ac_file" || continue
2780 case $ac_file in
2781 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2782 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2783 export ac_cv_exeext
2784 break;;
2785 * ) break;;
2786 esac
2787 done
2788 else
2789 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2790 See \`config.log' for more details." >&5
2791 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2792 See \`config.log' for more details." >&2;}
2793 { (exit 1); exit 1; }; }
2794 fi
2795
2796 rm -f conftest$ac_cv_exeext
2797 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2798 echo "${ECHO_T}$ac_cv_exeext" >&6
2799
2800 rm -f conftest.$ac_ext
2801 EXEEXT=$ac_cv_exeext
2802 ac_exeext=$EXEEXT
2803 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2804 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2805 if test "${ac_cv_objext+set}" = set; then
2806 echo $ECHO_N "(cached) $ECHO_C" >&6
2807 else
2808 cat >conftest.$ac_ext <<_ACEOF
2809 /* confdefs.h. */
2810 _ACEOF
2811 cat confdefs.h >>conftest.$ac_ext
2812 cat >>conftest.$ac_ext <<_ACEOF
2813 /* end confdefs.h. */
2814
2815 int
2816 main ()
2817 {
2818
2819 ;
2820 return 0;
2821 }
2822 _ACEOF
2823 rm -f conftest.o conftest.obj
2824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2825 (eval $ac_compile) 2>&5
2826 ac_status=$?
2827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828 (exit $ac_status); }; then
2829 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2830 case $ac_file in
2831 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2832 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2833 break;;
2834 esac
2835 done
2836 else
2837 echo "$as_me: failed program was:" >&5
2838 sed 's/^/| /' conftest.$ac_ext >&5
2839
2840 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2841 See \`config.log' for more details." >&5
2842 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2843 See \`config.log' for more details." >&2;}
2844 { (exit 1); exit 1; }; }
2845 fi
2846
2847 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2848 fi
2849 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2850 echo "${ECHO_T}$ac_cv_objext" >&6
2851 OBJEXT=$ac_cv_objext
2852 ac_objext=$OBJEXT
2853 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2854 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2855 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2856 echo $ECHO_N "(cached) $ECHO_C" >&6
2857 else
2858 cat >conftest.$ac_ext <<_ACEOF
2859 /* confdefs.h. */
2860 _ACEOF
2861 cat confdefs.h >>conftest.$ac_ext
2862 cat >>conftest.$ac_ext <<_ACEOF
2863 /* end confdefs.h. */
2864
2865 int
2866 main ()
2867 {
2868 #ifndef __GNUC__
2869 choke me
2870 #endif
2871
2872 ;
2873 return 0;
2874 }
2875 _ACEOF
2876 rm -f conftest.$ac_objext
2877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2878 (eval $ac_compile) 2>conftest.er1
2879 ac_status=$?
2880 grep -v '^ *+' conftest.er1 >conftest.err
2881 rm -f conftest.er1
2882 cat conftest.err >&5
2883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884 (exit $ac_status); } &&
2885 { ac_try='test -z "$ac_c_werror_flag"
2886 || test ! -s conftest.err'
2887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2888 (eval $ac_try) 2>&5
2889 ac_status=$?
2890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891 (exit $ac_status); }; } &&
2892 { ac_try='test -s conftest.$ac_objext'
2893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2894 (eval $ac_try) 2>&5
2895 ac_status=$?
2896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897 (exit $ac_status); }; }; then
2898 ac_compiler_gnu=yes
2899 else
2900 echo "$as_me: failed program was:" >&5
2901 sed 's/^/| /' conftest.$ac_ext >&5
2902
2903 ac_compiler_gnu=no
2904 fi
2905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2906 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2907
2908 fi
2909 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2910 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2911 GCC=`test $ac_compiler_gnu = yes && echo yes`
2912 ac_test_CFLAGS=${CFLAGS+set}
2913 ac_save_CFLAGS=$CFLAGS
2914 CFLAGS="-g"
2915 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2916 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2917 if test "${ac_cv_prog_cc_g+set}" = set; then
2918 echo $ECHO_N "(cached) $ECHO_C" >&6
2919 else
2920 cat >conftest.$ac_ext <<_ACEOF
2921 /* confdefs.h. */
2922 _ACEOF
2923 cat confdefs.h >>conftest.$ac_ext
2924 cat >>conftest.$ac_ext <<_ACEOF
2925 /* end confdefs.h. */
2926
2927 int
2928 main ()
2929 {
2930
2931 ;
2932 return 0;
2933 }
2934 _ACEOF
2935 rm -f conftest.$ac_objext
2936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2937 (eval $ac_compile) 2>conftest.er1
2938 ac_status=$?
2939 grep -v '^ *+' conftest.er1 >conftest.err
2940 rm -f conftest.er1
2941 cat conftest.err >&5
2942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943 (exit $ac_status); } &&
2944 { ac_try='test -z "$ac_c_werror_flag"
2945 || test ! -s conftest.err'
2946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2947 (eval $ac_try) 2>&5
2948 ac_status=$?
2949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950 (exit $ac_status); }; } &&
2951 { ac_try='test -s conftest.$ac_objext'
2952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2953 (eval $ac_try) 2>&5
2954 ac_status=$?
2955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956 (exit $ac_status); }; }; then
2957 ac_cv_prog_cc_g=yes
2958 else
2959 echo "$as_me: failed program was:" >&5
2960 sed 's/^/| /' conftest.$ac_ext >&5
2961
2962 ac_cv_prog_cc_g=no
2963 fi
2964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2965 fi
2966 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2967 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2968 if test "$ac_test_CFLAGS" = set; then
2969 CFLAGS=$ac_save_CFLAGS
2970 elif test $ac_cv_prog_cc_g = yes; then
2971 if test "$GCC" = yes; then
2972 CFLAGS="-g -O2"
2973 else
2974 CFLAGS="-g"
2975 fi
2976 else
2977 if test "$GCC" = yes; then
2978 CFLAGS="-O2"
2979 else
2980 CFLAGS=
2981 fi
2982 fi
2983 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2984 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2985 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2986 echo $ECHO_N "(cached) $ECHO_C" >&6
2987 else
2988 ac_cv_prog_cc_stdc=no
2989 ac_save_CC=$CC
2990 cat >conftest.$ac_ext <<_ACEOF
2991 /* confdefs.h. */
2992 _ACEOF
2993 cat confdefs.h >>conftest.$ac_ext
2994 cat >>conftest.$ac_ext <<_ACEOF
2995 /* end confdefs.h. */
2996 #include <stdarg.h>
2997 #include <stdio.h>
2998 #include <sys/types.h>
2999 #include <sys/stat.h>
3000 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3001 struct buf { int x; };
3002 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3003 static char *e (p, i)
3004 char **p;
3005 int i;
3006 {
3007 return p[i];
3008 }
3009 static char *f (char * (*g) (char **, int), char **p, ...)
3010 {
3011 char *s;
3012 va_list v;
3013 va_start (v,p);
3014 s = g (p, va_arg (v,int));
3015 va_end (v);
3016 return s;
3017 }
3018
3019 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3020 function prototypes and stuff, but not '\xHH' hex character constants.
3021 These don't provoke an error unfortunately, instead are silently treated
3022 as 'x'. The following induces an error, until -std1 is added to get
3023 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3024 array size at least. It's necessary to write '\x00'==0 to get something
3025 that's true only with -std1. */
3026 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3027
3028 int test (int i, double x);
3029 struct s1 {int (*f) (int a);};
3030 struct s2 {int (*f) (double a);};
3031 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3032 int argc;
3033 char **argv;
3034 int
3035 main ()
3036 {
3037 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3038 ;
3039 return 0;
3040 }
3041 _ACEOF
3042 # Don't try gcc -ansi; that turns off useful extensions and
3043 # breaks some systems' header files.
3044 # AIX -qlanglvl=ansi
3045 # Ultrix and OSF/1 -std1
3046 # HP-UX 10.20 and later -Ae
3047 # HP-UX older versions -Aa -D_HPUX_SOURCE
3048 # SVR4 -Xc -D__EXTENSIONS__
3049 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3050 do
3051 CC="$ac_save_CC $ac_arg"
3052 rm -f conftest.$ac_objext
3053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3054 (eval $ac_compile) 2>conftest.er1
3055 ac_status=$?
3056 grep -v '^ *+' conftest.er1 >conftest.err
3057 rm -f conftest.er1
3058 cat conftest.err >&5
3059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060 (exit $ac_status); } &&
3061 { ac_try='test -z "$ac_c_werror_flag"
3062 || test ! -s conftest.err'
3063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3064 (eval $ac_try) 2>&5
3065 ac_status=$?
3066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067 (exit $ac_status); }; } &&
3068 { ac_try='test -s conftest.$ac_objext'
3069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3070 (eval $ac_try) 2>&5
3071 ac_status=$?
3072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073 (exit $ac_status); }; }; then
3074 ac_cv_prog_cc_stdc=$ac_arg
3075 break
3076 else
3077 echo "$as_me: failed program was:" >&5
3078 sed 's/^/| /' conftest.$ac_ext >&5
3079
3080 fi
3081 rm -f conftest.err conftest.$ac_objext
3082 done
3083 rm -f conftest.$ac_ext conftest.$ac_objext
3084 CC=$ac_save_CC
3085
3086 fi
3087
3088 case "x$ac_cv_prog_cc_stdc" in
3089 x|xno)
3090 echo "$as_me:$LINENO: result: none needed" >&5
3091 echo "${ECHO_T}none needed" >&6 ;;
3092 *)
3093 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3094 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3095 CC="$CC $ac_cv_prog_cc_stdc" ;;
3096 esac
3097
3098 # Some people use a C++ compiler to compile C. Since we use `exit',
3099 # in C++ we need to declare it. In case someone uses the same compiler
3100 # for both compiling C and C++ we need to have the C++ compiler decide
3101 # the declaration of exit, since it's the most demanding environment.
3102 cat >conftest.$ac_ext <<_ACEOF
3103 #ifndef __cplusplus
3104 choke me
3105 #endif
3106 _ACEOF
3107 rm -f conftest.$ac_objext
3108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3109 (eval $ac_compile) 2>conftest.er1
3110 ac_status=$?
3111 grep -v '^ *+' conftest.er1 >conftest.err
3112 rm -f conftest.er1
3113 cat conftest.err >&5
3114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115 (exit $ac_status); } &&
3116 { ac_try='test -z "$ac_c_werror_flag"
3117 || test ! -s conftest.err'
3118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3119 (eval $ac_try) 2>&5
3120 ac_status=$?
3121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122 (exit $ac_status); }; } &&
3123 { ac_try='test -s conftest.$ac_objext'
3124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3125 (eval $ac_try) 2>&5
3126 ac_status=$?
3127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128 (exit $ac_status); }; }; then
3129 for ac_declaration in \
3130 '' \
3131 'extern "C" void std::exit (int) throw (); using std::exit;' \
3132 'extern "C" void std::exit (int); using std::exit;' \
3133 'extern "C" void exit (int) throw ();' \
3134 'extern "C" void exit (int);' \
3135 'void exit (int);'
3136 do
3137 cat >conftest.$ac_ext <<_ACEOF
3138 /* confdefs.h. */
3139 _ACEOF
3140 cat confdefs.h >>conftest.$ac_ext
3141 cat >>conftest.$ac_ext <<_ACEOF
3142 /* end confdefs.h. */
3143 $ac_declaration
3144 #include <stdlib.h>
3145 int
3146 main ()
3147 {
3148 exit (42);
3149 ;
3150 return 0;
3151 }
3152 _ACEOF
3153 rm -f conftest.$ac_objext
3154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3155 (eval $ac_compile) 2>conftest.er1
3156 ac_status=$?
3157 grep -v '^ *+' conftest.er1 >conftest.err
3158 rm -f conftest.er1
3159 cat conftest.err >&5
3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161 (exit $ac_status); } &&
3162 { ac_try='test -z "$ac_c_werror_flag"
3163 || test ! -s conftest.err'
3164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3165 (eval $ac_try) 2>&5
3166 ac_status=$?
3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168 (exit $ac_status); }; } &&
3169 { ac_try='test -s conftest.$ac_objext'
3170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3171 (eval $ac_try) 2>&5
3172 ac_status=$?
3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); }; }; then
3175 :
3176 else
3177 echo "$as_me: failed program was:" >&5
3178 sed 's/^/| /' conftest.$ac_ext >&5
3179
3180 continue
3181 fi
3182 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3183 cat >conftest.$ac_ext <<_ACEOF
3184 /* confdefs.h. */
3185 _ACEOF
3186 cat confdefs.h >>conftest.$ac_ext
3187 cat >>conftest.$ac_ext <<_ACEOF
3188 /* end confdefs.h. */
3189 $ac_declaration
3190 int
3191 main ()
3192 {
3193 exit (42);
3194 ;
3195 return 0;
3196 }
3197 _ACEOF
3198 rm -f conftest.$ac_objext
3199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3200 (eval $ac_compile) 2>conftest.er1
3201 ac_status=$?
3202 grep -v '^ *+' conftest.er1 >conftest.err
3203 rm -f conftest.er1
3204 cat conftest.err >&5
3205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206 (exit $ac_status); } &&
3207 { ac_try='test -z "$ac_c_werror_flag"
3208 || test ! -s conftest.err'
3209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3210 (eval $ac_try) 2>&5
3211 ac_status=$?
3212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213 (exit $ac_status); }; } &&
3214 { ac_try='test -s conftest.$ac_objext'
3215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3216 (eval $ac_try) 2>&5
3217 ac_status=$?
3218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219 (exit $ac_status); }; }; then
3220 break
3221 else
3222 echo "$as_me: failed program was:" >&5
3223 sed 's/^/| /' conftest.$ac_ext >&5
3224
3225 fi
3226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3227 done
3228 rm -f conftest*
3229 if test -n "$ac_declaration"; then
3230 echo '#ifdef __cplusplus' >>confdefs.h
3231 echo $ac_declaration >>confdefs.h
3232 echo '#endif' >>confdefs.h
3233 fi
3234
3235 else
3236 echo "$as_me: failed program was:" >&5
3237 sed 's/^/| /' conftest.$ac_ext >&5
3238
3239 fi
3240 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3241 ac_ext=c
3242 ac_cpp='$CPP $CPPFLAGS'
3243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3246 DEPDIR="${am__leading_dot}deps"
3247
3248 ac_config_commands="$ac_config_commands depfiles"
3249
3250
3251 am_make=${MAKE-make}
3252 cat > confinc << 'END'
3253 am__doit:
3254 @echo done
3255 .PHONY: am__doit
3256 END
3257 # If we don't find an include directive, just comment out the code.
3258 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3259 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3260 am__include="#"
3261 am__quote=
3262 _am_result=none
3263 # First try GNU make style include.
3264 echo "include confinc" > confmf
3265 # We grep out `Entering directory' and `Leaving directory'
3266 # messages which can occur if `w' ends up in MAKEFLAGS.
3267 # In particular we don't look at `^make:' because GNU make might
3268 # be invoked under some other name (usually "gmake"), in which
3269 # case it prints its new name instead of `make'.
3270 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3271 am__include=include
3272 am__quote=
3273 _am_result=GNU
3274 fi
3275 # Now try BSD make style include.
3276 if test "$am__include" = "#"; then
3277 echo '.include "confinc"' > confmf
3278 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3279 am__include=.include
3280 am__quote="\""
3281 _am_result=BSD
3282 fi
3283 fi
3284
3285
3286 echo "$as_me:$LINENO: result: $_am_result" >&5
3287 echo "${ECHO_T}$_am_result" >&6
3288 rm -f confinc confmf
3289
3290 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3291 if test "${enable_dependency_tracking+set}" = set; then
3292 enableval="$enable_dependency_tracking"
3293
3294 fi;
3295 if test "x$enable_dependency_tracking" != xno; then
3296 am_depcomp="$ac_aux_dir/depcomp"
3297 AMDEPBACKSLASH='\'
3298 fi
3299
3300
3301 if test "x$enable_dependency_tracking" != xno; then
3302 AMDEP_TRUE=
3303 AMDEP_FALSE='#'
3304 else
3305 AMDEP_TRUE='#'
3306 AMDEP_FALSE=
3307 fi
3308
3309
3310
3311
3312 depcc="$CC" am_compiler_list=
3313
3314 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3315 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3316 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3317 echo $ECHO_N "(cached) $ECHO_C" >&6
3318 else
3319 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3320 # We make a subdir and do the tests there. Otherwise we can end up
3321 # making bogus files that we don't know about and never remove. For
3322 # instance it was reported that on HP-UX the gcc test will end up
3323 # making a dummy file named `D' -- because `-MD' means `put the output
3324 # in D'.
3325 mkdir conftest.dir
3326 # Copy depcomp to subdir because otherwise we won't find it if we're
3327 # using a relative directory.
3328 cp "$am_depcomp" conftest.dir
3329 cd conftest.dir
3330 # We will build objects and dependencies in a subdirectory because
3331 # it helps to detect inapplicable dependency modes. For instance
3332 # both Tru64's cc and ICC support -MD to output dependencies as a
3333 # side effect of compilation, but ICC will put the dependencies in
3334 # the current directory while Tru64 will put them in the object
3335 # directory.
3336 mkdir sub
3337
3338 am_cv_CC_dependencies_compiler_type=none
3339 if test "$am_compiler_list" = ""; then
3340 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3341 fi
3342 for depmode in $am_compiler_list; do
3343 # Setup a source with many dependencies, because some compilers
3344 # like to wrap large dependency lists on column 80 (with \), and
3345 # we should not choose a depcomp mode which is confused by this.
3346 #
3347 # We need to recreate these files for each test, as the compiler may
3348 # overwrite some of them when testing with obscure command lines.
3349 # This happens at least with the AIX C compiler.
3350 : > sub/conftest.c
3351 for i in 1 2 3 4 5 6; do
3352 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3353 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3354 # Solaris 8's {/usr,}/bin/sh.
3355 touch sub/conftst$i.h
3356 done
3357 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3358
3359 case $depmode in
3360 nosideeffect)
3361 # after this tag, mechanisms are not by side-effect, so they'll
3362 # only be used when explicitly requested
3363 if test "x$enable_dependency_tracking" = xyes; then
3364 continue
3365 else
3366 break
3367 fi
3368 ;;
3369 none) break ;;
3370 esac
3371 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3372 # mode. It turns out that the SunPro C++ compiler does not properly
3373 # handle `-M -o', and we need to detect this.
3374 if depmode=$depmode \
3375 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3376 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3377 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3378 >/dev/null 2>conftest.err &&
3379 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3380 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3381 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3382 # icc doesn't choke on unknown options, it will just issue warnings
3383 # or remarks (even with -Werror). So we grep stderr for any message
3384 # that says an option was ignored or not supported.
3385 # When given -MP, icc 7.0 and 7.1 complain thusly:
3386 # icc: Command line warning: ignoring option '-M'; no argument required
3387 # The diagnosis changed in icc 8.0:
3388 # icc: Command line remark: option '-MP' not supported
3389 if (grep 'ignoring option' conftest.err ||
3390 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3391 am_cv_CC_dependencies_compiler_type=$depmode
3392 break
3393 fi
3394 fi
3395 done
3396
3397 cd ..
3398 rm -rf conftest.dir
3399 else
3400 am_cv_CC_dependencies_compiler_type=none
3401 fi
3402
3403 fi
3404 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3405 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3406 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3407
3408
3409
3410 if
3411 test "x$enable_dependency_tracking" != xno \
3412 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3413 am__fastdepCC_TRUE=
3414 am__fastdepCC_FALSE='#'
3415 else
3416 am__fastdepCC_TRUE='#'
3417 am__fastdepCC_FALSE=
3418 fi
3419
3420
3421 # Check whether --enable-shared or --disable-shared was given.
3422 if test "${enable_shared+set}" = set; then
3423 enableval="$enable_shared"
3424 p=${PACKAGE-default}
3425 case $enableval in
3426 yes) enable_shared=yes ;;
3427 no) enable_shared=no ;;
3428 *)
3429 enable_shared=no
3430 # Look at the argument we got. We use all the common list separators.
3431 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3432 for pkg in $enableval; do
3433 IFS="$lt_save_ifs"
3434 if test "X$pkg" = "X$p"; then
3435 enable_shared=yes
3436 fi
3437 done
3438 IFS="$lt_save_ifs"
3439 ;;
3440 esac
3441 else
3442 enable_shared=yes
3443 fi;
3444
3445 # Check whether --enable-static or --disable-static was given.
3446 if test "${enable_static+set}" = set; then
3447 enableval="$enable_static"
3448 p=${PACKAGE-default}
3449 case $enableval in
3450 yes) enable_static=yes ;;
3451 no) enable_static=no ;;
3452 *)
3453 enable_static=no
3454 # Look at the argument we got. We use all the common list separators.
3455 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3456 for pkg in $enableval; do
3457 IFS="$lt_save_ifs"
3458 if test "X$pkg" = "X$p"; then
3459 enable_static=yes
3460 fi
3461 done
3462 IFS="$lt_save_ifs"
3463 ;;
3464 esac
3465 else
3466 enable_static=yes
3467 fi;
3468
3469 # Check whether --enable-fast-install or --disable-fast-install was given.
3470 if test "${enable_fast_install+set}" = set; then
3471 enableval="$enable_fast_install"
3472 p=${PACKAGE-default}
3473 case $enableval in
3474 yes) enable_fast_install=yes ;;
3475 no) enable_fast_install=no ;;
3476 *)
3477 enable_fast_install=no
3478 # Look at the argument we got. We use all the common list separators.
3479 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3480 for pkg in $enableval; do
3481 IFS="$lt_save_ifs"
3482 if test "X$pkg" = "X$p"; then
3483 enable_fast_install=yes
3484 fi
3485 done
3486 IFS="$lt_save_ifs"
3487 ;;
3488 esac
3489 else
3490 enable_fast_install=yes
3491 fi;
3492
3493 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3494 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3495 if test "${lt_cv_path_SED+set}" = set; then
3496 echo $ECHO_N "(cached) $ECHO_C" >&6
3497 else
3498 # Loop through the user's path and test for sed and gsed.
3499 # Then use that list of sed's as ones to test for truncation.
3500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3501 for as_dir in $PATH
3502 do
3503 IFS=$as_save_IFS
3504 test -z "$as_dir" && as_dir=.
3505 for lt_ac_prog in sed gsed; do
3506 for ac_exec_ext in '' $ac_executable_extensions; do
3507 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3508 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3509 fi
3510 done
3511 done
3512 done
3513 IFS=$as_save_IFS
3514 lt_ac_max=0
3515 lt_ac_count=0
3516 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3517 # along with /bin/sed that truncates output.
3518 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3519 test ! -f $lt_ac_sed && continue
3520 cat /dev/null > conftest.in
3521 lt_ac_count=0
3522 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3523 # Check for GNU sed and select it if it is found.
3524 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3525 lt_cv_path_SED=$lt_ac_sed
3526 break
3527 fi
3528 while true; do
3529 cat conftest.in conftest.in >conftest.tmp
3530 mv conftest.tmp conftest.in
3531 cp conftest.in conftest.nl
3532 echo >>conftest.nl
3533 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3534 cmp -s conftest.out conftest.nl || break
3535 # 10000 chars as input seems more than enough
3536 test $lt_ac_count -gt 10 && break
3537 lt_ac_count=`expr $lt_ac_count + 1`
3538 if test $lt_ac_count -gt $lt_ac_max; then
3539 lt_ac_max=$lt_ac_count
3540 lt_cv_path_SED=$lt_ac_sed
3541 fi
3542 done
3543 done
3544
3545 fi
3546
3547 SED=$lt_cv_path_SED
3548
3549 echo "$as_me:$LINENO: result: $SED" >&5
3550 echo "${ECHO_T}$SED" >&6
3551
3552 echo "$as_me:$LINENO: checking for egrep" >&5
3553 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3554 if test "${ac_cv_prog_egrep+set}" = set; then
3555 echo $ECHO_N "(cached) $ECHO_C" >&6
3556 else
3557 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3558 then ac_cv_prog_egrep='grep -E'
3559 else ac_cv_prog_egrep='egrep'
3560 fi
3561 fi
3562 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3563 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3564 EGREP=$ac_cv_prog_egrep
3565
3566
3567
3568 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3569 if test "${with_gnu_ld+set}" = set; then
3570 withval="$with_gnu_ld"
3571 test "$withval" = no || with_gnu_ld=yes
3572 else
3573 with_gnu_ld=no
3574 fi;
3575 ac_prog=ld
3576 if test "$GCC" = yes; then
3577 # Check if gcc -print-prog-name=ld gives a path.
3578 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3579 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3580 case $host in
3581 *-*-mingw*)
3582 # gcc leaves a trailing carriage return which upsets mingw
3583 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3584 *)
3585 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3586 esac
3587 case $ac_prog in
3588 # Accept absolute paths.
3589 [\\/]* | ?:[\\/]*)
3590 re_direlt='/[^/][^/]*/\.\./'
3591 # Canonicalize the pathname of ld
3592 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3593 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3594 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3595 done
3596 test -z "$LD" && LD="$ac_prog"
3597 ;;
3598 "")
3599 # If it fails, then pretend we aren't using GCC.
3600 ac_prog=ld
3601 ;;
3602 *)
3603 # If it is relative, then search for the first ld in PATH.
3604 with_gnu_ld=unknown
3605 ;;
3606 esac
3607 elif test "$with_gnu_ld" = yes; then
3608 echo "$as_me:$LINENO: checking for GNU ld" >&5
3609 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3610 else
3611 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3612 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3613 fi
3614 if test "${lt_cv_path_LD+set}" = set; then
3615 echo $ECHO_N "(cached) $ECHO_C" >&6
3616 else
3617 if test -z "$LD"; then
3618 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3619 for ac_dir in $PATH; do
3620 IFS="$lt_save_ifs"
3621 test -z "$ac_dir" && ac_dir=.
3622 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3623 lt_cv_path_LD="$ac_dir/$ac_prog"
3624 # Check to see if the program is GNU ld. I'd rather use --version,
3625 # but apparently some variants of GNU ld only accept -v.
3626 # Break only if it was the GNU/non-GNU ld that we prefer.
3627 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3628 *GNU* | *'with BFD'*)
3629 test "$with_gnu_ld" != no && break
3630 ;;
3631 *)
3632 test "$with_gnu_ld" != yes && break
3633 ;;
3634 esac
3635 fi
3636 done
3637 IFS="$lt_save_ifs"
3638 else
3639 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3640 fi
3641 fi
3642
3643 LD="$lt_cv_path_LD"
3644 if test -n "$LD"; then
3645 echo "$as_me:$LINENO: result: $LD" >&5
3646 echo "${ECHO_T}$LD" >&6
3647 else
3648 echo "$as_me:$LINENO: result: no" >&5
3649 echo "${ECHO_T}no" >&6
3650 fi
3651 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3652 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3653 { (exit 1); exit 1; }; }
3654 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3655 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3656 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3657 echo $ECHO_N "(cached) $ECHO_C" >&6
3658 else
3659 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3660 case `$LD -v 2>&1 </dev/null` in
3661 *GNU* | *'with BFD'*)
3662 lt_cv_prog_gnu_ld=yes
3663 ;;
3664 *)
3665 lt_cv_prog_gnu_ld=no
3666 ;;
3667 esac
3668 fi
3669 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3670 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3671 with_gnu_ld=$lt_cv_prog_gnu_ld
3672
3673
3674 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3675 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3676 if test "${lt_cv_ld_reload_flag+set}" = set; then
3677 echo $ECHO_N "(cached) $ECHO_C" >&6
3678 else
3679 lt_cv_ld_reload_flag='-r'
3680 fi
3681 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3682 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3683 reload_flag=$lt_cv_ld_reload_flag
3684 case $reload_flag in
3685 "" | " "*) ;;
3686 *) reload_flag=" $reload_flag" ;;
3687 esac
3688 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3689 case $host_os in
3690 darwin*)
3691 if test "$GCC" = yes; then
3692 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3693 else
3694 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3695 fi
3696 ;;
3697 esac
3698
3699 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3700 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3701 if test "${lt_cv_path_NM+set}" = set; then
3702 echo $ECHO_N "(cached) $ECHO_C" >&6
3703 else
3704 if test -n "$NM"; then
3705 # Let the user override the test.
3706 lt_cv_path_NM="$NM"
3707 else
3708 lt_nm_to_check="${ac_tool_prefix}nm"
3709 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3710 lt_nm_to_check="$lt_nm_to_check nm"
3711 fi
3712 for lt_tmp_nm in $lt_nm_to_check; do
3713 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3714 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3715 IFS="$lt_save_ifs"
3716 test -z "$ac_dir" && ac_dir=.
3717 tmp_nm="$ac_dir/$lt_tmp_nm"
3718 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3719 # Check to see if the nm accepts a BSD-compat flag.
3720 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3721 # nm: unknown option "B" ignored
3722 # Tru64's nm complains that /dev/null is an invalid object file
3723 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3724 */dev/null* | *'Invalid file or object type'*)
3725 lt_cv_path_NM="$tmp_nm -B"
3726 break
3727 ;;
3728 *)
3729 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3730 */dev/null*)
3731 lt_cv_path_NM="$tmp_nm -p"
3732 break
3733 ;;
3734 *)
3735 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3736 continue # so that we can try to find one that supports BSD flags
3737 ;;
3738 esac
3739 ;;
3740 esac
3741 fi
3742 done
3743 IFS="$lt_save_ifs"
3744 done
3745 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3746 fi
3747 fi
3748 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3749 echo "${ECHO_T}$lt_cv_path_NM" >&6
3750 NM="$lt_cv_path_NM"
3751
3752 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3753 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3754 LN_S=$as_ln_s
3755 if test "$LN_S" = "ln -s"; then
3756 echo "$as_me:$LINENO: result: yes" >&5
3757 echo "${ECHO_T}yes" >&6
3758 else
3759 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3760 echo "${ECHO_T}no, using $LN_S" >&6
3761 fi
3762
3763 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3764 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3765 if test "${lt_cv_deplibs_check_method+set}" = set; then
3766 echo $ECHO_N "(cached) $ECHO_C" >&6
3767 else
3768 lt_cv_file_magic_cmd='$MAGIC_CMD'
3769 lt_cv_file_magic_test_file=
3770 lt_cv_deplibs_check_method='unknown'
3771 # Need to set the preceding variable on all platforms that support
3772 # interlibrary dependencies.
3773 # 'none' -- dependencies not supported.
3774 # `unknown' -- same as none, but documents that we really don't know.
3775 # 'pass_all' -- all dependencies passed with no checks.
3776 # 'test_compile' -- check by making test program.
3777 # 'file_magic [[regex]]' -- check by looking for files in library path
3778 # which responds to the $file_magic_cmd with a given extended regex.
3779 # If you have `file' or equivalent on your system and you're not sure
3780 # whether `pass_all' will *always* work, you probably want this one.
3781
3782 case $host_os in
3783 aix4* | aix5*)
3784 lt_cv_deplibs_check_method=pass_all
3785 ;;
3786
3787 beos*)
3788 lt_cv_deplibs_check_method=pass_all
3789 ;;
3790
3791 bsdi[45]*)
3792 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3793 lt_cv_file_magic_cmd='/usr/bin/file -L'
3794 lt_cv_file_magic_test_file=/shlib/libc.so
3795 ;;
3796
3797 cygwin*)
3798 # func_win32_libid is a shell function defined in ltmain.sh
3799 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3800 lt_cv_file_magic_cmd='func_win32_libid'
3801 ;;
3802
3803 mingw* | pw32*)
3804 # Base MSYS/MinGW do not provide the 'file' command needed by
3805 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3806 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3807 lt_cv_file_magic_cmd='$OBJDUMP -f'
3808 ;;
3809
3810 darwin* | rhapsody*)
3811 lt_cv_deplibs_check_method=pass_all
3812 ;;
3813
3814 freebsd* | kfreebsd*-gnu | dragonfly*)
3815 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3816 case $host_cpu in
3817 i*86 )
3818 # Not sure whether the presence of OpenBSD here was a mistake.
3819 # Let's accept both of them until this is cleared up.
3820 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3821 lt_cv_file_magic_cmd=/usr/bin/file
3822 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3823 ;;
3824 esac
3825 else
3826 lt_cv_deplibs_check_method=pass_all
3827 fi
3828 ;;
3829
3830 gnu*)
3831 lt_cv_deplibs_check_method=pass_all
3832 ;;
3833
3834 hpux10.20* | hpux11*)
3835 lt_cv_file_magic_cmd=/usr/bin/file
3836 case $host_cpu in
3837 ia64*)
3838 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3839 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3840 ;;
3841 hppa*64*)
3842 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
3843 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3844 ;;
3845 *)
3846 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3847 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3848 ;;
3849 esac
3850 ;;
3851
3852 interix3*)
3853 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3854 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3855 ;;
3856
3857 irix5* | irix6* | nonstopux*)
3858 case $LD in
3859 *-32|*"-32 ") libmagic=32-bit;;
3860 *-n32|*"-n32 ") libmagic=N32;;
3861 *-64|*"-64 ") libmagic=64-bit;;
3862 *) libmagic=never-match;;
3863 esac
3864 lt_cv_deplibs_check_method=pass_all
3865 ;;
3866
3867 # This must be Linux ELF.
3868 linux*)
3869 lt_cv_deplibs_check_method=pass_all
3870 ;;
3871
3872 netbsd*)
3873 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3874 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3875 else
3876 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3877 fi
3878 ;;
3879
3880 newos6*)
3881 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3882 lt_cv_file_magic_cmd=/usr/bin/file
3883 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3884 ;;
3885
3886 nto-qnx*)
3887 lt_cv_deplibs_check_method=unknown
3888 ;;
3889
3890 openbsd*)
3891 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3892 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3893 else
3894 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3895 fi
3896 ;;
3897
3898 osf3* | osf4* | osf5*)
3899 lt_cv_deplibs_check_method=pass_all
3900 ;;
3901
3902 solaris*)
3903 lt_cv_deplibs_check_method=pass_all
3904 ;;
3905
3906 sysv4 | sysv4.3*)
3907 case $host_vendor in
3908 motorola)
3909 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
3910 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3911 ;;
3912 ncr)
3913 lt_cv_deplibs_check_method=pass_all
3914 ;;
3915 sequent)
3916 lt_cv_file_magic_cmd='/bin/file'
3917 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3918 ;;
3919 sni)
3920 lt_cv_file_magic_cmd='/bin/file'
3921 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3922 lt_cv_file_magic_test_file=/lib/libc.so
3923 ;;
3924 siemens)
3925 lt_cv_deplibs_check_method=pass_all
3926 ;;
3927 pc)
3928 lt_cv_deplibs_check_method=pass_all
3929 ;;
3930 esac
3931 ;;
3932
3933 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3934 lt_cv_deplibs_check_method=pass_all
3935 ;;
3936 esac
3937
3938 fi
3939 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3940 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3941 file_magic_cmd=$lt_cv_file_magic_cmd
3942 deplibs_check_method=$lt_cv_deplibs_check_method
3943 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3944
3945
3946
3947
3948 # If no C compiler was specified, use CC.
3949 LTCC=${LTCC-"$CC"}
3950
3951 # If no C compiler flags were specified, use CFLAGS.
3952 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3953
3954 # Allow CC to be a program name with arguments.
3955 compiler=$CC
3956
3957
3958 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3959 if test "${enable_libtool_lock+set}" = set; then
3960 enableval="$enable_libtool_lock"
3961
3962 fi;
3963 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3964
3965 # Some flags need to be propagated to the compiler or linker for good
3966 # libtool support.
3967 case $host in
3968 ia64-*-hpux*)
3969 # Find out which ABI we are using.
3970 echo 'int i;' > conftest.$ac_ext
3971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3972 (eval $ac_compile) 2>&5
3973 ac_status=$?
3974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3975 (exit $ac_status); }; then
3976 case `/usr/bin/file conftest.$ac_objext` in
3977 *ELF-32*)
3978 HPUX_IA64_MODE="32"
3979 ;;
3980 *ELF-64*)
3981 HPUX_IA64_MODE="64"
3982 ;;
3983 esac
3984 fi
3985 rm -rf conftest*
3986 ;;
3987 *-*-irix6*)
3988 # Find out which ABI we are using.
3989 echo '#line 3989 "configure"' > conftest.$ac_ext
3990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3991 (eval $ac_compile) 2>&5
3992 ac_status=$?
3993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994 (exit $ac_status); }; then
3995 if test "$lt_cv_prog_gnu_ld" = yes; then
3996 case `/usr/bin/file conftest.$ac_objext` in
3997 *32-bit*)
3998 LD="${LD-ld} -melf32bsmip"
3999 ;;
4000 *N32*)
4001 LD="${LD-ld} -melf32bmipn32"
4002 ;;
4003 *64-bit*)
4004 LD="${LD-ld} -melf64bmip"
4005 ;;
4006 esac
4007 else
4008 case `/usr/bin/file conftest.$ac_objext` in
4009 *32-bit*)
4010 LD="${LD-ld} -32"
4011 ;;
4012 *N32*)
4013 LD="${LD-ld} -n32"
4014 ;;
4015 *64-bit*)
4016 LD="${LD-ld} -64"
4017 ;;
4018 esac
4019 fi
4020 fi
4021 rm -rf conftest*
4022 ;;
4023
4024 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4025 # Find out which ABI we are using.
4026 echo 'int i;' > conftest.$ac_ext
4027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4028 (eval $ac_compile) 2>&5
4029 ac_status=$?
4030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031 (exit $ac_status); }; then
4032 case `/usr/bin/file conftest.o` in
4033 *32-bit*)
4034 case $host in
4035 x86_64-*linux*)
4036 LD="${LD-ld} -m elf_i386"
4037 ;;
4038 ppc64-*linux*|powerpc64-*linux*)
4039 LD="${LD-ld} -m elf32ppclinux"
4040 ;;
4041 s390x-*linux*)
4042 LD="${LD-ld} -m elf_s390"
4043 ;;
4044 sparc64-*linux*)
4045 LD="${LD-ld} -m elf32_sparc"
4046 ;;
4047 esac
4048 ;;
4049 *64-bit*)
4050 case $host in
4051 x86_64-*linux*)
4052 LD="${LD-ld} -m elf_x86_64"
4053 ;;
4054 ppc*-*linux*|powerpc*-*linux*)
4055 LD="${LD-ld} -m elf64ppc"
4056 ;;
4057 s390*-*linux*)
4058 LD="${LD-ld} -m elf64_s390"
4059 ;;
4060 sparc*-*linux*)
4061 LD="${LD-ld} -m elf64_sparc"
4062 ;;
4063 esac
4064 ;;
4065 esac
4066 fi
4067 rm -rf conftest*
4068 ;;
4069
4070 *-*-sco3.2v5*)
4071 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4072 SAVE_CFLAGS="$CFLAGS"
4073 CFLAGS="$CFLAGS -belf"
4074 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4075 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4076 if test "${lt_cv_cc_needs_belf+set}" = set; then
4077 echo $ECHO_N "(cached) $ECHO_C" >&6
4078 else
4079 ac_ext=c
4080 ac_cpp='$CPP $CPPFLAGS'
4081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4084
4085 cat >conftest.$ac_ext <<_ACEOF
4086 /* confdefs.h. */
4087 _ACEOF
4088 cat confdefs.h >>conftest.$ac_ext
4089 cat >>conftest.$ac_ext <<_ACEOF
4090 /* end confdefs.h. */
4091
4092 int
4093 main ()
4094 {
4095
4096 ;
4097 return 0;
4098 }
4099 _ACEOF
4100 rm -f conftest.$ac_objext conftest$ac_exeext
4101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4102 (eval $ac_link) 2>conftest.er1
4103 ac_status=$?
4104 grep -v '^ *+' conftest.er1 >conftest.err
4105 rm -f conftest.er1
4106 cat conftest.err >&5
4107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4108 (exit $ac_status); } &&
4109 { ac_try='test -z "$ac_c_werror_flag"
4110 || test ! -s conftest.err'
4111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4112 (eval $ac_try) 2>&5
4113 ac_status=$?
4114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4115 (exit $ac_status); }; } &&
4116 { ac_try='test -s conftest$ac_exeext'
4117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4118 (eval $ac_try) 2>&5
4119 ac_status=$?
4120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4121 (exit $ac_status); }; }; then
4122 lt_cv_cc_needs_belf=yes
4123 else
4124 echo "$as_me: failed program was:" >&5
4125 sed 's/^/| /' conftest.$ac_ext >&5
4126
4127 lt_cv_cc_needs_belf=no
4128 fi
4129 rm -f conftest.err conftest.$ac_objext \
4130 conftest$ac_exeext conftest.$ac_ext
4131 ac_ext=c
4132 ac_cpp='$CPP $CPPFLAGS'
4133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4136
4137 fi
4138 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4139 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4140 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4141 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4142 CFLAGS="$SAVE_CFLAGS"
4143 fi
4144 ;;
4145 sparc*-*solaris*)
4146 # Find out which ABI we are using.
4147 echo 'int i;' > conftest.$ac_ext
4148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4149 (eval $ac_compile) 2>&5
4150 ac_status=$?
4151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4152 (exit $ac_status); }; then
4153 case `/usr/bin/file conftest.o` in
4154 *64-bit*)
4155 case $lt_cv_prog_gnu_ld in
4156 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4157 *) LD="${LD-ld} -64" ;;
4158 esac
4159 ;;
4160 esac
4161 fi
4162 rm -rf conftest*
4163 ;;
4164
4165
4166 esac
4167
4168 need_locks="$enable_libtool_lock"
4169
4170
4171 ac_ext=c
4172 ac_cpp='$CPP $CPPFLAGS'
4173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4176 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4177 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4178 # On Suns, sometimes $CPP names a directory.
4179 if test -n "$CPP" && test -d "$CPP"; then
4180 CPP=
4181 fi
4182 if test -z "$CPP"; then
4183 if test "${ac_cv_prog_CPP+set}" = set; then
4184 echo $ECHO_N "(cached) $ECHO_C" >&6
4185 else
4186 # Double quotes because CPP needs to be expanded
4187 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4188 do
4189 ac_preproc_ok=false
4190 for ac_c_preproc_warn_flag in '' yes
4191 do
4192 # Use a header file that comes with gcc, so configuring glibc
4193 # with a fresh cross-compiler works.
4194 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4195 # <limits.h> exists even on freestanding compilers.
4196 # On the NeXT, cc -E runs the code through the compiler's parser,
4197 # not just through cpp. "Syntax error" is here to catch this case.
4198 cat >conftest.$ac_ext <<_ACEOF
4199 /* confdefs.h. */
4200 _ACEOF
4201 cat confdefs.h >>conftest.$ac_ext
4202 cat >>conftest.$ac_ext <<_ACEOF
4203 /* end confdefs.h. */
4204 #ifdef __STDC__
4205 # include <limits.h>
4206 #else
4207 # include <assert.h>
4208 #endif
4209 Syntax error
4210 _ACEOF
4211 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4212 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4213 ac_status=$?
4214 grep -v '^ *+' conftest.er1 >conftest.err
4215 rm -f conftest.er1
4216 cat conftest.err >&5
4217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4218 (exit $ac_status); } >/dev/null; then
4219 if test -s conftest.err; then
4220 ac_cpp_err=$ac_c_preproc_warn_flag
4221 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4222 else
4223 ac_cpp_err=
4224 fi
4225 else
4226 ac_cpp_err=yes
4227 fi
4228 if test -z "$ac_cpp_err"; then
4229 :
4230 else
4231 echo "$as_me: failed program was:" >&5
4232 sed 's/^/| /' conftest.$ac_ext >&5
4233
4234 # Broken: fails on valid input.
4235 continue
4236 fi
4237 rm -f conftest.err conftest.$ac_ext
4238
4239 # OK, works on sane cases. Now check whether non-existent headers
4240 # can be detected and how.
4241 cat >conftest.$ac_ext <<_ACEOF
4242 /* confdefs.h. */
4243 _ACEOF
4244 cat confdefs.h >>conftest.$ac_ext
4245 cat >>conftest.$ac_ext <<_ACEOF
4246 /* end confdefs.h. */
4247 #include <ac_nonexistent.h>
4248 _ACEOF
4249 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4250 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4251 ac_status=$?
4252 grep -v '^ *+' conftest.er1 >conftest.err
4253 rm -f conftest.er1
4254 cat conftest.err >&5
4255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256 (exit $ac_status); } >/dev/null; then
4257 if test -s conftest.err; then
4258 ac_cpp_err=$ac_c_preproc_warn_flag
4259 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4260 else
4261 ac_cpp_err=
4262 fi
4263 else
4264 ac_cpp_err=yes
4265 fi
4266 if test -z "$ac_cpp_err"; then
4267 # Broken: success on invalid input.
4268 continue
4269 else
4270 echo "$as_me: failed program was:" >&5
4271 sed 's/^/| /' conftest.$ac_ext >&5
4272
4273 # Passes both tests.
4274 ac_preproc_ok=:
4275 break
4276 fi
4277 rm -f conftest.err conftest.$ac_ext
4278
4279 done
4280 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4281 rm -f conftest.err conftest.$ac_ext
4282 if $ac_preproc_ok; then
4283 break
4284 fi
4285
4286 done
4287 ac_cv_prog_CPP=$CPP
4288
4289 fi
4290 CPP=$ac_cv_prog_CPP
4291 else
4292 ac_cv_prog_CPP=$CPP
4293 fi
4294 echo "$as_me:$LINENO: result: $CPP" >&5
4295 echo "${ECHO_T}$CPP" >&6
4296 ac_preproc_ok=false
4297 for ac_c_preproc_warn_flag in '' yes
4298 do
4299 # Use a header file that comes with gcc, so configuring glibc
4300 # with a fresh cross-compiler works.
4301 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4302 # <limits.h> exists even on freestanding compilers.
4303 # On the NeXT, cc -E runs the code through the compiler's parser,
4304 # not just through cpp. "Syntax error" is here to catch this case.
4305 cat >conftest.$ac_ext <<_ACEOF
4306 /* confdefs.h. */
4307 _ACEOF
4308 cat confdefs.h >>conftest.$ac_ext
4309 cat >>conftest.$ac_ext <<_ACEOF
4310 /* end confdefs.h. */
4311 #ifdef __STDC__
4312 # include <limits.h>
4313 #else
4314 # include <assert.h>
4315 #endif
4316 Syntax error
4317 _ACEOF
4318 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4319 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4320 ac_status=$?
4321 grep -v '^ *+' conftest.er1 >conftest.err
4322 rm -f conftest.er1
4323 cat conftest.err >&5
4324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325 (exit $ac_status); } >/dev/null; then
4326 if test -s conftest.err; then
4327 ac_cpp_err=$ac_c_preproc_warn_flag
4328 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4329 else
4330 ac_cpp_err=
4331 fi
4332 else
4333 ac_cpp_err=yes
4334 fi
4335 if test -z "$ac_cpp_err"; then
4336 :
4337 else
4338 echo "$as_me: failed program was:" >&5
4339 sed 's/^/| /' conftest.$ac_ext >&5
4340
4341 # Broken: fails on valid input.
4342 continue
4343 fi
4344 rm -f conftest.err conftest.$ac_ext
4345
4346 # OK, works on sane cases. Now check whether non-existent headers
4347 # can be detected and how.
4348 cat >conftest.$ac_ext <<_ACEOF
4349 /* confdefs.h. */
4350 _ACEOF
4351 cat confdefs.h >>conftest.$ac_ext
4352 cat >>conftest.$ac_ext <<_ACEOF
4353 /* end confdefs.h. */
4354 #include <ac_nonexistent.h>
4355 _ACEOF
4356 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4357 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4358 ac_status=$?
4359 grep -v '^ *+' conftest.er1 >conftest.err
4360 rm -f conftest.er1
4361 cat conftest.err >&5
4362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363 (exit $ac_status); } >/dev/null; then
4364 if test -s conftest.err; then
4365 ac_cpp_err=$ac_c_preproc_warn_flag
4366 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4367 else
4368 ac_cpp_err=
4369 fi
4370 else
4371 ac_cpp_err=yes
4372 fi
4373 if test -z "$ac_cpp_err"; then
4374 # Broken: success on invalid input.
4375 continue
4376 else
4377 echo "$as_me: failed program was:" >&5
4378 sed 's/^/| /' conftest.$ac_ext >&5
4379
4380 # Passes both tests.
4381 ac_preproc_ok=:
4382 break
4383 fi
4384 rm -f conftest.err conftest.$ac_ext
4385
4386 done
4387 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4388 rm -f conftest.err conftest.$ac_ext
4389 if $ac_preproc_ok; then
4390 :
4391 else
4392 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4393 See \`config.log' for more details." >&5
4394 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4395 See \`config.log' for more details." >&2;}
4396 { (exit 1); exit 1; }; }
4397 fi
4398
4399 ac_ext=c
4400 ac_cpp='$CPP $CPPFLAGS'
4401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4404
4405
4406 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4407 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4408 if test "${ac_cv_header_stdc+set}" = set; then
4409 echo $ECHO_N "(cached) $ECHO_C" >&6
4410 else
4411 cat >conftest.$ac_ext <<_ACEOF
4412 /* confdefs.h. */
4413 _ACEOF
4414 cat confdefs.h >>conftest.$ac_ext
4415 cat >>conftest.$ac_ext <<_ACEOF
4416 /* end confdefs.h. */
4417 #include <stdlib.h>
4418 #include <stdarg.h>
4419 #include <string.h>
4420 #include <float.h>
4421
4422 int
4423 main ()
4424 {
4425
4426 ;
4427 return 0;
4428 }
4429 _ACEOF
4430 rm -f conftest.$ac_objext
4431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4432 (eval $ac_compile) 2>conftest.er1
4433 ac_status=$?
4434 grep -v '^ *+' conftest.er1 >conftest.err
4435 rm -f conftest.er1
4436 cat conftest.err >&5
4437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4438 (exit $ac_status); } &&
4439 { ac_try='test -z "$ac_c_werror_flag"
4440 || test ! -s conftest.err'
4441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4442 (eval $ac_try) 2>&5
4443 ac_status=$?
4444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445 (exit $ac_status); }; } &&
4446 { ac_try='test -s conftest.$ac_objext'
4447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4448 (eval $ac_try) 2>&5
4449 ac_status=$?
4450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451 (exit $ac_status); }; }; then
4452 ac_cv_header_stdc=yes
4453 else
4454 echo "$as_me: failed program was:" >&5
4455 sed 's/^/| /' conftest.$ac_ext >&5
4456
4457 ac_cv_header_stdc=no
4458 fi
4459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4460
4461 if test $ac_cv_header_stdc = yes; then
4462 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4463 cat >conftest.$ac_ext <<_ACEOF
4464 /* confdefs.h. */
4465 _ACEOF
4466 cat confdefs.h >>conftest.$ac_ext
4467 cat >>conftest.$ac_ext <<_ACEOF
4468 /* end confdefs.h. */
4469 #include <string.h>
4470
4471 _ACEOF
4472 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4473 $EGREP "memchr" >/dev/null 2>&1; then
4474 :
4475 else
4476 ac_cv_header_stdc=no
4477 fi
4478 rm -f conftest*
4479
4480 fi
4481
4482 if test $ac_cv_header_stdc = yes; then
4483 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4484 cat >conftest.$ac_ext <<_ACEOF
4485 /* confdefs.h. */
4486 _ACEOF
4487 cat confdefs.h >>conftest.$ac_ext
4488 cat >>conftest.$ac_ext <<_ACEOF
4489 /* end confdefs.h. */
4490 #include <stdlib.h>
4491
4492 _ACEOF
4493 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4494 $EGREP "free" >/dev/null 2>&1; then
4495 :
4496 else
4497 ac_cv_header_stdc=no
4498 fi
4499 rm -f conftest*
4500
4501 fi
4502
4503 if test $ac_cv_header_stdc = yes; then
4504 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4505 if test "$cross_compiling" = yes; then
4506 :
4507 else
4508 cat >conftest.$ac_ext <<_ACEOF
4509 /* confdefs.h. */
4510 _ACEOF
4511 cat confdefs.h >>conftest.$ac_ext
4512 cat >>conftest.$ac_ext <<_ACEOF
4513 /* end confdefs.h. */
4514 #include <ctype.h>
4515 #if ((' ' & 0x0FF) == 0x020)
4516 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4517 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4518 #else
4519 # define ISLOWER(c) \
4520 (('a' <= (c) && (c) <= 'i') \
4521 || ('j' <= (c) && (c) <= 'r') \
4522 || ('s' <= (c) && (c) <= 'z'))
4523 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4524 #endif
4525
4526 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4527 int
4528 main ()
4529 {
4530 int i;
4531 for (i = 0; i < 256; i++)
4532 if (XOR (islower (i), ISLOWER (i))
4533 || toupper (i) != TOUPPER (i))
4534 exit(2);
4535 exit (0);
4536 }
4537 _ACEOF
4538 rm -f conftest$ac_exeext
4539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4540 (eval $ac_link) 2>&5
4541 ac_status=$?
4542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4545 (eval $ac_try) 2>&5
4546 ac_status=$?
4547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548 (exit $ac_status); }; }; then
4549 :
4550 else
4551 echo "$as_me: program exited with status $ac_status" >&5
4552 echo "$as_me: failed program was:" >&5
4553 sed 's/^/| /' conftest.$ac_ext >&5
4554
4555 ( exit $ac_status )
4556 ac_cv_header_stdc=no
4557 fi
4558 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4559 fi
4560 fi
4561 fi
4562 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4563 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4564 if test $ac_cv_header_stdc = yes; then
4565
4566 cat >>confdefs.h <<\_ACEOF
4567 #define STDC_HEADERS 1
4568 _ACEOF
4569
4570 fi
4571
4572 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4583 inttypes.h stdint.h unistd.h
4584 do
4585 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4586 echo "$as_me:$LINENO: checking for $ac_header" >&5
4587 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4588 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4589 echo $ECHO_N "(cached) $ECHO_C" >&6
4590 else
4591 cat >conftest.$ac_ext <<_ACEOF
4592 /* confdefs.h. */
4593 _ACEOF
4594 cat confdefs.h >>conftest.$ac_ext
4595 cat >>conftest.$ac_ext <<_ACEOF
4596 /* end confdefs.h. */
4597 $ac_includes_default
4598
4599 #include <$ac_header>
4600 _ACEOF
4601 rm -f conftest.$ac_objext
4602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4603 (eval $ac_compile) 2>conftest.er1
4604 ac_status=$?
4605 grep -v '^ *+' conftest.er1 >conftest.err
4606 rm -f conftest.er1
4607 cat conftest.err >&5
4608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609 (exit $ac_status); } &&
4610 { ac_try='test -z "$ac_c_werror_flag"
4611 || test ! -s conftest.err'
4612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4613 (eval $ac_try) 2>&5
4614 ac_status=$?
4615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616 (exit $ac_status); }; } &&
4617 { ac_try='test -s conftest.$ac_objext'
4618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4619 (eval $ac_try) 2>&5
4620 ac_status=$?
4621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622 (exit $ac_status); }; }; then
4623 eval "$as_ac_Header=yes"
4624 else
4625 echo "$as_me: failed program was:" >&5
4626 sed 's/^/| /' conftest.$ac_ext >&5
4627
4628 eval "$as_ac_Header=no"
4629 fi
4630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4631 fi
4632 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4633 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4634 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4635 cat >>confdefs.h <<_ACEOF
4636 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4637 _ACEOF
4638
4639 fi
4640
4641 done
4642
4643
4644
4645 for ac_header in dlfcn.h
4646 do
4647 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4648 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4649 echo "$as_me:$LINENO: checking for $ac_header" >&5
4650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4651 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4652 echo $ECHO_N "(cached) $ECHO_C" >&6
4653 fi
4654 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4655 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4656 else
4657 # Is the header compilable?
4658 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4659 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4660 cat >conftest.$ac_ext <<_ACEOF
4661 /* confdefs.h. */
4662 _ACEOF
4663 cat confdefs.h >>conftest.$ac_ext
4664 cat >>conftest.$ac_ext <<_ACEOF
4665 /* end confdefs.h. */
4666 $ac_includes_default
4667 #include <$ac_header>
4668 _ACEOF
4669 rm -f conftest.$ac_objext
4670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4671 (eval $ac_compile) 2>conftest.er1
4672 ac_status=$?
4673 grep -v '^ *+' conftest.er1 >conftest.err
4674 rm -f conftest.er1
4675 cat conftest.err >&5
4676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677 (exit $ac_status); } &&
4678 { ac_try='test -z "$ac_c_werror_flag"
4679 || test ! -s conftest.err'
4680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4681 (eval $ac_try) 2>&5
4682 ac_status=$?
4683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4684 (exit $ac_status); }; } &&
4685 { ac_try='test -s conftest.$ac_objext'
4686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4687 (eval $ac_try) 2>&5
4688 ac_status=$?
4689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690 (exit $ac_status); }; }; then
4691 ac_header_compiler=yes
4692 else
4693 echo "$as_me: failed program was:" >&5
4694 sed 's/^/| /' conftest.$ac_ext >&5
4695
4696 ac_header_compiler=no
4697 fi
4698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4699 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4700 echo "${ECHO_T}$ac_header_compiler" >&6
4701
4702 # Is the header present?
4703 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4704 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4705 cat >conftest.$ac_ext <<_ACEOF
4706 /* confdefs.h. */
4707 _ACEOF
4708 cat confdefs.h >>conftest.$ac_ext
4709 cat >>conftest.$ac_ext <<_ACEOF
4710 /* end confdefs.h. */
4711 #include <$ac_header>
4712 _ACEOF
4713 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4714 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4715 ac_status=$?
4716 grep -v '^ *+' conftest.er1 >conftest.err
4717 rm -f conftest.er1
4718 cat conftest.err >&5
4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); } >/dev/null; then
4721 if test -s conftest.err; then
4722 ac_cpp_err=$ac_c_preproc_warn_flag
4723 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4724 else
4725 ac_cpp_err=
4726 fi
4727 else
4728 ac_cpp_err=yes
4729 fi
4730 if test -z "$ac_cpp_err"; then
4731 ac_header_preproc=yes
4732 else
4733 echo "$as_me: failed program was:" >&5
4734 sed 's/^/| /' conftest.$ac_ext >&5
4735
4736 ac_header_preproc=no
4737 fi
4738 rm -f conftest.err conftest.$ac_ext
4739 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4740 echo "${ECHO_T}$ac_header_preproc" >&6
4741
4742 # So? What about this header?
4743 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4744 yes:no: )
4745 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4746 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4747 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4748 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4749 ac_header_preproc=yes
4750 ;;
4751 no:yes:* )
4752 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4753 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4754 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4755 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4756 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4757 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4758 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4759 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4760 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4761 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4762 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4763 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4764 (
4765 cat <<\_ASBOX
4766 ## ------------------------------------------ ##
4767 ## Report this to the AC_PACKAGE_NAME lists. ##
4768 ## ------------------------------------------ ##
4769 _ASBOX
4770 ) |
4771 sed "s/^/$as_me: WARNING: /" >&2
4772 ;;
4773 esac
4774 echo "$as_me:$LINENO: checking for $ac_header" >&5
4775 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4776 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4777 echo $ECHO_N "(cached) $ECHO_C" >&6
4778 else
4779 eval "$as_ac_Header=\$ac_header_preproc"
4780 fi
4781 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4782 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4783
4784 fi
4785 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4786 cat >>confdefs.h <<_ACEOF
4787 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4788 _ACEOF
4789
4790 fi
4791
4792 done
4793
4794 ac_ext=cc
4795 ac_cpp='$CXXCPP $CPPFLAGS'
4796 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4797 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4798 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4799 if test -n "$ac_tool_prefix"; then
4800 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4801 do
4802 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4803 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4804 echo "$as_me:$LINENO: checking for $ac_word" >&5
4805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4806 if test "${ac_cv_prog_CXX+set}" = set; then
4807 echo $ECHO_N "(cached) $ECHO_C" >&6
4808 else
4809 if test -n "$CXX"; then
4810 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4811 else
4812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4813 for as_dir in $PATH
4814 do
4815 IFS=$as_save_IFS
4816 test -z "$as_dir" && as_dir=.
4817 for ac_exec_ext in '' $ac_executable_extensions; do
4818 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4819 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4821 break 2
4822 fi
4823 done
4824 done
4825
4826 fi
4827 fi
4828 CXX=$ac_cv_prog_CXX
4829 if test -n "$CXX"; then
4830 echo "$as_me:$LINENO: result: $CXX" >&5
4831 echo "${ECHO_T}$CXX" >&6
4832 else
4833 echo "$as_me:$LINENO: result: no" >&5
4834 echo "${ECHO_T}no" >&6
4835 fi
4836
4837 test -n "$CXX" && break
4838 done
4839 fi
4840 if test -z "$CXX"; then
4841 ac_ct_CXX=$CXX
4842 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4843 do
4844 # Extract the first word of "$ac_prog", so it can be a program name with args.
4845 set dummy $ac_prog; ac_word=$2
4846 echo "$as_me:$LINENO: checking for $ac_word" >&5
4847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4848 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4849 echo $ECHO_N "(cached) $ECHO_C" >&6
4850 else
4851 if test -n "$ac_ct_CXX"; then
4852 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4853 else
4854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4855 for as_dir in $PATH
4856 do
4857 IFS=$as_save_IFS
4858 test -z "$as_dir" && as_dir=.
4859 for ac_exec_ext in '' $ac_executable_extensions; do
4860 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4861 ac_cv_prog_ac_ct_CXX="$ac_prog"
4862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4863 break 2
4864 fi
4865 done
4866 done
4867
4868 fi
4869 fi
4870 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4871 if test -n "$ac_ct_CXX"; then
4872 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4873 echo "${ECHO_T}$ac_ct_CXX" >&6
4874 else
4875 echo "$as_me:$LINENO: result: no" >&5
4876 echo "${ECHO_T}no" >&6
4877 fi
4878
4879 test -n "$ac_ct_CXX" && break
4880 done
4881 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4882
4883 CXX=$ac_ct_CXX
4884 fi
4885
4886
4887 # Provide some information about the compiler.
4888 echo "$as_me:$LINENO:" \
4889 "checking for C++ compiler version" >&5
4890 ac_compiler=`set X $ac_compile; echo $2`
4891 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4892 (eval $ac_compiler --version </dev/null >&5) 2>&5
4893 ac_status=$?
4894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895 (exit $ac_status); }
4896 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4897 (eval $ac_compiler -v </dev/null >&5) 2>&5
4898 ac_status=$?
4899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4900 (exit $ac_status); }
4901 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4902 (eval $ac_compiler -V </dev/null >&5) 2>&5
4903 ac_status=$?
4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905 (exit $ac_status); }
4906
4907 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4908 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4909 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4910 echo $ECHO_N "(cached) $ECHO_C" >&6
4911 else
4912 cat >conftest.$ac_ext <<_ACEOF
4913 /* confdefs.h. */
4914 _ACEOF
4915 cat confdefs.h >>conftest.$ac_ext
4916 cat >>conftest.$ac_ext <<_ACEOF
4917 /* end confdefs.h. */
4918
4919 int
4920 main ()
4921 {
4922 #ifndef __GNUC__
4923 choke me
4924 #endif
4925
4926 ;
4927 return 0;
4928 }
4929 _ACEOF
4930 rm -f conftest.$ac_objext
4931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4932 (eval $ac_compile) 2>conftest.er1
4933 ac_status=$?
4934 grep -v '^ *+' conftest.er1 >conftest.err
4935 rm -f conftest.er1
4936 cat conftest.err >&5
4937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938 (exit $ac_status); } &&
4939 { ac_try='test -z "$ac_cxx_werror_flag"
4940 || test ! -s conftest.err'
4941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4942 (eval $ac_try) 2>&5
4943 ac_status=$?
4944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945 (exit $ac_status); }; } &&
4946 { ac_try='test -s conftest.$ac_objext'
4947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4948 (eval $ac_try) 2>&5
4949 ac_status=$?
4950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951 (exit $ac_status); }; }; then
4952 ac_compiler_gnu=yes
4953 else
4954 echo "$as_me: failed program was:" >&5
4955 sed 's/^/| /' conftest.$ac_ext >&5
4956
4957 ac_compiler_gnu=no
4958 fi
4959 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4960 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4961
4962 fi
4963 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4964 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4965 GXX=`test $ac_compiler_gnu = yes && echo yes`
4966 ac_test_CXXFLAGS=${CXXFLAGS+set}
4967 ac_save_CXXFLAGS=$CXXFLAGS
4968 CXXFLAGS="-g"
4969 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4970 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4971 if test "${ac_cv_prog_cxx_g+set}" = set; then
4972 echo $ECHO_N "(cached) $ECHO_C" >&6
4973 else
4974 cat >conftest.$ac_ext <<_ACEOF
4975 /* confdefs.h. */
4976 _ACEOF
4977 cat confdefs.h >>conftest.$ac_ext
4978 cat >>conftest.$ac_ext <<_ACEOF
4979 /* end confdefs.h. */
4980
4981 int
4982 main ()
4983 {
4984
4985 ;
4986 return 0;
4987 }
4988 _ACEOF
4989 rm -f conftest.$ac_objext
4990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4991 (eval $ac_compile) 2>conftest.er1
4992 ac_status=$?
4993 grep -v '^ *+' conftest.er1 >conftest.err
4994 rm -f conftest.er1
4995 cat conftest.err >&5
4996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997 (exit $ac_status); } &&
4998 { ac_try='test -z "$ac_cxx_werror_flag"
4999 || test ! -s conftest.err'
5000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5001 (eval $ac_try) 2>&5
5002 ac_status=$?
5003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004 (exit $ac_status); }; } &&
5005 { ac_try='test -s conftest.$ac_objext'
5006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5007 (eval $ac_try) 2>&5
5008 ac_status=$?
5009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010 (exit $ac_status); }; }; then
5011 ac_cv_prog_cxx_g=yes
5012 else
5013 echo "$as_me: failed program was:" >&5
5014 sed 's/^/| /' conftest.$ac_ext >&5
5015
5016 ac_cv_prog_cxx_g=no
5017 fi
5018 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5019 fi
5020 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5021 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5022 if test "$ac_test_CXXFLAGS" = set; then
5023 CXXFLAGS=$ac_save_CXXFLAGS
5024 elif test $ac_cv_prog_cxx_g = yes; then
5025 if test "$GXX" = yes; then
5026 CXXFLAGS="-g -O2"
5027 else
5028 CXXFLAGS="-g"
5029 fi
5030 else
5031 if test "$GXX" = yes; then
5032 CXXFLAGS="-O2"
5033 else
5034 CXXFLAGS=
5035 fi
5036 fi
5037 for ac_declaration in \
5038 '' \
5039 'extern "C" void std::exit (int) throw (); using std::exit;' \
5040 'extern "C" void std::exit (int); using std::exit;' \
5041 'extern "C" void exit (int) throw ();' \
5042 'extern "C" void exit (int);' \
5043 'void exit (int);'
5044 do
5045 cat >conftest.$ac_ext <<_ACEOF
5046 /* confdefs.h. */
5047 _ACEOF
5048 cat confdefs.h >>conftest.$ac_ext
5049 cat >>conftest.$ac_ext <<_ACEOF
5050 /* end confdefs.h. */
5051 $ac_declaration
5052 #include <stdlib.h>
5053 int
5054 main ()
5055 {
5056 exit (42);
5057 ;
5058 return 0;
5059 }
5060 _ACEOF
5061 rm -f conftest.$ac_objext
5062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5063 (eval $ac_compile) 2>conftest.er1
5064 ac_status=$?
5065 grep -v '^ *+' conftest.er1 >conftest.err
5066 rm -f conftest.er1
5067 cat conftest.err >&5
5068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5069 (exit $ac_status); } &&
5070 { ac_try='test -z "$ac_cxx_werror_flag"
5071 || test ! -s conftest.err'
5072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5073 (eval $ac_try) 2>&5
5074 ac_status=$?
5075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5076 (exit $ac_status); }; } &&
5077 { ac_try='test -s conftest.$ac_objext'
5078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5079 (eval $ac_try) 2>&5
5080 ac_status=$?
5081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082 (exit $ac_status); }; }; then
5083 :
5084 else
5085 echo "$as_me: failed program was:" >&5
5086 sed 's/^/| /' conftest.$ac_ext >&5
5087
5088 continue
5089 fi
5090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5091 cat >conftest.$ac_ext <<_ACEOF
5092 /* confdefs.h. */
5093 _ACEOF
5094 cat confdefs.h >>conftest.$ac_ext
5095 cat >>conftest.$ac_ext <<_ACEOF
5096 /* end confdefs.h. */
5097 $ac_declaration
5098 int
5099 main ()
5100 {
5101 exit (42);
5102 ;
5103 return 0;
5104 }
5105 _ACEOF
5106 rm -f conftest.$ac_objext
5107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5108 (eval $ac_compile) 2>conftest.er1
5109 ac_status=$?
5110 grep -v '^ *+' conftest.er1 >conftest.err
5111 rm -f conftest.er1
5112 cat conftest.err >&5
5113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114 (exit $ac_status); } &&
5115 { ac_try='test -z "$ac_cxx_werror_flag"
5116 || test ! -s conftest.err'
5117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5118 (eval $ac_try) 2>&5
5119 ac_status=$?
5120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121 (exit $ac_status); }; } &&
5122 { ac_try='test -s conftest.$ac_objext'
5123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5124 (eval $ac_try) 2>&5
5125 ac_status=$?
5126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127 (exit $ac_status); }; }; then
5128 break
5129 else
5130 echo "$as_me: failed program was:" >&5
5131 sed 's/^/| /' conftest.$ac_ext >&5
5132
5133 fi
5134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5135 done
5136 rm -f conftest*
5137 if test -n "$ac_declaration"; then
5138 echo '#ifdef __cplusplus' >>confdefs.h
5139 echo $ac_declaration >>confdefs.h
5140 echo '#endif' >>confdefs.h
5141 fi
5142
5143 ac_ext=cc
5144 ac_cpp='$CXXCPP $CPPFLAGS'
5145 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5146 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5147 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5148
5149 depcc="$CXX" am_compiler_list=
5150
5151 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5152 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5153 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5154 echo $ECHO_N "(cached) $ECHO_C" >&6
5155 else
5156 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5157 # We make a subdir and do the tests there. Otherwise we can end up
5158 # making bogus files that we don't know about and never remove. For
5159 # instance it was reported that on HP-UX the gcc test will end up
5160 # making a dummy file named `D' -- because `-MD' means `put the output
5161 # in D'.
5162 mkdir conftest.dir
5163 # Copy depcomp to subdir because otherwise we won't find it if we're
5164 # using a relative directory.
5165 cp "$am_depcomp" conftest.dir
5166 cd conftest.dir
5167 # We will build objects and dependencies in a subdirectory because
5168 # it helps to detect inapplicable dependency modes. For instance
5169 # both Tru64's cc and ICC support -MD to output dependencies as a
5170 # side effect of compilation, but ICC will put the dependencies in
5171 # the current directory while Tru64 will put them in the object
5172 # directory.
5173 mkdir sub
5174
5175 am_cv_CXX_dependencies_compiler_type=none
5176 if test "$am_compiler_list" = ""; then
5177 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5178 fi
5179 for depmode in $am_compiler_list; do
5180 # Setup a source with many dependencies, because some compilers
5181 # like to wrap large dependency lists on column 80 (with \), and
5182 # we should not choose a depcomp mode which is confused by this.
5183 #
5184 # We need to recreate these files for each test, as the compiler may
5185 # overwrite some of them when testing with obscure command lines.
5186 # This happens at least with the AIX C compiler.
5187 : > sub/conftest.c
5188 for i in 1 2 3 4 5 6; do
5189 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5190 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5191 # Solaris 8's {/usr,}/bin/sh.
5192 touch sub/conftst$i.h
5193 done
5194 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5195
5196 case $depmode in
5197 nosideeffect)
5198 # after this tag, mechanisms are not by side-effect, so they'll
5199 # only be used when explicitly requested
5200 if test "x$enable_dependency_tracking" = xyes; then
5201 continue
5202 else
5203 break
5204 fi
5205 ;;
5206 none) break ;;
5207 esac
5208 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5209 # mode. It turns out that the SunPro C++ compiler does not properly
5210 # handle `-M -o', and we need to detect this.
5211 if depmode=$depmode \
5212 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5213 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5214 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5215 >/dev/null 2>conftest.err &&
5216 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5217 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5218 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5219 # icc doesn't choke on unknown options, it will just issue warnings
5220 # or remarks (even with -Werror). So we grep stderr for any message
5221 # that says an option was ignored or not supported.
5222 # When given -MP, icc 7.0 and 7.1 complain thusly:
5223 # icc: Command line warning: ignoring option '-M'; no argument required
5224 # The diagnosis changed in icc 8.0:
5225 # icc: Command line remark: option '-MP' not supported
5226 if (grep 'ignoring option' conftest.err ||
5227 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5228 am_cv_CXX_dependencies_compiler_type=$depmode
5229 break
5230 fi
5231 fi
5232 done
5233
5234 cd ..
5235 rm -rf conftest.dir
5236 else
5237 am_cv_CXX_dependencies_compiler_type=none
5238 fi
5239
5240 fi
5241 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5242 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5243 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5244
5245
5246
5247 if
5248 test "x$enable_dependency_tracking" != xno \
5249 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5250 am__fastdepCXX_TRUE=
5251 am__fastdepCXX_FALSE='#'
5252 else
5253 am__fastdepCXX_TRUE='#'
5254 am__fastdepCXX_FALSE=
5255 fi
5256
5257
5258
5259
5260 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5261 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5262 (test "X$CXX" != "Xg++"))) ; then
5263 ac_ext=cc
5264 ac_cpp='$CXXCPP $CPPFLAGS'
5265 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5266 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5267 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5268 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5269 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5270 if test -z "$CXXCPP"; then
5271 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5272 echo $ECHO_N "(cached) $ECHO_C" >&6
5273 else
5274 # Double quotes because CXXCPP needs to be expanded
5275 for CXXCPP in "$CXX -E" "/lib/cpp"
5276 do
5277 ac_preproc_ok=false
5278 for ac_cxx_preproc_warn_flag in '' yes
5279 do
5280 # Use a header file that comes with gcc, so configuring glibc
5281 # with a fresh cross-compiler works.
5282 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5283 # <limits.h> exists even on freestanding compilers.
5284 # On the NeXT, cc -E runs the code through the compiler's parser,
5285 # not just through cpp. "Syntax error" is here to catch this case.
5286 cat >conftest.$ac_ext <<_ACEOF
5287 /* confdefs.h. */
5288 _ACEOF
5289 cat confdefs.h >>conftest.$ac_ext
5290 cat >>conftest.$ac_ext <<_ACEOF
5291 /* end confdefs.h. */
5292 #ifdef __STDC__
5293 # include <limits.h>
5294 #else
5295 # include <assert.h>
5296 #endif
5297 Syntax error
5298 _ACEOF
5299 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5300 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5301 ac_status=$?
5302 grep -v '^ *+' conftest.er1 >conftest.err
5303 rm -f conftest.er1
5304 cat conftest.err >&5
5305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306 (exit $ac_status); } >/dev/null; then
5307 if test -s conftest.err; then
5308 ac_cpp_err=$ac_cxx_preproc_warn_flag
5309 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5310 else
5311 ac_cpp_err=
5312 fi
5313 else
5314 ac_cpp_err=yes
5315 fi
5316 if test -z "$ac_cpp_err"; then
5317 :
5318 else
5319 echo "$as_me: failed program was:" >&5
5320 sed 's/^/| /' conftest.$ac_ext >&5
5321
5322 # Broken: fails on valid input.
5323 continue
5324 fi
5325 rm -f conftest.err conftest.$ac_ext
5326
5327 # OK, works on sane cases. Now check whether non-existent headers
5328 # can be detected and how.
5329 cat >conftest.$ac_ext <<_ACEOF
5330 /* confdefs.h. */
5331 _ACEOF
5332 cat confdefs.h >>conftest.$ac_ext
5333 cat >>conftest.$ac_ext <<_ACEOF
5334 /* end confdefs.h. */
5335 #include <ac_nonexistent.h>
5336 _ACEOF
5337 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5338 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5339 ac_status=$?
5340 grep -v '^ *+' conftest.er1 >conftest.err
5341 rm -f conftest.er1
5342 cat conftest.err >&5
5343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5344 (exit $ac_status); } >/dev/null; then
5345 if test -s conftest.err; then
5346 ac_cpp_err=$ac_cxx_preproc_warn_flag
5347 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5348 else
5349 ac_cpp_err=
5350 fi
5351 else
5352 ac_cpp_err=yes
5353 fi
5354 if test -z "$ac_cpp_err"; then
5355 # Broken: success on invalid input.
5356 continue
5357 else
5358 echo "$as_me: failed program was:" >&5
5359 sed 's/^/| /' conftest.$ac_ext >&5
5360
5361 # Passes both tests.
5362 ac_preproc_ok=:
5363 break
5364 fi
5365 rm -f conftest.err conftest.$ac_ext
5366
5367 done
5368 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5369 rm -f conftest.err conftest.$ac_ext
5370 if $ac_preproc_ok; then
5371 break
5372 fi
5373
5374 done
5375 ac_cv_prog_CXXCPP=$CXXCPP
5376
5377 fi
5378 CXXCPP=$ac_cv_prog_CXXCPP
5379 else
5380 ac_cv_prog_CXXCPP=$CXXCPP
5381 fi
5382 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5383 echo "${ECHO_T}$CXXCPP" >&6
5384 ac_preproc_ok=false
5385 for ac_cxx_preproc_warn_flag in '' yes
5386 do
5387 # Use a header file that comes with gcc, so configuring glibc
5388 # with a fresh cross-compiler works.
5389 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5390 # <limits.h> exists even on freestanding compilers.
5391 # On the NeXT, cc -E runs the code through the compiler's parser,
5392 # not just through cpp. "Syntax error" is here to catch this case.
5393 cat >conftest.$ac_ext <<_ACEOF
5394 /* confdefs.h. */
5395 _ACEOF
5396 cat confdefs.h >>conftest.$ac_ext
5397 cat >>conftest.$ac_ext <<_ACEOF
5398 /* end confdefs.h. */
5399 #ifdef __STDC__
5400 # include <limits.h>
5401 #else
5402 # include <assert.h>
5403 #endif
5404 Syntax error
5405 _ACEOF
5406 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5407 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5408 ac_status=$?
5409 grep -v '^ *+' conftest.er1 >conftest.err
5410 rm -f conftest.er1
5411 cat conftest.err >&5
5412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5413 (exit $ac_status); } >/dev/null; then
5414 if test -s conftest.err; then
5415 ac_cpp_err=$ac_cxx_preproc_warn_flag
5416 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5417 else
5418 ac_cpp_err=
5419 fi
5420 else
5421 ac_cpp_err=yes
5422 fi
5423 if test -z "$ac_cpp_err"; then
5424 :
5425 else
5426 echo "$as_me: failed program was:" >&5
5427 sed 's/^/| /' conftest.$ac_ext >&5
5428
5429 # Broken: fails on valid input.
5430 continue
5431 fi
5432 rm -f conftest.err conftest.$ac_ext
5433
5434 # OK, works on sane cases. Now check whether non-existent headers
5435 # can be detected and how.
5436 cat >conftest.$ac_ext <<_ACEOF
5437 /* confdefs.h. */
5438 _ACEOF
5439 cat confdefs.h >>conftest.$ac_ext
5440 cat >>conftest.$ac_ext <<_ACEOF
5441 /* end confdefs.h. */
5442 #include <ac_nonexistent.h>
5443 _ACEOF
5444 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5445 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5446 ac_status=$?
5447 grep -v '^ *+' conftest.er1 >conftest.err
5448 rm -f conftest.er1
5449 cat conftest.err >&5
5450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5451 (exit $ac_status); } >/dev/null; then
5452 if test -s conftest.err; then
5453 ac_cpp_err=$ac_cxx_preproc_warn_flag
5454 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5455 else
5456 ac_cpp_err=
5457 fi
5458 else
5459 ac_cpp_err=yes
5460 fi
5461 if test -z "$ac_cpp_err"; then
5462 # Broken: success on invalid input.
5463 continue
5464 else
5465 echo "$as_me: failed program was:" >&5
5466 sed 's/^/| /' conftest.$ac_ext >&5
5467
5468 # Passes both tests.
5469 ac_preproc_ok=:
5470 break
5471 fi
5472 rm -f conftest.err conftest.$ac_ext
5473
5474 done
5475 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5476 rm -f conftest.err conftest.$ac_ext
5477 if $ac_preproc_ok; then
5478 :
5479 else
5480 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5481 See \`config.log' for more details." >&5
5482 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5483 See \`config.log' for more details." >&2;}
5484 { (exit 1); exit 1; }; }
5485 fi
5486
5487 ac_ext=cc
5488 ac_cpp='$CXXCPP $CPPFLAGS'
5489 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5490 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5491 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5492
5493 fi
5494
5495
5496 ac_ext=f
5497 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5498 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5499 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5500 if test -n "$ac_tool_prefix"; then
5501 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5502 do
5503 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5504 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5505 echo "$as_me:$LINENO: checking for $ac_word" >&5
5506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5507 if test "${ac_cv_prog_F77+set}" = set; then
5508 echo $ECHO_N "(cached) $ECHO_C" >&6
5509 else
5510 if test -n "$F77"; then
5511 ac_cv_prog_F77="$F77" # Let the user override the test.
5512 else
5513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5514 for as_dir in $PATH
5515 do
5516 IFS=$as_save_IFS
5517 test -z "$as_dir" && as_dir=.
5518 for ac_exec_ext in '' $ac_executable_extensions; do
5519 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5520 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5522 break 2
5523 fi
5524 done
5525 done
5526
5527 fi
5528 fi
5529 F77=$ac_cv_prog_F77
5530 if test -n "$F77"; then
5531 echo "$as_me:$LINENO: result: $F77" >&5
5532 echo "${ECHO_T}$F77" >&6
5533 else
5534 echo "$as_me:$LINENO: result: no" >&5
5535 echo "${ECHO_T}no" >&6
5536 fi
5537
5538 test -n "$F77" && break
5539 done
5540 fi
5541 if test -z "$F77"; then
5542 ac_ct_F77=$F77
5543 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5544 do
5545 # Extract the first word of "$ac_prog", so it can be a program name with args.
5546 set dummy $ac_prog; ac_word=$2
5547 echo "$as_me:$LINENO: checking for $ac_word" >&5
5548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5549 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5550 echo $ECHO_N "(cached) $ECHO_C" >&6
5551 else
5552 if test -n "$ac_ct_F77"; then
5553 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5554 else
5555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5556 for as_dir in $PATH
5557 do
5558 IFS=$as_save_IFS
5559 test -z "$as_dir" && as_dir=.
5560 for ac_exec_ext in '' $ac_executable_extensions; do
5561 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5562 ac_cv_prog_ac_ct_F77="$ac_prog"
5563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5564 break 2
5565 fi
5566 done
5567 done
5568
5569 fi
5570 fi
5571 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5572 if test -n "$ac_ct_F77"; then
5573 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5574 echo "${ECHO_T}$ac_ct_F77" >&6
5575 else
5576 echo "$as_me:$LINENO: result: no" >&5
5577 echo "${ECHO_T}no" >&6
5578 fi
5579
5580 test -n "$ac_ct_F77" && break
5581 done
5582
5583 F77=$ac_ct_F77
5584 fi
5585
5586
5587 # Provide some information about the compiler.
5588 echo "$as_me:5588:" \
5589 "checking for Fortran 77 compiler version" >&5
5590 ac_compiler=`set X $ac_compile; echo $2`
5591 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5592 (eval $ac_compiler --version </dev/null >&5) 2>&5
5593 ac_status=$?
5594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595 (exit $ac_status); }
5596 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5597 (eval $ac_compiler -v </dev/null >&5) 2>&5
5598 ac_status=$?
5599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600 (exit $ac_status); }
5601 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5602 (eval $ac_compiler -V </dev/null >&5) 2>&5
5603 ac_status=$?
5604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605 (exit $ac_status); }
5606 rm -f a.out
5607
5608 # If we don't use `.F' as extension, the preprocessor is not run on the
5609 # input file. (Note that this only needs to work for GNU compilers.)
5610 ac_save_ext=$ac_ext
5611 ac_ext=F
5612 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5613 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5614 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5615 echo $ECHO_N "(cached) $ECHO_C" >&6
5616 else
5617 cat >conftest.$ac_ext <<_ACEOF
5618 program main
5619 #ifndef __GNUC__
5620 choke me
5621 #endif
5622
5623 end
5624 _ACEOF
5625 rm -f conftest.$ac_objext
5626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5627 (eval $ac_compile) 2>conftest.er1
5628 ac_status=$?
5629 grep -v '^ *+' conftest.er1 >conftest.err
5630 rm -f conftest.er1
5631 cat conftest.err >&5
5632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633 (exit $ac_status); } &&
5634 { ac_try='test -z "$ac_f77_werror_flag"
5635 || test ! -s conftest.err'
5636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5637 (eval $ac_try) 2>&5
5638 ac_status=$?
5639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640 (exit $ac_status); }; } &&
5641 { ac_try='test -s conftest.$ac_objext'
5642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5643 (eval $ac_try) 2>&5
5644 ac_status=$?
5645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646 (exit $ac_status); }; }; then
5647 ac_compiler_gnu=yes
5648 else
5649 echo "$as_me: failed program was:" >&5
5650 sed 's/^/| /' conftest.$ac_ext >&5
5651
5652 ac_compiler_gnu=no
5653 fi
5654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5655 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5656
5657 fi
5658 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5659 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5660 ac_ext=$ac_save_ext
5661 ac_test_FFLAGS=${FFLAGS+set}
5662 ac_save_FFLAGS=$FFLAGS
5663 FFLAGS=
5664 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5665 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5666 if test "${ac_cv_prog_f77_g+set}" = set; then
5667 echo $ECHO_N "(cached) $ECHO_C" >&6
5668 else
5669 FFLAGS=-g
5670 cat >conftest.$ac_ext <<_ACEOF
5671 program main
5672
5673 end
5674 _ACEOF
5675 rm -f conftest.$ac_objext
5676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5677 (eval $ac_compile) 2>conftest.er1
5678 ac_status=$?
5679 grep -v '^ *+' conftest.er1 >conftest.err
5680 rm -f conftest.er1
5681 cat conftest.err >&5
5682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683 (exit $ac_status); } &&
5684 { ac_try='test -z "$ac_f77_werror_flag"
5685 || test ! -s conftest.err'
5686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5687 (eval $ac_try) 2>&5
5688 ac_status=$?
5689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5690 (exit $ac_status); }; } &&
5691 { ac_try='test -s conftest.$ac_objext'
5692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5693 (eval $ac_try) 2>&5
5694 ac_status=$?
5695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696 (exit $ac_status); }; }; then
5697 ac_cv_prog_f77_g=yes
5698 else
5699 echo "$as_me: failed program was:" >&5
5700 sed 's/^/| /' conftest.$ac_ext >&5
5701
5702 ac_cv_prog_f77_g=no
5703 fi
5704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5705
5706 fi
5707 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5708 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5709 if test "$ac_test_FFLAGS" = set; then
5710 FFLAGS=$ac_save_FFLAGS
5711 elif test $ac_cv_prog_f77_g = yes; then
5712 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5713 FFLAGS="-g -O2"
5714 else
5715 FFLAGS="-g"
5716 fi
5717 else
5718 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5719 FFLAGS="-O2"
5720 else
5721 FFLAGS=
5722 fi
5723 fi
5724
5725 G77=`test $ac_compiler_gnu = yes && echo yes`
5726 ac_ext=c
5727 ac_cpp='$CPP $CPPFLAGS'
5728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5731
5732
5733
5734 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5735
5736 # find the maximum length of command line arguments
5737 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5738 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5739 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5740 echo $ECHO_N "(cached) $ECHO_C" >&6
5741 else
5742 i=0
5743 teststring="ABCD"
5744
5745 case $build_os in
5746 msdosdjgpp*)
5747 # On DJGPP, this test can blow up pretty badly due to problems in libc
5748 # (any single argument exceeding 2000 bytes causes a buffer overrun
5749 # during glob expansion). Even if it were fixed, the result of this
5750 # check would be larger than it should be.
5751 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5752 ;;
5753
5754 gnu*)
5755 # Under GNU Hurd, this test is not required because there is
5756 # no limit to the length of command line arguments.
5757 # Libtool will interpret -1 as no limit whatsoever
5758 lt_cv_sys_max_cmd_len=-1;
5759 ;;
5760
5761 cygwin* | mingw*)
5762 # On Win9x/ME, this test blows up -- it succeeds, but takes
5763 # about 5 minutes as the teststring grows exponentially.
5764 # Worse, since 9x/ME are not pre-emptively multitasking,
5765 # you end up with a "frozen" computer, even though with patience
5766 # the test eventually succeeds (with a max line length of 256k).
5767 # Instead, let's just punt: use the minimum linelength reported by
5768 # all of the supported platforms: 8192 (on NT/2K/XP).
5769 lt_cv_sys_max_cmd_len=8192;
5770 ;;
5771
5772 amigaos*)
5773 # On AmigaOS with pdksh, this test takes hours, literally.
5774 # So we just punt and use a minimum line length of 8192.
5775 lt_cv_sys_max_cmd_len=8192;
5776 ;;
5777
5778 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5779 # This has been around since 386BSD, at least. Likely further.
5780 if test -x /sbin/sysctl; then
5781 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5782 elif test -x /usr/sbin/sysctl; then
5783 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5784 else
5785 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5786 fi
5787 # And add a safety zone
5788 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5789 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5790 ;;
5791
5792 interix*)
5793 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5794 lt_cv_sys_max_cmd_len=196608
5795 ;;
5796
5797 osf*)
5798 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5799 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5800 # nice to cause kernel panics so lets avoid the loop below.
5801 # First set a reasonable default.
5802 lt_cv_sys_max_cmd_len=16384
5803 #
5804 if test -x /sbin/sysconfig; then
5805 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5806 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5807 esac
5808 fi
5809 ;;
5810 sco3.2v5*)
5811 lt_cv_sys_max_cmd_len=102400
5812 ;;
5813 sysv5* | sco5v6* | sysv4.2uw2*)
5814 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5815 if test -n "$kargmax"; then
5816 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5817 else
5818 lt_cv_sys_max_cmd_len=32768
5819 fi
5820 ;;
5821 *)
5822 # If test is not a shell built-in, we'll probably end up computing a
5823 # maximum length that is only half of the actual maximum length, but
5824 # we can't tell.
5825 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5826 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5827 = "XX$teststring") >/dev/null 2>&1 &&
5828 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5829 lt_cv_sys_max_cmd_len=$new_result &&
5830 test $i != 17 # 1/2 MB should be enough
5831 do
5832 i=`expr $i + 1`
5833 teststring=$teststring$teststring
5834 done
5835 teststring=
5836 # Add a significant safety factor because C++ compilers can tack on massive
5837 # amounts of additional arguments before passing them to the linker.
5838 # It appears as though 1/2 is a usable value.
5839 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5840 ;;
5841 esac
5842
5843 fi
5844
5845 if test -n $lt_cv_sys_max_cmd_len ; then
5846 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5847 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5848 else
5849 echo "$as_me:$LINENO: result: none" >&5
5850 echo "${ECHO_T}none" >&6
5851 fi
5852
5853
5854
5855
5856 # Check for command to grab the raw symbol name followed by C symbol from nm.
5857 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5858 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5859 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5860 echo $ECHO_N "(cached) $ECHO_C" >&6
5861 else
5862
5863 # These are sane defaults that work on at least a few old systems.
5864 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5865
5866 # Character class describing NM global symbol codes.
5867 symcode='[BCDEGRST]'
5868
5869 # Regexp to match symbols that can be accessed directly from C.
5870 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5871
5872 # Transform an extracted symbol line into a proper C declaration
5873 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5874
5875 # Transform an extracted symbol line into symbol name and symbol address
5876 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'"
5877
5878 # Define system-specific variables.
5879 case $host_os in
5880 aix*)
5881 symcode='[BCDT]'
5882 ;;
5883 cygwin* | mingw* | pw32*)
5884 symcode='[ABCDGISTW]'
5885 ;;
5886 hpux*) # Its linker distinguishes data from code symbols
5887 if test "$host_cpu" = ia64; then
5888 symcode='[ABCDEGRST]'
5889 fi
5890 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5891 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5892 ;;
5893 linux*)
5894 if test "$host_cpu" = ia64; then
5895 symcode='[ABCDGIRSTW]'
5896 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5897 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5898 fi
5899 ;;
5900 irix* | nonstopux*)
5901 symcode='[BCDEGRST]'
5902 ;;
5903 osf*)
5904 symcode='[BCDEGQRST]'
5905 ;;
5906 solaris*)
5907 symcode='[BDRT]'
5908 ;;
5909 sco3.2v5*)
5910 symcode='[DT]'
5911 ;;
5912 sysv4.2uw2*)
5913 symcode='[DT]'
5914 ;;
5915 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5916 symcode='[ABDT]'
5917 ;;
5918 sysv4)
5919 symcode='[DFNSTU]'
5920 ;;
5921 esac
5922
5923 # Handle CRLF in mingw tool chain
5924 opt_cr=
5925 case $build_os in
5926 mingw*)
5927 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5928 ;;
5929 esac
5930
5931 # If we're using GNU nm, then use its standard symbol codes.
5932 case `$NM -V 2>&1` in
5933 *GNU* | *'with BFD'*)
5934 symcode='[ABCDGIRSTW]' ;;
5935 esac
5936
5937 # Try without a prefix undercore, then with it.
5938 for ac_symprfx in "" "_"; do
5939
5940 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5941 symxfrm="\\1 $ac_symprfx\\2 \\2"
5942
5943 # Write the raw and C identifiers.
5944 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5945
5946 # Check to see that the pipe works correctly.
5947 pipe_works=no
5948
5949 rm -f conftest*
5950 cat > conftest.$ac_ext <<EOF
5951 #ifdef __cplusplus
5952 extern "C" {
5953 #endif
5954 char nm_test_var;
5955 void nm_test_func(){}
5956 #ifdef __cplusplus
5957 }
5958 #endif
5959 int main(){nm_test_var='a';nm_test_func();return(0);}
5960 EOF
5961
5962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5963 (eval $ac_compile) 2>&5
5964 ac_status=$?
5965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966 (exit $ac_status); }; then
5967 # Now try to grab the symbols.
5968 nlist=conftest.nm
5969 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5970 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5971 ac_status=$?
5972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5973 (exit $ac_status); } && test -s "$nlist"; then
5974 # Try sorting and uniquifying the output.
5975 if sort "$nlist" | uniq > "$nlist"T; then
5976 mv -f "$nlist"T "$nlist"
5977 else
5978 rm -f "$nlist"T
5979 fi
5980
5981 # Make sure that we snagged all the symbols we need.
5982 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5983 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5984 cat <<EOF > conftest.$ac_ext
5985 #ifdef __cplusplus
5986 extern "C" {
5987 #endif
5988
5989 EOF
5990 # Now generate the symbol file.
5991 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5992
5993 cat <<EOF >> conftest.$ac_ext
5994 #if defined (__STDC__) && __STDC__
5995 # define lt_ptr_t void *
5996 #else
5997 # define lt_ptr_t char *
5998 # define const
5999 #endif
6000
6001 /* The mapping between symbol names and symbols. */
6002 const struct {
6003 const char *name;
6004 lt_ptr_t address;
6005 }
6006 lt_preloaded_symbols[] =
6007 {
6008 EOF
6009 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6010 cat <<\EOF >> conftest.$ac_ext
6011 {0, (lt_ptr_t) 0}
6012 };
6013
6014 #ifdef __cplusplus
6015 }
6016 #endif
6017 EOF
6018 # Now try linking the two files.
6019 mv conftest.$ac_objext conftstm.$ac_objext
6020 lt_save_LIBS="$LIBS"
6021 lt_save_CFLAGS="$CFLAGS"
6022 LIBS="conftstm.$ac_objext"
6023 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6025 (eval $ac_link) 2>&5
6026 ac_status=$?
6027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6029 pipe_works=yes
6030 fi
6031 LIBS="$lt_save_LIBS"
6032 CFLAGS="$lt_save_CFLAGS"
6033 else
6034 echo "cannot find nm_test_func in $nlist" >&5
6035 fi
6036 else
6037 echo "cannot find nm_test_var in $nlist" >&5
6038 fi
6039 else
6040 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6041 fi
6042 else
6043 echo "$progname: failed program was:" >&5
6044 cat conftest.$ac_ext >&5
6045 fi
6046 rm -f conftest* conftst*
6047
6048 # Do not use the global_symbol_pipe unless it works.
6049 if test "$pipe_works" = yes; then
6050 break
6051 else
6052 lt_cv_sys_global_symbol_pipe=
6053 fi
6054 done
6055
6056 fi
6057
6058 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6059 lt_cv_sys_global_symbol_to_cdecl=
6060 fi
6061 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6062 echo "$as_me:$LINENO: result: failed" >&5
6063 echo "${ECHO_T}failed" >&6
6064 else
6065 echo "$as_me:$LINENO: result: ok" >&5
6066 echo "${ECHO_T}ok" >&6
6067 fi
6068
6069 echo "$as_me:$LINENO: checking for objdir" >&5
6070 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6071 if test "${lt_cv_objdir+set}" = set; then
6072 echo $ECHO_N "(cached) $ECHO_C" >&6
6073 else
6074 rm -f .libs 2>/dev/null
6075 mkdir .libs 2>/dev/null
6076 if test -d .libs; then
6077 lt_cv_objdir=.libs
6078 else
6079 # MS-DOS does not allow filenames that begin with a dot.
6080 lt_cv_objdir=_libs
6081 fi
6082 rmdir .libs 2>/dev/null
6083 fi
6084 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6085 echo "${ECHO_T}$lt_cv_objdir" >&6
6086 objdir=$lt_cv_objdir
6087
6088
6089
6090
6091
6092 case $host_os in
6093 aix3*)
6094 # AIX sometimes has problems with the GCC collect2 program. For some
6095 # reason, if we set the COLLECT_NAMES environment variable, the problems
6096 # vanish in a puff of smoke.
6097 if test "X${COLLECT_NAMES+set}" != Xset; then
6098 COLLECT_NAMES=
6099 export COLLECT_NAMES
6100 fi
6101 ;;
6102 esac
6103
6104 # Sed substitution that helps us do robust quoting. It backslashifies
6105 # metacharacters that are still active within double-quoted strings.
6106 Xsed='sed -e 1s/^X//'
6107 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6108
6109 # Same as above, but do not quote variable references.
6110 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6111
6112 # Sed substitution to delay expansion of an escaped shell variable in a
6113 # double_quote_subst'ed string.
6114 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6115
6116 # Sed substitution to avoid accidental globbing in evaled expressions
6117 no_glob_subst='s/\*/\\\*/g'
6118
6119 # Constants:
6120 rm="rm -f"
6121
6122 # Global variables:
6123 default_ofile=libtool
6124 can_build_shared=yes
6125
6126 # All known linkers require a `.a' archive for static linking (except MSVC,
6127 # which needs '.lib').
6128 libext=a
6129 ltmain="$ac_aux_dir/ltmain.sh"
6130 ofile="$default_ofile"
6131 with_gnu_ld="$lt_cv_prog_gnu_ld"
6132
6133 if test -n "$ac_tool_prefix"; then
6134 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6135 set dummy ${ac_tool_prefix}ar; ac_word=$2
6136 echo "$as_me:$LINENO: checking for $ac_word" >&5
6137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6138 if test "${ac_cv_prog_AR+set}" = set; then
6139 echo $ECHO_N "(cached) $ECHO_C" >&6
6140 else
6141 if test -n "$AR"; then
6142 ac_cv_prog_AR="$AR" # Let the user override the test.
6143 else
6144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6145 for as_dir in $PATH
6146 do
6147 IFS=$as_save_IFS
6148 test -z "$as_dir" && as_dir=.
6149 for ac_exec_ext in '' $ac_executable_extensions; do
6150 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6151 ac_cv_prog_AR="${ac_tool_prefix}ar"
6152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6153 break 2
6154 fi
6155 done
6156 done
6157
6158 fi
6159 fi
6160 AR=$ac_cv_prog_AR
6161 if test -n "$AR"; then
6162 echo "$as_me:$LINENO: result: $AR" >&5
6163 echo "${ECHO_T}$AR" >&6
6164 else
6165 echo "$as_me:$LINENO: result: no" >&5
6166 echo "${ECHO_T}no" >&6
6167 fi
6168
6169 fi
6170 if test -z "$ac_cv_prog_AR"; then
6171 ac_ct_AR=$AR
6172 # Extract the first word of "ar", so it can be a program name with args.
6173 set dummy ar; ac_word=$2
6174 echo "$as_me:$LINENO: checking for $ac_word" >&5
6175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6176 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6177 echo $ECHO_N "(cached) $ECHO_C" >&6
6178 else
6179 if test -n "$ac_ct_AR"; then
6180 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6181 else
6182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6183 for as_dir in $PATH
6184 do
6185 IFS=$as_save_IFS
6186 test -z "$as_dir" && as_dir=.
6187 for ac_exec_ext in '' $ac_executable_extensions; do
6188 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6189 ac_cv_prog_ac_ct_AR="ar"
6190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6191 break 2
6192 fi
6193 done
6194 done
6195
6196 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6197 fi
6198 fi
6199 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6200 if test -n "$ac_ct_AR"; then
6201 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6202 echo "${ECHO_T}$ac_ct_AR" >&6
6203 else
6204 echo "$as_me:$LINENO: result: no" >&5
6205 echo "${ECHO_T}no" >&6
6206 fi
6207
6208 AR=$ac_ct_AR
6209 else
6210 AR="$ac_cv_prog_AR"
6211 fi
6212
6213 if test -n "$ac_tool_prefix"; then
6214 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6215 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6216 echo "$as_me:$LINENO: checking for $ac_word" >&5
6217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6218 if test "${ac_cv_prog_RANLIB+set}" = set; then
6219 echo $ECHO_N "(cached) $ECHO_C" >&6
6220 else
6221 if test -n "$RANLIB"; then
6222 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6223 else
6224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6225 for as_dir in $PATH
6226 do
6227 IFS=$as_save_IFS
6228 test -z "$as_dir" && as_dir=.
6229 for ac_exec_ext in '' $ac_executable_extensions; do
6230 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6231 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6233 break 2
6234 fi
6235 done
6236 done
6237
6238 fi
6239 fi
6240 RANLIB=$ac_cv_prog_RANLIB
6241 if test -n "$RANLIB"; then
6242 echo "$as_me:$LINENO: result: $RANLIB" >&5
6243 echo "${ECHO_T}$RANLIB" >&6
6244 else
6245 echo "$as_me:$LINENO: result: no" >&5
6246 echo "${ECHO_T}no" >&6
6247 fi
6248
6249 fi
6250 if test -z "$ac_cv_prog_RANLIB"; then
6251 ac_ct_RANLIB=$RANLIB
6252 # Extract the first word of "ranlib", so it can be a program name with args.
6253 set dummy ranlib; ac_word=$2
6254 echo "$as_me:$LINENO: checking for $ac_word" >&5
6255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6256 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6257 echo $ECHO_N "(cached) $ECHO_C" >&6
6258 else
6259 if test -n "$ac_ct_RANLIB"; then
6260 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6261 else
6262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6263 for as_dir in $PATH
6264 do
6265 IFS=$as_save_IFS
6266 test -z "$as_dir" && as_dir=.
6267 for ac_exec_ext in '' $ac_executable_extensions; do
6268 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6269 ac_cv_prog_ac_ct_RANLIB="ranlib"
6270 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6271 break 2
6272 fi
6273 done
6274 done
6275
6276 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6277 fi
6278 fi
6279 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6280 if test -n "$ac_ct_RANLIB"; then
6281 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6282 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6283 else
6284 echo "$as_me:$LINENO: result: no" >&5
6285 echo "${ECHO_T}no" >&6
6286 fi
6287
6288 RANLIB=$ac_ct_RANLIB
6289 else
6290 RANLIB="$ac_cv_prog_RANLIB"
6291 fi
6292
6293 if test -n "$ac_tool_prefix"; then
6294 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6295 set dummy ${ac_tool_prefix}strip; ac_word=$2
6296 echo "$as_me:$LINENO: checking for $ac_word" >&5
6297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6298 if test "${ac_cv_prog_STRIP+set}" = set; then
6299 echo $ECHO_N "(cached) $ECHO_C" >&6
6300 else
6301 if test -n "$STRIP"; then
6302 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6303 else
6304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6305 for as_dir in $PATH
6306 do
6307 IFS=$as_save_IFS
6308 test -z "$as_dir" && as_dir=.
6309 for ac_exec_ext in '' $ac_executable_extensions; do
6310 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6311 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6313 break 2
6314 fi
6315 done
6316 done
6317
6318 fi
6319 fi
6320 STRIP=$ac_cv_prog_STRIP
6321 if test -n "$STRIP"; then
6322 echo "$as_me:$LINENO: result: $STRIP" >&5
6323 echo "${ECHO_T}$STRIP" >&6
6324 else
6325 echo "$as_me:$LINENO: result: no" >&5
6326 echo "${ECHO_T}no" >&6
6327 fi
6328
6329 fi
6330 if test -z "$ac_cv_prog_STRIP"; then
6331 ac_ct_STRIP=$STRIP
6332 # Extract the first word of "strip", so it can be a program name with args.
6333 set dummy strip; ac_word=$2
6334 echo "$as_me:$LINENO: checking for $ac_word" >&5
6335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6336 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6337 echo $ECHO_N "(cached) $ECHO_C" >&6
6338 else
6339 if test -n "$ac_ct_STRIP"; then
6340 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6341 else
6342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6343 for as_dir in $PATH
6344 do
6345 IFS=$as_save_IFS
6346 test -z "$as_dir" && as_dir=.
6347 for ac_exec_ext in '' $ac_executable_extensions; do
6348 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6349 ac_cv_prog_ac_ct_STRIP="strip"
6350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6351 break 2
6352 fi
6353 done
6354 done
6355
6356 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6357 fi
6358 fi
6359 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6360 if test -n "$ac_ct_STRIP"; then
6361 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6362 echo "${ECHO_T}$ac_ct_STRIP" >&6
6363 else
6364 echo "$as_me:$LINENO: result: no" >&5
6365 echo "${ECHO_T}no" >&6
6366 fi
6367
6368 STRIP=$ac_ct_STRIP
6369 else
6370 STRIP="$ac_cv_prog_STRIP"
6371 fi
6372
6373
6374 old_CC="$CC"
6375 old_CFLAGS="$CFLAGS"
6376
6377 # Set sane defaults for various variables
6378 test -z "$AR" && AR=ar
6379 test -z "$AR_FLAGS" && AR_FLAGS=cru
6380 test -z "$AS" && AS=as
6381 test -z "$CC" && CC=cc
6382 test -z "$LTCC" && LTCC=$CC
6383 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6384 test -z "$DLLTOOL" && DLLTOOL=dlltool
6385 test -z "$LD" && LD=ld
6386 test -z "$LN_S" && LN_S="ln -s"
6387 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6388 test -z "$NM" && NM=nm
6389 test -z "$SED" && SED=sed
6390 test -z "$OBJDUMP" && OBJDUMP=objdump
6391 test -z "$RANLIB" && RANLIB=:
6392 test -z "$STRIP" && STRIP=:
6393 test -z "$ac_objext" && ac_objext=o
6394
6395 # Determine commands to create old-style static archives.
6396 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6397 old_postinstall_cmds='chmod 644 $oldlib'
6398 old_postuninstall_cmds=
6399
6400 if test -n "$RANLIB"; then
6401 case $host_os in
6402 openbsd*)
6403 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6404 ;;
6405 *)
6406 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6407 ;;
6408 esac
6409 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6410 fi
6411
6412 for cc_temp in $compiler""; do
6413 case $cc_temp in
6414 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6415 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6416 \-*) ;;
6417 *) break;;
6418 esac
6419 done
6420 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6421
6422
6423 # Only perform the check for file, if the check method requires it
6424 case $deplibs_check_method in
6425 file_magic*)
6426 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6427 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6428 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6429 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6430 echo $ECHO_N "(cached) $ECHO_C" >&6
6431 else
6432 case $MAGIC_CMD in
6433 [\\/*] | ?:[\\/]*)
6434 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6435 ;;
6436 *)
6437 lt_save_MAGIC_CMD="$MAGIC_CMD"
6438 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6439 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6440 for ac_dir in $ac_dummy; do
6441 IFS="$lt_save_ifs"
6442 test -z "$ac_dir" && ac_dir=.
6443 if test -f $ac_dir/${ac_tool_prefix}file; then
6444 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6445 if test -n "$file_magic_test_file"; then
6446 case $deplibs_check_method in
6447 "file_magic "*)
6448 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6449 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6450 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6451 $EGREP "$file_magic_regex" > /dev/null; then
6452 :
6453 else
6454 cat <<EOF 1>&2
6455
6456 *** Warning: the command libtool uses to detect shared libraries,
6457 *** $file_magic_cmd, produces output that libtool cannot recognize.
6458 *** The result is that libtool may fail to recognize shared libraries
6459 *** as such. This will affect the creation of libtool libraries that
6460 *** depend on shared libraries, but programs linked with such libtool
6461 *** libraries will work regardless of this problem. Nevertheless, you
6462 *** may want to report the problem to your system manager and/or to
6463 *** bug-libtool@gnu.org
6464
6465 EOF
6466 fi ;;
6467 esac
6468 fi
6469 break
6470 fi
6471 done
6472 IFS="$lt_save_ifs"
6473 MAGIC_CMD="$lt_save_MAGIC_CMD"
6474 ;;
6475 esac
6476 fi
6477
6478 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6479 if test -n "$MAGIC_CMD"; then
6480 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6481 echo "${ECHO_T}$MAGIC_CMD" >&6
6482 else
6483 echo "$as_me:$LINENO: result: no" >&5
6484 echo "${ECHO_T}no" >&6
6485 fi
6486
6487 if test -z "$lt_cv_path_MAGIC_CMD"; then
6488 if test -n "$ac_tool_prefix"; then
6489 echo "$as_me:$LINENO: checking for file" >&5
6490 echo $ECHO_N "checking for file... $ECHO_C" >&6
6491 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6492 echo $ECHO_N "(cached) $ECHO_C" >&6
6493 else
6494 case $MAGIC_CMD in
6495 [\\/*] | ?:[\\/]*)
6496 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6497 ;;
6498 *)
6499 lt_save_MAGIC_CMD="$MAGIC_CMD"
6500 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6501 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6502 for ac_dir in $ac_dummy; do
6503 IFS="$lt_save_ifs"
6504 test -z "$ac_dir" && ac_dir=.
6505 if test -f $ac_dir/file; then
6506 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6507 if test -n "$file_magic_test_file"; then
6508 case $deplibs_check_method in
6509 "file_magic "*)
6510 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6511 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6512 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6513 $EGREP "$file_magic_regex" > /dev/null; then
6514 :
6515 else
6516 cat <<EOF 1>&2
6517
6518 *** Warning: the command libtool uses to detect shared libraries,
6519 *** $file_magic_cmd, produces output that libtool cannot recognize.
6520 *** The result is that libtool may fail to recognize shared libraries
6521 *** as such. This will affect the creation of libtool libraries that
6522 *** depend on shared libraries, but programs linked with such libtool
6523 *** libraries will work regardless of this problem. Nevertheless, you
6524 *** may want to report the problem to your system manager and/or to
6525 *** bug-libtool@gnu.org
6526
6527 EOF
6528 fi ;;
6529 esac
6530 fi
6531 break
6532 fi
6533 done
6534 IFS="$lt_save_ifs"
6535 MAGIC_CMD="$lt_save_MAGIC_CMD"
6536 ;;
6537 esac
6538 fi
6539
6540 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6541 if test -n "$MAGIC_CMD"; then
6542 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6543 echo "${ECHO_T}$MAGIC_CMD" >&6
6544 else
6545 echo "$as_me:$LINENO: result: no" >&5
6546 echo "${ECHO_T}no" >&6
6547 fi
6548
6549 else
6550 MAGIC_CMD=:
6551 fi
6552 fi
6553
6554 fi
6555 ;;
6556 esac
6557
6558 enable_dlopen=no
6559 enable_win32_dll=no
6560
6561 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6562 if test "${enable_libtool_lock+set}" = set; then
6563 enableval="$enable_libtool_lock"
6564
6565 fi;
6566 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6567
6568
6569 # Check whether --with-pic or --without-pic was given.
6570 if test "${with_pic+set}" = set; then
6571 withval="$with_pic"
6572 pic_mode="$withval"
6573 else
6574 pic_mode=default
6575 fi;
6576 test -z "$pic_mode" && pic_mode=default
6577
6578 # Use C for the default configuration in the libtool script
6579 tagname=
6580 lt_save_CC="$CC"
6581 ac_ext=c
6582 ac_cpp='$CPP $CPPFLAGS'
6583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6586
6587
6588 # Source file extension for C test sources.
6589 ac_ext=c
6590
6591 # Object file extension for compiled C test sources.
6592 objext=o
6593 objext=$objext
6594
6595 # Code to be used in simple compile tests
6596 lt_simple_compile_test_code="int some_variable = 0;\n"
6597
6598 # Code to be used in simple link tests
6599 lt_simple_link_test_code='int main(){return(0);}\n'
6600
6601
6602 # If no C compiler was specified, use CC.
6603 LTCC=${LTCC-"$CC"}
6604
6605 # If no C compiler flags were specified, use CFLAGS.
6606 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6607
6608 # Allow CC to be a program name with arguments.
6609 compiler=$CC
6610
6611
6612 # save warnings/boilerplate of simple test code
6613 ac_outfile=conftest.$ac_objext
6614 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6615 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6616 _lt_compiler_boilerplate=`cat conftest.err`
6617 $rm conftest*
6618
6619 ac_outfile=conftest.$ac_objext
6620 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6621 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6622 _lt_linker_boilerplate=`cat conftest.err`
6623 $rm conftest*
6624
6625
6626
6627 lt_prog_compiler_no_builtin_flag=
6628
6629 if test "$GCC" = yes; then
6630 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6631
6632
6633 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6634 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6635 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6636 echo $ECHO_N "(cached) $ECHO_C" >&6
6637 else
6638 lt_cv_prog_compiler_rtti_exceptions=no
6639 ac_outfile=conftest.$ac_objext
6640 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6641 lt_compiler_flag="-fno-rtti -fno-exceptions"
6642 # Insert the option either (1) after the last *FLAGS variable, or
6643 # (2) before a word containing "conftest.", or (3) at the end.
6644 # Note that $ac_compile itself does not contain backslashes and begins
6645 # with a dollar sign (not a hyphen), so the echo should work correctly.
6646 # The option is referenced via a variable to avoid confusing sed.
6647 lt_compile=`echo "$ac_compile" | $SED \
6648 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6649 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6650 -e 's:$: $lt_compiler_flag:'`
6651 (eval echo "\"\$as_me:6651: $lt_compile\"" >&5)
6652 (eval "$lt_compile" 2>conftest.err)
6653 ac_status=$?
6654 cat conftest.err >&5
6655 echo "$as_me:6655: \$? = $ac_status" >&5
6656 if (exit $ac_status) && test -s "$ac_outfile"; then
6657 # The compiler can only warn and ignore the option if not recognized
6658 # So say no if there are warnings other than the usual output.
6659 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6660 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6661 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6662 lt_cv_prog_compiler_rtti_exceptions=yes
6663 fi
6664 fi
6665 $rm conftest*
6666
6667 fi
6668 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6669 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6670
6671 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6672 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6673 else
6674 :
6675 fi
6676
6677 fi
6678
6679 lt_prog_compiler_wl=
6680 lt_prog_compiler_pic=
6681 lt_prog_compiler_static=
6682
6683 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6684 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6685
6686 if test "$GCC" = yes; then
6687 lt_prog_compiler_wl='-Wl,'
6688 lt_prog_compiler_static='-static'
6689
6690 case $host_os in
6691 aix*)
6692 # All AIX code is PIC.
6693 if test "$host_cpu" = ia64; then
6694 # AIX 5 now supports IA64 processor
6695 lt_prog_compiler_static='-Bstatic'
6696 fi
6697 ;;
6698
6699 amigaos*)
6700 # FIXME: we need at least 68020 code to build shared libraries, but
6701 # adding the `-m68020' flag to GCC prevents building anything better,
6702 # like `-m68040'.
6703 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6704 ;;
6705
6706 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6707 # PIC is the default for these OSes.
6708 ;;
6709
6710 mingw* | pw32* | os2*)
6711 # This hack is so that the source file can tell whether it is being
6712 # built for inclusion in a dll (and should export symbols for example).
6713 lt_prog_compiler_pic='-DDLL_EXPORT'
6714 ;;
6715
6716 darwin* | rhapsody*)
6717 # PIC is the default on this platform
6718 # Common symbols not allowed in MH_DYLIB files
6719 lt_prog_compiler_pic='-fno-common'
6720 ;;
6721
6722 interix3*)
6723 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6724 # Instead, we relocate shared libraries at runtime.
6725 ;;
6726
6727 msdosdjgpp*)
6728 # Just because we use GCC doesn't mean we suddenly get shared libraries
6729 # on systems that don't support them.
6730 lt_prog_compiler_can_build_shared=no
6731 enable_shared=no
6732 ;;
6733
6734 sysv4*MP*)
6735 if test -d /usr/nec; then
6736 lt_prog_compiler_pic=-Kconform_pic
6737 fi
6738 ;;
6739
6740 hpux*)
6741 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6742 # not for PA HP-UX.
6743 case $host_cpu in
6744 hppa*64*|ia64*)
6745 # +Z the default
6746 ;;
6747 *)
6748 lt_prog_compiler_pic='-fPIC'
6749 ;;
6750 esac
6751 ;;
6752
6753 *)
6754 lt_prog_compiler_pic='-fPIC'
6755 ;;
6756 esac
6757 else
6758 # PORTME Check for flag to pass linker flags through the system compiler.
6759 case $host_os in
6760 aix*)
6761 lt_prog_compiler_wl='-Wl,'
6762 if test "$host_cpu" = ia64; then
6763 # AIX 5 now supports IA64 processor
6764 lt_prog_compiler_static='-Bstatic'
6765 else
6766 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6767 fi
6768 ;;
6769 darwin*)
6770 # PIC is the default on this platform
6771 # Common symbols not allowed in MH_DYLIB files
6772 case $cc_basename in
6773 xlc*)
6774 lt_prog_compiler_pic='-qnocommon'
6775 lt_prog_compiler_wl='-Wl,'
6776 ;;
6777 esac
6778 ;;
6779
6780 mingw* | pw32* | os2*)
6781 # This hack is so that the source file can tell whether it is being
6782 # built for inclusion in a dll (and should export symbols for example).
6783 lt_prog_compiler_pic='-DDLL_EXPORT'
6784 ;;
6785
6786 hpux9* | hpux10* | hpux11*)
6787 lt_prog_compiler_wl='-Wl,'
6788 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6789 # not for PA HP-UX.
6790 case $host_cpu in
6791 hppa*64*|ia64*)
6792 # +Z the default
6793 ;;
6794 *)
6795 lt_prog_compiler_pic='+Z'
6796 ;;
6797 esac
6798 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6799 lt_prog_compiler_static='${wl}-a ${wl}archive'
6800 ;;
6801
6802 irix5* | irix6* | nonstopux*)
6803 lt_prog_compiler_wl='-Wl,'
6804 # PIC (with -KPIC) is the default.
6805 lt_prog_compiler_static='-non_shared'
6806 ;;
6807
6808 newsos6)
6809 lt_prog_compiler_pic='-KPIC'
6810 lt_prog_compiler_static='-Bstatic'
6811 ;;
6812
6813 linux*)
6814 case $cc_basename in
6815 icc* | ecc*)
6816 lt_prog_compiler_wl='-Wl,'
6817 lt_prog_compiler_pic='-KPIC'
6818 lt_prog_compiler_static='-static'
6819 ;;
6820 pgcc* | pgf77* | pgf90* | pgf95*)
6821 # Portland Group compilers (*not* the Pentium gcc compiler,
6822 # which looks to be a dead project)
6823 lt_prog_compiler_wl='-Wl,'
6824 lt_prog_compiler_pic='-fpic'
6825 lt_prog_compiler_static='-Bstatic'
6826 ;;
6827 ccc*)
6828 lt_prog_compiler_wl='-Wl,'
6829 # All Alpha code is PIC.
6830 lt_prog_compiler_static='-non_shared'
6831 ;;
6832 esac
6833 ;;
6834
6835 osf3* | osf4* | osf5*)
6836 lt_prog_compiler_wl='-Wl,'
6837 # All OSF/1 code is PIC.
6838 lt_prog_compiler_static='-non_shared'
6839 ;;
6840
6841 solaris*)
6842 lt_prog_compiler_pic='-KPIC'
6843 lt_prog_compiler_static='-Bstatic'
6844 case $cc_basename in
6845 f77* | f90* | f95*)
6846 lt_prog_compiler_wl='-Qoption ld ';;
6847 *)
6848 lt_prog_compiler_wl='-Wl,';;
6849 esac
6850 ;;
6851
6852 sunos4*)
6853 lt_prog_compiler_wl='-Qoption ld '
6854 lt_prog_compiler_pic='-PIC'
6855 lt_prog_compiler_static='-Bstatic'
6856 ;;
6857
6858 sysv4 | sysv4.2uw2* | sysv4.3*)
6859 lt_prog_compiler_wl='-Wl,'
6860 lt_prog_compiler_pic='-KPIC'
6861 lt_prog_compiler_static='-Bstatic'
6862 ;;
6863
6864 sysv4*MP*)
6865 if test -d /usr/nec ;then
6866 lt_prog_compiler_pic='-Kconform_pic'
6867 lt_prog_compiler_static='-Bstatic'
6868 fi
6869 ;;
6870
6871 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6872 lt_prog_compiler_wl='-Wl,'
6873 lt_prog_compiler_pic='-KPIC'
6874 lt_prog_compiler_static='-Bstatic'
6875 ;;
6876
6877 unicos*)
6878 lt_prog_compiler_wl='-Wl,'
6879 lt_prog_compiler_can_build_shared=no
6880 ;;
6881
6882 uts4*)
6883 lt_prog_compiler_pic='-pic'
6884 lt_prog_compiler_static='-Bstatic'
6885 ;;
6886
6887 *)
6888 lt_prog_compiler_can_build_shared=no
6889 ;;
6890 esac
6891 fi
6892
6893 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6894 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6895
6896 #
6897 # Check to make sure the PIC flag actually works.
6898 #
6899 if test -n "$lt_prog_compiler_pic"; then
6900
6901 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6902 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6903 if test "${lt_prog_compiler_pic_works+set}" = set; then
6904 echo $ECHO_N "(cached) $ECHO_C" >&6
6905 else
6906 lt_prog_compiler_pic_works=no
6907 ac_outfile=conftest.$ac_objext
6908 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6909 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6910 # Insert the option either (1) after the last *FLAGS variable, or
6911 # (2) before a word containing "conftest.", or (3) at the end.
6912 # Note that $ac_compile itself does not contain backslashes and begins
6913 # with a dollar sign (not a hyphen), so the echo should work correctly.
6914 # The option is referenced via a variable to avoid confusing sed.
6915 lt_compile=`echo "$ac_compile" | $SED \
6916 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6917 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6918 -e 's:$: $lt_compiler_flag:'`
6919 (eval echo "\"\$as_me:6919: $lt_compile\"" >&5)
6920 (eval "$lt_compile" 2>conftest.err)
6921 ac_status=$?
6922 cat conftest.err >&5
6923 echo "$as_me:6923: \$? = $ac_status" >&5
6924 if (exit $ac_status) && test -s "$ac_outfile"; then
6925 # The compiler can only warn and ignore the option if not recognized
6926 # So say no if there are warnings other than the usual output.
6927 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6928 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6929 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6930 lt_prog_compiler_pic_works=yes
6931 fi
6932 fi
6933 $rm conftest*
6934
6935 fi
6936 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6937 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6938
6939 if test x"$lt_prog_compiler_pic_works" = xyes; then
6940 case $lt_prog_compiler_pic in
6941 "" | " "*) ;;
6942 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6943 esac
6944 else
6945 lt_prog_compiler_pic=
6946 lt_prog_compiler_can_build_shared=no
6947 fi
6948
6949 fi
6950 case $host_os in
6951 # For platforms which do not support PIC, -DPIC is meaningless:
6952 *djgpp*)
6953 lt_prog_compiler_pic=
6954 ;;
6955 *)
6956 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6957 ;;
6958 esac
6959
6960 #
6961 # Check to make sure the static flag actually works.
6962 #
6963 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6964 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6965 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6966 if test "${lt_prog_compiler_static_works+set}" = set; then
6967 echo $ECHO_N "(cached) $ECHO_C" >&6
6968 else
6969 lt_prog_compiler_static_works=no
6970 save_LDFLAGS="$LDFLAGS"
6971 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6972 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6973 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6974 # The linker can only warn and ignore the option if not recognized
6975 # So say no if there are warnings
6976 if test -s conftest.err; then
6977 # Append any errors to the config.log.
6978 cat conftest.err 1>&5
6979 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6980 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6981 if diff conftest.exp conftest.er2 >/dev/null; then
6982 lt_prog_compiler_static_works=yes
6983 fi
6984 else
6985 lt_prog_compiler_static_works=yes
6986 fi
6987 fi
6988 $rm conftest*
6989 LDFLAGS="$save_LDFLAGS"
6990
6991 fi
6992 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6993 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6994
6995 if test x"$lt_prog_compiler_static_works" = xyes; then
6996 :
6997 else
6998 lt_prog_compiler_static=
6999 fi
7000
7001
7002 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7003 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7004 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7005 echo $ECHO_N "(cached) $ECHO_C" >&6
7006 else
7007 lt_cv_prog_compiler_c_o=no
7008 $rm -r conftest 2>/dev/null
7009 mkdir conftest
7010 cd conftest
7011 mkdir out
7012 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7013
7014 lt_compiler_flag="-o out/conftest2.$ac_objext"
7015 # Insert the option either (1) after the last *FLAGS variable, or
7016 # (2) before a word containing "conftest.", or (3) at the end.
7017 # Note that $ac_compile itself does not contain backslashes and begins
7018 # with a dollar sign (not a hyphen), so the echo should work correctly.
7019 lt_compile=`echo "$ac_compile" | $SED \
7020 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7021 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7022 -e 's:$: $lt_compiler_flag:'`
7023 (eval echo "\"\$as_me:7023: $lt_compile\"" >&5)
7024 (eval "$lt_compile" 2>out/conftest.err)
7025 ac_status=$?
7026 cat out/conftest.err >&5
7027 echo "$as_me:7027: \$? = $ac_status" >&5
7028 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7029 then
7030 # The compiler can only warn and ignore the option if not recognized
7031 # So say no if there are warnings
7032 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7033 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7034 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7035 lt_cv_prog_compiler_c_o=yes
7036 fi
7037 fi
7038 chmod u+w . 2>&5
7039 $rm conftest*
7040 # SGI C++ compiler will create directory out/ii_files/ for
7041 # template instantiation
7042 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7043 $rm out/* && rmdir out
7044 cd ..
7045 rmdir conftest
7046 $rm conftest*
7047
7048 fi
7049 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7050 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7051
7052
7053 hard_links="nottested"
7054 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7055 # do not overwrite the value of need_locks provided by the user
7056 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7057 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7058 hard_links=yes
7059 $rm conftest*
7060 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7061 touch conftest.a
7062 ln conftest.a conftest.b 2>&5 || hard_links=no
7063 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7064 echo "$as_me:$LINENO: result: $hard_links" >&5
7065 echo "${ECHO_T}$hard_links" >&6
7066 if test "$hard_links" = no; then
7067 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7068 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7069 need_locks=warn
7070 fi
7071 else
7072 need_locks=no
7073 fi
7074
7075 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7076 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7077
7078 runpath_var=
7079 allow_undefined_flag=
7080 enable_shared_with_static_runtimes=no
7081 archive_cmds=
7082 archive_expsym_cmds=
7083 old_archive_From_new_cmds=
7084 old_archive_from_expsyms_cmds=
7085 export_dynamic_flag_spec=
7086 whole_archive_flag_spec=
7087 thread_safe_flag_spec=
7088 hardcode_libdir_flag_spec=
7089 hardcode_libdir_flag_spec_ld=
7090 hardcode_libdir_separator=
7091 hardcode_direct=no
7092 hardcode_minus_L=no
7093 hardcode_shlibpath_var=unsupported
7094 link_all_deplibs=unknown
7095 hardcode_automatic=no
7096 module_cmds=
7097 module_expsym_cmds=
7098 always_export_symbols=no
7099 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7100 # include_expsyms should be a list of space-separated symbols to be *always*
7101 # included in the symbol list
7102 include_expsyms=
7103 # exclude_expsyms can be an extended regexp of symbols to exclude
7104 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7105 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7106 # as well as any symbol that contains `d'.
7107 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7108 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7109 # platforms (ab)use it in PIC code, but their linkers get confused if
7110 # the symbol is explicitly referenced. Since portable code cannot
7111 # rely on this symbol name, it's probably fine to never include it in
7112 # preloaded symbol tables.
7113 extract_expsyms_cmds=
7114 # Just being paranoid about ensuring that cc_basename is set.
7115 for cc_temp in $compiler""; do
7116 case $cc_temp in
7117 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7118 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7119 \-*) ;;
7120 *) break;;
7121 esac
7122 done
7123 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7124
7125 case $host_os in
7126 cygwin* | mingw* | pw32*)
7127 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7128 # When not using gcc, we currently assume that we are using
7129 # Microsoft Visual C++.
7130 if test "$GCC" != yes; then
7131 with_gnu_ld=no
7132 fi
7133 ;;
7134 interix*)
7135 # we just hope/assume this is gcc and not c89 (= MSVC++)
7136 with_gnu_ld=yes
7137 ;;
7138 openbsd*)
7139 with_gnu_ld=no
7140 ;;
7141 esac
7142
7143 ld_shlibs=yes
7144 if test "$with_gnu_ld" = yes; then
7145 # If archive_cmds runs LD, not CC, wlarc should be empty
7146 wlarc='${wl}'
7147
7148 # Set some defaults for GNU ld with shared library support. These
7149 # are reset later if shared libraries are not supported. Putting them
7150 # here allows them to be overridden if necessary.
7151 runpath_var=LD_RUN_PATH
7152 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7153 export_dynamic_flag_spec='${wl}--export-dynamic'
7154 # ancient GNU ld didn't support --whole-archive et. al.
7155 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7156 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7157 else
7158 whole_archive_flag_spec=
7159 fi
7160 supports_anon_versioning=no
7161 case `$LD -v 2>/dev/null` in
7162 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7163 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7164 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7165 *\ 2.11.*) ;; # other 2.11 versions
7166 *) supports_anon_versioning=yes ;;
7167 esac
7168
7169 # See if GNU ld supports shared libraries.
7170 case $host_os in
7171 aix3* | aix4* | aix5*)
7172 # On AIX/PPC, the GNU linker is very broken
7173 if test "$host_cpu" != ia64; then
7174 ld_shlibs=no
7175 cat <<EOF 1>&2
7176
7177 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7178 *** to be unable to reliably create shared libraries on AIX.
7179 *** Therefore, libtool is disabling shared libraries support. If you
7180 *** really care for shared libraries, you may want to modify your PATH
7181 *** so that a non-GNU linker is found, and then restart.
7182
7183 EOF
7184 fi
7185 ;;
7186
7187 amigaos*)
7188 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
7189 hardcode_libdir_flag_spec='-L$libdir'
7190 hardcode_minus_L=yes
7191
7192 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7193 # that the semantics of dynamic libraries on AmigaOS, at least up
7194 # to version 4, is to share data among multiple programs linked
7195 # with the same dynamic library. Since this doesn't match the
7196 # behavior of shared libraries on other platforms, we can't use
7197 # them.
7198 ld_shlibs=no
7199 ;;
7200
7201 beos*)
7202 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7203 allow_undefined_flag=unsupported
7204 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7205 # support --undefined. This deserves some investigation. FIXME
7206 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7207 else
7208 ld_shlibs=no
7209 fi
7210 ;;
7211
7212 cygwin* | mingw* | pw32*)
7213 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7214 # as there is no search path for DLLs.
7215 hardcode_libdir_flag_spec='-L$libdir'
7216 allow_undefined_flag=unsupported
7217 always_export_symbols=no
7218 enable_shared_with_static_runtimes=yes
7219 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7220
7221 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7222 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7223 # If the export-symbols file already is a .def file (1st line
7224 # is EXPORTS), use it as is; otherwise, prepend...
7225 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7226 cp $export_symbols $output_objdir/$soname.def;
7227 else
7228 echo EXPORTS > $output_objdir/$soname.def;
7229 cat $export_symbols >> $output_objdir/$soname.def;
7230 fi~
7231 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7232 else
7233 ld_shlibs=no
7234 fi
7235 ;;
7236
7237 interix3*)
7238 hardcode_direct=no
7239 hardcode_shlibpath_var=no
7240 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7241 export_dynamic_flag_spec='${wl}-E'
7242 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7243 # Instead, shared libraries are loaded at an image base (0x10000000 by
7244 # default) and relocated if they conflict, which is a slow very memory
7245 # consuming and fragmenting process. To avoid this, we pick a random,
7246 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7247 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7248 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7249 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7250 ;;
7251
7252 linux*)
7253 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7254 tmp_addflag=
7255 case $cc_basename,$host_cpu in
7256 pgcc*) # Portland Group C compiler
7257 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7258 tmp_addflag=' $pic_flag'
7259 ;;
7260 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7261 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7262 tmp_addflag=' $pic_flag -Mnomain' ;;
7263 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7264 tmp_addflag=' -i_dynamic' ;;
7265 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7266 tmp_addflag=' -i_dynamic -nofor_main' ;;
7267 ifc* | ifort*) # Intel Fortran compiler
7268 tmp_addflag=' -nofor_main' ;;
7269 esac
7270 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7271
7272 if test $supports_anon_versioning = yes; then
7273 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7274 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7275 $echo "local: *; };" >> $output_objdir/$libname.ver~
7276 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7277 fi
7278 else
7279 ld_shlibs=no
7280 fi
7281 ;;
7282
7283 netbsd*)
7284 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7285 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7286 wlarc=
7287 else
7288 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7289 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7290 fi
7291 ;;
7292
7293 solaris*)
7294 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7295 ld_shlibs=no
7296 cat <<EOF 1>&2
7297
7298 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7299 *** create shared libraries on Solaris systems. Therefore, libtool
7300 *** is disabling shared libraries support. We urge you to upgrade GNU
7301 *** binutils to release 2.9.1 or newer. Another option is to modify
7302 *** your PATH or compiler configuration so that the native linker is
7303 *** used, and then restart.
7304
7305 EOF
7306 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7307 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7308 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7309 else
7310 ld_shlibs=no
7311 fi
7312 ;;
7313
7314 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7315 case `$LD -v 2>&1` in
7316 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7317 ld_shlibs=no
7318 cat <<_LT_EOF 1>&2
7319
7320 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7321 *** reliably create shared libraries on SCO systems. Therefore, libtool
7322 *** is disabling shared libraries support. We urge you to upgrade GNU
7323 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7324 *** your PATH or compiler configuration so that the native linker is
7325 *** used, and then restart.
7326
7327 _LT_EOF
7328 ;;
7329 *)
7330 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7331 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7332 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7333 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7334 else
7335 ld_shlibs=no
7336 fi
7337 ;;
7338 esac
7339 ;;
7340
7341 sunos4*)
7342 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7343 wlarc=
7344 hardcode_direct=yes
7345 hardcode_shlibpath_var=no
7346 ;;
7347
7348 *)
7349 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7350 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7351 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7352 else
7353 ld_shlibs=no
7354 fi
7355 ;;
7356 esac
7357
7358 if test "$ld_shlibs" = no; then
7359 runpath_var=
7360 hardcode_libdir_flag_spec=
7361 export_dynamic_flag_spec=
7362 whole_archive_flag_spec=
7363 fi
7364 else
7365 # PORTME fill in a description of your system's linker (not GNU ld)
7366 case $host_os in
7367 aix3*)
7368 allow_undefined_flag=unsupported
7369 always_export_symbols=yes
7370 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
7371 # Note: this linker hardcodes the directories in LIBPATH if there
7372 # are no directories specified by -L.
7373 hardcode_minus_L=yes
7374 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7375 # Neither direct hardcoding nor static linking is supported with a
7376 # broken collect2.
7377 hardcode_direct=unsupported
7378 fi
7379 ;;
7380
7381 aix4* | aix5*)
7382 if test "$host_cpu" = ia64; then
7383 # On IA64, the linker does run time linking by default, so we don't
7384 # have to do anything special.
7385 aix_use_runtimelinking=no
7386 exp_sym_flag='-Bexport'
7387 no_entry_flag=""
7388 else
7389 # If we're using GNU nm, then we don't want the "-C" option.
7390 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7391 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7392 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
7393 else
7394 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
7395 fi
7396 aix_use_runtimelinking=no
7397
7398 # Test if we are trying to use run time linking or normal
7399 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7400 # need to do runtime linking.
7401 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7402 for ld_flag in $LDFLAGS; do
7403 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7404 aix_use_runtimelinking=yes
7405 break
7406 fi
7407 done
7408 ;;
7409 esac
7410
7411 exp_sym_flag='-bexport'
7412 no_entry_flag='-bnoentry'
7413 fi
7414
7415 # When large executables or shared objects are built, AIX ld can
7416 # have problems creating the table of contents. If linking a library
7417 # or program results in "error TOC overflow" add -mminimal-toc to
7418 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7419 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7420
7421 archive_cmds=''
7422 hardcode_direct=yes
7423 hardcode_libdir_separator=':'
7424 link_all_deplibs=yes
7425
7426 if test "$GCC" = yes; then
7427 case $host_os in aix4.[012]|aix4.[012].*)
7428 # We only want to do this on AIX 4.2 and lower, the check
7429 # below for broken collect2 doesn't work under 4.3+
7430 collect2name=`${CC} -print-prog-name=collect2`
7431 if test -f "$collect2name" && \
7432 strings "$collect2name" | grep resolve_lib_name >/dev/null
7433 then
7434 # We have reworked collect2
7435 hardcode_direct=yes
7436 else
7437 # We have old collect2
7438 hardcode_direct=unsupported
7439 # It fails to find uninstalled libraries when the uninstalled
7440 # path is not listed in the libpath. Setting hardcode_minus_L
7441 # to unsupported forces relinking
7442 hardcode_minus_L=yes
7443 hardcode_libdir_flag_spec='-L$libdir'
7444 hardcode_libdir_separator=
7445 fi
7446 ;;
7447 esac
7448 shared_flag='-shared'
7449 if test "$aix_use_runtimelinking" = yes; then
7450 shared_flag="$shared_flag "'${wl}-G'
7451 fi
7452 else
7453 # not using gcc
7454 if test "$host_cpu" = ia64; then
7455 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7456 # chokes on -Wl,-G. The following line is correct:
7457 shared_flag='-G'
7458 else
7459 if test "$aix_use_runtimelinking" = yes; then
7460 shared_flag='${wl}-G'
7461 else
7462 shared_flag='${wl}-bM:SRE'
7463 fi
7464 fi
7465 fi
7466
7467 # It seems that -bexpall does not export symbols beginning with
7468 # underscore (_), so it is better to generate a list of symbols to export.
7469 always_export_symbols=yes
7470 if test "$aix_use_runtimelinking" = yes; then
7471 # Warning - without using the other runtime loading flags (-brtl),
7472 # -berok will link without error, but may produce a broken library.
7473 allow_undefined_flag='-berok'
7474 # Determine the default libpath from the value encoded in an empty executable.
7475 cat >conftest.$ac_ext <<_ACEOF
7476 /* confdefs.h. */
7477 _ACEOF
7478 cat confdefs.h >>conftest.$ac_ext
7479 cat >>conftest.$ac_ext <<_ACEOF
7480 /* end confdefs.h. */
7481
7482 int
7483 main ()
7484 {
7485
7486 ;
7487 return 0;
7488 }
7489 _ACEOF
7490 rm -f conftest.$ac_objext conftest$ac_exeext
7491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7492 (eval $ac_link) 2>conftest.er1
7493 ac_status=$?
7494 grep -v '^ *+' conftest.er1 >conftest.err
7495 rm -f conftest.er1
7496 cat conftest.err >&5
7497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7498 (exit $ac_status); } &&
7499 { ac_try='test -z "$ac_c_werror_flag"
7500 || test ! -s conftest.err'
7501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7502 (eval $ac_try) 2>&5
7503 ac_status=$?
7504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7505 (exit $ac_status); }; } &&
7506 { ac_try='test -s conftest$ac_exeext'
7507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7508 (eval $ac_try) 2>&5
7509 ac_status=$?
7510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7511 (exit $ac_status); }; }; then
7512
7513 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7514 }'`
7515 # Check for a 64-bit object if we didn't find anything.
7516 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7517 }'`; fi
7518 else
7519 echo "$as_me: failed program was:" >&5
7520 sed 's/^/| /' conftest.$ac_ext >&5
7521
7522 fi
7523 rm -f conftest.err conftest.$ac_objext \
7524 conftest$ac_exeext conftest.$ac_ext
7525 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7526
7527 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7528 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7529 else
7530 if test "$host_cpu" = ia64; then
7531 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7532 allow_undefined_flag="-z nodefs"
7533 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7534 else
7535 # Determine the default libpath from the value encoded in an empty executable.
7536 cat >conftest.$ac_ext <<_ACEOF
7537 /* confdefs.h. */
7538 _ACEOF
7539 cat confdefs.h >>conftest.$ac_ext
7540 cat >>conftest.$ac_ext <<_ACEOF
7541 /* end confdefs.h. */
7542
7543 int
7544 main ()
7545 {
7546
7547 ;
7548 return 0;
7549 }
7550 _ACEOF
7551 rm -f conftest.$ac_objext conftest$ac_exeext
7552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7553 (eval $ac_link) 2>conftest.er1
7554 ac_status=$?
7555 grep -v '^ *+' conftest.er1 >conftest.err
7556 rm -f conftest.er1
7557 cat conftest.err >&5
7558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7559 (exit $ac_status); } &&
7560 { ac_try='test -z "$ac_c_werror_flag"
7561 || test ! -s conftest.err'
7562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7563 (eval $ac_try) 2>&5
7564 ac_status=$?
7565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7566 (exit $ac_status); }; } &&
7567 { ac_try='test -s conftest$ac_exeext'
7568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7569 (eval $ac_try) 2>&5
7570 ac_status=$?
7571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7572 (exit $ac_status); }; }; then
7573
7574 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7575 }'`
7576 # Check for a 64-bit object if we didn't find anything.
7577 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7578 }'`; fi
7579 else
7580 echo "$as_me: failed program was:" >&5
7581 sed 's/^/| /' conftest.$ac_ext >&5
7582
7583 fi
7584 rm -f conftest.err conftest.$ac_objext \
7585 conftest$ac_exeext conftest.$ac_ext
7586 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7587
7588 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7589 # Warning - without using the other run time loading flags,
7590 # -berok will link without error, but may produce a broken library.
7591 no_undefined_flag=' ${wl}-bernotok'
7592 allow_undefined_flag=' ${wl}-berok'
7593 # Exported symbols can be pulled into shared objects from archives
7594 whole_archive_flag_spec='$convenience'
7595 archive_cmds_need_lc=yes
7596 # This is similar to how AIX traditionally builds its shared libraries.
7597 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7598 fi
7599 fi
7600 ;;
7601
7602 amigaos*)
7603 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
7604 hardcode_libdir_flag_spec='-L$libdir'
7605 hardcode_minus_L=yes
7606 # see comment about different semantics on the GNU ld section
7607 ld_shlibs=no
7608 ;;
7609
7610 bsdi[45]*)
7611 export_dynamic_flag_spec=-rdynamic
7612 ;;
7613
7614 cygwin* | mingw* | pw32*)
7615 # When not using gcc, we currently assume that we are using
7616 # Microsoft Visual C++.
7617 # hardcode_libdir_flag_spec is actually meaningless, as there is
7618 # no search path for DLLs.
7619 hardcode_libdir_flag_spec=' '
7620 allow_undefined_flag=unsupported
7621 # Tell ltmain to make .lib files, not .a files.
7622 libext=lib
7623 # Tell ltmain to make .dll files, not .so files.
7624 shrext_cmds=".dll"
7625 # FIXME: Setting linknames here is a bad hack.
7626 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7627 # The linker will automatically build a .lib file if we build a DLL.
7628 old_archive_From_new_cmds='true'
7629 # FIXME: Should let the user specify the lib program.
7630 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7631 fix_srcfile_path='`cygpath -w "$srcfile"`'
7632 enable_shared_with_static_runtimes=yes
7633 ;;
7634
7635 darwin* | rhapsody*)
7636 case $host_os in
7637 rhapsody* | darwin1.[012])
7638 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7639 ;;
7640 *) # Darwin 1.3 on
7641 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7642 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7643 else
7644 case ${MACOSX_DEPLOYMENT_TARGET} in
7645 10.[012])
7646 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7647 ;;
7648 10.*)
7649 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7650 ;;
7651 esac
7652 fi
7653 ;;
7654 esac
7655 archive_cmds_need_lc=no
7656 hardcode_direct=no
7657 hardcode_automatic=yes
7658 hardcode_shlibpath_var=unsupported
7659 whole_archive_flag_spec=''
7660 link_all_deplibs=yes
7661 if test "$GCC" = yes ; then
7662 output_verbose_link_cmd='echo'
7663 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7664 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7665 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7666 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7667 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7668 else
7669 case $cc_basename in
7670 xlc*)
7671 output_verbose_link_cmd='echo'
7672 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7673 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7674 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7675 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7676 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7677 ;;
7678 *)
7679 ld_shlibs=no
7680 ;;
7681 esac
7682 fi
7683 ;;
7684
7685 dgux*)
7686 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7687 hardcode_libdir_flag_spec='-L$libdir'
7688 hardcode_shlibpath_var=no
7689 ;;
7690
7691 freebsd1*)
7692 ld_shlibs=no
7693 ;;
7694
7695 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7696 # support. Future versions do this automatically, but an explicit c++rt0.o
7697 # does not break anything, and helps significantly (at the cost of a little
7698 # extra space).
7699 freebsd2.2*)
7700 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7701 hardcode_libdir_flag_spec='-R$libdir'
7702 hardcode_direct=yes
7703 hardcode_shlibpath_var=no
7704 ;;
7705
7706 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7707 freebsd2*)
7708 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7709 hardcode_direct=yes
7710 hardcode_minus_L=yes
7711 hardcode_shlibpath_var=no
7712 ;;
7713
7714 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7715 freebsd* | kfreebsd*-gnu | dragonfly*)
7716 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7717 hardcode_libdir_flag_spec='-R$libdir'
7718 hardcode_direct=yes
7719 hardcode_shlibpath_var=no
7720 ;;
7721
7722 hpux9*)
7723 if test "$GCC" = yes; then
7724 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7725 else
7726 archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7727 fi
7728 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7729 hardcode_libdir_separator=:
7730 hardcode_direct=yes
7731
7732 # hardcode_minus_L: Not really in the search PATH,
7733 # but as the default location of the library.
7734 hardcode_minus_L=yes
7735 export_dynamic_flag_spec='${wl}-E'
7736 ;;
7737
7738 hpux10*)
7739 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7740 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7741 else
7742 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7743 fi
7744 if test "$with_gnu_ld" = no; then
7745 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7746 hardcode_libdir_separator=:
7747
7748 hardcode_direct=yes
7749 export_dynamic_flag_spec='${wl}-E'
7750
7751 # hardcode_minus_L: Not really in the search PATH,
7752 # but as the default location of the library.
7753 hardcode_minus_L=yes
7754 fi
7755 ;;
7756
7757 hpux11*)
7758 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7759 case $host_cpu in
7760 hppa*64*)
7761 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7762 ;;
7763 ia64*)
7764 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7765 ;;
7766 *)
7767 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7768 ;;
7769 esac
7770 else
7771 case $host_cpu in
7772 hppa*64*)
7773 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7774 ;;
7775 ia64*)
7776 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7777 ;;
7778 *)
7779 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7780 ;;
7781 esac
7782 fi
7783 if test "$with_gnu_ld" = no; then
7784 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7785 hardcode_libdir_separator=:
7786
7787 case $host_cpu in
7788 hppa*64*|ia64*)
7789 hardcode_libdir_flag_spec_ld='+b $libdir'
7790 hardcode_direct=no
7791 hardcode_shlibpath_var=no
7792 ;;
7793 *)
7794 hardcode_direct=yes
7795 export_dynamic_flag_spec='${wl}-E'
7796
7797 # hardcode_minus_L: Not really in the search PATH,
7798 # but as the default location of the library.
7799 hardcode_minus_L=yes
7800 ;;
7801 esac
7802 fi
7803 ;;
7804
7805 irix5* | irix6* | nonstopux*)
7806 if test "$GCC" = yes; then
7807 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7808 else
7809 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7810 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7811 fi
7812 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7813 hardcode_libdir_separator=:
7814 link_all_deplibs=yes
7815 ;;
7816
7817 netbsd*)
7818 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7819 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7820 else
7821 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7822 fi
7823 hardcode_libdir_flag_spec='-R$libdir'
7824 hardcode_direct=yes
7825 hardcode_shlibpath_var=no
7826 ;;
7827
7828 newsos6)
7829 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7830 hardcode_direct=yes
7831 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7832 hardcode_libdir_separator=:
7833 hardcode_shlibpath_var=no
7834 ;;
7835
7836 openbsd*)
7837 hardcode_direct=yes
7838 hardcode_shlibpath_var=no
7839 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7840 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7841 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7842 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7843 export_dynamic_flag_spec='${wl}-E'
7844 else
7845 case $host_os in
7846 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7847 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7848 hardcode_libdir_flag_spec='-R$libdir'
7849 ;;
7850 *)
7851 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7852 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7853 ;;
7854 esac
7855 fi
7856 ;;
7857
7858 os2*)
7859 hardcode_libdir_flag_spec='-L$libdir'
7860 hardcode_minus_L=yes
7861 allow_undefined_flag=unsupported
7862 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
7863 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7864 ;;
7865
7866 osf3*)
7867 if test "$GCC" = yes; then
7868 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7869 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7870 else
7871 allow_undefined_flag=' -expect_unresolved \*'
7872 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7873 fi
7874 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7875 hardcode_libdir_separator=:
7876 ;;
7877
7878 osf4* | osf5*) # as osf3* with the addition of -msym flag
7879 if test "$GCC" = yes; then
7880 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7881 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7882 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7883 else
7884 allow_undefined_flag=' -expect_unresolved \*'
7885 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7886 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7887 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7888
7889 # Both c and cxx compiler support -rpath directly
7890 hardcode_libdir_flag_spec='-rpath $libdir'
7891 fi
7892 hardcode_libdir_separator=:
7893 ;;
7894
7895 solaris*)
7896 no_undefined_flag=' -z text'
7897 if test "$GCC" = yes; then
7898 wlarc='${wl}'
7899 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7900 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7901 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7902 else
7903 wlarc=''
7904 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7905 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7906 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7907 fi
7908 hardcode_libdir_flag_spec='-R$libdir'
7909 hardcode_shlibpath_var=no
7910 case $host_os in
7911 solaris2.[0-5] | solaris2.[0-5].*) ;;
7912 *)
7913 # The compiler driver will combine linker options so we
7914 # cannot just pass the convience library names through
7915 # without $wl, iff we do not link with $LD.
7916 # Luckily, gcc supports the same syntax we need for Sun Studio.
7917 # Supported since Solaris 2.6 (maybe 2.5.1?)
7918 case $wlarc in
7919 '')
7920 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7921 *)
7922 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
7923 esac ;;
7924 esac
7925 link_all_deplibs=yes
7926 ;;
7927
7928 sunos4*)
7929 if test "x$host_vendor" = xsequent; then
7930 # Use $CC to link under sequent, because it throws in some extra .o
7931 # files that make .init and .fini sections work.
7932 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7933 else
7934 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7935 fi
7936 hardcode_libdir_flag_spec='-L$libdir'
7937 hardcode_direct=yes
7938 hardcode_minus_L=yes
7939 hardcode_shlibpath_var=no
7940 ;;
7941
7942 sysv4)
7943 case $host_vendor in
7944 sni)
7945 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7946 hardcode_direct=yes # is this really true???
7947 ;;
7948 siemens)
7949 ## LD is ld it makes a PLAMLIB
7950 ## CC just makes a GrossModule.
7951 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7952 reload_cmds='$CC -r -o $output$reload_objs'
7953 hardcode_direct=no
7954 ;;
7955 motorola)
7956 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7957 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7958 ;;
7959 esac
7960 runpath_var='LD_RUN_PATH'
7961 hardcode_shlibpath_var=no
7962 ;;
7963
7964 sysv4.3*)
7965 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7966 hardcode_shlibpath_var=no
7967 export_dynamic_flag_spec='-Bexport'
7968 ;;
7969
7970 sysv4*MP*)
7971 if test -d /usr/nec; then
7972 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7973 hardcode_shlibpath_var=no
7974 runpath_var=LD_RUN_PATH
7975 hardcode_runpath_var=yes
7976 ld_shlibs=yes
7977 fi
7978 ;;
7979
7980 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7981 no_undefined_flag='${wl}-z,text'
7982 archive_cmds_need_lc=no
7983 hardcode_shlibpath_var=no
7984 runpath_var='LD_RUN_PATH'
7985
7986 if test "$GCC" = yes; then
7987 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7988 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7989 else
7990 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7991 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7992 fi
7993 ;;
7994
7995 sysv5* | sco3.2v5* | sco5v6*)
7996 # Note: We can NOT use -z defs as we might desire, because we do not
7997 # link with -lc, and that would cause any symbols used from libc to
7998 # always be unresolved, which means just about no library would
7999 # ever link correctly. If we're not using GNU ld we use -z text
8000 # though, which does catch some bad symbols but isn't as heavy-handed
8001 # as -z defs.
8002 no_undefined_flag='${wl}-z,text'
8003 allow_undefined_flag='${wl}-z,nodefs'
8004 archive_cmds_need_lc=no
8005 hardcode_shlibpath_var=no
8006 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8007 hardcode_libdir_separator=':'
8008 link_all_deplibs=yes
8009 export_dynamic_flag_spec='${wl}-Bexport'
8010 runpath_var='LD_RUN_PATH'
8011
8012 if test "$GCC" = yes; then
8013 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8014 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8015 else
8016 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8017 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8018 fi
8019 ;;
8020
8021 uts4*)
8022 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8023 hardcode_libdir_flag_spec='-L$libdir'
8024 hardcode_shlibpath_var=no
8025 ;;
8026
8027 *)
8028 ld_shlibs=no
8029 ;;
8030 esac
8031 fi
8032
8033 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8034 echo "${ECHO_T}$ld_shlibs" >&6
8035 test "$ld_shlibs" = no && can_build_shared=no
8036
8037 #
8038 # Do we need to explicitly link libc?
8039 #
8040 case "x$archive_cmds_need_lc" in
8041 x|xyes)
8042 # Assume -lc should be added
8043 archive_cmds_need_lc=yes
8044
8045 if test "$enable_shared" = yes && test "$GCC" = yes; then
8046 case $archive_cmds in
8047 *'~'*)
8048 # FIXME: we may have to deal with multi-command sequences.
8049 ;;
8050 '$CC '*)
8051 # Test whether the compiler implicitly links with -lc since on some
8052 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8053 # to ld, don't add -lc before -lgcc.
8054 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8055 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8056 $rm conftest*
8057 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8058
8059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8060 (eval $ac_compile) 2>&5
8061 ac_status=$?
8062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063 (exit $ac_status); } 2>conftest.err; then
8064 soname=conftest
8065 lib=conftest
8066 libobjs=conftest.$ac_objext
8067 deplibs=
8068 wl=$lt_prog_compiler_wl
8069 pic_flag=$lt_prog_compiler_pic
8070 compiler_flags=-v
8071 linker_flags=-v
8072 verstring=
8073 output_objdir=.
8074 libname=conftest
8075 lt_save_allow_undefined_flag=$allow_undefined_flag
8076 allow_undefined_flag=
8077 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8078 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8079 ac_status=$?
8080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081 (exit $ac_status); }
8082 then
8083 archive_cmds_need_lc=no
8084 else
8085 archive_cmds_need_lc=yes
8086 fi
8087 allow_undefined_flag=$lt_save_allow_undefined_flag
8088 else
8089 cat conftest.err 1>&5
8090 fi
8091 $rm conftest*
8092 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8093 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8094 ;;
8095 esac
8096 fi
8097 ;;
8098 esac
8099
8100 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8101 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8102 library_names_spec=
8103 libname_spec='lib$name'
8104 soname_spec=
8105 shrext_cmds=".so"
8106 postinstall_cmds=
8107 postuninstall_cmds=
8108 finish_cmds=
8109 finish_eval=
8110 shlibpath_var=
8111 shlibpath_overrides_runpath=unknown
8112 version_type=none
8113 dynamic_linker="$host_os ld.so"
8114 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8115 if test "$GCC" = yes; then
8116 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8117 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8118 # if the path contains ";" then we assume it to be the separator
8119 # otherwise default to the standard path separator (i.e. ":") - it is
8120 # assumed that no part of a normal pathname contains ";" but that should
8121 # okay in the real world where ";" in dirpaths is itself problematic.
8122 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8123 else
8124 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8125 fi
8126 else
8127 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8128 fi
8129 need_lib_prefix=unknown
8130 hardcode_into_libs=no
8131
8132 # when you set need_version to no, make sure it does not cause -set_version
8133 # flags to be left without arguments
8134 need_version=unknown
8135
8136 case $host_os in
8137 aix3*)
8138 version_type=linux
8139 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8140 shlibpath_var=LIBPATH
8141
8142 # AIX 3 has no versioning support, so we append a major version to the name.
8143 soname_spec='${libname}${release}${shared_ext}$major'
8144 ;;
8145
8146 aix4* | aix5*)
8147 version_type=linux
8148 need_lib_prefix=no
8149 need_version=no
8150 hardcode_into_libs=yes
8151 if test "$host_cpu" = ia64; then
8152 # AIX 5 supports IA64
8153 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8154 shlibpath_var=LD_LIBRARY_PATH
8155 else
8156 # With GCC up to 2.95.x, collect2 would create an import file
8157 # for dependence libraries. The import file would start with
8158 # the line `#! .'. This would cause the generated library to
8159 # depend on `.', always an invalid library. This was fixed in
8160 # development snapshots of GCC prior to 3.0.
8161 case $host_os in
8162 aix4 | aix4.[01] | aix4.[01].*)
8163 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8164 echo ' yes '
8165 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8166 :
8167 else
8168 can_build_shared=no
8169 fi
8170 ;;
8171 esac
8172 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8173 # soname into executable. Probably we can add versioning support to
8174 # collect2, so additional links can be useful in future.
8175 if test "$aix_use_runtimelinking" = yes; then
8176 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8177 # instead of lib<name>.a to let people know that these are not
8178 # typical AIX shared libraries.
8179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8180 else
8181 # We preserve .a as extension for shared libraries through AIX4.2
8182 # and later when we are not doing run time linking.
8183 library_names_spec='${libname}${release}.a $libname.a'
8184 soname_spec='${libname}${release}${shared_ext}$major'
8185 fi
8186 shlibpath_var=LIBPATH
8187 fi
8188 ;;
8189
8190 amigaos*)
8191 library_names_spec='$libname.ixlibrary $libname.a'
8192 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8193 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
8194 ;;
8195
8196 beos*)
8197 library_names_spec='${libname}${shared_ext}'
8198 dynamic_linker="$host_os ld.so"
8199 shlibpath_var=LIBRARY_PATH
8200 ;;
8201
8202 bsdi[45]*)
8203 version_type=linux
8204 need_version=no
8205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8206 soname_spec='${libname}${release}${shared_ext}$major'
8207 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8208 shlibpath_var=LD_LIBRARY_PATH
8209 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8210 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8211 # the default ld.so.conf also contains /usr/contrib/lib and
8212 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8213 # libtool to hard-code these into programs
8214 ;;
8215
8216 cygwin* | mingw* | pw32*)
8217 version_type=windows
8218 shrext_cmds=".dll"
8219 need_version=no
8220 need_lib_prefix=no
8221
8222 case $GCC,$host_os in
8223 yes,cygwin* | yes,mingw* | yes,pw32*)
8224 library_names_spec='$libname.dll.a'
8225 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8226 postinstall_cmds='base_file=`basename \${file}`~
8227 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8228 dldir=$destdir/`dirname \$dlpath`~
8229 test -d \$dldir || mkdir -p \$dldir~
8230 $install_prog $dir/$dlname \$dldir/$dlname~
8231 chmod a+x \$dldir/$dlname'
8232 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8233 dlpath=$dir/\$dldll~
8234 $rm \$dlpath'
8235 shlibpath_overrides_runpath=yes
8236
8237 case $host_os in
8238 cygwin*)
8239 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8240 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8241 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8242 ;;
8243 mingw*)
8244 # MinGW DLLs use traditional 'lib' prefix
8245 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8246 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8247 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8248 # It is most probably a Windows format PATH printed by
8249 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8250 # path with ; separators, and with drive letters. We can handle the
8251 # drive letters (cygwin fileutils understands them), so leave them,
8252 # especially as we might pass files found there to a mingw objdump,
8253 # which wouldn't understand a cygwinified path. Ahh.
8254 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8255 else
8256 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8257 fi
8258 ;;
8259 pw32*)
8260 # pw32 DLLs use 'pw' prefix rather than 'lib'
8261 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8262 ;;
8263 esac
8264 ;;
8265
8266 *)
8267 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8268 ;;
8269 esac
8270 dynamic_linker='Win32 ld.exe'
8271 # FIXME: first we should search . and the directory the executable is in
8272 shlibpath_var=PATH
8273 ;;
8274
8275 darwin* | rhapsody*)
8276 dynamic_linker="$host_os dyld"
8277 version_type=darwin
8278 need_lib_prefix=no
8279 need_version=no
8280 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8281 soname_spec='${libname}${release}${major}$shared_ext'
8282 shlibpath_overrides_runpath=yes
8283 shlibpath_var=DYLD_LIBRARY_PATH
8284 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8285 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8286 if test "$GCC" = yes; then
8287 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8288 else
8289 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8290 fi
8291 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8292 ;;
8293
8294 dgux*)
8295 version_type=linux
8296 need_lib_prefix=no
8297 need_version=no
8298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8299 soname_spec='${libname}${release}${shared_ext}$major'
8300 shlibpath_var=LD_LIBRARY_PATH
8301 ;;
8302
8303 freebsd1*)
8304 dynamic_linker=no
8305 ;;
8306
8307 kfreebsd*-gnu)
8308 version_type=linux
8309 need_lib_prefix=no
8310 need_version=no
8311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8312 soname_spec='${libname}${release}${shared_ext}$major'
8313 shlibpath_var=LD_LIBRARY_PATH
8314 shlibpath_overrides_runpath=no
8315 hardcode_into_libs=yes
8316 dynamic_linker='GNU ld.so'
8317 ;;
8318
8319 freebsd* | dragonfly*)
8320 # DragonFly does not have aout. When/if they implement a new
8321 # versioning mechanism, adjust this.
8322 if test -x /usr/bin/objformat; then
8323 objformat=`/usr/bin/objformat`
8324 else
8325 case $host_os in
8326 freebsd[123]*) objformat=aout ;;
8327 *) objformat=elf ;;
8328 esac
8329 fi
8330 version_type=freebsd-$objformat
8331 case $version_type in
8332 freebsd-elf*)
8333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8334 need_version=no
8335 need_lib_prefix=no
8336 ;;
8337 freebsd-*)
8338 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8339 need_version=yes
8340 ;;
8341 esac
8342 shlibpath_var=LD_LIBRARY_PATH
8343 case $host_os in
8344 freebsd2*)
8345 shlibpath_overrides_runpath=yes
8346 ;;
8347 freebsd3.[01]* | freebsdelf3.[01]*)
8348 shlibpath_overrides_runpath=yes
8349 hardcode_into_libs=yes
8350 ;;
8351 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8352 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8353 shlibpath_overrides_runpath=no
8354 hardcode_into_libs=yes
8355 ;;
8356 freebsd*) # from 4.6 on
8357 shlibpath_overrides_runpath=yes
8358 hardcode_into_libs=yes
8359 ;;
8360 esac
8361 ;;
8362
8363 gnu*)
8364 version_type=linux
8365 need_lib_prefix=no
8366 need_version=no
8367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8368 soname_spec='${libname}${release}${shared_ext}$major'
8369 shlibpath_var=LD_LIBRARY_PATH
8370 hardcode_into_libs=yes
8371 ;;
8372
8373 hpux9* | hpux10* | hpux11*)
8374 # Give a soname corresponding to the major version so that dld.sl refuses to
8375 # link against other versions.
8376 version_type=sunos
8377 need_lib_prefix=no
8378 need_version=no
8379 case $host_cpu in
8380 ia64*)
8381 shrext_cmds='.so'
8382 hardcode_into_libs=yes
8383 dynamic_linker="$host_os dld.so"
8384 shlibpath_var=LD_LIBRARY_PATH
8385 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8387 soname_spec='${libname}${release}${shared_ext}$major'
8388 if test "X$HPUX_IA64_MODE" = X32; then
8389 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8390 else
8391 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8392 fi
8393 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8394 ;;
8395 hppa*64*)
8396 shrext_cmds='.sl'
8397 hardcode_into_libs=yes
8398 dynamic_linker="$host_os dld.sl"
8399 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8400 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8402 soname_spec='${libname}${release}${shared_ext}$major'
8403 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8404 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8405 ;;
8406 *)
8407 shrext_cmds='.sl'
8408 dynamic_linker="$host_os dld.sl"
8409 shlibpath_var=SHLIB_PATH
8410 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8412 soname_spec='${libname}${release}${shared_ext}$major'
8413 ;;
8414 esac
8415 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8416 postinstall_cmds='chmod 555 $lib'
8417 ;;
8418
8419 interix3*)
8420 version_type=linux
8421 need_lib_prefix=no
8422 need_version=no
8423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8424 soname_spec='${libname}${release}${shared_ext}$major'
8425 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8426 shlibpath_var=LD_LIBRARY_PATH
8427 shlibpath_overrides_runpath=no
8428 hardcode_into_libs=yes
8429 ;;
8430
8431 irix5* | irix6* | nonstopux*)
8432 case $host_os in
8433 nonstopux*) version_type=nonstopux ;;
8434 *)
8435 if test "$lt_cv_prog_gnu_ld" = yes; then
8436 version_type=linux
8437 else
8438 version_type=irix
8439 fi ;;
8440 esac
8441 need_lib_prefix=no
8442 need_version=no
8443 soname_spec='${libname}${release}${shared_ext}$major'
8444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8445 case $host_os in
8446 irix5* | nonstopux*)
8447 libsuff= shlibsuff=
8448 ;;
8449 *)
8450 case $LD in # libtool.m4 will add one of these switches to LD
8451 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8452 libsuff= shlibsuff= libmagic=32-bit;;
8453 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8454 libsuff=32 shlibsuff=N32 libmagic=N32;;
8455 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8456 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8457 *) libsuff= shlibsuff= libmagic=never-match;;
8458 esac
8459 ;;
8460 esac
8461 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8462 shlibpath_overrides_runpath=no
8463 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8464 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8465 hardcode_into_libs=yes
8466 ;;
8467
8468 # No shared lib support for Linux oldld, aout, or coff.
8469 linux*oldld* | linux*aout* | linux*coff*)
8470 dynamic_linker=no
8471 ;;
8472
8473 # This must be Linux ELF.
8474 linux*)
8475 version_type=linux
8476 need_lib_prefix=no
8477 need_version=no
8478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8479 soname_spec='${libname}${release}${shared_ext}$major'
8480 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8481 shlibpath_var=LD_LIBRARY_PATH
8482 shlibpath_overrides_runpath=no
8483 # This implies no fast_install, which is unacceptable.
8484 # Some rework will be needed to allow for fast_install
8485 # before this can be enabled.
8486 hardcode_into_libs=yes
8487
8488 # find out which ABI we are using
8489 libsuff=
8490 case "$host_cpu" in
8491 x86_64*|s390x*|powerpc64*)
8492 echo '#line 8492 "configure"' > conftest.$ac_ext
8493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8494 (eval $ac_compile) 2>&5
8495 ac_status=$?
8496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497 (exit $ac_status); }; then
8498 case `/usr/bin/file conftest.$ac_objext` in
8499 *64-bit*)
8500 libsuff=64
8501 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8502 ;;
8503 esac
8504 fi
8505 rm -rf conftest*
8506 ;;
8507 esac
8508
8509 # Append ld.so.conf contents to the search path
8510 if test -f /etc/ld.so.conf; then
8511 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8512 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8513 fi
8514
8515 # We used to test for /lib/ld.so.1 and disable shared libraries on
8516 # powerpc, because MkLinux only supported shared libraries with the
8517 # GNU dynamic linker. Since this was broken with cross compilers,
8518 # most powerpc-linux boxes support dynamic linking these days and
8519 # people can always --disable-shared, the test was removed, and we
8520 # assume the GNU/Linux dynamic linker is in use.
8521 dynamic_linker='GNU/Linux ld.so'
8522 ;;
8523
8524 knetbsd*-gnu)
8525 version_type=linux
8526 need_lib_prefix=no
8527 need_version=no
8528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8529 soname_spec='${libname}${release}${shared_ext}$major'
8530 shlibpath_var=LD_LIBRARY_PATH
8531 shlibpath_overrides_runpath=no
8532 hardcode_into_libs=yes
8533 dynamic_linker='GNU ld.so'
8534 ;;
8535
8536 netbsd*)
8537 version_type=sunos
8538 need_lib_prefix=no
8539 need_version=no
8540 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8542 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8543 dynamic_linker='NetBSD (a.out) ld.so'
8544 else
8545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8546 soname_spec='${libname}${release}${shared_ext}$major'
8547 dynamic_linker='NetBSD ld.elf_so'
8548 fi
8549 shlibpath_var=LD_LIBRARY_PATH
8550 shlibpath_overrides_runpath=yes
8551 hardcode_into_libs=yes
8552 ;;
8553
8554 newsos6)
8555 version_type=linux
8556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8557 shlibpath_var=LD_LIBRARY_PATH
8558 shlibpath_overrides_runpath=yes
8559 ;;
8560
8561 nto-qnx*)
8562 version_type=linux
8563 need_lib_prefix=no
8564 need_version=no
8565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8566 soname_spec='${libname}${release}${shared_ext}$major'
8567 shlibpath_var=LD_LIBRARY_PATH
8568 shlibpath_overrides_runpath=yes
8569 ;;
8570
8571 openbsd*)
8572 version_type=sunos
8573 sys_lib_dlsearch_path_spec="/usr/lib"
8574 need_lib_prefix=no
8575 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8576 case $host_os in
8577 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8578 *) need_version=no ;;
8579 esac
8580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8581 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8582 shlibpath_var=LD_LIBRARY_PATH
8583 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8584 case $host_os in
8585 openbsd2.[89] | openbsd2.[89].*)
8586 shlibpath_overrides_runpath=no
8587 ;;
8588 *)
8589 shlibpath_overrides_runpath=yes
8590 ;;
8591 esac
8592 else
8593 shlibpath_overrides_runpath=yes
8594 fi
8595 ;;
8596
8597 os2*)
8598 libname_spec='$name'
8599 shrext_cmds=".dll"
8600 need_lib_prefix=no
8601 library_names_spec='$libname${shared_ext} $libname.a'
8602 dynamic_linker='OS/2 ld.exe'
8603 shlibpath_var=LIBPATH
8604 ;;
8605
8606 osf3* | osf4* | osf5*)
8607 version_type=osf
8608 need_lib_prefix=no
8609 need_version=no
8610 soname_spec='${libname}${release}${shared_ext}$major'
8611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8612 shlibpath_var=LD_LIBRARY_PATH
8613 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8614 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8615 ;;
8616
8617 solaris*)
8618 version_type=linux
8619 need_lib_prefix=no
8620 need_version=no
8621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8622 soname_spec='${libname}${release}${shared_ext}$major'
8623 shlibpath_var=LD_LIBRARY_PATH
8624 shlibpath_overrides_runpath=yes
8625 hardcode_into_libs=yes
8626 # ldd complains unless libraries are executable
8627 postinstall_cmds='chmod +x $lib'
8628 ;;
8629
8630 sunos4*)
8631 version_type=sunos
8632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8633 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8634 shlibpath_var=LD_LIBRARY_PATH
8635 shlibpath_overrides_runpath=yes
8636 if test "$with_gnu_ld" = yes; then
8637 need_lib_prefix=no
8638 fi
8639 need_version=yes
8640 ;;
8641
8642 sysv4 | sysv4.3*)
8643 version_type=linux
8644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8645 soname_spec='${libname}${release}${shared_ext}$major'
8646 shlibpath_var=LD_LIBRARY_PATH
8647 case $host_vendor in
8648 sni)
8649 shlibpath_overrides_runpath=no
8650 need_lib_prefix=no
8651 export_dynamic_flag_spec='${wl}-Blargedynsym'
8652 runpath_var=LD_RUN_PATH
8653 ;;
8654 siemens)
8655 need_lib_prefix=no
8656 ;;
8657 motorola)
8658 need_lib_prefix=no
8659 need_version=no
8660 shlibpath_overrides_runpath=no
8661 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8662 ;;
8663 esac
8664 ;;
8665
8666 sysv4*MP*)
8667 if test -d /usr/nec ;then
8668 version_type=linux
8669 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8670 soname_spec='$libname${shared_ext}.$major'
8671 shlibpath_var=LD_LIBRARY_PATH
8672 fi
8673 ;;
8674
8675 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8676 version_type=freebsd-elf
8677 need_lib_prefix=no
8678 need_version=no
8679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8680 soname_spec='${libname}${release}${shared_ext}$major'
8681 shlibpath_var=LD_LIBRARY_PATH
8682 hardcode_into_libs=yes
8683 if test "$with_gnu_ld" = yes; then
8684 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8685 shlibpath_overrides_runpath=no
8686 else
8687 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8688 shlibpath_overrides_runpath=yes
8689 case $host_os in
8690 sco3.2v5*)
8691 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8692 ;;
8693 esac
8694 fi
8695 sys_lib_dlsearch_path_spec='/usr/lib'
8696 ;;
8697
8698 uts4*)
8699 version_type=linux
8700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8701 soname_spec='${libname}${release}${shared_ext}$major'
8702 shlibpath_var=LD_LIBRARY_PATH
8703 ;;
8704
8705 *)
8706 dynamic_linker=no
8707 ;;
8708 esac
8709 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8710 echo "${ECHO_T}$dynamic_linker" >&6
8711 test "$dynamic_linker" = no && can_build_shared=no
8712
8713 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8714 if test "$GCC" = yes; then
8715 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8716 fi
8717
8718 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8719 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8720 hardcode_action=
8721 if test -n "$hardcode_libdir_flag_spec" || \
8722 test -n "$runpath_var" || \
8723 test "X$hardcode_automatic" = "Xyes" ; then
8724
8725 # We can hardcode non-existant directories.
8726 if test "$hardcode_direct" != no &&
8727 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8728 # have to relink, otherwise we might link with an installed library
8729 # when we should be linking with a yet-to-be-installed one
8730 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8731 test "$hardcode_minus_L" != no; then
8732 # Linking always hardcodes the temporary library directory.
8733 hardcode_action=relink
8734 else
8735 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8736 hardcode_action=immediate
8737 fi
8738 else
8739 # We cannot hardcode anything, or else we can only hardcode existing
8740 # directories.
8741 hardcode_action=unsupported
8742 fi
8743 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8744 echo "${ECHO_T}$hardcode_action" >&6
8745
8746 if test "$hardcode_action" = relink; then
8747 # Fast installation is not supported
8748 enable_fast_install=no
8749 elif test "$shlibpath_overrides_runpath" = yes ||
8750 test "$enable_shared" = no; then
8751 # Fast installation is not necessary
8752 enable_fast_install=needless
8753 fi
8754
8755 striplib=
8756 old_striplib=
8757 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8758 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8759 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8760 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8761 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8762 echo "$as_me:$LINENO: result: yes" >&5
8763 echo "${ECHO_T}yes" >&6
8764 else
8765 # FIXME - insert some real tests, host_os isn't really good enough
8766 case $host_os in
8767 darwin*)
8768 if test -n "$STRIP" ; then
8769 striplib="$STRIP -x"
8770 echo "$as_me:$LINENO: result: yes" >&5
8771 echo "${ECHO_T}yes" >&6
8772 else
8773 echo "$as_me:$LINENO: result: no" >&5
8774 echo "${ECHO_T}no" >&6
8775 fi
8776 ;;
8777 *)
8778 echo "$as_me:$LINENO: result: no" >&5
8779 echo "${ECHO_T}no" >&6
8780 ;;
8781 esac
8782 fi
8783
8784 if test "x$enable_dlopen" != xyes; then
8785 enable_dlopen=unknown
8786 enable_dlopen_self=unknown
8787 enable_dlopen_self_static=unknown
8788 else
8789 lt_cv_dlopen=no
8790 lt_cv_dlopen_libs=
8791
8792 case $host_os in
8793 beos*)
8794 lt_cv_dlopen="load_add_on"
8795 lt_cv_dlopen_libs=
8796 lt_cv_dlopen_self=yes
8797 ;;
8798
8799 mingw* | pw32*)
8800 lt_cv_dlopen="LoadLibrary"
8801 lt_cv_dlopen_libs=
8802 ;;
8803
8804 cygwin*)
8805 lt_cv_dlopen="dlopen"
8806 lt_cv_dlopen_libs=
8807 ;;
8808
8809 darwin*)
8810 # if libdl is installed we need to link against it
8811 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8812 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8813 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8814 echo $ECHO_N "(cached) $ECHO_C" >&6
8815 else
8816 ac_check_lib_save_LIBS=$LIBS
8817 LIBS="-ldl $LIBS"
8818 cat >conftest.$ac_ext <<_ACEOF
8819 /* confdefs.h. */
8820 _ACEOF
8821 cat confdefs.h >>conftest.$ac_ext
8822 cat >>conftest.$ac_ext <<_ACEOF
8823 /* end confdefs.h. */
8824
8825 /* Override any gcc2 internal prototype to avoid an error. */
8826 #ifdef __cplusplus
8827 extern "C"
8828 #endif
8829 /* We use char because int might match the return type of a gcc2
8830 builtin and then its argument prototype would still apply. */
8831 char dlopen ();
8832 int
8833 main ()
8834 {
8835 dlopen ();
8836 ;
8837 return 0;
8838 }
8839 _ACEOF
8840 rm -f conftest.$ac_objext conftest$ac_exeext
8841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8842 (eval $ac_link) 2>conftest.er1
8843 ac_status=$?
8844 grep -v '^ *+' conftest.er1 >conftest.err
8845 rm -f conftest.er1
8846 cat conftest.err >&5
8847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848 (exit $ac_status); } &&
8849 { ac_try='test -z "$ac_c_werror_flag"
8850 || test ! -s conftest.err'
8851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8852 (eval $ac_try) 2>&5
8853 ac_status=$?
8854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855 (exit $ac_status); }; } &&
8856 { ac_try='test -s conftest$ac_exeext'
8857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8858 (eval $ac_try) 2>&5
8859 ac_status=$?
8860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8861 (exit $ac_status); }; }; then
8862 ac_cv_lib_dl_dlopen=yes
8863 else
8864 echo "$as_me: failed program was:" >&5
8865 sed 's/^/| /' conftest.$ac_ext >&5
8866
8867 ac_cv_lib_dl_dlopen=no
8868 fi
8869 rm -f conftest.err conftest.$ac_objext \
8870 conftest$ac_exeext conftest.$ac_ext
8871 LIBS=$ac_check_lib_save_LIBS
8872 fi
8873 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8874 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8875 if test $ac_cv_lib_dl_dlopen = yes; then
8876 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8877 else
8878
8879 lt_cv_dlopen="dyld"
8880 lt_cv_dlopen_libs=
8881 lt_cv_dlopen_self=yes
8882
8883 fi
8884
8885 ;;
8886
8887 *)
8888 echo "$as_me:$LINENO: checking for shl_load" >&5
8889 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8890 if test "${ac_cv_func_shl_load+set}" = set; then
8891 echo $ECHO_N "(cached) $ECHO_C" >&6
8892 else
8893 cat >conftest.$ac_ext <<_ACEOF
8894 /* confdefs.h. */
8895 _ACEOF
8896 cat confdefs.h >>conftest.$ac_ext
8897 cat >>conftest.$ac_ext <<_ACEOF
8898 /* end confdefs.h. */
8899 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8900 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8901 #define shl_load innocuous_shl_load
8902
8903 /* System header to define __stub macros and hopefully few prototypes,
8904 which can conflict with char shl_load (); below.
8905 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8906 <limits.h> exists even on freestanding compilers. */
8907
8908 #ifdef __STDC__
8909 # include <limits.h>
8910 #else
8911 # include <assert.h>
8912 #endif
8913
8914 #undef shl_load
8915
8916 /* Override any gcc2 internal prototype to avoid an error. */
8917 #ifdef __cplusplus
8918 extern "C"
8919 {
8920 #endif
8921 /* We use char because int might match the return type of a gcc2
8922 builtin and then its argument prototype would still apply. */
8923 char shl_load ();
8924 /* The GNU C library defines this for functions which it implements
8925 to always fail with ENOSYS. Some functions are actually named
8926 something starting with __ and the normal name is an alias. */
8927 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8928 choke me
8929 #else
8930 char (*f) () = shl_load;
8931 #endif
8932 #ifdef __cplusplus
8933 }
8934 #endif
8935
8936 int
8937 main ()
8938 {
8939 return f != shl_load;
8940 ;
8941 return 0;
8942 }
8943 _ACEOF
8944 rm -f conftest.$ac_objext conftest$ac_exeext
8945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8946 (eval $ac_link) 2>conftest.er1
8947 ac_status=$?
8948 grep -v '^ *+' conftest.er1 >conftest.err
8949 rm -f conftest.er1
8950 cat conftest.err >&5
8951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952 (exit $ac_status); } &&
8953 { ac_try='test -z "$ac_c_werror_flag"
8954 || test ! -s conftest.err'
8955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8956 (eval $ac_try) 2>&5
8957 ac_status=$?
8958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959 (exit $ac_status); }; } &&
8960 { ac_try='test -s conftest$ac_exeext'
8961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8962 (eval $ac_try) 2>&5
8963 ac_status=$?
8964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8965 (exit $ac_status); }; }; then
8966 ac_cv_func_shl_load=yes
8967 else
8968 echo "$as_me: failed program was:" >&5
8969 sed 's/^/| /' conftest.$ac_ext >&5
8970
8971 ac_cv_func_shl_load=no
8972 fi
8973 rm -f conftest.err conftest.$ac_objext \
8974 conftest$ac_exeext conftest.$ac_ext
8975 fi
8976 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8977 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8978 if test $ac_cv_func_shl_load = yes; then
8979 lt_cv_dlopen="shl_load"
8980 else
8981 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8982 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8983 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8984 echo $ECHO_N "(cached) $ECHO_C" >&6
8985 else
8986 ac_check_lib_save_LIBS=$LIBS
8987 LIBS="-ldld $LIBS"
8988 cat >conftest.$ac_ext <<_ACEOF
8989 /* confdefs.h. */
8990 _ACEOF
8991 cat confdefs.h >>conftest.$ac_ext
8992 cat >>conftest.$ac_ext <<_ACEOF
8993 /* end confdefs.h. */
8994
8995 /* Override any gcc2 internal prototype to avoid an error. */
8996 #ifdef __cplusplus
8997 extern "C"
8998 #endif
8999 /* We use char because int might match the return type of a gcc2
9000 builtin and then its argument prototype would still apply. */
9001 char shl_load ();
9002 int
9003 main ()
9004 {
9005 shl_load ();
9006 ;
9007 return 0;
9008 }
9009 _ACEOF
9010 rm -f conftest.$ac_objext conftest$ac_exeext
9011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9012 (eval $ac_link) 2>conftest.er1
9013 ac_status=$?
9014 grep -v '^ *+' conftest.er1 >conftest.err
9015 rm -f conftest.er1
9016 cat conftest.err >&5
9017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9018 (exit $ac_status); } &&
9019 { ac_try='test -z "$ac_c_werror_flag"
9020 || test ! -s conftest.err'
9021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9022 (eval $ac_try) 2>&5
9023 ac_status=$?
9024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9025 (exit $ac_status); }; } &&
9026 { ac_try='test -s conftest$ac_exeext'
9027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9028 (eval $ac_try) 2>&5
9029 ac_status=$?
9030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9031 (exit $ac_status); }; }; then
9032 ac_cv_lib_dld_shl_load=yes
9033 else
9034 echo "$as_me: failed program was:" >&5
9035 sed 's/^/| /' conftest.$ac_ext >&5
9036
9037 ac_cv_lib_dld_shl_load=no
9038 fi
9039 rm -f conftest.err conftest.$ac_objext \
9040 conftest$ac_exeext conftest.$ac_ext
9041 LIBS=$ac_check_lib_save_LIBS
9042 fi
9043 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9044 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9045 if test $ac_cv_lib_dld_shl_load = yes; then
9046 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9047 else
9048 echo "$as_me:$LINENO: checking for dlopen" >&5
9049 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9050 if test "${ac_cv_func_dlopen+set}" = set; then
9051 echo $ECHO_N "(cached) $ECHO_C" >&6
9052 else
9053 cat >conftest.$ac_ext <<_ACEOF
9054 /* confdefs.h. */
9055 _ACEOF
9056 cat confdefs.h >>conftest.$ac_ext
9057 cat >>conftest.$ac_ext <<_ACEOF
9058 /* end confdefs.h. */
9059 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9060 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9061 #define dlopen innocuous_dlopen
9062
9063 /* System header to define __stub macros and hopefully few prototypes,
9064 which can conflict with char dlopen (); below.
9065 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9066 <limits.h> exists even on freestanding compilers. */
9067
9068 #ifdef __STDC__
9069 # include <limits.h>
9070 #else
9071 # include <assert.h>
9072 #endif
9073
9074 #undef dlopen
9075
9076 /* Override any gcc2 internal prototype to avoid an error. */
9077 #ifdef __cplusplus
9078 extern "C"
9079 {
9080 #endif
9081 /* We use char because int might match the return type of a gcc2
9082 builtin and then its argument prototype would still apply. */
9083 char dlopen ();
9084 /* The GNU C library defines this for functions which it implements
9085 to always fail with ENOSYS. Some functions are actually named
9086 something starting with __ and the normal name is an alias. */
9087 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9088 choke me
9089 #else
9090 char (*f) () = dlopen;
9091 #endif
9092 #ifdef __cplusplus
9093 }
9094 #endif
9095
9096 int
9097 main ()
9098 {
9099 return f != dlopen;
9100 ;
9101 return 0;
9102 }
9103 _ACEOF
9104 rm -f conftest.$ac_objext conftest$ac_exeext
9105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9106 (eval $ac_link) 2>conftest.er1
9107 ac_status=$?
9108 grep -v '^ *+' conftest.er1 >conftest.err
9109 rm -f conftest.er1
9110 cat conftest.err >&5
9111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112 (exit $ac_status); } &&
9113 { ac_try='test -z "$ac_c_werror_flag"
9114 || test ! -s conftest.err'
9115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9116 (eval $ac_try) 2>&5
9117 ac_status=$?
9118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9119 (exit $ac_status); }; } &&
9120 { ac_try='test -s conftest$ac_exeext'
9121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9122 (eval $ac_try) 2>&5
9123 ac_status=$?
9124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9125 (exit $ac_status); }; }; then
9126 ac_cv_func_dlopen=yes
9127 else
9128 echo "$as_me: failed program was:" >&5
9129 sed 's/^/| /' conftest.$ac_ext >&5
9130
9131 ac_cv_func_dlopen=no
9132 fi
9133 rm -f conftest.err conftest.$ac_objext \
9134 conftest$ac_exeext conftest.$ac_ext
9135 fi
9136 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9137 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9138 if test $ac_cv_func_dlopen = yes; then
9139 lt_cv_dlopen="dlopen"
9140 else
9141 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9142 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9143 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9144 echo $ECHO_N "(cached) $ECHO_C" >&6
9145 else
9146 ac_check_lib_save_LIBS=$LIBS
9147 LIBS="-ldl $LIBS"
9148 cat >conftest.$ac_ext <<_ACEOF
9149 /* confdefs.h. */
9150 _ACEOF
9151 cat confdefs.h >>conftest.$ac_ext
9152 cat >>conftest.$ac_ext <<_ACEOF
9153 /* end confdefs.h. */
9154
9155 /* Override any gcc2 internal prototype to avoid an error. */
9156 #ifdef __cplusplus
9157 extern "C"
9158 #endif
9159 /* We use char because int might match the return type of a gcc2
9160 builtin and then its argument prototype would still apply. */
9161 char dlopen ();
9162 int
9163 main ()
9164 {
9165 dlopen ();
9166 ;
9167 return 0;
9168 }
9169 _ACEOF
9170 rm -f conftest.$ac_objext conftest$ac_exeext
9171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9172 (eval $ac_link) 2>conftest.er1
9173 ac_status=$?
9174 grep -v '^ *+' conftest.er1 >conftest.err
9175 rm -f conftest.er1
9176 cat conftest.err >&5
9177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178 (exit $ac_status); } &&
9179 { ac_try='test -z "$ac_c_werror_flag"
9180 || test ! -s conftest.err'
9181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9182 (eval $ac_try) 2>&5
9183 ac_status=$?
9184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9185 (exit $ac_status); }; } &&
9186 { ac_try='test -s conftest$ac_exeext'
9187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9188 (eval $ac_try) 2>&5
9189 ac_status=$?
9190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9191 (exit $ac_status); }; }; then
9192 ac_cv_lib_dl_dlopen=yes
9193 else
9194 echo "$as_me: failed program was:" >&5
9195 sed 's/^/| /' conftest.$ac_ext >&5
9196
9197 ac_cv_lib_dl_dlopen=no
9198 fi
9199 rm -f conftest.err conftest.$ac_objext \
9200 conftest$ac_exeext conftest.$ac_ext
9201 LIBS=$ac_check_lib_save_LIBS
9202 fi
9203 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9204 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9205 if test $ac_cv_lib_dl_dlopen = yes; then
9206 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9207 else
9208 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9209 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9210 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9211 echo $ECHO_N "(cached) $ECHO_C" >&6
9212 else
9213 ac_check_lib_save_LIBS=$LIBS
9214 LIBS="-lsvld $LIBS"
9215 cat >conftest.$ac_ext <<_ACEOF
9216 /* confdefs.h. */
9217 _ACEOF
9218 cat confdefs.h >>conftest.$ac_ext
9219 cat >>conftest.$ac_ext <<_ACEOF
9220 /* end confdefs.h. */
9221
9222 /* Override any gcc2 internal prototype to avoid an error. */
9223 #ifdef __cplusplus
9224 extern "C"
9225 #endif
9226 /* We use char because int might match the return type of a gcc2
9227 builtin and then its argument prototype would still apply. */
9228 char dlopen ();
9229 int
9230 main ()
9231 {
9232 dlopen ();
9233 ;
9234 return 0;
9235 }
9236 _ACEOF
9237 rm -f conftest.$ac_objext conftest$ac_exeext
9238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9239 (eval $ac_link) 2>conftest.er1
9240 ac_status=$?
9241 grep -v '^ *+' conftest.er1 >conftest.err
9242 rm -f conftest.er1
9243 cat conftest.err >&5
9244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9245 (exit $ac_status); } &&
9246 { ac_try='test -z "$ac_c_werror_flag"
9247 || test ! -s conftest.err'
9248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9249 (eval $ac_try) 2>&5
9250 ac_status=$?
9251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9252 (exit $ac_status); }; } &&
9253 { ac_try='test -s conftest$ac_exeext'
9254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9255 (eval $ac_try) 2>&5
9256 ac_status=$?
9257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9258 (exit $ac_status); }; }; then
9259 ac_cv_lib_svld_dlopen=yes
9260 else
9261 echo "$as_me: failed program was:" >&5
9262 sed 's/^/| /' conftest.$ac_ext >&5
9263
9264 ac_cv_lib_svld_dlopen=no
9265 fi
9266 rm -f conftest.err conftest.$ac_objext \
9267 conftest$ac_exeext conftest.$ac_ext
9268 LIBS=$ac_check_lib_save_LIBS
9269 fi
9270 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9271 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9272 if test $ac_cv_lib_svld_dlopen = yes; then
9273 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9274 else
9275 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9276 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9277 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9278 echo $ECHO_N "(cached) $ECHO_C" >&6
9279 else
9280 ac_check_lib_save_LIBS=$LIBS
9281 LIBS="-ldld $LIBS"
9282 cat >conftest.$ac_ext <<_ACEOF
9283 /* confdefs.h. */
9284 _ACEOF
9285 cat confdefs.h >>conftest.$ac_ext
9286 cat >>conftest.$ac_ext <<_ACEOF
9287 /* end confdefs.h. */
9288
9289 /* Override any gcc2 internal prototype to avoid an error. */
9290 #ifdef __cplusplus
9291 extern "C"
9292 #endif
9293 /* We use char because int might match the return type of a gcc2
9294 builtin and then its argument prototype would still apply. */
9295 char dld_link ();
9296 int
9297 main ()
9298 {
9299 dld_link ();
9300 ;
9301 return 0;
9302 }
9303 _ACEOF
9304 rm -f conftest.$ac_objext conftest$ac_exeext
9305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9306 (eval $ac_link) 2>conftest.er1
9307 ac_status=$?
9308 grep -v '^ *+' conftest.er1 >conftest.err
9309 rm -f conftest.er1
9310 cat conftest.err >&5
9311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9312 (exit $ac_status); } &&
9313 { ac_try='test -z "$ac_c_werror_flag"
9314 || test ! -s conftest.err'
9315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9316 (eval $ac_try) 2>&5
9317 ac_status=$?
9318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9319 (exit $ac_status); }; } &&
9320 { ac_try='test -s conftest$ac_exeext'
9321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9322 (eval $ac_try) 2>&5
9323 ac_status=$?
9324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9325 (exit $ac_status); }; }; then
9326 ac_cv_lib_dld_dld_link=yes
9327 else
9328 echo "$as_me: failed program was:" >&5
9329 sed 's/^/| /' conftest.$ac_ext >&5
9330
9331 ac_cv_lib_dld_dld_link=no
9332 fi
9333 rm -f conftest.err conftest.$ac_objext \
9334 conftest$ac_exeext conftest.$ac_ext
9335 LIBS=$ac_check_lib_save_LIBS
9336 fi
9337 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9338 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9339 if test $ac_cv_lib_dld_dld_link = yes; then
9340 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9341 fi
9342
9343
9344 fi
9345
9346
9347 fi
9348
9349
9350 fi
9351
9352
9353 fi
9354
9355
9356 fi
9357
9358 ;;
9359 esac
9360
9361 if test "x$lt_cv_dlopen" != xno; then
9362 enable_dlopen=yes
9363 else
9364 enable_dlopen=no
9365 fi
9366
9367 case $lt_cv_dlopen in
9368 dlopen)
9369 save_CPPFLAGS="$CPPFLAGS"
9370 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9371
9372 save_LDFLAGS="$LDFLAGS"
9373 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9374
9375 save_LIBS="$LIBS"
9376 LIBS="$lt_cv_dlopen_libs $LIBS"
9377
9378 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9379 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9380 if test "${lt_cv_dlopen_self+set}" = set; then
9381 echo $ECHO_N "(cached) $ECHO_C" >&6
9382 else
9383 if test "$cross_compiling" = yes; then :
9384 lt_cv_dlopen_self=cross
9385 else
9386 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9387 lt_status=$lt_dlunknown
9388 cat > conftest.$ac_ext <<EOF
9389 #line 9389 "configure"
9390 #include "confdefs.h"
9391
9392 #if HAVE_DLFCN_H
9393 #include <dlfcn.h>
9394 #endif
9395
9396 #include <stdio.h>
9397
9398 #ifdef RTLD_GLOBAL
9399 # define LT_DLGLOBAL RTLD_GLOBAL
9400 #else
9401 # ifdef DL_GLOBAL
9402 # define LT_DLGLOBAL DL_GLOBAL
9403 # else
9404 # define LT_DLGLOBAL 0
9405 # endif
9406 #endif
9407
9408 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9409 find out it does not work in some platform. */
9410 #ifndef LT_DLLAZY_OR_NOW
9411 # ifdef RTLD_LAZY
9412 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9413 # else
9414 # ifdef DL_LAZY
9415 # define LT_DLLAZY_OR_NOW DL_LAZY
9416 # else
9417 # ifdef RTLD_NOW
9418 # define LT_DLLAZY_OR_NOW RTLD_NOW
9419 # else
9420 # ifdef DL_NOW
9421 # define LT_DLLAZY_OR_NOW DL_NOW
9422 # else
9423 # define LT_DLLAZY_OR_NOW 0
9424 # endif
9425 # endif
9426 # endif
9427 # endif
9428 #endif
9429
9430 #ifdef __cplusplus
9431 extern "C" void exit (int);
9432 #endif
9433
9434 void fnord() { int i=42;}
9435 int main ()
9436 {
9437 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9438 int status = $lt_dlunknown;
9439
9440 if (self)
9441 {
9442 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9443 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9444 /* dlclose (self); */
9445 }
9446 else
9447 puts (dlerror ());
9448
9449 exit (status);
9450 }
9451 EOF
9452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9453 (eval $ac_link) 2>&5
9454 ac_status=$?
9455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9456 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9457 (./conftest; exit; ) >&5 2>/dev/null
9458 lt_status=$?
9459 case x$lt_status in
9460 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9461 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9462 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9463 esac
9464 else :
9465 # compilation failed
9466 lt_cv_dlopen_self=no
9467 fi
9468 fi
9469 rm -fr conftest*
9470
9471
9472 fi
9473 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9474 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9475
9476 if test "x$lt_cv_dlopen_self" = xyes; then
9477 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9478 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9479 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9480 if test "${lt_cv_dlopen_self_static+set}" = set; then
9481 echo $ECHO_N "(cached) $ECHO_C" >&6
9482 else
9483 if test "$cross_compiling" = yes; then :
9484 lt_cv_dlopen_self_static=cross
9485 else
9486 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9487 lt_status=$lt_dlunknown
9488 cat > conftest.$ac_ext <<EOF
9489 #line 9489 "configure"
9490 #include "confdefs.h"
9491
9492 #if HAVE_DLFCN_H
9493 #include <dlfcn.h>
9494 #endif
9495
9496 #include <stdio.h>
9497
9498 #ifdef RTLD_GLOBAL
9499 # define LT_DLGLOBAL RTLD_GLOBAL
9500 #else
9501 # ifdef DL_GLOBAL
9502 # define LT_DLGLOBAL DL_GLOBAL
9503 # else
9504 # define LT_DLGLOBAL 0
9505 # endif
9506 #endif
9507
9508 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9509 find out it does not work in some platform. */
9510 #ifndef LT_DLLAZY_OR_NOW
9511 # ifdef RTLD_LAZY
9512 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9513 # else
9514 # ifdef DL_LAZY
9515 # define LT_DLLAZY_OR_NOW DL_LAZY
9516 # else
9517 # ifdef RTLD_NOW
9518 # define LT_DLLAZY_OR_NOW RTLD_NOW
9519 # else
9520 # ifdef DL_NOW
9521 # define LT_DLLAZY_OR_NOW DL_NOW
9522 # else
9523 # define LT_DLLAZY_OR_NOW 0
9524 # endif
9525 # endif
9526 # endif
9527 # endif
9528 #endif
9529
9530 #ifdef __cplusplus
9531 extern "C" void exit (int);
9532 #endif
9533
9534 void fnord() { int i=42;}
9535 int main ()
9536 {
9537 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9538 int status = $lt_dlunknown;
9539
9540 if (self)
9541 {
9542 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9543 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9544 /* dlclose (self); */
9545 }
9546 else
9547 puts (dlerror ());
9548
9549 exit (status);
9550 }
9551 EOF
9552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9553 (eval $ac_link) 2>&5
9554 ac_status=$?
9555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9557 (./conftest; exit; ) >&5 2>/dev/null
9558 lt_status=$?
9559 case x$lt_status in
9560 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9561 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9562 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9563 esac
9564 else :
9565 # compilation failed
9566 lt_cv_dlopen_self_static=no
9567 fi
9568 fi
9569 rm -fr conftest*
9570
9571
9572 fi
9573 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9574 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9575 fi
9576
9577 CPPFLAGS="$save_CPPFLAGS"
9578 LDFLAGS="$save_LDFLAGS"
9579 LIBS="$save_LIBS"
9580 ;;
9581 esac
9582
9583 case $lt_cv_dlopen_self in
9584 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9585 *) enable_dlopen_self=unknown ;;
9586 esac
9587
9588 case $lt_cv_dlopen_self_static in
9589 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9590 *) enable_dlopen_self_static=unknown ;;
9591 esac
9592 fi
9593
9594
9595 # Report which library types will actually be built
9596 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9597 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9598 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9599 echo "${ECHO_T}$can_build_shared" >&6
9600
9601 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9602 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9603 test "$can_build_shared" = "no" && enable_shared=no
9604
9605 # On AIX, shared libraries and static libraries use the same namespace, and
9606 # are all built from PIC.
9607 case $host_os in
9608 aix3*)
9609 test "$enable_shared" = yes && enable_static=no
9610 if test -n "$RANLIB"; then
9611 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9612 postinstall_cmds='$RANLIB $lib'
9613 fi
9614 ;;
9615
9616 aix4* | aix5*)
9617 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9618 test "$enable_shared" = yes && enable_static=no
9619 fi
9620 ;;
9621 esac
9622 echo "$as_me:$LINENO: result: $enable_shared" >&5
9623 echo "${ECHO_T}$enable_shared" >&6
9624
9625 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9626 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9627 # Make sure either enable_shared or enable_static is yes.
9628 test "$enable_shared" = yes || enable_static=yes
9629 echo "$as_me:$LINENO: result: $enable_static" >&5
9630 echo "${ECHO_T}$enable_static" >&6
9631
9632 # The else clause should only fire when bootstrapping the
9633 # libtool distribution, otherwise you forgot to ship ltmain.sh
9634 # with your package, and you will get complaints that there are
9635 # no rules to generate ltmain.sh.
9636 if test -f "$ltmain"; then
9637 # See if we are running on zsh, and set the options which allow our commands through
9638 # without removal of \ escapes.
9639 if test -n "${ZSH_VERSION+set}" ; then
9640 setopt NO_GLOB_SUBST
9641 fi
9642 # Now quote all the things that may contain metacharacters while being
9643 # careful not to overquote the AC_SUBSTed values. We take copies of the
9644 # variables and quote the copies for generation of the libtool script.
9645 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9646 SED SHELL STRIP \
9647 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9648 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9649 deplibs_check_method reload_flag reload_cmds need_locks \
9650 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9651 lt_cv_sys_global_symbol_to_c_name_address \
9652 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9653 old_postinstall_cmds old_postuninstall_cmds \
9654 compiler \
9655 CC \
9656 LD \
9657 lt_prog_compiler_wl \
9658 lt_prog_compiler_pic \
9659 lt_prog_compiler_static \
9660 lt_prog_compiler_no_builtin_flag \
9661 export_dynamic_flag_spec \
9662 thread_safe_flag_spec \
9663 whole_archive_flag_spec \
9664 enable_shared_with_static_runtimes \
9665 old_archive_cmds \
9666 old_archive_from_new_cmds \
9667 predep_objects \
9668 postdep_objects \
9669 predeps \
9670 postdeps \
9671 compiler_lib_search_path \
9672 archive_cmds \
9673 archive_expsym_cmds \
9674 postinstall_cmds \
9675 postuninstall_cmds \
9676 old_archive_from_expsyms_cmds \
9677 allow_undefined_flag \
9678 no_undefined_flag \
9679 export_symbols_cmds \
9680 hardcode_libdir_flag_spec \
9681 hardcode_libdir_flag_spec_ld \
9682 hardcode_libdir_separator \
9683 hardcode_automatic \
9684 module_cmds \
9685 module_expsym_cmds \
9686 lt_cv_prog_compiler_c_o \
9687 exclude_expsyms \
9688 include_expsyms; do
9689
9690 case $var in
9691 old_archive_cmds | \
9692 old_archive_from_new_cmds | \
9693 archive_cmds | \
9694 archive_expsym_cmds | \
9695 module_cmds | \
9696 module_expsym_cmds | \
9697 old_archive_from_expsyms_cmds | \
9698 export_symbols_cmds | \
9699 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9700 postinstall_cmds | postuninstall_cmds | \
9701 old_postinstall_cmds | old_postuninstall_cmds | \
9702 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9703 # Double-quote double-evaled strings.
9704 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9705 ;;
9706 *)
9707 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9708 ;;
9709 esac
9710 done
9711
9712 case $lt_echo in
9713 *'\$0 --fallback-echo"')
9714 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9715 ;;
9716 esac
9717
9718 cfgfile="${ofile}T"
9719 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9720 $rm -f "$cfgfile"
9721 { echo "$as_me:$LINENO: creating $ofile" >&5
9722 echo "$as_me: creating $ofile" >&6;}
9723
9724 cat <<__EOF__ >> "$cfgfile"
9725 #! $SHELL
9726
9727 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9728 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9729 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9730 #
9731 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9732 # Free Software Foundation, Inc.
9733 #
9734 # This file is part of GNU Libtool:
9735 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9736 #
9737 # This program is free software; you can redistribute it and/or modify
9738 # it under the terms of the GNU General Public License as published by
9739 # the Free Software Foundation; either version 2 of the License, or
9740 # (at your option) any later version.
9741 #
9742 # This program is distributed in the hope that it will be useful, but
9743 # WITHOUT ANY WARRANTY; without even the implied warranty of
9744 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9745 # General Public License for more details.
9746 #
9747 # You should have received a copy of the GNU General Public License
9748 # along with this program; if not, write to the Free Software
9749 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9750 #
9751 # As a special exception to the GNU General Public License, if you
9752 # distribute this file as part of a program that contains a
9753 # configuration script generated by Autoconf, you may include it under
9754 # the same distribution terms that you use for the rest of that program.
9755
9756 # A sed program that does not truncate output.
9757 SED=$lt_SED
9758
9759 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9760 Xsed="$SED -e 1s/^X//"
9761
9762 # The HP-UX ksh and POSIX shell print the target directory to stdout
9763 # if CDPATH is set.
9764 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9765
9766 # The names of the tagged configurations supported by this script.
9767 available_tags=
9768
9769 # ### BEGIN LIBTOOL CONFIG
9770
9771 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9772
9773 # Shell to use when invoking shell scripts.
9774 SHELL=$lt_SHELL
9775
9776 # Whether or not to build shared libraries.
9777 build_libtool_libs=$enable_shared
9778
9779 # Whether or not to build static libraries.
9780 build_old_libs=$enable_static
9781
9782 # Whether or not to add -lc for building shared libraries.
9783 build_libtool_need_lc=$archive_cmds_need_lc
9784
9785 # Whether or not to disallow shared libs when runtime libs are static
9786 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9787
9788 # Whether or not to optimize for fast installation.
9789 fast_install=$enable_fast_install
9790
9791 # The host system.
9792 host_alias=$host_alias
9793 host=$host
9794 host_os=$host_os
9795
9796 # The build system.
9797 build_alias=$build_alias
9798 build=$build
9799 build_os=$build_os
9800
9801 # An echo program that does not interpret backslashes.
9802 echo=$lt_echo
9803
9804 # The archiver.
9805 AR=$lt_AR
9806 AR_FLAGS=$lt_AR_FLAGS
9807
9808 # A C compiler.
9809 LTCC=$lt_LTCC
9810
9811 # LTCC compiler flags.
9812 LTCFLAGS=$lt_LTCFLAGS
9813
9814 # A language-specific compiler.
9815 CC=$lt_compiler
9816
9817 # Is the compiler the GNU C compiler?
9818 with_gcc=$GCC
9819
9820 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
9821 gcc_ver=\`gcc -dumpversion\`
9822
9823 # An ERE matcher.
9824 EGREP=$lt_EGREP
9825
9826 # The linker used to build libraries.
9827 LD=$lt_LD
9828
9829 # Whether we need hard or soft links.
9830 LN_S=$lt_LN_S
9831
9832 # A BSD-compatible nm program.
9833 NM=$lt_NM
9834
9835 # A symbol stripping program
9836 STRIP=$lt_STRIP
9837
9838 # Used to examine libraries when file_magic_cmd begins "file"
9839 MAGIC_CMD=$MAGIC_CMD
9840
9841 # Used on cygwin: DLL creation program.
9842 DLLTOOL="$DLLTOOL"
9843
9844 # Used on cygwin: object dumper.
9845 OBJDUMP="$OBJDUMP"
9846
9847 # Used on cygwin: assembler.
9848 AS="$AS"
9849
9850 # The name of the directory that contains temporary libtool files.
9851 objdir=$objdir
9852
9853 # How to create reloadable object files.
9854 reload_flag=$lt_reload_flag
9855 reload_cmds=$lt_reload_cmds
9856
9857 # How to pass a linker flag through the compiler.
9858 wl=$lt_lt_prog_compiler_wl
9859
9860 # Object file suffix (normally "o").
9861 objext="$ac_objext"
9862
9863 # Old archive suffix (normally "a").
9864 libext="$libext"
9865
9866 # Shared library suffix (normally ".so").
9867 shrext_cmds='$shrext_cmds'
9868
9869 # Executable file suffix (normally "").
9870 exeext="$exeext"
9871
9872 # Additional compiler flags for building library objects.
9873 pic_flag=$lt_lt_prog_compiler_pic
9874 pic_mode=$pic_mode
9875
9876 # What is the maximum length of a command?
9877 max_cmd_len=$lt_cv_sys_max_cmd_len
9878
9879 # Does compiler simultaneously support -c and -o options?
9880 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9881
9882 # Must we lock files when doing compilation?
9883 need_locks=$lt_need_locks
9884
9885 # Do we need the lib prefix for modules?
9886 need_lib_prefix=$need_lib_prefix
9887
9888 # Do we need a version for libraries?
9889 need_version=$need_version
9890
9891 # Whether dlopen is supported.
9892 dlopen_support=$enable_dlopen
9893
9894 # Whether dlopen of programs is supported.
9895 dlopen_self=$enable_dlopen_self
9896
9897 # Whether dlopen of statically linked programs is supported.
9898 dlopen_self_static=$enable_dlopen_self_static
9899
9900 # Compiler flag to prevent dynamic linking.
9901 link_static_flag=$lt_lt_prog_compiler_static
9902
9903 # Compiler flag to turn off builtin functions.
9904 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9905
9906 # Compiler flag to allow reflexive dlopens.
9907 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9908
9909 # Compiler flag to generate shared objects directly from archives.
9910 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9911
9912 # Compiler flag to generate thread-safe objects.
9913 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9914
9915 # Library versioning type.
9916 version_type=$version_type
9917
9918 # Format of library name prefix.
9919 libname_spec=$lt_libname_spec
9920
9921 # List of archive names. First name is the real one, the rest are links.
9922 # The last name is the one that the linker finds with -lNAME.
9923 library_names_spec=$lt_library_names_spec
9924
9925 # The coded name of the library, if different from the real name.
9926 soname_spec=$lt_soname_spec
9927
9928 # Commands used to build and install an old-style archive.
9929 RANLIB=$lt_RANLIB
9930 old_archive_cmds=$lt_old_archive_cmds
9931 old_postinstall_cmds=$lt_old_postinstall_cmds
9932 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9933
9934 # Create an old-style archive from a shared archive.
9935 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9936
9937 # Create a temporary old-style archive to link instead of a shared archive.
9938 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9939
9940 # Commands used to build and install a shared archive.
9941 archive_cmds=$lt_archive_cmds
9942 archive_expsym_cmds=$lt_archive_expsym_cmds
9943 postinstall_cmds=$lt_postinstall_cmds
9944 postuninstall_cmds=$lt_postuninstall_cmds
9945
9946 # Commands used to build a loadable module (assumed same as above if empty)
9947 module_cmds=$lt_module_cmds
9948 module_expsym_cmds=$lt_module_expsym_cmds
9949
9950 # Commands to strip libraries.
9951 old_striplib=$lt_old_striplib
9952 striplib=$lt_striplib
9953
9954 # Dependencies to place before the objects being linked to create a
9955 # shared library.
9956 predep_objects=\`echo $lt_predep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9957
9958 # Dependencies to place after the objects being linked to create a
9959 # shared library.
9960 postdep_objects=\`echo $lt_postdep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9961
9962 # Dependencies to place before the objects being linked to create a
9963 # shared library.
9964 predeps=$lt_predeps
9965
9966 # Dependencies to place after the objects being linked to create a
9967 # shared library.
9968 postdeps=$lt_postdeps
9969
9970 # The library search path used internally by the compiler when linking
9971 # a shared library.
9972 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9973
9974 # Method to check whether dependent libraries are shared objects.
9975 deplibs_check_method=$lt_deplibs_check_method
9976
9977 # Command to use when deplibs_check_method == file_magic.
9978 file_magic_cmd=$lt_file_magic_cmd
9979
9980 # Flag that allows shared libraries with undefined symbols to be built.
9981 allow_undefined_flag=$lt_allow_undefined_flag
9982
9983 # Flag that forces no undefined symbols.
9984 no_undefined_flag=$lt_no_undefined_flag
9985
9986 # Commands used to finish a libtool library installation in a directory.
9987 finish_cmds=$lt_finish_cmds
9988
9989 # Same as above, but a single script fragment to be evaled but not shown.
9990 finish_eval=$lt_finish_eval
9991
9992 # Take the output of nm and produce a listing of raw symbols and C names.
9993 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9994
9995 # Transform the output of nm in a proper C declaration
9996 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9997
9998 # Transform the output of nm in a C name address pair
9999 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10000
10001 # This is the shared library runtime path variable.
10002 runpath_var=$runpath_var
10003
10004 # This is the shared library path variable.
10005 shlibpath_var=$shlibpath_var
10006
10007 # Is shlibpath searched before the hard-coded library search path?
10008 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10009
10010 # How to hardcode a shared library path into an executable.
10011 hardcode_action=$hardcode_action
10012
10013 # Whether we should hardcode library paths into libraries.
10014 hardcode_into_libs=$hardcode_into_libs
10015
10016 # Flag to hardcode \$libdir into a binary during linking.
10017 # This must work even if \$libdir does not exist.
10018 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10019
10020 # If ld is used when linking, flag to hardcode \$libdir into
10021 # a binary during linking. This must work even if \$libdir does
10022 # not exist.
10023 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10024
10025 # Whether we need a single -rpath flag with a separated argument.
10026 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10027
10028 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10029 # resulting binary.
10030 hardcode_direct=$hardcode_direct
10031
10032 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10033 # resulting binary.
10034 hardcode_minus_L=$hardcode_minus_L
10035
10036 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10037 # the resulting binary.
10038 hardcode_shlibpath_var=$hardcode_shlibpath_var
10039
10040 # Set to yes if building a shared library automatically hardcodes DIR into the library
10041 # and all subsequent libraries and executables linked against it.
10042 hardcode_automatic=$hardcode_automatic
10043
10044 # Variables whose values should be saved in libtool wrapper scripts and
10045 # restored at relink time.
10046 variables_saved_for_relink="$variables_saved_for_relink"
10047
10048 # Whether libtool must link a program against all its dependency libraries.
10049 link_all_deplibs=$link_all_deplibs
10050
10051 # Compile-time system search path for libraries
10052 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10053
10054 # Run-time system search path for libraries
10055 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10056
10057 # Fix the shell variable \$srcfile for the compiler.
10058 fix_srcfile_path="$fix_srcfile_path"
10059
10060 # Set to yes if exported symbols are required.
10061 always_export_symbols=$always_export_symbols
10062
10063 # The commands to list exported symbols.
10064 export_symbols_cmds=$lt_export_symbols_cmds
10065
10066 # The commands to extract the exported symbol list from a shared archive.
10067 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10068
10069 # Symbols that should not be listed in the preloaded symbols.
10070 exclude_expsyms=$lt_exclude_expsyms
10071
10072 # Symbols that must always be exported.
10073 include_expsyms=$lt_include_expsyms
10074
10075 # ### END LIBTOOL CONFIG
10076
10077 __EOF__
10078
10079
10080 case $host_os in
10081 aix3*)
10082 cat <<\EOF >> "$cfgfile"
10083
10084 # AIX sometimes has problems with the GCC collect2 program. For some
10085 # reason, if we set the COLLECT_NAMES environment variable, the problems
10086 # vanish in a puff of smoke.
10087 if test "X${COLLECT_NAMES+set}" != Xset; then
10088 COLLECT_NAMES=
10089 export COLLECT_NAMES
10090 fi
10091 EOF
10092 ;;
10093 esac
10094
10095 # We use sed instead of cat because bash on DJGPP gets confused if
10096 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10097 # text mode, it properly converts lines to CR/LF. This bash problem
10098 # is reportedly fixed, but why not run on old versions too?
10099 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10100
10101 mv -f "$cfgfile" "$ofile" || \
10102 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10103 chmod +x "$ofile"
10104
10105 else
10106 # If there is no Makefile yet, we rely on a make rule to execute
10107 # `config.status --recheck' to rerun these tests and create the
10108 # libtool script then.
10109 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10110 if test -f "$ltmain_in"; then
10111 test -f Makefile && make "$ltmain"
10112 fi
10113 fi
10114
10115
10116 ac_ext=c
10117 ac_cpp='$CPP $CPPFLAGS'
10118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10121
10122 CC="$lt_save_CC"
10123
10124
10125 # Check whether --with-tags or --without-tags was given.
10126 if test "${with_tags+set}" = set; then
10127 withval="$with_tags"
10128 tagnames="$withval"
10129 fi;
10130
10131 if test -f "$ltmain" && test -n "$tagnames"; then
10132 if test ! -f "${ofile}"; then
10133 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10134 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10135 fi
10136
10137 if test -z "$LTCC"; then
10138 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10139 if test -z "$LTCC"; then
10140 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10141 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10142 else
10143 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10144 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10145 fi
10146 fi
10147 if test -z "$LTCFLAGS"; then
10148 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10149 fi
10150
10151 # Extract list of available tagged configurations in $ofile.
10152 # Note that this assumes the entire list is on one line.
10153 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10154
10155 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10156 for tagname in $tagnames; do
10157 IFS="$lt_save_ifs"
10158 # Check whether tagname contains only valid characters
10159 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10160 "") ;;
10161 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10162 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10163 { (exit 1); exit 1; }; }
10164 ;;
10165 esac
10166
10167 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10168 then
10169 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10170 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10171 { (exit 1); exit 1; }; }
10172 fi
10173
10174 # Update the list of available tags.
10175 if test -n "$tagname"; then
10176 echo appending configuration tag \"$tagname\" to $ofile
10177
10178 case $tagname in
10179 CXX)
10180 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10181 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10182 (test "X$CXX" != "Xg++"))) ; then
10183 ac_ext=cc
10184 ac_cpp='$CXXCPP $CPPFLAGS'
10185 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10186 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10187 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10188
10189
10190
10191
10192 archive_cmds_need_lc_CXX=no
10193 allow_undefined_flag_CXX=
10194 always_export_symbols_CXX=no
10195 archive_expsym_cmds_CXX=
10196 export_dynamic_flag_spec_CXX=
10197 hardcode_direct_CXX=no
10198 hardcode_libdir_flag_spec_CXX=
10199 hardcode_libdir_flag_spec_ld_CXX=
10200 hardcode_libdir_separator_CXX=
10201 hardcode_minus_L_CXX=no
10202 hardcode_shlibpath_var_CXX=unsupported
10203 hardcode_automatic_CXX=no
10204 module_cmds_CXX=
10205 module_expsym_cmds_CXX=
10206 link_all_deplibs_CXX=unknown
10207 old_archive_cmds_CXX=$old_archive_cmds
10208 no_undefined_flag_CXX=
10209 whole_archive_flag_spec_CXX=
10210 enable_shared_with_static_runtimes_CXX=no
10211
10212 # Dependencies to place before and after the object being linked:
10213 predep_objects_CXX=
10214 postdep_objects_CXX=
10215 predeps_CXX=
10216 postdeps_CXX=
10217 compiler_lib_search_path_CXX=
10218
10219 # Source file extension for C++ test sources.
10220 ac_ext=cpp
10221
10222 # Object file extension for compiled C++ test sources.
10223 objext=o
10224 objext_CXX=$objext
10225
10226 # Code to be used in simple compile tests
10227 lt_simple_compile_test_code="int some_variable = 0;\n"
10228
10229 # Code to be used in simple link tests
10230 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10231
10232 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10233
10234 # If no C compiler was specified, use CC.
10235 LTCC=${LTCC-"$CC"}
10236
10237 # If no C compiler flags were specified, use CFLAGS.
10238 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10239
10240 # Allow CC to be a program name with arguments.
10241 compiler=$CC
10242
10243
10244 # save warnings/boilerplate of simple test code
10245 ac_outfile=conftest.$ac_objext
10246 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10247 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10248 _lt_compiler_boilerplate=`cat conftest.err`
10249 $rm conftest*
10250
10251 ac_outfile=conftest.$ac_objext
10252 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10253 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10254 _lt_linker_boilerplate=`cat conftest.err`
10255 $rm conftest*
10256
10257
10258 # Allow CC to be a program name with arguments.
10259 lt_save_CC=$CC
10260 lt_save_LD=$LD
10261 lt_save_GCC=$GCC
10262 GCC=$GXX
10263 lt_save_with_gnu_ld=$with_gnu_ld
10264 lt_save_path_LD=$lt_cv_path_LD
10265 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10266 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10267 else
10268 $as_unset lt_cv_prog_gnu_ld
10269 fi
10270 if test -n "${lt_cv_path_LDCXX+set}"; then
10271 lt_cv_path_LD=$lt_cv_path_LDCXX
10272 else
10273 $as_unset lt_cv_path_LD
10274 fi
10275 test -z "${LDCXX+set}" || LD=$LDCXX
10276 CC=${CXX-"c++"}
10277 compiler=$CC
10278 compiler_CXX=$CC
10279 for cc_temp in $compiler""; do
10280 case $cc_temp in
10281 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10282 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10283 \-*) ;;
10284 *) break;;
10285 esac
10286 done
10287 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10288
10289
10290 # We don't want -fno-exception wen compiling C++ code, so set the
10291 # no_builtin_flag separately
10292 if test "$GXX" = yes; then
10293 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10294 else
10295 lt_prog_compiler_no_builtin_flag_CXX=
10296 fi
10297
10298 if test "$GXX" = yes; then
10299 # Set up default GNU C++ configuration
10300
10301
10302 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10303 if test "${with_gnu_ld+set}" = set; then
10304 withval="$with_gnu_ld"
10305 test "$withval" = no || with_gnu_ld=yes
10306 else
10307 with_gnu_ld=no
10308 fi;
10309 ac_prog=ld
10310 if test "$GCC" = yes; then
10311 # Check if gcc -print-prog-name=ld gives a path.
10312 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10313 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10314 case $host in
10315 *-*-mingw*)
10316 # gcc leaves a trailing carriage return which upsets mingw
10317 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10318 *)
10319 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10320 esac
10321 case $ac_prog in
10322 # Accept absolute paths.
10323 [\\/]* | ?:[\\/]*)
10324 re_direlt='/[^/][^/]*/\.\./'
10325 # Canonicalize the pathname of ld
10326 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10327 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10328 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10329 done
10330 test -z "$LD" && LD="$ac_prog"
10331 ;;
10332 "")
10333 # If it fails, then pretend we aren't using GCC.
10334 ac_prog=ld
10335 ;;
10336 *)
10337 # If it is relative, then search for the first ld in PATH.
10338 with_gnu_ld=unknown
10339 ;;
10340 esac
10341 elif test "$with_gnu_ld" = yes; then
10342 echo "$as_me:$LINENO: checking for GNU ld" >&5
10343 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10344 else
10345 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10346 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10347 fi
10348 if test "${lt_cv_path_LD+set}" = set; then
10349 echo $ECHO_N "(cached) $ECHO_C" >&6
10350 else
10351 if test -z "$LD"; then
10352 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10353 for ac_dir in $PATH; do
10354 IFS="$lt_save_ifs"
10355 test -z "$ac_dir" && ac_dir=.
10356 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10357 lt_cv_path_LD="$ac_dir/$ac_prog"
10358 # Check to see if the program is GNU ld. I'd rather use --version,
10359 # but apparently some variants of GNU ld only accept -v.
10360 # Break only if it was the GNU/non-GNU ld that we prefer.
10361 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10362 *GNU* | *'with BFD'*)
10363 test "$with_gnu_ld" != no && break
10364 ;;
10365 *)
10366 test "$with_gnu_ld" != yes && break
10367 ;;
10368 esac
10369 fi
10370 done
10371 IFS="$lt_save_ifs"
10372 else
10373 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10374 fi
10375 fi
10376
10377 LD="$lt_cv_path_LD"
10378 if test -n "$LD"; then
10379 echo "$as_me:$LINENO: result: $LD" >&5
10380 echo "${ECHO_T}$LD" >&6
10381 else
10382 echo "$as_me:$LINENO: result: no" >&5
10383 echo "${ECHO_T}no" >&6
10384 fi
10385 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10386 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10387 { (exit 1); exit 1; }; }
10388 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10389 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10390 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10391 echo $ECHO_N "(cached) $ECHO_C" >&6
10392 else
10393 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10394 case `$LD -v 2>&1 </dev/null` in
10395 *GNU* | *'with BFD'*)
10396 lt_cv_prog_gnu_ld=yes
10397 ;;
10398 *)
10399 lt_cv_prog_gnu_ld=no
10400 ;;
10401 esac
10402 fi
10403 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10404 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10405 with_gnu_ld=$lt_cv_prog_gnu_ld
10406
10407
10408
10409 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10410 # archiving commands below assume that GNU ld is being used.
10411 if test "$with_gnu_ld" = yes; then
10412 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10413 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10414
10415 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10416 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10417
10418 # If archive_cmds runs LD, not CC, wlarc should be empty
10419 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10420 # investigate it a little bit more. (MM)
10421 wlarc='${wl}'
10422
10423 # ancient GNU ld didn't support --whole-archive et. al.
10424 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10425 grep 'no-whole-archive' > /dev/null; then
10426 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10427 else
10428 whole_archive_flag_spec_CXX=
10429 fi
10430 else
10431 with_gnu_ld=no
10432 wlarc=
10433
10434 # A generic and very simple default shared library creation
10435 # command for GNU C++ for the case where it uses the native
10436 # linker, instead of GNU ld. If possible, this setting should
10437 # overridden to take advantage of the native linker features on
10438 # the platform it is being used on.
10439 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10440 fi
10441
10442 # Commands to make compiler produce verbose output that lists
10443 # what "hidden" libraries, object files and flags are used when
10444 # linking a shared library.
10445 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10446
10447 else
10448 GXX=no
10449 with_gnu_ld=no
10450 wlarc=
10451 fi
10452
10453 # PORTME: fill in a description of your system's C++ link characteristics
10454 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10455 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10456 ld_shlibs_CXX=yes
10457 case $host_os in
10458 aix3*)
10459 # FIXME: insert proper C++ library support
10460 ld_shlibs_CXX=no
10461 ;;
10462 aix4* | aix5*)
10463 if test "$host_cpu" = ia64; then
10464 # On IA64, the linker does run time linking by default, so we don't
10465 # have to do anything special.
10466 aix_use_runtimelinking=no
10467 exp_sym_flag='-Bexport'
10468 no_entry_flag=""
10469 else
10470 aix_use_runtimelinking=no
10471
10472 # Test if we are trying to use run time linking or normal
10473 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10474 # need to do runtime linking.
10475 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10476 for ld_flag in $LDFLAGS; do
10477 case $ld_flag in
10478 *-brtl*)
10479 aix_use_runtimelinking=yes
10480 break
10481 ;;
10482 esac
10483 done
10484 ;;
10485 esac
10486
10487 exp_sym_flag='-bexport'
10488 no_entry_flag='-bnoentry'
10489 fi
10490
10491 # When large executables or shared objects are built, AIX ld can
10492 # have problems creating the table of contents. If linking a library
10493 # or program results in "error TOC overflow" add -mminimal-toc to
10494 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10495 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10496
10497 archive_cmds_CXX=''
10498 hardcode_direct_CXX=yes
10499 hardcode_libdir_separator_CXX=':'
10500 link_all_deplibs_CXX=yes
10501
10502 if test "$GXX" = yes; then
10503 case $host_os in aix4.[012]|aix4.[012].*)
10504 # We only want to do this on AIX 4.2 and lower, the check
10505 # below for broken collect2 doesn't work under 4.3+
10506 collect2name=`${CC} -print-prog-name=collect2`
10507 if test -f "$collect2name" && \
10508 strings "$collect2name" | grep resolve_lib_name >/dev/null
10509 then
10510 # We have reworked collect2
10511 hardcode_direct_CXX=yes
10512 else
10513 # We have old collect2
10514 hardcode_direct_CXX=unsupported
10515 # It fails to find uninstalled libraries when the uninstalled
10516 # path is not listed in the libpath. Setting hardcode_minus_L
10517 # to unsupported forces relinking
10518 hardcode_minus_L_CXX=yes
10519 hardcode_libdir_flag_spec_CXX='-L$libdir'
10520 hardcode_libdir_separator_CXX=
10521 fi
10522 ;;
10523 esac
10524 shared_flag='-shared'
10525 if test "$aix_use_runtimelinking" = yes; then
10526 shared_flag="$shared_flag "'${wl}-G'
10527 fi
10528 else
10529 # not using gcc
10530 if test "$host_cpu" = ia64; then
10531 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10532 # chokes on -Wl,-G. The following line is correct:
10533 shared_flag='-G'
10534 else
10535 if test "$aix_use_runtimelinking" = yes; then
10536 shared_flag='${wl}-G'
10537 else
10538 shared_flag='${wl}-bM:SRE'
10539 fi
10540 fi
10541 fi
10542
10543 # It seems that -bexpall does not export symbols beginning with
10544 # underscore (_), so it is better to generate a list of symbols to export.
10545 always_export_symbols_CXX=yes
10546 if test "$aix_use_runtimelinking" = yes; then
10547 # Warning - without using the other runtime loading flags (-brtl),
10548 # -berok will link without error, but may produce a broken library.
10549 allow_undefined_flag_CXX='-berok'
10550 # Determine the default libpath from the value encoded in an empty executable.
10551 cat >conftest.$ac_ext <<_ACEOF
10552 /* confdefs.h. */
10553 _ACEOF
10554 cat confdefs.h >>conftest.$ac_ext
10555 cat >>conftest.$ac_ext <<_ACEOF
10556 /* end confdefs.h. */
10557
10558 int
10559 main ()
10560 {
10561
10562 ;
10563 return 0;
10564 }
10565 _ACEOF
10566 rm -f conftest.$ac_objext conftest$ac_exeext
10567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10568 (eval $ac_link) 2>conftest.er1
10569 ac_status=$?
10570 grep -v '^ *+' conftest.er1 >conftest.err
10571 rm -f conftest.er1
10572 cat conftest.err >&5
10573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574 (exit $ac_status); } &&
10575 { ac_try='test -z "$ac_cxx_werror_flag"
10576 || test ! -s conftest.err'
10577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10578 (eval $ac_try) 2>&5
10579 ac_status=$?
10580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10581 (exit $ac_status); }; } &&
10582 { ac_try='test -s conftest$ac_exeext'
10583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10584 (eval $ac_try) 2>&5
10585 ac_status=$?
10586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587 (exit $ac_status); }; }; then
10588
10589 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10590 }'`
10591 # Check for a 64-bit object if we didn't find anything.
10592 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10593 }'`; fi
10594 else
10595 echo "$as_me: failed program was:" >&5
10596 sed 's/^/| /' conftest.$ac_ext >&5
10597
10598 fi
10599 rm -f conftest.err conftest.$ac_objext \
10600 conftest$ac_exeext conftest.$ac_ext
10601 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10602
10603 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10604
10605 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10606 else
10607 if test "$host_cpu" = ia64; then
10608 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10609 allow_undefined_flag_CXX="-z nodefs"
10610 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10611 else
10612 # Determine the default libpath from the value encoded in an empty executable.
10613 cat >conftest.$ac_ext <<_ACEOF
10614 /* confdefs.h. */
10615 _ACEOF
10616 cat confdefs.h >>conftest.$ac_ext
10617 cat >>conftest.$ac_ext <<_ACEOF
10618 /* end confdefs.h. */
10619
10620 int
10621 main ()
10622 {
10623
10624 ;
10625 return 0;
10626 }
10627 _ACEOF
10628 rm -f conftest.$ac_objext conftest$ac_exeext
10629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10630 (eval $ac_link) 2>conftest.er1
10631 ac_status=$?
10632 grep -v '^ *+' conftest.er1 >conftest.err
10633 rm -f conftest.er1
10634 cat conftest.err >&5
10635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10636 (exit $ac_status); } &&
10637 { ac_try='test -z "$ac_cxx_werror_flag"
10638 || test ! -s conftest.err'
10639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10640 (eval $ac_try) 2>&5
10641 ac_status=$?
10642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643 (exit $ac_status); }; } &&
10644 { ac_try='test -s conftest$ac_exeext'
10645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10646 (eval $ac_try) 2>&5
10647 ac_status=$?
10648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10649 (exit $ac_status); }; }; then
10650
10651 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10652 }'`
10653 # Check for a 64-bit object if we didn't find anything.
10654 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10655 }'`; fi
10656 else
10657 echo "$as_me: failed program was:" >&5
10658 sed 's/^/| /' conftest.$ac_ext >&5
10659
10660 fi
10661 rm -f conftest.err conftest.$ac_objext \
10662 conftest$ac_exeext conftest.$ac_ext
10663 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10664
10665 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10666 # Warning - without using the other run time loading flags,
10667 # -berok will link without error, but may produce a broken library.
10668 no_undefined_flag_CXX=' ${wl}-bernotok'
10669 allow_undefined_flag_CXX=' ${wl}-berok'
10670 # Exported symbols can be pulled into shared objects from archives
10671 whole_archive_flag_spec_CXX='$convenience'
10672 archive_cmds_need_lc_CXX=yes
10673 # This is similar to how AIX traditionally builds its shared libraries.
10674 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10675 fi
10676 fi
10677 ;;
10678
10679 beos*)
10680 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10681 allow_undefined_flag_CXX=unsupported
10682 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10683 # support --undefined. This deserves some investigation. FIXME
10684 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10685 else
10686 ld_shlibs_CXX=no
10687 fi
10688 ;;
10689
10690 chorus*)
10691 case $cc_basename in
10692 *)
10693 # FIXME: insert proper C++ library support
10694 ld_shlibs_CXX=no
10695 ;;
10696 esac
10697 ;;
10698
10699 cygwin* | mingw* | pw32*)
10700 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10701 # as there is no search path for DLLs.
10702 hardcode_libdir_flag_spec_CXX='-L$libdir'
10703 allow_undefined_flag_CXX=unsupported
10704 always_export_symbols_CXX=no
10705 enable_shared_with_static_runtimes_CXX=yes
10706
10707 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10708 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10709 # If the export-symbols file already is a .def file (1st line
10710 # is EXPORTS), use it as is; otherwise, prepend...
10711 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10712 cp $export_symbols $output_objdir/$soname.def;
10713 else
10714 echo EXPORTS > $output_objdir/$soname.def;
10715 cat $export_symbols >> $output_objdir/$soname.def;
10716 fi~
10717 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10718 else
10719 ld_shlibs_CXX=no
10720 fi
10721 ;;
10722 darwin* | rhapsody*)
10723 case $host_os in
10724 rhapsody* | darwin1.[012])
10725 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10726 ;;
10727 *) # Darwin 1.3 on
10728 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10729 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10730 else
10731 case ${MACOSX_DEPLOYMENT_TARGET} in
10732 10.[012])
10733 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10734 ;;
10735 10.*)
10736 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10737 ;;
10738 esac
10739 fi
10740 ;;
10741 esac
10742 archive_cmds_need_lc_CXX=no
10743 hardcode_direct_CXX=no
10744 hardcode_automatic_CXX=yes
10745 hardcode_shlibpath_var_CXX=unsupported
10746 whole_archive_flag_spec_CXX=''
10747 link_all_deplibs_CXX=yes
10748
10749 if test "$GXX" = yes ; then
10750 lt_int_apple_cc_single_mod=no
10751 output_verbose_link_cmd='echo'
10752 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10753 lt_int_apple_cc_single_mod=yes
10754 fi
10755 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10756 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10757 else
10758 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10759 fi
10760 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10761 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10762 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10763 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10764 else
10765 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10766 fi
10767 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10768 else
10769 case $cc_basename in
10770 xlc*)
10771 output_verbose_link_cmd='echo'
10772 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10773 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10774 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10775 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10776 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10777 ;;
10778 *)
10779 ld_shlibs_CXX=no
10780 ;;
10781 esac
10782 fi
10783 ;;
10784
10785 dgux*)
10786 case $cc_basename in
10787 ec++*)
10788 # FIXME: insert proper C++ library support
10789 ld_shlibs_CXX=no
10790 ;;
10791 ghcx*)
10792 # Green Hills C++ Compiler
10793 # FIXME: insert proper C++ library support
10794 ld_shlibs_CXX=no
10795 ;;
10796 *)
10797 # FIXME: insert proper C++ library support
10798 ld_shlibs_CXX=no
10799 ;;
10800 esac
10801 ;;
10802 freebsd[12]*)
10803 # C++ shared libraries reported to be fairly broken before switch to ELF
10804 ld_shlibs_CXX=no
10805 ;;
10806 freebsd-elf*)
10807 archive_cmds_need_lc_CXX=no
10808 ;;
10809 freebsd* | kfreebsd*-gnu | dragonfly*)
10810 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10811 # conventions
10812 ld_shlibs_CXX=yes
10813 ;;
10814 gnu*)
10815 ;;
10816 hpux9*)
10817 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10818 hardcode_libdir_separator_CXX=:
10819 export_dynamic_flag_spec_CXX='${wl}-E'
10820 hardcode_direct_CXX=yes
10821 hardcode_minus_L_CXX=yes # Not in the search PATH,
10822 # but as the default
10823 # location of the library.
10824
10825 case $cc_basename in
10826 CC*)
10827 # FIXME: insert proper C++ library support
10828 ld_shlibs_CXX=no
10829 ;;
10830 aCC*)
10831 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10832 # Commands to make compiler produce verbose output that lists
10833 # what "hidden" libraries, object files and flags are used when
10834 # linking a shared library.
10835 #
10836 # There doesn't appear to be a way to prevent this compiler from
10837 # explicitly linking system object files so we need to strip them
10838 # from the output so that they don't get included in the library
10839 # dependencies.
10840 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10841 ;;
10842 *)
10843 if test "$GXX" = yes; then
10844 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10845 else
10846 # FIXME: insert proper C++ library support
10847 ld_shlibs_CXX=no
10848 fi
10849 ;;
10850 esac
10851 ;;
10852 hpux10*|hpux11*)
10853 if test $with_gnu_ld = no; then
10854 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10855 hardcode_libdir_separator_CXX=:
10856
10857 case $host_cpu in
10858 hppa*64*|ia64*)
10859 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10860 ;;
10861 *)
10862 export_dynamic_flag_spec_CXX='${wl}-E'
10863 ;;
10864 esac
10865 fi
10866 case $host_cpu in
10867 hppa*64*|ia64*)
10868 hardcode_direct_CXX=no
10869 hardcode_shlibpath_var_CXX=no
10870 ;;
10871 *)
10872 hardcode_direct_CXX=yes
10873 hardcode_minus_L_CXX=yes # Not in the search PATH,
10874 # but as the default
10875 # location of the library.
10876 ;;
10877 esac
10878
10879 case $cc_basename in
10880 CC*)
10881 # FIXME: insert proper C++ library support
10882 ld_shlibs_CXX=no
10883 ;;
10884 aCC*)
10885 case $host_cpu in
10886 hppa*64*)
10887 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10888 ;;
10889 ia64*)
10890 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10891 ;;
10892 *)
10893 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10894 ;;
10895 esac
10896 # Commands to make compiler produce verbose output that lists
10897 # what "hidden" libraries, object files and flags are used when
10898 # linking a shared library.
10899 #
10900 # There doesn't appear to be a way to prevent this compiler from
10901 # explicitly linking system object files so we need to strip them
10902 # from the output so that they don't get included in the library
10903 # dependencies.
10904 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10905 ;;
10906 *)
10907 if test "$GXX" = yes; then
10908 if test $with_gnu_ld = no; then
10909 case $host_cpu in
10910 hppa*64*)
10911 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10912 ;;
10913 ia64*)
10914 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10915 ;;
10916 *)
10917 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10918 ;;
10919 esac
10920 fi
10921 else
10922 # FIXME: insert proper C++ library support
10923 ld_shlibs_CXX=no
10924 fi
10925 ;;
10926 esac
10927 ;;
10928 interix3*)
10929 hardcode_direct_CXX=no
10930 hardcode_shlibpath_var_CXX=no
10931 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10932 export_dynamic_flag_spec_CXX='${wl}-E'
10933 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10934 # Instead, shared libraries are loaded at an image base (0x10000000 by
10935 # default) and relocated if they conflict, which is a slow very memory
10936 # consuming and fragmenting process. To avoid this, we pick a random,
10937 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10938 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10939 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10940 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10941 ;;
10942 irix5* | irix6*)
10943 case $cc_basename in
10944 CC*)
10945 # SGI C++
10946 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10947
10948 # Archives containing C++ object files must be created using
10949 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10950 # necessary to make sure instantiated templates are included
10951 # in the archive.
10952 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10953 ;;
10954 *)
10955 if test "$GXX" = yes; then
10956 if test "$with_gnu_ld" = no; then
10957 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10958 else
10959 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
10960 fi
10961 fi
10962 link_all_deplibs_CXX=yes
10963 ;;
10964 esac
10965 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10966 hardcode_libdir_separator_CXX=:
10967 ;;
10968 linux*)
10969 case $cc_basename in
10970 KCC*)
10971 # Kuck and Associates, Inc. (KAI) C++ Compiler
10972
10973 # KCC will only create a shared library if the output file
10974 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10975 # to its proper name (with version) after linking.
10976 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10977 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
10978 # Commands to make compiler produce verbose output that lists
10979 # what "hidden" libraries, object files and flags are used when
10980 # linking a shared library.
10981 #
10982 # There doesn't appear to be a way to prevent this compiler from
10983 # explicitly linking system object files so we need to strip them
10984 # from the output so that they don't get included in the library
10985 # dependencies.
10986 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10987
10988 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10989 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10990
10991 # Archives containing C++ object files must be created using
10992 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10993 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10994 ;;
10995 icpc*)
10996 # Intel C++
10997 with_gnu_ld=yes
10998 # version 8.0 and above of icpc choke on multiply defined symbols
10999 # if we add $predep_objects and $postdep_objects, however 7.1 and
11000 # earlier do not add the objects themselves.
11001 case `$CC -V 2>&1` in
11002 *"Version 7."*)
11003 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11004 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11005 ;;
11006 *) # Version 8.0 or newer
11007 tmp_idyn=
11008 case $host_cpu in
11009 ia64*) tmp_idyn=' -i_dynamic';;
11010 esac
11011 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11012 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11013 ;;
11014 esac
11015 archive_cmds_need_lc_CXX=no
11016 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11017 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11018 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11019 ;;
11020 pgCC*)
11021 # Portland Group C++ compiler
11022 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11023 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11024
11025 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11026 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11027 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11028 ;;
11029 cxx*)
11030 # Compaq C++
11031 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11032 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
11033
11034 runpath_var=LD_RUN_PATH
11035 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11036 hardcode_libdir_separator_CXX=:
11037
11038 # Commands to make compiler produce verbose output that lists
11039 # what "hidden" libraries, object files and flags are used when
11040 # linking a shared library.
11041 #
11042 # There doesn't appear to be a way to prevent this compiler from
11043 # explicitly linking system object files so we need to strip them
11044 # from the output so that they don't get included in the library
11045 # dependencies.
11046 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11047 ;;
11048 esac
11049 ;;
11050 lynxos*)
11051 # FIXME: insert proper C++ library support
11052 ld_shlibs_CXX=no
11053 ;;
11054 m88k*)
11055 # FIXME: insert proper C++ library support
11056 ld_shlibs_CXX=no
11057 ;;
11058 mvs*)
11059 case $cc_basename in
11060 cxx*)
11061 # FIXME: insert proper C++ library support
11062 ld_shlibs_CXX=no
11063 ;;
11064 *)
11065 # FIXME: insert proper C++ library support
11066 ld_shlibs_CXX=no
11067 ;;
11068 esac
11069 ;;
11070 netbsd*)
11071 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11072 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11073 wlarc=
11074 hardcode_libdir_flag_spec_CXX='-R$libdir'
11075 hardcode_direct_CXX=yes
11076 hardcode_shlibpath_var_CXX=no
11077 fi
11078 # Workaround some broken pre-1.5 toolchains
11079 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11080 ;;
11081 openbsd2*)
11082 # C++ shared libraries are fairly broken
11083 ld_shlibs_CXX=no
11084 ;;
11085 openbsd*)
11086 hardcode_direct_CXX=yes
11087 hardcode_shlibpath_var_CXX=no
11088 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11089 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11090 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11091 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11092 export_dynamic_flag_spec_CXX='${wl}-E'
11093 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11094 fi
11095 output_verbose_link_cmd='echo'
11096 ;;
11097 osf3*)
11098 case $cc_basename in
11099 KCC*)
11100 # Kuck and Associates, Inc. (KAI) C++ Compiler
11101
11102 # KCC will only create a shared library if the output file
11103 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11104 # to its proper name (with version) after linking.
11105 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11106
11107 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11108 hardcode_libdir_separator_CXX=:
11109
11110 # Archives containing C++ object files must be created using
11111 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11112 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11113
11114 ;;
11115 RCC*)
11116 # Rational C++ 2.4.1
11117 # FIXME: insert proper C++ library support
11118 ld_shlibs_CXX=no
11119 ;;
11120 cxx*)
11121 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11122 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11123
11124 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11125 hardcode_libdir_separator_CXX=:
11126
11127 # Commands to make compiler produce verbose output that lists
11128 # what "hidden" libraries, object files and flags are used when
11129 # linking a shared library.
11130 #
11131 # There doesn't appear to be a way to prevent this compiler from
11132 # explicitly linking system object files so we need to strip them
11133 # from the output so that they don't get included in the library
11134 # dependencies.
11135 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11136 ;;
11137 *)
11138 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11139 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11140 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11141
11142 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11143 hardcode_libdir_separator_CXX=:
11144
11145 # Commands to make compiler produce verbose output that lists
11146 # what "hidden" libraries, object files and flags are used when
11147 # linking a shared library.
11148 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11149
11150 else
11151 # FIXME: insert proper C++ library support
11152 ld_shlibs_CXX=no
11153 fi
11154 ;;
11155 esac
11156 ;;
11157 osf4* | osf5*)
11158 case $cc_basename in
11159 KCC*)
11160 # Kuck and Associates, Inc. (KAI) C++ Compiler
11161
11162 # KCC will only create a shared library if the output file
11163 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11164 # to its proper name (with version) after linking.
11165 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11166
11167 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11168 hardcode_libdir_separator_CXX=:
11169
11170 # Archives containing C++ object files must be created using
11171 # the KAI C++ compiler.
11172 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11173 ;;
11174 RCC*)
11175 # Rational C++ 2.4.1
11176 # FIXME: insert proper C++ library support
11177 ld_shlibs_CXX=no
11178 ;;
11179 cxx*)
11180 allow_undefined_flag_CXX=' -expect_unresolved \*'
11181 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11182 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11183 echo "-hidden">> $lib.exp~
11184 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
11185 $rm $lib.exp'
11186
11187 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11188 hardcode_libdir_separator_CXX=:
11189
11190 # Commands to make compiler produce verbose output that lists
11191 # what "hidden" libraries, object files and flags are used when
11192 # linking a shared library.
11193 #
11194 # There doesn't appear to be a way to prevent this compiler from
11195 # explicitly linking system object files so we need to strip them
11196 # from the output so that they don't get included in the library
11197 # dependencies.
11198 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11199 ;;
11200 *)
11201 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11202 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11203 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11204
11205 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11206 hardcode_libdir_separator_CXX=:
11207
11208 # Commands to make compiler produce verbose output that lists
11209 # what "hidden" libraries, object files and flags are used when
11210 # linking a shared library.
11211 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11212
11213 else
11214 # FIXME: insert proper C++ library support
11215 ld_shlibs_CXX=no
11216 fi
11217 ;;
11218 esac
11219 ;;
11220 psos*)
11221 # FIXME: insert proper C++ library support
11222 ld_shlibs_CXX=no
11223 ;;
11224 sunos4*)
11225 case $cc_basename in
11226 CC*)
11227 # Sun C++ 4.x
11228 # FIXME: insert proper C++ library support
11229 ld_shlibs_CXX=no
11230 ;;
11231 lcc*)
11232 # Lucid
11233 # FIXME: insert proper C++ library support
11234 ld_shlibs_CXX=no
11235 ;;
11236 *)
11237 # FIXME: insert proper C++ library support
11238 ld_shlibs_CXX=no
11239 ;;
11240 esac
11241 ;;
11242 solaris*)
11243 case $cc_basename in
11244 CC*)
11245 # Sun C++ 4.2, 5.x and Centerline C++
11246 archive_cmds_need_lc_CXX=yes
11247 no_undefined_flag_CXX=' -zdefs'
11248 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11249 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11250 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11251
11252 hardcode_libdir_flag_spec_CXX='-R$libdir'
11253 hardcode_shlibpath_var_CXX=no
11254 case $host_os in
11255 solaris2.[0-5] | solaris2.[0-5].*) ;;
11256 *)
11257 # The C++ compiler is used as linker so we must use $wl
11258 # flag to pass the commands to the underlying system
11259 # linker. We must also pass each convience library through
11260 # to the system linker between allextract/defaultextract.
11261 # The C++ compiler will combine linker options so we
11262 # cannot just pass the convience library names through
11263 # without $wl.
11264 # Supported since Solaris 2.6 (maybe 2.5.1?)
11265 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11266 ;;
11267 esac
11268 link_all_deplibs_CXX=yes
11269
11270 output_verbose_link_cmd='echo'
11271
11272 # Archives containing C++ object files must be created using
11273 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11274 # necessary to make sure instantiated templates are included
11275 # in the archive.
11276 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11277 ;;
11278 gcx*)
11279 # Green Hills C++ Compiler
11280 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11281
11282 # The C++ compiler must be used to create the archive.
11283 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11284 ;;
11285 *)
11286 # GNU C++ compiler with Solaris linker
11287 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11288 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11289 if $CC --version | grep -v '^2\.7' > /dev/null; then
11290 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11291 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11292 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11293
11294 # Commands to make compiler produce verbose output that lists
11295 # what "hidden" libraries, object files and flags are used when
11296 # linking a shared library.
11297 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11298 else
11299 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11300 # platform.
11301 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11302 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11303 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11304
11305 # Commands to make compiler produce verbose output that lists
11306 # what "hidden" libraries, object files and flags are used when
11307 # linking a shared library.
11308 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11309 fi
11310
11311 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11312 fi
11313 ;;
11314 esac
11315 ;;
11316 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11317 no_undefined_flag_CXX='${wl}-z,text'
11318 archive_cmds_need_lc_CXX=no
11319 hardcode_shlibpath_var_CXX=no
11320 runpath_var='LD_RUN_PATH'
11321
11322 case $cc_basename in
11323 CC*)
11324 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11325 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11326 ;;
11327 *)
11328 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11329 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11330 ;;
11331 esac
11332 ;;
11333 sysv5* | sco3.2v5* | sco5v6*)
11334 # Note: We can NOT use -z defs as we might desire, because we do not
11335 # link with -lc, and that would cause any symbols used from libc to
11336 # always be unresolved, which means just about no library would
11337 # ever link correctly. If we're not using GNU ld we use -z text
11338 # though, which does catch some bad symbols but isn't as heavy-handed
11339 # as -z defs.
11340 # For security reasons, it is highly recommended that you always
11341 # use absolute paths for naming shared libraries, and exclude the
11342 # DT_RUNPATH tag from executables and libraries. But doing so
11343 # requires that you compile everything twice, which is a pain.
11344 # So that behaviour is only enabled if SCOABSPATH is set to a
11345 # non-empty value in the environment. Most likely only useful for
11346 # creating official distributions of packages.
11347 # This is a hack until libtool officially supports absolute path
11348 # names for shared libraries.
11349 no_undefined_flag_CXX='${wl}-z,text'
11350 allow_undefined_flag_CXX='${wl}-z,nodefs'
11351 archive_cmds_need_lc_CXX=no
11352 hardcode_shlibpath_var_CXX=no
11353 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11354 hardcode_libdir_separator_CXX=':'
11355 link_all_deplibs_CXX=yes
11356 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11357 runpath_var='LD_RUN_PATH'
11358
11359 case $cc_basename in
11360 CC*)
11361 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11362 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11363 ;;
11364 *)
11365 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11366 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11367 ;;
11368 esac
11369 ;;
11370 tandem*)
11371 case $cc_basename in
11372 NCC*)
11373 # NonStop-UX NCC 3.20
11374 # FIXME: insert proper C++ library support
11375 ld_shlibs_CXX=no
11376 ;;
11377 *)
11378 # FIXME: insert proper C++ library support
11379 ld_shlibs_CXX=no
11380 ;;
11381 esac
11382 ;;
11383 vxworks*)
11384 # FIXME: insert proper C++ library support
11385 ld_shlibs_CXX=no
11386 ;;
11387 *)
11388 # FIXME: insert proper C++ library support
11389 ld_shlibs_CXX=no
11390 ;;
11391 esac
11392 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11393 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11394 test "$ld_shlibs_CXX" = no && can_build_shared=no
11395
11396 GCC_CXX="$GXX"
11397 LD_CXX="$LD"
11398
11399
11400 cat > conftest.$ac_ext <<EOF
11401 class Foo
11402 {
11403 public:
11404 Foo (void) { a = 0; }
11405 private:
11406 int a;
11407 };
11408 EOF
11409
11410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11411 (eval $ac_compile) 2>&5
11412 ac_status=$?
11413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11414 (exit $ac_status); }; then
11415 # Parse the compiler output and extract the necessary
11416 # objects, libraries and library flags.
11417
11418 # Sentinel used to keep track of whether or not we are before
11419 # the conftest object file.
11420 pre_test_object_deps_done=no
11421
11422 # The `*' in the case matches for architectures that use `case' in
11423 # $output_verbose_cmd can trigger glob expansion during the loop
11424 # eval without this substitution.
11425 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11426
11427 for p in `eval $output_verbose_link_cmd`; do
11428 case $p in
11429
11430 -L* | -R* | -l*)
11431 # Some compilers place space between "-{L,R}" and the path.
11432 # Remove the space.
11433 if test $p = "-L" \
11434 || test $p = "-R"; then
11435 prev=$p
11436 continue
11437 else
11438 prev=
11439 fi
11440
11441 if test "$pre_test_object_deps_done" = no; then
11442 case $p in
11443 -L* | -R*)
11444 # Internal compiler library paths should come after those
11445 # provided the user. The postdeps already come after the
11446 # user supplied libs so there is no need to process them.
11447 if test -z "$compiler_lib_search_path_CXX"; then
11448 compiler_lib_search_path_CXX="${prev}${p}"
11449 else
11450 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11451 fi
11452 ;;
11453 # The "-l" case would never come before the object being
11454 # linked, so don't bother handling this case.
11455 esac
11456 else
11457 if test -z "$postdeps_CXX"; then
11458 postdeps_CXX="${prev}${p}"
11459 else
11460 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11461 fi
11462 fi
11463 ;;
11464
11465 *.$objext)
11466 # This assumes that the test object file only shows up
11467 # once in the compiler output.
11468 if test "$p" = "conftest.$objext"; then
11469 pre_test_object_deps_done=yes
11470 continue
11471 fi
11472
11473 if test "$pre_test_object_deps_done" = no; then
11474 if test -z "$predep_objects_CXX"; then
11475 predep_objects_CXX="$p"
11476 else
11477 predep_objects_CXX="$predep_objects_CXX $p"
11478 fi
11479 else
11480 if test -z "$postdep_objects_CXX"; then
11481 postdep_objects_CXX="$p"
11482 else
11483 postdep_objects_CXX="$postdep_objects_CXX $p"
11484 fi
11485 fi
11486 ;;
11487
11488 *) ;; # Ignore the rest.
11489
11490 esac
11491 done
11492
11493 # Clean up.
11494 rm -f a.out a.exe
11495 else
11496 echo "libtool.m4: error: problem compiling CXX test program"
11497 fi
11498
11499 $rm -f confest.$objext
11500
11501 # PORTME: override above test on systems where it is broken
11502 case $host_os in
11503 interix3*)
11504 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11505 # hack all around it, let's just trust "g++" to DTRT.
11506 predep_objects_CXX=
11507 postdep_objects_CXX=
11508 postdeps_CXX=
11509 ;;
11510
11511 solaris*)
11512 case $cc_basename in
11513 CC*)
11514 # Adding this requires a known-good setup of shared libraries for
11515 # Sun compiler versions before 5.6, else PIC objects from an old
11516 # archive will be linked into the output, leading to subtle bugs.
11517 postdeps_CXX='-lCstd -lCrun'
11518 ;;
11519 esac
11520 ;;
11521 esac
11522
11523
11524 case " $postdeps_CXX " in
11525 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11526 esac
11527
11528 lt_prog_compiler_wl_CXX=
11529 lt_prog_compiler_pic_CXX=
11530 lt_prog_compiler_static_CXX=
11531
11532 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11533 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11534
11535 # C++ specific cases for pic, static, wl, etc.
11536 if test "$GXX" = yes; then
11537 lt_prog_compiler_wl_CXX='-Wl,'
11538 lt_prog_compiler_static_CXX='-static'
11539
11540 case $host_os in
11541 aix*)
11542 # All AIX code is PIC.
11543 if test "$host_cpu" = ia64; then
11544 # AIX 5 now supports IA64 processor
11545 lt_prog_compiler_static_CXX='-Bstatic'
11546 fi
11547 ;;
11548 amigaos*)
11549 # FIXME: we need at least 68020 code to build shared libraries, but
11550 # adding the `-m68020' flag to GCC prevents building anything better,
11551 # like `-m68040'.
11552 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11553 ;;
11554 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11555 # PIC is the default for these OSes.
11556 ;;
11557 mingw* | os2* | pw32*)
11558 # This hack is so that the source file can tell whether it is being
11559 # built for inclusion in a dll (and should export symbols for example).
11560 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11561 ;;
11562 darwin* | rhapsody*)
11563 # PIC is the default on this platform
11564 # Common symbols not allowed in MH_DYLIB files
11565 lt_prog_compiler_pic_CXX='-fno-common'
11566 ;;
11567 *djgpp*)
11568 # DJGPP does not support shared libraries at all
11569 lt_prog_compiler_pic_CXX=
11570 ;;
11571 interix3*)
11572 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11573 # Instead, we relocate shared libraries at runtime.
11574 ;;
11575 sysv4*MP*)
11576 if test -d /usr/nec; then
11577 lt_prog_compiler_pic_CXX=-Kconform_pic
11578 fi
11579 ;;
11580 hpux*)
11581 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11582 # not for PA HP-UX.
11583 case $host_cpu in
11584 hppa*64*|ia64*)
11585 ;;
11586 *)
11587 lt_prog_compiler_pic_CXX='-fPIC'
11588 ;;
11589 esac
11590 ;;
11591 *)
11592 lt_prog_compiler_pic_CXX='-fPIC'
11593 ;;
11594 esac
11595 else
11596 case $host_os in
11597 aix4* | aix5*)
11598 # All AIX code is PIC.
11599 if test "$host_cpu" = ia64; then
11600 # AIX 5 now supports IA64 processor
11601 lt_prog_compiler_static_CXX='-Bstatic'
11602 else
11603 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11604 fi
11605 ;;
11606 chorus*)
11607 case $cc_basename in
11608 cxch68*)
11609 # Green Hills C++ Compiler
11610 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
11611 ;;
11612 esac
11613 ;;
11614 darwin*)
11615 # PIC is the default on this platform
11616 # Common symbols not allowed in MH_DYLIB files
11617 case $cc_basename in
11618 xlc*)
11619 lt_prog_compiler_pic_CXX='-qnocommon'
11620 lt_prog_compiler_wl_CXX='-Wl,'
11621 ;;
11622 esac
11623 ;;
11624 dgux*)
11625 case $cc_basename in
11626 ec++*)
11627 lt_prog_compiler_pic_CXX='-KPIC'
11628 ;;
11629 ghcx*)
11630 # Green Hills C++ Compiler
11631 lt_prog_compiler_pic_CXX='-pic'
11632 ;;
11633 *)
11634 ;;
11635 esac
11636 ;;
11637 freebsd* | kfreebsd*-gnu | dragonfly*)
11638 # FreeBSD uses GNU C++
11639 ;;
11640 hpux9* | hpux10* | hpux11*)
11641 case $cc_basename in
11642 CC*)
11643 lt_prog_compiler_wl_CXX='-Wl,'
11644 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11645 if test "$host_cpu" != ia64; then
11646 lt_prog_compiler_pic_CXX='+Z'
11647 fi
11648 ;;
11649 aCC*)
11650 lt_prog_compiler_wl_CXX='-Wl,'
11651 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11652 case $host_cpu in
11653 hppa*64*|ia64*)
11654 # +Z the default
11655 ;;
11656 *)
11657 lt_prog_compiler_pic_CXX='+Z'
11658 ;;
11659 esac
11660 ;;
11661 *)
11662 ;;
11663 esac
11664 ;;
11665 interix*)
11666 # This is c89, which is MS Visual C++ (no shared libs)
11667 # Anyone wants to do a port?
11668 ;;
11669 irix5* | irix6* | nonstopux*)
11670 case $cc_basename in
11671 CC*)
11672 lt_prog_compiler_wl_CXX='-Wl,'
11673 lt_prog_compiler_static_CXX='-non_shared'
11674 # CC pic flag -KPIC is the default.
11675 ;;
11676 *)
11677 ;;
11678 esac
11679 ;;
11680 linux*)
11681 case $cc_basename in
11682 KCC*)
11683 # KAI C++ Compiler
11684 lt_prog_compiler_wl_CXX='--backend -Wl,'
11685 lt_prog_compiler_pic_CXX='-fPIC'
11686 ;;
11687 icpc* | ecpc*)
11688 # Intel C++
11689 lt_prog_compiler_wl_CXX='-Wl,'
11690 lt_prog_compiler_pic_CXX='-KPIC'
11691 lt_prog_compiler_static_CXX='-static'
11692 ;;
11693 pgCC*)
11694 # Portland Group C++ compiler.
11695 lt_prog_compiler_wl_CXX='-Wl,'
11696 lt_prog_compiler_pic_CXX='-fpic'
11697 lt_prog_compiler_static_CXX='-Bstatic'
11698 ;;
11699 cxx*)
11700 # Compaq C++
11701 # Make sure the PIC flag is empty. It appears that all Alpha
11702 # Linux and Compaq Tru64 Unix objects are PIC.
11703 lt_prog_compiler_pic_CXX=
11704 lt_prog_compiler_static_CXX='-non_shared'
11705 ;;
11706 *)
11707 ;;
11708 esac
11709 ;;
11710 lynxos*)
11711 ;;
11712 m88k*)
11713 ;;
11714 mvs*)
11715 case $cc_basename in
11716 cxx*)
11717 lt_prog_compiler_pic_CXX='-W c,exportall'
11718 ;;
11719 *)
11720 ;;
11721 esac
11722 ;;
11723 netbsd*)
11724 ;;
11725 osf3* | osf4* | osf5*)
11726 case $cc_basename in
11727 KCC*)
11728 lt_prog_compiler_wl_CXX='--backend -Wl,'
11729 ;;
11730 RCC*)
11731 # Rational C++ 2.4.1
11732 lt_prog_compiler_pic_CXX='-pic'
11733 ;;
11734 cxx*)
11735 # Digital/Compaq C++
11736 lt_prog_compiler_wl_CXX='-Wl,'
11737 # Make sure the PIC flag is empty. It appears that all Alpha
11738 # Linux and Compaq Tru64 Unix objects are PIC.
11739 lt_prog_compiler_pic_CXX=
11740 lt_prog_compiler_static_CXX='-non_shared'
11741 ;;
11742 *)
11743 ;;
11744 esac
11745 ;;
11746 psos*)
11747 ;;
11748 solaris*)
11749 case $cc_basename in
11750 CC*)
11751 # Sun C++ 4.2, 5.x and Centerline C++
11752 lt_prog_compiler_pic_CXX='-KPIC'
11753 lt_prog_compiler_static_CXX='-Bstatic'
11754 lt_prog_compiler_wl_CXX='-Qoption ld '
11755 ;;
11756 gcx*)
11757 # Green Hills C++ Compiler
11758 lt_prog_compiler_pic_CXX='-PIC'
11759 ;;
11760 *)
11761 ;;
11762 esac
11763 ;;
11764 sunos4*)
11765 case $cc_basename in
11766 CC*)
11767 # Sun C++ 4.x
11768 lt_prog_compiler_pic_CXX='-pic'
11769 lt_prog_compiler_static_CXX='-Bstatic'
11770 ;;
11771 lcc*)
11772 # Lucid
11773 lt_prog_compiler_pic_CXX='-pic'
11774 ;;
11775 *)
11776 ;;
11777 esac
11778 ;;
11779 tandem*)
11780 case $cc_basename in
11781 NCC*)
11782 # NonStop-UX NCC 3.20
11783 lt_prog_compiler_pic_CXX='-KPIC'
11784 ;;
11785 *)
11786 ;;
11787 esac
11788 ;;
11789 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11790 case $cc_basename in
11791 CC*)
11792 lt_prog_compiler_wl_CXX='-Wl,'
11793 lt_prog_compiler_pic_CXX='-KPIC'
11794 lt_prog_compiler_static_CXX='-Bstatic'
11795 ;;
11796 esac
11797 ;;
11798 vxworks*)
11799 ;;
11800 *)
11801 lt_prog_compiler_can_build_shared_CXX=no
11802 ;;
11803 esac
11804 fi
11805
11806 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11807 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11808
11809 #
11810 # Check to make sure the PIC flag actually works.
11811 #
11812 if test -n "$lt_prog_compiler_pic_CXX"; then
11813
11814 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11815 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11816 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11817 echo $ECHO_N "(cached) $ECHO_C" >&6
11818 else
11819 lt_prog_compiler_pic_works_CXX=no
11820 ac_outfile=conftest.$ac_objext
11821 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11822 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11823 # Insert the option either (1) after the last *FLAGS variable, or
11824 # (2) before a word containing "conftest.", or (3) at the end.
11825 # Note that $ac_compile itself does not contain backslashes and begins
11826 # with a dollar sign (not a hyphen), so the echo should work correctly.
11827 # The option is referenced via a variable to avoid confusing sed.
11828 lt_compile=`echo "$ac_compile" | $SED \
11829 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11830 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11831 -e 's:$: $lt_compiler_flag:'`
11832 (eval echo "\"\$as_me:11832: $lt_compile\"" >&5)
11833 (eval "$lt_compile" 2>conftest.err)
11834 ac_status=$?
11835 cat conftest.err >&5
11836 echo "$as_me:11836: \$? = $ac_status" >&5
11837 if (exit $ac_status) && test -s "$ac_outfile"; then
11838 # The compiler can only warn and ignore the option if not recognized
11839 # So say no if there are warnings other than the usual output.
11840 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11841 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11842 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11843 lt_prog_compiler_pic_works_CXX=yes
11844 fi
11845 fi
11846 $rm conftest*
11847
11848 fi
11849 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11850 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11851
11852 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11853 case $lt_prog_compiler_pic_CXX in
11854 "" | " "*) ;;
11855 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11856 esac
11857 else
11858 lt_prog_compiler_pic_CXX=
11859 lt_prog_compiler_can_build_shared_CXX=no
11860 fi
11861
11862 fi
11863 case $host_os in
11864 # For platforms which do not support PIC, -DPIC is meaningless:
11865 *djgpp*)
11866 lt_prog_compiler_pic_CXX=
11867 ;;
11868 *)
11869 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11870 ;;
11871 esac
11872
11873 #
11874 # Check to make sure the static flag actually works.
11875 #
11876 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11877 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11878 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11879 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11880 echo $ECHO_N "(cached) $ECHO_C" >&6
11881 else
11882 lt_prog_compiler_static_works_CXX=no
11883 save_LDFLAGS="$LDFLAGS"
11884 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11885 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11886 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11887 # The linker can only warn and ignore the option if not recognized
11888 # So say no if there are warnings
11889 if test -s conftest.err; then
11890 # Append any errors to the config.log.
11891 cat conftest.err 1>&5
11892 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11893 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11894 if diff conftest.exp conftest.er2 >/dev/null; then
11895 lt_prog_compiler_static_works_CXX=yes
11896 fi
11897 else
11898 lt_prog_compiler_static_works_CXX=yes
11899 fi
11900 fi
11901 $rm conftest*
11902 LDFLAGS="$save_LDFLAGS"
11903
11904 fi
11905 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11906 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11907
11908 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11909 :
11910 else
11911 lt_prog_compiler_static_CXX=
11912 fi
11913
11914
11915 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11916 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11917 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11918 echo $ECHO_N "(cached) $ECHO_C" >&6
11919 else
11920 lt_cv_prog_compiler_c_o_CXX=no
11921 $rm -r conftest 2>/dev/null
11922 mkdir conftest
11923 cd conftest
11924 mkdir out
11925 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11926
11927 lt_compiler_flag="-o out/conftest2.$ac_objext"
11928 # Insert the option either (1) after the last *FLAGS variable, or
11929 # (2) before a word containing "conftest.", or (3) at the end.
11930 # Note that $ac_compile itself does not contain backslashes and begins
11931 # with a dollar sign (not a hyphen), so the echo should work correctly.
11932 lt_compile=`echo "$ac_compile" | $SED \
11933 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11934 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11935 -e 's:$: $lt_compiler_flag:'`
11936 (eval echo "\"\$as_me:11936: $lt_compile\"" >&5)
11937 (eval "$lt_compile" 2>out/conftest.err)
11938 ac_status=$?
11939 cat out/conftest.err >&5
11940 echo "$as_me:11940: \$? = $ac_status" >&5
11941 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11942 then
11943 # The compiler can only warn and ignore the option if not recognized
11944 # So say no if there are warnings
11945 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11946 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11947 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11948 lt_cv_prog_compiler_c_o_CXX=yes
11949 fi
11950 fi
11951 chmod u+w . 2>&5
11952 $rm conftest*
11953 # SGI C++ compiler will create directory out/ii_files/ for
11954 # template instantiation
11955 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11956 $rm out/* && rmdir out
11957 cd ..
11958 rmdir conftest
11959 $rm conftest*
11960
11961 fi
11962 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11963 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11964
11965
11966 hard_links="nottested"
11967 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11968 # do not overwrite the value of need_locks provided by the user
11969 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11970 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11971 hard_links=yes
11972 $rm conftest*
11973 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11974 touch conftest.a
11975 ln conftest.a conftest.b 2>&5 || hard_links=no
11976 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11977 echo "$as_me:$LINENO: result: $hard_links" >&5
11978 echo "${ECHO_T}$hard_links" >&6
11979 if test "$hard_links" = no; then
11980 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11981 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11982 need_locks=warn
11983 fi
11984 else
11985 need_locks=no
11986 fi
11987
11988 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11989 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11990
11991 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11992 case $host_os in
11993 aix4* | aix5*)
11994 # If we're using GNU nm, then we don't want the "-C" option.
11995 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11996 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11997 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
11998 else
11999 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12000 fi
12001 ;;
12002 pw32*)
12003 export_symbols_cmds_CXX="$ltdll_cmds"
12004 ;;
12005 cygwin* | mingw*)
12006 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12007 ;;
12008 *)
12009 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12010 ;;
12011 esac
12012
12013 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12014 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12015 test "$ld_shlibs_CXX" = no && can_build_shared=no
12016
12017 #
12018 # Do we need to explicitly link libc?
12019 #
12020 case "x$archive_cmds_need_lc_CXX" in
12021 x|xyes)
12022 # Assume -lc should be added
12023 archive_cmds_need_lc_CXX=yes
12024
12025 if test "$enable_shared" = yes && test "$GCC" = yes; then
12026 case $archive_cmds_CXX in
12027 *'~'*)
12028 # FIXME: we may have to deal with multi-command sequences.
12029 ;;
12030 '$CC '*)
12031 # Test whether the compiler implicitly links with -lc since on some
12032 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12033 # to ld, don't add -lc before -lgcc.
12034 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12035 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12036 $rm conftest*
12037 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12038
12039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12040 (eval $ac_compile) 2>&5
12041 ac_status=$?
12042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043 (exit $ac_status); } 2>conftest.err; then
12044 soname=conftest
12045 lib=conftest
12046 libobjs=conftest.$ac_objext
12047 deplibs=
12048 wl=$lt_prog_compiler_wl_CXX
12049 pic_flag=$lt_prog_compiler_pic_CXX
12050 compiler_flags=-v
12051 linker_flags=-v
12052 verstring=
12053 output_objdir=.
12054 libname=conftest
12055 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12056 allow_undefined_flag_CXX=
12057 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12058 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12059 ac_status=$?
12060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12061 (exit $ac_status); }
12062 then
12063 archive_cmds_need_lc_CXX=no
12064 else
12065 archive_cmds_need_lc_CXX=yes
12066 fi
12067 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12068 else
12069 cat conftest.err 1>&5
12070 fi
12071 $rm conftest*
12072 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12073 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12074 ;;
12075 esac
12076 fi
12077 ;;
12078 esac
12079
12080 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12081 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12082 library_names_spec=
12083 libname_spec='lib$name'
12084 soname_spec=
12085 shrext_cmds=".so"
12086 postinstall_cmds=
12087 postuninstall_cmds=
12088 finish_cmds=
12089 finish_eval=
12090 shlibpath_var=
12091 shlibpath_overrides_runpath=unknown
12092 version_type=none
12093 dynamic_linker="$host_os ld.so"
12094 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12095 if test "$GCC" = yes; then
12096 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12097 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12098 # if the path contains ";" then we assume it to be the separator
12099 # otherwise default to the standard path separator (i.e. ":") - it is
12100 # assumed that no part of a normal pathname contains ";" but that should
12101 # okay in the real world where ";" in dirpaths is itself problematic.
12102 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12103 else
12104 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12105 fi
12106 else
12107 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12108 fi
12109 need_lib_prefix=unknown
12110 hardcode_into_libs=no
12111
12112 # when you set need_version to no, make sure it does not cause -set_version
12113 # flags to be left without arguments
12114 need_version=unknown
12115
12116 case $host_os in
12117 aix3*)
12118 version_type=linux
12119 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12120 shlibpath_var=LIBPATH
12121
12122 # AIX 3 has no versioning support, so we append a major version to the name.
12123 soname_spec='${libname}${release}${shared_ext}$major'
12124 ;;
12125
12126 aix4* | aix5*)
12127 version_type=linux
12128 need_lib_prefix=no
12129 need_version=no
12130 hardcode_into_libs=yes
12131 if test "$host_cpu" = ia64; then
12132 # AIX 5 supports IA64
12133 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12134 shlibpath_var=LD_LIBRARY_PATH
12135 else
12136 # With GCC up to 2.95.x, collect2 would create an import file
12137 # for dependence libraries. The import file would start with
12138 # the line `#! .'. This would cause the generated library to
12139 # depend on `.', always an invalid library. This was fixed in
12140 # development snapshots of GCC prior to 3.0.
12141 case $host_os in
12142 aix4 | aix4.[01] | aix4.[01].*)
12143 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12144 echo ' yes '
12145 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12146 :
12147 else
12148 can_build_shared=no
12149 fi
12150 ;;
12151 esac
12152 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12153 # soname into executable. Probably we can add versioning support to
12154 # collect2, so additional links can be useful in future.
12155 if test "$aix_use_runtimelinking" = yes; then
12156 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12157 # instead of lib<name>.a to let people know that these are not
12158 # typical AIX shared libraries.
12159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12160 else
12161 # We preserve .a as extension for shared libraries through AIX4.2
12162 # and later when we are not doing run time linking.
12163 library_names_spec='${libname}${release}.a $libname.a'
12164 soname_spec='${libname}${release}${shared_ext}$major'
12165 fi
12166 shlibpath_var=LIBPATH
12167 fi
12168 ;;
12169
12170 amigaos*)
12171 library_names_spec='$libname.ixlibrary $libname.a'
12172 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12173 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
12174 ;;
12175
12176 beos*)
12177 library_names_spec='${libname}${shared_ext}'
12178 dynamic_linker="$host_os ld.so"
12179 shlibpath_var=LIBRARY_PATH
12180 ;;
12181
12182 bsdi[45]*)
12183 version_type=linux
12184 need_version=no
12185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12186 soname_spec='${libname}${release}${shared_ext}$major'
12187 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12188 shlibpath_var=LD_LIBRARY_PATH
12189 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12190 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12191 # the default ld.so.conf also contains /usr/contrib/lib and
12192 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12193 # libtool to hard-code these into programs
12194 ;;
12195
12196 cygwin* | mingw* | pw32*)
12197 version_type=windows
12198 shrext_cmds=".dll"
12199 need_version=no
12200 need_lib_prefix=no
12201
12202 case $GCC,$host_os in
12203 yes,cygwin* | yes,mingw* | yes,pw32*)
12204 library_names_spec='$libname.dll.a'
12205 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12206 postinstall_cmds='base_file=`basename \${file}`~
12207 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12208 dldir=$destdir/`dirname \$dlpath`~
12209 test -d \$dldir || mkdir -p \$dldir~
12210 $install_prog $dir/$dlname \$dldir/$dlname~
12211 chmod a+x \$dldir/$dlname'
12212 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12213 dlpath=$dir/\$dldll~
12214 $rm \$dlpath'
12215 shlibpath_overrides_runpath=yes
12216
12217 case $host_os in
12218 cygwin*)
12219 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12220 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12221 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12222 ;;
12223 mingw*)
12224 # MinGW DLLs use traditional 'lib' prefix
12225 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12226 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12227 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12228 # It is most probably a Windows format PATH printed by
12229 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12230 # path with ; separators, and with drive letters. We can handle the
12231 # drive letters (cygwin fileutils understands them), so leave them,
12232 # especially as we might pass files found there to a mingw objdump,
12233 # which wouldn't understand a cygwinified path. Ahh.
12234 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12235 else
12236 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12237 fi
12238 ;;
12239 pw32*)
12240 # pw32 DLLs use 'pw' prefix rather than 'lib'
12241 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12242 ;;
12243 esac
12244 ;;
12245
12246 *)
12247 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12248 ;;
12249 esac
12250 dynamic_linker='Win32 ld.exe'
12251 # FIXME: first we should search . and the directory the executable is in
12252 shlibpath_var=PATH
12253 ;;
12254
12255 darwin* | rhapsody*)
12256 dynamic_linker="$host_os dyld"
12257 version_type=darwin
12258 need_lib_prefix=no
12259 need_version=no
12260 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12261 soname_spec='${libname}${release}${major}$shared_ext'
12262 shlibpath_overrides_runpath=yes
12263 shlibpath_var=DYLD_LIBRARY_PATH
12264 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12265 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12266 if test "$GCC" = yes; then
12267 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12268 else
12269 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12270 fi
12271 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12272 ;;
12273
12274 dgux*)
12275 version_type=linux
12276 need_lib_prefix=no
12277 need_version=no
12278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12279 soname_spec='${libname}${release}${shared_ext}$major'
12280 shlibpath_var=LD_LIBRARY_PATH
12281 ;;
12282
12283 freebsd1*)
12284 dynamic_linker=no
12285 ;;
12286
12287 kfreebsd*-gnu)
12288 version_type=linux
12289 need_lib_prefix=no
12290 need_version=no
12291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12292 soname_spec='${libname}${release}${shared_ext}$major'
12293 shlibpath_var=LD_LIBRARY_PATH
12294 shlibpath_overrides_runpath=no
12295 hardcode_into_libs=yes
12296 dynamic_linker='GNU ld.so'
12297 ;;
12298
12299 freebsd* | dragonfly*)
12300 # DragonFly does not have aout. When/if they implement a new
12301 # versioning mechanism, adjust this.
12302 if test -x /usr/bin/objformat; then
12303 objformat=`/usr/bin/objformat`
12304 else
12305 case $host_os in
12306 freebsd[123]*) objformat=aout ;;
12307 *) objformat=elf ;;
12308 esac
12309 fi
12310 version_type=freebsd-$objformat
12311 case $version_type in
12312 freebsd-elf*)
12313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12314 need_version=no
12315 need_lib_prefix=no
12316 ;;
12317 freebsd-*)
12318 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12319 need_version=yes
12320 ;;
12321 esac
12322 shlibpath_var=LD_LIBRARY_PATH
12323 case $host_os in
12324 freebsd2*)
12325 shlibpath_overrides_runpath=yes
12326 ;;
12327 freebsd3.[01]* | freebsdelf3.[01]*)
12328 shlibpath_overrides_runpath=yes
12329 hardcode_into_libs=yes
12330 ;;
12331 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12332 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12333 shlibpath_overrides_runpath=no
12334 hardcode_into_libs=yes
12335 ;;
12336 freebsd*) # from 4.6 on
12337 shlibpath_overrides_runpath=yes
12338 hardcode_into_libs=yes
12339 ;;
12340 esac
12341 ;;
12342
12343 gnu*)
12344 version_type=linux
12345 need_lib_prefix=no
12346 need_version=no
12347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12348 soname_spec='${libname}${release}${shared_ext}$major'
12349 shlibpath_var=LD_LIBRARY_PATH
12350 hardcode_into_libs=yes
12351 ;;
12352
12353 hpux9* | hpux10* | hpux11*)
12354 # Give a soname corresponding to the major version so that dld.sl refuses to
12355 # link against other versions.
12356 version_type=sunos
12357 need_lib_prefix=no
12358 need_version=no
12359 case $host_cpu in
12360 ia64*)
12361 shrext_cmds='.so'
12362 hardcode_into_libs=yes
12363 dynamic_linker="$host_os dld.so"
12364 shlibpath_var=LD_LIBRARY_PATH
12365 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12367 soname_spec='${libname}${release}${shared_ext}$major'
12368 if test "X$HPUX_IA64_MODE" = X32; then
12369 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12370 else
12371 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12372 fi
12373 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12374 ;;
12375 hppa*64*)
12376 shrext_cmds='.sl'
12377 hardcode_into_libs=yes
12378 dynamic_linker="$host_os dld.sl"
12379 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12380 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12382 soname_spec='${libname}${release}${shared_ext}$major'
12383 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12384 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12385 ;;
12386 *)
12387 shrext_cmds='.sl'
12388 dynamic_linker="$host_os dld.sl"
12389 shlibpath_var=SHLIB_PATH
12390 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12392 soname_spec='${libname}${release}${shared_ext}$major'
12393 ;;
12394 esac
12395 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12396 postinstall_cmds='chmod 555 $lib'
12397 ;;
12398
12399 interix3*)
12400 version_type=linux
12401 need_lib_prefix=no
12402 need_version=no
12403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12404 soname_spec='${libname}${release}${shared_ext}$major'
12405 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12406 shlibpath_var=LD_LIBRARY_PATH
12407 shlibpath_overrides_runpath=no
12408 hardcode_into_libs=yes
12409 ;;
12410
12411 irix5* | irix6* | nonstopux*)
12412 case $host_os in
12413 nonstopux*) version_type=nonstopux ;;
12414 *)
12415 if test "$lt_cv_prog_gnu_ld" = yes; then
12416 version_type=linux
12417 else
12418 version_type=irix
12419 fi ;;
12420 esac
12421 need_lib_prefix=no
12422 need_version=no
12423 soname_spec='${libname}${release}${shared_ext}$major'
12424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12425 case $host_os in
12426 irix5* | nonstopux*)
12427 libsuff= shlibsuff=
12428 ;;
12429 *)
12430 case $LD in # libtool.m4 will add one of these switches to LD
12431 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12432 libsuff= shlibsuff= libmagic=32-bit;;
12433 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12434 libsuff=32 shlibsuff=N32 libmagic=N32;;
12435 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12436 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12437 *) libsuff= shlibsuff= libmagic=never-match;;
12438 esac
12439 ;;
12440 esac
12441 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12442 shlibpath_overrides_runpath=no
12443 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12444 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12445 hardcode_into_libs=yes
12446 ;;
12447
12448 # No shared lib support for Linux oldld, aout, or coff.
12449 linux*oldld* | linux*aout* | linux*coff*)
12450 dynamic_linker=no
12451 ;;
12452
12453 # This must be Linux ELF.
12454 linux*)
12455 version_type=linux
12456 need_lib_prefix=no
12457 need_version=no
12458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12459 soname_spec='${libname}${release}${shared_ext}$major'
12460 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12461 shlibpath_var=LD_LIBRARY_PATH
12462 shlibpath_overrides_runpath=no
12463 # This implies no fast_install, which is unacceptable.
12464 # Some rework will be needed to allow for fast_install
12465 # before this can be enabled.
12466 hardcode_into_libs=yes
12467
12468 # find out which ABI we are using
12469 libsuff=
12470 case "$host_cpu" in
12471 x86_64*|s390x*|powerpc64*)
12472 echo '#line 12472 "configure"' > conftest.$ac_ext
12473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12474 (eval $ac_compile) 2>&5
12475 ac_status=$?
12476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12477 (exit $ac_status); }; then
12478 case `/usr/bin/file conftest.$ac_objext` in
12479 *64-bit*)
12480 libsuff=64
12481 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12482 ;;
12483 esac
12484 fi
12485 rm -rf conftest*
12486 ;;
12487 esac
12488
12489 # Append ld.so.conf contents to the search path
12490 if test -f /etc/ld.so.conf; then
12491 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12492 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12493 fi
12494
12495 # We used to test for /lib/ld.so.1 and disable shared libraries on
12496 # powerpc, because MkLinux only supported shared libraries with the
12497 # GNU dynamic linker. Since this was broken with cross compilers,
12498 # most powerpc-linux boxes support dynamic linking these days and
12499 # people can always --disable-shared, the test was removed, and we
12500 # assume the GNU/Linux dynamic linker is in use.
12501 dynamic_linker='GNU/Linux ld.so'
12502 ;;
12503
12504 knetbsd*-gnu)
12505 version_type=linux
12506 need_lib_prefix=no
12507 need_version=no
12508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12509 soname_spec='${libname}${release}${shared_ext}$major'
12510 shlibpath_var=LD_LIBRARY_PATH
12511 shlibpath_overrides_runpath=no
12512 hardcode_into_libs=yes
12513 dynamic_linker='GNU ld.so'
12514 ;;
12515
12516 netbsd*)
12517 version_type=sunos
12518 need_lib_prefix=no
12519 need_version=no
12520 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12522 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12523 dynamic_linker='NetBSD (a.out) ld.so'
12524 else
12525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12526 soname_spec='${libname}${release}${shared_ext}$major'
12527 dynamic_linker='NetBSD ld.elf_so'
12528 fi
12529 shlibpath_var=LD_LIBRARY_PATH
12530 shlibpath_overrides_runpath=yes
12531 hardcode_into_libs=yes
12532 ;;
12533
12534 newsos6)
12535 version_type=linux
12536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12537 shlibpath_var=LD_LIBRARY_PATH
12538 shlibpath_overrides_runpath=yes
12539 ;;
12540
12541 nto-qnx*)
12542 version_type=linux
12543 need_lib_prefix=no
12544 need_version=no
12545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12546 soname_spec='${libname}${release}${shared_ext}$major'
12547 shlibpath_var=LD_LIBRARY_PATH
12548 shlibpath_overrides_runpath=yes
12549 ;;
12550
12551 openbsd*)
12552 version_type=sunos
12553 sys_lib_dlsearch_path_spec="/usr/lib"
12554 need_lib_prefix=no
12555 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12556 case $host_os in
12557 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12558 *) need_version=no ;;
12559 esac
12560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12561 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12562 shlibpath_var=LD_LIBRARY_PATH
12563 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12564 case $host_os in
12565 openbsd2.[89] | openbsd2.[89].*)
12566 shlibpath_overrides_runpath=no
12567 ;;
12568 *)
12569 shlibpath_overrides_runpath=yes
12570 ;;
12571 esac
12572 else
12573 shlibpath_overrides_runpath=yes
12574 fi
12575 ;;
12576
12577 os2*)
12578 libname_spec='$name'
12579 shrext_cmds=".dll"
12580 need_lib_prefix=no
12581 library_names_spec='$libname${shared_ext} $libname.a'
12582 dynamic_linker='OS/2 ld.exe'
12583 shlibpath_var=LIBPATH
12584 ;;
12585
12586 osf3* | osf4* | osf5*)
12587 version_type=osf
12588 need_lib_prefix=no
12589 need_version=no
12590 soname_spec='${libname}${release}${shared_ext}$major'
12591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12592 shlibpath_var=LD_LIBRARY_PATH
12593 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12594 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12595 ;;
12596
12597 solaris*)
12598 version_type=linux
12599 need_lib_prefix=no
12600 need_version=no
12601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12602 soname_spec='${libname}${release}${shared_ext}$major'
12603 shlibpath_var=LD_LIBRARY_PATH
12604 shlibpath_overrides_runpath=yes
12605 hardcode_into_libs=yes
12606 # ldd complains unless libraries are executable
12607 postinstall_cmds='chmod +x $lib'
12608 ;;
12609
12610 sunos4*)
12611 version_type=sunos
12612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12613 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12614 shlibpath_var=LD_LIBRARY_PATH
12615 shlibpath_overrides_runpath=yes
12616 if test "$with_gnu_ld" = yes; then
12617 need_lib_prefix=no
12618 fi
12619 need_version=yes
12620 ;;
12621
12622 sysv4 | sysv4.3*)
12623 version_type=linux
12624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12625 soname_spec='${libname}${release}${shared_ext}$major'
12626 shlibpath_var=LD_LIBRARY_PATH
12627 case $host_vendor in
12628 sni)
12629 shlibpath_overrides_runpath=no
12630 need_lib_prefix=no
12631 export_dynamic_flag_spec='${wl}-Blargedynsym'
12632 runpath_var=LD_RUN_PATH
12633 ;;
12634 siemens)
12635 need_lib_prefix=no
12636 ;;
12637 motorola)
12638 need_lib_prefix=no
12639 need_version=no
12640 shlibpath_overrides_runpath=no
12641 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12642 ;;
12643 esac
12644 ;;
12645
12646 sysv4*MP*)
12647 if test -d /usr/nec ;then
12648 version_type=linux
12649 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12650 soname_spec='$libname${shared_ext}.$major'
12651 shlibpath_var=LD_LIBRARY_PATH
12652 fi
12653 ;;
12654
12655 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12656 version_type=freebsd-elf
12657 need_lib_prefix=no
12658 need_version=no
12659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12660 soname_spec='${libname}${release}${shared_ext}$major'
12661 shlibpath_var=LD_LIBRARY_PATH
12662 hardcode_into_libs=yes
12663 if test "$with_gnu_ld" = yes; then
12664 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12665 shlibpath_overrides_runpath=no
12666 else
12667 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12668 shlibpath_overrides_runpath=yes
12669 case $host_os in
12670 sco3.2v5*)
12671 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12672 ;;
12673 esac
12674 fi
12675 sys_lib_dlsearch_path_spec='/usr/lib'
12676 ;;
12677
12678 uts4*)
12679 version_type=linux
12680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12681 soname_spec='${libname}${release}${shared_ext}$major'
12682 shlibpath_var=LD_LIBRARY_PATH
12683 ;;
12684
12685 *)
12686 dynamic_linker=no
12687 ;;
12688 esac
12689 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12690 echo "${ECHO_T}$dynamic_linker" >&6
12691 test "$dynamic_linker" = no && can_build_shared=no
12692
12693 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12694 if test "$GCC" = yes; then
12695 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12696 fi
12697
12698 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12699 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12700 hardcode_action_CXX=
12701 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12702 test -n "$runpath_var_CXX" || \
12703 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12704
12705 # We can hardcode non-existant directories.
12706 if test "$hardcode_direct_CXX" != no &&
12707 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12708 # have to relink, otherwise we might link with an installed library
12709 # when we should be linking with a yet-to-be-installed one
12710 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12711 test "$hardcode_minus_L_CXX" != no; then
12712 # Linking always hardcodes the temporary library directory.
12713 hardcode_action_CXX=relink
12714 else
12715 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12716 hardcode_action_CXX=immediate
12717 fi
12718 else
12719 # We cannot hardcode anything, or else we can only hardcode existing
12720 # directories.
12721 hardcode_action_CXX=unsupported
12722 fi
12723 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12724 echo "${ECHO_T}$hardcode_action_CXX" >&6
12725
12726 if test "$hardcode_action_CXX" = relink; then
12727 # Fast installation is not supported
12728 enable_fast_install=no
12729 elif test "$shlibpath_overrides_runpath" = yes ||
12730 test "$enable_shared" = no; then
12731 # Fast installation is not necessary
12732 enable_fast_install=needless
12733 fi
12734
12735
12736 # The else clause should only fire when bootstrapping the
12737 # libtool distribution, otherwise you forgot to ship ltmain.sh
12738 # with your package, and you will get complaints that there are
12739 # no rules to generate ltmain.sh.
12740 if test -f "$ltmain"; then
12741 # See if we are running on zsh, and set the options which allow our commands through
12742 # without removal of \ escapes.
12743 if test -n "${ZSH_VERSION+set}" ; then
12744 setopt NO_GLOB_SUBST
12745 fi
12746 # Now quote all the things that may contain metacharacters while being
12747 # careful not to overquote the AC_SUBSTed values. We take copies of the
12748 # variables and quote the copies for generation of the libtool script.
12749 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12750 SED SHELL STRIP \
12751 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12752 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12753 deplibs_check_method reload_flag reload_cmds need_locks \
12754 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12755 lt_cv_sys_global_symbol_to_c_name_address \
12756 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12757 old_postinstall_cmds old_postuninstall_cmds \
12758 compiler_CXX \
12759 CC_CXX \
12760 LD_CXX \
12761 lt_prog_compiler_wl_CXX \
12762 lt_prog_compiler_pic_CXX \
12763 lt_prog_compiler_static_CXX \
12764 lt_prog_compiler_no_builtin_flag_CXX \
12765 export_dynamic_flag_spec_CXX \
12766 thread_safe_flag_spec_CXX \
12767 whole_archive_flag_spec_CXX \
12768 enable_shared_with_static_runtimes_CXX \
12769 old_archive_cmds_CXX \
12770 old_archive_from_new_cmds_CXX \
12771 predep_objects_CXX \
12772 postdep_objects_CXX \
12773 predeps_CXX \
12774 postdeps_CXX \
12775 compiler_lib_search_path_CXX \
12776 archive_cmds_CXX \
12777 archive_expsym_cmds_CXX \
12778 postinstall_cmds_CXX \
12779 postuninstall_cmds_CXX \
12780 old_archive_from_expsyms_cmds_CXX \
12781 allow_undefined_flag_CXX \
12782 no_undefined_flag_CXX \
12783 export_symbols_cmds_CXX \
12784 hardcode_libdir_flag_spec_CXX \
12785 hardcode_libdir_flag_spec_ld_CXX \
12786 hardcode_libdir_separator_CXX \
12787 hardcode_automatic_CXX \
12788 module_cmds_CXX \
12789 module_expsym_cmds_CXX \
12790 lt_cv_prog_compiler_c_o_CXX \
12791 exclude_expsyms_CXX \
12792 include_expsyms_CXX; do
12793
12794 case $var in
12795 old_archive_cmds_CXX | \
12796 old_archive_from_new_cmds_CXX | \
12797 archive_cmds_CXX | \
12798 archive_expsym_cmds_CXX | \
12799 module_cmds_CXX | \
12800 module_expsym_cmds_CXX | \
12801 old_archive_from_expsyms_cmds_CXX | \
12802 export_symbols_cmds_CXX | \
12803 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12804 postinstall_cmds | postuninstall_cmds | \
12805 old_postinstall_cmds | old_postuninstall_cmds | \
12806 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12807 # Double-quote double-evaled strings.
12808 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12809 ;;
12810 *)
12811 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12812 ;;
12813 esac
12814 done
12815
12816 case $lt_echo in
12817 *'\$0 --fallback-echo"')
12818 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12819 ;;
12820 esac
12821
12822 cfgfile="$ofile"
12823
12824 cat <<__EOF__ >> "$cfgfile"
12825 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12826
12827 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12828
12829 # Shell to use when invoking shell scripts.
12830 SHELL=$lt_SHELL
12831
12832 # Whether or not to build shared libraries.
12833 build_libtool_libs=$enable_shared
12834
12835 # Whether or not to build static libraries.
12836 build_old_libs=$enable_static
12837
12838 # Whether or not to add -lc for building shared libraries.
12839 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12840
12841 # Whether or not to disallow shared libs when runtime libs are static
12842 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12843
12844 # Whether or not to optimize for fast installation.
12845 fast_install=$enable_fast_install
12846
12847 # The host system.
12848 host_alias=$host_alias
12849 host=$host
12850 host_os=$host_os
12851
12852 # The build system.
12853 build_alias=$build_alias
12854 build=$build
12855 build_os=$build_os
12856
12857 # An echo program that does not interpret backslashes.
12858 echo=$lt_echo
12859
12860 # The archiver.
12861 AR=$lt_AR
12862 AR_FLAGS=$lt_AR_FLAGS
12863
12864 # A C compiler.
12865 LTCC=$lt_LTCC
12866
12867 # LTCC compiler flags.
12868 LTCFLAGS=$lt_LTCFLAGS
12869
12870 # A language-specific compiler.
12871 CC=$lt_compiler_CXX
12872
12873 # Is the compiler the GNU C compiler?
12874 with_gcc=$GCC_CXX
12875
12876 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
12877 gcc_ver=\`gcc -dumpversion\`
12878
12879 # An ERE matcher.
12880 EGREP=$lt_EGREP
12881
12882 # The linker used to build libraries.
12883 LD=$lt_LD_CXX
12884
12885 # Whether we need hard or soft links.
12886 LN_S=$lt_LN_S
12887
12888 # A BSD-compatible nm program.
12889 NM=$lt_NM
12890
12891 # A symbol stripping program
12892 STRIP=$lt_STRIP
12893
12894 # Used to examine libraries when file_magic_cmd begins "file"
12895 MAGIC_CMD=$MAGIC_CMD
12896
12897 # Used on cygwin: DLL creation program.
12898 DLLTOOL="$DLLTOOL"
12899
12900 # Used on cygwin: object dumper.
12901 OBJDUMP="$OBJDUMP"
12902
12903 # Used on cygwin: assembler.
12904 AS="$AS"
12905
12906 # The name of the directory that contains temporary libtool files.
12907 objdir=$objdir
12908
12909 # How to create reloadable object files.
12910 reload_flag=$lt_reload_flag
12911 reload_cmds=$lt_reload_cmds
12912
12913 # How to pass a linker flag through the compiler.
12914 wl=$lt_lt_prog_compiler_wl_CXX
12915
12916 # Object file suffix (normally "o").
12917 objext="$ac_objext"
12918
12919 # Old archive suffix (normally "a").
12920 libext="$libext"
12921
12922 # Shared library suffix (normally ".so").
12923 shrext_cmds='$shrext_cmds'
12924
12925 # Executable file suffix (normally "").
12926 exeext="$exeext"
12927
12928 # Additional compiler flags for building library objects.
12929 pic_flag=$lt_lt_prog_compiler_pic_CXX
12930 pic_mode=$pic_mode
12931
12932 # What is the maximum length of a command?
12933 max_cmd_len=$lt_cv_sys_max_cmd_len
12934
12935 # Does compiler simultaneously support -c and -o options?
12936 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12937
12938 # Must we lock files when doing compilation?
12939 need_locks=$lt_need_locks
12940
12941 # Do we need the lib prefix for modules?
12942 need_lib_prefix=$need_lib_prefix
12943
12944 # Do we need a version for libraries?
12945 need_version=$need_version
12946
12947 # Whether dlopen is supported.
12948 dlopen_support=$enable_dlopen
12949
12950 # Whether dlopen of programs is supported.
12951 dlopen_self=$enable_dlopen_self
12952
12953 # Whether dlopen of statically linked programs is supported.
12954 dlopen_self_static=$enable_dlopen_self_static
12955
12956 # Compiler flag to prevent dynamic linking.
12957 link_static_flag=$lt_lt_prog_compiler_static_CXX
12958
12959 # Compiler flag to turn off builtin functions.
12960 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12961
12962 # Compiler flag to allow reflexive dlopens.
12963 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12964
12965 # Compiler flag to generate shared objects directly from archives.
12966 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12967
12968 # Compiler flag to generate thread-safe objects.
12969 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12970
12971 # Library versioning type.
12972 version_type=$version_type
12973
12974 # Format of library name prefix.
12975 libname_spec=$lt_libname_spec
12976
12977 # List of archive names. First name is the real one, the rest are links.
12978 # The last name is the one that the linker finds with -lNAME.
12979 library_names_spec=$lt_library_names_spec
12980
12981 # The coded name of the library, if different from the real name.
12982 soname_spec=$lt_soname_spec
12983
12984 # Commands used to build and install an old-style archive.
12985 RANLIB=$lt_RANLIB
12986 old_archive_cmds=$lt_old_archive_cmds_CXX
12987 old_postinstall_cmds=$lt_old_postinstall_cmds
12988 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12989
12990 # Create an old-style archive from a shared archive.
12991 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12992
12993 # Create a temporary old-style archive to link instead of a shared archive.
12994 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12995
12996 # Commands used to build and install a shared archive.
12997 archive_cmds=$lt_archive_cmds_CXX
12998 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12999 postinstall_cmds=$lt_postinstall_cmds
13000 postuninstall_cmds=$lt_postuninstall_cmds
13001
13002 # Commands used to build a loadable module (assumed same as above if empty)
13003 module_cmds=$lt_module_cmds_CXX
13004 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13005
13006 # Commands to strip libraries.
13007 old_striplib=$lt_old_striplib
13008 striplib=$lt_striplib
13009
13010 # Dependencies to place before the objects being linked to create a
13011 # shared library.
13012 predep_objects=\`echo $lt_predep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13013
13014 # Dependencies to place after the objects being linked to create a
13015 # shared library.
13016 postdep_objects=\`echo $lt_postdep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13017
13018 # Dependencies to place before the objects being linked to create a
13019 # shared library.
13020 predeps=$lt_predeps_CXX
13021
13022 # Dependencies to place after the objects being linked to create a
13023 # shared library.
13024 postdeps=$lt_postdeps_CXX
13025
13026 # The library search path used internally by the compiler when linking
13027 # a shared library.
13028 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13029
13030 # Method to check whether dependent libraries are shared objects.
13031 deplibs_check_method=$lt_deplibs_check_method
13032
13033 # Command to use when deplibs_check_method == file_magic.
13034 file_magic_cmd=$lt_file_magic_cmd
13035
13036 # Flag that allows shared libraries with undefined symbols to be built.
13037 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13038
13039 # Flag that forces no undefined symbols.
13040 no_undefined_flag=$lt_no_undefined_flag_CXX
13041
13042 # Commands used to finish a libtool library installation in a directory.
13043 finish_cmds=$lt_finish_cmds
13044
13045 # Same as above, but a single script fragment to be evaled but not shown.
13046 finish_eval=$lt_finish_eval
13047
13048 # Take the output of nm and produce a listing of raw symbols and C names.
13049 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13050
13051 # Transform the output of nm in a proper C declaration
13052 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13053
13054 # Transform the output of nm in a C name address pair
13055 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13056
13057 # This is the shared library runtime path variable.
13058 runpath_var=$runpath_var
13059
13060 # This is the shared library path variable.
13061 shlibpath_var=$shlibpath_var
13062
13063 # Is shlibpath searched before the hard-coded library search path?
13064 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13065
13066 # How to hardcode a shared library path into an executable.
13067 hardcode_action=$hardcode_action_CXX
13068
13069 # Whether we should hardcode library paths into libraries.
13070 hardcode_into_libs=$hardcode_into_libs
13071
13072 # Flag to hardcode \$libdir into a binary during linking.
13073 # This must work even if \$libdir does not exist.
13074 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13075
13076 # If ld is used when linking, flag to hardcode \$libdir into
13077 # a binary during linking. This must work even if \$libdir does
13078 # not exist.
13079 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13080
13081 # Whether we need a single -rpath flag with a separated argument.
13082 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13083
13084 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13085 # resulting binary.
13086 hardcode_direct=$hardcode_direct_CXX
13087
13088 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13089 # resulting binary.
13090 hardcode_minus_L=$hardcode_minus_L_CXX
13091
13092 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13093 # the resulting binary.
13094 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13095
13096 # Set to yes if building a shared library automatically hardcodes DIR into the library
13097 # and all subsequent libraries and executables linked against it.
13098 hardcode_automatic=$hardcode_automatic_CXX
13099
13100 # Variables whose values should be saved in libtool wrapper scripts and
13101 # restored at relink time.
13102 variables_saved_for_relink="$variables_saved_for_relink"
13103
13104 # Whether libtool must link a program against all its dependency libraries.
13105 link_all_deplibs=$link_all_deplibs_CXX
13106
13107 # Compile-time system search path for libraries
13108 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13109
13110 # Run-time system search path for libraries
13111 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13112
13113 # Fix the shell variable \$srcfile for the compiler.
13114 fix_srcfile_path="$fix_srcfile_path_CXX"
13115
13116 # Set to yes if exported symbols are required.
13117 always_export_symbols=$always_export_symbols_CXX
13118
13119 # The commands to list exported symbols.
13120 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13121
13122 # The commands to extract the exported symbol list from a shared archive.
13123 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13124
13125 # Symbols that should not be listed in the preloaded symbols.
13126 exclude_expsyms=$lt_exclude_expsyms_CXX
13127
13128 # Symbols that must always be exported.
13129 include_expsyms=$lt_include_expsyms_CXX
13130
13131 # ### END LIBTOOL TAG CONFIG: $tagname
13132
13133 __EOF__
13134
13135
13136 else
13137 # If there is no Makefile yet, we rely on a make rule to execute
13138 # `config.status --recheck' to rerun these tests and create the
13139 # libtool script then.
13140 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13141 if test -f "$ltmain_in"; then
13142 test -f Makefile && make "$ltmain"
13143 fi
13144 fi
13145
13146
13147 ac_ext=c
13148 ac_cpp='$CPP $CPPFLAGS'
13149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13152
13153 CC=$lt_save_CC
13154 LDCXX=$LD
13155 LD=$lt_save_LD
13156 GCC=$lt_save_GCC
13157 with_gnu_ldcxx=$with_gnu_ld
13158 with_gnu_ld=$lt_save_with_gnu_ld
13159 lt_cv_path_LDCXX=$lt_cv_path_LD
13160 lt_cv_path_LD=$lt_save_path_LD
13161 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13162 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13163
13164 else
13165 tagname=""
13166 fi
13167 ;;
13168
13169 F77)
13170 if test -n "$F77" && test "X$F77" != "Xno"; then
13171
13172 ac_ext=f
13173 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13174 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13175 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13176
13177
13178 archive_cmds_need_lc_F77=no
13179 allow_undefined_flag_F77=
13180 always_export_symbols_F77=no
13181 archive_expsym_cmds_F77=
13182 export_dynamic_flag_spec_F77=
13183 hardcode_direct_F77=no
13184 hardcode_libdir_flag_spec_F77=
13185 hardcode_libdir_flag_spec_ld_F77=
13186 hardcode_libdir_separator_F77=
13187 hardcode_minus_L_F77=no
13188 hardcode_automatic_F77=no
13189 module_cmds_F77=
13190 module_expsym_cmds_F77=
13191 link_all_deplibs_F77=unknown
13192 old_archive_cmds_F77=$old_archive_cmds
13193 no_undefined_flag_F77=
13194 whole_archive_flag_spec_F77=
13195 enable_shared_with_static_runtimes_F77=no
13196
13197 # Source file extension for f77 test sources.
13198 ac_ext=f
13199
13200 # Object file extension for compiled f77 test sources.
13201 objext=o
13202 objext_F77=$objext
13203
13204 # Code to be used in simple compile tests
13205 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13206
13207 # Code to be used in simple link tests
13208 lt_simple_link_test_code=" program t\n end\n"
13209
13210 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13211
13212 # If no C compiler was specified, use CC.
13213 LTCC=${LTCC-"$CC"}
13214
13215 # If no C compiler flags were specified, use CFLAGS.
13216 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13217
13218 # Allow CC to be a program name with arguments.
13219 compiler=$CC
13220
13221
13222 # save warnings/boilerplate of simple test code
13223 ac_outfile=conftest.$ac_objext
13224 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13225 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13226 _lt_compiler_boilerplate=`cat conftest.err`
13227 $rm conftest*
13228
13229 ac_outfile=conftest.$ac_objext
13230 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13231 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13232 _lt_linker_boilerplate=`cat conftest.err`
13233 $rm conftest*
13234
13235
13236 # Allow CC to be a program name with arguments.
13237 lt_save_CC="$CC"
13238 CC=${F77-"f77"}
13239 compiler=$CC
13240 compiler_F77=$CC
13241 for cc_temp in $compiler""; do
13242 case $cc_temp in
13243 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13244 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13245 \-*) ;;
13246 *) break;;
13247 esac
13248 done
13249 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13250
13251
13252 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13253 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13254 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13255 echo "${ECHO_T}$can_build_shared" >&6
13256
13257 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13258 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13259 test "$can_build_shared" = "no" && enable_shared=no
13260
13261 # On AIX, shared libraries and static libraries use the same namespace, and
13262 # are all built from PIC.
13263 case $host_os in
13264 aix3*)
13265 test "$enable_shared" = yes && enable_static=no
13266 if test -n "$RANLIB"; then
13267 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13268 postinstall_cmds='$RANLIB $lib'
13269 fi
13270 ;;
13271 aix4* | aix5*)
13272 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13273 test "$enable_shared" = yes && enable_static=no
13274 fi
13275 ;;
13276 esac
13277 echo "$as_me:$LINENO: result: $enable_shared" >&5
13278 echo "${ECHO_T}$enable_shared" >&6
13279
13280 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13281 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13282 # Make sure either enable_shared or enable_static is yes.
13283 test "$enable_shared" = yes || enable_static=yes
13284 echo "$as_me:$LINENO: result: $enable_static" >&5
13285 echo "${ECHO_T}$enable_static" >&6
13286
13287 GCC_F77="$G77"
13288 LD_F77="$LD"
13289
13290 lt_prog_compiler_wl_F77=
13291 lt_prog_compiler_pic_F77=
13292 lt_prog_compiler_static_F77=
13293
13294 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13295 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13296
13297 if test "$GCC" = yes; then
13298 lt_prog_compiler_wl_F77='-Wl,'
13299 lt_prog_compiler_static_F77='-static'
13300
13301 case $host_os in
13302 aix*)
13303 # All AIX code is PIC.
13304 if test "$host_cpu" = ia64; then
13305 # AIX 5 now supports IA64 processor
13306 lt_prog_compiler_static_F77='-Bstatic'
13307 fi
13308 ;;
13309
13310 amigaos*)
13311 # FIXME: we need at least 68020 code to build shared libraries, but
13312 # adding the `-m68020' flag to GCC prevents building anything better,
13313 # like `-m68040'.
13314 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13315 ;;
13316
13317 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13318 # PIC is the default for these OSes.
13319 ;;
13320
13321 mingw* | pw32* | os2*)
13322 # This hack is so that the source file can tell whether it is being
13323 # built for inclusion in a dll (and should export symbols for example).
13324 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13325 ;;
13326
13327 darwin* | rhapsody*)
13328 # PIC is the default on this platform
13329 # Common symbols not allowed in MH_DYLIB files
13330 lt_prog_compiler_pic_F77='-fno-common'
13331 ;;
13332
13333 interix3*)
13334 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13335 # Instead, we relocate shared libraries at runtime.
13336 ;;
13337
13338 msdosdjgpp*)
13339 # Just because we use GCC doesn't mean we suddenly get shared libraries
13340 # on systems that don't support them.
13341 lt_prog_compiler_can_build_shared_F77=no
13342 enable_shared=no
13343 ;;
13344
13345 sysv4*MP*)
13346 if test -d /usr/nec; then
13347 lt_prog_compiler_pic_F77=-Kconform_pic
13348 fi
13349 ;;
13350
13351 hpux*)
13352 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13353 # not for PA HP-UX.
13354 case $host_cpu in
13355 hppa*64*|ia64*)
13356 # +Z the default
13357 ;;
13358 *)
13359 lt_prog_compiler_pic_F77='-fPIC'
13360 ;;
13361 esac
13362 ;;
13363
13364 *)
13365 lt_prog_compiler_pic_F77='-fPIC'
13366 ;;
13367 esac
13368 else
13369 # PORTME Check for flag to pass linker flags through the system compiler.
13370 case $host_os in
13371 aix*)
13372 lt_prog_compiler_wl_F77='-Wl,'
13373 if test "$host_cpu" = ia64; then
13374 # AIX 5 now supports IA64 processor
13375 lt_prog_compiler_static_F77='-Bstatic'
13376 else
13377 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13378 fi
13379 ;;
13380 darwin*)
13381 # PIC is the default on this platform
13382 # Common symbols not allowed in MH_DYLIB files
13383 case $cc_basename in
13384 xlc*)
13385 lt_prog_compiler_pic_F77='-qnocommon'
13386 lt_prog_compiler_wl_F77='-Wl,'
13387 ;;
13388 esac
13389 ;;
13390
13391 mingw* | pw32* | os2*)
13392 # This hack is so that the source file can tell whether it is being
13393 # built for inclusion in a dll (and should export symbols for example).
13394 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13395 ;;
13396
13397 hpux9* | hpux10* | hpux11*)
13398 lt_prog_compiler_wl_F77='-Wl,'
13399 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13400 # not for PA HP-UX.
13401 case $host_cpu in
13402 hppa*64*|ia64*)
13403 # +Z the default
13404 ;;
13405 *)
13406 lt_prog_compiler_pic_F77='+Z'
13407 ;;
13408 esac
13409 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13410 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13411 ;;
13412
13413 irix5* | irix6* | nonstopux*)
13414 lt_prog_compiler_wl_F77='-Wl,'
13415 # PIC (with -KPIC) is the default.
13416 lt_prog_compiler_static_F77='-non_shared'
13417 ;;
13418
13419 newsos6)
13420 lt_prog_compiler_pic_F77='-KPIC'
13421 lt_prog_compiler_static_F77='-Bstatic'
13422 ;;
13423
13424 linux*)
13425 case $cc_basename in
13426 icc* | ecc*)
13427 lt_prog_compiler_wl_F77='-Wl,'
13428 lt_prog_compiler_pic_F77='-KPIC'
13429 lt_prog_compiler_static_F77='-static'
13430 ;;
13431 pgcc* | pgf77* | pgf90* | pgf95*)
13432 # Portland Group compilers (*not* the Pentium gcc compiler,
13433 # which looks to be a dead project)
13434 lt_prog_compiler_wl_F77='-Wl,'
13435 lt_prog_compiler_pic_F77='-fpic'
13436 lt_prog_compiler_static_F77='-Bstatic'
13437 ;;
13438 ccc*)
13439 lt_prog_compiler_wl_F77='-Wl,'
13440 # All Alpha code is PIC.
13441 lt_prog_compiler_static_F77='-non_shared'
13442 ;;
13443 esac
13444 ;;
13445
13446 osf3* | osf4* | osf5*)
13447 lt_prog_compiler_wl_F77='-Wl,'
13448 # All OSF/1 code is PIC.
13449 lt_prog_compiler_static_F77='-non_shared'
13450 ;;
13451
13452 solaris*)
13453 lt_prog_compiler_pic_F77='-KPIC'
13454 lt_prog_compiler_static_F77='-Bstatic'
13455 case $cc_basename in
13456 f77* | f90* | f95*)
13457 lt_prog_compiler_wl_F77='-Qoption ld ';;
13458 *)
13459 lt_prog_compiler_wl_F77='-Wl,';;
13460 esac
13461 ;;
13462
13463 sunos4*)
13464 lt_prog_compiler_wl_F77='-Qoption ld '
13465 lt_prog_compiler_pic_F77='-PIC'
13466 lt_prog_compiler_static_F77='-Bstatic'
13467 ;;
13468
13469 sysv4 | sysv4.2uw2* | sysv4.3*)
13470 lt_prog_compiler_wl_F77='-Wl,'
13471 lt_prog_compiler_pic_F77='-KPIC'
13472 lt_prog_compiler_static_F77='-Bstatic'
13473 ;;
13474
13475 sysv4*MP*)
13476 if test -d /usr/nec ;then
13477 lt_prog_compiler_pic_F77='-Kconform_pic'
13478 lt_prog_compiler_static_F77='-Bstatic'
13479 fi
13480 ;;
13481
13482 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13483 lt_prog_compiler_wl_F77='-Wl,'
13484 lt_prog_compiler_pic_F77='-KPIC'
13485 lt_prog_compiler_static_F77='-Bstatic'
13486 ;;
13487
13488 unicos*)
13489 lt_prog_compiler_wl_F77='-Wl,'
13490 lt_prog_compiler_can_build_shared_F77=no
13491 ;;
13492
13493 uts4*)
13494 lt_prog_compiler_pic_F77='-pic'
13495 lt_prog_compiler_static_F77='-Bstatic'
13496 ;;
13497
13498 *)
13499 lt_prog_compiler_can_build_shared_F77=no
13500 ;;
13501 esac
13502 fi
13503
13504 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13505 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13506
13507 #
13508 # Check to make sure the PIC flag actually works.
13509 #
13510 if test -n "$lt_prog_compiler_pic_F77"; then
13511
13512 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13513 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13514 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13515 echo $ECHO_N "(cached) $ECHO_C" >&6
13516 else
13517 lt_prog_compiler_pic_works_F77=no
13518 ac_outfile=conftest.$ac_objext
13519 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13520 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13521 # Insert the option either (1) after the last *FLAGS variable, or
13522 # (2) before a word containing "conftest.", or (3) at the end.
13523 # Note that $ac_compile itself does not contain backslashes and begins
13524 # with a dollar sign (not a hyphen), so the echo should work correctly.
13525 # The option is referenced via a variable to avoid confusing sed.
13526 lt_compile=`echo "$ac_compile" | $SED \
13527 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13528 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13529 -e 's:$: $lt_compiler_flag:'`
13530 (eval echo "\"\$as_me:13530: $lt_compile\"" >&5)
13531 (eval "$lt_compile" 2>conftest.err)
13532 ac_status=$?
13533 cat conftest.err >&5
13534 echo "$as_me:13534: \$? = $ac_status" >&5
13535 if (exit $ac_status) && test -s "$ac_outfile"; then
13536 # The compiler can only warn and ignore the option if not recognized
13537 # So say no if there are warnings other than the usual output.
13538 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13539 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13540 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13541 lt_prog_compiler_pic_works_F77=yes
13542 fi
13543 fi
13544 $rm conftest*
13545
13546 fi
13547 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13548 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13549
13550 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13551 case $lt_prog_compiler_pic_F77 in
13552 "" | " "*) ;;
13553 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13554 esac
13555 else
13556 lt_prog_compiler_pic_F77=
13557 lt_prog_compiler_can_build_shared_F77=no
13558 fi
13559
13560 fi
13561 case $host_os in
13562 # For platforms which do not support PIC, -DPIC is meaningless:
13563 *djgpp*)
13564 lt_prog_compiler_pic_F77=
13565 ;;
13566 *)
13567 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13568 ;;
13569 esac
13570
13571 #
13572 # Check to make sure the static flag actually works.
13573 #
13574 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13575 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13576 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13577 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13578 echo $ECHO_N "(cached) $ECHO_C" >&6
13579 else
13580 lt_prog_compiler_static_works_F77=no
13581 save_LDFLAGS="$LDFLAGS"
13582 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13583 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13584 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13585 # The linker can only warn and ignore the option if not recognized
13586 # So say no if there are warnings
13587 if test -s conftest.err; then
13588 # Append any errors to the config.log.
13589 cat conftest.err 1>&5
13590 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13591 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13592 if diff conftest.exp conftest.er2 >/dev/null; then
13593 lt_prog_compiler_static_works_F77=yes
13594 fi
13595 else
13596 lt_prog_compiler_static_works_F77=yes
13597 fi
13598 fi
13599 $rm conftest*
13600 LDFLAGS="$save_LDFLAGS"
13601
13602 fi
13603 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13604 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13605
13606 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13607 :
13608 else
13609 lt_prog_compiler_static_F77=
13610 fi
13611
13612
13613 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13614 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13615 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13616 echo $ECHO_N "(cached) $ECHO_C" >&6
13617 else
13618 lt_cv_prog_compiler_c_o_F77=no
13619 $rm -r conftest 2>/dev/null
13620 mkdir conftest
13621 cd conftest
13622 mkdir out
13623 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13624
13625 lt_compiler_flag="-o out/conftest2.$ac_objext"
13626 # Insert the option either (1) after the last *FLAGS variable, or
13627 # (2) before a word containing "conftest.", or (3) at the end.
13628 # Note that $ac_compile itself does not contain backslashes and begins
13629 # with a dollar sign (not a hyphen), so the echo should work correctly.
13630 lt_compile=`echo "$ac_compile" | $SED \
13631 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13632 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13633 -e 's:$: $lt_compiler_flag:'`
13634 (eval echo "\"\$as_me:13634: $lt_compile\"" >&5)
13635 (eval "$lt_compile" 2>out/conftest.err)
13636 ac_status=$?
13637 cat out/conftest.err >&5
13638 echo "$as_me:13638: \$? = $ac_status" >&5
13639 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13640 then
13641 # The compiler can only warn and ignore the option if not recognized
13642 # So say no if there are warnings
13643 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13644 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13645 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13646 lt_cv_prog_compiler_c_o_F77=yes
13647 fi
13648 fi
13649 chmod u+w . 2>&5
13650 $rm conftest*
13651 # SGI C++ compiler will create directory out/ii_files/ for
13652 # template instantiation
13653 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13654 $rm out/* && rmdir out
13655 cd ..
13656 rmdir conftest
13657 $rm conftest*
13658
13659 fi
13660 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13661 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13662
13663
13664 hard_links="nottested"
13665 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13666 # do not overwrite the value of need_locks provided by the user
13667 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13668 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13669 hard_links=yes
13670 $rm conftest*
13671 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13672 touch conftest.a
13673 ln conftest.a conftest.b 2>&5 || hard_links=no
13674 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13675 echo "$as_me:$LINENO: result: $hard_links" >&5
13676 echo "${ECHO_T}$hard_links" >&6
13677 if test "$hard_links" = no; then
13678 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13679 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13680 need_locks=warn
13681 fi
13682 else
13683 need_locks=no
13684 fi
13685
13686 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13687 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13688
13689 runpath_var=
13690 allow_undefined_flag_F77=
13691 enable_shared_with_static_runtimes_F77=no
13692 archive_cmds_F77=
13693 archive_expsym_cmds_F77=
13694 old_archive_From_new_cmds_F77=
13695 old_archive_from_expsyms_cmds_F77=
13696 export_dynamic_flag_spec_F77=
13697 whole_archive_flag_spec_F77=
13698 thread_safe_flag_spec_F77=
13699 hardcode_libdir_flag_spec_F77=
13700 hardcode_libdir_flag_spec_ld_F77=
13701 hardcode_libdir_separator_F77=
13702 hardcode_direct_F77=no
13703 hardcode_minus_L_F77=no
13704 hardcode_shlibpath_var_F77=unsupported
13705 link_all_deplibs_F77=unknown
13706 hardcode_automatic_F77=no
13707 module_cmds_F77=
13708 module_expsym_cmds_F77=
13709 always_export_symbols_F77=no
13710 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13711 # include_expsyms should be a list of space-separated symbols to be *always*
13712 # included in the symbol list
13713 include_expsyms_F77=
13714 # exclude_expsyms can be an extended regexp of symbols to exclude
13715 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13716 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13717 # as well as any symbol that contains `d'.
13718 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13719 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13720 # platforms (ab)use it in PIC code, but their linkers get confused if
13721 # the symbol is explicitly referenced. Since portable code cannot
13722 # rely on this symbol name, it's probably fine to never include it in
13723 # preloaded symbol tables.
13724 extract_expsyms_cmds=
13725 # Just being paranoid about ensuring that cc_basename is set.
13726 for cc_temp in $compiler""; do
13727 case $cc_temp in
13728 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13729 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13730 \-*) ;;
13731 *) break;;
13732 esac
13733 done
13734 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13735
13736 case $host_os in
13737 cygwin* | mingw* | pw32*)
13738 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13739 # When not using gcc, we currently assume that we are using
13740 # Microsoft Visual C++.
13741 if test "$GCC" != yes; then
13742 with_gnu_ld=no
13743 fi
13744 ;;
13745 interix*)
13746 # we just hope/assume this is gcc and not c89 (= MSVC++)
13747 with_gnu_ld=yes
13748 ;;
13749 openbsd*)
13750 with_gnu_ld=no
13751 ;;
13752 esac
13753
13754 ld_shlibs_F77=yes
13755 if test "$with_gnu_ld" = yes; then
13756 # If archive_cmds runs LD, not CC, wlarc should be empty
13757 wlarc='${wl}'
13758
13759 # Set some defaults for GNU ld with shared library support. These
13760 # are reset later if shared libraries are not supported. Putting them
13761 # here allows them to be overridden if necessary.
13762 runpath_var=LD_RUN_PATH
13763 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13764 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13765 # ancient GNU ld didn't support --whole-archive et. al.
13766 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13767 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13768 else
13769 whole_archive_flag_spec_F77=
13770 fi
13771 supports_anon_versioning=no
13772 case `$LD -v 2>/dev/null` in
13773 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13774 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13775 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13776 *\ 2.11.*) ;; # other 2.11 versions
13777 *) supports_anon_versioning=yes ;;
13778 esac
13779
13780 # See if GNU ld supports shared libraries.
13781 case $host_os in
13782 aix3* | aix4* | aix5*)
13783 # On AIX/PPC, the GNU linker is very broken
13784 if test "$host_cpu" != ia64; then
13785 ld_shlibs_F77=no
13786 cat <<EOF 1>&2
13787
13788 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13789 *** to be unable to reliably create shared libraries on AIX.
13790 *** Therefore, libtool is disabling shared libraries support. If you
13791 *** really care for shared libraries, you may want to modify your PATH
13792 *** so that a non-GNU linker is found, and then restart.
13793
13794 EOF
13795 fi
13796 ;;
13797
13798 amigaos*)
13799 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
13800 hardcode_libdir_flag_spec_F77='-L$libdir'
13801 hardcode_minus_L_F77=yes
13802
13803 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13804 # that the semantics of dynamic libraries on AmigaOS, at least up
13805 # to version 4, is to share data among multiple programs linked
13806 # with the same dynamic library. Since this doesn't match the
13807 # behavior of shared libraries on other platforms, we can't use
13808 # them.
13809 ld_shlibs_F77=no
13810 ;;
13811
13812 beos*)
13813 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13814 allow_undefined_flag_F77=unsupported
13815 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13816 # support --undefined. This deserves some investigation. FIXME
13817 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13818 else
13819 ld_shlibs_F77=no
13820 fi
13821 ;;
13822
13823 cygwin* | mingw* | pw32*)
13824 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13825 # as there is no search path for DLLs.
13826 hardcode_libdir_flag_spec_F77='-L$libdir'
13827 allow_undefined_flag_F77=unsupported
13828 always_export_symbols_F77=no
13829 enable_shared_with_static_runtimes_F77=yes
13830 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13831
13832 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13833 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13834 # If the export-symbols file already is a .def file (1st line
13835 # is EXPORTS), use it as is; otherwise, prepend...
13836 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13837 cp $export_symbols $output_objdir/$soname.def;
13838 else
13839 echo EXPORTS > $output_objdir/$soname.def;
13840 cat $export_symbols >> $output_objdir/$soname.def;
13841 fi~
13842 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13843 else
13844 ld_shlibs_F77=no
13845 fi
13846 ;;
13847
13848 interix3*)
13849 hardcode_direct_F77=no
13850 hardcode_shlibpath_var_F77=no
13851 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13852 export_dynamic_flag_spec_F77='${wl}-E'
13853 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13854 # Instead, shared libraries are loaded at an image base (0x10000000 by
13855 # default) and relocated if they conflict, which is a slow very memory
13856 # consuming and fragmenting process. To avoid this, we pick a random,
13857 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13858 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13859 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13860 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13861 ;;
13862
13863 linux*)
13864 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13865 tmp_addflag=
13866 case $cc_basename,$host_cpu in
13867 pgcc*) # Portland Group C compiler
13868 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13869 tmp_addflag=' $pic_flag'
13870 ;;
13871 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13872 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13873 tmp_addflag=' $pic_flag -Mnomain' ;;
13874 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13875 tmp_addflag=' -i_dynamic' ;;
13876 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13877 tmp_addflag=' -i_dynamic -nofor_main' ;;
13878 ifc* | ifort*) # Intel Fortran compiler
13879 tmp_addflag=' -nofor_main' ;;
13880 esac
13881 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13882
13883 if test $supports_anon_versioning = yes; then
13884 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13885 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13886 $echo "local: *; };" >> $output_objdir/$libname.ver~
13887 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13888 fi
13889 else
13890 ld_shlibs_F77=no
13891 fi
13892 ;;
13893
13894 netbsd*)
13895 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13896 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13897 wlarc=
13898 else
13899 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13900 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13901 fi
13902 ;;
13903
13904 solaris*)
13905 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13906 ld_shlibs_F77=no
13907 cat <<EOF 1>&2
13908
13909 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13910 *** create shared libraries on Solaris systems. Therefore, libtool
13911 *** is disabling shared libraries support. We urge you to upgrade GNU
13912 *** binutils to release 2.9.1 or newer. Another option is to modify
13913 *** your PATH or compiler configuration so that the native linker is
13914 *** used, and then restart.
13915
13916 EOF
13917 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13918 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13919 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13920 else
13921 ld_shlibs_F77=no
13922 fi
13923 ;;
13924
13925 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13926 case `$LD -v 2>&1` in
13927 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13928 ld_shlibs_F77=no
13929 cat <<_LT_EOF 1>&2
13930
13931 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13932 *** reliably create shared libraries on SCO systems. Therefore, libtool
13933 *** is disabling shared libraries support. We urge you to upgrade GNU
13934 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13935 *** your PATH or compiler configuration so that the native linker is
13936 *** used, and then restart.
13937
13938 _LT_EOF
13939 ;;
13940 *)
13941 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13942 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13943 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13944 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13945 else
13946 ld_shlibs_F77=no
13947 fi
13948 ;;
13949 esac
13950 ;;
13951
13952 sunos4*)
13953 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13954 wlarc=
13955 hardcode_direct_F77=yes
13956 hardcode_shlibpath_var_F77=no
13957 ;;
13958
13959 *)
13960 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13961 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13962 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13963 else
13964 ld_shlibs_F77=no
13965 fi
13966 ;;
13967 esac
13968
13969 if test "$ld_shlibs_F77" = no; then
13970 runpath_var=
13971 hardcode_libdir_flag_spec_F77=
13972 export_dynamic_flag_spec_F77=
13973 whole_archive_flag_spec_F77=
13974 fi
13975 else
13976 # PORTME fill in a description of your system's linker (not GNU ld)
13977 case $host_os in
13978 aix3*)
13979 allow_undefined_flag_F77=unsupported
13980 always_export_symbols_F77=yes
13981 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
13982 # Note: this linker hardcodes the directories in LIBPATH if there
13983 # are no directories specified by -L.
13984 hardcode_minus_L_F77=yes
13985 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13986 # Neither direct hardcoding nor static linking is supported with a
13987 # broken collect2.
13988 hardcode_direct_F77=unsupported
13989 fi
13990 ;;
13991
13992 aix4* | aix5*)
13993 if test "$host_cpu" = ia64; then
13994 # On IA64, the linker does run time linking by default, so we don't
13995 # have to do anything special.
13996 aix_use_runtimelinking=no
13997 exp_sym_flag='-Bexport'
13998 no_entry_flag=""
13999 else
14000 # If we're using GNU nm, then we don't want the "-C" option.
14001 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14002 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14003 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14004 else
14005 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14006 fi
14007 aix_use_runtimelinking=no
14008
14009 # Test if we are trying to use run time linking or normal
14010 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14011 # need to do runtime linking.
14012 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14013 for ld_flag in $LDFLAGS; do
14014 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14015 aix_use_runtimelinking=yes
14016 break
14017 fi
14018 done
14019 ;;
14020 esac
14021
14022 exp_sym_flag='-bexport'
14023 no_entry_flag='-bnoentry'
14024 fi
14025
14026 # When large executables or shared objects are built, AIX ld can
14027 # have problems creating the table of contents. If linking a library
14028 # or program results in "error TOC overflow" add -mminimal-toc to
14029 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14030 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14031
14032 archive_cmds_F77=''
14033 hardcode_direct_F77=yes
14034 hardcode_libdir_separator_F77=':'
14035 link_all_deplibs_F77=yes
14036
14037 if test "$GCC" = yes; then
14038 case $host_os in aix4.[012]|aix4.[012].*)
14039 # We only want to do this on AIX 4.2 and lower, the check
14040 # below for broken collect2 doesn't work under 4.3+
14041 collect2name=`${CC} -print-prog-name=collect2`
14042 if test -f "$collect2name" && \
14043 strings "$collect2name" | grep resolve_lib_name >/dev/null
14044 then
14045 # We have reworked collect2
14046 hardcode_direct_F77=yes
14047 else
14048 # We have old collect2
14049 hardcode_direct_F77=unsupported
14050 # It fails to find uninstalled libraries when the uninstalled
14051 # path is not listed in the libpath. Setting hardcode_minus_L
14052 # to unsupported forces relinking
14053 hardcode_minus_L_F77=yes
14054 hardcode_libdir_flag_spec_F77='-L$libdir'
14055 hardcode_libdir_separator_F77=
14056 fi
14057 ;;
14058 esac
14059 shared_flag='-shared'
14060 if test "$aix_use_runtimelinking" = yes; then
14061 shared_flag="$shared_flag "'${wl}-G'
14062 fi
14063 else
14064 # not using gcc
14065 if test "$host_cpu" = ia64; then
14066 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14067 # chokes on -Wl,-G. The following line is correct:
14068 shared_flag='-G'
14069 else
14070 if test "$aix_use_runtimelinking" = yes; then
14071 shared_flag='${wl}-G'
14072 else
14073 shared_flag='${wl}-bM:SRE'
14074 fi
14075 fi
14076 fi
14077
14078 # It seems that -bexpall does not export symbols beginning with
14079 # underscore (_), so it is better to generate a list of symbols to export.
14080 always_export_symbols_F77=yes
14081 if test "$aix_use_runtimelinking" = yes; then
14082 # Warning - without using the other runtime loading flags (-brtl),
14083 # -berok will link without error, but may produce a broken library.
14084 allow_undefined_flag_F77='-berok'
14085 # Determine the default libpath from the value encoded in an empty executable.
14086 cat >conftest.$ac_ext <<_ACEOF
14087 program main
14088
14089 end
14090 _ACEOF
14091 rm -f conftest.$ac_objext conftest$ac_exeext
14092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14093 (eval $ac_link) 2>conftest.er1
14094 ac_status=$?
14095 grep -v '^ *+' conftest.er1 >conftest.err
14096 rm -f conftest.er1
14097 cat conftest.err >&5
14098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14099 (exit $ac_status); } &&
14100 { ac_try='test -z "$ac_f77_werror_flag"
14101 || test ! -s conftest.err'
14102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14103 (eval $ac_try) 2>&5
14104 ac_status=$?
14105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14106 (exit $ac_status); }; } &&
14107 { ac_try='test -s conftest$ac_exeext'
14108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14109 (eval $ac_try) 2>&5
14110 ac_status=$?
14111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14112 (exit $ac_status); }; }; then
14113
14114 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14115 }'`
14116 # Check for a 64-bit object if we didn't find anything.
14117 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14118 }'`; fi
14119 else
14120 echo "$as_me: failed program was:" >&5
14121 sed 's/^/| /' conftest.$ac_ext >&5
14122
14123 fi
14124 rm -f conftest.err conftest.$ac_objext \
14125 conftest$ac_exeext conftest.$ac_ext
14126 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14127
14128 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14129 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14130 else
14131 if test "$host_cpu" = ia64; then
14132 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14133 allow_undefined_flag_F77="-z nodefs"
14134 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
14135 else
14136 # Determine the default libpath from the value encoded in an empty executable.
14137 cat >conftest.$ac_ext <<_ACEOF
14138 program main
14139
14140 end
14141 _ACEOF
14142 rm -f conftest.$ac_objext conftest$ac_exeext
14143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14144 (eval $ac_link) 2>conftest.er1
14145 ac_status=$?
14146 grep -v '^ *+' conftest.er1 >conftest.err
14147 rm -f conftest.er1
14148 cat conftest.err >&5
14149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14150 (exit $ac_status); } &&
14151 { ac_try='test -z "$ac_f77_werror_flag"
14152 || test ! -s conftest.err'
14153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14154 (eval $ac_try) 2>&5
14155 ac_status=$?
14156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14157 (exit $ac_status); }; } &&
14158 { ac_try='test -s conftest$ac_exeext'
14159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14160 (eval $ac_try) 2>&5
14161 ac_status=$?
14162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14163 (exit $ac_status); }; }; then
14164
14165 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14166 }'`
14167 # Check for a 64-bit object if we didn't find anything.
14168 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14169 }'`; fi
14170 else
14171 echo "$as_me: failed program was:" >&5
14172 sed 's/^/| /' conftest.$ac_ext >&5
14173
14174 fi
14175 rm -f conftest.err conftest.$ac_objext \
14176 conftest$ac_exeext conftest.$ac_ext
14177 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14178
14179 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14180 # Warning - without using the other run time loading flags,
14181 # -berok will link without error, but may produce a broken library.
14182 no_undefined_flag_F77=' ${wl}-bernotok'
14183 allow_undefined_flag_F77=' ${wl}-berok'
14184 # Exported symbols can be pulled into shared objects from archives
14185 whole_archive_flag_spec_F77='$convenience'
14186 archive_cmds_need_lc_F77=yes
14187 # This is similar to how AIX traditionally builds its shared libraries.
14188 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14189 fi
14190 fi
14191 ;;
14192
14193 amigaos*)
14194 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
14195 hardcode_libdir_flag_spec_F77='-L$libdir'
14196 hardcode_minus_L_F77=yes
14197 # see comment about different semantics on the GNU ld section
14198 ld_shlibs_F77=no
14199 ;;
14200
14201 bsdi[45]*)
14202 export_dynamic_flag_spec_F77=-rdynamic
14203 ;;
14204
14205 cygwin* | mingw* | pw32*)
14206 # When not using gcc, we currently assume that we are using
14207 # Microsoft Visual C++.
14208 # hardcode_libdir_flag_spec is actually meaningless, as there is
14209 # no search path for DLLs.
14210 hardcode_libdir_flag_spec_F77=' '
14211 allow_undefined_flag_F77=unsupported
14212 # Tell ltmain to make .lib files, not .a files.
14213 libext=lib
14214 # Tell ltmain to make .dll files, not .so files.
14215 shrext_cmds=".dll"
14216 # FIXME: Setting linknames here is a bad hack.
14217 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14218 # The linker will automatically build a .lib file if we build a DLL.
14219 old_archive_From_new_cmds_F77='true'
14220 # FIXME: Should let the user specify the lib program.
14221 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14222 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14223 enable_shared_with_static_runtimes_F77=yes
14224 ;;
14225
14226 darwin* | rhapsody*)
14227 case $host_os in
14228 rhapsody* | darwin1.[012])
14229 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14230 ;;
14231 *) # Darwin 1.3 on
14232 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14233 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14234 else
14235 case ${MACOSX_DEPLOYMENT_TARGET} in
14236 10.[012])
14237 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14238 ;;
14239 10.*)
14240 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14241 ;;
14242 esac
14243 fi
14244 ;;
14245 esac
14246 archive_cmds_need_lc_F77=no
14247 hardcode_direct_F77=no
14248 hardcode_automatic_F77=yes
14249 hardcode_shlibpath_var_F77=unsupported
14250 whole_archive_flag_spec_F77=''
14251 link_all_deplibs_F77=yes
14252 if test "$GCC" = yes ; then
14253 output_verbose_link_cmd='echo'
14254 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14255 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14256 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14257 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14258 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14259 else
14260 case $cc_basename in
14261 xlc*)
14262 output_verbose_link_cmd='echo'
14263 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14264 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14265 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14266 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14267 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14268 ;;
14269 *)
14270 ld_shlibs_F77=no
14271 ;;
14272 esac
14273 fi
14274 ;;
14275
14276 dgux*)
14277 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14278 hardcode_libdir_flag_spec_F77='-L$libdir'
14279 hardcode_shlibpath_var_F77=no
14280 ;;
14281
14282 freebsd1*)
14283 ld_shlibs_F77=no
14284 ;;
14285
14286 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14287 # support. Future versions do this automatically, but an explicit c++rt0.o
14288 # does not break anything, and helps significantly (at the cost of a little
14289 # extra space).
14290 freebsd2.2*)
14291 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14292 hardcode_libdir_flag_spec_F77='-R$libdir'
14293 hardcode_direct_F77=yes
14294 hardcode_shlibpath_var_F77=no
14295 ;;
14296
14297 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14298 freebsd2*)
14299 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14300 hardcode_direct_F77=yes
14301 hardcode_minus_L_F77=yes
14302 hardcode_shlibpath_var_F77=no
14303 ;;
14304
14305 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14306 freebsd* | kfreebsd*-gnu | dragonfly*)
14307 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14308 hardcode_libdir_flag_spec_F77='-R$libdir'
14309 hardcode_direct_F77=yes
14310 hardcode_shlibpath_var_F77=no
14311 ;;
14312
14313 hpux9*)
14314 if test "$GCC" = yes; then
14315 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14316 else
14317 archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14318 fi
14319 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14320 hardcode_libdir_separator_F77=:
14321 hardcode_direct_F77=yes
14322
14323 # hardcode_minus_L: Not really in the search PATH,
14324 # but as the default location of the library.
14325 hardcode_minus_L_F77=yes
14326 export_dynamic_flag_spec_F77='${wl}-E'
14327 ;;
14328
14329 hpux10*)
14330 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14331 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14332 else
14333 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14334 fi
14335 if test "$with_gnu_ld" = no; then
14336 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14337 hardcode_libdir_separator_F77=:
14338
14339 hardcode_direct_F77=yes
14340 export_dynamic_flag_spec_F77='${wl}-E'
14341
14342 # hardcode_minus_L: Not really in the search PATH,
14343 # but as the default location of the library.
14344 hardcode_minus_L_F77=yes
14345 fi
14346 ;;
14347
14348 hpux11*)
14349 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14350 case $host_cpu in
14351 hppa*64*)
14352 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14353 ;;
14354 ia64*)
14355 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14356 ;;
14357 *)
14358 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14359 ;;
14360 esac
14361 else
14362 case $host_cpu in
14363 hppa*64*)
14364 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14365 ;;
14366 ia64*)
14367 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14368 ;;
14369 *)
14370 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14371 ;;
14372 esac
14373 fi
14374 if test "$with_gnu_ld" = no; then
14375 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14376 hardcode_libdir_separator_F77=:
14377
14378 case $host_cpu in
14379 hppa*64*|ia64*)
14380 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14381 hardcode_direct_F77=no
14382 hardcode_shlibpath_var_F77=no
14383 ;;
14384 *)
14385 hardcode_direct_F77=yes
14386 export_dynamic_flag_spec_F77='${wl}-E'
14387
14388 # hardcode_minus_L: Not really in the search PATH,
14389 # but as the default location of the library.
14390 hardcode_minus_L_F77=yes
14391 ;;
14392 esac
14393 fi
14394 ;;
14395
14396 irix5* | irix6* | nonstopux*)
14397 if test "$GCC" = yes; then
14398 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14399 else
14400 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14401 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14402 fi
14403 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14404 hardcode_libdir_separator_F77=:
14405 link_all_deplibs_F77=yes
14406 ;;
14407
14408 netbsd*)
14409 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14410 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14411 else
14412 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14413 fi
14414 hardcode_libdir_flag_spec_F77='-R$libdir'
14415 hardcode_direct_F77=yes
14416 hardcode_shlibpath_var_F77=no
14417 ;;
14418
14419 newsos6)
14420 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14421 hardcode_direct_F77=yes
14422 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14423 hardcode_libdir_separator_F77=:
14424 hardcode_shlibpath_var_F77=no
14425 ;;
14426
14427 openbsd*)
14428 hardcode_direct_F77=yes
14429 hardcode_shlibpath_var_F77=no
14430 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14431 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14432 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14433 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14434 export_dynamic_flag_spec_F77='${wl}-E'
14435 else
14436 case $host_os in
14437 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14438 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14439 hardcode_libdir_flag_spec_F77='-R$libdir'
14440 ;;
14441 *)
14442 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14443 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14444 ;;
14445 esac
14446 fi
14447 ;;
14448
14449 os2*)
14450 hardcode_libdir_flag_spec_F77='-L$libdir'
14451 hardcode_minus_L_F77=yes
14452 allow_undefined_flag_F77=unsupported
14453 archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
14454 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14455 ;;
14456
14457 osf3*)
14458 if test "$GCC" = yes; then
14459 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14460 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14461 else
14462 allow_undefined_flag_F77=' -expect_unresolved \*'
14463 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14464 fi
14465 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14466 hardcode_libdir_separator_F77=:
14467 ;;
14468
14469 osf4* | osf5*) # as osf3* with the addition of -msym flag
14470 if test "$GCC" = yes; then
14471 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14472 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14473 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14474 else
14475 allow_undefined_flag_F77=' -expect_unresolved \*'
14476 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14477 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14478 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14479
14480 # Both c and cxx compiler support -rpath directly
14481 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14482 fi
14483 hardcode_libdir_separator_F77=:
14484 ;;
14485
14486 solaris*)
14487 no_undefined_flag_F77=' -z text'
14488 if test "$GCC" = yes; then
14489 wlarc='${wl}'
14490 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14491 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14492 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14493 else
14494 wlarc=''
14495 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14496 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14497 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14498 fi
14499 hardcode_libdir_flag_spec_F77='-R$libdir'
14500 hardcode_shlibpath_var_F77=no
14501 case $host_os in
14502 solaris2.[0-5] | solaris2.[0-5].*) ;;
14503 *)
14504 # The compiler driver will combine linker options so we
14505 # cannot just pass the convience library names through
14506 # without $wl, iff we do not link with $LD.
14507 # Luckily, gcc supports the same syntax we need for Sun Studio.
14508 # Supported since Solaris 2.6 (maybe 2.5.1?)
14509 case $wlarc in
14510 '')
14511 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14512 *)
14513 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14514 esac ;;
14515 esac
14516 link_all_deplibs_F77=yes
14517 ;;
14518
14519 sunos4*)
14520 if test "x$host_vendor" = xsequent; then
14521 # Use $CC to link under sequent, because it throws in some extra .o
14522 # files that make .init and .fini sections work.
14523 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14524 else
14525 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14526 fi
14527 hardcode_libdir_flag_spec_F77='-L$libdir'
14528 hardcode_direct_F77=yes
14529 hardcode_minus_L_F77=yes
14530 hardcode_shlibpath_var_F77=no
14531 ;;
14532
14533 sysv4)
14534 case $host_vendor in
14535 sni)
14536 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14537 hardcode_direct_F77=yes # is this really true???
14538 ;;
14539 siemens)
14540 ## LD is ld it makes a PLAMLIB
14541 ## CC just makes a GrossModule.
14542 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14543 reload_cmds_F77='$CC -r -o $output$reload_objs'
14544 hardcode_direct_F77=no
14545 ;;
14546 motorola)
14547 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14548 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14549 ;;
14550 esac
14551 runpath_var='LD_RUN_PATH'
14552 hardcode_shlibpath_var_F77=no
14553 ;;
14554
14555 sysv4.3*)
14556 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14557 hardcode_shlibpath_var_F77=no
14558 export_dynamic_flag_spec_F77='-Bexport'
14559 ;;
14560
14561 sysv4*MP*)
14562 if test -d /usr/nec; then
14563 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14564 hardcode_shlibpath_var_F77=no
14565 runpath_var=LD_RUN_PATH
14566 hardcode_runpath_var=yes
14567 ld_shlibs_F77=yes
14568 fi
14569 ;;
14570
14571 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14572 no_undefined_flag_F77='${wl}-z,text'
14573 archive_cmds_need_lc_F77=no
14574 hardcode_shlibpath_var_F77=no
14575 runpath_var='LD_RUN_PATH'
14576
14577 if test "$GCC" = yes; then
14578 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14579 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14580 else
14581 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14582 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14583 fi
14584 ;;
14585
14586 sysv5* | sco3.2v5* | sco5v6*)
14587 # Note: We can NOT use -z defs as we might desire, because we do not
14588 # link with -lc, and that would cause any symbols used from libc to
14589 # always be unresolved, which means just about no library would
14590 # ever link correctly. If we're not using GNU ld we use -z text
14591 # though, which does catch some bad symbols but isn't as heavy-handed
14592 # as -z defs.
14593 no_undefined_flag_F77='${wl}-z,text'
14594 allow_undefined_flag_F77='${wl}-z,nodefs'
14595 archive_cmds_need_lc_F77=no
14596 hardcode_shlibpath_var_F77=no
14597 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14598 hardcode_libdir_separator_F77=':'
14599 link_all_deplibs_F77=yes
14600 export_dynamic_flag_spec_F77='${wl}-Bexport'
14601 runpath_var='LD_RUN_PATH'
14602
14603 if test "$GCC" = yes; then
14604 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14605 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14606 else
14607 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14608 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14609 fi
14610 ;;
14611
14612 uts4*)
14613 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14614 hardcode_libdir_flag_spec_F77='-L$libdir'
14615 hardcode_shlibpath_var_F77=no
14616 ;;
14617
14618 *)
14619 ld_shlibs_F77=no
14620 ;;
14621 esac
14622 fi
14623
14624 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14625 echo "${ECHO_T}$ld_shlibs_F77" >&6
14626 test "$ld_shlibs_F77" = no && can_build_shared=no
14627
14628 #
14629 # Do we need to explicitly link libc?
14630 #
14631 case "x$archive_cmds_need_lc_F77" in
14632 x|xyes)
14633 # Assume -lc should be added
14634 archive_cmds_need_lc_F77=yes
14635
14636 if test "$enable_shared" = yes && test "$GCC" = yes; then
14637 case $archive_cmds_F77 in
14638 *'~'*)
14639 # FIXME: we may have to deal with multi-command sequences.
14640 ;;
14641 '$CC '*)
14642 # Test whether the compiler implicitly links with -lc since on some
14643 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14644 # to ld, don't add -lc before -lgcc.
14645 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14646 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14647 $rm conftest*
14648 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14649
14650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14651 (eval $ac_compile) 2>&5
14652 ac_status=$?
14653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14654 (exit $ac_status); } 2>conftest.err; then
14655 soname=conftest
14656 lib=conftest
14657 libobjs=conftest.$ac_objext
14658 deplibs=
14659 wl=$lt_prog_compiler_wl_F77
14660 pic_flag=$lt_prog_compiler_pic_F77
14661 compiler_flags=-v
14662 linker_flags=-v
14663 verstring=
14664 output_objdir=.
14665 libname=conftest
14666 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14667 allow_undefined_flag_F77=
14668 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14669 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14670 ac_status=$?
14671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14672 (exit $ac_status); }
14673 then
14674 archive_cmds_need_lc_F77=no
14675 else
14676 archive_cmds_need_lc_F77=yes
14677 fi
14678 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14679 else
14680 cat conftest.err 1>&5
14681 fi
14682 $rm conftest*
14683 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14684 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14685 ;;
14686 esac
14687 fi
14688 ;;
14689 esac
14690
14691 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14692 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14693 library_names_spec=
14694 libname_spec='lib$name'
14695 soname_spec=
14696 shrext_cmds=".so"
14697 postinstall_cmds=
14698 postuninstall_cmds=
14699 finish_cmds=
14700 finish_eval=
14701 shlibpath_var=
14702 shlibpath_overrides_runpath=unknown
14703 version_type=none
14704 dynamic_linker="$host_os ld.so"
14705 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14706 if test "$GCC" = yes; then
14707 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14708 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14709 # if the path contains ";" then we assume it to be the separator
14710 # otherwise default to the standard path separator (i.e. ":") - it is
14711 # assumed that no part of a normal pathname contains ";" but that should
14712 # okay in the real world where ";" in dirpaths is itself problematic.
14713 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14714 else
14715 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14716 fi
14717 else
14718 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14719 fi
14720 need_lib_prefix=unknown
14721 hardcode_into_libs=no
14722
14723 # when you set need_version to no, make sure it does not cause -set_version
14724 # flags to be left without arguments
14725 need_version=unknown
14726
14727 case $host_os in
14728 aix3*)
14729 version_type=linux
14730 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14731 shlibpath_var=LIBPATH
14732
14733 # AIX 3 has no versioning support, so we append a major version to the name.
14734 soname_spec='${libname}${release}${shared_ext}$major'
14735 ;;
14736
14737 aix4* | aix5*)
14738 version_type=linux
14739 need_lib_prefix=no
14740 need_version=no
14741 hardcode_into_libs=yes
14742 if test "$host_cpu" = ia64; then
14743 # AIX 5 supports IA64
14744 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14745 shlibpath_var=LD_LIBRARY_PATH
14746 else
14747 # With GCC up to 2.95.x, collect2 would create an import file
14748 # for dependence libraries. The import file would start with
14749 # the line `#! .'. This would cause the generated library to
14750 # depend on `.', always an invalid library. This was fixed in
14751 # development snapshots of GCC prior to 3.0.
14752 case $host_os in
14753 aix4 | aix4.[01] | aix4.[01].*)
14754 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14755 echo ' yes '
14756 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14757 :
14758 else
14759 can_build_shared=no
14760 fi
14761 ;;
14762 esac
14763 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14764 # soname into executable. Probably we can add versioning support to
14765 # collect2, so additional links can be useful in future.
14766 if test "$aix_use_runtimelinking" = yes; then
14767 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14768 # instead of lib<name>.a to let people know that these are not
14769 # typical AIX shared libraries.
14770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14771 else
14772 # We preserve .a as extension for shared libraries through AIX4.2
14773 # and later when we are not doing run time linking.
14774 library_names_spec='${libname}${release}.a $libname.a'
14775 soname_spec='${libname}${release}${shared_ext}$major'
14776 fi
14777 shlibpath_var=LIBPATH
14778 fi
14779 ;;
14780
14781 amigaos*)
14782 library_names_spec='$libname.ixlibrary $libname.a'
14783 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14784 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14785 ;;
14786
14787 beos*)
14788 library_names_spec='${libname}${shared_ext}'
14789 dynamic_linker="$host_os ld.so"
14790 shlibpath_var=LIBRARY_PATH
14791 ;;
14792
14793 bsdi[45]*)
14794 version_type=linux
14795 need_version=no
14796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14797 soname_spec='${libname}${release}${shared_ext}$major'
14798 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14799 shlibpath_var=LD_LIBRARY_PATH
14800 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14801 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14802 # the default ld.so.conf also contains /usr/contrib/lib and
14803 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14804 # libtool to hard-code these into programs
14805 ;;
14806
14807 cygwin* | mingw* | pw32*)
14808 version_type=windows
14809 shrext_cmds=".dll"
14810 need_version=no
14811 need_lib_prefix=no
14812
14813 case $GCC,$host_os in
14814 yes,cygwin* | yes,mingw* | yes,pw32*)
14815 library_names_spec='$libname.dll.a'
14816 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14817 postinstall_cmds='base_file=`basename \${file}`~
14818 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14819 dldir=$destdir/`dirname \$dlpath`~
14820 test -d \$dldir || mkdir -p \$dldir~
14821 $install_prog $dir/$dlname \$dldir/$dlname~
14822 chmod a+x \$dldir/$dlname'
14823 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14824 dlpath=$dir/\$dldll~
14825 $rm \$dlpath'
14826 shlibpath_overrides_runpath=yes
14827
14828 case $host_os in
14829 cygwin*)
14830 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14831 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14832 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14833 ;;
14834 mingw*)
14835 # MinGW DLLs use traditional 'lib' prefix
14836 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14837 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14838 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14839 # It is most probably a Windows format PATH printed by
14840 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14841 # path with ; separators, and with drive letters. We can handle the
14842 # drive letters (cygwin fileutils understands them), so leave them,
14843 # especially as we might pass files found there to a mingw objdump,
14844 # which wouldn't understand a cygwinified path. Ahh.
14845 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14846 else
14847 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14848 fi
14849 ;;
14850 pw32*)
14851 # pw32 DLLs use 'pw' prefix rather than 'lib'
14852 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14853 ;;
14854 esac
14855 ;;
14856
14857 *)
14858 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14859 ;;
14860 esac
14861 dynamic_linker='Win32 ld.exe'
14862 # FIXME: first we should search . and the directory the executable is in
14863 shlibpath_var=PATH
14864 ;;
14865
14866 darwin* | rhapsody*)
14867 dynamic_linker="$host_os dyld"
14868 version_type=darwin
14869 need_lib_prefix=no
14870 need_version=no
14871 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14872 soname_spec='${libname}${release}${major}$shared_ext'
14873 shlibpath_overrides_runpath=yes
14874 shlibpath_var=DYLD_LIBRARY_PATH
14875 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14876 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14877 if test "$GCC" = yes; then
14878 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14879 else
14880 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14881 fi
14882 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14883 ;;
14884
14885 dgux*)
14886 version_type=linux
14887 need_lib_prefix=no
14888 need_version=no
14889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14890 soname_spec='${libname}${release}${shared_ext}$major'
14891 shlibpath_var=LD_LIBRARY_PATH
14892 ;;
14893
14894 freebsd1*)
14895 dynamic_linker=no
14896 ;;
14897
14898 kfreebsd*-gnu)
14899 version_type=linux
14900 need_lib_prefix=no
14901 need_version=no
14902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14903 soname_spec='${libname}${release}${shared_ext}$major'
14904 shlibpath_var=LD_LIBRARY_PATH
14905 shlibpath_overrides_runpath=no
14906 hardcode_into_libs=yes
14907 dynamic_linker='GNU ld.so'
14908 ;;
14909
14910 freebsd* | dragonfly*)
14911 # DragonFly does not have aout. When/if they implement a new
14912 # versioning mechanism, adjust this.
14913 if test -x /usr/bin/objformat; then
14914 objformat=`/usr/bin/objformat`
14915 else
14916 case $host_os in
14917 freebsd[123]*) objformat=aout ;;
14918 *) objformat=elf ;;
14919 esac
14920 fi
14921 version_type=freebsd-$objformat
14922 case $version_type in
14923 freebsd-elf*)
14924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14925 need_version=no
14926 need_lib_prefix=no
14927 ;;
14928 freebsd-*)
14929 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14930 need_version=yes
14931 ;;
14932 esac
14933 shlibpath_var=LD_LIBRARY_PATH
14934 case $host_os in
14935 freebsd2*)
14936 shlibpath_overrides_runpath=yes
14937 ;;
14938 freebsd3.[01]* | freebsdelf3.[01]*)
14939 shlibpath_overrides_runpath=yes
14940 hardcode_into_libs=yes
14941 ;;
14942 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14943 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14944 shlibpath_overrides_runpath=no
14945 hardcode_into_libs=yes
14946 ;;
14947 freebsd*) # from 4.6 on
14948 shlibpath_overrides_runpath=yes
14949 hardcode_into_libs=yes
14950 ;;
14951 esac
14952 ;;
14953
14954 gnu*)
14955 version_type=linux
14956 need_lib_prefix=no
14957 need_version=no
14958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14959 soname_spec='${libname}${release}${shared_ext}$major'
14960 shlibpath_var=LD_LIBRARY_PATH
14961 hardcode_into_libs=yes
14962 ;;
14963
14964 hpux9* | hpux10* | hpux11*)
14965 # Give a soname corresponding to the major version so that dld.sl refuses to
14966 # link against other versions.
14967 version_type=sunos
14968 need_lib_prefix=no
14969 need_version=no
14970 case $host_cpu in
14971 ia64*)
14972 shrext_cmds='.so'
14973 hardcode_into_libs=yes
14974 dynamic_linker="$host_os dld.so"
14975 shlibpath_var=LD_LIBRARY_PATH
14976 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14978 soname_spec='${libname}${release}${shared_ext}$major'
14979 if test "X$HPUX_IA64_MODE" = X32; then
14980 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14981 else
14982 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14983 fi
14984 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14985 ;;
14986 hppa*64*)
14987 shrext_cmds='.sl'
14988 hardcode_into_libs=yes
14989 dynamic_linker="$host_os dld.sl"
14990 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14991 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14993 soname_spec='${libname}${release}${shared_ext}$major'
14994 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14995 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14996 ;;
14997 *)
14998 shrext_cmds='.sl'
14999 dynamic_linker="$host_os dld.sl"
15000 shlibpath_var=SHLIB_PATH
15001 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15003 soname_spec='${libname}${release}${shared_ext}$major'
15004 ;;
15005 esac
15006 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15007 postinstall_cmds='chmod 555 $lib'
15008 ;;
15009
15010 interix3*)
15011 version_type=linux
15012 need_lib_prefix=no
15013 need_version=no
15014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15015 soname_spec='${libname}${release}${shared_ext}$major'
15016 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15017 shlibpath_var=LD_LIBRARY_PATH
15018 shlibpath_overrides_runpath=no
15019 hardcode_into_libs=yes
15020 ;;
15021
15022 irix5* | irix6* | nonstopux*)
15023 case $host_os in
15024 nonstopux*) version_type=nonstopux ;;
15025 *)
15026 if test "$lt_cv_prog_gnu_ld" = yes; then
15027 version_type=linux
15028 else
15029 version_type=irix
15030 fi ;;
15031 esac
15032 need_lib_prefix=no
15033 need_version=no
15034 soname_spec='${libname}${release}${shared_ext}$major'
15035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15036 case $host_os in
15037 irix5* | nonstopux*)
15038 libsuff= shlibsuff=
15039 ;;
15040 *)
15041 case $LD in # libtool.m4 will add one of these switches to LD
15042 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15043 libsuff= shlibsuff= libmagic=32-bit;;
15044 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15045 libsuff=32 shlibsuff=N32 libmagic=N32;;
15046 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15047 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15048 *) libsuff= shlibsuff= libmagic=never-match;;
15049 esac
15050 ;;
15051 esac
15052 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15053 shlibpath_overrides_runpath=no
15054 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15055 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15056 hardcode_into_libs=yes
15057 ;;
15058
15059 # No shared lib support for Linux oldld, aout, or coff.
15060 linux*oldld* | linux*aout* | linux*coff*)
15061 dynamic_linker=no
15062 ;;
15063
15064 # This must be Linux ELF.
15065 linux*)
15066 version_type=linux
15067 need_lib_prefix=no
15068 need_version=no
15069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15070 soname_spec='${libname}${release}${shared_ext}$major'
15071 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15072 shlibpath_var=LD_LIBRARY_PATH
15073 shlibpath_overrides_runpath=no
15074 # This implies no fast_install, which is unacceptable.
15075 # Some rework will be needed to allow for fast_install
15076 # before this can be enabled.
15077 hardcode_into_libs=yes
15078
15079 # find out which ABI we are using
15080 libsuff=
15081 case "$host_cpu" in
15082 x86_64*|s390x*|powerpc64*)
15083 echo '#line 15083 "configure"' > conftest.$ac_ext
15084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15085 (eval $ac_compile) 2>&5
15086 ac_status=$?
15087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15088 (exit $ac_status); }; then
15089 case `/usr/bin/file conftest.$ac_objext` in
15090 *64-bit*)
15091 libsuff=64
15092 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15093 ;;
15094 esac
15095 fi
15096 rm -rf conftest*
15097 ;;
15098 esac
15099
15100 # Append ld.so.conf contents to the search path
15101 if test -f /etc/ld.so.conf; then
15102 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15103 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15104 fi
15105
15106 # We used to test for /lib/ld.so.1 and disable shared libraries on
15107 # powerpc, because MkLinux only supported shared libraries with the
15108 # GNU dynamic linker. Since this was broken with cross compilers,
15109 # most powerpc-linux boxes support dynamic linking these days and
15110 # people can always --disable-shared, the test was removed, and we
15111 # assume the GNU/Linux dynamic linker is in use.
15112 dynamic_linker='GNU/Linux ld.so'
15113 ;;
15114
15115 knetbsd*-gnu)
15116 version_type=linux
15117 need_lib_prefix=no
15118 need_version=no
15119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15120 soname_spec='${libname}${release}${shared_ext}$major'
15121 shlibpath_var=LD_LIBRARY_PATH
15122 shlibpath_overrides_runpath=no
15123 hardcode_into_libs=yes
15124 dynamic_linker='GNU ld.so'
15125 ;;
15126
15127 netbsd*)
15128 version_type=sunos
15129 need_lib_prefix=no
15130 need_version=no
15131 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15133 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15134 dynamic_linker='NetBSD (a.out) ld.so'
15135 else
15136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15137 soname_spec='${libname}${release}${shared_ext}$major'
15138 dynamic_linker='NetBSD ld.elf_so'
15139 fi
15140 shlibpath_var=LD_LIBRARY_PATH
15141 shlibpath_overrides_runpath=yes
15142 hardcode_into_libs=yes
15143 ;;
15144
15145 newsos6)
15146 version_type=linux
15147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15148 shlibpath_var=LD_LIBRARY_PATH
15149 shlibpath_overrides_runpath=yes
15150 ;;
15151
15152 nto-qnx*)
15153 version_type=linux
15154 need_lib_prefix=no
15155 need_version=no
15156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15157 soname_spec='${libname}${release}${shared_ext}$major'
15158 shlibpath_var=LD_LIBRARY_PATH
15159 shlibpath_overrides_runpath=yes
15160 ;;
15161
15162 openbsd*)
15163 version_type=sunos
15164 sys_lib_dlsearch_path_spec="/usr/lib"
15165 need_lib_prefix=no
15166 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15167 case $host_os in
15168 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15169 *) need_version=no ;;
15170 esac
15171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15172 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15173 shlibpath_var=LD_LIBRARY_PATH
15174 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15175 case $host_os in
15176 openbsd2.[89] | openbsd2.[89].*)
15177 shlibpath_overrides_runpath=no
15178 ;;
15179 *)
15180 shlibpath_overrides_runpath=yes
15181 ;;
15182 esac
15183 else
15184 shlibpath_overrides_runpath=yes
15185 fi
15186 ;;
15187
15188 os2*)
15189 libname_spec='$name'
15190 shrext_cmds=".dll"
15191 need_lib_prefix=no
15192 library_names_spec='$libname${shared_ext} $libname.a'
15193 dynamic_linker='OS/2 ld.exe'
15194 shlibpath_var=LIBPATH
15195 ;;
15196
15197 osf3* | osf4* | osf5*)
15198 version_type=osf
15199 need_lib_prefix=no
15200 need_version=no
15201 soname_spec='${libname}${release}${shared_ext}$major'
15202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15203 shlibpath_var=LD_LIBRARY_PATH
15204 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15205 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15206 ;;
15207
15208 solaris*)
15209 version_type=linux
15210 need_lib_prefix=no
15211 need_version=no
15212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15213 soname_spec='${libname}${release}${shared_ext}$major'
15214 shlibpath_var=LD_LIBRARY_PATH
15215 shlibpath_overrides_runpath=yes
15216 hardcode_into_libs=yes
15217 # ldd complains unless libraries are executable
15218 postinstall_cmds='chmod +x $lib'
15219 ;;
15220
15221 sunos4*)
15222 version_type=sunos
15223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15224 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15225 shlibpath_var=LD_LIBRARY_PATH
15226 shlibpath_overrides_runpath=yes
15227 if test "$with_gnu_ld" = yes; then
15228 need_lib_prefix=no
15229 fi
15230 need_version=yes
15231 ;;
15232
15233 sysv4 | sysv4.3*)
15234 version_type=linux
15235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15236 soname_spec='${libname}${release}${shared_ext}$major'
15237 shlibpath_var=LD_LIBRARY_PATH
15238 case $host_vendor in
15239 sni)
15240 shlibpath_overrides_runpath=no
15241 need_lib_prefix=no
15242 export_dynamic_flag_spec='${wl}-Blargedynsym'
15243 runpath_var=LD_RUN_PATH
15244 ;;
15245 siemens)
15246 need_lib_prefix=no
15247 ;;
15248 motorola)
15249 need_lib_prefix=no
15250 need_version=no
15251 shlibpath_overrides_runpath=no
15252 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15253 ;;
15254 esac
15255 ;;
15256
15257 sysv4*MP*)
15258 if test -d /usr/nec ;then
15259 version_type=linux
15260 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15261 soname_spec='$libname${shared_ext}.$major'
15262 shlibpath_var=LD_LIBRARY_PATH
15263 fi
15264 ;;
15265
15266 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15267 version_type=freebsd-elf
15268 need_lib_prefix=no
15269 need_version=no
15270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15271 soname_spec='${libname}${release}${shared_ext}$major'
15272 shlibpath_var=LD_LIBRARY_PATH
15273 hardcode_into_libs=yes
15274 if test "$with_gnu_ld" = yes; then
15275 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15276 shlibpath_overrides_runpath=no
15277 else
15278 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15279 shlibpath_overrides_runpath=yes
15280 case $host_os in
15281 sco3.2v5*)
15282 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15283 ;;
15284 esac
15285 fi
15286 sys_lib_dlsearch_path_spec='/usr/lib'
15287 ;;
15288
15289 uts4*)
15290 version_type=linux
15291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15292 soname_spec='${libname}${release}${shared_ext}$major'
15293 shlibpath_var=LD_LIBRARY_PATH
15294 ;;
15295
15296 *)
15297 dynamic_linker=no
15298 ;;
15299 esac
15300 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15301 echo "${ECHO_T}$dynamic_linker" >&6
15302 test "$dynamic_linker" = no && can_build_shared=no
15303
15304 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15305 if test "$GCC" = yes; then
15306 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15307 fi
15308
15309 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15310 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15311 hardcode_action_F77=
15312 if test -n "$hardcode_libdir_flag_spec_F77" || \
15313 test -n "$runpath_var_F77" || \
15314 test "X$hardcode_automatic_F77" = "Xyes" ; then
15315
15316 # We can hardcode non-existant directories.
15317 if test "$hardcode_direct_F77" != no &&
15318 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15319 # have to relink, otherwise we might link with an installed library
15320 # when we should be linking with a yet-to-be-installed one
15321 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15322 test "$hardcode_minus_L_F77" != no; then
15323 # Linking always hardcodes the temporary library directory.
15324 hardcode_action_F77=relink
15325 else
15326 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15327 hardcode_action_F77=immediate
15328 fi
15329 else
15330 # We cannot hardcode anything, or else we can only hardcode existing
15331 # directories.
15332 hardcode_action_F77=unsupported
15333 fi
15334 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15335 echo "${ECHO_T}$hardcode_action_F77" >&6
15336
15337 if test "$hardcode_action_F77" = relink; then
15338 # Fast installation is not supported
15339 enable_fast_install=no
15340 elif test "$shlibpath_overrides_runpath" = yes ||
15341 test "$enable_shared" = no; then
15342 # Fast installation is not necessary
15343 enable_fast_install=needless
15344 fi
15345
15346
15347 # The else clause should only fire when bootstrapping the
15348 # libtool distribution, otherwise you forgot to ship ltmain.sh
15349 # with your package, and you will get complaints that there are
15350 # no rules to generate ltmain.sh.
15351 if test -f "$ltmain"; then
15352 # See if we are running on zsh, and set the options which allow our commands through
15353 # without removal of \ escapes.
15354 if test -n "${ZSH_VERSION+set}" ; then
15355 setopt NO_GLOB_SUBST
15356 fi
15357 # Now quote all the things that may contain metacharacters while being
15358 # careful not to overquote the AC_SUBSTed values. We take copies of the
15359 # variables and quote the copies for generation of the libtool script.
15360 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15361 SED SHELL STRIP \
15362 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15363 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15364 deplibs_check_method reload_flag reload_cmds need_locks \
15365 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15366 lt_cv_sys_global_symbol_to_c_name_address \
15367 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15368 old_postinstall_cmds old_postuninstall_cmds \
15369 compiler_F77 \
15370 CC_F77 \
15371 LD_F77 \
15372 lt_prog_compiler_wl_F77 \
15373 lt_prog_compiler_pic_F77 \
15374 lt_prog_compiler_static_F77 \
15375 lt_prog_compiler_no_builtin_flag_F77 \
15376 export_dynamic_flag_spec_F77 \
15377 thread_safe_flag_spec_F77 \
15378 whole_archive_flag_spec_F77 \
15379 enable_shared_with_static_runtimes_F77 \
15380 old_archive_cmds_F77 \
15381 old_archive_from_new_cmds_F77 \
15382 predep_objects_F77 \
15383 postdep_objects_F77 \
15384 predeps_F77 \
15385 postdeps_F77 \
15386 compiler_lib_search_path_F77 \
15387 archive_cmds_F77 \
15388 archive_expsym_cmds_F77 \
15389 postinstall_cmds_F77 \
15390 postuninstall_cmds_F77 \
15391 old_archive_from_expsyms_cmds_F77 \
15392 allow_undefined_flag_F77 \
15393 no_undefined_flag_F77 \
15394 export_symbols_cmds_F77 \
15395 hardcode_libdir_flag_spec_F77 \
15396 hardcode_libdir_flag_spec_ld_F77 \
15397 hardcode_libdir_separator_F77 \
15398 hardcode_automatic_F77 \
15399 module_cmds_F77 \
15400 module_expsym_cmds_F77 \
15401 lt_cv_prog_compiler_c_o_F77 \
15402 exclude_expsyms_F77 \
15403 include_expsyms_F77; do
15404
15405 case $var in
15406 old_archive_cmds_F77 | \
15407 old_archive_from_new_cmds_F77 | \
15408 archive_cmds_F77 | \
15409 archive_expsym_cmds_F77 | \
15410 module_cmds_F77 | \
15411 module_expsym_cmds_F77 | \
15412 old_archive_from_expsyms_cmds_F77 | \
15413 export_symbols_cmds_F77 | \
15414 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15415 postinstall_cmds | postuninstall_cmds | \
15416 old_postinstall_cmds | old_postuninstall_cmds | \
15417 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15418 # Double-quote double-evaled strings.
15419 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15420 ;;
15421 *)
15422 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15423 ;;
15424 esac
15425 done
15426
15427 case $lt_echo in
15428 *'\$0 --fallback-echo"')
15429 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15430 ;;
15431 esac
15432
15433 cfgfile="$ofile"
15434
15435 cat <<__EOF__ >> "$cfgfile"
15436 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15437
15438 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15439
15440 # Shell to use when invoking shell scripts.
15441 SHELL=$lt_SHELL
15442
15443 # Whether or not to build shared libraries.
15444 build_libtool_libs=$enable_shared
15445
15446 # Whether or not to build static libraries.
15447 build_old_libs=$enable_static
15448
15449 # Whether or not to add -lc for building shared libraries.
15450 build_libtool_need_lc=$archive_cmds_need_lc_F77
15451
15452 # Whether or not to disallow shared libs when runtime libs are static
15453 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15454
15455 # Whether or not to optimize for fast installation.
15456 fast_install=$enable_fast_install
15457
15458 # The host system.
15459 host_alias=$host_alias
15460 host=$host
15461 host_os=$host_os
15462
15463 # The build system.
15464 build_alias=$build_alias
15465 build=$build
15466 build_os=$build_os
15467
15468 # An echo program that does not interpret backslashes.
15469 echo=$lt_echo
15470
15471 # The archiver.
15472 AR=$lt_AR
15473 AR_FLAGS=$lt_AR_FLAGS
15474
15475 # A C compiler.
15476 LTCC=$lt_LTCC
15477
15478 # LTCC compiler flags.
15479 LTCFLAGS=$lt_LTCFLAGS
15480
15481 # A language-specific compiler.
15482 CC=$lt_compiler_F77
15483
15484 # Is the compiler the GNU C compiler?
15485 with_gcc=$GCC_F77
15486
15487 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
15488 gcc_ver=\`gcc -dumpversion\`
15489
15490 # An ERE matcher.
15491 EGREP=$lt_EGREP
15492
15493 # The linker used to build libraries.
15494 LD=$lt_LD_F77
15495
15496 # Whether we need hard or soft links.
15497 LN_S=$lt_LN_S
15498
15499 # A BSD-compatible nm program.
15500 NM=$lt_NM
15501
15502 # A symbol stripping program
15503 STRIP=$lt_STRIP
15504
15505 # Used to examine libraries when file_magic_cmd begins "file"
15506 MAGIC_CMD=$MAGIC_CMD
15507
15508 # Used on cygwin: DLL creation program.
15509 DLLTOOL="$DLLTOOL"
15510
15511 # Used on cygwin: object dumper.
15512 OBJDUMP="$OBJDUMP"
15513
15514 # Used on cygwin: assembler.
15515 AS="$AS"
15516
15517 # The name of the directory that contains temporary libtool files.
15518 objdir=$objdir
15519
15520 # How to create reloadable object files.
15521 reload_flag=$lt_reload_flag
15522 reload_cmds=$lt_reload_cmds
15523
15524 # How to pass a linker flag through the compiler.
15525 wl=$lt_lt_prog_compiler_wl_F77
15526
15527 # Object file suffix (normally "o").
15528 objext="$ac_objext"
15529
15530 # Old archive suffix (normally "a").
15531 libext="$libext"
15532
15533 # Shared library suffix (normally ".so").
15534 shrext_cmds='$shrext_cmds'
15535
15536 # Executable file suffix (normally "").
15537 exeext="$exeext"
15538
15539 # Additional compiler flags for building library objects.
15540 pic_flag=$lt_lt_prog_compiler_pic_F77
15541 pic_mode=$pic_mode
15542
15543 # What is the maximum length of a command?
15544 max_cmd_len=$lt_cv_sys_max_cmd_len
15545
15546 # Does compiler simultaneously support -c and -o options?
15547 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15548
15549 # Must we lock files when doing compilation?
15550 need_locks=$lt_need_locks
15551
15552 # Do we need the lib prefix for modules?
15553 need_lib_prefix=$need_lib_prefix
15554
15555 # Do we need a version for libraries?
15556 need_version=$need_version
15557
15558 # Whether dlopen is supported.
15559 dlopen_support=$enable_dlopen
15560
15561 # Whether dlopen of programs is supported.
15562 dlopen_self=$enable_dlopen_self
15563
15564 # Whether dlopen of statically linked programs is supported.
15565 dlopen_self_static=$enable_dlopen_self_static
15566
15567 # Compiler flag to prevent dynamic linking.
15568 link_static_flag=$lt_lt_prog_compiler_static_F77
15569
15570 # Compiler flag to turn off builtin functions.
15571 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15572
15573 # Compiler flag to allow reflexive dlopens.
15574 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15575
15576 # Compiler flag to generate shared objects directly from archives.
15577 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15578
15579 # Compiler flag to generate thread-safe objects.
15580 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15581
15582 # Library versioning type.
15583 version_type=$version_type
15584
15585 # Format of library name prefix.
15586 libname_spec=$lt_libname_spec
15587
15588 # List of archive names. First name is the real one, the rest are links.
15589 # The last name is the one that the linker finds with -lNAME.
15590 library_names_spec=$lt_library_names_spec
15591
15592 # The coded name of the library, if different from the real name.
15593 soname_spec=$lt_soname_spec
15594
15595 # Commands used to build and install an old-style archive.
15596 RANLIB=$lt_RANLIB
15597 old_archive_cmds=$lt_old_archive_cmds_F77
15598 old_postinstall_cmds=$lt_old_postinstall_cmds
15599 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15600
15601 # Create an old-style archive from a shared archive.
15602 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15603
15604 # Create a temporary old-style archive to link instead of a shared archive.
15605 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15606
15607 # Commands used to build and install a shared archive.
15608 archive_cmds=$lt_archive_cmds_F77
15609 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15610 postinstall_cmds=$lt_postinstall_cmds
15611 postuninstall_cmds=$lt_postuninstall_cmds
15612
15613 # Commands used to build a loadable module (assumed same as above if empty)
15614 module_cmds=$lt_module_cmds_F77
15615 module_expsym_cmds=$lt_module_expsym_cmds_F77
15616
15617 # Commands to strip libraries.
15618 old_striplib=$lt_old_striplib
15619 striplib=$lt_striplib
15620
15621 # Dependencies to place before the objects being linked to create a
15622 # shared library.
15623 predep_objects=\`echo $lt_predep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15624
15625 # Dependencies to place after the objects being linked to create a
15626 # shared library.
15627 postdep_objects=\`echo $lt_postdep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15628
15629 # Dependencies to place before the objects being linked to create a
15630 # shared library.
15631 predeps=$lt_predeps_F77
15632
15633 # Dependencies to place after the objects being linked to create a
15634 # shared library.
15635 postdeps=$lt_postdeps_F77
15636
15637 # The library search path used internally by the compiler when linking
15638 # a shared library.
15639 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15640
15641 # Method to check whether dependent libraries are shared objects.
15642 deplibs_check_method=$lt_deplibs_check_method
15643
15644 # Command to use when deplibs_check_method == file_magic.
15645 file_magic_cmd=$lt_file_magic_cmd
15646
15647 # Flag that allows shared libraries with undefined symbols to be built.
15648 allow_undefined_flag=$lt_allow_undefined_flag_F77
15649
15650 # Flag that forces no undefined symbols.
15651 no_undefined_flag=$lt_no_undefined_flag_F77
15652
15653 # Commands used to finish a libtool library installation in a directory.
15654 finish_cmds=$lt_finish_cmds
15655
15656 # Same as above, but a single script fragment to be evaled but not shown.
15657 finish_eval=$lt_finish_eval
15658
15659 # Take the output of nm and produce a listing of raw symbols and C names.
15660 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15661
15662 # Transform the output of nm in a proper C declaration
15663 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15664
15665 # Transform the output of nm in a C name address pair
15666 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15667
15668 # This is the shared library runtime path variable.
15669 runpath_var=$runpath_var
15670
15671 # This is the shared library path variable.
15672 shlibpath_var=$shlibpath_var
15673
15674 # Is shlibpath searched before the hard-coded library search path?
15675 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15676
15677 # How to hardcode a shared library path into an executable.
15678 hardcode_action=$hardcode_action_F77
15679
15680 # Whether we should hardcode library paths into libraries.
15681 hardcode_into_libs=$hardcode_into_libs
15682
15683 # Flag to hardcode \$libdir into a binary during linking.
15684 # This must work even if \$libdir does not exist.
15685 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15686
15687 # If ld is used when linking, flag to hardcode \$libdir into
15688 # a binary during linking. This must work even if \$libdir does
15689 # not exist.
15690 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15691
15692 # Whether we need a single -rpath flag with a separated argument.
15693 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15694
15695 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15696 # resulting binary.
15697 hardcode_direct=$hardcode_direct_F77
15698
15699 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15700 # resulting binary.
15701 hardcode_minus_L=$hardcode_minus_L_F77
15702
15703 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15704 # the resulting binary.
15705 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15706
15707 # Set to yes if building a shared library automatically hardcodes DIR into the library
15708 # and all subsequent libraries and executables linked against it.
15709 hardcode_automatic=$hardcode_automatic_F77
15710
15711 # Variables whose values should be saved in libtool wrapper scripts and
15712 # restored at relink time.
15713 variables_saved_for_relink="$variables_saved_for_relink"
15714
15715 # Whether libtool must link a program against all its dependency libraries.
15716 link_all_deplibs=$link_all_deplibs_F77
15717
15718 # Compile-time system search path for libraries
15719 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15720
15721 # Run-time system search path for libraries
15722 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15723
15724 # Fix the shell variable \$srcfile for the compiler.
15725 fix_srcfile_path="$fix_srcfile_path_F77"
15726
15727 # Set to yes if exported symbols are required.
15728 always_export_symbols=$always_export_symbols_F77
15729
15730 # The commands to list exported symbols.
15731 export_symbols_cmds=$lt_export_symbols_cmds_F77
15732
15733 # The commands to extract the exported symbol list from a shared archive.
15734 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15735
15736 # Symbols that should not be listed in the preloaded symbols.
15737 exclude_expsyms=$lt_exclude_expsyms_F77
15738
15739 # Symbols that must always be exported.
15740 include_expsyms=$lt_include_expsyms_F77
15741
15742 # ### END LIBTOOL TAG CONFIG: $tagname
15743
15744 __EOF__
15745
15746
15747 else
15748 # If there is no Makefile yet, we rely on a make rule to execute
15749 # `config.status --recheck' to rerun these tests and create the
15750 # libtool script then.
15751 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15752 if test -f "$ltmain_in"; then
15753 test -f Makefile && make "$ltmain"
15754 fi
15755 fi
15756
15757
15758 ac_ext=c
15759 ac_cpp='$CPP $CPPFLAGS'
15760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15763
15764 CC="$lt_save_CC"
15765
15766 else
15767 tagname=""
15768 fi
15769 ;;
15770
15771 GCJ)
15772 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15773
15774
15775
15776 # Source file extension for Java test sources.
15777 ac_ext=java
15778
15779 # Object file extension for compiled Java test sources.
15780 objext=o
15781 objext_GCJ=$objext
15782
15783 # Code to be used in simple compile tests
15784 lt_simple_compile_test_code="class foo {}\n"
15785
15786 # Code to be used in simple link tests
15787 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15788
15789 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15790
15791 # If no C compiler was specified, use CC.
15792 LTCC=${LTCC-"$CC"}
15793
15794 # If no C compiler flags were specified, use CFLAGS.
15795 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15796
15797 # Allow CC to be a program name with arguments.
15798 compiler=$CC
15799
15800
15801 # save warnings/boilerplate of simple test code
15802 ac_outfile=conftest.$ac_objext
15803 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15804 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15805 _lt_compiler_boilerplate=`cat conftest.err`
15806 $rm conftest*
15807
15808 ac_outfile=conftest.$ac_objext
15809 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15810 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15811 _lt_linker_boilerplate=`cat conftest.err`
15812 $rm conftest*
15813
15814
15815 # Allow CC to be a program name with arguments.
15816 lt_save_CC="$CC"
15817 CC=${GCJ-"gcj"}
15818 compiler=$CC
15819 compiler_GCJ=$CC
15820 for cc_temp in $compiler""; do
15821 case $cc_temp in
15822 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15823 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15824 \-*) ;;
15825 *) break;;
15826 esac
15827 done
15828 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15829
15830
15831 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15832 archive_cmds_need_lc_GCJ=no
15833
15834 old_archive_cmds_GCJ=$old_archive_cmds
15835
15836
15837 lt_prog_compiler_no_builtin_flag_GCJ=
15838
15839 if test "$GCC" = yes; then
15840 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15841
15842
15843 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15844 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15845 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15846 echo $ECHO_N "(cached) $ECHO_C" >&6
15847 else
15848 lt_cv_prog_compiler_rtti_exceptions=no
15849 ac_outfile=conftest.$ac_objext
15850 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15851 lt_compiler_flag="-fno-rtti -fno-exceptions"
15852 # Insert the option either (1) after the last *FLAGS variable, or
15853 # (2) before a word containing "conftest.", or (3) at the end.
15854 # Note that $ac_compile itself does not contain backslashes and begins
15855 # with a dollar sign (not a hyphen), so the echo should work correctly.
15856 # The option is referenced via a variable to avoid confusing sed.
15857 lt_compile=`echo "$ac_compile" | $SED \
15858 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15859 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15860 -e 's:$: $lt_compiler_flag:'`
15861 (eval echo "\"\$as_me:15861: $lt_compile\"" >&5)
15862 (eval "$lt_compile" 2>conftest.err)
15863 ac_status=$?
15864 cat conftest.err >&5
15865 echo "$as_me:15865: \$? = $ac_status" >&5
15866 if (exit $ac_status) && test -s "$ac_outfile"; then
15867 # The compiler can only warn and ignore the option if not recognized
15868 # So say no if there are warnings other than the usual output.
15869 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15870 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15871 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15872 lt_cv_prog_compiler_rtti_exceptions=yes
15873 fi
15874 fi
15875 $rm conftest*
15876
15877 fi
15878 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15879 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15880
15881 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15882 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15883 else
15884 :
15885 fi
15886
15887 fi
15888
15889 lt_prog_compiler_wl_GCJ=
15890 lt_prog_compiler_pic_GCJ=
15891 lt_prog_compiler_static_GCJ=
15892
15893 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15894 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15895
15896 if test "$GCC" = yes; then
15897 lt_prog_compiler_wl_GCJ='-Wl,'
15898 lt_prog_compiler_static_GCJ='-static'
15899
15900 case $host_os in
15901 aix*)
15902 # All AIX code is PIC.
15903 if test "$host_cpu" = ia64; then
15904 # AIX 5 now supports IA64 processor
15905 lt_prog_compiler_static_GCJ='-Bstatic'
15906 fi
15907 ;;
15908
15909 amigaos*)
15910 # FIXME: we need at least 68020 code to build shared libraries, but
15911 # adding the `-m68020' flag to GCC prevents building anything better,
15912 # like `-m68040'.
15913 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15914 ;;
15915
15916 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15917 # PIC is the default for these OSes.
15918 ;;
15919
15920 mingw* | pw32* | os2*)
15921 # This hack is so that the source file can tell whether it is being
15922 # built for inclusion in a dll (and should export symbols for example).
15923 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15924 ;;
15925
15926 darwin* | rhapsody*)
15927 # PIC is the default on this platform
15928 # Common symbols not allowed in MH_DYLIB files
15929 lt_prog_compiler_pic_GCJ='-fno-common'
15930 ;;
15931
15932 interix3*)
15933 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15934 # Instead, we relocate shared libraries at runtime.
15935 ;;
15936
15937 msdosdjgpp*)
15938 # Just because we use GCC doesn't mean we suddenly get shared libraries
15939 # on systems that don't support them.
15940 lt_prog_compiler_can_build_shared_GCJ=no
15941 enable_shared=no
15942 ;;
15943
15944 sysv4*MP*)
15945 if test -d /usr/nec; then
15946 lt_prog_compiler_pic_GCJ=-Kconform_pic
15947 fi
15948 ;;
15949
15950 hpux*)
15951 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15952 # not for PA HP-UX.
15953 case $host_cpu in
15954 hppa*64*|ia64*)
15955 # +Z the default
15956 ;;
15957 *)
15958 lt_prog_compiler_pic_GCJ='-fPIC'
15959 ;;
15960 esac
15961 ;;
15962
15963 *)
15964 lt_prog_compiler_pic_GCJ='-fPIC'
15965 ;;
15966 esac
15967 else
15968 # PORTME Check for flag to pass linker flags through the system compiler.
15969 case $host_os in
15970 aix*)
15971 lt_prog_compiler_wl_GCJ='-Wl,'
15972 if test "$host_cpu" = ia64; then
15973 # AIX 5 now supports IA64 processor
15974 lt_prog_compiler_static_GCJ='-Bstatic'
15975 else
15976 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15977 fi
15978 ;;
15979 darwin*)
15980 # PIC is the default on this platform
15981 # Common symbols not allowed in MH_DYLIB files
15982 case $cc_basename in
15983 xlc*)
15984 lt_prog_compiler_pic_GCJ='-qnocommon'
15985 lt_prog_compiler_wl_GCJ='-Wl,'
15986 ;;
15987 esac
15988 ;;
15989
15990 mingw* | pw32* | os2*)
15991 # This hack is so that the source file can tell whether it is being
15992 # built for inclusion in a dll (and should export symbols for example).
15993 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15994 ;;
15995
15996 hpux9* | hpux10* | hpux11*)
15997 lt_prog_compiler_wl_GCJ='-Wl,'
15998 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15999 # not for PA HP-UX.
16000 case $host_cpu in
16001 hppa*64*|ia64*)
16002 # +Z the default
16003 ;;
16004 *)
16005 lt_prog_compiler_pic_GCJ='+Z'
16006 ;;
16007 esac
16008 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16009 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16010 ;;
16011
16012 irix5* | irix6* | nonstopux*)
16013 lt_prog_compiler_wl_GCJ='-Wl,'
16014 # PIC (with -KPIC) is the default.
16015 lt_prog_compiler_static_GCJ='-non_shared'
16016 ;;
16017
16018 newsos6)
16019 lt_prog_compiler_pic_GCJ='-KPIC'
16020 lt_prog_compiler_static_GCJ='-Bstatic'
16021 ;;
16022
16023 linux*)
16024 case $cc_basename in
16025 icc* | ecc*)
16026 lt_prog_compiler_wl_GCJ='-Wl,'
16027 lt_prog_compiler_pic_GCJ='-KPIC'
16028 lt_prog_compiler_static_GCJ='-static'
16029 ;;
16030 pgcc* | pgf77* | pgf90* | pgf95*)
16031 # Portland Group compilers (*not* the Pentium gcc compiler,
16032 # which looks to be a dead project)
16033 lt_prog_compiler_wl_GCJ='-Wl,'
16034 lt_prog_compiler_pic_GCJ='-fpic'
16035 lt_prog_compiler_static_GCJ='-Bstatic'
16036 ;;
16037 ccc*)
16038 lt_prog_compiler_wl_GCJ='-Wl,'
16039 # All Alpha code is PIC.
16040 lt_prog_compiler_static_GCJ='-non_shared'
16041 ;;
16042 esac
16043 ;;
16044
16045 osf3* | osf4* | osf5*)
16046 lt_prog_compiler_wl_GCJ='-Wl,'
16047 # All OSF/1 code is PIC.
16048 lt_prog_compiler_static_GCJ='-non_shared'
16049 ;;
16050
16051 solaris*)
16052 lt_prog_compiler_pic_GCJ='-KPIC'
16053 lt_prog_compiler_static_GCJ='-Bstatic'
16054 case $cc_basename in
16055 f77* | f90* | f95*)
16056 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16057 *)
16058 lt_prog_compiler_wl_GCJ='-Wl,';;
16059 esac
16060 ;;
16061
16062 sunos4*)
16063 lt_prog_compiler_wl_GCJ='-Qoption ld '
16064 lt_prog_compiler_pic_GCJ='-PIC'
16065 lt_prog_compiler_static_GCJ='-Bstatic'
16066 ;;
16067
16068 sysv4 | sysv4.2uw2* | sysv4.3*)
16069 lt_prog_compiler_wl_GCJ='-Wl,'
16070 lt_prog_compiler_pic_GCJ='-KPIC'
16071 lt_prog_compiler_static_GCJ='-Bstatic'
16072 ;;
16073
16074 sysv4*MP*)
16075 if test -d /usr/nec ;then
16076 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16077 lt_prog_compiler_static_GCJ='-Bstatic'
16078 fi
16079 ;;
16080
16081 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16082 lt_prog_compiler_wl_GCJ='-Wl,'
16083 lt_prog_compiler_pic_GCJ='-KPIC'
16084 lt_prog_compiler_static_GCJ='-Bstatic'
16085 ;;
16086
16087 unicos*)
16088 lt_prog_compiler_wl_GCJ='-Wl,'
16089 lt_prog_compiler_can_build_shared_GCJ=no
16090 ;;
16091
16092 uts4*)
16093 lt_prog_compiler_pic_GCJ='-pic'
16094 lt_prog_compiler_static_GCJ='-Bstatic'
16095 ;;
16096
16097 *)
16098 lt_prog_compiler_can_build_shared_GCJ=no
16099 ;;
16100 esac
16101 fi
16102
16103 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16104 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16105
16106 #
16107 # Check to make sure the PIC flag actually works.
16108 #
16109 if test -n "$lt_prog_compiler_pic_GCJ"; then
16110
16111 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16112 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16113 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16114 echo $ECHO_N "(cached) $ECHO_C" >&6
16115 else
16116 lt_prog_compiler_pic_works_GCJ=no
16117 ac_outfile=conftest.$ac_objext
16118 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16119 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16120 # Insert the option either (1) after the last *FLAGS variable, or
16121 # (2) before a word containing "conftest.", or (3) at the end.
16122 # Note that $ac_compile itself does not contain backslashes and begins
16123 # with a dollar sign (not a hyphen), so the echo should work correctly.
16124 # The option is referenced via a variable to avoid confusing sed.
16125 lt_compile=`echo "$ac_compile" | $SED \
16126 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16127 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16128 -e 's:$: $lt_compiler_flag:'`
16129 (eval echo "\"\$as_me:16129: $lt_compile\"" >&5)
16130 (eval "$lt_compile" 2>conftest.err)
16131 ac_status=$?
16132 cat conftest.err >&5
16133 echo "$as_me:16133: \$? = $ac_status" >&5
16134 if (exit $ac_status) && test -s "$ac_outfile"; then
16135 # The compiler can only warn and ignore the option if not recognized
16136 # So say no if there are warnings other than the usual output.
16137 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16138 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16139 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16140 lt_prog_compiler_pic_works_GCJ=yes
16141 fi
16142 fi
16143 $rm conftest*
16144
16145 fi
16146 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16147 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16148
16149 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16150 case $lt_prog_compiler_pic_GCJ in
16151 "" | " "*) ;;
16152 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16153 esac
16154 else
16155 lt_prog_compiler_pic_GCJ=
16156 lt_prog_compiler_can_build_shared_GCJ=no
16157 fi
16158
16159 fi
16160 case $host_os in
16161 # For platforms which do not support PIC, -DPIC is meaningless:
16162 *djgpp*)
16163 lt_prog_compiler_pic_GCJ=
16164 ;;
16165 *)
16166 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16167 ;;
16168 esac
16169
16170 #
16171 # Check to make sure the static flag actually works.
16172 #
16173 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16174 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16175 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16176 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16177 echo $ECHO_N "(cached) $ECHO_C" >&6
16178 else
16179 lt_prog_compiler_static_works_GCJ=no
16180 save_LDFLAGS="$LDFLAGS"
16181 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16182 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16183 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16184 # The linker can only warn and ignore the option if not recognized
16185 # So say no if there are warnings
16186 if test -s conftest.err; then
16187 # Append any errors to the config.log.
16188 cat conftest.err 1>&5
16189 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16190 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16191 if diff conftest.exp conftest.er2 >/dev/null; then
16192 lt_prog_compiler_static_works_GCJ=yes
16193 fi
16194 else
16195 lt_prog_compiler_static_works_GCJ=yes
16196 fi
16197 fi
16198 $rm conftest*
16199 LDFLAGS="$save_LDFLAGS"
16200
16201 fi
16202 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16203 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
16204
16205 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16206 :
16207 else
16208 lt_prog_compiler_static_GCJ=
16209 fi
16210
16211
16212 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16213 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16214 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16215 echo $ECHO_N "(cached) $ECHO_C" >&6
16216 else
16217 lt_cv_prog_compiler_c_o_GCJ=no
16218 $rm -r conftest 2>/dev/null
16219 mkdir conftest
16220 cd conftest
16221 mkdir out
16222 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16223
16224 lt_compiler_flag="-o out/conftest2.$ac_objext"
16225 # Insert the option either (1) after the last *FLAGS variable, or
16226 # (2) before a word containing "conftest.", or (3) at the end.
16227 # Note that $ac_compile itself does not contain backslashes and begins
16228 # with a dollar sign (not a hyphen), so the echo should work correctly.
16229 lt_compile=`echo "$ac_compile" | $SED \
16230 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16231 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16232 -e 's:$: $lt_compiler_flag:'`
16233 (eval echo "\"\$as_me:16233: $lt_compile\"" >&5)
16234 (eval "$lt_compile" 2>out/conftest.err)
16235 ac_status=$?
16236 cat out/conftest.err >&5
16237 echo "$as_me:16237: \$? = $ac_status" >&5
16238 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16239 then
16240 # The compiler can only warn and ignore the option if not recognized
16241 # So say no if there are warnings
16242 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16243 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16244 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16245 lt_cv_prog_compiler_c_o_GCJ=yes
16246 fi
16247 fi
16248 chmod u+w . 2>&5
16249 $rm conftest*
16250 # SGI C++ compiler will create directory out/ii_files/ for
16251 # template instantiation
16252 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16253 $rm out/* && rmdir out
16254 cd ..
16255 rmdir conftest
16256 $rm conftest*
16257
16258 fi
16259 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16260 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16261
16262
16263 hard_links="nottested"
16264 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16265 # do not overwrite the value of need_locks provided by the user
16266 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16267 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16268 hard_links=yes
16269 $rm conftest*
16270 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16271 touch conftest.a
16272 ln conftest.a conftest.b 2>&5 || hard_links=no
16273 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16274 echo "$as_me:$LINENO: result: $hard_links" >&5
16275 echo "${ECHO_T}$hard_links" >&6
16276 if test "$hard_links" = no; then
16277 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16278 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16279 need_locks=warn
16280 fi
16281 else
16282 need_locks=no
16283 fi
16284
16285 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16286 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16287
16288 runpath_var=
16289 allow_undefined_flag_GCJ=
16290 enable_shared_with_static_runtimes_GCJ=no
16291 archive_cmds_GCJ=
16292 archive_expsym_cmds_GCJ=
16293 old_archive_From_new_cmds_GCJ=
16294 old_archive_from_expsyms_cmds_GCJ=
16295 export_dynamic_flag_spec_GCJ=
16296 whole_archive_flag_spec_GCJ=
16297 thread_safe_flag_spec_GCJ=
16298 hardcode_libdir_flag_spec_GCJ=
16299 hardcode_libdir_flag_spec_ld_GCJ=
16300 hardcode_libdir_separator_GCJ=
16301 hardcode_direct_GCJ=no
16302 hardcode_minus_L_GCJ=no
16303 hardcode_shlibpath_var_GCJ=unsupported
16304 link_all_deplibs_GCJ=unknown
16305 hardcode_automatic_GCJ=no
16306 module_cmds_GCJ=
16307 module_expsym_cmds_GCJ=
16308 always_export_symbols_GCJ=no
16309 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16310 # include_expsyms should be a list of space-separated symbols to be *always*
16311 # included in the symbol list
16312 include_expsyms_GCJ=
16313 # exclude_expsyms can be an extended regexp of symbols to exclude
16314 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16315 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16316 # as well as any symbol that contains `d'.
16317 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16318 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16319 # platforms (ab)use it in PIC code, but their linkers get confused if
16320 # the symbol is explicitly referenced. Since portable code cannot
16321 # rely on this symbol name, it's probably fine to never include it in
16322 # preloaded symbol tables.
16323 extract_expsyms_cmds=
16324 # Just being paranoid about ensuring that cc_basename is set.
16325 for cc_temp in $compiler""; do
16326 case $cc_temp in
16327 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16328 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16329 \-*) ;;
16330 *) break;;
16331 esac
16332 done
16333 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16334
16335 case $host_os in
16336 cygwin* | mingw* | pw32*)
16337 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16338 # When not using gcc, we currently assume that we are using
16339 # Microsoft Visual C++.
16340 if test "$GCC" != yes; then
16341 with_gnu_ld=no
16342 fi
16343 ;;
16344 interix*)
16345 # we just hope/assume this is gcc and not c89 (= MSVC++)
16346 with_gnu_ld=yes
16347 ;;
16348 openbsd*)
16349 with_gnu_ld=no
16350 ;;
16351 esac
16352
16353 ld_shlibs_GCJ=yes
16354 if test "$with_gnu_ld" = yes; then
16355 # If archive_cmds runs LD, not CC, wlarc should be empty
16356 wlarc='${wl}'
16357
16358 # Set some defaults for GNU ld with shared library support. These
16359 # are reset later if shared libraries are not supported. Putting them
16360 # here allows them to be overridden if necessary.
16361 runpath_var=LD_RUN_PATH
16362 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16363 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16364 # ancient GNU ld didn't support --whole-archive et. al.
16365 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16366 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16367 else
16368 whole_archive_flag_spec_GCJ=
16369 fi
16370 supports_anon_versioning=no
16371 case `$LD -v 2>/dev/null` in
16372 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16373 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16374 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16375 *\ 2.11.*) ;; # other 2.11 versions
16376 *) supports_anon_versioning=yes ;;
16377 esac
16378
16379 # See if GNU ld supports shared libraries.
16380 case $host_os in
16381 aix3* | aix4* | aix5*)
16382 # On AIX/PPC, the GNU linker is very broken
16383 if test "$host_cpu" != ia64; then
16384 ld_shlibs_GCJ=no
16385 cat <<EOF 1>&2
16386
16387 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16388 *** to be unable to reliably create shared libraries on AIX.
16389 *** Therefore, libtool is disabling shared libraries support. If you
16390 *** really care for shared libraries, you may want to modify your PATH
16391 *** so that a non-GNU linker is found, and then restart.
16392
16393 EOF
16394 fi
16395 ;;
16396
16397 amigaos*)
16398 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
16399 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16400 hardcode_minus_L_GCJ=yes
16401
16402 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16403 # that the semantics of dynamic libraries on AmigaOS, at least up
16404 # to version 4, is to share data among multiple programs linked
16405 # with the same dynamic library. Since this doesn't match the
16406 # behavior of shared libraries on other platforms, we can't use
16407 # them.
16408 ld_shlibs_GCJ=no
16409 ;;
16410
16411 beos*)
16412 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16413 allow_undefined_flag_GCJ=unsupported
16414 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16415 # support --undefined. This deserves some investigation. FIXME
16416 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16417 else
16418 ld_shlibs_GCJ=no
16419 fi
16420 ;;
16421
16422 cygwin* | mingw* | pw32*)
16423 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16424 # as there is no search path for DLLs.
16425 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16426 allow_undefined_flag_GCJ=unsupported
16427 always_export_symbols_GCJ=no
16428 enable_shared_with_static_runtimes_GCJ=yes
16429 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16430
16431 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16432 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16433 # If the export-symbols file already is a .def file (1st line
16434 # is EXPORTS), use it as is; otherwise, prepend...
16435 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16436 cp $export_symbols $output_objdir/$soname.def;
16437 else
16438 echo EXPORTS > $output_objdir/$soname.def;
16439 cat $export_symbols >> $output_objdir/$soname.def;
16440 fi~
16441 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16442 else
16443 ld_shlibs_GCJ=no
16444 fi
16445 ;;
16446
16447 interix3*)
16448 hardcode_direct_GCJ=no
16449 hardcode_shlibpath_var_GCJ=no
16450 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16451 export_dynamic_flag_spec_GCJ='${wl}-E'
16452 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16453 # Instead, shared libraries are loaded at an image base (0x10000000 by
16454 # default) and relocated if they conflict, which is a slow very memory
16455 # consuming and fragmenting process. To avoid this, we pick a random,
16456 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16457 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16458 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16459 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16460 ;;
16461
16462 linux*)
16463 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16464 tmp_addflag=
16465 case $cc_basename,$host_cpu in
16466 pgcc*) # Portland Group C compiler
16467 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16468 tmp_addflag=' $pic_flag'
16469 ;;
16470 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16471 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16472 tmp_addflag=' $pic_flag -Mnomain' ;;
16473 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16474 tmp_addflag=' -i_dynamic' ;;
16475 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16476 tmp_addflag=' -i_dynamic -nofor_main' ;;
16477 ifc* | ifort*) # Intel Fortran compiler
16478 tmp_addflag=' -nofor_main' ;;
16479 esac
16480 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16481
16482 if test $supports_anon_versioning = yes; then
16483 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16484 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16485 $echo "local: *; };" >> $output_objdir/$libname.ver~
16486 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16487 fi
16488 else
16489 ld_shlibs_GCJ=no
16490 fi
16491 ;;
16492
16493 netbsd*)
16494 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16495 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16496 wlarc=
16497 else
16498 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16499 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16500 fi
16501 ;;
16502
16503 solaris*)
16504 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16505 ld_shlibs_GCJ=no
16506 cat <<EOF 1>&2
16507
16508 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16509 *** create shared libraries on Solaris systems. Therefore, libtool
16510 *** is disabling shared libraries support. We urge you to upgrade GNU
16511 *** binutils to release 2.9.1 or newer. Another option is to modify
16512 *** your PATH or compiler configuration so that the native linker is
16513 *** used, and then restart.
16514
16515 EOF
16516 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16517 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16518 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16519 else
16520 ld_shlibs_GCJ=no
16521 fi
16522 ;;
16523
16524 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16525 case `$LD -v 2>&1` in
16526 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16527 ld_shlibs_GCJ=no
16528 cat <<_LT_EOF 1>&2
16529
16530 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16531 *** reliably create shared libraries on SCO systems. Therefore, libtool
16532 *** is disabling shared libraries support. We urge you to upgrade GNU
16533 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16534 *** your PATH or compiler configuration so that the native linker is
16535 *** used, and then restart.
16536
16537 _LT_EOF
16538 ;;
16539 *)
16540 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16541 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16542 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16543 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16544 else
16545 ld_shlibs_GCJ=no
16546 fi
16547 ;;
16548 esac
16549 ;;
16550
16551 sunos4*)
16552 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16553 wlarc=
16554 hardcode_direct_GCJ=yes
16555 hardcode_shlibpath_var_GCJ=no
16556 ;;
16557
16558 *)
16559 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16560 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16561 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16562 else
16563 ld_shlibs_GCJ=no
16564 fi
16565 ;;
16566 esac
16567
16568 if test "$ld_shlibs_GCJ" = no; then
16569 runpath_var=
16570 hardcode_libdir_flag_spec_GCJ=
16571 export_dynamic_flag_spec_GCJ=
16572 whole_archive_flag_spec_GCJ=
16573 fi
16574 else
16575 # PORTME fill in a description of your system's linker (not GNU ld)
16576 case $host_os in
16577 aix3*)
16578 allow_undefined_flag_GCJ=unsupported
16579 always_export_symbols_GCJ=yes
16580 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
16581 # Note: this linker hardcodes the directories in LIBPATH if there
16582 # are no directories specified by -L.
16583 hardcode_minus_L_GCJ=yes
16584 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16585 # Neither direct hardcoding nor static linking is supported with a
16586 # broken collect2.
16587 hardcode_direct_GCJ=unsupported
16588 fi
16589 ;;
16590
16591 aix4* | aix5*)
16592 if test "$host_cpu" = ia64; then
16593 # On IA64, the linker does run time linking by default, so we don't
16594 # have to do anything special.
16595 aix_use_runtimelinking=no
16596 exp_sym_flag='-Bexport'
16597 no_entry_flag=""
16598 else
16599 # If we're using GNU nm, then we don't want the "-C" option.
16600 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16601 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16602 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16603 else
16604 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16605 fi
16606 aix_use_runtimelinking=no
16607
16608 # Test if we are trying to use run time linking or normal
16609 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16610 # need to do runtime linking.
16611 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16612 for ld_flag in $LDFLAGS; do
16613 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16614 aix_use_runtimelinking=yes
16615 break
16616 fi
16617 done
16618 ;;
16619 esac
16620
16621 exp_sym_flag='-bexport'
16622 no_entry_flag='-bnoentry'
16623 fi
16624
16625 # When large executables or shared objects are built, AIX ld can
16626 # have problems creating the table of contents. If linking a library
16627 # or program results in "error TOC overflow" add -mminimal-toc to
16628 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16629 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16630
16631 archive_cmds_GCJ=''
16632 hardcode_direct_GCJ=yes
16633 hardcode_libdir_separator_GCJ=':'
16634 link_all_deplibs_GCJ=yes
16635
16636 if test "$GCC" = yes; then
16637 case $host_os in aix4.[012]|aix4.[012].*)
16638 # We only want to do this on AIX 4.2 and lower, the check
16639 # below for broken collect2 doesn't work under 4.3+
16640 collect2name=`${CC} -print-prog-name=collect2`
16641 if test -f "$collect2name" && \
16642 strings "$collect2name" | grep resolve_lib_name >/dev/null
16643 then
16644 # We have reworked collect2
16645 hardcode_direct_GCJ=yes
16646 else
16647 # We have old collect2
16648 hardcode_direct_GCJ=unsupported
16649 # It fails to find uninstalled libraries when the uninstalled
16650 # path is not listed in the libpath. Setting hardcode_minus_L
16651 # to unsupported forces relinking
16652 hardcode_minus_L_GCJ=yes
16653 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16654 hardcode_libdir_separator_GCJ=
16655 fi
16656 ;;
16657 esac
16658 shared_flag='-shared'
16659 if test "$aix_use_runtimelinking" = yes; then
16660 shared_flag="$shared_flag "'${wl}-G'
16661 fi
16662 else
16663 # not using gcc
16664 if test "$host_cpu" = ia64; then
16665 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16666 # chokes on -Wl,-G. The following line is correct:
16667 shared_flag='-G'
16668 else
16669 if test "$aix_use_runtimelinking" = yes; then
16670 shared_flag='${wl}-G'
16671 else
16672 shared_flag='${wl}-bM:SRE'
16673 fi
16674 fi
16675 fi
16676
16677 # It seems that -bexpall does not export symbols beginning with
16678 # underscore (_), so it is better to generate a list of symbols to export.
16679 always_export_symbols_GCJ=yes
16680 if test "$aix_use_runtimelinking" = yes; then
16681 # Warning - without using the other runtime loading flags (-brtl),
16682 # -berok will link without error, but may produce a broken library.
16683 allow_undefined_flag_GCJ='-berok'
16684 # Determine the default libpath from the value encoded in an empty executable.
16685 cat >conftest.$ac_ext <<_ACEOF
16686 /* confdefs.h. */
16687 _ACEOF
16688 cat confdefs.h >>conftest.$ac_ext
16689 cat >>conftest.$ac_ext <<_ACEOF
16690 /* end confdefs.h. */
16691
16692 int
16693 main ()
16694 {
16695
16696 ;
16697 return 0;
16698 }
16699 _ACEOF
16700 rm -f conftest.$ac_objext conftest$ac_exeext
16701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16702 (eval $ac_link) 2>conftest.er1
16703 ac_status=$?
16704 grep -v '^ *+' conftest.er1 >conftest.err
16705 rm -f conftest.er1
16706 cat conftest.err >&5
16707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16708 (exit $ac_status); } &&
16709 { ac_try='test -z "$ac_c_werror_flag"
16710 || test ! -s conftest.err'
16711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16712 (eval $ac_try) 2>&5
16713 ac_status=$?
16714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715 (exit $ac_status); }; } &&
16716 { ac_try='test -s conftest$ac_exeext'
16717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16718 (eval $ac_try) 2>&5
16719 ac_status=$?
16720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16721 (exit $ac_status); }; }; then
16722
16723 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16724 }'`
16725 # Check for a 64-bit object if we didn't find anything.
16726 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16727 }'`; fi
16728 else
16729 echo "$as_me: failed program was:" >&5
16730 sed 's/^/| /' conftest.$ac_ext >&5
16731
16732 fi
16733 rm -f conftest.err conftest.$ac_objext \
16734 conftest$ac_exeext conftest.$ac_ext
16735 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16736
16737 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16738 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16739 else
16740 if test "$host_cpu" = ia64; then
16741 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16742 allow_undefined_flag_GCJ="-z nodefs"
16743 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
16744 else
16745 # Determine the default libpath from the value encoded in an empty executable.
16746 cat >conftest.$ac_ext <<_ACEOF
16747 /* confdefs.h. */
16748 _ACEOF
16749 cat confdefs.h >>conftest.$ac_ext
16750 cat >>conftest.$ac_ext <<_ACEOF
16751 /* end confdefs.h. */
16752
16753 int
16754 main ()
16755 {
16756
16757 ;
16758 return 0;
16759 }
16760 _ACEOF
16761 rm -f conftest.$ac_objext conftest$ac_exeext
16762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16763 (eval $ac_link) 2>conftest.er1
16764 ac_status=$?
16765 grep -v '^ *+' conftest.er1 >conftest.err
16766 rm -f conftest.er1
16767 cat conftest.err >&5
16768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16769 (exit $ac_status); } &&
16770 { ac_try='test -z "$ac_c_werror_flag"
16771 || test ! -s conftest.err'
16772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16773 (eval $ac_try) 2>&5
16774 ac_status=$?
16775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16776 (exit $ac_status); }; } &&
16777 { ac_try='test -s conftest$ac_exeext'
16778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16779 (eval $ac_try) 2>&5
16780 ac_status=$?
16781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16782 (exit $ac_status); }; }; then
16783
16784 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16785 }'`
16786 # Check for a 64-bit object if we didn't find anything.
16787 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16788 }'`; fi
16789 else
16790 echo "$as_me: failed program was:" >&5
16791 sed 's/^/| /' conftest.$ac_ext >&5
16792
16793 fi
16794 rm -f conftest.err conftest.$ac_objext \
16795 conftest$ac_exeext conftest.$ac_ext
16796 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16797
16798 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16799 # Warning - without using the other run time loading flags,
16800 # -berok will link without error, but may produce a broken library.
16801 no_undefined_flag_GCJ=' ${wl}-bernotok'
16802 allow_undefined_flag_GCJ=' ${wl}-berok'
16803 # Exported symbols can be pulled into shared objects from archives
16804 whole_archive_flag_spec_GCJ='$convenience'
16805 archive_cmds_need_lc_GCJ=yes
16806 # This is similar to how AIX traditionally builds its shared libraries.
16807 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16808 fi
16809 fi
16810 ;;
16811
16812 amigaos*)
16813 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
16814 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16815 hardcode_minus_L_GCJ=yes
16816 # see comment about different semantics on the GNU ld section
16817 ld_shlibs_GCJ=no
16818 ;;
16819
16820 bsdi[45]*)
16821 export_dynamic_flag_spec_GCJ=-rdynamic
16822 ;;
16823
16824 cygwin* | mingw* | pw32*)
16825 # When not using gcc, we currently assume that we are using
16826 # Microsoft Visual C++.
16827 # hardcode_libdir_flag_spec is actually meaningless, as there is
16828 # no search path for DLLs.
16829 hardcode_libdir_flag_spec_GCJ=' '
16830 allow_undefined_flag_GCJ=unsupported
16831 # Tell ltmain to make .lib files, not .a files.
16832 libext=lib
16833 # Tell ltmain to make .dll files, not .so files.
16834 shrext_cmds=".dll"
16835 # FIXME: Setting linknames here is a bad hack.
16836 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16837 # The linker will automatically build a .lib file if we build a DLL.
16838 old_archive_From_new_cmds_GCJ='true'
16839 # FIXME: Should let the user specify the lib program.
16840 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16841 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16842 enable_shared_with_static_runtimes_GCJ=yes
16843 ;;
16844
16845 darwin* | rhapsody*)
16846 case $host_os in
16847 rhapsody* | darwin1.[012])
16848 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16849 ;;
16850 *) # Darwin 1.3 on
16851 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16852 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16853 else
16854 case ${MACOSX_DEPLOYMENT_TARGET} in
16855 10.[012])
16856 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16857 ;;
16858 10.*)
16859 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16860 ;;
16861 esac
16862 fi
16863 ;;
16864 esac
16865 archive_cmds_need_lc_GCJ=no
16866 hardcode_direct_GCJ=no
16867 hardcode_automatic_GCJ=yes
16868 hardcode_shlibpath_var_GCJ=unsupported
16869 whole_archive_flag_spec_GCJ=''
16870 link_all_deplibs_GCJ=yes
16871 if test "$GCC" = yes ; then
16872 output_verbose_link_cmd='echo'
16873 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16874 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16875 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16876 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16877 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16878 else
16879 case $cc_basename in
16880 xlc*)
16881 output_verbose_link_cmd='echo'
16882 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16883 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16884 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16885 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16886 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16887 ;;
16888 *)
16889 ld_shlibs_GCJ=no
16890 ;;
16891 esac
16892 fi
16893 ;;
16894
16895 dgux*)
16896 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16897 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16898 hardcode_shlibpath_var_GCJ=no
16899 ;;
16900
16901 freebsd1*)
16902 ld_shlibs_GCJ=no
16903 ;;
16904
16905 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16906 # support. Future versions do this automatically, but an explicit c++rt0.o
16907 # does not break anything, and helps significantly (at the cost of a little
16908 # extra space).
16909 freebsd2.2*)
16910 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16911 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16912 hardcode_direct_GCJ=yes
16913 hardcode_shlibpath_var_GCJ=no
16914 ;;
16915
16916 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16917 freebsd2*)
16918 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16919 hardcode_direct_GCJ=yes
16920 hardcode_minus_L_GCJ=yes
16921 hardcode_shlibpath_var_GCJ=no
16922 ;;
16923
16924 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16925 freebsd* | kfreebsd*-gnu | dragonfly*)
16926 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16927 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16928 hardcode_direct_GCJ=yes
16929 hardcode_shlibpath_var_GCJ=no
16930 ;;
16931
16932 hpux9*)
16933 if test "$GCC" = yes; then
16934 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16935 else
16936 archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16937 fi
16938 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16939 hardcode_libdir_separator_GCJ=:
16940 hardcode_direct_GCJ=yes
16941
16942 # hardcode_minus_L: Not really in the search PATH,
16943 # but as the default location of the library.
16944 hardcode_minus_L_GCJ=yes
16945 export_dynamic_flag_spec_GCJ='${wl}-E'
16946 ;;
16947
16948 hpux10*)
16949 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16950 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16951 else
16952 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16953 fi
16954 if test "$with_gnu_ld" = no; then
16955 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16956 hardcode_libdir_separator_GCJ=:
16957
16958 hardcode_direct_GCJ=yes
16959 export_dynamic_flag_spec_GCJ='${wl}-E'
16960
16961 # hardcode_minus_L: Not really in the search PATH,
16962 # but as the default location of the library.
16963 hardcode_minus_L_GCJ=yes
16964 fi
16965 ;;
16966
16967 hpux11*)
16968 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16969 case $host_cpu in
16970 hppa*64*)
16971 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16972 ;;
16973 ia64*)
16974 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16975 ;;
16976 *)
16977 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16978 ;;
16979 esac
16980 else
16981 case $host_cpu in
16982 hppa*64*)
16983 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16984 ;;
16985 ia64*)
16986 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16987 ;;
16988 *)
16989 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16990 ;;
16991 esac
16992 fi
16993 if test "$with_gnu_ld" = no; then
16994 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16995 hardcode_libdir_separator_GCJ=:
16996
16997 case $host_cpu in
16998 hppa*64*|ia64*)
16999 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17000 hardcode_direct_GCJ=no
17001 hardcode_shlibpath_var_GCJ=no
17002 ;;
17003 *)
17004 hardcode_direct_GCJ=yes
17005 export_dynamic_flag_spec_GCJ='${wl}-E'
17006
17007 # hardcode_minus_L: Not really in the search PATH,
17008 # but as the default location of the library.
17009 hardcode_minus_L_GCJ=yes
17010 ;;
17011 esac
17012 fi
17013 ;;
17014
17015 irix5* | irix6* | nonstopux*)
17016 if test "$GCC" = yes; then
17017 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17018 else
17019 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17020 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17021 fi
17022 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17023 hardcode_libdir_separator_GCJ=:
17024 link_all_deplibs_GCJ=yes
17025 ;;
17026
17027 netbsd*)
17028 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17029 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17030 else
17031 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17032 fi
17033 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17034 hardcode_direct_GCJ=yes
17035 hardcode_shlibpath_var_GCJ=no
17036 ;;
17037
17038 newsos6)
17039 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17040 hardcode_direct_GCJ=yes
17041 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17042 hardcode_libdir_separator_GCJ=:
17043 hardcode_shlibpath_var_GCJ=no
17044 ;;
17045
17046 openbsd*)
17047 hardcode_direct_GCJ=yes
17048 hardcode_shlibpath_var_GCJ=no
17049 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17050 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17051 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17052 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17053 export_dynamic_flag_spec_GCJ='${wl}-E'
17054 else
17055 case $host_os in
17056 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17057 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17058 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17059 ;;
17060 *)
17061 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17062 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17063 ;;
17064 esac
17065 fi
17066 ;;
17067
17068 os2*)
17069 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17070 hardcode_minus_L_GCJ=yes
17071 allow_undefined_flag_GCJ=unsupported
17072 archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
17073 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17074 ;;
17075
17076 osf3*)
17077 if test "$GCC" = yes; then
17078 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17079 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17080 else
17081 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17082 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17083 fi
17084 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17085 hardcode_libdir_separator_GCJ=:
17086 ;;
17087
17088 osf4* | osf5*) # as osf3* with the addition of -msym flag
17089 if test "$GCC" = yes; then
17090 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17091 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17092 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17093 else
17094 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17095 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17096 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
17097 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17098
17099 # Both c and cxx compiler support -rpath directly
17100 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17101 fi
17102 hardcode_libdir_separator_GCJ=:
17103 ;;
17104
17105 solaris*)
17106 no_undefined_flag_GCJ=' -z text'
17107 if test "$GCC" = yes; then
17108 wlarc='${wl}'
17109 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17110 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17111 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17112 else
17113 wlarc=''
17114 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17115 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17116 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17117 fi
17118 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17119 hardcode_shlibpath_var_GCJ=no
17120 case $host_os in
17121 solaris2.[0-5] | solaris2.[0-5].*) ;;
17122 *)
17123 # The compiler driver will combine linker options so we
17124 # cannot just pass the convience library names through
17125 # without $wl, iff we do not link with $LD.
17126 # Luckily, gcc supports the same syntax we need for Sun Studio.
17127 # Supported since Solaris 2.6 (maybe 2.5.1?)
17128 case $wlarc in
17129 '')
17130 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17131 *)
17132 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17133 esac ;;
17134 esac
17135 link_all_deplibs_GCJ=yes
17136 ;;
17137
17138 sunos4*)
17139 if test "x$host_vendor" = xsequent; then
17140 # Use $CC to link under sequent, because it throws in some extra .o
17141 # files that make .init and .fini sections work.
17142 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17143 else
17144 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17145 fi
17146 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17147 hardcode_direct_GCJ=yes
17148 hardcode_minus_L_GCJ=yes
17149 hardcode_shlibpath_var_GCJ=no
17150 ;;
17151
17152 sysv4)
17153 case $host_vendor in
17154 sni)
17155 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17156 hardcode_direct_GCJ=yes # is this really true???
17157 ;;
17158 siemens)
17159 ## LD is ld it makes a PLAMLIB
17160 ## CC just makes a GrossModule.
17161 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17162 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17163 hardcode_direct_GCJ=no
17164 ;;
17165 motorola)
17166 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17167 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17168 ;;
17169 esac
17170 runpath_var='LD_RUN_PATH'
17171 hardcode_shlibpath_var_GCJ=no
17172 ;;
17173
17174 sysv4.3*)
17175 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17176 hardcode_shlibpath_var_GCJ=no
17177 export_dynamic_flag_spec_GCJ='-Bexport'
17178 ;;
17179
17180 sysv4*MP*)
17181 if test -d /usr/nec; then
17182 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17183 hardcode_shlibpath_var_GCJ=no
17184 runpath_var=LD_RUN_PATH
17185 hardcode_runpath_var=yes
17186 ld_shlibs_GCJ=yes
17187 fi
17188 ;;
17189
17190 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17191 no_undefined_flag_GCJ='${wl}-z,text'
17192 archive_cmds_need_lc_GCJ=no
17193 hardcode_shlibpath_var_GCJ=no
17194 runpath_var='LD_RUN_PATH'
17195
17196 if test "$GCC" = yes; then
17197 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17198 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17199 else
17200 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17201 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17202 fi
17203 ;;
17204
17205 sysv5* | sco3.2v5* | sco5v6*)
17206 # Note: We can NOT use -z defs as we might desire, because we do not
17207 # link with -lc, and that would cause any symbols used from libc to
17208 # always be unresolved, which means just about no library would
17209 # ever link correctly. If we're not using GNU ld we use -z text
17210 # though, which does catch some bad symbols but isn't as heavy-handed
17211 # as -z defs.
17212 no_undefined_flag_GCJ='${wl}-z,text'
17213 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17214 archive_cmds_need_lc_GCJ=no
17215 hardcode_shlibpath_var_GCJ=no
17216 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17217 hardcode_libdir_separator_GCJ=':'
17218 link_all_deplibs_GCJ=yes
17219 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17220 runpath_var='LD_RUN_PATH'
17221
17222 if test "$GCC" = yes; then
17223 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17224 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17225 else
17226 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17227 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17228 fi
17229 ;;
17230
17231 uts4*)
17232 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17233 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17234 hardcode_shlibpath_var_GCJ=no
17235 ;;
17236
17237 *)
17238 ld_shlibs_GCJ=no
17239 ;;
17240 esac
17241 fi
17242
17243 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17244 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17245 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17246
17247 #
17248 # Do we need to explicitly link libc?
17249 #
17250 case "x$archive_cmds_need_lc_GCJ" in
17251 x|xyes)
17252 # Assume -lc should be added
17253 archive_cmds_need_lc_GCJ=yes
17254
17255 if test "$enable_shared" = yes && test "$GCC" = yes; then
17256 case $archive_cmds_GCJ in
17257 *'~'*)
17258 # FIXME: we may have to deal with multi-command sequences.
17259 ;;
17260 '$CC '*)
17261 # Test whether the compiler implicitly links with -lc since on some
17262 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17263 # to ld, don't add -lc before -lgcc.
17264 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17265 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17266 $rm conftest*
17267 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17268
17269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17270 (eval $ac_compile) 2>&5
17271 ac_status=$?
17272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17273 (exit $ac_status); } 2>conftest.err; then
17274 soname=conftest
17275 lib=conftest
17276 libobjs=conftest.$ac_objext
17277 deplibs=
17278 wl=$lt_prog_compiler_wl_GCJ
17279 pic_flag=$lt_prog_compiler_pic_GCJ
17280 compiler_flags=-v
17281 linker_flags=-v
17282 verstring=
17283 output_objdir=.
17284 libname=conftest
17285 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17286 allow_undefined_flag_GCJ=
17287 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17288 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17289 ac_status=$?
17290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17291 (exit $ac_status); }
17292 then
17293 archive_cmds_need_lc_GCJ=no
17294 else
17295 archive_cmds_need_lc_GCJ=yes
17296 fi
17297 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17298 else
17299 cat conftest.err 1>&5
17300 fi
17301 $rm conftest*
17302 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17303 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17304 ;;
17305 esac
17306 fi
17307 ;;
17308 esac
17309
17310 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17311 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17312 library_names_spec=
17313 libname_spec='lib$name'
17314 soname_spec=
17315 shrext_cmds=".so"
17316 postinstall_cmds=
17317 postuninstall_cmds=
17318 finish_cmds=
17319 finish_eval=
17320 shlibpath_var=
17321 shlibpath_overrides_runpath=unknown
17322 version_type=none
17323 dynamic_linker="$host_os ld.so"
17324 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17325 if test "$GCC" = yes; then
17326 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17327 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17328 # if the path contains ";" then we assume it to be the separator
17329 # otherwise default to the standard path separator (i.e. ":") - it is
17330 # assumed that no part of a normal pathname contains ";" but that should
17331 # okay in the real world where ";" in dirpaths is itself problematic.
17332 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17333 else
17334 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17335 fi
17336 else
17337 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17338 fi
17339 need_lib_prefix=unknown
17340 hardcode_into_libs=no
17341
17342 # when you set need_version to no, make sure it does not cause -set_version
17343 # flags to be left without arguments
17344 need_version=unknown
17345
17346 case $host_os in
17347 aix3*)
17348 version_type=linux
17349 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17350 shlibpath_var=LIBPATH
17351
17352 # AIX 3 has no versioning support, so we append a major version to the name.
17353 soname_spec='${libname}${release}${shared_ext}$major'
17354 ;;
17355
17356 aix4* | aix5*)
17357 version_type=linux
17358 need_lib_prefix=no
17359 need_version=no
17360 hardcode_into_libs=yes
17361 if test "$host_cpu" = ia64; then
17362 # AIX 5 supports IA64
17363 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17364 shlibpath_var=LD_LIBRARY_PATH
17365 else
17366 # With GCC up to 2.95.x, collect2 would create an import file
17367 # for dependence libraries. The import file would start with
17368 # the line `#! .'. This would cause the generated library to
17369 # depend on `.', always an invalid library. This was fixed in
17370 # development snapshots of GCC prior to 3.0.
17371 case $host_os in
17372 aix4 | aix4.[01] | aix4.[01].*)
17373 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17374 echo ' yes '
17375 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17376 :
17377 else
17378 can_build_shared=no
17379 fi
17380 ;;
17381 esac
17382 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17383 # soname into executable. Probably we can add versioning support to
17384 # collect2, so additional links can be useful in future.
17385 if test "$aix_use_runtimelinking" = yes; then
17386 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17387 # instead of lib<name>.a to let people know that these are not
17388 # typical AIX shared libraries.
17389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17390 else
17391 # We preserve .a as extension for shared libraries through AIX4.2
17392 # and later when we are not doing run time linking.
17393 library_names_spec='${libname}${release}.a $libname.a'
17394 soname_spec='${libname}${release}${shared_ext}$major'
17395 fi
17396 shlibpath_var=LIBPATH
17397 fi
17398 ;;
17399
17400 amigaos*)
17401 library_names_spec='$libname.ixlibrary $libname.a'
17402 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17403 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
17404 ;;
17405
17406 beos*)
17407 library_names_spec='${libname}${shared_ext}'
17408 dynamic_linker="$host_os ld.so"
17409 shlibpath_var=LIBRARY_PATH
17410 ;;
17411
17412 bsdi[45]*)
17413 version_type=linux
17414 need_version=no
17415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17416 soname_spec='${libname}${release}${shared_ext}$major'
17417 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17418 shlibpath_var=LD_LIBRARY_PATH
17419 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17420 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17421 # the default ld.so.conf also contains /usr/contrib/lib and
17422 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17423 # libtool to hard-code these into programs
17424 ;;
17425
17426 cygwin* | mingw* | pw32*)
17427 version_type=windows
17428 shrext_cmds=".dll"
17429 need_version=no
17430 need_lib_prefix=no
17431
17432 case $GCC,$host_os in
17433 yes,cygwin* | yes,mingw* | yes,pw32*)
17434 library_names_spec='$libname.dll.a'
17435 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17436 postinstall_cmds='base_file=`basename \${file}`~
17437 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17438 dldir=$destdir/`dirname \$dlpath`~
17439 test -d \$dldir || mkdir -p \$dldir~
17440 $install_prog $dir/$dlname \$dldir/$dlname~
17441 chmod a+x \$dldir/$dlname'
17442 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17443 dlpath=$dir/\$dldll~
17444 $rm \$dlpath'
17445 shlibpath_overrides_runpath=yes
17446
17447 case $host_os in
17448 cygwin*)
17449 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17450 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17451 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17452 ;;
17453 mingw*)
17454 # MinGW DLLs use traditional 'lib' prefix
17455 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17456 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17457 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17458 # It is most probably a Windows format PATH printed by
17459 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17460 # path with ; separators, and with drive letters. We can handle the
17461 # drive letters (cygwin fileutils understands them), so leave them,
17462 # especially as we might pass files found there to a mingw objdump,
17463 # which wouldn't understand a cygwinified path. Ahh.
17464 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17465 else
17466 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17467 fi
17468 ;;
17469 pw32*)
17470 # pw32 DLLs use 'pw' prefix rather than 'lib'
17471 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17472 ;;
17473 esac
17474 ;;
17475
17476 *)
17477 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17478 ;;
17479 esac
17480 dynamic_linker='Win32 ld.exe'
17481 # FIXME: first we should search . and the directory the executable is in
17482 shlibpath_var=PATH
17483 ;;
17484
17485 darwin* | rhapsody*)
17486 dynamic_linker="$host_os dyld"
17487 version_type=darwin
17488 need_lib_prefix=no
17489 need_version=no
17490 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17491 soname_spec='${libname}${release}${major}$shared_ext'
17492 shlibpath_overrides_runpath=yes
17493 shlibpath_var=DYLD_LIBRARY_PATH
17494 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17495 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17496 if test "$GCC" = yes; then
17497 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17498 else
17499 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17500 fi
17501 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17502 ;;
17503
17504 dgux*)
17505 version_type=linux
17506 need_lib_prefix=no
17507 need_version=no
17508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17509 soname_spec='${libname}${release}${shared_ext}$major'
17510 shlibpath_var=LD_LIBRARY_PATH
17511 ;;
17512
17513 freebsd1*)
17514 dynamic_linker=no
17515 ;;
17516
17517 kfreebsd*-gnu)
17518 version_type=linux
17519 need_lib_prefix=no
17520 need_version=no
17521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17522 soname_spec='${libname}${release}${shared_ext}$major'
17523 shlibpath_var=LD_LIBRARY_PATH
17524 shlibpath_overrides_runpath=no
17525 hardcode_into_libs=yes
17526 dynamic_linker='GNU ld.so'
17527 ;;
17528
17529 freebsd* | dragonfly*)
17530 # DragonFly does not have aout. When/if they implement a new
17531 # versioning mechanism, adjust this.
17532 if test -x /usr/bin/objformat; then
17533 objformat=`/usr/bin/objformat`
17534 else
17535 case $host_os in
17536 freebsd[123]*) objformat=aout ;;
17537 *) objformat=elf ;;
17538 esac
17539 fi
17540 version_type=freebsd-$objformat
17541 case $version_type in
17542 freebsd-elf*)
17543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17544 need_version=no
17545 need_lib_prefix=no
17546 ;;
17547 freebsd-*)
17548 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17549 need_version=yes
17550 ;;
17551 esac
17552 shlibpath_var=LD_LIBRARY_PATH
17553 case $host_os in
17554 freebsd2*)
17555 shlibpath_overrides_runpath=yes
17556 ;;
17557 freebsd3.[01]* | freebsdelf3.[01]*)
17558 shlibpath_overrides_runpath=yes
17559 hardcode_into_libs=yes
17560 ;;
17561 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17562 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17563 shlibpath_overrides_runpath=no
17564 hardcode_into_libs=yes
17565 ;;
17566 freebsd*) # from 4.6 on
17567 shlibpath_overrides_runpath=yes
17568 hardcode_into_libs=yes
17569 ;;
17570 esac
17571 ;;
17572
17573 gnu*)
17574 version_type=linux
17575 need_lib_prefix=no
17576 need_version=no
17577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17578 soname_spec='${libname}${release}${shared_ext}$major'
17579 shlibpath_var=LD_LIBRARY_PATH
17580 hardcode_into_libs=yes
17581 ;;
17582
17583 hpux9* | hpux10* | hpux11*)
17584 # Give a soname corresponding to the major version so that dld.sl refuses to
17585 # link against other versions.
17586 version_type=sunos
17587 need_lib_prefix=no
17588 need_version=no
17589 case $host_cpu in
17590 ia64*)
17591 shrext_cmds='.so'
17592 hardcode_into_libs=yes
17593 dynamic_linker="$host_os dld.so"
17594 shlibpath_var=LD_LIBRARY_PATH
17595 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17597 soname_spec='${libname}${release}${shared_ext}$major'
17598 if test "X$HPUX_IA64_MODE" = X32; then
17599 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17600 else
17601 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17602 fi
17603 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17604 ;;
17605 hppa*64*)
17606 shrext_cmds='.sl'
17607 hardcode_into_libs=yes
17608 dynamic_linker="$host_os dld.sl"
17609 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17610 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17612 soname_spec='${libname}${release}${shared_ext}$major'
17613 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17614 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17615 ;;
17616 *)
17617 shrext_cmds='.sl'
17618 dynamic_linker="$host_os dld.sl"
17619 shlibpath_var=SHLIB_PATH
17620 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17622 soname_spec='${libname}${release}${shared_ext}$major'
17623 ;;
17624 esac
17625 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17626 postinstall_cmds='chmod 555 $lib'
17627 ;;
17628
17629 interix3*)
17630 version_type=linux
17631 need_lib_prefix=no
17632 need_version=no
17633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17634 soname_spec='${libname}${release}${shared_ext}$major'
17635 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17636 shlibpath_var=LD_LIBRARY_PATH
17637 shlibpath_overrides_runpath=no
17638 hardcode_into_libs=yes
17639 ;;
17640
17641 irix5* | irix6* | nonstopux*)
17642 case $host_os in
17643 nonstopux*) version_type=nonstopux ;;
17644 *)
17645 if test "$lt_cv_prog_gnu_ld" = yes; then
17646 version_type=linux
17647 else
17648 version_type=irix
17649 fi ;;
17650 esac
17651 need_lib_prefix=no
17652 need_version=no
17653 soname_spec='${libname}${release}${shared_ext}$major'
17654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17655 case $host_os in
17656 irix5* | nonstopux*)
17657 libsuff= shlibsuff=
17658 ;;
17659 *)
17660 case $LD in # libtool.m4 will add one of these switches to LD
17661 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17662 libsuff= shlibsuff= libmagic=32-bit;;
17663 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17664 libsuff=32 shlibsuff=N32 libmagic=N32;;
17665 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17666 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17667 *) libsuff= shlibsuff= libmagic=never-match;;
17668 esac
17669 ;;
17670 esac
17671 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17672 shlibpath_overrides_runpath=no
17673 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17674 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17675 hardcode_into_libs=yes
17676 ;;
17677
17678 # No shared lib support for Linux oldld, aout, or coff.
17679 linux*oldld* | linux*aout* | linux*coff*)
17680 dynamic_linker=no
17681 ;;
17682
17683 # This must be Linux ELF.
17684 linux*)
17685 version_type=linux
17686 need_lib_prefix=no
17687 need_version=no
17688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17689 soname_spec='${libname}${release}${shared_ext}$major'
17690 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17691 shlibpath_var=LD_LIBRARY_PATH
17692 shlibpath_overrides_runpath=no
17693 # This implies no fast_install, which is unacceptable.
17694 # Some rework will be needed to allow for fast_install
17695 # before this can be enabled.
17696 hardcode_into_libs=yes
17697
17698 # find out which ABI we are using
17699 libsuff=
17700 case "$host_cpu" in
17701 x86_64*|s390x*|powerpc64*)
17702 echo '#line 17702 "configure"' > conftest.$ac_ext
17703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17704 (eval $ac_compile) 2>&5
17705 ac_status=$?
17706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17707 (exit $ac_status); }; then
17708 case `/usr/bin/file conftest.$ac_objext` in
17709 *64-bit*)
17710 libsuff=64
17711 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17712 ;;
17713 esac
17714 fi
17715 rm -rf conftest*
17716 ;;
17717 esac
17718
17719 # Append ld.so.conf contents to the search path
17720 if test -f /etc/ld.so.conf; then
17721 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17722 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
17723 fi
17724
17725 # We used to test for /lib/ld.so.1 and disable shared libraries on
17726 # powerpc, because MkLinux only supported shared libraries with the
17727 # GNU dynamic linker. Since this was broken with cross compilers,
17728 # most powerpc-linux boxes support dynamic linking these days and
17729 # people can always --disable-shared, the test was removed, and we
17730 # assume the GNU/Linux dynamic linker is in use.
17731 dynamic_linker='GNU/Linux ld.so'
17732 ;;
17733
17734 knetbsd*-gnu)
17735 version_type=linux
17736 need_lib_prefix=no
17737 need_version=no
17738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17739 soname_spec='${libname}${release}${shared_ext}$major'
17740 shlibpath_var=LD_LIBRARY_PATH
17741 shlibpath_overrides_runpath=no
17742 hardcode_into_libs=yes
17743 dynamic_linker='GNU ld.so'
17744 ;;
17745
17746 netbsd*)
17747 version_type=sunos
17748 need_lib_prefix=no
17749 need_version=no
17750 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17752 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17753 dynamic_linker='NetBSD (a.out) ld.so'
17754 else
17755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17756 soname_spec='${libname}${release}${shared_ext}$major'
17757 dynamic_linker='NetBSD ld.elf_so'
17758 fi
17759 shlibpath_var=LD_LIBRARY_PATH
17760 shlibpath_overrides_runpath=yes
17761 hardcode_into_libs=yes
17762 ;;
17763
17764 newsos6)
17765 version_type=linux
17766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17767 shlibpath_var=LD_LIBRARY_PATH
17768 shlibpath_overrides_runpath=yes
17769 ;;
17770
17771 nto-qnx*)
17772 version_type=linux
17773 need_lib_prefix=no
17774 need_version=no
17775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17776 soname_spec='${libname}${release}${shared_ext}$major'
17777 shlibpath_var=LD_LIBRARY_PATH
17778 shlibpath_overrides_runpath=yes
17779 ;;
17780
17781 openbsd*)
17782 version_type=sunos
17783 sys_lib_dlsearch_path_spec="/usr/lib"
17784 need_lib_prefix=no
17785 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17786 case $host_os in
17787 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17788 *) need_version=no ;;
17789 esac
17790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17791 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17792 shlibpath_var=LD_LIBRARY_PATH
17793 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17794 case $host_os in
17795 openbsd2.[89] | openbsd2.[89].*)
17796 shlibpath_overrides_runpath=no
17797 ;;
17798 *)
17799 shlibpath_overrides_runpath=yes
17800 ;;
17801 esac
17802 else
17803 shlibpath_overrides_runpath=yes
17804 fi
17805 ;;
17806
17807 os2*)
17808 libname_spec='$name'
17809 shrext_cmds=".dll"
17810 need_lib_prefix=no
17811 library_names_spec='$libname${shared_ext} $libname.a'
17812 dynamic_linker='OS/2 ld.exe'
17813 shlibpath_var=LIBPATH
17814 ;;
17815
17816 osf3* | osf4* | osf5*)
17817 version_type=osf
17818 need_lib_prefix=no
17819 need_version=no
17820 soname_spec='${libname}${release}${shared_ext}$major'
17821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17822 shlibpath_var=LD_LIBRARY_PATH
17823 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17824 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17825 ;;
17826
17827 solaris*)
17828 version_type=linux
17829 need_lib_prefix=no
17830 need_version=no
17831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17832 soname_spec='${libname}${release}${shared_ext}$major'
17833 shlibpath_var=LD_LIBRARY_PATH
17834 shlibpath_overrides_runpath=yes
17835 hardcode_into_libs=yes
17836 # ldd complains unless libraries are executable
17837 postinstall_cmds='chmod +x $lib'
17838 ;;
17839
17840 sunos4*)
17841 version_type=sunos
17842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17843 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17844 shlibpath_var=LD_LIBRARY_PATH
17845 shlibpath_overrides_runpath=yes
17846 if test "$with_gnu_ld" = yes; then
17847 need_lib_prefix=no
17848 fi
17849 need_version=yes
17850 ;;
17851
17852 sysv4 | sysv4.3*)
17853 version_type=linux
17854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17855 soname_spec='${libname}${release}${shared_ext}$major'
17856 shlibpath_var=LD_LIBRARY_PATH
17857 case $host_vendor in
17858 sni)
17859 shlibpath_overrides_runpath=no
17860 need_lib_prefix=no
17861 export_dynamic_flag_spec='${wl}-Blargedynsym'
17862 runpath_var=LD_RUN_PATH
17863 ;;
17864 siemens)
17865 need_lib_prefix=no
17866 ;;
17867 motorola)
17868 need_lib_prefix=no
17869 need_version=no
17870 shlibpath_overrides_runpath=no
17871 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17872 ;;
17873 esac
17874 ;;
17875
17876 sysv4*MP*)
17877 if test -d /usr/nec ;then
17878 version_type=linux
17879 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17880 soname_spec='$libname${shared_ext}.$major'
17881 shlibpath_var=LD_LIBRARY_PATH
17882 fi
17883 ;;
17884
17885 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17886 version_type=freebsd-elf
17887 need_lib_prefix=no
17888 need_version=no
17889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17890 soname_spec='${libname}${release}${shared_ext}$major'
17891 shlibpath_var=LD_LIBRARY_PATH
17892 hardcode_into_libs=yes
17893 if test "$with_gnu_ld" = yes; then
17894 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17895 shlibpath_overrides_runpath=no
17896 else
17897 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17898 shlibpath_overrides_runpath=yes
17899 case $host_os in
17900 sco3.2v5*)
17901 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17902 ;;
17903 esac
17904 fi
17905 sys_lib_dlsearch_path_spec='/usr/lib'
17906 ;;
17907
17908 uts4*)
17909 version_type=linux
17910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17911 soname_spec='${libname}${release}${shared_ext}$major'
17912 shlibpath_var=LD_LIBRARY_PATH
17913 ;;
17914
17915 *)
17916 dynamic_linker=no
17917 ;;
17918 esac
17919 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17920 echo "${ECHO_T}$dynamic_linker" >&6
17921 test "$dynamic_linker" = no && can_build_shared=no
17922
17923 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17924 if test "$GCC" = yes; then
17925 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17926 fi
17927
17928 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17929 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17930 hardcode_action_GCJ=
17931 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17932 test -n "$runpath_var_GCJ" || \
17933 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17934
17935 # We can hardcode non-existant directories.
17936 if test "$hardcode_direct_GCJ" != no &&
17937 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17938 # have to relink, otherwise we might link with an installed library
17939 # when we should be linking with a yet-to-be-installed one
17940 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17941 test "$hardcode_minus_L_GCJ" != no; then
17942 # Linking always hardcodes the temporary library directory.
17943 hardcode_action_GCJ=relink
17944 else
17945 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17946 hardcode_action_GCJ=immediate
17947 fi
17948 else
17949 # We cannot hardcode anything, or else we can only hardcode existing
17950 # directories.
17951 hardcode_action_GCJ=unsupported
17952 fi
17953 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17954 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17955
17956 if test "$hardcode_action_GCJ" = relink; then
17957 # Fast installation is not supported
17958 enable_fast_install=no
17959 elif test "$shlibpath_overrides_runpath" = yes ||
17960 test "$enable_shared" = no; then
17961 # Fast installation is not necessary
17962 enable_fast_install=needless
17963 fi
17964
17965
17966 # The else clause should only fire when bootstrapping the
17967 # libtool distribution, otherwise you forgot to ship ltmain.sh
17968 # with your package, and you will get complaints that there are
17969 # no rules to generate ltmain.sh.
17970 if test -f "$ltmain"; then
17971 # See if we are running on zsh, and set the options which allow our commands through
17972 # without removal of \ escapes.
17973 if test -n "${ZSH_VERSION+set}" ; then
17974 setopt NO_GLOB_SUBST
17975 fi
17976 # Now quote all the things that may contain metacharacters while being
17977 # careful not to overquote the AC_SUBSTed values. We take copies of the
17978 # variables and quote the copies for generation of the libtool script.
17979 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17980 SED SHELL STRIP \
17981 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17982 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17983 deplibs_check_method reload_flag reload_cmds need_locks \
17984 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17985 lt_cv_sys_global_symbol_to_c_name_address \
17986 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17987 old_postinstall_cmds old_postuninstall_cmds \
17988 compiler_GCJ \
17989 CC_GCJ \
17990 LD_GCJ \
17991 lt_prog_compiler_wl_GCJ \
17992 lt_prog_compiler_pic_GCJ \
17993 lt_prog_compiler_static_GCJ \
17994 lt_prog_compiler_no_builtin_flag_GCJ \
17995 export_dynamic_flag_spec_GCJ \
17996 thread_safe_flag_spec_GCJ \
17997 whole_archive_flag_spec_GCJ \
17998 enable_shared_with_static_runtimes_GCJ \
17999 old_archive_cmds_GCJ \
18000 old_archive_from_new_cmds_GCJ \
18001 predep_objects_GCJ \
18002 postdep_objects_GCJ \
18003 predeps_GCJ \
18004 postdeps_GCJ \
18005 compiler_lib_search_path_GCJ \
18006 archive_cmds_GCJ \
18007 archive_expsym_cmds_GCJ \
18008 postinstall_cmds_GCJ \
18009 postuninstall_cmds_GCJ \
18010 old_archive_from_expsyms_cmds_GCJ \
18011 allow_undefined_flag_GCJ \
18012 no_undefined_flag_GCJ \
18013 export_symbols_cmds_GCJ \
18014 hardcode_libdir_flag_spec_GCJ \
18015 hardcode_libdir_flag_spec_ld_GCJ \
18016 hardcode_libdir_separator_GCJ \
18017 hardcode_automatic_GCJ \
18018 module_cmds_GCJ \
18019 module_expsym_cmds_GCJ \
18020 lt_cv_prog_compiler_c_o_GCJ \
18021 exclude_expsyms_GCJ \
18022 include_expsyms_GCJ; do
18023
18024 case $var in
18025 old_archive_cmds_GCJ | \
18026 old_archive_from_new_cmds_GCJ | \
18027 archive_cmds_GCJ | \
18028 archive_expsym_cmds_GCJ | \
18029 module_cmds_GCJ | \
18030 module_expsym_cmds_GCJ | \
18031 old_archive_from_expsyms_cmds_GCJ | \
18032 export_symbols_cmds_GCJ | \
18033 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18034 postinstall_cmds | postuninstall_cmds | \
18035 old_postinstall_cmds | old_postuninstall_cmds | \
18036 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18037 # Double-quote double-evaled strings.
18038 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18039 ;;
18040 *)
18041 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18042 ;;
18043 esac
18044 done
18045
18046 case $lt_echo in
18047 *'\$0 --fallback-echo"')
18048 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18049 ;;
18050 esac
18051
18052 cfgfile="$ofile"
18053
18054 cat <<__EOF__ >> "$cfgfile"
18055 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18056
18057 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18058
18059 # Shell to use when invoking shell scripts.
18060 SHELL=$lt_SHELL
18061
18062 # Whether or not to build shared libraries.
18063 build_libtool_libs=$enable_shared
18064
18065 # Whether or not to build static libraries.
18066 build_old_libs=$enable_static
18067
18068 # Whether or not to add -lc for building shared libraries.
18069 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18070
18071 # Whether or not to disallow shared libs when runtime libs are static
18072 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18073
18074 # Whether or not to optimize for fast installation.
18075 fast_install=$enable_fast_install
18076
18077 # The host system.
18078 host_alias=$host_alias
18079 host=$host
18080 host_os=$host_os
18081
18082 # The build system.
18083 build_alias=$build_alias
18084 build=$build
18085 build_os=$build_os
18086
18087 # An echo program that does not interpret backslashes.
18088 echo=$lt_echo
18089
18090 # The archiver.
18091 AR=$lt_AR
18092 AR_FLAGS=$lt_AR_FLAGS
18093
18094 # A C compiler.
18095 LTCC=$lt_LTCC
18096
18097 # LTCC compiler flags.
18098 LTCFLAGS=$lt_LTCFLAGS
18099
18100 # A language-specific compiler.
18101 CC=$lt_compiler_GCJ
18102
18103 # Is the compiler the GNU C compiler?
18104 with_gcc=$GCC_GCJ
18105
18106 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
18107 gcc_ver=\`gcc -dumpversion\`
18108
18109 # An ERE matcher.
18110 EGREP=$lt_EGREP
18111
18112 # The linker used to build libraries.
18113 LD=$lt_LD_GCJ
18114
18115 # Whether we need hard or soft links.
18116 LN_S=$lt_LN_S
18117
18118 # A BSD-compatible nm program.
18119 NM=$lt_NM
18120
18121 # A symbol stripping program
18122 STRIP=$lt_STRIP
18123
18124 # Used to examine libraries when file_magic_cmd begins "file"
18125 MAGIC_CMD=$MAGIC_CMD
18126
18127 # Used on cygwin: DLL creation program.
18128 DLLTOOL="$DLLTOOL"
18129
18130 # Used on cygwin: object dumper.
18131 OBJDUMP="$OBJDUMP"
18132
18133 # Used on cygwin: assembler.
18134 AS="$AS"
18135
18136 # The name of the directory that contains temporary libtool files.
18137 objdir=$objdir
18138
18139 # How to create reloadable object files.
18140 reload_flag=$lt_reload_flag
18141 reload_cmds=$lt_reload_cmds
18142
18143 # How to pass a linker flag through the compiler.
18144 wl=$lt_lt_prog_compiler_wl_GCJ
18145
18146 # Object file suffix (normally "o").
18147 objext="$ac_objext"
18148
18149 # Old archive suffix (normally "a").
18150 libext="$libext"
18151
18152 # Shared library suffix (normally ".so").
18153 shrext_cmds='$shrext_cmds'
18154
18155 # Executable file suffix (normally "").
18156 exeext="$exeext"
18157
18158 # Additional compiler flags for building library objects.
18159 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18160 pic_mode=$pic_mode
18161
18162 # What is the maximum length of a command?
18163 max_cmd_len=$lt_cv_sys_max_cmd_len
18164
18165 # Does compiler simultaneously support -c and -o options?
18166 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18167
18168 # Must we lock files when doing compilation?
18169 need_locks=$lt_need_locks
18170
18171 # Do we need the lib prefix for modules?
18172 need_lib_prefix=$need_lib_prefix
18173
18174 # Do we need a version for libraries?
18175 need_version=$need_version
18176
18177 # Whether dlopen is supported.
18178 dlopen_support=$enable_dlopen
18179
18180 # Whether dlopen of programs is supported.
18181 dlopen_self=$enable_dlopen_self
18182
18183 # Whether dlopen of statically linked programs is supported.
18184 dlopen_self_static=$enable_dlopen_self_static
18185
18186 # Compiler flag to prevent dynamic linking.
18187 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18188
18189 # Compiler flag to turn off builtin functions.
18190 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18191
18192 # Compiler flag to allow reflexive dlopens.
18193 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18194
18195 # Compiler flag to generate shared objects directly from archives.
18196 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18197
18198 # Compiler flag to generate thread-safe objects.
18199 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18200
18201 # Library versioning type.
18202 version_type=$version_type
18203
18204 # Format of library name prefix.
18205 libname_spec=$lt_libname_spec
18206
18207 # List of archive names. First name is the real one, the rest are links.
18208 # The last name is the one that the linker finds with -lNAME.
18209 library_names_spec=$lt_library_names_spec
18210
18211 # The coded name of the library, if different from the real name.
18212 soname_spec=$lt_soname_spec
18213
18214 # Commands used to build and install an old-style archive.
18215 RANLIB=$lt_RANLIB
18216 old_archive_cmds=$lt_old_archive_cmds_GCJ
18217 old_postinstall_cmds=$lt_old_postinstall_cmds
18218 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18219
18220 # Create an old-style archive from a shared archive.
18221 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18222
18223 # Create a temporary old-style archive to link instead of a shared archive.
18224 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18225
18226 # Commands used to build and install a shared archive.
18227 archive_cmds=$lt_archive_cmds_GCJ
18228 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18229 postinstall_cmds=$lt_postinstall_cmds
18230 postuninstall_cmds=$lt_postuninstall_cmds
18231
18232 # Commands used to build a loadable module (assumed same as above if empty)
18233 module_cmds=$lt_module_cmds_GCJ
18234 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18235
18236 # Commands to strip libraries.
18237 old_striplib=$lt_old_striplib
18238 striplib=$lt_striplib
18239
18240 # Dependencies to place before the objects being linked to create a
18241 # shared library.
18242 predep_objects=\`echo $lt_predep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18243
18244 # Dependencies to place after the objects being linked to create a
18245 # shared library.
18246 postdep_objects=\`echo $lt_postdep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18247
18248 # Dependencies to place before the objects being linked to create a
18249 # shared library.
18250 predeps=$lt_predeps_GCJ
18251
18252 # Dependencies to place after the objects being linked to create a
18253 # shared library.
18254 postdeps=$lt_postdeps_GCJ
18255
18256 # The library search path used internally by the compiler when linking
18257 # a shared library.
18258 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18259
18260 # Method to check whether dependent libraries are shared objects.
18261 deplibs_check_method=$lt_deplibs_check_method
18262
18263 # Command to use when deplibs_check_method == file_magic.
18264 file_magic_cmd=$lt_file_magic_cmd
18265
18266 # Flag that allows shared libraries with undefined symbols to be built.
18267 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18268
18269 # Flag that forces no undefined symbols.
18270 no_undefined_flag=$lt_no_undefined_flag_GCJ
18271
18272 # Commands used to finish a libtool library installation in a directory.
18273 finish_cmds=$lt_finish_cmds
18274
18275 # Same as above, but a single script fragment to be evaled but not shown.
18276 finish_eval=$lt_finish_eval
18277
18278 # Take the output of nm and produce a listing of raw symbols and C names.
18279 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18280
18281 # Transform the output of nm in a proper C declaration
18282 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18283
18284 # Transform the output of nm in a C name address pair
18285 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18286
18287 # This is the shared library runtime path variable.
18288 runpath_var=$runpath_var
18289
18290 # This is the shared library path variable.
18291 shlibpath_var=$shlibpath_var
18292
18293 # Is shlibpath searched before the hard-coded library search path?
18294 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18295
18296 # How to hardcode a shared library path into an executable.
18297 hardcode_action=$hardcode_action_GCJ
18298
18299 # Whether we should hardcode library paths into libraries.
18300 hardcode_into_libs=$hardcode_into_libs
18301
18302 # Flag to hardcode \$libdir into a binary during linking.
18303 # This must work even if \$libdir does not exist.
18304 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18305
18306 # If ld is used when linking, flag to hardcode \$libdir into
18307 # a binary during linking. This must work even if \$libdir does
18308 # not exist.
18309 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18310
18311 # Whether we need a single -rpath flag with a separated argument.
18312 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18313
18314 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18315 # resulting binary.
18316 hardcode_direct=$hardcode_direct_GCJ
18317
18318 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18319 # resulting binary.
18320 hardcode_minus_L=$hardcode_minus_L_GCJ
18321
18322 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18323 # the resulting binary.
18324 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18325
18326 # Set to yes if building a shared library automatically hardcodes DIR into the library
18327 # and all subsequent libraries and executables linked against it.
18328 hardcode_automatic=$hardcode_automatic_GCJ
18329
18330 # Variables whose values should be saved in libtool wrapper scripts and
18331 # restored at relink time.
18332 variables_saved_for_relink="$variables_saved_for_relink"
18333
18334 # Whether libtool must link a program against all its dependency libraries.
18335 link_all_deplibs=$link_all_deplibs_GCJ
18336
18337 # Compile-time system search path for libraries
18338 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18339
18340 # Run-time system search path for libraries
18341 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18342
18343 # Fix the shell variable \$srcfile for the compiler.
18344 fix_srcfile_path="$fix_srcfile_path_GCJ"
18345
18346 # Set to yes if exported symbols are required.
18347 always_export_symbols=$always_export_symbols_GCJ
18348
18349 # The commands to list exported symbols.
18350 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18351
18352 # The commands to extract the exported symbol list from a shared archive.
18353 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18354
18355 # Symbols that should not be listed in the preloaded symbols.
18356 exclude_expsyms=$lt_exclude_expsyms_GCJ
18357
18358 # Symbols that must always be exported.
18359 include_expsyms=$lt_include_expsyms_GCJ
18360
18361 # ### END LIBTOOL TAG CONFIG: $tagname
18362
18363 __EOF__
18364
18365
18366 else
18367 # If there is no Makefile yet, we rely on a make rule to execute
18368 # `config.status --recheck' to rerun these tests and create the
18369 # libtool script then.
18370 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18371 if test -f "$ltmain_in"; then
18372 test -f Makefile && make "$ltmain"
18373 fi
18374 fi
18375
18376
18377 ac_ext=c
18378 ac_cpp='$CPP $CPPFLAGS'
18379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18382
18383 CC="$lt_save_CC"
18384
18385 else
18386 tagname=""
18387 fi
18388 ;;
18389
18390 RC)
18391
18392
18393
18394 # Source file extension for RC test sources.
18395 ac_ext=rc
18396
18397 # Object file extension for compiled RC test sources.
18398 objext=o
18399 objext_RC=$objext
18400
18401 # Code to be used in simple compile tests
18402 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18403
18404 # Code to be used in simple link tests
18405 lt_simple_link_test_code="$lt_simple_compile_test_code"
18406
18407 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18408
18409 # If no C compiler was specified, use CC.
18410 LTCC=${LTCC-"$CC"}
18411
18412 # If no C compiler flags were specified, use CFLAGS.
18413 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18414
18415 # Allow CC to be a program name with arguments.
18416 compiler=$CC
18417
18418
18419 # save warnings/boilerplate of simple test code
18420 ac_outfile=conftest.$ac_objext
18421 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18422 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18423 _lt_compiler_boilerplate=`cat conftest.err`
18424 $rm conftest*
18425
18426 ac_outfile=conftest.$ac_objext
18427 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18428 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18429 _lt_linker_boilerplate=`cat conftest.err`
18430 $rm conftest*
18431
18432
18433 # Allow CC to be a program name with arguments.
18434 lt_save_CC="$CC"
18435 CC=${RC-"windres"}
18436 compiler=$CC
18437 compiler_RC=$CC
18438 for cc_temp in $compiler""; do
18439 case $cc_temp in
18440 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18441 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18442 \-*) ;;
18443 *) break;;
18444 esac
18445 done
18446 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18447
18448 lt_cv_prog_compiler_c_o_RC=yes
18449
18450 # The else clause should only fire when bootstrapping the
18451 # libtool distribution, otherwise you forgot to ship ltmain.sh
18452 # with your package, and you will get complaints that there are
18453 # no rules to generate ltmain.sh.
18454 if test -f "$ltmain"; then
18455 # See if we are running on zsh, and set the options which allow our commands through
18456 # without removal of \ escapes.
18457 if test -n "${ZSH_VERSION+set}" ; then
18458 setopt NO_GLOB_SUBST
18459 fi
18460 # Now quote all the things that may contain metacharacters while being
18461 # careful not to overquote the AC_SUBSTed values. We take copies of the
18462 # variables and quote the copies for generation of the libtool script.
18463 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18464 SED SHELL STRIP \
18465 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18466 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18467 deplibs_check_method reload_flag reload_cmds need_locks \
18468 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18469 lt_cv_sys_global_symbol_to_c_name_address \
18470 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18471 old_postinstall_cmds old_postuninstall_cmds \
18472 compiler_RC \
18473 CC_RC \
18474 LD_RC \
18475 lt_prog_compiler_wl_RC \
18476 lt_prog_compiler_pic_RC \
18477 lt_prog_compiler_static_RC \
18478 lt_prog_compiler_no_builtin_flag_RC \
18479 export_dynamic_flag_spec_RC \
18480 thread_safe_flag_spec_RC \
18481 whole_archive_flag_spec_RC \
18482 enable_shared_with_static_runtimes_RC \
18483 old_archive_cmds_RC \
18484 old_archive_from_new_cmds_RC \
18485 predep_objects_RC \
18486 postdep_objects_RC \
18487 predeps_RC \
18488 postdeps_RC \
18489 compiler_lib_search_path_RC \
18490 archive_cmds_RC \
18491 archive_expsym_cmds_RC \
18492 postinstall_cmds_RC \
18493 postuninstall_cmds_RC \
18494 old_archive_from_expsyms_cmds_RC \
18495 allow_undefined_flag_RC \
18496 no_undefined_flag_RC \
18497 export_symbols_cmds_RC \
18498 hardcode_libdir_flag_spec_RC \
18499 hardcode_libdir_flag_spec_ld_RC \
18500 hardcode_libdir_separator_RC \
18501 hardcode_automatic_RC \
18502 module_cmds_RC \
18503 module_expsym_cmds_RC \
18504 lt_cv_prog_compiler_c_o_RC \
18505 exclude_expsyms_RC \
18506 include_expsyms_RC; do
18507
18508 case $var in
18509 old_archive_cmds_RC | \
18510 old_archive_from_new_cmds_RC | \
18511 archive_cmds_RC | \
18512 archive_expsym_cmds_RC | \
18513 module_cmds_RC | \
18514 module_expsym_cmds_RC | \
18515 old_archive_from_expsyms_cmds_RC | \
18516 export_symbols_cmds_RC | \
18517 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18518 postinstall_cmds | postuninstall_cmds | \
18519 old_postinstall_cmds | old_postuninstall_cmds | \
18520 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18521 # Double-quote double-evaled strings.
18522 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18523 ;;
18524 *)
18525 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18526 ;;
18527 esac
18528 done
18529
18530 case $lt_echo in
18531 *'\$0 --fallback-echo"')
18532 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18533 ;;
18534 esac
18535
18536 cfgfile="$ofile"
18537
18538 cat <<__EOF__ >> "$cfgfile"
18539 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18540
18541 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18542
18543 # Shell to use when invoking shell scripts.
18544 SHELL=$lt_SHELL
18545
18546 # Whether or not to build shared libraries.
18547 build_libtool_libs=$enable_shared
18548
18549 # Whether or not to build static libraries.
18550 build_old_libs=$enable_static
18551
18552 # Whether or not to add -lc for building shared libraries.
18553 build_libtool_need_lc=$archive_cmds_need_lc_RC
18554
18555 # Whether or not to disallow shared libs when runtime libs are static
18556 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18557
18558 # Whether or not to optimize for fast installation.
18559 fast_install=$enable_fast_install
18560
18561 # The host system.
18562 host_alias=$host_alias
18563 host=$host
18564 host_os=$host_os
18565
18566 # The build system.
18567 build_alias=$build_alias
18568 build=$build
18569 build_os=$build_os
18570
18571 # An echo program that does not interpret backslashes.
18572 echo=$lt_echo
18573
18574 # The archiver.
18575 AR=$lt_AR
18576 AR_FLAGS=$lt_AR_FLAGS
18577
18578 # A C compiler.
18579 LTCC=$lt_LTCC
18580
18581 # LTCC compiler flags.
18582 LTCFLAGS=$lt_LTCFLAGS
18583
18584 # A language-specific compiler.
18585 CC=$lt_compiler_RC
18586
18587 # Is the compiler the GNU C compiler?
18588 with_gcc=$GCC_RC
18589
18590 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
18591 gcc_ver=\`gcc -dumpversion\`
18592
18593 # An ERE matcher.
18594 EGREP=$lt_EGREP
18595
18596 # The linker used to build libraries.
18597 LD=$lt_LD_RC
18598
18599 # Whether we need hard or soft links.
18600 LN_S=$lt_LN_S
18601
18602 # A BSD-compatible nm program.
18603 NM=$lt_NM
18604
18605 # A symbol stripping program
18606 STRIP=$lt_STRIP
18607
18608 # Used to examine libraries when file_magic_cmd begins "file"
18609 MAGIC_CMD=$MAGIC_CMD
18610
18611 # Used on cygwin: DLL creation program.
18612 DLLTOOL="$DLLTOOL"
18613
18614 # Used on cygwin: object dumper.
18615 OBJDUMP="$OBJDUMP"
18616
18617 # Used on cygwin: assembler.
18618 AS="$AS"
18619
18620 # The name of the directory that contains temporary libtool files.
18621 objdir=$objdir
18622
18623 # How to create reloadable object files.
18624 reload_flag=$lt_reload_flag
18625 reload_cmds=$lt_reload_cmds
18626
18627 # How to pass a linker flag through the compiler.
18628 wl=$lt_lt_prog_compiler_wl_RC
18629
18630 # Object file suffix (normally "o").
18631 objext="$ac_objext"
18632
18633 # Old archive suffix (normally "a").
18634 libext="$libext"
18635
18636 # Shared library suffix (normally ".so").
18637 shrext_cmds='$shrext_cmds'
18638
18639 # Executable file suffix (normally "").
18640 exeext="$exeext"
18641
18642 # Additional compiler flags for building library objects.
18643 pic_flag=$lt_lt_prog_compiler_pic_RC
18644 pic_mode=$pic_mode
18645
18646 # What is the maximum length of a command?
18647 max_cmd_len=$lt_cv_sys_max_cmd_len
18648
18649 # Does compiler simultaneously support -c and -o options?
18650 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18651
18652 # Must we lock files when doing compilation?
18653 need_locks=$lt_need_locks
18654
18655 # Do we need the lib prefix for modules?
18656 need_lib_prefix=$need_lib_prefix
18657
18658 # Do we need a version for libraries?
18659 need_version=$need_version
18660
18661 # Whether dlopen is supported.
18662 dlopen_support=$enable_dlopen
18663
18664 # Whether dlopen of programs is supported.
18665 dlopen_self=$enable_dlopen_self
18666
18667 # Whether dlopen of statically linked programs is supported.
18668 dlopen_self_static=$enable_dlopen_self_static
18669
18670 # Compiler flag to prevent dynamic linking.
18671 link_static_flag=$lt_lt_prog_compiler_static_RC
18672
18673 # Compiler flag to turn off builtin functions.
18674 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18675
18676 # Compiler flag to allow reflexive dlopens.
18677 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18678
18679 # Compiler flag to generate shared objects directly from archives.
18680 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18681
18682 # Compiler flag to generate thread-safe objects.
18683 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18684
18685 # Library versioning type.
18686 version_type=$version_type
18687
18688 # Format of library name prefix.
18689 libname_spec=$lt_libname_spec
18690
18691 # List of archive names. First name is the real one, the rest are links.
18692 # The last name is the one that the linker finds with -lNAME.
18693 library_names_spec=$lt_library_names_spec
18694
18695 # The coded name of the library, if different from the real name.
18696 soname_spec=$lt_soname_spec
18697
18698 # Commands used to build and install an old-style archive.
18699 RANLIB=$lt_RANLIB
18700 old_archive_cmds=$lt_old_archive_cmds_RC
18701 old_postinstall_cmds=$lt_old_postinstall_cmds
18702 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18703
18704 # Create an old-style archive from a shared archive.
18705 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18706
18707 # Create a temporary old-style archive to link instead of a shared archive.
18708 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18709
18710 # Commands used to build and install a shared archive.
18711 archive_cmds=$lt_archive_cmds_RC
18712 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18713 postinstall_cmds=$lt_postinstall_cmds
18714 postuninstall_cmds=$lt_postuninstall_cmds
18715
18716 # Commands used to build a loadable module (assumed same as above if empty)
18717 module_cmds=$lt_module_cmds_RC
18718 module_expsym_cmds=$lt_module_expsym_cmds_RC
18719
18720 # Commands to strip libraries.
18721 old_striplib=$lt_old_striplib
18722 striplib=$lt_striplib
18723
18724 # Dependencies to place before the objects being linked to create a
18725 # shared library.
18726 predep_objects=\`echo $lt_predep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18727
18728 # Dependencies to place after the objects being linked to create a
18729 # shared library.
18730 postdep_objects=\`echo $lt_postdep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18731
18732 # Dependencies to place before the objects being linked to create a
18733 # shared library.
18734 predeps=$lt_predeps_RC
18735
18736 # Dependencies to place after the objects being linked to create a
18737 # shared library.
18738 postdeps=$lt_postdeps_RC
18739
18740 # The library search path used internally by the compiler when linking
18741 # a shared library.
18742 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18743
18744 # Method to check whether dependent libraries are shared objects.
18745 deplibs_check_method=$lt_deplibs_check_method
18746
18747 # Command to use when deplibs_check_method == file_magic.
18748 file_magic_cmd=$lt_file_magic_cmd
18749
18750 # Flag that allows shared libraries with undefined symbols to be built.
18751 allow_undefined_flag=$lt_allow_undefined_flag_RC
18752
18753 # Flag that forces no undefined symbols.
18754 no_undefined_flag=$lt_no_undefined_flag_RC
18755
18756 # Commands used to finish a libtool library installation in a directory.
18757 finish_cmds=$lt_finish_cmds
18758
18759 # Same as above, but a single script fragment to be evaled but not shown.
18760 finish_eval=$lt_finish_eval
18761
18762 # Take the output of nm and produce a listing of raw symbols and C names.
18763 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18764
18765 # Transform the output of nm in a proper C declaration
18766 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18767
18768 # Transform the output of nm in a C name address pair
18769 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18770
18771 # This is the shared library runtime path variable.
18772 runpath_var=$runpath_var
18773
18774 # This is the shared library path variable.
18775 shlibpath_var=$shlibpath_var
18776
18777 # Is shlibpath searched before the hard-coded library search path?
18778 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18779
18780 # How to hardcode a shared library path into an executable.
18781 hardcode_action=$hardcode_action_RC
18782
18783 # Whether we should hardcode library paths into libraries.
18784 hardcode_into_libs=$hardcode_into_libs
18785
18786 # Flag to hardcode \$libdir into a binary during linking.
18787 # This must work even if \$libdir does not exist.
18788 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18789
18790 # If ld is used when linking, flag to hardcode \$libdir into
18791 # a binary during linking. This must work even if \$libdir does
18792 # not exist.
18793 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18794
18795 # Whether we need a single -rpath flag with a separated argument.
18796 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18797
18798 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18799 # resulting binary.
18800 hardcode_direct=$hardcode_direct_RC
18801
18802 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18803 # resulting binary.
18804 hardcode_minus_L=$hardcode_minus_L_RC
18805
18806 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18807 # the resulting binary.
18808 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18809
18810 # Set to yes if building a shared library automatically hardcodes DIR into the library
18811 # and all subsequent libraries and executables linked against it.
18812 hardcode_automatic=$hardcode_automatic_RC
18813
18814 # Variables whose values should be saved in libtool wrapper scripts and
18815 # restored at relink time.
18816 variables_saved_for_relink="$variables_saved_for_relink"
18817
18818 # Whether libtool must link a program against all its dependency libraries.
18819 link_all_deplibs=$link_all_deplibs_RC
18820
18821 # Compile-time system search path for libraries
18822 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18823
18824 # Run-time system search path for libraries
18825 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18826
18827 # Fix the shell variable \$srcfile for the compiler.
18828 fix_srcfile_path="$fix_srcfile_path_RC"
18829
18830 # Set to yes if exported symbols are required.
18831 always_export_symbols=$always_export_symbols_RC
18832
18833 # The commands to list exported symbols.
18834 export_symbols_cmds=$lt_export_symbols_cmds_RC
18835
18836 # The commands to extract the exported symbol list from a shared archive.
18837 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18838
18839 # Symbols that should not be listed in the preloaded symbols.
18840 exclude_expsyms=$lt_exclude_expsyms_RC
18841
18842 # Symbols that must always be exported.
18843 include_expsyms=$lt_include_expsyms_RC
18844
18845 # ### END LIBTOOL TAG CONFIG: $tagname
18846
18847 __EOF__
18848
18849
18850 else
18851 # If there is no Makefile yet, we rely on a make rule to execute
18852 # `config.status --recheck' to rerun these tests and create the
18853 # libtool script then.
18854 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18855 if test -f "$ltmain_in"; then
18856 test -f Makefile && make "$ltmain"
18857 fi
18858 fi
18859
18860
18861 ac_ext=c
18862 ac_cpp='$CPP $CPPFLAGS'
18863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18866
18867 CC="$lt_save_CC"
18868
18869 ;;
18870
18871 *)
18872 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18873 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18874 { (exit 1); exit 1; }; }
18875 ;;
18876 esac
18877
18878 # Append the new tag name to the list of available tags.
18879 if test -n "$tagname" ; then
18880 available_tags="$available_tags $tagname"
18881 fi
18882 fi
18883 done
18884 IFS="$lt_save_ifs"
18885
18886 # Now substitute the updated list of available tags.
18887 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18888 mv "${ofile}T" "$ofile"
18889 chmod +x "$ofile"
18890 else
18891 rm -f "${ofile}T"
18892 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18893 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18894 { (exit 1); exit 1; }; }
18895 fi
18896 fi
18897
18898
18899
18900 # This can be used to rebuild libtool when needed
18901 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18902
18903 # Always use our own libtool.
18904 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18905
18906 # Prevent multiple expansion
18907
18908
18909
18910
18911
18912
18913
18914
18915
18916
18917
18918
18919
18920
18921
18922
18923
18924
18925
18926
18927
18928
18929 echo "$as_me:$LINENO: checking spl license" >&5
18930 echo $ECHO_N "checking spl license... $ECHO_C" >&6
18931 LICENSE=GPL
18932 echo "$as_me:$LINENO: result: $LICENSE" >&5
18933 echo "${ECHO_T}$LICENSE" >&6
18934 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DHAVE_GPL_ONLY_SYMBOLS"
18935
18936
18937
18938 SPL_CONFIG=all
18939
18940 # Check whether --with-config or --without-config was given.
18941 if test "${with_config+set}" = set; then
18942 withval="$with_config"
18943 SPL_CONFIG="$withval"
18944 fi;
18945
18946 echo "$as_me:$LINENO: checking spl config" >&5
18947 echo $ECHO_N "checking spl config... $ECHO_C" >&6
18948 echo "$as_me:$LINENO: result: $SPL_CONFIG" >&5
18949 echo "${ECHO_T}$SPL_CONFIG" >&6;
18950
18951
18952 case "$SPL_CONFIG" in
18953 kernel)
18954
18955
18956 # Check whether --with-linux or --without-linux was given.
18957 if test "${with_linux+set}" = set; then
18958 withval="$with_linux"
18959 kernelsrc="$withval"
18960 fi;
18961
18962
18963 # Check whether --with-linux-obj or --without-linux-obj was given.
18964 if test "${with_linux_obj+set}" = set; then
18965 withval="$with_linux_obj"
18966 kernelbuild="$withval"
18967 fi;
18968
18969 echo "$as_me:$LINENO: checking kernel source directory" >&5
18970 echo $ECHO_N "checking kernel source directory... $ECHO_C" >&6
18971 if test -z "$kernelsrc"; then
18972 sourcelink=`ls -1d /usr/src/kernels/* /usr/src/linux-* \
18973 2>/dev/null | grep -v obj | tail -1`
18974
18975 if test -e ${sourcelink}; then
18976 kernelsrc=`readlink -f ${sourcelink}`
18977 else
18978 echo "$as_me:$LINENO: result: Not found" >&5
18979 echo "${ECHO_T}Not found" >&6
18980 { { echo "$as_me:$LINENO: error:
18981 *** Please specify the location of the kernel source
18982 *** with the '--with-linux=PATH' option" >&5
18983 echo "$as_me: error:
18984 *** Please specify the location of the kernel source
18985 *** with the '--with-linux=PATH' option" >&2;}
18986 { (exit 1); exit 1; }; }
18987 fi
18988 else
18989 if test "$kernelsrc" = "NONE"; then
18990 kernsrcver=NONE
18991 fi
18992 fi
18993
18994 echo "$as_me:$LINENO: result: $kernelsrc" >&5
18995 echo "${ECHO_T}$kernelsrc" >&6
18996 echo "$as_me:$LINENO: checking kernel build directory" >&5
18997 echo $ECHO_N "checking kernel build directory... $ECHO_C" >&6
18998 if test -z "$kernelbuild"; then
18999 if test -d ${kernelsrc}-obj/`arch`/`arch`; then
19000 kernelbuild=${kernelsrc}-obj/`arch`/`arch`
19001 elif test -d ${kernelsrc}-obj/`arch`/default; then
19002 kernelbuild=${kernelsrc}-obj/`arch`/default
19003 elif test -d `dirname ${kernelsrc}`/build-`arch`; then
19004 kernelbuild=`dirname ${kernelsrc}`/build-`arch`
19005 else
19006 kernelbuild=${kernelsrc}
19007 fi
19008 fi
19009 echo "$as_me:$LINENO: result: $kernelbuild" >&5
19010 echo "${ECHO_T}$kernelbuild" >&6
19011
19012 echo "$as_me:$LINENO: checking kernel source version" >&5
19013 echo $ECHO_N "checking kernel source version... $ECHO_C" >&6
19014 if test -r $kernelbuild/include/linux/version.h &&
19015 fgrep -q UTS_RELEASE $kernelbuild/include/linux/version.h; then
19016
19017 kernsrcver=`(echo "#include <linux/version.h>";
19018 echo "kernsrcver=UTS_RELEASE") |
19019 cpp -I $kernelbuild/include |
19020 grep "^kernsrcver=" | cut -d \" -f 2`
19021
19022 elif test -r $kernelbuild/include/linux/utsrelease.h &&
19023 fgrep -q UTS_RELEASE $kernelbuild/include/linux/utsrelease.h; then
19024
19025 kernsrcver=`(echo "#include <linux/utsrelease.h>";
19026 echo "kernsrcver=UTS_RELEASE") |
19027 cpp -I $kernelbuild/include |
19028 grep "^kernsrcver=" | cut -d \" -f 2`
19029 fi
19030
19031 if test -z "$kernsrcver"; then
19032 echo "$as_me:$LINENO: result: Not found" >&5
19033 echo "${ECHO_T}Not found" >&6
19034 { { echo "$as_me:$LINENO: error:
19035 *** Cannot determine the version of the linux kernel source.
19036 *** Please prepare the kernel before running this script" >&5
19037 echo "$as_me: error:
19038 *** Cannot determine the version of the linux kernel source.
19039 *** Please prepare the kernel before running this script" >&2;}
19040 { (exit 1); exit 1; }; }
19041 fi
19042
19043 echo "$as_me:$LINENO: result: $kernsrcver" >&5
19044 echo "${ECHO_T}$kernsrcver" >&6
19045
19046 LINUX=${kernelsrc}
19047 LINUX_OBJ=${kernelbuild}
19048 LINUX_VERSION=${kernsrcver}
19049
19050
19051
19052
19053
19054
19055 modpost=$LINUX/scripts/Makefile.modpost
19056 echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
19057 echo $ECHO_N "checking kernel file name for module symbols... $ECHO_C" >&6
19058 if test -f "$modpost"; then
19059 if grep -q Modules.symvers $modpost; then
19060 LINUX_SYMBOLS=Modules.symvers
19061 else
19062 LINUX_SYMBOLS=Module.symvers
19063 fi
19064 else
19065 LINUX_SYMBOLS=NONE
19066 fi
19067 echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
19068 echo "${ECHO_T}$LINUX_SYMBOLS" >&6
19069
19070
19071
19072
19073 KERNELMAKE_PARAMS="V=1"
19074
19075 abs_srcdir=`readlink -f ${srcdir}`
19076 KERNELCPPFLAGS="$KERNELCPPFLAGS -Wstrict-prototypes -Werror"
19077 KERNELCPPFLAGS="$KERNELCPPFLAGS -I${abs_srcdir} -I${abs_srcdir}/include"
19078
19079 if test "${LINUX_OBJ}" != "${LINUX}"; then
19080 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
19081 fi
19082
19083
19084
19085
19086
19087 echo "$as_me:$LINENO: checking whether debugging is enabled" >&5
19088 echo $ECHO_N "checking whether debugging is enabled... $ECHO_C" >&6
19089 # Check whether --enable-debug or --disable-debug was given.
19090 if test "${enable_debug+set}" = set; then
19091 enableval="$enable_debug"
19092 case "$enableval" in
19093 yes) spl_ac_debug=yes ;;
19094 no) spl_ac_debug=no ;;
19095 *) echo "$as_me:$LINENO: result: Error!" >&5
19096 echo "${ECHO_T}Error!" >&6
19097 { { echo "$as_me:$LINENO: error: Bad value \"$enableval\" for --enable-debug" >&5
19098 echo "$as_me: error: Bad value \"$enableval\" for --enable-debug" >&2;}
19099 { (exit 1); exit 1; }; } ;;
19100 esac
19101
19102 fi;
19103 if test "$spl_ac_debug" = yes; then
19104 echo "$as_me:$LINENO: result: yes" >&5
19105 echo "${ECHO_T}yes" >&6
19106 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG"
19107 else
19108 echo "$as_me:$LINENO: result: no" >&5
19109 echo "${ECHO_T}no" >&6
19110 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG"
19111 fi
19112
19113
19114 echo "$as_me:$LINENO: checking whether kmem debugging is enabled" >&5
19115 echo $ECHO_N "checking whether kmem debugging is enabled... $ECHO_C" >&6
19116 # Check whether --enable-debug-kmem or --disable-debug-kmem was given.
19117 if test "${enable_debug_kmem+set}" = set; then
19118 enableval="$enable_debug_kmem"
19119 case "$enableval" in
19120 yes) spl_ac_debug_kmem=yes ;;
19121 no) spl_ac_debug_kmem=no ;;
19122 *) echo "$as_me:$LINENO: result: Error!" >&5
19123 echo "${ECHO_T}Error!" >&6
19124 { { echo "$as_me:$LINENO: error: Bad value \"$enableval\" for --enable-debug-kmem" >&5
19125 echo "$as_me: error: Bad value \"$enableval\" for --enable-debug-kmem" >&2;}
19126 { (exit 1); exit 1; }; } ;;
19127 esac
19128
19129 fi;
19130 if test "$spl_ac_debug_kmem" = yes; then
19131 echo "$as_me:$LINENO: result: yes" >&5
19132 echo "${ECHO_T}yes" >&6
19133
19134 cat >>confdefs.h <<\_ACEOF
19135 #define DEBUG_KMEM 1
19136 _ACEOF
19137
19138 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM"
19139 else
19140 echo "$as_me:$LINENO: result: no" >&5
19141 echo "${ECHO_T}no" >&6
19142 fi
19143
19144
19145 echo "$as_me:$LINENO: checking whether kstat debugging is enabled" >&5
19146 echo $ECHO_N "checking whether kstat debugging is enabled... $ECHO_C" >&6
19147 # Check whether --enable-debug-kstat or --disable-debug-kstat was given.
19148 if test "${enable_debug_kstat+set}" = set; then
19149 enableval="$enable_debug_kstat"
19150 case "$enableval" in
19151 yes) spl_ac_debug_kstat=yes ;;
19152 no) spl_ac_debug_kstat=no ;;
19153 *) echo "$as_me:$LINENO: result: Error!" >&5
19154 echo "${ECHO_T}Error!" >&6
19155 { { echo "$as_me:$LINENO: error: Bad value \"$enableval\" for --enable-debug-kstat" >&5
19156 echo "$as_me: error: Bad value \"$enableval\" for --enable-debug-kstat" >&2;}
19157 { (exit 1); exit 1; }; } ;;
19158 esac
19159
19160 fi;
19161 if test "$spl_ac_debug_kstat" = yes; then
19162 echo "$as_me:$LINENO: result: yes" >&5
19163 echo "${ECHO_T}yes" >&6
19164
19165 cat >>confdefs.h <<\_ACEOF
19166 #define DEBUG_KSTAT 1
19167 _ACEOF
19168
19169 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KSTAT"
19170 else
19171 echo "$as_me:$LINENO: result: no" >&5
19172 echo "${ECHO_T}no" >&6
19173 fi
19174
19175
19176 echo "$as_me:$LINENO: checking whether callb debugging is enabled" >&5
19177 echo $ECHO_N "checking whether callb debugging is enabled... $ECHO_C" >&6
19178 # Check whether --enable-debug-callb or --disable-debug-callb was given.
19179 if test "${enable_debug_callb+set}" = set; then
19180 enableval="$enable_debug_callb"
19181 case "$enableval" in
19182 yes) spl_ac_debug_callb=yes ;;
19183 no) spl_ac_debug_callb=no ;;
19184 *) echo "$as_me:$LINENO: result: Error!" >&5
19185 echo "${ECHO_T}Error!" >&6
19186 { { echo "$as_me:$LINENO: error: Bad value \"$enableval\" for --enable-debug-callb" >&5
19187 echo "$as_me: error: Bad value \"$enableval\" for --enable-debug-callb" >&2;}
19188 { (exit 1); exit 1; }; } ;;
19189 esac
19190
19191 fi;
19192 if test "$spl_ac_debug_callb" = yes; then
19193 echo "$as_me:$LINENO: result: yes" >&5
19194 echo "${ECHO_T}yes" >&6
19195
19196 cat >>confdefs.h <<\_ACEOF
19197 #define DEBUG_CALLB 1
19198 _ACEOF
19199
19200 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_CALLB"
19201 else
19202 echo "$as_me:$LINENO: result: no" >&5
19203 echo "${ECHO_T}no" >&6
19204 fi
19205
19206 echo "$as_me:$LINENO: checking whether kernel defines uintptr_t" >&5
19207 echo $ECHO_N "checking whether kernel defines uintptr_t... $ECHO_C" >&6
19208
19209
19210 cat >conftest.c <<_ACEOF
19211 /* confdefs.h. */
19212 _ACEOF
19213 cat confdefs.h >>conftest.$ac_ext
19214 cat >>conftest.$ac_ext <<_ACEOF
19215 /* end confdefs.h. */
19216
19217
19218 #include <linux/types.h>
19219
19220 int
19221 main (void)
19222 {
19223
19224 uintptr_t *ptr;
19225
19226 ;
19227 return 0;
19228 }
19229
19230 _ACEOF
19231
19232
19233 rm -Rf build && mkdir -p build
19234 echo "obj-m := conftest.o" >build/Makefile
19235 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'
19236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19237 (eval $ac_try) 2>&5
19238 ac_status=$?
19239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19240 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19242 (eval $ac_try) 2>&5
19243 ac_status=$?
19244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19245 (exit $ac_status); }; }; then
19246
19247 echo "$as_me:$LINENO: result: yes" >&5
19248 echo "${ECHO_T}yes" >&6
19249
19250 cat >>confdefs.h <<\_ACEOF
19251 #define HAVE_UINTPTR_T 1
19252 _ACEOF
19253
19254
19255 else
19256 echo "$as_me: failed program was:" >&5
19257 sed 's/^/| /' conftest.$ac_ext >&5
19258
19259 echo "$as_me:$LINENO: result: no" >&5
19260 echo "${ECHO_T}no" >&6
19261
19262
19263
19264 fi
19265
19266 rm -Rf build
19267
19268
19269
19270 echo "$as_me:$LINENO: checking whether kernel defines atomic64_t" >&5
19271 echo $ECHO_N "checking whether kernel defines atomic64_t... $ECHO_C" >&6
19272
19273
19274 cat >conftest.c <<_ACEOF
19275 /* confdefs.h. */
19276 _ACEOF
19277 cat confdefs.h >>conftest.$ac_ext
19278 cat >>conftest.$ac_ext <<_ACEOF
19279 /* end confdefs.h. */
19280
19281
19282 #include <asm/atomic.h>
19283
19284 int
19285 main (void)
19286 {
19287
19288 atomic64_t *ptr;
19289
19290 ;
19291 return 0;
19292 }
19293
19294 _ACEOF
19295
19296
19297 rm -Rf build && mkdir -p build
19298 echo "obj-m := conftest.o" >build/Makefile
19299 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'
19300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19301 (eval $ac_try) 2>&5
19302 ac_status=$?
19303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19304 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19306 (eval $ac_try) 2>&5
19307 ac_status=$?
19308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19309 (exit $ac_status); }; }; then
19310
19311 echo "$as_me:$LINENO: result: yes" >&5
19312 echo "${ECHO_T}yes" >&6
19313
19314 cat >>confdefs.h <<\_ACEOF
19315 #define HAVE_ATOMIC64_T 1
19316 _ACEOF
19317
19318
19319 else
19320 echo "$as_me: failed program was:" >&5
19321 sed 's/^/| /' conftest.$ac_ext >&5
19322
19323 echo "$as_me:$LINENO: result: no" >&5
19324 echo "${ECHO_T}no" >&6
19325
19326
19327
19328 fi
19329
19330 rm -Rf build
19331
19332
19333
19334 echo "$as_me:$LINENO: checking whether INIT_WORK wants 3 args" >&5
19335 echo $ECHO_N "checking whether INIT_WORK wants 3 args... $ECHO_C" >&6
19336
19337
19338 cat >conftest.c <<_ACEOF
19339 /* confdefs.h. */
19340 _ACEOF
19341 cat confdefs.h >>conftest.$ac_ext
19342 cat >>conftest.$ac_ext <<_ACEOF
19343 /* end confdefs.h. */
19344
19345
19346 #include <linux/workqueue.h>
19347
19348 int
19349 main (void)
19350 {
19351
19352 struct work_struct work;
19353 INIT_WORK(&work, NULL, NULL);
19354
19355 ;
19356 return 0;
19357 }
19358
19359 _ACEOF
19360
19361
19362 rm -Rf build && mkdir -p build
19363 echo "obj-m := conftest.o" >build/Makefile
19364 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'
19365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19366 (eval $ac_try) 2>&5
19367 ac_status=$?
19368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19369 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19371 (eval $ac_try) 2>&5
19372 ac_status=$?
19373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19374 (exit $ac_status); }; }; then
19375
19376 echo "$as_me:$LINENO: result: yes" >&5
19377 echo "${ECHO_T}yes" >&6
19378
19379 cat >>confdefs.h <<\_ACEOF
19380 #define HAVE_3ARGS_INIT_WORK 1
19381 _ACEOF
19382
19383
19384 else
19385 echo "$as_me: failed program was:" >&5
19386 sed 's/^/| /' conftest.$ac_ext >&5
19387
19388 echo "$as_me:$LINENO: result: no" >&5
19389 echo "${ECHO_T}no" >&6
19390
19391
19392
19393 fi
19394
19395 rm -Rf build
19396
19397
19398
19399 echo "$as_me:$LINENO: checking whether register_sysctl_table() wants 2 args" >&5
19400 echo $ECHO_N "checking whether register_sysctl_table() wants 2 args... $ECHO_C" >&6
19401
19402
19403 cat >conftest.c <<_ACEOF
19404 /* confdefs.h. */
19405 _ACEOF
19406 cat confdefs.h >>conftest.$ac_ext
19407 cat >>conftest.$ac_ext <<_ACEOF
19408 /* end confdefs.h. */
19409
19410
19411 #include <linux/sysctl.h>
19412
19413 int
19414 main (void)
19415 {
19416
19417 return register_sysctl_table(NULL,0);
19418
19419 ;
19420 return 0;
19421 }
19422
19423 _ACEOF
19424
19425
19426 rm -Rf build && mkdir -p build
19427 echo "obj-m := conftest.o" >build/Makefile
19428 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'
19429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19430 (eval $ac_try) 2>&5
19431 ac_status=$?
19432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19433 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19435 (eval $ac_try) 2>&5
19436 ac_status=$?
19437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19438 (exit $ac_status); }; }; then
19439
19440 echo "$as_me:$LINENO: result: yes" >&5
19441 echo "${ECHO_T}yes" >&6
19442
19443 cat >>confdefs.h <<\_ACEOF
19444 #define HAVE_2ARGS_REGISTER_SYSCTL 1
19445 _ACEOF
19446
19447
19448 else
19449 echo "$as_me: failed program was:" >&5
19450 sed 's/^/| /' conftest.$ac_ext >&5
19451
19452 echo "$as_me:$LINENO: result: no" >&5
19453 echo "${ECHO_T}no" >&6
19454
19455
19456
19457 fi
19458
19459 rm -Rf build
19460
19461
19462
19463
19464 echo "$as_me:$LINENO: checking whether set_shrinker() available" >&5
19465 echo $ECHO_N "checking whether set_shrinker() available... $ECHO_C" >&6
19466
19467
19468 cat >conftest.c <<_ACEOF
19469 /* confdefs.h. */
19470 _ACEOF
19471 cat confdefs.h >>conftest.$ac_ext
19472 cat >>conftest.$ac_ext <<_ACEOF
19473 /* end confdefs.h. */
19474
19475
19476 #include <linux/mm.h>
19477
19478 int
19479 main (void)
19480 {
19481
19482 return set_shrinker(DEFAULT_SEEKS, NULL);
19483
19484 ;
19485 return 0;
19486 }
19487
19488 _ACEOF
19489
19490
19491 rm -Rf build && mkdir -p build
19492 echo "obj-m := conftest.o" >build/Makefile
19493 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'
19494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19495 (eval $ac_try) 2>&5
19496 ac_status=$?
19497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19498 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19500 (eval $ac_try) 2>&5
19501 ac_status=$?
19502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19503 (exit $ac_status); }; }; then
19504
19505 echo "$as_me:$LINENO: result: yes" >&5
19506 echo "${ECHO_T}yes" >&6
19507
19508 cat >>confdefs.h <<\_ACEOF
19509 #define HAVE_SET_SHRINKER 1
19510 _ACEOF
19511
19512
19513 else
19514 echo "$as_me: failed program was:" >&5
19515 sed 's/^/| /' conftest.$ac_ext >&5
19516
19517 echo "$as_me:$LINENO: result: no" >&5
19518 echo "${ECHO_T}no" >&6
19519
19520
19521
19522 fi
19523
19524 rm -Rf build
19525
19526
19527
19528 echo "$as_me:$LINENO: checking whether struct path used in struct nameidata" >&5
19529 echo $ECHO_N "checking whether struct path used in struct nameidata... $ECHO_C" >&6
19530
19531
19532 cat >conftest.c <<_ACEOF
19533 /* confdefs.h. */
19534 _ACEOF
19535 cat confdefs.h >>conftest.$ac_ext
19536 cat >>conftest.$ac_ext <<_ACEOF
19537 /* end confdefs.h. */
19538
19539
19540 #include <linux/namei.h>
19541
19542 int
19543 main (void)
19544 {
19545
19546 struct nameidata nd;
19547
19548 nd.path.mnt = NULL;
19549 nd.path.dentry = NULL;
19550
19551 ;
19552 return 0;
19553 }
19554
19555 _ACEOF
19556
19557
19558 rm -Rf build && mkdir -p build
19559 echo "obj-m := conftest.o" >build/Makefile
19560 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'
19561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19562 (eval $ac_try) 2>&5
19563 ac_status=$?
19564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19565 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19567 (eval $ac_try) 2>&5
19568 ac_status=$?
19569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19570 (exit $ac_status); }; }; then
19571
19572 echo "$as_me:$LINENO: result: yes" >&5
19573 echo "${ECHO_T}yes" >&6
19574
19575 cat >>confdefs.h <<\_ACEOF
19576 #define HAVE_PATH_IN_NAMEIDATA 1
19577 _ACEOF
19578
19579
19580 else
19581 echo "$as_me: failed program was:" >&5
19582 sed 's/^/| /' conftest.$ac_ext >&5
19583
19584 echo "$as_me:$LINENO: result: no" >&5
19585 echo "${ECHO_T}no" >&6
19586
19587
19588
19589 fi
19590
19591 rm -Rf build
19592
19593
19594
19595
19596 echo "$as_me:$LINENO: checking whether symbol task_curr is exported" >&5
19597 echo $ECHO_N "checking whether symbol task_curr is exported... $ECHO_C" >&6
19598 grep -q -E '[[:space:]]task_curr[[:space:]]' \
19599 $LINUX_OBJ/Module*.symvers 2>/dev/null
19600 rc=$?
19601 if test $rc -ne 0; then
19602 export=0
19603 for file in kernel/sched.c; do
19604 grep -q -E "EXPORT_SYMBOL.*(task_curr)" \
19605 "$LINUX_OBJ/$file" 2>/dev/null
19606 rc=$?
19607 if test $rc -eq 0; then
19608 export=1
19609 break;
19610 fi
19611 done
19612 if test $export -eq 0; then
19613 echo "$as_me:$LINENO: result: no" >&5
19614 echo "${ECHO_T}no" >&6
19615
19616 else
19617 echo "$as_me:$LINENO: result: yes" >&5
19618 echo "${ECHO_T}yes" >&6
19619
19620 cat >>confdefs.h <<\_ACEOF
19621 #define HAVE_TASK_CURR 1
19622 _ACEOF
19623
19624 fi
19625 else
19626 echo "$as_me:$LINENO: result: yes" >&5
19627 echo "${ECHO_T}yes" >&6
19628
19629 cat >>confdefs.h <<\_ACEOF
19630 #define HAVE_TASK_CURR 1
19631 _ACEOF
19632
19633 fi
19634
19635
19636 echo "$as_me:$LINENO: checking whether unnumbered sysctl support exists" >&5
19637 echo $ECHO_N "checking whether unnumbered sysctl support exists... $ECHO_C" >&6
19638
19639
19640 cat >conftest.c <<_ACEOF
19641 /* confdefs.h. */
19642 _ACEOF
19643 cat confdefs.h >>conftest.$ac_ext
19644 cat >>conftest.$ac_ext <<_ACEOF
19645 /* end confdefs.h. */
19646
19647
19648 #include <linux/sysctl.h>
19649
19650 int
19651 main (void)
19652 {
19653
19654 #ifndef CTL_UNNUMBERED
19655 #error CTL_UNNUMBERED undefined
19656 #endif
19657
19658 ;
19659 return 0;
19660 }
19661
19662 _ACEOF
19663
19664
19665 rm -Rf build && mkdir -p build
19666 echo "obj-m := conftest.o" >build/Makefile
19667 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'
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); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19674 (eval $ac_try) 2>&5
19675 ac_status=$?
19676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19677 (exit $ac_status); }; }; then
19678
19679 echo "$as_me:$LINENO: result: yes" >&5
19680 echo "${ECHO_T}yes" >&6
19681
19682 cat >>confdefs.h <<\_ACEOF
19683 #define HAVE_CTL_UNNUMBERED 1
19684 _ACEOF
19685
19686
19687 else
19688 echo "$as_me: failed program was:" >&5
19689 sed 's/^/| /' conftest.$ac_ext >&5
19690
19691 echo "$as_me:$LINENO: result: no" >&5
19692 echo "${ECHO_T}no" >&6
19693
19694
19695
19696 fi
19697
19698 rm -Rf build
19699
19700
19701
19702 echo "$as_me:$LINENO: checking whether fls64() is available" >&5
19703 echo $ECHO_N "checking whether fls64() is available... $ECHO_C" >&6
19704
19705
19706 cat >conftest.c <<_ACEOF
19707 /* confdefs.h. */
19708 _ACEOF
19709 cat confdefs.h >>conftest.$ac_ext
19710 cat >>conftest.$ac_ext <<_ACEOF
19711 /* end confdefs.h. */
19712
19713
19714 #include <linux/bitops.h>
19715
19716 int
19717 main (void)
19718 {
19719
19720 return fls64(0);
19721
19722 ;
19723 return 0;
19724 }
19725
19726 _ACEOF
19727
19728
19729 rm -Rf build && mkdir -p build
19730 echo "obj-m := conftest.o" >build/Makefile
19731 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'
19732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19733 (eval $ac_try) 2>&5
19734 ac_status=$?
19735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19736 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19738 (eval $ac_try) 2>&5
19739 ac_status=$?
19740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19741 (exit $ac_status); }; }; then
19742
19743 echo "$as_me:$LINENO: result: yes" >&5
19744 echo "${ECHO_T}yes" >&6
19745
19746 cat >>confdefs.h <<\_ACEOF
19747 #define HAVE_FLS64 1
19748 _ACEOF
19749
19750
19751 else
19752 echo "$as_me: failed program was:" >&5
19753 sed 's/^/| /' conftest.$ac_ext >&5
19754
19755 echo "$as_me:$LINENO: result: no" >&5
19756 echo "${ECHO_T}no" >&6
19757
19758
19759
19760 fi
19761
19762 rm -Rf build
19763
19764
19765
19766
19767 echo "$as_me:$LINENO: checking whether symbol device_create is exported" >&5
19768 echo $ECHO_N "checking whether symbol device_create is exported... $ECHO_C" >&6
19769 grep -q -E '[[:space:]]device_create[[:space:]]' \
19770 $LINUX_OBJ/Module*.symvers 2>/dev/null
19771 rc=$?
19772 if test $rc -ne 0; then
19773 export=0
19774 for file in drivers/base/core.c; do
19775 grep -q -E "EXPORT_SYMBOL.*(device_create)" \
19776 "$LINUX_OBJ/$file" 2>/dev/null
19777 rc=$?
19778 if test $rc -eq 0; then
19779 export=1
19780 break;
19781 fi
19782 done
19783 if test $export -eq 0; then
19784 echo "$as_me:$LINENO: result: no" >&5
19785 echo "${ECHO_T}no" >&6
19786
19787 else
19788 echo "$as_me:$LINENO: result: yes" >&5
19789 echo "${ECHO_T}yes" >&6
19790
19791 cat >>confdefs.h <<\_ACEOF
19792 #define HAVE_DEVICE_CREATE 1
19793 _ACEOF
19794
19795 fi
19796 else
19797 echo "$as_me:$LINENO: result: yes" >&5
19798 echo "${ECHO_T}yes" >&6
19799
19800 cat >>confdefs.h <<\_ACEOF
19801 #define HAVE_DEVICE_CREATE 1
19802 _ACEOF
19803
19804 fi
19805
19806
19807
19808 echo "$as_me:$LINENO: checking whether device_create() wants 5 args" >&5
19809 echo $ECHO_N "checking whether device_create() wants 5 args... $ECHO_C" >&6
19810 tmp_flags="$EXTRA_KCFLAGS"
19811 EXTRA_KCFLAGS="-Werror"
19812
19813
19814 cat >conftest.c <<_ACEOF
19815 /* confdefs.h. */
19816 _ACEOF
19817 cat confdefs.h >>conftest.$ac_ext
19818 cat >>conftest.$ac_ext <<_ACEOF
19819 /* end confdefs.h. */
19820
19821
19822 #include <linux/device.h>
19823
19824 int
19825 main (void)
19826 {
19827
19828 device_create(NULL, NULL, 0, NULL, "%d", 1);
19829
19830 ;
19831 return 0;
19832 }
19833
19834 _ACEOF
19835
19836
19837 rm -Rf build && mkdir -p build
19838 echo "obj-m := conftest.o" >build/Makefile
19839 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'
19840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19841 (eval $ac_try) 2>&5
19842 ac_status=$?
19843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19844 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19846 (eval $ac_try) 2>&5
19847 ac_status=$?
19848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19849 (exit $ac_status); }; }; then
19850
19851 echo "$as_me:$LINENO: result: yes" >&5
19852 echo "${ECHO_T}yes" >&6
19853
19854 cat >>confdefs.h <<\_ACEOF
19855 #define HAVE_5ARGS_DEVICE_CREATE 1
19856 _ACEOF
19857
19858
19859 else
19860 echo "$as_me: failed program was:" >&5
19861 sed 's/^/| /' conftest.$ac_ext >&5
19862
19863 echo "$as_me:$LINENO: result: no" >&5
19864 echo "${ECHO_T}no" >&6
19865
19866
19867
19868 fi
19869
19870 rm -Rf build
19871
19872
19873 EXTRA_KCFLAGS="$tmp_flags"
19874
19875
19876 echo "$as_me:$LINENO: checking whether symbol class_device_create is exported" >&5
19877 echo $ECHO_N "checking whether symbol class_device_create is exported... $ECHO_C" >&6
19878 grep -q -E '[[:space:]]class_device_create[[:space:]]' \
19879 $LINUX_OBJ/Module*.symvers 2>/dev/null
19880 rc=$?
19881 if test $rc -ne 0; then
19882 export=0
19883 for file in drivers/base/class.c; do
19884 grep -q -E "EXPORT_SYMBOL.*(class_device_create)" \
19885 "$LINUX_OBJ/$file" 2>/dev/null
19886 rc=$?
19887 if test $rc -eq 0; then
19888 export=1
19889 break;
19890 fi
19891 done
19892 if test $export -eq 0; then
19893 echo "$as_me:$LINENO: result: no" >&5
19894 echo "${ECHO_T}no" >&6
19895
19896 else
19897 echo "$as_me:$LINENO: result: yes" >&5
19898 echo "${ECHO_T}yes" >&6
19899
19900 cat >>confdefs.h <<\_ACEOF
19901 #define HAVE_CLASS_DEVICE_CREATE 1
19902 _ACEOF
19903
19904 fi
19905 else
19906 echo "$as_me:$LINENO: result: yes" >&5
19907 echo "${ECHO_T}yes" >&6
19908
19909 cat >>confdefs.h <<\_ACEOF
19910 #define HAVE_CLASS_DEVICE_CREATE 1
19911 _ACEOF
19912
19913 fi
19914
19915
19916
19917 echo "$as_me:$LINENO: checking whether symbol set_normalized_timespec is exported" >&5
19918 echo $ECHO_N "checking whether symbol set_normalized_timespec is exported... $ECHO_C" >&6
19919 grep -q -E '[[:space:]]set_normalized_timespec[[:space:]]' \
19920 $LINUX_OBJ/Module*.symvers 2>/dev/null
19921 rc=$?
19922 if test $rc -ne 0; then
19923 export=0
19924 for file in kernel/time.c; do
19925 grep -q -E "EXPORT_SYMBOL.*(set_normalized_timespec)" \
19926 "$LINUX_OBJ/$file" 2>/dev/null
19927 rc=$?
19928 if test $rc -eq 0; then
19929 export=1
19930 break;
19931 fi
19932 done
19933 if test $export -eq 0; then
19934 echo "$as_me:$LINENO: result: no" >&5
19935 echo "${ECHO_T}no" >&6
19936
19937 else
19938 echo "$as_me:$LINENO: result: yes" >&5
19939 echo "${ECHO_T}yes" >&6
19940
19941 cat >>confdefs.h <<\_ACEOF
19942 #define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1
19943 _ACEOF
19944
19945 fi
19946 else
19947 echo "$as_me:$LINENO: result: yes" >&5
19948 echo "${ECHO_T}yes" >&6
19949
19950 cat >>confdefs.h <<\_ACEOF
19951 #define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1
19952 _ACEOF
19953
19954 fi
19955
19956
19957
19958 echo "$as_me:$LINENO: checking whether set_normalized_timespec() is an inline" >&5
19959 echo $ECHO_N "checking whether set_normalized_timespec() is an inline... $ECHO_C" >&6
19960
19961
19962 cat >conftest.c <<_ACEOF
19963 /* confdefs.h. */
19964 _ACEOF
19965 cat confdefs.h >>conftest.$ac_ext
19966 cat >>conftest.$ac_ext <<_ACEOF
19967 /* end confdefs.h. */
19968
19969
19970 #include <linux/time.h>
19971 void set_normalized_timespec(struct timespec *ts,
19972 time_t sec, long nsec) { }
19973
19974 int
19975 main (void)
19976 {
19977
19978 ;
19979 return 0;
19980 }
19981
19982 _ACEOF
19983
19984
19985 rm -Rf build && mkdir -p build
19986 echo "obj-m := conftest.o" >build/Makefile
19987 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'
19988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19989 (eval $ac_try) 2>&5
19990 ac_status=$?
19991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19992 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19994 (eval $ac_try) 2>&5
19995 ac_status=$?
19996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19997 (exit $ac_status); }; }; then
19998
19999 echo "$as_me:$LINENO: result: no" >&5
20000 echo "${ECHO_T}no" >&6
20001
20002 else
20003 echo "$as_me: failed program was:" >&5
20004 sed 's/^/| /' conftest.$ac_ext >&5
20005
20006 echo "$as_me:$LINENO: result: yes" >&5
20007 echo "${ECHO_T}yes" >&6
20008
20009 cat >>confdefs.h <<\_ACEOF
20010 #define HAVE_SET_NORMALIZED_TIMESPEC_INLINE 1
20011 _ACEOF
20012
20013
20014
20015
20016 fi
20017
20018 rm -Rf build
20019
20020
20021
20022
20023 echo "$as_me:$LINENO: checking whether timespec_sub() is available" >&5
20024 echo $ECHO_N "checking whether timespec_sub() is available... $ECHO_C" >&6
20025
20026
20027 cat >conftest.c <<_ACEOF
20028 /* confdefs.h. */
20029 _ACEOF
20030 cat confdefs.h >>conftest.$ac_ext
20031 cat >>conftest.$ac_ext <<_ACEOF
20032 /* end confdefs.h. */
20033
20034
20035 #include <linux/time.h>
20036
20037 int
20038 main (void)
20039 {
20040
20041 struct timespec a, b, c = { 0 };
20042 c = timespec_sub(a, b);
20043
20044 ;
20045 return 0;
20046 }
20047
20048 _ACEOF
20049
20050
20051 rm -Rf build && mkdir -p build
20052 echo "obj-m := conftest.o" >build/Makefile
20053 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'
20054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20055 (eval $ac_try) 2>&5
20056 ac_status=$?
20057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20058 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20060 (eval $ac_try) 2>&5
20061 ac_status=$?
20062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20063 (exit $ac_status); }; }; then
20064
20065 echo "$as_me:$LINENO: result: yes" >&5
20066 echo "${ECHO_T}yes" >&6
20067
20068 cat >>confdefs.h <<\_ACEOF
20069 #define HAVE_TIMESPEC_SUB 1
20070 _ACEOF
20071
20072
20073 else
20074 echo "$as_me: failed program was:" >&5
20075 sed 's/^/| /' conftest.$ac_ext >&5
20076
20077 echo "$as_me:$LINENO: result: no" >&5
20078 echo "${ECHO_T}no" >&6
20079
20080
20081
20082 fi
20083
20084 rm -Rf build
20085
20086
20087
20088
20089 echo "$as_me:$LINENO: checking whether init_utsname() is available" >&5
20090 echo $ECHO_N "checking whether init_utsname() is available... $ECHO_C" >&6
20091
20092
20093 cat >conftest.c <<_ACEOF
20094 /* confdefs.h. */
20095 _ACEOF
20096 cat confdefs.h >>conftest.$ac_ext
20097 cat >>conftest.$ac_ext <<_ACEOF
20098 /* end confdefs.h. */
20099
20100
20101 #include <linux/utsname.h>
20102
20103 int
20104 main (void)
20105 {
20106
20107 struct new_utsname *a = init_utsname();
20108
20109 ;
20110 return 0;
20111 }
20112
20113 _ACEOF
20114
20115
20116 rm -Rf build && mkdir -p build
20117 echo "obj-m := conftest.o" >build/Makefile
20118 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'
20119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20120 (eval $ac_try) 2>&5
20121 ac_status=$?
20122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20123 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20125 (eval $ac_try) 2>&5
20126 ac_status=$?
20127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20128 (exit $ac_status); }; }; then
20129
20130 echo "$as_me:$LINENO: result: yes" >&5
20131 echo "${ECHO_T}yes" >&6
20132
20133 cat >>confdefs.h <<\_ACEOF
20134 #define HAVE_INIT_UTSNAME 1
20135 _ACEOF
20136
20137
20138 else
20139 echo "$as_me: failed program was:" >&5
20140 sed 's/^/| /' conftest.$ac_ext >&5
20141
20142 echo "$as_me:$LINENO: result: no" >&5
20143 echo "${ECHO_T}no" >&6
20144
20145
20146
20147 fi
20148
20149 rm -Rf build
20150
20151
20152
20153
20154 echo "$as_me:$LINENO: checking whether header linux/fdtable.h exists" >&5
20155 echo $ECHO_N "checking whether header linux/fdtable.h exists... $ECHO_C" >&6
20156
20157
20158 cat >conftest.c <<_ACEOF
20159 /* confdefs.h. */
20160 _ACEOF
20161 cat confdefs.h >>conftest.$ac_ext
20162 cat >>conftest.$ac_ext <<_ACEOF
20163 /* end confdefs.h. */
20164
20165
20166 #include <linux/fdtable.h>
20167
20168 int
20169 main (void)
20170 {
20171
20172 return 0;
20173
20174 ;
20175 return 0;
20176 }
20177
20178 _ACEOF
20179
20180
20181 rm -Rf build && mkdir -p build
20182 echo "obj-m := conftest.o" >build/Makefile
20183 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'
20184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20185 (eval $ac_try) 2>&5
20186 ac_status=$?
20187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20188 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20190 (eval $ac_try) 2>&5
20191 ac_status=$?
20192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20193 (exit $ac_status); }; }; then
20194
20195
20196 cat >>confdefs.h <<\_ACEOF
20197 #define HAVE_FDTABLE_HEADER 1
20198 _ACEOF
20199
20200 echo "$as_me:$LINENO: result: yes" >&5
20201 echo "${ECHO_T}yes" >&6
20202
20203
20204 else
20205 echo "$as_me: failed program was:" >&5
20206 sed 's/^/| /' conftest.$ac_ext >&5
20207
20208 echo "$as_me:$LINENO: result: no" >&5
20209 echo "${ECHO_T}no" >&6
20210
20211
20212
20213
20214 fi
20215
20216 rm -Rf build
20217
20218
20219
20220
20221
20222 echo "$as_me:$LINENO: checking whether files_fdtable() is available" >&5
20223 echo $ECHO_N "checking whether files_fdtable() is available... $ECHO_C" >&6
20224
20225
20226 cat >conftest.c <<_ACEOF
20227 /* confdefs.h. */
20228 _ACEOF
20229 cat confdefs.h >>conftest.$ac_ext
20230 cat >>conftest.$ac_ext <<_ACEOF
20231 /* end confdefs.h. */
20232
20233
20234 #include <linux/sched.h>
20235 #include <linux/file.h>
20236 #ifdef HAVE_FDTABLE_HEADER
20237 #include <linux/fdtable.h>
20238 #endif
20239
20240 int
20241 main (void)
20242 {
20243
20244 struct files_struct *files = current->files;
20245 struct fdtable *fdt = files_fdtable(files);
20246
20247 ;
20248 return 0;
20249 }
20250
20251 _ACEOF
20252
20253
20254 rm -Rf build && mkdir -p build
20255 echo "obj-m := conftest.o" >build/Makefile
20256 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'
20257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20258 (eval $ac_try) 2>&5
20259 ac_status=$?
20260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20261 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20263 (eval $ac_try) 2>&5
20264 ac_status=$?
20265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20266 (exit $ac_status); }; }; then
20267
20268 echo "$as_me:$LINENO: result: yes" >&5
20269 echo "${ECHO_T}yes" >&6
20270
20271 cat >>confdefs.h <<\_ACEOF
20272 #define HAVE_FILES_FDTABLE 1
20273 _ACEOF
20274
20275
20276 else
20277 echo "$as_me: failed program was:" >&5
20278 sed 's/^/| /' conftest.$ac_ext >&5
20279
20280 echo "$as_me:$LINENO: result: no" >&5
20281 echo "${ECHO_T}no" >&6
20282
20283
20284
20285 fi
20286
20287 rm -Rf build
20288
20289
20290
20291
20292 echo "$as_me:$LINENO: checking whether header linux/uaccess.h exists" >&5
20293 echo $ECHO_N "checking whether header linux/uaccess.h exists... $ECHO_C" >&6
20294
20295
20296 cat >conftest.c <<_ACEOF
20297 /* confdefs.h. */
20298 _ACEOF
20299 cat confdefs.h >>conftest.$ac_ext
20300 cat >>conftest.$ac_ext <<_ACEOF
20301 /* end confdefs.h. */
20302
20303
20304 #include <linux/uaccess.h>
20305
20306 int
20307 main (void)
20308 {
20309
20310 return 0;
20311
20312 ;
20313 return 0;
20314 }
20315
20316 _ACEOF
20317
20318
20319 rm -Rf build && mkdir -p build
20320 echo "obj-m := conftest.o" >build/Makefile
20321 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'
20322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20323 (eval $ac_try) 2>&5
20324 ac_status=$?
20325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20326 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20328 (eval $ac_try) 2>&5
20329 ac_status=$?
20330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20331 (exit $ac_status); }; }; then
20332
20333
20334 cat >>confdefs.h <<\_ACEOF
20335 #define HAVE_UACCESS_HEADER 1
20336 _ACEOF
20337
20338 echo "$as_me:$LINENO: result: yes" >&5
20339 echo "${ECHO_T}yes" >&6
20340
20341
20342 else
20343 echo "$as_me: failed program was:" >&5
20344 sed 's/^/| /' conftest.$ac_ext >&5
20345
20346 echo "$as_me:$LINENO: result: no" >&5
20347 echo "${ECHO_T}no" >&6
20348
20349
20350
20351
20352 fi
20353
20354 rm -Rf build
20355
20356
20357
20358
20359
20360 echo "$as_me:$LINENO: checking whether kmalloc_node() is available" >&5
20361 echo $ECHO_N "checking whether kmalloc_node() is available... $ECHO_C" >&6
20362
20363
20364 cat >conftest.c <<_ACEOF
20365 /* confdefs.h. */
20366 _ACEOF
20367 cat confdefs.h >>conftest.$ac_ext
20368 cat >>conftest.$ac_ext <<_ACEOF
20369 /* end confdefs.h. */
20370
20371
20372 #include <linux/slab.h>
20373
20374 int
20375 main (void)
20376 {
20377
20378 void *a = kmalloc_node(1, GFP_KERNEL, 0);
20379
20380 ;
20381 return 0;
20382 }
20383
20384 _ACEOF
20385
20386
20387 rm -Rf build && mkdir -p build
20388 echo "obj-m := conftest.o" >build/Makefile
20389 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'
20390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20391 (eval $ac_try) 2>&5
20392 ac_status=$?
20393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20394 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20396 (eval $ac_try) 2>&5
20397 ac_status=$?
20398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20399 (exit $ac_status); }; }; then
20400
20401 echo "$as_me:$LINENO: result: yes" >&5
20402 echo "${ECHO_T}yes" >&6
20403
20404 cat >>confdefs.h <<\_ACEOF
20405 #define HAVE_KMALLOC_NODE 1
20406 _ACEOF
20407
20408
20409 else
20410 echo "$as_me: failed program was:" >&5
20411 sed 's/^/| /' conftest.$ac_ext >&5
20412
20413 echo "$as_me:$LINENO: result: no" >&5
20414 echo "${ECHO_T}no" >&6
20415
20416
20417
20418 fi
20419
20420 rm -Rf build
20421
20422
20423
20424
20425 echo "$as_me:$LINENO: checking whether symbol monotonic_clock is exported" >&5
20426 echo $ECHO_N "checking whether symbol monotonic_clock is exported... $ECHO_C" >&6
20427 grep -q -E '[[:space:]]monotonic_clock[[:space:]]' \
20428 $LINUX_OBJ/Module*.symvers 2>/dev/null
20429 rc=$?
20430 if test $rc -ne 0; then
20431 export=0
20432 for file in ; do
20433 grep -q -E "EXPORT_SYMBOL.*(monotonic_clock)" \
20434 "$LINUX_OBJ/$file" 2>/dev/null
20435 rc=$?
20436 if test $rc -eq 0; then
20437 export=1
20438 break;
20439 fi
20440 done
20441 if test $export -eq 0; then
20442 echo "$as_me:$LINENO: result: no" >&5
20443 echo "${ECHO_T}no" >&6
20444
20445 else
20446 echo "$as_me:$LINENO: result: yes" >&5
20447 echo "${ECHO_T}yes" >&6
20448
20449 cat >>confdefs.h <<\_ACEOF
20450 #define HAVE_MONOTONIC_CLOCK 1
20451 _ACEOF
20452
20453 fi
20454 else
20455 echo "$as_me:$LINENO: result: yes" >&5
20456 echo "${ECHO_T}yes" >&6
20457
20458 cat >>confdefs.h <<\_ACEOF
20459 #define HAVE_MONOTONIC_CLOCK 1
20460 _ACEOF
20461
20462 fi
20463
20464
20465
20466 echo "$as_me:$LINENO: checking whether struct inode has i_mutex" >&5
20467 echo $ECHO_N "checking whether struct inode has i_mutex... $ECHO_C" >&6
20468
20469
20470 cat >conftest.c <<_ACEOF
20471 /* confdefs.h. */
20472 _ACEOF
20473 cat confdefs.h >>conftest.$ac_ext
20474 cat >>conftest.$ac_ext <<_ACEOF
20475 /* end confdefs.h. */
20476
20477
20478 #include <linux/fs.h>
20479 #include <linux/mutex.h>
20480
20481 int
20482 main (void)
20483 {
20484
20485 struct inode i;
20486 mutex_init(&i.i_mutex);
20487
20488 ;
20489 return 0;
20490 }
20491
20492 _ACEOF
20493
20494
20495 rm -Rf build && mkdir -p build
20496 echo "obj-m := conftest.o" >build/Makefile
20497 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'
20498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20499 (eval $ac_try) 2>&5
20500 ac_status=$?
20501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20502 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20504 (eval $ac_try) 2>&5
20505 ac_status=$?
20506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20507 (exit $ac_status); }; }; then
20508
20509 echo "$as_me:$LINENO: result: yes" >&5
20510 echo "${ECHO_T}yes" >&6
20511
20512 cat >>confdefs.h <<\_ACEOF
20513 #define HAVE_INODE_I_MUTEX 1
20514 _ACEOF
20515
20516
20517 else
20518 echo "$as_me: failed program was:" >&5
20519 sed 's/^/| /' conftest.$ac_ext >&5
20520
20521 echo "$as_me:$LINENO: result: no" >&5
20522 echo "${ECHO_T}no" >&6
20523
20524
20525
20526 fi
20527
20528 rm -Rf build
20529
20530
20531
20532
20533 echo "$as_me:$LINENO: checking whether struct mutex has owner" >&5
20534 echo $ECHO_N "checking whether struct mutex has owner... $ECHO_C" >&6
20535
20536
20537 cat >conftest.c <<_ACEOF
20538 /* confdefs.h. */
20539 _ACEOF
20540 cat confdefs.h >>conftest.$ac_ext
20541 cat >>conftest.$ac_ext <<_ACEOF
20542 /* end confdefs.h. */
20543
20544
20545 #include <linux/mutex.h>
20546
20547 int
20548 main (void)
20549 {
20550
20551 struct mutex mtx;
20552 mtx.owner = NULL;
20553
20554 ;
20555 return 0;
20556 }
20557
20558 _ACEOF
20559
20560
20561 rm -Rf build && mkdir -p build
20562 echo "obj-m := conftest.o" >build/Makefile
20563 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'
20564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20565 (eval $ac_try) 2>&5
20566 ac_status=$?
20567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20568 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20570 (eval $ac_try) 2>&5
20571 ac_status=$?
20572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20573 (exit $ac_status); }; }; then
20574
20575 echo "$as_me:$LINENO: result: yes" >&5
20576 echo "${ECHO_T}yes" >&6
20577
20578 cat >>confdefs.h <<\_ACEOF
20579 #define HAVE_MUTEX_OWNER 1
20580 _ACEOF
20581
20582
20583 else
20584 echo "$as_me: failed program was:" >&5
20585 sed 's/^/| /' conftest.$ac_ext >&5
20586
20587 echo "$as_me:$LINENO: result: no" >&5
20588 echo "${ECHO_T}no" >&6
20589
20590
20591
20592 fi
20593
20594 rm -Rf build
20595
20596
20597
20598
20599 echo "$as_me:$LINENO: checking whether mutex_lock_nested() is available" >&5
20600 echo $ECHO_N "checking whether mutex_lock_nested() is available... $ECHO_C" >&6
20601
20602
20603 cat >conftest.c <<_ACEOF
20604 /* confdefs.h. */
20605 _ACEOF
20606 cat confdefs.h >>conftest.$ac_ext
20607 cat >>conftest.$ac_ext <<_ACEOF
20608 /* end confdefs.h. */
20609
20610
20611 #include <linux/mutex.h>
20612
20613 int
20614 main (void)
20615 {
20616
20617 struct mutex mutex;
20618 mutex_init(&mutex);
20619 mutex_lock_nested(&mutex, 0);
20620
20621 ;
20622 return 0;
20623 }
20624
20625 _ACEOF
20626
20627
20628 rm -Rf build && mkdir -p build
20629 echo "obj-m := conftest.o" >build/Makefile
20630 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'
20631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20632 (eval $ac_try) 2>&5
20633 ac_status=$?
20634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20635 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20637 (eval $ac_try) 2>&5
20638 ac_status=$?
20639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20640 (exit $ac_status); }; }; then
20641
20642 echo "$as_me:$LINENO: result: yes" >&5
20643 echo "${ECHO_T}yes" >&6
20644
20645 cat >>confdefs.h <<\_ACEOF
20646 #define HAVE_MUTEX_LOCK_NESTED 1
20647 _ACEOF
20648
20649
20650 else
20651 echo "$as_me: failed program was:" >&5
20652 sed 's/^/| /' conftest.$ac_ext >&5
20653
20654 echo "$as_me:$LINENO: result: no" >&5
20655 echo "${ECHO_T}no" >&6
20656
20657
20658
20659 fi
20660
20661 rm -Rf build
20662
20663
20664
20665
20666 echo "$as_me:$LINENO: checking whether symbol div64_64 is exported" >&5
20667 echo $ECHO_N "checking whether symbol div64_64 is exported... $ECHO_C" >&6
20668 grep -q -E '[[:space:]]div64_64[[:space:]]' \
20669 $LINUX_OBJ/Module*.symvers 2>/dev/null
20670 rc=$?
20671 if test $rc -ne 0; then
20672 export=0
20673 for file in ; do
20674 grep -q -E "EXPORT_SYMBOL.*(div64_64)" \
20675 "$LINUX_OBJ/$file" 2>/dev/null
20676 rc=$?
20677 if test $rc -eq 0; then
20678 export=1
20679 break;
20680 fi
20681 done
20682 if test $export -eq 0; then
20683 echo "$as_me:$LINENO: result: no" >&5
20684 echo "${ECHO_T}no" >&6
20685
20686 else
20687 echo "$as_me:$LINENO: result: yes" >&5
20688 echo "${ECHO_T}yes" >&6
20689
20690 cat >>confdefs.h <<\_ACEOF
20691 #define HAVE_DIV64_64 1
20692 _ACEOF
20693
20694 fi
20695 else
20696 echo "$as_me:$LINENO: result: yes" >&5
20697 echo "${ECHO_T}yes" >&6
20698
20699 cat >>confdefs.h <<\_ACEOF
20700 #define HAVE_DIV64_64 1
20701 _ACEOF
20702
20703 fi
20704
20705
20706
20707 echo "$as_me:$LINENO: checking whether symbol div64_u64 is exported" >&5
20708 echo $ECHO_N "checking whether symbol div64_u64 is exported... $ECHO_C" >&6
20709 grep -q -E '[[:space:]]div64_u64[[:space:]]' \
20710 $LINUX_OBJ/Module*.symvers 2>/dev/null
20711 rc=$?
20712 if test $rc -ne 0; then
20713 export=0
20714 for file in ; do
20715 grep -q -E "EXPORT_SYMBOL.*(div64_u64)" \
20716 "$LINUX_OBJ/$file" 2>/dev/null
20717 rc=$?
20718 if test $rc -eq 0; then
20719 export=1
20720 break;
20721 fi
20722 done
20723 if test $export -eq 0; then
20724 echo "$as_me:$LINENO: result: no" >&5
20725 echo "${ECHO_T}no" >&6
20726
20727 else
20728 echo "$as_me:$LINENO: result: yes" >&5
20729 echo "${ECHO_T}yes" >&6
20730
20731 cat >>confdefs.h <<\_ACEOF
20732 #define HAVE_DIV64_U64 1
20733 _ACEOF
20734
20735 fi
20736 else
20737 echo "$as_me:$LINENO: result: yes" >&5
20738 echo "${ECHO_T}yes" >&6
20739
20740 cat >>confdefs.h <<\_ACEOF
20741 #define HAVE_DIV64_U64 1
20742 _ACEOF
20743
20744 fi
20745
20746
20747
20748 echo "$as_me:$LINENO: checking whether on_each_cpu() wants 3 args" >&5
20749 echo $ECHO_N "checking whether on_each_cpu() wants 3 args... $ECHO_C" >&6
20750
20751
20752 cat >conftest.c <<_ACEOF
20753 /* confdefs.h. */
20754 _ACEOF
20755 cat confdefs.h >>conftest.$ac_ext
20756 cat >>conftest.$ac_ext <<_ACEOF
20757 /* end confdefs.h. */
20758
20759
20760 #include <linux/smp.h>
20761
20762 int
20763 main (void)
20764 {
20765
20766 on_each_cpu(NULL, NULL, 0);
20767
20768 ;
20769 return 0;
20770 }
20771
20772 _ACEOF
20773
20774
20775 rm -Rf build && mkdir -p build
20776 echo "obj-m := conftest.o" >build/Makefile
20777 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'
20778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20779 (eval $ac_try) 2>&5
20780 ac_status=$?
20781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20782 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20784 (eval $ac_try) 2>&5
20785 ac_status=$?
20786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20787 (exit $ac_status); }; }; then
20788
20789 echo "$as_me:$LINENO: result: yes" >&5
20790 echo "${ECHO_T}yes" >&6
20791
20792 cat >>confdefs.h <<\_ACEOF
20793 #define HAVE_3ARGS_ON_EACH_CPU 1
20794 _ACEOF
20795
20796
20797 else
20798 echo "$as_me: failed program was:" >&5
20799 sed 's/^/| /' conftest.$ac_ext >&5
20800
20801 echo "$as_me:$LINENO: result: no" >&5
20802 echo "${ECHO_T}no" >&6
20803
20804
20805
20806 fi
20807
20808 rm -Rf build
20809
20810
20811
20812
20813 echo "$as_me:$LINENO: checking whether symbol kallsyms_lookup_name is exported" >&5
20814 echo $ECHO_N "checking whether symbol kallsyms_lookup_name is exported... $ECHO_C" >&6
20815 grep -q -E '[[:space:]]kallsyms_lookup_name[[:space:]]' \
20816 $LINUX_OBJ/Module*.symvers 2>/dev/null
20817 rc=$?
20818 if test $rc -ne 0; then
20819 export=0
20820 for file in ; do
20821 grep -q -E "EXPORT_SYMBOL.*(kallsyms_lookup_name)" \
20822 "$LINUX_OBJ/$file" 2>/dev/null
20823 rc=$?
20824 if test $rc -eq 0; then
20825 export=1
20826 break;
20827 fi
20828 done
20829 if test $export -eq 0; then
20830 echo "$as_me:$LINENO: result: no" >&5
20831 echo "${ECHO_T}no" >&6
20832
20833 else
20834 echo "$as_me:$LINENO: result: yes" >&5
20835 echo "${ECHO_T}yes" >&6
20836
20837 cat >>confdefs.h <<\_ACEOF
20838 #define HAVE_KALLSYMS_LOOKUP_NAME 1
20839 _ACEOF
20840
20841 fi
20842 else
20843 echo "$as_me:$LINENO: result: yes" >&5
20844 echo "${ECHO_T}yes" >&6
20845
20846 cat >>confdefs.h <<\_ACEOF
20847 #define HAVE_KALLSYMS_LOOKUP_NAME 1
20848 _ACEOF
20849
20850 fi
20851
20852
20853
20854 echo "$as_me:$LINENO: checking whether symbol get_vmalloc_info is exported" >&5
20855 echo $ECHO_N "checking whether symbol get_vmalloc_info is exported... $ECHO_C" >&6
20856 grep -q -E '[[:space:]]get_vmalloc_info[[:space:]]' \
20857 $LINUX_OBJ/Module*.symvers 2>/dev/null
20858 rc=$?
20859 if test $rc -ne 0; then
20860 export=0
20861 for file in ; do
20862 grep -q -E "EXPORT_SYMBOL.*(get_vmalloc_info)" \
20863 "$LINUX_OBJ/$file" 2>/dev/null
20864 rc=$?
20865 if test $rc -eq 0; then
20866 export=1
20867 break;
20868 fi
20869 done
20870 if test $export -eq 0; then
20871 echo "$as_me:$LINENO: result: no" >&5
20872 echo "${ECHO_T}no" >&6
20873
20874 else
20875 echo "$as_me:$LINENO: result: yes" >&5
20876 echo "${ECHO_T}yes" >&6
20877
20878 cat >>confdefs.h <<\_ACEOF
20879 #define HAVE_GET_VMALLOC_INFO 1
20880 _ACEOF
20881
20882 fi
20883 else
20884 echo "$as_me:$LINENO: result: yes" >&5
20885 echo "${ECHO_T}yes" >&6
20886
20887 cat >>confdefs.h <<\_ACEOF
20888 #define HAVE_GET_VMALLOC_INFO 1
20889 _ACEOF
20890
20891 fi
20892
20893
20894
20895 echo "$as_me:$LINENO: checking whether symbol *_pgdat exist" >&5
20896 echo $ECHO_N "checking whether symbol *_pgdat exist... $ECHO_C" >&6
20897 grep -q -E 'first_online_pgdat' $LINUX/include/linux/mmzone.h 2>/dev/null
20898 rc=$?
20899 if test $rc -eq 0; then
20900 echo "$as_me:$LINENO: result: yes" >&5
20901 echo "${ECHO_T}yes" >&6
20902
20903 cat >>confdefs.h <<\_ACEOF
20904 #define HAVE_PGDAT_HELPERS 1
20905 _ACEOF
20906
20907 else
20908 echo "$as_me:$LINENO: result: no" >&5
20909 echo "${ECHO_T}no" >&6
20910 fi
20911
20912
20913 echo "$as_me:$LINENO: checking whether symbol first_online_pgdat is exported" >&5
20914 echo $ECHO_N "checking whether symbol first_online_pgdat is exported... $ECHO_C" >&6
20915 grep -q -E '[[:space:]]first_online_pgdat[[:space:]]' \
20916 $LINUX_OBJ/Module*.symvers 2>/dev/null
20917 rc=$?
20918 if test $rc -ne 0; then
20919 export=0
20920 for file in ; do
20921 grep -q -E "EXPORT_SYMBOL.*(first_online_pgdat)" \
20922 "$LINUX_OBJ/$file" 2>/dev/null
20923 rc=$?
20924 if test $rc -eq 0; then
20925 export=1
20926 break;
20927 fi
20928 done
20929 if test $export -eq 0; then
20930 echo "$as_me:$LINENO: result: no" >&5
20931 echo "${ECHO_T}no" >&6
20932
20933 else
20934 echo "$as_me:$LINENO: result: yes" >&5
20935 echo "${ECHO_T}yes" >&6
20936
20937 cat >>confdefs.h <<\_ACEOF
20938 #define HAVE_FIRST_ONLINE_PGDAT 1
20939 _ACEOF
20940
20941 fi
20942 else
20943 echo "$as_me:$LINENO: result: yes" >&5
20944 echo "${ECHO_T}yes" >&6
20945
20946 cat >>confdefs.h <<\_ACEOF
20947 #define HAVE_FIRST_ONLINE_PGDAT 1
20948 _ACEOF
20949
20950 fi
20951
20952
20953
20954 echo "$as_me:$LINENO: checking whether symbol next_online_pgdat is exported" >&5
20955 echo $ECHO_N "checking whether symbol next_online_pgdat is exported... $ECHO_C" >&6
20956 grep -q -E '[[:space:]]next_online_pgdat[[:space:]]' \
20957 $LINUX_OBJ/Module*.symvers 2>/dev/null
20958 rc=$?
20959 if test $rc -ne 0; then
20960 export=0
20961 for file in ; do
20962 grep -q -E "EXPORT_SYMBOL.*(next_online_pgdat)" \
20963 "$LINUX_OBJ/$file" 2>/dev/null
20964 rc=$?
20965 if test $rc -eq 0; then
20966 export=1
20967 break;
20968 fi
20969 done
20970 if test $export -eq 0; then
20971 echo "$as_me:$LINENO: result: no" >&5
20972 echo "${ECHO_T}no" >&6
20973
20974 else
20975 echo "$as_me:$LINENO: result: yes" >&5
20976 echo "${ECHO_T}yes" >&6
20977
20978 cat >>confdefs.h <<\_ACEOF
20979 #define HAVE_NEXT_ONLINE_PGDAT 1
20980 _ACEOF
20981
20982 fi
20983 else
20984 echo "$as_me:$LINENO: result: yes" >&5
20985 echo "${ECHO_T}yes" >&6
20986
20987 cat >>confdefs.h <<\_ACEOF
20988 #define HAVE_NEXT_ONLINE_PGDAT 1
20989 _ACEOF
20990
20991 fi
20992
20993
20994
20995 echo "$as_me:$LINENO: checking whether symbol next_zone is exported" >&5
20996 echo $ECHO_N "checking whether symbol next_zone is exported... $ECHO_C" >&6
20997 grep -q -E '[[:space:]]next_zone[[:space:]]' \
20998 $LINUX_OBJ/Module*.symvers 2>/dev/null
20999 rc=$?
21000 if test $rc -ne 0; then
21001 export=0
21002 for file in ; do
21003 grep -q -E "EXPORT_SYMBOL.*(next_zone)" \
21004 "$LINUX_OBJ/$file" 2>/dev/null
21005 rc=$?
21006 if test $rc -eq 0; then
21007 export=1
21008 break;
21009 fi
21010 done
21011 if test $export -eq 0; then
21012 echo "$as_me:$LINENO: result: no" >&5
21013 echo "${ECHO_T}no" >&6
21014
21015 else
21016 echo "$as_me:$LINENO: result: yes" >&5
21017 echo "${ECHO_T}yes" >&6
21018
21019 cat >>confdefs.h <<\_ACEOF
21020 #define HAVE_NEXT_ZONE 1
21021 _ACEOF
21022
21023 fi
21024 else
21025 echo "$as_me:$LINENO: result: yes" >&5
21026 echo "${ECHO_T}yes" >&6
21027
21028 cat >>confdefs.h <<\_ACEOF
21029 #define HAVE_NEXT_ZONE 1
21030 _ACEOF
21031
21032 fi
21033
21034
21035
21036 echo "$as_me:$LINENO: checking whether symbol pgdat_list is exported" >&5
21037 echo $ECHO_N "checking whether symbol pgdat_list is exported... $ECHO_C" >&6
21038 grep -q -E '[[:space:]]pgdat_list[[:space:]]' \
21039 $LINUX_OBJ/Module*.symvers 2>/dev/null
21040 rc=$?
21041 if test $rc -ne 0; then
21042 export=0
21043 for file in ; do
21044 grep -q -E "EXPORT_SYMBOL.*(pgdat_list)" \
21045 "$LINUX_OBJ/$file" 2>/dev/null
21046 rc=$?
21047 if test $rc -eq 0; then
21048 export=1
21049 break;
21050 fi
21051 done
21052 if test $export -eq 0; then
21053 echo "$as_me:$LINENO: result: no" >&5
21054 echo "${ECHO_T}no" >&6
21055
21056 else
21057 echo "$as_me:$LINENO: result: yes" >&5
21058 echo "${ECHO_T}yes" >&6
21059
21060 cat >>confdefs.h <<\_ACEOF
21061 #define HAVE_PGDAT_LIST 1
21062 _ACEOF
21063
21064 fi
21065 else
21066 echo "$as_me:$LINENO: result: yes" >&5
21067 echo "${ECHO_T}yes" >&6
21068
21069 cat >>confdefs.h <<\_ACEOF
21070 #define HAVE_PGDAT_LIST 1
21071 _ACEOF
21072
21073 fi
21074
21075
21076
21077 echo "$as_me:$LINENO: checking whether global_page_state() is available" >&5
21078 echo $ECHO_N "checking whether global_page_state() is available... $ECHO_C" >&6
21079
21080
21081 cat >conftest.c <<_ACEOF
21082 /* confdefs.h. */
21083 _ACEOF
21084 cat confdefs.h >>conftest.$ac_ext
21085 cat >>conftest.$ac_ext <<_ACEOF
21086 /* end confdefs.h. */
21087
21088
21089 #include <linux/mm.h>
21090
21091 int
21092 main (void)
21093 {
21094
21095 unsigned long state;
21096 state = global_page_state(0);
21097
21098 ;
21099 return 0;
21100 }
21101
21102 _ACEOF
21103
21104
21105 rm -Rf build && mkdir -p build
21106 echo "obj-m := conftest.o" >build/Makefile
21107 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'
21108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21109 (eval $ac_try) 2>&5
21110 ac_status=$?
21111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21112 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21114 (eval $ac_try) 2>&5
21115 ac_status=$?
21116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21117 (exit $ac_status); }; }; then
21118
21119 echo "$as_me:$LINENO: result: yes" >&5
21120 echo "${ECHO_T}yes" >&6
21121
21122 cat >>confdefs.h <<\_ACEOF
21123 #define HAVE_GLOBAL_PAGE_STATE 1
21124 _ACEOF
21125
21126
21127 else
21128 echo "$as_me: failed program was:" >&5
21129 sed 's/^/| /' conftest.$ac_ext >&5
21130
21131 echo "$as_me:$LINENO: result: no" >&5
21132 echo "${ECHO_T}no" >&6
21133
21134
21135
21136 fi
21137
21138 rm -Rf build
21139
21140
21141
21142
21143 echo "$as_me:$LINENO: checking whether page state NR_FREE_PAGES is available" >&5
21144 echo $ECHO_N "checking whether page state NR_FREE_PAGES is available... $ECHO_C" >&6
21145
21146
21147 cat >conftest.c <<_ACEOF
21148 /* confdefs.h. */
21149 _ACEOF
21150 cat confdefs.h >>conftest.$ac_ext
21151 cat >>conftest.$ac_ext <<_ACEOF
21152 /* end confdefs.h. */
21153
21154
21155 #include <linux/mm.h>
21156
21157 int
21158 main (void)
21159 {
21160
21161 enum zone_stat_item zsi;
21162 zsi = NR_FREE_PAGES;
21163
21164 ;
21165 return 0;
21166 }
21167
21168 _ACEOF
21169
21170
21171 rm -Rf build && mkdir -p build
21172 echo "obj-m := conftest.o" >build/Makefile
21173 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'
21174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21175 (eval $ac_try) 2>&5
21176 ac_status=$?
21177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21178 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21180 (eval $ac_try) 2>&5
21181 ac_status=$?
21182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21183 (exit $ac_status); }; }; then
21184
21185 echo "$as_me:$LINENO: result: yes" >&5
21186 echo "${ECHO_T}yes" >&6
21187
21188 cat >>confdefs.h <<\_ACEOF
21189 #define HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES 1
21190 _ACEOF
21191
21192
21193 else
21194 echo "$as_me: failed program was:" >&5
21195 sed 's/^/| /' conftest.$ac_ext >&5
21196
21197 echo "$as_me:$LINENO: result: no" >&5
21198 echo "${ECHO_T}no" >&6
21199
21200
21201
21202 fi
21203
21204 rm -Rf build
21205
21206
21207
21208
21209 echo "$as_me:$LINENO: checking whether page state NR_INACTIVE is available" >&5
21210 echo $ECHO_N "checking whether page state NR_INACTIVE is available... $ECHO_C" >&6
21211
21212
21213 cat >conftest.c <<_ACEOF
21214 /* confdefs.h. */
21215 _ACEOF
21216 cat confdefs.h >>conftest.$ac_ext
21217 cat >>conftest.$ac_ext <<_ACEOF
21218 /* end confdefs.h. */
21219
21220
21221 #include <linux/mm.h>
21222
21223 int
21224 main (void)
21225 {
21226
21227 enum zone_stat_item zsi;
21228 zsi = NR_INACTIVE;
21229
21230 ;
21231 return 0;
21232 }
21233
21234 _ACEOF
21235
21236
21237 rm -Rf build && mkdir -p build
21238 echo "obj-m := conftest.o" >build/Makefile
21239 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'
21240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21241 (eval $ac_try) 2>&5
21242 ac_status=$?
21243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21244 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21246 (eval $ac_try) 2>&5
21247 ac_status=$?
21248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21249 (exit $ac_status); }; }; then
21250
21251 echo "$as_me:$LINENO: result: yes" >&5
21252 echo "${ECHO_T}yes" >&6
21253
21254 cat >>confdefs.h <<\_ACEOF
21255 #define HAVE_ZONE_STAT_ITEM_NR_INACTIVE 1
21256 _ACEOF
21257
21258
21259 else
21260 echo "$as_me: failed program was:" >&5
21261 sed 's/^/| /' conftest.$ac_ext >&5
21262
21263 echo "$as_me:$LINENO: result: no" >&5
21264 echo "${ECHO_T}no" >&6
21265
21266
21267
21268 fi
21269
21270 rm -Rf build
21271
21272
21273
21274 echo "$as_me:$LINENO: checking whether page state NR_INACTIVE_ANON is available" >&5
21275 echo $ECHO_N "checking whether page state NR_INACTIVE_ANON is available... $ECHO_C" >&6
21276
21277
21278 cat >conftest.c <<_ACEOF
21279 /* confdefs.h. */
21280 _ACEOF
21281 cat confdefs.h >>conftest.$ac_ext
21282 cat >>conftest.$ac_ext <<_ACEOF
21283 /* end confdefs.h. */
21284
21285
21286 #include <linux/mm.h>
21287
21288 int
21289 main (void)
21290 {
21291
21292 enum zone_stat_item zsi;
21293 zsi = NR_INACTIVE_ANON;
21294
21295 ;
21296 return 0;
21297 }
21298
21299 _ACEOF
21300
21301
21302 rm -Rf build && mkdir -p build
21303 echo "obj-m := conftest.o" >build/Makefile
21304 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'
21305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21306 (eval $ac_try) 2>&5
21307 ac_status=$?
21308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21309 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21311 (eval $ac_try) 2>&5
21312 ac_status=$?
21313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21314 (exit $ac_status); }; }; then
21315
21316 echo "$as_me:$LINENO: result: yes" >&5
21317 echo "${ECHO_T}yes" >&6
21318
21319 cat >>confdefs.h <<\_ACEOF
21320 #define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON 1
21321 _ACEOF
21322
21323
21324 else
21325 echo "$as_me: failed program was:" >&5
21326 sed 's/^/| /' conftest.$ac_ext >&5
21327
21328 echo "$as_me:$LINENO: result: no" >&5
21329 echo "${ECHO_T}no" >&6
21330
21331
21332
21333 fi
21334
21335 rm -Rf build
21336
21337
21338
21339 echo "$as_me:$LINENO: checking whether page state NR_INACTIVE_FILE is available" >&5
21340 echo $ECHO_N "checking whether page state NR_INACTIVE_FILE is available... $ECHO_C" >&6
21341
21342
21343 cat >conftest.c <<_ACEOF
21344 /* confdefs.h. */
21345 _ACEOF
21346 cat confdefs.h >>conftest.$ac_ext
21347 cat >>conftest.$ac_ext <<_ACEOF
21348 /* end confdefs.h. */
21349
21350
21351 #include <linux/mm.h>
21352
21353 int
21354 main (void)
21355 {
21356
21357 enum zone_stat_item zsi;
21358 zsi = NR_INACTIVE_FILE;
21359
21360 ;
21361 return 0;
21362 }
21363
21364 _ACEOF
21365
21366
21367 rm -Rf build && mkdir -p build
21368 echo "obj-m := conftest.o" >build/Makefile
21369 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'
21370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21371 (eval $ac_try) 2>&5
21372 ac_status=$?
21373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21374 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21376 (eval $ac_try) 2>&5
21377 ac_status=$?
21378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21379 (exit $ac_status); }; }; then
21380
21381 echo "$as_me:$LINENO: result: yes" >&5
21382 echo "${ECHO_T}yes" >&6
21383
21384 cat >>confdefs.h <<\_ACEOF
21385 #define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE 1
21386 _ACEOF
21387
21388
21389 else
21390 echo "$as_me: failed program was:" >&5
21391 sed 's/^/| /' conftest.$ac_ext >&5
21392
21393 echo "$as_me:$LINENO: result: no" >&5
21394 echo "${ECHO_T}no" >&6
21395
21396
21397
21398 fi
21399
21400 rm -Rf build
21401
21402
21403
21404
21405 echo "$as_me:$LINENO: checking whether page state NR_ACTIVE is available" >&5
21406 echo $ECHO_N "checking whether page state NR_ACTIVE is available... $ECHO_C" >&6
21407
21408
21409 cat >conftest.c <<_ACEOF
21410 /* confdefs.h. */
21411 _ACEOF
21412 cat confdefs.h >>conftest.$ac_ext
21413 cat >>conftest.$ac_ext <<_ACEOF
21414 /* end confdefs.h. */
21415
21416
21417 #include <linux/mm.h>
21418
21419 int
21420 main (void)
21421 {
21422
21423 enum zone_stat_item zsi;
21424 zsi = NR_ACTIVE;
21425
21426 ;
21427 return 0;
21428 }
21429
21430 _ACEOF
21431
21432
21433 rm -Rf build && mkdir -p build
21434 echo "obj-m := conftest.o" >build/Makefile
21435 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'
21436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21437 (eval $ac_try) 2>&5
21438 ac_status=$?
21439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21440 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21442 (eval $ac_try) 2>&5
21443 ac_status=$?
21444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21445 (exit $ac_status); }; }; then
21446
21447 echo "$as_me:$LINENO: result: yes" >&5
21448 echo "${ECHO_T}yes" >&6
21449
21450 cat >>confdefs.h <<\_ACEOF
21451 #define HAVE_ZONE_STAT_ITEM_NR_ACTIVE 1
21452 _ACEOF
21453
21454
21455 else
21456 echo "$as_me: failed program was:" >&5
21457 sed 's/^/| /' conftest.$ac_ext >&5
21458
21459 echo "$as_me:$LINENO: result: no" >&5
21460 echo "${ECHO_T}no" >&6
21461
21462
21463
21464 fi
21465
21466 rm -Rf build
21467
21468
21469
21470 echo "$as_me:$LINENO: checking whether page state NR_ACTIVE_ANON is available" >&5
21471 echo $ECHO_N "checking whether page state NR_ACTIVE_ANON is available... $ECHO_C" >&6
21472
21473
21474 cat >conftest.c <<_ACEOF
21475 /* confdefs.h. */
21476 _ACEOF
21477 cat confdefs.h >>conftest.$ac_ext
21478 cat >>conftest.$ac_ext <<_ACEOF
21479 /* end confdefs.h. */
21480
21481
21482 #include <linux/mm.h>
21483
21484 int
21485 main (void)
21486 {
21487
21488 enum zone_stat_item zsi;
21489 zsi = NR_ACTIVE_ANON;
21490
21491 ;
21492 return 0;
21493 }
21494
21495 _ACEOF
21496
21497
21498 rm -Rf build && mkdir -p build
21499 echo "obj-m := conftest.o" >build/Makefile
21500 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'
21501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21502 (eval $ac_try) 2>&5
21503 ac_status=$?
21504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21505 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21507 (eval $ac_try) 2>&5
21508 ac_status=$?
21509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21510 (exit $ac_status); }; }; then
21511
21512 echo "$as_me:$LINENO: result: yes" >&5
21513 echo "${ECHO_T}yes" >&6
21514
21515 cat >>confdefs.h <<\_ACEOF
21516 #define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON 1
21517 _ACEOF
21518
21519
21520 else
21521 echo "$as_me: failed program was:" >&5
21522 sed 's/^/| /' conftest.$ac_ext >&5
21523
21524 echo "$as_me:$LINENO: result: no" >&5
21525 echo "${ECHO_T}no" >&6
21526
21527
21528
21529 fi
21530
21531 rm -Rf build
21532
21533
21534
21535 echo "$as_me:$LINENO: checking whether page state NR_ACTIVE_FILE is available" >&5
21536 echo $ECHO_N "checking whether page state NR_ACTIVE_FILE is available... $ECHO_C" >&6
21537
21538
21539 cat >conftest.c <<_ACEOF
21540 /* confdefs.h. */
21541 _ACEOF
21542 cat confdefs.h >>conftest.$ac_ext
21543 cat >>conftest.$ac_ext <<_ACEOF
21544 /* end confdefs.h. */
21545
21546
21547 #include <linux/mm.h>
21548
21549 int
21550 main (void)
21551 {
21552
21553 enum zone_stat_item zsi;
21554 zsi = NR_ACTIVE_FILE;
21555
21556 ;
21557 return 0;
21558 }
21559
21560 _ACEOF
21561
21562
21563 rm -Rf build && mkdir -p build
21564 echo "obj-m := conftest.o" >build/Makefile
21565 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'
21566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21567 (eval $ac_try) 2>&5
21568 ac_status=$?
21569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21570 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21572 (eval $ac_try) 2>&5
21573 ac_status=$?
21574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21575 (exit $ac_status); }; }; then
21576
21577 echo "$as_me:$LINENO: result: yes" >&5
21578 echo "${ECHO_T}yes" >&6
21579
21580 cat >>confdefs.h <<\_ACEOF
21581 #define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE 1
21582 _ACEOF
21583
21584
21585 else
21586 echo "$as_me: failed program was:" >&5
21587 sed 's/^/| /' conftest.$ac_ext >&5
21588
21589 echo "$as_me:$LINENO: result: no" >&5
21590 echo "${ECHO_T}no" >&6
21591
21592
21593
21594 fi
21595
21596 rm -Rf build
21597
21598
21599
21600
21601 echo "$as_me:$LINENO: checking whether symbol get_zone_counts is needed" >&5
21602 echo $ECHO_N "checking whether symbol get_zone_counts is needed... $ECHO_C" >&6
21603
21604
21605 cat >conftest.c <<_ACEOF
21606 /* confdefs.h. */
21607 _ACEOF
21608 cat confdefs.h >>conftest.$ac_ext
21609 cat >>conftest.$ac_ext <<_ACEOF
21610 /* end confdefs.h. */
21611
21612
21613
21614 int
21615 main (void)
21616 {
21617
21618 #if !defined(HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES)
21619 #error "global_page_state needs NR_FREE_PAGES"
21620 #endif
21621
21622 #if !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE) && \
21623 !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON) && \
21624 !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE)
21625 #error "global_page_state needs NR_ACTIVE*"
21626 #endif
21627
21628 #if !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE) && \
21629 !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON) && \
21630 !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE)
21631 #error "global_page_state needs NR_INACTIVE*"
21632 #endif
21633
21634 ;
21635 return 0;
21636 }
21637
21638 _ACEOF
21639
21640
21641 rm -Rf build && mkdir -p build
21642 echo "obj-m := conftest.o" >build/Makefile
21643 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'
21644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21645 (eval $ac_try) 2>&5
21646 ac_status=$?
21647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21648 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21650 (eval $ac_try) 2>&5
21651 ac_status=$?
21652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21653 (exit $ac_status); }; }; then
21654
21655 echo "$as_me:$LINENO: result: no" >&5
21656 echo "${ECHO_T}no" >&6
21657
21658 else
21659 echo "$as_me: failed program was:" >&5
21660 sed 's/^/| /' conftest.$ac_ext >&5
21661
21662 echo "$as_me:$LINENO: result: yes" >&5
21663 echo "${ECHO_T}yes" >&6
21664
21665 cat >>confdefs.h <<\_ACEOF
21666 #define NEED_GET_ZONE_COUNTS 1
21667 _ACEOF
21668
21669
21670 echo "$as_me:$LINENO: checking whether symbol get_zone_counts is exported" >&5
21671 echo $ECHO_N "checking whether symbol get_zone_counts is exported... $ECHO_C" >&6
21672 grep -q -E '[[:space:]]get_zone_counts[[:space:]]' \
21673 $LINUX_OBJ/Module*.symvers 2>/dev/null
21674 rc=$?
21675 if test $rc -ne 0; then
21676 export=0
21677 for file in ; do
21678 grep -q -E "EXPORT_SYMBOL.*(get_zone_counts)" \
21679 "$LINUX_OBJ/$file" 2>/dev/null
21680 rc=$?
21681 if test $rc -eq 0; then
21682 export=1
21683 break;
21684 fi
21685 done
21686 if test $export -eq 0; then
21687 echo "$as_me:$LINENO: result: no" >&5
21688 echo "${ECHO_T}no" >&6
21689
21690 else
21691 echo "$as_me:$LINENO: result: yes" >&5
21692 echo "${ECHO_T}yes" >&6
21693
21694 cat >>confdefs.h <<\_ACEOF
21695 #define HAVE_GET_ZONE_COUNTS 1
21696 _ACEOF
21697
21698 fi
21699 else
21700 echo "$as_me:$LINENO: result: yes" >&5
21701 echo "${ECHO_T}yes" >&6
21702
21703 cat >>confdefs.h <<\_ACEOF
21704 #define HAVE_GET_ZONE_COUNTS 1
21705 _ACEOF
21706
21707 fi
21708
21709
21710
21711
21712 fi
21713
21714 rm -Rf build
21715
21716
21717
21718 echo "$as_me:$LINENO: checking whether vfs_unlink() wants 2 args" >&5
21719 echo $ECHO_N "checking whether vfs_unlink() wants 2 args... $ECHO_C" >&6
21720
21721
21722 cat >conftest.c <<_ACEOF
21723 /* confdefs.h. */
21724 _ACEOF
21725 cat confdefs.h >>conftest.$ac_ext
21726 cat >>conftest.$ac_ext <<_ACEOF
21727 /* end confdefs.h. */
21728
21729
21730 #include <linux/fs.h>
21731
21732 int
21733 main (void)
21734 {
21735
21736 vfs_unlink(NULL, NULL);
21737
21738 ;
21739 return 0;
21740 }
21741
21742 _ACEOF
21743
21744
21745 rm -Rf build && mkdir -p build
21746 echo "obj-m := conftest.o" >build/Makefile
21747 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'
21748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21749 (eval $ac_try) 2>&5
21750 ac_status=$?
21751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21752 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21754 (eval $ac_try) 2>&5
21755 ac_status=$?
21756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21757 (exit $ac_status); }; }; then
21758
21759 echo "$as_me:$LINENO: result: yes" >&5
21760 echo "${ECHO_T}yes" >&6
21761
21762 cat >>confdefs.h <<\_ACEOF
21763 #define HAVE_2ARGS_VFS_UNLINK 1
21764 _ACEOF
21765
21766
21767 else
21768 echo "$as_me: failed program was:" >&5
21769 sed 's/^/| /' conftest.$ac_ext >&5
21770
21771 echo "$as_me:$LINENO: result: no" >&5
21772 echo "${ECHO_T}no" >&6
21773
21774
21775
21776 fi
21777
21778 rm -Rf build
21779
21780
21781
21782 echo "$as_me:$LINENO: checking whether vfs_rename() wants 4 args" >&5
21783 echo $ECHO_N "checking whether vfs_rename() wants 4 args... $ECHO_C" >&6
21784
21785
21786 cat >conftest.c <<_ACEOF
21787 /* confdefs.h. */
21788 _ACEOF
21789 cat confdefs.h >>conftest.$ac_ext
21790 cat >>conftest.$ac_ext <<_ACEOF
21791 /* end confdefs.h. */
21792
21793
21794 #include <linux/fs.h>
21795
21796 int
21797 main (void)
21798 {
21799
21800 vfs_rename(NULL, NULL, NULL, NULL);
21801
21802 ;
21803 return 0;
21804 }
21805
21806 _ACEOF
21807
21808
21809 rm -Rf build && mkdir -p build
21810 echo "obj-m := conftest.o" >build/Makefile
21811 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'
21812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21813 (eval $ac_try) 2>&5
21814 ac_status=$?
21815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21816 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21818 (eval $ac_try) 2>&5
21819 ac_status=$?
21820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21821 (exit $ac_status); }; }; then
21822
21823 echo "$as_me:$LINENO: result: yes" >&5
21824 echo "${ECHO_T}yes" >&6
21825
21826 cat >>confdefs.h <<\_ACEOF
21827 #define HAVE_4ARGS_VFS_RENAME 1
21828 _ACEOF
21829
21830
21831 else
21832 echo "$as_me: failed program was:" >&5
21833 sed 's/^/| /' conftest.$ac_ext >&5
21834
21835 echo "$as_me:$LINENO: result: no" >&5
21836 echo "${ECHO_T}no" >&6
21837
21838
21839
21840 fi
21841
21842 rm -Rf build
21843
21844
21845
21846
21847 echo "$as_me:$LINENO: checking whether struct cred exists" >&5
21848 echo $ECHO_N "checking whether struct cred exists... $ECHO_C" >&6
21849
21850
21851 cat >conftest.c <<_ACEOF
21852 /* confdefs.h. */
21853 _ACEOF
21854 cat confdefs.h >>conftest.$ac_ext
21855 cat >>conftest.$ac_ext <<_ACEOF
21856 /* end confdefs.h. */
21857
21858
21859 #include <linux/cred.h>
21860
21861 int
21862 main (void)
21863 {
21864
21865 struct cred *cr;
21866 cr = NULL;
21867
21868 ;
21869 return 0;
21870 }
21871
21872 _ACEOF
21873
21874
21875 rm -Rf build && mkdir -p build
21876 echo "obj-m := conftest.o" >build/Makefile
21877 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'
21878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21879 (eval $ac_try) 2>&5
21880 ac_status=$?
21881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21882 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21884 (eval $ac_try) 2>&5
21885 ac_status=$?
21886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21887 (exit $ac_status); }; }; then
21888
21889 echo "$as_me:$LINENO: result: yes" >&5
21890 echo "${ECHO_T}yes" >&6
21891
21892 cat >>confdefs.h <<\_ACEOF
21893 #define HAVE_CRED_STRUCT 1
21894 _ACEOF
21895
21896
21897 else
21898 echo "$as_me: failed program was:" >&5
21899 sed 's/^/| /' conftest.$ac_ext >&5
21900
21901 echo "$as_me:$LINENO: result: no" >&5
21902 echo "${ECHO_T}no" >&6
21903
21904
21905
21906 fi
21907
21908 rm -Rf build
21909
21910
21911
21912
21913 echo "$as_me:$LINENO: checking whether symbol groups_search is exported" >&5
21914 echo $ECHO_N "checking whether symbol groups_search is exported... $ECHO_C" >&6
21915 grep -q -E '[[:space:]]groups_search[[:space:]]' \
21916 $LINUX_OBJ/Module*.symvers 2>/dev/null
21917 rc=$?
21918 if test $rc -ne 0; then
21919 export=0
21920 for file in ; do
21921 grep -q -E "EXPORT_SYMBOL.*(groups_search)" \
21922 "$LINUX_OBJ/$file" 2>/dev/null
21923 rc=$?
21924 if test $rc -eq 0; then
21925 export=1
21926 break;
21927 fi
21928 done
21929 if test $export -eq 0; then
21930 echo "$as_me:$LINENO: result: no" >&5
21931 echo "${ECHO_T}no" >&6
21932
21933 else
21934 echo "$as_me:$LINENO: result: yes" >&5
21935 echo "${ECHO_T}yes" >&6
21936
21937 cat >>confdefs.h <<\_ACEOF
21938 #define HAVE_GROUPS_SEARCH 1
21939 _ACEOF
21940
21941 fi
21942 else
21943 echo "$as_me:$LINENO: result: yes" >&5
21944 echo "${ECHO_T}yes" >&6
21945
21946 cat >>confdefs.h <<\_ACEOF
21947 #define HAVE_GROUPS_SEARCH 1
21948 _ACEOF
21949
21950 fi
21951
21952
21953
21954 echo "$as_me:$LINENO: checking whether symbol __put_task_struct is exported" >&5
21955 echo $ECHO_N "checking whether symbol __put_task_struct is exported... $ECHO_C" >&6
21956 grep -q -E '[[:space:]]__put_task_struct[[:space:]]' \
21957 $LINUX_OBJ/Module*.symvers 2>/dev/null
21958 rc=$?
21959 if test $rc -ne 0; then
21960 export=0
21961 for file in ; do
21962 grep -q -E "EXPORT_SYMBOL.*(__put_task_struct)" \
21963 "$LINUX_OBJ/$file" 2>/dev/null
21964 rc=$?
21965 if test $rc -eq 0; then
21966 export=1
21967 break;
21968 fi
21969 done
21970 if test $export -eq 0; then
21971 echo "$as_me:$LINENO: result: no" >&5
21972 echo "${ECHO_T}no" >&6
21973
21974 else
21975 echo "$as_me:$LINENO: result: yes" >&5
21976 echo "${ECHO_T}yes" >&6
21977
21978 cat >>confdefs.h <<\_ACEOF
21979 #define HAVE_PUT_TASK_STRUCT 1
21980 _ACEOF
21981
21982 fi
21983 else
21984 echo "$as_me:$LINENO: result: yes" >&5
21985 echo "${ECHO_T}yes" >&6
21986
21987 cat >>confdefs.h <<\_ACEOF
21988 #define HAVE_PUT_TASK_STRUCT 1
21989 _ACEOF
21990
21991 fi
21992
21993
21994 ;;
21995 user) ;;
21996 all)
21997
21998
21999 # Check whether --with-linux or --without-linux was given.
22000 if test "${with_linux+set}" = set; then
22001 withval="$with_linux"
22002 kernelsrc="$withval"
22003 fi;
22004
22005
22006 # Check whether --with-linux-obj or --without-linux-obj was given.
22007 if test "${with_linux_obj+set}" = set; then
22008 withval="$with_linux_obj"
22009 kernelbuild="$withval"
22010 fi;
22011
22012 echo "$as_me:$LINENO: checking kernel source directory" >&5
22013 echo $ECHO_N "checking kernel source directory... $ECHO_C" >&6
22014 if test -z "$kernelsrc"; then
22015 sourcelink=`ls -1d /usr/src/kernels/* /usr/src/linux-* \
22016 2>/dev/null | grep -v obj | tail -1`
22017
22018 if test -e ${sourcelink}; then
22019 kernelsrc=`readlink -f ${sourcelink}`
22020 else
22021 echo "$as_me:$LINENO: result: Not found" >&5
22022 echo "${ECHO_T}Not found" >&6
22023 { { echo "$as_me:$LINENO: error:
22024 *** Please specify the location of the kernel source
22025 *** with the '--with-linux=PATH' option" >&5
22026 echo "$as_me: error:
22027 *** Please specify the location of the kernel source
22028 *** with the '--with-linux=PATH' option" >&2;}
22029 { (exit 1); exit 1; }; }
22030 fi
22031 else
22032 if test "$kernelsrc" = "NONE"; then
22033 kernsrcver=NONE
22034 fi
22035 fi
22036
22037 echo "$as_me:$LINENO: result: $kernelsrc" >&5
22038 echo "${ECHO_T}$kernelsrc" >&6
22039 echo "$as_me:$LINENO: checking kernel build directory" >&5
22040 echo $ECHO_N "checking kernel build directory... $ECHO_C" >&6
22041 if test -z "$kernelbuild"; then
22042 if test -d ${kernelsrc}-obj/`arch`/`arch`; then
22043 kernelbuild=${kernelsrc}-obj/`arch`/`arch`
22044 elif test -d ${kernelsrc}-obj/`arch`/default; then
22045 kernelbuild=${kernelsrc}-obj/`arch`/default
22046 elif test -d `dirname ${kernelsrc}`/build-`arch`; then
22047 kernelbuild=`dirname ${kernelsrc}`/build-`arch`
22048 else
22049 kernelbuild=${kernelsrc}
22050 fi
22051 fi
22052 echo "$as_me:$LINENO: result: $kernelbuild" >&5
22053 echo "${ECHO_T}$kernelbuild" >&6
22054
22055 echo "$as_me:$LINENO: checking kernel source version" >&5
22056 echo $ECHO_N "checking kernel source version... $ECHO_C" >&6
22057 if test -r $kernelbuild/include/linux/version.h &&
22058 fgrep -q UTS_RELEASE $kernelbuild/include/linux/version.h; then
22059
22060 kernsrcver=`(echo "#include <linux/version.h>";
22061 echo "kernsrcver=UTS_RELEASE") |
22062 cpp -I $kernelbuild/include |
22063 grep "^kernsrcver=" | cut -d \" -f 2`
22064
22065 elif test -r $kernelbuild/include/linux/utsrelease.h &&
22066 fgrep -q UTS_RELEASE $kernelbuild/include/linux/utsrelease.h; then
22067
22068 kernsrcver=`(echo "#include <linux/utsrelease.h>";
22069 echo "kernsrcver=UTS_RELEASE") |
22070 cpp -I $kernelbuild/include |
22071 grep "^kernsrcver=" | cut -d \" -f 2`
22072 fi
22073
22074 if test -z "$kernsrcver"; then
22075 echo "$as_me:$LINENO: result: Not found" >&5
22076 echo "${ECHO_T}Not found" >&6
22077 { { echo "$as_me:$LINENO: error:
22078 *** Cannot determine the version of the linux kernel source.
22079 *** Please prepare the kernel before running this script" >&5
22080 echo "$as_me: error:
22081 *** Cannot determine the version of the linux kernel source.
22082 *** Please prepare the kernel before running this script" >&2;}
22083 { (exit 1); exit 1; }; }
22084 fi
22085
22086 echo "$as_me:$LINENO: result: $kernsrcver" >&5
22087 echo "${ECHO_T}$kernsrcver" >&6
22088
22089 LINUX=${kernelsrc}
22090 LINUX_OBJ=${kernelbuild}
22091 LINUX_VERSION=${kernsrcver}
22092
22093
22094
22095
22096
22097
22098 modpost=$LINUX/scripts/Makefile.modpost
22099 echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
22100 echo $ECHO_N "checking kernel file name for module symbols... $ECHO_C" >&6
22101 if test -f "$modpost"; then
22102 if grep -q Modules.symvers $modpost; then
22103 LINUX_SYMBOLS=Modules.symvers
22104 else
22105 LINUX_SYMBOLS=Module.symvers
22106 fi
22107 else
22108 LINUX_SYMBOLS=NONE
22109 fi
22110 echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
22111 echo "${ECHO_T}$LINUX_SYMBOLS" >&6
22112
22113
22114
22115
22116 KERNELMAKE_PARAMS="V=1"
22117
22118 abs_srcdir=`readlink -f ${srcdir}`
22119 KERNELCPPFLAGS="$KERNELCPPFLAGS -Wstrict-prototypes -Werror"
22120 KERNELCPPFLAGS="$KERNELCPPFLAGS -I${abs_srcdir} -I${abs_srcdir}/include"
22121
22122 if test "${LINUX_OBJ}" != "${LINUX}"; then
22123 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
22124 fi
22125
22126
22127
22128
22129
22130 echo "$as_me:$LINENO: checking whether debugging is enabled" >&5
22131 echo $ECHO_N "checking whether debugging is enabled... $ECHO_C" >&6
22132 # Check whether --enable-debug or --disable-debug was given.
22133 if test "${enable_debug+set}" = set; then
22134 enableval="$enable_debug"
22135 case "$enableval" in
22136 yes) spl_ac_debug=yes ;;
22137 no) spl_ac_debug=no ;;
22138 *) echo "$as_me:$LINENO: result: Error!" >&5
22139 echo "${ECHO_T}Error!" >&6
22140 { { echo "$as_me:$LINENO: error: Bad value \"$enableval\" for --enable-debug" >&5
22141 echo "$as_me: error: Bad value \"$enableval\" for --enable-debug" >&2;}
22142 { (exit 1); exit 1; }; } ;;
22143 esac
22144
22145 fi;
22146 if test "$spl_ac_debug" = yes; then
22147 echo "$as_me:$LINENO: result: yes" >&5
22148 echo "${ECHO_T}yes" >&6
22149 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG"
22150 else
22151 echo "$as_me:$LINENO: result: no" >&5
22152 echo "${ECHO_T}no" >&6
22153 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG"
22154 fi
22155
22156
22157 echo "$as_me:$LINENO: checking whether kmem debugging is enabled" >&5
22158 echo $ECHO_N "checking whether kmem debugging is enabled... $ECHO_C" >&6
22159 # Check whether --enable-debug-kmem or --disable-debug-kmem was given.
22160 if test "${enable_debug_kmem+set}" = set; then
22161 enableval="$enable_debug_kmem"
22162 case "$enableval" in
22163 yes) spl_ac_debug_kmem=yes ;;
22164 no) spl_ac_debug_kmem=no ;;
22165 *) echo "$as_me:$LINENO: result: Error!" >&5
22166 echo "${ECHO_T}Error!" >&6
22167 { { echo "$as_me:$LINENO: error: Bad value \"$enableval\" for --enable-debug-kmem" >&5
22168 echo "$as_me: error: Bad value \"$enableval\" for --enable-debug-kmem" >&2;}
22169 { (exit 1); exit 1; }; } ;;
22170 esac
22171
22172 fi;
22173 if test "$spl_ac_debug_kmem" = yes; then
22174 echo "$as_me:$LINENO: result: yes" >&5
22175 echo "${ECHO_T}yes" >&6
22176
22177 cat >>confdefs.h <<\_ACEOF
22178 #define DEBUG_KMEM 1
22179 _ACEOF
22180
22181 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM"
22182 else
22183 echo "$as_me:$LINENO: result: no" >&5
22184 echo "${ECHO_T}no" >&6
22185 fi
22186
22187
22188 echo "$as_me:$LINENO: checking whether kstat debugging is enabled" >&5
22189 echo $ECHO_N "checking whether kstat debugging is enabled... $ECHO_C" >&6
22190 # Check whether --enable-debug-kstat or --disable-debug-kstat was given.
22191 if test "${enable_debug_kstat+set}" = set; then
22192 enableval="$enable_debug_kstat"
22193 case "$enableval" in
22194 yes) spl_ac_debug_kstat=yes ;;
22195 no) spl_ac_debug_kstat=no ;;
22196 *) echo "$as_me:$LINENO: result: Error!" >&5
22197 echo "${ECHO_T}Error!" >&6
22198 { { echo "$as_me:$LINENO: error: Bad value \"$enableval\" for --enable-debug-kstat" >&5
22199 echo "$as_me: error: Bad value \"$enableval\" for --enable-debug-kstat" >&2;}
22200 { (exit 1); exit 1; }; } ;;
22201 esac
22202
22203 fi;
22204 if test "$spl_ac_debug_kstat" = yes; then
22205 echo "$as_me:$LINENO: result: yes" >&5
22206 echo "${ECHO_T}yes" >&6
22207
22208 cat >>confdefs.h <<\_ACEOF
22209 #define DEBUG_KSTAT 1
22210 _ACEOF
22211
22212 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KSTAT"
22213 else
22214 echo "$as_me:$LINENO: result: no" >&5
22215 echo "${ECHO_T}no" >&6
22216 fi
22217
22218
22219 echo "$as_me:$LINENO: checking whether callb debugging is enabled" >&5
22220 echo $ECHO_N "checking whether callb debugging is enabled... $ECHO_C" >&6
22221 # Check whether --enable-debug-callb or --disable-debug-callb was given.
22222 if test "${enable_debug_callb+set}" = set; then
22223 enableval="$enable_debug_callb"
22224 case "$enableval" in
22225 yes) spl_ac_debug_callb=yes ;;
22226 no) spl_ac_debug_callb=no ;;
22227 *) echo "$as_me:$LINENO: result: Error!" >&5
22228 echo "${ECHO_T}Error!" >&6
22229 { { echo "$as_me:$LINENO: error: Bad value \"$enableval\" for --enable-debug-callb" >&5
22230 echo "$as_me: error: Bad value \"$enableval\" for --enable-debug-callb" >&2;}
22231 { (exit 1); exit 1; }; } ;;
22232 esac
22233
22234 fi;
22235 if test "$spl_ac_debug_callb" = yes; then
22236 echo "$as_me:$LINENO: result: yes" >&5
22237 echo "${ECHO_T}yes" >&6
22238
22239 cat >>confdefs.h <<\_ACEOF
22240 #define DEBUG_CALLB 1
22241 _ACEOF
22242
22243 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_CALLB"
22244 else
22245 echo "$as_me:$LINENO: result: no" >&5
22246 echo "${ECHO_T}no" >&6
22247 fi
22248
22249 echo "$as_me:$LINENO: checking whether kernel defines uintptr_t" >&5
22250 echo $ECHO_N "checking whether kernel defines uintptr_t... $ECHO_C" >&6
22251
22252
22253 cat >conftest.c <<_ACEOF
22254 /* confdefs.h. */
22255 _ACEOF
22256 cat confdefs.h >>conftest.$ac_ext
22257 cat >>conftest.$ac_ext <<_ACEOF
22258 /* end confdefs.h. */
22259
22260
22261 #include <linux/types.h>
22262
22263 int
22264 main (void)
22265 {
22266
22267 uintptr_t *ptr;
22268
22269 ;
22270 return 0;
22271 }
22272
22273 _ACEOF
22274
22275
22276 rm -Rf build && mkdir -p build
22277 echo "obj-m := conftest.o" >build/Makefile
22278 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'
22279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22280 (eval $ac_try) 2>&5
22281 ac_status=$?
22282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22283 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22285 (eval $ac_try) 2>&5
22286 ac_status=$?
22287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22288 (exit $ac_status); }; }; then
22289
22290 echo "$as_me:$LINENO: result: yes" >&5
22291 echo "${ECHO_T}yes" >&6
22292
22293 cat >>confdefs.h <<\_ACEOF
22294 #define HAVE_UINTPTR_T 1
22295 _ACEOF
22296
22297
22298 else
22299 echo "$as_me: failed program was:" >&5
22300 sed 's/^/| /' conftest.$ac_ext >&5
22301
22302 echo "$as_me:$LINENO: result: no" >&5
22303 echo "${ECHO_T}no" >&6
22304
22305
22306
22307 fi
22308
22309 rm -Rf build
22310
22311
22312
22313 echo "$as_me:$LINENO: checking whether kernel defines atomic64_t" >&5
22314 echo $ECHO_N "checking whether kernel defines atomic64_t... $ECHO_C" >&6
22315
22316
22317 cat >conftest.c <<_ACEOF
22318 /* confdefs.h. */
22319 _ACEOF
22320 cat confdefs.h >>conftest.$ac_ext
22321 cat >>conftest.$ac_ext <<_ACEOF
22322 /* end confdefs.h. */
22323
22324
22325 #include <asm/atomic.h>
22326
22327 int
22328 main (void)
22329 {
22330
22331 atomic64_t *ptr;
22332
22333 ;
22334 return 0;
22335 }
22336
22337 _ACEOF
22338
22339
22340 rm -Rf build && mkdir -p build
22341 echo "obj-m := conftest.o" >build/Makefile
22342 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'
22343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22344 (eval $ac_try) 2>&5
22345 ac_status=$?
22346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22347 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22349 (eval $ac_try) 2>&5
22350 ac_status=$?
22351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22352 (exit $ac_status); }; }; then
22353
22354 echo "$as_me:$LINENO: result: yes" >&5
22355 echo "${ECHO_T}yes" >&6
22356
22357 cat >>confdefs.h <<\_ACEOF
22358 #define HAVE_ATOMIC64_T 1
22359 _ACEOF
22360
22361
22362 else
22363 echo "$as_me: failed program was:" >&5
22364 sed 's/^/| /' conftest.$ac_ext >&5
22365
22366 echo "$as_me:$LINENO: result: no" >&5
22367 echo "${ECHO_T}no" >&6
22368
22369
22370
22371 fi
22372
22373 rm -Rf build
22374
22375
22376
22377 echo "$as_me:$LINENO: checking whether INIT_WORK wants 3 args" >&5
22378 echo $ECHO_N "checking whether INIT_WORK wants 3 args... $ECHO_C" >&6
22379
22380
22381 cat >conftest.c <<_ACEOF
22382 /* confdefs.h. */
22383 _ACEOF
22384 cat confdefs.h >>conftest.$ac_ext
22385 cat >>conftest.$ac_ext <<_ACEOF
22386 /* end confdefs.h. */
22387
22388
22389 #include <linux/workqueue.h>
22390
22391 int
22392 main (void)
22393 {
22394
22395 struct work_struct work;
22396 INIT_WORK(&work, NULL, NULL);
22397
22398 ;
22399 return 0;
22400 }
22401
22402 _ACEOF
22403
22404
22405 rm -Rf build && mkdir -p build
22406 echo "obj-m := conftest.o" >build/Makefile
22407 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'
22408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22409 (eval $ac_try) 2>&5
22410 ac_status=$?
22411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22412 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22414 (eval $ac_try) 2>&5
22415 ac_status=$?
22416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22417 (exit $ac_status); }; }; then
22418
22419 echo "$as_me:$LINENO: result: yes" >&5
22420 echo "${ECHO_T}yes" >&6
22421
22422 cat >>confdefs.h <<\_ACEOF
22423 #define HAVE_3ARGS_INIT_WORK 1
22424 _ACEOF
22425
22426
22427 else
22428 echo "$as_me: failed program was:" >&5
22429 sed 's/^/| /' conftest.$ac_ext >&5
22430
22431 echo "$as_me:$LINENO: result: no" >&5
22432 echo "${ECHO_T}no" >&6
22433
22434
22435
22436 fi
22437
22438 rm -Rf build
22439
22440
22441
22442 echo "$as_me:$LINENO: checking whether register_sysctl_table() wants 2 args" >&5
22443 echo $ECHO_N "checking whether register_sysctl_table() wants 2 args... $ECHO_C" >&6
22444
22445
22446 cat >conftest.c <<_ACEOF
22447 /* confdefs.h. */
22448 _ACEOF
22449 cat confdefs.h >>conftest.$ac_ext
22450 cat >>conftest.$ac_ext <<_ACEOF
22451 /* end confdefs.h. */
22452
22453
22454 #include <linux/sysctl.h>
22455
22456 int
22457 main (void)
22458 {
22459
22460 return register_sysctl_table(NULL,0);
22461
22462 ;
22463 return 0;
22464 }
22465
22466 _ACEOF
22467
22468
22469 rm -Rf build && mkdir -p build
22470 echo "obj-m := conftest.o" >build/Makefile
22471 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'
22472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22473 (eval $ac_try) 2>&5
22474 ac_status=$?
22475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22476 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22478 (eval $ac_try) 2>&5
22479 ac_status=$?
22480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22481 (exit $ac_status); }; }; then
22482
22483 echo "$as_me:$LINENO: result: yes" >&5
22484 echo "${ECHO_T}yes" >&6
22485
22486 cat >>confdefs.h <<\_ACEOF
22487 #define HAVE_2ARGS_REGISTER_SYSCTL 1
22488 _ACEOF
22489
22490
22491 else
22492 echo "$as_me: failed program was:" >&5
22493 sed 's/^/| /' conftest.$ac_ext >&5
22494
22495 echo "$as_me:$LINENO: result: no" >&5
22496 echo "${ECHO_T}no" >&6
22497
22498
22499
22500 fi
22501
22502 rm -Rf build
22503
22504
22505
22506
22507 echo "$as_me:$LINENO: checking whether set_shrinker() available" >&5
22508 echo $ECHO_N "checking whether set_shrinker() available... $ECHO_C" >&6
22509
22510
22511 cat >conftest.c <<_ACEOF
22512 /* confdefs.h. */
22513 _ACEOF
22514 cat confdefs.h >>conftest.$ac_ext
22515 cat >>conftest.$ac_ext <<_ACEOF
22516 /* end confdefs.h. */
22517
22518
22519 #include <linux/mm.h>
22520
22521 int
22522 main (void)
22523 {
22524
22525 return set_shrinker(DEFAULT_SEEKS, NULL);
22526
22527 ;
22528 return 0;
22529 }
22530
22531 _ACEOF
22532
22533
22534 rm -Rf build && mkdir -p build
22535 echo "obj-m := conftest.o" >build/Makefile
22536 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'
22537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22538 (eval $ac_try) 2>&5
22539 ac_status=$?
22540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22541 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22543 (eval $ac_try) 2>&5
22544 ac_status=$?
22545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22546 (exit $ac_status); }; }; then
22547
22548 echo "$as_me:$LINENO: result: yes" >&5
22549 echo "${ECHO_T}yes" >&6
22550
22551 cat >>confdefs.h <<\_ACEOF
22552 #define HAVE_SET_SHRINKER 1
22553 _ACEOF
22554
22555
22556 else
22557 echo "$as_me: failed program was:" >&5
22558 sed 's/^/| /' conftest.$ac_ext >&5
22559
22560 echo "$as_me:$LINENO: result: no" >&5
22561 echo "${ECHO_T}no" >&6
22562
22563
22564
22565 fi
22566
22567 rm -Rf build
22568
22569
22570
22571 echo "$as_me:$LINENO: checking whether struct path used in struct nameidata" >&5
22572 echo $ECHO_N "checking whether struct path used in struct nameidata... $ECHO_C" >&6
22573
22574
22575 cat >conftest.c <<_ACEOF
22576 /* confdefs.h. */
22577 _ACEOF
22578 cat confdefs.h >>conftest.$ac_ext
22579 cat >>conftest.$ac_ext <<_ACEOF
22580 /* end confdefs.h. */
22581
22582
22583 #include <linux/namei.h>
22584
22585 int
22586 main (void)
22587 {
22588
22589 struct nameidata nd;
22590
22591 nd.path.mnt = NULL;
22592 nd.path.dentry = NULL;
22593
22594 ;
22595 return 0;
22596 }
22597
22598 _ACEOF
22599
22600
22601 rm -Rf build && mkdir -p build
22602 echo "obj-m := conftest.o" >build/Makefile
22603 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'
22604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22605 (eval $ac_try) 2>&5
22606 ac_status=$?
22607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22608 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22610 (eval $ac_try) 2>&5
22611 ac_status=$?
22612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22613 (exit $ac_status); }; }; then
22614
22615 echo "$as_me:$LINENO: result: yes" >&5
22616 echo "${ECHO_T}yes" >&6
22617
22618 cat >>confdefs.h <<\_ACEOF
22619 #define HAVE_PATH_IN_NAMEIDATA 1
22620 _ACEOF
22621
22622
22623 else
22624 echo "$as_me: failed program was:" >&5
22625 sed 's/^/| /' conftest.$ac_ext >&5
22626
22627 echo "$as_me:$LINENO: result: no" >&5
22628 echo "${ECHO_T}no" >&6
22629
22630
22631
22632 fi
22633
22634 rm -Rf build
22635
22636
22637
22638
22639 echo "$as_me:$LINENO: checking whether symbol task_curr is exported" >&5
22640 echo $ECHO_N "checking whether symbol task_curr is exported... $ECHO_C" >&6
22641 grep -q -E '[[:space:]]task_curr[[:space:]]' \
22642 $LINUX_OBJ/Module*.symvers 2>/dev/null
22643 rc=$?
22644 if test $rc -ne 0; then
22645 export=0
22646 for file in kernel/sched.c; do
22647 grep -q -E "EXPORT_SYMBOL.*(task_curr)" \
22648 "$LINUX_OBJ/$file" 2>/dev/null
22649 rc=$?
22650 if test $rc -eq 0; then
22651 export=1
22652 break;
22653 fi
22654 done
22655 if test $export -eq 0; then
22656 echo "$as_me:$LINENO: result: no" >&5
22657 echo "${ECHO_T}no" >&6
22658
22659 else
22660 echo "$as_me:$LINENO: result: yes" >&5
22661 echo "${ECHO_T}yes" >&6
22662
22663 cat >>confdefs.h <<\_ACEOF
22664 #define HAVE_TASK_CURR 1
22665 _ACEOF
22666
22667 fi
22668 else
22669 echo "$as_me:$LINENO: result: yes" >&5
22670 echo "${ECHO_T}yes" >&6
22671
22672 cat >>confdefs.h <<\_ACEOF
22673 #define HAVE_TASK_CURR 1
22674 _ACEOF
22675
22676 fi
22677
22678
22679 echo "$as_me:$LINENO: checking whether unnumbered sysctl support exists" >&5
22680 echo $ECHO_N "checking whether unnumbered sysctl support exists... $ECHO_C" >&6
22681
22682
22683 cat >conftest.c <<_ACEOF
22684 /* confdefs.h. */
22685 _ACEOF
22686 cat confdefs.h >>conftest.$ac_ext
22687 cat >>conftest.$ac_ext <<_ACEOF
22688 /* end confdefs.h. */
22689
22690
22691 #include <linux/sysctl.h>
22692
22693 int
22694 main (void)
22695 {
22696
22697 #ifndef CTL_UNNUMBERED
22698 #error CTL_UNNUMBERED undefined
22699 #endif
22700
22701 ;
22702 return 0;
22703 }
22704
22705 _ACEOF
22706
22707
22708 rm -Rf build && mkdir -p build
22709 echo "obj-m := conftest.o" >build/Makefile
22710 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'
22711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22712 (eval $ac_try) 2>&5
22713 ac_status=$?
22714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22715 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
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); }; }; then
22721
22722 echo "$as_me:$LINENO: result: yes" >&5
22723 echo "${ECHO_T}yes" >&6
22724
22725 cat >>confdefs.h <<\_ACEOF
22726 #define HAVE_CTL_UNNUMBERED 1
22727 _ACEOF
22728
22729
22730 else
22731 echo "$as_me: failed program was:" >&5
22732 sed 's/^/| /' conftest.$ac_ext >&5
22733
22734 echo "$as_me:$LINENO: result: no" >&5
22735 echo "${ECHO_T}no" >&6
22736
22737
22738
22739 fi
22740
22741 rm -Rf build
22742
22743
22744
22745 echo "$as_me:$LINENO: checking whether fls64() is available" >&5
22746 echo $ECHO_N "checking whether fls64() is available... $ECHO_C" >&6
22747
22748
22749 cat >conftest.c <<_ACEOF
22750 /* confdefs.h. */
22751 _ACEOF
22752 cat confdefs.h >>conftest.$ac_ext
22753 cat >>conftest.$ac_ext <<_ACEOF
22754 /* end confdefs.h. */
22755
22756
22757 #include <linux/bitops.h>
22758
22759 int
22760 main (void)
22761 {
22762
22763 return fls64(0);
22764
22765 ;
22766 return 0;
22767 }
22768
22769 _ACEOF
22770
22771
22772 rm -Rf build && mkdir -p build
22773 echo "obj-m := conftest.o" >build/Makefile
22774 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'
22775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22776 (eval $ac_try) 2>&5
22777 ac_status=$?
22778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22779 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
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); }; }; then
22785
22786 echo "$as_me:$LINENO: result: yes" >&5
22787 echo "${ECHO_T}yes" >&6
22788
22789 cat >>confdefs.h <<\_ACEOF
22790 #define HAVE_FLS64 1
22791 _ACEOF
22792
22793
22794 else
22795 echo "$as_me: failed program was:" >&5
22796 sed 's/^/| /' conftest.$ac_ext >&5
22797
22798 echo "$as_me:$LINENO: result: no" >&5
22799 echo "${ECHO_T}no" >&6
22800
22801
22802
22803 fi
22804
22805 rm -Rf build
22806
22807
22808
22809
22810 echo "$as_me:$LINENO: checking whether symbol device_create is exported" >&5
22811 echo $ECHO_N "checking whether symbol device_create is exported... $ECHO_C" >&6
22812 grep -q -E '[[:space:]]device_create[[:space:]]' \
22813 $LINUX_OBJ/Module*.symvers 2>/dev/null
22814 rc=$?
22815 if test $rc -ne 0; then
22816 export=0
22817 for file in drivers/base/core.c; do
22818 grep -q -E "EXPORT_SYMBOL.*(device_create)" \
22819 "$LINUX_OBJ/$file" 2>/dev/null
22820 rc=$?
22821 if test $rc -eq 0; then
22822 export=1
22823 break;
22824 fi
22825 done
22826 if test $export -eq 0; then
22827 echo "$as_me:$LINENO: result: no" >&5
22828 echo "${ECHO_T}no" >&6
22829
22830 else
22831 echo "$as_me:$LINENO: result: yes" >&5
22832 echo "${ECHO_T}yes" >&6
22833
22834 cat >>confdefs.h <<\_ACEOF
22835 #define HAVE_DEVICE_CREATE 1
22836 _ACEOF
22837
22838 fi
22839 else
22840 echo "$as_me:$LINENO: result: yes" >&5
22841 echo "${ECHO_T}yes" >&6
22842
22843 cat >>confdefs.h <<\_ACEOF
22844 #define HAVE_DEVICE_CREATE 1
22845 _ACEOF
22846
22847 fi
22848
22849
22850
22851 echo "$as_me:$LINENO: checking whether device_create() wants 5 args" >&5
22852 echo $ECHO_N "checking whether device_create() wants 5 args... $ECHO_C" >&6
22853 tmp_flags="$EXTRA_KCFLAGS"
22854 EXTRA_KCFLAGS="-Werror"
22855
22856
22857 cat >conftest.c <<_ACEOF
22858 /* confdefs.h. */
22859 _ACEOF
22860 cat confdefs.h >>conftest.$ac_ext
22861 cat >>conftest.$ac_ext <<_ACEOF
22862 /* end confdefs.h. */
22863
22864
22865 #include <linux/device.h>
22866
22867 int
22868 main (void)
22869 {
22870
22871 device_create(NULL, NULL, 0, NULL, "%d", 1);
22872
22873 ;
22874 return 0;
22875 }
22876
22877 _ACEOF
22878
22879
22880 rm -Rf build && mkdir -p build
22881 echo "obj-m := conftest.o" >build/Makefile
22882 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'
22883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22884 (eval $ac_try) 2>&5
22885 ac_status=$?
22886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22887 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22889 (eval $ac_try) 2>&5
22890 ac_status=$?
22891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22892 (exit $ac_status); }; }; then
22893
22894 echo "$as_me:$LINENO: result: yes" >&5
22895 echo "${ECHO_T}yes" >&6
22896
22897 cat >>confdefs.h <<\_ACEOF
22898 #define HAVE_5ARGS_DEVICE_CREATE 1
22899 _ACEOF
22900
22901
22902 else
22903 echo "$as_me: failed program was:" >&5
22904 sed 's/^/| /' conftest.$ac_ext >&5
22905
22906 echo "$as_me:$LINENO: result: no" >&5
22907 echo "${ECHO_T}no" >&6
22908
22909
22910
22911 fi
22912
22913 rm -Rf build
22914
22915
22916 EXTRA_KCFLAGS="$tmp_flags"
22917
22918
22919 echo "$as_me:$LINENO: checking whether symbol class_device_create is exported" >&5
22920 echo $ECHO_N "checking whether symbol class_device_create is exported... $ECHO_C" >&6
22921 grep -q -E '[[:space:]]class_device_create[[:space:]]' \
22922 $LINUX_OBJ/Module*.symvers 2>/dev/null
22923 rc=$?
22924 if test $rc -ne 0; then
22925 export=0
22926 for file in drivers/base/class.c; do
22927 grep -q -E "EXPORT_SYMBOL.*(class_device_create)" \
22928 "$LINUX_OBJ/$file" 2>/dev/null
22929 rc=$?
22930 if test $rc -eq 0; then
22931 export=1
22932 break;
22933 fi
22934 done
22935 if test $export -eq 0; then
22936 echo "$as_me:$LINENO: result: no" >&5
22937 echo "${ECHO_T}no" >&6
22938
22939 else
22940 echo "$as_me:$LINENO: result: yes" >&5
22941 echo "${ECHO_T}yes" >&6
22942
22943 cat >>confdefs.h <<\_ACEOF
22944 #define HAVE_CLASS_DEVICE_CREATE 1
22945 _ACEOF
22946
22947 fi
22948 else
22949 echo "$as_me:$LINENO: result: yes" >&5
22950 echo "${ECHO_T}yes" >&6
22951
22952 cat >>confdefs.h <<\_ACEOF
22953 #define HAVE_CLASS_DEVICE_CREATE 1
22954 _ACEOF
22955
22956 fi
22957
22958
22959
22960 echo "$as_me:$LINENO: checking whether symbol set_normalized_timespec is exported" >&5
22961 echo $ECHO_N "checking whether symbol set_normalized_timespec is exported... $ECHO_C" >&6
22962 grep -q -E '[[:space:]]set_normalized_timespec[[:space:]]' \
22963 $LINUX_OBJ/Module*.symvers 2>/dev/null
22964 rc=$?
22965 if test $rc -ne 0; then
22966 export=0
22967 for file in kernel/time.c; do
22968 grep -q -E "EXPORT_SYMBOL.*(set_normalized_timespec)" \
22969 "$LINUX_OBJ/$file" 2>/dev/null
22970 rc=$?
22971 if test $rc -eq 0; then
22972 export=1
22973 break;
22974 fi
22975 done
22976 if test $export -eq 0; then
22977 echo "$as_me:$LINENO: result: no" >&5
22978 echo "${ECHO_T}no" >&6
22979
22980 else
22981 echo "$as_me:$LINENO: result: yes" >&5
22982 echo "${ECHO_T}yes" >&6
22983
22984 cat >>confdefs.h <<\_ACEOF
22985 #define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1
22986 _ACEOF
22987
22988 fi
22989 else
22990 echo "$as_me:$LINENO: result: yes" >&5
22991 echo "${ECHO_T}yes" >&6
22992
22993 cat >>confdefs.h <<\_ACEOF
22994 #define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1
22995 _ACEOF
22996
22997 fi
22998
22999
23000
23001 echo "$as_me:$LINENO: checking whether set_normalized_timespec() is an inline" >&5
23002 echo $ECHO_N "checking whether set_normalized_timespec() is an inline... $ECHO_C" >&6
23003
23004
23005 cat >conftest.c <<_ACEOF
23006 /* confdefs.h. */
23007 _ACEOF
23008 cat confdefs.h >>conftest.$ac_ext
23009 cat >>conftest.$ac_ext <<_ACEOF
23010 /* end confdefs.h. */
23011
23012
23013 #include <linux/time.h>
23014 void set_normalized_timespec(struct timespec *ts,
23015 time_t sec, long nsec) { }
23016
23017 int
23018 main (void)
23019 {
23020
23021 ;
23022 return 0;
23023 }
23024
23025 _ACEOF
23026
23027
23028 rm -Rf build && mkdir -p build
23029 echo "obj-m := conftest.o" >build/Makefile
23030 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'
23031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23032 (eval $ac_try) 2>&5
23033 ac_status=$?
23034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23035 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23037 (eval $ac_try) 2>&5
23038 ac_status=$?
23039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23040 (exit $ac_status); }; }; then
23041
23042 echo "$as_me:$LINENO: result: no" >&5
23043 echo "${ECHO_T}no" >&6
23044
23045 else
23046 echo "$as_me: failed program was:" >&5
23047 sed 's/^/| /' conftest.$ac_ext >&5
23048
23049 echo "$as_me:$LINENO: result: yes" >&5
23050 echo "${ECHO_T}yes" >&6
23051
23052 cat >>confdefs.h <<\_ACEOF
23053 #define HAVE_SET_NORMALIZED_TIMESPEC_INLINE 1
23054 _ACEOF
23055
23056
23057
23058
23059 fi
23060
23061 rm -Rf build
23062
23063
23064
23065
23066 echo "$as_me:$LINENO: checking whether timespec_sub() is available" >&5
23067 echo $ECHO_N "checking whether timespec_sub() is available... $ECHO_C" >&6
23068
23069
23070 cat >conftest.c <<_ACEOF
23071 /* confdefs.h. */
23072 _ACEOF
23073 cat confdefs.h >>conftest.$ac_ext
23074 cat >>conftest.$ac_ext <<_ACEOF
23075 /* end confdefs.h. */
23076
23077
23078 #include <linux/time.h>
23079
23080 int
23081 main (void)
23082 {
23083
23084 struct timespec a, b, c = { 0 };
23085 c = timespec_sub(a, b);
23086
23087 ;
23088 return 0;
23089 }
23090
23091 _ACEOF
23092
23093
23094 rm -Rf build && mkdir -p build
23095 echo "obj-m := conftest.o" >build/Makefile
23096 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'
23097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23098 (eval $ac_try) 2>&5
23099 ac_status=$?
23100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23101 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23103 (eval $ac_try) 2>&5
23104 ac_status=$?
23105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23106 (exit $ac_status); }; }; then
23107
23108 echo "$as_me:$LINENO: result: yes" >&5
23109 echo "${ECHO_T}yes" >&6
23110
23111 cat >>confdefs.h <<\_ACEOF
23112 #define HAVE_TIMESPEC_SUB 1
23113 _ACEOF
23114
23115
23116 else
23117 echo "$as_me: failed program was:" >&5
23118 sed 's/^/| /' conftest.$ac_ext >&5
23119
23120 echo "$as_me:$LINENO: result: no" >&5
23121 echo "${ECHO_T}no" >&6
23122
23123
23124
23125 fi
23126
23127 rm -Rf build
23128
23129
23130
23131
23132 echo "$as_me:$LINENO: checking whether init_utsname() is available" >&5
23133 echo $ECHO_N "checking whether init_utsname() is available... $ECHO_C" >&6
23134
23135
23136 cat >conftest.c <<_ACEOF
23137 /* confdefs.h. */
23138 _ACEOF
23139 cat confdefs.h >>conftest.$ac_ext
23140 cat >>conftest.$ac_ext <<_ACEOF
23141 /* end confdefs.h. */
23142
23143
23144 #include <linux/utsname.h>
23145
23146 int
23147 main (void)
23148 {
23149
23150 struct new_utsname *a = init_utsname();
23151
23152 ;
23153 return 0;
23154 }
23155
23156 _ACEOF
23157
23158
23159 rm -Rf build && mkdir -p build
23160 echo "obj-m := conftest.o" >build/Makefile
23161 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'
23162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23163 (eval $ac_try) 2>&5
23164 ac_status=$?
23165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23166 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23168 (eval $ac_try) 2>&5
23169 ac_status=$?
23170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23171 (exit $ac_status); }; }; then
23172
23173 echo "$as_me:$LINENO: result: yes" >&5
23174 echo "${ECHO_T}yes" >&6
23175
23176 cat >>confdefs.h <<\_ACEOF
23177 #define HAVE_INIT_UTSNAME 1
23178 _ACEOF
23179
23180
23181 else
23182 echo "$as_me: failed program was:" >&5
23183 sed 's/^/| /' conftest.$ac_ext >&5
23184
23185 echo "$as_me:$LINENO: result: no" >&5
23186 echo "${ECHO_T}no" >&6
23187
23188
23189
23190 fi
23191
23192 rm -Rf build
23193
23194
23195
23196
23197 echo "$as_me:$LINENO: checking whether header linux/fdtable.h exists" >&5
23198 echo $ECHO_N "checking whether header linux/fdtable.h exists... $ECHO_C" >&6
23199
23200
23201 cat >conftest.c <<_ACEOF
23202 /* confdefs.h. */
23203 _ACEOF
23204 cat confdefs.h >>conftest.$ac_ext
23205 cat >>conftest.$ac_ext <<_ACEOF
23206 /* end confdefs.h. */
23207
23208
23209 #include <linux/fdtable.h>
23210
23211 int
23212 main (void)
23213 {
23214
23215 return 0;
23216
23217 ;
23218 return 0;
23219 }
23220
23221 _ACEOF
23222
23223
23224 rm -Rf build && mkdir -p build
23225 echo "obj-m := conftest.o" >build/Makefile
23226 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'
23227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23228 (eval $ac_try) 2>&5
23229 ac_status=$?
23230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23231 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23233 (eval $ac_try) 2>&5
23234 ac_status=$?
23235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23236 (exit $ac_status); }; }; then
23237
23238
23239 cat >>confdefs.h <<\_ACEOF
23240 #define HAVE_FDTABLE_HEADER 1
23241 _ACEOF
23242
23243 echo "$as_me:$LINENO: result: yes" >&5
23244 echo "${ECHO_T}yes" >&6
23245
23246
23247 else
23248 echo "$as_me: failed program was:" >&5
23249 sed 's/^/| /' conftest.$ac_ext >&5
23250
23251 echo "$as_me:$LINENO: result: no" >&5
23252 echo "${ECHO_T}no" >&6
23253
23254
23255
23256
23257 fi
23258
23259 rm -Rf build
23260
23261
23262
23263
23264
23265 echo "$as_me:$LINENO: checking whether files_fdtable() is available" >&5
23266 echo $ECHO_N "checking whether files_fdtable() is available... $ECHO_C" >&6
23267
23268
23269 cat >conftest.c <<_ACEOF
23270 /* confdefs.h. */
23271 _ACEOF
23272 cat confdefs.h >>conftest.$ac_ext
23273 cat >>conftest.$ac_ext <<_ACEOF
23274 /* end confdefs.h. */
23275
23276
23277 #include <linux/sched.h>
23278 #include <linux/file.h>
23279 #ifdef HAVE_FDTABLE_HEADER
23280 #include <linux/fdtable.h>
23281 #endif
23282
23283 int
23284 main (void)
23285 {
23286
23287 struct files_struct *files = current->files;
23288 struct fdtable *fdt = files_fdtable(files);
23289
23290 ;
23291 return 0;
23292 }
23293
23294 _ACEOF
23295
23296
23297 rm -Rf build && mkdir -p build
23298 echo "obj-m := conftest.o" >build/Makefile
23299 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'
23300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23301 (eval $ac_try) 2>&5
23302 ac_status=$?
23303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23304 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23306 (eval $ac_try) 2>&5
23307 ac_status=$?
23308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23309 (exit $ac_status); }; }; then
23310
23311 echo "$as_me:$LINENO: result: yes" >&5
23312 echo "${ECHO_T}yes" >&6
23313
23314 cat >>confdefs.h <<\_ACEOF
23315 #define HAVE_FILES_FDTABLE 1
23316 _ACEOF
23317
23318
23319 else
23320 echo "$as_me: failed program was:" >&5
23321 sed 's/^/| /' conftest.$ac_ext >&5
23322
23323 echo "$as_me:$LINENO: result: no" >&5
23324 echo "${ECHO_T}no" >&6
23325
23326
23327
23328 fi
23329
23330 rm -Rf build
23331
23332
23333
23334
23335 echo "$as_me:$LINENO: checking whether header linux/uaccess.h exists" >&5
23336 echo $ECHO_N "checking whether header linux/uaccess.h exists... $ECHO_C" >&6
23337
23338
23339 cat >conftest.c <<_ACEOF
23340 /* confdefs.h. */
23341 _ACEOF
23342 cat confdefs.h >>conftest.$ac_ext
23343 cat >>conftest.$ac_ext <<_ACEOF
23344 /* end confdefs.h. */
23345
23346
23347 #include <linux/uaccess.h>
23348
23349 int
23350 main (void)
23351 {
23352
23353 return 0;
23354
23355 ;
23356 return 0;
23357 }
23358
23359 _ACEOF
23360
23361
23362 rm -Rf build && mkdir -p build
23363 echo "obj-m := conftest.o" >build/Makefile
23364 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'
23365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23366 (eval $ac_try) 2>&5
23367 ac_status=$?
23368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23369 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23371 (eval $ac_try) 2>&5
23372 ac_status=$?
23373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23374 (exit $ac_status); }; }; then
23375
23376
23377 cat >>confdefs.h <<\_ACEOF
23378 #define HAVE_UACCESS_HEADER 1
23379 _ACEOF
23380
23381 echo "$as_me:$LINENO: result: yes" >&5
23382 echo "${ECHO_T}yes" >&6
23383
23384
23385 else
23386 echo "$as_me: failed program was:" >&5
23387 sed 's/^/| /' conftest.$ac_ext >&5
23388
23389 echo "$as_me:$LINENO: result: no" >&5
23390 echo "${ECHO_T}no" >&6
23391
23392
23393
23394
23395 fi
23396
23397 rm -Rf build
23398
23399
23400
23401
23402
23403 echo "$as_me:$LINENO: checking whether kmalloc_node() is available" >&5
23404 echo $ECHO_N "checking whether kmalloc_node() is available... $ECHO_C" >&6
23405
23406
23407 cat >conftest.c <<_ACEOF
23408 /* confdefs.h. */
23409 _ACEOF
23410 cat confdefs.h >>conftest.$ac_ext
23411 cat >>conftest.$ac_ext <<_ACEOF
23412 /* end confdefs.h. */
23413
23414
23415 #include <linux/slab.h>
23416
23417 int
23418 main (void)
23419 {
23420
23421 void *a = kmalloc_node(1, GFP_KERNEL, 0);
23422
23423 ;
23424 return 0;
23425 }
23426
23427 _ACEOF
23428
23429
23430 rm -Rf build && mkdir -p build
23431 echo "obj-m := conftest.o" >build/Makefile
23432 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'
23433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23434 (eval $ac_try) 2>&5
23435 ac_status=$?
23436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23437 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23439 (eval $ac_try) 2>&5
23440 ac_status=$?
23441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23442 (exit $ac_status); }; }; then
23443
23444 echo "$as_me:$LINENO: result: yes" >&5
23445 echo "${ECHO_T}yes" >&6
23446
23447 cat >>confdefs.h <<\_ACEOF
23448 #define HAVE_KMALLOC_NODE 1
23449 _ACEOF
23450
23451
23452 else
23453 echo "$as_me: failed program was:" >&5
23454 sed 's/^/| /' conftest.$ac_ext >&5
23455
23456 echo "$as_me:$LINENO: result: no" >&5
23457 echo "${ECHO_T}no" >&6
23458
23459
23460
23461 fi
23462
23463 rm -Rf build
23464
23465
23466
23467
23468 echo "$as_me:$LINENO: checking whether symbol monotonic_clock is exported" >&5
23469 echo $ECHO_N "checking whether symbol monotonic_clock is exported... $ECHO_C" >&6
23470 grep -q -E '[[:space:]]monotonic_clock[[:space:]]' \
23471 $LINUX_OBJ/Module*.symvers 2>/dev/null
23472 rc=$?
23473 if test $rc -ne 0; then
23474 export=0
23475 for file in ; do
23476 grep -q -E "EXPORT_SYMBOL.*(monotonic_clock)" \
23477 "$LINUX_OBJ/$file" 2>/dev/null
23478 rc=$?
23479 if test $rc -eq 0; then
23480 export=1
23481 break;
23482 fi
23483 done
23484 if test $export -eq 0; then
23485 echo "$as_me:$LINENO: result: no" >&5
23486 echo "${ECHO_T}no" >&6
23487
23488 else
23489 echo "$as_me:$LINENO: result: yes" >&5
23490 echo "${ECHO_T}yes" >&6
23491
23492 cat >>confdefs.h <<\_ACEOF
23493 #define HAVE_MONOTONIC_CLOCK 1
23494 _ACEOF
23495
23496 fi
23497 else
23498 echo "$as_me:$LINENO: result: yes" >&5
23499 echo "${ECHO_T}yes" >&6
23500
23501 cat >>confdefs.h <<\_ACEOF
23502 #define HAVE_MONOTONIC_CLOCK 1
23503 _ACEOF
23504
23505 fi
23506
23507
23508
23509 echo "$as_me:$LINENO: checking whether struct inode has i_mutex" >&5
23510 echo $ECHO_N "checking whether struct inode has i_mutex... $ECHO_C" >&6
23511
23512
23513 cat >conftest.c <<_ACEOF
23514 /* confdefs.h. */
23515 _ACEOF
23516 cat confdefs.h >>conftest.$ac_ext
23517 cat >>conftest.$ac_ext <<_ACEOF
23518 /* end confdefs.h. */
23519
23520
23521 #include <linux/fs.h>
23522 #include <linux/mutex.h>
23523
23524 int
23525 main (void)
23526 {
23527
23528 struct inode i;
23529 mutex_init(&i.i_mutex);
23530
23531 ;
23532 return 0;
23533 }
23534
23535 _ACEOF
23536
23537
23538 rm -Rf build && mkdir -p build
23539 echo "obj-m := conftest.o" >build/Makefile
23540 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'
23541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23542 (eval $ac_try) 2>&5
23543 ac_status=$?
23544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23545 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23547 (eval $ac_try) 2>&5
23548 ac_status=$?
23549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23550 (exit $ac_status); }; }; then
23551
23552 echo "$as_me:$LINENO: result: yes" >&5
23553 echo "${ECHO_T}yes" >&6
23554
23555 cat >>confdefs.h <<\_ACEOF
23556 #define HAVE_INODE_I_MUTEX 1
23557 _ACEOF
23558
23559
23560 else
23561 echo "$as_me: failed program was:" >&5
23562 sed 's/^/| /' conftest.$ac_ext >&5
23563
23564 echo "$as_me:$LINENO: result: no" >&5
23565 echo "${ECHO_T}no" >&6
23566
23567
23568
23569 fi
23570
23571 rm -Rf build
23572
23573
23574
23575
23576 echo "$as_me:$LINENO: checking whether struct mutex has owner" >&5
23577 echo $ECHO_N "checking whether struct mutex has owner... $ECHO_C" >&6
23578
23579
23580 cat >conftest.c <<_ACEOF
23581 /* confdefs.h. */
23582 _ACEOF
23583 cat confdefs.h >>conftest.$ac_ext
23584 cat >>conftest.$ac_ext <<_ACEOF
23585 /* end confdefs.h. */
23586
23587
23588 #include <linux/mutex.h>
23589
23590 int
23591 main (void)
23592 {
23593
23594 struct mutex mtx;
23595 mtx.owner = NULL;
23596
23597 ;
23598 return 0;
23599 }
23600
23601 _ACEOF
23602
23603
23604 rm -Rf build && mkdir -p build
23605 echo "obj-m := conftest.o" >build/Makefile
23606 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'
23607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23608 (eval $ac_try) 2>&5
23609 ac_status=$?
23610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23611 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23613 (eval $ac_try) 2>&5
23614 ac_status=$?
23615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23616 (exit $ac_status); }; }; then
23617
23618 echo "$as_me:$LINENO: result: yes" >&5
23619 echo "${ECHO_T}yes" >&6
23620
23621 cat >>confdefs.h <<\_ACEOF
23622 #define HAVE_MUTEX_OWNER 1
23623 _ACEOF
23624
23625
23626 else
23627 echo "$as_me: failed program was:" >&5
23628 sed 's/^/| /' conftest.$ac_ext >&5
23629
23630 echo "$as_me:$LINENO: result: no" >&5
23631 echo "${ECHO_T}no" >&6
23632
23633
23634
23635 fi
23636
23637 rm -Rf build
23638
23639
23640
23641
23642 echo "$as_me:$LINENO: checking whether mutex_lock_nested() is available" >&5
23643 echo $ECHO_N "checking whether mutex_lock_nested() is available... $ECHO_C" >&6
23644
23645
23646 cat >conftest.c <<_ACEOF
23647 /* confdefs.h. */
23648 _ACEOF
23649 cat confdefs.h >>conftest.$ac_ext
23650 cat >>conftest.$ac_ext <<_ACEOF
23651 /* end confdefs.h. */
23652
23653
23654 #include <linux/mutex.h>
23655
23656 int
23657 main (void)
23658 {
23659
23660 struct mutex mutex;
23661 mutex_init(&mutex);
23662 mutex_lock_nested(&mutex, 0);
23663
23664 ;
23665 return 0;
23666 }
23667
23668 _ACEOF
23669
23670
23671 rm -Rf build && mkdir -p build
23672 echo "obj-m := conftest.o" >build/Makefile
23673 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'
23674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23675 (eval $ac_try) 2>&5
23676 ac_status=$?
23677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23678 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23680 (eval $ac_try) 2>&5
23681 ac_status=$?
23682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23683 (exit $ac_status); }; }; then
23684
23685 echo "$as_me:$LINENO: result: yes" >&5
23686 echo "${ECHO_T}yes" >&6
23687
23688 cat >>confdefs.h <<\_ACEOF
23689 #define HAVE_MUTEX_LOCK_NESTED 1
23690 _ACEOF
23691
23692
23693 else
23694 echo "$as_me: failed program was:" >&5
23695 sed 's/^/| /' conftest.$ac_ext >&5
23696
23697 echo "$as_me:$LINENO: result: no" >&5
23698 echo "${ECHO_T}no" >&6
23699
23700
23701
23702 fi
23703
23704 rm -Rf build
23705
23706
23707
23708
23709 echo "$as_me:$LINENO: checking whether symbol div64_64 is exported" >&5
23710 echo $ECHO_N "checking whether symbol div64_64 is exported... $ECHO_C" >&6
23711 grep -q -E '[[:space:]]div64_64[[:space:]]' \
23712 $LINUX_OBJ/Module*.symvers 2>/dev/null
23713 rc=$?
23714 if test $rc -ne 0; then
23715 export=0
23716 for file in ; do
23717 grep -q -E "EXPORT_SYMBOL.*(div64_64)" \
23718 "$LINUX_OBJ/$file" 2>/dev/null
23719 rc=$?
23720 if test $rc -eq 0; then
23721 export=1
23722 break;
23723 fi
23724 done
23725 if test $export -eq 0; then
23726 echo "$as_me:$LINENO: result: no" >&5
23727 echo "${ECHO_T}no" >&6
23728
23729 else
23730 echo "$as_me:$LINENO: result: yes" >&5
23731 echo "${ECHO_T}yes" >&6
23732
23733 cat >>confdefs.h <<\_ACEOF
23734 #define HAVE_DIV64_64 1
23735 _ACEOF
23736
23737 fi
23738 else
23739 echo "$as_me:$LINENO: result: yes" >&5
23740 echo "${ECHO_T}yes" >&6
23741
23742 cat >>confdefs.h <<\_ACEOF
23743 #define HAVE_DIV64_64 1
23744 _ACEOF
23745
23746 fi
23747
23748
23749
23750 echo "$as_me:$LINENO: checking whether symbol div64_u64 is exported" >&5
23751 echo $ECHO_N "checking whether symbol div64_u64 is exported... $ECHO_C" >&6
23752 grep -q -E '[[:space:]]div64_u64[[:space:]]' \
23753 $LINUX_OBJ/Module*.symvers 2>/dev/null
23754 rc=$?
23755 if test $rc -ne 0; then
23756 export=0
23757 for file in ; do
23758 grep -q -E "EXPORT_SYMBOL.*(div64_u64)" \
23759 "$LINUX_OBJ/$file" 2>/dev/null
23760 rc=$?
23761 if test $rc -eq 0; then
23762 export=1
23763 break;
23764 fi
23765 done
23766 if test $export -eq 0; then
23767 echo "$as_me:$LINENO: result: no" >&5
23768 echo "${ECHO_T}no" >&6
23769
23770 else
23771 echo "$as_me:$LINENO: result: yes" >&5
23772 echo "${ECHO_T}yes" >&6
23773
23774 cat >>confdefs.h <<\_ACEOF
23775 #define HAVE_DIV64_U64 1
23776 _ACEOF
23777
23778 fi
23779 else
23780 echo "$as_me:$LINENO: result: yes" >&5
23781 echo "${ECHO_T}yes" >&6
23782
23783 cat >>confdefs.h <<\_ACEOF
23784 #define HAVE_DIV64_U64 1
23785 _ACEOF
23786
23787 fi
23788
23789
23790
23791 echo "$as_me:$LINENO: checking whether on_each_cpu() wants 3 args" >&5
23792 echo $ECHO_N "checking whether on_each_cpu() wants 3 args... $ECHO_C" >&6
23793
23794
23795 cat >conftest.c <<_ACEOF
23796 /* confdefs.h. */
23797 _ACEOF
23798 cat confdefs.h >>conftest.$ac_ext
23799 cat >>conftest.$ac_ext <<_ACEOF
23800 /* end confdefs.h. */
23801
23802
23803 #include <linux/smp.h>
23804
23805 int
23806 main (void)
23807 {
23808
23809 on_each_cpu(NULL, NULL, 0);
23810
23811 ;
23812 return 0;
23813 }
23814
23815 _ACEOF
23816
23817
23818 rm -Rf build && mkdir -p build
23819 echo "obj-m := conftest.o" >build/Makefile
23820 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'
23821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23822 (eval $ac_try) 2>&5
23823 ac_status=$?
23824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23825 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23827 (eval $ac_try) 2>&5
23828 ac_status=$?
23829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23830 (exit $ac_status); }; }; then
23831
23832 echo "$as_me:$LINENO: result: yes" >&5
23833 echo "${ECHO_T}yes" >&6
23834
23835 cat >>confdefs.h <<\_ACEOF
23836 #define HAVE_3ARGS_ON_EACH_CPU 1
23837 _ACEOF
23838
23839
23840 else
23841 echo "$as_me: failed program was:" >&5
23842 sed 's/^/| /' conftest.$ac_ext >&5
23843
23844 echo "$as_me:$LINENO: result: no" >&5
23845 echo "${ECHO_T}no" >&6
23846
23847
23848
23849 fi
23850
23851 rm -Rf build
23852
23853
23854
23855
23856 echo "$as_me:$LINENO: checking whether symbol kallsyms_lookup_name is exported" >&5
23857 echo $ECHO_N "checking whether symbol kallsyms_lookup_name is exported... $ECHO_C" >&6
23858 grep -q -E '[[:space:]]kallsyms_lookup_name[[:space:]]' \
23859 $LINUX_OBJ/Module*.symvers 2>/dev/null
23860 rc=$?
23861 if test $rc -ne 0; then
23862 export=0
23863 for file in ; do
23864 grep -q -E "EXPORT_SYMBOL.*(kallsyms_lookup_name)" \
23865 "$LINUX_OBJ/$file" 2>/dev/null
23866 rc=$?
23867 if test $rc -eq 0; then
23868 export=1
23869 break;
23870 fi
23871 done
23872 if test $export -eq 0; then
23873 echo "$as_me:$LINENO: result: no" >&5
23874 echo "${ECHO_T}no" >&6
23875
23876 else
23877 echo "$as_me:$LINENO: result: yes" >&5
23878 echo "${ECHO_T}yes" >&6
23879
23880 cat >>confdefs.h <<\_ACEOF
23881 #define HAVE_KALLSYMS_LOOKUP_NAME 1
23882 _ACEOF
23883
23884 fi
23885 else
23886 echo "$as_me:$LINENO: result: yes" >&5
23887 echo "${ECHO_T}yes" >&6
23888
23889 cat >>confdefs.h <<\_ACEOF
23890 #define HAVE_KALLSYMS_LOOKUP_NAME 1
23891 _ACEOF
23892
23893 fi
23894
23895
23896
23897 echo "$as_me:$LINENO: checking whether symbol get_vmalloc_info is exported" >&5
23898 echo $ECHO_N "checking whether symbol get_vmalloc_info is exported... $ECHO_C" >&6
23899 grep -q -E '[[:space:]]get_vmalloc_info[[:space:]]' \
23900 $LINUX_OBJ/Module*.symvers 2>/dev/null
23901 rc=$?
23902 if test $rc -ne 0; then
23903 export=0
23904 for file in ; do
23905 grep -q -E "EXPORT_SYMBOL.*(get_vmalloc_info)" \
23906 "$LINUX_OBJ/$file" 2>/dev/null
23907 rc=$?
23908 if test $rc -eq 0; then
23909 export=1
23910 break;
23911 fi
23912 done
23913 if test $export -eq 0; then
23914 echo "$as_me:$LINENO: result: no" >&5
23915 echo "${ECHO_T}no" >&6
23916
23917 else
23918 echo "$as_me:$LINENO: result: yes" >&5
23919 echo "${ECHO_T}yes" >&6
23920
23921 cat >>confdefs.h <<\_ACEOF
23922 #define HAVE_GET_VMALLOC_INFO 1
23923 _ACEOF
23924
23925 fi
23926 else
23927 echo "$as_me:$LINENO: result: yes" >&5
23928 echo "${ECHO_T}yes" >&6
23929
23930 cat >>confdefs.h <<\_ACEOF
23931 #define HAVE_GET_VMALLOC_INFO 1
23932 _ACEOF
23933
23934 fi
23935
23936
23937
23938 echo "$as_me:$LINENO: checking whether symbol *_pgdat exist" >&5
23939 echo $ECHO_N "checking whether symbol *_pgdat exist... $ECHO_C" >&6
23940 grep -q -E 'first_online_pgdat' $LINUX/include/linux/mmzone.h 2>/dev/null
23941 rc=$?
23942 if test $rc -eq 0; then
23943 echo "$as_me:$LINENO: result: yes" >&5
23944 echo "${ECHO_T}yes" >&6
23945
23946 cat >>confdefs.h <<\_ACEOF
23947 #define HAVE_PGDAT_HELPERS 1
23948 _ACEOF
23949
23950 else
23951 echo "$as_me:$LINENO: result: no" >&5
23952 echo "${ECHO_T}no" >&6
23953 fi
23954
23955
23956 echo "$as_me:$LINENO: checking whether symbol first_online_pgdat is exported" >&5
23957 echo $ECHO_N "checking whether symbol first_online_pgdat is exported... $ECHO_C" >&6
23958 grep -q -E '[[:space:]]first_online_pgdat[[:space:]]' \
23959 $LINUX_OBJ/Module*.symvers 2>/dev/null
23960 rc=$?
23961 if test $rc -ne 0; then
23962 export=0
23963 for file in ; do
23964 grep -q -E "EXPORT_SYMBOL.*(first_online_pgdat)" \
23965 "$LINUX_OBJ/$file" 2>/dev/null
23966 rc=$?
23967 if test $rc -eq 0; then
23968 export=1
23969 break;
23970 fi
23971 done
23972 if test $export -eq 0; then
23973 echo "$as_me:$LINENO: result: no" >&5
23974 echo "${ECHO_T}no" >&6
23975
23976 else
23977 echo "$as_me:$LINENO: result: yes" >&5
23978 echo "${ECHO_T}yes" >&6
23979
23980 cat >>confdefs.h <<\_ACEOF
23981 #define HAVE_FIRST_ONLINE_PGDAT 1
23982 _ACEOF
23983
23984 fi
23985 else
23986 echo "$as_me:$LINENO: result: yes" >&5
23987 echo "${ECHO_T}yes" >&6
23988
23989 cat >>confdefs.h <<\_ACEOF
23990 #define HAVE_FIRST_ONLINE_PGDAT 1
23991 _ACEOF
23992
23993 fi
23994
23995
23996
23997 echo "$as_me:$LINENO: checking whether symbol next_online_pgdat is exported" >&5
23998 echo $ECHO_N "checking whether symbol next_online_pgdat is exported... $ECHO_C" >&6
23999 grep -q -E '[[:space:]]next_online_pgdat[[:space:]]' \
24000 $LINUX_OBJ/Module*.symvers 2>/dev/null
24001 rc=$?
24002 if test $rc -ne 0; then
24003 export=0
24004 for file in ; do
24005 grep -q -E "EXPORT_SYMBOL.*(next_online_pgdat)" \
24006 "$LINUX_OBJ/$file" 2>/dev/null
24007 rc=$?
24008 if test $rc -eq 0; then
24009 export=1
24010 break;
24011 fi
24012 done
24013 if test $export -eq 0; then
24014 echo "$as_me:$LINENO: result: no" >&5
24015 echo "${ECHO_T}no" >&6
24016
24017 else
24018 echo "$as_me:$LINENO: result: yes" >&5
24019 echo "${ECHO_T}yes" >&6
24020
24021 cat >>confdefs.h <<\_ACEOF
24022 #define HAVE_NEXT_ONLINE_PGDAT 1
24023 _ACEOF
24024
24025 fi
24026 else
24027 echo "$as_me:$LINENO: result: yes" >&5
24028 echo "${ECHO_T}yes" >&6
24029
24030 cat >>confdefs.h <<\_ACEOF
24031 #define HAVE_NEXT_ONLINE_PGDAT 1
24032 _ACEOF
24033
24034 fi
24035
24036
24037
24038 echo "$as_me:$LINENO: checking whether symbol next_zone is exported" >&5
24039 echo $ECHO_N "checking whether symbol next_zone is exported... $ECHO_C" >&6
24040 grep -q -E '[[:space:]]next_zone[[:space:]]' \
24041 $LINUX_OBJ/Module*.symvers 2>/dev/null
24042 rc=$?
24043 if test $rc -ne 0; then
24044 export=0
24045 for file in ; do
24046 grep -q -E "EXPORT_SYMBOL.*(next_zone)" \
24047 "$LINUX_OBJ/$file" 2>/dev/null
24048 rc=$?
24049 if test $rc -eq 0; then
24050 export=1
24051 break;
24052 fi
24053 done
24054 if test $export -eq 0; then
24055 echo "$as_me:$LINENO: result: no" >&5
24056 echo "${ECHO_T}no" >&6
24057
24058 else
24059 echo "$as_me:$LINENO: result: yes" >&5
24060 echo "${ECHO_T}yes" >&6
24061
24062 cat >>confdefs.h <<\_ACEOF
24063 #define HAVE_NEXT_ZONE 1
24064 _ACEOF
24065
24066 fi
24067 else
24068 echo "$as_me:$LINENO: result: yes" >&5
24069 echo "${ECHO_T}yes" >&6
24070
24071 cat >>confdefs.h <<\_ACEOF
24072 #define HAVE_NEXT_ZONE 1
24073 _ACEOF
24074
24075 fi
24076
24077
24078
24079 echo "$as_me:$LINENO: checking whether symbol pgdat_list is exported" >&5
24080 echo $ECHO_N "checking whether symbol pgdat_list is exported... $ECHO_C" >&6
24081 grep -q -E '[[:space:]]pgdat_list[[:space:]]' \
24082 $LINUX_OBJ/Module*.symvers 2>/dev/null
24083 rc=$?
24084 if test $rc -ne 0; then
24085 export=0
24086 for file in ; do
24087 grep -q -E "EXPORT_SYMBOL.*(pgdat_list)" \
24088 "$LINUX_OBJ/$file" 2>/dev/null
24089 rc=$?
24090 if test $rc -eq 0; then
24091 export=1
24092 break;
24093 fi
24094 done
24095 if test $export -eq 0; then
24096 echo "$as_me:$LINENO: result: no" >&5
24097 echo "${ECHO_T}no" >&6
24098
24099 else
24100 echo "$as_me:$LINENO: result: yes" >&5
24101 echo "${ECHO_T}yes" >&6
24102
24103 cat >>confdefs.h <<\_ACEOF
24104 #define HAVE_PGDAT_LIST 1
24105 _ACEOF
24106
24107 fi
24108 else
24109 echo "$as_me:$LINENO: result: yes" >&5
24110 echo "${ECHO_T}yes" >&6
24111
24112 cat >>confdefs.h <<\_ACEOF
24113 #define HAVE_PGDAT_LIST 1
24114 _ACEOF
24115
24116 fi
24117
24118
24119
24120 echo "$as_me:$LINENO: checking whether global_page_state() is available" >&5
24121 echo $ECHO_N "checking whether global_page_state() is available... $ECHO_C" >&6
24122
24123
24124 cat >conftest.c <<_ACEOF
24125 /* confdefs.h. */
24126 _ACEOF
24127 cat confdefs.h >>conftest.$ac_ext
24128 cat >>conftest.$ac_ext <<_ACEOF
24129 /* end confdefs.h. */
24130
24131
24132 #include <linux/mm.h>
24133
24134 int
24135 main (void)
24136 {
24137
24138 unsigned long state;
24139 state = global_page_state(0);
24140
24141 ;
24142 return 0;
24143 }
24144
24145 _ACEOF
24146
24147
24148 rm -Rf build && mkdir -p build
24149 echo "obj-m := conftest.o" >build/Makefile
24150 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'
24151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24152 (eval $ac_try) 2>&5
24153 ac_status=$?
24154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24155 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
24156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24157 (eval $ac_try) 2>&5
24158 ac_status=$?
24159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24160 (exit $ac_status); }; }; then
24161
24162 echo "$as_me:$LINENO: result: yes" >&5
24163 echo "${ECHO_T}yes" >&6
24164
24165 cat >>confdefs.h <<\_ACEOF
24166 #define HAVE_GLOBAL_PAGE_STATE 1
24167 _ACEOF
24168
24169
24170 else
24171 echo "$as_me: failed program was:" >&5
24172 sed 's/^/| /' conftest.$ac_ext >&5
24173
24174 echo "$as_me:$LINENO: result: no" >&5
24175 echo "${ECHO_T}no" >&6
24176
24177
24178
24179 fi
24180
24181 rm -Rf build
24182
24183
24184
24185
24186 echo "$as_me:$LINENO: checking whether page state NR_FREE_PAGES is available" >&5
24187 echo $ECHO_N "checking whether page state NR_FREE_PAGES is available... $ECHO_C" >&6
24188
24189
24190 cat >conftest.c <<_ACEOF
24191 /* confdefs.h. */
24192 _ACEOF
24193 cat confdefs.h >>conftest.$ac_ext
24194 cat >>conftest.$ac_ext <<_ACEOF
24195 /* end confdefs.h. */
24196
24197
24198 #include <linux/mm.h>
24199
24200 int
24201 main (void)
24202 {
24203
24204 enum zone_stat_item zsi;
24205 zsi = NR_FREE_PAGES;
24206
24207 ;
24208 return 0;
24209 }
24210
24211 _ACEOF
24212
24213
24214 rm -Rf build && mkdir -p build
24215 echo "obj-m := conftest.o" >build/Makefile
24216 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'
24217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24218 (eval $ac_try) 2>&5
24219 ac_status=$?
24220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24221 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
24222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24223 (eval $ac_try) 2>&5
24224 ac_status=$?
24225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24226 (exit $ac_status); }; }; then
24227
24228 echo "$as_me:$LINENO: result: yes" >&5
24229 echo "${ECHO_T}yes" >&6
24230
24231 cat >>confdefs.h <<\_ACEOF
24232 #define HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES 1
24233 _ACEOF
24234
24235
24236 else
24237 echo "$as_me: failed program was:" >&5
24238 sed 's/^/| /' conftest.$ac_ext >&5
24239
24240 echo "$as_me:$LINENO: result: no" >&5
24241 echo "${ECHO_T}no" >&6
24242
24243
24244
24245 fi
24246
24247 rm -Rf build
24248
24249
24250
24251
24252 echo "$as_me:$LINENO: checking whether page state NR_INACTIVE is available" >&5
24253 echo $ECHO_N "checking whether page state NR_INACTIVE is available... $ECHO_C" >&6
24254
24255
24256 cat >conftest.c <<_ACEOF
24257 /* confdefs.h. */
24258 _ACEOF
24259 cat confdefs.h >>conftest.$ac_ext
24260 cat >>conftest.$ac_ext <<_ACEOF
24261 /* end confdefs.h. */
24262
24263
24264 #include <linux/mm.h>
24265
24266 int
24267 main (void)
24268 {
24269
24270 enum zone_stat_item zsi;
24271 zsi = NR_INACTIVE;
24272
24273 ;
24274 return 0;
24275 }
24276
24277 _ACEOF
24278
24279
24280 rm -Rf build && mkdir -p build
24281 echo "obj-m := conftest.o" >build/Makefile
24282 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'
24283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24284 (eval $ac_try) 2>&5
24285 ac_status=$?
24286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24287 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
24288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24289 (eval $ac_try) 2>&5
24290 ac_status=$?
24291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24292 (exit $ac_status); }; }; then
24293
24294 echo "$as_me:$LINENO: result: yes" >&5
24295 echo "${ECHO_T}yes" >&6
24296
24297 cat >>confdefs.h <<\_ACEOF
24298 #define HAVE_ZONE_STAT_ITEM_NR_INACTIVE 1
24299 _ACEOF
24300
24301
24302 else
24303 echo "$as_me: failed program was:" >&5
24304 sed 's/^/| /' conftest.$ac_ext >&5
24305
24306 echo "$as_me:$LINENO: result: no" >&5
24307 echo "${ECHO_T}no" >&6
24308
24309
24310
24311 fi
24312
24313 rm -Rf build
24314
24315
24316
24317 echo "$as_me:$LINENO: checking whether page state NR_INACTIVE_ANON is available" >&5
24318 echo $ECHO_N "checking whether page state NR_INACTIVE_ANON is available... $ECHO_C" >&6
24319
24320
24321 cat >conftest.c <<_ACEOF
24322 /* confdefs.h. */
24323 _ACEOF
24324 cat confdefs.h >>conftest.$ac_ext
24325 cat >>conftest.$ac_ext <<_ACEOF
24326 /* end confdefs.h. */
24327
24328
24329 #include <linux/mm.h>
24330
24331 int
24332 main (void)
24333 {
24334
24335 enum zone_stat_item zsi;
24336 zsi = NR_INACTIVE_ANON;
24337
24338 ;
24339 return 0;
24340 }
24341
24342 _ACEOF
24343
24344
24345 rm -Rf build && mkdir -p build
24346 echo "obj-m := conftest.o" >build/Makefile
24347 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'
24348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24349 (eval $ac_try) 2>&5
24350 ac_status=$?
24351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24352 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
24353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24354 (eval $ac_try) 2>&5
24355 ac_status=$?
24356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24357 (exit $ac_status); }; }; then
24358
24359 echo "$as_me:$LINENO: result: yes" >&5
24360 echo "${ECHO_T}yes" >&6
24361
24362 cat >>confdefs.h <<\_ACEOF
24363 #define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON 1
24364 _ACEOF
24365
24366
24367 else
24368 echo "$as_me: failed program was:" >&5
24369 sed 's/^/| /' conftest.$ac_ext >&5
24370
24371 echo "$as_me:$LINENO: result: no" >&5
24372 echo "${ECHO_T}no" >&6
24373
24374
24375
24376 fi
24377
24378 rm -Rf build
24379
24380
24381
24382 echo "$as_me:$LINENO: checking whether page state NR_INACTIVE_FILE is available" >&5
24383 echo $ECHO_N "checking whether page state NR_INACTIVE_FILE is available... $ECHO_C" >&6
24384
24385
24386 cat >conftest.c <<_ACEOF
24387 /* confdefs.h. */
24388 _ACEOF
24389 cat confdefs.h >>conftest.$ac_ext
24390 cat >>conftest.$ac_ext <<_ACEOF
24391 /* end confdefs.h. */
24392
24393
24394 #include <linux/mm.h>
24395
24396 int
24397 main (void)
24398 {
24399
24400 enum zone_stat_item zsi;
24401 zsi = NR_INACTIVE_FILE;
24402
24403 ;
24404 return 0;
24405 }
24406
24407 _ACEOF
24408
24409
24410 rm -Rf build && mkdir -p build
24411 echo "obj-m := conftest.o" >build/Makefile
24412 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'
24413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24414 (eval $ac_try) 2>&5
24415 ac_status=$?
24416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24417 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
24418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24419 (eval $ac_try) 2>&5
24420 ac_status=$?
24421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24422 (exit $ac_status); }; }; then
24423
24424 echo "$as_me:$LINENO: result: yes" >&5
24425 echo "${ECHO_T}yes" >&6
24426
24427 cat >>confdefs.h <<\_ACEOF
24428 #define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE 1
24429 _ACEOF
24430
24431
24432 else
24433 echo "$as_me: failed program was:" >&5
24434 sed 's/^/| /' conftest.$ac_ext >&5
24435
24436 echo "$as_me:$LINENO: result: no" >&5
24437 echo "${ECHO_T}no" >&6
24438
24439
24440
24441 fi
24442
24443 rm -Rf build
24444
24445
24446
24447
24448 echo "$as_me:$LINENO: checking whether page state NR_ACTIVE is available" >&5
24449 echo $ECHO_N "checking whether page state NR_ACTIVE is available... $ECHO_C" >&6
24450
24451
24452 cat >conftest.c <<_ACEOF
24453 /* confdefs.h. */
24454 _ACEOF
24455 cat confdefs.h >>conftest.$ac_ext
24456 cat >>conftest.$ac_ext <<_ACEOF
24457 /* end confdefs.h. */
24458
24459
24460 #include <linux/mm.h>
24461
24462 int
24463 main (void)
24464 {
24465
24466 enum zone_stat_item zsi;
24467 zsi = NR_ACTIVE;
24468
24469 ;
24470 return 0;
24471 }
24472
24473 _ACEOF
24474
24475
24476 rm -Rf build && mkdir -p build
24477 echo "obj-m := conftest.o" >build/Makefile
24478 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'
24479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24480 (eval $ac_try) 2>&5
24481 ac_status=$?
24482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24483 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
24484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24485 (eval $ac_try) 2>&5
24486 ac_status=$?
24487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24488 (exit $ac_status); }; }; then
24489
24490 echo "$as_me:$LINENO: result: yes" >&5
24491 echo "${ECHO_T}yes" >&6
24492
24493 cat >>confdefs.h <<\_ACEOF
24494 #define HAVE_ZONE_STAT_ITEM_NR_ACTIVE 1
24495 _ACEOF
24496
24497
24498 else
24499 echo "$as_me: failed program was:" >&5
24500 sed 's/^/| /' conftest.$ac_ext >&5
24501
24502 echo "$as_me:$LINENO: result: no" >&5
24503 echo "${ECHO_T}no" >&6
24504
24505
24506
24507 fi
24508
24509 rm -Rf build
24510
24511
24512
24513 echo "$as_me:$LINENO: checking whether page state NR_ACTIVE_ANON is available" >&5
24514 echo $ECHO_N "checking whether page state NR_ACTIVE_ANON is available... $ECHO_C" >&6
24515
24516
24517 cat >conftest.c <<_ACEOF
24518 /* confdefs.h. */
24519 _ACEOF
24520 cat confdefs.h >>conftest.$ac_ext
24521 cat >>conftest.$ac_ext <<_ACEOF
24522 /* end confdefs.h. */
24523
24524
24525 #include <linux/mm.h>
24526
24527 int
24528 main (void)
24529 {
24530
24531 enum zone_stat_item zsi;
24532 zsi = NR_ACTIVE_ANON;
24533
24534 ;
24535 return 0;
24536 }
24537
24538 _ACEOF
24539
24540
24541 rm -Rf build && mkdir -p build
24542 echo "obj-m := conftest.o" >build/Makefile
24543 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'
24544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24545 (eval $ac_try) 2>&5
24546 ac_status=$?
24547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24548 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
24549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24550 (eval $ac_try) 2>&5
24551 ac_status=$?
24552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24553 (exit $ac_status); }; }; then
24554
24555 echo "$as_me:$LINENO: result: yes" >&5
24556 echo "${ECHO_T}yes" >&6
24557
24558 cat >>confdefs.h <<\_ACEOF
24559 #define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON 1
24560 _ACEOF
24561
24562
24563 else
24564 echo "$as_me: failed program was:" >&5
24565 sed 's/^/| /' conftest.$ac_ext >&5
24566
24567 echo "$as_me:$LINENO: result: no" >&5
24568 echo "${ECHO_T}no" >&6
24569
24570
24571
24572 fi
24573
24574 rm -Rf build
24575
24576
24577
24578 echo "$as_me:$LINENO: checking whether page state NR_ACTIVE_FILE is available" >&5
24579 echo $ECHO_N "checking whether page state NR_ACTIVE_FILE is available... $ECHO_C" >&6
24580
24581
24582 cat >conftest.c <<_ACEOF
24583 /* confdefs.h. */
24584 _ACEOF
24585 cat confdefs.h >>conftest.$ac_ext
24586 cat >>conftest.$ac_ext <<_ACEOF
24587 /* end confdefs.h. */
24588
24589
24590 #include <linux/mm.h>
24591
24592 int
24593 main (void)
24594 {
24595
24596 enum zone_stat_item zsi;
24597 zsi = NR_ACTIVE_FILE;
24598
24599 ;
24600 return 0;
24601 }
24602
24603 _ACEOF
24604
24605
24606 rm -Rf build && mkdir -p build
24607 echo "obj-m := conftest.o" >build/Makefile
24608 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'
24609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24610 (eval $ac_try) 2>&5
24611 ac_status=$?
24612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24613 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
24614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24615 (eval $ac_try) 2>&5
24616 ac_status=$?
24617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24618 (exit $ac_status); }; }; then
24619
24620 echo "$as_me:$LINENO: result: yes" >&5
24621 echo "${ECHO_T}yes" >&6
24622
24623 cat >>confdefs.h <<\_ACEOF
24624 #define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE 1
24625 _ACEOF
24626
24627
24628 else
24629 echo "$as_me: failed program was:" >&5
24630 sed 's/^/| /' conftest.$ac_ext >&5
24631
24632 echo "$as_me:$LINENO: result: no" >&5
24633 echo "${ECHO_T}no" >&6
24634
24635
24636
24637 fi
24638
24639 rm -Rf build
24640
24641
24642
24643
24644 echo "$as_me:$LINENO: checking whether symbol get_zone_counts is needed" >&5
24645 echo $ECHO_N "checking whether symbol get_zone_counts is needed... $ECHO_C" >&6
24646
24647
24648 cat >conftest.c <<_ACEOF
24649 /* confdefs.h. */
24650 _ACEOF
24651 cat confdefs.h >>conftest.$ac_ext
24652 cat >>conftest.$ac_ext <<_ACEOF
24653 /* end confdefs.h. */
24654
24655
24656
24657 int
24658 main (void)
24659 {
24660
24661 #if !defined(HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES)
24662 #error "global_page_state needs NR_FREE_PAGES"
24663 #endif
24664
24665 #if !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE) && \
24666 !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON) && \
24667 !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE)
24668 #error "global_page_state needs NR_ACTIVE*"
24669 #endif
24670
24671 #if !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE) && \
24672 !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON) && \
24673 !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE)
24674 #error "global_page_state needs NR_INACTIVE*"
24675 #endif
24676
24677 ;
24678 return 0;
24679 }
24680
24681 _ACEOF
24682
24683
24684 rm -Rf build && mkdir -p build
24685 echo "obj-m := conftest.o" >build/Makefile
24686 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'
24687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24688 (eval $ac_try) 2>&5
24689 ac_status=$?
24690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24691 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
24692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24693 (eval $ac_try) 2>&5
24694 ac_status=$?
24695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24696 (exit $ac_status); }; }; then
24697
24698 echo "$as_me:$LINENO: result: no" >&5
24699 echo "${ECHO_T}no" >&6
24700
24701 else
24702 echo "$as_me: failed program was:" >&5
24703 sed 's/^/| /' conftest.$ac_ext >&5
24704
24705 echo "$as_me:$LINENO: result: yes" >&5
24706 echo "${ECHO_T}yes" >&6
24707
24708 cat >>confdefs.h <<\_ACEOF
24709 #define NEED_GET_ZONE_COUNTS 1
24710 _ACEOF
24711
24712
24713 echo "$as_me:$LINENO: checking whether symbol get_zone_counts is exported" >&5
24714 echo $ECHO_N "checking whether symbol get_zone_counts is exported... $ECHO_C" >&6
24715 grep -q -E '[[:space:]]get_zone_counts[[:space:]]' \
24716 $LINUX_OBJ/Module*.symvers 2>/dev/null
24717 rc=$?
24718 if test $rc -ne 0; then
24719 export=0
24720 for file in ; do
24721 grep -q -E "EXPORT_SYMBOL.*(get_zone_counts)" \
24722 "$LINUX_OBJ/$file" 2>/dev/null
24723 rc=$?
24724 if test $rc -eq 0; then
24725 export=1
24726 break;
24727 fi
24728 done
24729 if test $export -eq 0; then
24730 echo "$as_me:$LINENO: result: no" >&5
24731 echo "${ECHO_T}no" >&6
24732
24733 else
24734 echo "$as_me:$LINENO: result: yes" >&5
24735 echo "${ECHO_T}yes" >&6
24736
24737 cat >>confdefs.h <<\_ACEOF
24738 #define HAVE_GET_ZONE_COUNTS 1
24739 _ACEOF
24740
24741 fi
24742 else
24743 echo "$as_me:$LINENO: result: yes" >&5
24744 echo "${ECHO_T}yes" >&6
24745
24746 cat >>confdefs.h <<\_ACEOF
24747 #define HAVE_GET_ZONE_COUNTS 1
24748 _ACEOF
24749
24750 fi
24751
24752
24753
24754
24755 fi
24756
24757 rm -Rf build
24758
24759
24760
24761 echo "$as_me:$LINENO: checking whether vfs_unlink() wants 2 args" >&5
24762 echo $ECHO_N "checking whether vfs_unlink() wants 2 args... $ECHO_C" >&6
24763
24764
24765 cat >conftest.c <<_ACEOF
24766 /* confdefs.h. */
24767 _ACEOF
24768 cat confdefs.h >>conftest.$ac_ext
24769 cat >>conftest.$ac_ext <<_ACEOF
24770 /* end confdefs.h. */
24771
24772
24773 #include <linux/fs.h>
24774
24775 int
24776 main (void)
24777 {
24778
24779 vfs_unlink(NULL, NULL);
24780
24781 ;
24782 return 0;
24783 }
24784
24785 _ACEOF
24786
24787
24788 rm -Rf build && mkdir -p build
24789 echo "obj-m := conftest.o" >build/Makefile
24790 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'
24791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24792 (eval $ac_try) 2>&5
24793 ac_status=$?
24794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24795 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
24796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24797 (eval $ac_try) 2>&5
24798 ac_status=$?
24799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24800 (exit $ac_status); }; }; then
24801
24802 echo "$as_me:$LINENO: result: yes" >&5
24803 echo "${ECHO_T}yes" >&6
24804
24805 cat >>confdefs.h <<\_ACEOF
24806 #define HAVE_2ARGS_VFS_UNLINK 1
24807 _ACEOF
24808
24809
24810 else
24811 echo "$as_me: failed program was:" >&5
24812 sed 's/^/| /' conftest.$ac_ext >&5
24813
24814 echo "$as_me:$LINENO: result: no" >&5
24815 echo "${ECHO_T}no" >&6
24816
24817
24818
24819 fi
24820
24821 rm -Rf build
24822
24823
24824
24825 echo "$as_me:$LINENO: checking whether vfs_rename() wants 4 args" >&5
24826 echo $ECHO_N "checking whether vfs_rename() wants 4 args... $ECHO_C" >&6
24827
24828
24829 cat >conftest.c <<_ACEOF
24830 /* confdefs.h. */
24831 _ACEOF
24832 cat confdefs.h >>conftest.$ac_ext
24833 cat >>conftest.$ac_ext <<_ACEOF
24834 /* end confdefs.h. */
24835
24836
24837 #include <linux/fs.h>
24838
24839 int
24840 main (void)
24841 {
24842
24843 vfs_rename(NULL, NULL, NULL, NULL);
24844
24845 ;
24846 return 0;
24847 }
24848
24849 _ACEOF
24850
24851
24852 rm -Rf build && mkdir -p build
24853 echo "obj-m := conftest.o" >build/Makefile
24854 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'
24855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24856 (eval $ac_try) 2>&5
24857 ac_status=$?
24858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24859 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
24860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24861 (eval $ac_try) 2>&5
24862 ac_status=$?
24863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24864 (exit $ac_status); }; }; then
24865
24866 echo "$as_me:$LINENO: result: yes" >&5
24867 echo "${ECHO_T}yes" >&6
24868
24869 cat >>confdefs.h <<\_ACEOF
24870 #define HAVE_4ARGS_VFS_RENAME 1
24871 _ACEOF
24872
24873
24874 else
24875 echo "$as_me: failed program was:" >&5
24876 sed 's/^/| /' conftest.$ac_ext >&5
24877
24878 echo "$as_me:$LINENO: result: no" >&5
24879 echo "${ECHO_T}no" >&6
24880
24881
24882
24883 fi
24884
24885 rm -Rf build
24886
24887
24888
24889
24890 echo "$as_me:$LINENO: checking whether struct cred exists" >&5
24891 echo $ECHO_N "checking whether struct cred exists... $ECHO_C" >&6
24892
24893
24894 cat >conftest.c <<_ACEOF
24895 /* confdefs.h. */
24896 _ACEOF
24897 cat confdefs.h >>conftest.$ac_ext
24898 cat >>conftest.$ac_ext <<_ACEOF
24899 /* end confdefs.h. */
24900
24901
24902 #include <linux/cred.h>
24903
24904 int
24905 main (void)
24906 {
24907
24908 struct cred *cr;
24909 cr = NULL;
24910
24911 ;
24912 return 0;
24913 }
24914
24915 _ACEOF
24916
24917
24918 rm -Rf build && mkdir -p build
24919 echo "obj-m := conftest.o" >build/Makefile
24920 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'
24921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24922 (eval $ac_try) 2>&5
24923 ac_status=$?
24924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24925 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
24926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24927 (eval $ac_try) 2>&5
24928 ac_status=$?
24929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24930 (exit $ac_status); }; }; then
24931
24932 echo "$as_me:$LINENO: result: yes" >&5
24933 echo "${ECHO_T}yes" >&6
24934
24935 cat >>confdefs.h <<\_ACEOF
24936 #define HAVE_CRED_STRUCT 1
24937 _ACEOF
24938
24939
24940 else
24941 echo "$as_me: failed program was:" >&5
24942 sed 's/^/| /' conftest.$ac_ext >&5
24943
24944 echo "$as_me:$LINENO: result: no" >&5
24945 echo "${ECHO_T}no" >&6
24946
24947
24948
24949 fi
24950
24951 rm -Rf build
24952
24953
24954
24955
24956 echo "$as_me:$LINENO: checking whether symbol groups_search is exported" >&5
24957 echo $ECHO_N "checking whether symbol groups_search is exported... $ECHO_C" >&6
24958 grep -q -E '[[:space:]]groups_search[[:space:]]' \
24959 $LINUX_OBJ/Module*.symvers 2>/dev/null
24960 rc=$?
24961 if test $rc -ne 0; then
24962 export=0
24963 for file in ; do
24964 grep -q -E "EXPORT_SYMBOL.*(groups_search)" \
24965 "$LINUX_OBJ/$file" 2>/dev/null
24966 rc=$?
24967 if test $rc -eq 0; then
24968 export=1
24969 break;
24970 fi
24971 done
24972 if test $export -eq 0; then
24973 echo "$as_me:$LINENO: result: no" >&5
24974 echo "${ECHO_T}no" >&6
24975
24976 else
24977 echo "$as_me:$LINENO: result: yes" >&5
24978 echo "${ECHO_T}yes" >&6
24979
24980 cat >>confdefs.h <<\_ACEOF
24981 #define HAVE_GROUPS_SEARCH 1
24982 _ACEOF
24983
24984 fi
24985 else
24986 echo "$as_me:$LINENO: result: yes" >&5
24987 echo "${ECHO_T}yes" >&6
24988
24989 cat >>confdefs.h <<\_ACEOF
24990 #define HAVE_GROUPS_SEARCH 1
24991 _ACEOF
24992
24993 fi
24994
24995
24996
24997 echo "$as_me:$LINENO: checking whether symbol __put_task_struct is exported" >&5
24998 echo $ECHO_N "checking whether symbol __put_task_struct is exported... $ECHO_C" >&6
24999 grep -q -E '[[:space:]]__put_task_struct[[:space:]]' \
25000 $LINUX_OBJ/Module*.symvers 2>/dev/null
25001 rc=$?
25002 if test $rc -ne 0; then
25003 export=0
25004 for file in ; do
25005 grep -q -E "EXPORT_SYMBOL.*(__put_task_struct)" \
25006 "$LINUX_OBJ/$file" 2>/dev/null
25007 rc=$?
25008 if test $rc -eq 0; then
25009 export=1
25010 break;
25011 fi
25012 done
25013 if test $export -eq 0; then
25014 echo "$as_me:$LINENO: result: no" >&5
25015 echo "${ECHO_T}no" >&6
25016
25017 else
25018 echo "$as_me:$LINENO: result: yes" >&5
25019 echo "${ECHO_T}yes" >&6
25020
25021 cat >>confdefs.h <<\_ACEOF
25022 #define HAVE_PUT_TASK_STRUCT 1
25023 _ACEOF
25024
25025 fi
25026 else
25027 echo "$as_me:$LINENO: result: yes" >&5
25028 echo "${ECHO_T}yes" >&6
25029
25030 cat >>confdefs.h <<\_ACEOF
25031 #define HAVE_PUT_TASK_STRUCT 1
25032 _ACEOF
25033
25034 fi
25035
25036
25037
25038 ;;
25039 *)
25040 echo "$as_me:$LINENO: result: Error!" >&5
25041 echo "${ECHO_T}Error!" >&6
25042 { { echo "$as_me:$LINENO: error: Bad value \"$SPL_CONFIG\" for --with-config,
25043 user kernel|user|all" >&5
25044 echo "$as_me: error: Bad value \"$SPL_CONFIG\" for --with-config,
25045 user kernel|user|all" >&2;}
25046 { (exit 1); exit 1; }; } ;;
25047 esac
25048
25049
25050
25051 if test "$SPL_CONFIG" = user ||
25052 test "$SPL_CONFIG" = all; then
25053 CONFIG_USER_TRUE=
25054 CONFIG_USER_FALSE='#'
25055 else
25056 CONFIG_USER_TRUE='#'
25057 CONFIG_USER_FALSE=
25058 fi
25059
25060
25061
25062 if test "$SPL_CONFIG" = kernel ||
25063 test "$SPL_CONFIG" = all; then
25064 CONFIG_KERNEL_TRUE=
25065 CONFIG_KERNEL_FALSE='#'
25066 else
25067 CONFIG_KERNEL_TRUE='#'
25068 CONFIG_KERNEL_FALSE=
25069 fi
25070
25071
25072
25073 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"
25074
25075
25076 cat >confcache <<\_ACEOF
25077 # This file is a shell script that caches the results of configure
25078 # tests run on this system so they can be shared between configure
25079 # scripts and configure runs, see configure's option --config-cache.
25080 # It is not useful on other systems. If it contains results you don't
25081 # want to keep, you may remove or edit it.
25082 #
25083 # config.status only pays attention to the cache file if you give it
25084 # the --recheck option to rerun configure.
25085 #
25086 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25087 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25088 # following values.
25089
25090 _ACEOF
25091
25092 # The following way of writing the cache mishandles newlines in values,
25093 # but we know of no workaround that is simple, portable, and efficient.
25094 # So, don't put newlines in cache variables' values.
25095 # Ultrix sh set writes to stderr and can't be redirected directly,
25096 # and sets the high bit in the cache file unless we assign to the vars.
25097 {
25098 (set) 2>&1 |
25099 case `(ac_space=' '; set | grep ac_space) 2>&1` in
25100 *ac_space=\ *)
25101 # `set' does not quote correctly, so add quotes (double-quote
25102 # substitution turns \\\\ into \\, and sed turns \\ into \).
25103 sed -n \
25104 "s/'/'\\\\''/g;
25105 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25106 ;;
25107 *)
25108 # `set' quotes correctly as required by POSIX, so do not add quotes.
25109 sed -n \
25110 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
25111 ;;
25112 esac;
25113 } |
25114 sed '
25115 t clear
25116 : clear
25117 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25118 t end
25119 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25120 : end' >>confcache
25121 if diff $cache_file confcache >/dev/null 2>&1; then :; else
25122 if test -w $cache_file; then
25123 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
25124 cat confcache >$cache_file
25125 else
25126 echo "not updating unwritable cache $cache_file"
25127 fi
25128 fi
25129 rm -f confcache
25130
25131 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25132 # Let make expand exec_prefix.
25133 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25134
25135 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25136 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25137 # trailing colons and then remove the whole line if VPATH becomes empty
25138 # (actually we leave an empty line to preserve line numbers).
25139 if test "x$srcdir" = x.; then
25140 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25141 s/:*\$(srcdir):*/:/;
25142 s/:*\${srcdir}:*/:/;
25143 s/:*@srcdir@:*/:/;
25144 s/^\([^=]*=[ ]*\):*/\1/;
25145 s/:*$//;
25146 s/^[^=]*=[ ]*$//;
25147 }'
25148 fi
25149
25150 DEFS=-DHAVE_CONFIG_H
25151
25152 ac_libobjs=
25153 ac_ltlibobjs=
25154 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25155 # 1. Remove the extension, and $U if already installed.
25156 ac_i=`echo "$ac_i" |
25157 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
25158 # 2. Add them.
25159 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
25160 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
25161 done
25162 LIBOBJS=$ac_libobjs
25163
25164 LTLIBOBJS=$ac_ltlibobjs
25165
25166
25167 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
25168 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
25169 Usually this means the macro was only invoked conditionally." >&5
25170 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
25171 Usually this means the macro was only invoked conditionally." >&2;}
25172 { (exit 1); exit 1; }; }
25173 fi
25174 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25175 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
25176 Usually this means the macro was only invoked conditionally." >&5
25177 echo "$as_me: error: conditional \"AMDEP\" was never defined.
25178 Usually this means the macro was only invoked conditionally." >&2;}
25179 { (exit 1); exit 1; }; }
25180 fi
25181 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25182 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
25183 Usually this means the macro was only invoked conditionally." >&5
25184 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
25185 Usually this means the macro was only invoked conditionally." >&2;}
25186 { (exit 1); exit 1; }; }
25187 fi
25188 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
25189 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
25190 Usually this means the macro was only invoked conditionally." >&5
25191 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
25192 Usually this means the macro was only invoked conditionally." >&2;}
25193 { (exit 1); exit 1; }; }
25194 fi
25195 if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then
25196 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_USER\" was never defined.
25197 Usually this means the macro was only invoked conditionally." >&5
25198 echo "$as_me: error: conditional \"CONFIG_USER\" was never defined.
25199 Usually this means the macro was only invoked conditionally." >&2;}
25200 { (exit 1); exit 1; }; }
25201 fi
25202 if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then
25203 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_KERNEL\" was never defined.
25204 Usually this means the macro was only invoked conditionally." >&5
25205 echo "$as_me: error: conditional \"CONFIG_KERNEL\" was never defined.
25206 Usually this means the macro was only invoked conditionally." >&2;}
25207 { (exit 1); exit 1; }; }
25208 fi
25209
25210 : ${CONFIG_STATUS=./config.status}
25211 ac_clean_files_save=$ac_clean_files
25212 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25213 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25214 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25215 cat >$CONFIG_STATUS <<_ACEOF
25216 #! $SHELL
25217 # Generated by $as_me.
25218 # Run this file to recreate the current configuration.
25219 # Compiler output produced by configure, useful for debugging
25220 # configure, is in config.log if it exists.
25221
25222 debug=false
25223 ac_cs_recheck=false
25224 ac_cs_silent=false
25225 SHELL=\${CONFIG_SHELL-$SHELL}
25226 _ACEOF
25227
25228 cat >>$CONFIG_STATUS <<\_ACEOF
25229 ## --------------------- ##
25230 ## M4sh Initialization. ##
25231 ## --------------------- ##
25232
25233 # Be Bourne compatible
25234 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25235 emulate sh
25236 NULLCMD=:
25237 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25238 # is contrary to our usage. Disable this feature.
25239 alias -g '${1+"$@"}'='"$@"'
25240 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
25241 set -o posix
25242 fi
25243 DUALCASE=1; export DUALCASE # for MKS sh
25244
25245 # Support unset when possible.
25246 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25247 as_unset=unset
25248 else
25249 as_unset=false
25250 fi
25251
25252
25253 # Work around bugs in pre-3.0 UWIN ksh.
25254 $as_unset ENV MAIL MAILPATH
25255 PS1='$ '
25256 PS2='> '
25257 PS4='+ '
25258
25259 # NLS nuisances.
25260 for as_var in \
25261 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25262 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25263 LC_TELEPHONE LC_TIME
25264 do
25265 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25266 eval $as_var=C; export $as_var
25267 else
25268 $as_unset $as_var
25269 fi
25270 done
25271
25272 # Required to use basename.
25273 if expr a : '\(a\)' >/dev/null 2>&1; then
25274 as_expr=expr
25275 else
25276 as_expr=false
25277 fi
25278
25279 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
25280 as_basename=basename
25281 else
25282 as_basename=false
25283 fi
25284
25285
25286 # Name of the executable.
25287 as_me=`$as_basename "$0" ||
25288 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25289 X"$0" : 'X\(//\)$' \| \
25290 X"$0" : 'X\(/\)$' \| \
25291 . : '\(.\)' 2>/dev/null ||
25292 echo X/"$0" |
25293 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
25294 /^X\/\(\/\/\)$/{ s//\1/; q; }
25295 /^X\/\(\/\).*/{ s//\1/; q; }
25296 s/.*/./; q'`
25297
25298
25299 # PATH needs CR, and LINENO needs CR and PATH.
25300 # Avoid depending upon Character Ranges.
25301 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25302 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25303 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25304 as_cr_digits='0123456789'
25305 as_cr_alnum=$as_cr_Letters$as_cr_digits
25306
25307 # The user is always right.
25308 if test "${PATH_SEPARATOR+set}" != set; then
25309 echo "#! /bin/sh" >conf$$.sh
25310 echo "exit 0" >>conf$$.sh
25311 chmod +x conf$$.sh
25312 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25313 PATH_SEPARATOR=';'
25314 else
25315 PATH_SEPARATOR=:
25316 fi
25317 rm -f conf$$.sh
25318 fi
25319
25320
25321 as_lineno_1=$LINENO
25322 as_lineno_2=$LINENO
25323 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25324 test "x$as_lineno_1" != "x$as_lineno_2" &&
25325 test "x$as_lineno_3" = "x$as_lineno_2" || {
25326 # Find who we are. Look in the path if we contain no path at all
25327 # relative or not.
25328 case $0 in
25329 *[\\/]* ) as_myself=$0 ;;
25330 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25331 for as_dir in $PATH
25332 do
25333 IFS=$as_save_IFS
25334 test -z "$as_dir" && as_dir=.
25335 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25336 done
25337
25338 ;;
25339 esac
25340 # We did not find ourselves, most probably we were run as `sh COMMAND'
25341 # in which case we are not to be found in the path.
25342 if test "x$as_myself" = x; then
25343 as_myself=$0
25344 fi
25345 if test ! -f "$as_myself"; then
25346 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
25347 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
25348 { (exit 1); exit 1; }; }
25349 fi
25350 case $CONFIG_SHELL in
25351 '')
25352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25353 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
25354 do
25355 IFS=$as_save_IFS
25356 test -z "$as_dir" && as_dir=.
25357 for as_base in sh bash ksh sh5; do
25358 case $as_dir in
25359 /*)
25360 if ("$as_dir/$as_base" -c '
25361 as_lineno_1=$LINENO
25362 as_lineno_2=$LINENO
25363 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25364 test "x$as_lineno_1" != "x$as_lineno_2" &&
25365 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
25366 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
25367 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
25368 CONFIG_SHELL=$as_dir/$as_base
25369 export CONFIG_SHELL
25370 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
25371 fi;;
25372 esac
25373 done
25374 done
25375 ;;
25376 esac
25377
25378 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25379 # uniformly replaced by the line number. The first 'sed' inserts a
25380 # line-number line before each line; the second 'sed' does the real
25381 # work. The second script uses 'N' to pair each line-number line
25382 # with the numbered line, and appends trailing '-' during
25383 # substitution so that $LINENO is not a special case at line end.
25384 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25385 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
25386 sed '=' <$as_myself |
25387 sed '
25388 N
25389 s,$,-,
25390 : loop
25391 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
25392 t loop
25393 s,-$,,
25394 s,^['$as_cr_digits']*\n,,
25395 ' >$as_me.lineno &&
25396 chmod +x $as_me.lineno ||
25397 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
25398 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
25399 { (exit 1); exit 1; }; }
25400
25401 # Don't try to exec as it changes $[0], causing all sort of problems
25402 # (the dirname of $[0] is not the place where we might find the
25403 # original and so on. Autoconf is especially sensible to this).
25404 . ./$as_me.lineno
25405 # Exit status is that of the last command.
25406 exit
25407 }
25408
25409
25410 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
25411 *c*,-n*) ECHO_N= ECHO_C='
25412 ' ECHO_T=' ' ;;
25413 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
25414 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
25415 esac
25416
25417 if expr a : '\(a\)' >/dev/null 2>&1; then
25418 as_expr=expr
25419 else
25420 as_expr=false
25421 fi
25422
25423 rm -f conf$$ conf$$.exe conf$$.file
25424 echo >conf$$.file
25425 if ln -s conf$$.file conf$$ 2>/dev/null; then
25426 # We could just check for DJGPP; but this test a) works b) is more generic
25427 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
25428 if test -f conf$$.exe; then
25429 # Don't use ln at all; we don't have any links
25430 as_ln_s='cp -p'
25431 else
25432 as_ln_s='ln -s'
25433 fi
25434 elif ln conf$$.file conf$$ 2>/dev/null; then
25435 as_ln_s=ln
25436 else
25437 as_ln_s='cp -p'
25438 fi
25439 rm -f conf$$ conf$$.exe conf$$.file
25440
25441 if mkdir -p . 2>/dev/null; then
25442 as_mkdir_p=:
25443 else
25444 test -d ./-p && rmdir ./-p
25445 as_mkdir_p=false
25446 fi
25447
25448 as_executable_p="test -f"
25449
25450 # Sed expression to map a string onto a valid CPP name.
25451 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25452
25453 # Sed expression to map a string onto a valid variable name.
25454 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25455
25456
25457 # IFS
25458 # We need space, tab and new line, in precisely that order.
25459 as_nl='
25460 '
25461 IFS=" $as_nl"
25462
25463 # CDPATH.
25464 $as_unset CDPATH
25465
25466 exec 6>&1
25467
25468 # Open the log real soon, to keep \$[0] and so on meaningful, and to
25469 # report actual input values of CONFIG_FILES etc. instead of their
25470 # values after options handling. Logging --version etc. is OK.
25471 exec 5>>config.log
25472 {
25473 echo
25474 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25475 ## Running $as_me. ##
25476 _ASBOX
25477 } >&5
25478 cat >&5 <<_CSEOF
25479
25480 This file was extended by $as_me, which was
25481 generated by GNU Autoconf 2.59. Invocation command line was
25482
25483 CONFIG_FILES = $CONFIG_FILES
25484 CONFIG_HEADERS = $CONFIG_HEADERS
25485 CONFIG_LINKS = $CONFIG_LINKS
25486 CONFIG_COMMANDS = $CONFIG_COMMANDS
25487 $ $0 $@
25488
25489 _CSEOF
25490 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
25491 echo >&5
25492 _ACEOF
25493
25494 # Files that config.status was made for.
25495 if test -n "$ac_config_files"; then
25496 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
25497 fi
25498
25499 if test -n "$ac_config_headers"; then
25500 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
25501 fi
25502
25503 if test -n "$ac_config_links"; then
25504 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
25505 fi
25506
25507 if test -n "$ac_config_commands"; then
25508 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
25509 fi
25510
25511 cat >>$CONFIG_STATUS <<\_ACEOF
25512
25513 ac_cs_usage="\
25514 \`$as_me' instantiates files from templates according to the
25515 current configuration.
25516
25517 Usage: $0 [OPTIONS] [FILE]...
25518
25519 -h, --help print this help, then exit
25520 -V, --version print version number, then exit
25521 -q, --quiet do not print progress messages
25522 -d, --debug don't remove temporary files
25523 --recheck update $as_me by reconfiguring in the same conditions
25524 --file=FILE[:TEMPLATE]
25525 instantiate the configuration file FILE
25526 --header=FILE[:TEMPLATE]
25527 instantiate the configuration header FILE
25528
25529 Configuration files:
25530 $config_files
25531
25532 Configuration headers:
25533 $config_headers
25534
25535 Configuration commands:
25536 $config_commands
25537
25538 Report bugs to <bug-autoconf@gnu.org>."
25539 _ACEOF
25540
25541 cat >>$CONFIG_STATUS <<_ACEOF
25542 ac_cs_version="\\
25543 config.status
25544 configured by $0, generated by GNU Autoconf 2.59,
25545 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
25546
25547 Copyright (C) 2003 Free Software Foundation, Inc.
25548 This config.status script is free software; the Free Software Foundation
25549 gives unlimited permission to copy, distribute and modify it."
25550 srcdir=$srcdir
25551 INSTALL="$INSTALL"
25552 _ACEOF
25553
25554 cat >>$CONFIG_STATUS <<\_ACEOF
25555 # If no file are specified by the user, then we need to provide default
25556 # value. By we need to know if files were specified by the user.
25557 ac_need_defaults=:
25558 while test $# != 0
25559 do
25560 case $1 in
25561 --*=*)
25562 ac_option=`expr "x$1" : 'x\([^=]*\)='`
25563 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
25564 ac_shift=:
25565 ;;
25566 -*)
25567 ac_option=$1
25568 ac_optarg=$2
25569 ac_shift=shift
25570 ;;
25571 *) # This is not an option, so the user has probably given explicit
25572 # arguments.
25573 ac_option=$1
25574 ac_need_defaults=false;;
25575 esac
25576
25577 case $ac_option in
25578 # Handling of the options.
25579 _ACEOF
25580 cat >>$CONFIG_STATUS <<\_ACEOF
25581 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25582 ac_cs_recheck=: ;;
25583 --version | --vers* | -V )
25584 echo "$ac_cs_version"; exit 0 ;;
25585 --he | --h)
25586 # Conflict between --help and --header
25587 { { echo "$as_me:$LINENO: error: ambiguous option: $1
25588 Try \`$0 --help' for more information." >&5
25589 echo "$as_me: error: ambiguous option: $1
25590 Try \`$0 --help' for more information." >&2;}
25591 { (exit 1); exit 1; }; };;
25592 --help | --hel | -h )
25593 echo "$ac_cs_usage"; exit 0 ;;
25594 --debug | --d* | -d )
25595 debug=: ;;
25596 --file | --fil | --fi | --f )
25597 $ac_shift
25598 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25599 ac_need_defaults=false;;
25600 --header | --heade | --head | --hea )
25601 $ac_shift
25602 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25603 ac_need_defaults=false;;
25604 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25605 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25606 ac_cs_silent=: ;;
25607
25608 # This is an error.
25609 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
25610 Try \`$0 --help' for more information." >&5
25611 echo "$as_me: error: unrecognized option: $1
25612 Try \`$0 --help' for more information." >&2;}
25613 { (exit 1); exit 1; }; } ;;
25614
25615 *) ac_config_targets="$ac_config_targets $1" ;;
25616
25617 esac
25618 shift
25619 done
25620
25621 ac_configure_extra_args=
25622
25623 if $ac_cs_silent; then
25624 exec 6>/dev/null
25625 ac_configure_extra_args="$ac_configure_extra_args --silent"
25626 fi
25627
25628 _ACEOF
25629 cat >>$CONFIG_STATUS <<_ACEOF
25630 if \$ac_cs_recheck; then
25631 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25632 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25633 fi
25634
25635 _ACEOF
25636
25637 cat >>$CONFIG_STATUS <<_ACEOF
25638 #
25639 # INIT-COMMANDS section.
25640 #
25641
25642 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25643
25644 _ACEOF
25645
25646
25647
25648 cat >>$CONFIG_STATUS <<\_ACEOF
25649 for ac_config_target in $ac_config_targets
25650 do
25651 case "$ac_config_target" in
25652 # Handling of arguments.
25653 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25654 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
25655 "cmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES cmd/Makefile" ;;
25656 "module/Makefile" ) CONFIG_FILES="$CONFIG_FILES module/Makefile" ;;
25657 "module/spl/Makefile" ) CONFIG_FILES="$CONFIG_FILES module/spl/Makefile" ;;
25658 "module/splat/Makefile" ) CONFIG_FILES="$CONFIG_FILES module/splat/Makefile" ;;
25659 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
25660 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
25661 "spl.spec" ) CONFIG_FILES="$CONFIG_FILES spl.spec" ;;
25662 "spl-modules.spec" ) CONFIG_FILES="$CONFIG_FILES spl-modules.spec" ;;
25663 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25664 "spl_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS spl_config.h" ;;
25665 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25666 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25667 { (exit 1); exit 1; }; };;
25668 esac
25669 done
25670
25671 # If the user did not use the arguments to specify the items to instantiate,
25672 # then the envvar interface is used. Set only those that are not.
25673 # We use the long form for the default assignment because of an extremely
25674 # bizarre bug on SunOS 4.1.3.
25675 if $ac_need_defaults; then
25676 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25677 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25678 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25679 fi
25680
25681 # Have a temporary directory for convenience. Make it in the build tree
25682 # simply because there is no reason to put it here, and in addition,
25683 # creating and moving files from /tmp can sometimes cause problems.
25684 # Create a temporary directory, and hook for its removal unless debugging.
25685 $debug ||
25686 {
25687 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
25688 trap '{ (exit 1); exit 1; }' 1 2 13 15
25689 }
25690
25691 # Create a (secure) tmp directory for tmp files.
25692
25693 {
25694 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
25695 test -n "$tmp" && test -d "$tmp"
25696 } ||
25697 {
25698 tmp=./confstat$$-$RANDOM
25699 (umask 077 && mkdir $tmp)
25700 } ||
25701 {
25702 echo "$me: cannot create a temporary directory in ." >&2
25703 { (exit 1); exit 1; }
25704 }
25705
25706 _ACEOF
25707
25708 cat >>$CONFIG_STATUS <<_ACEOF
25709
25710 #
25711 # CONFIG_FILES section.
25712 #
25713
25714 # No need to generate the scripts if there are no CONFIG_FILES.
25715 # This happens for instance when ./config.status config.h
25716 if test -n "\$CONFIG_FILES"; then
25717 # Protect against being on the right side of a sed subst in config.status.
25718 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
25719 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
25720 s,@SHELL@,$SHELL,;t t
25721 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
25722 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
25723 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
25724 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
25725 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
25726 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
25727 s,@exec_prefix@,$exec_prefix,;t t
25728 s,@prefix@,$prefix,;t t
25729 s,@program_transform_name@,$program_transform_name,;t t
25730 s,@bindir@,$bindir,;t t
25731 s,@sbindir@,$sbindir,;t t
25732 s,@libexecdir@,$libexecdir,;t t
25733 s,@datadir@,$datadir,;t t
25734 s,@sysconfdir@,$sysconfdir,;t t
25735 s,@sharedstatedir@,$sharedstatedir,;t t
25736 s,@localstatedir@,$localstatedir,;t t
25737 s,@libdir@,$libdir,;t t
25738 s,@includedir@,$includedir,;t t
25739 s,@oldincludedir@,$oldincludedir,;t t
25740 s,@infodir@,$infodir,;t t
25741 s,@mandir@,$mandir,;t t
25742 s,@build_alias@,$build_alias,;t t
25743 s,@host_alias@,$host_alias,;t t
25744 s,@target_alias@,$target_alias,;t t
25745 s,@DEFS@,$DEFS,;t t
25746 s,@ECHO_C@,$ECHO_C,;t t
25747 s,@ECHO_N@,$ECHO_N,;t t
25748 s,@ECHO_T@,$ECHO_T,;t t
25749 s,@LIBS@,$LIBS,;t t
25750 s,@SPL_META_NAME@,$SPL_META_NAME,;t t
25751 s,@SPL_META_VERSION@,$SPL_META_VERSION,;t t
25752 s,@SPL_META_RELEASE@,$SPL_META_RELEASE,;t t
25753 s,@SPL_META_ALIAS@,$SPL_META_ALIAS,;t t
25754 s,@SPL_META_DATA@,$SPL_META_DATA,;t t
25755 s,@SPL_META_AUTHOR@,$SPL_META_AUTHOR,;t t
25756 s,@SPL_META_LT_CURRENT@,$SPL_META_LT_CURRENT,;t t
25757 s,@SPL_META_LT_REVISION@,$SPL_META_LT_REVISION,;t t
25758 s,@SPL_META_LT_AGE@,$SPL_META_LT_AGE,;t t
25759 s,@build@,$build,;t t
25760 s,@build_cpu@,$build_cpu,;t t
25761 s,@build_vendor@,$build_vendor,;t t
25762 s,@build_os@,$build_os,;t t
25763 s,@host@,$host,;t t
25764 s,@host_cpu@,$host_cpu,;t t
25765 s,@host_vendor@,$host_vendor,;t t
25766 s,@host_os@,$host_os,;t t
25767 s,@target@,$target,;t t
25768 s,@target_cpu@,$target_cpu,;t t
25769 s,@target_vendor@,$target_vendor,;t t
25770 s,@target_os@,$target_os,;t t
25771 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
25772 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
25773 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
25774 s,@CYGPATH_W@,$CYGPATH_W,;t t
25775 s,@PACKAGE@,$PACKAGE,;t t
25776 s,@VERSION@,$VERSION,;t t
25777 s,@ACLOCAL@,$ACLOCAL,;t t
25778 s,@AUTOCONF@,$AUTOCONF,;t t
25779 s,@AUTOMAKE@,$AUTOMAKE,;t t
25780 s,@AUTOHEADER@,$AUTOHEADER,;t t
25781 s,@MAKEINFO@,$MAKEINFO,;t t
25782 s,@install_sh@,$install_sh,;t t
25783 s,@STRIP@,$STRIP,;t t
25784 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
25785 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
25786 s,@mkdir_p@,$mkdir_p,;t t
25787 s,@AWK@,$AWK,;t t
25788 s,@SET_MAKE@,$SET_MAKE,;t t
25789 s,@am__leading_dot@,$am__leading_dot,;t t
25790 s,@AMTAR@,$AMTAR,;t t
25791 s,@am__tar@,$am__tar,;t t
25792 s,@am__untar@,$am__untar,;t t
25793 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
25794 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
25795 s,@MAINT@,$MAINT,;t t
25796 s,@CC@,$CC,;t t
25797 s,@CFLAGS@,$CFLAGS,;t t
25798 s,@LDFLAGS@,$LDFLAGS,;t t
25799 s,@CPPFLAGS@,$CPPFLAGS,;t t
25800 s,@ac_ct_CC@,$ac_ct_CC,;t t
25801 s,@EXEEXT@,$EXEEXT,;t t
25802 s,@OBJEXT@,$OBJEXT,;t t
25803 s,@DEPDIR@,$DEPDIR,;t t
25804 s,@am__include@,$am__include,;t t
25805 s,@am__quote@,$am__quote,;t t
25806 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
25807 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
25808 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
25809 s,@CCDEPMODE@,$CCDEPMODE,;t t
25810 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
25811 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
25812 s,@SED@,$SED,;t t
25813 s,@EGREP@,$EGREP,;t t
25814 s,@LN_S@,$LN_S,;t t
25815 s,@ECHO@,$ECHO,;t t
25816 s,@AR@,$AR,;t t
25817 s,@ac_ct_AR@,$ac_ct_AR,;t t
25818 s,@RANLIB@,$RANLIB,;t t
25819 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
25820 s,@CPP@,$CPP,;t t
25821 s,@CXX@,$CXX,;t t
25822 s,@CXXFLAGS@,$CXXFLAGS,;t t
25823 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
25824 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
25825 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
25826 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
25827 s,@CXXCPP@,$CXXCPP,;t t
25828 s,@F77@,$F77,;t t
25829 s,@FFLAGS@,$FFLAGS,;t t
25830 s,@ac_ct_F77@,$ac_ct_F77,;t t
25831 s,@LIBTOOL@,$LIBTOOL,;t t
25832 s,@LICENSE@,$LICENSE,;t t
25833 s,@SPL_CONFIG@,$SPL_CONFIG,;t t
25834 s,@LINUX@,$LINUX,;t t
25835 s,@LINUX_OBJ@,$LINUX_OBJ,;t t
25836 s,@LINUX_VERSION@,$LINUX_VERSION,;t t
25837 s,@LINUX_SYMBOLS@,$LINUX_SYMBOLS,;t t
25838 s,@KERNELMAKE_PARAMS@,$KERNELMAKE_PARAMS,;t t
25839 s,@KERNELCPPFLAGS@,$KERNELCPPFLAGS,;t t
25840 s,@CONFIG_USER_TRUE@,$CONFIG_USER_TRUE,;t t
25841 s,@CONFIG_USER_FALSE@,$CONFIG_USER_FALSE,;t t
25842 s,@CONFIG_KERNEL_TRUE@,$CONFIG_KERNEL_TRUE,;t t
25843 s,@CONFIG_KERNEL_FALSE@,$CONFIG_KERNEL_FALSE,;t t
25844 s,@LIBOBJS@,$LIBOBJS,;t t
25845 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
25846 CEOF
25847
25848 _ACEOF
25849
25850 cat >>$CONFIG_STATUS <<\_ACEOF
25851 # Split the substitutions into bite-sized pieces for seds with
25852 # small command number limits, like on Digital OSF/1 and HP-UX.
25853 ac_max_sed_lines=48
25854 ac_sed_frag=1 # Number of current file.
25855 ac_beg=1 # First line for current file.
25856 ac_end=$ac_max_sed_lines # Line after last line for current file.
25857 ac_more_lines=:
25858 ac_sed_cmds=
25859 while $ac_more_lines; do
25860 if test $ac_beg -gt 1; then
25861 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25862 else
25863 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25864 fi
25865 if test ! -s $tmp/subs.frag; then
25866 ac_more_lines=false
25867 else
25868 # The purpose of the label and of the branching condition is to
25869 # speed up the sed processing (if there are no `@' at all, there
25870 # is no need to browse any of the substitutions).
25871 # These are the two extra sed commands mentioned above.
25872 (echo ':t
25873 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
25874 if test -z "$ac_sed_cmds"; then
25875 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
25876 else
25877 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
25878 fi
25879 ac_sed_frag=`expr $ac_sed_frag + 1`
25880 ac_beg=$ac_end
25881 ac_end=`expr $ac_end + $ac_max_sed_lines`
25882 fi
25883 done
25884 if test -z "$ac_sed_cmds"; then
25885 ac_sed_cmds=cat
25886 fi
25887 fi # test -n "$CONFIG_FILES"
25888
25889 _ACEOF
25890 cat >>$CONFIG_STATUS <<\_ACEOF
25891 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
25892 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25893 case $ac_file in
25894 - | *:- | *:-:* ) # input from stdin
25895 cat >$tmp/stdin
25896 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25897 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25898 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25899 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25900 * ) ac_file_in=$ac_file.in ;;
25901 esac
25902
25903 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
25904 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25905 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25906 X"$ac_file" : 'X\(//\)[^/]' \| \
25907 X"$ac_file" : 'X\(//\)$' \| \
25908 X"$ac_file" : 'X\(/\)' \| \
25909 . : '\(.\)' 2>/dev/null ||
25910 echo X"$ac_file" |
25911 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25912 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25913 /^X\(\/\/\)$/{ s//\1/; q; }
25914 /^X\(\/\).*/{ s//\1/; q; }
25915 s/.*/./; q'`
25916 { if $as_mkdir_p; then
25917 mkdir -p "$ac_dir"
25918 else
25919 as_dir="$ac_dir"
25920 as_dirs=
25921 while test ! -d "$as_dir"; do
25922 as_dirs="$as_dir $as_dirs"
25923 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25924 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25925 X"$as_dir" : 'X\(//\)[^/]' \| \
25926 X"$as_dir" : 'X\(//\)$' \| \
25927 X"$as_dir" : 'X\(/\)' \| \
25928 . : '\(.\)' 2>/dev/null ||
25929 echo X"$as_dir" |
25930 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25931 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25932 /^X\(\/\/\)$/{ s//\1/; q; }
25933 /^X\(\/\).*/{ s//\1/; q; }
25934 s/.*/./; q'`
25935 done
25936 test ! -n "$as_dirs" || mkdir $as_dirs
25937 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25938 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25939 { (exit 1); exit 1; }; }; }
25940
25941 ac_builddir=.
25942
25943 if test "$ac_dir" != .; then
25944 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25945 # A "../" for each directory in $ac_dir_suffix.
25946 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25947 else
25948 ac_dir_suffix= ac_top_builddir=
25949 fi
25950
25951 case $srcdir in
25952 .) # No --srcdir option. We are building in place.
25953 ac_srcdir=.
25954 if test -z "$ac_top_builddir"; then
25955 ac_top_srcdir=.
25956 else
25957 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25958 fi ;;
25959 [\\/]* | ?:[\\/]* ) # Absolute path.
25960 ac_srcdir=$srcdir$ac_dir_suffix;
25961 ac_top_srcdir=$srcdir ;;
25962 *) # Relative path.
25963 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25964 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25965 esac
25966
25967 # Do not use `cd foo && pwd` to compute absolute paths, because
25968 # the directories may not exist.
25969 case `pwd` in
25970 .) ac_abs_builddir="$ac_dir";;
25971 *)
25972 case "$ac_dir" in
25973 .) ac_abs_builddir=`pwd`;;
25974 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25975 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25976 esac;;
25977 esac
25978 case $ac_abs_builddir in
25979 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25980 *)
25981 case ${ac_top_builddir}. in
25982 .) ac_abs_top_builddir=$ac_abs_builddir;;
25983 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25984 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25985 esac;;
25986 esac
25987 case $ac_abs_builddir in
25988 .) ac_abs_srcdir=$ac_srcdir;;
25989 *)
25990 case $ac_srcdir in
25991 .) ac_abs_srcdir=$ac_abs_builddir;;
25992 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25993 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25994 esac;;
25995 esac
25996 case $ac_abs_builddir in
25997 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25998 *)
25999 case $ac_top_srcdir in
26000 .) ac_abs_top_srcdir=$ac_abs_builddir;;
26001 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26002 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26003 esac;;
26004 esac
26005
26006
26007 case $INSTALL in
26008 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26009 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
26010 esac
26011
26012 if test x"$ac_file" != x-; then
26013 { echo "$as_me:$LINENO: creating $ac_file" >&5
26014 echo "$as_me: creating $ac_file" >&6;}
26015 rm -f "$ac_file"
26016 fi
26017 # Let's still pretend it is `configure' which instantiates (i.e., don't
26018 # use $as_me), people would be surprised to read:
26019 # /* config.h. Generated by config.status. */
26020 if test x"$ac_file" = x-; then
26021 configure_input=
26022 else
26023 configure_input="$ac_file. "
26024 fi
26025 configure_input=$configure_input"Generated from `echo $ac_file_in |
26026 sed 's,.*/,,'` by configure."
26027
26028 # First look for the input files in the build tree, otherwise in the
26029 # src tree.
26030 ac_file_inputs=`IFS=:
26031 for f in $ac_file_in; do
26032 case $f in
26033 -) echo $tmp/stdin ;;
26034 [\\/$]*)
26035 # Absolute (can't be DOS-style, as IFS=:)
26036 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26037 echo "$as_me: error: cannot find input file: $f" >&2;}
26038 { (exit 1); exit 1; }; }
26039 echo "$f";;
26040 *) # Relative
26041 if test -f "$f"; then
26042 # Build tree
26043 echo "$f"
26044 elif test -f "$srcdir/$f"; then
26045 # Source tree
26046 echo "$srcdir/$f"
26047 else
26048 # /dev/null tree
26049 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26050 echo "$as_me: error: cannot find input file: $f" >&2;}
26051 { (exit 1); exit 1; }; }
26052 fi;;
26053 esac
26054 done` || { (exit 1); exit 1; }
26055 _ACEOF
26056 cat >>$CONFIG_STATUS <<_ACEOF
26057 sed "$ac_vpsub
26058 $extrasub
26059 _ACEOF
26060 cat >>$CONFIG_STATUS <<\_ACEOF
26061 :t
26062 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26063 s,@configure_input@,$configure_input,;t t
26064 s,@srcdir@,$ac_srcdir,;t t
26065 s,@abs_srcdir@,$ac_abs_srcdir,;t t
26066 s,@top_srcdir@,$ac_top_srcdir,;t t
26067 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
26068 s,@builddir@,$ac_builddir,;t t
26069 s,@abs_builddir@,$ac_abs_builddir,;t t
26070 s,@top_builddir@,$ac_top_builddir,;t t
26071 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
26072 s,@INSTALL@,$ac_INSTALL,;t t
26073 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
26074 rm -f $tmp/stdin
26075 if test x"$ac_file" != x-; then
26076 mv $tmp/out $ac_file
26077 else
26078 cat $tmp/out
26079 rm -f $tmp/out
26080 fi
26081
26082 done
26083 _ACEOF
26084 cat >>$CONFIG_STATUS <<\_ACEOF
26085
26086 #
26087 # CONFIG_HEADER section.
26088 #
26089
26090 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
26091 # NAME is the cpp macro being defined and VALUE is the value it is being given.
26092 #
26093 # ac_d sets the value in "#define NAME VALUE" lines.
26094 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
26095 ac_dB='[ ].*$,\1#\2'
26096 ac_dC=' '
26097 ac_dD=',;t'
26098 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
26099 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
26100 ac_uB='$,\1#\2define\3'
26101 ac_uC=' '
26102 ac_uD=',;t'
26103
26104 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
26105 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
26106 case $ac_file in
26107 - | *:- | *:-:* ) # input from stdin
26108 cat >$tmp/stdin
26109 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26110 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26111 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26112 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26113 * ) ac_file_in=$ac_file.in ;;
26114 esac
26115
26116 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
26117 echo "$as_me: creating $ac_file" >&6;}
26118
26119 # First look for the input files in the build tree, otherwise in the
26120 # src tree.
26121 ac_file_inputs=`IFS=:
26122 for f in $ac_file_in; do
26123 case $f in
26124 -) echo $tmp/stdin ;;
26125 [\\/$]*)
26126 # Absolute (can't be DOS-style, as IFS=:)
26127 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26128 echo "$as_me: error: cannot find input file: $f" >&2;}
26129 { (exit 1); exit 1; }; }
26130 # Do quote $f, to prevent DOS paths from being IFS'd.
26131 echo "$f";;
26132 *) # Relative
26133 if test -f "$f"; then
26134 # Build tree
26135 echo "$f"
26136 elif test -f "$srcdir/$f"; then
26137 # Source tree
26138 echo "$srcdir/$f"
26139 else
26140 # /dev/null tree
26141 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26142 echo "$as_me: error: cannot find input file: $f" >&2;}
26143 { (exit 1); exit 1; }; }
26144 fi;;
26145 esac
26146 done` || { (exit 1); exit 1; }
26147 # Remove the trailing spaces.
26148 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
26149
26150 _ACEOF
26151
26152 # Transform confdefs.h into two sed scripts, `conftest.defines' and
26153 # `conftest.undefs', that substitutes the proper values into
26154 # config.h.in to produce config.h. The first handles `#define'
26155 # templates, and the second `#undef' templates.
26156 # And first: Protect against being on the right side of a sed subst in
26157 # config.status. Protect against being in an unquoted here document
26158 # in config.status.
26159 rm -f conftest.defines conftest.undefs
26160 # Using a here document instead of a string reduces the quoting nightmare.
26161 # Putting comments in sed scripts is not portable.
26162 #
26163 # `end' is used to avoid that the second main sed command (meant for
26164 # 0-ary CPP macros) applies to n-ary macro definitions.
26165 # See the Autoconf documentation for `clear'.
26166 cat >confdef2sed.sed <<\_ACEOF
26167 s/[\\&,]/\\&/g
26168 s,[\\$`],\\&,g
26169 t clear
26170 : clear
26171 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
26172 t end
26173 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
26174 : end
26175 _ACEOF
26176 # If some macros were called several times there might be several times
26177 # the same #defines, which is useless. Nevertheless, we may not want to
26178 # sort them, since we want the *last* AC-DEFINE to be honored.
26179 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
26180 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
26181 rm -f confdef2sed.sed
26182
26183 # This sed command replaces #undef with comments. This is necessary, for
26184 # example, in the case of _POSIX_SOURCE, which is predefined and required
26185 # on some systems where configure will not decide to define it.
26186 cat >>conftest.undefs <<\_ACEOF
26187 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
26188 _ACEOF
26189
26190 # Break up conftest.defines because some shells have a limit on the size
26191 # of here documents, and old seds have small limits too (100 cmds).
26192 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
26193 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
26194 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
26195 echo ' :' >>$CONFIG_STATUS
26196 rm -f conftest.tail
26197 while grep . conftest.defines >/dev/null
26198 do
26199 # Write a limited-size here document to $tmp/defines.sed.
26200 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
26201 # Speed up: don't consider the non `#define' lines.
26202 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
26203 # Work around the forget-to-reset-the-flag bug.
26204 echo 't clr' >>$CONFIG_STATUS
26205 echo ': clr' >>$CONFIG_STATUS
26206 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
26207 echo 'CEOF
26208 sed -f $tmp/defines.sed $tmp/in >$tmp/out
26209 rm -f $tmp/in
26210 mv $tmp/out $tmp/in
26211 ' >>$CONFIG_STATUS
26212 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
26213 rm -f conftest.defines
26214 mv conftest.tail conftest.defines
26215 done
26216 rm -f conftest.defines
26217 echo ' fi # grep' >>$CONFIG_STATUS
26218 echo >>$CONFIG_STATUS
26219
26220 # Break up conftest.undefs because some shells have a limit on the size
26221 # of here documents, and old seds have small limits too (100 cmds).
26222 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
26223 rm -f conftest.tail
26224 while grep . conftest.undefs >/dev/null
26225 do
26226 # Write a limited-size here document to $tmp/undefs.sed.
26227 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
26228 # Speed up: don't consider the non `#undef'
26229 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
26230 # Work around the forget-to-reset-the-flag bug.
26231 echo 't clr' >>$CONFIG_STATUS
26232 echo ': clr' >>$CONFIG_STATUS
26233 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
26234 echo 'CEOF
26235 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
26236 rm -f $tmp/in
26237 mv $tmp/out $tmp/in
26238 ' >>$CONFIG_STATUS
26239 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
26240 rm -f conftest.undefs
26241 mv conftest.tail conftest.undefs
26242 done
26243 rm -f conftest.undefs
26244
26245 cat >>$CONFIG_STATUS <<\_ACEOF
26246 # Let's still pretend it is `configure' which instantiates (i.e., don't
26247 # use $as_me), people would be surprised to read:
26248 # /* config.h. Generated by config.status. */
26249 if test x"$ac_file" = x-; then
26250 echo "/* Generated by configure. */" >$tmp/config.h
26251 else
26252 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
26253 fi
26254 cat $tmp/in >>$tmp/config.h
26255 rm -f $tmp/in
26256 if test x"$ac_file" != x-; then
26257 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
26258 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26259 echo "$as_me: $ac_file is unchanged" >&6;}
26260 else
26261 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
26262 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26263 X"$ac_file" : 'X\(//\)[^/]' \| \
26264 X"$ac_file" : 'X\(//\)$' \| \
26265 X"$ac_file" : 'X\(/\)' \| \
26266 . : '\(.\)' 2>/dev/null ||
26267 echo X"$ac_file" |
26268 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26269 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26270 /^X\(\/\/\)$/{ s//\1/; q; }
26271 /^X\(\/\).*/{ s//\1/; q; }
26272 s/.*/./; q'`
26273 { if $as_mkdir_p; then
26274 mkdir -p "$ac_dir"
26275 else
26276 as_dir="$ac_dir"
26277 as_dirs=
26278 while test ! -d "$as_dir"; do
26279 as_dirs="$as_dir $as_dirs"
26280 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26281 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26282 X"$as_dir" : 'X\(//\)[^/]' \| \
26283 X"$as_dir" : 'X\(//\)$' \| \
26284 X"$as_dir" : 'X\(/\)' \| \
26285 . : '\(.\)' 2>/dev/null ||
26286 echo X"$as_dir" |
26287 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26288 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26289 /^X\(\/\/\)$/{ s//\1/; q; }
26290 /^X\(\/\).*/{ s//\1/; q; }
26291 s/.*/./; q'`
26292 done
26293 test ! -n "$as_dirs" || mkdir $as_dirs
26294 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26295 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26296 { (exit 1); exit 1; }; }; }
26297
26298 rm -f $ac_file
26299 mv $tmp/config.h $ac_file
26300 fi
26301 else
26302 cat $tmp/config.h
26303 rm -f $tmp/config.h
26304 fi
26305 # Compute $ac_file's index in $config_headers.
26306 _am_stamp_count=1
26307 for _am_header in $config_headers :; do
26308 case $_am_header in
26309 $ac_file | $ac_file:* )
26310 break ;;
26311 * )
26312 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26313 esac
26314 done
26315 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
26316 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26317 X$ac_file : 'X\(//\)[^/]' \| \
26318 X$ac_file : 'X\(//\)$' \| \
26319 X$ac_file : 'X\(/\)' \| \
26320 . : '\(.\)' 2>/dev/null ||
26321 echo X$ac_file |
26322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26323 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26324 /^X\(\/\/\)$/{ s//\1/; q; }
26325 /^X\(\/\).*/{ s//\1/; q; }
26326 s/.*/./; q'`/stamp-h$_am_stamp_count
26327 done
26328 _ACEOF
26329 cat >>$CONFIG_STATUS <<\_ACEOF
26330
26331 #
26332 # CONFIG_COMMANDS section.
26333 #
26334 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
26335 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
26336 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
26337 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
26338 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26339 X"$ac_dest" : 'X\(//\)[^/]' \| \
26340 X"$ac_dest" : 'X\(//\)$' \| \
26341 X"$ac_dest" : 'X\(/\)' \| \
26342 . : '\(.\)' 2>/dev/null ||
26343 echo X"$ac_dest" |
26344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26345 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26346 /^X\(\/\/\)$/{ s//\1/; q; }
26347 /^X\(\/\).*/{ s//\1/; q; }
26348 s/.*/./; q'`
26349 { if $as_mkdir_p; then
26350 mkdir -p "$ac_dir"
26351 else
26352 as_dir="$ac_dir"
26353 as_dirs=
26354 while test ! -d "$as_dir"; do
26355 as_dirs="$as_dir $as_dirs"
26356 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26357 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26358 X"$as_dir" : 'X\(//\)[^/]' \| \
26359 X"$as_dir" : 'X\(//\)$' \| \
26360 X"$as_dir" : 'X\(/\)' \| \
26361 . : '\(.\)' 2>/dev/null ||
26362 echo X"$as_dir" |
26363 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26364 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26365 /^X\(\/\/\)$/{ s//\1/; q; }
26366 /^X\(\/\).*/{ s//\1/; q; }
26367 s/.*/./; q'`
26368 done
26369 test ! -n "$as_dirs" || mkdir $as_dirs
26370 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26371 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26372 { (exit 1); exit 1; }; }; }
26373
26374 ac_builddir=.
26375
26376 if test "$ac_dir" != .; then
26377 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26378 # A "../" for each directory in $ac_dir_suffix.
26379 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26380 else
26381 ac_dir_suffix= ac_top_builddir=
26382 fi
26383
26384 case $srcdir in
26385 .) # No --srcdir option. We are building in place.
26386 ac_srcdir=.
26387 if test -z "$ac_top_builddir"; then
26388 ac_top_srcdir=.
26389 else
26390 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26391 fi ;;
26392 [\\/]* | ?:[\\/]* ) # Absolute path.
26393 ac_srcdir=$srcdir$ac_dir_suffix;
26394 ac_top_srcdir=$srcdir ;;
26395 *) # Relative path.
26396 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26397 ac_top_srcdir=$ac_top_builddir$srcdir ;;
26398 esac
26399
26400 # Do not use `cd foo && pwd` to compute absolute paths, because
26401 # the directories may not exist.
26402 case `pwd` in
26403 .) ac_abs_builddir="$ac_dir";;
26404 *)
26405 case "$ac_dir" in
26406 .) ac_abs_builddir=`pwd`;;
26407 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26408 *) ac_abs_builddir=`pwd`/"$ac_dir";;
26409 esac;;
26410 esac
26411 case $ac_abs_builddir in
26412 .) ac_abs_top_builddir=${ac_top_builddir}.;;
26413 *)
26414 case ${ac_top_builddir}. in
26415 .) ac_abs_top_builddir=$ac_abs_builddir;;
26416 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26417 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26418 esac;;
26419 esac
26420 case $ac_abs_builddir in
26421 .) ac_abs_srcdir=$ac_srcdir;;
26422 *)
26423 case $ac_srcdir in
26424 .) ac_abs_srcdir=$ac_abs_builddir;;
26425 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26426 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26427 esac;;
26428 esac
26429 case $ac_abs_builddir in
26430 .) ac_abs_top_srcdir=$ac_top_srcdir;;
26431 *)
26432 case $ac_top_srcdir in
26433 .) ac_abs_top_srcdir=$ac_abs_builddir;;
26434 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26435 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26436 esac;;
26437 esac
26438
26439
26440 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
26441 echo "$as_me: executing $ac_dest commands" >&6;}
26442 case $ac_dest in
26443 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
26444 # Strip MF so we end up with the name of the file.
26445 mf=`echo "$mf" | sed -e 's/:.*$//'`
26446 # Check whether this is an Automake generated Makefile or not.
26447 # We used to match only the files named `Makefile.in', but
26448 # some people rename them; so instead we look at the file content.
26449 # Grep'ing the first line is not enough: some people post-process
26450 # each Makefile.in and add a new line on top of each file to say so.
26451 # So let's grep whole file.
26452 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
26453 dirpart=`(dirname "$mf") 2>/dev/null ||
26454 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26455 X"$mf" : 'X\(//\)[^/]' \| \
26456 X"$mf" : 'X\(//\)$' \| \
26457 X"$mf" : 'X\(/\)' \| \
26458 . : '\(.\)' 2>/dev/null ||
26459 echo X"$mf" |
26460 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26461 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26462 /^X\(\/\/\)$/{ s//\1/; q; }
26463 /^X\(\/\).*/{ s//\1/; q; }
26464 s/.*/./; q'`
26465 else
26466 continue
26467 fi
26468 # Extract the definition of DEPDIR, am__include, and am__quote
26469 # from the Makefile without running `make'.
26470 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26471 test -z "$DEPDIR" && continue
26472 am__include=`sed -n 's/^am__include = //p' < "$mf"`
26473 test -z "am__include" && continue
26474 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26475 # When using ansi2knr, U may be empty or an underscore; expand it
26476 U=`sed -n 's/^U = //p' < "$mf"`
26477 # Find all dependency output files, they are included files with
26478 # $(DEPDIR) in their names. We invoke sed twice because it is the
26479 # simplest approach to changing $(DEPDIR) to its actual value in the
26480 # expansion.
26481 for file in `sed -n "
26482 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26483 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26484 # Make sure the directory exists.
26485 test -f "$dirpart/$file" && continue
26486 fdir=`(dirname "$file") 2>/dev/null ||
26487 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26488 X"$file" : 'X\(//\)[^/]' \| \
26489 X"$file" : 'X\(//\)$' \| \
26490 X"$file" : 'X\(/\)' \| \
26491 . : '\(.\)' 2>/dev/null ||
26492 echo X"$file" |
26493 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26494 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26495 /^X\(\/\/\)$/{ s//\1/; q; }
26496 /^X\(\/\).*/{ s//\1/; q; }
26497 s/.*/./; q'`
26498 { if $as_mkdir_p; then
26499 mkdir -p $dirpart/$fdir
26500 else
26501 as_dir=$dirpart/$fdir
26502 as_dirs=
26503 while test ! -d "$as_dir"; do
26504 as_dirs="$as_dir $as_dirs"
26505 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26506 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26507 X"$as_dir" : 'X\(//\)[^/]' \| \
26508 X"$as_dir" : 'X\(//\)$' \| \
26509 X"$as_dir" : 'X\(/\)' \| \
26510 . : '\(.\)' 2>/dev/null ||
26511 echo X"$as_dir" |
26512 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26513 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26514 /^X\(\/\/\)$/{ s//\1/; q; }
26515 /^X\(\/\).*/{ s//\1/; q; }
26516 s/.*/./; q'`
26517 done
26518 test ! -n "$as_dirs" || mkdir $as_dirs
26519 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
26520 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
26521 { (exit 1); exit 1; }; }; }
26522
26523 # echo "creating $dirpart/$file"
26524 echo '# dummy' > "$dirpart/$file"
26525 done
26526 done
26527 ;;
26528 esac
26529 done
26530 _ACEOF
26531
26532 cat >>$CONFIG_STATUS <<\_ACEOF
26533
26534 { (exit 0); exit 0; }
26535 _ACEOF
26536 chmod +x $CONFIG_STATUS
26537 ac_clean_files=$ac_clean_files_save
26538
26539
26540 # configure is writing to config.log, and then calls config.status.
26541 # config.status does its own redirection, appending to config.log.
26542 # Unfortunately, on DOS this fails, as config.log is still kept open
26543 # by configure, so config.status won't be able to write to it; its
26544 # output is simply discarded. So we exec the FD to /dev/null,
26545 # effectively closing config.log, so it can be properly (re)opened and
26546 # appended to by config.status. When coming back to configure, we
26547 # need to make the FD available again.
26548 if test "$no_create" != yes; then
26549 ac_cs_success=:
26550 ac_config_status_args=
26551 test "$silent" = yes &&
26552 ac_config_status_args="$ac_config_status_args --quiet"
26553 exec 5>/dev/null
26554 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26555 exec 5>>config.log
26556 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26557 # would make configure fail if this is the last instruction.
26558 $ac_cs_success || { (exit 1); exit 1; }
26559 fi
26560