]> git.proxmox.com Git - mirror_spl-debian.git/blob - configure
f3f6b1303aa7ad0327d48a8204442bee2cbdf93d
[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 LINUX LINUX_OBJ LINUX_VERSION KERNELMAKE_PARAMS KERNELCPPFLAGS KERNELCFLAGS LINUX_SYMBOLS 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-mutex Enable mutex debug support (default off)
1040 --enable-debug-kstat Enable kstat debug support (default off)
1041 --enable-debug-callb Enable callb debug support (default off)
1042
1043 Optional Packages:
1044 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1045 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1046 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1047 --with-pic try to use only PIC/non-PIC objects [default=use
1048 both]
1049 --with-tags[=TAGS]
1050 include additional configurations [automatic]
1051 --with-linux=PATH Path to kernel source
1052 --with-linux-obj=PATH Path to kernel build objects
1053
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
18930 # Check whether --with-linux or --without-linux was given.
18931 if test "${with_linux+set}" = set; then
18932 withval="$with_linux"
18933 kernelsrc="$withval"
18934 fi;
18935
18936
18937 # Check whether --with-linux-obj or --without-linux-obj was given.
18938 if test "${with_linux_obj+set}" = set; then
18939 withval="$with_linux_obj"
18940 kernelbuild="$withval"
18941 fi;
18942
18943 echo "$as_me:$LINENO: checking kernel source directory" >&5
18944 echo $ECHO_N "checking kernel source directory... $ECHO_C" >&6
18945 if test -z "$kernelsrc"; then
18946 sourcelink=`ls -1d /usr/src/kernels/* /usr/src/linux-* \
18947 2>/dev/null | grep -v obj | tail -1`
18948
18949 if test -e ${sourcelink}; then
18950 kernelsrc=`readlink -f ${sourcelink}`
18951 else
18952 echo "$as_me:$LINENO: result: Not found" >&5
18953 echo "${ECHO_T}Not found" >&6
18954 { { echo "$as_me:$LINENO: error:
18955 *** Please specify the location of the kernel source
18956 *** with the '--with-linux=PATH' option" >&5
18957 echo "$as_me: error:
18958 *** Please specify the location of the kernel source
18959 *** with the '--with-linux=PATH' option" >&2;}
18960 { (exit 1); exit 1; }; }
18961 fi
18962 else
18963 if test "$kernelsrc" = "NONE"; then
18964 kernsrcver=NONE
18965 fi
18966 fi
18967
18968 echo "$as_me:$LINENO: result: $kernelsrc" >&5
18969 echo "${ECHO_T}$kernelsrc" >&6
18970 echo "$as_me:$LINENO: checking kernel build directory" >&5
18971 echo $ECHO_N "checking kernel build directory... $ECHO_C" >&6
18972 if test -z "$kernelbuild"; then
18973 if test -d ${kernelsrc}-obj; then
18974 kernelbuild=${kernelsrc}-obj/`arch`/`arch`
18975 elif test -d `dirname ${kernelsrc}`/build-`arch`; then
18976 kernelbuild=`dirname ${kernelsrc}`/build-`arch`
18977 else
18978 kernelbuild=${kernelsrc}
18979 fi
18980 fi
18981 echo "$as_me:$LINENO: result: $kernelbuild" >&5
18982 echo "${ECHO_T}$kernelbuild" >&6
18983
18984 echo "$as_me:$LINENO: checking kernel source version" >&5
18985 echo $ECHO_N "checking kernel source version... $ECHO_C" >&6
18986 if test -r $kernelbuild/include/linux/version.h &&
18987 fgrep -q UTS_RELEASE $kernelbuild/include/linux/version.h; then
18988
18989 kernsrcver=`(echo "#include <linux/version.h>";
18990 echo "kernsrcver=UTS_RELEASE") |
18991 cpp -I $kernelbuild/include |
18992 grep "^kernsrcver=" | cut -d \" -f 2`
18993
18994 elif test -r $kernelbuild/include/linux/utsrelease.h &&
18995 fgrep -q UTS_RELEASE $kernelbuild/include/linux/utsrelease.h; then
18996
18997 kernsrcver=`(echo "#include <linux/utsrelease.h>";
18998 echo "kernsrcver=UTS_RELEASE") |
18999 cpp -I $kernelbuild/include |
19000 grep "^kernsrcver=" | cut -d \" -f 2`
19001 fi
19002
19003 if test -z "$kernsrcver"; then
19004 echo "$as_me:$LINENO: result: Not found" >&5
19005 echo "${ECHO_T}Not found" >&6
19006 { { echo "$as_me:$LINENO: error:
19007 *** Cannot determine the version of the linux kernel source.
19008 *** Please prepare the kernel before running this script" >&5
19009 echo "$as_me: error:
19010 *** Cannot determine the version of the linux kernel source.
19011 *** Please prepare the kernel before running this script" >&2;}
19012 { (exit 1); exit 1; }; }
19013 fi
19014
19015 echo "$as_me:$LINENO: result: $kernsrcver" >&5
19016 echo "${ECHO_T}$kernsrcver" >&6
19017
19018 LINUX=${kernelsrc}
19019 LINUX_OBJ=${kernelbuild}
19020 LINUX_VERSION=${kernsrcver}
19021
19022 abs_srcdir=`readlink -f ${srcdir}`
19023 kerninclude="-I${abs_srcdir} -I${abs_srcdir}/include"
19024 kernwarn="-Wstrict-prototypes -Werror"
19025
19026 if test "${LINUX_OBJ}" != "${LINUX}"; then
19027 kernobjs="O=$kernelbuild"
19028 fi
19029
19030 KERNELCFLAGS=
19031 KERNELCPPFLAGS="${kerninclude} ${kernwarn}"
19032 KERNELMAKE_PARAMS="${kernobjs}"
19033
19034
19035
19036
19037
19038
19039
19040
19041
19042 echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
19043 echo $ECHO_N "checking kernel file name for module symbols... $ECHO_C" >&6
19044 if grep -q Modules.symvers $LINUX/scripts/Makefile.modpost; then
19045 LINUX_SYMBOLS=Modules.symvers
19046 else
19047 LINUX_SYMBOLS=Module.symvers
19048 fi
19049 echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
19050 echo "${ECHO_T}$LINUX_SYMBOLS" >&6
19051
19052
19053
19054 echo "$as_me:$LINENO: checking license" >&5
19055 echo $ECHO_N "checking license... $ECHO_C" >&6
19056 echo "$as_me:$LINENO: result: GPL" >&5
19057 echo "${ECHO_T}GPL" >&6
19058 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DHAVE_GPL_ONLY_SYMBOLS"
19059
19060
19061 echo "$as_me:$LINENO: checking whether debugging is enabled" >&5
19062 echo $ECHO_N "checking whether debugging is enabled... $ECHO_C" >&6
19063 # Check whether --enable-debug or --disable-debug was given.
19064 if test "${enable_debug+set}" = set; then
19065 enableval="$enable_debug"
19066 case "$enableval" in
19067 yes) spl_ac_debug=yes ;;
19068 no) spl_ac_debug=no ;;
19069 *) echo "$as_me:$LINENO: result: Error!" >&5
19070 echo "${ECHO_T}Error!" >&6
19071 { { echo "$as_me:$LINENO: error: Bad value \"$enableval\" for --enable-debug" >&5
19072 echo "$as_me: error: Bad value \"$enableval\" for --enable-debug" >&2;}
19073 { (exit 1); exit 1; }; } ;;
19074 esac
19075
19076 fi;
19077 if test "$spl_ac_debug" = yes; then
19078 echo "$as_me:$LINENO: result: yes" >&5
19079 echo "${ECHO_T}yes" >&6
19080 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG"
19081 else
19082 echo "$as_me:$LINENO: result: no" >&5
19083 echo "${ECHO_T}no" >&6
19084 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG"
19085 fi
19086
19087
19088 echo "$as_me:$LINENO: checking whether kmem debugging is enabled" >&5
19089 echo $ECHO_N "checking whether kmem debugging is enabled... $ECHO_C" >&6
19090 # Check whether --enable-debug-kmem or --disable-debug-kmem was given.
19091 if test "${enable_debug_kmem+set}" = set; then
19092 enableval="$enable_debug_kmem"
19093 case "$enableval" in
19094 yes) spl_ac_debug_kmem=yes ;;
19095 no) spl_ac_debug_kmem=no ;;
19096 *) echo "$as_me:$LINENO: result: Error!" >&5
19097 echo "${ECHO_T}Error!" >&6
19098 { { echo "$as_me:$LINENO: error: Bad value \"$enableval\" for --enable-debug-kmem" >&5
19099 echo "$as_me: error: Bad value \"$enableval\" for --enable-debug-kmem" >&2;}
19100 { (exit 1); exit 1; }; } ;;
19101 esac
19102
19103 fi;
19104 if test "$spl_ac_debug_kmem" = yes; then
19105 echo "$as_me:$LINENO: result: yes" >&5
19106 echo "${ECHO_T}yes" >&6
19107
19108 cat >>confdefs.h <<\_ACEOF
19109 #define DEBUG_KMEM 1
19110 _ACEOF
19111
19112 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM"
19113 else
19114 echo "$as_me:$LINENO: result: no" >&5
19115 echo "${ECHO_T}no" >&6
19116 fi
19117
19118
19119 echo "$as_me:$LINENO: checking whether mutex debugging is enabled" >&5
19120 echo $ECHO_N "checking whether mutex debugging is enabled... $ECHO_C" >&6
19121 # Check whether --enable-debug-mutex or --disable-debug-mutex was given.
19122 if test "${enable_debug_mutex+set}" = set; then
19123 enableval="$enable_debug_mutex"
19124 case "$enableval" in
19125 yes) spl_ac_debug_mutex=yes ;;
19126 no) spl_ac_debug_mutex=no ;;
19127 *) echo "$as_me:$LINENO: result: Error!" >&5
19128 echo "${ECHO_T}Error!" >&6
19129 { { echo "$as_me:$LINENO: error: Bad value \"$enableval\" for --enable-debug-mutex" >&5
19130 echo "$as_me: error: Bad value \"$enableval\" for --enable-debug-mutex" >&2;}
19131 { (exit 1); exit 1; }; } ;;
19132 esac
19133
19134 fi;
19135 if test "$spl_ac_debug_mutex" = yes; then
19136 echo "$as_me:$LINENO: result: yes" >&5
19137 echo "${ECHO_T}yes" >&6
19138
19139 cat >>confdefs.h <<\_ACEOF
19140 #define DEBUG_MUTEX 1
19141 _ACEOF
19142
19143 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_MUTEX"
19144 else
19145 echo "$as_me:$LINENO: result: no" >&5
19146 echo "${ECHO_T}no" >&6
19147 fi
19148
19149
19150 echo "$as_me:$LINENO: checking whether kstat debugging is enabled" >&5
19151 echo $ECHO_N "checking whether kstat debugging is enabled... $ECHO_C" >&6
19152 # Check whether --enable-debug-kstat or --disable-debug-kstat was given.
19153 if test "${enable_debug_kstat+set}" = set; then
19154 enableval="$enable_debug_kstat"
19155 case "$enableval" in
19156 yes) spl_ac_debug_kstat=yes ;;
19157 no) spl_ac_debug_kstat=no ;;
19158 *) echo "$as_me:$LINENO: result: Error!" >&5
19159 echo "${ECHO_T}Error!" >&6
19160 { { echo "$as_me:$LINENO: error: Bad value \"$enableval\" for --enable-debug-kstat" >&5
19161 echo "$as_me: error: Bad value \"$enableval\" for --enable-debug-kstat" >&2;}
19162 { (exit 1); exit 1; }; } ;;
19163 esac
19164
19165 fi;
19166 if test "$spl_ac_debug_kstat" = yes; then
19167 echo "$as_me:$LINENO: result: yes" >&5
19168 echo "${ECHO_T}yes" >&6
19169
19170 cat >>confdefs.h <<\_ACEOF
19171 #define DEBUG_KSTAT 1
19172 _ACEOF
19173
19174 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KSTAT"
19175 else
19176 echo "$as_me:$LINENO: result: no" >&5
19177 echo "${ECHO_T}no" >&6
19178 fi
19179
19180
19181 echo "$as_me:$LINENO: checking whether callb debugging is enabled" >&5
19182 echo $ECHO_N "checking whether callb debugging is enabled... $ECHO_C" >&6
19183 # Check whether --enable-debug-callb or --disable-debug-callb was given.
19184 if test "${enable_debug_callb+set}" = set; then
19185 enableval="$enable_debug_callb"
19186 case "$enableval" in
19187 yes) spl_ac_debug_callb=yes ;;
19188 no) spl_ac_debug_callb=no ;;
19189 *) echo "$as_me:$LINENO: result: Error!" >&5
19190 echo "${ECHO_T}Error!" >&6
19191 { { echo "$as_me:$LINENO: error: Bad value \"$enableval\" for --enable-debug-callb" >&5
19192 echo "$as_me: error: Bad value \"$enableval\" for --enable-debug-callb" >&2;}
19193 { (exit 1); exit 1; }; } ;;
19194 esac
19195
19196 fi;
19197 if test "$spl_ac_debug_callb" = yes; then
19198 echo "$as_me:$LINENO: result: yes" >&5
19199 echo "${ECHO_T}yes" >&6
19200
19201 cat >>confdefs.h <<\_ACEOF
19202 #define DEBUG_CALLB 1
19203 _ACEOF
19204
19205 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_CALLB"
19206 else
19207 echo "$as_me:$LINENO: result: no" >&5
19208 echo "${ECHO_T}no" >&6
19209 fi
19210
19211 echo "$as_me:$LINENO: checking whether kernel defines uintptr_t" >&5
19212 echo $ECHO_N "checking whether kernel defines uintptr_t... $ECHO_C" >&6
19213
19214
19215 cat >conftest.c <<_ACEOF
19216 /* confdefs.h. */
19217 _ACEOF
19218 cat confdefs.h >>conftest.$ac_ext
19219 cat >>conftest.$ac_ext <<_ACEOF
19220 /* end confdefs.h. */
19221
19222
19223 #include <linux/types.h>
19224
19225 int
19226 main (void)
19227 {
19228
19229 uintptr_t *ptr;
19230
19231 ;
19232 return 0;
19233 }
19234
19235 _ACEOF
19236
19237
19238 rm -Rf build && mkdir -p build
19239 echo "obj-m := conftest.o" >build/Makefile
19240 if { ac_try='cp conftest.c build && make modules LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
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); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19247 (eval $ac_try) 2>&5
19248 ac_status=$?
19249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19250 (exit $ac_status); }; }; then
19251
19252 echo "$as_me:$LINENO: result: yes" >&5
19253 echo "${ECHO_T}yes" >&6
19254
19255 cat >>confdefs.h <<\_ACEOF
19256 #define HAVE_UINTPTR_T 1
19257 _ACEOF
19258
19259
19260 else
19261 echo "$as_me: failed program was:" >&5
19262 sed 's/^/| /' conftest.$ac_ext >&5
19263
19264 echo "$as_me:$LINENO: result: no" >&5
19265 echo "${ECHO_T}no" >&6
19266
19267
19268
19269 fi
19270
19271 rm -Rf build
19272
19273
19274
19275 echo "$as_me:$LINENO: checking whether kernel defines atomic64_t" >&5
19276 echo $ECHO_N "checking whether kernel defines atomic64_t... $ECHO_C" >&6
19277
19278
19279 cat >conftest.c <<_ACEOF
19280 /* confdefs.h. */
19281 _ACEOF
19282 cat confdefs.h >>conftest.$ac_ext
19283 cat >>conftest.$ac_ext <<_ACEOF
19284 /* end confdefs.h. */
19285
19286
19287 #include <asm/atomic.h>
19288
19289 int
19290 main (void)
19291 {
19292
19293 atomic64_t *ptr;
19294
19295 ;
19296 return 0;
19297 }
19298
19299 _ACEOF
19300
19301
19302 rm -Rf build && mkdir -p build
19303 echo "obj-m := conftest.o" >build/Makefile
19304 if { ac_try='cp conftest.c build && make modules LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
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); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19311 (eval $ac_try) 2>&5
19312 ac_status=$?
19313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19314 (exit $ac_status); }; }; then
19315
19316 echo "$as_me:$LINENO: result: yes" >&5
19317 echo "${ECHO_T}yes" >&6
19318
19319 cat >>confdefs.h <<\_ACEOF
19320 #define HAVE_ATOMIC64_T 1
19321 _ACEOF
19322
19323
19324 else
19325 echo "$as_me: failed program was:" >&5
19326 sed 's/^/| /' conftest.$ac_ext >&5
19327
19328 echo "$as_me:$LINENO: result: no" >&5
19329 echo "${ECHO_T}no" >&6
19330
19331
19332
19333 fi
19334
19335 rm -Rf build
19336
19337
19338
19339 echo "$as_me:$LINENO: checking whether INIT_WORK wants 3 args" >&5
19340 echo $ECHO_N "checking whether INIT_WORK wants 3 args... $ECHO_C" >&6
19341
19342
19343 cat >conftest.c <<_ACEOF
19344 /* confdefs.h. */
19345 _ACEOF
19346 cat confdefs.h >>conftest.$ac_ext
19347 cat >>conftest.$ac_ext <<_ACEOF
19348 /* end confdefs.h. */
19349
19350
19351 #include <linux/workqueue.h>
19352
19353 int
19354 main (void)
19355 {
19356
19357 struct work_struct work;
19358 INIT_WORK(&work, NULL, NULL);
19359
19360 ;
19361 return 0;
19362 }
19363
19364 _ACEOF
19365
19366
19367 rm -Rf build && mkdir -p build
19368 echo "obj-m := conftest.o" >build/Makefile
19369 if { ac_try='cp conftest.c build && make modules LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
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); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19376 (eval $ac_try) 2>&5
19377 ac_status=$?
19378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19379 (exit $ac_status); }; }; then
19380
19381 echo "$as_me:$LINENO: result: yes" >&5
19382 echo "${ECHO_T}yes" >&6
19383
19384 cat >>confdefs.h <<\_ACEOF
19385 #define HAVE_3ARGS_INIT_WORK 1
19386 _ACEOF
19387
19388
19389 else
19390 echo "$as_me: failed program was:" >&5
19391 sed 's/^/| /' conftest.$ac_ext >&5
19392
19393 echo "$as_me:$LINENO: result: no" >&5
19394 echo "${ECHO_T}no" >&6
19395
19396
19397
19398 fi
19399
19400 rm -Rf build
19401
19402
19403
19404 echo "$as_me:$LINENO: checking whether register_sysctl_table() wants 2 args" >&5
19405 echo $ECHO_N "checking whether register_sysctl_table() wants 2 args... $ECHO_C" >&6
19406
19407
19408 cat >conftest.c <<_ACEOF
19409 /* confdefs.h. */
19410 _ACEOF
19411 cat confdefs.h >>conftest.$ac_ext
19412 cat >>conftest.$ac_ext <<_ACEOF
19413 /* end confdefs.h. */
19414
19415
19416 #include <linux/sysctl.h>
19417
19418 int
19419 main (void)
19420 {
19421
19422 return register_sysctl_table(NULL,0);
19423
19424 ;
19425 return 0;
19426 }
19427
19428 _ACEOF
19429
19430
19431 rm -Rf build && mkdir -p build
19432 echo "obj-m := conftest.o" >build/Makefile
19433 if { ac_try='cp conftest.c build && make modules LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
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); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19440 (eval $ac_try) 2>&5
19441 ac_status=$?
19442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19443 (exit $ac_status); }; }; then
19444
19445 echo "$as_me:$LINENO: result: yes" >&5
19446 echo "${ECHO_T}yes" >&6
19447
19448 cat >>confdefs.h <<\_ACEOF
19449 #define HAVE_2ARGS_REGISTER_SYSCTL 1
19450 _ACEOF
19451
19452
19453 else
19454 echo "$as_me: failed program was:" >&5
19455 sed 's/^/| /' conftest.$ac_ext >&5
19456
19457 echo "$as_me:$LINENO: result: no" >&5
19458 echo "${ECHO_T}no" >&6
19459
19460
19461
19462 fi
19463
19464 rm -Rf build
19465
19466
19467
19468
19469 echo "$as_me:$LINENO: checking whether set_shrinker() available" >&5
19470 echo $ECHO_N "checking whether set_shrinker() available... $ECHO_C" >&6
19471
19472
19473 cat >conftest.c <<_ACEOF
19474 /* confdefs.h. */
19475 _ACEOF
19476 cat confdefs.h >>conftest.$ac_ext
19477 cat >>conftest.$ac_ext <<_ACEOF
19478 /* end confdefs.h. */
19479
19480
19481 #include <linux/mm.h>
19482
19483 int
19484 main (void)
19485 {
19486
19487 return set_shrinker(DEFAULT_SEEKS, NULL);
19488
19489 ;
19490 return 0;
19491 }
19492
19493 _ACEOF
19494
19495
19496 rm -Rf build && mkdir -p build
19497 echo "obj-m := conftest.o" >build/Makefile
19498 if { ac_try='cp conftest.c build && make modules LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
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); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19505 (eval $ac_try) 2>&5
19506 ac_status=$?
19507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19508 (exit $ac_status); }; }; then
19509
19510 echo "$as_me:$LINENO: result: yes" >&5
19511 echo "${ECHO_T}yes" >&6
19512
19513 cat >>confdefs.h <<\_ACEOF
19514 #define HAVE_SET_SHRINKER 1
19515 _ACEOF
19516
19517
19518 else
19519 echo "$as_me: failed program was:" >&5
19520 sed 's/^/| /' conftest.$ac_ext >&5
19521
19522 echo "$as_me:$LINENO: result: no" >&5
19523 echo "${ECHO_T}no" >&6
19524
19525
19526
19527 fi
19528
19529 rm -Rf build
19530
19531
19532
19533 echo "$as_me:$LINENO: checking whether struct path used in struct nameidata" >&5
19534 echo $ECHO_N "checking whether struct path used in struct nameidata... $ECHO_C" >&6
19535
19536
19537 cat >conftest.c <<_ACEOF
19538 /* confdefs.h. */
19539 _ACEOF
19540 cat confdefs.h >>conftest.$ac_ext
19541 cat >>conftest.$ac_ext <<_ACEOF
19542 /* end confdefs.h. */
19543
19544
19545 #include <linux/namei.h>
19546
19547 int
19548 main (void)
19549 {
19550
19551 struct nameidata nd;
19552
19553 nd.path.mnt = NULL;
19554 nd.path.dentry = NULL;
19555
19556 ;
19557 return 0;
19558 }
19559
19560 _ACEOF
19561
19562
19563 rm -Rf build && mkdir -p build
19564 echo "obj-m := conftest.o" >build/Makefile
19565 if { ac_try='cp conftest.c build && make modules LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
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); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19572 (eval $ac_try) 2>&5
19573 ac_status=$?
19574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19575 (exit $ac_status); }; }; then
19576
19577 echo "$as_me:$LINENO: result: yes" >&5
19578 echo "${ECHO_T}yes" >&6
19579
19580 cat >>confdefs.h <<\_ACEOF
19581 #define HAVE_PATH_IN_NAMEIDATA 1
19582 _ACEOF
19583
19584
19585 else
19586 echo "$as_me: failed program was:" >&5
19587 sed 's/^/| /' conftest.$ac_ext >&5
19588
19589 echo "$as_me:$LINENO: result: no" >&5
19590 echo "${ECHO_T}no" >&6
19591
19592
19593
19594 fi
19595
19596 rm -Rf build
19597
19598
19599
19600
19601 echo "$as_me:$LINENO: checking whether symbol task_curr is exported" >&5
19602 echo $ECHO_N "checking whether symbol task_curr is exported... $ECHO_C" >&6
19603 grep -q -E '[[:space:]]task_curr[[:space:]]' \
19604 $LINUX_OBJ/Module*.symvers 2>/dev/null
19605 rc=$?
19606 if test $rc -ne 0; then
19607 export=0
19608 for file in kernel/sched.c; do
19609 grep -q -E "EXPORT_SYMBOL.*(task_curr)" \
19610 "$LINUX_OBJ/$file" 2>/dev/null
19611 rc=$?
19612 if test $rc -eq 0; then
19613 export=1
19614 break;
19615 fi
19616 done
19617 if test $export -eq 0; then
19618 echo "$as_me:$LINENO: result: no" >&5
19619 echo "${ECHO_T}no" >&6
19620
19621 else
19622 echo "$as_me:$LINENO: result: yes" >&5
19623 echo "${ECHO_T}yes" >&6
19624
19625 cat >>confdefs.h <<\_ACEOF
19626 #define HAVE_TASK_CURR 1
19627 _ACEOF
19628
19629 fi
19630 else
19631 echo "$as_me:$LINENO: result: yes" >&5
19632 echo "${ECHO_T}yes" >&6
19633
19634 cat >>confdefs.h <<\_ACEOF
19635 #define HAVE_TASK_CURR 1
19636 _ACEOF
19637
19638 fi
19639
19640
19641 echo "$as_me:$LINENO: checking whether unnumbered sysctl support exists" >&5
19642 echo $ECHO_N "checking whether unnumbered sysctl support exists... $ECHO_C" >&6
19643
19644
19645 cat >conftest.c <<_ACEOF
19646 /* confdefs.h. */
19647 _ACEOF
19648 cat confdefs.h >>conftest.$ac_ext
19649 cat >>conftest.$ac_ext <<_ACEOF
19650 /* end confdefs.h. */
19651
19652
19653 #include <linux/sysctl.h>
19654
19655 int
19656 main (void)
19657 {
19658
19659 #ifndef CTL_UNNUMBERED
19660 #error CTL_UNNUMBERED undefined
19661 #endif
19662
19663 ;
19664 return 0;
19665 }
19666
19667 _ACEOF
19668
19669
19670 rm -Rf build && mkdir -p build
19671 echo "obj-m := conftest.o" >build/Makefile
19672 if { ac_try='cp conftest.c build && make modules LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
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); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19679 (eval $ac_try) 2>&5
19680 ac_status=$?
19681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19682 (exit $ac_status); }; }; then
19683
19684 echo "$as_me:$LINENO: result: yes" >&5
19685 echo "${ECHO_T}yes" >&6
19686
19687 cat >>confdefs.h <<\_ACEOF
19688 #define HAVE_CTL_UNNUMBERED 1
19689 _ACEOF
19690
19691
19692 else
19693 echo "$as_me: failed program was:" >&5
19694 sed 's/^/| /' conftest.$ac_ext >&5
19695
19696 echo "$as_me:$LINENO: result: no" >&5
19697 echo "${ECHO_T}no" >&6
19698
19699
19700
19701 fi
19702
19703 rm -Rf build
19704
19705
19706
19707 echo "$as_me:$LINENO: checking whether fls64() is available" >&5
19708 echo $ECHO_N "checking whether fls64() is available... $ECHO_C" >&6
19709
19710
19711 cat >conftest.c <<_ACEOF
19712 /* confdefs.h. */
19713 _ACEOF
19714 cat confdefs.h >>conftest.$ac_ext
19715 cat >>conftest.$ac_ext <<_ACEOF
19716 /* end confdefs.h. */
19717
19718
19719 #include <linux/bitops.h>
19720
19721 int
19722 main (void)
19723 {
19724
19725 return fls64(0);
19726
19727 ;
19728 return 0;
19729 }
19730
19731 _ACEOF
19732
19733
19734 rm -Rf build && mkdir -p build
19735 echo "obj-m := conftest.o" >build/Makefile
19736 if { ac_try='cp conftest.c build && make modules LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
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); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19743 (eval $ac_try) 2>&5
19744 ac_status=$?
19745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19746 (exit $ac_status); }; }; then
19747
19748 echo "$as_me:$LINENO: result: yes" >&5
19749 echo "${ECHO_T}yes" >&6
19750
19751 cat >>confdefs.h <<\_ACEOF
19752 #define HAVE_FLS64 1
19753 _ACEOF
19754
19755
19756 else
19757 echo "$as_me: failed program was:" >&5
19758 sed 's/^/| /' conftest.$ac_ext >&5
19759
19760 echo "$as_me:$LINENO: result: no" >&5
19761 echo "${ECHO_T}no" >&6
19762
19763
19764
19765 fi
19766
19767 rm -Rf build
19768
19769
19770
19771
19772 echo "$as_me:$LINENO: checking whether symbol device_create is exported" >&5
19773 echo $ECHO_N "checking whether symbol device_create is exported... $ECHO_C" >&6
19774 grep -q -E '[[:space:]]device_create[[:space:]]' \
19775 $LINUX_OBJ/Module*.symvers 2>/dev/null
19776 rc=$?
19777 if test $rc -ne 0; then
19778 export=0
19779 for file in drivers/base/core.c; do
19780 grep -q -E "EXPORT_SYMBOL.*(device_create)" \
19781 "$LINUX_OBJ/$file" 2>/dev/null
19782 rc=$?
19783 if test $rc -eq 0; then
19784 export=1
19785 break;
19786 fi
19787 done
19788 if test $export -eq 0; then
19789 echo "$as_me:$LINENO: result: no" >&5
19790 echo "${ECHO_T}no" >&6
19791
19792 else
19793 echo "$as_me:$LINENO: result: yes" >&5
19794 echo "${ECHO_T}yes" >&6
19795
19796 cat >>confdefs.h <<\_ACEOF
19797 #define HAVE_DEVICE_CREATE 1
19798 _ACEOF
19799
19800 fi
19801 else
19802 echo "$as_me:$LINENO: result: yes" >&5
19803 echo "${ECHO_T}yes" >&6
19804
19805 cat >>confdefs.h <<\_ACEOF
19806 #define HAVE_DEVICE_CREATE 1
19807 _ACEOF
19808
19809 fi
19810
19811
19812
19813 echo "$as_me:$LINENO: checking whether device_create() wants 5 args" >&5
19814 echo $ECHO_N "checking whether device_create() wants 5 args... $ECHO_C" >&6
19815 tmp_flags="$EXTRA_KCFLAGS"
19816 EXTRA_KCFLAGS="-Werror"
19817
19818
19819 cat >conftest.c <<_ACEOF
19820 /* confdefs.h. */
19821 _ACEOF
19822 cat confdefs.h >>conftest.$ac_ext
19823 cat >>conftest.$ac_ext <<_ACEOF
19824 /* end confdefs.h. */
19825
19826
19827 #include <linux/device.h>
19828
19829 int
19830 main (void)
19831 {
19832
19833 device_create(NULL, NULL, 0, NULL, "%d", 1);
19834
19835 ;
19836 return 0;
19837 }
19838
19839 _ACEOF
19840
19841
19842 rm -Rf build && mkdir -p build
19843 echo "obj-m := conftest.o" >build/Makefile
19844 if { ac_try='cp conftest.c build && make modules LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
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); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19851 (eval $ac_try) 2>&5
19852 ac_status=$?
19853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19854 (exit $ac_status); }; }; then
19855
19856 echo "$as_me:$LINENO: result: yes" >&5
19857 echo "${ECHO_T}yes" >&6
19858
19859 cat >>confdefs.h <<\_ACEOF
19860 #define HAVE_5ARGS_DEVICE_CREATE 1
19861 _ACEOF
19862
19863
19864 else
19865 echo "$as_me: failed program was:" >&5
19866 sed 's/^/| /' conftest.$ac_ext >&5
19867
19868 echo "$as_me:$LINENO: result: no" >&5
19869 echo "${ECHO_T}no" >&6
19870
19871
19872
19873 fi
19874
19875 rm -Rf build
19876
19877
19878 EXTRA_KCFLAGS="$tmp_flags"
19879
19880
19881 echo "$as_me:$LINENO: checking whether symbol class_device_create is exported" >&5
19882 echo $ECHO_N "checking whether symbol class_device_create is exported... $ECHO_C" >&6
19883 grep -q -E '[[:space:]]class_device_create[[:space:]]' \
19884 $LINUX_OBJ/Module*.symvers 2>/dev/null
19885 rc=$?
19886 if test $rc -ne 0; then
19887 export=0
19888 for file in drivers/base/class.c; do
19889 grep -q -E "EXPORT_SYMBOL.*(class_device_create)" \
19890 "$LINUX_OBJ/$file" 2>/dev/null
19891 rc=$?
19892 if test $rc -eq 0; then
19893 export=1
19894 break;
19895 fi
19896 done
19897 if test $export -eq 0; then
19898 echo "$as_me:$LINENO: result: no" >&5
19899 echo "${ECHO_T}no" >&6
19900
19901 else
19902 echo "$as_me:$LINENO: result: yes" >&5
19903 echo "${ECHO_T}yes" >&6
19904
19905 cat >>confdefs.h <<\_ACEOF
19906 #define HAVE_CLASS_DEVICE_CREATE 1
19907 _ACEOF
19908
19909 fi
19910 else
19911 echo "$as_me:$LINENO: result: yes" >&5
19912 echo "${ECHO_T}yes" >&6
19913
19914 cat >>confdefs.h <<\_ACEOF
19915 #define HAVE_CLASS_DEVICE_CREATE 1
19916 _ACEOF
19917
19918 fi
19919
19920
19921
19922 echo "$as_me:$LINENO: checking whether symbol set_normalized_timespec is exported" >&5
19923 echo $ECHO_N "checking whether symbol set_normalized_timespec is exported... $ECHO_C" >&6
19924 grep -q -E '[[:space:]]set_normalized_timespec[[:space:]]' \
19925 $LINUX_OBJ/Module*.symvers 2>/dev/null
19926 rc=$?
19927 if test $rc -ne 0; then
19928 export=0
19929 for file in kernel/time.c; do
19930 grep -q -E "EXPORT_SYMBOL.*(set_normalized_timespec)" \
19931 "$LINUX_OBJ/$file" 2>/dev/null
19932 rc=$?
19933 if test $rc -eq 0; then
19934 export=1
19935 break;
19936 fi
19937 done
19938 if test $export -eq 0; then
19939 echo "$as_me:$LINENO: result: no" >&5
19940 echo "${ECHO_T}no" >&6
19941
19942 else
19943 echo "$as_me:$LINENO: result: yes" >&5
19944 echo "${ECHO_T}yes" >&6
19945
19946 cat >>confdefs.h <<\_ACEOF
19947 #define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1
19948 _ACEOF
19949
19950 fi
19951 else
19952 echo "$as_me:$LINENO: result: yes" >&5
19953 echo "${ECHO_T}yes" >&6
19954
19955 cat >>confdefs.h <<\_ACEOF
19956 #define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1
19957 _ACEOF
19958
19959 fi
19960
19961
19962
19963 echo "$as_me:$LINENO: checking whether set_normalized_timespec() is an inline" >&5
19964 echo $ECHO_N "checking whether set_normalized_timespec() is an inline... $ECHO_C" >&6
19965
19966
19967 cat >conftest.c <<_ACEOF
19968 /* confdefs.h. */
19969 _ACEOF
19970 cat confdefs.h >>conftest.$ac_ext
19971 cat >>conftest.$ac_ext <<_ACEOF
19972 /* end confdefs.h. */
19973
19974
19975 #include <linux/time.h>
19976 void set_normalized_timespec(struct timespec *ts,
19977 time_t sec, long nsec) { }
19978
19979 int
19980 main (void)
19981 {
19982
19983 ;
19984 return 0;
19985 }
19986
19987 _ACEOF
19988
19989
19990 rm -Rf build && mkdir -p build
19991 echo "obj-m := conftest.o" >build/Makefile
19992 if { ac_try='cp conftest.c build && make modules LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
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); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19999 (eval $ac_try) 2>&5
20000 ac_status=$?
20001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20002 (exit $ac_status); }; }; then
20003
20004 echo "$as_me:$LINENO: result: no" >&5
20005 echo "${ECHO_T}no" >&6
20006
20007 else
20008 echo "$as_me: failed program was:" >&5
20009 sed 's/^/| /' conftest.$ac_ext >&5
20010
20011 echo "$as_me:$LINENO: result: yes" >&5
20012 echo "${ECHO_T}yes" >&6
20013
20014 cat >>confdefs.h <<\_ACEOF
20015 #define HAVE_SET_NORMALIZED_TIMESPEC_INLINE 1
20016 _ACEOF
20017
20018
20019
20020
20021 fi
20022
20023 rm -Rf build
20024
20025
20026
20027
20028 echo "$as_me:$LINENO: checking whether timespec_sub() is available" >&5
20029 echo $ECHO_N "checking whether timespec_sub() is available... $ECHO_C" >&6
20030
20031
20032 cat >conftest.c <<_ACEOF
20033 /* confdefs.h. */
20034 _ACEOF
20035 cat confdefs.h >>conftest.$ac_ext
20036 cat >>conftest.$ac_ext <<_ACEOF
20037 /* end confdefs.h. */
20038
20039
20040 #include <linux/time.h>
20041
20042 int
20043 main (void)
20044 {
20045
20046 struct timespec a, b, c = { 0 };
20047 c = timespec_sub(a, b);
20048
20049 ;
20050 return 0;
20051 }
20052
20053 _ACEOF
20054
20055
20056 rm -Rf build && mkdir -p build
20057 echo "obj-m := conftest.o" >build/Makefile
20058 if { ac_try='cp conftest.c build && make modules LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
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); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20065 (eval $ac_try) 2>&5
20066 ac_status=$?
20067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20068 (exit $ac_status); }; }; then
20069
20070 echo "$as_me:$LINENO: result: yes" >&5
20071 echo "${ECHO_T}yes" >&6
20072
20073 cat >>confdefs.h <<\_ACEOF
20074 #define HAVE_TIMESPEC_SUB 1
20075 _ACEOF
20076
20077
20078 else
20079 echo "$as_me: failed program was:" >&5
20080 sed 's/^/| /' conftest.$ac_ext >&5
20081
20082 echo "$as_me:$LINENO: result: no" >&5
20083 echo "${ECHO_T}no" >&6
20084
20085
20086
20087 fi
20088
20089 rm -Rf build
20090
20091
20092
20093
20094 echo "$as_me:$LINENO: checking whether init_utsname() is available" >&5
20095 echo $ECHO_N "checking whether init_utsname() is available... $ECHO_C" >&6
20096
20097
20098 cat >conftest.c <<_ACEOF
20099 /* confdefs.h. */
20100 _ACEOF
20101 cat confdefs.h >>conftest.$ac_ext
20102 cat >>conftest.$ac_ext <<_ACEOF
20103 /* end confdefs.h. */
20104
20105
20106 #include <linux/utsname.h>
20107
20108 int
20109 main (void)
20110 {
20111
20112 struct new_utsname *a = init_utsname();
20113
20114 ;
20115 return 0;
20116 }
20117
20118 _ACEOF
20119
20120
20121 rm -Rf build && mkdir -p build
20122 echo "obj-m := conftest.o" >build/Makefile
20123 if { ac_try='cp conftest.c build && make modules LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
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); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20130 (eval $ac_try) 2>&5
20131 ac_status=$?
20132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20133 (exit $ac_status); }; }; then
20134
20135 echo "$as_me:$LINENO: result: yes" >&5
20136 echo "${ECHO_T}yes" >&6
20137
20138 cat >>confdefs.h <<\_ACEOF
20139 #define HAVE_INIT_UTSNAME 1
20140 _ACEOF
20141
20142
20143 else
20144 echo "$as_me: failed program was:" >&5
20145 sed 's/^/| /' conftest.$ac_ext >&5
20146
20147 echo "$as_me:$LINENO: result: no" >&5
20148 echo "${ECHO_T}no" >&6
20149
20150
20151
20152 fi
20153
20154 rm -Rf build
20155
20156
20157
20158
20159 echo "$as_me:$LINENO: checking whether header linux/fdtable.h exists" >&5
20160 echo $ECHO_N "checking whether header linux/fdtable.h exists... $ECHO_C" >&6
20161
20162
20163 cat >conftest.c <<_ACEOF
20164 /* confdefs.h. */
20165 _ACEOF
20166 cat confdefs.h >>conftest.$ac_ext
20167 cat >>conftest.$ac_ext <<_ACEOF
20168 /* end confdefs.h. */
20169
20170
20171 #include <linux/fdtable.h>
20172
20173 int
20174 main (void)
20175 {
20176
20177 return 0;
20178
20179 ;
20180 return 0;
20181 }
20182
20183 _ACEOF
20184
20185
20186 rm -Rf build && mkdir -p build
20187 echo "obj-m := conftest.o" >build/Makefile
20188 if { ac_try='cp conftest.c build && make modules LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
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); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20195 (eval $ac_try) 2>&5
20196 ac_status=$?
20197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20198 (exit $ac_status); }; }; then
20199
20200
20201 cat >>confdefs.h <<\_ACEOF
20202 #define HAVE_FDTABLE_HEADER 1
20203 _ACEOF
20204
20205 echo "$as_me:$LINENO: result: yes" >&5
20206 echo "${ECHO_T}yes" >&6
20207
20208
20209 else
20210 echo "$as_me: failed program was:" >&5
20211 sed 's/^/| /' conftest.$ac_ext >&5
20212
20213 echo "$as_me:$LINENO: result: no" >&5
20214 echo "${ECHO_T}no" >&6
20215
20216
20217
20218
20219 fi
20220
20221 rm -Rf build
20222
20223
20224
20225
20226
20227 echo "$as_me:$LINENO: checking whether files_fdtable() is available" >&5
20228 echo $ECHO_N "checking whether files_fdtable() is available... $ECHO_C" >&6
20229
20230
20231 cat >conftest.c <<_ACEOF
20232 /* confdefs.h. */
20233 _ACEOF
20234 cat confdefs.h >>conftest.$ac_ext
20235 cat >>conftest.$ac_ext <<_ACEOF
20236 /* end confdefs.h. */
20237
20238
20239 #include <linux/sched.h>
20240 #include <linux/file.h>
20241 #ifdef HAVE_FDTABLE_HEADER
20242 #include <linux/fdtable.h>
20243 #endif
20244
20245 int
20246 main (void)
20247 {
20248
20249 struct files_struct *files = current->files;
20250 struct fdtable *fdt = files_fdtable(files);
20251
20252 ;
20253 return 0;
20254 }
20255
20256 _ACEOF
20257
20258
20259 rm -Rf build && mkdir -p build
20260 echo "obj-m := conftest.o" >build/Makefile
20261 if { ac_try='cp conftest.c build && make modules LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
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); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20268 (eval $ac_try) 2>&5
20269 ac_status=$?
20270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20271 (exit $ac_status); }; }; then
20272
20273 echo "$as_me:$LINENO: result: yes" >&5
20274 echo "${ECHO_T}yes" >&6
20275
20276 cat >>confdefs.h <<\_ACEOF
20277 #define HAVE_FILES_FDTABLE 1
20278 _ACEOF
20279
20280
20281 else
20282 echo "$as_me: failed program was:" >&5
20283 sed 's/^/| /' conftest.$ac_ext >&5
20284
20285 echo "$as_me:$LINENO: result: no" >&5
20286 echo "${ECHO_T}no" >&6
20287
20288
20289
20290 fi
20291
20292 rm -Rf build
20293
20294
20295
20296
20297 echo "$as_me:$LINENO: checking whether header linux/uaccess.h exists" >&5
20298 echo $ECHO_N "checking whether header linux/uaccess.h exists... $ECHO_C" >&6
20299
20300
20301 cat >conftest.c <<_ACEOF
20302 /* confdefs.h. */
20303 _ACEOF
20304 cat confdefs.h >>conftest.$ac_ext
20305 cat >>conftest.$ac_ext <<_ACEOF
20306 /* end confdefs.h. */
20307
20308
20309 #include <linux/uaccess.h>
20310
20311 int
20312 main (void)
20313 {
20314
20315 return 0;
20316
20317 ;
20318 return 0;
20319 }
20320
20321 _ACEOF
20322
20323
20324 rm -Rf build && mkdir -p build
20325 echo "obj-m := conftest.o" >build/Makefile
20326 if { ac_try='cp conftest.c build && make modules LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
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); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20333 (eval $ac_try) 2>&5
20334 ac_status=$?
20335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20336 (exit $ac_status); }; }; then
20337
20338
20339 cat >>confdefs.h <<\_ACEOF
20340 #define HAVE_UACCESS_HEADER 1
20341 _ACEOF
20342
20343 echo "$as_me:$LINENO: result: yes" >&5
20344 echo "${ECHO_T}yes" >&6
20345
20346
20347 else
20348 echo "$as_me: failed program was:" >&5
20349 sed 's/^/| /' conftest.$ac_ext >&5
20350
20351 echo "$as_me:$LINENO: result: no" >&5
20352 echo "${ECHO_T}no" >&6
20353
20354
20355
20356
20357 fi
20358
20359 rm -Rf build
20360
20361
20362
20363
20364
20365 echo "$as_me:$LINENO: checking whether kmalloc_node() is available" >&5
20366 echo $ECHO_N "checking whether kmalloc_node() is available... $ECHO_C" >&6
20367
20368
20369 cat >conftest.c <<_ACEOF
20370 /* confdefs.h. */
20371 _ACEOF
20372 cat confdefs.h >>conftest.$ac_ext
20373 cat >>conftest.$ac_ext <<_ACEOF
20374 /* end confdefs.h. */
20375
20376
20377 #include <linux/slab.h>
20378
20379 int
20380 main (void)
20381 {
20382
20383 void *a = kmalloc_node(1, GFP_KERNEL, 0);
20384
20385 ;
20386 return 0;
20387 }
20388
20389 _ACEOF
20390
20391
20392 rm -Rf build && mkdir -p build
20393 echo "obj-m := conftest.o" >build/Makefile
20394 if { ac_try='cp conftest.c build && make modules LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
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); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20401 (eval $ac_try) 2>&5
20402 ac_status=$?
20403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20404 (exit $ac_status); }; }; then
20405
20406 echo "$as_me:$LINENO: result: yes" >&5
20407 echo "${ECHO_T}yes" >&6
20408
20409 cat >>confdefs.h <<\_ACEOF
20410 #define HAVE_KMALLOC_NODE 1
20411 _ACEOF
20412
20413
20414 else
20415 echo "$as_me: failed program was:" >&5
20416 sed 's/^/| /' conftest.$ac_ext >&5
20417
20418 echo "$as_me:$LINENO: result: no" >&5
20419 echo "${ECHO_T}no" >&6
20420
20421
20422
20423 fi
20424
20425 rm -Rf build
20426
20427
20428
20429
20430 echo "$as_me:$LINENO: checking whether symbol monotonic_clock is exported" >&5
20431 echo $ECHO_N "checking whether symbol monotonic_clock is exported... $ECHO_C" >&6
20432 grep -q -E '[[:space:]]monotonic_clock[[:space:]]' \
20433 $LINUX_OBJ/Module*.symvers 2>/dev/null
20434 rc=$?
20435 if test $rc -ne 0; then
20436 export=0
20437 for file in ; do
20438 grep -q -E "EXPORT_SYMBOL.*(monotonic_clock)" \
20439 "$LINUX_OBJ/$file" 2>/dev/null
20440 rc=$?
20441 if test $rc -eq 0; then
20442 export=1
20443 break;
20444 fi
20445 done
20446 if test $export -eq 0; then
20447 echo "$as_me:$LINENO: result: no" >&5
20448 echo "${ECHO_T}no" >&6
20449
20450 else
20451 echo "$as_me:$LINENO: result: yes" >&5
20452 echo "${ECHO_T}yes" >&6
20453
20454 cat >>confdefs.h <<\_ACEOF
20455 #define HAVE_MONOTONIC_CLOCK 1
20456 _ACEOF
20457
20458 fi
20459 else
20460 echo "$as_me:$LINENO: result: yes" >&5
20461 echo "${ECHO_T}yes" >&6
20462
20463 cat >>confdefs.h <<\_ACEOF
20464 #define HAVE_MONOTONIC_CLOCK 1
20465 _ACEOF
20466
20467 fi
20468
20469
20470
20471 echo "$as_me:$LINENO: checking whether struct inode has i_mutex" >&5
20472 echo $ECHO_N "checking whether struct inode has i_mutex... $ECHO_C" >&6
20473
20474
20475 cat >conftest.c <<_ACEOF
20476 /* confdefs.h. */
20477 _ACEOF
20478 cat confdefs.h >>conftest.$ac_ext
20479 cat >>conftest.$ac_ext <<_ACEOF
20480 /* end confdefs.h. */
20481
20482
20483 #include <linux/fs.h>
20484 #include <linux/mutex.h>
20485
20486 int
20487 main (void)
20488 {
20489
20490 struct inode i;
20491 mutex_init(&i.i_mutex);
20492
20493 ;
20494 return 0;
20495 }
20496
20497 _ACEOF
20498
20499
20500 rm -Rf build && mkdir -p build
20501 echo "obj-m := conftest.o" >build/Makefile
20502 if { ac_try='cp conftest.c build && make modules LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
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); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20509 (eval $ac_try) 2>&5
20510 ac_status=$?
20511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20512 (exit $ac_status); }; }; then
20513
20514 echo "$as_me:$LINENO: result: yes" >&5
20515 echo "${ECHO_T}yes" >&6
20516
20517 cat >>confdefs.h <<\_ACEOF
20518 #define HAVE_INODE_I_MUTEX 1
20519 _ACEOF
20520
20521
20522 else
20523 echo "$as_me: failed program was:" >&5
20524 sed 's/^/| /' conftest.$ac_ext >&5
20525
20526 echo "$as_me:$LINENO: result: no" >&5
20527 echo "${ECHO_T}no" >&6
20528
20529
20530
20531 fi
20532
20533 rm -Rf build
20534
20535
20536
20537
20538 echo "$as_me:$LINENO: checking whether mutex_lock_nested() is available" >&5
20539 echo $ECHO_N "checking whether mutex_lock_nested() is available... $ECHO_C" >&6
20540
20541
20542 cat >conftest.c <<_ACEOF
20543 /* confdefs.h. */
20544 _ACEOF
20545 cat confdefs.h >>conftest.$ac_ext
20546 cat >>conftest.$ac_ext <<_ACEOF
20547 /* end confdefs.h. */
20548
20549
20550 #include <linux/mutex.h>
20551
20552 int
20553 main (void)
20554 {
20555
20556 struct mutex mutex;
20557 mutex_init(&mutex);
20558 mutex_lock_nested(&mutex, 0);
20559
20560 ;
20561 return 0;
20562 }
20563
20564 _ACEOF
20565
20566
20567 rm -Rf build && mkdir -p build
20568 echo "obj-m := conftest.o" >build/Makefile
20569 if { ac_try='cp conftest.c build && make modules LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20571 (eval $ac_try) 2>&5
20572 ac_status=$?
20573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20574 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20576 (eval $ac_try) 2>&5
20577 ac_status=$?
20578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20579 (exit $ac_status); }; }; then
20580
20581 echo "$as_me:$LINENO: result: yes" >&5
20582 echo "${ECHO_T}yes" >&6
20583
20584 cat >>confdefs.h <<\_ACEOF
20585 #define HAVE_MUTEX_LOCK_NESTED 1
20586 _ACEOF
20587
20588
20589 else
20590 echo "$as_me: failed program was:" >&5
20591 sed 's/^/| /' conftest.$ac_ext >&5
20592
20593 echo "$as_me:$LINENO: result: no" >&5
20594 echo "${ECHO_T}no" >&6
20595
20596
20597
20598 fi
20599
20600 rm -Rf build
20601
20602
20603
20604
20605 echo "$as_me:$LINENO: checking whether symbol div64_64 is exported" >&5
20606 echo $ECHO_N "checking whether symbol div64_64 is exported... $ECHO_C" >&6
20607 grep -q -E '[[:space:]]div64_64[[:space:]]' \
20608 $LINUX_OBJ/Module*.symvers 2>/dev/null
20609 rc=$?
20610 if test $rc -ne 0; then
20611 export=0
20612 for file in ; do
20613 grep -q -E "EXPORT_SYMBOL.*(div64_64)" \
20614 "$LINUX_OBJ/$file" 2>/dev/null
20615 rc=$?
20616 if test $rc -eq 0; then
20617 export=1
20618 break;
20619 fi
20620 done
20621 if test $export -eq 0; then
20622 echo "$as_me:$LINENO: result: no" >&5
20623 echo "${ECHO_T}no" >&6
20624
20625 else
20626 echo "$as_me:$LINENO: result: yes" >&5
20627 echo "${ECHO_T}yes" >&6
20628
20629 cat >>confdefs.h <<\_ACEOF
20630 #define HAVE_DIV64_64 1
20631 _ACEOF
20632
20633 fi
20634 else
20635 echo "$as_me:$LINENO: result: yes" >&5
20636 echo "${ECHO_T}yes" >&6
20637
20638 cat >>confdefs.h <<\_ACEOF
20639 #define HAVE_DIV64_64 1
20640 _ACEOF
20641
20642 fi
20643
20644
20645
20646 echo "$as_me:$LINENO: checking whether symbol div64_u64 is exported" >&5
20647 echo $ECHO_N "checking whether symbol div64_u64 is exported... $ECHO_C" >&6
20648 grep -q -E '[[:space:]]div64_u64[[:space:]]' \
20649 $LINUX_OBJ/Module*.symvers 2>/dev/null
20650 rc=$?
20651 if test $rc -ne 0; then
20652 export=0
20653 for file in ; do
20654 grep -q -E "EXPORT_SYMBOL.*(div64_u64)" \
20655 "$LINUX_OBJ/$file" 2>/dev/null
20656 rc=$?
20657 if test $rc -eq 0; then
20658 export=1
20659 break;
20660 fi
20661 done
20662 if test $export -eq 0; then
20663 echo "$as_me:$LINENO: result: no" >&5
20664 echo "${ECHO_T}no" >&6
20665
20666 else
20667 echo "$as_me:$LINENO: result: yes" >&5
20668 echo "${ECHO_T}yes" >&6
20669
20670 cat >>confdefs.h <<\_ACEOF
20671 #define HAVE_DIV64_U64 1
20672 _ACEOF
20673
20674 fi
20675 else
20676 echo "$as_me:$LINENO: result: yes" >&5
20677 echo "${ECHO_T}yes" >&6
20678
20679 cat >>confdefs.h <<\_ACEOF
20680 #define HAVE_DIV64_U64 1
20681 _ACEOF
20682
20683 fi
20684
20685
20686
20687 echo "$as_me:$LINENO: checking whether on_each_cpu() wants 3 args" >&5
20688 echo $ECHO_N "checking whether on_each_cpu() wants 3 args... $ECHO_C" >&6
20689
20690
20691 cat >conftest.c <<_ACEOF
20692 /* confdefs.h. */
20693 _ACEOF
20694 cat confdefs.h >>conftest.$ac_ext
20695 cat >>conftest.$ac_ext <<_ACEOF
20696 /* end confdefs.h. */
20697
20698
20699 #include <linux/smp.h>
20700
20701 int
20702 main (void)
20703 {
20704
20705 on_each_cpu(NULL, NULL, 0);
20706
20707 ;
20708 return 0;
20709 }
20710
20711 _ACEOF
20712
20713
20714 rm -Rf build && mkdir -p build
20715 echo "obj-m := conftest.o" >build/Makefile
20716 if { ac_try='cp conftest.c build && make modules LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20718 (eval $ac_try) 2>&5
20719 ac_status=$?
20720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20721 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20723 (eval $ac_try) 2>&5
20724 ac_status=$?
20725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20726 (exit $ac_status); }; }; then
20727
20728 echo "$as_me:$LINENO: result: yes" >&5
20729 echo "${ECHO_T}yes" >&6
20730
20731 cat >>confdefs.h <<\_ACEOF
20732 #define HAVE_3ARGS_ON_EACH_CPU 1
20733 _ACEOF
20734
20735
20736 else
20737 echo "$as_me: failed program was:" >&5
20738 sed 's/^/| /' conftest.$ac_ext >&5
20739
20740 echo "$as_me:$LINENO: result: no" >&5
20741 echo "${ECHO_T}no" >&6
20742
20743
20744
20745 fi
20746
20747 rm -Rf build
20748
20749
20750
20751
20752 echo "$as_me:$LINENO: checking whether symbol kallsyms_lookup_name is exported" >&5
20753 echo $ECHO_N "checking whether symbol kallsyms_lookup_name is exported... $ECHO_C" >&6
20754 grep -q -E '[[:space:]]kallsyms_lookup_name[[:space:]]' \
20755 $LINUX_OBJ/Module*.symvers 2>/dev/null
20756 rc=$?
20757 if test $rc -ne 0; then
20758 export=0
20759 for file in ; do
20760 grep -q -E "EXPORT_SYMBOL.*(kallsyms_lookup_name)" \
20761 "$LINUX_OBJ/$file" 2>/dev/null
20762 rc=$?
20763 if test $rc -eq 0; then
20764 export=1
20765 break;
20766 fi
20767 done
20768 if test $export -eq 0; then
20769 echo "$as_me:$LINENO: result: no" >&5
20770 echo "${ECHO_T}no" >&6
20771
20772 else
20773 echo "$as_me:$LINENO: result: yes" >&5
20774 echo "${ECHO_T}yes" >&6
20775
20776 cat >>confdefs.h <<\_ACEOF
20777 #define HAVE_KALLSYMS_LOOKUP_NAME 1
20778 _ACEOF
20779
20780 fi
20781 else
20782 echo "$as_me:$LINENO: result: yes" >&5
20783 echo "${ECHO_T}yes" >&6
20784
20785 cat >>confdefs.h <<\_ACEOF
20786 #define HAVE_KALLSYMS_LOOKUP_NAME 1
20787 _ACEOF
20788
20789 fi
20790
20791
20792
20793 echo "$as_me:$LINENO: checking whether symbol get_vmalloc_info is exported" >&5
20794 echo $ECHO_N "checking whether symbol get_vmalloc_info is exported... $ECHO_C" >&6
20795 grep -q -E '[[:space:]]get_vmalloc_info[[:space:]]' \
20796 $LINUX_OBJ/Module*.symvers 2>/dev/null
20797 rc=$?
20798 if test $rc -ne 0; then
20799 export=0
20800 for file in ; do
20801 grep -q -E "EXPORT_SYMBOL.*(get_vmalloc_info)" \
20802 "$LINUX_OBJ/$file" 2>/dev/null
20803 rc=$?
20804 if test $rc -eq 0; then
20805 export=1
20806 break;
20807 fi
20808 done
20809 if test $export -eq 0; then
20810 echo "$as_me:$LINENO: result: no" >&5
20811 echo "${ECHO_T}no" >&6
20812
20813 else
20814 echo "$as_me:$LINENO: result: yes" >&5
20815 echo "${ECHO_T}yes" >&6
20816
20817 cat >>confdefs.h <<\_ACEOF
20818 #define HAVE_GET_VMALLOC_INFO 1
20819 _ACEOF
20820
20821 fi
20822 else
20823 echo "$as_me:$LINENO: result: yes" >&5
20824 echo "${ECHO_T}yes" >&6
20825
20826 cat >>confdefs.h <<\_ACEOF
20827 #define HAVE_GET_VMALLOC_INFO 1
20828 _ACEOF
20829
20830 fi
20831
20832
20833
20834 echo "$as_me:$LINENO: checking whether symbol *_pgdat exist" >&5
20835 echo $ECHO_N "checking whether symbol *_pgdat exist... $ECHO_C" >&6
20836 grep -q -E 'first_online_pgdat' $LINUX/include/linux/mmzone.h 2>/dev/null
20837 rc=$?
20838 if test $rc -eq 0; then
20839 echo "$as_me:$LINENO: result: yes" >&5
20840 echo "${ECHO_T}yes" >&6
20841
20842 cat >>confdefs.h <<\_ACEOF
20843 #define HAVE_PGDAT_HELPERS 1
20844 _ACEOF
20845
20846 else
20847 echo "$as_me:$LINENO: result: no" >&5
20848 echo "${ECHO_T}no" >&6
20849 fi
20850
20851
20852 echo "$as_me:$LINENO: checking whether symbol first_online_pgdat is exported" >&5
20853 echo $ECHO_N "checking whether symbol first_online_pgdat is exported... $ECHO_C" >&6
20854 grep -q -E '[[:space:]]first_online_pgdat[[:space:]]' \
20855 $LINUX_OBJ/Module*.symvers 2>/dev/null
20856 rc=$?
20857 if test $rc -ne 0; then
20858 export=0
20859 for file in ; do
20860 grep -q -E "EXPORT_SYMBOL.*(first_online_pgdat)" \
20861 "$LINUX_OBJ/$file" 2>/dev/null
20862 rc=$?
20863 if test $rc -eq 0; then
20864 export=1
20865 break;
20866 fi
20867 done
20868 if test $export -eq 0; then
20869 echo "$as_me:$LINENO: result: no" >&5
20870 echo "${ECHO_T}no" >&6
20871
20872 else
20873 echo "$as_me:$LINENO: result: yes" >&5
20874 echo "${ECHO_T}yes" >&6
20875
20876 cat >>confdefs.h <<\_ACEOF
20877 #define HAVE_FIRST_ONLINE_PGDAT 1
20878 _ACEOF
20879
20880 fi
20881 else
20882 echo "$as_me:$LINENO: result: yes" >&5
20883 echo "${ECHO_T}yes" >&6
20884
20885 cat >>confdefs.h <<\_ACEOF
20886 #define HAVE_FIRST_ONLINE_PGDAT 1
20887 _ACEOF
20888
20889 fi
20890
20891
20892
20893 echo "$as_me:$LINENO: checking whether symbol next_online_pgdat is exported" >&5
20894 echo $ECHO_N "checking whether symbol next_online_pgdat is exported... $ECHO_C" >&6
20895 grep -q -E '[[:space:]]next_online_pgdat[[:space:]]' \
20896 $LINUX_OBJ/Module*.symvers 2>/dev/null
20897 rc=$?
20898 if test $rc -ne 0; then
20899 export=0
20900 for file in ; do
20901 grep -q -E "EXPORT_SYMBOL.*(next_online_pgdat)" \
20902 "$LINUX_OBJ/$file" 2>/dev/null
20903 rc=$?
20904 if test $rc -eq 0; then
20905 export=1
20906 break;
20907 fi
20908 done
20909 if test $export -eq 0; then
20910 echo "$as_me:$LINENO: result: no" >&5
20911 echo "${ECHO_T}no" >&6
20912
20913 else
20914 echo "$as_me:$LINENO: result: yes" >&5
20915 echo "${ECHO_T}yes" >&6
20916
20917 cat >>confdefs.h <<\_ACEOF
20918 #define HAVE_NEXT_ONLINE_PGDAT 1
20919 _ACEOF
20920
20921 fi
20922 else
20923 echo "$as_me:$LINENO: result: yes" >&5
20924 echo "${ECHO_T}yes" >&6
20925
20926 cat >>confdefs.h <<\_ACEOF
20927 #define HAVE_NEXT_ONLINE_PGDAT 1
20928 _ACEOF
20929
20930 fi
20931
20932
20933
20934 echo "$as_me:$LINENO: checking whether symbol next_zone is exported" >&5
20935 echo $ECHO_N "checking whether symbol next_zone is exported... $ECHO_C" >&6
20936 grep -q -E '[[:space:]]next_zone[[:space:]]' \
20937 $LINUX_OBJ/Module*.symvers 2>/dev/null
20938 rc=$?
20939 if test $rc -ne 0; then
20940 export=0
20941 for file in ; do
20942 grep -q -E "EXPORT_SYMBOL.*(next_zone)" \
20943 "$LINUX_OBJ/$file" 2>/dev/null
20944 rc=$?
20945 if test $rc -eq 0; then
20946 export=1
20947 break;
20948 fi
20949 done
20950 if test $export -eq 0; then
20951 echo "$as_me:$LINENO: result: no" >&5
20952 echo "${ECHO_T}no" >&6
20953
20954 else
20955 echo "$as_me:$LINENO: result: yes" >&5
20956 echo "${ECHO_T}yes" >&6
20957
20958 cat >>confdefs.h <<\_ACEOF
20959 #define HAVE_NEXT_ZONE 1
20960 _ACEOF
20961
20962 fi
20963 else
20964 echo "$as_me:$LINENO: result: yes" >&5
20965 echo "${ECHO_T}yes" >&6
20966
20967 cat >>confdefs.h <<\_ACEOF
20968 #define HAVE_NEXT_ZONE 1
20969 _ACEOF
20970
20971 fi
20972
20973
20974
20975 echo "$as_me:$LINENO: checking whether symbol pgdat_list is exported" >&5
20976 echo $ECHO_N "checking whether symbol pgdat_list is exported... $ECHO_C" >&6
20977 grep -q -E '[[:space:]]pgdat_list[[:space:]]' \
20978 $LINUX_OBJ/Module*.symvers 2>/dev/null
20979 rc=$?
20980 if test $rc -ne 0; then
20981 export=0
20982 for file in ; do
20983 grep -q -E "EXPORT_SYMBOL.*(pgdat_list)" \
20984 "$LINUX_OBJ/$file" 2>/dev/null
20985 rc=$?
20986 if test $rc -eq 0; then
20987 export=1
20988 break;
20989 fi
20990 done
20991 if test $export -eq 0; then
20992 echo "$as_me:$LINENO: result: no" >&5
20993 echo "${ECHO_T}no" >&6
20994
20995 else
20996 echo "$as_me:$LINENO: result: yes" >&5
20997 echo "${ECHO_T}yes" >&6
20998
20999 cat >>confdefs.h <<\_ACEOF
21000 #define HAVE_PGDAT_LIST 1
21001 _ACEOF
21002
21003 fi
21004 else
21005 echo "$as_me:$LINENO: result: yes" >&5
21006 echo "${ECHO_T}yes" >&6
21007
21008 cat >>confdefs.h <<\_ACEOF
21009 #define HAVE_PGDAT_LIST 1
21010 _ACEOF
21011
21012 fi
21013
21014
21015
21016 echo "$as_me:$LINENO: checking whether symbol get_zone_counts is exported" >&5
21017 echo $ECHO_N "checking whether symbol get_zone_counts is exported... $ECHO_C" >&6
21018 grep -q -E '[[:space:]]get_zone_counts[[:space:]]' \
21019 $LINUX_OBJ/Module*.symvers 2>/dev/null
21020 rc=$?
21021 if test $rc -ne 0; then
21022 export=0
21023 for file in ; do
21024 grep -q -E "EXPORT_SYMBOL.*(get_zone_counts)" \
21025 "$LINUX_OBJ/$file" 2>/dev/null
21026 rc=$?
21027 if test $rc -eq 0; then
21028 export=1
21029 break;
21030 fi
21031 done
21032 if test $export -eq 0; then
21033 echo "$as_me:$LINENO: result: no" >&5
21034 echo "${ECHO_T}no" >&6
21035
21036 else
21037 echo "$as_me:$LINENO: result: yes" >&5
21038 echo "${ECHO_T}yes" >&6
21039
21040 cat >>confdefs.h <<\_ACEOF
21041 #define HAVE_GET_ZONE_COUNTS 1
21042 _ACEOF
21043
21044 fi
21045 else
21046 echo "$as_me:$LINENO: result: yes" >&5
21047 echo "${ECHO_T}yes" >&6
21048
21049 cat >>confdefs.h <<\_ACEOF
21050 #define HAVE_GET_ZONE_COUNTS 1
21051 _ACEOF
21052
21053 fi
21054
21055
21056
21057 echo "$as_me:$LINENO: checking whether global_page_state() is available" >&5
21058 echo $ECHO_N "checking whether global_page_state() is available... $ECHO_C" >&6
21059
21060
21061 cat >conftest.c <<_ACEOF
21062 /* confdefs.h. */
21063 _ACEOF
21064 cat confdefs.h >>conftest.$ac_ext
21065 cat >>conftest.$ac_ext <<_ACEOF
21066 /* end confdefs.h. */
21067
21068
21069 #include <linux/vmstat.h>
21070
21071 int
21072 main (void)
21073 {
21074
21075 unsigned long state;
21076 state = global_page_state(NR_FREE_PAGES);
21077
21078 ;
21079 return 0;
21080 }
21081
21082 _ACEOF
21083
21084
21085 rm -Rf build && mkdir -p build
21086 echo "obj-m := conftest.o" >build/Makefile
21087 if { ac_try='cp conftest.c build && make modules LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
21088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21089 (eval $ac_try) 2>&5
21090 ac_status=$?
21091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21092 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21094 (eval $ac_try) 2>&5
21095 ac_status=$?
21096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21097 (exit $ac_status); }; }; then
21098
21099 echo "$as_me:$LINENO: result: yes" >&5
21100 echo "${ECHO_T}yes" >&6
21101
21102 cat >>confdefs.h <<\_ACEOF
21103 #define HAVE_GLOBAL_PAGE_STATE 1
21104 _ACEOF
21105
21106
21107 else
21108 echo "$as_me: failed program was:" >&5
21109 sed 's/^/| /' conftest.$ac_ext >&5
21110
21111 echo "$as_me:$LINENO: result: no" >&5
21112 echo "${ECHO_T}no" >&6
21113
21114
21115
21116 fi
21117
21118 rm -Rf build
21119
21120
21121
21122
21123 echo "$as_me:$LINENO: checking whether free/inactive/active page state is available" >&5
21124 echo $ECHO_N "checking whether free/inactive/active page state is available... $ECHO_C" >&6
21125
21126
21127 cat >conftest.c <<_ACEOF
21128 /* confdefs.h. */
21129 _ACEOF
21130 cat confdefs.h >>conftest.$ac_ext
21131 cat >>conftest.$ac_ext <<_ACEOF
21132 /* end confdefs.h. */
21133
21134
21135 #include <linux/mmzone.h>
21136
21137 int
21138 main (void)
21139 {
21140
21141 enum zone_stat_item i1, i2, i3;
21142 i1 = NR_FREE_PAGES;
21143 i2 = NR_INACTIVE;
21144 i3 = NR_ACTIVE;
21145
21146 ;
21147 return 0;
21148 }
21149
21150 _ACEOF
21151
21152
21153 rm -Rf build && mkdir -p build
21154 echo "obj-m := conftest.o" >build/Makefile
21155 if { ac_try='cp conftest.c build && make modules LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
21156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21157 (eval $ac_try) 2>&5
21158 ac_status=$?
21159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21160 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21162 (eval $ac_try) 2>&5
21163 ac_status=$?
21164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21165 (exit $ac_status); }; }; then
21166
21167 echo "$as_me:$LINENO: result: yes" >&5
21168 echo "${ECHO_T}yes" >&6
21169
21170 cat >>confdefs.h <<\_ACEOF
21171 #define HAVE_ZONE_STAT_ITEM_FIA 1
21172 _ACEOF
21173
21174
21175 else
21176 echo "$as_me: failed program was:" >&5
21177 sed 's/^/| /' conftest.$ac_ext >&5
21178
21179 echo "$as_me:$LINENO: result: no" >&5
21180 echo "${ECHO_T}no" >&6
21181
21182
21183
21184 fi
21185
21186 rm -Rf build
21187
21188
21189
21190 echo "$as_me:$LINENO: checking whether vfs_unlink() wants 2 args" >&5
21191 echo $ECHO_N "checking whether vfs_unlink() wants 2 args... $ECHO_C" >&6
21192
21193
21194 cat >conftest.c <<_ACEOF
21195 /* confdefs.h. */
21196 _ACEOF
21197 cat confdefs.h >>conftest.$ac_ext
21198 cat >>conftest.$ac_ext <<_ACEOF
21199 /* end confdefs.h. */
21200
21201
21202 #include <linux/fs.h>
21203
21204 int
21205 main (void)
21206 {
21207
21208 vfs_unlink(NULL, NULL);
21209
21210 ;
21211 return 0;
21212 }
21213
21214 _ACEOF
21215
21216
21217 rm -Rf build && mkdir -p build
21218 echo "obj-m := conftest.o" >build/Makefile
21219 if { ac_try='cp conftest.c build && make modules LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
21220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21221 (eval $ac_try) 2>&5
21222 ac_status=$?
21223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21224 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21226 (eval $ac_try) 2>&5
21227 ac_status=$?
21228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21229 (exit $ac_status); }; }; then
21230
21231 echo "$as_me:$LINENO: result: yes" >&5
21232 echo "${ECHO_T}yes" >&6
21233
21234 cat >>confdefs.h <<\_ACEOF
21235 #define HAVE_2ARGS_VFS_UNLINK 1
21236 _ACEOF
21237
21238
21239 else
21240 echo "$as_me: failed program was:" >&5
21241 sed 's/^/| /' conftest.$ac_ext >&5
21242
21243 echo "$as_me:$LINENO: result: no" >&5
21244 echo "${ECHO_T}no" >&6
21245
21246
21247
21248 fi
21249
21250 rm -Rf build
21251
21252
21253
21254 echo "$as_me:$LINENO: checking whether vfs_rename() wants 4 args" >&5
21255 echo $ECHO_N "checking whether vfs_rename() wants 4 args... $ECHO_C" >&6
21256
21257
21258 cat >conftest.c <<_ACEOF
21259 /* confdefs.h. */
21260 _ACEOF
21261 cat confdefs.h >>conftest.$ac_ext
21262 cat >>conftest.$ac_ext <<_ACEOF
21263 /* end confdefs.h. */
21264
21265
21266 #include <linux/fs.h>
21267
21268 int
21269 main (void)
21270 {
21271
21272 vfs_rename(NULL, NULL, NULL, NULL);
21273
21274 ;
21275 return 0;
21276 }
21277
21278 _ACEOF
21279
21280
21281 rm -Rf build && mkdir -p build
21282 echo "obj-m := conftest.o" >build/Makefile
21283 if { ac_try='cp conftest.c build && make modules LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
21284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21285 (eval $ac_try) 2>&5
21286 ac_status=$?
21287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21288 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21290 (eval $ac_try) 2>&5
21291 ac_status=$?
21292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21293 (exit $ac_status); }; }; then
21294
21295 echo "$as_me:$LINENO: result: yes" >&5
21296 echo "${ECHO_T}yes" >&6
21297
21298 cat >>confdefs.h <<\_ACEOF
21299 #define HAVE_4ARGS_VFS_RENAME 1
21300 _ACEOF
21301
21302
21303 else
21304 echo "$as_me: failed program was:" >&5
21305 sed 's/^/| /' conftest.$ac_ext >&5
21306
21307 echo "$as_me:$LINENO: result: no" >&5
21308 echo "${ECHO_T}no" >&6
21309
21310
21311
21312 fi
21313
21314 rm -Rf build
21315
21316
21317
21318
21319 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"
21320
21321
21322 cat >confcache <<\_ACEOF
21323 # This file is a shell script that caches the results of configure
21324 # tests run on this system so they can be shared between configure
21325 # scripts and configure runs, see configure's option --config-cache.
21326 # It is not useful on other systems. If it contains results you don't
21327 # want to keep, you may remove or edit it.
21328 #
21329 # config.status only pays attention to the cache file if you give it
21330 # the --recheck option to rerun configure.
21331 #
21332 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21333 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21334 # following values.
21335
21336 _ACEOF
21337
21338 # The following way of writing the cache mishandles newlines in values,
21339 # but we know of no workaround that is simple, portable, and efficient.
21340 # So, don't put newlines in cache variables' values.
21341 # Ultrix sh set writes to stderr and can't be redirected directly,
21342 # and sets the high bit in the cache file unless we assign to the vars.
21343 {
21344 (set) 2>&1 |
21345 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21346 *ac_space=\ *)
21347 # `set' does not quote correctly, so add quotes (double-quote
21348 # substitution turns \\\\ into \\, and sed turns \\ into \).
21349 sed -n \
21350 "s/'/'\\\\''/g;
21351 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21352 ;;
21353 *)
21354 # `set' quotes correctly as required by POSIX, so do not add quotes.
21355 sed -n \
21356 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21357 ;;
21358 esac;
21359 } |
21360 sed '
21361 t clear
21362 : clear
21363 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21364 t end
21365 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21366 : end' >>confcache
21367 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21368 if test -w $cache_file; then
21369 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21370 cat confcache >$cache_file
21371 else
21372 echo "not updating unwritable cache $cache_file"
21373 fi
21374 fi
21375 rm -f confcache
21376
21377 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21378 # Let make expand exec_prefix.
21379 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21380
21381 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21382 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21383 # trailing colons and then remove the whole line if VPATH becomes empty
21384 # (actually we leave an empty line to preserve line numbers).
21385 if test "x$srcdir" = x.; then
21386 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21387 s/:*\$(srcdir):*/:/;
21388 s/:*\${srcdir}:*/:/;
21389 s/:*@srcdir@:*/:/;
21390 s/^\([^=]*=[ ]*\):*/\1/;
21391 s/:*$//;
21392 s/^[^=]*=[ ]*$//;
21393 }'
21394 fi
21395
21396 DEFS=-DHAVE_CONFIG_H
21397
21398 ac_libobjs=
21399 ac_ltlibobjs=
21400 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21401 # 1. Remove the extension, and $U if already installed.
21402 ac_i=`echo "$ac_i" |
21403 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21404 # 2. Add them.
21405 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21406 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21407 done
21408 LIBOBJS=$ac_libobjs
21409
21410 LTLIBOBJS=$ac_ltlibobjs
21411
21412
21413 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21414 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21415 Usually this means the macro was only invoked conditionally." >&5
21416 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21417 Usually this means the macro was only invoked conditionally." >&2;}
21418 { (exit 1); exit 1; }; }
21419 fi
21420 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21421 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21422 Usually this means the macro was only invoked conditionally." >&5
21423 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21424 Usually this means the macro was only invoked conditionally." >&2;}
21425 { (exit 1); exit 1; }; }
21426 fi
21427 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21428 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21429 Usually this means the macro was only invoked conditionally." >&5
21430 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21431 Usually this means the macro was only invoked conditionally." >&2;}
21432 { (exit 1); exit 1; }; }
21433 fi
21434 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21435 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21436 Usually this means the macro was only invoked conditionally." >&5
21437 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21438 Usually this means the macro was only invoked conditionally." >&2;}
21439 { (exit 1); exit 1; }; }
21440 fi
21441
21442 : ${CONFIG_STATUS=./config.status}
21443 ac_clean_files_save=$ac_clean_files
21444 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21445 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21446 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21447 cat >$CONFIG_STATUS <<_ACEOF
21448 #! $SHELL
21449 # Generated by $as_me.
21450 # Run this file to recreate the current configuration.
21451 # Compiler output produced by configure, useful for debugging
21452 # configure, is in config.log if it exists.
21453
21454 debug=false
21455 ac_cs_recheck=false
21456 ac_cs_silent=false
21457 SHELL=\${CONFIG_SHELL-$SHELL}
21458 _ACEOF
21459
21460 cat >>$CONFIG_STATUS <<\_ACEOF
21461 ## --------------------- ##
21462 ## M4sh Initialization. ##
21463 ## --------------------- ##
21464
21465 # Be Bourne compatible
21466 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21467 emulate sh
21468 NULLCMD=:
21469 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21470 # is contrary to our usage. Disable this feature.
21471 alias -g '${1+"$@"}'='"$@"'
21472 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21473 set -o posix
21474 fi
21475 DUALCASE=1; export DUALCASE # for MKS sh
21476
21477 # Support unset when possible.
21478 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21479 as_unset=unset
21480 else
21481 as_unset=false
21482 fi
21483
21484
21485 # Work around bugs in pre-3.0 UWIN ksh.
21486 $as_unset ENV MAIL MAILPATH
21487 PS1='$ '
21488 PS2='> '
21489 PS4='+ '
21490
21491 # NLS nuisances.
21492 for as_var in \
21493 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21494 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21495 LC_TELEPHONE LC_TIME
21496 do
21497 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21498 eval $as_var=C; export $as_var
21499 else
21500 $as_unset $as_var
21501 fi
21502 done
21503
21504 # Required to use basename.
21505 if expr a : '\(a\)' >/dev/null 2>&1; then
21506 as_expr=expr
21507 else
21508 as_expr=false
21509 fi
21510
21511 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21512 as_basename=basename
21513 else
21514 as_basename=false
21515 fi
21516
21517
21518 # Name of the executable.
21519 as_me=`$as_basename "$0" ||
21520 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21521 X"$0" : 'X\(//\)$' \| \
21522 X"$0" : 'X\(/\)$' \| \
21523 . : '\(.\)' 2>/dev/null ||
21524 echo X/"$0" |
21525 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21526 /^X\/\(\/\/\)$/{ s//\1/; q; }
21527 /^X\/\(\/\).*/{ s//\1/; q; }
21528 s/.*/./; q'`
21529
21530
21531 # PATH needs CR, and LINENO needs CR and PATH.
21532 # Avoid depending upon Character Ranges.
21533 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21534 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21535 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21536 as_cr_digits='0123456789'
21537 as_cr_alnum=$as_cr_Letters$as_cr_digits
21538
21539 # The user is always right.
21540 if test "${PATH_SEPARATOR+set}" != set; then
21541 echo "#! /bin/sh" >conf$$.sh
21542 echo "exit 0" >>conf$$.sh
21543 chmod +x conf$$.sh
21544 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21545 PATH_SEPARATOR=';'
21546 else
21547 PATH_SEPARATOR=:
21548 fi
21549 rm -f conf$$.sh
21550 fi
21551
21552
21553 as_lineno_1=$LINENO
21554 as_lineno_2=$LINENO
21555 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21556 test "x$as_lineno_1" != "x$as_lineno_2" &&
21557 test "x$as_lineno_3" = "x$as_lineno_2" || {
21558 # Find who we are. Look in the path if we contain no path at all
21559 # relative or not.
21560 case $0 in
21561 *[\\/]* ) as_myself=$0 ;;
21562 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21563 for as_dir in $PATH
21564 do
21565 IFS=$as_save_IFS
21566 test -z "$as_dir" && as_dir=.
21567 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21568 done
21569
21570 ;;
21571 esac
21572 # We did not find ourselves, most probably we were run as `sh COMMAND'
21573 # in which case we are not to be found in the path.
21574 if test "x$as_myself" = x; then
21575 as_myself=$0
21576 fi
21577 if test ! -f "$as_myself"; then
21578 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21579 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21580 { (exit 1); exit 1; }; }
21581 fi
21582 case $CONFIG_SHELL in
21583 '')
21584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21585 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21586 do
21587 IFS=$as_save_IFS
21588 test -z "$as_dir" && as_dir=.
21589 for as_base in sh bash ksh sh5; do
21590 case $as_dir in
21591 /*)
21592 if ("$as_dir/$as_base" -c '
21593 as_lineno_1=$LINENO
21594 as_lineno_2=$LINENO
21595 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21596 test "x$as_lineno_1" != "x$as_lineno_2" &&
21597 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
21598 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21599 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21600 CONFIG_SHELL=$as_dir/$as_base
21601 export CONFIG_SHELL
21602 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21603 fi;;
21604 esac
21605 done
21606 done
21607 ;;
21608 esac
21609
21610 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21611 # uniformly replaced by the line number. The first 'sed' inserts a
21612 # line-number line before each line; the second 'sed' does the real
21613 # work. The second script uses 'N' to pair each line-number line
21614 # with the numbered line, and appends trailing '-' during
21615 # substitution so that $LINENO is not a special case at line end.
21616 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21617 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21618 sed '=' <$as_myself |
21619 sed '
21620 N
21621 s,$,-,
21622 : loop
21623 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21624 t loop
21625 s,-$,,
21626 s,^['$as_cr_digits']*\n,,
21627 ' >$as_me.lineno &&
21628 chmod +x $as_me.lineno ||
21629 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21630 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21631 { (exit 1); exit 1; }; }
21632
21633 # Don't try to exec as it changes $[0], causing all sort of problems
21634 # (the dirname of $[0] is not the place where we might find the
21635 # original and so on. Autoconf is especially sensible to this).
21636 . ./$as_me.lineno
21637 # Exit status is that of the last command.
21638 exit
21639 }
21640
21641
21642 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21643 *c*,-n*) ECHO_N= ECHO_C='
21644 ' ECHO_T=' ' ;;
21645 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21646 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21647 esac
21648
21649 if expr a : '\(a\)' >/dev/null 2>&1; then
21650 as_expr=expr
21651 else
21652 as_expr=false
21653 fi
21654
21655 rm -f conf$$ conf$$.exe conf$$.file
21656 echo >conf$$.file
21657 if ln -s conf$$.file conf$$ 2>/dev/null; then
21658 # We could just check for DJGPP; but this test a) works b) is more generic
21659 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21660 if test -f conf$$.exe; then
21661 # Don't use ln at all; we don't have any links
21662 as_ln_s='cp -p'
21663 else
21664 as_ln_s='ln -s'
21665 fi
21666 elif ln conf$$.file conf$$ 2>/dev/null; then
21667 as_ln_s=ln
21668 else
21669 as_ln_s='cp -p'
21670 fi
21671 rm -f conf$$ conf$$.exe conf$$.file
21672
21673 if mkdir -p . 2>/dev/null; then
21674 as_mkdir_p=:
21675 else
21676 test -d ./-p && rmdir ./-p
21677 as_mkdir_p=false
21678 fi
21679
21680 as_executable_p="test -f"
21681
21682 # Sed expression to map a string onto a valid CPP name.
21683 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21684
21685 # Sed expression to map a string onto a valid variable name.
21686 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21687
21688
21689 # IFS
21690 # We need space, tab and new line, in precisely that order.
21691 as_nl='
21692 '
21693 IFS=" $as_nl"
21694
21695 # CDPATH.
21696 $as_unset CDPATH
21697
21698 exec 6>&1
21699
21700 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21701 # report actual input values of CONFIG_FILES etc. instead of their
21702 # values after options handling. Logging --version etc. is OK.
21703 exec 5>>config.log
21704 {
21705 echo
21706 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21707 ## Running $as_me. ##
21708 _ASBOX
21709 } >&5
21710 cat >&5 <<_CSEOF
21711
21712 This file was extended by $as_me, which was
21713 generated by GNU Autoconf 2.59. Invocation command line was
21714
21715 CONFIG_FILES = $CONFIG_FILES
21716 CONFIG_HEADERS = $CONFIG_HEADERS
21717 CONFIG_LINKS = $CONFIG_LINKS
21718 CONFIG_COMMANDS = $CONFIG_COMMANDS
21719 $ $0 $@
21720
21721 _CSEOF
21722 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21723 echo >&5
21724 _ACEOF
21725
21726 # Files that config.status was made for.
21727 if test -n "$ac_config_files"; then
21728 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21729 fi
21730
21731 if test -n "$ac_config_headers"; then
21732 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21733 fi
21734
21735 if test -n "$ac_config_links"; then
21736 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21737 fi
21738
21739 if test -n "$ac_config_commands"; then
21740 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21741 fi
21742
21743 cat >>$CONFIG_STATUS <<\_ACEOF
21744
21745 ac_cs_usage="\
21746 \`$as_me' instantiates files from templates according to the
21747 current configuration.
21748
21749 Usage: $0 [OPTIONS] [FILE]...
21750
21751 -h, --help print this help, then exit
21752 -V, --version print version number, then exit
21753 -q, --quiet do not print progress messages
21754 -d, --debug don't remove temporary files
21755 --recheck update $as_me by reconfiguring in the same conditions
21756 --file=FILE[:TEMPLATE]
21757 instantiate the configuration file FILE
21758 --header=FILE[:TEMPLATE]
21759 instantiate the configuration header FILE
21760
21761 Configuration files:
21762 $config_files
21763
21764 Configuration headers:
21765 $config_headers
21766
21767 Configuration commands:
21768 $config_commands
21769
21770 Report bugs to <bug-autoconf@gnu.org>."
21771 _ACEOF
21772
21773 cat >>$CONFIG_STATUS <<_ACEOF
21774 ac_cs_version="\\
21775 config.status
21776 configured by $0, generated by GNU Autoconf 2.59,
21777 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21778
21779 Copyright (C) 2003 Free Software Foundation, Inc.
21780 This config.status script is free software; the Free Software Foundation
21781 gives unlimited permission to copy, distribute and modify it."
21782 srcdir=$srcdir
21783 INSTALL="$INSTALL"
21784 _ACEOF
21785
21786 cat >>$CONFIG_STATUS <<\_ACEOF
21787 # If no file are specified by the user, then we need to provide default
21788 # value. By we need to know if files were specified by the user.
21789 ac_need_defaults=:
21790 while test $# != 0
21791 do
21792 case $1 in
21793 --*=*)
21794 ac_option=`expr "x$1" : 'x\([^=]*\)='`
21795 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21796 ac_shift=:
21797 ;;
21798 -*)
21799 ac_option=$1
21800 ac_optarg=$2
21801 ac_shift=shift
21802 ;;
21803 *) # This is not an option, so the user has probably given explicit
21804 # arguments.
21805 ac_option=$1
21806 ac_need_defaults=false;;
21807 esac
21808
21809 case $ac_option in
21810 # Handling of the options.
21811 _ACEOF
21812 cat >>$CONFIG_STATUS <<\_ACEOF
21813 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21814 ac_cs_recheck=: ;;
21815 --version | --vers* | -V )
21816 echo "$ac_cs_version"; exit 0 ;;
21817 --he | --h)
21818 # Conflict between --help and --header
21819 { { echo "$as_me:$LINENO: error: ambiguous option: $1
21820 Try \`$0 --help' for more information." >&5
21821 echo "$as_me: error: ambiguous option: $1
21822 Try \`$0 --help' for more information." >&2;}
21823 { (exit 1); exit 1; }; };;
21824 --help | --hel | -h )
21825 echo "$ac_cs_usage"; exit 0 ;;
21826 --debug | --d* | -d )
21827 debug=: ;;
21828 --file | --fil | --fi | --f )
21829 $ac_shift
21830 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21831 ac_need_defaults=false;;
21832 --header | --heade | --head | --hea )
21833 $ac_shift
21834 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21835 ac_need_defaults=false;;
21836 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21837 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21838 ac_cs_silent=: ;;
21839
21840 # This is an error.
21841 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21842 Try \`$0 --help' for more information." >&5
21843 echo "$as_me: error: unrecognized option: $1
21844 Try \`$0 --help' for more information." >&2;}
21845 { (exit 1); exit 1; }; } ;;
21846
21847 *) ac_config_targets="$ac_config_targets $1" ;;
21848
21849 esac
21850 shift
21851 done
21852
21853 ac_configure_extra_args=
21854
21855 if $ac_cs_silent; then
21856 exec 6>/dev/null
21857 ac_configure_extra_args="$ac_configure_extra_args --silent"
21858 fi
21859
21860 _ACEOF
21861 cat >>$CONFIG_STATUS <<_ACEOF
21862 if \$ac_cs_recheck; then
21863 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21864 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21865 fi
21866
21867 _ACEOF
21868
21869 cat >>$CONFIG_STATUS <<_ACEOF
21870 #
21871 # INIT-COMMANDS section.
21872 #
21873
21874 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21875
21876 _ACEOF
21877
21878
21879
21880 cat >>$CONFIG_STATUS <<\_ACEOF
21881 for ac_config_target in $ac_config_targets
21882 do
21883 case "$ac_config_target" in
21884 # Handling of arguments.
21885 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21886 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
21887 "cmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES cmd/Makefile" ;;
21888 "module/Makefile" ) CONFIG_FILES="$CONFIG_FILES module/Makefile" ;;
21889 "module/spl/Makefile" ) CONFIG_FILES="$CONFIG_FILES module/spl/Makefile" ;;
21890 "module/splat/Makefile" ) CONFIG_FILES="$CONFIG_FILES module/splat/Makefile" ;;
21891 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
21892 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
21893 "spl.spec" ) CONFIG_FILES="$CONFIG_FILES spl.spec" ;;
21894 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21895 "spl_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS spl_config.h" ;;
21896 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21897 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21898 { (exit 1); exit 1; }; };;
21899 esac
21900 done
21901
21902 # If the user did not use the arguments to specify the items to instantiate,
21903 # then the envvar interface is used. Set only those that are not.
21904 # We use the long form for the default assignment because of an extremely
21905 # bizarre bug on SunOS 4.1.3.
21906 if $ac_need_defaults; then
21907 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21908 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21909 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21910 fi
21911
21912 # Have a temporary directory for convenience. Make it in the build tree
21913 # simply because there is no reason to put it here, and in addition,
21914 # creating and moving files from /tmp can sometimes cause problems.
21915 # Create a temporary directory, and hook for its removal unless debugging.
21916 $debug ||
21917 {
21918 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21919 trap '{ (exit 1); exit 1; }' 1 2 13 15
21920 }
21921
21922 # Create a (secure) tmp directory for tmp files.
21923
21924 {
21925 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21926 test -n "$tmp" && test -d "$tmp"
21927 } ||
21928 {
21929 tmp=./confstat$$-$RANDOM
21930 (umask 077 && mkdir $tmp)
21931 } ||
21932 {
21933 echo "$me: cannot create a temporary directory in ." >&2
21934 { (exit 1); exit 1; }
21935 }
21936
21937 _ACEOF
21938
21939 cat >>$CONFIG_STATUS <<_ACEOF
21940
21941 #
21942 # CONFIG_FILES section.
21943 #
21944
21945 # No need to generate the scripts if there are no CONFIG_FILES.
21946 # This happens for instance when ./config.status config.h
21947 if test -n "\$CONFIG_FILES"; then
21948 # Protect against being on the right side of a sed subst in config.status.
21949 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21950 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21951 s,@SHELL@,$SHELL,;t t
21952 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21953 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21954 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21955 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21956 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21957 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21958 s,@exec_prefix@,$exec_prefix,;t t
21959 s,@prefix@,$prefix,;t t
21960 s,@program_transform_name@,$program_transform_name,;t t
21961 s,@bindir@,$bindir,;t t
21962 s,@sbindir@,$sbindir,;t t
21963 s,@libexecdir@,$libexecdir,;t t
21964 s,@datadir@,$datadir,;t t
21965 s,@sysconfdir@,$sysconfdir,;t t
21966 s,@sharedstatedir@,$sharedstatedir,;t t
21967 s,@localstatedir@,$localstatedir,;t t
21968 s,@libdir@,$libdir,;t t
21969 s,@includedir@,$includedir,;t t
21970 s,@oldincludedir@,$oldincludedir,;t t
21971 s,@infodir@,$infodir,;t t
21972 s,@mandir@,$mandir,;t t
21973 s,@build_alias@,$build_alias,;t t
21974 s,@host_alias@,$host_alias,;t t
21975 s,@target_alias@,$target_alias,;t t
21976 s,@DEFS@,$DEFS,;t t
21977 s,@ECHO_C@,$ECHO_C,;t t
21978 s,@ECHO_N@,$ECHO_N,;t t
21979 s,@ECHO_T@,$ECHO_T,;t t
21980 s,@LIBS@,$LIBS,;t t
21981 s,@SPL_META_NAME@,$SPL_META_NAME,;t t
21982 s,@SPL_META_VERSION@,$SPL_META_VERSION,;t t
21983 s,@SPL_META_RELEASE@,$SPL_META_RELEASE,;t t
21984 s,@SPL_META_ALIAS@,$SPL_META_ALIAS,;t t
21985 s,@SPL_META_DATA@,$SPL_META_DATA,;t t
21986 s,@SPL_META_AUTHOR@,$SPL_META_AUTHOR,;t t
21987 s,@SPL_META_LT_CURRENT@,$SPL_META_LT_CURRENT,;t t
21988 s,@SPL_META_LT_REVISION@,$SPL_META_LT_REVISION,;t t
21989 s,@SPL_META_LT_AGE@,$SPL_META_LT_AGE,;t t
21990 s,@build@,$build,;t t
21991 s,@build_cpu@,$build_cpu,;t t
21992 s,@build_vendor@,$build_vendor,;t t
21993 s,@build_os@,$build_os,;t t
21994 s,@host@,$host,;t t
21995 s,@host_cpu@,$host_cpu,;t t
21996 s,@host_vendor@,$host_vendor,;t t
21997 s,@host_os@,$host_os,;t t
21998 s,@target@,$target,;t t
21999 s,@target_cpu@,$target_cpu,;t t
22000 s,@target_vendor@,$target_vendor,;t t
22001 s,@target_os@,$target_os,;t t
22002 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22003 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22004 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22005 s,@CYGPATH_W@,$CYGPATH_W,;t t
22006 s,@PACKAGE@,$PACKAGE,;t t
22007 s,@VERSION@,$VERSION,;t t
22008 s,@ACLOCAL@,$ACLOCAL,;t t
22009 s,@AUTOCONF@,$AUTOCONF,;t t
22010 s,@AUTOMAKE@,$AUTOMAKE,;t t
22011 s,@AUTOHEADER@,$AUTOHEADER,;t t
22012 s,@MAKEINFO@,$MAKEINFO,;t t
22013 s,@install_sh@,$install_sh,;t t
22014 s,@STRIP@,$STRIP,;t t
22015 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22016 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
22017 s,@mkdir_p@,$mkdir_p,;t t
22018 s,@AWK@,$AWK,;t t
22019 s,@SET_MAKE@,$SET_MAKE,;t t
22020 s,@am__leading_dot@,$am__leading_dot,;t t
22021 s,@AMTAR@,$AMTAR,;t t
22022 s,@am__tar@,$am__tar,;t t
22023 s,@am__untar@,$am__untar,;t t
22024 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
22025 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
22026 s,@MAINT@,$MAINT,;t t
22027 s,@CC@,$CC,;t t
22028 s,@CFLAGS@,$CFLAGS,;t t
22029 s,@LDFLAGS@,$LDFLAGS,;t t
22030 s,@CPPFLAGS@,$CPPFLAGS,;t t
22031 s,@ac_ct_CC@,$ac_ct_CC,;t t
22032 s,@EXEEXT@,$EXEEXT,;t t
22033 s,@OBJEXT@,$OBJEXT,;t t
22034 s,@DEPDIR@,$DEPDIR,;t t
22035 s,@am__include@,$am__include,;t t
22036 s,@am__quote@,$am__quote,;t t
22037 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
22038 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
22039 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
22040 s,@CCDEPMODE@,$CCDEPMODE,;t t
22041 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
22042 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
22043 s,@SED@,$SED,;t t
22044 s,@EGREP@,$EGREP,;t t
22045 s,@LN_S@,$LN_S,;t t
22046 s,@ECHO@,$ECHO,;t t
22047 s,@AR@,$AR,;t t
22048 s,@ac_ct_AR@,$ac_ct_AR,;t t
22049 s,@RANLIB@,$RANLIB,;t t
22050 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22051 s,@CPP@,$CPP,;t t
22052 s,@CXX@,$CXX,;t t
22053 s,@CXXFLAGS@,$CXXFLAGS,;t t
22054 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22055 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
22056 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
22057 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
22058 s,@CXXCPP@,$CXXCPP,;t t
22059 s,@F77@,$F77,;t t
22060 s,@FFLAGS@,$FFLAGS,;t t
22061 s,@ac_ct_F77@,$ac_ct_F77,;t t
22062 s,@LIBTOOL@,$LIBTOOL,;t t
22063 s,@LINUX@,$LINUX,;t t
22064 s,@LINUX_OBJ@,$LINUX_OBJ,;t t
22065 s,@LINUX_VERSION@,$LINUX_VERSION,;t t
22066 s,@KERNELMAKE_PARAMS@,$KERNELMAKE_PARAMS,;t t
22067 s,@KERNELCPPFLAGS@,$KERNELCPPFLAGS,;t t
22068 s,@KERNELCFLAGS@,$KERNELCFLAGS,;t t
22069 s,@LINUX_SYMBOLS@,$LINUX_SYMBOLS,;t t
22070 s,@LIBOBJS@,$LIBOBJS,;t t
22071 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22072 CEOF
22073
22074 _ACEOF
22075
22076 cat >>$CONFIG_STATUS <<\_ACEOF
22077 # Split the substitutions into bite-sized pieces for seds with
22078 # small command number limits, like on Digital OSF/1 and HP-UX.
22079 ac_max_sed_lines=48
22080 ac_sed_frag=1 # Number of current file.
22081 ac_beg=1 # First line for current file.
22082 ac_end=$ac_max_sed_lines # Line after last line for current file.
22083 ac_more_lines=:
22084 ac_sed_cmds=
22085 while $ac_more_lines; do
22086 if test $ac_beg -gt 1; then
22087 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22088 else
22089 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22090 fi
22091 if test ! -s $tmp/subs.frag; then
22092 ac_more_lines=false
22093 else
22094 # The purpose of the label and of the branching condition is to
22095 # speed up the sed processing (if there are no `@' at all, there
22096 # is no need to browse any of the substitutions).
22097 # These are the two extra sed commands mentioned above.
22098 (echo ':t
22099 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22100 if test -z "$ac_sed_cmds"; then
22101 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22102 else
22103 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22104 fi
22105 ac_sed_frag=`expr $ac_sed_frag + 1`
22106 ac_beg=$ac_end
22107 ac_end=`expr $ac_end + $ac_max_sed_lines`
22108 fi
22109 done
22110 if test -z "$ac_sed_cmds"; then
22111 ac_sed_cmds=cat
22112 fi
22113 fi # test -n "$CONFIG_FILES"
22114
22115 _ACEOF
22116 cat >>$CONFIG_STATUS <<\_ACEOF
22117 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22118 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22119 case $ac_file in
22120 - | *:- | *:-:* ) # input from stdin
22121 cat >$tmp/stdin
22122 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22123 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22124 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22125 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22126 * ) ac_file_in=$ac_file.in ;;
22127 esac
22128
22129 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22130 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22131 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22132 X"$ac_file" : 'X\(//\)[^/]' \| \
22133 X"$ac_file" : 'X\(//\)$' \| \
22134 X"$ac_file" : 'X\(/\)' \| \
22135 . : '\(.\)' 2>/dev/null ||
22136 echo X"$ac_file" |
22137 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22138 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22139 /^X\(\/\/\)$/{ s//\1/; q; }
22140 /^X\(\/\).*/{ s//\1/; q; }
22141 s/.*/./; q'`
22142 { if $as_mkdir_p; then
22143 mkdir -p "$ac_dir"
22144 else
22145 as_dir="$ac_dir"
22146 as_dirs=
22147 while test ! -d "$as_dir"; do
22148 as_dirs="$as_dir $as_dirs"
22149 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22150 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22151 X"$as_dir" : 'X\(//\)[^/]' \| \
22152 X"$as_dir" : 'X\(//\)$' \| \
22153 X"$as_dir" : 'X\(/\)' \| \
22154 . : '\(.\)' 2>/dev/null ||
22155 echo X"$as_dir" |
22156 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22157 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22158 /^X\(\/\/\)$/{ s//\1/; q; }
22159 /^X\(\/\).*/{ s//\1/; q; }
22160 s/.*/./; q'`
22161 done
22162 test ! -n "$as_dirs" || mkdir $as_dirs
22163 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22164 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22165 { (exit 1); exit 1; }; }; }
22166
22167 ac_builddir=.
22168
22169 if test "$ac_dir" != .; then
22170 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22171 # A "../" for each directory in $ac_dir_suffix.
22172 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22173 else
22174 ac_dir_suffix= ac_top_builddir=
22175 fi
22176
22177 case $srcdir in
22178 .) # No --srcdir option. We are building in place.
22179 ac_srcdir=.
22180 if test -z "$ac_top_builddir"; then
22181 ac_top_srcdir=.
22182 else
22183 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22184 fi ;;
22185 [\\/]* | ?:[\\/]* ) # Absolute path.
22186 ac_srcdir=$srcdir$ac_dir_suffix;
22187 ac_top_srcdir=$srcdir ;;
22188 *) # Relative path.
22189 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22190 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22191 esac
22192
22193 # Do not use `cd foo && pwd` to compute absolute paths, because
22194 # the directories may not exist.
22195 case `pwd` in
22196 .) ac_abs_builddir="$ac_dir";;
22197 *)
22198 case "$ac_dir" in
22199 .) ac_abs_builddir=`pwd`;;
22200 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22201 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22202 esac;;
22203 esac
22204 case $ac_abs_builddir in
22205 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22206 *)
22207 case ${ac_top_builddir}. in
22208 .) ac_abs_top_builddir=$ac_abs_builddir;;
22209 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22210 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22211 esac;;
22212 esac
22213 case $ac_abs_builddir in
22214 .) ac_abs_srcdir=$ac_srcdir;;
22215 *)
22216 case $ac_srcdir in
22217 .) ac_abs_srcdir=$ac_abs_builddir;;
22218 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22219 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22220 esac;;
22221 esac
22222 case $ac_abs_builddir in
22223 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22224 *)
22225 case $ac_top_srcdir in
22226 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22227 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22228 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22229 esac;;
22230 esac
22231
22232
22233 case $INSTALL in
22234 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22235 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22236 esac
22237
22238 if test x"$ac_file" != x-; then
22239 { echo "$as_me:$LINENO: creating $ac_file" >&5
22240 echo "$as_me: creating $ac_file" >&6;}
22241 rm -f "$ac_file"
22242 fi
22243 # Let's still pretend it is `configure' which instantiates (i.e., don't
22244 # use $as_me), people would be surprised to read:
22245 # /* config.h. Generated by config.status. */
22246 if test x"$ac_file" = x-; then
22247 configure_input=
22248 else
22249 configure_input="$ac_file. "
22250 fi
22251 configure_input=$configure_input"Generated from `echo $ac_file_in |
22252 sed 's,.*/,,'` by configure."
22253
22254 # First look for the input files in the build tree, otherwise in the
22255 # src tree.
22256 ac_file_inputs=`IFS=:
22257 for f in $ac_file_in; do
22258 case $f in
22259 -) echo $tmp/stdin ;;
22260 [\\/$]*)
22261 # Absolute (can't be DOS-style, as IFS=:)
22262 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22263 echo "$as_me: error: cannot find input file: $f" >&2;}
22264 { (exit 1); exit 1; }; }
22265 echo "$f";;
22266 *) # Relative
22267 if test -f "$f"; then
22268 # Build tree
22269 echo "$f"
22270 elif test -f "$srcdir/$f"; then
22271 # Source tree
22272 echo "$srcdir/$f"
22273 else
22274 # /dev/null tree
22275 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22276 echo "$as_me: error: cannot find input file: $f" >&2;}
22277 { (exit 1); exit 1; }; }
22278 fi;;
22279 esac
22280 done` || { (exit 1); exit 1; }
22281 _ACEOF
22282 cat >>$CONFIG_STATUS <<_ACEOF
22283 sed "$ac_vpsub
22284 $extrasub
22285 _ACEOF
22286 cat >>$CONFIG_STATUS <<\_ACEOF
22287 :t
22288 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22289 s,@configure_input@,$configure_input,;t t
22290 s,@srcdir@,$ac_srcdir,;t t
22291 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22292 s,@top_srcdir@,$ac_top_srcdir,;t t
22293 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22294 s,@builddir@,$ac_builddir,;t t
22295 s,@abs_builddir@,$ac_abs_builddir,;t t
22296 s,@top_builddir@,$ac_top_builddir,;t t
22297 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22298 s,@INSTALL@,$ac_INSTALL,;t t
22299 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22300 rm -f $tmp/stdin
22301 if test x"$ac_file" != x-; then
22302 mv $tmp/out $ac_file
22303 else
22304 cat $tmp/out
22305 rm -f $tmp/out
22306 fi
22307
22308 done
22309 _ACEOF
22310 cat >>$CONFIG_STATUS <<\_ACEOF
22311
22312 #
22313 # CONFIG_HEADER section.
22314 #
22315
22316 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22317 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22318 #
22319 # ac_d sets the value in "#define NAME VALUE" lines.
22320 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22321 ac_dB='[ ].*$,\1#\2'
22322 ac_dC=' '
22323 ac_dD=',;t'
22324 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22325 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22326 ac_uB='$,\1#\2define\3'
22327 ac_uC=' '
22328 ac_uD=',;t'
22329
22330 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22331 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22332 case $ac_file in
22333 - | *:- | *:-:* ) # input from stdin
22334 cat >$tmp/stdin
22335 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22336 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22337 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22338 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22339 * ) ac_file_in=$ac_file.in ;;
22340 esac
22341
22342 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22343 echo "$as_me: creating $ac_file" >&6;}
22344
22345 # First look for the input files in the build tree, otherwise in the
22346 # src tree.
22347 ac_file_inputs=`IFS=:
22348 for f in $ac_file_in; do
22349 case $f in
22350 -) echo $tmp/stdin ;;
22351 [\\/$]*)
22352 # Absolute (can't be DOS-style, as IFS=:)
22353 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22354 echo "$as_me: error: cannot find input file: $f" >&2;}
22355 { (exit 1); exit 1; }; }
22356 # Do quote $f, to prevent DOS paths from being IFS'd.
22357 echo "$f";;
22358 *) # Relative
22359 if test -f "$f"; then
22360 # Build tree
22361 echo "$f"
22362 elif test -f "$srcdir/$f"; then
22363 # Source tree
22364 echo "$srcdir/$f"
22365 else
22366 # /dev/null tree
22367 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22368 echo "$as_me: error: cannot find input file: $f" >&2;}
22369 { (exit 1); exit 1; }; }
22370 fi;;
22371 esac
22372 done` || { (exit 1); exit 1; }
22373 # Remove the trailing spaces.
22374 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22375
22376 _ACEOF
22377
22378 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22379 # `conftest.undefs', that substitutes the proper values into
22380 # config.h.in to produce config.h. The first handles `#define'
22381 # templates, and the second `#undef' templates.
22382 # And first: Protect against being on the right side of a sed subst in
22383 # config.status. Protect against being in an unquoted here document
22384 # in config.status.
22385 rm -f conftest.defines conftest.undefs
22386 # Using a here document instead of a string reduces the quoting nightmare.
22387 # Putting comments in sed scripts is not portable.
22388 #
22389 # `end' is used to avoid that the second main sed command (meant for
22390 # 0-ary CPP macros) applies to n-ary macro definitions.
22391 # See the Autoconf documentation for `clear'.
22392 cat >confdef2sed.sed <<\_ACEOF
22393 s/[\\&,]/\\&/g
22394 s,[\\$`],\\&,g
22395 t clear
22396 : clear
22397 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22398 t end
22399 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22400 : end
22401 _ACEOF
22402 # If some macros were called several times there might be several times
22403 # the same #defines, which is useless. Nevertheless, we may not want to
22404 # sort them, since we want the *last* AC-DEFINE to be honored.
22405 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22406 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22407 rm -f confdef2sed.sed
22408
22409 # This sed command replaces #undef with comments. This is necessary, for
22410 # example, in the case of _POSIX_SOURCE, which is predefined and required
22411 # on some systems where configure will not decide to define it.
22412 cat >>conftest.undefs <<\_ACEOF
22413 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22414 _ACEOF
22415
22416 # Break up conftest.defines because some shells have a limit on the size
22417 # of here documents, and old seds have small limits too (100 cmds).
22418 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22419 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22420 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22421 echo ' :' >>$CONFIG_STATUS
22422 rm -f conftest.tail
22423 while grep . conftest.defines >/dev/null
22424 do
22425 # Write a limited-size here document to $tmp/defines.sed.
22426 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22427 # Speed up: don't consider the non `#define' lines.
22428 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22429 # Work around the forget-to-reset-the-flag bug.
22430 echo 't clr' >>$CONFIG_STATUS
22431 echo ': clr' >>$CONFIG_STATUS
22432 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22433 echo 'CEOF
22434 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22435 rm -f $tmp/in
22436 mv $tmp/out $tmp/in
22437 ' >>$CONFIG_STATUS
22438 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22439 rm -f conftest.defines
22440 mv conftest.tail conftest.defines
22441 done
22442 rm -f conftest.defines
22443 echo ' fi # grep' >>$CONFIG_STATUS
22444 echo >>$CONFIG_STATUS
22445
22446 # Break up conftest.undefs because some shells have a limit on the size
22447 # of here documents, and old seds have small limits too (100 cmds).
22448 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22449 rm -f conftest.tail
22450 while grep . conftest.undefs >/dev/null
22451 do
22452 # Write a limited-size here document to $tmp/undefs.sed.
22453 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22454 # Speed up: don't consider the non `#undef'
22455 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22456 # Work around the forget-to-reset-the-flag bug.
22457 echo 't clr' >>$CONFIG_STATUS
22458 echo ': clr' >>$CONFIG_STATUS
22459 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22460 echo 'CEOF
22461 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22462 rm -f $tmp/in
22463 mv $tmp/out $tmp/in
22464 ' >>$CONFIG_STATUS
22465 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22466 rm -f conftest.undefs
22467 mv conftest.tail conftest.undefs
22468 done
22469 rm -f conftest.undefs
22470
22471 cat >>$CONFIG_STATUS <<\_ACEOF
22472 # Let's still pretend it is `configure' which instantiates (i.e., don't
22473 # use $as_me), people would be surprised to read:
22474 # /* config.h. Generated by config.status. */
22475 if test x"$ac_file" = x-; then
22476 echo "/* Generated by configure. */" >$tmp/config.h
22477 else
22478 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22479 fi
22480 cat $tmp/in >>$tmp/config.h
22481 rm -f $tmp/in
22482 if test x"$ac_file" != x-; then
22483 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22484 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22485 echo "$as_me: $ac_file is unchanged" >&6;}
22486 else
22487 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22488 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22489 X"$ac_file" : 'X\(//\)[^/]' \| \
22490 X"$ac_file" : 'X\(//\)$' \| \
22491 X"$ac_file" : 'X\(/\)' \| \
22492 . : '\(.\)' 2>/dev/null ||
22493 echo X"$ac_file" |
22494 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22495 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22496 /^X\(\/\/\)$/{ s//\1/; q; }
22497 /^X\(\/\).*/{ s//\1/; q; }
22498 s/.*/./; q'`
22499 { if $as_mkdir_p; then
22500 mkdir -p "$ac_dir"
22501 else
22502 as_dir="$ac_dir"
22503 as_dirs=
22504 while test ! -d "$as_dir"; do
22505 as_dirs="$as_dir $as_dirs"
22506 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22507 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22508 X"$as_dir" : 'X\(//\)[^/]' \| \
22509 X"$as_dir" : 'X\(//\)$' \| \
22510 X"$as_dir" : 'X\(/\)' \| \
22511 . : '\(.\)' 2>/dev/null ||
22512 echo X"$as_dir" |
22513 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22514 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22515 /^X\(\/\/\)$/{ s//\1/; q; }
22516 /^X\(\/\).*/{ s//\1/; q; }
22517 s/.*/./; q'`
22518 done
22519 test ! -n "$as_dirs" || mkdir $as_dirs
22520 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22521 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22522 { (exit 1); exit 1; }; }; }
22523
22524 rm -f $ac_file
22525 mv $tmp/config.h $ac_file
22526 fi
22527 else
22528 cat $tmp/config.h
22529 rm -f $tmp/config.h
22530 fi
22531 # Compute $ac_file's index in $config_headers.
22532 _am_stamp_count=1
22533 for _am_header in $config_headers :; do
22534 case $_am_header in
22535 $ac_file | $ac_file:* )
22536 break ;;
22537 * )
22538 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22539 esac
22540 done
22541 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
22542 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22543 X$ac_file : 'X\(//\)[^/]' \| \
22544 X$ac_file : 'X\(//\)$' \| \
22545 X$ac_file : 'X\(/\)' \| \
22546 . : '\(.\)' 2>/dev/null ||
22547 echo X$ac_file |
22548 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22549 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22550 /^X\(\/\/\)$/{ s//\1/; q; }
22551 /^X\(\/\).*/{ s//\1/; q; }
22552 s/.*/./; q'`/stamp-h$_am_stamp_count
22553 done
22554 _ACEOF
22555 cat >>$CONFIG_STATUS <<\_ACEOF
22556
22557 #
22558 # CONFIG_COMMANDS section.
22559 #
22560 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22561 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22562 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22563 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22564 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22565 X"$ac_dest" : 'X\(//\)[^/]' \| \
22566 X"$ac_dest" : 'X\(//\)$' \| \
22567 X"$ac_dest" : 'X\(/\)' \| \
22568 . : '\(.\)' 2>/dev/null ||
22569 echo X"$ac_dest" |
22570 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22571 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22572 /^X\(\/\/\)$/{ s//\1/; q; }
22573 /^X\(\/\).*/{ s//\1/; q; }
22574 s/.*/./; q'`
22575 { if $as_mkdir_p; then
22576 mkdir -p "$ac_dir"
22577 else
22578 as_dir="$ac_dir"
22579 as_dirs=
22580 while test ! -d "$as_dir"; do
22581 as_dirs="$as_dir $as_dirs"
22582 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22583 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22584 X"$as_dir" : 'X\(//\)[^/]' \| \
22585 X"$as_dir" : 'X\(//\)$' \| \
22586 X"$as_dir" : 'X\(/\)' \| \
22587 . : '\(.\)' 2>/dev/null ||
22588 echo X"$as_dir" |
22589 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22590 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22591 /^X\(\/\/\)$/{ s//\1/; q; }
22592 /^X\(\/\).*/{ s//\1/; q; }
22593 s/.*/./; q'`
22594 done
22595 test ! -n "$as_dirs" || mkdir $as_dirs
22596 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22597 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22598 { (exit 1); exit 1; }; }; }
22599
22600 ac_builddir=.
22601
22602 if test "$ac_dir" != .; then
22603 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22604 # A "../" for each directory in $ac_dir_suffix.
22605 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22606 else
22607 ac_dir_suffix= ac_top_builddir=
22608 fi
22609
22610 case $srcdir in
22611 .) # No --srcdir option. We are building in place.
22612 ac_srcdir=.
22613 if test -z "$ac_top_builddir"; then
22614 ac_top_srcdir=.
22615 else
22616 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22617 fi ;;
22618 [\\/]* | ?:[\\/]* ) # Absolute path.
22619 ac_srcdir=$srcdir$ac_dir_suffix;
22620 ac_top_srcdir=$srcdir ;;
22621 *) # Relative path.
22622 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22623 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22624 esac
22625
22626 # Do not use `cd foo && pwd` to compute absolute paths, because
22627 # the directories may not exist.
22628 case `pwd` in
22629 .) ac_abs_builddir="$ac_dir";;
22630 *)
22631 case "$ac_dir" in
22632 .) ac_abs_builddir=`pwd`;;
22633 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22634 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22635 esac;;
22636 esac
22637 case $ac_abs_builddir in
22638 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22639 *)
22640 case ${ac_top_builddir}. in
22641 .) ac_abs_top_builddir=$ac_abs_builddir;;
22642 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22643 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22644 esac;;
22645 esac
22646 case $ac_abs_builddir in
22647 .) ac_abs_srcdir=$ac_srcdir;;
22648 *)
22649 case $ac_srcdir in
22650 .) ac_abs_srcdir=$ac_abs_builddir;;
22651 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22652 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22653 esac;;
22654 esac
22655 case $ac_abs_builddir in
22656 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22657 *)
22658 case $ac_top_srcdir in
22659 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22660 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22661 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22662 esac;;
22663 esac
22664
22665
22666 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22667 echo "$as_me: executing $ac_dest commands" >&6;}
22668 case $ac_dest in
22669 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22670 # Strip MF so we end up with the name of the file.
22671 mf=`echo "$mf" | sed -e 's/:.*$//'`
22672 # Check whether this is an Automake generated Makefile or not.
22673 # We used to match only the files named `Makefile.in', but
22674 # some people rename them; so instead we look at the file content.
22675 # Grep'ing the first line is not enough: some people post-process
22676 # each Makefile.in and add a new line on top of each file to say so.
22677 # So let's grep whole file.
22678 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22679 dirpart=`(dirname "$mf") 2>/dev/null ||
22680 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22681 X"$mf" : 'X\(//\)[^/]' \| \
22682 X"$mf" : 'X\(//\)$' \| \
22683 X"$mf" : 'X\(/\)' \| \
22684 . : '\(.\)' 2>/dev/null ||
22685 echo X"$mf" |
22686 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22687 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22688 /^X\(\/\/\)$/{ s//\1/; q; }
22689 /^X\(\/\).*/{ s//\1/; q; }
22690 s/.*/./; q'`
22691 else
22692 continue
22693 fi
22694 # Extract the definition of DEPDIR, am__include, and am__quote
22695 # from the Makefile without running `make'.
22696 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22697 test -z "$DEPDIR" && continue
22698 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22699 test -z "am__include" && continue
22700 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22701 # When using ansi2knr, U may be empty or an underscore; expand it
22702 U=`sed -n 's/^U = //p' < "$mf"`
22703 # Find all dependency output files, they are included files with
22704 # $(DEPDIR) in their names. We invoke sed twice because it is the
22705 # simplest approach to changing $(DEPDIR) to its actual value in the
22706 # expansion.
22707 for file in `sed -n "
22708 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22709 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22710 # Make sure the directory exists.
22711 test -f "$dirpart/$file" && continue
22712 fdir=`(dirname "$file") 2>/dev/null ||
22713 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22714 X"$file" : 'X\(//\)[^/]' \| \
22715 X"$file" : 'X\(//\)$' \| \
22716 X"$file" : 'X\(/\)' \| \
22717 . : '\(.\)' 2>/dev/null ||
22718 echo X"$file" |
22719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22720 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22721 /^X\(\/\/\)$/{ s//\1/; q; }
22722 /^X\(\/\).*/{ s//\1/; q; }
22723 s/.*/./; q'`
22724 { if $as_mkdir_p; then
22725 mkdir -p $dirpart/$fdir
22726 else
22727 as_dir=$dirpart/$fdir
22728 as_dirs=
22729 while test ! -d "$as_dir"; do
22730 as_dirs="$as_dir $as_dirs"
22731 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22732 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22733 X"$as_dir" : 'X\(//\)[^/]' \| \
22734 X"$as_dir" : 'X\(//\)$' \| \
22735 X"$as_dir" : 'X\(/\)' \| \
22736 . : '\(.\)' 2>/dev/null ||
22737 echo X"$as_dir" |
22738 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22739 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22740 /^X\(\/\/\)$/{ s//\1/; q; }
22741 /^X\(\/\).*/{ s//\1/; q; }
22742 s/.*/./; q'`
22743 done
22744 test ! -n "$as_dirs" || mkdir $as_dirs
22745 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
22746 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
22747 { (exit 1); exit 1; }; }; }
22748
22749 # echo "creating $dirpart/$file"
22750 echo '# dummy' > "$dirpart/$file"
22751 done
22752 done
22753 ;;
22754 esac
22755 done
22756 _ACEOF
22757
22758 cat >>$CONFIG_STATUS <<\_ACEOF
22759
22760 { (exit 0); exit 0; }
22761 _ACEOF
22762 chmod +x $CONFIG_STATUS
22763 ac_clean_files=$ac_clean_files_save
22764
22765
22766 # configure is writing to config.log, and then calls config.status.
22767 # config.status does its own redirection, appending to config.log.
22768 # Unfortunately, on DOS this fails, as config.log is still kept open
22769 # by configure, so config.status won't be able to write to it; its
22770 # output is simply discarded. So we exec the FD to /dev/null,
22771 # effectively closing config.log, so it can be properly (re)opened and
22772 # appended to by config.status. When coming back to configure, we
22773 # need to make the FD available again.
22774 if test "$no_create" != yes; then
22775 ac_cs_success=:
22776 ac_config_status_args=
22777 test "$silent" = yes &&
22778 ac_config_status_args="$ac_config_status_args --quiet"
22779 exec 5>/dev/null
22780 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22781 exec 5>>config.log
22782 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22783 # would make configure fail if this is the last instruction.
22784 $ac_cs_success || { (exit 1); exit 1; }
22785 fi
22786