]> git.proxmox.com Git - mirror_spl-debian.git/blob - configure
Merge branch 'kallsyms'
[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 kmoduledir KERNELMAKE_PARAMS KERNELCPPFLAGS KERNELCFLAGS 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
1507 echo "$as_me:$LINENO: checking metadata" >&5
1508 echo $ECHO_N "checking metadata... $ECHO_C" >&6
1509
1510 META="$srcdir/META"
1511 _spl_ac_meta_got_file=no
1512 if test -f "$META"; then
1513 _spl_ac_meta_got_file=yes
1514
1515 SPL_META_NAME=`perl -n\
1516 -e "BEGIN { \\$key=shift @ARGV; }"\
1517 -e "next unless s/^\s*\\$key[:=]//i;"\
1518 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
1519 -e "s/^\s+//;"\
1520 -e "s/\s+$//;"\
1521 -e "s/^(['\"])(.*)\1/\\$2/;"\
1522 -e "\\$val=\\$_;"\
1523 -e "END { print \\$val if defined \\$val; }"\
1524 '(?:NAME|PROJECT|PACKAGE)' $META`;
1525 if test -n "$SPL_META_NAME"; then
1526
1527 cat >>confdefs.h <<_ACEOF
1528 #define SPL_META_NAME "$SPL_META_NAME"
1529 _ACEOF
1530
1531
1532 fi
1533
1534 SPL_META_VERSION=`perl -n\
1535 -e "BEGIN { \\$key=shift @ARGV; }"\
1536 -e "next unless s/^\s*\\$key[:=]//i;"\
1537 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
1538 -e "s/^\s+//;"\
1539 -e "s/\s+$//;"\
1540 -e "s/^(['\"])(.*)\1/\\$2/;"\
1541 -e "\\$val=\\$_;"\
1542 -e "END { print \\$val if defined \\$val; }"\
1543 'VERSION' $META`;
1544 if test -n "$SPL_META_VERSION"; then
1545
1546 cat >>confdefs.h <<_ACEOF
1547 #define SPL_META_VERSION "$SPL_META_VERSION"
1548 _ACEOF
1549
1550
1551 fi
1552
1553 SPL_META_RELEASE=`perl -n\
1554 -e "BEGIN { \\$key=shift @ARGV; }"\
1555 -e "next unless s/^\s*\\$key[:=]//i;"\
1556 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
1557 -e "s/^\s+//;"\
1558 -e "s/\s+$//;"\
1559 -e "s/^(['\"])(.*)\1/\\$2/;"\
1560 -e "\\$val=\\$_;"\
1561 -e "END { print \\$val if defined \\$val; }"\
1562 'RELEASE' $META`;
1563 if test -n "$SPL_META_RELEASE"; then
1564
1565 cat >>confdefs.h <<_ACEOF
1566 #define SPL_META_RELEASE "$SPL_META_RELEASE"
1567 _ACEOF
1568
1569
1570 fi
1571
1572 if test -n "$SPL_META_NAME" -a -n "$SPL_META_VERSION"; then
1573 SPL_META_ALIAS="$SPL_META_NAME-$SPL_META_VERSION"
1574 test -n "$SPL_META_RELEASE" &&
1575 SPL_META_ALIAS="$SPL_META_ALIAS-$SPL_META_RELEASE"
1576
1577 cat >>confdefs.h <<_ACEOF
1578 #define SPL_META_ALIAS "$SPL_META_ALIAS"
1579 _ACEOF
1580
1581
1582 fi
1583
1584 SPL_META_DATA=`perl -n\
1585 -e "BEGIN { \\$key=shift @ARGV; }"\
1586 -e "next unless s/^\s*\\$key[:=]//i;"\
1587 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
1588 -e "s/^\s+//;"\
1589 -e "s/\s+$//;"\
1590 -e "s/^(['\"])(.*)\1/\\$2/;"\
1591 -e "\\$val=\\$_;"\
1592 -e "END { print \\$val if defined \\$val; }"\
1593 'DATE' $META`;
1594 if test -n "$SPL_META_DATA"; then
1595
1596 cat >>confdefs.h <<_ACEOF
1597 #define SPL_META_DATA "$SPL_META_DATA"
1598 _ACEOF
1599
1600
1601 fi
1602
1603 SPL_META_AUTHOR=`perl -n\
1604 -e "BEGIN { \\$key=shift @ARGV; }"\
1605 -e "next unless s/^\s*\\$key[:=]//i;"\
1606 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
1607 -e "s/^\s+//;"\
1608 -e "s/\s+$//;"\
1609 -e "s/^(['\"])(.*)\1/\\$2/;"\
1610 -e "\\$val=\\$_;"\
1611 -e "END { print \\$val if defined \\$val; }"\
1612 'AUTHOR' $META`;
1613 if test -n "$SPL_META_AUTHOR"; then
1614
1615 cat >>confdefs.h <<_ACEOF
1616 #define SPL_META_AUTHOR "$SPL_META_AUTHOR"
1617 _ACEOF
1618
1619
1620 fi
1621
1622
1623 SPL_META_LT_CURRENT=`perl -n\
1624 -e "BEGIN { \\$key=shift @ARGV; }"\
1625 -e "next unless s/^\s*\\$key[:=]//i;"\
1626 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
1627 -e "s/^\s+//;"\
1628 -e "s/\s+$//;"\
1629 -e "s/^(['\"])(.*)\1/\\$2/;"\
1630 -e "\\$val=\\$_;"\
1631 -e "END { print \\$val if defined \\$val; }"\
1632 'LT_CURRENT' $META`;
1633 SPL_META_LT_REVISION=`perl -n\
1634 -e "BEGIN { \\$key=shift @ARGV; }"\
1635 -e "next unless s/^\s*\\$key[:=]//i;"\
1636 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
1637 -e "s/^\s+//;"\
1638 -e "s/\s+$//;"\
1639 -e "s/^(['\"])(.*)\1/\\$2/;"\
1640 -e "\\$val=\\$_;"\
1641 -e "END { print \\$val if defined \\$val; }"\
1642 'LT_REVISION' $META`;
1643 SPL_META_LT_AGE=`perl -n\
1644 -e "BEGIN { \\$key=shift @ARGV; }"\
1645 -e "next unless s/^\s*\\$key[:=]//i;"\
1646 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
1647 -e "s/^\s+//;"\
1648 -e "s/\s+$//;"\
1649 -e "s/^(['\"])(.*)\1/\\$2/;"\
1650 -e "\\$val=\\$_;"\
1651 -e "END { print \\$val if defined \\$val; }"\
1652 'LT_AGE' $META`;
1653 if test -n "$SPL_META_LT_CURRENT" \
1654 -o -n "$SPL_META_LT_REVISION" \
1655 -o -n "$SPL_META_LT_AGE"; then
1656 test -n "$SPL_META_LT_CURRENT" || SPL_META_LT_CURRENT="0"
1657 test -n "$SPL_META_LT_REVISION" || SPL_META_LT_REVISION="0"
1658 test -n "$SPL_META_LT_AGE" || SPL_META_LT_AGE="0"
1659
1660 cat >>confdefs.h <<_ACEOF
1661 #define SPL_META_LT_CURRENT "$SPL_META_LT_CURRENT"
1662 _ACEOF
1663
1664
1665 cat >>confdefs.h <<_ACEOF
1666 #define SPL_META_LT_REVISION "$SPL_META_LT_REVISION"
1667 _ACEOF
1668
1669
1670 cat >>confdefs.h <<_ACEOF
1671 #define SPL_META_LT_AGE "$SPL_META_LT_AGE"
1672 _ACEOF
1673
1674
1675
1676
1677 fi
1678 fi
1679
1680 echo "$as_me:$LINENO: result: $_spl_ac_meta_got_file" >&5
1681 echo "${ECHO_T}$_spl_ac_meta_got_file" >&6
1682
1683
1684 ac_aux_dir=
1685 for ac_dir in config $srcdir/config; do
1686 if test -f $ac_dir/install-sh; then
1687 ac_aux_dir=$ac_dir
1688 ac_install_sh="$ac_aux_dir/install-sh -c"
1689 break
1690 elif test -f $ac_dir/install.sh; then
1691 ac_aux_dir=$ac_dir
1692 ac_install_sh="$ac_aux_dir/install.sh -c"
1693 break
1694 elif test -f $ac_dir/shtool; then
1695 ac_aux_dir=$ac_dir
1696 ac_install_sh="$ac_aux_dir/shtool install -c"
1697 break
1698 fi
1699 done
1700 if test -z "$ac_aux_dir"; then
1701 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1702 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1703 { (exit 1); exit 1; }; }
1704 fi
1705 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1706 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1707 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1708
1709 # Make sure we can run config.sub.
1710 $ac_config_sub sun4 >/dev/null 2>&1 ||
1711 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1712 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1713 { (exit 1); exit 1; }; }
1714
1715 echo "$as_me:$LINENO: checking build system type" >&5
1716 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1717 if test "${ac_cv_build+set}" = set; then
1718 echo $ECHO_N "(cached) $ECHO_C" >&6
1719 else
1720 ac_cv_build_alias=$build_alias
1721 test -z "$ac_cv_build_alias" &&
1722 ac_cv_build_alias=`$ac_config_guess`
1723 test -z "$ac_cv_build_alias" &&
1724 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1725 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1726 { (exit 1); exit 1; }; }
1727 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1728 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1729 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1730 { (exit 1); exit 1; }; }
1731
1732 fi
1733 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1734 echo "${ECHO_T}$ac_cv_build" >&6
1735 build=$ac_cv_build
1736 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1737 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1738 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1739
1740
1741 echo "$as_me:$LINENO: checking host system type" >&5
1742 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1743 if test "${ac_cv_host+set}" = set; then
1744 echo $ECHO_N "(cached) $ECHO_C" >&6
1745 else
1746 ac_cv_host_alias=$host_alias
1747 test -z "$ac_cv_host_alias" &&
1748 ac_cv_host_alias=$ac_cv_build_alias
1749 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1750 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1751 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1752 { (exit 1); exit 1; }; }
1753
1754 fi
1755 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1756 echo "${ECHO_T}$ac_cv_host" >&6
1757 host=$ac_cv_host
1758 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1759 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1760 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1761
1762
1763 echo "$as_me:$LINENO: checking target system type" >&5
1764 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1765 if test "${ac_cv_target+set}" = set; then
1766 echo $ECHO_N "(cached) $ECHO_C" >&6
1767 else
1768 ac_cv_target_alias=$target_alias
1769 test "x$ac_cv_target_alias" = "x" &&
1770 ac_cv_target_alias=$ac_cv_host_alias
1771 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1772 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1773 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1774 { (exit 1); exit 1; }; }
1775
1776 fi
1777 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1778 echo "${ECHO_T}$ac_cv_target" >&6
1779 target=$ac_cv_target
1780 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1781 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1782 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1783
1784
1785 # The aliases save the names the user supplied, while $host etc.
1786 # will get canonicalized.
1787 test -n "$target_alias" &&
1788 test "$program_prefix$program_suffix$program_transform_name" = \
1789 NONENONEs,x,x, &&
1790 program_prefix=${target_alias}-
1791 am__api_version="1.9"
1792 # Find a good install program. We prefer a C program (faster),
1793 # so one script is as good as another. But avoid the broken or
1794 # incompatible versions:
1795 # SysV /etc/install, /usr/sbin/install
1796 # SunOS /usr/etc/install
1797 # IRIX /sbin/install
1798 # AIX /bin/install
1799 # AmigaOS /C/install, which installs bootblocks on floppy discs
1800 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1801 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1802 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1803 # OS/2's system install, which has a completely different semantic
1804 # ./install, which can be erroneously created by make from ./install.sh.
1805 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1806 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1807 if test -z "$INSTALL"; then
1808 if test "${ac_cv_path_install+set}" = set; then
1809 echo $ECHO_N "(cached) $ECHO_C" >&6
1810 else
1811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1812 for as_dir in $PATH
1813 do
1814 IFS=$as_save_IFS
1815 test -z "$as_dir" && as_dir=.
1816 # Account for people who put trailing slashes in PATH elements.
1817 case $as_dir/ in
1818 ./ | .// | /cC/* | \
1819 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1820 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1821 /usr/ucb/* ) ;;
1822 *)
1823 # OSF1 and SCO ODT 3.0 have their own names for install.
1824 # Don't use installbsd from OSF since it installs stuff as root
1825 # by default.
1826 for ac_prog in ginstall scoinst install; do
1827 for ac_exec_ext in '' $ac_executable_extensions; do
1828 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1829 if test $ac_prog = install &&
1830 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1831 # AIX install. It has an incompatible calling convention.
1832 :
1833 elif test $ac_prog = install &&
1834 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1835 # program-specific install script used by HP pwplus--don't use.
1836 :
1837 else
1838 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1839 break 3
1840 fi
1841 fi
1842 done
1843 done
1844 ;;
1845 esac
1846 done
1847
1848
1849 fi
1850 if test "${ac_cv_path_install+set}" = set; then
1851 INSTALL=$ac_cv_path_install
1852 else
1853 # As a last resort, use the slow shell script. We don't cache a
1854 # path for INSTALL within a source directory, because that will
1855 # break other packages using the cache if that directory is
1856 # removed, or if the path is relative.
1857 INSTALL=$ac_install_sh
1858 fi
1859 fi
1860 echo "$as_me:$LINENO: result: $INSTALL" >&5
1861 echo "${ECHO_T}$INSTALL" >&6
1862
1863 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1864 # It thinks the first close brace ends the variable substitution.
1865 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1866
1867 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1868
1869 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1870
1871 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1872 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1873 # Just in case
1874 sleep 1
1875 echo timestamp > conftest.file
1876 # Do `set' in a subshell so we don't clobber the current shell's
1877 # arguments. Must try -L first in case configure is actually a
1878 # symlink; some systems play weird games with the mod time of symlinks
1879 # (eg FreeBSD returns the mod time of the symlink's containing
1880 # directory).
1881 if (
1882 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1883 if test "$*" = "X"; then
1884 # -L didn't work.
1885 set X `ls -t $srcdir/configure conftest.file`
1886 fi
1887 rm -f conftest.file
1888 if test "$*" != "X $srcdir/configure conftest.file" \
1889 && test "$*" != "X conftest.file $srcdir/configure"; then
1890
1891 # If neither matched, then we have a broken ls. This can happen
1892 # if, for instance, CONFIG_SHELL is bash and it inherits a
1893 # broken ls alias from the environment. This has actually
1894 # happened. Such a system could not be considered "sane".
1895 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1896 alias in your environment" >&5
1897 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1898 alias in your environment" >&2;}
1899 { (exit 1); exit 1; }; }
1900 fi
1901
1902 test "$2" = conftest.file
1903 )
1904 then
1905 # Ok.
1906 :
1907 else
1908 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1909 Check your system clock" >&5
1910 echo "$as_me: error: newly created file is older than distributed files!
1911 Check your system clock" >&2;}
1912 { (exit 1); exit 1; }; }
1913 fi
1914 echo "$as_me:$LINENO: result: yes" >&5
1915 echo "${ECHO_T}yes" >&6
1916 test "$program_prefix" != NONE &&
1917 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1918 # Use a double $ so make ignores it.
1919 test "$program_suffix" != NONE &&
1920 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1921 # Double any \ or $. echo might interpret backslashes.
1922 # By default was `s,x,x', remove it if useless.
1923 cat <<\_ACEOF >conftest.sed
1924 s/[\\$]/&&/g;s/;s,x,x,$//
1925 _ACEOF
1926 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1927 rm conftest.sed
1928
1929 # expand $ac_aux_dir to an absolute path
1930 am_aux_dir=`cd $ac_aux_dir && pwd`
1931
1932 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1933 # Use eval to expand $SHELL
1934 if eval "$MISSING --run true"; then
1935 am_missing_run="$MISSING --run "
1936 else
1937 am_missing_run=
1938 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1939 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1940 fi
1941
1942 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1943 # We used to keeping the `.' as first argument, in order to
1944 # allow $(mkdir_p) to be used without argument. As in
1945 # $(mkdir_p) $(somedir)
1946 # where $(somedir) is conditionally defined. However this is wrong
1947 # for two reasons:
1948 # 1. if the package is installed by a user who cannot write `.'
1949 # make install will fail,
1950 # 2. the above comment should most certainly read
1951 # $(mkdir_p) $(DESTDIR)$(somedir)
1952 # so it does not work when $(somedir) is undefined and
1953 # $(DESTDIR) is not.
1954 # To support the latter case, we have to write
1955 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1956 # so the `.' trick is pointless.
1957 mkdir_p='mkdir -p --'
1958 else
1959 # On NextStep and OpenStep, the `mkdir' command does not
1960 # recognize any option. It will interpret all options as
1961 # directories to create, and then abort because `.' already
1962 # exists.
1963 for d in ./-p ./--version;
1964 do
1965 test -d $d && rmdir $d
1966 done
1967 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1968 if test -f "$ac_aux_dir/mkinstalldirs"; then
1969 mkdir_p='$(mkinstalldirs)'
1970 else
1971 mkdir_p='$(install_sh) -d'
1972 fi
1973 fi
1974
1975 for ac_prog in gawk mawk nawk awk
1976 do
1977 # Extract the first word of "$ac_prog", so it can be a program name with args.
1978 set dummy $ac_prog; ac_word=$2
1979 echo "$as_me:$LINENO: checking for $ac_word" >&5
1980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1981 if test "${ac_cv_prog_AWK+set}" = set; then
1982 echo $ECHO_N "(cached) $ECHO_C" >&6
1983 else
1984 if test -n "$AWK"; then
1985 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1986 else
1987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1988 for as_dir in $PATH
1989 do
1990 IFS=$as_save_IFS
1991 test -z "$as_dir" && as_dir=.
1992 for ac_exec_ext in '' $ac_executable_extensions; do
1993 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1994 ac_cv_prog_AWK="$ac_prog"
1995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1996 break 2
1997 fi
1998 done
1999 done
2000
2001 fi
2002 fi
2003 AWK=$ac_cv_prog_AWK
2004 if test -n "$AWK"; then
2005 echo "$as_me:$LINENO: result: $AWK" >&5
2006 echo "${ECHO_T}$AWK" >&6
2007 else
2008 echo "$as_me:$LINENO: result: no" >&5
2009 echo "${ECHO_T}no" >&6
2010 fi
2011
2012 test -n "$AWK" && break
2013 done
2014
2015 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2016 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2017 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2018 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2019 echo $ECHO_N "(cached) $ECHO_C" >&6
2020 else
2021 cat >conftest.make <<\_ACEOF
2022 all:
2023 @echo 'ac_maketemp="$(MAKE)"'
2024 _ACEOF
2025 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2026 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2027 if test -n "$ac_maketemp"; then
2028 eval ac_cv_prog_make_${ac_make}_set=yes
2029 else
2030 eval ac_cv_prog_make_${ac_make}_set=no
2031 fi
2032 rm -f conftest.make
2033 fi
2034 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2035 echo "$as_me:$LINENO: result: yes" >&5
2036 echo "${ECHO_T}yes" >&6
2037 SET_MAKE=
2038 else
2039 echo "$as_me:$LINENO: result: no" >&5
2040 echo "${ECHO_T}no" >&6
2041 SET_MAKE="MAKE=${MAKE-make}"
2042 fi
2043
2044 rm -rf .tst 2>/dev/null
2045 mkdir .tst 2>/dev/null
2046 if test -d .tst; then
2047 am__leading_dot=.
2048 else
2049 am__leading_dot=_
2050 fi
2051 rmdir .tst 2>/dev/null
2052
2053 # test to see if srcdir already configured
2054 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2055 test -f $srcdir/config.status; then
2056 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2057 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2058 { (exit 1); exit 1; }; }
2059 fi
2060
2061 # test whether we have cygpath
2062 if test -z "$CYGPATH_W"; then
2063 if (cygpath --version) >/dev/null 2>/dev/null; then
2064 CYGPATH_W='cygpath -w'
2065 else
2066 CYGPATH_W=echo
2067 fi
2068 fi
2069
2070
2071 # Define the identity of the package.
2072 PACKAGE=$SPL_META_NAME
2073 VERSION=$SPL_META_VERSION
2074
2075
2076 cat >>confdefs.h <<_ACEOF
2077 #define PACKAGE "$PACKAGE"
2078 _ACEOF
2079
2080
2081 cat >>confdefs.h <<_ACEOF
2082 #define VERSION "$VERSION"
2083 _ACEOF
2084
2085 # Some tools Automake needs.
2086
2087 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2088
2089
2090 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2091
2092
2093 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2094
2095
2096 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2097
2098
2099 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2100
2101 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2102
2103 # Installed binaries are usually stripped using `strip' when the user
2104 # run `make install-strip'. However `strip' might not be the right
2105 # tool to use in cross-compilation environments, therefore Automake
2106 # will honor the `STRIP' environment variable to overrule this program.
2107 if test "$cross_compiling" != no; then
2108 if test -n "$ac_tool_prefix"; then
2109 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2110 set dummy ${ac_tool_prefix}strip; ac_word=$2
2111 echo "$as_me:$LINENO: checking for $ac_word" >&5
2112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2113 if test "${ac_cv_prog_STRIP+set}" = set; then
2114 echo $ECHO_N "(cached) $ECHO_C" >&6
2115 else
2116 if test -n "$STRIP"; then
2117 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2118 else
2119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2120 for as_dir in $PATH
2121 do
2122 IFS=$as_save_IFS
2123 test -z "$as_dir" && as_dir=.
2124 for ac_exec_ext in '' $ac_executable_extensions; do
2125 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2126 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2128 break 2
2129 fi
2130 done
2131 done
2132
2133 fi
2134 fi
2135 STRIP=$ac_cv_prog_STRIP
2136 if test -n "$STRIP"; then
2137 echo "$as_me:$LINENO: result: $STRIP" >&5
2138 echo "${ECHO_T}$STRIP" >&6
2139 else
2140 echo "$as_me:$LINENO: result: no" >&5
2141 echo "${ECHO_T}no" >&6
2142 fi
2143
2144 fi
2145 if test -z "$ac_cv_prog_STRIP"; then
2146 ac_ct_STRIP=$STRIP
2147 # Extract the first word of "strip", so it can be a program name with args.
2148 set dummy strip; ac_word=$2
2149 echo "$as_me:$LINENO: checking for $ac_word" >&5
2150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2151 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2152 echo $ECHO_N "(cached) $ECHO_C" >&6
2153 else
2154 if test -n "$ac_ct_STRIP"; then
2155 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2156 else
2157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2158 for as_dir in $PATH
2159 do
2160 IFS=$as_save_IFS
2161 test -z "$as_dir" && as_dir=.
2162 for ac_exec_ext in '' $ac_executable_extensions; do
2163 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2164 ac_cv_prog_ac_ct_STRIP="strip"
2165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2166 break 2
2167 fi
2168 done
2169 done
2170
2171 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2172 fi
2173 fi
2174 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2175 if test -n "$ac_ct_STRIP"; then
2176 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2177 echo "${ECHO_T}$ac_ct_STRIP" >&6
2178 else
2179 echo "$as_me:$LINENO: result: no" >&5
2180 echo "${ECHO_T}no" >&6
2181 fi
2182
2183 STRIP=$ac_ct_STRIP
2184 else
2185 STRIP="$ac_cv_prog_STRIP"
2186 fi
2187
2188 fi
2189 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2190
2191 # We need awk for the "check" target. The system "awk" is bad on
2192 # some platforms.
2193 # Always define AMTAR for backward compatibility.
2194
2195 AMTAR=${AMTAR-"${am_missing_run}tar"}
2196
2197 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2198
2199
2200
2201
2202
2203 ac_config_headers="$ac_config_headers spl_config.h"
2204
2205 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2206 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
2207 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2208 if test "${enable_maintainer_mode+set}" = set; then
2209 enableval="$enable_maintainer_mode"
2210 USE_MAINTAINER_MODE=$enableval
2211 else
2212 USE_MAINTAINER_MODE=no
2213 fi;
2214 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2215 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2216
2217
2218 if test $USE_MAINTAINER_MODE = yes; then
2219 MAINTAINER_MODE_TRUE=
2220 MAINTAINER_MODE_FALSE='#'
2221 else
2222 MAINTAINER_MODE_TRUE='#'
2223 MAINTAINER_MODE_FALSE=
2224 fi
2225
2226 MAINT=$MAINTAINER_MODE_TRUE
2227
2228
2229
2230 # Find a good install program. We prefer a C program (faster),
2231 # so one script is as good as another. But avoid the broken or
2232 # incompatible versions:
2233 # SysV /etc/install, /usr/sbin/install
2234 # SunOS /usr/etc/install
2235 # IRIX /sbin/install
2236 # AIX /bin/install
2237 # AmigaOS /C/install, which installs bootblocks on floppy discs
2238 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2239 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2240 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2241 # OS/2's system install, which has a completely different semantic
2242 # ./install, which can be erroneously created by make from ./install.sh.
2243 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2244 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2245 if test -z "$INSTALL"; then
2246 if test "${ac_cv_path_install+set}" = set; then
2247 echo $ECHO_N "(cached) $ECHO_C" >&6
2248 else
2249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2250 for as_dir in $PATH
2251 do
2252 IFS=$as_save_IFS
2253 test -z "$as_dir" && as_dir=.
2254 # Account for people who put trailing slashes in PATH elements.
2255 case $as_dir/ in
2256 ./ | .// | /cC/* | \
2257 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2258 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2259 /usr/ucb/* ) ;;
2260 *)
2261 # OSF1 and SCO ODT 3.0 have their own names for install.
2262 # Don't use installbsd from OSF since it installs stuff as root
2263 # by default.
2264 for ac_prog in ginstall scoinst install; do
2265 for ac_exec_ext in '' $ac_executable_extensions; do
2266 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2267 if test $ac_prog = install &&
2268 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2269 # AIX install. It has an incompatible calling convention.
2270 :
2271 elif test $ac_prog = install &&
2272 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2273 # program-specific install script used by HP pwplus--don't use.
2274 :
2275 else
2276 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2277 break 3
2278 fi
2279 fi
2280 done
2281 done
2282 ;;
2283 esac
2284 done
2285
2286
2287 fi
2288 if test "${ac_cv_path_install+set}" = set; then
2289 INSTALL=$ac_cv_path_install
2290 else
2291 # As a last resort, use the slow shell script. We don't cache a
2292 # path for INSTALL within a source directory, because that will
2293 # break other packages using the cache if that directory is
2294 # removed, or if the path is relative.
2295 INSTALL=$ac_install_sh
2296 fi
2297 fi
2298 echo "$as_me:$LINENO: result: $INSTALL" >&5
2299 echo "${ECHO_T}$INSTALL" >&6
2300
2301 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2302 # It thinks the first close brace ends the variable substitution.
2303 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2304
2305 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2306
2307 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2308
2309 ac_ext=c
2310 ac_cpp='$CPP $CPPFLAGS'
2311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2314 if test -n "$ac_tool_prefix"; then
2315 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2316 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2317 echo "$as_me:$LINENO: checking for $ac_word" >&5
2318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2319 if test "${ac_cv_prog_CC+set}" = set; then
2320 echo $ECHO_N "(cached) $ECHO_C" >&6
2321 else
2322 if test -n "$CC"; then
2323 ac_cv_prog_CC="$CC" # Let the user override the test.
2324 else
2325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2326 for as_dir in $PATH
2327 do
2328 IFS=$as_save_IFS
2329 test -z "$as_dir" && as_dir=.
2330 for ac_exec_ext in '' $ac_executable_extensions; do
2331 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2332 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2334 break 2
2335 fi
2336 done
2337 done
2338
2339 fi
2340 fi
2341 CC=$ac_cv_prog_CC
2342 if test -n "$CC"; then
2343 echo "$as_me:$LINENO: result: $CC" >&5
2344 echo "${ECHO_T}$CC" >&6
2345 else
2346 echo "$as_me:$LINENO: result: no" >&5
2347 echo "${ECHO_T}no" >&6
2348 fi
2349
2350 fi
2351 if test -z "$ac_cv_prog_CC"; then
2352 ac_ct_CC=$CC
2353 # Extract the first word of "gcc", so it can be a program name with args.
2354 set dummy gcc; ac_word=$2
2355 echo "$as_me:$LINENO: checking for $ac_word" >&5
2356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2357 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2358 echo $ECHO_N "(cached) $ECHO_C" >&6
2359 else
2360 if test -n "$ac_ct_CC"; then
2361 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2362 else
2363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2364 for as_dir in $PATH
2365 do
2366 IFS=$as_save_IFS
2367 test -z "$as_dir" && as_dir=.
2368 for ac_exec_ext in '' $ac_executable_extensions; do
2369 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2370 ac_cv_prog_ac_ct_CC="gcc"
2371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2372 break 2
2373 fi
2374 done
2375 done
2376
2377 fi
2378 fi
2379 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2380 if test -n "$ac_ct_CC"; then
2381 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2382 echo "${ECHO_T}$ac_ct_CC" >&6
2383 else
2384 echo "$as_me:$LINENO: result: no" >&5
2385 echo "${ECHO_T}no" >&6
2386 fi
2387
2388 CC=$ac_ct_CC
2389 else
2390 CC="$ac_cv_prog_CC"
2391 fi
2392
2393 if test -z "$CC"; then
2394 if test -n "$ac_tool_prefix"; then
2395 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2396 set dummy ${ac_tool_prefix}cc; ac_word=$2
2397 echo "$as_me:$LINENO: checking for $ac_word" >&5
2398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2399 if test "${ac_cv_prog_CC+set}" = set; then
2400 echo $ECHO_N "(cached) $ECHO_C" >&6
2401 else
2402 if test -n "$CC"; then
2403 ac_cv_prog_CC="$CC" # Let the user override the test.
2404 else
2405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2406 for as_dir in $PATH
2407 do
2408 IFS=$as_save_IFS
2409 test -z "$as_dir" && as_dir=.
2410 for ac_exec_ext in '' $ac_executable_extensions; do
2411 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2412 ac_cv_prog_CC="${ac_tool_prefix}cc"
2413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2414 break 2
2415 fi
2416 done
2417 done
2418
2419 fi
2420 fi
2421 CC=$ac_cv_prog_CC
2422 if test -n "$CC"; then
2423 echo "$as_me:$LINENO: result: $CC" >&5
2424 echo "${ECHO_T}$CC" >&6
2425 else
2426 echo "$as_me:$LINENO: result: no" >&5
2427 echo "${ECHO_T}no" >&6
2428 fi
2429
2430 fi
2431 if test -z "$ac_cv_prog_CC"; then
2432 ac_ct_CC=$CC
2433 # Extract the first word of "cc", so it can be a program name with args.
2434 set dummy cc; ac_word=$2
2435 echo "$as_me:$LINENO: checking for $ac_word" >&5
2436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2437 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2438 echo $ECHO_N "(cached) $ECHO_C" >&6
2439 else
2440 if test -n "$ac_ct_CC"; then
2441 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2442 else
2443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2444 for as_dir in $PATH
2445 do
2446 IFS=$as_save_IFS
2447 test -z "$as_dir" && as_dir=.
2448 for ac_exec_ext in '' $ac_executable_extensions; do
2449 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2450 ac_cv_prog_ac_ct_CC="cc"
2451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2452 break 2
2453 fi
2454 done
2455 done
2456
2457 fi
2458 fi
2459 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2460 if test -n "$ac_ct_CC"; then
2461 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2462 echo "${ECHO_T}$ac_ct_CC" >&6
2463 else
2464 echo "$as_me:$LINENO: result: no" >&5
2465 echo "${ECHO_T}no" >&6
2466 fi
2467
2468 CC=$ac_ct_CC
2469 else
2470 CC="$ac_cv_prog_CC"
2471 fi
2472
2473 fi
2474 if test -z "$CC"; then
2475 # Extract the first word of "cc", so it can be a program name with args.
2476 set dummy cc; ac_word=$2
2477 echo "$as_me:$LINENO: checking for $ac_word" >&5
2478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2479 if test "${ac_cv_prog_CC+set}" = set; then
2480 echo $ECHO_N "(cached) $ECHO_C" >&6
2481 else
2482 if test -n "$CC"; then
2483 ac_cv_prog_CC="$CC" # Let the user override the test.
2484 else
2485 ac_prog_rejected=no
2486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2487 for as_dir in $PATH
2488 do
2489 IFS=$as_save_IFS
2490 test -z "$as_dir" && as_dir=.
2491 for ac_exec_ext in '' $ac_executable_extensions; do
2492 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2493 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2494 ac_prog_rejected=yes
2495 continue
2496 fi
2497 ac_cv_prog_CC="cc"
2498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2499 break 2
2500 fi
2501 done
2502 done
2503
2504 if test $ac_prog_rejected = yes; then
2505 # We found a bogon in the path, so make sure we never use it.
2506 set dummy $ac_cv_prog_CC
2507 shift
2508 if test $# != 0; then
2509 # We chose a different compiler from the bogus one.
2510 # However, it has the same basename, so the bogon will be chosen
2511 # first if we set CC to just the basename; use the full file name.
2512 shift
2513 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2514 fi
2515 fi
2516 fi
2517 fi
2518 CC=$ac_cv_prog_CC
2519 if test -n "$CC"; then
2520 echo "$as_me:$LINENO: result: $CC" >&5
2521 echo "${ECHO_T}$CC" >&6
2522 else
2523 echo "$as_me:$LINENO: result: no" >&5
2524 echo "${ECHO_T}no" >&6
2525 fi
2526
2527 fi
2528 if test -z "$CC"; then
2529 if test -n "$ac_tool_prefix"; then
2530 for ac_prog in cl
2531 do
2532 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2533 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2534 echo "$as_me:$LINENO: checking for $ac_word" >&5
2535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2536 if test "${ac_cv_prog_CC+set}" = set; then
2537 echo $ECHO_N "(cached) $ECHO_C" >&6
2538 else
2539 if test -n "$CC"; then
2540 ac_cv_prog_CC="$CC" # Let the user override the test.
2541 else
2542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2543 for as_dir in $PATH
2544 do
2545 IFS=$as_save_IFS
2546 test -z "$as_dir" && as_dir=.
2547 for ac_exec_ext in '' $ac_executable_extensions; do
2548 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2549 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2551 break 2
2552 fi
2553 done
2554 done
2555
2556 fi
2557 fi
2558 CC=$ac_cv_prog_CC
2559 if test -n "$CC"; then
2560 echo "$as_me:$LINENO: result: $CC" >&5
2561 echo "${ECHO_T}$CC" >&6
2562 else
2563 echo "$as_me:$LINENO: result: no" >&5
2564 echo "${ECHO_T}no" >&6
2565 fi
2566
2567 test -n "$CC" && break
2568 done
2569 fi
2570 if test -z "$CC"; then
2571 ac_ct_CC=$CC
2572 for ac_prog in cl
2573 do
2574 # Extract the first word of "$ac_prog", so it can be a program name with args.
2575 set dummy $ac_prog; ac_word=$2
2576 echo "$as_me:$LINENO: checking for $ac_word" >&5
2577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2578 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2579 echo $ECHO_N "(cached) $ECHO_C" >&6
2580 else
2581 if test -n "$ac_ct_CC"; then
2582 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2583 else
2584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2585 for as_dir in $PATH
2586 do
2587 IFS=$as_save_IFS
2588 test -z "$as_dir" && as_dir=.
2589 for ac_exec_ext in '' $ac_executable_extensions; do
2590 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2591 ac_cv_prog_ac_ct_CC="$ac_prog"
2592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2593 break 2
2594 fi
2595 done
2596 done
2597
2598 fi
2599 fi
2600 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2601 if test -n "$ac_ct_CC"; then
2602 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2603 echo "${ECHO_T}$ac_ct_CC" >&6
2604 else
2605 echo "$as_me:$LINENO: result: no" >&5
2606 echo "${ECHO_T}no" >&6
2607 fi
2608
2609 test -n "$ac_ct_CC" && break
2610 done
2611
2612 CC=$ac_ct_CC
2613 fi
2614
2615 fi
2616
2617
2618 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2619 See \`config.log' for more details." >&5
2620 echo "$as_me: error: no acceptable C compiler found in \$PATH
2621 See \`config.log' for more details." >&2;}
2622 { (exit 1); exit 1; }; }
2623
2624 # Provide some information about the compiler.
2625 echo "$as_me:$LINENO:" \
2626 "checking for C compiler version" >&5
2627 ac_compiler=`set X $ac_compile; echo $2`
2628 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2629 (eval $ac_compiler --version </dev/null >&5) 2>&5
2630 ac_status=$?
2631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632 (exit $ac_status); }
2633 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2634 (eval $ac_compiler -v </dev/null >&5) 2>&5
2635 ac_status=$?
2636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637 (exit $ac_status); }
2638 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2639 (eval $ac_compiler -V </dev/null >&5) 2>&5
2640 ac_status=$?
2641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642 (exit $ac_status); }
2643
2644 cat >conftest.$ac_ext <<_ACEOF
2645 /* confdefs.h. */
2646 _ACEOF
2647 cat confdefs.h >>conftest.$ac_ext
2648 cat >>conftest.$ac_ext <<_ACEOF
2649 /* end confdefs.h. */
2650
2651 int
2652 main ()
2653 {
2654
2655 ;
2656 return 0;
2657 }
2658 _ACEOF
2659 ac_clean_files_save=$ac_clean_files
2660 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2661 # Try to create an executable without -o first, disregard a.out.
2662 # It will help us diagnose broken compilers, and finding out an intuition
2663 # of exeext.
2664 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2665 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2666 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2667 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2668 (eval $ac_link_default) 2>&5
2669 ac_status=$?
2670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671 (exit $ac_status); }; then
2672 # Find the output, starting from the most likely. This scheme is
2673 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2674 # resort.
2675
2676 # Be careful to initialize this variable, since it used to be cached.
2677 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2678 ac_cv_exeext=
2679 # b.out is created by i960 compilers.
2680 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2681 do
2682 test -f "$ac_file" || continue
2683 case $ac_file in
2684 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2685 ;;
2686 conftest.$ac_ext )
2687 # This is the source file.
2688 ;;
2689 [ab].out )
2690 # We found the default executable, but exeext='' is most
2691 # certainly right.
2692 break;;
2693 *.* )
2694 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2695 # FIXME: I believe we export ac_cv_exeext for Libtool,
2696 # but it would be cool to find out if it's true. Does anybody
2697 # maintain Libtool? --akim.
2698 export ac_cv_exeext
2699 break;;
2700 * )
2701 break;;
2702 esac
2703 done
2704 else
2705 echo "$as_me: failed program was:" >&5
2706 sed 's/^/| /' conftest.$ac_ext >&5
2707
2708 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2709 See \`config.log' for more details." >&5
2710 echo "$as_me: error: C compiler cannot create executables
2711 See \`config.log' for more details." >&2;}
2712 { (exit 77); exit 77; }; }
2713 fi
2714
2715 ac_exeext=$ac_cv_exeext
2716 echo "$as_me:$LINENO: result: $ac_file" >&5
2717 echo "${ECHO_T}$ac_file" >&6
2718
2719 # Check the compiler produces executables we can run. If not, either
2720 # the compiler is broken, or we cross compile.
2721 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2722 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2723 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2724 # If not cross compiling, check that we can run a simple program.
2725 if test "$cross_compiling" != yes; then
2726 if { ac_try='./$ac_file'
2727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2728 (eval $ac_try) 2>&5
2729 ac_status=$?
2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); }; }; then
2732 cross_compiling=no
2733 else
2734 if test "$cross_compiling" = maybe; then
2735 cross_compiling=yes
2736 else
2737 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2738 If you meant to cross compile, use \`--host'.
2739 See \`config.log' for more details." >&5
2740 echo "$as_me: error: cannot run C compiled programs.
2741 If you meant to cross compile, use \`--host'.
2742 See \`config.log' for more details." >&2;}
2743 { (exit 1); exit 1; }; }
2744 fi
2745 fi
2746 fi
2747 echo "$as_me:$LINENO: result: yes" >&5
2748 echo "${ECHO_T}yes" >&6
2749
2750 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2751 ac_clean_files=$ac_clean_files_save
2752 # Check the compiler produces executables we can run. If not, either
2753 # the compiler is broken, or we cross compile.
2754 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2755 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2756 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2757 echo "${ECHO_T}$cross_compiling" >&6
2758
2759 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2760 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2762 (eval $ac_link) 2>&5
2763 ac_status=$?
2764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765 (exit $ac_status); }; then
2766 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2767 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2768 # work properly (i.e., refer to `conftest.exe'), while it won't with
2769 # `rm'.
2770 for ac_file in conftest.exe conftest conftest.*; do
2771 test -f "$ac_file" || continue
2772 case $ac_file in
2773 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2774 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2775 export ac_cv_exeext
2776 break;;
2777 * ) break;;
2778 esac
2779 done
2780 else
2781 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2782 See \`config.log' for more details." >&5
2783 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2784 See \`config.log' for more details." >&2;}
2785 { (exit 1); exit 1; }; }
2786 fi
2787
2788 rm -f conftest$ac_cv_exeext
2789 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2790 echo "${ECHO_T}$ac_cv_exeext" >&6
2791
2792 rm -f conftest.$ac_ext
2793 EXEEXT=$ac_cv_exeext
2794 ac_exeext=$EXEEXT
2795 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2796 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2797 if test "${ac_cv_objext+set}" = set; then
2798 echo $ECHO_N "(cached) $ECHO_C" >&6
2799 else
2800 cat >conftest.$ac_ext <<_ACEOF
2801 /* confdefs.h. */
2802 _ACEOF
2803 cat confdefs.h >>conftest.$ac_ext
2804 cat >>conftest.$ac_ext <<_ACEOF
2805 /* end confdefs.h. */
2806
2807 int
2808 main ()
2809 {
2810
2811 ;
2812 return 0;
2813 }
2814 _ACEOF
2815 rm -f conftest.o conftest.obj
2816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2817 (eval $ac_compile) 2>&5
2818 ac_status=$?
2819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820 (exit $ac_status); }; then
2821 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2822 case $ac_file in
2823 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2824 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2825 break;;
2826 esac
2827 done
2828 else
2829 echo "$as_me: failed program was:" >&5
2830 sed 's/^/| /' conftest.$ac_ext >&5
2831
2832 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2833 See \`config.log' for more details." >&5
2834 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2835 See \`config.log' for more details." >&2;}
2836 { (exit 1); exit 1; }; }
2837 fi
2838
2839 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2840 fi
2841 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2842 echo "${ECHO_T}$ac_cv_objext" >&6
2843 OBJEXT=$ac_cv_objext
2844 ac_objext=$OBJEXT
2845 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2846 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2847 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2848 echo $ECHO_N "(cached) $ECHO_C" >&6
2849 else
2850 cat >conftest.$ac_ext <<_ACEOF
2851 /* confdefs.h. */
2852 _ACEOF
2853 cat confdefs.h >>conftest.$ac_ext
2854 cat >>conftest.$ac_ext <<_ACEOF
2855 /* end confdefs.h. */
2856
2857 int
2858 main ()
2859 {
2860 #ifndef __GNUC__
2861 choke me
2862 #endif
2863
2864 ;
2865 return 0;
2866 }
2867 _ACEOF
2868 rm -f conftest.$ac_objext
2869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2870 (eval $ac_compile) 2>conftest.er1
2871 ac_status=$?
2872 grep -v '^ *+' conftest.er1 >conftest.err
2873 rm -f conftest.er1
2874 cat conftest.err >&5
2875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876 (exit $ac_status); } &&
2877 { ac_try='test -z "$ac_c_werror_flag"
2878 || test ! -s conftest.err'
2879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2880 (eval $ac_try) 2>&5
2881 ac_status=$?
2882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883 (exit $ac_status); }; } &&
2884 { ac_try='test -s conftest.$ac_objext'
2885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2886 (eval $ac_try) 2>&5
2887 ac_status=$?
2888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889 (exit $ac_status); }; }; then
2890 ac_compiler_gnu=yes
2891 else
2892 echo "$as_me: failed program was:" >&5
2893 sed 's/^/| /' conftest.$ac_ext >&5
2894
2895 ac_compiler_gnu=no
2896 fi
2897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2898 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2899
2900 fi
2901 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2902 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2903 GCC=`test $ac_compiler_gnu = yes && echo yes`
2904 ac_test_CFLAGS=${CFLAGS+set}
2905 ac_save_CFLAGS=$CFLAGS
2906 CFLAGS="-g"
2907 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2908 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2909 if test "${ac_cv_prog_cc_g+set}" = set; then
2910 echo $ECHO_N "(cached) $ECHO_C" >&6
2911 else
2912 cat >conftest.$ac_ext <<_ACEOF
2913 /* confdefs.h. */
2914 _ACEOF
2915 cat confdefs.h >>conftest.$ac_ext
2916 cat >>conftest.$ac_ext <<_ACEOF
2917 /* end confdefs.h. */
2918
2919 int
2920 main ()
2921 {
2922
2923 ;
2924 return 0;
2925 }
2926 _ACEOF
2927 rm -f conftest.$ac_objext
2928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2929 (eval $ac_compile) 2>conftest.er1
2930 ac_status=$?
2931 grep -v '^ *+' conftest.er1 >conftest.err
2932 rm -f conftest.er1
2933 cat conftest.err >&5
2934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935 (exit $ac_status); } &&
2936 { ac_try='test -z "$ac_c_werror_flag"
2937 || test ! -s conftest.err'
2938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2939 (eval $ac_try) 2>&5
2940 ac_status=$?
2941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942 (exit $ac_status); }; } &&
2943 { ac_try='test -s conftest.$ac_objext'
2944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2945 (eval $ac_try) 2>&5
2946 ac_status=$?
2947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948 (exit $ac_status); }; }; then
2949 ac_cv_prog_cc_g=yes
2950 else
2951 echo "$as_me: failed program was:" >&5
2952 sed 's/^/| /' conftest.$ac_ext >&5
2953
2954 ac_cv_prog_cc_g=no
2955 fi
2956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2957 fi
2958 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2959 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2960 if test "$ac_test_CFLAGS" = set; then
2961 CFLAGS=$ac_save_CFLAGS
2962 elif test $ac_cv_prog_cc_g = yes; then
2963 if test "$GCC" = yes; then
2964 CFLAGS="-g -O2"
2965 else
2966 CFLAGS="-g"
2967 fi
2968 else
2969 if test "$GCC" = yes; then
2970 CFLAGS="-O2"
2971 else
2972 CFLAGS=
2973 fi
2974 fi
2975 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2976 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2977 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2978 echo $ECHO_N "(cached) $ECHO_C" >&6
2979 else
2980 ac_cv_prog_cc_stdc=no
2981 ac_save_CC=$CC
2982 cat >conftest.$ac_ext <<_ACEOF
2983 /* confdefs.h. */
2984 _ACEOF
2985 cat confdefs.h >>conftest.$ac_ext
2986 cat >>conftest.$ac_ext <<_ACEOF
2987 /* end confdefs.h. */
2988 #include <stdarg.h>
2989 #include <stdio.h>
2990 #include <sys/types.h>
2991 #include <sys/stat.h>
2992 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2993 struct buf { int x; };
2994 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2995 static char *e (p, i)
2996 char **p;
2997 int i;
2998 {
2999 return p[i];
3000 }
3001 static char *f (char * (*g) (char **, int), char **p, ...)
3002 {
3003 char *s;
3004 va_list v;
3005 va_start (v,p);
3006 s = g (p, va_arg (v,int));
3007 va_end (v);
3008 return s;
3009 }
3010
3011 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3012 function prototypes and stuff, but not '\xHH' hex character constants.
3013 These don't provoke an error unfortunately, instead are silently treated
3014 as 'x'. The following induces an error, until -std1 is added to get
3015 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3016 array size at least. It's necessary to write '\x00'==0 to get something
3017 that's true only with -std1. */
3018 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3019
3020 int test (int i, double x);
3021 struct s1 {int (*f) (int a);};
3022 struct s2 {int (*f) (double a);};
3023 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3024 int argc;
3025 char **argv;
3026 int
3027 main ()
3028 {
3029 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3030 ;
3031 return 0;
3032 }
3033 _ACEOF
3034 # Don't try gcc -ansi; that turns off useful extensions and
3035 # breaks some systems' header files.
3036 # AIX -qlanglvl=ansi
3037 # Ultrix and OSF/1 -std1
3038 # HP-UX 10.20 and later -Ae
3039 # HP-UX older versions -Aa -D_HPUX_SOURCE
3040 # SVR4 -Xc -D__EXTENSIONS__
3041 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3042 do
3043 CC="$ac_save_CC $ac_arg"
3044 rm -f conftest.$ac_objext
3045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3046 (eval $ac_compile) 2>conftest.er1
3047 ac_status=$?
3048 grep -v '^ *+' conftest.er1 >conftest.err
3049 rm -f conftest.er1
3050 cat conftest.err >&5
3051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052 (exit $ac_status); } &&
3053 { ac_try='test -z "$ac_c_werror_flag"
3054 || test ! -s conftest.err'
3055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3056 (eval $ac_try) 2>&5
3057 ac_status=$?
3058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059 (exit $ac_status); }; } &&
3060 { ac_try='test -s conftest.$ac_objext'
3061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3062 (eval $ac_try) 2>&5
3063 ac_status=$?
3064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065 (exit $ac_status); }; }; then
3066 ac_cv_prog_cc_stdc=$ac_arg
3067 break
3068 else
3069 echo "$as_me: failed program was:" >&5
3070 sed 's/^/| /' conftest.$ac_ext >&5
3071
3072 fi
3073 rm -f conftest.err conftest.$ac_objext
3074 done
3075 rm -f conftest.$ac_ext conftest.$ac_objext
3076 CC=$ac_save_CC
3077
3078 fi
3079
3080 case "x$ac_cv_prog_cc_stdc" in
3081 x|xno)
3082 echo "$as_me:$LINENO: result: none needed" >&5
3083 echo "${ECHO_T}none needed" >&6 ;;
3084 *)
3085 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3086 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3087 CC="$CC $ac_cv_prog_cc_stdc" ;;
3088 esac
3089
3090 # Some people use a C++ compiler to compile C. Since we use `exit',
3091 # in C++ we need to declare it. In case someone uses the same compiler
3092 # for both compiling C and C++ we need to have the C++ compiler decide
3093 # the declaration of exit, since it's the most demanding environment.
3094 cat >conftest.$ac_ext <<_ACEOF
3095 #ifndef __cplusplus
3096 choke me
3097 #endif
3098 _ACEOF
3099 rm -f conftest.$ac_objext
3100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3101 (eval $ac_compile) 2>conftest.er1
3102 ac_status=$?
3103 grep -v '^ *+' conftest.er1 >conftest.err
3104 rm -f conftest.er1
3105 cat conftest.err >&5
3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107 (exit $ac_status); } &&
3108 { ac_try='test -z "$ac_c_werror_flag"
3109 || test ! -s conftest.err'
3110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3111 (eval $ac_try) 2>&5
3112 ac_status=$?
3113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114 (exit $ac_status); }; } &&
3115 { ac_try='test -s conftest.$ac_objext'
3116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3117 (eval $ac_try) 2>&5
3118 ac_status=$?
3119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120 (exit $ac_status); }; }; then
3121 for ac_declaration in \
3122 '' \
3123 'extern "C" void std::exit (int) throw (); using std::exit;' \
3124 'extern "C" void std::exit (int); using std::exit;' \
3125 'extern "C" void exit (int) throw ();' \
3126 'extern "C" void exit (int);' \
3127 'void exit (int);'
3128 do
3129 cat >conftest.$ac_ext <<_ACEOF
3130 /* confdefs.h. */
3131 _ACEOF
3132 cat confdefs.h >>conftest.$ac_ext
3133 cat >>conftest.$ac_ext <<_ACEOF
3134 /* end confdefs.h. */
3135 $ac_declaration
3136 #include <stdlib.h>
3137 int
3138 main ()
3139 {
3140 exit (42);
3141 ;
3142 return 0;
3143 }
3144 _ACEOF
3145 rm -f conftest.$ac_objext
3146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3147 (eval $ac_compile) 2>conftest.er1
3148 ac_status=$?
3149 grep -v '^ *+' conftest.er1 >conftest.err
3150 rm -f conftest.er1
3151 cat conftest.err >&5
3152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153 (exit $ac_status); } &&
3154 { ac_try='test -z "$ac_c_werror_flag"
3155 || test ! -s conftest.err'
3156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3157 (eval $ac_try) 2>&5
3158 ac_status=$?
3159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160 (exit $ac_status); }; } &&
3161 { ac_try='test -s conftest.$ac_objext'
3162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3163 (eval $ac_try) 2>&5
3164 ac_status=$?
3165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3166 (exit $ac_status); }; }; then
3167 :
3168 else
3169 echo "$as_me: failed program was:" >&5
3170 sed 's/^/| /' conftest.$ac_ext >&5
3171
3172 continue
3173 fi
3174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3175 cat >conftest.$ac_ext <<_ACEOF
3176 /* confdefs.h. */
3177 _ACEOF
3178 cat confdefs.h >>conftest.$ac_ext
3179 cat >>conftest.$ac_ext <<_ACEOF
3180 /* end confdefs.h. */
3181 $ac_declaration
3182 int
3183 main ()
3184 {
3185 exit (42);
3186 ;
3187 return 0;
3188 }
3189 _ACEOF
3190 rm -f conftest.$ac_objext
3191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3192 (eval $ac_compile) 2>conftest.er1
3193 ac_status=$?
3194 grep -v '^ *+' conftest.er1 >conftest.err
3195 rm -f conftest.er1
3196 cat conftest.err >&5
3197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198 (exit $ac_status); } &&
3199 { ac_try='test -z "$ac_c_werror_flag"
3200 || test ! -s conftest.err'
3201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3202 (eval $ac_try) 2>&5
3203 ac_status=$?
3204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205 (exit $ac_status); }; } &&
3206 { ac_try='test -s conftest.$ac_objext'
3207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3208 (eval $ac_try) 2>&5
3209 ac_status=$?
3210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211 (exit $ac_status); }; }; then
3212 break
3213 else
3214 echo "$as_me: failed program was:" >&5
3215 sed 's/^/| /' conftest.$ac_ext >&5
3216
3217 fi
3218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3219 done
3220 rm -f conftest*
3221 if test -n "$ac_declaration"; then
3222 echo '#ifdef __cplusplus' >>confdefs.h
3223 echo $ac_declaration >>confdefs.h
3224 echo '#endif' >>confdefs.h
3225 fi
3226
3227 else
3228 echo "$as_me: failed program was:" >&5
3229 sed 's/^/| /' conftest.$ac_ext >&5
3230
3231 fi
3232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3233 ac_ext=c
3234 ac_cpp='$CPP $CPPFLAGS'
3235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3238 DEPDIR="${am__leading_dot}deps"
3239
3240 ac_config_commands="$ac_config_commands depfiles"
3241
3242
3243 am_make=${MAKE-make}
3244 cat > confinc << 'END'
3245 am__doit:
3246 @echo done
3247 .PHONY: am__doit
3248 END
3249 # If we don't find an include directive, just comment out the code.
3250 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3251 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3252 am__include="#"
3253 am__quote=
3254 _am_result=none
3255 # First try GNU make style include.
3256 echo "include confinc" > confmf
3257 # We grep out `Entering directory' and `Leaving directory'
3258 # messages which can occur if `w' ends up in MAKEFLAGS.
3259 # In particular we don't look at `^make:' because GNU make might
3260 # be invoked under some other name (usually "gmake"), in which
3261 # case it prints its new name instead of `make'.
3262 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3263 am__include=include
3264 am__quote=
3265 _am_result=GNU
3266 fi
3267 # Now try BSD make style include.
3268 if test "$am__include" = "#"; then
3269 echo '.include "confinc"' > confmf
3270 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3271 am__include=.include
3272 am__quote="\""
3273 _am_result=BSD
3274 fi
3275 fi
3276
3277
3278 echo "$as_me:$LINENO: result: $_am_result" >&5
3279 echo "${ECHO_T}$_am_result" >&6
3280 rm -f confinc confmf
3281
3282 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3283 if test "${enable_dependency_tracking+set}" = set; then
3284 enableval="$enable_dependency_tracking"
3285
3286 fi;
3287 if test "x$enable_dependency_tracking" != xno; then
3288 am_depcomp="$ac_aux_dir/depcomp"
3289 AMDEPBACKSLASH='\'
3290 fi
3291
3292
3293 if test "x$enable_dependency_tracking" != xno; then
3294 AMDEP_TRUE=
3295 AMDEP_FALSE='#'
3296 else
3297 AMDEP_TRUE='#'
3298 AMDEP_FALSE=
3299 fi
3300
3301
3302
3303
3304 depcc="$CC" am_compiler_list=
3305
3306 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3307 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3308 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3309 echo $ECHO_N "(cached) $ECHO_C" >&6
3310 else
3311 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3312 # We make a subdir and do the tests there. Otherwise we can end up
3313 # making bogus files that we don't know about and never remove. For
3314 # instance it was reported that on HP-UX the gcc test will end up
3315 # making a dummy file named `D' -- because `-MD' means `put the output
3316 # in D'.
3317 mkdir conftest.dir
3318 # Copy depcomp to subdir because otherwise we won't find it if we're
3319 # using a relative directory.
3320 cp "$am_depcomp" conftest.dir
3321 cd conftest.dir
3322 # We will build objects and dependencies in a subdirectory because
3323 # it helps to detect inapplicable dependency modes. For instance
3324 # both Tru64's cc and ICC support -MD to output dependencies as a
3325 # side effect of compilation, but ICC will put the dependencies in
3326 # the current directory while Tru64 will put them in the object
3327 # directory.
3328 mkdir sub
3329
3330 am_cv_CC_dependencies_compiler_type=none
3331 if test "$am_compiler_list" = ""; then
3332 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3333 fi
3334 for depmode in $am_compiler_list; do
3335 # Setup a source with many dependencies, because some compilers
3336 # like to wrap large dependency lists on column 80 (with \), and
3337 # we should not choose a depcomp mode which is confused by this.
3338 #
3339 # We need to recreate these files for each test, as the compiler may
3340 # overwrite some of them when testing with obscure command lines.
3341 # This happens at least with the AIX C compiler.
3342 : > sub/conftest.c
3343 for i in 1 2 3 4 5 6; do
3344 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3345 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3346 # Solaris 8's {/usr,}/bin/sh.
3347 touch sub/conftst$i.h
3348 done
3349 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3350
3351 case $depmode in
3352 nosideeffect)
3353 # after this tag, mechanisms are not by side-effect, so they'll
3354 # only be used when explicitly requested
3355 if test "x$enable_dependency_tracking" = xyes; then
3356 continue
3357 else
3358 break
3359 fi
3360 ;;
3361 none) break ;;
3362 esac
3363 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3364 # mode. It turns out that the SunPro C++ compiler does not properly
3365 # handle `-M -o', and we need to detect this.
3366 if depmode=$depmode \
3367 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3368 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3369 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3370 >/dev/null 2>conftest.err &&
3371 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3372 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3373 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3374 # icc doesn't choke on unknown options, it will just issue warnings
3375 # or remarks (even with -Werror). So we grep stderr for any message
3376 # that says an option was ignored or not supported.
3377 # When given -MP, icc 7.0 and 7.1 complain thusly:
3378 # icc: Command line warning: ignoring option '-M'; no argument required
3379 # The diagnosis changed in icc 8.0:
3380 # icc: Command line remark: option '-MP' not supported
3381 if (grep 'ignoring option' conftest.err ||
3382 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3383 am_cv_CC_dependencies_compiler_type=$depmode
3384 break
3385 fi
3386 fi
3387 done
3388
3389 cd ..
3390 rm -rf conftest.dir
3391 else
3392 am_cv_CC_dependencies_compiler_type=none
3393 fi
3394
3395 fi
3396 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3397 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3398 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3399
3400
3401
3402 if
3403 test "x$enable_dependency_tracking" != xno \
3404 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3405 am__fastdepCC_TRUE=
3406 am__fastdepCC_FALSE='#'
3407 else
3408 am__fastdepCC_TRUE='#'
3409 am__fastdepCC_FALSE=
3410 fi
3411
3412
3413 # Check whether --enable-shared or --disable-shared was given.
3414 if test "${enable_shared+set}" = set; then
3415 enableval="$enable_shared"
3416 p=${PACKAGE-default}
3417 case $enableval in
3418 yes) enable_shared=yes ;;
3419 no) enable_shared=no ;;
3420 *)
3421 enable_shared=no
3422 # Look at the argument we got. We use all the common list separators.
3423 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3424 for pkg in $enableval; do
3425 IFS="$lt_save_ifs"
3426 if test "X$pkg" = "X$p"; then
3427 enable_shared=yes
3428 fi
3429 done
3430 IFS="$lt_save_ifs"
3431 ;;
3432 esac
3433 else
3434 enable_shared=yes
3435 fi;
3436
3437 # Check whether --enable-static or --disable-static was given.
3438 if test "${enable_static+set}" = set; then
3439 enableval="$enable_static"
3440 p=${PACKAGE-default}
3441 case $enableval in
3442 yes) enable_static=yes ;;
3443 no) enable_static=no ;;
3444 *)
3445 enable_static=no
3446 # Look at the argument we got. We use all the common list separators.
3447 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3448 for pkg in $enableval; do
3449 IFS="$lt_save_ifs"
3450 if test "X$pkg" = "X$p"; then
3451 enable_static=yes
3452 fi
3453 done
3454 IFS="$lt_save_ifs"
3455 ;;
3456 esac
3457 else
3458 enable_static=yes
3459 fi;
3460
3461 # Check whether --enable-fast-install or --disable-fast-install was given.
3462 if test "${enable_fast_install+set}" = set; then
3463 enableval="$enable_fast_install"
3464 p=${PACKAGE-default}
3465 case $enableval in
3466 yes) enable_fast_install=yes ;;
3467 no) enable_fast_install=no ;;
3468 *)
3469 enable_fast_install=no
3470 # Look at the argument we got. We use all the common list separators.
3471 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3472 for pkg in $enableval; do
3473 IFS="$lt_save_ifs"
3474 if test "X$pkg" = "X$p"; then
3475 enable_fast_install=yes
3476 fi
3477 done
3478 IFS="$lt_save_ifs"
3479 ;;
3480 esac
3481 else
3482 enable_fast_install=yes
3483 fi;
3484
3485 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3486 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3487 if test "${lt_cv_path_SED+set}" = set; then
3488 echo $ECHO_N "(cached) $ECHO_C" >&6
3489 else
3490 # Loop through the user's path and test for sed and gsed.
3491 # Then use that list of sed's as ones to test for truncation.
3492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3493 for as_dir in $PATH
3494 do
3495 IFS=$as_save_IFS
3496 test -z "$as_dir" && as_dir=.
3497 for lt_ac_prog in sed gsed; do
3498 for ac_exec_ext in '' $ac_executable_extensions; do
3499 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3500 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3501 fi
3502 done
3503 done
3504 done
3505 IFS=$as_save_IFS
3506 lt_ac_max=0
3507 lt_ac_count=0
3508 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3509 # along with /bin/sed that truncates output.
3510 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3511 test ! -f $lt_ac_sed && continue
3512 cat /dev/null > conftest.in
3513 lt_ac_count=0
3514 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3515 # Check for GNU sed and select it if it is found.
3516 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3517 lt_cv_path_SED=$lt_ac_sed
3518 break
3519 fi
3520 while true; do
3521 cat conftest.in conftest.in >conftest.tmp
3522 mv conftest.tmp conftest.in
3523 cp conftest.in conftest.nl
3524 echo >>conftest.nl
3525 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3526 cmp -s conftest.out conftest.nl || break
3527 # 10000 chars as input seems more than enough
3528 test $lt_ac_count -gt 10 && break
3529 lt_ac_count=`expr $lt_ac_count + 1`
3530 if test $lt_ac_count -gt $lt_ac_max; then
3531 lt_ac_max=$lt_ac_count
3532 lt_cv_path_SED=$lt_ac_sed
3533 fi
3534 done
3535 done
3536
3537 fi
3538
3539 SED=$lt_cv_path_SED
3540
3541 echo "$as_me:$LINENO: result: $SED" >&5
3542 echo "${ECHO_T}$SED" >&6
3543
3544 echo "$as_me:$LINENO: checking for egrep" >&5
3545 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3546 if test "${ac_cv_prog_egrep+set}" = set; then
3547 echo $ECHO_N "(cached) $ECHO_C" >&6
3548 else
3549 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3550 then ac_cv_prog_egrep='grep -E'
3551 else ac_cv_prog_egrep='egrep'
3552 fi
3553 fi
3554 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3555 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3556 EGREP=$ac_cv_prog_egrep
3557
3558
3559
3560 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3561 if test "${with_gnu_ld+set}" = set; then
3562 withval="$with_gnu_ld"
3563 test "$withval" = no || with_gnu_ld=yes
3564 else
3565 with_gnu_ld=no
3566 fi;
3567 ac_prog=ld
3568 if test "$GCC" = yes; then
3569 # Check if gcc -print-prog-name=ld gives a path.
3570 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3571 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3572 case $host in
3573 *-*-mingw*)
3574 # gcc leaves a trailing carriage return which upsets mingw
3575 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3576 *)
3577 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3578 esac
3579 case $ac_prog in
3580 # Accept absolute paths.
3581 [\\/]* | ?:[\\/]*)
3582 re_direlt='/[^/][^/]*/\.\./'
3583 # Canonicalize the pathname of ld
3584 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3585 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3586 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3587 done
3588 test -z "$LD" && LD="$ac_prog"
3589 ;;
3590 "")
3591 # If it fails, then pretend we aren't using GCC.
3592 ac_prog=ld
3593 ;;
3594 *)
3595 # If it is relative, then search for the first ld in PATH.
3596 with_gnu_ld=unknown
3597 ;;
3598 esac
3599 elif test "$with_gnu_ld" = yes; then
3600 echo "$as_me:$LINENO: checking for GNU ld" >&5
3601 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3602 else
3603 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3604 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3605 fi
3606 if test "${lt_cv_path_LD+set}" = set; then
3607 echo $ECHO_N "(cached) $ECHO_C" >&6
3608 else
3609 if test -z "$LD"; then
3610 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3611 for ac_dir in $PATH; do
3612 IFS="$lt_save_ifs"
3613 test -z "$ac_dir" && ac_dir=.
3614 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3615 lt_cv_path_LD="$ac_dir/$ac_prog"
3616 # Check to see if the program is GNU ld. I'd rather use --version,
3617 # but apparently some variants of GNU ld only accept -v.
3618 # Break only if it was the GNU/non-GNU ld that we prefer.
3619 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3620 *GNU* | *'with BFD'*)
3621 test "$with_gnu_ld" != no && break
3622 ;;
3623 *)
3624 test "$with_gnu_ld" != yes && break
3625 ;;
3626 esac
3627 fi
3628 done
3629 IFS="$lt_save_ifs"
3630 else
3631 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3632 fi
3633 fi
3634
3635 LD="$lt_cv_path_LD"
3636 if test -n "$LD"; then
3637 echo "$as_me:$LINENO: result: $LD" >&5
3638 echo "${ECHO_T}$LD" >&6
3639 else
3640 echo "$as_me:$LINENO: result: no" >&5
3641 echo "${ECHO_T}no" >&6
3642 fi
3643 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3644 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3645 { (exit 1); exit 1; }; }
3646 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3647 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3648 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3649 echo $ECHO_N "(cached) $ECHO_C" >&6
3650 else
3651 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3652 case `$LD -v 2>&1 </dev/null` in
3653 *GNU* | *'with BFD'*)
3654 lt_cv_prog_gnu_ld=yes
3655 ;;
3656 *)
3657 lt_cv_prog_gnu_ld=no
3658 ;;
3659 esac
3660 fi
3661 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3662 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3663 with_gnu_ld=$lt_cv_prog_gnu_ld
3664
3665
3666 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3667 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3668 if test "${lt_cv_ld_reload_flag+set}" = set; then
3669 echo $ECHO_N "(cached) $ECHO_C" >&6
3670 else
3671 lt_cv_ld_reload_flag='-r'
3672 fi
3673 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3674 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3675 reload_flag=$lt_cv_ld_reload_flag
3676 case $reload_flag in
3677 "" | " "*) ;;
3678 *) reload_flag=" $reload_flag" ;;
3679 esac
3680 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3681 case $host_os in
3682 darwin*)
3683 if test "$GCC" = yes; then
3684 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3685 else
3686 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3687 fi
3688 ;;
3689 esac
3690
3691 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3692 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3693 if test "${lt_cv_path_NM+set}" = set; then
3694 echo $ECHO_N "(cached) $ECHO_C" >&6
3695 else
3696 if test -n "$NM"; then
3697 # Let the user override the test.
3698 lt_cv_path_NM="$NM"
3699 else
3700 lt_nm_to_check="${ac_tool_prefix}nm"
3701 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3702 lt_nm_to_check="$lt_nm_to_check nm"
3703 fi
3704 for lt_tmp_nm in $lt_nm_to_check; do
3705 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3706 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3707 IFS="$lt_save_ifs"
3708 test -z "$ac_dir" && ac_dir=.
3709 tmp_nm="$ac_dir/$lt_tmp_nm"
3710 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3711 # Check to see if the nm accepts a BSD-compat flag.
3712 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3713 # nm: unknown option "B" ignored
3714 # Tru64's nm complains that /dev/null is an invalid object file
3715 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3716 */dev/null* | *'Invalid file or object type'*)
3717 lt_cv_path_NM="$tmp_nm -B"
3718 break
3719 ;;
3720 *)
3721 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3722 */dev/null*)
3723 lt_cv_path_NM="$tmp_nm -p"
3724 break
3725 ;;
3726 *)
3727 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3728 continue # so that we can try to find one that supports BSD flags
3729 ;;
3730 esac
3731 ;;
3732 esac
3733 fi
3734 done
3735 IFS="$lt_save_ifs"
3736 done
3737 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3738 fi
3739 fi
3740 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3741 echo "${ECHO_T}$lt_cv_path_NM" >&6
3742 NM="$lt_cv_path_NM"
3743
3744 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3745 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3746 LN_S=$as_ln_s
3747 if test "$LN_S" = "ln -s"; then
3748 echo "$as_me:$LINENO: result: yes" >&5
3749 echo "${ECHO_T}yes" >&6
3750 else
3751 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3752 echo "${ECHO_T}no, using $LN_S" >&6
3753 fi
3754
3755 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3756 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3757 if test "${lt_cv_deplibs_check_method+set}" = set; then
3758 echo $ECHO_N "(cached) $ECHO_C" >&6
3759 else
3760 lt_cv_file_magic_cmd='$MAGIC_CMD'
3761 lt_cv_file_magic_test_file=
3762 lt_cv_deplibs_check_method='unknown'
3763 # Need to set the preceding variable on all platforms that support
3764 # interlibrary dependencies.
3765 # 'none' -- dependencies not supported.
3766 # `unknown' -- same as none, but documents that we really don't know.
3767 # 'pass_all' -- all dependencies passed with no checks.
3768 # 'test_compile' -- check by making test program.
3769 # 'file_magic [[regex]]' -- check by looking for files in library path
3770 # which responds to the $file_magic_cmd with a given extended regex.
3771 # If you have `file' or equivalent on your system and you're not sure
3772 # whether `pass_all' will *always* work, you probably want this one.
3773
3774 case $host_os in
3775 aix4* | aix5*)
3776 lt_cv_deplibs_check_method=pass_all
3777 ;;
3778
3779 beos*)
3780 lt_cv_deplibs_check_method=pass_all
3781 ;;
3782
3783 bsdi[45]*)
3784 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3785 lt_cv_file_magic_cmd='/usr/bin/file -L'
3786 lt_cv_file_magic_test_file=/shlib/libc.so
3787 ;;
3788
3789 cygwin*)
3790 # func_win32_libid is a shell function defined in ltmain.sh
3791 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3792 lt_cv_file_magic_cmd='func_win32_libid'
3793 ;;
3794
3795 mingw* | pw32*)
3796 # Base MSYS/MinGW do not provide the 'file' command needed by
3797 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3798 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3799 lt_cv_file_magic_cmd='$OBJDUMP -f'
3800 ;;
3801
3802 darwin* | rhapsody*)
3803 lt_cv_deplibs_check_method=pass_all
3804 ;;
3805
3806 freebsd* | kfreebsd*-gnu | dragonfly*)
3807 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3808 case $host_cpu in
3809 i*86 )
3810 # Not sure whether the presence of OpenBSD here was a mistake.
3811 # Let's accept both of them until this is cleared up.
3812 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3813 lt_cv_file_magic_cmd=/usr/bin/file
3814 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3815 ;;
3816 esac
3817 else
3818 lt_cv_deplibs_check_method=pass_all
3819 fi
3820 ;;
3821
3822 gnu*)
3823 lt_cv_deplibs_check_method=pass_all
3824 ;;
3825
3826 hpux10.20* | hpux11*)
3827 lt_cv_file_magic_cmd=/usr/bin/file
3828 case $host_cpu in
3829 ia64*)
3830 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3831 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3832 ;;
3833 hppa*64*)
3834 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]'
3835 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3836 ;;
3837 *)
3838 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3839 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3840 ;;
3841 esac
3842 ;;
3843
3844 interix3*)
3845 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3846 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3847 ;;
3848
3849 irix5* | irix6* | nonstopux*)
3850 case $LD in
3851 *-32|*"-32 ") libmagic=32-bit;;
3852 *-n32|*"-n32 ") libmagic=N32;;
3853 *-64|*"-64 ") libmagic=64-bit;;
3854 *) libmagic=never-match;;
3855 esac
3856 lt_cv_deplibs_check_method=pass_all
3857 ;;
3858
3859 # This must be Linux ELF.
3860 linux*)
3861 lt_cv_deplibs_check_method=pass_all
3862 ;;
3863
3864 netbsd*)
3865 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3866 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3867 else
3868 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3869 fi
3870 ;;
3871
3872 newos6*)
3873 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3874 lt_cv_file_magic_cmd=/usr/bin/file
3875 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3876 ;;
3877
3878 nto-qnx*)
3879 lt_cv_deplibs_check_method=unknown
3880 ;;
3881
3882 openbsd*)
3883 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3884 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3885 else
3886 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3887 fi
3888 ;;
3889
3890 osf3* | osf4* | osf5*)
3891 lt_cv_deplibs_check_method=pass_all
3892 ;;
3893
3894 solaris*)
3895 lt_cv_deplibs_check_method=pass_all
3896 ;;
3897
3898 sysv4 | sysv4.3*)
3899 case $host_vendor in
3900 motorola)
3901 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]'
3902 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3903 ;;
3904 ncr)
3905 lt_cv_deplibs_check_method=pass_all
3906 ;;
3907 sequent)
3908 lt_cv_file_magic_cmd='/bin/file'
3909 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3910 ;;
3911 sni)
3912 lt_cv_file_magic_cmd='/bin/file'
3913 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3914 lt_cv_file_magic_test_file=/lib/libc.so
3915 ;;
3916 siemens)
3917 lt_cv_deplibs_check_method=pass_all
3918 ;;
3919 pc)
3920 lt_cv_deplibs_check_method=pass_all
3921 ;;
3922 esac
3923 ;;
3924
3925 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3926 lt_cv_deplibs_check_method=pass_all
3927 ;;
3928 esac
3929
3930 fi
3931 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3932 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3933 file_magic_cmd=$lt_cv_file_magic_cmd
3934 deplibs_check_method=$lt_cv_deplibs_check_method
3935 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3936
3937
3938
3939
3940 # If no C compiler was specified, use CC.
3941 LTCC=${LTCC-"$CC"}
3942
3943 # If no C compiler flags were specified, use CFLAGS.
3944 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3945
3946 # Allow CC to be a program name with arguments.
3947 compiler=$CC
3948
3949
3950 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3951 if test "${enable_libtool_lock+set}" = set; then
3952 enableval="$enable_libtool_lock"
3953
3954 fi;
3955 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3956
3957 # Some flags need to be propagated to the compiler or linker for good
3958 # libtool support.
3959 case $host in
3960 ia64-*-hpux*)
3961 # Find out which ABI we are using.
3962 echo 'int i;' > conftest.$ac_ext
3963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3964 (eval $ac_compile) 2>&5
3965 ac_status=$?
3966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3967 (exit $ac_status); }; then
3968 case `/usr/bin/file conftest.$ac_objext` in
3969 *ELF-32*)
3970 HPUX_IA64_MODE="32"
3971 ;;
3972 *ELF-64*)
3973 HPUX_IA64_MODE="64"
3974 ;;
3975 esac
3976 fi
3977 rm -rf conftest*
3978 ;;
3979 *-*-irix6*)
3980 # Find out which ABI we are using.
3981 echo '#line 3981 "configure"' > conftest.$ac_ext
3982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3983 (eval $ac_compile) 2>&5
3984 ac_status=$?
3985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986 (exit $ac_status); }; then
3987 if test "$lt_cv_prog_gnu_ld" = yes; then
3988 case `/usr/bin/file conftest.$ac_objext` in
3989 *32-bit*)
3990 LD="${LD-ld} -melf32bsmip"
3991 ;;
3992 *N32*)
3993 LD="${LD-ld} -melf32bmipn32"
3994 ;;
3995 *64-bit*)
3996 LD="${LD-ld} -melf64bmip"
3997 ;;
3998 esac
3999 else
4000 case `/usr/bin/file conftest.$ac_objext` in
4001 *32-bit*)
4002 LD="${LD-ld} -32"
4003 ;;
4004 *N32*)
4005 LD="${LD-ld} -n32"
4006 ;;
4007 *64-bit*)
4008 LD="${LD-ld} -64"
4009 ;;
4010 esac
4011 fi
4012 fi
4013 rm -rf conftest*
4014 ;;
4015
4016 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4017 # Find out which ABI we are using.
4018 echo 'int i;' > conftest.$ac_ext
4019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4020 (eval $ac_compile) 2>&5
4021 ac_status=$?
4022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4023 (exit $ac_status); }; then
4024 case `/usr/bin/file conftest.o` in
4025 *32-bit*)
4026 case $host in
4027 x86_64-*linux*)
4028 LD="${LD-ld} -m elf_i386"
4029 ;;
4030 ppc64-*linux*|powerpc64-*linux*)
4031 LD="${LD-ld} -m elf32ppclinux"
4032 ;;
4033 s390x-*linux*)
4034 LD="${LD-ld} -m elf_s390"
4035 ;;
4036 sparc64-*linux*)
4037 LD="${LD-ld} -m elf32_sparc"
4038 ;;
4039 esac
4040 ;;
4041 *64-bit*)
4042 case $host in
4043 x86_64-*linux*)
4044 LD="${LD-ld} -m elf_x86_64"
4045 ;;
4046 ppc*-*linux*|powerpc*-*linux*)
4047 LD="${LD-ld} -m elf64ppc"
4048 ;;
4049 s390*-*linux*)
4050 LD="${LD-ld} -m elf64_s390"
4051 ;;
4052 sparc*-*linux*)
4053 LD="${LD-ld} -m elf64_sparc"
4054 ;;
4055 esac
4056 ;;
4057 esac
4058 fi
4059 rm -rf conftest*
4060 ;;
4061
4062 *-*-sco3.2v5*)
4063 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4064 SAVE_CFLAGS="$CFLAGS"
4065 CFLAGS="$CFLAGS -belf"
4066 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4067 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4068 if test "${lt_cv_cc_needs_belf+set}" = set; then
4069 echo $ECHO_N "(cached) $ECHO_C" >&6
4070 else
4071 ac_ext=c
4072 ac_cpp='$CPP $CPPFLAGS'
4073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4076
4077 cat >conftest.$ac_ext <<_ACEOF
4078 /* confdefs.h. */
4079 _ACEOF
4080 cat confdefs.h >>conftest.$ac_ext
4081 cat >>conftest.$ac_ext <<_ACEOF
4082 /* end confdefs.h. */
4083
4084 int
4085 main ()
4086 {
4087
4088 ;
4089 return 0;
4090 }
4091 _ACEOF
4092 rm -f conftest.$ac_objext conftest$ac_exeext
4093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4094 (eval $ac_link) 2>conftest.er1
4095 ac_status=$?
4096 grep -v '^ *+' conftest.er1 >conftest.err
4097 rm -f conftest.er1
4098 cat conftest.err >&5
4099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100 (exit $ac_status); } &&
4101 { ac_try='test -z "$ac_c_werror_flag"
4102 || test ! -s conftest.err'
4103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4104 (eval $ac_try) 2>&5
4105 ac_status=$?
4106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107 (exit $ac_status); }; } &&
4108 { ac_try='test -s conftest$ac_exeext'
4109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4110 (eval $ac_try) 2>&5
4111 ac_status=$?
4112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4113 (exit $ac_status); }; }; then
4114 lt_cv_cc_needs_belf=yes
4115 else
4116 echo "$as_me: failed program was:" >&5
4117 sed 's/^/| /' conftest.$ac_ext >&5
4118
4119 lt_cv_cc_needs_belf=no
4120 fi
4121 rm -f conftest.err conftest.$ac_objext \
4122 conftest$ac_exeext conftest.$ac_ext
4123 ac_ext=c
4124 ac_cpp='$CPP $CPPFLAGS'
4125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4128
4129 fi
4130 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4131 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4132 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4133 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4134 CFLAGS="$SAVE_CFLAGS"
4135 fi
4136 ;;
4137 sparc*-*solaris*)
4138 # Find out which ABI we are using.
4139 echo 'int i;' > conftest.$ac_ext
4140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4141 (eval $ac_compile) 2>&5
4142 ac_status=$?
4143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144 (exit $ac_status); }; then
4145 case `/usr/bin/file conftest.o` in
4146 *64-bit*)
4147 case $lt_cv_prog_gnu_ld in
4148 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4149 *) LD="${LD-ld} -64" ;;
4150 esac
4151 ;;
4152 esac
4153 fi
4154 rm -rf conftest*
4155 ;;
4156
4157
4158 esac
4159
4160 need_locks="$enable_libtool_lock"
4161
4162
4163 ac_ext=c
4164 ac_cpp='$CPP $CPPFLAGS'
4165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4168 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4169 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4170 # On Suns, sometimes $CPP names a directory.
4171 if test -n "$CPP" && test -d "$CPP"; then
4172 CPP=
4173 fi
4174 if test -z "$CPP"; then
4175 if test "${ac_cv_prog_CPP+set}" = set; then
4176 echo $ECHO_N "(cached) $ECHO_C" >&6
4177 else
4178 # Double quotes because CPP needs to be expanded
4179 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4180 do
4181 ac_preproc_ok=false
4182 for ac_c_preproc_warn_flag in '' yes
4183 do
4184 # Use a header file that comes with gcc, so configuring glibc
4185 # with a fresh cross-compiler works.
4186 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4187 # <limits.h> exists even on freestanding compilers.
4188 # On the NeXT, cc -E runs the code through the compiler's parser,
4189 # not just through cpp. "Syntax error" is here to catch this case.
4190 cat >conftest.$ac_ext <<_ACEOF
4191 /* confdefs.h. */
4192 _ACEOF
4193 cat confdefs.h >>conftest.$ac_ext
4194 cat >>conftest.$ac_ext <<_ACEOF
4195 /* end confdefs.h. */
4196 #ifdef __STDC__
4197 # include <limits.h>
4198 #else
4199 # include <assert.h>
4200 #endif
4201 Syntax error
4202 _ACEOF
4203 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4204 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4205 ac_status=$?
4206 grep -v '^ *+' conftest.er1 >conftest.err
4207 rm -f conftest.er1
4208 cat conftest.err >&5
4209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210 (exit $ac_status); } >/dev/null; then
4211 if test -s conftest.err; then
4212 ac_cpp_err=$ac_c_preproc_warn_flag
4213 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4214 else
4215 ac_cpp_err=
4216 fi
4217 else
4218 ac_cpp_err=yes
4219 fi
4220 if test -z "$ac_cpp_err"; then
4221 :
4222 else
4223 echo "$as_me: failed program was:" >&5
4224 sed 's/^/| /' conftest.$ac_ext >&5
4225
4226 # Broken: fails on valid input.
4227 continue
4228 fi
4229 rm -f conftest.err conftest.$ac_ext
4230
4231 # OK, works on sane cases. Now check whether non-existent headers
4232 # can be detected and how.
4233 cat >conftest.$ac_ext <<_ACEOF
4234 /* confdefs.h. */
4235 _ACEOF
4236 cat confdefs.h >>conftest.$ac_ext
4237 cat >>conftest.$ac_ext <<_ACEOF
4238 /* end confdefs.h. */
4239 #include <ac_nonexistent.h>
4240 _ACEOF
4241 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4242 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4243 ac_status=$?
4244 grep -v '^ *+' conftest.er1 >conftest.err
4245 rm -f conftest.er1
4246 cat conftest.err >&5
4247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248 (exit $ac_status); } >/dev/null; then
4249 if test -s conftest.err; then
4250 ac_cpp_err=$ac_c_preproc_warn_flag
4251 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4252 else
4253 ac_cpp_err=
4254 fi
4255 else
4256 ac_cpp_err=yes
4257 fi
4258 if test -z "$ac_cpp_err"; then
4259 # Broken: success on invalid input.
4260 continue
4261 else
4262 echo "$as_me: failed program was:" >&5
4263 sed 's/^/| /' conftest.$ac_ext >&5
4264
4265 # Passes both tests.
4266 ac_preproc_ok=:
4267 break
4268 fi
4269 rm -f conftest.err conftest.$ac_ext
4270
4271 done
4272 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4273 rm -f conftest.err conftest.$ac_ext
4274 if $ac_preproc_ok; then
4275 break
4276 fi
4277
4278 done
4279 ac_cv_prog_CPP=$CPP
4280
4281 fi
4282 CPP=$ac_cv_prog_CPP
4283 else
4284 ac_cv_prog_CPP=$CPP
4285 fi
4286 echo "$as_me:$LINENO: result: $CPP" >&5
4287 echo "${ECHO_T}$CPP" >&6
4288 ac_preproc_ok=false
4289 for ac_c_preproc_warn_flag in '' yes
4290 do
4291 # Use a header file that comes with gcc, so configuring glibc
4292 # with a fresh cross-compiler works.
4293 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4294 # <limits.h> exists even on freestanding compilers.
4295 # On the NeXT, cc -E runs the code through the compiler's parser,
4296 # not just through cpp. "Syntax error" is here to catch this case.
4297 cat >conftest.$ac_ext <<_ACEOF
4298 /* confdefs.h. */
4299 _ACEOF
4300 cat confdefs.h >>conftest.$ac_ext
4301 cat >>conftest.$ac_ext <<_ACEOF
4302 /* end confdefs.h. */
4303 #ifdef __STDC__
4304 # include <limits.h>
4305 #else
4306 # include <assert.h>
4307 #endif
4308 Syntax error
4309 _ACEOF
4310 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4311 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4312 ac_status=$?
4313 grep -v '^ *+' conftest.er1 >conftest.err
4314 rm -f conftest.er1
4315 cat conftest.err >&5
4316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317 (exit $ac_status); } >/dev/null; then
4318 if test -s conftest.err; then
4319 ac_cpp_err=$ac_c_preproc_warn_flag
4320 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4321 else
4322 ac_cpp_err=
4323 fi
4324 else
4325 ac_cpp_err=yes
4326 fi
4327 if test -z "$ac_cpp_err"; then
4328 :
4329 else
4330 echo "$as_me: failed program was:" >&5
4331 sed 's/^/| /' conftest.$ac_ext >&5
4332
4333 # Broken: fails on valid input.
4334 continue
4335 fi
4336 rm -f conftest.err conftest.$ac_ext
4337
4338 # OK, works on sane cases. Now check whether non-existent headers
4339 # can be detected and how.
4340 cat >conftest.$ac_ext <<_ACEOF
4341 /* confdefs.h. */
4342 _ACEOF
4343 cat confdefs.h >>conftest.$ac_ext
4344 cat >>conftest.$ac_ext <<_ACEOF
4345 /* end confdefs.h. */
4346 #include <ac_nonexistent.h>
4347 _ACEOF
4348 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4349 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4350 ac_status=$?
4351 grep -v '^ *+' conftest.er1 >conftest.err
4352 rm -f conftest.er1
4353 cat conftest.err >&5
4354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355 (exit $ac_status); } >/dev/null; then
4356 if test -s conftest.err; then
4357 ac_cpp_err=$ac_c_preproc_warn_flag
4358 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4359 else
4360 ac_cpp_err=
4361 fi
4362 else
4363 ac_cpp_err=yes
4364 fi
4365 if test -z "$ac_cpp_err"; then
4366 # Broken: success on invalid input.
4367 continue
4368 else
4369 echo "$as_me: failed program was:" >&5
4370 sed 's/^/| /' conftest.$ac_ext >&5
4371
4372 # Passes both tests.
4373 ac_preproc_ok=:
4374 break
4375 fi
4376 rm -f conftest.err conftest.$ac_ext
4377
4378 done
4379 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4380 rm -f conftest.err conftest.$ac_ext
4381 if $ac_preproc_ok; then
4382 :
4383 else
4384 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4385 See \`config.log' for more details." >&5
4386 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4387 See \`config.log' for more details." >&2;}
4388 { (exit 1); exit 1; }; }
4389 fi
4390
4391 ac_ext=c
4392 ac_cpp='$CPP $CPPFLAGS'
4393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4396
4397
4398 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4399 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4400 if test "${ac_cv_header_stdc+set}" = set; then
4401 echo $ECHO_N "(cached) $ECHO_C" >&6
4402 else
4403 cat >conftest.$ac_ext <<_ACEOF
4404 /* confdefs.h. */
4405 _ACEOF
4406 cat confdefs.h >>conftest.$ac_ext
4407 cat >>conftest.$ac_ext <<_ACEOF
4408 /* end confdefs.h. */
4409 #include <stdlib.h>
4410 #include <stdarg.h>
4411 #include <string.h>
4412 #include <float.h>
4413
4414 int
4415 main ()
4416 {
4417
4418 ;
4419 return 0;
4420 }
4421 _ACEOF
4422 rm -f conftest.$ac_objext
4423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4424 (eval $ac_compile) 2>conftest.er1
4425 ac_status=$?
4426 grep -v '^ *+' conftest.er1 >conftest.err
4427 rm -f conftest.er1
4428 cat conftest.err >&5
4429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430 (exit $ac_status); } &&
4431 { ac_try='test -z "$ac_c_werror_flag"
4432 || test ! -s conftest.err'
4433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4434 (eval $ac_try) 2>&5
4435 ac_status=$?
4436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4437 (exit $ac_status); }; } &&
4438 { ac_try='test -s conftest.$ac_objext'
4439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4440 (eval $ac_try) 2>&5
4441 ac_status=$?
4442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4443 (exit $ac_status); }; }; then
4444 ac_cv_header_stdc=yes
4445 else
4446 echo "$as_me: failed program was:" >&5
4447 sed 's/^/| /' conftest.$ac_ext >&5
4448
4449 ac_cv_header_stdc=no
4450 fi
4451 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4452
4453 if test $ac_cv_header_stdc = yes; then
4454 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4455 cat >conftest.$ac_ext <<_ACEOF
4456 /* confdefs.h. */
4457 _ACEOF
4458 cat confdefs.h >>conftest.$ac_ext
4459 cat >>conftest.$ac_ext <<_ACEOF
4460 /* end confdefs.h. */
4461 #include <string.h>
4462
4463 _ACEOF
4464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4465 $EGREP "memchr" >/dev/null 2>&1; then
4466 :
4467 else
4468 ac_cv_header_stdc=no
4469 fi
4470 rm -f conftest*
4471
4472 fi
4473
4474 if test $ac_cv_header_stdc = yes; then
4475 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4476 cat >conftest.$ac_ext <<_ACEOF
4477 /* confdefs.h. */
4478 _ACEOF
4479 cat confdefs.h >>conftest.$ac_ext
4480 cat >>conftest.$ac_ext <<_ACEOF
4481 /* end confdefs.h. */
4482 #include <stdlib.h>
4483
4484 _ACEOF
4485 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4486 $EGREP "free" >/dev/null 2>&1; then
4487 :
4488 else
4489 ac_cv_header_stdc=no
4490 fi
4491 rm -f conftest*
4492
4493 fi
4494
4495 if test $ac_cv_header_stdc = yes; then
4496 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4497 if test "$cross_compiling" = yes; then
4498 :
4499 else
4500 cat >conftest.$ac_ext <<_ACEOF
4501 /* confdefs.h. */
4502 _ACEOF
4503 cat confdefs.h >>conftest.$ac_ext
4504 cat >>conftest.$ac_ext <<_ACEOF
4505 /* end confdefs.h. */
4506 #include <ctype.h>
4507 #if ((' ' & 0x0FF) == 0x020)
4508 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4509 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4510 #else
4511 # define ISLOWER(c) \
4512 (('a' <= (c) && (c) <= 'i') \
4513 || ('j' <= (c) && (c) <= 'r') \
4514 || ('s' <= (c) && (c) <= 'z'))
4515 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4516 #endif
4517
4518 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4519 int
4520 main ()
4521 {
4522 int i;
4523 for (i = 0; i < 256; i++)
4524 if (XOR (islower (i), ISLOWER (i))
4525 || toupper (i) != TOUPPER (i))
4526 exit(2);
4527 exit (0);
4528 }
4529 _ACEOF
4530 rm -f conftest$ac_exeext
4531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4532 (eval $ac_link) 2>&5
4533 ac_status=$?
4534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4535 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4537 (eval $ac_try) 2>&5
4538 ac_status=$?
4539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540 (exit $ac_status); }; }; then
4541 :
4542 else
4543 echo "$as_me: program exited with status $ac_status" >&5
4544 echo "$as_me: failed program was:" >&5
4545 sed 's/^/| /' conftest.$ac_ext >&5
4546
4547 ( exit $ac_status )
4548 ac_cv_header_stdc=no
4549 fi
4550 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4551 fi
4552 fi
4553 fi
4554 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4555 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4556 if test $ac_cv_header_stdc = yes; then
4557
4558 cat >>confdefs.h <<\_ACEOF
4559 #define STDC_HEADERS 1
4560 _ACEOF
4561
4562 fi
4563
4564 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4575 inttypes.h stdint.h unistd.h
4576 do
4577 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4578 echo "$as_me:$LINENO: checking for $ac_header" >&5
4579 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4580 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4581 echo $ECHO_N "(cached) $ECHO_C" >&6
4582 else
4583 cat >conftest.$ac_ext <<_ACEOF
4584 /* confdefs.h. */
4585 _ACEOF
4586 cat confdefs.h >>conftest.$ac_ext
4587 cat >>conftest.$ac_ext <<_ACEOF
4588 /* end confdefs.h. */
4589 $ac_includes_default
4590
4591 #include <$ac_header>
4592 _ACEOF
4593 rm -f conftest.$ac_objext
4594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4595 (eval $ac_compile) 2>conftest.er1
4596 ac_status=$?
4597 grep -v '^ *+' conftest.er1 >conftest.err
4598 rm -f conftest.er1
4599 cat conftest.err >&5
4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601 (exit $ac_status); } &&
4602 { ac_try='test -z "$ac_c_werror_flag"
4603 || test ! -s conftest.err'
4604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4605 (eval $ac_try) 2>&5
4606 ac_status=$?
4607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608 (exit $ac_status); }; } &&
4609 { ac_try='test -s conftest.$ac_objext'
4610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4611 (eval $ac_try) 2>&5
4612 ac_status=$?
4613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614 (exit $ac_status); }; }; then
4615 eval "$as_ac_Header=yes"
4616 else
4617 echo "$as_me: failed program was:" >&5
4618 sed 's/^/| /' conftest.$ac_ext >&5
4619
4620 eval "$as_ac_Header=no"
4621 fi
4622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4623 fi
4624 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4625 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4626 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4627 cat >>confdefs.h <<_ACEOF
4628 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4629 _ACEOF
4630
4631 fi
4632
4633 done
4634
4635
4636
4637 for ac_header in dlfcn.h
4638 do
4639 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4640 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4641 echo "$as_me:$LINENO: checking for $ac_header" >&5
4642 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4643 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4644 echo $ECHO_N "(cached) $ECHO_C" >&6
4645 fi
4646 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4647 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4648 else
4649 # Is the header compilable?
4650 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4651 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4652 cat >conftest.$ac_ext <<_ACEOF
4653 /* confdefs.h. */
4654 _ACEOF
4655 cat confdefs.h >>conftest.$ac_ext
4656 cat >>conftest.$ac_ext <<_ACEOF
4657 /* end confdefs.h. */
4658 $ac_includes_default
4659 #include <$ac_header>
4660 _ACEOF
4661 rm -f conftest.$ac_objext
4662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4663 (eval $ac_compile) 2>conftest.er1
4664 ac_status=$?
4665 grep -v '^ *+' conftest.er1 >conftest.err
4666 rm -f conftest.er1
4667 cat conftest.err >&5
4668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669 (exit $ac_status); } &&
4670 { ac_try='test -z "$ac_c_werror_flag"
4671 || test ! -s conftest.err'
4672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4673 (eval $ac_try) 2>&5
4674 ac_status=$?
4675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4676 (exit $ac_status); }; } &&
4677 { ac_try='test -s conftest.$ac_objext'
4678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4679 (eval $ac_try) 2>&5
4680 ac_status=$?
4681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682 (exit $ac_status); }; }; then
4683 ac_header_compiler=yes
4684 else
4685 echo "$as_me: failed program was:" >&5
4686 sed 's/^/| /' conftest.$ac_ext >&5
4687
4688 ac_header_compiler=no
4689 fi
4690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4691 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4692 echo "${ECHO_T}$ac_header_compiler" >&6
4693
4694 # Is the header present?
4695 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4696 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4697 cat >conftest.$ac_ext <<_ACEOF
4698 /* confdefs.h. */
4699 _ACEOF
4700 cat confdefs.h >>conftest.$ac_ext
4701 cat >>conftest.$ac_ext <<_ACEOF
4702 /* end confdefs.h. */
4703 #include <$ac_header>
4704 _ACEOF
4705 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4706 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4707 ac_status=$?
4708 grep -v '^ *+' conftest.er1 >conftest.err
4709 rm -f conftest.er1
4710 cat conftest.err >&5
4711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4712 (exit $ac_status); } >/dev/null; then
4713 if test -s conftest.err; then
4714 ac_cpp_err=$ac_c_preproc_warn_flag
4715 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4716 else
4717 ac_cpp_err=
4718 fi
4719 else
4720 ac_cpp_err=yes
4721 fi
4722 if test -z "$ac_cpp_err"; then
4723 ac_header_preproc=yes
4724 else
4725 echo "$as_me: failed program was:" >&5
4726 sed 's/^/| /' conftest.$ac_ext >&5
4727
4728 ac_header_preproc=no
4729 fi
4730 rm -f conftest.err conftest.$ac_ext
4731 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4732 echo "${ECHO_T}$ac_header_preproc" >&6
4733
4734 # So? What about this header?
4735 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4736 yes:no: )
4737 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4738 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4739 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4740 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4741 ac_header_preproc=yes
4742 ;;
4743 no:yes:* )
4744 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4745 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4746 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4747 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4748 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4749 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4750 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4751 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4752 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4753 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4754 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4755 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4756 (
4757 cat <<\_ASBOX
4758 ## ------------------------------------------ ##
4759 ## Report this to the AC_PACKAGE_NAME lists. ##
4760 ## ------------------------------------------ ##
4761 _ASBOX
4762 ) |
4763 sed "s/^/$as_me: WARNING: /" >&2
4764 ;;
4765 esac
4766 echo "$as_me:$LINENO: checking for $ac_header" >&5
4767 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4768 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4769 echo $ECHO_N "(cached) $ECHO_C" >&6
4770 else
4771 eval "$as_ac_Header=\$ac_header_preproc"
4772 fi
4773 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4774 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4775
4776 fi
4777 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4778 cat >>confdefs.h <<_ACEOF
4779 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4780 _ACEOF
4781
4782 fi
4783
4784 done
4785
4786 ac_ext=cc
4787 ac_cpp='$CXXCPP $CPPFLAGS'
4788 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4789 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4790 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4791 if test -n "$ac_tool_prefix"; then
4792 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4793 do
4794 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4795 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4796 echo "$as_me:$LINENO: checking for $ac_word" >&5
4797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4798 if test "${ac_cv_prog_CXX+set}" = set; then
4799 echo $ECHO_N "(cached) $ECHO_C" >&6
4800 else
4801 if test -n "$CXX"; then
4802 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4803 else
4804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4805 for as_dir in $PATH
4806 do
4807 IFS=$as_save_IFS
4808 test -z "$as_dir" && as_dir=.
4809 for ac_exec_ext in '' $ac_executable_extensions; do
4810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4811 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4813 break 2
4814 fi
4815 done
4816 done
4817
4818 fi
4819 fi
4820 CXX=$ac_cv_prog_CXX
4821 if test -n "$CXX"; then
4822 echo "$as_me:$LINENO: result: $CXX" >&5
4823 echo "${ECHO_T}$CXX" >&6
4824 else
4825 echo "$as_me:$LINENO: result: no" >&5
4826 echo "${ECHO_T}no" >&6
4827 fi
4828
4829 test -n "$CXX" && break
4830 done
4831 fi
4832 if test -z "$CXX"; then
4833 ac_ct_CXX=$CXX
4834 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4835 do
4836 # Extract the first word of "$ac_prog", so it can be a program name with args.
4837 set dummy $ac_prog; ac_word=$2
4838 echo "$as_me:$LINENO: checking for $ac_word" >&5
4839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4840 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4841 echo $ECHO_N "(cached) $ECHO_C" >&6
4842 else
4843 if test -n "$ac_ct_CXX"; then
4844 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4845 else
4846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4847 for as_dir in $PATH
4848 do
4849 IFS=$as_save_IFS
4850 test -z "$as_dir" && as_dir=.
4851 for ac_exec_ext in '' $ac_executable_extensions; do
4852 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4853 ac_cv_prog_ac_ct_CXX="$ac_prog"
4854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4855 break 2
4856 fi
4857 done
4858 done
4859
4860 fi
4861 fi
4862 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4863 if test -n "$ac_ct_CXX"; then
4864 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4865 echo "${ECHO_T}$ac_ct_CXX" >&6
4866 else
4867 echo "$as_me:$LINENO: result: no" >&5
4868 echo "${ECHO_T}no" >&6
4869 fi
4870
4871 test -n "$ac_ct_CXX" && break
4872 done
4873 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4874
4875 CXX=$ac_ct_CXX
4876 fi
4877
4878
4879 # Provide some information about the compiler.
4880 echo "$as_me:$LINENO:" \
4881 "checking for C++ compiler version" >&5
4882 ac_compiler=`set X $ac_compile; echo $2`
4883 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4884 (eval $ac_compiler --version </dev/null >&5) 2>&5
4885 ac_status=$?
4886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887 (exit $ac_status); }
4888 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4889 (eval $ac_compiler -v </dev/null >&5) 2>&5
4890 ac_status=$?
4891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892 (exit $ac_status); }
4893 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4894 (eval $ac_compiler -V </dev/null >&5) 2>&5
4895 ac_status=$?
4896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897 (exit $ac_status); }
4898
4899 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4900 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4901 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4902 echo $ECHO_N "(cached) $ECHO_C" >&6
4903 else
4904 cat >conftest.$ac_ext <<_ACEOF
4905 /* confdefs.h. */
4906 _ACEOF
4907 cat confdefs.h >>conftest.$ac_ext
4908 cat >>conftest.$ac_ext <<_ACEOF
4909 /* end confdefs.h. */
4910
4911 int
4912 main ()
4913 {
4914 #ifndef __GNUC__
4915 choke me
4916 #endif
4917
4918 ;
4919 return 0;
4920 }
4921 _ACEOF
4922 rm -f conftest.$ac_objext
4923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4924 (eval $ac_compile) 2>conftest.er1
4925 ac_status=$?
4926 grep -v '^ *+' conftest.er1 >conftest.err
4927 rm -f conftest.er1
4928 cat conftest.err >&5
4929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4930 (exit $ac_status); } &&
4931 { ac_try='test -z "$ac_cxx_werror_flag"
4932 || test ! -s conftest.err'
4933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4934 (eval $ac_try) 2>&5
4935 ac_status=$?
4936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4937 (exit $ac_status); }; } &&
4938 { ac_try='test -s conftest.$ac_objext'
4939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4940 (eval $ac_try) 2>&5
4941 ac_status=$?
4942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943 (exit $ac_status); }; }; then
4944 ac_compiler_gnu=yes
4945 else
4946 echo "$as_me: failed program was:" >&5
4947 sed 's/^/| /' conftest.$ac_ext >&5
4948
4949 ac_compiler_gnu=no
4950 fi
4951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4952 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4953
4954 fi
4955 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4956 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4957 GXX=`test $ac_compiler_gnu = yes && echo yes`
4958 ac_test_CXXFLAGS=${CXXFLAGS+set}
4959 ac_save_CXXFLAGS=$CXXFLAGS
4960 CXXFLAGS="-g"
4961 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4962 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4963 if test "${ac_cv_prog_cxx_g+set}" = set; then
4964 echo $ECHO_N "(cached) $ECHO_C" >&6
4965 else
4966 cat >conftest.$ac_ext <<_ACEOF
4967 /* confdefs.h. */
4968 _ACEOF
4969 cat confdefs.h >>conftest.$ac_ext
4970 cat >>conftest.$ac_ext <<_ACEOF
4971 /* end confdefs.h. */
4972
4973 int
4974 main ()
4975 {
4976
4977 ;
4978 return 0;
4979 }
4980 _ACEOF
4981 rm -f conftest.$ac_objext
4982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4983 (eval $ac_compile) 2>conftest.er1
4984 ac_status=$?
4985 grep -v '^ *+' conftest.er1 >conftest.err
4986 rm -f conftest.er1
4987 cat conftest.err >&5
4988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989 (exit $ac_status); } &&
4990 { ac_try='test -z "$ac_cxx_werror_flag"
4991 || test ! -s conftest.err'
4992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4993 (eval $ac_try) 2>&5
4994 ac_status=$?
4995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996 (exit $ac_status); }; } &&
4997 { ac_try='test -s conftest.$ac_objext'
4998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4999 (eval $ac_try) 2>&5
5000 ac_status=$?
5001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002 (exit $ac_status); }; }; then
5003 ac_cv_prog_cxx_g=yes
5004 else
5005 echo "$as_me: failed program was:" >&5
5006 sed 's/^/| /' conftest.$ac_ext >&5
5007
5008 ac_cv_prog_cxx_g=no
5009 fi
5010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5011 fi
5012 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5013 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5014 if test "$ac_test_CXXFLAGS" = set; then
5015 CXXFLAGS=$ac_save_CXXFLAGS
5016 elif test $ac_cv_prog_cxx_g = yes; then
5017 if test "$GXX" = yes; then
5018 CXXFLAGS="-g -O2"
5019 else
5020 CXXFLAGS="-g"
5021 fi
5022 else
5023 if test "$GXX" = yes; then
5024 CXXFLAGS="-O2"
5025 else
5026 CXXFLAGS=
5027 fi
5028 fi
5029 for ac_declaration in \
5030 '' \
5031 'extern "C" void std::exit (int) throw (); using std::exit;' \
5032 'extern "C" void std::exit (int); using std::exit;' \
5033 'extern "C" void exit (int) throw ();' \
5034 'extern "C" void exit (int);' \
5035 'void exit (int);'
5036 do
5037 cat >conftest.$ac_ext <<_ACEOF
5038 /* confdefs.h. */
5039 _ACEOF
5040 cat confdefs.h >>conftest.$ac_ext
5041 cat >>conftest.$ac_ext <<_ACEOF
5042 /* end confdefs.h. */
5043 $ac_declaration
5044 #include <stdlib.h>
5045 int
5046 main ()
5047 {
5048 exit (42);
5049 ;
5050 return 0;
5051 }
5052 _ACEOF
5053 rm -f conftest.$ac_objext
5054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5055 (eval $ac_compile) 2>conftest.er1
5056 ac_status=$?
5057 grep -v '^ *+' conftest.er1 >conftest.err
5058 rm -f conftest.er1
5059 cat conftest.err >&5
5060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061 (exit $ac_status); } &&
5062 { ac_try='test -z "$ac_cxx_werror_flag"
5063 || test ! -s conftest.err'
5064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5065 (eval $ac_try) 2>&5
5066 ac_status=$?
5067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068 (exit $ac_status); }; } &&
5069 { ac_try='test -s conftest.$ac_objext'
5070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5071 (eval $ac_try) 2>&5
5072 ac_status=$?
5073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074 (exit $ac_status); }; }; then
5075 :
5076 else
5077 echo "$as_me: failed program was:" >&5
5078 sed 's/^/| /' conftest.$ac_ext >&5
5079
5080 continue
5081 fi
5082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5083 cat >conftest.$ac_ext <<_ACEOF
5084 /* confdefs.h. */
5085 _ACEOF
5086 cat confdefs.h >>conftest.$ac_ext
5087 cat >>conftest.$ac_ext <<_ACEOF
5088 /* end confdefs.h. */
5089 $ac_declaration
5090 int
5091 main ()
5092 {
5093 exit (42);
5094 ;
5095 return 0;
5096 }
5097 _ACEOF
5098 rm -f conftest.$ac_objext
5099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5100 (eval $ac_compile) 2>conftest.er1
5101 ac_status=$?
5102 grep -v '^ *+' conftest.er1 >conftest.err
5103 rm -f conftest.er1
5104 cat conftest.err >&5
5105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106 (exit $ac_status); } &&
5107 { ac_try='test -z "$ac_cxx_werror_flag"
5108 || test ! -s conftest.err'
5109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5110 (eval $ac_try) 2>&5
5111 ac_status=$?
5112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5113 (exit $ac_status); }; } &&
5114 { ac_try='test -s conftest.$ac_objext'
5115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5116 (eval $ac_try) 2>&5
5117 ac_status=$?
5118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119 (exit $ac_status); }; }; then
5120 break
5121 else
5122 echo "$as_me: failed program was:" >&5
5123 sed 's/^/| /' conftest.$ac_ext >&5
5124
5125 fi
5126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5127 done
5128 rm -f conftest*
5129 if test -n "$ac_declaration"; then
5130 echo '#ifdef __cplusplus' >>confdefs.h
5131 echo $ac_declaration >>confdefs.h
5132 echo '#endif' >>confdefs.h
5133 fi
5134
5135 ac_ext=cc
5136 ac_cpp='$CXXCPP $CPPFLAGS'
5137 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5138 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5139 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5140
5141 depcc="$CXX" am_compiler_list=
5142
5143 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5144 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5145 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5146 echo $ECHO_N "(cached) $ECHO_C" >&6
5147 else
5148 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5149 # We make a subdir and do the tests there. Otherwise we can end up
5150 # making bogus files that we don't know about and never remove. For
5151 # instance it was reported that on HP-UX the gcc test will end up
5152 # making a dummy file named `D' -- because `-MD' means `put the output
5153 # in D'.
5154 mkdir conftest.dir
5155 # Copy depcomp to subdir because otherwise we won't find it if we're
5156 # using a relative directory.
5157 cp "$am_depcomp" conftest.dir
5158 cd conftest.dir
5159 # We will build objects and dependencies in a subdirectory because
5160 # it helps to detect inapplicable dependency modes. For instance
5161 # both Tru64's cc and ICC support -MD to output dependencies as a
5162 # side effect of compilation, but ICC will put the dependencies in
5163 # the current directory while Tru64 will put them in the object
5164 # directory.
5165 mkdir sub
5166
5167 am_cv_CXX_dependencies_compiler_type=none
5168 if test "$am_compiler_list" = ""; then
5169 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5170 fi
5171 for depmode in $am_compiler_list; do
5172 # Setup a source with many dependencies, because some compilers
5173 # like to wrap large dependency lists on column 80 (with \), and
5174 # we should not choose a depcomp mode which is confused by this.
5175 #
5176 # We need to recreate these files for each test, as the compiler may
5177 # overwrite some of them when testing with obscure command lines.
5178 # This happens at least with the AIX C compiler.
5179 : > sub/conftest.c
5180 for i in 1 2 3 4 5 6; do
5181 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5182 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5183 # Solaris 8's {/usr,}/bin/sh.
5184 touch sub/conftst$i.h
5185 done
5186 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5187
5188 case $depmode in
5189 nosideeffect)
5190 # after this tag, mechanisms are not by side-effect, so they'll
5191 # only be used when explicitly requested
5192 if test "x$enable_dependency_tracking" = xyes; then
5193 continue
5194 else
5195 break
5196 fi
5197 ;;
5198 none) break ;;
5199 esac
5200 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5201 # mode. It turns out that the SunPro C++ compiler does not properly
5202 # handle `-M -o', and we need to detect this.
5203 if depmode=$depmode \
5204 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5205 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5206 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5207 >/dev/null 2>conftest.err &&
5208 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5209 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5210 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5211 # icc doesn't choke on unknown options, it will just issue warnings
5212 # or remarks (even with -Werror). So we grep stderr for any message
5213 # that says an option was ignored or not supported.
5214 # When given -MP, icc 7.0 and 7.1 complain thusly:
5215 # icc: Command line warning: ignoring option '-M'; no argument required
5216 # The diagnosis changed in icc 8.0:
5217 # icc: Command line remark: option '-MP' not supported
5218 if (grep 'ignoring option' conftest.err ||
5219 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5220 am_cv_CXX_dependencies_compiler_type=$depmode
5221 break
5222 fi
5223 fi
5224 done
5225
5226 cd ..
5227 rm -rf conftest.dir
5228 else
5229 am_cv_CXX_dependencies_compiler_type=none
5230 fi
5231
5232 fi
5233 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5234 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5235 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5236
5237
5238
5239 if
5240 test "x$enable_dependency_tracking" != xno \
5241 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5242 am__fastdepCXX_TRUE=
5243 am__fastdepCXX_FALSE='#'
5244 else
5245 am__fastdepCXX_TRUE='#'
5246 am__fastdepCXX_FALSE=
5247 fi
5248
5249
5250
5251
5252 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5253 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5254 (test "X$CXX" != "Xg++"))) ; then
5255 ac_ext=cc
5256 ac_cpp='$CXXCPP $CPPFLAGS'
5257 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5258 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5259 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5260 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5261 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5262 if test -z "$CXXCPP"; then
5263 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5264 echo $ECHO_N "(cached) $ECHO_C" >&6
5265 else
5266 # Double quotes because CXXCPP needs to be expanded
5267 for CXXCPP in "$CXX -E" "/lib/cpp"
5268 do
5269 ac_preproc_ok=false
5270 for ac_cxx_preproc_warn_flag in '' yes
5271 do
5272 # Use a header file that comes with gcc, so configuring glibc
5273 # with a fresh cross-compiler works.
5274 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5275 # <limits.h> exists even on freestanding compilers.
5276 # On the NeXT, cc -E runs the code through the compiler's parser,
5277 # not just through cpp. "Syntax error" is here to catch this case.
5278 cat >conftest.$ac_ext <<_ACEOF
5279 /* confdefs.h. */
5280 _ACEOF
5281 cat confdefs.h >>conftest.$ac_ext
5282 cat >>conftest.$ac_ext <<_ACEOF
5283 /* end confdefs.h. */
5284 #ifdef __STDC__
5285 # include <limits.h>
5286 #else
5287 # include <assert.h>
5288 #endif
5289 Syntax error
5290 _ACEOF
5291 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5292 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5293 ac_status=$?
5294 grep -v '^ *+' conftest.er1 >conftest.err
5295 rm -f conftest.er1
5296 cat conftest.err >&5
5297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298 (exit $ac_status); } >/dev/null; then
5299 if test -s conftest.err; then
5300 ac_cpp_err=$ac_cxx_preproc_warn_flag
5301 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5302 else
5303 ac_cpp_err=
5304 fi
5305 else
5306 ac_cpp_err=yes
5307 fi
5308 if test -z "$ac_cpp_err"; then
5309 :
5310 else
5311 echo "$as_me: failed program was:" >&5
5312 sed 's/^/| /' conftest.$ac_ext >&5
5313
5314 # Broken: fails on valid input.
5315 continue
5316 fi
5317 rm -f conftest.err conftest.$ac_ext
5318
5319 # OK, works on sane cases. Now check whether non-existent headers
5320 # can be detected and how.
5321 cat >conftest.$ac_ext <<_ACEOF
5322 /* confdefs.h. */
5323 _ACEOF
5324 cat confdefs.h >>conftest.$ac_ext
5325 cat >>conftest.$ac_ext <<_ACEOF
5326 /* end confdefs.h. */
5327 #include <ac_nonexistent.h>
5328 _ACEOF
5329 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5330 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5331 ac_status=$?
5332 grep -v '^ *+' conftest.er1 >conftest.err
5333 rm -f conftest.er1
5334 cat conftest.err >&5
5335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336 (exit $ac_status); } >/dev/null; then
5337 if test -s conftest.err; then
5338 ac_cpp_err=$ac_cxx_preproc_warn_flag
5339 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5340 else
5341 ac_cpp_err=
5342 fi
5343 else
5344 ac_cpp_err=yes
5345 fi
5346 if test -z "$ac_cpp_err"; then
5347 # Broken: success on invalid input.
5348 continue
5349 else
5350 echo "$as_me: failed program was:" >&5
5351 sed 's/^/| /' conftest.$ac_ext >&5
5352
5353 # Passes both tests.
5354 ac_preproc_ok=:
5355 break
5356 fi
5357 rm -f conftest.err conftest.$ac_ext
5358
5359 done
5360 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5361 rm -f conftest.err conftest.$ac_ext
5362 if $ac_preproc_ok; then
5363 break
5364 fi
5365
5366 done
5367 ac_cv_prog_CXXCPP=$CXXCPP
5368
5369 fi
5370 CXXCPP=$ac_cv_prog_CXXCPP
5371 else
5372 ac_cv_prog_CXXCPP=$CXXCPP
5373 fi
5374 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5375 echo "${ECHO_T}$CXXCPP" >&6
5376 ac_preproc_ok=false
5377 for ac_cxx_preproc_warn_flag in '' yes
5378 do
5379 # Use a header file that comes with gcc, so configuring glibc
5380 # with a fresh cross-compiler works.
5381 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5382 # <limits.h> exists even on freestanding compilers.
5383 # On the NeXT, cc -E runs the code through the compiler's parser,
5384 # not just through cpp. "Syntax error" is here to catch this case.
5385 cat >conftest.$ac_ext <<_ACEOF
5386 /* confdefs.h. */
5387 _ACEOF
5388 cat confdefs.h >>conftest.$ac_ext
5389 cat >>conftest.$ac_ext <<_ACEOF
5390 /* end confdefs.h. */
5391 #ifdef __STDC__
5392 # include <limits.h>
5393 #else
5394 # include <assert.h>
5395 #endif
5396 Syntax error
5397 _ACEOF
5398 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5399 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5400 ac_status=$?
5401 grep -v '^ *+' conftest.er1 >conftest.err
5402 rm -f conftest.er1
5403 cat conftest.err >&5
5404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405 (exit $ac_status); } >/dev/null; then
5406 if test -s conftest.err; then
5407 ac_cpp_err=$ac_cxx_preproc_warn_flag
5408 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5409 else
5410 ac_cpp_err=
5411 fi
5412 else
5413 ac_cpp_err=yes
5414 fi
5415 if test -z "$ac_cpp_err"; then
5416 :
5417 else
5418 echo "$as_me: failed program was:" >&5
5419 sed 's/^/| /' conftest.$ac_ext >&5
5420
5421 # Broken: fails on valid input.
5422 continue
5423 fi
5424 rm -f conftest.err conftest.$ac_ext
5425
5426 # OK, works on sane cases. Now check whether non-existent headers
5427 # can be detected and how.
5428 cat >conftest.$ac_ext <<_ACEOF
5429 /* confdefs.h. */
5430 _ACEOF
5431 cat confdefs.h >>conftest.$ac_ext
5432 cat >>conftest.$ac_ext <<_ACEOF
5433 /* end confdefs.h. */
5434 #include <ac_nonexistent.h>
5435 _ACEOF
5436 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5437 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5438 ac_status=$?
5439 grep -v '^ *+' conftest.er1 >conftest.err
5440 rm -f conftest.er1
5441 cat conftest.err >&5
5442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443 (exit $ac_status); } >/dev/null; then
5444 if test -s conftest.err; then
5445 ac_cpp_err=$ac_cxx_preproc_warn_flag
5446 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5447 else
5448 ac_cpp_err=
5449 fi
5450 else
5451 ac_cpp_err=yes
5452 fi
5453 if test -z "$ac_cpp_err"; then
5454 # Broken: success on invalid input.
5455 continue
5456 else
5457 echo "$as_me: failed program was:" >&5
5458 sed 's/^/| /' conftest.$ac_ext >&5
5459
5460 # Passes both tests.
5461 ac_preproc_ok=:
5462 break
5463 fi
5464 rm -f conftest.err conftest.$ac_ext
5465
5466 done
5467 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5468 rm -f conftest.err conftest.$ac_ext
5469 if $ac_preproc_ok; then
5470 :
5471 else
5472 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5473 See \`config.log' for more details." >&5
5474 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5475 See \`config.log' for more details." >&2;}
5476 { (exit 1); exit 1; }; }
5477 fi
5478
5479 ac_ext=cc
5480 ac_cpp='$CXXCPP $CPPFLAGS'
5481 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5482 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5483 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5484
5485 fi
5486
5487
5488 ac_ext=f
5489 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5490 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5491 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5492 if test -n "$ac_tool_prefix"; then
5493 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5494 do
5495 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5496 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5497 echo "$as_me:$LINENO: checking for $ac_word" >&5
5498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5499 if test "${ac_cv_prog_F77+set}" = set; then
5500 echo $ECHO_N "(cached) $ECHO_C" >&6
5501 else
5502 if test -n "$F77"; then
5503 ac_cv_prog_F77="$F77" # Let the user override the test.
5504 else
5505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5506 for as_dir in $PATH
5507 do
5508 IFS=$as_save_IFS
5509 test -z "$as_dir" && as_dir=.
5510 for ac_exec_ext in '' $ac_executable_extensions; do
5511 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5512 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5514 break 2
5515 fi
5516 done
5517 done
5518
5519 fi
5520 fi
5521 F77=$ac_cv_prog_F77
5522 if test -n "$F77"; then
5523 echo "$as_me:$LINENO: result: $F77" >&5
5524 echo "${ECHO_T}$F77" >&6
5525 else
5526 echo "$as_me:$LINENO: result: no" >&5
5527 echo "${ECHO_T}no" >&6
5528 fi
5529
5530 test -n "$F77" && break
5531 done
5532 fi
5533 if test -z "$F77"; then
5534 ac_ct_F77=$F77
5535 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5536 do
5537 # Extract the first word of "$ac_prog", so it can be a program name with args.
5538 set dummy $ac_prog; ac_word=$2
5539 echo "$as_me:$LINENO: checking for $ac_word" >&5
5540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5541 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5542 echo $ECHO_N "(cached) $ECHO_C" >&6
5543 else
5544 if test -n "$ac_ct_F77"; then
5545 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5546 else
5547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5548 for as_dir in $PATH
5549 do
5550 IFS=$as_save_IFS
5551 test -z "$as_dir" && as_dir=.
5552 for ac_exec_ext in '' $ac_executable_extensions; do
5553 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5554 ac_cv_prog_ac_ct_F77="$ac_prog"
5555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5556 break 2
5557 fi
5558 done
5559 done
5560
5561 fi
5562 fi
5563 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5564 if test -n "$ac_ct_F77"; then
5565 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5566 echo "${ECHO_T}$ac_ct_F77" >&6
5567 else
5568 echo "$as_me:$LINENO: result: no" >&5
5569 echo "${ECHO_T}no" >&6
5570 fi
5571
5572 test -n "$ac_ct_F77" && break
5573 done
5574
5575 F77=$ac_ct_F77
5576 fi
5577
5578
5579 # Provide some information about the compiler.
5580 echo "$as_me:5580:" \
5581 "checking for Fortran 77 compiler version" >&5
5582 ac_compiler=`set X $ac_compile; echo $2`
5583 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5584 (eval $ac_compiler --version </dev/null >&5) 2>&5
5585 ac_status=$?
5586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587 (exit $ac_status); }
5588 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5589 (eval $ac_compiler -v </dev/null >&5) 2>&5
5590 ac_status=$?
5591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592 (exit $ac_status); }
5593 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5594 (eval $ac_compiler -V </dev/null >&5) 2>&5
5595 ac_status=$?
5596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597 (exit $ac_status); }
5598 rm -f a.out
5599
5600 # If we don't use `.F' as extension, the preprocessor is not run on the
5601 # input file. (Note that this only needs to work for GNU compilers.)
5602 ac_save_ext=$ac_ext
5603 ac_ext=F
5604 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5605 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5606 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5607 echo $ECHO_N "(cached) $ECHO_C" >&6
5608 else
5609 cat >conftest.$ac_ext <<_ACEOF
5610 program main
5611 #ifndef __GNUC__
5612 choke me
5613 #endif
5614
5615 end
5616 _ACEOF
5617 rm -f conftest.$ac_objext
5618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5619 (eval $ac_compile) 2>conftest.er1
5620 ac_status=$?
5621 grep -v '^ *+' conftest.er1 >conftest.err
5622 rm -f conftest.er1
5623 cat conftest.err >&5
5624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5625 (exit $ac_status); } &&
5626 { ac_try='test -z "$ac_f77_werror_flag"
5627 || test ! -s conftest.err'
5628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5629 (eval $ac_try) 2>&5
5630 ac_status=$?
5631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632 (exit $ac_status); }; } &&
5633 { ac_try='test -s conftest.$ac_objext'
5634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5635 (eval $ac_try) 2>&5
5636 ac_status=$?
5637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638 (exit $ac_status); }; }; then
5639 ac_compiler_gnu=yes
5640 else
5641 echo "$as_me: failed program was:" >&5
5642 sed 's/^/| /' conftest.$ac_ext >&5
5643
5644 ac_compiler_gnu=no
5645 fi
5646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5647 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5648
5649 fi
5650 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5651 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5652 ac_ext=$ac_save_ext
5653 ac_test_FFLAGS=${FFLAGS+set}
5654 ac_save_FFLAGS=$FFLAGS
5655 FFLAGS=
5656 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5657 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5658 if test "${ac_cv_prog_f77_g+set}" = set; then
5659 echo $ECHO_N "(cached) $ECHO_C" >&6
5660 else
5661 FFLAGS=-g
5662 cat >conftest.$ac_ext <<_ACEOF
5663 program main
5664
5665 end
5666 _ACEOF
5667 rm -f conftest.$ac_objext
5668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5669 (eval $ac_compile) 2>conftest.er1
5670 ac_status=$?
5671 grep -v '^ *+' conftest.er1 >conftest.err
5672 rm -f conftest.er1
5673 cat conftest.err >&5
5674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675 (exit $ac_status); } &&
5676 { ac_try='test -z "$ac_f77_werror_flag"
5677 || test ! -s conftest.err'
5678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5679 (eval $ac_try) 2>&5
5680 ac_status=$?
5681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682 (exit $ac_status); }; } &&
5683 { ac_try='test -s conftest.$ac_objext'
5684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5685 (eval $ac_try) 2>&5
5686 ac_status=$?
5687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688 (exit $ac_status); }; }; then
5689 ac_cv_prog_f77_g=yes
5690 else
5691 echo "$as_me: failed program was:" >&5
5692 sed 's/^/| /' conftest.$ac_ext >&5
5693
5694 ac_cv_prog_f77_g=no
5695 fi
5696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5697
5698 fi
5699 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5700 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5701 if test "$ac_test_FFLAGS" = set; then
5702 FFLAGS=$ac_save_FFLAGS
5703 elif test $ac_cv_prog_f77_g = yes; then
5704 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5705 FFLAGS="-g -O2"
5706 else
5707 FFLAGS="-g"
5708 fi
5709 else
5710 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5711 FFLAGS="-O2"
5712 else
5713 FFLAGS=
5714 fi
5715 fi
5716
5717 G77=`test $ac_compiler_gnu = yes && echo yes`
5718 ac_ext=c
5719 ac_cpp='$CPP $CPPFLAGS'
5720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5723
5724
5725
5726 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5727
5728 # find the maximum length of command line arguments
5729 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5730 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5731 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5732 echo $ECHO_N "(cached) $ECHO_C" >&6
5733 else
5734 i=0
5735 teststring="ABCD"
5736
5737 case $build_os in
5738 msdosdjgpp*)
5739 # On DJGPP, this test can blow up pretty badly due to problems in libc
5740 # (any single argument exceeding 2000 bytes causes a buffer overrun
5741 # during glob expansion). Even if it were fixed, the result of this
5742 # check would be larger than it should be.
5743 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5744 ;;
5745
5746 gnu*)
5747 # Under GNU Hurd, this test is not required because there is
5748 # no limit to the length of command line arguments.
5749 # Libtool will interpret -1 as no limit whatsoever
5750 lt_cv_sys_max_cmd_len=-1;
5751 ;;
5752
5753 cygwin* | mingw*)
5754 # On Win9x/ME, this test blows up -- it succeeds, but takes
5755 # about 5 minutes as the teststring grows exponentially.
5756 # Worse, since 9x/ME are not pre-emptively multitasking,
5757 # you end up with a "frozen" computer, even though with patience
5758 # the test eventually succeeds (with a max line length of 256k).
5759 # Instead, let's just punt: use the minimum linelength reported by
5760 # all of the supported platforms: 8192 (on NT/2K/XP).
5761 lt_cv_sys_max_cmd_len=8192;
5762 ;;
5763
5764 amigaos*)
5765 # On AmigaOS with pdksh, this test takes hours, literally.
5766 # So we just punt and use a minimum line length of 8192.
5767 lt_cv_sys_max_cmd_len=8192;
5768 ;;
5769
5770 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5771 # This has been around since 386BSD, at least. Likely further.
5772 if test -x /sbin/sysctl; then
5773 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5774 elif test -x /usr/sbin/sysctl; then
5775 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5776 else
5777 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5778 fi
5779 # And add a safety zone
5780 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5781 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5782 ;;
5783
5784 interix*)
5785 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5786 lt_cv_sys_max_cmd_len=196608
5787 ;;
5788
5789 osf*)
5790 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5791 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5792 # nice to cause kernel panics so lets avoid the loop below.
5793 # First set a reasonable default.
5794 lt_cv_sys_max_cmd_len=16384
5795 #
5796 if test -x /sbin/sysconfig; then
5797 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5798 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5799 esac
5800 fi
5801 ;;
5802 sco3.2v5*)
5803 lt_cv_sys_max_cmd_len=102400
5804 ;;
5805 sysv5* | sco5v6* | sysv4.2uw2*)
5806 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5807 if test -n "$kargmax"; then
5808 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5809 else
5810 lt_cv_sys_max_cmd_len=32768
5811 fi
5812 ;;
5813 *)
5814 # If test is not a shell built-in, we'll probably end up computing a
5815 # maximum length that is only half of the actual maximum length, but
5816 # we can't tell.
5817 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5818 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5819 = "XX$teststring") >/dev/null 2>&1 &&
5820 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5821 lt_cv_sys_max_cmd_len=$new_result &&
5822 test $i != 17 # 1/2 MB should be enough
5823 do
5824 i=`expr $i + 1`
5825 teststring=$teststring$teststring
5826 done
5827 teststring=
5828 # Add a significant safety factor because C++ compilers can tack on massive
5829 # amounts of additional arguments before passing them to the linker.
5830 # It appears as though 1/2 is a usable value.
5831 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5832 ;;
5833 esac
5834
5835 fi
5836
5837 if test -n $lt_cv_sys_max_cmd_len ; then
5838 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5839 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5840 else
5841 echo "$as_me:$LINENO: result: none" >&5
5842 echo "${ECHO_T}none" >&6
5843 fi
5844
5845
5846
5847
5848 # Check for command to grab the raw symbol name followed by C symbol from nm.
5849 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5850 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5851 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5852 echo $ECHO_N "(cached) $ECHO_C" >&6
5853 else
5854
5855 # These are sane defaults that work on at least a few old systems.
5856 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5857
5858 # Character class describing NM global symbol codes.
5859 symcode='[BCDEGRST]'
5860
5861 # Regexp to match symbols that can be accessed directly from C.
5862 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5863
5864 # Transform an extracted symbol line into a proper C declaration
5865 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5866
5867 # Transform an extracted symbol line into symbol name and symbol address
5868 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'"
5869
5870 # Define system-specific variables.
5871 case $host_os in
5872 aix*)
5873 symcode='[BCDT]'
5874 ;;
5875 cygwin* | mingw* | pw32*)
5876 symcode='[ABCDGISTW]'
5877 ;;
5878 hpux*) # Its linker distinguishes data from code symbols
5879 if test "$host_cpu" = ia64; then
5880 symcode='[ABCDEGRST]'
5881 fi
5882 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5883 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'"
5884 ;;
5885 linux*)
5886 if test "$host_cpu" = ia64; then
5887 symcode='[ABCDGIRSTW]'
5888 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5889 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'"
5890 fi
5891 ;;
5892 irix* | nonstopux*)
5893 symcode='[BCDEGRST]'
5894 ;;
5895 osf*)
5896 symcode='[BCDEGQRST]'
5897 ;;
5898 solaris*)
5899 symcode='[BDRT]'
5900 ;;
5901 sco3.2v5*)
5902 symcode='[DT]'
5903 ;;
5904 sysv4.2uw2*)
5905 symcode='[DT]'
5906 ;;
5907 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5908 symcode='[ABDT]'
5909 ;;
5910 sysv4)
5911 symcode='[DFNSTU]'
5912 ;;
5913 esac
5914
5915 # Handle CRLF in mingw tool chain
5916 opt_cr=
5917 case $build_os in
5918 mingw*)
5919 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5920 ;;
5921 esac
5922
5923 # If we're using GNU nm, then use its standard symbol codes.
5924 case `$NM -V 2>&1` in
5925 *GNU* | *'with BFD'*)
5926 symcode='[ABCDGIRSTW]' ;;
5927 esac
5928
5929 # Try without a prefix undercore, then with it.
5930 for ac_symprfx in "" "_"; do
5931
5932 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5933 symxfrm="\\1 $ac_symprfx\\2 \\2"
5934
5935 # Write the raw and C identifiers.
5936 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5937
5938 # Check to see that the pipe works correctly.
5939 pipe_works=no
5940
5941 rm -f conftest*
5942 cat > conftest.$ac_ext <<EOF
5943 #ifdef __cplusplus
5944 extern "C" {
5945 #endif
5946 char nm_test_var;
5947 void nm_test_func(){}
5948 #ifdef __cplusplus
5949 }
5950 #endif
5951 int main(){nm_test_var='a';nm_test_func();return(0);}
5952 EOF
5953
5954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5955 (eval $ac_compile) 2>&5
5956 ac_status=$?
5957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958 (exit $ac_status); }; then
5959 # Now try to grab the symbols.
5960 nlist=conftest.nm
5961 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5962 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5963 ac_status=$?
5964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965 (exit $ac_status); } && test -s "$nlist"; then
5966 # Try sorting and uniquifying the output.
5967 if sort "$nlist" | uniq > "$nlist"T; then
5968 mv -f "$nlist"T "$nlist"
5969 else
5970 rm -f "$nlist"T
5971 fi
5972
5973 # Make sure that we snagged all the symbols we need.
5974 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5975 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5976 cat <<EOF > conftest.$ac_ext
5977 #ifdef __cplusplus
5978 extern "C" {
5979 #endif
5980
5981 EOF
5982 # Now generate the symbol file.
5983 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5984
5985 cat <<EOF >> conftest.$ac_ext
5986 #if defined (__STDC__) && __STDC__
5987 # define lt_ptr_t void *
5988 #else
5989 # define lt_ptr_t char *
5990 # define const
5991 #endif
5992
5993 /* The mapping between symbol names and symbols. */
5994 const struct {
5995 const char *name;
5996 lt_ptr_t address;
5997 }
5998 lt_preloaded_symbols[] =
5999 {
6000 EOF
6001 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6002 cat <<\EOF >> conftest.$ac_ext
6003 {0, (lt_ptr_t) 0}
6004 };
6005
6006 #ifdef __cplusplus
6007 }
6008 #endif
6009 EOF
6010 # Now try linking the two files.
6011 mv conftest.$ac_objext conftstm.$ac_objext
6012 lt_save_LIBS="$LIBS"
6013 lt_save_CFLAGS="$CFLAGS"
6014 LIBS="conftstm.$ac_objext"
6015 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6017 (eval $ac_link) 2>&5
6018 ac_status=$?
6019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6021 pipe_works=yes
6022 fi
6023 LIBS="$lt_save_LIBS"
6024 CFLAGS="$lt_save_CFLAGS"
6025 else
6026 echo "cannot find nm_test_func in $nlist" >&5
6027 fi
6028 else
6029 echo "cannot find nm_test_var in $nlist" >&5
6030 fi
6031 else
6032 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6033 fi
6034 else
6035 echo "$progname: failed program was:" >&5
6036 cat conftest.$ac_ext >&5
6037 fi
6038 rm -f conftest* conftst*
6039
6040 # Do not use the global_symbol_pipe unless it works.
6041 if test "$pipe_works" = yes; then
6042 break
6043 else
6044 lt_cv_sys_global_symbol_pipe=
6045 fi
6046 done
6047
6048 fi
6049
6050 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6051 lt_cv_sys_global_symbol_to_cdecl=
6052 fi
6053 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6054 echo "$as_me:$LINENO: result: failed" >&5
6055 echo "${ECHO_T}failed" >&6
6056 else
6057 echo "$as_me:$LINENO: result: ok" >&5
6058 echo "${ECHO_T}ok" >&6
6059 fi
6060
6061 echo "$as_me:$LINENO: checking for objdir" >&5
6062 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6063 if test "${lt_cv_objdir+set}" = set; then
6064 echo $ECHO_N "(cached) $ECHO_C" >&6
6065 else
6066 rm -f .libs 2>/dev/null
6067 mkdir .libs 2>/dev/null
6068 if test -d .libs; then
6069 lt_cv_objdir=.libs
6070 else
6071 # MS-DOS does not allow filenames that begin with a dot.
6072 lt_cv_objdir=_libs
6073 fi
6074 rmdir .libs 2>/dev/null
6075 fi
6076 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6077 echo "${ECHO_T}$lt_cv_objdir" >&6
6078 objdir=$lt_cv_objdir
6079
6080
6081
6082
6083
6084 case $host_os in
6085 aix3*)
6086 # AIX sometimes has problems with the GCC collect2 program. For some
6087 # reason, if we set the COLLECT_NAMES environment variable, the problems
6088 # vanish in a puff of smoke.
6089 if test "X${COLLECT_NAMES+set}" != Xset; then
6090 COLLECT_NAMES=
6091 export COLLECT_NAMES
6092 fi
6093 ;;
6094 esac
6095
6096 # Sed substitution that helps us do robust quoting. It backslashifies
6097 # metacharacters that are still active within double-quoted strings.
6098 Xsed='sed -e 1s/^X//'
6099 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6100
6101 # Same as above, but do not quote variable references.
6102 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6103
6104 # Sed substitution to delay expansion of an escaped shell variable in a
6105 # double_quote_subst'ed string.
6106 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6107
6108 # Sed substitution to avoid accidental globbing in evaled expressions
6109 no_glob_subst='s/\*/\\\*/g'
6110
6111 # Constants:
6112 rm="rm -f"
6113
6114 # Global variables:
6115 default_ofile=libtool
6116 can_build_shared=yes
6117
6118 # All known linkers require a `.a' archive for static linking (except MSVC,
6119 # which needs '.lib').
6120 libext=a
6121 ltmain="$ac_aux_dir/ltmain.sh"
6122 ofile="$default_ofile"
6123 with_gnu_ld="$lt_cv_prog_gnu_ld"
6124
6125 if test -n "$ac_tool_prefix"; then
6126 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6127 set dummy ${ac_tool_prefix}ar; ac_word=$2
6128 echo "$as_me:$LINENO: checking for $ac_word" >&5
6129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6130 if test "${ac_cv_prog_AR+set}" = set; then
6131 echo $ECHO_N "(cached) $ECHO_C" >&6
6132 else
6133 if test -n "$AR"; then
6134 ac_cv_prog_AR="$AR" # Let the user override the test.
6135 else
6136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6137 for as_dir in $PATH
6138 do
6139 IFS=$as_save_IFS
6140 test -z "$as_dir" && as_dir=.
6141 for ac_exec_ext in '' $ac_executable_extensions; do
6142 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6143 ac_cv_prog_AR="${ac_tool_prefix}ar"
6144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6145 break 2
6146 fi
6147 done
6148 done
6149
6150 fi
6151 fi
6152 AR=$ac_cv_prog_AR
6153 if test -n "$AR"; then
6154 echo "$as_me:$LINENO: result: $AR" >&5
6155 echo "${ECHO_T}$AR" >&6
6156 else
6157 echo "$as_me:$LINENO: result: no" >&5
6158 echo "${ECHO_T}no" >&6
6159 fi
6160
6161 fi
6162 if test -z "$ac_cv_prog_AR"; then
6163 ac_ct_AR=$AR
6164 # Extract the first word of "ar", so it can be a program name with args.
6165 set dummy ar; ac_word=$2
6166 echo "$as_me:$LINENO: checking for $ac_word" >&5
6167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6168 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6169 echo $ECHO_N "(cached) $ECHO_C" >&6
6170 else
6171 if test -n "$ac_ct_AR"; then
6172 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6173 else
6174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6175 for as_dir in $PATH
6176 do
6177 IFS=$as_save_IFS
6178 test -z "$as_dir" && as_dir=.
6179 for ac_exec_ext in '' $ac_executable_extensions; do
6180 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6181 ac_cv_prog_ac_ct_AR="ar"
6182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6183 break 2
6184 fi
6185 done
6186 done
6187
6188 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6189 fi
6190 fi
6191 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6192 if test -n "$ac_ct_AR"; then
6193 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6194 echo "${ECHO_T}$ac_ct_AR" >&6
6195 else
6196 echo "$as_me:$LINENO: result: no" >&5
6197 echo "${ECHO_T}no" >&6
6198 fi
6199
6200 AR=$ac_ct_AR
6201 else
6202 AR="$ac_cv_prog_AR"
6203 fi
6204
6205 if test -n "$ac_tool_prefix"; then
6206 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6207 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6208 echo "$as_me:$LINENO: checking for $ac_word" >&5
6209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6210 if test "${ac_cv_prog_RANLIB+set}" = set; then
6211 echo $ECHO_N "(cached) $ECHO_C" >&6
6212 else
6213 if test -n "$RANLIB"; then
6214 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6215 else
6216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6217 for as_dir in $PATH
6218 do
6219 IFS=$as_save_IFS
6220 test -z "$as_dir" && as_dir=.
6221 for ac_exec_ext in '' $ac_executable_extensions; do
6222 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6223 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6225 break 2
6226 fi
6227 done
6228 done
6229
6230 fi
6231 fi
6232 RANLIB=$ac_cv_prog_RANLIB
6233 if test -n "$RANLIB"; then
6234 echo "$as_me:$LINENO: result: $RANLIB" >&5
6235 echo "${ECHO_T}$RANLIB" >&6
6236 else
6237 echo "$as_me:$LINENO: result: no" >&5
6238 echo "${ECHO_T}no" >&6
6239 fi
6240
6241 fi
6242 if test -z "$ac_cv_prog_RANLIB"; then
6243 ac_ct_RANLIB=$RANLIB
6244 # Extract the first word of "ranlib", so it can be a program name with args.
6245 set dummy ranlib; ac_word=$2
6246 echo "$as_me:$LINENO: checking for $ac_word" >&5
6247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6248 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6249 echo $ECHO_N "(cached) $ECHO_C" >&6
6250 else
6251 if test -n "$ac_ct_RANLIB"; then
6252 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6253 else
6254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6255 for as_dir in $PATH
6256 do
6257 IFS=$as_save_IFS
6258 test -z "$as_dir" && as_dir=.
6259 for ac_exec_ext in '' $ac_executable_extensions; do
6260 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6261 ac_cv_prog_ac_ct_RANLIB="ranlib"
6262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6263 break 2
6264 fi
6265 done
6266 done
6267
6268 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6269 fi
6270 fi
6271 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6272 if test -n "$ac_ct_RANLIB"; then
6273 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6274 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6275 else
6276 echo "$as_me:$LINENO: result: no" >&5
6277 echo "${ECHO_T}no" >&6
6278 fi
6279
6280 RANLIB=$ac_ct_RANLIB
6281 else
6282 RANLIB="$ac_cv_prog_RANLIB"
6283 fi
6284
6285 if test -n "$ac_tool_prefix"; then
6286 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6287 set dummy ${ac_tool_prefix}strip; ac_word=$2
6288 echo "$as_me:$LINENO: checking for $ac_word" >&5
6289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6290 if test "${ac_cv_prog_STRIP+set}" = set; then
6291 echo $ECHO_N "(cached) $ECHO_C" >&6
6292 else
6293 if test -n "$STRIP"; then
6294 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6295 else
6296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6297 for as_dir in $PATH
6298 do
6299 IFS=$as_save_IFS
6300 test -z "$as_dir" && as_dir=.
6301 for ac_exec_ext in '' $ac_executable_extensions; do
6302 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6303 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6305 break 2
6306 fi
6307 done
6308 done
6309
6310 fi
6311 fi
6312 STRIP=$ac_cv_prog_STRIP
6313 if test -n "$STRIP"; then
6314 echo "$as_me:$LINENO: result: $STRIP" >&5
6315 echo "${ECHO_T}$STRIP" >&6
6316 else
6317 echo "$as_me:$LINENO: result: no" >&5
6318 echo "${ECHO_T}no" >&6
6319 fi
6320
6321 fi
6322 if test -z "$ac_cv_prog_STRIP"; then
6323 ac_ct_STRIP=$STRIP
6324 # Extract the first word of "strip", so it can be a program name with args.
6325 set dummy strip; ac_word=$2
6326 echo "$as_me:$LINENO: checking for $ac_word" >&5
6327 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6328 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6329 echo $ECHO_N "(cached) $ECHO_C" >&6
6330 else
6331 if test -n "$ac_ct_STRIP"; then
6332 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6333 else
6334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6335 for as_dir in $PATH
6336 do
6337 IFS=$as_save_IFS
6338 test -z "$as_dir" && as_dir=.
6339 for ac_exec_ext in '' $ac_executable_extensions; do
6340 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6341 ac_cv_prog_ac_ct_STRIP="strip"
6342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6343 break 2
6344 fi
6345 done
6346 done
6347
6348 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6349 fi
6350 fi
6351 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6352 if test -n "$ac_ct_STRIP"; then
6353 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6354 echo "${ECHO_T}$ac_ct_STRIP" >&6
6355 else
6356 echo "$as_me:$LINENO: result: no" >&5
6357 echo "${ECHO_T}no" >&6
6358 fi
6359
6360 STRIP=$ac_ct_STRIP
6361 else
6362 STRIP="$ac_cv_prog_STRIP"
6363 fi
6364
6365
6366 old_CC="$CC"
6367 old_CFLAGS="$CFLAGS"
6368
6369 # Set sane defaults for various variables
6370 test -z "$AR" && AR=ar
6371 test -z "$AR_FLAGS" && AR_FLAGS=cru
6372 test -z "$AS" && AS=as
6373 test -z "$CC" && CC=cc
6374 test -z "$LTCC" && LTCC=$CC
6375 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6376 test -z "$DLLTOOL" && DLLTOOL=dlltool
6377 test -z "$LD" && LD=ld
6378 test -z "$LN_S" && LN_S="ln -s"
6379 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6380 test -z "$NM" && NM=nm
6381 test -z "$SED" && SED=sed
6382 test -z "$OBJDUMP" && OBJDUMP=objdump
6383 test -z "$RANLIB" && RANLIB=:
6384 test -z "$STRIP" && STRIP=:
6385 test -z "$ac_objext" && ac_objext=o
6386
6387 # Determine commands to create old-style static archives.
6388 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6389 old_postinstall_cmds='chmod 644 $oldlib'
6390 old_postuninstall_cmds=
6391
6392 if test -n "$RANLIB"; then
6393 case $host_os in
6394 openbsd*)
6395 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6396 ;;
6397 *)
6398 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6399 ;;
6400 esac
6401 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6402 fi
6403
6404 for cc_temp in $compiler""; do
6405 case $cc_temp in
6406 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6407 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6408 \-*) ;;
6409 *) break;;
6410 esac
6411 done
6412 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6413
6414
6415 # Only perform the check for file, if the check method requires it
6416 case $deplibs_check_method in
6417 file_magic*)
6418 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6419 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6420 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6421 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6422 echo $ECHO_N "(cached) $ECHO_C" >&6
6423 else
6424 case $MAGIC_CMD in
6425 [\\/*] | ?:[\\/]*)
6426 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6427 ;;
6428 *)
6429 lt_save_MAGIC_CMD="$MAGIC_CMD"
6430 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6431 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6432 for ac_dir in $ac_dummy; do
6433 IFS="$lt_save_ifs"
6434 test -z "$ac_dir" && ac_dir=.
6435 if test -f $ac_dir/${ac_tool_prefix}file; then
6436 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6437 if test -n "$file_magic_test_file"; then
6438 case $deplibs_check_method in
6439 "file_magic "*)
6440 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6441 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6442 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6443 $EGREP "$file_magic_regex" > /dev/null; then
6444 :
6445 else
6446 cat <<EOF 1>&2
6447
6448 *** Warning: the command libtool uses to detect shared libraries,
6449 *** $file_magic_cmd, produces output that libtool cannot recognize.
6450 *** The result is that libtool may fail to recognize shared libraries
6451 *** as such. This will affect the creation of libtool libraries that
6452 *** depend on shared libraries, but programs linked with such libtool
6453 *** libraries will work regardless of this problem. Nevertheless, you
6454 *** may want to report the problem to your system manager and/or to
6455 *** bug-libtool@gnu.org
6456
6457 EOF
6458 fi ;;
6459 esac
6460 fi
6461 break
6462 fi
6463 done
6464 IFS="$lt_save_ifs"
6465 MAGIC_CMD="$lt_save_MAGIC_CMD"
6466 ;;
6467 esac
6468 fi
6469
6470 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6471 if test -n "$MAGIC_CMD"; then
6472 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6473 echo "${ECHO_T}$MAGIC_CMD" >&6
6474 else
6475 echo "$as_me:$LINENO: result: no" >&5
6476 echo "${ECHO_T}no" >&6
6477 fi
6478
6479 if test -z "$lt_cv_path_MAGIC_CMD"; then
6480 if test -n "$ac_tool_prefix"; then
6481 echo "$as_me:$LINENO: checking for file" >&5
6482 echo $ECHO_N "checking for file... $ECHO_C" >&6
6483 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6484 echo $ECHO_N "(cached) $ECHO_C" >&6
6485 else
6486 case $MAGIC_CMD in
6487 [\\/*] | ?:[\\/]*)
6488 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6489 ;;
6490 *)
6491 lt_save_MAGIC_CMD="$MAGIC_CMD"
6492 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6493 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6494 for ac_dir in $ac_dummy; do
6495 IFS="$lt_save_ifs"
6496 test -z "$ac_dir" && ac_dir=.
6497 if test -f $ac_dir/file; then
6498 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6499 if test -n "$file_magic_test_file"; then
6500 case $deplibs_check_method in
6501 "file_magic "*)
6502 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6503 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6504 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6505 $EGREP "$file_magic_regex" > /dev/null; then
6506 :
6507 else
6508 cat <<EOF 1>&2
6509
6510 *** Warning: the command libtool uses to detect shared libraries,
6511 *** $file_magic_cmd, produces output that libtool cannot recognize.
6512 *** The result is that libtool may fail to recognize shared libraries
6513 *** as such. This will affect the creation of libtool libraries that
6514 *** depend on shared libraries, but programs linked with such libtool
6515 *** libraries will work regardless of this problem. Nevertheless, you
6516 *** may want to report the problem to your system manager and/or to
6517 *** bug-libtool@gnu.org
6518
6519 EOF
6520 fi ;;
6521 esac
6522 fi
6523 break
6524 fi
6525 done
6526 IFS="$lt_save_ifs"
6527 MAGIC_CMD="$lt_save_MAGIC_CMD"
6528 ;;
6529 esac
6530 fi
6531
6532 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6533 if test -n "$MAGIC_CMD"; then
6534 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6535 echo "${ECHO_T}$MAGIC_CMD" >&6
6536 else
6537 echo "$as_me:$LINENO: result: no" >&5
6538 echo "${ECHO_T}no" >&6
6539 fi
6540
6541 else
6542 MAGIC_CMD=:
6543 fi
6544 fi
6545
6546 fi
6547 ;;
6548 esac
6549
6550 enable_dlopen=no
6551 enable_win32_dll=no
6552
6553 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6554 if test "${enable_libtool_lock+set}" = set; then
6555 enableval="$enable_libtool_lock"
6556
6557 fi;
6558 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6559
6560
6561 # Check whether --with-pic or --without-pic was given.
6562 if test "${with_pic+set}" = set; then
6563 withval="$with_pic"
6564 pic_mode="$withval"
6565 else
6566 pic_mode=default
6567 fi;
6568 test -z "$pic_mode" && pic_mode=default
6569
6570 # Use C for the default configuration in the libtool script
6571 tagname=
6572 lt_save_CC="$CC"
6573 ac_ext=c
6574 ac_cpp='$CPP $CPPFLAGS'
6575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6578
6579
6580 # Source file extension for C test sources.
6581 ac_ext=c
6582
6583 # Object file extension for compiled C test sources.
6584 objext=o
6585 objext=$objext
6586
6587 # Code to be used in simple compile tests
6588 lt_simple_compile_test_code="int some_variable = 0;\n"
6589
6590 # Code to be used in simple link tests
6591 lt_simple_link_test_code='int main(){return(0);}\n'
6592
6593
6594 # If no C compiler was specified, use CC.
6595 LTCC=${LTCC-"$CC"}
6596
6597 # If no C compiler flags were specified, use CFLAGS.
6598 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6599
6600 # Allow CC to be a program name with arguments.
6601 compiler=$CC
6602
6603
6604 # save warnings/boilerplate of simple test code
6605 ac_outfile=conftest.$ac_objext
6606 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6607 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6608 _lt_compiler_boilerplate=`cat conftest.err`
6609 $rm conftest*
6610
6611 ac_outfile=conftest.$ac_objext
6612 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6613 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6614 _lt_linker_boilerplate=`cat conftest.err`
6615 $rm conftest*
6616
6617
6618
6619 lt_prog_compiler_no_builtin_flag=
6620
6621 if test "$GCC" = yes; then
6622 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6623
6624
6625 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6626 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6627 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6628 echo $ECHO_N "(cached) $ECHO_C" >&6
6629 else
6630 lt_cv_prog_compiler_rtti_exceptions=no
6631 ac_outfile=conftest.$ac_objext
6632 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6633 lt_compiler_flag="-fno-rtti -fno-exceptions"
6634 # Insert the option either (1) after the last *FLAGS variable, or
6635 # (2) before a word containing "conftest.", or (3) at the end.
6636 # Note that $ac_compile itself does not contain backslashes and begins
6637 # with a dollar sign (not a hyphen), so the echo should work correctly.
6638 # The option is referenced via a variable to avoid confusing sed.
6639 lt_compile=`echo "$ac_compile" | $SED \
6640 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6641 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6642 -e 's:$: $lt_compiler_flag:'`
6643 (eval echo "\"\$as_me:6643: $lt_compile\"" >&5)
6644 (eval "$lt_compile" 2>conftest.err)
6645 ac_status=$?
6646 cat conftest.err >&5
6647 echo "$as_me:6647: \$? = $ac_status" >&5
6648 if (exit $ac_status) && test -s "$ac_outfile"; then
6649 # The compiler can only warn and ignore the option if not recognized
6650 # So say no if there are warnings other than the usual output.
6651 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6652 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6653 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6654 lt_cv_prog_compiler_rtti_exceptions=yes
6655 fi
6656 fi
6657 $rm conftest*
6658
6659 fi
6660 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6661 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6662
6663 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6664 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6665 else
6666 :
6667 fi
6668
6669 fi
6670
6671 lt_prog_compiler_wl=
6672 lt_prog_compiler_pic=
6673 lt_prog_compiler_static=
6674
6675 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6676 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6677
6678 if test "$GCC" = yes; then
6679 lt_prog_compiler_wl='-Wl,'
6680 lt_prog_compiler_static='-static'
6681
6682 case $host_os in
6683 aix*)
6684 # All AIX code is PIC.
6685 if test "$host_cpu" = ia64; then
6686 # AIX 5 now supports IA64 processor
6687 lt_prog_compiler_static='-Bstatic'
6688 fi
6689 ;;
6690
6691 amigaos*)
6692 # FIXME: we need at least 68020 code to build shared libraries, but
6693 # adding the `-m68020' flag to GCC prevents building anything better,
6694 # like `-m68040'.
6695 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6696 ;;
6697
6698 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6699 # PIC is the default for these OSes.
6700 ;;
6701
6702 mingw* | pw32* | os2*)
6703 # This hack is so that the source file can tell whether it is being
6704 # built for inclusion in a dll (and should export symbols for example).
6705 lt_prog_compiler_pic='-DDLL_EXPORT'
6706 ;;
6707
6708 darwin* | rhapsody*)
6709 # PIC is the default on this platform
6710 # Common symbols not allowed in MH_DYLIB files
6711 lt_prog_compiler_pic='-fno-common'
6712 ;;
6713
6714 interix3*)
6715 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6716 # Instead, we relocate shared libraries at runtime.
6717 ;;
6718
6719 msdosdjgpp*)
6720 # Just because we use GCC doesn't mean we suddenly get shared libraries
6721 # on systems that don't support them.
6722 lt_prog_compiler_can_build_shared=no
6723 enable_shared=no
6724 ;;
6725
6726 sysv4*MP*)
6727 if test -d /usr/nec; then
6728 lt_prog_compiler_pic=-Kconform_pic
6729 fi
6730 ;;
6731
6732 hpux*)
6733 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6734 # not for PA HP-UX.
6735 case $host_cpu in
6736 hppa*64*|ia64*)
6737 # +Z the default
6738 ;;
6739 *)
6740 lt_prog_compiler_pic='-fPIC'
6741 ;;
6742 esac
6743 ;;
6744
6745 *)
6746 lt_prog_compiler_pic='-fPIC'
6747 ;;
6748 esac
6749 else
6750 # PORTME Check for flag to pass linker flags through the system compiler.
6751 case $host_os in
6752 aix*)
6753 lt_prog_compiler_wl='-Wl,'
6754 if test "$host_cpu" = ia64; then
6755 # AIX 5 now supports IA64 processor
6756 lt_prog_compiler_static='-Bstatic'
6757 else
6758 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6759 fi
6760 ;;
6761 darwin*)
6762 # PIC is the default on this platform
6763 # Common symbols not allowed in MH_DYLIB files
6764 case $cc_basename in
6765 xlc*)
6766 lt_prog_compiler_pic='-qnocommon'
6767 lt_prog_compiler_wl='-Wl,'
6768 ;;
6769 esac
6770 ;;
6771
6772 mingw* | pw32* | os2*)
6773 # This hack is so that the source file can tell whether it is being
6774 # built for inclusion in a dll (and should export symbols for example).
6775 lt_prog_compiler_pic='-DDLL_EXPORT'
6776 ;;
6777
6778 hpux9* | hpux10* | hpux11*)
6779 lt_prog_compiler_wl='-Wl,'
6780 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6781 # not for PA HP-UX.
6782 case $host_cpu in
6783 hppa*64*|ia64*)
6784 # +Z the default
6785 ;;
6786 *)
6787 lt_prog_compiler_pic='+Z'
6788 ;;
6789 esac
6790 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6791 lt_prog_compiler_static='${wl}-a ${wl}archive'
6792 ;;
6793
6794 irix5* | irix6* | nonstopux*)
6795 lt_prog_compiler_wl='-Wl,'
6796 # PIC (with -KPIC) is the default.
6797 lt_prog_compiler_static='-non_shared'
6798 ;;
6799
6800 newsos6)
6801 lt_prog_compiler_pic='-KPIC'
6802 lt_prog_compiler_static='-Bstatic'
6803 ;;
6804
6805 linux*)
6806 case $cc_basename in
6807 icc* | ecc*)
6808 lt_prog_compiler_wl='-Wl,'
6809 lt_prog_compiler_pic='-KPIC'
6810 lt_prog_compiler_static='-static'
6811 ;;
6812 pgcc* | pgf77* | pgf90* | pgf95*)
6813 # Portland Group compilers (*not* the Pentium gcc compiler,
6814 # which looks to be a dead project)
6815 lt_prog_compiler_wl='-Wl,'
6816 lt_prog_compiler_pic='-fpic'
6817 lt_prog_compiler_static='-Bstatic'
6818 ;;
6819 ccc*)
6820 lt_prog_compiler_wl='-Wl,'
6821 # All Alpha code is PIC.
6822 lt_prog_compiler_static='-non_shared'
6823 ;;
6824 esac
6825 ;;
6826
6827 osf3* | osf4* | osf5*)
6828 lt_prog_compiler_wl='-Wl,'
6829 # All OSF/1 code is PIC.
6830 lt_prog_compiler_static='-non_shared'
6831 ;;
6832
6833 solaris*)
6834 lt_prog_compiler_pic='-KPIC'
6835 lt_prog_compiler_static='-Bstatic'
6836 case $cc_basename in
6837 f77* | f90* | f95*)
6838 lt_prog_compiler_wl='-Qoption ld ';;
6839 *)
6840 lt_prog_compiler_wl='-Wl,';;
6841 esac
6842 ;;
6843
6844 sunos4*)
6845 lt_prog_compiler_wl='-Qoption ld '
6846 lt_prog_compiler_pic='-PIC'
6847 lt_prog_compiler_static='-Bstatic'
6848 ;;
6849
6850 sysv4 | sysv4.2uw2* | sysv4.3*)
6851 lt_prog_compiler_wl='-Wl,'
6852 lt_prog_compiler_pic='-KPIC'
6853 lt_prog_compiler_static='-Bstatic'
6854 ;;
6855
6856 sysv4*MP*)
6857 if test -d /usr/nec ;then
6858 lt_prog_compiler_pic='-Kconform_pic'
6859 lt_prog_compiler_static='-Bstatic'
6860 fi
6861 ;;
6862
6863 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6864 lt_prog_compiler_wl='-Wl,'
6865 lt_prog_compiler_pic='-KPIC'
6866 lt_prog_compiler_static='-Bstatic'
6867 ;;
6868
6869 unicos*)
6870 lt_prog_compiler_wl='-Wl,'
6871 lt_prog_compiler_can_build_shared=no
6872 ;;
6873
6874 uts4*)
6875 lt_prog_compiler_pic='-pic'
6876 lt_prog_compiler_static='-Bstatic'
6877 ;;
6878
6879 *)
6880 lt_prog_compiler_can_build_shared=no
6881 ;;
6882 esac
6883 fi
6884
6885 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6886 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6887
6888 #
6889 # Check to make sure the PIC flag actually works.
6890 #
6891 if test -n "$lt_prog_compiler_pic"; then
6892
6893 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6894 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6895 if test "${lt_prog_compiler_pic_works+set}" = set; then
6896 echo $ECHO_N "(cached) $ECHO_C" >&6
6897 else
6898 lt_prog_compiler_pic_works=no
6899 ac_outfile=conftest.$ac_objext
6900 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6901 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6902 # Insert the option either (1) after the last *FLAGS variable, or
6903 # (2) before a word containing "conftest.", or (3) at the end.
6904 # Note that $ac_compile itself does not contain backslashes and begins
6905 # with a dollar sign (not a hyphen), so the echo should work correctly.
6906 # The option is referenced via a variable to avoid confusing sed.
6907 lt_compile=`echo "$ac_compile" | $SED \
6908 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6909 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6910 -e 's:$: $lt_compiler_flag:'`
6911 (eval echo "\"\$as_me:6911: $lt_compile\"" >&5)
6912 (eval "$lt_compile" 2>conftest.err)
6913 ac_status=$?
6914 cat conftest.err >&5
6915 echo "$as_me:6915: \$? = $ac_status" >&5
6916 if (exit $ac_status) && test -s "$ac_outfile"; then
6917 # The compiler can only warn and ignore the option if not recognized
6918 # So say no if there are warnings other than the usual output.
6919 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6920 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6921 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6922 lt_prog_compiler_pic_works=yes
6923 fi
6924 fi
6925 $rm conftest*
6926
6927 fi
6928 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6929 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6930
6931 if test x"$lt_prog_compiler_pic_works" = xyes; then
6932 case $lt_prog_compiler_pic in
6933 "" | " "*) ;;
6934 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6935 esac
6936 else
6937 lt_prog_compiler_pic=
6938 lt_prog_compiler_can_build_shared=no
6939 fi
6940
6941 fi
6942 case $host_os in
6943 # For platforms which do not support PIC, -DPIC is meaningless:
6944 *djgpp*)
6945 lt_prog_compiler_pic=
6946 ;;
6947 *)
6948 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6949 ;;
6950 esac
6951
6952 #
6953 # Check to make sure the static flag actually works.
6954 #
6955 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6956 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6957 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6958 if test "${lt_prog_compiler_static_works+set}" = set; then
6959 echo $ECHO_N "(cached) $ECHO_C" >&6
6960 else
6961 lt_prog_compiler_static_works=no
6962 save_LDFLAGS="$LDFLAGS"
6963 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6964 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6965 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6966 # The linker can only warn and ignore the option if not recognized
6967 # So say no if there are warnings
6968 if test -s conftest.err; then
6969 # Append any errors to the config.log.
6970 cat conftest.err 1>&5
6971 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6972 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6973 if diff conftest.exp conftest.er2 >/dev/null; then
6974 lt_prog_compiler_static_works=yes
6975 fi
6976 else
6977 lt_prog_compiler_static_works=yes
6978 fi
6979 fi
6980 $rm conftest*
6981 LDFLAGS="$save_LDFLAGS"
6982
6983 fi
6984 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6985 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6986
6987 if test x"$lt_prog_compiler_static_works" = xyes; then
6988 :
6989 else
6990 lt_prog_compiler_static=
6991 fi
6992
6993
6994 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6995 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6996 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6997 echo $ECHO_N "(cached) $ECHO_C" >&6
6998 else
6999 lt_cv_prog_compiler_c_o=no
7000 $rm -r conftest 2>/dev/null
7001 mkdir conftest
7002 cd conftest
7003 mkdir out
7004 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7005
7006 lt_compiler_flag="-o out/conftest2.$ac_objext"
7007 # Insert the option either (1) after the last *FLAGS variable, or
7008 # (2) before a word containing "conftest.", or (3) at the end.
7009 # Note that $ac_compile itself does not contain backslashes and begins
7010 # with a dollar sign (not a hyphen), so the echo should work correctly.
7011 lt_compile=`echo "$ac_compile" | $SED \
7012 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7013 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7014 -e 's:$: $lt_compiler_flag:'`
7015 (eval echo "\"\$as_me:7015: $lt_compile\"" >&5)
7016 (eval "$lt_compile" 2>out/conftest.err)
7017 ac_status=$?
7018 cat out/conftest.err >&5
7019 echo "$as_me:7019: \$? = $ac_status" >&5
7020 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7021 then
7022 # The compiler can only warn and ignore the option if not recognized
7023 # So say no if there are warnings
7024 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7025 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7026 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7027 lt_cv_prog_compiler_c_o=yes
7028 fi
7029 fi
7030 chmod u+w . 2>&5
7031 $rm conftest*
7032 # SGI C++ compiler will create directory out/ii_files/ for
7033 # template instantiation
7034 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7035 $rm out/* && rmdir out
7036 cd ..
7037 rmdir conftest
7038 $rm conftest*
7039
7040 fi
7041 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7042 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7043
7044
7045 hard_links="nottested"
7046 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7047 # do not overwrite the value of need_locks provided by the user
7048 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7049 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7050 hard_links=yes
7051 $rm conftest*
7052 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7053 touch conftest.a
7054 ln conftest.a conftest.b 2>&5 || hard_links=no
7055 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7056 echo "$as_me:$LINENO: result: $hard_links" >&5
7057 echo "${ECHO_T}$hard_links" >&6
7058 if test "$hard_links" = no; then
7059 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7060 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7061 need_locks=warn
7062 fi
7063 else
7064 need_locks=no
7065 fi
7066
7067 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7068 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7069
7070 runpath_var=
7071 allow_undefined_flag=
7072 enable_shared_with_static_runtimes=no
7073 archive_cmds=
7074 archive_expsym_cmds=
7075 old_archive_From_new_cmds=
7076 old_archive_from_expsyms_cmds=
7077 export_dynamic_flag_spec=
7078 whole_archive_flag_spec=
7079 thread_safe_flag_spec=
7080 hardcode_libdir_flag_spec=
7081 hardcode_libdir_flag_spec_ld=
7082 hardcode_libdir_separator=
7083 hardcode_direct=no
7084 hardcode_minus_L=no
7085 hardcode_shlibpath_var=unsupported
7086 link_all_deplibs=unknown
7087 hardcode_automatic=no
7088 module_cmds=
7089 module_expsym_cmds=
7090 always_export_symbols=no
7091 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7092 # include_expsyms should be a list of space-separated symbols to be *always*
7093 # included in the symbol list
7094 include_expsyms=
7095 # exclude_expsyms can be an extended regexp of symbols to exclude
7096 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7097 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7098 # as well as any symbol that contains `d'.
7099 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7100 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7101 # platforms (ab)use it in PIC code, but their linkers get confused if
7102 # the symbol is explicitly referenced. Since portable code cannot
7103 # rely on this symbol name, it's probably fine to never include it in
7104 # preloaded symbol tables.
7105 extract_expsyms_cmds=
7106 # Just being paranoid about ensuring that cc_basename is set.
7107 for cc_temp in $compiler""; do
7108 case $cc_temp in
7109 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7110 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7111 \-*) ;;
7112 *) break;;
7113 esac
7114 done
7115 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7116
7117 case $host_os in
7118 cygwin* | mingw* | pw32*)
7119 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7120 # When not using gcc, we currently assume that we are using
7121 # Microsoft Visual C++.
7122 if test "$GCC" != yes; then
7123 with_gnu_ld=no
7124 fi
7125 ;;
7126 interix*)
7127 # we just hope/assume this is gcc and not c89 (= MSVC++)
7128 with_gnu_ld=yes
7129 ;;
7130 openbsd*)
7131 with_gnu_ld=no
7132 ;;
7133 esac
7134
7135 ld_shlibs=yes
7136 if test "$with_gnu_ld" = yes; then
7137 # If archive_cmds runs LD, not CC, wlarc should be empty
7138 wlarc='${wl}'
7139
7140 # Set some defaults for GNU ld with shared library support. These
7141 # are reset later if shared libraries are not supported. Putting them
7142 # here allows them to be overridden if necessary.
7143 runpath_var=LD_RUN_PATH
7144 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7145 export_dynamic_flag_spec='${wl}--export-dynamic'
7146 # ancient GNU ld didn't support --whole-archive et. al.
7147 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7148 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7149 else
7150 whole_archive_flag_spec=
7151 fi
7152 supports_anon_versioning=no
7153 case `$LD -v 2>/dev/null` in
7154 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7155 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7156 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7157 *\ 2.11.*) ;; # other 2.11 versions
7158 *) supports_anon_versioning=yes ;;
7159 esac
7160
7161 # See if GNU ld supports shared libraries.
7162 case $host_os in
7163 aix3* | aix4* | aix5*)
7164 # On AIX/PPC, the GNU linker is very broken
7165 if test "$host_cpu" != ia64; then
7166 ld_shlibs=no
7167 cat <<EOF 1>&2
7168
7169 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7170 *** to be unable to reliably create shared libraries on AIX.
7171 *** Therefore, libtool is disabling shared libraries support. If you
7172 *** really care for shared libraries, you may want to modify your PATH
7173 *** so that a non-GNU linker is found, and then restart.
7174
7175 EOF
7176 fi
7177 ;;
7178
7179 amigaos*)
7180 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)'
7181 hardcode_libdir_flag_spec='-L$libdir'
7182 hardcode_minus_L=yes
7183
7184 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7185 # that the semantics of dynamic libraries on AmigaOS, at least up
7186 # to version 4, is to share data among multiple programs linked
7187 # with the same dynamic library. Since this doesn't match the
7188 # behavior of shared libraries on other platforms, we can't use
7189 # them.
7190 ld_shlibs=no
7191 ;;
7192
7193 beos*)
7194 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7195 allow_undefined_flag=unsupported
7196 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7197 # support --undefined. This deserves some investigation. FIXME
7198 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7199 else
7200 ld_shlibs=no
7201 fi
7202 ;;
7203
7204 cygwin* | mingw* | pw32*)
7205 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7206 # as there is no search path for DLLs.
7207 hardcode_libdir_flag_spec='-L$libdir'
7208 allow_undefined_flag=unsupported
7209 always_export_symbols=no
7210 enable_shared_with_static_runtimes=yes
7211 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7212
7213 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7214 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7215 # If the export-symbols file already is a .def file (1st line
7216 # is EXPORTS), use it as is; otherwise, prepend...
7217 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7218 cp $export_symbols $output_objdir/$soname.def;
7219 else
7220 echo EXPORTS > $output_objdir/$soname.def;
7221 cat $export_symbols >> $output_objdir/$soname.def;
7222 fi~
7223 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7224 else
7225 ld_shlibs=no
7226 fi
7227 ;;
7228
7229 interix3*)
7230 hardcode_direct=no
7231 hardcode_shlibpath_var=no
7232 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7233 export_dynamic_flag_spec='${wl}-E'
7234 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7235 # Instead, shared libraries are loaded at an image base (0x10000000 by
7236 # default) and relocated if they conflict, which is a slow very memory
7237 # consuming and fragmenting process. To avoid this, we pick a random,
7238 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7239 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7240 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7241 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'
7242 ;;
7243
7244 linux*)
7245 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7246 tmp_addflag=
7247 case $cc_basename,$host_cpu in
7248 pgcc*) # Portland Group C compiler
7249 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'
7250 tmp_addflag=' $pic_flag'
7251 ;;
7252 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7253 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'
7254 tmp_addflag=' $pic_flag -Mnomain' ;;
7255 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7256 tmp_addflag=' -i_dynamic' ;;
7257 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7258 tmp_addflag=' -i_dynamic -nofor_main' ;;
7259 ifc* | ifort*) # Intel Fortran compiler
7260 tmp_addflag=' -nofor_main' ;;
7261 esac
7262 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7263
7264 if test $supports_anon_versioning = yes; then
7265 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7266 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7267 $echo "local: *; };" >> $output_objdir/$libname.ver~
7268 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7269 fi
7270 else
7271 ld_shlibs=no
7272 fi
7273 ;;
7274
7275 netbsd*)
7276 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7277 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7278 wlarc=
7279 else
7280 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7281 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7282 fi
7283 ;;
7284
7285 solaris*)
7286 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7287 ld_shlibs=no
7288 cat <<EOF 1>&2
7289
7290 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7291 *** create shared libraries on Solaris systems. Therefore, libtool
7292 *** is disabling shared libraries support. We urge you to upgrade GNU
7293 *** binutils to release 2.9.1 or newer. Another option is to modify
7294 *** your PATH or compiler configuration so that the native linker is
7295 *** used, and then restart.
7296
7297 EOF
7298 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7299 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7300 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7301 else
7302 ld_shlibs=no
7303 fi
7304 ;;
7305
7306 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7307 case `$LD -v 2>&1` in
7308 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7309 ld_shlibs=no
7310 cat <<_LT_EOF 1>&2
7311
7312 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7313 *** reliably create shared libraries on SCO systems. Therefore, libtool
7314 *** is disabling shared libraries support. We urge you to upgrade GNU
7315 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7316 *** your PATH or compiler configuration so that the native linker is
7317 *** used, and then restart.
7318
7319 _LT_EOF
7320 ;;
7321 *)
7322 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7323 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7324 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7325 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7326 else
7327 ld_shlibs=no
7328 fi
7329 ;;
7330 esac
7331 ;;
7332
7333 sunos4*)
7334 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7335 wlarc=
7336 hardcode_direct=yes
7337 hardcode_shlibpath_var=no
7338 ;;
7339
7340 *)
7341 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7342 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7343 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7344 else
7345 ld_shlibs=no
7346 fi
7347 ;;
7348 esac
7349
7350 if test "$ld_shlibs" = no; then
7351 runpath_var=
7352 hardcode_libdir_flag_spec=
7353 export_dynamic_flag_spec=
7354 whole_archive_flag_spec=
7355 fi
7356 else
7357 # PORTME fill in a description of your system's linker (not GNU ld)
7358 case $host_os in
7359 aix3*)
7360 allow_undefined_flag=unsupported
7361 always_export_symbols=yes
7362 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'
7363 # Note: this linker hardcodes the directories in LIBPATH if there
7364 # are no directories specified by -L.
7365 hardcode_minus_L=yes
7366 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7367 # Neither direct hardcoding nor static linking is supported with a
7368 # broken collect2.
7369 hardcode_direct=unsupported
7370 fi
7371 ;;
7372
7373 aix4* | aix5*)
7374 if test "$host_cpu" = ia64; then
7375 # On IA64, the linker does run time linking by default, so we don't
7376 # have to do anything special.
7377 aix_use_runtimelinking=no
7378 exp_sym_flag='-Bexport'
7379 no_entry_flag=""
7380 else
7381 # If we're using GNU nm, then we don't want the "-C" option.
7382 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7383 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7384 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'
7385 else
7386 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'
7387 fi
7388 aix_use_runtimelinking=no
7389
7390 # Test if we are trying to use run time linking or normal
7391 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7392 # need to do runtime linking.
7393 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7394 for ld_flag in $LDFLAGS; do
7395 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7396 aix_use_runtimelinking=yes
7397 break
7398 fi
7399 done
7400 ;;
7401 esac
7402
7403 exp_sym_flag='-bexport'
7404 no_entry_flag='-bnoentry'
7405 fi
7406
7407 # When large executables or shared objects are built, AIX ld can
7408 # have problems creating the table of contents. If linking a library
7409 # or program results in "error TOC overflow" add -mminimal-toc to
7410 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7411 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7412
7413 archive_cmds=''
7414 hardcode_direct=yes
7415 hardcode_libdir_separator=':'
7416 link_all_deplibs=yes
7417
7418 if test "$GCC" = yes; then
7419 case $host_os in aix4.[012]|aix4.[012].*)
7420 # We only want to do this on AIX 4.2 and lower, the check
7421 # below for broken collect2 doesn't work under 4.3+
7422 collect2name=`${CC} -print-prog-name=collect2`
7423 if test -f "$collect2name" && \
7424 strings "$collect2name" | grep resolve_lib_name >/dev/null
7425 then
7426 # We have reworked collect2
7427 hardcode_direct=yes
7428 else
7429 # We have old collect2
7430 hardcode_direct=unsupported
7431 # It fails to find uninstalled libraries when the uninstalled
7432 # path is not listed in the libpath. Setting hardcode_minus_L
7433 # to unsupported forces relinking
7434 hardcode_minus_L=yes
7435 hardcode_libdir_flag_spec='-L$libdir'
7436 hardcode_libdir_separator=
7437 fi
7438 ;;
7439 esac
7440 shared_flag='-shared'
7441 if test "$aix_use_runtimelinking" = yes; then
7442 shared_flag="$shared_flag "'${wl}-G'
7443 fi
7444 else
7445 # not using gcc
7446 if test "$host_cpu" = ia64; then
7447 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7448 # chokes on -Wl,-G. The following line is correct:
7449 shared_flag='-G'
7450 else
7451 if test "$aix_use_runtimelinking" = yes; then
7452 shared_flag='${wl}-G'
7453 else
7454 shared_flag='${wl}-bM:SRE'
7455 fi
7456 fi
7457 fi
7458
7459 # It seems that -bexpall does not export symbols beginning with
7460 # underscore (_), so it is better to generate a list of symbols to export.
7461 always_export_symbols=yes
7462 if test "$aix_use_runtimelinking" = yes; then
7463 # Warning - without using the other runtime loading flags (-brtl),
7464 # -berok will link without error, but may produce a broken library.
7465 allow_undefined_flag='-berok'
7466 # Determine the default libpath from the value encoded in an empty executable.
7467 cat >conftest.$ac_ext <<_ACEOF
7468 /* confdefs.h. */
7469 _ACEOF
7470 cat confdefs.h >>conftest.$ac_ext
7471 cat >>conftest.$ac_ext <<_ACEOF
7472 /* end confdefs.h. */
7473
7474 int
7475 main ()
7476 {
7477
7478 ;
7479 return 0;
7480 }
7481 _ACEOF
7482 rm -f conftest.$ac_objext conftest$ac_exeext
7483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7484 (eval $ac_link) 2>conftest.er1
7485 ac_status=$?
7486 grep -v '^ *+' conftest.er1 >conftest.err
7487 rm -f conftest.er1
7488 cat conftest.err >&5
7489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7490 (exit $ac_status); } &&
7491 { ac_try='test -z "$ac_c_werror_flag"
7492 || test ! -s conftest.err'
7493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7494 (eval $ac_try) 2>&5
7495 ac_status=$?
7496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7497 (exit $ac_status); }; } &&
7498 { ac_try='test -s conftest$ac_exeext'
7499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7500 (eval $ac_try) 2>&5
7501 ac_status=$?
7502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7503 (exit $ac_status); }; }; then
7504
7505 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7506 }'`
7507 # Check for a 64-bit object if we didn't find anything.
7508 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; }
7509 }'`; fi
7510 else
7511 echo "$as_me: failed program was:" >&5
7512 sed 's/^/| /' conftest.$ac_ext >&5
7513
7514 fi
7515 rm -f conftest.err conftest.$ac_objext \
7516 conftest$ac_exeext conftest.$ac_ext
7517 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7518
7519 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7520 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"
7521 else
7522 if test "$host_cpu" = ia64; then
7523 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7524 allow_undefined_flag="-z nodefs"
7525 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"
7526 else
7527 # Determine the default libpath from the value encoded in an empty executable.
7528 cat >conftest.$ac_ext <<_ACEOF
7529 /* confdefs.h. */
7530 _ACEOF
7531 cat confdefs.h >>conftest.$ac_ext
7532 cat >>conftest.$ac_ext <<_ACEOF
7533 /* end confdefs.h. */
7534
7535 int
7536 main ()
7537 {
7538
7539 ;
7540 return 0;
7541 }
7542 _ACEOF
7543 rm -f conftest.$ac_objext conftest$ac_exeext
7544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7545 (eval $ac_link) 2>conftest.er1
7546 ac_status=$?
7547 grep -v '^ *+' conftest.er1 >conftest.err
7548 rm -f conftest.er1
7549 cat conftest.err >&5
7550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7551 (exit $ac_status); } &&
7552 { ac_try='test -z "$ac_c_werror_flag"
7553 || test ! -s conftest.err'
7554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7555 (eval $ac_try) 2>&5
7556 ac_status=$?
7557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7558 (exit $ac_status); }; } &&
7559 { ac_try='test -s conftest$ac_exeext'
7560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7561 (eval $ac_try) 2>&5
7562 ac_status=$?
7563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7564 (exit $ac_status); }; }; then
7565
7566 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7567 }'`
7568 # Check for a 64-bit object if we didn't find anything.
7569 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; }
7570 }'`; fi
7571 else
7572 echo "$as_me: failed program was:" >&5
7573 sed 's/^/| /' conftest.$ac_ext >&5
7574
7575 fi
7576 rm -f conftest.err conftest.$ac_objext \
7577 conftest$ac_exeext conftest.$ac_ext
7578 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7579
7580 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7581 # Warning - without using the other run time loading flags,
7582 # -berok will link without error, but may produce a broken library.
7583 no_undefined_flag=' ${wl}-bernotok'
7584 allow_undefined_flag=' ${wl}-berok'
7585 # Exported symbols can be pulled into shared objects from archives
7586 whole_archive_flag_spec='$convenience'
7587 archive_cmds_need_lc=yes
7588 # This is similar to how AIX traditionally builds its shared libraries.
7589 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'
7590 fi
7591 fi
7592 ;;
7593
7594 amigaos*)
7595 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)'
7596 hardcode_libdir_flag_spec='-L$libdir'
7597 hardcode_minus_L=yes
7598 # see comment about different semantics on the GNU ld section
7599 ld_shlibs=no
7600 ;;
7601
7602 bsdi[45]*)
7603 export_dynamic_flag_spec=-rdynamic
7604 ;;
7605
7606 cygwin* | mingw* | pw32*)
7607 # When not using gcc, we currently assume that we are using
7608 # Microsoft Visual C++.
7609 # hardcode_libdir_flag_spec is actually meaningless, as there is
7610 # no search path for DLLs.
7611 hardcode_libdir_flag_spec=' '
7612 allow_undefined_flag=unsupported
7613 # Tell ltmain to make .lib files, not .a files.
7614 libext=lib
7615 # Tell ltmain to make .dll files, not .so files.
7616 shrext_cmds=".dll"
7617 # FIXME: Setting linknames here is a bad hack.
7618 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7619 # The linker will automatically build a .lib file if we build a DLL.
7620 old_archive_From_new_cmds='true'
7621 # FIXME: Should let the user specify the lib program.
7622 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7623 fix_srcfile_path='`cygpath -w "$srcfile"`'
7624 enable_shared_with_static_runtimes=yes
7625 ;;
7626
7627 darwin* | rhapsody*)
7628 case $host_os in
7629 rhapsody* | darwin1.[012])
7630 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7631 ;;
7632 *) # Darwin 1.3 on
7633 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7634 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7635 else
7636 case ${MACOSX_DEPLOYMENT_TARGET} in
7637 10.[012])
7638 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7639 ;;
7640 10.*)
7641 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7642 ;;
7643 esac
7644 fi
7645 ;;
7646 esac
7647 archive_cmds_need_lc=no
7648 hardcode_direct=no
7649 hardcode_automatic=yes
7650 hardcode_shlibpath_var=unsupported
7651 whole_archive_flag_spec=''
7652 link_all_deplibs=yes
7653 if test "$GCC" = yes ; then
7654 output_verbose_link_cmd='echo'
7655 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7656 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7657 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7658 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}'
7659 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}'
7660 else
7661 case $cc_basename in
7662 xlc*)
7663 output_verbose_link_cmd='echo'
7664 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7665 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7666 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7667 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}'
7668 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}'
7669 ;;
7670 *)
7671 ld_shlibs=no
7672 ;;
7673 esac
7674 fi
7675 ;;
7676
7677 dgux*)
7678 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7679 hardcode_libdir_flag_spec='-L$libdir'
7680 hardcode_shlibpath_var=no
7681 ;;
7682
7683 freebsd1*)
7684 ld_shlibs=no
7685 ;;
7686
7687 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7688 # support. Future versions do this automatically, but an explicit c++rt0.o
7689 # does not break anything, and helps significantly (at the cost of a little
7690 # extra space).
7691 freebsd2.2*)
7692 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7693 hardcode_libdir_flag_spec='-R$libdir'
7694 hardcode_direct=yes
7695 hardcode_shlibpath_var=no
7696 ;;
7697
7698 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7699 freebsd2*)
7700 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7701 hardcode_direct=yes
7702 hardcode_minus_L=yes
7703 hardcode_shlibpath_var=no
7704 ;;
7705
7706 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7707 freebsd* | kfreebsd*-gnu | dragonfly*)
7708 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7709 hardcode_libdir_flag_spec='-R$libdir'
7710 hardcode_direct=yes
7711 hardcode_shlibpath_var=no
7712 ;;
7713
7714 hpux9*)
7715 if test "$GCC" = yes; then
7716 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'
7717 else
7718 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'
7719 fi
7720 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7721 hardcode_libdir_separator=:
7722 hardcode_direct=yes
7723
7724 # hardcode_minus_L: Not really in the search PATH,
7725 # but as the default location of the library.
7726 hardcode_minus_L=yes
7727 export_dynamic_flag_spec='${wl}-E'
7728 ;;
7729
7730 hpux10*)
7731 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7732 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7733 else
7734 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7735 fi
7736 if test "$with_gnu_ld" = no; then
7737 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7738 hardcode_libdir_separator=:
7739
7740 hardcode_direct=yes
7741 export_dynamic_flag_spec='${wl}-E'
7742
7743 # hardcode_minus_L: Not really in the search PATH,
7744 # but as the default location of the library.
7745 hardcode_minus_L=yes
7746 fi
7747 ;;
7748
7749 hpux11*)
7750 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7751 case $host_cpu in
7752 hppa*64*)
7753 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7754 ;;
7755 ia64*)
7756 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7757 ;;
7758 *)
7759 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7760 ;;
7761 esac
7762 else
7763 case $host_cpu in
7764 hppa*64*)
7765 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7766 ;;
7767 ia64*)
7768 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7769 ;;
7770 *)
7771 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7772 ;;
7773 esac
7774 fi
7775 if test "$with_gnu_ld" = no; then
7776 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7777 hardcode_libdir_separator=:
7778
7779 case $host_cpu in
7780 hppa*64*|ia64*)
7781 hardcode_libdir_flag_spec_ld='+b $libdir'
7782 hardcode_direct=no
7783 hardcode_shlibpath_var=no
7784 ;;
7785 *)
7786 hardcode_direct=yes
7787 export_dynamic_flag_spec='${wl}-E'
7788
7789 # hardcode_minus_L: Not really in the search PATH,
7790 # but as the default location of the library.
7791 hardcode_minus_L=yes
7792 ;;
7793 esac
7794 fi
7795 ;;
7796
7797 irix5* | irix6* | nonstopux*)
7798 if test "$GCC" = yes; then
7799 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'
7800 else
7801 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'
7802 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7803 fi
7804 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7805 hardcode_libdir_separator=:
7806 link_all_deplibs=yes
7807 ;;
7808
7809 netbsd*)
7810 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7811 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7812 else
7813 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7814 fi
7815 hardcode_libdir_flag_spec='-R$libdir'
7816 hardcode_direct=yes
7817 hardcode_shlibpath_var=no
7818 ;;
7819
7820 newsos6)
7821 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7822 hardcode_direct=yes
7823 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7824 hardcode_libdir_separator=:
7825 hardcode_shlibpath_var=no
7826 ;;
7827
7828 openbsd*)
7829 hardcode_direct=yes
7830 hardcode_shlibpath_var=no
7831 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7832 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7833 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7834 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7835 export_dynamic_flag_spec='${wl}-E'
7836 else
7837 case $host_os in
7838 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7839 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7840 hardcode_libdir_flag_spec='-R$libdir'
7841 ;;
7842 *)
7843 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7844 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7845 ;;
7846 esac
7847 fi
7848 ;;
7849
7850 os2*)
7851 hardcode_libdir_flag_spec='-L$libdir'
7852 hardcode_minus_L=yes
7853 allow_undefined_flag=unsupported
7854 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'
7855 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7856 ;;
7857
7858 osf3*)
7859 if test "$GCC" = yes; then
7860 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7861 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'
7862 else
7863 allow_undefined_flag=' -expect_unresolved \*'
7864 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'
7865 fi
7866 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7867 hardcode_libdir_separator=:
7868 ;;
7869
7870 osf4* | osf5*) # as osf3* with the addition of -msym flag
7871 if test "$GCC" = yes; then
7872 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7873 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'
7874 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7875 else
7876 allow_undefined_flag=' -expect_unresolved \*'
7877 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'
7878 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7879 $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'
7880
7881 # Both c and cxx compiler support -rpath directly
7882 hardcode_libdir_flag_spec='-rpath $libdir'
7883 fi
7884 hardcode_libdir_separator=:
7885 ;;
7886
7887 solaris*)
7888 no_undefined_flag=' -z text'
7889 if test "$GCC" = yes; then
7890 wlarc='${wl}'
7891 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7892 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7893 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7894 else
7895 wlarc=''
7896 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7897 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7898 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7899 fi
7900 hardcode_libdir_flag_spec='-R$libdir'
7901 hardcode_shlibpath_var=no
7902 case $host_os in
7903 solaris2.[0-5] | solaris2.[0-5].*) ;;
7904 *)
7905 # The compiler driver will combine linker options so we
7906 # cannot just pass the convience library names through
7907 # without $wl, iff we do not link with $LD.
7908 # Luckily, gcc supports the same syntax we need for Sun Studio.
7909 # Supported since Solaris 2.6 (maybe 2.5.1?)
7910 case $wlarc in
7911 '')
7912 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7913 *)
7914 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' ;;
7915 esac ;;
7916 esac
7917 link_all_deplibs=yes
7918 ;;
7919
7920 sunos4*)
7921 if test "x$host_vendor" = xsequent; then
7922 # Use $CC to link under sequent, because it throws in some extra .o
7923 # files that make .init and .fini sections work.
7924 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7925 else
7926 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7927 fi
7928 hardcode_libdir_flag_spec='-L$libdir'
7929 hardcode_direct=yes
7930 hardcode_minus_L=yes
7931 hardcode_shlibpath_var=no
7932 ;;
7933
7934 sysv4)
7935 case $host_vendor in
7936 sni)
7937 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7938 hardcode_direct=yes # is this really true???
7939 ;;
7940 siemens)
7941 ## LD is ld it makes a PLAMLIB
7942 ## CC just makes a GrossModule.
7943 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7944 reload_cmds='$CC -r -o $output$reload_objs'
7945 hardcode_direct=no
7946 ;;
7947 motorola)
7948 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7949 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7950 ;;
7951 esac
7952 runpath_var='LD_RUN_PATH'
7953 hardcode_shlibpath_var=no
7954 ;;
7955
7956 sysv4.3*)
7957 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7958 hardcode_shlibpath_var=no
7959 export_dynamic_flag_spec='-Bexport'
7960 ;;
7961
7962 sysv4*MP*)
7963 if test -d /usr/nec; then
7964 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7965 hardcode_shlibpath_var=no
7966 runpath_var=LD_RUN_PATH
7967 hardcode_runpath_var=yes
7968 ld_shlibs=yes
7969 fi
7970 ;;
7971
7972 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7973 no_undefined_flag='${wl}-z,text'
7974 archive_cmds_need_lc=no
7975 hardcode_shlibpath_var=no
7976 runpath_var='LD_RUN_PATH'
7977
7978 if test "$GCC" = yes; then
7979 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7980 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7981 else
7982 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7983 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7984 fi
7985 ;;
7986
7987 sysv5* | sco3.2v5* | sco5v6*)
7988 # Note: We can NOT use -z defs as we might desire, because we do not
7989 # link with -lc, and that would cause any symbols used from libc to
7990 # always be unresolved, which means just about no library would
7991 # ever link correctly. If we're not using GNU ld we use -z text
7992 # though, which does catch some bad symbols but isn't as heavy-handed
7993 # as -z defs.
7994 no_undefined_flag='${wl}-z,text'
7995 allow_undefined_flag='${wl}-z,nodefs'
7996 archive_cmds_need_lc=no
7997 hardcode_shlibpath_var=no
7998 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7999 hardcode_libdir_separator=':'
8000 link_all_deplibs=yes
8001 export_dynamic_flag_spec='${wl}-Bexport'
8002 runpath_var='LD_RUN_PATH'
8003
8004 if test "$GCC" = yes; then
8005 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8006 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8007 else
8008 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8009 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8010 fi
8011 ;;
8012
8013 uts4*)
8014 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8015 hardcode_libdir_flag_spec='-L$libdir'
8016 hardcode_shlibpath_var=no
8017 ;;
8018
8019 *)
8020 ld_shlibs=no
8021 ;;
8022 esac
8023 fi
8024
8025 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8026 echo "${ECHO_T}$ld_shlibs" >&6
8027 test "$ld_shlibs" = no && can_build_shared=no
8028
8029 #
8030 # Do we need to explicitly link libc?
8031 #
8032 case "x$archive_cmds_need_lc" in
8033 x|xyes)
8034 # Assume -lc should be added
8035 archive_cmds_need_lc=yes
8036
8037 if test "$enable_shared" = yes && test "$GCC" = yes; then
8038 case $archive_cmds in
8039 *'~'*)
8040 # FIXME: we may have to deal with multi-command sequences.
8041 ;;
8042 '$CC '*)
8043 # Test whether the compiler implicitly links with -lc since on some
8044 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8045 # to ld, don't add -lc before -lgcc.
8046 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8047 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8048 $rm conftest*
8049 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8050
8051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8052 (eval $ac_compile) 2>&5
8053 ac_status=$?
8054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055 (exit $ac_status); } 2>conftest.err; then
8056 soname=conftest
8057 lib=conftest
8058 libobjs=conftest.$ac_objext
8059 deplibs=
8060 wl=$lt_prog_compiler_wl
8061 pic_flag=$lt_prog_compiler_pic
8062 compiler_flags=-v
8063 linker_flags=-v
8064 verstring=
8065 output_objdir=.
8066 libname=conftest
8067 lt_save_allow_undefined_flag=$allow_undefined_flag
8068 allow_undefined_flag=
8069 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8070 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8071 ac_status=$?
8072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8073 (exit $ac_status); }
8074 then
8075 archive_cmds_need_lc=no
8076 else
8077 archive_cmds_need_lc=yes
8078 fi
8079 allow_undefined_flag=$lt_save_allow_undefined_flag
8080 else
8081 cat conftest.err 1>&5
8082 fi
8083 $rm conftest*
8084 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8085 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8086 ;;
8087 esac
8088 fi
8089 ;;
8090 esac
8091
8092 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8093 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8094 library_names_spec=
8095 libname_spec='lib$name'
8096 soname_spec=
8097 shrext_cmds=".so"
8098 postinstall_cmds=
8099 postuninstall_cmds=
8100 finish_cmds=
8101 finish_eval=
8102 shlibpath_var=
8103 shlibpath_overrides_runpath=unknown
8104 version_type=none
8105 dynamic_linker="$host_os ld.so"
8106 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8107 if test "$GCC" = yes; then
8108 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8109 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8110 # if the path contains ";" then we assume it to be the separator
8111 # otherwise default to the standard path separator (i.e. ":") - it is
8112 # assumed that no part of a normal pathname contains ";" but that should
8113 # okay in the real world where ";" in dirpaths is itself problematic.
8114 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8115 else
8116 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8117 fi
8118 else
8119 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8120 fi
8121 need_lib_prefix=unknown
8122 hardcode_into_libs=no
8123
8124 # when you set need_version to no, make sure it does not cause -set_version
8125 # flags to be left without arguments
8126 need_version=unknown
8127
8128 case $host_os in
8129 aix3*)
8130 version_type=linux
8131 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8132 shlibpath_var=LIBPATH
8133
8134 # AIX 3 has no versioning support, so we append a major version to the name.
8135 soname_spec='${libname}${release}${shared_ext}$major'
8136 ;;
8137
8138 aix4* | aix5*)
8139 version_type=linux
8140 need_lib_prefix=no
8141 need_version=no
8142 hardcode_into_libs=yes
8143 if test "$host_cpu" = ia64; then
8144 # AIX 5 supports IA64
8145 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8146 shlibpath_var=LD_LIBRARY_PATH
8147 else
8148 # With GCC up to 2.95.x, collect2 would create an import file
8149 # for dependence libraries. The import file would start with
8150 # the line `#! .'. This would cause the generated library to
8151 # depend on `.', always an invalid library. This was fixed in
8152 # development snapshots of GCC prior to 3.0.
8153 case $host_os in
8154 aix4 | aix4.[01] | aix4.[01].*)
8155 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8156 echo ' yes '
8157 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8158 :
8159 else
8160 can_build_shared=no
8161 fi
8162 ;;
8163 esac
8164 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8165 # soname into executable. Probably we can add versioning support to
8166 # collect2, so additional links can be useful in future.
8167 if test "$aix_use_runtimelinking" = yes; then
8168 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8169 # instead of lib<name>.a to let people know that these are not
8170 # typical AIX shared libraries.
8171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8172 else
8173 # We preserve .a as extension for shared libraries through AIX4.2
8174 # and later when we are not doing run time linking.
8175 library_names_spec='${libname}${release}.a $libname.a'
8176 soname_spec='${libname}${release}${shared_ext}$major'
8177 fi
8178 shlibpath_var=LIBPATH
8179 fi
8180 ;;
8181
8182 amigaos*)
8183 library_names_spec='$libname.ixlibrary $libname.a'
8184 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8185 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'
8186 ;;
8187
8188 beos*)
8189 library_names_spec='${libname}${shared_ext}'
8190 dynamic_linker="$host_os ld.so"
8191 shlibpath_var=LIBRARY_PATH
8192 ;;
8193
8194 bsdi[45]*)
8195 version_type=linux
8196 need_version=no
8197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8198 soname_spec='${libname}${release}${shared_ext}$major'
8199 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8200 shlibpath_var=LD_LIBRARY_PATH
8201 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8202 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8203 # the default ld.so.conf also contains /usr/contrib/lib and
8204 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8205 # libtool to hard-code these into programs
8206 ;;
8207
8208 cygwin* | mingw* | pw32*)
8209 version_type=windows
8210 shrext_cmds=".dll"
8211 need_version=no
8212 need_lib_prefix=no
8213
8214 case $GCC,$host_os in
8215 yes,cygwin* | yes,mingw* | yes,pw32*)
8216 library_names_spec='$libname.dll.a'
8217 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8218 postinstall_cmds='base_file=`basename \${file}`~
8219 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8220 dldir=$destdir/`dirname \$dlpath`~
8221 test -d \$dldir || mkdir -p \$dldir~
8222 $install_prog $dir/$dlname \$dldir/$dlname~
8223 chmod a+x \$dldir/$dlname'
8224 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8225 dlpath=$dir/\$dldll~
8226 $rm \$dlpath'
8227 shlibpath_overrides_runpath=yes
8228
8229 case $host_os in
8230 cygwin*)
8231 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8232 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8233 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8234 ;;
8235 mingw*)
8236 # MinGW DLLs use traditional 'lib' prefix
8237 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8238 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8239 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8240 # It is most probably a Windows format PATH printed by
8241 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8242 # path with ; separators, and with drive letters. We can handle the
8243 # drive letters (cygwin fileutils understands them), so leave them,
8244 # especially as we might pass files found there to a mingw objdump,
8245 # which wouldn't understand a cygwinified path. Ahh.
8246 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8247 else
8248 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8249 fi
8250 ;;
8251 pw32*)
8252 # pw32 DLLs use 'pw' prefix rather than 'lib'
8253 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8254 ;;
8255 esac
8256 ;;
8257
8258 *)
8259 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8260 ;;
8261 esac
8262 dynamic_linker='Win32 ld.exe'
8263 # FIXME: first we should search . and the directory the executable is in
8264 shlibpath_var=PATH
8265 ;;
8266
8267 darwin* | rhapsody*)
8268 dynamic_linker="$host_os dyld"
8269 version_type=darwin
8270 need_lib_prefix=no
8271 need_version=no
8272 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8273 soname_spec='${libname}${release}${major}$shared_ext'
8274 shlibpath_overrides_runpath=yes
8275 shlibpath_var=DYLD_LIBRARY_PATH
8276 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8277 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8278 if test "$GCC" = yes; then
8279 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"`
8280 else
8281 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8282 fi
8283 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8284 ;;
8285
8286 dgux*)
8287 version_type=linux
8288 need_lib_prefix=no
8289 need_version=no
8290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8291 soname_spec='${libname}${release}${shared_ext}$major'
8292 shlibpath_var=LD_LIBRARY_PATH
8293 ;;
8294
8295 freebsd1*)
8296 dynamic_linker=no
8297 ;;
8298
8299 kfreebsd*-gnu)
8300 version_type=linux
8301 need_lib_prefix=no
8302 need_version=no
8303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8304 soname_spec='${libname}${release}${shared_ext}$major'
8305 shlibpath_var=LD_LIBRARY_PATH
8306 shlibpath_overrides_runpath=no
8307 hardcode_into_libs=yes
8308 dynamic_linker='GNU ld.so'
8309 ;;
8310
8311 freebsd* | dragonfly*)
8312 # DragonFly does not have aout. When/if they implement a new
8313 # versioning mechanism, adjust this.
8314 if test -x /usr/bin/objformat; then
8315 objformat=`/usr/bin/objformat`
8316 else
8317 case $host_os in
8318 freebsd[123]*) objformat=aout ;;
8319 *) objformat=elf ;;
8320 esac
8321 fi
8322 version_type=freebsd-$objformat
8323 case $version_type in
8324 freebsd-elf*)
8325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8326 need_version=no
8327 need_lib_prefix=no
8328 ;;
8329 freebsd-*)
8330 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8331 need_version=yes
8332 ;;
8333 esac
8334 shlibpath_var=LD_LIBRARY_PATH
8335 case $host_os in
8336 freebsd2*)
8337 shlibpath_overrides_runpath=yes
8338 ;;
8339 freebsd3.[01]* | freebsdelf3.[01]*)
8340 shlibpath_overrides_runpath=yes
8341 hardcode_into_libs=yes
8342 ;;
8343 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8344 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8345 shlibpath_overrides_runpath=no
8346 hardcode_into_libs=yes
8347 ;;
8348 freebsd*) # from 4.6 on
8349 shlibpath_overrides_runpath=yes
8350 hardcode_into_libs=yes
8351 ;;
8352 esac
8353 ;;
8354
8355 gnu*)
8356 version_type=linux
8357 need_lib_prefix=no
8358 need_version=no
8359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8360 soname_spec='${libname}${release}${shared_ext}$major'
8361 shlibpath_var=LD_LIBRARY_PATH
8362 hardcode_into_libs=yes
8363 ;;
8364
8365 hpux9* | hpux10* | hpux11*)
8366 # Give a soname corresponding to the major version so that dld.sl refuses to
8367 # link against other versions.
8368 version_type=sunos
8369 need_lib_prefix=no
8370 need_version=no
8371 case $host_cpu in
8372 ia64*)
8373 shrext_cmds='.so'
8374 hardcode_into_libs=yes
8375 dynamic_linker="$host_os dld.so"
8376 shlibpath_var=LD_LIBRARY_PATH
8377 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8379 soname_spec='${libname}${release}${shared_ext}$major'
8380 if test "X$HPUX_IA64_MODE" = X32; then
8381 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8382 else
8383 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8384 fi
8385 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8386 ;;
8387 hppa*64*)
8388 shrext_cmds='.sl'
8389 hardcode_into_libs=yes
8390 dynamic_linker="$host_os dld.sl"
8391 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8392 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8394 soname_spec='${libname}${release}${shared_ext}$major'
8395 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8396 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8397 ;;
8398 *)
8399 shrext_cmds='.sl'
8400 dynamic_linker="$host_os dld.sl"
8401 shlibpath_var=SHLIB_PATH
8402 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8404 soname_spec='${libname}${release}${shared_ext}$major'
8405 ;;
8406 esac
8407 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8408 postinstall_cmds='chmod 555 $lib'
8409 ;;
8410
8411 interix3*)
8412 version_type=linux
8413 need_lib_prefix=no
8414 need_version=no
8415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8416 soname_spec='${libname}${release}${shared_ext}$major'
8417 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8418 shlibpath_var=LD_LIBRARY_PATH
8419 shlibpath_overrides_runpath=no
8420 hardcode_into_libs=yes
8421 ;;
8422
8423 irix5* | irix6* | nonstopux*)
8424 case $host_os in
8425 nonstopux*) version_type=nonstopux ;;
8426 *)
8427 if test "$lt_cv_prog_gnu_ld" = yes; then
8428 version_type=linux
8429 else
8430 version_type=irix
8431 fi ;;
8432 esac
8433 need_lib_prefix=no
8434 need_version=no
8435 soname_spec='${libname}${release}${shared_ext}$major'
8436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8437 case $host_os in
8438 irix5* | nonstopux*)
8439 libsuff= shlibsuff=
8440 ;;
8441 *)
8442 case $LD in # libtool.m4 will add one of these switches to LD
8443 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8444 libsuff= shlibsuff= libmagic=32-bit;;
8445 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8446 libsuff=32 shlibsuff=N32 libmagic=N32;;
8447 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8448 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8449 *) libsuff= shlibsuff= libmagic=never-match;;
8450 esac
8451 ;;
8452 esac
8453 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8454 shlibpath_overrides_runpath=no
8455 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8456 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8457 hardcode_into_libs=yes
8458 ;;
8459
8460 # No shared lib support for Linux oldld, aout, or coff.
8461 linux*oldld* | linux*aout* | linux*coff*)
8462 dynamic_linker=no
8463 ;;
8464
8465 # This must be Linux ELF.
8466 linux*)
8467 version_type=linux
8468 need_lib_prefix=no
8469 need_version=no
8470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8471 soname_spec='${libname}${release}${shared_ext}$major'
8472 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8473 shlibpath_var=LD_LIBRARY_PATH
8474 shlibpath_overrides_runpath=no
8475 # This implies no fast_install, which is unacceptable.
8476 # Some rework will be needed to allow for fast_install
8477 # before this can be enabled.
8478 hardcode_into_libs=yes
8479
8480 # find out which ABI we are using
8481 libsuff=
8482 case "$host_cpu" in
8483 x86_64*|s390x*|powerpc64*)
8484 echo '#line 8484 "configure"' > conftest.$ac_ext
8485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8486 (eval $ac_compile) 2>&5
8487 ac_status=$?
8488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489 (exit $ac_status); }; then
8490 case `/usr/bin/file conftest.$ac_objext` in
8491 *64-bit*)
8492 libsuff=64
8493 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8494 ;;
8495 esac
8496 fi
8497 rm -rf conftest*
8498 ;;
8499 esac
8500
8501 # Append ld.so.conf contents to the search path
8502 if test -f /etc/ld.so.conf; then
8503 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' ' '`
8504 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8505 fi
8506
8507 # We used to test for /lib/ld.so.1 and disable shared libraries on
8508 # powerpc, because MkLinux only supported shared libraries with the
8509 # GNU dynamic linker. Since this was broken with cross compilers,
8510 # most powerpc-linux boxes support dynamic linking these days and
8511 # people can always --disable-shared, the test was removed, and we
8512 # assume the GNU/Linux dynamic linker is in use.
8513 dynamic_linker='GNU/Linux ld.so'
8514 ;;
8515
8516 knetbsd*-gnu)
8517 version_type=linux
8518 need_lib_prefix=no
8519 need_version=no
8520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8521 soname_spec='${libname}${release}${shared_ext}$major'
8522 shlibpath_var=LD_LIBRARY_PATH
8523 shlibpath_overrides_runpath=no
8524 hardcode_into_libs=yes
8525 dynamic_linker='GNU ld.so'
8526 ;;
8527
8528 netbsd*)
8529 version_type=sunos
8530 need_lib_prefix=no
8531 need_version=no
8532 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8534 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8535 dynamic_linker='NetBSD (a.out) ld.so'
8536 else
8537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8538 soname_spec='${libname}${release}${shared_ext}$major'
8539 dynamic_linker='NetBSD ld.elf_so'
8540 fi
8541 shlibpath_var=LD_LIBRARY_PATH
8542 shlibpath_overrides_runpath=yes
8543 hardcode_into_libs=yes
8544 ;;
8545
8546 newsos6)
8547 version_type=linux
8548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8549 shlibpath_var=LD_LIBRARY_PATH
8550 shlibpath_overrides_runpath=yes
8551 ;;
8552
8553 nto-qnx*)
8554 version_type=linux
8555 need_lib_prefix=no
8556 need_version=no
8557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8558 soname_spec='${libname}${release}${shared_ext}$major'
8559 shlibpath_var=LD_LIBRARY_PATH
8560 shlibpath_overrides_runpath=yes
8561 ;;
8562
8563 openbsd*)
8564 version_type=sunos
8565 sys_lib_dlsearch_path_spec="/usr/lib"
8566 need_lib_prefix=no
8567 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8568 case $host_os in
8569 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8570 *) need_version=no ;;
8571 esac
8572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8573 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8574 shlibpath_var=LD_LIBRARY_PATH
8575 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8576 case $host_os in
8577 openbsd2.[89] | openbsd2.[89].*)
8578 shlibpath_overrides_runpath=no
8579 ;;
8580 *)
8581 shlibpath_overrides_runpath=yes
8582 ;;
8583 esac
8584 else
8585 shlibpath_overrides_runpath=yes
8586 fi
8587 ;;
8588
8589 os2*)
8590 libname_spec='$name'
8591 shrext_cmds=".dll"
8592 need_lib_prefix=no
8593 library_names_spec='$libname${shared_ext} $libname.a'
8594 dynamic_linker='OS/2 ld.exe'
8595 shlibpath_var=LIBPATH
8596 ;;
8597
8598 osf3* | osf4* | osf5*)
8599 version_type=osf
8600 need_lib_prefix=no
8601 need_version=no
8602 soname_spec='${libname}${release}${shared_ext}$major'
8603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8604 shlibpath_var=LD_LIBRARY_PATH
8605 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8606 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8607 ;;
8608
8609 solaris*)
8610 version_type=linux
8611 need_lib_prefix=no
8612 need_version=no
8613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8614 soname_spec='${libname}${release}${shared_ext}$major'
8615 shlibpath_var=LD_LIBRARY_PATH
8616 shlibpath_overrides_runpath=yes
8617 hardcode_into_libs=yes
8618 # ldd complains unless libraries are executable
8619 postinstall_cmds='chmod +x $lib'
8620 ;;
8621
8622 sunos4*)
8623 version_type=sunos
8624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8625 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8626 shlibpath_var=LD_LIBRARY_PATH
8627 shlibpath_overrides_runpath=yes
8628 if test "$with_gnu_ld" = yes; then
8629 need_lib_prefix=no
8630 fi
8631 need_version=yes
8632 ;;
8633
8634 sysv4 | sysv4.3*)
8635 version_type=linux
8636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8637 soname_spec='${libname}${release}${shared_ext}$major'
8638 shlibpath_var=LD_LIBRARY_PATH
8639 case $host_vendor in
8640 sni)
8641 shlibpath_overrides_runpath=no
8642 need_lib_prefix=no
8643 export_dynamic_flag_spec='${wl}-Blargedynsym'
8644 runpath_var=LD_RUN_PATH
8645 ;;
8646 siemens)
8647 need_lib_prefix=no
8648 ;;
8649 motorola)
8650 need_lib_prefix=no
8651 need_version=no
8652 shlibpath_overrides_runpath=no
8653 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8654 ;;
8655 esac
8656 ;;
8657
8658 sysv4*MP*)
8659 if test -d /usr/nec ;then
8660 version_type=linux
8661 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8662 soname_spec='$libname${shared_ext}.$major'
8663 shlibpath_var=LD_LIBRARY_PATH
8664 fi
8665 ;;
8666
8667 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8668 version_type=freebsd-elf
8669 need_lib_prefix=no
8670 need_version=no
8671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8672 soname_spec='${libname}${release}${shared_ext}$major'
8673 shlibpath_var=LD_LIBRARY_PATH
8674 hardcode_into_libs=yes
8675 if test "$with_gnu_ld" = yes; then
8676 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8677 shlibpath_overrides_runpath=no
8678 else
8679 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8680 shlibpath_overrides_runpath=yes
8681 case $host_os in
8682 sco3.2v5*)
8683 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8684 ;;
8685 esac
8686 fi
8687 sys_lib_dlsearch_path_spec='/usr/lib'
8688 ;;
8689
8690 uts4*)
8691 version_type=linux
8692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8693 soname_spec='${libname}${release}${shared_ext}$major'
8694 shlibpath_var=LD_LIBRARY_PATH
8695 ;;
8696
8697 *)
8698 dynamic_linker=no
8699 ;;
8700 esac
8701 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8702 echo "${ECHO_T}$dynamic_linker" >&6
8703 test "$dynamic_linker" = no && can_build_shared=no
8704
8705 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8706 if test "$GCC" = yes; then
8707 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8708 fi
8709
8710 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8711 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8712 hardcode_action=
8713 if test -n "$hardcode_libdir_flag_spec" || \
8714 test -n "$runpath_var" || \
8715 test "X$hardcode_automatic" = "Xyes" ; then
8716
8717 # We can hardcode non-existant directories.
8718 if test "$hardcode_direct" != no &&
8719 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8720 # have to relink, otherwise we might link with an installed library
8721 # when we should be linking with a yet-to-be-installed one
8722 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8723 test "$hardcode_minus_L" != no; then
8724 # Linking always hardcodes the temporary library directory.
8725 hardcode_action=relink
8726 else
8727 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8728 hardcode_action=immediate
8729 fi
8730 else
8731 # We cannot hardcode anything, or else we can only hardcode existing
8732 # directories.
8733 hardcode_action=unsupported
8734 fi
8735 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8736 echo "${ECHO_T}$hardcode_action" >&6
8737
8738 if test "$hardcode_action" = relink; then
8739 # Fast installation is not supported
8740 enable_fast_install=no
8741 elif test "$shlibpath_overrides_runpath" = yes ||
8742 test "$enable_shared" = no; then
8743 # Fast installation is not necessary
8744 enable_fast_install=needless
8745 fi
8746
8747 striplib=
8748 old_striplib=
8749 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8750 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8751 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8752 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8753 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8754 echo "$as_me:$LINENO: result: yes" >&5
8755 echo "${ECHO_T}yes" >&6
8756 else
8757 # FIXME - insert some real tests, host_os isn't really good enough
8758 case $host_os in
8759 darwin*)
8760 if test -n "$STRIP" ; then
8761 striplib="$STRIP -x"
8762 echo "$as_me:$LINENO: result: yes" >&5
8763 echo "${ECHO_T}yes" >&6
8764 else
8765 echo "$as_me:$LINENO: result: no" >&5
8766 echo "${ECHO_T}no" >&6
8767 fi
8768 ;;
8769 *)
8770 echo "$as_me:$LINENO: result: no" >&5
8771 echo "${ECHO_T}no" >&6
8772 ;;
8773 esac
8774 fi
8775
8776 if test "x$enable_dlopen" != xyes; then
8777 enable_dlopen=unknown
8778 enable_dlopen_self=unknown
8779 enable_dlopen_self_static=unknown
8780 else
8781 lt_cv_dlopen=no
8782 lt_cv_dlopen_libs=
8783
8784 case $host_os in
8785 beos*)
8786 lt_cv_dlopen="load_add_on"
8787 lt_cv_dlopen_libs=
8788 lt_cv_dlopen_self=yes
8789 ;;
8790
8791 mingw* | pw32*)
8792 lt_cv_dlopen="LoadLibrary"
8793 lt_cv_dlopen_libs=
8794 ;;
8795
8796 cygwin*)
8797 lt_cv_dlopen="dlopen"
8798 lt_cv_dlopen_libs=
8799 ;;
8800
8801 darwin*)
8802 # if libdl is installed we need to link against it
8803 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8804 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8805 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8806 echo $ECHO_N "(cached) $ECHO_C" >&6
8807 else
8808 ac_check_lib_save_LIBS=$LIBS
8809 LIBS="-ldl $LIBS"
8810 cat >conftest.$ac_ext <<_ACEOF
8811 /* confdefs.h. */
8812 _ACEOF
8813 cat confdefs.h >>conftest.$ac_ext
8814 cat >>conftest.$ac_ext <<_ACEOF
8815 /* end confdefs.h. */
8816
8817 /* Override any gcc2 internal prototype to avoid an error. */
8818 #ifdef __cplusplus
8819 extern "C"
8820 #endif
8821 /* We use char because int might match the return type of a gcc2
8822 builtin and then its argument prototype would still apply. */
8823 char dlopen ();
8824 int
8825 main ()
8826 {
8827 dlopen ();
8828 ;
8829 return 0;
8830 }
8831 _ACEOF
8832 rm -f conftest.$ac_objext conftest$ac_exeext
8833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8834 (eval $ac_link) 2>conftest.er1
8835 ac_status=$?
8836 grep -v '^ *+' conftest.er1 >conftest.err
8837 rm -f conftest.er1
8838 cat conftest.err >&5
8839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840 (exit $ac_status); } &&
8841 { ac_try='test -z "$ac_c_werror_flag"
8842 || test ! -s conftest.err'
8843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8844 (eval $ac_try) 2>&5
8845 ac_status=$?
8846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847 (exit $ac_status); }; } &&
8848 { ac_try='test -s conftest$ac_exeext'
8849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8850 (eval $ac_try) 2>&5
8851 ac_status=$?
8852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853 (exit $ac_status); }; }; then
8854 ac_cv_lib_dl_dlopen=yes
8855 else
8856 echo "$as_me: failed program was:" >&5
8857 sed 's/^/| /' conftest.$ac_ext >&5
8858
8859 ac_cv_lib_dl_dlopen=no
8860 fi
8861 rm -f conftest.err conftest.$ac_objext \
8862 conftest$ac_exeext conftest.$ac_ext
8863 LIBS=$ac_check_lib_save_LIBS
8864 fi
8865 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8866 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8867 if test $ac_cv_lib_dl_dlopen = yes; then
8868 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8869 else
8870
8871 lt_cv_dlopen="dyld"
8872 lt_cv_dlopen_libs=
8873 lt_cv_dlopen_self=yes
8874
8875 fi
8876
8877 ;;
8878
8879 *)
8880 echo "$as_me:$LINENO: checking for shl_load" >&5
8881 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8882 if test "${ac_cv_func_shl_load+set}" = set; then
8883 echo $ECHO_N "(cached) $ECHO_C" >&6
8884 else
8885 cat >conftest.$ac_ext <<_ACEOF
8886 /* confdefs.h. */
8887 _ACEOF
8888 cat confdefs.h >>conftest.$ac_ext
8889 cat >>conftest.$ac_ext <<_ACEOF
8890 /* end confdefs.h. */
8891 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8892 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8893 #define shl_load innocuous_shl_load
8894
8895 /* System header to define __stub macros and hopefully few prototypes,
8896 which can conflict with char shl_load (); below.
8897 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8898 <limits.h> exists even on freestanding compilers. */
8899
8900 #ifdef __STDC__
8901 # include <limits.h>
8902 #else
8903 # include <assert.h>
8904 #endif
8905
8906 #undef shl_load
8907
8908 /* Override any gcc2 internal prototype to avoid an error. */
8909 #ifdef __cplusplus
8910 extern "C"
8911 {
8912 #endif
8913 /* We use char because int might match the return type of a gcc2
8914 builtin and then its argument prototype would still apply. */
8915 char shl_load ();
8916 /* The GNU C library defines this for functions which it implements
8917 to always fail with ENOSYS. Some functions are actually named
8918 something starting with __ and the normal name is an alias. */
8919 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8920 choke me
8921 #else
8922 char (*f) () = shl_load;
8923 #endif
8924 #ifdef __cplusplus
8925 }
8926 #endif
8927
8928 int
8929 main ()
8930 {
8931 return f != shl_load;
8932 ;
8933 return 0;
8934 }
8935 _ACEOF
8936 rm -f conftest.$ac_objext conftest$ac_exeext
8937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8938 (eval $ac_link) 2>conftest.er1
8939 ac_status=$?
8940 grep -v '^ *+' conftest.er1 >conftest.err
8941 rm -f conftest.er1
8942 cat conftest.err >&5
8943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8944 (exit $ac_status); } &&
8945 { ac_try='test -z "$ac_c_werror_flag"
8946 || test ! -s conftest.err'
8947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8948 (eval $ac_try) 2>&5
8949 ac_status=$?
8950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951 (exit $ac_status); }; } &&
8952 { ac_try='test -s conftest$ac_exeext'
8953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8954 (eval $ac_try) 2>&5
8955 ac_status=$?
8956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8957 (exit $ac_status); }; }; then
8958 ac_cv_func_shl_load=yes
8959 else
8960 echo "$as_me: failed program was:" >&5
8961 sed 's/^/| /' conftest.$ac_ext >&5
8962
8963 ac_cv_func_shl_load=no
8964 fi
8965 rm -f conftest.err conftest.$ac_objext \
8966 conftest$ac_exeext conftest.$ac_ext
8967 fi
8968 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8969 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8970 if test $ac_cv_func_shl_load = yes; then
8971 lt_cv_dlopen="shl_load"
8972 else
8973 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8974 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8975 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8976 echo $ECHO_N "(cached) $ECHO_C" >&6
8977 else
8978 ac_check_lib_save_LIBS=$LIBS
8979 LIBS="-ldld $LIBS"
8980 cat >conftest.$ac_ext <<_ACEOF
8981 /* confdefs.h. */
8982 _ACEOF
8983 cat confdefs.h >>conftest.$ac_ext
8984 cat >>conftest.$ac_ext <<_ACEOF
8985 /* end confdefs.h. */
8986
8987 /* Override any gcc2 internal prototype to avoid an error. */
8988 #ifdef __cplusplus
8989 extern "C"
8990 #endif
8991 /* We use char because int might match the return type of a gcc2
8992 builtin and then its argument prototype would still apply. */
8993 char shl_load ();
8994 int
8995 main ()
8996 {
8997 shl_load ();
8998 ;
8999 return 0;
9000 }
9001 _ACEOF
9002 rm -f conftest.$ac_objext conftest$ac_exeext
9003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9004 (eval $ac_link) 2>conftest.er1
9005 ac_status=$?
9006 grep -v '^ *+' conftest.er1 >conftest.err
9007 rm -f conftest.er1
9008 cat conftest.err >&5
9009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010 (exit $ac_status); } &&
9011 { ac_try='test -z "$ac_c_werror_flag"
9012 || test ! -s conftest.err'
9013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9014 (eval $ac_try) 2>&5
9015 ac_status=$?
9016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9017 (exit $ac_status); }; } &&
9018 { ac_try='test -s conftest$ac_exeext'
9019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9020 (eval $ac_try) 2>&5
9021 ac_status=$?
9022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9023 (exit $ac_status); }; }; then
9024 ac_cv_lib_dld_shl_load=yes
9025 else
9026 echo "$as_me: failed program was:" >&5
9027 sed 's/^/| /' conftest.$ac_ext >&5
9028
9029 ac_cv_lib_dld_shl_load=no
9030 fi
9031 rm -f conftest.err conftest.$ac_objext \
9032 conftest$ac_exeext conftest.$ac_ext
9033 LIBS=$ac_check_lib_save_LIBS
9034 fi
9035 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9036 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9037 if test $ac_cv_lib_dld_shl_load = yes; then
9038 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9039 else
9040 echo "$as_me:$LINENO: checking for dlopen" >&5
9041 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9042 if test "${ac_cv_func_dlopen+set}" = set; then
9043 echo $ECHO_N "(cached) $ECHO_C" >&6
9044 else
9045 cat >conftest.$ac_ext <<_ACEOF
9046 /* confdefs.h. */
9047 _ACEOF
9048 cat confdefs.h >>conftest.$ac_ext
9049 cat >>conftest.$ac_ext <<_ACEOF
9050 /* end confdefs.h. */
9051 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9052 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9053 #define dlopen innocuous_dlopen
9054
9055 /* System header to define __stub macros and hopefully few prototypes,
9056 which can conflict with char dlopen (); below.
9057 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9058 <limits.h> exists even on freestanding compilers. */
9059
9060 #ifdef __STDC__
9061 # include <limits.h>
9062 #else
9063 # include <assert.h>
9064 #endif
9065
9066 #undef dlopen
9067
9068 /* Override any gcc2 internal prototype to avoid an error. */
9069 #ifdef __cplusplus
9070 extern "C"
9071 {
9072 #endif
9073 /* We use char because int might match the return type of a gcc2
9074 builtin and then its argument prototype would still apply. */
9075 char dlopen ();
9076 /* The GNU C library defines this for functions which it implements
9077 to always fail with ENOSYS. Some functions are actually named
9078 something starting with __ and the normal name is an alias. */
9079 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9080 choke me
9081 #else
9082 char (*f) () = dlopen;
9083 #endif
9084 #ifdef __cplusplus
9085 }
9086 #endif
9087
9088 int
9089 main ()
9090 {
9091 return f != dlopen;
9092 ;
9093 return 0;
9094 }
9095 _ACEOF
9096 rm -f conftest.$ac_objext conftest$ac_exeext
9097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9098 (eval $ac_link) 2>conftest.er1
9099 ac_status=$?
9100 grep -v '^ *+' conftest.er1 >conftest.err
9101 rm -f conftest.er1
9102 cat conftest.err >&5
9103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9104 (exit $ac_status); } &&
9105 { ac_try='test -z "$ac_c_werror_flag"
9106 || test ! -s conftest.err'
9107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9108 (eval $ac_try) 2>&5
9109 ac_status=$?
9110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9111 (exit $ac_status); }; } &&
9112 { ac_try='test -s conftest$ac_exeext'
9113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9114 (eval $ac_try) 2>&5
9115 ac_status=$?
9116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9117 (exit $ac_status); }; }; then
9118 ac_cv_func_dlopen=yes
9119 else
9120 echo "$as_me: failed program was:" >&5
9121 sed 's/^/| /' conftest.$ac_ext >&5
9122
9123 ac_cv_func_dlopen=no
9124 fi
9125 rm -f conftest.err conftest.$ac_objext \
9126 conftest$ac_exeext conftest.$ac_ext
9127 fi
9128 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9129 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9130 if test $ac_cv_func_dlopen = yes; then
9131 lt_cv_dlopen="dlopen"
9132 else
9133 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9134 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9135 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9136 echo $ECHO_N "(cached) $ECHO_C" >&6
9137 else
9138 ac_check_lib_save_LIBS=$LIBS
9139 LIBS="-ldl $LIBS"
9140 cat >conftest.$ac_ext <<_ACEOF
9141 /* confdefs.h. */
9142 _ACEOF
9143 cat confdefs.h >>conftest.$ac_ext
9144 cat >>conftest.$ac_ext <<_ACEOF
9145 /* end confdefs.h. */
9146
9147 /* Override any gcc2 internal prototype to avoid an error. */
9148 #ifdef __cplusplus
9149 extern "C"
9150 #endif
9151 /* We use char because int might match the return type of a gcc2
9152 builtin and then its argument prototype would still apply. */
9153 char dlopen ();
9154 int
9155 main ()
9156 {
9157 dlopen ();
9158 ;
9159 return 0;
9160 }
9161 _ACEOF
9162 rm -f conftest.$ac_objext conftest$ac_exeext
9163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9164 (eval $ac_link) 2>conftest.er1
9165 ac_status=$?
9166 grep -v '^ *+' conftest.er1 >conftest.err
9167 rm -f conftest.er1
9168 cat conftest.err >&5
9169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170 (exit $ac_status); } &&
9171 { ac_try='test -z "$ac_c_werror_flag"
9172 || test ! -s conftest.err'
9173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9174 (eval $ac_try) 2>&5
9175 ac_status=$?
9176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9177 (exit $ac_status); }; } &&
9178 { ac_try='test -s conftest$ac_exeext'
9179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9180 (eval $ac_try) 2>&5
9181 ac_status=$?
9182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9183 (exit $ac_status); }; }; then
9184 ac_cv_lib_dl_dlopen=yes
9185 else
9186 echo "$as_me: failed program was:" >&5
9187 sed 's/^/| /' conftest.$ac_ext >&5
9188
9189 ac_cv_lib_dl_dlopen=no
9190 fi
9191 rm -f conftest.err conftest.$ac_objext \
9192 conftest$ac_exeext conftest.$ac_ext
9193 LIBS=$ac_check_lib_save_LIBS
9194 fi
9195 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9196 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9197 if test $ac_cv_lib_dl_dlopen = yes; then
9198 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9199 else
9200 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9201 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9202 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9203 echo $ECHO_N "(cached) $ECHO_C" >&6
9204 else
9205 ac_check_lib_save_LIBS=$LIBS
9206 LIBS="-lsvld $LIBS"
9207 cat >conftest.$ac_ext <<_ACEOF
9208 /* confdefs.h. */
9209 _ACEOF
9210 cat confdefs.h >>conftest.$ac_ext
9211 cat >>conftest.$ac_ext <<_ACEOF
9212 /* end confdefs.h. */
9213
9214 /* Override any gcc2 internal prototype to avoid an error. */
9215 #ifdef __cplusplus
9216 extern "C"
9217 #endif
9218 /* We use char because int might match the return type of a gcc2
9219 builtin and then its argument prototype would still apply. */
9220 char dlopen ();
9221 int
9222 main ()
9223 {
9224 dlopen ();
9225 ;
9226 return 0;
9227 }
9228 _ACEOF
9229 rm -f conftest.$ac_objext conftest$ac_exeext
9230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9231 (eval $ac_link) 2>conftest.er1
9232 ac_status=$?
9233 grep -v '^ *+' conftest.er1 >conftest.err
9234 rm -f conftest.er1
9235 cat conftest.err >&5
9236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9237 (exit $ac_status); } &&
9238 { ac_try='test -z "$ac_c_werror_flag"
9239 || test ! -s conftest.err'
9240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9241 (eval $ac_try) 2>&5
9242 ac_status=$?
9243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9244 (exit $ac_status); }; } &&
9245 { ac_try='test -s conftest$ac_exeext'
9246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9247 (eval $ac_try) 2>&5
9248 ac_status=$?
9249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9250 (exit $ac_status); }; }; then
9251 ac_cv_lib_svld_dlopen=yes
9252 else
9253 echo "$as_me: failed program was:" >&5
9254 sed 's/^/| /' conftest.$ac_ext >&5
9255
9256 ac_cv_lib_svld_dlopen=no
9257 fi
9258 rm -f conftest.err conftest.$ac_objext \
9259 conftest$ac_exeext conftest.$ac_ext
9260 LIBS=$ac_check_lib_save_LIBS
9261 fi
9262 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9263 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9264 if test $ac_cv_lib_svld_dlopen = yes; then
9265 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9266 else
9267 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9268 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9269 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9270 echo $ECHO_N "(cached) $ECHO_C" >&6
9271 else
9272 ac_check_lib_save_LIBS=$LIBS
9273 LIBS="-ldld $LIBS"
9274 cat >conftest.$ac_ext <<_ACEOF
9275 /* confdefs.h. */
9276 _ACEOF
9277 cat confdefs.h >>conftest.$ac_ext
9278 cat >>conftest.$ac_ext <<_ACEOF
9279 /* end confdefs.h. */
9280
9281 /* Override any gcc2 internal prototype to avoid an error. */
9282 #ifdef __cplusplus
9283 extern "C"
9284 #endif
9285 /* We use char because int might match the return type of a gcc2
9286 builtin and then its argument prototype would still apply. */
9287 char dld_link ();
9288 int
9289 main ()
9290 {
9291 dld_link ();
9292 ;
9293 return 0;
9294 }
9295 _ACEOF
9296 rm -f conftest.$ac_objext conftest$ac_exeext
9297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9298 (eval $ac_link) 2>conftest.er1
9299 ac_status=$?
9300 grep -v '^ *+' conftest.er1 >conftest.err
9301 rm -f conftest.er1
9302 cat conftest.err >&5
9303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9304 (exit $ac_status); } &&
9305 { ac_try='test -z "$ac_c_werror_flag"
9306 || test ! -s conftest.err'
9307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9308 (eval $ac_try) 2>&5
9309 ac_status=$?
9310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9311 (exit $ac_status); }; } &&
9312 { ac_try='test -s conftest$ac_exeext'
9313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9314 (eval $ac_try) 2>&5
9315 ac_status=$?
9316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9317 (exit $ac_status); }; }; then
9318 ac_cv_lib_dld_dld_link=yes
9319 else
9320 echo "$as_me: failed program was:" >&5
9321 sed 's/^/| /' conftest.$ac_ext >&5
9322
9323 ac_cv_lib_dld_dld_link=no
9324 fi
9325 rm -f conftest.err conftest.$ac_objext \
9326 conftest$ac_exeext conftest.$ac_ext
9327 LIBS=$ac_check_lib_save_LIBS
9328 fi
9329 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9330 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9331 if test $ac_cv_lib_dld_dld_link = yes; then
9332 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9333 fi
9334
9335
9336 fi
9337
9338
9339 fi
9340
9341
9342 fi
9343
9344
9345 fi
9346
9347
9348 fi
9349
9350 ;;
9351 esac
9352
9353 if test "x$lt_cv_dlopen" != xno; then
9354 enable_dlopen=yes
9355 else
9356 enable_dlopen=no
9357 fi
9358
9359 case $lt_cv_dlopen in
9360 dlopen)
9361 save_CPPFLAGS="$CPPFLAGS"
9362 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9363
9364 save_LDFLAGS="$LDFLAGS"
9365 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9366
9367 save_LIBS="$LIBS"
9368 LIBS="$lt_cv_dlopen_libs $LIBS"
9369
9370 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9371 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9372 if test "${lt_cv_dlopen_self+set}" = set; then
9373 echo $ECHO_N "(cached) $ECHO_C" >&6
9374 else
9375 if test "$cross_compiling" = yes; then :
9376 lt_cv_dlopen_self=cross
9377 else
9378 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9379 lt_status=$lt_dlunknown
9380 cat > conftest.$ac_ext <<EOF
9381 #line 9381 "configure"
9382 #include "confdefs.h"
9383
9384 #if HAVE_DLFCN_H
9385 #include <dlfcn.h>
9386 #endif
9387
9388 #include <stdio.h>
9389
9390 #ifdef RTLD_GLOBAL
9391 # define LT_DLGLOBAL RTLD_GLOBAL
9392 #else
9393 # ifdef DL_GLOBAL
9394 # define LT_DLGLOBAL DL_GLOBAL
9395 # else
9396 # define LT_DLGLOBAL 0
9397 # endif
9398 #endif
9399
9400 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9401 find out it does not work in some platform. */
9402 #ifndef LT_DLLAZY_OR_NOW
9403 # ifdef RTLD_LAZY
9404 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9405 # else
9406 # ifdef DL_LAZY
9407 # define LT_DLLAZY_OR_NOW DL_LAZY
9408 # else
9409 # ifdef RTLD_NOW
9410 # define LT_DLLAZY_OR_NOW RTLD_NOW
9411 # else
9412 # ifdef DL_NOW
9413 # define LT_DLLAZY_OR_NOW DL_NOW
9414 # else
9415 # define LT_DLLAZY_OR_NOW 0
9416 # endif
9417 # endif
9418 # endif
9419 # endif
9420 #endif
9421
9422 #ifdef __cplusplus
9423 extern "C" void exit (int);
9424 #endif
9425
9426 void fnord() { int i=42;}
9427 int main ()
9428 {
9429 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9430 int status = $lt_dlunknown;
9431
9432 if (self)
9433 {
9434 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9435 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9436 /* dlclose (self); */
9437 }
9438 else
9439 puts (dlerror ());
9440
9441 exit (status);
9442 }
9443 EOF
9444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9445 (eval $ac_link) 2>&5
9446 ac_status=$?
9447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9448 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9449 (./conftest; exit; ) >&5 2>/dev/null
9450 lt_status=$?
9451 case x$lt_status in
9452 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9453 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9454 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9455 esac
9456 else :
9457 # compilation failed
9458 lt_cv_dlopen_self=no
9459 fi
9460 fi
9461 rm -fr conftest*
9462
9463
9464 fi
9465 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9466 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9467
9468 if test "x$lt_cv_dlopen_self" = xyes; then
9469 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9470 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9471 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9472 if test "${lt_cv_dlopen_self_static+set}" = set; then
9473 echo $ECHO_N "(cached) $ECHO_C" >&6
9474 else
9475 if test "$cross_compiling" = yes; then :
9476 lt_cv_dlopen_self_static=cross
9477 else
9478 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9479 lt_status=$lt_dlunknown
9480 cat > conftest.$ac_ext <<EOF
9481 #line 9481 "configure"
9482 #include "confdefs.h"
9483
9484 #if HAVE_DLFCN_H
9485 #include <dlfcn.h>
9486 #endif
9487
9488 #include <stdio.h>
9489
9490 #ifdef RTLD_GLOBAL
9491 # define LT_DLGLOBAL RTLD_GLOBAL
9492 #else
9493 # ifdef DL_GLOBAL
9494 # define LT_DLGLOBAL DL_GLOBAL
9495 # else
9496 # define LT_DLGLOBAL 0
9497 # endif
9498 #endif
9499
9500 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9501 find out it does not work in some platform. */
9502 #ifndef LT_DLLAZY_OR_NOW
9503 # ifdef RTLD_LAZY
9504 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9505 # else
9506 # ifdef DL_LAZY
9507 # define LT_DLLAZY_OR_NOW DL_LAZY
9508 # else
9509 # ifdef RTLD_NOW
9510 # define LT_DLLAZY_OR_NOW RTLD_NOW
9511 # else
9512 # ifdef DL_NOW
9513 # define LT_DLLAZY_OR_NOW DL_NOW
9514 # else
9515 # define LT_DLLAZY_OR_NOW 0
9516 # endif
9517 # endif
9518 # endif
9519 # endif
9520 #endif
9521
9522 #ifdef __cplusplus
9523 extern "C" void exit (int);
9524 #endif
9525
9526 void fnord() { int i=42;}
9527 int main ()
9528 {
9529 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9530 int status = $lt_dlunknown;
9531
9532 if (self)
9533 {
9534 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9535 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9536 /* dlclose (self); */
9537 }
9538 else
9539 puts (dlerror ());
9540
9541 exit (status);
9542 }
9543 EOF
9544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9545 (eval $ac_link) 2>&5
9546 ac_status=$?
9547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9549 (./conftest; exit; ) >&5 2>/dev/null
9550 lt_status=$?
9551 case x$lt_status in
9552 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9553 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9554 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9555 esac
9556 else :
9557 # compilation failed
9558 lt_cv_dlopen_self_static=no
9559 fi
9560 fi
9561 rm -fr conftest*
9562
9563
9564 fi
9565 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9566 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9567 fi
9568
9569 CPPFLAGS="$save_CPPFLAGS"
9570 LDFLAGS="$save_LDFLAGS"
9571 LIBS="$save_LIBS"
9572 ;;
9573 esac
9574
9575 case $lt_cv_dlopen_self in
9576 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9577 *) enable_dlopen_self=unknown ;;
9578 esac
9579
9580 case $lt_cv_dlopen_self_static in
9581 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9582 *) enable_dlopen_self_static=unknown ;;
9583 esac
9584 fi
9585
9586
9587 # Report which library types will actually be built
9588 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9589 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9590 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9591 echo "${ECHO_T}$can_build_shared" >&6
9592
9593 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9594 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9595 test "$can_build_shared" = "no" && enable_shared=no
9596
9597 # On AIX, shared libraries and static libraries use the same namespace, and
9598 # are all built from PIC.
9599 case $host_os in
9600 aix3*)
9601 test "$enable_shared" = yes && enable_static=no
9602 if test -n "$RANLIB"; then
9603 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9604 postinstall_cmds='$RANLIB $lib'
9605 fi
9606 ;;
9607
9608 aix4* | aix5*)
9609 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9610 test "$enable_shared" = yes && enable_static=no
9611 fi
9612 ;;
9613 esac
9614 echo "$as_me:$LINENO: result: $enable_shared" >&5
9615 echo "${ECHO_T}$enable_shared" >&6
9616
9617 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9618 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9619 # Make sure either enable_shared or enable_static is yes.
9620 test "$enable_shared" = yes || enable_static=yes
9621 echo "$as_me:$LINENO: result: $enable_static" >&5
9622 echo "${ECHO_T}$enable_static" >&6
9623
9624 # The else clause should only fire when bootstrapping the
9625 # libtool distribution, otherwise you forgot to ship ltmain.sh
9626 # with your package, and you will get complaints that there are
9627 # no rules to generate ltmain.sh.
9628 if test -f "$ltmain"; then
9629 # See if we are running on zsh, and set the options which allow our commands through
9630 # without removal of \ escapes.
9631 if test -n "${ZSH_VERSION+set}" ; then
9632 setopt NO_GLOB_SUBST
9633 fi
9634 # Now quote all the things that may contain metacharacters while being
9635 # careful not to overquote the AC_SUBSTed values. We take copies of the
9636 # variables and quote the copies for generation of the libtool script.
9637 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9638 SED SHELL STRIP \
9639 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9640 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9641 deplibs_check_method reload_flag reload_cmds need_locks \
9642 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9643 lt_cv_sys_global_symbol_to_c_name_address \
9644 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9645 old_postinstall_cmds old_postuninstall_cmds \
9646 compiler \
9647 CC \
9648 LD \
9649 lt_prog_compiler_wl \
9650 lt_prog_compiler_pic \
9651 lt_prog_compiler_static \
9652 lt_prog_compiler_no_builtin_flag \
9653 export_dynamic_flag_spec \
9654 thread_safe_flag_spec \
9655 whole_archive_flag_spec \
9656 enable_shared_with_static_runtimes \
9657 old_archive_cmds \
9658 old_archive_from_new_cmds \
9659 predep_objects \
9660 postdep_objects \
9661 predeps \
9662 postdeps \
9663 compiler_lib_search_path \
9664 archive_cmds \
9665 archive_expsym_cmds \
9666 postinstall_cmds \
9667 postuninstall_cmds \
9668 old_archive_from_expsyms_cmds \
9669 allow_undefined_flag \
9670 no_undefined_flag \
9671 export_symbols_cmds \
9672 hardcode_libdir_flag_spec \
9673 hardcode_libdir_flag_spec_ld \
9674 hardcode_libdir_separator \
9675 hardcode_automatic \
9676 module_cmds \
9677 module_expsym_cmds \
9678 lt_cv_prog_compiler_c_o \
9679 exclude_expsyms \
9680 include_expsyms; do
9681
9682 case $var in
9683 old_archive_cmds | \
9684 old_archive_from_new_cmds | \
9685 archive_cmds | \
9686 archive_expsym_cmds | \
9687 module_cmds | \
9688 module_expsym_cmds | \
9689 old_archive_from_expsyms_cmds | \
9690 export_symbols_cmds | \
9691 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9692 postinstall_cmds | postuninstall_cmds | \
9693 old_postinstall_cmds | old_postuninstall_cmds | \
9694 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9695 # Double-quote double-evaled strings.
9696 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9697 ;;
9698 *)
9699 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9700 ;;
9701 esac
9702 done
9703
9704 case $lt_echo in
9705 *'\$0 --fallback-echo"')
9706 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9707 ;;
9708 esac
9709
9710 cfgfile="${ofile}T"
9711 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9712 $rm -f "$cfgfile"
9713 { echo "$as_me:$LINENO: creating $ofile" >&5
9714 echo "$as_me: creating $ofile" >&6;}
9715
9716 cat <<__EOF__ >> "$cfgfile"
9717 #! $SHELL
9718
9719 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9720 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9721 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9722 #
9723 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9724 # Free Software Foundation, Inc.
9725 #
9726 # This file is part of GNU Libtool:
9727 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9728 #
9729 # This program is free software; you can redistribute it and/or modify
9730 # it under the terms of the GNU General Public License as published by
9731 # the Free Software Foundation; either version 2 of the License, or
9732 # (at your option) any later version.
9733 #
9734 # This program is distributed in the hope that it will be useful, but
9735 # WITHOUT ANY WARRANTY; without even the implied warranty of
9736 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9737 # General Public License for more details.
9738 #
9739 # You should have received a copy of the GNU General Public License
9740 # along with this program; if not, write to the Free Software
9741 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9742 #
9743 # As a special exception to the GNU General Public License, if you
9744 # distribute this file as part of a program that contains a
9745 # configuration script generated by Autoconf, you may include it under
9746 # the same distribution terms that you use for the rest of that program.
9747
9748 # A sed program that does not truncate output.
9749 SED=$lt_SED
9750
9751 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9752 Xsed="$SED -e 1s/^X//"
9753
9754 # The HP-UX ksh and POSIX shell print the target directory to stdout
9755 # if CDPATH is set.
9756 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9757
9758 # The names of the tagged configurations supported by this script.
9759 available_tags=
9760
9761 # ### BEGIN LIBTOOL CONFIG
9762
9763 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9764
9765 # Shell to use when invoking shell scripts.
9766 SHELL=$lt_SHELL
9767
9768 # Whether or not to build shared libraries.
9769 build_libtool_libs=$enable_shared
9770
9771 # Whether or not to build static libraries.
9772 build_old_libs=$enable_static
9773
9774 # Whether or not to add -lc for building shared libraries.
9775 build_libtool_need_lc=$archive_cmds_need_lc
9776
9777 # Whether or not to disallow shared libs when runtime libs are static
9778 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9779
9780 # Whether or not to optimize for fast installation.
9781 fast_install=$enable_fast_install
9782
9783 # The host system.
9784 host_alias=$host_alias
9785 host=$host
9786 host_os=$host_os
9787
9788 # The build system.
9789 build_alias=$build_alias
9790 build=$build
9791 build_os=$build_os
9792
9793 # An echo program that does not interpret backslashes.
9794 echo=$lt_echo
9795
9796 # The archiver.
9797 AR=$lt_AR
9798 AR_FLAGS=$lt_AR_FLAGS
9799
9800 # A C compiler.
9801 LTCC=$lt_LTCC
9802
9803 # LTCC compiler flags.
9804 LTCFLAGS=$lt_LTCFLAGS
9805
9806 # A language-specific compiler.
9807 CC=$lt_compiler
9808
9809 # Is the compiler the GNU C compiler?
9810 with_gcc=$GCC
9811
9812 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
9813 gcc_ver=\`gcc -dumpversion\`
9814
9815 # An ERE matcher.
9816 EGREP=$lt_EGREP
9817
9818 # The linker used to build libraries.
9819 LD=$lt_LD
9820
9821 # Whether we need hard or soft links.
9822 LN_S=$lt_LN_S
9823
9824 # A BSD-compatible nm program.
9825 NM=$lt_NM
9826
9827 # A symbol stripping program
9828 STRIP=$lt_STRIP
9829
9830 # Used to examine libraries when file_magic_cmd begins "file"
9831 MAGIC_CMD=$MAGIC_CMD
9832
9833 # Used on cygwin: DLL creation program.
9834 DLLTOOL="$DLLTOOL"
9835
9836 # Used on cygwin: object dumper.
9837 OBJDUMP="$OBJDUMP"
9838
9839 # Used on cygwin: assembler.
9840 AS="$AS"
9841
9842 # The name of the directory that contains temporary libtool files.
9843 objdir=$objdir
9844
9845 # How to create reloadable object files.
9846 reload_flag=$lt_reload_flag
9847 reload_cmds=$lt_reload_cmds
9848
9849 # How to pass a linker flag through the compiler.
9850 wl=$lt_lt_prog_compiler_wl
9851
9852 # Object file suffix (normally "o").
9853 objext="$ac_objext"
9854
9855 # Old archive suffix (normally "a").
9856 libext="$libext"
9857
9858 # Shared library suffix (normally ".so").
9859 shrext_cmds='$shrext_cmds'
9860
9861 # Executable file suffix (normally "").
9862 exeext="$exeext"
9863
9864 # Additional compiler flags for building library objects.
9865 pic_flag=$lt_lt_prog_compiler_pic
9866 pic_mode=$pic_mode
9867
9868 # What is the maximum length of a command?
9869 max_cmd_len=$lt_cv_sys_max_cmd_len
9870
9871 # Does compiler simultaneously support -c and -o options?
9872 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9873
9874 # Must we lock files when doing compilation?
9875 need_locks=$lt_need_locks
9876
9877 # Do we need the lib prefix for modules?
9878 need_lib_prefix=$need_lib_prefix
9879
9880 # Do we need a version for libraries?
9881 need_version=$need_version
9882
9883 # Whether dlopen is supported.
9884 dlopen_support=$enable_dlopen
9885
9886 # Whether dlopen of programs is supported.
9887 dlopen_self=$enable_dlopen_self
9888
9889 # Whether dlopen of statically linked programs is supported.
9890 dlopen_self_static=$enable_dlopen_self_static
9891
9892 # Compiler flag to prevent dynamic linking.
9893 link_static_flag=$lt_lt_prog_compiler_static
9894
9895 # Compiler flag to turn off builtin functions.
9896 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9897
9898 # Compiler flag to allow reflexive dlopens.
9899 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9900
9901 # Compiler flag to generate shared objects directly from archives.
9902 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9903
9904 # Compiler flag to generate thread-safe objects.
9905 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9906
9907 # Library versioning type.
9908 version_type=$version_type
9909
9910 # Format of library name prefix.
9911 libname_spec=$lt_libname_spec
9912
9913 # List of archive names. First name is the real one, the rest are links.
9914 # The last name is the one that the linker finds with -lNAME.
9915 library_names_spec=$lt_library_names_spec
9916
9917 # The coded name of the library, if different from the real name.
9918 soname_spec=$lt_soname_spec
9919
9920 # Commands used to build and install an old-style archive.
9921 RANLIB=$lt_RANLIB
9922 old_archive_cmds=$lt_old_archive_cmds
9923 old_postinstall_cmds=$lt_old_postinstall_cmds
9924 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9925
9926 # Create an old-style archive from a shared archive.
9927 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9928
9929 # Create a temporary old-style archive to link instead of a shared archive.
9930 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9931
9932 # Commands used to build and install a shared archive.
9933 archive_cmds=$lt_archive_cmds
9934 archive_expsym_cmds=$lt_archive_expsym_cmds
9935 postinstall_cmds=$lt_postinstall_cmds
9936 postuninstall_cmds=$lt_postuninstall_cmds
9937
9938 # Commands used to build a loadable module (assumed same as above if empty)
9939 module_cmds=$lt_module_cmds
9940 module_expsym_cmds=$lt_module_expsym_cmds
9941
9942 # Commands to strip libraries.
9943 old_striplib=$lt_old_striplib
9944 striplib=$lt_striplib
9945
9946 # Dependencies to place before the objects being linked to create a
9947 # shared library.
9948 predep_objects=\`echo $lt_predep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9949
9950 # Dependencies to place after the objects being linked to create a
9951 # shared library.
9952 postdep_objects=\`echo $lt_postdep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9953
9954 # Dependencies to place before the objects being linked to create a
9955 # shared library.
9956 predeps=$lt_predeps
9957
9958 # Dependencies to place after the objects being linked to create a
9959 # shared library.
9960 postdeps=$lt_postdeps
9961
9962 # The library search path used internally by the compiler when linking
9963 # a shared library.
9964 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9965
9966 # Method to check whether dependent libraries are shared objects.
9967 deplibs_check_method=$lt_deplibs_check_method
9968
9969 # Command to use when deplibs_check_method == file_magic.
9970 file_magic_cmd=$lt_file_magic_cmd
9971
9972 # Flag that allows shared libraries with undefined symbols to be built.
9973 allow_undefined_flag=$lt_allow_undefined_flag
9974
9975 # Flag that forces no undefined symbols.
9976 no_undefined_flag=$lt_no_undefined_flag
9977
9978 # Commands used to finish a libtool library installation in a directory.
9979 finish_cmds=$lt_finish_cmds
9980
9981 # Same as above, but a single script fragment to be evaled but not shown.
9982 finish_eval=$lt_finish_eval
9983
9984 # Take the output of nm and produce a listing of raw symbols and C names.
9985 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9986
9987 # Transform the output of nm in a proper C declaration
9988 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9989
9990 # Transform the output of nm in a C name address pair
9991 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9992
9993 # This is the shared library runtime path variable.
9994 runpath_var=$runpath_var
9995
9996 # This is the shared library path variable.
9997 shlibpath_var=$shlibpath_var
9998
9999 # Is shlibpath searched before the hard-coded library search path?
10000 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10001
10002 # How to hardcode a shared library path into an executable.
10003 hardcode_action=$hardcode_action
10004
10005 # Whether we should hardcode library paths into libraries.
10006 hardcode_into_libs=$hardcode_into_libs
10007
10008 # Flag to hardcode \$libdir into a binary during linking.
10009 # This must work even if \$libdir does not exist.
10010 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10011
10012 # If ld is used when linking, flag to hardcode \$libdir into
10013 # a binary during linking. This must work even if \$libdir does
10014 # not exist.
10015 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10016
10017 # Whether we need a single -rpath flag with a separated argument.
10018 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10019
10020 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10021 # resulting binary.
10022 hardcode_direct=$hardcode_direct
10023
10024 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10025 # resulting binary.
10026 hardcode_minus_L=$hardcode_minus_L
10027
10028 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10029 # the resulting binary.
10030 hardcode_shlibpath_var=$hardcode_shlibpath_var
10031
10032 # Set to yes if building a shared library automatically hardcodes DIR into the library
10033 # and all subsequent libraries and executables linked against it.
10034 hardcode_automatic=$hardcode_automatic
10035
10036 # Variables whose values should be saved in libtool wrapper scripts and
10037 # restored at relink time.
10038 variables_saved_for_relink="$variables_saved_for_relink"
10039
10040 # Whether libtool must link a program against all its dependency libraries.
10041 link_all_deplibs=$link_all_deplibs
10042
10043 # Compile-time system search path for libraries
10044 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"\`
10045
10046 # Run-time system search path for libraries
10047 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10048
10049 # Fix the shell variable \$srcfile for the compiler.
10050 fix_srcfile_path="$fix_srcfile_path"
10051
10052 # Set to yes if exported symbols are required.
10053 always_export_symbols=$always_export_symbols
10054
10055 # The commands to list exported symbols.
10056 export_symbols_cmds=$lt_export_symbols_cmds
10057
10058 # The commands to extract the exported symbol list from a shared archive.
10059 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10060
10061 # Symbols that should not be listed in the preloaded symbols.
10062 exclude_expsyms=$lt_exclude_expsyms
10063
10064 # Symbols that must always be exported.
10065 include_expsyms=$lt_include_expsyms
10066
10067 # ### END LIBTOOL CONFIG
10068
10069 __EOF__
10070
10071
10072 case $host_os in
10073 aix3*)
10074 cat <<\EOF >> "$cfgfile"
10075
10076 # AIX sometimes has problems with the GCC collect2 program. For some
10077 # reason, if we set the COLLECT_NAMES environment variable, the problems
10078 # vanish in a puff of smoke.
10079 if test "X${COLLECT_NAMES+set}" != Xset; then
10080 COLLECT_NAMES=
10081 export COLLECT_NAMES
10082 fi
10083 EOF
10084 ;;
10085 esac
10086
10087 # We use sed instead of cat because bash on DJGPP gets confused if
10088 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10089 # text mode, it properly converts lines to CR/LF. This bash problem
10090 # is reportedly fixed, but why not run on old versions too?
10091 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10092
10093 mv -f "$cfgfile" "$ofile" || \
10094 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10095 chmod +x "$ofile"
10096
10097 else
10098 # If there is no Makefile yet, we rely on a make rule to execute
10099 # `config.status --recheck' to rerun these tests and create the
10100 # libtool script then.
10101 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10102 if test -f "$ltmain_in"; then
10103 test -f Makefile && make "$ltmain"
10104 fi
10105 fi
10106
10107
10108 ac_ext=c
10109 ac_cpp='$CPP $CPPFLAGS'
10110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10113
10114 CC="$lt_save_CC"
10115
10116
10117 # Check whether --with-tags or --without-tags was given.
10118 if test "${with_tags+set}" = set; then
10119 withval="$with_tags"
10120 tagnames="$withval"
10121 fi;
10122
10123 if test -f "$ltmain" && test -n "$tagnames"; then
10124 if test ! -f "${ofile}"; then
10125 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10126 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10127 fi
10128
10129 if test -z "$LTCC"; then
10130 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10131 if test -z "$LTCC"; then
10132 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10133 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10134 else
10135 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10136 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10137 fi
10138 fi
10139 if test -z "$LTCFLAGS"; then
10140 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10141 fi
10142
10143 # Extract list of available tagged configurations in $ofile.
10144 # Note that this assumes the entire list is on one line.
10145 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10146
10147 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10148 for tagname in $tagnames; do
10149 IFS="$lt_save_ifs"
10150 # Check whether tagname contains only valid characters
10151 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10152 "") ;;
10153 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10154 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10155 { (exit 1); exit 1; }; }
10156 ;;
10157 esac
10158
10159 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10160 then
10161 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10162 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10163 { (exit 1); exit 1; }; }
10164 fi
10165
10166 # Update the list of available tags.
10167 if test -n "$tagname"; then
10168 echo appending configuration tag \"$tagname\" to $ofile
10169
10170 case $tagname in
10171 CXX)
10172 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10173 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10174 (test "X$CXX" != "Xg++"))) ; then
10175 ac_ext=cc
10176 ac_cpp='$CXXCPP $CPPFLAGS'
10177 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10178 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10179 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10180
10181
10182
10183
10184 archive_cmds_need_lc_CXX=no
10185 allow_undefined_flag_CXX=
10186 always_export_symbols_CXX=no
10187 archive_expsym_cmds_CXX=
10188 export_dynamic_flag_spec_CXX=
10189 hardcode_direct_CXX=no
10190 hardcode_libdir_flag_spec_CXX=
10191 hardcode_libdir_flag_spec_ld_CXX=
10192 hardcode_libdir_separator_CXX=
10193 hardcode_minus_L_CXX=no
10194 hardcode_shlibpath_var_CXX=unsupported
10195 hardcode_automatic_CXX=no
10196 module_cmds_CXX=
10197 module_expsym_cmds_CXX=
10198 link_all_deplibs_CXX=unknown
10199 old_archive_cmds_CXX=$old_archive_cmds
10200 no_undefined_flag_CXX=
10201 whole_archive_flag_spec_CXX=
10202 enable_shared_with_static_runtimes_CXX=no
10203
10204 # Dependencies to place before and after the object being linked:
10205 predep_objects_CXX=
10206 postdep_objects_CXX=
10207 predeps_CXX=
10208 postdeps_CXX=
10209 compiler_lib_search_path_CXX=
10210
10211 # Source file extension for C++ test sources.
10212 ac_ext=cpp
10213
10214 # Object file extension for compiled C++ test sources.
10215 objext=o
10216 objext_CXX=$objext
10217
10218 # Code to be used in simple compile tests
10219 lt_simple_compile_test_code="int some_variable = 0;\n"
10220
10221 # Code to be used in simple link tests
10222 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10223
10224 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10225
10226 # If no C compiler was specified, use CC.
10227 LTCC=${LTCC-"$CC"}
10228
10229 # If no C compiler flags were specified, use CFLAGS.
10230 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10231
10232 # Allow CC to be a program name with arguments.
10233 compiler=$CC
10234
10235
10236 # save warnings/boilerplate of simple test code
10237 ac_outfile=conftest.$ac_objext
10238 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10239 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10240 _lt_compiler_boilerplate=`cat conftest.err`
10241 $rm conftest*
10242
10243 ac_outfile=conftest.$ac_objext
10244 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10245 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10246 _lt_linker_boilerplate=`cat conftest.err`
10247 $rm conftest*
10248
10249
10250 # Allow CC to be a program name with arguments.
10251 lt_save_CC=$CC
10252 lt_save_LD=$LD
10253 lt_save_GCC=$GCC
10254 GCC=$GXX
10255 lt_save_with_gnu_ld=$with_gnu_ld
10256 lt_save_path_LD=$lt_cv_path_LD
10257 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10258 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10259 else
10260 $as_unset lt_cv_prog_gnu_ld
10261 fi
10262 if test -n "${lt_cv_path_LDCXX+set}"; then
10263 lt_cv_path_LD=$lt_cv_path_LDCXX
10264 else
10265 $as_unset lt_cv_path_LD
10266 fi
10267 test -z "${LDCXX+set}" || LD=$LDCXX
10268 CC=${CXX-"c++"}
10269 compiler=$CC
10270 compiler_CXX=$CC
10271 for cc_temp in $compiler""; do
10272 case $cc_temp in
10273 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10274 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10275 \-*) ;;
10276 *) break;;
10277 esac
10278 done
10279 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10280
10281
10282 # We don't want -fno-exception wen compiling C++ code, so set the
10283 # no_builtin_flag separately
10284 if test "$GXX" = yes; then
10285 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10286 else
10287 lt_prog_compiler_no_builtin_flag_CXX=
10288 fi
10289
10290 if test "$GXX" = yes; then
10291 # Set up default GNU C++ configuration
10292
10293
10294 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10295 if test "${with_gnu_ld+set}" = set; then
10296 withval="$with_gnu_ld"
10297 test "$withval" = no || with_gnu_ld=yes
10298 else
10299 with_gnu_ld=no
10300 fi;
10301 ac_prog=ld
10302 if test "$GCC" = yes; then
10303 # Check if gcc -print-prog-name=ld gives a path.
10304 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10305 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10306 case $host in
10307 *-*-mingw*)
10308 # gcc leaves a trailing carriage return which upsets mingw
10309 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10310 *)
10311 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10312 esac
10313 case $ac_prog in
10314 # Accept absolute paths.
10315 [\\/]* | ?:[\\/]*)
10316 re_direlt='/[^/][^/]*/\.\./'
10317 # Canonicalize the pathname of ld
10318 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10319 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10320 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10321 done
10322 test -z "$LD" && LD="$ac_prog"
10323 ;;
10324 "")
10325 # If it fails, then pretend we aren't using GCC.
10326 ac_prog=ld
10327 ;;
10328 *)
10329 # If it is relative, then search for the first ld in PATH.
10330 with_gnu_ld=unknown
10331 ;;
10332 esac
10333 elif test "$with_gnu_ld" = yes; then
10334 echo "$as_me:$LINENO: checking for GNU ld" >&5
10335 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10336 else
10337 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10338 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10339 fi
10340 if test "${lt_cv_path_LD+set}" = set; then
10341 echo $ECHO_N "(cached) $ECHO_C" >&6
10342 else
10343 if test -z "$LD"; then
10344 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10345 for ac_dir in $PATH; do
10346 IFS="$lt_save_ifs"
10347 test -z "$ac_dir" && ac_dir=.
10348 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10349 lt_cv_path_LD="$ac_dir/$ac_prog"
10350 # Check to see if the program is GNU ld. I'd rather use --version,
10351 # but apparently some variants of GNU ld only accept -v.
10352 # Break only if it was the GNU/non-GNU ld that we prefer.
10353 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10354 *GNU* | *'with BFD'*)
10355 test "$with_gnu_ld" != no && break
10356 ;;
10357 *)
10358 test "$with_gnu_ld" != yes && break
10359 ;;
10360 esac
10361 fi
10362 done
10363 IFS="$lt_save_ifs"
10364 else
10365 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10366 fi
10367 fi
10368
10369 LD="$lt_cv_path_LD"
10370 if test -n "$LD"; then
10371 echo "$as_me:$LINENO: result: $LD" >&5
10372 echo "${ECHO_T}$LD" >&6
10373 else
10374 echo "$as_me:$LINENO: result: no" >&5
10375 echo "${ECHO_T}no" >&6
10376 fi
10377 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10378 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10379 { (exit 1); exit 1; }; }
10380 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10381 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10382 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10383 echo $ECHO_N "(cached) $ECHO_C" >&6
10384 else
10385 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10386 case `$LD -v 2>&1 </dev/null` in
10387 *GNU* | *'with BFD'*)
10388 lt_cv_prog_gnu_ld=yes
10389 ;;
10390 *)
10391 lt_cv_prog_gnu_ld=no
10392 ;;
10393 esac
10394 fi
10395 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10396 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10397 with_gnu_ld=$lt_cv_prog_gnu_ld
10398
10399
10400
10401 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10402 # archiving commands below assume that GNU ld is being used.
10403 if test "$with_gnu_ld" = yes; then
10404 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10405 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'
10406
10407 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10408 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10409
10410 # If archive_cmds runs LD, not CC, wlarc should be empty
10411 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10412 # investigate it a little bit more. (MM)
10413 wlarc='${wl}'
10414
10415 # ancient GNU ld didn't support --whole-archive et. al.
10416 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10417 grep 'no-whole-archive' > /dev/null; then
10418 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10419 else
10420 whole_archive_flag_spec_CXX=
10421 fi
10422 else
10423 with_gnu_ld=no
10424 wlarc=
10425
10426 # A generic and very simple default shared library creation
10427 # command for GNU C++ for the case where it uses the native
10428 # linker, instead of GNU ld. If possible, this setting should
10429 # overridden to take advantage of the native linker features on
10430 # the platform it is being used on.
10431 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10432 fi
10433
10434 # Commands to make compiler produce verbose output that lists
10435 # what "hidden" libraries, object files and flags are used when
10436 # linking a shared library.
10437 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10438
10439 else
10440 GXX=no
10441 with_gnu_ld=no
10442 wlarc=
10443 fi
10444
10445 # PORTME: fill in a description of your system's C++ link characteristics
10446 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10447 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10448 ld_shlibs_CXX=yes
10449 case $host_os in
10450 aix3*)
10451 # FIXME: insert proper C++ library support
10452 ld_shlibs_CXX=no
10453 ;;
10454 aix4* | aix5*)
10455 if test "$host_cpu" = ia64; then
10456 # On IA64, the linker does run time linking by default, so we don't
10457 # have to do anything special.
10458 aix_use_runtimelinking=no
10459 exp_sym_flag='-Bexport'
10460 no_entry_flag=""
10461 else
10462 aix_use_runtimelinking=no
10463
10464 # Test if we are trying to use run time linking or normal
10465 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10466 # need to do runtime linking.
10467 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10468 for ld_flag in $LDFLAGS; do
10469 case $ld_flag in
10470 *-brtl*)
10471 aix_use_runtimelinking=yes
10472 break
10473 ;;
10474 esac
10475 done
10476 ;;
10477 esac
10478
10479 exp_sym_flag='-bexport'
10480 no_entry_flag='-bnoentry'
10481 fi
10482
10483 # When large executables or shared objects are built, AIX ld can
10484 # have problems creating the table of contents. If linking a library
10485 # or program results in "error TOC overflow" add -mminimal-toc to
10486 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10487 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10488
10489 archive_cmds_CXX=''
10490 hardcode_direct_CXX=yes
10491 hardcode_libdir_separator_CXX=':'
10492 link_all_deplibs_CXX=yes
10493
10494 if test "$GXX" = yes; then
10495 case $host_os in aix4.[012]|aix4.[012].*)
10496 # We only want to do this on AIX 4.2 and lower, the check
10497 # below for broken collect2 doesn't work under 4.3+
10498 collect2name=`${CC} -print-prog-name=collect2`
10499 if test -f "$collect2name" && \
10500 strings "$collect2name" | grep resolve_lib_name >/dev/null
10501 then
10502 # We have reworked collect2
10503 hardcode_direct_CXX=yes
10504 else
10505 # We have old collect2
10506 hardcode_direct_CXX=unsupported
10507 # It fails to find uninstalled libraries when the uninstalled
10508 # path is not listed in the libpath. Setting hardcode_minus_L
10509 # to unsupported forces relinking
10510 hardcode_minus_L_CXX=yes
10511 hardcode_libdir_flag_spec_CXX='-L$libdir'
10512 hardcode_libdir_separator_CXX=
10513 fi
10514 ;;
10515 esac
10516 shared_flag='-shared'
10517 if test "$aix_use_runtimelinking" = yes; then
10518 shared_flag="$shared_flag "'${wl}-G'
10519 fi
10520 else
10521 # not using gcc
10522 if test "$host_cpu" = ia64; then
10523 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10524 # chokes on -Wl,-G. The following line is correct:
10525 shared_flag='-G'
10526 else
10527 if test "$aix_use_runtimelinking" = yes; then
10528 shared_flag='${wl}-G'
10529 else
10530 shared_flag='${wl}-bM:SRE'
10531 fi
10532 fi
10533 fi
10534
10535 # It seems that -bexpall does not export symbols beginning with
10536 # underscore (_), so it is better to generate a list of symbols to export.
10537 always_export_symbols_CXX=yes
10538 if test "$aix_use_runtimelinking" = yes; then
10539 # Warning - without using the other runtime loading flags (-brtl),
10540 # -berok will link without error, but may produce a broken library.
10541 allow_undefined_flag_CXX='-berok'
10542 # Determine the default libpath from the value encoded in an empty executable.
10543 cat >conftest.$ac_ext <<_ACEOF
10544 /* confdefs.h. */
10545 _ACEOF
10546 cat confdefs.h >>conftest.$ac_ext
10547 cat >>conftest.$ac_ext <<_ACEOF
10548 /* end confdefs.h. */
10549
10550 int
10551 main ()
10552 {
10553
10554 ;
10555 return 0;
10556 }
10557 _ACEOF
10558 rm -f conftest.$ac_objext conftest$ac_exeext
10559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10560 (eval $ac_link) 2>conftest.er1
10561 ac_status=$?
10562 grep -v '^ *+' conftest.er1 >conftest.err
10563 rm -f conftest.er1
10564 cat conftest.err >&5
10565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10566 (exit $ac_status); } &&
10567 { ac_try='test -z "$ac_cxx_werror_flag"
10568 || test ! -s conftest.err'
10569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10570 (eval $ac_try) 2>&5
10571 ac_status=$?
10572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10573 (exit $ac_status); }; } &&
10574 { ac_try='test -s conftest$ac_exeext'
10575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10576 (eval $ac_try) 2>&5
10577 ac_status=$?
10578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10579 (exit $ac_status); }; }; then
10580
10581 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10582 }'`
10583 # Check for a 64-bit object if we didn't find anything.
10584 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; }
10585 }'`; fi
10586 else
10587 echo "$as_me: failed program was:" >&5
10588 sed 's/^/| /' conftest.$ac_ext >&5
10589
10590 fi
10591 rm -f conftest.err conftest.$ac_objext \
10592 conftest$ac_exeext conftest.$ac_ext
10593 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10594
10595 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10596
10597 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"
10598 else
10599 if test "$host_cpu" = ia64; then
10600 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10601 allow_undefined_flag_CXX="-z nodefs"
10602 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"
10603 else
10604 # Determine the default libpath from the value encoded in an empty executable.
10605 cat >conftest.$ac_ext <<_ACEOF
10606 /* confdefs.h. */
10607 _ACEOF
10608 cat confdefs.h >>conftest.$ac_ext
10609 cat >>conftest.$ac_ext <<_ACEOF
10610 /* end confdefs.h. */
10611
10612 int
10613 main ()
10614 {
10615
10616 ;
10617 return 0;
10618 }
10619 _ACEOF
10620 rm -f conftest.$ac_objext conftest$ac_exeext
10621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10622 (eval $ac_link) 2>conftest.er1
10623 ac_status=$?
10624 grep -v '^ *+' conftest.er1 >conftest.err
10625 rm -f conftest.er1
10626 cat conftest.err >&5
10627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10628 (exit $ac_status); } &&
10629 { ac_try='test -z "$ac_cxx_werror_flag"
10630 || test ! -s conftest.err'
10631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10632 (eval $ac_try) 2>&5
10633 ac_status=$?
10634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10635 (exit $ac_status); }; } &&
10636 { ac_try='test -s conftest$ac_exeext'
10637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10638 (eval $ac_try) 2>&5
10639 ac_status=$?
10640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10641 (exit $ac_status); }; }; then
10642
10643 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10644 }'`
10645 # Check for a 64-bit object if we didn't find anything.
10646 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; }
10647 }'`; fi
10648 else
10649 echo "$as_me: failed program was:" >&5
10650 sed 's/^/| /' conftest.$ac_ext >&5
10651
10652 fi
10653 rm -f conftest.err conftest.$ac_objext \
10654 conftest$ac_exeext conftest.$ac_ext
10655 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10656
10657 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10658 # Warning - without using the other run time loading flags,
10659 # -berok will link without error, but may produce a broken library.
10660 no_undefined_flag_CXX=' ${wl}-bernotok'
10661 allow_undefined_flag_CXX=' ${wl}-berok'
10662 # Exported symbols can be pulled into shared objects from archives
10663 whole_archive_flag_spec_CXX='$convenience'
10664 archive_cmds_need_lc_CXX=yes
10665 # This is similar to how AIX traditionally builds its shared libraries.
10666 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'
10667 fi
10668 fi
10669 ;;
10670
10671 beos*)
10672 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10673 allow_undefined_flag_CXX=unsupported
10674 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10675 # support --undefined. This deserves some investigation. FIXME
10676 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10677 else
10678 ld_shlibs_CXX=no
10679 fi
10680 ;;
10681
10682 chorus*)
10683 case $cc_basename in
10684 *)
10685 # FIXME: insert proper C++ library support
10686 ld_shlibs_CXX=no
10687 ;;
10688 esac
10689 ;;
10690
10691 cygwin* | mingw* | pw32*)
10692 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10693 # as there is no search path for DLLs.
10694 hardcode_libdir_flag_spec_CXX='-L$libdir'
10695 allow_undefined_flag_CXX=unsupported
10696 always_export_symbols_CXX=no
10697 enable_shared_with_static_runtimes_CXX=yes
10698
10699 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10700 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'
10701 # If the export-symbols file already is a .def file (1st line
10702 # is EXPORTS), use it as is; otherwise, prepend...
10703 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10704 cp $export_symbols $output_objdir/$soname.def;
10705 else
10706 echo EXPORTS > $output_objdir/$soname.def;
10707 cat $export_symbols >> $output_objdir/$soname.def;
10708 fi~
10709 $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'
10710 else
10711 ld_shlibs_CXX=no
10712 fi
10713 ;;
10714 darwin* | rhapsody*)
10715 case $host_os in
10716 rhapsody* | darwin1.[012])
10717 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10718 ;;
10719 *) # Darwin 1.3 on
10720 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10721 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10722 else
10723 case ${MACOSX_DEPLOYMENT_TARGET} in
10724 10.[012])
10725 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10726 ;;
10727 10.*)
10728 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10729 ;;
10730 esac
10731 fi
10732 ;;
10733 esac
10734 archive_cmds_need_lc_CXX=no
10735 hardcode_direct_CXX=no
10736 hardcode_automatic_CXX=yes
10737 hardcode_shlibpath_var_CXX=unsupported
10738 whole_archive_flag_spec_CXX=''
10739 link_all_deplibs_CXX=yes
10740
10741 if test "$GXX" = yes ; then
10742 lt_int_apple_cc_single_mod=no
10743 output_verbose_link_cmd='echo'
10744 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10745 lt_int_apple_cc_single_mod=yes
10746 fi
10747 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10748 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10749 else
10750 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'
10751 fi
10752 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10753 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10754 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10755 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}'
10756 else
10757 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}'
10758 fi
10759 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}'
10760 else
10761 case $cc_basename in
10762 xlc*)
10763 output_verbose_link_cmd='echo'
10764 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'
10765 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10766 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10767 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}'
10768 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}'
10769 ;;
10770 *)
10771 ld_shlibs_CXX=no
10772 ;;
10773 esac
10774 fi
10775 ;;
10776
10777 dgux*)
10778 case $cc_basename in
10779 ec++*)
10780 # FIXME: insert proper C++ library support
10781 ld_shlibs_CXX=no
10782 ;;
10783 ghcx*)
10784 # Green Hills C++ Compiler
10785 # FIXME: insert proper C++ library support
10786 ld_shlibs_CXX=no
10787 ;;
10788 *)
10789 # FIXME: insert proper C++ library support
10790 ld_shlibs_CXX=no
10791 ;;
10792 esac
10793 ;;
10794 freebsd[12]*)
10795 # C++ shared libraries reported to be fairly broken before switch to ELF
10796 ld_shlibs_CXX=no
10797 ;;
10798 freebsd-elf*)
10799 archive_cmds_need_lc_CXX=no
10800 ;;
10801 freebsd* | kfreebsd*-gnu | dragonfly*)
10802 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10803 # conventions
10804 ld_shlibs_CXX=yes
10805 ;;
10806 gnu*)
10807 ;;
10808 hpux9*)
10809 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10810 hardcode_libdir_separator_CXX=:
10811 export_dynamic_flag_spec_CXX='${wl}-E'
10812 hardcode_direct_CXX=yes
10813 hardcode_minus_L_CXX=yes # Not in the search PATH,
10814 # but as the default
10815 # location of the library.
10816
10817 case $cc_basename in
10818 CC*)
10819 # FIXME: insert proper C++ library support
10820 ld_shlibs_CXX=no
10821 ;;
10822 aCC*)
10823 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'
10824 # Commands to make compiler produce verbose output that lists
10825 # what "hidden" libraries, object files and flags are used when
10826 # linking a shared library.
10827 #
10828 # There doesn't appear to be a way to prevent this compiler from
10829 # explicitly linking system object files so we need to strip them
10830 # from the output so that they don't get included in the library
10831 # dependencies.
10832 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'
10833 ;;
10834 *)
10835 if test "$GXX" = yes; then
10836 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'
10837 else
10838 # FIXME: insert proper C++ library support
10839 ld_shlibs_CXX=no
10840 fi
10841 ;;
10842 esac
10843 ;;
10844 hpux10*|hpux11*)
10845 if test $with_gnu_ld = no; then
10846 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10847 hardcode_libdir_separator_CXX=:
10848
10849 case $host_cpu in
10850 hppa*64*|ia64*)
10851 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10852 ;;
10853 *)
10854 export_dynamic_flag_spec_CXX='${wl}-E'
10855 ;;
10856 esac
10857 fi
10858 case $host_cpu in
10859 hppa*64*|ia64*)
10860 hardcode_direct_CXX=no
10861 hardcode_shlibpath_var_CXX=no
10862 ;;
10863 *)
10864 hardcode_direct_CXX=yes
10865 hardcode_minus_L_CXX=yes # Not in the search PATH,
10866 # but as the default
10867 # location of the library.
10868 ;;
10869 esac
10870
10871 case $cc_basename in
10872 CC*)
10873 # FIXME: insert proper C++ library support
10874 ld_shlibs_CXX=no
10875 ;;
10876 aCC*)
10877 case $host_cpu in
10878 hppa*64*)
10879 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10880 ;;
10881 ia64*)
10882 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10883 ;;
10884 *)
10885 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10886 ;;
10887 esac
10888 # Commands to make compiler produce verbose output that lists
10889 # what "hidden" libraries, object files and flags are used when
10890 # linking a shared library.
10891 #
10892 # There doesn't appear to be a way to prevent this compiler from
10893 # explicitly linking system object files so we need to strip them
10894 # from the output so that they don't get included in the library
10895 # dependencies.
10896 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'
10897 ;;
10898 *)
10899 if test "$GXX" = yes; then
10900 if test $with_gnu_ld = no; then
10901 case $host_cpu in
10902 hppa*64*)
10903 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10904 ;;
10905 ia64*)
10906 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10907 ;;
10908 *)
10909 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'
10910 ;;
10911 esac
10912 fi
10913 else
10914 # FIXME: insert proper C++ library support
10915 ld_shlibs_CXX=no
10916 fi
10917 ;;
10918 esac
10919 ;;
10920 interix3*)
10921 hardcode_direct_CXX=no
10922 hardcode_shlibpath_var_CXX=no
10923 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10924 export_dynamic_flag_spec_CXX='${wl}-E'
10925 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10926 # Instead, shared libraries are loaded at an image base (0x10000000 by
10927 # default) and relocated if they conflict, which is a slow very memory
10928 # consuming and fragmenting process. To avoid this, we pick a random,
10929 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10930 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10931 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'
10932 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'
10933 ;;
10934 irix5* | irix6*)
10935 case $cc_basename in
10936 CC*)
10937 # SGI C++
10938 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'
10939
10940 # Archives containing C++ object files must be created using
10941 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10942 # necessary to make sure instantiated templates are included
10943 # in the archive.
10944 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10945 ;;
10946 *)
10947 if test "$GXX" = yes; then
10948 if test "$with_gnu_ld" = no; then
10949 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'
10950 else
10951 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'
10952 fi
10953 fi
10954 link_all_deplibs_CXX=yes
10955 ;;
10956 esac
10957 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10958 hardcode_libdir_separator_CXX=:
10959 ;;
10960 linux*)
10961 case $cc_basename in
10962 KCC*)
10963 # Kuck and Associates, Inc. (KAI) C++ Compiler
10964
10965 # KCC will only create a shared library if the output file
10966 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10967 # to its proper name (with version) after linking.
10968 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'
10969 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'
10970 # Commands to make compiler produce verbose output that lists
10971 # what "hidden" libraries, object files and flags are used when
10972 # linking a shared library.
10973 #
10974 # There doesn't appear to be a way to prevent this compiler from
10975 # explicitly linking system object files so we need to strip them
10976 # from the output so that they don't get included in the library
10977 # dependencies.
10978 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'
10979
10980 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10981 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10982
10983 # Archives containing C++ object files must be created using
10984 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10985 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10986 ;;
10987 icpc*)
10988 # Intel C++
10989 with_gnu_ld=yes
10990 # version 8.0 and above of icpc choke on multiply defined symbols
10991 # if we add $predep_objects and $postdep_objects, however 7.1 and
10992 # earlier do not add the objects themselves.
10993 case `$CC -V 2>&1` in
10994 *"Version 7."*)
10995 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10996 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'
10997 ;;
10998 *) # Version 8.0 or newer
10999 tmp_idyn=
11000 case $host_cpu in
11001 ia64*) tmp_idyn=' -i_dynamic';;
11002 esac
11003 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11004 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'
11005 ;;
11006 esac
11007 archive_cmds_need_lc_CXX=no
11008 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11009 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11010 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11011 ;;
11012 pgCC*)
11013 # Portland Group C++ compiler
11014 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11015 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'
11016
11017 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11018 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11019 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'
11020 ;;
11021 cxx*)
11022 # Compaq C++
11023 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11024 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'
11025
11026 runpath_var=LD_RUN_PATH
11027 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11028 hardcode_libdir_separator_CXX=:
11029
11030 # Commands to make compiler produce verbose output that lists
11031 # what "hidden" libraries, object files and flags are used when
11032 # linking a shared library.
11033 #
11034 # There doesn't appear to be a way to prevent this compiler from
11035 # explicitly linking system object files so we need to strip them
11036 # from the output so that they don't get included in the library
11037 # dependencies.
11038 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'
11039 ;;
11040 esac
11041 ;;
11042 lynxos*)
11043 # FIXME: insert proper C++ library support
11044 ld_shlibs_CXX=no
11045 ;;
11046 m88k*)
11047 # FIXME: insert proper C++ library support
11048 ld_shlibs_CXX=no
11049 ;;
11050 mvs*)
11051 case $cc_basename in
11052 cxx*)
11053 # FIXME: insert proper C++ library support
11054 ld_shlibs_CXX=no
11055 ;;
11056 *)
11057 # FIXME: insert proper C++ library support
11058 ld_shlibs_CXX=no
11059 ;;
11060 esac
11061 ;;
11062 netbsd*)
11063 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11064 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11065 wlarc=
11066 hardcode_libdir_flag_spec_CXX='-R$libdir'
11067 hardcode_direct_CXX=yes
11068 hardcode_shlibpath_var_CXX=no
11069 fi
11070 # Workaround some broken pre-1.5 toolchains
11071 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11072 ;;
11073 openbsd2*)
11074 # C++ shared libraries are fairly broken
11075 ld_shlibs_CXX=no
11076 ;;
11077 openbsd*)
11078 hardcode_direct_CXX=yes
11079 hardcode_shlibpath_var_CXX=no
11080 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11081 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11082 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11083 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11084 export_dynamic_flag_spec_CXX='${wl}-E'
11085 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11086 fi
11087 output_verbose_link_cmd='echo'
11088 ;;
11089 osf3*)
11090 case $cc_basename in
11091 KCC*)
11092 # Kuck and Associates, Inc. (KAI) C++ Compiler
11093
11094 # KCC will only create a shared library if the output file
11095 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11096 # to its proper name (with version) after linking.
11097 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'
11098
11099 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11100 hardcode_libdir_separator_CXX=:
11101
11102 # Archives containing C++ object files must be created using
11103 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11104 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11105
11106 ;;
11107 RCC*)
11108 # Rational C++ 2.4.1
11109 # FIXME: insert proper C++ library support
11110 ld_shlibs_CXX=no
11111 ;;
11112 cxx*)
11113 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11114 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'
11115
11116 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11117 hardcode_libdir_separator_CXX=:
11118
11119 # Commands to make compiler produce verbose output that lists
11120 # what "hidden" libraries, object files and flags are used when
11121 # linking a shared library.
11122 #
11123 # There doesn't appear to be a way to prevent this compiler from
11124 # explicitly linking system object files so we need to strip them
11125 # from the output so that they don't get included in the library
11126 # dependencies.
11127 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'
11128 ;;
11129 *)
11130 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11131 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11132 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'
11133
11134 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11135 hardcode_libdir_separator_CXX=:
11136
11137 # Commands to make compiler produce verbose output that lists
11138 # what "hidden" libraries, object files and flags are used when
11139 # linking a shared library.
11140 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11141
11142 else
11143 # FIXME: insert proper C++ library support
11144 ld_shlibs_CXX=no
11145 fi
11146 ;;
11147 esac
11148 ;;
11149 osf4* | osf5*)
11150 case $cc_basename in
11151 KCC*)
11152 # Kuck and Associates, Inc. (KAI) C++ Compiler
11153
11154 # KCC will only create a shared library if the output file
11155 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11156 # to its proper name (with version) after linking.
11157 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'
11158
11159 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11160 hardcode_libdir_separator_CXX=:
11161
11162 # Archives containing C++ object files must be created using
11163 # the KAI C++ compiler.
11164 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11165 ;;
11166 RCC*)
11167 # Rational C++ 2.4.1
11168 # FIXME: insert proper C++ library support
11169 ld_shlibs_CXX=no
11170 ;;
11171 cxx*)
11172 allow_undefined_flag_CXX=' -expect_unresolved \*'
11173 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'
11174 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11175 echo "-hidden">> $lib.exp~
11176 $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~
11177 $rm $lib.exp'
11178
11179 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11180 hardcode_libdir_separator_CXX=:
11181
11182 # Commands to make compiler produce verbose output that lists
11183 # what "hidden" libraries, object files and flags are used when
11184 # linking a shared library.
11185 #
11186 # There doesn't appear to be a way to prevent this compiler from
11187 # explicitly linking system object files so we need to strip them
11188 # from the output so that they don't get included in the library
11189 # dependencies.
11190 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'
11191 ;;
11192 *)
11193 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11194 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11195 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'
11196
11197 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11198 hardcode_libdir_separator_CXX=:
11199
11200 # Commands to make compiler produce verbose output that lists
11201 # what "hidden" libraries, object files and flags are used when
11202 # linking a shared library.
11203 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11204
11205 else
11206 # FIXME: insert proper C++ library support
11207 ld_shlibs_CXX=no
11208 fi
11209 ;;
11210 esac
11211 ;;
11212 psos*)
11213 # FIXME: insert proper C++ library support
11214 ld_shlibs_CXX=no
11215 ;;
11216 sunos4*)
11217 case $cc_basename in
11218 CC*)
11219 # Sun C++ 4.x
11220 # FIXME: insert proper C++ library support
11221 ld_shlibs_CXX=no
11222 ;;
11223 lcc*)
11224 # Lucid
11225 # FIXME: insert proper C++ library support
11226 ld_shlibs_CXX=no
11227 ;;
11228 *)
11229 # FIXME: insert proper C++ library support
11230 ld_shlibs_CXX=no
11231 ;;
11232 esac
11233 ;;
11234 solaris*)
11235 case $cc_basename in
11236 CC*)
11237 # Sun C++ 4.2, 5.x and Centerline C++
11238 archive_cmds_need_lc_CXX=yes
11239 no_undefined_flag_CXX=' -zdefs'
11240 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11241 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11242 $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'
11243
11244 hardcode_libdir_flag_spec_CXX='-R$libdir'
11245 hardcode_shlibpath_var_CXX=no
11246 case $host_os in
11247 solaris2.[0-5] | solaris2.[0-5].*) ;;
11248 *)
11249 # The C++ compiler is used as linker so we must use $wl
11250 # flag to pass the commands to the underlying system
11251 # linker. We must also pass each convience library through
11252 # to the system linker between allextract/defaultextract.
11253 # The C++ compiler will combine linker options so we
11254 # cannot just pass the convience library names through
11255 # without $wl.
11256 # Supported since Solaris 2.6 (maybe 2.5.1?)
11257 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'
11258 ;;
11259 esac
11260 link_all_deplibs_CXX=yes
11261
11262 output_verbose_link_cmd='echo'
11263
11264 # Archives containing C++ object files must be created using
11265 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11266 # necessary to make sure instantiated templates are included
11267 # in the archive.
11268 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11269 ;;
11270 gcx*)
11271 # Green Hills C++ Compiler
11272 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11273
11274 # The C++ compiler must be used to create the archive.
11275 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11276 ;;
11277 *)
11278 # GNU C++ compiler with Solaris linker
11279 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11280 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11281 if $CC --version | grep -v '^2\.7' > /dev/null; then
11282 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11283 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11284 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11285
11286 # Commands to make compiler produce verbose output that lists
11287 # what "hidden" libraries, object files and flags are used when
11288 # linking a shared library.
11289 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11290 else
11291 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11292 # platform.
11293 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11294 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11295 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11296
11297 # Commands to make compiler produce verbose output that lists
11298 # what "hidden" libraries, object files and flags are used when
11299 # linking a shared library.
11300 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11301 fi
11302
11303 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11304 fi
11305 ;;
11306 esac
11307 ;;
11308 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11309 no_undefined_flag_CXX='${wl}-z,text'
11310 archive_cmds_need_lc_CXX=no
11311 hardcode_shlibpath_var_CXX=no
11312 runpath_var='LD_RUN_PATH'
11313
11314 case $cc_basename in
11315 CC*)
11316 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11317 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11318 ;;
11319 *)
11320 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11321 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11322 ;;
11323 esac
11324 ;;
11325 sysv5* | sco3.2v5* | sco5v6*)
11326 # Note: We can NOT use -z defs as we might desire, because we do not
11327 # link with -lc, and that would cause any symbols used from libc to
11328 # always be unresolved, which means just about no library would
11329 # ever link correctly. If we're not using GNU ld we use -z text
11330 # though, which does catch some bad symbols but isn't as heavy-handed
11331 # as -z defs.
11332 # For security reasons, it is highly recommended that you always
11333 # use absolute paths for naming shared libraries, and exclude the
11334 # DT_RUNPATH tag from executables and libraries. But doing so
11335 # requires that you compile everything twice, which is a pain.
11336 # So that behaviour is only enabled if SCOABSPATH is set to a
11337 # non-empty value in the environment. Most likely only useful for
11338 # creating official distributions of packages.
11339 # This is a hack until libtool officially supports absolute path
11340 # names for shared libraries.
11341 no_undefined_flag_CXX='${wl}-z,text'
11342 allow_undefined_flag_CXX='${wl}-z,nodefs'
11343 archive_cmds_need_lc_CXX=no
11344 hardcode_shlibpath_var_CXX=no
11345 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11346 hardcode_libdir_separator_CXX=':'
11347 link_all_deplibs_CXX=yes
11348 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11349 runpath_var='LD_RUN_PATH'
11350
11351 case $cc_basename in
11352 CC*)
11353 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11354 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11355 ;;
11356 *)
11357 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11358 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11359 ;;
11360 esac
11361 ;;
11362 tandem*)
11363 case $cc_basename in
11364 NCC*)
11365 # NonStop-UX NCC 3.20
11366 # FIXME: insert proper C++ library support
11367 ld_shlibs_CXX=no
11368 ;;
11369 *)
11370 # FIXME: insert proper C++ library support
11371 ld_shlibs_CXX=no
11372 ;;
11373 esac
11374 ;;
11375 vxworks*)
11376 # FIXME: insert proper C++ library support
11377 ld_shlibs_CXX=no
11378 ;;
11379 *)
11380 # FIXME: insert proper C++ library support
11381 ld_shlibs_CXX=no
11382 ;;
11383 esac
11384 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11385 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11386 test "$ld_shlibs_CXX" = no && can_build_shared=no
11387
11388 GCC_CXX="$GXX"
11389 LD_CXX="$LD"
11390
11391
11392 cat > conftest.$ac_ext <<EOF
11393 class Foo
11394 {
11395 public:
11396 Foo (void) { a = 0; }
11397 private:
11398 int a;
11399 };
11400 EOF
11401
11402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11403 (eval $ac_compile) 2>&5
11404 ac_status=$?
11405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11406 (exit $ac_status); }; then
11407 # Parse the compiler output and extract the necessary
11408 # objects, libraries and library flags.
11409
11410 # Sentinel used to keep track of whether or not we are before
11411 # the conftest object file.
11412 pre_test_object_deps_done=no
11413
11414 # The `*' in the case matches for architectures that use `case' in
11415 # $output_verbose_cmd can trigger glob expansion during the loop
11416 # eval without this substitution.
11417 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11418
11419 for p in `eval $output_verbose_link_cmd`; do
11420 case $p in
11421
11422 -L* | -R* | -l*)
11423 # Some compilers place space between "-{L,R}" and the path.
11424 # Remove the space.
11425 if test $p = "-L" \
11426 || test $p = "-R"; then
11427 prev=$p
11428 continue
11429 else
11430 prev=
11431 fi
11432
11433 if test "$pre_test_object_deps_done" = no; then
11434 case $p in
11435 -L* | -R*)
11436 # Internal compiler library paths should come after those
11437 # provided the user. The postdeps already come after the
11438 # user supplied libs so there is no need to process them.
11439 if test -z "$compiler_lib_search_path_CXX"; then
11440 compiler_lib_search_path_CXX="${prev}${p}"
11441 else
11442 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11443 fi
11444 ;;
11445 # The "-l" case would never come before the object being
11446 # linked, so don't bother handling this case.
11447 esac
11448 else
11449 if test -z "$postdeps_CXX"; then
11450 postdeps_CXX="${prev}${p}"
11451 else
11452 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11453 fi
11454 fi
11455 ;;
11456
11457 *.$objext)
11458 # This assumes that the test object file only shows up
11459 # once in the compiler output.
11460 if test "$p" = "conftest.$objext"; then
11461 pre_test_object_deps_done=yes
11462 continue
11463 fi
11464
11465 if test "$pre_test_object_deps_done" = no; then
11466 if test -z "$predep_objects_CXX"; then
11467 predep_objects_CXX="$p"
11468 else
11469 predep_objects_CXX="$predep_objects_CXX $p"
11470 fi
11471 else
11472 if test -z "$postdep_objects_CXX"; then
11473 postdep_objects_CXX="$p"
11474 else
11475 postdep_objects_CXX="$postdep_objects_CXX $p"
11476 fi
11477 fi
11478 ;;
11479
11480 *) ;; # Ignore the rest.
11481
11482 esac
11483 done
11484
11485 # Clean up.
11486 rm -f a.out a.exe
11487 else
11488 echo "libtool.m4: error: problem compiling CXX test program"
11489 fi
11490
11491 $rm -f confest.$objext
11492
11493 # PORTME: override above test on systems where it is broken
11494 case $host_os in
11495 interix3*)
11496 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11497 # hack all around it, let's just trust "g++" to DTRT.
11498 predep_objects_CXX=
11499 postdep_objects_CXX=
11500 postdeps_CXX=
11501 ;;
11502
11503 solaris*)
11504 case $cc_basename in
11505 CC*)
11506 # Adding this requires a known-good setup of shared libraries for
11507 # Sun compiler versions before 5.6, else PIC objects from an old
11508 # archive will be linked into the output, leading to subtle bugs.
11509 postdeps_CXX='-lCstd -lCrun'
11510 ;;
11511 esac
11512 ;;
11513 esac
11514
11515
11516 case " $postdeps_CXX " in
11517 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11518 esac
11519
11520 lt_prog_compiler_wl_CXX=
11521 lt_prog_compiler_pic_CXX=
11522 lt_prog_compiler_static_CXX=
11523
11524 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11525 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11526
11527 # C++ specific cases for pic, static, wl, etc.
11528 if test "$GXX" = yes; then
11529 lt_prog_compiler_wl_CXX='-Wl,'
11530 lt_prog_compiler_static_CXX='-static'
11531
11532 case $host_os in
11533 aix*)
11534 # All AIX code is PIC.
11535 if test "$host_cpu" = ia64; then
11536 # AIX 5 now supports IA64 processor
11537 lt_prog_compiler_static_CXX='-Bstatic'
11538 fi
11539 ;;
11540 amigaos*)
11541 # FIXME: we need at least 68020 code to build shared libraries, but
11542 # adding the `-m68020' flag to GCC prevents building anything better,
11543 # like `-m68040'.
11544 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11545 ;;
11546 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11547 # PIC is the default for these OSes.
11548 ;;
11549 mingw* | os2* | pw32*)
11550 # This hack is so that the source file can tell whether it is being
11551 # built for inclusion in a dll (and should export symbols for example).
11552 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11553 ;;
11554 darwin* | rhapsody*)
11555 # PIC is the default on this platform
11556 # Common symbols not allowed in MH_DYLIB files
11557 lt_prog_compiler_pic_CXX='-fno-common'
11558 ;;
11559 *djgpp*)
11560 # DJGPP does not support shared libraries at all
11561 lt_prog_compiler_pic_CXX=
11562 ;;
11563 interix3*)
11564 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11565 # Instead, we relocate shared libraries at runtime.
11566 ;;
11567 sysv4*MP*)
11568 if test -d /usr/nec; then
11569 lt_prog_compiler_pic_CXX=-Kconform_pic
11570 fi
11571 ;;
11572 hpux*)
11573 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11574 # not for PA HP-UX.
11575 case $host_cpu in
11576 hppa*64*|ia64*)
11577 ;;
11578 *)
11579 lt_prog_compiler_pic_CXX='-fPIC'
11580 ;;
11581 esac
11582 ;;
11583 *)
11584 lt_prog_compiler_pic_CXX='-fPIC'
11585 ;;
11586 esac
11587 else
11588 case $host_os in
11589 aix4* | aix5*)
11590 # All AIX code is PIC.
11591 if test "$host_cpu" = ia64; then
11592 # AIX 5 now supports IA64 processor
11593 lt_prog_compiler_static_CXX='-Bstatic'
11594 else
11595 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11596 fi
11597 ;;
11598 chorus*)
11599 case $cc_basename in
11600 cxch68*)
11601 # Green Hills C++ Compiler
11602 # _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"
11603 ;;
11604 esac
11605 ;;
11606 darwin*)
11607 # PIC is the default on this platform
11608 # Common symbols not allowed in MH_DYLIB files
11609 case $cc_basename in
11610 xlc*)
11611 lt_prog_compiler_pic_CXX='-qnocommon'
11612 lt_prog_compiler_wl_CXX='-Wl,'
11613 ;;
11614 esac
11615 ;;
11616 dgux*)
11617 case $cc_basename in
11618 ec++*)
11619 lt_prog_compiler_pic_CXX='-KPIC'
11620 ;;
11621 ghcx*)
11622 # Green Hills C++ Compiler
11623 lt_prog_compiler_pic_CXX='-pic'
11624 ;;
11625 *)
11626 ;;
11627 esac
11628 ;;
11629 freebsd* | kfreebsd*-gnu | dragonfly*)
11630 # FreeBSD uses GNU C++
11631 ;;
11632 hpux9* | hpux10* | hpux11*)
11633 case $cc_basename in
11634 CC*)
11635 lt_prog_compiler_wl_CXX='-Wl,'
11636 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11637 if test "$host_cpu" != ia64; then
11638 lt_prog_compiler_pic_CXX='+Z'
11639 fi
11640 ;;
11641 aCC*)
11642 lt_prog_compiler_wl_CXX='-Wl,'
11643 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11644 case $host_cpu in
11645 hppa*64*|ia64*)
11646 # +Z the default
11647 ;;
11648 *)
11649 lt_prog_compiler_pic_CXX='+Z'
11650 ;;
11651 esac
11652 ;;
11653 *)
11654 ;;
11655 esac
11656 ;;
11657 interix*)
11658 # This is c89, which is MS Visual C++ (no shared libs)
11659 # Anyone wants to do a port?
11660 ;;
11661 irix5* | irix6* | nonstopux*)
11662 case $cc_basename in
11663 CC*)
11664 lt_prog_compiler_wl_CXX='-Wl,'
11665 lt_prog_compiler_static_CXX='-non_shared'
11666 # CC pic flag -KPIC is the default.
11667 ;;
11668 *)
11669 ;;
11670 esac
11671 ;;
11672 linux*)
11673 case $cc_basename in
11674 KCC*)
11675 # KAI C++ Compiler
11676 lt_prog_compiler_wl_CXX='--backend -Wl,'
11677 lt_prog_compiler_pic_CXX='-fPIC'
11678 ;;
11679 icpc* | ecpc*)
11680 # Intel C++
11681 lt_prog_compiler_wl_CXX='-Wl,'
11682 lt_prog_compiler_pic_CXX='-KPIC'
11683 lt_prog_compiler_static_CXX='-static'
11684 ;;
11685 pgCC*)
11686 # Portland Group C++ compiler.
11687 lt_prog_compiler_wl_CXX='-Wl,'
11688 lt_prog_compiler_pic_CXX='-fpic'
11689 lt_prog_compiler_static_CXX='-Bstatic'
11690 ;;
11691 cxx*)
11692 # Compaq C++
11693 # Make sure the PIC flag is empty. It appears that all Alpha
11694 # Linux and Compaq Tru64 Unix objects are PIC.
11695 lt_prog_compiler_pic_CXX=
11696 lt_prog_compiler_static_CXX='-non_shared'
11697 ;;
11698 *)
11699 ;;
11700 esac
11701 ;;
11702 lynxos*)
11703 ;;
11704 m88k*)
11705 ;;
11706 mvs*)
11707 case $cc_basename in
11708 cxx*)
11709 lt_prog_compiler_pic_CXX='-W c,exportall'
11710 ;;
11711 *)
11712 ;;
11713 esac
11714 ;;
11715 netbsd*)
11716 ;;
11717 osf3* | osf4* | osf5*)
11718 case $cc_basename in
11719 KCC*)
11720 lt_prog_compiler_wl_CXX='--backend -Wl,'
11721 ;;
11722 RCC*)
11723 # Rational C++ 2.4.1
11724 lt_prog_compiler_pic_CXX='-pic'
11725 ;;
11726 cxx*)
11727 # Digital/Compaq C++
11728 lt_prog_compiler_wl_CXX='-Wl,'
11729 # Make sure the PIC flag is empty. It appears that all Alpha
11730 # Linux and Compaq Tru64 Unix objects are PIC.
11731 lt_prog_compiler_pic_CXX=
11732 lt_prog_compiler_static_CXX='-non_shared'
11733 ;;
11734 *)
11735 ;;
11736 esac
11737 ;;
11738 psos*)
11739 ;;
11740 solaris*)
11741 case $cc_basename in
11742 CC*)
11743 # Sun C++ 4.2, 5.x and Centerline C++
11744 lt_prog_compiler_pic_CXX='-KPIC'
11745 lt_prog_compiler_static_CXX='-Bstatic'
11746 lt_prog_compiler_wl_CXX='-Qoption ld '
11747 ;;
11748 gcx*)
11749 # Green Hills C++ Compiler
11750 lt_prog_compiler_pic_CXX='-PIC'
11751 ;;
11752 *)
11753 ;;
11754 esac
11755 ;;
11756 sunos4*)
11757 case $cc_basename in
11758 CC*)
11759 # Sun C++ 4.x
11760 lt_prog_compiler_pic_CXX='-pic'
11761 lt_prog_compiler_static_CXX='-Bstatic'
11762 ;;
11763 lcc*)
11764 # Lucid
11765 lt_prog_compiler_pic_CXX='-pic'
11766 ;;
11767 *)
11768 ;;
11769 esac
11770 ;;
11771 tandem*)
11772 case $cc_basename in
11773 NCC*)
11774 # NonStop-UX NCC 3.20
11775 lt_prog_compiler_pic_CXX='-KPIC'
11776 ;;
11777 *)
11778 ;;
11779 esac
11780 ;;
11781 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11782 case $cc_basename in
11783 CC*)
11784 lt_prog_compiler_wl_CXX='-Wl,'
11785 lt_prog_compiler_pic_CXX='-KPIC'
11786 lt_prog_compiler_static_CXX='-Bstatic'
11787 ;;
11788 esac
11789 ;;
11790 vxworks*)
11791 ;;
11792 *)
11793 lt_prog_compiler_can_build_shared_CXX=no
11794 ;;
11795 esac
11796 fi
11797
11798 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11799 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11800
11801 #
11802 # Check to make sure the PIC flag actually works.
11803 #
11804 if test -n "$lt_prog_compiler_pic_CXX"; then
11805
11806 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11807 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11808 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11809 echo $ECHO_N "(cached) $ECHO_C" >&6
11810 else
11811 lt_prog_compiler_pic_works_CXX=no
11812 ac_outfile=conftest.$ac_objext
11813 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11814 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11815 # Insert the option either (1) after the last *FLAGS variable, or
11816 # (2) before a word containing "conftest.", or (3) at the end.
11817 # Note that $ac_compile itself does not contain backslashes and begins
11818 # with a dollar sign (not a hyphen), so the echo should work correctly.
11819 # The option is referenced via a variable to avoid confusing sed.
11820 lt_compile=`echo "$ac_compile" | $SED \
11821 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11822 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11823 -e 's:$: $lt_compiler_flag:'`
11824 (eval echo "\"\$as_me:11824: $lt_compile\"" >&5)
11825 (eval "$lt_compile" 2>conftest.err)
11826 ac_status=$?
11827 cat conftest.err >&5
11828 echo "$as_me:11828: \$? = $ac_status" >&5
11829 if (exit $ac_status) && test -s "$ac_outfile"; then
11830 # The compiler can only warn and ignore the option if not recognized
11831 # So say no if there are warnings other than the usual output.
11832 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11833 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11834 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11835 lt_prog_compiler_pic_works_CXX=yes
11836 fi
11837 fi
11838 $rm conftest*
11839
11840 fi
11841 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11842 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11843
11844 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11845 case $lt_prog_compiler_pic_CXX in
11846 "" | " "*) ;;
11847 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11848 esac
11849 else
11850 lt_prog_compiler_pic_CXX=
11851 lt_prog_compiler_can_build_shared_CXX=no
11852 fi
11853
11854 fi
11855 case $host_os in
11856 # For platforms which do not support PIC, -DPIC is meaningless:
11857 *djgpp*)
11858 lt_prog_compiler_pic_CXX=
11859 ;;
11860 *)
11861 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11862 ;;
11863 esac
11864
11865 #
11866 # Check to make sure the static flag actually works.
11867 #
11868 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11869 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11870 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11871 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11872 echo $ECHO_N "(cached) $ECHO_C" >&6
11873 else
11874 lt_prog_compiler_static_works_CXX=no
11875 save_LDFLAGS="$LDFLAGS"
11876 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11877 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11878 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11879 # The linker can only warn and ignore the option if not recognized
11880 # So say no if there are warnings
11881 if test -s conftest.err; then
11882 # Append any errors to the config.log.
11883 cat conftest.err 1>&5
11884 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11885 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11886 if diff conftest.exp conftest.er2 >/dev/null; then
11887 lt_prog_compiler_static_works_CXX=yes
11888 fi
11889 else
11890 lt_prog_compiler_static_works_CXX=yes
11891 fi
11892 fi
11893 $rm conftest*
11894 LDFLAGS="$save_LDFLAGS"
11895
11896 fi
11897 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11898 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11899
11900 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11901 :
11902 else
11903 lt_prog_compiler_static_CXX=
11904 fi
11905
11906
11907 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11908 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11909 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11910 echo $ECHO_N "(cached) $ECHO_C" >&6
11911 else
11912 lt_cv_prog_compiler_c_o_CXX=no
11913 $rm -r conftest 2>/dev/null
11914 mkdir conftest
11915 cd conftest
11916 mkdir out
11917 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11918
11919 lt_compiler_flag="-o out/conftest2.$ac_objext"
11920 # Insert the option either (1) after the last *FLAGS variable, or
11921 # (2) before a word containing "conftest.", or (3) at the end.
11922 # Note that $ac_compile itself does not contain backslashes and begins
11923 # with a dollar sign (not a hyphen), so the echo should work correctly.
11924 lt_compile=`echo "$ac_compile" | $SED \
11925 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11926 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11927 -e 's:$: $lt_compiler_flag:'`
11928 (eval echo "\"\$as_me:11928: $lt_compile\"" >&5)
11929 (eval "$lt_compile" 2>out/conftest.err)
11930 ac_status=$?
11931 cat out/conftest.err >&5
11932 echo "$as_me:11932: \$? = $ac_status" >&5
11933 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11934 then
11935 # The compiler can only warn and ignore the option if not recognized
11936 # So say no if there are warnings
11937 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11938 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11939 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11940 lt_cv_prog_compiler_c_o_CXX=yes
11941 fi
11942 fi
11943 chmod u+w . 2>&5
11944 $rm conftest*
11945 # SGI C++ compiler will create directory out/ii_files/ for
11946 # template instantiation
11947 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11948 $rm out/* && rmdir out
11949 cd ..
11950 rmdir conftest
11951 $rm conftest*
11952
11953 fi
11954 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11955 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11956
11957
11958 hard_links="nottested"
11959 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11960 # do not overwrite the value of need_locks provided by the user
11961 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11962 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11963 hard_links=yes
11964 $rm conftest*
11965 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11966 touch conftest.a
11967 ln conftest.a conftest.b 2>&5 || hard_links=no
11968 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11969 echo "$as_me:$LINENO: result: $hard_links" >&5
11970 echo "${ECHO_T}$hard_links" >&6
11971 if test "$hard_links" = no; then
11972 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11973 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11974 need_locks=warn
11975 fi
11976 else
11977 need_locks=no
11978 fi
11979
11980 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11981 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11982
11983 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11984 case $host_os in
11985 aix4* | aix5*)
11986 # If we're using GNU nm, then we don't want the "-C" option.
11987 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11988 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11989 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'
11990 else
11991 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'
11992 fi
11993 ;;
11994 pw32*)
11995 export_symbols_cmds_CXX="$ltdll_cmds"
11996 ;;
11997 cygwin* | mingw*)
11998 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'
11999 ;;
12000 *)
12001 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12002 ;;
12003 esac
12004
12005 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12006 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12007 test "$ld_shlibs_CXX" = no && can_build_shared=no
12008
12009 #
12010 # Do we need to explicitly link libc?
12011 #
12012 case "x$archive_cmds_need_lc_CXX" in
12013 x|xyes)
12014 # Assume -lc should be added
12015 archive_cmds_need_lc_CXX=yes
12016
12017 if test "$enable_shared" = yes && test "$GCC" = yes; then
12018 case $archive_cmds_CXX in
12019 *'~'*)
12020 # FIXME: we may have to deal with multi-command sequences.
12021 ;;
12022 '$CC '*)
12023 # Test whether the compiler implicitly links with -lc since on some
12024 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12025 # to ld, don't add -lc before -lgcc.
12026 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12027 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12028 $rm conftest*
12029 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12030
12031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12032 (eval $ac_compile) 2>&5
12033 ac_status=$?
12034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035 (exit $ac_status); } 2>conftest.err; then
12036 soname=conftest
12037 lib=conftest
12038 libobjs=conftest.$ac_objext
12039 deplibs=
12040 wl=$lt_prog_compiler_wl_CXX
12041 pic_flag=$lt_prog_compiler_pic_CXX
12042 compiler_flags=-v
12043 linker_flags=-v
12044 verstring=
12045 output_objdir=.
12046 libname=conftest
12047 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12048 allow_undefined_flag_CXX=
12049 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12050 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12051 ac_status=$?
12052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12053 (exit $ac_status); }
12054 then
12055 archive_cmds_need_lc_CXX=no
12056 else
12057 archive_cmds_need_lc_CXX=yes
12058 fi
12059 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12060 else
12061 cat conftest.err 1>&5
12062 fi
12063 $rm conftest*
12064 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12065 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12066 ;;
12067 esac
12068 fi
12069 ;;
12070 esac
12071
12072 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12073 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12074 library_names_spec=
12075 libname_spec='lib$name'
12076 soname_spec=
12077 shrext_cmds=".so"
12078 postinstall_cmds=
12079 postuninstall_cmds=
12080 finish_cmds=
12081 finish_eval=
12082 shlibpath_var=
12083 shlibpath_overrides_runpath=unknown
12084 version_type=none
12085 dynamic_linker="$host_os ld.so"
12086 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12087 if test "$GCC" = yes; then
12088 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12089 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12090 # if the path contains ";" then we assume it to be the separator
12091 # otherwise default to the standard path separator (i.e. ":") - it is
12092 # assumed that no part of a normal pathname contains ";" but that should
12093 # okay in the real world where ";" in dirpaths is itself problematic.
12094 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12095 else
12096 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12097 fi
12098 else
12099 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12100 fi
12101 need_lib_prefix=unknown
12102 hardcode_into_libs=no
12103
12104 # when you set need_version to no, make sure it does not cause -set_version
12105 # flags to be left without arguments
12106 need_version=unknown
12107
12108 case $host_os in
12109 aix3*)
12110 version_type=linux
12111 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12112 shlibpath_var=LIBPATH
12113
12114 # AIX 3 has no versioning support, so we append a major version to the name.
12115 soname_spec='${libname}${release}${shared_ext}$major'
12116 ;;
12117
12118 aix4* | aix5*)
12119 version_type=linux
12120 need_lib_prefix=no
12121 need_version=no
12122 hardcode_into_libs=yes
12123 if test "$host_cpu" = ia64; then
12124 # AIX 5 supports IA64
12125 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12126 shlibpath_var=LD_LIBRARY_PATH
12127 else
12128 # With GCC up to 2.95.x, collect2 would create an import file
12129 # for dependence libraries. The import file would start with
12130 # the line `#! .'. This would cause the generated library to
12131 # depend on `.', always an invalid library. This was fixed in
12132 # development snapshots of GCC prior to 3.0.
12133 case $host_os in
12134 aix4 | aix4.[01] | aix4.[01].*)
12135 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12136 echo ' yes '
12137 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12138 :
12139 else
12140 can_build_shared=no
12141 fi
12142 ;;
12143 esac
12144 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12145 # soname into executable. Probably we can add versioning support to
12146 # collect2, so additional links can be useful in future.
12147 if test "$aix_use_runtimelinking" = yes; then
12148 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12149 # instead of lib<name>.a to let people know that these are not
12150 # typical AIX shared libraries.
12151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12152 else
12153 # We preserve .a as extension for shared libraries through AIX4.2
12154 # and later when we are not doing run time linking.
12155 library_names_spec='${libname}${release}.a $libname.a'
12156 soname_spec='${libname}${release}${shared_ext}$major'
12157 fi
12158 shlibpath_var=LIBPATH
12159 fi
12160 ;;
12161
12162 amigaos*)
12163 library_names_spec='$libname.ixlibrary $libname.a'
12164 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12165 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'
12166 ;;
12167
12168 beos*)
12169 library_names_spec='${libname}${shared_ext}'
12170 dynamic_linker="$host_os ld.so"
12171 shlibpath_var=LIBRARY_PATH
12172 ;;
12173
12174 bsdi[45]*)
12175 version_type=linux
12176 need_version=no
12177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12178 soname_spec='${libname}${release}${shared_ext}$major'
12179 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12180 shlibpath_var=LD_LIBRARY_PATH
12181 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12182 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12183 # the default ld.so.conf also contains /usr/contrib/lib and
12184 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12185 # libtool to hard-code these into programs
12186 ;;
12187
12188 cygwin* | mingw* | pw32*)
12189 version_type=windows
12190 shrext_cmds=".dll"
12191 need_version=no
12192 need_lib_prefix=no
12193
12194 case $GCC,$host_os in
12195 yes,cygwin* | yes,mingw* | yes,pw32*)
12196 library_names_spec='$libname.dll.a'
12197 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12198 postinstall_cmds='base_file=`basename \${file}`~
12199 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12200 dldir=$destdir/`dirname \$dlpath`~
12201 test -d \$dldir || mkdir -p \$dldir~
12202 $install_prog $dir/$dlname \$dldir/$dlname~
12203 chmod a+x \$dldir/$dlname'
12204 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12205 dlpath=$dir/\$dldll~
12206 $rm \$dlpath'
12207 shlibpath_overrides_runpath=yes
12208
12209 case $host_os in
12210 cygwin*)
12211 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12212 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12213 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12214 ;;
12215 mingw*)
12216 # MinGW DLLs use traditional 'lib' prefix
12217 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12218 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12219 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12220 # It is most probably a Windows format PATH printed by
12221 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12222 # path with ; separators, and with drive letters. We can handle the
12223 # drive letters (cygwin fileutils understands them), so leave them,
12224 # especially as we might pass files found there to a mingw objdump,
12225 # which wouldn't understand a cygwinified path. Ahh.
12226 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12227 else
12228 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12229 fi
12230 ;;
12231 pw32*)
12232 # pw32 DLLs use 'pw' prefix rather than 'lib'
12233 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12234 ;;
12235 esac
12236 ;;
12237
12238 *)
12239 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12240 ;;
12241 esac
12242 dynamic_linker='Win32 ld.exe'
12243 # FIXME: first we should search . and the directory the executable is in
12244 shlibpath_var=PATH
12245 ;;
12246
12247 darwin* | rhapsody*)
12248 dynamic_linker="$host_os dyld"
12249 version_type=darwin
12250 need_lib_prefix=no
12251 need_version=no
12252 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12253 soname_spec='${libname}${release}${major}$shared_ext'
12254 shlibpath_overrides_runpath=yes
12255 shlibpath_var=DYLD_LIBRARY_PATH
12256 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12257 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12258 if test "$GCC" = yes; then
12259 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"`
12260 else
12261 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12262 fi
12263 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12264 ;;
12265
12266 dgux*)
12267 version_type=linux
12268 need_lib_prefix=no
12269 need_version=no
12270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12271 soname_spec='${libname}${release}${shared_ext}$major'
12272 shlibpath_var=LD_LIBRARY_PATH
12273 ;;
12274
12275 freebsd1*)
12276 dynamic_linker=no
12277 ;;
12278
12279 kfreebsd*-gnu)
12280 version_type=linux
12281 need_lib_prefix=no
12282 need_version=no
12283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12284 soname_spec='${libname}${release}${shared_ext}$major'
12285 shlibpath_var=LD_LIBRARY_PATH
12286 shlibpath_overrides_runpath=no
12287 hardcode_into_libs=yes
12288 dynamic_linker='GNU ld.so'
12289 ;;
12290
12291 freebsd* | dragonfly*)
12292 # DragonFly does not have aout. When/if they implement a new
12293 # versioning mechanism, adjust this.
12294 if test -x /usr/bin/objformat; then
12295 objformat=`/usr/bin/objformat`
12296 else
12297 case $host_os in
12298 freebsd[123]*) objformat=aout ;;
12299 *) objformat=elf ;;
12300 esac
12301 fi
12302 version_type=freebsd-$objformat
12303 case $version_type in
12304 freebsd-elf*)
12305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12306 need_version=no
12307 need_lib_prefix=no
12308 ;;
12309 freebsd-*)
12310 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12311 need_version=yes
12312 ;;
12313 esac
12314 shlibpath_var=LD_LIBRARY_PATH
12315 case $host_os in
12316 freebsd2*)
12317 shlibpath_overrides_runpath=yes
12318 ;;
12319 freebsd3.[01]* | freebsdelf3.[01]*)
12320 shlibpath_overrides_runpath=yes
12321 hardcode_into_libs=yes
12322 ;;
12323 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12324 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12325 shlibpath_overrides_runpath=no
12326 hardcode_into_libs=yes
12327 ;;
12328 freebsd*) # from 4.6 on
12329 shlibpath_overrides_runpath=yes
12330 hardcode_into_libs=yes
12331 ;;
12332 esac
12333 ;;
12334
12335 gnu*)
12336 version_type=linux
12337 need_lib_prefix=no
12338 need_version=no
12339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12340 soname_spec='${libname}${release}${shared_ext}$major'
12341 shlibpath_var=LD_LIBRARY_PATH
12342 hardcode_into_libs=yes
12343 ;;
12344
12345 hpux9* | hpux10* | hpux11*)
12346 # Give a soname corresponding to the major version so that dld.sl refuses to
12347 # link against other versions.
12348 version_type=sunos
12349 need_lib_prefix=no
12350 need_version=no
12351 case $host_cpu in
12352 ia64*)
12353 shrext_cmds='.so'
12354 hardcode_into_libs=yes
12355 dynamic_linker="$host_os dld.so"
12356 shlibpath_var=LD_LIBRARY_PATH
12357 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12359 soname_spec='${libname}${release}${shared_ext}$major'
12360 if test "X$HPUX_IA64_MODE" = X32; then
12361 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12362 else
12363 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12364 fi
12365 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12366 ;;
12367 hppa*64*)
12368 shrext_cmds='.sl'
12369 hardcode_into_libs=yes
12370 dynamic_linker="$host_os dld.sl"
12371 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12372 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12374 soname_spec='${libname}${release}${shared_ext}$major'
12375 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12376 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12377 ;;
12378 *)
12379 shrext_cmds='.sl'
12380 dynamic_linker="$host_os dld.sl"
12381 shlibpath_var=SHLIB_PATH
12382 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12384 soname_spec='${libname}${release}${shared_ext}$major'
12385 ;;
12386 esac
12387 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12388 postinstall_cmds='chmod 555 $lib'
12389 ;;
12390
12391 interix3*)
12392 version_type=linux
12393 need_lib_prefix=no
12394 need_version=no
12395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12396 soname_spec='${libname}${release}${shared_ext}$major'
12397 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12398 shlibpath_var=LD_LIBRARY_PATH
12399 shlibpath_overrides_runpath=no
12400 hardcode_into_libs=yes
12401 ;;
12402
12403 irix5* | irix6* | nonstopux*)
12404 case $host_os in
12405 nonstopux*) version_type=nonstopux ;;
12406 *)
12407 if test "$lt_cv_prog_gnu_ld" = yes; then
12408 version_type=linux
12409 else
12410 version_type=irix
12411 fi ;;
12412 esac
12413 need_lib_prefix=no
12414 need_version=no
12415 soname_spec='${libname}${release}${shared_ext}$major'
12416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12417 case $host_os in
12418 irix5* | nonstopux*)
12419 libsuff= shlibsuff=
12420 ;;
12421 *)
12422 case $LD in # libtool.m4 will add one of these switches to LD
12423 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12424 libsuff= shlibsuff= libmagic=32-bit;;
12425 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12426 libsuff=32 shlibsuff=N32 libmagic=N32;;
12427 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12428 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12429 *) libsuff= shlibsuff= libmagic=never-match;;
12430 esac
12431 ;;
12432 esac
12433 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12434 shlibpath_overrides_runpath=no
12435 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12436 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12437 hardcode_into_libs=yes
12438 ;;
12439
12440 # No shared lib support for Linux oldld, aout, or coff.
12441 linux*oldld* | linux*aout* | linux*coff*)
12442 dynamic_linker=no
12443 ;;
12444
12445 # This must be Linux ELF.
12446 linux*)
12447 version_type=linux
12448 need_lib_prefix=no
12449 need_version=no
12450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12451 soname_spec='${libname}${release}${shared_ext}$major'
12452 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12453 shlibpath_var=LD_LIBRARY_PATH
12454 shlibpath_overrides_runpath=no
12455 # This implies no fast_install, which is unacceptable.
12456 # Some rework will be needed to allow for fast_install
12457 # before this can be enabled.
12458 hardcode_into_libs=yes
12459
12460 # find out which ABI we are using
12461 libsuff=
12462 case "$host_cpu" in
12463 x86_64*|s390x*|powerpc64*)
12464 echo '#line 12464 "configure"' > conftest.$ac_ext
12465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12466 (eval $ac_compile) 2>&5
12467 ac_status=$?
12468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12469 (exit $ac_status); }; then
12470 case `/usr/bin/file conftest.$ac_objext` in
12471 *64-bit*)
12472 libsuff=64
12473 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12474 ;;
12475 esac
12476 fi
12477 rm -rf conftest*
12478 ;;
12479 esac
12480
12481 # Append ld.so.conf contents to the search path
12482 if test -f /etc/ld.so.conf; then
12483 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' ' '`
12484 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12485 fi
12486
12487 # We used to test for /lib/ld.so.1 and disable shared libraries on
12488 # powerpc, because MkLinux only supported shared libraries with the
12489 # GNU dynamic linker. Since this was broken with cross compilers,
12490 # most powerpc-linux boxes support dynamic linking these days and
12491 # people can always --disable-shared, the test was removed, and we
12492 # assume the GNU/Linux dynamic linker is in use.
12493 dynamic_linker='GNU/Linux ld.so'
12494 ;;
12495
12496 knetbsd*-gnu)
12497 version_type=linux
12498 need_lib_prefix=no
12499 need_version=no
12500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12501 soname_spec='${libname}${release}${shared_ext}$major'
12502 shlibpath_var=LD_LIBRARY_PATH
12503 shlibpath_overrides_runpath=no
12504 hardcode_into_libs=yes
12505 dynamic_linker='GNU ld.so'
12506 ;;
12507
12508 netbsd*)
12509 version_type=sunos
12510 need_lib_prefix=no
12511 need_version=no
12512 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12514 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12515 dynamic_linker='NetBSD (a.out) ld.so'
12516 else
12517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12518 soname_spec='${libname}${release}${shared_ext}$major'
12519 dynamic_linker='NetBSD ld.elf_so'
12520 fi
12521 shlibpath_var=LD_LIBRARY_PATH
12522 shlibpath_overrides_runpath=yes
12523 hardcode_into_libs=yes
12524 ;;
12525
12526 newsos6)
12527 version_type=linux
12528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12529 shlibpath_var=LD_LIBRARY_PATH
12530 shlibpath_overrides_runpath=yes
12531 ;;
12532
12533 nto-qnx*)
12534 version_type=linux
12535 need_lib_prefix=no
12536 need_version=no
12537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12538 soname_spec='${libname}${release}${shared_ext}$major'
12539 shlibpath_var=LD_LIBRARY_PATH
12540 shlibpath_overrides_runpath=yes
12541 ;;
12542
12543 openbsd*)
12544 version_type=sunos
12545 sys_lib_dlsearch_path_spec="/usr/lib"
12546 need_lib_prefix=no
12547 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12548 case $host_os in
12549 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12550 *) need_version=no ;;
12551 esac
12552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12553 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12554 shlibpath_var=LD_LIBRARY_PATH
12555 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12556 case $host_os in
12557 openbsd2.[89] | openbsd2.[89].*)
12558 shlibpath_overrides_runpath=no
12559 ;;
12560 *)
12561 shlibpath_overrides_runpath=yes
12562 ;;
12563 esac
12564 else
12565 shlibpath_overrides_runpath=yes
12566 fi
12567 ;;
12568
12569 os2*)
12570 libname_spec='$name'
12571 shrext_cmds=".dll"
12572 need_lib_prefix=no
12573 library_names_spec='$libname${shared_ext} $libname.a'
12574 dynamic_linker='OS/2 ld.exe'
12575 shlibpath_var=LIBPATH
12576 ;;
12577
12578 osf3* | osf4* | osf5*)
12579 version_type=osf
12580 need_lib_prefix=no
12581 need_version=no
12582 soname_spec='${libname}${release}${shared_ext}$major'
12583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12584 shlibpath_var=LD_LIBRARY_PATH
12585 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12586 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12587 ;;
12588
12589 solaris*)
12590 version_type=linux
12591 need_lib_prefix=no
12592 need_version=no
12593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12594 soname_spec='${libname}${release}${shared_ext}$major'
12595 shlibpath_var=LD_LIBRARY_PATH
12596 shlibpath_overrides_runpath=yes
12597 hardcode_into_libs=yes
12598 # ldd complains unless libraries are executable
12599 postinstall_cmds='chmod +x $lib'
12600 ;;
12601
12602 sunos4*)
12603 version_type=sunos
12604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12605 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12606 shlibpath_var=LD_LIBRARY_PATH
12607 shlibpath_overrides_runpath=yes
12608 if test "$with_gnu_ld" = yes; then
12609 need_lib_prefix=no
12610 fi
12611 need_version=yes
12612 ;;
12613
12614 sysv4 | sysv4.3*)
12615 version_type=linux
12616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12617 soname_spec='${libname}${release}${shared_ext}$major'
12618 shlibpath_var=LD_LIBRARY_PATH
12619 case $host_vendor in
12620 sni)
12621 shlibpath_overrides_runpath=no
12622 need_lib_prefix=no
12623 export_dynamic_flag_spec='${wl}-Blargedynsym'
12624 runpath_var=LD_RUN_PATH
12625 ;;
12626 siemens)
12627 need_lib_prefix=no
12628 ;;
12629 motorola)
12630 need_lib_prefix=no
12631 need_version=no
12632 shlibpath_overrides_runpath=no
12633 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12634 ;;
12635 esac
12636 ;;
12637
12638 sysv4*MP*)
12639 if test -d /usr/nec ;then
12640 version_type=linux
12641 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12642 soname_spec='$libname${shared_ext}.$major'
12643 shlibpath_var=LD_LIBRARY_PATH
12644 fi
12645 ;;
12646
12647 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12648 version_type=freebsd-elf
12649 need_lib_prefix=no
12650 need_version=no
12651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12652 soname_spec='${libname}${release}${shared_ext}$major'
12653 shlibpath_var=LD_LIBRARY_PATH
12654 hardcode_into_libs=yes
12655 if test "$with_gnu_ld" = yes; then
12656 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12657 shlibpath_overrides_runpath=no
12658 else
12659 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12660 shlibpath_overrides_runpath=yes
12661 case $host_os in
12662 sco3.2v5*)
12663 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12664 ;;
12665 esac
12666 fi
12667 sys_lib_dlsearch_path_spec='/usr/lib'
12668 ;;
12669
12670 uts4*)
12671 version_type=linux
12672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12673 soname_spec='${libname}${release}${shared_ext}$major'
12674 shlibpath_var=LD_LIBRARY_PATH
12675 ;;
12676
12677 *)
12678 dynamic_linker=no
12679 ;;
12680 esac
12681 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12682 echo "${ECHO_T}$dynamic_linker" >&6
12683 test "$dynamic_linker" = no && can_build_shared=no
12684
12685 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12686 if test "$GCC" = yes; then
12687 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12688 fi
12689
12690 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12691 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12692 hardcode_action_CXX=
12693 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12694 test -n "$runpath_var_CXX" || \
12695 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12696
12697 # We can hardcode non-existant directories.
12698 if test "$hardcode_direct_CXX" != no &&
12699 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12700 # have to relink, otherwise we might link with an installed library
12701 # when we should be linking with a yet-to-be-installed one
12702 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12703 test "$hardcode_minus_L_CXX" != no; then
12704 # Linking always hardcodes the temporary library directory.
12705 hardcode_action_CXX=relink
12706 else
12707 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12708 hardcode_action_CXX=immediate
12709 fi
12710 else
12711 # We cannot hardcode anything, or else we can only hardcode existing
12712 # directories.
12713 hardcode_action_CXX=unsupported
12714 fi
12715 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12716 echo "${ECHO_T}$hardcode_action_CXX" >&6
12717
12718 if test "$hardcode_action_CXX" = relink; then
12719 # Fast installation is not supported
12720 enable_fast_install=no
12721 elif test "$shlibpath_overrides_runpath" = yes ||
12722 test "$enable_shared" = no; then
12723 # Fast installation is not necessary
12724 enable_fast_install=needless
12725 fi
12726
12727
12728 # The else clause should only fire when bootstrapping the
12729 # libtool distribution, otherwise you forgot to ship ltmain.sh
12730 # with your package, and you will get complaints that there are
12731 # no rules to generate ltmain.sh.
12732 if test -f "$ltmain"; then
12733 # See if we are running on zsh, and set the options which allow our commands through
12734 # without removal of \ escapes.
12735 if test -n "${ZSH_VERSION+set}" ; then
12736 setopt NO_GLOB_SUBST
12737 fi
12738 # Now quote all the things that may contain metacharacters while being
12739 # careful not to overquote the AC_SUBSTed values. We take copies of the
12740 # variables and quote the copies for generation of the libtool script.
12741 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12742 SED SHELL STRIP \
12743 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12744 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12745 deplibs_check_method reload_flag reload_cmds need_locks \
12746 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12747 lt_cv_sys_global_symbol_to_c_name_address \
12748 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12749 old_postinstall_cmds old_postuninstall_cmds \
12750 compiler_CXX \
12751 CC_CXX \
12752 LD_CXX \
12753 lt_prog_compiler_wl_CXX \
12754 lt_prog_compiler_pic_CXX \
12755 lt_prog_compiler_static_CXX \
12756 lt_prog_compiler_no_builtin_flag_CXX \
12757 export_dynamic_flag_spec_CXX \
12758 thread_safe_flag_spec_CXX \
12759 whole_archive_flag_spec_CXX \
12760 enable_shared_with_static_runtimes_CXX \
12761 old_archive_cmds_CXX \
12762 old_archive_from_new_cmds_CXX \
12763 predep_objects_CXX \
12764 postdep_objects_CXX \
12765 predeps_CXX \
12766 postdeps_CXX \
12767 compiler_lib_search_path_CXX \
12768 archive_cmds_CXX \
12769 archive_expsym_cmds_CXX \
12770 postinstall_cmds_CXX \
12771 postuninstall_cmds_CXX \
12772 old_archive_from_expsyms_cmds_CXX \
12773 allow_undefined_flag_CXX \
12774 no_undefined_flag_CXX \
12775 export_symbols_cmds_CXX \
12776 hardcode_libdir_flag_spec_CXX \
12777 hardcode_libdir_flag_spec_ld_CXX \
12778 hardcode_libdir_separator_CXX \
12779 hardcode_automatic_CXX \
12780 module_cmds_CXX \
12781 module_expsym_cmds_CXX \
12782 lt_cv_prog_compiler_c_o_CXX \
12783 exclude_expsyms_CXX \
12784 include_expsyms_CXX; do
12785
12786 case $var in
12787 old_archive_cmds_CXX | \
12788 old_archive_from_new_cmds_CXX | \
12789 archive_cmds_CXX | \
12790 archive_expsym_cmds_CXX | \
12791 module_cmds_CXX | \
12792 module_expsym_cmds_CXX | \
12793 old_archive_from_expsyms_cmds_CXX | \
12794 export_symbols_cmds_CXX | \
12795 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12796 postinstall_cmds | postuninstall_cmds | \
12797 old_postinstall_cmds | old_postuninstall_cmds | \
12798 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12799 # Double-quote double-evaled strings.
12800 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12801 ;;
12802 *)
12803 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12804 ;;
12805 esac
12806 done
12807
12808 case $lt_echo in
12809 *'\$0 --fallback-echo"')
12810 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12811 ;;
12812 esac
12813
12814 cfgfile="$ofile"
12815
12816 cat <<__EOF__ >> "$cfgfile"
12817 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12818
12819 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12820
12821 # Shell to use when invoking shell scripts.
12822 SHELL=$lt_SHELL
12823
12824 # Whether or not to build shared libraries.
12825 build_libtool_libs=$enable_shared
12826
12827 # Whether or not to build static libraries.
12828 build_old_libs=$enable_static
12829
12830 # Whether or not to add -lc for building shared libraries.
12831 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12832
12833 # Whether or not to disallow shared libs when runtime libs are static
12834 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12835
12836 # Whether or not to optimize for fast installation.
12837 fast_install=$enable_fast_install
12838
12839 # The host system.
12840 host_alias=$host_alias
12841 host=$host
12842 host_os=$host_os
12843
12844 # The build system.
12845 build_alias=$build_alias
12846 build=$build
12847 build_os=$build_os
12848
12849 # An echo program that does not interpret backslashes.
12850 echo=$lt_echo
12851
12852 # The archiver.
12853 AR=$lt_AR
12854 AR_FLAGS=$lt_AR_FLAGS
12855
12856 # A C compiler.
12857 LTCC=$lt_LTCC
12858
12859 # LTCC compiler flags.
12860 LTCFLAGS=$lt_LTCFLAGS
12861
12862 # A language-specific compiler.
12863 CC=$lt_compiler_CXX
12864
12865 # Is the compiler the GNU C compiler?
12866 with_gcc=$GCC_CXX
12867
12868 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
12869 gcc_ver=\`gcc -dumpversion\`
12870
12871 # An ERE matcher.
12872 EGREP=$lt_EGREP
12873
12874 # The linker used to build libraries.
12875 LD=$lt_LD_CXX
12876
12877 # Whether we need hard or soft links.
12878 LN_S=$lt_LN_S
12879
12880 # A BSD-compatible nm program.
12881 NM=$lt_NM
12882
12883 # A symbol stripping program
12884 STRIP=$lt_STRIP
12885
12886 # Used to examine libraries when file_magic_cmd begins "file"
12887 MAGIC_CMD=$MAGIC_CMD
12888
12889 # Used on cygwin: DLL creation program.
12890 DLLTOOL="$DLLTOOL"
12891
12892 # Used on cygwin: object dumper.
12893 OBJDUMP="$OBJDUMP"
12894
12895 # Used on cygwin: assembler.
12896 AS="$AS"
12897
12898 # The name of the directory that contains temporary libtool files.
12899 objdir=$objdir
12900
12901 # How to create reloadable object files.
12902 reload_flag=$lt_reload_flag
12903 reload_cmds=$lt_reload_cmds
12904
12905 # How to pass a linker flag through the compiler.
12906 wl=$lt_lt_prog_compiler_wl_CXX
12907
12908 # Object file suffix (normally "o").
12909 objext="$ac_objext"
12910
12911 # Old archive suffix (normally "a").
12912 libext="$libext"
12913
12914 # Shared library suffix (normally ".so").
12915 shrext_cmds='$shrext_cmds'
12916
12917 # Executable file suffix (normally "").
12918 exeext="$exeext"
12919
12920 # Additional compiler flags for building library objects.
12921 pic_flag=$lt_lt_prog_compiler_pic_CXX
12922 pic_mode=$pic_mode
12923
12924 # What is the maximum length of a command?
12925 max_cmd_len=$lt_cv_sys_max_cmd_len
12926
12927 # Does compiler simultaneously support -c and -o options?
12928 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12929
12930 # Must we lock files when doing compilation?
12931 need_locks=$lt_need_locks
12932
12933 # Do we need the lib prefix for modules?
12934 need_lib_prefix=$need_lib_prefix
12935
12936 # Do we need a version for libraries?
12937 need_version=$need_version
12938
12939 # Whether dlopen is supported.
12940 dlopen_support=$enable_dlopen
12941
12942 # Whether dlopen of programs is supported.
12943 dlopen_self=$enable_dlopen_self
12944
12945 # Whether dlopen of statically linked programs is supported.
12946 dlopen_self_static=$enable_dlopen_self_static
12947
12948 # Compiler flag to prevent dynamic linking.
12949 link_static_flag=$lt_lt_prog_compiler_static_CXX
12950
12951 # Compiler flag to turn off builtin functions.
12952 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12953
12954 # Compiler flag to allow reflexive dlopens.
12955 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12956
12957 # Compiler flag to generate shared objects directly from archives.
12958 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12959
12960 # Compiler flag to generate thread-safe objects.
12961 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12962
12963 # Library versioning type.
12964 version_type=$version_type
12965
12966 # Format of library name prefix.
12967 libname_spec=$lt_libname_spec
12968
12969 # List of archive names. First name is the real one, the rest are links.
12970 # The last name is the one that the linker finds with -lNAME.
12971 library_names_spec=$lt_library_names_spec
12972
12973 # The coded name of the library, if different from the real name.
12974 soname_spec=$lt_soname_spec
12975
12976 # Commands used to build and install an old-style archive.
12977 RANLIB=$lt_RANLIB
12978 old_archive_cmds=$lt_old_archive_cmds_CXX
12979 old_postinstall_cmds=$lt_old_postinstall_cmds
12980 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12981
12982 # Create an old-style archive from a shared archive.
12983 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12984
12985 # Create a temporary old-style archive to link instead of a shared archive.
12986 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12987
12988 # Commands used to build and install a shared archive.
12989 archive_cmds=$lt_archive_cmds_CXX
12990 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12991 postinstall_cmds=$lt_postinstall_cmds
12992 postuninstall_cmds=$lt_postuninstall_cmds
12993
12994 # Commands used to build a loadable module (assumed same as above if empty)
12995 module_cmds=$lt_module_cmds_CXX
12996 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12997
12998 # Commands to strip libraries.
12999 old_striplib=$lt_old_striplib
13000 striplib=$lt_striplib
13001
13002 # Dependencies to place before the objects being linked to create a
13003 # shared library.
13004 predep_objects=\`echo $lt_predep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13005
13006 # Dependencies to place after the objects being linked to create a
13007 # shared library.
13008 postdep_objects=\`echo $lt_postdep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13009
13010 # Dependencies to place before the objects being linked to create a
13011 # shared library.
13012 predeps=$lt_predeps_CXX
13013
13014 # Dependencies to place after the objects being linked to create a
13015 # shared library.
13016 postdeps=$lt_postdeps_CXX
13017
13018 # The library search path used internally by the compiler when linking
13019 # a shared library.
13020 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"\`
13021
13022 # Method to check whether dependent libraries are shared objects.
13023 deplibs_check_method=$lt_deplibs_check_method
13024
13025 # Command to use when deplibs_check_method == file_magic.
13026 file_magic_cmd=$lt_file_magic_cmd
13027
13028 # Flag that allows shared libraries with undefined symbols to be built.
13029 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13030
13031 # Flag that forces no undefined symbols.
13032 no_undefined_flag=$lt_no_undefined_flag_CXX
13033
13034 # Commands used to finish a libtool library installation in a directory.
13035 finish_cmds=$lt_finish_cmds
13036
13037 # Same as above, but a single script fragment to be evaled but not shown.
13038 finish_eval=$lt_finish_eval
13039
13040 # Take the output of nm and produce a listing of raw symbols and C names.
13041 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13042
13043 # Transform the output of nm in a proper C declaration
13044 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13045
13046 # Transform the output of nm in a C name address pair
13047 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13048
13049 # This is the shared library runtime path variable.
13050 runpath_var=$runpath_var
13051
13052 # This is the shared library path variable.
13053 shlibpath_var=$shlibpath_var
13054
13055 # Is shlibpath searched before the hard-coded library search path?
13056 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13057
13058 # How to hardcode a shared library path into an executable.
13059 hardcode_action=$hardcode_action_CXX
13060
13061 # Whether we should hardcode library paths into libraries.
13062 hardcode_into_libs=$hardcode_into_libs
13063
13064 # Flag to hardcode \$libdir into a binary during linking.
13065 # This must work even if \$libdir does not exist.
13066 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13067
13068 # If ld is used when linking, flag to hardcode \$libdir into
13069 # a binary during linking. This must work even if \$libdir does
13070 # not exist.
13071 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13072
13073 # Whether we need a single -rpath flag with a separated argument.
13074 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13075
13076 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13077 # resulting binary.
13078 hardcode_direct=$hardcode_direct_CXX
13079
13080 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13081 # resulting binary.
13082 hardcode_minus_L=$hardcode_minus_L_CXX
13083
13084 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13085 # the resulting binary.
13086 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13087
13088 # Set to yes if building a shared library automatically hardcodes DIR into the library
13089 # and all subsequent libraries and executables linked against it.
13090 hardcode_automatic=$hardcode_automatic_CXX
13091
13092 # Variables whose values should be saved in libtool wrapper scripts and
13093 # restored at relink time.
13094 variables_saved_for_relink="$variables_saved_for_relink"
13095
13096 # Whether libtool must link a program against all its dependency libraries.
13097 link_all_deplibs=$link_all_deplibs_CXX
13098
13099 # Compile-time system search path for libraries
13100 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"\`
13101
13102 # Run-time system search path for libraries
13103 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13104
13105 # Fix the shell variable \$srcfile for the compiler.
13106 fix_srcfile_path="$fix_srcfile_path_CXX"
13107
13108 # Set to yes if exported symbols are required.
13109 always_export_symbols=$always_export_symbols_CXX
13110
13111 # The commands to list exported symbols.
13112 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13113
13114 # The commands to extract the exported symbol list from a shared archive.
13115 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13116
13117 # Symbols that should not be listed in the preloaded symbols.
13118 exclude_expsyms=$lt_exclude_expsyms_CXX
13119
13120 # Symbols that must always be exported.
13121 include_expsyms=$lt_include_expsyms_CXX
13122
13123 # ### END LIBTOOL TAG CONFIG: $tagname
13124
13125 __EOF__
13126
13127
13128 else
13129 # If there is no Makefile yet, we rely on a make rule to execute
13130 # `config.status --recheck' to rerun these tests and create the
13131 # libtool script then.
13132 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13133 if test -f "$ltmain_in"; then
13134 test -f Makefile && make "$ltmain"
13135 fi
13136 fi
13137
13138
13139 ac_ext=c
13140 ac_cpp='$CPP $CPPFLAGS'
13141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13144
13145 CC=$lt_save_CC
13146 LDCXX=$LD
13147 LD=$lt_save_LD
13148 GCC=$lt_save_GCC
13149 with_gnu_ldcxx=$with_gnu_ld
13150 with_gnu_ld=$lt_save_with_gnu_ld
13151 lt_cv_path_LDCXX=$lt_cv_path_LD
13152 lt_cv_path_LD=$lt_save_path_LD
13153 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13154 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13155
13156 else
13157 tagname=""
13158 fi
13159 ;;
13160
13161 F77)
13162 if test -n "$F77" && test "X$F77" != "Xno"; then
13163
13164 ac_ext=f
13165 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13166 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13167 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13168
13169
13170 archive_cmds_need_lc_F77=no
13171 allow_undefined_flag_F77=
13172 always_export_symbols_F77=no
13173 archive_expsym_cmds_F77=
13174 export_dynamic_flag_spec_F77=
13175 hardcode_direct_F77=no
13176 hardcode_libdir_flag_spec_F77=
13177 hardcode_libdir_flag_spec_ld_F77=
13178 hardcode_libdir_separator_F77=
13179 hardcode_minus_L_F77=no
13180 hardcode_automatic_F77=no
13181 module_cmds_F77=
13182 module_expsym_cmds_F77=
13183 link_all_deplibs_F77=unknown
13184 old_archive_cmds_F77=$old_archive_cmds
13185 no_undefined_flag_F77=
13186 whole_archive_flag_spec_F77=
13187 enable_shared_with_static_runtimes_F77=no
13188
13189 # Source file extension for f77 test sources.
13190 ac_ext=f
13191
13192 # Object file extension for compiled f77 test sources.
13193 objext=o
13194 objext_F77=$objext
13195
13196 # Code to be used in simple compile tests
13197 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13198
13199 # Code to be used in simple link tests
13200 lt_simple_link_test_code=" program t\n end\n"
13201
13202 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13203
13204 # If no C compiler was specified, use CC.
13205 LTCC=${LTCC-"$CC"}
13206
13207 # If no C compiler flags were specified, use CFLAGS.
13208 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13209
13210 # Allow CC to be a program name with arguments.
13211 compiler=$CC
13212
13213
13214 # save warnings/boilerplate of simple test code
13215 ac_outfile=conftest.$ac_objext
13216 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13217 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13218 _lt_compiler_boilerplate=`cat conftest.err`
13219 $rm conftest*
13220
13221 ac_outfile=conftest.$ac_objext
13222 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13223 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13224 _lt_linker_boilerplate=`cat conftest.err`
13225 $rm conftest*
13226
13227
13228 # Allow CC to be a program name with arguments.
13229 lt_save_CC="$CC"
13230 CC=${F77-"f77"}
13231 compiler=$CC
13232 compiler_F77=$CC
13233 for cc_temp in $compiler""; do
13234 case $cc_temp in
13235 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13236 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13237 \-*) ;;
13238 *) break;;
13239 esac
13240 done
13241 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13242
13243
13244 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13245 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13246 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13247 echo "${ECHO_T}$can_build_shared" >&6
13248
13249 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13250 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13251 test "$can_build_shared" = "no" && enable_shared=no
13252
13253 # On AIX, shared libraries and static libraries use the same namespace, and
13254 # are all built from PIC.
13255 case $host_os in
13256 aix3*)
13257 test "$enable_shared" = yes && enable_static=no
13258 if test -n "$RANLIB"; then
13259 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13260 postinstall_cmds='$RANLIB $lib'
13261 fi
13262 ;;
13263 aix4* | aix5*)
13264 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13265 test "$enable_shared" = yes && enable_static=no
13266 fi
13267 ;;
13268 esac
13269 echo "$as_me:$LINENO: result: $enable_shared" >&5
13270 echo "${ECHO_T}$enable_shared" >&6
13271
13272 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13273 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13274 # Make sure either enable_shared or enable_static is yes.
13275 test "$enable_shared" = yes || enable_static=yes
13276 echo "$as_me:$LINENO: result: $enable_static" >&5
13277 echo "${ECHO_T}$enable_static" >&6
13278
13279 GCC_F77="$G77"
13280 LD_F77="$LD"
13281
13282 lt_prog_compiler_wl_F77=
13283 lt_prog_compiler_pic_F77=
13284 lt_prog_compiler_static_F77=
13285
13286 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13287 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13288
13289 if test "$GCC" = yes; then
13290 lt_prog_compiler_wl_F77='-Wl,'
13291 lt_prog_compiler_static_F77='-static'
13292
13293 case $host_os in
13294 aix*)
13295 # All AIX code is PIC.
13296 if test "$host_cpu" = ia64; then
13297 # AIX 5 now supports IA64 processor
13298 lt_prog_compiler_static_F77='-Bstatic'
13299 fi
13300 ;;
13301
13302 amigaos*)
13303 # FIXME: we need at least 68020 code to build shared libraries, but
13304 # adding the `-m68020' flag to GCC prevents building anything better,
13305 # like `-m68040'.
13306 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13307 ;;
13308
13309 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13310 # PIC is the default for these OSes.
13311 ;;
13312
13313 mingw* | pw32* | os2*)
13314 # This hack is so that the source file can tell whether it is being
13315 # built for inclusion in a dll (and should export symbols for example).
13316 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13317 ;;
13318
13319 darwin* | rhapsody*)
13320 # PIC is the default on this platform
13321 # Common symbols not allowed in MH_DYLIB files
13322 lt_prog_compiler_pic_F77='-fno-common'
13323 ;;
13324
13325 interix3*)
13326 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13327 # Instead, we relocate shared libraries at runtime.
13328 ;;
13329
13330 msdosdjgpp*)
13331 # Just because we use GCC doesn't mean we suddenly get shared libraries
13332 # on systems that don't support them.
13333 lt_prog_compiler_can_build_shared_F77=no
13334 enable_shared=no
13335 ;;
13336
13337 sysv4*MP*)
13338 if test -d /usr/nec; then
13339 lt_prog_compiler_pic_F77=-Kconform_pic
13340 fi
13341 ;;
13342
13343 hpux*)
13344 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13345 # not for PA HP-UX.
13346 case $host_cpu in
13347 hppa*64*|ia64*)
13348 # +Z the default
13349 ;;
13350 *)
13351 lt_prog_compiler_pic_F77='-fPIC'
13352 ;;
13353 esac
13354 ;;
13355
13356 *)
13357 lt_prog_compiler_pic_F77='-fPIC'
13358 ;;
13359 esac
13360 else
13361 # PORTME Check for flag to pass linker flags through the system compiler.
13362 case $host_os in
13363 aix*)
13364 lt_prog_compiler_wl_F77='-Wl,'
13365 if test "$host_cpu" = ia64; then
13366 # AIX 5 now supports IA64 processor
13367 lt_prog_compiler_static_F77='-Bstatic'
13368 else
13369 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13370 fi
13371 ;;
13372 darwin*)
13373 # PIC is the default on this platform
13374 # Common symbols not allowed in MH_DYLIB files
13375 case $cc_basename in
13376 xlc*)
13377 lt_prog_compiler_pic_F77='-qnocommon'
13378 lt_prog_compiler_wl_F77='-Wl,'
13379 ;;
13380 esac
13381 ;;
13382
13383 mingw* | pw32* | os2*)
13384 # This hack is so that the source file can tell whether it is being
13385 # built for inclusion in a dll (and should export symbols for example).
13386 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13387 ;;
13388
13389 hpux9* | hpux10* | hpux11*)
13390 lt_prog_compiler_wl_F77='-Wl,'
13391 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13392 # not for PA HP-UX.
13393 case $host_cpu in
13394 hppa*64*|ia64*)
13395 # +Z the default
13396 ;;
13397 *)
13398 lt_prog_compiler_pic_F77='+Z'
13399 ;;
13400 esac
13401 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13402 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13403 ;;
13404
13405 irix5* | irix6* | nonstopux*)
13406 lt_prog_compiler_wl_F77='-Wl,'
13407 # PIC (with -KPIC) is the default.
13408 lt_prog_compiler_static_F77='-non_shared'
13409 ;;
13410
13411 newsos6)
13412 lt_prog_compiler_pic_F77='-KPIC'
13413 lt_prog_compiler_static_F77='-Bstatic'
13414 ;;
13415
13416 linux*)
13417 case $cc_basename in
13418 icc* | ecc*)
13419 lt_prog_compiler_wl_F77='-Wl,'
13420 lt_prog_compiler_pic_F77='-KPIC'
13421 lt_prog_compiler_static_F77='-static'
13422 ;;
13423 pgcc* | pgf77* | pgf90* | pgf95*)
13424 # Portland Group compilers (*not* the Pentium gcc compiler,
13425 # which looks to be a dead project)
13426 lt_prog_compiler_wl_F77='-Wl,'
13427 lt_prog_compiler_pic_F77='-fpic'
13428 lt_prog_compiler_static_F77='-Bstatic'
13429 ;;
13430 ccc*)
13431 lt_prog_compiler_wl_F77='-Wl,'
13432 # All Alpha code is PIC.
13433 lt_prog_compiler_static_F77='-non_shared'
13434 ;;
13435 esac
13436 ;;
13437
13438 osf3* | osf4* | osf5*)
13439 lt_prog_compiler_wl_F77='-Wl,'
13440 # All OSF/1 code is PIC.
13441 lt_prog_compiler_static_F77='-non_shared'
13442 ;;
13443
13444 solaris*)
13445 lt_prog_compiler_pic_F77='-KPIC'
13446 lt_prog_compiler_static_F77='-Bstatic'
13447 case $cc_basename in
13448 f77* | f90* | f95*)
13449 lt_prog_compiler_wl_F77='-Qoption ld ';;
13450 *)
13451 lt_prog_compiler_wl_F77='-Wl,';;
13452 esac
13453 ;;
13454
13455 sunos4*)
13456 lt_prog_compiler_wl_F77='-Qoption ld '
13457 lt_prog_compiler_pic_F77='-PIC'
13458 lt_prog_compiler_static_F77='-Bstatic'
13459 ;;
13460
13461 sysv4 | sysv4.2uw2* | sysv4.3*)
13462 lt_prog_compiler_wl_F77='-Wl,'
13463 lt_prog_compiler_pic_F77='-KPIC'
13464 lt_prog_compiler_static_F77='-Bstatic'
13465 ;;
13466
13467 sysv4*MP*)
13468 if test -d /usr/nec ;then
13469 lt_prog_compiler_pic_F77='-Kconform_pic'
13470 lt_prog_compiler_static_F77='-Bstatic'
13471 fi
13472 ;;
13473
13474 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13475 lt_prog_compiler_wl_F77='-Wl,'
13476 lt_prog_compiler_pic_F77='-KPIC'
13477 lt_prog_compiler_static_F77='-Bstatic'
13478 ;;
13479
13480 unicos*)
13481 lt_prog_compiler_wl_F77='-Wl,'
13482 lt_prog_compiler_can_build_shared_F77=no
13483 ;;
13484
13485 uts4*)
13486 lt_prog_compiler_pic_F77='-pic'
13487 lt_prog_compiler_static_F77='-Bstatic'
13488 ;;
13489
13490 *)
13491 lt_prog_compiler_can_build_shared_F77=no
13492 ;;
13493 esac
13494 fi
13495
13496 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13497 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13498
13499 #
13500 # Check to make sure the PIC flag actually works.
13501 #
13502 if test -n "$lt_prog_compiler_pic_F77"; then
13503
13504 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13505 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13506 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13507 echo $ECHO_N "(cached) $ECHO_C" >&6
13508 else
13509 lt_prog_compiler_pic_works_F77=no
13510 ac_outfile=conftest.$ac_objext
13511 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13512 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13513 # Insert the option either (1) after the last *FLAGS variable, or
13514 # (2) before a word containing "conftest.", or (3) at the end.
13515 # Note that $ac_compile itself does not contain backslashes and begins
13516 # with a dollar sign (not a hyphen), so the echo should work correctly.
13517 # The option is referenced via a variable to avoid confusing sed.
13518 lt_compile=`echo "$ac_compile" | $SED \
13519 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13520 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13521 -e 's:$: $lt_compiler_flag:'`
13522 (eval echo "\"\$as_me:13522: $lt_compile\"" >&5)
13523 (eval "$lt_compile" 2>conftest.err)
13524 ac_status=$?
13525 cat conftest.err >&5
13526 echo "$as_me:13526: \$? = $ac_status" >&5
13527 if (exit $ac_status) && test -s "$ac_outfile"; then
13528 # The compiler can only warn and ignore the option if not recognized
13529 # So say no if there are warnings other than the usual output.
13530 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13531 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13532 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13533 lt_prog_compiler_pic_works_F77=yes
13534 fi
13535 fi
13536 $rm conftest*
13537
13538 fi
13539 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13540 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13541
13542 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13543 case $lt_prog_compiler_pic_F77 in
13544 "" | " "*) ;;
13545 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13546 esac
13547 else
13548 lt_prog_compiler_pic_F77=
13549 lt_prog_compiler_can_build_shared_F77=no
13550 fi
13551
13552 fi
13553 case $host_os in
13554 # For platforms which do not support PIC, -DPIC is meaningless:
13555 *djgpp*)
13556 lt_prog_compiler_pic_F77=
13557 ;;
13558 *)
13559 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13560 ;;
13561 esac
13562
13563 #
13564 # Check to make sure the static flag actually works.
13565 #
13566 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13567 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13568 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13569 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13570 echo $ECHO_N "(cached) $ECHO_C" >&6
13571 else
13572 lt_prog_compiler_static_works_F77=no
13573 save_LDFLAGS="$LDFLAGS"
13574 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13575 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13576 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13577 # The linker can only warn and ignore the option if not recognized
13578 # So say no if there are warnings
13579 if test -s conftest.err; then
13580 # Append any errors to the config.log.
13581 cat conftest.err 1>&5
13582 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13583 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13584 if diff conftest.exp conftest.er2 >/dev/null; then
13585 lt_prog_compiler_static_works_F77=yes
13586 fi
13587 else
13588 lt_prog_compiler_static_works_F77=yes
13589 fi
13590 fi
13591 $rm conftest*
13592 LDFLAGS="$save_LDFLAGS"
13593
13594 fi
13595 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13596 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13597
13598 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13599 :
13600 else
13601 lt_prog_compiler_static_F77=
13602 fi
13603
13604
13605 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13606 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13607 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13608 echo $ECHO_N "(cached) $ECHO_C" >&6
13609 else
13610 lt_cv_prog_compiler_c_o_F77=no
13611 $rm -r conftest 2>/dev/null
13612 mkdir conftest
13613 cd conftest
13614 mkdir out
13615 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13616
13617 lt_compiler_flag="-o out/conftest2.$ac_objext"
13618 # Insert the option either (1) after the last *FLAGS variable, or
13619 # (2) before a word containing "conftest.", or (3) at the end.
13620 # Note that $ac_compile itself does not contain backslashes and begins
13621 # with a dollar sign (not a hyphen), so the echo should work correctly.
13622 lt_compile=`echo "$ac_compile" | $SED \
13623 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13624 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13625 -e 's:$: $lt_compiler_flag:'`
13626 (eval echo "\"\$as_me:13626: $lt_compile\"" >&5)
13627 (eval "$lt_compile" 2>out/conftest.err)
13628 ac_status=$?
13629 cat out/conftest.err >&5
13630 echo "$as_me:13630: \$? = $ac_status" >&5
13631 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13632 then
13633 # The compiler can only warn and ignore the option if not recognized
13634 # So say no if there are warnings
13635 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13636 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13637 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13638 lt_cv_prog_compiler_c_o_F77=yes
13639 fi
13640 fi
13641 chmod u+w . 2>&5
13642 $rm conftest*
13643 # SGI C++ compiler will create directory out/ii_files/ for
13644 # template instantiation
13645 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13646 $rm out/* && rmdir out
13647 cd ..
13648 rmdir conftest
13649 $rm conftest*
13650
13651 fi
13652 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13653 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13654
13655
13656 hard_links="nottested"
13657 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13658 # do not overwrite the value of need_locks provided by the user
13659 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13660 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13661 hard_links=yes
13662 $rm conftest*
13663 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13664 touch conftest.a
13665 ln conftest.a conftest.b 2>&5 || hard_links=no
13666 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13667 echo "$as_me:$LINENO: result: $hard_links" >&5
13668 echo "${ECHO_T}$hard_links" >&6
13669 if test "$hard_links" = no; then
13670 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13671 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13672 need_locks=warn
13673 fi
13674 else
13675 need_locks=no
13676 fi
13677
13678 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13679 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13680
13681 runpath_var=
13682 allow_undefined_flag_F77=
13683 enable_shared_with_static_runtimes_F77=no
13684 archive_cmds_F77=
13685 archive_expsym_cmds_F77=
13686 old_archive_From_new_cmds_F77=
13687 old_archive_from_expsyms_cmds_F77=
13688 export_dynamic_flag_spec_F77=
13689 whole_archive_flag_spec_F77=
13690 thread_safe_flag_spec_F77=
13691 hardcode_libdir_flag_spec_F77=
13692 hardcode_libdir_flag_spec_ld_F77=
13693 hardcode_libdir_separator_F77=
13694 hardcode_direct_F77=no
13695 hardcode_minus_L_F77=no
13696 hardcode_shlibpath_var_F77=unsupported
13697 link_all_deplibs_F77=unknown
13698 hardcode_automatic_F77=no
13699 module_cmds_F77=
13700 module_expsym_cmds_F77=
13701 always_export_symbols_F77=no
13702 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13703 # include_expsyms should be a list of space-separated symbols to be *always*
13704 # included in the symbol list
13705 include_expsyms_F77=
13706 # exclude_expsyms can be an extended regexp of symbols to exclude
13707 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13708 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13709 # as well as any symbol that contains `d'.
13710 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13711 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13712 # platforms (ab)use it in PIC code, but their linkers get confused if
13713 # the symbol is explicitly referenced. Since portable code cannot
13714 # rely on this symbol name, it's probably fine to never include it in
13715 # preloaded symbol tables.
13716 extract_expsyms_cmds=
13717 # Just being paranoid about ensuring that cc_basename is set.
13718 for cc_temp in $compiler""; do
13719 case $cc_temp in
13720 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13721 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13722 \-*) ;;
13723 *) break;;
13724 esac
13725 done
13726 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13727
13728 case $host_os in
13729 cygwin* | mingw* | pw32*)
13730 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13731 # When not using gcc, we currently assume that we are using
13732 # Microsoft Visual C++.
13733 if test "$GCC" != yes; then
13734 with_gnu_ld=no
13735 fi
13736 ;;
13737 interix*)
13738 # we just hope/assume this is gcc and not c89 (= MSVC++)
13739 with_gnu_ld=yes
13740 ;;
13741 openbsd*)
13742 with_gnu_ld=no
13743 ;;
13744 esac
13745
13746 ld_shlibs_F77=yes
13747 if test "$with_gnu_ld" = yes; then
13748 # If archive_cmds runs LD, not CC, wlarc should be empty
13749 wlarc='${wl}'
13750
13751 # Set some defaults for GNU ld with shared library support. These
13752 # are reset later if shared libraries are not supported. Putting them
13753 # here allows them to be overridden if necessary.
13754 runpath_var=LD_RUN_PATH
13755 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13756 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13757 # ancient GNU ld didn't support --whole-archive et. al.
13758 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13759 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13760 else
13761 whole_archive_flag_spec_F77=
13762 fi
13763 supports_anon_versioning=no
13764 case `$LD -v 2>/dev/null` in
13765 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13766 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13767 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13768 *\ 2.11.*) ;; # other 2.11 versions
13769 *) supports_anon_versioning=yes ;;
13770 esac
13771
13772 # See if GNU ld supports shared libraries.
13773 case $host_os in
13774 aix3* | aix4* | aix5*)
13775 # On AIX/PPC, the GNU linker is very broken
13776 if test "$host_cpu" != ia64; then
13777 ld_shlibs_F77=no
13778 cat <<EOF 1>&2
13779
13780 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13781 *** to be unable to reliably create shared libraries on AIX.
13782 *** Therefore, libtool is disabling shared libraries support. If you
13783 *** really care for shared libraries, you may want to modify your PATH
13784 *** so that a non-GNU linker is found, and then restart.
13785
13786 EOF
13787 fi
13788 ;;
13789
13790 amigaos*)
13791 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)'
13792 hardcode_libdir_flag_spec_F77='-L$libdir'
13793 hardcode_minus_L_F77=yes
13794
13795 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13796 # that the semantics of dynamic libraries on AmigaOS, at least up
13797 # to version 4, is to share data among multiple programs linked
13798 # with the same dynamic library. Since this doesn't match the
13799 # behavior of shared libraries on other platforms, we can't use
13800 # them.
13801 ld_shlibs_F77=no
13802 ;;
13803
13804 beos*)
13805 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13806 allow_undefined_flag_F77=unsupported
13807 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13808 # support --undefined. This deserves some investigation. FIXME
13809 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13810 else
13811 ld_shlibs_F77=no
13812 fi
13813 ;;
13814
13815 cygwin* | mingw* | pw32*)
13816 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13817 # as there is no search path for DLLs.
13818 hardcode_libdir_flag_spec_F77='-L$libdir'
13819 allow_undefined_flag_F77=unsupported
13820 always_export_symbols_F77=no
13821 enable_shared_with_static_runtimes_F77=yes
13822 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13823
13824 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13825 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13826 # If the export-symbols file already is a .def file (1st line
13827 # is EXPORTS), use it as is; otherwise, prepend...
13828 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13829 cp $export_symbols $output_objdir/$soname.def;
13830 else
13831 echo EXPORTS > $output_objdir/$soname.def;
13832 cat $export_symbols >> $output_objdir/$soname.def;
13833 fi~
13834 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13835 else
13836 ld_shlibs_F77=no
13837 fi
13838 ;;
13839
13840 interix3*)
13841 hardcode_direct_F77=no
13842 hardcode_shlibpath_var_F77=no
13843 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13844 export_dynamic_flag_spec_F77='${wl}-E'
13845 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13846 # Instead, shared libraries are loaded at an image base (0x10000000 by
13847 # default) and relocated if they conflict, which is a slow very memory
13848 # consuming and fragmenting process. To avoid this, we pick a random,
13849 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13850 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13851 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'
13852 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'
13853 ;;
13854
13855 linux*)
13856 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13857 tmp_addflag=
13858 case $cc_basename,$host_cpu in
13859 pgcc*) # Portland Group C compiler
13860 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'
13861 tmp_addflag=' $pic_flag'
13862 ;;
13863 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13864 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'
13865 tmp_addflag=' $pic_flag -Mnomain' ;;
13866 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13867 tmp_addflag=' -i_dynamic' ;;
13868 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13869 tmp_addflag=' -i_dynamic -nofor_main' ;;
13870 ifc* | ifort*) # Intel Fortran compiler
13871 tmp_addflag=' -nofor_main' ;;
13872 esac
13873 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13874
13875 if test $supports_anon_versioning = yes; then
13876 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13877 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13878 $echo "local: *; };" >> $output_objdir/$libname.ver~
13879 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13880 fi
13881 else
13882 ld_shlibs_F77=no
13883 fi
13884 ;;
13885
13886 netbsd*)
13887 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13888 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13889 wlarc=
13890 else
13891 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13892 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13893 fi
13894 ;;
13895
13896 solaris*)
13897 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13898 ld_shlibs_F77=no
13899 cat <<EOF 1>&2
13900
13901 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13902 *** create shared libraries on Solaris systems. Therefore, libtool
13903 *** is disabling shared libraries support. We urge you to upgrade GNU
13904 *** binutils to release 2.9.1 or newer. Another option is to modify
13905 *** your PATH or compiler configuration so that the native linker is
13906 *** used, and then restart.
13907
13908 EOF
13909 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13910 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13911 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13912 else
13913 ld_shlibs_F77=no
13914 fi
13915 ;;
13916
13917 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13918 case `$LD -v 2>&1` in
13919 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13920 ld_shlibs_F77=no
13921 cat <<_LT_EOF 1>&2
13922
13923 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13924 *** reliably create shared libraries on SCO systems. Therefore, libtool
13925 *** is disabling shared libraries support. We urge you to upgrade GNU
13926 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13927 *** your PATH or compiler configuration so that the native linker is
13928 *** used, and then restart.
13929
13930 _LT_EOF
13931 ;;
13932 *)
13933 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13934 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13935 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13936 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13937 else
13938 ld_shlibs_F77=no
13939 fi
13940 ;;
13941 esac
13942 ;;
13943
13944 sunos4*)
13945 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13946 wlarc=
13947 hardcode_direct_F77=yes
13948 hardcode_shlibpath_var_F77=no
13949 ;;
13950
13951 *)
13952 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13953 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13954 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13955 else
13956 ld_shlibs_F77=no
13957 fi
13958 ;;
13959 esac
13960
13961 if test "$ld_shlibs_F77" = no; then
13962 runpath_var=
13963 hardcode_libdir_flag_spec_F77=
13964 export_dynamic_flag_spec_F77=
13965 whole_archive_flag_spec_F77=
13966 fi
13967 else
13968 # PORTME fill in a description of your system's linker (not GNU ld)
13969 case $host_os in
13970 aix3*)
13971 allow_undefined_flag_F77=unsupported
13972 always_export_symbols_F77=yes
13973 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'
13974 # Note: this linker hardcodes the directories in LIBPATH if there
13975 # are no directories specified by -L.
13976 hardcode_minus_L_F77=yes
13977 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13978 # Neither direct hardcoding nor static linking is supported with a
13979 # broken collect2.
13980 hardcode_direct_F77=unsupported
13981 fi
13982 ;;
13983
13984 aix4* | aix5*)
13985 if test "$host_cpu" = ia64; then
13986 # On IA64, the linker does run time linking by default, so we don't
13987 # have to do anything special.
13988 aix_use_runtimelinking=no
13989 exp_sym_flag='-Bexport'
13990 no_entry_flag=""
13991 else
13992 # If we're using GNU nm, then we don't want the "-C" option.
13993 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13994 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13995 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'
13996 else
13997 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'
13998 fi
13999 aix_use_runtimelinking=no
14000
14001 # Test if we are trying to use run time linking or normal
14002 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14003 # need to do runtime linking.
14004 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14005 for ld_flag in $LDFLAGS; do
14006 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14007 aix_use_runtimelinking=yes
14008 break
14009 fi
14010 done
14011 ;;
14012 esac
14013
14014 exp_sym_flag='-bexport'
14015 no_entry_flag='-bnoentry'
14016 fi
14017
14018 # When large executables or shared objects are built, AIX ld can
14019 # have problems creating the table of contents. If linking a library
14020 # or program results in "error TOC overflow" add -mminimal-toc to
14021 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14022 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14023
14024 archive_cmds_F77=''
14025 hardcode_direct_F77=yes
14026 hardcode_libdir_separator_F77=':'
14027 link_all_deplibs_F77=yes
14028
14029 if test "$GCC" = yes; then
14030 case $host_os in aix4.[012]|aix4.[012].*)
14031 # We only want to do this on AIX 4.2 and lower, the check
14032 # below for broken collect2 doesn't work under 4.3+
14033 collect2name=`${CC} -print-prog-name=collect2`
14034 if test -f "$collect2name" && \
14035 strings "$collect2name" | grep resolve_lib_name >/dev/null
14036 then
14037 # We have reworked collect2
14038 hardcode_direct_F77=yes
14039 else
14040 # We have old collect2
14041 hardcode_direct_F77=unsupported
14042 # It fails to find uninstalled libraries when the uninstalled
14043 # path is not listed in the libpath. Setting hardcode_minus_L
14044 # to unsupported forces relinking
14045 hardcode_minus_L_F77=yes
14046 hardcode_libdir_flag_spec_F77='-L$libdir'
14047 hardcode_libdir_separator_F77=
14048 fi
14049 ;;
14050 esac
14051 shared_flag='-shared'
14052 if test "$aix_use_runtimelinking" = yes; then
14053 shared_flag="$shared_flag "'${wl}-G'
14054 fi
14055 else
14056 # not using gcc
14057 if test "$host_cpu" = ia64; then
14058 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14059 # chokes on -Wl,-G. The following line is correct:
14060 shared_flag='-G'
14061 else
14062 if test "$aix_use_runtimelinking" = yes; then
14063 shared_flag='${wl}-G'
14064 else
14065 shared_flag='${wl}-bM:SRE'
14066 fi
14067 fi
14068 fi
14069
14070 # It seems that -bexpall does not export symbols beginning with
14071 # underscore (_), so it is better to generate a list of symbols to export.
14072 always_export_symbols_F77=yes
14073 if test "$aix_use_runtimelinking" = yes; then
14074 # Warning - without using the other runtime loading flags (-brtl),
14075 # -berok will link without error, but may produce a broken library.
14076 allow_undefined_flag_F77='-berok'
14077 # Determine the default libpath from the value encoded in an empty executable.
14078 cat >conftest.$ac_ext <<_ACEOF
14079 program main
14080
14081 end
14082 _ACEOF
14083 rm -f conftest.$ac_objext conftest$ac_exeext
14084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14085 (eval $ac_link) 2>conftest.er1
14086 ac_status=$?
14087 grep -v '^ *+' conftest.er1 >conftest.err
14088 rm -f conftest.er1
14089 cat conftest.err >&5
14090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14091 (exit $ac_status); } &&
14092 { ac_try='test -z "$ac_f77_werror_flag"
14093 || test ! -s conftest.err'
14094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14095 (eval $ac_try) 2>&5
14096 ac_status=$?
14097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14098 (exit $ac_status); }; } &&
14099 { ac_try='test -s conftest$ac_exeext'
14100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14101 (eval $ac_try) 2>&5
14102 ac_status=$?
14103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14104 (exit $ac_status); }; }; then
14105
14106 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14107 }'`
14108 # Check for a 64-bit object if we didn't find anything.
14109 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; }
14110 }'`; fi
14111 else
14112 echo "$as_me: failed program was:" >&5
14113 sed 's/^/| /' conftest.$ac_ext >&5
14114
14115 fi
14116 rm -f conftest.err conftest.$ac_objext \
14117 conftest$ac_exeext conftest.$ac_ext
14118 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14119
14120 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14121 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"
14122 else
14123 if test "$host_cpu" = ia64; then
14124 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14125 allow_undefined_flag_F77="-z nodefs"
14126 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"
14127 else
14128 # Determine the default libpath from the value encoded in an empty executable.
14129 cat >conftest.$ac_ext <<_ACEOF
14130 program main
14131
14132 end
14133 _ACEOF
14134 rm -f conftest.$ac_objext conftest$ac_exeext
14135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14136 (eval $ac_link) 2>conftest.er1
14137 ac_status=$?
14138 grep -v '^ *+' conftest.er1 >conftest.err
14139 rm -f conftest.er1
14140 cat conftest.err >&5
14141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14142 (exit $ac_status); } &&
14143 { ac_try='test -z "$ac_f77_werror_flag"
14144 || test ! -s conftest.err'
14145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14146 (eval $ac_try) 2>&5
14147 ac_status=$?
14148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14149 (exit $ac_status); }; } &&
14150 { ac_try='test -s conftest$ac_exeext'
14151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14152 (eval $ac_try) 2>&5
14153 ac_status=$?
14154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14155 (exit $ac_status); }; }; then
14156
14157 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14158 }'`
14159 # Check for a 64-bit object if we didn't find anything.
14160 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; }
14161 }'`; fi
14162 else
14163 echo "$as_me: failed program was:" >&5
14164 sed 's/^/| /' conftest.$ac_ext >&5
14165
14166 fi
14167 rm -f conftest.err conftest.$ac_objext \
14168 conftest$ac_exeext conftest.$ac_ext
14169 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14170
14171 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14172 # Warning - without using the other run time loading flags,
14173 # -berok will link without error, but may produce a broken library.
14174 no_undefined_flag_F77=' ${wl}-bernotok'
14175 allow_undefined_flag_F77=' ${wl}-berok'
14176 # Exported symbols can be pulled into shared objects from archives
14177 whole_archive_flag_spec_F77='$convenience'
14178 archive_cmds_need_lc_F77=yes
14179 # This is similar to how AIX traditionally builds its shared libraries.
14180 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'
14181 fi
14182 fi
14183 ;;
14184
14185 amigaos*)
14186 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)'
14187 hardcode_libdir_flag_spec_F77='-L$libdir'
14188 hardcode_minus_L_F77=yes
14189 # see comment about different semantics on the GNU ld section
14190 ld_shlibs_F77=no
14191 ;;
14192
14193 bsdi[45]*)
14194 export_dynamic_flag_spec_F77=-rdynamic
14195 ;;
14196
14197 cygwin* | mingw* | pw32*)
14198 # When not using gcc, we currently assume that we are using
14199 # Microsoft Visual C++.
14200 # hardcode_libdir_flag_spec is actually meaningless, as there is
14201 # no search path for DLLs.
14202 hardcode_libdir_flag_spec_F77=' '
14203 allow_undefined_flag_F77=unsupported
14204 # Tell ltmain to make .lib files, not .a files.
14205 libext=lib
14206 # Tell ltmain to make .dll files, not .so files.
14207 shrext_cmds=".dll"
14208 # FIXME: Setting linknames here is a bad hack.
14209 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14210 # The linker will automatically build a .lib file if we build a DLL.
14211 old_archive_From_new_cmds_F77='true'
14212 # FIXME: Should let the user specify the lib program.
14213 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14214 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14215 enable_shared_with_static_runtimes_F77=yes
14216 ;;
14217
14218 darwin* | rhapsody*)
14219 case $host_os in
14220 rhapsody* | darwin1.[012])
14221 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14222 ;;
14223 *) # Darwin 1.3 on
14224 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14225 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14226 else
14227 case ${MACOSX_DEPLOYMENT_TARGET} in
14228 10.[012])
14229 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14230 ;;
14231 10.*)
14232 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14233 ;;
14234 esac
14235 fi
14236 ;;
14237 esac
14238 archive_cmds_need_lc_F77=no
14239 hardcode_direct_F77=no
14240 hardcode_automatic_F77=yes
14241 hardcode_shlibpath_var_F77=unsupported
14242 whole_archive_flag_spec_F77=''
14243 link_all_deplibs_F77=yes
14244 if test "$GCC" = yes ; then
14245 output_verbose_link_cmd='echo'
14246 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14247 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14248 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14249 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}'
14250 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}'
14251 else
14252 case $cc_basename in
14253 xlc*)
14254 output_verbose_link_cmd='echo'
14255 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14256 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14257 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14258 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}'
14259 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}'
14260 ;;
14261 *)
14262 ld_shlibs_F77=no
14263 ;;
14264 esac
14265 fi
14266 ;;
14267
14268 dgux*)
14269 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14270 hardcode_libdir_flag_spec_F77='-L$libdir'
14271 hardcode_shlibpath_var_F77=no
14272 ;;
14273
14274 freebsd1*)
14275 ld_shlibs_F77=no
14276 ;;
14277
14278 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14279 # support. Future versions do this automatically, but an explicit c++rt0.o
14280 # does not break anything, and helps significantly (at the cost of a little
14281 # extra space).
14282 freebsd2.2*)
14283 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14284 hardcode_libdir_flag_spec_F77='-R$libdir'
14285 hardcode_direct_F77=yes
14286 hardcode_shlibpath_var_F77=no
14287 ;;
14288
14289 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14290 freebsd2*)
14291 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14292 hardcode_direct_F77=yes
14293 hardcode_minus_L_F77=yes
14294 hardcode_shlibpath_var_F77=no
14295 ;;
14296
14297 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14298 freebsd* | kfreebsd*-gnu | dragonfly*)
14299 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14300 hardcode_libdir_flag_spec_F77='-R$libdir'
14301 hardcode_direct_F77=yes
14302 hardcode_shlibpath_var_F77=no
14303 ;;
14304
14305 hpux9*)
14306 if test "$GCC" = yes; then
14307 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'
14308 else
14309 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'
14310 fi
14311 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14312 hardcode_libdir_separator_F77=:
14313 hardcode_direct_F77=yes
14314
14315 # hardcode_minus_L: Not really in the search PATH,
14316 # but as the default location of the library.
14317 hardcode_minus_L_F77=yes
14318 export_dynamic_flag_spec_F77='${wl}-E'
14319 ;;
14320
14321 hpux10*)
14322 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14323 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14324 else
14325 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14326 fi
14327 if test "$with_gnu_ld" = no; then
14328 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14329 hardcode_libdir_separator_F77=:
14330
14331 hardcode_direct_F77=yes
14332 export_dynamic_flag_spec_F77='${wl}-E'
14333
14334 # hardcode_minus_L: Not really in the search PATH,
14335 # but as the default location of the library.
14336 hardcode_minus_L_F77=yes
14337 fi
14338 ;;
14339
14340 hpux11*)
14341 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14342 case $host_cpu in
14343 hppa*64*)
14344 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14345 ;;
14346 ia64*)
14347 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14348 ;;
14349 *)
14350 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14351 ;;
14352 esac
14353 else
14354 case $host_cpu in
14355 hppa*64*)
14356 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14357 ;;
14358 ia64*)
14359 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14360 ;;
14361 *)
14362 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14363 ;;
14364 esac
14365 fi
14366 if test "$with_gnu_ld" = no; then
14367 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14368 hardcode_libdir_separator_F77=:
14369
14370 case $host_cpu in
14371 hppa*64*|ia64*)
14372 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14373 hardcode_direct_F77=no
14374 hardcode_shlibpath_var_F77=no
14375 ;;
14376 *)
14377 hardcode_direct_F77=yes
14378 export_dynamic_flag_spec_F77='${wl}-E'
14379
14380 # hardcode_minus_L: Not really in the search PATH,
14381 # but as the default location of the library.
14382 hardcode_minus_L_F77=yes
14383 ;;
14384 esac
14385 fi
14386 ;;
14387
14388 irix5* | irix6* | nonstopux*)
14389 if test "$GCC" = yes; then
14390 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'
14391 else
14392 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'
14393 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14394 fi
14395 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14396 hardcode_libdir_separator_F77=:
14397 link_all_deplibs_F77=yes
14398 ;;
14399
14400 netbsd*)
14401 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14402 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14403 else
14404 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14405 fi
14406 hardcode_libdir_flag_spec_F77='-R$libdir'
14407 hardcode_direct_F77=yes
14408 hardcode_shlibpath_var_F77=no
14409 ;;
14410
14411 newsos6)
14412 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14413 hardcode_direct_F77=yes
14414 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14415 hardcode_libdir_separator_F77=:
14416 hardcode_shlibpath_var_F77=no
14417 ;;
14418
14419 openbsd*)
14420 hardcode_direct_F77=yes
14421 hardcode_shlibpath_var_F77=no
14422 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14423 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14424 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14425 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14426 export_dynamic_flag_spec_F77='${wl}-E'
14427 else
14428 case $host_os in
14429 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14430 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14431 hardcode_libdir_flag_spec_F77='-R$libdir'
14432 ;;
14433 *)
14434 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14435 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14436 ;;
14437 esac
14438 fi
14439 ;;
14440
14441 os2*)
14442 hardcode_libdir_flag_spec_F77='-L$libdir'
14443 hardcode_minus_L_F77=yes
14444 allow_undefined_flag_F77=unsupported
14445 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'
14446 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14447 ;;
14448
14449 osf3*)
14450 if test "$GCC" = yes; then
14451 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14452 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'
14453 else
14454 allow_undefined_flag_F77=' -expect_unresolved \*'
14455 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'
14456 fi
14457 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14458 hardcode_libdir_separator_F77=:
14459 ;;
14460
14461 osf4* | osf5*) # as osf3* with the addition of -msym flag
14462 if test "$GCC" = yes; then
14463 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14464 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'
14465 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14466 else
14467 allow_undefined_flag_F77=' -expect_unresolved \*'
14468 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'
14469 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~
14470 $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'
14471
14472 # Both c and cxx compiler support -rpath directly
14473 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14474 fi
14475 hardcode_libdir_separator_F77=:
14476 ;;
14477
14478 solaris*)
14479 no_undefined_flag_F77=' -z text'
14480 if test "$GCC" = yes; then
14481 wlarc='${wl}'
14482 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14483 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14484 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14485 else
14486 wlarc=''
14487 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14488 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14489 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14490 fi
14491 hardcode_libdir_flag_spec_F77='-R$libdir'
14492 hardcode_shlibpath_var_F77=no
14493 case $host_os in
14494 solaris2.[0-5] | solaris2.[0-5].*) ;;
14495 *)
14496 # The compiler driver will combine linker options so we
14497 # cannot just pass the convience library names through
14498 # without $wl, iff we do not link with $LD.
14499 # Luckily, gcc supports the same syntax we need for Sun Studio.
14500 # Supported since Solaris 2.6 (maybe 2.5.1?)
14501 case $wlarc in
14502 '')
14503 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14504 *)
14505 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' ;;
14506 esac ;;
14507 esac
14508 link_all_deplibs_F77=yes
14509 ;;
14510
14511 sunos4*)
14512 if test "x$host_vendor" = xsequent; then
14513 # Use $CC to link under sequent, because it throws in some extra .o
14514 # files that make .init and .fini sections work.
14515 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14516 else
14517 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14518 fi
14519 hardcode_libdir_flag_spec_F77='-L$libdir'
14520 hardcode_direct_F77=yes
14521 hardcode_minus_L_F77=yes
14522 hardcode_shlibpath_var_F77=no
14523 ;;
14524
14525 sysv4)
14526 case $host_vendor in
14527 sni)
14528 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14529 hardcode_direct_F77=yes # is this really true???
14530 ;;
14531 siemens)
14532 ## LD is ld it makes a PLAMLIB
14533 ## CC just makes a GrossModule.
14534 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14535 reload_cmds_F77='$CC -r -o $output$reload_objs'
14536 hardcode_direct_F77=no
14537 ;;
14538 motorola)
14539 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14540 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14541 ;;
14542 esac
14543 runpath_var='LD_RUN_PATH'
14544 hardcode_shlibpath_var_F77=no
14545 ;;
14546
14547 sysv4.3*)
14548 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14549 hardcode_shlibpath_var_F77=no
14550 export_dynamic_flag_spec_F77='-Bexport'
14551 ;;
14552
14553 sysv4*MP*)
14554 if test -d /usr/nec; then
14555 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14556 hardcode_shlibpath_var_F77=no
14557 runpath_var=LD_RUN_PATH
14558 hardcode_runpath_var=yes
14559 ld_shlibs_F77=yes
14560 fi
14561 ;;
14562
14563 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14564 no_undefined_flag_F77='${wl}-z,text'
14565 archive_cmds_need_lc_F77=no
14566 hardcode_shlibpath_var_F77=no
14567 runpath_var='LD_RUN_PATH'
14568
14569 if test "$GCC" = yes; then
14570 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14571 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14572 else
14573 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14574 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14575 fi
14576 ;;
14577
14578 sysv5* | sco3.2v5* | sco5v6*)
14579 # Note: We can NOT use -z defs as we might desire, because we do not
14580 # link with -lc, and that would cause any symbols used from libc to
14581 # always be unresolved, which means just about no library would
14582 # ever link correctly. If we're not using GNU ld we use -z text
14583 # though, which does catch some bad symbols but isn't as heavy-handed
14584 # as -z defs.
14585 no_undefined_flag_F77='${wl}-z,text'
14586 allow_undefined_flag_F77='${wl}-z,nodefs'
14587 archive_cmds_need_lc_F77=no
14588 hardcode_shlibpath_var_F77=no
14589 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14590 hardcode_libdir_separator_F77=':'
14591 link_all_deplibs_F77=yes
14592 export_dynamic_flag_spec_F77='${wl}-Bexport'
14593 runpath_var='LD_RUN_PATH'
14594
14595 if test "$GCC" = yes; then
14596 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14597 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14598 else
14599 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14600 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14601 fi
14602 ;;
14603
14604 uts4*)
14605 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14606 hardcode_libdir_flag_spec_F77='-L$libdir'
14607 hardcode_shlibpath_var_F77=no
14608 ;;
14609
14610 *)
14611 ld_shlibs_F77=no
14612 ;;
14613 esac
14614 fi
14615
14616 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14617 echo "${ECHO_T}$ld_shlibs_F77" >&6
14618 test "$ld_shlibs_F77" = no && can_build_shared=no
14619
14620 #
14621 # Do we need to explicitly link libc?
14622 #
14623 case "x$archive_cmds_need_lc_F77" in
14624 x|xyes)
14625 # Assume -lc should be added
14626 archive_cmds_need_lc_F77=yes
14627
14628 if test "$enable_shared" = yes && test "$GCC" = yes; then
14629 case $archive_cmds_F77 in
14630 *'~'*)
14631 # FIXME: we may have to deal with multi-command sequences.
14632 ;;
14633 '$CC '*)
14634 # Test whether the compiler implicitly links with -lc since on some
14635 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14636 # to ld, don't add -lc before -lgcc.
14637 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14638 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14639 $rm conftest*
14640 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14641
14642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14643 (eval $ac_compile) 2>&5
14644 ac_status=$?
14645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14646 (exit $ac_status); } 2>conftest.err; then
14647 soname=conftest
14648 lib=conftest
14649 libobjs=conftest.$ac_objext
14650 deplibs=
14651 wl=$lt_prog_compiler_wl_F77
14652 pic_flag=$lt_prog_compiler_pic_F77
14653 compiler_flags=-v
14654 linker_flags=-v
14655 verstring=
14656 output_objdir=.
14657 libname=conftest
14658 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14659 allow_undefined_flag_F77=
14660 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14661 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14662 ac_status=$?
14663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14664 (exit $ac_status); }
14665 then
14666 archive_cmds_need_lc_F77=no
14667 else
14668 archive_cmds_need_lc_F77=yes
14669 fi
14670 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14671 else
14672 cat conftest.err 1>&5
14673 fi
14674 $rm conftest*
14675 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14676 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14677 ;;
14678 esac
14679 fi
14680 ;;
14681 esac
14682
14683 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14684 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14685 library_names_spec=
14686 libname_spec='lib$name'
14687 soname_spec=
14688 shrext_cmds=".so"
14689 postinstall_cmds=
14690 postuninstall_cmds=
14691 finish_cmds=
14692 finish_eval=
14693 shlibpath_var=
14694 shlibpath_overrides_runpath=unknown
14695 version_type=none
14696 dynamic_linker="$host_os ld.so"
14697 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14698 if test "$GCC" = yes; then
14699 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14700 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14701 # if the path contains ";" then we assume it to be the separator
14702 # otherwise default to the standard path separator (i.e. ":") - it is
14703 # assumed that no part of a normal pathname contains ";" but that should
14704 # okay in the real world where ";" in dirpaths is itself problematic.
14705 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14706 else
14707 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14708 fi
14709 else
14710 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14711 fi
14712 need_lib_prefix=unknown
14713 hardcode_into_libs=no
14714
14715 # when you set need_version to no, make sure it does not cause -set_version
14716 # flags to be left without arguments
14717 need_version=unknown
14718
14719 case $host_os in
14720 aix3*)
14721 version_type=linux
14722 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14723 shlibpath_var=LIBPATH
14724
14725 # AIX 3 has no versioning support, so we append a major version to the name.
14726 soname_spec='${libname}${release}${shared_ext}$major'
14727 ;;
14728
14729 aix4* | aix5*)
14730 version_type=linux
14731 need_lib_prefix=no
14732 need_version=no
14733 hardcode_into_libs=yes
14734 if test "$host_cpu" = ia64; then
14735 # AIX 5 supports IA64
14736 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14737 shlibpath_var=LD_LIBRARY_PATH
14738 else
14739 # With GCC up to 2.95.x, collect2 would create an import file
14740 # for dependence libraries. The import file would start with
14741 # the line `#! .'. This would cause the generated library to
14742 # depend on `.', always an invalid library. This was fixed in
14743 # development snapshots of GCC prior to 3.0.
14744 case $host_os in
14745 aix4 | aix4.[01] | aix4.[01].*)
14746 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14747 echo ' yes '
14748 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14749 :
14750 else
14751 can_build_shared=no
14752 fi
14753 ;;
14754 esac
14755 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14756 # soname into executable. Probably we can add versioning support to
14757 # collect2, so additional links can be useful in future.
14758 if test "$aix_use_runtimelinking" = yes; then
14759 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14760 # instead of lib<name>.a to let people know that these are not
14761 # typical AIX shared libraries.
14762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14763 else
14764 # We preserve .a as extension for shared libraries through AIX4.2
14765 # and later when we are not doing run time linking.
14766 library_names_spec='${libname}${release}.a $libname.a'
14767 soname_spec='${libname}${release}${shared_ext}$major'
14768 fi
14769 shlibpath_var=LIBPATH
14770 fi
14771 ;;
14772
14773 amigaos*)
14774 library_names_spec='$libname.ixlibrary $libname.a'
14775 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14776 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'
14777 ;;
14778
14779 beos*)
14780 library_names_spec='${libname}${shared_ext}'
14781 dynamic_linker="$host_os ld.so"
14782 shlibpath_var=LIBRARY_PATH
14783 ;;
14784
14785 bsdi[45]*)
14786 version_type=linux
14787 need_version=no
14788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14789 soname_spec='${libname}${release}${shared_ext}$major'
14790 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14791 shlibpath_var=LD_LIBRARY_PATH
14792 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14793 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14794 # the default ld.so.conf also contains /usr/contrib/lib and
14795 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14796 # libtool to hard-code these into programs
14797 ;;
14798
14799 cygwin* | mingw* | pw32*)
14800 version_type=windows
14801 shrext_cmds=".dll"
14802 need_version=no
14803 need_lib_prefix=no
14804
14805 case $GCC,$host_os in
14806 yes,cygwin* | yes,mingw* | yes,pw32*)
14807 library_names_spec='$libname.dll.a'
14808 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14809 postinstall_cmds='base_file=`basename \${file}`~
14810 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14811 dldir=$destdir/`dirname \$dlpath`~
14812 test -d \$dldir || mkdir -p \$dldir~
14813 $install_prog $dir/$dlname \$dldir/$dlname~
14814 chmod a+x \$dldir/$dlname'
14815 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14816 dlpath=$dir/\$dldll~
14817 $rm \$dlpath'
14818 shlibpath_overrides_runpath=yes
14819
14820 case $host_os in
14821 cygwin*)
14822 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14823 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14824 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14825 ;;
14826 mingw*)
14827 # MinGW DLLs use traditional 'lib' prefix
14828 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14829 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14830 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14831 # It is most probably a Windows format PATH printed by
14832 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14833 # path with ; separators, and with drive letters. We can handle the
14834 # drive letters (cygwin fileutils understands them), so leave them,
14835 # especially as we might pass files found there to a mingw objdump,
14836 # which wouldn't understand a cygwinified path. Ahh.
14837 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14838 else
14839 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14840 fi
14841 ;;
14842 pw32*)
14843 # pw32 DLLs use 'pw' prefix rather than 'lib'
14844 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14845 ;;
14846 esac
14847 ;;
14848
14849 *)
14850 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14851 ;;
14852 esac
14853 dynamic_linker='Win32 ld.exe'
14854 # FIXME: first we should search . and the directory the executable is in
14855 shlibpath_var=PATH
14856 ;;
14857
14858 darwin* | rhapsody*)
14859 dynamic_linker="$host_os dyld"
14860 version_type=darwin
14861 need_lib_prefix=no
14862 need_version=no
14863 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14864 soname_spec='${libname}${release}${major}$shared_ext'
14865 shlibpath_overrides_runpath=yes
14866 shlibpath_var=DYLD_LIBRARY_PATH
14867 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14868 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14869 if test "$GCC" = yes; then
14870 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"`
14871 else
14872 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14873 fi
14874 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14875 ;;
14876
14877 dgux*)
14878 version_type=linux
14879 need_lib_prefix=no
14880 need_version=no
14881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14882 soname_spec='${libname}${release}${shared_ext}$major'
14883 shlibpath_var=LD_LIBRARY_PATH
14884 ;;
14885
14886 freebsd1*)
14887 dynamic_linker=no
14888 ;;
14889
14890 kfreebsd*-gnu)
14891 version_type=linux
14892 need_lib_prefix=no
14893 need_version=no
14894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14895 soname_spec='${libname}${release}${shared_ext}$major'
14896 shlibpath_var=LD_LIBRARY_PATH
14897 shlibpath_overrides_runpath=no
14898 hardcode_into_libs=yes
14899 dynamic_linker='GNU ld.so'
14900 ;;
14901
14902 freebsd* | dragonfly*)
14903 # DragonFly does not have aout. When/if they implement a new
14904 # versioning mechanism, adjust this.
14905 if test -x /usr/bin/objformat; then
14906 objformat=`/usr/bin/objformat`
14907 else
14908 case $host_os in
14909 freebsd[123]*) objformat=aout ;;
14910 *) objformat=elf ;;
14911 esac
14912 fi
14913 version_type=freebsd-$objformat
14914 case $version_type in
14915 freebsd-elf*)
14916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14917 need_version=no
14918 need_lib_prefix=no
14919 ;;
14920 freebsd-*)
14921 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14922 need_version=yes
14923 ;;
14924 esac
14925 shlibpath_var=LD_LIBRARY_PATH
14926 case $host_os in
14927 freebsd2*)
14928 shlibpath_overrides_runpath=yes
14929 ;;
14930 freebsd3.[01]* | freebsdelf3.[01]*)
14931 shlibpath_overrides_runpath=yes
14932 hardcode_into_libs=yes
14933 ;;
14934 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14935 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14936 shlibpath_overrides_runpath=no
14937 hardcode_into_libs=yes
14938 ;;
14939 freebsd*) # from 4.6 on
14940 shlibpath_overrides_runpath=yes
14941 hardcode_into_libs=yes
14942 ;;
14943 esac
14944 ;;
14945
14946 gnu*)
14947 version_type=linux
14948 need_lib_prefix=no
14949 need_version=no
14950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14951 soname_spec='${libname}${release}${shared_ext}$major'
14952 shlibpath_var=LD_LIBRARY_PATH
14953 hardcode_into_libs=yes
14954 ;;
14955
14956 hpux9* | hpux10* | hpux11*)
14957 # Give a soname corresponding to the major version so that dld.sl refuses to
14958 # link against other versions.
14959 version_type=sunos
14960 need_lib_prefix=no
14961 need_version=no
14962 case $host_cpu in
14963 ia64*)
14964 shrext_cmds='.so'
14965 hardcode_into_libs=yes
14966 dynamic_linker="$host_os dld.so"
14967 shlibpath_var=LD_LIBRARY_PATH
14968 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14970 soname_spec='${libname}${release}${shared_ext}$major'
14971 if test "X$HPUX_IA64_MODE" = X32; then
14972 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14973 else
14974 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14975 fi
14976 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14977 ;;
14978 hppa*64*)
14979 shrext_cmds='.sl'
14980 hardcode_into_libs=yes
14981 dynamic_linker="$host_os dld.sl"
14982 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14983 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14985 soname_spec='${libname}${release}${shared_ext}$major'
14986 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14987 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14988 ;;
14989 *)
14990 shrext_cmds='.sl'
14991 dynamic_linker="$host_os dld.sl"
14992 shlibpath_var=SHLIB_PATH
14993 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14995 soname_spec='${libname}${release}${shared_ext}$major'
14996 ;;
14997 esac
14998 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14999 postinstall_cmds='chmod 555 $lib'
15000 ;;
15001
15002 interix3*)
15003 version_type=linux
15004 need_lib_prefix=no
15005 need_version=no
15006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15007 soname_spec='${libname}${release}${shared_ext}$major'
15008 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15009 shlibpath_var=LD_LIBRARY_PATH
15010 shlibpath_overrides_runpath=no
15011 hardcode_into_libs=yes
15012 ;;
15013
15014 irix5* | irix6* | nonstopux*)
15015 case $host_os in
15016 nonstopux*) version_type=nonstopux ;;
15017 *)
15018 if test "$lt_cv_prog_gnu_ld" = yes; then
15019 version_type=linux
15020 else
15021 version_type=irix
15022 fi ;;
15023 esac
15024 need_lib_prefix=no
15025 need_version=no
15026 soname_spec='${libname}${release}${shared_ext}$major'
15027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15028 case $host_os in
15029 irix5* | nonstopux*)
15030 libsuff= shlibsuff=
15031 ;;
15032 *)
15033 case $LD in # libtool.m4 will add one of these switches to LD
15034 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15035 libsuff= shlibsuff= libmagic=32-bit;;
15036 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15037 libsuff=32 shlibsuff=N32 libmagic=N32;;
15038 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15039 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15040 *) libsuff= shlibsuff= libmagic=never-match;;
15041 esac
15042 ;;
15043 esac
15044 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15045 shlibpath_overrides_runpath=no
15046 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15047 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15048 hardcode_into_libs=yes
15049 ;;
15050
15051 # No shared lib support for Linux oldld, aout, or coff.
15052 linux*oldld* | linux*aout* | linux*coff*)
15053 dynamic_linker=no
15054 ;;
15055
15056 # This must be Linux ELF.
15057 linux*)
15058 version_type=linux
15059 need_lib_prefix=no
15060 need_version=no
15061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15062 soname_spec='${libname}${release}${shared_ext}$major'
15063 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15064 shlibpath_var=LD_LIBRARY_PATH
15065 shlibpath_overrides_runpath=no
15066 # This implies no fast_install, which is unacceptable.
15067 # Some rework will be needed to allow for fast_install
15068 # before this can be enabled.
15069 hardcode_into_libs=yes
15070
15071 # find out which ABI we are using
15072 libsuff=
15073 case "$host_cpu" in
15074 x86_64*|s390x*|powerpc64*)
15075 echo '#line 15075 "configure"' > conftest.$ac_ext
15076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15077 (eval $ac_compile) 2>&5
15078 ac_status=$?
15079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15080 (exit $ac_status); }; then
15081 case `/usr/bin/file conftest.$ac_objext` in
15082 *64-bit*)
15083 libsuff=64
15084 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15085 ;;
15086 esac
15087 fi
15088 rm -rf conftest*
15089 ;;
15090 esac
15091
15092 # Append ld.so.conf contents to the search path
15093 if test -f /etc/ld.so.conf; then
15094 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' ' '`
15095 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15096 fi
15097
15098 # We used to test for /lib/ld.so.1 and disable shared libraries on
15099 # powerpc, because MkLinux only supported shared libraries with the
15100 # GNU dynamic linker. Since this was broken with cross compilers,
15101 # most powerpc-linux boxes support dynamic linking these days and
15102 # people can always --disable-shared, the test was removed, and we
15103 # assume the GNU/Linux dynamic linker is in use.
15104 dynamic_linker='GNU/Linux ld.so'
15105 ;;
15106
15107 knetbsd*-gnu)
15108 version_type=linux
15109 need_lib_prefix=no
15110 need_version=no
15111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15112 soname_spec='${libname}${release}${shared_ext}$major'
15113 shlibpath_var=LD_LIBRARY_PATH
15114 shlibpath_overrides_runpath=no
15115 hardcode_into_libs=yes
15116 dynamic_linker='GNU ld.so'
15117 ;;
15118
15119 netbsd*)
15120 version_type=sunos
15121 need_lib_prefix=no
15122 need_version=no
15123 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15125 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15126 dynamic_linker='NetBSD (a.out) ld.so'
15127 else
15128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15129 soname_spec='${libname}${release}${shared_ext}$major'
15130 dynamic_linker='NetBSD ld.elf_so'
15131 fi
15132 shlibpath_var=LD_LIBRARY_PATH
15133 shlibpath_overrides_runpath=yes
15134 hardcode_into_libs=yes
15135 ;;
15136
15137 newsos6)
15138 version_type=linux
15139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15140 shlibpath_var=LD_LIBRARY_PATH
15141 shlibpath_overrides_runpath=yes
15142 ;;
15143
15144 nto-qnx*)
15145 version_type=linux
15146 need_lib_prefix=no
15147 need_version=no
15148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15149 soname_spec='${libname}${release}${shared_ext}$major'
15150 shlibpath_var=LD_LIBRARY_PATH
15151 shlibpath_overrides_runpath=yes
15152 ;;
15153
15154 openbsd*)
15155 version_type=sunos
15156 sys_lib_dlsearch_path_spec="/usr/lib"
15157 need_lib_prefix=no
15158 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15159 case $host_os in
15160 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15161 *) need_version=no ;;
15162 esac
15163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15164 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15165 shlibpath_var=LD_LIBRARY_PATH
15166 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15167 case $host_os in
15168 openbsd2.[89] | openbsd2.[89].*)
15169 shlibpath_overrides_runpath=no
15170 ;;
15171 *)
15172 shlibpath_overrides_runpath=yes
15173 ;;
15174 esac
15175 else
15176 shlibpath_overrides_runpath=yes
15177 fi
15178 ;;
15179
15180 os2*)
15181 libname_spec='$name'
15182 shrext_cmds=".dll"
15183 need_lib_prefix=no
15184 library_names_spec='$libname${shared_ext} $libname.a'
15185 dynamic_linker='OS/2 ld.exe'
15186 shlibpath_var=LIBPATH
15187 ;;
15188
15189 osf3* | osf4* | osf5*)
15190 version_type=osf
15191 need_lib_prefix=no
15192 need_version=no
15193 soname_spec='${libname}${release}${shared_ext}$major'
15194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15195 shlibpath_var=LD_LIBRARY_PATH
15196 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15197 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15198 ;;
15199
15200 solaris*)
15201 version_type=linux
15202 need_lib_prefix=no
15203 need_version=no
15204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15205 soname_spec='${libname}${release}${shared_ext}$major'
15206 shlibpath_var=LD_LIBRARY_PATH
15207 shlibpath_overrides_runpath=yes
15208 hardcode_into_libs=yes
15209 # ldd complains unless libraries are executable
15210 postinstall_cmds='chmod +x $lib'
15211 ;;
15212
15213 sunos4*)
15214 version_type=sunos
15215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15216 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15217 shlibpath_var=LD_LIBRARY_PATH
15218 shlibpath_overrides_runpath=yes
15219 if test "$with_gnu_ld" = yes; then
15220 need_lib_prefix=no
15221 fi
15222 need_version=yes
15223 ;;
15224
15225 sysv4 | sysv4.3*)
15226 version_type=linux
15227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15228 soname_spec='${libname}${release}${shared_ext}$major'
15229 shlibpath_var=LD_LIBRARY_PATH
15230 case $host_vendor in
15231 sni)
15232 shlibpath_overrides_runpath=no
15233 need_lib_prefix=no
15234 export_dynamic_flag_spec='${wl}-Blargedynsym'
15235 runpath_var=LD_RUN_PATH
15236 ;;
15237 siemens)
15238 need_lib_prefix=no
15239 ;;
15240 motorola)
15241 need_lib_prefix=no
15242 need_version=no
15243 shlibpath_overrides_runpath=no
15244 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15245 ;;
15246 esac
15247 ;;
15248
15249 sysv4*MP*)
15250 if test -d /usr/nec ;then
15251 version_type=linux
15252 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15253 soname_spec='$libname${shared_ext}.$major'
15254 shlibpath_var=LD_LIBRARY_PATH
15255 fi
15256 ;;
15257
15258 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15259 version_type=freebsd-elf
15260 need_lib_prefix=no
15261 need_version=no
15262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15263 soname_spec='${libname}${release}${shared_ext}$major'
15264 shlibpath_var=LD_LIBRARY_PATH
15265 hardcode_into_libs=yes
15266 if test "$with_gnu_ld" = yes; then
15267 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15268 shlibpath_overrides_runpath=no
15269 else
15270 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15271 shlibpath_overrides_runpath=yes
15272 case $host_os in
15273 sco3.2v5*)
15274 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15275 ;;
15276 esac
15277 fi
15278 sys_lib_dlsearch_path_spec='/usr/lib'
15279 ;;
15280
15281 uts4*)
15282 version_type=linux
15283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15284 soname_spec='${libname}${release}${shared_ext}$major'
15285 shlibpath_var=LD_LIBRARY_PATH
15286 ;;
15287
15288 *)
15289 dynamic_linker=no
15290 ;;
15291 esac
15292 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15293 echo "${ECHO_T}$dynamic_linker" >&6
15294 test "$dynamic_linker" = no && can_build_shared=no
15295
15296 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15297 if test "$GCC" = yes; then
15298 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15299 fi
15300
15301 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15302 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15303 hardcode_action_F77=
15304 if test -n "$hardcode_libdir_flag_spec_F77" || \
15305 test -n "$runpath_var_F77" || \
15306 test "X$hardcode_automatic_F77" = "Xyes" ; then
15307
15308 # We can hardcode non-existant directories.
15309 if test "$hardcode_direct_F77" != no &&
15310 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15311 # have to relink, otherwise we might link with an installed library
15312 # when we should be linking with a yet-to-be-installed one
15313 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15314 test "$hardcode_minus_L_F77" != no; then
15315 # Linking always hardcodes the temporary library directory.
15316 hardcode_action_F77=relink
15317 else
15318 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15319 hardcode_action_F77=immediate
15320 fi
15321 else
15322 # We cannot hardcode anything, or else we can only hardcode existing
15323 # directories.
15324 hardcode_action_F77=unsupported
15325 fi
15326 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15327 echo "${ECHO_T}$hardcode_action_F77" >&6
15328
15329 if test "$hardcode_action_F77" = relink; then
15330 # Fast installation is not supported
15331 enable_fast_install=no
15332 elif test "$shlibpath_overrides_runpath" = yes ||
15333 test "$enable_shared" = no; then
15334 # Fast installation is not necessary
15335 enable_fast_install=needless
15336 fi
15337
15338
15339 # The else clause should only fire when bootstrapping the
15340 # libtool distribution, otherwise you forgot to ship ltmain.sh
15341 # with your package, and you will get complaints that there are
15342 # no rules to generate ltmain.sh.
15343 if test -f "$ltmain"; then
15344 # See if we are running on zsh, and set the options which allow our commands through
15345 # without removal of \ escapes.
15346 if test -n "${ZSH_VERSION+set}" ; then
15347 setopt NO_GLOB_SUBST
15348 fi
15349 # Now quote all the things that may contain metacharacters while being
15350 # careful not to overquote the AC_SUBSTed values. We take copies of the
15351 # variables and quote the copies for generation of the libtool script.
15352 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15353 SED SHELL STRIP \
15354 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15355 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15356 deplibs_check_method reload_flag reload_cmds need_locks \
15357 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15358 lt_cv_sys_global_symbol_to_c_name_address \
15359 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15360 old_postinstall_cmds old_postuninstall_cmds \
15361 compiler_F77 \
15362 CC_F77 \
15363 LD_F77 \
15364 lt_prog_compiler_wl_F77 \
15365 lt_prog_compiler_pic_F77 \
15366 lt_prog_compiler_static_F77 \
15367 lt_prog_compiler_no_builtin_flag_F77 \
15368 export_dynamic_flag_spec_F77 \
15369 thread_safe_flag_spec_F77 \
15370 whole_archive_flag_spec_F77 \
15371 enable_shared_with_static_runtimes_F77 \
15372 old_archive_cmds_F77 \
15373 old_archive_from_new_cmds_F77 \
15374 predep_objects_F77 \
15375 postdep_objects_F77 \
15376 predeps_F77 \
15377 postdeps_F77 \
15378 compiler_lib_search_path_F77 \
15379 archive_cmds_F77 \
15380 archive_expsym_cmds_F77 \
15381 postinstall_cmds_F77 \
15382 postuninstall_cmds_F77 \
15383 old_archive_from_expsyms_cmds_F77 \
15384 allow_undefined_flag_F77 \
15385 no_undefined_flag_F77 \
15386 export_symbols_cmds_F77 \
15387 hardcode_libdir_flag_spec_F77 \
15388 hardcode_libdir_flag_spec_ld_F77 \
15389 hardcode_libdir_separator_F77 \
15390 hardcode_automatic_F77 \
15391 module_cmds_F77 \
15392 module_expsym_cmds_F77 \
15393 lt_cv_prog_compiler_c_o_F77 \
15394 exclude_expsyms_F77 \
15395 include_expsyms_F77; do
15396
15397 case $var in
15398 old_archive_cmds_F77 | \
15399 old_archive_from_new_cmds_F77 | \
15400 archive_cmds_F77 | \
15401 archive_expsym_cmds_F77 | \
15402 module_cmds_F77 | \
15403 module_expsym_cmds_F77 | \
15404 old_archive_from_expsyms_cmds_F77 | \
15405 export_symbols_cmds_F77 | \
15406 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15407 postinstall_cmds | postuninstall_cmds | \
15408 old_postinstall_cmds | old_postuninstall_cmds | \
15409 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15410 # Double-quote double-evaled strings.
15411 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15412 ;;
15413 *)
15414 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15415 ;;
15416 esac
15417 done
15418
15419 case $lt_echo in
15420 *'\$0 --fallback-echo"')
15421 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15422 ;;
15423 esac
15424
15425 cfgfile="$ofile"
15426
15427 cat <<__EOF__ >> "$cfgfile"
15428 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15429
15430 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15431
15432 # Shell to use when invoking shell scripts.
15433 SHELL=$lt_SHELL
15434
15435 # Whether or not to build shared libraries.
15436 build_libtool_libs=$enable_shared
15437
15438 # Whether or not to build static libraries.
15439 build_old_libs=$enable_static
15440
15441 # Whether or not to add -lc for building shared libraries.
15442 build_libtool_need_lc=$archive_cmds_need_lc_F77
15443
15444 # Whether or not to disallow shared libs when runtime libs are static
15445 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15446
15447 # Whether or not to optimize for fast installation.
15448 fast_install=$enable_fast_install
15449
15450 # The host system.
15451 host_alias=$host_alias
15452 host=$host
15453 host_os=$host_os
15454
15455 # The build system.
15456 build_alias=$build_alias
15457 build=$build
15458 build_os=$build_os
15459
15460 # An echo program that does not interpret backslashes.
15461 echo=$lt_echo
15462
15463 # The archiver.
15464 AR=$lt_AR
15465 AR_FLAGS=$lt_AR_FLAGS
15466
15467 # A C compiler.
15468 LTCC=$lt_LTCC
15469
15470 # LTCC compiler flags.
15471 LTCFLAGS=$lt_LTCFLAGS
15472
15473 # A language-specific compiler.
15474 CC=$lt_compiler_F77
15475
15476 # Is the compiler the GNU C compiler?
15477 with_gcc=$GCC_F77
15478
15479 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
15480 gcc_ver=\`gcc -dumpversion\`
15481
15482 # An ERE matcher.
15483 EGREP=$lt_EGREP
15484
15485 # The linker used to build libraries.
15486 LD=$lt_LD_F77
15487
15488 # Whether we need hard or soft links.
15489 LN_S=$lt_LN_S
15490
15491 # A BSD-compatible nm program.
15492 NM=$lt_NM
15493
15494 # A symbol stripping program
15495 STRIP=$lt_STRIP
15496
15497 # Used to examine libraries when file_magic_cmd begins "file"
15498 MAGIC_CMD=$MAGIC_CMD
15499
15500 # Used on cygwin: DLL creation program.
15501 DLLTOOL="$DLLTOOL"
15502
15503 # Used on cygwin: object dumper.
15504 OBJDUMP="$OBJDUMP"
15505
15506 # Used on cygwin: assembler.
15507 AS="$AS"
15508
15509 # The name of the directory that contains temporary libtool files.
15510 objdir=$objdir
15511
15512 # How to create reloadable object files.
15513 reload_flag=$lt_reload_flag
15514 reload_cmds=$lt_reload_cmds
15515
15516 # How to pass a linker flag through the compiler.
15517 wl=$lt_lt_prog_compiler_wl_F77
15518
15519 # Object file suffix (normally "o").
15520 objext="$ac_objext"
15521
15522 # Old archive suffix (normally "a").
15523 libext="$libext"
15524
15525 # Shared library suffix (normally ".so").
15526 shrext_cmds='$shrext_cmds'
15527
15528 # Executable file suffix (normally "").
15529 exeext="$exeext"
15530
15531 # Additional compiler flags for building library objects.
15532 pic_flag=$lt_lt_prog_compiler_pic_F77
15533 pic_mode=$pic_mode
15534
15535 # What is the maximum length of a command?
15536 max_cmd_len=$lt_cv_sys_max_cmd_len
15537
15538 # Does compiler simultaneously support -c and -o options?
15539 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15540
15541 # Must we lock files when doing compilation?
15542 need_locks=$lt_need_locks
15543
15544 # Do we need the lib prefix for modules?
15545 need_lib_prefix=$need_lib_prefix
15546
15547 # Do we need a version for libraries?
15548 need_version=$need_version
15549
15550 # Whether dlopen is supported.
15551 dlopen_support=$enable_dlopen
15552
15553 # Whether dlopen of programs is supported.
15554 dlopen_self=$enable_dlopen_self
15555
15556 # Whether dlopen of statically linked programs is supported.
15557 dlopen_self_static=$enable_dlopen_self_static
15558
15559 # Compiler flag to prevent dynamic linking.
15560 link_static_flag=$lt_lt_prog_compiler_static_F77
15561
15562 # Compiler flag to turn off builtin functions.
15563 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15564
15565 # Compiler flag to allow reflexive dlopens.
15566 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15567
15568 # Compiler flag to generate shared objects directly from archives.
15569 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15570
15571 # Compiler flag to generate thread-safe objects.
15572 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15573
15574 # Library versioning type.
15575 version_type=$version_type
15576
15577 # Format of library name prefix.
15578 libname_spec=$lt_libname_spec
15579
15580 # List of archive names. First name is the real one, the rest are links.
15581 # The last name is the one that the linker finds with -lNAME.
15582 library_names_spec=$lt_library_names_spec
15583
15584 # The coded name of the library, if different from the real name.
15585 soname_spec=$lt_soname_spec
15586
15587 # Commands used to build and install an old-style archive.
15588 RANLIB=$lt_RANLIB
15589 old_archive_cmds=$lt_old_archive_cmds_F77
15590 old_postinstall_cmds=$lt_old_postinstall_cmds
15591 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15592
15593 # Create an old-style archive from a shared archive.
15594 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15595
15596 # Create a temporary old-style archive to link instead of a shared archive.
15597 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15598
15599 # Commands used to build and install a shared archive.
15600 archive_cmds=$lt_archive_cmds_F77
15601 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15602 postinstall_cmds=$lt_postinstall_cmds
15603 postuninstall_cmds=$lt_postuninstall_cmds
15604
15605 # Commands used to build a loadable module (assumed same as above if empty)
15606 module_cmds=$lt_module_cmds_F77
15607 module_expsym_cmds=$lt_module_expsym_cmds_F77
15608
15609 # Commands to strip libraries.
15610 old_striplib=$lt_old_striplib
15611 striplib=$lt_striplib
15612
15613 # Dependencies to place before the objects being linked to create a
15614 # shared library.
15615 predep_objects=\`echo $lt_predep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15616
15617 # Dependencies to place after the objects being linked to create a
15618 # shared library.
15619 postdep_objects=\`echo $lt_postdep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15620
15621 # Dependencies to place before the objects being linked to create a
15622 # shared library.
15623 predeps=$lt_predeps_F77
15624
15625 # Dependencies to place after the objects being linked to create a
15626 # shared library.
15627 postdeps=$lt_postdeps_F77
15628
15629 # The library search path used internally by the compiler when linking
15630 # a shared library.
15631 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"\`
15632
15633 # Method to check whether dependent libraries are shared objects.
15634 deplibs_check_method=$lt_deplibs_check_method
15635
15636 # Command to use when deplibs_check_method == file_magic.
15637 file_magic_cmd=$lt_file_magic_cmd
15638
15639 # Flag that allows shared libraries with undefined symbols to be built.
15640 allow_undefined_flag=$lt_allow_undefined_flag_F77
15641
15642 # Flag that forces no undefined symbols.
15643 no_undefined_flag=$lt_no_undefined_flag_F77
15644
15645 # Commands used to finish a libtool library installation in a directory.
15646 finish_cmds=$lt_finish_cmds
15647
15648 # Same as above, but a single script fragment to be evaled but not shown.
15649 finish_eval=$lt_finish_eval
15650
15651 # Take the output of nm and produce a listing of raw symbols and C names.
15652 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15653
15654 # Transform the output of nm in a proper C declaration
15655 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15656
15657 # Transform the output of nm in a C name address pair
15658 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15659
15660 # This is the shared library runtime path variable.
15661 runpath_var=$runpath_var
15662
15663 # This is the shared library path variable.
15664 shlibpath_var=$shlibpath_var
15665
15666 # Is shlibpath searched before the hard-coded library search path?
15667 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15668
15669 # How to hardcode a shared library path into an executable.
15670 hardcode_action=$hardcode_action_F77
15671
15672 # Whether we should hardcode library paths into libraries.
15673 hardcode_into_libs=$hardcode_into_libs
15674
15675 # Flag to hardcode \$libdir into a binary during linking.
15676 # This must work even if \$libdir does not exist.
15677 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15678
15679 # If ld is used when linking, flag to hardcode \$libdir into
15680 # a binary during linking. This must work even if \$libdir does
15681 # not exist.
15682 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15683
15684 # Whether we need a single -rpath flag with a separated argument.
15685 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15686
15687 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15688 # resulting binary.
15689 hardcode_direct=$hardcode_direct_F77
15690
15691 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15692 # resulting binary.
15693 hardcode_minus_L=$hardcode_minus_L_F77
15694
15695 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15696 # the resulting binary.
15697 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15698
15699 # Set to yes if building a shared library automatically hardcodes DIR into the library
15700 # and all subsequent libraries and executables linked against it.
15701 hardcode_automatic=$hardcode_automatic_F77
15702
15703 # Variables whose values should be saved in libtool wrapper scripts and
15704 # restored at relink time.
15705 variables_saved_for_relink="$variables_saved_for_relink"
15706
15707 # Whether libtool must link a program against all its dependency libraries.
15708 link_all_deplibs=$link_all_deplibs_F77
15709
15710 # Compile-time system search path for libraries
15711 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"\`
15712
15713 # Run-time system search path for libraries
15714 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15715
15716 # Fix the shell variable \$srcfile for the compiler.
15717 fix_srcfile_path="$fix_srcfile_path_F77"
15718
15719 # Set to yes if exported symbols are required.
15720 always_export_symbols=$always_export_symbols_F77
15721
15722 # The commands to list exported symbols.
15723 export_symbols_cmds=$lt_export_symbols_cmds_F77
15724
15725 # The commands to extract the exported symbol list from a shared archive.
15726 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15727
15728 # Symbols that should not be listed in the preloaded symbols.
15729 exclude_expsyms=$lt_exclude_expsyms_F77
15730
15731 # Symbols that must always be exported.
15732 include_expsyms=$lt_include_expsyms_F77
15733
15734 # ### END LIBTOOL TAG CONFIG: $tagname
15735
15736 __EOF__
15737
15738
15739 else
15740 # If there is no Makefile yet, we rely on a make rule to execute
15741 # `config.status --recheck' to rerun these tests and create the
15742 # libtool script then.
15743 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15744 if test -f "$ltmain_in"; then
15745 test -f Makefile && make "$ltmain"
15746 fi
15747 fi
15748
15749
15750 ac_ext=c
15751 ac_cpp='$CPP $CPPFLAGS'
15752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15755
15756 CC="$lt_save_CC"
15757
15758 else
15759 tagname=""
15760 fi
15761 ;;
15762
15763 GCJ)
15764 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15765
15766
15767
15768 # Source file extension for Java test sources.
15769 ac_ext=java
15770
15771 # Object file extension for compiled Java test sources.
15772 objext=o
15773 objext_GCJ=$objext
15774
15775 # Code to be used in simple compile tests
15776 lt_simple_compile_test_code="class foo {}\n"
15777
15778 # Code to be used in simple link tests
15779 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15780
15781 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15782
15783 # If no C compiler was specified, use CC.
15784 LTCC=${LTCC-"$CC"}
15785
15786 # If no C compiler flags were specified, use CFLAGS.
15787 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15788
15789 # Allow CC to be a program name with arguments.
15790 compiler=$CC
15791
15792
15793 # save warnings/boilerplate of simple test code
15794 ac_outfile=conftest.$ac_objext
15795 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15796 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15797 _lt_compiler_boilerplate=`cat conftest.err`
15798 $rm conftest*
15799
15800 ac_outfile=conftest.$ac_objext
15801 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15802 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15803 _lt_linker_boilerplate=`cat conftest.err`
15804 $rm conftest*
15805
15806
15807 # Allow CC to be a program name with arguments.
15808 lt_save_CC="$CC"
15809 CC=${GCJ-"gcj"}
15810 compiler=$CC
15811 compiler_GCJ=$CC
15812 for cc_temp in $compiler""; do
15813 case $cc_temp in
15814 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15815 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15816 \-*) ;;
15817 *) break;;
15818 esac
15819 done
15820 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15821
15822
15823 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15824 archive_cmds_need_lc_GCJ=no
15825
15826 old_archive_cmds_GCJ=$old_archive_cmds
15827
15828
15829 lt_prog_compiler_no_builtin_flag_GCJ=
15830
15831 if test "$GCC" = yes; then
15832 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15833
15834
15835 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15836 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15837 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15838 echo $ECHO_N "(cached) $ECHO_C" >&6
15839 else
15840 lt_cv_prog_compiler_rtti_exceptions=no
15841 ac_outfile=conftest.$ac_objext
15842 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15843 lt_compiler_flag="-fno-rtti -fno-exceptions"
15844 # Insert the option either (1) after the last *FLAGS variable, or
15845 # (2) before a word containing "conftest.", or (3) at the end.
15846 # Note that $ac_compile itself does not contain backslashes and begins
15847 # with a dollar sign (not a hyphen), so the echo should work correctly.
15848 # The option is referenced via a variable to avoid confusing sed.
15849 lt_compile=`echo "$ac_compile" | $SED \
15850 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15851 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15852 -e 's:$: $lt_compiler_flag:'`
15853 (eval echo "\"\$as_me:15853: $lt_compile\"" >&5)
15854 (eval "$lt_compile" 2>conftest.err)
15855 ac_status=$?
15856 cat conftest.err >&5
15857 echo "$as_me:15857: \$? = $ac_status" >&5
15858 if (exit $ac_status) && test -s "$ac_outfile"; then
15859 # The compiler can only warn and ignore the option if not recognized
15860 # So say no if there are warnings other than the usual output.
15861 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15862 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15863 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15864 lt_cv_prog_compiler_rtti_exceptions=yes
15865 fi
15866 fi
15867 $rm conftest*
15868
15869 fi
15870 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15871 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15872
15873 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15874 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15875 else
15876 :
15877 fi
15878
15879 fi
15880
15881 lt_prog_compiler_wl_GCJ=
15882 lt_prog_compiler_pic_GCJ=
15883 lt_prog_compiler_static_GCJ=
15884
15885 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15886 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15887
15888 if test "$GCC" = yes; then
15889 lt_prog_compiler_wl_GCJ='-Wl,'
15890 lt_prog_compiler_static_GCJ='-static'
15891
15892 case $host_os in
15893 aix*)
15894 # All AIX code is PIC.
15895 if test "$host_cpu" = ia64; then
15896 # AIX 5 now supports IA64 processor
15897 lt_prog_compiler_static_GCJ='-Bstatic'
15898 fi
15899 ;;
15900
15901 amigaos*)
15902 # FIXME: we need at least 68020 code to build shared libraries, but
15903 # adding the `-m68020' flag to GCC prevents building anything better,
15904 # like `-m68040'.
15905 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15906 ;;
15907
15908 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15909 # PIC is the default for these OSes.
15910 ;;
15911
15912 mingw* | pw32* | os2*)
15913 # This hack is so that the source file can tell whether it is being
15914 # built for inclusion in a dll (and should export symbols for example).
15915 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15916 ;;
15917
15918 darwin* | rhapsody*)
15919 # PIC is the default on this platform
15920 # Common symbols not allowed in MH_DYLIB files
15921 lt_prog_compiler_pic_GCJ='-fno-common'
15922 ;;
15923
15924 interix3*)
15925 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15926 # Instead, we relocate shared libraries at runtime.
15927 ;;
15928
15929 msdosdjgpp*)
15930 # Just because we use GCC doesn't mean we suddenly get shared libraries
15931 # on systems that don't support them.
15932 lt_prog_compiler_can_build_shared_GCJ=no
15933 enable_shared=no
15934 ;;
15935
15936 sysv4*MP*)
15937 if test -d /usr/nec; then
15938 lt_prog_compiler_pic_GCJ=-Kconform_pic
15939 fi
15940 ;;
15941
15942 hpux*)
15943 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15944 # not for PA HP-UX.
15945 case $host_cpu in
15946 hppa*64*|ia64*)
15947 # +Z the default
15948 ;;
15949 *)
15950 lt_prog_compiler_pic_GCJ='-fPIC'
15951 ;;
15952 esac
15953 ;;
15954
15955 *)
15956 lt_prog_compiler_pic_GCJ='-fPIC'
15957 ;;
15958 esac
15959 else
15960 # PORTME Check for flag to pass linker flags through the system compiler.
15961 case $host_os in
15962 aix*)
15963 lt_prog_compiler_wl_GCJ='-Wl,'
15964 if test "$host_cpu" = ia64; then
15965 # AIX 5 now supports IA64 processor
15966 lt_prog_compiler_static_GCJ='-Bstatic'
15967 else
15968 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15969 fi
15970 ;;
15971 darwin*)
15972 # PIC is the default on this platform
15973 # Common symbols not allowed in MH_DYLIB files
15974 case $cc_basename in
15975 xlc*)
15976 lt_prog_compiler_pic_GCJ='-qnocommon'
15977 lt_prog_compiler_wl_GCJ='-Wl,'
15978 ;;
15979 esac
15980 ;;
15981
15982 mingw* | pw32* | os2*)
15983 # This hack is so that the source file can tell whether it is being
15984 # built for inclusion in a dll (and should export symbols for example).
15985 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15986 ;;
15987
15988 hpux9* | hpux10* | hpux11*)
15989 lt_prog_compiler_wl_GCJ='-Wl,'
15990 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15991 # not for PA HP-UX.
15992 case $host_cpu in
15993 hppa*64*|ia64*)
15994 # +Z the default
15995 ;;
15996 *)
15997 lt_prog_compiler_pic_GCJ='+Z'
15998 ;;
15999 esac
16000 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16001 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16002 ;;
16003
16004 irix5* | irix6* | nonstopux*)
16005 lt_prog_compiler_wl_GCJ='-Wl,'
16006 # PIC (with -KPIC) is the default.
16007 lt_prog_compiler_static_GCJ='-non_shared'
16008 ;;
16009
16010 newsos6)
16011 lt_prog_compiler_pic_GCJ='-KPIC'
16012 lt_prog_compiler_static_GCJ='-Bstatic'
16013 ;;
16014
16015 linux*)
16016 case $cc_basename in
16017 icc* | ecc*)
16018 lt_prog_compiler_wl_GCJ='-Wl,'
16019 lt_prog_compiler_pic_GCJ='-KPIC'
16020 lt_prog_compiler_static_GCJ='-static'
16021 ;;
16022 pgcc* | pgf77* | pgf90* | pgf95*)
16023 # Portland Group compilers (*not* the Pentium gcc compiler,
16024 # which looks to be a dead project)
16025 lt_prog_compiler_wl_GCJ='-Wl,'
16026 lt_prog_compiler_pic_GCJ='-fpic'
16027 lt_prog_compiler_static_GCJ='-Bstatic'
16028 ;;
16029 ccc*)
16030 lt_prog_compiler_wl_GCJ='-Wl,'
16031 # All Alpha code is PIC.
16032 lt_prog_compiler_static_GCJ='-non_shared'
16033 ;;
16034 esac
16035 ;;
16036
16037 osf3* | osf4* | osf5*)
16038 lt_prog_compiler_wl_GCJ='-Wl,'
16039 # All OSF/1 code is PIC.
16040 lt_prog_compiler_static_GCJ='-non_shared'
16041 ;;
16042
16043 solaris*)
16044 lt_prog_compiler_pic_GCJ='-KPIC'
16045 lt_prog_compiler_static_GCJ='-Bstatic'
16046 case $cc_basename in
16047 f77* | f90* | f95*)
16048 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16049 *)
16050 lt_prog_compiler_wl_GCJ='-Wl,';;
16051 esac
16052 ;;
16053
16054 sunos4*)
16055 lt_prog_compiler_wl_GCJ='-Qoption ld '
16056 lt_prog_compiler_pic_GCJ='-PIC'
16057 lt_prog_compiler_static_GCJ='-Bstatic'
16058 ;;
16059
16060 sysv4 | sysv4.2uw2* | sysv4.3*)
16061 lt_prog_compiler_wl_GCJ='-Wl,'
16062 lt_prog_compiler_pic_GCJ='-KPIC'
16063 lt_prog_compiler_static_GCJ='-Bstatic'
16064 ;;
16065
16066 sysv4*MP*)
16067 if test -d /usr/nec ;then
16068 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16069 lt_prog_compiler_static_GCJ='-Bstatic'
16070 fi
16071 ;;
16072
16073 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16074 lt_prog_compiler_wl_GCJ='-Wl,'
16075 lt_prog_compiler_pic_GCJ='-KPIC'
16076 lt_prog_compiler_static_GCJ='-Bstatic'
16077 ;;
16078
16079 unicos*)
16080 lt_prog_compiler_wl_GCJ='-Wl,'
16081 lt_prog_compiler_can_build_shared_GCJ=no
16082 ;;
16083
16084 uts4*)
16085 lt_prog_compiler_pic_GCJ='-pic'
16086 lt_prog_compiler_static_GCJ='-Bstatic'
16087 ;;
16088
16089 *)
16090 lt_prog_compiler_can_build_shared_GCJ=no
16091 ;;
16092 esac
16093 fi
16094
16095 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16096 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16097
16098 #
16099 # Check to make sure the PIC flag actually works.
16100 #
16101 if test -n "$lt_prog_compiler_pic_GCJ"; then
16102
16103 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16104 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16105 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16106 echo $ECHO_N "(cached) $ECHO_C" >&6
16107 else
16108 lt_prog_compiler_pic_works_GCJ=no
16109 ac_outfile=conftest.$ac_objext
16110 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16111 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16112 # Insert the option either (1) after the last *FLAGS variable, or
16113 # (2) before a word containing "conftest.", or (3) at the end.
16114 # Note that $ac_compile itself does not contain backslashes and begins
16115 # with a dollar sign (not a hyphen), so the echo should work correctly.
16116 # The option is referenced via a variable to avoid confusing sed.
16117 lt_compile=`echo "$ac_compile" | $SED \
16118 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16119 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16120 -e 's:$: $lt_compiler_flag:'`
16121 (eval echo "\"\$as_me:16121: $lt_compile\"" >&5)
16122 (eval "$lt_compile" 2>conftest.err)
16123 ac_status=$?
16124 cat conftest.err >&5
16125 echo "$as_me:16125: \$? = $ac_status" >&5
16126 if (exit $ac_status) && test -s "$ac_outfile"; then
16127 # The compiler can only warn and ignore the option if not recognized
16128 # So say no if there are warnings other than the usual output.
16129 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16130 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16131 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16132 lt_prog_compiler_pic_works_GCJ=yes
16133 fi
16134 fi
16135 $rm conftest*
16136
16137 fi
16138 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16139 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16140
16141 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16142 case $lt_prog_compiler_pic_GCJ in
16143 "" | " "*) ;;
16144 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16145 esac
16146 else
16147 lt_prog_compiler_pic_GCJ=
16148 lt_prog_compiler_can_build_shared_GCJ=no
16149 fi
16150
16151 fi
16152 case $host_os in
16153 # For platforms which do not support PIC, -DPIC is meaningless:
16154 *djgpp*)
16155 lt_prog_compiler_pic_GCJ=
16156 ;;
16157 *)
16158 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16159 ;;
16160 esac
16161
16162 #
16163 # Check to make sure the static flag actually works.
16164 #
16165 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16166 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16167 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16168 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16169 echo $ECHO_N "(cached) $ECHO_C" >&6
16170 else
16171 lt_prog_compiler_static_works_GCJ=no
16172 save_LDFLAGS="$LDFLAGS"
16173 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16174 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16175 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16176 # The linker can only warn and ignore the option if not recognized
16177 # So say no if there are warnings
16178 if test -s conftest.err; then
16179 # Append any errors to the config.log.
16180 cat conftest.err 1>&5
16181 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16182 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16183 if diff conftest.exp conftest.er2 >/dev/null; then
16184 lt_prog_compiler_static_works_GCJ=yes
16185 fi
16186 else
16187 lt_prog_compiler_static_works_GCJ=yes
16188 fi
16189 fi
16190 $rm conftest*
16191 LDFLAGS="$save_LDFLAGS"
16192
16193 fi
16194 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16195 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
16196
16197 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16198 :
16199 else
16200 lt_prog_compiler_static_GCJ=
16201 fi
16202
16203
16204 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16205 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16206 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16207 echo $ECHO_N "(cached) $ECHO_C" >&6
16208 else
16209 lt_cv_prog_compiler_c_o_GCJ=no
16210 $rm -r conftest 2>/dev/null
16211 mkdir conftest
16212 cd conftest
16213 mkdir out
16214 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16215
16216 lt_compiler_flag="-o out/conftest2.$ac_objext"
16217 # Insert the option either (1) after the last *FLAGS variable, or
16218 # (2) before a word containing "conftest.", or (3) at the end.
16219 # Note that $ac_compile itself does not contain backslashes and begins
16220 # with a dollar sign (not a hyphen), so the echo should work correctly.
16221 lt_compile=`echo "$ac_compile" | $SED \
16222 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16223 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16224 -e 's:$: $lt_compiler_flag:'`
16225 (eval echo "\"\$as_me:16225: $lt_compile\"" >&5)
16226 (eval "$lt_compile" 2>out/conftest.err)
16227 ac_status=$?
16228 cat out/conftest.err >&5
16229 echo "$as_me:16229: \$? = $ac_status" >&5
16230 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16231 then
16232 # The compiler can only warn and ignore the option if not recognized
16233 # So say no if there are warnings
16234 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16235 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16236 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16237 lt_cv_prog_compiler_c_o_GCJ=yes
16238 fi
16239 fi
16240 chmod u+w . 2>&5
16241 $rm conftest*
16242 # SGI C++ compiler will create directory out/ii_files/ for
16243 # template instantiation
16244 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16245 $rm out/* && rmdir out
16246 cd ..
16247 rmdir conftest
16248 $rm conftest*
16249
16250 fi
16251 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16252 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16253
16254
16255 hard_links="nottested"
16256 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16257 # do not overwrite the value of need_locks provided by the user
16258 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16259 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16260 hard_links=yes
16261 $rm conftest*
16262 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16263 touch conftest.a
16264 ln conftest.a conftest.b 2>&5 || hard_links=no
16265 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16266 echo "$as_me:$LINENO: result: $hard_links" >&5
16267 echo "${ECHO_T}$hard_links" >&6
16268 if test "$hard_links" = no; then
16269 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16270 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16271 need_locks=warn
16272 fi
16273 else
16274 need_locks=no
16275 fi
16276
16277 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16278 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16279
16280 runpath_var=
16281 allow_undefined_flag_GCJ=
16282 enable_shared_with_static_runtimes_GCJ=no
16283 archive_cmds_GCJ=
16284 archive_expsym_cmds_GCJ=
16285 old_archive_From_new_cmds_GCJ=
16286 old_archive_from_expsyms_cmds_GCJ=
16287 export_dynamic_flag_spec_GCJ=
16288 whole_archive_flag_spec_GCJ=
16289 thread_safe_flag_spec_GCJ=
16290 hardcode_libdir_flag_spec_GCJ=
16291 hardcode_libdir_flag_spec_ld_GCJ=
16292 hardcode_libdir_separator_GCJ=
16293 hardcode_direct_GCJ=no
16294 hardcode_minus_L_GCJ=no
16295 hardcode_shlibpath_var_GCJ=unsupported
16296 link_all_deplibs_GCJ=unknown
16297 hardcode_automatic_GCJ=no
16298 module_cmds_GCJ=
16299 module_expsym_cmds_GCJ=
16300 always_export_symbols_GCJ=no
16301 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16302 # include_expsyms should be a list of space-separated symbols to be *always*
16303 # included in the symbol list
16304 include_expsyms_GCJ=
16305 # exclude_expsyms can be an extended regexp of symbols to exclude
16306 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16307 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16308 # as well as any symbol that contains `d'.
16309 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16310 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16311 # platforms (ab)use it in PIC code, but their linkers get confused if
16312 # the symbol is explicitly referenced. Since portable code cannot
16313 # rely on this symbol name, it's probably fine to never include it in
16314 # preloaded symbol tables.
16315 extract_expsyms_cmds=
16316 # Just being paranoid about ensuring that cc_basename is set.
16317 for cc_temp in $compiler""; do
16318 case $cc_temp in
16319 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16320 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16321 \-*) ;;
16322 *) break;;
16323 esac
16324 done
16325 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16326
16327 case $host_os in
16328 cygwin* | mingw* | pw32*)
16329 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16330 # When not using gcc, we currently assume that we are using
16331 # Microsoft Visual C++.
16332 if test "$GCC" != yes; then
16333 with_gnu_ld=no
16334 fi
16335 ;;
16336 interix*)
16337 # we just hope/assume this is gcc and not c89 (= MSVC++)
16338 with_gnu_ld=yes
16339 ;;
16340 openbsd*)
16341 with_gnu_ld=no
16342 ;;
16343 esac
16344
16345 ld_shlibs_GCJ=yes
16346 if test "$with_gnu_ld" = yes; then
16347 # If archive_cmds runs LD, not CC, wlarc should be empty
16348 wlarc='${wl}'
16349
16350 # Set some defaults for GNU ld with shared library support. These
16351 # are reset later if shared libraries are not supported. Putting them
16352 # here allows them to be overridden if necessary.
16353 runpath_var=LD_RUN_PATH
16354 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16355 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16356 # ancient GNU ld didn't support --whole-archive et. al.
16357 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16358 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16359 else
16360 whole_archive_flag_spec_GCJ=
16361 fi
16362 supports_anon_versioning=no
16363 case `$LD -v 2>/dev/null` in
16364 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16365 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16366 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16367 *\ 2.11.*) ;; # other 2.11 versions
16368 *) supports_anon_versioning=yes ;;
16369 esac
16370
16371 # See if GNU ld supports shared libraries.
16372 case $host_os in
16373 aix3* | aix4* | aix5*)
16374 # On AIX/PPC, the GNU linker is very broken
16375 if test "$host_cpu" != ia64; then
16376 ld_shlibs_GCJ=no
16377 cat <<EOF 1>&2
16378
16379 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16380 *** to be unable to reliably create shared libraries on AIX.
16381 *** Therefore, libtool is disabling shared libraries support. If you
16382 *** really care for shared libraries, you may want to modify your PATH
16383 *** so that a non-GNU linker is found, and then restart.
16384
16385 EOF
16386 fi
16387 ;;
16388
16389 amigaos*)
16390 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)'
16391 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16392 hardcode_minus_L_GCJ=yes
16393
16394 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16395 # that the semantics of dynamic libraries on AmigaOS, at least up
16396 # to version 4, is to share data among multiple programs linked
16397 # with the same dynamic library. Since this doesn't match the
16398 # behavior of shared libraries on other platforms, we can't use
16399 # them.
16400 ld_shlibs_GCJ=no
16401 ;;
16402
16403 beos*)
16404 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16405 allow_undefined_flag_GCJ=unsupported
16406 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16407 # support --undefined. This deserves some investigation. FIXME
16408 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16409 else
16410 ld_shlibs_GCJ=no
16411 fi
16412 ;;
16413
16414 cygwin* | mingw* | pw32*)
16415 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16416 # as there is no search path for DLLs.
16417 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16418 allow_undefined_flag_GCJ=unsupported
16419 always_export_symbols_GCJ=no
16420 enable_shared_with_static_runtimes_GCJ=yes
16421 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16422
16423 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16424 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16425 # If the export-symbols file already is a .def file (1st line
16426 # is EXPORTS), use it as is; otherwise, prepend...
16427 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16428 cp $export_symbols $output_objdir/$soname.def;
16429 else
16430 echo EXPORTS > $output_objdir/$soname.def;
16431 cat $export_symbols >> $output_objdir/$soname.def;
16432 fi~
16433 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16434 else
16435 ld_shlibs_GCJ=no
16436 fi
16437 ;;
16438
16439 interix3*)
16440 hardcode_direct_GCJ=no
16441 hardcode_shlibpath_var_GCJ=no
16442 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16443 export_dynamic_flag_spec_GCJ='${wl}-E'
16444 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16445 # Instead, shared libraries are loaded at an image base (0x10000000 by
16446 # default) and relocated if they conflict, which is a slow very memory
16447 # consuming and fragmenting process. To avoid this, we pick a random,
16448 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16449 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16450 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'
16451 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'
16452 ;;
16453
16454 linux*)
16455 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16456 tmp_addflag=
16457 case $cc_basename,$host_cpu in
16458 pgcc*) # Portland Group C compiler
16459 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'
16460 tmp_addflag=' $pic_flag'
16461 ;;
16462 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16463 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'
16464 tmp_addflag=' $pic_flag -Mnomain' ;;
16465 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16466 tmp_addflag=' -i_dynamic' ;;
16467 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16468 tmp_addflag=' -i_dynamic -nofor_main' ;;
16469 ifc* | ifort*) # Intel Fortran compiler
16470 tmp_addflag=' -nofor_main' ;;
16471 esac
16472 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16473
16474 if test $supports_anon_versioning = yes; then
16475 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16476 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16477 $echo "local: *; };" >> $output_objdir/$libname.ver~
16478 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16479 fi
16480 else
16481 ld_shlibs_GCJ=no
16482 fi
16483 ;;
16484
16485 netbsd*)
16486 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16487 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16488 wlarc=
16489 else
16490 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16491 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16492 fi
16493 ;;
16494
16495 solaris*)
16496 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16497 ld_shlibs_GCJ=no
16498 cat <<EOF 1>&2
16499
16500 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16501 *** create shared libraries on Solaris systems. Therefore, libtool
16502 *** is disabling shared libraries support. We urge you to upgrade GNU
16503 *** binutils to release 2.9.1 or newer. Another option is to modify
16504 *** your PATH or compiler configuration so that the native linker is
16505 *** used, and then restart.
16506
16507 EOF
16508 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16509 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16510 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16511 else
16512 ld_shlibs_GCJ=no
16513 fi
16514 ;;
16515
16516 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16517 case `$LD -v 2>&1` in
16518 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16519 ld_shlibs_GCJ=no
16520 cat <<_LT_EOF 1>&2
16521
16522 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16523 *** reliably create shared libraries on SCO systems. Therefore, libtool
16524 *** is disabling shared libraries support. We urge you to upgrade GNU
16525 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16526 *** your PATH or compiler configuration so that the native linker is
16527 *** used, and then restart.
16528
16529 _LT_EOF
16530 ;;
16531 *)
16532 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16533 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16534 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16535 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16536 else
16537 ld_shlibs_GCJ=no
16538 fi
16539 ;;
16540 esac
16541 ;;
16542
16543 sunos4*)
16544 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16545 wlarc=
16546 hardcode_direct_GCJ=yes
16547 hardcode_shlibpath_var_GCJ=no
16548 ;;
16549
16550 *)
16551 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16552 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16553 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16554 else
16555 ld_shlibs_GCJ=no
16556 fi
16557 ;;
16558 esac
16559
16560 if test "$ld_shlibs_GCJ" = no; then
16561 runpath_var=
16562 hardcode_libdir_flag_spec_GCJ=
16563 export_dynamic_flag_spec_GCJ=
16564 whole_archive_flag_spec_GCJ=
16565 fi
16566 else
16567 # PORTME fill in a description of your system's linker (not GNU ld)
16568 case $host_os in
16569 aix3*)
16570 allow_undefined_flag_GCJ=unsupported
16571 always_export_symbols_GCJ=yes
16572 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'
16573 # Note: this linker hardcodes the directories in LIBPATH if there
16574 # are no directories specified by -L.
16575 hardcode_minus_L_GCJ=yes
16576 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16577 # Neither direct hardcoding nor static linking is supported with a
16578 # broken collect2.
16579 hardcode_direct_GCJ=unsupported
16580 fi
16581 ;;
16582
16583 aix4* | aix5*)
16584 if test "$host_cpu" = ia64; then
16585 # On IA64, the linker does run time linking by default, so we don't
16586 # have to do anything special.
16587 aix_use_runtimelinking=no
16588 exp_sym_flag='-Bexport'
16589 no_entry_flag=""
16590 else
16591 # If we're using GNU nm, then we don't want the "-C" option.
16592 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16593 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16594 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'
16595 else
16596 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'
16597 fi
16598 aix_use_runtimelinking=no
16599
16600 # Test if we are trying to use run time linking or normal
16601 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16602 # need to do runtime linking.
16603 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16604 for ld_flag in $LDFLAGS; do
16605 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16606 aix_use_runtimelinking=yes
16607 break
16608 fi
16609 done
16610 ;;
16611 esac
16612
16613 exp_sym_flag='-bexport'
16614 no_entry_flag='-bnoentry'
16615 fi
16616
16617 # When large executables or shared objects are built, AIX ld can
16618 # have problems creating the table of contents. If linking a library
16619 # or program results in "error TOC overflow" add -mminimal-toc to
16620 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16621 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16622
16623 archive_cmds_GCJ=''
16624 hardcode_direct_GCJ=yes
16625 hardcode_libdir_separator_GCJ=':'
16626 link_all_deplibs_GCJ=yes
16627
16628 if test "$GCC" = yes; then
16629 case $host_os in aix4.[012]|aix4.[012].*)
16630 # We only want to do this on AIX 4.2 and lower, the check
16631 # below for broken collect2 doesn't work under 4.3+
16632 collect2name=`${CC} -print-prog-name=collect2`
16633 if test -f "$collect2name" && \
16634 strings "$collect2name" | grep resolve_lib_name >/dev/null
16635 then
16636 # We have reworked collect2
16637 hardcode_direct_GCJ=yes
16638 else
16639 # We have old collect2
16640 hardcode_direct_GCJ=unsupported
16641 # It fails to find uninstalled libraries when the uninstalled
16642 # path is not listed in the libpath. Setting hardcode_minus_L
16643 # to unsupported forces relinking
16644 hardcode_minus_L_GCJ=yes
16645 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16646 hardcode_libdir_separator_GCJ=
16647 fi
16648 ;;
16649 esac
16650 shared_flag='-shared'
16651 if test "$aix_use_runtimelinking" = yes; then
16652 shared_flag="$shared_flag "'${wl}-G'
16653 fi
16654 else
16655 # not using gcc
16656 if test "$host_cpu" = ia64; then
16657 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16658 # chokes on -Wl,-G. The following line is correct:
16659 shared_flag='-G'
16660 else
16661 if test "$aix_use_runtimelinking" = yes; then
16662 shared_flag='${wl}-G'
16663 else
16664 shared_flag='${wl}-bM:SRE'
16665 fi
16666 fi
16667 fi
16668
16669 # It seems that -bexpall does not export symbols beginning with
16670 # underscore (_), so it is better to generate a list of symbols to export.
16671 always_export_symbols_GCJ=yes
16672 if test "$aix_use_runtimelinking" = yes; then
16673 # Warning - without using the other runtime loading flags (-brtl),
16674 # -berok will link without error, but may produce a broken library.
16675 allow_undefined_flag_GCJ='-berok'
16676 # Determine the default libpath from the value encoded in an empty executable.
16677 cat >conftest.$ac_ext <<_ACEOF
16678 /* confdefs.h. */
16679 _ACEOF
16680 cat confdefs.h >>conftest.$ac_ext
16681 cat >>conftest.$ac_ext <<_ACEOF
16682 /* end confdefs.h. */
16683
16684 int
16685 main ()
16686 {
16687
16688 ;
16689 return 0;
16690 }
16691 _ACEOF
16692 rm -f conftest.$ac_objext conftest$ac_exeext
16693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16694 (eval $ac_link) 2>conftest.er1
16695 ac_status=$?
16696 grep -v '^ *+' conftest.er1 >conftest.err
16697 rm -f conftest.er1
16698 cat conftest.err >&5
16699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16700 (exit $ac_status); } &&
16701 { ac_try='test -z "$ac_c_werror_flag"
16702 || test ! -s conftest.err'
16703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16704 (eval $ac_try) 2>&5
16705 ac_status=$?
16706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16707 (exit $ac_status); }; } &&
16708 { ac_try='test -s conftest$ac_exeext'
16709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16710 (eval $ac_try) 2>&5
16711 ac_status=$?
16712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16713 (exit $ac_status); }; }; then
16714
16715 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16716 }'`
16717 # Check for a 64-bit object if we didn't find anything.
16718 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; }
16719 }'`; fi
16720 else
16721 echo "$as_me: failed program was:" >&5
16722 sed 's/^/| /' conftest.$ac_ext >&5
16723
16724 fi
16725 rm -f conftest.err conftest.$ac_objext \
16726 conftest$ac_exeext conftest.$ac_ext
16727 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16728
16729 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16730 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"
16731 else
16732 if test "$host_cpu" = ia64; then
16733 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16734 allow_undefined_flag_GCJ="-z nodefs"
16735 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"
16736 else
16737 # Determine the default libpath from the value encoded in an empty executable.
16738 cat >conftest.$ac_ext <<_ACEOF
16739 /* confdefs.h. */
16740 _ACEOF
16741 cat confdefs.h >>conftest.$ac_ext
16742 cat >>conftest.$ac_ext <<_ACEOF
16743 /* end confdefs.h. */
16744
16745 int
16746 main ()
16747 {
16748
16749 ;
16750 return 0;
16751 }
16752 _ACEOF
16753 rm -f conftest.$ac_objext conftest$ac_exeext
16754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16755 (eval $ac_link) 2>conftest.er1
16756 ac_status=$?
16757 grep -v '^ *+' conftest.er1 >conftest.err
16758 rm -f conftest.er1
16759 cat conftest.err >&5
16760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16761 (exit $ac_status); } &&
16762 { ac_try='test -z "$ac_c_werror_flag"
16763 || test ! -s conftest.err'
16764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16765 (eval $ac_try) 2>&5
16766 ac_status=$?
16767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16768 (exit $ac_status); }; } &&
16769 { ac_try='test -s conftest$ac_exeext'
16770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16771 (eval $ac_try) 2>&5
16772 ac_status=$?
16773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16774 (exit $ac_status); }; }; then
16775
16776 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16777 }'`
16778 # Check for a 64-bit object if we didn't find anything.
16779 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; }
16780 }'`; fi
16781 else
16782 echo "$as_me: failed program was:" >&5
16783 sed 's/^/| /' conftest.$ac_ext >&5
16784
16785 fi
16786 rm -f conftest.err conftest.$ac_objext \
16787 conftest$ac_exeext conftest.$ac_ext
16788 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16789
16790 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16791 # Warning - without using the other run time loading flags,
16792 # -berok will link without error, but may produce a broken library.
16793 no_undefined_flag_GCJ=' ${wl}-bernotok'
16794 allow_undefined_flag_GCJ=' ${wl}-berok'
16795 # Exported symbols can be pulled into shared objects from archives
16796 whole_archive_flag_spec_GCJ='$convenience'
16797 archive_cmds_need_lc_GCJ=yes
16798 # This is similar to how AIX traditionally builds its shared libraries.
16799 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'
16800 fi
16801 fi
16802 ;;
16803
16804 amigaos*)
16805 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)'
16806 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16807 hardcode_minus_L_GCJ=yes
16808 # see comment about different semantics on the GNU ld section
16809 ld_shlibs_GCJ=no
16810 ;;
16811
16812 bsdi[45]*)
16813 export_dynamic_flag_spec_GCJ=-rdynamic
16814 ;;
16815
16816 cygwin* | mingw* | pw32*)
16817 # When not using gcc, we currently assume that we are using
16818 # Microsoft Visual C++.
16819 # hardcode_libdir_flag_spec is actually meaningless, as there is
16820 # no search path for DLLs.
16821 hardcode_libdir_flag_spec_GCJ=' '
16822 allow_undefined_flag_GCJ=unsupported
16823 # Tell ltmain to make .lib files, not .a files.
16824 libext=lib
16825 # Tell ltmain to make .dll files, not .so files.
16826 shrext_cmds=".dll"
16827 # FIXME: Setting linknames here is a bad hack.
16828 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16829 # The linker will automatically build a .lib file if we build a DLL.
16830 old_archive_From_new_cmds_GCJ='true'
16831 # FIXME: Should let the user specify the lib program.
16832 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16833 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16834 enable_shared_with_static_runtimes_GCJ=yes
16835 ;;
16836
16837 darwin* | rhapsody*)
16838 case $host_os in
16839 rhapsody* | darwin1.[012])
16840 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16841 ;;
16842 *) # Darwin 1.3 on
16843 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16844 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16845 else
16846 case ${MACOSX_DEPLOYMENT_TARGET} in
16847 10.[012])
16848 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16849 ;;
16850 10.*)
16851 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16852 ;;
16853 esac
16854 fi
16855 ;;
16856 esac
16857 archive_cmds_need_lc_GCJ=no
16858 hardcode_direct_GCJ=no
16859 hardcode_automatic_GCJ=yes
16860 hardcode_shlibpath_var_GCJ=unsupported
16861 whole_archive_flag_spec_GCJ=''
16862 link_all_deplibs_GCJ=yes
16863 if test "$GCC" = yes ; then
16864 output_verbose_link_cmd='echo'
16865 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16866 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16867 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16868 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}'
16869 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}'
16870 else
16871 case $cc_basename in
16872 xlc*)
16873 output_verbose_link_cmd='echo'
16874 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16875 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16876 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16877 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}'
16878 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}'
16879 ;;
16880 *)
16881 ld_shlibs_GCJ=no
16882 ;;
16883 esac
16884 fi
16885 ;;
16886
16887 dgux*)
16888 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16889 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16890 hardcode_shlibpath_var_GCJ=no
16891 ;;
16892
16893 freebsd1*)
16894 ld_shlibs_GCJ=no
16895 ;;
16896
16897 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16898 # support. Future versions do this automatically, but an explicit c++rt0.o
16899 # does not break anything, and helps significantly (at the cost of a little
16900 # extra space).
16901 freebsd2.2*)
16902 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16903 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16904 hardcode_direct_GCJ=yes
16905 hardcode_shlibpath_var_GCJ=no
16906 ;;
16907
16908 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16909 freebsd2*)
16910 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16911 hardcode_direct_GCJ=yes
16912 hardcode_minus_L_GCJ=yes
16913 hardcode_shlibpath_var_GCJ=no
16914 ;;
16915
16916 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16917 freebsd* | kfreebsd*-gnu | dragonfly*)
16918 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16919 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16920 hardcode_direct_GCJ=yes
16921 hardcode_shlibpath_var_GCJ=no
16922 ;;
16923
16924 hpux9*)
16925 if test "$GCC" = yes; then
16926 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'
16927 else
16928 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'
16929 fi
16930 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16931 hardcode_libdir_separator_GCJ=:
16932 hardcode_direct_GCJ=yes
16933
16934 # hardcode_minus_L: Not really in the search PATH,
16935 # but as the default location of the library.
16936 hardcode_minus_L_GCJ=yes
16937 export_dynamic_flag_spec_GCJ='${wl}-E'
16938 ;;
16939
16940 hpux10*)
16941 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16942 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16943 else
16944 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16945 fi
16946 if test "$with_gnu_ld" = no; then
16947 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16948 hardcode_libdir_separator_GCJ=:
16949
16950 hardcode_direct_GCJ=yes
16951 export_dynamic_flag_spec_GCJ='${wl}-E'
16952
16953 # hardcode_minus_L: Not really in the search PATH,
16954 # but as the default location of the library.
16955 hardcode_minus_L_GCJ=yes
16956 fi
16957 ;;
16958
16959 hpux11*)
16960 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16961 case $host_cpu in
16962 hppa*64*)
16963 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16964 ;;
16965 ia64*)
16966 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16967 ;;
16968 *)
16969 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16970 ;;
16971 esac
16972 else
16973 case $host_cpu in
16974 hppa*64*)
16975 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16976 ;;
16977 ia64*)
16978 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16979 ;;
16980 *)
16981 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16982 ;;
16983 esac
16984 fi
16985 if test "$with_gnu_ld" = no; then
16986 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16987 hardcode_libdir_separator_GCJ=:
16988
16989 case $host_cpu in
16990 hppa*64*|ia64*)
16991 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16992 hardcode_direct_GCJ=no
16993 hardcode_shlibpath_var_GCJ=no
16994 ;;
16995 *)
16996 hardcode_direct_GCJ=yes
16997 export_dynamic_flag_spec_GCJ='${wl}-E'
16998
16999 # hardcode_minus_L: Not really in the search PATH,
17000 # but as the default location of the library.
17001 hardcode_minus_L_GCJ=yes
17002 ;;
17003 esac
17004 fi
17005 ;;
17006
17007 irix5* | irix6* | nonstopux*)
17008 if test "$GCC" = yes; then
17009 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'
17010 else
17011 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'
17012 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17013 fi
17014 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17015 hardcode_libdir_separator_GCJ=:
17016 link_all_deplibs_GCJ=yes
17017 ;;
17018
17019 netbsd*)
17020 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17021 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17022 else
17023 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17024 fi
17025 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17026 hardcode_direct_GCJ=yes
17027 hardcode_shlibpath_var_GCJ=no
17028 ;;
17029
17030 newsos6)
17031 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17032 hardcode_direct_GCJ=yes
17033 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17034 hardcode_libdir_separator_GCJ=:
17035 hardcode_shlibpath_var_GCJ=no
17036 ;;
17037
17038 openbsd*)
17039 hardcode_direct_GCJ=yes
17040 hardcode_shlibpath_var_GCJ=no
17041 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17042 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17043 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17044 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17045 export_dynamic_flag_spec_GCJ='${wl}-E'
17046 else
17047 case $host_os in
17048 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17049 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17050 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17051 ;;
17052 *)
17053 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17054 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17055 ;;
17056 esac
17057 fi
17058 ;;
17059
17060 os2*)
17061 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17062 hardcode_minus_L_GCJ=yes
17063 allow_undefined_flag_GCJ=unsupported
17064 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'
17065 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17066 ;;
17067
17068 osf3*)
17069 if test "$GCC" = yes; then
17070 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17071 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'
17072 else
17073 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17074 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'
17075 fi
17076 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17077 hardcode_libdir_separator_GCJ=:
17078 ;;
17079
17080 osf4* | osf5*) # as osf3* with the addition of -msym flag
17081 if test "$GCC" = yes; then
17082 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17083 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'
17084 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17085 else
17086 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17087 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'
17088 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~
17089 $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'
17090
17091 # Both c and cxx compiler support -rpath directly
17092 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17093 fi
17094 hardcode_libdir_separator_GCJ=:
17095 ;;
17096
17097 solaris*)
17098 no_undefined_flag_GCJ=' -z text'
17099 if test "$GCC" = yes; then
17100 wlarc='${wl}'
17101 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17102 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17103 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17104 else
17105 wlarc=''
17106 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17107 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17108 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17109 fi
17110 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17111 hardcode_shlibpath_var_GCJ=no
17112 case $host_os in
17113 solaris2.[0-5] | solaris2.[0-5].*) ;;
17114 *)
17115 # The compiler driver will combine linker options so we
17116 # cannot just pass the convience library names through
17117 # without $wl, iff we do not link with $LD.
17118 # Luckily, gcc supports the same syntax we need for Sun Studio.
17119 # Supported since Solaris 2.6 (maybe 2.5.1?)
17120 case $wlarc in
17121 '')
17122 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17123 *)
17124 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' ;;
17125 esac ;;
17126 esac
17127 link_all_deplibs_GCJ=yes
17128 ;;
17129
17130 sunos4*)
17131 if test "x$host_vendor" = xsequent; then
17132 # Use $CC to link under sequent, because it throws in some extra .o
17133 # files that make .init and .fini sections work.
17134 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17135 else
17136 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17137 fi
17138 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17139 hardcode_direct_GCJ=yes
17140 hardcode_minus_L_GCJ=yes
17141 hardcode_shlibpath_var_GCJ=no
17142 ;;
17143
17144 sysv4)
17145 case $host_vendor in
17146 sni)
17147 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17148 hardcode_direct_GCJ=yes # is this really true???
17149 ;;
17150 siemens)
17151 ## LD is ld it makes a PLAMLIB
17152 ## CC just makes a GrossModule.
17153 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17154 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17155 hardcode_direct_GCJ=no
17156 ;;
17157 motorola)
17158 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17159 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17160 ;;
17161 esac
17162 runpath_var='LD_RUN_PATH'
17163 hardcode_shlibpath_var_GCJ=no
17164 ;;
17165
17166 sysv4.3*)
17167 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17168 hardcode_shlibpath_var_GCJ=no
17169 export_dynamic_flag_spec_GCJ='-Bexport'
17170 ;;
17171
17172 sysv4*MP*)
17173 if test -d /usr/nec; then
17174 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17175 hardcode_shlibpath_var_GCJ=no
17176 runpath_var=LD_RUN_PATH
17177 hardcode_runpath_var=yes
17178 ld_shlibs_GCJ=yes
17179 fi
17180 ;;
17181
17182 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17183 no_undefined_flag_GCJ='${wl}-z,text'
17184 archive_cmds_need_lc_GCJ=no
17185 hardcode_shlibpath_var_GCJ=no
17186 runpath_var='LD_RUN_PATH'
17187
17188 if test "$GCC" = yes; then
17189 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17190 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17191 else
17192 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17193 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17194 fi
17195 ;;
17196
17197 sysv5* | sco3.2v5* | sco5v6*)
17198 # Note: We can NOT use -z defs as we might desire, because we do not
17199 # link with -lc, and that would cause any symbols used from libc to
17200 # always be unresolved, which means just about no library would
17201 # ever link correctly. If we're not using GNU ld we use -z text
17202 # though, which does catch some bad symbols but isn't as heavy-handed
17203 # as -z defs.
17204 no_undefined_flag_GCJ='${wl}-z,text'
17205 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17206 archive_cmds_need_lc_GCJ=no
17207 hardcode_shlibpath_var_GCJ=no
17208 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17209 hardcode_libdir_separator_GCJ=':'
17210 link_all_deplibs_GCJ=yes
17211 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17212 runpath_var='LD_RUN_PATH'
17213
17214 if test "$GCC" = yes; then
17215 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17216 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17217 else
17218 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17219 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17220 fi
17221 ;;
17222
17223 uts4*)
17224 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17225 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17226 hardcode_shlibpath_var_GCJ=no
17227 ;;
17228
17229 *)
17230 ld_shlibs_GCJ=no
17231 ;;
17232 esac
17233 fi
17234
17235 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17236 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17237 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17238
17239 #
17240 # Do we need to explicitly link libc?
17241 #
17242 case "x$archive_cmds_need_lc_GCJ" in
17243 x|xyes)
17244 # Assume -lc should be added
17245 archive_cmds_need_lc_GCJ=yes
17246
17247 if test "$enable_shared" = yes && test "$GCC" = yes; then
17248 case $archive_cmds_GCJ in
17249 *'~'*)
17250 # FIXME: we may have to deal with multi-command sequences.
17251 ;;
17252 '$CC '*)
17253 # Test whether the compiler implicitly links with -lc since on some
17254 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17255 # to ld, don't add -lc before -lgcc.
17256 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17257 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17258 $rm conftest*
17259 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17260
17261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17262 (eval $ac_compile) 2>&5
17263 ac_status=$?
17264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17265 (exit $ac_status); } 2>conftest.err; then
17266 soname=conftest
17267 lib=conftest
17268 libobjs=conftest.$ac_objext
17269 deplibs=
17270 wl=$lt_prog_compiler_wl_GCJ
17271 pic_flag=$lt_prog_compiler_pic_GCJ
17272 compiler_flags=-v
17273 linker_flags=-v
17274 verstring=
17275 output_objdir=.
17276 libname=conftest
17277 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17278 allow_undefined_flag_GCJ=
17279 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17280 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17281 ac_status=$?
17282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17283 (exit $ac_status); }
17284 then
17285 archive_cmds_need_lc_GCJ=no
17286 else
17287 archive_cmds_need_lc_GCJ=yes
17288 fi
17289 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17290 else
17291 cat conftest.err 1>&5
17292 fi
17293 $rm conftest*
17294 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17295 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17296 ;;
17297 esac
17298 fi
17299 ;;
17300 esac
17301
17302 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17303 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17304 library_names_spec=
17305 libname_spec='lib$name'
17306 soname_spec=
17307 shrext_cmds=".so"
17308 postinstall_cmds=
17309 postuninstall_cmds=
17310 finish_cmds=
17311 finish_eval=
17312 shlibpath_var=
17313 shlibpath_overrides_runpath=unknown
17314 version_type=none
17315 dynamic_linker="$host_os ld.so"
17316 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17317 if test "$GCC" = yes; then
17318 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17319 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17320 # if the path contains ";" then we assume it to be the separator
17321 # otherwise default to the standard path separator (i.e. ":") - it is
17322 # assumed that no part of a normal pathname contains ";" but that should
17323 # okay in the real world where ";" in dirpaths is itself problematic.
17324 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17325 else
17326 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17327 fi
17328 else
17329 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17330 fi
17331 need_lib_prefix=unknown
17332 hardcode_into_libs=no
17333
17334 # when you set need_version to no, make sure it does not cause -set_version
17335 # flags to be left without arguments
17336 need_version=unknown
17337
17338 case $host_os in
17339 aix3*)
17340 version_type=linux
17341 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17342 shlibpath_var=LIBPATH
17343
17344 # AIX 3 has no versioning support, so we append a major version to the name.
17345 soname_spec='${libname}${release}${shared_ext}$major'
17346 ;;
17347
17348 aix4* | aix5*)
17349 version_type=linux
17350 need_lib_prefix=no
17351 need_version=no
17352 hardcode_into_libs=yes
17353 if test "$host_cpu" = ia64; then
17354 # AIX 5 supports IA64
17355 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17356 shlibpath_var=LD_LIBRARY_PATH
17357 else
17358 # With GCC up to 2.95.x, collect2 would create an import file
17359 # for dependence libraries. The import file would start with
17360 # the line `#! .'. This would cause the generated library to
17361 # depend on `.', always an invalid library. This was fixed in
17362 # development snapshots of GCC prior to 3.0.
17363 case $host_os in
17364 aix4 | aix4.[01] | aix4.[01].*)
17365 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17366 echo ' yes '
17367 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17368 :
17369 else
17370 can_build_shared=no
17371 fi
17372 ;;
17373 esac
17374 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17375 # soname into executable. Probably we can add versioning support to
17376 # collect2, so additional links can be useful in future.
17377 if test "$aix_use_runtimelinking" = yes; then
17378 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17379 # instead of lib<name>.a to let people know that these are not
17380 # typical AIX shared libraries.
17381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17382 else
17383 # We preserve .a as extension for shared libraries through AIX4.2
17384 # and later when we are not doing run time linking.
17385 library_names_spec='${libname}${release}.a $libname.a'
17386 soname_spec='${libname}${release}${shared_ext}$major'
17387 fi
17388 shlibpath_var=LIBPATH
17389 fi
17390 ;;
17391
17392 amigaos*)
17393 library_names_spec='$libname.ixlibrary $libname.a'
17394 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17395 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'
17396 ;;
17397
17398 beos*)
17399 library_names_spec='${libname}${shared_ext}'
17400 dynamic_linker="$host_os ld.so"
17401 shlibpath_var=LIBRARY_PATH
17402 ;;
17403
17404 bsdi[45]*)
17405 version_type=linux
17406 need_version=no
17407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17408 soname_spec='${libname}${release}${shared_ext}$major'
17409 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17410 shlibpath_var=LD_LIBRARY_PATH
17411 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17412 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17413 # the default ld.so.conf also contains /usr/contrib/lib and
17414 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17415 # libtool to hard-code these into programs
17416 ;;
17417
17418 cygwin* | mingw* | pw32*)
17419 version_type=windows
17420 shrext_cmds=".dll"
17421 need_version=no
17422 need_lib_prefix=no
17423
17424 case $GCC,$host_os in
17425 yes,cygwin* | yes,mingw* | yes,pw32*)
17426 library_names_spec='$libname.dll.a'
17427 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17428 postinstall_cmds='base_file=`basename \${file}`~
17429 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17430 dldir=$destdir/`dirname \$dlpath`~
17431 test -d \$dldir || mkdir -p \$dldir~
17432 $install_prog $dir/$dlname \$dldir/$dlname~
17433 chmod a+x \$dldir/$dlname'
17434 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17435 dlpath=$dir/\$dldll~
17436 $rm \$dlpath'
17437 shlibpath_overrides_runpath=yes
17438
17439 case $host_os in
17440 cygwin*)
17441 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17442 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17443 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17444 ;;
17445 mingw*)
17446 # MinGW DLLs use traditional 'lib' prefix
17447 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17448 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17449 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17450 # It is most probably a Windows format PATH printed by
17451 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17452 # path with ; separators, and with drive letters. We can handle the
17453 # drive letters (cygwin fileutils understands them), so leave them,
17454 # especially as we might pass files found there to a mingw objdump,
17455 # which wouldn't understand a cygwinified path. Ahh.
17456 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17457 else
17458 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17459 fi
17460 ;;
17461 pw32*)
17462 # pw32 DLLs use 'pw' prefix rather than 'lib'
17463 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17464 ;;
17465 esac
17466 ;;
17467
17468 *)
17469 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17470 ;;
17471 esac
17472 dynamic_linker='Win32 ld.exe'
17473 # FIXME: first we should search . and the directory the executable is in
17474 shlibpath_var=PATH
17475 ;;
17476
17477 darwin* | rhapsody*)
17478 dynamic_linker="$host_os dyld"
17479 version_type=darwin
17480 need_lib_prefix=no
17481 need_version=no
17482 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17483 soname_spec='${libname}${release}${major}$shared_ext'
17484 shlibpath_overrides_runpath=yes
17485 shlibpath_var=DYLD_LIBRARY_PATH
17486 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17487 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17488 if test "$GCC" = yes; then
17489 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"`
17490 else
17491 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17492 fi
17493 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17494 ;;
17495
17496 dgux*)
17497 version_type=linux
17498 need_lib_prefix=no
17499 need_version=no
17500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17501 soname_spec='${libname}${release}${shared_ext}$major'
17502 shlibpath_var=LD_LIBRARY_PATH
17503 ;;
17504
17505 freebsd1*)
17506 dynamic_linker=no
17507 ;;
17508
17509 kfreebsd*-gnu)
17510 version_type=linux
17511 need_lib_prefix=no
17512 need_version=no
17513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17514 soname_spec='${libname}${release}${shared_ext}$major'
17515 shlibpath_var=LD_LIBRARY_PATH
17516 shlibpath_overrides_runpath=no
17517 hardcode_into_libs=yes
17518 dynamic_linker='GNU ld.so'
17519 ;;
17520
17521 freebsd* | dragonfly*)
17522 # DragonFly does not have aout. When/if they implement a new
17523 # versioning mechanism, adjust this.
17524 if test -x /usr/bin/objformat; then
17525 objformat=`/usr/bin/objformat`
17526 else
17527 case $host_os in
17528 freebsd[123]*) objformat=aout ;;
17529 *) objformat=elf ;;
17530 esac
17531 fi
17532 version_type=freebsd-$objformat
17533 case $version_type in
17534 freebsd-elf*)
17535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17536 need_version=no
17537 need_lib_prefix=no
17538 ;;
17539 freebsd-*)
17540 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17541 need_version=yes
17542 ;;
17543 esac
17544 shlibpath_var=LD_LIBRARY_PATH
17545 case $host_os in
17546 freebsd2*)
17547 shlibpath_overrides_runpath=yes
17548 ;;
17549 freebsd3.[01]* | freebsdelf3.[01]*)
17550 shlibpath_overrides_runpath=yes
17551 hardcode_into_libs=yes
17552 ;;
17553 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17554 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17555 shlibpath_overrides_runpath=no
17556 hardcode_into_libs=yes
17557 ;;
17558 freebsd*) # from 4.6 on
17559 shlibpath_overrides_runpath=yes
17560 hardcode_into_libs=yes
17561 ;;
17562 esac
17563 ;;
17564
17565 gnu*)
17566 version_type=linux
17567 need_lib_prefix=no
17568 need_version=no
17569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17570 soname_spec='${libname}${release}${shared_ext}$major'
17571 shlibpath_var=LD_LIBRARY_PATH
17572 hardcode_into_libs=yes
17573 ;;
17574
17575 hpux9* | hpux10* | hpux11*)
17576 # Give a soname corresponding to the major version so that dld.sl refuses to
17577 # link against other versions.
17578 version_type=sunos
17579 need_lib_prefix=no
17580 need_version=no
17581 case $host_cpu in
17582 ia64*)
17583 shrext_cmds='.so'
17584 hardcode_into_libs=yes
17585 dynamic_linker="$host_os dld.so"
17586 shlibpath_var=LD_LIBRARY_PATH
17587 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17589 soname_spec='${libname}${release}${shared_ext}$major'
17590 if test "X$HPUX_IA64_MODE" = X32; then
17591 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17592 else
17593 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17594 fi
17595 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17596 ;;
17597 hppa*64*)
17598 shrext_cmds='.sl'
17599 hardcode_into_libs=yes
17600 dynamic_linker="$host_os dld.sl"
17601 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17602 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17604 soname_spec='${libname}${release}${shared_ext}$major'
17605 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17606 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17607 ;;
17608 *)
17609 shrext_cmds='.sl'
17610 dynamic_linker="$host_os dld.sl"
17611 shlibpath_var=SHLIB_PATH
17612 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17614 soname_spec='${libname}${release}${shared_ext}$major'
17615 ;;
17616 esac
17617 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17618 postinstall_cmds='chmod 555 $lib'
17619 ;;
17620
17621 interix3*)
17622 version_type=linux
17623 need_lib_prefix=no
17624 need_version=no
17625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17626 soname_spec='${libname}${release}${shared_ext}$major'
17627 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17628 shlibpath_var=LD_LIBRARY_PATH
17629 shlibpath_overrides_runpath=no
17630 hardcode_into_libs=yes
17631 ;;
17632
17633 irix5* | irix6* | nonstopux*)
17634 case $host_os in
17635 nonstopux*) version_type=nonstopux ;;
17636 *)
17637 if test "$lt_cv_prog_gnu_ld" = yes; then
17638 version_type=linux
17639 else
17640 version_type=irix
17641 fi ;;
17642 esac
17643 need_lib_prefix=no
17644 need_version=no
17645 soname_spec='${libname}${release}${shared_ext}$major'
17646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17647 case $host_os in
17648 irix5* | nonstopux*)
17649 libsuff= shlibsuff=
17650 ;;
17651 *)
17652 case $LD in # libtool.m4 will add one of these switches to LD
17653 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17654 libsuff= shlibsuff= libmagic=32-bit;;
17655 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17656 libsuff=32 shlibsuff=N32 libmagic=N32;;
17657 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17658 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17659 *) libsuff= shlibsuff= libmagic=never-match;;
17660 esac
17661 ;;
17662 esac
17663 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17664 shlibpath_overrides_runpath=no
17665 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17666 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17667 hardcode_into_libs=yes
17668 ;;
17669
17670 # No shared lib support for Linux oldld, aout, or coff.
17671 linux*oldld* | linux*aout* | linux*coff*)
17672 dynamic_linker=no
17673 ;;
17674
17675 # This must be Linux ELF.
17676 linux*)
17677 version_type=linux
17678 need_lib_prefix=no
17679 need_version=no
17680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17681 soname_spec='${libname}${release}${shared_ext}$major'
17682 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17683 shlibpath_var=LD_LIBRARY_PATH
17684 shlibpath_overrides_runpath=no
17685 # This implies no fast_install, which is unacceptable.
17686 # Some rework will be needed to allow for fast_install
17687 # before this can be enabled.
17688 hardcode_into_libs=yes
17689
17690 # find out which ABI we are using
17691 libsuff=
17692 case "$host_cpu" in
17693 x86_64*|s390x*|powerpc64*)
17694 echo '#line 17694 "configure"' > conftest.$ac_ext
17695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17696 (eval $ac_compile) 2>&5
17697 ac_status=$?
17698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17699 (exit $ac_status); }; then
17700 case `/usr/bin/file conftest.$ac_objext` in
17701 *64-bit*)
17702 libsuff=64
17703 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17704 ;;
17705 esac
17706 fi
17707 rm -rf conftest*
17708 ;;
17709 esac
17710
17711 # Append ld.so.conf contents to the search path
17712 if test -f /etc/ld.so.conf; then
17713 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' ' '`
17714 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
17715 fi
17716
17717 # We used to test for /lib/ld.so.1 and disable shared libraries on
17718 # powerpc, because MkLinux only supported shared libraries with the
17719 # GNU dynamic linker. Since this was broken with cross compilers,
17720 # most powerpc-linux boxes support dynamic linking these days and
17721 # people can always --disable-shared, the test was removed, and we
17722 # assume the GNU/Linux dynamic linker is in use.
17723 dynamic_linker='GNU/Linux ld.so'
17724 ;;
17725
17726 knetbsd*-gnu)
17727 version_type=linux
17728 need_lib_prefix=no
17729 need_version=no
17730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17731 soname_spec='${libname}${release}${shared_ext}$major'
17732 shlibpath_var=LD_LIBRARY_PATH
17733 shlibpath_overrides_runpath=no
17734 hardcode_into_libs=yes
17735 dynamic_linker='GNU ld.so'
17736 ;;
17737
17738 netbsd*)
17739 version_type=sunos
17740 need_lib_prefix=no
17741 need_version=no
17742 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17744 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17745 dynamic_linker='NetBSD (a.out) ld.so'
17746 else
17747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17748 soname_spec='${libname}${release}${shared_ext}$major'
17749 dynamic_linker='NetBSD ld.elf_so'
17750 fi
17751 shlibpath_var=LD_LIBRARY_PATH
17752 shlibpath_overrides_runpath=yes
17753 hardcode_into_libs=yes
17754 ;;
17755
17756 newsos6)
17757 version_type=linux
17758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17759 shlibpath_var=LD_LIBRARY_PATH
17760 shlibpath_overrides_runpath=yes
17761 ;;
17762
17763 nto-qnx*)
17764 version_type=linux
17765 need_lib_prefix=no
17766 need_version=no
17767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17768 soname_spec='${libname}${release}${shared_ext}$major'
17769 shlibpath_var=LD_LIBRARY_PATH
17770 shlibpath_overrides_runpath=yes
17771 ;;
17772
17773 openbsd*)
17774 version_type=sunos
17775 sys_lib_dlsearch_path_spec="/usr/lib"
17776 need_lib_prefix=no
17777 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17778 case $host_os in
17779 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17780 *) need_version=no ;;
17781 esac
17782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17783 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17784 shlibpath_var=LD_LIBRARY_PATH
17785 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17786 case $host_os in
17787 openbsd2.[89] | openbsd2.[89].*)
17788 shlibpath_overrides_runpath=no
17789 ;;
17790 *)
17791 shlibpath_overrides_runpath=yes
17792 ;;
17793 esac
17794 else
17795 shlibpath_overrides_runpath=yes
17796 fi
17797 ;;
17798
17799 os2*)
17800 libname_spec='$name'
17801 shrext_cmds=".dll"
17802 need_lib_prefix=no
17803 library_names_spec='$libname${shared_ext} $libname.a'
17804 dynamic_linker='OS/2 ld.exe'
17805 shlibpath_var=LIBPATH
17806 ;;
17807
17808 osf3* | osf4* | osf5*)
17809 version_type=osf
17810 need_lib_prefix=no
17811 need_version=no
17812 soname_spec='${libname}${release}${shared_ext}$major'
17813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17814 shlibpath_var=LD_LIBRARY_PATH
17815 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17816 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17817 ;;
17818
17819 solaris*)
17820 version_type=linux
17821 need_lib_prefix=no
17822 need_version=no
17823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17824 soname_spec='${libname}${release}${shared_ext}$major'
17825 shlibpath_var=LD_LIBRARY_PATH
17826 shlibpath_overrides_runpath=yes
17827 hardcode_into_libs=yes
17828 # ldd complains unless libraries are executable
17829 postinstall_cmds='chmod +x $lib'
17830 ;;
17831
17832 sunos4*)
17833 version_type=sunos
17834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17835 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17836 shlibpath_var=LD_LIBRARY_PATH
17837 shlibpath_overrides_runpath=yes
17838 if test "$with_gnu_ld" = yes; then
17839 need_lib_prefix=no
17840 fi
17841 need_version=yes
17842 ;;
17843
17844 sysv4 | sysv4.3*)
17845 version_type=linux
17846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17847 soname_spec='${libname}${release}${shared_ext}$major'
17848 shlibpath_var=LD_LIBRARY_PATH
17849 case $host_vendor in
17850 sni)
17851 shlibpath_overrides_runpath=no
17852 need_lib_prefix=no
17853 export_dynamic_flag_spec='${wl}-Blargedynsym'
17854 runpath_var=LD_RUN_PATH
17855 ;;
17856 siemens)
17857 need_lib_prefix=no
17858 ;;
17859 motorola)
17860 need_lib_prefix=no
17861 need_version=no
17862 shlibpath_overrides_runpath=no
17863 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17864 ;;
17865 esac
17866 ;;
17867
17868 sysv4*MP*)
17869 if test -d /usr/nec ;then
17870 version_type=linux
17871 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17872 soname_spec='$libname${shared_ext}.$major'
17873 shlibpath_var=LD_LIBRARY_PATH
17874 fi
17875 ;;
17876
17877 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17878 version_type=freebsd-elf
17879 need_lib_prefix=no
17880 need_version=no
17881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17882 soname_spec='${libname}${release}${shared_ext}$major'
17883 shlibpath_var=LD_LIBRARY_PATH
17884 hardcode_into_libs=yes
17885 if test "$with_gnu_ld" = yes; then
17886 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17887 shlibpath_overrides_runpath=no
17888 else
17889 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17890 shlibpath_overrides_runpath=yes
17891 case $host_os in
17892 sco3.2v5*)
17893 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17894 ;;
17895 esac
17896 fi
17897 sys_lib_dlsearch_path_spec='/usr/lib'
17898 ;;
17899
17900 uts4*)
17901 version_type=linux
17902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17903 soname_spec='${libname}${release}${shared_ext}$major'
17904 shlibpath_var=LD_LIBRARY_PATH
17905 ;;
17906
17907 *)
17908 dynamic_linker=no
17909 ;;
17910 esac
17911 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17912 echo "${ECHO_T}$dynamic_linker" >&6
17913 test "$dynamic_linker" = no && can_build_shared=no
17914
17915 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17916 if test "$GCC" = yes; then
17917 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17918 fi
17919
17920 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17921 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17922 hardcode_action_GCJ=
17923 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17924 test -n "$runpath_var_GCJ" || \
17925 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17926
17927 # We can hardcode non-existant directories.
17928 if test "$hardcode_direct_GCJ" != no &&
17929 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17930 # have to relink, otherwise we might link with an installed library
17931 # when we should be linking with a yet-to-be-installed one
17932 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17933 test "$hardcode_minus_L_GCJ" != no; then
17934 # Linking always hardcodes the temporary library directory.
17935 hardcode_action_GCJ=relink
17936 else
17937 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17938 hardcode_action_GCJ=immediate
17939 fi
17940 else
17941 # We cannot hardcode anything, or else we can only hardcode existing
17942 # directories.
17943 hardcode_action_GCJ=unsupported
17944 fi
17945 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17946 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17947
17948 if test "$hardcode_action_GCJ" = relink; then
17949 # Fast installation is not supported
17950 enable_fast_install=no
17951 elif test "$shlibpath_overrides_runpath" = yes ||
17952 test "$enable_shared" = no; then
17953 # Fast installation is not necessary
17954 enable_fast_install=needless
17955 fi
17956
17957
17958 # The else clause should only fire when bootstrapping the
17959 # libtool distribution, otherwise you forgot to ship ltmain.sh
17960 # with your package, and you will get complaints that there are
17961 # no rules to generate ltmain.sh.
17962 if test -f "$ltmain"; then
17963 # See if we are running on zsh, and set the options which allow our commands through
17964 # without removal of \ escapes.
17965 if test -n "${ZSH_VERSION+set}" ; then
17966 setopt NO_GLOB_SUBST
17967 fi
17968 # Now quote all the things that may contain metacharacters while being
17969 # careful not to overquote the AC_SUBSTed values. We take copies of the
17970 # variables and quote the copies for generation of the libtool script.
17971 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17972 SED SHELL STRIP \
17973 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17974 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17975 deplibs_check_method reload_flag reload_cmds need_locks \
17976 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17977 lt_cv_sys_global_symbol_to_c_name_address \
17978 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17979 old_postinstall_cmds old_postuninstall_cmds \
17980 compiler_GCJ \
17981 CC_GCJ \
17982 LD_GCJ \
17983 lt_prog_compiler_wl_GCJ \
17984 lt_prog_compiler_pic_GCJ \
17985 lt_prog_compiler_static_GCJ \
17986 lt_prog_compiler_no_builtin_flag_GCJ \
17987 export_dynamic_flag_spec_GCJ \
17988 thread_safe_flag_spec_GCJ \
17989 whole_archive_flag_spec_GCJ \
17990 enable_shared_with_static_runtimes_GCJ \
17991 old_archive_cmds_GCJ \
17992 old_archive_from_new_cmds_GCJ \
17993 predep_objects_GCJ \
17994 postdep_objects_GCJ \
17995 predeps_GCJ \
17996 postdeps_GCJ \
17997 compiler_lib_search_path_GCJ \
17998 archive_cmds_GCJ \
17999 archive_expsym_cmds_GCJ \
18000 postinstall_cmds_GCJ \
18001 postuninstall_cmds_GCJ \
18002 old_archive_from_expsyms_cmds_GCJ \
18003 allow_undefined_flag_GCJ \
18004 no_undefined_flag_GCJ \
18005 export_symbols_cmds_GCJ \
18006 hardcode_libdir_flag_spec_GCJ \
18007 hardcode_libdir_flag_spec_ld_GCJ \
18008 hardcode_libdir_separator_GCJ \
18009 hardcode_automatic_GCJ \
18010 module_cmds_GCJ \
18011 module_expsym_cmds_GCJ \
18012 lt_cv_prog_compiler_c_o_GCJ \
18013 exclude_expsyms_GCJ \
18014 include_expsyms_GCJ; do
18015
18016 case $var in
18017 old_archive_cmds_GCJ | \
18018 old_archive_from_new_cmds_GCJ | \
18019 archive_cmds_GCJ | \
18020 archive_expsym_cmds_GCJ | \
18021 module_cmds_GCJ | \
18022 module_expsym_cmds_GCJ | \
18023 old_archive_from_expsyms_cmds_GCJ | \
18024 export_symbols_cmds_GCJ | \
18025 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18026 postinstall_cmds | postuninstall_cmds | \
18027 old_postinstall_cmds | old_postuninstall_cmds | \
18028 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18029 # Double-quote double-evaled strings.
18030 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18031 ;;
18032 *)
18033 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18034 ;;
18035 esac
18036 done
18037
18038 case $lt_echo in
18039 *'\$0 --fallback-echo"')
18040 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18041 ;;
18042 esac
18043
18044 cfgfile="$ofile"
18045
18046 cat <<__EOF__ >> "$cfgfile"
18047 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18048
18049 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18050
18051 # Shell to use when invoking shell scripts.
18052 SHELL=$lt_SHELL
18053
18054 # Whether or not to build shared libraries.
18055 build_libtool_libs=$enable_shared
18056
18057 # Whether or not to build static libraries.
18058 build_old_libs=$enable_static
18059
18060 # Whether or not to add -lc for building shared libraries.
18061 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18062
18063 # Whether or not to disallow shared libs when runtime libs are static
18064 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18065
18066 # Whether or not to optimize for fast installation.
18067 fast_install=$enable_fast_install
18068
18069 # The host system.
18070 host_alias=$host_alias
18071 host=$host
18072 host_os=$host_os
18073
18074 # The build system.
18075 build_alias=$build_alias
18076 build=$build
18077 build_os=$build_os
18078
18079 # An echo program that does not interpret backslashes.
18080 echo=$lt_echo
18081
18082 # The archiver.
18083 AR=$lt_AR
18084 AR_FLAGS=$lt_AR_FLAGS
18085
18086 # A C compiler.
18087 LTCC=$lt_LTCC
18088
18089 # LTCC compiler flags.
18090 LTCFLAGS=$lt_LTCFLAGS
18091
18092 # A language-specific compiler.
18093 CC=$lt_compiler_GCJ
18094
18095 # Is the compiler the GNU C compiler?
18096 with_gcc=$GCC_GCJ
18097
18098 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
18099 gcc_ver=\`gcc -dumpversion\`
18100
18101 # An ERE matcher.
18102 EGREP=$lt_EGREP
18103
18104 # The linker used to build libraries.
18105 LD=$lt_LD_GCJ
18106
18107 # Whether we need hard or soft links.
18108 LN_S=$lt_LN_S
18109
18110 # A BSD-compatible nm program.
18111 NM=$lt_NM
18112
18113 # A symbol stripping program
18114 STRIP=$lt_STRIP
18115
18116 # Used to examine libraries when file_magic_cmd begins "file"
18117 MAGIC_CMD=$MAGIC_CMD
18118
18119 # Used on cygwin: DLL creation program.
18120 DLLTOOL="$DLLTOOL"
18121
18122 # Used on cygwin: object dumper.
18123 OBJDUMP="$OBJDUMP"
18124
18125 # Used on cygwin: assembler.
18126 AS="$AS"
18127
18128 # The name of the directory that contains temporary libtool files.
18129 objdir=$objdir
18130
18131 # How to create reloadable object files.
18132 reload_flag=$lt_reload_flag
18133 reload_cmds=$lt_reload_cmds
18134
18135 # How to pass a linker flag through the compiler.
18136 wl=$lt_lt_prog_compiler_wl_GCJ
18137
18138 # Object file suffix (normally "o").
18139 objext="$ac_objext"
18140
18141 # Old archive suffix (normally "a").
18142 libext="$libext"
18143
18144 # Shared library suffix (normally ".so").
18145 shrext_cmds='$shrext_cmds'
18146
18147 # Executable file suffix (normally "").
18148 exeext="$exeext"
18149
18150 # Additional compiler flags for building library objects.
18151 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18152 pic_mode=$pic_mode
18153
18154 # What is the maximum length of a command?
18155 max_cmd_len=$lt_cv_sys_max_cmd_len
18156
18157 # Does compiler simultaneously support -c and -o options?
18158 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18159
18160 # Must we lock files when doing compilation?
18161 need_locks=$lt_need_locks
18162
18163 # Do we need the lib prefix for modules?
18164 need_lib_prefix=$need_lib_prefix
18165
18166 # Do we need a version for libraries?
18167 need_version=$need_version
18168
18169 # Whether dlopen is supported.
18170 dlopen_support=$enable_dlopen
18171
18172 # Whether dlopen of programs is supported.
18173 dlopen_self=$enable_dlopen_self
18174
18175 # Whether dlopen of statically linked programs is supported.
18176 dlopen_self_static=$enable_dlopen_self_static
18177
18178 # Compiler flag to prevent dynamic linking.
18179 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18180
18181 # Compiler flag to turn off builtin functions.
18182 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18183
18184 # Compiler flag to allow reflexive dlopens.
18185 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18186
18187 # Compiler flag to generate shared objects directly from archives.
18188 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18189
18190 # Compiler flag to generate thread-safe objects.
18191 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18192
18193 # Library versioning type.
18194 version_type=$version_type
18195
18196 # Format of library name prefix.
18197 libname_spec=$lt_libname_spec
18198
18199 # List of archive names. First name is the real one, the rest are links.
18200 # The last name is the one that the linker finds with -lNAME.
18201 library_names_spec=$lt_library_names_spec
18202
18203 # The coded name of the library, if different from the real name.
18204 soname_spec=$lt_soname_spec
18205
18206 # Commands used to build and install an old-style archive.
18207 RANLIB=$lt_RANLIB
18208 old_archive_cmds=$lt_old_archive_cmds_GCJ
18209 old_postinstall_cmds=$lt_old_postinstall_cmds
18210 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18211
18212 # Create an old-style archive from a shared archive.
18213 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18214
18215 # Create a temporary old-style archive to link instead of a shared archive.
18216 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18217
18218 # Commands used to build and install a shared archive.
18219 archive_cmds=$lt_archive_cmds_GCJ
18220 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18221 postinstall_cmds=$lt_postinstall_cmds
18222 postuninstall_cmds=$lt_postuninstall_cmds
18223
18224 # Commands used to build a loadable module (assumed same as above if empty)
18225 module_cmds=$lt_module_cmds_GCJ
18226 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18227
18228 # Commands to strip libraries.
18229 old_striplib=$lt_old_striplib
18230 striplib=$lt_striplib
18231
18232 # Dependencies to place before the objects being linked to create a
18233 # shared library.
18234 predep_objects=\`echo $lt_predep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18235
18236 # Dependencies to place after the objects being linked to create a
18237 # shared library.
18238 postdep_objects=\`echo $lt_postdep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18239
18240 # Dependencies to place before the objects being linked to create a
18241 # shared library.
18242 predeps=$lt_predeps_GCJ
18243
18244 # Dependencies to place after the objects being linked to create a
18245 # shared library.
18246 postdeps=$lt_postdeps_GCJ
18247
18248 # The library search path used internally by the compiler when linking
18249 # a shared library.
18250 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"\`
18251
18252 # Method to check whether dependent libraries are shared objects.
18253 deplibs_check_method=$lt_deplibs_check_method
18254
18255 # Command to use when deplibs_check_method == file_magic.
18256 file_magic_cmd=$lt_file_magic_cmd
18257
18258 # Flag that allows shared libraries with undefined symbols to be built.
18259 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18260
18261 # Flag that forces no undefined symbols.
18262 no_undefined_flag=$lt_no_undefined_flag_GCJ
18263
18264 # Commands used to finish a libtool library installation in a directory.
18265 finish_cmds=$lt_finish_cmds
18266
18267 # Same as above, but a single script fragment to be evaled but not shown.
18268 finish_eval=$lt_finish_eval
18269
18270 # Take the output of nm and produce a listing of raw symbols and C names.
18271 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18272
18273 # Transform the output of nm in a proper C declaration
18274 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18275
18276 # Transform the output of nm in a C name address pair
18277 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18278
18279 # This is the shared library runtime path variable.
18280 runpath_var=$runpath_var
18281
18282 # This is the shared library path variable.
18283 shlibpath_var=$shlibpath_var
18284
18285 # Is shlibpath searched before the hard-coded library search path?
18286 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18287
18288 # How to hardcode a shared library path into an executable.
18289 hardcode_action=$hardcode_action_GCJ
18290
18291 # Whether we should hardcode library paths into libraries.
18292 hardcode_into_libs=$hardcode_into_libs
18293
18294 # Flag to hardcode \$libdir into a binary during linking.
18295 # This must work even if \$libdir does not exist.
18296 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18297
18298 # If ld is used when linking, flag to hardcode \$libdir into
18299 # a binary during linking. This must work even if \$libdir does
18300 # not exist.
18301 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18302
18303 # Whether we need a single -rpath flag with a separated argument.
18304 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18305
18306 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18307 # resulting binary.
18308 hardcode_direct=$hardcode_direct_GCJ
18309
18310 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18311 # resulting binary.
18312 hardcode_minus_L=$hardcode_minus_L_GCJ
18313
18314 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18315 # the resulting binary.
18316 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18317
18318 # Set to yes if building a shared library automatically hardcodes DIR into the library
18319 # and all subsequent libraries and executables linked against it.
18320 hardcode_automatic=$hardcode_automatic_GCJ
18321
18322 # Variables whose values should be saved in libtool wrapper scripts and
18323 # restored at relink time.
18324 variables_saved_for_relink="$variables_saved_for_relink"
18325
18326 # Whether libtool must link a program against all its dependency libraries.
18327 link_all_deplibs=$link_all_deplibs_GCJ
18328
18329 # Compile-time system search path for libraries
18330 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"\`
18331
18332 # Run-time system search path for libraries
18333 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18334
18335 # Fix the shell variable \$srcfile for the compiler.
18336 fix_srcfile_path="$fix_srcfile_path_GCJ"
18337
18338 # Set to yes if exported symbols are required.
18339 always_export_symbols=$always_export_symbols_GCJ
18340
18341 # The commands to list exported symbols.
18342 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18343
18344 # The commands to extract the exported symbol list from a shared archive.
18345 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18346
18347 # Symbols that should not be listed in the preloaded symbols.
18348 exclude_expsyms=$lt_exclude_expsyms_GCJ
18349
18350 # Symbols that must always be exported.
18351 include_expsyms=$lt_include_expsyms_GCJ
18352
18353 # ### END LIBTOOL TAG CONFIG: $tagname
18354
18355 __EOF__
18356
18357
18358 else
18359 # If there is no Makefile yet, we rely on a make rule to execute
18360 # `config.status --recheck' to rerun these tests and create the
18361 # libtool script then.
18362 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18363 if test -f "$ltmain_in"; then
18364 test -f Makefile && make "$ltmain"
18365 fi
18366 fi
18367
18368
18369 ac_ext=c
18370 ac_cpp='$CPP $CPPFLAGS'
18371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18374
18375 CC="$lt_save_CC"
18376
18377 else
18378 tagname=""
18379 fi
18380 ;;
18381
18382 RC)
18383
18384
18385
18386 # Source file extension for RC test sources.
18387 ac_ext=rc
18388
18389 # Object file extension for compiled RC test sources.
18390 objext=o
18391 objext_RC=$objext
18392
18393 # Code to be used in simple compile tests
18394 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18395
18396 # Code to be used in simple link tests
18397 lt_simple_link_test_code="$lt_simple_compile_test_code"
18398
18399 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18400
18401 # If no C compiler was specified, use CC.
18402 LTCC=${LTCC-"$CC"}
18403
18404 # If no C compiler flags were specified, use CFLAGS.
18405 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18406
18407 # Allow CC to be a program name with arguments.
18408 compiler=$CC
18409
18410
18411 # save warnings/boilerplate of simple test code
18412 ac_outfile=conftest.$ac_objext
18413 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18414 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18415 _lt_compiler_boilerplate=`cat conftest.err`
18416 $rm conftest*
18417
18418 ac_outfile=conftest.$ac_objext
18419 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18420 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18421 _lt_linker_boilerplate=`cat conftest.err`
18422 $rm conftest*
18423
18424
18425 # Allow CC to be a program name with arguments.
18426 lt_save_CC="$CC"
18427 CC=${RC-"windres"}
18428 compiler=$CC
18429 compiler_RC=$CC
18430 for cc_temp in $compiler""; do
18431 case $cc_temp in
18432 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18433 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18434 \-*) ;;
18435 *) break;;
18436 esac
18437 done
18438 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18439
18440 lt_cv_prog_compiler_c_o_RC=yes
18441
18442 # The else clause should only fire when bootstrapping the
18443 # libtool distribution, otherwise you forgot to ship ltmain.sh
18444 # with your package, and you will get complaints that there are
18445 # no rules to generate ltmain.sh.
18446 if test -f "$ltmain"; then
18447 # See if we are running on zsh, and set the options which allow our commands through
18448 # without removal of \ escapes.
18449 if test -n "${ZSH_VERSION+set}" ; then
18450 setopt NO_GLOB_SUBST
18451 fi
18452 # Now quote all the things that may contain metacharacters while being
18453 # careful not to overquote the AC_SUBSTed values. We take copies of the
18454 # variables and quote the copies for generation of the libtool script.
18455 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18456 SED SHELL STRIP \
18457 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18458 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18459 deplibs_check_method reload_flag reload_cmds need_locks \
18460 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18461 lt_cv_sys_global_symbol_to_c_name_address \
18462 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18463 old_postinstall_cmds old_postuninstall_cmds \
18464 compiler_RC \
18465 CC_RC \
18466 LD_RC \
18467 lt_prog_compiler_wl_RC \
18468 lt_prog_compiler_pic_RC \
18469 lt_prog_compiler_static_RC \
18470 lt_prog_compiler_no_builtin_flag_RC \
18471 export_dynamic_flag_spec_RC \
18472 thread_safe_flag_spec_RC \
18473 whole_archive_flag_spec_RC \
18474 enable_shared_with_static_runtimes_RC \
18475 old_archive_cmds_RC \
18476 old_archive_from_new_cmds_RC \
18477 predep_objects_RC \
18478 postdep_objects_RC \
18479 predeps_RC \
18480 postdeps_RC \
18481 compiler_lib_search_path_RC \
18482 archive_cmds_RC \
18483 archive_expsym_cmds_RC \
18484 postinstall_cmds_RC \
18485 postuninstall_cmds_RC \
18486 old_archive_from_expsyms_cmds_RC \
18487 allow_undefined_flag_RC \
18488 no_undefined_flag_RC \
18489 export_symbols_cmds_RC \
18490 hardcode_libdir_flag_spec_RC \
18491 hardcode_libdir_flag_spec_ld_RC \
18492 hardcode_libdir_separator_RC \
18493 hardcode_automatic_RC \
18494 module_cmds_RC \
18495 module_expsym_cmds_RC \
18496 lt_cv_prog_compiler_c_o_RC \
18497 exclude_expsyms_RC \
18498 include_expsyms_RC; do
18499
18500 case $var in
18501 old_archive_cmds_RC | \
18502 old_archive_from_new_cmds_RC | \
18503 archive_cmds_RC | \
18504 archive_expsym_cmds_RC | \
18505 module_cmds_RC | \
18506 module_expsym_cmds_RC | \
18507 old_archive_from_expsyms_cmds_RC | \
18508 export_symbols_cmds_RC | \
18509 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18510 postinstall_cmds | postuninstall_cmds | \
18511 old_postinstall_cmds | old_postuninstall_cmds | \
18512 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18513 # Double-quote double-evaled strings.
18514 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18515 ;;
18516 *)
18517 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18518 ;;
18519 esac
18520 done
18521
18522 case $lt_echo in
18523 *'\$0 --fallback-echo"')
18524 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18525 ;;
18526 esac
18527
18528 cfgfile="$ofile"
18529
18530 cat <<__EOF__ >> "$cfgfile"
18531 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18532
18533 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18534
18535 # Shell to use when invoking shell scripts.
18536 SHELL=$lt_SHELL
18537
18538 # Whether or not to build shared libraries.
18539 build_libtool_libs=$enable_shared
18540
18541 # Whether or not to build static libraries.
18542 build_old_libs=$enable_static
18543
18544 # Whether or not to add -lc for building shared libraries.
18545 build_libtool_need_lc=$archive_cmds_need_lc_RC
18546
18547 # Whether or not to disallow shared libs when runtime libs are static
18548 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18549
18550 # Whether or not to optimize for fast installation.
18551 fast_install=$enable_fast_install
18552
18553 # The host system.
18554 host_alias=$host_alias
18555 host=$host
18556 host_os=$host_os
18557
18558 # The build system.
18559 build_alias=$build_alias
18560 build=$build
18561 build_os=$build_os
18562
18563 # An echo program that does not interpret backslashes.
18564 echo=$lt_echo
18565
18566 # The archiver.
18567 AR=$lt_AR
18568 AR_FLAGS=$lt_AR_FLAGS
18569
18570 # A C compiler.
18571 LTCC=$lt_LTCC
18572
18573 # LTCC compiler flags.
18574 LTCFLAGS=$lt_LTCFLAGS
18575
18576 # A language-specific compiler.
18577 CC=$lt_compiler_RC
18578
18579 # Is the compiler the GNU C compiler?
18580 with_gcc=$GCC_RC
18581
18582 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
18583 gcc_ver=\`gcc -dumpversion\`
18584
18585 # An ERE matcher.
18586 EGREP=$lt_EGREP
18587
18588 # The linker used to build libraries.
18589 LD=$lt_LD_RC
18590
18591 # Whether we need hard or soft links.
18592 LN_S=$lt_LN_S
18593
18594 # A BSD-compatible nm program.
18595 NM=$lt_NM
18596
18597 # A symbol stripping program
18598 STRIP=$lt_STRIP
18599
18600 # Used to examine libraries when file_magic_cmd begins "file"
18601 MAGIC_CMD=$MAGIC_CMD
18602
18603 # Used on cygwin: DLL creation program.
18604 DLLTOOL="$DLLTOOL"
18605
18606 # Used on cygwin: object dumper.
18607 OBJDUMP="$OBJDUMP"
18608
18609 # Used on cygwin: assembler.
18610 AS="$AS"
18611
18612 # The name of the directory that contains temporary libtool files.
18613 objdir=$objdir
18614
18615 # How to create reloadable object files.
18616 reload_flag=$lt_reload_flag
18617 reload_cmds=$lt_reload_cmds
18618
18619 # How to pass a linker flag through the compiler.
18620 wl=$lt_lt_prog_compiler_wl_RC
18621
18622 # Object file suffix (normally "o").
18623 objext="$ac_objext"
18624
18625 # Old archive suffix (normally "a").
18626 libext="$libext"
18627
18628 # Shared library suffix (normally ".so").
18629 shrext_cmds='$shrext_cmds'
18630
18631 # Executable file suffix (normally "").
18632 exeext="$exeext"
18633
18634 # Additional compiler flags for building library objects.
18635 pic_flag=$lt_lt_prog_compiler_pic_RC
18636 pic_mode=$pic_mode
18637
18638 # What is the maximum length of a command?
18639 max_cmd_len=$lt_cv_sys_max_cmd_len
18640
18641 # Does compiler simultaneously support -c and -o options?
18642 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18643
18644 # Must we lock files when doing compilation?
18645 need_locks=$lt_need_locks
18646
18647 # Do we need the lib prefix for modules?
18648 need_lib_prefix=$need_lib_prefix
18649
18650 # Do we need a version for libraries?
18651 need_version=$need_version
18652
18653 # Whether dlopen is supported.
18654 dlopen_support=$enable_dlopen
18655
18656 # Whether dlopen of programs is supported.
18657 dlopen_self=$enable_dlopen_self
18658
18659 # Whether dlopen of statically linked programs is supported.
18660 dlopen_self_static=$enable_dlopen_self_static
18661
18662 # Compiler flag to prevent dynamic linking.
18663 link_static_flag=$lt_lt_prog_compiler_static_RC
18664
18665 # Compiler flag to turn off builtin functions.
18666 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18667
18668 # Compiler flag to allow reflexive dlopens.
18669 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18670
18671 # Compiler flag to generate shared objects directly from archives.
18672 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18673
18674 # Compiler flag to generate thread-safe objects.
18675 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18676
18677 # Library versioning type.
18678 version_type=$version_type
18679
18680 # Format of library name prefix.
18681 libname_spec=$lt_libname_spec
18682
18683 # List of archive names. First name is the real one, the rest are links.
18684 # The last name is the one that the linker finds with -lNAME.
18685 library_names_spec=$lt_library_names_spec
18686
18687 # The coded name of the library, if different from the real name.
18688 soname_spec=$lt_soname_spec
18689
18690 # Commands used to build and install an old-style archive.
18691 RANLIB=$lt_RANLIB
18692 old_archive_cmds=$lt_old_archive_cmds_RC
18693 old_postinstall_cmds=$lt_old_postinstall_cmds
18694 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18695
18696 # Create an old-style archive from a shared archive.
18697 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18698
18699 # Create a temporary old-style archive to link instead of a shared archive.
18700 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18701
18702 # Commands used to build and install a shared archive.
18703 archive_cmds=$lt_archive_cmds_RC
18704 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18705 postinstall_cmds=$lt_postinstall_cmds
18706 postuninstall_cmds=$lt_postuninstall_cmds
18707
18708 # Commands used to build a loadable module (assumed same as above if empty)
18709 module_cmds=$lt_module_cmds_RC
18710 module_expsym_cmds=$lt_module_expsym_cmds_RC
18711
18712 # Commands to strip libraries.
18713 old_striplib=$lt_old_striplib
18714 striplib=$lt_striplib
18715
18716 # Dependencies to place before the objects being linked to create a
18717 # shared library.
18718 predep_objects=\`echo $lt_predep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18719
18720 # Dependencies to place after the objects being linked to create a
18721 # shared library.
18722 postdep_objects=\`echo $lt_postdep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18723
18724 # Dependencies to place before the objects being linked to create a
18725 # shared library.
18726 predeps=$lt_predeps_RC
18727
18728 # Dependencies to place after the objects being linked to create a
18729 # shared library.
18730 postdeps=$lt_postdeps_RC
18731
18732 # The library search path used internally by the compiler when linking
18733 # a shared library.
18734 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"\`
18735
18736 # Method to check whether dependent libraries are shared objects.
18737 deplibs_check_method=$lt_deplibs_check_method
18738
18739 # Command to use when deplibs_check_method == file_magic.
18740 file_magic_cmd=$lt_file_magic_cmd
18741
18742 # Flag that allows shared libraries with undefined symbols to be built.
18743 allow_undefined_flag=$lt_allow_undefined_flag_RC
18744
18745 # Flag that forces no undefined symbols.
18746 no_undefined_flag=$lt_no_undefined_flag_RC
18747
18748 # Commands used to finish a libtool library installation in a directory.
18749 finish_cmds=$lt_finish_cmds
18750
18751 # Same as above, but a single script fragment to be evaled but not shown.
18752 finish_eval=$lt_finish_eval
18753
18754 # Take the output of nm and produce a listing of raw symbols and C names.
18755 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18756
18757 # Transform the output of nm in a proper C declaration
18758 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18759
18760 # Transform the output of nm in a C name address pair
18761 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18762
18763 # This is the shared library runtime path variable.
18764 runpath_var=$runpath_var
18765
18766 # This is the shared library path variable.
18767 shlibpath_var=$shlibpath_var
18768
18769 # Is shlibpath searched before the hard-coded library search path?
18770 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18771
18772 # How to hardcode a shared library path into an executable.
18773 hardcode_action=$hardcode_action_RC
18774
18775 # Whether we should hardcode library paths into libraries.
18776 hardcode_into_libs=$hardcode_into_libs
18777
18778 # Flag to hardcode \$libdir into a binary during linking.
18779 # This must work even if \$libdir does not exist.
18780 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18781
18782 # If ld is used when linking, flag to hardcode \$libdir into
18783 # a binary during linking. This must work even if \$libdir does
18784 # not exist.
18785 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18786
18787 # Whether we need a single -rpath flag with a separated argument.
18788 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18789
18790 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18791 # resulting binary.
18792 hardcode_direct=$hardcode_direct_RC
18793
18794 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18795 # resulting binary.
18796 hardcode_minus_L=$hardcode_minus_L_RC
18797
18798 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18799 # the resulting binary.
18800 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18801
18802 # Set to yes if building a shared library automatically hardcodes DIR into the library
18803 # and all subsequent libraries and executables linked against it.
18804 hardcode_automatic=$hardcode_automatic_RC
18805
18806 # Variables whose values should be saved in libtool wrapper scripts and
18807 # restored at relink time.
18808 variables_saved_for_relink="$variables_saved_for_relink"
18809
18810 # Whether libtool must link a program against all its dependency libraries.
18811 link_all_deplibs=$link_all_deplibs_RC
18812
18813 # Compile-time system search path for libraries
18814 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"\`
18815
18816 # Run-time system search path for libraries
18817 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18818
18819 # Fix the shell variable \$srcfile for the compiler.
18820 fix_srcfile_path="$fix_srcfile_path_RC"
18821
18822 # Set to yes if exported symbols are required.
18823 always_export_symbols=$always_export_symbols_RC
18824
18825 # The commands to list exported symbols.
18826 export_symbols_cmds=$lt_export_symbols_cmds_RC
18827
18828 # The commands to extract the exported symbol list from a shared archive.
18829 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18830
18831 # Symbols that should not be listed in the preloaded symbols.
18832 exclude_expsyms=$lt_exclude_expsyms_RC
18833
18834 # Symbols that must always be exported.
18835 include_expsyms=$lt_include_expsyms_RC
18836
18837 # ### END LIBTOOL TAG CONFIG: $tagname
18838
18839 __EOF__
18840
18841
18842 else
18843 # If there is no Makefile yet, we rely on a make rule to execute
18844 # `config.status --recheck' to rerun these tests and create the
18845 # libtool script then.
18846 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18847 if test -f "$ltmain_in"; then
18848 test -f Makefile && make "$ltmain"
18849 fi
18850 fi
18851
18852
18853 ac_ext=c
18854 ac_cpp='$CPP $CPPFLAGS'
18855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18858
18859 CC="$lt_save_CC"
18860
18861 ;;
18862
18863 *)
18864 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18865 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18866 { (exit 1); exit 1; }; }
18867 ;;
18868 esac
18869
18870 # Append the new tag name to the list of available tags.
18871 if test -n "$tagname" ; then
18872 available_tags="$available_tags $tagname"
18873 fi
18874 fi
18875 done
18876 IFS="$lt_save_ifs"
18877
18878 # Now substitute the updated list of available tags.
18879 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18880 mv "${ofile}T" "$ofile"
18881 chmod +x "$ofile"
18882 else
18883 rm -f "${ofile}T"
18884 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18885 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18886 { (exit 1); exit 1; }; }
18887 fi
18888 fi
18889
18890
18891
18892 # This can be used to rebuild libtool when needed
18893 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18894
18895 # Always use our own libtool.
18896 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18897
18898 # Prevent multiple expansion
18899
18900
18901
18902
18903
18904
18905
18906
18907
18908
18909
18910
18911
18912
18913
18914
18915
18916
18917
18918
18919
18920 LINUX=
18921 LINUX_OBJ=
18922
18923
18924 ver=`uname -r`
18925
18926
18927 # Check whether --with-linux or --without-linux was given.
18928 if test "${with_linux+set}" = set; then
18929 withval="$with_linux"
18930 kernelsrc="$withval"; kernelbuild="$withval"
18931 fi;
18932
18933
18934 # Check whether --with-linux-obj or --without-linux-obj was given.
18935 if test "${with_linux_obj+set}" = set; then
18936 withval="$with_linux_obj"
18937 kernelbuild="$withval"
18938 fi;
18939
18940 echo "$as_me:$LINENO: checking kernel source directory" >&5
18941 echo $ECHO_N "checking kernel source directory... $ECHO_C" >&6
18942 if test -z "$kernelsrc"; then
18943 kernelbuild=
18944 sourcelink=/lib/modules/${ver}/source
18945 buildlink=/lib/modules/${ver}/build
18946
18947 if test -e $sourcelink; then
18948 kernelsrc=`(cd $sourcelink; /bin/pwd)`
18949 fi
18950 if test -e $buildlink; then
18951 kernelbuild=`(cd $buildlink; /bin/pwd)`
18952 fi
18953 if test -z "$kernelsrc"; then
18954 kernelsrc=$kernelbuild
18955 fi
18956 if test -z "$kernelsrc" -o -z "$kernelbuild"; then
18957 echo "$as_me:$LINENO: result: Not found" >&5
18958 echo "${ECHO_T}Not found" >&6
18959 { { echo "$as_me:$LINENO: error:
18960 *** Please specify the location of the kernel source
18961 *** with the '--with-linux=PATH' option" >&5
18962 echo "$as_me: error:
18963 *** Please specify the location of the kernel source
18964 *** with the '--with-linux=PATH' option" >&2;}
18965 { (exit 1); exit 1; }; }
18966 fi
18967 fi
18968
18969 echo "$as_me:$LINENO: result: $kernelsrc" >&5
18970 echo "${ECHO_T}$kernelsrc" >&6
18971 echo "$as_me:$LINENO: checking kernel build directory" >&5
18972 echo $ECHO_N "checking kernel build directory... $ECHO_C" >&6
18973 echo "$as_me:$LINENO: result: $kernelbuild" >&5
18974 echo "${ECHO_T}$kernelbuild" >&6
18975
18976 echo "$as_me:$LINENO: checking kernel source version" >&5
18977 echo $ECHO_N "checking kernel source version... $ECHO_C" >&6
18978 if test -r $kernelbuild/include/linux/version.h &&
18979 fgrep -q UTS_RELEASE $kernelbuild/include/linux/version.h; then
18980
18981 kernsrcver=`(echo "#include <linux/version.h>";
18982 echo "kernsrcver=UTS_RELEASE") |
18983 cpp -I $kernelbuild/include |
18984 grep "^kernsrcver=" | cut -d \" -f 2`
18985
18986 elif test -r $kernelbuild/include/linux/utsrelease.h &&
18987 fgrep -q UTS_RELEASE $kernelbuild/include/linux/utsrelease.h; then
18988
18989 kernsrcver=`(echo "#include <linux/utsrelease.h>";
18990 echo "kernsrcver=UTS_RELEASE") |
18991 cpp -I $kernelbuild/include |
18992 grep "^kernsrcver=" | cut -d \" -f 2`
18993 fi
18994
18995 if test -z "$kernsrcver"; then
18996 echo "$as_me:$LINENO: result: Not found" >&5
18997 echo "${ECHO_T}Not found" >&6
18998 { { echo "$as_me:$LINENO: error:
18999 *** Cannot determine the version of the linux kernel source.
19000 *** Please prepare the kernel before running this script" >&5
19001 echo "$as_me: error:
19002 *** Cannot determine the version of the linux kernel source.
19003 *** Please prepare the kernel before running this script" >&2;}
19004 { (exit 1); exit 1; }; }
19005 fi
19006
19007 echo "$as_me:$LINENO: result: $kernsrcver" >&5
19008 echo "${ECHO_T}$kernsrcver" >&6
19009
19010 kmoduledir=${INSTALL_MOD_PATH}/lib/modules/$kernsrcver
19011 LINUX=${kernelsrc}
19012 LINUX_OBJ=${kernelbuild}
19013
19014
19015
19016
19017
19018
19019 echo "$as_me:$LINENO: checking license" >&5
19020 echo $ECHO_N "checking license... $ECHO_C" >&6
19021 echo "$as_me:$LINENO: result: GPL" >&5
19022 echo "${ECHO_T}GPL" >&6
19023 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DHAVE_GPL_ONLY_SYMBOLS"
19024
19025
19026 echo "$as_me:$LINENO: checking whether debugging is enabled" >&5
19027 echo $ECHO_N "checking whether debugging is enabled... $ECHO_C" >&6
19028 # Check whether --enable-debug or --disable-debug was given.
19029 if test "${enable_debug+set}" = set; then
19030 enableval="$enable_debug"
19031 case "$enableval" in
19032 yes) spl_ac_debug=yes ;;
19033 no) spl_ac_debug=no ;;
19034 *) echo "$as_me:$LINENO: result: Error!" >&5
19035 echo "${ECHO_T}Error!" >&6
19036 { { echo "$as_me:$LINENO: error: Bad value \"$enableval\" for --enable-debug" >&5
19037 echo "$as_me: error: Bad value \"$enableval\" for --enable-debug" >&2;}
19038 { (exit 1); exit 1; }; } ;;
19039 esac
19040
19041 fi;
19042 if test "$spl_ac_debug" = yes; then
19043 echo "$as_me:$LINENO: result: yes" >&5
19044 echo "${ECHO_T}yes" >&6
19045 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG"
19046 else
19047 echo "$as_me:$LINENO: result: no" >&5
19048 echo "${ECHO_T}no" >&6
19049 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG"
19050 fi
19051
19052
19053 echo "$as_me:$LINENO: checking whether kmem debugging is enabled" >&5
19054 echo $ECHO_N "checking whether kmem debugging is enabled... $ECHO_C" >&6
19055 # Check whether --enable-debug-kmem or --disable-debug-kmem was given.
19056 if test "${enable_debug_kmem+set}" = set; then
19057 enableval="$enable_debug_kmem"
19058 case "$enableval" in
19059 yes) spl_ac_debug_kmem=yes ;;
19060 no) spl_ac_debug_kmem=no ;;
19061 *) echo "$as_me:$LINENO: result: Error!" >&5
19062 echo "${ECHO_T}Error!" >&6
19063 { { echo "$as_me:$LINENO: error: Bad value \"$enableval\" for --enable-debug-kmem" >&5
19064 echo "$as_me: error: Bad value \"$enableval\" for --enable-debug-kmem" >&2;}
19065 { (exit 1); exit 1; }; } ;;
19066 esac
19067
19068 fi;
19069 if test "$spl_ac_debug_kmem" = yes; then
19070 echo "$as_me:$LINENO: result: yes" >&5
19071 echo "${ECHO_T}yes" >&6
19072
19073 cat >>confdefs.h <<\_ACEOF
19074 #define DEBUG_KMEM 1
19075 _ACEOF
19076
19077 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM"
19078 else
19079 echo "$as_me:$LINENO: result: no" >&5
19080 echo "${ECHO_T}no" >&6
19081 fi
19082
19083
19084 echo "$as_me:$LINENO: checking whether mutex debugging is enabled" >&5
19085 echo $ECHO_N "checking whether mutex debugging is enabled... $ECHO_C" >&6
19086 # Check whether --enable-debug-mutex or --disable-debug-mutex was given.
19087 if test "${enable_debug_mutex+set}" = set; then
19088 enableval="$enable_debug_mutex"
19089 case "$enableval" in
19090 yes) spl_ac_debug_mutex=yes ;;
19091 no) spl_ac_debug_mutex=no ;;
19092 *) echo "$as_me:$LINENO: result: Error!" >&5
19093 echo "${ECHO_T}Error!" >&6
19094 { { echo "$as_me:$LINENO: error: Bad value \"$enableval\" for --enable-debug-mutex" >&5
19095 echo "$as_me: error: Bad value \"$enableval\" for --enable-debug-mutex" >&2;}
19096 { (exit 1); exit 1; }; } ;;
19097 esac
19098
19099 fi;
19100 if test "$spl_ac_debug_mutex" = yes; then
19101 echo "$as_me:$LINENO: result: yes" >&5
19102 echo "${ECHO_T}yes" >&6
19103
19104 cat >>confdefs.h <<\_ACEOF
19105 #define DEBUG_MUTEX 1
19106 _ACEOF
19107
19108 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_MUTEX"
19109 else
19110 echo "$as_me:$LINENO: result: no" >&5
19111 echo "${ECHO_T}no" >&6
19112 fi
19113
19114
19115 echo "$as_me:$LINENO: checking whether kstat debugging is enabled" >&5
19116 echo $ECHO_N "checking whether kstat debugging is enabled... $ECHO_C" >&6
19117 # Check whether --enable-debug-kstat or --disable-debug-kstat was given.
19118 if test "${enable_debug_kstat+set}" = set; then
19119 enableval="$enable_debug_kstat"
19120 case "$enableval" in
19121 yes) spl_ac_debug_kstat=yes ;;
19122 no) spl_ac_debug_kstat=no ;;
19123 *) echo "$as_me:$LINENO: result: Error!" >&5
19124 echo "${ECHO_T}Error!" >&6
19125 { { echo "$as_me:$LINENO: error: Bad value \"$enableval\" for --enable-debug-kstat" >&5
19126 echo "$as_me: error: Bad value \"$enableval\" for --enable-debug-kstat" >&2;}
19127 { (exit 1); exit 1; }; } ;;
19128 esac
19129
19130 fi;
19131 if test "$spl_ac_debug_kstat" = yes; then
19132 echo "$as_me:$LINENO: result: yes" >&5
19133 echo "${ECHO_T}yes" >&6
19134
19135 cat >>confdefs.h <<\_ACEOF
19136 #define DEBUG_KSTAT 1
19137 _ACEOF
19138
19139 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KSTAT"
19140 else
19141 echo "$as_me:$LINENO: result: no" >&5
19142 echo "${ECHO_T}no" >&6
19143 fi
19144
19145
19146 echo "$as_me:$LINENO: checking whether callb debugging is enabled" >&5
19147 echo $ECHO_N "checking whether callb debugging is enabled... $ECHO_C" >&6
19148 # Check whether --enable-debug-callb or --disable-debug-callb was given.
19149 if test "${enable_debug_callb+set}" = set; then
19150 enableval="$enable_debug_callb"
19151 case "$enableval" in
19152 yes) spl_ac_debug_callb=yes ;;
19153 no) spl_ac_debug_callb=no ;;
19154 *) echo "$as_me:$LINENO: result: Error!" >&5
19155 echo "${ECHO_T}Error!" >&6
19156 { { echo "$as_me:$LINENO: error: Bad value \"$enableval\" for --enable-debug-callb" >&5
19157 echo "$as_me: error: Bad value \"$enableval\" for --enable-debug-callb" >&2;}
19158 { (exit 1); exit 1; }; } ;;
19159 esac
19160
19161 fi;
19162 if test "$spl_ac_debug_callb" = yes; then
19163 echo "$as_me:$LINENO: result: yes" >&5
19164 echo "${ECHO_T}yes" >&6
19165
19166 cat >>confdefs.h <<\_ACEOF
19167 #define DEBUG_CALLB 1
19168 _ACEOF
19169
19170 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_CALLB"
19171 else
19172 echo "$as_me:$LINENO: result: no" >&5
19173 echo "${ECHO_T}no" >&6
19174 fi
19175
19176 echo "$as_me:$LINENO: checking whether kernel defines uintptr_t" >&5
19177 echo $ECHO_N "checking whether kernel defines uintptr_t... $ECHO_C" >&6
19178
19179
19180 cat >conftest.c <<_ACEOF
19181 /* confdefs.h. */
19182 _ACEOF
19183 cat confdefs.h >>conftest.$ac_ext
19184 cat >>conftest.$ac_ext <<_ACEOF
19185 /* end confdefs.h. */
19186
19187
19188 #include <linux/types.h>
19189
19190 int
19191 main (void)
19192 {
19193
19194 uintptr_t *ptr;
19195
19196 ;
19197 return 0;
19198 }
19199
19200 _ACEOF
19201
19202 rm -f build/conftest.o build/conftest.mod.c build/conftest.ko build/Makefile
19203 echo "obj-m := conftest.o" >build/Makefile
19204 if { ac_try='cp conftest.c build && make modules CC="$CC" 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'
19205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19206 (eval $ac_try) 2>&5
19207 ac_status=$?
19208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19209 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19211 (eval $ac_try) 2>&5
19212 ac_status=$?
19213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19214 (exit $ac_status); }; }; then
19215
19216 echo "$as_me:$LINENO: result: yes" >&5
19217 echo "${ECHO_T}yes" >&6
19218
19219 cat >>confdefs.h <<\_ACEOF
19220 #define HAVE_UINTPTR_T 1
19221 _ACEOF
19222
19223
19224 else
19225 echo "$as_me: failed program was:" >&5
19226 sed 's/^/| /' conftest.$ac_ext >&5
19227
19228
19229 echo "$as_me:$LINENO: result: no" >&5
19230 echo "${ECHO_T}no" >&6
19231
19232 fi
19233 rm -f build/conftest.o build/conftest.mod.c build/conftest.mod.o build/conftest.ko build/conftest.c conftest.c
19234
19235
19236 echo "$as_me:$LINENO: checking whether kernel defines atomic64_t" >&5
19237 echo $ECHO_N "checking whether kernel defines atomic64_t... $ECHO_C" >&6
19238
19239
19240 cat >conftest.c <<_ACEOF
19241 /* confdefs.h. */
19242 _ACEOF
19243 cat confdefs.h >>conftest.$ac_ext
19244 cat >>conftest.$ac_ext <<_ACEOF
19245 /* end confdefs.h. */
19246
19247
19248 #include <asm/atomic.h>
19249
19250 int
19251 main (void)
19252 {
19253
19254 atomic64_t *ptr;
19255
19256 ;
19257 return 0;
19258 }
19259
19260 _ACEOF
19261
19262 rm -f build/conftest.o build/conftest.mod.c build/conftest.ko build/Makefile
19263 echo "obj-m := conftest.o" >build/Makefile
19264 if { ac_try='cp conftest.c build && make modules CC="$CC" 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'
19265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19266 (eval $ac_try) 2>&5
19267 ac_status=$?
19268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19269 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19271 (eval $ac_try) 2>&5
19272 ac_status=$?
19273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19274 (exit $ac_status); }; }; then
19275
19276 echo "$as_me:$LINENO: result: yes" >&5
19277 echo "${ECHO_T}yes" >&6
19278
19279 cat >>confdefs.h <<\_ACEOF
19280 #define HAVE_ATOMIC64_T 1
19281 _ACEOF
19282
19283
19284 else
19285 echo "$as_me: failed program was:" >&5
19286 sed 's/^/| /' conftest.$ac_ext >&5
19287
19288
19289 echo "$as_me:$LINENO: result: no" >&5
19290 echo "${ECHO_T}no" >&6
19291
19292 fi
19293 rm -f build/conftest.o build/conftest.mod.c build/conftest.mod.o build/conftest.ko build/conftest.c conftest.c
19294
19295
19296 echo "$as_me:$LINENO: checking whether INIT_WORK wants 3 args" >&5
19297 echo $ECHO_N "checking whether INIT_WORK wants 3 args... $ECHO_C" >&6
19298
19299
19300 cat >conftest.c <<_ACEOF
19301 /* confdefs.h. */
19302 _ACEOF
19303 cat confdefs.h >>conftest.$ac_ext
19304 cat >>conftest.$ac_ext <<_ACEOF
19305 /* end confdefs.h. */
19306
19307
19308 #include <linux/workqueue.h>
19309
19310 int
19311 main (void)
19312 {
19313
19314 struct work_struct work;
19315 INIT_WORK(&work, NULL, NULL);
19316
19317 ;
19318 return 0;
19319 }
19320
19321 _ACEOF
19322
19323 rm -f build/conftest.o build/conftest.mod.c build/conftest.ko build/Makefile
19324 echo "obj-m := conftest.o" >build/Makefile
19325 if { ac_try='cp conftest.c build && make modules CC="$CC" 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'
19326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19327 (eval $ac_try) 2>&5
19328 ac_status=$?
19329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19330 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19332 (eval $ac_try) 2>&5
19333 ac_status=$?
19334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19335 (exit $ac_status); }; }; then
19336
19337 echo "$as_me:$LINENO: result: yes" >&5
19338 echo "${ECHO_T}yes" >&6
19339
19340 cat >>confdefs.h <<\_ACEOF
19341 #define HAVE_3ARGS_INIT_WORK 1
19342 _ACEOF
19343
19344
19345 else
19346 echo "$as_me: failed program was:" >&5
19347 sed 's/^/| /' conftest.$ac_ext >&5
19348
19349
19350 echo "$as_me:$LINENO: result: no" >&5
19351 echo "${ECHO_T}no" >&6
19352
19353 fi
19354 rm -f build/conftest.o build/conftest.mod.c build/conftest.mod.o build/conftest.ko build/conftest.c conftest.c
19355
19356
19357 echo "$as_me:$LINENO: checking whether register_sysctl_table() wants 2 args" >&5
19358 echo $ECHO_N "checking whether register_sysctl_table() wants 2 args... $ECHO_C" >&6
19359
19360
19361 cat >conftest.c <<_ACEOF
19362 /* confdefs.h. */
19363 _ACEOF
19364 cat confdefs.h >>conftest.$ac_ext
19365 cat >>conftest.$ac_ext <<_ACEOF
19366 /* end confdefs.h. */
19367
19368
19369 #include <linux/sysctl.h>
19370
19371 int
19372 main (void)
19373 {
19374
19375 return register_sysctl_table(NULL,0);
19376
19377 ;
19378 return 0;
19379 }
19380
19381 _ACEOF
19382
19383 rm -f build/conftest.o build/conftest.mod.c build/conftest.ko build/Makefile
19384 echo "obj-m := conftest.o" >build/Makefile
19385 if { ac_try='cp conftest.c build && make modules CC="$CC" 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'
19386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19387 (eval $ac_try) 2>&5
19388 ac_status=$?
19389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19390 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19392 (eval $ac_try) 2>&5
19393 ac_status=$?
19394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19395 (exit $ac_status); }; }; then
19396
19397 echo "$as_me:$LINENO: result: yes" >&5
19398 echo "${ECHO_T}yes" >&6
19399
19400 cat >>confdefs.h <<\_ACEOF
19401 #define HAVE_2ARGS_REGISTER_SYSCTL 1
19402 _ACEOF
19403
19404
19405 else
19406 echo "$as_me: failed program was:" >&5
19407 sed 's/^/| /' conftest.$ac_ext >&5
19408
19409
19410 echo "$as_me:$LINENO: result: no" >&5
19411 echo "${ECHO_T}no" >&6
19412
19413 fi
19414 rm -f build/conftest.o build/conftest.mod.c build/conftest.mod.o build/conftest.ko build/conftest.c conftest.c
19415
19416
19417
19418 echo "$as_me:$LINENO: checking whether set_shrinker() available" >&5
19419 echo $ECHO_N "checking whether set_shrinker() available... $ECHO_C" >&6
19420
19421
19422 cat >conftest.c <<_ACEOF
19423 /* confdefs.h. */
19424 _ACEOF
19425 cat confdefs.h >>conftest.$ac_ext
19426 cat >>conftest.$ac_ext <<_ACEOF
19427 /* end confdefs.h. */
19428
19429
19430 #include <linux/mm.h>
19431
19432 int
19433 main (void)
19434 {
19435
19436 return set_shrinker(DEFAULT_SEEKS, NULL);
19437
19438 ;
19439 return 0;
19440 }
19441
19442 _ACEOF
19443
19444 rm -f build/conftest.o build/conftest.mod.c build/conftest.ko build/Makefile
19445 echo "obj-m := conftest.o" >build/Makefile
19446 if { ac_try='cp conftest.c build && make modules CC="$CC" 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'
19447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19448 (eval $ac_try) 2>&5
19449 ac_status=$?
19450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19451 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19453 (eval $ac_try) 2>&5
19454 ac_status=$?
19455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19456 (exit $ac_status); }; }; then
19457
19458 echo "$as_me:$LINENO: result: yes" >&5
19459 echo "${ECHO_T}yes" >&6
19460
19461 cat >>confdefs.h <<\_ACEOF
19462 #define HAVE_SET_SHRINKER 1
19463 _ACEOF
19464
19465
19466 else
19467 echo "$as_me: failed program was:" >&5
19468 sed 's/^/| /' conftest.$ac_ext >&5
19469
19470
19471 echo "$as_me:$LINENO: result: no" >&5
19472 echo "${ECHO_T}no" >&6
19473
19474 fi
19475 rm -f build/conftest.o build/conftest.mod.c build/conftest.mod.o build/conftest.ko build/conftest.c conftest.c
19476
19477
19478 echo "$as_me:$LINENO: checking whether struct path used in struct nameidata" >&5
19479 echo $ECHO_N "checking whether struct path used in struct nameidata... $ECHO_C" >&6
19480
19481
19482 cat >conftest.c <<_ACEOF
19483 /* confdefs.h. */
19484 _ACEOF
19485 cat confdefs.h >>conftest.$ac_ext
19486 cat >>conftest.$ac_ext <<_ACEOF
19487 /* end confdefs.h. */
19488
19489
19490 #include <linux/namei.h>
19491
19492 int
19493 main (void)
19494 {
19495
19496 struct nameidata nd;
19497
19498 nd.path.mnt = NULL;
19499 nd.path.dentry = NULL;
19500
19501 ;
19502 return 0;
19503 }
19504
19505 _ACEOF
19506
19507 rm -f build/conftest.o build/conftest.mod.c build/conftest.ko build/Makefile
19508 echo "obj-m := conftest.o" >build/Makefile
19509 if { ac_try='cp conftest.c build && make modules CC="$CC" 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'
19510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19511 (eval $ac_try) 2>&5
19512 ac_status=$?
19513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19514 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19516 (eval $ac_try) 2>&5
19517 ac_status=$?
19518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19519 (exit $ac_status); }; }; then
19520
19521 echo "$as_me:$LINENO: result: yes" >&5
19522 echo "${ECHO_T}yes" >&6
19523
19524 cat >>confdefs.h <<\_ACEOF
19525 #define HAVE_PATH_IN_NAMEIDATA 1
19526 _ACEOF
19527
19528
19529 else
19530 echo "$as_me: failed program was:" >&5
19531 sed 's/^/| /' conftest.$ac_ext >&5
19532
19533
19534 echo "$as_me:$LINENO: result: no" >&5
19535 echo "${ECHO_T}no" >&6
19536
19537 fi
19538 rm -f build/conftest.o build/conftest.mod.c build/conftest.mod.o build/conftest.ko build/conftest.c conftest.c
19539
19540
19541
19542 echo "$as_me:$LINENO: checking whether symbol task_curr is exported" >&5
19543 echo $ECHO_N "checking whether symbol task_curr is exported... $ECHO_C" >&6
19544 grep -q -E '[[:space:]]task_curr[[:space:]]' $LINUX_OBJ/Module.symvers 2>/dev/null
19545 rc=$?
19546 if test $rc -ne 0; then
19547 export=0
19548 for file in kernel/sched.c; do
19549 grep -q -E "EXPORT_SYMBOL.*(task_curr)" "$LINUX_OBJ/$file" 2>/dev/null
19550 rc=$?
19551 if test $rc -eq 0; then
19552 export=1
19553 break;
19554 fi
19555 done
19556 if test $export -eq 0; then
19557 echo "$as_me:$LINENO: result: no" >&5
19558 echo "${ECHO_T}no" >&6
19559
19560 else
19561 echo "$as_me:$LINENO: result: yes" >&5
19562 echo "${ECHO_T}yes" >&6
19563
19564 cat >>confdefs.h <<\_ACEOF
19565 #define HAVE_TASK_CURR 1
19566 _ACEOF
19567
19568 fi
19569 else
19570 echo "$as_me:$LINENO: result: yes" >&5
19571 echo "${ECHO_T}yes" >&6
19572
19573 cat >>confdefs.h <<\_ACEOF
19574 #define HAVE_TASK_CURR 1
19575 _ACEOF
19576
19577 fi
19578
19579
19580 echo "$as_me:$LINENO: checking whether unnumbered sysctl support exists" >&5
19581 echo $ECHO_N "checking whether unnumbered sysctl support exists... $ECHO_C" >&6
19582
19583
19584 cat >conftest.c <<_ACEOF
19585 /* confdefs.h. */
19586 _ACEOF
19587 cat confdefs.h >>conftest.$ac_ext
19588 cat >>conftest.$ac_ext <<_ACEOF
19589 /* end confdefs.h. */
19590
19591
19592 #include <linux/sysctl.h>
19593
19594 int
19595 main (void)
19596 {
19597
19598 #ifndef CTL_UNNUMBERED
19599 #error CTL_UNNUMBERED undefined
19600 #endif
19601
19602 ;
19603 return 0;
19604 }
19605
19606 _ACEOF
19607
19608 rm -f build/conftest.o build/conftest.mod.c build/conftest.ko build/Makefile
19609 echo "obj-m := conftest.o" >build/Makefile
19610 if { ac_try='cp conftest.c build && make modules CC="$CC" 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'
19611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19612 (eval $ac_try) 2>&5
19613 ac_status=$?
19614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19615 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19617 (eval $ac_try) 2>&5
19618 ac_status=$?
19619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19620 (exit $ac_status); }; }; then
19621
19622 echo "$as_me:$LINENO: result: yes" >&5
19623 echo "${ECHO_T}yes" >&6
19624
19625 cat >>confdefs.h <<\_ACEOF
19626 #define HAVE_CTL_UNNUMBERED 1
19627 _ACEOF
19628
19629
19630 else
19631 echo "$as_me: failed program was:" >&5
19632 sed 's/^/| /' conftest.$ac_ext >&5
19633
19634
19635 echo "$as_me:$LINENO: result: no" >&5
19636 echo "${ECHO_T}no" >&6
19637
19638 fi
19639 rm -f build/conftest.o build/conftest.mod.c build/conftest.mod.o build/conftest.ko build/conftest.c conftest.c
19640
19641
19642 echo "$as_me:$LINENO: checking whether fls64() is available" >&5
19643 echo $ECHO_N "checking whether fls64() is available... $ECHO_C" >&6
19644
19645
19646 cat >conftest.c <<_ACEOF
19647 /* confdefs.h. */
19648 _ACEOF
19649 cat confdefs.h >>conftest.$ac_ext
19650 cat >>conftest.$ac_ext <<_ACEOF
19651 /* end confdefs.h. */
19652
19653
19654 #include <linux/bitops.h>
19655
19656 int
19657 main (void)
19658 {
19659
19660 return fls64(0);
19661
19662 ;
19663 return 0;
19664 }
19665
19666 _ACEOF
19667
19668 rm -f build/conftest.o build/conftest.mod.c build/conftest.ko build/Makefile
19669 echo "obj-m := conftest.o" >build/Makefile
19670 if { ac_try='cp conftest.c build && make modules CC="$CC" 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'
19671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19672 (eval $ac_try) 2>&5
19673 ac_status=$?
19674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19675 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19677 (eval $ac_try) 2>&5
19678 ac_status=$?
19679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19680 (exit $ac_status); }; }; then
19681
19682 echo "$as_me:$LINENO: result: yes" >&5
19683 echo "${ECHO_T}yes" >&6
19684
19685 cat >>confdefs.h <<\_ACEOF
19686 #define HAVE_FLS64 1
19687 _ACEOF
19688
19689
19690 else
19691 echo "$as_me: failed program was:" >&5
19692 sed 's/^/| /' conftest.$ac_ext >&5
19693
19694
19695 echo "$as_me:$LINENO: result: no" >&5
19696 echo "${ECHO_T}no" >&6
19697
19698 fi
19699 rm -f build/conftest.o build/conftest.mod.c build/conftest.mod.o build/conftest.ko build/conftest.c conftest.c
19700
19701
19702
19703 echo "$as_me:$LINENO: checking whether symbol device_create is exported" >&5
19704 echo $ECHO_N "checking whether symbol device_create is exported... $ECHO_C" >&6
19705 grep -q -E '[[:space:]]device_create[[:space:]]' $LINUX_OBJ/Module.symvers 2>/dev/null
19706 rc=$?
19707 if test $rc -ne 0; then
19708 export=0
19709 for file in drivers/base/core.c; do
19710 grep -q -E "EXPORT_SYMBOL.*(device_create)" "$LINUX_OBJ/$file" 2>/dev/null
19711 rc=$?
19712 if test $rc -eq 0; then
19713 export=1
19714 break;
19715 fi
19716 done
19717 if test $export -eq 0; then
19718 echo "$as_me:$LINENO: result: no" >&5
19719 echo "${ECHO_T}no" >&6
19720
19721 else
19722 echo "$as_me:$LINENO: result: yes" >&5
19723 echo "${ECHO_T}yes" >&6
19724
19725 cat >>confdefs.h <<\_ACEOF
19726 #define HAVE_DEVICE_CREATE 1
19727 _ACEOF
19728
19729 fi
19730 else
19731 echo "$as_me:$LINENO: result: yes" >&5
19732 echo "${ECHO_T}yes" >&6
19733
19734 cat >>confdefs.h <<\_ACEOF
19735 #define HAVE_DEVICE_CREATE 1
19736 _ACEOF
19737
19738 fi
19739
19740
19741
19742 echo "$as_me:$LINENO: checking whether symbol class_device_create is exported" >&5
19743 echo $ECHO_N "checking whether symbol class_device_create is exported... $ECHO_C" >&6
19744 grep -q -E '[[:space:]]class_device_create[[:space:]]' $LINUX_OBJ/Module.symvers 2>/dev/null
19745 rc=$?
19746 if test $rc -ne 0; then
19747 export=0
19748 for file in drivers/base/class.c; do
19749 grep -q -E "EXPORT_SYMBOL.*(class_device_create)" "$LINUX_OBJ/$file" 2>/dev/null
19750 rc=$?
19751 if test $rc -eq 0; then
19752 export=1
19753 break;
19754 fi
19755 done
19756 if test $export -eq 0; then
19757 echo "$as_me:$LINENO: result: no" >&5
19758 echo "${ECHO_T}no" >&6
19759
19760 else
19761 echo "$as_me:$LINENO: result: yes" >&5
19762 echo "${ECHO_T}yes" >&6
19763
19764 cat >>confdefs.h <<\_ACEOF
19765 #define HAVE_CLASS_DEVICE_CREATE 1
19766 _ACEOF
19767
19768 fi
19769 else
19770 echo "$as_me:$LINENO: result: yes" >&5
19771 echo "${ECHO_T}yes" >&6
19772
19773 cat >>confdefs.h <<\_ACEOF
19774 #define HAVE_CLASS_DEVICE_CREATE 1
19775 _ACEOF
19776
19777 fi
19778
19779
19780
19781 echo "$as_me:$LINENO: checking whether symbol set_normalized_timespec is exported" >&5
19782 echo $ECHO_N "checking whether symbol set_normalized_timespec is exported... $ECHO_C" >&6
19783 grep -q -E '[[:space:]]set_normalized_timespec[[:space:]]' $LINUX_OBJ/Module.symvers 2>/dev/null
19784 rc=$?
19785 if test $rc -ne 0; then
19786 export=0
19787 for file in kernel/time.c; do
19788 grep -q -E "EXPORT_SYMBOL.*(set_normalized_timespec)" "$LINUX_OBJ/$file" 2>/dev/null
19789 rc=$?
19790 if test $rc -eq 0; then
19791 export=1
19792 break;
19793 fi
19794 done
19795 if test $export -eq 0; then
19796 echo "$as_me:$LINENO: result: no" >&5
19797 echo "${ECHO_T}no" >&6
19798
19799 else
19800 echo "$as_me:$LINENO: result: yes" >&5
19801 echo "${ECHO_T}yes" >&6
19802
19803 cat >>confdefs.h <<\_ACEOF
19804 #define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1
19805 _ACEOF
19806
19807 fi
19808 else
19809 echo "$as_me:$LINENO: result: yes" >&5
19810 echo "${ECHO_T}yes" >&6
19811
19812 cat >>confdefs.h <<\_ACEOF
19813 #define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1
19814 _ACEOF
19815
19816 fi
19817
19818
19819
19820 echo "$as_me:$LINENO: checking whether set_normalized_timespec() is an inline" >&5
19821 echo $ECHO_N "checking whether set_normalized_timespec() is an inline... $ECHO_C" >&6
19822
19823
19824 cat >conftest.c <<_ACEOF
19825 /* confdefs.h. */
19826 _ACEOF
19827 cat confdefs.h >>conftest.$ac_ext
19828 cat >>conftest.$ac_ext <<_ACEOF
19829 /* end confdefs.h. */
19830
19831
19832 #include <linux/time.h>
19833 void set_normalized_timespec(struct timespec *ts,
19834 time_t sec, long nsec) { }
19835
19836 int
19837 main (void)
19838 {
19839
19840 ;
19841 return 0;
19842 }
19843
19844 _ACEOF
19845
19846 rm -f build/conftest.o build/conftest.mod.c build/conftest.ko build/Makefile
19847 echo "obj-m := conftest.o" >build/Makefile
19848 if { ac_try='cp conftest.c build && make modules CC="$CC" 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'
19849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19850 (eval $ac_try) 2>&5
19851 ac_status=$?
19852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19853 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19855 (eval $ac_try) 2>&5
19856 ac_status=$?
19857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19858 (exit $ac_status); }; }; then
19859
19860 echo "$as_me:$LINENO: result: no" >&5
19861 echo "${ECHO_T}no" >&6
19862
19863 else
19864 echo "$as_me: failed program was:" >&5
19865 sed 's/^/| /' conftest.$ac_ext >&5
19866
19867
19868 echo "$as_me:$LINENO: result: yes" >&5
19869 echo "${ECHO_T}yes" >&6
19870
19871 cat >>confdefs.h <<\_ACEOF
19872 #define HAVE_SET_NORMALIZED_TIMESPEC_INLINE 1
19873 _ACEOF
19874
19875
19876 fi
19877 rm -f build/conftest.o build/conftest.mod.c build/conftest.mod.o build/conftest.ko build/conftest.c conftest.c
19878
19879
19880
19881 echo "$as_me:$LINENO: checking whether timespec_sub() is available" >&5
19882 echo $ECHO_N "checking whether timespec_sub() is available... $ECHO_C" >&6
19883
19884
19885 cat >conftest.c <<_ACEOF
19886 /* confdefs.h. */
19887 _ACEOF
19888 cat confdefs.h >>conftest.$ac_ext
19889 cat >>conftest.$ac_ext <<_ACEOF
19890 /* end confdefs.h. */
19891
19892
19893 #include <linux/time.h>
19894
19895 int
19896 main (void)
19897 {
19898
19899 struct timespec a, b, c = { 0 };
19900 c = timespec_sub(a, b);
19901
19902 ;
19903 return 0;
19904 }
19905
19906 _ACEOF
19907
19908 rm -f build/conftest.o build/conftest.mod.c build/conftest.ko build/Makefile
19909 echo "obj-m := conftest.o" >build/Makefile
19910 if { ac_try='cp conftest.c build && make modules CC="$CC" 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'
19911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19912 (eval $ac_try) 2>&5
19913 ac_status=$?
19914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19915 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19917 (eval $ac_try) 2>&5
19918 ac_status=$?
19919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19920 (exit $ac_status); }; }; then
19921
19922 echo "$as_me:$LINENO: result: yes" >&5
19923 echo "${ECHO_T}yes" >&6
19924
19925 cat >>confdefs.h <<\_ACEOF
19926 #define HAVE_TIMESPEC_SUB 1
19927 _ACEOF
19928
19929
19930 else
19931 echo "$as_me: failed program was:" >&5
19932 sed 's/^/| /' conftest.$ac_ext >&5
19933
19934
19935 echo "$as_me:$LINENO: result: no" >&5
19936 echo "${ECHO_T}no" >&6
19937
19938 fi
19939 rm -f build/conftest.o build/conftest.mod.c build/conftest.mod.o build/conftest.ko build/conftest.c conftest.c
19940
19941
19942
19943 echo "$as_me:$LINENO: checking whether init_utsname() is available" >&5
19944 echo $ECHO_N "checking whether init_utsname() is available... $ECHO_C" >&6
19945
19946
19947 cat >conftest.c <<_ACEOF
19948 /* confdefs.h. */
19949 _ACEOF
19950 cat confdefs.h >>conftest.$ac_ext
19951 cat >>conftest.$ac_ext <<_ACEOF
19952 /* end confdefs.h. */
19953
19954
19955 #include <linux/utsname.h>
19956
19957 int
19958 main (void)
19959 {
19960
19961 struct new_utsname *a = init_utsname();
19962
19963 ;
19964 return 0;
19965 }
19966
19967 _ACEOF
19968
19969 rm -f build/conftest.o build/conftest.mod.c build/conftest.ko build/Makefile
19970 echo "obj-m := conftest.o" >build/Makefile
19971 if { ac_try='cp conftest.c build && make modules CC="$CC" 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'
19972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19973 (eval $ac_try) 2>&5
19974 ac_status=$?
19975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19976 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19978 (eval $ac_try) 2>&5
19979 ac_status=$?
19980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19981 (exit $ac_status); }; }; then
19982
19983 echo "$as_me:$LINENO: result: yes" >&5
19984 echo "${ECHO_T}yes" >&6
19985
19986 cat >>confdefs.h <<\_ACEOF
19987 #define HAVE_INIT_UTSNAME 1
19988 _ACEOF
19989
19990
19991 else
19992 echo "$as_me: failed program was:" >&5
19993 sed 's/^/| /' conftest.$ac_ext >&5
19994
19995
19996 echo "$as_me:$LINENO: result: no" >&5
19997 echo "${ECHO_T}no" >&6
19998
19999 fi
20000 rm -f build/conftest.o build/conftest.mod.c build/conftest.mod.o build/conftest.ko build/conftest.c conftest.c
20001
20002
20003
20004 echo "$as_me:$LINENO: checking whether header linux/fdtable.h exists" >&5
20005 echo $ECHO_N "checking whether header linux/fdtable.h exists... $ECHO_C" >&6
20006
20007
20008 cat >conftest.c <<_ACEOF
20009 /* confdefs.h. */
20010 _ACEOF
20011 cat confdefs.h >>conftest.$ac_ext
20012 cat >>conftest.$ac_ext <<_ACEOF
20013 /* end confdefs.h. */
20014
20015
20016 #include <linux/fdtable.h>
20017
20018 int
20019 main (void)
20020 {
20021
20022 return 0;
20023
20024 ;
20025 return 0;
20026 }
20027
20028 _ACEOF
20029
20030 rm -f build/conftest.o build/conftest.mod.c build/conftest.ko build/Makefile
20031 echo "obj-m := conftest.o" >build/Makefile
20032 if { ac_try='cp conftest.c build && make modules CC="$CC" 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'
20033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20034 (eval $ac_try) 2>&5
20035 ac_status=$?
20036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20037 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20039 (eval $ac_try) 2>&5
20040 ac_status=$?
20041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20042 (exit $ac_status); }; }; then
20043
20044
20045 cat >>confdefs.h <<\_ACEOF
20046 #define HAVE_FDTABLE_HEADER 1
20047 _ACEOF
20048
20049 echo "$as_me:$LINENO: result: yes" >&5
20050 echo "${ECHO_T}yes" >&6
20051
20052
20053 else
20054 echo "$as_me: failed program was:" >&5
20055 sed 's/^/| /' conftest.$ac_ext >&5
20056
20057
20058 echo "$as_me:$LINENO: result: no" >&5
20059 echo "${ECHO_T}no" >&6
20060
20061
20062 fi
20063 rm -f build/conftest.o build/conftest.mod.c build/conftest.mod.o build/conftest.ko build/conftest.c conftest.c
20064
20065
20066
20067
20068 echo "$as_me:$LINENO: checking whether files_fdtable() is available" >&5
20069 echo $ECHO_N "checking whether files_fdtable() is available... $ECHO_C" >&6
20070
20071
20072 cat >conftest.c <<_ACEOF
20073 /* confdefs.h. */
20074 _ACEOF
20075 cat confdefs.h >>conftest.$ac_ext
20076 cat >>conftest.$ac_ext <<_ACEOF
20077 /* end confdefs.h. */
20078
20079
20080 #include <linux/sched.h>
20081 #include <linux/file.h>
20082 #ifdef HAVE_FDTABLE_HEADER
20083 #include <linux/fdtable.h>
20084 #endif
20085
20086 int
20087 main (void)
20088 {
20089
20090 struct files_struct *files = current->files;
20091 struct fdtable *fdt = files_fdtable(files);
20092
20093 ;
20094 return 0;
20095 }
20096
20097 _ACEOF
20098
20099 rm -f build/conftest.o build/conftest.mod.c build/conftest.ko build/Makefile
20100 echo "obj-m := conftest.o" >build/Makefile
20101 if { ac_try='cp conftest.c build && make modules CC="$CC" 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'
20102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20103 (eval $ac_try) 2>&5
20104 ac_status=$?
20105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20106 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20108 (eval $ac_try) 2>&5
20109 ac_status=$?
20110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20111 (exit $ac_status); }; }; then
20112
20113 echo "$as_me:$LINENO: result: yes" >&5
20114 echo "${ECHO_T}yes" >&6
20115
20116 cat >>confdefs.h <<\_ACEOF
20117 #define HAVE_FILES_FDTABLE 1
20118 _ACEOF
20119
20120
20121 else
20122 echo "$as_me: failed program was:" >&5
20123 sed 's/^/| /' conftest.$ac_ext >&5
20124
20125
20126 echo "$as_me:$LINENO: result: no" >&5
20127 echo "${ECHO_T}no" >&6
20128
20129 fi
20130 rm -f build/conftest.o build/conftest.mod.c build/conftest.mod.o build/conftest.ko build/conftest.c conftest.c
20131
20132
20133
20134 echo "$as_me:$LINENO: checking whether header linux/uaccess.h exists" >&5
20135 echo $ECHO_N "checking whether header linux/uaccess.h exists... $ECHO_C" >&6
20136
20137
20138 cat >conftest.c <<_ACEOF
20139 /* confdefs.h. */
20140 _ACEOF
20141 cat confdefs.h >>conftest.$ac_ext
20142 cat >>conftest.$ac_ext <<_ACEOF
20143 /* end confdefs.h. */
20144
20145
20146 #include <linux/uaccess.h>
20147
20148 int
20149 main (void)
20150 {
20151
20152 return 0;
20153
20154 ;
20155 return 0;
20156 }
20157
20158 _ACEOF
20159
20160 rm -f build/conftest.o build/conftest.mod.c build/conftest.ko build/Makefile
20161 echo "obj-m := conftest.o" >build/Makefile
20162 if { ac_try='cp conftest.c build && make modules CC="$CC" 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'
20163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20164 (eval $ac_try) 2>&5
20165 ac_status=$?
20166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20167 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20169 (eval $ac_try) 2>&5
20170 ac_status=$?
20171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20172 (exit $ac_status); }; }; then
20173
20174
20175 cat >>confdefs.h <<\_ACEOF
20176 #define HAVE_UACCESS_HEADER 1
20177 _ACEOF
20178
20179 echo "$as_me:$LINENO: result: yes" >&5
20180 echo "${ECHO_T}yes" >&6
20181
20182
20183 else
20184 echo "$as_me: failed program was:" >&5
20185 sed 's/^/| /' conftest.$ac_ext >&5
20186
20187
20188 echo "$as_me:$LINENO: result: no" >&5
20189 echo "${ECHO_T}no" >&6
20190
20191
20192 fi
20193 rm -f build/conftest.o build/conftest.mod.c build/conftest.mod.o build/conftest.ko build/conftest.c conftest.c
20194
20195
20196
20197
20198 echo "$as_me:$LINENO: checking whether kmalloc_node() is available" >&5
20199 echo $ECHO_N "checking whether kmalloc_node() is available... $ECHO_C" >&6
20200
20201
20202 cat >conftest.c <<_ACEOF
20203 /* confdefs.h. */
20204 _ACEOF
20205 cat confdefs.h >>conftest.$ac_ext
20206 cat >>conftest.$ac_ext <<_ACEOF
20207 /* end confdefs.h. */
20208
20209
20210 #include <linux/slab.h>
20211
20212 int
20213 main (void)
20214 {
20215
20216 void *a = kmalloc_node(1, GFP_KERNEL, 0);
20217
20218 ;
20219 return 0;
20220 }
20221
20222 _ACEOF
20223
20224 rm -f build/conftest.o build/conftest.mod.c build/conftest.ko build/Makefile
20225 echo "obj-m := conftest.o" >build/Makefile
20226 if { ac_try='cp conftest.c build && make modules CC="$CC" 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'
20227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20228 (eval $ac_try) 2>&5
20229 ac_status=$?
20230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20231 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20233 (eval $ac_try) 2>&5
20234 ac_status=$?
20235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20236 (exit $ac_status); }; }; then
20237
20238 echo "$as_me:$LINENO: result: yes" >&5
20239 echo "${ECHO_T}yes" >&6
20240
20241 cat >>confdefs.h <<\_ACEOF
20242 #define HAVE_KMALLOC_NODE 1
20243 _ACEOF
20244
20245
20246 else
20247 echo "$as_me: failed program was:" >&5
20248 sed 's/^/| /' conftest.$ac_ext >&5
20249
20250
20251 echo "$as_me:$LINENO: result: no" >&5
20252 echo "${ECHO_T}no" >&6
20253
20254 fi
20255 rm -f build/conftest.o build/conftest.mod.c build/conftest.mod.o build/conftest.ko build/conftest.c conftest.c
20256
20257
20258
20259 echo "$as_me:$LINENO: checking whether symbol monotonic_clock is exported" >&5
20260 echo $ECHO_N "checking whether symbol monotonic_clock is exported... $ECHO_C" >&6
20261 grep -q -E '[[:space:]]monotonic_clock[[:space:]]' $LINUX_OBJ/Module.symvers 2>/dev/null
20262 rc=$?
20263 if test $rc -ne 0; then
20264 export=0
20265 for file in ; do
20266 grep -q -E "EXPORT_SYMBOL.*(monotonic_clock)" "$LINUX_OBJ/$file" 2>/dev/null
20267 rc=$?
20268 if test $rc -eq 0; then
20269 export=1
20270 break;
20271 fi
20272 done
20273 if test $export -eq 0; then
20274 echo "$as_me:$LINENO: result: no" >&5
20275 echo "${ECHO_T}no" >&6
20276
20277 else
20278 echo "$as_me:$LINENO: result: yes" >&5
20279 echo "${ECHO_T}yes" >&6
20280
20281 cat >>confdefs.h <<\_ACEOF
20282 #define HAVE_MONOTONIC_CLOCK 1
20283 _ACEOF
20284
20285 fi
20286 else
20287 echo "$as_me:$LINENO: result: yes" >&5
20288 echo "${ECHO_T}yes" >&6
20289
20290 cat >>confdefs.h <<\_ACEOF
20291 #define HAVE_MONOTONIC_CLOCK 1
20292 _ACEOF
20293
20294 fi
20295
20296
20297
20298 echo "$as_me:$LINENO: checking whether struct inode has i_mutex" >&5
20299 echo $ECHO_N "checking whether struct inode has i_mutex... $ECHO_C" >&6
20300
20301
20302 cat >conftest.c <<_ACEOF
20303 /* confdefs.h. */
20304 _ACEOF
20305 cat confdefs.h >>conftest.$ac_ext
20306 cat >>conftest.$ac_ext <<_ACEOF
20307 /* end confdefs.h. */
20308
20309
20310 #include <linux/fs.h>
20311 #include <linux/mutex.h>
20312
20313 int
20314 main (void)
20315 {
20316
20317 struct inode i;
20318 mutex_init(&i.i_mutex);
20319
20320 ;
20321 return 0;
20322 }
20323
20324 _ACEOF
20325
20326 rm -f build/conftest.o build/conftest.mod.c build/conftest.ko build/Makefile
20327 echo "obj-m := conftest.o" >build/Makefile
20328 if { ac_try='cp conftest.c build && make modules CC="$CC" 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'
20329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20330 (eval $ac_try) 2>&5
20331 ac_status=$?
20332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20333 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20335 (eval $ac_try) 2>&5
20336 ac_status=$?
20337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20338 (exit $ac_status); }; }; then
20339
20340 echo "$as_me:$LINENO: result: yes" >&5
20341 echo "${ECHO_T}yes" >&6
20342
20343 cat >>confdefs.h <<\_ACEOF
20344 #define HAVE_INODE_I_MUTEX 1
20345 _ACEOF
20346
20347
20348 else
20349 echo "$as_me: failed program was:" >&5
20350 sed 's/^/| /' conftest.$ac_ext >&5
20351
20352
20353 echo "$as_me:$LINENO: result: no" >&5
20354 echo "${ECHO_T}no" >&6
20355
20356 fi
20357 rm -f build/conftest.o build/conftest.mod.c build/conftest.mod.o build/conftest.ko build/conftest.c conftest.c
20358
20359
20360
20361 echo "$as_me:$LINENO: checking whether div64_64() is available" >&5
20362 echo $ECHO_N "checking whether div64_64() is available... $ECHO_C" >&6
20363
20364
20365 cat >conftest.c <<_ACEOF
20366 /* confdefs.h. */
20367 _ACEOF
20368 cat confdefs.h >>conftest.$ac_ext
20369 cat >>conftest.$ac_ext <<_ACEOF
20370 /* end confdefs.h. */
20371
20372
20373 #include <asm/div64.h>
20374 #include <linux/types.h>
20375
20376 int
20377 main (void)
20378 {
20379
20380 uint64_t i = div64_64(1ULL, 1ULL);
20381
20382 ;
20383 return 0;
20384 }
20385
20386 _ACEOF
20387
20388 rm -f build/conftest.o build/conftest.mod.c build/conftest.ko build/Makefile
20389 echo "obj-m := conftest.o" >build/Makefile
20390 if { ac_try='cp conftest.c build && make modules CC="$CC" 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'
20391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20392 (eval $ac_try) 2>&5
20393 ac_status=$?
20394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20395 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20397 (eval $ac_try) 2>&5
20398 ac_status=$?
20399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20400 (exit $ac_status); }; }; then
20401
20402 echo "$as_me:$LINENO: result: yes" >&5
20403 echo "${ECHO_T}yes" >&6
20404
20405 cat >>confdefs.h <<\_ACEOF
20406 #define HAVE_DIV64_64 1
20407 _ACEOF
20408
20409
20410 else
20411 echo "$as_me: failed program was:" >&5
20412 sed 's/^/| /' conftest.$ac_ext >&5
20413
20414
20415 echo "$as_me:$LINENO: result: no" >&5
20416 echo "${ECHO_T}no" >&6
20417
20418 fi
20419 rm -f build/conftest.o build/conftest.mod.c build/conftest.mod.o build/conftest.ko build/conftest.c conftest.c
20420
20421
20422
20423 echo "$as_me:$LINENO: checking whether on_each_cpu() wants 3 args" >&5
20424 echo $ECHO_N "checking whether on_each_cpu() wants 3 args... $ECHO_C" >&6
20425
20426
20427 cat >conftest.c <<_ACEOF
20428 /* confdefs.h. */
20429 _ACEOF
20430 cat confdefs.h >>conftest.$ac_ext
20431 cat >>conftest.$ac_ext <<_ACEOF
20432 /* end confdefs.h. */
20433
20434
20435 #include <linux/smp.h>
20436
20437 int
20438 main (void)
20439 {
20440
20441 on_each_cpu(NULL, NULL, 0);
20442
20443 ;
20444 return 0;
20445 }
20446
20447 _ACEOF
20448
20449 rm -f build/conftest.o build/conftest.mod.c build/conftest.ko build/Makefile
20450 echo "obj-m := conftest.o" >build/Makefile
20451 if { ac_try='cp conftest.c build && make modules CC="$CC" 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'
20452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20453 (eval $ac_try) 2>&5
20454 ac_status=$?
20455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20456 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20458 (eval $ac_try) 2>&5
20459 ac_status=$?
20460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20461 (exit $ac_status); }; }; then
20462
20463 echo "$as_me:$LINENO: result: yes" >&5
20464 echo "${ECHO_T}yes" >&6
20465
20466 cat >>confdefs.h <<\_ACEOF
20467 #define HAVE_3ARGS_ON_EACH_CPU 1
20468 _ACEOF
20469
20470
20471 else
20472 echo "$as_me: failed program was:" >&5
20473 sed 's/^/| /' conftest.$ac_ext >&5
20474
20475
20476 echo "$as_me:$LINENO: result: no" >&5
20477 echo "${ECHO_T}no" >&6
20478
20479 fi
20480 rm -f build/conftest.o build/conftest.mod.c build/conftest.mod.o build/conftest.ko build/conftest.c conftest.c
20481
20482
20483
20484 echo "$as_me:$LINENO: checking whether symbol kallsyms_lookup_name is exported" >&5
20485 echo $ECHO_N "checking whether symbol kallsyms_lookup_name is exported... $ECHO_C" >&6
20486 grep -q -E '[[:space:]]kallsyms_lookup_name[[:space:]]' $LINUX_OBJ/Module.symvers 2>/dev/null
20487 rc=$?
20488 if test $rc -ne 0; then
20489 export=0
20490 for file in ; do
20491 grep -q -E "EXPORT_SYMBOL.*(kallsyms_lookup_name)" "$LINUX_OBJ/$file" 2>/dev/null
20492 rc=$?
20493 if test $rc -eq 0; then
20494 export=1
20495 break;
20496 fi
20497 done
20498 if test $export -eq 0; then
20499 echo "$as_me:$LINENO: result: no" >&5
20500 echo "${ECHO_T}no" >&6
20501
20502 else
20503 echo "$as_me:$LINENO: result: yes" >&5
20504 echo "${ECHO_T}yes" >&6
20505
20506 cat >>confdefs.h <<\_ACEOF
20507 #define HAVE_KALLSYMS_LOOKUP_NAME 1
20508 _ACEOF
20509
20510 fi
20511 else
20512 echo "$as_me:$LINENO: result: yes" >&5
20513 echo "${ECHO_T}yes" >&6
20514
20515 cat >>confdefs.h <<\_ACEOF
20516 #define HAVE_KALLSYMS_LOOKUP_NAME 1
20517 _ACEOF
20518
20519 fi
20520
20521
20522
20523 echo "$as_me:$LINENO: checking whether symbol get_vmalloc_info is exported" >&5
20524 echo $ECHO_N "checking whether symbol get_vmalloc_info is exported... $ECHO_C" >&6
20525 grep -q -E '[[:space:]]get_vmalloc_info[[:space:]]' $LINUX_OBJ/Module.symvers 2>/dev/null
20526 rc=$?
20527 if test $rc -ne 0; then
20528 export=0
20529 for file in ; do
20530 grep -q -E "EXPORT_SYMBOL.*(get_vmalloc_info)" "$LINUX_OBJ/$file" 2>/dev/null
20531 rc=$?
20532 if test $rc -eq 0; then
20533 export=1
20534 break;
20535 fi
20536 done
20537 if test $export -eq 0; then
20538 echo "$as_me:$LINENO: result: no" >&5
20539 echo "${ECHO_T}no" >&6
20540
20541 else
20542 echo "$as_me:$LINENO: result: yes" >&5
20543 echo "${ECHO_T}yes" >&6
20544
20545 cat >>confdefs.h <<\_ACEOF
20546 #define HAVE_GET_VMALLOC_INFO 1
20547 _ACEOF
20548
20549 fi
20550 else
20551 echo "$as_me:$LINENO: result: yes" >&5
20552 echo "${ECHO_T}yes" >&6
20553
20554 cat >>confdefs.h <<\_ACEOF
20555 #define HAVE_GET_VMALLOC_INFO 1
20556 _ACEOF
20557
20558 fi
20559
20560
20561
20562 echo "$as_me:$LINENO: checking whether symbol first_online_pgdat is exported" >&5
20563 echo $ECHO_N "checking whether symbol first_online_pgdat is exported... $ECHO_C" >&6
20564 grep -q -E '[[:space:]]first_online_pgdat[[:space:]]' $LINUX_OBJ/Module.symvers 2>/dev/null
20565 rc=$?
20566 if test $rc -ne 0; then
20567 export=0
20568 for file in ; do
20569 grep -q -E "EXPORT_SYMBOL.*(first_online_pgdat)" "$LINUX_OBJ/$file" 2>/dev/null
20570 rc=$?
20571 if test $rc -eq 0; then
20572 export=1
20573 break;
20574 fi
20575 done
20576 if test $export -eq 0; then
20577 echo "$as_me:$LINENO: result: no" >&5
20578 echo "${ECHO_T}no" >&6
20579
20580 else
20581 echo "$as_me:$LINENO: result: yes" >&5
20582 echo "${ECHO_T}yes" >&6
20583
20584 cat >>confdefs.h <<\_ACEOF
20585 #define HAVE_FIRST_ONLINE_PGDAT 1
20586 _ACEOF
20587
20588 fi
20589 else
20590 echo "$as_me:$LINENO: result: yes" >&5
20591 echo "${ECHO_T}yes" >&6
20592
20593 cat >>confdefs.h <<\_ACEOF
20594 #define HAVE_FIRST_ONLINE_PGDAT 1
20595 _ACEOF
20596
20597 fi
20598
20599
20600
20601 echo "$as_me:$LINENO: checking whether symbol next_online_pgdat is exported" >&5
20602 echo $ECHO_N "checking whether symbol next_online_pgdat is exported... $ECHO_C" >&6
20603 grep -q -E '[[:space:]]next_online_pgdat[[:space:]]' $LINUX_OBJ/Module.symvers 2>/dev/null
20604 rc=$?
20605 if test $rc -ne 0; then
20606 export=0
20607 for file in ; do
20608 grep -q -E "EXPORT_SYMBOL.*(next_online_pgdat)" "$LINUX_OBJ/$file" 2>/dev/null
20609 rc=$?
20610 if test $rc -eq 0; then
20611 export=1
20612 break;
20613 fi
20614 done
20615 if test $export -eq 0; then
20616 echo "$as_me:$LINENO: result: no" >&5
20617 echo "${ECHO_T}no" >&6
20618
20619 else
20620 echo "$as_me:$LINENO: result: yes" >&5
20621 echo "${ECHO_T}yes" >&6
20622
20623 cat >>confdefs.h <<\_ACEOF
20624 #define HAVE_NEXT_ONLINE_PGDAT 1
20625 _ACEOF
20626
20627 fi
20628 else
20629 echo "$as_me:$LINENO: result: yes" >&5
20630 echo "${ECHO_T}yes" >&6
20631
20632 cat >>confdefs.h <<\_ACEOF
20633 #define HAVE_NEXT_ONLINE_PGDAT 1
20634 _ACEOF
20635
20636 fi
20637
20638
20639
20640 echo "$as_me:$LINENO: checking whether symbol next_zone is exported" >&5
20641 echo $ECHO_N "checking whether symbol next_zone is exported... $ECHO_C" >&6
20642 grep -q -E '[[:space:]]next_zone[[:space:]]' $LINUX_OBJ/Module.symvers 2>/dev/null
20643 rc=$?
20644 if test $rc -ne 0; then
20645 export=0
20646 for file in ; do
20647 grep -q -E "EXPORT_SYMBOL.*(next_zone)" "$LINUX_OBJ/$file" 2>/dev/null
20648 rc=$?
20649 if test $rc -eq 0; then
20650 export=1
20651 break;
20652 fi
20653 done
20654 if test $export -eq 0; then
20655 echo "$as_me:$LINENO: result: no" >&5
20656 echo "${ECHO_T}no" >&6
20657
20658 else
20659 echo "$as_me:$LINENO: result: yes" >&5
20660 echo "${ECHO_T}yes" >&6
20661
20662 cat >>confdefs.h <<\_ACEOF
20663 #define HAVE_NEXT_ZONE 1
20664 _ACEOF
20665
20666 fi
20667 else
20668 echo "$as_me:$LINENO: result: yes" >&5
20669 echo "${ECHO_T}yes" >&6
20670
20671 cat >>confdefs.h <<\_ACEOF
20672 #define HAVE_NEXT_ZONE 1
20673 _ACEOF
20674
20675 fi
20676
20677
20678
20679 echo "$as_me:$LINENO: checking whether symbol get_zone_counts is exported" >&5
20680 echo $ECHO_N "checking whether symbol get_zone_counts is exported... $ECHO_C" >&6
20681 grep -q -E '[[:space:]]get_zone_counts[[:space:]]' $LINUX_OBJ/Module.symvers 2>/dev/null
20682 rc=$?
20683 if test $rc -ne 0; then
20684 export=0
20685 for file in ; do
20686 grep -q -E "EXPORT_SYMBOL.*(get_zone_counts)" "$LINUX_OBJ/$file" 2>/dev/null
20687 rc=$?
20688 if test $rc -eq 0; then
20689 export=1
20690 break;
20691 fi
20692 done
20693 if test $export -eq 0; then
20694 echo "$as_me:$LINENO: result: no" >&5
20695 echo "${ECHO_T}no" >&6
20696
20697 else
20698 echo "$as_me:$LINENO: result: yes" >&5
20699 echo "${ECHO_T}yes" >&6
20700
20701 cat >>confdefs.h <<\_ACEOF
20702 #define HAVE_GET_ZONE_COUNTS 1
20703 _ACEOF
20704
20705 fi
20706 else
20707 echo "$as_me:$LINENO: result: yes" >&5
20708 echo "${ECHO_T}yes" >&6
20709
20710 cat >>confdefs.h <<\_ACEOF
20711 #define HAVE_GET_ZONE_COUNTS 1
20712 _ACEOF
20713
20714 fi
20715
20716
20717
20718 TOPDIR=`/bin/pwd`
20719
20720 # Add "V=1" to KERNELMAKE_PARAMS to enable verbose module build
20721 KERNELMAKE_PARAMS=
20722 KERNELCPPFLAGS="${KERNELCPPFLAGS} -I$TOPDIR -I$TOPDIR/include"
20723 KERNELCPPFLAGS="${KERNELCPPFLAGS} -Wstrict-prototypes -Werror"
20724
20725 if test "${LINUX_OBJ}" != "${LINUX}"; then
20726 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$kernelbuild"
20727 fi
20728
20729
20730
20731
20732
20733 ac_config_files="$ac_config_files Makefile lib/Makefile cmd/Makefile module/Makefile module/spl/Makefile module/splat/Makefile include/Makefile include/asm/Makefile include/fs/Makefile include/linux/Makefile include/rpc/Makefile include/sharefs/Makefile include/sys/Makefile include/sys/fm/Makefile include/sys/fs/Makefile include/sys/sysevent/Makefile include/util/Makefile include/vm/Makefile scripts/Makefile scripts/spl.spec"
20734
20735
20736 cat >confcache <<\_ACEOF
20737 # This file is a shell script that caches the results of configure
20738 # tests run on this system so they can be shared between configure
20739 # scripts and configure runs, see configure's option --config-cache.
20740 # It is not useful on other systems. If it contains results you don't
20741 # want to keep, you may remove or edit it.
20742 #
20743 # config.status only pays attention to the cache file if you give it
20744 # the --recheck option to rerun configure.
20745 #
20746 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20747 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20748 # following values.
20749
20750 _ACEOF
20751
20752 # The following way of writing the cache mishandles newlines in values,
20753 # but we know of no workaround that is simple, portable, and efficient.
20754 # So, don't put newlines in cache variables' values.
20755 # Ultrix sh set writes to stderr and can't be redirected directly,
20756 # and sets the high bit in the cache file unless we assign to the vars.
20757 {
20758 (set) 2>&1 |
20759 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20760 *ac_space=\ *)
20761 # `set' does not quote correctly, so add quotes (double-quote
20762 # substitution turns \\\\ into \\, and sed turns \\ into \).
20763 sed -n \
20764 "s/'/'\\\\''/g;
20765 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20766 ;;
20767 *)
20768 # `set' quotes correctly as required by POSIX, so do not add quotes.
20769 sed -n \
20770 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20771 ;;
20772 esac;
20773 } |
20774 sed '
20775 t clear
20776 : clear
20777 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20778 t end
20779 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20780 : end' >>confcache
20781 if diff $cache_file confcache >/dev/null 2>&1; then :; else
20782 if test -w $cache_file; then
20783 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20784 cat confcache >$cache_file
20785 else
20786 echo "not updating unwritable cache $cache_file"
20787 fi
20788 fi
20789 rm -f confcache
20790
20791 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20792 # Let make expand exec_prefix.
20793 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20794
20795 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20796 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20797 # trailing colons and then remove the whole line if VPATH becomes empty
20798 # (actually we leave an empty line to preserve line numbers).
20799 if test "x$srcdir" = x.; then
20800 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20801 s/:*\$(srcdir):*/:/;
20802 s/:*\${srcdir}:*/:/;
20803 s/:*@srcdir@:*/:/;
20804 s/^\([^=]*=[ ]*\):*/\1/;
20805 s/:*$//;
20806 s/^[^=]*=[ ]*$//;
20807 }'
20808 fi
20809
20810 DEFS=-DHAVE_CONFIG_H
20811
20812 ac_libobjs=
20813 ac_ltlibobjs=
20814 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20815 # 1. Remove the extension, and $U if already installed.
20816 ac_i=`echo "$ac_i" |
20817 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20818 # 2. Add them.
20819 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20820 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20821 done
20822 LIBOBJS=$ac_libobjs
20823
20824 LTLIBOBJS=$ac_ltlibobjs
20825
20826
20827 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20828 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
20829 Usually this means the macro was only invoked conditionally." >&5
20830 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
20831 Usually this means the macro was only invoked conditionally." >&2;}
20832 { (exit 1); exit 1; }; }
20833 fi
20834 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20835 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20836 Usually this means the macro was only invoked conditionally." >&5
20837 echo "$as_me: error: conditional \"AMDEP\" was never defined.
20838 Usually this means the macro was only invoked conditionally." >&2;}
20839 { (exit 1); exit 1; }; }
20840 fi
20841 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20842 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20843 Usually this means the macro was only invoked conditionally." >&5
20844 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20845 Usually this means the macro was only invoked conditionally." >&2;}
20846 { (exit 1); exit 1; }; }
20847 fi
20848 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20849 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20850 Usually this means the macro was only invoked conditionally." >&5
20851 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20852 Usually this means the macro was only invoked conditionally." >&2;}
20853 { (exit 1); exit 1; }; }
20854 fi
20855
20856 : ${CONFIG_STATUS=./config.status}
20857 ac_clean_files_save=$ac_clean_files
20858 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20859 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20860 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20861 cat >$CONFIG_STATUS <<_ACEOF
20862 #! $SHELL
20863 # Generated by $as_me.
20864 # Run this file to recreate the current configuration.
20865 # Compiler output produced by configure, useful for debugging
20866 # configure, is in config.log if it exists.
20867
20868 debug=false
20869 ac_cs_recheck=false
20870 ac_cs_silent=false
20871 SHELL=\${CONFIG_SHELL-$SHELL}
20872 _ACEOF
20873
20874 cat >>$CONFIG_STATUS <<\_ACEOF
20875 ## --------------------- ##
20876 ## M4sh Initialization. ##
20877 ## --------------------- ##
20878
20879 # Be Bourne compatible
20880 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20881 emulate sh
20882 NULLCMD=:
20883 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20884 # is contrary to our usage. Disable this feature.
20885 alias -g '${1+"$@"}'='"$@"'
20886 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20887 set -o posix
20888 fi
20889 DUALCASE=1; export DUALCASE # for MKS sh
20890
20891 # Support unset when possible.
20892 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20893 as_unset=unset
20894 else
20895 as_unset=false
20896 fi
20897
20898
20899 # Work around bugs in pre-3.0 UWIN ksh.
20900 $as_unset ENV MAIL MAILPATH
20901 PS1='$ '
20902 PS2='> '
20903 PS4='+ '
20904
20905 # NLS nuisances.
20906 for as_var in \
20907 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20908 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20909 LC_TELEPHONE LC_TIME
20910 do
20911 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20912 eval $as_var=C; export $as_var
20913 else
20914 $as_unset $as_var
20915 fi
20916 done
20917
20918 # Required to use basename.
20919 if expr a : '\(a\)' >/dev/null 2>&1; then
20920 as_expr=expr
20921 else
20922 as_expr=false
20923 fi
20924
20925 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20926 as_basename=basename
20927 else
20928 as_basename=false
20929 fi
20930
20931
20932 # Name of the executable.
20933 as_me=`$as_basename "$0" ||
20934 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20935 X"$0" : 'X\(//\)$' \| \
20936 X"$0" : 'X\(/\)$' \| \
20937 . : '\(.\)' 2>/dev/null ||
20938 echo X/"$0" |
20939 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20940 /^X\/\(\/\/\)$/{ s//\1/; q; }
20941 /^X\/\(\/\).*/{ s//\1/; q; }
20942 s/.*/./; q'`
20943
20944
20945 # PATH needs CR, and LINENO needs CR and PATH.
20946 # Avoid depending upon Character Ranges.
20947 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20948 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20949 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20950 as_cr_digits='0123456789'
20951 as_cr_alnum=$as_cr_Letters$as_cr_digits
20952
20953 # The user is always right.
20954 if test "${PATH_SEPARATOR+set}" != set; then
20955 echo "#! /bin/sh" >conf$$.sh
20956 echo "exit 0" >>conf$$.sh
20957 chmod +x conf$$.sh
20958 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20959 PATH_SEPARATOR=';'
20960 else
20961 PATH_SEPARATOR=:
20962 fi
20963 rm -f conf$$.sh
20964 fi
20965
20966
20967 as_lineno_1=$LINENO
20968 as_lineno_2=$LINENO
20969 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20970 test "x$as_lineno_1" != "x$as_lineno_2" &&
20971 test "x$as_lineno_3" = "x$as_lineno_2" || {
20972 # Find who we are. Look in the path if we contain no path at all
20973 # relative or not.
20974 case $0 in
20975 *[\\/]* ) as_myself=$0 ;;
20976 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20977 for as_dir in $PATH
20978 do
20979 IFS=$as_save_IFS
20980 test -z "$as_dir" && as_dir=.
20981 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20982 done
20983
20984 ;;
20985 esac
20986 # We did not find ourselves, most probably we were run as `sh COMMAND'
20987 # in which case we are not to be found in the path.
20988 if test "x$as_myself" = x; then
20989 as_myself=$0
20990 fi
20991 if test ! -f "$as_myself"; then
20992 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20993 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20994 { (exit 1); exit 1; }; }
20995 fi
20996 case $CONFIG_SHELL in
20997 '')
20998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20999 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21000 do
21001 IFS=$as_save_IFS
21002 test -z "$as_dir" && as_dir=.
21003 for as_base in sh bash ksh sh5; do
21004 case $as_dir in
21005 /*)
21006 if ("$as_dir/$as_base" -c '
21007 as_lineno_1=$LINENO
21008 as_lineno_2=$LINENO
21009 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21010 test "x$as_lineno_1" != "x$as_lineno_2" &&
21011 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
21012 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21013 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21014 CONFIG_SHELL=$as_dir/$as_base
21015 export CONFIG_SHELL
21016 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21017 fi;;
21018 esac
21019 done
21020 done
21021 ;;
21022 esac
21023
21024 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21025 # uniformly replaced by the line number. The first 'sed' inserts a
21026 # line-number line before each line; the second 'sed' does the real
21027 # work. The second script uses 'N' to pair each line-number line
21028 # with the numbered line, and appends trailing '-' during
21029 # substitution so that $LINENO is not a special case at line end.
21030 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21031 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21032 sed '=' <$as_myself |
21033 sed '
21034 N
21035 s,$,-,
21036 : loop
21037 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21038 t loop
21039 s,-$,,
21040 s,^['$as_cr_digits']*\n,,
21041 ' >$as_me.lineno &&
21042 chmod +x $as_me.lineno ||
21043 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21044 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21045 { (exit 1); exit 1; }; }
21046
21047 # Don't try to exec as it changes $[0], causing all sort of problems
21048 # (the dirname of $[0] is not the place where we might find the
21049 # original and so on. Autoconf is especially sensible to this).
21050 . ./$as_me.lineno
21051 # Exit status is that of the last command.
21052 exit
21053 }
21054
21055
21056 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21057 *c*,-n*) ECHO_N= ECHO_C='
21058 ' ECHO_T=' ' ;;
21059 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21060 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21061 esac
21062
21063 if expr a : '\(a\)' >/dev/null 2>&1; then
21064 as_expr=expr
21065 else
21066 as_expr=false
21067 fi
21068
21069 rm -f conf$$ conf$$.exe conf$$.file
21070 echo >conf$$.file
21071 if ln -s conf$$.file conf$$ 2>/dev/null; then
21072 # We could just check for DJGPP; but this test a) works b) is more generic
21073 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21074 if test -f conf$$.exe; then
21075 # Don't use ln at all; we don't have any links
21076 as_ln_s='cp -p'
21077 else
21078 as_ln_s='ln -s'
21079 fi
21080 elif ln conf$$.file conf$$ 2>/dev/null; then
21081 as_ln_s=ln
21082 else
21083 as_ln_s='cp -p'
21084 fi
21085 rm -f conf$$ conf$$.exe conf$$.file
21086
21087 if mkdir -p . 2>/dev/null; then
21088 as_mkdir_p=:
21089 else
21090 test -d ./-p && rmdir ./-p
21091 as_mkdir_p=false
21092 fi
21093
21094 as_executable_p="test -f"
21095
21096 # Sed expression to map a string onto a valid CPP name.
21097 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21098
21099 # Sed expression to map a string onto a valid variable name.
21100 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21101
21102
21103 # IFS
21104 # We need space, tab and new line, in precisely that order.
21105 as_nl='
21106 '
21107 IFS=" $as_nl"
21108
21109 # CDPATH.
21110 $as_unset CDPATH
21111
21112 exec 6>&1
21113
21114 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21115 # report actual input values of CONFIG_FILES etc. instead of their
21116 # values after options handling. Logging --version etc. is OK.
21117 exec 5>>config.log
21118 {
21119 echo
21120 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21121 ## Running $as_me. ##
21122 _ASBOX
21123 } >&5
21124 cat >&5 <<_CSEOF
21125
21126 This file was extended by $as_me, which was
21127 generated by GNU Autoconf 2.59. Invocation command line was
21128
21129 CONFIG_FILES = $CONFIG_FILES
21130 CONFIG_HEADERS = $CONFIG_HEADERS
21131 CONFIG_LINKS = $CONFIG_LINKS
21132 CONFIG_COMMANDS = $CONFIG_COMMANDS
21133 $ $0 $@
21134
21135 _CSEOF
21136 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21137 echo >&5
21138 _ACEOF
21139
21140 # Files that config.status was made for.
21141 if test -n "$ac_config_files"; then
21142 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21143 fi
21144
21145 if test -n "$ac_config_headers"; then
21146 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21147 fi
21148
21149 if test -n "$ac_config_links"; then
21150 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21151 fi
21152
21153 if test -n "$ac_config_commands"; then
21154 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21155 fi
21156
21157 cat >>$CONFIG_STATUS <<\_ACEOF
21158
21159 ac_cs_usage="\
21160 \`$as_me' instantiates files from templates according to the
21161 current configuration.
21162
21163 Usage: $0 [OPTIONS] [FILE]...
21164
21165 -h, --help print this help, then exit
21166 -V, --version print version number, then exit
21167 -q, --quiet do not print progress messages
21168 -d, --debug don't remove temporary files
21169 --recheck update $as_me by reconfiguring in the same conditions
21170 --file=FILE[:TEMPLATE]
21171 instantiate the configuration file FILE
21172 --header=FILE[:TEMPLATE]
21173 instantiate the configuration header FILE
21174
21175 Configuration files:
21176 $config_files
21177
21178 Configuration headers:
21179 $config_headers
21180
21181 Configuration commands:
21182 $config_commands
21183
21184 Report bugs to <bug-autoconf@gnu.org>."
21185 _ACEOF
21186
21187 cat >>$CONFIG_STATUS <<_ACEOF
21188 ac_cs_version="\\
21189 config.status
21190 configured by $0, generated by GNU Autoconf 2.59,
21191 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21192
21193 Copyright (C) 2003 Free Software Foundation, Inc.
21194 This config.status script is free software; the Free Software Foundation
21195 gives unlimited permission to copy, distribute and modify it."
21196 srcdir=$srcdir
21197 INSTALL="$INSTALL"
21198 _ACEOF
21199
21200 cat >>$CONFIG_STATUS <<\_ACEOF
21201 # If no file are specified by the user, then we need to provide default
21202 # value. By we need to know if files were specified by the user.
21203 ac_need_defaults=:
21204 while test $# != 0
21205 do
21206 case $1 in
21207 --*=*)
21208 ac_option=`expr "x$1" : 'x\([^=]*\)='`
21209 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21210 ac_shift=:
21211 ;;
21212 -*)
21213 ac_option=$1
21214 ac_optarg=$2
21215 ac_shift=shift
21216 ;;
21217 *) # This is not an option, so the user has probably given explicit
21218 # arguments.
21219 ac_option=$1
21220 ac_need_defaults=false;;
21221 esac
21222
21223 case $ac_option in
21224 # Handling of the options.
21225 _ACEOF
21226 cat >>$CONFIG_STATUS <<\_ACEOF
21227 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21228 ac_cs_recheck=: ;;
21229 --version | --vers* | -V )
21230 echo "$ac_cs_version"; exit 0 ;;
21231 --he | --h)
21232 # Conflict between --help and --header
21233 { { echo "$as_me:$LINENO: error: ambiguous option: $1
21234 Try \`$0 --help' for more information." >&5
21235 echo "$as_me: error: ambiguous option: $1
21236 Try \`$0 --help' for more information." >&2;}
21237 { (exit 1); exit 1; }; };;
21238 --help | --hel | -h )
21239 echo "$ac_cs_usage"; exit 0 ;;
21240 --debug | --d* | -d )
21241 debug=: ;;
21242 --file | --fil | --fi | --f )
21243 $ac_shift
21244 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21245 ac_need_defaults=false;;
21246 --header | --heade | --head | --hea )
21247 $ac_shift
21248 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21249 ac_need_defaults=false;;
21250 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21251 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21252 ac_cs_silent=: ;;
21253
21254 # This is an error.
21255 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21256 Try \`$0 --help' for more information." >&5
21257 echo "$as_me: error: unrecognized option: $1
21258 Try \`$0 --help' for more information." >&2;}
21259 { (exit 1); exit 1; }; } ;;
21260
21261 *) ac_config_targets="$ac_config_targets $1" ;;
21262
21263 esac
21264 shift
21265 done
21266
21267 ac_configure_extra_args=
21268
21269 if $ac_cs_silent; then
21270 exec 6>/dev/null
21271 ac_configure_extra_args="$ac_configure_extra_args --silent"
21272 fi
21273
21274 _ACEOF
21275 cat >>$CONFIG_STATUS <<_ACEOF
21276 if \$ac_cs_recheck; then
21277 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21278 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21279 fi
21280
21281 _ACEOF
21282
21283 cat >>$CONFIG_STATUS <<_ACEOF
21284 #
21285 # INIT-COMMANDS section.
21286 #
21287
21288 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21289
21290 _ACEOF
21291
21292
21293
21294 cat >>$CONFIG_STATUS <<\_ACEOF
21295 for ac_config_target in $ac_config_targets
21296 do
21297 case "$ac_config_target" in
21298 # Handling of arguments.
21299 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21300 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
21301 "cmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES cmd/Makefile" ;;
21302 "module/Makefile" ) CONFIG_FILES="$CONFIG_FILES module/Makefile" ;;
21303 "module/spl/Makefile" ) CONFIG_FILES="$CONFIG_FILES module/spl/Makefile" ;;
21304 "module/splat/Makefile" ) CONFIG_FILES="$CONFIG_FILES module/splat/Makefile" ;;
21305 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
21306 "include/asm/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/asm/Makefile" ;;
21307 "include/fs/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/fs/Makefile" ;;
21308 "include/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/linux/Makefile" ;;
21309 "include/rpc/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/rpc/Makefile" ;;
21310 "include/sharefs/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/sharefs/Makefile" ;;
21311 "include/sys/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/sys/Makefile" ;;
21312 "include/sys/fm/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/sys/fm/Makefile" ;;
21313 "include/sys/fs/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/sys/fs/Makefile" ;;
21314 "include/sys/sysevent/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/sys/sysevent/Makefile" ;;
21315 "include/util/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/util/Makefile" ;;
21316 "include/vm/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/vm/Makefile" ;;
21317 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
21318 "scripts/spl.spec" ) CONFIG_FILES="$CONFIG_FILES scripts/spl.spec" ;;
21319 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21320 "spl_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS spl_config.h" ;;
21321 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21322 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21323 { (exit 1); exit 1; }; };;
21324 esac
21325 done
21326
21327 # If the user did not use the arguments to specify the items to instantiate,
21328 # then the envvar interface is used. Set only those that are not.
21329 # We use the long form for the default assignment because of an extremely
21330 # bizarre bug on SunOS 4.1.3.
21331 if $ac_need_defaults; then
21332 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21333 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21334 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21335 fi
21336
21337 # Have a temporary directory for convenience. Make it in the build tree
21338 # simply because there is no reason to put it here, and in addition,
21339 # creating and moving files from /tmp can sometimes cause problems.
21340 # Create a temporary directory, and hook for its removal unless debugging.
21341 $debug ||
21342 {
21343 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21344 trap '{ (exit 1); exit 1; }' 1 2 13 15
21345 }
21346
21347 # Create a (secure) tmp directory for tmp files.
21348
21349 {
21350 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21351 test -n "$tmp" && test -d "$tmp"
21352 } ||
21353 {
21354 tmp=./confstat$$-$RANDOM
21355 (umask 077 && mkdir $tmp)
21356 } ||
21357 {
21358 echo "$me: cannot create a temporary directory in ." >&2
21359 { (exit 1); exit 1; }
21360 }
21361
21362 _ACEOF
21363
21364 cat >>$CONFIG_STATUS <<_ACEOF
21365
21366 #
21367 # CONFIG_FILES section.
21368 #
21369
21370 # No need to generate the scripts if there are no CONFIG_FILES.
21371 # This happens for instance when ./config.status config.h
21372 if test -n "\$CONFIG_FILES"; then
21373 # Protect against being on the right side of a sed subst in config.status.
21374 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21375 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21376 s,@SHELL@,$SHELL,;t t
21377 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21378 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21379 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21380 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21381 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21382 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21383 s,@exec_prefix@,$exec_prefix,;t t
21384 s,@prefix@,$prefix,;t t
21385 s,@program_transform_name@,$program_transform_name,;t t
21386 s,@bindir@,$bindir,;t t
21387 s,@sbindir@,$sbindir,;t t
21388 s,@libexecdir@,$libexecdir,;t t
21389 s,@datadir@,$datadir,;t t
21390 s,@sysconfdir@,$sysconfdir,;t t
21391 s,@sharedstatedir@,$sharedstatedir,;t t
21392 s,@localstatedir@,$localstatedir,;t t
21393 s,@libdir@,$libdir,;t t
21394 s,@includedir@,$includedir,;t t
21395 s,@oldincludedir@,$oldincludedir,;t t
21396 s,@infodir@,$infodir,;t t
21397 s,@mandir@,$mandir,;t t
21398 s,@build_alias@,$build_alias,;t t
21399 s,@host_alias@,$host_alias,;t t
21400 s,@target_alias@,$target_alias,;t t
21401 s,@DEFS@,$DEFS,;t t
21402 s,@ECHO_C@,$ECHO_C,;t t
21403 s,@ECHO_N@,$ECHO_N,;t t
21404 s,@ECHO_T@,$ECHO_T,;t t
21405 s,@LIBS@,$LIBS,;t t
21406 s,@SPL_META_NAME@,$SPL_META_NAME,;t t
21407 s,@SPL_META_VERSION@,$SPL_META_VERSION,;t t
21408 s,@SPL_META_RELEASE@,$SPL_META_RELEASE,;t t
21409 s,@SPL_META_ALIAS@,$SPL_META_ALIAS,;t t
21410 s,@SPL_META_DATA@,$SPL_META_DATA,;t t
21411 s,@SPL_META_AUTHOR@,$SPL_META_AUTHOR,;t t
21412 s,@SPL_META_LT_CURRENT@,$SPL_META_LT_CURRENT,;t t
21413 s,@SPL_META_LT_REVISION@,$SPL_META_LT_REVISION,;t t
21414 s,@SPL_META_LT_AGE@,$SPL_META_LT_AGE,;t t
21415 s,@build@,$build,;t t
21416 s,@build_cpu@,$build_cpu,;t t
21417 s,@build_vendor@,$build_vendor,;t t
21418 s,@build_os@,$build_os,;t t
21419 s,@host@,$host,;t t
21420 s,@host_cpu@,$host_cpu,;t t
21421 s,@host_vendor@,$host_vendor,;t t
21422 s,@host_os@,$host_os,;t t
21423 s,@target@,$target,;t t
21424 s,@target_cpu@,$target_cpu,;t t
21425 s,@target_vendor@,$target_vendor,;t t
21426 s,@target_os@,$target_os,;t t
21427 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21428 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21429 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21430 s,@CYGPATH_W@,$CYGPATH_W,;t t
21431 s,@PACKAGE@,$PACKAGE,;t t
21432 s,@VERSION@,$VERSION,;t t
21433 s,@ACLOCAL@,$ACLOCAL,;t t
21434 s,@AUTOCONF@,$AUTOCONF,;t t
21435 s,@AUTOMAKE@,$AUTOMAKE,;t t
21436 s,@AUTOHEADER@,$AUTOHEADER,;t t
21437 s,@MAKEINFO@,$MAKEINFO,;t t
21438 s,@install_sh@,$install_sh,;t t
21439 s,@STRIP@,$STRIP,;t t
21440 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21441 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
21442 s,@mkdir_p@,$mkdir_p,;t t
21443 s,@AWK@,$AWK,;t t
21444 s,@SET_MAKE@,$SET_MAKE,;t t
21445 s,@am__leading_dot@,$am__leading_dot,;t t
21446 s,@AMTAR@,$AMTAR,;t t
21447 s,@am__tar@,$am__tar,;t t
21448 s,@am__untar@,$am__untar,;t t
21449 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
21450 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
21451 s,@MAINT@,$MAINT,;t t
21452 s,@CC@,$CC,;t t
21453 s,@CFLAGS@,$CFLAGS,;t t
21454 s,@LDFLAGS@,$LDFLAGS,;t t
21455 s,@CPPFLAGS@,$CPPFLAGS,;t t
21456 s,@ac_ct_CC@,$ac_ct_CC,;t t
21457 s,@EXEEXT@,$EXEEXT,;t t
21458 s,@OBJEXT@,$OBJEXT,;t t
21459 s,@DEPDIR@,$DEPDIR,;t t
21460 s,@am__include@,$am__include,;t t
21461 s,@am__quote@,$am__quote,;t t
21462 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21463 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21464 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
21465 s,@CCDEPMODE@,$CCDEPMODE,;t t
21466 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
21467 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
21468 s,@SED@,$SED,;t t
21469 s,@EGREP@,$EGREP,;t t
21470 s,@LN_S@,$LN_S,;t t
21471 s,@ECHO@,$ECHO,;t t
21472 s,@AR@,$AR,;t t
21473 s,@ac_ct_AR@,$ac_ct_AR,;t t
21474 s,@RANLIB@,$RANLIB,;t t
21475 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21476 s,@CPP@,$CPP,;t t
21477 s,@CXX@,$CXX,;t t
21478 s,@CXXFLAGS@,$CXXFLAGS,;t t
21479 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21480 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
21481 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
21482 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
21483 s,@CXXCPP@,$CXXCPP,;t t
21484 s,@F77@,$F77,;t t
21485 s,@FFLAGS@,$FFLAGS,;t t
21486 s,@ac_ct_F77@,$ac_ct_F77,;t t
21487 s,@LIBTOOL@,$LIBTOOL,;t t
21488 s,@LINUX@,$LINUX,;t t
21489 s,@LINUX_OBJ@,$LINUX_OBJ,;t t
21490 s,@kmoduledir@,$kmoduledir,;t t
21491 s,@KERNELMAKE_PARAMS@,$KERNELMAKE_PARAMS,;t t
21492 s,@KERNELCPPFLAGS@,$KERNELCPPFLAGS,;t t
21493 s,@KERNELCFLAGS@,$KERNELCFLAGS,;t t
21494 s,@LIBOBJS@,$LIBOBJS,;t t
21495 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21496 CEOF
21497
21498 _ACEOF
21499
21500 cat >>$CONFIG_STATUS <<\_ACEOF
21501 # Split the substitutions into bite-sized pieces for seds with
21502 # small command number limits, like on Digital OSF/1 and HP-UX.
21503 ac_max_sed_lines=48
21504 ac_sed_frag=1 # Number of current file.
21505 ac_beg=1 # First line for current file.
21506 ac_end=$ac_max_sed_lines # Line after last line for current file.
21507 ac_more_lines=:
21508 ac_sed_cmds=
21509 while $ac_more_lines; do
21510 if test $ac_beg -gt 1; then
21511 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21512 else
21513 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21514 fi
21515 if test ! -s $tmp/subs.frag; then
21516 ac_more_lines=false
21517 else
21518 # The purpose of the label and of the branching condition is to
21519 # speed up the sed processing (if there are no `@' at all, there
21520 # is no need to browse any of the substitutions).
21521 # These are the two extra sed commands mentioned above.
21522 (echo ':t
21523 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21524 if test -z "$ac_sed_cmds"; then
21525 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21526 else
21527 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21528 fi
21529 ac_sed_frag=`expr $ac_sed_frag + 1`
21530 ac_beg=$ac_end
21531 ac_end=`expr $ac_end + $ac_max_sed_lines`
21532 fi
21533 done
21534 if test -z "$ac_sed_cmds"; then
21535 ac_sed_cmds=cat
21536 fi
21537 fi # test -n "$CONFIG_FILES"
21538
21539 _ACEOF
21540 cat >>$CONFIG_STATUS <<\_ACEOF
21541 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21542 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21543 case $ac_file in
21544 - | *:- | *:-:* ) # input from stdin
21545 cat >$tmp/stdin
21546 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21547 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21548 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21549 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21550 * ) ac_file_in=$ac_file.in ;;
21551 esac
21552
21553 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21554 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21555 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21556 X"$ac_file" : 'X\(//\)[^/]' \| \
21557 X"$ac_file" : 'X\(//\)$' \| \
21558 X"$ac_file" : 'X\(/\)' \| \
21559 . : '\(.\)' 2>/dev/null ||
21560 echo X"$ac_file" |
21561 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21562 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21563 /^X\(\/\/\)$/{ s//\1/; q; }
21564 /^X\(\/\).*/{ s//\1/; q; }
21565 s/.*/./; q'`
21566 { if $as_mkdir_p; then
21567 mkdir -p "$ac_dir"
21568 else
21569 as_dir="$ac_dir"
21570 as_dirs=
21571 while test ! -d "$as_dir"; do
21572 as_dirs="$as_dir $as_dirs"
21573 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21574 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21575 X"$as_dir" : 'X\(//\)[^/]' \| \
21576 X"$as_dir" : 'X\(//\)$' \| \
21577 X"$as_dir" : 'X\(/\)' \| \
21578 . : '\(.\)' 2>/dev/null ||
21579 echo X"$as_dir" |
21580 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21581 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21582 /^X\(\/\/\)$/{ s//\1/; q; }
21583 /^X\(\/\).*/{ s//\1/; q; }
21584 s/.*/./; q'`
21585 done
21586 test ! -n "$as_dirs" || mkdir $as_dirs
21587 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21588 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21589 { (exit 1); exit 1; }; }; }
21590
21591 ac_builddir=.
21592
21593 if test "$ac_dir" != .; then
21594 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21595 # A "../" for each directory in $ac_dir_suffix.
21596 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21597 else
21598 ac_dir_suffix= ac_top_builddir=
21599 fi
21600
21601 case $srcdir in
21602 .) # No --srcdir option. We are building in place.
21603 ac_srcdir=.
21604 if test -z "$ac_top_builddir"; then
21605 ac_top_srcdir=.
21606 else
21607 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21608 fi ;;
21609 [\\/]* | ?:[\\/]* ) # Absolute path.
21610 ac_srcdir=$srcdir$ac_dir_suffix;
21611 ac_top_srcdir=$srcdir ;;
21612 *) # Relative path.
21613 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21614 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21615 esac
21616
21617 # Do not use `cd foo && pwd` to compute absolute paths, because
21618 # the directories may not exist.
21619 case `pwd` in
21620 .) ac_abs_builddir="$ac_dir";;
21621 *)
21622 case "$ac_dir" in
21623 .) ac_abs_builddir=`pwd`;;
21624 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21625 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21626 esac;;
21627 esac
21628 case $ac_abs_builddir in
21629 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21630 *)
21631 case ${ac_top_builddir}. in
21632 .) ac_abs_top_builddir=$ac_abs_builddir;;
21633 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21634 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21635 esac;;
21636 esac
21637 case $ac_abs_builddir in
21638 .) ac_abs_srcdir=$ac_srcdir;;
21639 *)
21640 case $ac_srcdir in
21641 .) ac_abs_srcdir=$ac_abs_builddir;;
21642 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21643 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21644 esac;;
21645 esac
21646 case $ac_abs_builddir in
21647 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21648 *)
21649 case $ac_top_srcdir in
21650 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21651 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21652 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21653 esac;;
21654 esac
21655
21656
21657 case $INSTALL in
21658 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21659 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21660 esac
21661
21662 if test x"$ac_file" != x-; then
21663 { echo "$as_me:$LINENO: creating $ac_file" >&5
21664 echo "$as_me: creating $ac_file" >&6;}
21665 rm -f "$ac_file"
21666 fi
21667 # Let's still pretend it is `configure' which instantiates (i.e., don't
21668 # use $as_me), people would be surprised to read:
21669 # /* config.h. Generated by config.status. */
21670 if test x"$ac_file" = x-; then
21671 configure_input=
21672 else
21673 configure_input="$ac_file. "
21674 fi
21675 configure_input=$configure_input"Generated from `echo $ac_file_in |
21676 sed 's,.*/,,'` by configure."
21677
21678 # First look for the input files in the build tree, otherwise in the
21679 # src tree.
21680 ac_file_inputs=`IFS=:
21681 for f in $ac_file_in; do
21682 case $f in
21683 -) echo $tmp/stdin ;;
21684 [\\/$]*)
21685 # Absolute (can't be DOS-style, as IFS=:)
21686 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21687 echo "$as_me: error: cannot find input file: $f" >&2;}
21688 { (exit 1); exit 1; }; }
21689 echo "$f";;
21690 *) # Relative
21691 if test -f "$f"; then
21692 # Build tree
21693 echo "$f"
21694 elif test -f "$srcdir/$f"; then
21695 # Source tree
21696 echo "$srcdir/$f"
21697 else
21698 # /dev/null tree
21699 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21700 echo "$as_me: error: cannot find input file: $f" >&2;}
21701 { (exit 1); exit 1; }; }
21702 fi;;
21703 esac
21704 done` || { (exit 1); exit 1; }
21705 _ACEOF
21706 cat >>$CONFIG_STATUS <<_ACEOF
21707 sed "$ac_vpsub
21708 $extrasub
21709 _ACEOF
21710 cat >>$CONFIG_STATUS <<\_ACEOF
21711 :t
21712 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21713 s,@configure_input@,$configure_input,;t t
21714 s,@srcdir@,$ac_srcdir,;t t
21715 s,@abs_srcdir@,$ac_abs_srcdir,;t t
21716 s,@top_srcdir@,$ac_top_srcdir,;t t
21717 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21718 s,@builddir@,$ac_builddir,;t t
21719 s,@abs_builddir@,$ac_abs_builddir,;t t
21720 s,@top_builddir@,$ac_top_builddir,;t t
21721 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21722 s,@INSTALL@,$ac_INSTALL,;t t
21723 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21724 rm -f $tmp/stdin
21725 if test x"$ac_file" != x-; then
21726 mv $tmp/out $ac_file
21727 else
21728 cat $tmp/out
21729 rm -f $tmp/out
21730 fi
21731
21732 done
21733 _ACEOF
21734 cat >>$CONFIG_STATUS <<\_ACEOF
21735
21736 #
21737 # CONFIG_HEADER section.
21738 #
21739
21740 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21741 # NAME is the cpp macro being defined and VALUE is the value it is being given.
21742 #
21743 # ac_d sets the value in "#define NAME VALUE" lines.
21744 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21745 ac_dB='[ ].*$,\1#\2'
21746 ac_dC=' '
21747 ac_dD=',;t'
21748 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21749 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21750 ac_uB='$,\1#\2define\3'
21751 ac_uC=' '
21752 ac_uD=',;t'
21753
21754 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21755 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21756 case $ac_file in
21757 - | *:- | *:-:* ) # input from stdin
21758 cat >$tmp/stdin
21759 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21760 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21761 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21762 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21763 * ) ac_file_in=$ac_file.in ;;
21764 esac
21765
21766 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21767 echo "$as_me: creating $ac_file" >&6;}
21768
21769 # First look for the input files in the build tree, otherwise in the
21770 # src tree.
21771 ac_file_inputs=`IFS=:
21772 for f in $ac_file_in; do
21773 case $f in
21774 -) echo $tmp/stdin ;;
21775 [\\/$]*)
21776 # Absolute (can't be DOS-style, as IFS=:)
21777 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21778 echo "$as_me: error: cannot find input file: $f" >&2;}
21779 { (exit 1); exit 1; }; }
21780 # Do quote $f, to prevent DOS paths from being IFS'd.
21781 echo "$f";;
21782 *) # Relative
21783 if test -f "$f"; then
21784 # Build tree
21785 echo "$f"
21786 elif test -f "$srcdir/$f"; then
21787 # Source tree
21788 echo "$srcdir/$f"
21789 else
21790 # /dev/null tree
21791 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21792 echo "$as_me: error: cannot find input file: $f" >&2;}
21793 { (exit 1); exit 1; }; }
21794 fi;;
21795 esac
21796 done` || { (exit 1); exit 1; }
21797 # Remove the trailing spaces.
21798 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
21799
21800 _ACEOF
21801
21802 # Transform confdefs.h into two sed scripts, `conftest.defines' and
21803 # `conftest.undefs', that substitutes the proper values into
21804 # config.h.in to produce config.h. The first handles `#define'
21805 # templates, and the second `#undef' templates.
21806 # And first: Protect against being on the right side of a sed subst in
21807 # config.status. Protect against being in an unquoted here document
21808 # in config.status.
21809 rm -f conftest.defines conftest.undefs
21810 # Using a here document instead of a string reduces the quoting nightmare.
21811 # Putting comments in sed scripts is not portable.
21812 #
21813 # `end' is used to avoid that the second main sed command (meant for
21814 # 0-ary CPP macros) applies to n-ary macro definitions.
21815 # See the Autoconf documentation for `clear'.
21816 cat >confdef2sed.sed <<\_ACEOF
21817 s/[\\&,]/\\&/g
21818 s,[\\$`],\\&,g
21819 t clear
21820 : clear
21821 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21822 t end
21823 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21824 : end
21825 _ACEOF
21826 # If some macros were called several times there might be several times
21827 # the same #defines, which is useless. Nevertheless, we may not want to
21828 # sort them, since we want the *last* AC-DEFINE to be honored.
21829 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21830 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21831 rm -f confdef2sed.sed
21832
21833 # This sed command replaces #undef with comments. This is necessary, for
21834 # example, in the case of _POSIX_SOURCE, which is predefined and required
21835 # on some systems where configure will not decide to define it.
21836 cat >>conftest.undefs <<\_ACEOF
21837 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21838 _ACEOF
21839
21840 # Break up conftest.defines because some shells have a limit on the size
21841 # of here documents, and old seds have small limits too (100 cmds).
21842 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21843 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21844 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21845 echo ' :' >>$CONFIG_STATUS
21846 rm -f conftest.tail
21847 while grep . conftest.defines >/dev/null
21848 do
21849 # Write a limited-size here document to $tmp/defines.sed.
21850 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21851 # Speed up: don't consider the non `#define' lines.
21852 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
21853 # Work around the forget-to-reset-the-flag bug.
21854 echo 't clr' >>$CONFIG_STATUS
21855 echo ': clr' >>$CONFIG_STATUS
21856 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21857 echo 'CEOF
21858 sed -f $tmp/defines.sed $tmp/in >$tmp/out
21859 rm -f $tmp/in
21860 mv $tmp/out $tmp/in
21861 ' >>$CONFIG_STATUS
21862 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21863 rm -f conftest.defines
21864 mv conftest.tail conftest.defines
21865 done
21866 rm -f conftest.defines
21867 echo ' fi # grep' >>$CONFIG_STATUS
21868 echo >>$CONFIG_STATUS
21869
21870 # Break up conftest.undefs because some shells have a limit on the size
21871 # of here documents, and old seds have small limits too (100 cmds).
21872 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
21873 rm -f conftest.tail
21874 while grep . conftest.undefs >/dev/null
21875 do
21876 # Write a limited-size here document to $tmp/undefs.sed.
21877 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21878 # Speed up: don't consider the non `#undef'
21879 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
21880 # Work around the forget-to-reset-the-flag bug.
21881 echo 't clr' >>$CONFIG_STATUS
21882 echo ': clr' >>$CONFIG_STATUS
21883 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21884 echo 'CEOF
21885 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21886 rm -f $tmp/in
21887 mv $tmp/out $tmp/in
21888 ' >>$CONFIG_STATUS
21889 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21890 rm -f conftest.undefs
21891 mv conftest.tail conftest.undefs
21892 done
21893 rm -f conftest.undefs
21894
21895 cat >>$CONFIG_STATUS <<\_ACEOF
21896 # Let's still pretend it is `configure' which instantiates (i.e., don't
21897 # use $as_me), people would be surprised to read:
21898 # /* config.h. Generated by config.status. */
21899 if test x"$ac_file" = x-; then
21900 echo "/* Generated by configure. */" >$tmp/config.h
21901 else
21902 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
21903 fi
21904 cat $tmp/in >>$tmp/config.h
21905 rm -f $tmp/in
21906 if test x"$ac_file" != x-; then
21907 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21908 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21909 echo "$as_me: $ac_file is unchanged" >&6;}
21910 else
21911 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21912 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21913 X"$ac_file" : 'X\(//\)[^/]' \| \
21914 X"$ac_file" : 'X\(//\)$' \| \
21915 X"$ac_file" : 'X\(/\)' \| \
21916 . : '\(.\)' 2>/dev/null ||
21917 echo X"$ac_file" |
21918 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21919 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21920 /^X\(\/\/\)$/{ s//\1/; q; }
21921 /^X\(\/\).*/{ s//\1/; q; }
21922 s/.*/./; q'`
21923 { if $as_mkdir_p; then
21924 mkdir -p "$ac_dir"
21925 else
21926 as_dir="$ac_dir"
21927 as_dirs=
21928 while test ! -d "$as_dir"; do
21929 as_dirs="$as_dir $as_dirs"
21930 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21931 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21932 X"$as_dir" : 'X\(//\)[^/]' \| \
21933 X"$as_dir" : 'X\(//\)$' \| \
21934 X"$as_dir" : 'X\(/\)' \| \
21935 . : '\(.\)' 2>/dev/null ||
21936 echo X"$as_dir" |
21937 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21938 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21939 /^X\(\/\/\)$/{ s//\1/; q; }
21940 /^X\(\/\).*/{ s//\1/; q; }
21941 s/.*/./; q'`
21942 done
21943 test ! -n "$as_dirs" || mkdir $as_dirs
21944 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21945 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21946 { (exit 1); exit 1; }; }; }
21947
21948 rm -f $ac_file
21949 mv $tmp/config.h $ac_file
21950 fi
21951 else
21952 cat $tmp/config.h
21953 rm -f $tmp/config.h
21954 fi
21955 # Compute $ac_file's index in $config_headers.
21956 _am_stamp_count=1
21957 for _am_header in $config_headers :; do
21958 case $_am_header in
21959 $ac_file | $ac_file:* )
21960 break ;;
21961 * )
21962 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21963 esac
21964 done
21965 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21966 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21967 X$ac_file : 'X\(//\)[^/]' \| \
21968 X$ac_file : 'X\(//\)$' \| \
21969 X$ac_file : 'X\(/\)' \| \
21970 . : '\(.\)' 2>/dev/null ||
21971 echo X$ac_file |
21972 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21973 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21974 /^X\(\/\/\)$/{ s//\1/; q; }
21975 /^X\(\/\).*/{ s//\1/; q; }
21976 s/.*/./; q'`/stamp-h$_am_stamp_count
21977 done
21978 _ACEOF
21979 cat >>$CONFIG_STATUS <<\_ACEOF
21980
21981 #
21982 # CONFIG_COMMANDS section.
21983 #
21984 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21985 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21986 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21987 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21988 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21989 X"$ac_dest" : 'X\(//\)[^/]' \| \
21990 X"$ac_dest" : 'X\(//\)$' \| \
21991 X"$ac_dest" : 'X\(/\)' \| \
21992 . : '\(.\)' 2>/dev/null ||
21993 echo X"$ac_dest" |
21994 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21995 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21996 /^X\(\/\/\)$/{ s//\1/; q; }
21997 /^X\(\/\).*/{ s//\1/; q; }
21998 s/.*/./; q'`
21999 { if $as_mkdir_p; then
22000 mkdir -p "$ac_dir"
22001 else
22002 as_dir="$ac_dir"
22003 as_dirs=
22004 while test ! -d "$as_dir"; do
22005 as_dirs="$as_dir $as_dirs"
22006 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22007 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22008 X"$as_dir" : 'X\(//\)[^/]' \| \
22009 X"$as_dir" : 'X\(//\)$' \| \
22010 X"$as_dir" : 'X\(/\)' \| \
22011 . : '\(.\)' 2>/dev/null ||
22012 echo X"$as_dir" |
22013 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22014 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22015 /^X\(\/\/\)$/{ s//\1/; q; }
22016 /^X\(\/\).*/{ s//\1/; q; }
22017 s/.*/./; q'`
22018 done
22019 test ! -n "$as_dirs" || mkdir $as_dirs
22020 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22021 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22022 { (exit 1); exit 1; }; }; }
22023
22024 ac_builddir=.
22025
22026 if test "$ac_dir" != .; then
22027 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22028 # A "../" for each directory in $ac_dir_suffix.
22029 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22030 else
22031 ac_dir_suffix= ac_top_builddir=
22032 fi
22033
22034 case $srcdir in
22035 .) # No --srcdir option. We are building in place.
22036 ac_srcdir=.
22037 if test -z "$ac_top_builddir"; then
22038 ac_top_srcdir=.
22039 else
22040 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22041 fi ;;
22042 [\\/]* | ?:[\\/]* ) # Absolute path.
22043 ac_srcdir=$srcdir$ac_dir_suffix;
22044 ac_top_srcdir=$srcdir ;;
22045 *) # Relative path.
22046 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22047 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22048 esac
22049
22050 # Do not use `cd foo && pwd` to compute absolute paths, because
22051 # the directories may not exist.
22052 case `pwd` in
22053 .) ac_abs_builddir="$ac_dir";;
22054 *)
22055 case "$ac_dir" in
22056 .) ac_abs_builddir=`pwd`;;
22057 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22058 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22059 esac;;
22060 esac
22061 case $ac_abs_builddir in
22062 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22063 *)
22064 case ${ac_top_builddir}. in
22065 .) ac_abs_top_builddir=$ac_abs_builddir;;
22066 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22067 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22068 esac;;
22069 esac
22070 case $ac_abs_builddir in
22071 .) ac_abs_srcdir=$ac_srcdir;;
22072 *)
22073 case $ac_srcdir in
22074 .) ac_abs_srcdir=$ac_abs_builddir;;
22075 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22076 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22077 esac;;
22078 esac
22079 case $ac_abs_builddir in
22080 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22081 *)
22082 case $ac_top_srcdir in
22083 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22084 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22085 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22086 esac;;
22087 esac
22088
22089
22090 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22091 echo "$as_me: executing $ac_dest commands" >&6;}
22092 case $ac_dest in
22093 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22094 # Strip MF so we end up with the name of the file.
22095 mf=`echo "$mf" | sed -e 's/:.*$//'`
22096 # Check whether this is an Automake generated Makefile or not.
22097 # We used to match only the files named `Makefile.in', but
22098 # some people rename them; so instead we look at the file content.
22099 # Grep'ing the first line is not enough: some people post-process
22100 # each Makefile.in and add a new line on top of each file to say so.
22101 # So let's grep whole file.
22102 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22103 dirpart=`(dirname "$mf") 2>/dev/null ||
22104 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22105 X"$mf" : 'X\(//\)[^/]' \| \
22106 X"$mf" : 'X\(//\)$' \| \
22107 X"$mf" : 'X\(/\)' \| \
22108 . : '\(.\)' 2>/dev/null ||
22109 echo X"$mf" |
22110 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22111 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22112 /^X\(\/\/\)$/{ s//\1/; q; }
22113 /^X\(\/\).*/{ s//\1/; q; }
22114 s/.*/./; q'`
22115 else
22116 continue
22117 fi
22118 # Extract the definition of DEPDIR, am__include, and am__quote
22119 # from the Makefile without running `make'.
22120 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22121 test -z "$DEPDIR" && continue
22122 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22123 test -z "am__include" && continue
22124 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22125 # When using ansi2knr, U may be empty or an underscore; expand it
22126 U=`sed -n 's/^U = //p' < "$mf"`
22127 # Find all dependency output files, they are included files with
22128 # $(DEPDIR) in their names. We invoke sed twice because it is the
22129 # simplest approach to changing $(DEPDIR) to its actual value in the
22130 # expansion.
22131 for file in `sed -n "
22132 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22133 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22134 # Make sure the directory exists.
22135 test -f "$dirpart/$file" && continue
22136 fdir=`(dirname "$file") 2>/dev/null ||
22137 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22138 X"$file" : 'X\(//\)[^/]' \| \
22139 X"$file" : 'X\(//\)$' \| \
22140 X"$file" : 'X\(/\)' \| \
22141 . : '\(.\)' 2>/dev/null ||
22142 echo X"$file" |
22143 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22144 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22145 /^X\(\/\/\)$/{ s//\1/; q; }
22146 /^X\(\/\).*/{ s//\1/; q; }
22147 s/.*/./; q'`
22148 { if $as_mkdir_p; then
22149 mkdir -p $dirpart/$fdir
22150 else
22151 as_dir=$dirpart/$fdir
22152 as_dirs=
22153 while test ! -d "$as_dir"; do
22154 as_dirs="$as_dir $as_dirs"
22155 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22156 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22157 X"$as_dir" : 'X\(//\)[^/]' \| \
22158 X"$as_dir" : 'X\(//\)$' \| \
22159 X"$as_dir" : 'X\(/\)' \| \
22160 . : '\(.\)' 2>/dev/null ||
22161 echo X"$as_dir" |
22162 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22163 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22164 /^X\(\/\/\)$/{ s//\1/; q; }
22165 /^X\(\/\).*/{ s//\1/; q; }
22166 s/.*/./; q'`
22167 done
22168 test ! -n "$as_dirs" || mkdir $as_dirs
22169 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
22170 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
22171 { (exit 1); exit 1; }; }; }
22172
22173 # echo "creating $dirpart/$file"
22174 echo '# dummy' > "$dirpart/$file"
22175 done
22176 done
22177 ;;
22178 esac
22179 done
22180 _ACEOF
22181
22182 cat >>$CONFIG_STATUS <<\_ACEOF
22183
22184 { (exit 0); exit 0; }
22185 _ACEOF
22186 chmod +x $CONFIG_STATUS
22187 ac_clean_files=$ac_clean_files_save
22188
22189
22190 # configure is writing to config.log, and then calls config.status.
22191 # config.status does its own redirection, appending to config.log.
22192 # Unfortunately, on DOS this fails, as config.log is still kept open
22193 # by configure, so config.status won't be able to write to it; its
22194 # output is simply discarded. So we exec the FD to /dev/null,
22195 # effectively closing config.log, so it can be properly (re)opened and
22196 # appended to by config.status. When coming back to configure, we
22197 # need to make the FD available again.
22198 if test "$no_create" != yes; then
22199 ac_cs_success=:
22200 ac_config_status_args=
22201 test "$silent" = yes &&
22202 ac_config_status_args="$ac_config_status_args --quiet"
22203 exec 5>/dev/null
22204 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22205 exec 5>>config.log
22206 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22207 # would make configure fail if this is the last instruction.
22208 $ac_cs_success || { (exit 1); exit 1; }
22209 fi
22210