3 # From configure.in Revision: 7811
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=server.example.net
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
8058 if test x"$KRB5_INC" != x ; then
8062 echo $ac_n "checking for library containing krb5_parse_name""... $ac_c" 1>&6
8063 echo "configure:8064: checking for library containing krb5_parse_name" >&5
8064 if eval "test \"`echo '$''{'ac_cv_search_krb5_parse_name'+set}'`\" = set"; then
8065 echo $ac_n "(cached) $ac_c" 1>&6
8067 ac_func_search_save_LIBS="$LIBS"
8068 ac_cv_search_krb5_parse_name="no"
8069 cat > conftest.$ac_ext <<EOF
8070 #line 8071 "configure"
8071 #include "confdefs.h"
8072 /* Override any gcc2 internal prototype to avoid an error. */
8073 /* We use char because int might match the return type of a gcc2
8074 builtin and then its argument prototype would still apply. */
8075 char krb5_parse_name();
8081 if { (eval echo configure:8082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8083 ac_cv_search_krb5_parse_name="none required"
8085 echo "configure: failed program was:" >&5
8086 cat conftest.$ac_ext >&5
8089 test "$ac_cv_search_krb5_parse_name" = "no" && for i in krb5; do
8090 LIBS="-l$i $LIBS -lk5crypto -lcom_err $ac_func_search_save_LIBS"
8091 cat > conftest.$ac_ext <<EOF
8092 #line 8093 "configure"
8093 #include "confdefs.h"
8094 /* Override any gcc2 internal prototype to avoid an error. */
8095 /* We use char because int might match the return type of a gcc2
8096 builtin and then its argument prototype would still apply. */
8097 char krb5_parse_name();
8103 if { (eval echo configure:8104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8105 ac_cv_search_krb5_parse_name="-l$i"
8108 echo "configure: failed program was:" >&5
8109 cat conftest.$ac_ext >&5
8113 LIBS="$ac_func_search_save_LIBS"
8116 echo "$ac_t""$ac_cv_search_krb5_parse_name" 1>&6
8117 if test "$ac_cv_search_krb5_parse_name" != "no"; then
8118 test "$ac_cv_search_krb5_parse_name" = "none required" || LIBS="$ac_cv_search_krb5_parse_name $LIBS"
8120 KRB5_AUTH="auth_krb5"
8121 KRB5_LIB="$KRB5_LDFLAGS $KRB5_LIB -lk5crypto -lcom_err"
8124 for ac_hdr in et/com_err.h
8126 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8127 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8128 echo "configure:8129: checking for $ac_hdr" >&5
8129 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8130 echo $ac_n "(cached) $ac_c" 1>&6
8132 cat > conftest.$ac_ext <<EOF
8133 #line 8134 "configure"
8134 #include "confdefs.h"
8137 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8138 { (eval echo configure:8139: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8139 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8140 if test -z "$ac_err"; then
8142 eval "ac_cv_header_$ac_safe=yes"
8145 echo "configure: failed program was:" >&5
8146 cat conftest.$ac_ext >&5
8148 eval "ac_cv_header_$ac_safe=no"
8152 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8153 echo "$ac_t""yes" 1>&6
8154 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8155 cat >> confdefs.h <<EOF
8156 #define $ac_tr_hdr 1
8160 echo "$ac_t""no" 1>&6
8171 if test x"$KRB5_INC" != x ; then
8174 for ac_func in krb5_init_ets
8176 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8177 echo "configure:8178: checking for $ac_func" >&5
8178 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8179 echo $ac_n "(cached) $ac_c" 1>&6
8181 cat > conftest.$ac_ext <<EOF
8182 #line 8183 "configure"
8183 #include "confdefs.h"
8184 /* System header to define __stub macros and hopefully few prototypes,
8185 which can conflict with char $ac_func(); below. */
8187 /* Override any gcc2 internal prototype to avoid an error. */
8188 /* We use char because int might match the return type of a gcc2
8189 builtin and then its argument prototype would still apply. */
8194 /* The GNU C library defines this for functions which it implements
8195 to always fail with ENOSYS. Some functions are actually named
8196 something starting with __ and the normal name is an alias. */
8197 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8205 if { (eval echo configure:8206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8207 eval "ac_cv_func_$ac_func=yes"
8209 echo "configure: failed program was:" >&5
8210 cat conftest.$ac_ext >&5
8212 eval "ac_cv_func_$ac_func=no"
8217 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8218 echo "$ac_t""yes" 1>&6
8219 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8220 cat >> confdefs.h <<EOF
8221 #define $ac_tr_func 1
8225 echo "$ac_t""no" 1>&6
8232 if test x"$DO_PERL" = xDO ; then
8233 echo $ac_n "checking for Perl linkage""... $ac_c" 1>&6
8234 echo "configure:8235: checking for Perl linkage" >&5
8235 inn_perl_core_path=`$_PATH_PERL -MConfig -e 'print $Config{archlibexp}'`
8236 inn_perl_core_flags=`$_PATH_PERL -MExtUtils::Embed -e ccopts`
8237 inn_perl_core_libs=`$_PATH_PERL -MExtUtils::Embed -e ldopts 2>&1 | tail -1`
8238 inn_perl_core_libs=" $inn_perl_core_libs "
8239 inn_perl_core_libs=`echo "$inn_perl_core_libs" | sed 's/ -lc / /'`
8241 inn_perl_core_libs=`echo "$inn_perl_core_libs" | sed "s/ $i / /"`
8245 inn_perl_core_libs=`echo "$inn_perl_core_libs" | sed 's/ -lgdbm / /'`
8248 inn_perl_libname=`$_PATH_PERL -MConfig -e 'print $Config{libperl}'`
8249 inn_perl_libname=`echo "$inn_perl_libname" | sed 's/^lib//; s/\.a$//'`
8250 inn_perl_core_libs="${inn_perl_core_libs}-l$inn_perl_libname"
8253 inn_perl_core_libs=`echo "$inn_perl_core_libs" | sed 's/^ *//'`
8254 inn_perl_core_libs=`echo "$inn_perl_core_libs" | sed 's/ *$//'`
8255 inn_perl_core_flags=" $inn_perl_core_flags "
8256 if test x"$inn_enable_largefiles" != xyes ; then
8257 for f in -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES ; do
8258 inn_perl_core_flags=`echo "$inn_perl_core_flags" | sed "s/ $f / /"`
8261 inn_perl_core_flags=`echo "$inn_perl_core_flags" | sed 's/^ *//'`
8262 inn_perl_core_flags=`echo "$inn_perl_core_flags" | sed 's/ *$//'`
8263 PERL_INC="$inn_perl_core_flags"
8264 PERL_LIB="$inn_perl_core_libs"
8265 echo "$ac_t""$inn_perl_core_path" 1>&6
8273 if test x"$DO_PYTHON" = xdefine ; then
8274 echo $ac_n "checking for Python linkage""... $ac_c" 1>&6
8275 echo "configure:8276: checking for Python linkage" >&5
8276 py_prefix=`$_PATH_PYTHON -c 'import sys; print sys.prefix'`
8277 py_ver=`$_PATH_PYTHON -c 'import sys; print sys.version[:3]'`
8278 py_libdir="${py_prefix}/lib/python${py_ver}"
8279 PYTHON_INC="-I${py_prefix}/include/python${py_ver}"
8281 for py_linkpart in LIBS LIBC LIBM LOCALMODLIBS BASEMODLIBS \
8282 LINKFORSHARED LDFLAGS ; do
8283 py_linkage="$py_linkage "`grep "^${py_linkpart}=" \
8284 $py_libdir/config/Makefile \
8285 | sed -e 's/^.*=//'`
8287 PYTHON_LIB="-L$py_libdir/config -lpython$py_ver $py_linkage"
8288 PYTHON_LIB=`echo $PYTHON_LIB | sed -e 's/ \\t*/ /g'`
8289 echo "$ac_t""$py_libdir" 1>&6
8297 if test x"$inn_enable_largefiles" = xyes ; then
8298 echo $ac_n "checking for largefile linkage""... $ac_c" 1>&6
8299 echo "configure:8300: checking for largefile linkage" >&5
8302 echo "$ac_t""no" 1>&6
8303 { echo "configure: error: AIX before 4.2 does not support large files" 1>&2; exit 1; }
8306 echo "$ac_t""ok" 1>&6
8307 LFS_CFLAGS="-D_LARGE_FILES"
8312 echo "$ac_t""ok" 1>&6
8313 LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
8318 echo "$ac_t""no" 1>&6
8319 { echo "configure: error: Large files not supported on this platform" 1>&2; exit 1; }
8322 echo "$ac_t""maybe" 1>&6
8323 LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
8326 cat >> confdefs.h <<\EOF
8327 #define _GNU_SOURCE 1
8332 echo "$ac_t""ok" 1>&6
8333 # Extract the first word of "getconf", so it can be a program name with args.
8334 set dummy getconf; ac_word=$2
8335 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8336 echo "configure:8337: checking for $ac_word" >&5
8337 if eval "test \"`echo '$''{'ac_cv_path_GETCONF'+set}'`\" = set"; then
8338 echo $ac_n "(cached) $ac_c" 1>&6
8342 ac_cv_path_GETCONF="$GETCONF" # Let the user override the test with a path.
8345 ac_cv_path_GETCONF="$GETCONF" # Let the user override the test with a dos path.
8348 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8350 for ac_dir in $ac_dummy; do
8351 test -z "$ac_dir" && ac_dir=.
8352 if test -f $ac_dir/$ac_word; then
8353 ac_cv_path_GETCONF="$ac_dir/$ac_word"
8361 GETCONF="$ac_cv_path_GETCONF"
8362 if test -n "$GETCONF"; then
8363 echo "$ac_t""$GETCONF" 1>&6
8365 echo "$ac_t""no" 1>&6
8368 if test -z "$GETCONF" ; then
8369 { echo "configure: error: getconf required to configure large file support" 1>&2; exit 1; }
8371 LFS_CFLAGS=`$GETCONF LFS_CFLAGS`
8372 LFS_LDFLAGS=`$GETCONF LFS_LDFLAGS`
8373 LFS_LIBS=`$GETCONF LFS_LIBS`
8376 echo "$ac_t""maybe" 1>&6
8377 LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
8387 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
8388 echo "configure:8389: checking for ANSI C header files" >&5
8389 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
8390 echo $ac_n "(cached) $ac_c" 1>&6
8392 cat > conftest.$ac_ext <<EOF
8393 #line 8394 "configure"
8394 #include "confdefs.h"
8400 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8401 { (eval echo configure:8402: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8402 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8403 if test -z "$ac_err"; then
8405 ac_cv_header_stdc=yes
8408 echo "configure: failed program was:" >&5
8409 cat conftest.$ac_ext >&5
8411 ac_cv_header_stdc=no
8415 if test $ac_cv_header_stdc = yes; then
8416 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8417 cat > conftest.$ac_ext <<EOF
8418 #line 8419 "configure"
8419 #include "confdefs.h"
8422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8423 egrep "memchr" >/dev/null 2>&1; then
8427 ac_cv_header_stdc=no
8433 if test $ac_cv_header_stdc = yes; then
8434 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8435 cat > conftest.$ac_ext <<EOF
8436 #line 8437 "configure"
8437 #include "confdefs.h"
8440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8441 egrep "free" >/dev/null 2>&1; then
8445 ac_cv_header_stdc=no
8451 if test $ac_cv_header_stdc = yes; then
8452 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8453 if test "$cross_compiling" = yes; then
8456 cat > conftest.$ac_ext <<EOF
8457 #line 8458 "configure"
8458 #include "confdefs.h"
8460 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8461 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8462 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8463 int main () { int i; for (i = 0; i < 256; i++)
8464 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8468 if { (eval echo configure:8469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8472 echo "configure: failed program was:" >&5
8473 cat conftest.$ac_ext >&5
8475 ac_cv_header_stdc=no
8483 echo "$ac_t""$ac_cv_header_stdc" 1>&6
8484 if test $ac_cv_header_stdc = yes; then
8485 cat >> confdefs.h <<\EOF
8486 #define STDC_HEADERS 1
8492 if test x"$ac_cv_header_stdc" = xno ; then
8493 for ac_hdr in memory.h stdlib.h strings.h
8495 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8496 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8497 echo "configure:8498: checking for $ac_hdr" >&5
8498 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8499 echo $ac_n "(cached) $ac_c" 1>&6
8501 cat > conftest.$ac_ext <<EOF
8502 #line 8503 "configure"
8503 #include "confdefs.h"
8506 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8507 { (eval echo configure:8508: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8508 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8509 if test -z "$ac_err"; then
8511 eval "ac_cv_header_$ac_safe=yes"
8514 echo "configure: failed program was:" >&5
8515 cat conftest.$ac_ext >&5
8517 eval "ac_cv_header_$ac_safe=no"
8521 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8522 echo "$ac_t""yes" 1>&6
8523 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8524 cat >> confdefs.h <<EOF
8525 #define $ac_tr_hdr 1
8529 echo "$ac_t""no" 1>&6
8533 for ac_func in memcpy strchr
8535 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8536 echo "configure:8537: checking for $ac_func" >&5
8537 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8538 echo $ac_n "(cached) $ac_c" 1>&6
8540 cat > conftest.$ac_ext <<EOF
8541 #line 8542 "configure"
8542 #include "confdefs.h"
8543 /* System header to define __stub macros and hopefully few prototypes,
8544 which can conflict with char $ac_func(); below. */
8546 /* Override any gcc2 internal prototype to avoid an error. */
8547 /* We use char because int might match the return type of a gcc2
8548 builtin and then its argument prototype would still apply. */
8553 /* The GNU C library defines this for functions which it implements
8554 to always fail with ENOSYS. Some functions are actually named
8555 something starting with __ and the normal name is an alias. */
8556 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8564 if { (eval echo configure:8565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8566 eval "ac_cv_func_$ac_func=yes"
8568 echo "configure: failed program was:" >&5
8569 cat conftest.$ac_ext >&5
8571 eval "ac_cv_func_$ac_func=no"
8576 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8577 echo "$ac_t""yes" 1>&6
8578 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8579 cat >> confdefs.h <<EOF
8580 #define $ac_tr_func 1
8584 echo "$ac_t""no" 1>&6
8591 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
8593 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8594 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
8595 echo "configure:8596: checking for $ac_hdr that defines DIR" >&5
8596 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
8597 echo $ac_n "(cached) $ac_c" 1>&6
8599 cat > conftest.$ac_ext <<EOF
8600 #line 8601 "configure"
8601 #include "confdefs.h"
8602 #include <sys/types.h>
8608 if { (eval echo configure:8609: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8610 eval "ac_cv_header_dirent_$ac_safe=yes"
8612 echo "configure: failed program was:" >&5
8613 cat conftest.$ac_ext >&5
8615 eval "ac_cv_header_dirent_$ac_safe=no"
8619 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
8620 echo "$ac_t""yes" 1>&6
8621 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8622 cat >> confdefs.h <<EOF
8623 #define $ac_tr_hdr 1
8625 ac_header_dirent=$ac_hdr; break
8627 echo "$ac_t""no" 1>&6
8630 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8631 if test $ac_header_dirent = dirent.h; then
8632 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
8633 echo "configure:8634: checking for opendir in -ldir" >&5
8634 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
8635 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8636 echo $ac_n "(cached) $ac_c" 1>&6
8638 ac_save_LIBS="$LIBS"
8640 cat > conftest.$ac_ext <<EOF
8641 #line 8642 "configure"
8642 #include "confdefs.h"
8643 /* Override any gcc2 internal prototype to avoid an error. */
8644 /* We use char because int might match the return type of a gcc2
8645 builtin and then its argument prototype would still apply. */
8652 if { (eval echo configure:8653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8654 eval "ac_cv_lib_$ac_lib_var=yes"
8656 echo "configure: failed program was:" >&5
8657 cat conftest.$ac_ext >&5
8659 eval "ac_cv_lib_$ac_lib_var=no"
8662 LIBS="$ac_save_LIBS"
8665 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8666 echo "$ac_t""yes" 1>&6
8669 echo "$ac_t""no" 1>&6
8673 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
8674 echo "configure:8675: checking for opendir in -lx" >&5
8675 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
8676 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8677 echo $ac_n "(cached) $ac_c" 1>&6
8679 ac_save_LIBS="$LIBS"
8681 cat > conftest.$ac_ext <<EOF
8682 #line 8683 "configure"
8683 #include "confdefs.h"
8684 /* Override any gcc2 internal prototype to avoid an error. */
8685 /* We use char because int might match the return type of a gcc2
8686 builtin and then its argument prototype would still apply. */
8693 if { (eval echo configure:8694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8695 eval "ac_cv_lib_$ac_lib_var=yes"
8697 echo "configure: failed program was:" >&5
8698 cat conftest.$ac_ext >&5
8700 eval "ac_cv_lib_$ac_lib_var=no"
8703 LIBS="$ac_save_LIBS"
8706 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8707 echo "$ac_t""yes" 1>&6
8710 echo "$ac_t""no" 1>&6
8715 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
8716 echo "configure:8717: checking whether time.h and sys/time.h may both be included" >&5
8717 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
8718 echo $ac_n "(cached) $ac_c" 1>&6
8720 cat > conftest.$ac_ext <<EOF
8721 #line 8722 "configure"
8722 #include "confdefs.h"
8723 #include <sys/types.h>
8724 #include <sys/time.h>
8730 if { (eval echo configure:8731: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8732 ac_cv_header_time=yes
8734 echo "configure: failed program was:" >&5
8735 cat conftest.$ac_ext >&5
8737 ac_cv_header_time=no
8742 echo "$ac_t""$ac_cv_header_time" 1>&6
8743 if test $ac_cv_header_time = yes; then
8744 cat >> confdefs.h <<\EOF
8745 #define TIME_WITH_SYS_TIME 1
8750 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
8751 echo "configure:8752: checking for sys/wait.h that is POSIX.1 compatible" >&5
8752 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
8753 echo $ac_n "(cached) $ac_c" 1>&6
8755 cat > conftest.$ac_ext <<EOF
8756 #line 8757 "configure"
8757 #include "confdefs.h"
8758 #include <sys/types.h>
8759 #include <sys/wait.h>
8761 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8764 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8769 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8772 if { (eval echo configure:8773: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8774 ac_cv_header_sys_wait_h=yes
8776 echo "configure: failed program was:" >&5
8777 cat conftest.$ac_ext >&5
8779 ac_cv_header_sys_wait_h=no
8784 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
8785 if test $ac_cv_header_sys_wait_h = yes; then
8786 cat >> confdefs.h <<\EOF
8787 #define HAVE_SYS_WAIT_H 1
8793 for ac_hdr in crypt.h inttypes.h limits.h ndbm.h pam/pam_appl.h stdbool.h \
8794 stddef.h stdint.h string.h sys/bitypes.h sys/filio.h \
8795 sys/loadavg.h sys/param.h sys/select.h sys/sysinfo.h \
8796 sys/time.h unistd.h sys/inotify.h
8798 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8799 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8800 echo "configure:8801: checking for $ac_hdr" >&5
8801 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8802 echo $ac_n "(cached) $ac_c" 1>&6
8804 cat > conftest.$ac_ext <<EOF
8805 #line 8806 "configure"
8806 #include "confdefs.h"
8809 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8810 { (eval echo configure:8811: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8811 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8812 if test -z "$ac_err"; then
8814 eval "ac_cv_header_$ac_safe=yes"
8817 echo "configure: failed program was:" >&5
8818 cat conftest.$ac_ext >&5
8820 eval "ac_cv_header_$ac_safe=no"
8824 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8825 echo "$ac_t""yes" 1>&6
8826 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8827 cat >> confdefs.h <<EOF
8828 #define $ac_tr_hdr 1
8832 echo "$ac_t""no" 1>&6
8837 if test x"$ac_cv_header_ndbm_h" = xno ; then
8838 for ac_hdr in db1/ndbm.h gdbm-ndbm.h
8840 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8841 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8842 echo "configure:8843: checking for $ac_hdr" >&5
8843 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8844 echo $ac_n "(cached) $ac_c" 1>&6
8846 cat > conftest.$ac_ext <<EOF
8847 #line 8848 "configure"
8848 #include "confdefs.h"
8851 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8852 { (eval echo configure:8853: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8853 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8854 if test -z "$ac_err"; then
8856 eval "ac_cv_header_$ac_safe=yes"
8859 echo "configure: failed program was:" >&5
8860 cat conftest.$ac_ext >&5
8862 eval "ac_cv_header_$ac_safe=no"
8866 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8867 echo "$ac_t""yes" 1>&6
8868 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8869 cat >> confdefs.h <<EOF
8870 #define $ac_tr_hdr 1
8874 echo "$ac_t""no" 1>&6
8881 echo $ac_n "checking whether h_errno must be declared""... $ac_c" 1>&6
8882 echo "configure:8883: checking whether h_errno must be declared" >&5
8883 if eval "test \"`echo '$''{'inn_cv_herrno_need_decl'+set}'`\" = set"; then
8884 echo $ac_n "(cached) $ac_c" 1>&6
8886 cat > conftest.$ac_ext <<EOF
8887 #line 8888 "configure"
8888 #include "confdefs.h"
8894 if { (eval echo configure:8895: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8896 inn_cv_herrno_need_decl=no
8898 echo "configure: failed program was:" >&5
8899 cat conftest.$ac_ext >&5
8901 inn_cv_herrno_need_decl=yes
8906 echo "$ac_t""$inn_cv_herrno_need_decl" 1>&6
8907 if test "$inn_cv_herrno_need_decl" = yes ; then
8908 cat >> confdefs.h <<\EOF
8909 #define NEED_HERRNO_DECLARATION 1
8917 echo $ac_n "checking whether inet_aton must be declared""... $ac_c" 1>&6
8918 echo "configure:8919: checking whether inet_aton must be declared" >&5
8919 if eval "test \"`echo '$''{'inn_cv_decl_needed_inet_aton'+set}'`\" = set"; then
8920 echo $ac_n "(cached) $ac_c" 1>&6
8922 cat > conftest.$ac_ext <<EOF
8923 #line 8924 "configure"
8924 #include "confdefs.h"
8926 #include <sys/types.h>
8928 # include <stdlib.h>
8929 # include <stddef.h>
8932 # include <stdlib.h>
8935 # define strchr index
8936 # define strrchr rindex
8940 # if !STDC_HEADERS && HAVE_MEMORY_H
8941 # include <memory.h>
8943 # include <string.h>
8946 # include <strings.h>
8950 # include <unistd.h>
8952 #include <netinet/in.h>
8953 #include <arpa/inet.h>
8955 char *(*pfn) = (char *(*)) inet_aton
8958 if { (eval echo configure:8959: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8960 inn_cv_decl_needed_inet_aton=no
8962 echo "configure: failed program was:" >&5
8963 cat conftest.$ac_ext >&5
8965 inn_cv_decl_needed_inet_aton=yes
8970 if test $inn_cv_decl_needed_inet_aton = yes ; then
8971 echo "$ac_t""yes" 1>&6
8972 cat >> confdefs.h <<\EOF
8973 #define NEED_DECLARATION_INET_ATON 1
8977 echo "$ac_t""no" 1>&6
8979 echo $ac_n "checking whether inet_ntoa must be declared""... $ac_c" 1>&6
8980 echo "configure:8981: checking whether inet_ntoa must be declared" >&5
8981 if eval "test \"`echo '$''{'inn_cv_decl_needed_inet_ntoa'+set}'`\" = set"; then
8982 echo $ac_n "(cached) $ac_c" 1>&6
8984 cat > conftest.$ac_ext <<EOF
8985 #line 8986 "configure"
8986 #include "confdefs.h"
8988 #include <sys/types.h>
8990 # include <stdlib.h>
8991 # include <stddef.h>
8994 # include <stdlib.h>
8997 # define strchr index
8998 # define strrchr rindex
9002 # if !STDC_HEADERS && HAVE_MEMORY_H
9003 # include <memory.h>
9005 # include <string.h>
9008 # include <strings.h>
9012 # include <unistd.h>
9014 #include <netinet/in.h>
9015 #include <arpa/inet.h>
9017 char *(*pfn) = (char *(*)) inet_ntoa
9020 if { (eval echo configure:9021: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9022 inn_cv_decl_needed_inet_ntoa=no
9024 echo "configure: failed program was:" >&5
9025 cat conftest.$ac_ext >&5
9027 inn_cv_decl_needed_inet_ntoa=yes
9032 if test $inn_cv_decl_needed_inet_ntoa = yes ; then
9033 echo "$ac_t""yes" 1>&6
9034 cat >> confdefs.h <<\EOF
9035 #define NEED_DECLARATION_INET_NTOA 1
9039 echo "$ac_t""no" 1>&6
9041 echo $ac_n "checking whether snprintf must be declared""... $ac_c" 1>&6
9042 echo "configure:9043: checking whether snprintf must be declared" >&5
9043 if eval "test \"`echo '$''{'inn_cv_decl_needed_snprintf'+set}'`\" = set"; then
9044 echo $ac_n "(cached) $ac_c" 1>&6
9046 cat > conftest.$ac_ext <<EOF
9047 #line 9048 "configure"
9048 #include "confdefs.h"
9050 #include <sys/types.h>
9052 # include <stdlib.h>
9053 # include <stddef.h>
9056 # include <stdlib.h>
9059 # define strchr index
9060 # define strrchr rindex
9064 # if !STDC_HEADERS && HAVE_MEMORY_H
9065 # include <memory.h>
9067 # include <string.h>
9070 # include <strings.h>
9074 # include <unistd.h>
9078 char *(*pfn) = (char *(*)) snprintf
9081 if { (eval echo configure:9082: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9083 inn_cv_decl_needed_snprintf=no
9085 echo "configure: failed program was:" >&5
9086 cat conftest.$ac_ext >&5
9088 inn_cv_decl_needed_snprintf=yes
9093 if test $inn_cv_decl_needed_snprintf = yes ; then
9094 echo "$ac_t""yes" 1>&6
9095 cat >> confdefs.h <<\EOF
9096 #define NEED_DECLARATION_SNPRINTF 1
9100 echo "$ac_t""no" 1>&6
9102 echo $ac_n "checking whether vsnprintf must be declared""... $ac_c" 1>&6
9103 echo "configure:9104: checking whether vsnprintf must be declared" >&5
9104 if eval "test \"`echo '$''{'inn_cv_decl_needed_vsnprintf'+set}'`\" = set"; then
9105 echo $ac_n "(cached) $ac_c" 1>&6
9107 cat > conftest.$ac_ext <<EOF
9108 #line 9109 "configure"
9109 #include "confdefs.h"
9111 #include <sys/types.h>
9113 # include <stdlib.h>
9114 # include <stddef.h>
9117 # include <stdlib.h>
9120 # define strchr index
9121 # define strrchr rindex
9125 # if !STDC_HEADERS && HAVE_MEMORY_H
9126 # include <memory.h>
9128 # include <string.h>
9131 # include <strings.h>
9135 # include <unistd.h>
9139 char *(*pfn) = (char *(*)) vsnprintf
9142 if { (eval echo configure:9143: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9144 inn_cv_decl_needed_vsnprintf=no
9146 echo "configure: failed program was:" >&5
9147 cat conftest.$ac_ext >&5
9149 inn_cv_decl_needed_vsnprintf=yes
9154 if test $inn_cv_decl_needed_vsnprintf = yes ; then
9155 echo "$ac_t""yes" 1>&6
9156 cat >> confdefs.h <<\EOF
9157 #define NEED_DECLARATION_VSNPRINTF 1
9161 echo "$ac_t""no" 1>&6
9164 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
9165 echo "configure:9166: checking whether byte ordering is bigendian" >&5
9166 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
9167 echo $ac_n "(cached) $ac_c" 1>&6
9169 ac_cv_c_bigendian=unknown
9170 # See if sys/param.h defines the BYTE_ORDER macro.
9171 cat > conftest.$ac_ext <<EOF
9172 #line 9173 "configure"
9173 #include "confdefs.h"
9174 #include <sys/types.h>
9175 #include <sys/param.h>
9178 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
9183 if { (eval echo configure:9184: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9185 # It does; now see whether it defined to BIG_ENDIAN or not.
9186 cat > conftest.$ac_ext <<EOF
9187 #line 9188 "configure"
9188 #include "confdefs.h"
9189 #include <sys/types.h>
9190 #include <sys/param.h>
9193 #if BYTE_ORDER != BIG_ENDIAN
9198 if { (eval echo configure:9199: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9200 ac_cv_c_bigendian=yes
9202 echo "configure: failed program was:" >&5
9203 cat conftest.$ac_ext >&5
9205 ac_cv_c_bigendian=no
9209 echo "configure: failed program was:" >&5
9210 cat conftest.$ac_ext >&5
9213 if test $ac_cv_c_bigendian = unknown; then
9214 if test "$cross_compiling" = yes; then
9215 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
9217 cat > conftest.$ac_ext <<EOF
9218 #line 9219 "configure"
9219 #include "confdefs.h"
9221 /* Are we little or big endian? From Harbison&Steele. */
9225 char c[sizeof (long)];
9228 exit (u.c[sizeof (long) - 1] == 1);
9231 if { (eval echo configure:9232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9233 ac_cv_c_bigendian=no
9235 echo "configure: failed program was:" >&5
9236 cat conftest.$ac_ext >&5
9238 ac_cv_c_bigendian=yes
9246 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
9247 if test $ac_cv_c_bigendian = yes; then
9248 cat >> confdefs.h <<\EOF
9249 #define WORDS_BIGENDIAN 1
9254 echo $ac_n "checking for working const""... $ac_c" 1>&6
9255 echo "configure:9256: checking for working const" >&5
9256 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
9257 echo $ac_n "(cached) $ac_c" 1>&6
9259 cat > conftest.$ac_ext <<EOF
9260 #line 9261 "configure"
9261 #include "confdefs.h"
9265 /* Ultrix mips cc rejects this. */
9266 typedef int charset[2]; const charset x;
9267 /* SunOS 4.1.1 cc rejects this. */
9268 char const *const *ccp;
9270 /* NEC SVR4.0.2 mips cc rejects this. */
9271 struct point {int x, y;};
9272 static struct point const zero = {0,0};
9273 /* AIX XL C 1.02.0.0 rejects this.
9274 It does not let you subtract one const X* pointer from another in an arm
9275 of an if-expression whose if-part is not a constant expression */
9276 const char *g = "string";
9277 ccp = &g + (g ? g-g : 0);
9278 /* HPUX 7.0 cc rejects these. */
9281 ccp = (char const *const *) p;
9282 { /* SCO 3.2v4 cc rejects this. */
9284 char const *s = 0 ? (char *) 0 : (char const *) 0;
9288 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9290 const int *foo = &x[0];
9293 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9294 typedef const int *iptr;
9298 { /* AIX XL C 1.02.0.0 rejects this saying
9299 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9300 struct s { int j; const int *ap[3]; };
9301 struct s *b; b->j = 5;
9303 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9309 if { (eval echo configure:9310: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9313 echo "configure: failed program was:" >&5
9314 cat conftest.$ac_ext >&5
9321 echo "$ac_t""$ac_cv_c_const" 1>&6
9322 if test $ac_cv_c_const = no; then
9323 cat >> confdefs.h <<\EOF
9329 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
9330 echo "configure:9331: checking for st_blksize in struct stat" >&5
9331 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
9332 echo $ac_n "(cached) $ac_c" 1>&6
9334 cat > conftest.$ac_ext <<EOF
9335 #line 9336 "configure"
9336 #include "confdefs.h"
9337 #include <sys/types.h>
9338 #include <sys/stat.h>
9340 struct stat s; s.st_blksize;
9343 if { (eval echo configure:9344: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9345 ac_cv_struct_st_blksize=yes
9347 echo "configure: failed program was:" >&5
9348 cat conftest.$ac_ext >&5
9350 ac_cv_struct_st_blksize=no
9355 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
9356 if test $ac_cv_struct_st_blksize = yes; then
9357 cat >> confdefs.h <<\EOF
9358 #define HAVE_ST_BLKSIZE 1
9363 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
9364 echo "configure:9365: checking whether struct tm is in sys/time.h or time.h" >&5
9365 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
9366 echo $ac_n "(cached) $ac_c" 1>&6
9368 cat > conftest.$ac_ext <<EOF
9369 #line 9370 "configure"
9370 #include "confdefs.h"
9371 #include <sys/types.h>
9374 struct tm *tp; tp->tm_sec;
9377 if { (eval echo configure:9378: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9379 ac_cv_struct_tm=time.h
9381 echo "configure: failed program was:" >&5
9382 cat conftest.$ac_ext >&5
9384 ac_cv_struct_tm=sys/time.h
9389 echo "$ac_t""$ac_cv_struct_tm" 1>&6
9390 if test $ac_cv_struct_tm = sys/time.h; then
9391 cat >> confdefs.h <<\EOF
9392 #define TM_IN_SYS_TIME 1
9397 echo $ac_n "checking for size_t""... $ac_c" 1>&6
9398 echo "configure:9399: checking for size_t" >&5
9399 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
9400 echo $ac_n "(cached) $ac_c" 1>&6
9402 cat > conftest.$ac_ext <<EOF
9403 #line 9404 "configure"
9404 #include "confdefs.h"
9405 #include <sys/types.h>
9411 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9412 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9414 ac_cv_type_size_t=yes
9417 ac_cv_type_size_t=no
9422 echo "$ac_t""$ac_cv_type_size_t" 1>&6
9423 if test $ac_cv_type_size_t = no; then
9424 cat >> confdefs.h <<\EOF
9425 #define size_t unsigned
9430 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
9431 echo "configure:9432: checking for uid_t in sys/types.h" >&5
9432 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
9433 echo $ac_n "(cached) $ac_c" 1>&6
9435 cat > conftest.$ac_ext <<EOF
9436 #line 9437 "configure"
9437 #include "confdefs.h"
9438 #include <sys/types.h>
9440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9441 egrep "uid_t" >/dev/null 2>&1; then
9443 ac_cv_type_uid_t=yes
9452 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
9453 if test $ac_cv_type_uid_t = no; then
9454 cat >> confdefs.h <<\EOF
9458 cat >> confdefs.h <<\EOF
9464 echo $ac_n "checking for off_t""... $ac_c" 1>&6
9465 echo "configure:9466: checking for off_t" >&5
9466 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
9467 echo $ac_n "(cached) $ac_c" 1>&6
9469 cat > conftest.$ac_ext <<EOF
9470 #line 9471 "configure"
9471 #include "confdefs.h"
9472 #include <sys/types.h>
9478 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9479 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9481 ac_cv_type_off_t=yes
9489 echo "$ac_t""$ac_cv_type_off_t" 1>&6
9490 if test $ac_cv_type_off_t = no; then
9491 cat >> confdefs.h <<\EOF
9497 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
9498 echo "configure:9499: checking for pid_t" >&5
9499 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
9500 echo $ac_n "(cached) $ac_c" 1>&6
9502 cat > conftest.$ac_ext <<EOF
9503 #line 9504 "configure"
9504 #include "confdefs.h"
9505 #include <sys/types.h>
9511 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9512 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9514 ac_cv_type_pid_t=yes
9522 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
9523 if test $ac_cv_type_pid_t = no; then
9524 cat >> confdefs.h <<\EOF
9530 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
9531 echo "configure:9532: checking for ptrdiff_t" >&5
9532 if eval "test \"`echo '$''{'ac_cv_type_ptrdiff_t'+set}'`\" = set"; then
9533 echo $ac_n "(cached) $ac_c" 1>&6
9535 cat > conftest.$ac_ext <<EOF
9536 #line 9537 "configure"
9537 #include "confdefs.h"
9538 #include <sys/types.h>
9544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9545 egrep "(^|[^a-zA-Z_0-9])ptrdiff_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9547 ac_cv_type_ptrdiff_t=yes
9550 ac_cv_type_ptrdiff_t=no
9555 echo "$ac_t""$ac_cv_type_ptrdiff_t" 1>&6
9556 if test $ac_cv_type_ptrdiff_t = no; then
9557 cat >> confdefs.h <<\EOF
9558 #define ptrdiff_t long
9563 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
9564 echo "configure:9565: checking for ssize_t" >&5
9565 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
9566 echo $ac_n "(cached) $ac_c" 1>&6
9568 cat > conftest.$ac_ext <<EOF
9569 #line 9570 "configure"
9570 #include "confdefs.h"
9571 #include <sys/types.h>
9577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9578 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9580 ac_cv_type_ssize_t=yes
9583 ac_cv_type_ssize_t=no
9588 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
9589 if test $ac_cv_type_ssize_t = no; then
9590 cat >> confdefs.h <<\EOF
9598 echo $ac_n "checking for C99 variadic macros""... $ac_c" 1>&6
9599 echo "configure:9600: checking for C99 variadic macros" >&5
9600 if eval "test \"`echo '$''{'inn_cv_c_c99_vamacros'+set}'`\" = set"; then
9601 echo $ac_n "(cached) $ac_c" 1>&6
9603 cat > conftest.$ac_ext <<EOF
9604 #line 9605 "configure"
9605 #include "confdefs.h"
9607 #define error(...) fprintf(stderr, __VA_ARGS__)
9609 error("foo"); error("foo %d", 0); return 0;
9612 if { (eval echo configure:9613: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9614 inn_cv_c_c99_vamacros=yes
9616 echo "configure: failed program was:" >&5
9617 cat conftest.$ac_ext >&5
9619 inn_cv_c_c99_vamacros=no
9624 echo "$ac_t""$inn_cv_c_c99_vamacros" 1>&6
9625 if test $inn_cv_c_c99_vamacros = yes ; then
9626 cat >> confdefs.h <<\EOF
9627 #define HAVE_C99_VAMACROS 1
9633 echo $ac_n "checking for GNU-style variadic macros""... $ac_c" 1>&6
9634 echo "configure:9635: checking for GNU-style variadic macros" >&5
9635 if eval "test \"`echo '$''{'inn_cv_c_gnu_vamacros'+set}'`\" = set"; then
9636 echo $ac_n "(cached) $ac_c" 1>&6
9638 cat > conftest.$ac_ext <<EOF
9639 #line 9640 "configure"
9640 #include "confdefs.h"
9642 #define error(args...) fprintf(stderr, args)
9644 error("foo"); error("foo %d", 0); return 0;
9647 if { (eval echo configure:9648: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9649 inn_cv_c_gnu_vamacros=yes
9651 echo "configure: failed program was:" >&5
9652 cat conftest.$ac_ext >&5
9654 inn_cv_c_gnu_vamacros=no
9659 echo "$ac_t""$inn_cv_c_gnu_vamacros" 1>&6
9660 if test $inn_cv_c_gnu_vamacros = yes ; then
9661 cat >> confdefs.h <<\EOF
9662 #define HAVE_GNU_VAMACROS 1
9668 echo $ac_n "checking for long long int""... $ac_c" 1>&6
9669 echo "configure:9670: checking for long long int" >&5
9670 if eval "test \"`echo '$''{'inn_cv_c_long_long'+set}'`\" = set"; then
9671 echo $ac_n "(cached) $ac_c" 1>&6
9673 cat > conftest.$ac_ext <<EOF
9674 #line 9675 "configure"
9675 #include "confdefs.h"
9681 if { (eval echo configure:9682: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9683 inn_cv_c_long_long=yes
9685 echo "configure: failed program was:" >&5
9686 cat conftest.$ac_ext >&5
9688 inn_cv_c_long_long=no
9693 echo "$ac_t""$inn_cv_c_long_long" 1>&6
9694 if test $inn_cv_c_long_long = yes ; then
9695 cat >> confdefs.h <<\EOF
9696 #define HAVE_LONG_LONG 1
9704 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
9705 echo "configure:9706: checking for sig_atomic_t" >&5
9706 if eval "test \"`echo '$''{'ac_cv_type_sig_atomic_t'+set}'`\" = set"; then
9707 echo $ac_n "(cached) $ac_c" 1>&6
9709 cat > conftest.$ac_ext <<EOF
9710 #line 9711 "configure"
9711 #include "confdefs.h"
9712 #include <sys/types.h>
9714 # include <stdlib.h>
9715 # include <stddef.h>
9719 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9720 egrep "(^|[^a-zA-Z_0-9])sig_atomic_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9722 ac_cv_type_sig_atomic_t=yes
9725 ac_cv_type_sig_atomic_t=no
9732 echo "$ac_t""$ac_cv_type_sig_atomic_t" 1>&6
9733 if test x"$ac_cv_type_sig_atomic_t" = xno ; then
9734 cat >> confdefs.h <<EOF
9735 #define sig_atomic_t int
9740 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
9741 echo "configure:9742: checking for socklen_t" >&5
9742 if eval "test \"`echo '$''{'ac_cv_type_socklen_t'+set}'`\" = set"; then
9743 echo $ac_n "(cached) $ac_c" 1>&6
9745 cat > conftest.$ac_ext <<EOF
9746 #line 9747 "configure"
9747 #include "confdefs.h"
9748 #include <sys/types.h>
9750 # include <stdlib.h>
9751 # include <stddef.h>
9753 #include <sys/socket.h>
9755 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9756 egrep "(^|[^a-zA-Z_0-9])socklen_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9758 ac_cv_type_socklen_t=yes
9761 ac_cv_type_socklen_t=no
9768 echo "$ac_t""$ac_cv_type_socklen_t" 1>&6
9769 if test x"$ac_cv_type_socklen_t" = xno ; then
9770 cat >> confdefs.h <<EOF
9771 #define socklen_t int
9779 echo $ac_n "checking value of IOV_MAX""... $ac_c" 1>&6
9780 echo "configure:9781: checking value of IOV_MAX" >&5
9781 if eval "test \"`echo '$''{'inn_cv_macro_iov_max'+set}'`\" = set"; then
9782 echo $ac_n "(cached) $ac_c" 1>&6
9784 if test "$cross_compiling" = yes; then
9787 cat > conftest.$ac_ext <<EOF
9788 #line 9789 "configure"
9789 #include "confdefs.h"
9790 #include <sys/types.h>
9792 #include <sys/uio.h>
9795 #ifdef HAVE_UNISTD_H
9796 # include <unistd.h>
9798 #ifdef HAVE_LIMITS_H
9799 # include <limits.h>
9806 struct iovec array[1024];
9809 FILE *f = fopen ("conftestval", "w");
9812 fprintf (f, "set in limits.h\n");
9815 fprintf (f, "%d\n", UIO_MAXIOV);
9817 fd = open ("/dev/null", O_WRONLY, 0666);
9818 if (fd < 0) return 1;
9819 for (size = 1; size <= 1024; size++)
9821 array[size - 1].iov_base = &data;
9822 array[size - 1].iov_len = sizeof data;
9823 if (writev (fd, array, size) < 0)
9825 if (errno != EINVAL) return 1;
9826 fprintf(f, "%d\n", size - 1);
9830 fprintf (f, "1024\n");
9831 # endif /* UIO_MAXIOV */
9832 #endif /* IOV_MAX */
9836 if { (eval echo configure:9837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9838 inn_cv_macro_iov_max=`cat conftestval`
9840 echo "configure: failed program was:" >&5
9841 cat conftest.$ac_ext >&5
9843 inn_cv_macro_iov_max=error
9848 if test x"$inn_cv_macro_iov_max" = xerror ; then
9849 echo "configure: warning: probe failure, assuming 16" 1>&2
9850 inn_cv_macro_iov_max=16
9854 echo "$ac_t""$inn_cv_macro_iov_max" 1>&6
9855 if test x"$inn_cv_macro_iov_max" != x"set in limits.h" ; then
9856 cat >> confdefs.h <<EOF
9857 #define IOV_MAX $inn_cv_macro_iov_max
9863 echo $ac_n "checking for SUN_LEN""... $ac_c" 1>&6
9864 echo "configure:9865: checking for SUN_LEN" >&5
9865 if eval "test \"`echo '$''{'inn_cv_macro_sun_len'+set}'`\" = set"; then
9866 echo $ac_n "(cached) $ac_c" 1>&6
9868 cat > conftest.$ac_ext <<EOF
9869 #line 9870 "configure"
9870 #include "confdefs.h"
9871 #include <sys/types.h>
9874 struct sockaddr_un sun;
9880 if { (eval echo configure:9881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9882 inn_cv_macro_sun_len=yes
9884 echo "configure: failed program was:" >&5
9885 cat conftest.$ac_ext >&5
9887 inn_cv_macro_sun_len=no
9892 echo "$ac_t""$inn_cv_macro_sun_len" 1>&6
9893 if test x"$inn_cv_macro_sun_len" = xyes ; then
9894 cat >> confdefs.h <<\EOF
9895 #define HAVE_SUN_LEN 1
9901 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
9902 echo "configure:9903: checking for tm_gmtoff in struct tm" >&5
9903 if eval "test \"`echo '$''{'inn_cv_struct_tm_gmtoff'+set}'`\" = set"; then
9904 echo $ac_n "(cached) $ac_c" 1>&6
9906 cat > conftest.$ac_ext <<EOF
9907 #line 9908 "configure"
9908 #include "confdefs.h"
9911 struct tm t; t.tm_gmtoff = 3600
9914 if { (eval echo configure:9915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9916 inn_cv_struct_tm_gmtoff=yes
9918 echo "configure: failed program was:" >&5
9919 cat conftest.$ac_ext >&5
9921 inn_cv_struct_tm_gmtoff=no
9926 echo "$ac_t""$inn_cv_struct_tm_gmtoff" 1>&6
9927 if test x"$inn_cv_struct_tm_gmtoff" = xyes ; then
9928 cat >> confdefs.h <<\EOF
9929 #define HAVE_TM_GMTOFF 1
9935 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
9936 echo "configure:9937: checking for tm_zone in struct tm" >&5
9937 if eval "test \"`echo '$''{'inn_cv_struct_tm_zone'+set}'`\" = set"; then
9938 echo $ac_n "(cached) $ac_c" 1>&6
9940 cat > conftest.$ac_ext <<EOF
9941 #line 9942 "configure"
9942 #include "confdefs.h"
9945 struct tm t; t.tm_zone = "UTC"
9948 if { (eval echo configure:9949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9950 inn_cv_struct_tm_zone=yes
9952 echo "configure: failed program was:" >&5
9953 cat conftest.$ac_ext >&5
9955 inn_cv_struct_tm_zone=no
9960 echo "$ac_t""$inn_cv_struct_tm_zone" 1>&6
9961 if test x"$inn_cv_struct_tm_zone" = xyes ; then
9962 cat >> confdefs.h <<\EOF
9963 #define HAVE_TM_ZONE 1
9969 echo $ac_n "checking for timezone variable""... $ac_c" 1>&6
9970 echo "configure:9971: checking for timezone variable" >&5
9971 if eval "test \"`echo '$''{'inn_cv_var_timezone'+set}'`\" = set"; then
9972 echo $ac_n "(cached) $ac_c" 1>&6
9974 cat > conftest.$ac_ext <<EOF
9975 #line 9976 "configure"
9976 #include "confdefs.h"
9979 timezone = 3600; altzone = 7200
9982 if { (eval echo configure:9983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9984 inn_cv_var_timezone=yes
9986 echo "configure: failed program was:" >&5
9987 cat conftest.$ac_ext >&5
9989 inn_cv_var_timezone=no
9994 echo "$ac_t""$inn_cv_var_timezone" 1>&6
9995 if test x"$inn_cv_var_timezone" = xyes ; then
9996 cat >> confdefs.h <<\EOF
9997 #define HAVE_VAR_TIMEZONE 1
10003 echo $ac_n "checking for tzname variable""... $ac_c" 1>&6
10004 echo "configure:10005: checking for tzname variable" >&5
10005 if eval "test \"`echo '$''{'inn_cv_var_tzname'+set}'`\" = set"; then
10006 echo $ac_n "(cached) $ac_c" 1>&6
10008 cat > conftest.$ac_ext <<EOF
10009 #line 10010 "configure"
10010 #include "confdefs.h"
10016 if { (eval echo configure:10017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10018 inn_cv_var_tzname=yes
10020 echo "configure: failed program was:" >&5
10021 cat conftest.$ac_ext >&5
10023 inn_cv_var_tzname=no
10028 echo "$ac_t""$inn_cv_var_tzname" 1>&6
10029 if test x"$inn_cv_var_tzname" = xyes ; then
10030 cat >> confdefs.h <<\EOF
10031 #define HAVE_VAR_TZNAME 1
10038 echo $ac_n "checking size of int""... $ac_c" 1>&6
10039 echo "configure:10040: checking size of int" >&5
10040 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
10041 echo $ac_n "(cached) $ac_c" 1>&6
10043 if test "$cross_compiling" = yes; then
10046 cat > conftest.$ac_ext <<EOF
10047 #line 10048 "configure"
10048 #include "confdefs.h"
10052 FILE *f = fopen("conftestval", "w");
10054 fprintf(f, "%d\n", sizeof(int));
10058 if { (eval echo configure:10059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10060 ac_cv_sizeof_int=`cat conftestval`
10062 echo "configure: failed program was:" >&5
10063 cat conftest.$ac_ext >&5
10072 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
10073 if test x"$ac_cv_sizeof_int" = x"4" ; then
10076 echo $ac_n "checking size of long""... $ac_c" 1>&6
10077 echo "configure:10078: checking size of long" >&5
10078 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
10079 echo $ac_n "(cached) $ac_c" 1>&6
10081 if test "$cross_compiling" = yes; then
10082 ac_cv_sizeof_long=4
10084 cat > conftest.$ac_ext <<EOF
10085 #line 10086 "configure"
10086 #include "confdefs.h"
10090 FILE *f = fopen("conftestval", "w");
10092 fprintf(f, "%d\n", sizeof(long));
10096 if { (eval echo configure:10097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10098 ac_cv_sizeof_long=`cat conftestval`
10100 echo "configure: failed program was:" >&5
10101 cat conftest.$ac_ext >&5
10103 ac_cv_sizeof_long=0
10110 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
10111 if test x"$ac_cv_sizeof_long" = x"4" ; then
10114 echo $ac_n "checking size of short""... $ac_c" 1>&6
10115 echo "configure:10116: checking size of short" >&5
10116 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
10117 echo $ac_n "(cached) $ac_c" 1>&6
10119 if test "$cross_compiling" = yes; then
10120 ac_cv_sizeof_short=2
10122 cat > conftest.$ac_ext <<EOF
10123 #line 10124 "configure"
10124 #include "confdefs.h"
10128 FILE *f = fopen("conftestval", "w");
10130 fprintf(f, "%d\n", sizeof(short));
10134 if { (eval echo configure:10135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10136 ac_cv_sizeof_short=`cat conftestval`
10138 echo "configure: failed program was:" >&5
10139 cat conftest.$ac_ext >&5
10141 ac_cv_sizeof_short=0
10148 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
10149 if test x"$ac_cv_sizeof_short" = x"4" ; then
10160 echo $ac_n "checking for int32_t""... $ac_c" 1>&6
10161 echo "configure:10162: checking for int32_t" >&5
10162 if eval "test \"`echo '$''{'ac_cv_type_int32_t'+set}'`\" = set"; then
10163 echo $ac_n "(cached) $ac_c" 1>&6
10165 cat > conftest.$ac_ext <<EOF
10166 #line 10167 "configure"
10167 #include "confdefs.h"
10168 #include <sys/types.h>
10169 #ifdef STDC_HEADERS
10170 # include <stdlib.h>
10171 # include <stddef.h>
10173 #ifdef HAVE_STDINT_H
10174 # include <stdint.h>
10176 #ifdef HAVE_SYS_BITYPES_H
10177 # include <sys/bitypes.h>
10181 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10182 egrep "(^|[^a-zA-Z_0-9])int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
10184 ac_cv_type_int32_t=yes
10187 ac_cv_type_int32_t=no
10194 echo "$ac_t""$ac_cv_type_int32_t" 1>&6
10195 if test x"$ac_cv_type_int32_t" = xno ; then
10196 cat >> confdefs.h <<EOF
10197 #define int32_t $INN_INT32
10203 echo $ac_n "checking for uint32_t""... $ac_c" 1>&6
10204 echo "configure:10205: checking for uint32_t" >&5
10205 if eval "test \"`echo '$''{'ac_cv_type_uint32_t'+set}'`\" = set"; then
10206 echo $ac_n "(cached) $ac_c" 1>&6
10208 cat > conftest.$ac_ext <<EOF
10209 #line 10210 "configure"
10210 #include "confdefs.h"
10211 #include <sys/types.h>
10212 #ifdef STDC_HEADERS
10213 # include <stdlib.h>
10214 # include <stddef.h>
10216 #ifdef HAVE_STDINT_H
10217 # include <stdint.h>
10219 #ifdef HAVE_SYS_BITYPES_H
10220 # include <sys/bitypes.h>
10224 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10225 egrep "(^|[^a-zA-Z_0-9])uint32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
10227 ac_cv_type_uint32_t=yes
10230 ac_cv_type_uint32_t=no
10237 echo "$ac_t""$ac_cv_type_uint32_t" 1>&6
10238 if test x"$ac_cv_type_uint32_t" = xno ; then
10239 cat >> confdefs.h <<EOF
10240 #define uint32_t unsigned $INN_INT32
10245 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
10246 echo "configure:10247: checking for 8-bit clean memcmp" >&5
10247 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
10248 echo $ac_n "(cached) $ac_c" 1>&6
10250 if test "$cross_compiling" = yes; then
10251 ac_cv_func_memcmp_clean=no
10253 cat > conftest.$ac_ext <<EOF
10254 #line 10255 "configure"
10255 #include "confdefs.h"
10259 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
10260 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
10264 if { (eval echo configure:10265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10266 ac_cv_func_memcmp_clean=yes
10268 echo "configure: failed program was:" >&5
10269 cat conftest.$ac_ext >&5
10271 ac_cv_func_memcmp_clean=no
10278 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
10279 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
10281 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
10282 echo "configure:10283: checking return type of signal handlers" >&5
10283 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
10284 echo $ac_n "(cached) $ac_c" 1>&6
10286 cat > conftest.$ac_ext <<EOF
10287 #line 10288 "configure"
10288 #include "confdefs.h"
10289 #include <sys/types.h>
10290 #include <signal.h>
10295 extern "C" void (*signal (int, void (*)(int)))(int);
10297 void (*signal ()) ();
10304 if { (eval echo configure:10305: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10306 ac_cv_type_signal=void
10308 echo "configure: failed program was:" >&5
10309 cat conftest.$ac_ext >&5
10311 ac_cv_type_signal=int
10316 echo "$ac_t""$ac_cv_type_signal" 1>&6
10317 cat >> confdefs.h <<EOF
10318 #define RETSIGTYPE $ac_cv_type_signal
10326 echo $ac_n "checking for working inet_ntoa""... $ac_c" 1>&6
10327 echo "configure:10328: checking for working inet_ntoa" >&5
10328 if eval "test \"`echo '$''{'inn_cv_func_inet_ntoa_works'+set}'`\" = set"; then
10329 echo $ac_n "(cached) $ac_c" 1>&6
10331 if test "$cross_compiling" = yes; then
10332 inn_cv_func_inet_ntoa_works=no
10334 cat > conftest.$ac_ext <<EOF
10335 #line 10336 "configure"
10336 #include "confdefs.h"
10337 #include <sys/types.h>
10338 #include <sys/socket.h>
10339 #include <netinet/in.h>
10340 #include <arpa/inet.h>
10341 #if STDC_HEADERS || HAVE_STRING_H
10342 # include <string.h>
10349 in.s_addr = htonl (0x7f000000L);
10350 return (!strcmp (inet_ntoa (in), "127.0.0.0") ? 0 : 1);
10353 if { (eval echo configure:10354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10355 inn_cv_func_inet_ntoa_works=yes
10357 echo "configure: failed program was:" >&5
10358 cat conftest.$ac_ext >&5
10360 inn_cv_func_inet_ntoa_works=no
10367 echo "$ac_t""$inn_cv_func_inet_ntoa_works" 1>&6
10368 if test "$inn_cv_func_inet_ntoa_works" = yes ; then
10369 cat >> confdefs.h <<\EOF
10370 #define HAVE_INET_NTOA 1
10374 LIBOBJS="$LIBOBJS inet_ntoa.${ac_objext}"
10378 echo $ac_n "checking whether struct sockaddr has sa_len""... $ac_c" 1>&6
10379 echo "configure:10380: checking whether struct sockaddr has sa_len" >&5
10380 if eval "test \"`echo '$''{'inn_cv_struct_sockaddr_sa_len'+set}'`\" = set"; then
10381 echo $ac_n "(cached) $ac_c" 1>&6
10383 cat > conftest.$ac_ext <<EOF
10384 #line 10385 "configure"
10385 #include "confdefs.h"
10386 #include <sys/types.h>
10387 #include <sys/socket.h>
10388 #include <netinet/in.h>
10390 struct sockaddr sa; int x = sa.sa_len;
10393 if { (eval echo configure:10394: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10395 inn_cv_struct_sockaddr_sa_len=yes
10397 echo "configure: failed program was:" >&5
10398 cat conftest.$ac_ext >&5
10400 inn_cv_struct_sockaddr_sa_len=no
10405 echo "$ac_t""$inn_cv_struct_sockaddr_sa_len" 1>&6
10406 if test "$inn_cv_struct_sockaddr_sa_len" = yes ; then
10407 cat >> confdefs.h <<\EOF
10408 #define HAVE_SOCKADDR_LEN 1
10414 echo $ac_n "checking for SA_LEN(s) macro""... $ac_c" 1>&6
10415 echo "configure:10416: checking for SA_LEN(s) macro" >&5
10416 if eval "test \"`echo '$''{'inn_cv_sa_len_macro'+set}'`\" = set"; then
10417 echo $ac_n "(cached) $ac_c" 1>&6
10419 cat > conftest.$ac_ext <<EOF
10420 #line 10421 "configure"
10421 #include "confdefs.h"
10422 #include <sys/types.h>
10423 #include <sys/socket.h>
10424 #include <netinet/in.h>
10426 struct sockaddr sa; int x = SA_LEN(&sa);
10429 if { (eval echo configure:10430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10431 inn_cv_sa_len_macro=yes
10433 echo "configure: failed program was:" >&5
10434 cat conftest.$ac_ext >&5
10436 inn_cv_sa_len_macro=no
10441 echo "$ac_t""$inn_cv_sa_len_macro" 1>&6
10442 if test "$inn_cv_sa_len_macro" = yes ; then
10443 cat >> confdefs.h <<\EOF
10444 #define HAVE_SA_LEN_MACRO 1
10452 echo $ac_n "checking for struct sockaddr_storage""... $ac_c" 1>&6
10453 echo "configure:10454: checking for struct sockaddr_storage" >&5
10454 if eval "test \"`echo '$''{'inn_cv_struct_sockaddr_storage'+set}'`\" = set"; then
10455 echo $ac_n "(cached) $ac_c" 1>&6
10457 cat > conftest.$ac_ext <<EOF
10458 #line 10459 "configure"
10459 #include "confdefs.h"
10460 #include <sys/types.h>
10461 #include <sys/socket.h>
10462 #include <netinet/in.h>
10464 struct sockaddr_storage ss;
10467 if { (eval echo configure:10468: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10469 inn_cv_struct_sockaddr_storage=yes
10471 echo "configure: failed program was:" >&5
10472 cat conftest.$ac_ext >&5
10474 inn_cv_struct_sockaddr_storage=no
10479 echo "$ac_t""$inn_cv_struct_sockaddr_storage" 1>&6
10480 if test "$inn_cv_struct_sockaddr_storage" = yes ; then
10481 cat >> confdefs.h <<\EOF
10482 #define HAVE_SOCKADDR_STORAGE 1
10485 echo $ac_n "checking for RFC 2553 style sockaddr_storage member names""... $ac_c" 1>&6
10486 echo "configure:10487: checking for RFC 2553 style sockaddr_storage member names" >&5
10487 if eval "test \"`echo '$''{'inn_cv_2553_ss_family'+set}'`\" = set"; then
10488 echo $ac_n "(cached) $ac_c" 1>&6
10490 cat > conftest.$ac_ext <<EOF
10491 #line 10492 "configure"
10492 #include "confdefs.h"
10493 #include <sys/types.h>
10494 #include <sys/socket.h>
10495 #include <netinet/in.h>
10497 struct sockaddr_storage ss; int x=ss.ss_family;
10500 if { (eval echo configure:10501: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10502 inn_cv_2553_ss_family=no
10504 echo "configure: failed program was:" >&5
10505 cat conftest.$ac_ext >&5
10507 inn_cv_2553_ss_family=yes
10512 echo "$ac_t""$inn_cv_2553_ss_family" 1>&6
10513 if test "$inn_cv_2553_ss_family" = yes ; then
10514 cat >> confdefs.h <<\EOF
10515 #define HAVE_2553_STYLE_SS_FAMILY 1
10524 if test "$inn_enable_ipv6_tests" = yes ; then
10525 echo $ac_n "checking whether IN6_ARE_ADDR_EQUAL macro is broken""... $ac_c" 1>&6
10526 echo "configure:10527: checking whether IN6_ARE_ADDR_EQUAL macro is broken" >&5
10527 if eval "test \"`echo '$''{'inn_cv_in6_are_addr_equal_broken'+set}'`\" = set"; then
10528 echo $ac_n "(cached) $ac_c" 1>&6
10530 if test "$cross_compiling" = yes; then
10531 inn_cv_in6_are_addr_equal_broken=no
10533 cat > conftest.$ac_ext <<EOF
10534 #line 10535 "configure"
10535 #include "confdefs.h"
10536 #include <sys/types.h>
10537 #include <sys/socket.h>
10538 #include <netinet/in.h>
10539 #include <arpa/inet.h>
10547 inet_pton(AF_INET6,"fe80::1234:5678:abcd",&a);
10548 inet_pton(AF_INET6,"fe80::1234:5678:abcd",&b);
10549 return IN6_ARE_ADDR_EQUAL(&a,&b) ? 0 : 1;
10552 if { (eval echo configure:10553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10554 inn_cv_in6_are_addr_equal_broken=no
10556 echo "configure: failed program was:" >&5
10557 cat conftest.$ac_ext >&5
10559 inn_cv_in6_are_addr_equal_broken=yes
10566 echo "$ac_t""$inn_cv_in6_are_addr_equal_broken" 1>&6
10567 if test "$inn_cv_in6_are_addr_equal_broken" = yes ; then
10568 cat >> confdefs.h <<\EOF
10569 #define HAVE_BROKEN_IN6_ARE_ADDR_EQUAL 1
10578 echo $ac_n "checking for working snprintf""... $ac_c" 1>&6
10579 echo "configure:10580: checking for working snprintf" >&5
10580 if eval "test \"`echo '$''{'inn_cv_func_snprintf_works'+set}'`\" = set"; then
10581 echo $ac_n "(cached) $ac_c" 1>&6
10583 if test "$cross_compiling" = yes; then
10584 inn_cv_func_snprintf_works=no
10586 cat > conftest.$ac_ext <<EOF
10587 #line 10588 "configure"
10588 #include "confdefs.h"
10590 #include <stdarg.h>
10595 test (char *format, ...)
10600 va_start (args, format);
10601 count = vsnprintf (buf, sizeof buf, format, args);
10609 return ((test ("%s", "abcd") == 4 && buf[0] == 'a' && buf[1] == '\0'
10610 && snprintf(NULL, 0, "%s", "abcd") == 4) ? 0 : 1);
10613 if { (eval echo configure:10614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10615 inn_cv_func_snprintf_works=yes
10617 echo "configure: failed program was:" >&5
10618 cat conftest.$ac_ext >&5
10620 inn_cv_func_snprintf_works=no
10627 echo "$ac_t""$inn_cv_func_snprintf_works" 1>&6
10628 if test "$inn_cv_func_snprintf_works" = yes ; then
10629 cat >> confdefs.h <<\EOF
10630 #define HAVE_SNPRINTF 1
10634 LIBOBJS="$LIBOBJS snprintf.${ac_objext}"
10637 for ac_func in atexit getloadavg getrlimit getrusage getspnam setbuffer \
10638 sigaction setgroups setrlimit setsid socketpair statvfs \
10639 strncasecmp strtoul symlink sysconf
10641 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10642 echo "configure:10643: checking for $ac_func" >&5
10643 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10644 echo $ac_n "(cached) $ac_c" 1>&6
10646 cat > conftest.$ac_ext <<EOF
10647 #line 10648 "configure"
10648 #include "confdefs.h"
10649 /* System header to define __stub macros and hopefully few prototypes,
10650 which can conflict with char $ac_func(); below. */
10651 #include <assert.h>
10652 /* Override any gcc2 internal prototype to avoid an error. */
10653 /* We use char because int might match the return type of a gcc2
10654 builtin and then its argument prototype would still apply. */
10659 /* The GNU C library defines this for functions which it implements
10660 to always fail with ENOSYS. Some functions are actually named
10661 something starting with __ and the normal name is an alias. */
10662 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10670 if { (eval echo configure:10671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10672 eval "ac_cv_func_$ac_func=yes"
10674 echo "configure: failed program was:" >&5
10675 cat conftest.$ac_ext >&5
10677 eval "ac_cv_func_$ac_func=no"
10682 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10683 echo "$ac_t""yes" 1>&6
10684 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10685 cat >> confdefs.h <<EOF
10686 #define $ac_tr_func 1
10690 echo "$ac_t""no" 1>&6
10695 if test x"$ac_cv_func_getrlimit" = xno ; then
10696 for ac_func in getdtablesize ulimit
10698 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10699 echo "configure:10700: checking for $ac_func" >&5
10700 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10701 echo $ac_n "(cached) $ac_c" 1>&6
10703 cat > conftest.$ac_ext <<EOF
10704 #line 10705 "configure"
10705 #include "confdefs.h"
10706 /* System header to define __stub macros and hopefully few prototypes,
10707 which can conflict with char $ac_func(); below. */
10708 #include <assert.h>
10709 /* Override any gcc2 internal prototype to avoid an error. */
10710 /* We use char because int might match the return type of a gcc2
10711 builtin and then its argument prototype would still apply. */
10716 /* The GNU C library defines this for functions which it implements
10717 to always fail with ENOSYS. Some functions are actually named
10718 something starting with __ and the normal name is an alias. */
10719 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10727 if { (eval echo configure:10728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10729 eval "ac_cv_func_$ac_func=yes"
10731 echo "configure: failed program was:" >&5
10732 cat conftest.$ac_ext >&5
10734 eval "ac_cv_func_$ac_func=no"
10739 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10740 echo "$ac_t""yes" 1>&6
10741 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10742 cat >> confdefs.h <<EOF
10743 #define $ac_tr_func 1
10747 echo "$ac_t""no" 1>&6
10753 if test x"$ac_cv_func_statvfs" = xno ; then
10754 for ac_func in statfs
10756 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10757 echo "configure:10758: checking for $ac_func" >&5
10758 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10759 echo $ac_n "(cached) $ac_c" 1>&6
10761 cat > conftest.$ac_ext <<EOF
10762 #line 10763 "configure"
10763 #include "confdefs.h"
10764 /* System header to define __stub macros and hopefully few prototypes,
10765 which can conflict with char $ac_func(); below. */
10766 #include <assert.h>
10767 /* Override any gcc2 internal prototype to avoid an error. */
10768 /* We use char because int might match the return type of a gcc2
10769 builtin and then its argument prototype would still apply. */
10774 /* The GNU C library defines this for functions which it implements
10775 to always fail with ENOSYS. Some functions are actually named
10776 something starting with __ and the normal name is an alias. */
10777 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10785 if { (eval echo configure:10786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10787 eval "ac_cv_func_$ac_func=yes"
10789 echo "configure: failed program was:" >&5
10790 cat conftest.$ac_ext >&5
10792 eval "ac_cv_func_$ac_func=no"
10797 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10798 echo "$ac_t""yes" 1>&6
10799 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10800 cat >> confdefs.h <<EOF
10801 #define $ac_tr_func 1
10805 echo "$ac_t""no" 1>&6
10809 for ac_hdr in sys/vfs.h sys/mount.h
10811 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10812 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10813 echo "configure:10814: checking for $ac_hdr" >&5
10814 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10815 echo $ac_n "(cached) $ac_c" 1>&6
10817 cat > conftest.$ac_ext <<EOF
10818 #line 10819 "configure"
10819 #include "confdefs.h"
10822 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10823 { (eval echo configure:10824: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10824 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10825 if test -z "$ac_err"; then
10827 eval "ac_cv_header_$ac_safe=yes"
10830 echo "configure: failed program was:" >&5
10831 cat conftest.$ac_ext >&5
10833 eval "ac_cv_header_$ac_safe=no"
10837 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10838 echo "$ac_t""yes" 1>&6
10839 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10840 cat >> confdefs.h <<EOF
10841 #define $ac_tr_hdr 1
10845 echo "$ac_t""no" 1>&6
10851 for ac_func in fseeko ftello getpagesize hstrerror inet_aton mkstemp \
10852 pread pwrite seteuid strcasecmp strerror strlcat strlcpy \
10855 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10856 echo "configure:10857: checking for $ac_func" >&5
10857 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10858 echo $ac_n "(cached) $ac_c" 1>&6
10860 cat > conftest.$ac_ext <<EOF
10861 #line 10862 "configure"
10862 #include "confdefs.h"
10863 /* System header to define __stub macros and hopefully few prototypes,
10864 which can conflict with char $ac_func(); below. */
10865 #include <assert.h>
10866 /* Override any gcc2 internal prototype to avoid an error. */
10867 /* We use char because int might match the return type of a gcc2
10868 builtin and then its argument prototype would still apply. */
10873 /* The GNU C library defines this for functions which it implements
10874 to always fail with ENOSYS. Some functions are actually named
10875 something starting with __ and the normal name is an alias. */
10876 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10884 if { (eval echo configure:10885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10886 eval "ac_cv_func_$ac_func=yes"
10888 echo "configure: failed program was:" >&5
10889 cat conftest.$ac_ext >&5
10891 eval "ac_cv_func_$ac_func=no"
10896 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10897 echo "$ac_t""yes" 1>&6
10898 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10899 cat >> confdefs.h <<EOF
10900 #define $ac_tr_func 1
10904 echo "$ac_t""no" 1>&6
10905 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
10915 if test "$ac_cv_func_fseeko" = no || test "$ac_cv_func_ftello" = no ; then
10916 echo $ac_n "checking for off_t-compatible fpos_t""... $ac_c" 1>&6
10917 echo "configure:10918: checking for off_t-compatible fpos_t" >&5
10918 if eval "test \"`echo '$''{'inn_cv_type_fpos_t_large'+set}'`\" = set"; then
10919 echo $ac_n "(cached) $ac_c" 1>&6
10921 if test "$cross_compiling" = yes; then
10922 inn_cv_type_fpos_t_large=no
10924 cat > conftest.$ac_ext <<EOF
10925 #line 10926 "configure"
10926 #include "confdefs.h"
10928 #include <sys/types.h>
10933 fpos_t fpos = 9223372036854775807ULL;
10936 exit(off == (off_t) 9223372036854775807ULL ? 0 : 1);
10939 if { (eval echo configure:10940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10941 inn_cv_type_fpos_t_large=yes
10943 echo "configure: failed program was:" >&5
10944 cat conftest.$ac_ext >&5
10946 inn_cv_type_fpos_t_large=no
10951 if test "$inn_cv_type_fpos_t_large" = yes ; then
10952 cat >> confdefs.h <<\EOF
10953 #define HAVE_LARGE_FPOS_T 1
10959 echo "$ac_t""$inn_cv_type_fpos_t_large" 1>&6
10977 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
10978 echo "configure:10979: checking for working mmap" >&5
10979 if eval "test \"`echo '$''{'inn_cv_func_mmap'+set}'`\" = set"; then
10980 echo $ac_n "(cached) $ac_c" 1>&6
10982 if test "$cross_compiling" = yes; then
10983 inn_cv_func_mmap=no
10985 cat > conftest.$ac_ext <<EOF
10986 #line 10987 "configure"
10987 #include "confdefs.h"
10989 #include <sys/types.h>
10991 # include <stdlib.h>
10992 # include <stddef.h>
10995 # include <stdlib.h>
10998 # define strchr index
10999 # define strrchr rindex
11003 # if !STDC_HEADERS && HAVE_MEMORY_H
11004 # include <memory.h>
11006 # include <string.h>
11008 # if HAVE_STRINGS_H
11009 # include <strings.h>
11013 # include <unistd.h>
11016 #include <sys/mman.h>
11024 /* First, make a file with some known garbage in it. Use something
11025 larger than one page but still an odd page size. */
11026 data = malloc (20000);
11027 if (!data) return 1;
11028 for (i = 0; i < 20000 / sizeof (int); i++)
11031 fd = creat ("conftestmmaps", 0600);
11032 if (fd < 0) return 1;
11033 if (write (fd, data, 20000) != 20000) return 1;
11036 /* Next, try to mmap the file and make sure we see the same garbage. */
11037 fd = open ("conftestmmaps", O_RDWR);
11038 if (fd < 0) return 1;
11039 data2 = mmap (0, 20000, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
11040 if (data2 == (int *) -1) return 1;
11041 for (i = 0; i < 20000 / sizeof (int); i++)
11042 if (data[i] != data2[i])
11046 unlink ("conftestmmaps");
11050 if { (eval echo configure:11051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11052 inn_cv_func_mmap=yes
11054 echo "configure: failed program was:" >&5
11055 cat conftest.$ac_ext >&5
11057 inn_cv_func_mmap=no
11064 echo "$ac_t""$inn_cv_func_mmap" 1>&6
11065 if test $inn_cv_func_mmap = yes ; then
11066 cat >> confdefs.h <<\EOF
11067 #define HAVE_MMAP 1
11071 if test x"$inn_cv_func_mmap" = xyes ; then
11072 for ac_func in madvise
11074 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11075 echo "configure:11076: checking for $ac_func" >&5
11076 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11077 echo $ac_n "(cached) $ac_c" 1>&6
11079 cat > conftest.$ac_ext <<EOF
11080 #line 11081 "configure"
11081 #include "confdefs.h"
11082 /* System header to define __stub macros and hopefully few prototypes,
11083 which can conflict with char $ac_func(); below. */
11084 #include <assert.h>
11085 /* Override any gcc2 internal prototype to avoid an error. */
11086 /* We use char because int might match the return type of a gcc2
11087 builtin and then its argument prototype would still apply. */
11092 /* The GNU C library defines this for functions which it implements
11093 to always fail with ENOSYS. Some functions are actually named
11094 something starting with __ and the normal name is an alias. */
11095 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11103 if { (eval echo configure:11104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11105 eval "ac_cv_func_$ac_func=yes"
11107 echo "configure: failed program was:" >&5
11108 cat conftest.$ac_ext >&5
11110 eval "ac_cv_func_$ac_func=no"
11115 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11116 echo "$ac_t""yes" 1>&6
11117 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11118 cat >> confdefs.h <<EOF
11119 #define $ac_tr_func 1
11123 echo "$ac_t""no" 1>&6
11127 echo $ac_n "checking whether mmap sees writes""... $ac_c" 1>&6
11128 echo "configure:11129: checking whether mmap sees writes" >&5
11129 if eval "test \"`echo '$''{'inn_cv_func_mmap_sees_writes'+set}'`\" = set"; then
11130 echo $ac_n "(cached) $ac_c" 1>&6
11132 if test "$cross_compiling" = yes; then
11133 inn_cv_func_mmap_sees_writes=no
11135 cat > conftest.$ac_ext <<EOF
11136 #line 11137 "configure"
11137 #include "confdefs.h"
11138 #include <stdlib.h>
11139 #include <sys/types.h>
11140 #include <sys/stat.h>
11143 # include <unistd.h>
11145 #include <sys/mman.h>
11147 /* Fractional page is probably worst case. */
11148 static char zbuff[1024];
11149 static char fname[] = "conftestw";
11157 fd = open (fname, O_RDWR | O_CREAT, 0660);
11158 if (fd < 0) return 1;
11160 write (fd, zbuff, sizeof (zbuff));
11161 lseek (fd, 0, SEEK_SET);
11162 map = mmap (0, sizeof (zbuff), PROT_READ, MAP_SHARED, fd, 0);
11163 if (map == (char *) -1) return 2;
11164 for (i = 0; fname[i]; i++)
11166 if (write (fd, &fname[i], 1) != 1) return 3;
11167 if (map[i] != fname[i]) return 4;
11172 if { (eval echo configure:11173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11174 inn_cv_func_mmap_sees_writes=yes
11176 echo "configure: failed program was:" >&5
11177 cat conftest.$ac_ext >&5
11179 inn_cv_func_mmap_sees_writes=no
11186 echo "$ac_t""$inn_cv_func_mmap_sees_writes" 1>&6
11187 if test $inn_cv_func_mmap_sees_writes = no ; then
11188 cat >> confdefs.h <<\EOF
11189 #define MMAP_MISSES_WRITES 1
11193 echo $ac_n "checking whether msync is needed""... $ac_c" 1>&6
11194 echo "configure:11195: checking whether msync is needed" >&5
11195 if eval "test \"`echo '$''{'inn_cv_func_mmap_need_msync'+set}'`\" = set"; then
11196 echo $ac_n "(cached) $ac_c" 1>&6
11198 if test "$cross_compiling" = yes; then
11199 inn_cv_func_mmap_need_msync=yes
11201 cat > conftest.$ac_ext <<EOF
11202 #line 11203 "configure"
11203 #include "confdefs.h"
11205 #include <sys/types.h>
11207 # include <stdlib.h>
11208 # include <stddef.h>
11211 # include <stdlib.h>
11214 # define strchr index
11215 # define strrchr rindex
11219 # if !STDC_HEADERS && HAVE_MEMORY_H
11220 # include <memory.h>
11222 # include <string.h>
11224 # if HAVE_STRINGS_H
11225 # include <strings.h>
11229 # include <unistd.h>
11231 #include <sys/types.h>
11233 #include <sys/mman.h>
11241 /* First, make a file with some known garbage in it. Use something
11242 larger than one page but still an odd page size. */
11243 data = malloc (20000);
11244 if (!data) return 1;
11245 for (i = 0; i < 20000 / sizeof (int); i++)
11248 fd = creat ("conftestmmaps", 0600);
11249 if (fd < 0) return 1;
11250 if (write (fd, data, 20000) != 20000) return 1;
11253 /* Next, try to mmap the file and make sure we see the same garbage. */
11254 fd = open ("conftestmmaps", O_RDWR);
11255 if (fd < 0) return 1;
11256 data2 = mmap (0, 20000, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
11257 if (data2 == (int *) -1) return 1;
11259 /* Finally, see if changes made to the mmaped region propagate back to
11260 the file as seen by read (meaning that msync isn't needed). */
11261 for (i = 0; i < 20000 / sizeof (int); i++)
11263 if (read (fd, data, 20000) != 20000) return 1;
11264 for (i = 0; i < 20000 / sizeof (int); i++)
11265 if (data[i] != data2[i])
11269 unlink ("conftestmmapm");
11273 if { (eval echo configure:11274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11275 inn_cv_func_mmap_need_msync=no
11277 echo "configure: failed program was:" >&5
11278 cat conftest.$ac_ext >&5
11280 inn_cv_func_mmap_need_msync=yes
11287 echo "$ac_t""$inn_cv_func_mmap_need_msync" 1>&6
11288 if test $inn_cv_func_mmap_need_msync = yes ; then
11289 cat >> confdefs.h <<\EOF
11290 #define MMAP_NEEDS_MSYNC 1
11294 echo $ac_n "checking how many arguments msync takes""... $ac_c" 1>&6
11295 echo "configure:11296: checking how many arguments msync takes" >&5
11296 if eval "test \"`echo '$''{'inn_cv_func_msync_args'+set}'`\" = set"; then
11297 echo $ac_n "(cached) $ac_c" 1>&6
11299 cat > conftest.$ac_ext <<EOF
11300 #line 11301 "configure"
11301 #include "confdefs.h"
11302 #include <sys/types.h>
11303 #include <sys/mman.h>
11305 char *p; int psize; msync (p, psize, MS_ASYNC);
11308 if { (eval echo configure:11309: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11310 inn_cv_func_msync_args=3
11312 echo "configure: failed program was:" >&5
11313 cat conftest.$ac_ext >&5
11315 inn_cv_func_msync_args=2
11320 echo "$ac_t""$inn_cv_func_msync_args" 1>&6
11321 if test $inn_cv_func_msync_args = 3 ; then
11322 cat >> confdefs.h <<\EOF
11323 #define HAVE_MSYNC_3_ARG 1
11330 echo $ac_n "checking for Unix domain sockets""... $ac_c" 1>&6
11331 echo "configure:11332: checking for Unix domain sockets" >&5
11332 if eval "test \"`echo '$''{'inn_cv_sys_unix_sockets'+set}'`\" = set"; then
11333 echo $ac_n "(cached) $ac_c" 1>&6
11335 cat > conftest.$ac_ext <<EOF
11336 #line 11337 "configure"
11337 #include "confdefs.h"
11338 #include <sys/socket.h>
11343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11344 egrep "yes" >/dev/null 2>&1; then
11346 inn_cv_sys_unix_sockets=yes
11349 inn_cv_sys_unix_sockets=no
11355 echo "$ac_t""$inn_cv_sys_unix_sockets" 1>&6
11356 if test $inn_cv_sys_unix_sockets = yes ; then
11357 cat >> confdefs.h <<\EOF
11358 #define HAVE_UNIX_DOMAIN_SOCKETS 1
11364 echo $ac_n "checking log facility for news""... $ac_c" 1>&6
11365 echo "configure:11366: checking log facility for news" >&5
11366 if eval "test \"`echo '$''{'inn_cv_log_facility'+set}'`\" = set"; then
11367 echo $ac_n "(cached) $ac_c" 1>&6
11369 cat > conftest.$ac_ext <<EOF
11370 #line 11371 "configure"
11371 #include "confdefs.h"
11372 #include <syslog.h>
11377 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11378 egrep "yes" >/dev/null 2>&1; then
11380 inn_cv_log_facility=LOG_NEWS
11383 inn_cv_log_facility=LOG_LOCAL1
11389 if test x"$SYSLOG_FACILITY" = xnone ; then
11390 SYSLOG_FACILITY=$inn_cv_log_facility
11392 echo "$ac_t""$SYSLOG_FACILITY" 1>&6
11393 cat >> confdefs.h <<EOF
11394 #define LOG_INN_SERVER $SYSLOG_FACILITY
11397 cat >> confdefs.h <<EOF
11398 #define LOG_INN_PROG $SYSLOG_FACILITY
11403 LIBS=`echo "$LIBS" | sed 's/^ *//' | sed 's/ */ /g' | sed 's/ *$//'`
11407 cat > confcache <<\EOF
11408 # This file is a shell script that caches the results of configure
11409 # tests run on this system so they can be shared between configure
11410 # scripts and configure runs. It is not useful on other systems.
11411 # If it contains results you don't want to keep, you may remove or edit it.
11413 # By default, configure uses ./config.cache as the cache file,
11414 # creating it if it does not exist already. You can give configure
11415 # the --cache-file=FILE option to use a different cache file; that is
11416 # what configure does when it calls configure scripts in
11417 # subdirectories, so they share the cache.
11418 # Giving --cache-file=/dev/null disables caching, for debugging configure.
11419 # config.status only pays attention to the cache file if you give it the
11420 # --recheck option to rerun configure.
11423 # The following way of writing the cache mishandles newlines in values,
11424 # but we know of no workaround that is simple, portable, and efficient.
11425 # So, don't put newlines in cache variables' values.
11426 # Ultrix sh set writes to stderr and can't be redirected directly,
11427 # and sets the high bit in the cache file unless we assign to the vars.
11429 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11431 # `set' does not quote correctly, so add quotes (double-quote substitution
11432 # turns \\\\ into \\, and sed turns \\ into \).
11434 -e "s/'/'\\\\''/g" \
11435 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
11438 # `set' quotes correctly as required by POSIX, so do not add quotes.
11439 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
11442 if cmp -s $cache_file confcache; then
11445 if test -w $cache_file; then
11446 echo "updating cache $cache_file"
11447 cat confcache > $cache_file
11449 echo "not updating unwritable cache $cache_file"
11454 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
11456 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11457 # Let make expand exec_prefix.
11458 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11460 # Any assignment to VPATH causes Sun make to only execute
11461 # the first set of double-colon rules, so remove it if not needed.
11462 # If there is a colon in the path, we need to keep it.
11463 if test "x$srcdir" = x.; then
11464 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
11467 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
11469 DEFS=-DHAVE_CONFIG_H
11471 # Without the "./", some shells look in PATH for config.status.
11472 : ${CONFIG_STATUS=./config.status}
11474 echo creating $CONFIG_STATUS
11475 rm -f $CONFIG_STATUS
11476 cat > $CONFIG_STATUS <<EOF
11478 # Generated automatically by configure.
11479 # Run this file to recreate the current configuration.
11480 # This directory was configured as follows,
11481 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11483 # $0 $ac_configure_args
11485 # Compiler output produced by configure, useful for debugging
11486 # configure, is in ./config.log if it exists.
11488 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
11491 case "\$ac_option" in
11492 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11493 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
11494 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
11495 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
11496 echo "$CONFIG_STATUS generated by autoconf version 2.13"
11498 -help | --help | --hel | --he | --h)
11499 echo "\$ac_cs_usage"; exit 0 ;;
11500 *) echo "\$ac_cs_usage"; exit 1 ;;
11504 ac_given_srcdir=$srcdir
11506 trap 'rm -fr `echo "Makefile.global
11509 samples/innreport.conf
11513 scripts/innshellvars
11514 scripts/innshellvars.pl
11515 scripts/innshellvars.tcl
11518 include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
11520 cat >> $CONFIG_STATUS <<EOF
11522 # Protect against being on the right side of a sed subst in config.status.
11523 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
11524 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
11528 s%@CFLAGS@%$CFLAGS%g
11529 s%@CPPFLAGS@%$CPPFLAGS%g
11530 s%@CXXFLAGS@%$CXXFLAGS%g
11531 s%@FFLAGS@%$FFLAGS%g
11533 s%@LDFLAGS@%$LDFLAGS%g
11535 s%@exec_prefix@%$exec_prefix%g
11536 s%@prefix@%$prefix%g
11537 s%@program_transform_name@%$program_transform_name%g
11538 s%@bindir@%$bindir%g
11539 s%@sbindir@%$sbindir%g
11540 s%@libexecdir@%$libexecdir%g
11541 s%@datadir@%$datadir%g
11542 s%@sysconfdir@%$sysconfdir%g
11543 s%@sharedstatedir@%$sharedstatedir%g
11544 s%@localstatedir@%$localstatedir%g
11545 s%@libdir@%$libdir%g
11546 s%@includedir@%$includedir%g
11547 s%@oldincludedir@%$oldincludedir%g
11548 s%@infodir@%$infodir%g
11549 s%@mandir@%$mandir%g
11550 s%@builddir@%$builddir%g
11553 s%@OBJEXT@%$OBJEXT%g
11555 s%@host_alias@%$host_alias%g
11556 s%@host_cpu@%$host_cpu%g
11557 s%@host_vendor@%$host_vendor%g
11558 s%@host_os@%$host_os%g
11560 s%@build_alias@%$build_alias%g
11561 s%@build_cpu@%$build_cpu%g
11562 s%@build_vendor@%$build_vendor%g
11563 s%@build_os@%$build_os%g
11565 s%@EXEEXT@%$EXEEXT%g
11567 s%@RANLIB@%$RANLIB%g
11569 s%@LIBTOOL@%$LIBTOOL%g
11570 s%@EXTLIB@%$EXTLIB%g
11571 s%@EXTOBJ@%$EXTOBJ%g
11572 s%@LIBTOOLCC@%$LIBTOOLCC%g
11573 s%@LIBTOOLLD@%$LIBTOOLLD%g
11574 s%@CCOUTPUT@%$CCOUTPUT%g
11575 s%@CONTROLDIR@%$CONTROLDIR%g
11577 s%@DOCDIR@%$DOCDIR%g
11578 s%@ETCDIR@%$ETCDIR%g
11579 s%@FILTERDIR@%$FILTERDIR%g
11580 s%@LIBDIR@%$LIBDIR%g
11581 s%@LOGDIR@%$LOGDIR%g
11582 s%@RUNDIR@%$RUNDIR%g
11583 s%@SPOOLDIR@%$SPOOLDIR%g
11584 s%@tmpdir@%$tmpdir%g
11585 s%@NEWSUSER@%$NEWSUSER%g
11586 s%@NEWSGRP@%$NEWSGRP%g
11587 s%@NEWSMASTER@%$NEWSMASTER%g
11588 s%@NEWSUMASK@%$NEWSUMASK%g
11589 s%@FILEMODE@%$FILEMODE%g
11590 s%@DIRMODE@%$DIRMODE%g
11591 s%@RUNDIRMODE@%$RUNDIRMODE%g
11592 s%@INEWSMODE@%$INEWSMODE%g
11593 s%@RNEWSGRP@%$RNEWSGRP%g
11594 s%@RNEWSMODE@%$RNEWSMODE%g
11595 s%@LOG_COMPRESS@%$LOG_COMPRESS%g
11596 s%@LOG_COMPRESSEXT@%$LOG_COMPRESSEXT%g
11597 s%@DO_DBZ_TAGGED_HASH@%$DO_DBZ_TAGGED_HASH%g
11598 s%@HOSTNAME@%$HOSTNAME%g
11600 s%@LEXLIB@%$LEXLIB%g
11601 s%@SET_MAKE@%$SET_MAKE%g
11604 s%@_PATH_AWK@%$_PATH_AWK%g
11605 s%@_PATH_EGREP@%$_PATH_EGREP%g
11606 s%@_PATH_PERL@%$_PATH_PERL%g
11607 s%@_PATH_SH@%$_PATH_SH%g
11608 s%@_PATH_SED@%$_PATH_SED%g
11609 s%@_PATH_SORT@%$_PATH_SORT%g
11610 s%@_PATH_UUX@%$_PATH_UUX%g
11611 s%@PATH_GPGV@%$PATH_GPGV%g
11612 s%@_PATH_PGP@%$_PATH_PGP%g
11613 s%@pgpverify@%$pgpverify%g
11614 s%@GETFTP@%$GETFTP%g
11615 s%@COMPRESS@%$COMPRESS%g
11617 s%@UNCOMPRESS@%$UNCOMPRESS%g
11618 s%@SENDMAIL@%$SENDMAIL%g
11619 s%@HAVE_UUSTAT@%$HAVE_UUSTAT%g
11620 s%@_PATH_PYTHON@%$_PATH_PYTHON%g
11621 s%@CRYPT_LIB@%$CRYPT_LIB%g
11622 s%@SHADOW_LIB@%$SHADOW_LIB%g
11623 s%@PAM_LIB@%$PAM_LIB%g
11624 s%@REGEX_LIB@%$REGEX_LIB%g
11625 s%@BERKELEY_DB_LDFLAGS@%$BERKELEY_DB_LDFLAGS%g
11626 s%@BERKELEY_DB_CFLAGS@%$BERKELEY_DB_CFLAGS%g
11627 s%@BERKELEY_DB_LIB@%$BERKELEY_DB_LIB%g
11628 s%@DBM_LIB@%$DBM_LIB%g
11629 s%@DBM_INC@%$DBM_INC%g
11630 s%@SSL_BIN@%$SSL_BIN%g
11631 s%@SSL_INC@%$SSL_INC%g
11632 s%@SSL_LIB@%$SSL_LIB%g
11633 s%@SASL_INC@%$SASL_INC%g
11634 s%@SASL_LIB@%$SASL_LIB%g
11635 s%@KRB5_AUTH@%$KRB5_AUTH%g
11636 s%@KRB5_INC@%$KRB5_INC%g
11637 s%@KRB5_LIB@%$KRB5_LIB%g
11638 s%@PERL_INC@%$PERL_INC%g
11639 s%@PERL_LIB@%$PERL_LIB%g
11640 s%@PYTHON_LIB@%$PYTHON_LIB%g
11641 s%@PYTHON_INC@%$PYTHON_INC%g
11642 s%@GETCONF@%$GETCONF%g
11643 s%@LFS_CFLAGS@%$LFS_CFLAGS%g
11644 s%@LFS_LDFLAGS@%$LFS_LDFLAGS%g
11645 s%@LFS_LIBS@%$LFS_LIBS%g
11646 s%@LIBOBJS@%$LIBOBJS%g
11647 s%@SYSLOG_FACILITY@%$SYSLOG_FACILITY%g
11652 cat >> $CONFIG_STATUS <<\EOF
11654 # Split the substitutions into bite-sized pieces for seds with
11655 # small command number limits, like on Digital OSF/1 and HP-UX.
11656 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
11657 ac_file=1 # Number of current file.
11658 ac_beg=1 # First line for current file.
11659 ac_end=$ac_max_sed_cmds # Line after last line for current file.
11662 while $ac_more_lines; do
11663 if test $ac_beg -gt 1; then
11664 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
11666 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
11668 if test ! -s conftest.s$ac_file; then
11669 ac_more_lines=false
11670 rm -f conftest.s$ac_file
11672 if test -z "$ac_sed_cmds"; then
11673 ac_sed_cmds="sed -f conftest.s$ac_file"
11675 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
11677 ac_file=`expr $ac_file + 1`
11679 ac_end=`expr $ac_end + $ac_max_sed_cmds`
11682 if test -z "$ac_sed_cmds"; then
11687 cat >> $CONFIG_STATUS <<EOF
11689 CONFIG_FILES=\${CONFIG_FILES-"Makefile.global
11692 samples/innreport.conf
11696 scripts/innshellvars
11697 scripts/innshellvars.pl
11698 scripts/innshellvars.tcl
11703 cat >> $CONFIG_STATUS <<\EOF
11704 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
11705 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11707 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
11708 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
11709 *) ac_file_in="${ac_file}.in" ;;
11712 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
11714 # Remove last slash and all that follows it. Not all systems have dirname.
11715 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
11716 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
11717 # The file is in a subdirectory.
11718 test ! -d "$ac_dir" && mkdir "$ac_dir"
11719 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
11720 # A "../" for each directory in $ac_dir_suffix.
11721 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
11723 ac_dir_suffix= ac_dots=
11726 case "$ac_given_srcdir" in
11728 if test -z "$ac_dots"; then top_srcdir=.
11729 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
11730 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
11731 *) # Relative path.
11732 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
11733 top_srcdir="$ac_dots$ac_given_srcdir" ;;
11737 echo creating "$ac_file"
11739 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
11741 *Makefile*) ac_comsub="1i\\
11742 # $configure_input" ;;
11746 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
11748 s%@configure_input@%$configure_input%g
11749 s%@srcdir@%$srcdir%g
11750 s%@top_srcdir@%$top_srcdir%g
11751 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
11755 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11756 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11758 # ac_d sets the value in "#define NAME VALUE" lines.
11759 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11760 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
11763 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
11764 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11765 ac_uB='\([ ]\)%\1#\2define\3'
11768 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11769 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11770 ac_eB='$%\1#\2define\3'
11774 if test "${CONFIG_HEADERS+set}" != set; then
11776 cat >> $CONFIG_STATUS <<EOF
11777 CONFIG_HEADERS="include/config.h"
11779 cat >> $CONFIG_STATUS <<\EOF
11781 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
11782 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11784 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
11785 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
11786 *) ac_file_in="${ac_file}.in" ;;
11789 echo creating $ac_file
11791 rm -f conftest.frag conftest.in conftest.out
11792 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
11793 cat $ac_file_inputs > conftest.in
11797 # Transform confdefs.h into a sed script conftest.vals that substitutes
11798 # the proper values into config.h.in to produce config.h. And first:
11799 # Protect against being on the right side of a sed subst in config.status.
11800 # Protect against being in an unquoted here document in config.status.
11801 rm -f conftest.vals
11802 cat > conftest.hdr <<\EOF
11805 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
11809 sed -n -f conftest.hdr confdefs.h > conftest.vals
11812 # This sed command replaces #undef with comments. This is necessary, for
11813 # example, in the case of _POSIX_SOURCE, which is predefined and required
11814 # on some systems where configure will not decide to define it.
11815 cat >> conftest.vals <<\EOF
11816 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
11819 # Break up conftest.vals because some shells have a limit on
11820 # the size of here documents, and old seds have small limits too.
11822 rm -f conftest.tail
11825 ac_lines=`grep -c . conftest.vals`
11826 # grep -c gives empty output for an empty file on some AIX systems.
11827 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
11828 # Write a limited-size here document to conftest.frag.
11829 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
11830 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
11832 sed -f conftest.frag conftest.in > conftest.out
11834 mv conftest.out conftest.in
11835 ' >> $CONFIG_STATUS
11836 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
11837 rm -f conftest.vals
11838 mv conftest.tail conftest.vals
11840 rm -f conftest.vals
11842 cat >> $CONFIG_STATUS <<\EOF
11843 rm -f conftest.frag conftest.h
11844 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
11845 cat conftest.in >> conftest.h
11847 if cmp -s $ac_file conftest.h 2>/dev/null; then
11848 echo "$ac_file is unchanged"
11851 # Remove last slash and all that follows it. Not all systems have dirname.
11852 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
11853 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
11854 # The file is in a subdirectory.
11855 test ! -d "$ac_dir" && mkdir "$ac_dir"
11858 mv conftest.h $ac_file
11863 cat >> $CONFIG_STATUS <<EOF
11866 cat >> $CONFIG_STATUS <<\EOF
11867 chmod +x support/fixscript
11871 chmod +x $CONFIG_STATUS
11872 rm -fr confdefs* $ac_clean_files
11873 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
11878 Please check the following files before running make, to ensure that
11879 everything was set correctly.
11888 if $_PATH_PERL -e "exit((stat('$tmpdir'))[2] & 2)" > /dev/null ; then
11893 WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
11895 The temporary directory you have configured is world-writeable. It is
11896 currently set to $tmpdir.
11898 This directory is used by INN for temporary files and should only be
11899 writeable by the news user. INN does not go to great lengths to prevent
11900 symlink attacks and the like because it assumes this directory is not
11901 world-writeable. By configuring INN in this fashion, you may be
11902 introducing a locally exploitable security hole.
11904 It is STRONGLY recommended that you use a temporary directory reserved for
11905 INN's exclusive use, one which is not world-writeable. You can do this
11906 either with --with-tmp-dir or by setting --prefix to something other than