2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for util-vserver 0.30.213.
5 # Report bugs to <vserver@list.linux-vserver.org>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 DUALCASE=1; export DUALCASE # for MKS sh
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
140 if ("$as_dir/$as_base" -c '
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174 s,^['$as_cr_digits']*\n,,
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
184 # Exit status is that of the last command.
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
196 if expr a : '\(a\)' >/dev/null 2>&1; then
202 rm -f conf$$ conf$$.exe conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
213 elif ln conf$$.file conf$$ 2>/dev/null; then
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
223 test -d ./-p && rmdir ./-p
227 as_executable_p="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
237 # We need space, tab and new line, in precisely that order.
247 # Check that we are running under the correct shell.
248 SHELL=${CONFIG_SHELL-/bin/sh}
252 # Remove one level of quotation (which was required for Make).
253 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
258 if test "X$1" = X--no-reexec; then
259 # Discard the --no-reexec flag, and continue.
261 elif test "X$1" = X--fallback-echo; then
262 # Avoid inline document here, it may be left over
264 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265 # Yippee, $echo works!
268 # Restart under the correct shell.
269 exec $SHELL "$0" --no-reexec ${1+"$@"}
272 if test "X$1" = X--fallback-echo; then
273 # used as fallback echo
281 # The HP-UX ksh and POSIX shell print the target directory to stdout
283 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
285 if test -z "$ECHO"; then
286 if test "X${echo_test_string+set}" != Xset; then
287 # find a string as large as possible, as long as the shell can cope with it
288 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
291 echo_test_string=`eval $cmd` &&
292 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301 test "X$echo_testing_string" = "X$echo_test_string"; then
304 # The Solaris, AIX, and Digital Unix default echo programs unquote
305 # backslashes. This makes it impossible to quote backslashes using
306 # echo "$something" | sed 's/\\/\\\\/g'
308 # So, first we look for a working echo in the user's PATH.
310 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311 for dir in $PATH /usr/ucb; do
313 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316 test "X$echo_testing_string" = "X$echo_test_string"; then
323 if test "X$echo" = Xecho; then
324 # We didn't find a better echo, so look for alternatives.
325 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327 test "X$echo_testing_string" = "X$echo_test_string"; then
328 # This shell has a builtin print -r that does the trick.
330 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331 test "X$CONFIG_SHELL" != X/bin/ksh; then
332 # If we have ksh, try running configure again with it.
333 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334 export ORIGINAL_CONFIG_SHELL
335 CONFIG_SHELL=/bin/ksh
337 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
341 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343 test "X$echo_testing_string" = "X$echo_test_string"; then
346 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347 test "X$echo_testing_string" = 'X\t' &&
348 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349 test "X$echo_testing_string" = "X$echo_test_string"; then
350 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
352 SHELL="$CONFIG_SHELL"
354 echo="$CONFIG_SHELL $0 --fallback-echo"
355 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356 test "X$echo_testing_string" = 'X\t' &&
357 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358 test "X$echo_testing_string" = "X$echo_test_string"; then
359 echo="$CONFIG_SHELL $0 --fallback-echo"
361 # maybe with a smaller string...
364 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372 if test "$prev" != 'sed 50q "$0"'; then
373 echo_test_string=`eval $prev`
374 export echo_test_string
375 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
377 # Oops. We lost completely, so just stick with echo.
386 # Copy echo and quote the copy suitably for passing to libtool from
387 # the Makefile, instead of quoting the original, which is used later.
389 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
396 tagnames=${tagnames+${tagnames},}CXX
398 tagnames=${tagnames+${tagnames},}F77
401 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402 # so uname gets run too.
403 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410 ac_default_prefix=/usr/local
411 ac_config_libobj_dir=.
416 SHELL=${CONFIG_SHELL-/bin/sh}
418 # Maximum number of lines to put in a shell here document.
419 # This variable seems obsolete. It should probably be removed, and
420 # only ac_max_sed_lines should be used.
421 : ${ac_max_here_lines=38}
423 # Identity of this package.
424 PACKAGE_NAME='util-vserver'
425 PACKAGE_TARNAME='util-vserver'
426 PACKAGE_VERSION='0.30.213'
427 PACKAGE_STRING='util-vserver 0.30.213'
428 PACKAGE_BUGREPORT='vserver@list.linux-vserver.org'
430 ac_unique_file="src/capchroot.c"
431 # Factoring default headers for most tests.
432 ac_includes_default="\
435 # include <sys/types.h>
438 # include <sys/stat.h>
449 # if !STDC_HEADERS && HAVE_MEMORY_H
455 # include <strings.h>
458 # include <inttypes.h>
468 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 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os GPG_KEY CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LN_S ENSC_HAVE_CXX_COMPILER_TRUE ENSC_HAVE_CXX_COMPILER_FALSE ENSC_HAVE_C99_COMPILER_TRUE ENSC_HAVE_C99_COMPILER_FALSE ENSC_PATHPROG_SED CAT CHOWN CMP CP DIRNAME EGREP ENV GREP LN MKDIR MKFIFO MKTEMP MOUNT MV NICE PS RM RMDIR SED SH TAC TAR TOUCH TTY UMOUNT WC IP IPTABLES MODPROBE NAMEIF NOHUP RMMOD VCONFIG WGET FILE GZIP BZIP2 CPIO RESTORE RSYNC DOXYGEN XSLTP XSLTPROC HAVE_XSLTP_TRUE HAVE_XSLTP_FALSE HAVE_XSLTPROC_TRUE HAVE_XSLTPROC_FALSE LIB_DEBUG_CPPFLAGS ENSC_USE_EXPENSIVE_TESTS initrddir RELEASE_CPPFLAGS CPP DIET DIETFLAGS USE_DIETLIBC_TRUE USE_DIETLIBC_FALSE USE_DIETLIBC_COMPAT_TRUE USE_DIETLIBC_COMPAT_FALSE ENSC_USE_DIETLIBC_TRUE ENSC_USE_DIETLIBC_FALSE ENSC_USE_GLIBC_TRUE ENSC_USE_GLIBC_FALSE ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL vserverdir SVN2CL HAVE_SVN2CL_TRUE HAVE_SVN2CL_FALSE ENSC_ENABLE_INTERNAL_HEADERS_TRUE ENSC_ENABLE_INTERNAL_HEADERS_FALSE ENSC_HAVE_BEECRYPT_TRUE ENSC_HAVE_BEECRYPT_FALSE ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE HAVE_GENTOO_INIT_TRUE HAVE_GENTOO_INIT_FALSE HAVE_SYSV_INIT_TRUE HAVE_SYSV_INIT_FALSE LIBOBJS LTLIBOBJS'
471 # Initialize some variables set by options.
473 ac_init_version=false
474 # The variables have the same names as the options, with
475 # dashes changed to underlines.
483 program_transform_name=s,x,x,
491 # Installation directory options.
492 # These are left unexpanded so users can "make install exec_prefix=/foo"
493 # and all the variables that are supposed to be based on exec_prefix
494 # by default will actually change.
495 # Use braces instead of parens because sh, perl, etc. also accept them.
496 bindir='${exec_prefix}/bin'
497 sbindir='${exec_prefix}/sbin'
498 libexecdir='${exec_prefix}/libexec'
499 datadir='${prefix}/share'
500 sysconfdir='${prefix}/etc'
501 sharedstatedir='${prefix}/com'
502 localstatedir='${prefix}/var'
503 libdir='${exec_prefix}/lib'
504 includedir='${prefix}/include'
505 oldincludedir='/usr/include'
506 infodir='${prefix}/info'
507 mandir='${prefix}/man'
512 # If the previous option needs an argument, assign it.
513 if test -n "$ac_prev"; then
514 eval "$ac_prev=\$ac_option"
519 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
521 # Accept the important Cygnus configure options, so we can diagnose typos.
525 -bindir | --bindir | --bindi | --bind | --bin | --bi)
527 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
530 -build | --build | --buil | --bui | --bu)
531 ac_prev=build_alias ;;
532 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533 build_alias=$ac_optarg ;;
535 -cache-file | --cache-file | --cache-fil | --cache-fi \
536 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537 ac_prev=cache_file ;;
538 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540 cache_file=$ac_optarg ;;
543 cache_file=config.cache ;;
545 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
547 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
549 datadir=$ac_optarg ;;
551 -disable-* | --disable-*)
552 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553 # Reject names that are not valid shell variable names.
554 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556 { (exit 1); exit 1; }; }
557 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558 eval "enable_$ac_feature=no" ;;
560 -enable-* | --enable-*)
561 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562 # Reject names that are not valid shell variable names.
563 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565 { (exit 1); exit 1; }; }
566 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
568 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
571 eval "enable_$ac_feature='$ac_optarg'" ;;
573 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575 | --exec | --exe | --ex)
576 ac_prev=exec_prefix ;;
577 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579 | --exec=* | --exe=* | --ex=*)
580 exec_prefix=$ac_optarg ;;
582 -gas | --gas | --ga | --g)
583 # Obsolete; use --with-gas.
586 -help | --help | --hel | --he | -h)
588 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589 ac_init_help=recursive ;;
590 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591 ac_init_help=short ;;
593 -host | --host | --hos | --ho)
594 ac_prev=host_alias ;;
595 -host=* | --host=* | --hos=* | --ho=*)
596 host_alias=$ac_optarg ;;
598 -includedir | --includedir | --includedi | --included | --include \
599 | --includ | --inclu | --incl | --inc)
600 ac_prev=includedir ;;
601 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602 | --includ=* | --inclu=* | --incl=* | --inc=*)
603 includedir=$ac_optarg ;;
605 -infodir | --infodir | --infodi | --infod | --info | --inf)
607 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608 infodir=$ac_optarg ;;
610 -libdir | --libdir | --libdi | --libd)
612 -libdir=* | --libdir=* | --libdi=* | --libd=*)
615 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616 | --libexe | --libex | --libe)
617 ac_prev=libexecdir ;;
618 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619 | --libexe=* | --libex=* | --libe=*)
620 libexecdir=$ac_optarg ;;
622 -localstatedir | --localstatedir | --localstatedi | --localstated \
623 | --localstate | --localstat | --localsta | --localst \
624 | --locals | --local | --loca | --loc | --lo)
625 ac_prev=localstatedir ;;
626 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629 localstatedir=$ac_optarg ;;
631 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
633 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
637 # Obsolete; use --without-fp.
640 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641 | --no-cr | --no-c | -n)
644 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
648 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650 | --oldin | --oldi | --old | --ol | --o)
651 ac_prev=oldincludedir ;;
652 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655 oldincludedir=$ac_optarg ;;
657 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
659 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
662 -program-prefix | --program-prefix | --program-prefi | --program-pref \
663 | --program-pre | --program-pr | --program-p)
664 ac_prev=program_prefix ;;
665 -program-prefix=* | --program-prefix=* | --program-prefi=* \
666 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667 program_prefix=$ac_optarg ;;
669 -program-suffix | --program-suffix | --program-suffi | --program-suff \
670 | --program-suf | --program-su | --program-s)
671 ac_prev=program_suffix ;;
672 -program-suffix=* | --program-suffix=* | --program-suffi=* \
673 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674 program_suffix=$ac_optarg ;;
676 -program-transform-name | --program-transform-name \
677 | --program-transform-nam | --program-transform-na \
678 | --program-transform-n | --program-transform- \
679 | --program-transform | --program-transfor \
680 | --program-transfo | --program-transf \
681 | --program-trans | --program-tran \
682 | --progr-tra | --program-tr | --program-t)
683 ac_prev=program_transform_name ;;
684 -program-transform-name=* | --program-transform-name=* \
685 | --program-transform-nam=* | --program-transform-na=* \
686 | --program-transform-n=* | --program-transform-=* \
687 | --program-transform=* | --program-transfor=* \
688 | --program-transfo=* | --program-transf=* \
689 | --program-trans=* | --program-tran=* \
690 | --progr-tra=* | --program-tr=* | --program-t=*)
691 program_transform_name=$ac_optarg ;;
693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694 | -silent | --silent | --silen | --sile | --sil)
697 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
699 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
701 sbindir=$ac_optarg ;;
703 -sharedstatedir | --sharedstatedir | --sharedstatedi \
704 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705 | --sharedst | --shareds | --shared | --share | --shar \
707 ac_prev=sharedstatedir ;;
708 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
712 sharedstatedir=$ac_optarg ;;
714 -site | --site | --sit)
716 -site=* | --site=* | --sit=*)
719 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
721 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
724 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725 | --syscon | --sysco | --sysc | --sys | --sy)
726 ac_prev=sysconfdir ;;
727 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729 sysconfdir=$ac_optarg ;;
731 -target | --target | --targe | --targ | --tar | --ta | --t)
732 ac_prev=target_alias ;;
733 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734 target_alias=$ac_optarg ;;
736 -v | -verbose | --verbose | --verbos | --verbo | --verb)
739 -version | --version | --versio | --versi | --vers | -V)
743 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744 # Reject names that are not valid shell variable names.
745 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746 { echo "$as_me: error: invalid package name: $ac_package" >&2
747 { (exit 1); exit 1; }; }
748 ac_package=`echo $ac_package| sed 's/-/_/g'`
750 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
753 eval "with_$ac_package='$ac_optarg'" ;;
755 -without-* | --without-*)
756 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757 # Reject names that are not valid shell variable names.
758 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759 { echo "$as_me: error: invalid package name: $ac_package" >&2
760 { (exit 1); exit 1; }; }
761 ac_package=`echo $ac_package | sed 's/-/_/g'`
762 eval "with_$ac_package=no" ;;
765 # Obsolete; use --with-x.
768 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769 | --x-incl | --x-inc | --x-in | --x-i)
770 ac_prev=x_includes ;;
771 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773 x_includes=$ac_optarg ;;
775 -x-libraries | --x-libraries | --x-librarie | --x-librari \
776 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777 ac_prev=x_libraries ;;
778 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780 x_libraries=$ac_optarg ;;
782 -*) { echo "$as_me: error: unrecognized option: $ac_option
783 Try \`$0 --help' for more information." >&2
784 { (exit 1); exit 1; }; }
788 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789 # Reject names that are not valid shell variable names.
790 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792 { (exit 1); exit 1; }; }
793 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794 eval "$ac_envvar='$ac_optarg'"
798 # FIXME: should be removed in autoconf 3.0.
799 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
808 if test -n "$ac_prev"; then
809 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810 { echo "$as_me: error: missing argument to $ac_option" >&2
811 { (exit 1); exit 1; }; }
814 # Be sure to have absolute paths.
815 for ac_var in exec_prefix prefix
817 eval ac_val=$`echo $ac_var`
819 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821 { (exit 1); exit 1; }; };;
825 # Be sure to have absolute paths.
826 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827 localstatedir libdir includedir oldincludedir infodir mandir
829 eval ac_val=$`echo $ac_var`
831 [\\/$]* | ?:[\\/]* ) ;;
832 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833 { (exit 1); exit 1; }; };;
837 # There might be people who depend on the old broken behavior: `$host'
838 # used to hold the argument of --host etc.
839 # FIXME: To remove some day.
844 # FIXME: To remove some day.
845 if test "x$host_alias" != x; then
846 if test "x$build_alias" = x; then
847 cross_compiling=maybe
848 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849 If a cross compiler is detected then cross compile mode will be used." >&2
850 elif test "x$build_alias" != "x$host_alias"; then
856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
858 test "$silent" = yes && exec 6>/dev/null
861 # Find the source files, if location was not specified.
862 if test -z "$srcdir"; then
863 ac_srcdir_defaulted=yes
864 # Try the directory containing this script, then its parent.
865 ac_confdir=`(dirname "$0") 2>/dev/null ||
866 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867 X"$0" : 'X\(//\)[^/]' \| \
868 X"$0" : 'X\(//\)$' \| \
869 X"$0" : 'X\(/\)' \| \
870 . : '\(.\)' 2>/dev/null ||
872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874 /^X\(\/\/\)$/{ s//\1/; q; }
875 /^X\(\/\).*/{ s//\1/; q; }
878 if test ! -r $srcdir/$ac_unique_file; then
882 ac_srcdir_defaulted=no
884 if test ! -r $srcdir/$ac_unique_file; then
885 if test "$ac_srcdir_defaulted" = yes; then
886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887 { (exit 1); exit 1; }; }
889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890 { (exit 1); exit 1; }; }
893 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895 { (exit 1); exit 1; }; }
896 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897 ac_env_build_alias_set=${build_alias+set}
898 ac_env_build_alias_value=$build_alias
899 ac_cv_env_build_alias_set=${build_alias+set}
900 ac_cv_env_build_alias_value=$build_alias
901 ac_env_host_alias_set=${host_alias+set}
902 ac_env_host_alias_value=$host_alias
903 ac_cv_env_host_alias_set=${host_alias+set}
904 ac_cv_env_host_alias_value=$host_alias
905 ac_env_target_alias_set=${target_alias+set}
906 ac_env_target_alias_value=$target_alias
907 ac_cv_env_target_alias_set=${target_alias+set}
908 ac_cv_env_target_alias_value=$target_alias
909 ac_env_CXX_set=${CXX+set}
910 ac_env_CXX_value=$CXX
911 ac_cv_env_CXX_set=${CXX+set}
912 ac_cv_env_CXX_value=$CXX
913 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
914 ac_env_CXXFLAGS_value=$CXXFLAGS
915 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
916 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
921 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_env_CPPFLAGS_value=$CPPFLAGS
923 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925 ac_env_CC_set=${CC+set}
927 ac_cv_env_CC_set=${CC+set}
928 ac_cv_env_CC_value=$CC
929 ac_env_CFLAGS_set=${CFLAGS+set}
930 ac_env_CFLAGS_value=$CFLAGS
931 ac_cv_env_CFLAGS_set=${CFLAGS+set}
932 ac_cv_env_CFLAGS_value=$CFLAGS
933 ac_env_CPP_set=${CPP+set}
934 ac_env_CPP_value=$CPP
935 ac_cv_env_CPP_set=${CPP+set}
936 ac_cv_env_CPP_value=$CPP
937 ac_env_DIET_set=${DIET+set}
938 ac_env_DIET_value=$DIET
939 ac_cv_env_DIET_set=${DIET+set}
940 ac_cv_env_DIET_value=$DIET
941 ac_env_DIETFLAGS_set=${DIETFLAGS+set}
942 ac_env_DIETFLAGS_value=$DIETFLAGS
943 ac_cv_env_DIETFLAGS_set=${DIETFLAGS+set}
944 ac_cv_env_DIETFLAGS_value=$DIETFLAGS
945 ac_env_CXXCPP_set=${CXXCPP+set}
946 ac_env_CXXCPP_value=$CXXCPP
947 ac_cv_env_CXXCPP_set=${CXXCPP+set}
948 ac_cv_env_CXXCPP_value=$CXXCPP
949 ac_env_F77_set=${F77+set}
950 ac_env_F77_value=$F77
951 ac_cv_env_F77_set=${F77+set}
952 ac_cv_env_F77_value=$F77
953 ac_env_FFLAGS_set=${FFLAGS+set}
954 ac_env_FFLAGS_value=$FFLAGS
955 ac_cv_env_FFLAGS_set=${FFLAGS+set}
956 ac_cv_env_FFLAGS_value=$FFLAGS
959 # Report the --help message.
961 if test "$ac_init_help" = "long"; then
962 # Omit some internal or obsolete options to make the list less imposing.
963 # This message is too long to be a string in the A/UX 3.1 sh.
965 \`configure' configures util-vserver 0.30.213 to adapt to many kinds of systems.
967 Usage: $0 [OPTION]... [VAR=VALUE]...
969 To assign environment variables (e.g., CC, CFLAGS...), specify them as
970 VAR=VALUE. See below for descriptions of some of the useful variables.
972 Defaults for the options are specified in brackets.
975 -h, --help display this help and exit
976 --help=short display options specific to this package
977 --help=recursive display the short help of all the included packages
978 -V, --version display version information and exit
979 -q, --quiet, --silent do not print \`checking...' messages
980 --cache-file=FILE cache test results in FILE [disabled]
981 -C, --config-cache alias for \`--cache-file=config.cache'
982 -n, --no-create do not create output files
983 --srcdir=DIR find the sources in DIR [configure dir or \`..']
988 Installation directories:
989 --prefix=PREFIX install architecture-independent files in PREFIX
991 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
994 By default, \`make install' will install all the files in
995 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
996 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
997 for instance \`--prefix=\$HOME'.
999 For better control, use the options below.
1001 Fine tuning of the installation directories:
1002 --bindir=DIR user executables [EPREFIX/bin]
1003 --sbindir=DIR system admin executables [EPREFIX/sbin]
1004 --libexecdir=DIR program executables [EPREFIX/libexec]
1005 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1006 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1007 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1008 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1009 --libdir=DIR object code libraries [EPREFIX/lib]
1010 --includedir=DIR C header files [PREFIX/include]
1011 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1012 --infodir=DIR info documentation [PREFIX/info]
1013 --mandir=DIR man documentation [PREFIX/man]
1019 --program-prefix=PREFIX prepend PREFIX to installed program names
1020 --program-suffix=SUFFIX append SUFFIX to installed program names
1021 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1024 --build=BUILD configure for building on BUILD [guessed]
1025 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1029 if test -n "$ac_init_help"; then
1030 case $ac_init_help in
1031 short | recursive ) echo "Configuration of util-vserver 0.30.213:";;
1036 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1037 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1038 --enable-maintainer-mode enable make rules and dependencies not useful
1039 (and sometimes confusing) to the casual installer
1040 --disable-dependency-tracking speeds up one-time build
1041 --enable-dependency-tracking do not reject slow dependency extractors
1042 --disable-extra-optimizations
1043 disable certain extra optimizations (default: no)
1044 --enable-lib-debug enable additional debug code in library (default:
1046 --enable-expensive-tests
1047 disable tests which might be expensive on some
1048 systems (default: no)
1049 --enable-release enable release mode (default: no)
1050 --disable-alternative-syscalls
1051 do not use the alternative _syscallX macros provided
1052 by Herbert Poetzl (default: use them)
1053 --disable-dietlibc do not use dietlibc resp. enforce its usage (with
1054 --enable-dietlibc) (default: autodetect dietlibc)
1055 --enable-shared[=PKGS]
1056 build shared libraries [default=yes]
1057 --enable-static[=PKGS]
1058 build static libraries [default=yes]
1059 --enable-fast-install[=PKGS]
1060 optimize for fast installation [default=yes]
1061 --disable-libtool-lock avoid locking (might break parallel builds)
1062 --disable-internal-headers
1063 use vserver specific headers from the kernel instead
1064 of the shipped versions (default: no)
1065 --enable-apis=APIS enable support for the given apis; possible values
1066 are: legacy,compat,v11,fscompat,v13obs,v13,net,
1067 ALL,NOLEGACY (default: v13,net,v21)
1070 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1071 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1072 --with-initrddir <DIR> use <DIR> as directory for SysV init-files (default:
1074 --with-syscall=METHOD call syscall(2) with the specified METHOD; valid
1075 values are 'fast', 'traditional' and 'auto'
1077 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1078 --with-pic try to use only PIC/non-PIC objects [default=use
1081 include additional configurations [automatic]
1082 --with-vrootdir=DIR place vservers under DIR (default: /vservers)
1083 --with-initscripts=TYPE force host initscripts; valid values are 'gentoo'
1084 and 'sysv' (default: guess)
1086 Some influential environment variables:
1087 CXX C++ compiler command
1088 CXXFLAGS C++ compiler flags
1089 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1090 nonstandard directory <lib dir>
1091 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1092 headers in a nonstandard directory <include dir>
1093 CC C compiler command
1094 CFLAGS C compiler flags
1096 DIET The 'diet' wrapper (default: diet)
1097 DIETFLAGS Flags passed to the 'diet' wrapper (default: -O)
1098 CXXCPP C++ preprocessor
1099 F77 Fortran 77 compiler command
1100 FFLAGS Fortran 77 compiler flags
1102 Use these variables to override the choices made by `configure' or to help
1103 it to find libraries and programs with nonstandard names/locations.
1105 Report bugs to <vserver@list.linux-vserver.org>.
1109 if test "$ac_init_help" = "recursive"; then
1110 # If there are subdirs, report their specific --help.
1112 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1113 test -d $ac_dir || continue
1116 if test "$ac_dir" != .; then
1117 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1118 # A "../" for each directory in $ac_dir_suffix.
1119 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1121 ac_dir_suffix= ac_top_builddir=
1125 .) # No --srcdir option. We are building in place.
1127 if test -z "$ac_top_builddir"; then
1130 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1132 [\\/]* | ?:[\\/]* ) # Absolute path.
1133 ac_srcdir=$srcdir$ac_dir_suffix;
1134 ac_top_srcdir=$srcdir ;;
1136 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1137 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1140 # Do not use `cd foo && pwd` to compute absolute paths, because
1141 # the directories may not exist.
1143 .) ac_abs_builddir="$ac_dir";;
1146 .) ac_abs_builddir=`pwd`;;
1147 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1148 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1151 case $ac_abs_builddir in
1152 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1154 case ${ac_top_builddir}. in
1155 .) ac_abs_top_builddir=$ac_abs_builddir;;
1156 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1157 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1160 case $ac_abs_builddir in
1161 .) ac_abs_srcdir=$ac_srcdir;;
1164 .) ac_abs_srcdir=$ac_abs_builddir;;
1165 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1166 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1169 case $ac_abs_builddir in
1170 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1172 case $ac_top_srcdir in
1173 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1174 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1175 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1180 # Check for guested configure; otherwise get Cygnus style configure.
1181 if test -f $ac_srcdir/configure.gnu; then
1183 $SHELL $ac_srcdir/configure.gnu --help=recursive
1184 elif test -f $ac_srcdir/configure; then
1186 $SHELL $ac_srcdir/configure --help=recursive
1187 elif test -f $ac_srcdir/configure.ac ||
1188 test -f $ac_srcdir/configure.in; then
1190 $ac_configure --help
1192 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1198 test -n "$ac_init_help" && exit 0
1199 if $ac_init_version; then
1201 util-vserver configure 0.30.213
1202 generated by GNU Autoconf 2.59
1204 Copyright (C) 2003 Free Software Foundation, Inc.
1205 This configure script is free software; the Free Software Foundation
1206 gives unlimited permission to copy, distribute and modify it.
1212 This file contains any messages produced by compilers while
1213 running configure, to aid debugging if configure makes a mistake.
1215 It was created by util-vserver $as_me 0.30.213, which was
1216 generated by GNU Autoconf 2.59. Invocation command line was
1227 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1228 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1229 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1230 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1231 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1233 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1234 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1236 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1237 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1238 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1239 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1240 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1241 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1242 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1250 test -z "$as_dir" && as_dir=.
1251 echo "PATH: $as_dir"
1266 # Keep a trace of the command line.
1267 # Strip out --no-create and --no-recursion so they do not pile up.
1268 # Strip out --silent because we don't want to record it for future runs.
1269 # Also quote any args containing shell meta-characters.
1270 # Make two passes to allow for proper duplicate-argument suppression.
1275 ac_must_keep_next=false
1281 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1282 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1283 | -silent | --silent | --silen | --sile | --sil)
1285 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1286 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1289 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1291 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1292 if test $ac_must_keep_next = true; then
1293 ac_must_keep_next=false # Got value, back to normal.
1296 *=* | --config-cache | -C | -disable-* | --disable-* \
1297 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1298 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1299 | -with-* | --with-* | -without-* | --without-* | --x)
1300 case "$ac_configure_args0 " in
1301 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1304 -* ) ac_must_keep_next=true ;;
1307 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1308 # Get rid of the leading space.
1314 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1315 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1317 # When interrupted or exit'd, cleanup temporary files, and complete
1318 # config.log. We remove comments because anyway the quotes in there
1319 # would cause problems or look ugly.
1320 # WARNING: Be sure not to use single quotes in there, as some shells,
1321 # such as our DU 5.0 friend, will then `close' the trap.
1322 trap 'exit_status=$?
1323 # Save into config.log some information that might help in debugging.
1328 ## ---------------- ##
1329 ## Cache variables. ##
1330 ## ---------------- ##
1333 # The following way of writing the cache mishandles newlines in values,
1336 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1339 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1340 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1344 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1351 ## ----------------- ##
1352 ## Output variables. ##
1353 ## ----------------- ##
1356 for ac_var in $ac_subst_vars
1358 eval ac_val=$`echo $ac_var`
1359 echo "$ac_var='"'"'$ac_val'"'"'"
1363 if test -n "$ac_subst_files"; then
1370 for ac_var in $ac_subst_files
1372 eval ac_val=$`echo $ac_var`
1373 echo "$ac_var='"'"'$ac_val'"'"'"
1378 if test -s confdefs.h; then
1385 sed "/^$/d" confdefs.h | sort
1388 test "$ac_signal" != 0 &&
1389 echo "$as_me: caught signal $ac_signal"
1390 echo "$as_me: exit $exit_status"
1392 rm -f core *.core &&
1393 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1396 for ac_signal in 1 2 13 15; do
1397 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1401 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1402 rm -rf conftest* confdefs.h
1403 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1406 # Predefined preprocessor variables.
1408 cat >>confdefs.h <<_ACEOF
1409 #define PACKAGE_NAME "$PACKAGE_NAME"
1413 cat >>confdefs.h <<_ACEOF
1414 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1418 cat >>confdefs.h <<_ACEOF
1419 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1423 cat >>confdefs.h <<_ACEOF
1424 #define PACKAGE_STRING "$PACKAGE_STRING"
1428 cat >>confdefs.h <<_ACEOF
1429 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1433 # Let the site file select an alternate cache file if it wants to.
1434 # Prefer explicitly selected file to automatically selected ones.
1435 if test -z "$CONFIG_SITE"; then
1436 if test "x$prefix" != xNONE; then
1437 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1439 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1442 for ac_site_file in $CONFIG_SITE; do
1443 if test -r "$ac_site_file"; then
1444 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1445 echo "$as_me: loading site script $ac_site_file" >&6;}
1446 sed 's/^/| /' "$ac_site_file" >&5
1451 if test -r "$cache_file"; then
1452 # Some versions of bash will fail to source /dev/null (special
1453 # files actually), so we avoid doing that.
1454 if test -f "$cache_file"; then
1455 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1456 echo "$as_me: loading cache $cache_file" >&6;}
1458 [\\/]* | ?:[\\/]* ) . $cache_file;;
1459 *) . ./$cache_file;;
1463 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1464 echo "$as_me: creating cache $cache_file" >&6;}
1468 # Check that the precious variables saved in the cache have kept the same
1470 ac_cache_corrupted=false
1471 for ac_var in `(set) 2>&1 |
1472 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1473 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1474 eval ac_new_set=\$ac_env_${ac_var}_set
1475 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1476 eval ac_new_val="\$ac_env_${ac_var}_value"
1477 case $ac_old_set,$ac_new_set in
1479 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1480 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1481 ac_cache_corrupted=: ;;
1483 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1484 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1485 ac_cache_corrupted=: ;;
1488 if test "x$ac_old_val" != "x$ac_new_val"; then
1489 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1490 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1491 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1492 echo "$as_me: former value: $ac_old_val" >&2;}
1493 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1494 echo "$as_me: current value: $ac_new_val" >&2;}
1495 ac_cache_corrupted=:
1498 # Pass precious variables to config.status.
1499 if test "$ac_new_set" = set; then
1501 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1502 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1503 *) ac_arg=$ac_var=$ac_new_val ;;
1505 case " $ac_configure_args " in
1506 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1507 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1511 if $ac_cache_corrupted; then
1512 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1513 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1514 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1515 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1516 { (exit 1); exit 1; }; }
1520 ac_cpp='$CPP $CPPFLAGS'
1521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1552 ac_config_headers="$ac_config_headers config.h"
1555 am__api_version="1.9"
1557 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1558 if test -f $ac_dir/install-sh; then
1560 ac_install_sh="$ac_aux_dir/install-sh -c"
1562 elif test -f $ac_dir/install.sh; then
1564 ac_install_sh="$ac_aux_dir/install.sh -c"
1566 elif test -f $ac_dir/shtool; then
1568 ac_install_sh="$ac_aux_dir/shtool install -c"
1572 if test -z "$ac_aux_dir"; then
1573 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1574 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1575 { (exit 1); exit 1; }; }
1577 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1578 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1579 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1581 # Find a good install program. We prefer a C program (faster),
1582 # so one script is as good as another. But avoid the broken or
1583 # incompatible versions:
1584 # SysV /etc/install, /usr/sbin/install
1585 # SunOS /usr/etc/install
1586 # IRIX /sbin/install
1588 # AmigaOS /C/install, which installs bootblocks on floppy discs
1589 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1590 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1591 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1592 # OS/2's system install, which has a completely different semantic
1593 # ./install, which can be erroneously created by make from ./install.sh.
1594 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1595 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1596 if test -z "$INSTALL"; then
1597 if test "${ac_cv_path_install+set}" = set; then
1598 echo $ECHO_N "(cached) $ECHO_C" >&6
1600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1604 test -z "$as_dir" && as_dir=.
1605 # Account for people who put trailing slashes in PATH elements.
1607 ./ | .// | /cC/* | \
1608 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1609 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1612 # OSF1 and SCO ODT 3.0 have their own names for install.
1613 # Don't use installbsd from OSF since it installs stuff as root
1615 for ac_prog in ginstall scoinst install; do
1616 for ac_exec_ext in '' $ac_executable_extensions; do
1617 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1618 if test $ac_prog = install &&
1619 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1620 # AIX install. It has an incompatible calling convention.
1622 elif test $ac_prog = install &&
1623 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1624 # program-specific install script used by HP pwplus--don't use.
1627 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1639 if test "${ac_cv_path_install+set}" = set; then
1640 INSTALL=$ac_cv_path_install
1642 # As a last resort, use the slow shell script. We don't cache a
1643 # path for INSTALL within a source directory, because that will
1644 # break other packages using the cache if that directory is
1645 # removed, or if the path is relative.
1646 INSTALL=$ac_install_sh
1649 echo "$as_me:$LINENO: result: $INSTALL" >&5
1650 echo "${ECHO_T}$INSTALL" >&6
1652 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1653 # It thinks the first close brace ends the variable substitution.
1654 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1656 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1658 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1660 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1661 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1664 echo timestamp > conftest.file
1665 # Do `set' in a subshell so we don't clobber the current shell's
1666 # arguments. Must try -L first in case configure is actually a
1667 # symlink; some systems play weird games with the mod time of symlinks
1668 # (eg FreeBSD returns the mod time of the symlink's containing
1671 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1672 if test "$*" = "X"; then
1674 set X `ls -t $srcdir/configure conftest.file`
1677 if test "$*" != "X $srcdir/configure conftest.file" \
1678 && test "$*" != "X conftest.file $srcdir/configure"; then
1680 # If neither matched, then we have a broken ls. This can happen
1681 # if, for instance, CONFIG_SHELL is bash and it inherits a
1682 # broken ls alias from the environment. This has actually
1683 # happened. Such a system could not be considered "sane".
1684 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1685 alias in your environment" >&5
1686 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1687 alias in your environment" >&2;}
1688 { (exit 1); exit 1; }; }
1691 test "$2" = conftest.file
1697 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1698 Check your system clock" >&5
1699 echo "$as_me: error: newly created file is older than distributed files!
1700 Check your system clock" >&2;}
1701 { (exit 1); exit 1; }; }
1703 echo "$as_me:$LINENO: result: yes" >&5
1704 echo "${ECHO_T}yes" >&6
1705 test "$program_prefix" != NONE &&
1706 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1707 # Use a double $ so make ignores it.
1708 test "$program_suffix" != NONE &&
1709 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1710 # Double any \ or $. echo might interpret backslashes.
1711 # By default was `s,x,x', remove it if useless.
1712 cat <<\_ACEOF >conftest.sed
1713 s/[\\$]/&&/g;s/;s,x,x,$//
1715 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1718 # expand $ac_aux_dir to an absolute path
1719 am_aux_dir=`cd $ac_aux_dir && pwd`
1721 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1722 # Use eval to expand $SHELL
1723 if eval "$MISSING --run true"; then
1724 am_missing_run="$MISSING --run "
1727 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1728 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1731 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1732 # We used to keeping the `.' as first argument, in order to
1733 # allow $(mkdir_p) to be used without argument. As in
1734 # $(mkdir_p) $(somedir)
1735 # where $(somedir) is conditionally defined. However this is wrong
1737 # 1. if the package is installed by a user who cannot write `.'
1738 # make install will fail,
1739 # 2. the above comment should most certainly read
1740 # $(mkdir_p) $(DESTDIR)$(somedir)
1741 # so it does not work when $(somedir) is undefined and
1742 # $(DESTDIR) is not.
1743 # To support the latter case, we have to write
1744 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1745 # so the `.' trick is pointless.
1746 mkdir_p='mkdir -p --'
1748 # On NextStep and OpenStep, the `mkdir' command does not
1749 # recognize any option. It will interpret all options as
1750 # directories to create, and then abort because `.' already
1752 for d in ./-p ./--version;
1754 test -d $d && rmdir $d
1756 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1757 if test -f "$ac_aux_dir/mkinstalldirs"; then
1758 mkdir_p='$(mkinstalldirs)'
1760 mkdir_p='$(install_sh) -d'
1764 for ac_prog in gawk mawk nawk awk
1766 # Extract the first word of "$ac_prog", so it can be a program name with args.
1767 set dummy $ac_prog; ac_word=$2
1768 echo "$as_me:$LINENO: checking for $ac_word" >&5
1769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1770 if test "${ac_cv_prog_AWK+set}" = set; then
1771 echo $ECHO_N "(cached) $ECHO_C" >&6
1773 if test -n "$AWK"; then
1774 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1780 test -z "$as_dir" && as_dir=.
1781 for ac_exec_ext in '' $ac_executable_extensions; do
1782 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1783 ac_cv_prog_AWK="$ac_prog"
1784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1793 if test -n "$AWK"; then
1794 echo "$as_me:$LINENO: result: $AWK" >&5
1795 echo "${ECHO_T}$AWK" >&6
1797 echo "$as_me:$LINENO: result: no" >&5
1798 echo "${ECHO_T}no" >&6
1801 test -n "$AWK" && break
1804 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1805 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1806 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1807 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1808 echo $ECHO_N "(cached) $ECHO_C" >&6
1810 cat >conftest.make <<\_ACEOF
1812 @echo 'ac_maketemp="$(MAKE)"'
1814 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1815 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1816 if test -n "$ac_maketemp"; then
1817 eval ac_cv_prog_make_${ac_make}_set=yes
1819 eval ac_cv_prog_make_${ac_make}_set=no
1823 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1824 echo "$as_me:$LINENO: result: yes" >&5
1825 echo "${ECHO_T}yes" >&6
1828 echo "$as_me:$LINENO: result: no" >&5
1829 echo "${ECHO_T}no" >&6
1830 SET_MAKE="MAKE=${MAKE-make}"
1833 rm -rf .tst 2>/dev/null
1834 mkdir .tst 2>/dev/null
1835 if test -d .tst; then
1840 rmdir .tst 2>/dev/null
1842 # test to see if srcdir already configured
1843 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1844 test -f $srcdir/config.status; then
1845 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1846 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1847 { (exit 1); exit 1; }; }
1850 # test whether we have cygpath
1851 if test -z "$CYGPATH_W"; then
1852 if (cygpath --version) >/dev/null 2>/dev/null; then
1853 CYGPATH_W='cygpath -w'
1860 # Define the identity of the package.
1861 PACKAGE='util-vserver'
1865 cat >>confdefs.h <<_ACEOF
1866 #define PACKAGE "$PACKAGE"
1870 cat >>confdefs.h <<_ACEOF
1871 #define VERSION "$VERSION"
1874 # Some tools Automake needs.
1876 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1879 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1882 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1885 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1888 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1890 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1892 # Installed binaries are usually stripped using `strip' when the user
1893 # run `make install-strip'. However `strip' might not be the right
1894 # tool to use in cross-compilation environments, therefore Automake
1895 # will honor the `STRIP' environment variable to overrule this program.
1896 if test "$cross_compiling" != no; then
1897 if test -n "$ac_tool_prefix"; then
1898 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1899 set dummy ${ac_tool_prefix}strip; ac_word=$2
1900 echo "$as_me:$LINENO: checking for $ac_word" >&5
1901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1902 if test "${ac_cv_prog_STRIP+set}" = set; then
1903 echo $ECHO_N "(cached) $ECHO_C" >&6
1905 if test -n "$STRIP"; then
1906 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1912 test -z "$as_dir" && as_dir=.
1913 for ac_exec_ext in '' $ac_executable_extensions; do
1914 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1915 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1924 STRIP=$ac_cv_prog_STRIP
1925 if test -n "$STRIP"; then
1926 echo "$as_me:$LINENO: result: $STRIP" >&5
1927 echo "${ECHO_T}$STRIP" >&6
1929 echo "$as_me:$LINENO: result: no" >&5
1930 echo "${ECHO_T}no" >&6
1934 if test -z "$ac_cv_prog_STRIP"; then
1936 # Extract the first word of "strip", so it can be a program name with args.
1937 set dummy strip; ac_word=$2
1938 echo "$as_me:$LINENO: checking for $ac_word" >&5
1939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1940 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1941 echo $ECHO_N "(cached) $ECHO_C" >&6
1943 if test -n "$ac_ct_STRIP"; then
1944 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1950 test -z "$as_dir" && as_dir=.
1951 for ac_exec_ext in '' $ac_executable_extensions; do
1952 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1953 ac_cv_prog_ac_ct_STRIP="strip"
1954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1960 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1963 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1964 if test -n "$ac_ct_STRIP"; then
1965 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1966 echo "${ECHO_T}$ac_ct_STRIP" >&6
1968 echo "$as_me:$LINENO: result: no" >&5
1969 echo "${ECHO_T}no" >&6
1974 STRIP="$ac_cv_prog_STRIP"
1978 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1980 # We need awk for the "check" target. The system "awk" is bad on
1982 # Always define AMTAR for backward compatibility.
1984 AMTAR=${AMTAR-"${am_missing_run}tar"}
1986 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1992 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1993 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1994 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1995 if test "${enable_maintainer_mode+set}" = set; then
1996 enableval="$enable_maintainer_mode"
1997 USE_MAINTAINER_MODE=$enableval
1999 USE_MAINTAINER_MODE=no
2001 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2002 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2005 if test $USE_MAINTAINER_MODE = yes; then
2006 MAINTAINER_MODE_TRUE=
2007 MAINTAINER_MODE_FALSE='#'
2009 MAINTAINER_MODE_TRUE='#'
2010 MAINTAINER_MODE_FALSE=
2013 MAINT=$MAINTAINER_MODE_TRUE
2017 # Make sure we can run config.sub.
2018 $ac_config_sub sun4 >/dev/null 2>&1 ||
2019 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2020 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2021 { (exit 1); exit 1; }; }
2023 echo "$as_me:$LINENO: checking build system type" >&5
2024 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2025 if test "${ac_cv_build+set}" = set; then
2026 echo $ECHO_N "(cached) $ECHO_C" >&6
2028 ac_cv_build_alias=$build_alias
2029 test -z "$ac_cv_build_alias" &&
2030 ac_cv_build_alias=`$ac_config_guess`
2031 test -z "$ac_cv_build_alias" &&
2032 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2033 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2034 { (exit 1); exit 1; }; }
2035 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2036 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2037 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2038 { (exit 1); exit 1; }; }
2041 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2042 echo "${ECHO_T}$ac_cv_build" >&6
2044 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2045 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2046 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2049 echo "$as_me:$LINENO: checking host system type" >&5
2050 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2051 if test "${ac_cv_host+set}" = set; then
2052 echo $ECHO_N "(cached) $ECHO_C" >&6
2054 ac_cv_host_alias=$host_alias
2055 test -z "$ac_cv_host_alias" &&
2056 ac_cv_host_alias=$ac_cv_build_alias
2057 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2058 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2059 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2060 { (exit 1); exit 1; }; }
2063 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2064 echo "${ECHO_T}$ac_cv_host" >&6
2066 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2067 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2068 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2072 GPG_KEY="0xFFD316AC53ACA43A!"
2075 # Checks for programs.
2077 ac_cpp='$CXXCPP $CPPFLAGS'
2078 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2079 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2080 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2081 if test -n "$ac_tool_prefix"; then
2082 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2084 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2085 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2086 echo "$as_me:$LINENO: checking for $ac_word" >&5
2087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2088 if test "${ac_cv_prog_CXX+set}" = set; then
2089 echo $ECHO_N "(cached) $ECHO_C" >&6
2091 if test -n "$CXX"; then
2092 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2098 test -z "$as_dir" && as_dir=.
2099 for ac_exec_ext in '' $ac_executable_extensions; do
2100 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2101 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2111 if test -n "$CXX"; then
2112 echo "$as_me:$LINENO: result: $CXX" >&5
2113 echo "${ECHO_T}$CXX" >&6
2115 echo "$as_me:$LINENO: result: no" >&5
2116 echo "${ECHO_T}no" >&6
2119 test -n "$CXX" && break
2122 if test -z "$CXX"; then
2124 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2126 # Extract the first word of "$ac_prog", so it can be a program name with args.
2127 set dummy $ac_prog; ac_word=$2
2128 echo "$as_me:$LINENO: checking for $ac_word" >&5
2129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2130 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2131 echo $ECHO_N "(cached) $ECHO_C" >&6
2133 if test -n "$ac_ct_CXX"; then
2134 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2140 test -z "$as_dir" && as_dir=.
2141 for ac_exec_ext in '' $ac_executable_extensions; do
2142 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2143 ac_cv_prog_ac_ct_CXX="$ac_prog"
2144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2152 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2153 if test -n "$ac_ct_CXX"; then
2154 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2155 echo "${ECHO_T}$ac_ct_CXX" >&6
2157 echo "$as_me:$LINENO: result: no" >&5
2158 echo "${ECHO_T}no" >&6
2161 test -n "$ac_ct_CXX" && break
2163 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2169 # Provide some information about the compiler.
2170 echo "$as_me:$LINENO:" \
2171 "checking for C++ compiler version" >&5
2172 ac_compiler=`set X $ac_compile; echo $2`
2173 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2174 (eval $ac_compiler --version </dev/null >&5) 2>&5
2176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177 (exit $ac_status); }
2178 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2179 (eval $ac_compiler -v </dev/null >&5) 2>&5
2181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182 (exit $ac_status); }
2183 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2184 (eval $ac_compiler -V </dev/null >&5) 2>&5
2186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187 (exit $ac_status); }
2189 cat >conftest.$ac_ext <<_ACEOF
2192 cat confdefs.h >>conftest.$ac_ext
2193 cat >>conftest.$ac_ext <<_ACEOF
2194 /* end confdefs.h. */
2204 ac_clean_files_save=$ac_clean_files
2205 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2206 # Try to create an executable without -o first, disregard a.out.
2207 # It will help us diagnose broken compilers, and finding out an intuition
2209 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2210 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2211 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2212 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2213 (eval $ac_link_default) 2>&5
2215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216 (exit $ac_status); }; then
2217 # Find the output, starting from the most likely. This scheme is
2218 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2221 # Be careful to initialize this variable, since it used to be cached.
2222 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2224 # b.out is created by i960 compilers.
2225 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2227 test -f "$ac_file" || continue
2229 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2232 # This is the source file.
2235 # We found the default executable, but exeext='' is most
2239 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2240 # FIXME: I believe we export ac_cv_exeext for Libtool,
2241 # but it would be cool to find out if it's true. Does anybody
2242 # maintain Libtool? --akim.
2250 echo "$as_me: failed program was:" >&5
2251 sed 's/^/| /' conftest.$ac_ext >&5
2253 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2254 See \`config.log' for more details." >&5
2255 echo "$as_me: error: C++ compiler cannot create executables
2256 See \`config.log' for more details." >&2;}
2257 { (exit 77); exit 77; }; }
2260 ac_exeext=$ac_cv_exeext
2261 echo "$as_me:$LINENO: result: $ac_file" >&5
2262 echo "${ECHO_T}$ac_file" >&6
2264 # Check the compiler produces executables we can run. If not, either
2265 # the compiler is broken, or we cross compile.
2266 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2267 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2268 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2269 # If not cross compiling, check that we can run a simple program.
2270 if test "$cross_compiling" != yes; then
2271 if { ac_try='./$ac_file'
2272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276 (exit $ac_status); }; }; then
2279 if test "$cross_compiling" = maybe; then
2282 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2283 If you meant to cross compile, use \`--host'.
2284 See \`config.log' for more details." >&5
2285 echo "$as_me: error: cannot run C++ compiled programs.
2286 If you meant to cross compile, use \`--host'.
2287 See \`config.log' for more details." >&2;}
2288 { (exit 1); exit 1; }; }
2292 echo "$as_me:$LINENO: result: yes" >&5
2293 echo "${ECHO_T}yes" >&6
2295 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2296 ac_clean_files=$ac_clean_files_save
2297 # Check the compiler produces executables we can run. If not, either
2298 # the compiler is broken, or we cross compile.
2299 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2300 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2301 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2302 echo "${ECHO_T}$cross_compiling" >&6
2304 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2305 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2307 (eval $ac_link) 2>&5
2309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2310 (exit $ac_status); }; then
2311 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2312 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2313 # work properly (i.e., refer to `conftest.exe'), while it won't with
2315 for ac_file in conftest.exe conftest conftest.*; do
2316 test -f "$ac_file" || continue
2318 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2319 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2326 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2327 See \`config.log' for more details." >&5
2328 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2329 See \`config.log' for more details." >&2;}
2330 { (exit 1); exit 1; }; }
2333 rm -f conftest$ac_cv_exeext
2334 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2335 echo "${ECHO_T}$ac_cv_exeext" >&6
2337 rm -f conftest.$ac_ext
2338 EXEEXT=$ac_cv_exeext
2340 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2341 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2342 if test "${ac_cv_objext+set}" = set; then
2343 echo $ECHO_N "(cached) $ECHO_C" >&6
2345 cat >conftest.$ac_ext <<_ACEOF
2348 cat confdefs.h >>conftest.$ac_ext
2349 cat >>conftest.$ac_ext <<_ACEOF
2350 /* end confdefs.h. */
2360 rm -f conftest.o conftest.obj
2361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2362 (eval $ac_compile) 2>&5
2364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365 (exit $ac_status); }; then
2366 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2368 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2369 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2374 echo "$as_me: failed program was:" >&5
2375 sed 's/^/| /' conftest.$ac_ext >&5
2377 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2378 See \`config.log' for more details." >&5
2379 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2380 See \`config.log' for more details." >&2;}
2381 { (exit 1); exit 1; }; }
2384 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2386 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2387 echo "${ECHO_T}$ac_cv_objext" >&6
2388 OBJEXT=$ac_cv_objext
2390 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2391 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2392 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2393 echo $ECHO_N "(cached) $ECHO_C" >&6
2395 cat >conftest.$ac_ext <<_ACEOF
2398 cat confdefs.h >>conftest.$ac_ext
2399 cat >>conftest.$ac_ext <<_ACEOF
2400 /* end confdefs.h. */
2413 rm -f conftest.$ac_objext
2414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2415 (eval $ac_compile) 2>conftest.er1
2417 grep -v '^ *+' conftest.er1 >conftest.err
2419 cat conftest.err >&5
2420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421 (exit $ac_status); } &&
2422 { ac_try='test -z "$ac_cxx_werror_flag"
2423 || test ! -s conftest.err'
2424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428 (exit $ac_status); }; } &&
2429 { ac_try='test -s conftest.$ac_objext'
2430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434 (exit $ac_status); }; }; then
2437 echo "$as_me: failed program was:" >&5
2438 sed 's/^/| /' conftest.$ac_ext >&5
2442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2443 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2446 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2447 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2448 GXX=`test $ac_compiler_gnu = yes && echo yes`
2449 ac_test_CXXFLAGS=${CXXFLAGS+set}
2450 ac_save_CXXFLAGS=$CXXFLAGS
2452 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2453 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2454 if test "${ac_cv_prog_cxx_g+set}" = set; then
2455 echo $ECHO_N "(cached) $ECHO_C" >&6
2457 cat >conftest.$ac_ext <<_ACEOF
2460 cat confdefs.h >>conftest.$ac_ext
2461 cat >>conftest.$ac_ext <<_ACEOF
2462 /* end confdefs.h. */
2472 rm -f conftest.$ac_objext
2473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2474 (eval $ac_compile) 2>conftest.er1
2476 grep -v '^ *+' conftest.er1 >conftest.err
2478 cat conftest.err >&5
2479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480 (exit $ac_status); } &&
2481 { ac_try='test -z "$ac_cxx_werror_flag"
2482 || test ! -s conftest.err'
2483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487 (exit $ac_status); }; } &&
2488 { ac_try='test -s conftest.$ac_objext'
2489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493 (exit $ac_status); }; }; then
2494 ac_cv_prog_cxx_g=yes
2496 echo "$as_me: failed program was:" >&5
2497 sed 's/^/| /' conftest.$ac_ext >&5
2501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2503 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2504 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2505 if test "$ac_test_CXXFLAGS" = set; then
2506 CXXFLAGS=$ac_save_CXXFLAGS
2507 elif test $ac_cv_prog_cxx_g = yes; then
2508 if test "$GXX" = yes; then
2514 if test "$GXX" = yes; then
2520 for ac_declaration in \
2522 'extern "C" void std::exit (int) throw (); using std::exit;' \
2523 'extern "C" void std::exit (int); using std::exit;' \
2524 'extern "C" void exit (int) throw ();' \
2525 'extern "C" void exit (int);' \
2528 cat >conftest.$ac_ext <<_ACEOF
2531 cat confdefs.h >>conftest.$ac_ext
2532 cat >>conftest.$ac_ext <<_ACEOF
2533 /* end confdefs.h. */
2544 rm -f conftest.$ac_objext
2545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2546 (eval $ac_compile) 2>conftest.er1
2548 grep -v '^ *+' conftest.er1 >conftest.err
2550 cat conftest.err >&5
2551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552 (exit $ac_status); } &&
2553 { ac_try='test -z "$ac_cxx_werror_flag"
2554 || test ! -s conftest.err'
2555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559 (exit $ac_status); }; } &&
2560 { ac_try='test -s conftest.$ac_objext'
2561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565 (exit $ac_status); }; }; then
2568 echo "$as_me: failed program was:" >&5
2569 sed 's/^/| /' conftest.$ac_ext >&5
2573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2574 cat >conftest.$ac_ext <<_ACEOF
2577 cat confdefs.h >>conftest.$ac_ext
2578 cat >>conftest.$ac_ext <<_ACEOF
2579 /* end confdefs.h. */
2589 rm -f conftest.$ac_objext
2590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2591 (eval $ac_compile) 2>conftest.er1
2593 grep -v '^ *+' conftest.er1 >conftest.err
2595 cat conftest.err >&5
2596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597 (exit $ac_status); } &&
2598 { ac_try='test -z "$ac_cxx_werror_flag"
2599 || test ! -s conftest.err'
2600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604 (exit $ac_status); }; } &&
2605 { ac_try='test -s conftest.$ac_objext'
2606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610 (exit $ac_status); }; }; then
2613 echo "$as_me: failed program was:" >&5
2614 sed 's/^/| /' conftest.$ac_ext >&5
2617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2620 if test -n "$ac_declaration"; then
2621 echo '#ifdef __cplusplus' >>confdefs.h
2622 echo $ac_declaration >>confdefs.h
2623 echo '#endif' >>confdefs.h
2627 ac_cpp='$CPP $CPPFLAGS'
2628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2631 DEPDIR="${am__leading_dot}deps"
2633 ac_config_commands="$ac_config_commands depfiles"
2636 am_make=${MAKE-make}
2637 cat > confinc << 'END'
2642 # If we don't find an include directive, just comment out the code.
2643 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2644 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2648 # First try GNU make style include.
2649 echo "include confinc" > confmf
2650 # We grep out `Entering directory' and `Leaving directory'
2651 # messages which can occur if `w' ends up in MAKEFLAGS.
2652 # In particular we don't look at `^make:' because GNU make might
2653 # be invoked under some other name (usually "gmake"), in which
2654 # case it prints its new name instead of `make'.
2655 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2660 # Now try BSD make style include.
2661 if test "$am__include" = "#"; then
2662 echo '.include "confinc"' > confmf
2663 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2664 am__include=.include
2671 echo "$as_me:$LINENO: result: $_am_result" >&5
2672 echo "${ECHO_T}$_am_result" >&6
2673 rm -f confinc confmf
2675 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2676 if test "${enable_dependency_tracking+set}" = set; then
2677 enableval="$enable_dependency_tracking"
2680 if test "x$enable_dependency_tracking" != xno; then
2681 am_depcomp="$ac_aux_dir/depcomp"
2686 if test "x$enable_dependency_tracking" != xno; then
2697 depcc="$CXX" am_compiler_list=
2699 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2700 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2701 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2702 echo $ECHO_N "(cached) $ECHO_C" >&6
2704 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2705 # We make a subdir and do the tests there. Otherwise we can end up
2706 # making bogus files that we don't know about and never remove. For
2707 # instance it was reported that on HP-UX the gcc test will end up
2708 # making a dummy file named `D' -- because `-MD' means `put the output
2711 # Copy depcomp to subdir because otherwise we won't find it if we're
2712 # using a relative directory.
2713 cp "$am_depcomp" conftest.dir
2715 # We will build objects and dependencies in a subdirectory because
2716 # it helps to detect inapplicable dependency modes. For instance
2717 # both Tru64's cc and ICC support -MD to output dependencies as a
2718 # side effect of compilation, but ICC will put the dependencies in
2719 # the current directory while Tru64 will put them in the object
2723 am_cv_CXX_dependencies_compiler_type=none
2724 if test "$am_compiler_list" = ""; then
2725 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2727 for depmode in $am_compiler_list; do
2728 # Setup a source with many dependencies, because some compilers
2729 # like to wrap large dependency lists on column 80 (with \), and
2730 # we should not choose a depcomp mode which is confused by this.
2732 # We need to recreate these files for each test, as the compiler may
2733 # overwrite some of them when testing with obscure command lines.
2734 # This happens at least with the AIX C compiler.
2736 for i in 1 2 3 4 5 6; do
2737 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2738 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2739 # Solaris 8's {/usr,}/bin/sh.
2740 touch sub/conftst$i.h
2742 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2746 # after this tag, mechanisms are not by side-effect, so they'll
2747 # only be used when explicitly requested
2748 if test "x$enable_dependency_tracking" = xyes; then
2756 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2757 # mode. It turns out that the SunPro C++ compiler does not properly
2758 # handle `-M -o', and we need to detect this.
2759 if depmode=$depmode \
2760 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2761 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2762 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2763 >/dev/null 2>conftest.err &&
2764 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2765 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2766 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2767 # icc doesn't choke on unknown options, it will just issue warnings
2768 # or remarks (even with -Werror). So we grep stderr for any message
2769 # that says an option was ignored or not supported.
2770 # When given -MP, icc 7.0 and 7.1 complain thusly:
2771 # icc: Command line warning: ignoring option '-M'; no argument required
2772 # The diagnosis changed in icc 8.0:
2773 # icc: Command line remark: option '-MP' not supported
2774 if (grep 'ignoring option' conftest.err ||
2775 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2776 am_cv_CXX_dependencies_compiler_type=$depmode
2785 am_cv_CXX_dependencies_compiler_type=none
2789 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2790 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2791 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2796 test "x$enable_dependency_tracking" != xno \
2797 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2798 am__fastdepCXX_TRUE=
2799 am__fastdepCXX_FALSE='#'
2801 am__fastdepCXX_TRUE='#'
2802 am__fastdepCXX_FALSE=
2807 ac_cpp='$CPP $CPPFLAGS'
2808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2811 if test -n "$ac_tool_prefix"; then
2812 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2813 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2814 echo "$as_me:$LINENO: checking for $ac_word" >&5
2815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2816 if test "${ac_cv_prog_CC+set}" = set; then
2817 echo $ECHO_N "(cached) $ECHO_C" >&6
2819 if test -n "$CC"; then
2820 ac_cv_prog_CC="$CC" # Let the user override the test.
2822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2826 test -z "$as_dir" && as_dir=.
2827 for ac_exec_ext in '' $ac_executable_extensions; do
2828 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2829 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2839 if test -n "$CC"; then
2840 echo "$as_me:$LINENO: result: $CC" >&5
2841 echo "${ECHO_T}$CC" >&6
2843 echo "$as_me:$LINENO: result: no" >&5
2844 echo "${ECHO_T}no" >&6
2848 if test -z "$ac_cv_prog_CC"; then
2850 # Extract the first word of "gcc", so it can be a program name with args.
2851 set dummy gcc; ac_word=$2
2852 echo "$as_me:$LINENO: checking for $ac_word" >&5
2853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2854 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2855 echo $ECHO_N "(cached) $ECHO_C" >&6
2857 if test -n "$ac_ct_CC"; then
2858 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2864 test -z "$as_dir" && as_dir=.
2865 for ac_exec_ext in '' $ac_executable_extensions; do
2866 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2867 ac_cv_prog_ac_ct_CC="gcc"
2868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2876 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2877 if test -n "$ac_ct_CC"; then
2878 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2879 echo "${ECHO_T}$ac_ct_CC" >&6
2881 echo "$as_me:$LINENO: result: no" >&5
2882 echo "${ECHO_T}no" >&6
2890 if test -z "$CC"; then
2891 if test -n "$ac_tool_prefix"; then
2892 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2893 set dummy ${ac_tool_prefix}cc; ac_word=$2
2894 echo "$as_me:$LINENO: checking for $ac_word" >&5
2895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2896 if test "${ac_cv_prog_CC+set}" = set; then
2897 echo $ECHO_N "(cached) $ECHO_C" >&6
2899 if test -n "$CC"; then
2900 ac_cv_prog_CC="$CC" # Let the user override the test.
2902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906 test -z "$as_dir" && as_dir=.
2907 for ac_exec_ext in '' $ac_executable_extensions; do
2908 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2909 ac_cv_prog_CC="${ac_tool_prefix}cc"
2910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2919 if test -n "$CC"; then
2920 echo "$as_me:$LINENO: result: $CC" >&5
2921 echo "${ECHO_T}$CC" >&6
2923 echo "$as_me:$LINENO: result: no" >&5
2924 echo "${ECHO_T}no" >&6
2928 if test -z "$ac_cv_prog_CC"; then
2930 # Extract the first word of "cc", so it can be a program name with args.
2931 set dummy cc; ac_word=$2
2932 echo "$as_me:$LINENO: checking for $ac_word" >&5
2933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2934 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2935 echo $ECHO_N "(cached) $ECHO_C" >&6
2937 if test -n "$ac_ct_CC"; then
2938 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2944 test -z "$as_dir" && as_dir=.
2945 for ac_exec_ext in '' $ac_executable_extensions; do
2946 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2947 ac_cv_prog_ac_ct_CC="cc"
2948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2956 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2957 if test -n "$ac_ct_CC"; then
2958 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2959 echo "${ECHO_T}$ac_ct_CC" >&6
2961 echo "$as_me:$LINENO: result: no" >&5
2962 echo "${ECHO_T}no" >&6
2971 if test -z "$CC"; then
2972 # Extract the first word of "cc", so it can be a program name with args.
2973 set dummy cc; ac_word=$2
2974 echo "$as_me:$LINENO: checking for $ac_word" >&5
2975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2976 if test "${ac_cv_prog_CC+set}" = set; then
2977 echo $ECHO_N "(cached) $ECHO_C" >&6
2979 if test -n "$CC"; then
2980 ac_cv_prog_CC="$CC" # Let the user override the test.
2983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2987 test -z "$as_dir" && as_dir=.
2988 for ac_exec_ext in '' $ac_executable_extensions; do
2989 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2990 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2991 ac_prog_rejected=yes
2995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3001 if test $ac_prog_rejected = yes; then
3002 # We found a bogon in the path, so make sure we never use it.
3003 set dummy $ac_cv_prog_CC
3005 if test $# != 0; then
3006 # We chose a different compiler from the bogus one.
3007 # However, it has the same basename, so the bogon will be chosen
3008 # first if we set CC to just the basename; use the full file name.
3010 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3016 if test -n "$CC"; then
3017 echo "$as_me:$LINENO: result: $CC" >&5
3018 echo "${ECHO_T}$CC" >&6
3020 echo "$as_me:$LINENO: result: no" >&5
3021 echo "${ECHO_T}no" >&6
3025 if test -z "$CC"; then
3026 if test -n "$ac_tool_prefix"; then
3029 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3030 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3031 echo "$as_me:$LINENO: checking for $ac_word" >&5
3032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3033 if test "${ac_cv_prog_CC+set}" = set; then
3034 echo $ECHO_N "(cached) $ECHO_C" >&6
3036 if test -n "$CC"; then
3037 ac_cv_prog_CC="$CC" # Let the user override the test.
3039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3043 test -z "$as_dir" && as_dir=.
3044 for ac_exec_ext in '' $ac_executable_extensions; do
3045 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3046 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3056 if test -n "$CC"; then
3057 echo "$as_me:$LINENO: result: $CC" >&5
3058 echo "${ECHO_T}$CC" >&6
3060 echo "$as_me:$LINENO: result: no" >&5
3061 echo "${ECHO_T}no" >&6
3064 test -n "$CC" && break
3067 if test -z "$CC"; then
3071 # Extract the first word of "$ac_prog", so it can be a program name with args.
3072 set dummy $ac_prog; ac_word=$2
3073 echo "$as_me:$LINENO: checking for $ac_word" >&5
3074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3075 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3076 echo $ECHO_N "(cached) $ECHO_C" >&6
3078 if test -n "$ac_ct_CC"; then
3079 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3085 test -z "$as_dir" && as_dir=.
3086 for ac_exec_ext in '' $ac_executable_extensions; do
3087 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3088 ac_cv_prog_ac_ct_CC="$ac_prog"
3089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3097 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3098 if test -n "$ac_ct_CC"; then
3099 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3100 echo "${ECHO_T}$ac_ct_CC" >&6
3102 echo "$as_me:$LINENO: result: no" >&5
3103 echo "${ECHO_T}no" >&6
3106 test -n "$ac_ct_CC" && break
3115 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3116 See \`config.log' for more details." >&5
3117 echo "$as_me: error: no acceptable C compiler found in \$PATH
3118 See \`config.log' for more details." >&2;}
3119 { (exit 1); exit 1; }; }
3121 # Provide some information about the compiler.
3122 echo "$as_me:$LINENO:" \
3123 "checking for C compiler version" >&5
3124 ac_compiler=`set X $ac_compile; echo $2`
3125 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3126 (eval $ac_compiler --version </dev/null >&5) 2>&5
3128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129 (exit $ac_status); }
3130 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3131 (eval $ac_compiler -v </dev/null >&5) 2>&5
3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134 (exit $ac_status); }
3135 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3136 (eval $ac_compiler -V </dev/null >&5) 2>&5
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); }
3141 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3142 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3143 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3144 echo $ECHO_N "(cached) $ECHO_C" >&6
3146 cat >conftest.$ac_ext <<_ACEOF
3149 cat confdefs.h >>conftest.$ac_ext
3150 cat >>conftest.$ac_ext <<_ACEOF
3151 /* end confdefs.h. */
3164 rm -f conftest.$ac_objext
3165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3166 (eval $ac_compile) 2>conftest.er1
3168 grep -v '^ *+' conftest.er1 >conftest.err
3170 cat conftest.err >&5
3171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3172 (exit $ac_status); } &&
3173 { ac_try='test -z "$ac_c_werror_flag"
3174 || test ! -s conftest.err'
3175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179 (exit $ac_status); }; } &&
3180 { ac_try='test -s conftest.$ac_objext'
3181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185 (exit $ac_status); }; }; then
3188 echo "$as_me: failed program was:" >&5
3189 sed 's/^/| /' conftest.$ac_ext >&5
3193 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3194 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3197 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3198 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3199 GCC=`test $ac_compiler_gnu = yes && echo yes`
3200 ac_test_CFLAGS=${CFLAGS+set}
3201 ac_save_CFLAGS=$CFLAGS
3203 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3204 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3205 if test "${ac_cv_prog_cc_g+set}" = set; then
3206 echo $ECHO_N "(cached) $ECHO_C" >&6
3208 cat >conftest.$ac_ext <<_ACEOF
3211 cat confdefs.h >>conftest.$ac_ext
3212 cat >>conftest.$ac_ext <<_ACEOF
3213 /* end confdefs.h. */
3223 rm -f conftest.$ac_objext
3224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3225 (eval $ac_compile) 2>conftest.er1
3227 grep -v '^ *+' conftest.er1 >conftest.err
3229 cat conftest.err >&5
3230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3231 (exit $ac_status); } &&
3232 { ac_try='test -z "$ac_c_werror_flag"
3233 || test ! -s conftest.err'
3234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238 (exit $ac_status); }; } &&
3239 { ac_try='test -s conftest.$ac_objext'
3240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244 (exit $ac_status); }; }; then
3247 echo "$as_me: failed program was:" >&5
3248 sed 's/^/| /' conftest.$ac_ext >&5
3252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3254 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3255 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3256 if test "$ac_test_CFLAGS" = set; then
3257 CFLAGS=$ac_save_CFLAGS
3258 elif test $ac_cv_prog_cc_g = yes; then
3259 if test "$GCC" = yes; then
3265 if test "$GCC" = yes; then
3271 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3272 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3273 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3274 echo $ECHO_N "(cached) $ECHO_C" >&6
3276 ac_cv_prog_cc_stdc=no
3278 cat >conftest.$ac_ext <<_ACEOF
3281 cat confdefs.h >>conftest.$ac_ext
3282 cat >>conftest.$ac_ext <<_ACEOF
3283 /* end confdefs.h. */
3286 #include <sys/types.h>
3287 #include <sys/stat.h>
3288 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3289 struct buf { int x; };
3290 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3291 static char *e (p, i)
3297 static char *f (char * (*g) (char **, int), char **p, ...)
3302 s = g (p, va_arg (v,int));
3307 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3308 function prototypes and stuff, but not '\xHH' hex character constants.
3309 These don't provoke an error unfortunately, instead are silently treated
3310 as 'x'. The following induces an error, until -std1 is added to get
3311 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3312 array size at least. It's necessary to write '\x00'==0 to get something
3313 that's true only with -std1. */
3314 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3316 int test (int i, double x);
3317 struct s1 {int (*f) (int a);};
3318 struct s2 {int (*f) (double a);};
3319 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3325 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3330 # Don't try gcc -ansi; that turns off useful extensions and
3331 # breaks some systems' header files.
3332 # AIX -qlanglvl=ansi
3333 # Ultrix and OSF/1 -std1
3334 # HP-UX 10.20 and later -Ae
3335 # HP-UX older versions -Aa -D_HPUX_SOURCE
3336 # SVR4 -Xc -D__EXTENSIONS__
3337 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3339 CC="$ac_save_CC $ac_arg"
3340 rm -f conftest.$ac_objext
3341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3342 (eval $ac_compile) 2>conftest.er1
3344 grep -v '^ *+' conftest.er1 >conftest.err
3346 cat conftest.err >&5
3347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348 (exit $ac_status); } &&
3349 { ac_try='test -z "$ac_c_werror_flag"
3350 || test ! -s conftest.err'
3351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355 (exit $ac_status); }; } &&
3356 { ac_try='test -s conftest.$ac_objext'
3357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361 (exit $ac_status); }; }; then
3362 ac_cv_prog_cc_stdc=$ac_arg
3365 echo "$as_me: failed program was:" >&5
3366 sed 's/^/| /' conftest.$ac_ext >&5
3369 rm -f conftest.err conftest.$ac_objext
3371 rm -f conftest.$ac_ext conftest.$ac_objext
3376 case "x$ac_cv_prog_cc_stdc" in
3378 echo "$as_me:$LINENO: result: none needed" >&5
3379 echo "${ECHO_T}none needed" >&6 ;;
3381 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3382 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3383 CC="$CC $ac_cv_prog_cc_stdc" ;;
3386 # Some people use a C++ compiler to compile C. Since we use `exit',
3387 # in C++ we need to declare it. In case someone uses the same compiler
3388 # for both compiling C and C++ we need to have the C++ compiler decide
3389 # the declaration of exit, since it's the most demanding environment.
3390 cat >conftest.$ac_ext <<_ACEOF
3395 rm -f conftest.$ac_objext
3396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3397 (eval $ac_compile) 2>conftest.er1
3399 grep -v '^ *+' conftest.er1 >conftest.err
3401 cat conftest.err >&5
3402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403 (exit $ac_status); } &&
3404 { ac_try='test -z "$ac_c_werror_flag"
3405 || test ! -s conftest.err'
3406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410 (exit $ac_status); }; } &&
3411 { ac_try='test -s conftest.$ac_objext'
3412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416 (exit $ac_status); }; }; then
3417 for ac_declaration in \
3419 'extern "C" void std::exit (int) throw (); using std::exit;' \
3420 'extern "C" void std::exit (int); using std::exit;' \
3421 'extern "C" void exit (int) throw ();' \
3422 'extern "C" void exit (int);' \
3425 cat >conftest.$ac_ext <<_ACEOF
3428 cat confdefs.h >>conftest.$ac_ext
3429 cat >>conftest.$ac_ext <<_ACEOF
3430 /* end confdefs.h. */
3441 rm -f conftest.$ac_objext
3442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3443 (eval $ac_compile) 2>conftest.er1
3445 grep -v '^ *+' conftest.er1 >conftest.err
3447 cat conftest.err >&5
3448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449 (exit $ac_status); } &&
3450 { ac_try='test -z "$ac_c_werror_flag"
3451 || test ! -s conftest.err'
3452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456 (exit $ac_status); }; } &&
3457 { ac_try='test -s conftest.$ac_objext'
3458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3462 (exit $ac_status); }; }; then
3465 echo "$as_me: failed program was:" >&5
3466 sed 's/^/| /' conftest.$ac_ext >&5
3470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3471 cat >conftest.$ac_ext <<_ACEOF
3474 cat confdefs.h >>conftest.$ac_ext
3475 cat >>conftest.$ac_ext <<_ACEOF
3476 /* end confdefs.h. */
3486 rm -f conftest.$ac_objext
3487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3488 (eval $ac_compile) 2>conftest.er1
3490 grep -v '^ *+' conftest.er1 >conftest.err
3492 cat conftest.err >&5
3493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494 (exit $ac_status); } &&
3495 { ac_try='test -z "$ac_c_werror_flag"
3496 || test ! -s conftest.err'
3497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501 (exit $ac_status); }; } &&
3502 { ac_try='test -s conftest.$ac_objext'
3503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507 (exit $ac_status); }; }; then
3510 echo "$as_me: failed program was:" >&5
3511 sed 's/^/| /' conftest.$ac_ext >&5
3514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3517 if test -n "$ac_declaration"; then
3518 echo '#ifdef __cplusplus' >>confdefs.h
3519 echo $ac_declaration >>confdefs.h
3520 echo '#endif' >>confdefs.h
3524 echo "$as_me: failed program was:" >&5
3525 sed 's/^/| /' conftest.$ac_ext >&5
3528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3530 ac_cpp='$CPP $CPPFLAGS'
3531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3535 depcc="$CC" am_compiler_list=
3537 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3538 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3539 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3540 echo $ECHO_N "(cached) $ECHO_C" >&6
3542 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3543 # We make a subdir and do the tests there. Otherwise we can end up
3544 # making bogus files that we don't know about and never remove. For
3545 # instance it was reported that on HP-UX the gcc test will end up
3546 # making a dummy file named `D' -- because `-MD' means `put the output
3549 # Copy depcomp to subdir because otherwise we won't find it if we're
3550 # using a relative directory.
3551 cp "$am_depcomp" conftest.dir
3553 # We will build objects and dependencies in a subdirectory because
3554 # it helps to detect inapplicable dependency modes. For instance
3555 # both Tru64's cc and ICC support -MD to output dependencies as a
3556 # side effect of compilation, but ICC will put the dependencies in
3557 # the current directory while Tru64 will put them in the object
3561 am_cv_CC_dependencies_compiler_type=none
3562 if test "$am_compiler_list" = ""; then
3563 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3565 for depmode in $am_compiler_list; do
3566 # Setup a source with many dependencies, because some compilers
3567 # like to wrap large dependency lists on column 80 (with \), and
3568 # we should not choose a depcomp mode which is confused by this.
3570 # We need to recreate these files for each test, as the compiler may
3571 # overwrite some of them when testing with obscure command lines.
3572 # This happens at least with the AIX C compiler.
3574 for i in 1 2 3 4 5 6; do
3575 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3576 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3577 # Solaris 8's {/usr,}/bin/sh.
3578 touch sub/conftst$i.h
3580 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3584 # after this tag, mechanisms are not by side-effect, so they'll
3585 # only be used when explicitly requested
3586 if test "x$enable_dependency_tracking" = xyes; then
3594 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3595 # mode. It turns out that the SunPro C++ compiler does not properly
3596 # handle `-M -o', and we need to detect this.
3597 if depmode=$depmode \
3598 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3599 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3600 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3601 >/dev/null 2>conftest.err &&
3602 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3603 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3604 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3605 # icc doesn't choke on unknown options, it will just issue warnings
3606 # or remarks (even with -Werror). So we grep stderr for any message
3607 # that says an option was ignored or not supported.
3608 # When given -MP, icc 7.0 and 7.1 complain thusly:
3609 # icc: Command line warning: ignoring option '-M'; no argument required
3610 # The diagnosis changed in icc 8.0:
3611 # icc: Command line remark: option '-MP' not supported
3612 if (grep 'ignoring option' conftest.err ||
3613 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3614 am_cv_CC_dependencies_compiler_type=$depmode
3623 am_cv_CC_dependencies_compiler_type=none
3627 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3628 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3629 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3634 test "x$enable_dependency_tracking" != xno \
3635 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3637 am__fastdepCC_FALSE='#'
3639 am__fastdepCC_TRUE='#'
3640 am__fastdepCC_FALSE=
3644 # Find a good install program. We prefer a C program (faster),
3645 # so one script is as good as another. But avoid the broken or
3646 # incompatible versions:
3647 # SysV /etc/install, /usr/sbin/install
3648 # SunOS /usr/etc/install
3649 # IRIX /sbin/install
3651 # AmigaOS /C/install, which installs bootblocks on floppy discs
3652 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3653 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3654 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3655 # OS/2's system install, which has a completely different semantic
3656 # ./install, which can be erroneously created by make from ./install.sh.
3657 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3658 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3659 if test -z "$INSTALL"; then
3660 if test "${ac_cv_path_install+set}" = set; then
3661 echo $ECHO_N "(cached) $ECHO_C" >&6
3663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3667 test -z "$as_dir" && as_dir=.
3668 # Account for people who put trailing slashes in PATH elements.
3670 ./ | .// | /cC/* | \
3671 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3672 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3675 # OSF1 and SCO ODT 3.0 have their own names for install.
3676 # Don't use installbsd from OSF since it installs stuff as root
3678 for ac_prog in ginstall scoinst install; do
3679 for ac_exec_ext in '' $ac_executable_extensions; do
3680 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3681 if test $ac_prog = install &&
3682 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3683 # AIX install. It has an incompatible calling convention.
3685 elif test $ac_prog = install &&
3686 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3687 # program-specific install script used by HP pwplus--don't use.
3690 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3702 if test "${ac_cv_path_install+set}" = set; then
3703 INSTALL=$ac_cv_path_install
3705 # As a last resort, use the slow shell script. We don't cache a
3706 # path for INSTALL within a source directory, because that will
3707 # break other packages using the cache if that directory is
3708 # removed, or if the path is relative.
3709 INSTALL=$ac_install_sh
3712 echo "$as_me:$LINENO: result: $INSTALL" >&5
3713 echo "${ECHO_T}$INSTALL" >&6
3715 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3716 # It thinks the first close brace ends the variable substitution.
3717 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3719 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3721 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3723 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3724 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3726 if test "$LN_S" = "ln -s"; then
3727 echo "$as_me:$LINENO: result: yes" >&5
3728 echo "${ECHO_T}yes" >&6
3730 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3731 echo "${ECHO_T}no, using $LN_S" >&6
3734 if test "x$CC" != xcc; then
3735 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3736 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
3738 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3739 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
3741 set dummy $CC; ac_cc=`echo $2 |
3742 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3743 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
3744 echo $ECHO_N "(cached) $ECHO_C" >&6
3746 cat >conftest.$ac_ext <<_ACEOF
3749 cat confdefs.h >>conftest.$ac_ext
3750 cat >>conftest.$ac_ext <<_ACEOF
3751 /* end confdefs.h. */
3761 # Make sure it works both with $CC and with simple cc.
3762 # We do the test twice because some compilers refuse to overwrite an
3763 # existing .o file with -o, though they will create one.
3764 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3765 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3769 (exit $ac_status); } &&
3770 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774 (exit $ac_status); };
3776 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3777 if test "x$CC" != xcc; then
3778 # Test first that cc exists at all.
3779 if { ac_try='cc -c conftest.$ac_ext >&5'
3780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3784 (exit $ac_status); }; }; then
3785 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3786 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790 (exit $ac_status); } &&
3791 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795 (exit $ac_status); };
3800 # cc exists but doesn't like -o.
3801 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3806 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3811 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3812 echo "$as_me:$LINENO: result: yes" >&5
3813 echo "${ECHO_T}yes" >&6
3815 echo "$as_me:$LINENO: result: no" >&5
3816 echo "${ECHO_T}no" >&6
3818 cat >>confdefs.h <<\_ACEOF
3819 #define NO_MINUS_C_MINUS_O 1
3824 # FIXME: we rely on the cache variable name because
3825 # there is no other way.
3827 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3828 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3829 # Losing compiler, so override with the script.
3830 # FIXME: It is wrong to rewrite CC.
3831 # But if we don't then we get into trouble of one sort or another.
3832 # A longer-term fix would be to have automake use am__CC in this case,
3833 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3834 CC="$am_aux_dir/compile $CC"
3841 echo "$as_me:$LINENO: checking whether $CXX is a C++ compiler" >&5
3842 echo $ECHO_N "checking whether $CXX is a C++ compiler... $ECHO_C" >&6
3843 if test "${ensc_cv_cxx_cxxcompiler+set}" = set; then
3844 echo $ECHO_N "(cached) $ECHO_C" >&6
3848 ac_cpp='$CXXCPP $CPPFLAGS'
3849 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3850 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3851 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3853 cat >conftest.$ac_ext <<_ACEOF
3858 rm -f conftest.$ac_objext
3859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3860 (eval $ac_compile) 2>conftest.er1
3862 grep -v '^ *+' conftest.er1 >conftest.err
3864 cat conftest.err >&5
3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); } &&
3867 { ac_try='test -z "$ac_cxx_werror_flag"
3868 || test ! -s conftest.err'
3869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3873 (exit $ac_status); }; } &&
3874 { ac_try='test -s conftest.$ac_objext'
3875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879 (exit $ac_status); }; }; then
3880 ensc_cv_cxx_cxxcompiler=yes
3882 echo "$as_me: failed program was:" >&5
3883 sed 's/^/| /' conftest.$ac_ext >&5
3885 ensc_cv_cxx_cxxcompiler=no
3887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3889 ac_cpp='$CPP $CPPFLAGS'
3890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3896 echo "$as_me:$LINENO: result: $ensc_cv_cxx_cxxcompiler" >&5
3897 echo "${ECHO_T}$ensc_cv_cxx_cxxcompiler" >&6
3901 if test x"$ensc_cv_cxx_cxxcompiler" = xyes; then
3902 ENSC_HAVE_CXX_COMPILER_TRUE=
3903 ENSC_HAVE_CXX_COMPILER_FALSE='#'
3905 ENSC_HAVE_CXX_COMPILER_TRUE='#'
3906 ENSC_HAVE_CXX_COMPILER_FALSE=
3910 if test x"$ensc_cv_cxx_cxxcompiler" = xno; then
3911 { echo "$as_me:$LINENO: WARNING: *** some programs will not be built because a C++ compiler is lacking" >&5
3912 echo "$as_me: WARNING: *** some programs will not be built because a C++ compiler is lacking" >&2;}
3919 echo "$as_me:$LINENO: checking whether $CC is a C99 compiler" >&5
3920 echo $ECHO_N "checking whether $CC is a C99 compiler... $ECHO_C" >&6
3921 if test "${ensc_cv_c99_c99compiler+set}" = set; then
3922 echo $ECHO_N "(cached) $ECHO_C" >&6
3926 ac_cpp='$CPP $CPPFLAGS'
3927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3931 cat >conftest.$ac_ext <<_ACEOF
3933 int main(int argc, char *argv) {
3934 struct { int x; } a = { .x = argc };
3940 rm -f conftest.$ac_objext
3941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3942 (eval $ac_compile) 2>conftest.er1
3944 grep -v '^ *+' conftest.er1 >conftest.err
3946 cat conftest.err >&5
3947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3948 (exit $ac_status); } &&
3949 { ac_try='test -z "$ac_c_werror_flag"
3950 || test ! -s conftest.err'
3951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955 (exit $ac_status); }; } &&
3956 { ac_try='test -s conftest.$ac_objext'
3957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961 (exit $ac_status); }; }; then
3962 ensc_cv_c99_c99compiler=yes
3964 echo "$as_me: failed program was:" >&5
3965 sed 's/^/| /' conftest.$ac_ext >&5
3967 ensc_cv_c99_c99compiler=no
3969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3971 ac_cpp='$CPP $CPPFLAGS'
3972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3978 echo "$as_me:$LINENO: result: $ensc_cv_c99_c99compiler" >&5
3979 echo "${ECHO_T}$ensc_cv_c99_c99compiler" >&6
3983 if test x"$ensc_cv_c99_c99compiler" = xyes; then
3984 ENSC_HAVE_C99_COMPILER_TRUE=
3985 ENSC_HAVE_C99_COMPILER_FALSE='#'
3987 ENSC_HAVE_C99_COMPILER_TRUE='#'
3988 ENSC_HAVE_C99_COMPILER_FALSE=
3992 if test x"$ensc_cv_c99_c99compiler" = xno; then
3993 { echo "$as_me:$LINENO: WARNING: *** some programs will not be built because system is lacking a C99 compiler" >&5
3994 echo "$as_me: WARNING: *** some programs will not be built because system is lacking a C99 compiler" >&2;}
3999 ensc_searchpath="$PATH:/sbin:/usr/sbin:/usr/local/sbin"
4024 # Extract the first word of "$ac_prog", so it can be a program name with args.
4025 set dummy $ac_prog; ac_word=$2
4026 echo "$as_me:$LINENO: checking for $ac_word" >&5
4027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4028 if test "${ac_cv_path_AWK+set}" = set; then
4029 echo $ECHO_N "(cached) $ECHO_C" >&6
4033 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
4036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4037 for as_dir in $ensc_searchpath
4040 test -z "$as_dir" && as_dir=.
4041 for ac_exec_ext in '' $ac_executable_extensions; do
4042 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4043 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
4044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4055 if test -n "$AWK"; then
4056 echo "$as_me:$LINENO: result: $AWK" >&5
4057 echo "${ECHO_T}$AWK" >&6
4059 echo "$as_me:$LINENO: result: no" >&5
4060 echo "${ECHO_T}no" >&6
4063 test -n "$AWK" && break
4065 test -n "$AWK" || AWK="$ensc_dflt"
4068 if test -z "${AWK}" && $rq; then
4070 { { echo "$as_me:$LINENO: error: Can not find the 'awk' tool within '${ensc_searchpath:-$PATH}'." >&5
4071 echo "$as_me: error: Can not find the 'awk' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4072 { (exit 1); exit 1; }; }
4074 { { echo "$as_me:$LINENO: error:
4075 Can not find the 'awk' tool within '${ensc_searchpath:-$PATH}'.
4077 echo "$as_me: error:
4078 Can not find the 'awk' tool within '${ensc_searchpath:-$PATH}'.
4080 { (exit 1); exit 1; }; }
4084 if test -e "${AWK}"; then
4085 AWK=`readlink -f "${AWK}"`
4088 test "${AWK}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'AWK'@!${AWK}!g;"
4109 # Extract the first word of "$ac_prog", so it can be a program name with args.
4110 set dummy $ac_prog; ac_word=$2
4111 echo "$as_me:$LINENO: checking for $ac_word" >&5
4112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4113 if test "${ac_cv_path_CAT+set}" = set; then
4114 echo $ECHO_N "(cached) $ECHO_C" >&6
4118 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4122 for as_dir in $ensc_searchpath
4125 test -z "$as_dir" && as_dir=.
4126 for ac_exec_ext in '' $ac_executable_extensions; do
4127 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4128 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4140 if test -n "$CAT"; then
4141 echo "$as_me:$LINENO: result: $CAT" >&5
4142 echo "${ECHO_T}$CAT" >&6
4144 echo "$as_me:$LINENO: result: no" >&5
4145 echo "${ECHO_T}no" >&6
4148 test -n "$CAT" && break
4150 test -n "$CAT" || CAT="$ensc_dflt"
4153 if test -z "${CAT}" && $rq; then
4155 { { echo "$as_me:$LINENO: error: Can not find the 'cat' tool within '${ensc_searchpath:-$PATH}'." >&5
4156 echo "$as_me: error: Can not find the 'cat' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4157 { (exit 1); exit 1; }; }
4159 { { echo "$as_me:$LINENO: error:
4160 Can not find the 'cat' tool within '${ensc_searchpath:-$PATH}'.
4162 echo "$as_me: error:
4163 Can not find the 'cat' tool within '${ensc_searchpath:-$PATH}'.
4165 { (exit 1); exit 1; }; }
4169 if test -e "${CAT}"; then
4170 CAT=`readlink -f "${CAT}"`
4173 test "${CAT}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'CAT'@!${CAT}!g;"
4192 for ac_prog in chown
4194 # Extract the first word of "$ac_prog", so it can be a program name with args.
4195 set dummy $ac_prog; ac_word=$2
4196 echo "$as_me:$LINENO: checking for $ac_word" >&5
4197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4198 if test "${ac_cv_path_CHOWN+set}" = set; then
4199 echo $ECHO_N "(cached) $ECHO_C" >&6
4203 ac_cv_path_CHOWN="$CHOWN" # Let the user override the test with a path.
4206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4207 for as_dir in $ensc_searchpath
4210 test -z "$as_dir" && as_dir=.
4211 for ac_exec_ext in '' $ac_executable_extensions; do
4212 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4213 ac_cv_path_CHOWN="$as_dir/$ac_word$ac_exec_ext"
4214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4223 CHOWN=$ac_cv_path_CHOWN
4225 if test -n "$CHOWN"; then
4226 echo "$as_me:$LINENO: result: $CHOWN" >&5
4227 echo "${ECHO_T}$CHOWN" >&6
4229 echo "$as_me:$LINENO: result: no" >&5
4230 echo "${ECHO_T}no" >&6
4233 test -n "$CHOWN" && break
4235 test -n "$CHOWN" || CHOWN="$ensc_dflt"
4238 if test -z "${CHOWN}" && $rq; then
4240 { { echo "$as_me:$LINENO: error: Can not find the 'chown' tool within '${ensc_searchpath:-$PATH}'." >&5
4241 echo "$as_me: error: Can not find the 'chown' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4242 { (exit 1); exit 1; }; }
4244 { { echo "$as_me:$LINENO: error:
4245 Can not find the 'chown' tool within '${ensc_searchpath:-$PATH}'.
4247 echo "$as_me: error:
4248 Can not find the 'chown' tool within '${ensc_searchpath:-$PATH}'.
4250 { (exit 1); exit 1; }; }
4254 if test -e "${CHOWN}"; then
4255 CHOWN=`readlink -f "${CHOWN}"`
4258 test "${CHOWN}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'CHOWN'@!${CHOWN}!g;"
4279 # Extract the first word of "$ac_prog", so it can be a program name with args.
4280 set dummy $ac_prog; ac_word=$2
4281 echo "$as_me:$LINENO: checking for $ac_word" >&5
4282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4283 if test "${ac_cv_path_CMP+set}" = set; then
4284 echo $ECHO_N "(cached) $ECHO_C" >&6
4288 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4292 for as_dir in $ensc_searchpath
4295 test -z "$as_dir" && as_dir=.
4296 for ac_exec_ext in '' $ac_executable_extensions; do
4297 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4298 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4310 if test -n "$CMP"; then
4311 echo "$as_me:$LINENO: result: $CMP" >&5
4312 echo "${ECHO_T}$CMP" >&6
4314 echo "$as_me:$LINENO: result: no" >&5
4315 echo "${ECHO_T}no" >&6
4318 test -n "$CMP" && break
4320 test -n "$CMP" || CMP="$ensc_dflt"
4323 if test -z "${CMP}" && $rq; then
4325 { { echo "$as_me:$LINENO: error: Can not find the 'cmp' tool within '${ensc_searchpath:-$PATH}'." >&5
4326 echo "$as_me: error: Can not find the 'cmp' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4327 { (exit 1); exit 1; }; }
4329 { { echo "$as_me:$LINENO: error:
4330 Can not find the 'cmp' tool within '${ensc_searchpath:-$PATH}'.
4332 echo "$as_me: error:
4333 Can not find the 'cmp' tool within '${ensc_searchpath:-$PATH}'.
4335 { (exit 1); exit 1; }; }
4339 if test -e "${CMP}"; then
4340 CMP=`readlink -f "${CMP}"`
4343 test "${CMP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'CMP'@!${CMP}!g;"
4364 # Extract the first word of "$ac_prog", so it can be a program name with args.
4365 set dummy $ac_prog; ac_word=$2
4366 echo "$as_me:$LINENO: checking for $ac_word" >&5
4367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4368 if test "${ac_cv_path_CP+set}" = set; then
4369 echo $ECHO_N "(cached) $ECHO_C" >&6
4373 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4377 for as_dir in $ensc_searchpath
4380 test -z "$as_dir" && as_dir=.
4381 for ac_exec_ext in '' $ac_executable_extensions; do
4382 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4383 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4384 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4395 if test -n "$CP"; then
4396 echo "$as_me:$LINENO: result: $CP" >&5
4397 echo "${ECHO_T}$CP" >&6
4399 echo "$as_me:$LINENO: result: no" >&5
4400 echo "${ECHO_T}no" >&6
4403 test -n "$CP" && break
4405 test -n "$CP" || CP="$ensc_dflt"
4408 if test -z "${CP}" && $rq; then
4410 { { echo "$as_me:$LINENO: error: Can not find the 'cp' tool within '${ensc_searchpath:-$PATH}'." >&5
4411 echo "$as_me: error: Can not find the 'cp' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4412 { (exit 1); exit 1; }; }
4414 { { echo "$as_me:$LINENO: error:
4415 Can not find the 'cp' tool within '${ensc_searchpath:-$PATH}'.
4417 echo "$as_me: error:
4418 Can not find the 'cp' tool within '${ensc_searchpath:-$PATH}'.
4420 { (exit 1); exit 1; }; }
4424 if test -e "${CP}"; then
4425 CP=`readlink -f "${CP}"`
4428 test "${CP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'CP'@!${CP}!g;"
4447 for ac_prog in dirname
4449 # Extract the first word of "$ac_prog", so it can be a program name with args.
4450 set dummy $ac_prog; ac_word=$2
4451 echo "$as_me:$LINENO: checking for $ac_word" >&5
4452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4453 if test "${ac_cv_path_DIRNAME+set}" = set; then
4454 echo $ECHO_N "(cached) $ECHO_C" >&6
4458 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
4461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4462 for as_dir in $ensc_searchpath
4465 test -z "$as_dir" && as_dir=.
4466 for ac_exec_ext in '' $ac_executable_extensions; do
4467 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4468 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
4469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4478 DIRNAME=$ac_cv_path_DIRNAME
4480 if test -n "$DIRNAME"; then
4481 echo "$as_me:$LINENO: result: $DIRNAME" >&5
4482 echo "${ECHO_T}$DIRNAME" >&6
4484 echo "$as_me:$LINENO: result: no" >&5
4485 echo "${ECHO_T}no" >&6
4488 test -n "$DIRNAME" && break
4490 test -n "$DIRNAME" || DIRNAME="$ensc_dflt"
4493 if test -z "${DIRNAME}" && $rq; then
4495 { { echo "$as_me:$LINENO: error: Can not find the 'dirname' tool within '${ensc_searchpath:-$PATH}'." >&5
4496 echo "$as_me: error: Can not find the 'dirname' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4497 { (exit 1); exit 1; }; }
4499 { { echo "$as_me:$LINENO: error:
4500 Can not find the 'dirname' tool within '${ensc_searchpath:-$PATH}'.
4502 echo "$as_me: error:
4503 Can not find the 'dirname' tool within '${ensc_searchpath:-$PATH}'.
4505 { (exit 1); exit 1; }; }
4509 if test -e "${DIRNAME}"; then
4510 DIRNAME=`readlink -f "${DIRNAME}"`
4513 test "${DIRNAME}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'DIRNAME'@!${DIRNAME}!g;"
4532 for ac_prog in egrep
4534 # Extract the first word of "$ac_prog", so it can be a program name with args.
4535 set dummy $ac_prog; ac_word=$2
4536 echo "$as_me:$LINENO: checking for $ac_word" >&5
4537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4538 if test "${ac_cv_path_EGREP+set}" = set; then
4539 echo $ECHO_N "(cached) $ECHO_C" >&6
4543 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
4546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4547 for as_dir in $ensc_searchpath
4550 test -z "$as_dir" && as_dir=.
4551 for ac_exec_ext in '' $ac_executable_extensions; do
4552 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4553 ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
4554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4563 EGREP=$ac_cv_path_EGREP
4565 if test -n "$EGREP"; then
4566 echo "$as_me:$LINENO: result: $EGREP" >&5
4567 echo "${ECHO_T}$EGREP" >&6
4569 echo "$as_me:$LINENO: result: no" >&5
4570 echo "${ECHO_T}no" >&6
4573 test -n "$EGREP" && break
4575 test -n "$EGREP" || EGREP="$ensc_dflt"
4578 if test -z "${EGREP}" && $rq; then
4580 { { echo "$as_me:$LINENO: error: Can not find the 'egrep' tool within '${ensc_searchpath:-$PATH}'." >&5
4581 echo "$as_me: error: Can not find the 'egrep' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4582 { (exit 1); exit 1; }; }
4584 { { echo "$as_me:$LINENO: error:
4585 Can not find the 'egrep' tool within '${ensc_searchpath:-$PATH}'.
4587 echo "$as_me: error:
4588 Can not find the 'egrep' tool within '${ensc_searchpath:-$PATH}'.
4590 { (exit 1); exit 1; }; }
4594 if test -e "${EGREP}"; then
4595 EGREP=`readlink -f "${EGREP}"`
4598 test "${EGREP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'EGREP'@!${EGREP}!g;"
4619 # Extract the first word of "$ac_prog", so it can be a program name with args.
4620 set dummy $ac_prog; ac_word=$2
4621 echo "$as_me:$LINENO: checking for $ac_word" >&5
4622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4623 if test "${ac_cv_path_ENV+set}" = set; then
4624 echo $ECHO_N "(cached) $ECHO_C" >&6
4628 ac_cv_path_ENV="$ENV" # Let the user override the test with a path.
4631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4632 for as_dir in $ensc_searchpath
4635 test -z "$as_dir" && as_dir=.
4636 for ac_exec_ext in '' $ac_executable_extensions; do
4637 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4638 ac_cv_path_ENV="$as_dir/$ac_word$ac_exec_ext"
4639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4650 if test -n "$ENV"; then
4651 echo "$as_me:$LINENO: result: $ENV" >&5
4652 echo "${ECHO_T}$ENV" >&6
4654 echo "$as_me:$LINENO: result: no" >&5
4655 echo "${ECHO_T}no" >&6
4658 test -n "$ENV" && break
4660 test -n "$ENV" || ENV="$ensc_dflt"
4663 if test -z "${ENV}" && $rq; then
4665 { { echo "$as_me:$LINENO: error: Can not find the 'env' tool within '${ensc_searchpath:-$PATH}'." >&5
4666 echo "$as_me: error: Can not find the 'env' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4667 { (exit 1); exit 1; }; }
4669 { { echo "$as_me:$LINENO: error:
4670 Can not find the 'env' tool within '${ensc_searchpath:-$PATH}'.
4672 echo "$as_me: error:
4673 Can not find the 'env' tool within '${ensc_searchpath:-$PATH}'.
4675 { (exit 1); exit 1; }; }
4679 if test -e "${ENV}"; then
4680 ENV=`readlink -f "${ENV}"`
4683 test "${ENV}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'ENV'@!${ENV}!g;"
4704 # Extract the first word of "$ac_prog", so it can be a program name with args.
4705 set dummy $ac_prog; ac_word=$2
4706 echo "$as_me:$LINENO: checking for $ac_word" >&5
4707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4708 if test "${ac_cv_path_GREP+set}" = set; then
4709 echo $ECHO_N "(cached) $ECHO_C" >&6
4713 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4717 for as_dir in $ensc_searchpath
4720 test -z "$as_dir" && as_dir=.
4721 for ac_exec_ext in '' $ac_executable_extensions; do
4722 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4723 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4733 GREP=$ac_cv_path_GREP
4735 if test -n "$GREP"; then
4736 echo "$as_me:$LINENO: result: $GREP" >&5
4737 echo "${ECHO_T}$GREP" >&6
4739 echo "$as_me:$LINENO: result: no" >&5
4740 echo "${ECHO_T}no" >&6
4743 test -n "$GREP" && break
4745 test -n "$GREP" || GREP="$ensc_dflt"
4748 if test -z "${GREP}" && $rq; then
4750 { { echo "$as_me:$LINENO: error: Can not find the 'grep' tool within '${ensc_searchpath:-$PATH}'." >&5
4751 echo "$as_me: error: Can not find the 'grep' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4752 { (exit 1); exit 1; }; }
4754 { { echo "$as_me:$LINENO: error:
4755 Can not find the 'grep' tool within '${ensc_searchpath:-$PATH}'.
4757 echo "$as_me: error:
4758 Can not find the 'grep' tool within '${ensc_searchpath:-$PATH}'.
4760 { (exit 1); exit 1; }; }
4764 if test -e "${GREP}"; then
4765 GREP=`readlink -f "${GREP}"`
4768 test "${GREP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'GREP'@!${GREP}!g;"
4789 # Extract the first word of "$ac_prog", so it can be a program name with args.
4790 set dummy $ac_prog; ac_word=$2
4791 echo "$as_me:$LINENO: checking for $ac_word" >&5
4792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4793 if test "${ac_cv_path_LN+set}" = set; then
4794 echo $ECHO_N "(cached) $ECHO_C" >&6
4798 ac_cv_path_LN="$LN" # Let the user override the test with a path.
4801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4802 for as_dir in $ensc_searchpath
4805 test -z "$as_dir" && as_dir=.
4806 for ac_exec_ext in '' $ac_executable_extensions; do
4807 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4808 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
4809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4820 if test -n "$LN"; then
4821 echo "$as_me:$LINENO: result: $LN" >&5
4822 echo "${ECHO_T}$LN" >&6
4824 echo "$as_me:$LINENO: result: no" >&5
4825 echo "${ECHO_T}no" >&6
4828 test -n "$LN" && break
4830 test -n "$LN" || LN="$ensc_dflt"
4833 if test -z "${LN}" && $rq; then
4835 { { echo "$as_me:$LINENO: error: Can not find the 'ln' tool within '${ensc_searchpath:-$PATH}'." >&5
4836 echo "$as_me: error: Can not find the 'ln' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4837 { (exit 1); exit 1; }; }
4839 { { echo "$as_me:$LINENO: error:
4840 Can not find the 'ln' tool within '${ensc_searchpath:-$PATH}'.
4842 echo "$as_me: error:
4843 Can not find the 'ln' tool within '${ensc_searchpath:-$PATH}'.
4845 { (exit 1); exit 1; }; }
4849 if test -e "${LN}"; then
4850 LN=`readlink -f "${LN}"`
4853 test "${LN}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'LN'@!${LN}!g;"
4872 for ac_prog in mkdir
4874 # Extract the first word of "$ac_prog", so it can be a program name with args.
4875 set dummy $ac_prog; ac_word=$2
4876 echo "$as_me:$LINENO: checking for $ac_word" >&5
4877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4878 if test "${ac_cv_path_MKDIR+set}" = set; then
4879 echo $ECHO_N "(cached) $ECHO_C" >&6
4883 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4887 for as_dir in $ensc_searchpath
4890 test -z "$as_dir" && as_dir=.
4891 for ac_exec_ext in '' $ac_executable_extensions; do
4892 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4893 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4903 MKDIR=$ac_cv_path_MKDIR
4905 if test -n "$MKDIR"; then
4906 echo "$as_me:$LINENO: result: $MKDIR" >&5
4907 echo "${ECHO_T}$MKDIR" >&6
4909 echo "$as_me:$LINENO: result: no" >&5
4910 echo "${ECHO_T}no" >&6
4913 test -n "$MKDIR" && break
4915 test -n "$MKDIR" || MKDIR="$ensc_dflt"
4918 if test -z "${MKDIR}" && $rq; then
4920 { { echo "$as_me:$LINENO: error: Can not find the 'mkdir' tool within '${ensc_searchpath:-$PATH}'." >&5
4921 echo "$as_me: error: Can not find the 'mkdir' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4922 { (exit 1); exit 1; }; }
4924 { { echo "$as_me:$LINENO: error:
4925 Can not find the 'mkdir' tool within '${ensc_searchpath:-$PATH}'.
4927 echo "$as_me: error:
4928 Can not find the 'mkdir' tool within '${ensc_searchpath:-$PATH}'.
4930 { (exit 1); exit 1; }; }
4934 if test -e "${MKDIR}"; then
4935 MKDIR=`readlink -f "${MKDIR}"`
4938 test "${MKDIR}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'MKDIR'@!${MKDIR}!g;"
4957 for ac_prog in mkfifo
4959 # Extract the first word of "$ac_prog", so it can be a program name with args.
4960 set dummy $ac_prog; ac_word=$2
4961 echo "$as_me:$LINENO: checking for $ac_word" >&5
4962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4963 if test "${ac_cv_path_MKFIFO+set}" = set; then
4964 echo $ECHO_N "(cached) $ECHO_C" >&6
4968 ac_cv_path_MKFIFO="$MKFIFO" # Let the user override the test with a path.
4971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4972 for as_dir in $ensc_searchpath
4975 test -z "$as_dir" && as_dir=.
4976 for ac_exec_ext in '' $ac_executable_extensions; do
4977 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4978 ac_cv_path_MKFIFO="$as_dir/$ac_word$ac_exec_ext"
4979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4988 MKFIFO=$ac_cv_path_MKFIFO
4990 if test -n "$MKFIFO"; then
4991 echo "$as_me:$LINENO: result: $MKFIFO" >&5
4992 echo "${ECHO_T}$MKFIFO" >&6
4994 echo "$as_me:$LINENO: result: no" >&5
4995 echo "${ECHO_T}no" >&6
4998 test -n "$MKFIFO" && break
5000 test -n "$MKFIFO" || MKFIFO="$ensc_dflt"
5003 if test -z "${MKFIFO}" && $rq; then
5005 { { echo "$as_me:$LINENO: error: Can not find the 'mkfifo' tool within '${ensc_searchpath:-$PATH}'." >&5
5006 echo "$as_me: error: Can not find the 'mkfifo' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5007 { (exit 1); exit 1; }; }
5009 { { echo "$as_me:$LINENO: error:
5010 Can not find the 'mkfifo' tool within '${ensc_searchpath:-$PATH}'.
5012 echo "$as_me: error:
5013 Can not find the 'mkfifo' tool within '${ensc_searchpath:-$PATH}'.
5015 { (exit 1); exit 1; }; }
5019 if test -e "${MKFIFO}"; then
5020 MKFIFO=`readlink -f "${MKFIFO}"`
5023 test "${MKFIFO}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'MKFIFO'@!${MKFIFO}!g;"
5042 for ac_prog in mktemp
5044 # Extract the first word of "$ac_prog", so it can be a program name with args.
5045 set dummy $ac_prog; ac_word=$2
5046 echo "$as_me:$LINENO: checking for $ac_word" >&5
5047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5048 if test "${ac_cv_path_MKTEMP+set}" = set; then
5049 echo $ECHO_N "(cached) $ECHO_C" >&6
5053 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
5056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5057 for as_dir in $ensc_searchpath
5060 test -z "$as_dir" && as_dir=.
5061 for ac_exec_ext in '' $ac_executable_extensions; do
5062 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5063 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
5064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5073 MKTEMP=$ac_cv_path_MKTEMP
5075 if test -n "$MKTEMP"; then
5076 echo "$as_me:$LINENO: result: $MKTEMP" >&5
5077 echo "${ECHO_T}$MKTEMP" >&6
5079 echo "$as_me:$LINENO: result: no" >&5
5080 echo "${ECHO_T}no" >&6
5083 test -n "$MKTEMP" && break
5085 test -n "$MKTEMP" || MKTEMP="$ensc_dflt"
5088 if test -z "${MKTEMP}" && $rq; then
5090 { { echo "$as_me:$LINENO: error: Can not find the 'mktemp' tool within '${ensc_searchpath:-$PATH}'." >&5
5091 echo "$as_me: error: Can not find the 'mktemp' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5092 { (exit 1); exit 1; }; }
5094 { { echo "$as_me:$LINENO: error:
5095 Can not find the 'mktemp' tool within '${ensc_searchpath:-$PATH}'.
5097 echo "$as_me: error:
5098 Can not find the 'mktemp' tool within '${ensc_searchpath:-$PATH}'.
5100 { (exit 1); exit 1; }; }
5104 if test -e "${MKTEMP}"; then
5105 MKTEMP=`readlink -f "${MKTEMP}"`
5108 test "${MKTEMP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'MKTEMP'@!${MKTEMP}!g;"
5127 for ac_prog in mount
5129 # Extract the first word of "$ac_prog", so it can be a program name with args.
5130 set dummy $ac_prog; ac_word=$2
5131 echo "$as_me:$LINENO: checking for $ac_word" >&5
5132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5133 if test "${ac_cv_path_MOUNT+set}" = set; then
5134 echo $ECHO_N "(cached) $ECHO_C" >&6
5138 ac_cv_path_MOUNT="$MOUNT" # Let the user override the test with a path.
5141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5142 for as_dir in $ensc_searchpath
5145 test -z "$as_dir" && as_dir=.
5146 for ac_exec_ext in '' $ac_executable_extensions; do
5147 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5148 ac_cv_path_MOUNT="$as_dir/$ac_word$ac_exec_ext"
5149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5158 MOUNT=$ac_cv_path_MOUNT
5160 if test -n "$MOUNT"; then
5161 echo "$as_me:$LINENO: result: $MOUNT" >&5
5162 echo "${ECHO_T}$MOUNT" >&6
5164 echo "$as_me:$LINENO: result: no" >&5
5165 echo "${ECHO_T}no" >&6
5168 test -n "$MOUNT" && break
5170 test -n "$MOUNT" || MOUNT="$ensc_dflt"
5173 if test -z "${MOUNT}" && $rq; then
5175 { { echo "$as_me:$LINENO: error: Can not find the 'mount' tool within '${ensc_searchpath:-$PATH}'." >&5
5176 echo "$as_me: error: Can not find the 'mount' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5177 { (exit 1); exit 1; }; }
5179 { { echo "$as_me:$LINENO: error:
5180 Can not find the 'mount' tool within '${ensc_searchpath:-$PATH}'.
5182 echo "$as_me: error:
5183 Can not find the 'mount' tool within '${ensc_searchpath:-$PATH}'.
5185 { (exit 1); exit 1; }; }
5189 if test -e "${MOUNT}"; then
5190 MOUNT=`readlink -f "${MOUNT}"`
5193 test "${MOUNT}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'MOUNT'@!${MOUNT}!g;"
5214 # Extract the first word of "$ac_prog", so it can be a program name with args.
5215 set dummy $ac_prog; ac_word=$2
5216 echo "$as_me:$LINENO: checking for $ac_word" >&5
5217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5218 if test "${ac_cv_path_MV+set}" = set; then
5219 echo $ECHO_N "(cached) $ECHO_C" >&6
5223 ac_cv_path_MV="$MV" # Let the user override the test with a path.
5226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5227 for as_dir in $ensc_searchpath
5230 test -z "$as_dir" && as_dir=.
5231 for ac_exec_ext in '' $ac_executable_extensions; do
5232 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5233 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5245 if test -n "$MV"; then
5246 echo "$as_me:$LINENO: result: $MV" >&5
5247 echo "${ECHO_T}$MV" >&6
5249 echo "$as_me:$LINENO: result: no" >&5
5250 echo "${ECHO_T}no" >&6
5253 test -n "$MV" && break
5255 test -n "$MV" || MV="$ensc_dflt"
5258 if test -z "${MV}" && $rq; then
5260 { { echo "$as_me:$LINENO: error: Can not find the 'mv' tool within '${ensc_searchpath:-$PATH}'." >&5
5261 echo "$as_me: error: Can not find the 'mv' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5262 { (exit 1); exit 1; }; }
5264 { { echo "$as_me:$LINENO: error:
5265 Can not find the 'mv' tool within '${ensc_searchpath:-$PATH}'.
5267 echo "$as_me: error:
5268 Can not find the 'mv' tool within '${ensc_searchpath:-$PATH}'.
5270 { (exit 1); exit 1; }; }
5274 if test -e "${MV}"; then
5275 MV=`readlink -f "${MV}"`
5278 test "${MV}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'MV'@!${MV}!g;"
5299 # Extract the first word of "$ac_prog", so it can be a program name with args.
5300 set dummy $ac_prog; ac_word=$2
5301 echo "$as_me:$LINENO: checking for $ac_word" >&5
5302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5303 if test "${ac_cv_path_NICE+set}" = set; then
5304 echo $ECHO_N "(cached) $ECHO_C" >&6
5308 ac_cv_path_NICE="$NICE" # Let the user override the test with a path.
5311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5312 for as_dir in $ensc_searchpath
5315 test -z "$as_dir" && as_dir=.
5316 for ac_exec_ext in '' $ac_executable_extensions; do
5317 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5318 ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext"
5319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5328 NICE=$ac_cv_path_NICE
5330 if test -n "$NICE"; then
5331 echo "$as_me:$LINENO: result: $NICE" >&5
5332 echo "${ECHO_T}$NICE" >&6
5334 echo "$as_me:$LINENO: result: no" >&5
5335 echo "${ECHO_T}no" >&6
5338 test -n "$NICE" && break
5340 test -n "$NICE" || NICE="$ensc_dflt"
5343 if test -z "${NICE}" && $rq; then
5345 { { echo "$as_me:$LINENO: error: Can not find the 'nice' tool within '${ensc_searchpath:-$PATH}'." >&5
5346 echo "$as_me: error: Can not find the 'nice' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5347 { (exit 1); exit 1; }; }
5349 { { echo "$as_me:$LINENO: error:
5350 Can not find the 'nice' tool within '${ensc_searchpath:-$PATH}'.
5352 echo "$as_me: error:
5353 Can not find the 'nice' tool within '${ensc_searchpath:-$PATH}'.
5355 { (exit 1); exit 1; }; }
5359 if test -e "${NICE}"; then
5360 NICE=`readlink -f "${NICE}"`
5363 test "${NICE}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'NICE'@!${NICE}!g;"
5384 # Extract the first word of "$ac_prog", so it can be a program name with args.
5385 set dummy $ac_prog; ac_word=$2
5386 echo "$as_me:$LINENO: checking for $ac_word" >&5
5387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5388 if test "${ac_cv_path_PS+set}" = set; then
5389 echo $ECHO_N "(cached) $ECHO_C" >&6
5393 ac_cv_path_PS="$PS" # Let the user override the test with a path.
5396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5397 for as_dir in $ensc_searchpath
5400 test -z "$as_dir" && as_dir=.
5401 for ac_exec_ext in '' $ac_executable_extensions; do
5402 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5403 ac_cv_path_PS="$as_dir/$ac_word$ac_exec_ext"
5404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5415 if test -n "$PS"; then
5416 echo "$as_me:$LINENO: result: $PS" >&5
5417 echo "${ECHO_T}$PS" >&6
5419 echo "$as_me:$LINENO: result: no" >&5
5420 echo "${ECHO_T}no" >&6
5423 test -n "$PS" && break
5425 test -n "$PS" || PS="$ensc_dflt"
5428 if test -z "${PS}" && $rq; then
5430 { { echo "$as_me:$LINENO: error: Can not find the 'ps' tool within '${ensc_searchpath:-$PATH}'." >&5
5431 echo "$as_me: error: Can not find the 'ps' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5432 { (exit 1); exit 1; }; }
5434 { { echo "$as_me:$LINENO: error:
5435 Can not find the 'ps' tool within '${ensc_searchpath:-$PATH}'.
5437 echo "$as_me: error:
5438 Can not find the 'ps' tool within '${ensc_searchpath:-$PATH}'.
5440 { (exit 1); exit 1; }; }
5444 if test -e "${PS}"; then
5445 PS=`readlink -f "${PS}"`
5448 test "${PS}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'PS'@!${PS}!g;"
5469 # Extract the first word of "$ac_prog", so it can be a program name with args.
5470 set dummy $ac_prog; ac_word=$2
5471 echo "$as_me:$LINENO: checking for $ac_word" >&5
5472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5473 if test "${ac_cv_path_RM+set}" = set; then
5474 echo $ECHO_N "(cached) $ECHO_C" >&6
5478 ac_cv_path_RM="$RM" # Let the user override the test with a path.
5481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5482 for as_dir in $ensc_searchpath
5485 test -z "$as_dir" && as_dir=.
5486 for ac_exec_ext in '' $ac_executable_extensions; do
5487 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5488 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
5489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5500 if test -n "$RM"; then
5501 echo "$as_me:$LINENO: result: $RM" >&5
5502 echo "${ECHO_T}$RM" >&6
5504 echo "$as_me:$LINENO: result: no" >&5
5505 echo "${ECHO_T}no" >&6
5508 test -n "$RM" && break
5510 test -n "$RM" || RM="$ensc_dflt"
5513 if test -z "${RM}" && $rq; then
5515 { { echo "$as_me:$LINENO: error: Can not find the 'rm' tool within '${ensc_searchpath:-$PATH}'." >&5
5516 echo "$as_me: error: Can not find the 'rm' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5517 { (exit 1); exit 1; }; }
5519 { { echo "$as_me:$LINENO: error:
5520 Can not find the 'rm' tool within '${ensc_searchpath:-$PATH}'.
5522 echo "$as_me: error:
5523 Can not find the 'rm' tool within '${ensc_searchpath:-$PATH}'.
5525 { (exit 1); exit 1; }; }
5529 if test -e "${RM}"; then
5530 RM=`readlink -f "${RM}"`
5533 test "${RM}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'RM'@!${RM}!g;"
5552 for ac_prog in rmdir
5554 # Extract the first word of "$ac_prog", so it can be a program name with args.
5555 set dummy $ac_prog; ac_word=$2
5556 echo "$as_me:$LINENO: checking for $ac_word" >&5
5557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5558 if test "${ac_cv_path_RMDIR+set}" = set; then
5559 echo $ECHO_N "(cached) $ECHO_C" >&6
5563 ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
5566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5567 for as_dir in $ensc_searchpath
5570 test -z "$as_dir" && as_dir=.
5571 for ac_exec_ext in '' $ac_executable_extensions; do
5572 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5573 ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
5574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5583 RMDIR=$ac_cv_path_RMDIR
5585 if test -n "$RMDIR"; then
5586 echo "$as_me:$LINENO: result: $RMDIR" >&5
5587 echo "${ECHO_T}$RMDIR" >&6
5589 echo "$as_me:$LINENO: result: no" >&5
5590 echo "${ECHO_T}no" >&6
5593 test -n "$RMDIR" && break
5595 test -n "$RMDIR" || RMDIR="$ensc_dflt"
5598 if test -z "${RMDIR}" && $rq; then
5600 { { echo "$as_me:$LINENO: error: Can not find the 'rmdir' tool within '${ensc_searchpath:-$PATH}'." >&5
5601 echo "$as_me: error: Can not find the 'rmdir' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5602 { (exit 1); exit 1; }; }
5604 { { echo "$as_me:$LINENO: error:
5605 Can not find the 'rmdir' tool within '${ensc_searchpath:-$PATH}'.
5607 echo "$as_me: error:
5608 Can not find the 'rmdir' tool within '${ensc_searchpath:-$PATH}'.
5610 { (exit 1); exit 1; }; }
5614 if test -e "${RMDIR}"; then
5615 RMDIR=`readlink -f "${RMDIR}"`
5618 test "${RMDIR}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'RMDIR'@!${RMDIR}!g;"
5639 # Extract the first word of "$ac_prog", so it can be a program name with args.
5640 set dummy $ac_prog; ac_word=$2
5641 echo "$as_me:$LINENO: checking for $ac_word" >&5
5642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5643 if test "${ac_cv_path_SED+set}" = set; then
5644 echo $ECHO_N "(cached) $ECHO_C" >&6
5648 ac_cv_path_SED="$SED" # Let the user override the test with a path.
5651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5652 for as_dir in $ensc_searchpath
5655 test -z "$as_dir" && as_dir=.
5656 for ac_exec_ext in '' $ac_executable_extensions; do
5657 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5658 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5670 if test -n "$SED"; then
5671 echo "$as_me:$LINENO: result: $SED" >&5
5672 echo "${ECHO_T}$SED" >&6
5674 echo "$as_me:$LINENO: result: no" >&5
5675 echo "${ECHO_T}no" >&6
5678 test -n "$SED" && break
5680 test -n "$SED" || SED="$ensc_dflt"
5683 if test -z "${SED}" && $rq; then
5685 { { echo "$as_me:$LINENO: error: Can not find the 'sed' tool within '${ensc_searchpath:-$PATH}'." >&5
5686 echo "$as_me: error: Can not find the 'sed' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5687 { (exit 1); exit 1; }; }
5689 { { echo "$as_me:$LINENO: error:
5690 Can not find the 'sed' tool within '${ensc_searchpath:-$PATH}'.
5692 echo "$as_me: error:
5693 Can not find the 'sed' tool within '${ensc_searchpath:-$PATH}'.
5695 { (exit 1); exit 1; }; }
5699 if test -e "${SED}"; then
5700 SED=`readlink -f "${SED}"`
5703 test "${SED}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'SED'@!${SED}!g;"
5724 # Extract the first word of "$ac_prog", so it can be a program name with args.
5725 set dummy $ac_prog; ac_word=$2
5726 echo "$as_me:$LINENO: checking for $ac_word" >&5
5727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5728 if test "${ac_cv_path_SH+set}" = set; then
5729 echo $ECHO_N "(cached) $ECHO_C" >&6
5733 ac_cv_path_SH="$SH" # Let the user override the test with a path.
5736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5737 for as_dir in $ensc_searchpath
5740 test -z "$as_dir" && as_dir=.
5741 for ac_exec_ext in '' $ac_executable_extensions; do
5742 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5743 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
5744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5755 if test -n "$SH"; then
5756 echo "$as_me:$LINENO: result: $SH" >&5
5757 echo "${ECHO_T}$SH" >&6
5759 echo "$as_me:$LINENO: result: no" >&5
5760 echo "${ECHO_T}no" >&6
5763 test -n "$SH" && break
5765 test -n "$SH" || SH="$ensc_dflt"
5768 if test -z "${SH}" && $rq; then
5770 { { echo "$as_me:$LINENO: error: Can not find the 'sh' tool within '${ensc_searchpath:-$PATH}'." >&5
5771 echo "$as_me: error: Can not find the 'sh' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5772 { (exit 1); exit 1; }; }
5774 { { echo "$as_me:$LINENO: error:
5775 Can not find the 'sh' tool within '${ensc_searchpath:-$PATH}'.
5777 echo "$as_me: error:
5778 Can not find the 'sh' tool within '${ensc_searchpath:-$PATH}'.
5780 { (exit 1); exit 1; }; }
5784 if test -e "${SH}"; then
5785 SH=`readlink -f "${SH}"`
5788 test "${SH}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'SH'@!${SH}!g;"
5809 # Extract the first word of "$ac_prog", so it can be a program name with args.
5810 set dummy $ac_prog; ac_word=$2
5811 echo "$as_me:$LINENO: checking for $ac_word" >&5
5812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5813 if test "${ac_cv_path_TAC+set}" = set; then
5814 echo $ECHO_N "(cached) $ECHO_C" >&6
5818 ac_cv_path_TAC="$TAC" # Let the user override the test with a path.
5821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5822 for as_dir in $ensc_searchpath
5825 test -z "$as_dir" && as_dir=.
5826 for ac_exec_ext in '' $ac_executable_extensions; do
5827 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5828 ac_cv_path_TAC="$as_dir/$ac_word$ac_exec_ext"
5829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5840 if test -n "$TAC"; then
5841 echo "$as_me:$LINENO: result: $TAC" >&5
5842 echo "${ECHO_T}$TAC" >&6
5844 echo "$as_me:$LINENO: result: no" >&5
5845 echo "${ECHO_T}no" >&6
5848 test -n "$TAC" && break
5850 test -n "$TAC" || TAC="$ensc_dflt"
5853 if test -z "${TAC}" && $rq; then
5855 { { echo "$as_me:$LINENO: error: Can not find the 'tac' tool within '${ensc_searchpath:-$PATH}'." >&5
5856 echo "$as_me: error: Can not find the 'tac' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5857 { (exit 1); exit 1; }; }
5859 { { echo "$as_me:$LINENO: error:
5860 Can not find the 'tac' tool within '${ensc_searchpath:-$PATH}'.
5862 echo "$as_me: error:
5863 Can not find the 'tac' tool within '${ensc_searchpath:-$PATH}'.
5865 { (exit 1); exit 1; }; }
5869 if test -e "${TAC}"; then
5870 TAC=`readlink -f "${TAC}"`
5873 test "${TAC}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'TAC'@!${TAC}!g;"
5894 # Extract the first word of "$ac_prog", so it can be a program name with args.
5895 set dummy $ac_prog; ac_word=$2
5896 echo "$as_me:$LINENO: checking for $ac_word" >&5
5897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5898 if test "${ac_cv_path_TAR+set}" = set; then
5899 echo $ECHO_N "(cached) $ECHO_C" >&6
5903 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5907 for as_dir in $ensc_searchpath
5910 test -z "$as_dir" && as_dir=.
5911 for ac_exec_ext in '' $ac_executable_extensions; do
5912 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5913 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5925 if test -n "$TAR"; then
5926 echo "$as_me:$LINENO: result: $TAR" >&5
5927 echo "${ECHO_T}$TAR" >&6
5929 echo "$as_me:$LINENO: result: no" >&5
5930 echo "${ECHO_T}no" >&6
5933 test -n "$TAR" && break
5935 test -n "$TAR" || TAR="$ensc_dflt"
5938 if test -z "${TAR}" && $rq; then
5940 { { echo "$as_me:$LINENO: error: Can not find the 'tar' tool within '${ensc_searchpath:-$PATH}'." >&5
5941 echo "$as_me: error: Can not find the 'tar' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5942 { (exit 1); exit 1; }; }
5944 { { echo "$as_me:$LINENO: error:
5945 Can not find the 'tar' tool within '${ensc_searchpath:-$PATH}'.
5947 echo "$as_me: error:
5948 Can not find the 'tar' tool within '${ensc_searchpath:-$PATH}'.
5950 { (exit 1); exit 1; }; }
5954 if test -e "${TAR}"; then
5955 TAR=`readlink -f "${TAR}"`
5958 test "${TAR}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'TAR'@!${TAR}!g;"
5977 for ac_prog in touch
5979 # Extract the first word of "$ac_prog", so it can be a program name with args.
5980 set dummy $ac_prog; ac_word=$2
5981 echo "$as_me:$LINENO: checking for $ac_word" >&5
5982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5983 if test "${ac_cv_path_TOUCH+set}" = set; then
5984 echo $ECHO_N "(cached) $ECHO_C" >&6
5988 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
5991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5992 for as_dir in $ensc_searchpath
5995 test -z "$as_dir" && as_dir=.
5996 for ac_exec_ext in '' $ac_executable_extensions; do
5997 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5998 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
5999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6008 TOUCH=$ac_cv_path_TOUCH
6010 if test -n "$TOUCH"; then
6011 echo "$as_me:$LINENO: result: $TOUCH" >&5
6012 echo "${ECHO_T}$TOUCH" >&6
6014 echo "$as_me:$LINENO: result: no" >&5
6015 echo "${ECHO_T}no" >&6
6018 test -n "$TOUCH" && break
6020 test -n "$TOUCH" || TOUCH="$ensc_dflt"
6023 if test -z "${TOUCH}" && $rq; then
6025 { { echo "$as_me:$LINENO: error: Can not find the 'touch' tool within '${ensc_searchpath:-$PATH}'." >&5
6026 echo "$as_me: error: Can not find the 'touch' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6027 { (exit 1); exit 1; }; }
6029 { { echo "$as_me:$LINENO: error:
6030 Can not find the 'touch' tool within '${ensc_searchpath:-$PATH}'.
6032 echo "$as_me: error:
6033 Can not find the 'touch' tool within '${ensc_searchpath:-$PATH}'.
6035 { (exit 1); exit 1; }; }
6039 if test -e "${TOUCH}"; then
6040 TOUCH=`readlink -f "${TOUCH}"`
6043 test "${TOUCH}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'TOUCH'@!${TOUCH}!g;"
6064 # Extract the first word of "$ac_prog", so it can be a program name with args.
6065 set dummy $ac_prog; ac_word=$2
6066 echo "$as_me:$LINENO: checking for $ac_word" >&5
6067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6068 if test "${ac_cv_path_TTY+set}" = set; then
6069 echo $ECHO_N "(cached) $ECHO_C" >&6
6073 ac_cv_path_TTY="$TTY" # Let the user override the test with a path.
6076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6077 for as_dir in $ensc_searchpath
6080 test -z "$as_dir" && as_dir=.
6081 for ac_exec_ext in '' $ac_executable_extensions; do
6082 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6083 ac_cv_path_TTY="$as_dir/$ac_word$ac_exec_ext"
6084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6095 if test -n "$TTY"; then
6096 echo "$as_me:$LINENO: result: $TTY" >&5
6097 echo "${ECHO_T}$TTY" >&6
6099 echo "$as_me:$LINENO: result: no" >&5
6100 echo "${ECHO_T}no" >&6
6103 test -n "$TTY" && break
6105 test -n "$TTY" || TTY="$ensc_dflt"
6108 if test -z "${TTY}" && $rq; then
6110 { { echo "$as_me:$LINENO: error: Can not find the 'tty' tool within '${ensc_searchpath:-$PATH}'." >&5
6111 echo "$as_me: error: Can not find the 'tty' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6112 { (exit 1); exit 1; }; }
6114 { { echo "$as_me:$LINENO: error:
6115 Can not find the 'tty' tool within '${ensc_searchpath:-$PATH}'.
6117 echo "$as_me: error:
6118 Can not find the 'tty' tool within '${ensc_searchpath:-$PATH}'.
6120 { (exit 1); exit 1; }; }
6124 if test -e "${TTY}"; then
6125 TTY=`readlink -f "${TTY}"`
6128 test "${TTY}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'TTY'@!${TTY}!g;"
6147 for ac_prog in umount
6149 # Extract the first word of "$ac_prog", so it can be a program name with args.
6150 set dummy $ac_prog; ac_word=$2
6151 echo "$as_me:$LINENO: checking for $ac_word" >&5
6152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6153 if test "${ac_cv_path_UMOUNT+set}" = set; then
6154 echo $ECHO_N "(cached) $ECHO_C" >&6
6158 ac_cv_path_UMOUNT="$UMOUNT" # Let the user override the test with a path.
6161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6162 for as_dir in $ensc_searchpath
6165 test -z "$as_dir" && as_dir=.
6166 for ac_exec_ext in '' $ac_executable_extensions; do
6167 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6168 ac_cv_path_UMOUNT="$as_dir/$ac_word$ac_exec_ext"
6169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6178 UMOUNT=$ac_cv_path_UMOUNT
6180 if test -n "$UMOUNT"; then
6181 echo "$as_me:$LINENO: result: $UMOUNT" >&5
6182 echo "${ECHO_T}$UMOUNT" >&6
6184 echo "$as_me:$LINENO: result: no" >&5
6185 echo "${ECHO_T}no" >&6
6188 test -n "$UMOUNT" && break
6190 test -n "$UMOUNT" || UMOUNT="$ensc_dflt"
6193 if test -z "${UMOUNT}" && $rq; then
6195 { { echo "$as_me:$LINENO: error: Can not find the 'umount' tool within '${ensc_searchpath:-$PATH}'." >&5
6196 echo "$as_me: error: Can not find the 'umount' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6197 { (exit 1); exit 1; }; }
6199 { { echo "$as_me:$LINENO: error:
6200 Can not find the 'umount' tool within '${ensc_searchpath:-$PATH}'.
6202 echo "$as_me: error:
6203 Can not find the 'umount' tool within '${ensc_searchpath:-$PATH}'.
6205 { (exit 1); exit 1; }; }
6209 if test -e "${UMOUNT}"; then
6210 UMOUNT=`readlink -f "${UMOUNT}"`
6213 test "${UMOUNT}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'UMOUNT'@!${UMOUNT}!g;"
6234 # Extract the first word of "$ac_prog", so it can be a program name with args.
6235 set dummy $ac_prog; ac_word=$2
6236 echo "$as_me:$LINENO: checking for $ac_word" >&5
6237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6238 if test "${ac_cv_path_WC+set}" = set; then
6239 echo $ECHO_N "(cached) $ECHO_C" >&6
6243 ac_cv_path_WC="$WC" # Let the user override the test with a path.
6246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6247 for as_dir in $ensc_searchpath
6250 test -z "$as_dir" && as_dir=.
6251 for ac_exec_ext in '' $ac_executable_extensions; do
6252 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6253 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
6254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6265 if test -n "$WC"; then
6266 echo "$as_me:$LINENO: result: $WC" >&5
6267 echo "${ECHO_T}$WC" >&6
6269 echo "$as_me:$LINENO: result: no" >&5
6270 echo "${ECHO_T}no" >&6
6273 test -n "$WC" && break
6275 test -n "$WC" || WC="$ensc_dflt"
6278 if test -z "${WC}" && $rq; then
6280 { { echo "$as_me:$LINENO: error: Can not find the 'wc' tool within '${ensc_searchpath:-$PATH}'." >&5
6281 echo "$as_me: error: Can not find the 'wc' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6282 { (exit 1); exit 1; }; }
6284 { { echo "$as_me:$LINENO: error:
6285 Can not find the 'wc' tool within '${ensc_searchpath:-$PATH}'.
6287 echo "$as_me: error:
6288 Can not find the 'wc' tool within '${ensc_searchpath:-$PATH}'.
6290 { (exit 1); exit 1; }; }
6294 if test -e "${WC}"; then
6295 WC=`readlink -f "${WC}"`
6298 test "${WC}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'WC'@!${WC}!g;"
6321 # Extract the first word of "$ac_prog", so it can be a program name with args.
6322 set dummy $ac_prog; ac_word=$2
6323 echo "$as_me:$LINENO: checking for $ac_word" >&5
6324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6325 if test "${ac_cv_path_IP+set}" = set; then
6326 echo $ECHO_N "(cached) $ECHO_C" >&6
6330 ac_cv_path_IP="$IP" # Let the user override the test with a path.
6333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6334 for as_dir in $ensc_searchpath
6337 test -z "$as_dir" && as_dir=.
6338 for ac_exec_ext in '' $ac_executable_extensions; do
6339 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6340 ac_cv_path_IP="$as_dir/$ac_word$ac_exec_ext"
6341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6352 if test -n "$IP"; then
6353 echo "$as_me:$LINENO: result: $IP" >&5
6354 echo "${ECHO_T}$IP" >&6
6356 echo "$as_me:$LINENO: result: no" >&5
6357 echo "${ECHO_T}no" >&6
6360 test -n "$IP" && break
6362 test -n "$IP" || IP="$ensc_dflt"
6365 if test -z "${IP}" && $rq; then
6366 if test -z "Usually, this tool is shipped in the 'iproute' or 'iproute2' package of your distribution"; then
6367 { { echo "$as_me:$LINENO: error: Can not find the 'ip' tool within '${ensc_searchpath:-$PATH}'." >&5
6368 echo "$as_me: error: Can not find the 'ip' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6369 { (exit 1); exit 1; }; }
6371 { { echo "$as_me:$LINENO: error:
6372 Can not find the 'ip' tool within '${ensc_searchpath:-$PATH}'.
6373 Usually, this tool is shipped in the 'iproute' or 'iproute2' package of your distribution" >&5
6374 echo "$as_me: error:
6375 Can not find the 'ip' tool within '${ensc_searchpath:-$PATH}'.
6376 Usually, this tool is shipped in the 'iproute' or 'iproute2' package of your distribution" >&2;}
6377 { (exit 1); exit 1; }; }
6381 if test -e "${IP}"; then
6382 IP=`readlink -f "${IP}"`
6385 test "${IP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'IP'@!${IP}!g;"
6404 for ac_prog in iptables
6406 # Extract the first word of "$ac_prog", so it can be a program name with args.
6407 set dummy $ac_prog; ac_word=$2
6408 echo "$as_me:$LINENO: checking for $ac_word" >&5
6409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6410 if test "${ac_cv_path_IPTABLES+set}" = set; then
6411 echo $ECHO_N "(cached) $ECHO_C" >&6
6415 ac_cv_path_IPTABLES="$IPTABLES" # Let the user override the test with a path.
6418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6419 for as_dir in $ensc_searchpath
6422 test -z "$as_dir" && as_dir=.
6423 for ac_exec_ext in '' $ac_executable_extensions; do
6424 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6425 ac_cv_path_IPTABLES="$as_dir/$ac_word$ac_exec_ext"
6426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6435 IPTABLES=$ac_cv_path_IPTABLES
6437 if test -n "$IPTABLES"; then
6438 echo "$as_me:$LINENO: result: $IPTABLES" >&5
6439 echo "${ECHO_T}$IPTABLES" >&6
6441 echo "$as_me:$LINENO: result: no" >&5
6442 echo "${ECHO_T}no" >&6
6445 test -n "$IPTABLES" && break
6447 test -n "$IPTABLES" || IPTABLES="$ensc_dflt"
6450 if test -z "${IPTABLES}" && $rq; then
6452 { { echo "$as_me:$LINENO: error: Can not find the 'iptables' tool within '${ensc_searchpath:-$PATH}'." >&5
6453 echo "$as_me: error: Can not find the 'iptables' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6454 { (exit 1); exit 1; }; }
6456 { { echo "$as_me:$LINENO: error:
6457 Can not find the 'iptables' tool within '${ensc_searchpath:-$PATH}'.
6459 echo "$as_me: error:
6460 Can not find the 'iptables' tool within '${ensc_searchpath:-$PATH}'.
6462 { (exit 1); exit 1; }; }
6466 if test -e "${IPTABLES}"; then
6467 IPTABLES=`readlink -f "${IPTABLES}"`
6470 test "${IPTABLES}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'IPTABLES'@!${IPTABLES}!g;"
6489 for ac_prog in modprobe
6491 # Extract the first word of "$ac_prog", so it can be a program name with args.
6492 set dummy $ac_prog; ac_word=$2
6493 echo "$as_me:$LINENO: checking for $ac_word" >&5
6494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6495 if test "${ac_cv_path_MODPROBE+set}" = set; then
6496 echo $ECHO_N "(cached) $ECHO_C" >&6
6500 ac_cv_path_MODPROBE="$MODPROBE" # Let the user override the test with a path.
6503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6504 for as_dir in $ensc_searchpath
6507 test -z "$as_dir" && as_dir=.
6508 for ac_exec_ext in '' $ac_executable_extensions; do
6509 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6510 ac_cv_path_MODPROBE="$as_dir/$ac_word$ac_exec_ext"
6511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6520 MODPROBE=$ac_cv_path_MODPROBE
6522 if test -n "$MODPROBE"; then
6523 echo "$as_me:$LINENO: result: $MODPROBE" >&5
6524 echo "${ECHO_T}$MODPROBE" >&6
6526 echo "$as_me:$LINENO: result: no" >&5
6527 echo "${ECHO_T}no" >&6
6530 test -n "$MODPROBE" && break
6532 test -n "$MODPROBE" || MODPROBE="$ensc_dflt"
6535 if test -z "${MODPROBE}" && $rq; then
6537 { { echo "$as_me:$LINENO: error: Can not find the 'modprobe' tool within '${ensc_searchpath:-$PATH}'." >&5
6538 echo "$as_me: error: Can not find the 'modprobe' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6539 { (exit 1); exit 1; }; }
6541 { { echo "$as_me:$LINENO: error:
6542 Can not find the 'modprobe' tool within '${ensc_searchpath:-$PATH}'.
6544 echo "$as_me: error:
6545 Can not find the 'modprobe' tool within '${ensc_searchpath:-$PATH}'.
6547 { (exit 1); exit 1; }; }
6551 if test -e "${MODPROBE}"; then
6552 MODPROBE=`readlink -f "${MODPROBE}"`
6555 test "${MODPROBE}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'MODPROBE'@!${MODPROBE}!g;"
6574 for ac_prog in nameif
6576 # Extract the first word of "$ac_prog", so it can be a program name with args.
6577 set dummy $ac_prog; ac_word=$2
6578 echo "$as_me:$LINENO: checking for $ac_word" >&5
6579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6580 if test "${ac_cv_path_NAMEIF+set}" = set; then
6581 echo $ECHO_N "(cached) $ECHO_C" >&6
6585 ac_cv_path_NAMEIF="$NAMEIF" # Let the user override the test with a path.
6588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6589 for as_dir in $ensc_searchpath
6592 test -z "$as_dir" && as_dir=.
6593 for ac_exec_ext in '' $ac_executable_extensions; do
6594 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6595 ac_cv_path_NAMEIF="$as_dir/$ac_word$ac_exec_ext"
6596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6605 NAMEIF=$ac_cv_path_NAMEIF
6607 if test -n "$NAMEIF"; then
6608 echo "$as_me:$LINENO: result: $NAMEIF" >&5
6609 echo "${ECHO_T}$NAMEIF" >&6
6611 echo "$as_me:$LINENO: result: no" >&5
6612 echo "${ECHO_T}no" >&6
6615 test -n "$NAMEIF" && break
6617 test -n "$NAMEIF" || NAMEIF="$ensc_dflt"
6620 if test -z "${NAMEIF}" && $rq; then
6622 { { echo "$as_me:$LINENO: error: Can not find the 'nameif' tool within '${ensc_searchpath:-$PATH}'." >&5
6623 echo "$as_me: error: Can not find the 'nameif' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6624 { (exit 1); exit 1; }; }
6626 { { echo "$as_me:$LINENO: error:
6627 Can not find the 'nameif' tool within '${ensc_searchpath:-$PATH}'.
6629 echo "$as_me: error:
6630 Can not find the 'nameif' tool within '${ensc_searchpath:-$PATH}'.
6632 { (exit 1); exit 1; }; }
6636 if test -e "${NAMEIF}"; then
6637 NAMEIF=`readlink -f "${NAMEIF}"`
6640 test "${NAMEIF}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'NAMEIF'@!${NAMEIF}!g;"
6659 for ac_prog in nohup
6661 # Extract the first word of "$ac_prog", so it can be a program name with args.
6662 set dummy $ac_prog; ac_word=$2
6663 echo "$as_me:$LINENO: checking for $ac_word" >&5
6664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6665 if test "${ac_cv_path_NOHUP+set}" = set; then
6666 echo $ECHO_N "(cached) $ECHO_C" >&6
6670 ac_cv_path_NOHUP="$NOHUP" # Let the user override the test with a path.
6673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6674 for as_dir in $ensc_searchpath
6677 test -z "$as_dir" && as_dir=.
6678 for ac_exec_ext in '' $ac_executable_extensions; do
6679 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6680 ac_cv_path_NOHUP="$as_dir/$ac_word$ac_exec_ext"
6681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6690 NOHUP=$ac_cv_path_NOHUP
6692 if test -n "$NOHUP"; then
6693 echo "$as_me:$LINENO: result: $NOHUP" >&5
6694 echo "${ECHO_T}$NOHUP" >&6
6696 echo "$as_me:$LINENO: result: no" >&5
6697 echo "${ECHO_T}no" >&6
6700 test -n "$NOHUP" && break
6702 test -n "$NOHUP" || NOHUP="$ensc_dflt"
6705 if test -z "${NOHUP}" && $rq; then
6707 { { echo "$as_me:$LINENO: error: Can not find the 'nohup' tool within '${ensc_searchpath:-$PATH}'." >&5
6708 echo "$as_me: error: Can not find the 'nohup' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6709 { (exit 1); exit 1; }; }
6711 { { echo "$as_me:$LINENO: error:
6712 Can not find the 'nohup' tool within '${ensc_searchpath:-$PATH}'.
6714 echo "$as_me: error:
6715 Can not find the 'nohup' tool within '${ensc_searchpath:-$PATH}'.
6717 { (exit 1); exit 1; }; }
6721 if test -e "${NOHUP}"; then
6722 NOHUP=`readlink -f "${NOHUP}"`
6725 test "${NOHUP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'NOHUP'@!${NOHUP}!g;"
6744 for ac_prog in rmmod
6746 # Extract the first word of "$ac_prog", so it can be a program name with args.
6747 set dummy $ac_prog; ac_word=$2
6748 echo "$as_me:$LINENO: checking for $ac_word" >&5
6749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6750 if test "${ac_cv_path_RMMOD+set}" = set; then
6751 echo $ECHO_N "(cached) $ECHO_C" >&6
6755 ac_cv_path_RMMOD="$RMMOD" # Let the user override the test with a path.
6758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6759 for as_dir in $ensc_searchpath
6762 test -z "$as_dir" && as_dir=.
6763 for ac_exec_ext in '' $ac_executable_extensions; do
6764 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6765 ac_cv_path_RMMOD="$as_dir/$ac_word$ac_exec_ext"
6766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6775 RMMOD=$ac_cv_path_RMMOD
6777 if test -n "$RMMOD"; then
6778 echo "$as_me:$LINENO: result: $RMMOD" >&5
6779 echo "${ECHO_T}$RMMOD" >&6
6781 echo "$as_me:$LINENO: result: no" >&5
6782 echo "${ECHO_T}no" >&6
6785 test -n "$RMMOD" && break
6787 test -n "$RMMOD" || RMMOD="$ensc_dflt"
6790 if test -z "${RMMOD}" && $rq; then
6792 { { echo "$as_me:$LINENO: error: Can not find the 'rmmod' tool within '${ensc_searchpath:-$PATH}'." >&5
6793 echo "$as_me: error: Can not find the 'rmmod' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6794 { (exit 1); exit 1; }; }
6796 { { echo "$as_me:$LINENO: error:
6797 Can not find the 'rmmod' tool within '${ensc_searchpath:-$PATH}'.
6799 echo "$as_me: error:
6800 Can not find the 'rmmod' tool within '${ensc_searchpath:-$PATH}'.
6802 { (exit 1); exit 1; }; }
6806 if test -e "${RMMOD}"; then
6807 RMMOD=`readlink -f "${RMMOD}"`
6810 test "${RMMOD}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'RMMOD'@!${RMMOD}!g;"
6829 for ac_prog in vconfig
6831 # Extract the first word of "$ac_prog", so it can be a program name with args.
6832 set dummy $ac_prog; ac_word=$2
6833 echo "$as_me:$LINENO: checking for $ac_word" >&5
6834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6835 if test "${ac_cv_path_VCONFIG+set}" = set; then
6836 echo $ECHO_N "(cached) $ECHO_C" >&6
6840 ac_cv_path_VCONFIG="$VCONFIG" # Let the user override the test with a path.
6843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6844 for as_dir in $ensc_searchpath
6847 test -z "$as_dir" && as_dir=.
6848 for ac_exec_ext in '' $ac_executable_extensions; do
6849 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6850 ac_cv_path_VCONFIG="$as_dir/$ac_word$ac_exec_ext"
6851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6860 VCONFIG=$ac_cv_path_VCONFIG
6862 if test -n "$VCONFIG"; then
6863 echo "$as_me:$LINENO: result: $VCONFIG" >&5
6864 echo "${ECHO_T}$VCONFIG" >&6
6866 echo "$as_me:$LINENO: result: no" >&5
6867 echo "${ECHO_T}no" >&6
6870 test -n "$VCONFIG" && break
6872 test -n "$VCONFIG" || VCONFIG="$ensc_dflt"
6875 if test -z "${VCONFIG}" && $rq; then
6876 if test -z "See http://www.candelatech.com/~greear/vlan.html; usually this tool is shipped in the 'vconfig' or 'vlan' package of your distribution"; then
6877 { { echo "$as_me:$LINENO: error: Can not find the 'vconfig' tool within '${ensc_searchpath:-$PATH}'." >&5
6878 echo "$as_me: error: Can not find the 'vconfig' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6879 { (exit 1); exit 1; }; }
6881 { { echo "$as_me:$LINENO: error:
6882 Can not find the 'vconfig' tool within '${ensc_searchpath:-$PATH}'.
6883 See http://www.candelatech.com/~greear/vlan.html; usually this tool is shipped in the 'vconfig' or 'vlan' package of your distribution" >&5
6884 echo "$as_me: error:
6885 Can not find the 'vconfig' tool within '${ensc_searchpath:-$PATH}'.
6886 See http://www.candelatech.com/~greear/vlan.html; usually this tool is shipped in the 'vconfig' or 'vlan' package of your distribution" >&2;}
6887 { (exit 1); exit 1; }; }
6891 if test -e "${VCONFIG}"; then
6892 VCONFIG=`readlink -f "${VCONFIG}"`
6895 test "${VCONFIG}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'VCONFIG'@!${VCONFIG}!g;"
6916 # Extract the first word of "$ac_prog", so it can be a program name with args.
6917 set dummy $ac_prog; ac_word=$2
6918 echo "$as_me:$LINENO: checking for $ac_word" >&5
6919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6920 if test "${ac_cv_path_WGET+set}" = set; then
6921 echo $ECHO_N "(cached) $ECHO_C" >&6
6925 ac_cv_path_WGET="$WGET" # Let the user override the test with a path.
6928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6929 for as_dir in $ensc_searchpath
6932 test -z "$as_dir" && as_dir=.
6933 for ac_exec_ext in '' $ac_executable_extensions; do
6934 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6935 ac_cv_path_WGET="$as_dir/$ac_word$ac_exec_ext"
6936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6945 WGET=$ac_cv_path_WGET
6947 if test -n "$WGET"; then
6948 echo "$as_me:$LINENO: result: $WGET" >&5
6949 echo "${ECHO_T}$WGET" >&6
6951 echo "$as_me:$LINENO: result: no" >&5
6952 echo "${ECHO_T}no" >&6
6955 test -n "$WGET" && break
6957 test -n "$WGET" || WGET="$ensc_dflt"
6960 if test -z "${WGET}" && $rq; then
6962 { { echo "$as_me:$LINENO: error: Can not find the 'wget' tool within '${ensc_searchpath:-$PATH}'." >&5
6963 echo "$as_me: error: Can not find the 'wget' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6964 { (exit 1); exit 1; }; }
6966 { { echo "$as_me:$LINENO: error:
6967 Can not find the 'wget' tool within '${ensc_searchpath:-$PATH}'.
6969 echo "$as_me: error:
6970 Can not find the 'wget' tool within '${ensc_searchpath:-$PATH}'.
6972 { (exit 1); exit 1; }; }
6976 if test -e "${WGET}"; then
6977 WGET=`readlink -f "${WGET}"`
6980 test "${WGET}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'WGET'@!${WGET}!g;"
6987 if test -z "file"; then
7001 # Extract the first word of "$ac_prog", so it can be a program name with args.
7002 set dummy $ac_prog; ac_word=$2
7003 echo "$as_me:$LINENO: checking for $ac_word" >&5
7004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7005 if test "${ac_cv_path_FILE+set}" = set; then
7006 echo $ECHO_N "(cached) $ECHO_C" >&6
7010 ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7014 for as_dir in $ensc_searchpath
7017 test -z "$as_dir" && as_dir=.
7018 for ac_exec_ext in '' $ac_executable_extensions; do
7019 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7020 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7030 FILE=$ac_cv_path_FILE
7032 if test -n "$FILE"; then
7033 echo "$as_me:$LINENO: result: $FILE" >&5
7034 echo "${ECHO_T}$FILE" >&6
7036 echo "$as_me:$LINENO: result: no" >&5
7037 echo "${ECHO_T}no" >&6
7040 test -n "$FILE" && break
7042 test -n "$FILE" || FILE="$ensc_dflt"
7045 if test -z "${FILE}" && $rq; then
7047 { { echo "$as_me:$LINENO: error: Can not find the 'file' tool within '${ensc_searchpath:-$PATH}'." >&5
7048 echo "$as_me: error: Can not find the 'file' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7049 { (exit 1); exit 1; }; }
7051 { { echo "$as_me:$LINENO: error:
7052 Can not find the 'file' tool within '${ensc_searchpath:-$PATH}'.
7054 echo "$as_me: error:
7055 Can not find the 'file' tool within '${ensc_searchpath:-$PATH}'.
7057 { (exit 1); exit 1; }; }
7061 if test -e "${FILE}"; then
7062 FILE=`readlink -f "${FILE}"`
7065 test "${FILE}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'FILE'@!${FILE}!g;"
7072 if test -z "gzip"; then
7086 # Extract the first word of "$ac_prog", so it can be a program name with args.
7087 set dummy $ac_prog; ac_word=$2
7088 echo "$as_me:$LINENO: checking for $ac_word" >&5
7089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7090 if test "${ac_cv_path_GZIP+set}" = set; then
7091 echo $ECHO_N "(cached) $ECHO_C" >&6
7095 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7099 for as_dir in $ensc_searchpath
7102 test -z "$as_dir" && as_dir=.
7103 for ac_exec_ext in '' $ac_executable_extensions; do
7104 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7105 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7115 GZIP=$ac_cv_path_GZIP
7117 if test -n "$GZIP"; then
7118 echo "$as_me:$LINENO: result: $GZIP" >&5
7119 echo "${ECHO_T}$GZIP" >&6
7121 echo "$as_me:$LINENO: result: no" >&5
7122 echo "${ECHO_T}no" >&6
7125 test -n "$GZIP" && break
7127 test -n "$GZIP" || GZIP="$ensc_dflt"
7130 if test -z "${GZIP}" && $rq; then
7132 { { echo "$as_me:$LINENO: error: Can not find the 'gzip' tool within '${ensc_searchpath:-$PATH}'." >&5
7133 echo "$as_me: error: Can not find the 'gzip' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7134 { (exit 1); exit 1; }; }
7136 { { echo "$as_me:$LINENO: error:
7137 Can not find the 'gzip' tool within '${ensc_searchpath:-$PATH}'.
7139 echo "$as_me: error:
7140 Can not find the 'gzip' tool within '${ensc_searchpath:-$PATH}'.
7142 { (exit 1); exit 1; }; }
7146 if test -e "${GZIP}"; then
7147 GZIP=`readlink -f "${GZIP}"`
7150 test "${GZIP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'GZIP'@!${GZIP}!g;"
7157 if test -z "bzip2"; then
7169 for ac_prog in bzip2
7171 # Extract the first word of "$ac_prog", so it can be a program name with args.
7172 set dummy $ac_prog; ac_word=$2
7173 echo "$as_me:$LINENO: checking for $ac_word" >&5
7174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7175 if test "${ac_cv_path_BZIP2+set}" = set; then
7176 echo $ECHO_N "(cached) $ECHO_C" >&6
7180 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7184 for as_dir in $ensc_searchpath
7187 test -z "$as_dir" && as_dir=.
7188 for ac_exec_ext in '' $ac_executable_extensions; do
7189 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7190 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7200 BZIP2=$ac_cv_path_BZIP2
7202 if test -n "$BZIP2"; then
7203 echo "$as_me:$LINENO: result: $BZIP2" >&5
7204 echo "${ECHO_T}$BZIP2" >&6
7206 echo "$as_me:$LINENO: result: no" >&5
7207 echo "${ECHO_T}no" >&6
7210 test -n "$BZIP2" && break
7212 test -n "$BZIP2" || BZIP2="$ensc_dflt"
7215 if test -z "${BZIP2}" && $rq; then
7217 { { echo "$as_me:$LINENO: error: Can not find the 'bzip2' tool within '${ensc_searchpath:-$PATH}'." >&5
7218 echo "$as_me: error: Can not find the 'bzip2' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7219 { (exit 1); exit 1; }; }
7221 { { echo "$as_me:$LINENO: error:
7222 Can not find the 'bzip2' tool within '${ensc_searchpath:-$PATH}'.
7224 echo "$as_me: error:
7225 Can not find the 'bzip2' tool within '${ensc_searchpath:-$PATH}'.
7227 { (exit 1); exit 1; }; }
7231 if test -e "${BZIP2}"; then
7232 BZIP2=`readlink -f "${BZIP2}"`
7235 test "${BZIP2}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'BZIP2'@!${BZIP2}!g;"
7242 if test -z "cpio"; then
7256 # Extract the first word of "$ac_prog", so it can be a program name with args.
7257 set dummy $ac_prog; ac_word=$2
7258 echo "$as_me:$LINENO: checking for $ac_word" >&5
7259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7260 if test "${ac_cv_path_CPIO+set}" = set; then
7261 echo $ECHO_N "(cached) $ECHO_C" >&6
7265 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
7268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7269 for as_dir in $ensc_searchpath
7272 test -z "$as_dir" && as_dir=.
7273 for ac_exec_ext in '' $ac_executable_extensions; do
7274 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7275 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
7276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7285 CPIO=$ac_cv_path_CPIO
7287 if test -n "$CPIO"; then
7288 echo "$as_me:$LINENO: result: $CPIO" >&5
7289 echo "${ECHO_T}$CPIO" >&6
7291 echo "$as_me:$LINENO: result: no" >&5
7292 echo "${ECHO_T}no" >&6
7295 test -n "$CPIO" && break
7297 test -n "$CPIO" || CPIO="$ensc_dflt"
7300 if test -z "${CPIO}" && $rq; then
7302 { { echo "$as_me:$LINENO: error: Can not find the 'cpio' tool within '${ensc_searchpath:-$PATH}'." >&5
7303 echo "$as_me: error: Can not find the 'cpio' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7304 { (exit 1); exit 1; }; }
7306 { { echo "$as_me:$LINENO: error:
7307 Can not find the 'cpio' tool within '${ensc_searchpath:-$PATH}'.
7309 echo "$as_me: error:
7310 Can not find the 'cpio' tool within '${ensc_searchpath:-$PATH}'.
7312 { (exit 1); exit 1; }; }
7316 if test -e "${CPIO}"; then
7317 CPIO=`readlink -f "${CPIO}"`
7320 test "${CPIO}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'CPIO'@!${CPIO}!g;"
7327 if test -z "restore"; then
7339 for ac_prog in restore
7341 # Extract the first word of "$ac_prog", so it can be a program name with args.
7342 set dummy $ac_prog; ac_word=$2
7343 echo "$as_me:$LINENO: checking for $ac_word" >&5
7344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7345 if test "${ac_cv_path_RESTORE+set}" = set; then
7346 echo $ECHO_N "(cached) $ECHO_C" >&6
7350 ac_cv_path_RESTORE="$RESTORE" # Let the user override the test with a path.
7353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7354 for as_dir in $ensc_searchpath
7357 test -z "$as_dir" && as_dir=.
7358 for ac_exec_ext in '' $ac_executable_extensions; do
7359 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7360 ac_cv_path_RESTORE="$as_dir/$ac_word$ac_exec_ext"
7361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7370 RESTORE=$ac_cv_path_RESTORE
7372 if test -n "$RESTORE"; then
7373 echo "$as_me:$LINENO: result: $RESTORE" >&5
7374 echo "${ECHO_T}$RESTORE" >&6
7376 echo "$as_me:$LINENO: result: no" >&5
7377 echo "${ECHO_T}no" >&6
7380 test -n "$RESTORE" && break
7382 test -n "$RESTORE" || RESTORE="$ensc_dflt"
7385 if test -z "${RESTORE}" && $rq; then
7387 { { echo "$as_me:$LINENO: error: Can not find the 'restore' tool within '${ensc_searchpath:-$PATH}'." >&5
7388 echo "$as_me: error: Can not find the 'restore' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7389 { (exit 1); exit 1; }; }
7391 { { echo "$as_me:$LINENO: error:
7392 Can not find the 'restore' tool within '${ensc_searchpath:-$PATH}'.
7394 echo "$as_me: error:
7395 Can not find the 'restore' tool within '${ensc_searchpath:-$PATH}'.
7397 { (exit 1); exit 1; }; }
7401 if test -e "${RESTORE}"; then
7402 RESTORE=`readlink -f "${RESTORE}"`
7405 test "${RESTORE}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'RESTORE'@!${RESTORE}!g;"
7412 if test -z "rsync"; then
7424 for ac_prog in rsync
7426 # Extract the first word of "$ac_prog", so it can be a program name with args.
7427 set dummy $ac_prog; ac_word=$2
7428 echo "$as_me:$LINENO: checking for $ac_word" >&5
7429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7430 if test "${ac_cv_path_RSYNC+set}" = set; then
7431 echo $ECHO_N "(cached) $ECHO_C" >&6
7435 ac_cv_path_RSYNC="$RSYNC" # Let the user override the test with a path.
7438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7439 for as_dir in $ensc_searchpath
7442 test -z "$as_dir" && as_dir=.
7443 for ac_exec_ext in '' $ac_executable_extensions; do
7444 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7445 ac_cv_path_RSYNC="$as_dir/$ac_word$ac_exec_ext"
7446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7455 RSYNC=$ac_cv_path_RSYNC
7457 if test -n "$RSYNC"; then
7458 echo "$as_me:$LINENO: result: $RSYNC" >&5
7459 echo "${ECHO_T}$RSYNC" >&6
7461 echo "$as_me:$LINENO: result: no" >&5
7462 echo "${ECHO_T}no" >&6
7465 test -n "$RSYNC" && break
7467 test -n "$RSYNC" || RSYNC="$ensc_dflt"
7470 if test -z "${RSYNC}" && $rq; then
7472 { { echo "$as_me:$LINENO: error: Can not find the 'rsync' tool within '${ensc_searchpath:-$PATH}'." >&5
7473 echo "$as_me: error: Can not find the 'rsync' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7474 { (exit 1); exit 1; }; }
7476 { { echo "$as_me:$LINENO: error:
7477 Can not find the 'rsync' tool within '${ensc_searchpath:-$PATH}'.
7479 echo "$as_me: error:
7480 Can not find the 'rsync' tool within '${ensc_searchpath:-$PATH}'.
7482 { (exit 1); exit 1; }; }
7486 if test -e "${RSYNC}"; then
7487 RSYNC=`readlink -f "${RSYNC}"`
7490 test "${RSYNC}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'RSYNC'@!${RSYNC}!g;"
7498 if test -z ":"; then
7510 for ac_prog in doxygen
7512 # Extract the first word of "$ac_prog", so it can be a program name with args.
7513 set dummy $ac_prog; ac_word=$2
7514 echo "$as_me:$LINENO: checking for $ac_word" >&5
7515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7516 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7517 echo $ECHO_N "(cached) $ECHO_C" >&6
7521 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7525 for as_dir in $ensc_searchpath
7528 test -z "$as_dir" && as_dir=.
7529 for ac_exec_ext in '' $ac_executable_extensions; do
7530 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7531 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7541 DOXYGEN=$ac_cv_path_DOXYGEN
7543 if test -n "$DOXYGEN"; then
7544 echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7545 echo "${ECHO_T}$DOXYGEN" >&6
7547 echo "$as_me:$LINENO: result: no" >&5
7548 echo "${ECHO_T}no" >&6
7551 test -n "$DOXYGEN" && break
7553 test -n "$DOXYGEN" || DOXYGEN="$ensc_dflt"
7556 if test -z "${DOXYGEN}" && $rq; then
7558 { { echo "$as_me:$LINENO: error: Can not find the 'doxygen' tool within '${ensc_searchpath:-$PATH}'." >&5
7559 echo "$as_me: error: Can not find the 'doxygen' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7560 { (exit 1); exit 1; }; }
7562 { { echo "$as_me:$LINENO: error:
7563 Can not find the 'doxygen' tool within '${ensc_searchpath:-$PATH}'.
7565 echo "$as_me: error:
7566 Can not find the 'doxygen' tool within '${ensc_searchpath:-$PATH}'.
7568 { (exit 1); exit 1; }; }
7572 if test -e "${DOXYGEN}"; then
7573 DOXYGEN=`readlink -f "${DOXYGEN}"`
7576 test "${DOXYGEN}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'DOXYGEN'@!${DOXYGEN}!g;"
7583 if test -z ":"; then
7595 for ac_prog in xsltp
7597 # Extract the first word of "$ac_prog", so it can be a program name with args.
7598 set dummy $ac_prog; ac_word=$2
7599 echo "$as_me:$LINENO: checking for $ac_word" >&5
7600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7601 if test "${ac_cv_path_XSLTP+set}" = set; then
7602 echo $ECHO_N "(cached) $ECHO_C" >&6
7606 ac_cv_path_XSLTP="$XSLTP" # Let the user override the test with a path.
7609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7610 for as_dir in $ensc_searchpath
7613 test -z "$as_dir" && as_dir=.
7614 for ac_exec_ext in '' $ac_executable_extensions; do
7615 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7616 ac_cv_path_XSLTP="$as_dir/$ac_word$ac_exec_ext"
7617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7626 XSLTP=$ac_cv_path_XSLTP
7628 if test -n "$XSLTP"; then
7629 echo "$as_me:$LINENO: result: $XSLTP" >&5
7630 echo "${ECHO_T}$XSLTP" >&6
7632 echo "$as_me:$LINENO: result: no" >&5
7633 echo "${ECHO_T}no" >&6
7636 test -n "$XSLTP" && break
7638 test -n "$XSLTP" || XSLTP="$ensc_dflt"
7641 if test -z "${XSLTP}" && $rq; then
7643 { { echo "$as_me:$LINENO: error: Can not find the 'xsltp' tool within '${ensc_searchpath:-$PATH}'." >&5
7644 echo "$as_me: error: Can not find the 'xsltp' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7645 { (exit 1); exit 1; }; }
7647 { { echo "$as_me:$LINENO: error:
7648 Can not find the 'xsltp' tool within '${ensc_searchpath:-$PATH}'.
7650 echo "$as_me: error:
7651 Can not find the 'xsltp' tool within '${ensc_searchpath:-$PATH}'.
7653 { (exit 1); exit 1; }; }
7657 if test -e "${XSLTP}"; then
7658 XSLTP=`readlink -f "${XSLTP}"`
7661 test "${XSLTP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'XSLTP'@!${XSLTP}!g;"
7668 if test -z ":"; then
7680 for ac_prog in xsltproc
7682 # Extract the first word of "$ac_prog", so it can be a program name with args.
7683 set dummy $ac_prog; ac_word=$2
7684 echo "$as_me:$LINENO: checking for $ac_word" >&5
7685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7686 if test "${ac_cv_path_XSLTPROC+set}" = set; then
7687 echo $ECHO_N "(cached) $ECHO_C" >&6
7691 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
7694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7695 for as_dir in $ensc_searchpath
7698 test -z "$as_dir" && as_dir=.
7699 for ac_exec_ext in '' $ac_executable_extensions; do
7700 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7701 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
7702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7711 XSLTPROC=$ac_cv_path_XSLTPROC
7713 if test -n "$XSLTPROC"; then
7714 echo "$as_me:$LINENO: result: $XSLTPROC" >&5
7715 echo "${ECHO_T}$XSLTPROC" >&6
7717 echo "$as_me:$LINENO: result: no" >&5
7718 echo "${ECHO_T}no" >&6
7721 test -n "$XSLTPROC" && break
7723 test -n "$XSLTPROC" || XSLTPROC="$ensc_dflt"
7726 if test -z "${XSLTPROC}" && $rq; then
7728 { { echo "$as_me:$LINENO: error: Can not find the 'xsltproc' tool within '${ensc_searchpath:-$PATH}'." >&5
7729 echo "$as_me: error: Can not find the 'xsltproc' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7730 { (exit 1); exit 1; }; }
7732 { { echo "$as_me:$LINENO: error:
7733 Can not find the 'xsltproc' tool within '${ensc_searchpath:-$PATH}'.
7735 echo "$as_me: error:
7736 Can not find the 'xsltproc' tool within '${ensc_searchpath:-$PATH}'.
7738 { (exit 1); exit 1; }; }
7742 if test -e "${XSLTPROC}"; then
7743 XSLTPROC=`readlink -f "${XSLTPROC}"`
7746 test "${XSLTPROC}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'XSLTPROC'@!${XSLTPROC}!g;"
7753 if test "$XSLTP" != ':'; then
7755 HAVE_XSLTP_FALSE='#'
7763 if test "$XSLTPROC" != ':'; then
7765 HAVE_XSLTPROC_FALSE='#'
7767 HAVE_XSLTPROC_TRUE='#'
7768 HAVE_XSLTPROC_FALSE=
7772 if test x"$prefix" = x/; then
7778 warn_flags="-Werror -W"
7779 echo "$as_me:$LINENO: checking whether the C-compiler accepts ${warn_flags}" >&5
7780 echo $ECHO_N "checking whether the C-compiler accepts ${warn_flags}... $ECHO_C" >&6
7782 ac_cpp='$CPP $CPPFLAGS'
7783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7787 __ensc_check_warnflags_old_CFLAGS="${CFLAGS}"
7788 CFLAGS="$warn_flags"
7789 cat >conftest.$ac_ext <<_ACEOF
7792 cat confdefs.h >>conftest.$ac_ext
7793 cat >>conftest.$ac_ext <<_ACEOF
7794 /* end confdefs.h. */
7795 inline static void f(){}
7804 rm -f conftest.$ac_objext
7805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7806 (eval $ac_compile) 2>conftest.er1
7808 grep -v '^ *+' conftest.er1 >conftest.err
7810 cat conftest.err >&5
7811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7812 (exit $ac_status); } &&
7813 { ac_try='test -z "$ac_c_werror_flag"
7814 || test ! -s conftest.err'
7815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819 (exit $ac_status); }; } &&
7820 { ac_try='test -s conftest.$ac_objext'
7821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825 (exit $ac_status); }; }; then
7826 ensc_sys_compilerwarnflags_C=${warn_flags}
7828 echo "$as_me: failed program was:" >&5
7829 sed 's/^/| /' conftest.$ac_ext >&5
7831 ensc_sys_compilerwarnflags_C=
7833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7835 ac_cpp='$CPP $CPPFLAGS'
7836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7840 CFLAGS="$__ensc_check_warnflags_old_CFLAGS"
7842 if test x"${ensc_sys_compilerwarnflags_C}" = x; then
7843 echo "$as_me:$LINENO: result: no" >&5
7844 echo "${ECHO_T}no" >&6
7846 echo "$as_me:$LINENO: result: yes" >&5
7847 echo "${ECHO_T}yes" >&6
7854 echo 'void f(){}' > conftest.c
7855 for i in -std=c99 -Wall -pedantic -W
7857 echo "$as_me:$LINENO: checking whether $CC accepts $i" >&5
7858 echo $ECHO_N "checking whether $CC accepts $i... $ECHO_C" >&6
7859 if test -z "`${CC} ${ensc_sys_compilerwarnflags_C} $i -c conftest.c 2>&1`"
7861 CFLAGS="${CFLAGS} $i"
7862 echo "$as_me:$LINENO: result: yes" >&5
7863 echo "${ECHO_T}yes" >&6
7865 echo "$as_me:$LINENO: result: no" >&5
7866 echo "${ECHO_T}no" >&6
7869 rm -f conftest.c conftest.o
7873 warn_flags="-Werror -W"
7874 echo "$as_me:$LINENO: checking whether the C++-compiler accepts ${warn_flags}" >&5
7875 echo $ECHO_N "checking whether the C++-compiler accepts ${warn_flags}... $ECHO_C" >&6
7877 ac_cpp='$CXXCPP $CPPFLAGS'
7878 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7879 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7880 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7882 __ensc_check_warnflags_old_CFLAGS="${CXXFLAGS}"
7883 CXXFLAGS="$warn_flags"
7884 cat >conftest.$ac_ext <<_ACEOF
7887 cat confdefs.h >>conftest.$ac_ext
7888 cat >>conftest.$ac_ext <<_ACEOF
7889 /* end confdefs.h. */
7890 inline static void f(){}
7899 rm -f conftest.$ac_objext
7900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7901 (eval $ac_compile) 2>conftest.er1
7903 grep -v '^ *+' conftest.er1 >conftest.err
7905 cat conftest.err >&5
7906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907 (exit $ac_status); } &&
7908 { ac_try='test -z "$ac_cxx_werror_flag"
7909 || test ! -s conftest.err'
7910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7914 (exit $ac_status); }; } &&
7915 { ac_try='test -s conftest.$ac_objext'
7916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7920 (exit $ac_status); }; }; then
7921 ensc_sys_compilerwarnflags_CXX=${warn_flags}
7923 echo "$as_me: failed program was:" >&5
7924 sed 's/^/| /' conftest.$ac_ext >&5
7926 ensc_sys_compilerwarnflags_CXX=
7928 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7930 ac_cpp='$CPP $CPPFLAGS'
7931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7935 CXXFLAGS="$__ensc_check_warnflags_old_CFLAGS"
7937 if test x"${ensc_sys_compilerwarnflags_CXX}" = x; then
7938 echo "$as_me:$LINENO: result: no" >&5
7939 echo "${ECHO_T}no" >&6
7941 echo "$as_me:$LINENO: result: yes" >&5
7942 echo "${ECHO_T}yes" >&6
7949 echo 'void f(){}' > conftest.cc
7950 for i in -ansi -Wall -pedantic -W -fmessage-length=0
7952 echo "$as_me:$LINENO: checking whether $CXX accepts $i" >&5
7953 echo $ECHO_N "checking whether $CXX accepts $i... $ECHO_C" >&6
7954 if test -z "`${CXX} ${ensc_sys_compilerwarnflags_CXX} $i -c conftest.cc 2>&1`"
7956 CXXFLAGS="${CXXFLAGS} $i"
7957 echo "$as_me:$LINENO: result: yes" >&5
7958 echo "${ECHO_T}yes" >&6
7960 echo "$as_me:$LINENO: result: no" >&5
7961 echo "${ECHO_T}no" >&6
7964 rm -f conftest.cc conftest.o
7967 echo "$as_me:$LINENO: checking whether to enable extra optimizations" >&5
7968 echo $ECHO_N "checking whether to enable extra optimizations... $ECHO_C" >&6
7969 # Check whether --enable-extra-optimizations or --disable-extra-optimizations was given.
7970 if test "${enable_extra_optimizations+set}" = set; then
7971 enableval="$enable_extra_optimizations"
7972 case "$enableval" in
7973 (yes) use_extra_optimizations=1;;
7974 (no) use_extra_optimizations=;;
7975 (*) { { echo "$as_me:$LINENO: error: '$enableval' is not a valid value for '--disable-extra-optimizations'" >&5
7976 echo "$as_me: error: '$enableval' is not a valid value for '--disable-extra-optimizations'" >&2;}
7977 { (exit 1); exit 1; }; };;
7980 use_extra_optimizations=1
7983 if test x"$use_extra_optimizations" = x; then
7984 echo "$as_me:$LINENO: result: no" >&5
7985 echo "${ECHO_T}no" >&6
7987 echo "$as_me:$LINENO: result: yes" >&5
7988 echo "${ECHO_T}yes" >&6
7992 echo 'void f(){}' > conftest.c
7993 for i in -funit-at-a-time
7995 echo "$as_me:$LINENO: checking whether $CC accepts $i" >&5
7996 echo $ECHO_N "checking whether $CC accepts $i... $ECHO_C" >&6
7997 if test -z "`${CC} ${ensc_sys_compilerwarnflags_C} $i -c conftest.c 2>&1`"
7999 CFLAGS="${CFLAGS} $i"
8000 echo "$as_me:$LINENO: result: yes" >&5
8001 echo "${ECHO_T}yes" >&6
8003 echo "$as_me:$LINENO: result: no" >&5
8004 echo "${ECHO_T}no" >&6
8007 rm -f conftest.c conftest.o
8012 echo 'void f(){}' > conftest.cc
8013 for i in -funit-at-a-time
8015 echo "$as_me:$LINENO: checking whether $CXX accepts $i" >&5
8016 echo $ECHO_N "checking whether $CXX accepts $i... $ECHO_C" >&6
8017 if test -z "`${CXX} ${ensc_sys_compilerwarnflags_CXX} $i -c conftest.cc 2>&1`"
8019 CXXFLAGS="${CXXFLAGS} $i"
8020 echo "$as_me:$LINENO: result: yes" >&5
8021 echo "${ECHO_T}yes" >&6
8023 echo "$as_me:$LINENO: result: no" >&5
8024 echo "${ECHO_T}no" >&6
8027 rm -f conftest.cc conftest.o
8031 echo "$as_me:$LINENO: checking whether to enable debug-code in library" >&5
8032 echo $ECHO_N "checking whether to enable debug-code in library... $ECHO_C" >&6
8033 # Check whether --enable-lib-debug or --disable-lib-debug was given.
8034 if test "${enable_lib_debug+set}" = set; then
8035 enableval="$enable_lib_debug"
8036 case "$enableval" in
8037 (yes) use_lib_debug=1;;
8038 (no) use_lib_debug=;;
8039 (*) { { echo "$as_me:$LINENO: error: '$enableval' is not a valid value for '--enable-lib-debug'" >&5
8040 echo "$as_me: error: '$enableval' is not a valid value for '--enable-lib-debug'" >&2;}
8041 { (exit 1); exit 1; }; };;
8047 if test x"$use_lib_debug" = x; then
8048 LIB_DEBUG_CPPFLAGS=-DNDEBUG
8050 echo "$as_me:$LINENO: result: no" >&5
8051 echo "${ECHO_T}no" >&6
8054 echo "$as_me:$LINENO: result: yes" >&5
8055 echo "${ECHO_T}yes" >&6
8058 echo "$as_me:$LINENO: checking whether to enable expensive tests" >&5
8059 echo $ECHO_N "checking whether to enable expensive tests... $ECHO_C" >&6
8060 # Check whether --enable-expensive-tests or --disable-expensive-tests was given.
8061 if test "${enable_expensive_tests+set}" = set; then
8062 enableval="$enable_expensive_tests"
8063 case "$enableval" in
8064 (yes|no) use_expensive_tests=$enableval;;
8065 (*) { { echo "$as_me:$LINENO: error: '$enableval' is not a valid value for '--enable-expensive-tests'" >&5
8066 echo "$as_me: error: '$enableval' is not a valid value for '--enable-expensive-tests'" >&2;}
8067 { (exit 1); exit 1; }; };;
8070 use_expensive_tests=no
8072 echo "$as_me:$LINENO: result: $use_expensive_tests" >&5
8073 echo "${ECHO_T}$use_expensive_tests" >&6
8075 ENSC_USE_EXPENSIVE_TESTS="$use_expensive_tests"
8080 echo "$as_me:$LINENO: checking for declarations in <linux/personality.h>" >&5
8081 echo $ECHO_N "checking for declarations in <linux/personality.h>... $ECHO_C" >&6
8082 echo "$as_me:$LINENO: result: " >&5
8083 echo "${ECHO_T}" >&6
8086 ac_cpp='$CPP $CPPFLAGS'
8087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8091 echo "$as_me:$LINENO: checking whether MMAP_PAGE_ZERO is declared" >&5
8092 echo $ECHO_N "checking whether MMAP_PAGE_ZERO is declared... $ECHO_C" >&6
8093 if test "${ac_cv_have_decl_MMAP_PAGE_ZERO+set}" = set; then
8094 echo $ECHO_N "(cached) $ECHO_C" >&6
8096 cat >conftest.$ac_ext <<_ACEOF
8099 cat confdefs.h >>conftest.$ac_ext
8100 cat >>conftest.$ac_ext <<_ACEOF
8101 /* end confdefs.h. */
8103 #include <linux/personality.h>
8109 #ifndef MMAP_PAGE_ZERO
8110 char *p = (char *) MMAP_PAGE_ZERO;
8117 rm -f conftest.$ac_objext
8118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8119 (eval $ac_compile) 2>conftest.er1
8121 grep -v '^ *+' conftest.er1 >conftest.err
8123 cat conftest.err >&5
8124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8125 (exit $ac_status); } &&
8126 { ac_try='test -z "$ac_c_werror_flag"
8127 || test ! -s conftest.err'
8128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8132 (exit $ac_status); }; } &&
8133 { ac_try='test -s conftest.$ac_objext'
8134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138 (exit $ac_status); }; }; then
8139 ac_cv_have_decl_MMAP_PAGE_ZERO=yes
8141 echo "$as_me: failed program was:" >&5
8142 sed 's/^/| /' conftest.$ac_ext >&5
8144 ac_cv_have_decl_MMAP_PAGE_ZERO=no
8146 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8148 echo "$as_me:$LINENO: result: $ac_cv_have_decl_MMAP_PAGE_ZERO" >&5
8149 echo "${ECHO_T}$ac_cv_have_decl_MMAP_PAGE_ZERO" >&6
8150 if test $ac_cv_have_decl_MMAP_PAGE_ZERO = yes; then
8152 cat >>confdefs.h <<_ACEOF
8153 #define HAVE_DECL_MMAP_PAGE_ZERO 1
8158 cat >>confdefs.h <<_ACEOF
8159 #define HAVE_DECL_MMAP_PAGE_ZERO 0
8164 echo "$as_me:$LINENO: checking whether ADDR_LIMIT_32BIT is declared" >&5
8165 echo $ECHO_N "checking whether ADDR_LIMIT_32BIT is declared... $ECHO_C" >&6
8166 if test "${ac_cv_have_decl_ADDR_LIMIT_32BIT+set}" = set; then
8167 echo $ECHO_N "(cached) $ECHO_C" >&6
8169 cat >conftest.$ac_ext <<_ACEOF
8172 cat confdefs.h >>conftest.$ac_ext
8173 cat >>conftest.$ac_ext <<_ACEOF
8174 /* end confdefs.h. */
8176 #include <linux/personality.h>
8182 #ifndef ADDR_LIMIT_32BIT
8183 char *p = (char *) ADDR_LIMIT_32BIT;
8190 rm -f conftest.$ac_objext
8191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8192 (eval $ac_compile) 2>conftest.er1
8194 grep -v '^ *+' conftest.er1 >conftest.err
8196 cat conftest.err >&5
8197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198 (exit $ac_status); } &&
8199 { ac_try='test -z "$ac_c_werror_flag"
8200 || test ! -s conftest.err'
8201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8205 (exit $ac_status); }; } &&
8206 { ac_try='test -s conftest.$ac_objext'
8207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8211 (exit $ac_status); }; }; then
8212 ac_cv_have_decl_ADDR_LIMIT_32BIT=yes
8214 echo "$as_me: failed program was:" >&5
8215 sed 's/^/| /' conftest.$ac_ext >&5
8217 ac_cv_have_decl_ADDR_LIMIT_32BIT=no
8219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8221 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ADDR_LIMIT_32BIT" >&5
8222 echo "${ECHO_T}$ac_cv_have_decl_ADDR_LIMIT_32BIT" >&6
8223 if test $ac_cv_have_decl_ADDR_LIMIT_32BIT = yes; then
8225 cat >>confdefs.h <<_ACEOF
8226 #define HAVE_DECL_ADDR_LIMIT_32BIT 1
8231 cat >>confdefs.h <<_ACEOF
8232 #define HAVE_DECL_ADDR_LIMIT_32BIT 0
8237 echo "$as_me:$LINENO: checking whether SHORT_INODE is declared" >&5
8238 echo $ECHO_N "checking whether SHORT_INODE is declared... $ECHO_C" >&6
8239 if test "${ac_cv_have_decl_SHORT_INODE+set}" = set; then
8240 echo $ECHO_N "(cached) $ECHO_C" >&6
8242 cat >conftest.$ac_ext <<_ACEOF
8245 cat confdefs.h >>conftest.$ac_ext
8246 cat >>conftest.$ac_ext <<_ACEOF
8247 /* end confdefs.h. */
8249 #include <linux/personality.h>
8256 char *p = (char *) SHORT_INODE;
8263 rm -f conftest.$ac_objext
8264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8265 (eval $ac_compile) 2>conftest.er1
8267 grep -v '^ *+' conftest.er1 >conftest.err
8269 cat conftest.err >&5
8270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8271 (exit $ac_status); } &&
8272 { ac_try='test -z "$ac_c_werror_flag"
8273 || test ! -s conftest.err'
8274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8278 (exit $ac_status); }; } &&
8279 { ac_try='test -s conftest.$ac_objext'
8280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8284 (exit $ac_status); }; }; then
8285 ac_cv_have_decl_SHORT_INODE=yes
8287 echo "$as_me: failed program was:" >&5
8288 sed 's/^/| /' conftest.$ac_ext >&5
8290 ac_cv_have_decl_SHORT_INODE=no
8292 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8294 echo "$as_me:$LINENO: result: $ac_cv_have_decl_SHORT_INODE" >&5
8295 echo "${ECHO_T}$ac_cv_have_decl_SHORT_INODE" >&6
8296 if test $ac_cv_have_decl_SHORT_INODE = yes; then
8298 cat >>confdefs.h <<_ACEOF
8299 #define HAVE_DECL_SHORT_INODE 1
8304 cat >>confdefs.h <<_ACEOF
8305 #define HAVE_DECL_SHORT_INODE 0
8310 echo "$as_me:$LINENO: checking whether WHOLE_SECONDS is declared" >&5
8311 echo $ECHO_N "checking whether WHOLE_SECONDS is declared... $ECHO_C" >&6
8312 if test "${ac_cv_have_decl_WHOLE_SECONDS+set}" = set; then
8313 echo $ECHO_N "(cached) $ECHO_C" >&6
8315 cat >conftest.$ac_ext <<_ACEOF
8318 cat confdefs.h >>conftest.$ac_ext
8319 cat >>conftest.$ac_ext <<_ACEOF
8320 /* end confdefs.h. */
8322 #include <linux/personality.h>
8328 #ifndef WHOLE_SECONDS
8329 char *p = (char *) WHOLE_SECONDS;
8336 rm -f conftest.$ac_objext
8337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8338 (eval $ac_compile) 2>conftest.er1
8340 grep -v '^ *+' conftest.er1 >conftest.err
8342 cat conftest.err >&5
8343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344 (exit $ac_status); } &&
8345 { ac_try='test -z "$ac_c_werror_flag"
8346 || test ! -s conftest.err'
8347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351 (exit $ac_status); }; } &&
8352 { ac_try='test -s conftest.$ac_objext'
8353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357 (exit $ac_status); }; }; then
8358 ac_cv_have_decl_WHOLE_SECONDS=yes
8360 echo "$as_me: failed program was:" >&5
8361 sed 's/^/| /' conftest.$ac_ext >&5
8363 ac_cv_have_decl_WHOLE_SECONDS=no
8365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8367 echo "$as_me:$LINENO: result: $ac_cv_have_decl_WHOLE_SECONDS" >&5
8368 echo "${ECHO_T}$ac_cv_have_decl_WHOLE_SECONDS" >&6
8369 if test $ac_cv_have_decl_WHOLE_SECONDS = yes; then
8371 cat >>confdefs.h <<_ACEOF
8372 #define HAVE_DECL_WHOLE_SECONDS 1
8377 cat >>confdefs.h <<_ACEOF
8378 #define HAVE_DECL_WHOLE_SECONDS 0
8383 echo "$as_me:$LINENO: checking whether STICKY_TIMEOUTS is declared" >&5
8384 echo $ECHO_N "checking whether STICKY_TIMEOUTS is declared... $ECHO_C" >&6
8385 if test "${ac_cv_have_decl_STICKY_TIMEOUTS+set}" = set; then
8386 echo $ECHO_N "(cached) $ECHO_C" >&6
8388 cat >conftest.$ac_ext <<_ACEOF
8391 cat confdefs.h >>conftest.$ac_ext
8392 cat >>conftest.$ac_ext <<_ACEOF
8393 /* end confdefs.h. */
8395 #include <linux/personality.h>
8401 #ifndef STICKY_TIMEOUTS
8402 char *p = (char *) STICKY_TIMEOUTS;
8409 rm -f conftest.$ac_objext
8410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8411 (eval $ac_compile) 2>conftest.er1
8413 grep -v '^ *+' conftest.er1 >conftest.err
8415 cat conftest.err >&5
8416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8417 (exit $ac_status); } &&
8418 { ac_try='test -z "$ac_c_werror_flag"
8419 || test ! -s conftest.err'
8420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8424 (exit $ac_status); }; } &&
8425 { ac_try='test -s conftest.$ac_objext'
8426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430 (exit $ac_status); }; }; then
8431 ac_cv_have_decl_STICKY_TIMEOUTS=yes
8433 echo "$as_me: failed program was:" >&5
8434 sed 's/^/| /' conftest.$ac_ext >&5
8436 ac_cv_have_decl_STICKY_TIMEOUTS=no
8438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8440 echo "$as_me:$LINENO: result: $ac_cv_have_decl_STICKY_TIMEOUTS" >&5
8441 echo "${ECHO_T}$ac_cv_have_decl_STICKY_TIMEOUTS" >&6
8442 if test $ac_cv_have_decl_STICKY_TIMEOUTS = yes; then
8444 cat >>confdefs.h <<_ACEOF
8445 #define HAVE_DECL_STICKY_TIMEOUTS 1
8450 cat >>confdefs.h <<_ACEOF
8451 #define HAVE_DECL_STICKY_TIMEOUTS 0
8456 echo "$as_me:$LINENO: checking whether ADDR_LIMIT_3GB is declared" >&5
8457 echo $ECHO_N "checking whether ADDR_LIMIT_3GB is declared... $ECHO_C" >&6
8458 if test "${ac_cv_have_decl_ADDR_LIMIT_3GB+set}" = set; then
8459 echo $ECHO_N "(cached) $ECHO_C" >&6
8461 cat >conftest.$ac_ext <<_ACEOF
8464 cat confdefs.h >>conftest.$ac_ext
8465 cat >>conftest.$ac_ext <<_ACEOF
8466 /* end confdefs.h. */
8468 #include <linux/personality.h>
8474 #ifndef ADDR_LIMIT_3GB
8475 char *p = (char *) ADDR_LIMIT_3GB;
8482 rm -f conftest.$ac_objext
8483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8484 (eval $ac_compile) 2>conftest.er1
8486 grep -v '^ *+' conftest.er1 >conftest.err
8488 cat conftest.err >&5
8489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490 (exit $ac_status); } &&
8491 { ac_try='test -z "$ac_c_werror_flag"
8492 || test ! -s conftest.err'
8493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497 (exit $ac_status); }; } &&
8498 { ac_try='test -s conftest.$ac_objext'
8499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503 (exit $ac_status); }; }; then
8504 ac_cv_have_decl_ADDR_LIMIT_3GB=yes
8506 echo "$as_me: failed program was:" >&5
8507 sed 's/^/| /' conftest.$ac_ext >&5
8509 ac_cv_have_decl_ADDR_LIMIT_3GB=no
8511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8513 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ADDR_LIMIT_3GB" >&5
8514 echo "${ECHO_T}$ac_cv_have_decl_ADDR_LIMIT_3GB" >&6
8515 if test $ac_cv_have_decl_ADDR_LIMIT_3GB = yes; then
8517 cat >>confdefs.h <<_ACEOF
8518 #define HAVE_DECL_ADDR_LIMIT_3GB 1
8523 cat >>confdefs.h <<_ACEOF
8524 #define HAVE_DECL_ADDR_LIMIT_3GB 0
8532 echo "$as_me:$LINENO: checking whether PER_LINUX is declared" >&5
8533 echo $ECHO_N "checking whether PER_LINUX is declared... $ECHO_C" >&6
8534 if test "${ac_cv_have_decl_PER_LINUX+set}" = set; then
8535 echo $ECHO_N "(cached) $ECHO_C" >&6
8537 cat >conftest.$ac_ext <<_ACEOF
8540 cat confdefs.h >>conftest.$ac_ext
8541 cat >>conftest.$ac_ext <<_ACEOF
8542 /* end confdefs.h. */
8544 #include <linux/personality.h>
8551 char *p = (char *) PER_LINUX;
8558 rm -f conftest.$ac_objext
8559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8560 (eval $ac_compile) 2>conftest.er1
8562 grep -v '^ *+' conftest.er1 >conftest.err
8564 cat conftest.err >&5
8565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566 (exit $ac_status); } &&
8567 { ac_try='test -z "$ac_c_werror_flag"
8568 || test ! -s conftest.err'
8569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573 (exit $ac_status); }; } &&
8574 { ac_try='test -s conftest.$ac_objext'
8575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8579 (exit $ac_status); }; }; then
8580 ac_cv_have_decl_PER_LINUX=yes
8582 echo "$as_me: failed program was:" >&5
8583 sed 's/^/| /' conftest.$ac_ext >&5
8585 ac_cv_have_decl_PER_LINUX=no
8587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8589 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_LINUX" >&5
8590 echo "${ECHO_T}$ac_cv_have_decl_PER_LINUX" >&6
8591 if test $ac_cv_have_decl_PER_LINUX = yes; then
8593 cat >>confdefs.h <<_ACEOF
8594 #define HAVE_DECL_PER_LINUX 1
8599 cat >>confdefs.h <<_ACEOF
8600 #define HAVE_DECL_PER_LINUX 0
8605 echo "$as_me:$LINENO: checking whether PER_LINUX_32BIT is declared" >&5
8606 echo $ECHO_N "checking whether PER_LINUX_32BIT is declared... $ECHO_C" >&6
8607 if test "${ac_cv_have_decl_PER_LINUX_32BIT+set}" = set; then
8608 echo $ECHO_N "(cached) $ECHO_C" >&6
8610 cat >conftest.$ac_ext <<_ACEOF
8613 cat confdefs.h >>conftest.$ac_ext
8614 cat >>conftest.$ac_ext <<_ACEOF
8615 /* end confdefs.h. */
8617 #include <linux/personality.h>
8623 #ifndef PER_LINUX_32BIT
8624 char *p = (char *) PER_LINUX_32BIT;
8631 rm -f conftest.$ac_objext
8632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8633 (eval $ac_compile) 2>conftest.er1
8635 grep -v '^ *+' conftest.er1 >conftest.err
8637 cat conftest.err >&5
8638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639 (exit $ac_status); } &&
8640 { ac_try='test -z "$ac_c_werror_flag"
8641 || test ! -s conftest.err'
8642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8646 (exit $ac_status); }; } &&
8647 { ac_try='test -s conftest.$ac_objext'
8648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652 (exit $ac_status); }; }; then
8653 ac_cv_have_decl_PER_LINUX_32BIT=yes
8655 echo "$as_me: failed program was:" >&5
8656 sed 's/^/| /' conftest.$ac_ext >&5
8658 ac_cv_have_decl_PER_LINUX_32BIT=no
8660 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8662 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_LINUX_32BIT" >&5
8663 echo "${ECHO_T}$ac_cv_have_decl_PER_LINUX_32BIT" >&6
8664 if test $ac_cv_have_decl_PER_LINUX_32BIT = yes; then
8666 cat >>confdefs.h <<_ACEOF
8667 #define HAVE_DECL_PER_LINUX_32BIT 1
8672 cat >>confdefs.h <<_ACEOF
8673 #define HAVE_DECL_PER_LINUX_32BIT 0
8678 echo "$as_me:$LINENO: checking whether PER_SVR4 is declared" >&5
8679 echo $ECHO_N "checking whether PER_SVR4 is declared... $ECHO_C" >&6
8680 if test "${ac_cv_have_decl_PER_SVR4+set}" = set; then
8681 echo $ECHO_N "(cached) $ECHO_C" >&6
8683 cat >conftest.$ac_ext <<_ACEOF
8686 cat confdefs.h >>conftest.$ac_ext
8687 cat >>conftest.$ac_ext <<_ACEOF
8688 /* end confdefs.h. */
8690 #include <linux/personality.h>
8697 char *p = (char *) PER_SVR4;
8704 rm -f conftest.$ac_objext
8705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8706 (eval $ac_compile) 2>conftest.er1
8708 grep -v '^ *+' conftest.er1 >conftest.err
8710 cat conftest.err >&5
8711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8712 (exit $ac_status); } &&
8713 { ac_try='test -z "$ac_c_werror_flag"
8714 || test ! -s conftest.err'
8715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719 (exit $ac_status); }; } &&
8720 { ac_try='test -s conftest.$ac_objext'
8721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725 (exit $ac_status); }; }; then
8726 ac_cv_have_decl_PER_SVR4=yes
8728 echo "$as_me: failed program was:" >&5
8729 sed 's/^/| /' conftest.$ac_ext >&5
8731 ac_cv_have_decl_PER_SVR4=no
8733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8735 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_SVR4" >&5
8736 echo "${ECHO_T}$ac_cv_have_decl_PER_SVR4" >&6
8737 if test $ac_cv_have_decl_PER_SVR4 = yes; then
8739 cat >>confdefs.h <<_ACEOF
8740 #define HAVE_DECL_PER_SVR4 1
8745 cat >>confdefs.h <<_ACEOF
8746 #define HAVE_DECL_PER_SVR4 0
8751 echo "$as_me:$LINENO: checking whether PER_SVR3 is declared" >&5
8752 echo $ECHO_N "checking whether PER_SVR3 is declared... $ECHO_C" >&6
8753 if test "${ac_cv_have_decl_PER_SVR3+set}" = set; then
8754 echo $ECHO_N "(cached) $ECHO_C" >&6
8756 cat >conftest.$ac_ext <<_ACEOF
8759 cat confdefs.h >>conftest.$ac_ext
8760 cat >>conftest.$ac_ext <<_ACEOF
8761 /* end confdefs.h. */
8763 #include <linux/personality.h>
8770 char *p = (char *) PER_SVR3;
8777 rm -f conftest.$ac_objext
8778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8779 (eval $ac_compile) 2>conftest.er1
8781 grep -v '^ *+' conftest.er1 >conftest.err
8783 cat conftest.err >&5
8784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785 (exit $ac_status); } &&
8786 { ac_try='test -z "$ac_c_werror_flag"
8787 || test ! -s conftest.err'
8788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8792 (exit $ac_status); }; } &&
8793 { ac_try='test -s conftest.$ac_objext'
8794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8798 (exit $ac_status); }; }; then
8799 ac_cv_have_decl_PER_SVR3=yes
8801 echo "$as_me: failed program was:" >&5
8802 sed 's/^/| /' conftest.$ac_ext >&5
8804 ac_cv_have_decl_PER_SVR3=no
8806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8808 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_SVR3" >&5
8809 echo "${ECHO_T}$ac_cv_have_decl_PER_SVR3" >&6
8810 if test $ac_cv_have_decl_PER_SVR3 = yes; then
8812 cat >>confdefs.h <<_ACEOF
8813 #define HAVE_DECL_PER_SVR3 1
8818 cat >>confdefs.h <<_ACEOF
8819 #define HAVE_DECL_PER_SVR3 0
8824 echo "$as_me:$LINENO: checking whether PER_SCOSVR3 is declared" >&5
8825 echo $ECHO_N "checking whether PER_SCOSVR3 is declared... $ECHO_C" >&6
8826 if test "${ac_cv_have_decl_PER_SCOSVR3+set}" = set; then
8827 echo $ECHO_N "(cached) $ECHO_C" >&6
8829 cat >conftest.$ac_ext <<_ACEOF
8832 cat confdefs.h >>conftest.$ac_ext
8833 cat >>conftest.$ac_ext <<_ACEOF
8834 /* end confdefs.h. */
8836 #include <linux/personality.h>
8843 char *p = (char *) PER_SCOSVR3;
8850 rm -f conftest.$ac_objext
8851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8852 (eval $ac_compile) 2>conftest.er1
8854 grep -v '^ *+' conftest.er1 >conftest.err
8856 cat conftest.err >&5
8857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858 (exit $ac_status); } &&
8859 { ac_try='test -z "$ac_c_werror_flag"
8860 || test ! -s conftest.err'
8861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865 (exit $ac_status); }; } &&
8866 { ac_try='test -s conftest.$ac_objext'
8867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871 (exit $ac_status); }; }; then
8872 ac_cv_have_decl_PER_SCOSVR3=yes
8874 echo "$as_me: failed program was:" >&5
8875 sed 's/^/| /' conftest.$ac_ext >&5
8877 ac_cv_have_decl_PER_SCOSVR3=no
8879 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8881 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_SCOSVR3" >&5
8882 echo "${ECHO_T}$ac_cv_have_decl_PER_SCOSVR3" >&6
8883 if test $ac_cv_have_decl_PER_SCOSVR3 = yes; then
8885 cat >>confdefs.h <<_ACEOF
8886 #define HAVE_DECL_PER_SCOSVR3 1
8891 cat >>confdefs.h <<_ACEOF
8892 #define HAVE_DECL_PER_SCOSVR3 0
8897 echo "$as_me:$LINENO: checking whether PER_OSR5 is declared" >&5
8898 echo $ECHO_N "checking whether PER_OSR5 is declared... $ECHO_C" >&6
8899 if test "${ac_cv_have_decl_PER_OSR5+set}" = set; then
8900 echo $ECHO_N "(cached) $ECHO_C" >&6
8902 cat >conftest.$ac_ext <<_ACEOF
8905 cat confdefs.h >>conftest.$ac_ext
8906 cat >>conftest.$ac_ext <<_ACEOF
8907 /* end confdefs.h. */
8909 #include <linux/personality.h>
8916 char *p = (char *) PER_OSR5;
8923 rm -f conftest.$ac_objext
8924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8925 (eval $ac_compile) 2>conftest.er1
8927 grep -v '^ *+' conftest.er1 >conftest.err
8929 cat conftest.err >&5
8930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931 (exit $ac_status); } &&
8932 { ac_try='test -z "$ac_c_werror_flag"
8933 || test ! -s conftest.err'
8934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8938 (exit $ac_status); }; } &&
8939 { ac_try='test -s conftest.$ac_objext'
8940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8944 (exit $ac_status); }; }; then
8945 ac_cv_have_decl_PER_OSR5=yes
8947 echo "$as_me: failed program was:" >&5
8948 sed 's/^/| /' conftest.$ac_ext >&5
8950 ac_cv_have_decl_PER_OSR5=no
8952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8954 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_OSR5" >&5
8955 echo "${ECHO_T}$ac_cv_have_decl_PER_OSR5" >&6
8956 if test $ac_cv_have_decl_PER_OSR5 = yes; then
8958 cat >>confdefs.h <<_ACEOF
8959 #define HAVE_DECL_PER_OSR5 1
8964 cat >>confdefs.h <<_ACEOF
8965 #define HAVE_DECL_PER_OSR5 0
8970 echo "$as_me:$LINENO: checking whether PER_WYSEV386 is declared" >&5
8971 echo $ECHO_N "checking whether PER_WYSEV386 is declared... $ECHO_C" >&6
8972 if test "${ac_cv_have_decl_PER_WYSEV386+set}" = set; then
8973 echo $ECHO_N "(cached) $ECHO_C" >&6
8975 cat >conftest.$ac_ext <<_ACEOF
8978 cat confdefs.h >>conftest.$ac_ext
8979 cat >>conftest.$ac_ext <<_ACEOF
8980 /* end confdefs.h. */
8982 #include <linux/personality.h>
8988 #ifndef PER_WYSEV386
8989 char *p = (char *) PER_WYSEV386;
8996 rm -f conftest.$ac_objext
8997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8998 (eval $ac_compile) 2>conftest.er1
9000 grep -v '^ *+' conftest.er1 >conftest.err
9002 cat conftest.err >&5
9003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9004 (exit $ac_status); } &&
9005 { ac_try='test -z "$ac_c_werror_flag"
9006 || test ! -s conftest.err'
9007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9011 (exit $ac_status); }; } &&
9012 { ac_try='test -s conftest.$ac_objext'
9013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9017 (exit $ac_status); }; }; then
9018 ac_cv_have_decl_PER_WYSEV386=yes
9020 echo "$as_me: failed program was:" >&5
9021 sed 's/^/| /' conftest.$ac_ext >&5
9023 ac_cv_have_decl_PER_WYSEV386=no
9025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9027 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_WYSEV386" >&5
9028 echo "${ECHO_T}$ac_cv_have_decl_PER_WYSEV386" >&6
9029 if test $ac_cv_have_decl_PER_WYSEV386 = yes; then
9031 cat >>confdefs.h <<_ACEOF
9032 #define HAVE_DECL_PER_WYSEV386 1
9037 cat >>confdefs.h <<_ACEOF
9038 #define HAVE_DECL_PER_WYSEV386 0
9043 echo "$as_me:$LINENO: checking whether PER_ISCR4 is declared" >&5
9044 echo $ECHO_N "checking whether PER_ISCR4 is declared... $ECHO_C" >&6
9045 if test "${ac_cv_have_decl_PER_ISCR4+set}" = set; then
9046 echo $ECHO_N "(cached) $ECHO_C" >&6
9048 cat >conftest.$ac_ext <<_ACEOF
9051 cat confdefs.h >>conftest.$ac_ext
9052 cat >>conftest.$ac_ext <<_ACEOF
9053 /* end confdefs.h. */
9055 #include <linux/personality.h>
9062 char *p = (char *) PER_ISCR4;
9069 rm -f conftest.$ac_objext
9070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9071 (eval $ac_compile) 2>conftest.er1
9073 grep -v '^ *+' conftest.er1 >conftest.err
9075 cat conftest.err >&5
9076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077 (exit $ac_status); } &&
9078 { ac_try='test -z "$ac_c_werror_flag"
9079 || test ! -s conftest.err'
9080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9084 (exit $ac_status); }; } &&
9085 { ac_try='test -s conftest.$ac_objext'
9086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9090 (exit $ac_status); }; }; then
9091 ac_cv_have_decl_PER_ISCR4=yes
9093 echo "$as_me: failed program was:" >&5
9094 sed 's/^/| /' conftest.$ac_ext >&5
9096 ac_cv_have_decl_PER_ISCR4=no
9098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9100 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_ISCR4" >&5
9101 echo "${ECHO_T}$ac_cv_have_decl_PER_ISCR4" >&6
9102 if test $ac_cv_have_decl_PER_ISCR4 = yes; then
9104 cat >>confdefs.h <<_ACEOF
9105 #define HAVE_DECL_PER_ISCR4 1
9110 cat >>confdefs.h <<_ACEOF
9111 #define HAVE_DECL_PER_ISCR4 0
9116 echo "$as_me:$LINENO: checking whether PER_BSD is declared" >&5
9117 echo $ECHO_N "checking whether PER_BSD is declared... $ECHO_C" >&6
9118 if test "${ac_cv_have_decl_PER_BSD+set}" = set; then
9119 echo $ECHO_N "(cached) $ECHO_C" >&6
9121 cat >conftest.$ac_ext <<_ACEOF
9124 cat confdefs.h >>conftest.$ac_ext
9125 cat >>conftest.$ac_ext <<_ACEOF
9126 /* end confdefs.h. */
9128 #include <linux/personality.h>
9135 char *p = (char *) PER_BSD;
9142 rm -f conftest.$ac_objext
9143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9144 (eval $ac_compile) 2>conftest.er1
9146 grep -v '^ *+' conftest.er1 >conftest.err
9148 cat conftest.err >&5
9149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9150 (exit $ac_status); } &&
9151 { ac_try='test -z "$ac_c_werror_flag"
9152 || test ! -s conftest.err'
9153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9157 (exit $ac_status); }; } &&
9158 { ac_try='test -s conftest.$ac_objext'
9159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9163 (exit $ac_status); }; }; then
9164 ac_cv_have_decl_PER_BSD=yes
9166 echo "$as_me: failed program was:" >&5
9167 sed 's/^/| /' conftest.$ac_ext >&5
9169 ac_cv_have_decl_PER_BSD=no
9171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9173 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_BSD" >&5
9174 echo "${ECHO_T}$ac_cv_have_decl_PER_BSD" >&6
9175 if test $ac_cv_have_decl_PER_BSD = yes; then
9177 cat >>confdefs.h <<_ACEOF
9178 #define HAVE_DECL_PER_BSD 1
9183 cat >>confdefs.h <<_ACEOF
9184 #define HAVE_DECL_PER_BSD 0
9189 echo "$as_me:$LINENO: checking whether PER_SUNOS is declared" >&5
9190 echo $ECHO_N "checking whether PER_SUNOS is declared... $ECHO_C" >&6
9191 if test "${ac_cv_have_decl_PER_SUNOS+set}" = set; then
9192 echo $ECHO_N "(cached) $ECHO_C" >&6
9194 cat >conftest.$ac_ext <<_ACEOF
9197 cat confdefs.h >>conftest.$ac_ext
9198 cat >>conftest.$ac_ext <<_ACEOF
9199 /* end confdefs.h. */
9201 #include <linux/personality.h>
9208 char *p = (char *) PER_SUNOS;
9215 rm -f conftest.$ac_objext
9216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9217 (eval $ac_compile) 2>conftest.er1
9219 grep -v '^ *+' conftest.er1 >conftest.err
9221 cat conftest.err >&5
9222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9223 (exit $ac_status); } &&
9224 { ac_try='test -z "$ac_c_werror_flag"
9225 || test ! -s conftest.err'
9226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9230 (exit $ac_status); }; } &&
9231 { ac_try='test -s conftest.$ac_objext'
9232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9236 (exit $ac_status); }; }; then
9237 ac_cv_have_decl_PER_SUNOS=yes
9239 echo "$as_me: failed program was:" >&5
9240 sed 's/^/| /' conftest.$ac_ext >&5
9242 ac_cv_have_decl_PER_SUNOS=no
9244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9246 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_SUNOS" >&5
9247 echo "${ECHO_T}$ac_cv_have_decl_PER_SUNOS" >&6
9248 if test $ac_cv_have_decl_PER_SUNOS = yes; then
9250 cat >>confdefs.h <<_ACEOF
9251 #define HAVE_DECL_PER_SUNOS 1
9256 cat >>confdefs.h <<_ACEOF
9257 #define HAVE_DECL_PER_SUNOS 0
9262 echo "$as_me:$LINENO: checking whether PER_XENIX is declared" >&5
9263 echo $ECHO_N "checking whether PER_XENIX is declared... $ECHO_C" >&6
9264 if test "${ac_cv_have_decl_PER_XENIX+set}" = set; then
9265 echo $ECHO_N "(cached) $ECHO_C" >&6
9267 cat >conftest.$ac_ext <<_ACEOF
9270 cat confdefs.h >>conftest.$ac_ext
9271 cat >>conftest.$ac_ext <<_ACEOF
9272 /* end confdefs.h. */
9274 #include <linux/personality.h>
9281 char *p = (char *) PER_XENIX;
9288 rm -f conftest.$ac_objext
9289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9290 (eval $ac_compile) 2>conftest.er1
9292 grep -v '^ *+' conftest.er1 >conftest.err
9294 cat conftest.err >&5
9295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9296 (exit $ac_status); } &&
9297 { ac_try='test -z "$ac_c_werror_flag"
9298 || test ! -s conftest.err'
9299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303 (exit $ac_status); }; } &&
9304 { ac_try='test -s conftest.$ac_objext'
9305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9309 (exit $ac_status); }; }; then
9310 ac_cv_have_decl_PER_XENIX=yes
9312 echo "$as_me: failed program was:" >&5
9313 sed 's/^/| /' conftest.$ac_ext >&5
9315 ac_cv_have_decl_PER_XENIX=no
9317 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9319 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_XENIX" >&5
9320 echo "${ECHO_T}$ac_cv_have_decl_PER_XENIX" >&6
9321 if test $ac_cv_have_decl_PER_XENIX = yes; then
9323 cat >>confdefs.h <<_ACEOF
9324 #define HAVE_DECL_PER_XENIX 1
9329 cat >>confdefs.h <<_ACEOF
9330 #define HAVE_DECL_PER_XENIX 0
9335 echo "$as_me:$LINENO: checking whether PER_LINUX32 is declared" >&5
9336 echo $ECHO_N "checking whether PER_LINUX32 is declared... $ECHO_C" >&6
9337 if test "${ac_cv_have_decl_PER_LINUX32+set}" = set; then
9338 echo $ECHO_N "(cached) $ECHO_C" >&6
9340 cat >conftest.$ac_ext <<_ACEOF
9343 cat confdefs.h >>conftest.$ac_ext
9344 cat >>conftest.$ac_ext <<_ACEOF
9345 /* end confdefs.h. */
9347 #include <linux/personality.h>
9354 char *p = (char *) PER_LINUX32;
9361 rm -f conftest.$ac_objext
9362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9363 (eval $ac_compile) 2>conftest.er1
9365 grep -v '^ *+' conftest.er1 >conftest.err
9367 cat conftest.err >&5
9368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9369 (exit $ac_status); } &&
9370 { ac_try='test -z "$ac_c_werror_flag"
9371 || test ! -s conftest.err'
9372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9376 (exit $ac_status); }; } &&
9377 { ac_try='test -s conftest.$ac_objext'
9378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9382 (exit $ac_status); }; }; then
9383 ac_cv_have_decl_PER_LINUX32=yes
9385 echo "$as_me: failed program was:" >&5
9386 sed 's/^/| /' conftest.$ac_ext >&5
9388 ac_cv_have_decl_PER_LINUX32=no
9390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9392 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_LINUX32" >&5
9393 echo "${ECHO_T}$ac_cv_have_decl_PER_LINUX32" >&6
9394 if test $ac_cv_have_decl_PER_LINUX32 = yes; then
9396 cat >>confdefs.h <<_ACEOF
9397 #define HAVE_DECL_PER_LINUX32 1
9402 cat >>confdefs.h <<_ACEOF
9403 #define HAVE_DECL_PER_LINUX32 0
9408 echo "$as_me:$LINENO: checking whether PER_LINUX32_3GB is declared" >&5
9409 echo $ECHO_N "checking whether PER_LINUX32_3GB is declared... $ECHO_C" >&6
9410 if test "${ac_cv_have_decl_PER_LINUX32_3GB+set}" = set; then
9411 echo $ECHO_N "(cached) $ECHO_C" >&6
9413 cat >conftest.$ac_ext <<_ACEOF
9416 cat confdefs.h >>conftest.$ac_ext
9417 cat >>conftest.$ac_ext <<_ACEOF
9418 /* end confdefs.h. */
9420 #include <linux/personality.h>
9426 #ifndef PER_LINUX32_3GB
9427 char *p = (char *) PER_LINUX32_3GB;
9434 rm -f conftest.$ac_objext
9435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9436 (eval $ac_compile) 2>conftest.er1
9438 grep -v '^ *+' conftest.er1 >conftest.err
9440 cat conftest.err >&5
9441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9442 (exit $ac_status); } &&
9443 { ac_try='test -z "$ac_c_werror_flag"
9444 || test ! -s conftest.err'
9445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9449 (exit $ac_status); }; } &&
9450 { ac_try='test -s conftest.$ac_objext'
9451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9455 (exit $ac_status); }; }; then
9456 ac_cv_have_decl_PER_LINUX32_3GB=yes
9458 echo "$as_me: failed program was:" >&5
9459 sed 's/^/| /' conftest.$ac_ext >&5
9461 ac_cv_have_decl_PER_LINUX32_3GB=no
9463 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9465 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_LINUX32_3GB" >&5
9466 echo "${ECHO_T}$ac_cv_have_decl_PER_LINUX32_3GB" >&6
9467 if test $ac_cv_have_decl_PER_LINUX32_3GB = yes; then
9469 cat >>confdefs.h <<_ACEOF
9470 #define HAVE_DECL_PER_LINUX32_3GB 1
9475 cat >>confdefs.h <<_ACEOF
9476 #define HAVE_DECL_PER_LINUX32_3GB 0
9481 echo "$as_me:$LINENO: checking whether PER_IRIX32 is declared" >&5
9482 echo $ECHO_N "checking whether PER_IRIX32 is declared... $ECHO_C" >&6
9483 if test "${ac_cv_have_decl_PER_IRIX32+set}" = set; then
9484 echo $ECHO_N "(cached) $ECHO_C" >&6
9486 cat >conftest.$ac_ext <<_ACEOF
9489 cat confdefs.h >>conftest.$ac_ext
9490 cat >>conftest.$ac_ext <<_ACEOF
9491 /* end confdefs.h. */
9493 #include <linux/personality.h>
9500 char *p = (char *) PER_IRIX32;
9507 rm -f conftest.$ac_objext
9508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9509 (eval $ac_compile) 2>conftest.er1
9511 grep -v '^ *+' conftest.er1 >conftest.err
9513 cat conftest.err >&5
9514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9515 (exit $ac_status); } &&
9516 { ac_try='test -z "$ac_c_werror_flag"
9517 || test ! -s conftest.err'
9518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9522 (exit $ac_status); }; } &&
9523 { ac_try='test -s conftest.$ac_objext'
9524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9528 (exit $ac_status); }; }; then
9529 ac_cv_have_decl_PER_IRIX32=yes
9531 echo "$as_me: failed program was:" >&5
9532 sed 's/^/| /' conftest.$ac_ext >&5
9534 ac_cv_have_decl_PER_IRIX32=no
9536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9538 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_IRIX32" >&5
9539 echo "${ECHO_T}$ac_cv_have_decl_PER_IRIX32" >&6
9540 if test $ac_cv_have_decl_PER_IRIX32 = yes; then
9542 cat >>confdefs.h <<_ACEOF
9543 #define HAVE_DECL_PER_IRIX32 1
9548 cat >>confdefs.h <<_ACEOF
9549 #define HAVE_DECL_PER_IRIX32 0
9554 echo "$as_me:$LINENO: checking whether PER_IRIXN32 is declared" >&5
9555 echo $ECHO_N "checking whether PER_IRIXN32 is declared... $ECHO_C" >&6
9556 if test "${ac_cv_have_decl_PER_IRIXN32+set}" = set; then
9557 echo $ECHO_N "(cached) $ECHO_C" >&6
9559 cat >conftest.$ac_ext <<_ACEOF
9562 cat confdefs.h >>conftest.$ac_ext
9563 cat >>conftest.$ac_ext <<_ACEOF
9564 /* end confdefs.h. */
9566 #include <linux/personality.h>
9573 char *p = (char *) PER_IRIXN32;
9580 rm -f conftest.$ac_objext
9581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9582 (eval $ac_compile) 2>conftest.er1
9584 grep -v '^ *+' conftest.er1 >conftest.err
9586 cat conftest.err >&5
9587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9588 (exit $ac_status); } &&
9589 { ac_try='test -z "$ac_c_werror_flag"
9590 || test ! -s conftest.err'
9591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9595 (exit $ac_status); }; } &&
9596 { ac_try='test -s conftest.$ac_objext'
9597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9601 (exit $ac_status); }; }; then
9602 ac_cv_have_decl_PER_IRIXN32=yes
9604 echo "$as_me: failed program was:" >&5
9605 sed 's/^/| /' conftest.$ac_ext >&5
9607 ac_cv_have_decl_PER_IRIXN32=no
9609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9611 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_IRIXN32" >&5
9612 echo "${ECHO_T}$ac_cv_have_decl_PER_IRIXN32" >&6
9613 if test $ac_cv_have_decl_PER_IRIXN32 = yes; then
9615 cat >>confdefs.h <<_ACEOF
9616 #define HAVE_DECL_PER_IRIXN32 1
9621 cat >>confdefs.h <<_ACEOF
9622 #define HAVE_DECL_PER_IRIXN32 0
9627 echo "$as_me:$LINENO: checking whether PER_IRIX64 is declared" >&5
9628 echo $ECHO_N "checking whether PER_IRIX64 is declared... $ECHO_C" >&6
9629 if test "${ac_cv_have_decl_PER_IRIX64+set}" = set; then
9630 echo $ECHO_N "(cached) $ECHO_C" >&6
9632 cat >conftest.$ac_ext <<_ACEOF
9635 cat confdefs.h >>conftest.$ac_ext
9636 cat >>conftest.$ac_ext <<_ACEOF
9637 /* end confdefs.h. */
9639 #include <linux/personality.h>
9646 char *p = (char *) PER_IRIX64;
9653 rm -f conftest.$ac_objext
9654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9655 (eval $ac_compile) 2>conftest.er1
9657 grep -v '^ *+' conftest.er1 >conftest.err
9659 cat conftest.err >&5
9660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9661 (exit $ac_status); } &&
9662 { ac_try='test -z "$ac_c_werror_flag"
9663 || test ! -s conftest.err'
9664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9668 (exit $ac_status); }; } &&
9669 { ac_try='test -s conftest.$ac_objext'
9670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9674 (exit $ac_status); }; }; then
9675 ac_cv_have_decl_PER_IRIX64=yes
9677 echo "$as_me: failed program was:" >&5
9678 sed 's/^/| /' conftest.$ac_ext >&5
9680 ac_cv_have_decl_PER_IRIX64=no
9682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9684 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_IRIX64" >&5
9685 echo "${ECHO_T}$ac_cv_have_decl_PER_IRIX64" >&6
9686 if test $ac_cv_have_decl_PER_IRIX64 = yes; then
9688 cat >>confdefs.h <<_ACEOF
9689 #define HAVE_DECL_PER_IRIX64 1
9694 cat >>confdefs.h <<_ACEOF
9695 #define HAVE_DECL_PER_IRIX64 0
9700 echo "$as_me:$LINENO: checking whether PER_RISCOS is declared" >&5
9701 echo $ECHO_N "checking whether PER_RISCOS is declared... $ECHO_C" >&6
9702 if test "${ac_cv_have_decl_PER_RISCOS+set}" = set; then
9703 echo $ECHO_N "(cached) $ECHO_C" >&6
9705 cat >conftest.$ac_ext <<_ACEOF
9708 cat confdefs.h >>conftest.$ac_ext
9709 cat >>conftest.$ac_ext <<_ACEOF
9710 /* end confdefs.h. */
9712 #include <linux/personality.h>
9719 char *p = (char *) PER_RISCOS;
9726 rm -f conftest.$ac_objext
9727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9728 (eval $ac_compile) 2>conftest.er1
9730 grep -v '^ *+' conftest.er1 >conftest.err
9732 cat conftest.err >&5
9733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734 (exit $ac_status); } &&
9735 { ac_try='test -z "$ac_c_werror_flag"
9736 || test ! -s conftest.err'
9737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741 (exit $ac_status); }; } &&
9742 { ac_try='test -s conftest.$ac_objext'
9743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747 (exit $ac_status); }; }; then
9748 ac_cv_have_decl_PER_RISCOS=yes
9750 echo "$as_me: failed program was:" >&5
9751 sed 's/^/| /' conftest.$ac_ext >&5
9753 ac_cv_have_decl_PER_RISCOS=no
9755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9757 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_RISCOS" >&5
9758 echo "${ECHO_T}$ac_cv_have_decl_PER_RISCOS" >&6
9759 if test $ac_cv_have_decl_PER_RISCOS = yes; then
9761 cat >>confdefs.h <<_ACEOF
9762 #define HAVE_DECL_PER_RISCOS 1
9767 cat >>confdefs.h <<_ACEOF
9768 #define HAVE_DECL_PER_RISCOS 0
9773 echo "$as_me:$LINENO: checking whether PER_SOLARIS is declared" >&5
9774 echo $ECHO_N "checking whether PER_SOLARIS is declared... $ECHO_C" >&6
9775 if test "${ac_cv_have_decl_PER_SOLARIS+set}" = set; then
9776 echo $ECHO_N "(cached) $ECHO_C" >&6
9778 cat >conftest.$ac_ext <<_ACEOF
9781 cat confdefs.h >>conftest.$ac_ext
9782 cat >>conftest.$ac_ext <<_ACEOF
9783 /* end confdefs.h. */
9785 #include <linux/personality.h>
9792 char *p = (char *) PER_SOLARIS;
9799 rm -f conftest.$ac_objext
9800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9801 (eval $ac_compile) 2>conftest.er1
9803 grep -v '^ *+' conftest.er1 >conftest.err
9805 cat conftest.err >&5
9806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807 (exit $ac_status); } &&
9808 { ac_try='test -z "$ac_c_werror_flag"
9809 || test ! -s conftest.err'
9810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9814 (exit $ac_status); }; } &&
9815 { ac_try='test -s conftest.$ac_objext'
9816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9820 (exit $ac_status); }; }; then
9821 ac_cv_have_decl_PER_SOLARIS=yes
9823 echo "$as_me: failed program was:" >&5
9824 sed 's/^/| /' conftest.$ac_ext >&5
9826 ac_cv_have_decl_PER_SOLARIS=no
9828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9830 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_SOLARIS" >&5
9831 echo "${ECHO_T}$ac_cv_have_decl_PER_SOLARIS" >&6
9832 if test $ac_cv_have_decl_PER_SOLARIS = yes; then
9834 cat >>confdefs.h <<_ACEOF
9835 #define HAVE_DECL_PER_SOLARIS 1
9840 cat >>confdefs.h <<_ACEOF
9841 #define HAVE_DECL_PER_SOLARIS 0
9846 echo "$as_me:$LINENO: checking whether PER_UW7 is declared" >&5
9847 echo $ECHO_N "checking whether PER_UW7 is declared... $ECHO_C" >&6
9848 if test "${ac_cv_have_decl_PER_UW7+set}" = set; then
9849 echo $ECHO_N "(cached) $ECHO_C" >&6
9851 cat >conftest.$ac_ext <<_ACEOF
9854 cat confdefs.h >>conftest.$ac_ext
9855 cat >>conftest.$ac_ext <<_ACEOF
9856 /* end confdefs.h. */
9858 #include <linux/personality.h>
9865 char *p = (char *) PER_UW7;
9872 rm -f conftest.$ac_objext
9873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9874 (eval $ac_compile) 2>conftest.er1
9876 grep -v '^ *+' conftest.er1 >conftest.err
9878 cat conftest.err >&5
9879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880 (exit $ac_status); } &&
9881 { ac_try='test -z "$ac_c_werror_flag"
9882 || test ! -s conftest.err'
9883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887 (exit $ac_status); }; } &&
9888 { ac_try='test -s conftest.$ac_objext'
9889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9893 (exit $ac_status); }; }; then
9894 ac_cv_have_decl_PER_UW7=yes
9896 echo "$as_me: failed program was:" >&5
9897 sed 's/^/| /' conftest.$ac_ext >&5
9899 ac_cv_have_decl_PER_UW7=no
9901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9903 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_UW7" >&5
9904 echo "${ECHO_T}$ac_cv_have_decl_PER_UW7" >&6
9905 if test $ac_cv_have_decl_PER_UW7 = yes; then
9907 cat >>confdefs.h <<_ACEOF
9908 #define HAVE_DECL_PER_UW7 1
9913 cat >>confdefs.h <<_ACEOF
9914 #define HAVE_DECL_PER_UW7 0
9919 echo "$as_me:$LINENO: checking whether PER_HPUX is declared" >&5
9920 echo $ECHO_N "checking whether PER_HPUX is declared... $ECHO_C" >&6
9921 if test "${ac_cv_have_decl_PER_HPUX+set}" = set; then
9922 echo $ECHO_N "(cached) $ECHO_C" >&6
9924 cat >conftest.$ac_ext <<_ACEOF
9927 cat confdefs.h >>conftest.$ac_ext
9928 cat >>conftest.$ac_ext <<_ACEOF
9929 /* end confdefs.h. */
9931 #include <linux/personality.h>
9938 char *p = (char *) PER_HPUX;
9945 rm -f conftest.$ac_objext
9946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9947 (eval $ac_compile) 2>conftest.er1
9949 grep -v '^ *+' conftest.er1 >conftest.err
9951 cat conftest.err >&5
9952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953 (exit $ac_status); } &&
9954 { ac_try='test -z "$ac_c_werror_flag"
9955 || test ! -s conftest.err'
9956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960 (exit $ac_status); }; } &&
9961 { ac_try='test -s conftest.$ac_objext'
9962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966 (exit $ac_status); }; }; then
9967 ac_cv_have_decl_PER_HPUX=yes
9969 echo "$as_me: failed program was:" >&5
9970 sed 's/^/| /' conftest.$ac_ext >&5
9972 ac_cv_have_decl_PER_HPUX=no
9974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9976 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_HPUX" >&5
9977 echo "${ECHO_T}$ac_cv_have_decl_PER_HPUX" >&6
9978 if test $ac_cv_have_decl_PER_HPUX = yes; then
9980 cat >>confdefs.h <<_ACEOF
9981 #define HAVE_DECL_PER_HPUX 1
9986 cat >>confdefs.h <<_ACEOF
9987 #define HAVE_DECL_PER_HPUX 0
9992 echo "$as_me:$LINENO: checking whether PER_OSF4 is declared" >&5
9993 echo $ECHO_N "checking whether PER_OSF4 is declared... $ECHO_C" >&6
9994 if test "${ac_cv_have_decl_PER_OSF4+set}" = set; then
9995 echo $ECHO_N "(cached) $ECHO_C" >&6
9997 cat >conftest.$ac_ext <<_ACEOF
10000 cat confdefs.h >>conftest.$ac_ext
10001 cat >>conftest.$ac_ext <<_ACEOF
10002 /* end confdefs.h. */
10004 #include <linux/personality.h>
10011 char *p = (char *) PER_OSF4;
10018 rm -f conftest.$ac_objext
10019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10020 (eval $ac_compile) 2>conftest.er1
10022 grep -v '^ *+' conftest.er1 >conftest.err
10024 cat conftest.err >&5
10025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026 (exit $ac_status); } &&
10027 { ac_try='test -z "$ac_c_werror_flag"
10028 || test ! -s conftest.err'
10029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10030 (eval $ac_try) 2>&5
10032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033 (exit $ac_status); }; } &&
10034 { ac_try='test -s conftest.$ac_objext'
10035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10036 (eval $ac_try) 2>&5
10038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039 (exit $ac_status); }; }; then
10040 ac_cv_have_decl_PER_OSF4=yes
10042 echo "$as_me: failed program was:" >&5
10043 sed 's/^/| /' conftest.$ac_ext >&5
10045 ac_cv_have_decl_PER_OSF4=no
10047 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10049 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_OSF4" >&5
10050 echo "${ECHO_T}$ac_cv_have_decl_PER_OSF4" >&6
10051 if test $ac_cv_have_decl_PER_OSF4 = yes; then
10053 cat >>confdefs.h <<_ACEOF
10054 #define HAVE_DECL_PER_OSF4 1
10059 cat >>confdefs.h <<_ACEOF
10060 #define HAVE_DECL_PER_OSF4 0
10068 ac_cpp='$CPP $CPPFLAGS'
10069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10078 echo "$as_me:$LINENO: checking for initrddir" >&5
10079 echo $ECHO_N "checking for initrddir... $ECHO_C" >&6
10081 # Check whether --with-initrddir or --without-initrddir was given.
10082 if test "${with_initrddir+set}" = set; then
10083 withval="$with_initrddir"
10085 yes|no) { { echo "$as_me:$LINENO: error: '$withval' is not a valid value for '--with-initrddir'" >&5
10086 echo "$as_me: error: '$withval' is not a valid value for '--with-initrddir'" >&2;}
10087 { (exit 1); exit 1; }; };;
10088 *) ensc_initrddir=$withval;;
10091 ensc_initrddir='$(sysconfdir)/init.d'
10094 if test "initrddir"; then
10095 initrddir=$ensc_initrddir
10099 echo "$as_me:$LINENO: result: $ensc_initrddir" >&5
10100 echo "${ECHO_T}$ensc_initrddir" >&6
10103 echo "$as_me:$LINENO: checking whether to enable release-mode" >&5
10104 echo $ECHO_N "checking whether to enable release-mode... $ECHO_C" >&6
10105 # Check whether --enable-release or --disable-release was given.
10106 if test "${enable_release+set}" = set; then
10107 enableval="$enable_release"
10108 case "$enableval" in
10109 yes) ensc_release_mode=yes;;
10110 no) ensc_release_mode=no;;
10111 *) { { echo "$as_me:$LINENO: error: '$enableval' is not a valid value for '--enable-release'" >&5
10112 echo "$as_me: error: '$enableval' is not a valid value for '--enable-release'" >&2;}
10113 { (exit 1); exit 1; }; };;
10116 ensc_release_mode=no
10119 if test x"$ensc_release_mode" = xno; then
10122 RELEASE_CPPFLAGS='-DNDEBUG'
10126 echo "$as_me:$LINENO: result: $ensc_release_mode" >&5
10127 echo "${ECHO_T}$ensc_release_mode" >&6
10130 # HACK: This needs to be before ENSC_DIETLIBC_NEED_COMPAT, or the alternative
10131 # syscalls will never be enabled for glibc.
10133 ac_cpp='$CPP $CPPFLAGS'
10134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10137 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
10138 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
10139 # On Suns, sometimes $CPP names a directory.
10140 if test -n "$CPP" && test -d "$CPP"; then
10143 if test -z "$CPP"; then
10144 if test "${ac_cv_prog_CPP+set}" = set; then
10145 echo $ECHO_N "(cached) $ECHO_C" >&6
10147 # Double quotes because CPP needs to be expanded
10148 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
10150 ac_preproc_ok=false
10151 for ac_c_preproc_warn_flag in '' yes
10153 # Use a header file that comes with gcc, so configuring glibc
10154 # with a fresh cross-compiler works.
10155 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10156 # <limits.h> exists even on freestanding compilers.
10157 # On the NeXT, cc -E runs the code through the compiler's parser,
10158 # not just through cpp. "Syntax error" is here to catch this case.
10159 cat >conftest.$ac_ext <<_ACEOF
10162 cat confdefs.h >>conftest.$ac_ext
10163 cat >>conftest.$ac_ext <<_ACEOF
10164 /* end confdefs.h. */
10166 # include <limits.h>
10168 # include <assert.h>
10172 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10173 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10175 grep -v '^ *+' conftest.er1 >conftest.err
10177 cat conftest.err >&5
10178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10179 (exit $ac_status); } >/dev/null; then
10180 if test -s conftest.err; then
10181 ac_cpp_err=$ac_c_preproc_warn_flag
10182 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10189 if test -z "$ac_cpp_err"; then
10192 echo "$as_me: failed program was:" >&5
10193 sed 's/^/| /' conftest.$ac_ext >&5
10195 # Broken: fails on valid input.
10198 rm -f conftest.err conftest.$ac_ext
10200 # OK, works on sane cases. Now check whether non-existent headers
10201 # can be detected and how.
10202 cat >conftest.$ac_ext <<_ACEOF
10205 cat confdefs.h >>conftest.$ac_ext
10206 cat >>conftest.$ac_ext <<_ACEOF
10207 /* end confdefs.h. */
10208 #include <ac_nonexistent.h>
10210 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10211 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10213 grep -v '^ *+' conftest.er1 >conftest.err
10215 cat conftest.err >&5
10216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217 (exit $ac_status); } >/dev/null; then
10218 if test -s conftest.err; then
10219 ac_cpp_err=$ac_c_preproc_warn_flag
10220 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10227 if test -z "$ac_cpp_err"; then
10228 # Broken: success on invalid input.
10231 echo "$as_me: failed program was:" >&5
10232 sed 's/^/| /' conftest.$ac_ext >&5
10234 # Passes both tests.
10238 rm -f conftest.err conftest.$ac_ext
10241 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10242 rm -f conftest.err conftest.$ac_ext
10243 if $ac_preproc_ok; then
10248 ac_cv_prog_CPP=$CPP
10251 CPP=$ac_cv_prog_CPP
10253 ac_cv_prog_CPP=$CPP
10255 echo "$as_me:$LINENO: result: $CPP" >&5
10256 echo "${ECHO_T}$CPP" >&6
10257 ac_preproc_ok=false
10258 for ac_c_preproc_warn_flag in '' yes
10260 # Use a header file that comes with gcc, so configuring glibc
10261 # with a fresh cross-compiler works.
10262 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10263 # <limits.h> exists even on freestanding compilers.
10264 # On the NeXT, cc -E runs the code through the compiler's parser,
10265 # not just through cpp. "Syntax error" is here to catch this case.
10266 cat >conftest.$ac_ext <<_ACEOF
10269 cat confdefs.h >>conftest.$ac_ext
10270 cat >>conftest.$ac_ext <<_ACEOF
10271 /* end confdefs.h. */
10273 # include <limits.h>
10275 # include <assert.h>
10279 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10280 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10282 grep -v '^ *+' conftest.er1 >conftest.err
10284 cat conftest.err >&5
10285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10286 (exit $ac_status); } >/dev/null; then
10287 if test -s conftest.err; then
10288 ac_cpp_err=$ac_c_preproc_warn_flag
10289 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10296 if test -z "$ac_cpp_err"; then
10299 echo "$as_me: failed program was:" >&5
10300 sed 's/^/| /' conftest.$ac_ext >&5
10302 # Broken: fails on valid input.
10305 rm -f conftest.err conftest.$ac_ext
10307 # OK, works on sane cases. Now check whether non-existent headers
10308 # can be detected and how.
10309 cat >conftest.$ac_ext <<_ACEOF
10312 cat confdefs.h >>conftest.$ac_ext
10313 cat >>conftest.$ac_ext <<_ACEOF
10314 /* end confdefs.h. */
10315 #include <ac_nonexistent.h>
10317 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10318 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10320 grep -v '^ *+' conftest.er1 >conftest.err
10322 cat conftest.err >&5
10323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10324 (exit $ac_status); } >/dev/null; then
10325 if test -s conftest.err; then
10326 ac_cpp_err=$ac_c_preproc_warn_flag
10327 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10334 if test -z "$ac_cpp_err"; then
10335 # Broken: success on invalid input.
10338 echo "$as_me: failed program was:" >&5
10339 sed 's/^/| /' conftest.$ac_ext >&5
10341 # Passes both tests.
10345 rm -f conftest.err conftest.$ac_ext
10348 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10349 rm -f conftest.err conftest.$ac_ext
10350 if $ac_preproc_ok; then
10353 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
10354 See \`config.log' for more details." >&5
10355 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
10356 See \`config.log' for more details." >&2;}
10357 { (exit 1); exit 1; }; }
10361 ac_cpp='$CPP $CPPFLAGS'
10362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10366 echo "$as_me:$LINENO: checking for egrep" >&5
10367 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
10368 if test "${ac_cv_prog_egrep+set}" = set; then
10369 echo $ECHO_N "(cached) $ECHO_C" >&6
10371 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
10372 then ac_cv_prog_egrep='grep -E'
10373 else ac_cv_prog_egrep='egrep'
10376 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
10377 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
10378 EGREP=$ac_cv_prog_egrep
10385 echo "$as_me:$LINENO: checking for number of syscall 'vserver'" >&5
10386 echo $ECHO_N "checking for number of syscall 'vserver'... $ECHO_C" >&6
10387 if test "${ensc_cv_value_syscall_vserver+set}" = set; then
10388 echo $ECHO_N "(cached) $ECHO_C" >&6
10392 ac_cpp='$CPP $CPPFLAGS'
10393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10397 cat >conftest.$ac_ext <<_ACEOF
10399 #ifdef ENSC_SYSCALL_FALLBACK
10400 # include ENSC_SYSCALL_FALLBACK
10402 # include <asm/unistd.h>
10404 #ifdef __NR_vserver
10405 ensc_syscall_tmp_nr=__NR_vserver;
10406 ensc_syscall_tmp_src=ENSC_MARK
10410 ensc_syscall_tmp_nr=
10411 ensc_syscall_tmp_src=
10412 test x"$ensc_syscall_tmp_nr" != x || \
10413 eval $($CPP $CPPFLAGS -D ENSC_MARK='glibc' conftest.c | $EGREP '^ensc_syscall_tmp_(nr=[1-9][0-9]*;|src=.*)$')
10414 test x"$ensc_syscall_tmp_nr" != x -o x'lib/syscall-fallback.h' = x || \
10415 eval $($CPP $CPPFLAGS -D ENSC_MARK='fallback' -D ENSC_SYSCALL_FALLBACK='"lib/syscall-fallback.h"' conftest.c | $EGREP '^ensc_syscall_tmp_(nr=[1-9][0-9]*;|src=.*)$')
10416 test "$ensc_syscall_tmp_nr" || {
10417 ensc_syscall_tmp_nr=273
10418 ensc_syscall_tmp_src=default
10421 if test x"$ensc_syscall_tmp_nr" = x; then
10422 { { echo "$as_me:$LINENO: error: Can not determine value of __NR_vserver; please verify your glibc/kernelheaders, and/or set CPPFLAGS='-D__NR_vserver=<value>' environment when calling configure." >&5
10423 echo "$as_me: error: Can not determine value of __NR_vserver; please verify your glibc/kernelheaders, and/or set CPPFLAGS='-D__NR_vserver=<value>' environment when calling configure." >&2;}
10424 { (exit 1); exit 1; }; }
10427 ac_cpp='$CPP $CPPFLAGS'
10428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10433 ensc_cv_value_syscall_vserver="$ensc_syscall_tmp_nr/$ensc_syscall_tmp_src"
10436 echo "$as_me:$LINENO: result: $ensc_cv_value_syscall_vserver" >&5
10437 echo "${ECHO_T}$ensc_cv_value_syscall_vserver" >&6
10439 ensc_syscall_tmp_nr=${ensc_cv_value_syscall_vserver%/*}
10440 ensc_syscall_tmp_src=${ensc_cv_value_syscall_vserver#*/}
10442 if test x"$ensc_syscall_tmp_src" != x'glibc'; then
10444 cat >>confdefs.h <<_ACEOF
10445 #define ENSC_SYSCALL__NR_vserver $ensc_syscall_tmp_nr
10451 echo "$as_me:$LINENO: checking whether to use alternative _syscallX macros" >&5
10452 echo $ECHO_N "checking whether to use alternative _syscallX macros... $ECHO_C" >&6
10453 # Check whether --enable-alternative-syscalls or --disable-alternative-syscalls was given.
10454 if test "${enable_alternative_syscalls+set}" = set; then
10455 enableval="$enable_alternative_syscalls"
10457 (yes|no) ensc_use_alternative_syscall_macros=$enableval;;
10458 (*) { { echo "$as_me:$LINENO: error: '$enableval' is not a valid value for '--disable-alternative-syscalls'" >&5
10459 echo "$as_me: error: '$enableval' is not a valid value for '--disable-alternative-syscalls'" >&2;}
10460 { (exit 1); exit 1; }; };;
10463 ensc_use_alternative_syscall_macros=yes
10466 case $ensc_use_alternative_syscall_macros in
10468 cat >>confdefs.h <<\_ACEOF
10469 #define ENSC_USE_ALTERNATIVE_SYSCALL_MACROS 1
10474 echo "$as_me:$LINENO: result: $ensc_use_alternative_syscall_macros" >&5
10475 echo "${ECHO_T}$ensc_use_alternative_syscall_macros" >&6
10480 echo "$as_me:$LINENO: checking for syscall(2) invocation method" >&5
10481 echo $ECHO_N "checking for syscall(2) invocation method... $ECHO_C" >&6
10483 # Check whether --with-syscall or --without-syscall was given.
10484 if test "${with_syscall+set}" = set; then
10485 withval="$with_syscall"
10490 echo "$as_me:$LINENO: result: $with_syscall" >&5
10491 echo "${ECHO_T}$with_syscall" >&6
10493 case x"$with_syscall" in
10495 echo "$as_me:$LINENO: checking which syscall(2) invocation works" >&5
10496 echo $ECHO_N "checking which syscall(2) invocation works... $ECHO_C" >&6
10497 if test "${ensc_cv_test_syscall+set}" = set; then
10498 echo $ECHO_N "(cached) $ECHO_C" >&6
10502 ac_cpp='$CPP $CPPFLAGS'
10503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10507 cat >conftest.$ac_ext <<_ACEOF
10510 cat confdefs.h >>conftest.$ac_ext
10511 cat >>conftest.$ac_ext <<_ACEOF
10512 /* end confdefs.h. */
10514 #include "$srcdir/lib/syscall-wrap.h"
10517 #define __NR_foo0 300
10518 #define __NR_foo1 301
10519 #define __NR_foo2 302
10520 #define __NR_foo3 303
10521 #define __NR_foo4 304
10522 #define __NR_foo5 305
10523 inline static _syscall0(int, foo0)
10524 inline static _syscall1(int, foo1, int, a)
10525 inline static _syscall2(int, foo2, int, a, int, b)
10526 inline static _syscall3(int, foo3, int, a, int, b, int, c)
10527 inline static _syscall4(int, foo4, int, a, int, b, int, c, int, d)
10528 inline static _syscall5(int, foo5, int, a, int, b, int, c, int, d, int, e)
10540 rm -f conftest.$ac_objext
10541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10542 (eval $ac_compile) 2>conftest.er1
10544 grep -v '^ *+' conftest.er1 >conftest.err
10546 cat conftest.err >&5
10547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10548 (exit $ac_status); } &&
10549 { ac_try='test -z "$ac_c_werror_flag"
10550 || test ! -s conftest.err'
10551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10552 (eval $ac_try) 2>&5
10554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555 (exit $ac_status); }; } &&
10556 { ac_try='test -s conftest.$ac_objext'
10557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10558 (eval $ac_try) 2>&5
10560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10561 (exit $ac_status); }; }; then
10562 ensc_cv_test_syscall=fast
10564 echo "$as_me: failed program was:" >&5
10565 sed 's/^/| /' conftest.$ac_ext >&5
10567 ensc_cv_test_syscall=traditional
10569 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10572 ac_cpp='$CPP $CPPFLAGS'
10573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10579 echo "$as_me:$LINENO: result: $ensc_cv_test_syscall" >&5
10580 echo "${ECHO_T}$ensc_cv_test_syscall" >&6
10581 with_syscall=$ensc_cv_test_syscall
10583 (xfast|xtraditional)
10586 { { echo "$as_me:$LINENO: error: '$with_syscall' is not a valid value for '--with-syscall'" >&5
10587 echo "$as_me: error: '$with_syscall' is not a valid value for '--with-syscall'" >&2;}
10588 { (exit 1); exit 1; }; }
10592 if test x"$with_syscall $ensc_use_alternative_syscall_macros" = 'xfast yes'; then
10593 with_syscall='alternative'
10596 if test x"$with_syscall" = xtraditional; then
10598 cat >>confdefs.h <<\_ACEOF
10599 #define ENSC_SYSCALL_TRADITIONAL 1
10610 (i*86|athlon) min_diet_ver=0.25;;
10611 (ia64|hppa*) min_diet_ver=0.29;;
10612 (sparc*) min_diet_ver=0.30;;
10613 (x86_64) min_diet_ver=0.27;;
10614 (*) min_diet_ver=0.28;;
10618 echo "$as_me:$LINENO: checking whether to enable dietlibc" >&5
10619 echo $ECHO_N "checking whether to enable dietlibc... $ECHO_C" >&6
10627 # Check whether --enable-dietlibc or --disable-dietlibc was given.
10628 if test "${enable_dietlibc+set}" = set; then
10629 enableval="$enable_dietlibc"
10630 case "$enableval" in
10631 (yes) use_dietlibc=forced;;
10632 (no) use_dietlibc=forced_no;;
10633 (*) { { echo "$as_me:$LINENO: error: '$enableval' is not a valid value for --enable-dietlibc" >&5
10634 echo "$as_me: error: '$enableval' is not a valid value for --enable-dietlibc" >&2;}
10635 { (exit 1); exit 1; }; };;
10638 which "$DIET" >/dev/null 2>/dev/null && use_dietlibc=detected || use_dietlibc=detected_no
10641 if test "$use_dietlibc" = detected -a "$min_diet_ver"; then
10642 _dietlibc_ver=$($DIET -v 2>&1 | sed '1p;d')
10643 _dietlibc_ver=${_dietlibc_ver##*diet version }
10644 _dietlibc_ver=${_dietlibc_ver##*dietlibc-}
10645 _dietlibc_ver_maj=${_dietlibc_ver%%.*}
10646 _dietlibc_ver_min=${_dietlibc_ver##*.}
10647 _dietlibc_ver_min=${_dietlibc_ver_min%%[!0-9]*}
10648 _dietlibc_cmp="$min_diet_ver"
10649 _dietlibc_cmp_maj=${_dietlibc_cmp%%.*}
10650 _dietlibc_cmp_min=${_dietlibc_cmp##*.}
10652 ENSC_VERSION_DIETLIBC=$_dietlibc_ver_maj.$_dietlibc_ver_min
10654 let _dietlibc_ver=_dietlibc_ver_maj*1000+_dietlibc_ver_min 2>/dev/null || _dietlibc_ver=0
10655 let _dietlibc_cmp=_dietlibc_cmp_maj*1000+_dietlibc_cmp_min
10657 test $_dietlibc_ver -ge $_dietlibc_cmp || use_dietlibc=detected_old
10659 ENSC_VERSION_DIETLIBC=
10663 ENSC_VERSION_DIETLIBC_NUM=$_dietlibc_ver
10664 ensc_have_dietlibc=no
10666 case x"$use_dietlibc" in
10672 USE_DIETLIBC_FALSE='#'
10674 USE_DIETLIBC_TRUE='#'
10675 USE_DIETLIBC_FALSE=
10678 echo "$as_me:$LINENO: result: yes (autodetected, $ENSC_VERSION_DIETLIBC)" >&5
10679 echo "${ECHO_T}yes (autodetected, $ENSC_VERSION_DIETLIBC)" >&6
10680 ensc_have_dietlibc=yes
10687 USE_DIETLIBC_FALSE='#'
10689 USE_DIETLIBC_TRUE='#'
10690 USE_DIETLIBC_FALSE=
10693 echo "$as_me:$LINENO: result: yes (forced)" >&5
10694 echo "${ECHO_T}yes (forced)" >&6
10695 ensc_have_dietlibc=yes
10702 USE_DIETLIBC_FALSE='#'
10704 USE_DIETLIBC_TRUE='#'
10705 USE_DIETLIBC_FALSE=
10708 echo "$as_me:$LINENO: result: no (detected)" >&5
10709 echo "${ECHO_T}no (detected)" >&6
10716 USE_DIETLIBC_FALSE='#'
10718 USE_DIETLIBC_TRUE='#'
10719 USE_DIETLIBC_FALSE=
10722 echo "$as_me:$LINENO: result: no (too old; $min_diet_ver+ required, $ENSC_VERSION_DIETLIBC found)" >&5
10723 echo "${ECHO_T}no (too old; $min_diet_ver+ required, $ENSC_VERSION_DIETLIBC found)" >&6
10730 USE_DIETLIBC_FALSE='#'
10732 USE_DIETLIBC_TRUE='#'
10733 USE_DIETLIBC_FALSE=
10736 echo "$as_me:$LINENO: result: no (forced)" >&5
10737 echo "${ECHO_T}no (forced)" >&6
10740 { { echo "$as_me:$LINENO: error: internal error, use_dietlibc was \"$use_dietlibc\"" >&5
10741 echo "$as_me: error: internal error, use_dietlibc was \"$use_dietlibc\"" >&2;}
10742 { (exit 1); exit 1; }; }
10746 if test x"$ensc_have_dietlibc" != xno; then
10751 echo "$as_me:$LINENO: checking whether dietlibc supports C99" >&5
10752 echo $ECHO_N "checking whether dietlibc supports C99... $ECHO_C" >&6
10753 if test "${ensc_cv_c_dietlibc_c99+set}" = set; then
10754 echo $ECHO_N "(cached) $ECHO_C" >&6
10757 _ensc_dietlibc_c99_old_CFLAGS=$CFLAGS
10758 _ensc_dietlibc_c99_old_CC=$CC
10761 CC="${DIET:-diet} $CC"
10764 ac_cpp='$CPP $CPPFLAGS'
10765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10769 cat >conftest.$ac_ext <<_ACEOF
10772 rm -f conftest.$ac_objext
10773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10774 (eval $ac_compile) 2>conftest.er1
10776 grep -v '^ *+' conftest.er1 >conftest.err
10778 cat conftest.err >&5
10779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10780 (exit $ac_status); } &&
10781 { ac_try='test -z "$ac_c_werror_flag"
10782 || test ! -s conftest.err'
10783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10784 (eval $ac_try) 2>&5
10786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787 (exit $ac_status); }; } &&
10788 { ac_try='test -s conftest.$ac_objext'
10789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10790 (eval $ac_try) 2>&5
10792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10793 (exit $ac_status); }; }; then
10795 cat >conftest.$ac_ext <<_ACEOF
10797 #include <stdint.h>
10798 #include <sys/cdefs.h>
10799 #if defined(inline)
10800 # error 'inline' badly defined
10802 volatile uint64_t a;
10805 rm -f conftest.$ac_objext
10806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10807 (eval $ac_compile) 2>conftest.er1
10809 grep -v '^ *+' conftest.er1 >conftest.err
10811 cat conftest.err >&5
10812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10813 (exit $ac_status); } &&
10814 { ac_try='test -z "$ac_c_werror_flag"
10815 || test ! -s conftest.err'
10816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10817 (eval $ac_try) 2>&5
10819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820 (exit $ac_status); }; } &&
10821 { ac_try='test -s conftest.$ac_objext'
10822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10823 (eval $ac_try) 2>&5
10825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10826 (exit $ac_status); }; }; then
10827 ensc_cv_c_dietlibc_c99=yes
10829 echo "$as_me: failed program was:" >&5
10830 sed 's/^/| /' conftest.$ac_ext >&5
10832 ensc_cv_c_dietlibc_c99=no
10834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10836 echo "$as_me: failed program was:" >&5
10837 sed 's/^/| /' conftest.$ac_ext >&5
10839 ensc_cv_c_dietlibc_c99='skipped (compiler does not support C99)'
10841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10843 ac_cpp='$CPP $CPPFLAGS'
10844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10849 CC=$_ensc_dietlibc_c99_old_CC
10850 CFLAGS=$_ensc_dietlibc_c99_old_CFLAGS
10853 echo "$as_me:$LINENO: result: $ensc_cv_c_dietlibc_c99" >&5
10854 echo "${ECHO_T}$ensc_cv_c_dietlibc_c99" >&6
10856 if test x"$ensc_cv_c_dietlibc_c99" = xyes; then
10857 cat >>confdefs.h <<\_ACEOF
10858 #define ENSC_DIETLIBC_C99 1
10867 echo "$as_me:$LINENO: checking whether dietlibc declares syscall" >&5
10868 echo $ECHO_N "checking whether dietlibc declares syscall... $ECHO_C" >&6
10869 if test "${ensc_cv_c_dietlibc_syscall+set}" = set; then
10870 echo $ECHO_N "(cached) $ECHO_C" >&6
10873 _ensc_dietlibc_syscall_old_CC="$CC"
10874 CC="${DIET:-diet} $CC"
10877 ac_cpp='$CPP $CPPFLAGS'
10878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10882 cat >conftest.$ac_ext <<_ACEOF
10884 #include <sys/syscall.h>
10885 long int syscall(long int __sysno, ...);
10888 rm -f conftest.$ac_objext
10889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10890 (eval $ac_compile) 2>conftest.er1
10892 grep -v '^ *+' conftest.er1 >conftest.err
10894 cat conftest.err >&5
10895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10896 (exit $ac_status); } &&
10897 { ac_try='test -z "$ac_c_werror_flag"
10898 || test ! -s conftest.err'
10899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10900 (eval $ac_try) 2>&5
10902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903 (exit $ac_status); }; } &&
10904 { ac_try='test -s conftest.$ac_objext'
10905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10906 (eval $ac_try) 2>&5
10908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10909 (exit $ac_status); }; }; then
10910 ensc_cv_c_dietlibc_syscall=no
10912 echo "$as_me: failed program was:" >&5
10913 sed 's/^/| /' conftest.$ac_ext >&5
10915 ensc_cv_c_dietlibc_syscall=yes
10917 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10919 ac_cpp='$CPP $CPPFLAGS'
10920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10925 CC="$_ensc_dietlibc_syscall_old_CC"
10928 echo "$as_me:$LINENO: result: $ensc_cv_c_dietlibc_syscall" >&5
10929 echo "${ECHO_T}$ensc_cv_c_dietlibc_syscall" >&6
10931 if test x"$ensc_cv_c_dietlibc_syscall" = xyes; then
10932 cat >>confdefs.h <<\_ACEOF
10933 #define ENSC_DIETLIBC_HAS_SYSCALL 1
10941 if test x"$ensc_have_dietlibc" = xno; then
10942 { echo "$as_me:$LINENO: WARNING: *** ***" >&5
10943 echo "$as_me: WARNING: *** ***" >&2;}
10944 { echo "$as_me:$LINENO: WARNING: *** it is strongly recommended to link util-vserver against ***" >&5
10945 echo "$as_me: WARNING: *** it is strongly recommended to link util-vserver against ***" >&2;}
10946 { echo "$as_me:$LINENO: WARNING: *** dietlibc; glibc's NSS functions are very unreliable in ***" >&5
10947 echo "$as_me: WARNING: *** dietlibc; glibc's NSS functions are very unreliable in ***" >&2;}
10948 { echo "$as_me:$LINENO: WARNING: *** chroot() environments, so you have to expect problems ***" >&5
10949 echo "$as_me: WARNING: *** chroot() environments, so you have to expect problems ***" >&2;}
10950 { echo "$as_me:$LINENO: WARNING: *** there. ***" >&5
10951 echo "$as_me: WARNING: *** there. ***" >&2;}
10952 { echo "$as_me:$LINENO: WARNING: *** ***" >&5
10953 echo "$as_me: WARNING: *** ***" >&2;}
10957 USE_DIETLIBC_COMPAT_TRUE=
10958 USE_DIETLIBC_COMPAT_FALSE='#'
10960 USE_DIETLIBC_COMPAT_TRUE='#'
10961 USE_DIETLIBC_COMPAT_FALSE=
10965 # HACK: libtool does not have cmdline options to build only
10966 # dynamic libraries; this can be done with the
10967 # '--disable-static' ./configure option only. As our static
10968 # libraries will be build with dietlibc, we have to do set
10969 # this option which is evaluated by 'AC_PROG_LIBTOOL'
10970 # below. Therefore, this macro must not be called earlier.
10976 echo "$as_me:$LINENO: checking whether dietlibc needs '-lcompat'" >&5
10977 echo $ECHO_N "checking whether dietlibc needs '-lcompat'... $ECHO_C" >&6
10978 if test "${ensc_cv_c_dietlibc_compat+set}" = set; then
10979 echo $ECHO_N "(cached) $ECHO_C" >&6
10983 ac_cpp='$CPP $CPPFLAGS'
10984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10988 ensc_dietlibc_need_compat_old_CC=$CC
10989 CC="${DIET:-diet} $CC"
10990 cat >conftest.$ac_ext <<_ACEOF
10994 cat confdefs.h >>conftest.$ac_ext
10995 cat >>conftest.$ac_ext <<_ACEOF
10996 /* end confdefs.h. */
10998 #include "$srcdir/lib/syscall-wrap.h"
11001 #define __NR_foo0 42
11002 #define __NR_foo1 42
11003 #define __NR_foo2 42
11004 #define __NR_foo3 42
11005 #define __NR_foo4 42
11006 #define __NR_foo5 42
11007 inline static _syscall0(int, foo0)
11008 inline static _syscall1(int, foo1, int, a)
11009 inline static _syscall2(int, foo2, int, a, int, b)
11010 inline static _syscall3(int, foo3, int, a, int, b, int, c)
11011 inline static _syscall4(int, foo4, int, a, int, b, int, c, int, d)
11012 inline static _syscall5(int, foo5, int, a, int, b, int, c, int, d, int, e)
11017 foo0(); foo1(0); foo2(0,0); foo3(0,0,0); foo4(0,0,0,0); foo5(0,0,0,0,0);
11022 rm -f conftest.$ac_objext conftest$ac_exeext
11023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11024 (eval $ac_link) 2>conftest.er1
11026 grep -v '^ *+' conftest.er1 >conftest.err
11028 cat conftest.err >&5
11029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030 (exit $ac_status); } &&
11031 { ac_try='test -z "$ac_c_werror_flag"
11032 || test ! -s conftest.err'
11033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11034 (eval $ac_try) 2>&5
11036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11037 (exit $ac_status); }; } &&
11038 { ac_try='test -s conftest$ac_exeext'
11039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11040 (eval $ac_try) 2>&5
11042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11043 (exit $ac_status); }; }; then
11044 ensc_cv_c_dietlibc_compat=no
11046 echo "$as_me: failed program was:" >&5
11047 sed 's/^/| /' conftest.$ac_ext >&5
11049 ensc_cv_c_dietlibc_compat=yes
11051 rm -f conftest.err conftest.$ac_objext \
11052 conftest$ac_exeext conftest.$ac_ext
11053 CC=$ensc_dietlibc_need_compat_old_CC
11055 ac_cpp='$CPP $CPPFLAGS'
11056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11062 echo "$as_me:$LINENO: result: $ensc_cv_c_dietlibc_compat" >&5
11063 echo "${ECHO_T}$ensc_cv_c_dietlibc_compat" >&6
11065 if test x"USE_DIETLIBC_COMPAT" != x; then
11068 if test x"$ensc_cv_c_dietlibc_compat" = xyes; then
11069 USE_DIETLIBC_COMPAT_TRUE=
11070 USE_DIETLIBC_COMPAT_FALSE='#'
11072 USE_DIETLIBC_COMPAT_TRUE='#'
11073 USE_DIETLIBC_COMPAT_FALSE=
11082 if test x"$ensc_have_dietlibc" = xyes; then
11083 ENSC_USE_DIETLIBC_TRUE=
11084 ENSC_USE_DIETLIBC_FALSE='#'
11086 ENSC_USE_DIETLIBC_TRUE='#'
11087 ENSC_USE_DIETLIBC_FALSE=
11093 ENSC_USE_GLIBC_TRUE=
11094 ENSC_USE_GLIBC_FALSE='#'
11096 ENSC_USE_GLIBC_TRUE='#'
11097 ENSC_USE_GLIBC_FALSE=
11101 # HACK: see comments at 'enable_static' above
11102 # Check whether --enable-shared or --disable-shared was given.
11103 if test "${enable_shared+set}" = set; then
11104 enableval="$enable_shared"
11105 p=${PACKAGE-default}
11107 yes) enable_shared=yes ;;
11108 no) enable_shared=no ;;
11111 # Look at the argument we got. We use all the common list separators.
11112 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11113 for pkg in $enableval; do
11115 if test "X$pkg" = "X$p"; then
11126 # Check whether --enable-static or --disable-static was given.
11127 if test "${enable_static+set}" = set; then
11128 enableval="$enable_static"
11129 p=${PACKAGE-default}
11131 yes) enable_static=yes ;;
11132 no) enable_static=no ;;
11135 # Look at the argument we got. We use all the common list separators.
11136 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11137 for pkg in $enableval; do
11139 if test "X$pkg" = "X$p"; then
11150 # Check whether --enable-fast-install or --disable-fast-install was given.
11151 if test "${enable_fast_install+set}" = set; then
11152 enableval="$enable_fast_install"
11153 p=${PACKAGE-default}
11155 yes) enable_fast_install=yes ;;
11156 no) enable_fast_install=no ;;
11158 enable_fast_install=no
11159 # Look at the argument we got. We use all the common list separators.
11160 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11161 for pkg in $enableval; do
11163 if test "X$pkg" = "X$p"; then
11164 enable_fast_install=yes
11171 enable_fast_install=yes
11174 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
11175 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
11176 if test "${lt_cv_path_SED+set}" = set; then
11177 echo $ECHO_N "(cached) $ECHO_C" >&6
11179 # Loop through the user's path and test for sed and gsed.
11180 # Then use that list of sed's as ones to test for truncation.
11181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11182 for as_dir in $PATH
11185 test -z "$as_dir" && as_dir=.
11186 for lt_ac_prog in sed gsed; do
11187 for ac_exec_ext in '' $ac_executable_extensions; do
11188 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
11189 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
11196 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
11197 # along with /bin/sed that truncates output.
11198 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
11199 test ! -f $lt_ac_sed && continue
11200 cat /dev/null > conftest.in
11202 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
11203 # Check for GNU sed and select it if it is found.
11204 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
11205 lt_cv_path_SED=$lt_ac_sed
11209 cat conftest.in conftest.in >conftest.tmp
11210 mv conftest.tmp conftest.in
11211 cp conftest.in conftest.nl
11213 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
11214 cmp -s conftest.out conftest.nl || break
11215 # 10000 chars as input seems more than enough
11216 test $lt_ac_count -gt 10 && break
11217 lt_ac_count=`expr $lt_ac_count + 1`
11218 if test $lt_ac_count -gt $lt_ac_max; then
11219 lt_ac_max=$lt_ac_count
11220 lt_cv_path_SED=$lt_ac_sed
11227 SED=$lt_cv_path_SED
11228 echo "$as_me:$LINENO: result: $SED" >&5
11229 echo "${ECHO_T}$SED" >&6
11232 # Check whether --with-gnu-ld or --without-gnu-ld was given.
11233 if test "${with_gnu_ld+set}" = set; then
11234 withval="$with_gnu_ld"
11235 test "$withval" = no || with_gnu_ld=yes
11240 if test "$GCC" = yes; then
11241 # Check if gcc -print-prog-name=ld gives a path.
11242 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11243 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
11246 # gcc leaves a trailing carriage return which upsets mingw
11247 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11249 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11252 # Accept absolute paths.
11254 re_direlt='/[^/][^/]*/\.\./'
11255 # Canonicalize the pathname of ld
11256 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11257 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11258 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11260 test -z "$LD" && LD="$ac_prog"
11263 # If it fails, then pretend we aren't using GCC.
11267 # If it is relative, then search for the first ld in PATH.
11268 with_gnu_ld=unknown
11271 elif test "$with_gnu_ld" = yes; then
11272 echo "$as_me:$LINENO: checking for GNU ld" >&5
11273 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11275 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11276 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11278 if test "${lt_cv_path_LD+set}" = set; then
11279 echo $ECHO_N "(cached) $ECHO_C" >&6
11281 if test -z "$LD"; then
11282 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11283 for ac_dir in $PATH; do
11285 test -z "$ac_dir" && ac_dir=.
11286 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11287 lt_cv_path_LD="$ac_dir/$ac_prog"
11288 # Check to see if the program is GNU ld. I'd rather use --version,
11289 # but apparently some variants of GNU ld only accept -v.
11290 # Break only if it was the GNU/non-GNU ld that we prefer.
11291 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11292 *GNU* | *'with BFD'*)
11293 test "$with_gnu_ld" != no && break
11296 test "$with_gnu_ld" != yes && break
11303 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11307 LD="$lt_cv_path_LD"
11308 if test -n "$LD"; then
11309 echo "$as_me:$LINENO: result: $LD" >&5
11310 echo "${ECHO_T}$LD" >&6
11312 echo "$as_me:$LINENO: result: no" >&5
11313 echo "${ECHO_T}no" >&6
11315 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11316 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11317 { (exit 1); exit 1; }; }
11318 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11319 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11320 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11321 echo $ECHO_N "(cached) $ECHO_C" >&6
11323 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11324 case `$LD -v 2>&1 </dev/null` in
11325 *GNU* | *'with BFD'*)
11326 lt_cv_prog_gnu_ld=yes
11329 lt_cv_prog_gnu_ld=no
11333 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11334 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
11335 with_gnu_ld=$lt_cv_prog_gnu_ld
11338 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
11339 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
11340 if test "${lt_cv_ld_reload_flag+set}" = set; then
11341 echo $ECHO_N "(cached) $ECHO_C" >&6
11343 lt_cv_ld_reload_flag='-r'
11345 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
11346 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
11347 reload_flag=$lt_cv_ld_reload_flag
11348 case $reload_flag in
11350 *) reload_flag=" $reload_flag" ;;
11352 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11355 if test "$GCC" = yes; then
11356 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11358 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11363 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
11364 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
11365 if test "${lt_cv_path_NM+set}" = set; then
11366 echo $ECHO_N "(cached) $ECHO_C" >&6
11368 if test -n "$NM"; then
11369 # Let the user override the test.
11370 lt_cv_path_NM="$NM"
11372 lt_nm_to_check="${ac_tool_prefix}nm"
11373 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11374 lt_nm_to_check="$lt_nm_to_check nm"
11376 for lt_tmp_nm in $lt_nm_to_check; do
11377 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11378 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11380 test -z "$ac_dir" && ac_dir=.
11381 tmp_nm="$ac_dir/$lt_tmp_nm"
11382 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11383 # Check to see if the nm accepts a BSD-compat flag.
11384 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11385 # nm: unknown option "B" ignored
11386 # Tru64's nm complains that /dev/null is an invalid object file
11387 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11388 */dev/null* | *'Invalid file or object type'*)
11389 lt_cv_path_NM="$tmp_nm -B"
11393 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11395 lt_cv_path_NM="$tmp_nm -p"
11399 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11400 continue # so that we can try to find one that supports BSD flags
11409 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
11412 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
11413 echo "${ECHO_T}$lt_cv_path_NM" >&6
11414 NM="$lt_cv_path_NM"
11416 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
11417 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
11418 if test "${lt_cv_deplibs_check_method+set}" = set; then
11419 echo $ECHO_N "(cached) $ECHO_C" >&6
11421 lt_cv_file_magic_cmd='$MAGIC_CMD'
11422 lt_cv_file_magic_test_file=
11423 lt_cv_deplibs_check_method='unknown'
11424 # Need to set the preceding variable on all platforms that support
11425 # interlibrary dependencies.
11426 # 'none' -- dependencies not supported.
11427 # `unknown' -- same as none, but documents that we really don't know.
11428 # 'pass_all' -- all dependencies passed with no checks.
11429 # 'test_compile' -- check by making test program.
11430 # 'file_magic [[regex]]' -- check by looking for files in library path
11431 # which responds to the $file_magic_cmd with a given extended regex.
11432 # If you have `file' or equivalent on your system and you're not sure
11433 # whether `pass_all' will *always* work, you probably want this one.
11437 lt_cv_deplibs_check_method=pass_all
11441 lt_cv_deplibs_check_method=pass_all
11445 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11446 lt_cv_file_magic_cmd='/usr/bin/file -L'
11447 lt_cv_file_magic_test_file=/shlib/libc.so
11451 # func_win32_libid is a shell function defined in ltmain.sh
11452 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11453 lt_cv_file_magic_cmd='func_win32_libid'
11457 # Base MSYS/MinGW do not provide the 'file' command needed by
11458 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
11459 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
11460 lt_cv_file_magic_cmd='$OBJDUMP -f'
11463 darwin* | rhapsody*)
11464 lt_cv_deplibs_check_method=pass_all
11467 freebsd* | kfreebsd*-gnu | dragonfly*)
11468 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
11471 # Not sure whether the presence of OpenBSD here was a mistake.
11472 # Let's accept both of them until this is cleared up.
11473 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11474 lt_cv_file_magic_cmd=/usr/bin/file
11475 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11479 lt_cv_deplibs_check_method=pass_all
11484 lt_cv_deplibs_check_method=pass_all
11487 hpux10.20* | hpux11*)
11488 lt_cv_file_magic_cmd=/usr/bin/file
11491 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11492 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11495 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]'
11496 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11499 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
11500 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11506 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11507 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11510 irix5* | irix6* | nonstopux*)
11512 *-32|*"-32 ") libmagic=32-bit;;
11513 *-n32|*"-n32 ") libmagic=N32;;
11514 *-64|*"-64 ") libmagic=64-bit;;
11515 *) libmagic=never-match;;
11517 lt_cv_deplibs_check_method=pass_all
11520 # This must be Linux ELF.
11522 lt_cv_deplibs_check_method=pass_all
11526 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
11527 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11529 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11534 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11535 lt_cv_file_magic_cmd=/usr/bin/file
11536 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11540 lt_cv_deplibs_check_method=unknown
11544 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11545 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11547 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11551 osf3* | osf4* | osf5*)
11552 lt_cv_deplibs_check_method=pass_all
11556 lt_cv_deplibs_check_method=pass_all
11560 case $host_vendor in
11562 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]'
11563 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11566 lt_cv_deplibs_check_method=pass_all
11569 lt_cv_file_magic_cmd='/bin/file'
11570 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11573 lt_cv_file_magic_cmd='/bin/file'
11574 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11575 lt_cv_file_magic_test_file=/lib/libc.so
11578 lt_cv_deplibs_check_method=pass_all
11581 lt_cv_deplibs_check_method=pass_all
11586 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11587 lt_cv_deplibs_check_method=pass_all
11592 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
11593 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
11594 file_magic_cmd=$lt_cv_file_magic_cmd
11595 deplibs_check_method=$lt_cv_deplibs_check_method
11596 test -z "$deplibs_check_method" && deplibs_check_method=unknown
11601 # If no C compiler was specified, use CC.
11604 # If no C compiler flags were specified, use CFLAGS.
11605 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11607 # Allow CC to be a program name with arguments.
11610 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11611 if test "${enable_libtool_lock+set}" = set; then
11612 enableval="$enable_libtool_lock"
11615 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11617 # Some flags need to be propagated to the compiler or linker for good
11621 # Find out which ABI we are using.
11622 echo 'int i;' > conftest.$ac_ext
11623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11624 (eval $ac_compile) 2>&5
11626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11627 (exit $ac_status); }; then
11628 case `/usr/bin/file conftest.$ac_objext` in
11630 HPUX_IA64_MODE="32"
11633 HPUX_IA64_MODE="64"
11640 # Find out which ABI we are using.
11641 echo '#line 11641 "configure"' > conftest.$ac_ext
11642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11643 (eval $ac_compile) 2>&5
11645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11646 (exit $ac_status); }; then
11647 if test "$lt_cv_prog_gnu_ld" = yes; then
11648 case `/usr/bin/file conftest.$ac_objext` in
11650 LD="${LD-ld} -melf32bsmip"
11653 LD="${LD-ld} -melf32bmipn32"
11656 LD="${LD-ld} -melf64bmip"
11660 case `/usr/bin/file conftest.$ac_objext` in
11676 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
11677 # Find out which ABI we are using.
11678 echo 'int i;' > conftest.$ac_ext
11679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11680 (eval $ac_compile) 2>&5
11682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11683 (exit $ac_status); }; then
11684 case `/usr/bin/file conftest.o` in
11688 LD="${LD-ld} -m elf_i386"
11690 ppc64-*linux*|powerpc64-*linux*)
11691 LD="${LD-ld} -m elf32ppclinux"
11694 LD="${LD-ld} -m elf_s390"
11697 LD="${LD-ld} -m elf32_sparc"
11704 LD="${LD-ld} -m elf_x86_64"
11706 ppc*-*linux*|powerpc*-*linux*)
11707 LD="${LD-ld} -m elf64ppc"
11710 LD="${LD-ld} -m elf64_s390"
11713 LD="${LD-ld} -m elf64_sparc"
11723 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11724 SAVE_CFLAGS="$CFLAGS"
11725 CFLAGS="$CFLAGS -belf"
11726 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
11727 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
11728 if test "${lt_cv_cc_needs_belf+set}" = set; then
11729 echo $ECHO_N "(cached) $ECHO_C" >&6
11732 ac_cpp='$CPP $CPPFLAGS'
11733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11737 cat >conftest.$ac_ext <<_ACEOF
11740 cat confdefs.h >>conftest.$ac_ext
11741 cat >>conftest.$ac_ext <<_ACEOF
11742 /* end confdefs.h. */
11752 rm -f conftest.$ac_objext conftest$ac_exeext
11753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11754 (eval $ac_link) 2>conftest.er1
11756 grep -v '^ *+' conftest.er1 >conftest.err
11758 cat conftest.err >&5
11759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11760 (exit $ac_status); } &&
11761 { ac_try='test -z "$ac_c_werror_flag"
11762 || test ! -s conftest.err'
11763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11764 (eval $ac_try) 2>&5
11766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11767 (exit $ac_status); }; } &&
11768 { ac_try='test -s conftest$ac_exeext'
11769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11770 (eval $ac_try) 2>&5
11772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11773 (exit $ac_status); }; }; then
11774 lt_cv_cc_needs_belf=yes
11776 echo "$as_me: failed program was:" >&5
11777 sed 's/^/| /' conftest.$ac_ext >&5
11779 lt_cv_cc_needs_belf=no
11781 rm -f conftest.err conftest.$ac_objext \
11782 conftest$ac_exeext conftest.$ac_ext
11784 ac_cpp='$CPP $CPPFLAGS'
11785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11790 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
11791 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
11792 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11793 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11794 CFLAGS="$SAVE_CFLAGS"
11798 # Find out which ABI we are using.
11799 echo 'int i;' > conftest.$ac_ext
11800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11801 (eval $ac_compile) 2>&5
11803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804 (exit $ac_status); }; then
11805 case `/usr/bin/file conftest.o` in
11807 case $lt_cv_prog_gnu_ld in
11808 yes*) LD="${LD-ld} -m elf64_sparc" ;;
11809 *) LD="${LD-ld} -64" ;;
11820 need_locks="$enable_libtool_lock"
11824 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11825 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11826 if test "${ac_cv_header_stdc+set}" = set; then
11827 echo $ECHO_N "(cached) $ECHO_C" >&6
11829 cat >conftest.$ac_ext <<_ACEOF
11832 cat confdefs.h >>conftest.$ac_ext
11833 cat >>conftest.$ac_ext <<_ACEOF
11834 /* end confdefs.h. */
11835 #include <stdlib.h>
11836 #include <stdarg.h>
11837 #include <string.h>
11848 rm -f conftest.$ac_objext
11849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11850 (eval $ac_compile) 2>conftest.er1
11852 grep -v '^ *+' conftest.er1 >conftest.err
11854 cat conftest.err >&5
11855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11856 (exit $ac_status); } &&
11857 { ac_try='test -z "$ac_c_werror_flag"
11858 || test ! -s conftest.err'
11859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11860 (eval $ac_try) 2>&5
11862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11863 (exit $ac_status); }; } &&
11864 { ac_try='test -s conftest.$ac_objext'
11865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11866 (eval $ac_try) 2>&5
11868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11869 (exit $ac_status); }; }; then
11870 ac_cv_header_stdc=yes
11872 echo "$as_me: failed program was:" >&5
11873 sed 's/^/| /' conftest.$ac_ext >&5
11875 ac_cv_header_stdc=no
11877 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11879 if test $ac_cv_header_stdc = yes; then
11880 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11881 cat >conftest.$ac_ext <<_ACEOF
11884 cat confdefs.h >>conftest.$ac_ext
11885 cat >>conftest.$ac_ext <<_ACEOF
11886 /* end confdefs.h. */
11887 #include <string.h>
11890 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11891 $EGREP "memchr" >/dev/null 2>&1; then
11894 ac_cv_header_stdc=no
11900 if test $ac_cv_header_stdc = yes; then
11901 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11902 cat >conftest.$ac_ext <<_ACEOF
11905 cat confdefs.h >>conftest.$ac_ext
11906 cat >>conftest.$ac_ext <<_ACEOF
11907 /* end confdefs.h. */
11908 #include <stdlib.h>
11911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11912 $EGREP "free" >/dev/null 2>&1; then
11915 ac_cv_header_stdc=no
11921 if test $ac_cv_header_stdc = yes; then
11922 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11923 if test "$cross_compiling" = yes; then
11926 cat >conftest.$ac_ext <<_ACEOF
11929 cat confdefs.h >>conftest.$ac_ext
11930 cat >>conftest.$ac_ext <<_ACEOF
11931 /* end confdefs.h. */
11933 #if ((' ' & 0x0FF) == 0x020)
11934 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11935 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11937 # define ISLOWER(c) \
11938 (('a' <= (c) && (c) <= 'i') \
11939 || ('j' <= (c) && (c) <= 'r') \
11940 || ('s' <= (c) && (c) <= 'z'))
11941 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11944 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11949 for (i = 0; i < 256; i++)
11950 if (XOR (islower (i), ISLOWER (i))
11951 || toupper (i) != TOUPPER (i))
11956 rm -f conftest$ac_exeext
11957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11958 (eval $ac_link) 2>&5
11960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11961 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11963 (eval $ac_try) 2>&5
11965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11966 (exit $ac_status); }; }; then
11969 echo "$as_me: program exited with status $ac_status" >&5
11970 echo "$as_me: failed program was:" >&5
11971 sed 's/^/| /' conftest.$ac_ext >&5
11973 ( exit $ac_status )
11974 ac_cv_header_stdc=no
11976 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11980 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11981 echo "${ECHO_T}$ac_cv_header_stdc" >&6
11982 if test $ac_cv_header_stdc = yes; then
11984 cat >>confdefs.h <<\_ACEOF
11985 #define STDC_HEADERS 1
11990 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
12000 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
12001 inttypes.h stdint.h unistd.h
12003 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12004 echo "$as_me:$LINENO: checking for $ac_header" >&5
12005 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12006 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12007 echo $ECHO_N "(cached) $ECHO_C" >&6
12009 cat >conftest.$ac_ext <<_ACEOF
12012 cat confdefs.h >>conftest.$ac_ext
12013 cat >>conftest.$ac_ext <<_ACEOF
12014 /* end confdefs.h. */
12015 $ac_includes_default
12017 #include <$ac_header>
12019 rm -f conftest.$ac_objext
12020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12021 (eval $ac_compile) 2>conftest.er1
12023 grep -v '^ *+' conftest.er1 >conftest.err
12025 cat conftest.err >&5
12026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12027 (exit $ac_status); } &&
12028 { ac_try='test -z "$ac_c_werror_flag"
12029 || test ! -s conftest.err'
12030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12031 (eval $ac_try) 2>&5
12033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12034 (exit $ac_status); }; } &&
12035 { ac_try='test -s conftest.$ac_objext'
12036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12037 (eval $ac_try) 2>&5
12039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040 (exit $ac_status); }; }; then
12041 eval "$as_ac_Header=yes"
12043 echo "$as_me: failed program was:" >&5
12044 sed 's/^/| /' conftest.$ac_ext >&5
12046 eval "$as_ac_Header=no"
12048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12050 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12051 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12052 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12053 cat >>confdefs.h <<_ACEOF
12054 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12063 for ac_header in dlfcn.h
12065 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12066 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12067 echo "$as_me:$LINENO: checking for $ac_header" >&5
12068 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12069 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12070 echo $ECHO_N "(cached) $ECHO_C" >&6
12072 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12073 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12075 # Is the header compilable?
12076 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12077 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12078 cat >conftest.$ac_ext <<_ACEOF
12081 cat confdefs.h >>conftest.$ac_ext
12082 cat >>conftest.$ac_ext <<_ACEOF
12083 /* end confdefs.h. */
12084 $ac_includes_default
12085 #include <$ac_header>
12087 rm -f conftest.$ac_objext
12088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12089 (eval $ac_compile) 2>conftest.er1
12091 grep -v '^ *+' conftest.er1 >conftest.err
12093 cat conftest.err >&5
12094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12095 (exit $ac_status); } &&
12096 { ac_try='test -z "$ac_c_werror_flag"
12097 || test ! -s conftest.err'
12098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12099 (eval $ac_try) 2>&5
12101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12102 (exit $ac_status); }; } &&
12103 { ac_try='test -s conftest.$ac_objext'
12104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12105 (eval $ac_try) 2>&5
12107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12108 (exit $ac_status); }; }; then
12109 ac_header_compiler=yes
12111 echo "$as_me: failed program was:" >&5
12112 sed 's/^/| /' conftest.$ac_ext >&5
12114 ac_header_compiler=no
12116 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12117 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12118 echo "${ECHO_T}$ac_header_compiler" >&6
12120 # Is the header present?
12121 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12122 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12123 cat >conftest.$ac_ext <<_ACEOF
12126 cat confdefs.h >>conftest.$ac_ext
12127 cat >>conftest.$ac_ext <<_ACEOF
12128 /* end confdefs.h. */
12129 #include <$ac_header>
12131 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12132 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12134 grep -v '^ *+' conftest.er1 >conftest.err
12136 cat conftest.err >&5
12137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12138 (exit $ac_status); } >/dev/null; then
12139 if test -s conftest.err; then
12140 ac_cpp_err=$ac_c_preproc_warn_flag
12141 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12148 if test -z "$ac_cpp_err"; then
12149 ac_header_preproc=yes
12151 echo "$as_me: failed program was:" >&5
12152 sed 's/^/| /' conftest.$ac_ext >&5
12154 ac_header_preproc=no
12156 rm -f conftest.err conftest.$ac_ext
12157 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12158 echo "${ECHO_T}$ac_header_preproc" >&6
12160 # So? What about this header?
12161 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12163 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12164 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12165 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12166 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12167 ac_header_preproc=yes
12170 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12171 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12172 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12173 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12174 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12175 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12176 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12177 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12178 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12179 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12180 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12181 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12184 ## --------------------------------------------- ##
12185 ## Report this to vserver@list.linux-vserver.org ##
12186 ## --------------------------------------------- ##
12189 sed "s/^/$as_me: WARNING: /" >&2
12192 echo "$as_me:$LINENO: checking for $ac_header" >&5
12193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12194 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12195 echo $ECHO_N "(cached) $ECHO_C" >&6
12197 eval "$as_ac_Header=\$ac_header_preproc"
12199 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12200 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12203 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12204 cat >>confdefs.h <<_ACEOF
12205 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12214 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12215 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12216 (test "X$CXX" != "Xg++"))) ; then
12218 ac_cpp='$CXXCPP $CPPFLAGS'
12219 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12220 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12221 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12222 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12223 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
12224 if test -z "$CXXCPP"; then
12225 if test "${ac_cv_prog_CXXCPP+set}" = set; then
12226 echo $ECHO_N "(cached) $ECHO_C" >&6
12228 # Double quotes because CXXCPP needs to be expanded
12229 for CXXCPP in "$CXX -E" "/lib/cpp"
12231 ac_preproc_ok=false
12232 for ac_cxx_preproc_warn_flag in '' yes
12234 # Use a header file that comes with gcc, so configuring glibc
12235 # with a fresh cross-compiler works.
12236 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12237 # <limits.h> exists even on freestanding compilers.
12238 # On the NeXT, cc -E runs the code through the compiler's parser,
12239 # not just through cpp. "Syntax error" is here to catch this case.
12240 cat >conftest.$ac_ext <<_ACEOF
12243 cat confdefs.h >>conftest.$ac_ext
12244 cat >>conftest.$ac_ext <<_ACEOF
12245 /* end confdefs.h. */
12247 # include <limits.h>
12249 # include <assert.h>
12253 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12254 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12256 grep -v '^ *+' conftest.er1 >conftest.err
12258 cat conftest.err >&5
12259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12260 (exit $ac_status); } >/dev/null; then
12261 if test -s conftest.err; then
12262 ac_cpp_err=$ac_cxx_preproc_warn_flag
12263 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12270 if test -z "$ac_cpp_err"; then
12273 echo "$as_me: failed program was:" >&5
12274 sed 's/^/| /' conftest.$ac_ext >&5
12276 # Broken: fails on valid input.
12279 rm -f conftest.err conftest.$ac_ext
12281 # OK, works on sane cases. Now check whether non-existent headers
12282 # can be detected and how.
12283 cat >conftest.$ac_ext <<_ACEOF
12286 cat confdefs.h >>conftest.$ac_ext
12287 cat >>conftest.$ac_ext <<_ACEOF
12288 /* end confdefs.h. */
12289 #include <ac_nonexistent.h>
12291 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12292 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12294 grep -v '^ *+' conftest.er1 >conftest.err
12296 cat conftest.err >&5
12297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298 (exit $ac_status); } >/dev/null; then
12299 if test -s conftest.err; then
12300 ac_cpp_err=$ac_cxx_preproc_warn_flag
12301 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12308 if test -z "$ac_cpp_err"; then
12309 # Broken: success on invalid input.
12312 echo "$as_me: failed program was:" >&5
12313 sed 's/^/| /' conftest.$ac_ext >&5
12315 # Passes both tests.
12319 rm -f conftest.err conftest.$ac_ext
12322 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12323 rm -f conftest.err conftest.$ac_ext
12324 if $ac_preproc_ok; then
12329 ac_cv_prog_CXXCPP=$CXXCPP
12332 CXXCPP=$ac_cv_prog_CXXCPP
12334 ac_cv_prog_CXXCPP=$CXXCPP
12336 echo "$as_me:$LINENO: result: $CXXCPP" >&5
12337 echo "${ECHO_T}$CXXCPP" >&6
12338 ac_preproc_ok=false
12339 for ac_cxx_preproc_warn_flag in '' yes
12341 # Use a header file that comes with gcc, so configuring glibc
12342 # with a fresh cross-compiler works.
12343 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12344 # <limits.h> exists even on freestanding compilers.
12345 # On the NeXT, cc -E runs the code through the compiler's parser,
12346 # not just through cpp. "Syntax error" is here to catch this case.
12347 cat >conftest.$ac_ext <<_ACEOF
12350 cat confdefs.h >>conftest.$ac_ext
12351 cat >>conftest.$ac_ext <<_ACEOF
12352 /* end confdefs.h. */
12354 # include <limits.h>
12356 # include <assert.h>
12360 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12361 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12363 grep -v '^ *+' conftest.er1 >conftest.err
12365 cat conftest.err >&5
12366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367 (exit $ac_status); } >/dev/null; then
12368 if test -s conftest.err; then
12369 ac_cpp_err=$ac_cxx_preproc_warn_flag
12370 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12377 if test -z "$ac_cpp_err"; then
12380 echo "$as_me: failed program was:" >&5
12381 sed 's/^/| /' conftest.$ac_ext >&5
12383 # Broken: fails on valid input.
12386 rm -f conftest.err conftest.$ac_ext
12388 # OK, works on sane cases. Now check whether non-existent headers
12389 # can be detected and how.
12390 cat >conftest.$ac_ext <<_ACEOF
12393 cat confdefs.h >>conftest.$ac_ext
12394 cat >>conftest.$ac_ext <<_ACEOF
12395 /* end confdefs.h. */
12396 #include <ac_nonexistent.h>
12398 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12399 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12401 grep -v '^ *+' conftest.er1 >conftest.err
12403 cat conftest.err >&5
12404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12405 (exit $ac_status); } >/dev/null; then
12406 if test -s conftest.err; then
12407 ac_cpp_err=$ac_cxx_preproc_warn_flag
12408 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12415 if test -z "$ac_cpp_err"; then
12416 # Broken: success on invalid input.
12419 echo "$as_me: failed program was:" >&5
12420 sed 's/^/| /' conftest.$ac_ext >&5
12422 # Passes both tests.
12426 rm -f conftest.err conftest.$ac_ext
12429 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12430 rm -f conftest.err conftest.$ac_ext
12431 if $ac_preproc_ok; then
12434 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12435 See \`config.log' for more details." >&5
12436 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12437 See \`config.log' for more details." >&2;}
12438 { (exit 1); exit 1; }; }
12442 ac_cpp='$CXXCPP $CPPFLAGS'
12443 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12444 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12445 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12450 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12451 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12452 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12453 if test -n "$ac_tool_prefix"; then
12454 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
12456 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12457 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12458 echo "$as_me:$LINENO: checking for $ac_word" >&5
12459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12460 if test "${ac_cv_prog_F77+set}" = set; then
12461 echo $ECHO_N "(cached) $ECHO_C" >&6
12463 if test -n "$F77"; then
12464 ac_cv_prog_F77="$F77" # Let the user override the test.
12466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12467 for as_dir in $PATH
12470 test -z "$as_dir" && as_dir=.
12471 for ac_exec_ext in '' $ac_executable_extensions; do
12472 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12473 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
12474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12482 F77=$ac_cv_prog_F77
12483 if test -n "$F77"; then
12484 echo "$as_me:$LINENO: result: $F77" >&5
12485 echo "${ECHO_T}$F77" >&6
12487 echo "$as_me:$LINENO: result: no" >&5
12488 echo "${ECHO_T}no" >&6
12491 test -n "$F77" && break
12494 if test -z "$F77"; then
12496 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
12498 # Extract the first word of "$ac_prog", so it can be a program name with args.
12499 set dummy $ac_prog; ac_word=$2
12500 echo "$as_me:$LINENO: checking for $ac_word" >&5
12501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12502 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
12503 echo $ECHO_N "(cached) $ECHO_C" >&6
12505 if test -n "$ac_ct_F77"; then
12506 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
12508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12509 for as_dir in $PATH
12512 test -z "$as_dir" && as_dir=.
12513 for ac_exec_ext in '' $ac_executable_extensions; do
12514 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12515 ac_cv_prog_ac_ct_F77="$ac_prog"
12516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12524 ac_ct_F77=$ac_cv_prog_ac_ct_F77
12525 if test -n "$ac_ct_F77"; then
12526 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
12527 echo "${ECHO_T}$ac_ct_F77" >&6
12529 echo "$as_me:$LINENO: result: no" >&5
12530 echo "${ECHO_T}no" >&6
12533 test -n "$ac_ct_F77" && break
12540 # Provide some information about the compiler.
12541 echo "$as_me:12541:" \
12542 "checking for Fortran 77 compiler version" >&5
12543 ac_compiler=`set X $ac_compile; echo $2`
12544 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12545 (eval $ac_compiler --version </dev/null >&5) 2>&5
12547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548 (exit $ac_status); }
12549 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12550 (eval $ac_compiler -v </dev/null >&5) 2>&5
12552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12553 (exit $ac_status); }
12554 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12555 (eval $ac_compiler -V </dev/null >&5) 2>&5
12557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12558 (exit $ac_status); }
12561 # If we don't use `.F' as extension, the preprocessor is not run on the
12562 # input file. (Note that this only needs to work for GNU compilers.)
12563 ac_save_ext=$ac_ext
12565 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
12566 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
12567 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
12568 echo $ECHO_N "(cached) $ECHO_C" >&6
12570 cat >conftest.$ac_ext <<_ACEOF
12578 rm -f conftest.$ac_objext
12579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12580 (eval $ac_compile) 2>conftest.er1
12582 grep -v '^ *+' conftest.er1 >conftest.err
12584 cat conftest.err >&5
12585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12586 (exit $ac_status); } &&
12587 { ac_try='test -z "$ac_f77_werror_flag"
12588 || test ! -s conftest.err'
12589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12590 (eval $ac_try) 2>&5
12592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12593 (exit $ac_status); }; } &&
12594 { ac_try='test -s conftest.$ac_objext'
12595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12596 (eval $ac_try) 2>&5
12598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12599 (exit $ac_status); }; }; then
12600 ac_compiler_gnu=yes
12602 echo "$as_me: failed program was:" >&5
12603 sed 's/^/| /' conftest.$ac_ext >&5
12607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12608 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
12611 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
12612 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
12613 ac_ext=$ac_save_ext
12614 ac_test_FFLAGS=${FFLAGS+set}
12615 ac_save_FFLAGS=$FFLAGS
12617 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
12618 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
12619 if test "${ac_cv_prog_f77_g+set}" = set; then
12620 echo $ECHO_N "(cached) $ECHO_C" >&6
12623 cat >conftest.$ac_ext <<_ACEOF
12628 rm -f conftest.$ac_objext
12629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12630 (eval $ac_compile) 2>conftest.er1
12632 grep -v '^ *+' conftest.er1 >conftest.err
12634 cat conftest.err >&5
12635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12636 (exit $ac_status); } &&
12637 { ac_try='test -z "$ac_f77_werror_flag"
12638 || test ! -s conftest.err'
12639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12640 (eval $ac_try) 2>&5
12642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12643 (exit $ac_status); }; } &&
12644 { ac_try='test -s conftest.$ac_objext'
12645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12646 (eval $ac_try) 2>&5
12648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12649 (exit $ac_status); }; }; then
12650 ac_cv_prog_f77_g=yes
12652 echo "$as_me: failed program was:" >&5
12653 sed 's/^/| /' conftest.$ac_ext >&5
12655 ac_cv_prog_f77_g=no
12657 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12660 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
12661 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
12662 if test "$ac_test_FFLAGS" = set; then
12663 FFLAGS=$ac_save_FFLAGS
12664 elif test $ac_cv_prog_f77_g = yes; then
12665 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
12671 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
12678 G77=`test $ac_compiler_gnu = yes && echo yes`
12680 ac_cpp='$CPP $CPPFLAGS'
12681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12687 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
12689 # find the maximum length of command line arguments
12690 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
12691 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
12692 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
12693 echo $ECHO_N "(cached) $ECHO_C" >&6
12700 # On DJGPP, this test can blow up pretty badly due to problems in libc
12701 # (any single argument exceeding 2000 bytes causes a buffer overrun
12702 # during glob expansion). Even if it were fixed, the result of this
12703 # check would be larger than it should be.
12704 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12708 # Under GNU Hurd, this test is not required because there is
12709 # no limit to the length of command line arguments.
12710 # Libtool will interpret -1 as no limit whatsoever
12711 lt_cv_sys_max_cmd_len=-1;
12715 # On Win9x/ME, this test blows up -- it succeeds, but takes
12716 # about 5 minutes as the teststring grows exponentially.
12717 # Worse, since 9x/ME are not pre-emptively multitasking,
12718 # you end up with a "frozen" computer, even though with patience
12719 # the test eventually succeeds (with a max line length of 256k).
12720 # Instead, let's just punt: use the minimum linelength reported by
12721 # all of the supported platforms: 8192 (on NT/2K/XP).
12722 lt_cv_sys_max_cmd_len=8192;
12726 # On AmigaOS with pdksh, this test takes hours, literally.
12727 # So we just punt and use a minimum line length of 8192.
12728 lt_cv_sys_max_cmd_len=8192;
12731 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12732 # This has been around since 386BSD, at least. Likely further.
12733 if test -x /sbin/sysctl; then
12734 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12735 elif test -x /usr/sbin/sysctl; then
12736 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12738 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12740 # And add a safety zone
12741 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12742 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12746 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12747 lt_cv_sys_max_cmd_len=196608
12751 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12752 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12753 # nice to cause kernel panics so lets avoid the loop below.
12754 # First set a reasonable default.
12755 lt_cv_sys_max_cmd_len=16384
12757 if test -x /sbin/sysconfig; then
12758 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12759 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12764 lt_cv_sys_max_cmd_len=102400
12766 sysv5* | sco5v6* | sysv4.2uw2*)
12767 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12768 if test -n "$kargmax"; then
12769 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12771 lt_cv_sys_max_cmd_len=32768
12775 # If test is not a shell built-in, we'll probably end up computing a
12776 # maximum length that is only half of the actual maximum length, but
12778 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12779 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
12780 = "XX$teststring") >/dev/null 2>&1 &&
12781 new_result=`expr "X$teststring" : ".*" 2>&1` &&
12782 lt_cv_sys_max_cmd_len=$new_result &&
12783 test $i != 17 # 1/2 MB should be enough
12786 teststring=$teststring$teststring
12789 # Add a significant safety factor because C++ compilers can tack on massive
12790 # amounts of additional arguments before passing them to the linker.
12791 # It appears as though 1/2 is a usable value.
12792 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12798 if test -n $lt_cv_sys_max_cmd_len ; then
12799 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
12800 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
12802 echo "$as_me:$LINENO: result: none" >&5
12803 echo "${ECHO_T}none" >&6
12809 # Check for command to grab the raw symbol name followed by C symbol from nm.
12810 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
12811 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
12812 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
12813 echo $ECHO_N "(cached) $ECHO_C" >&6
12816 # These are sane defaults that work on at least a few old systems.
12817 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
12819 # Character class describing NM global symbol codes.
12820 symcode='[BCDEGRST]'
12822 # Regexp to match symbols that can be accessed directly from C.
12823 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12825 # Transform an extracted symbol line into a proper C declaration
12826 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
12828 # Transform an extracted symbol line into symbol name and symbol address
12829 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'"
12831 # Define system-specific variables.
12836 cygwin* | mingw* | pw32*)
12837 symcode='[ABCDGISTW]'
12839 hpux*) # Its linker distinguishes data from code symbols
12840 if test "$host_cpu" = ia64; then
12841 symcode='[ABCDEGRST]'
12843 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12844 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'"
12847 if test "$host_cpu" = ia64; then
12848 symcode='[ABCDGIRSTW]'
12849 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12850 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'"
12853 irix* | nonstopux*)
12854 symcode='[BCDEGRST]'
12857 symcode='[BCDEGQRST]'
12868 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12876 # Handle CRLF in mingw tool chain
12880 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12884 # If we're using GNU nm, then use its standard symbol codes.
12885 case `$NM -V 2>&1` in
12886 *GNU* | *'with BFD'*)
12887 symcode='[ABCDGIRSTW]' ;;
12890 # Try without a prefix undercore, then with it.
12891 for ac_symprfx in "" "_"; do
12893 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12894 symxfrm="\\1 $ac_symprfx\\2 \\2"
12896 # Write the raw and C identifiers.
12897 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12899 # Check to see that the pipe works correctly.
12903 cat > conftest.$ac_ext <<EOF
12908 void nm_test_func(){}
12912 int main(){nm_test_var='a';nm_test_func();return(0);}
12915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12916 (eval $ac_compile) 2>&5
12918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12919 (exit $ac_status); }; then
12920 # Now try to grab the symbols.
12922 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
12923 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
12925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12926 (exit $ac_status); } && test -s "$nlist"; then
12927 # Try sorting and uniquifying the output.
12928 if sort "$nlist" | uniq > "$nlist"T; then
12929 mv -f "$nlist"T "$nlist"
12934 # Make sure that we snagged all the symbols we need.
12935 if grep ' nm_test_var$' "$nlist" >/dev/null; then
12936 if grep ' nm_test_func$' "$nlist" >/dev/null; then
12937 cat <<EOF > conftest.$ac_ext
12943 # Now generate the symbol file.
12944 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
12946 cat <<EOF >> conftest.$ac_ext
12947 #if defined (__STDC__) && __STDC__
12948 # define lt_ptr_t void *
12950 # define lt_ptr_t char *
12954 /* The mapping between symbol names and symbols. */
12959 lt_preloaded_symbols[] =
12962 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
12963 cat <<\EOF >> conftest.$ac_ext
12971 # Now try linking the two files.
12972 mv conftest.$ac_objext conftstm.$ac_objext
12973 lt_save_LIBS="$LIBS"
12974 lt_save_CFLAGS="$CFLAGS"
12975 LIBS="conftstm.$ac_objext"
12976 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12978 (eval $ac_link) 2>&5
12980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12981 (exit $ac_status); } && test -s conftest${ac_exeext}; then
12984 LIBS="$lt_save_LIBS"
12985 CFLAGS="$lt_save_CFLAGS"
12987 echo "cannot find nm_test_func in $nlist" >&5
12990 echo "cannot find nm_test_var in $nlist" >&5
12993 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12996 echo "$progname: failed program was:" >&5
12997 cat conftest.$ac_ext >&5
12999 rm -f conftest* conftst*
13001 # Do not use the global_symbol_pipe unless it works.
13002 if test "$pipe_works" = yes; then
13005 lt_cv_sys_global_symbol_pipe=
13011 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13012 lt_cv_sys_global_symbol_to_cdecl=
13014 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13015 echo "$as_me:$LINENO: result: failed" >&5
13016 echo "${ECHO_T}failed" >&6
13018 echo "$as_me:$LINENO: result: ok" >&5
13019 echo "${ECHO_T}ok" >&6
13022 echo "$as_me:$LINENO: checking for objdir" >&5
13023 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
13024 if test "${lt_cv_objdir+set}" = set; then
13025 echo $ECHO_N "(cached) $ECHO_C" >&6
13027 rm -f .libs 2>/dev/null
13028 mkdir .libs 2>/dev/null
13029 if test -d .libs; then
13032 # MS-DOS does not allow filenames that begin with a dot.
13035 rmdir .libs 2>/dev/null
13037 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13038 echo "${ECHO_T}$lt_cv_objdir" >&6
13039 objdir=$lt_cv_objdir
13047 # AIX sometimes has problems with the GCC collect2 program. For some
13048 # reason, if we set the COLLECT_NAMES environment variable, the problems
13049 # vanish in a puff of smoke.
13050 if test "X${COLLECT_NAMES+set}" != Xset; then
13052 export COLLECT_NAMES
13057 # Sed substitution that helps us do robust quoting. It backslashifies
13058 # metacharacters that are still active within double-quoted strings.
13059 Xsed='sed -e 1s/^X//'
13060 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13062 # Same as above, but do not quote variable references.
13063 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13065 # Sed substitution to delay expansion of an escaped shell variable in a
13066 # double_quote_subst'ed string.
13067 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13069 # Sed substitution to avoid accidental globbing in evaled expressions
13070 no_glob_subst='s/\*/\\\*/g'
13075 # Global variables:
13076 default_ofile=libtool
13077 can_build_shared=yes
13079 # All known linkers require a `.a' archive for static linking (except MSVC,
13080 # which needs '.lib').
13082 ltmain="$ac_aux_dir/ltmain.sh"
13083 ofile="$default_ofile"
13084 with_gnu_ld="$lt_cv_prog_gnu_ld"
13086 if test -n "$ac_tool_prefix"; then
13087 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13088 set dummy ${ac_tool_prefix}ar; ac_word=$2
13089 echo "$as_me:$LINENO: checking for $ac_word" >&5
13090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13091 if test "${ac_cv_prog_AR+set}" = set; then
13092 echo $ECHO_N "(cached) $ECHO_C" >&6
13094 if test -n "$AR"; then
13095 ac_cv_prog_AR="$AR" # Let the user override the test.
13097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13098 for as_dir in $PATH
13101 test -z "$as_dir" && as_dir=.
13102 for ac_exec_ext in '' $ac_executable_extensions; do
13103 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13104 ac_cv_prog_AR="${ac_tool_prefix}ar"
13105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13114 if test -n "$AR"; then
13115 echo "$as_me:$LINENO: result: $AR" >&5
13116 echo "${ECHO_T}$AR" >&6
13118 echo "$as_me:$LINENO: result: no" >&5
13119 echo "${ECHO_T}no" >&6
13123 if test -z "$ac_cv_prog_AR"; then
13125 # Extract the first word of "ar", so it can be a program name with args.
13126 set dummy ar; ac_word=$2
13127 echo "$as_me:$LINENO: checking for $ac_word" >&5
13128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13129 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13130 echo $ECHO_N "(cached) $ECHO_C" >&6
13132 if test -n "$ac_ct_AR"; then
13133 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13136 for as_dir in $PATH
13139 test -z "$as_dir" && as_dir=.
13140 for ac_exec_ext in '' $ac_executable_extensions; do
13141 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13142 ac_cv_prog_ac_ct_AR="ar"
13143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13149 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
13152 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13153 if test -n "$ac_ct_AR"; then
13154 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13155 echo "${ECHO_T}$ac_ct_AR" >&6
13157 echo "$as_me:$LINENO: result: no" >&5
13158 echo "${ECHO_T}no" >&6
13163 AR="$ac_cv_prog_AR"
13166 if test -n "$ac_tool_prefix"; then
13167 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13168 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13169 echo "$as_me:$LINENO: checking for $ac_word" >&5
13170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13171 if test "${ac_cv_prog_RANLIB+set}" = set; then
13172 echo $ECHO_N "(cached) $ECHO_C" >&6
13174 if test -n "$RANLIB"; then
13175 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13178 for as_dir in $PATH
13181 test -z "$as_dir" && as_dir=.
13182 for ac_exec_ext in '' $ac_executable_extensions; do
13183 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13184 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13193 RANLIB=$ac_cv_prog_RANLIB
13194 if test -n "$RANLIB"; then
13195 echo "$as_me:$LINENO: result: $RANLIB" >&5
13196 echo "${ECHO_T}$RANLIB" >&6
13198 echo "$as_me:$LINENO: result: no" >&5
13199 echo "${ECHO_T}no" >&6
13203 if test -z "$ac_cv_prog_RANLIB"; then
13204 ac_ct_RANLIB=$RANLIB
13205 # Extract the first word of "ranlib", so it can be a program name with args.
13206 set dummy ranlib; ac_word=$2
13207 echo "$as_me:$LINENO: checking for $ac_word" >&5
13208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13209 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13210 echo $ECHO_N "(cached) $ECHO_C" >&6
13212 if test -n "$ac_ct_RANLIB"; then
13213 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13216 for as_dir in $PATH
13219 test -z "$as_dir" && as_dir=.
13220 for ac_exec_ext in '' $ac_executable_extensions; do
13221 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13222 ac_cv_prog_ac_ct_RANLIB="ranlib"
13223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13229 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
13232 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13233 if test -n "$ac_ct_RANLIB"; then
13234 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13235 echo "${ECHO_T}$ac_ct_RANLIB" >&6
13237 echo "$as_me:$LINENO: result: no" >&5
13238 echo "${ECHO_T}no" >&6
13241 RANLIB=$ac_ct_RANLIB
13243 RANLIB="$ac_cv_prog_RANLIB"
13246 if test -n "$ac_tool_prefix"; then
13247 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13248 set dummy ${ac_tool_prefix}strip; ac_word=$2
13249 echo "$as_me:$LINENO: checking for $ac_word" >&5
13250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13251 if test "${ac_cv_prog_STRIP+set}" = set; then
13252 echo $ECHO_N "(cached) $ECHO_C" >&6
13254 if test -n "$STRIP"; then
13255 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13258 for as_dir in $PATH
13261 test -z "$as_dir" && as_dir=.
13262 for ac_exec_ext in '' $ac_executable_extensions; do
13263 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13264 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13273 STRIP=$ac_cv_prog_STRIP
13274 if test -n "$STRIP"; then
13275 echo "$as_me:$LINENO: result: $STRIP" >&5
13276 echo "${ECHO_T}$STRIP" >&6
13278 echo "$as_me:$LINENO: result: no" >&5
13279 echo "${ECHO_T}no" >&6
13283 if test -z "$ac_cv_prog_STRIP"; then
13285 # Extract the first word of "strip", so it can be a program name with args.
13286 set dummy strip; ac_word=$2
13287 echo "$as_me:$LINENO: checking for $ac_word" >&5
13288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13289 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
13290 echo $ECHO_N "(cached) $ECHO_C" >&6
13292 if test -n "$ac_ct_STRIP"; then
13293 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13296 for as_dir in $PATH
13299 test -z "$as_dir" && as_dir=.
13300 for ac_exec_ext in '' $ac_executable_extensions; do
13301 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13302 ac_cv_prog_ac_ct_STRIP="strip"
13303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13309 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
13312 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13313 if test -n "$ac_ct_STRIP"; then
13314 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
13315 echo "${ECHO_T}$ac_ct_STRIP" >&6
13317 echo "$as_me:$LINENO: result: no" >&5
13318 echo "${ECHO_T}no" >&6
13323 STRIP="$ac_cv_prog_STRIP"
13328 old_CFLAGS="$CFLAGS"
13330 # Set sane defaults for various variables
13331 test -z "$AR" && AR=ar
13332 test -z "$AR_FLAGS" && AR_FLAGS=cru
13333 test -z "$AS" && AS=as
13334 test -z "$CC" && CC=cc
13335 test -z "$LTCC" && LTCC=$CC
13336 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13337 test -z "$DLLTOOL" && DLLTOOL=dlltool
13338 test -z "$LD" && LD=ld
13339 test -z "$LN_S" && LN_S="ln -s"
13340 test -z "$MAGIC_CMD" && MAGIC_CMD=file
13341 test -z "$NM" && NM=nm
13342 test -z "$SED" && SED=sed
13343 test -z "$OBJDUMP" && OBJDUMP=objdump
13344 test -z "$RANLIB" && RANLIB=:
13345 test -z "$STRIP" && STRIP=:
13346 test -z "$ac_objext" && ac_objext=o
13348 # Determine commands to create old-style static archives.
13349 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
13350 old_postinstall_cmds='chmod 644 $oldlib'
13351 old_postuninstall_cmds=
13353 if test -n "$RANLIB"; then
13356 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13359 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13362 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13365 for cc_temp in $compiler""; do
13367 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13368 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13373 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13376 # Only perform the check for file, if the check method requires it
13377 case $deplibs_check_method in
13379 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13380 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
13381 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
13382 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13383 echo $ECHO_N "(cached) $ECHO_C" >&6
13387 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13390 lt_save_MAGIC_CMD="$MAGIC_CMD"
13391 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13392 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13393 for ac_dir in $ac_dummy; do
13395 test -z "$ac_dir" && ac_dir=.
13396 if test -f $ac_dir/${ac_tool_prefix}file; then
13397 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13398 if test -n "$file_magic_test_file"; then
13399 case $deplibs_check_method in
13401 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13402 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13403 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13404 $EGREP "$file_magic_regex" > /dev/null; then
13409 *** Warning: the command libtool uses to detect shared libraries,
13410 *** $file_magic_cmd, produces output that libtool cannot recognize.
13411 *** The result is that libtool may fail to recognize shared libraries
13412 *** as such. This will affect the creation of libtool libraries that
13413 *** depend on shared libraries, but programs linked with such libtool
13414 *** libraries will work regardless of this problem. Nevertheless, you
13415 *** may want to report the problem to your system manager and/or to
13416 *** bug-libtool@gnu.org
13426 MAGIC_CMD="$lt_save_MAGIC_CMD"
13431 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13432 if test -n "$MAGIC_CMD"; then
13433 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
13434 echo "${ECHO_T}$MAGIC_CMD" >&6
13436 echo "$as_me:$LINENO: result: no" >&5
13437 echo "${ECHO_T}no" >&6
13440 if test -z "$lt_cv_path_MAGIC_CMD"; then
13441 if test -n "$ac_tool_prefix"; then
13442 echo "$as_me:$LINENO: checking for file" >&5
13443 echo $ECHO_N "checking for file... $ECHO_C" >&6
13444 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13445 echo $ECHO_N "(cached) $ECHO_C" >&6
13449 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13452 lt_save_MAGIC_CMD="$MAGIC_CMD"
13453 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13454 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13455 for ac_dir in $ac_dummy; do
13457 test -z "$ac_dir" && ac_dir=.
13458 if test -f $ac_dir/file; then
13459 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13460 if test -n "$file_magic_test_file"; then
13461 case $deplibs_check_method in
13463 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13464 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13465 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13466 $EGREP "$file_magic_regex" > /dev/null; then
13471 *** Warning: the command libtool uses to detect shared libraries,
13472 *** $file_magic_cmd, produces output that libtool cannot recognize.
13473 *** The result is that libtool may fail to recognize shared libraries
13474 *** as such. This will affect the creation of libtool libraries that
13475 *** depend on shared libraries, but programs linked with such libtool
13476 *** libraries will work regardless of this problem. Nevertheless, you
13477 *** may want to report the problem to your system manager and/or to
13478 *** bug-libtool@gnu.org
13488 MAGIC_CMD="$lt_save_MAGIC_CMD"
13493 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13494 if test -n "$MAGIC_CMD"; then
13495 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
13496 echo "${ECHO_T}$MAGIC_CMD" >&6
13498 echo "$as_me:$LINENO: result: no" >&5
13499 echo "${ECHO_T}no" >&6
13512 enable_win32_dll=no
13514 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
13515 if test "${enable_libtool_lock+set}" = set; then
13516 enableval="$enable_libtool_lock"
13519 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13522 # Check whether --with-pic or --without-pic was given.
13523 if test "${with_pic+set}" = set; then
13524 withval="$with_pic"
13525 pic_mode="$withval"
13529 test -z "$pic_mode" && pic_mode=default
13531 # Use C for the default configuration in the libtool script
13535 ac_cpp='$CPP $CPPFLAGS'
13536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13541 # Source file extension for C test sources.
13544 # Object file extension for compiled C test sources.
13548 # Code to be used in simple compile tests
13549 lt_simple_compile_test_code="int some_variable = 0;\n"
13551 # Code to be used in simple link tests
13552 lt_simple_link_test_code='int main(){return(0);}\n'
13555 # If no C compiler was specified, use CC.
13558 # If no C compiler flags were specified, use CFLAGS.
13559 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13561 # Allow CC to be a program name with arguments.
13565 # save warnings/boilerplate of simple test code
13566 ac_outfile=conftest.$ac_objext
13567 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13568 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13569 _lt_compiler_boilerplate=`cat conftest.err`
13572 ac_outfile=conftest.$ac_objext
13573 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13574 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13575 _lt_linker_boilerplate=`cat conftest.err`
13580 lt_prog_compiler_no_builtin_flag=
13582 if test "$GCC" = yes; then
13583 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
13586 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13587 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
13588 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
13589 echo $ECHO_N "(cached) $ECHO_C" >&6
13591 lt_cv_prog_compiler_rtti_exceptions=no
13592 ac_outfile=conftest.$ac_objext
13593 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13594 lt_compiler_flag="-fno-rtti -fno-exceptions"
13595 # Insert the option either (1) after the last *FLAGS variable, or
13596 # (2) before a word containing "conftest.", or (3) at the end.
13597 # Note that $ac_compile itself does not contain backslashes and begins
13598 # with a dollar sign (not a hyphen), so the echo should work correctly.
13599 # The option is referenced via a variable to avoid confusing sed.
13600 lt_compile=`echo "$ac_compile" | $SED \
13601 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13602 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13603 -e 's:$: $lt_compiler_flag:'`
13604 (eval echo "\"\$as_me:13604: $lt_compile\"" >&5)
13605 (eval "$lt_compile" 2>conftest.err)
13607 cat conftest.err >&5
13608 echo "$as_me:13608: \$? = $ac_status" >&5
13609 if (exit $ac_status) && test -s "$ac_outfile"; then
13610 # The compiler can only warn and ignore the option if not recognized
13611 # So say no if there are warnings other than the usual output.
13612 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13613 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13614 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13615 lt_cv_prog_compiler_rtti_exceptions=yes
13621 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13622 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
13624 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13625 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13632 lt_prog_compiler_wl=
13633 lt_prog_compiler_pic=
13634 lt_prog_compiler_static=
13636 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13637 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13639 if test "$GCC" = yes; then
13640 lt_prog_compiler_wl='-Wl,'
13641 lt_prog_compiler_static='-static'
13645 # All AIX code is PIC.
13646 if test "$host_cpu" = ia64; then
13647 # AIX 5 now supports IA64 processor
13648 lt_prog_compiler_static='-Bstatic'
13653 # FIXME: we need at least 68020 code to build shared libraries, but
13654 # adding the `-m68020' flag to GCC prevents building anything better,
13656 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13659 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13660 # PIC is the default for these OSes.
13663 mingw* | pw32* | os2*)
13664 # This hack is so that the source file can tell whether it is being
13665 # built for inclusion in a dll (and should export symbols for example).
13666 lt_prog_compiler_pic='-DDLL_EXPORT'
13669 darwin* | rhapsody*)
13670 # PIC is the default on this platform
13671 # Common symbols not allowed in MH_DYLIB files
13672 lt_prog_compiler_pic='-fno-common'
13676 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13677 # Instead, we relocate shared libraries at runtime.
13681 # Just because we use GCC doesn't mean we suddenly get shared libraries
13682 # on systems that don't support them.
13683 lt_prog_compiler_can_build_shared=no
13688 if test -d /usr/nec; then
13689 lt_prog_compiler_pic=-Kconform_pic
13694 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13695 # not for PA HP-UX.
13701 lt_prog_compiler_pic='-fPIC'
13707 lt_prog_compiler_pic='-fPIC'
13711 # PORTME Check for flag to pass linker flags through the system compiler.
13714 lt_prog_compiler_wl='-Wl,'
13715 if test "$host_cpu" = ia64; then
13716 # AIX 5 now supports IA64 processor
13717 lt_prog_compiler_static='-Bstatic'
13719 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13723 # PIC is the default on this platform
13724 # Common symbols not allowed in MH_DYLIB files
13725 case $cc_basename in
13727 lt_prog_compiler_pic='-qnocommon'
13728 lt_prog_compiler_wl='-Wl,'
13733 mingw* | pw32* | os2*)
13734 # This hack is so that the source file can tell whether it is being
13735 # built for inclusion in a dll (and should export symbols for example).
13736 lt_prog_compiler_pic='-DDLL_EXPORT'
13739 hpux9* | hpux10* | hpux11*)
13740 lt_prog_compiler_wl='-Wl,'
13741 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13742 # not for PA HP-UX.
13748 lt_prog_compiler_pic='+Z'
13751 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13752 lt_prog_compiler_static='${wl}-a ${wl}archive'
13755 irix5* | irix6* | nonstopux*)
13756 lt_prog_compiler_wl='-Wl,'
13757 # PIC (with -KPIC) is the default.
13758 lt_prog_compiler_static='-non_shared'
13762 lt_prog_compiler_pic='-KPIC'
13763 lt_prog_compiler_static='-Bstatic'
13767 case $cc_basename in
13769 lt_prog_compiler_wl='-Wl,'
13770 lt_prog_compiler_pic='-KPIC'
13771 lt_prog_compiler_static='-static'
13773 pgcc* | pgf77* | pgf90* | pgf95*)
13774 # Portland Group compilers (*not* the Pentium gcc compiler,
13775 # which looks to be a dead project)
13776 lt_prog_compiler_wl='-Wl,'
13777 lt_prog_compiler_pic='-fpic'
13778 lt_prog_compiler_static='-Bstatic'
13781 lt_prog_compiler_wl='-Wl,'
13782 # All Alpha code is PIC.
13783 lt_prog_compiler_static='-non_shared'
13788 osf3* | osf4* | osf5*)
13789 lt_prog_compiler_wl='-Wl,'
13790 # All OSF/1 code is PIC.
13791 lt_prog_compiler_static='-non_shared'
13795 lt_prog_compiler_pic='-KPIC'
13796 lt_prog_compiler_static='-Bstatic'
13797 case $cc_basename in
13798 f77* | f90* | f95*)
13799 lt_prog_compiler_wl='-Qoption ld ';;
13801 lt_prog_compiler_wl='-Wl,';;
13806 lt_prog_compiler_wl='-Qoption ld '
13807 lt_prog_compiler_pic='-PIC'
13808 lt_prog_compiler_static='-Bstatic'
13811 sysv4 | sysv4.2uw2* | sysv4.3*)
13812 lt_prog_compiler_wl='-Wl,'
13813 lt_prog_compiler_pic='-KPIC'
13814 lt_prog_compiler_static='-Bstatic'
13818 if test -d /usr/nec ;then
13819 lt_prog_compiler_pic='-Kconform_pic'
13820 lt_prog_compiler_static='-Bstatic'
13824 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13825 lt_prog_compiler_wl='-Wl,'
13826 lt_prog_compiler_pic='-KPIC'
13827 lt_prog_compiler_static='-Bstatic'
13831 lt_prog_compiler_wl='-Wl,'
13832 lt_prog_compiler_can_build_shared=no
13836 lt_prog_compiler_pic='-pic'
13837 lt_prog_compiler_static='-Bstatic'
13841 lt_prog_compiler_can_build_shared=no
13846 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
13847 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
13850 # Check to make sure the PIC flag actually works.
13852 if test -n "$lt_prog_compiler_pic"; then
13854 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13855 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
13856 if test "${lt_prog_compiler_pic_works+set}" = set; then
13857 echo $ECHO_N "(cached) $ECHO_C" >&6
13859 lt_prog_compiler_pic_works=no
13860 ac_outfile=conftest.$ac_objext
13861 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13862 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13863 # Insert the option either (1) after the last *FLAGS variable, or
13864 # (2) before a word containing "conftest.", or (3) at the end.
13865 # Note that $ac_compile itself does not contain backslashes and begins
13866 # with a dollar sign (not a hyphen), so the echo should work correctly.
13867 # The option is referenced via a variable to avoid confusing sed.
13868 lt_compile=`echo "$ac_compile" | $SED \
13869 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13870 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13871 -e 's:$: $lt_compiler_flag:'`
13872 (eval echo "\"\$as_me:13872: $lt_compile\"" >&5)
13873 (eval "$lt_compile" 2>conftest.err)
13875 cat conftest.err >&5
13876 echo "$as_me:13876: \$? = $ac_status" >&5
13877 if (exit $ac_status) && test -s "$ac_outfile"; then
13878 # The compiler can only warn and ignore the option if not recognized
13879 # So say no if there are warnings other than the usual output.
13880 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13881 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13882 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13883 lt_prog_compiler_pic_works=yes
13889 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
13890 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
13892 if test x"$lt_prog_compiler_pic_works" = xyes; then
13893 case $lt_prog_compiler_pic in
13895 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13898 lt_prog_compiler_pic=
13899 lt_prog_compiler_can_build_shared=no
13904 # For platforms which do not support PIC, -DPIC is meaningless:
13906 lt_prog_compiler_pic=
13909 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13914 # Check to make sure the static flag actually works.
13916 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13917 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13918 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13919 if test "${lt_prog_compiler_static_works+set}" = set; then
13920 echo $ECHO_N "(cached) $ECHO_C" >&6
13922 lt_prog_compiler_static_works=no
13923 save_LDFLAGS="$LDFLAGS"
13924 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13925 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13926 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13927 # The linker can only warn and ignore the option if not recognized
13928 # So say no if there are warnings
13929 if test -s conftest.err; then
13930 # Append any errors to the config.log.
13931 cat conftest.err 1>&5
13932 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13933 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13934 if diff conftest.exp conftest.er2 >/dev/null; then
13935 lt_prog_compiler_static_works=yes
13938 lt_prog_compiler_static_works=yes
13942 LDFLAGS="$save_LDFLAGS"
13945 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
13946 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
13948 if test x"$lt_prog_compiler_static_works" = xyes; then
13951 lt_prog_compiler_static=
13955 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13956 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13957 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
13958 echo $ECHO_N "(cached) $ECHO_C" >&6
13960 lt_cv_prog_compiler_c_o=no
13961 $rm -r conftest 2>/dev/null
13965 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13967 lt_compiler_flag="-o out/conftest2.$ac_objext"
13968 # Insert the option either (1) after the last *FLAGS variable, or
13969 # (2) before a word containing "conftest.", or (3) at the end.
13970 # Note that $ac_compile itself does not contain backslashes and begins
13971 # with a dollar sign (not a hyphen), so the echo should work correctly.
13972 lt_compile=`echo "$ac_compile" | $SED \
13973 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13974 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13975 -e 's:$: $lt_compiler_flag:'`
13976 (eval echo "\"\$as_me:13976: $lt_compile\"" >&5)
13977 (eval "$lt_compile" 2>out/conftest.err)
13979 cat out/conftest.err >&5
13980 echo "$as_me:13980: \$? = $ac_status" >&5
13981 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13983 # The compiler can only warn and ignore the option if not recognized
13984 # So say no if there are warnings
13985 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13986 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13987 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13988 lt_cv_prog_compiler_c_o=yes
13993 # SGI C++ compiler will create directory out/ii_files/ for
13994 # template instantiation
13995 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13996 $rm out/* && rmdir out
14002 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14003 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
14006 hard_links="nottested"
14007 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14008 # do not overwrite the value of need_locks provided by the user
14009 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14010 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14013 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14015 ln conftest.a conftest.b 2>&5 || hard_links=no
14016 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14017 echo "$as_me:$LINENO: result: $hard_links" >&5
14018 echo "${ECHO_T}$hard_links" >&6
14019 if test "$hard_links" = no; then
14020 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14021 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14028 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14029 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14032 allow_undefined_flag=
14033 enable_shared_with_static_runtimes=no
14035 archive_expsym_cmds=
14036 old_archive_From_new_cmds=
14037 old_archive_from_expsyms_cmds=
14038 export_dynamic_flag_spec=
14039 whole_archive_flag_spec=
14040 thread_safe_flag_spec=
14041 hardcode_libdir_flag_spec=
14042 hardcode_libdir_flag_spec_ld=
14043 hardcode_libdir_separator=
14045 hardcode_minus_L=no
14046 hardcode_shlibpath_var=unsupported
14047 link_all_deplibs=unknown
14048 hardcode_automatic=no
14050 module_expsym_cmds=
14051 always_export_symbols=no
14052 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14053 # include_expsyms should be a list of space-separated symbols to be *always*
14054 # included in the symbol list
14056 # exclude_expsyms can be an extended regexp of symbols to exclude
14057 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14058 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14059 # as well as any symbol that contains `d'.
14060 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14061 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14062 # platforms (ab)use it in PIC code, but their linkers get confused if
14063 # the symbol is explicitly referenced. Since portable code cannot
14064 # rely on this symbol name, it's probably fine to never include it in
14065 # preloaded symbol tables.
14066 extract_expsyms_cmds=
14067 # Just being paranoid about ensuring that cc_basename is set.
14068 for cc_temp in $compiler""; do
14070 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14071 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14076 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14079 cygwin* | mingw* | pw32*)
14080 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14081 # When not using gcc, we currently assume that we are using
14082 # Microsoft Visual C++.
14083 if test "$GCC" != yes; then
14088 # we just hope/assume this is gcc and not c89 (= MSVC++)
14097 if test "$with_gnu_ld" = yes; then
14098 # If archive_cmds runs LD, not CC, wlarc should be empty
14101 # Set some defaults for GNU ld with shared library support. These
14102 # are reset later if shared libraries are not supported. Putting them
14103 # here allows them to be overridden if necessary.
14104 runpath_var=LD_RUN_PATH
14105 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14106 export_dynamic_flag_spec='${wl}--export-dynamic'
14107 # ancient GNU ld didn't support --whole-archive et. al.
14108 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14109 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14111 whole_archive_flag_spec=
14113 supports_anon_versioning=no
14114 case `$LD -v 2>/dev/null` in
14115 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14116 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14117 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14118 *\ 2.11.*) ;; # other 2.11 versions
14119 *) supports_anon_versioning=yes ;;
14122 # See if GNU ld supports shared libraries.
14124 aix3* | aix4* | aix5*)
14125 # On AIX/PPC, the GNU linker is very broken
14126 if test "$host_cpu" != ia64; then
14130 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14131 *** to be unable to reliably create shared libraries on AIX.
14132 *** Therefore, libtool is disabling shared libraries support. If you
14133 *** really care for shared libraries, you may want to modify your PATH
14134 *** so that a non-GNU linker is found, and then restart.
14141 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)'
14142 hardcode_libdir_flag_spec='-L$libdir'
14143 hardcode_minus_L=yes
14145 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14146 # that the semantics of dynamic libraries on AmigaOS, at least up
14147 # to version 4, is to share data among multiple programs linked
14148 # with the same dynamic library. Since this doesn't match the
14149 # behavior of shared libraries on other platforms, we can't use
14155 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14156 allow_undefined_flag=unsupported
14157 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14158 # support --undefined. This deserves some investigation. FIXME
14159 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14165 cygwin* | mingw* | pw32*)
14166 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14167 # as there is no search path for DLLs.
14168 hardcode_libdir_flag_spec='-L$libdir'
14169 allow_undefined_flag=unsupported
14170 always_export_symbols=no
14171 enable_shared_with_static_runtimes=yes
14172 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14174 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14175 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14176 # If the export-symbols file already is a .def file (1st line
14177 # is EXPORTS), use it as is; otherwise, prepend...
14178 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14179 cp $export_symbols $output_objdir/$soname.def;
14181 echo EXPORTS > $output_objdir/$soname.def;
14182 cat $export_symbols >> $output_objdir/$soname.def;
14184 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14192 hardcode_shlibpath_var=no
14193 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14194 export_dynamic_flag_spec='${wl}-E'
14195 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14196 # Instead, shared libraries are loaded at an image base (0x10000000 by
14197 # default) and relocated if they conflict, which is a slow very memory
14198 # consuming and fragmenting process. To avoid this, we pick a random,
14199 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14200 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14201 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14202 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'
14206 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14208 case $cc_basename,$host_cpu in
14209 pgcc*) # Portland Group C compiler
14210 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'
14211 tmp_addflag=' $pic_flag'
14213 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14214 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'
14215 tmp_addflag=' $pic_flag -Mnomain' ;;
14216 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14217 tmp_addflag=' -i_dynamic' ;;
14218 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14219 tmp_addflag=' -i_dynamic -nofor_main' ;;
14220 ifc* | ifort*) # Intel Fortran compiler
14221 tmp_addflag=' -nofor_main' ;;
14223 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14225 if test $supports_anon_versioning = yes; then
14226 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14227 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14228 $echo "local: *; };" >> $output_objdir/$libname.ver~
14229 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14237 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14238 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14241 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14242 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14247 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14251 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14252 *** create shared libraries on Solaris systems. Therefore, libtool
14253 *** is disabling shared libraries support. We urge you to upgrade GNU
14254 *** binutils to release 2.9.1 or newer. Another option is to modify
14255 *** your PATH or compiler configuration so that the native linker is
14256 *** used, and then restart.
14259 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14260 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14261 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14267 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14268 case `$LD -v 2>&1` in
14269 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14273 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14274 *** reliably create shared libraries on SCO systems. Therefore, libtool
14275 *** is disabling shared libraries support. We urge you to upgrade GNU
14276 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14277 *** your PATH or compiler configuration so that the native linker is
14278 *** used, and then restart.
14283 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14284 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14285 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14286 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14295 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14297 hardcode_direct=yes
14298 hardcode_shlibpath_var=no
14302 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14303 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14304 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14311 if test "$ld_shlibs" = no; then
14313 hardcode_libdir_flag_spec=
14314 export_dynamic_flag_spec=
14315 whole_archive_flag_spec=
14318 # PORTME fill in a description of your system's linker (not GNU ld)
14321 allow_undefined_flag=unsupported
14322 always_export_symbols=yes
14323 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'
14324 # Note: this linker hardcodes the directories in LIBPATH if there
14325 # are no directories specified by -L.
14326 hardcode_minus_L=yes
14327 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14328 # Neither direct hardcoding nor static linking is supported with a
14330 hardcode_direct=unsupported
14335 if test "$host_cpu" = ia64; then
14336 # On IA64, the linker does run time linking by default, so we don't
14337 # have to do anything special.
14338 aix_use_runtimelinking=no
14339 exp_sym_flag='-Bexport'
14342 # If we're using GNU nm, then we don't want the "-C" option.
14343 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14344 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14345 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'
14347 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'
14349 aix_use_runtimelinking=no
14351 # Test if we are trying to use run time linking or normal
14352 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14353 # need to do runtime linking.
14354 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14355 for ld_flag in $LDFLAGS; do
14356 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14357 aix_use_runtimelinking=yes
14364 exp_sym_flag='-bexport'
14365 no_entry_flag='-bnoentry'
14368 # When large executables or shared objects are built, AIX ld can
14369 # have problems creating the table of contents. If linking a library
14370 # or program results in "error TOC overflow" add -mminimal-toc to
14371 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14372 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14375 hardcode_direct=yes
14376 hardcode_libdir_separator=':'
14377 link_all_deplibs=yes
14379 if test "$GCC" = yes; then
14380 case $host_os in aix4.[012]|aix4.[012].*)
14381 # We only want to do this on AIX 4.2 and lower, the check
14382 # below for broken collect2 doesn't work under 4.3+
14383 collect2name=`${CC} -print-prog-name=collect2`
14384 if test -f "$collect2name" && \
14385 strings "$collect2name" | grep resolve_lib_name >/dev/null
14387 # We have reworked collect2
14388 hardcode_direct=yes
14390 # We have old collect2
14391 hardcode_direct=unsupported
14392 # It fails to find uninstalled libraries when the uninstalled
14393 # path is not listed in the libpath. Setting hardcode_minus_L
14394 # to unsupported forces relinking
14395 hardcode_minus_L=yes
14396 hardcode_libdir_flag_spec='-L$libdir'
14397 hardcode_libdir_separator=
14401 shared_flag='-shared'
14402 if test "$aix_use_runtimelinking" = yes; then
14403 shared_flag="$shared_flag "'${wl}-G'
14407 if test "$host_cpu" = ia64; then
14408 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14409 # chokes on -Wl,-G. The following line is correct:
14412 if test "$aix_use_runtimelinking" = yes; then
14413 shared_flag='${wl}-G'
14415 shared_flag='${wl}-bM:SRE'
14420 # It seems that -bexpall does not export symbols beginning with
14421 # underscore (_), so it is better to generate a list of symbols to export.
14422 always_export_symbols=yes
14423 if test "$aix_use_runtimelinking" = yes; then
14424 # Warning - without using the other runtime loading flags (-brtl),
14425 # -berok will link without error, but may produce a broken library.
14426 allow_undefined_flag='-berok'
14427 # Determine the default libpath from the value encoded in an empty executable.
14428 cat >conftest.$ac_ext <<_ACEOF
14431 cat confdefs.h >>conftest.$ac_ext
14432 cat >>conftest.$ac_ext <<_ACEOF
14433 /* end confdefs.h. */
14443 rm -f conftest.$ac_objext conftest$ac_exeext
14444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14445 (eval $ac_link) 2>conftest.er1
14447 grep -v '^ *+' conftest.er1 >conftest.err
14449 cat conftest.err >&5
14450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14451 (exit $ac_status); } &&
14452 { ac_try='test -z "$ac_c_werror_flag"
14453 || test ! -s conftest.err'
14454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14455 (eval $ac_try) 2>&5
14457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14458 (exit $ac_status); }; } &&
14459 { ac_try='test -s conftest$ac_exeext'
14460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14461 (eval $ac_try) 2>&5
14463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14464 (exit $ac_status); }; }; then
14466 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14468 # Check for a 64-bit object if we didn't find anything.
14469 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; }
14472 echo "$as_me: failed program was:" >&5
14473 sed 's/^/| /' conftest.$ac_ext >&5
14476 rm -f conftest.err conftest.$ac_objext \
14477 conftest$ac_exeext conftest.$ac_ext
14478 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14480 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14481 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"
14483 if test "$host_cpu" = ia64; then
14484 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14485 allow_undefined_flag="-z nodefs"
14486 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"
14488 # Determine the default libpath from the value encoded in an empty executable.
14489 cat >conftest.$ac_ext <<_ACEOF
14492 cat confdefs.h >>conftest.$ac_ext
14493 cat >>conftest.$ac_ext <<_ACEOF
14494 /* end confdefs.h. */
14504 rm -f conftest.$ac_objext conftest$ac_exeext
14505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14506 (eval $ac_link) 2>conftest.er1
14508 grep -v '^ *+' conftest.er1 >conftest.err
14510 cat conftest.err >&5
14511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14512 (exit $ac_status); } &&
14513 { ac_try='test -z "$ac_c_werror_flag"
14514 || test ! -s conftest.err'
14515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14516 (eval $ac_try) 2>&5
14518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14519 (exit $ac_status); }; } &&
14520 { ac_try='test -s conftest$ac_exeext'
14521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14522 (eval $ac_try) 2>&5
14524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14525 (exit $ac_status); }; }; then
14527 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14529 # Check for a 64-bit object if we didn't find anything.
14530 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; }
14533 echo "$as_me: failed program was:" >&5
14534 sed 's/^/| /' conftest.$ac_ext >&5
14537 rm -f conftest.err conftest.$ac_objext \
14538 conftest$ac_exeext conftest.$ac_ext
14539 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14541 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14542 # Warning - without using the other run time loading flags,
14543 # -berok will link without error, but may produce a broken library.
14544 no_undefined_flag=' ${wl}-bernotok'
14545 allow_undefined_flag=' ${wl}-berok'
14546 # Exported symbols can be pulled into shared objects from archives
14547 whole_archive_flag_spec='$convenience'
14548 archive_cmds_need_lc=yes
14549 # This is similar to how AIX traditionally builds its shared libraries.
14550 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'
14556 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)'
14557 hardcode_libdir_flag_spec='-L$libdir'
14558 hardcode_minus_L=yes
14559 # see comment about different semantics on the GNU ld section
14564 export_dynamic_flag_spec=-rdynamic
14567 cygwin* | mingw* | pw32*)
14568 # When not using gcc, we currently assume that we are using
14569 # Microsoft Visual C++.
14570 # hardcode_libdir_flag_spec is actually meaningless, as there is
14571 # no search path for DLLs.
14572 hardcode_libdir_flag_spec=' '
14573 allow_undefined_flag=unsupported
14574 # Tell ltmain to make .lib files, not .a files.
14576 # Tell ltmain to make .dll files, not .so files.
14578 # FIXME: Setting linknames here is a bad hack.
14579 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14580 # The linker will automatically build a .lib file if we build a DLL.
14581 old_archive_From_new_cmds='true'
14582 # FIXME: Should let the user specify the lib program.
14583 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
14584 fix_srcfile_path='`cygpath -w "$srcfile"`'
14585 enable_shared_with_static_runtimes=yes
14588 darwin* | rhapsody*)
14590 rhapsody* | darwin1.[012])
14591 allow_undefined_flag='${wl}-undefined ${wl}suppress'
14594 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14595 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14597 case ${MACOSX_DEPLOYMENT_TARGET} in
14599 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14602 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
14608 archive_cmds_need_lc=no
14610 hardcode_automatic=yes
14611 hardcode_shlibpath_var=unsupported
14612 whole_archive_flag_spec=''
14613 link_all_deplibs=yes
14614 if test "$GCC" = yes ; then
14615 output_verbose_link_cmd='echo'
14616 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14617 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14618 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14619 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}'
14620 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}'
14622 case $cc_basename in
14624 output_verbose_link_cmd='echo'
14625 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14626 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14627 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14628 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}'
14629 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}'
14639 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14640 hardcode_libdir_flag_spec='-L$libdir'
14641 hardcode_shlibpath_var=no
14648 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14649 # support. Future versions do this automatically, but an explicit c++rt0.o
14650 # does not break anything, and helps significantly (at the cost of a little
14653 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14654 hardcode_libdir_flag_spec='-R$libdir'
14655 hardcode_direct=yes
14656 hardcode_shlibpath_var=no
14659 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14661 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14662 hardcode_direct=yes
14663 hardcode_minus_L=yes
14664 hardcode_shlibpath_var=no
14667 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14668 freebsd* | kfreebsd*-gnu | dragonfly*)
14669 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14670 hardcode_libdir_flag_spec='-R$libdir'
14671 hardcode_direct=yes
14672 hardcode_shlibpath_var=no
14676 if test "$GCC" = yes; then
14677 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'
14679 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'
14681 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14682 hardcode_libdir_separator=:
14683 hardcode_direct=yes
14685 # hardcode_minus_L: Not really in the search PATH,
14686 # but as the default location of the library.
14687 hardcode_minus_L=yes
14688 export_dynamic_flag_spec='${wl}-E'
14692 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14693 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14695 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14697 if test "$with_gnu_ld" = no; then
14698 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14699 hardcode_libdir_separator=:
14701 hardcode_direct=yes
14702 export_dynamic_flag_spec='${wl}-E'
14704 # hardcode_minus_L: Not really in the search PATH,
14705 # but as the default location of the library.
14706 hardcode_minus_L=yes
14711 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14714 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14717 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14720 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14726 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14729 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14732 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14736 if test "$with_gnu_ld" = no; then
14737 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14738 hardcode_libdir_separator=:
14742 hardcode_libdir_flag_spec_ld='+b $libdir'
14744 hardcode_shlibpath_var=no
14747 hardcode_direct=yes
14748 export_dynamic_flag_spec='${wl}-E'
14750 # hardcode_minus_L: Not really in the search PATH,
14751 # but as the default location of the library.
14752 hardcode_minus_L=yes
14758 irix5* | irix6* | nonstopux*)
14759 if test "$GCC" = yes; then
14760 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'
14762 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'
14763 hardcode_libdir_flag_spec_ld='-rpath $libdir'
14765 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14766 hardcode_libdir_separator=:
14767 link_all_deplibs=yes
14771 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14772 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14774 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14776 hardcode_libdir_flag_spec='-R$libdir'
14777 hardcode_direct=yes
14778 hardcode_shlibpath_var=no
14782 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14783 hardcode_direct=yes
14784 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14785 hardcode_libdir_separator=:
14786 hardcode_shlibpath_var=no
14790 hardcode_direct=yes
14791 hardcode_shlibpath_var=no
14792 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14793 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14794 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14795 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14796 export_dynamic_flag_spec='${wl}-E'
14799 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14800 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14801 hardcode_libdir_flag_spec='-R$libdir'
14804 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14805 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14812 hardcode_libdir_flag_spec='-L$libdir'
14813 hardcode_minus_L=yes
14814 allow_undefined_flag=unsupported
14815 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'
14816 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14820 if test "$GCC" = yes; then
14821 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14822 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'
14824 allow_undefined_flag=' -expect_unresolved \*'
14825 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'
14827 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14828 hardcode_libdir_separator=:
14831 osf4* | osf5*) # as osf3* with the addition of -msym flag
14832 if test "$GCC" = yes; then
14833 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14834 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'
14835 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14837 allow_undefined_flag=' -expect_unresolved \*'
14838 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'
14839 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14840 $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'
14842 # Both c and cxx compiler support -rpath directly
14843 hardcode_libdir_flag_spec='-rpath $libdir'
14845 hardcode_libdir_separator=:
14849 no_undefined_flag=' -z text'
14850 if test "$GCC" = yes; then
14852 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14853 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14854 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14857 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14858 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14859 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14861 hardcode_libdir_flag_spec='-R$libdir'
14862 hardcode_shlibpath_var=no
14864 solaris2.[0-5] | solaris2.[0-5].*) ;;
14866 # The compiler driver will combine linker options so we
14867 # cannot just pass the convience library names through
14868 # without $wl, iff we do not link with $LD.
14869 # Luckily, gcc supports the same syntax we need for Sun Studio.
14870 # Supported since Solaris 2.6 (maybe 2.5.1?)
14873 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
14875 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' ;;
14878 link_all_deplibs=yes
14882 if test "x$host_vendor" = xsequent; then
14883 # Use $CC to link under sequent, because it throws in some extra .o
14884 # files that make .init and .fini sections work.
14885 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14887 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14889 hardcode_libdir_flag_spec='-L$libdir'
14890 hardcode_direct=yes
14891 hardcode_minus_L=yes
14892 hardcode_shlibpath_var=no
14896 case $host_vendor in
14898 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14899 hardcode_direct=yes # is this really true???
14902 ## LD is ld it makes a PLAMLIB
14903 ## CC just makes a GrossModule.
14904 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14905 reload_cmds='$CC -r -o $output$reload_objs'
14909 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14910 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14913 runpath_var='LD_RUN_PATH'
14914 hardcode_shlibpath_var=no
14918 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14919 hardcode_shlibpath_var=no
14920 export_dynamic_flag_spec='-Bexport'
14924 if test -d /usr/nec; then
14925 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14926 hardcode_shlibpath_var=no
14927 runpath_var=LD_RUN_PATH
14928 hardcode_runpath_var=yes
14933 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14934 no_undefined_flag='${wl}-z,text'
14935 archive_cmds_need_lc=no
14936 hardcode_shlibpath_var=no
14937 runpath_var='LD_RUN_PATH'
14939 if test "$GCC" = yes; then
14940 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14941 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14943 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14944 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14948 sysv5* | sco3.2v5* | sco5v6*)
14949 # Note: We can NOT use -z defs as we might desire, because we do not
14950 # link with -lc, and that would cause any symbols used from libc to
14951 # always be unresolved, which means just about no library would
14952 # ever link correctly. If we're not using GNU ld we use -z text
14953 # though, which does catch some bad symbols but isn't as heavy-handed
14955 no_undefined_flag='${wl}-z,text'
14956 allow_undefined_flag='${wl}-z,nodefs'
14957 archive_cmds_need_lc=no
14958 hardcode_shlibpath_var=no
14959 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14960 hardcode_libdir_separator=':'
14961 link_all_deplibs=yes
14962 export_dynamic_flag_spec='${wl}-Bexport'
14963 runpath_var='LD_RUN_PATH'
14965 if test "$GCC" = yes; then
14966 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14967 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14969 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14970 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14975 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14976 hardcode_libdir_flag_spec='-L$libdir'
14977 hardcode_shlibpath_var=no
14986 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
14987 echo "${ECHO_T}$ld_shlibs" >&6
14988 test "$ld_shlibs" = no && can_build_shared=no
14991 # Do we need to explicitly link libc?
14993 case "x$archive_cmds_need_lc" in
14995 # Assume -lc should be added
14996 archive_cmds_need_lc=yes
14998 if test "$enable_shared" = yes && test "$GCC" = yes; then
14999 case $archive_cmds in
15001 # FIXME: we may have to deal with multi-command sequences.
15004 # Test whether the compiler implicitly links with -lc since on some
15005 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15006 # to ld, don't add -lc before -lgcc.
15007 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15008 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15010 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15013 (eval $ac_compile) 2>&5
15015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15016 (exit $ac_status); } 2>conftest.err; then
15019 libobjs=conftest.$ac_objext
15021 wl=$lt_prog_compiler_wl
15022 pic_flag=$lt_prog_compiler_pic
15028 lt_save_allow_undefined_flag=$allow_undefined_flag
15029 allow_undefined_flag=
15030 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15031 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15034 (exit $ac_status); }
15036 archive_cmds_need_lc=no
15038 archive_cmds_need_lc=yes
15040 allow_undefined_flag=$lt_save_allow_undefined_flag
15042 cat conftest.err 1>&5
15045 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15046 echo "${ECHO_T}$archive_cmds_need_lc" >&6
15053 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15054 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15055 library_names_spec=
15056 libname_spec='lib$name'
15060 postuninstall_cmds=
15064 shlibpath_overrides_runpath=unknown
15066 dynamic_linker="$host_os ld.so"
15067 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15068 if test "$GCC" = yes; then
15069 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15070 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15071 # if the path contains ";" then we assume it to be the separator
15072 # otherwise default to the standard path separator (i.e. ":") - it is
15073 # assumed that no part of a normal pathname contains ";" but that should
15074 # okay in the real world where ";" in dirpaths is itself problematic.
15075 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15077 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15080 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15082 need_lib_prefix=unknown
15083 hardcode_into_libs=no
15085 # when you set need_version to no, make sure it does not cause -set_version
15086 # flags to be left without arguments
15087 need_version=unknown
15092 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15093 shlibpath_var=LIBPATH
15095 # AIX 3 has no versioning support, so we append a major version to the name.
15096 soname_spec='${libname}${release}${shared_ext}$major'
15103 hardcode_into_libs=yes
15104 if test "$host_cpu" = ia64; then
15105 # AIX 5 supports IA64
15106 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15107 shlibpath_var=LD_LIBRARY_PATH
15109 # With GCC up to 2.95.x, collect2 would create an import file
15110 # for dependence libraries. The import file would start with
15111 # the line `#! .'. This would cause the generated library to
15112 # depend on `.', always an invalid library. This was fixed in
15113 # development snapshots of GCC prior to 3.0.
15115 aix4 | aix4.[01] | aix4.[01].*)
15116 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15118 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15121 can_build_shared=no
15125 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15126 # soname into executable. Probably we can add versioning support to
15127 # collect2, so additional links can be useful in future.
15128 if test "$aix_use_runtimelinking" = yes; then
15129 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15130 # instead of lib<name>.a to let people know that these are not
15131 # typical AIX shared libraries.
15132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15134 # We preserve .a as extension for shared libraries through AIX4.2
15135 # and later when we are not doing run time linking.
15136 library_names_spec='${libname}${release}.a $libname.a'
15137 soname_spec='${libname}${release}${shared_ext}$major'
15139 shlibpath_var=LIBPATH
15144 library_names_spec='$libname.ixlibrary $libname.a'
15145 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15146 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'
15150 library_names_spec='${libname}${shared_ext}'
15151 dynamic_linker="$host_os ld.so"
15152 shlibpath_var=LIBRARY_PATH
15158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15159 soname_spec='${libname}${release}${shared_ext}$major'
15160 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15161 shlibpath_var=LD_LIBRARY_PATH
15162 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15163 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15164 # the default ld.so.conf also contains /usr/contrib/lib and
15165 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15166 # libtool to hard-code these into programs
15169 cygwin* | mingw* | pw32*)
15170 version_type=windows
15175 case $GCC,$host_os in
15176 yes,cygwin* | yes,mingw* | yes,pw32*)
15177 library_names_spec='$libname.dll.a'
15178 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15179 postinstall_cmds='base_file=`basename \${file}`~
15180 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15181 dldir=$destdir/`dirname \$dlpath`~
15182 test -d \$dldir || mkdir -p \$dldir~
15183 $install_prog $dir/$dlname \$dldir/$dlname~
15184 chmod a+x \$dldir/$dlname'
15185 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15186 dlpath=$dir/\$dldll~
15188 shlibpath_overrides_runpath=yes
15192 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15193 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15194 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15197 # MinGW DLLs use traditional 'lib' prefix
15198 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15199 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15200 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15201 # It is most probably a Windows format PATH printed by
15202 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15203 # path with ; separators, and with drive letters. We can handle the
15204 # drive letters (cygwin fileutils understands them), so leave them,
15205 # especially as we might pass files found there to a mingw objdump,
15206 # which wouldn't understand a cygwinified path. Ahh.
15207 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15209 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15213 # pw32 DLLs use 'pw' prefix rather than 'lib'
15214 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15220 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15223 dynamic_linker='Win32 ld.exe'
15224 # FIXME: first we should search . and the directory the executable is in
15228 darwin* | rhapsody*)
15229 dynamic_linker="$host_os dyld"
15230 version_type=darwin
15233 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15234 soname_spec='${libname}${release}${major}$shared_ext'
15235 shlibpath_overrides_runpath=yes
15236 shlibpath_var=DYLD_LIBRARY_PATH
15237 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15238 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15239 if test "$GCC" = yes; then
15240 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"`
15242 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15244 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15252 soname_spec='${libname}${release}${shared_ext}$major'
15253 shlibpath_var=LD_LIBRARY_PATH
15264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15265 soname_spec='${libname}${release}${shared_ext}$major'
15266 shlibpath_var=LD_LIBRARY_PATH
15267 shlibpath_overrides_runpath=no
15268 hardcode_into_libs=yes
15269 dynamic_linker='GNU ld.so'
15272 freebsd* | dragonfly*)
15273 # DragonFly does not have aout. When/if they implement a new
15274 # versioning mechanism, adjust this.
15275 if test -x /usr/bin/objformat; then
15276 objformat=`/usr/bin/objformat`
15279 freebsd[123]*) objformat=aout ;;
15280 *) objformat=elf ;;
15283 version_type=freebsd-$objformat
15284 case $version_type in
15286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15291 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15295 shlibpath_var=LD_LIBRARY_PATH
15298 shlibpath_overrides_runpath=yes
15300 freebsd3.[01]* | freebsdelf3.[01]*)
15301 shlibpath_overrides_runpath=yes
15302 hardcode_into_libs=yes
15304 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15305 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15306 shlibpath_overrides_runpath=no
15307 hardcode_into_libs=yes
15309 freebsd*) # from 4.6 on
15310 shlibpath_overrides_runpath=yes
15311 hardcode_into_libs=yes
15320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15321 soname_spec='${libname}${release}${shared_ext}$major'
15322 shlibpath_var=LD_LIBRARY_PATH
15323 hardcode_into_libs=yes
15326 hpux9* | hpux10* | hpux11*)
15327 # Give a soname corresponding to the major version so that dld.sl refuses to
15328 # link against other versions.
15335 hardcode_into_libs=yes
15336 dynamic_linker="$host_os dld.so"
15337 shlibpath_var=LD_LIBRARY_PATH
15338 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15340 soname_spec='${libname}${release}${shared_ext}$major'
15341 if test "X$HPUX_IA64_MODE" = X32; then
15342 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15344 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15346 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15350 hardcode_into_libs=yes
15351 dynamic_linker="$host_os dld.sl"
15352 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15353 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15355 soname_spec='${libname}${release}${shared_ext}$major'
15356 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15357 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15361 dynamic_linker="$host_os dld.sl"
15362 shlibpath_var=SHLIB_PATH
15363 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15365 soname_spec='${libname}${release}${shared_ext}$major'
15368 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15369 postinstall_cmds='chmod 555 $lib'
15376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15377 soname_spec='${libname}${release}${shared_ext}$major'
15378 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15379 shlibpath_var=LD_LIBRARY_PATH
15380 shlibpath_overrides_runpath=no
15381 hardcode_into_libs=yes
15384 irix5* | irix6* | nonstopux*)
15386 nonstopux*) version_type=nonstopux ;;
15388 if test "$lt_cv_prog_gnu_ld" = yes; then
15396 soname_spec='${libname}${release}${shared_ext}$major'
15397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15399 irix5* | nonstopux*)
15400 libsuff= shlibsuff=
15403 case $LD in # libtool.m4 will add one of these switches to LD
15404 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15405 libsuff= shlibsuff= libmagic=32-bit;;
15406 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15407 libsuff=32 shlibsuff=N32 libmagic=N32;;
15408 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15409 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15410 *) libsuff= shlibsuff= libmagic=never-match;;
15414 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15415 shlibpath_overrides_runpath=no
15416 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15417 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15418 hardcode_into_libs=yes
15421 # No shared lib support for Linux oldld, aout, or coff.
15422 linux*oldld* | linux*aout* | linux*coff*)
15426 # This must be Linux ELF.
15431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15432 soname_spec='${libname}${release}${shared_ext}$major'
15433 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15434 shlibpath_var=LD_LIBRARY_PATH
15435 shlibpath_overrides_runpath=no
15436 # This implies no fast_install, which is unacceptable.
15437 # Some rework will be needed to allow for fast_install
15438 # before this can be enabled.
15439 hardcode_into_libs=yes
15441 # find out which ABI we are using
15443 case "$host_cpu" in
15444 x86_64*|s390x*|powerpc64*)
15445 echo '#line 15445 "configure"' > conftest.$ac_ext
15446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15447 (eval $ac_compile) 2>&5
15449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15450 (exit $ac_status); }; then
15451 case `/usr/bin/file conftest.$ac_objext` in
15454 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15462 # Append ld.so.conf contents to the search path
15463 if test -f /etc/ld.so.conf; then
15464 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15465 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15468 # We used to test for /lib/ld.so.1 and disable shared libraries on
15469 # powerpc, because MkLinux only supported shared libraries with the
15470 # GNU dynamic linker. Since this was broken with cross compilers,
15471 # most powerpc-linux boxes support dynamic linking these days and
15472 # people can always --disable-shared, the test was removed, and we
15473 # assume the GNU/Linux dynamic linker is in use.
15474 dynamic_linker='GNU/Linux ld.so'
15481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15482 soname_spec='${libname}${release}${shared_ext}$major'
15483 shlibpath_var=LD_LIBRARY_PATH
15484 shlibpath_overrides_runpath=no
15485 hardcode_into_libs=yes
15486 dynamic_linker='GNU ld.so'
15493 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15495 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15496 dynamic_linker='NetBSD (a.out) ld.so'
15498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15499 soname_spec='${libname}${release}${shared_ext}$major'
15500 dynamic_linker='NetBSD ld.elf_so'
15502 shlibpath_var=LD_LIBRARY_PATH
15503 shlibpath_overrides_runpath=yes
15504 hardcode_into_libs=yes
15509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15510 shlibpath_var=LD_LIBRARY_PATH
15511 shlibpath_overrides_runpath=yes
15518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15519 soname_spec='${libname}${release}${shared_ext}$major'
15520 shlibpath_var=LD_LIBRARY_PATH
15521 shlibpath_overrides_runpath=yes
15526 sys_lib_dlsearch_path_spec="/usr/lib"
15528 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15530 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15531 *) need_version=no ;;
15533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15534 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15535 shlibpath_var=LD_LIBRARY_PATH
15536 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15538 openbsd2.[89] | openbsd2.[89].*)
15539 shlibpath_overrides_runpath=no
15542 shlibpath_overrides_runpath=yes
15546 shlibpath_overrides_runpath=yes
15551 libname_spec='$name'
15554 library_names_spec='$libname${shared_ext} $libname.a'
15555 dynamic_linker='OS/2 ld.exe'
15556 shlibpath_var=LIBPATH
15559 osf3* | osf4* | osf5*)
15563 soname_spec='${libname}${release}${shared_ext}$major'
15564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15565 shlibpath_var=LD_LIBRARY_PATH
15566 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15567 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15575 soname_spec='${libname}${release}${shared_ext}$major'
15576 shlibpath_var=LD_LIBRARY_PATH
15577 shlibpath_overrides_runpath=yes
15578 hardcode_into_libs=yes
15579 # ldd complains unless libraries are executable
15580 postinstall_cmds='chmod +x $lib'
15585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15586 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15587 shlibpath_var=LD_LIBRARY_PATH
15588 shlibpath_overrides_runpath=yes
15589 if test "$with_gnu_ld" = yes; then
15597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15598 soname_spec='${libname}${release}${shared_ext}$major'
15599 shlibpath_var=LD_LIBRARY_PATH
15600 case $host_vendor in
15602 shlibpath_overrides_runpath=no
15604 export_dynamic_flag_spec='${wl}-Blargedynsym'
15605 runpath_var=LD_RUN_PATH
15613 shlibpath_overrides_runpath=no
15614 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15620 if test -d /usr/nec ;then
15622 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15623 soname_spec='$libname${shared_ext}.$major'
15624 shlibpath_var=LD_LIBRARY_PATH
15628 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15629 version_type=freebsd-elf
15632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15633 soname_spec='${libname}${release}${shared_ext}$major'
15634 shlibpath_var=LD_LIBRARY_PATH
15635 hardcode_into_libs=yes
15636 if test "$with_gnu_ld" = yes; then
15637 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15638 shlibpath_overrides_runpath=no
15640 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15641 shlibpath_overrides_runpath=yes
15644 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15648 sys_lib_dlsearch_path_spec='/usr/lib'
15653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15654 soname_spec='${libname}${release}${shared_ext}$major'
15655 shlibpath_var=LD_LIBRARY_PATH
15662 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15663 echo "${ECHO_T}$dynamic_linker" >&6
15664 test "$dynamic_linker" = no && can_build_shared=no
15666 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15667 if test "$GCC" = yes; then
15668 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15671 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15672 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15674 if test -n "$hardcode_libdir_flag_spec" || \
15675 test -n "$runpath_var" || \
15676 test "X$hardcode_automatic" = "Xyes" ; then
15678 # We can hardcode non-existant directories.
15679 if test "$hardcode_direct" != no &&
15680 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15681 # have to relink, otherwise we might link with an installed library
15682 # when we should be linking with a yet-to-be-installed one
15683 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
15684 test "$hardcode_minus_L" != no; then
15685 # Linking always hardcodes the temporary library directory.
15686 hardcode_action=relink
15688 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15689 hardcode_action=immediate
15692 # We cannot hardcode anything, or else we can only hardcode existing
15694 hardcode_action=unsupported
15696 echo "$as_me:$LINENO: result: $hardcode_action" >&5
15697 echo "${ECHO_T}$hardcode_action" >&6
15699 if test "$hardcode_action" = relink; then
15700 # Fast installation is not supported
15701 enable_fast_install=no
15702 elif test "$shlibpath_overrides_runpath" = yes ||
15703 test "$enable_shared" = no; then
15704 # Fast installation is not necessary
15705 enable_fast_install=needless
15710 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15711 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15712 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15713 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15714 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15715 echo "$as_me:$LINENO: result: yes" >&5
15716 echo "${ECHO_T}yes" >&6
15718 # FIXME - insert some real tests, host_os isn't really good enough
15721 if test -n "$STRIP" ; then
15722 striplib="$STRIP -x"
15723 echo "$as_me:$LINENO: result: yes" >&5
15724 echo "${ECHO_T}yes" >&6
15726 echo "$as_me:$LINENO: result: no" >&5
15727 echo "${ECHO_T}no" >&6
15731 echo "$as_me:$LINENO: result: no" >&5
15732 echo "${ECHO_T}no" >&6
15737 if test "x$enable_dlopen" != xyes; then
15738 enable_dlopen=unknown
15739 enable_dlopen_self=unknown
15740 enable_dlopen_self_static=unknown
15747 lt_cv_dlopen="load_add_on"
15749 lt_cv_dlopen_self=yes
15753 lt_cv_dlopen="LoadLibrary"
15758 lt_cv_dlopen="dlopen"
15763 # if libdl is installed we need to link against it
15764 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15765 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
15766 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15767 echo $ECHO_N "(cached) $ECHO_C" >&6
15769 ac_check_lib_save_LIBS=$LIBS
15771 cat >conftest.$ac_ext <<_ACEOF
15774 cat confdefs.h >>conftest.$ac_ext
15775 cat >>conftest.$ac_ext <<_ACEOF
15776 /* end confdefs.h. */
15778 /* Override any gcc2 internal prototype to avoid an error. */
15782 /* We use char because int might match the return type of a gcc2
15783 builtin and then its argument prototype would still apply. */
15793 rm -f conftest.$ac_objext conftest$ac_exeext
15794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15795 (eval $ac_link) 2>conftest.er1
15797 grep -v '^ *+' conftest.er1 >conftest.err
15799 cat conftest.err >&5
15800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15801 (exit $ac_status); } &&
15802 { ac_try='test -z "$ac_c_werror_flag"
15803 || test ! -s conftest.err'
15804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15805 (eval $ac_try) 2>&5
15807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15808 (exit $ac_status); }; } &&
15809 { ac_try='test -s conftest$ac_exeext'
15810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15811 (eval $ac_try) 2>&5
15813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15814 (exit $ac_status); }; }; then
15815 ac_cv_lib_dl_dlopen=yes
15817 echo "$as_me: failed program was:" >&5
15818 sed 's/^/| /' conftest.$ac_ext >&5
15820 ac_cv_lib_dl_dlopen=no
15822 rm -f conftest.err conftest.$ac_objext \
15823 conftest$ac_exeext conftest.$ac_ext
15824 LIBS=$ac_check_lib_save_LIBS
15826 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15827 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
15828 if test $ac_cv_lib_dl_dlopen = yes; then
15829 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15832 lt_cv_dlopen="dyld"
15834 lt_cv_dlopen_self=yes
15841 echo "$as_me:$LINENO: checking for shl_load" >&5
15842 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
15843 if test "${ac_cv_func_shl_load+set}" = set; then
15844 echo $ECHO_N "(cached) $ECHO_C" >&6
15846 cat >conftest.$ac_ext <<_ACEOF
15849 cat confdefs.h >>conftest.$ac_ext
15850 cat >>conftest.$ac_ext <<_ACEOF
15851 /* end confdefs.h. */
15852 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
15853 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15854 #define shl_load innocuous_shl_load
15856 /* System header to define __stub macros and hopefully few prototypes,
15857 which can conflict with char shl_load (); below.
15858 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15859 <limits.h> exists even on freestanding compilers. */
15862 # include <limits.h>
15864 # include <assert.h>
15869 /* Override any gcc2 internal prototype to avoid an error. */
15874 /* We use char because int might match the return type of a gcc2
15875 builtin and then its argument prototype would still apply. */
15877 /* The GNU C library defines this for functions which it implements
15878 to always fail with ENOSYS. Some functions are actually named
15879 something starting with __ and the normal name is an alias. */
15880 #if defined (__stub_shl_load) || defined (__stub___shl_load)
15883 char (*f) () = shl_load;
15892 return f != shl_load;
15897 rm -f conftest.$ac_objext conftest$ac_exeext
15898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15899 (eval $ac_link) 2>conftest.er1
15901 grep -v '^ *+' conftest.er1 >conftest.err
15903 cat conftest.err >&5
15904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15905 (exit $ac_status); } &&
15906 { ac_try='test -z "$ac_c_werror_flag"
15907 || test ! -s conftest.err'
15908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15909 (eval $ac_try) 2>&5
15911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15912 (exit $ac_status); }; } &&
15913 { ac_try='test -s conftest$ac_exeext'
15914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15915 (eval $ac_try) 2>&5
15917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15918 (exit $ac_status); }; }; then
15919 ac_cv_func_shl_load=yes
15921 echo "$as_me: failed program was:" >&5
15922 sed 's/^/| /' conftest.$ac_ext >&5
15924 ac_cv_func_shl_load=no
15926 rm -f conftest.err conftest.$ac_objext \
15927 conftest$ac_exeext conftest.$ac_ext
15929 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
15930 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
15931 if test $ac_cv_func_shl_load = yes; then
15932 lt_cv_dlopen="shl_load"
15934 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
15935 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
15936 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
15937 echo $ECHO_N "(cached) $ECHO_C" >&6
15939 ac_check_lib_save_LIBS=$LIBS
15941 cat >conftest.$ac_ext <<_ACEOF
15944 cat confdefs.h >>conftest.$ac_ext
15945 cat >>conftest.$ac_ext <<_ACEOF
15946 /* end confdefs.h. */
15948 /* Override any gcc2 internal prototype to avoid an error. */
15952 /* We use char because int might match the return type of a gcc2
15953 builtin and then its argument prototype would still apply. */
15963 rm -f conftest.$ac_objext conftest$ac_exeext
15964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15965 (eval $ac_link) 2>conftest.er1
15967 grep -v '^ *+' conftest.er1 >conftest.err
15969 cat conftest.err >&5
15970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15971 (exit $ac_status); } &&
15972 { ac_try='test -z "$ac_c_werror_flag"
15973 || test ! -s conftest.err'
15974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15975 (eval $ac_try) 2>&5
15977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15978 (exit $ac_status); }; } &&
15979 { ac_try='test -s conftest$ac_exeext'
15980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15981 (eval $ac_try) 2>&5
15983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15984 (exit $ac_status); }; }; then
15985 ac_cv_lib_dld_shl_load=yes
15987 echo "$as_me: failed program was:" >&5
15988 sed 's/^/| /' conftest.$ac_ext >&5
15990 ac_cv_lib_dld_shl_load=no
15992 rm -f conftest.err conftest.$ac_objext \
15993 conftest$ac_exeext conftest.$ac_ext
15994 LIBS=$ac_check_lib_save_LIBS
15996 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
15997 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
15998 if test $ac_cv_lib_dld_shl_load = yes; then
15999 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16001 echo "$as_me:$LINENO: checking for dlopen" >&5
16002 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
16003 if test "${ac_cv_func_dlopen+set}" = set; then
16004 echo $ECHO_N "(cached) $ECHO_C" >&6
16006 cat >conftest.$ac_ext <<_ACEOF
16009 cat confdefs.h >>conftest.$ac_ext
16010 cat >>conftest.$ac_ext <<_ACEOF
16011 /* end confdefs.h. */
16012 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16013 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16014 #define dlopen innocuous_dlopen
16016 /* System header to define __stub macros and hopefully few prototypes,
16017 which can conflict with char dlopen (); below.
16018 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16019 <limits.h> exists even on freestanding compilers. */
16022 # include <limits.h>
16024 # include <assert.h>
16029 /* Override any gcc2 internal prototype to avoid an error. */
16034 /* We use char because int might match the return type of a gcc2
16035 builtin and then its argument prototype would still apply. */
16037 /* The GNU C library defines this for functions which it implements
16038 to always fail with ENOSYS. Some functions are actually named
16039 something starting with __ and the normal name is an alias. */
16040 #if defined (__stub_dlopen) || defined (__stub___dlopen)
16043 char (*f) () = dlopen;
16052 return f != dlopen;
16057 rm -f conftest.$ac_objext conftest$ac_exeext
16058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16059 (eval $ac_link) 2>conftest.er1
16061 grep -v '^ *+' conftest.er1 >conftest.err
16063 cat conftest.err >&5
16064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16065 (exit $ac_status); } &&
16066 { ac_try='test -z "$ac_c_werror_flag"
16067 || test ! -s conftest.err'
16068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16069 (eval $ac_try) 2>&5
16071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16072 (exit $ac_status); }; } &&
16073 { ac_try='test -s conftest$ac_exeext'
16074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16075 (eval $ac_try) 2>&5
16077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16078 (exit $ac_status); }; }; then
16079 ac_cv_func_dlopen=yes
16081 echo "$as_me: failed program was:" >&5
16082 sed 's/^/| /' conftest.$ac_ext >&5
16084 ac_cv_func_dlopen=no
16086 rm -f conftest.err conftest.$ac_objext \
16087 conftest$ac_exeext conftest.$ac_ext
16089 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16090 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
16091 if test $ac_cv_func_dlopen = yes; then
16092 lt_cv_dlopen="dlopen"
16094 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16095 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16096 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16097 echo $ECHO_N "(cached) $ECHO_C" >&6
16099 ac_check_lib_save_LIBS=$LIBS
16101 cat >conftest.$ac_ext <<_ACEOF
16104 cat confdefs.h >>conftest.$ac_ext
16105 cat >>conftest.$ac_ext <<_ACEOF
16106 /* end confdefs.h. */
16108 /* Override any gcc2 internal prototype to avoid an error. */
16112 /* We use char because int might match the return type of a gcc2
16113 builtin and then its argument prototype would still apply. */
16123 rm -f conftest.$ac_objext conftest$ac_exeext
16124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16125 (eval $ac_link) 2>conftest.er1
16127 grep -v '^ *+' conftest.er1 >conftest.err
16129 cat conftest.err >&5
16130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16131 (exit $ac_status); } &&
16132 { ac_try='test -z "$ac_c_werror_flag"
16133 || test ! -s conftest.err'
16134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16135 (eval $ac_try) 2>&5
16137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16138 (exit $ac_status); }; } &&
16139 { ac_try='test -s conftest$ac_exeext'
16140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16141 (eval $ac_try) 2>&5
16143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16144 (exit $ac_status); }; }; then
16145 ac_cv_lib_dl_dlopen=yes
16147 echo "$as_me: failed program was:" >&5
16148 sed 's/^/| /' conftest.$ac_ext >&5
16150 ac_cv_lib_dl_dlopen=no
16152 rm -f conftest.err conftest.$ac_objext \
16153 conftest$ac_exeext conftest.$ac_ext
16154 LIBS=$ac_check_lib_save_LIBS
16156 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16157 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16158 if test $ac_cv_lib_dl_dlopen = yes; then
16159 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16161 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16162 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
16163 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16164 echo $ECHO_N "(cached) $ECHO_C" >&6
16166 ac_check_lib_save_LIBS=$LIBS
16167 LIBS="-lsvld $LIBS"
16168 cat >conftest.$ac_ext <<_ACEOF
16171 cat confdefs.h >>conftest.$ac_ext
16172 cat >>conftest.$ac_ext <<_ACEOF
16173 /* end confdefs.h. */
16175 /* Override any gcc2 internal prototype to avoid an error. */
16179 /* We use char because int might match the return type of a gcc2
16180 builtin and then its argument prototype would still apply. */
16190 rm -f conftest.$ac_objext conftest$ac_exeext
16191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16192 (eval $ac_link) 2>conftest.er1
16194 grep -v '^ *+' conftest.er1 >conftest.err
16196 cat conftest.err >&5
16197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16198 (exit $ac_status); } &&
16199 { ac_try='test -z "$ac_c_werror_flag"
16200 || test ! -s conftest.err'
16201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16202 (eval $ac_try) 2>&5
16204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16205 (exit $ac_status); }; } &&
16206 { ac_try='test -s conftest$ac_exeext'
16207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16208 (eval $ac_try) 2>&5
16210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16211 (exit $ac_status); }; }; then
16212 ac_cv_lib_svld_dlopen=yes
16214 echo "$as_me: failed program was:" >&5
16215 sed 's/^/| /' conftest.$ac_ext >&5
16217 ac_cv_lib_svld_dlopen=no
16219 rm -f conftest.err conftest.$ac_objext \
16220 conftest$ac_exeext conftest.$ac_ext
16221 LIBS=$ac_check_lib_save_LIBS
16223 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16224 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
16225 if test $ac_cv_lib_svld_dlopen = yes; then
16226 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16228 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16229 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
16230 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16231 echo $ECHO_N "(cached) $ECHO_C" >&6
16233 ac_check_lib_save_LIBS=$LIBS
16235 cat >conftest.$ac_ext <<_ACEOF
16238 cat confdefs.h >>conftest.$ac_ext
16239 cat >>conftest.$ac_ext <<_ACEOF
16240 /* end confdefs.h. */
16242 /* Override any gcc2 internal prototype to avoid an error. */
16246 /* We use char because int might match the return type of a gcc2
16247 builtin and then its argument prototype would still apply. */
16257 rm -f conftest.$ac_objext conftest$ac_exeext
16258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16259 (eval $ac_link) 2>conftest.er1
16261 grep -v '^ *+' conftest.er1 >conftest.err
16263 cat conftest.err >&5
16264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16265 (exit $ac_status); } &&
16266 { ac_try='test -z "$ac_c_werror_flag"
16267 || test ! -s conftest.err'
16268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16269 (eval $ac_try) 2>&5
16271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16272 (exit $ac_status); }; } &&
16273 { ac_try='test -s conftest$ac_exeext'
16274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16275 (eval $ac_try) 2>&5
16277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16278 (exit $ac_status); }; }; then
16279 ac_cv_lib_dld_dld_link=yes
16281 echo "$as_me: failed program was:" >&5
16282 sed 's/^/| /' conftest.$ac_ext >&5
16284 ac_cv_lib_dld_dld_link=no
16286 rm -f conftest.err conftest.$ac_objext \
16287 conftest$ac_exeext conftest.$ac_ext
16288 LIBS=$ac_check_lib_save_LIBS
16290 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16291 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
16292 if test $ac_cv_lib_dld_dld_link = yes; then
16293 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16314 if test "x$lt_cv_dlopen" != xno; then
16320 case $lt_cv_dlopen in
16322 save_CPPFLAGS="$CPPFLAGS"
16323 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16325 save_LDFLAGS="$LDFLAGS"
16326 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16329 LIBS="$lt_cv_dlopen_libs $LIBS"
16331 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16332 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
16333 if test "${lt_cv_dlopen_self+set}" = set; then
16334 echo $ECHO_N "(cached) $ECHO_C" >&6
16336 if test "$cross_compiling" = yes; then :
16337 lt_cv_dlopen_self=cross
16339 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16340 lt_status=$lt_dlunknown
16341 cat > conftest.$ac_ext <<EOF
16342 #line 16342 "configure"
16343 #include "confdefs.h"
16352 # define LT_DLGLOBAL RTLD_GLOBAL
16355 # define LT_DLGLOBAL DL_GLOBAL
16357 # define LT_DLGLOBAL 0
16361 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16362 find out it does not work in some platform. */
16363 #ifndef LT_DLLAZY_OR_NOW
16365 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16368 # define LT_DLLAZY_OR_NOW DL_LAZY
16371 # define LT_DLLAZY_OR_NOW RTLD_NOW
16374 # define LT_DLLAZY_OR_NOW DL_NOW
16376 # define LT_DLLAZY_OR_NOW 0
16384 extern "C" void exit (int);
16387 void fnord() { int i=42;}
16390 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16391 int status = $lt_dlunknown;
16395 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16396 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16397 /* dlclose (self); */
16405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16406 (eval $ac_link) 2>&5
16408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16409 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16410 (./conftest; exit; ) >&5 2>/dev/null
16412 case x$lt_status in
16413 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16414 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16415 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16418 # compilation failed
16419 lt_cv_dlopen_self=no
16426 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
16427 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
16429 if test "x$lt_cv_dlopen_self" = xyes; then
16430 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16431 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
16432 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
16433 if test "${lt_cv_dlopen_self_static+set}" = set; then
16434 echo $ECHO_N "(cached) $ECHO_C" >&6
16436 if test "$cross_compiling" = yes; then :
16437 lt_cv_dlopen_self_static=cross
16439 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16440 lt_status=$lt_dlunknown
16441 cat > conftest.$ac_ext <<EOF
16442 #line 16442 "configure"
16443 #include "confdefs.h"
16452 # define LT_DLGLOBAL RTLD_GLOBAL
16455 # define LT_DLGLOBAL DL_GLOBAL
16457 # define LT_DLGLOBAL 0
16461 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16462 find out it does not work in some platform. */
16463 #ifndef LT_DLLAZY_OR_NOW
16465 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16468 # define LT_DLLAZY_OR_NOW DL_LAZY
16471 # define LT_DLLAZY_OR_NOW RTLD_NOW
16474 # define LT_DLLAZY_OR_NOW DL_NOW
16476 # define LT_DLLAZY_OR_NOW 0
16484 extern "C" void exit (int);
16487 void fnord() { int i=42;}
16490 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16491 int status = $lt_dlunknown;
16495 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16496 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16497 /* dlclose (self); */
16505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16506 (eval $ac_link) 2>&5
16508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16509 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16510 (./conftest; exit; ) >&5 2>/dev/null
16512 case x$lt_status in
16513 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16514 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16515 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16518 # compilation failed
16519 lt_cv_dlopen_self_static=no
16526 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
16527 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
16530 CPPFLAGS="$save_CPPFLAGS"
16531 LDFLAGS="$save_LDFLAGS"
16536 case $lt_cv_dlopen_self in
16537 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16538 *) enable_dlopen_self=unknown ;;
16541 case $lt_cv_dlopen_self_static in
16542 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16543 *) enable_dlopen_self_static=unknown ;;
16548 # Report which library types will actually be built
16549 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
16550 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
16551 echo "$as_me:$LINENO: result: $can_build_shared" >&5
16552 echo "${ECHO_T}$can_build_shared" >&6
16554 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
16555 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
16556 test "$can_build_shared" = "no" && enable_shared=no
16558 # On AIX, shared libraries and static libraries use the same namespace, and
16559 # are all built from PIC.
16562 test "$enable_shared" = yes && enable_static=no
16563 if test -n "$RANLIB"; then
16564 archive_cmds="$archive_cmds~\$RANLIB \$lib"
16565 postinstall_cmds='$RANLIB $lib'
16570 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16571 test "$enable_shared" = yes && enable_static=no
16575 echo "$as_me:$LINENO: result: $enable_shared" >&5
16576 echo "${ECHO_T}$enable_shared" >&6
16578 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
16579 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
16580 # Make sure either enable_shared or enable_static is yes.
16581 test "$enable_shared" = yes || enable_static=yes
16582 echo "$as_me:$LINENO: result: $enable_static" >&5
16583 echo "${ECHO_T}$enable_static" >&6
16585 # The else clause should only fire when bootstrapping the
16586 # libtool distribution, otherwise you forgot to ship ltmain.sh
16587 # with your package, and you will get complaints that there are
16588 # no rules to generate ltmain.sh.
16589 if test -f "$ltmain"; then
16590 # See if we are running on zsh, and set the options which allow our commands through
16591 # without removal of \ escapes.
16592 if test -n "${ZSH_VERSION+set}" ; then
16593 setopt NO_GLOB_SUBST
16595 # Now quote all the things that may contain metacharacters while being
16596 # careful not to overquote the AC_SUBSTed values. We take copies of the
16597 # variables and quote the copies for generation of the libtool script.
16598 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16600 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16601 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16602 deplibs_check_method reload_flag reload_cmds need_locks \
16603 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16604 lt_cv_sys_global_symbol_to_c_name_address \
16605 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16606 old_postinstall_cmds old_postuninstall_cmds \
16610 lt_prog_compiler_wl \
16611 lt_prog_compiler_pic \
16612 lt_prog_compiler_static \
16613 lt_prog_compiler_no_builtin_flag \
16614 export_dynamic_flag_spec \
16615 thread_safe_flag_spec \
16616 whole_archive_flag_spec \
16617 enable_shared_with_static_runtimes \
16619 old_archive_from_new_cmds \
16624 compiler_lib_search_path \
16626 archive_expsym_cmds \
16628 postuninstall_cmds \
16629 old_archive_from_expsyms_cmds \
16630 allow_undefined_flag \
16631 no_undefined_flag \
16632 export_symbols_cmds \
16633 hardcode_libdir_flag_spec \
16634 hardcode_libdir_flag_spec_ld \
16635 hardcode_libdir_separator \
16636 hardcode_automatic \
16638 module_expsym_cmds \
16639 lt_cv_prog_compiler_c_o \
16641 include_expsyms; do
16644 old_archive_cmds | \
16645 old_archive_from_new_cmds | \
16647 archive_expsym_cmds | \
16649 module_expsym_cmds | \
16650 old_archive_from_expsyms_cmds | \
16651 export_symbols_cmds | \
16652 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16653 postinstall_cmds | postuninstall_cmds | \
16654 old_postinstall_cmds | old_postuninstall_cmds | \
16655 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16656 # Double-quote double-evaled strings.
16657 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16660 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16666 *'\$0 --fallback-echo"')
16667 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16671 cfgfile="${ofile}T"
16672 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
16674 { echo "$as_me:$LINENO: creating $ofile" >&5
16675 echo "$as_me: creating $ofile" >&6;}
16677 cat <<__EOF__ >> "$cfgfile"
16680 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16681 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
16682 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16684 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
16685 # Free Software Foundation, Inc.
16687 # This file is part of GNU Libtool:
16688 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
16690 # This program is free software; you can redistribute it and/or modify
16691 # it under the terms of the GNU General Public License as published by
16692 # the Free Software Foundation; either version 2 of the License, or
16693 # (at your option) any later version.
16695 # This program is distributed in the hope that it will be useful, but
16696 # WITHOUT ANY WARRANTY; without even the implied warranty of
16697 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16698 # General Public License for more details.
16700 # You should have received a copy of the GNU General Public License
16701 # along with this program; if not, write to the Free Software
16702 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16704 # As a special exception to the GNU General Public License, if you
16705 # distribute this file as part of a program that contains a
16706 # configuration script generated by Autoconf, you may include it under
16707 # the same distribution terms that you use for the rest of that program.
16709 # A sed program that does not truncate output.
16712 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16713 Xsed="$SED -e 1s/^X//"
16715 # The HP-UX ksh and POSIX shell print the target directory to stdout
16716 # if CDPATH is set.
16717 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16719 # The names of the tagged configurations supported by this script.
16722 # ### BEGIN LIBTOOL CONFIG
16724 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16726 # Shell to use when invoking shell scripts.
16729 # Whether or not to build shared libraries.
16730 build_libtool_libs=$enable_shared
16732 # Whether or not to build static libraries.
16733 build_old_libs=$enable_static
16735 # Whether or not to add -lc for building shared libraries.
16736 build_libtool_need_lc=$archive_cmds_need_lc
16738 # Whether or not to disallow shared libs when runtime libs are static
16739 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16741 # Whether or not to optimize for fast installation.
16742 fast_install=$enable_fast_install
16745 host_alias=$host_alias
16749 # The build system.
16750 build_alias=$build_alias
16754 # An echo program that does not interpret backslashes.
16759 AR_FLAGS=$lt_AR_FLAGS
16764 # LTCC compiler flags.
16765 LTCFLAGS=$lt_LTCFLAGS
16767 # A language-specific compiler.
16770 # Is the compiler the GNU C compiler?
16776 # The linker used to build libraries.
16779 # Whether we need hard or soft links.
16782 # A BSD-compatible nm program.
16785 # A symbol stripping program
16788 # Used to examine libraries when file_magic_cmd begins "file"
16789 MAGIC_CMD=$MAGIC_CMD
16791 # Used on cygwin: DLL creation program.
16794 # Used on cygwin: object dumper.
16797 # Used on cygwin: assembler.
16800 # The name of the directory that contains temporary libtool files.
16803 # How to create reloadable object files.
16804 reload_flag=$lt_reload_flag
16805 reload_cmds=$lt_reload_cmds
16807 # How to pass a linker flag through the compiler.
16808 wl=$lt_lt_prog_compiler_wl
16810 # Object file suffix (normally "o").
16811 objext="$ac_objext"
16813 # Old archive suffix (normally "a").
16816 # Shared library suffix (normally ".so").
16817 shrext_cmds='$shrext_cmds'
16819 # Executable file suffix (normally "").
16822 # Additional compiler flags for building library objects.
16823 pic_flag=$lt_lt_prog_compiler_pic
16826 # What is the maximum length of a command?
16827 max_cmd_len=$lt_cv_sys_max_cmd_len
16829 # Does compiler simultaneously support -c and -o options?
16830 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16832 # Must we lock files when doing compilation?
16833 need_locks=$lt_need_locks
16835 # Do we need the lib prefix for modules?
16836 need_lib_prefix=$need_lib_prefix
16838 # Do we need a version for libraries?
16839 need_version=$need_version
16841 # Whether dlopen is supported.
16842 dlopen_support=$enable_dlopen
16844 # Whether dlopen of programs is supported.
16845 dlopen_self=$enable_dlopen_self
16847 # Whether dlopen of statically linked programs is supported.
16848 dlopen_self_static=$enable_dlopen_self_static
16850 # Compiler flag to prevent dynamic linking.
16851 link_static_flag=$lt_lt_prog_compiler_static
16853 # Compiler flag to turn off builtin functions.
16854 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16856 # Compiler flag to allow reflexive dlopens.
16857 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16859 # Compiler flag to generate shared objects directly from archives.
16860 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16862 # Compiler flag to generate thread-safe objects.
16863 thread_safe_flag_spec=$lt_thread_safe_flag_spec
16865 # Library versioning type.
16866 version_type=$version_type
16868 # Format of library name prefix.
16869 libname_spec=$lt_libname_spec
16871 # List of archive names. First name is the real one, the rest are links.
16872 # The last name is the one that the linker finds with -lNAME.
16873 library_names_spec=$lt_library_names_spec
16875 # The coded name of the library, if different from the real name.
16876 soname_spec=$lt_soname_spec
16878 # Commands used to build and install an old-style archive.
16880 old_archive_cmds=$lt_old_archive_cmds
16881 old_postinstall_cmds=$lt_old_postinstall_cmds
16882 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16884 # Create an old-style archive from a shared archive.
16885 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16887 # Create a temporary old-style archive to link instead of a shared archive.
16888 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16890 # Commands used to build and install a shared archive.
16891 archive_cmds=$lt_archive_cmds
16892 archive_expsym_cmds=$lt_archive_expsym_cmds
16893 postinstall_cmds=$lt_postinstall_cmds
16894 postuninstall_cmds=$lt_postuninstall_cmds
16896 # Commands used to build a loadable module (assumed same as above if empty)
16897 module_cmds=$lt_module_cmds
16898 module_expsym_cmds=$lt_module_expsym_cmds
16900 # Commands to strip libraries.
16901 old_striplib=$lt_old_striplib
16902 striplib=$lt_striplib
16904 # Dependencies to place before the objects being linked to create a
16906 predep_objects=$lt_predep_objects
16908 # Dependencies to place after the objects being linked to create a
16910 postdep_objects=$lt_postdep_objects
16912 # Dependencies to place before the objects being linked to create a
16914 predeps=$lt_predeps
16916 # Dependencies to place after the objects being linked to create a
16918 postdeps=$lt_postdeps
16920 # The library search path used internally by the compiler when linking
16921 # a shared library.
16922 compiler_lib_search_path=$lt_compiler_lib_search_path
16924 # Method to check whether dependent libraries are shared objects.
16925 deplibs_check_method=$lt_deplibs_check_method
16927 # Command to use when deplibs_check_method == file_magic.
16928 file_magic_cmd=$lt_file_magic_cmd
16930 # Flag that allows shared libraries with undefined symbols to be built.
16931 allow_undefined_flag=$lt_allow_undefined_flag
16933 # Flag that forces no undefined symbols.
16934 no_undefined_flag=$lt_no_undefined_flag
16936 # Commands used to finish a libtool library installation in a directory.
16937 finish_cmds=$lt_finish_cmds
16939 # Same as above, but a single script fragment to be evaled but not shown.
16940 finish_eval=$lt_finish_eval
16942 # Take the output of nm and produce a listing of raw symbols and C names.
16943 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16945 # Transform the output of nm in a proper C declaration
16946 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16948 # Transform the output of nm in a C name address pair
16949 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16951 # This is the shared library runtime path variable.
16952 runpath_var=$runpath_var
16954 # This is the shared library path variable.
16955 shlibpath_var=$shlibpath_var
16957 # Is shlibpath searched before the hard-coded library search path?
16958 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16960 # How to hardcode a shared library path into an executable.
16961 hardcode_action=$hardcode_action
16963 # Whether we should hardcode library paths into libraries.
16964 hardcode_into_libs=$hardcode_into_libs
16966 # Flag to hardcode \$libdir into a binary during linking.
16967 # This must work even if \$libdir does not exist.
16968 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16970 # If ld is used when linking, flag to hardcode \$libdir into
16971 # a binary during linking. This must work even if \$libdir does
16973 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16975 # Whether we need a single -rpath flag with a separated argument.
16976 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16978 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16979 # resulting binary.
16980 hardcode_direct=$hardcode_direct
16982 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16983 # resulting binary.
16984 hardcode_minus_L=$hardcode_minus_L
16986 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16987 # the resulting binary.
16988 hardcode_shlibpath_var=$hardcode_shlibpath_var
16990 # Set to yes if building a shared library automatically hardcodes DIR into the library
16991 # and all subsequent libraries and executables linked against it.
16992 hardcode_automatic=$hardcode_automatic
16994 # Variables whose values should be saved in libtool wrapper scripts and
16995 # restored at relink time.
16996 variables_saved_for_relink="$variables_saved_for_relink"
16998 # Whether libtool must link a program against all its dependency libraries.
16999 link_all_deplibs=$link_all_deplibs
17001 # Compile-time system search path for libraries
17002 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17004 # Run-time system search path for libraries
17005 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17007 # Fix the shell variable \$srcfile for the compiler.
17008 fix_srcfile_path="$fix_srcfile_path"
17010 # Set to yes if exported symbols are required.
17011 always_export_symbols=$always_export_symbols
17013 # The commands to list exported symbols.
17014 export_symbols_cmds=$lt_export_symbols_cmds
17016 # The commands to extract the exported symbol list from a shared archive.
17017 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17019 # Symbols that should not be listed in the preloaded symbols.
17020 exclude_expsyms=$lt_exclude_expsyms
17022 # Symbols that must always be exported.
17023 include_expsyms=$lt_include_expsyms
17025 # ### END LIBTOOL CONFIG
17032 cat <<\EOF >> "$cfgfile"
17034 # AIX sometimes has problems with the GCC collect2 program. For some
17035 # reason, if we set the COLLECT_NAMES environment variable, the problems
17036 # vanish in a puff of smoke.
17037 if test "X${COLLECT_NAMES+set}" != Xset; then
17039 export COLLECT_NAMES
17045 # We use sed instead of cat because bash on DJGPP gets confused if
17046 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17047 # text mode, it properly converts lines to CR/LF. This bash problem
17048 # is reportedly fixed, but why not run on old versions too?
17049 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
17051 mv -f "$cfgfile" "$ofile" || \
17052 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17056 # If there is no Makefile yet, we rely on a make rule to execute
17057 # `config.status --recheck' to rerun these tests and create the
17058 # libtool script then.
17059 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17060 if test -f "$ltmain_in"; then
17061 test -f Makefile && make "$ltmain"
17067 ac_cpp='$CPP $CPPFLAGS'
17068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17075 # Check whether --with-tags or --without-tags was given.
17076 if test "${with_tags+set}" = set; then
17077 withval="$with_tags"
17078 tagnames="$withval"
17081 if test -f "$ltmain" && test -n "$tagnames"; then
17082 if test ! -f "${ofile}"; then
17083 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
17084 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
17087 if test -z "$LTCC"; then
17088 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
17089 if test -z "$LTCC"; then
17090 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
17091 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
17093 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
17094 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
17097 if test -z "$LTCFLAGS"; then
17098 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
17101 # Extract list of available tagged configurations in $ofile.
17102 # Note that this assumes the entire list is on one line.
17103 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
17105 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17106 for tagname in $tagnames; do
17108 # Check whether tagname contains only valid characters
17109 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
17111 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
17112 echo "$as_me: error: invalid tag name: $tagname" >&2;}
17113 { (exit 1); exit 1; }; }
17117 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
17119 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
17120 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
17121 { (exit 1); exit 1; }; }
17124 # Update the list of available tags.
17125 if test -n "$tagname"; then
17126 echo appending configuration tag \"$tagname\" to $ofile
17130 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17131 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17132 (test "X$CXX" != "Xg++"))) ; then
17134 ac_cpp='$CXXCPP $CPPFLAGS'
17135 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17136 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17137 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17142 archive_cmds_need_lc_CXX=no
17143 allow_undefined_flag_CXX=
17144 always_export_symbols_CXX=no
17145 archive_expsym_cmds_CXX=
17146 export_dynamic_flag_spec_CXX=
17147 hardcode_direct_CXX=no
17148 hardcode_libdir_flag_spec_CXX=
17149 hardcode_libdir_flag_spec_ld_CXX=
17150 hardcode_libdir_separator_CXX=
17151 hardcode_minus_L_CXX=no
17152 hardcode_shlibpath_var_CXX=unsupported
17153 hardcode_automatic_CXX=no
17155 module_expsym_cmds_CXX=
17156 link_all_deplibs_CXX=unknown
17157 old_archive_cmds_CXX=$old_archive_cmds
17158 no_undefined_flag_CXX=
17159 whole_archive_flag_spec_CXX=
17160 enable_shared_with_static_runtimes_CXX=no
17162 # Dependencies to place before and after the object being linked:
17163 predep_objects_CXX=
17164 postdep_objects_CXX=
17167 compiler_lib_search_path_CXX=
17169 # Source file extension for C++ test sources.
17172 # Object file extension for compiled C++ test sources.
17176 # Code to be used in simple compile tests
17177 lt_simple_compile_test_code="int some_variable = 0;\n"
17179 # Code to be used in simple link tests
17180 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
17182 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17184 # If no C compiler was specified, use CC.
17187 # If no C compiler flags were specified, use CFLAGS.
17188 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17190 # Allow CC to be a program name with arguments.
17194 # save warnings/boilerplate of simple test code
17195 ac_outfile=conftest.$ac_objext
17196 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17197 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17198 _lt_compiler_boilerplate=`cat conftest.err`
17201 ac_outfile=conftest.$ac_objext
17202 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17203 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17204 _lt_linker_boilerplate=`cat conftest.err`
17208 # Allow CC to be a program name with arguments.
17213 lt_save_with_gnu_ld=$with_gnu_ld
17214 lt_save_path_LD=$lt_cv_path_LD
17215 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17216 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17218 $as_unset lt_cv_prog_gnu_ld
17220 if test -n "${lt_cv_path_LDCXX+set}"; then
17221 lt_cv_path_LD=$lt_cv_path_LDCXX
17223 $as_unset lt_cv_path_LD
17225 test -z "${LDCXX+set}" || LD=$LDCXX
17229 for cc_temp in $compiler""; do
17231 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17232 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17237 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17240 # We don't want -fno-exception wen compiling C++ code, so set the
17241 # no_builtin_flag separately
17242 if test "$GXX" = yes; then
17243 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17245 lt_prog_compiler_no_builtin_flag_CXX=
17248 if test "$GXX" = yes; then
17249 # Set up default GNU C++ configuration
17252 # Check whether --with-gnu-ld or --without-gnu-ld was given.
17253 if test "${with_gnu_ld+set}" = set; then
17254 withval="$with_gnu_ld"
17255 test "$withval" = no || with_gnu_ld=yes
17260 if test "$GCC" = yes; then
17261 # Check if gcc -print-prog-name=ld gives a path.
17262 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
17263 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
17266 # gcc leaves a trailing carriage return which upsets mingw
17267 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17269 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17272 # Accept absolute paths.
17274 re_direlt='/[^/][^/]*/\.\./'
17275 # Canonicalize the pathname of ld
17276 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
17277 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17278 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
17280 test -z "$LD" && LD="$ac_prog"
17283 # If it fails, then pretend we aren't using GCC.
17287 # If it is relative, then search for the first ld in PATH.
17288 with_gnu_ld=unknown
17291 elif test "$with_gnu_ld" = yes; then
17292 echo "$as_me:$LINENO: checking for GNU ld" >&5
17293 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
17295 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
17296 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
17298 if test "${lt_cv_path_LD+set}" = set; then
17299 echo $ECHO_N "(cached) $ECHO_C" >&6
17301 if test -z "$LD"; then
17302 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17303 for ac_dir in $PATH; do
17305 test -z "$ac_dir" && ac_dir=.
17306 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17307 lt_cv_path_LD="$ac_dir/$ac_prog"
17308 # Check to see if the program is GNU ld. I'd rather use --version,
17309 # but apparently some variants of GNU ld only accept -v.
17310 # Break only if it was the GNU/non-GNU ld that we prefer.
17311 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17312 *GNU* | *'with BFD'*)
17313 test "$with_gnu_ld" != no && break
17316 test "$with_gnu_ld" != yes && break
17323 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17327 LD="$lt_cv_path_LD"
17328 if test -n "$LD"; then
17329 echo "$as_me:$LINENO: result: $LD" >&5
17330 echo "${ECHO_T}$LD" >&6
17332 echo "$as_me:$LINENO: result: no" >&5
17333 echo "${ECHO_T}no" >&6
17335 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
17336 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
17337 { (exit 1); exit 1; }; }
17338 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
17339 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
17340 if test "${lt_cv_prog_gnu_ld+set}" = set; then
17341 echo $ECHO_N "(cached) $ECHO_C" >&6
17343 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17344 case `$LD -v 2>&1 </dev/null` in
17345 *GNU* | *'with BFD'*)
17346 lt_cv_prog_gnu_ld=yes
17349 lt_cv_prog_gnu_ld=no
17353 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
17354 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
17355 with_gnu_ld=$lt_cv_prog_gnu_ld
17359 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17360 # archiving commands below assume that GNU ld is being used.
17361 if test "$with_gnu_ld" = yes; then
17362 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17363 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'
17365 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17366 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17368 # If archive_cmds runs LD, not CC, wlarc should be empty
17369 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17370 # investigate it a little bit more. (MM)
17373 # ancient GNU ld didn't support --whole-archive et. al.
17374 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
17375 grep 'no-whole-archive' > /dev/null; then
17376 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17378 whole_archive_flag_spec_CXX=
17384 # A generic and very simple default shared library creation
17385 # command for GNU C++ for the case where it uses the native
17386 # linker, instead of GNU ld. If possible, this setting should
17387 # overridden to take advantage of the native linker features on
17388 # the platform it is being used on.
17389 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17392 # Commands to make compiler produce verbose output that lists
17393 # what "hidden" libraries, object files and flags are used when
17394 # linking a shared library.
17395 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
17403 # PORTME: fill in a description of your system's C++ link characteristics
17404 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17405 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17409 # FIXME: insert proper C++ library support
17413 if test "$host_cpu" = ia64; then
17414 # On IA64, the linker does run time linking by default, so we don't
17415 # have to do anything special.
17416 aix_use_runtimelinking=no
17417 exp_sym_flag='-Bexport'
17420 aix_use_runtimelinking=no
17422 # Test if we are trying to use run time linking or normal
17423 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17424 # need to do runtime linking.
17425 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17426 for ld_flag in $LDFLAGS; do
17429 aix_use_runtimelinking=yes
17437 exp_sym_flag='-bexport'
17438 no_entry_flag='-bnoentry'
17441 # When large executables or shared objects are built, AIX ld can
17442 # have problems creating the table of contents. If linking a library
17443 # or program results in "error TOC overflow" add -mminimal-toc to
17444 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17445 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17447 archive_cmds_CXX=''
17448 hardcode_direct_CXX=yes
17449 hardcode_libdir_separator_CXX=':'
17450 link_all_deplibs_CXX=yes
17452 if test "$GXX" = yes; then
17453 case $host_os in aix4.[012]|aix4.[012].*)
17454 # We only want to do this on AIX 4.2 and lower, the check
17455 # below for broken collect2 doesn't work under 4.3+
17456 collect2name=`${CC} -print-prog-name=collect2`
17457 if test -f "$collect2name" && \
17458 strings "$collect2name" | grep resolve_lib_name >/dev/null
17460 # We have reworked collect2
17461 hardcode_direct_CXX=yes
17463 # We have old collect2
17464 hardcode_direct_CXX=unsupported
17465 # It fails to find uninstalled libraries when the uninstalled
17466 # path is not listed in the libpath. Setting hardcode_minus_L
17467 # to unsupported forces relinking
17468 hardcode_minus_L_CXX=yes
17469 hardcode_libdir_flag_spec_CXX='-L$libdir'
17470 hardcode_libdir_separator_CXX=
17474 shared_flag='-shared'
17475 if test "$aix_use_runtimelinking" = yes; then
17476 shared_flag="$shared_flag "'${wl}-G'
17480 if test "$host_cpu" = ia64; then
17481 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17482 # chokes on -Wl,-G. The following line is correct:
17485 if test "$aix_use_runtimelinking" = yes; then
17486 shared_flag='${wl}-G'
17488 shared_flag='${wl}-bM:SRE'
17493 # It seems that -bexpall does not export symbols beginning with
17494 # underscore (_), so it is better to generate a list of symbols to export.
17495 always_export_symbols_CXX=yes
17496 if test "$aix_use_runtimelinking" = yes; then
17497 # Warning - without using the other runtime loading flags (-brtl),
17498 # -berok will link without error, but may produce a broken library.
17499 allow_undefined_flag_CXX='-berok'
17500 # Determine the default libpath from the value encoded in an empty executable.
17501 cat >conftest.$ac_ext <<_ACEOF
17504 cat confdefs.h >>conftest.$ac_ext
17505 cat >>conftest.$ac_ext <<_ACEOF
17506 /* end confdefs.h. */
17516 rm -f conftest.$ac_objext conftest$ac_exeext
17517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17518 (eval $ac_link) 2>conftest.er1
17520 grep -v '^ *+' conftest.er1 >conftest.err
17522 cat conftest.err >&5
17523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17524 (exit $ac_status); } &&
17525 { ac_try='test -z "$ac_cxx_werror_flag"
17526 || test ! -s conftest.err'
17527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17528 (eval $ac_try) 2>&5
17530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531 (exit $ac_status); }; } &&
17532 { ac_try='test -s conftest$ac_exeext'
17533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17534 (eval $ac_try) 2>&5
17536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17537 (exit $ac_status); }; }; then
17539 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17541 # Check for a 64-bit object if we didn't find anything.
17542 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; }
17545 echo "$as_me: failed program was:" >&5
17546 sed 's/^/| /' conftest.$ac_ext >&5
17549 rm -f conftest.err conftest.$ac_objext \
17550 conftest$ac_exeext conftest.$ac_ext
17551 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17553 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17555 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"
17557 if test "$host_cpu" = ia64; then
17558 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17559 allow_undefined_flag_CXX="-z nodefs"
17560 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"
17562 # Determine the default libpath from the value encoded in an empty executable.
17563 cat >conftest.$ac_ext <<_ACEOF
17566 cat confdefs.h >>conftest.$ac_ext
17567 cat >>conftest.$ac_ext <<_ACEOF
17568 /* end confdefs.h. */
17578 rm -f conftest.$ac_objext conftest$ac_exeext
17579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17580 (eval $ac_link) 2>conftest.er1
17582 grep -v '^ *+' conftest.er1 >conftest.err
17584 cat conftest.err >&5
17585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17586 (exit $ac_status); } &&
17587 { ac_try='test -z "$ac_cxx_werror_flag"
17588 || test ! -s conftest.err'
17589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17590 (eval $ac_try) 2>&5
17592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17593 (exit $ac_status); }; } &&
17594 { ac_try='test -s conftest$ac_exeext'
17595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17596 (eval $ac_try) 2>&5
17598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17599 (exit $ac_status); }; }; then
17601 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17603 # Check for a 64-bit object if we didn't find anything.
17604 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; }
17607 echo "$as_me: failed program was:" >&5
17608 sed 's/^/| /' conftest.$ac_ext >&5
17611 rm -f conftest.err conftest.$ac_objext \
17612 conftest$ac_exeext conftest.$ac_ext
17613 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17615 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17616 # Warning - without using the other run time loading flags,
17617 # -berok will link without error, but may produce a broken library.
17618 no_undefined_flag_CXX=' ${wl}-bernotok'
17619 allow_undefined_flag_CXX=' ${wl}-berok'
17620 # Exported symbols can be pulled into shared objects from archives
17621 whole_archive_flag_spec_CXX='$convenience'
17622 archive_cmds_need_lc_CXX=yes
17623 # This is similar to how AIX traditionally builds its shared libraries.
17624 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'
17630 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17631 allow_undefined_flag_CXX=unsupported
17632 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17633 # support --undefined. This deserves some investigation. FIXME
17634 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17641 case $cc_basename in
17643 # FIXME: insert proper C++ library support
17649 cygwin* | mingw* | pw32*)
17650 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17651 # as there is no search path for DLLs.
17652 hardcode_libdir_flag_spec_CXX='-L$libdir'
17653 allow_undefined_flag_CXX=unsupported
17654 always_export_symbols_CXX=no
17655 enable_shared_with_static_runtimes_CXX=yes
17657 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17658 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'
17659 # If the export-symbols file already is a .def file (1st line
17660 # is EXPORTS), use it as is; otherwise, prepend...
17661 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17662 cp $export_symbols $output_objdir/$soname.def;
17664 echo EXPORTS > $output_objdir/$soname.def;
17665 cat $export_symbols >> $output_objdir/$soname.def;
17667 $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'
17672 darwin* | rhapsody*)
17674 rhapsody* | darwin1.[012])
17675 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
17678 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17679 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17681 case ${MACOSX_DEPLOYMENT_TARGET} in
17683 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17686 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
17692 archive_cmds_need_lc_CXX=no
17693 hardcode_direct_CXX=no
17694 hardcode_automatic_CXX=yes
17695 hardcode_shlibpath_var_CXX=unsupported
17696 whole_archive_flag_spec_CXX=''
17697 link_all_deplibs_CXX=yes
17699 if test "$GXX" = yes ; then
17700 lt_int_apple_cc_single_mod=no
17701 output_verbose_link_cmd='echo'
17702 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
17703 lt_int_apple_cc_single_mod=yes
17705 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17706 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17708 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'
17710 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17711 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17712 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17713 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}'
17715 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}'
17717 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}'
17719 case $cc_basename in
17721 output_verbose_link_cmd='echo'
17722 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'
17723 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17724 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17725 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}'
17726 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}'
17736 case $cc_basename in
17738 # FIXME: insert proper C++ library support
17742 # Green Hills C++ Compiler
17743 # FIXME: insert proper C++ library support
17747 # FIXME: insert proper C++ library support
17753 # C++ shared libraries reported to be fairly broken before switch to ELF
17757 archive_cmds_need_lc_CXX=no
17759 freebsd* | kfreebsd*-gnu | dragonfly*)
17760 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17767 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17768 hardcode_libdir_separator_CXX=:
17769 export_dynamic_flag_spec_CXX='${wl}-E'
17770 hardcode_direct_CXX=yes
17771 hardcode_minus_L_CXX=yes # Not in the search PATH,
17772 # but as the default
17773 # location of the library.
17775 case $cc_basename in
17777 # FIXME: insert proper C++ library support
17781 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'
17782 # Commands to make compiler produce verbose output that lists
17783 # what "hidden" libraries, object files and flags are used when
17784 # linking a shared library.
17786 # There doesn't appear to be a way to prevent this compiler from
17787 # explicitly linking system object files so we need to strip them
17788 # from the output so that they don't get included in the library
17790 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'
17793 if test "$GXX" = yes; then
17794 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'
17796 # FIXME: insert proper C++ library support
17803 if test $with_gnu_ld = no; then
17804 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17805 hardcode_libdir_separator_CXX=:
17809 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
17812 export_dynamic_flag_spec_CXX='${wl}-E'
17818 hardcode_direct_CXX=no
17819 hardcode_shlibpath_var_CXX=no
17822 hardcode_direct_CXX=yes
17823 hardcode_minus_L_CXX=yes # Not in the search PATH,
17824 # but as the default
17825 # location of the library.
17829 case $cc_basename in
17831 # FIXME: insert proper C++ library support
17837 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17840 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17843 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17846 # Commands to make compiler produce verbose output that lists
17847 # what "hidden" libraries, object files and flags are used when
17848 # linking a shared library.
17850 # There doesn't appear to be a way to prevent this compiler from
17851 # explicitly linking system object files so we need to strip them
17852 # from the output so that they don't get included in the library
17854 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'
17857 if test "$GXX" = yes; then
17858 if test $with_gnu_ld = no; then
17861 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17864 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17867 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'
17872 # FIXME: insert proper C++ library support
17879 hardcode_direct_CXX=no
17880 hardcode_shlibpath_var_CXX=no
17881 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17882 export_dynamic_flag_spec_CXX='${wl}-E'
17883 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17884 # Instead, shared libraries are loaded at an image base (0x10000000 by
17885 # default) and relocated if they conflict, which is a slow very memory
17886 # consuming and fragmenting process. To avoid this, we pick a random,
17887 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17888 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17889 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'
17890 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'
17893 case $cc_basename in
17896 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'
17898 # Archives containing C++ object files must be created using
17899 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
17900 # necessary to make sure instantiated templates are included
17902 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17905 if test "$GXX" = yes; then
17906 if test "$with_gnu_ld" = no; then
17907 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'
17909 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'
17912 link_all_deplibs_CXX=yes
17915 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17916 hardcode_libdir_separator_CXX=:
17919 case $cc_basename in
17921 # Kuck and Associates, Inc. (KAI) C++ Compiler
17923 # KCC will only create a shared library if the output file
17924 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17925 # to its proper name (with version) after linking.
17926 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'
17927 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'
17928 # Commands to make compiler produce verbose output that lists
17929 # what "hidden" libraries, object files and flags are used when
17930 # linking a shared library.
17932 # There doesn't appear to be a way to prevent this compiler from
17933 # explicitly linking system object files so we need to strip them
17934 # from the output so that they don't get included in the library
17936 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'
17938 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
17939 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17941 # Archives containing C++ object files must be created using
17942 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17943 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17948 # version 8.0 and above of icpc choke on multiply defined symbols
17949 # if we add $predep_objects and $postdep_objects, however 7.1 and
17950 # earlier do not add the objects themselves.
17951 case `$CC -V 2>&1` in
17953 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17954 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'
17956 *) # Version 8.0 or newer
17959 ia64*) tmp_idyn=' -i_dynamic';;
17961 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17962 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'
17965 archive_cmds_need_lc_CXX=no
17966 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17967 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17968 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17971 # Portland Group C++ compiler
17972 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17973 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'
17975 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17976 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17977 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'
17981 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17982 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'
17984 runpath_var=LD_RUN_PATH
17985 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17986 hardcode_libdir_separator_CXX=:
17988 # Commands to make compiler produce verbose output that lists
17989 # what "hidden" libraries, object files and flags are used when
17990 # linking a shared library.
17992 # There doesn't appear to be a way to prevent this compiler from
17993 # explicitly linking system object files so we need to strip them
17994 # from the output so that they don't get included in the library
17996 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'
18001 # FIXME: insert proper C++ library support
18005 # FIXME: insert proper C++ library support
18009 case $cc_basename in
18011 # FIXME: insert proper C++ library support
18015 # FIXME: insert proper C++ library support
18021 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18022 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18024 hardcode_libdir_flag_spec_CXX='-R$libdir'
18025 hardcode_direct_CXX=yes
18026 hardcode_shlibpath_var_CXX=no
18028 # Workaround some broken pre-1.5 toolchains
18029 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18032 # C++ shared libraries are fairly broken
18036 hardcode_direct_CXX=yes
18037 hardcode_shlibpath_var_CXX=no
18038 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18039 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18040 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18041 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18042 export_dynamic_flag_spec_CXX='${wl}-E'
18043 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18045 output_verbose_link_cmd='echo'
18048 case $cc_basename in
18050 # Kuck and Associates, Inc. (KAI) C++ Compiler
18052 # KCC will only create a shared library if the output file
18053 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18054 # to its proper name (with version) after linking.
18055 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'
18057 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18058 hardcode_libdir_separator_CXX=:
18060 # Archives containing C++ object files must be created using
18061 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18062 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18066 # Rational C++ 2.4.1
18067 # FIXME: insert proper C++ library support
18071 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18072 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'
18074 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18075 hardcode_libdir_separator_CXX=:
18077 # Commands to make compiler produce verbose output that lists
18078 # what "hidden" libraries, object files and flags are used when
18079 # linking a shared library.
18081 # There doesn't appear to be a way to prevent this compiler from
18082 # explicitly linking system object files so we need to strip them
18083 # from the output so that they don't get included in the library
18085 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'
18088 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18089 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18090 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'
18092 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18093 hardcode_libdir_separator_CXX=:
18095 # Commands to make compiler produce verbose output that lists
18096 # what "hidden" libraries, object files and flags are used when
18097 # linking a shared library.
18098 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18101 # FIXME: insert proper C++ library support
18108 case $cc_basename in
18110 # Kuck and Associates, Inc. (KAI) C++ Compiler
18112 # KCC will only create a shared library if the output file
18113 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18114 # to its proper name (with version) after linking.
18115 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'
18117 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18118 hardcode_libdir_separator_CXX=:
18120 # Archives containing C++ object files must be created using
18121 # the KAI C++ compiler.
18122 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
18125 # Rational C++ 2.4.1
18126 # FIXME: insert proper C++ library support
18130 allow_undefined_flag_CXX=' -expect_unresolved \*'
18131 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'
18132 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18133 echo "-hidden">> $lib.exp~
18134 $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~
18137 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18138 hardcode_libdir_separator_CXX=:
18140 # Commands to make compiler produce verbose output that lists
18141 # what "hidden" libraries, object files and flags are used when
18142 # linking a shared library.
18144 # There doesn't appear to be a way to prevent this compiler from
18145 # explicitly linking system object files so we need to strip them
18146 # from the output so that they don't get included in the library
18148 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'
18151 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18152 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18153 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'
18155 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18156 hardcode_libdir_separator_CXX=:
18158 # Commands to make compiler produce verbose output that lists
18159 # what "hidden" libraries, object files and flags are used when
18160 # linking a shared library.
18161 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18164 # FIXME: insert proper C++ library support
18171 # FIXME: insert proper C++ library support
18175 case $cc_basename in
18178 # FIXME: insert proper C++ library support
18183 # FIXME: insert proper C++ library support
18187 # FIXME: insert proper C++ library support
18193 case $cc_basename in
18195 # Sun C++ 4.2, 5.x and Centerline C++
18196 archive_cmds_need_lc_CXX=yes
18197 no_undefined_flag_CXX=' -zdefs'
18198 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18199 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18200 $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'
18202 hardcode_libdir_flag_spec_CXX='-R$libdir'
18203 hardcode_shlibpath_var_CXX=no
18205 solaris2.[0-5] | solaris2.[0-5].*) ;;
18207 # The C++ compiler is used as linker so we must use $wl
18208 # flag to pass the commands to the underlying system
18209 # linker. We must also pass each convience library through
18210 # to the system linker between allextract/defaultextract.
18211 # The C++ compiler will combine linker options so we
18212 # cannot just pass the convience library names through
18214 # Supported since Solaris 2.6 (maybe 2.5.1?)
18215 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'
18218 link_all_deplibs_CXX=yes
18220 output_verbose_link_cmd='echo'
18222 # Archives containing C++ object files must be created using
18223 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18224 # necessary to make sure instantiated templates are included
18226 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18229 # Green Hills C++ Compiler
18230 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18232 # The C++ compiler must be used to create the archive.
18233 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18236 # GNU C++ compiler with Solaris linker
18237 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18238 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18239 if $CC --version | grep -v '^2\.7' > /dev/null; then
18240 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18241 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18242 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18244 # Commands to make compiler produce verbose output that lists
18245 # what "hidden" libraries, object files and flags are used when
18246 # linking a shared library.
18247 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18249 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18251 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18252 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18253 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18255 # Commands to make compiler produce verbose output that lists
18256 # what "hidden" libraries, object files and flags are used when
18257 # linking a shared library.
18258 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18261 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18266 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18267 no_undefined_flag_CXX='${wl}-z,text'
18268 archive_cmds_need_lc_CXX=no
18269 hardcode_shlibpath_var_CXX=no
18270 runpath_var='LD_RUN_PATH'
18272 case $cc_basename in
18274 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18275 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18278 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18279 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18283 sysv5* | sco3.2v5* | sco5v6*)
18284 # Note: We can NOT use -z defs as we might desire, because we do not
18285 # link with -lc, and that would cause any symbols used from libc to
18286 # always be unresolved, which means just about no library would
18287 # ever link correctly. If we're not using GNU ld we use -z text
18288 # though, which does catch some bad symbols but isn't as heavy-handed
18290 # For security reasons, it is highly recommended that you always
18291 # use absolute paths for naming shared libraries, and exclude the
18292 # DT_RUNPATH tag from executables and libraries. But doing so
18293 # requires that you compile everything twice, which is a pain.
18294 # So that behaviour is only enabled if SCOABSPATH is set to a
18295 # non-empty value in the environment. Most likely only useful for
18296 # creating official distributions of packages.
18297 # This is a hack until libtool officially supports absolute path
18298 # names for shared libraries.
18299 no_undefined_flag_CXX='${wl}-z,text'
18300 allow_undefined_flag_CXX='${wl}-z,nodefs'
18301 archive_cmds_need_lc_CXX=no
18302 hardcode_shlibpath_var_CXX=no
18303 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18304 hardcode_libdir_separator_CXX=':'
18305 link_all_deplibs_CXX=yes
18306 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18307 runpath_var='LD_RUN_PATH'
18309 case $cc_basename in
18311 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18312 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18315 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18316 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18321 case $cc_basename in
18323 # NonStop-UX NCC 3.20
18324 # FIXME: insert proper C++ library support
18328 # FIXME: insert proper C++ library support
18334 # FIXME: insert proper C++ library support
18338 # FIXME: insert proper C++ library support
18342 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
18343 echo "${ECHO_T}$ld_shlibs_CXX" >&6
18344 test "$ld_shlibs_CXX" = no && can_build_shared=no
18350 cat > conftest.$ac_ext <<EOF
18354 Foo (void) { a = 0; }
18360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18361 (eval $ac_compile) 2>&5
18363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18364 (exit $ac_status); }; then
18365 # Parse the compiler output and extract the necessary
18366 # objects, libraries and library flags.
18368 # Sentinel used to keep track of whether or not we are before
18369 # the conftest object file.
18370 pre_test_object_deps_done=no
18372 # The `*' in the case matches for architectures that use `case' in
18373 # $output_verbose_cmd can trigger glob expansion during the loop
18374 # eval without this substitution.
18375 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
18377 for p in `eval $output_verbose_link_cmd`; do
18381 # Some compilers place space between "-{L,R}" and the path.
18382 # Remove the space.
18383 if test $p = "-L" \
18384 || test $p = "-R"; then
18391 if test "$pre_test_object_deps_done" = no; then
18394 # Internal compiler library paths should come after those
18395 # provided the user. The postdeps already come after the
18396 # user supplied libs so there is no need to process them.
18397 if test -z "$compiler_lib_search_path_CXX"; then
18398 compiler_lib_search_path_CXX="${prev}${p}"
18400 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18403 # The "-l" case would never come before the object being
18404 # linked, so don't bother handling this case.
18407 if test -z "$postdeps_CXX"; then
18408 postdeps_CXX="${prev}${p}"
18410 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18416 # This assumes that the test object file only shows up
18417 # once in the compiler output.
18418 if test "$p" = "conftest.$objext"; then
18419 pre_test_object_deps_done=yes
18423 if test "$pre_test_object_deps_done" = no; then
18424 if test -z "$predep_objects_CXX"; then
18425 predep_objects_CXX="$p"
18427 predep_objects_CXX="$predep_objects_CXX $p"
18430 if test -z "$postdep_objects_CXX"; then
18431 postdep_objects_CXX="$p"
18433 postdep_objects_CXX="$postdep_objects_CXX $p"
18438 *) ;; # Ignore the rest.
18446 echo "libtool.m4: error: problem compiling CXX test program"
18449 $rm -f confest.$objext
18451 # PORTME: override above test on systems where it is broken
18454 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18455 # hack all around it, let's just trust "g++" to DTRT.
18456 predep_objects_CXX=
18457 postdep_objects_CXX=
18462 case $cc_basename in
18464 # Adding this requires a known-good setup of shared libraries for
18465 # Sun compiler versions before 5.6, else PIC objects from an old
18466 # archive will be linked into the output, leading to subtle bugs.
18467 postdeps_CXX='-lCstd -lCrun'
18474 case " $postdeps_CXX " in
18475 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
18478 lt_prog_compiler_wl_CXX=
18479 lt_prog_compiler_pic_CXX=
18480 lt_prog_compiler_static_CXX=
18482 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18483 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18485 # C++ specific cases for pic, static, wl, etc.
18486 if test "$GXX" = yes; then
18487 lt_prog_compiler_wl_CXX='-Wl,'
18488 lt_prog_compiler_static_CXX='-static'
18492 # All AIX code is PIC.
18493 if test "$host_cpu" = ia64; then
18494 # AIX 5 now supports IA64 processor
18495 lt_prog_compiler_static_CXX='-Bstatic'
18499 # FIXME: we need at least 68020 code to build shared libraries, but
18500 # adding the `-m68020' flag to GCC prevents building anything better,
18502 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18504 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18505 # PIC is the default for these OSes.
18507 mingw* | os2* | pw32*)
18508 # This hack is so that the source file can tell whether it is being
18509 # built for inclusion in a dll (and should export symbols for example).
18510 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18512 darwin* | rhapsody*)
18513 # PIC is the default on this platform
18514 # Common symbols not allowed in MH_DYLIB files
18515 lt_prog_compiler_pic_CXX='-fno-common'
18518 # DJGPP does not support shared libraries at all
18519 lt_prog_compiler_pic_CXX=
18522 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18523 # Instead, we relocate shared libraries at runtime.
18526 if test -d /usr/nec; then
18527 lt_prog_compiler_pic_CXX=-Kconform_pic
18531 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18532 # not for PA HP-UX.
18537 lt_prog_compiler_pic_CXX='-fPIC'
18542 lt_prog_compiler_pic_CXX='-fPIC'
18548 # All AIX code is PIC.
18549 if test "$host_cpu" = ia64; then
18550 # AIX 5 now supports IA64 processor
18551 lt_prog_compiler_static_CXX='-Bstatic'
18553 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18557 case $cc_basename in
18559 # Green Hills C++ Compiler
18560 # _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"
18565 # PIC is the default on this platform
18566 # Common symbols not allowed in MH_DYLIB files
18567 case $cc_basename in
18569 lt_prog_compiler_pic_CXX='-qnocommon'
18570 lt_prog_compiler_wl_CXX='-Wl,'
18575 case $cc_basename in
18577 lt_prog_compiler_pic_CXX='-KPIC'
18580 # Green Hills C++ Compiler
18581 lt_prog_compiler_pic_CXX='-pic'
18587 freebsd* | kfreebsd*-gnu | dragonfly*)
18588 # FreeBSD uses GNU C++
18590 hpux9* | hpux10* | hpux11*)
18591 case $cc_basename in
18593 lt_prog_compiler_wl_CXX='-Wl,'
18594 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18595 if test "$host_cpu" != ia64; then
18596 lt_prog_compiler_pic_CXX='+Z'
18600 lt_prog_compiler_wl_CXX='-Wl,'
18601 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18607 lt_prog_compiler_pic_CXX='+Z'
18616 # This is c89, which is MS Visual C++ (no shared libs)
18617 # Anyone wants to do a port?
18619 irix5* | irix6* | nonstopux*)
18620 case $cc_basename in
18622 lt_prog_compiler_wl_CXX='-Wl,'
18623 lt_prog_compiler_static_CXX='-non_shared'
18624 # CC pic flag -KPIC is the default.
18631 case $cc_basename in
18634 lt_prog_compiler_wl_CXX='--backend -Wl,'
18635 lt_prog_compiler_pic_CXX='-fPIC'
18639 lt_prog_compiler_wl_CXX='-Wl,'
18640 lt_prog_compiler_pic_CXX='-KPIC'
18641 lt_prog_compiler_static_CXX='-static'
18644 # Portland Group C++ compiler.
18645 lt_prog_compiler_wl_CXX='-Wl,'
18646 lt_prog_compiler_pic_CXX='-fpic'
18647 lt_prog_compiler_static_CXX='-Bstatic'
18651 # Make sure the PIC flag is empty. It appears that all Alpha
18652 # Linux and Compaq Tru64 Unix objects are PIC.
18653 lt_prog_compiler_pic_CXX=
18654 lt_prog_compiler_static_CXX='-non_shared'
18665 case $cc_basename in
18667 lt_prog_compiler_pic_CXX='-W c,exportall'
18675 osf3* | osf4* | osf5*)
18676 case $cc_basename in
18678 lt_prog_compiler_wl_CXX='--backend -Wl,'
18681 # Rational C++ 2.4.1
18682 lt_prog_compiler_pic_CXX='-pic'
18685 # Digital/Compaq C++
18686 lt_prog_compiler_wl_CXX='-Wl,'
18687 # Make sure the PIC flag is empty. It appears that all Alpha
18688 # Linux and Compaq Tru64 Unix objects are PIC.
18689 lt_prog_compiler_pic_CXX=
18690 lt_prog_compiler_static_CXX='-non_shared'
18699 case $cc_basename in
18701 # Sun C++ 4.2, 5.x and Centerline C++
18702 lt_prog_compiler_pic_CXX='-KPIC'
18703 lt_prog_compiler_static_CXX='-Bstatic'
18704 lt_prog_compiler_wl_CXX='-Qoption ld '
18707 # Green Hills C++ Compiler
18708 lt_prog_compiler_pic_CXX='-PIC'
18715 case $cc_basename in
18718 lt_prog_compiler_pic_CXX='-pic'
18719 lt_prog_compiler_static_CXX='-Bstatic'
18723 lt_prog_compiler_pic_CXX='-pic'
18730 case $cc_basename in
18732 # NonStop-UX NCC 3.20
18733 lt_prog_compiler_pic_CXX='-KPIC'
18739 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18740 case $cc_basename in
18742 lt_prog_compiler_wl_CXX='-Wl,'
18743 lt_prog_compiler_pic_CXX='-KPIC'
18744 lt_prog_compiler_static_CXX='-Bstatic'
18751 lt_prog_compiler_can_build_shared_CXX=no
18756 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
18757 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
18760 # Check to make sure the PIC flag actually works.
18762 if test -n "$lt_prog_compiler_pic_CXX"; then
18764 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18765 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
18766 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
18767 echo $ECHO_N "(cached) $ECHO_C" >&6
18769 lt_prog_compiler_pic_works_CXX=no
18770 ac_outfile=conftest.$ac_objext
18771 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18772 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
18773 # Insert the option either (1) after the last *FLAGS variable, or
18774 # (2) before a word containing "conftest.", or (3) at the end.
18775 # Note that $ac_compile itself does not contain backslashes and begins
18776 # with a dollar sign (not a hyphen), so the echo should work correctly.
18777 # The option is referenced via a variable to avoid confusing sed.
18778 lt_compile=`echo "$ac_compile" | $SED \
18779 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18780 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18781 -e 's:$: $lt_compiler_flag:'`
18782 (eval echo "\"\$as_me:18782: $lt_compile\"" >&5)
18783 (eval "$lt_compile" 2>conftest.err)
18785 cat conftest.err >&5
18786 echo "$as_me:18786: \$? = $ac_status" >&5
18787 if (exit $ac_status) && test -s "$ac_outfile"; then
18788 # The compiler can only warn and ignore the option if not recognized
18789 # So say no if there are warnings other than the usual output.
18790 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18791 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18792 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18793 lt_prog_compiler_pic_works_CXX=yes
18799 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
18800 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
18802 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
18803 case $lt_prog_compiler_pic_CXX in
18805 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18808 lt_prog_compiler_pic_CXX=
18809 lt_prog_compiler_can_build_shared_CXX=no
18814 # For platforms which do not support PIC, -DPIC is meaningless:
18816 lt_prog_compiler_pic_CXX=
18819 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18824 # Check to make sure the static flag actually works.
18826 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18827 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18828 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
18829 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
18830 echo $ECHO_N "(cached) $ECHO_C" >&6
18832 lt_prog_compiler_static_works_CXX=no
18833 save_LDFLAGS="$LDFLAGS"
18834 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18835 printf "$lt_simple_link_test_code" > conftest.$ac_ext
18836 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18837 # The linker can only warn and ignore the option if not recognized
18838 # So say no if there are warnings
18839 if test -s conftest.err; then
18840 # Append any errors to the config.log.
18841 cat conftest.err 1>&5
18842 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18843 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18844 if diff conftest.exp conftest.er2 >/dev/null; then
18845 lt_prog_compiler_static_works_CXX=yes
18848 lt_prog_compiler_static_works_CXX=yes
18852 LDFLAGS="$save_LDFLAGS"
18855 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
18856 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
18858 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
18861 lt_prog_compiler_static_CXX=
18865 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18866 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18867 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
18868 echo $ECHO_N "(cached) $ECHO_C" >&6
18870 lt_cv_prog_compiler_c_o_CXX=no
18871 $rm -r conftest 2>/dev/null
18875 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18877 lt_compiler_flag="-o out/conftest2.$ac_objext"
18878 # Insert the option either (1) after the last *FLAGS variable, or
18879 # (2) before a word containing "conftest.", or (3) at the end.
18880 # Note that $ac_compile itself does not contain backslashes and begins
18881 # with a dollar sign (not a hyphen), so the echo should work correctly.
18882 lt_compile=`echo "$ac_compile" | $SED \
18883 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18884 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18885 -e 's:$: $lt_compiler_flag:'`
18886 (eval echo "\"\$as_me:18886: $lt_compile\"" >&5)
18887 (eval "$lt_compile" 2>out/conftest.err)
18889 cat out/conftest.err >&5
18890 echo "$as_me:18890: \$? = $ac_status" >&5
18891 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18893 # The compiler can only warn and ignore the option if not recognized
18894 # So say no if there are warnings
18895 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18896 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18897 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18898 lt_cv_prog_compiler_c_o_CXX=yes
18903 # SGI C++ compiler will create directory out/ii_files/ for
18904 # template instantiation
18905 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18906 $rm out/* && rmdir out
18912 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18913 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
18916 hard_links="nottested"
18917 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
18918 # do not overwrite the value of need_locks provided by the user
18919 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18920 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
18923 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18925 ln conftest.a conftest.b 2>&5 || hard_links=no
18926 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18927 echo "$as_me:$LINENO: result: $hard_links" >&5
18928 echo "${ECHO_T}$hard_links" >&6
18929 if test "$hard_links" = no; then
18930 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18931 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18938 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18939 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
18941 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18944 # If we're using GNU nm, then we don't want the "-C" option.
18945 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18946 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18947 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'
18949 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'
18953 export_symbols_cmds_CXX="$ltdll_cmds"
18956 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'
18959 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18963 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
18964 echo "${ECHO_T}$ld_shlibs_CXX" >&6
18965 test "$ld_shlibs_CXX" = no && can_build_shared=no
18968 # Do we need to explicitly link libc?
18970 case "x$archive_cmds_need_lc_CXX" in
18972 # Assume -lc should be added
18973 archive_cmds_need_lc_CXX=yes
18975 if test "$enable_shared" = yes && test "$GCC" = yes; then
18976 case $archive_cmds_CXX in
18978 # FIXME: we may have to deal with multi-command sequences.
18981 # Test whether the compiler implicitly links with -lc since on some
18982 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18983 # to ld, don't add -lc before -lgcc.
18984 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18985 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18987 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18990 (eval $ac_compile) 2>&5
18992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18993 (exit $ac_status); } 2>conftest.err; then
18996 libobjs=conftest.$ac_objext
18998 wl=$lt_prog_compiler_wl_CXX
18999 pic_flag=$lt_prog_compiler_pic_CXX
19005 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19006 allow_undefined_flag_CXX=
19007 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19008 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19011 (exit $ac_status); }
19013 archive_cmds_need_lc_CXX=no
19015 archive_cmds_need_lc_CXX=yes
19017 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19019 cat conftest.err 1>&5
19022 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19023 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
19030 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19031 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19032 library_names_spec=
19033 libname_spec='lib$name'
19037 postuninstall_cmds=
19041 shlibpath_overrides_runpath=unknown
19043 dynamic_linker="$host_os ld.so"
19044 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19045 if test "$GCC" = yes; then
19046 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19047 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19048 # if the path contains ";" then we assume it to be the separator
19049 # otherwise default to the standard path separator (i.e. ":") - it is
19050 # assumed that no part of a normal pathname contains ";" but that should
19051 # okay in the real world where ";" in dirpaths is itself problematic.
19052 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19054 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19057 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19059 need_lib_prefix=unknown
19060 hardcode_into_libs=no
19062 # when you set need_version to no, make sure it does not cause -set_version
19063 # flags to be left without arguments
19064 need_version=unknown
19069 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19070 shlibpath_var=LIBPATH
19072 # AIX 3 has no versioning support, so we append a major version to the name.
19073 soname_spec='${libname}${release}${shared_ext}$major'
19080 hardcode_into_libs=yes
19081 if test "$host_cpu" = ia64; then
19082 # AIX 5 supports IA64
19083 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19084 shlibpath_var=LD_LIBRARY_PATH
19086 # With GCC up to 2.95.x, collect2 would create an import file
19087 # for dependence libraries. The import file would start with
19088 # the line `#! .'. This would cause the generated library to
19089 # depend on `.', always an invalid library. This was fixed in
19090 # development snapshots of GCC prior to 3.0.
19092 aix4 | aix4.[01] | aix4.[01].*)
19093 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19095 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19098 can_build_shared=no
19102 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19103 # soname into executable. Probably we can add versioning support to
19104 # collect2, so additional links can be useful in future.
19105 if test "$aix_use_runtimelinking" = yes; then
19106 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19107 # instead of lib<name>.a to let people know that these are not
19108 # typical AIX shared libraries.
19109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19111 # We preserve .a as extension for shared libraries through AIX4.2
19112 # and later when we are not doing run time linking.
19113 library_names_spec='${libname}${release}.a $libname.a'
19114 soname_spec='${libname}${release}${shared_ext}$major'
19116 shlibpath_var=LIBPATH
19121 library_names_spec='$libname.ixlibrary $libname.a'
19122 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19123 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'
19127 library_names_spec='${libname}${shared_ext}'
19128 dynamic_linker="$host_os ld.so"
19129 shlibpath_var=LIBRARY_PATH
19135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19136 soname_spec='${libname}${release}${shared_ext}$major'
19137 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19138 shlibpath_var=LD_LIBRARY_PATH
19139 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19140 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19141 # the default ld.so.conf also contains /usr/contrib/lib and
19142 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19143 # libtool to hard-code these into programs
19146 cygwin* | mingw* | pw32*)
19147 version_type=windows
19152 case $GCC,$host_os in
19153 yes,cygwin* | yes,mingw* | yes,pw32*)
19154 library_names_spec='$libname.dll.a'
19155 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19156 postinstall_cmds='base_file=`basename \${file}`~
19157 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19158 dldir=$destdir/`dirname \$dlpath`~
19159 test -d \$dldir || mkdir -p \$dldir~
19160 $install_prog $dir/$dlname \$dldir/$dlname~
19161 chmod a+x \$dldir/$dlname'
19162 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19163 dlpath=$dir/\$dldll~
19165 shlibpath_overrides_runpath=yes
19169 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19170 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19171 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19174 # MinGW DLLs use traditional 'lib' prefix
19175 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19176 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19177 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19178 # It is most probably a Windows format PATH printed by
19179 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19180 # path with ; separators, and with drive letters. We can handle the
19181 # drive letters (cygwin fileutils understands them), so leave them,
19182 # especially as we might pass files found there to a mingw objdump,
19183 # which wouldn't understand a cygwinified path. Ahh.
19184 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19186 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19190 # pw32 DLLs use 'pw' prefix rather than 'lib'
19191 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19197 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19200 dynamic_linker='Win32 ld.exe'
19201 # FIXME: first we should search . and the directory the executable is in
19205 darwin* | rhapsody*)
19206 dynamic_linker="$host_os dyld"
19207 version_type=darwin
19210 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19211 soname_spec='${libname}${release}${major}$shared_ext'
19212 shlibpath_overrides_runpath=yes
19213 shlibpath_var=DYLD_LIBRARY_PATH
19214 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19215 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19216 if test "$GCC" = yes; then
19217 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"`
19219 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19221 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19229 soname_spec='${libname}${release}${shared_ext}$major'
19230 shlibpath_var=LD_LIBRARY_PATH
19241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19242 soname_spec='${libname}${release}${shared_ext}$major'
19243 shlibpath_var=LD_LIBRARY_PATH
19244 shlibpath_overrides_runpath=no
19245 hardcode_into_libs=yes
19246 dynamic_linker='GNU ld.so'
19249 freebsd* | dragonfly*)
19250 # DragonFly does not have aout. When/if they implement a new
19251 # versioning mechanism, adjust this.
19252 if test -x /usr/bin/objformat; then
19253 objformat=`/usr/bin/objformat`
19256 freebsd[123]*) objformat=aout ;;
19257 *) objformat=elf ;;
19260 version_type=freebsd-$objformat
19261 case $version_type in
19263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19268 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19272 shlibpath_var=LD_LIBRARY_PATH
19275 shlibpath_overrides_runpath=yes
19277 freebsd3.[01]* | freebsdelf3.[01]*)
19278 shlibpath_overrides_runpath=yes
19279 hardcode_into_libs=yes
19281 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19282 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19283 shlibpath_overrides_runpath=no
19284 hardcode_into_libs=yes
19286 freebsd*) # from 4.6 on
19287 shlibpath_overrides_runpath=yes
19288 hardcode_into_libs=yes
19297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19298 soname_spec='${libname}${release}${shared_ext}$major'
19299 shlibpath_var=LD_LIBRARY_PATH
19300 hardcode_into_libs=yes
19303 hpux9* | hpux10* | hpux11*)
19304 # Give a soname corresponding to the major version so that dld.sl refuses to
19305 # link against other versions.
19312 hardcode_into_libs=yes
19313 dynamic_linker="$host_os dld.so"
19314 shlibpath_var=LD_LIBRARY_PATH
19315 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19317 soname_spec='${libname}${release}${shared_ext}$major'
19318 if test "X$HPUX_IA64_MODE" = X32; then
19319 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19321 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19323 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19327 hardcode_into_libs=yes
19328 dynamic_linker="$host_os dld.sl"
19329 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19330 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19332 soname_spec='${libname}${release}${shared_ext}$major'
19333 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19334 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19338 dynamic_linker="$host_os dld.sl"
19339 shlibpath_var=SHLIB_PATH
19340 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19342 soname_spec='${libname}${release}${shared_ext}$major'
19345 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19346 postinstall_cmds='chmod 555 $lib'
19353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19354 soname_spec='${libname}${release}${shared_ext}$major'
19355 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19356 shlibpath_var=LD_LIBRARY_PATH
19357 shlibpath_overrides_runpath=no
19358 hardcode_into_libs=yes
19361 irix5* | irix6* | nonstopux*)
19363 nonstopux*) version_type=nonstopux ;;
19365 if test "$lt_cv_prog_gnu_ld" = yes; then
19373 soname_spec='${libname}${release}${shared_ext}$major'
19374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19376 irix5* | nonstopux*)
19377 libsuff= shlibsuff=
19380 case $LD in # libtool.m4 will add one of these switches to LD
19381 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19382 libsuff= shlibsuff= libmagic=32-bit;;
19383 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19384 libsuff=32 shlibsuff=N32 libmagic=N32;;
19385 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19386 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19387 *) libsuff= shlibsuff= libmagic=never-match;;
19391 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19392 shlibpath_overrides_runpath=no
19393 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19394 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19395 hardcode_into_libs=yes
19398 # No shared lib support for Linux oldld, aout, or coff.
19399 linux*oldld* | linux*aout* | linux*coff*)
19403 # This must be Linux ELF.
19408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19409 soname_spec='${libname}${release}${shared_ext}$major'
19410 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19411 shlibpath_var=LD_LIBRARY_PATH
19412 shlibpath_overrides_runpath=no
19413 # This implies no fast_install, which is unacceptable.
19414 # Some rework will be needed to allow for fast_install
19415 # before this can be enabled.
19416 hardcode_into_libs=yes
19418 # find out which ABI we are using
19420 case "$host_cpu" in
19421 x86_64*|s390x*|powerpc64*)
19422 echo '#line 19422 "configure"' > conftest.$ac_ext
19423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19424 (eval $ac_compile) 2>&5
19426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19427 (exit $ac_status); }; then
19428 case `/usr/bin/file conftest.$ac_objext` in
19431 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
19439 # Append ld.so.conf contents to the search path
19440 if test -f /etc/ld.so.conf; then
19441 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
19442 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
19445 # We used to test for /lib/ld.so.1 and disable shared libraries on
19446 # powerpc, because MkLinux only supported shared libraries with the
19447 # GNU dynamic linker. Since this was broken with cross compilers,
19448 # most powerpc-linux boxes support dynamic linking these days and
19449 # people can always --disable-shared, the test was removed, and we
19450 # assume the GNU/Linux dynamic linker is in use.
19451 dynamic_linker='GNU/Linux ld.so'
19458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19459 soname_spec='${libname}${release}${shared_ext}$major'
19460 shlibpath_var=LD_LIBRARY_PATH
19461 shlibpath_overrides_runpath=no
19462 hardcode_into_libs=yes
19463 dynamic_linker='GNU ld.so'
19470 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19472 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19473 dynamic_linker='NetBSD (a.out) ld.so'
19475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19476 soname_spec='${libname}${release}${shared_ext}$major'
19477 dynamic_linker='NetBSD ld.elf_so'
19479 shlibpath_var=LD_LIBRARY_PATH
19480 shlibpath_overrides_runpath=yes
19481 hardcode_into_libs=yes
19486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19487 shlibpath_var=LD_LIBRARY_PATH
19488 shlibpath_overrides_runpath=yes
19495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19496 soname_spec='${libname}${release}${shared_ext}$major'
19497 shlibpath_var=LD_LIBRARY_PATH
19498 shlibpath_overrides_runpath=yes
19503 sys_lib_dlsearch_path_spec="/usr/lib"
19505 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19507 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19508 *) need_version=no ;;
19510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19511 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19512 shlibpath_var=LD_LIBRARY_PATH
19513 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19515 openbsd2.[89] | openbsd2.[89].*)
19516 shlibpath_overrides_runpath=no
19519 shlibpath_overrides_runpath=yes
19523 shlibpath_overrides_runpath=yes
19528 libname_spec='$name'
19531 library_names_spec='$libname${shared_ext} $libname.a'
19532 dynamic_linker='OS/2 ld.exe'
19533 shlibpath_var=LIBPATH
19536 osf3* | osf4* | osf5*)
19540 soname_spec='${libname}${release}${shared_ext}$major'
19541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19542 shlibpath_var=LD_LIBRARY_PATH
19543 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19544 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19552 soname_spec='${libname}${release}${shared_ext}$major'
19553 shlibpath_var=LD_LIBRARY_PATH
19554 shlibpath_overrides_runpath=yes
19555 hardcode_into_libs=yes
19556 # ldd complains unless libraries are executable
19557 postinstall_cmds='chmod +x $lib'
19562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19563 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19564 shlibpath_var=LD_LIBRARY_PATH
19565 shlibpath_overrides_runpath=yes
19566 if test "$with_gnu_ld" = yes; then
19574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19575 soname_spec='${libname}${release}${shared_ext}$major'
19576 shlibpath_var=LD_LIBRARY_PATH
19577 case $host_vendor in
19579 shlibpath_overrides_runpath=no
19581 export_dynamic_flag_spec='${wl}-Blargedynsym'
19582 runpath_var=LD_RUN_PATH
19590 shlibpath_overrides_runpath=no
19591 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19597 if test -d /usr/nec ;then
19599 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19600 soname_spec='$libname${shared_ext}.$major'
19601 shlibpath_var=LD_LIBRARY_PATH
19605 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19606 version_type=freebsd-elf
19609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19610 soname_spec='${libname}${release}${shared_ext}$major'
19611 shlibpath_var=LD_LIBRARY_PATH
19612 hardcode_into_libs=yes
19613 if test "$with_gnu_ld" = yes; then
19614 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19615 shlibpath_overrides_runpath=no
19617 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19618 shlibpath_overrides_runpath=yes
19621 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19625 sys_lib_dlsearch_path_spec='/usr/lib'
19630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19631 soname_spec='${libname}${release}${shared_ext}$major'
19632 shlibpath_var=LD_LIBRARY_PATH
19639 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19640 echo "${ECHO_T}$dynamic_linker" >&6
19641 test "$dynamic_linker" = no && can_build_shared=no
19643 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19644 if test "$GCC" = yes; then
19645 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19648 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19649 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19650 hardcode_action_CXX=
19651 if test -n "$hardcode_libdir_flag_spec_CXX" || \
19652 test -n "$runpath_var_CXX" || \
19653 test "X$hardcode_automatic_CXX" = "Xyes" ; then
19655 # We can hardcode non-existant directories.
19656 if test "$hardcode_direct_CXX" != no &&
19657 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19658 # have to relink, otherwise we might link with an installed library
19659 # when we should be linking with a yet-to-be-installed one
19660 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
19661 test "$hardcode_minus_L_CXX" != no; then
19662 # Linking always hardcodes the temporary library directory.
19663 hardcode_action_CXX=relink
19665 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19666 hardcode_action_CXX=immediate
19669 # We cannot hardcode anything, or else we can only hardcode existing
19671 hardcode_action_CXX=unsupported
19673 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
19674 echo "${ECHO_T}$hardcode_action_CXX" >&6
19676 if test "$hardcode_action_CXX" = relink; then
19677 # Fast installation is not supported
19678 enable_fast_install=no
19679 elif test "$shlibpath_overrides_runpath" = yes ||
19680 test "$enable_shared" = no; then
19681 # Fast installation is not necessary
19682 enable_fast_install=needless
19686 # The else clause should only fire when bootstrapping the
19687 # libtool distribution, otherwise you forgot to ship ltmain.sh
19688 # with your package, and you will get complaints that there are
19689 # no rules to generate ltmain.sh.
19690 if test -f "$ltmain"; then
19691 # See if we are running on zsh, and set the options which allow our commands through
19692 # without removal of \ escapes.
19693 if test -n "${ZSH_VERSION+set}" ; then
19694 setopt NO_GLOB_SUBST
19696 # Now quote all the things that may contain metacharacters while being
19697 # careful not to overquote the AC_SUBSTed values. We take copies of the
19698 # variables and quote the copies for generation of the libtool script.
19699 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19701 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19702 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19703 deplibs_check_method reload_flag reload_cmds need_locks \
19704 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19705 lt_cv_sys_global_symbol_to_c_name_address \
19706 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19707 old_postinstall_cmds old_postuninstall_cmds \
19711 lt_prog_compiler_wl_CXX \
19712 lt_prog_compiler_pic_CXX \
19713 lt_prog_compiler_static_CXX \
19714 lt_prog_compiler_no_builtin_flag_CXX \
19715 export_dynamic_flag_spec_CXX \
19716 thread_safe_flag_spec_CXX \
19717 whole_archive_flag_spec_CXX \
19718 enable_shared_with_static_runtimes_CXX \
19719 old_archive_cmds_CXX \
19720 old_archive_from_new_cmds_CXX \
19721 predep_objects_CXX \
19722 postdep_objects_CXX \
19725 compiler_lib_search_path_CXX \
19727 archive_expsym_cmds_CXX \
19728 postinstall_cmds_CXX \
19729 postuninstall_cmds_CXX \
19730 old_archive_from_expsyms_cmds_CXX \
19731 allow_undefined_flag_CXX \
19732 no_undefined_flag_CXX \
19733 export_symbols_cmds_CXX \
19734 hardcode_libdir_flag_spec_CXX \
19735 hardcode_libdir_flag_spec_ld_CXX \
19736 hardcode_libdir_separator_CXX \
19737 hardcode_automatic_CXX \
19739 module_expsym_cmds_CXX \
19740 lt_cv_prog_compiler_c_o_CXX \
19741 exclude_expsyms_CXX \
19742 include_expsyms_CXX; do
19745 old_archive_cmds_CXX | \
19746 old_archive_from_new_cmds_CXX | \
19747 archive_cmds_CXX | \
19748 archive_expsym_cmds_CXX | \
19749 module_cmds_CXX | \
19750 module_expsym_cmds_CXX | \
19751 old_archive_from_expsyms_cmds_CXX | \
19752 export_symbols_cmds_CXX | \
19753 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19754 postinstall_cmds | postuninstall_cmds | \
19755 old_postinstall_cmds | old_postuninstall_cmds | \
19756 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19757 # Double-quote double-evaled strings.
19758 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19761 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19767 *'\$0 --fallback-echo"')
19768 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19774 cat <<__EOF__ >> "$cfgfile"
19775 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19777 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19779 # Shell to use when invoking shell scripts.
19782 # Whether or not to build shared libraries.
19783 build_libtool_libs=$enable_shared
19785 # Whether or not to build static libraries.
19786 build_old_libs=$enable_static
19788 # Whether or not to add -lc for building shared libraries.
19789 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19791 # Whether or not to disallow shared libs when runtime libs are static
19792 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19794 # Whether or not to optimize for fast installation.
19795 fast_install=$enable_fast_install
19798 host_alias=$host_alias
19802 # The build system.
19803 build_alias=$build_alias
19807 # An echo program that does not interpret backslashes.
19812 AR_FLAGS=$lt_AR_FLAGS
19817 # LTCC compiler flags.
19818 LTCFLAGS=$lt_LTCFLAGS
19820 # A language-specific compiler.
19821 CC=$lt_compiler_CXX
19823 # Is the compiler the GNU C compiler?
19829 # The linker used to build libraries.
19832 # Whether we need hard or soft links.
19835 # A BSD-compatible nm program.
19838 # A symbol stripping program
19841 # Used to examine libraries when file_magic_cmd begins "file"
19842 MAGIC_CMD=$MAGIC_CMD
19844 # Used on cygwin: DLL creation program.
19847 # Used on cygwin: object dumper.
19850 # Used on cygwin: assembler.
19853 # The name of the directory that contains temporary libtool files.
19856 # How to create reloadable object files.
19857 reload_flag=$lt_reload_flag
19858 reload_cmds=$lt_reload_cmds
19860 # How to pass a linker flag through the compiler.
19861 wl=$lt_lt_prog_compiler_wl_CXX
19863 # Object file suffix (normally "o").
19864 objext="$ac_objext"
19866 # Old archive suffix (normally "a").
19869 # Shared library suffix (normally ".so").
19870 shrext_cmds='$shrext_cmds'
19872 # Executable file suffix (normally "").
19875 # Additional compiler flags for building library objects.
19876 pic_flag=$lt_lt_prog_compiler_pic_CXX
19879 # What is the maximum length of a command?
19880 max_cmd_len=$lt_cv_sys_max_cmd_len
19882 # Does compiler simultaneously support -c and -o options?
19883 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19885 # Must we lock files when doing compilation?
19886 need_locks=$lt_need_locks
19888 # Do we need the lib prefix for modules?
19889 need_lib_prefix=$need_lib_prefix
19891 # Do we need a version for libraries?
19892 need_version=$need_version
19894 # Whether dlopen is supported.
19895 dlopen_support=$enable_dlopen
19897 # Whether dlopen of programs is supported.
19898 dlopen_self=$enable_dlopen_self
19900 # Whether dlopen of statically linked programs is supported.
19901 dlopen_self_static=$enable_dlopen_self_static
19903 # Compiler flag to prevent dynamic linking.
19904 link_static_flag=$lt_lt_prog_compiler_static_CXX
19906 # Compiler flag to turn off builtin functions.
19907 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19909 # Compiler flag to allow reflexive dlopens.
19910 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19912 # Compiler flag to generate shared objects directly from archives.
19913 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19915 # Compiler flag to generate thread-safe objects.
19916 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
19918 # Library versioning type.
19919 version_type=$version_type
19921 # Format of library name prefix.
19922 libname_spec=$lt_libname_spec
19924 # List of archive names. First name is the real one, the rest are links.
19925 # The last name is the one that the linker finds with -lNAME.
19926 library_names_spec=$lt_library_names_spec
19928 # The coded name of the library, if different from the real name.
19929 soname_spec=$lt_soname_spec
19931 # Commands used to build and install an old-style archive.
19933 old_archive_cmds=$lt_old_archive_cmds_CXX
19934 old_postinstall_cmds=$lt_old_postinstall_cmds
19935 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19937 # Create an old-style archive from a shared archive.
19938 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19940 # Create a temporary old-style archive to link instead of a shared archive.
19941 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19943 # Commands used to build and install a shared archive.
19944 archive_cmds=$lt_archive_cmds_CXX
19945 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19946 postinstall_cmds=$lt_postinstall_cmds
19947 postuninstall_cmds=$lt_postuninstall_cmds
19949 # Commands used to build a loadable module (assumed same as above if empty)
19950 module_cmds=$lt_module_cmds_CXX
19951 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19953 # Commands to strip libraries.
19954 old_striplib=$lt_old_striplib
19955 striplib=$lt_striplib
19957 # Dependencies to place before the objects being linked to create a
19959 predep_objects=$lt_predep_objects_CXX
19961 # Dependencies to place after the objects being linked to create a
19963 postdep_objects=$lt_postdep_objects_CXX
19965 # Dependencies to place before the objects being linked to create a
19967 predeps=$lt_predeps_CXX
19969 # Dependencies to place after the objects being linked to create a
19971 postdeps=$lt_postdeps_CXX
19973 # The library search path used internally by the compiler when linking
19974 # a shared library.
19975 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19977 # Method to check whether dependent libraries are shared objects.
19978 deplibs_check_method=$lt_deplibs_check_method
19980 # Command to use when deplibs_check_method == file_magic.
19981 file_magic_cmd=$lt_file_magic_cmd
19983 # Flag that allows shared libraries with undefined symbols to be built.
19984 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19986 # Flag that forces no undefined symbols.
19987 no_undefined_flag=$lt_no_undefined_flag_CXX
19989 # Commands used to finish a libtool library installation in a directory.
19990 finish_cmds=$lt_finish_cmds
19992 # Same as above, but a single script fragment to be evaled but not shown.
19993 finish_eval=$lt_finish_eval
19995 # Take the output of nm and produce a listing of raw symbols and C names.
19996 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19998 # Transform the output of nm in a proper C declaration
19999 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20001 # Transform the output of nm in a C name address pair
20002 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20004 # This is the shared library runtime path variable.
20005 runpath_var=$runpath_var
20007 # This is the shared library path variable.
20008 shlibpath_var=$shlibpath_var
20010 # Is shlibpath searched before the hard-coded library search path?
20011 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20013 # How to hardcode a shared library path into an executable.
20014 hardcode_action=$hardcode_action_CXX
20016 # Whether we should hardcode library paths into libraries.
20017 hardcode_into_libs=$hardcode_into_libs
20019 # Flag to hardcode \$libdir into a binary during linking.
20020 # This must work even if \$libdir does not exist.
20021 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20023 # If ld is used when linking, flag to hardcode \$libdir into
20024 # a binary during linking. This must work even if \$libdir does
20026 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20028 # Whether we need a single -rpath flag with a separated argument.
20029 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20031 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20032 # resulting binary.
20033 hardcode_direct=$hardcode_direct_CXX
20035 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20036 # resulting binary.
20037 hardcode_minus_L=$hardcode_minus_L_CXX
20039 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20040 # the resulting binary.
20041 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20043 # Set to yes if building a shared library automatically hardcodes DIR into the library
20044 # and all subsequent libraries and executables linked against it.
20045 hardcode_automatic=$hardcode_automatic_CXX
20047 # Variables whose values should be saved in libtool wrapper scripts and
20048 # restored at relink time.
20049 variables_saved_for_relink="$variables_saved_for_relink"
20051 # Whether libtool must link a program against all its dependency libraries.
20052 link_all_deplibs=$link_all_deplibs_CXX
20054 # Compile-time system search path for libraries
20055 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20057 # Run-time system search path for libraries
20058 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20060 # Fix the shell variable \$srcfile for the compiler.
20061 fix_srcfile_path="$fix_srcfile_path_CXX"
20063 # Set to yes if exported symbols are required.
20064 always_export_symbols=$always_export_symbols_CXX
20066 # The commands to list exported symbols.
20067 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20069 # The commands to extract the exported symbol list from a shared archive.
20070 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20072 # Symbols that should not be listed in the preloaded symbols.
20073 exclude_expsyms=$lt_exclude_expsyms_CXX
20075 # Symbols that must always be exported.
20076 include_expsyms=$lt_include_expsyms_CXX
20078 # ### END LIBTOOL TAG CONFIG: $tagname
20084 # If there is no Makefile yet, we rely on a make rule to execute
20085 # `config.status --recheck' to rerun these tests and create the
20086 # libtool script then.
20087 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20088 if test -f "$ltmain_in"; then
20089 test -f Makefile && make "$ltmain"
20095 ac_cpp='$CPP $CPPFLAGS'
20096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20104 with_gnu_ldcxx=$with_gnu_ld
20105 with_gnu_ld=$lt_save_with_gnu_ld
20106 lt_cv_path_LDCXX=$lt_cv_path_LD
20107 lt_cv_path_LD=$lt_save_path_LD
20108 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20109 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20117 if test -n "$F77" && test "X$F77" != "Xno"; then
20120 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
20121 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20122 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
20125 archive_cmds_need_lc_F77=no
20126 allow_undefined_flag_F77=
20127 always_export_symbols_F77=no
20128 archive_expsym_cmds_F77=
20129 export_dynamic_flag_spec_F77=
20130 hardcode_direct_F77=no
20131 hardcode_libdir_flag_spec_F77=
20132 hardcode_libdir_flag_spec_ld_F77=
20133 hardcode_libdir_separator_F77=
20134 hardcode_minus_L_F77=no
20135 hardcode_automatic_F77=no
20137 module_expsym_cmds_F77=
20138 link_all_deplibs_F77=unknown
20139 old_archive_cmds_F77=$old_archive_cmds
20140 no_undefined_flag_F77=
20141 whole_archive_flag_spec_F77=
20142 enable_shared_with_static_runtimes_F77=no
20144 # Source file extension for f77 test sources.
20147 # Object file extension for compiled f77 test sources.
20151 # Code to be used in simple compile tests
20152 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
20154 # Code to be used in simple link tests
20155 lt_simple_link_test_code=" program t\n end\n"
20157 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20159 # If no C compiler was specified, use CC.
20162 # If no C compiler flags were specified, use CFLAGS.
20163 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20165 # Allow CC to be a program name with arguments.
20169 # save warnings/boilerplate of simple test code
20170 ac_outfile=conftest.$ac_objext
20171 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20172 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20173 _lt_compiler_boilerplate=`cat conftest.err`
20176 ac_outfile=conftest.$ac_objext
20177 printf "$lt_simple_link_test_code" >conftest.$ac_ext
20178 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20179 _lt_linker_boilerplate=`cat conftest.err`
20183 # Allow CC to be a program name with arguments.
20188 for cc_temp in $compiler""; do
20190 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20191 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20196 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20199 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
20200 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
20201 echo "$as_me:$LINENO: result: $can_build_shared" >&5
20202 echo "${ECHO_T}$can_build_shared" >&6
20204 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
20205 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
20206 test "$can_build_shared" = "no" && enable_shared=no
20208 # On AIX, shared libraries and static libraries use the same namespace, and
20209 # are all built from PIC.
20212 test "$enable_shared" = yes && enable_static=no
20213 if test -n "$RANLIB"; then
20214 archive_cmds="$archive_cmds~\$RANLIB \$lib"
20215 postinstall_cmds='$RANLIB $lib'
20219 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
20220 test "$enable_shared" = yes && enable_static=no
20224 echo "$as_me:$LINENO: result: $enable_shared" >&5
20225 echo "${ECHO_T}$enable_shared" >&6
20227 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
20228 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
20229 # Make sure either enable_shared or enable_static is yes.
20230 test "$enable_shared" = yes || enable_static=yes
20231 echo "$as_me:$LINENO: result: $enable_static" >&5
20232 echo "${ECHO_T}$enable_static" >&6
20237 lt_prog_compiler_wl_F77=
20238 lt_prog_compiler_pic_F77=
20239 lt_prog_compiler_static_F77=
20241 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20242 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
20244 if test "$GCC" = yes; then
20245 lt_prog_compiler_wl_F77='-Wl,'
20246 lt_prog_compiler_static_F77='-static'
20250 # All AIX code is PIC.
20251 if test "$host_cpu" = ia64; then
20252 # AIX 5 now supports IA64 processor
20253 lt_prog_compiler_static_F77='-Bstatic'
20258 # FIXME: we need at least 68020 code to build shared libraries, but
20259 # adding the `-m68020' flag to GCC prevents building anything better,
20261 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
20264 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20265 # PIC is the default for these OSes.
20268 mingw* | pw32* | os2*)
20269 # This hack is so that the source file can tell whether it is being
20270 # built for inclusion in a dll (and should export symbols for example).
20271 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20274 darwin* | rhapsody*)
20275 # PIC is the default on this platform
20276 # Common symbols not allowed in MH_DYLIB files
20277 lt_prog_compiler_pic_F77='-fno-common'
20281 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20282 # Instead, we relocate shared libraries at runtime.
20286 # Just because we use GCC doesn't mean we suddenly get shared libraries
20287 # on systems that don't support them.
20288 lt_prog_compiler_can_build_shared_F77=no
20293 if test -d /usr/nec; then
20294 lt_prog_compiler_pic_F77=-Kconform_pic
20299 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20300 # not for PA HP-UX.
20306 lt_prog_compiler_pic_F77='-fPIC'
20312 lt_prog_compiler_pic_F77='-fPIC'
20316 # PORTME Check for flag to pass linker flags through the system compiler.
20319 lt_prog_compiler_wl_F77='-Wl,'
20320 if test "$host_cpu" = ia64; then
20321 # AIX 5 now supports IA64 processor
20322 lt_prog_compiler_static_F77='-Bstatic'
20324 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
20328 # PIC is the default on this platform
20329 # Common symbols not allowed in MH_DYLIB files
20330 case $cc_basename in
20332 lt_prog_compiler_pic_F77='-qnocommon'
20333 lt_prog_compiler_wl_F77='-Wl,'
20338 mingw* | pw32* | os2*)
20339 # This hack is so that the source file can tell whether it is being
20340 # built for inclusion in a dll (and should export symbols for example).
20341 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20344 hpux9* | hpux10* | hpux11*)
20345 lt_prog_compiler_wl_F77='-Wl,'
20346 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20347 # not for PA HP-UX.
20353 lt_prog_compiler_pic_F77='+Z'
20356 # Is there a better lt_prog_compiler_static that works with the bundled CC?
20357 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
20360 irix5* | irix6* | nonstopux*)
20361 lt_prog_compiler_wl_F77='-Wl,'
20362 # PIC (with -KPIC) is the default.
20363 lt_prog_compiler_static_F77='-non_shared'
20367 lt_prog_compiler_pic_F77='-KPIC'
20368 lt_prog_compiler_static_F77='-Bstatic'
20372 case $cc_basename in
20374 lt_prog_compiler_wl_F77='-Wl,'
20375 lt_prog_compiler_pic_F77='-KPIC'
20376 lt_prog_compiler_static_F77='-static'
20378 pgcc* | pgf77* | pgf90* | pgf95*)
20379 # Portland Group compilers (*not* the Pentium gcc compiler,
20380 # which looks to be a dead project)
20381 lt_prog_compiler_wl_F77='-Wl,'
20382 lt_prog_compiler_pic_F77='-fpic'
20383 lt_prog_compiler_static_F77='-Bstatic'
20386 lt_prog_compiler_wl_F77='-Wl,'
20387 # All Alpha code is PIC.
20388 lt_prog_compiler_static_F77='-non_shared'
20393 osf3* | osf4* | osf5*)
20394 lt_prog_compiler_wl_F77='-Wl,'
20395 # All OSF/1 code is PIC.
20396 lt_prog_compiler_static_F77='-non_shared'
20400 lt_prog_compiler_pic_F77='-KPIC'
20401 lt_prog_compiler_static_F77='-Bstatic'
20402 case $cc_basename in
20403 f77* | f90* | f95*)
20404 lt_prog_compiler_wl_F77='-Qoption ld ';;
20406 lt_prog_compiler_wl_F77='-Wl,';;
20411 lt_prog_compiler_wl_F77='-Qoption ld '
20412 lt_prog_compiler_pic_F77='-PIC'
20413 lt_prog_compiler_static_F77='-Bstatic'
20416 sysv4 | sysv4.2uw2* | sysv4.3*)
20417 lt_prog_compiler_wl_F77='-Wl,'
20418 lt_prog_compiler_pic_F77='-KPIC'
20419 lt_prog_compiler_static_F77='-Bstatic'
20423 if test -d /usr/nec ;then
20424 lt_prog_compiler_pic_F77='-Kconform_pic'
20425 lt_prog_compiler_static_F77='-Bstatic'
20429 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20430 lt_prog_compiler_wl_F77='-Wl,'
20431 lt_prog_compiler_pic_F77='-KPIC'
20432 lt_prog_compiler_static_F77='-Bstatic'
20436 lt_prog_compiler_wl_F77='-Wl,'
20437 lt_prog_compiler_can_build_shared_F77=no
20441 lt_prog_compiler_pic_F77='-pic'
20442 lt_prog_compiler_static_F77='-Bstatic'
20446 lt_prog_compiler_can_build_shared_F77=no
20451 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
20452 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
20455 # Check to make sure the PIC flag actually works.
20457 if test -n "$lt_prog_compiler_pic_F77"; then
20459 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
20460 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
20461 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
20462 echo $ECHO_N "(cached) $ECHO_C" >&6
20464 lt_prog_compiler_pic_works_F77=no
20465 ac_outfile=conftest.$ac_objext
20466 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20467 lt_compiler_flag="$lt_prog_compiler_pic_F77"
20468 # Insert the option either (1) after the last *FLAGS variable, or
20469 # (2) before a word containing "conftest.", or (3) at the end.
20470 # Note that $ac_compile itself does not contain backslashes and begins
20471 # with a dollar sign (not a hyphen), so the echo should work correctly.
20472 # The option is referenced via a variable to avoid confusing sed.
20473 lt_compile=`echo "$ac_compile" | $SED \
20474 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20475 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20476 -e 's:$: $lt_compiler_flag:'`
20477 (eval echo "\"\$as_me:20477: $lt_compile\"" >&5)
20478 (eval "$lt_compile" 2>conftest.err)
20480 cat conftest.err >&5
20481 echo "$as_me:20481: \$? = $ac_status" >&5
20482 if (exit $ac_status) && test -s "$ac_outfile"; then
20483 # The compiler can only warn and ignore the option if not recognized
20484 # So say no if there are warnings other than the usual output.
20485 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20486 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20487 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20488 lt_prog_compiler_pic_works_F77=yes
20494 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
20495 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
20497 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
20498 case $lt_prog_compiler_pic_F77 in
20500 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
20503 lt_prog_compiler_pic_F77=
20504 lt_prog_compiler_can_build_shared_F77=no
20509 # For platforms which do not support PIC, -DPIC is meaningless:
20511 lt_prog_compiler_pic_F77=
20514 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
20519 # Check to make sure the static flag actually works.
20521 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
20522 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20523 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
20524 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
20525 echo $ECHO_N "(cached) $ECHO_C" >&6
20527 lt_prog_compiler_static_works_F77=no
20528 save_LDFLAGS="$LDFLAGS"
20529 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20530 printf "$lt_simple_link_test_code" > conftest.$ac_ext
20531 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20532 # The linker can only warn and ignore the option if not recognized
20533 # So say no if there are warnings
20534 if test -s conftest.err; then
20535 # Append any errors to the config.log.
20536 cat conftest.err 1>&5
20537 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20538 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20539 if diff conftest.exp conftest.er2 >/dev/null; then
20540 lt_prog_compiler_static_works_F77=yes
20543 lt_prog_compiler_static_works_F77=yes
20547 LDFLAGS="$save_LDFLAGS"
20550 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
20551 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
20553 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
20556 lt_prog_compiler_static_F77=
20560 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20561 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
20562 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
20563 echo $ECHO_N "(cached) $ECHO_C" >&6
20565 lt_cv_prog_compiler_c_o_F77=no
20566 $rm -r conftest 2>/dev/null
20570 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20572 lt_compiler_flag="-o out/conftest2.$ac_objext"
20573 # Insert the option either (1) after the last *FLAGS variable, or
20574 # (2) before a word containing "conftest.", or (3) at the end.
20575 # Note that $ac_compile itself does not contain backslashes and begins
20576 # with a dollar sign (not a hyphen), so the echo should work correctly.
20577 lt_compile=`echo "$ac_compile" | $SED \
20578 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20579 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20580 -e 's:$: $lt_compiler_flag:'`
20581 (eval echo "\"\$as_me:20581: $lt_compile\"" >&5)
20582 (eval "$lt_compile" 2>out/conftest.err)
20584 cat out/conftest.err >&5
20585 echo "$as_me:20585: \$? = $ac_status" >&5
20586 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20588 # The compiler can only warn and ignore the option if not recognized
20589 # So say no if there are warnings
20590 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20591 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20592 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20593 lt_cv_prog_compiler_c_o_F77=yes
20598 # SGI C++ compiler will create directory out/ii_files/ for
20599 # template instantiation
20600 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20601 $rm out/* && rmdir out
20607 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
20608 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
20611 hard_links="nottested"
20612 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
20613 # do not overwrite the value of need_locks provided by the user
20614 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20615 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
20618 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20620 ln conftest.a conftest.b 2>&5 || hard_links=no
20621 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20622 echo "$as_me:$LINENO: result: $hard_links" >&5
20623 echo "${ECHO_T}$hard_links" >&6
20624 if test "$hard_links" = no; then
20625 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20626 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20633 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20634 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
20637 allow_undefined_flag_F77=
20638 enable_shared_with_static_runtimes_F77=no
20640 archive_expsym_cmds_F77=
20641 old_archive_From_new_cmds_F77=
20642 old_archive_from_expsyms_cmds_F77=
20643 export_dynamic_flag_spec_F77=
20644 whole_archive_flag_spec_F77=
20645 thread_safe_flag_spec_F77=
20646 hardcode_libdir_flag_spec_F77=
20647 hardcode_libdir_flag_spec_ld_F77=
20648 hardcode_libdir_separator_F77=
20649 hardcode_direct_F77=no
20650 hardcode_minus_L_F77=no
20651 hardcode_shlibpath_var_F77=unsupported
20652 link_all_deplibs_F77=unknown
20653 hardcode_automatic_F77=no
20655 module_expsym_cmds_F77=
20656 always_export_symbols_F77=no
20657 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20658 # include_expsyms should be a list of space-separated symbols to be *always*
20659 # included in the symbol list
20660 include_expsyms_F77=
20661 # exclude_expsyms can be an extended regexp of symbols to exclude
20662 # it will be wrapped by ` (' and `)$', so one must not match beginning or
20663 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
20664 # as well as any symbol that contains `d'.
20665 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
20666 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
20667 # platforms (ab)use it in PIC code, but their linkers get confused if
20668 # the symbol is explicitly referenced. Since portable code cannot
20669 # rely on this symbol name, it's probably fine to never include it in
20670 # preloaded symbol tables.
20671 extract_expsyms_cmds=
20672 # Just being paranoid about ensuring that cc_basename is set.
20673 for cc_temp in $compiler""; do
20675 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20676 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20681 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20684 cygwin* | mingw* | pw32*)
20685 # FIXME: the MSVC++ port hasn't been tested in a loooong time
20686 # When not using gcc, we currently assume that we are using
20687 # Microsoft Visual C++.
20688 if test "$GCC" != yes; then
20693 # we just hope/assume this is gcc and not c89 (= MSVC++)
20702 if test "$with_gnu_ld" = yes; then
20703 # If archive_cmds runs LD, not CC, wlarc should be empty
20706 # Set some defaults for GNU ld with shared library support. These
20707 # are reset later if shared libraries are not supported. Putting them
20708 # here allows them to be overridden if necessary.
20709 runpath_var=LD_RUN_PATH
20710 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
20711 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
20712 # ancient GNU ld didn't support --whole-archive et. al.
20713 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
20714 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20716 whole_archive_flag_spec_F77=
20718 supports_anon_versioning=no
20719 case `$LD -v 2>/dev/null` in
20720 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
20721 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
20722 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
20723 *\ 2.11.*) ;; # other 2.11 versions
20724 *) supports_anon_versioning=yes ;;
20727 # See if GNU ld supports shared libraries.
20729 aix3* | aix4* | aix5*)
20730 # On AIX/PPC, the GNU linker is very broken
20731 if test "$host_cpu" != ia64; then
20735 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
20736 *** to be unable to reliably create shared libraries on AIX.
20737 *** Therefore, libtool is disabling shared libraries support. If you
20738 *** really care for shared libraries, you may want to modify your PATH
20739 *** so that a non-GNU linker is found, and then restart.
20746 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)'
20747 hardcode_libdir_flag_spec_F77='-L$libdir'
20748 hardcode_minus_L_F77=yes
20750 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
20751 # that the semantics of dynamic libraries on AmigaOS, at least up
20752 # to version 4, is to share data among multiple programs linked
20753 # with the same dynamic library. Since this doesn't match the
20754 # behavior of shared libraries on other platforms, we can't use
20760 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20761 allow_undefined_flag_F77=unsupported
20762 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20763 # support --undefined. This deserves some investigation. FIXME
20764 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20770 cygwin* | mingw* | pw32*)
20771 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
20772 # as there is no search path for DLLs.
20773 hardcode_libdir_flag_spec_F77='-L$libdir'
20774 allow_undefined_flag_F77=unsupported
20775 always_export_symbols_F77=no
20776 enable_shared_with_static_runtimes_F77=yes
20777 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
20779 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
20780 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
20781 # If the export-symbols file already is a .def file (1st line
20782 # is EXPORTS), use it as is; otherwise, prepend...
20783 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20784 cp $export_symbols $output_objdir/$soname.def;
20786 echo EXPORTS > $output_objdir/$soname.def;
20787 cat $export_symbols >> $output_objdir/$soname.def;
20789 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
20796 hardcode_direct_F77=no
20797 hardcode_shlibpath_var_F77=no
20798 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
20799 export_dynamic_flag_spec_F77='${wl}-E'
20800 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
20801 # Instead, shared libraries are loaded at an image base (0x10000000 by
20802 # default) and relocated if they conflict, which is a slow very memory
20803 # consuming and fragmenting process. To avoid this, we pick a random,
20804 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
20805 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
20806 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'
20807 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'
20811 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20813 case $cc_basename,$host_cpu in
20814 pgcc*) # Portland Group C compiler
20815 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'
20816 tmp_addflag=' $pic_flag'
20818 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
20819 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'
20820 tmp_addflag=' $pic_flag -Mnomain' ;;
20821 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
20822 tmp_addflag=' -i_dynamic' ;;
20823 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
20824 tmp_addflag=' -i_dynamic -nofor_main' ;;
20825 ifc* | ifort*) # Intel Fortran compiler
20826 tmp_addflag=' -nofor_main' ;;
20828 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20830 if test $supports_anon_versioning = yes; then
20831 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
20832 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20833 $echo "local: *; };" >> $output_objdir/$libname.ver~
20834 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
20842 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20843 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
20846 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20847 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20852 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
20856 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
20857 *** create shared libraries on Solaris systems. Therefore, libtool
20858 *** is disabling shared libraries support. We urge you to upgrade GNU
20859 *** binutils to release 2.9.1 or newer. Another option is to modify
20860 *** your PATH or compiler configuration so that the native linker is
20861 *** used, and then restart.
20864 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20865 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20866 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20872 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
20873 case `$LD -v 2>&1` in
20874 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
20878 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
20879 *** reliably create shared libraries on SCO systems. Therefore, libtool
20880 *** is disabling shared libraries support. We urge you to upgrade GNU
20881 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
20882 *** your PATH or compiler configuration so that the native linker is
20883 *** used, and then restart.
20888 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20889 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
20890 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
20891 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
20900 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20902 hardcode_direct_F77=yes
20903 hardcode_shlibpath_var_F77=no
20907 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20908 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20909 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20916 if test "$ld_shlibs_F77" = no; then
20918 hardcode_libdir_flag_spec_F77=
20919 export_dynamic_flag_spec_F77=
20920 whole_archive_flag_spec_F77=
20923 # PORTME fill in a description of your system's linker (not GNU ld)
20926 allow_undefined_flag_F77=unsupported
20927 always_export_symbols_F77=yes
20928 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'
20929 # Note: this linker hardcodes the directories in LIBPATH if there
20930 # are no directories specified by -L.
20931 hardcode_minus_L_F77=yes
20932 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
20933 # Neither direct hardcoding nor static linking is supported with a
20935 hardcode_direct_F77=unsupported
20940 if test "$host_cpu" = ia64; then
20941 # On IA64, the linker does run time linking by default, so we don't
20942 # have to do anything special.
20943 aix_use_runtimelinking=no
20944 exp_sym_flag='-Bexport'
20947 # If we're using GNU nm, then we don't want the "-C" option.
20948 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20949 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20950 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'
20952 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'
20954 aix_use_runtimelinking=no
20956 # Test if we are trying to use run time linking or normal
20957 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20958 # need to do runtime linking.
20959 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
20960 for ld_flag in $LDFLAGS; do
20961 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
20962 aix_use_runtimelinking=yes
20969 exp_sym_flag='-bexport'
20970 no_entry_flag='-bnoentry'
20973 # When large executables or shared objects are built, AIX ld can
20974 # have problems creating the table of contents. If linking a library
20975 # or program results in "error TOC overflow" add -mminimal-toc to
20976 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
20977 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20979 archive_cmds_F77=''
20980 hardcode_direct_F77=yes
20981 hardcode_libdir_separator_F77=':'
20982 link_all_deplibs_F77=yes
20984 if test "$GCC" = yes; then
20985 case $host_os in aix4.[012]|aix4.[012].*)
20986 # We only want to do this on AIX 4.2 and lower, the check
20987 # below for broken collect2 doesn't work under 4.3+
20988 collect2name=`${CC} -print-prog-name=collect2`
20989 if test -f "$collect2name" && \
20990 strings "$collect2name" | grep resolve_lib_name >/dev/null
20992 # We have reworked collect2
20993 hardcode_direct_F77=yes
20995 # We have old collect2
20996 hardcode_direct_F77=unsupported
20997 # It fails to find uninstalled libraries when the uninstalled
20998 # path is not listed in the libpath. Setting hardcode_minus_L
20999 # to unsupported forces relinking
21000 hardcode_minus_L_F77=yes
21001 hardcode_libdir_flag_spec_F77='-L$libdir'
21002 hardcode_libdir_separator_F77=
21006 shared_flag='-shared'
21007 if test "$aix_use_runtimelinking" = yes; then
21008 shared_flag="$shared_flag "'${wl}-G'
21012 if test "$host_cpu" = ia64; then
21013 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21014 # chokes on -Wl,-G. The following line is correct:
21017 if test "$aix_use_runtimelinking" = yes; then
21018 shared_flag='${wl}-G'
21020 shared_flag='${wl}-bM:SRE'
21025 # It seems that -bexpall does not export symbols beginning with
21026 # underscore (_), so it is better to generate a list of symbols to export.
21027 always_export_symbols_F77=yes
21028 if test "$aix_use_runtimelinking" = yes; then
21029 # Warning - without using the other runtime loading flags (-brtl),
21030 # -berok will link without error, but may produce a broken library.
21031 allow_undefined_flag_F77='-berok'
21032 # Determine the default libpath from the value encoded in an empty executable.
21033 cat >conftest.$ac_ext <<_ACEOF
21038 rm -f conftest.$ac_objext conftest$ac_exeext
21039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21040 (eval $ac_link) 2>conftest.er1
21042 grep -v '^ *+' conftest.er1 >conftest.err
21044 cat conftest.err >&5
21045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21046 (exit $ac_status); } &&
21047 { ac_try='test -z "$ac_f77_werror_flag"
21048 || test ! -s conftest.err'
21049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21050 (eval $ac_try) 2>&5
21052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21053 (exit $ac_status); }; } &&
21054 { ac_try='test -s conftest$ac_exeext'
21055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21056 (eval $ac_try) 2>&5
21058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21059 (exit $ac_status); }; }; then
21061 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21063 # Check for a 64-bit object if we didn't find anything.
21064 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; }
21067 echo "$as_me: failed program was:" >&5
21068 sed 's/^/| /' conftest.$ac_ext >&5
21071 rm -f conftest.err conftest.$ac_objext \
21072 conftest$ac_exeext conftest.$ac_ext
21073 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21075 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21076 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"
21078 if test "$host_cpu" = ia64; then
21079 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
21080 allow_undefined_flag_F77="-z nodefs"
21081 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"
21083 # Determine the default libpath from the value encoded in an empty executable.
21084 cat >conftest.$ac_ext <<_ACEOF
21089 rm -f conftest.$ac_objext conftest$ac_exeext
21090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21091 (eval $ac_link) 2>conftest.er1
21093 grep -v '^ *+' conftest.er1 >conftest.err
21095 cat conftest.err >&5
21096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21097 (exit $ac_status); } &&
21098 { ac_try='test -z "$ac_f77_werror_flag"
21099 || test ! -s conftest.err'
21100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21101 (eval $ac_try) 2>&5
21103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21104 (exit $ac_status); }; } &&
21105 { ac_try='test -s conftest$ac_exeext'
21106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21107 (eval $ac_try) 2>&5
21109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21110 (exit $ac_status); }; }; then
21112 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21114 # Check for a 64-bit object if we didn't find anything.
21115 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; }
21118 echo "$as_me: failed program was:" >&5
21119 sed 's/^/| /' conftest.$ac_ext >&5
21122 rm -f conftest.err conftest.$ac_objext \
21123 conftest$ac_exeext conftest.$ac_ext
21124 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21126 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21127 # Warning - without using the other run time loading flags,
21128 # -berok will link without error, but may produce a broken library.
21129 no_undefined_flag_F77=' ${wl}-bernotok'
21130 allow_undefined_flag_F77=' ${wl}-berok'
21131 # Exported symbols can be pulled into shared objects from archives
21132 whole_archive_flag_spec_F77='$convenience'
21133 archive_cmds_need_lc_F77=yes
21134 # This is similar to how AIX traditionally builds its shared libraries.
21135 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'
21141 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)'
21142 hardcode_libdir_flag_spec_F77='-L$libdir'
21143 hardcode_minus_L_F77=yes
21144 # see comment about different semantics on the GNU ld section
21149 export_dynamic_flag_spec_F77=-rdynamic
21152 cygwin* | mingw* | pw32*)
21153 # When not using gcc, we currently assume that we are using
21154 # Microsoft Visual C++.
21155 # hardcode_libdir_flag_spec is actually meaningless, as there is
21156 # no search path for DLLs.
21157 hardcode_libdir_flag_spec_F77=' '
21158 allow_undefined_flag_F77=unsupported
21159 # Tell ltmain to make .lib files, not .a files.
21161 # Tell ltmain to make .dll files, not .so files.
21163 # FIXME: Setting linknames here is a bad hack.
21164 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21165 # The linker will automatically build a .lib file if we build a DLL.
21166 old_archive_From_new_cmds_F77='true'
21167 # FIXME: Should let the user specify the lib program.
21168 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
21169 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
21170 enable_shared_with_static_runtimes_F77=yes
21173 darwin* | rhapsody*)
21175 rhapsody* | darwin1.[012])
21176 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
21179 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21180 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21182 case ${MACOSX_DEPLOYMENT_TARGET} in
21184 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21187 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
21193 archive_cmds_need_lc_F77=no
21194 hardcode_direct_F77=no
21195 hardcode_automatic_F77=yes
21196 hardcode_shlibpath_var_F77=unsupported
21197 whole_archive_flag_spec_F77=''
21198 link_all_deplibs_F77=yes
21199 if test "$GCC" = yes ; then
21200 output_verbose_link_cmd='echo'
21201 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21202 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21203 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21204 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}'
21205 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}'
21207 case $cc_basename in
21209 output_verbose_link_cmd='echo'
21210 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21211 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21212 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21213 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}'
21214 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}'
21224 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21225 hardcode_libdir_flag_spec_F77='-L$libdir'
21226 hardcode_shlibpath_var_F77=no
21233 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21234 # support. Future versions do this automatically, but an explicit c++rt0.o
21235 # does not break anything, and helps significantly (at the cost of a little
21238 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21239 hardcode_libdir_flag_spec_F77='-R$libdir'
21240 hardcode_direct_F77=yes
21241 hardcode_shlibpath_var_F77=no
21244 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21246 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21247 hardcode_direct_F77=yes
21248 hardcode_minus_L_F77=yes
21249 hardcode_shlibpath_var_F77=no
21252 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21253 freebsd* | kfreebsd*-gnu | dragonfly*)
21254 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21255 hardcode_libdir_flag_spec_F77='-R$libdir'
21256 hardcode_direct_F77=yes
21257 hardcode_shlibpath_var_F77=no
21261 if test "$GCC" = yes; then
21262 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'
21264 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'
21266 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21267 hardcode_libdir_separator_F77=:
21268 hardcode_direct_F77=yes
21270 # hardcode_minus_L: Not really in the search PATH,
21271 # but as the default location of the library.
21272 hardcode_minus_L_F77=yes
21273 export_dynamic_flag_spec_F77='${wl}-E'
21277 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21278 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21280 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21282 if test "$with_gnu_ld" = no; then
21283 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21284 hardcode_libdir_separator_F77=:
21286 hardcode_direct_F77=yes
21287 export_dynamic_flag_spec_F77='${wl}-E'
21289 # hardcode_minus_L: Not really in the search PATH,
21290 # but as the default location of the library.
21291 hardcode_minus_L_F77=yes
21296 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21299 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21302 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21305 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21311 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21314 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21317 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21321 if test "$with_gnu_ld" = no; then
21322 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21323 hardcode_libdir_separator_F77=:
21327 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
21328 hardcode_direct_F77=no
21329 hardcode_shlibpath_var_F77=no
21332 hardcode_direct_F77=yes
21333 export_dynamic_flag_spec_F77='${wl}-E'
21335 # hardcode_minus_L: Not really in the search PATH,
21336 # but as the default location of the library.
21337 hardcode_minus_L_F77=yes
21343 irix5* | irix6* | nonstopux*)
21344 if test "$GCC" = yes; then
21345 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'
21347 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'
21348 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
21350 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21351 hardcode_libdir_separator_F77=:
21352 link_all_deplibs_F77=yes
21356 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21357 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
21359 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
21361 hardcode_libdir_flag_spec_F77='-R$libdir'
21362 hardcode_direct_F77=yes
21363 hardcode_shlibpath_var_F77=no
21367 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21368 hardcode_direct_F77=yes
21369 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21370 hardcode_libdir_separator_F77=:
21371 hardcode_shlibpath_var_F77=no
21375 hardcode_direct_F77=yes
21376 hardcode_shlibpath_var_F77=no
21377 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21378 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21379 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
21380 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21381 export_dynamic_flag_spec_F77='${wl}-E'
21384 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
21385 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21386 hardcode_libdir_flag_spec_F77='-R$libdir'
21389 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21390 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21397 hardcode_libdir_flag_spec_F77='-L$libdir'
21398 hardcode_minus_L_F77=yes
21399 allow_undefined_flag_F77=unsupported
21400 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'
21401 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
21405 if test "$GCC" = yes; then
21406 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
21407 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'
21409 allow_undefined_flag_F77=' -expect_unresolved \*'
21410 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'
21412 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21413 hardcode_libdir_separator_F77=:
21416 osf4* | osf5*) # as osf3* with the addition of -msym flag
21417 if test "$GCC" = yes; then
21418 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
21419 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'
21420 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21422 allow_undefined_flag_F77=' -expect_unresolved \*'
21423 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'
21424 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~
21425 $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'
21427 # Both c and cxx compiler support -rpath directly
21428 hardcode_libdir_flag_spec_F77='-rpath $libdir'
21430 hardcode_libdir_separator_F77=:
21434 no_undefined_flag_F77=' -z text'
21435 if test "$GCC" = yes; then
21437 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21438 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21439 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
21442 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
21443 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21444 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
21446 hardcode_libdir_flag_spec_F77='-R$libdir'
21447 hardcode_shlibpath_var_F77=no
21449 solaris2.[0-5] | solaris2.[0-5].*) ;;
21451 # The compiler driver will combine linker options so we
21452 # cannot just pass the convience library names through
21453 # without $wl, iff we do not link with $LD.
21454 # Luckily, gcc supports the same syntax we need for Sun Studio.
21455 # Supported since Solaris 2.6 (maybe 2.5.1?)
21458 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
21460 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' ;;
21463 link_all_deplibs_F77=yes
21467 if test "x$host_vendor" = xsequent; then
21468 # Use $CC to link under sequent, because it throws in some extra .o
21469 # files that make .init and .fini sections work.
21470 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
21472 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
21474 hardcode_libdir_flag_spec_F77='-L$libdir'
21475 hardcode_direct_F77=yes
21476 hardcode_minus_L_F77=yes
21477 hardcode_shlibpath_var_F77=no
21481 case $host_vendor in
21483 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21484 hardcode_direct_F77=yes # is this really true???
21487 ## LD is ld it makes a PLAMLIB
21488 ## CC just makes a GrossModule.
21489 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
21490 reload_cmds_F77='$CC -r -o $output$reload_objs'
21491 hardcode_direct_F77=no
21494 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21495 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
21498 runpath_var='LD_RUN_PATH'
21499 hardcode_shlibpath_var_F77=no
21503 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21504 hardcode_shlibpath_var_F77=no
21505 export_dynamic_flag_spec_F77='-Bexport'
21509 if test -d /usr/nec; then
21510 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21511 hardcode_shlibpath_var_F77=no
21512 runpath_var=LD_RUN_PATH
21513 hardcode_runpath_var=yes
21518 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
21519 no_undefined_flag_F77='${wl}-z,text'
21520 archive_cmds_need_lc_F77=no
21521 hardcode_shlibpath_var_F77=no
21522 runpath_var='LD_RUN_PATH'
21524 if test "$GCC" = yes; then
21525 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21526 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21528 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21529 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21533 sysv5* | sco3.2v5* | sco5v6*)
21534 # Note: We can NOT use -z defs as we might desire, because we do not
21535 # link with -lc, and that would cause any symbols used from libc to
21536 # always be unresolved, which means just about no library would
21537 # ever link correctly. If we're not using GNU ld we use -z text
21538 # though, which does catch some bad symbols but isn't as heavy-handed
21540 no_undefined_flag_F77='${wl}-z,text'
21541 allow_undefined_flag_F77='${wl}-z,nodefs'
21542 archive_cmds_need_lc_F77=no
21543 hardcode_shlibpath_var_F77=no
21544 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
21545 hardcode_libdir_separator_F77=':'
21546 link_all_deplibs_F77=yes
21547 export_dynamic_flag_spec_F77='${wl}-Bexport'
21548 runpath_var='LD_RUN_PATH'
21550 if test "$GCC" = yes; then
21551 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21552 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21554 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21555 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21560 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21561 hardcode_libdir_flag_spec_F77='-L$libdir'
21562 hardcode_shlibpath_var_F77=no
21571 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
21572 echo "${ECHO_T}$ld_shlibs_F77" >&6
21573 test "$ld_shlibs_F77" = no && can_build_shared=no
21576 # Do we need to explicitly link libc?
21578 case "x$archive_cmds_need_lc_F77" in
21580 # Assume -lc should be added
21581 archive_cmds_need_lc_F77=yes
21583 if test "$enable_shared" = yes && test "$GCC" = yes; then
21584 case $archive_cmds_F77 in
21586 # FIXME: we may have to deal with multi-command sequences.
21589 # Test whether the compiler implicitly links with -lc since on some
21590 # systems, -lgcc has to come before -lc. If gcc already passes -lc
21591 # to ld, don't add -lc before -lgcc.
21592 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
21593 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
21595 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21598 (eval $ac_compile) 2>&5
21600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21601 (exit $ac_status); } 2>conftest.err; then
21604 libobjs=conftest.$ac_objext
21606 wl=$lt_prog_compiler_wl_F77
21607 pic_flag=$lt_prog_compiler_pic_F77
21613 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
21614 allow_undefined_flag_F77=
21615 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
21616 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
21618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21619 (exit $ac_status); }
21621 archive_cmds_need_lc_F77=no
21623 archive_cmds_need_lc_F77=yes
21625 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
21627 cat conftest.err 1>&5
21630 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
21631 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
21638 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
21639 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
21640 library_names_spec=
21641 libname_spec='lib$name'
21645 postuninstall_cmds=
21649 shlibpath_overrides_runpath=unknown
21651 dynamic_linker="$host_os ld.so"
21652 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21653 if test "$GCC" = yes; then
21654 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
21655 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
21656 # if the path contains ";" then we assume it to be the separator
21657 # otherwise default to the standard path separator (i.e. ":") - it is
21658 # assumed that no part of a normal pathname contains ";" but that should
21659 # okay in the real world where ";" in dirpaths is itself problematic.
21660 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21662 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21665 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
21667 need_lib_prefix=unknown
21668 hardcode_into_libs=no
21670 # when you set need_version to no, make sure it does not cause -set_version
21671 # flags to be left without arguments
21672 need_version=unknown
21677 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21678 shlibpath_var=LIBPATH
21680 # AIX 3 has no versioning support, so we append a major version to the name.
21681 soname_spec='${libname}${release}${shared_ext}$major'
21688 hardcode_into_libs=yes
21689 if test "$host_cpu" = ia64; then
21690 # AIX 5 supports IA64
21691 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21692 shlibpath_var=LD_LIBRARY_PATH
21694 # With GCC up to 2.95.x, collect2 would create an import file
21695 # for dependence libraries. The import file would start with
21696 # the line `#! .'. This would cause the generated library to
21697 # depend on `.', always an invalid library. This was fixed in
21698 # development snapshots of GCC prior to 3.0.
21700 aix4 | aix4.[01] | aix4.[01].*)
21701 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21703 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
21706 can_build_shared=no
21710 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21711 # soname into executable. Probably we can add versioning support to
21712 # collect2, so additional links can be useful in future.
21713 if test "$aix_use_runtimelinking" = yes; then
21714 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21715 # instead of lib<name>.a to let people know that these are not
21716 # typical AIX shared libraries.
21717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21719 # We preserve .a as extension for shared libraries through AIX4.2
21720 # and later when we are not doing run time linking.
21721 library_names_spec='${libname}${release}.a $libname.a'
21722 soname_spec='${libname}${release}${shared_ext}$major'
21724 shlibpath_var=LIBPATH
21729 library_names_spec='$libname.ixlibrary $libname.a'
21730 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21731 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'
21735 library_names_spec='${libname}${shared_ext}'
21736 dynamic_linker="$host_os ld.so"
21737 shlibpath_var=LIBRARY_PATH
21743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21744 soname_spec='${libname}${release}${shared_ext}$major'
21745 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21746 shlibpath_var=LD_LIBRARY_PATH
21747 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21748 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21749 # the default ld.so.conf also contains /usr/contrib/lib and
21750 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21751 # libtool to hard-code these into programs
21754 cygwin* | mingw* | pw32*)
21755 version_type=windows
21760 case $GCC,$host_os in
21761 yes,cygwin* | yes,mingw* | yes,pw32*)
21762 library_names_spec='$libname.dll.a'
21763 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21764 postinstall_cmds='base_file=`basename \${file}`~
21765 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
21766 dldir=$destdir/`dirname \$dlpath`~
21767 test -d \$dldir || mkdir -p \$dldir~
21768 $install_prog $dir/$dlname \$dldir/$dlname~
21769 chmod a+x \$dldir/$dlname'
21770 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21771 dlpath=$dir/\$dldll~
21773 shlibpath_overrides_runpath=yes
21777 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21778 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21779 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
21782 # MinGW DLLs use traditional 'lib' prefix
21783 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21784 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
21785 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
21786 # It is most probably a Windows format PATH printed by
21787 # mingw gcc, but we are running on Cygwin. Gcc prints its search
21788 # path with ; separators, and with drive letters. We can handle the
21789 # drive letters (cygwin fileutils understands them), so leave them,
21790 # especially as we might pass files found there to a mingw objdump,
21791 # which wouldn't understand a cygwinified path. Ahh.
21792 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21794 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21798 # pw32 DLLs use 'pw' prefix rather than 'lib'
21799 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21805 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21808 dynamic_linker='Win32 ld.exe'
21809 # FIXME: first we should search . and the directory the executable is in
21813 darwin* | rhapsody*)
21814 dynamic_linker="$host_os dyld"
21815 version_type=darwin
21818 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21819 soname_spec='${libname}${release}${major}$shared_ext'
21820 shlibpath_overrides_runpath=yes
21821 shlibpath_var=DYLD_LIBRARY_PATH
21822 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21823 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
21824 if test "$GCC" = yes; then
21825 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"`
21827 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
21829 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21837 soname_spec='${libname}${release}${shared_ext}$major'
21838 shlibpath_var=LD_LIBRARY_PATH
21849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21850 soname_spec='${libname}${release}${shared_ext}$major'
21851 shlibpath_var=LD_LIBRARY_PATH
21852 shlibpath_overrides_runpath=no
21853 hardcode_into_libs=yes
21854 dynamic_linker='GNU ld.so'
21857 freebsd* | dragonfly*)
21858 # DragonFly does not have aout. When/if they implement a new
21859 # versioning mechanism, adjust this.
21860 if test -x /usr/bin/objformat; then
21861 objformat=`/usr/bin/objformat`
21864 freebsd[123]*) objformat=aout ;;
21865 *) objformat=elf ;;
21868 version_type=freebsd-$objformat
21869 case $version_type in
21871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21876 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21880 shlibpath_var=LD_LIBRARY_PATH
21883 shlibpath_overrides_runpath=yes
21885 freebsd3.[01]* | freebsdelf3.[01]*)
21886 shlibpath_overrides_runpath=yes
21887 hardcode_into_libs=yes
21889 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21890 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21891 shlibpath_overrides_runpath=no
21892 hardcode_into_libs=yes
21894 freebsd*) # from 4.6 on
21895 shlibpath_overrides_runpath=yes
21896 hardcode_into_libs=yes
21905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21906 soname_spec='${libname}${release}${shared_ext}$major'
21907 shlibpath_var=LD_LIBRARY_PATH
21908 hardcode_into_libs=yes
21911 hpux9* | hpux10* | hpux11*)
21912 # Give a soname corresponding to the major version so that dld.sl refuses to
21913 # link against other versions.
21920 hardcode_into_libs=yes
21921 dynamic_linker="$host_os dld.so"
21922 shlibpath_var=LD_LIBRARY_PATH
21923 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21925 soname_spec='${libname}${release}${shared_ext}$major'
21926 if test "X$HPUX_IA64_MODE" = X32; then
21927 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21929 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21931 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21935 hardcode_into_libs=yes
21936 dynamic_linker="$host_os dld.sl"
21937 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21938 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21940 soname_spec='${libname}${release}${shared_ext}$major'
21941 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21942 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21946 dynamic_linker="$host_os dld.sl"
21947 shlibpath_var=SHLIB_PATH
21948 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21950 soname_spec='${libname}${release}${shared_ext}$major'
21953 # HP-UX runs *really* slowly unless shared libraries are mode 555.
21954 postinstall_cmds='chmod 555 $lib'
21961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21962 soname_spec='${libname}${release}${shared_ext}$major'
21963 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21964 shlibpath_var=LD_LIBRARY_PATH
21965 shlibpath_overrides_runpath=no
21966 hardcode_into_libs=yes
21969 irix5* | irix6* | nonstopux*)
21971 nonstopux*) version_type=nonstopux ;;
21973 if test "$lt_cv_prog_gnu_ld" = yes; then
21981 soname_spec='${libname}${release}${shared_ext}$major'
21982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21984 irix5* | nonstopux*)
21985 libsuff= shlibsuff=
21988 case $LD in # libtool.m4 will add one of these switches to LD
21989 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21990 libsuff= shlibsuff= libmagic=32-bit;;
21991 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21992 libsuff=32 shlibsuff=N32 libmagic=N32;;
21993 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21994 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21995 *) libsuff= shlibsuff= libmagic=never-match;;
21999 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22000 shlibpath_overrides_runpath=no
22001 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22002 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22003 hardcode_into_libs=yes
22006 # No shared lib support for Linux oldld, aout, or coff.
22007 linux*oldld* | linux*aout* | linux*coff*)
22011 # This must be Linux ELF.
22016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22017 soname_spec='${libname}${release}${shared_ext}$major'
22018 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22019 shlibpath_var=LD_LIBRARY_PATH
22020 shlibpath_overrides_runpath=no
22021 # This implies no fast_install, which is unacceptable.
22022 # Some rework will be needed to allow for fast_install
22023 # before this can be enabled.
22024 hardcode_into_libs=yes
22026 # find out which ABI we are using
22028 case "$host_cpu" in
22029 x86_64*|s390x*|powerpc64*)
22030 echo '#line 22030 "configure"' > conftest.$ac_ext
22031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22032 (eval $ac_compile) 2>&5
22034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22035 (exit $ac_status); }; then
22036 case `/usr/bin/file conftest.$ac_objext` in
22039 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
22047 # Append ld.so.conf contents to the search path
22048 if test -f /etc/ld.so.conf; then
22049 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
22050 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
22053 # We used to test for /lib/ld.so.1 and disable shared libraries on
22054 # powerpc, because MkLinux only supported shared libraries with the
22055 # GNU dynamic linker. Since this was broken with cross compilers,
22056 # most powerpc-linux boxes support dynamic linking these days and
22057 # people can always --disable-shared, the test was removed, and we
22058 # assume the GNU/Linux dynamic linker is in use.
22059 dynamic_linker='GNU/Linux ld.so'
22066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22067 soname_spec='${libname}${release}${shared_ext}$major'
22068 shlibpath_var=LD_LIBRARY_PATH
22069 shlibpath_overrides_runpath=no
22070 hardcode_into_libs=yes
22071 dynamic_linker='GNU ld.so'
22078 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22080 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22081 dynamic_linker='NetBSD (a.out) ld.so'
22083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22084 soname_spec='${libname}${release}${shared_ext}$major'
22085 dynamic_linker='NetBSD ld.elf_so'
22087 shlibpath_var=LD_LIBRARY_PATH
22088 shlibpath_overrides_runpath=yes
22089 hardcode_into_libs=yes
22094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22095 shlibpath_var=LD_LIBRARY_PATH
22096 shlibpath_overrides_runpath=yes
22103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22104 soname_spec='${libname}${release}${shared_ext}$major'
22105 shlibpath_var=LD_LIBRARY_PATH
22106 shlibpath_overrides_runpath=yes
22111 sys_lib_dlsearch_path_spec="/usr/lib"
22113 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22115 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22116 *) need_version=no ;;
22118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22119 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22120 shlibpath_var=LD_LIBRARY_PATH
22121 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22123 openbsd2.[89] | openbsd2.[89].*)
22124 shlibpath_overrides_runpath=no
22127 shlibpath_overrides_runpath=yes
22131 shlibpath_overrides_runpath=yes
22136 libname_spec='$name'
22139 library_names_spec='$libname${shared_ext} $libname.a'
22140 dynamic_linker='OS/2 ld.exe'
22141 shlibpath_var=LIBPATH
22144 osf3* | osf4* | osf5*)
22148 soname_spec='${libname}${release}${shared_ext}$major'
22149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22150 shlibpath_var=LD_LIBRARY_PATH
22151 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22152 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22160 soname_spec='${libname}${release}${shared_ext}$major'
22161 shlibpath_var=LD_LIBRARY_PATH
22162 shlibpath_overrides_runpath=yes
22163 hardcode_into_libs=yes
22164 # ldd complains unless libraries are executable
22165 postinstall_cmds='chmod +x $lib'
22170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22171 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22172 shlibpath_var=LD_LIBRARY_PATH
22173 shlibpath_overrides_runpath=yes
22174 if test "$with_gnu_ld" = yes; then
22182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22183 soname_spec='${libname}${release}${shared_ext}$major'
22184 shlibpath_var=LD_LIBRARY_PATH
22185 case $host_vendor in
22187 shlibpath_overrides_runpath=no
22189 export_dynamic_flag_spec='${wl}-Blargedynsym'
22190 runpath_var=LD_RUN_PATH
22198 shlibpath_overrides_runpath=no
22199 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22205 if test -d /usr/nec ;then
22207 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22208 soname_spec='$libname${shared_ext}.$major'
22209 shlibpath_var=LD_LIBRARY_PATH
22213 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22214 version_type=freebsd-elf
22217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22218 soname_spec='${libname}${release}${shared_ext}$major'
22219 shlibpath_var=LD_LIBRARY_PATH
22220 hardcode_into_libs=yes
22221 if test "$with_gnu_ld" = yes; then
22222 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22223 shlibpath_overrides_runpath=no
22225 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22226 shlibpath_overrides_runpath=yes
22229 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22233 sys_lib_dlsearch_path_spec='/usr/lib'
22238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22239 soname_spec='${libname}${release}${shared_ext}$major'
22240 shlibpath_var=LD_LIBRARY_PATH
22247 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22248 echo "${ECHO_T}$dynamic_linker" >&6
22249 test "$dynamic_linker" = no && can_build_shared=no
22251 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22252 if test "$GCC" = yes; then
22253 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22256 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22257 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22258 hardcode_action_F77=
22259 if test -n "$hardcode_libdir_flag_spec_F77" || \
22260 test -n "$runpath_var_F77" || \
22261 test "X$hardcode_automatic_F77" = "Xyes" ; then
22263 # We can hardcode non-existant directories.
22264 if test "$hardcode_direct_F77" != no &&
22265 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22266 # have to relink, otherwise we might link with an installed library
22267 # when we should be linking with a yet-to-be-installed one
22268 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
22269 test "$hardcode_minus_L_F77" != no; then
22270 # Linking always hardcodes the temporary library directory.
22271 hardcode_action_F77=relink
22273 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22274 hardcode_action_F77=immediate
22277 # We cannot hardcode anything, or else we can only hardcode existing
22279 hardcode_action_F77=unsupported
22281 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
22282 echo "${ECHO_T}$hardcode_action_F77" >&6
22284 if test "$hardcode_action_F77" = relink; then
22285 # Fast installation is not supported
22286 enable_fast_install=no
22287 elif test "$shlibpath_overrides_runpath" = yes ||
22288 test "$enable_shared" = no; then
22289 # Fast installation is not necessary
22290 enable_fast_install=needless
22294 # The else clause should only fire when bootstrapping the
22295 # libtool distribution, otherwise you forgot to ship ltmain.sh
22296 # with your package, and you will get complaints that there are
22297 # no rules to generate ltmain.sh.
22298 if test -f "$ltmain"; then
22299 # See if we are running on zsh, and set the options which allow our commands through
22300 # without removal of \ escapes.
22301 if test -n "${ZSH_VERSION+set}" ; then
22302 setopt NO_GLOB_SUBST
22304 # Now quote all the things that may contain metacharacters while being
22305 # careful not to overquote the AC_SUBSTed values. We take copies of the
22306 # variables and quote the copies for generation of the libtool script.
22307 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
22309 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
22310 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
22311 deplibs_check_method reload_flag reload_cmds need_locks \
22312 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
22313 lt_cv_sys_global_symbol_to_c_name_address \
22314 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
22315 old_postinstall_cmds old_postuninstall_cmds \
22319 lt_prog_compiler_wl_F77 \
22320 lt_prog_compiler_pic_F77 \
22321 lt_prog_compiler_static_F77 \
22322 lt_prog_compiler_no_builtin_flag_F77 \
22323 export_dynamic_flag_spec_F77 \
22324 thread_safe_flag_spec_F77 \
22325 whole_archive_flag_spec_F77 \
22326 enable_shared_with_static_runtimes_F77 \
22327 old_archive_cmds_F77 \
22328 old_archive_from_new_cmds_F77 \
22329 predep_objects_F77 \
22330 postdep_objects_F77 \
22333 compiler_lib_search_path_F77 \
22335 archive_expsym_cmds_F77 \
22336 postinstall_cmds_F77 \
22337 postuninstall_cmds_F77 \
22338 old_archive_from_expsyms_cmds_F77 \
22339 allow_undefined_flag_F77 \
22340 no_undefined_flag_F77 \
22341 export_symbols_cmds_F77 \
22342 hardcode_libdir_flag_spec_F77 \
22343 hardcode_libdir_flag_spec_ld_F77 \
22344 hardcode_libdir_separator_F77 \
22345 hardcode_automatic_F77 \
22347 module_expsym_cmds_F77 \
22348 lt_cv_prog_compiler_c_o_F77 \
22349 exclude_expsyms_F77 \
22350 include_expsyms_F77; do
22353 old_archive_cmds_F77 | \
22354 old_archive_from_new_cmds_F77 | \
22355 archive_cmds_F77 | \
22356 archive_expsym_cmds_F77 | \
22357 module_cmds_F77 | \
22358 module_expsym_cmds_F77 | \
22359 old_archive_from_expsyms_cmds_F77 | \
22360 export_symbols_cmds_F77 | \
22361 extract_expsyms_cmds | reload_cmds | finish_cmds | \
22362 postinstall_cmds | postuninstall_cmds | \
22363 old_postinstall_cmds | old_postuninstall_cmds | \
22364 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
22365 # Double-quote double-evaled strings.
22366 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
22369 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
22375 *'\$0 --fallback-echo"')
22376 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
22382 cat <<__EOF__ >> "$cfgfile"
22383 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
22385 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22387 # Shell to use when invoking shell scripts.
22390 # Whether or not to build shared libraries.
22391 build_libtool_libs=$enable_shared
22393 # Whether or not to build static libraries.
22394 build_old_libs=$enable_static
22396 # Whether or not to add -lc for building shared libraries.
22397 build_libtool_need_lc=$archive_cmds_need_lc_F77
22399 # Whether or not to disallow shared libs when runtime libs are static
22400 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
22402 # Whether or not to optimize for fast installation.
22403 fast_install=$enable_fast_install
22406 host_alias=$host_alias
22410 # The build system.
22411 build_alias=$build_alias
22415 # An echo program that does not interpret backslashes.
22420 AR_FLAGS=$lt_AR_FLAGS
22425 # LTCC compiler flags.
22426 LTCFLAGS=$lt_LTCFLAGS
22428 # A language-specific compiler.
22429 CC=$lt_compiler_F77
22431 # Is the compiler the GNU C compiler?
22437 # The linker used to build libraries.
22440 # Whether we need hard or soft links.
22443 # A BSD-compatible nm program.
22446 # A symbol stripping program
22449 # Used to examine libraries when file_magic_cmd begins "file"
22450 MAGIC_CMD=$MAGIC_CMD
22452 # Used on cygwin: DLL creation program.
22455 # Used on cygwin: object dumper.
22458 # Used on cygwin: assembler.
22461 # The name of the directory that contains temporary libtool files.
22464 # How to create reloadable object files.
22465 reload_flag=$lt_reload_flag
22466 reload_cmds=$lt_reload_cmds
22468 # How to pass a linker flag through the compiler.
22469 wl=$lt_lt_prog_compiler_wl_F77
22471 # Object file suffix (normally "o").
22472 objext="$ac_objext"
22474 # Old archive suffix (normally "a").
22477 # Shared library suffix (normally ".so").
22478 shrext_cmds='$shrext_cmds'
22480 # Executable file suffix (normally "").
22483 # Additional compiler flags for building library objects.
22484 pic_flag=$lt_lt_prog_compiler_pic_F77
22487 # What is the maximum length of a command?
22488 max_cmd_len=$lt_cv_sys_max_cmd_len
22490 # Does compiler simultaneously support -c and -o options?
22491 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
22493 # Must we lock files when doing compilation?
22494 need_locks=$lt_need_locks
22496 # Do we need the lib prefix for modules?
22497 need_lib_prefix=$need_lib_prefix
22499 # Do we need a version for libraries?
22500 need_version=$need_version
22502 # Whether dlopen is supported.
22503 dlopen_support=$enable_dlopen
22505 # Whether dlopen of programs is supported.
22506 dlopen_self=$enable_dlopen_self
22508 # Whether dlopen of statically linked programs is supported.
22509 dlopen_self_static=$enable_dlopen_self_static
22511 # Compiler flag to prevent dynamic linking.
22512 link_static_flag=$lt_lt_prog_compiler_static_F77
22514 # Compiler flag to turn off builtin functions.
22515 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
22517 # Compiler flag to allow reflexive dlopens.
22518 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
22520 # Compiler flag to generate shared objects directly from archives.
22521 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
22523 # Compiler flag to generate thread-safe objects.
22524 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
22526 # Library versioning type.
22527 version_type=$version_type
22529 # Format of library name prefix.
22530 libname_spec=$lt_libname_spec
22532 # List of archive names. First name is the real one, the rest are links.
22533 # The last name is the one that the linker finds with -lNAME.
22534 library_names_spec=$lt_library_names_spec
22536 # The coded name of the library, if different from the real name.
22537 soname_spec=$lt_soname_spec
22539 # Commands used to build and install an old-style archive.
22541 old_archive_cmds=$lt_old_archive_cmds_F77
22542 old_postinstall_cmds=$lt_old_postinstall_cmds
22543 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22545 # Create an old-style archive from a shared archive.
22546 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
22548 # Create a temporary old-style archive to link instead of a shared archive.
22549 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
22551 # Commands used to build and install a shared archive.
22552 archive_cmds=$lt_archive_cmds_F77
22553 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
22554 postinstall_cmds=$lt_postinstall_cmds
22555 postuninstall_cmds=$lt_postuninstall_cmds
22557 # Commands used to build a loadable module (assumed same as above if empty)
22558 module_cmds=$lt_module_cmds_F77
22559 module_expsym_cmds=$lt_module_expsym_cmds_F77
22561 # Commands to strip libraries.
22562 old_striplib=$lt_old_striplib
22563 striplib=$lt_striplib
22565 # Dependencies to place before the objects being linked to create a
22567 predep_objects=$lt_predep_objects_F77
22569 # Dependencies to place after the objects being linked to create a
22571 postdep_objects=$lt_postdep_objects_F77
22573 # Dependencies to place before the objects being linked to create a
22575 predeps=$lt_predeps_F77
22577 # Dependencies to place after the objects being linked to create a
22579 postdeps=$lt_postdeps_F77
22581 # The library search path used internally by the compiler when linking
22582 # a shared library.
22583 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
22585 # Method to check whether dependent libraries are shared objects.
22586 deplibs_check_method=$lt_deplibs_check_method
22588 # Command to use when deplibs_check_method == file_magic.
22589 file_magic_cmd=$lt_file_magic_cmd
22591 # Flag that allows shared libraries with undefined symbols to be built.
22592 allow_undefined_flag=$lt_allow_undefined_flag_F77
22594 # Flag that forces no undefined symbols.
22595 no_undefined_flag=$lt_no_undefined_flag_F77
22597 # Commands used to finish a libtool library installation in a directory.
22598 finish_cmds=$lt_finish_cmds
22600 # Same as above, but a single script fragment to be evaled but not shown.
22601 finish_eval=$lt_finish_eval
22603 # Take the output of nm and produce a listing of raw symbols and C names.
22604 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22606 # Transform the output of nm in a proper C declaration
22607 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22609 # Transform the output of nm in a C name address pair
22610 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22612 # This is the shared library runtime path variable.
22613 runpath_var=$runpath_var
22615 # This is the shared library path variable.
22616 shlibpath_var=$shlibpath_var
22618 # Is shlibpath searched before the hard-coded library search path?
22619 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22621 # How to hardcode a shared library path into an executable.
22622 hardcode_action=$hardcode_action_F77
22624 # Whether we should hardcode library paths into libraries.
22625 hardcode_into_libs=$hardcode_into_libs
22627 # Flag to hardcode \$libdir into a binary during linking.
22628 # This must work even if \$libdir does not exist.
22629 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
22631 # If ld is used when linking, flag to hardcode \$libdir into
22632 # a binary during linking. This must work even if \$libdir does
22634 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
22636 # Whether we need a single -rpath flag with a separated argument.
22637 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
22639 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
22640 # resulting binary.
22641 hardcode_direct=$hardcode_direct_F77
22643 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
22644 # resulting binary.
22645 hardcode_minus_L=$hardcode_minus_L_F77
22647 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
22648 # the resulting binary.
22649 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
22651 # Set to yes if building a shared library automatically hardcodes DIR into the library
22652 # and all subsequent libraries and executables linked against it.
22653 hardcode_automatic=$hardcode_automatic_F77
22655 # Variables whose values should be saved in libtool wrapper scripts and
22656 # restored at relink time.
22657 variables_saved_for_relink="$variables_saved_for_relink"
22659 # Whether libtool must link a program against all its dependency libraries.
22660 link_all_deplibs=$link_all_deplibs_F77
22662 # Compile-time system search path for libraries
22663 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22665 # Run-time system search path for libraries
22666 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22668 # Fix the shell variable \$srcfile for the compiler.
22669 fix_srcfile_path="$fix_srcfile_path_F77"
22671 # Set to yes if exported symbols are required.
22672 always_export_symbols=$always_export_symbols_F77
22674 # The commands to list exported symbols.
22675 export_symbols_cmds=$lt_export_symbols_cmds_F77
22677 # The commands to extract the exported symbol list from a shared archive.
22678 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22680 # Symbols that should not be listed in the preloaded symbols.
22681 exclude_expsyms=$lt_exclude_expsyms_F77
22683 # Symbols that must always be exported.
22684 include_expsyms=$lt_include_expsyms_F77
22686 # ### END LIBTOOL TAG CONFIG: $tagname
22692 # If there is no Makefile yet, we rely on a make rule to execute
22693 # `config.status --recheck' to rerun these tests and create the
22694 # libtool script then.
22695 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
22696 if test -f "$ltmain_in"; then
22697 test -f Makefile && make "$ltmain"
22703 ac_cpp='$CPP $CPPFLAGS'
22704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22716 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
22720 # Source file extension for Java test sources.
22723 # Object file extension for compiled Java test sources.
22727 # Code to be used in simple compile tests
22728 lt_simple_compile_test_code="class foo {}\n"
22730 # Code to be used in simple link tests
22731 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
22733 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
22735 # If no C compiler was specified, use CC.
22738 # If no C compiler flags were specified, use CFLAGS.
22739 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
22741 # Allow CC to be a program name with arguments.
22745 # save warnings/boilerplate of simple test code
22746 ac_outfile=conftest.$ac_objext
22747 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
22748 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
22749 _lt_compiler_boilerplate=`cat conftest.err`
22752 ac_outfile=conftest.$ac_objext
22753 printf "$lt_simple_link_test_code" >conftest.$ac_ext
22754 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
22755 _lt_linker_boilerplate=`cat conftest.err`
22759 # Allow CC to be a program name with arguments.
22764 for cc_temp in $compiler""; do
22766 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22767 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22772 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
22775 # GCJ did not exist at the time GCC didn't implicitly link libc in.
22776 archive_cmds_need_lc_GCJ=no
22778 old_archive_cmds_GCJ=$old_archive_cmds
22781 lt_prog_compiler_no_builtin_flag_GCJ=
22783 if test "$GCC" = yes; then
22784 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
22787 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
22788 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
22789 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
22790 echo $ECHO_N "(cached) $ECHO_C" >&6
22792 lt_cv_prog_compiler_rtti_exceptions=no
22793 ac_outfile=conftest.$ac_objext
22794 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22795 lt_compiler_flag="-fno-rtti -fno-exceptions"
22796 # Insert the option either (1) after the last *FLAGS variable, or
22797 # (2) before a word containing "conftest.", or (3) at the end.
22798 # Note that $ac_compile itself does not contain backslashes and begins
22799 # with a dollar sign (not a hyphen), so the echo should work correctly.
22800 # The option is referenced via a variable to avoid confusing sed.
22801 lt_compile=`echo "$ac_compile" | $SED \
22802 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22803 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22804 -e 's:$: $lt_compiler_flag:'`
22805 (eval echo "\"\$as_me:22805: $lt_compile\"" >&5)
22806 (eval "$lt_compile" 2>conftest.err)
22808 cat conftest.err >&5
22809 echo "$as_me:22809: \$? = $ac_status" >&5
22810 if (exit $ac_status) && test -s "$ac_outfile"; then
22811 # The compiler can only warn and ignore the option if not recognized
22812 # So say no if there are warnings other than the usual output.
22813 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
22814 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22815 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
22816 lt_cv_prog_compiler_rtti_exceptions=yes
22822 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
22823 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
22825 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
22826 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
22833 lt_prog_compiler_wl_GCJ=
22834 lt_prog_compiler_pic_GCJ=
22835 lt_prog_compiler_static_GCJ=
22837 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
22838 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
22840 if test "$GCC" = yes; then
22841 lt_prog_compiler_wl_GCJ='-Wl,'
22842 lt_prog_compiler_static_GCJ='-static'
22846 # All AIX code is PIC.
22847 if test "$host_cpu" = ia64; then
22848 # AIX 5 now supports IA64 processor
22849 lt_prog_compiler_static_GCJ='-Bstatic'
22854 # FIXME: we need at least 68020 code to build shared libraries, but
22855 # adding the `-m68020' flag to GCC prevents building anything better,
22857 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
22860 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
22861 # PIC is the default for these OSes.
22864 mingw* | pw32* | os2*)
22865 # This hack is so that the source file can tell whether it is being
22866 # built for inclusion in a dll (and should export symbols for example).
22867 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
22870 darwin* | rhapsody*)
22871 # PIC is the default on this platform
22872 # Common symbols not allowed in MH_DYLIB files
22873 lt_prog_compiler_pic_GCJ='-fno-common'
22877 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
22878 # Instead, we relocate shared libraries at runtime.
22882 # Just because we use GCC doesn't mean we suddenly get shared libraries
22883 # on systems that don't support them.
22884 lt_prog_compiler_can_build_shared_GCJ=no
22889 if test -d /usr/nec; then
22890 lt_prog_compiler_pic_GCJ=-Kconform_pic
22895 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22896 # not for PA HP-UX.
22902 lt_prog_compiler_pic_GCJ='-fPIC'
22908 lt_prog_compiler_pic_GCJ='-fPIC'
22912 # PORTME Check for flag to pass linker flags through the system compiler.
22915 lt_prog_compiler_wl_GCJ='-Wl,'
22916 if test "$host_cpu" = ia64; then
22917 # AIX 5 now supports IA64 processor
22918 lt_prog_compiler_static_GCJ='-Bstatic'
22920 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
22924 # PIC is the default on this platform
22925 # Common symbols not allowed in MH_DYLIB files
22926 case $cc_basename in
22928 lt_prog_compiler_pic_GCJ='-qnocommon'
22929 lt_prog_compiler_wl_GCJ='-Wl,'
22934 mingw* | pw32* | os2*)
22935 # This hack is so that the source file can tell whether it is being
22936 # built for inclusion in a dll (and should export symbols for example).
22937 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
22940 hpux9* | hpux10* | hpux11*)
22941 lt_prog_compiler_wl_GCJ='-Wl,'
22942 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22943 # not for PA HP-UX.
22949 lt_prog_compiler_pic_GCJ='+Z'
22952 # Is there a better lt_prog_compiler_static that works with the bundled CC?
22953 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
22956 irix5* | irix6* | nonstopux*)
22957 lt_prog_compiler_wl_GCJ='-Wl,'
22958 # PIC (with -KPIC) is the default.
22959 lt_prog_compiler_static_GCJ='-non_shared'
22963 lt_prog_compiler_pic_GCJ='-KPIC'
22964 lt_prog_compiler_static_GCJ='-Bstatic'
22968 case $cc_basename in
22970 lt_prog_compiler_wl_GCJ='-Wl,'
22971 lt_prog_compiler_pic_GCJ='-KPIC'
22972 lt_prog_compiler_static_GCJ='-static'
22974 pgcc* | pgf77* | pgf90* | pgf95*)
22975 # Portland Group compilers (*not* the Pentium gcc compiler,
22976 # which looks to be a dead project)
22977 lt_prog_compiler_wl_GCJ='-Wl,'
22978 lt_prog_compiler_pic_GCJ='-fpic'
22979 lt_prog_compiler_static_GCJ='-Bstatic'
22982 lt_prog_compiler_wl_GCJ='-Wl,'
22983 # All Alpha code is PIC.
22984 lt_prog_compiler_static_GCJ='-non_shared'
22989 osf3* | osf4* | osf5*)
22990 lt_prog_compiler_wl_GCJ='-Wl,'
22991 # All OSF/1 code is PIC.
22992 lt_prog_compiler_static_GCJ='-non_shared'
22996 lt_prog_compiler_pic_GCJ='-KPIC'
22997 lt_prog_compiler_static_GCJ='-Bstatic'
22998 case $cc_basename in
22999 f77* | f90* | f95*)
23000 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23002 lt_prog_compiler_wl_GCJ='-Wl,';;
23007 lt_prog_compiler_wl_GCJ='-Qoption ld '
23008 lt_prog_compiler_pic_GCJ='-PIC'
23009 lt_prog_compiler_static_GCJ='-Bstatic'
23012 sysv4 | sysv4.2uw2* | sysv4.3*)
23013 lt_prog_compiler_wl_GCJ='-Wl,'
23014 lt_prog_compiler_pic_GCJ='-KPIC'
23015 lt_prog_compiler_static_GCJ='-Bstatic'
23019 if test -d /usr/nec ;then
23020 lt_prog_compiler_pic_GCJ='-Kconform_pic'
23021 lt_prog_compiler_static_GCJ='-Bstatic'
23025 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23026 lt_prog_compiler_wl_GCJ='-Wl,'
23027 lt_prog_compiler_pic_GCJ='-KPIC'
23028 lt_prog_compiler_static_GCJ='-Bstatic'
23032 lt_prog_compiler_wl_GCJ='-Wl,'
23033 lt_prog_compiler_can_build_shared_GCJ=no
23037 lt_prog_compiler_pic_GCJ='-pic'
23038 lt_prog_compiler_static_GCJ='-Bstatic'
23042 lt_prog_compiler_can_build_shared_GCJ=no
23047 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23048 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
23051 # Check to make sure the PIC flag actually works.
23053 if test -n "$lt_prog_compiler_pic_GCJ"; then
23055 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23056 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
23057 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23058 echo $ECHO_N "(cached) $ECHO_C" >&6
23060 lt_prog_compiler_pic_works_GCJ=no
23061 ac_outfile=conftest.$ac_objext
23062 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23063 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
23064 # Insert the option either (1) after the last *FLAGS variable, or
23065 # (2) before a word containing "conftest.", or (3) at the end.
23066 # Note that $ac_compile itself does not contain backslashes and begins
23067 # with a dollar sign (not a hyphen), so the echo should work correctly.
23068 # The option is referenced via a variable to avoid confusing sed.
23069 lt_compile=`echo "$ac_compile" | $SED \
23070 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23071 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23072 -e 's:$: $lt_compiler_flag:'`
23073 (eval echo "\"\$as_me:23073: $lt_compile\"" >&5)
23074 (eval "$lt_compile" 2>conftest.err)
23076 cat conftest.err >&5
23077 echo "$as_me:23077: \$? = $ac_status" >&5
23078 if (exit $ac_status) && test -s "$ac_outfile"; then
23079 # The compiler can only warn and ignore the option if not recognized
23080 # So say no if there are warnings other than the usual output.
23081 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23082 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23083 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23084 lt_prog_compiler_pic_works_GCJ=yes
23090 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
23091 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
23093 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
23094 case $lt_prog_compiler_pic_GCJ in
23096 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
23099 lt_prog_compiler_pic_GCJ=
23100 lt_prog_compiler_can_build_shared_GCJ=no
23105 # For platforms which do not support PIC, -DPIC is meaningless:
23107 lt_prog_compiler_pic_GCJ=
23110 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
23115 # Check to make sure the static flag actually works.
23117 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
23118 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23119 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
23120 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
23121 echo $ECHO_N "(cached) $ECHO_C" >&6
23123 lt_prog_compiler_static_works_GCJ=no
23124 save_LDFLAGS="$LDFLAGS"
23125 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
23126 printf "$lt_simple_link_test_code" > conftest.$ac_ext
23127 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
23128 # The linker can only warn and ignore the option if not recognized
23129 # So say no if there are warnings
23130 if test -s conftest.err; then
23131 # Append any errors to the config.log.
23132 cat conftest.err 1>&5
23133 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
23134 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23135 if diff conftest.exp conftest.er2 >/dev/null; then
23136 lt_prog_compiler_static_works_GCJ=yes
23139 lt_prog_compiler_static_works_GCJ=yes
23143 LDFLAGS="$save_LDFLAGS"
23146 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
23147 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
23149 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
23152 lt_prog_compiler_static_GCJ=
23156 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
23157 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
23158 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
23159 echo $ECHO_N "(cached) $ECHO_C" >&6
23161 lt_cv_prog_compiler_c_o_GCJ=no
23162 $rm -r conftest 2>/dev/null
23166 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23168 lt_compiler_flag="-o out/conftest2.$ac_objext"
23169 # Insert the option either (1) after the last *FLAGS variable, or
23170 # (2) before a word containing "conftest.", or (3) at the end.
23171 # Note that $ac_compile itself does not contain backslashes and begins
23172 # with a dollar sign (not a hyphen), so the echo should work correctly.
23173 lt_compile=`echo "$ac_compile" | $SED \
23174 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23175 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23176 -e 's:$: $lt_compiler_flag:'`
23177 (eval echo "\"\$as_me:23177: $lt_compile\"" >&5)
23178 (eval "$lt_compile" 2>out/conftest.err)
23180 cat out/conftest.err >&5
23181 echo "$as_me:23181: \$? = $ac_status" >&5
23182 if (exit $ac_status) && test -s out/conftest2.$ac_objext
23184 # The compiler can only warn and ignore the option if not recognized
23185 # So say no if there are warnings
23186 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
23187 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
23188 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
23189 lt_cv_prog_compiler_c_o_GCJ=yes
23194 # SGI C++ compiler will create directory out/ii_files/ for
23195 # template instantiation
23196 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
23197 $rm out/* && rmdir out
23203 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
23204 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
23207 hard_links="nottested"
23208 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
23209 # do not overwrite the value of need_locks provided by the user
23210 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
23211 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
23214 ln conftest.a conftest.b 2>/dev/null && hard_links=no
23216 ln conftest.a conftest.b 2>&5 || hard_links=no
23217 ln conftest.a conftest.b 2>/dev/null && hard_links=no
23218 echo "$as_me:$LINENO: result: $hard_links" >&5
23219 echo "${ECHO_T}$hard_links" >&6
23220 if test "$hard_links" = no; then
23221 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
23222 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
23229 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
23230 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
23233 allow_undefined_flag_GCJ=
23234 enable_shared_with_static_runtimes_GCJ=no
23236 archive_expsym_cmds_GCJ=
23237 old_archive_From_new_cmds_GCJ=
23238 old_archive_from_expsyms_cmds_GCJ=
23239 export_dynamic_flag_spec_GCJ=
23240 whole_archive_flag_spec_GCJ=
23241 thread_safe_flag_spec_GCJ=
23242 hardcode_libdir_flag_spec_GCJ=
23243 hardcode_libdir_flag_spec_ld_GCJ=
23244 hardcode_libdir_separator_GCJ=
23245 hardcode_direct_GCJ=no
23246 hardcode_minus_L_GCJ=no
23247 hardcode_shlibpath_var_GCJ=unsupported
23248 link_all_deplibs_GCJ=unknown
23249 hardcode_automatic_GCJ=no
23251 module_expsym_cmds_GCJ=
23252 always_export_symbols_GCJ=no
23253 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
23254 # include_expsyms should be a list of space-separated symbols to be *always*
23255 # included in the symbol list
23256 include_expsyms_GCJ=
23257 # exclude_expsyms can be an extended regexp of symbols to exclude
23258 # it will be wrapped by ` (' and `)$', so one must not match beginning or
23259 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
23260 # as well as any symbol that contains `d'.
23261 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
23262 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
23263 # platforms (ab)use it in PIC code, but their linkers get confused if
23264 # the symbol is explicitly referenced. Since portable code cannot
23265 # rely on this symbol name, it's probably fine to never include it in
23266 # preloaded symbol tables.
23267 extract_expsyms_cmds=
23268 # Just being paranoid about ensuring that cc_basename is set.
23269 for cc_temp in $compiler""; do
23271 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23272 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23277 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23280 cygwin* | mingw* | pw32*)
23281 # FIXME: the MSVC++ port hasn't been tested in a loooong time
23282 # When not using gcc, we currently assume that we are using
23283 # Microsoft Visual C++.
23284 if test "$GCC" != yes; then
23289 # we just hope/assume this is gcc and not c89 (= MSVC++)
23298 if test "$with_gnu_ld" = yes; then
23299 # If archive_cmds runs LD, not CC, wlarc should be empty
23302 # Set some defaults for GNU ld with shared library support. These
23303 # are reset later if shared libraries are not supported. Putting them
23304 # here allows them to be overridden if necessary.
23305 runpath_var=LD_RUN_PATH
23306 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
23307 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
23308 # ancient GNU ld didn't support --whole-archive et. al.
23309 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
23310 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
23312 whole_archive_flag_spec_GCJ=
23314 supports_anon_versioning=no
23315 case `$LD -v 2>/dev/null` in
23316 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
23317 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
23318 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
23319 *\ 2.11.*) ;; # other 2.11 versions
23320 *) supports_anon_versioning=yes ;;
23323 # See if GNU ld supports shared libraries.
23325 aix3* | aix4* | aix5*)
23326 # On AIX/PPC, the GNU linker is very broken
23327 if test "$host_cpu" != ia64; then
23331 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
23332 *** to be unable to reliably create shared libraries on AIX.
23333 *** Therefore, libtool is disabling shared libraries support. If you
23334 *** really care for shared libraries, you may want to modify your PATH
23335 *** so that a non-GNU linker is found, and then restart.
23342 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)'
23343 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23344 hardcode_minus_L_GCJ=yes
23346 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
23347 # that the semantics of dynamic libraries on AmigaOS, at least up
23348 # to version 4, is to share data among multiple programs linked
23349 # with the same dynamic library. Since this doesn't match the
23350 # behavior of shared libraries on other platforms, we can't use
23356 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23357 allow_undefined_flag_GCJ=unsupported
23358 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
23359 # support --undefined. This deserves some investigation. FIXME
23360 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23366 cygwin* | mingw* | pw32*)
23367 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
23368 # as there is no search path for DLLs.
23369 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23370 allow_undefined_flag_GCJ=unsupported
23371 always_export_symbols_GCJ=no
23372 enable_shared_with_static_runtimes_GCJ=yes
23373 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
23375 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
23376 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
23377 # If the export-symbols file already is a .def file (1st line
23378 # is EXPORTS), use it as is; otherwise, prepend...
23379 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
23380 cp $export_symbols $output_objdir/$soname.def;
23382 echo EXPORTS > $output_objdir/$soname.def;
23383 cat $export_symbols >> $output_objdir/$soname.def;
23385 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
23392 hardcode_direct_GCJ=no
23393 hardcode_shlibpath_var_GCJ=no
23394 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
23395 export_dynamic_flag_spec_GCJ='${wl}-E'
23396 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
23397 # Instead, shared libraries are loaded at an image base (0x10000000 by
23398 # default) and relocated if they conflict, which is a slow very memory
23399 # consuming and fragmenting process. To avoid this, we pick a random,
23400 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
23401 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
23402 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'
23403 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'
23407 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23409 case $cc_basename,$host_cpu in
23410 pgcc*) # Portland Group C compiler
23411 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'
23412 tmp_addflag=' $pic_flag'
23414 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
23415 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'
23416 tmp_addflag=' $pic_flag -Mnomain' ;;
23417 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
23418 tmp_addflag=' -i_dynamic' ;;
23419 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
23420 tmp_addflag=' -i_dynamic -nofor_main' ;;
23421 ifc* | ifort*) # Intel Fortran compiler
23422 tmp_addflag=' -nofor_main' ;;
23424 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23426 if test $supports_anon_versioning = yes; then
23427 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
23428 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
23429 $echo "local: *; };" >> $output_objdir/$libname.ver~
23430 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
23438 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23439 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
23442 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23443 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23448 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
23452 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
23453 *** create shared libraries on Solaris systems. Therefore, libtool
23454 *** is disabling shared libraries support. We urge you to upgrade GNU
23455 *** binutils to release 2.9.1 or newer. Another option is to modify
23456 *** your PATH or compiler configuration so that the native linker is
23457 *** used, and then restart.
23460 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23461 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23462 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23468 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
23469 case `$LD -v 2>&1` in
23470 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
23474 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
23475 *** reliably create shared libraries on SCO systems. Therefore, libtool
23476 *** is disabling shared libraries support. We urge you to upgrade GNU
23477 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
23478 *** your PATH or compiler configuration so that the native linker is
23479 *** used, and then restart.
23484 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23485 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
23486 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
23487 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
23496 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23498 hardcode_direct_GCJ=yes
23499 hardcode_shlibpath_var_GCJ=no
23503 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23504 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23505 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23512 if test "$ld_shlibs_GCJ" = no; then
23514 hardcode_libdir_flag_spec_GCJ=
23515 export_dynamic_flag_spec_GCJ=
23516 whole_archive_flag_spec_GCJ=
23519 # PORTME fill in a description of your system's linker (not GNU ld)
23522 allow_undefined_flag_GCJ=unsupported
23523 always_export_symbols_GCJ=yes
23524 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'
23525 # Note: this linker hardcodes the directories in LIBPATH if there
23526 # are no directories specified by -L.
23527 hardcode_minus_L_GCJ=yes
23528 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
23529 # Neither direct hardcoding nor static linking is supported with a
23531 hardcode_direct_GCJ=unsupported
23536 if test "$host_cpu" = ia64; then
23537 # On IA64, the linker does run time linking by default, so we don't
23538 # have to do anything special.
23539 aix_use_runtimelinking=no
23540 exp_sym_flag='-Bexport'
23543 # If we're using GNU nm, then we don't want the "-C" option.
23544 # -C means demangle to AIX nm, but means don't demangle with GNU nm
23545 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
23546 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'
23548 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'
23550 aix_use_runtimelinking=no
23552 # Test if we are trying to use run time linking or normal
23553 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
23554 # need to do runtime linking.
23555 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
23556 for ld_flag in $LDFLAGS; do
23557 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
23558 aix_use_runtimelinking=yes
23565 exp_sym_flag='-bexport'
23566 no_entry_flag='-bnoentry'
23569 # When large executables or shared objects are built, AIX ld can
23570 # have problems creating the table of contents. If linking a library
23571 # or program results in "error TOC overflow" add -mminimal-toc to
23572 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
23573 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
23575 archive_cmds_GCJ=''
23576 hardcode_direct_GCJ=yes
23577 hardcode_libdir_separator_GCJ=':'
23578 link_all_deplibs_GCJ=yes
23580 if test "$GCC" = yes; then
23581 case $host_os in aix4.[012]|aix4.[012].*)
23582 # We only want to do this on AIX 4.2 and lower, the check
23583 # below for broken collect2 doesn't work under 4.3+
23584 collect2name=`${CC} -print-prog-name=collect2`
23585 if test -f "$collect2name" && \
23586 strings "$collect2name" | grep resolve_lib_name >/dev/null
23588 # We have reworked collect2
23589 hardcode_direct_GCJ=yes
23591 # We have old collect2
23592 hardcode_direct_GCJ=unsupported
23593 # It fails to find uninstalled libraries when the uninstalled
23594 # path is not listed in the libpath. Setting hardcode_minus_L
23595 # to unsupported forces relinking
23596 hardcode_minus_L_GCJ=yes
23597 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23598 hardcode_libdir_separator_GCJ=
23602 shared_flag='-shared'
23603 if test "$aix_use_runtimelinking" = yes; then
23604 shared_flag="$shared_flag "'${wl}-G'
23608 if test "$host_cpu" = ia64; then
23609 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
23610 # chokes on -Wl,-G. The following line is correct:
23613 if test "$aix_use_runtimelinking" = yes; then
23614 shared_flag='${wl}-G'
23616 shared_flag='${wl}-bM:SRE'
23621 # It seems that -bexpall does not export symbols beginning with
23622 # underscore (_), so it is better to generate a list of symbols to export.
23623 always_export_symbols_GCJ=yes
23624 if test "$aix_use_runtimelinking" = yes; then
23625 # Warning - without using the other runtime loading flags (-brtl),
23626 # -berok will link without error, but may produce a broken library.
23627 allow_undefined_flag_GCJ='-berok'
23628 # Determine the default libpath from the value encoded in an empty executable.
23629 cat >conftest.$ac_ext <<_ACEOF
23632 cat confdefs.h >>conftest.$ac_ext
23633 cat >>conftest.$ac_ext <<_ACEOF
23634 /* end confdefs.h. */
23644 rm -f conftest.$ac_objext conftest$ac_exeext
23645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23646 (eval $ac_link) 2>conftest.er1
23648 grep -v '^ *+' conftest.er1 >conftest.err
23650 cat conftest.err >&5
23651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23652 (exit $ac_status); } &&
23653 { ac_try='test -z "$ac_c_werror_flag"
23654 || test ! -s conftest.err'
23655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23656 (eval $ac_try) 2>&5
23658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23659 (exit $ac_status); }; } &&
23660 { ac_try='test -s conftest$ac_exeext'
23661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23662 (eval $ac_try) 2>&5
23664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23665 (exit $ac_status); }; }; then
23667 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
23669 # Check for a 64-bit object if we didn't find anything.
23670 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; }
23673 echo "$as_me: failed program was:" >&5
23674 sed 's/^/| /' conftest.$ac_ext >&5
23677 rm -f conftest.err conftest.$ac_objext \
23678 conftest$ac_exeext conftest.$ac_ext
23679 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
23681 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
23682 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"
23684 if test "$host_cpu" = ia64; then
23685 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
23686 allow_undefined_flag_GCJ="-z nodefs"
23687 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"
23689 # Determine the default libpath from the value encoded in an empty executable.
23690 cat >conftest.$ac_ext <<_ACEOF
23693 cat confdefs.h >>conftest.$ac_ext
23694 cat >>conftest.$ac_ext <<_ACEOF
23695 /* end confdefs.h. */
23705 rm -f conftest.$ac_objext conftest$ac_exeext
23706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23707 (eval $ac_link) 2>conftest.er1
23709 grep -v '^ *+' conftest.er1 >conftest.err
23711 cat conftest.err >&5
23712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23713 (exit $ac_status); } &&
23714 { ac_try='test -z "$ac_c_werror_flag"
23715 || test ! -s conftest.err'
23716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23717 (eval $ac_try) 2>&5
23719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23720 (exit $ac_status); }; } &&
23721 { ac_try='test -s conftest$ac_exeext'
23722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23723 (eval $ac_try) 2>&5
23725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23726 (exit $ac_status); }; }; then
23728 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
23730 # Check for a 64-bit object if we didn't find anything.
23731 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; }
23734 echo "$as_me: failed program was:" >&5
23735 sed 's/^/| /' conftest.$ac_ext >&5
23738 rm -f conftest.err conftest.$ac_objext \
23739 conftest$ac_exeext conftest.$ac_ext
23740 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
23742 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
23743 # Warning - without using the other run time loading flags,
23744 # -berok will link without error, but may produce a broken library.
23745 no_undefined_flag_GCJ=' ${wl}-bernotok'
23746 allow_undefined_flag_GCJ=' ${wl}-berok'
23747 # Exported symbols can be pulled into shared objects from archives
23748 whole_archive_flag_spec_GCJ='$convenience'
23749 archive_cmds_need_lc_GCJ=yes
23750 # This is similar to how AIX traditionally builds its shared libraries.
23751 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'
23757 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)'
23758 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23759 hardcode_minus_L_GCJ=yes
23760 # see comment about different semantics on the GNU ld section
23765 export_dynamic_flag_spec_GCJ=-rdynamic
23768 cygwin* | mingw* | pw32*)
23769 # When not using gcc, we currently assume that we are using
23770 # Microsoft Visual C++.
23771 # hardcode_libdir_flag_spec is actually meaningless, as there is
23772 # no search path for DLLs.
23773 hardcode_libdir_flag_spec_GCJ=' '
23774 allow_undefined_flag_GCJ=unsupported
23775 # Tell ltmain to make .lib files, not .a files.
23777 # Tell ltmain to make .dll files, not .so files.
23779 # FIXME: Setting linknames here is a bad hack.
23780 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
23781 # The linker will automatically build a .lib file if we build a DLL.
23782 old_archive_From_new_cmds_GCJ='true'
23783 # FIXME: Should let the user specify the lib program.
23784 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
23785 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
23786 enable_shared_with_static_runtimes_GCJ=yes
23789 darwin* | rhapsody*)
23791 rhapsody* | darwin1.[012])
23792 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
23795 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
23796 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
23798 case ${MACOSX_DEPLOYMENT_TARGET} in
23800 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
23803 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
23809 archive_cmds_need_lc_GCJ=no
23810 hardcode_direct_GCJ=no
23811 hardcode_automatic_GCJ=yes
23812 hardcode_shlibpath_var_GCJ=unsupported
23813 whole_archive_flag_spec_GCJ=''
23814 link_all_deplibs_GCJ=yes
23815 if test "$GCC" = yes ; then
23816 output_verbose_link_cmd='echo'
23817 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
23818 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
23819 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
23820 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}'
23821 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}'
23823 case $cc_basename in
23825 output_verbose_link_cmd='echo'
23826 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
23827 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
23828 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
23829 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}'
23830 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}'
23840 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23841 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23842 hardcode_shlibpath_var_GCJ=no
23849 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
23850 # support. Future versions do this automatically, but an explicit c++rt0.o
23851 # does not break anything, and helps significantly (at the cost of a little
23854 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
23855 hardcode_libdir_flag_spec_GCJ='-R$libdir'
23856 hardcode_direct_GCJ=yes
23857 hardcode_shlibpath_var_GCJ=no
23860 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
23862 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23863 hardcode_direct_GCJ=yes
23864 hardcode_minus_L_GCJ=yes
23865 hardcode_shlibpath_var_GCJ=no
23868 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
23869 freebsd* | kfreebsd*-gnu | dragonfly*)
23870 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
23871 hardcode_libdir_flag_spec_GCJ='-R$libdir'
23872 hardcode_direct_GCJ=yes
23873 hardcode_shlibpath_var_GCJ=no
23877 if test "$GCC" = yes; then
23878 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'
23880 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'
23882 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
23883 hardcode_libdir_separator_GCJ=:
23884 hardcode_direct_GCJ=yes
23886 # hardcode_minus_L: Not really in the search PATH,
23887 # but as the default location of the library.
23888 hardcode_minus_L_GCJ=yes
23889 export_dynamic_flag_spec_GCJ='${wl}-E'
23893 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
23894 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23896 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
23898 if test "$with_gnu_ld" = no; then
23899 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
23900 hardcode_libdir_separator_GCJ=:
23902 hardcode_direct_GCJ=yes
23903 export_dynamic_flag_spec_GCJ='${wl}-E'
23905 # hardcode_minus_L: Not really in the search PATH,
23906 # but as the default location of the library.
23907 hardcode_minus_L_GCJ=yes
23912 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
23915 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23918 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
23921 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23927 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23930 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
23933 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23937 if test "$with_gnu_ld" = no; then
23938 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
23939 hardcode_libdir_separator_GCJ=:
23943 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
23944 hardcode_direct_GCJ=no
23945 hardcode_shlibpath_var_GCJ=no
23948 hardcode_direct_GCJ=yes
23949 export_dynamic_flag_spec_GCJ='${wl}-E'
23951 # hardcode_minus_L: Not really in the search PATH,
23952 # but as the default location of the library.
23953 hardcode_minus_L_GCJ=yes
23959 irix5* | irix6* | nonstopux*)
23960 if test "$GCC" = yes; then
23961 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'
23963 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'
23964 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
23966 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23967 hardcode_libdir_separator_GCJ=:
23968 link_all_deplibs_GCJ=yes
23972 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23973 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
23975 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
23977 hardcode_libdir_flag_spec_GCJ='-R$libdir'
23978 hardcode_direct_GCJ=yes
23979 hardcode_shlibpath_var_GCJ=no
23983 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23984 hardcode_direct_GCJ=yes
23985 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23986 hardcode_libdir_separator_GCJ=:
23987 hardcode_shlibpath_var_GCJ=no
23991 hardcode_direct_GCJ=yes
23992 hardcode_shlibpath_var_GCJ=no
23993 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23994 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
23995 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
23996 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
23997 export_dynamic_flag_spec_GCJ='${wl}-E'
24000 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24001 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24002 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24005 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24006 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24013 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24014 hardcode_minus_L_GCJ=yes
24015 allow_undefined_flag_GCJ=unsupported
24016 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'
24017 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24021 if test "$GCC" = yes; then
24022 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24023 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'
24025 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24026 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'
24028 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24029 hardcode_libdir_separator_GCJ=:
24032 osf4* | osf5*) # as osf3* with the addition of -msym flag
24033 if test "$GCC" = yes; then
24034 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24035 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'
24036 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24038 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24039 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'
24040 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~
24041 $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'
24043 # Both c and cxx compiler support -rpath directly
24044 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
24046 hardcode_libdir_separator_GCJ=:
24050 no_undefined_flag_GCJ=' -z text'
24051 if test "$GCC" = yes; then
24053 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24054 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24055 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
24058 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
24059 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24060 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
24062 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24063 hardcode_shlibpath_var_GCJ=no
24065 solaris2.[0-5] | solaris2.[0-5].*) ;;
24067 # The compiler driver will combine linker options so we
24068 # cannot just pass the convience library names through
24069 # without $wl, iff we do not link with $LD.
24070 # Luckily, gcc supports the same syntax we need for Sun Studio.
24071 # Supported since Solaris 2.6 (maybe 2.5.1?)
24074 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
24076 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' ;;
24079 link_all_deplibs_GCJ=yes
24083 if test "x$host_vendor" = xsequent; then
24084 # Use $CC to link under sequent, because it throws in some extra .o
24085 # files that make .init and .fini sections work.
24086 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
24088 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
24090 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24091 hardcode_direct_GCJ=yes
24092 hardcode_minus_L_GCJ=yes
24093 hardcode_shlibpath_var_GCJ=no
24097 case $host_vendor in
24099 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24100 hardcode_direct_GCJ=yes # is this really true???
24103 ## LD is ld it makes a PLAMLIB
24104 ## CC just makes a GrossModule.
24105 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
24106 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
24107 hardcode_direct_GCJ=no
24110 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24111 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
24114 runpath_var='LD_RUN_PATH'
24115 hardcode_shlibpath_var_GCJ=no
24119 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24120 hardcode_shlibpath_var_GCJ=no
24121 export_dynamic_flag_spec_GCJ='-Bexport'
24125 if test -d /usr/nec; then
24126 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24127 hardcode_shlibpath_var_GCJ=no
24128 runpath_var=LD_RUN_PATH
24129 hardcode_runpath_var=yes
24134 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
24135 no_undefined_flag_GCJ='${wl}-z,text'
24136 archive_cmds_need_lc_GCJ=no
24137 hardcode_shlibpath_var_GCJ=no
24138 runpath_var='LD_RUN_PATH'
24140 if test "$GCC" = yes; then
24141 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24142 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24144 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24145 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24149 sysv5* | sco3.2v5* | sco5v6*)
24150 # Note: We can NOT use -z defs as we might desire, because we do not
24151 # link with -lc, and that would cause any symbols used from libc to
24152 # always be unresolved, which means just about no library would
24153 # ever link correctly. If we're not using GNU ld we use -z text
24154 # though, which does catch some bad symbols but isn't as heavy-handed
24156 no_undefined_flag_GCJ='${wl}-z,text'
24157 allow_undefined_flag_GCJ='${wl}-z,nodefs'
24158 archive_cmds_need_lc_GCJ=no
24159 hardcode_shlibpath_var_GCJ=no
24160 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
24161 hardcode_libdir_separator_GCJ=':'
24162 link_all_deplibs_GCJ=yes
24163 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
24164 runpath_var='LD_RUN_PATH'
24166 if test "$GCC" = yes; then
24167 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24168 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24170 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24171 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24176 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24177 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24178 hardcode_shlibpath_var_GCJ=no
24187 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
24188 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
24189 test "$ld_shlibs_GCJ" = no && can_build_shared=no
24192 # Do we need to explicitly link libc?
24194 case "x$archive_cmds_need_lc_GCJ" in
24196 # Assume -lc should be added
24197 archive_cmds_need_lc_GCJ=yes
24199 if test "$enable_shared" = yes && test "$GCC" = yes; then
24200 case $archive_cmds_GCJ in
24202 # FIXME: we may have to deal with multi-command sequences.
24205 # Test whether the compiler implicitly links with -lc since on some
24206 # systems, -lgcc has to come before -lc. If gcc already passes -lc
24207 # to ld, don't add -lc before -lgcc.
24208 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
24209 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
24211 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24214 (eval $ac_compile) 2>&5
24216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24217 (exit $ac_status); } 2>conftest.err; then
24220 libobjs=conftest.$ac_objext
24222 wl=$lt_prog_compiler_wl_GCJ
24223 pic_flag=$lt_prog_compiler_pic_GCJ
24229 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
24230 allow_undefined_flag_GCJ=
24231 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
24232 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
24234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24235 (exit $ac_status); }
24237 archive_cmds_need_lc_GCJ=no
24239 archive_cmds_need_lc_GCJ=yes
24241 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
24243 cat conftest.err 1>&5
24246 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
24247 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
24254 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
24255 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
24256 library_names_spec=
24257 libname_spec='lib$name'
24261 postuninstall_cmds=
24265 shlibpath_overrides_runpath=unknown
24267 dynamic_linker="$host_os ld.so"
24268 sys_lib_dlsearch_path_spec="/lib /usr/lib"
24269 if test "$GCC" = yes; then
24270 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
24271 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
24272 # if the path contains ";" then we assume it to be the separator
24273 # otherwise default to the standard path separator (i.e. ":") - it is
24274 # assumed that no part of a normal pathname contains ";" but that should
24275 # okay in the real world where ";" in dirpaths is itself problematic.
24276 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24278 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
24281 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
24283 need_lib_prefix=unknown
24284 hardcode_into_libs=no
24286 # when you set need_version to no, make sure it does not cause -set_version
24287 # flags to be left without arguments
24288 need_version=unknown
24293 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
24294 shlibpath_var=LIBPATH
24296 # AIX 3 has no versioning support, so we append a major version to the name.
24297 soname_spec='${libname}${release}${shared_ext}$major'
24304 hardcode_into_libs=yes
24305 if test "$host_cpu" = ia64; then
24306 # AIX 5 supports IA64
24307 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
24308 shlibpath_var=LD_LIBRARY_PATH
24310 # With GCC up to 2.95.x, collect2 would create an import file
24311 # for dependence libraries. The import file would start with
24312 # the line `#! .'. This would cause the generated library to
24313 # depend on `.', always an invalid library. This was fixed in
24314 # development snapshots of GCC prior to 3.0.
24316 aix4 | aix4.[01] | aix4.[01].*)
24317 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
24319 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
24322 can_build_shared=no
24326 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
24327 # soname into executable. Probably we can add versioning support to
24328 # collect2, so additional links can be useful in future.
24329 if test "$aix_use_runtimelinking" = yes; then
24330 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
24331 # instead of lib<name>.a to let people know that these are not
24332 # typical AIX shared libraries.
24333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24335 # We preserve .a as extension for shared libraries through AIX4.2
24336 # and later when we are not doing run time linking.
24337 library_names_spec='${libname}${release}.a $libname.a'
24338 soname_spec='${libname}${release}${shared_ext}$major'
24340 shlibpath_var=LIBPATH
24345 library_names_spec='$libname.ixlibrary $libname.a'
24346 # Create ${libname}_ixlibrary.a entries in /sys/libs.
24347 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'
24351 library_names_spec='${libname}${shared_ext}'
24352 dynamic_linker="$host_os ld.so"
24353 shlibpath_var=LIBRARY_PATH
24359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24360 soname_spec='${libname}${release}${shared_ext}$major'
24361 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
24362 shlibpath_var=LD_LIBRARY_PATH
24363 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
24364 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
24365 # the default ld.so.conf also contains /usr/contrib/lib and
24366 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
24367 # libtool to hard-code these into programs
24370 cygwin* | mingw* | pw32*)
24371 version_type=windows
24376 case $GCC,$host_os in
24377 yes,cygwin* | yes,mingw* | yes,pw32*)
24378 library_names_spec='$libname.dll.a'
24379 # DLL is installed to $(libdir)/../bin by postinstall_cmds
24380 postinstall_cmds='base_file=`basename \${file}`~
24381 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
24382 dldir=$destdir/`dirname \$dlpath`~
24383 test -d \$dldir || mkdir -p \$dldir~
24384 $install_prog $dir/$dlname \$dldir/$dlname~
24385 chmod a+x \$dldir/$dlname'
24386 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
24387 dlpath=$dir/\$dldll~
24389 shlibpath_overrides_runpath=yes
24393 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
24394 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24395 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
24398 # MinGW DLLs use traditional 'lib' prefix
24399 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24400 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
24401 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
24402 # It is most probably a Windows format PATH printed by
24403 # mingw gcc, but we are running on Cygwin. Gcc prints its search
24404 # path with ; separators, and with drive letters. We can handle the
24405 # drive letters (cygwin fileutils understands them), so leave them,
24406 # especially as we might pass files found there to a mingw objdump,
24407 # which wouldn't understand a cygwinified path. Ahh.
24408 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24410 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
24414 # pw32 DLLs use 'pw' prefix rather than 'lib'
24415 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24421 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
24424 dynamic_linker='Win32 ld.exe'
24425 # FIXME: first we should search . and the directory the executable is in
24429 darwin* | rhapsody*)
24430 dynamic_linker="$host_os dyld"
24431 version_type=darwin
24434 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
24435 soname_spec='${libname}${release}${major}$shared_ext'
24436 shlibpath_overrides_runpath=yes
24437 shlibpath_var=DYLD_LIBRARY_PATH
24438 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
24439 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
24440 if test "$GCC" = yes; then
24441 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"`
24443 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
24445 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
24452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
24453 soname_spec='${libname}${release}${shared_ext}$major'
24454 shlibpath_var=LD_LIBRARY_PATH
24465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24466 soname_spec='${libname}${release}${shared_ext}$major'
24467 shlibpath_var=LD_LIBRARY_PATH
24468 shlibpath_overrides_runpath=no
24469 hardcode_into_libs=yes
24470 dynamic_linker='GNU ld.so'
24473 freebsd* | dragonfly*)
24474 # DragonFly does not have aout. When/if they implement a new
24475 # versioning mechanism, adjust this.
24476 if test -x /usr/bin/objformat; then
24477 objformat=`/usr/bin/objformat`
24480 freebsd[123]*) objformat=aout ;;
24481 *) objformat=elf ;;
24484 version_type=freebsd-$objformat
24485 case $version_type in
24487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24492 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
24496 shlibpath_var=LD_LIBRARY_PATH
24499 shlibpath_overrides_runpath=yes
24501 freebsd3.[01]* | freebsdelf3.[01]*)
24502 shlibpath_overrides_runpath=yes
24503 hardcode_into_libs=yes
24505 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
24506 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
24507 shlibpath_overrides_runpath=no
24508 hardcode_into_libs=yes
24510 freebsd*) # from 4.6 on
24511 shlibpath_overrides_runpath=yes
24512 hardcode_into_libs=yes
24521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
24522 soname_spec='${libname}${release}${shared_ext}$major'
24523 shlibpath_var=LD_LIBRARY_PATH
24524 hardcode_into_libs=yes
24527 hpux9* | hpux10* | hpux11*)
24528 # Give a soname corresponding to the major version so that dld.sl refuses to
24529 # link against other versions.
24536 hardcode_into_libs=yes
24537 dynamic_linker="$host_os dld.so"
24538 shlibpath_var=LD_LIBRARY_PATH
24539 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24541 soname_spec='${libname}${release}${shared_ext}$major'
24542 if test "X$HPUX_IA64_MODE" = X32; then
24543 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
24545 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
24547 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24551 hardcode_into_libs=yes
24552 dynamic_linker="$host_os dld.sl"
24553 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
24554 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24556 soname_spec='${libname}${release}${shared_ext}$major'
24557 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
24558 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24562 dynamic_linker="$host_os dld.sl"
24563 shlibpath_var=SHLIB_PATH
24564 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
24565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24566 soname_spec='${libname}${release}${shared_ext}$major'
24569 # HP-UX runs *really* slowly unless shared libraries are mode 555.
24570 postinstall_cmds='chmod 555 $lib'
24577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24578 soname_spec='${libname}${release}${shared_ext}$major'
24579 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
24580 shlibpath_var=LD_LIBRARY_PATH
24581 shlibpath_overrides_runpath=no
24582 hardcode_into_libs=yes
24585 irix5* | irix6* | nonstopux*)
24587 nonstopux*) version_type=nonstopux ;;
24589 if test "$lt_cv_prog_gnu_ld" = yes; then
24597 soname_spec='${libname}${release}${shared_ext}$major'
24598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
24600 irix5* | nonstopux*)
24601 libsuff= shlibsuff=
24604 case $LD in # libtool.m4 will add one of these switches to LD
24605 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
24606 libsuff= shlibsuff= libmagic=32-bit;;
24607 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
24608 libsuff=32 shlibsuff=N32 libmagic=N32;;
24609 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
24610 libsuff=64 shlibsuff=64 libmagic=64-bit;;
24611 *) libsuff= shlibsuff= libmagic=never-match;;
24615 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
24616 shlibpath_overrides_runpath=no
24617 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
24618 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
24619 hardcode_into_libs=yes
24622 # No shared lib support for Linux oldld, aout, or coff.
24623 linux*oldld* | linux*aout* | linux*coff*)
24627 # This must be Linux ELF.
24632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24633 soname_spec='${libname}${release}${shared_ext}$major'
24634 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
24635 shlibpath_var=LD_LIBRARY_PATH
24636 shlibpath_overrides_runpath=no
24637 # This implies no fast_install, which is unacceptable.
24638 # Some rework will be needed to allow for fast_install
24639 # before this can be enabled.
24640 hardcode_into_libs=yes
24642 # find out which ABI we are using
24644 case "$host_cpu" in
24645 x86_64*|s390x*|powerpc64*)
24646 echo '#line 24646 "configure"' > conftest.$ac_ext
24647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24648 (eval $ac_compile) 2>&5
24650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24651 (exit $ac_status); }; then
24652 case `/usr/bin/file conftest.$ac_objext` in
24655 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
24663 # Append ld.so.conf contents to the search path
24664 if test -f /etc/ld.so.conf; then
24665 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
24666 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
24669 # We used to test for /lib/ld.so.1 and disable shared libraries on
24670 # powerpc, because MkLinux only supported shared libraries with the
24671 # GNU dynamic linker. Since this was broken with cross compilers,
24672 # most powerpc-linux boxes support dynamic linking these days and
24673 # people can always --disable-shared, the test was removed, and we
24674 # assume the GNU/Linux dynamic linker is in use.
24675 dynamic_linker='GNU/Linux ld.so'
24682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24683 soname_spec='${libname}${release}${shared_ext}$major'
24684 shlibpath_var=LD_LIBRARY_PATH
24685 shlibpath_overrides_runpath=no
24686 hardcode_into_libs=yes
24687 dynamic_linker='GNU ld.so'
24694 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24696 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24697 dynamic_linker='NetBSD (a.out) ld.so'
24699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24700 soname_spec='${libname}${release}${shared_ext}$major'
24701 dynamic_linker='NetBSD ld.elf_so'
24703 shlibpath_var=LD_LIBRARY_PATH
24704 shlibpath_overrides_runpath=yes
24705 hardcode_into_libs=yes
24710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24711 shlibpath_var=LD_LIBRARY_PATH
24712 shlibpath_overrides_runpath=yes
24719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24720 soname_spec='${libname}${release}${shared_ext}$major'
24721 shlibpath_var=LD_LIBRARY_PATH
24722 shlibpath_overrides_runpath=yes
24727 sys_lib_dlsearch_path_spec="/usr/lib"
24729 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
24731 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
24732 *) need_version=no ;;
24734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24735 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24736 shlibpath_var=LD_LIBRARY_PATH
24737 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24739 openbsd2.[89] | openbsd2.[89].*)
24740 shlibpath_overrides_runpath=no
24743 shlibpath_overrides_runpath=yes
24747 shlibpath_overrides_runpath=yes
24752 libname_spec='$name'
24755 library_names_spec='$libname${shared_ext} $libname.a'
24756 dynamic_linker='OS/2 ld.exe'
24757 shlibpath_var=LIBPATH
24760 osf3* | osf4* | osf5*)
24764 soname_spec='${libname}${release}${shared_ext}$major'
24765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24766 shlibpath_var=LD_LIBRARY_PATH
24767 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
24768 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
24775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24776 soname_spec='${libname}${release}${shared_ext}$major'
24777 shlibpath_var=LD_LIBRARY_PATH
24778 shlibpath_overrides_runpath=yes
24779 hardcode_into_libs=yes
24780 # ldd complains unless libraries are executable
24781 postinstall_cmds='chmod +x $lib'
24786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24787 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
24788 shlibpath_var=LD_LIBRARY_PATH
24789 shlibpath_overrides_runpath=yes
24790 if test "$with_gnu_ld" = yes; then
24798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24799 soname_spec='${libname}${release}${shared_ext}$major'
24800 shlibpath_var=LD_LIBRARY_PATH
24801 case $host_vendor in
24803 shlibpath_overrides_runpath=no
24805 export_dynamic_flag_spec='${wl}-Blargedynsym'
24806 runpath_var=LD_RUN_PATH
24814 shlibpath_overrides_runpath=no
24815 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
24821 if test -d /usr/nec ;then
24823 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
24824 soname_spec='$libname${shared_ext}.$major'
24825 shlibpath_var=LD_LIBRARY_PATH
24829 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
24830 version_type=freebsd-elf
24833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24834 soname_spec='${libname}${release}${shared_ext}$major'
24835 shlibpath_var=LD_LIBRARY_PATH
24836 hardcode_into_libs=yes
24837 if test "$with_gnu_ld" = yes; then
24838 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
24839 shlibpath_overrides_runpath=no
24841 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
24842 shlibpath_overrides_runpath=yes
24845 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
24849 sys_lib_dlsearch_path_spec='/usr/lib'
24854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24855 soname_spec='${libname}${release}${shared_ext}$major'
24856 shlibpath_var=LD_LIBRARY_PATH
24863 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
24864 echo "${ECHO_T}$dynamic_linker" >&6
24865 test "$dynamic_linker" = no && can_build_shared=no
24867 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
24868 if test "$GCC" = yes; then
24869 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
24872 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
24873 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
24874 hardcode_action_GCJ=
24875 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
24876 test -n "$runpath_var_GCJ" || \
24877 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
24879 # We can hardcode non-existant directories.
24880 if test "$hardcode_direct_GCJ" != no &&
24881 # If the only mechanism to avoid hardcoding is shlibpath_var, we
24882 # have to relink, otherwise we might link with an installed library
24883 # when we should be linking with a yet-to-be-installed one
24884 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
24885 test "$hardcode_minus_L_GCJ" != no; then
24886 # Linking always hardcodes the temporary library directory.
24887 hardcode_action_GCJ=relink
24889 # We can link without hardcoding, and we can hardcode nonexisting dirs.
24890 hardcode_action_GCJ=immediate
24893 # We cannot hardcode anything, or else we can only hardcode existing
24895 hardcode_action_GCJ=unsupported
24897 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
24898 echo "${ECHO_T}$hardcode_action_GCJ" >&6
24900 if test "$hardcode_action_GCJ" = relink; then
24901 # Fast installation is not supported
24902 enable_fast_install=no
24903 elif test "$shlibpath_overrides_runpath" = yes ||
24904 test "$enable_shared" = no; then
24905 # Fast installation is not necessary
24906 enable_fast_install=needless
24910 # The else clause should only fire when bootstrapping the
24911 # libtool distribution, otherwise you forgot to ship ltmain.sh
24912 # with your package, and you will get complaints that there are
24913 # no rules to generate ltmain.sh.
24914 if test -f "$ltmain"; then
24915 # See if we are running on zsh, and set the options which allow our commands through
24916 # without removal of \ escapes.
24917 if test -n "${ZSH_VERSION+set}" ; then
24918 setopt NO_GLOB_SUBST
24920 # Now quote all the things that may contain metacharacters while being
24921 # careful not to overquote the AC_SUBSTed values. We take copies of the
24922 # variables and quote the copies for generation of the libtool script.
24923 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
24925 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24926 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24927 deplibs_check_method reload_flag reload_cmds need_locks \
24928 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24929 lt_cv_sys_global_symbol_to_c_name_address \
24930 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24931 old_postinstall_cmds old_postuninstall_cmds \
24935 lt_prog_compiler_wl_GCJ \
24936 lt_prog_compiler_pic_GCJ \
24937 lt_prog_compiler_static_GCJ \
24938 lt_prog_compiler_no_builtin_flag_GCJ \
24939 export_dynamic_flag_spec_GCJ \
24940 thread_safe_flag_spec_GCJ \
24941 whole_archive_flag_spec_GCJ \
24942 enable_shared_with_static_runtimes_GCJ \
24943 old_archive_cmds_GCJ \
24944 old_archive_from_new_cmds_GCJ \
24945 predep_objects_GCJ \
24946 postdep_objects_GCJ \
24949 compiler_lib_search_path_GCJ \
24951 archive_expsym_cmds_GCJ \
24952 postinstall_cmds_GCJ \
24953 postuninstall_cmds_GCJ \
24954 old_archive_from_expsyms_cmds_GCJ \
24955 allow_undefined_flag_GCJ \
24956 no_undefined_flag_GCJ \
24957 export_symbols_cmds_GCJ \
24958 hardcode_libdir_flag_spec_GCJ \
24959 hardcode_libdir_flag_spec_ld_GCJ \
24960 hardcode_libdir_separator_GCJ \
24961 hardcode_automatic_GCJ \
24963 module_expsym_cmds_GCJ \
24964 lt_cv_prog_compiler_c_o_GCJ \
24965 exclude_expsyms_GCJ \
24966 include_expsyms_GCJ; do
24969 old_archive_cmds_GCJ | \
24970 old_archive_from_new_cmds_GCJ | \
24971 archive_cmds_GCJ | \
24972 archive_expsym_cmds_GCJ | \
24973 module_cmds_GCJ | \
24974 module_expsym_cmds_GCJ | \
24975 old_archive_from_expsyms_cmds_GCJ | \
24976 export_symbols_cmds_GCJ | \
24977 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24978 postinstall_cmds | postuninstall_cmds | \
24979 old_postinstall_cmds | old_postuninstall_cmds | \
24980 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24981 # Double-quote double-evaled strings.
24982 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24985 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24991 *'\$0 --fallback-echo"')
24992 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24998 cat <<__EOF__ >> "$cfgfile"
24999 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25001 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25003 # Shell to use when invoking shell scripts.
25006 # Whether or not to build shared libraries.
25007 build_libtool_libs=$enable_shared
25009 # Whether or not to build static libraries.
25010 build_old_libs=$enable_static
25012 # Whether or not to add -lc for building shared libraries.
25013 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25015 # Whether or not to disallow shared libs when runtime libs are static
25016 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25018 # Whether or not to optimize for fast installation.
25019 fast_install=$enable_fast_install
25022 host_alias=$host_alias
25026 # The build system.
25027 build_alias=$build_alias
25031 # An echo program that does not interpret backslashes.
25036 AR_FLAGS=$lt_AR_FLAGS
25041 # LTCC compiler flags.
25042 LTCFLAGS=$lt_LTCFLAGS
25044 # A language-specific compiler.
25045 CC=$lt_compiler_GCJ
25047 # Is the compiler the GNU C compiler?
25053 # The linker used to build libraries.
25056 # Whether we need hard or soft links.
25059 # A BSD-compatible nm program.
25062 # A symbol stripping program
25065 # Used to examine libraries when file_magic_cmd begins "file"
25066 MAGIC_CMD=$MAGIC_CMD
25068 # Used on cygwin: DLL creation program.
25071 # Used on cygwin: object dumper.
25074 # Used on cygwin: assembler.
25077 # The name of the directory that contains temporary libtool files.
25080 # How to create reloadable object files.
25081 reload_flag=$lt_reload_flag
25082 reload_cmds=$lt_reload_cmds
25084 # How to pass a linker flag through the compiler.
25085 wl=$lt_lt_prog_compiler_wl_GCJ
25087 # Object file suffix (normally "o").
25088 objext="$ac_objext"
25090 # Old archive suffix (normally "a").
25093 # Shared library suffix (normally ".so").
25094 shrext_cmds='$shrext_cmds'
25096 # Executable file suffix (normally "").
25099 # Additional compiler flags for building library objects.
25100 pic_flag=$lt_lt_prog_compiler_pic_GCJ
25103 # What is the maximum length of a command?
25104 max_cmd_len=$lt_cv_sys_max_cmd_len
25106 # Does compiler simultaneously support -c and -o options?
25107 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
25109 # Must we lock files when doing compilation?
25110 need_locks=$lt_need_locks
25112 # Do we need the lib prefix for modules?
25113 need_lib_prefix=$need_lib_prefix
25115 # Do we need a version for libraries?
25116 need_version=$need_version
25118 # Whether dlopen is supported.
25119 dlopen_support=$enable_dlopen
25121 # Whether dlopen of programs is supported.
25122 dlopen_self=$enable_dlopen_self
25124 # Whether dlopen of statically linked programs is supported.
25125 dlopen_self_static=$enable_dlopen_self_static
25127 # Compiler flag to prevent dynamic linking.
25128 link_static_flag=$lt_lt_prog_compiler_static_GCJ
25130 # Compiler flag to turn off builtin functions.
25131 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
25133 # Compiler flag to allow reflexive dlopens.
25134 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
25136 # Compiler flag to generate shared objects directly from archives.
25137 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
25139 # Compiler flag to generate thread-safe objects.
25140 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
25142 # Library versioning type.
25143 version_type=$version_type
25145 # Format of library name prefix.
25146 libname_spec=$lt_libname_spec
25148 # List of archive names. First name is the real one, the rest are links.
25149 # The last name is the one that the linker finds with -lNAME.
25150 library_names_spec=$lt_library_names_spec
25152 # The coded name of the library, if different from the real name.
25153 soname_spec=$lt_soname_spec
25155 # Commands used to build and install an old-style archive.
25157 old_archive_cmds=$lt_old_archive_cmds_GCJ
25158 old_postinstall_cmds=$lt_old_postinstall_cmds
25159 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25161 # Create an old-style archive from a shared archive.
25162 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
25164 # Create a temporary old-style archive to link instead of a shared archive.
25165 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
25167 # Commands used to build and install a shared archive.
25168 archive_cmds=$lt_archive_cmds_GCJ
25169 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
25170 postinstall_cmds=$lt_postinstall_cmds
25171 postuninstall_cmds=$lt_postuninstall_cmds
25173 # Commands used to build a loadable module (assumed same as above if empty)
25174 module_cmds=$lt_module_cmds_GCJ
25175 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
25177 # Commands to strip libraries.
25178 old_striplib=$lt_old_striplib
25179 striplib=$lt_striplib
25181 # Dependencies to place before the objects being linked to create a
25183 predep_objects=$lt_predep_objects_GCJ
25185 # Dependencies to place after the objects being linked to create a
25187 postdep_objects=$lt_postdep_objects_GCJ
25189 # Dependencies to place before the objects being linked to create a
25191 predeps=$lt_predeps_GCJ
25193 # Dependencies to place after the objects being linked to create a
25195 postdeps=$lt_postdeps_GCJ
25197 # The library search path used internally by the compiler when linking
25198 # a shared library.
25199 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
25201 # Method to check whether dependent libraries are shared objects.
25202 deplibs_check_method=$lt_deplibs_check_method
25204 # Command to use when deplibs_check_method == file_magic.
25205 file_magic_cmd=$lt_file_magic_cmd
25207 # Flag that allows shared libraries with undefined symbols to be built.
25208 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
25210 # Flag that forces no undefined symbols.
25211 no_undefined_flag=$lt_no_undefined_flag_GCJ
25213 # Commands used to finish a libtool library installation in a directory.
25214 finish_cmds=$lt_finish_cmds
25216 # Same as above, but a single script fragment to be evaled but not shown.
25217 finish_eval=$lt_finish_eval
25219 # Take the output of nm and produce a listing of raw symbols and C names.
25220 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25222 # Transform the output of nm in a proper C declaration
25223 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25225 # Transform the output of nm in a C name address pair
25226 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25228 # This is the shared library runtime path variable.
25229 runpath_var=$runpath_var
25231 # This is the shared library path variable.
25232 shlibpath_var=$shlibpath_var
25234 # Is shlibpath searched before the hard-coded library search path?
25235 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25237 # How to hardcode a shared library path into an executable.
25238 hardcode_action=$hardcode_action_GCJ
25240 # Whether we should hardcode library paths into libraries.
25241 hardcode_into_libs=$hardcode_into_libs
25243 # Flag to hardcode \$libdir into a binary during linking.
25244 # This must work even if \$libdir does not exist.
25245 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
25247 # If ld is used when linking, flag to hardcode \$libdir into
25248 # a binary during linking. This must work even if \$libdir does
25250 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
25252 # Whether we need a single -rpath flag with a separated argument.
25253 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
25255 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25256 # resulting binary.
25257 hardcode_direct=$hardcode_direct_GCJ
25259 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25260 # resulting binary.
25261 hardcode_minus_L=$hardcode_minus_L_GCJ
25263 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25264 # the resulting binary.
25265 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
25267 # Set to yes if building a shared library automatically hardcodes DIR into the library
25268 # and all subsequent libraries and executables linked against it.
25269 hardcode_automatic=$hardcode_automatic_GCJ
25271 # Variables whose values should be saved in libtool wrapper scripts and
25272 # restored at relink time.
25273 variables_saved_for_relink="$variables_saved_for_relink"
25275 # Whether libtool must link a program against all its dependency libraries.
25276 link_all_deplibs=$link_all_deplibs_GCJ
25278 # Compile-time system search path for libraries
25279 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25281 # Run-time system search path for libraries
25282 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25284 # Fix the shell variable \$srcfile for the compiler.
25285 fix_srcfile_path="$fix_srcfile_path_GCJ"
25287 # Set to yes if exported symbols are required.
25288 always_export_symbols=$always_export_symbols_GCJ
25290 # The commands to list exported symbols.
25291 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
25293 # The commands to extract the exported symbol list from a shared archive.
25294 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25296 # Symbols that should not be listed in the preloaded symbols.
25297 exclude_expsyms=$lt_exclude_expsyms_GCJ
25299 # Symbols that must always be exported.
25300 include_expsyms=$lt_include_expsyms_GCJ
25302 # ### END LIBTOOL TAG CONFIG: $tagname
25308 # If there is no Makefile yet, we rely on a make rule to execute
25309 # `config.status --recheck' to rerun these tests and create the
25310 # libtool script then.
25311 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
25312 if test -f "$ltmain_in"; then
25313 test -f Makefile && make "$ltmain"
25319 ac_cpp='$CPP $CPPFLAGS'
25320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25335 # Source file extension for RC test sources.
25338 # Object file extension for compiled RC test sources.
25342 # Code to be used in simple compile tests
25343 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
25345 # Code to be used in simple link tests
25346 lt_simple_link_test_code="$lt_simple_compile_test_code"
25348 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
25350 # If no C compiler was specified, use CC.
25353 # If no C compiler flags were specified, use CFLAGS.
25354 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
25356 # Allow CC to be a program name with arguments.
25360 # save warnings/boilerplate of simple test code
25361 ac_outfile=conftest.$ac_objext
25362 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
25363 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
25364 _lt_compiler_boilerplate=`cat conftest.err`
25367 ac_outfile=conftest.$ac_objext
25368 printf "$lt_simple_link_test_code" >conftest.$ac_ext
25369 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
25370 _lt_linker_boilerplate=`cat conftest.err`
25374 # Allow CC to be a program name with arguments.
25379 for cc_temp in $compiler""; do
25381 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
25382 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
25387 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
25389 lt_cv_prog_compiler_c_o_RC=yes
25391 # The else clause should only fire when bootstrapping the
25392 # libtool distribution, otherwise you forgot to ship ltmain.sh
25393 # with your package, and you will get complaints that there are
25394 # no rules to generate ltmain.sh.
25395 if test -f "$ltmain"; then
25396 # See if we are running on zsh, and set the options which allow our commands through
25397 # without removal of \ escapes.
25398 if test -n "${ZSH_VERSION+set}" ; then
25399 setopt NO_GLOB_SUBST
25401 # Now quote all the things that may contain metacharacters while being
25402 # careful not to overquote the AC_SUBSTed values. We take copies of the
25403 # variables and quote the copies for generation of the libtool script.
25404 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25406 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25407 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25408 deplibs_check_method reload_flag reload_cmds need_locks \
25409 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25410 lt_cv_sys_global_symbol_to_c_name_address \
25411 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25412 old_postinstall_cmds old_postuninstall_cmds \
25416 lt_prog_compiler_wl_RC \
25417 lt_prog_compiler_pic_RC \
25418 lt_prog_compiler_static_RC \
25419 lt_prog_compiler_no_builtin_flag_RC \
25420 export_dynamic_flag_spec_RC \
25421 thread_safe_flag_spec_RC \
25422 whole_archive_flag_spec_RC \
25423 enable_shared_with_static_runtimes_RC \
25424 old_archive_cmds_RC \
25425 old_archive_from_new_cmds_RC \
25426 predep_objects_RC \
25427 postdep_objects_RC \
25430 compiler_lib_search_path_RC \
25432 archive_expsym_cmds_RC \
25433 postinstall_cmds_RC \
25434 postuninstall_cmds_RC \
25435 old_archive_from_expsyms_cmds_RC \
25436 allow_undefined_flag_RC \
25437 no_undefined_flag_RC \
25438 export_symbols_cmds_RC \
25439 hardcode_libdir_flag_spec_RC \
25440 hardcode_libdir_flag_spec_ld_RC \
25441 hardcode_libdir_separator_RC \
25442 hardcode_automatic_RC \
25444 module_expsym_cmds_RC \
25445 lt_cv_prog_compiler_c_o_RC \
25446 exclude_expsyms_RC \
25447 include_expsyms_RC; do
25450 old_archive_cmds_RC | \
25451 old_archive_from_new_cmds_RC | \
25452 archive_cmds_RC | \
25453 archive_expsym_cmds_RC | \
25455 module_expsym_cmds_RC | \
25456 old_archive_from_expsyms_cmds_RC | \
25457 export_symbols_cmds_RC | \
25458 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25459 postinstall_cmds | postuninstall_cmds | \
25460 old_postinstall_cmds | old_postuninstall_cmds | \
25461 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25462 # Double-quote double-evaled strings.
25463 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25466 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25472 *'\$0 --fallback-echo"')
25473 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25479 cat <<__EOF__ >> "$cfgfile"
25480 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25482 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25484 # Shell to use when invoking shell scripts.
25487 # Whether or not to build shared libraries.
25488 build_libtool_libs=$enable_shared
25490 # Whether or not to build static libraries.
25491 build_old_libs=$enable_static
25493 # Whether or not to add -lc for building shared libraries.
25494 build_libtool_need_lc=$archive_cmds_need_lc_RC
25496 # Whether or not to disallow shared libs when runtime libs are static
25497 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
25499 # Whether or not to optimize for fast installation.
25500 fast_install=$enable_fast_install
25503 host_alias=$host_alias
25507 # The build system.
25508 build_alias=$build_alias
25512 # An echo program that does not interpret backslashes.
25517 AR_FLAGS=$lt_AR_FLAGS
25522 # LTCC compiler flags.
25523 LTCFLAGS=$lt_LTCFLAGS
25525 # A language-specific compiler.
25528 # Is the compiler the GNU C compiler?
25534 # The linker used to build libraries.
25537 # Whether we need hard or soft links.
25540 # A BSD-compatible nm program.
25543 # A symbol stripping program
25546 # Used to examine libraries when file_magic_cmd begins "file"
25547 MAGIC_CMD=$MAGIC_CMD
25549 # Used on cygwin: DLL creation program.
25552 # Used on cygwin: object dumper.
25555 # Used on cygwin: assembler.
25558 # The name of the directory that contains temporary libtool files.
25561 # How to create reloadable object files.
25562 reload_flag=$lt_reload_flag
25563 reload_cmds=$lt_reload_cmds
25565 # How to pass a linker flag through the compiler.
25566 wl=$lt_lt_prog_compiler_wl_RC
25568 # Object file suffix (normally "o").
25569 objext="$ac_objext"
25571 # Old archive suffix (normally "a").
25574 # Shared library suffix (normally ".so").
25575 shrext_cmds='$shrext_cmds'
25577 # Executable file suffix (normally "").
25580 # Additional compiler flags for building library objects.
25581 pic_flag=$lt_lt_prog_compiler_pic_RC
25584 # What is the maximum length of a command?
25585 max_cmd_len=$lt_cv_sys_max_cmd_len
25587 # Does compiler simultaneously support -c and -o options?
25588 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
25590 # Must we lock files when doing compilation?
25591 need_locks=$lt_need_locks
25593 # Do we need the lib prefix for modules?
25594 need_lib_prefix=$need_lib_prefix
25596 # Do we need a version for libraries?
25597 need_version=$need_version
25599 # Whether dlopen is supported.
25600 dlopen_support=$enable_dlopen
25602 # Whether dlopen of programs is supported.
25603 dlopen_self=$enable_dlopen_self
25605 # Whether dlopen of statically linked programs is supported.
25606 dlopen_self_static=$enable_dlopen_self_static
25608 # Compiler flag to prevent dynamic linking.
25609 link_static_flag=$lt_lt_prog_compiler_static_RC
25611 # Compiler flag to turn off builtin functions.
25612 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
25614 # Compiler flag to allow reflexive dlopens.
25615 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
25617 # Compiler flag to generate shared objects directly from archives.
25618 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
25620 # Compiler flag to generate thread-safe objects.
25621 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
25623 # Library versioning type.
25624 version_type=$version_type
25626 # Format of library name prefix.
25627 libname_spec=$lt_libname_spec
25629 # List of archive names. First name is the real one, the rest are links.
25630 # The last name is the one that the linker finds with -lNAME.
25631 library_names_spec=$lt_library_names_spec
25633 # The coded name of the library, if different from the real name.
25634 soname_spec=$lt_soname_spec
25636 # Commands used to build and install an old-style archive.
25638 old_archive_cmds=$lt_old_archive_cmds_RC
25639 old_postinstall_cmds=$lt_old_postinstall_cmds
25640 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25642 # Create an old-style archive from a shared archive.
25643 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
25645 # Create a temporary old-style archive to link instead of a shared archive.
25646 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
25648 # Commands used to build and install a shared archive.
25649 archive_cmds=$lt_archive_cmds_RC
25650 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
25651 postinstall_cmds=$lt_postinstall_cmds
25652 postuninstall_cmds=$lt_postuninstall_cmds
25654 # Commands used to build a loadable module (assumed same as above if empty)
25655 module_cmds=$lt_module_cmds_RC
25656 module_expsym_cmds=$lt_module_expsym_cmds_RC
25658 # Commands to strip libraries.
25659 old_striplib=$lt_old_striplib
25660 striplib=$lt_striplib
25662 # Dependencies to place before the objects being linked to create a
25664 predep_objects=$lt_predep_objects_RC
25666 # Dependencies to place after the objects being linked to create a
25668 postdep_objects=$lt_postdep_objects_RC
25670 # Dependencies to place before the objects being linked to create a
25672 predeps=$lt_predeps_RC
25674 # Dependencies to place after the objects being linked to create a
25676 postdeps=$lt_postdeps_RC
25678 # The library search path used internally by the compiler when linking
25679 # a shared library.
25680 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
25682 # Method to check whether dependent libraries are shared objects.
25683 deplibs_check_method=$lt_deplibs_check_method
25685 # Command to use when deplibs_check_method == file_magic.
25686 file_magic_cmd=$lt_file_magic_cmd
25688 # Flag that allows shared libraries with undefined symbols to be built.
25689 allow_undefined_flag=$lt_allow_undefined_flag_RC
25691 # Flag that forces no undefined symbols.
25692 no_undefined_flag=$lt_no_undefined_flag_RC
25694 # Commands used to finish a libtool library installation in a directory.
25695 finish_cmds=$lt_finish_cmds
25697 # Same as above, but a single script fragment to be evaled but not shown.
25698 finish_eval=$lt_finish_eval
25700 # Take the output of nm and produce a listing of raw symbols and C names.
25701 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25703 # Transform the output of nm in a proper C declaration
25704 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25706 # Transform the output of nm in a C name address pair
25707 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25709 # This is the shared library runtime path variable.
25710 runpath_var=$runpath_var
25712 # This is the shared library path variable.
25713 shlibpath_var=$shlibpath_var
25715 # Is shlibpath searched before the hard-coded library search path?
25716 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25718 # How to hardcode a shared library path into an executable.
25719 hardcode_action=$hardcode_action_RC
25721 # Whether we should hardcode library paths into libraries.
25722 hardcode_into_libs=$hardcode_into_libs
25724 # Flag to hardcode \$libdir into a binary during linking.
25725 # This must work even if \$libdir does not exist.
25726 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
25728 # If ld is used when linking, flag to hardcode \$libdir into
25729 # a binary during linking. This must work even if \$libdir does
25731 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
25733 # Whether we need a single -rpath flag with a separated argument.
25734 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
25736 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25737 # resulting binary.
25738 hardcode_direct=$hardcode_direct_RC
25740 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25741 # resulting binary.
25742 hardcode_minus_L=$hardcode_minus_L_RC
25744 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25745 # the resulting binary.
25746 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
25748 # Set to yes if building a shared library automatically hardcodes DIR into the library
25749 # and all subsequent libraries and executables linked against it.
25750 hardcode_automatic=$hardcode_automatic_RC
25752 # Variables whose values should be saved in libtool wrapper scripts and
25753 # restored at relink time.
25754 variables_saved_for_relink="$variables_saved_for_relink"
25756 # Whether libtool must link a program against all its dependency libraries.
25757 link_all_deplibs=$link_all_deplibs_RC
25759 # Compile-time system search path for libraries
25760 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25762 # Run-time system search path for libraries
25763 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25765 # Fix the shell variable \$srcfile for the compiler.
25766 fix_srcfile_path="$fix_srcfile_path_RC"
25768 # Set to yes if exported symbols are required.
25769 always_export_symbols=$always_export_symbols_RC
25771 # The commands to list exported symbols.
25772 export_symbols_cmds=$lt_export_symbols_cmds_RC
25774 # The commands to extract the exported symbol list from a shared archive.
25775 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25777 # Symbols that should not be listed in the preloaded symbols.
25778 exclude_expsyms=$lt_exclude_expsyms_RC
25780 # Symbols that must always be exported.
25781 include_expsyms=$lt_include_expsyms_RC
25783 # ### END LIBTOOL TAG CONFIG: $tagname
25789 # If there is no Makefile yet, we rely on a make rule to execute
25790 # `config.status --recheck' to rerun these tests and create the
25791 # libtool script then.
25792 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
25793 if test -f "$ltmain_in"; then
25794 test -f Makefile && make "$ltmain"
25800 ac_cpp='$CPP $CPPFLAGS'
25801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25810 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
25811 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
25812 { (exit 1); exit 1; }; }
25816 # Append the new tag name to the list of available tags.
25817 if test -n "$tagname" ; then
25818 available_tags="$available_tags $tagname"
25824 # Now substitute the updated list of available tags.
25825 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
25826 mv "${ofile}T" "$ofile"
25830 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
25831 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
25832 { (exit 1); exit 1; }; }
25838 # This can be used to rebuild libtool when needed
25839 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
25841 # Always use our own libtool.
25842 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
25844 # Prevent multiple expansion
25868 echo "$as_me:$LINENO: checking which vserver-rootdir is to use" >&5
25869 echo $ECHO_N "checking which vserver-rootdir is to use... $ECHO_C" >&6
25871 # Check whether --with-vrootdir or --without-vrootdir was given.
25872 if test "${with_vrootdir+set}" = set; then
25873 withval="$with_vrootdir"
25875 yes|no) { { echo "$as_me:$LINENO: error: '$withval' is not a valid value for vrootdir" >&5
25876 echo "$as_me: error: '$withval' is not a valid value for vrootdir" >&2;}
25877 { (exit 1); exit 1; }; };;
25878 *) ensc_uv_path_vrootdir=$withval;;
25881 ensc_uv_path_vrootdir=/vservers
25883 echo "$as_me:$LINENO: result: $ensc_uv_path_vrootdir" >&5
25884 echo "${ECHO_T}$ensc_uv_path_vrootdir" >&6
25886 if test x"vserverdir" != x; then
25887 vserverdir=$ensc_uv_path_vrootdir
25892 for ac_prog in svn2cl
25894 # Extract the first word of "$ac_prog", so it can be a program name with args.
25895 set dummy $ac_prog; ac_word=$2
25896 echo "$as_me:$LINENO: checking for $ac_word" >&5
25897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25898 if test "${ac_cv_prog_SVN2CL+set}" = set; then
25899 echo $ECHO_N "(cached) $ECHO_C" >&6
25901 if test -n "$SVN2CL"; then
25902 ac_cv_prog_SVN2CL="$SVN2CL" # Let the user override the test.
25904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25905 for as_dir in $PATH
25908 test -z "$as_dir" && as_dir=.
25909 for ac_exec_ext in '' $ac_executable_extensions; do
25910 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25911 ac_cv_prog_SVN2CL="$ac_prog"
25912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25920 SVN2CL=$ac_cv_prog_SVN2CL
25921 if test -n "$SVN2CL"; then
25922 echo "$as_me:$LINENO: result: $SVN2CL" >&5
25923 echo "${ECHO_T}$SVN2CL" >&6
25925 echo "$as_me:$LINENO: result: no" >&5
25926 echo "${ECHO_T}no" >&6
25929 test -n "$SVN2CL" && break
25934 if test x"$SVN2CL" != x; then
25936 HAVE_SVN2CL_FALSE='#'
25938 HAVE_SVN2CL_TRUE='#'
25945 echo "$as_me:$LINENO: checking whether to use internal kernel headers" >&5
25946 echo $ECHO_N "checking whether to use internal kernel headers... $ECHO_C" >&6
25947 # Check whether --enable-internal-headers or --disable-internal-headers was given.
25948 if test "${enable_internal_headers+set}" = set; then
25949 enableval="$enable_internal_headers"
25950 case "$enableval" in
25952 (*) { { echo "$as_me:$LINENO: error: '$i' is not a supported value for '--disable-internal-headers'" >&5
25953 echo "$as_me: error: '$i' is not a supported value for '--disable-internal-headers'" >&2;}
25954 { (exit 1); exit 1; }; };;
25957 enable_internal_headers=yes
25962 if test x"$enable_internal_headers" = xyes; then
25963 ENSC_ENABLE_INTERNAL_HEADERS_TRUE=
25964 ENSC_ENABLE_INTERNAL_HEADERS_FALSE='#'
25966 ENSC_ENABLE_INTERNAL_HEADERS_TRUE='#'
25967 ENSC_ENABLE_INTERNAL_HEADERS_FALSE=
25970 echo "$as_me:$LINENO: result: $enable_internal_headers" >&5
25971 echo "${ECHO_T}$enable_internal_headers" >&6
25994 echo "$as_me:$LINENO: checking for supported APIs" >&5
25995 echo $ECHO_N "checking for supported APIs... $ECHO_C" >&6
25996 # Check whether --enable-apis or --disable-apis was given.
25997 if test "${enable_apis+set}" = set; then
25998 enableval="$enable_apis"
26001 enable_apis=v13,net,v21
26004 test x"$enable_apis" != xALL || enable_apis='legacy,compat,v11,fscompat,v13obs,v13,net,v21'
26005 test x"$enable_apis" != xNOLEGACY || enable_apis='compat,v11,fscompat,v13,net,v21'
26006 enable_api_oldproc=
26011 for i in $enable_apis; do
26013 (compat) cat >>confdefs.h <<\_ACEOF
26014 #define VC_ENABLE_API_COMPAT 1
26017 enable_api_oldproc=${enable_api_oldproc:-1}
26018 enable_api_olduts=${enable_api_olduts:-1}
26020 (legacy) cat >>confdefs.h <<\_ACEOF
26021 #define VC_ENABLE_API_LEGACY 1
26024 enable_api_oldproc=${enable_api_oldproc:-1}
26025 enable_api_olduts=${enable_api_olduts:-1}
26027 (v11) cat >>confdefs.h <<\_ACEOF
26028 #define VC_ENABLE_API_V11 1
26031 enable_api_oldproc=${enable_api_oldproc:-1}
26032 enable_api_olduts=${enable_api_olduts:-1}
26034 (fscompat) cat >>confdefs.h <<\_ACEOF
26035 #define VC_ENABLE_API_FSCOMPAT 1
26038 (v13obs) cat >>confdefs.h <<\_ACEOF
26039 #define VC_ENABLE_API_V13OBS 1
26042 cat >>confdefs.h <<\_ACEOF
26043 #define VC_ENABLE_API_V13 1
26046 (v13) cat >>confdefs.h <<\_ACEOF
26047 #define VC_ENABLE_API_V13 1
26050 (net) cat >>confdefs.h <<\_ACEOF
26051 #define VC_ENABLE_API_NET 1
26054 (v21) cat >>confdefs.h <<\_ACEOF
26055 #define VC_ENABLE_API_V21 1
26058 (oldproc) enable_api_oldproc=2;;
26059 (olduts) enable_api_olduts=2;;
26060 (*) { { echo "$as_me:$LINENO: error: '$i' is not a supported API" >&5
26061 echo "$as_me: error: '$i' is not a supported API" >&2;}
26062 { (exit 1); exit 1; }; };;
26066 if test x"$enable_api_oldproc" != x; then
26067 cat >>confdefs.h <<\_ACEOF
26068 #define VC_ENABLE_API_OLDPROC 1
26071 test x"$enable_api_oldproc" != x2 && enable_apis="$enable_apis,oldproc"
26073 if test x"$enable_api_olduts" != x; then
26074 cat >>confdefs.h <<\_ACEOF
26075 #define VC_ENABLE_API_OLDUTS 1
26078 test x"$enable_api_olduts" != x2 && enable_apis="$enable_apis,olduts"
26080 echo "$as_me:$LINENO: result: $enable_apis" >&5
26081 echo "${ECHO_T}$enable_apis" >&6
26087 ac_cpp='$CXXCPP $CPPFLAGS'
26088 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26089 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26090 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26092 echo "$as_me:$LINENO: checking for ext2fs-headers" >&5
26093 echo $ECHO_N "checking for ext2fs-headers... $ECHO_C" >&6
26094 if test "${ensc_cv_test_ext2fs_header+set}" = set; then
26095 echo $ECHO_N "(cached) $ECHO_C" >&6
26098 cat >conftest.$ac_ext <<_ACEOF
26101 cat confdefs.h >>conftest.$ac_ext
26102 cat >>conftest.$ac_ext <<_ACEOF
26103 /* end confdefs.h. */
26104 #include <ext2fs/ext2_fs.h>
26105 int main() { return 0; }
26107 rm -f conftest.$ac_objext
26108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26109 (eval $ac_compile) 2>conftest.er1
26111 grep -v '^ *+' conftest.er1 >conftest.err
26113 cat conftest.err >&5
26114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26115 (exit $ac_status); } &&
26116 { ac_try='test -z "$ac_cxx_werror_flag"
26117 || test ! -s conftest.err'
26118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26119 (eval $ac_try) 2>&5
26121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26122 (exit $ac_status); }; } &&
26123 { ac_try='test -s conftest.$ac_objext'
26124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26125 (eval $ac_try) 2>&5
26127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26128 (exit $ac_status); }; }; then
26129 ensc_cv_test_ext2fs_header=e2fsprogs
26131 echo "$as_me: failed program was:" >&5
26132 sed 's/^/| /' conftest.$ac_ext >&5
26135 cat >conftest.$ac_ext <<_ACEOF
26138 cat confdefs.h >>conftest.$ac_ext
26139 cat >>conftest.$ac_ext <<_ACEOF
26140 /* end confdefs.h. */
26141 #include <linux/ext2_fs.h>
26142 int main() { return 0; }
26144 rm -f conftest.$ac_objext
26145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26146 (eval $ac_compile) 2>conftest.er1
26148 grep -v '^ *+' conftest.er1 >conftest.err
26150 cat conftest.err >&5
26151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26152 (exit $ac_status); } &&
26153 { ac_try='test -z "$ac_cxx_werror_flag"
26154 || test ! -s conftest.err'
26155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26156 (eval $ac_try) 2>&5
26158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26159 (exit $ac_status); }; } &&
26160 { ac_try='test -s conftest.$ac_objext'
26161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26162 (eval $ac_try) 2>&5
26164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26165 (exit $ac_status); }; }; then
26166 ensc_cv_test_ext2fs_header=kernel
26168 echo "$as_me: failed program was:" >&5
26169 sed 's/^/| /' conftest.$ac_ext >&5
26172 ensc_cv_test_ext2fs_header=none
26174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26176 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26178 echo "$as_me:$LINENO: result: $ensc_cv_test_ext2fs_header" >&5
26179 echo "${ECHO_T}$ensc_cv_test_ext2fs_header" >&6
26181 case x"$ensc_cv_test_ext2fs_header" in
26183 if test "${ac_cv_header_ext2fs_ext2_fs_h+set}" = set; then
26184 echo "$as_me:$LINENO: checking for ext2fs/ext2_fs.h" >&5
26185 echo $ECHO_N "checking for ext2fs/ext2_fs.h... $ECHO_C" >&6
26186 if test "${ac_cv_header_ext2fs_ext2_fs_h+set}" = set; then
26187 echo $ECHO_N "(cached) $ECHO_C" >&6
26189 echo "$as_me:$LINENO: result: $ac_cv_header_ext2fs_ext2_fs_h" >&5
26190 echo "${ECHO_T}$ac_cv_header_ext2fs_ext2_fs_h" >&6
26192 # Is the header compilable?
26193 echo "$as_me:$LINENO: checking ext2fs/ext2_fs.h usability" >&5
26194 echo $ECHO_N "checking ext2fs/ext2_fs.h usability... $ECHO_C" >&6
26195 cat >conftest.$ac_ext <<_ACEOF
26198 cat confdefs.h >>conftest.$ac_ext
26199 cat >>conftest.$ac_ext <<_ACEOF
26200 /* end confdefs.h. */
26201 $ac_includes_default
26202 #include <ext2fs/ext2_fs.h>
26204 rm -f conftest.$ac_objext
26205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26206 (eval $ac_compile) 2>conftest.er1
26208 grep -v '^ *+' conftest.er1 >conftest.err
26210 cat conftest.err >&5
26211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26212 (exit $ac_status); } &&
26213 { ac_try='test -z "$ac_cxx_werror_flag"
26214 || test ! -s conftest.err'
26215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26216 (eval $ac_try) 2>&5
26218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26219 (exit $ac_status); }; } &&
26220 { ac_try='test -s conftest.$ac_objext'
26221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26222 (eval $ac_try) 2>&5
26224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26225 (exit $ac_status); }; }; then
26226 ac_header_compiler=yes
26228 echo "$as_me: failed program was:" >&5
26229 sed 's/^/| /' conftest.$ac_ext >&5
26231 ac_header_compiler=no
26233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26234 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26235 echo "${ECHO_T}$ac_header_compiler" >&6
26237 # Is the header present?
26238 echo "$as_me:$LINENO: checking ext2fs/ext2_fs.h presence" >&5
26239 echo $ECHO_N "checking ext2fs/ext2_fs.h presence... $ECHO_C" >&6
26240 cat >conftest.$ac_ext <<_ACEOF
26243 cat confdefs.h >>conftest.$ac_ext
26244 cat >>conftest.$ac_ext <<_ACEOF
26245 /* end confdefs.h. */
26246 #include <ext2fs/ext2_fs.h>
26248 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26249 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26251 grep -v '^ *+' conftest.er1 >conftest.err
26253 cat conftest.err >&5
26254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26255 (exit $ac_status); } >/dev/null; then
26256 if test -s conftest.err; then
26257 ac_cpp_err=$ac_cxx_preproc_warn_flag
26258 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
26265 if test -z "$ac_cpp_err"; then
26266 ac_header_preproc=yes
26268 echo "$as_me: failed program was:" >&5
26269 sed 's/^/| /' conftest.$ac_ext >&5
26271 ac_header_preproc=no
26273 rm -f conftest.err conftest.$ac_ext
26274 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26275 echo "${ECHO_T}$ac_header_preproc" >&6
26277 # So? What about this header?
26278 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26280 { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
26281 echo "$as_me: WARNING: ext2fs/ext2_fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26282 { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: proceeding with the compiler's result" >&5
26283 echo "$as_me: WARNING: ext2fs/ext2_fs.h: proceeding with the compiler's result" >&2;}
26284 ac_header_preproc=yes
26287 { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: present but cannot be compiled" >&5
26288 echo "$as_me: WARNING: ext2fs/ext2_fs.h: present but cannot be compiled" >&2;}
26289 { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: check for missing prerequisite headers?" >&5
26290 echo "$as_me: WARNING: ext2fs/ext2_fs.h: check for missing prerequisite headers?" >&2;}
26291 { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: see the Autoconf documentation" >&5
26292 echo "$as_me: WARNING: ext2fs/ext2_fs.h: see the Autoconf documentation" >&2;}
26293 { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: section \"Present But Cannot Be Compiled\"" >&5
26294 echo "$as_me: WARNING: ext2fs/ext2_fs.h: section \"Present But Cannot Be Compiled\"" >&2;}
26295 { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: proceeding with the preprocessor's result" >&5
26296 echo "$as_me: WARNING: ext2fs/ext2_fs.h: proceeding with the preprocessor's result" >&2;}
26297 { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: in the future, the compiler will take precedence" >&5
26298 echo "$as_me: WARNING: ext2fs/ext2_fs.h: in the future, the compiler will take precedence" >&2;}
26301 ## --------------------------------------------- ##
26302 ## Report this to vserver@list.linux-vserver.org ##
26303 ## --------------------------------------------- ##
26306 sed "s/^/$as_me: WARNING: /" >&2
26309 echo "$as_me:$LINENO: checking for ext2fs/ext2_fs.h" >&5
26310 echo $ECHO_N "checking for ext2fs/ext2_fs.h... $ECHO_C" >&6
26311 if test "${ac_cv_header_ext2fs_ext2_fs_h+set}" = set; then
26312 echo $ECHO_N "(cached) $ECHO_C" >&6
26314 ac_cv_header_ext2fs_ext2_fs_h=$ac_header_preproc
26316 echo "$as_me:$LINENO: result: $ac_cv_header_ext2fs_ext2_fs_h" >&5
26317 echo "${ECHO_T}$ac_cv_header_ext2fs_ext2_fs_h" >&6
26320 if test $ac_cv_header_ext2fs_ext2_fs_h = yes; then
26322 cat >>confdefs.h <<\_ACEOF
26323 #define ENSC_HAVE_EXT2FS_EXT2_FS_H 1
26327 { { echo "$as_me:$LINENO: error: unexpected error while checkin for <ext2fs/ext2_fs.h>
26328 See \`config.log' for more details." >&5
26329 echo "$as_me: error: unexpected error while checkin for <ext2fs/ext2_fs.h>
26330 See \`config.log' for more details." >&2;}
26331 { (exit 1); exit 1; }; }
26337 if test "${ac_cv_header_linux_ext2_fs_h+set}" = set; then
26338 echo "$as_me:$LINENO: checking for linux/ext2_fs.h" >&5
26339 echo $ECHO_N "checking for linux/ext2_fs.h... $ECHO_C" >&6
26340 if test "${ac_cv_header_linux_ext2_fs_h+set}" = set; then
26341 echo $ECHO_N "(cached) $ECHO_C" >&6
26343 echo "$as_me:$LINENO: result: $ac_cv_header_linux_ext2_fs_h" >&5
26344 echo "${ECHO_T}$ac_cv_header_linux_ext2_fs_h" >&6
26346 # Is the header compilable?
26347 echo "$as_me:$LINENO: checking linux/ext2_fs.h usability" >&5
26348 echo $ECHO_N "checking linux/ext2_fs.h usability... $ECHO_C" >&6
26349 cat >conftest.$ac_ext <<_ACEOF
26352 cat confdefs.h >>conftest.$ac_ext
26353 cat >>conftest.$ac_ext <<_ACEOF
26354 /* end confdefs.h. */
26355 $ac_includes_default
26356 #include <linux/ext2_fs.h>
26358 rm -f conftest.$ac_objext
26359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26360 (eval $ac_compile) 2>conftest.er1
26362 grep -v '^ *+' conftest.er1 >conftest.err
26364 cat conftest.err >&5
26365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26366 (exit $ac_status); } &&
26367 { ac_try='test -z "$ac_cxx_werror_flag"
26368 || test ! -s conftest.err'
26369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26370 (eval $ac_try) 2>&5
26372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26373 (exit $ac_status); }; } &&
26374 { ac_try='test -s conftest.$ac_objext'
26375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26376 (eval $ac_try) 2>&5
26378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26379 (exit $ac_status); }; }; then
26380 ac_header_compiler=yes
26382 echo "$as_me: failed program was:" >&5
26383 sed 's/^/| /' conftest.$ac_ext >&5
26385 ac_header_compiler=no
26387 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26388 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26389 echo "${ECHO_T}$ac_header_compiler" >&6
26391 # Is the header present?
26392 echo "$as_me:$LINENO: checking linux/ext2_fs.h presence" >&5
26393 echo $ECHO_N "checking linux/ext2_fs.h presence... $ECHO_C" >&6
26394 cat >conftest.$ac_ext <<_ACEOF
26397 cat confdefs.h >>conftest.$ac_ext
26398 cat >>conftest.$ac_ext <<_ACEOF
26399 /* end confdefs.h. */
26400 #include <linux/ext2_fs.h>
26402 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26403 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26405 grep -v '^ *+' conftest.er1 >conftest.err
26407 cat conftest.err >&5
26408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26409 (exit $ac_status); } >/dev/null; then
26410 if test -s conftest.err; then
26411 ac_cpp_err=$ac_cxx_preproc_warn_flag
26412 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
26419 if test -z "$ac_cpp_err"; then
26420 ac_header_preproc=yes
26422 echo "$as_me: failed program was:" >&5
26423 sed 's/^/| /' conftest.$ac_ext >&5
26425 ac_header_preproc=no
26427 rm -f conftest.err conftest.$ac_ext
26428 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26429 echo "${ECHO_T}$ac_header_preproc" >&6
26431 # So? What about this header?
26432 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26434 { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
26435 echo "$as_me: WARNING: linux/ext2_fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26436 { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: proceeding with the compiler's result" >&5
26437 echo "$as_me: WARNING: linux/ext2_fs.h: proceeding with the compiler's result" >&2;}
26438 ac_header_preproc=yes
26441 { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: present but cannot be compiled" >&5
26442 echo "$as_me: WARNING: linux/ext2_fs.h: present but cannot be compiled" >&2;}
26443 { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: check for missing prerequisite headers?" >&5
26444 echo "$as_me: WARNING: linux/ext2_fs.h: check for missing prerequisite headers?" >&2;}
26445 { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: see the Autoconf documentation" >&5
26446 echo "$as_me: WARNING: linux/ext2_fs.h: see the Autoconf documentation" >&2;}
26447 { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: section \"Present But Cannot Be Compiled\"" >&5
26448 echo "$as_me: WARNING: linux/ext2_fs.h: section \"Present But Cannot Be Compiled\"" >&2;}
26449 { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: proceeding with the preprocessor's result" >&5
26450 echo "$as_me: WARNING: linux/ext2_fs.h: proceeding with the preprocessor's result" >&2;}
26451 { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: in the future, the compiler will take precedence" >&5
26452 echo "$as_me: WARNING: linux/ext2_fs.h: in the future, the compiler will take precedence" >&2;}
26455 ## --------------------------------------------- ##
26456 ## Report this to vserver@list.linux-vserver.org ##
26457 ## --------------------------------------------- ##
26460 sed "s/^/$as_me: WARNING: /" >&2
26463 echo "$as_me:$LINENO: checking for linux/ext2_fs.h" >&5
26464 echo $ECHO_N "checking for linux/ext2_fs.h... $ECHO_C" >&6
26465 if test "${ac_cv_header_linux_ext2_fs_h+set}" = set; then
26466 echo $ECHO_N "(cached) $ECHO_C" >&6
26468 ac_cv_header_linux_ext2_fs_h=$ac_header_preproc
26470 echo "$as_me:$LINENO: result: $ac_cv_header_linux_ext2_fs_h" >&5
26471 echo "${ECHO_T}$ac_cv_header_linux_ext2_fs_h" >&6
26474 if test $ac_cv_header_linux_ext2_fs_h = yes; then
26476 cat >>confdefs.h <<\_ACEOF
26477 #define ENSC_HAVE_LINUX_EXT2_FS_H 1
26481 { { echo "$as_me:$LINENO: error: unexpected error while checkin for <linux/ext2_fs.h>
26482 See \`config.log' for more details." >&5
26483 echo "$as_me: error: unexpected error while checkin for <linux/ext2_fs.h>
26484 See \`config.log' for more details." >&2;}
26485 { (exit 1); exit 1; }; }
26491 { { echo "$as_me:$LINENO: error:
26492 ext2fs headers were not found, or they are not usable. This can have
26493 the following reasons:
26495 * you have neither the e2fsprogs nor the kernel headers installed
26497 * kernel headers are broken (e.g. these of linux 2.6 are known to be)
26498 and you do not have e2fsprogs headers installed; please try to install
26499 - e2fsprogs-devel (for Red Hat), or
26500 - lib*ext2fs2-devel (for Mandriva), or
26501 - e2fslibs-dev (for Debian)
26504 * kernel headers are broken and your e2fsprogs headers are too old;
26505 until version 1.27 (inclusive), they are using reserved C++ keywords
26507 * kernel headers are broken and your e2fsprogs headers are too new;
26508 recent (January 2004) BK snapshots of e2fsprogs are unusable for
26509 C++, for details and a solution see
26510 https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=112448
26513 In the latter two cases you have the following options:
26514 * fix the headers manually, or
26515 * install a stable version of e2fsprogs (e.g. 1.34), or
26516 * use good kernel headers (from linux 2.4.x)
26518 See \`config.log' for more details." >&5
26519 echo "$as_me: error:
26520 ext2fs headers were not found, or they are not usable. This can have
26521 the following reasons:
26523 * you have neither the e2fsprogs nor the kernel headers installed
26525 * kernel headers are broken (e.g. these of linux 2.6 are known to be)
26526 and you do not have e2fsprogs headers installed; please try to install
26527 - e2fsprogs-devel (for Red Hat), or
26528 - lib*ext2fs2-devel (for Mandriva), or
26529 - e2fslibs-dev (for Debian)
26532 * kernel headers are broken and your e2fsprogs headers are too old;
26533 until version 1.27 (inclusive), they are using reserved C++ keywords
26535 * kernel headers are broken and your e2fsprogs headers are too new;
26536 recent (January 2004) BK snapshots of e2fsprogs are unusable for
26537 C++, for details and a solution see
26538 https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=112448
26541 In the latter two cases you have the following options:
26542 * fix the headers manually, or
26543 * install a stable version of e2fsprogs (e.g. 1.34), or
26544 * use good kernel headers (from linux 2.4.x)
26546 See \`config.log' for more details." >&2;}
26547 { (exit 1); exit 1; }; }
26551 ac_cpp='$CPP $CPPFLAGS'
26552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26558 for ac_func in vserver
26560 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26561 echo "$as_me:$LINENO: checking for $ac_func" >&5
26562 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26563 if eval "test \"\${$as_ac_var+set}\" = set"; then
26564 echo $ECHO_N "(cached) $ECHO_C" >&6
26566 cat >conftest.$ac_ext <<_ACEOF
26569 cat confdefs.h >>conftest.$ac_ext
26570 cat >>conftest.$ac_ext <<_ACEOF
26571 /* end confdefs.h. */
26572 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26573 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26574 #define $ac_func innocuous_$ac_func
26576 /* System header to define __stub macros and hopefully few prototypes,
26577 which can conflict with char $ac_func (); below.
26578 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26579 <limits.h> exists even on freestanding compilers. */
26582 # include <limits.h>
26584 # include <assert.h>
26589 /* Override any gcc2 internal prototype to avoid an error. */
26594 /* We use char because int might match the return type of a gcc2
26595 builtin and then its argument prototype would still apply. */
26597 /* The GNU C library defines this for functions which it implements
26598 to always fail with ENOSYS. Some functions are actually named
26599 something starting with __ and the normal name is an alias. */
26600 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26603 char (*f) () = $ac_func;
26612 return f != $ac_func;
26617 rm -f conftest.$ac_objext conftest$ac_exeext
26618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26619 (eval $ac_link) 2>conftest.er1
26621 grep -v '^ *+' conftest.er1 >conftest.err
26623 cat conftest.err >&5
26624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26625 (exit $ac_status); } &&
26626 { ac_try='test -z "$ac_c_werror_flag"
26627 || test ! -s conftest.err'
26628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26629 (eval $ac_try) 2>&5
26631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26632 (exit $ac_status); }; } &&
26633 { ac_try='test -s conftest$ac_exeext'
26634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26635 (eval $ac_try) 2>&5
26637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26638 (exit $ac_status); }; }; then
26639 eval "$as_ac_var=yes"
26641 echo "$as_me: failed program was:" >&5
26642 sed 's/^/| /' conftest.$ac_ext >&5
26644 eval "$as_ac_var=no"
26646 rm -f conftest.err conftest.$ac_objext \
26647 conftest$ac_exeext conftest.$ac_ext
26649 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26650 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26651 if test `eval echo '${'$as_ac_var'}'` = yes; then
26652 cat >>confdefs.h <<_ACEOF
26653 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26659 echo "$as_me:$LINENO: checking whether MS_MOVE is declared" >&5
26660 echo $ECHO_N "checking whether MS_MOVE is declared... $ECHO_C" >&6
26661 if test "${ac_cv_have_decl_MS_MOVE+set}" = set; then
26662 echo $ECHO_N "(cached) $ECHO_C" >&6
26664 cat >conftest.$ac_ext <<_ACEOF
26667 cat confdefs.h >>conftest.$ac_ext
26668 cat >>conftest.$ac_ext <<_ACEOF
26669 /* end confdefs.h. */
26670 #include <linux/fs.h>
26676 char *p = (char *) MS_MOVE;
26683 rm -f conftest.$ac_objext
26684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26685 (eval $ac_compile) 2>conftest.er1
26687 grep -v '^ *+' conftest.er1 >conftest.err
26689 cat conftest.err >&5
26690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26691 (exit $ac_status); } &&
26692 { ac_try='test -z "$ac_c_werror_flag"
26693 || test ! -s conftest.err'
26694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26695 (eval $ac_try) 2>&5
26697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26698 (exit $ac_status); }; } &&
26699 { ac_try='test -s conftest.$ac_objext'
26700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26701 (eval $ac_try) 2>&5
26703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26704 (exit $ac_status); }; }; then
26705 ac_cv_have_decl_MS_MOVE=yes
26707 echo "$as_me: failed program was:" >&5
26708 sed 's/^/| /' conftest.$ac_ext >&5
26710 ac_cv_have_decl_MS_MOVE=no
26712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26714 echo "$as_me:$LINENO: result: $ac_cv_have_decl_MS_MOVE" >&5
26715 echo "${ECHO_T}$ac_cv_have_decl_MS_MOVE" >&6
26716 if test $ac_cv_have_decl_MS_MOVE = yes; then
26718 cat >>confdefs.h <<_ACEOF
26719 #define HAVE_DECL_MS_MOVE 1
26724 cat >>confdefs.h <<_ACEOF
26725 #define HAVE_DECL_MS_MOVE 0
26732 echo "$as_me:$LINENO: checking for xid_t" >&5
26733 echo $ECHO_N "checking for xid_t... $ECHO_C" >&6
26734 if test "${ac_cv_type_xid_t+set}" = set; then
26735 echo $ECHO_N "(cached) $ECHO_C" >&6
26737 cat >conftest.$ac_ext <<_ACEOF
26740 cat confdefs.h >>conftest.$ac_ext
26741 cat >>conftest.$ac_ext <<_ACEOF
26742 /* end confdefs.h. */
26743 #include <sys/types.h>
26750 if (sizeof (xid_t))
26756 rm -f conftest.$ac_objext
26757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26758 (eval $ac_compile) 2>conftest.er1
26760 grep -v '^ *+' conftest.er1 >conftest.err
26762 cat conftest.err >&5
26763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26764 (exit $ac_status); } &&
26765 { ac_try='test -z "$ac_c_werror_flag"
26766 || test ! -s conftest.err'
26767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26768 (eval $ac_try) 2>&5
26770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26771 (exit $ac_status); }; } &&
26772 { ac_try='test -s conftest.$ac_objext'
26773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26774 (eval $ac_try) 2>&5
26776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26777 (exit $ac_status); }; }; then
26778 ac_cv_type_xid_t=yes
26780 echo "$as_me: failed program was:" >&5
26781 sed 's/^/| /' conftest.$ac_ext >&5
26783 ac_cv_type_xid_t=no
26785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26787 echo "$as_me:$LINENO: result: $ac_cv_type_xid_t" >&5
26788 echo "${ECHO_T}$ac_cv_type_xid_t" >&6
26789 if test $ac_cv_type_xid_t = yes; then
26791 cat >>confdefs.h <<_ACEOF
26792 #define HAVE_XID_T 1
26798 echo "$as_me:$LINENO: checking for nid_t" >&5
26799 echo $ECHO_N "checking for nid_t... $ECHO_C" >&6
26800 if test "${ac_cv_type_nid_t+set}" = set; then
26801 echo $ECHO_N "(cached) $ECHO_C" >&6
26803 cat >conftest.$ac_ext <<_ACEOF
26806 cat confdefs.h >>conftest.$ac_ext
26807 cat >>conftest.$ac_ext <<_ACEOF
26808 /* end confdefs.h. */
26809 #include <sys/types.h>
26816 if (sizeof (nid_t))
26822 rm -f conftest.$ac_objext
26823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26824 (eval $ac_compile) 2>conftest.er1
26826 grep -v '^ *+' conftest.er1 >conftest.err
26828 cat conftest.err >&5
26829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26830 (exit $ac_status); } &&
26831 { ac_try='test -z "$ac_c_werror_flag"
26832 || test ! -s conftest.err'
26833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26834 (eval $ac_try) 2>&5
26836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26837 (exit $ac_status); }; } &&
26838 { ac_try='test -s conftest.$ac_objext'
26839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26840 (eval $ac_try) 2>&5
26842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26843 (exit $ac_status); }; }; then
26844 ac_cv_type_nid_t=yes
26846 echo "$as_me: failed program was:" >&5
26847 sed 's/^/| /' conftest.$ac_ext >&5
26849 ac_cv_type_nid_t=no
26851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26853 echo "$as_me:$LINENO: result: $ac_cv_type_nid_t" >&5
26854 echo "${ECHO_T}$ac_cv_type_nid_t" >&6
26855 if test $ac_cv_type_nid_t = yes; then
26857 cat >>confdefs.h <<_ACEOF
26858 #define HAVE_NID_T 1
26866 for ac_header in sys/capability.h
26868 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26869 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26870 echo "$as_me:$LINENO: checking for $ac_header" >&5
26871 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26872 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26873 echo $ECHO_N "(cached) $ECHO_C" >&6
26875 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26876 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26878 # Is the header compilable?
26879 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26880 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26881 cat >conftest.$ac_ext <<_ACEOF
26884 cat confdefs.h >>conftest.$ac_ext
26885 cat >>conftest.$ac_ext <<_ACEOF
26886 /* end confdefs.h. */
26887 $ac_includes_default
26888 #include <$ac_header>
26890 rm -f conftest.$ac_objext
26891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26892 (eval $ac_compile) 2>conftest.er1
26894 grep -v '^ *+' conftest.er1 >conftest.err
26896 cat conftest.err >&5
26897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26898 (exit $ac_status); } &&
26899 { ac_try='test -z "$ac_c_werror_flag"
26900 || test ! -s conftest.err'
26901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26902 (eval $ac_try) 2>&5
26904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26905 (exit $ac_status); }; } &&
26906 { ac_try='test -s conftest.$ac_objext'
26907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26908 (eval $ac_try) 2>&5
26910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26911 (exit $ac_status); }; }; then
26912 ac_header_compiler=yes
26914 echo "$as_me: failed program was:" >&5
26915 sed 's/^/| /' conftest.$ac_ext >&5
26917 ac_header_compiler=no
26919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26920 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26921 echo "${ECHO_T}$ac_header_compiler" >&6
26923 # Is the header present?
26924 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26925 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26926 cat >conftest.$ac_ext <<_ACEOF
26929 cat confdefs.h >>conftest.$ac_ext
26930 cat >>conftest.$ac_ext <<_ACEOF
26931 /* end confdefs.h. */
26932 #include <$ac_header>
26934 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26935 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26937 grep -v '^ *+' conftest.er1 >conftest.err
26939 cat conftest.err >&5
26940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26941 (exit $ac_status); } >/dev/null; then
26942 if test -s conftest.err; then
26943 ac_cpp_err=$ac_c_preproc_warn_flag
26944 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26951 if test -z "$ac_cpp_err"; then
26952 ac_header_preproc=yes
26954 echo "$as_me: failed program was:" >&5
26955 sed 's/^/| /' conftest.$ac_ext >&5
26957 ac_header_preproc=no
26959 rm -f conftest.err conftest.$ac_ext
26960 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26961 echo "${ECHO_T}$ac_header_preproc" >&6
26963 # So? What about this header?
26964 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26966 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26967 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26968 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26969 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26970 ac_header_preproc=yes
26973 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26974 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26975 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26976 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26977 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26978 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26979 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26980 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26981 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26982 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26983 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26984 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26987 ## --------------------------------------------- ##
26988 ## Report this to vserver@list.linux-vserver.org ##
26989 ## --------------------------------------------- ##
26992 sed "s/^/$as_me: WARNING: /" >&2
26995 echo "$as_me:$LINENO: checking for $ac_header" >&5
26996 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26997 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26998 echo $ECHO_N "(cached) $ECHO_C" >&6
27000 eval "$as_ac_Header=\$ac_header_preproc"
27002 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27003 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27006 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27007 cat >>confdefs.h <<_ACEOF
27008 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27016 if test x"$ensc_have_dietlibc" = xno; then
27017 echo "$as_me:$LINENO: checking for openpty" >&5
27018 echo $ECHO_N "checking for openpty... $ECHO_C" >&6
27019 if test "${ac_cv_func_openpty+set}" = set; then
27020 echo $ECHO_N "(cached) $ECHO_C" >&6
27022 cat >conftest.$ac_ext <<_ACEOF
27025 cat confdefs.h >>conftest.$ac_ext
27026 cat >>conftest.$ac_ext <<_ACEOF
27027 /* end confdefs.h. */
27028 /* Define openpty to an innocuous variant, in case <limits.h> declares openpty.
27029 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27030 #define openpty innocuous_openpty
27032 /* System header to define __stub macros and hopefully few prototypes,
27033 which can conflict with char openpty (); below.
27034 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27035 <limits.h> exists even on freestanding compilers. */
27038 # include <limits.h>
27040 # include <assert.h>
27045 /* Override any gcc2 internal prototype to avoid an error. */
27050 /* We use char because int might match the return type of a gcc2
27051 builtin and then its argument prototype would still apply. */
27053 /* The GNU C library defines this for functions which it implements
27054 to always fail with ENOSYS. Some functions are actually named
27055 something starting with __ and the normal name is an alias. */
27056 #if defined (__stub_openpty) || defined (__stub___openpty)
27059 char (*f) () = openpty;
27068 return f != openpty;
27073 rm -f conftest.$ac_objext conftest$ac_exeext
27074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27075 (eval $ac_link) 2>conftest.er1
27077 grep -v '^ *+' conftest.er1 >conftest.err
27079 cat conftest.err >&5
27080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27081 (exit $ac_status); } &&
27082 { ac_try='test -z "$ac_c_werror_flag"
27083 || test ! -s conftest.err'
27084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27085 (eval $ac_try) 2>&5
27087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27088 (exit $ac_status); }; } &&
27089 { ac_try='test -s conftest$ac_exeext'
27090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27091 (eval $ac_try) 2>&5
27093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27094 (exit $ac_status); }; }; then
27095 ac_cv_func_openpty=yes
27097 echo "$as_me: failed program was:" >&5
27098 sed 's/^/| /' conftest.$ac_ext >&5
27100 ac_cv_func_openpty=no
27102 rm -f conftest.err conftest.$ac_objext \
27103 conftest$ac_exeext conftest.$ac_ext
27105 echo "$as_me:$LINENO: result: $ac_cv_func_openpty" >&5
27106 echo "${ECHO_T}$ac_cv_func_openpty" >&6
27107 if test $ac_cv_func_openpty = yes; then
27111 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
27112 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
27113 if test "${ac_cv_lib_util_openpty+set}" = set; then
27114 echo $ECHO_N "(cached) $ECHO_C" >&6
27116 ac_check_lib_save_LIBS=$LIBS
27117 LIBS="-lutil $LIBS"
27118 cat >conftest.$ac_ext <<_ACEOF
27121 cat confdefs.h >>conftest.$ac_ext
27122 cat >>conftest.$ac_ext <<_ACEOF
27123 /* end confdefs.h. */
27125 /* Override any gcc2 internal prototype to avoid an error. */
27129 /* We use char because int might match the return type of a gcc2
27130 builtin and then its argument prototype would still apply. */
27140 rm -f conftest.$ac_objext conftest$ac_exeext
27141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27142 (eval $ac_link) 2>conftest.er1
27144 grep -v '^ *+' conftest.er1 >conftest.err
27146 cat conftest.err >&5
27147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27148 (exit $ac_status); } &&
27149 { ac_try='test -z "$ac_c_werror_flag"
27150 || test ! -s conftest.err'
27151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27152 (eval $ac_try) 2>&5
27154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27155 (exit $ac_status); }; } &&
27156 { ac_try='test -s conftest$ac_exeext'
27157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27158 (eval $ac_try) 2>&5
27160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27161 (exit $ac_status); }; }; then
27162 ac_cv_lib_util_openpty=yes
27164 echo "$as_me: failed program was:" >&5
27165 sed 's/^/| /' conftest.$ac_ext >&5
27167 ac_cv_lib_util_openpty=no
27169 rm -f conftest.err conftest.$ac_objext \
27170 conftest$ac_exeext conftest.$ac_ext
27171 LIBS=$ac_check_lib_save_LIBS
27173 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
27174 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
27175 if test $ac_cv_lib_util_openpty = yes; then
27176 cat >>confdefs.h <<_ACEOF
27177 #define HAVE_LIBUTIL 1
27180 LIBS="-lutil $LIBS"
27183 { { echo "$as_me:$LINENO: error:
27185 **** openpty could not be found
27187 echo "$as_me: error:
27189 **** openpty could not be found
27191 { (exit 1); exit 1; }; }
27199 if test x"$ensc_cv_c99_c99compiler" = xyes; then
27200 ensc_have_beecrypt=yes
27202 if test x"$ensc_have_beecrypt" = xyes; then
27203 if test "${ac_cv_header_beecrypt_beecrypt_h+set}" = set; then
27204 echo "$as_me:$LINENO: checking for beecrypt/beecrypt.h" >&5
27205 echo $ECHO_N "checking for beecrypt/beecrypt.h... $ECHO_C" >&6
27206 if test "${ac_cv_header_beecrypt_beecrypt_h+set}" = set; then
27207 echo $ECHO_N "(cached) $ECHO_C" >&6
27209 echo "$as_me:$LINENO: result: $ac_cv_header_beecrypt_beecrypt_h" >&5
27210 echo "${ECHO_T}$ac_cv_header_beecrypt_beecrypt_h" >&6
27212 # Is the header compilable?
27213 echo "$as_me:$LINENO: checking beecrypt/beecrypt.h usability" >&5
27214 echo $ECHO_N "checking beecrypt/beecrypt.h usability... $ECHO_C" >&6
27215 cat >conftest.$ac_ext <<_ACEOF
27218 cat confdefs.h >>conftest.$ac_ext
27219 cat >>conftest.$ac_ext <<_ACEOF
27220 /* end confdefs.h. */
27221 $ac_includes_default
27222 #include <beecrypt/beecrypt.h>
27224 rm -f conftest.$ac_objext
27225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27226 (eval $ac_compile) 2>conftest.er1
27228 grep -v '^ *+' conftest.er1 >conftest.err
27230 cat conftest.err >&5
27231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27232 (exit $ac_status); } &&
27233 { ac_try='test -z "$ac_c_werror_flag"
27234 || test ! -s conftest.err'
27235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27236 (eval $ac_try) 2>&5
27238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27239 (exit $ac_status); }; } &&
27240 { ac_try='test -s conftest.$ac_objext'
27241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27242 (eval $ac_try) 2>&5
27244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27245 (exit $ac_status); }; }; then
27246 ac_header_compiler=yes
27248 echo "$as_me: failed program was:" >&5
27249 sed 's/^/| /' conftest.$ac_ext >&5
27251 ac_header_compiler=no
27253 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27254 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27255 echo "${ECHO_T}$ac_header_compiler" >&6
27257 # Is the header present?
27258 echo "$as_me:$LINENO: checking beecrypt/beecrypt.h presence" >&5
27259 echo $ECHO_N "checking beecrypt/beecrypt.h presence... $ECHO_C" >&6
27260 cat >conftest.$ac_ext <<_ACEOF
27263 cat confdefs.h >>conftest.$ac_ext
27264 cat >>conftest.$ac_ext <<_ACEOF
27265 /* end confdefs.h. */
27266 #include <beecrypt/beecrypt.h>
27268 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27269 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27271 grep -v '^ *+' conftest.er1 >conftest.err
27273 cat conftest.err >&5
27274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27275 (exit $ac_status); } >/dev/null; then
27276 if test -s conftest.err; then
27277 ac_cpp_err=$ac_c_preproc_warn_flag
27278 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27285 if test -z "$ac_cpp_err"; then
27286 ac_header_preproc=yes
27288 echo "$as_me: failed program was:" >&5
27289 sed 's/^/| /' conftest.$ac_ext >&5
27291 ac_header_preproc=no
27293 rm -f conftest.err conftest.$ac_ext
27294 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27295 echo "${ECHO_T}$ac_header_preproc" >&6
27297 # So? What about this header?
27298 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27300 { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h: accepted by the compiler, rejected by the preprocessor!" >&5
27301 echo "$as_me: WARNING: beecrypt/beecrypt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27302 { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h: proceeding with the compiler's result" >&5
27303 echo "$as_me: WARNING: beecrypt/beecrypt.h: proceeding with the compiler's result" >&2;}
27304 ac_header_preproc=yes
27307 { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h: present but cannot be compiled" >&5
27308 echo "$as_me: WARNING: beecrypt/beecrypt.h: present but cannot be compiled" >&2;}
27309 { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h: check for missing prerequisite headers?" >&5
27310 echo "$as_me: WARNING: beecrypt/beecrypt.h: check for missing prerequisite headers?" >&2;}
27311 { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h: see the Autoconf documentation" >&5
27312 echo "$as_me: WARNING: beecrypt/beecrypt.h: see the Autoconf documentation" >&2;}
27313 { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h: section \"Present But Cannot Be Compiled\"" >&5
27314 echo "$as_me: WARNING: beecrypt/beecrypt.h: section \"Present But Cannot Be Compiled\"" >&2;}
27315 { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h: proceeding with the preprocessor's result" >&5
27316 echo "$as_me: WARNING: beecrypt/beecrypt.h: proceeding with the preprocessor's result" >&2;}
27317 { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h: in the future, the compiler will take precedence" >&5
27318 echo "$as_me: WARNING: beecrypt/beecrypt.h: in the future, the compiler will take precedence" >&2;}
27321 ## --------------------------------------------- ##
27322 ## Report this to vserver@list.linux-vserver.org ##
27323 ## --------------------------------------------- ##
27326 sed "s/^/$as_me: WARNING: /" >&2
27329 echo "$as_me:$LINENO: checking for beecrypt/beecrypt.h" >&5
27330 echo $ECHO_N "checking for beecrypt/beecrypt.h... $ECHO_C" >&6
27331 if test "${ac_cv_header_beecrypt_beecrypt_h+set}" = set; then
27332 echo $ECHO_N "(cached) $ECHO_C" >&6
27334 ac_cv_header_beecrypt_beecrypt_h=$ac_header_preproc
27336 echo "$as_me:$LINENO: result: $ac_cv_header_beecrypt_beecrypt_h" >&5
27337 echo "${ECHO_T}$ac_cv_header_beecrypt_beecrypt_h" >&6
27340 if test $ac_cv_header_beecrypt_beecrypt_h = yes; then
27343 ensc_have_beecrypt=no
27349 if test x"$ensc_have_beecrypt" = xyes; then
27350 echo "$as_me:$LINENO: checking for hashFunctionContextInit in -lbeecrypt" >&5
27351 echo $ECHO_N "checking for hashFunctionContextInit in -lbeecrypt... $ECHO_C" >&6
27352 if test "${ac_cv_lib_beecrypt_hashFunctionContextInit+set}" = set; then
27353 echo $ECHO_N "(cached) $ECHO_C" >&6
27355 ac_check_lib_save_LIBS=$LIBS
27356 LIBS="-lbeecrypt $LIBS"
27357 cat >conftest.$ac_ext <<_ACEOF
27360 cat confdefs.h >>conftest.$ac_ext
27361 cat >>conftest.$ac_ext <<_ACEOF
27362 /* end confdefs.h. */
27364 /* Override any gcc2 internal prototype to avoid an error. */
27368 /* We use char because int might match the return type of a gcc2
27369 builtin and then its argument prototype would still apply. */
27370 char hashFunctionContextInit ();
27374 hashFunctionContextInit ();
27379 rm -f conftest.$ac_objext conftest$ac_exeext
27380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27381 (eval $ac_link) 2>conftest.er1
27383 grep -v '^ *+' conftest.er1 >conftest.err
27385 cat conftest.err >&5
27386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27387 (exit $ac_status); } &&
27388 { ac_try='test -z "$ac_c_werror_flag"
27389 || test ! -s conftest.err'
27390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27391 (eval $ac_try) 2>&5
27393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27394 (exit $ac_status); }; } &&
27395 { ac_try='test -s conftest$ac_exeext'
27396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27397 (eval $ac_try) 2>&5
27399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27400 (exit $ac_status); }; }; then
27401 ac_cv_lib_beecrypt_hashFunctionContextInit=yes
27403 echo "$as_me: failed program was:" >&5
27404 sed 's/^/| /' conftest.$ac_ext >&5
27406 ac_cv_lib_beecrypt_hashFunctionContextInit=no
27408 rm -f conftest.err conftest.$ac_objext \
27409 conftest$ac_exeext conftest.$ac_ext
27410 LIBS=$ac_check_lib_save_LIBS
27412 echo "$as_me:$LINENO: result: $ac_cv_lib_beecrypt_hashFunctionContextInit" >&5
27413 echo "${ECHO_T}$ac_cv_lib_beecrypt_hashFunctionContextInit" >&6
27414 if test $ac_cv_lib_beecrypt_hashFunctionContextInit = yes; then
27417 ensc_have_beecrypt=no
27422 if test x"$ensc_have_beecrypt" != xyes; then
27423 { echo "$as_me:$LINENO: WARNING:
27425 **** 'beecrypt' could not be found;
27426 **** this will disable the build of 'vhashify'
27428 echo "$as_me: WARNING:
27430 **** 'beecrypt' could not be found;
27431 **** this will disable the build of 'vhashify'
27435 ensc_have_beecrypt=no
27440 if test x"$ensc_have_beecrypt" = xyes; then
27441 ENSC_HAVE_BEECRYPT_TRUE=
27442 ENSC_HAVE_BEECRYPT_FALSE='#'
27444 ENSC_HAVE_BEECRYPT_TRUE='#'
27445 ENSC_HAVE_BEECRYPT_FALSE=
27451 ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE=
27452 ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE='#'
27454 ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE='#'
27455 ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE=
27460 echo "$as_me:$LINENO: checking for host initscripts" >&5
27461 echo $ECHO_N "checking for host initscripts... $ECHO_C" >&6
27463 # Check whether --with-initscripts or --without-initscripts was given.
27464 if test "${with_initscripts+set}" = set; then
27465 withval="$with_initscripts"
27468 gentoo) ensc_with_init=gentoo;;
27469 sysv) ensc_with_init=sysv;;
27470 *) { { echo "$as_me:$LINENO: error: invalid initscripts value, only gentoo and sysv are supported" >&5
27471 echo "$as_me: error: invalid initscripts value, only gentoo and sysv are supported" >&2;}
27472 { (exit 1); exit 1; }; };;
27477 if test -e /etc/gentoo-release; then
27478 ensc_with_init=gentoo
27480 ensc_with_init=sysv
27484 echo "$as_me:$LINENO: result: $ensc_with_init" >&5
27485 echo "${ECHO_T}$ensc_with_init" >&6
27488 if test x"$ensc_with_init" = xgentoo; then
27489 HAVE_GENTOO_INIT_TRUE=
27490 HAVE_GENTOO_INIT_FALSE='#'
27492 HAVE_GENTOO_INIT_TRUE='#'
27493 HAVE_GENTOO_INIT_FALSE=
27498 if test x"$ensc_with_init" = xsysv; then
27499 HAVE_SYSV_INIT_TRUE=
27500 HAVE_SYSV_INIT_FALSE='#'
27502 HAVE_SYSV_INIT_TRUE='#'
27503 HAVE_SYSV_INIT_FALSE=
27509 cat >>confdefs.h <<\_ACEOF
27510 #define UTMP_GID 22
27516 cat >>confdefs.h <<\_ACEOF
27517 #define HAVE_GROWING_STACK 1
27523 cat >>confdefs.h <<\_ACEOF
27524 #define _FILE_OFFSET_BITS 64
27528 ensc_cxx_affected=" (affected: vbuild, vcheck)"
27529 ensc_c99_affected=" (affected: vunify, vcopy, vhashify, vdlimit)"
27530 ensc_diet_msg=" (you have been warned)"
27531 ensc_diet_version_msg=" ($ensc_version_dietlibc)"
27532 ensc_diet_compat_msg=" (using -lcompat)"
27533 test x"$ensc_cv_cxx_cxxcompiler" = xno || ensc_cxx_affected=
27534 test x"$ensc_cv_c99_c99compiler" = xno || ensc_c99_affected=
27535 test x"$ensc_have_dietlibc" = xno || ensc_diet_msg=
27536 test x"$ensc_version_dietlibc" != x || ensc_diet_version_msg=
27537 test x"$ensc_have_dietlibc$ensc_cv_c_dietlibc_compat" = xyesyes || ensc_diet_compat_msg=
27543 ac_config_files="$ac_config_files util-vserver.spec Makefile distrib/Makefile lib/apidoc/Doxyfile"
27545 cat >confcache <<\_ACEOF
27546 # This file is a shell script that caches the results of configure
27547 # tests run on this system so they can be shared between configure
27548 # scripts and configure runs, see configure's option --config-cache.
27549 # It is not useful on other systems. If it contains results you don't
27550 # want to keep, you may remove or edit it.
27552 # config.status only pays attention to the cache file if you give it
27553 # the --recheck option to rerun configure.
27555 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27556 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27557 # following values.
27561 # The following way of writing the cache mishandles newlines in values,
27562 # but we know of no workaround that is simple, portable, and efficient.
27563 # So, don't put newlines in cache variables' values.
27564 # Ultrix sh set writes to stderr and can't be redirected directly,
27565 # and sets the high bit in the cache file unless we assign to the vars.
27568 case `(ac_space=' '; set | grep ac_space) 2>&1` in
27570 # `set' does not quote correctly, so add quotes (double-quote
27571 # substitution turns \\\\ into \\, and sed turns \\ into \).
27574 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27577 # `set' quotes correctly as required by POSIX, so do not add quotes.
27579 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
27586 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27588 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27590 if diff $cache_file confcache >/dev/null 2>&1; then :; else
27591 if test -w $cache_file; then
27592 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
27593 cat confcache >$cache_file
27595 echo "not updating unwritable cache $cache_file"
27600 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27601 # Let make expand exec_prefix.
27602 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27604 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27605 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27606 # trailing colons and then remove the whole line if VPATH becomes empty
27607 # (actually we leave an empty line to preserve line numbers).
27608 if test "x$srcdir" = x.; then
27609 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27610 s/:*\$(srcdir):*/:/;
27611 s/:*\${srcdir}:*/:/;
27613 s/^\([^=]*=[ ]*\):*/\1/;
27619 DEFS=-DHAVE_CONFIG_H
27623 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27624 # 1. Remove the extension, and $U if already installed.
27625 ac_i=`echo "$ac_i" |
27626 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
27628 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
27629 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
27631 LIBOBJS=$ac_libobjs
27633 LTLIBOBJS=$ac_ltlibobjs
27636 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
27637 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
27638 Usually this means the macro was only invoked conditionally." >&5
27639 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
27640 Usually this means the macro was only invoked conditionally." >&2;}
27641 { (exit 1); exit 1; }; }
27643 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
27644 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
27645 Usually this means the macro was only invoked conditionally." >&5
27646 echo "$as_me: error: conditional \"AMDEP\" was never defined.
27647 Usually this means the macro was only invoked conditionally." >&2;}
27648 { (exit 1); exit 1; }; }
27650 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
27651 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
27652 Usually this means the macro was only invoked conditionally." >&5
27653 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
27654 Usually this means the macro was only invoked conditionally." >&2;}
27655 { (exit 1); exit 1; }; }
27657 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27658 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
27659 Usually this means the macro was only invoked conditionally." >&5
27660 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
27661 Usually this means the macro was only invoked conditionally." >&2;}
27662 { (exit 1); exit 1; }; }
27664 if test -z "${ENSC_HAVE_CXX_COMPILER_TRUE}" && test -z "${ENSC_HAVE_CXX_COMPILER_FALSE}"; then
27665 { { echo "$as_me:$LINENO: error: conditional \"ENSC_HAVE_CXX_COMPILER\" was never defined.
27666 Usually this means the macro was only invoked conditionally." >&5
27667 echo "$as_me: error: conditional \"ENSC_HAVE_CXX_COMPILER\" was never defined.
27668 Usually this means the macro was only invoked conditionally." >&2;}
27669 { (exit 1); exit 1; }; }
27671 if test -z "${ENSC_HAVE_C99_COMPILER_TRUE}" && test -z "${ENSC_HAVE_C99_COMPILER_FALSE}"; then
27672 { { echo "$as_me:$LINENO: error: conditional \"ENSC_HAVE_C99_COMPILER\" was never defined.
27673 Usually this means the macro was only invoked conditionally." >&5
27674 echo "$as_me: error: conditional \"ENSC_HAVE_C99_COMPILER\" was never defined.
27675 Usually this means the macro was only invoked conditionally." >&2;}
27676 { (exit 1); exit 1; }; }
27678 if test -z "${HAVE_XSLTP_TRUE}" && test -z "${HAVE_XSLTP_FALSE}"; then
27679 { { echo "$as_me:$LINENO: error: conditional \"HAVE_XSLTP\" was never defined.
27680 Usually this means the macro was only invoked conditionally." >&5
27681 echo "$as_me: error: conditional \"HAVE_XSLTP\" was never defined.
27682 Usually this means the macro was only invoked conditionally." >&2;}
27683 { (exit 1); exit 1; }; }
27685 if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
27686 { { echo "$as_me:$LINENO: error: conditional \"HAVE_XSLTPROC\" was never defined.
27687 Usually this means the macro was only invoked conditionally." >&5
27688 echo "$as_me: error: conditional \"HAVE_XSLTPROC\" was never defined.
27689 Usually this means the macro was only invoked conditionally." >&2;}
27690 { (exit 1); exit 1; }; }
27692 if test -z "${USE_DIETLIBC_TRUE}" && test -z "${USE_DIETLIBC_FALSE}"; then
27693 { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC\" was never defined.
27694 Usually this means the macro was only invoked conditionally." >&5
27695 echo "$as_me: error: conditional \"USE_DIETLIBC\" was never defined.
27696 Usually this means the macro was only invoked conditionally." >&2;}
27697 { (exit 1); exit 1; }; }
27699 if test -z "${USE_DIETLIBC_TRUE}" && test -z "${USE_DIETLIBC_FALSE}"; then
27700 { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC\" was never defined.
27701 Usually this means the macro was only invoked conditionally." >&5
27702 echo "$as_me: error: conditional \"USE_DIETLIBC\" was never defined.
27703 Usually this means the macro was only invoked conditionally." >&2;}
27704 { (exit 1); exit 1; }; }
27706 if test -z "${USE_DIETLIBC_TRUE}" && test -z "${USE_DIETLIBC_FALSE}"; then
27707 { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC\" was never defined.
27708 Usually this means the macro was only invoked conditionally." >&5
27709 echo "$as_me: error: conditional \"USE_DIETLIBC\" was never defined.
27710 Usually this means the macro was only invoked conditionally." >&2;}
27711 { (exit 1); exit 1; }; }
27713 if test -z "${USE_DIETLIBC_TRUE}" && test -z "${USE_DIETLIBC_FALSE}"; then
27714 { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC\" was never defined.
27715 Usually this means the macro was only invoked conditionally." >&5
27716 echo "$as_me: error: conditional \"USE_DIETLIBC\" was never defined.
27717 Usually this means the macro was only invoked conditionally." >&2;}
27718 { (exit 1); exit 1; }; }
27720 if test -z "${USE_DIETLIBC_TRUE}" && test -z "${USE_DIETLIBC_FALSE}"; then
27721 { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC\" was never defined.
27722 Usually this means the macro was only invoked conditionally." >&5
27723 echo "$as_me: error: conditional \"USE_DIETLIBC\" was never defined.
27724 Usually this means the macro was only invoked conditionally." >&2;}
27725 { (exit 1); exit 1; }; }
27727 if test -z "${USE_DIETLIBC_COMPAT_TRUE}" && test -z "${USE_DIETLIBC_COMPAT_FALSE}"; then
27728 { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC_COMPAT\" was never defined.
27729 Usually this means the macro was only invoked conditionally." >&5
27730 echo "$as_me: error: conditional \"USE_DIETLIBC_COMPAT\" was never defined.
27731 Usually this means the macro was only invoked conditionally." >&2;}
27732 { (exit 1); exit 1; }; }
27734 if test -z "${USE_DIETLIBC_COMPAT_TRUE}" && test -z "${USE_DIETLIBC_COMPAT_FALSE}"; then
27735 { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC_COMPAT\" was never defined.
27736 Usually this means the macro was only invoked conditionally." >&5
27737 echo "$as_me: error: conditional \"USE_DIETLIBC_COMPAT\" was never defined.
27738 Usually this means the macro was only invoked conditionally." >&2;}
27739 { (exit 1); exit 1; }; }
27741 if test -z "${ENSC_USE_DIETLIBC_TRUE}" && test -z "${ENSC_USE_DIETLIBC_FALSE}"; then
27742 { { echo "$as_me:$LINENO: error: conditional \"ENSC_USE_DIETLIBC\" was never defined.
27743 Usually this means the macro was only invoked conditionally." >&5
27744 echo "$as_me: error: conditional \"ENSC_USE_DIETLIBC\" was never defined.
27745 Usually this means the macro was only invoked conditionally." >&2;}
27746 { (exit 1); exit 1; }; }
27748 if test -z "${ENSC_USE_GLIBC_TRUE}" && test -z "${ENSC_USE_GLIBC_FALSE}"; then
27749 { { echo "$as_me:$LINENO: error: conditional \"ENSC_USE_GLIBC\" was never defined.
27750 Usually this means the macro was only invoked conditionally." >&5
27751 echo "$as_me: error: conditional \"ENSC_USE_GLIBC\" was never defined.
27752 Usually this means the macro was only invoked conditionally." >&2;}
27753 { (exit 1); exit 1; }; }
27755 if test -z "${HAVE_SVN2CL_TRUE}" && test -z "${HAVE_SVN2CL_FALSE}"; then
27756 { { echo "$as_me:$LINENO: error: conditional \"HAVE_SVN2CL\" was never defined.
27757 Usually this means the macro was only invoked conditionally." >&5
27758 echo "$as_me: error: conditional \"HAVE_SVN2CL\" was never defined.
27759 Usually this means the macro was only invoked conditionally." >&2;}
27760 { (exit 1); exit 1; }; }
27762 if test -z "${ENSC_ENABLE_INTERNAL_HEADERS_TRUE}" && test -z "${ENSC_ENABLE_INTERNAL_HEADERS_FALSE}"; then
27763 { { echo "$as_me:$LINENO: error: conditional \"ENSC_ENABLE_INTERNAL_HEADERS\" was never defined.
27764 Usually this means the macro was only invoked conditionally." >&5
27765 echo "$as_me: error: conditional \"ENSC_ENABLE_INTERNAL_HEADERS\" was never defined.
27766 Usually this means the macro was only invoked conditionally." >&2;}
27767 { (exit 1); exit 1; }; }
27769 if test -z "${ENSC_HAVE_BEECRYPT_TRUE}" && test -z "${ENSC_HAVE_BEECRYPT_FALSE}"; then
27770 { { echo "$as_me:$LINENO: error: conditional \"ENSC_HAVE_BEECRYPT\" was never defined.
27771 Usually this means the macro was only invoked conditionally." >&5
27772 echo "$as_me: error: conditional \"ENSC_HAVE_BEECRYPT\" was never defined.
27773 Usually this means the macro was only invoked conditionally." >&2;}
27774 { (exit 1); exit 1; }; }
27776 if test -z "${ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE}" && test -z "${ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE}"; then
27777 { { echo "$as_me:$LINENO: error: conditional \"ENSC_CAN_BEECRYPT_WITH_DIETLIBC\" was never defined.
27778 Usually this means the macro was only invoked conditionally." >&5
27779 echo "$as_me: error: conditional \"ENSC_CAN_BEECRYPT_WITH_DIETLIBC\" was never defined.
27780 Usually this means the macro was only invoked conditionally." >&2;}
27781 { (exit 1); exit 1; }; }
27783 if test -z "${HAVE_GENTOO_INIT_TRUE}" && test -z "${HAVE_GENTOO_INIT_FALSE}"; then
27784 { { echo "$as_me:$LINENO: error: conditional \"HAVE_GENTOO_INIT\" was never defined.
27785 Usually this means the macro was only invoked conditionally." >&5
27786 echo "$as_me: error: conditional \"HAVE_GENTOO_INIT\" was never defined.
27787 Usually this means the macro was only invoked conditionally." >&2;}
27788 { (exit 1); exit 1; }; }
27790 if test -z "${HAVE_SYSV_INIT_TRUE}" && test -z "${HAVE_SYSV_INIT_FALSE}"; then
27791 { { echo "$as_me:$LINENO: error: conditional \"HAVE_SYSV_INIT\" was never defined.
27792 Usually this means the macro was only invoked conditionally." >&5
27793 echo "$as_me: error: conditional \"HAVE_SYSV_INIT\" was never defined.
27794 Usually this means the macro was only invoked conditionally." >&2;}
27795 { (exit 1); exit 1; }; }
27800 CC: $CC, $($CC --version | sed -e '1p;d')
27801 CXX: $CXX, $($CXX --version | sed -e '1p;d')
27802 CPPFLAGS: '$CPPFLAGS'
27804 CXXFLAGS: '$CXXFLAGS'
27805 build/host: $build/$host
27806 Use dietlibc: $ensc_have_dietlibc$ensc_diet_version_msg$ensc_diet_msg$ensc_diet_compat_msg
27807 Build C++ programs: $ensc_cv_cxx_cxxcompiler$ensc_cxx_affected
27808 Build C99 programs: $ensc_cv_c99_c99compiler$ensc_c99_affected
27809 Available APIs: $enable_apis
27810 ext2fs Source: $ensc_cv_test_ext2fs_header
27811 syscall(2) invocation: $with_syscall
27812 vserver(2) syscall#: $ensc_cv_value_syscall_vserver
27816 sysconf-Directory: $sysconfdir
27817 cfg-Directory: $sysconfdir/vservers
27818 initrd-Directory: $initrddir
27819 pkgstate-Directory: $localstatedir/run/vservers
27820 vserver-Rootdir: $vserverdir
27822 echo "$FEATURES_TXT" >FEATURES.txt
27825 : ${CONFIG_STATUS=./config.status}
27826 ac_clean_files_save=$ac_clean_files
27827 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27828 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
27829 echo "$as_me: creating $CONFIG_STATUS" >&6;}
27830 cat >$CONFIG_STATUS <<_ACEOF
27832 # Generated by $as_me.
27833 # Run this file to recreate the current configuration.
27834 # Compiler output produced by configure, useful for debugging
27835 # configure, is in config.log if it exists.
27838 ac_cs_recheck=false
27840 SHELL=\${CONFIG_SHELL-$SHELL}
27843 cat >>$CONFIG_STATUS <<\_ACEOF
27844 ## --------------------- ##
27845 ## M4sh Initialization. ##
27846 ## --------------------- ##
27848 # Be Bourne compatible
27849 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27852 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
27853 # is contrary to our usage. Disable this feature.
27854 alias -g '${1+"$@"}'='"$@"'
27855 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
27858 DUALCASE=1; export DUALCASE # for MKS sh
27860 # Support unset when possible.
27861 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27868 # Work around bugs in pre-3.0 UWIN ksh.
27869 $as_unset ENV MAIL MAILPATH
27876 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
27877 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
27878 LC_TELEPHONE LC_TIME
27880 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
27881 eval $as_var=C; export $as_var
27887 # Required to use basename.
27888 if expr a : '\(a\)' >/dev/null 2>&1; then
27894 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
27895 as_basename=basename
27901 # Name of the executable.
27902 as_me=`$as_basename "$0" ||
27903 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27904 X"$0" : 'X\(//\)$' \| \
27905 X"$0" : 'X\(/\)$' \| \
27906 . : '\(.\)' 2>/dev/null ||
27908 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
27909 /^X\/\(\/\/\)$/{ s//\1/; q; }
27910 /^X\/\(\/\).*/{ s//\1/; q; }
27914 # PATH needs CR, and LINENO needs CR and PATH.
27915 # Avoid depending upon Character Ranges.
27916 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27917 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27918 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27919 as_cr_digits='0123456789'
27920 as_cr_alnum=$as_cr_Letters$as_cr_digits
27922 # The user is always right.
27923 if test "${PATH_SEPARATOR+set}" != set; then
27924 echo "#! /bin/sh" >conf$$.sh
27925 echo "exit 0" >>conf$$.sh
27927 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
27936 as_lineno_1=$LINENO
27937 as_lineno_2=$LINENO
27938 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
27939 test "x$as_lineno_1" != "x$as_lineno_2" &&
27940 test "x$as_lineno_3" = "x$as_lineno_2" || {
27941 # Find who we are. Look in the path if we contain no path at all
27944 *[\\/]* ) as_myself=$0 ;;
27945 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27946 for as_dir in $PATH
27949 test -z "$as_dir" && as_dir=.
27950 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27955 # We did not find ourselves, most probably we were run as `sh COMMAND'
27956 # in which case we are not to be found in the path.
27957 if test "x$as_myself" = x; then
27960 if test ! -f "$as_myself"; then
27961 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
27962 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
27963 { (exit 1); exit 1; }; }
27965 case $CONFIG_SHELL in
27967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27968 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
27971 test -z "$as_dir" && as_dir=.
27972 for as_base in sh bash ksh sh5; do
27975 if ("$as_dir/$as_base" -c '
27976 as_lineno_1=$LINENO
27977 as_lineno_2=$LINENO
27978 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
27979 test "x$as_lineno_1" != "x$as_lineno_2" &&
27980 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
27981 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
27982 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
27983 CONFIG_SHELL=$as_dir/$as_base
27984 export CONFIG_SHELL
27985 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
27993 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27994 # uniformly replaced by the line number. The first 'sed' inserts a
27995 # line-number line before each line; the second 'sed' does the real
27996 # work. The second script uses 'N' to pair each line-number line
27997 # with the numbered line, and appends trailing '-' during
27998 # substitution so that $LINENO is not a special case at line end.
27999 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
28000 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
28001 sed '=' <$as_myself |
28006 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
28009 s,^['$as_cr_digits']*\n,,
28010 ' >$as_me.lineno &&
28011 chmod +x $as_me.lineno ||
28012 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
28013 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
28014 { (exit 1); exit 1; }; }
28016 # Don't try to exec as it changes $[0], causing all sort of problems
28017 # (the dirname of $[0] is not the place where we might find the
28018 # original and so on. Autoconf is especially sensible to this).
28020 # Exit status is that of the last command.
28025 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
28026 *c*,-n*) ECHO_N= ECHO_C='
28028 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
28029 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
28032 if expr a : '\(a\)' >/dev/null 2>&1; then
28038 rm -f conf$$ conf$$.exe conf$$.file
28040 if ln -s conf$$.file conf$$ 2>/dev/null; then
28041 # We could just check for DJGPP; but this test a) works b) is more generic
28042 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
28043 if test -f conf$$.exe; then
28044 # Don't use ln at all; we don't have any links
28049 elif ln conf$$.file conf$$ 2>/dev/null; then
28054 rm -f conf$$ conf$$.exe conf$$.file
28056 if mkdir -p . 2>/dev/null; then
28059 test -d ./-p && rmdir ./-p
28063 as_executable_p="test -f"
28065 # Sed expression to map a string onto a valid CPP name.
28066 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28068 # Sed expression to map a string onto a valid variable name.
28069 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28073 # We need space, tab and new line, in precisely that order.
28083 # Open the log real soon, to keep \$[0] and so on meaningful, and to
28084 # report actual input values of CONFIG_FILES etc. instead of their
28085 # values after options handling. Logging --version etc. is OK.
28089 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28090 ## Running $as_me. ##
28095 This file was extended by util-vserver $as_me 0.30.213, which was
28096 generated by GNU Autoconf 2.59. Invocation command line was
28098 CONFIG_FILES = $CONFIG_FILES
28099 CONFIG_HEADERS = $CONFIG_HEADERS
28100 CONFIG_LINKS = $CONFIG_LINKS
28101 CONFIG_COMMANDS = $CONFIG_COMMANDS
28105 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
28109 # Files that config.status was made for.
28110 if test -n "$ac_config_files"; then
28111 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
28114 if test -n "$ac_config_headers"; then
28115 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
28118 if test -n "$ac_config_links"; then
28119 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
28122 if test -n "$ac_config_commands"; then
28123 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
28126 cat >>$CONFIG_STATUS <<\_ACEOF
28129 \`$as_me' instantiates files from templates according to the
28130 current configuration.
28132 Usage: $0 [OPTIONS] [FILE]...
28134 -h, --help print this help, then exit
28135 -V, --version print version number, then exit
28136 -q, --quiet do not print progress messages
28137 -d, --debug don't remove temporary files
28138 --recheck update $as_me by reconfiguring in the same conditions
28139 --file=FILE[:TEMPLATE]
28140 instantiate the configuration file FILE
28141 --header=FILE[:TEMPLATE]
28142 instantiate the configuration header FILE
28144 Configuration files:
28147 Configuration headers:
28150 Configuration commands:
28153 Report bugs to <bug-autoconf@gnu.org>."
28156 cat >>$CONFIG_STATUS <<_ACEOF
28158 util-vserver config.status 0.30.213
28159 configured by $0, generated by GNU Autoconf 2.59,
28160 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
28162 Copyright (C) 2003 Free Software Foundation, Inc.
28163 This config.status script is free software; the Free Software Foundation
28164 gives unlimited permission to copy, distribute and modify it."
28169 cat >>$CONFIG_STATUS <<\_ACEOF
28170 # If no file are specified by the user, then we need to provide default
28171 # value. By we need to know if files were specified by the user.
28177 ac_option=`expr "x$1" : 'x\([^=]*\)='`
28178 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
28186 *) # This is not an option, so the user has probably given explicit
28189 ac_need_defaults=false;;
28193 # Handling of the options.
28195 cat >>$CONFIG_STATUS <<\_ACEOF
28196 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28198 --version | --vers* | -V )
28199 echo "$ac_cs_version"; exit 0 ;;
28201 # Conflict between --help and --header
28202 { { echo "$as_me:$LINENO: error: ambiguous option: $1
28203 Try \`$0 --help' for more information." >&5
28204 echo "$as_me: error: ambiguous option: $1
28205 Try \`$0 --help' for more information." >&2;}
28206 { (exit 1); exit 1; }; };;
28207 --help | --hel | -h )
28208 echo "$ac_cs_usage"; exit 0 ;;
28209 --debug | --d* | -d )
28211 --file | --fil | --fi | --f )
28213 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
28214 ac_need_defaults=false;;
28215 --header | --heade | --head | --hea )
28217 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
28218 ac_need_defaults=false;;
28219 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28220 | -silent | --silent | --silen | --sile | --sil | --si | --s)
28223 # This is an error.
28224 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
28225 Try \`$0 --help' for more information." >&5
28226 echo "$as_me: error: unrecognized option: $1
28227 Try \`$0 --help' for more information." >&2;}
28228 { (exit 1); exit 1; }; } ;;
28230 *) ac_config_targets="$ac_config_targets $1" ;;
28236 ac_configure_extra_args=
28238 if $ac_cs_silent; then
28240 ac_configure_extra_args="$ac_configure_extra_args --silent"
28244 cat >>$CONFIG_STATUS <<_ACEOF
28245 if \$ac_cs_recheck; then
28246 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
28247 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28252 cat >>$CONFIG_STATUS <<_ACEOF
28254 # INIT-COMMANDS section.
28257 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
28263 cat >>$CONFIG_STATUS <<\_ACEOF
28264 for ac_config_target in $ac_config_targets
28266 case "$ac_config_target" in
28267 # Handling of arguments.
28268 "util-vserver.spec" ) CONFIG_FILES="$CONFIG_FILES util-vserver.spec" ;;
28269 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
28270 "distrib/Makefile" ) CONFIG_FILES="$CONFIG_FILES distrib/Makefile" ;;
28271 "lib/apidoc/Doxyfile" ) CONFIG_FILES="$CONFIG_FILES lib/apidoc/Doxyfile" ;;
28272 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
28273 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
28274 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
28275 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
28276 { (exit 1); exit 1; }; };;
28280 # If the user did not use the arguments to specify the items to instantiate,
28281 # then the envvar interface is used. Set only those that are not.
28282 # We use the long form for the default assignment because of an extremely
28283 # bizarre bug on SunOS 4.1.3.
28284 if $ac_need_defaults; then
28285 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28286 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28287 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28290 # Have a temporary directory for convenience. Make it in the build tree
28291 # simply because there is no reason to put it here, and in addition,
28292 # creating and moving files from /tmp can sometimes cause problems.
28293 # Create a temporary directory, and hook for its removal unless debugging.
28296 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
28297 trap '{ (exit 1); exit 1; }' 1 2 13 15
28300 # Create a (secure) tmp directory for tmp files.
28303 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
28304 test -n "$tmp" && test -d "$tmp"
28307 tmp=./confstat$$-$RANDOM
28308 (umask 077 && mkdir $tmp)
28311 echo "$me: cannot create a temporary directory in ." >&2
28312 { (exit 1); exit 1; }
28317 cat >>$CONFIG_STATUS <<_ACEOF
28320 # CONFIG_FILES section.
28323 # No need to generate the scripts if there are no CONFIG_FILES.
28324 # This happens for instance when ./config.status config.h
28325 if test -n "\$CONFIG_FILES"; then
28326 # Protect against being on the right side of a sed subst in config.status.
28327 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
28328 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
28329 s,@SHELL@,$SHELL,;t t
28330 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
28331 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
28332 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
28333 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
28334 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
28335 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
28336 s,@exec_prefix@,$exec_prefix,;t t
28337 s,@prefix@,$prefix,;t t
28338 s,@program_transform_name@,$program_transform_name,;t t
28339 s,@bindir@,$bindir,;t t
28340 s,@sbindir@,$sbindir,;t t
28341 s,@libexecdir@,$libexecdir,;t t
28342 s,@datadir@,$datadir,;t t
28343 s,@sysconfdir@,$sysconfdir,;t t
28344 s,@sharedstatedir@,$sharedstatedir,;t t
28345 s,@localstatedir@,$localstatedir,;t t
28346 s,@libdir@,$libdir,;t t
28347 s,@includedir@,$includedir,;t t
28348 s,@oldincludedir@,$oldincludedir,;t t
28349 s,@infodir@,$infodir,;t t
28350 s,@mandir@,$mandir,;t t
28351 s,@build_alias@,$build_alias,;t t
28352 s,@host_alias@,$host_alias,;t t
28353 s,@target_alias@,$target_alias,;t t
28354 s,@DEFS@,$DEFS,;t t
28355 s,@ECHO_C@,$ECHO_C,;t t
28356 s,@ECHO_N@,$ECHO_N,;t t
28357 s,@ECHO_T@,$ECHO_T,;t t
28358 s,@LIBS@,$LIBS,;t t
28359 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
28360 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
28361 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
28362 s,@CYGPATH_W@,$CYGPATH_W,;t t
28363 s,@PACKAGE@,$PACKAGE,;t t
28364 s,@VERSION@,$VERSION,;t t
28365 s,@ACLOCAL@,$ACLOCAL,;t t
28366 s,@AUTOCONF@,$AUTOCONF,;t t
28367 s,@AUTOMAKE@,$AUTOMAKE,;t t
28368 s,@AUTOHEADER@,$AUTOHEADER,;t t
28369 s,@MAKEINFO@,$MAKEINFO,;t t
28370 s,@install_sh@,$install_sh,;t t
28371 s,@STRIP@,$STRIP,;t t
28372 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
28373 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
28374 s,@mkdir_p@,$mkdir_p,;t t
28376 s,@SET_MAKE@,$SET_MAKE,;t t
28377 s,@am__leading_dot@,$am__leading_dot,;t t
28378 s,@AMTAR@,$AMTAR,;t t
28379 s,@am__tar@,$am__tar,;t t
28380 s,@am__untar@,$am__untar,;t t
28381 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
28382 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
28383 s,@MAINT@,$MAINT,;t t
28384 s,@build@,$build,;t t
28385 s,@build_cpu@,$build_cpu,;t t
28386 s,@build_vendor@,$build_vendor,;t t
28387 s,@build_os@,$build_os,;t t
28388 s,@host@,$host,;t t
28389 s,@host_cpu@,$host_cpu,;t t
28390 s,@host_vendor@,$host_vendor,;t t
28391 s,@host_os@,$host_os,;t t
28392 s,@GPG_KEY@,$GPG_KEY,;t t
28394 s,@CXXFLAGS@,$CXXFLAGS,;t t
28395 s,@LDFLAGS@,$LDFLAGS,;t t
28396 s,@CPPFLAGS@,$CPPFLAGS,;t t
28397 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
28398 s,@EXEEXT@,$EXEEXT,;t t
28399 s,@OBJEXT@,$OBJEXT,;t t
28400 s,@DEPDIR@,$DEPDIR,;t t
28401 s,@am__include@,$am__include,;t t
28402 s,@am__quote@,$am__quote,;t t
28403 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
28404 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
28405 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
28406 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
28407 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
28408 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
28410 s,@CFLAGS@,$CFLAGS,;t t
28411 s,@ac_ct_CC@,$ac_ct_CC,;t t
28412 s,@CCDEPMODE@,$CCDEPMODE,;t t
28413 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
28414 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
28415 s,@LN_S@,$LN_S,;t t
28416 s,@ENSC_HAVE_CXX_COMPILER_TRUE@,$ENSC_HAVE_CXX_COMPILER_TRUE,;t t
28417 s,@ENSC_HAVE_CXX_COMPILER_FALSE@,$ENSC_HAVE_CXX_COMPILER_FALSE,;t t
28418 s,@ENSC_HAVE_C99_COMPILER_TRUE@,$ENSC_HAVE_C99_COMPILER_TRUE,;t t
28419 s,@ENSC_HAVE_C99_COMPILER_FALSE@,$ENSC_HAVE_C99_COMPILER_FALSE,;t t
28420 s,@ENSC_PATHPROG_SED@,$ENSC_PATHPROG_SED,;t t
28422 s,@CHOWN@,$CHOWN,;t t
28425 s,@DIRNAME@,$DIRNAME,;t t
28426 s,@EGREP@,$EGREP,;t t
28428 s,@GREP@,$GREP,;t t
28430 s,@MKDIR@,$MKDIR,;t t
28431 s,@MKFIFO@,$MKFIFO,;t t
28432 s,@MKTEMP@,$MKTEMP,;t t
28433 s,@MOUNT@,$MOUNT,;t t
28435 s,@NICE@,$NICE,;t t
28438 s,@RMDIR@,$RMDIR,;t t
28443 s,@TOUCH@,$TOUCH,;t t
28445 s,@UMOUNT@,$UMOUNT,;t t
28448 s,@IPTABLES@,$IPTABLES,;t t
28449 s,@MODPROBE@,$MODPROBE,;t t
28450 s,@NAMEIF@,$NAMEIF,;t t
28451 s,@NOHUP@,$NOHUP,;t t
28452 s,@RMMOD@,$RMMOD,;t t
28453 s,@VCONFIG@,$VCONFIG,;t t
28454 s,@WGET@,$WGET,;t t
28455 s,@FILE@,$FILE,;t t
28456 s,@GZIP@,$GZIP,;t t
28457 s,@BZIP2@,$BZIP2,;t t
28458 s,@CPIO@,$CPIO,;t t
28459 s,@RESTORE@,$RESTORE,;t t
28460 s,@RSYNC@,$RSYNC,;t t
28461 s,@DOXYGEN@,$DOXYGEN,;t t
28462 s,@XSLTP@,$XSLTP,;t t
28463 s,@XSLTPROC@,$XSLTPROC,;t t
28464 s,@HAVE_XSLTP_TRUE@,$HAVE_XSLTP_TRUE,;t t
28465 s,@HAVE_XSLTP_FALSE@,$HAVE_XSLTP_FALSE,;t t
28466 s,@HAVE_XSLTPROC_TRUE@,$HAVE_XSLTPROC_TRUE,;t t
28467 s,@HAVE_XSLTPROC_FALSE@,$HAVE_XSLTPROC_FALSE,;t t
28468 s,@LIB_DEBUG_CPPFLAGS@,$LIB_DEBUG_CPPFLAGS,;t t
28469 s,@ENSC_USE_EXPENSIVE_TESTS@,$ENSC_USE_EXPENSIVE_TESTS,;t t
28470 s,@initrddir@,$initrddir,;t t
28471 s,@RELEASE_CPPFLAGS@,$RELEASE_CPPFLAGS,;t t
28473 s,@DIET@,$DIET,;t t
28474 s,@DIETFLAGS@,$DIETFLAGS,;t t
28475 s,@USE_DIETLIBC_TRUE@,$USE_DIETLIBC_TRUE,;t t
28476 s,@USE_DIETLIBC_FALSE@,$USE_DIETLIBC_FALSE,;t t
28477 s,@USE_DIETLIBC_COMPAT_TRUE@,$USE_DIETLIBC_COMPAT_TRUE,;t t
28478 s,@USE_DIETLIBC_COMPAT_FALSE@,$USE_DIETLIBC_COMPAT_FALSE,;t t
28479 s,@ENSC_USE_DIETLIBC_TRUE@,$ENSC_USE_DIETLIBC_TRUE,;t t
28480 s,@ENSC_USE_DIETLIBC_FALSE@,$ENSC_USE_DIETLIBC_FALSE,;t t
28481 s,@ENSC_USE_GLIBC_TRUE@,$ENSC_USE_GLIBC_TRUE,;t t
28482 s,@ENSC_USE_GLIBC_FALSE@,$ENSC_USE_GLIBC_FALSE,;t t
28483 s,@ECHO@,$ECHO,;t t
28485 s,@ac_ct_AR@,$ac_ct_AR,;t t
28486 s,@RANLIB@,$RANLIB,;t t
28487 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
28488 s,@CXXCPP@,$CXXCPP,;t t
28490 s,@FFLAGS@,$FFLAGS,;t t
28491 s,@ac_ct_F77@,$ac_ct_F77,;t t
28492 s,@LIBTOOL@,$LIBTOOL,;t t
28493 s,@vserverdir@,$vserverdir,;t t
28494 s,@SVN2CL@,$SVN2CL,;t t
28495 s,@HAVE_SVN2CL_TRUE@,$HAVE_SVN2CL_TRUE,;t t
28496 s,@HAVE_SVN2CL_FALSE@,$HAVE_SVN2CL_FALSE,;t t
28497 s,@ENSC_ENABLE_INTERNAL_HEADERS_TRUE@,$ENSC_ENABLE_INTERNAL_HEADERS_TRUE,;t t
28498 s,@ENSC_ENABLE_INTERNAL_HEADERS_FALSE@,$ENSC_ENABLE_INTERNAL_HEADERS_FALSE,;t t
28499 s,@ENSC_HAVE_BEECRYPT_TRUE@,$ENSC_HAVE_BEECRYPT_TRUE,;t t
28500 s,@ENSC_HAVE_BEECRYPT_FALSE@,$ENSC_HAVE_BEECRYPT_FALSE,;t t
28501 s,@ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE@,$ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE,;t t
28502 s,@ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE@,$ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE,;t t
28503 s,@HAVE_GENTOO_INIT_TRUE@,$HAVE_GENTOO_INIT_TRUE,;t t
28504 s,@HAVE_GENTOO_INIT_FALSE@,$HAVE_GENTOO_INIT_FALSE,;t t
28505 s,@HAVE_SYSV_INIT_TRUE@,$HAVE_SYSV_INIT_TRUE,;t t
28506 s,@HAVE_SYSV_INIT_FALSE@,$HAVE_SYSV_INIT_FALSE,;t t
28507 s,@LIBOBJS@,$LIBOBJS,;t t
28508 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
28513 cat >>$CONFIG_STATUS <<\_ACEOF
28514 # Split the substitutions into bite-sized pieces for seds with
28515 # small command number limits, like on Digital OSF/1 and HP-UX.
28516 ac_max_sed_lines=48
28517 ac_sed_frag=1 # Number of current file.
28518 ac_beg=1 # First line for current file.
28519 ac_end=$ac_max_sed_lines # Line after last line for current file.
28522 while $ac_more_lines; do
28523 if test $ac_beg -gt 1; then
28524 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
28526 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
28528 if test ! -s $tmp/subs.frag; then
28529 ac_more_lines=false
28531 # The purpose of the label and of the branching condition is to
28532 # speed up the sed processing (if there are no `@' at all, there
28533 # is no need to browse any of the substitutions).
28534 # These are the two extra sed commands mentioned above.
28536 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
28537 if test -z "$ac_sed_cmds"; then
28538 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
28540 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
28542 ac_sed_frag=`expr $ac_sed_frag + 1`
28544 ac_end=`expr $ac_end + $ac_max_sed_lines`
28547 if test -z "$ac_sed_cmds"; then
28550 fi # test -n "$CONFIG_FILES"
28553 cat >>$CONFIG_STATUS <<\_ACEOF
28554 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
28555 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
28557 - | *:- | *:-:* ) # input from stdin
28559 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
28560 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
28561 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
28562 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
28563 * ) ac_file_in=$ac_file.in ;;
28566 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
28567 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
28568 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28569 X"$ac_file" : 'X\(//\)[^/]' \| \
28570 X"$ac_file" : 'X\(//\)$' \| \
28571 X"$ac_file" : 'X\(/\)' \| \
28572 . : '\(.\)' 2>/dev/null ||
28574 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28575 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28576 /^X\(\/\/\)$/{ s//\1/; q; }
28577 /^X\(\/\).*/{ s//\1/; q; }
28579 { if $as_mkdir_p; then
28584 while test ! -d "$as_dir"; do
28585 as_dirs="$as_dir $as_dirs"
28586 as_dir=`(dirname "$as_dir") 2>/dev/null ||
28587 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28588 X"$as_dir" : 'X\(//\)[^/]' \| \
28589 X"$as_dir" : 'X\(//\)$' \| \
28590 X"$as_dir" : 'X\(/\)' \| \
28591 . : '\(.\)' 2>/dev/null ||
28593 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28594 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28595 /^X\(\/\/\)$/{ s//\1/; q; }
28596 /^X\(\/\).*/{ s//\1/; q; }
28599 test ! -n "$as_dirs" || mkdir $as_dirs
28600 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
28601 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
28602 { (exit 1); exit 1; }; }; }
28606 if test "$ac_dir" != .; then
28607 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28608 # A "../" for each directory in $ac_dir_suffix.
28609 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
28611 ac_dir_suffix= ac_top_builddir=
28615 .) # No --srcdir option. We are building in place.
28617 if test -z "$ac_top_builddir"; then
28620 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
28622 [\\/]* | ?:[\\/]* ) # Absolute path.
28623 ac_srcdir=$srcdir$ac_dir_suffix;
28624 ac_top_srcdir=$srcdir ;;
28625 *) # Relative path.
28626 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
28627 ac_top_srcdir=$ac_top_builddir$srcdir ;;
28630 # Do not use `cd foo && pwd` to compute absolute paths, because
28631 # the directories may not exist.
28633 .) ac_abs_builddir="$ac_dir";;
28636 .) ac_abs_builddir=`pwd`;;
28637 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
28638 *) ac_abs_builddir=`pwd`/"$ac_dir";;
28641 case $ac_abs_builddir in
28642 .) ac_abs_top_builddir=${ac_top_builddir}.;;
28644 case ${ac_top_builddir}. in
28645 .) ac_abs_top_builddir=$ac_abs_builddir;;
28646 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
28647 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
28650 case $ac_abs_builddir in
28651 .) ac_abs_srcdir=$ac_srcdir;;
28654 .) ac_abs_srcdir=$ac_abs_builddir;;
28655 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
28656 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
28659 case $ac_abs_builddir in
28660 .) ac_abs_top_srcdir=$ac_top_srcdir;;
28662 case $ac_top_srcdir in
28663 .) ac_abs_top_srcdir=$ac_abs_builddir;;
28664 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
28665 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
28671 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28672 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
28675 if test x"$ac_file" != x-; then
28676 { echo "$as_me:$LINENO: creating $ac_file" >&5
28677 echo "$as_me: creating $ac_file" >&6;}
28680 # Let's still pretend it is `configure' which instantiates (i.e., don't
28681 # use $as_me), people would be surprised to read:
28682 # /* config.h. Generated by config.status. */
28683 if test x"$ac_file" = x-; then
28686 configure_input="$ac_file. "
28688 configure_input=$configure_input"Generated from `echo $ac_file_in |
28689 sed 's,.*/,,'` by configure."
28691 # First look for the input files in the build tree, otherwise in the
28693 ac_file_inputs=`IFS=:
28694 for f in $ac_file_in; do
28696 -) echo $tmp/stdin ;;
28698 # Absolute (can't be DOS-style, as IFS=:)
28699 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
28700 echo "$as_me: error: cannot find input file: $f" >&2;}
28701 { (exit 1); exit 1; }; }
28704 if test -f "$f"; then
28707 elif test -f "$srcdir/$f"; then
28712 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
28713 echo "$as_me: error: cannot find input file: $f" >&2;}
28714 { (exit 1); exit 1; }; }
28717 done` || { (exit 1); exit 1; }
28719 cat >>$CONFIG_STATUS <<_ACEOF
28723 cat >>$CONFIG_STATUS <<\_ACEOF
28725 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28726 s,@configure_input@,$configure_input,;t t
28727 s,@srcdir@,$ac_srcdir,;t t
28728 s,@abs_srcdir@,$ac_abs_srcdir,;t t
28729 s,@top_srcdir@,$ac_top_srcdir,;t t
28730 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
28731 s,@builddir@,$ac_builddir,;t t
28732 s,@abs_builddir@,$ac_abs_builddir,;t t
28733 s,@top_builddir@,$ac_top_builddir,;t t
28734 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
28735 s,@INSTALL@,$ac_INSTALL,;t t
28736 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
28738 if test x"$ac_file" != x-; then
28739 mv $tmp/out $ac_file
28747 cat >>$CONFIG_STATUS <<\_ACEOF
28750 # CONFIG_HEADER section.
28753 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
28754 # NAME is the cpp macro being defined and VALUE is the value it is being given.
28756 # ac_d sets the value in "#define NAME VALUE" lines.
28757 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
28758 ac_dB='[ ].*$,\1#\2'
28761 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
28762 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
28763 ac_uB='$,\1#\2define\3'
28767 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
28768 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
28770 - | *:- | *:-:* ) # input from stdin
28772 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
28773 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
28774 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
28775 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
28776 * ) ac_file_in=$ac_file.in ;;
28779 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
28780 echo "$as_me: creating $ac_file" >&6;}
28782 # First look for the input files in the build tree, otherwise in the
28784 ac_file_inputs=`IFS=:
28785 for f in $ac_file_in; do
28787 -) echo $tmp/stdin ;;
28789 # Absolute (can't be DOS-style, as IFS=:)
28790 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
28791 echo "$as_me: error: cannot find input file: $f" >&2;}
28792 { (exit 1); exit 1; }; }
28793 # Do quote $f, to prevent DOS paths from being IFS'd.
28796 if test -f "$f"; then
28799 elif test -f "$srcdir/$f"; then
28804 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
28805 echo "$as_me: error: cannot find input file: $f" >&2;}
28806 { (exit 1); exit 1; }; }
28809 done` || { (exit 1); exit 1; }
28810 # Remove the trailing spaces.
28811 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
28815 # Transform confdefs.h into two sed scripts, `conftest.defines' and
28816 # `conftest.undefs', that substitutes the proper values into
28817 # config.h.in to produce config.h. The first handles `#define'
28818 # templates, and the second `#undef' templates.
28819 # And first: Protect against being on the right side of a sed subst in
28820 # config.status. Protect against being in an unquoted here document
28821 # in config.status.
28822 rm -f conftest.defines conftest.undefs
28823 # Using a here document instead of a string reduces the quoting nightmare.
28824 # Putting comments in sed scripts is not portable.
28826 # `end' is used to avoid that the second main sed command (meant for
28827 # 0-ary CPP macros) applies to n-ary macro definitions.
28828 # See the Autoconf documentation for `clear'.
28829 cat >confdef2sed.sed <<\_ACEOF
28834 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
28836 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
28839 # If some macros were called several times there might be several times
28840 # the same #defines, which is useless. Nevertheless, we may not want to
28841 # sort them, since we want the *last* AC-DEFINE to be honored.
28842 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
28843 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
28844 rm -f confdef2sed.sed
28846 # This sed command replaces #undef with comments. This is necessary, for
28847 # example, in the case of _POSIX_SOURCE, which is predefined and required
28848 # on some systems where configure will not decide to define it.
28849 cat >>conftest.undefs <<\_ACEOF
28850 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
28853 # Break up conftest.defines because some shells have a limit on the size
28854 # of here documents, and old seds have small limits too (100 cmds).
28855 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
28856 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
28857 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
28858 echo ' :' >>$CONFIG_STATUS
28859 rm -f conftest.tail
28860 while grep . conftest.defines >/dev/null
28862 # Write a limited-size here document to $tmp/defines.sed.
28863 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
28864 # Speed up: don't consider the non `#define' lines.
28865 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
28866 # Work around the forget-to-reset-the-flag bug.
28867 echo 't clr' >>$CONFIG_STATUS
28868 echo ': clr' >>$CONFIG_STATUS
28869 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
28871 sed -f $tmp/defines.sed $tmp/in >$tmp/out
28873 mv $tmp/out $tmp/in
28875 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
28876 rm -f conftest.defines
28877 mv conftest.tail conftest.defines
28879 rm -f conftest.defines
28880 echo ' fi # grep' >>$CONFIG_STATUS
28881 echo >>$CONFIG_STATUS
28883 # Break up conftest.undefs because some shells have a limit on the size
28884 # of here documents, and old seds have small limits too (100 cmds).
28885 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
28886 rm -f conftest.tail
28887 while grep . conftest.undefs >/dev/null
28889 # Write a limited-size here document to $tmp/undefs.sed.
28890 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
28891 # Speed up: don't consider the non `#undef'
28892 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
28893 # Work around the forget-to-reset-the-flag bug.
28894 echo 't clr' >>$CONFIG_STATUS
28895 echo ': clr' >>$CONFIG_STATUS
28896 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
28898 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
28900 mv $tmp/out $tmp/in
28902 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
28903 rm -f conftest.undefs
28904 mv conftest.tail conftest.undefs
28906 rm -f conftest.undefs
28908 cat >>$CONFIG_STATUS <<\_ACEOF
28909 # Let's still pretend it is `configure' which instantiates (i.e., don't
28910 # use $as_me), people would be surprised to read:
28911 # /* config.h. Generated by config.status. */
28912 if test x"$ac_file" = x-; then
28913 echo "/* Generated by configure. */" >$tmp/config.h
28915 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
28917 cat $tmp/in >>$tmp/config.h
28919 if test x"$ac_file" != x-; then
28920 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
28921 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
28922 echo "$as_me: $ac_file is unchanged" >&6;}
28924 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
28925 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28926 X"$ac_file" : 'X\(//\)[^/]' \| \
28927 X"$ac_file" : 'X\(//\)$' \| \
28928 X"$ac_file" : 'X\(/\)' \| \
28929 . : '\(.\)' 2>/dev/null ||
28931 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28932 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28933 /^X\(\/\/\)$/{ s//\1/; q; }
28934 /^X\(\/\).*/{ s//\1/; q; }
28936 { if $as_mkdir_p; then
28941 while test ! -d "$as_dir"; do
28942 as_dirs="$as_dir $as_dirs"
28943 as_dir=`(dirname "$as_dir") 2>/dev/null ||
28944 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28945 X"$as_dir" : 'X\(//\)[^/]' \| \
28946 X"$as_dir" : 'X\(//\)$' \| \
28947 X"$as_dir" : 'X\(/\)' \| \
28948 . : '\(.\)' 2>/dev/null ||
28950 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28951 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28952 /^X\(\/\/\)$/{ s//\1/; q; }
28953 /^X\(\/\).*/{ s//\1/; q; }
28956 test ! -n "$as_dirs" || mkdir $as_dirs
28957 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
28958 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
28959 { (exit 1); exit 1; }; }; }
28962 mv $tmp/config.h $ac_file
28966 rm -f $tmp/config.h
28968 # Compute $ac_file's index in $config_headers.
28970 for _am_header in $config_headers :; do
28971 case $_am_header in
28972 $ac_file | $ac_file:* )
28975 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28978 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
28979 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28980 X$ac_file : 'X\(//\)[^/]' \| \
28981 X$ac_file : 'X\(//\)$' \| \
28982 X$ac_file : 'X\(/\)' \| \
28983 . : '\(.\)' 2>/dev/null ||
28985 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28986 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28987 /^X\(\/\/\)$/{ s//\1/; q; }
28988 /^X\(\/\).*/{ s//\1/; q; }
28989 s/.*/./; q'`/stamp-h$_am_stamp_count
28992 cat >>$CONFIG_STATUS <<\_ACEOF
28995 # CONFIG_COMMANDS section.
28997 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
28998 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
28999 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
29000 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
29001 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29002 X"$ac_dest" : 'X\(//\)[^/]' \| \
29003 X"$ac_dest" : 'X\(//\)$' \| \
29004 X"$ac_dest" : 'X\(/\)' \| \
29005 . : '\(.\)' 2>/dev/null ||
29007 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29008 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29009 /^X\(\/\/\)$/{ s//\1/; q; }
29010 /^X\(\/\).*/{ s//\1/; q; }
29012 { if $as_mkdir_p; then
29017 while test ! -d "$as_dir"; do
29018 as_dirs="$as_dir $as_dirs"
29019 as_dir=`(dirname "$as_dir") 2>/dev/null ||
29020 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29021 X"$as_dir" : 'X\(//\)[^/]' \| \
29022 X"$as_dir" : 'X\(//\)$' \| \
29023 X"$as_dir" : 'X\(/\)' \| \
29024 . : '\(.\)' 2>/dev/null ||
29026 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29027 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29028 /^X\(\/\/\)$/{ s//\1/; q; }
29029 /^X\(\/\).*/{ s//\1/; q; }
29032 test ! -n "$as_dirs" || mkdir $as_dirs
29033 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
29034 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
29035 { (exit 1); exit 1; }; }; }
29039 if test "$ac_dir" != .; then
29040 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
29041 # A "../" for each directory in $ac_dir_suffix.
29042 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
29044 ac_dir_suffix= ac_top_builddir=
29048 .) # No --srcdir option. We are building in place.
29050 if test -z "$ac_top_builddir"; then
29053 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
29055 [\\/]* | ?:[\\/]* ) # Absolute path.
29056 ac_srcdir=$srcdir$ac_dir_suffix;
29057 ac_top_srcdir=$srcdir ;;
29058 *) # Relative path.
29059 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
29060 ac_top_srcdir=$ac_top_builddir$srcdir ;;
29063 # Do not use `cd foo && pwd` to compute absolute paths, because
29064 # the directories may not exist.
29066 .) ac_abs_builddir="$ac_dir";;
29069 .) ac_abs_builddir=`pwd`;;
29070 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
29071 *) ac_abs_builddir=`pwd`/"$ac_dir";;
29074 case $ac_abs_builddir in
29075 .) ac_abs_top_builddir=${ac_top_builddir}.;;
29077 case ${ac_top_builddir}. in
29078 .) ac_abs_top_builddir=$ac_abs_builddir;;
29079 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
29080 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
29083 case $ac_abs_builddir in
29084 .) ac_abs_srcdir=$ac_srcdir;;
29087 .) ac_abs_srcdir=$ac_abs_builddir;;
29088 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
29089 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
29092 case $ac_abs_builddir in
29093 .) ac_abs_top_srcdir=$ac_top_srcdir;;
29095 case $ac_top_srcdir in
29096 .) ac_abs_top_srcdir=$ac_abs_builddir;;
29097 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
29098 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
29103 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
29104 echo "$as_me: executing $ac_dest commands" >&6;}
29106 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
29107 # Strip MF so we end up with the name of the file.
29108 mf=`echo "$mf" | sed -e 's/:.*$//'`
29109 # Check whether this is an Automake generated Makefile or not.
29110 # We used to match only the files named `Makefile.in', but
29111 # some people rename them; so instead we look at the file content.
29112 # Grep'ing the first line is not enough: some people post-process
29113 # each Makefile.in and add a new line on top of each file to say so.
29114 # So let's grep whole file.
29115 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
29116 dirpart=`(dirname "$mf") 2>/dev/null ||
29117 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29118 X"$mf" : 'X\(//\)[^/]' \| \
29119 X"$mf" : 'X\(//\)$' \| \
29120 X"$mf" : 'X\(/\)' \| \
29121 . : '\(.\)' 2>/dev/null ||
29123 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29124 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29125 /^X\(\/\/\)$/{ s//\1/; q; }
29126 /^X\(\/\).*/{ s//\1/; q; }
29131 # Extract the definition of DEPDIR, am__include, and am__quote
29132 # from the Makefile without running `make'.
29133 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
29134 test -z "$DEPDIR" && continue
29135 am__include=`sed -n 's/^am__include = //p' < "$mf"`
29136 test -z "am__include" && continue
29137 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
29138 # When using ansi2knr, U may be empty or an underscore; expand it
29139 U=`sed -n 's/^U = //p' < "$mf"`
29140 # Find all dependency output files, they are included files with
29141 # $(DEPDIR) in their names. We invoke sed twice because it is the
29142 # simplest approach to changing $(DEPDIR) to its actual value in the
29144 for file in `sed -n "
29145 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
29146 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
29147 # Make sure the directory exists.
29148 test -f "$dirpart/$file" && continue
29149 fdir=`(dirname "$file") 2>/dev/null ||
29150 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29151 X"$file" : 'X\(//\)[^/]' \| \
29152 X"$file" : 'X\(//\)$' \| \
29153 X"$file" : 'X\(/\)' \| \
29154 . : '\(.\)' 2>/dev/null ||
29156 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29157 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29158 /^X\(\/\/\)$/{ s//\1/; q; }
29159 /^X\(\/\).*/{ s//\1/; q; }
29161 { if $as_mkdir_p; then
29162 mkdir -p $dirpart/$fdir
29164 as_dir=$dirpart/$fdir
29166 while test ! -d "$as_dir"; do
29167 as_dirs="$as_dir $as_dirs"
29168 as_dir=`(dirname "$as_dir") 2>/dev/null ||
29169 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29170 X"$as_dir" : 'X\(//\)[^/]' \| \
29171 X"$as_dir" : 'X\(//\)$' \| \
29172 X"$as_dir" : 'X\(/\)' \| \
29173 . : '\(.\)' 2>/dev/null ||
29175 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29176 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29177 /^X\(\/\/\)$/{ s//\1/; q; }
29178 /^X\(\/\).*/{ s//\1/; q; }
29181 test ! -n "$as_dirs" || mkdir $as_dirs
29182 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
29183 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
29184 { (exit 1); exit 1; }; }; }
29186 # echo "creating $dirpart/$file"
29187 echo '# dummy' > "$dirpart/$file"
29195 cat >>$CONFIG_STATUS <<\_ACEOF
29197 { (exit 0); exit 0; }
29199 chmod +x $CONFIG_STATUS
29200 ac_clean_files=$ac_clean_files_save
29203 # configure is writing to config.log, and then calls config.status.
29204 # config.status does its own redirection, appending to config.log.
29205 # Unfortunately, on DOS this fails, as config.log is still kept open
29206 # by configure, so config.status won't be able to write to it; its
29207 # output is simply discarded. So we exec the FD to /dev/null,
29208 # effectively closing config.log, so it can be properly (re)opened and
29209 # appended to by config.status. When coming back to configure, we
29210 # need to make the FD available again.
29211 if test "$no_create" != yes; then
29213 ac_config_status_args=
29214 test "$silent" = yes &&
29215 ac_config_status_args="$ac_config_status_args --quiet"
29217 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29219 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29220 # would make configure fail if this is the last instruction.
29221 $ac_cs_success || { (exit 1); exit 1; }
29225 { echo "$as_me:$LINENO:
29234 $FEATURES_TXT" >&6;}