3 # From configure.in Revision: 7466
4 # libtool.m4 - Configure libtool for the host system. -*-Shell-script-*-
5 ## Copyright 1996, 1997, 1998, 1999, 2000, 2001
6 ## Free Software Foundation, Inc.
7 ## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9 ## This program is free software; you can redistribute it and/or modify
10 ## it under the terms of the GNU General Public License as published by
11 ## the Free Software Foundation; either version 2 of the License, or
12 ## (at your option) any later version.
14 ## This program is distributed in the hope that it will be useful, but
15 ## WITHOUT ANY WARRANTY; without even the implied warranty of
16 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 ## General Public License for more details.
19 ## You should have received a copy of the GNU General Public License
20 ## along with this program; if not, write to the Free Software
21 ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
23 ## As a special exception to the GNU General Public License, if you
24 ## distribute this file as part of a program that contains a
25 ## configuration script generated by Autoconf, you may include it under
26 ## the same distribution terms that you use for the rest of that program.
28 # serial 46 AC_PROG_LIBTOOL
34 # AC_LIBTOOL_HEADER_ASSERT
35 # ------------------------
36 # AC_LIBTOOL_HEADER_ASSERT
39 # --------------------
42 # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
43 # ---------------------------------
44 # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
46 # _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
47 # ---------------------------------
48 # _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
50 # _LT_AC_PROG_ECHO_BACKSLASH
51 # --------------------------
52 # Add some code to the start of the generated configure script which
53 # will find an echo command which doesn't interpret backslashes.
54 # _LT_AC_PROG_ECHO_BACKSLASH
56 # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
57 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
58 # ------------------------------------------------------------------
59 # _LT_AC_TRY_DLOPEN_SELF
61 # AC_LIBTOOL_DLOPEN_SELF
63 # AC_LIBTOOL_DLOPEN_SELF
65 # _LT_AC_LTCONFIG_HACK
67 # AC_LIBTOOL_DLOPEN - enable checks for dlopen support
70 # AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's
73 # AC_ENABLE_SHARED - implement the --enable-shared flag
74 # Usage: AC_ENABLE_SHARED[(DEFAULT)]
75 # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
79 # AC_DISABLE_SHARED - set the default shared flag to --disable-shared
82 # AC_ENABLE_STATIC - implement the --enable-static flag
83 # Usage: AC_ENABLE_STATIC[(DEFAULT)]
84 # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
88 # AC_DISABLE_STATIC - set the default static flag to --disable-static
92 # AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag
93 # Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]
94 # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
98 # AC_DISABLE_FAST_INSTALL - set the default to --disable-fast-install
101 # AC_LIBTOOL_PICMODE - implement the --with-pic flag
102 # Usage: AC_LIBTOOL_PICMODE[(MODE)]
103 # Where MODE is either `yes' or `no'. If omitted, it defaults to
108 # AC_PATH_TOOL_PREFIX - find a file program which can recognise shared library
112 # AC_PATH_MAGIC - find a file program which can recognise a shared library
116 # AC_PROG_LD - find the path to the GNU or non-GNU linker
122 # AC_PROG_LD_RELOAD_FLAG - find reload flag for linker
123 # -- PORTME Some linkers may need a different reload flag.
126 # AC_DEPLIBS_CHECK_METHOD - how to check for library dependencies
127 # -- PORTME fill in with the dynamic library characteristics
131 # AC_PROG_NM - find the path to a BSD-compatible name lister
134 # AC_CHECK_LIBM - check for math library
137 # AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
138 # the libltdl convenience library and INCLTDL to the include flags for
139 # the libltdl header and adds --enable-ltdl-convenience to the
140 # configure arguments. Note that LIBLTDL and INCLTDL are not
141 # AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If DIR is not
142 # provided, it is assumed to be `libltdl'. LIBLTDL will be prefixed
143 # with '${top_builddir}/' and INCLTDL will be prefixed with
144 # '${top_srcdir}/' (note the single quotes!). If your package is not
145 # flat and you're not using automake, define top_builddir and
146 # top_srcdir appropriately in the Makefiles.
149 # AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
150 # the libltdl installable library and INCLTDL to the include flags for
151 # the libltdl header and adds --enable-ltdl-install to the configure
152 # arguments. Note that LIBLTDL and INCLTDL are not AC_SUBSTed, nor is
153 # AC_CONFIG_SUBDIRS called. If DIR is not provided and an installed
154 # libltdl is not found, it is assumed to be `libltdl'. LIBLTDL will
155 # be prefixed with '${top_builddir}/' and INCLTDL will be prefixed
156 # with '${top_srcdir}/' (note the single quotes!). If your package is
157 # not flat and you're not using automake, define top_builddir and
158 # top_srcdir appropriately in the Makefiles.
159 # In the future, this macro may have to be called after AC_PROG_LIBTOOL.
171 # This is just to silence aclocal about the macro not being used
173 # Guess values for system-dependent variables and create Makefiles.
174 # Generated automatically using autoconf version 2.13
175 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
177 # This configure script is free software; the Free Software Foundation
178 # gives unlimited permission to copy, distribute and modify it.
182 ac_default_prefix=/usr/local
183 # Any additions from configure.in:
184 ac_default_prefix=/usr/local/news
186 --enable-libtool Use libtool for lib generation [default=no]"
188 --enable-shared[=PKGS] build shared libraries [default=yes]"
190 --enable-static[=PKGS] build static libraries [default=yes]"
192 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
194 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
196 # Find the correct PATH separator. Usually this is `:', but
197 # DJGPP uses `;' like DOS.
198 if test "X${PATH_SEPARATOR+set}" != Xset; then
199 UNAME=${UNAME-`uname 2>/dev/null`}
201 *-DOS) lt_cv_sys_path_separator=';' ;;
202 *) lt_cv_sys_path_separator=':' ;;
204 PATH_SEPARATOR=$lt_cv_sys_path_separator
208 # Check that we are running under the correct shell.
209 SHELL=${CONFIG_SHELL-/bin/sh}
213 # Remove one level of quotation (which was required for Make).
214 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
219 if test "X$1" = X--no-reexec; then
220 # Discard the --no-reexec flag, and continue.
222 elif test "X$1" = X--fallback-echo; then
223 # Avoid inline document here, it may be left over
225 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
226 # Yippee, $echo works!
229 # Restart under the correct shell.
230 exec $SHELL "$0" --no-reexec ${1+"$@"}
233 if test "X$1" = X--fallback-echo; then
234 # used as fallback echo
242 # The HP-UX ksh and POSIX shell print the target directory to stdout
244 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
246 if test -z "$ECHO"; then
247 if test "X${echo_test_string+set}" != Xset; then
248 # find a string as large as possible, as long as the shell can cope with it
249 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
250 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
251 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
252 echo_test_string="`eval $cmd`" &&
253 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
260 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
261 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
262 test "X$echo_testing_string" = "X$echo_test_string"; then
265 # The Solaris, AIX, and Digital Unix default echo programs unquote
266 # backslashes. This makes it impossible to quote backslashes using
267 # echo "$something" | sed 's/\\/\\\\/g'
269 # So, first we look for a working echo in the user's PATH.
271 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
272 for dir in $PATH /usr/ucb; do
273 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
274 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
275 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
276 test "X$echo_testing_string" = "X$echo_test_string"; then
283 if test "X$echo" = Xecho; then
284 # We didn't find a better echo, so look for alternatives.
285 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
286 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
287 test "X$echo_testing_string" = "X$echo_test_string"; then
288 # This shell has a builtin print -r that does the trick.
290 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
291 test "X$CONFIG_SHELL" != X/bin/ksh; then
292 # If we have ksh, try running configure again with it.
293 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
294 export ORIGINAL_CONFIG_SHELL
295 CONFIG_SHELL=/bin/ksh
297 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
301 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
302 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
303 test "X$echo_testing_string" = "X$echo_test_string"; then
306 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
307 test "X$echo_testing_string" = 'X\t' &&
308 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
309 test "X$echo_testing_string" = "X$echo_test_string"; then
310 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
312 SHELL="$CONFIG_SHELL"
314 echo="$CONFIG_SHELL $0 --fallback-echo"
315 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
316 test "X$echo_testing_string" = 'X\t' &&
317 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
318 test "X$echo_testing_string" = "X$echo_test_string"; then
319 echo="$CONFIG_SHELL $0 --fallback-echo"
321 # maybe with a smaller string...
324 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
325 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
332 if test "$prev" != 'sed 50q "$0"'; then
333 echo_test_string=`eval $prev`
334 export echo_test_string
335 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
337 # Oops. We lost completely, so just stick with echo.
346 # Copy echo and quote the copy suitably for passing to libtool from
347 # the Makefile, instead of quoting the original, which is used later.
349 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
350 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
355 --disable-libtool-lock avoid locking (might break parallel builds)"
357 --with-pic try to use only PIC/non-PIC objects [default=use both]"
359 --with-control-dir=PATH Path for control programs [PREFIX/bin/control]"
361 --with-db-dir=PATH Path for news database files [PREFIX/db]"
363 --with-doc-dir=PATH Path for news documentation [PREFIX/doc]"
365 --with-etc-dir=PATH Path for news config files [PREFIX/etc]"
367 --with-filter-dir=PATH Path for embedded filters [PREFIX/bin/filter]"
369 --with-lib-dir=PATH Path for news library files [PREFIX/lib]"
371 --with-log-dir=PATH Path for news logs [PREFIX/log]"
373 --with-run-dir=PATH Path for news PID/runtime files [PREFIX/run]"
375 --with-spool-dir=PATH Path for news storage [PREFIX/spool]"
377 --with-tmp-dir=PATH Path for temporary files [PREFIX/tmp]"
379 --with-syslog-facility=LOG_FAC Syslog facility [LOG_NEWS or LOG_LOCAL1]"
381 --with-news-user=USER News user name [news]"
383 --with-news-group=GROUP News group name [news]"
385 --with-news-master=USER News master (address for reports) [usenet]"
387 --with-news-umask=UMASK umask for news files [002]"
389 --enable-setgid-inews Install inews setgid"
391 --enable-uucp-rnews Install rnews setuid, group uucp"
393 --with-log-compress=METHOD Log compression method [gzip]"
395 --with-innd-port=PORT Additional low-numbered port for inndstart"
397 --enable-ipv6 Enable IPv6 support"
399 --with-max-sockets=N Maximum number of listening sockets in innd"
401 --enable-tagged-hash Use tagged hash table for history"
403 --enable-keywords Automatic keyword generation support"
405 --enable-largefiles Support for files larger than 2GB [default=no]"
407 --with-sendmail=PATH Path to sendmail"
409 --with-kerberos=PATH Path to Kerberos v5 (for auth_krb5)"
411 --with-perl Embedded Perl script support [default=no]"
413 --with-python Embedded Python module support [default=no]"
415 --with-berkeleydb[=PATH] Enable BerkeleyDB (for ovdb overview method)"
417 --with-openssl=PATH Enable OpenSSL (for NNTP over SSL support)"
419 --with-sasl=PATH Enable SASL (for imapfeed authentication)"
421 # Initialize some variables set by options.
422 # The variables have the same names as the options, with
423 # dashes changed to underlines.
425 cache_file=./config.cache
434 program_transform_name=s,x,x,
442 bindir='${exec_prefix}/bin'
443 sbindir='${exec_prefix}/sbin'
444 libexecdir='${exec_prefix}/libexec'
445 datadir='${prefix}/share'
446 sysconfdir='${prefix}/etc'
447 sharedstatedir='${prefix}/com'
448 localstatedir='${prefix}/var'
449 libdir='${exec_prefix}/lib'
450 includedir='${prefix}/include'
451 oldincludedir='/usr/include'
452 infodir='${prefix}/info'
453 mandir='${prefix}/man'
455 # Initialize some other variables.
458 SHELL=${CONFIG_SHELL-/bin/sh}
459 # Maximum number of lines to put in a shell here document.
466 # If the previous option needs an argument, assign it.
467 if test -n "$ac_prev"; then
468 eval "$ac_prev=\$ac_option"
474 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
478 # Accept the important Cygnus configure options, so we can diagnose typos.
482 -bindir | --bindir | --bindi | --bind | --bin | --bi)
484 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
485 bindir="$ac_optarg" ;;
487 -build | --build | --buil | --bui | --bu)
489 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
490 build="$ac_optarg" ;;
492 -cache-file | --cache-file | --cache-fil | --cache-fi \
493 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
494 ac_prev=cache_file ;;
495 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
496 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
497 cache_file="$ac_optarg" ;;
499 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
501 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
503 datadir="$ac_optarg" ;;
505 -disable-* | --disable-*)
506 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
507 # Reject names that are not valid shell variable names.
508 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
509 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
511 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
512 eval "enable_${ac_feature}=no" ;;
514 -enable-* | --enable-*)
515 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
516 # Reject names that are not valid shell variable names.
517 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
518 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
520 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
525 eval "enable_${ac_feature}='$ac_optarg'" ;;
527 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
528 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
529 | --exec | --exe | --ex)
530 ac_prev=exec_prefix ;;
531 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
532 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
533 | --exec=* | --exe=* | --ex=*)
534 exec_prefix="$ac_optarg" ;;
536 -gas | --gas | --ga | --g)
537 # Obsolete; use --with-gas.
540 -help | --help | --hel | --he)
541 # Omit some internal or obsolete options to make the list less imposing.
542 # This message is too long to be a string in the A/UX 3.1 sh.
544 Usage: configure [options] [host]
545 Options: [defaults in brackets after descriptions]
547 --cache-file=FILE cache test results in FILE
548 --help print this message
549 --no-create do not create output files
550 --quiet, --silent do not print \`checking...' messages
551 --version print the version of autoconf that created configure
552 Directory and file names:
553 --prefix=PREFIX install architecture-independent files in PREFIX
555 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
557 --bindir=DIR user executables in DIR [EPREFIX/bin]
558 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
559 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
560 --datadir=DIR read-only architecture-independent data in DIR
562 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
563 --sharedstatedir=DIR modifiable architecture-independent data in DIR
565 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
566 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
567 --includedir=DIR C header files in DIR [PREFIX/include]
568 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
569 --infodir=DIR info documentation in DIR [PREFIX/info]
570 --mandir=DIR man documentation in DIR [PREFIX/man]
571 --srcdir=DIR find the sources in DIR [configure dir or ..]
572 --program-prefix=PREFIX prepend PREFIX to installed program names
573 --program-suffix=SUFFIX append SUFFIX to installed program names
574 --program-transform-name=PROGRAM
575 run sed PROGRAM on installed program names
579 --build=BUILD configure for building on BUILD [BUILD=HOST]
580 --host=HOST configure for HOST [guessed]
581 --target=TARGET configure for TARGET [TARGET=HOST]
582 Features and packages:
583 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
584 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
585 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
586 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
587 --x-includes=DIR X include files are in DIR
588 --x-libraries=DIR X library files are in DIR
590 if test -n "$ac_help"; then
591 echo "--enable and --with options recognized:$ac_help"
595 -host | --host | --hos | --ho)
597 -host=* | --host=* | --hos=* | --ho=*)
600 -includedir | --includedir | --includedi | --included | --include \
601 | --includ | --inclu | --incl | --inc)
602 ac_prev=includedir ;;
603 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
604 | --includ=* | --inclu=* | --incl=* | --inc=*)
605 includedir="$ac_optarg" ;;
607 -infodir | --infodir | --infodi | --infod | --info | --inf)
609 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
610 infodir="$ac_optarg" ;;
612 -libdir | --libdir | --libdi | --libd)
614 -libdir=* | --libdir=* | --libdi=* | --libd=*)
615 libdir="$ac_optarg" ;;
617 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
618 | --libexe | --libex | --libe)
619 ac_prev=libexecdir ;;
620 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
621 | --libexe=* | --libex=* | --libe=*)
622 libexecdir="$ac_optarg" ;;
624 -localstatedir | --localstatedir | --localstatedi | --localstated \
625 | --localstate | --localstat | --localsta | --localst \
626 | --locals | --local | --loca | --loc | --lo)
627 ac_prev=localstatedir ;;
628 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
629 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
630 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
631 localstatedir="$ac_optarg" ;;
633 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
635 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
636 mandir="$ac_optarg" ;;
639 # Obsolete; use --without-fp.
642 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
646 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
647 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
650 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
651 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
652 | --oldin | --oldi | --old | --ol | --o)
653 ac_prev=oldincludedir ;;
654 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
655 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
656 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
657 oldincludedir="$ac_optarg" ;;
659 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
661 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
662 prefix="$ac_optarg" ;;
664 -program-prefix | --program-prefix | --program-prefi | --program-pref \
665 | --program-pre | --program-pr | --program-p)
666 ac_prev=program_prefix ;;
667 -program-prefix=* | --program-prefix=* | --program-prefi=* \
668 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
669 program_prefix="$ac_optarg" ;;
671 -program-suffix | --program-suffix | --program-suffi | --program-suff \
672 | --program-suf | --program-su | --program-s)
673 ac_prev=program_suffix ;;
674 -program-suffix=* | --program-suffix=* | --program-suffi=* \
675 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
676 program_suffix="$ac_optarg" ;;
678 -program-transform-name | --program-transform-name \
679 | --program-transform-nam | --program-transform-na \
680 | --program-transform-n | --program-transform- \
681 | --program-transform | --program-transfor \
682 | --program-transfo | --program-transf \
683 | --program-trans | --program-tran \
684 | --progr-tra | --program-tr | --program-t)
685 ac_prev=program_transform_name ;;
686 -program-transform-name=* | --program-transform-name=* \
687 | --program-transform-nam=* | --program-transform-na=* \
688 | --program-transform-n=* | --program-transform-=* \
689 | --program-transform=* | --program-transfor=* \
690 | --program-transfo=* | --program-transf=* \
691 | --program-trans=* | --program-tran=* \
692 | --progr-tra=* | --program-tr=* | --program-t=*)
693 program_transform_name="$ac_optarg" ;;
695 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
696 | -silent | --silent | --silen | --sile | --sil)
699 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
701 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
703 sbindir="$ac_optarg" ;;
705 -sharedstatedir | --sharedstatedir | --sharedstatedi \
706 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
707 | --sharedst | --shareds | --shared | --share | --shar \
709 ac_prev=sharedstatedir ;;
710 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
711 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
712 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
714 sharedstatedir="$ac_optarg" ;;
716 -site | --site | --sit)
718 -site=* | --site=* | --sit=*)
721 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
723 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
724 srcdir="$ac_optarg" ;;
726 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
727 | --syscon | --sysco | --sysc | --sys | --sy)
728 ac_prev=sysconfdir ;;
729 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
730 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
731 sysconfdir="$ac_optarg" ;;
733 -target | --target | --targe | --targ | --tar | --ta | --t)
735 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
736 target="$ac_optarg" ;;
738 -v | -verbose | --verbose | --verbos | --verbo | --verb)
741 -version | --version | --versio | --versi | --vers)
742 echo "configure generated by autoconf version 2.13"
746 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
747 # Reject names that are not valid shell variable names.
748 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
749 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
751 ac_package=`echo $ac_package| sed 's/-/_/g'`
756 eval "with_${ac_package}='$ac_optarg'" ;;
758 -without-* | --without-*)
759 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
760 # Reject names that are not valid shell variable names.
761 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
762 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
764 ac_package=`echo $ac_package| sed 's/-/_/g'`
765 eval "with_${ac_package}=no" ;;
768 # Obsolete; use --with-x.
771 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
772 | --x-incl | --x-inc | --x-in | --x-i)
773 ac_prev=x_includes ;;
774 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
775 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
776 x_includes="$ac_optarg" ;;
778 -x-libraries | --x-libraries | --x-librarie | --x-librari \
779 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
780 ac_prev=x_libraries ;;
781 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
782 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
783 x_libraries="$ac_optarg" ;;
785 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
789 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
790 echo "configure: warning: $ac_option: invalid host type" 1>&2
792 if test "x$nonopt" != xNONE; then
793 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
801 if test -n "$ac_prev"; then
802 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
805 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
807 # File descriptor usage:
810 # 2 errors and warnings
811 # 3 some systems may open it to /dev/tty
812 # 4 used on the Kubota Titan
813 # 6 checking for... messages and results
814 # 5 compiler messages saved in config.log
815 if test "$silent" = yes; then
823 This file contains any messages produced by compilers while
824 running configure, to aid debugging if configure makes a mistake.
827 # Strip out --no-create and --no-recursion so they do not pile up.
828 # Also quote any args containing shell metacharacters.
833 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
834 | --no-cr | --no-c) ;;
835 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
836 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
837 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
838 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
839 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
844 # Only set these to C if already set. These must not be set unconditionally
845 # because not all systems understand e.g. LANG=C (notably SCO).
846 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
847 # Non-C LC_CTYPE values break the ctype check.
848 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
849 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
850 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
851 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
853 # confdefs.h avoids OS command line length limits that DEFS can exceed.
854 rm -rf conftest* confdefs.h
855 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
858 # A filename unique to this package, relative to the directory that
859 # configure is in, which we can look for to find out if srcdir is correct.
860 ac_unique_file=Makefile.global.in
862 # Find the source files, if location was not specified.
863 if test -z "$srcdir"; then
864 ac_srcdir_defaulted=yes
865 # Try the directory containing this script, then its parent.
867 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
868 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
870 if test ! -r $srcdir/$ac_unique_file; then
874 ac_srcdir_defaulted=no
876 if test ! -r $srcdir/$ac_unique_file; then
877 if test "$ac_srcdir_defaulted" = yes; then
878 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
880 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
883 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
885 # Prefer explicitly selected file to automatically selected ones.
886 if test -z "$CONFIG_SITE"; then
887 if test "x$prefix" != xNONE; then
888 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
890 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
893 for ac_site_file in $CONFIG_SITE; do
894 if test -r "$ac_site_file"; then
895 echo "loading site script $ac_site_file"
900 if test -r "$cache_file"; then
901 echo "loading cache $cache_file"
904 echo "creating cache $cache_file"
909 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
910 ac_cpp='$CPP $CPPFLAGS'
911 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
912 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
913 cross_compiling=$ac_cv_prog_cc_cross
917 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
918 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
919 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
926 ac_n= ac_c='\c' ac_t=
931 for ac_dir in support $srcdir/support; do
932 if test -f $ac_dir/install-sh; then
934 ac_install_sh="$ac_aux_dir/install-sh -c"
936 elif test -f $ac_dir/install.sh; then
938 ac_install_sh="$ac_aux_dir/install.sh -c"
942 if test -z "$ac_aux_dir"; then
943 { echo "configure: error: can not find install-sh or install.sh in support $srcdir/support" 1>&2; exit 1; }
945 ac_config_guess=$ac_aux_dir/config.guess
946 ac_config_sub=$ac_aux_dir/config.sub
947 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
951 test x"$prefix" = xNONE && prefix="$ac_default_prefix"
956 if test x"$with_largefiles" != x ; then
957 { echo "configure: error: Use --enable-largefiles instead of --with-largefiles" 1>&2; exit 1; }
962 # Extract the first word of "gcc", so it can be a program name with args.
963 set dummy gcc; ac_word=$2
964 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
965 echo "configure:966: checking for $ac_word" >&5
966 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
967 echo $ac_n "(cached) $ac_c" 1>&6
969 if test -n "$CC"; then
970 ac_cv_prog_CC="$CC" # Let the user override the test.
972 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
974 for ac_dir in $ac_dummy; do
975 test -z "$ac_dir" && ac_dir=.
976 if test -f $ac_dir/$ac_word; then
985 if test -n "$CC"; then
986 echo "$ac_t""$CC" 1>&6
988 echo "$ac_t""no" 1>&6
991 if test -z "$CC"; then
992 # Extract the first word of "cc", so it can be a program name with args.
993 set dummy cc; ac_word=$2
994 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
995 echo "configure:996: checking for $ac_word" >&5
996 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
997 echo $ac_n "(cached) $ac_c" 1>&6
999 if test -n "$CC"; then
1000 ac_cv_prog_CC="$CC" # Let the user override the test.
1002 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1005 for ac_dir in $ac_dummy; do
1006 test -z "$ac_dir" && ac_dir=.
1007 if test -f $ac_dir/$ac_word; then
1008 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1009 ac_prog_rejected=yes
1017 if test $ac_prog_rejected = yes; then
1018 # We found a bogon in the path, so make sure we never use it.
1019 set dummy $ac_cv_prog_CC
1021 if test $# -gt 0; then
1022 # We chose a different compiler from the bogus one.
1023 # However, it has the same basename, so the bogon will be chosen
1024 # first if we set CC to just the basename; use the full file name.
1026 set dummy "$ac_dir/$ac_word" "$@"
1034 if test -n "$CC"; then
1035 echo "$ac_t""$CC" 1>&6
1037 echo "$ac_t""no" 1>&6
1040 if test -z "$CC"; then
1041 case "`uname -s`" in
1043 # Extract the first word of "cl", so it can be a program name with args.
1044 set dummy cl; ac_word=$2
1045 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1046 echo "configure:1047: checking for $ac_word" >&5
1047 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1048 echo $ac_n "(cached) $ac_c" 1>&6
1050 if test -n "$CC"; then
1051 ac_cv_prog_CC="$CC" # Let the user override the test.
1053 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1055 for ac_dir in $ac_dummy; do
1056 test -z "$ac_dir" && ac_dir=.
1057 if test -f $ac_dir/$ac_word; then
1066 if test -n "$CC"; then
1067 echo "$ac_t""$CC" 1>&6
1069 echo "$ac_t""no" 1>&6
1074 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1077 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1078 echo "configure:1079: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1081 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1082 ac_cpp='$CPP $CPPFLAGS'
1083 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1084 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1085 cross_compiling=$ac_cv_prog_cc_cross
1087 cat > conftest.$ac_ext << EOF
1089 #line 1090 "configure"
1090 #include "confdefs.h"
1094 if { (eval echo configure:1095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1095 ac_cv_prog_cc_works=yes
1096 # If we can't run a trivial program, we are probably using a cross compiler.
1097 if (./conftest; exit) 2>/dev/null; then
1098 ac_cv_prog_cc_cross=no
1100 ac_cv_prog_cc_cross=yes
1103 echo "configure: failed program was:" >&5
1104 cat conftest.$ac_ext >&5
1105 ac_cv_prog_cc_works=no
1109 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1110 ac_cpp='$CPP $CPPFLAGS'
1111 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1112 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1113 cross_compiling=$ac_cv_prog_cc_cross
1115 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1116 if test $ac_cv_prog_cc_works = no; then
1117 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1119 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1120 echo "configure:1121: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1121 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1122 cross_compiling=$ac_cv_prog_cc_cross
1124 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1125 echo "configure:1126: checking whether we are using GNU C" >&5
1126 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1127 echo $ac_n "(cached) $ac_c" 1>&6
1129 cat > conftest.c <<EOF
1134 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1135: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1141 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1143 if test $ac_cv_prog_gcc = yes; then
1149 ac_test_CFLAGS="${CFLAGS+set}"
1150 ac_save_CFLAGS="$CFLAGS"
1152 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1153 echo "configure:1154: checking whether ${CC-cc} accepts -g" >&5
1154 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1155 echo $ac_n "(cached) $ac_c" 1>&6
1157 echo 'void f(){}' > conftest.c
1158 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1167 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1168 if test "$ac_test_CFLAGS" = set; then
1169 CFLAGS="$ac_save_CFLAGS"
1170 elif test $ac_cv_prog_cc_g = yes; then
1171 if test "$GCC" = yes; then
1177 if test "$GCC" = yes; then
1184 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1185 echo "configure:1186: checking how to run the C preprocessor" >&5
1186 # On Suns, sometimes $CPP names a directory.
1187 if test -n "$CPP" && test -d "$CPP"; then
1190 if test -z "$CPP"; then
1191 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1192 echo $ac_n "(cached) $ac_c" 1>&6
1194 # This must be in double quotes, not single quotes, because CPP may get
1195 # substituted into the Makefile and "${CC-cc}" will confuse make.
1197 # On the NeXT, cc -E runs the code through the compiler's parser,
1198 # not just through cpp.
1199 cat > conftest.$ac_ext <<EOF
1200 #line 1201 "configure"
1201 #include "confdefs.h"
1205 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1206 { (eval echo configure:1207: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1207 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1208 if test -z "$ac_err"; then
1212 echo "configure: failed program was:" >&5
1213 cat conftest.$ac_ext >&5
1215 CPP="${CC-cc} -E -traditional-cpp"
1216 cat > conftest.$ac_ext <<EOF
1217 #line 1218 "configure"
1218 #include "confdefs.h"
1222 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1223 { (eval echo configure:1224: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1224 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1225 if test -z "$ac_err"; then
1229 echo "configure: failed program was:" >&5
1230 cat conftest.$ac_ext >&5
1232 CPP="${CC-cc} -nologo -E"
1233 cat > conftest.$ac_ext <<EOF
1234 #line 1235 "configure"
1235 #include "confdefs.h"
1239 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1240 { (eval echo configure:1241: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1241 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1242 if test -z "$ac_err"; then
1246 echo "configure: failed program was:" >&5
1247 cat conftest.$ac_ext >&5
1256 ac_cv_prog_CPP="$CPP"
1258 CPP="$ac_cv_prog_CPP"
1260 ac_cv_prog_CPP="$CPP"
1262 echo "$ac_t""$CPP" 1>&6
1264 echo $ac_n "checking for AIX""... $ac_c" 1>&6
1265 echo "configure:1266: checking for AIX" >&5
1266 cat > conftest.$ac_ext <<EOF
1267 #line 1268 "configure"
1268 #include "confdefs.h"
1274 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1275 egrep "yes" >/dev/null 2>&1; then
1277 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
1278 #define _ALL_SOURCE 1
1283 echo "$ac_t""no" 1>&6
1288 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1289 echo "configure:1290: checking for POSIXized ISC" >&5
1290 if test -d /etc/conf/kconfig.d &&
1291 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1293 echo "$ac_t""yes" 1>&6
1294 ISC=yes # If later tests want to check for ISC.
1295 cat >> confdefs.h <<\EOF
1296 #define _POSIX_SOURCE 1
1299 if test "$GCC" = yes; then
1305 echo "$ac_t""no" 1>&6
1309 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1310 echo "configure:1311: checking for object suffix" >&5
1311 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1312 echo $ac_n "(cached) $ac_c" 1>&6
1315 echo 'int i = 1;' > conftest.$ac_ext
1316 if { (eval echo configure:1317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1317 for ac_file in conftest.*; do
1320 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1324 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1329 echo "$ac_t""$ac_cv_objext" 1>&6
1330 OBJEXT=$ac_cv_objext
1331 ac_objext=$ac_cv_objext
1334 echo $ac_n "checking if $CC supports -c -o file.$ac_objext""... $ac_c" 1>&6
1335 echo "configure:1336: checking if $CC supports -c -o file.$ac_objext" >&5
1336 if eval "test \"`echo '$''{'inn_cv_compiler_c_o'+set}'`\" = set"; then
1337 echo $ac_n "(cached) $ac_c" 1>&6
1339 rm -f -r conftest 2>/dev/null
1342 echo "int some_variable = 0;" > conftest.$ac_ext
1344 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
1345 # that will create temporary files in the current directory regardless of
1346 # the output directory. Thus, making CWD read-only will cause this test
1347 # to fail, enabling locking or at least warning the user not to do parallel
1350 save_CFLAGS="$CFLAGS"
1351 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
1353 if { (eval $ac_compile) 2> out/conftest.err; } \
1354 && test -s out/conftest2.$ac_objext; then
1355 # The compiler can only warn and ignore the option if not recognized
1356 # So say no if there are warnings
1357 if test -s out/conftest.err; then
1358 inn_cv_compiler_c_o=no
1360 inn_cv_compiler_c_o=yes
1363 # Append any errors to the config.log.
1364 cat out/conftest.err 1>&5
1365 inn_cv_compiler_c_o=no
1367 CFLAGS="$save_CFLAGS"
1369 rm -f conftest* out/*
1373 rm -f -r conftest 2>/dev/null
1376 compiler_c_o=$inn_cv_compiler_c_o
1377 echo "$ac_t""$compiler_c_o" 1>&6
1380 # Check whether --enable-libtool or --disable-libtool was given.
1381 if test "${enable_libtool+set}" = set; then
1382 enableval="$enable_libtool"
1383 if test "$enableval" = yes ; then
1388 if test x"$inn_use_libtool" = xyes ; then
1389 # Find the correct PATH separator. Usually this is `:', but
1390 # DJGPP uses `;' like DOS.
1391 if test "X${PATH_SEPARATOR+set}" != Xset; then
1392 UNAME=${UNAME-`uname 2>/dev/null`}
1394 *-DOS) lt_cv_sys_path_separator=';' ;;
1395 *) lt_cv_sys_path_separator=':' ;;
1397 PATH_SEPARATOR=$lt_cv_sys_path_separator
1400 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1401 echo "configure:1402: checking for Cygwin environment" >&5
1402 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1403 echo $ac_n "(cached) $ac_c" 1>&6
1405 cat > conftest.$ac_ext <<EOF
1406 #line 1407 "configure"
1407 #include "confdefs.h"
1412 #define __CYGWIN__ __CYGWIN32__
1417 if { (eval echo configure:1418: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1421 echo "configure: failed program was:" >&5
1422 cat conftest.$ac_ext >&5
1430 echo "$ac_t""$ac_cv_cygwin" 1>&6
1432 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1433 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1434 echo "configure:1435: checking for mingw32 environment" >&5
1435 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1436 echo $ac_n "(cached) $ac_c" 1>&6
1438 cat > conftest.$ac_ext <<EOF
1439 #line 1440 "configure"
1440 #include "confdefs.h"
1446 if { (eval echo configure:1447: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1450 echo "configure: failed program was:" >&5
1451 cat conftest.$ac_ext >&5
1459 echo "$ac_t""$ac_cv_mingw32" 1>&6
1461 test "$ac_cv_mingw32" = yes && MINGW32=yes
1462 # Check whether --enable-shared or --disable-shared was given.
1463 if test "${enable_shared+set}" = set; then
1464 enableval="$enable_shared"
1465 p=${PACKAGE-default}
1467 yes) enable_shared=yes ;;
1468 no) enable_shared=no ;;
1471 # Look at the argument we got. We use all the common list separators.
1472 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1473 for pkg in $enableval; do
1474 if test "X$pkg" = "X$p"; then
1485 # Check whether --enable-static or --disable-static was given.
1486 if test "${enable_static+set}" = set; then
1487 enableval="$enable_static"
1488 p=${PACKAGE-default}
1490 yes) enable_static=yes ;;
1491 no) enable_static=no ;;
1494 # Look at the argument we got. We use all the common list separators.
1495 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1496 for pkg in $enableval; do
1497 if test "X$pkg" = "X$p"; then
1508 # Check whether --enable-fast-install or --disable-fast-install was given.
1509 if test "${enable_fast_install+set}" = set; then
1510 enableval="$enable_fast_install"
1511 p=${PACKAGE-default}
1513 yes) enable_fast_install=yes ;;
1514 no) enable_fast_install=no ;;
1516 enable_fast_install=no
1517 # Look at the argument we got. We use all the common list separators.
1518 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1519 for pkg in $enableval; do
1520 if test "X$pkg" = "X$p"; then
1521 enable_fast_install=yes
1528 enable_fast_install=yes
1532 # Make sure we can run config.sub.
1533 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1534 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1537 echo $ac_n "checking host system type""... $ac_c" 1>&6
1538 echo "configure:1539: checking host system type" >&5
1541 case "$host_alias" in
1545 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1546 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1548 *) host_alias=$nonopt ;;
1552 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1553 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1554 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1555 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1556 echo "$ac_t""$host" 1>&6
1558 echo $ac_n "checking build system type""... $ac_c" 1>&6
1559 echo "configure:1560: checking build system type" >&5
1562 case "$build_alias" in
1565 NONE) build_alias=$host_alias ;;
1566 *) build_alias=$nonopt ;;
1570 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1571 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1572 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1573 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1574 echo "$ac_t""$build" 1>&6
1576 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1577 if test "${with_gnu_ld+set}" = set; then
1578 withval="$with_gnu_ld"
1579 test "$withval" = no || with_gnu_ld=yes
1585 if test "$GCC" = yes; then
1586 # Check if gcc -print-prog-name=ld gives a path.
1587 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1588 echo "configure:1589: checking for ld used by GCC" >&5
1591 # gcc leaves a trailing carriage return which upsets mingw
1592 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1594 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1597 # Accept absolute paths.
1598 [\\/]* | [A-Za-z]:[\\/]*)
1599 re_direlt='/[^/][^/]*/\.\./'
1600 # Canonicalize the path of ld
1601 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1602 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1603 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1605 test -z "$LD" && LD="$ac_prog"
1608 # If it fails, then pretend we aren't using GCC.
1612 # If it is relative, then search for the first ld in PATH.
1616 elif test "$with_gnu_ld" = yes; then
1617 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1618 echo "configure:1619: checking for GNU ld" >&5
1620 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1621 echo "configure:1622: checking for non-GNU ld" >&5
1623 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1624 echo $ac_n "(cached) $ac_c" 1>&6
1626 if test -z "$LD"; then
1627 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1628 for ac_dir in $PATH; do
1629 test -z "$ac_dir" && ac_dir=.
1630 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1631 lt_cv_path_LD="$ac_dir/$ac_prog"
1632 # Check to see if the program is GNU ld. I'd rather use --version,
1633 # but apparently some GNU ld's only accept -v.
1634 # Break only if it was the GNU/non-GNU ld that we prefer.
1635 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1636 test "$with_gnu_ld" != no && break
1638 test "$with_gnu_ld" != yes && break
1644 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1649 if test -n "$LD"; then
1650 echo "$ac_t""$LD" 1>&6
1652 echo "$ac_t""no" 1>&6
1654 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1655 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1656 echo "configure:1657: checking if the linker ($LD) is GNU ld" >&5
1657 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1658 echo $ac_n "(cached) $ac_c" 1>&6
1660 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1661 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1662 lt_cv_prog_gnu_ld=yes
1664 lt_cv_prog_gnu_ld=no
1668 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1669 with_gnu_ld=$lt_cv_prog_gnu_ld
1672 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1673 echo "configure:1674: checking for $LD option to reload object files" >&5
1674 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1675 echo $ac_n "(cached) $ac_c" 1>&6
1677 lt_cv_ld_reload_flag='-r'
1680 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1681 reload_flag=$lt_cv_ld_reload_flag
1682 test -n "$reload_flag" && reload_flag=" $reload_flag"
1684 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1685 echo "configure:1686: checking for BSD-compatible nm" >&5
1686 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1687 echo $ac_n "(cached) $ac_c" 1>&6
1689 if test -n "$NM"; then
1690 # Let the user override the test.
1693 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1694 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1695 test -z "$ac_dir" && ac_dir=.
1696 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1697 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1698 # Check to see if the nm accepts a BSD-compat flag.
1699 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1700 # nm: unknown option "B" ignored
1701 # Tru64's nm complains that /dev/null is an invalid object file
1702 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1703 lt_cv_path_NM="$tmp_nm -B"
1705 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1706 lt_cv_path_NM="$tmp_nm -p"
1709 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1710 continue # so that we can try to find one that supports BSD flags
1715 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1720 echo "$ac_t""$NM" 1>&6
1722 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1723 echo "configure:1724: checking whether ln -s works" >&5
1724 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1725 echo $ac_n "(cached) $ac_c" 1>&6
1728 if ln -s X conftestdata 2>/dev/null
1731 ac_cv_prog_LN_S="ln -s"
1736 LN_S="$ac_cv_prog_LN_S"
1737 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1738 echo "$ac_t""yes" 1>&6
1740 echo "$ac_t""no" 1>&6
1743 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1744 echo "configure:1745: checking how to recognise dependant libraries" >&5
1745 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1746 echo $ac_n "(cached) $ac_c" 1>&6
1748 lt_cv_file_magic_cmd='$MAGIC_CMD'
1749 lt_cv_file_magic_test_file=
1750 lt_cv_deplibs_check_method='unknown'
1751 # Need to set the preceding variable on all platforms that support
1752 # interlibrary dependencies.
1753 # 'none' -- dependencies not supported.
1754 # `unknown' -- same as none, but documents that we really don't know.
1755 # 'pass_all' -- all dependencies passed with no checks.
1756 # 'test_compile' -- check by making test program.
1757 # 'file_magic [[regex]]' -- check by looking for files in library path
1758 # which responds to the $file_magic_cmd with a given egrep regex.
1759 # If you have `file' or equivalent on your system and you're not sure
1760 # whether `pass_all' will *always* work, you probably want this one.
1764 lt_cv_deplibs_check_method=pass_all
1768 lt_cv_deplibs_check_method=pass_all
1772 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1773 lt_cv_file_magic_cmd='/usr/bin/file -L'
1774 lt_cv_file_magic_test_file=/shlib/libc.so
1777 cygwin* | mingw* | pw32*)
1778 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1779 lt_cv_file_magic_cmd='$OBJDUMP -f'
1782 darwin* | rhapsody*)
1783 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1784 lt_cv_file_magic_cmd='/usr/bin/file -L'
1786 rhapsody* | darwin1.[012])
1787 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
1790 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1796 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1799 # Not sure whether the presence of OpenBSD here was a mistake.
1800 # Let's accept both of them until this is cleared up.
1801 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1802 lt_cv_file_magic_cmd=/usr/bin/file
1803 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1807 lt_cv_deplibs_check_method=pass_all
1812 lt_cv_deplibs_check_method=pass_all
1816 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1817 lt_cv_file_magic_cmd=/usr/bin/file
1818 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1824 # this will be overridden with pass_all, but let us keep it just in case
1825 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1829 *-32|*"-32 ") libmagic=32-bit;;
1830 *-n32|*"-n32 ") libmagic=N32;;
1831 *-64|*"-64 ") libmagic=64-bit;;
1832 *) libmagic=never-match;;
1834 # this will be overridden with pass_all, but let us keep it just in case
1835 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1838 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1839 lt_cv_deplibs_check_method=pass_all
1842 # This must be Linux ELF.
1845 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
1846 lt_cv_deplibs_check_method=pass_all ;;
1848 # glibc up to 2.1.1 does not perform some relocations on ARM
1849 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1851 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1855 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1856 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1858 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
1863 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1864 lt_cv_file_magic_cmd=/usr/bin/file
1865 lt_cv_file_magic_test_file=/usr/lib/libnls.so
1869 lt_cv_file_magic_cmd=/usr/bin/file
1870 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1871 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1872 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
1874 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
1878 osf3* | osf4* | osf5*)
1879 # this will be overridden with pass_all, but let us keep it just in case
1880 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1881 lt_cv_file_magic_test_file=/shlib/libc.so
1882 lt_cv_deplibs_check_method=pass_all
1886 lt_cv_deplibs_check_method=pass_all
1890 lt_cv_deplibs_check_method=pass_all
1891 lt_cv_file_magic_test_file=/lib/libc.so
1894 sysv5uw[78]* | sysv4*uw2*)
1895 lt_cv_deplibs_check_method=pass_all
1898 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1899 case $host_vendor in
1901 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]'
1902 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1905 lt_cv_deplibs_check_method=pass_all
1908 lt_cv_file_magic_cmd='/bin/file'
1909 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
1912 lt_cv_file_magic_cmd='/bin/file'
1913 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
1914 lt_cv_file_magic_test_file=/lib/libc.so
1922 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1923 file_magic_cmd=$lt_cv_file_magic_cmd
1924 deplibs_check_method=$lt_cv_deplibs_check_method
1928 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1929 echo "configure:1930: checking for executable suffix" >&5
1930 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1931 echo $ac_n "(cached) $ac_c" 1>&6
1933 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1937 echo 'int main () { return 0; }' > conftest.$ac_ext
1939 if { (eval echo configure:1940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1940 for file in conftest.*; do
1942 *.$ac_ext | *.c | *.o | *.obj) ;;
1943 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1947 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1950 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1955 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1956 echo "$ac_t""${ac_cv_exeext}" 1>&6
1959 if test $host != $build; then
1960 ac_tool_prefix=${host_alias}-
1968 # Check for command to grab the raw symbol name followed by C symbol from nm.
1969 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
1970 echo "configure:1971: checking command to parse $NM output" >&5
1971 if eval "test \"`echo '$''{'lt_cv_sys_global_symbol_pipe'+set}'`\" = set"; then
1972 echo $ac_n "(cached) $ac_c" 1>&6
1975 # These are sane defaults that work on at least a few old systems.
1976 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
1978 # Character class describing NM global symbol codes.
1979 symcode='[BCDEGRST]'
1981 # Regexp to match symbols that can be accessed directly from C.
1982 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
1984 # Transform the above into a raw symbol and a C symbol.
1985 symxfrm='\1 \2\3 \3'
1987 # Transform an extracted symbol line into a proper C declaration
1988 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
1990 # Transform an extracted symbol line into symbol name and symbol address
1991 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
1993 # Define system-specific variables.
1998 cygwin* | mingw* | pw32*)
1999 symcode='[ABCDGISTW]'
2001 hpux*) # Its linker distinguishes data from code symbols
2002 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
2003 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
2006 symcode='[BCDEGRST]'
2016 # Handle CRLF in mingw tool chain
2020 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
2024 # If we're using GNU nm, then use its standard symbol codes.
2025 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
2026 symcode='[ABCDGISTW]'
2029 # Try without a prefix undercore, then with it.
2030 for ac_symprfx in "" "_"; do
2032 # Write the raw and C identifiers.
2033 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
2035 # Check to see that the pipe works correctly.
2038 cat > conftest.$ac_ext <<EOF
2043 void nm_test_func(){}
2047 int main(){nm_test_var='a';nm_test_func();return(0);}
2050 if { (eval echo configure:2051: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2051 # Now try to grab the symbols.
2053 if { (eval echo configure:2054: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5; } && test -s "$nlist"; then
2054 # Try sorting and uniquifying the output.
2055 if sort "$nlist" | uniq > "$nlist"T; then
2056 mv -f "$nlist"T "$nlist"
2061 # Make sure that we snagged all the symbols we need.
2062 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
2063 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
2064 cat <<EOF > conftest.$ac_ext
2070 # Now generate the symbol file.
2071 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
2073 cat <<EOF >> conftest.$ac_ext
2074 #if defined (__STDC__) && __STDC__
2075 # define lt_ptr void *
2077 # define lt_ptr char *
2081 /* The mapping between symbol names and symbols. */
2086 lt_preloaded_symbols[] =
2089 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
2090 cat <<\EOF >> conftest.$ac_ext
2098 # Now try linking the two files.
2099 mv conftest.$ac_objext conftstm.$ac_objext
2101 save_CFLAGS="$CFLAGS"
2102 LIBS="conftstm.$ac_objext"
2103 CFLAGS="$CFLAGS$no_builtin_flag"
2104 if { (eval echo configure:2105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2108 CFLAGS="$save_CFLAGS"
2110 echo "cannot find nm_test_func in $nlist" >&5
2113 echo "cannot find nm_test_var in $nlist" >&5
2116 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
2119 echo "$progname: failed program was:" >&5
2120 cat conftest.$ac_ext >&5
2122 rm -f conftest* conftst*
2124 # Do not use the global_symbol_pipe unless it works.
2125 if test "$pipe_works" = yes; then
2128 lt_cv_sys_global_symbol_pipe=
2134 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
2135 if test -z "$lt_cv_sys_global_symbol_pipe"; then
2136 global_symbol_to_cdecl=
2137 global_symbol_to_c_name_address=
2139 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
2140 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
2142 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
2144 echo "$ac_t""failed" 1>&6
2146 echo "$ac_t""ok" 1>&6
2149 for ac_hdr in dlfcn.h
2151 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2152 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2153 echo "configure:2154: checking for $ac_hdr" >&5
2154 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2155 echo $ac_n "(cached) $ac_c" 1>&6
2157 cat > conftest.$ac_ext <<EOF
2158 #line 2159 "configure"
2159 #include "confdefs.h"
2162 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2163 { (eval echo configure:2164: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2164 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2165 if test -z "$ac_err"; then
2167 eval "ac_cv_header_$ac_safe=yes"
2170 echo "configure: failed program was:" >&5
2171 cat conftest.$ac_ext >&5
2173 eval "ac_cv_header_$ac_safe=no"
2177 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2178 echo "$ac_t""yes" 1>&6
2179 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2180 cat >> confdefs.h <<EOF
2181 #define $ac_tr_hdr 1
2185 echo "$ac_t""no" 1>&6
2193 # Only perform the check for file, if the check method requires it
2194 case $deplibs_check_method in
2196 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2197 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2198 echo "configure:2199: checking for ${ac_tool_prefix}file" >&5
2199 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2200 echo $ac_n "(cached) $ac_c" 1>&6
2204 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2207 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2210 ac_save_MAGIC_CMD="$MAGIC_CMD"
2211 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2212 ac_dummy="/usr/bin:$PATH"
2213 for ac_dir in $ac_dummy; do
2214 test -z "$ac_dir" && ac_dir=.
2215 if test -f $ac_dir/${ac_tool_prefix}file; then
2216 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2217 if test -n "$file_magic_test_file"; then
2218 case $deplibs_check_method in
2220 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2221 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2222 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2223 egrep "$file_magic_regex" > /dev/null; then
2228 *** Warning: the command libtool uses to detect shared libraries,
2229 *** $file_magic_cmd, produces output that libtool cannot recognize.
2230 *** The result is that libtool may fail to recognize shared libraries
2231 *** as such. This will affect the creation of libtool libraries that
2232 *** depend on shared libraries, but programs linked with such libtool
2233 *** libraries will work regardless of this problem. Nevertheless, you
2234 *** may want to report the problem to your system manager and/or to
2235 *** bug-libtool@gnu.org
2245 MAGIC_CMD="$ac_save_MAGIC_CMD"
2250 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2251 if test -n "$MAGIC_CMD"; then
2252 echo "$ac_t""$MAGIC_CMD" 1>&6
2254 echo "$ac_t""no" 1>&6
2257 if test -z "$lt_cv_path_MAGIC_CMD"; then
2258 if test -n "$ac_tool_prefix"; then
2259 echo $ac_n "checking for file""... $ac_c" 1>&6
2260 echo "configure:2261: checking for file" >&5
2261 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2262 echo $ac_n "(cached) $ac_c" 1>&6
2266 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2269 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2272 ac_save_MAGIC_CMD="$MAGIC_CMD"
2273 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2274 ac_dummy="/usr/bin:$PATH"
2275 for ac_dir in $ac_dummy; do
2276 test -z "$ac_dir" && ac_dir=.
2277 if test -f $ac_dir/file; then
2278 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2279 if test -n "$file_magic_test_file"; then
2280 case $deplibs_check_method in
2282 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2283 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2284 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2285 egrep "$file_magic_regex" > /dev/null; then
2290 *** Warning: the command libtool uses to detect shared libraries,
2291 *** $file_magic_cmd, produces output that libtool cannot recognize.
2292 *** The result is that libtool may fail to recognize shared libraries
2293 *** as such. This will affect the creation of libtool libraries that
2294 *** depend on shared libraries, but programs linked with such libtool
2295 *** libraries will work regardless of this problem. Nevertheless, you
2296 *** may want to report the problem to your system manager and/or to
2297 *** bug-libtool@gnu.org
2307 MAGIC_CMD="$ac_save_MAGIC_CMD"
2312 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2313 if test -n "$MAGIC_CMD"; then
2314 echo "$ac_t""$MAGIC_CMD" 1>&6
2316 echo "$ac_t""no" 1>&6
2328 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2329 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2330 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2331 echo "configure:2332: checking for $ac_word" >&5
2332 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2333 echo $ac_n "(cached) $ac_c" 1>&6
2335 if test -n "$RANLIB"; then
2336 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2338 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2340 for ac_dir in $ac_dummy; do
2341 test -z "$ac_dir" && ac_dir=.
2342 if test -f $ac_dir/$ac_word; then
2343 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2350 RANLIB="$ac_cv_prog_RANLIB"
2351 if test -n "$RANLIB"; then
2352 echo "$ac_t""$RANLIB" 1>&6
2354 echo "$ac_t""no" 1>&6
2358 if test -z "$ac_cv_prog_RANLIB"; then
2359 if test -n "$ac_tool_prefix"; then
2360 # Extract the first word of "ranlib", so it can be a program name with args.
2361 set dummy ranlib; ac_word=$2
2362 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2363 echo "configure:2364: checking for $ac_word" >&5
2364 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2365 echo $ac_n "(cached) $ac_c" 1>&6
2367 if test -n "$RANLIB"; then
2368 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2370 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2372 for ac_dir in $ac_dummy; do
2373 test -z "$ac_dir" && ac_dir=.
2374 if test -f $ac_dir/$ac_word; then
2375 ac_cv_prog_RANLIB="ranlib"
2380 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2383 RANLIB="$ac_cv_prog_RANLIB"
2384 if test -n "$RANLIB"; then
2385 echo "$ac_t""$RANLIB" 1>&6
2387 echo "$ac_t""no" 1>&6
2395 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2396 set dummy ${ac_tool_prefix}strip; ac_word=$2
2397 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2398 echo "configure:2399: checking for $ac_word" >&5
2399 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2400 echo $ac_n "(cached) $ac_c" 1>&6
2402 if test -n "$STRIP"; then
2403 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2405 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2407 for ac_dir in $ac_dummy; do
2408 test -z "$ac_dir" && ac_dir=.
2409 if test -f $ac_dir/$ac_word; then
2410 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2417 STRIP="$ac_cv_prog_STRIP"
2418 if test -n "$STRIP"; then
2419 echo "$ac_t""$STRIP" 1>&6
2421 echo "$ac_t""no" 1>&6
2425 if test -z "$ac_cv_prog_STRIP"; then
2426 if test -n "$ac_tool_prefix"; then
2427 # Extract the first word of "strip", so it can be a program name with args.
2428 set dummy strip; ac_word=$2
2429 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2430 echo "configure:2431: checking for $ac_word" >&5
2431 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2432 echo $ac_n "(cached) $ac_c" 1>&6
2434 if test -n "$STRIP"; then
2435 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2437 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2439 for ac_dir in $ac_dummy; do
2440 test -z "$ac_dir" && ac_dir=.
2441 if test -f $ac_dir/$ac_word; then
2442 ac_cv_prog_STRIP="strip"
2447 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2450 STRIP="$ac_cv_prog_STRIP"
2451 if test -n "$STRIP"; then
2452 echo "$ac_t""$STRIP" 1>&6
2454 echo "$ac_t""no" 1>&6
2466 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2467 if test "${enable_libtool_lock+set}" = set; then
2468 enableval="$enable_libtool_lock"
2472 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
2474 # Some flags need to be propagated to the compiler or linker for good
2478 # Find out which ABI we are using.
2479 echo '#line 2480 "configure"' > conftest.$ac_ext
2480 if { (eval echo configure:2481: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2481 case `/usr/bin/file conftest.$ac_objext` in
2497 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2498 SAVE_CFLAGS="$CFLAGS"
2499 CFLAGS="$CFLAGS -belf"
2500 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2501 echo "configure:2502: checking whether the C compiler needs -belf" >&5
2502 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2503 echo $ac_n "(cached) $ac_c" 1>&6
2507 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2508 ac_cpp='$CPP $CPPFLAGS'
2509 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2510 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2511 cross_compiling=$ac_cv_prog_cc_cross
2513 cat > conftest.$ac_ext <<EOF
2514 #line 2515 "configure"
2515 #include "confdefs.h"
2521 if { (eval echo configure:2522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2523 lt_cv_cc_needs_belf=yes
2525 echo "configure: failed program was:" >&5
2526 cat conftest.$ac_ext >&5
2528 lt_cv_cc_needs_belf=no
2532 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2533 ac_cpp='$CPP $CPPFLAGS'
2534 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2535 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2536 cross_compiling=$ac_cv_prog_cc_cross
2540 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2541 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2542 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2543 CFLAGS="$SAVE_CFLAGS"
2550 # Sed substitution that helps us do robust quoting. It backslashifies
2551 # metacharacters that are still active within double-quoted strings.
2552 Xsed='sed -e s/^X//'
2553 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
2555 # Same as above, but do not quote variable references.
2556 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
2558 # Sed substitution to delay expansion of an escaped shell variable in a
2559 # double_quote_subst'ed string.
2560 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2566 default_ofile=libtool
2567 can_build_shared=yes
2569 # All known linkers require a `.a' archive for static linking (except M$VC,
2570 # which needs '.lib').
2572 ltmain="$ac_aux_dir/ltmain.sh"
2573 ofile="$default_ofile"
2574 with_gnu_ld="$lt_cv_prog_gnu_ld"
2575 need_locks="$enable_libtool_lock"
2578 old_CFLAGS="$CFLAGS"
2580 # Set sane defaults for various variables
2581 test -z "$AR" && AR=ar
2582 test -z "$AR_FLAGS" && AR_FLAGS=cru
2583 test -z "$AS" && AS=as
2584 test -z "$CC" && CC=cc
2585 test -z "$DLLTOOL" && DLLTOOL=dlltool
2586 test -z "$LD" && LD=ld
2587 test -z "$LN_S" && LN_S="ln -s"
2588 test -z "$MAGIC_CMD" && MAGIC_CMD=file
2589 test -z "$NM" && NM=nm
2590 test -z "$OBJDUMP" && OBJDUMP=objdump
2591 test -z "$RANLIB" && RANLIB=:
2592 test -z "$STRIP" && STRIP=:
2593 test -z "$ac_objext" && ac_objext=o
2595 if test x"$host" != x"$build"; then
2596 ac_tool_prefix=${host_alias}-
2601 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
2604 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
2609 # AIX sometimes has problems with the GCC collect2 program. For some
2610 # reason, if we set the COLLECT_NAMES environment variable, the problems
2611 # vanish in a puff of smoke.
2612 if test "X${COLLECT_NAMES+set}" != Xset; then
2614 export COLLECT_NAMES
2619 # Determine commands to create old-style static archives.
2620 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
2621 old_postinstall_cmds='chmod 644 $oldlib'
2622 old_postuninstall_cmds=
2624 if test -n "$RANLIB"; then
2627 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
2630 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
2633 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
2636 # Allow CC to be a program name with arguments.
2640 ## FIXME: this should be a separate macro
2642 echo $ac_n "checking for objdir""... $ac_c" 1>&6
2643 echo "configure:2644: checking for objdir" >&5
2644 rm -f .libs 2>/dev/null
2645 mkdir .libs 2>/dev/null
2646 if test -d .libs; then
2649 # MS-DOS does not allow filenames that begin with a dot.
2652 rmdir .libs 2>/dev/null
2653 echo "$ac_t""$objdir" 1>&6
2658 ## FIXME: this should be a separate macro
2660 # Check whether --with-pic or --without-pic was given.
2661 if test "${with_pic+set}" = set; then
2668 test -z "$pic_mode" && pic_mode=default
2670 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
2671 # in isolation, and that seeing it set (from the cache) indicates that
2672 # the associated values are set (in the cache) correctly too.
2673 echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
2674 echo "configure:2675: checking for $compiler option to produce PIC" >&5
2675 if eval "test \"`echo '$''{'lt_cv_prog_cc_pic'+set}'`\" = set"; then
2676 echo $ac_n "(cached) $ac_c" 1>&6
2679 lt_cv_prog_cc_shlib=
2681 lt_cv_prog_cc_static=
2682 lt_cv_prog_cc_no_builtin=
2683 lt_cv_prog_cc_can_build_shared=$can_build_shared
2685 if test "$GCC" = yes; then
2686 lt_cv_prog_cc_wl='-Wl,'
2687 lt_cv_prog_cc_static='-static'
2691 # Below there is a dirty hack to force normal static linking with -ldl
2692 # The problem is because libdl dynamically linked with both libc and
2693 # libC (AIX C++ library), which obviously doesn't included in libraries
2694 # list by gcc. This cause undefined symbols with -static flags.
2695 # This hack allows C programs to be linked with "-static -ldl", but
2696 # not sure about C++ programs.
2697 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
2700 # FIXME: we need at least 68020 code to build shared libraries, but
2701 # adding the `-m68020' flag to GCC prevents building anything better,
2703 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
2705 beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
2706 # PIC is the default for these OSes.
2708 darwin* | rhapsody*)
2709 # PIC is the default on this platform
2710 # Common symbols not allowed in MH_DYLIB files
2711 lt_cv_prog_cc_pic='-fno-common'
2713 cygwin* | mingw* | pw32* | os2*)
2714 # This hack is so that the source file can tell whether it is being
2715 # built for inclusion in a dll (and should export symbols for example).
2716 lt_cv_prog_cc_pic='-DDLL_EXPORT'
2719 if test -d /usr/nec; then
2720 lt_cv_prog_cc_pic=-Kconform_pic
2724 lt_cv_prog_cc_pic='-fPIC'
2728 # PORTME Check for PIC flags for the system compiler.
2730 aix3* | aix4* | aix5*)
2731 lt_cv_prog_cc_wl='-Wl,'
2732 # All AIX code is PIC.
2733 if test "$host_cpu" = ia64; then
2734 # AIX 5 now supports IA64 processor
2735 lt_cv_prog_cc_static='-Bstatic'
2737 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
2741 hpux9* | hpux10* | hpux11*)
2742 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
2743 lt_cv_prog_cc_wl='-Wl,'
2744 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
2745 lt_cv_prog_cc_pic='+Z'
2749 lt_cv_prog_cc_wl='-Wl,'
2750 lt_cv_prog_cc_static='-non_shared'
2751 # PIC (with -KPIC) is the default.
2754 cygwin* | mingw* | pw32* | os2*)
2755 # This hack is so that the source file can tell whether it is being
2756 # built for inclusion in a dll (and should export symbols for example).
2757 lt_cv_prog_cc_pic='-DDLL_EXPORT'
2761 lt_cv_prog_cc_pic='-KPIC'
2762 lt_cv_prog_cc_static='-Bstatic'
2765 osf3* | osf4* | osf5*)
2766 # All OSF/1 code is PIC.
2767 lt_cv_prog_cc_wl='-Wl,'
2768 lt_cv_prog_cc_static='-non_shared'
2772 lt_cv_prog_cc_pic='-Kpic'
2773 lt_cv_prog_cc_static='-dn'
2774 lt_cv_prog_cc_shlib='-belf'
2778 lt_cv_prog_cc_pic='-KPIC'
2779 lt_cv_prog_cc_static='-Bstatic'
2780 lt_cv_prog_cc_wl='-Wl,'
2784 lt_cv_prog_cc_pic='-PIC'
2785 lt_cv_prog_cc_static='-Bstatic'
2786 lt_cv_prog_cc_wl='-Qoption ld '
2789 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2790 lt_cv_prog_cc_pic='-KPIC'
2791 lt_cv_prog_cc_static='-Bstatic'
2792 if test "x$host_vendor" = xsni; then
2793 lt_cv_prog_cc_wl='-LD'
2795 lt_cv_prog_cc_wl='-Wl,'
2800 lt_cv_prog_cc_pic='-pic'
2801 lt_cv_prog_cc_static='-Bstatic'
2805 if test -d /usr/nec ;then
2806 lt_cv_prog_cc_pic='-Kconform_pic'
2807 lt_cv_prog_cc_static='-Bstatic'
2812 lt_cv_prog_cc_can_build_shared=no
2819 if test -z "$lt_cv_prog_cc_pic"; then
2820 echo "$ac_t""none" 1>&6
2822 echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
2824 # Check to make sure the pic_flag actually works.
2825 echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
2826 echo "configure:2827: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
2827 if eval "test \"`echo '$''{'lt_cv_prog_cc_pic_works'+set}'`\" = set"; then
2828 echo $ac_n "(cached) $ac_c" 1>&6
2830 save_CFLAGS="$CFLAGS"
2831 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
2832 cat > conftest.$ac_ext <<EOF
2833 #line 2834 "configure"
2834 #include "confdefs.h"
2840 if { (eval echo configure:2841: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2843 hpux9* | hpux10* | hpux11*)
2844 # On HP-UX, both CC and GCC only warn that PIC is supported... then
2845 # they create non-PIC objects. So, if there were any warnings, we
2846 # assume that PIC is not supported.
2847 if test -s conftest.err; then
2848 lt_cv_prog_cc_pic_works=no
2850 lt_cv_prog_cc_pic_works=yes
2854 lt_cv_prog_cc_pic_works=yes
2859 echo "configure: failed program was:" >&5
2860 cat conftest.$ac_ext >&5
2862 lt_cv_prog_cc_pic_works=no
2866 CFLAGS="$save_CFLAGS"
2871 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
2873 lt_cv_prog_cc_can_build_shared=no
2875 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
2878 echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
2883 # Check for any special shared library compilation flags.
2884 if test -n "$lt_cv_prog_cc_shlib"; then
2885 echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
2886 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
2888 echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
2889 lt_cv_prog_cc_can_build_shared=no
2893 ## FIXME: this should be a separate macro
2895 echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
2896 echo "configure:2897: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
2897 if eval "test \"`echo '$''{'lt_cv_prog_cc_static_works'+set}'`\" = set"; then
2898 echo $ac_n "(cached) $ac_c" 1>&6
2900 lt_cv_prog_cc_static_works=no
2901 save_LDFLAGS="$LDFLAGS"
2902 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
2903 cat > conftest.$ac_ext <<EOF
2904 #line 2905 "configure"
2905 #include "confdefs.h"
2911 if { (eval echo configure:2912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2913 lt_cv_prog_cc_static_works=yes
2915 echo "configure: failed program was:" >&5
2916 cat conftest.$ac_ext >&5
2919 LDFLAGS="$save_LDFLAGS"
2924 # Belt *and* braces to stop my trousers falling down:
2925 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
2926 echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
2928 pic_flag="$lt_cv_prog_cc_pic"
2929 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
2930 wl="$lt_cv_prog_cc_wl"
2931 link_static_flag="$lt_cv_prog_cc_static"
2932 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
2933 can_build_shared="$lt_cv_prog_cc_can_build_shared"
2938 ## FIXME: this should be a separate macro
2940 # Check to see if options -o and -c are simultaneously supported by compiler
2941 echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
2942 echo "configure:2943: checking if $compiler supports -c -o file.$ac_objext" >&5
2943 if eval "test \"`echo '$''{'lt_cv_compiler_c_o'+set}'`\" = set"; then
2944 echo $ac_n "(cached) $ac_c" 1>&6
2947 $rm -r conftest 2>/dev/null
2950 echo "int some_variable = 0;" > conftest.$ac_ext
2952 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
2953 # that will create temporary files in the current directory regardless of
2954 # the output directory. Thus, making CWD read-only will cause this test
2955 # to fail, enabling locking or at least warning the user not to do parallel
2958 save_CFLAGS="$CFLAGS"
2959 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
2961 if { (eval echo configure:2962: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
2962 # The compiler can only warn and ignore the option if not recognized
2963 # So say no if there are warnings
2964 if test -s out/conftest.err; then
2965 lt_cv_compiler_c_o=no
2967 lt_cv_compiler_c_o=yes
2970 # Append any errors to the config.log.
2971 cat out/conftest.err 1>&5
2972 lt_cv_compiler_c_o=no
2974 CFLAGS="$save_CFLAGS"
2980 $rm -r conftest 2>/dev/null
2984 compiler_c_o=$lt_cv_compiler_c_o
2985 echo "$ac_t""$compiler_c_o" 1>&6
2987 if test x"$compiler_c_o" = x"yes"; then
2988 # Check to see if we can write to a .lo
2989 echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
2990 echo "configure:2991: checking if $compiler supports -c -o file.lo" >&5
2991 if eval "test \"`echo '$''{'lt_cv_compiler_o_lo'+set}'`\" = set"; then
2992 echo $ac_n "(cached) $ac_c" 1>&6
2995 lt_cv_compiler_o_lo=no
2996 save_CFLAGS="$CFLAGS"
2997 CFLAGS="$CFLAGS -c -o conftest.lo"
2998 save_objext="$ac_objext"
3000 cat > conftest.$ac_ext <<EOF
3001 #line 3002 "configure"
3002 #include "confdefs.h"
3005 int some_variable = 0;
3008 if { (eval echo configure:3009: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3010 # The compiler can only warn and ignore the option if not recognized
3011 # So say no if there are warnings
3012 if test -s conftest.err; then
3013 lt_cv_compiler_o_lo=no
3015 lt_cv_compiler_o_lo=yes
3019 echo "configure: failed program was:" >&5
3020 cat conftest.$ac_ext >&5
3023 ac_objext="$save_objext"
3024 CFLAGS="$save_CFLAGS"
3028 compiler_o_lo=$lt_cv_compiler_o_lo
3029 echo "$ac_t""$compiler_o_lo" 1>&6
3036 ## FIXME: this should be a separate macro
3038 # Check to see if we can do hard links to lock some files if needed
3039 hard_links="nottested"
3040 if test "$compiler_c_o" = no && test "$need_locks" != no; then
3041 # do not overwrite the value of need_locks provided by the user
3042 echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
3043 echo "configure:3044: checking if we can lock with hard links" >&5
3046 ln conftest.a conftest.b 2>/dev/null && hard_links=no
3048 ln conftest.a conftest.b 2>&5 || hard_links=no
3049 ln conftest.a conftest.b 2>/dev/null && hard_links=no
3050 echo "$ac_t""$hard_links" 1>&6
3051 if test "$hard_links" = no; then
3052 echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
3061 ## FIXME: this should be a separate macro
3063 if test "$GCC" = yes; then
3064 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
3065 echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
3066 echo "configure:3067: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
3067 echo "int some_variable = 0;" > conftest.$ac_ext
3068 save_CFLAGS="$CFLAGS"
3069 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
3070 compiler_rtti_exceptions=no
3071 cat > conftest.$ac_ext <<EOF
3072 #line 3073 "configure"
3073 #include "confdefs.h"
3076 int some_variable = 0;
3079 if { (eval echo configure:3080: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3081 # The compiler can only warn and ignore the option if not recognized
3082 # So say no if there are warnings
3083 if test -s conftest.err; then
3084 compiler_rtti_exceptions=no
3086 compiler_rtti_exceptions=yes
3090 echo "configure: failed program was:" >&5
3091 cat conftest.$ac_ext >&5
3094 CFLAGS="$save_CFLAGS"
3095 echo "$ac_t""$compiler_rtti_exceptions" 1>&6
3097 if test "$compiler_rtti_exceptions" = "yes"; then
3098 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
3100 no_builtin_flag=' -fno-builtin'
3106 ## FIXME: this should be a separate macro
3108 # See if the linker supports building shared libraries.
3109 echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
3110 echo "configure:3111: checking whether the linker ($LD) supports shared libraries" >&5
3112 allow_undefined_flag=
3114 need_lib_prefix=unknown
3115 need_version=unknown
3116 # when you set need_version to no, make sure it does not cause -set_version
3117 # flags to be left without arguments
3119 archive_expsym_cmds=
3120 old_archive_from_new_cmds=
3121 old_archive_from_expsyms_cmds=
3122 export_dynamic_flag_spec=
3123 whole_archive_flag_spec=
3124 thread_safe_flag_spec=
3125 hardcode_into_libs=no
3126 hardcode_libdir_flag_spec=
3127 hardcode_libdir_separator=
3130 hardcode_shlibpath_var=unsupported
3132 link_all_deplibs=unknown
3133 always_export_symbols=no
3134 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
3135 # include_expsyms should be a list of space-separated symbols to be *always*
3136 # included in the symbol list
3138 # exclude_expsyms can be an egrep regular expression of symbols to exclude
3139 # it will be wrapped by ` (' and `)$', so one must not match beginning or
3140 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
3141 # as well as any symbol that contains `d'.
3142 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
3143 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
3144 # platforms (ab)use it in PIC code, but their linkers get confused if
3145 # the symbol is explicitly referenced. Since portable code cannot
3146 # rely on this symbol name, it's probably fine to never include it in
3147 # preloaded symbol tables.
3148 extract_expsyms_cmds=
3151 cygwin* | mingw* | pw32*)
3152 # FIXME: the MSVC++ port hasn't been tested in a loooong time
3153 # When not using gcc, we currently assume that we are using
3154 # Microsoft Visual C++.
3155 if test "$GCC" != yes; then
3165 if test "$with_gnu_ld" = yes; then
3166 # If archive_cmds runs LD, not CC, wlarc should be empty
3169 # See if GNU ld supports shared libraries.
3171 aix3* | aix4* | aix5*)
3172 # On AIX, the GNU linker is very broken
3173 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
3177 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
3178 *** to be unable to reliably create shared libraries on AIX.
3179 *** Therefore, libtool is disabling shared libraries support. If you
3180 *** really care for shared libraries, you may want to modify your PATH
3181 *** so that a non-GNU linker is found, and then restart.
3187 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)'
3188 hardcode_libdir_flag_spec='-L$libdir'
3189 hardcode_minus_L=yes
3191 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
3192 # that the semantics of dynamic libraries on AmigaOS, at least up
3193 # to version 4, is to share data among multiple programs linked
3194 # with the same dynamic library. Since this doesn't match the
3195 # behavior of shared libraries on other platforms, we can use
3201 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3202 allow_undefined_flag=unsupported
3203 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
3204 # support --undefined. This deserves some investigation. FIXME
3205 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3211 cygwin* | mingw* | pw32*)
3212 # hardcode_libdir_flag_spec is actually meaningless, as there is
3213 # no search path for DLLs.
3214 hardcode_libdir_flag_spec='-L$libdir'
3215 allow_undefined_flag=unsupported
3216 always_export_symbols=yes
3218 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
3219 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
3220 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
3221 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
3222 else $CC -o impgen impgen.c ; fi)~
3223 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
3225 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
3227 # cygwin and mingw dlls have different entry points and sets of symbols
3229 # FIXME: what about values for MSVC?
3230 dll_entry=__cygwin_dll_entry@12
3231 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
3235 dll_entry=_DllMainCRTStartup@12
3236 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
3240 # mingw and cygwin differ, and it's simplest to just exclude the union
3241 # of the two symbol sets.
3242 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
3244 # recent cygwin and mingw systems supply a stub DllMain which the user
3245 # can override, but on older systems we have to supply one (in ltdll.c)
3246 if test "x$lt_cv_need_dllmain" = "xyes"; then
3247 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
3248 ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
3249 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
3255 # Extract the symbol export list from an `--export-all' def file,
3256 # then regenerate the def file from the symbol export list, so that
3257 # the compiled dll only exports the symbol export list.
3258 # Be careful not to strip the DATA tag left be newer dlltools.
3259 export_symbols_cmds="$ltdll_cmds"'
3260 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
3261 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
3263 # If the export-symbols file already is a .def file (1st line
3264 # is EXPORTS), use it as is.
3265 # If DATA tags from a recent dlltool are present, honour them!
3266 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
3267 cp $export_symbols $output_objdir/$soname-def;
3269 echo EXPORTS > $output_objdir/$soname-def;
3271 cat $export_symbols | while read symbol; do
3274 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
3275 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
3277 _lt_hint=`expr 1 + \$_lt_hint`;
3281 $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
3282 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
3283 $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
3284 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
3285 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
3289 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3290 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
3293 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3294 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3299 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
3303 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
3304 *** create shared libraries on Solaris systems. Therefore, libtool
3305 *** is disabling shared libraries support. We urge you to upgrade GNU
3306 *** binutils to release 2.9.1 or newer. Another option is to modify
3307 *** your PATH or compiler configuration so that the native linker is
3308 *** used, and then restart.
3311 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3312 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3313 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3320 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3323 hardcode_shlibpath_var=no
3327 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3328 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3329 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3336 if test "$ld_shlibs" = yes; then
3337 runpath_var=LD_RUN_PATH
3338 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
3339 export_dynamic_flag_spec='${wl}--export-dynamic'
3341 cygwin* | mingw* | pw32*)
3342 # dlltool doesn't understand --whole-archive et. al.
3343 whole_archive_flag_spec=
3346 # ancient GNU ld didn't support --whole-archive et. al.
3347 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
3348 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3350 whole_archive_flag_spec=
3356 # PORTME fill in a description of your system's linker (not GNU ld)
3359 allow_undefined_flag=unsupported
3360 always_export_symbols=yes
3361 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'
3362 # Note: this linker hardcodes the directories in LIBPATH if there
3363 # are no directories specified by -L.
3364 hardcode_minus_L=yes
3365 if test "$GCC" = yes && test -z "$link_static_flag"; then
3366 # Neither direct hardcoding nor static linking is supported with a
3368 hardcode_direct=unsupported
3373 if test "$host_cpu" = ia64; then
3374 # On IA64, the linker does run time linking by default, so we don't
3375 # have to do anything special.
3376 aix_use_runtimelinking=no
3377 exp_sym_flag='-Bexport'
3380 aix_use_runtimelinking=no
3382 # Test if we are trying to use run time linking or normal
3383 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
3384 # need to do runtime linking.
3385 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
3386 for ld_flag in $LDFLAGS; do
3387 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
3388 aix_use_runtimelinking=yes
3394 exp_sym_flag='-bexport'
3395 no_entry_flag='-bnoentry'
3398 # When large executables or shared objects are built, AIX ld can
3399 # have problems creating the table of contents. If linking a library
3400 # or program results in "error TOC overflow" add -mminimal-toc to
3401 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
3402 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
3406 hardcode_libdir_separator=':'
3407 if test "$GCC" = yes; then
3408 case $host_os in aix4.[012]|aix4.[012].*)
3409 collect2name=`${CC} -print-prog-name=collect2`
3410 if test -f "$collect2name" && \
3411 strings "$collect2name" | grep resolve_lib_name >/dev/null
3413 # We have reworked collect2
3416 # We have old collect2
3417 hardcode_direct=unsupported
3418 # It fails to find uninstalled libraries when the uninstalled
3419 # path is not listed in the libpath. Setting hardcode_minus_L
3420 # to unsupported forces relinking
3421 hardcode_minus_L=yes
3422 hardcode_libdir_flag_spec='-L$libdir'
3423 hardcode_libdir_separator=
3427 shared_flag='-shared'
3430 if test "$host_cpu" = ia64; then
3431 shared_flag='${wl}-G'
3433 if test "$aix_use_runtimelinking" = yes; then
3434 shared_flag='${wl}-G'
3436 shared_flag='${wl}-bM:SRE'
3441 # It seems that -bexpall can do strange things, so it is better to
3442 # generate a list of symbols to export.
3443 always_export_symbols=yes
3444 if test "$aix_use_runtimelinking" = yes; then
3445 # Warning - without using the other runtime loading flags (-brtl),
3446 # -berok will link without error, but may produce a broken library.
3447 allow_undefined_flag='-berok'
3448 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
3449 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
3451 if test "$host_cpu" = ia64; then
3452 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
3453 allow_undefined_flag="-z nodefs"
3454 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
3456 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
3457 # Warning - without using the other run time loading flags,
3458 # -berok will link without error, but may produce a broken library.
3459 allow_undefined_flag='${wl}-berok'
3460 # This is a bit strange, but is similar to how AIX traditionally builds
3461 # it's shared libraries.
3462 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
3468 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)'
3469 hardcode_libdir_flag_spec='-L$libdir'
3470 hardcode_minus_L=yes
3471 # see comment about different semantics on the GNU ld section
3475 cygwin* | mingw* | pw32*)
3476 # When not using gcc, we currently assume that we are using
3477 # Microsoft Visual C++.
3478 # hardcode_libdir_flag_spec is actually meaningless, as there is
3479 # no search path for DLLs.
3480 hardcode_libdir_flag_spec=' '
3481 allow_undefined_flag=unsupported
3482 # Tell ltmain to make .lib files, not .a files.
3484 # FIXME: Setting linknames here is a bad hack.
3485 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
3486 # The linker will automatically build a .lib file if we build a DLL.
3487 old_archive_from_new_cmds='true'
3488 # FIXME: Should let the user specify the lib program.
3489 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
3490 fix_srcfile_path='`cygpath -w "$srcfile"`'
3493 darwin* | rhapsody*)
3495 rhapsody* | darwin1.[012])
3496 allow_undefined_flag='-undefined suppress'
3499 allow_undefined_flag='-flat_namespace -undefined suppress'
3502 # FIXME: Relying on posixy $() will cause problems for
3503 # cross-compilation, but unfortunately the echo tests do not
3504 # yet detect zsh echo's removal of \ escapes.
3505 archive_cmds='$nonopt $(test "x$module" = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
3506 # We need to add '_' to the symbols in $export_symbols first
3507 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
3509 hardcode_shlibpath_var=no
3510 whole_archive_flag_spec='-all_load $convenience'
3517 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
3518 # support. Future versions do this automatically, but an explicit c++rt0.o
3519 # does not break anything, and helps significantly (at the cost of a little
3522 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
3523 hardcode_libdir_flag_spec='-R$libdir'
3525 hardcode_shlibpath_var=no
3528 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
3530 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3532 hardcode_minus_L=yes
3533 hardcode_shlibpath_var=no
3536 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
3538 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
3539 hardcode_libdir_flag_spec='-R$libdir'
3541 hardcode_shlibpath_var=no
3544 hpux9* | hpux10* | hpux11*)
3546 hpux9*) 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' ;;
3547 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
3549 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
3550 hardcode_libdir_separator=:
3552 hardcode_minus_L=yes # Not in the search PATH, but as the default
3553 # location of the library.
3554 export_dynamic_flag_spec='${wl}-E'
3558 if test "$GCC" = yes; then
3559 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'
3561 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'
3563 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3564 hardcode_libdir_separator=:
3565 link_all_deplibs=yes
3569 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3570 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
3572 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
3574 hardcode_libdir_flag_spec='-R$libdir'
3576 hardcode_shlibpath_var=no
3580 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3582 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3583 hardcode_libdir_separator=:
3584 hardcode_shlibpath_var=no
3589 hardcode_shlibpath_var=no
3590 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3591 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
3592 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
3593 export_dynamic_flag_spec='${wl}-E'
3596 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
3597 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3598 hardcode_libdir_flag_spec='-R$libdir'
3601 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
3602 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
3609 hardcode_libdir_flag_spec='-L$libdir'
3610 hardcode_minus_L=yes
3611 allow_undefined_flag=unsupported
3612 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'
3613 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
3617 if test "$GCC" = yes; then
3618 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3619 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'
3621 allow_undefined_flag=' -expect_unresolved \*'
3622 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'
3624 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3625 hardcode_libdir_separator=:
3628 osf4* | osf5*) # as osf3* with the addition of -msym flag
3629 if test "$GCC" = yes; then
3630 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3631 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'
3632 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3634 allow_undefined_flag=' -expect_unresolved \*'
3635 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'
3636 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
3637 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
3639 #Both c and cxx compiler support -rpath directly
3640 hardcode_libdir_flag_spec='-rpath $libdir'
3642 hardcode_libdir_separator=:
3646 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3647 hardcode_shlibpath_var=no
3648 runpath_var=LD_RUN_PATH
3649 hardcode_runpath_var=yes
3650 export_dynamic_flag_spec='${wl}-Bexport'
3654 # gcc --version < 3.0 without binutils cannot create self contained
3655 # shared libraries reliably, requiring libgcc.a to resolve some of
3656 # the object symbols generated in some cases. Libraries that use
3657 # assert need libgcc.a to resolve __eprintf, for example. Linking
3658 # a copy of libgcc.a into every shared library to guarantee resolving
3659 # such symbols causes other problems: According to Tim Van Holder
3660 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
3661 # (to the application) exception stack for one thing.
3662 no_undefined_flag=' -z defs'
3663 if test "$GCC" = yes; then
3664 case `$CC --version 2>/dev/null` in
3668 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
3669 *** create self contained shared libraries on Solaris systems, without
3670 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
3671 *** -no-undefined support, which will at least allow you to build shared
3672 *** libraries. However, you may find that when you link such libraries
3673 *** into an application without using GCC, you have to manually add
3674 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
3675 *** upgrade to a newer version of GCC. Another option is to rebuild your
3676 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
3683 # $CC -shared without GNU ld will not create a library from C++
3684 # object files and a static libstdc++, better avoid it by now
3685 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
3686 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3687 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
3688 hardcode_libdir_flag_spec='-R$libdir'
3689 hardcode_shlibpath_var=no
3691 solaris2.[0-5] | solaris2.[0-5].*) ;;
3692 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
3693 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
3695 link_all_deplibs=yes
3699 if test "x$host_vendor" = xsequent; then
3700 # Use $CC to link under sequent, because it throws in some extra .o
3701 # files that make .init and .fini sections work.
3702 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
3704 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
3706 hardcode_libdir_flag_spec='-L$libdir'
3708 hardcode_minus_L=yes
3709 hardcode_shlibpath_var=no
3713 if test "x$host_vendor" = xsno; then
3714 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
3715 hardcode_direct=yes # is this really true???
3717 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3718 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
3720 runpath_var='LD_RUN_PATH'
3721 hardcode_shlibpath_var=no
3725 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3726 hardcode_shlibpath_var=no
3727 export_dynamic_flag_spec='-Bexport'
3731 no_undefined_flag=' -z text'
3732 # $CC -shared without GNU ld will not create a library from C++
3733 # object files and a static libstdc++, better avoid it by now
3734 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
3735 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3736 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
3737 hardcode_libdir_flag_spec=
3738 hardcode_shlibpath_var=no
3739 runpath_var='LD_RUN_PATH'
3743 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3744 hardcode_libdir_flag_spec='-L$libdir'
3745 hardcode_shlibpath_var=no
3749 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3750 hardcode_libdir_flag_spec='-L$libdir'
3751 hardcode_shlibpath_var=no
3755 if test -d /usr/nec; then
3756 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3757 hardcode_shlibpath_var=no
3758 runpath_var=LD_RUN_PATH
3759 hardcode_runpath_var=yes
3765 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
3768 hardcode_shlibpath_var=no
3769 hardcode_runpath_var=yes
3770 runpath_var=LD_RUN_PATH
3773 sysv5uw7* | unixware7*)
3774 no_undefined_flag='${wl}-z ${wl}text'
3775 if test "$GCC" = yes; then
3776 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
3778 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
3780 runpath_var='LD_RUN_PATH'
3781 hardcode_shlibpath_var=no
3789 echo "$ac_t""$ld_shlibs" 1>&6
3790 test "$ld_shlibs" = no && can_build_shared=no
3794 ## FIXME: this should be a separate macro
3796 # Check hardcoding attributes.
3797 echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
3798 echo "configure:3799: checking how to hardcode library paths into programs" >&5
3800 if test -n "$hardcode_libdir_flag_spec" || \
3801 test -n "$runpath_var"; then
3803 # We can hardcode non-existant directories.
3804 if test "$hardcode_direct" != no &&
3805 # If the only mechanism to avoid hardcoding is shlibpath_var, we
3806 # have to relink, otherwise we might link with an installed library
3807 # when we should be linking with a yet-to-be-installed one
3808 ## test "$hardcode_shlibpath_var" != no &&
3809 test "$hardcode_minus_L" != no; then
3810 # Linking always hardcodes the temporary library directory.
3811 hardcode_action=relink
3813 # We can link without hardcoding, and we can hardcode nonexisting dirs.
3814 hardcode_action=immediate
3817 # We cannot hardcode anything, or else we can only hardcode existing
3819 hardcode_action=unsupported
3821 echo "$ac_t""$hardcode_action" 1>&6
3825 ## FIXME: this should be a separate macro
3829 echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
3830 echo "configure:3831: checking whether stripping libraries is possible" >&5
3831 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
3832 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
3833 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
3834 echo "$ac_t""yes" 1>&6
3836 echo "$ac_t""no" 1>&6
3841 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3842 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3844 ## FIXME: this should be a separate macro
3846 # PORTME Fill in your ld.so characteristics
3847 echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
3848 echo "configure:3849: checking dynamic linker characteristics" >&5
3850 libname_spec='lib$name'
3857 shlibpath_overrides_runpath=unknown
3859 dynamic_linker="$host_os ld.so"
3860 sys_lib_dlsearch_path_spec="/lib /usr/lib"
3861 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
3866 library_names_spec='${libname}${release}.so$versuffix $libname.a'
3867 shlibpath_var=LIBPATH
3869 # AIX has no versioning support, so we append a major version to the name.
3870 soname_spec='${libname}${release}.so$major'
3875 if test "$host_cpu" = ia64; then
3876 # AIX 5 supports IA64
3877 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
3878 shlibpath_var=LD_LIBRARY_PATH
3880 # With GCC up to 2.95.x, collect2 would create an import file
3881 # for dependence libraries. The import file would start with
3882 # the line `#! .'. This would cause the generated library to
3883 # depend on `.', always an invalid library. This was fixed in
3884 # development snapshots of GCC prior to 3.0.
3886 aix4 | aix4.[01] | aix4.[01].*)
3887 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
3889 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
3896 # AIX (on Power*) has no versioning support, so currently we can
3897 # not hardcode correct soname into executable. Probably we can
3898 # add versioning support to collect2, so additional links can
3899 # be useful in future.
3900 if test "$aix_use_runtimelinking" = yes; then
3901 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
3902 # instead of lib<name>.a to let people know that these are not
3903 # typical AIX shared libraries.
3904 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
3906 # We preserve .a as extension for shared libraries through AIX4.2
3907 # and later when we are not doing run time linking.
3908 library_names_spec='${libname}${release}.a $libname.a'
3909 soname_spec='${libname}${release}.so$major'
3911 shlibpath_var=LIBPATH
3916 library_names_spec='$libname.ixlibrary $libname.a'
3917 # Create ${libname}_ixlibrary.a entries in /sys/libs.
3918 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'
3922 library_names_spec='${libname}.so'
3923 dynamic_linker="$host_os ld.so"
3924 shlibpath_var=LIBRARY_PATH
3930 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
3931 soname_spec='${libname}${release}.so$major'
3932 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
3933 shlibpath_var=LD_LIBRARY_PATH
3934 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
3935 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
3936 export_dynamic_flag_spec=-rdynamic
3937 # the default ld.so.conf also contains /usr/contrib/lib and
3938 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
3939 # libtool to hard-code these into programs
3942 cygwin* | mingw* | pw32*)
3943 version_type=windows
3946 case $GCC,$host_os in
3948 library_names_spec='$libname.dll.a'
3949 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
3950 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
3951 dldir=$destdir/`dirname \$dlpath`~
3952 test -d \$dldir || mkdir -p \$dldir~
3953 $install_prog .libs/$dlname \$dldir/$dlname'
3954 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
3955 dlpath=$dir/\$dldll~
3959 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
3960 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
3963 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
3966 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
3969 dynamic_linker='Win32 ld.exe'
3970 # FIXME: first we should search . and the directory the executable is in
3974 darwin* | rhapsody*)
3975 dynamic_linker="$host_os dyld"
3979 # FIXME: Relying on posixy $() will cause problems for
3980 # cross-compilation, but unfortunately the echo tests do not
3981 # yet detect zsh echo's removal of \ escapes.
3982 library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
3983 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
3984 shlibpath_overrides_runpath=yes
3985 shlibpath_var=DYLD_LIBRARY_PATH
3993 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
3994 version_type=freebsd-$objformat
3995 case $version_type in
3997 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
4002 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
4006 shlibpath_var=LD_LIBRARY_PATH
4009 shlibpath_overrides_runpath=yes
4012 shlibpath_overrides_runpath=no
4013 hardcode_into_libs=yes
4022 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
4023 soname_spec='${libname}${release}.so$major'
4024 shlibpath_var=LD_LIBRARY_PATH
4025 hardcode_into_libs=yes
4028 hpux9* | hpux10* | hpux11*)
4029 # Give a soname corresponding to the major version so that dld.sl refuses to
4030 # link against other versions.
4031 dynamic_linker="$host_os dld.sl"
4035 shlibpath_var=SHLIB_PATH
4036 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
4037 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
4038 soname_spec='${libname}${release}.sl$major'
4039 # HP-UX runs *really* slowly unless shared libraries are mode 555.
4040 postinstall_cmds='chmod 555 $lib'
4047 soname_spec='${libname}${release}.so$major'
4048 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
4054 case $LD in # libtool.m4 will add one of these switches to LD
4055 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
4056 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
4057 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
4058 *) libsuff= shlibsuff= libmagic=never-match;;
4062 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
4063 shlibpath_overrides_runpath=no
4064 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
4065 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
4068 # No shared lib support for Linux oldld, aout, or coff.
4069 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
4073 # This must be Linux ELF.
4078 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4079 soname_spec='${libname}${release}.so$major'
4080 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
4081 shlibpath_var=LD_LIBRARY_PATH
4082 shlibpath_overrides_runpath=no
4083 # This implies no fast_install, which is unacceptable.
4084 # Some rework will be needed to allow for fast_install
4085 # before this can be enabled.
4086 hardcode_into_libs=yes
4088 # We used to test for /lib/ld.so.1 and disable shared libraries on
4089 # powerpc, because MkLinux only supported shared libraries with the
4090 # GNU dynamic linker. Since this was broken with cross compilers,
4091 # most powerpc-linux boxes support dynamic linking these days and
4092 # people can always --disable-shared, the test was removed, and we
4093 # assume the GNU/Linux dynamic linker is in use.
4094 dynamic_linker='GNU/Linux ld.so'
4101 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4102 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
4103 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4104 dynamic_linker='NetBSD (a.out) ld.so'
4106 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
4107 soname_spec='${libname}${release}.so$major'
4108 dynamic_linker='NetBSD ld.elf_so'
4110 shlibpath_var=LD_LIBRARY_PATH
4111 shlibpath_overrides_runpath=yes
4112 hardcode_into_libs=yes
4117 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4118 shlibpath_var=LD_LIBRARY_PATH
4119 shlibpath_overrides_runpath=yes
4126 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4128 openbsd2.[89] | openbsd2.[89].*)
4129 shlibpath_overrides_runpath=no
4132 shlibpath_overrides_runpath=yes
4136 shlibpath_overrides_runpath=yes
4138 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
4139 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4140 shlibpath_var=LD_LIBRARY_PATH
4144 libname_spec='$name'
4146 library_names_spec='$libname.dll $libname.a'
4147 dynamic_linker='OS/2 ld.exe'
4148 shlibpath_var=LIBPATH
4151 osf3* | osf4* | osf5*)
4154 soname_spec='${libname}${release}.so'
4155 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
4156 shlibpath_var=LD_LIBRARY_PATH
4157 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
4158 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
4163 soname_spec='${libname}${release}.so$major'
4164 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4165 shlibpath_var=LD_LIBRARY_PATH
4172 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4173 soname_spec='${libname}${release}.so$major'
4174 shlibpath_var=LD_LIBRARY_PATH
4175 shlibpath_overrides_runpath=yes
4176 hardcode_into_libs=yes
4177 # ldd complains unless libraries are executable
4178 postinstall_cmds='chmod +x $lib'
4183 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
4184 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
4185 shlibpath_var=LD_LIBRARY_PATH
4186 shlibpath_overrides_runpath=yes
4187 if test "$with_gnu_ld" = yes; then
4193 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4195 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4196 soname_spec='${libname}${release}.so$major'
4197 shlibpath_var=LD_LIBRARY_PATH
4198 case $host_vendor in
4200 shlibpath_overrides_runpath=no
4205 shlibpath_overrides_runpath=no
4206 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
4213 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4214 soname_spec='${libname}${release}.so$major'
4215 shlibpath_var=LD_LIBRARY_PATH
4222 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4223 soname_spec='${libname}${release}.so$major'
4224 shlibpath_var=LD_LIBRARY_PATH
4228 if test -d /usr/nec ;then
4230 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
4231 soname_spec='$libname.so.$major'
4232 shlibpath_var=LD_LIBRARY_PATH
4240 echo "$ac_t""$dynamic_linker" 1>&6
4241 test "$dynamic_linker" = no && can_build_shared=no
4245 ## FIXME: this should be a separate macro
4247 # Report the final consequences.
4248 echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
4249 echo "configure:4250: checking if libtool supports shared libraries" >&5
4250 echo "$ac_t""$can_build_shared" 1>&6
4254 ## FIXME: this should be a separate macro
4256 echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6
4257 echo "configure:4258: checking whether to build shared libraries" >&5
4258 test "$can_build_shared" = "no" && enable_shared=no
4260 # On AIX, shared libraries and static libraries use the same namespace, and
4261 # are all built from PIC.
4264 test "$enable_shared" = yes && enable_static=no
4265 if test -n "$RANLIB"; then
4266 archive_cmds="$archive_cmds~\$RANLIB \$lib"
4267 postinstall_cmds='$RANLIB $lib'
4272 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4273 test "$enable_shared" = yes && enable_static=no
4277 echo "$ac_t""$enable_shared" 1>&6
4281 ## FIXME: this should be a separate macro
4283 echo $ac_n "checking whether to build static libraries""... $ac_c" 1>&6
4284 echo "configure:4285: checking whether to build static libraries" >&5
4285 # Make sure either enable_shared or enable_static is yes.
4286 test "$enable_shared" = yes || enable_static=yes
4287 echo "$ac_t""$enable_static" 1>&6
4291 if test "$hardcode_action" = relink; then
4292 # Fast installation is not supported
4293 enable_fast_install=no
4294 elif test "$shlibpath_overrides_runpath" = yes ||
4295 test "$enable_shared" = no; then
4296 # Fast installation is not necessary
4297 enable_fast_install=needless
4300 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
4301 if test "$GCC" = yes; then
4302 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
4305 if test "x$enable_dlopen" != xyes; then
4306 enable_dlopen=unknown
4307 enable_dlopen_self=unknown
4308 enable_dlopen_self_static=unknown
4315 lt_cv_dlopen="load_add_on"
4317 lt_cv_dlopen_self=yes
4320 cygwin* | mingw* | pw32*)
4321 lt_cv_dlopen="LoadLibrary"
4326 echo $ac_n "checking for shl_load""... $ac_c" 1>&6
4327 echo "configure:4328: checking for shl_load" >&5
4328 if eval "test \"`echo '$''{'ac_cv_func_shl_load'+set}'`\" = set"; then
4329 echo $ac_n "(cached) $ac_c" 1>&6
4331 cat > conftest.$ac_ext <<EOF
4332 #line 4333 "configure"
4333 #include "confdefs.h"
4334 /* System header to define __stub macros and hopefully few prototypes,
4335 which can conflict with char shl_load(); below. */
4337 /* Override any gcc2 internal prototype to avoid an error. */
4338 /* We use char because int might match the return type of a gcc2
4339 builtin and then its argument prototype would still apply. */
4344 /* The GNU C library defines this for functions which it implements
4345 to always fail with ENOSYS. Some functions are actually named
4346 something starting with __ and the normal name is an alias. */
4347 #if defined (__stub_shl_load) || defined (__stub___shl_load)
4355 if { (eval echo configure:4356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4357 eval "ac_cv_func_shl_load=yes"
4359 echo "configure: failed program was:" >&5
4360 cat conftest.$ac_ext >&5
4362 eval "ac_cv_func_shl_load=no"
4367 if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
4368 echo "$ac_t""yes" 1>&6
4369 lt_cv_dlopen="shl_load"
4371 echo "$ac_t""no" 1>&6
4372 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
4373 echo "configure:4374: checking for shl_load in -ldld" >&5
4374 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
4375 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4376 echo $ac_n "(cached) $ac_c" 1>&6
4378 ac_save_LIBS="$LIBS"
4380 cat > conftest.$ac_ext <<EOF
4381 #line 4382 "configure"
4382 #include "confdefs.h"
4383 /* Override any gcc2 internal prototype to avoid an error. */
4384 /* We use char because int might match the return type of a gcc2
4385 builtin and then its argument prototype would still apply. */
4392 if { (eval echo configure:4393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4394 eval "ac_cv_lib_$ac_lib_var=yes"
4396 echo "configure: failed program was:" >&5
4397 cat conftest.$ac_ext >&5
4399 eval "ac_cv_lib_$ac_lib_var=no"
4402 LIBS="$ac_save_LIBS"
4405 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4406 echo "$ac_t""yes" 1>&6
4407 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
4409 echo "$ac_t""no" 1>&6
4410 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
4411 echo "configure:4412: checking for dlopen" >&5
4412 if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
4413 echo $ac_n "(cached) $ac_c" 1>&6
4415 cat > conftest.$ac_ext <<EOF
4416 #line 4417 "configure"
4417 #include "confdefs.h"
4418 /* System header to define __stub macros and hopefully few prototypes,
4419 which can conflict with char dlopen(); below. */
4421 /* Override any gcc2 internal prototype to avoid an error. */
4422 /* We use char because int might match the return type of a gcc2
4423 builtin and then its argument prototype would still apply. */
4428 /* The GNU C library defines this for functions which it implements
4429 to always fail with ENOSYS. Some functions are actually named
4430 something starting with __ and the normal name is an alias. */
4431 #if defined (__stub_dlopen) || defined (__stub___dlopen)
4439 if { (eval echo configure:4440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4441 eval "ac_cv_func_dlopen=yes"
4443 echo "configure: failed program was:" >&5
4444 cat conftest.$ac_ext >&5
4446 eval "ac_cv_func_dlopen=no"
4451 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
4452 echo "$ac_t""yes" 1>&6
4453 lt_cv_dlopen="dlopen"
4455 echo "$ac_t""no" 1>&6
4456 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4457 echo "configure:4458: checking for dlopen in -ldl" >&5
4458 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4459 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4460 echo $ac_n "(cached) $ac_c" 1>&6
4462 ac_save_LIBS="$LIBS"
4464 cat > conftest.$ac_ext <<EOF
4465 #line 4466 "configure"
4466 #include "confdefs.h"
4467 /* Override any gcc2 internal prototype to avoid an error. */
4468 /* We use char because int might match the return type of a gcc2
4469 builtin and then its argument prototype would still apply. */
4476 if { (eval echo configure:4477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4478 eval "ac_cv_lib_$ac_lib_var=yes"
4480 echo "configure: failed program was:" >&5
4481 cat conftest.$ac_ext >&5
4483 eval "ac_cv_lib_$ac_lib_var=no"
4486 LIBS="$ac_save_LIBS"
4489 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4490 echo "$ac_t""yes" 1>&6
4491 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
4493 echo "$ac_t""no" 1>&6
4494 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
4495 echo "configure:4496: checking for dlopen in -lsvld" >&5
4496 ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-%__p_%'`
4497 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4498 echo $ac_n "(cached) $ac_c" 1>&6
4500 ac_save_LIBS="$LIBS"
4502 cat > conftest.$ac_ext <<EOF
4503 #line 4504 "configure"
4504 #include "confdefs.h"
4505 /* Override any gcc2 internal prototype to avoid an error. */
4506 /* We use char because int might match the return type of a gcc2
4507 builtin and then its argument prototype would still apply. */
4514 if { (eval echo configure:4515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4516 eval "ac_cv_lib_$ac_lib_var=yes"
4518 echo "configure: failed program was:" >&5
4519 cat conftest.$ac_ext >&5
4521 eval "ac_cv_lib_$ac_lib_var=no"
4524 LIBS="$ac_save_LIBS"
4527 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4528 echo "$ac_t""yes" 1>&6
4529 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
4531 echo "$ac_t""no" 1>&6
4532 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
4533 echo "configure:4534: checking for dld_link in -ldld" >&5
4534 ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-%__p_%'`
4535 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4536 echo $ac_n "(cached) $ac_c" 1>&6
4538 ac_save_LIBS="$LIBS"
4540 cat > conftest.$ac_ext <<EOF
4541 #line 4542 "configure"
4542 #include "confdefs.h"
4543 /* Override any gcc2 internal prototype to avoid an error. */
4544 /* We use char because int might match the return type of a gcc2
4545 builtin and then its argument prototype would still apply. */
4552 if { (eval echo configure:4553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4554 eval "ac_cv_lib_$ac_lib_var=yes"
4556 echo "configure: failed program was:" >&5
4557 cat conftest.$ac_ext >&5
4559 eval "ac_cv_lib_$ac_lib_var=no"
4562 LIBS="$ac_save_LIBS"
4565 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4566 echo "$ac_t""yes" 1>&6
4567 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
4569 echo "$ac_t""no" 1>&6
4590 if test "x$lt_cv_dlopen" != xno; then
4596 case $lt_cv_dlopen in
4598 save_CPPFLAGS="$CPPFLAGS"
4599 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
4601 save_LDFLAGS="$LDFLAGS"
4602 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
4605 LIBS="$lt_cv_dlopen_libs $LIBS"
4607 echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
4608 echo "configure:4609: checking whether a program can dlopen itself" >&5
4609 if eval "test \"`echo '$''{'lt_cv_dlopen_self'+set}'`\" = set"; then
4610 echo $ac_n "(cached) $ac_c" 1>&6
4612 if test "$cross_compiling" = yes; then :
4613 lt_cv_dlopen_self=cross
4615 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
4616 lt_status=$lt_dlunknown
4617 cat > conftest.$ac_ext <<EOF
4618 #line 4619 "configure"
4619 #include "confdefs.h"
4628 # define LT_DLGLOBAL RTLD_GLOBAL
4631 # define LT_DLGLOBAL DL_GLOBAL
4633 # define LT_DLGLOBAL 0
4637 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
4638 find out it does not work in some platform. */
4639 #ifndef LT_DLLAZY_OR_NOW
4641 # define LT_DLLAZY_OR_NOW RTLD_LAZY
4644 # define LT_DLLAZY_OR_NOW DL_LAZY
4647 # define LT_DLLAZY_OR_NOW RTLD_NOW
4650 # define LT_DLLAZY_OR_NOW DL_NOW
4652 # define LT_DLLAZY_OR_NOW 0
4660 extern "C" void exit (int);
4663 void fnord() { int i=42;}
4666 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
4667 int status = $lt_dlunknown;
4671 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
4672 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
4673 /* dlclose (self); */
4679 if { (eval echo configure:4680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
4680 (./conftest; exit; ) 2>/dev/null
4683 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
4684 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
4685 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
4688 # compilation failed
4689 lt_cv_dlopen_self=no
4697 echo "$ac_t""$lt_cv_dlopen_self" 1>&6
4699 if test "x$lt_cv_dlopen_self" = xyes; then
4700 LDFLAGS="$LDFLAGS $link_static_flag"
4701 echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
4702 echo "configure:4703: checking whether a statically linked program can dlopen itself" >&5
4703 if eval "test \"`echo '$''{'lt_cv_dlopen_self_static'+set}'`\" = set"; then
4704 echo $ac_n "(cached) $ac_c" 1>&6
4706 if test "$cross_compiling" = yes; then :
4707 lt_cv_dlopen_self_static=cross
4709 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
4710 lt_status=$lt_dlunknown
4711 cat > conftest.$ac_ext <<EOF
4712 #line 4713 "configure"
4713 #include "confdefs.h"
4722 # define LT_DLGLOBAL RTLD_GLOBAL
4725 # define LT_DLGLOBAL DL_GLOBAL
4727 # define LT_DLGLOBAL 0
4731 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
4732 find out it does not work in some platform. */
4733 #ifndef LT_DLLAZY_OR_NOW
4735 # define LT_DLLAZY_OR_NOW RTLD_LAZY
4738 # define LT_DLLAZY_OR_NOW DL_LAZY
4741 # define LT_DLLAZY_OR_NOW RTLD_NOW
4744 # define LT_DLLAZY_OR_NOW DL_NOW
4746 # define LT_DLLAZY_OR_NOW 0
4754 extern "C" void exit (int);
4757 void fnord() { int i=42;}
4760 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
4761 int status = $lt_dlunknown;
4765 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
4766 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
4767 /* dlclose (self); */
4773 if { (eval echo configure:4774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
4774 (./conftest; exit; ) 2>/dev/null
4777 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
4778 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
4779 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
4782 # compilation failed
4783 lt_cv_dlopen_self_static=no
4791 echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
4794 CPPFLAGS="$save_CPPFLAGS"
4795 LDFLAGS="$save_LDFLAGS"
4800 case $lt_cv_dlopen_self in
4801 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
4802 *) enable_dlopen_self=unknown ;;
4805 case $lt_cv_dlopen_self_static in
4806 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
4807 *) enable_dlopen_self_static=unknown ;;
4812 ## FIXME: this should be a separate macro
4814 if test "$enable_shared" = yes && test "$GCC" = yes; then
4815 case $archive_cmds in
4817 # FIXME: we may have to deal with multi-command sequences.
4820 # Test whether the compiler implicitly links with -lc since on some
4821 # systems, -lgcc has to come before -lc. If gcc already passes -lc
4822 # to ld, don't add -lc before -lgcc.
4823 echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
4824 echo "configure:4825: checking whether -lc should be explicitly linked in" >&5
4825 if eval "test \"`echo '$''{'lt_cv_archive_cmds_need_lc'+set}'`\" = set"; then
4826 echo $ac_n "(cached) $ac_c" 1>&6
4829 echo 'static int dummy;' > conftest.$ac_ext
4831 if { (eval echo configure:4832: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4834 libobjs=conftest.$ac_objext
4836 wl=$lt_cv_prog_cc_wl
4842 save_allow_undefined_flag=$allow_undefined_flag
4843 allow_undefined_flag=
4844 if { (eval echo configure:4845: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\") 1>&5; (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5; }
4846 lt_cv_archive_cmds_need_lc=no
4848 lt_cv_archive_cmds_need_lc=yes
4850 allow_undefined_flag=$save_allow_undefined_flag
4852 cat conftest.err 1>&5
4856 echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6
4860 need_lc=${lt_cv_archive_cmds_need_lc-yes}
4864 ## FIXME: this should be a separate macro
4866 # The second clause should only fire when bootstrapping the
4867 # libtool distribution, otherwise you forgot to ship ltmain.sh
4868 # with your package, and you will get complaints that there are
4869 # no rules to generate ltmain.sh.
4870 if test -f "$ltmain"; then
4873 # If there is no Makefile yet, we rely on a make rule to execute
4874 # `config.status --recheck' to rerun these tests and create the
4875 # libtool script then.
4876 test -f Makefile && make "$ltmain"
4879 if test -f "$ltmain"; then
4880 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
4883 echo creating $ofile
4885 # Now quote all the things that may contain metacharacters while being
4886 # careful not to overquote the AC_SUBSTed values. We take copies of the
4887 # variables and quote the copies for generation of the libtool script.
4888 for var in echo old_CC old_CFLAGS \
4889 AR AR_FLAGS CC LD LN_S NM SHELL \
4890 reload_flag reload_cmds wl \
4891 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
4892 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
4893 library_names_spec soname_spec \
4894 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
4895 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
4896 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
4897 old_striplib striplib file_magic_cmd export_symbols_cmds \
4898 deplibs_check_method allow_undefined_flag no_undefined_flag \
4899 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
4900 global_symbol_to_c_name_address \
4901 hardcode_libdir_flag_spec hardcode_libdir_separator \
4902 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
4903 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
4906 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
4907 old_postinstall_cmds | old_postuninstall_cmds | \
4908 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
4909 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
4910 postinstall_cmds | postuninstall_cmds | \
4911 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
4912 # Double-quote double-evaled strings.
4913 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
4916 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
4921 cat <<__EOF__ > "${ofile}T"
4924 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
4925 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4926 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
4928 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
4929 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
4931 # This program is free software; you can redistribute it and/or modify
4932 # it under the terms of the GNU General Public License as published by
4933 # the Free Software Foundation; either version 2 of the License, or
4934 # (at your option) any later version.
4936 # This program is distributed in the hope that it will be useful, but
4937 # WITHOUT ANY WARRANTY; without even the implied warranty of
4938 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
4939 # General Public License for more details.
4941 # You should have received a copy of the GNU General Public License
4942 # along with this program; if not, write to the Free Software
4943 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
4945 # As a special exception to the GNU General Public License, if you
4946 # distribute this file as part of a program that contains a
4947 # configuration script generated by Autoconf, you may include it under
4948 # the same distribution terms that you use for the rest of that program.
4950 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
4951 Xsed="sed -e s/^X//"
4953 # The HP-UX ksh and POSIX shell print the target directory to stdout
4955 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
4957 # ### BEGIN LIBTOOL CONFIG
4959 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4961 # Shell to use when invoking shell scripts.
4964 # Whether or not to build shared libraries.
4965 build_libtool_libs=$enable_shared
4967 # Whether or not to build static libraries.
4968 build_old_libs=$enable_static
4970 # Whether or not to add -lc for building shared libraries.
4971 build_libtool_need_lc=$need_lc
4973 # Whether or not to optimize for fast installation.
4974 fast_install=$enable_fast_install
4977 host_alias=$host_alias
4980 # An echo program that does not interpret backslashes.
4985 AR_FLAGS=$lt_AR_FLAGS
4987 # The default C compiler.
4990 # Is the compiler the GNU C compiler?
4993 # The linker used to build libraries.
4996 # Whether we need hard or soft links.
4999 # A BSD-compatible nm program.
5002 # A symbol stripping program
5005 # Used to examine libraries when file_magic_cmd begins "file"
5006 MAGIC_CMD=$MAGIC_CMD
5008 # Used on cygwin: DLL creation program.
5011 # Used on cygwin: object dumper.
5014 # Used on cygwin: assembler.
5017 # The name of the directory that contains temporary libtool files.
5020 # How to create reloadable object files.
5021 reload_flag=$lt_reload_flag
5022 reload_cmds=$lt_reload_cmds
5024 # How to pass a linker flag through the compiler.
5027 # Object file suffix (normally "o").
5030 # Old archive suffix (normally "a").
5033 # Executable file suffix (normally "").
5036 # Additional compiler flags for building library objects.
5037 pic_flag=$lt_pic_flag
5040 # Does compiler simultaneously support -c and -o options?
5041 compiler_c_o=$lt_compiler_c_o
5043 # Can we write directly to a .lo ?
5044 compiler_o_lo=$lt_compiler_o_lo
5046 # Must we lock files when doing compilation ?
5047 need_locks=$lt_need_locks
5049 # Do we need the lib prefix for modules?
5050 need_lib_prefix=$need_lib_prefix
5052 # Do we need a version for libraries?
5053 need_version=$need_version
5055 # Whether dlopen is supported.
5056 dlopen_support=$enable_dlopen
5058 # Whether dlopen of programs is supported.
5059 dlopen_self=$enable_dlopen_self
5061 # Whether dlopen of statically linked programs is supported.
5062 dlopen_self_static=$enable_dlopen_self_static
5064 # Compiler flag to prevent dynamic linking.
5065 link_static_flag=$lt_link_static_flag
5067 # Compiler flag to turn off builtin functions.
5068 no_builtin_flag=$lt_no_builtin_flag
5070 # Compiler flag to allow reflexive dlopens.
5071 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
5073 # Compiler flag to generate shared objects directly from archives.
5074 whole_archive_flag_spec=$lt_whole_archive_flag_spec
5076 # Compiler flag to generate thread-safe objects.
5077 thread_safe_flag_spec=$lt_thread_safe_flag_spec
5079 # Library versioning type.
5080 version_type=$version_type
5082 # Format of library name prefix.
5083 libname_spec=$lt_libname_spec
5085 # List of archive names. First name is the real one, the rest are links.
5086 # The last name is the one that the linker finds with -lNAME.
5087 library_names_spec=$lt_library_names_spec
5089 # The coded name of the library, if different from the real name.
5090 soname_spec=$lt_soname_spec
5092 # Commands used to build and install an old-style archive.
5094 old_archive_cmds=$lt_old_archive_cmds
5095 old_postinstall_cmds=$lt_old_postinstall_cmds
5096 old_postuninstall_cmds=$lt_old_postuninstall_cmds
5098 # Create an old-style archive from a shared archive.
5099 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
5101 # Create a temporary old-style archive to link instead of a shared archive.
5102 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
5104 # Commands used to build and install a shared archive.
5105 archive_cmds=$lt_archive_cmds
5106 archive_expsym_cmds=$lt_archive_expsym_cmds
5107 postinstall_cmds=$lt_postinstall_cmds
5108 postuninstall_cmds=$lt_postuninstall_cmds
5110 # Commands to strip libraries.
5111 old_striplib=$lt_old_striplib
5112 striplib=$lt_striplib
5114 # Method to check whether dependent libraries are shared objects.
5115 deplibs_check_method=$lt_deplibs_check_method
5117 # Command to use when deplibs_check_method == file_magic.
5118 file_magic_cmd=$lt_file_magic_cmd
5120 # Flag that allows shared libraries with undefined symbols to be built.
5121 allow_undefined_flag=$lt_allow_undefined_flag
5123 # Flag that forces no undefined symbols.
5124 no_undefined_flag=$lt_no_undefined_flag
5126 # Commands used to finish a libtool library installation in a directory.
5127 finish_cmds=$lt_finish_cmds
5129 # Same as above, but a single script fragment to be evaled but not shown.
5130 finish_eval=$lt_finish_eval
5132 # Take the output of nm and produce a listing of raw symbols and C names.
5133 global_symbol_pipe=$lt_global_symbol_pipe
5135 # Transform the output of nm in a proper C declaration
5136 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
5138 # Transform the output of nm in a C name address pair
5139 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
5141 # This is the shared library runtime path variable.
5142 runpath_var=$runpath_var
5144 # This is the shared library path variable.
5145 shlibpath_var=$shlibpath_var
5147 # Is shlibpath searched before the hard-coded library search path?
5148 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
5150 # How to hardcode a shared library path into an executable.
5151 hardcode_action=$hardcode_action
5153 # Whether we should hardcode library paths into libraries.
5154 hardcode_into_libs=$hardcode_into_libs
5156 # Flag to hardcode \$libdir into a binary during linking.
5157 # This must work even if \$libdir does not exist.
5158 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
5160 # Whether we need a single -rpath flag with a separated argument.
5161 hardcode_libdir_separator=$lt_hardcode_libdir_separator
5163 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
5165 hardcode_direct=$hardcode_direct
5167 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
5169 hardcode_minus_L=$hardcode_minus_L
5171 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
5172 # the resulting binary.
5173 hardcode_shlibpath_var=$hardcode_shlibpath_var
5175 # Variables whose values should be saved in libtool wrapper scripts and
5176 # restored at relink time.
5177 variables_saved_for_relink="$variables_saved_for_relink"
5179 # Whether libtool must link a program against all its dependency libraries.
5180 link_all_deplibs=$link_all_deplibs
5182 # Compile-time system search path for libraries
5183 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
5185 # Run-time system search path for libraries
5186 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
5188 # Fix the shell variable \$srcfile for the compiler.
5189 fix_srcfile_path="$fix_srcfile_path"
5191 # Set to yes if exported symbols are required.
5192 always_export_symbols=$always_export_symbols
5194 # The commands to list exported symbols.
5195 export_symbols_cmds=$lt_export_symbols_cmds
5197 # The commands to extract the exported symbol list from a shared archive.
5198 extract_expsyms_cmds=$lt_extract_expsyms_cmds
5200 # Symbols that should not be listed in the preloaded symbols.
5201 exclude_expsyms=$lt_exclude_expsyms
5203 # Symbols that must always be exported.
5204 include_expsyms=$lt_include_expsyms
5206 # ### END LIBTOOL CONFIG
5212 cat <<\EOF >> "${ofile}T"
5214 # AIX sometimes has problems with the GCC collect2 program. For some
5215 # reason, if we set the COLLECT_NAMES environment variable, the problems
5216 # vanish in a puff of smoke.
5217 if test "X${COLLECT_NAMES+set}" != Xset; then
5219 export COLLECT_NAMES
5226 cygwin* | mingw* | pw32* | os2*)
5227 cat <<'EOF' >> "${ofile}T"
5228 # This is a source program that is used to create dlls on Windows
5229 # Don't remove nor modify the starting and closing comments
5230 # /* ltdll.c starts here */
5231 # #define WIN32_LEAN_AND_MEAN
5232 # #include <windows.h>
5233 # #undef WIN32_LEAN_AND_MEAN
5234 # #include <stdio.h>
5236 # #ifndef __CYGWIN__
5237 # # ifdef __CYGWIN32__
5238 # # define __CYGWIN__ __CYGWIN32__
5242 # #ifdef __cplusplus
5245 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
5246 # #ifdef __cplusplus
5251 # #include <cygwin/cygwin_dll.h>
5252 # DECLARE_CYGWIN_DLL( DllMain );
5254 # HINSTANCE __hDllInstance_base;
5257 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
5259 # __hDllInstance_base = hInst;
5262 # /* ltdll.c ends here */
5263 # This is a source program that is used to create import libraries
5264 # on Windows for dlls which lack them. Don't remove nor modify the
5265 # starting and closing comments
5266 # /* impgen.c starts here */
5267 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
5269 # This file is part of GNU libtool.
5271 # This program is free software; you can redistribute it and/or modify
5272 # it under the terms of the GNU General Public License as published by
5273 # the Free Software Foundation; either version 2 of the License, or
5274 # (at your option) any later version.
5276 # This program is distributed in the hope that it will be useful,
5277 # but WITHOUT ANY WARRANTY; without even the implied warranty of
5278 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
5279 # GNU General Public License for more details.
5281 # You should have received a copy of the GNU General Public License
5282 # along with this program; if not, write to the Free Software
5283 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
5286 # #include <stdio.h> /* for printf() */
5287 # #include <unistd.h> /* for open(), lseek(), read() */
5288 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
5289 # #include <string.h> /* for strdup() */
5291 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
5293 # #define O_BINARY 0
5296 # static unsigned int
5297 # pe_get16 (fd, offset)
5301 # unsigned char b[2];
5302 # lseek (fd, offset, SEEK_SET);
5304 # return b[0] + (b[1]<<8);
5307 # static unsigned int
5308 # pe_get32 (fd, offset)
5312 # unsigned char b[4];
5313 # lseek (fd, offset, SEEK_SET);
5315 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
5318 # static unsigned int
5322 # unsigned char *b = ptr;
5323 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
5332 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
5333 # unsigned long export_rva, export_size, nsections, secptr, expptr;
5334 # unsigned long name_rvas, nexp;
5335 # unsigned char *expdata, *erva;
5336 # char *filename, *dll_name;
5338 # filename = argv[1];
5340 # dll = open(filename, O_RDONLY|O_BINARY);
5344 # dll_name = filename;
5346 # for (i=0; filename[i]; i++)
5347 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
5348 # dll_name = filename + i +1;
5350 # pe_header_offset = pe_get32 (dll, 0x3c);
5351 # opthdr_ofs = pe_header_offset + 4 + 20;
5352 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
5354 # if (num_entries < 1) /* no exports */
5357 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
5358 # export_size = pe_get32 (dll, opthdr_ofs + 100);
5359 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
5360 # secptr = (pe_header_offset + 4 + 20 +
5361 # pe_get16 (dll, pe_header_offset + 4 + 16));
5364 # for (i = 0; i < nsections; i++)
5367 # unsigned long secptr1 = secptr + 40 * i;
5368 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
5369 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
5370 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
5371 # lseek(dll, secptr1, SEEK_SET);
5372 # read(dll, sname, 8);
5373 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
5375 # expptr = fptr + (export_rva - vaddr);
5376 # if (export_rva + export_size > vaddr + vsize)
5377 # export_size = vsize - (export_rva - vaddr);
5382 # expdata = (unsigned char*)malloc(export_size);
5383 # lseek (dll, expptr, SEEK_SET);
5384 # read (dll, expdata, export_size);
5385 # erva = expdata - export_rva;
5387 # nexp = pe_as32 (expdata+24);
5388 # name_rvas = pe_as32 (expdata+32);
5390 # printf ("EXPORTS\n");
5391 # for (i = 0; i<nexp; i++)
5393 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
5394 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
5399 # /* impgen.c ends here */
5405 # We use sed instead of cat because bash on DJGPP gets confused if
5406 # if finds mixed CR/LF and LF-only lines. Since sed operates in
5407 # text mode, it properly converts lines to CR/LF. This bash problem
5408 # is reportedly fixed, but why not run on old versions too?
5409 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
5411 mv -f "${ofile}T" "$ofile" || \
5412 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
5422 # This can be used to rebuild libtool when needed
5423 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
5425 # Always use our own libtool.
5426 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5428 # Prevent multiple expansion
5433 LIBTOOL='$(top)/libtool'
5434 LIBTOOLCC='$(top)/libtool --mode=compile'
5435 LIBTOOLLD='$(top)/libtool --mode=link'
5436 CCOUTPUT='-c -o $@ $<'
5439 # Make sure we can run config.sub.
5440 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
5441 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
5444 echo $ac_n "checking host system type""... $ac_c" 1>&6
5445 echo "configure:5446: checking host system type" >&5
5448 case "$host_alias" in
5452 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
5453 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
5455 *) host_alias=$nonopt ;;
5459 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
5460 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5461 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5462 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5463 echo "$ac_t""$host" 1>&6
5470 if test x"$compiler_c_o" = xyes ; then
5471 CCOUTPUT='-c -o $@ $<'
5473 CCOUTPUT='-c $< && if test x"$(@F)" != x"$@" ; then mv $(@F) $@ ; fi'
5485 # Check whether --with-control-dir or --without-control-dir was given.
5486 if test "${with_control_dir+set}" = set; then
5487 withval="$with_control_dir"
5488 CONTROLDIR=$with_control_dir
5490 CONTROLDIR=$prefix/bin/control
5494 # Check whether --with-db-dir or --without-db-dir was given.
5495 if test "${with_db_dir+set}" = set; then
5496 withval="$with_db_dir"
5503 # Check whether --with-doc-dir or --without-doc-dir was given.
5504 if test "${with_doc_dir+set}" = set; then
5505 withval="$with_doc_dir"
5506 DOCDIR=$with_doc_dir
5512 # Check whether --with-etc-dir or --without-etc-dir was given.
5513 if test "${with_etc_dir+set}" = set; then
5514 withval="$with_etc_dir"
5515 ETCDIR=$with_etc_dir
5521 # Check whether --with-filter-dir or --without-filter-dir was given.
5522 if test "${with_filter_dir+set}" = set; then
5523 withval="$with_filter_dir"
5524 FILTERDIR=$with_filter_dir
5526 FILTERDIR=$prefix/bin/filter
5530 # Check whether --with-lib-dir or --without-lib-dir was given.
5531 if test "${with_lib_dir+set}" = set; then
5532 withval="$with_lib_dir"
5533 LIBDIR=$with_lib_dir
5539 # Check whether --with-log-dir or --without-log-dir was given.
5540 if test "${with_log_dir+set}" = set; then
5541 withval="$with_log_dir"
5542 LOGDIR=$with_log_dir
5548 # Check whether --with-run-dir or --without-run-dir was given.
5549 if test "${with_run_dir+set}" = set; then
5550 withval="$with_run_dir"
5551 RUNDIR=$with_run_dir
5557 # Check whether --with-spool-dir or --without-spool-dir was given.
5558 if test "${with_spool_dir+set}" = set; then
5559 withval="$with_spool_dir"
5560 SPOOLDIR=$with_spool_dir
5562 SPOOLDIR=$prefix/spool
5566 # Check whether --with-tmp-dir or --without-tmp-dir was given.
5567 if test "${with_tmp_dir+set}" = set; then
5568 withval="$with_tmp_dir"
5569 tmpdir=$with_tmp_dir
5576 # Check whether --with-syslog-facility or --without-syslog-facility was given.
5577 if test "${with_syslog_facility+set}" = set; then
5578 withval="$with_syslog_facility"
5579 SYSLOG_FACILITY=$with_syslog_facility
5581 SYSLOG_FACILITY=none
5587 # Check whether --with-news-user or --without-news-user was given.
5588 if test "${with_news_user+set}" = set; then
5589 withval="$with_news_user"
5590 NEWSUSER=$with_news_user
5596 cat >> confdefs.h <<EOF
5597 #define NEWSUSER "$NEWSUSER"
5600 # Check whether --with-news-group or --without-news-group was given.
5601 if test "${with_news_group+set}" = set; then
5602 withval="$with_news_group"
5603 NEWSGRP=$with_news_group
5609 cat >> confdefs.h <<EOF
5610 #define NEWSGRP "$NEWSGRP"
5613 # Check whether --with-news-master or --without-news-master was given.
5614 if test "${with_news_master+set}" = set; then
5615 withval="$with_news_master"
5616 NEWSMASTER=$with_news_master
5622 cat >> confdefs.h <<EOF
5623 #define NEWSMASTER "$NEWSMASTER"
5631 # Check whether --with-news-umask or --without-news-umask was given.
5632 if test "${with_news_umask+set}" = set; then
5633 withval="$with_news_umask"
5634 with_news_umask=`echo "$with_news_umask" | sed 's/^0*//'`
5635 if test "x$with_news_umask" = x22 ; then
5641 if test "x$with_news_umask" != x2 ; then
5642 { echo "configure: error: Valid umasks are 02 or 022" 1>&2; exit 1; }
5651 cat >> confdefs.h <<EOF
5652 #define ARTFILE_MODE $FILEMODE
5655 cat >> confdefs.h <<EOF
5656 #define BATCHFILE_MODE $FILEMODE
5659 cat >> confdefs.h <<EOF
5660 #define GROUPDIR_MODE $DIRMODE
5663 cat >> confdefs.h <<EOF
5664 #define NEWSUMASK $NEWSUMASK
5669 # Check whether --enable-setgid-inews or --disable-setgid-inews was given.
5670 if test "${enable_setgid_inews+set}" = set; then
5671 enableval="$enable_setgid_inews"
5672 if test "x$enableval" = xyes ; then
5681 # Check whether --enable-uucp-rnews or --disable-uucp-rnews was given.
5682 if test "${enable_uucp_rnews+set}" = set; then
5683 enableval="$enable_uucp_rnews"
5684 if test "x$enableval" = xyes ; then
5693 # Check whether --with-log-compress or --without-log-compress was given.
5694 if test "${with_log_compress+set}" = set; then
5695 withval="$with_log_compress"
5696 LOG_COMPRESS=$with_log_compress
5701 case "$LOG_COMPRESS" in
5702 bzip2) LOG_COMPRESSEXT=".bz2" ;;
5703 gzip) LOG_COMPRESSEXT=".gz" ;;
5704 *) LOG_COMPRESSEXT=".Z" ;;
5709 # Check whether --with-innd-port or --without-innd-port was given.
5710 if test "${with_innd_port+set}" = set; then
5711 withval="$with_innd_port"
5712 cat >> confdefs.h <<EOF
5713 #define INND_PORT $with_innd_port
5719 # Check whether --enable-ipv6 or --disable-ipv6 was given.
5720 if test "${enable_ipv6+set}" = set; then
5721 enableval="$enable_ipv6"
5722 if test "x$enableval" = xyes ; then
5723 inn_enable_ipv6_tests=yes
5724 cat >> confdefs.h <<\EOF
5725 #define HAVE_INET6 1
5732 # Check whether --with-max-sockets or --without-max-sockets was given.
5733 if test "${with_max_sockets+set}" = set; then
5734 withval="$with_max_sockets"
5740 cat >> confdefs.h <<EOF
5741 #define MAX_SOCKETS $with_max_sockets
5745 # Check whether --enable-tagged-hash or --disable-tagged-hash was given.
5746 if test "${enable_tagged_hash+set}" = set; then
5747 enableval="$enable_tagged_hash"
5748 if test "x$enableval" = xyes ; then
5749 DO_DBZ_TAGGED_HASH=DO
5750 cat >> confdefs.h <<\EOF
5751 #define DO_TAGGED_HASH 1
5755 DO_DBZ_TAGGED_HASH=DONT
5761 inn_enable_keywords=0
5762 # Check whether --enable-keywords or --disable-keywords was given.
5763 if test "${enable_keywords+set}" = set; then
5764 enableval="$enable_keywords"
5765 if test x"$enableval" = xyes ; then
5766 inn_enable_keywords=1
5770 cat >> confdefs.h <<EOF
5771 #define DO_KEYWORDS $inn_enable_keywords
5775 # Check whether --enable-largefiles or --disable-largefiles was given.
5776 if test "${enable_largefiles+set}" = set; then
5777 enableval="$enable_largefiles"
5778 case "${enableval}" in
5779 yes) inn_enable_largefiles=yes
5780 if test x"$DO_DBZ_TAGGED_HASH" = xDO ; then
5781 { echo "configure: error: --enable-tagged-hash conflicts with --enable-largefiles." 1>&2; exit 1; }
5783 no) inn_enable_largefiles=no ;;
5784 *) { echo "configure: error: invalid argument to --enable-largefiles" 1>&2; exit 1; } ;;
5789 # Check whether --with-sendmail or --without-sendmail was given.
5790 if test "${with_sendmail+set}" = set; then
5791 withval="$with_sendmail"
5792 SENDMAIL=$with_sendmail
5796 # Check whether --with-kerberos or --without-kerberos was given.
5797 if test "${with_kerberos+set}" = set; then
5798 withval="$with_kerberos"
5799 if test x"$with_kerberos" != xno ; then
5800 KRB5_LDFLAGS="-L$with_kerberos/lib"
5801 KRB5_INC="-I$with_kerberos/include"
5806 # Check whether --with-perl or --without-perl was given.
5807 if test "${with_perl+set}" = set; then
5808 withval="$with_perl"
5809 case "${withval}" in
5811 cat >> confdefs.h <<\EOF
5817 *) { echo "configure: error: invalid argument to --with-perl" 1>&2; exit 1; } ;;
5824 # Check whether --with-python or --without-python was given.
5825 if test "${with_python+set}" = set; then
5826 withval="$with_python"
5827 case "${withval}" in
5828 yes) DO_PYTHON=define
5829 cat >> confdefs.h <<\EOF
5834 no) DO_PYTHON=DONT ;;
5835 *) { echo "configure: error: invalid argument to --with-python" 1>&2; exit 1; } ;;
5842 HOSTNAME=`hostname 2> /dev/null || uname -n`
5845 if test $ac_cv_prog_gcc = yes; then
5846 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
5847 echo "configure:5848: checking whether ${CC-cc} needs -traditional" >&5
5848 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
5849 echo $ac_n "(cached) $ac_c" 1>&6
5851 ac_pattern="Autoconf.*'x'"
5852 cat > conftest.$ac_ext <<EOF
5853 #line 5854 "configure"
5854 #include "confdefs.h"
5858 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5859 egrep "$ac_pattern" >/dev/null 2>&1; then
5861 ac_cv_prog_gcc_traditional=yes
5864 ac_cv_prog_gcc_traditional=no
5869 if test $ac_cv_prog_gcc_traditional = no; then
5870 cat > conftest.$ac_ext <<EOF
5871 #line 5872 "configure"
5872 #include "confdefs.h"
5876 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5877 egrep "$ac_pattern" >/dev/null 2>&1; then
5879 ac_cv_prog_gcc_traditional=yes
5886 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
5887 if test $ac_cv_prog_gcc_traditional = yes; then
5888 CC="$CC -traditional"
5892 # Extract the first word of "flex", so it can be a program name with args.
5893 set dummy flex; ac_word=$2
5894 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5895 echo "configure:5896: checking for $ac_word" >&5
5896 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
5897 echo $ac_n "(cached) $ac_c" 1>&6
5899 if test -n "$LEX"; then
5900 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5902 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5904 for ac_dir in $ac_dummy; do
5905 test -z "$ac_dir" && ac_dir=.
5906 if test -f $ac_dir/$ac_word; then
5907 ac_cv_prog_LEX="flex"
5912 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
5915 LEX="$ac_cv_prog_LEX"
5916 if test -n "$LEX"; then
5917 echo "$ac_t""$LEX" 1>&6
5919 echo "$ac_t""no" 1>&6
5922 if test -z "$LEXLIB"
5928 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
5929 echo "configure:5930: checking for yywrap in -l$ac_lib" >&5
5930 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
5931 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5932 echo $ac_n "(cached) $ac_c" 1>&6
5934 ac_save_LIBS="$LIBS"
5935 LIBS="-l$ac_lib $LIBS"
5936 cat > conftest.$ac_ext <<EOF
5937 #line 5938 "configure"
5938 #include "confdefs.h"
5939 /* Override any gcc2 internal prototype to avoid an error. */
5940 /* We use char because int might match the return type of a gcc2
5941 builtin and then its argument prototype would still apply. */
5948 if { (eval echo configure:5949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5950 eval "ac_cv_lib_$ac_lib_var=yes"
5952 echo "configure: failed program was:" >&5
5953 cat conftest.$ac_ext >&5
5955 eval "ac_cv_lib_$ac_lib_var=no"
5958 LIBS="$ac_save_LIBS"
5961 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5962 echo "$ac_t""yes" 1>&6
5965 echo "$ac_t""no" 1>&6
5970 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
5971 echo "configure:5972: checking whether ${MAKE-make} sets \${MAKE}" >&5
5972 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
5973 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
5974 echo $ac_n "(cached) $ac_c" 1>&6
5976 cat > conftestmake <<\EOF
5978 @echo 'ac_maketemp="${MAKE}"'
5980 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5981 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
5982 if test -n "$ac_maketemp"; then
5983 eval ac_cv_prog_make_${ac_make}_set=yes
5985 eval ac_cv_prog_make_${ac_make}_set=no
5989 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5990 echo "$ac_t""yes" 1>&6
5993 echo "$ac_t""no" 1>&6
5994 SET_MAKE="MAKE=${MAKE-make}"
5997 # Extract the first word of "ranlib", so it can be a program name with args.
5998 set dummy ranlib; ac_word=$2
5999 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6000 echo "configure:6001: checking for $ac_word" >&5
6001 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
6002 echo $ac_n "(cached) $ac_c" 1>&6
6004 if test -n "$RANLIB"; then
6005 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6007 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6009 for ac_dir in $ac_dummy; do
6010 test -z "$ac_dir" && ac_dir=.
6011 if test -f $ac_dir/$ac_word; then
6012 ac_cv_prog_RANLIB="ranlib"
6017 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
6020 RANLIB="$ac_cv_prog_RANLIB"
6021 if test -n "$RANLIB"; then
6022 echo "$ac_t""$RANLIB" 1>&6
6024 echo "$ac_t""no" 1>&6
6027 for ac_prog in 'bison -y' byacc
6029 # Extract the first word of "$ac_prog", so it can be a program name with args.
6030 set dummy $ac_prog; ac_word=$2
6031 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6032 echo "configure:6033: checking for $ac_word" >&5
6033 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
6034 echo $ac_n "(cached) $ac_c" 1>&6
6036 if test -n "$YACC"; then
6037 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6039 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6041 for ac_dir in $ac_dummy; do
6042 test -z "$ac_dir" && ac_dir=.
6043 if test -f $ac_dir/$ac_word; then
6044 ac_cv_prog_YACC="$ac_prog"
6051 YACC="$ac_cv_prog_YACC"
6052 if test -n "$YACC"; then
6053 echo "$ac_t""$YACC" 1>&6
6055 echo "$ac_t""no" 1>&6
6058 test -n "$YACC" && break
6060 test -n "$YACC" || YACC="yacc"
6065 CFLAGS="-traditional-cpp $CFLAGS"
6072 if test x"$GCC" != xyes ; then
6073 CFLAGS="$CFLAGS -Ae"
6077 LDFLAGS="$LDFLAGS -g"
6084 LDFLAGS="$LDFLAGS -multiply_defined suppress"
6087 *UnixWare*|*unixware*|*-sco3*)
6088 if test x"$GCC" != xyes ; then
6089 CFLAGS="$CFLAGS -Kalloca"
6094 # Extract the first word of "ctags", so it can be a program name with args.
6095 set dummy ctags; ac_word=$2
6096 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6097 echo "configure:6098: checking for $ac_word" >&5
6098 if eval "test \"`echo '$''{'ac_cv_path_CTAGS'+set}'`\" = set"; then
6099 echo $ac_n "(cached) $ac_c" 1>&6
6103 ac_cv_path_CTAGS="$CTAGS" # Let the user override the test with a path.
6106 ac_cv_path_CTAGS="$CTAGS" # Let the user override the test with a dos path.
6109 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6111 for ac_dir in $ac_dummy; do
6112 test -z "$ac_dir" && ac_dir=.
6113 if test -f $ac_dir/$ac_word; then
6114 ac_cv_path_CTAGS="$ac_dir/$ac_word"
6119 test -z "$ac_cv_path_CTAGS" && ac_cv_path_CTAGS="echo"
6123 CTAGS="$ac_cv_path_CTAGS"
6124 if test -n "$CTAGS"; then
6125 echo "$ac_t""$CTAGS" 1>&6
6127 echo "$ac_t""no" 1>&6
6130 if test x"$CTAGS" != xecho ; then
6131 CTAGS="$CTAGS -t -w"
6136 # Extract the first word of "awk", so it can be a program name with args.
6137 set dummy awk; ac_word=$2
6138 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6139 echo "configure:6140: checking for $ac_word" >&5
6140 if eval "test \"`echo '$''{'ac_cv_path__PATH_AWK'+set}'`\" = set"; then
6141 echo $ac_n "(cached) $ac_c" 1>&6
6143 case "$_PATH_AWK" in
6145 ac_cv_path__PATH_AWK="$_PATH_AWK" # Let the user override the test with a path.
6148 ac_cv_path__PATH_AWK="$_PATH_AWK" # Let the user override the test with a dos path.
6151 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6153 for ac_dir in $ac_dummy; do
6154 test -z "$ac_dir" && ac_dir=.
6155 if test -f $ac_dir/$ac_word; then
6156 ac_cv_path__PATH_AWK="$ac_dir/$ac_word"
6164 _PATH_AWK="$ac_cv_path__PATH_AWK"
6165 if test -n "$_PATH_AWK"; then
6166 echo "$ac_t""$_PATH_AWK" 1>&6
6168 echo "$ac_t""no" 1>&6
6171 if test -z "${_PATH_AWK}" ; then
6172 { echo "configure: error: awk was not found in path and is required" 1>&2; exit 1; }
6174 # Extract the first word of "egrep", so it can be a program name with args.
6175 set dummy egrep; ac_word=$2
6176 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6177 echo "configure:6178: checking for $ac_word" >&5
6178 if eval "test \"`echo '$''{'ac_cv_path__PATH_EGREP'+set}'`\" = set"; then
6179 echo $ac_n "(cached) $ac_c" 1>&6
6181 case "$_PATH_EGREP" in
6183 ac_cv_path__PATH_EGREP="$_PATH_EGREP" # Let the user override the test with a path.
6186 ac_cv_path__PATH_EGREP="$_PATH_EGREP" # Let the user override the test with a dos path.
6189 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6191 for ac_dir in $ac_dummy; do
6192 test -z "$ac_dir" && ac_dir=.
6193 if test -f $ac_dir/$ac_word; then
6194 ac_cv_path__PATH_EGREP="$ac_dir/$ac_word"
6202 _PATH_EGREP="$ac_cv_path__PATH_EGREP"
6203 if test -n "$_PATH_EGREP"; then
6204 echo "$ac_t""$_PATH_EGREP" 1>&6
6206 echo "$ac_t""no" 1>&6
6209 if test -z "${_PATH_EGREP}" ; then
6210 { echo "configure: error: egrep was not found in path and is required" 1>&2; exit 1; }
6212 # Extract the first word of "perl", so it can be a program name with args.
6213 set dummy perl; ac_word=$2
6214 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6215 echo "configure:6216: checking for $ac_word" >&5
6216 if eval "test \"`echo '$''{'ac_cv_path__PATH_PERL'+set}'`\" = set"; then
6217 echo $ac_n "(cached) $ac_c" 1>&6
6219 case "$_PATH_PERL" in
6221 ac_cv_path__PATH_PERL="$_PATH_PERL" # Let the user override the test with a path.
6224 ac_cv_path__PATH_PERL="$_PATH_PERL" # Let the user override the test with a dos path.
6227 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6229 for ac_dir in $ac_dummy; do
6230 test -z "$ac_dir" && ac_dir=.
6231 if test -f $ac_dir/$ac_word; then
6232 ac_cv_path__PATH_PERL="$ac_dir/$ac_word"
6240 _PATH_PERL="$ac_cv_path__PATH_PERL"
6241 if test -n "$_PATH_PERL"; then
6242 echo "$ac_t""$_PATH_PERL" 1>&6
6244 echo "$ac_t""no" 1>&6
6247 if test -z "${_PATH_PERL}" ; then
6248 { echo "configure: error: perl was not found in path and is required" 1>&2; exit 1; }
6250 # Extract the first word of "sh", so it can be a program name with args.
6251 set dummy sh; ac_word=$2
6252 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6253 echo "configure:6254: checking for $ac_word" >&5
6254 if eval "test \"`echo '$''{'ac_cv_path__PATH_SH'+set}'`\" = set"; then
6255 echo $ac_n "(cached) $ac_c" 1>&6
6259 ac_cv_path__PATH_SH="$_PATH_SH" # Let the user override the test with a path.
6262 ac_cv_path__PATH_SH="$_PATH_SH" # Let the user override the test with a dos path.
6265 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6267 for ac_dir in $ac_dummy; do
6268 test -z "$ac_dir" && ac_dir=.
6269 if test -f $ac_dir/$ac_word; then
6270 ac_cv_path__PATH_SH="$ac_dir/$ac_word"
6278 _PATH_SH="$ac_cv_path__PATH_SH"
6279 if test -n "$_PATH_SH"; then
6280 echo "$ac_t""$_PATH_SH" 1>&6
6282 echo "$ac_t""no" 1>&6
6285 if test -z "${_PATH_SH}" ; then
6286 { echo "configure: error: sh was not found in path and is required" 1>&2; exit 1; }
6288 # Extract the first word of "sed", so it can be a program name with args.
6289 set dummy sed; ac_word=$2
6290 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6291 echo "configure:6292: checking for $ac_word" >&5
6292 if eval "test \"`echo '$''{'ac_cv_path__PATH_SED'+set}'`\" = set"; then
6293 echo $ac_n "(cached) $ac_c" 1>&6
6295 case "$_PATH_SED" in
6297 ac_cv_path__PATH_SED="$_PATH_SED" # Let the user override the test with a path.
6300 ac_cv_path__PATH_SED="$_PATH_SED" # Let the user override the test with a dos path.
6303 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6305 for ac_dir in $ac_dummy; do
6306 test -z "$ac_dir" && ac_dir=.
6307 if test -f $ac_dir/$ac_word; then
6308 ac_cv_path__PATH_SED="$ac_dir/$ac_word"
6316 _PATH_SED="$ac_cv_path__PATH_SED"
6317 if test -n "$_PATH_SED"; then
6318 echo "$ac_t""$_PATH_SED" 1>&6
6320 echo "$ac_t""no" 1>&6
6323 if test -z "${_PATH_SED}" ; then
6324 { echo "configure: error: sed was not found in path and is required" 1>&2; exit 1; }
6326 # Extract the first word of "sort", so it can be a program name with args.
6327 set dummy sort; ac_word=$2
6328 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6329 echo "configure:6330: checking for $ac_word" >&5
6330 if eval "test \"`echo '$''{'ac_cv_path__PATH_SORT'+set}'`\" = set"; then
6331 echo $ac_n "(cached) $ac_c" 1>&6
6333 case "$_PATH_SORT" in
6335 ac_cv_path__PATH_SORT="$_PATH_SORT" # Let the user override the test with a path.
6338 ac_cv_path__PATH_SORT="$_PATH_SORT" # Let the user override the test with a dos path.
6341 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6343 for ac_dir in $ac_dummy; do
6344 test -z "$ac_dir" && ac_dir=.
6345 if test -f $ac_dir/$ac_word; then
6346 ac_cv_path__PATH_SORT="$ac_dir/$ac_word"
6354 _PATH_SORT="$ac_cv_path__PATH_SORT"
6355 if test -n "$_PATH_SORT"; then
6356 echo "$ac_t""$_PATH_SORT" 1>&6
6358 echo "$ac_t""no" 1>&6
6361 if test -z "${_PATH_SORT}" ; then
6362 { echo "configure: error: sort was not found in path and is required" 1>&2; exit 1; }
6366 # Extract the first word of "$ac_prog", so it can be a program name with args.
6367 set dummy $ac_prog; ac_word=$2
6368 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6369 echo "configure:6370: checking for $ac_word" >&5
6370 if eval "test \"`echo '$''{'ac_cv_path__PATH_UUX'+set}'`\" = set"; then
6371 echo $ac_n "(cached) $ac_c" 1>&6
6373 case "$_PATH_UUX" in
6375 ac_cv_path__PATH_UUX="$_PATH_UUX" # Let the user override the test with a path.
6378 ac_cv_path__PATH_UUX="$_PATH_UUX" # Let the user override the test with a dos path.
6381 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6383 for ac_dir in $ac_dummy; do
6384 test -z "$ac_dir" && ac_dir=.
6385 if test -f $ac_dir/$ac_word; then
6386 ac_cv_path__PATH_UUX="$ac_dir/$ac_word"
6394 _PATH_UUX="$ac_cv_path__PATH_UUX"
6395 if test -n "$_PATH_UUX"; then
6396 echo "$ac_t""$_PATH_UUX" 1>&6
6398 echo "$ac_t""no" 1>&6
6401 test -n "$_PATH_UUX" && break
6403 test -n "$_PATH_UUX" || _PATH_UUX="uux"
6406 inn_perl_command='print $]'
6409 echo $ac_n "checking for Perl version""... $ac_c" 1>&6
6410 echo "configure:6411: checking for Perl version" >&5
6411 if eval "test \"`echo '$''{'inn_cv_perl_version'+set}'`\" = set"; then
6412 echo $ac_n "(cached) $ac_c" 1>&6
6414 if $_PATH_PERL -e 'require 5.004_03;' > /dev/null 2>&1 ; then
6415 inn_cv_perl_version=`$_PATH_PERL -e "$inn_perl_command"`
6417 { echo "configure: error: Perl 5.004_03 or greater is required" 1>&2; exit 1; }
6421 echo "$ac_t""$inn_cv_perl_version" 1>&6
6426 # Extract the first word of "$ac_prog", so it can be a program name with args.
6427 set dummy $ac_prog; ac_word=$2
6428 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6429 echo "configure:6430: checking for $ac_word" >&5
6430 if eval "test \"`echo '$''{'ac_cv_path_PATH_GPGV'+set}'`\" = set"; then
6431 echo $ac_n "(cached) $ac_c" 1>&6
6433 case "$PATH_GPGV" in
6435 ac_cv_path_PATH_GPGV="$PATH_GPGV" # Let the user override the test with a path.
6438 ac_cv_path_PATH_GPGV="$PATH_GPGV" # Let the user override the test with a dos path.
6441 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6443 for ac_dir in $ac_dummy; do
6444 test -z "$ac_dir" && ac_dir=.
6445 if test -f $ac_dir/$ac_word; then
6446 ac_cv_path_PATH_GPGV="$ac_dir/$ac_word"
6454 PATH_GPGV="$ac_cv_path_PATH_GPGV"
6455 if test -n "$PATH_GPGV"; then
6456 echo "$ac_t""$PATH_GPGV" 1>&6
6458 echo "$ac_t""no" 1>&6
6461 test -n "$PATH_GPGV" && break
6464 for ac_prog in pgpv pgp pgpgpg
6466 # Extract the first word of "$ac_prog", so it can be a program name with args.
6467 set dummy $ac_prog; ac_word=$2
6468 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6469 echo "configure:6470: checking for $ac_word" >&5
6470 if eval "test \"`echo '$''{'ac_cv_path__PATH_PGP'+set}'`\" = set"; then
6471 echo $ac_n "(cached) $ac_c" 1>&6
6473 case "$_PATH_PGP" in
6475 ac_cv_path__PATH_PGP="$_PATH_PGP" # Let the user override the test with a path.
6478 ac_cv_path__PATH_PGP="$_PATH_PGP" # Let the user override the test with a dos path.
6481 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6483 for ac_dir in $ac_dummy; do
6484 test -z "$ac_dir" && ac_dir=.
6485 if test -f $ac_dir/$ac_word; then
6486 ac_cv_path__PATH_PGP="$ac_dir/$ac_word"
6494 _PATH_PGP="$ac_cv_path__PATH_PGP"
6495 if test -n "$_PATH_PGP"; then
6496 echo "$ac_t""$_PATH_PGP" 1>&6
6498 echo "$ac_t""no" 1>&6
6501 test -n "$_PATH_PGP" && break
6504 if test -z "$_PATH_PGP" && test -z "$PATH_GPGV" ; then
6509 for ac_prog in wget ncftpget ncftp
6511 # Extract the first word of "$ac_prog", so it can be a program name with args.
6512 set dummy $ac_prog; ac_word=$2
6513 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6514 echo "configure:6515: checking for $ac_word" >&5
6515 if eval "test \"`echo '$''{'ac_cv_path_GETFTP'+set}'`\" = set"; then
6516 echo $ac_n "(cached) $ac_c" 1>&6
6520 ac_cv_path_GETFTP="$GETFTP" # Let the user override the test with a path.
6523 ac_cv_path_GETFTP="$GETFTP" # Let the user override the test with a dos path.
6526 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6528 for ac_dir in $ac_dummy; do
6529 test -z "$ac_dir" && ac_dir=.
6530 if test -f $ac_dir/$ac_word; then
6531 ac_cv_path_GETFTP="$ac_dir/$ac_word"
6539 GETFTP="$ac_cv_path_GETFTP"
6540 if test -n "$GETFTP"; then
6541 echo "$ac_t""$GETFTP" 1>&6
6543 echo "$ac_t""no" 1>&6
6546 test -n "$GETFTP" && break
6548 test -n "$GETFTP" || GETFTP="$prefix/bin/simpleftp"
6551 case "$LOG_COMPRESS" in
6553 *) # Extract the first word of ""$LOG_COMPRESS"", so it can be a program name with args.
6554 set dummy "$LOG_COMPRESS"; ac_word=$2
6555 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6556 echo "configure:6557: checking for $ac_word" >&5
6557 if eval "test \"`echo '$''{'ac_cv_path_LOG_COMPRESS'+set}'`\" = set"; then
6558 echo $ac_n "(cached) $ac_c" 1>&6
6560 case "$LOG_COMPRESS" in
6562 ac_cv_path_LOG_COMPRESS="$LOG_COMPRESS" # Let the user override the test with a path.
6565 ac_cv_path_LOG_COMPRESS="$LOG_COMPRESS" # Let the user override the test with a dos path.
6568 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6570 for ac_dir in $ac_dummy; do
6571 test -z "$ac_dir" && ac_dir=.
6572 if test -f $ac_dir/$ac_word; then
6573 ac_cv_path_LOG_COMPRESS="$ac_dir/$ac_word"
6581 LOG_COMPRESS="$ac_cv_path_LOG_COMPRESS"
6582 if test -n "$LOG_COMPRESS"; then
6583 echo "$ac_t""$LOG_COMPRESS" 1>&6
6585 echo "$ac_t""no" 1>&6
6588 if test -z "${LOG_COMPRESS}" ; then
6589 { echo "configure: error: "$LOG_COMPRESS" was not found in path and is required" 1>&2; exit 1; }
6592 # Extract the first word of "compress", so it can be a program name with args.
6593 set dummy compress; ac_word=$2
6594 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6595 echo "configure:6596: checking for $ac_word" >&5
6596 if eval "test \"`echo '$''{'ac_cv_path_COMPRESS'+set}'`\" = set"; then
6597 echo $ac_n "(cached) $ac_c" 1>&6
6601 ac_cv_path_COMPRESS="$COMPRESS" # Let the user override the test with a path.
6604 ac_cv_path_COMPRESS="$COMPRESS" # Let the user override the test with a dos path.
6607 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6609 for ac_dir in $ac_dummy; do
6610 test -z "$ac_dir" && ac_dir=.
6611 if test -f $ac_dir/$ac_word; then
6612 ac_cv_path_COMPRESS="$ac_dir/$ac_word"
6617 test -z "$ac_cv_path_COMPRESS" && ac_cv_path_COMPRESS="compress"
6621 COMPRESS="$ac_cv_path_COMPRESS"
6622 if test -n "$COMPRESS"; then
6623 echo "$ac_t""$COMPRESS" 1>&6
6625 echo "$ac_t""no" 1>&6
6628 if test x"$LOG_COMPRESS" = xcompress ; then
6629 if test x"$COMPRESS" = xcompress ; then
6630 { echo "configure: error: compress not found but specified for log compression" 1>&2; exit 1; }
6632 LOG_COMPRESS="$COMPRESS"
6634 # Extract the first word of "gzip", so it can be a program name with args.
6635 set dummy gzip; ac_word=$2
6636 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6637 echo "configure:6638: checking for $ac_word" >&5
6638 if eval "test \"`echo '$''{'ac_cv_path_GZIP'+set}'`\" = set"; then
6639 echo $ac_n "(cached) $ac_c" 1>&6
6643 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
6646 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a dos path.
6649 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6651 for ac_dir in $ac_dummy; do
6652 test -z "$ac_dir" && ac_dir=.
6653 if test -f $ac_dir/$ac_word; then
6654 ac_cv_path_GZIP="$ac_dir/$ac_word"
6659 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="gzip"
6663 GZIP="$ac_cv_path_GZIP"
6664 if test -n "$GZIP"; then
6665 echo "$ac_t""$GZIP" 1>&6
6667 echo "$ac_t""no" 1>&6
6670 if test x"$LOG_COMPRESS" = xgzip ; then
6671 if test x"$GZIP" = xgzip ; then
6672 { echo "configure: error: gzip not found but specified for log compression" 1>&2; exit 1; }
6674 LOG_COMPRESS="$GZIP"
6677 if test x"$COMPRESS" = xcompress && test x"$GZIP" != xgzip ; then
6678 UNCOMPRESS="$GZIP -d"
6680 UNCOMPRESS="$COMPRESS -d"
6684 if test "${with_sendmail+set}" = set ; then
6685 echo $ac_n "checking for sendmail""... $ac_c" 1>&6
6686 echo "configure:6687: checking for sendmail" >&5
6687 echo "$ac_t""$SENDMAIL" 1>&6
6689 # Extract the first word of "sendmail", so it can be a program name with args.
6690 set dummy sendmail; ac_word=$2
6691 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6692 echo "configure:6693: checking for $ac_word" >&5
6693 if eval "test \"`echo '$''{'ac_cv_path_SENDMAIL'+set}'`\" = set"; then
6694 echo $ac_n "(cached) $ac_c" 1>&6
6698 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
6701 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
6704 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6705 ac_dummy=""/usr/sbin:/usr/lib""
6706 for ac_dir in $ac_dummy; do
6707 test -z "$ac_dir" && ac_dir=.
6708 if test -f $ac_dir/$ac_word; then
6709 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
6717 SENDMAIL="$ac_cv_path_SENDMAIL"
6718 if test -n "$SENDMAIL"; then
6719 echo "$ac_t""$SENDMAIL" 1>&6
6721 echo "$ac_t""no" 1>&6
6724 if test -z "$SENDMAIL" ; then
6725 { echo "configure: error: sendmail not found" 1>&2; exit 1; }
6729 # Extract the first word of "uustat", so it can be a program name with args.
6730 set dummy uustat; ac_word=$2
6731 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6732 echo "configure:6733: checking for $ac_word" >&5
6733 if eval "test \"`echo '$''{'ac_cv_prog_HAVE_UUSTAT'+set}'`\" = set"; then
6734 echo $ac_n "(cached) $ac_c" 1>&6
6736 if test -n "$HAVE_UUSTAT"; then
6737 ac_cv_prog_HAVE_UUSTAT="$HAVE_UUSTAT" # Let the user override the test.
6739 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6741 for ac_dir in $ac_dummy; do
6742 test -z "$ac_dir" && ac_dir=.
6743 if test -f $ac_dir/$ac_word; then
6744 ac_cv_prog_HAVE_UUSTAT="DO"
6749 test -z "$ac_cv_prog_HAVE_UUSTAT" && ac_cv_prog_HAVE_UUSTAT="DONT"
6752 HAVE_UUSTAT="$ac_cv_prog_HAVE_UUSTAT"
6753 if test -n "$HAVE_UUSTAT"; then
6754 echo "$ac_t""$HAVE_UUSTAT" 1>&6
6756 echo "$ac_t""no" 1>&6
6761 if test x"$DO_PYTHON" = xdefine ; then
6762 # Extract the first word of "python", so it can be a program name with args.
6763 set dummy python; ac_word=$2
6764 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6765 echo "configure:6766: checking for $ac_word" >&5
6766 if eval "test \"`echo '$''{'ac_cv_path__PATH_PYTHON'+set}'`\" = set"; then
6767 echo $ac_n "(cached) $ac_c" 1>&6
6769 case "$_PATH_PYTHON" in
6771 ac_cv_path__PATH_PYTHON="$_PATH_PYTHON" # Let the user override the test with a path.
6774 ac_cv_path__PATH_PYTHON="$_PATH_PYTHON" # Let the user override the test with a dos path.
6777 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6779 for ac_dir in $ac_dummy; do
6780 test -z "$ac_dir" && ac_dir=.
6781 if test -f $ac_dir/$ac_word; then
6782 ac_cv_path__PATH_PYTHON="$ac_dir/$ac_word"
6790 _PATH_PYTHON="$ac_cv_path__PATH_PYTHON"
6791 if test -n "$_PATH_PYTHON"; then
6792 echo "$ac_t""$_PATH_PYTHON" 1>&6
6794 echo "$ac_t""no" 1>&6
6797 if test -z "${_PATH_PYTHON}" ; then
6798 { echo "configure: error: python was not found in path and is required" 1>&2; exit 1; }
6806 echo $ac_n "checking for library containing setproctitle""... $ac_c" 1>&6
6807 echo "configure:6808: checking for library containing setproctitle" >&5
6808 if eval "test \"`echo '$''{'ac_cv_search_setproctitle'+set}'`\" = set"; then
6809 echo $ac_n "(cached) $ac_c" 1>&6
6811 ac_func_search_save_LIBS="$LIBS"
6812 ac_cv_search_setproctitle="no"
6813 cat > conftest.$ac_ext <<EOF
6814 #line 6815 "configure"
6815 #include "confdefs.h"
6816 /* Override any gcc2 internal prototype to avoid an error. */
6817 /* We use char because int might match the return type of a gcc2
6818 builtin and then its argument prototype would still apply. */
6819 char setproctitle();
6825 if { (eval echo configure:6826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6827 ac_cv_search_setproctitle="none required"
6829 echo "configure: failed program was:" >&5
6830 cat conftest.$ac_ext >&5
6833 test "$ac_cv_search_setproctitle" = "no" && for i in util; do
6834 LIBS="-l$i $ac_func_search_save_LIBS"
6835 cat > conftest.$ac_ext <<EOF
6836 #line 6837 "configure"
6837 #include "confdefs.h"
6838 /* Override any gcc2 internal prototype to avoid an error. */
6839 /* We use char because int might match the return type of a gcc2
6840 builtin and then its argument prototype would still apply. */
6841 char setproctitle();
6847 if { (eval echo configure:6848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6849 ac_cv_search_setproctitle="-l$i"
6852 echo "configure: failed program was:" >&5
6853 cat conftest.$ac_ext >&5
6857 LIBS="$ac_func_search_save_LIBS"
6860 echo "$ac_t""$ac_cv_search_setproctitle" 1>&6
6861 if test "$ac_cv_search_setproctitle" != "no"; then
6862 test "$ac_cv_search_setproctitle" = "none required" || LIBS="$ac_cv_search_setproctitle $LIBS"
6863 cat >> confdefs.h <<\EOF
6864 #define HAVE_SETPROCTITLE 1
6868 LIBOBJS="$LIBOBJS setproctitle.o"
6869 for ac_func in pstat
6871 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6872 echo "configure:6873: checking for $ac_func" >&5
6873 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6874 echo $ac_n "(cached) $ac_c" 1>&6
6876 cat > conftest.$ac_ext <<EOF
6877 #line 6878 "configure"
6878 #include "confdefs.h"
6879 /* System header to define __stub macros and hopefully few prototypes,
6880 which can conflict with char $ac_func(); below. */
6882 /* Override any gcc2 internal prototype to avoid an error. */
6883 /* We use char because int might match the return type of a gcc2
6884 builtin and then its argument prototype would still apply. */
6889 /* The GNU C library defines this for functions which it implements
6890 to always fail with ENOSYS. Some functions are actually named
6891 something starting with __ and the normal name is an alias. */
6892 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6900 if { (eval echo configure:6901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6902 eval "ac_cv_func_$ac_func=yes"
6904 echo "configure: failed program was:" >&5
6905 cat conftest.$ac_ext >&5
6907 eval "ac_cv_func_$ac_func=no"
6912 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6913 echo "$ac_t""yes" 1>&6
6914 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6915 cat >> confdefs.h <<EOF
6916 #define $ac_tr_func 1
6920 echo "$ac_t""no" 1>&6
6927 echo $ac_n "checking for library containing gethostbyname""... $ac_c" 1>&6
6928 echo "configure:6929: checking for library containing gethostbyname" >&5
6929 if eval "test \"`echo '$''{'ac_cv_search_gethostbyname'+set}'`\" = set"; then
6930 echo $ac_n "(cached) $ac_c" 1>&6
6932 ac_func_search_save_LIBS="$LIBS"
6933 ac_cv_search_gethostbyname="no"
6934 cat > conftest.$ac_ext <<EOF
6935 #line 6936 "configure"
6936 #include "confdefs.h"
6937 /* Override any gcc2 internal prototype to avoid an error. */
6938 /* We use char because int might match the return type of a gcc2
6939 builtin and then its argument prototype would still apply. */
6940 char gethostbyname();
6946 if { (eval echo configure:6947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6948 ac_cv_search_gethostbyname="none required"
6950 echo "configure: failed program was:" >&5
6951 cat conftest.$ac_ext >&5
6954 test "$ac_cv_search_gethostbyname" = "no" && for i in nsl; do
6955 LIBS="-l$i $ac_func_search_save_LIBS"
6956 cat > conftest.$ac_ext <<EOF
6957 #line 6958 "configure"
6958 #include "confdefs.h"
6959 /* Override any gcc2 internal prototype to avoid an error. */
6960 /* We use char because int might match the return type of a gcc2
6961 builtin and then its argument prototype would still apply. */
6962 char gethostbyname();
6968 if { (eval echo configure:6969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6970 ac_cv_search_gethostbyname="-l$i"
6973 echo "configure: failed program was:" >&5
6974 cat conftest.$ac_ext >&5
6978 LIBS="$ac_func_search_save_LIBS"
6981 echo "$ac_t""$ac_cv_search_gethostbyname" 1>&6
6982 if test "$ac_cv_search_gethostbyname" != "no"; then
6983 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
6989 echo $ac_n "checking for library containing socket""... $ac_c" 1>&6
6990 echo "configure:6991: checking for library containing socket" >&5
6991 if eval "test \"`echo '$''{'ac_cv_search_socket'+set}'`\" = set"; then
6992 echo $ac_n "(cached) $ac_c" 1>&6
6994 ac_func_search_save_LIBS="$LIBS"
6995 ac_cv_search_socket="no"
6996 cat > conftest.$ac_ext <<EOF
6997 #line 6998 "configure"
6998 #include "confdefs.h"
6999 /* Override any gcc2 internal prototype to avoid an error. */
7000 /* We use char because int might match the return type of a gcc2
7001 builtin and then its argument prototype would still apply. */
7008 if { (eval echo configure:7009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7010 ac_cv_search_socket="none required"
7012 echo "configure: failed program was:" >&5
7013 cat conftest.$ac_ext >&5
7016 test "$ac_cv_search_socket" = "no" && for i in socket; do
7017 LIBS="-l$i $ac_func_search_save_LIBS"
7018 cat > conftest.$ac_ext <<EOF
7019 #line 7020 "configure"
7020 #include "confdefs.h"
7021 /* Override any gcc2 internal prototype to avoid an error. */
7022 /* We use char because int might match the return type of a gcc2
7023 builtin and then its argument prototype would still apply. */
7030 if { (eval echo configure:7031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7032 ac_cv_search_socket="-l$i"
7035 echo "configure: failed program was:" >&5
7036 cat conftest.$ac_ext >&5
7040 LIBS="$ac_func_search_save_LIBS"
7043 echo "$ac_t""$ac_cv_search_socket" 1>&6
7044 if test "$ac_cv_search_socket" != "no"; then
7045 test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS"
7048 echo $ac_n "checking for socket in -lnsl""... $ac_c" 1>&6
7049 echo "configure:7050: checking for socket in -lnsl" >&5
7050 ac_lib_var=`echo nsl'_'socket | sed 'y%./+-%__p_%'`
7051 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7052 echo $ac_n "(cached) $ac_c" 1>&6
7054 ac_save_LIBS="$LIBS"
7055 LIBS="-lnsl -lsocket $LIBS"
7056 cat > conftest.$ac_ext <<EOF
7057 #line 7058 "configure"
7058 #include "confdefs.h"
7059 /* Override any gcc2 internal prototype to avoid an error. */
7060 /* We use char because int might match the return type of a gcc2
7061 builtin and then its argument prototype would still apply. */
7068 if { (eval echo configure:7069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7070 eval "ac_cv_lib_$ac_lib_var=yes"
7072 echo "configure: failed program was:" >&5
7073 cat conftest.$ac_ext >&5
7075 eval "ac_cv_lib_$ac_lib_var=no"
7078 LIBS="$ac_save_LIBS"
7081 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7082 echo "$ac_t""yes" 1>&6
7083 LIBS="$LIBS -lsocket -lnsl"
7085 echo "$ac_t""no" 1>&6
7091 echo $ac_n "checking for library containing inet_aton""... $ac_c" 1>&6
7092 echo "configure:7093: checking for library containing inet_aton" >&5
7093 if eval "test \"`echo '$''{'ac_cv_search_inet_aton'+set}'`\" = set"; then
7094 echo $ac_n "(cached) $ac_c" 1>&6
7096 ac_func_search_save_LIBS="$LIBS"
7097 ac_cv_search_inet_aton="no"
7098 cat > conftest.$ac_ext <<EOF
7099 #line 7100 "configure"
7100 #include "confdefs.h"
7101 /* Override any gcc2 internal prototype to avoid an error. */
7102 /* We use char because int might match the return type of a gcc2
7103 builtin and then its argument prototype would still apply. */
7110 if { (eval echo configure:7111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7112 ac_cv_search_inet_aton="none required"
7114 echo "configure: failed program was:" >&5
7115 cat conftest.$ac_ext >&5
7118 test "$ac_cv_search_inet_aton" = "no" && for i in resolv; do
7119 LIBS="-l$i $ac_func_search_save_LIBS"
7120 cat > conftest.$ac_ext <<EOF
7121 #line 7122 "configure"
7122 #include "confdefs.h"
7123 /* Override any gcc2 internal prototype to avoid an error. */
7124 /* We use char because int might match the return type of a gcc2
7125 builtin and then its argument prototype would still apply. */
7132 if { (eval echo configure:7133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7134 ac_cv_search_inet_aton="-l$i"
7137 echo "configure: failed program was:" >&5
7138 cat conftest.$ac_ext >&5
7142 LIBS="$ac_func_search_save_LIBS"
7145 echo "$ac_t""$ac_cv_search_inet_aton" 1>&6
7146 if test "$ac_cv_search_inet_aton" != "no"; then
7147 test "$ac_cv_search_inet_aton" = "none required" || LIBS="$ac_cv_search_inet_aton $LIBS"
7156 echo $ac_n "checking for library containing crypt""... $ac_c" 1>&6
7157 echo "configure:7158: checking for library containing crypt" >&5
7158 if eval "test \"`echo '$''{'ac_cv_search_crypt'+set}'`\" = set"; then
7159 echo $ac_n "(cached) $ac_c" 1>&6
7161 ac_func_search_save_LIBS="$LIBS"
7162 ac_cv_search_crypt="no"
7163 cat > conftest.$ac_ext <<EOF
7164 #line 7165 "configure"
7165 #include "confdefs.h"
7166 /* Override any gcc2 internal prototype to avoid an error. */
7167 /* We use char because int might match the return type of a gcc2
7168 builtin and then its argument prototype would still apply. */
7175 if { (eval echo configure:7176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7177 ac_cv_search_crypt="none required"
7179 echo "configure: failed program was:" >&5
7180 cat conftest.$ac_ext >&5
7183 test "$ac_cv_search_crypt" = "no" && for i in crypt; do
7184 LIBS="-l$i $ac_func_search_save_LIBS"
7185 cat > conftest.$ac_ext <<EOF
7186 #line 7187 "configure"
7187 #include "confdefs.h"
7188 /* Override any gcc2 internal prototype to avoid an error. */
7189 /* We use char because int might match the return type of a gcc2
7190 builtin and then its argument prototype would still apply. */
7197 if { (eval echo configure:7198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7199 ac_cv_search_crypt="-l$i"
7202 echo "configure: failed program was:" >&5
7203 cat conftest.$ac_ext >&5
7207 LIBS="$ac_func_search_save_LIBS"
7210 echo "$ac_t""$ac_cv_search_crypt" 1>&6
7211 if test "$ac_cv_search_crypt" != "no"; then
7212 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
7223 echo $ac_n "checking for library containing getspnam""... $ac_c" 1>&6
7224 echo "configure:7225: checking for library containing getspnam" >&5
7225 if eval "test \"`echo '$''{'ac_cv_search_getspnam'+set}'`\" = set"; then
7226 echo $ac_n "(cached) $ac_c" 1>&6
7228 ac_func_search_save_LIBS="$LIBS"
7229 ac_cv_search_getspnam="no"
7230 cat > conftest.$ac_ext <<EOF
7231 #line 7232 "configure"
7232 #include "confdefs.h"
7233 /* Override any gcc2 internal prototype to avoid an error. */
7234 /* We use char because int might match the return type of a gcc2
7235 builtin and then its argument prototype would still apply. */
7242 if { (eval echo configure:7243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7244 ac_cv_search_getspnam="none required"
7246 echo "configure: failed program was:" >&5
7247 cat conftest.$ac_ext >&5
7250 test "$ac_cv_search_getspnam" = "no" && for i in shadow; do
7251 LIBS="-l$i $ac_func_search_save_LIBS"
7252 cat > conftest.$ac_ext <<EOF
7253 #line 7254 "configure"
7254 #include "confdefs.h"
7255 /* Override any gcc2 internal prototype to avoid an error. */
7256 /* We use char because int might match the return type of a gcc2
7257 builtin and then its argument prototype would still apply. */
7264 if { (eval echo configure:7265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7266 ac_cv_search_getspnam="-l$i"
7269 echo "configure: failed program was:" >&5
7270 cat conftest.$ac_ext >&5
7274 LIBS="$ac_func_search_save_LIBS"
7277 echo "$ac_t""$ac_cv_search_getspnam" 1>&6
7278 if test "$ac_cv_search_getspnam" != "no"; then
7279 test "$ac_cv_search_getspnam" = "none required" || LIBS="$ac_cv_search_getspnam $LIBS"
7289 for ac_hdr in pam/pam_appl.h
7291 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7292 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7293 echo "configure:7294: checking for $ac_hdr" >&5
7294 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7295 echo $ac_n "(cached) $ac_c" 1>&6
7297 cat > conftest.$ac_ext <<EOF
7298 #line 7299 "configure"
7299 #include "confdefs.h"
7302 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7303 { (eval echo configure:7304: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7304 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7305 if test -z "$ac_err"; then
7307 eval "ac_cv_header_$ac_safe=yes"
7310 echo "configure: failed program was:" >&5
7311 cat conftest.$ac_ext >&5
7313 eval "ac_cv_header_$ac_safe=no"
7317 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7318 echo "$ac_t""yes" 1>&6
7319 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7320 cat >> confdefs.h <<EOF
7321 #define $ac_tr_hdr 1
7325 echo "$ac_t""no" 1>&6
7326 ac_safe=`echo "security/pam_appl.h" | sed 'y%./+-%__p_%'`
7327 echo $ac_n "checking for security/pam_appl.h""... $ac_c" 1>&6
7328 echo "configure:7329: checking for security/pam_appl.h" >&5
7329 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7330 echo $ac_n "(cached) $ac_c" 1>&6
7332 cat > conftest.$ac_ext <<EOF
7333 #line 7334 "configure"
7334 #include "confdefs.h"
7335 #include <security/pam_appl.h>
7337 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7338 { (eval echo configure:7339: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7339 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7340 if test -z "$ac_err"; then
7342 eval "ac_cv_header_$ac_safe=yes"
7345 echo "configure: failed program was:" >&5
7346 cat conftest.$ac_ext >&5
7348 eval "ac_cv_header_$ac_safe=no"
7352 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7353 echo "$ac_t""yes" 1>&6
7356 echo "$ac_t""no" 1>&6
7363 if test x"$inn_check_pam" = x1; then
7367 echo $ac_n "checking for library containing pam_start""... $ac_c" 1>&6
7368 echo "configure:7369: checking for library containing pam_start" >&5
7369 if eval "test \"`echo '$''{'ac_cv_search_pam_start'+set}'`\" = set"; then
7370 echo $ac_n "(cached) $ac_c" 1>&6
7372 ac_func_search_save_LIBS="$LIBS"
7373 ac_cv_search_pam_start="no"
7374 cat > conftest.$ac_ext <<EOF
7375 #line 7376 "configure"
7376 #include "confdefs.h"
7377 /* Override any gcc2 internal prototype to avoid an error. */
7378 /* We use char because int might match the return type of a gcc2
7379 builtin and then its argument prototype would still apply. */
7386 if { (eval echo configure:7387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7388 ac_cv_search_pam_start="none required"
7390 echo "configure: failed program was:" >&5
7391 cat conftest.$ac_ext >&5
7394 test "$ac_cv_search_pam_start" = "no" && for i in pam; do
7395 LIBS="-l$i $ac_func_search_save_LIBS"
7396 cat > conftest.$ac_ext <<EOF
7397 #line 7398 "configure"
7398 #include "confdefs.h"
7399 /* Override any gcc2 internal prototype to avoid an error. */
7400 /* We use char because int might match the return type of a gcc2
7401 builtin and then its argument prototype would still apply. */
7408 if { (eval echo configure:7409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7410 ac_cv_search_pam_start="-l$i"
7413 echo "configure: failed program was:" >&5
7414 cat conftest.$ac_ext >&5
7418 LIBS="$ac_func_search_save_LIBS"
7421 echo "$ac_t""$ac_cv_search_pam_start" 1>&6
7422 if test "$ac_cv_search_pam_start" != "no"; then
7423 test "$ac_cv_search_pam_start" = "none required" || LIBS="$ac_cv_search_pam_start $LIBS"
7425 cat >> confdefs.h <<\EOF
7436 if test x"$inn_enable_keywords" = x1 ; then
7440 echo $ac_n "checking for library containing regexec""... $ac_c" 1>&6
7441 echo "configure:7442: checking for library containing regexec" >&5
7442 if eval "test \"`echo '$''{'ac_cv_search_regexec'+set}'`\" = set"; then
7443 echo $ac_n "(cached) $ac_c" 1>&6
7445 ac_func_search_save_LIBS="$LIBS"
7446 ac_cv_search_regexec="no"
7447 cat > conftest.$ac_ext <<EOF
7448 #line 7449 "configure"
7449 #include "confdefs.h"
7450 /* Override any gcc2 internal prototype to avoid an error. */
7451 /* We use char because int might match the return type of a gcc2
7452 builtin and then its argument prototype would still apply. */
7459 if { (eval echo configure:7460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7461 ac_cv_search_regexec="none required"
7463 echo "configure: failed program was:" >&5
7464 cat conftest.$ac_ext >&5
7467 test "$ac_cv_search_regexec" = "no" && for i in regex; do
7468 LIBS="-l$i $ac_func_search_save_LIBS"
7469 cat > conftest.$ac_ext <<EOF
7470 #line 7471 "configure"
7471 #include "confdefs.h"
7472 /* Override any gcc2 internal prototype to avoid an error. */
7473 /* We use char because int might match the return type of a gcc2
7474 builtin and then its argument prototype would still apply. */
7481 if { (eval echo configure:7482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7483 ac_cv_search_regexec="-l$i"
7486 echo "configure: failed program was:" >&5
7487 cat conftest.$ac_ext >&5
7491 LIBS="$ac_func_search_save_LIBS"
7494 echo "$ac_t""$ac_cv_search_regexec" 1>&6
7495 if test "$ac_cv_search_regexec" != "no"; then
7496 test "$ac_cv_search_regexec" = "none required" || LIBS="$ac_cv_search_regexec $LIBS"
7500 { echo "configure: error: no usable regular expression library found" 1>&2; exit 1; }
7507 # Check whether --with-berkeleydb or --without-berkeleydb was given.
7508 if test "${with_berkeleydb+set}" = set; then
7509 withval="$with_berkeleydb"
7510 BERKELEY_DB_DIR=$with_berkeleydb
7515 echo $ac_n "checking if BerkeleyDB is desired""... $ac_c" 1>&6
7516 echo "configure:7517: checking if BerkeleyDB is desired" >&5
7517 if test x"$BERKELEY_DB_DIR" = xno ; then
7518 echo "$ac_t""no" 1>&6
7519 BERKELEY_DB_LDFLAGS=
7523 echo "$ac_t""yes" 1>&6
7524 echo $ac_n "checking for BerkeleyDB location""... $ac_c" 1>&6
7525 echo "configure:7526: checking for BerkeleyDB location" >&5
7526 if test x"$BERKELEY_DB_DIR" = xyes ; then
7527 for v in BerkeleyDB BerkeleyDB.3.0 BerkeleyDB.3.1 BerkeleyDB.3.2 \
7528 BerkeleyDB.3.3 BerkeleyDB.4.0 BerkeleyDB.4.1 BerkeleyDB.4.2 \
7529 BerkeleyDB.4.3 BerkeleyDB.4.4 BerkeleyDB.4.5 BerkeleyDB.4.6; do
7530 for d in $prefix /usr/local /opt /usr ; do
7531 if test -d "$d/$v" ; then
7532 BERKELEY_DB_DIR="$d/$v"
7538 if test x"$BERKELEY_DB_DIR" = xyes ; then
7539 for v in db46 db45 db44 db43 db42 db41 db4 db3 db2 ; do
7540 if test -d "/usr/local/include/$v" ; then
7541 BERKELEY_DB_LDFLAGS="-L/usr/local/lib"
7542 BERKELEY_DB_CFLAGS="-I/usr/local/include/$v"
7543 BERKELEY_DB_LIB="-l$v"
7544 echo "$ac_t""FreeBSD locations" 1>&6
7548 if test x"$BERKELEY_DB_LIB" = x ; then
7549 for v in db44 db43 db42 db41 db4 db3 db2 ; do
7550 if test -d "/usr/include/$v" ; then
7551 BERKELEY_DB_CFLAGS="-I/usr/include/$v"
7552 BERKELEY_DB_LIB="-l$v"
7553 echo "$ac_t""Linux locations" 1>&6
7557 if test x"$BERKELEY_DB_LIB" = x ; then
7558 BERKELEY_DB_LIB=-ldb
7559 echo "$ac_t""trying -ldb" 1>&6
7563 BERKELEY_DB_LDFLAGS="-L$BERKELEY_DB_DIR/lib"
7564 BERKELEY_DB_CFLAGS="-I$BERKELEY_DB_DIR/include"
7565 BERKELEY_DB_LIB="-ldb"
7566 echo "$ac_t""$BERKELEY_DB_DIR" 1>&6
7568 cat >> confdefs.h <<\EOF
7569 #define USE_BERKELEY_DB 1
7577 if test x"$BERKELEY_DB_LIB" != x ; then
7578 DBM_INC="$BERKELEY_DB_CFLAGS"
7579 DBM_LIB="$BERKELEY_DB_LDFLAGS $BERKELEY_DB_LIB"
7581 cat >> confdefs.h <<\EOF
7582 #define HAVE_BDB_DBM 1
7589 echo $ac_n "checking for library containing dbm_open""... $ac_c" 1>&6
7590 echo "configure:7591: checking for library containing dbm_open" >&5
7591 if eval "test \"`echo '$''{'ac_cv_search_dbm_open'+set}'`\" = set"; then
7592 echo $ac_n "(cached) $ac_c" 1>&6
7594 ac_func_search_save_LIBS="$LIBS"
7595 ac_cv_search_dbm_open="no"
7596 cat > conftest.$ac_ext <<EOF
7597 #line 7598 "configure"
7598 #include "confdefs.h"
7599 /* Override any gcc2 internal prototype to avoid an error. */
7600 /* We use char because int might match the return type of a gcc2
7601 builtin and then its argument prototype would still apply. */
7608 if { (eval echo configure:7609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7610 ac_cv_search_dbm_open="none required"
7612 echo "configure: failed program was:" >&5
7613 cat conftest.$ac_ext >&5
7616 test "$ac_cv_search_dbm_open" = "no" && for i in ndbm dbm; do
7617 LIBS="-l$i $ac_func_search_save_LIBS"
7618 cat > conftest.$ac_ext <<EOF
7619 #line 7620 "configure"
7620 #include "confdefs.h"
7621 /* Override any gcc2 internal prototype to avoid an error. */
7622 /* We use char because int might match the return type of a gcc2
7623 builtin and then its argument prototype would still apply. */
7630 if { (eval echo configure:7631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7632 ac_cv_search_dbm_open="-l$i"
7635 echo "configure: failed program was:" >&5
7636 cat conftest.$ac_ext >&5
7640 LIBS="$ac_func_search_save_LIBS"
7643 echo "$ac_t""$ac_cv_search_dbm_open" 1>&6
7644 if test "$ac_cv_search_dbm_open" != "no"; then
7645 test "$ac_cv_search_dbm_open" = "none required" || LIBS="$ac_cv_search_dbm_open $LIBS"
7647 cat >> confdefs.h <<\EOF
7661 # Check whether --with-openssl or --without-openssl was given.
7662 if test "${with_openssl+set}" = set; then
7663 withval="$with_openssl"
7664 OPENSSL_DIR=$with_openssl
7669 echo $ac_n "checking if OpenSSL is desired""... $ac_c" 1>&6
7670 echo "configure:7671: checking if OpenSSL is desired" >&5
7671 if test x"$OPENSSL_DIR" = xno ; then
7672 echo "$ac_t""no" 1>&6
7677 echo "$ac_t""yes" 1>&6
7678 echo $ac_n "checking for OpenSSL location""... $ac_c" 1>&6
7679 echo "configure:7680: checking for OpenSSL location" >&5
7680 if test x"$OPENSSL_DIR" = xyes ; then
7681 for dir in $prefix /usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg \
7682 /usr/local /usr ; do
7683 if test -f "$dir/include/openssl/ssl.h" ; then
7689 if test x"$OPENSSL_DIR" = xyes ; then
7690 { echo "configure: error: Can not find OpenSSL" 1>&2; exit 1; }
7692 echo "$ac_t""$OPENSSL_DIR" 1>&6
7693 SSL_BIN="${OPENSSL_DIR}/bin"
7694 SSL_INC="-I${OPENSSL_DIR}/include"
7696 # This is mildly tricky. In order to satisfy most linkers, libraries
7697 # have to be listed in the right order, which means that libraries
7698 # with dependencies on other libraries need to be listed first. But
7699 # the -L flag for the OpenSSL library directory needs to go first of
7700 # all. So put the -L flag into LIBS and accumulate actual libraries
7701 # into SSL_LIB, and then at the end, restore LIBS and move -L to the
7702 # beginning of SSL_LIB.
7704 LIBS="$LIBS -L${OPENSSL_DIR}/lib"
7706 echo $ac_n "checking for RSAPublicEncrypt in -lrsaref""... $ac_c" 1>&6
7707 echo "configure:7708: checking for RSAPublicEncrypt in -lrsaref" >&5
7708 ac_lib_var=`echo rsaref'_'RSAPublicEncrypt | sed 'y%./+-%__p_%'`
7709 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7710 echo $ac_n "(cached) $ac_c" 1>&6
7712 ac_save_LIBS="$LIBS"
7713 LIBS="-lrsaref $LIBS"
7714 cat > conftest.$ac_ext <<EOF
7715 #line 7716 "configure"
7716 #include "confdefs.h"
7717 /* Override any gcc2 internal prototype to avoid an error. */
7718 /* We use char because int might match the return type of a gcc2
7719 builtin and then its argument prototype would still apply. */
7720 char RSAPublicEncrypt();
7726 if { (eval echo configure:7727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7728 eval "ac_cv_lib_$ac_lib_var=yes"
7730 echo "configure: failed program was:" >&5
7731 cat conftest.$ac_ext >&5
7733 eval "ac_cv_lib_$ac_lib_var=no"
7736 LIBS="$ac_save_LIBS"
7739 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7740 echo "$ac_t""yes" 1>&6
7741 echo $ac_n "checking for RSAPublicEncrypt in -lRSAglue""... $ac_c" 1>&6
7742 echo "configure:7743: checking for RSAPublicEncrypt in -lRSAglue" >&5
7743 ac_lib_var=`echo RSAglue'_'RSAPublicEncrypt | sed 'y%./+-%__p_%'`
7744 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7745 echo $ac_n "(cached) $ac_c" 1>&6
7747 ac_save_LIBS="$LIBS"
7748 LIBS="-lRSAglue -lrsaref $LIBS"
7749 cat > conftest.$ac_ext <<EOF
7750 #line 7751 "configure"
7751 #include "confdefs.h"
7752 /* Override any gcc2 internal prototype to avoid an error. */
7753 /* We use char because int might match the return type of a gcc2
7754 builtin and then its argument prototype would still apply. */
7755 char RSAPublicEncrypt();
7761 if { (eval echo configure:7762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7763 eval "ac_cv_lib_$ac_lib_var=yes"
7765 echo "configure: failed program was:" >&5
7766 cat conftest.$ac_ext >&5
7768 eval "ac_cv_lib_$ac_lib_var=no"
7771 LIBS="$ac_save_LIBS"
7774 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7775 echo "$ac_t""yes" 1>&6
7776 SSL_LIB="-lRSAglue -lrsaref"
7778 echo "$ac_t""no" 1>&6
7782 echo "$ac_t""no" 1>&6
7785 echo $ac_n "checking for BIO_new in -lcrypto""... $ac_c" 1>&6
7786 echo "configure:7787: checking for BIO_new in -lcrypto" >&5
7787 ac_lib_var=`echo crypto'_'BIO_new | sed 'y%./+-%__p_%'`
7788 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7789 echo $ac_n "(cached) $ac_c" 1>&6
7791 ac_save_LIBS="$LIBS"
7792 LIBS="-lcrypto $SSL_LIB $LIBS"
7793 cat > conftest.$ac_ext <<EOF
7794 #line 7795 "configure"
7795 #include "confdefs.h"
7796 /* Override any gcc2 internal prototype to avoid an error. */
7797 /* We use char because int might match the return type of a gcc2
7798 builtin and then its argument prototype would still apply. */
7805 if { (eval echo configure:7806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7807 eval "ac_cv_lib_$ac_lib_var=yes"
7809 echo "configure: failed program was:" >&5
7810 cat conftest.$ac_ext >&5
7812 eval "ac_cv_lib_$ac_lib_var=no"
7815 LIBS="$ac_save_LIBS"
7818 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7819 echo "$ac_t""yes" 1>&6
7820 echo $ac_n "checking for DSO_load in -ldl""... $ac_c" 1>&6
7821 echo "configure:7822: checking for DSO_load in -ldl" >&5
7822 ac_lib_var=`echo dl'_'DSO_load | sed 'y%./+-%__p_%'`
7823 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7824 echo $ac_n "(cached) $ac_c" 1>&6
7826 ac_save_LIBS="$LIBS"
7827 LIBS="-ldl -lcrypto -ldl $SSL_LIB $LIBS"
7828 cat > conftest.$ac_ext <<EOF
7829 #line 7830 "configure"
7830 #include "confdefs.h"
7831 /* Override any gcc2 internal prototype to avoid an error. */
7832 /* We use char because int might match the return type of a gcc2
7833 builtin and then its argument prototype would still apply. */
7840 if { (eval echo configure:7841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7842 eval "ac_cv_lib_$ac_lib_var=yes"
7844 echo "configure: failed program was:" >&5
7845 cat conftest.$ac_ext >&5
7847 eval "ac_cv_lib_$ac_lib_var=no"
7850 LIBS="$ac_save_LIBS"
7853 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7854 echo "$ac_t""yes" 1>&6
7855 SSL_LIB="-lcrypto -ldl $SSL_LIB"
7857 echo "$ac_t""no" 1>&6
7858 SSL_LIB="-lcrypto $SSL_LIB"
7862 echo "$ac_t""no" 1>&6
7863 { echo "configure: error: Can not find OpenSSL" 1>&2; exit 1; }
7866 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
7867 echo "configure:7868: checking for SSL_library_init in -lssl" >&5
7868 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-%__p_%'`
7869 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7870 echo $ac_n "(cached) $ac_c" 1>&6
7872 ac_save_LIBS="$LIBS"
7873 LIBS="-lssl $SSL_LIB $LIBS"
7874 cat > conftest.$ac_ext <<EOF
7875 #line 7876 "configure"
7876 #include "confdefs.h"
7877 /* Override any gcc2 internal prototype to avoid an error. */
7878 /* We use char because int might match the return type of a gcc2
7879 builtin and then its argument prototype would still apply. */
7880 char SSL_library_init();
7886 if { (eval echo configure:7887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7888 eval "ac_cv_lib_$ac_lib_var=yes"
7890 echo "configure: failed program was:" >&5
7891 cat conftest.$ac_ext >&5
7893 eval "ac_cv_lib_$ac_lib_var=no"
7896 LIBS="$ac_save_LIBS"
7899 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7900 echo "$ac_t""yes" 1>&6
7901 SSL_LIB="-lssl $SSL_LIB"
7903 echo "$ac_t""no" 1>&6
7904 { echo "configure: error: Can not find OpenSSL" 1>&2; exit 1; }
7907 SSL_LIB="-L${OPENSSL_DIR}/lib $SSL_LIB"
7909 cat >> confdefs.h <<\EOF
7920 # Check whether --with-sasl or --without-sasl was given.
7921 if test "${with_sasl+set}" = set; then
7922 withval="$with_sasl"
7928 echo $ac_n "checking if SASL is desired""... $ac_c" 1>&6
7929 echo "configure:7930: checking if SASL is desired" >&5
7930 if test x"$SASL_DIR" = xno ; then
7931 echo "$ac_t""no" 1>&6
7935 echo "$ac_t""yes" 1>&6
7936 echo $ac_n "checking for SASL location""... $ac_c" 1>&6
7937 echo "configure:7938: checking for SASL location" >&5
7938 if test x"$SASL_DIR" = xyes ; then
7939 for dir in $prefix /usr/local/sasl /usr/sasl /usr/pkg /usr/local ; do
7940 if test -f "$dir/include/sasl/sasl.h" ; then
7946 if test x"$SASL_DIR" = xyes ; then
7947 if test -f "/usr/include/sasl/sasl.h" ; then
7948 SASL_INC=-I/usr/include/sasl
7950 echo "$ac_t""$SASL_DIR" 1>&6
7952 echo $ac_n "checking for sasl_getprop in -lsasl2""... $ac_c" 1>&6
7953 echo "configure:7954: checking for sasl_getprop in -lsasl2" >&5
7954 ac_lib_var=`echo sasl2'_'sasl_getprop | sed 'y%./+-%__p_%'`
7955 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7956 echo $ac_n "(cached) $ac_c" 1>&6
7958 ac_save_LIBS="$LIBS"
7959 LIBS="-lsasl2 $LIBS"
7960 cat > conftest.$ac_ext <<EOF
7961 #line 7962 "configure"
7962 #include "confdefs.h"
7963 /* Override any gcc2 internal prototype to avoid an error. */
7964 /* We use char because int might match the return type of a gcc2
7965 builtin and then its argument prototype would still apply. */
7966 char sasl_getprop();
7972 if { (eval echo configure:7973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7974 eval "ac_cv_lib_$ac_lib_var=yes"
7976 echo "configure: failed program was:" >&5
7977 cat conftest.$ac_ext >&5
7979 eval "ac_cv_lib_$ac_lib_var=no"
7982 LIBS="$ac_save_LIBS"
7985 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7986 echo "$ac_t""yes" 1>&6
7989 echo "$ac_t""no" 1>&6
7990 { echo "configure: error: Can not find SASL" 1>&2; exit 1; }
7994 cat >> confdefs.h <<\EOF
7999 { echo "configure: error: Can not find SASL" 1>&2; exit 1; }
8002 echo "$ac_t""$SASL_DIR" 1>&6
8003 SASL_INC="-I${SASL_DIR}/include"
8006 LIBS="$LIBS -L${SASL_DIR}/lib"
8007 echo $ac_n "checking for sasl_getprop in -lsasl2""... $ac_c" 1>&6
8008 echo "configure:8009: checking for sasl_getprop in -lsasl2" >&5
8009 ac_lib_var=`echo sasl2'_'sasl_getprop | sed 'y%./+-%__p_%'`
8010 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8011 echo $ac_n "(cached) $ac_c" 1>&6
8013 ac_save_LIBS="$LIBS"
8014 LIBS="-lsasl2 $LIBS"
8015 cat > conftest.$ac_ext <<EOF
8016 #line 8017 "configure"
8017 #include "confdefs.h"
8018 /* Override any gcc2 internal prototype to avoid an error. */
8019 /* We use char because int might match the return type of a gcc2
8020 builtin and then its argument prototype would still apply. */
8021 char sasl_getprop();
8027 if { (eval echo configure:8028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8029 eval "ac_cv_lib_$ac_lib_var=yes"
8031 echo "configure: failed program was:" >&5
8032 cat conftest.$ac_ext >&5
8034 eval "ac_cv_lib_$ac_lib_var=no"
8037 LIBS="$ac_save_LIBS"
8040 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8041 echo "$ac_t""yes" 1>&6
8042 SASL_LIB="-L${SASL_DIR}/lib -lsasl2"
8044 echo "$ac_t""no" 1>&6
8045 { echo "configure: error: Can not find SASL" 1>&2; exit 1; }
8049 cat >> confdefs.h <<\EOF
8057 if test x"${KRB5_INC}" != x; then
8061 echo $ac_n "checking for library containing krb5_parse_name""... $ac_c" 1>&6
8062 echo "configure:8063: checking for library containing krb5_parse_name" >&5
8063 if eval "test \"`echo '$''{'ac_cv_search_krb5_parse_name'+set}'`\" = set"; then
8064 echo $ac_n "(cached) $ac_c" 1>&6
8066 ac_func_search_save_LIBS="$LIBS"
8067 ac_cv_search_krb5_parse_name="no"
8068 cat > conftest.$ac_ext <<EOF
8069 #line 8070 "configure"
8070 #include "confdefs.h"
8071 /* Override any gcc2 internal prototype to avoid an error. */
8072 /* We use char because int might match the return type of a gcc2
8073 builtin and then its argument prototype would still apply. */
8074 char krb5_parse_name();
8080 if { (eval echo configure:8081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8082 ac_cv_search_krb5_parse_name="none required"
8084 echo "configure: failed program was:" >&5
8085 cat conftest.$ac_ext >&5
8088 test "$ac_cv_search_krb5_parse_name" = "no" && for i in krb5; do
8089 LIBS="-l$i $LIBS -lk5crypto -lcom_err $ac_func_search_save_LIBS"
8090 cat > conftest.$ac_ext <<EOF
8091 #line 8092 "configure"
8092 #include "confdefs.h"
8093 /* Override any gcc2 internal prototype to avoid an error. */
8094 /* We use char because int might match the return type of a gcc2
8095 builtin and then its argument prototype would still apply. */
8096 char krb5_parse_name();
8102 if { (eval echo configure:8103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8104 ac_cv_search_krb5_parse_name="-l$i"
8107 echo "configure: failed program was:" >&5
8108 cat conftest.$ac_ext >&5
8112 LIBS="$ac_func_search_save_LIBS"
8115 echo "$ac_t""$ac_cv_search_krb5_parse_name" 1>&6
8116 if test "$ac_cv_search_krb5_parse_name" != "no"; then
8117 test "$ac_cv_search_krb5_parse_name" = "none required" || LIBS="$ac_cv_search_krb5_parse_name $LIBS"
8119 KRB5_AUTH="auth_krb5"
8120 KRB5_LIB="$KRB5_LDFLAGS $KRB5_LIB -lk5crypto -lcom_err"
8123 for ac_hdr in et/com_err.h
8125 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8126 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8127 echo "configure:8128: checking for $ac_hdr" >&5
8128 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8129 echo $ac_n "(cached) $ac_c" 1>&6
8131 cat > conftest.$ac_ext <<EOF
8132 #line 8133 "configure"
8133 #include "confdefs.h"
8136 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8137 { (eval echo configure:8138: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8138 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8139 if test -z "$ac_err"; then
8141 eval "ac_cv_header_$ac_safe=yes"
8144 echo "configure: failed program was:" >&5
8145 cat conftest.$ac_ext >&5
8147 eval "ac_cv_header_$ac_safe=no"
8151 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8152 echo "$ac_t""yes" 1>&6
8153 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8154 cat >> confdefs.h <<EOF
8155 #define $ac_tr_hdr 1
8159 echo "$ac_t""no" 1>&6
8171 for ac_func in krb5_init_ets
8173 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8174 echo "configure:8175: checking for $ac_func" >&5
8175 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8176 echo $ac_n "(cached) $ac_c" 1>&6
8178 cat > conftest.$ac_ext <<EOF
8179 #line 8180 "configure"
8180 #include "confdefs.h"
8181 /* System header to define __stub macros and hopefully few prototypes,
8182 which can conflict with char $ac_func(); below. */
8184 /* Override any gcc2 internal prototype to avoid an error. */
8185 /* We use char because int might match the return type of a gcc2
8186 builtin and then its argument prototype would still apply. */
8191 /* The GNU C library defines this for functions which it implements
8192 to always fail with ENOSYS. Some functions are actually named
8193 something starting with __ and the normal name is an alias. */
8194 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8202 if { (eval echo configure:8203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8204 eval "ac_cv_func_$ac_func=yes"
8206 echo "configure: failed program was:" >&5
8207 cat conftest.$ac_ext >&5
8209 eval "ac_cv_func_$ac_func=no"
8214 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8215 echo "$ac_t""yes" 1>&6
8216 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8217 cat >> confdefs.h <<EOF
8218 #define $ac_tr_func 1
8222 echo "$ac_t""no" 1>&6
8225 fi # test x"${KRB5_INC}" != x;
8229 if test x"$DO_PERL" = xDO ; then
8230 echo $ac_n "checking for Perl linkage""... $ac_c" 1>&6
8231 echo "configure:8231: checking for Perl linkage" >&5
8232 inn_perl_core_path=`$_PATH_PERL -MConfig -e 'print $Config{archlibexp}'`
8233 inn_perl_core_flags=`$_PATH_PERL -MExtUtils::Embed -e ccopts`
8234 inn_perl_core_libs=`$_PATH_PERL -MExtUtils::Embed -e ldopts 2>&1 | tail -1`
8235 inn_perl_core_libs=" $inn_perl_core_libs "
8236 inn_perl_core_libs=`echo "$inn_perl_core_libs" | sed 's/ -lc / /'`
8238 inn_perl_core_libs=`echo "$inn_perl_core_libs" | sed "s/ $i / /"`
8242 inn_perl_core_libs=`echo "$inn_perl_core_libs" | sed 's/ -lgdbm / /'`
8245 inn_perl_libname=`$_PATH_PERL -MConfig -e 'print $Config{libperl}'`
8246 inn_perl_libname=`echo "$inn_perl_libname" | sed 's/^lib//; s/\.a$//'`
8247 inn_perl_core_libs="${inn_perl_core_libs}-l$inn_perl_libname"
8250 inn_perl_core_libs=`echo "$inn_perl_core_libs" | sed 's/^ *//'`
8251 inn_perl_core_libs=`echo "$inn_perl_core_libs" | sed 's/ *$//'`
8252 inn_perl_core_flags=" $inn_perl_core_flags "
8253 if test x"$inn_enable_largefiles" != xyes ; then
8254 for f in -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES ; do
8255 inn_perl_core_flags=`echo "$inn_perl_core_flags" | sed "s/ $f / /"`
8258 inn_perl_core_flags=`echo "$inn_perl_core_flags" | sed 's/^ *//'`
8259 inn_perl_core_flags=`echo "$inn_perl_core_flags" | sed 's/ *$//'`
8260 PERL_INC="$inn_perl_core_flags"
8261 PERL_LIB="$inn_perl_core_libs"
8262 echo "$ac_t""$inn_perl_core_path" 1>&6
8270 if test x"$DO_PYTHON" = xdefine ; then
8271 echo $ac_n "checking for Python linkage""... $ac_c" 1>&6
8272 echo "configure:8272: checking for Python linkage" >&5
8273 py_prefix=`$_PATH_PYTHON -c 'import sys; print sys.prefix'`
8274 py_ver=`$_PATH_PYTHON -c 'import sys; print sys.version[:3]'`
8275 py_libdir="${py_prefix}/lib/python${py_ver}"
8276 PYTHON_INC="-I${py_prefix}/include/python${py_ver}"
8278 for py_linkpart in LIBS LIBC LIBM LOCALMODLIBS BASEMODLIBS \
8279 LINKFORSHARED LDFLAGS ; do
8280 py_linkage="$py_linkage "`grep "^${py_linkpart}=" \
8281 $py_libdir/config/Makefile \
8282 | sed -e 's/^.*=//'`
8284 PYTHON_LIB="-L$py_libdir/config -lpython$py_ver $py_linkage"
8285 PYTHON_LIB=`echo $PYTHON_LIB | sed -e 's/ \\t*/ /g'`
8286 echo "$ac_t""$py_libdir" 1>&6
8294 if test x"$inn_enable_largefiles" = xyes ; then
8295 echo $ac_n "checking for largefile linkage""... $ac_c" 1>&6
8296 echo "configure:8296: checking for largefile linkage" >&5
8299 echo "$ac_t""no" 1>&6
8300 { echo "configure: error: AIX before 4.2 does not support large files" 1>&2; exit 1; }
8303 echo "$ac_t""ok" 1>&6
8304 LFS_CFLAGS="-D_LARGE_FILES"
8309 echo "$ac_t""ok" 1>&6
8310 LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
8315 echo "$ac_t""no" 1>&6
8316 { echo "configure: error: Large files not supported on this platform" 1>&2; exit 1; }
8319 echo "$ac_t""maybe" 1>&6
8320 LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
8323 cat >> confdefs.h <<\EOF
8324 #define _GNU_SOURCE 1
8329 echo "$ac_t""ok" 1>&6
8330 # Extract the first word of "getconf", so it can be a program name with args.
8331 set dummy getconf; ac_word=$2
8332 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8333 echo "configure:8333: checking for $ac_word" >&5
8334 if eval "test \"`echo '$''{'ac_cv_path_GETCONF'+set}'`\" = set"; then
8335 echo $ac_n "(cached) $ac_c" 1>&6
8339 ac_cv_path_GETCONF="$GETCONF" # Let the user override the test with a path.
8342 ac_cv_path_GETCONF="$GETCONF" # Let the user override the test with a dos path.
8345 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8347 for ac_dir in $ac_dummy; do
8348 test -z "$ac_dir" && ac_dir=.
8349 if test -f $ac_dir/$ac_word; then
8350 ac_cv_path_GETCONF="$ac_dir/$ac_word"
8358 GETCONF="$ac_cv_path_GETCONF"
8359 if test -n "$GETCONF"; then
8360 echo "$ac_t""$GETCONF" 1>&6
8362 echo "$ac_t""no" 1>&6
8365 if test -z "$GETCONF" ; then
8366 { echo "configure: error: getconf required to configure large file support" 1>&2; exit 1; }
8368 LFS_CFLAGS=`$GETCONF LFS_CFLAGS`
8369 LFS_LDFLAGS=`$GETCONF LFS_LDFLAGS`
8370 LFS_LIBS=`$GETCONF LFS_LIBS`
8373 echo "$ac_t""maybe" 1>&6
8374 LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
8384 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
8385 echo "configure:8385: checking for ANSI C header files" >&5
8386 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
8387 echo $ac_n "(cached) $ac_c" 1>&6
8389 cat > conftest.$ac_ext <<EOF
8390 #line 8390 "configure"
8391 #include "confdefs.h"
8397 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8398 { (eval echo configure:8398: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8399 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8400 if test -z "$ac_err"; then
8402 ac_cv_header_stdc=yes
8405 echo "configure: failed program was:" >&5
8406 cat conftest.$ac_ext >&5
8408 ac_cv_header_stdc=no
8412 if test $ac_cv_header_stdc = yes; then
8413 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8414 cat > conftest.$ac_ext <<EOF
8415 #line 8415 "configure"
8416 #include "confdefs.h"
8419 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8420 egrep "memchr" >/dev/null 2>&1; then
8424 ac_cv_header_stdc=no
8430 if test $ac_cv_header_stdc = yes; then
8431 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8432 cat > conftest.$ac_ext <<EOF
8433 #line 8433 "configure"
8434 #include "confdefs.h"
8437 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8438 egrep "free" >/dev/null 2>&1; then
8442 ac_cv_header_stdc=no
8448 if test $ac_cv_header_stdc = yes; then
8449 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8450 if test "$cross_compiling" = yes; then
8453 cat > conftest.$ac_ext <<EOF
8454 #line 8454 "configure"
8455 #include "confdefs.h"
8457 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8458 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8459 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8460 int main () { int i; for (i = 0; i < 256; i++)
8461 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8465 if { (eval echo configure:8465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8469 echo "configure: failed program was:" >&5
8470 cat conftest.$ac_ext >&5
8472 ac_cv_header_stdc=no
8480 echo "$ac_t""$ac_cv_header_stdc" 1>&6
8481 if test $ac_cv_header_stdc = yes; then
8482 cat >> confdefs.h <<\EOF
8483 #define STDC_HEADERS 1
8489 if test x"$ac_cv_header_stdc" = xno ; then
8490 for ac_hdr in memory.h stdlib.h strings.h
8492 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8493 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8494 echo "configure:8494: checking for $ac_hdr" >&5
8495 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8496 echo $ac_n "(cached) $ac_c" 1>&6
8498 cat > conftest.$ac_ext <<EOF
8499 #line 8499 "configure"
8500 #include "confdefs.h"
8503 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8504 { (eval echo configure:8504: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8505 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8506 if test -z "$ac_err"; then
8508 eval "ac_cv_header_$ac_safe=yes"
8511 echo "configure: failed program was:" >&5
8512 cat conftest.$ac_ext >&5
8514 eval "ac_cv_header_$ac_safe=no"
8518 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8519 echo "$ac_t""yes" 1>&6
8520 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8521 cat >> confdefs.h <<EOF
8522 #define $ac_tr_hdr 1
8526 echo "$ac_t""no" 1>&6
8530 for ac_func in memcpy strchr
8532 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8533 echo "configure:8533: checking for $ac_func" >&5
8534 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8535 echo $ac_n "(cached) $ac_c" 1>&6
8537 cat > conftest.$ac_ext <<EOF
8538 #line 8538 "configure"
8539 #include "confdefs.h"
8540 /* System header to define __stub macros and hopefully few prototypes,
8541 which can conflict with char $ac_func(); below. */
8543 /* Override any gcc2 internal prototype to avoid an error. */
8544 /* We use char because int might match the return type of a gcc2
8545 builtin and then its argument prototype would still apply. */
8550 /* The GNU C library defines this for functions which it implements
8551 to always fail with ENOSYS. Some functions are actually named
8552 something starting with __ and the normal name is an alias. */
8553 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8561 if { (eval echo configure:8561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8563 eval "ac_cv_func_$ac_func=yes"
8565 echo "configure: failed program was:" >&5
8566 cat conftest.$ac_ext >&5
8568 eval "ac_cv_func_$ac_func=no"
8573 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8574 echo "$ac_t""yes" 1>&6
8575 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8576 cat >> confdefs.h <<EOF
8577 #define $ac_tr_func 1
8581 echo "$ac_t""no" 1>&6
8588 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
8590 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8591 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
8592 echo "configure:8592: checking for $ac_hdr that defines DIR" >&5
8593 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
8594 echo $ac_n "(cached) $ac_c" 1>&6
8596 cat > conftest.$ac_ext <<EOF
8597 #line 8597 "configure"
8598 #include "confdefs.h"
8599 #include <sys/types.h>
8605 if { (eval echo configure:8605: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8607 eval "ac_cv_header_dirent_$ac_safe=yes"
8609 echo "configure: failed program was:" >&5
8610 cat conftest.$ac_ext >&5
8612 eval "ac_cv_header_dirent_$ac_safe=no"
8616 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
8617 echo "$ac_t""yes" 1>&6
8618 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8619 cat >> confdefs.h <<EOF
8620 #define $ac_tr_hdr 1
8622 ac_header_dirent=$ac_hdr; break
8624 echo "$ac_t""no" 1>&6
8627 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8628 if test $ac_header_dirent = dirent.h; then
8629 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
8630 echo "configure:8630: checking for opendir in -ldir" >&5
8631 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
8632 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8633 echo $ac_n "(cached) $ac_c" 1>&6
8635 ac_save_LIBS="$LIBS"
8637 cat > conftest.$ac_ext <<EOF
8638 #line 8638 "configure"
8639 #include "confdefs.h"
8640 /* Override any gcc2 internal prototype to avoid an error. */
8641 /* We use char because int might match the return type of a gcc2
8642 builtin and then its argument prototype would still apply. */
8649 if { (eval echo configure:8649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8651 eval "ac_cv_lib_$ac_lib_var=yes"
8653 echo "configure: failed program was:" >&5
8654 cat conftest.$ac_ext >&5
8656 eval "ac_cv_lib_$ac_lib_var=no"
8659 LIBS="$ac_save_LIBS"
8662 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8663 echo "$ac_t""yes" 1>&6
8666 echo "$ac_t""no" 1>&6
8670 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
8671 echo "configure:8671: checking for opendir in -lx" >&5
8672 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
8673 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8674 echo $ac_n "(cached) $ac_c" 1>&6
8676 ac_save_LIBS="$LIBS"
8678 cat > conftest.$ac_ext <<EOF
8679 #line 8679 "configure"
8680 #include "confdefs.h"
8681 /* Override any gcc2 internal prototype to avoid an error. */
8682 /* We use char because int might match the return type of a gcc2
8683 builtin and then its argument prototype would still apply. */
8690 if { (eval echo configure:8690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8692 eval "ac_cv_lib_$ac_lib_var=yes"
8694 echo "configure: failed program was:" >&5
8695 cat conftest.$ac_ext >&5
8697 eval "ac_cv_lib_$ac_lib_var=no"
8700 LIBS="$ac_save_LIBS"
8703 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8704 echo "$ac_t""yes" 1>&6
8707 echo "$ac_t""no" 1>&6
8712 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
8713 echo "configure:8713: checking whether time.h and sys/time.h may both be included" >&5
8714 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
8715 echo $ac_n "(cached) $ac_c" 1>&6
8717 cat > conftest.$ac_ext <<EOF
8718 #line 8718 "configure"
8719 #include "confdefs.h"
8720 #include <sys/types.h>
8721 #include <sys/time.h>
8727 if { (eval echo configure:8727: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8729 ac_cv_header_time=yes
8731 echo "configure: failed program was:" >&5
8732 cat conftest.$ac_ext >&5
8734 ac_cv_header_time=no
8739 echo "$ac_t""$ac_cv_header_time" 1>&6
8740 if test $ac_cv_header_time = yes; then
8741 cat >> confdefs.h <<\EOF
8742 #define TIME_WITH_SYS_TIME 1
8747 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
8748 echo "configure:8748: checking for sys/wait.h that is POSIX.1 compatible" >&5
8749 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
8750 echo $ac_n "(cached) $ac_c" 1>&6
8752 cat > conftest.$ac_ext <<EOF
8753 #line 8753 "configure"
8754 #include "confdefs.h"
8755 #include <sys/types.h>
8756 #include <sys/wait.h>
8758 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8761 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8766 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8769 if { (eval echo configure:8769: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8771 ac_cv_header_sys_wait_h=yes
8773 echo "configure: failed program was:" >&5
8774 cat conftest.$ac_ext >&5
8776 ac_cv_header_sys_wait_h=no
8781 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
8782 if test $ac_cv_header_sys_wait_h = yes; then
8783 cat >> confdefs.h <<\EOF
8784 #define HAVE_SYS_WAIT_H 1
8790 for ac_hdr in crypt.h inttypes.h limits.h ndbm.h pam/pam_appl.h stdbool.h \
8791 stddef.h stdint.h string.h sys/bitypes.h sys/filio.h \
8792 sys/loadavg.h sys/param.h sys/select.h sys/sysinfo.h \
8795 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8796 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8797 echo "configure:8797: checking for $ac_hdr" >&5
8798 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8799 echo $ac_n "(cached) $ac_c" 1>&6
8801 cat > conftest.$ac_ext <<EOF
8802 #line 8802 "configure"
8803 #include "confdefs.h"
8806 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8807 { (eval echo configure:8807: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8808 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8809 if test -z "$ac_err"; then
8811 eval "ac_cv_header_$ac_safe=yes"
8814 echo "configure: failed program was:" >&5
8815 cat conftest.$ac_ext >&5
8817 eval "ac_cv_header_$ac_safe=no"
8821 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8822 echo "$ac_t""yes" 1>&6
8823 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8824 cat >> confdefs.h <<EOF
8825 #define $ac_tr_hdr 1
8829 echo "$ac_t""no" 1>&6
8834 if test x"$ac_cv_header_ndbm_h" = xno ; then
8835 for ac_hdr in db1/ndbm.h gdbm-ndbm.h
8837 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8838 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8839 echo "configure:8839: checking for $ac_hdr" >&5
8840 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8841 echo $ac_n "(cached) $ac_c" 1>&6
8843 cat > conftest.$ac_ext <<EOF
8844 #line 8844 "configure"
8845 #include "confdefs.h"
8848 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8849 { (eval echo configure:8849: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8850 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8851 if test -z "$ac_err"; then
8853 eval "ac_cv_header_$ac_safe=yes"
8856 echo "configure: failed program was:" >&5
8857 cat conftest.$ac_ext >&5
8859 eval "ac_cv_header_$ac_safe=no"
8863 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8864 echo "$ac_t""yes" 1>&6
8865 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8866 cat >> confdefs.h <<EOF
8867 #define $ac_tr_hdr 1
8871 echo "$ac_t""no" 1>&6
8878 echo $ac_n "checking whether h_errno must be declared""... $ac_c" 1>&6
8879 echo "configure:8879: checking whether h_errno must be declared" >&5
8880 if eval "test \"`echo '$''{'inn_cv_herrno_need_decl'+set}'`\" = set"; then
8881 echo $ac_n "(cached) $ac_c" 1>&6
8883 cat > conftest.$ac_ext <<EOF
8884 #line 8884 "configure"
8885 #include "confdefs.h"
8891 if { (eval echo configure:8891: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8893 inn_cv_herrno_need_decl=no
8895 echo "configure: failed program was:" >&5
8896 cat conftest.$ac_ext >&5
8898 inn_cv_herrno_need_decl=yes
8903 echo "$ac_t""$inn_cv_herrno_need_decl" 1>&6
8904 if test "$inn_cv_herrno_need_decl" = yes ; then
8905 cat >> confdefs.h <<\EOF
8906 #define NEED_HERRNO_DECLARATION 1
8914 echo $ac_n "checking whether inet_aton must be declared""... $ac_c" 1>&6
8915 echo "configure:8915: checking whether inet_aton must be declared" >&5
8916 if eval "test \"`echo '$''{'inn_cv_decl_needed_inet_aton'+set}'`\" = set"; then
8917 echo $ac_n "(cached) $ac_c" 1>&6
8919 cat > conftest.$ac_ext <<EOF
8920 #line 8920 "configure"
8921 #include "confdefs.h"
8923 #include <sys/types.h>
8925 # include <stdlib.h>
8926 # include <stddef.h>
8929 # include <stdlib.h>
8932 # define strchr index
8933 # define strrchr rindex
8937 # if !STDC_HEADERS && HAVE_MEMORY_H
8938 # include <memory.h>
8940 # include <string.h>
8943 # include <strings.h>
8947 # include <unistd.h>
8949 #include <netinet/in.h>
8950 #include <arpa/inet.h>
8952 char *(*pfn) = (char *(*)) inet_aton
8955 if { (eval echo configure:8955: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8957 inn_cv_decl_needed_inet_aton=no
8959 echo "configure: failed program was:" >&5
8960 cat conftest.$ac_ext >&5
8962 inn_cv_decl_needed_inet_aton=yes
8967 if test $inn_cv_decl_needed_inet_aton = yes ; then
8968 echo "$ac_t""yes" 1>&6
8969 cat >> confdefs.h <<\EOF
8970 #define NEED_DECLARATION_INET_ATON 1
8974 echo "$ac_t""no" 1>&6
8976 echo $ac_n "checking whether inet_ntoa must be declared""... $ac_c" 1>&6
8977 echo "configure:8977: checking whether inet_ntoa must be declared" >&5
8978 if eval "test \"`echo '$''{'inn_cv_decl_needed_inet_ntoa'+set}'`\" = set"; then
8979 echo $ac_n "(cached) $ac_c" 1>&6
8981 cat > conftest.$ac_ext <<EOF
8982 #line 8982 "configure"
8983 #include "confdefs.h"
8985 #include <sys/types.h>
8987 # include <stdlib.h>
8988 # include <stddef.h>
8991 # include <stdlib.h>
8994 # define strchr index
8995 # define strrchr rindex
8999 # if !STDC_HEADERS && HAVE_MEMORY_H
9000 # include <memory.h>
9002 # include <string.h>
9005 # include <strings.h>
9009 # include <unistd.h>
9011 #include <netinet/in.h>
9012 #include <arpa/inet.h>
9014 char *(*pfn) = (char *(*)) inet_ntoa
9017 if { (eval echo configure:9017: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9019 inn_cv_decl_needed_inet_ntoa=no
9021 echo "configure: failed program was:" >&5
9022 cat conftest.$ac_ext >&5
9024 inn_cv_decl_needed_inet_ntoa=yes
9029 if test $inn_cv_decl_needed_inet_ntoa = yes ; then
9030 echo "$ac_t""yes" 1>&6
9031 cat >> confdefs.h <<\EOF
9032 #define NEED_DECLARATION_INET_NTOA 1
9036 echo "$ac_t""no" 1>&6
9038 echo $ac_n "checking whether snprintf must be declared""... $ac_c" 1>&6
9039 echo "configure:9039: checking whether snprintf must be declared" >&5
9040 if eval "test \"`echo '$''{'inn_cv_decl_needed_snprintf'+set}'`\" = set"; then
9041 echo $ac_n "(cached) $ac_c" 1>&6
9043 cat > conftest.$ac_ext <<EOF
9044 #line 9044 "configure"
9045 #include "confdefs.h"
9047 #include <sys/types.h>
9049 # include <stdlib.h>
9050 # include <stddef.h>
9053 # include <stdlib.h>
9056 # define strchr index
9057 # define strrchr rindex
9061 # if !STDC_HEADERS && HAVE_MEMORY_H
9062 # include <memory.h>
9064 # include <string.h>
9067 # include <strings.h>
9071 # include <unistd.h>
9075 char *(*pfn) = (char *(*)) snprintf
9078 if { (eval echo configure:9078: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9080 inn_cv_decl_needed_snprintf=no
9082 echo "configure: failed program was:" >&5
9083 cat conftest.$ac_ext >&5
9085 inn_cv_decl_needed_snprintf=yes
9090 if test $inn_cv_decl_needed_snprintf = yes ; then
9091 echo "$ac_t""yes" 1>&6
9092 cat >> confdefs.h <<\EOF
9093 #define NEED_DECLARATION_SNPRINTF 1
9097 echo "$ac_t""no" 1>&6
9099 echo $ac_n "checking whether vsnprintf must be declared""... $ac_c" 1>&6
9100 echo "configure:9100: checking whether vsnprintf must be declared" >&5
9101 if eval "test \"`echo '$''{'inn_cv_decl_needed_vsnprintf'+set}'`\" = set"; then
9102 echo $ac_n "(cached) $ac_c" 1>&6
9104 cat > conftest.$ac_ext <<EOF
9105 #line 9105 "configure"
9106 #include "confdefs.h"
9108 #include <sys/types.h>
9110 # include <stdlib.h>
9111 # include <stddef.h>
9114 # include <stdlib.h>
9117 # define strchr index
9118 # define strrchr rindex
9122 # if !STDC_HEADERS && HAVE_MEMORY_H
9123 # include <memory.h>
9125 # include <string.h>
9128 # include <strings.h>
9132 # include <unistd.h>
9136 char *(*pfn) = (char *(*)) vsnprintf
9139 if { (eval echo configure:9139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9141 inn_cv_decl_needed_vsnprintf=no
9143 echo "configure: failed program was:" >&5
9144 cat conftest.$ac_ext >&5
9146 inn_cv_decl_needed_vsnprintf=yes
9151 if test $inn_cv_decl_needed_vsnprintf = yes ; then
9152 echo "$ac_t""yes" 1>&6
9153 cat >> confdefs.h <<\EOF
9154 #define NEED_DECLARATION_VSNPRINTF 1
9158 echo "$ac_t""no" 1>&6
9161 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
9162 echo "configure:9162: checking whether byte ordering is bigendian" >&5
9163 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
9164 echo $ac_n "(cached) $ac_c" 1>&6
9166 ac_cv_c_bigendian=unknown
9167 # See if sys/param.h defines the BYTE_ORDER macro.
9168 cat > conftest.$ac_ext <<EOF
9169 #line 9169 "configure"
9170 #include "confdefs.h"
9171 #include <sys/types.h>
9172 #include <sys/param.h>
9175 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
9180 if { (eval echo configure:9180: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9182 # It does; now see whether it defined to BIG_ENDIAN or not.
9183 cat > conftest.$ac_ext <<EOF
9184 #line 9184 "configure"
9185 #include "confdefs.h"
9186 #include <sys/types.h>
9187 #include <sys/param.h>
9190 #if BYTE_ORDER != BIG_ENDIAN
9195 if { (eval echo configure:9195: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9197 ac_cv_c_bigendian=yes
9199 echo "configure: failed program was:" >&5
9200 cat conftest.$ac_ext >&5
9202 ac_cv_c_bigendian=no
9206 echo "configure: failed program was:" >&5
9207 cat conftest.$ac_ext >&5
9210 if test $ac_cv_c_bigendian = unknown; then
9211 if test "$cross_compiling" = yes; then
9212 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
9214 cat > conftest.$ac_ext <<EOF
9215 #line 9215 "configure"
9216 #include "confdefs.h"
9218 /* Are we little or big endian? From Harbison&Steele. */
9222 char c[sizeof (long)];
9225 exit (u.c[sizeof (long) - 1] == 1);
9228 if { (eval echo configure:9228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9230 ac_cv_c_bigendian=no
9232 echo "configure: failed program was:" >&5
9233 cat conftest.$ac_ext >&5
9235 ac_cv_c_bigendian=yes
9243 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
9244 if test $ac_cv_c_bigendian = yes; then
9245 cat >> confdefs.h <<\EOF
9246 #define WORDS_BIGENDIAN 1
9251 echo $ac_n "checking for working const""... $ac_c" 1>&6
9252 echo "configure:9252: checking for working const" >&5
9253 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
9254 echo $ac_n "(cached) $ac_c" 1>&6
9256 cat > conftest.$ac_ext <<EOF
9257 #line 9257 "configure"
9258 #include "confdefs.h"
9262 /* Ultrix mips cc rejects this. */
9263 typedef int charset[2]; const charset x;
9264 /* SunOS 4.1.1 cc rejects this. */
9265 char const *const *ccp;
9267 /* NEC SVR4.0.2 mips cc rejects this. */
9268 struct point {int x, y;};
9269 static struct point const zero = {0,0};
9270 /* AIX XL C 1.02.0.0 rejects this.
9271 It does not let you subtract one const X* pointer from another in an arm
9272 of an if-expression whose if-part is not a constant expression */
9273 const char *g = "string";
9274 ccp = &g + (g ? g-g : 0);
9275 /* HPUX 7.0 cc rejects these. */
9278 ccp = (char const *const *) p;
9279 { /* SCO 3.2v4 cc rejects this. */
9281 char const *s = 0 ? (char *) 0 : (char const *) 0;
9285 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9287 const int *foo = &x[0];
9290 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9291 typedef const int *iptr;
9295 { /* AIX XL C 1.02.0.0 rejects this saying
9296 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9297 struct s { int j; const int *ap[3]; };
9298 struct s *b; b->j = 5;
9300 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9306 if { (eval echo configure:9306: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9310 echo "configure: failed program was:" >&5
9311 cat conftest.$ac_ext >&5
9318 echo "$ac_t""$ac_cv_c_const" 1>&6
9319 if test $ac_cv_c_const = no; then
9320 cat >> confdefs.h <<\EOF
9326 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
9327 echo "configure:9327: checking for st_blksize in struct stat" >&5
9328 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
9329 echo $ac_n "(cached) $ac_c" 1>&6
9331 cat > conftest.$ac_ext <<EOF
9332 #line 9332 "configure"
9333 #include "confdefs.h"
9334 #include <sys/types.h>
9335 #include <sys/stat.h>
9337 struct stat s; s.st_blksize;
9340 if { (eval echo configure:9340: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9342 ac_cv_struct_st_blksize=yes
9344 echo "configure: failed program was:" >&5
9345 cat conftest.$ac_ext >&5
9347 ac_cv_struct_st_blksize=no
9352 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
9353 if test $ac_cv_struct_st_blksize = yes; then
9354 cat >> confdefs.h <<\EOF
9355 #define HAVE_ST_BLKSIZE 1
9360 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
9361 echo "configure:9361: checking whether struct tm is in sys/time.h or time.h" >&5
9362 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
9363 echo $ac_n "(cached) $ac_c" 1>&6
9365 cat > conftest.$ac_ext <<EOF
9366 #line 9366 "configure"
9367 #include "confdefs.h"
9368 #include <sys/types.h>
9371 struct tm *tp; tp->tm_sec;
9374 if { (eval echo configure:9374: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9376 ac_cv_struct_tm=time.h
9378 echo "configure: failed program was:" >&5
9379 cat conftest.$ac_ext >&5
9381 ac_cv_struct_tm=sys/time.h
9386 echo "$ac_t""$ac_cv_struct_tm" 1>&6
9387 if test $ac_cv_struct_tm = sys/time.h; then
9388 cat >> confdefs.h <<\EOF
9389 #define TM_IN_SYS_TIME 1
9394 echo $ac_n "checking for size_t""... $ac_c" 1>&6
9395 echo "configure:9395: checking for size_t" >&5
9396 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
9397 echo $ac_n "(cached) $ac_c" 1>&6
9399 cat > conftest.$ac_ext <<EOF
9400 #line 9400 "configure"
9401 #include "confdefs.h"
9402 #include <sys/types.h>
9408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9409 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9411 ac_cv_type_size_t=yes
9414 ac_cv_type_size_t=no
9419 echo "$ac_t""$ac_cv_type_size_t" 1>&6
9420 if test $ac_cv_type_size_t = no; then
9421 cat >> confdefs.h <<\EOF
9422 #define size_t unsigned
9427 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
9428 echo "configure:9428: checking for uid_t in sys/types.h" >&5
9429 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
9430 echo $ac_n "(cached) $ac_c" 1>&6
9432 cat > conftest.$ac_ext <<EOF
9433 #line 9433 "configure"
9434 #include "confdefs.h"
9435 #include <sys/types.h>
9437 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9438 egrep "uid_t" >/dev/null 2>&1; then
9440 ac_cv_type_uid_t=yes
9449 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
9450 if test $ac_cv_type_uid_t = no; then
9451 cat >> confdefs.h <<\EOF
9455 cat >> confdefs.h <<\EOF
9461 echo $ac_n "checking for off_t""... $ac_c" 1>&6
9462 echo "configure:9462: checking for off_t" >&5
9463 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
9464 echo $ac_n "(cached) $ac_c" 1>&6
9466 cat > conftest.$ac_ext <<EOF
9467 #line 9467 "configure"
9468 #include "confdefs.h"
9469 #include <sys/types.h>
9475 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9476 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9478 ac_cv_type_off_t=yes
9486 echo "$ac_t""$ac_cv_type_off_t" 1>&6
9487 if test $ac_cv_type_off_t = no; then
9488 cat >> confdefs.h <<\EOF
9494 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
9495 echo "configure:9495: checking for pid_t" >&5
9496 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
9497 echo $ac_n "(cached) $ac_c" 1>&6
9499 cat > conftest.$ac_ext <<EOF
9500 #line 9500 "configure"
9501 #include "confdefs.h"
9502 #include <sys/types.h>
9508 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9509 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9511 ac_cv_type_pid_t=yes
9519 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
9520 if test $ac_cv_type_pid_t = no; then
9521 cat >> confdefs.h <<\EOF
9527 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
9528 echo "configure:9528: checking for ptrdiff_t" >&5
9529 if eval "test \"`echo '$''{'ac_cv_type_ptrdiff_t'+set}'`\" = set"; then
9530 echo $ac_n "(cached) $ac_c" 1>&6
9532 cat > conftest.$ac_ext <<EOF
9533 #line 9533 "configure"
9534 #include "confdefs.h"
9535 #include <sys/types.h>
9541 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9542 egrep "(^|[^a-zA-Z_0-9])ptrdiff_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9544 ac_cv_type_ptrdiff_t=yes
9547 ac_cv_type_ptrdiff_t=no
9552 echo "$ac_t""$ac_cv_type_ptrdiff_t" 1>&6
9553 if test $ac_cv_type_ptrdiff_t = no; then
9554 cat >> confdefs.h <<\EOF
9555 #define ptrdiff_t long
9560 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
9561 echo "configure:9561: checking for ssize_t" >&5
9562 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
9563 echo $ac_n "(cached) $ac_c" 1>&6
9565 cat > conftest.$ac_ext <<EOF
9566 #line 9566 "configure"
9567 #include "confdefs.h"
9568 #include <sys/types.h>
9574 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9575 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9577 ac_cv_type_ssize_t=yes
9580 ac_cv_type_ssize_t=no
9585 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
9586 if test $ac_cv_type_ssize_t = no; then
9587 cat >> confdefs.h <<\EOF
9595 echo $ac_n "checking for C99 variadic macros""... $ac_c" 1>&6
9596 echo "configure:9596: checking for C99 variadic macros" >&5
9597 if eval "test \"`echo '$''{'inn_cv_c_c99_vamacros'+set}'`\" = set"; then
9598 echo $ac_n "(cached) $ac_c" 1>&6
9600 cat > conftest.$ac_ext <<EOF
9601 #line 9601 "configure"
9602 #include "confdefs.h"
9604 #define error(...) fprintf(stderr, __VA_ARGS__)
9606 error("foo"); error("foo %d", 0); return 0;
9609 if { (eval echo configure:9609: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9611 inn_cv_c_c99_vamacros=yes
9613 echo "configure: failed program was:" >&5
9614 cat conftest.$ac_ext >&5
9616 inn_cv_c_c99_vamacros=no
9621 echo "$ac_t""$inn_cv_c_c99_vamacros" 1>&6
9622 if test $inn_cv_c_c99_vamacros = yes ; then
9623 cat >> confdefs.h <<\EOF
9624 #define HAVE_C99_VAMACROS 1
9630 echo $ac_n "checking for GNU-style variadic macros""... $ac_c" 1>&6
9631 echo "configure:9631: checking for GNU-style variadic macros" >&5
9632 if eval "test \"`echo '$''{'inn_cv_c_gnu_vamacros'+set}'`\" = set"; then
9633 echo $ac_n "(cached) $ac_c" 1>&6
9635 cat > conftest.$ac_ext <<EOF
9636 #line 9636 "configure"
9637 #include "confdefs.h"
9639 #define error(args...) fprintf(stderr, args)
9641 error("foo"); error("foo %d", 0); return 0;
9644 if { (eval echo configure:9644: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9646 inn_cv_c_gnu_vamacros=yes
9648 echo "configure: failed program was:" >&5
9649 cat conftest.$ac_ext >&5
9651 inn_cv_c_gnu_vamacros=no
9656 echo "$ac_t""$inn_cv_c_gnu_vamacros" 1>&6
9657 if test $inn_cv_c_gnu_vamacros = yes ; then
9658 cat >> confdefs.h <<\EOF
9659 #define HAVE_GNU_VAMACROS 1
9665 echo $ac_n "checking for long long int""... $ac_c" 1>&6
9666 echo "configure:9666: checking for long long int" >&5
9667 if eval "test \"`echo '$''{'inn_cv_c_long_long'+set}'`\" = set"; then
9668 echo $ac_n "(cached) $ac_c" 1>&6
9670 cat > conftest.$ac_ext <<EOF
9671 #line 9671 "configure"
9672 #include "confdefs.h"
9678 if { (eval echo configure:9678: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9680 inn_cv_c_long_long=yes
9682 echo "configure: failed program was:" >&5
9683 cat conftest.$ac_ext >&5
9685 inn_cv_c_long_long=no
9690 echo "$ac_t""$inn_cv_c_long_long" 1>&6
9691 if test $inn_cv_c_long_long = yes ; then
9692 cat >> confdefs.h <<\EOF
9693 #define HAVE_LONG_LONG 1
9701 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
9702 echo "configure:9702: checking for sig_atomic_t" >&5
9703 if eval "test \"`echo '$''{'ac_cv_type_sig_atomic_t'+set}'`\" = set"; then
9704 echo $ac_n "(cached) $ac_c" 1>&6
9706 cat > conftest.$ac_ext <<EOF
9707 #line 9707 "configure"
9708 #include "confdefs.h"
9709 #include <sys/types.h>
9711 # include <stdlib.h>
9712 # include <stddef.h>
9716 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9717 egrep "(^|[^a-zA-Z_0-9])sig_atomic_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9719 ac_cv_type_sig_atomic_t=yes
9722 ac_cv_type_sig_atomic_t=no
9729 echo "$ac_t""$ac_cv_type_sig_atomic_t" 1>&6
9730 if test x"$ac_cv_type_sig_atomic_t" = xno ; then
9731 cat >> confdefs.h <<EOF
9732 #define sig_atomic_t int
9737 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
9738 echo "configure:9738: checking for socklen_t" >&5
9739 if eval "test \"`echo '$''{'ac_cv_type_socklen_t'+set}'`\" = set"; then
9740 echo $ac_n "(cached) $ac_c" 1>&6
9742 cat > conftest.$ac_ext <<EOF
9743 #line 9743 "configure"
9744 #include "confdefs.h"
9745 #include <sys/types.h>
9747 # include <stdlib.h>
9748 # include <stddef.h>
9750 #include <sys/socket.h>
9752 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9753 egrep "(^|[^a-zA-Z_0-9])socklen_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9755 ac_cv_type_socklen_t=yes
9758 ac_cv_type_socklen_t=no
9765 echo "$ac_t""$ac_cv_type_socklen_t" 1>&6
9766 if test x"$ac_cv_type_socklen_t" = xno ; then
9767 cat >> confdefs.h <<EOF
9768 #define socklen_t int
9776 echo $ac_n "checking value of IOV_MAX""... $ac_c" 1>&6
9777 echo "configure:9777: checking value of IOV_MAX" >&5
9778 if eval "test \"`echo '$''{'inn_cv_macro_iov_max'+set}'`\" = set"; then
9779 echo $ac_n "(cached) $ac_c" 1>&6
9781 if test "$cross_compiling" = yes; then
9784 cat > conftest.$ac_ext <<EOF
9785 #line 9785 "configure"
9786 #include "confdefs.h"
9787 #include <sys/types.h>
9789 #include <sys/uio.h>
9792 #ifdef HAVE_UNISTD_H
9793 # include <unistd.h>
9795 #ifdef HAVE_LIMITS_H
9796 # include <limits.h>
9803 struct iovec array[1024];
9806 FILE *f = fopen ("conftestval", "w");
9809 fprintf (f, "set in limits.h\n");
9812 fprintf (f, "%d\n", UIO_MAXIOV);
9814 fd = open ("/dev/null", O_WRONLY, 0666);
9815 if (fd < 0) return 1;
9816 for (size = 1; size <= 1024; size++)
9818 array[size - 1].iov_base = &data;
9819 array[size - 1].iov_len = sizeof data;
9820 if (writev (fd, array, size) < 0)
9822 if (errno != EINVAL) return 1;
9823 fprintf(f, "%d\n", size - 1);
9827 fprintf (f, "1024\n");
9828 # endif /* UIO_MAXIOV */
9829 #endif /* IOV_MAX */
9833 if { (eval echo configure:9833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9835 inn_cv_macro_iov_max=`cat conftestval`
9837 echo "configure: failed program was:" >&5
9838 cat conftest.$ac_ext >&5
9840 inn_cv_macro_iov_max=error
9845 if test x"$inn_cv_macro_iov_max" = xerror ; then
9846 echo "configure: warning: probe failure, assuming 16" 1>&2
9847 inn_cv_macro_iov_max=16
9851 echo "$ac_t""$inn_cv_macro_iov_max" 1>&6
9852 if test x"$inn_cv_macro_iov_max" != x"set in limits.h" ; then
9853 cat >> confdefs.h <<EOF
9854 #define IOV_MAX $inn_cv_macro_iov_max
9860 echo $ac_n "checking for SUN_LEN""... $ac_c" 1>&6
9861 echo "configure:9861: checking for SUN_LEN" >&5
9862 if eval "test \"`echo '$''{'inn_cv_macro_sun_len'+set}'`\" = set"; then
9863 echo $ac_n "(cached) $ac_c" 1>&6
9865 cat > conftest.$ac_ext <<EOF
9866 #line 9866 "configure"
9867 #include "confdefs.h"
9868 #include <sys/types.h>
9871 struct sockaddr_un sun;
9877 if { (eval echo configure:9877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9879 inn_cv_macro_sun_len=yes
9881 echo "configure: failed program was:" >&5
9882 cat conftest.$ac_ext >&5
9884 inn_cv_macro_sun_len=no
9889 echo "$ac_t""$inn_cv_macro_sun_len" 1>&6
9890 if test x"$inn_cv_macro_sun_len" = xyes ; then
9891 cat >> confdefs.h <<\EOF
9892 #define HAVE_SUN_LEN 1
9898 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
9899 echo "configure:9899: checking for tm_gmtoff in struct tm" >&5
9900 if eval "test \"`echo '$''{'inn_cv_struct_tm_gmtoff'+set}'`\" = set"; then
9901 echo $ac_n "(cached) $ac_c" 1>&6
9903 cat > conftest.$ac_ext <<EOF
9904 #line 9904 "configure"
9905 #include "confdefs.h"
9908 struct tm t; t.tm_gmtoff = 3600
9911 if { (eval echo configure:9911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9913 inn_cv_struct_tm_gmtoff=yes
9915 echo "configure: failed program was:" >&5
9916 cat conftest.$ac_ext >&5
9918 inn_cv_struct_tm_gmtoff=no
9923 echo "$ac_t""$inn_cv_struct_tm_gmtoff" 1>&6
9924 if test x"$inn_cv_struct_tm_gmtoff" = xyes ; then
9925 cat >> confdefs.h <<\EOF
9926 #define HAVE_TM_GMTOFF 1
9932 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
9933 echo "configure:9933: checking for tm_zone in struct tm" >&5
9934 if eval "test \"`echo '$''{'inn_cv_struct_tm_zone'+set}'`\" = set"; then
9935 echo $ac_n "(cached) $ac_c" 1>&6
9937 cat > conftest.$ac_ext <<EOF
9938 #line 9938 "configure"
9939 #include "confdefs.h"
9942 struct tm t; t.tm_zone = "UTC"
9945 if { (eval echo configure:9945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9947 inn_cv_struct_tm_zone=yes
9949 echo "configure: failed program was:" >&5
9950 cat conftest.$ac_ext >&5
9952 inn_cv_struct_tm_zone=no
9957 echo "$ac_t""$inn_cv_struct_tm_zone" 1>&6
9958 if test x"$inn_cv_struct_tm_zone" = xyes ; then
9959 cat >> confdefs.h <<\EOF
9960 #define HAVE_TM_ZONE 1
9966 echo $ac_n "checking for timezone variable""... $ac_c" 1>&6
9967 echo "configure:9967: checking for timezone variable" >&5
9968 if eval "test \"`echo '$''{'inn_cv_var_timezone'+set}'`\" = set"; then
9969 echo $ac_n "(cached) $ac_c" 1>&6
9971 cat > conftest.$ac_ext <<EOF
9972 #line 9972 "configure"
9973 #include "confdefs.h"
9976 timezone = 3600; altzone = 7200
9979 if { (eval echo configure:9979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9981 inn_cv_var_timezone=yes
9983 echo "configure: failed program was:" >&5
9984 cat conftest.$ac_ext >&5
9986 inn_cv_var_timezone=no
9991 echo "$ac_t""$inn_cv_var_timezone" 1>&6
9992 if test x"$inn_cv_var_timezone" = xyes ; then
9993 cat >> confdefs.h <<\EOF
9994 #define HAVE_VAR_TIMEZONE 1
10000 echo $ac_n "checking for tzname variable""... $ac_c" 1>&6
10001 echo "configure:10001: checking for tzname variable" >&5
10002 if eval "test \"`echo '$''{'inn_cv_var_tzname'+set}'`\" = set"; then
10003 echo $ac_n "(cached) $ac_c" 1>&6
10005 cat > conftest.$ac_ext <<EOF
10006 #line 10006 "configure"
10007 #include "confdefs.h"
10013 if { (eval echo configure:10013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10015 inn_cv_var_tzname=yes
10017 echo "configure: failed program was:" >&5
10018 cat conftest.$ac_ext >&5
10020 inn_cv_var_tzname=no
10025 echo "$ac_t""$inn_cv_var_tzname" 1>&6
10026 if test x"$inn_cv_var_tzname" = xyes ; then
10027 cat >> confdefs.h <<\EOF
10028 #define HAVE_VAR_TZNAME 1
10035 echo $ac_n "checking size of int""... $ac_c" 1>&6
10036 echo "configure:10036: checking size of int" >&5
10037 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
10038 echo $ac_n "(cached) $ac_c" 1>&6
10040 if test "$cross_compiling" = yes; then
10043 cat > conftest.$ac_ext <<EOF
10044 #line 10044 "configure"
10045 #include "confdefs.h"
10049 FILE *f = fopen("conftestval", "w");
10051 fprintf(f, "%d\n", sizeof(int));
10055 if { (eval echo configure:10055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10057 ac_cv_sizeof_int=`cat conftestval`
10059 echo "configure: failed program was:" >&5
10060 cat conftest.$ac_ext >&5
10069 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
10070 if test x"$ac_cv_sizeof_int" = x"4" ; then
10073 echo $ac_n "checking size of long""... $ac_c" 1>&6
10074 echo "configure:10074: checking size of long" >&5
10075 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
10076 echo $ac_n "(cached) $ac_c" 1>&6
10078 if test "$cross_compiling" = yes; then
10079 ac_cv_sizeof_long=4
10081 cat > conftest.$ac_ext <<EOF
10082 #line 10082 "configure"
10083 #include "confdefs.h"
10087 FILE *f = fopen("conftestval", "w");
10089 fprintf(f, "%d\n", sizeof(long));
10093 if { (eval echo configure:10093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10095 ac_cv_sizeof_long=`cat conftestval`
10097 echo "configure: failed program was:" >&5
10098 cat conftest.$ac_ext >&5
10100 ac_cv_sizeof_long=0
10107 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
10108 if test x"$ac_cv_sizeof_long" = x"4" ; then
10111 echo $ac_n "checking size of short""... $ac_c" 1>&6
10112 echo "configure:10112: checking size of short" >&5
10113 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
10114 echo $ac_n "(cached) $ac_c" 1>&6
10116 if test "$cross_compiling" = yes; then
10117 ac_cv_sizeof_short=2
10119 cat > conftest.$ac_ext <<EOF
10120 #line 10120 "configure"
10121 #include "confdefs.h"
10125 FILE *f = fopen("conftestval", "w");
10127 fprintf(f, "%d\n", sizeof(short));
10131 if { (eval echo configure:10131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10133 ac_cv_sizeof_short=`cat conftestval`
10135 echo "configure: failed program was:" >&5
10136 cat conftest.$ac_ext >&5
10138 ac_cv_sizeof_short=0
10145 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
10146 if test x"$ac_cv_sizeof_short" = x"4" ; then
10157 echo $ac_n "checking for int32_t""... $ac_c" 1>&6
10158 echo "configure:10158: checking for int32_t" >&5
10159 if eval "test \"`echo '$''{'ac_cv_type_int32_t'+set}'`\" = set"; then
10160 echo $ac_n "(cached) $ac_c" 1>&6
10162 cat > conftest.$ac_ext <<EOF
10163 #line 10163 "configure"
10164 #include "confdefs.h"
10165 #include <sys/types.h>
10166 #ifdef STDC_HEADERS
10167 # include <stdlib.h>
10168 # include <stddef.h>
10170 #ifdef HAVE_STDINT_H
10171 # include <stdint.h>
10173 #ifdef HAVE_SYS_BITYPES_H
10174 # include <sys/bitypes.h>
10178 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10179 egrep "(^|[^a-zA-Z_0-9])int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
10181 ac_cv_type_int32_t=yes
10184 ac_cv_type_int32_t=no
10191 echo "$ac_t""$ac_cv_type_int32_t" 1>&6
10192 if test x"$ac_cv_type_int32_t" = xno ; then
10193 cat >> confdefs.h <<EOF
10194 #define int32_t $INN_INT32
10200 echo $ac_n "checking for uint32_t""... $ac_c" 1>&6
10201 echo "configure:10201: checking for uint32_t" >&5
10202 if eval "test \"`echo '$''{'ac_cv_type_uint32_t'+set}'`\" = set"; then
10203 echo $ac_n "(cached) $ac_c" 1>&6
10205 cat > conftest.$ac_ext <<EOF
10206 #line 10206 "configure"
10207 #include "confdefs.h"
10208 #include <sys/types.h>
10209 #ifdef STDC_HEADERS
10210 # include <stdlib.h>
10211 # include <stddef.h>
10213 #ifdef HAVE_STDINT_H
10214 # include <stdint.h>
10216 #ifdef HAVE_SYS_BITYPES_H
10217 # include <sys/bitypes.h>
10221 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10222 egrep "(^|[^a-zA-Z_0-9])uint32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
10224 ac_cv_type_uint32_t=yes
10227 ac_cv_type_uint32_t=no
10234 echo "$ac_t""$ac_cv_type_uint32_t" 1>&6
10235 if test x"$ac_cv_type_uint32_t" = xno ; then
10236 cat >> confdefs.h <<EOF
10237 #define uint32_t unsigned $INN_INT32
10242 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
10243 echo "configure:10243: checking for 8-bit clean memcmp" >&5
10244 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
10245 echo $ac_n "(cached) $ac_c" 1>&6
10247 if test "$cross_compiling" = yes; then
10248 ac_cv_func_memcmp_clean=no
10250 cat > conftest.$ac_ext <<EOF
10251 #line 10251 "configure"
10252 #include "confdefs.h"
10256 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
10257 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
10261 if { (eval echo configure:10261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10263 ac_cv_func_memcmp_clean=yes
10265 echo "configure: failed program was:" >&5
10266 cat conftest.$ac_ext >&5
10268 ac_cv_func_memcmp_clean=no
10275 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
10276 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
10278 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
10279 echo "configure:10279: checking return type of signal handlers" >&5
10280 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
10281 echo $ac_n "(cached) $ac_c" 1>&6
10283 cat > conftest.$ac_ext <<EOF
10284 #line 10284 "configure"
10285 #include "confdefs.h"
10286 #include <sys/types.h>
10287 #include <signal.h>
10292 extern "C" void (*signal (int, void (*)(int)))(int);
10294 void (*signal ()) ();
10301 if { (eval echo configure:10301: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10303 ac_cv_type_signal=void
10305 echo "configure: failed program was:" >&5
10306 cat conftest.$ac_ext >&5
10308 ac_cv_type_signal=int
10313 echo "$ac_t""$ac_cv_type_signal" 1>&6
10314 cat >> confdefs.h <<EOF
10315 #define RETSIGTYPE $ac_cv_type_signal
10323 echo $ac_n "checking for working inet_ntoa""... $ac_c" 1>&6
10324 echo "configure:10324: checking for working inet_ntoa" >&5
10325 if eval "test \"`echo '$''{'inn_cv_func_inet_ntoa_works'+set}'`\" = set"; then
10326 echo $ac_n "(cached) $ac_c" 1>&6
10328 if test "$cross_compiling" = yes; then
10329 inn_cv_func_inet_ntoa_works=no
10331 cat > conftest.$ac_ext <<EOF
10332 #line 10332 "configure"
10333 #include "confdefs.h"
10334 #include <sys/types.h>
10335 #include <sys/socket.h>
10336 #include <netinet/in.h>
10337 #include <arpa/inet.h>
10338 #if STDC_HEADERS || HAVE_STRING_H
10339 # include <string.h>
10346 in.s_addr = htonl (0x7f000000L);
10347 return (!strcmp (inet_ntoa (in), "127.0.0.0") ? 0 : 1);
10350 if { (eval echo configure:10350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10352 inn_cv_func_inet_ntoa_works=yes
10354 echo "configure: failed program was:" >&5
10355 cat conftest.$ac_ext >&5
10357 inn_cv_func_inet_ntoa_works=no
10364 echo "$ac_t""$inn_cv_func_inet_ntoa_works" 1>&6
10365 if test "$inn_cv_func_inet_ntoa_works" = yes ; then
10366 cat >> confdefs.h <<\EOF
10367 #define HAVE_INET_NTOA 1
10371 LIBOBJS="$LIBOBJS inet_ntoa.${ac_objext}"
10375 echo $ac_n "checking whether struct sockaddr has sa_len""... $ac_c" 1>&6
10376 echo "configure:10376: checking whether struct sockaddr has sa_len" >&5
10377 if eval "test \"`echo '$''{'inn_cv_struct_sockaddr_sa_len'+set}'`\" = set"; then
10378 echo $ac_n "(cached) $ac_c" 1>&6
10380 cat > conftest.$ac_ext <<EOF
10381 #line 10381 "configure"
10382 #include "confdefs.h"
10383 #include <sys/types.h>
10384 #include <sys/socket.h>
10385 #include <netinet/in.h>
10387 struct sockaddr sa; int x = sa.sa_len;
10390 if { (eval echo configure:10390: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10392 inn_cv_struct_sockaddr_sa_len=yes
10394 echo "configure: failed program was:" >&5
10395 cat conftest.$ac_ext >&5
10397 inn_cv_struct_sockaddr_sa_len=no
10402 echo "$ac_t""$inn_cv_struct_sockaddr_sa_len" 1>&6
10403 if test "$inn_cv_struct_sockaddr_sa_len" = yes ; then
10404 cat >> confdefs.h <<\EOF
10405 #define HAVE_SOCKADDR_LEN 1
10411 echo $ac_n "checking for SA_LEN(s) macro""... $ac_c" 1>&6
10412 echo "configure:10412: checking for SA_LEN(s) macro" >&5
10413 if eval "test \"`echo '$''{'inn_cv_sa_len_macro'+set}'`\" = set"; then
10414 echo $ac_n "(cached) $ac_c" 1>&6
10416 cat > conftest.$ac_ext <<EOF
10417 #line 10417 "configure"
10418 #include "confdefs.h"
10419 #include <sys/types.h>
10420 #include <sys/socket.h>
10421 #include <netinet/in.h>
10423 struct sockaddr sa; int x = SA_LEN(&sa);
10426 if { (eval echo configure:10426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10428 inn_cv_sa_len_macro=yes
10430 echo "configure: failed program was:" >&5
10431 cat conftest.$ac_ext >&5
10433 inn_cv_sa_len_macro=no
10438 echo "$ac_t""$inn_cv_sa_len_macro" 1>&6
10439 if test "$inn_cv_sa_len_macro" = yes ; then
10440 cat >> confdefs.h <<\EOF
10441 #define HAVE_SA_LEN_MACRO 1
10449 echo $ac_n "checking for struct sockaddr_storage""... $ac_c" 1>&6
10450 echo "configure:10450: checking for struct sockaddr_storage" >&5
10451 if eval "test \"`echo '$''{'inn_cv_struct_sockaddr_storage'+set}'`\" = set"; then
10452 echo $ac_n "(cached) $ac_c" 1>&6
10454 cat > conftest.$ac_ext <<EOF
10455 #line 10455 "configure"
10456 #include "confdefs.h"
10457 #include <sys/types.h>
10458 #include <sys/socket.h>
10459 #include <netinet/in.h>
10461 struct sockaddr_storage ss;
10464 if { (eval echo configure:10464: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10466 inn_cv_struct_sockaddr_storage=yes
10468 echo "configure: failed program was:" >&5
10469 cat conftest.$ac_ext >&5
10471 inn_cv_struct_sockaddr_storage=no
10476 echo "$ac_t""$inn_cv_struct_sockaddr_storage" 1>&6
10477 if test "$inn_cv_struct_sockaddr_storage" = yes ; then
10478 cat >> confdefs.h <<\EOF
10479 #define HAVE_SOCKADDR_STORAGE 1
10482 echo $ac_n "checking for RFC 2553 style sockaddr_storage member names""... $ac_c" 1>&6
10483 echo "configure:10483: checking for RFC 2553 style sockaddr_storage member names" >&5
10484 if eval "test \"`echo '$''{'inn_cv_2553_ss_family'+set}'`\" = set"; then
10485 echo $ac_n "(cached) $ac_c" 1>&6
10487 cat > conftest.$ac_ext <<EOF
10488 #line 10488 "configure"
10489 #include "confdefs.h"
10490 #include <sys/types.h>
10491 #include <sys/socket.h>
10492 #include <netinet/in.h>
10494 struct sockaddr_storage ss; int x=ss.ss_family;
10497 if { (eval echo configure:10497: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10499 inn_cv_2553_ss_family=no
10501 echo "configure: failed program was:" >&5
10502 cat conftest.$ac_ext >&5
10504 inn_cv_2553_ss_family=yes
10509 echo "$ac_t""$inn_cv_2553_ss_family" 1>&6
10510 if test "$inn_cv_2553_ss_family" = yes ; then
10511 cat >> confdefs.h <<\EOF
10512 #define HAVE_2553_STYLE_SS_FAMILY 1
10521 if test "$inn_enable_ipv6_tests" = yes ; then
10522 echo $ac_n "checking whether IN6_ARE_ADDR_EQUAL macro is broken""... $ac_c" 1>&6
10523 echo "configure:10523: checking whether IN6_ARE_ADDR_EQUAL macro is broken" >&5
10524 if eval "test \"`echo '$''{'inn_cv_in6_are_addr_equal_broken'+set}'`\" = set"; then
10525 echo $ac_n "(cached) $ac_c" 1>&6
10527 if test "$cross_compiling" = yes; then
10528 inn_cv_in6_are_addr_equal_broken=no
10530 cat > conftest.$ac_ext <<EOF
10531 #line 10531 "configure"
10532 #include "confdefs.h"
10533 #include <sys/types.h>
10534 #include <sys/socket.h>
10535 #include <netinet/in.h>
10536 #include <arpa/inet.h>
10544 inet_pton(AF_INET6,"fe80::1234:5678:abcd",&a);
10545 inet_pton(AF_INET6,"fe80::1234:5678:abcd",&b);
10546 return IN6_ARE_ADDR_EQUAL(&a,&b) ? 0 : 1;
10549 if { (eval echo configure:10549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10551 inn_cv_in6_are_addr_equal_broken=no
10553 echo "configure: failed program was:" >&5
10554 cat conftest.$ac_ext >&5
10556 inn_cv_in6_are_addr_equal_broken=yes
10563 echo "$ac_t""$inn_cv_in6_are_addr_equal_broken" 1>&6
10564 if test "$inn_cv_in6_are_addr_equal_broken" = yes ; then
10565 cat >> confdefs.h <<\EOF
10566 #define HAVE_BROKEN_IN6_ARE_ADDR_EQUAL 1
10575 echo $ac_n "checking for working snprintf""... $ac_c" 1>&6
10576 echo "configure:10576: checking for working snprintf" >&5
10577 if eval "test \"`echo '$''{'inn_cv_func_snprintf_works'+set}'`\" = set"; then
10578 echo $ac_n "(cached) $ac_c" 1>&6
10580 if test "$cross_compiling" = yes; then
10581 inn_cv_func_snprintf_works=no
10583 cat > conftest.$ac_ext <<EOF
10584 #line 10584 "configure"
10585 #include "confdefs.h"
10587 #include <stdarg.h>
10592 test (char *format, ...)
10597 va_start (args, format);
10598 count = vsnprintf (buf, sizeof buf, format, args);
10606 return ((test ("%s", "abcd") == 4 && buf[0] == 'a' && buf[1] == '\0'
10607 && snprintf(NULL, 0, "%s", "abcd") == 4) ? 0 : 1);
10610 if { (eval echo configure:10610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10612 inn_cv_func_snprintf_works=yes
10614 echo "configure: failed program was:" >&5
10615 cat conftest.$ac_ext >&5
10617 inn_cv_func_snprintf_works=no
10624 echo "$ac_t""$inn_cv_func_snprintf_works" 1>&6
10625 if test "$inn_cv_func_snprintf_works" = yes ; then
10626 cat >> confdefs.h <<\EOF
10627 #define HAVE_SNPRINTF 1
10631 LIBOBJS="$LIBOBJS snprintf.${ac_objext}"
10634 for ac_func in atexit getloadavg getrlimit getrusage getspnam setbuffer \
10635 sigaction setgroups setrlimit setsid socketpair statvfs \
10636 strncasecmp strtoul symlink sysconf
10638 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10639 echo "configure:10639: checking for $ac_func" >&5
10640 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10641 echo $ac_n "(cached) $ac_c" 1>&6
10643 cat > conftest.$ac_ext <<EOF
10644 #line 10644 "configure"
10645 #include "confdefs.h"
10646 /* System header to define __stub macros and hopefully few prototypes,
10647 which can conflict with char $ac_func(); below. */
10648 #include <assert.h>
10649 /* Override any gcc2 internal prototype to avoid an error. */
10650 /* We use char because int might match the return type of a gcc2
10651 builtin and then its argument prototype would still apply. */
10656 /* The GNU C library defines this for functions which it implements
10657 to always fail with ENOSYS. Some functions are actually named
10658 something starting with __ and the normal name is an alias. */
10659 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10667 if { (eval echo configure:10667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10669 eval "ac_cv_func_$ac_func=yes"
10671 echo "configure: failed program was:" >&5
10672 cat conftest.$ac_ext >&5
10674 eval "ac_cv_func_$ac_func=no"
10679 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10680 echo "$ac_t""yes" 1>&6
10681 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10682 cat >> confdefs.h <<EOF
10683 #define $ac_tr_func 1
10687 echo "$ac_t""no" 1>&6
10692 if test x"$ac_cv_func_getrlimit" = xno ; then
10693 for ac_func in getdtablesize ulimit
10695 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10696 echo "configure:10696: checking for $ac_func" >&5
10697 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10698 echo $ac_n "(cached) $ac_c" 1>&6
10700 cat > conftest.$ac_ext <<EOF
10701 #line 10701 "configure"
10702 #include "confdefs.h"
10703 /* System header to define __stub macros and hopefully few prototypes,
10704 which can conflict with char $ac_func(); below. */
10705 #include <assert.h>
10706 /* Override any gcc2 internal prototype to avoid an error. */
10707 /* We use char because int might match the return type of a gcc2
10708 builtin and then its argument prototype would still apply. */
10713 /* The GNU C library defines this for functions which it implements
10714 to always fail with ENOSYS. Some functions are actually named
10715 something starting with __ and the normal name is an alias. */
10716 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10724 if { (eval echo configure:10724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10726 eval "ac_cv_func_$ac_func=yes"
10728 echo "configure: failed program was:" >&5
10729 cat conftest.$ac_ext >&5
10731 eval "ac_cv_func_$ac_func=no"
10736 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10737 echo "$ac_t""yes" 1>&6
10738 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10739 cat >> confdefs.h <<EOF
10740 #define $ac_tr_func 1
10744 echo "$ac_t""no" 1>&6
10750 if test x"$ac_cv_func_statvfs" = xno ; then
10751 for ac_func in statfs
10753 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10754 echo "configure:10754: checking for $ac_func" >&5
10755 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10756 echo $ac_n "(cached) $ac_c" 1>&6
10758 cat > conftest.$ac_ext <<EOF
10759 #line 10759 "configure"
10760 #include "confdefs.h"
10761 /* System header to define __stub macros and hopefully few prototypes,
10762 which can conflict with char $ac_func(); below. */
10763 #include <assert.h>
10764 /* Override any gcc2 internal prototype to avoid an error. */
10765 /* We use char because int might match the return type of a gcc2
10766 builtin and then its argument prototype would still apply. */
10771 /* The GNU C library defines this for functions which it implements
10772 to always fail with ENOSYS. Some functions are actually named
10773 something starting with __ and the normal name is an alias. */
10774 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10782 if { (eval echo configure:10782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10784 eval "ac_cv_func_$ac_func=yes"
10786 echo "configure: failed program was:" >&5
10787 cat conftest.$ac_ext >&5
10789 eval "ac_cv_func_$ac_func=no"
10794 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10795 echo "$ac_t""yes" 1>&6
10796 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10797 cat >> confdefs.h <<EOF
10798 #define $ac_tr_func 1
10802 echo "$ac_t""no" 1>&6
10806 for ac_hdr in sys/vfs.h sys/mount.h
10808 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10809 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10810 echo "configure:10810: checking for $ac_hdr" >&5
10811 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10812 echo $ac_n "(cached) $ac_c" 1>&6
10814 cat > conftest.$ac_ext <<EOF
10815 #line 10815 "configure"
10816 #include "confdefs.h"
10819 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10820 { (eval echo configure:10820: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10821 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10822 if test -z "$ac_err"; then
10824 eval "ac_cv_header_$ac_safe=yes"
10827 echo "configure: failed program was:" >&5
10828 cat conftest.$ac_ext >&5
10830 eval "ac_cv_header_$ac_safe=no"
10834 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10835 echo "$ac_t""yes" 1>&6
10836 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10837 cat >> confdefs.h <<EOF
10838 #define $ac_tr_hdr 1
10842 echo "$ac_t""no" 1>&6
10848 for ac_func in fseeko ftello getpagesize hstrerror inet_aton mkstemp \
10849 pread pwrite seteuid strcasecmp strerror strlcat strlcpy \
10852 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10853 echo "configure:10853: checking for $ac_func" >&5
10854 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10855 echo $ac_n "(cached) $ac_c" 1>&6
10857 cat > conftest.$ac_ext <<EOF
10858 #line 10858 "configure"
10859 #include "confdefs.h"
10860 /* System header to define __stub macros and hopefully few prototypes,
10861 which can conflict with char $ac_func(); below. */
10862 #include <assert.h>
10863 /* Override any gcc2 internal prototype to avoid an error. */
10864 /* We use char because int might match the return type of a gcc2
10865 builtin and then its argument prototype would still apply. */
10870 /* The GNU C library defines this for functions which it implements
10871 to always fail with ENOSYS. Some functions are actually named
10872 something starting with __ and the normal name is an alias. */
10873 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10881 if { (eval echo configure:10881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10883 eval "ac_cv_func_$ac_func=yes"
10885 echo "configure: failed program was:" >&5
10886 cat conftest.$ac_ext >&5
10888 eval "ac_cv_func_$ac_func=no"
10893 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10894 echo "$ac_t""yes" 1>&6
10895 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10896 cat >> confdefs.h <<EOF
10897 #define $ac_tr_func 1
10901 echo "$ac_t""no" 1>&6
10902 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
10912 if test "$ac_cv_func_fseeko" = no || test "$ac_cv_func_ftello" = no ; then
10913 echo $ac_n "checking for off_t-compatible fpos_t""... $ac_c" 1>&6
10914 echo "configure:10914: checking for off_t-compatible fpos_t" >&5
10915 if eval "test \"`echo '$''{'inn_cv_type_fpos_t_large'+set}'`\" = set"; then
10916 echo $ac_n "(cached) $ac_c" 1>&6
10918 if test "$cross_compiling" = yes; then
10919 inn_cv_type_fpos_t_large=no
10921 cat > conftest.$ac_ext <<EOF
10922 #line 10922 "configure"
10923 #include "confdefs.h"
10925 #include <sys/types.h>
10930 fpos_t fpos = 9223372036854775807ULL;
10933 exit(off == (off_t) 9223372036854775807ULL ? 0 : 1);
10936 if { (eval echo configure:10936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10938 inn_cv_type_fpos_t_large=yes
10940 echo "configure: failed program was:" >&5
10941 cat conftest.$ac_ext >&5
10943 inn_cv_type_fpos_t_large=no
10948 if test "$inn_cv_type_fpos_t_large" = yes ; then
10949 cat >> confdefs.h <<\EOF
10950 #define HAVE_LARGE_FPOS_T 1
10956 echo "$ac_t""$inn_cv_type_fpos_t_large" 1>&6
10974 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
10975 echo "configure:10975: checking for working mmap" >&5
10976 if eval "test \"`echo '$''{'inn_cv_func_mmap'+set}'`\" = set"; then
10977 echo $ac_n "(cached) $ac_c" 1>&6
10979 if test "$cross_compiling" = yes; then
10980 inn_cv_func_mmap=no
10982 cat > conftest.$ac_ext <<EOF
10983 #line 10983 "configure"
10984 #include "confdefs.h"
10986 #include <sys/types.h>
10988 # include <stdlib.h>
10989 # include <stddef.h>
10992 # include <stdlib.h>
10995 # define strchr index
10996 # define strrchr rindex
11000 # if !STDC_HEADERS && HAVE_MEMORY_H
11001 # include <memory.h>
11003 # include <string.h>
11005 # if HAVE_STRINGS_H
11006 # include <strings.h>
11010 # include <unistd.h>
11013 #include <sys/mman.h>
11021 /* First, make a file with some known garbage in it. Use something
11022 larger than one page but still an odd page size. */
11023 data = malloc (20000);
11024 if (!data) return 1;
11025 for (i = 0; i < 20000 / sizeof (int); i++)
11028 fd = creat ("conftestmmaps", 0600);
11029 if (fd < 0) return 1;
11030 if (write (fd, data, 20000) != 20000) return 1;
11033 /* Next, try to mmap the file and make sure we see the same garbage. */
11034 fd = open ("conftestmmaps", O_RDWR);
11035 if (fd < 0) return 1;
11036 data2 = mmap (0, 20000, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
11037 if (data2 == (int *) -1) return 1;
11038 for (i = 0; i < 20000 / sizeof (int); i++)
11039 if (data[i] != data2[i])
11043 unlink ("conftestmmaps");
11047 if { (eval echo configure:11047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11049 inn_cv_func_mmap=yes
11051 echo "configure: failed program was:" >&5
11052 cat conftest.$ac_ext >&5
11054 inn_cv_func_mmap=no
11061 echo "$ac_t""$inn_cv_func_mmap" 1>&6
11062 if test $inn_cv_func_mmap = yes ; then
11063 cat >> confdefs.h <<\EOF
11064 #define HAVE_MMAP 1
11068 if test x"$inn_cv_func_mmap" = xyes ; then
11069 for ac_func in madvise
11071 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11072 echo "configure:11072: checking for $ac_func" >&5
11073 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11074 echo $ac_n "(cached) $ac_c" 1>&6
11076 cat > conftest.$ac_ext <<EOF
11077 #line 11077 "configure"
11078 #include "confdefs.h"
11079 /* System header to define __stub macros and hopefully few prototypes,
11080 which can conflict with char $ac_func(); below. */
11081 #include <assert.h>
11082 /* Override any gcc2 internal prototype to avoid an error. */
11083 /* We use char because int might match the return type of a gcc2
11084 builtin and then its argument prototype would still apply. */
11089 /* The GNU C library defines this for functions which it implements
11090 to always fail with ENOSYS. Some functions are actually named
11091 something starting with __ and the normal name is an alias. */
11092 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11100 if { (eval echo configure:11100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11102 eval "ac_cv_func_$ac_func=yes"
11104 echo "configure: failed program was:" >&5
11105 cat conftest.$ac_ext >&5
11107 eval "ac_cv_func_$ac_func=no"
11112 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11113 echo "$ac_t""yes" 1>&6
11114 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11115 cat >> confdefs.h <<EOF
11116 #define $ac_tr_func 1
11120 echo "$ac_t""no" 1>&6
11124 echo $ac_n "checking whether mmap sees writes""... $ac_c" 1>&6
11125 echo "configure:11125: checking whether mmap sees writes" >&5
11126 if eval "test \"`echo '$''{'inn_cv_func_mmap_sees_writes'+set}'`\" = set"; then
11127 echo $ac_n "(cached) $ac_c" 1>&6
11129 if test "$cross_compiling" = yes; then
11130 inn_cv_func_mmap_sees_writes=no
11132 cat > conftest.$ac_ext <<EOF
11133 #line 11133 "configure"
11134 #include "confdefs.h"
11135 #include <stdlib.h>
11136 #include <sys/types.h>
11137 #include <sys/stat.h>
11140 # include <unistd.h>
11142 #include <sys/mman.h>
11144 /* Fractional page is probably worst case. */
11145 static char zbuff[1024];
11146 static char fname[] = "conftestw";
11154 fd = open (fname, O_RDWR | O_CREAT, 0660);
11155 if (fd < 0) return 1;
11157 write (fd, zbuff, sizeof (zbuff));
11158 lseek (fd, 0, SEEK_SET);
11159 map = mmap (0, sizeof (zbuff), PROT_READ, MAP_SHARED, fd, 0);
11160 if (map == (char *) -1) return 2;
11161 for (i = 0; fname[i]; i++)
11163 if (write (fd, &fname[i], 1) != 1) return 3;
11164 if (map[i] != fname[i]) return 4;
11169 if { (eval echo configure:11169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11171 inn_cv_func_mmap_sees_writes=yes
11173 echo "configure: failed program was:" >&5
11174 cat conftest.$ac_ext >&5
11176 inn_cv_func_mmap_sees_writes=no
11183 echo "$ac_t""$inn_cv_func_mmap_sees_writes" 1>&6
11184 if test $inn_cv_func_mmap_sees_writes = no ; then
11185 cat >> confdefs.h <<\EOF
11186 #define MMAP_MISSES_WRITES 1
11190 echo $ac_n "checking whether msync is needed""... $ac_c" 1>&6
11191 echo "configure:11191: checking whether msync is needed" >&5
11192 if eval "test \"`echo '$''{'inn_cv_func_mmap_need_msync'+set}'`\" = set"; then
11193 echo $ac_n "(cached) $ac_c" 1>&6
11195 if test "$cross_compiling" = yes; then
11196 inn_cv_func_mmap_need_msync=yes
11198 cat > conftest.$ac_ext <<EOF
11199 #line 11199 "configure"
11200 #include "confdefs.h"
11202 #include <sys/types.h>
11204 # include <stdlib.h>
11205 # include <stddef.h>
11208 # include <stdlib.h>
11211 # define strchr index
11212 # define strrchr rindex
11216 # if !STDC_HEADERS && HAVE_MEMORY_H
11217 # include <memory.h>
11219 # include <string.h>
11221 # if HAVE_STRINGS_H
11222 # include <strings.h>
11226 # include <unistd.h>
11228 #include <sys/types.h>
11230 #include <sys/mman.h>
11238 /* First, make a file with some known garbage in it. Use something
11239 larger than one page but still an odd page size. */
11240 data = malloc (20000);
11241 if (!data) return 1;
11242 for (i = 0; i < 20000 / sizeof (int); i++)
11245 fd = creat ("conftestmmaps", 0600);
11246 if (fd < 0) return 1;
11247 if (write (fd, data, 20000) != 20000) return 1;
11250 /* Next, try to mmap the file and make sure we see the same garbage. */
11251 fd = open ("conftestmmaps", O_RDWR);
11252 if (fd < 0) return 1;
11253 data2 = mmap (0, 20000, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
11254 if (data2 == (int *) -1) return 1;
11256 /* Finally, see if changes made to the mmaped region propagate back to
11257 the file as seen by read (meaning that msync isn't needed). */
11258 for (i = 0; i < 20000 / sizeof (int); i++)
11260 if (read (fd, data, 20000) != 20000) return 1;
11261 for (i = 0; i < 20000 / sizeof (int); i++)
11262 if (data[i] != data2[i])
11266 unlink ("conftestmmapm");
11270 if { (eval echo configure:11270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11272 inn_cv_func_mmap_need_msync=no
11274 echo "configure: failed program was:" >&5
11275 cat conftest.$ac_ext >&5
11277 inn_cv_func_mmap_need_msync=yes
11284 echo "$ac_t""$inn_cv_func_mmap_need_msync" 1>&6
11285 if test $inn_cv_func_mmap_need_msync = yes ; then
11286 cat >> confdefs.h <<\EOF
11287 #define MMAP_NEEDS_MSYNC 1
11291 echo $ac_n "checking how many arguments msync takes""... $ac_c" 1>&6
11292 echo "configure:11292: checking how many arguments msync takes" >&5
11293 if eval "test \"`echo '$''{'inn_cv_func_msync_args'+set}'`\" = set"; then
11294 echo $ac_n "(cached) $ac_c" 1>&6
11296 cat > conftest.$ac_ext <<EOF
11297 #line 11297 "configure"
11298 #include "confdefs.h"
11299 #include <sys/types.h>
11300 #include <sys/mman.h>
11302 char *p; int psize; msync (p, psize, MS_ASYNC);
11305 if { (eval echo configure:11305: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11307 inn_cv_func_msync_args=3
11309 echo "configure: failed program was:" >&5
11310 cat conftest.$ac_ext >&5
11312 inn_cv_func_msync_args=2
11317 echo "$ac_t""$inn_cv_func_msync_args" 1>&6
11318 if test $inn_cv_func_msync_args = 3 ; then
11319 cat >> confdefs.h <<\EOF
11320 #define HAVE_MSYNC_3_ARG 1
11327 echo $ac_n "checking for Unix domain sockets""... $ac_c" 1>&6
11328 echo "configure:11328: checking for Unix domain sockets" >&5
11329 if eval "test \"`echo '$''{'inn_cv_sys_unix_sockets'+set}'`\" = set"; then
11330 echo $ac_n "(cached) $ac_c" 1>&6
11332 cat > conftest.$ac_ext <<EOF
11333 #line 11333 "configure"
11334 #include "confdefs.h"
11335 #include <sys/socket.h>
11340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11341 egrep "yes" >/dev/null 2>&1; then
11343 inn_cv_sys_unix_sockets=yes
11346 inn_cv_sys_unix_sockets=no
11352 echo "$ac_t""$inn_cv_sys_unix_sockets" 1>&6
11353 if test $inn_cv_sys_unix_sockets = yes ; then
11354 cat >> confdefs.h <<\EOF
11355 #define HAVE_UNIX_DOMAIN_SOCKETS 1
11361 echo $ac_n "checking log facility for news""... $ac_c" 1>&6
11362 echo "configure:11362: checking log facility for news" >&5
11363 if eval "test \"`echo '$''{'inn_cv_log_facility'+set}'`\" = set"; then
11364 echo $ac_n "(cached) $ac_c" 1>&6
11366 cat > conftest.$ac_ext <<EOF
11367 #line 11367 "configure"
11368 #include "confdefs.h"
11369 #include <syslog.h>
11374 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11375 egrep "yes" >/dev/null 2>&1; then
11377 inn_cv_log_facility=LOG_NEWS
11380 inn_cv_log_facility=LOG_LOCAL1
11386 if test x"$SYSLOG_FACILITY" = xnone ; then
11387 SYSLOG_FACILITY=$inn_cv_log_facility
11389 echo "$ac_t""$SYSLOG_FACILITY" 1>&6
11390 cat >> confdefs.h <<EOF
11391 #define LOG_INN_SERVER $SYSLOG_FACILITY
11394 cat >> confdefs.h <<EOF
11395 #define LOG_INN_PROG $SYSLOG_FACILITY
11400 LIBS=`echo "$LIBS" | sed 's/^ *//' | sed 's/ */ /g' | sed 's/ *$//'`
11404 cat > confcache <<\EOF
11405 # This file is a shell script that caches the results of configure
11406 # tests run on this system so they can be shared between configure
11407 # scripts and configure runs. It is not useful on other systems.
11408 # If it contains results you don't want to keep, you may remove or edit it.
11410 # By default, configure uses ./config.cache as the cache file,
11411 # creating it if it does not exist already. You can give configure
11412 # the --cache-file=FILE option to use a different cache file; that is
11413 # what configure does when it calls configure scripts in
11414 # subdirectories, so they share the cache.
11415 # Giving --cache-file=/dev/null disables caching, for debugging configure.
11416 # config.status only pays attention to the cache file if you give it the
11417 # --recheck option to rerun configure.
11420 # The following way of writing the cache mishandles newlines in values,
11421 # but we know of no workaround that is simple, portable, and efficient.
11422 # So, don't put newlines in cache variables' values.
11423 # Ultrix sh set writes to stderr and can't be redirected directly,
11424 # and sets the high bit in the cache file unless we assign to the vars.
11426 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11428 # `set' does not quote correctly, so add quotes (double-quote substitution
11429 # turns \\\\ into \\, and sed turns \\ into \).
11431 -e "s/'/'\\\\''/g" \
11432 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
11435 # `set' quotes correctly as required by POSIX, so do not add quotes.
11436 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
11439 if cmp -s $cache_file confcache; then
11442 if test -w $cache_file; then
11443 echo "updating cache $cache_file"
11444 cat confcache > $cache_file
11446 echo "not updating unwritable cache $cache_file"
11451 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
11453 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11454 # Let make expand exec_prefix.
11455 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11457 # Any assignment to VPATH causes Sun make to only execute
11458 # the first set of double-colon rules, so remove it if not needed.
11459 # If there is a colon in the path, we need to keep it.
11460 if test "x$srcdir" = x.; then
11461 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
11464 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
11466 DEFS=-DHAVE_CONFIG_H
11468 # Without the "./", some shells look in PATH for config.status.
11469 : ${CONFIG_STATUS=./config.status}
11471 echo creating $CONFIG_STATUS
11472 rm -f $CONFIG_STATUS
11473 cat > $CONFIG_STATUS <<EOF
11475 # Generated automatically by configure.
11476 # Run this file to recreate the current configuration.
11477 # This directory was configured as follows,
11478 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11480 # $0 $ac_configure_args
11482 # Compiler output produced by configure, useful for debugging
11483 # configure, is in ./config.log if it exists.
11485 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
11488 case "\$ac_option" in
11489 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11490 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
11491 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
11492 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
11493 echo "$CONFIG_STATUS generated by autoconf version 2.13"
11495 -help | --help | --hel | --he | --h)
11496 echo "\$ac_cs_usage"; exit 0 ;;
11497 *) echo "\$ac_cs_usage"; exit 1 ;;
11501 ac_given_srcdir=$srcdir
11503 trap 'rm -fr `echo "Makefile.global
11506 samples/innreport.conf
11510 scripts/innshellvars
11511 scripts/innshellvars.pl
11512 scripts/innshellvars.tcl
11515 include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
11517 cat >> $CONFIG_STATUS <<EOF
11519 # Protect against being on the right side of a sed subst in config.status.
11520 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
11521 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
11525 s%@CFLAGS@%$CFLAGS%g
11526 s%@CPPFLAGS@%$CPPFLAGS%g
11527 s%@CXXFLAGS@%$CXXFLAGS%g
11528 s%@FFLAGS@%$FFLAGS%g
11530 s%@LDFLAGS@%$LDFLAGS%g
11532 s%@exec_prefix@%$exec_prefix%g
11533 s%@prefix@%$prefix%g
11534 s%@program_transform_name@%$program_transform_name%g
11535 s%@bindir@%$bindir%g
11536 s%@sbindir@%$sbindir%g
11537 s%@libexecdir@%$libexecdir%g
11538 s%@datadir@%$datadir%g
11539 s%@sysconfdir@%$sysconfdir%g
11540 s%@sharedstatedir@%$sharedstatedir%g
11541 s%@localstatedir@%$localstatedir%g
11542 s%@libdir@%$libdir%g
11543 s%@includedir@%$includedir%g
11544 s%@oldincludedir@%$oldincludedir%g
11545 s%@infodir@%$infodir%g
11546 s%@mandir@%$mandir%g
11547 s%@builddir@%$builddir%g
11550 s%@OBJEXT@%$OBJEXT%g
11552 s%@host_alias@%$host_alias%g
11553 s%@host_cpu@%$host_cpu%g
11554 s%@host_vendor@%$host_vendor%g
11555 s%@host_os@%$host_os%g
11557 s%@build_alias@%$build_alias%g
11558 s%@build_cpu@%$build_cpu%g
11559 s%@build_vendor@%$build_vendor%g
11560 s%@build_os@%$build_os%g
11562 s%@EXEEXT@%$EXEEXT%g
11564 s%@RANLIB@%$RANLIB%g
11566 s%@LIBTOOL@%$LIBTOOL%g
11567 s%@EXTLIB@%$EXTLIB%g
11568 s%@EXTOBJ@%$EXTOBJ%g
11569 s%@LIBTOOLCC@%$LIBTOOLCC%g
11570 s%@LIBTOOLLD@%$LIBTOOLLD%g
11571 s%@CCOUTPUT@%$CCOUTPUT%g
11572 s%@CONTROLDIR@%$CONTROLDIR%g
11574 s%@DOCDIR@%$DOCDIR%g
11575 s%@ETCDIR@%$ETCDIR%g
11576 s%@FILTERDIR@%$FILTERDIR%g
11577 s%@LIBDIR@%$LIBDIR%g
11578 s%@LOGDIR@%$LOGDIR%g
11579 s%@RUNDIR@%$RUNDIR%g
11580 s%@SPOOLDIR@%$SPOOLDIR%g
11581 s%@tmpdir@%$tmpdir%g
11582 s%@NEWSUSER@%$NEWSUSER%g
11583 s%@NEWSGRP@%$NEWSGRP%g
11584 s%@NEWSMASTER@%$NEWSMASTER%g
11585 s%@NEWSUMASK@%$NEWSUMASK%g
11586 s%@FILEMODE@%$FILEMODE%g
11587 s%@DIRMODE@%$DIRMODE%g
11588 s%@RUNDIRMODE@%$RUNDIRMODE%g
11589 s%@INEWSMODE@%$INEWSMODE%g
11590 s%@RNEWSGRP@%$RNEWSGRP%g
11591 s%@RNEWSMODE@%$RNEWSMODE%g
11592 s%@LOG_COMPRESS@%$LOG_COMPRESS%g
11593 s%@LOG_COMPRESSEXT@%$LOG_COMPRESSEXT%g
11594 s%@DO_DBZ_TAGGED_HASH@%$DO_DBZ_TAGGED_HASH%g
11595 s%@HOSTNAME@%$HOSTNAME%g
11597 s%@LEXLIB@%$LEXLIB%g
11598 s%@SET_MAKE@%$SET_MAKE%g
11601 s%@_PATH_AWK@%$_PATH_AWK%g
11602 s%@_PATH_EGREP@%$_PATH_EGREP%g
11603 s%@_PATH_PERL@%$_PATH_PERL%g
11604 s%@_PATH_SH@%$_PATH_SH%g
11605 s%@_PATH_SED@%$_PATH_SED%g
11606 s%@_PATH_SORT@%$_PATH_SORT%g
11607 s%@_PATH_UUX@%$_PATH_UUX%g
11608 s%@PATH_GPGV@%$PATH_GPGV%g
11609 s%@_PATH_PGP@%$_PATH_PGP%g
11610 s%@pgpverify@%$pgpverify%g
11611 s%@GETFTP@%$GETFTP%g
11612 s%@COMPRESS@%$COMPRESS%g
11614 s%@UNCOMPRESS@%$UNCOMPRESS%g
11615 s%@SENDMAIL@%$SENDMAIL%g
11616 s%@HAVE_UUSTAT@%$HAVE_UUSTAT%g
11617 s%@_PATH_PYTHON@%$_PATH_PYTHON%g
11618 s%@CRYPT_LIB@%$CRYPT_LIB%g
11619 s%@SHADOW_LIB@%$SHADOW_LIB%g
11620 s%@PAM_LIB@%$PAM_LIB%g
11621 s%@REGEX_LIB@%$REGEX_LIB%g
11622 s%@BERKELEY_DB_LDFLAGS@%$BERKELEY_DB_LDFLAGS%g
11623 s%@BERKELEY_DB_CFLAGS@%$BERKELEY_DB_CFLAGS%g
11624 s%@BERKELEY_DB_LIB@%$BERKELEY_DB_LIB%g
11625 s%@DBM_LIB@%$DBM_LIB%g
11626 s%@DBM_INC@%$DBM_INC%g
11627 s%@SSL_BIN@%$SSL_BIN%g
11628 s%@SSL_INC@%$SSL_INC%g
11629 s%@SSL_LIB@%$SSL_LIB%g
11630 s%@SASL_INC@%$SASL_INC%g
11631 s%@SASL_LIB@%$SASL_LIB%g
11632 s%@KRB5_AUTH@%$KRB5_AUTH%g
11633 s%@KRB5_INC@%$KRB5_INC%g
11634 s%@KRB5_LIB@%$KRB5_LIB%g
11635 s%@PERL_INC@%$PERL_INC%g
11636 s%@PERL_LIB@%$PERL_LIB%g
11637 s%@PYTHON_LIB@%$PYTHON_LIB%g
11638 s%@PYTHON_INC@%$PYTHON_INC%g
11639 s%@GETCONF@%$GETCONF%g
11640 s%@LFS_CFLAGS@%$LFS_CFLAGS%g
11641 s%@LFS_LDFLAGS@%$LFS_LDFLAGS%g
11642 s%@LFS_LIBS@%$LFS_LIBS%g
11643 s%@LIBOBJS@%$LIBOBJS%g
11644 s%@SYSLOG_FACILITY@%$SYSLOG_FACILITY%g
11649 cat >> $CONFIG_STATUS <<\EOF
11651 # Split the substitutions into bite-sized pieces for seds with
11652 # small command number limits, like on Digital OSF/1 and HP-UX.
11653 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
11654 ac_file=1 # Number of current file.
11655 ac_beg=1 # First line for current file.
11656 ac_end=$ac_max_sed_cmds # Line after last line for current file.
11659 while $ac_more_lines; do
11660 if test $ac_beg -gt 1; then
11661 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
11663 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
11665 if test ! -s conftest.s$ac_file; then
11666 ac_more_lines=false
11667 rm -f conftest.s$ac_file
11669 if test -z "$ac_sed_cmds"; then
11670 ac_sed_cmds="sed -f conftest.s$ac_file"
11672 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
11674 ac_file=`expr $ac_file + 1`
11676 ac_end=`expr $ac_end + $ac_max_sed_cmds`
11679 if test -z "$ac_sed_cmds"; then
11684 cat >> $CONFIG_STATUS <<EOF
11686 CONFIG_FILES=\${CONFIG_FILES-"Makefile.global
11689 samples/innreport.conf
11693 scripts/innshellvars
11694 scripts/innshellvars.pl
11695 scripts/innshellvars.tcl
11700 cat >> $CONFIG_STATUS <<\EOF
11701 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
11702 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11704 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
11705 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
11706 *) ac_file_in="${ac_file}.in" ;;
11709 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
11711 # Remove last slash and all that follows it. Not all systems have dirname.
11712 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
11713 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
11714 # The file is in a subdirectory.
11715 test ! -d "$ac_dir" && mkdir "$ac_dir"
11716 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
11717 # A "../" for each directory in $ac_dir_suffix.
11718 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
11720 ac_dir_suffix= ac_dots=
11723 case "$ac_given_srcdir" in
11725 if test -z "$ac_dots"; then top_srcdir=.
11726 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
11727 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
11728 *) # Relative path.
11729 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
11730 top_srcdir="$ac_dots$ac_given_srcdir" ;;
11734 echo creating "$ac_file"
11736 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
11738 *Makefile*) ac_comsub="1i\\
11739 # $configure_input" ;;
11743 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
11745 s%@configure_input@%$configure_input%g
11746 s%@srcdir@%$srcdir%g
11747 s%@top_srcdir@%$top_srcdir%g
11748 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
11752 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11753 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11755 # ac_d sets the value in "#define NAME VALUE" lines.
11756 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11757 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
11760 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
11761 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11762 ac_uB='\([ ]\)%\1#\2define\3'
11765 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11766 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11767 ac_eB='$%\1#\2define\3'
11771 if test "${CONFIG_HEADERS+set}" != set; then
11773 cat >> $CONFIG_STATUS <<EOF
11774 CONFIG_HEADERS="include/config.h"
11776 cat >> $CONFIG_STATUS <<\EOF
11778 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
11779 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11781 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
11782 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
11783 *) ac_file_in="${ac_file}.in" ;;
11786 echo creating $ac_file
11788 rm -f conftest.frag conftest.in conftest.out
11789 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
11790 cat $ac_file_inputs > conftest.in
11794 # Transform confdefs.h into a sed script conftest.vals that substitutes
11795 # the proper values into config.h.in to produce config.h. And first:
11796 # Protect against being on the right side of a sed subst in config.status.
11797 # Protect against being in an unquoted here document in config.status.
11798 rm -f conftest.vals
11799 cat > conftest.hdr <<\EOF
11802 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
11806 sed -n -f conftest.hdr confdefs.h > conftest.vals
11809 # This sed command replaces #undef with comments. This is necessary, for
11810 # example, in the case of _POSIX_SOURCE, which is predefined and required
11811 # on some systems where configure will not decide to define it.
11812 cat >> conftest.vals <<\EOF
11813 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
11816 # Break up conftest.vals because some shells have a limit on
11817 # the size of here documents, and old seds have small limits too.
11819 rm -f conftest.tail
11822 ac_lines=`grep -c . conftest.vals`
11823 # grep -c gives empty output for an empty file on some AIX systems.
11824 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
11825 # Write a limited-size here document to conftest.frag.
11826 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
11827 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
11829 sed -f conftest.frag conftest.in > conftest.out
11831 mv conftest.out conftest.in
11832 ' >> $CONFIG_STATUS
11833 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
11834 rm -f conftest.vals
11835 mv conftest.tail conftest.vals
11837 rm -f conftest.vals
11839 cat >> $CONFIG_STATUS <<\EOF
11840 rm -f conftest.frag conftest.h
11841 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
11842 cat conftest.in >> conftest.h
11844 if cmp -s $ac_file conftest.h 2>/dev/null; then
11845 echo "$ac_file is unchanged"
11848 # Remove last slash and all that follows it. Not all systems have dirname.
11849 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
11850 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
11851 # The file is in a subdirectory.
11852 test ! -d "$ac_dir" && mkdir "$ac_dir"
11855 mv conftest.h $ac_file
11860 cat >> $CONFIG_STATUS <<EOF
11863 cat >> $CONFIG_STATUS <<\EOF
11864 chmod +x support/fixscript
11868 chmod +x $CONFIG_STATUS
11869 rm -fr confdefs* $ac_clean_files
11870 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
11875 Please check the following files before running make, to ensure that
11876 everything was set correctly.
11885 if $_PATH_PERL -e "exit((stat('$tmpdir'))[2] & 2)" > /dev/null ; then
11890 WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
11892 The temporary directory you have configured is world-writeable. It is
11893 currently set to $tmpdir.
11895 This directory is used by INN for temporary files and should only be
11896 writeable by the news user. INN does not go to great lengths to prevent
11897 symlink attacks and the like because it assumes this directory is not
11898 world-writeable. By configuring INN in this fashion, you may be
11899 introducing a locally exploitable security hole.
11901 It is STRONGLY recommended that you use a temporary directory reserved for
11902 INN's exclusive use, one which is not world-writeable. You can do this
11903 either with --with-tmp-dir or by setting --prefix to something other than