Index: zmailer/ChangeLog diff -u zmailer/ChangeLog:1.573 zmailer/ChangeLog:1.593 --- zmailer/ChangeLog:1.573 Wed Feb 21 21:11:23 2001 +++ zmailer/ChangeLog Tue May 8 15:51:33 2001 @@ -1,3 +1,189 @@ +2001-05-08 Matti Aarnio + + * Makefile.in: + Version 2.99.55-patch1 + + * transports/smtp/smtp.h, transports/smtp/smtp.c: + Reworking (simplifying) DATA phase processing, + and quick-retry handling of socket write/read + failure induced closes. There is limit of three + attempts on any given host for the delivery before + giving up entirely. (Passing the failure to the + scheduler..) + +2001-05-04 Matti Aarnio + + * proto/cf/p-routes.cf: + Wrong function called to pick the flag data.. + + * transports/smtp/smtp.c: + Fixup into pipelined error diagnostics accumulation methodology. + + * proto/newdbprocessor.in: + PERL 5.6.0+ specific syntax altered back to earlier syntax, + which even the lattest perl does support. + + * configure.in: --with-zconfig-noload option to disable + preloading of possibly existing ZCONFIG file contents + into configuration variables. + +2001-04-04 Matti Aarnio + + * transports/smtp/getmxrr.c: + If destination has one MX, and lookup for its A yields + EAI_AGAIN, remember to report SS->mxcount = 0 ... + +2001-04-03 Matti Aarnio + + * proto/forms/delivery: + Changed the URL reference to a "decode key" at + http://www.zmailer.org/delivery-report-decoding.html + + * acconfig.h, configure.in: + When supporting local _getaddrinfo_() function, + have a HAVE_ variable for it too! + + * include/mail.h.in, router/rfc822.c: + Rearranged the _CF_*** defines into the order at which + the router uses them -- while editing documentation, + and needing coherent view at the things. + + * scheduler/threads.c: + When running parallel TAs at same thread, remember to + traverse pointer chain when showing process list.. + (verbose debugging to stderr..) + + * libc/getaddrinfo.c: + Present at the debug vlog file the g->gaih() return code + in octal (it is a bitset, after all) + + * smtpserver/mxverify.c, transports/smtp/getmxrr.c: + Use the HAVE__GETADDRINFO_ flag for local debug version.. + Also done changes for retrieving AF_INET and AF_INET6 + addresses separately, as there seems to be some problems + when trying to use ai_family == 0 ("any goes") form. + +2001-03-08 Matti Aarnio + + * include/mailer.h, router/rfc822.c, router/libdb/header.c, + transports/errormail/errormail.c, scheduler/msgerror.c, + proto/cf/p-routes.cf, router/functions.c: + New envelope header: "errormsg" telling that a message + is internally generated error message; router script has + new function: $(iserrmessage) yielding this flag. + + * include/libc.h, include/libsh.h, include/sysprotos.h, + libc/getopt.c, libsh/builtins.c, libsh/interpret.c, + libsh/main.c, libsh/zmsh.c, router/router.c, router/db.c, + router/functions.c: + Changed all Router/ZMSH internal instances of getopt() to be + zgetopt() with additional capability -- optionset can now + contain doublecolon as an option, IF the ':' is the FIRST + character at the option specifier string... + + * proto/newdbprocessor.in, proto/db/dbases.conf, router/db.c, + proto/cf/p-routes.cf, proto/cf/rrouter.cf, proto/db/routes, + router/libdb/search.h: + Implemented DBlookup routine to be able to pick some options + at runtime, '-:' (with string arg) supplies default lookup + key in case the normal iteration fails. + Cases where the "zmailer newdb" should generate the lookup + wrapper function with user parameter passing. + Also support 'incore' database by compiling from source file + to "db add" statements in the ``relationname.zmsh'' script. + + * router/rfc822.c, router/functions.c, router/prototypes.h: + Streamlined the recognition of the message being coming + from an Error Channel ( not same as "errmessage" !) + + * proto/cf/aliases.cf: + The FOO+TAG needs to cut off at the first '+' char, not + by the last (or whatever the REGEXP code happens to use) + + * libsh/regex.c libsh/regex.h: + Updated this pair to a very recent GLIBC contained version. + + * transports/smtp/smtp.c: + At response wait timeout, do have a GOAL TIME of when + to timeout, not returning to it over and over again.. + + * configure.in, aclocal.m4, config.h.in: + Using experimental autoconf 2.49d mandated couple of + changes... + +2001-03-02 Matti Aarnio + + * README.UPGRADING: + Added a note about the ALTERED default locations + of zmailer.conf and mail.conf files. + + * man/smtpserver.8, proto/smtpserver.conf.in: + Fix up the tcp-wrapper related documentation, and the default + stuff in the smtpserver.conf template. + + * scheduler/threads.c: + Print the gauges of message counts in the queue with SIGNED + values, thus making underflows (negatives) more obvious. + +2001-03-01 Matti Aarnio + + * scheduler/mailq.c: + Embarassing uninitialized array elements used for checking + if loop ends - Tomasz Bojakowski + reported errors. + +2001-02-27 Matti Aarnio + + * transports/smtp/smtp.c: + At smtp_sync() when running in PIPELINING, if the + MAIL FROM has produced 400 or 500 series response, + do fault the RCPT TO responses in every case. + (With EX_UNAVAILABLE for 500-series, not EX_TEMPFAIL.) + + * smtpserver/smtpserver.h, smtpserver/smtpserver.c: + Track Z_read() return errno code more properly to + the 'Session closed w/o QUIT' log report. + Case where this was needed was actually some firewall + product which f**d OUTBOUND SMTP session of raporter... + +2001-02-26 Matti Aarnio + + * utils/listexpand.c, transports/smtp/smtp.c, include/ta.h, + transports/libta/ctlopen.c: + Implemented "EZMLM-alike" listexpander which does + the envelope MAIL FROM address content rewrite at + tne outgoing SMTP session. This is done with 'DSN' + dataentry EZMLM= which is presumed to have valid + stuff to be appended to the localpart of the address + envelope: '+recipient=40address.dom', for example. + + When compared with more classical approach, this does + message routing in system-friendly way, and only changes + the output stage slightly. (At classical case the message + is expanded for each recipient, say 3000 copies of 60 kB + each.. This mechanism is way faster.) + +2001-02-24 Matti Aarnio + + * smtpserver/smtpcmds.c: + Make RCPT TO synchronous router reporting to be a copy + of MAIL FROM one -- report things correctly, that is. + +2001-02-23 Matti Aarnio + + * router/rfc822.c, router/rtsyslog.c: + Added the time to process the message to the router syslog + report. Both 'delay' and 'xdelay' just like at the TA's. + 'delay' is time from message injection to routing completion, + 'xdelay' is the time spent at the routing. + + * utils/listexpand.c, utils/Makefile.in: + Added '+ezlml' option, changed the low limit at + the -bundlesize -- and set its default to 6000! + Also re-learned that 'skip821address()' can only + be used with *valid* addresses, rfc821_path2() + is for possibly invalid input scanning! + 2001-02-21 Matti Aarnio * Makefile.in: @@ -5,7 +191,7 @@ * router/functions.c: At $(listaddresses ..) and $(listexpand ..) functions, - removed the "%1@.." type substitutions with '-l' option. + removed the '"%1"@..' type substitutions with '-l' option. See the comment about '-%' at 'relation' function below. 2001-02-20 Matti Aarnio @@ -52,7 +238,7 @@ * router/functions.c: At $(listaddresses ..) and $(listexpand ..) functions, - support "%1@.." type substitutions with '-l' option. + support '"%1"@..' type substitutions with '-l' option. I am now considering this *wrong* approach, and am doing more sendmailish approach to %N substitutions. @@ -178,11 +364,11 @@ 2001-01-24 Matti Aarnio * lib/selfaddrs.c, transports/smtp/smtp.c: - If resolver support option flag RES_USE_INET6, but + If resolver supports option flag RES_USE_INET6, but system doesn't support IPv6 socket, clear that flag. * libresolv/gethnamaddr.c, libresolv/netdb.h: - When using --with-bundled-libresolv silense things a bit + When using --with-bundled-libresolv silence things a bit as one particular #define may be set before calling this. Also, do explicitely at first lookup /etc/hosts file for host, only then do resolver lookups. @@ -300,9 +486,6 @@ * scheduler/readconfig.c, scheduler/transport.c: setpriority() syscall autoconfig things - * smtpserver/smtpdata.c: - "BDAT 0 LAST" is valid thing! - 2000-12-14 Matti Aarnio * smtpserver/smtpdata.c: @@ -414,7 +597,7 @@ * transports/smtp/smtp.c: Few hours of going over the smtp_sync()'s smtp_nbread() - call, and its surroundings. Iverted its logic, and finally + call, and its surroundings. Inverted its logic, and finally got simple, clean, understandable code. ("I smell Wumpus!") * scheduler/mailq.c: Index: zmailer/Makefile.in diff -u zmailer/Makefile.in:1.59 zmailer/Makefile.in:1.62 --- zmailer/Makefile.in:1.59 Wed Feb 21 21:11:24 2001 +++ zmailer/Makefile.in Tue May 8 15:51:33 2001 @@ -2,7 +2,7 @@ MAJORVERSION = 2 MINORVERSION = 99 -PATCHLEVEL = 55 +PATCHLEVEL = 55-patch1 srcdir = @srcdir@ VPATH = @srcdir@ Index: zmailer/README.UPGRADING diff -u zmailer/README.UPGRADING:1.24 zmailer/README.UPGRADING:1.25 --- zmailer/README.UPGRADING:1.24 Tue Jan 23 01:35:08 2001 +++ zmailer/README.UPGRADING Fri Mar 2 12:03:00 2001 @@ -12,6 +12,19 @@ If you upgrade several steps at once, all the notes in between are important, naturally! + ZMailer-2.99.55: + The way how DEFAULT value for zmailer.conf location + is formed has been changed. Formerly that, and mail.conf + file used to default at /etc/ directory. + Now zmailer.conf will derive its location from + --prefix= + It really should be derived from $MAILSHARE, but the story + is long, and the script is complicated... Do use + ./configure --with-zconfig=PATH to set it explicitely. + + The mail.conf is expected (by default versions of + router.cf) to be $MAILVAR/mail.conf + ZMailer-2.99.55-pre1cvs (22-Jan-2001) Detail change at how variable expansion happens inside the router scripts with aim to allow less opportunities Index: zmailer/TODO diff -u zmailer/TODO:1.169 zmailer/TODO:1.172 --- zmailer/TODO:1.169 Fri Feb 16 03:12:28 2001 +++ zmailer/TODO Tue May 8 15:33:02 2001 @@ -1,8 +1,13 @@ Known/suspected bugs/Missing Features on current ZMailer sources +check: Is router/db.c::db() now consistent at argv1 construction ?? + check: scheduler.conf: command= $channel expansion ?? 2.99.52-pre3 has apparently some problems! +configure.in: + --includedir=.... not working ?? (XosÉ Vázquez ) + Wanted done for 3.0: - router aliases.cf to have similar 'protocols' feature as domain routing has currently @@ -11,6 +16,9 @@ run "manual-expirer" - A work-over of the documentation + +proto/newdbprocessor.in: + Support '-i -t ordered,$MAILVAR/db/realdata.dat -f ... ' post-install: Needs a way to define $(prefix) ! Index: zmailer/acconfig.h diff -u zmailer/acconfig.h:1.10 zmailer/acconfig.h:1.11 --- zmailer/acconfig.h:1.10 Wed Jan 31 18:46:19 2001 +++ zmailer/acconfig.h Tue Apr 3 14:45:35 2001 @@ -31,6 +31,8 @@ routines don't support AF_INET6 ... */ #undef INET6 +#undef HAVE__GETADDRINFO_ + /* socklen_t type can be found by including */ #undef HAVE_SOCKLEN_T Index: zmailer/aclocal.m4 diff -u zmailer/aclocal.m4:1.2 zmailer/aclocal.m4:1.3 --- zmailer/aclocal.m4:1.2 Mon Jul 13 02:26:33 1998 +++ zmailer/aclocal.m4 Thu Mar 8 00:37:58 2001 @@ -157,18 +157,18 @@ fi fi]) -AC_DEFUN(AC_STRUCT_ST_BLKSIZE, -[dnl -# -# Do we have "st_blksize" in the "struct stat" ? -# Defines HAVE_ST_BLKSIZE if we do -# -AC_CACHE_CHECK(for st_blksize in struct stat, ac_cv_struct_stat_st_blksize, [ -AC_TRY_LINK([#include -#include ], [struct stat st; st.st_blksize; ], - AC_DEFINE(HAVE_ST_BLKSIZE) ac_cv_struct_stat_st_blksize=yes) -]) -]) +# AC_DEFUN(AC_STRUCT_ST_BLKSIZE, +# [dnl +# # +# # Do we have "st_blksize" in the "struct stat" ? +# # Defines HAVE_ST_BLKSIZE if we do +# # +# AC_CACHE_CHECK(for st_blksize in struct stat, ac_cv_struct_stat_st_blksize, [ +# AC_TRY_LINK([#include +# #include ], [struct stat st; st.st_blksize; ], +# AC_DEFINE(HAVE_ST_BLKSIZE) ac_cv_struct_stat_st_blksize=yes) +# ]) +# ]) AC_DEFUN(AC_FUNC_GETMNTENT_MORE, [dnl Index: zmailer/config.h.in diff -u zmailer/config.h.in:1.27 zmailer/config.h.in:1.29 --- zmailer/config.h.in:1.27 Wed Jan 31 18:46:19 2001 +++ zmailer/config.h.in Tue Apr 3 14:45:35 2001 @@ -1,134 +1,6 @@ /* config.h.in. Generated automatically from configure.in by autoheader. */ +/* locally added autoconfig test report entries */ -/* Define if on AIX 3. - System headers sometimes define this. - We just want to avoid a redefinition error message. */ -#ifndef _ALL_SOURCE -#undef _ALL_SOURCE -#endif - -/* Define if using alloca.c. */ -#undef C_ALLOCA - -/* Define if the closedir function returns void instead of int. */ -#undef CLOSEDIR_VOID - -/* Define to empty if the keyword does not work. */ -#undef const - -/* Define to one of _getb67, GETB67, getb67 for Cray-2 and Cray-YMP systems. - This function is required for alloca.c support on those systems. */ -#undef CRAY_STACKSEG_END - -/* Define to the type of elements in the array set by `getgroups'. - Usually this is either `int' or `gid_t'. */ -#undef GETGROUPS_T - -/* Define if the `getpgrp' function takes no argument. */ -#undef GETPGRP_VOID - -/* Define to `int' if doesn't define. */ -#undef gid_t - -/* Define if you have alloca, as a function or macro. */ -#undef HAVE_ALLOCA - -/* Define if you have and it should be used (not on Ultrix). */ -#undef HAVE_ALLOCA_H - -/* Define if you don't have vprintf but do have _doprnt. */ -#undef HAVE_DOPRNT - -/* Define if you have the getmntent function. */ -#undef HAVE_GETMNTENT - -/* Define if you have a working `mmap' system call. */ -#undef HAVE_MMAP - -/* Define if your struct stat has st_blksize. */ -#undef HAVE_ST_BLKSIZE - -/* Define if your struct stat has st_blocks. */ -#undef HAVE_ST_BLOCKS - -/* Define if you have the strftime function. */ -#undef HAVE_STRFTIME - -/* Define if you have that is POSIX.1 compatible. */ -#undef HAVE_SYS_WAIT_H - -/* Define if your struct tm has tm_zone. */ -#undef HAVE_TM_ZONE - -/* Define if you don't have tm_zone but do have the external array - tzname. */ -#undef HAVE_TZNAME - -/* Define if you have the vprintf function. */ -#undef HAVE_VPRINTF - -/* Define if you have the wait3 system call. */ -#undef HAVE_WAIT3 - -/* Define as __inline if that's what the C compiler calls it. */ -#undef inline - -/* Define if major, minor, and makedev are declared in . */ -#undef MAJOR_IN_MKDEV - -/* Define if major, minor, and makedev are declared in . */ -#undef MAJOR_IN_SYSMACROS - -/* Define if on MINIX. */ -#undef _MINIX - -/* Define to `int' if doesn't define. */ -#undef mode_t - -/* Define to `long' if doesn't define. */ -#undef off_t - -/* Define if the system does not provide POSIX.1 features except - with this defined. */ -#undef _POSIX_1_SOURCE - -/* Define if you need to in order for stat and other things to work. */ -#undef _POSIX_SOURCE - -/* Define as the return type of signal handlers (int or void). */ -#undef RETSIGTYPE - -/* Define to `unsigned' if doesn't define. */ -#undef size_t - -/* If using the C implementation of alloca, define if you know the - direction of stack growth for your system; otherwise it will be - automatically deduced at run-time. - STACK_DIRECTION > 0 => grows toward higher addresses - STACK_DIRECTION < 0 => grows toward lower addresses - STACK_DIRECTION = 0 => direction of growth unknown - */ -#undef STACK_DIRECTION - -/* Define if you have the ANSI C header files. */ -#undef STDC_HEADERS - -/* Define if `sys_siglist' is declared by . */ -#undef SYS_SIGLIST_DECLARED - -/* Define if you can safely include both and . */ -#undef TIME_WITH_SYS_TIME - -/* Define if your declares struct tm. */ -#undef TM_IN_SYS_TIME - -/* Define to `int' if doesn't define. */ -#undef uid_t - -/* Define if your processor stores words with the most significant - byte first (like Motorola and SPARC, unlike Intel and VAX). */ -#undef WORDS_BIGENDIAN - /* What command was used to configure this setup ? */ #undef CONFIGURE_CMD @@ -160,6 +32,8 @@ routines don't support AF_INET6 ... */ #undef INET6 +#undef HAVE__GETADDRINFO_ + /* socklen_t type can be found by including */ #undef HAVE_SOCKLEN_T @@ -228,6 +102,10 @@ /* NIS (or "YP" for old salts) does exist */ #undef HAVE_YP +/* Want (not) to use TABs in RFC-822 headers to separate header name, and + its value from each other: "From:" */ +#undef RFC822TABS + /* The sprintf() returns a char*, or int ? */ #undef SPRINTF_CHAR @@ -260,7 +138,6 @@ #undef HAVE_SYS_SIGLIST /* */ -#undef HAVE_TCPD_H #undef USE_TCPWRAPPER /* */ @@ -276,6 +153,12 @@ #undef TA_USE_MMAP /* */ +#undef SVR4_elf + +/* */ +#undef SVR4_kvm + +/* */ #undef HAVE_WHOSON_H /* HAVE_OPENSSL -- The system has www.OpenSSL.org software; @@ -296,437 +179,577 @@ /* Defined if resolver's HEADER structure has cd and ad fields */ #undef HAVE_HEADER_CD_AD -/* The number of bytes in a double. */ -#undef SIZEOF_DOUBLE +/* Define if the `closedir' function returns void instead of `int'. */ +#undef CLOSEDIR_VOID -/* The number of bytes in a int. */ -#undef SIZEOF_INT +/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP + systems. This function is required for `alloca.c' support on those systems. + */ +#undef CRAY_STACKSEG_END -/* The number of bytes in a long. */ -#undef SIZEOF_LONG +/* Define if using `alloca.c'. */ +#undef C_ALLOCA -/* The number of bytes in a short. */ -#undef SIZEOF_SHORT +/* Define to the type of elements in the array set by `getgroups'. Usually + this is either `int' or `gid_t'. */ +#undef GETGROUPS_T -/* The number of bytes in a void *. */ -#undef SIZEOF_VOID_P +/* Define if the `getpgrp' function takes no argument. */ +#undef GETPGRP_VOID + +/* Define if you have `alloca', as a function or macro. */ +#undef HAVE_ALLOCA + +/* Define if you have and it should be used (not on Ultrix). */ +#undef HAVE_ALLOCA_H + +/* Define if you have the header file. */ +#undef HAVE_ARPA_INET_H -/* Define if you have the crypt function. */ +/* Define if you have the `crypt' function. */ #undef HAVE_CRYPT -/* Define if you have the endgrent function. */ +/* Define if you have the header file. */ +#undef HAVE_DB1_DB_H + +/* Define if you have the header file. */ +#undef HAVE_DB2_DB_185_H + +/* Define if you have the header file. */ +#undef HAVE_DB2_DB_H + +/* Define if you have the header file. */ +#undef HAVE_DB3_DB_185_H + +/* Define if you have the header file. */ +#undef HAVE_DB3_DB_H + +/* Define if you have the header file. */ +#undef HAVE_DB_185_H + +/* Define if you have the header file. */ +#undef HAVE_DB_H + +/* Define if you have the header file, and it defines `DIR'. */ +#undef HAVE_DIRENT_H + +/* Define if you don't have `vprintf' but do have `_doprnt.' */ +#undef HAVE_DOPRNT + +/* Define if you have the `endgrent' function. */ #undef HAVE_ENDGRENT -/* Define if you have the fchdir function. */ +/* Define if you have the header file. */ +#undef HAVE_ERRNO_H + +/* Define if you have the `fchdir' function. */ #undef HAVE_FCHDIR -/* Define if you have the fchown function. */ +/* Define if you have the `fchown' function. */ #undef HAVE_FCHOWN -/* Define if you have the flock function. */ +/* Define if you have the header file. */ +#undef HAVE_FCNTL_H + +/* Define if you have the `flock' function. */ #undef HAVE_FLOCK -/* Define if you have the fpathconf function. */ +/* Define if you have the `fpathconf' function. */ #undef HAVE_FPATHCONF -/* Define if you have the freeifaddrs function. */ +/* Define if you have the `freeifaddrs' function. */ #undef HAVE_FREEIFADDRS -/* Define if you have the fsync function. */ +/* Define if you have the `fsync' function. */ #undef HAVE_FSYNC -/* Define if you have the ftime function. */ +/* Define if you have the `ftime' function. */ #undef HAVE_FTIME -/* Define if you have the ftruncate function. */ +/* Define if you have the `ftruncate' function. */ #undef HAVE_FTRUNCATE -/* Define if you have the gai_strerror function. */ +/* Define if you have the `gai_strerror' function. */ #undef HAVE_GAI_STRERROR + +/* Define if you have the header file. */ +#undef HAVE_GDBM_H -/* Define if you have the getaddrinfo function. */ +/* Define if you have the `getaddrinfo' function. */ #undef HAVE_GETADDRINFO -/* Define if you have the getcwd function. */ +/* Define if you have the `getcwd' function. */ #undef HAVE_GETCWD -/* Define if you have the getdtablesize function. */ +/* Define if you have the `getdtablesize' function. */ #undef HAVE_GETDTABLESIZE -/* Define if you have the getenv function. */ +/* Define if you have the `getenv' function. */ #undef HAVE_GETENV -/* Define if you have the getgroups function. */ +/* Define if you have the `getgroups' function. */ #undef HAVE_GETGROUPS -/* Define if you have the gethostid function. */ +/* Define if you have the `gethostid' function. */ #undef HAVE_GETHOSTID -/* Define if you have the getifaddrs function. */ +/* Define if you have the `getifaddrs' function. */ #undef HAVE_GETIFADDRS -/* Define if you have the getmntinfo function. */ +/* Define if you have the `getmntent' function. */ +#undef HAVE_GETMNTENT + +/* Define if you have the `getmntinfo' function. */ #undef HAVE_GETMNTINFO -/* Define if you have the getnameinfo function. */ +/* Define if you have the `getnameinfo' function. */ #undef HAVE_GETNAMEINFO -/* Define if you have the getpagesize function. */ +/* Define if you have the `getpagesize' function. */ #undef HAVE_GETPAGESIZE -/* Define if you have the getpgrp function. */ +/* Define if you have the `getpgrp' function. */ #undef HAVE_GETPGRP -/* Define if you have the gettimeofday function. */ +/* Define if you have the `gettimeofday' function. */ #undef HAVE_GETTIMEOFDAY -/* Define if you have the index function. */ +/* Define if you have the header file. */ +#undef HAVE_IFADDRS_H + +/* Define if you have the `index' function. */ #undef HAVE_INDEX -/* Define if you have the inet_ntop function. */ +/* Define if you have the `inet_ntop' function. */ #undef HAVE_INET_NTOP -/* Define if you have the inet_pton function. */ +/* Define if you have the `inet_pton' function. */ #undef HAVE_INET_PTON + +/* Define if you have the header file. */ +#undef HAVE_INTTYPES_H -/* Define if you have the isascii function. */ +/* Define if you have the `isascii' function. */ #undef HAVE_ISASCII -/* Define if you have the lockf function. */ +/* Define if you have the `bsd' library (-lbsd). */ +#undef HAVE_LIBBSD + +/* Define if you have the `ldgc' library (-lldgc). */ +#undef HAVE_LIBLDGC + +/* Define if you have the `ypsec' library (-lypsec). */ +#undef HAVE_LIBYPSEC + +/* Define if you have the header file. */ +#undef HAVE_LIMITS_H + +/* Define if you have the header file. */ +#undef HAVE_LINUX_IN6_H + +/* Define if you have the `lockf' function. */ #undef HAVE_LOCKF -/* Define if you have the lstat function. */ +/* Define if you have the `lstat' function. */ #undef HAVE_LSTAT -/* Define if you have the memchr function. */ +/* Define if you have the header file. */ +#undef HAVE_MAILLOCK_H + +/* Define if you have the `memchr' function. */ #undef HAVE_MEMCHR -/* Define if you have the memcpy function. */ +/* Define if you have the `memcpy' function. */ #undef HAVE_MEMCPY + +/* Define if you have the header file. */ +#undef HAVE_MEMORY_H -/* Define if you have the mkdir function. */ +/* Define if you have the `mkdir' function. */ #undef HAVE_MKDIR -/* Define if you have the mkfifo function. */ +/* Define if you have the `mkfifo' function. */ #undef HAVE_MKFIFO -/* Define if you have the mkstemp function. */ +/* Define if you have the `mkstemp' function. */ #undef HAVE_MKSTEMP -/* Define if you have the mktime function. */ +/* Define if you have the `mktime' function. */ #undef HAVE_MKTIME -/* Define if you have the msgctl function. */ +/* Define if you have a working `mmap' system call. */ +#undef HAVE_MMAP + +/* Define if you have the header file. */ +#undef HAVE_MNTENT_H + +/* Define if you have the header file. */ +#undef HAVE_MNTTAB_H + +/* Define if you have the `msgctl' function. */ #undef HAVE_MSGCTL -/* Define if you have the msgrcv function. */ +/* Define if you have the `msgrcv' function. */ #undef HAVE_MSGRCV -/* Define if you have the msgsnd function. */ +/* Define if you have the `msgsnd' function. */ #undef HAVE_MSGSND + +/* Define if you have the header file. */ +#undef HAVE_NDBM_H + +/* Define if you have the header file, and it defines `DIR'. */ +#undef HAVE_NDIR_H + +/* Define if you have the header file. */ +#undef HAVE_NETDB_H + +/* Define if you have the header file. */ +#undef HAVE_NETINET6_IN6_H + +/* Define if you have the header file. */ +#undef HAVE_NETINET_IN6_H + +/* Define if you have the header file. */ +#undef HAVE_NETINET_IN_H + +/* Define if you have the header file. */ +#undef HAVE_PROTOCOLS_RWHOD_H -/* Define if you have the putenv function. */ +/* Define if you have the `putenv' function. */ #undef HAVE_PUTENV -/* Define if you have the rename function. */ +/* Define if you have the `rename' function. */ #undef HAVE_RENAME -/* Define if you have the rindex function. */ +/* Define if you have the `rindex' function. */ #undef HAVE_RINDEX -/* Define if you have the rmdir function. */ +/* Define if you have the `rmdir' function. */ #undef HAVE_RMDIR -/* Define if you have the select function. */ +/* Define if you have the header file. */ +#undef HAVE_SDBM_H + +/* Define if you have the header file. */ +#undef HAVE_SECURITY_PAM_APPL_H + +/* Define if you have the `select' function. */ #undef HAVE_SELECT + +/* Define if you have the header file. */ +#undef HAVE_SELECT_H -/* Define if you have the setenv function. */ +/* Define if you have the `setenv' function. */ #undef HAVE_SETENV -/* Define if you have the seteuid function. */ +/* Define if you have the `seteuid' function. */ #undef HAVE_SETEUID -/* Define if you have the setgroups function. */ +/* Define if you have the `setgroups' function. */ #undef HAVE_SETGROUPS -/* Define if you have the setpriority function. */ +/* Define if you have the `setpriority' function. */ #undef HAVE_SETPRIORITY -/* Define if you have the setregid function. */ +/* Define if you have the `setregid' function. */ #undef HAVE_SETREGID -/* Define if you have the setreuid function. */ +/* Define if you have the `setreuid' function. */ #undef HAVE_SETREUID -/* Define if you have the setrlimit function. */ +/* Define if you have the `setrlimit' function. */ #undef HAVE_SETRLIMIT -/* Define if you have the setsid function. */ +/* Define if you have the `setsid' function. */ #undef HAVE_SETSID -/* Define if you have the setuid function. */ +/* Define if you have the `setuid' function. */ #undef HAVE_SETUID -/* Define if you have the setvbuf function. */ +/* Define if you have the `setvbuf' function. */ #undef HAVE_SETVBUF -/* Define if you have the sigpending function. */ +/* Define if you have the header file. */ +#undef HAVE_SHADOW_H + +/* Define if you have the `sigpending' function. */ #undef HAVE_SIGPENDING -/* Define if you have the sigprocmask function. */ +/* Define if you have the `sigprocmask' function. */ #undef HAVE_SIGPROCMASK -/* Define if you have the sigsuspend function. */ +/* Define if you have the `sigsuspend' function. */ #undef HAVE_SIGSUSPEND -/* Define if you have the snprintf function. */ +/* Define if you have the `snprintf' function. */ #undef HAVE_SNPRINTF -/* Define if you have the socket function. */ +/* Define if you have the `socket' function. */ #undef HAVE_SOCKET -/* Define if you have the socketpair function. */ +/* Define if you have the `socketpair' function. */ #undef HAVE_SOCKETPAIR -/* Define if you have the statvfs function. */ +/* Define if you have the `statvfs' function. */ #undef HAVE_STATVFS -/* Define if you have the strchr function. */ +/* Define if you have the header file. */ +#undef HAVE_STDARG_H + +/* Define if you have the header file. */ +#undef HAVE_STDLIB_H + +/* Define if you have the `strchr' function. */ #undef HAVE_STRCHR -/* Define if you have the strcpy function. */ +/* Define if you have the `strcpy' function. */ #undef HAVE_STRCPY -/* Define if you have the strdup function. */ +/* Define if you have the `strdup' function. */ #undef HAVE_STRDUP -/* Define if you have the strerror function. */ +/* Define if you have the `strerror' function. */ #undef HAVE_STRERROR + +/* Define if you have the `strftime' function. */ +#undef HAVE_STRFTIME + +/* Define if you have the header file. */ +#undef HAVE_STRINGS_H + +/* Define if you have the header file. */ +#undef HAVE_STRING_H -/* Define if you have the strrchr function. */ +/* Define if you have the `strrchr' function. */ #undef HAVE_STRRCHR -/* Define if you have the strsignal function. */ +/* Define if you have the `strsignal' function. */ #undef HAVE_STRSIGNAL -/* Define if you have the strstr function. */ +/* Define if you have the `strstr' function. */ #undef HAVE_STRSTR -/* Define if you have the strtoul function. */ +/* Define if you have the `strtoul' function. */ #undef HAVE_STRTOUL + +/* Define if `tm_zone' is member of `struct tm'. */ +#undef HAVE_STRUCT_TM_TM_ZONE -/* Define if you have the sysconf function. */ +/* Define if you have the `sysconf' function. */ #undef HAVE_SYSCONF -/* Define if you have the syslog function. */ +/* Define if you have the `syslog' function. */ #undef HAVE_SYSLOG - -/* Define if you have the unsetenv function. */ -#undef HAVE_UNSETENV - -/* Define if you have the utime function. */ -#undef HAVE_UTIME - -/* Define if you have the utimes function. */ -#undef HAVE_UTIMES -/* Define if you have the vsnprintf function. */ -#undef HAVE_VSNPRINTF - -/* Define if you have the vsprintf function. */ -#undef HAVE_VSPRINTF +/* Define if you have the header file. */ +#undef HAVE_SYSLOG_H -/* Define if you have the wait4 function. */ -#undef HAVE_WAIT4 +/* Define if you have the header file, and it defines `DIR'. */ +#undef HAVE_SYS_DIR_H -/* Define if you have the waitpid function. */ -#undef HAVE_WAITPID +/* Define if you have the header file. */ +#undef HAVE_SYS_FILSYS_H -/* Define if you have the header file. */ -#undef HAVE__LOCAL_INCLUDE_WHOSON_H +/* Define if you have the header file. */ +#undef HAVE_SYS_FSTYP_H -/* Define if you have the header file. */ -#undef HAVE__OPT_INCLUDE_WHOSON_H +/* Define if you have the header file. */ +#undef HAVE_SYS_FS_TYPES_H -/* Define if you have the header file. */ -#undef HAVE__OPT_LOCAL_INCLUDE_WHOSON_H +/* Define if you have the header file. */ +#undef HAVE_SYS_IPC_H -/* Define if you have the header file. */ -#undef HAVE__USR_LOCAL_INCLUDE_WHOSON_H +/* Define if you have the header file. */ +#undef HAVE_SYS_MOUNT_H -/* Define if you have the header file. */ -#undef HAVE_ARPA_INET_H +/* Define if you have the header file. */ +#undef HAVE_SYS_MSG_H -/* Define if you have the header file. */ -#undef HAVE_DB_H +/* Define if you have the header file, and it defines `DIR'. */ +#undef HAVE_SYS_NDIR_H -/* Define if you have the header file. */ -#undef HAVE_DB1_DB_H +/* Define if you have the header file. */ +#undef HAVE_SYS_PARAM_H -/* Define if you have the header file. */ -#undef HAVE_DB2_DB_H +/* Define if you have the header file. */ +#undef HAVE_SYS_RESOURCE_H -/* Define if you have the header file. */ -#undef HAVE_DB2_DB_185_H +/* Define if you have the header file. */ +#undef HAVE_SYS_SELECT_H -/* Define if you have the header file. */ -#undef HAVE_DB3_DB_H +/* Define if you have the header file. */ +#undef HAVE_SYS_SOCKET_H -/* Define if you have the header file. */ -#undef HAVE_DB3_DB_185_H +/* Define if you have the header file. */ +#undef HAVE_SYS_STATFS_H -/* Define if you have the header file. */ -#undef HAVE_DB_185_H +/* Define if you have the header file. */ +#undef HAVE_SYS_STATVFS_H -/* Define if you have the header file. */ -#undef HAVE_DIRENT_H +/* Define if you have the header file. */ +#undef HAVE_SYS_TIME_H -/* Define if you have the header file. */ -#undef HAVE_ERRNO_H +/* Define if you have the header file. */ +#undef HAVE_SYS_UN_H -/* Define if you have the header file. */ -#undef HAVE_FCNTL_H +/* Define if you have the header file. */ +#undef HAVE_SYS_UTSNAME_H -/* Define if you have the header file. */ -#undef HAVE_GDBM_H +/* Define if you have the header file. */ +#undef HAVE_SYS_VFS_H -/* Define if you have the header file. */ -#undef HAVE_IFADDRS_H +/* Define if you have that is POSIX.1 compatible. */ +#undef HAVE_SYS_WAIT_H -/* Define if you have the header file. */ -#undef HAVE_LIMITS_H +/* Define if you have the header file. */ +#undef HAVE_TCPD_H -/* Define if you have the header file. */ -#undef HAVE_LINUX_IN6_H +/* Define if your `struct tm' has `tm_zone'. Deprecated, use + `HAVE_STRUCT_TM_TM_ZONE' instead. */ +#undef HAVE_TM_ZONE -/* Define if you have the header file. */ -#undef HAVE_MAILLOCK_H +/* Define if you don't have `tm_zone' but do have the external array `tzname'. + */ +#undef HAVE_TZNAME -/* Define if you have the header file. */ -#undef HAVE_MNTENT_H +/* Define if you have the header file. */ +#undef HAVE_UNISTD_H -/* Define if you have the header file. */ -#undef HAVE_MNTTAB_H +/* Define if you have the `unsetenv' function. */ +#undef HAVE_UNSETENV -/* Define if you have the header file. */ -#undef HAVE_NDBM_H +/* Define if you have the `utime' function. */ +#undef HAVE_UTIME -/* Define if you have the header file. */ -#undef HAVE_NDIR_H +/* Define if you have the `utimes' function. */ +#undef HAVE_UTIMES -/* Define if you have the header file. */ -#undef HAVE_NETDB_H +/* Define if you have the header file. */ +#undef HAVE_UTIME_H -/* Define if you have the header file. */ -#undef HAVE_NETINET_IN_H +/* Define if you have the header file. */ +#undef HAVE_VARARGS_H -/* Define if you have the header file. */ -#undef HAVE_NETINET_IN6_H +/* Define if you have the `vprintf' function. */ +#undef HAVE_VPRINTF -/* Define if you have the header file. */ -#undef HAVE_NETINET6_IN6_H +/* Define if you have the `vsnprintf' function. */ +#undef HAVE_VSNPRINTF -/* Define if you have the header file. */ -#undef HAVE_PROTOCOLS_RWHOD_H +/* Define if you have the `vsprintf' function. */ +#undef HAVE_VSPRINTF -/* Define if you have the header file. */ -#undef HAVE_SDBM_H +/* Define if you have the `wait3' system call. */ +#undef HAVE_WAIT3 -/* Define if you have the header file. */ -#undef HAVE_SECURITY_PAM_APPL_H +/* Define if you have the `wait4' function. */ +#undef HAVE_WAIT4 -/* Define if you have the header file. */ -#undef HAVE_SELECT_H +/* Define if you have the `waitpid' function. */ +#undef HAVE_WAITPID -/* Define if you have the header file. */ -#undef HAVE_SHADOW_H +/* Define if you have the header file. */ +#undef HAVE_WHOSON_H -/* Define if you have the header file. */ -#undef HAVE_STDARG_H +/* Define if you have the header file. */ +#undef HAVE__LOCAL_INCLUDE_WHOSON_H -/* Define if you have the header file. */ -#undef HAVE_STDLIB_H +/* Define if you have the header file. */ +#undef HAVE__OPT_INCLUDE_WHOSON_H -/* Define if you have the header file. */ -#undef HAVE_STRING_H +/* Define if you have the header file. */ +#undef HAVE__OPT_LOCAL_INCLUDE_WHOSON_H -/* Define if you have the header file. */ -#undef HAVE_SYS_DIR_H +/* Define if you have the header file. */ +#undef HAVE__USR_LOCAL_INCLUDE_WHOSON_H -/* Define if you have the header file. */ -#undef HAVE_SYS_FILSYS_H +/* Define if `major', `minor', and `makedev' are declared in . */ +#undef MAJOR_IN_MKDEV -/* Define if you have the header file. */ -#undef HAVE_SYS_FS_TYPES_H +/* Define if `major', `minor', and `makedev' are declared in . */ +#undef MAJOR_IN_SYSMACROS -/* Define if you have the header file. */ -#undef HAVE_SYS_FSTYP_H +/* Define as the return type of signal handlers (`int' or `void'). */ +#undef RETSIGTYPE -/* Define if you have the header file. */ -#undef HAVE_SYS_IPC_H +/* The size of a `double', as computed by sizeof. */ +#undef SIZEOF_DOUBLE -/* Define if you have the header file. */ -#undef HAVE_SYS_MOUNT_H +/* The size of a `int', as computed by sizeof. */ +#undef SIZEOF_INT -/* Define if you have the header file. */ -#undef HAVE_SYS_MSG_H +/* The size of a `long', as computed by sizeof. */ +#undef SIZEOF_LONG -/* Define if you have the header file. */ -#undef HAVE_SYS_NDIR_H +/* The size of a `short', as computed by sizeof. */ +#undef SIZEOF_SHORT -/* Define if you have the header file. */ -#undef HAVE_SYS_PARAM_H +/* The size of a `void *', as computed by sizeof. */ +#undef SIZEOF_VOID_P -/* Define if you have the header file. */ -#undef HAVE_SYS_RESOURCE_H +/* If using the C implementation of alloca, define if you know the + direction of stack growth for your system; otherwise it will be + automatically deduced at run-time. + STACK_DIRECTION > 0 => grows toward higher addresses + STACK_DIRECTION < 0 => grows toward lower addresses + STACK_DIRECTION = 0 => direction of growth unknown */ +#undef STACK_DIRECTION -/* Define if you have the header file. */ -#undef HAVE_SYS_SELECT_H +/* Define if you have the ANSI C header files. */ +#undef STDC_HEADERS -/* Define if you have the header file. */ -#undef HAVE_SYS_SOCKET_H +/* Define if `sys_siglist' is declared by or . */ +#undef SYS_SIGLIST_DECLARED -/* Define if you have the header file. */ -#undef HAVE_SYS_STATFS_H +/* Define if you can safely include both and . */ +#undef TIME_WITH_SYS_TIME -/* Define if you have the header file. */ -#undef HAVE_SYS_STATVFS_H +/* Define if your declares `struct tm'. */ +#undef TM_IN_SYS_TIME -/* Define if you have the header file. */ -#undef HAVE_SYS_TIME_H +/* Define if your processor stores words with the most significant byte first + (like Motorola and SPARC, unlike Intel and VAX). */ +#undef WORDS_BIGENDIAN -/* Define if you have the header file. */ -#undef HAVE_SYS_UN_H +/* Define if on AIX 3. + System headers sometimes define this. + We just want to avoid a redefinition error message. */ +#ifndef _ALL_SOURCE +# undef _ALL_SOURCE +#endif -/* Define if you have the header file. */ -#undef HAVE_SYS_UTSNAME_H +/* Define if on MINIX. */ +#undef _MINIX -/* Define if you have the header file. */ -#undef HAVE_SYS_VFS_H +/* Define if the system does not provide POSIX.1 features except with this + defined. */ +#undef _POSIX_1_SOURCE -/* Define if you have the header file. */ -#undef HAVE_SYSLOG_H +/* Define if you need to in order for stat and other things to work. */ +#undef _POSIX_SOURCE -/* Define if you have the header file. */ -#undef HAVE_TCPD_H +/* Define to empty if `const' does not conform to ANSI C. */ +#undef const -/* Define if you have the header file. */ -#undef HAVE_UNISTD_H +/* Define to `int' if doesn't define. */ +#undef gid_t -/* Define if you have the header file. */ -#undef HAVE_UTIME_H +/* Define as `__inline' if that's what the C compiler calls it, or to nothing + if it is not supported. */ +#undef inline -/* Define if you have the header file. */ -#undef HAVE_VARARGS_H +/* Define to `unsigned long' if does not define. */ +#undef ino_t -/* Define if you have the header file. */ -#undef HAVE_WHOSON_H +/* Define to `int' if does not define. */ +#undef mode_t -/* Define if you have the bsd library (-lbsd). */ -#undef HAVE_LIBBSD +/* Define to `long' if does not define. */ +#undef off_t -/* Define if you have the ldgc library (-lldgc). */ -#undef HAVE_LIBLDGC +/* Define to `unsigned' if does not define. */ +#undef size_t -/* Define if you have the ypsec library (-lypsec). */ -#undef HAVE_LIBYPSEC +/* Define to `int' if doesn't define. */ +#undef uid_t Index: zmailer/configure diff -u zmailer/configure:1.101 zmailer/configure:1.104 --- zmailer/configure:1.101 Fri Feb 16 03:16:40 2001 +++ zmailer/configure Fri May 4 14:07:40 2001 @@ -1,132 +1,195 @@ #! /bin/sh +# Guess values for system-dependent variables and create Makefiles. +# Generated by Autoconf 2.49d. +# +# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 +# Free Software Foundation, Inc. +# This configure script is free software; the Free Software Foundation +# gives unlimited permission to copy, distribute and modify it. +# Be Bourne compatible +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then + emulate sh + NULLCMD=: +elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then + set -o posix +fi + +if expr a : '\(a\)' >/dev/null 2>&1; then + as_expr=expr +else + as_expr=false +fi + +rm -f conf$$ conf$$.exe conf$$.file +echo >conf$$.file +if ln -s conf$$.file conf$$ 2>/dev/null; then + # We could just check for DJGPP; but this test a) works b) is more generic + # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). + if test -f conf$$.exe; then + # Don't use ln at all; we don't have any links + as_ln_s='cp -p' + else + as_ln_s='ln -s' + fi +elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln +else + as_ln_s='cp -p' +fi +rm -f conf$$ conf$$.exe conf$$.file +as_executable_p="test -f" +# Support unset when possible. +if (FOO=FOO; unset FOO) >/dev/null 2>&1; then + as_unset=unset +else + as_unset=false +fi +# NLS nuisances. +$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } +$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } +$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } +$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } +$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } +$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } +$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } +$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } + +# IFS +# We need space, tab and new line, in precisely that order. +as_nl=' +' +IFS=" $as_nl" + +# CDPATH. +$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } + +# Name of the host. +# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, +# so uname gets run too. +ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` +# Name of the executable. +as_me=`echo "$0" | sed 's,.*/,,'` -# Guess values for system-dependent variables and create Makefiles. -# Generated automatically using autoconf version 2.13 -# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. -# -# This configure script is free software; the Free Software Foundation -# gives unlimited permission to copy, distribute and modify it. +cat >config.log < $0 $@ + +EOF +{ +cat <<_ASUNAME +## ---------- ## +## Platform. ## +## ---------- ## + +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` +uname -m = `(uname -m) 2>/dev/null || echo unknown` +uname -r = `(uname -r) 2>/dev/null || echo unknown` +uname -s = `(uname -s) 2>/dev/null || echo unknown` +uname -v = `(uname -v) 2>/dev/null || echo unknown` + +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` + +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` +hostinfo = `(hostinfo) 2>/dev/null || echo unknown` +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` + +PATH = $PATH + +_ASUNAME +} >>config.log + +cat >>config.log <>config.log +exec 6>&1 -# Defaults: -ac_help= +# +# Initializations. +# ac_default_prefix=/usr/local -# Any additions from configure.in: -ac_help="$ac_help - --with-gcc use gcc for compilation" -ac_help="$ac_help - --with-generic-include=\"-I/...\" - Include option for local overriders" -ac_help="$ac_help - --with-generic-library=\"-L/...\" - Library directory option for local overriders" -ac_help="$ac_help - --with-zconfig=PATH define the path and name of the zmailer.conf -file - Set ZCONFIG environment, and then use --with-zconfig=no - to disable usage of existing zmailer.conf -file to - load existing defaults. " -ac_help="$ac_help - --with-mailbox=DIR define the path of the mailbox directory" -ac_help="$ac_help - --with-postoffice=DIR define the path of the postoffice directory" -ac_help="$ac_help - --with-mailshare=DIR define the path of the mailshare directory" -ac_help="$ac_help - --with-mailvar=DIR define the path of the mailvar directory" -ac_help="$ac_help - --with-mailbin=DIR define the path of the mailbin directory" -ac_help="$ac_help - --with-logdir=DIR define the path of the log directory" -ac_help="$ac_help - --with-routeuser-is-abnormal={yes,no} define if your system doesn't get - homedirs for users from getpwnam() call in router. - Giving here 'no' will produce errors at routing for - nonexistent users, not waiting until doing delivery - attempt at mailbox." -ac_help="$ac_help - --with-nntpserver=HOST define the domain name of the nntp server" -ac_help="$ac_help - --with-sendmailpath=PATH The location of the 'sendmail'" -ac_help="$ac_help - --with-rmailpath=PATH The location of 'rmail'" -ac_help="$ac_help - --with-vacationpath=PATH The location of the 'vacation'" -ac_help="$ac_help - --with-selfaddresses=NAME,NAME Comma separated list of names" -ac_help="$ac_help - --with-system-malloc use system malloc instead of our own" -ac_help="$ac_help - --with-libmalloc=LIBNAME define the name of the malloc library - possible values: malloc, malloc_d, system (default)" -ac_help="$ac_help - --with-yp Have YP/NIS in system, and want to use it" -ac_help="$ac_help - --with-yp-lib='-L... -lyp' Linker arguments for the YP/NIS in the router" -ac_help="$ac_help - --with-ldap-prefix=/usr Prefix of UMich/NetScape LDAP includes, and library - the directories are PREFIX/include/ and PREFIX/lib/" -ac_help="$ac_help - --with-ldap-include-dir=/.. Directory of UMich/NetScape LDAP includes" -ac_help="$ac_help - --with-ldap-library-dir=/... Directory of UMich/NetScape LDAP libraries" -ac_help="$ac_help - --disable-pam Disable PAM(3) facility autoconfig " -ac_help="$ac_help - --with-ipv6 Have IPv6 in system, and want to use it" -ac_help="$ac_help - --without-fsync Do not use fsync() even if you have it" -ac_help="$ac_help - --without-maillock Do not use maillock() even if you have it" -ac_help="$ac_help - --with-bundled-libresolv Use bundled libresolv source" -ac_help="$ac_help - --with-ipv6-replacement-libc If system has broken getaddrinfo() and friends" -ac_help="$ac_help - --without-rfc822-tabs Turn off the TABs from the rewritten headers " -ac_help="$ac_help - --with-tcp-wrappers[=DIRPATH] Where the TCP-WRAPPERS can be found" -ac_help="$ac_help - --with-privatembox Use 'private/' in a part of mailbox compilations" -ac_help="$ac_help - --with-mboxquotacheck Use 'CHECK_MB_SIZE' define in mailbox program. - Linking is presumed to use --with-generic-lib=DIR" -ac_help="$ac_help - --with-privateauth Use 'private/' in a part of smtpserver compilations" -ac_help="$ac_help - --with-whoson[=DIRPATH] Where the WHOSON libs can be found" -ac_help="$ac_help - --with-ta-mmap TA's to use MMAP for reading the message bodies" -ac_help="$ac_help - --with-getpwnam-library=\"-L.. -l..\" - Linking options for non-std getpwnam() libraries" -ac_help="$ac_help - --with-openssl-prefix=/dir/path (defines both include and lib)" -ac_help="$ac_help - --with-openssl-include=/dir/incl/path" -ac_help="$ac_help - --with-openssl-lib=/dir/lib/path" -ac_help="$ac_help - --with-openssl Search for, and use OpenSSL, if it can be found" -ac_help="$ac_help - --enable-translation=CHS Enable translation of -ncoming text messages. - Assumes --generic-library=\"... -lmcs ...\" and - proper --generic-include. - (See smtpserver/README.translation)" +cross_compiling=no +subdirs= +MFLAGS= MAKEFLAGS= +SHELL=${CONFIG_SHELL-/bin/sh} + +# Maximum number of lines to put in a shell here document. +# This variable seems obsolete. It should probably be removed, and +# only ac_max_sed_lines should be used. +: ${ac_max_here_lines=38} + +# Avoid depending upon Character Ranges. +ac_cr_az='abcdefghijklmnopqrstuvwxyz' +ac_cr_AZ='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +ac_cr_09='0123456789' +ac_cr_alnum=$ac_cr_az$ac_cr_AZ$ac_cr_09 + +# Sed expression to map a string onto a valid sh and CPP variable names. +ac_tr_sh="sed y%*+%pp%;s%[^_$ac_cr_alnum]%_%g" +ac_tr_cpp="sed y%*$ac_cr_az%P$ac_cr_AZ%;s%[^_$ac_cr_alnum]%_%g" + +ac_unique_file="router/router.c" +# Factoring default headers for most tests. +ac_includes_default="\ +#include +#include +#include +#if STDC_HEADERS +# include +# include +#else +# if HAVE_STDLIB_H +# include +# endif +#endif +#if HAVE_STRING_H +# if !STDC_HEADERS && HAVE_MEMORY_H +# include +# endif +# include +#else +# if HAVE_STRINGS_H +# include +# endif +#endif +#if HAVE_INTTYPES_H +# include +#endif +#if HAVE_UNISTD_H +# include +#endif" # Initialize some variables set by options. +ac_init_help= +ac_init_version=false # The variables have the same names as the options, with # dashes changed to underlines. -build=NONE -cache_file=./config.cache +cache_file=/dev/null exec_prefix=NONE -host=NONE no_create= -nonopt=NONE no_recursion= prefix=NONE program_prefix=NONE @@ -135,10 +198,15 @@ silent= site= srcdir= -target=NONE verbose= x_includes=NONE x_libraries=NONE + +# Installation directory options. +# These are left unexpanded so users can "make install exec_prefix=/foo" +# and all the variables that are supposed to be based on exec_prefix +# by default will actually change. +# Use braces instead of parens because sh, perl, etc. also accept them. bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' libexecdir='${exec_prefix}/libexec' @@ -152,17 +220,16 @@ infodir='${prefix}/info' mandir='${prefix}/man' -# Initialize some other variables. -subdirs= -MFLAGS= MAKEFLAGS= -SHELL=${CONFIG_SHELL-/bin/sh} -# Maximum number of lines to put in a shell here document. -ac_max_here_lines=12 +# Identity of this package. +PACKAGE_NAME= +PACKAGE_TARNAME= +PACKAGE_VERSION= +PACKAGE_STRING= +PACKAGE_BUGREPORT= ac_prev= for ac_option do - # If the previous option needs an argument, assign it. if test -n "$ac_prev"; then eval "$ac_prev=\$ac_option" @@ -170,59 +237,61 @@ continue fi - case "$ac_option" in - -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; - *) ac_optarg= ;; - esac + ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` # Accept the important Cygnus configure options, so we can diagnose typos. - case "$ac_option" in + case $ac_option in -bindir | --bindir | --bindi | --bind | --bin | --bi) ac_prev=bindir ;; -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) - bindir="$ac_optarg" ;; + bindir=$ac_optarg ;; -build | --build | --buil | --bui | --bu) - ac_prev=build ;; + ac_prev=build_alias ;; -build=* | --build=* | --buil=* | --bui=* | --bu=*) - build="$ac_optarg" ;; + build_alias=$ac_optarg ;; -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) - cache_file="$ac_optarg" ;; + cache_file=$ac_optarg ;; + --config-cache | -C) + cache_file=config.cache ;; + -datadir | --datadir | --datadi | --datad | --data | --dat | --da) ac_prev=datadir ;; -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | --da=*) - datadir="$ac_optarg" ;; + datadir=$ac_optarg ;; -disable-* | --disable-*) - ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` + ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. - if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then - { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } - fi - ac_feature=`echo $ac_feature| sed 's/-/_/g'` - eval "enable_${ac_feature}=no" ;; + expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null && + { { echo "$as_me:276: error: invalid feature name: $ac_feature" >&5 +echo "$as_me: error: invalid feature name: $ac_feature" >&2;} + { (exit 1); exit 1; }; } + ac_feature=`echo $ac_feature | sed 's/-/_/g'` + eval "enable_$ac_feature=no" ;; -enable-* | --enable-*) - ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` + ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. - if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then - { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } - fi - ac_feature=`echo $ac_feature| sed 's/-/_/g'` - case "$ac_option" in - *=*) ;; + expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null && + { { echo "$as_me:286: error: invalid feature name: $ac_feature" >&5 +echo "$as_me: error: invalid feature name: $ac_feature" >&2;} + { (exit 1); exit 1; }; } + ac_feature=`echo $ac_feature | sed 's/-/_/g'` + case $ac_option in + *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; *) ac_optarg=yes ;; esac - eval "enable_${ac_feature}='$ac_optarg'" ;; + eval "enable_$ac_feature='$ac_optarg'" ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ @@ -231,95 +300,47 @@ -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | --exec=* | --exe=* | --ex=*) - exec_prefix="$ac_optarg" ;; + exec_prefix=$ac_optarg ;; -gas | --gas | --ga | --g) # Obsolete; use --with-gas. with_gas=yes ;; - -help | --help | --hel | --he) - # Omit some internal or obsolete options to make the list less imposing. - # This message is too long to be a string in the A/UX 3.1 sh. - cat << EOF -Usage: configure [options] [host] -Options: [defaults in brackets after descriptions] -Configuration: - --cache-file=FILE cache test results in FILE - --help print this message - --no-create do not create output files - --quiet, --silent do not print \`checking...' messages - --version print the version of autoconf that created configure -Directory and file names: - --prefix=PREFIX install architecture-independent files in PREFIX - [$ac_default_prefix] - --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX - [same as prefix] - --bindir=DIR user executables in DIR [EPREFIX/bin] - --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] - --libexecdir=DIR program executables in DIR [EPREFIX/libexec] - --datadir=DIR read-only architecture-independent data in DIR - [PREFIX/share] - --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] - --sharedstatedir=DIR modifiable architecture-independent data in DIR - [PREFIX/com] - --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] - --libdir=DIR object code libraries in DIR [EPREFIX/lib] - --includedir=DIR C header files in DIR [PREFIX/include] - --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] - --infodir=DIR info documentation in DIR [PREFIX/info] - --mandir=DIR man documentation in DIR [PREFIX/man] - --srcdir=DIR find the sources in DIR [configure dir or ..] - --program-prefix=PREFIX prepend PREFIX to installed program names - --program-suffix=SUFFIX append SUFFIX to installed program names - --program-transform-name=PROGRAM - run sed PROGRAM on installed program names -EOF - cat << EOF -Host type: - --build=BUILD configure for building on BUILD [BUILD=HOST] - --host=HOST configure for HOST [guessed] - --target=TARGET configure for TARGET [TARGET=HOST] -Features and packages: - --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) - --enable-FEATURE[=ARG] include FEATURE [ARG=yes] - --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] - --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) - --x-includes=DIR X include files are in DIR - --x-libraries=DIR X library files are in DIR -EOF - if test -n "$ac_help"; then - echo "--enable and --with options recognized:$ac_help" - fi - exit 0 ;; + -help | --help | --hel | --he | -h) + ac_init_help=long ;; + -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) + ac_init_help=recursive ;; + -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) + ac_init_help=short ;; -host | --host | --hos | --ho) - ac_prev=host ;; + ac_prev=host_alias ;; -host=* | --host=* | --hos=* | --ho=*) - host="$ac_optarg" ;; + host_alias=$ac_optarg ;; -includedir | --includedir | --includedi | --included | --include \ | --includ | --inclu | --incl | --inc) ac_prev=includedir ;; -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | --includ=* | --inclu=* | --incl=* | --inc=*) - includedir="$ac_optarg" ;; + includedir=$ac_optarg ;; -infodir | --infodir | --infodi | --infod | --info | --inf) ac_prev=infodir ;; -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) - infodir="$ac_optarg" ;; + infodir=$ac_optarg ;; -libdir | --libdir | --libdi | --libd) ac_prev=libdir ;; -libdir=* | --libdir=* | --libdi=* | --libd=*) - libdir="$ac_optarg" ;; + libdir=$ac_optarg ;; -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | --libexe | --libex | --libe) ac_prev=libexecdir ;; -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | --libexe=* | --libex=* | --libe=*) - libexecdir="$ac_optarg" ;; + libexecdir=$ac_optarg ;; -localstatedir | --localstatedir | --localstatedi | --localstated \ | --localstate | --localstat | --localsta | --localst \ @@ -328,12 +349,12 @@ -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) - localstatedir="$ac_optarg" ;; + localstatedir=$ac_optarg ;; -mandir | --mandir | --mandi | --mand | --man | --ma | --m) ac_prev=mandir ;; -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) - mandir="$ac_optarg" ;; + mandir=$ac_optarg ;; -nfp | --nfp | --nf) # Obsolete; use --without-fp. @@ -354,26 +375,26 @@ -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) - oldincludedir="$ac_optarg" ;; + oldincludedir=$ac_optarg ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) - prefix="$ac_optarg" ;; + prefix=$ac_optarg ;; -program-prefix | --program-prefix | --program-prefi | --program-pref \ | --program-pre | --program-pr | --program-p) ac_prev=program_prefix ;; -program-prefix=* | --program-prefix=* | --program-prefi=* \ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) - program_prefix="$ac_optarg" ;; + program_prefix=$ac_optarg ;; -program-suffix | --program-suffix | --program-suffi | --program-suff \ | --program-suf | --program-su | --program-s) ac_prev=program_suffix ;; -program-suffix=* | --program-suffix=* | --program-suffi=* \ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) - program_suffix="$ac_optarg" ;; + program_suffix=$ac_optarg ;; -program-transform-name | --program-transform-name \ | --program-transform-nam | --program-transform-na \ @@ -390,7 +411,7 @@ | --program-transfo=* | --program-transf=* \ | --program-trans=* | --program-tran=* \ | --progr-tra=* | --program-tr=* | --program-t=*) - program_transform_name="$ac_optarg" ;; + program_transform_name=$ac_optarg ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) @@ -400,7 +421,7 @@ ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | --sbi=* | --sb=*) - sbindir="$ac_optarg" ;; + sbindir=$ac_optarg ;; -sharedstatedir | --sharedstatedir | --sharedstatedi \ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ @@ -411,58 +432,59 @@ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | --sha=* | --sh=*) - sharedstatedir="$ac_optarg" ;; + sharedstatedir=$ac_optarg ;; -site | --site | --sit) ac_prev=site ;; -site=* | --site=* | --sit=*) - site="$ac_optarg" ;; + site=$ac_optarg ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) - srcdir="$ac_optarg" ;; + srcdir=$ac_optarg ;; -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | --syscon | --sysco | --sysc | --sys | --sy) ac_prev=sysconfdir ;; -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) - sysconfdir="$ac_optarg" ;; + sysconfdir=$ac_optarg ;; -target | --target | --targe | --targ | --tar | --ta | --t) - ac_prev=target ;; + ac_prev=target_alias ;; -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) - target="$ac_optarg" ;; + target_alias=$ac_optarg ;; -v | -verbose | --verbose | --verbos | --verbo | --verb) verbose=yes ;; - -version | --version | --versio | --versi | --vers) - echo "configure generated by autoconf version 2.13" - exit 0 ;; + -version | --version | --versio | --versi | --vers | -V) + ac_init_version=: ;; -with-* | --with-*) - ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` + ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. - if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then - { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } - fi + expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null && + { { echo "$as_me:469: error: invalid package name: $ac_package" >&5 +echo "$as_me: error: invalid package name: $ac_package" >&2;} + { (exit 1); exit 1; }; } ac_package=`echo $ac_package| sed 's/-/_/g'` - case "$ac_option" in - *=*) ;; + case $ac_option in + *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; *) ac_optarg=yes ;; esac - eval "with_${ac_package}='$ac_optarg'" ;; + eval "with_$ac_package='$ac_optarg'" ;; -without-* | --without-*) - ac_package=`echo $ac_option|sed -e 's/-*without-//'` + ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. - if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then - { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } - fi - ac_package=`echo $ac_package| sed 's/-/_/g'` - eval "with_${ac_package}=no" ;; + expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null && + { { echo "$as_me:483: error: invalid package name: $ac_package" >&5 +echo "$as_me: error: invalid package name: $ac_package" >&2;} + { (exit 1); exit 1; }; } + ac_package=`echo $ac_package | sed 's/-/_/g'` + eval "with_$ac_package=no" ;; --x) # Obsolete; use --with-x. @@ -473,98 +495,98 @@ ac_prev=x_includes ;; -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) - x_includes="$ac_optarg" ;; + x_includes=$ac_optarg ;; -x-libraries | --x-libraries | --x-librarie | --x-librari \ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ac_prev=x_libraries ;; -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) - x_libraries="$ac_optarg" ;; + x_libraries=$ac_optarg ;; - -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } + -*) { { echo "$as_me:507: error: unrecognized option: $ac_option +Try \`$0 --help' for more information." >&5 +echo "$as_me: error: unrecognized option: $ac_option +Try \`$0 --help' for more information." >&2;} + { (exit 1); exit 1; }; } ;; + *=*) + ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` + # Reject names that are not valid shell variable names. + expr "x$ac_envvar" : ".*[^_$ac_cr_alnum]" >/dev/null && + { { echo "$as_me:518: error: invalid variable name: $ac_envvar" >&5 +echo "$as_me: error: invalid variable name: $ac_envvar" >&2;} + { (exit 1); exit 1; }; } + ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` + eval "$ac_envvar='$ac_optarg'" + export $ac_envvar ;; + *) - if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then - echo "configure: warning: $ac_option: invalid host type" 1>&2 - fi - if test "x$nonopt" != xNONE; then - { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } - fi - nonopt="$ac_option" + # FIXME: should be removed in autoconf 3.0. + { echo "$as_me:527: WARNING: you should use --build, --host, --target" >&5 +echo "$as_me: WARNING: you should use --build, --host, --target" >&2;} + expr "x$ac_option" : ".*[^-._$ac_cr_alnum]" >/dev/null && + { echo "$as_me:530: WARNING: invalid host type: $ac_option" >&5 +echo "$as_me: WARNING: invalid host type: $ac_option" >&2;} + : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} ;; esac done if test -n "$ac_prev"; then - { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } -fi - -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 - -# File descriptor usage: -# 0 standard input -# 1 file creation -# 2 errors and warnings -# 3 some systems may open it to /dev/tty -# 4 used on the Kubota Titan -# 6 checking for... messages and results -# 5 compiler messages saved in config.log -if test "$silent" = yes; then - exec 6>/dev/null -else - exec 6>&1 -fi -exec 5>./config.log - -echo "\ -This file contains any messages produced by compilers while -running configure, to aid debugging if configure makes a mistake. -" 1>&5 - -# Strip out --no-create and --no-recursion so they do not pile up. -# Also quote any args containing shell metacharacters. -ac_configure_args= -for ac_arg -do - case "$ac_arg" in - -no-create | --no-create | --no-creat | --no-crea | --no-cre \ - | --no-cr | --no-c) ;; - -no-recursion | --no-recursion | --no-recursio | --no-recursi \ - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) - ac_configure_args="$ac_configure_args '$ac_arg'" ;; - *) ac_configure_args="$ac_configure_args $ac_arg" ;; + ac_option=--`echo $ac_prev | sed 's/_/-/g'` + { { echo "$as_me:540: error: missing argument to $ac_option" >&5 +echo "$as_me: error: missing argument to $ac_option" >&2;} + { (exit 1); exit 1; }; } +fi + +# Be sure to have absolute paths. +for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ + localstatedir libdir includedir oldincludedir infodir mandir \ + exec_prefix prefix +do + eval ac_val=$`echo $ac_var` + case $ac_val in + [\\/$]* | ?:[\\/]* ) ;; + NONE ) ;; + *) { { echo "$as_me:554: error: expected an absolute path for --$ac_var: $ac_val" >&5 +echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2;} + { (exit 1); exit 1; }; };; esac done -# NLS nuisances. -# Only set these to C if already set. These must not be set unconditionally -# because not all systems understand e.g. LANG=C (notably SCO). -# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! -# Non-C LC_CTYPE values break the ctype check. -if test "${LANG+set}" = set; then LANG=C; export LANG; fi -if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi -if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi -if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi +# There might be people who depend on the old broken behavior: `$host' +# used to hold the argument of --host etc. +build=$build_alias +host=$host_alias +target=$target_alias + +# FIXME: should be removed in autoconf 3.0. +if test "x$host_alias" != x; then + if test "x$build_alias" = x; then + cross_compiling=maybe + { echo "$as_me:570: WARNING: If you wanted to set the --build type, don't use --host. + If a cross compiler is detected then cross compile mode will be used." >&5 +echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. + If a cross compiler is detected then cross compile mode will be used." >&2;} + elif test "x$build_alias" != "x$host_alias"; then + cross_compiling=yes + fi +fi -# confdefs.h avoids OS command line length limits that DEFS can exceed. -rm -rf conftest* confdefs.h -# AIX cpp loses on an empty file, so make sure it contains at least a newline. -echo > confdefs.h +ac_tool_prefix= +test -n "$host_alias" && ac_tool_prefix=$host_alias- -# A filename unique to this package, relative to the directory that -# configure is in, which we can look for to find out if srcdir is correct. -ac_unique_file=router/router.c +test "$silent" = yes && exec 6>/dev/null # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then its parent. ac_prog=$0 - ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` + ac_confdir=`echo "$ac_prog" | sed 's%/[^/][^/]*$%%'` test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. srcdir=$ac_confdir if test ! -r $srcdir/$ac_unique_file; then @@ -575,13 +597,322 @@ fi if test ! -r $srcdir/$ac_unique_file; then if test "$ac_srcdir_defaulted" = yes; then - { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } + { { echo "$as_me:600: error: cannot find sources in $ac_confdir or .." >&5 +echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2;} + { (exit 1); exit 1; }; } else - { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } - fi + { { echo "$as_me:604: error: cannot find sources in $srcdir" >&5 +echo "$as_me: error: cannot find sources in $srcdir" >&2;} + { (exit 1); exit 1; }; } + fi +fi +srcdir=`echo "$srcdir" | sed 's%\([^/]\)/*$%\1%'` +ac_env_build_alias_set=${build_alias+set} +ac_env_build_alias_value=$build_alias +ac_cv_env_build_alias_set=${build_alias+set} +ac_cv_env_build_alias_value=$build_alias +ac_env_host_alias_set=${host_alias+set} +ac_env_host_alias_value=$host_alias +ac_cv_env_host_alias_set=${host_alias+set} +ac_cv_env_host_alias_value=$host_alias +ac_env_target_alias_set=${target_alias+set} +ac_env_target_alias_value=$target_alias +ac_cv_env_target_alias_set=${target_alias+set} +ac_cv_env_target_alias_value=$target_alias +ac_env_CC_set=${CC+set} +ac_env_CC_value=$CC +ac_cv_env_CC_set=${CC+set} +ac_cv_env_CC_value=$CC +ac_env_CFLAGS_set=${CFLAGS+set} +ac_env_CFLAGS_value=$CFLAGS +ac_cv_env_CFLAGS_set=${CFLAGS+set} +ac_cv_env_CFLAGS_value=$CFLAGS +ac_env_LDFLAGS_set=${LDFLAGS+set} +ac_env_LDFLAGS_value=$LDFLAGS +ac_cv_env_LDFLAGS_set=${LDFLAGS+set} +ac_cv_env_LDFLAGS_value=$LDFLAGS +ac_env_CPP_set=${CPP+set} +ac_env_CPP_value=$CPP +ac_cv_env_CPP_set=${CPP+set} +ac_cv_env_CPP_value=$CPP +ac_env_CPPFLAGS_set=${CPPFLAGS+set} +ac_env_CPPFLAGS_value=$CPPFLAGS +ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} +ac_cv_env_CPPFLAGS_value=$CPPFLAGS + +# +# Report the --help message. +# +if test "$ac_init_help" = "long"; then + # Omit some internal or obsolete options to make the list less imposing. + # This message is too long to be a string in the A/UX 3.1 sh. + cat < if you have libraries in a + nonstandard directory + CPP C preprocessor + CPPFLAGS C/C++ preprocessor flags, e.g. -I if you have + headers in a nonstandard directory + +Use these variables to override the choices made by `configure' or to help +it to find libraries and programs with nonstandard names/locations. + +EOF +fi + +if test "$ac_init_help" = "recursive"; then + # If there are subdirs, report their specific --help. + ac_popdir=`pwd` + for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue + cd $ac_subdir + # A "../" for each directory in /$ac_subdir. + ac_dots=`echo $ac_subdir | + sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` + + case $srcdir in + .) # No --srcdir option. We are building in place. + ac_sub_srcdir=$srcdir ;; + [\\/]* | ?:[\\/]* ) # Absolute path. + ac_sub_srcdir=$srcdir/$ac_subdir ;; + *) # Relative path. + ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;; + esac + + # Check for guested configure; otherwise get Cygnus style configure. + if test -f $ac_sub_srcdir/configure.gnu; then + echo + $SHELL $ac_sub_srcdir/configure.gnu --help=recursive + elif test -f $ac_sub_srcdir/configure; then + echo + $SHELL $ac_sub_srcdir/configure --help=recursive + elif test -f $ac_sub_srcdir/configure.ac || + test -f $ac_sub_srcdir/configure.in; then + echo + $ac_configure --help + else + { echo "$as_me:823: WARNING: no configuration information is in $ac_subdir" >&5 +echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2;} + fi + cd $ac_popdir + done fi -srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` +test -n "$ac_init_help" && exit 0 +if $ac_init_version; then + cat <<\EOF + +Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 +Free Software Foundation, Inc. +This configure script is free software; the Free Software Foundation +gives unlimited permission to copy, distribute and modify it. +EOF + exit 0 +fi + +# Keep a trace of the command line. +# Strip out --no-create and --no-recursion so they do not pile up. +# Also quote any args containing shell meta-characters. +ac_configure_args= +ac_sep= +for ac_arg +do + case $ac_arg in + -no-create | --no-create | --no-creat | --no-crea | --no-cre \ + | --no-cr | --no-c) ;; + -no-recursion | --no-recursion | --no-recursio | --no-recursi \ + | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; + *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) + ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` + ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" + ac_sep=" " ;; + *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg" + ac_sep=" " ;; + esac + # Get rid of the leading space. +done + +# When interrupted or exit'd, cleanup temporary files, and complete +# config.log. We remove comments because anyway the quotes in there +# would cause problems or look ugly. +trap 'exit_status=$? + # Save into config.log some information that might help in debugging. + echo >&5 + echo "## ----------------- ##" >&5 + echo "## Cache variables. ##" >&5 + echo "## ----------------- ##" >&5 + echo >&5 + # The following way of writing the cache mishandles newlines in values, +{ + (set) 2>&1 | + case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in + *ac_space=\ *) + sed -n \ + "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; + s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" + ;; + *) + sed -n \ + "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" + ;; + esac; +} >&5 + sed "/^$/d" confdefs.h >conftest.log + if test -s conftest.log; then + echo >&5 + echo "## ------------ ##" >&5 + echo "## confdefs.h. ##" >&5 + echo "## ------------ ##" >&5 + echo >&5 + cat conftest.log >&5 + fi + (echo; echo) >&5 + test "$ac_signal" != 0 && + echo "$as_me: caught signal $ac_signal" >&5 + echo "$as_me: exit $exit_status" >&5 + rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files && + exit $exit_status + ' 0 +for ac_signal in 1 2 13 15; do + trap 'ac_status=$?; ac_signal='$ac_signal'; { (exit $ac_status); exit $ac_status; }' $ac_signal +done +ac_signal=0 + +# confdefs.h avoids OS command line length limits that DEFS can exceed. +rm -rf conftest* confdefs.h +# AIX cpp loses on an empty file, so make sure it contains at least a newline. +echo >confdefs.h + +# Let the site file select an alternate cache file if it wants to. # Prefer explicitly selected file to automatically selected ones. if test -z "$CONFIG_SITE"; then if test "x$prefix" != xNONE; then @@ -592,271 +923,655 @@ fi for ac_site_file in $CONFIG_SITE; do if test -r "$ac_site_file"; then - echo "loading site script $ac_site_file" + { echo "$as_me:926: loading site script $ac_site_file" >&5 +echo "$as_me: loading site script $ac_site_file" >&6;} + cat "$ac_site_file" >&5 . "$ac_site_file" fi done if test -r "$cache_file"; then - echo "loading cache $cache_file" - . $cache_file + # Some versions of bash will fail to source /dev/null (special + # files actually), so we avoid doing that. + if test -f "$cache_file"; then + { echo "$as_me:937: loading cache $cache_file" >&5 +echo "$as_me: loading cache $cache_file" >&6;} + case $cache_file in + [\\/]* | ?:[\\/]* ) . $cache_file;; + *) . ./$cache_file;; + esac + fi else - echo "creating cache $cache_file" - > $cache_file + { echo "$as_me:945: creating cache $cache_file" >&5 +echo "$as_me: creating cache $cache_file" >&6;} + >$cache_file +fi + +# Check that the precious variables saved in the cache have kept the same +# value. +ac_suggest_removing_cache=false +for ac_var in `(set) 2>&1 | + sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do + eval ac_old_set=\$ac_cv_env_${ac_var}_set + eval ac_new_set=\$ac_env_${ac_var}_set + eval ac_old_val="\$ac_cv_env_${ac_var}_value" + eval ac_new_val="\$ac_env_${ac_var}_value" + case $ac_old_set,$ac_new_set in + set,) + { echo "$as_me:961: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 +echo "$as_me: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} + ac_suggest_removing_cache=: ;; + ,set) + { echo "$as_me:965: WARNING: \`$ac_var' was not set in the previous run" >&5 +echo "$as_me: WARNING: \`$ac_var' was not set in the previous run" >&2;} + ac_suggest_removing_cache=: ;; + ,);; + *) + if test "x$ac_old_val" != "x$ac_new_val"; then + { echo "$as_me:971: WARNING: \`$ac_var' has changed since the previous run:" >&5 +echo "$as_me: WARNING: \`$ac_var' has changed since the previous run:" >&2;} + { echo "$as_me:973: WARNING: former value: $ac_old_val" >&5 +echo "$as_me: WARNING: former value: $ac_old_val" >&2;} + { echo "$as_me:975: WARNING: current value: $ac_new_val" >&5 +echo "$as_me: WARNING: current value: $ac_new_val" >&2;} + ac_suggest_removing_cache=: + fi;; + esac +done +if $ac_suggest_removing_cache; then + { echo "$as_me:982: WARNING: changes in the environment can compromise the build" >&5 +echo "$as_me: WARNING: changes in the environment can compromise the build" >&2;} + { echo "$as_me:984: WARNING: consider removing $cache_file and starting over" >&5 +echo "$as_me: WARNING: consider removing $cache_file and starting over" >&2;} fi ac_ext=c -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CPP $CPPFLAGS' -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' -cross_compiling=$ac_cv_prog_cc_cross - -ac_exeext= -ac_objext=o -if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then - # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. - if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then - ac_n= ac_c=' -' ac_t=' ' - else - ac_n=-n ac_c= ac_t= - fi +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in + *c*,-n*) ECHO_N= ECHO_C=' +' ECHO_T=' ' ;; + *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; + *) ECHO_N= ECHO_C='\c' ECHO_T= ;; +esac +echo "#! $SHELL" >conftest.sh +echo "exit 0" >>conftest.sh +chmod +x conftest.sh +if { (echo "$as_me:1003: PATH=\".;.\"; conftest.sh") >&5 + (PATH=".;."; conftest.sh) 2>&5 + ac_status=$? + echo "$as_me:1006: \$? = $ac_status" >&5 + (exit $ac_status); }; then + ac_path_separator=';' else - ac_n= ac_c='\c' ac_t= + ac_path_separator=: fi - +PATH_SEPARATOR="$ac_path_separator" +rm -f conftest.sh +ac_config_headers="$ac_config_headers config.h" ac_ext=c -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CPP $CPPFLAGS' -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' -cross_compiling=$ac_cv_prog_cc_cross +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu - #---------------------------------------------------------------------------- # Check if we should use gcc if available on this machine. #---------------------------------------------------------------------------- use_gcc=0 + # Check whether --with-gcc or --without-gcc was given. if test "${with_gcc+set}" = set; then withval="$with_gcc" use_gcc=1 -fi - +fi; if test "$use_gcc" = 0 ; then CC=${CC-cc} else - # Extract the first word of "gcc", so it can be a program name with args. -set dummy gcc; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:656: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. +set dummy ${ac_tool_prefix}gcc; ac_word=$2 +echo "$as_me:1044: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_CC+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_CC="gcc" - break - fi - done - IFS="$ac_save_ifs" + ac_save_IFS=$IFS; IFS=$ac_path_separator +ac_dummy="$PATH" +for ac_dir in $ac_dummy; do + IFS=$ac_save_IFS + test -z "$ac_dir" && ac_dir=. + $as_executable_p "$ac_dir/$ac_word" || continue +ac_cv_prog_CC="${ac_tool_prefix}gcc" +break +done + fi fi -CC="$ac_cv_prog_CC" +CC=$ac_cv_prog_CC if test -n "$CC"; then - echo "$ac_t""$CC" 1>&6 + echo "$as_me:1066: result: $CC" >&5 +echo "${ECHO_T}$CC" >&6 else - echo "$ac_t""no" 1>&6 + echo "$as_me:1069: result: no" >&5 +echo "${ECHO_T}no" >&6 fi -if test -z "$CC"; then - # Extract the first word of "cc", so it can be a program name with args. -set dummy cc; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:686: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +fi +if test -z "$ac_cv_prog_CC"; then + ac_ct_CC=$CC + # Extract the first word of "gcc", so it can be a program name with args. +set dummy gcc; ac_word=$2 +echo "$as_me:1078: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. + if test -n "$ac_ct_CC"; then + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_prog_rejected=no - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then - ac_prog_rejected=yes - continue - fi - ac_cv_prog_CC="cc" - break - fi - done - IFS="$ac_save_ifs" -if test $ac_prog_rejected = yes; then - # We found a bogon in the path, so make sure we never use it. - set dummy $ac_cv_prog_CC - shift - if test $# -gt 0; then - # We chose a different compiler from the bogus one. - # However, it has the same basename, so the bogon will be chosen - # first if we set CC to just the basename; use the full file name. - shift - set dummy "$ac_dir/$ac_word" "$@" - shift - ac_cv_prog_CC="$@" - fi + ac_save_IFS=$IFS; IFS=$ac_path_separator +ac_dummy="$PATH" +for ac_dir in $ac_dummy; do + IFS=$ac_save_IFS + test -z "$ac_dir" && ac_dir=. + $as_executable_p "$ac_dir/$ac_word" || continue +ac_cv_prog_ac_ct_CC="gcc" +break +done + fi fi +ac_ct_CC=$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then + echo "$as_me:1100: result: $ac_ct_CC" >&5 +echo "${ECHO_T}$ac_ct_CC" >&6 +else + echo "$as_me:1103: result: no" >&5 +echo "${ECHO_T}no" >&6 fi -CC="$ac_cv_prog_CC" -if test -n "$CC"; then - echo "$ac_t""$CC" 1>&6 + + CC=$ac_ct_CC else - echo "$ac_t""no" 1>&6 + CC="$ac_cv_prog_CC" fi - if test -z "$CC"; then - case "`uname -s`" in - *win32* | *WIN32*) - # Extract the first word of "cl", so it can be a program name with args. -set dummy cl; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:737: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +if test -z "$CC"; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. +set dummy ${ac_tool_prefix}cc; ac_word=$2 +echo "$as_me:1116: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_CC+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_CC="cl" - break - fi - done - IFS="$ac_save_ifs" + ac_save_IFS=$IFS; IFS=$ac_path_separator +ac_dummy="$PATH" +for ac_dir in $ac_dummy; do + IFS=$ac_save_IFS + test -z "$ac_dir" && ac_dir=. + $as_executable_p "$ac_dir/$ac_word" || continue +ac_cv_prog_CC="${ac_tool_prefix}cc" +break +done + fi fi -CC="$ac_cv_prog_CC" +CC=$ac_cv_prog_CC if test -n "$CC"; then - echo "$ac_t""$CC" 1>&6 + echo "$as_me:1138: result: $CC" >&5 +echo "${ECHO_T}$CC" >&6 else - echo "$ac_t""no" 1>&6 -fi - ;; - esac - fi - test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } + echo "$as_me:1141: result: no" >&5 +echo "${ECHO_T}no" >&6 fi -echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 -echo "configure:769: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 +fi +if test -z "$ac_cv_prog_CC"; then + ac_ct_CC=$CC + # Extract the first word of "cc", so it can be a program name with args. +set dummy cc; ac_word=$2 +echo "$as_me:1150: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$ac_ct_CC"; then + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. +else + ac_save_IFS=$IFS; IFS=$ac_path_separator +ac_dummy="$PATH" +for ac_dir in $ac_dummy; do + IFS=$ac_save_IFS + test -z "$ac_dir" && ac_dir=. + $as_executable_p "$ac_dir/$ac_word" || continue +ac_cv_prog_ac_ct_CC="cc" +break +done -ac_ext=c -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. -ac_cpp='$CPP $CPPFLAGS' -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' -cross_compiling=$ac_cv_prog_cc_cross +fi +fi +ac_ct_CC=$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then + echo "$as_me:1172: result: $ac_ct_CC" >&5 +echo "${ECHO_T}$ac_ct_CC" >&6 +else + echo "$as_me:1175: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi -cat > conftest.$ac_ext << EOF + CC=$ac_ct_CC +else + CC="$ac_cv_prog_CC" +fi -#line 780 "configure" -#include "confdefs.h" +fi +if test -z "$CC"; then + # Extract the first word of "cc", so it can be a program name with args. +set dummy cc; ac_word=$2 +echo "$as_me:1188: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_CC+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else + ac_prog_rejected=no + ac_save_IFS=$IFS; IFS=$ac_path_separator +ac_dummy="$PATH" +for ac_dir in $ac_dummy; do + IFS=$ac_save_IFS + test -z "$ac_dir" && ac_dir=. + $as_executable_p "$ac_dir/$ac_word" || continue +if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then + ac_prog_rejected=yes + continue +fi +ac_cv_prog_CC="cc" +break +done -main(){return(0);} -EOF -if { (eval echo configure:785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - ac_cv_prog_cc_works=yes - # If we can't run a trivial program, we are probably using a cross compiler. - if (./conftest; exit) 2>/dev/null; then - ac_cv_prog_cc_cross=no - else - ac_cv_prog_cc_cross=yes +if test $ac_prog_rejected = yes; then + # We found a bogon in the path, so make sure we never use it. + set dummy $ac_cv_prog_CC + shift + if test $# != 0; then + # We chose a different compiler from the bogus one. + # However, it has the same basename, so the bogon will be chosen + # first if we set CC to just the basename; use the full file name. + shift + set dummy "$ac_dir/$ac_word" ${1+"$@"} + shift + ac_cv_prog_CC="$@" fi +fi +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + echo "$as_me:1229: result: $CC" >&5 +echo "${ECHO_T}$CC" >&6 else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - ac_cv_prog_cc_works=no + echo "$as_me:1232: result: no" >&5 +echo "${ECHO_T}no" >&6 fi -rm -fr conftest* -ac_ext=c -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. -ac_cpp='$CPP $CPPFLAGS' -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' -cross_compiling=$ac_cv_prog_cc_cross - -echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 -if test $ac_cv_prog_cc_works = no; then - { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } -fi -echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 -echo "configure:811: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 -echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 -cross_compiling=$ac_cv_prog_cc_cross - -echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 -echo "configure:816: checking whether we are using GNU C" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 + +fi +if test -z "$CC"; then + if test -n "$ac_tool_prefix"; then + for ac_prog in cl + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +echo "$as_me:1243: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_CC+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat > conftest.c <&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then - ac_cv_prog_gcc=yes + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else + ac_save_IFS=$IFS; IFS=$ac_path_separator +ac_dummy="$PATH" +for ac_dir in $ac_dummy; do + IFS=$ac_save_IFS + test -z "$ac_dir" && ac_dir=. + $as_executable_p "$ac_dir/$ac_word" || continue +ac_cv_prog_CC="$ac_tool_prefix$ac_prog" +break +done + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + echo "$as_me:1265: result: $CC" >&5 +echo "${ECHO_T}$CC" >&6 +else + echo "$as_me:1268: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + test -n "$CC" && break + done +fi +if test -z "$CC"; then + ac_ct_CC=$CC + for ac_prog in cl +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +echo "$as_me:1281: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$ac_ct_CC"; then + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. +else + ac_save_IFS=$IFS; IFS=$ac_path_separator +ac_dummy="$PATH" +for ac_dir in $ac_dummy; do + IFS=$ac_save_IFS + test -z "$ac_dir" && ac_dir=. + $as_executable_p "$ac_dir/$ac_word" || continue +ac_cv_prog_ac_ct_CC="$ac_prog" +break +done + +fi +fi +ac_ct_CC=$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then + echo "$as_me:1303: result: $ac_ct_CC" >&5 +echo "${ECHO_T}$ac_ct_CC" >&6 else - ac_cv_prog_gcc=no + echo "$as_me:1306: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + test -n "$ac_ct_CC" && break +done + + CC=$ac_ct_CC fi + fi + +test -z "$CC" && { { echo "$as_me:1318: error: no acceptable cc found in \$PATH" >&5 +echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} + { (exit 1); exit 1; }; } + +cat >conftest.$ac_ext <<_ACEOF +#line 1323 "configure" +#include "confdefs.h" -echo "$ac_t""$ac_cv_prog_gcc" 1>&6 +int +main () +{ -if test $ac_cv_prog_gcc = yes; then - GCC=yes + ; + return 0; +} +_ACEOF +ac_clean_files_save=$ac_clean_files +ac_clean_files="$ac_clean_files a.out a.exe" +# Try to create an executable without -o first, disregard a.out. +# It will help us diagnose broken compiler, and finding out an intuition +# of exeext. +echo "$as_me:1339: checking for C compiler default output" >&5 +echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 +ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` +if { (eval echo "$as_me:1342: \"$ac_link_default\"") >&5 + (eval $ac_link_default) 2>&5 + ac_status=$? + echo "$as_me:1345: \$? = $ac_status" >&5 + (exit $ac_status); }; then + for ac_file in `ls a.exe conftest.exe a.* conftest conftest.* 2>/dev/null`; do + case $ac_file in + *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; + a.out ) # We found the default executable, but exeext='' is most + # certainly right. + break;; + *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` + export ac_cv_exeext + break;; + * ) break;; + esac +done else - GCC= + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +{ { echo "$as_me:1362: error: C compiler cannot create executables" >&5 +echo "$as_me: error: C compiler cannot create executables" >&2;} + { (exit 77); exit 77; }; } +fi + +ac_exeext=$ac_cv_exeext +echo "$as_me:1368: result: $ac_file" >&5 +echo "${ECHO_T}$ac_file" >&6 + +# Check the compiler produces executables we can run. If not, either +# the compiler is broken, or we cross compile. +echo "$as_me:1373: checking whether the C compiler works" >&5 +echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 +# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 +# If not cross compiling, check that we can run a simple program. +if test "$cross_compiling" != yes; then + if { ac_try='./$ac_file' + { (eval echo "$as_me:1379: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:1382: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + cross_compiling=no + else + if test "$cross_compiling" = maybe; then + cross_compiling=yes + else + { { echo "$as_me:1389: error: cannot run C compiled programs. +If you meant to cross compile, use \`--host'." >&5 +echo "$as_me: error: cannot run C compiled programs. +If you meant to cross compile, use \`--host'." >&2;} + { (exit 1); exit 1; }; } + fi + fi fi +echo "$as_me:1397: result: yes" >&5 +echo "${ECHO_T}yes" >&6 + +rm -f a.out a.exe conftest$ac_cv_exeext +ac_clean_files=$ac_clean_files_save +# Check the compiler produces executables we can run. If not, either +# the compiler is broken, or we cross compile. +echo "$as_me:1404: checking whether we are cross compiling" >&5 +echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 +echo "$as_me:1406: result: $cross_compiling" >&5 +echo "${ECHO_T}$cross_compiling" >&6 + +echo "$as_me:1409: checking for executable suffix" >&5 +echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6 +if { (eval echo "$as_me:1411: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:1414: \$? = $ac_status" >&5 + (exit $ac_status); }; then + # If both `conftest.exe' and `conftest' are `present' (well, observable) +# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will +# work properly (i.e., refer to `conftest.exe'), while it won't with +# `rm'. +for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do + case $ac_file in + *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; + *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` + export ac_cv_exeext + break;; + * ) break;; + esac +done +else + { { echo "$as_me:1430: error: cannot compute EXEEXT: cannot compile and link" >&5 +echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;} + { (exit 1); exit 1; }; } +fi + +rm -f conftest$ac_cv_exeext +echo "$as_me:1436: result: $ac_cv_exeext" >&5 +echo "${ECHO_T}$ac_cv_exeext" >&6 + +rm -f conftest.$ac_ext +EXEEXT=$ac_cv_exeext +ac_exeext=$EXEEXT +echo "$as_me:1442: checking for object suffix" >&5 +echo $ECHO_N "checking for object suffix... $ECHO_C" >&6 +if test "${ac_cv_objext+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +#line 1448 "configure" +#include "confdefs.h" -ac_test_CFLAGS="${CFLAGS+set}" -ac_save_CFLAGS="$CFLAGS" -CFLAGS= -echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 -echo "configure:844: checking whether ${CC-cc} accepts -g" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.o conftest.obj +if { (eval echo "$as_me:1460: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:1463: \$? = $ac_status" >&5 + (exit $ac_status); }; then + for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; + *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` + break;; + esac +done +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +{ { echo "$as_me:1475: error: cannot compute OBJEXT: cannot compile" >&5 +echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;} + { (exit 1); exit 1; }; } +fi + +rm -f conftest.$ac_cv_objext conftest.$ac_ext +fi +echo "$as_me:1482: result: $ac_cv_objext" >&5 +echo "${ECHO_T}$ac_cv_objext" >&6 +OBJEXT=$ac_cv_objext +ac_objext=$OBJEXT +echo "$as_me:1486: checking whether we are using the GNU C compiler" >&5 +echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 +if test "${ac_cv_c_compiler_gnu+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +#line 1492 "configure" +#include "confdefs.h" + +int +main () +{ +#ifndef __GNUC__ + choke me +#endif + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:1507: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:1510: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:1513: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:1516: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_compiler_gnu=yes +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_compiler_gnu=no +fi +rm -f conftest.$ac_objext conftest.$ac_ext +ac_cv_c_compiler_gnu=$ac_compiler_gnu + +fi +echo "$as_me:1528: result: $ac_cv_c_compiler_gnu" >&5 +echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 +GCC=`test $ac_compiler_gnu = yes && echo yes` +ac_test_CFLAGS=${CFLAGS+set} +ac_save_CFLAGS=$CFLAGS +CFLAGS="-g" +echo "$as_me:1534: checking whether $CC accepts -g" >&5 +echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 +if test "${ac_cv_prog_cc_g+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - echo 'void f(){}' > conftest.c -if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then + cat >conftest.$ac_ext <<_ACEOF +#line 1540 "configure" +#include "confdefs.h" + +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:1552: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:1555: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:1558: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:1561: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then ac_cv_prog_cc_g=yes else - ac_cv_prog_cc_g=no + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_prog_cc_g=no fi -rm -f conftest* - +rm -f conftest.$ac_objext conftest.$ac_ext fi - -echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 +echo "$as_me:1571: result: $ac_cv_prog_cc_g" >&5 +echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 if test "$ac_test_CFLAGS" = set; then - CFLAGS="$ac_save_CFLAGS" + CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" @@ -870,173 +1585,399 @@ CFLAGS= fi fi +# Some people use a C++ compiler to compile C. Since we use `exit', +# in C++ we need to declare it. In case someone uses the same compiler +# for both compiling C and C++ we need to have the C++ compiler decide +# the declaration of exit, since it's the most demanding environment. +cat >conftest.$ac_ext <<_ACEOF +#ifndef __cplusplus + choke me +#endif +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:1598: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:1601: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:1604: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:1607: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + for ac_declaration in \ + ''\ + '#include ' \ + 'extern "C" void std::exit (int) throw (); using std::exit;' \ + 'extern "C" void std::exit (int); using std::exit;' \ + 'extern "C" void exit (int) throw ();' \ + 'extern "C" void exit (int);' \ + 'void exit (int);' +do + cat >conftest.$ac_ext <<_ACEOF +#line 1619 "configure" +#include "confdefs.h" +#include +$ac_declaration +int +main () +{ +exit (42); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:1632: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:1635: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:1638: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:1641: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + : +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +continue +fi +rm -f conftest.$ac_objext conftest.$ac_ext + cat >conftest.$ac_ext <<_ACEOF +#line 1651 "configure" +#include "confdefs.h" +$ac_declaration +int +main () +{ +exit (42); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:1663: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:1666: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:1669: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:1672: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + break +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +fi +rm -f conftest.$ac_objext conftest.$ac_ext +done +echo '#ifdef __cplusplus' >>confdefs.h +echo $ac_declaration >>confdefs.h +echo '#endif' >>confdefs.h + +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +fi +rm -f conftest.$ac_objext conftest.$ac_ext +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu if test "$CC" = "gcc" ; then CC="gcc -Wall" fi fi -echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 -echo "configure:880: checking how to run the C preprocessor" >&5 +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +echo "$as_me:1705: checking how to run the C preprocessor" >&5 +echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then -if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 + if test "${ac_cv_prog_CPP+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - # This must be in double quotes, not single quotes, because CPP may get - # substituted into the Makefile and "${CC-cc}" will confuse make. - CPP="${CC-cc} -E" - # On the NeXT, cc -E runs the code through the compiler's parser, - # not just through cpp. - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 1724 "configure" #include "confdefs.h" #include -Syntax Error -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:901: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - : +Syntax error +_ACEOF +if { (eval echo "$as_me:1729: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 + (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 + ac_status=$? + egrep -v '^ *\+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:1735: \$? = $ac_status" >&5 + (exit $ac_status); }; then + if test -s conftest.err; then + ac_cpp_err=$ac_c_preproc_warn_flag + else + ac_cpp_err= + fi +else + ac_cpp_err=yes +fi +if test -z "$ac_cpp_err"; then + # Now check whether non-existent headers can be detected and how +# Skip if ac_cpp_err is not empty - ac_cpp is broken +if test -z "$ac_cpp_err"; then + cat >conftest.$ac_ext <<_ACEOF +#line 1750 "configure" +#include "confdefs.h" +#include +_ACEOF +if { (eval echo "$as_me:1754: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 + (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 + ac_status=$? + egrep -v '^ *\+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:1760: \$? = $ac_status" >&5 + (exit $ac_status); }; then + if test -s conftest.err; then + ac_cpp_err=$ac_c_preproc_warn_flag + else + ac_cpp_err= + fi +else + ac_cpp_err=yes +fi +if test -z "$ac_cpp_err"; then + # cannot detect missing includes at all +ac_cpp_err=yes else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 + echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 - rm -rf conftest* - CPP="${CC-cc} -E -traditional-cpp" - cat > conftest.$ac_ext < -Syntax Error -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:918: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - : + if test "x$ac_cpp_err" = xmaybe; then + ac_c_preproc_warn_flag=yes + else + ac_c_preproc_warn_flag= + fi + ac_cpp_err= +fi +rm -f conftest.err conftest.$ac_ext +fi else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 + echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 - rm -rf conftest* - CPP="${CC-cc} -nologo -E" - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 1806 "configure" #include "confdefs.h" #include -Syntax Error -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:935: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - : +Syntax error +_ACEOF +if { (eval echo "$as_me:1811: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 + (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 + ac_status=$? + egrep -v '^ *\+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:1817: \$? = $ac_status" >&5 + (exit $ac_status); }; then + if test -s conftest.err; then + ac_cpp_err=$ac_c_preproc_warn_flag + else + ac_cpp_err= + fi else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - CPP=/lib/cpp + ac_cpp_err=yes fi -rm -f conftest* +if test -z "$ac_cpp_err"; then + # Now check whether non-existent headers can be detected and how +# Skip if ac_cpp_err is not empty - ac_cpp is broken +if test -z "$ac_cpp_err"; then + cat >conftest.$ac_ext <<_ACEOF +#line 1832 "configure" +#include "confdefs.h" +#include +_ACEOF +if { (eval echo "$as_me:1836: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 + (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 + ac_status=$? + egrep -v '^ *\+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:1842: \$? = $ac_status" >&5 + (exit $ac_status); }; then + if test -s conftest.err; then + ac_cpp_err=$ac_c_preproc_warn_flag + else + ac_cpp_err= + fi +else + ac_cpp_err=yes fi -rm -f conftest* +if test -z "$ac_cpp_err"; then + # cannot detect missing includes at all +ac_cpp_err=yes +else + echo "$as_me: failed program was:" >&5 + cat conftest.$ac_ext >&5 + if test "x$ac_cpp_err" = xmaybe; then + ac_c_preproc_warn_flag=yes + else + ac_c_preproc_warn_flag= + fi + ac_cpp_err= fi -rm -f conftest* - ac_cv_prog_CPP="$CPP" +rm -f conftest.err conftest.$ac_ext fi - CPP="$ac_cv_prog_CPP" else - ac_cv_prog_CPP="$CPP" -fi -echo "$ac_t""$CPP" 1>&6 - + echo "$as_me: failed program was:" >&5 + cat conftest.$ac_ext >&5 -echo $ac_n "checking for AIX""... $ac_c" 1>&6 -echo "configure:961: checking for AIX" >&5 -cat > conftest.$ac_ext <&5 +echo "${ECHO_T}$CPP" >&6 +if test -n "$ac_cpp_err"; then + { { echo "$as_me:1878: error: C preprocessor \"$CPP\" fails sanity check" >&5 +echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} + { (exit 1); exit 1; }; } +fi +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +echo "$as_me:1888: checking for AIX" >&5 +echo $ECHO_N "checking for AIX... $ECHO_C" >&6 +cat >conftest.$ac_ext <<_ACEOF +#line 1891 "configure" #include "confdefs.h" #ifdef _AIX yes #endif -EOF +_ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "yes" >/dev/null 2>&1; then - rm -rf conftest* - echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF + echo "$as_me:1900: result: yes" >&5 +echo "${ECHO_T}yes" >&6 +cat >>confdefs.h <<\EOF #define _ALL_SOURCE 1 EOF else - rm -rf conftest* - echo "$ac_t""no" 1>&6 + echo "$as_me:1907: result: no" >&5 +echo "${ECHO_T}no" >&6 fi rm -f conftest* - -ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6 -echo "configure:986: checking for minix/config.h" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +echo "$as_me:1912: checking for minix/config.h" >&5 +echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 +if test "${ac_cv_header_minix_config_h+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 1918 "configure" #include "confdefs.h" #include -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:996: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" +_ACEOF +if { (eval echo "$as_me:1922: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 + (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 + ac_status=$? + egrep -v '^ *\+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:1928: \$? = $ac_status" >&5 + (exit $ac_status); }; then + if test -s conftest.err; then + ac_cpp_err=$ac_c_preproc_warn_flag + else + ac_cpp_err= + fi +else + ac_cpp_err=yes +fi +if test -z "$ac_cpp_err"; then + ac_cv_header_minix_config_h=yes else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 + echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" + ac_cv_header_minix_config_h=no fi -rm -f conftest* +rm -f conftest.err conftest.$ac_ext fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 +echo "$as_me:1947: result: $ac_cv_header_minix_config_h" >&5 +echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 +if test $ac_cv_header_minix_config_h = yes; then MINIX=yes else - echo "$ac_t""no" 1>&6 -MINIX= + MINIX= fi if test "$MINIX" = yes; then - cat >> confdefs.h <<\EOF + +cat >>confdefs.h <<\EOF #define _POSIX_SOURCE 1 EOF - cat >> confdefs.h <<\EOF +cat >>confdefs.h <<\EOF #define _POSIX_1_SOURCE 2 EOF - cat >> confdefs.h <<\EOF +cat >>confdefs.h <<\EOF #define _MINIX 1 EOF fi -echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6 -echo "configure:1034: checking for POSIXized ISC" >&5 +echo "$as_me:1971: checking for POSIXized ISC" >&5 +echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6 if test -d /etc/conf/kconfig.d && - grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 + grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 then - echo "$ac_t""yes" 1>&6 + echo "$as_me:1976: result: yes" >&5 +echo "${ECHO_T}yes" >&6 ISC=yes # If later tests want to check for ISC. - cat >> confdefs.h <<\EOF + +cat >>confdefs.h <<\EOF #define _POSIX_SOURCE 1 EOF @@ -1046,107 +1987,127 @@ CC="$CC -Xp" fi else - echo "$ac_t""no" 1>&6 + echo "$as_me:1990: result: no" >&5 +echo "${ECHO_T}no" >&6 ISC= fi - - MKDIR="mkdir -p" # AC_PROG_GCC_TRADITIONAL -echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 -echo "configure:1060: checking whether ${MAKE-make} sets \${MAKE}" >&5 -set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +echo "$as_me:1998: checking whether ${MAKE-make} sets \${MAKE}" >&5 +echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 +set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` +if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat > conftestmake <<\EOF + cat >conftest.make <<\EOF all: @echo 'ac_maketemp="${MAKE}"' EOF # GNU make sometimes prints "make[1]: Entering...", which would confuse us. -eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` +eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` if test -n "$ac_maketemp"; then eval ac_cv_prog_make_${ac_make}_set=yes else eval ac_cv_prog_make_${ac_make}_set=no fi -rm -f conftestmake +rm -f conftest.make fi if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then - echo "$ac_t""yes" 1>&6 + echo "$as_me:2018: result: yes" >&5 +echo "${ECHO_T}yes" >&6 SET_MAKE= else - echo "$ac_t""no" 1>&6 + echo "$as_me:2022: result: no" >&5 +echo "${ECHO_T}no" >&6 SET_MAKE="MAKE=${MAKE-make}" fi - # things get pretty tought, if the dup2() is not available ... -echo $ac_n "checking for dup2""... $ac_c" 1>&6 -echo "configure:1089: checking for dup2" >&5 -if eval "test \"`echo '$''{'ac_cv_func_dup2'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +echo "$as_me:2028: checking for dup2" >&5 +echo $ECHO_N "checking for dup2... $ECHO_C" >&6 +if test "${ac_cv_func_dup2+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 2034 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, - which can conflict with char dup2(); below. */ + which can conflict with char dup2 (); below. */ #include /* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif /* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char dup2(); + builtin and then its argument prototype would still apply. */ +char dup2 (); +char (*f) (); -int main() { - +int +main () +{ /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_dup2) || defined (__stub___dup2) choke me #else -dup2(); +f = dup2; #endif - -; return 0; } -EOF -if { (eval echo configure:1117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_dup2=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_dup2=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_func_'dup2`\" = yes"; then - echo "$ac_t""yes" 1>&6 - cat >> confdefs.h <<\EOF + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:2065: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:2068: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:2071: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:2074: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_func_dup2=yes +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_func_dup2=no +fi +rm -f conftest$ac_exeext conftest.$ac_ext +fi +echo "$as_me:2084: result: $ac_cv_func_dup2" >&5 +echo "${ECHO_T}$ac_cv_func_dup2" >&6 +if test $ac_cv_func_dup2 = yes; then + cat >>confdefs.h <<\EOF #define HAVE_DUP2 1 EOF else - echo "$ac_t""no" 1>&6 -{ echo "configure: error: Bizzare -- the system does not have dup2()! Is your C-compiler working ? (See config.log)" 1>&2; exit 1; } + { { echo "$as_me:2092: error: Bizzare -- the system does not have dup2()! Is your C-compiler working ? (See config.log)" >&5 +echo "$as_me: error: Bizzare -- the system does not have dup2()! Is your C-compiler working ? (See config.log)" >&2;} + { (exit 1); exit 1; }; } fi - - - if test "x$prefix" = "xNONE" ; then - echo "$ac_t""!!!" 1>&6 - echo "$ac_t""!!! You did not define --prefix=DIR -parameter !!!" 1>&6 - echo "$ac_t""!!!" 1>&6 - echo "$ac_t""!!! Define the --prefix=DIR -parameter to tell the subtree," 1>&6 - echo "$ac_t""!!! where the ZMailer system is to be installed." 1>&6 - echo "$ac_t""!!!" 1>&6 + echo "$as_me:2099: result: !!!" >&5 +echo "${ECHO_T}!!!" >&6 + echo "$as_me:2101: result: !!! You did not define --prefix=DIR -parameter !!!" >&5 +echo "${ECHO_T}!!! You did not define --prefix=DIR -parameter !!!" >&6 + echo "$as_me:2103: result: !!!" >&5 +echo "${ECHO_T}!!!" >&6 + echo "$as_me:2105: result: !!! Define the --prefix=DIR -parameter to tell the subtree," >&5 +echo "${ECHO_T}!!! Define the --prefix=DIR -parameter to tell the subtree," >&6 + echo "$as_me:2107: result: !!! where the ZMailer system is to be installed." >&5 +echo "${ECHO_T}!!! where the ZMailer system is to be installed." >&6 + echo "$as_me:2109: result: !!!" >&5 +echo "${ECHO_T}!!!" >&6 exit 1 fi @@ -1155,253 +2116,274 @@ defSCHEDULEROPTIONS='-l ${LOGDIR}/scheduler.perflog -S -H' defNNTPSERVER='nntp' ac_default_zmconfig="${ZCONFIG-$prefix/zmailer.conf}" - -echo "$ac_t""***" 1>&6 -echo "$ac_t""*** You can set ZCONFIG environment variable to define" 1>&6 -echo "$ac_t""*** the location of the (default) $prefix/zmailer.conf -file" 1>&6 -echo "$ac_t""*** (You can use also --with-zconfig= -parameter)" 1>&6 -echo "$ac_t""***" 1>&6 -echo "$ac_t""*** Consider also setting following parameters:" 1>&6 -echo "$ac_t""*** --mandir=DIR -- for man-pages" 1>&6 -echo "$ac_t""*** --libdir=DIR -- for libzmailer(3)" 1>&6 -echo "$ac_t""*** --includedir=DIR -- for libzmailer(3)" 1>&6 -echo "$ac_t""*** (They can be outside the --prefix=DIR -tree)" 1>&6 -echo "$ac_t""***" 1>&6 -echo "$ac_t""*** You can also set CC, CFLAGS, and CPPFLAGS environment variables" 1>&6 -echo "$ac_t""*** to choose the C-compiler, and its options, especially at systems" 1>&6 -echo "$ac_t""*** where there are multiple choices to use ..." 1>&6 -echo "$ac_t""*** (Also doing CPPFLAGS="-I/local/include" may be something you need" 1>&6 -echo "$ac_t""*** to find oddly located headers of some utility libraries.)" 1>&6 -echo "$ac_t""***" 1>&6 +echo "$as_me:2120: result: ***" >&5 +echo "${ECHO_T}***" >&6 +echo "$as_me:2122: result: *** You can set ZCONFIG environment variable to define" >&5 +echo "${ECHO_T}*** You can set ZCONFIG environment variable to define" >&6 +echo "$as_me:2124: result: *** the location of the (default) $prefix/zmailer.conf -file" >&5 +echo "${ECHO_T}*** the location of the (default) $prefix/zmailer.conf -file" >&6 +echo "$as_me:2126: result: *** (You can use also --with-zconfig= -parameter)" >&5 +echo "${ECHO_T}*** (You can use also --with-zconfig= -parameter)" >&6 +echo "$as_me:2128: result: ***" >&5 +echo "${ECHO_T}***" >&6 +echo "$as_me:2130: result: *** Consider also setting following parameters:" >&5 +echo "${ECHO_T}*** Consider also setting following parameters:" >&6 +echo "$as_me:2132: result: *** --mandir=DIR -- for man-pages" >&5 +echo "${ECHO_T}*** --mandir=DIR -- for man-pages" >&6 +echo "$as_me:2134: result: *** --libdir=DIR -- for libzmailer(3)" >&5 +echo "${ECHO_T}*** --libdir=DIR -- for libzmailer(3)" >&6 +echo "$as_me:2136: result: *** --includedir=DIR -- for libzmailer(3)" >&5 +echo "${ECHO_T}*** --includedir=DIR -- for libzmailer(3)" >&6 +echo "$as_me:2138: result: *** (They can be outside the --prefix=DIR -tree)" >&5 +echo "${ECHO_T}*** (They can be outside the --prefix=DIR -tree)" >&6 +echo "$as_me:2140: result: ***" >&5 +echo "${ECHO_T}***" >&6 +echo "$as_me:2142: result: *** You can also set CC, CFLAGS, and CPPFLAGS environment variables" >&5 +echo "${ECHO_T}*** You can also set CC, CFLAGS, and CPPFLAGS environment variables" >&6 +echo "$as_me:2144: result: *** to choose the C-compiler, and its options, especially at systems" >&5 +echo "${ECHO_T}*** to choose the C-compiler, and its options, especially at systems" >&6 +echo "$as_me:2146: result: *** where there are multiple choices to use ..." >&5 +echo "${ECHO_T}*** where there are multiple choices to use ..." >&6 +echo "$as_me:2148: result: *** (Also doing CPPFLAGS=\"-I/local/include\" may be something you need" >&5 +echo "${ECHO_T}*** (Also doing CPPFLAGS=\"-I/local/include\" may be something you need" >&6 +echo "$as_me:2150: result: *** to find oddly located headers of some utility libraries.)" >&5 +echo "${ECHO_T}*** to find oddly located headers of some utility libraries.)" >&6 +echo "$as_me:2152: result: ***" >&5 +echo "${ECHO_T}***" >&6 sleep 3 # delay a bit, then continue.. - # Extract the first word of "ln", so it can be a program name with args. set dummy ln; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1185: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_path_LN'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +echo "$as_me:2159: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_path_LN+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - case "$LN" in - /*) + case $LN in + [\\/]* | ?:[\\/]*) ac_cv_path_LN="$LN" # Let the user override the test with a path. ;; - ?:/*) - ac_cv_path_LN="$LN" # Let the user override the test with a dos path. - ;; *) - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_path_LN="$ac_dir/$ac_word" - break - fi - done - IFS="$ac_save_ifs" + ac_save_IFS=$IFS; IFS=$ac_path_separator +ac_dummy="$PATH" +for ac_dir in $ac_dummy; do + IFS=$ac_save_IFS + test -z "$ac_dir" && ac_dir=. + if $as_executable_p "$ac_dir/$ac_word"; then + ac_cv_path_LN="$ac_dir/$ac_word" + break +fi +done + test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln" ;; esac fi -LN="$ac_cv_path_LN" +LN=$ac_cv_path_LN + if test -n "$LN"; then - echo "$ac_t""$LN" 1>&6 + echo "$as_me:2187: result: $LN" >&5 +echo "${ECHO_T}$LN" >&6 else - echo "$ac_t""no" 1>&6 + echo "$as_me:2190: result: no" >&5 +echo "${ECHO_T}no" >&6 fi # Extract the first word of "mv", so it can be a program name with args. set dummy mv; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1220: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +echo "$as_me:2195: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_path_MV+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - case "$MV" in - /*) + case $MV in + [\\/]* | ?:[\\/]*) ac_cv_path_MV="$MV" # Let the user override the test with a path. ;; - ?:/*) - ac_cv_path_MV="$MV" # Let the user override the test with a dos path. - ;; *) - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_path_MV="$ac_dir/$ac_word" - break - fi - done - IFS="$ac_save_ifs" + ac_save_IFS=$IFS; IFS=$ac_path_separator +ac_dummy="$PATH" +for ac_dir in $ac_dummy; do + IFS=$ac_save_IFS + test -z "$ac_dir" && ac_dir=. + if $as_executable_p "$ac_dir/$ac_word"; then + ac_cv_path_MV="$ac_dir/$ac_word" + break +fi +done + test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" ;; esac fi -MV="$ac_cv_path_MV" +MV=$ac_cv_path_MV + if test -n "$MV"; then - echo "$ac_t""$MV" 1>&6 + echo "$as_me:2223: result: $MV" >&5 +echo "${ECHO_T}$MV" >&6 else - echo "$ac_t""no" 1>&6 + echo "$as_me:2226: result: no" >&5 +echo "${ECHO_T}no" >&6 fi # Extract the first word of "rm", so it can be a program name with args. set dummy rm; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1255: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +echo "$as_me:2231: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_path_RM+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - case "$RM" in - /*) + case $RM in + [\\/]* | ?:[\\/]*) ac_cv_path_RM="$RM" # Let the user override the test with a path. ;; - ?:/*) - ac_cv_path_RM="$RM" # Let the user override the test with a dos path. - ;; *) - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_path_RM="$ac_dir/$ac_word" - break - fi - done - IFS="$ac_save_ifs" + ac_save_IFS=$IFS; IFS=$ac_path_separator +ac_dummy="$PATH" +for ac_dir in $ac_dummy; do + IFS=$ac_save_IFS + test -z "$ac_dir" && ac_dir=. + if $as_executable_p "$ac_dir/$ac_word"; then + ac_cv_path_RM="$ac_dir/$ac_word" + break +fi +done + test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" ;; esac fi -RM="$ac_cv_path_RM" +RM=$ac_cv_path_RM + if test -n "$RM"; then - echo "$ac_t""$RM" 1>&6 + echo "$as_me:2259: result: $RM" >&5 +echo "${ECHO_T}$RM" >&6 else - echo "$ac_t""no" 1>&6 + echo "$as_me:2262: result: no" >&5 +echo "${ECHO_T}no" >&6 fi # Extract the first word of "true", so it can be a program name with args. set dummy true; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1290: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_path_TRUE'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +echo "$as_me:2267: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_path_TRUE+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - case "$TRUE" in - /*) + case $TRUE in + [\\/]* | ?:[\\/]*) ac_cv_path_TRUE="$TRUE" # Let the user override the test with a path. ;; - ?:/*) - ac_cv_path_TRUE="$TRUE" # Let the user override the test with a dos path. - ;; *) - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_path_TRUE="$ac_dir/$ac_word" - break - fi - done - IFS="$ac_save_ifs" + ac_save_IFS=$IFS; IFS=$ac_path_separator +ac_dummy="$PATH" +for ac_dir in $ac_dummy; do + IFS=$ac_save_IFS + test -z "$ac_dir" && ac_dir=. + if $as_executable_p "$ac_dir/$ac_word"; then + ac_cv_path_TRUE="$ac_dir/$ac_word" + break +fi +done + test -z "$ac_cv_path_TRUE" && ac_cv_path_TRUE="true" ;; esac fi -TRUE="$ac_cv_path_TRUE" +TRUE=$ac_cv_path_TRUE + if test -n "$TRUE"; then - echo "$ac_t""$TRUE" 1>&6 + echo "$as_me:2295: result: $TRUE" >&5 +echo "${ECHO_T}$TRUE" >&6 else - echo "$ac_t""no" 1>&6 + echo "$as_me:2298: result: no" >&5 +echo "${ECHO_T}no" >&6 fi # Extract the first word of "perl", so it can be a program name with args. set dummy perl; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1325: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +echo "$as_me:2303: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_path_PERL+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - case "$PERL" in - /*) + case $PERL in + [\\/]* | ?:[\\/]*) ac_cv_path_PERL="$PERL" # Let the user override the test with a path. ;; - ?:/*) - ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path. - ;; *) - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_path_PERL="$ac_dir/$ac_word" - break - fi - done - IFS="$ac_save_ifs" + ac_save_IFS=$IFS; IFS=$ac_path_separator +ac_dummy="$PATH" +for ac_dir in $ac_dummy; do + IFS=$ac_save_IFS + test -z "$ac_dir" && ac_dir=. + if $as_executable_p "$ac_dir/$ac_word"; then + ac_cv_path_PERL="$ac_dir/$ac_word" + break +fi +done + test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl" ;; esac fi -PERL="$ac_cv_path_PERL" +PERL=$ac_cv_path_PERL + if test -n "$PERL"; then - echo "$ac_t""$PERL" 1>&6 + echo "$as_me:2331: result: $PERL" >&5 +echo "${ECHO_T}$PERL" >&6 else - echo "$ac_t""no" 1>&6 + echo "$as_me:2334: result: no" >&5 +echo "${ECHO_T}no" >&6 fi # Extract the first word of "gzip", so it can be a program name with args. set dummy gzip; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1360: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_path_GZIP'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +echo "$as_me:2339: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_path_GZIP+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - case "$GZIP" in - /*) + case $GZIP in + [\\/]* | ?:[\\/]*) ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path. ;; - ?:/*) - ac_cv_path_GZIP="$GZIP" # Let the user override the test with a dos path. - ;; *) - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_path_GZIP="$ac_dir/$ac_word" - break - fi - done - IFS="$ac_save_ifs" + ac_save_IFS=$IFS; IFS=$ac_path_separator +ac_dummy="$PATH" +for ac_dir in $ac_dummy; do + IFS=$ac_save_IFS + test -z "$ac_dir" && ac_dir=. + if $as_executable_p "$ac_dir/$ac_word"; then + ac_cv_path_GZIP="$ac_dir/$ac_word" + break +fi +done + test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="gzip" ;; esac fi -GZIP="$ac_cv_path_GZIP" +GZIP=$ac_cv_path_GZIP + if test -n "$GZIP"; then - echo "$ac_t""$GZIP" 1>&6 + echo "$as_me:2367: result: $GZIP" >&5 +echo "${ECHO_T}$GZIP" >&6 else - echo "$ac_t""no" 1>&6 + echo "$as_me:2370: result: no" >&5 +echo "${ECHO_T}no" >&6 fi - CPPDEP=${CPPDEP-"gcc -MM"} -echo "$ac_t""** Using C compiler: $CC" 1>&6 -echo "$ac_t""** Using CFLAGS: $CFLAGS" 1>&6 -echo "$ac_t""** Using CPPDEP: $CPPDEP" 1>&6 +echo "$as_me:2376: result: ** Using C compiler: $CC" >&5 +echo "${ECHO_T}** Using C compiler: $CC" >&6 +echo "$as_me:2378: result: ** Using CFLAGS: $CFLAGS" >&5 +echo "${ECHO_T}** Using CFLAGS: $CFLAGS" >&6 +echo "$as_me:2380: result: ** Using CPPDEP: $CPPDEP" >&5 +echo "${ECHO_T}** Using CPPDEP: $CPPDEP" >&6 -cat >> confdefs.h <>confdefs.h <&2; exit 1; } -fi -ac_config_guess=$ac_aux_dir/config.guess -ac_config_sub=$ac_aux_dir/config.sub -ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. + { { echo "$as_me:2404: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 +echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} + { (exit 1); exit 1; }; } +fi +ac_config_guess="$SHELL $ac_aux_dir/config.guess" +ac_config_sub="$SHELL $ac_aux_dir/config.sub" +ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or @@ -1428,31 +2416,39 @@ # SunOS /usr/etc/install # IRIX /sbin/install # AIX /bin/install +# AmigaOS /C/install, which installs bootblocks on floppy discs # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag # AFS /usr/afsws/bin/install, which mishandles nonexistent args # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # ./install, which can be erroneously created by make from ./install.sh. -echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 -echo "configure:1437: checking for a BSD compatible install" >&5 +echo "$as_me:2424: checking for a BSD compatible install" >&5 +echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6 if test -z "$INSTALL"; then -if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +if test "${ac_cv_path_install+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" + ac_save_IFS=$IFS; IFS=$ac_path_separator for ac_dir in $PATH; do + IFS=$ac_save_IFS # Account for people who put trailing slashes in PATH elements. - case "$ac_dir/" in - /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; + case $ac_dir/ in + / | ./ | .// | /cC/* \ + | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \ + | /usr/ucb/* ) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. # Don't use installbsd from OSF since it installs stuff as root # by default. for ac_prog in ginstall scoinst install; do - if test -f $ac_dir/$ac_prog; then + if $as_executable_p "$ac_dir/$ac_prog"; then if test $ac_prog = install && - grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then + grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. : + elif test $ac_prog = install && + grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then + # program-specific install script used by HP pwplus--don't use. + : else ac_cv_path_install="$ac_dir/$ac_prog -c" break 2 @@ -1462,349 +2458,448 @@ ;; esac done - IFS="$ac_save_IFS" fi if test "${ac_cv_path_install+set}" = set; then - INSTALL="$ac_cv_path_install" + INSTALL=$ac_cv_path_install else # As a last resort, use the slow shell script. We don't cache a # path for INSTALL within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the path is relative. - INSTALL="$ac_install_sh" + INSTALL=$ac_install_sh fi fi -echo "$ac_t""$INSTALL" 1>&6 +echo "$as_me:2473: result: $INSTALL" >&5 +echo "${ECHO_T}$INSTALL" >&6 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' -# Extract the first word of "ranlib", so it can be a program name with args. -set dummy ranlib; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1492: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. +set dummy ${ac_tool_prefix}ranlib; ac_word=$2 +echo "$as_me:2487: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_RANLIB+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$RANLIB"; then ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_RANLIB="ranlib" - break - fi - done - IFS="$ac_save_ifs" - test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" + ac_save_IFS=$IFS; IFS=$ac_path_separator +ac_dummy="$PATH" +for ac_dir in $ac_dummy; do + IFS=$ac_save_IFS + test -z "$ac_dir" && ac_dir=. + $as_executable_p "$ac_dir/$ac_word" || continue +ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" +break +done + fi fi -RANLIB="$ac_cv_prog_RANLIB" +RANLIB=$ac_cv_prog_RANLIB if test -n "$RANLIB"; then - echo "$ac_t""$RANLIB" 1>&6 + echo "$as_me:2509: result: $RANLIB" >&5 +echo "${ECHO_T}$RANLIB" >&6 else - echo "$ac_t""no" 1>&6 + echo "$as_me:2512: result: no" >&5 +echo "${ECHO_T}no" >&6 fi +fi +if test -z "$ac_cv_prog_RANLIB"; then + ac_ct_RANLIB=$RANLIB + # Extract the first word of "ranlib", so it can be a program name with args. +set dummy ranlib; ac_word=$2 +echo "$as_me:2521: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$ac_ct_RANLIB"; then + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. +else + ac_save_IFS=$IFS; IFS=$ac_path_separator +ac_dummy="$PATH" +for ac_dir in $ac_dummy; do + IFS=$ac_save_IFS + test -z "$ac_dir" && ac_dir=. + $as_executable_p "$ac_dir/$ac_word" || continue +ac_cv_prog_ac_ct_RANLIB="ranlib" +break +done + + test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" +fi +fi +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB +if test -n "$ac_ct_RANLIB"; then + echo "$as_me:2544: result: $ac_ct_RANLIB" >&5 +echo "${ECHO_T}$ac_ct_RANLIB" >&6 +else + echo "$as_me:2547: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + RANLIB=$ac_ct_RANLIB +else + RANLIB="$ac_cv_prog_RANLIB" +fi + # Extract the first word of "ar", so it can be a program name with args. set dummy ar; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1522: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_path_AR'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +echo "$as_me:2558: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_path_AR+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - case "$AR" in - /*) + case $AR in + [\\/]* | ?:[\\/]*) ac_cv_path_AR="$AR" # Let the user override the test with a path. ;; - ?:/*) - ac_cv_path_AR="$AR" # Let the user override the test with a dos path. - ;; *) - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_path_AR="$ac_dir/$ac_word" - break - fi - done - IFS="$ac_save_ifs" + ac_save_IFS=$IFS; IFS=$ac_path_separator +ac_dummy="$PATH" +for ac_dir in $ac_dummy; do + IFS=$ac_save_IFS + test -z "$ac_dir" && ac_dir=. + if $as_executable_p "$ac_dir/$ac_word"; then + ac_cv_path_AR="$ac_dir/$ac_word" + break +fi +done + test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar" ;; esac fi -AR="$ac_cv_path_AR" +AR=$ac_cv_path_AR + if test -n "$AR"; then - echo "$ac_t""$AR" 1>&6 + echo "$as_me:2586: result: $AR" >&5 +echo "${ECHO_T}$AR" >&6 else - echo "$ac_t""no" 1>&6 + echo "$as_me:2589: result: no" >&5 +echo "${ECHO_T}no" >&6 fi # Extract the first word of "ld", so it can be a program name with args. set dummy ld; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1557: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +echo "$as_me:2594: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_path_LD+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - case "$LD" in - /*) + case $LD in + [\\/]* | ?:[\\/]*) ac_cv_path_LD="$LD" # Let the user override the test with a path. ;; - ?:/*) - ac_cv_path_LD="$LD" # Let the user override the test with a dos path. - ;; *) - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_path_LD="$ac_dir/$ac_word" - break - fi - done - IFS="$ac_save_ifs" + ac_save_IFS=$IFS; IFS=$ac_path_separator +ac_dummy="$PATH" +for ac_dir in $ac_dummy; do + IFS=$ac_save_IFS + test -z "$ac_dir" && ac_dir=. + if $as_executable_p "$ac_dir/$ac_word"; then + ac_cv_path_LD="$ac_dir/$ac_word" + break +fi +done + test -z "$ac_cv_path_LD" && ac_cv_path_LD="ld" ;; esac fi -LD="$ac_cv_path_LD" +LD=$ac_cv_path_LD + if test -n "$LD"; then - echo "$ac_t""$LD" 1>&6 + echo "$as_me:2622: result: $LD" >&5 +echo "${ECHO_T}$LD" >&6 else - echo "$ac_t""no" 1>&6 + echo "$as_me:2625: result: no" >&5 +echo "${ECHO_T}no" >&6 fi for ac_prog in 'bison -y' byacc do -# Extract the first word of "$ac_prog", so it can be a program name with args. + # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1594: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +echo "$as_me:2632: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_YACC+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$YACC"; then ac_cv_prog_YACC="$YACC" # Let the user override the test. else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_YACC="$ac_prog" - break - fi - done - IFS="$ac_save_ifs" + ac_save_IFS=$IFS; IFS=$ac_path_separator +ac_dummy="$PATH" +for ac_dir in $ac_dummy; do + IFS=$ac_save_IFS + test -z "$ac_dir" && ac_dir=. + $as_executable_p "$ac_dir/$ac_word" || continue +ac_cv_prog_YACC="$ac_prog" +break +done + fi fi -YACC="$ac_cv_prog_YACC" +YACC=$ac_cv_prog_YACC if test -n "$YACC"; then - echo "$ac_t""$YACC" 1>&6 + echo "$as_me:2654: result: $YACC" >&5 +echo "${ECHO_T}$YACC" >&6 else - echo "$ac_t""no" 1>&6 + echo "$as_me:2657: result: no" >&5 +echo "${ECHO_T}no" >&6 fi -test -n "$YACC" && break + test -n "$YACC" && break done test -n "$YACC" || YACC="yacc" -echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 -echo "configure:1625: checking whether ln -s works" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - rm -f conftestdata -if ln -s X conftestdata 2>/dev/null -then - rm -f conftestdata - ac_cv_prog_LN_S="ln -s" -else - ac_cv_prog_LN_S=ln -fi -fi -LN_S="$ac_cv_prog_LN_S" -if test "$ac_cv_prog_LN_S" = "ln -s"; then - echo "$ac_t""yes" 1>&6 +echo "$as_me:2665: checking whether ln -s works" >&5 +echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 +LN_S=$as_ln_s +if test "$LN_S" = "ln -s"; then + echo "$as_me:2669: result: yes" >&5 +echo "${ECHO_T}yes" >&6 +else + echo "$as_me:2672: result: no, using $LN_S" >&5 +echo "${ECHO_T}no, using $LN_S" >&6 +fi + +echo "$as_me:2676: checking whether sys/types.h defines makedev" >&5 +echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6 +if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - echo "$ac_t""no" 1>&6 -fi - -echo $ac_n "checking whether sys/types.h defines makedev""... $ac_c" 1>&6 -echo "configure:1646: checking whether sys/types.h defines makedev" >&5 -if eval "test \"`echo '$''{'ac_cv_header_sys_types_h_makedev'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 2682 "configure" #include "confdefs.h" #include -int main() { + +int +main () +{ return makedev(0, 0); -; return 0; } -EOF -if { (eval echo configure:1658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:2695: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:2698: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:2701: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:2704: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then ac_cv_header_sys_types_h_makedev=yes else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_header_sys_types_h_makedev=no + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_header_sys_types_h_makedev=no fi -rm -f conftest* +rm -f conftest$ac_exeext conftest.$ac_ext fi - -echo "$ac_t""$ac_cv_header_sys_types_h_makedev" 1>&6 +echo "$as_me:2715: result: $ac_cv_header_sys_types_h_makedev" >&5 +echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6 if test $ac_cv_header_sys_types_h_makedev = no; then -ac_safe=`echo "sys/mkdev.h" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for sys/mkdev.h""... $ac_c" 1>&6 -echo "configure:1676: checking for sys/mkdev.h" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +echo "$as_me:2719: checking for sys/mkdev.h" >&5 +echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6 +if test "${ac_cv_header_sys_mkdev_h+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 2725 "configure" #include "confdefs.h" #include -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1686: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" +_ACEOF +if { (eval echo "$as_me:2729: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 + (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 + ac_status=$? + egrep -v '^ *\+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:2735: \$? = $ac_status" >&5 + (exit $ac_status); }; then + if test -s conftest.err; then + ac_cpp_err=$ac_c_preproc_warn_flag + else + ac_cpp_err= + fi else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 + ac_cpp_err=yes +fi +if test -z "$ac_cpp_err"; then + ac_cv_header_sys_mkdev_h=yes +else + echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" + ac_cv_header_sys_mkdev_h=no fi -rm -f conftest* +rm -f conftest.err conftest.$ac_ext fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - cat >> confdefs.h <<\EOF +echo "$as_me:2754: result: $ac_cv_header_sys_mkdev_h" >&5 +echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6 +if test $ac_cv_header_sys_mkdev_h = yes; then + +cat >>confdefs.h <<\EOF #define MAJOR_IN_MKDEV 1 EOF -else - echo "$ac_t""no" 1>&6 fi - if test $ac_cv_header_sys_mkdev_h = no; then -ac_safe=`echo "sys/sysmacros.h" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for sys/sysmacros.h""... $ac_c" 1>&6 -echo "configure:1714: checking for sys/sysmacros.h" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 + echo "$as_me:2765: checking for sys/sysmacros.h" >&5 +echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6 +if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 2771 "configure" #include "confdefs.h" #include -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1724: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" +_ACEOF +if { (eval echo "$as_me:2775: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 + (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 + ac_status=$? + egrep -v '^ *\+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:2781: \$? = $ac_status" >&5 + (exit $ac_status); }; then + if test -s conftest.err; then + ac_cpp_err=$ac_c_preproc_warn_flag + else + ac_cpp_err= + fi +else + ac_cpp_err=yes +fi +if test -z "$ac_cpp_err"; then + ac_cv_header_sys_sysmacros_h=yes else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 + echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" + ac_cv_header_sys_sysmacros_h=no fi -rm -f conftest* +rm -f conftest.err conftest.$ac_ext fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - cat >> confdefs.h <<\EOF +echo "$as_me:2800: result: $ac_cv_header_sys_sysmacros_h" >&5 +echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6 +if test $ac_cv_header_sys_sysmacros_h = yes; then + +cat >>confdefs.h <<\EOF #define MAJOR_IN_SYSMACROS 1 EOF -else - echo "$ac_t""no" 1>&6 fi fi fi - -echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 -echo "configure:1753: checking whether byte ordering is bigendian" >&5 -if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +echo "$as_me:2813: checking whether byte ordering is bigendian" >&5 +echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 +if test "${ac_cv_c_bigendian+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_cv_c_bigendian=unknown # See if sys/param.h defines the BYTE_ORDER macro. -cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 2821 "configure" #include "confdefs.h" #include #include -int main() { +int +main () +{ #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN bogus endian macros #endif -; return 0; } -EOF -if { (eval echo configure:1771: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:2838: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:2841: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:2844: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:2847: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then # It does; now see whether it defined to BIG_ENDIAN or not. -cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 2851 "configure" #include "confdefs.h" #include #include -int main() { +int +main () +{ #if BYTE_ORDER != BIG_ENDIAN not big endian #endif -; return 0; } -EOF -if { (eval echo configure:1786: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:2868: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:2871: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:2874: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:2877: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then ac_cv_c_bigendian=yes else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_c_bigendian=no + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_c_bigendian=no fi -rm -f conftest* +rm -f conftest.$ac_objext conftest.$ac_ext else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 fi -rm -f conftest* +rm -f conftest.$ac_objext conftest.$ac_ext if test $ac_cv_c_bigendian = unknown; then if test "$cross_compiling" = yes; then - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } + { { echo "$as_me:2893: error: cannot run test program while cross compiling" >&5 +echo "$as_me: error: cannot run test program while cross compiling" >&2;} + { (exit 1); exit 1; }; } else - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 2898 "configure" #include "confdefs.h" -main () { +int +main () +{ /* Are we little or big endian? From Harbison&Steele. */ union { @@ -1814,275 +2909,1560 @@ u.l = 1; exit (u.c[sizeof (long) - 1] == 1); } -EOF -if { (eval echo configure:1819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then +_ACEOF +rm -f conftest$ac_exeext +if { (eval echo "$as_me:2914: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:2917: \$? = $ac_status" >&5 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext' + { (eval echo "$as_me:2919: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:2922: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then ac_cv_c_bigendian=no else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_c_bigendian=yes + echo "$as_me: program exited with status $ac_status" >&5 +echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_c_bigendian=yes fi -rm -fr conftest* +rm -f conftest$ac_exeext conftest.$ac_ext fi - fi fi - -echo "$ac_t""$ac_cv_c_bigendian" 1>&6 +echo "$as_me:2935: result: $ac_cv_c_bigendian" >&5 +echo "${ECHO_T}$ac_cv_c_bigendian" >&6 if test $ac_cv_c_bigendian = yes; then - cat >> confdefs.h <<\EOF + +cat >>confdefs.h <<\EOF #define WORDS_BIGENDIAN 1 EOF fi + +echo "$as_me:2945: checking for $CC option to accept ANSI C" >&5 +echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 +if test "${ac_cv_prog_cc_stdc+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_cv_prog_cc_stdc=no +ac_save_CC=$CC +cat >conftest.$ac_ext <<_ACEOF +#line 2953 "configure" +#include "confdefs.h" +#include +#include +#include +#include +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ +struct buf { int x; }; +FILE * (*rcsopen) (struct buf *, struct stat *, int); +static char *e (p, i) + char **p; + int i; +{ + return p[i]; +} +static char *f (char * (*g) (char **, int), char **p, ...) +{ + char *s; + va_list v; + va_start (v,p); + s = g (p, va_arg (v,int)); + va_end (v); + return s; +} +int test (int i, double x); +struct s1 {int (*f) (int a);}; +struct s2 {int (*f) (double a);}; +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); +int argc; +char **argv; +int +main () +{ +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; + ; + return 0; +} +_ACEOF +# Don't try gcc -ansi; that turns off useful extensions and +# breaks some systems' header files. +# AIX -qlanglvl=ansi +# Ultrix and OSF/1 -std1 +# HP-UX 10.20 and later -Ae +# HP-UX older versions -Aa -D_HPUX_SOURCE +# SVR4 -Xc -D__EXTENSIONS__ +for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" +do + CC="$ac_save_CC $ac_arg" + rm -f conftest.$ac_objext +if { (eval echo "$as_me:3002: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:3005: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:3008: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:3011: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_prog_cc_stdc=$ac_arg +break +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +fi +rm -f conftest.$ac_objext +done +rm -f conftest.$ac_ext conftest.$ac_objext +CC=$ac_save_CC + +fi + +case "x$ac_cv_prog_cc_stdc" in + x|xno) + echo "$as_me:3028: result: none needed" >&5 +echo "${ECHO_T}none needed" >&6 ;; + *) + echo "$as_me:3031: result: $ac_cv_prog_cc_stdc" >&5 +echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 + CC="$CC $ac_cv_prog_cc_stdc" ;; +esac -echo $ac_n "checking for inline""... $ac_c" 1>&6 -echo "configure:1843: checking for inline" >&5 -if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +echo "$as_me:3036: checking for inline" >&5 +echo $ECHO_N "checking for inline... $ECHO_C" >&6 +if test "${ac_cv_c_inline+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_cv_c_inline=no for ac_kw in inline __inline__ __inline; do - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 3044 "configure" #include "confdefs.h" - -int main() { -} $ac_kw foo() { -; return 0; } -EOF -if { (eval echo configure:1857: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* +#ifndef __cplusplus +static $ac_kw int static_foo () {return 0; } +$ac_kw int foo () {return 0; } +#endif + +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:3053: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:3056: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:3059: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:3062: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then ac_cv_c_inline=$ac_kw; break else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 fi -rm -f conftest* +rm -f conftest.$ac_objext conftest.$ac_ext done fi - -echo "$ac_t""$ac_cv_c_inline" 1>&6 -case "$ac_cv_c_inline" in +echo "$as_me:3073: result: $ac_cv_c_inline" >&5 +echo "${ECHO_T}$ac_cv_c_inline" >&6 +case $ac_cv_c_inline in inline | yes) ;; - no) cat >> confdefs.h <<\EOF -#define inline + no) +cat >>confdefs.h <<\EOF +#define inline EOF ;; - *) cat >> confdefs.h <>confdefs.h <&6 -echo "configure:1883: checking size of void *" >&5 -if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +echo "$as_me:3088: checking for ANSI C header files" >&5 +echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 +if test "${ac_cv_header_stdc+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else + cat >conftest.$ac_ext <<_ACEOF +#line 3094 "configure" +#include "confdefs.h" +#include +#include +#include +#include + +_ACEOF +if { (eval echo "$as_me:3102: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 + (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 + ac_status=$? + egrep -v '^ *\+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:3108: \$? = $ac_status" >&5 + (exit $ac_status); }; then + if test -s conftest.err; then + ac_cpp_err=$ac_c_preproc_warn_flag + else + ac_cpp_err= + fi +else + ac_cpp_err=yes +fi +if test -z "$ac_cpp_err"; then + ac_cv_header_stdc=yes +else + echo "$as_me: failed program was:" >&5 + cat conftest.$ac_ext >&5 + ac_cv_header_stdc=no +fi +rm -f conftest.err conftest.$ac_ext + +if test $ac_cv_header_stdc = yes; then + # SunOS 4.x string.h does not declare mem*, contrary to ANSI. + cat >conftest.$ac_ext <<_ACEOF +#line 3130 "configure" +#include "confdefs.h" +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "memchr" >/dev/null 2>&1; then + : +else + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. + cat >conftest.$ac_ext <<_ACEOF +#line 3148 "configure" +#include "confdefs.h" +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "free" >/dev/null 2>&1; then + : +else + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } + : else - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 3169 "configure" #include "confdefs.h" -#include -main() +#include +#if ((' ' & 0x0FF) == 0x020) +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) +#else +# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ + || ('j' <= (c) && (c) <= 'r') \ + || ('s' <= (c) && (c) <= 'z')) +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) +#endif + +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) +int +main () { - FILE *f=fopen("conftestval", "w"); - if (!f) exit(1); - fprintf(f, "%d\n", sizeof(void *)); - exit(0); + int i; + for (i = 0; i < 256; i++) + if (XOR (islower (i), ISLOWER (i)) + || toupper (i) != TOUPPER (i)) + exit(2); + exit (0); } +_ACEOF +rm -f conftest$ac_exeext +if { (eval echo "$as_me:3195: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:3198: \$? = $ac_status" >&5 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext' + { (eval echo "$as_me:3200: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:3203: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + : +else + echo "$as_me: program exited with status $ac_status" >&5 +echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_header_stdc=no +fi +rm -f conftest$ac_exeext conftest.$ac_ext +fi +fi +fi +echo "$as_me:3216: result: $ac_cv_header_stdc" >&5 +echo "${ECHO_T}$ac_cv_header_stdc" >&6 +if test $ac_cv_header_stdc = yes; then + +cat >>confdefs.h <<\EOF +#define STDC_HEADERS 1 EOF -if { (eval echo configure:1902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_sizeof_void_p=`cat conftestval` + +fi + +for ac_header in stdlib.h string.h memory.h strings.h inttypes.h unistd.h +do +ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` +echo "$as_me:3229: checking for $ac_header" >&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 +if eval "test \"\${$ac_ac_Header+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +#line 3235 "configure" +#include "confdefs.h" +#include <$ac_header> +_ACEOF +if { (eval echo "$as_me:3239: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 + (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 + ac_status=$? + egrep -v '^ *\+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:3245: \$? = $ac_status" >&5 + (exit $ac_status); }; then + if test -s conftest.err; then + ac_cpp_err=$ac_c_preproc_warn_flag + else + ac_cpp_err= + fi else - echo "configure: failed program was:" >&5 + ac_cpp_err=yes +fi +if test -z "$ac_cpp_err"; then + eval "$ac_ac_Header=yes" +else + echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_sizeof_void_p=0 + eval "$ac_ac_Header=no" fi -rm -fr conftest* +rm -f conftest.err conftest.$ac_ext fi +echo "$as_me:3264: result: `eval echo '${'$ac_ac_Header'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 +if test `eval echo '${'$ac_ac_Header'}'` = yes; then + cat >>confdefs.h <&5 +echo $ECHO_N "checking for void *... $ECHO_C" >&6 +if test "${ac_cv_type_void_p+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +#line 3280 "configure" +#include "confdefs.h" +$ac_includes_default +int +main () +{ +if ((void * *) 0) + return 0; +if (sizeof (void *)) + return 0; + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:3295: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:3298: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:3301: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:3304: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_type_void_p=yes +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_type_void_p=no +fi +rm -f conftest.$ac_objext conftest.$ac_ext +fi +echo "$as_me:3314: result: $ac_cv_type_void_p" >&5 +echo "${ECHO_T}$ac_cv_type_void_p" >&6 + +echo "$as_me:3317: checking size of void *" >&5 +echo $ECHO_N "checking size of void *... $ECHO_C" >&6 +if test "${ac_cv_sizeof_void_p+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test "$ac_cv_type_void_p" = yes; then + if test "$cross_compiling" = yes; then + # Depending upon the size, compute the lo and hi bounds. +cat >conftest.$ac_ext <<_ACEOF +#line 3326 "configure" +#include "confdefs.h" +$ac_includes_default +int +main () +{ +int _array_ [1 - 2 * !((sizeof (void *)) >= 0)] + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:3338: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:3341: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:3344: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:3347: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_lo=0 ac_mid=0 + while :; do + cat >conftest.$ac_ext <<_ACEOF +#line 3352 "configure" +#include "confdefs.h" +$ac_includes_default +int +main () +{ +int _array_ [1 - 2 * !((sizeof (void *)) <= $ac_mid)] + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:3364: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:3367: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:3370: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:3373: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_hi=$ac_mid; break +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1` +fi +rm -f conftest.$ac_objext conftest.$ac_ext + done +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_hi=-1 ac_mid=-1 + while :; do + cat >conftest.$ac_ext <<_ACEOF +#line 3389 "configure" +#include "confdefs.h" +$ac_includes_default +int +main () +{ +int _array_ [1 - 2 * !((sizeof (void *)) >= $ac_mid)] + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:3401: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:3404: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:3407: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:3410: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_lo=$ac_mid; break +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid` +fi +rm -f conftest.$ac_objext conftest.$ac_ext + done +fi +rm -f conftest.$ac_objext conftest.$ac_ext +# Binary search between lo and hi bounds. +while test "x$ac_lo" != "x$ac_hi"; do + ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` + cat >conftest.$ac_ext <<_ACEOF +#line 3426 "configure" +#include "confdefs.h" +$ac_includes_default +int +main () +{ +int _array_ [1 - 2 * !((sizeof (void *)) <= $ac_mid)] + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:3438: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:3441: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:3444: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:3447: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_hi=$ac_mid +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_lo=`expr $ac_mid + 1` +fi +rm -f conftest.$ac_objext conftest.$ac_ext +done +ac_cv_sizeof_void_p=$ac_lo +else + if test "$cross_compiling" = yes; then + { { echo "$as_me:3460: error: cannot run test program while cross compiling" >&5 +echo "$as_me: error: cannot run test program while cross compiling" >&2;} + { (exit 1); exit 1; }; } +else + cat >conftest.$ac_ext <<_ACEOF +#line 3465 "configure" +#include "confdefs.h" +$ac_includes_default +int +main () +{ +FILE *f = fopen ("conftest.val", "w"); +if (!f) + exit (1); +fprintf (f, "%d", (sizeof (void *))); +fclose (f); + ; + return 0; +} +_ACEOF +rm -f conftest$ac_exeext +if { (eval echo "$as_me:3481: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:3484: \$? = $ac_status" >&5 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext' + { (eval echo "$as_me:3486: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:3489: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_sizeof_void_p=`cat conftest.val` +else + echo "$as_me: program exited with status $ac_status" >&5 +echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +fi +rm -f conftest$ac_exeext conftest.$ac_ext +fi +fi +rm -f conftest.val +else + ac_cv_sizeof_void_p=0 +fi fi -echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6 -cat >> confdefs.h <&5 +echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 +cat >>confdefs.h <&6 -echo "configure:1922: checking size of short" >&5 -if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +echo "$as_me:3511: checking for short" >&5 +echo $ECHO_N "checking for short... $ECHO_C" >&6 +if test "${ac_cv_type_short+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +#line 3517 "configure" +#include "confdefs.h" +$ac_includes_default +int +main () +{ +if ((short *) 0) + return 0; +if (sizeof (short)) + return 0; + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:3532: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:3535: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:3538: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:3541: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_type_short=yes +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_type_short=no +fi +rm -f conftest.$ac_objext conftest.$ac_ext +fi +echo "$as_me:3551: result: $ac_cv_type_short" >&5 +echo "${ECHO_T}$ac_cv_type_short" >&6 + +echo "$as_me:3554: checking size of short" >&5 +echo $ECHO_N "checking size of short... $ECHO_C" >&6 +if test "${ac_cv_sizeof_short+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else + if test "$ac_cv_type_short" = yes; then if test "$cross_compiling" = yes; then - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } + # Depending upon the size, compute the lo and hi bounds. +cat >conftest.$ac_ext <<_ACEOF +#line 3563 "configure" +#include "confdefs.h" +$ac_includes_default +int +main () +{ +int _array_ [1 - 2 * !((sizeof (short)) >= 0)] + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:3575: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:3578: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:3581: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:3584: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_lo=0 ac_mid=0 + while :; do + cat >conftest.$ac_ext <<_ACEOF +#line 3589 "configure" +#include "confdefs.h" +$ac_includes_default +int +main () +{ +int _array_ [1 - 2 * !((sizeof (short)) <= $ac_mid)] + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:3601: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:3604: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:3607: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:3610: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_hi=$ac_mid; break +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1` +fi +rm -f conftest.$ac_objext conftest.$ac_ext + done else - cat > conftest.$ac_ext <&5 +cat conftest.$ac_ext >&5 +ac_hi=-1 ac_mid=-1 + while :; do + cat >conftest.$ac_ext <<_ACEOF +#line 3626 "configure" #include "confdefs.h" -#include -main() +$ac_includes_default +int +main () { - FILE *f=fopen("conftestval", "w"); - if (!f) exit(1); - fprintf(f, "%d\n", sizeof(short)); - exit(0); +int _array_ [1 - 2 * !((sizeof (short)) >= $ac_mid)] + ; + return 0; } -EOF -if { (eval echo configure:1941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_sizeof_short=`cat conftestval` +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:3638: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:3641: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:3644: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:3647: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_lo=$ac_mid; break +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid` +fi +rm -f conftest.$ac_objext conftest.$ac_ext + done +fi +rm -f conftest.$ac_objext conftest.$ac_ext +# Binary search between lo and hi bounds. +while test "x$ac_lo" != "x$ac_hi"; do + ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` + cat >conftest.$ac_ext <<_ACEOF +#line 3663 "configure" +#include "confdefs.h" +$ac_includes_default +int +main () +{ +int _array_ [1 - 2 * !((sizeof (short)) <= $ac_mid)] + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:3675: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:3678: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:3681: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:3684: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_hi=$ac_mid +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_lo=`expr $ac_mid + 1` +fi +rm -f conftest.$ac_objext conftest.$ac_ext +done +ac_cv_sizeof_short=$ac_lo else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_sizeof_short=0 + if test "$cross_compiling" = yes; then + { { echo "$as_me:3697: error: cannot run test program while cross compiling" >&5 +echo "$as_me: error: cannot run test program while cross compiling" >&2;} + { (exit 1); exit 1; }; } +else + cat >conftest.$ac_ext <<_ACEOF +#line 3702 "configure" +#include "confdefs.h" +$ac_includes_default +int +main () +{ +FILE *f = fopen ("conftest.val", "w"); +if (!f) + exit (1); +fprintf (f, "%d", (sizeof (short))); +fclose (f); + ; + return 0; +} +_ACEOF +rm -f conftest$ac_exeext +if { (eval echo "$as_me:3718: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:3721: \$? = $ac_status" >&5 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext' + { (eval echo "$as_me:3723: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:3726: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_sizeof_short=`cat conftest.val` +else + echo "$as_me: program exited with status $ac_status" >&5 +echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 fi -rm -fr conftest* +rm -f conftest$ac_exeext conftest.$ac_ext fi - +fi +rm -f conftest.val +else + ac_cv_sizeof_short=0 fi -echo "$ac_t""$ac_cv_sizeof_short" 1>&6 -cat >> confdefs.h <&5 +echo "${ECHO_T}$ac_cv_sizeof_short" >&6 +cat >>confdefs.h <&6 -echo "configure:1961: checking size of int" >&5 -if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +echo "$as_me:3748: checking for int" >&5 +echo $ECHO_N "checking for int... $ECHO_C" >&6 +if test "${ac_cv_type_int+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +#line 3754 "configure" +#include "confdefs.h" +$ac_includes_default +int +main () +{ +if ((int *) 0) + return 0; +if (sizeof (int)) + return 0; + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:3769: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:3772: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:3775: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:3778: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_type_int=yes +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_type_int=no +fi +rm -f conftest.$ac_objext conftest.$ac_ext +fi +echo "$as_me:3788: result: $ac_cv_type_int" >&5 +echo "${ECHO_T}$ac_cv_type_int" >&6 + +echo "$as_me:3791: checking size of int" >&5 +echo $ECHO_N "checking size of int... $ECHO_C" >&6 +if test "${ac_cv_sizeof_int+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test "$ac_cv_type_int" = yes; then + if test "$cross_compiling" = yes; then + # Depending upon the size, compute the lo and hi bounds. +cat >conftest.$ac_ext <<_ACEOF +#line 3800 "configure" +#include "confdefs.h" +$ac_includes_default +int +main () +{ +int _array_ [1 - 2 * !((sizeof (int)) >= 0)] + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:3812: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:3815: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:3818: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:3821: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_lo=0 ac_mid=0 + while :; do + cat >conftest.$ac_ext <<_ACEOF +#line 3826 "configure" +#include "confdefs.h" +$ac_includes_default +int +main () +{ +int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)] + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:3838: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:3841: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:3844: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:3847: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_hi=$ac_mid; break +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1` +fi +rm -f conftest.$ac_objext conftest.$ac_ext + done else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_hi=-1 ac_mid=-1 + while :; do + cat >conftest.$ac_ext <<_ACEOF +#line 3863 "configure" +#include "confdefs.h" +$ac_includes_default +int +main () +{ +int _array_ [1 - 2 * !((sizeof (int)) >= $ac_mid)] + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:3875: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:3878: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:3881: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:3884: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_lo=$ac_mid; break +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid` +fi +rm -f conftest.$ac_objext conftest.$ac_ext + done +fi +rm -f conftest.$ac_objext conftest.$ac_ext +# Binary search between lo and hi bounds. +while test "x$ac_lo" != "x$ac_hi"; do + ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` + cat >conftest.$ac_ext <<_ACEOF +#line 3900 "configure" +#include "confdefs.h" +$ac_includes_default +int +main () +{ +int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)] + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:3912: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:3915: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:3918: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:3921: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_hi=$ac_mid +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_lo=`expr $ac_mid + 1` +fi +rm -f conftest.$ac_objext conftest.$ac_ext +done +ac_cv_sizeof_int=$ac_lo +else if test "$cross_compiling" = yes; then - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } + { { echo "$as_me:3934: error: cannot run test program while cross compiling" >&5 +echo "$as_me: error: cannot run test program while cross compiling" >&2;} + { (exit 1); exit 1; }; } else - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 3939 "configure" #include "confdefs.h" -#include -main() +$ac_includes_default +int +main () { - FILE *f=fopen("conftestval", "w"); - if (!f) exit(1); - fprintf(f, "%d\n", sizeof(int)); - exit(0); +FILE *f = fopen ("conftest.val", "w"); +if (!f) + exit (1); +fprintf (f, "%d", (sizeof (int))); +fclose (f); + ; + return 0; } -EOF -if { (eval echo configure:1980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_sizeof_int=`cat conftestval` +_ACEOF +rm -f conftest$ac_exeext +if { (eval echo "$as_me:3955: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:3958: \$? = $ac_status" >&5 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext' + { (eval echo "$as_me:3960: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:3963: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_sizeof_int=`cat conftest.val` +else + echo "$as_me: program exited with status $ac_status" >&5 +echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +fi +rm -f conftest$ac_exeext conftest.$ac_ext +fi +fi +rm -f conftest.val else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* ac_cv_sizeof_int=0 fi -rm -fr conftest* fi +echo "$as_me:3979: result: $ac_cv_sizeof_int" >&5 +echo "${ECHO_T}$ac_cv_sizeof_int" >&6 +cat >>confdefs.h <&5 +echo $ECHO_N "checking for long... $ECHO_C" >&6 +if test "${ac_cv_type_long+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +#line 3991 "configure" +#include "confdefs.h" +$ac_includes_default +int +main () +{ +if ((long *) 0) + return 0; +if (sizeof (long)) + return 0; + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:4006: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:4009: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:4012: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:4015: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_type_long=yes +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_type_long=no +fi +rm -f conftest.$ac_objext conftest.$ac_ext +fi +echo "$as_me:4025: result: $ac_cv_type_long" >&5 +echo "${ECHO_T}$ac_cv_type_long" >&6 + +echo "$as_me:4028: checking size of long" >&5 +echo $ECHO_N "checking size of long... $ECHO_C" >&6 +if test "${ac_cv_sizeof_long+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test "$ac_cv_type_long" = yes; then + if test "$cross_compiling" = yes; then + # Depending upon the size, compute the lo and hi bounds. +cat >conftest.$ac_ext <<_ACEOF +#line 4037 "configure" +#include "confdefs.h" +$ac_includes_default +int +main () +{ +int _array_ [1 - 2 * !((sizeof (long)) >= 0)] + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:4049: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:4052: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:4055: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:4058: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_lo=0 ac_mid=0 + while :; do + cat >conftest.$ac_ext <<_ACEOF +#line 4063 "configure" +#include "confdefs.h" +$ac_includes_default +int +main () +{ +int _array_ [1 - 2 * !((sizeof (long)) <= $ac_mid)] + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:4075: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:4078: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:4081: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:4084: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_hi=$ac_mid; break +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1` +fi +rm -f conftest.$ac_objext conftest.$ac_ext + done +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_hi=-1 ac_mid=-1 + while :; do + cat >conftest.$ac_ext <<_ACEOF +#line 4100 "configure" +#include "confdefs.h" +$ac_includes_default +int +main () +{ +int _array_ [1 - 2 * !((sizeof (long)) >= $ac_mid)] + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:4112: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:4115: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:4118: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:4121: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_lo=$ac_mid; break +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid` +fi +rm -f conftest.$ac_objext conftest.$ac_ext + done +fi +rm -f conftest.$ac_objext conftest.$ac_ext +# Binary search between lo and hi bounds. +while test "x$ac_lo" != "x$ac_hi"; do + ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` + cat >conftest.$ac_ext <<_ACEOF +#line 4137 "configure" +#include "confdefs.h" +$ac_includes_default +int +main () +{ +int _array_ [1 - 2 * !((sizeof (long)) <= $ac_mid)] + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:4149: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:4152: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:4155: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:4158: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_hi=$ac_mid +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_lo=`expr $ac_mid + 1` +fi +rm -f conftest.$ac_objext conftest.$ac_ext +done +ac_cv_sizeof_long=$ac_lo +else + if test "$cross_compiling" = yes; then + { { echo "$as_me:4171: error: cannot run test program while cross compiling" >&5 +echo "$as_me: error: cannot run test program while cross compiling" >&2;} + { (exit 1); exit 1; }; } +else + cat >conftest.$ac_ext <<_ACEOF +#line 4176 "configure" +#include "confdefs.h" +$ac_includes_default +int +main () +{ +FILE *f = fopen ("conftest.val", "w"); +if (!f) + exit (1); +fprintf (f, "%d", (sizeof (long))); +fclose (f); + ; + return 0; +} +_ACEOF +rm -f conftest$ac_exeext +if { (eval echo "$as_me:4192: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:4195: \$? = $ac_status" >&5 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext' + { (eval echo "$as_me:4197: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:4200: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_sizeof_long=`cat conftest.val` +else + echo "$as_me: program exited with status $ac_status" >&5 +echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +fi +rm -f conftest$ac_exeext conftest.$ac_ext +fi +fi +rm -f conftest.val +else + ac_cv_sizeof_long=0 +fi fi -echo "$ac_t""$ac_cv_sizeof_int" 1>&6 -cat >> confdefs.h <&5 +echo "${ECHO_T}$ac_cv_sizeof_long" >&6 +cat >>confdefs.h <&6 -echo "configure:2000: checking size of long" >&5 -if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +echo "$as_me:4222: checking for double" >&5 +echo $ECHO_N "checking for double... $ECHO_C" >&6 +if test "${ac_cv_type_double+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - if test "$cross_compiling" = yes; then - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } + cat >conftest.$ac_ext <<_ACEOF +#line 4228 "configure" +#include "confdefs.h" +$ac_includes_default +int +main () +{ +if ((double *) 0) + return 0; +if (sizeof (double)) + return 0; + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:4243: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:4246: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:4249: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:4252: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_type_double=yes +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_type_double=no +fi +rm -f conftest.$ac_objext conftest.$ac_ext +fi +echo "$as_me:4262: result: $ac_cv_type_double" >&5 +echo "${ECHO_T}$ac_cv_type_double" >&6 + +echo "$as_me:4265: checking size of double" >&5 +echo $ECHO_N "checking size of double... $ECHO_C" >&6 +if test "${ac_cv_sizeof_double+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 4274 "configure" #include "confdefs.h" -#include -main() +$ac_includes_default +int +main () { - FILE *f=fopen("conftestval", "w"); - if (!f) exit(1); - fprintf(f, "%d\n", sizeof(long)); - exit(0); +int _array_ [1 - 2 * !((sizeof (double)) >= 0)] + ; + return 0; } -EOF -if { (eval echo configure:2019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_sizeof_long=`cat conftestval` +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:4286: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:4289: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:4292: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:4295: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_lo=0 ac_mid=0 + while :; do + cat >conftest.$ac_ext <<_ACEOF +#line 4300 "configure" +#include "confdefs.h" +$ac_includes_default +int +main () +{ +int _array_ [1 - 2 * !((sizeof (double)) <= $ac_mid)] + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:4312: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:4315: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:4318: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:4321: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_hi=$ac_mid; break +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1` +fi +rm -f conftest.$ac_objext conftest.$ac_ext + done else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_sizeof_long=0 + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_hi=-1 ac_mid=-1 + while :; do + cat >conftest.$ac_ext <<_ACEOF +#line 4337 "configure" +#include "confdefs.h" +$ac_includes_default +int +main () +{ +int _array_ [1 - 2 * !((sizeof (double)) >= $ac_mid)] + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:4349: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:4352: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:4355: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:4358: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_lo=$ac_mid; break +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid` fi -rm -fr conftest* +rm -f conftest.$ac_objext conftest.$ac_ext + done fi - +rm -f conftest.$ac_objext conftest.$ac_ext +# Binary search between lo and hi bounds. +while test "x$ac_lo" != "x$ac_hi"; do + ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` + cat >conftest.$ac_ext <<_ACEOF +#line 4374 "configure" +#include "confdefs.h" +$ac_includes_default +int +main () +{ +int _array_ [1 - 2 * !((sizeof (double)) <= $ac_mid)] + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:4386: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:4389: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:4392: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:4395: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_hi=$ac_mid +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_lo=`expr $ac_mid + 1` fi -echo "$ac_t""$ac_cv_sizeof_long" 1>&6 -cat >> confdefs.h <&6 -echo "configure:2039: checking size of double" >&5 -if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +rm -f conftest.$ac_objext conftest.$ac_ext +done +ac_cv_sizeof_double=$ac_lo else if test "$cross_compiling" = yes; then - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } + { { echo "$as_me:4408: error: cannot run test program while cross compiling" >&5 +echo "$as_me: error: cannot run test program while cross compiling" >&2;} + { (exit 1); exit 1; }; } else - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 4413 "configure" #include "confdefs.h" -#include -main() +$ac_includes_default +int +main () { - FILE *f=fopen("conftestval", "w"); - if (!f) exit(1); - fprintf(f, "%d\n", sizeof(double)); - exit(0); +FILE *f = fopen ("conftest.val", "w"); +if (!f) + exit (1); +fprintf (f, "%d", (sizeof (double))); +fclose (f); + ; + return 0; } -EOF -if { (eval echo configure:2058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_sizeof_double=`cat conftestval` +_ACEOF +rm -f conftest$ac_exeext +if { (eval echo "$as_me:4429: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:4432: \$? = $ac_status" >&5 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext' + { (eval echo "$as_me:4434: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:4437: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_sizeof_double=`cat conftest.val` +else + echo "$as_me: program exited with status $ac_status" >&5 +echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +fi +rm -f conftest$ac_exeext conftest.$ac_ext +fi +fi +rm -f conftest.val else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* ac_cv_sizeof_double=0 fi -rm -fr conftest* -fi - fi -echo "$ac_t""$ac_cv_sizeof_double" 1>&6 -cat >> confdefs.h <&5 +echo "${ECHO_T}$ac_cv_sizeof_double" >&6 +cat >>confdefs.h <&6 +echo "$as_me:4509: result: Using ZMailer parametrization file path: $ZMAILERCFGFILE" >&5 +echo "${ECHO_T}Using ZMailer parametrization file path: $ZMAILERCFGFILE" >&6 -if test -r $ZMAILERCFGFILE -a "$use_zcfg" != "0" ; then +if test -r $ZMAILERCFGFILE -a "$load_zcfg" != "0" ; then # Source the previous configuration values for various environment parameters . $ZMAILERCFGFILE - echo "$ac_t"" The file exists, we use its values as defaults" 1>&6 + echo "$as_me:4515: result: The file exists, we use its values as defaults" >&5 +echo "${ECHO_T} The file exists, we use its values as defaults" >&6 fi - use_mailbox=0 + # Check whether --with-mailbox or --without-mailbox was given. if test "${with_mailbox+set}" = set; then withval="$with_mailbox" use_mailbox=1 -fi - +fi; if test "$use_mailbox" = 0 ; then # No explicite value given, make some guesses as to where it might be.. for DEFMAILBOX in /var/mail /var/spool/mail /usr/mail /usr/spool/mail x @@ -2159,16 +4544,16 @@ else MAILBOX="$withval" fi -echo "$ac_t""Using ZMailer MAILBOX directory path: $MAILBOX" 1>&6 - +echo "$as_me:4547: result: Using ZMailer MAILBOX directory path: $MAILBOX" >&5 +echo "${ECHO_T}Using ZMailer MAILBOX directory path: $MAILBOX" >&6 use_postoffice=0 + # Check whether --with-postoffice or --without-postoffice was given. if test "${with_postoffice+set}" = set; then withval="$with_postoffice" use_postoffice=1 -fi - +fi; if test "$use_postoffice" = 0 ; then # No explicite value given, make some guesses as to where it might be.. # XX: Should see what the MAILBOX value is, and then default between @@ -2183,77 +4568,76 @@ else POSTOFFICE="$withval" fi -echo "$ac_t""Using ZMailer POSTOFFICE path: $POSTOFFICE" 1>&6 - +echo "$as_me:4571: result: Using ZMailer POSTOFFICE path: $POSTOFFICE" >&5 +echo "${ECHO_T}Using ZMailer POSTOFFICE path: $POSTOFFICE" >&6 - use_mailshare=0 + # Check whether --with-mailshare or --without-mailshare was given. if test "${with_mailshare+set}" = set; then withval="$with_mailshare" use_mailshare=1 -fi - +fi; if test "$use_mailshare" = 0 ; then eval MAILSHARE="${MAILSHARE-$prefix}" else MAILSHARE="$withval" fi -echo "$ac_t""Using ZMailer MAILSHARE directory path: $MAILSHARE" 1>&6 +echo "$as_me:4586: result: Using ZMailer MAILSHARE directory path: $MAILSHARE" >&5 +echo "${ECHO_T}Using ZMailer MAILSHARE directory path: $MAILSHARE" >&6 - use_mailvar=0 + # Check whether --with-mailvar or --without-mailvar was given. if test "${with_mailvar+set}" = set; then withval="$with_mailvar" use_mailvar=1 -fi - +fi; if test "$use_mailvar" = 0 ; then eval MAILVAR="${MAILVAR-$prefix}" else MAILVAR="$withval" fi -echo "$ac_t""Using ZMailer MAILVAR directory path: $MAILVAR" 1>&6 +echo "$as_me:4601: result: Using ZMailer MAILVAR directory path: $MAILVAR" >&5 +echo "${ECHO_T}Using ZMailer MAILVAR directory path: $MAILVAR" >&6 - use_mailbin=0 + # Check whether --with-mailbin or --without-mailbin was given. if test "${with_mailbin+set}" = set; then withval="$with_mailbin" use_mailbin=1 -fi - +fi; if test "$use_mailbin" = 0 ; then eval MAILBIN="${MAILBIN-${MAILSHARE}/bin}" else MAILBIN="$withval" fi -echo "$ac_t""Using ZMailer MAILBIN directory path: $MAILBIN" 1>&6 +echo "$as_me:4616: result: Using ZMailer MAILBIN directory path: $MAILBIN" >&5 +echo "${ECHO_T}Using ZMailer MAILBIN directory path: $MAILBIN" >&6 - use_logdir=0 + # Check whether --with-logdir or --without-logdir was given. if test "${with_logdir+set}" = set; then withval="$with_logdir" use_logdir=1 -fi - +fi; if test "$use_logdir" = 0; then LOGDIR=${LOGDIR-/var/log/mail} else LOGDIR="$withval" fi -echo "$ac_t""Using ZMailer LOGDIR directory path: $LOGDIR" 1>&6 +echo "$as_me:4631: result: Using ZMailer LOGDIR directory path: $LOGDIR" >&5 +echo "${ECHO_T}Using ZMailer LOGDIR directory path: $LOGDIR" >&6 - use_routeuser=0 + # Check whether --with-routeuser-is-abnormal or --without-routeuser-is-abnormal was given. if test "${with_routeuser_is_abnormal+set}" = set; then withval="$with_routeuser_is_abnormal" use_routeuser=1 -fi - +fi; if test "$use_routeuser" = 0; then # When not defined, ASSUME ABNORMAL UNIX, unless ZCONFIG file # was read in, and it had some value for this.. @@ -2265,86 +4649,88 @@ else ROUTEUSER_IN_ABNORMAL_UNIX=abnormal fi -echo "$ac_t""Using ZMailer ROUTEUSER_IN_ABNORMAL_UNIX value: '$ROUTEUSER_IN_ABNORMAL_UNIX'" 1>&6 +echo "$as_me:4652: result: Using ZMailer ROUTEUSER_IN_ABNORMAL_UNIX value: '$ROUTEUSER_IN_ABNORMAL_UNIX'" >&5 +echo "${ECHO_T}Using ZMailer ROUTEUSER_IN_ABNORMAL_UNIX value: '$ROUTEUSER_IN_ABNORMAL_UNIX'" >&6 - - - use_nntpserver=0 + # Check whether --with-nntpserver or --without-nntpserver was given. if test "${with_nntpserver+set}" = set; then withval="$with_nntpserver" use_nntpserver=1 -fi - +fi; if test "$use_nntpserver" = 0; then NNTPSERVER="${NNTPSERVER-$defNNTPSERVER}" else NNTPSERVER="$withval" fi -echo "$ac_t""Using ZMailer NNTPSERVER host name: $NNTPSERVER" 1>&6 +echo "$as_me:4667: result: Using ZMailer NNTPSERVER host name: $NNTPSERVER" >&5 +echo "${ECHO_T}Using ZMailer NNTPSERVER host name: $NNTPSERVER" >&6 if test "x$INEWSBIN" = "x" ; then # Extract the first word of "inews", so it can be a program name with args. set dummy inews; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2292: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_path_INEWS'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +echo "$as_me:4673: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_path_INEWS+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - case "$INEWS" in - /*) + case $INEWS in + [\\/]* | ?:[\\/]*) ac_cv_path_INEWS="$INEWS" # Let the user override the test with a path. ;; - ?:/*) - ac_cv_path_INEWS="$INEWS" # Let the user override the test with a dos path. - ;; *) - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_path_INEWS="$ac_dir/$ac_word" - break - fi - done - IFS="$ac_save_ifs" + ac_save_IFS=$IFS; IFS=$ac_path_separator +ac_dummy="$PATH" +for ac_dir in $ac_dummy; do + IFS=$ac_save_IFS + test -z "$ac_dir" && ac_dir=. + if $as_executable_p "$ac_dir/$ac_word"; then + ac_cv_path_INEWS="$ac_dir/$ac_word" + break +fi +done + test -z "$ac_cv_path_INEWS" && ac_cv_path_INEWS="inews" ;; esac fi -INEWS="$ac_cv_path_INEWS" +INEWS=$ac_cv_path_INEWS + if test -n "$INEWS"; then - echo "$ac_t""$INEWS" 1>&6 + echo "$as_me:4701: result: $INEWS" >&5 +echo "${ECHO_T}$INEWS" >&6 else - echo "$ac_t""no" 1>&6 + echo "$as_me:4704: result: no" >&5 +echo "${ECHO_T}no" >&6 fi else - + INEWS="$INEWSBIN" fi -echo "$ac_t""Using ZMailer INEWS program path: $INEWS" 1>&6 +echo "$as_me:4712: result: Using ZMailer INEWS program path: $INEWS" >&5 +echo "${ECHO_T}Using ZMailer INEWS program path: $INEWS" >&6 - SCHEDULEROPTIONS="${SCHEDULEROPTIONS-$defSCHEDULEROPTIONS}" -echo "$ac_t""Using ZMailer SCHEDULEROPTIONS='$SCHEDULEROPTIONS'" 1>&6 +echo "$as_me:4716: result: Using ZMailer SCHEDULEROPTIONS='$SCHEDULEROPTIONS'" >&5 +echo "${ECHO_T}Using ZMailer SCHEDULEROPTIONS='$SCHEDULEROPTIONS'" >&6 ROUTEROPTIONS="${ROUTEROPTIONS-$defROUTEROPTIONS}" -echo "$ac_t""Using ZMailer ROUTEROPTIONS='$ROUTEROPTIONS'" 1>&6 +echo "$as_me:4720: result: Using ZMailer ROUTEROPTIONS='$ROUTEROPTIONS'" >&5 +echo "${ECHO_T}Using ZMailer ROUTEROPTIONS='$ROUTEROPTIONS'" >&6 SMTPOPTIONS="${SMTPOPTIONS-$defSMTPOPTIONS}" -echo "$ac_t""Using ZMailer SMTPOPTIONS='$SMTPOPTIONS'" 1>&6 - +echo "$as_me:4724: result: Using ZMailer SMTPOPTIONS='$SMTPOPTIONS'" >&5 +echo "${ECHO_T}Using ZMailer SMTPOPTIONS='$SMTPOPTIONS'" >&6 use_sendmailpath=0 + # Check whether --with-sendmailpath or --without-sendmailpath was given. if test "${with_sendmailpath+set}" = set; then withval="$with_sendmailpath" use_sendmailpath=1 -fi - +fi; if test "$use_sendmailpath" = 0 ; then # Ok, no value given, make some guesses; /usr/sbin ?? for SENDMAILDEF in /usr/sbin/sendmail /usr/lib/sendmail x ; do @@ -2369,17 +4755,18 @@ SENDMAILPATH="$withval" fi fi -echo "$ac_t""Using ZMailer SENDMAILPATH: $SENDMAILPATH" 1>&6 +echo "$as_me:4758: result: Using ZMailer SENDMAILPATH: $SENDMAILPATH" >&5 +echo "${ECHO_T}Using ZMailer SENDMAILPATH: $SENDMAILPATH" >&6 oldRMAILPATH="$RMAILPATH" use_rmailpath=0 + # Check whether --with-rmailpath or --without-rmailpath was given. if test "${with_rmailpath+set}" = set; then withval="$with_rmailpath" use_rmailpath=1 -fi - +fi; if test "$use_rmailpath" = 0 ; then # Ok, no value given, make some guesses; /usr/bin ?? (last is default) for RMAILDEF in /sbin/rmail /usr/sbin/rmail /usr/bin/rmail /bin/rmail; do @@ -2395,16 +4782,16 @@ else RMAILPATH="$withval" fi -echo "$ac_t""Using ZMailer RMAILPATH: $RMAILPATH" 1>&6 +echo "$as_me:4785: result: Using ZMailer RMAILPATH: $RMAILPATH" >&5 +echo "${ECHO_T}Using ZMailer RMAILPATH: $RMAILPATH" >&6 - use_vacationpath=0 + # Check whether --with-vacationpath or --without-vacationpath was given. if test "${with_vacationpath+set}" = set; then withval="$with_vacationpath" use_vacationpath=1 -fi - +fi; if test "$use_vacationpath" = 0 ; then # Ok, no value given, make some guesses; /usr/sbin ?? for VACATIONDEF in /bin/vacation /usr/ucb/vacation /usr/bin/vacation ; do @@ -2420,42 +4807,39 @@ VACATIONPATH="$withval" fi fi -echo "$ac_t""Using ZMailer VACATIONPATH: $VACATIONPATH" 1>&6 +echo "$as_me:4810: result: Using ZMailer VACATIONPATH: $VACATIONPATH" >&5 +echo "${ECHO_T}Using ZMailer VACATIONPATH: $VACATIONPATH" >&6 - oldSELFADDRESSES="$SELFADDRESSES" # Check whether --with-selfaddresses or --without-selfaddresses was given. if test "${with_selfaddresses+set}" = set; then withval="$with_selfaddresses" use_selfaddresses=1 -fi - +fi; if test "x$use_selfaddresses" != "x" ; then SELFADDRESSES="$withval" else SELFADDRESSES="$oldSELFADDRESSES" fi -echo "$ac_t""Using ZMailer SELFADDRESSES: $SELFADDRESSES" 1>&6 +echo "$as_me:4825: result: Using ZMailer SELFADDRESSES: $SELFADDRESSES" >&5 +echo "${ECHO_T}Using ZMailer SELFADDRESSES: $SELFADDRESSES" >&6 sleep 2 # Sleep a bit here too - - - MALLOCEXT="" + # Check whether --with-system-malloc or --without-system-malloc was given. if test "${with_system_malloc+set}" = set; then withval="$with_system_malloc" use_system_malloc=1 -fi +fi; # Check whether --with-libmalloc or --without-libmalloc was given. if test "${with_libmalloc+set}" = set; then withval="$with_libmalloc" use_libmalloc=1 -fi - +fi; if test "x$use_system_malloc" = x1 ; then LIBMALLOC="" MALLOC="system" @@ -2482,33 +4866,31 @@ fi fi fi -echo "$ac_t""Using ZMailer malloc library of type: $MALLOC" 1>&6 +echo "$as_me:4869: result: Using ZMailer malloc library of type: $MALLOC" >&5 +echo "${ECHO_T}Using ZMailer malloc library of type: $MALLOC" >&6 # # Following is rather painfull to do fully automatic, thus I choose # to do it in dumb way -- explicitely, INCLUDING LINKER STUFF ! # - # Check whether --with-yp or --without-yp was given. if test "${with_yp+set}" = set; then withval="$with_yp" - cat >> confdefs.h <<\EOF + cat >>confdefs.h <<\EOF #define HAVE_YP 1 EOF - -fi - +fi; LIBNIS="" + # Check whether --with-yp-lib or --without-yp-lib was given. if test "${with_yp_lib+set}" = set; then withval="$with_yp_lib" LIBNIS="$withval" -fi +fi; - #AC_CHECK_HEADERS(rpc/rpc.h rpcsvc/yp_prot.h rpcsvc/ypclnt.h) #if test "$ac_cv_header_rpc_rpc.h" = yes \ # -a "$ac_cv_header_rpcsvc_yp_prot_h" = yes \ @@ -2519,65 +4901,82 @@ # AC_DEFINE(HAVE_YP) #fi -echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 -echo "configure:2524: checking for sys/wait.h that is POSIX.1 compatible" >&5 -if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +echo "$as_me:4904: checking for sys/wait.h that is POSIX.1 compatible" >&5 +echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 +if test "${ac_cv_header_sys_wait_h+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 4910 "configure" #include "confdefs.h" #include #include #ifndef WEXITSTATUS -#define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) +# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) #endif #ifndef WIFEXITED -#define WIFEXITED(stat_val) (((stat_val) & 255) == 0) +# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) #endif -int main() { -int s; -wait (&s); -s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; -; return 0; } -EOF -if { (eval echo configure:2545: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* + +int +main () +{ + int s; + wait (&s); + s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:4932: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:4935: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:4938: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:4941: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then ac_cv_header_sys_wait_h=yes else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_header_sys_wait_h=no + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_header_sys_wait_h=no fi -rm -f conftest* +rm -f conftest.$ac_objext conftest.$ac_ext fi - -echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6 +echo "$as_me:4951: result: $ac_cv_header_sys_wait_h" >&5 +echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 if test $ac_cv_header_sys_wait_h = yes; then - cat >> confdefs.h <<\EOF + +cat >>confdefs.h <<\EOF #define HAVE_SYS_WAIT_H 1 EOF fi -echo $ac_n "checking for wait3 that fills in rusage""... $ac_c" 1>&6 -echo "configure:2566: checking for wait3 that fills in rusage" >&5 -if eval "test \"`echo '$''{'ac_cv_func_wait3_rusage'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +echo "$as_me:4961: checking for wait3 that fills in rusage" >&5 +echo $ECHO_N "checking for wait3 that fills in rusage... $ECHO_C" >&6 +if test "${ac_cv_func_wait3_rusage+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then ac_cv_func_wait3_rusage=no else - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 4970 "configure" #include "confdefs.h" #include #include #include #include /* HP-UX has wait3 but does not fill in rusage at all. */ -main() { +int +main () +{ struct rusage r; int i; /* Use a field that we can force nonzero -- @@ -2588,36 +4987,48 @@ r.ru_stime.tv_sec = 0; r.ru_stime.tv_usec = 0; r.ru_majflt = r.ru_minflt = 0; - switch (fork()) { - case 0: /* Child. */ - sleep(1); /* Give up the CPU. */ - _exit(0); - case -1: _exit(0); /* What can we do? */ - default: /* Parent. */ - wait3(&i, 0, &r); - sleep(2); /* Avoid "text file busy" from rm on fast HP-UX machines. */ - exit(r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0 - && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0); - } + switch (fork ()) + { + case 0: /* Child. */ + sleep(1); /* Give up the CPU. */ + _exit(0); + case -1: /* What can we do? */ + _exit(0); + default: /* Parent. */ + wait3(&i, 0, &r); + /* Avoid "text file busy" from rm on fast HP-UX machines. */ + sleep(2); + exit (r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0 + && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0); + } } -EOF -if { (eval echo configure:2605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then +_ACEOF +rm -f conftest$ac_exeext +if { (eval echo "$as_me:5007: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:5010: \$? = $ac_status" >&5 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext' + { (eval echo "$as_me:5012: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:5015: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then ac_cv_func_wait3_rusage=yes else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_func_wait3_rusage=no + echo "$as_me: program exited with status $ac_status" >&5 +echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_func_wait3_rusage=no fi -rm -fr conftest* +rm -f conftest$ac_exeext conftest.$ac_ext fi - fi - -echo "$ac_t""$ac_cv_func_wait3_rusage" 1>&6 +echo "$as_me:5027: result: $ac_cv_func_wait3_rusage" >&5 +echo "${ECHO_T}$ac_cv_func_wait3_rusage" >&6 if test $ac_cv_func_wait3_rusage = yes; then - cat >> confdefs.h <<\EOF + +cat >>confdefs.h <<\EOF #define HAVE_WAIT3 1 EOF @@ -2625,340 +5036,415 @@ for ac_func in waitpid wait4 do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:2630: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` +echo "$as_me:5040: checking for $ac_func" >&5 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 +if eval "test \"\${$ac_ac_var+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 5046 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func(); below. */ + which can conflict with char $ac_func (); below. */ #include /* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif /* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); + builtin and then its argument prototype would still apply. */ +char $ac_func (); +char (*f) (); -int main() { - +int +main () +{ /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) choke me #else -$ac_func(); +f = $ac_func; #endif -; return 0; } + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:5077: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:5080: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:5083: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:5086: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + eval "$ac_ac_var=yes" +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +eval "$ac_ac_var=no" +fi +rm -f conftest$ac_exeext conftest.$ac_ext +fi +echo "$as_me:5096: result: `eval echo '${'$ac_ac_var'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 +if test `eval echo '${'$ac_ac_var'}'` = yes; then + cat >>confdefs.h <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 fi done for ac_func in getenv putenv setenv unsetenv do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:2685: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` +echo "$as_me:5109: checking for $ac_func" >&5 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 +if eval "test \"\${$ac_ac_var+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 5115 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func(); below. */ + which can conflict with char $ac_func (); below. */ #include /* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif /* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); + builtin and then its argument prototype would still apply. */ +char $ac_func (); +char (*f) (); -int main() { - +int +main () +{ /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) choke me #else -$ac_func(); +f = $ac_func; #endif -; return 0; } + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:5146: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:5149: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:5152: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:5155: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + eval "$ac_ac_var=yes" +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +eval "$ac_ac_var=no" +fi +rm -f conftest$ac_exeext conftest.$ac_ext +fi +echo "$as_me:5165: result: `eval echo '${'$ac_ac_var'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 +if test `eval echo '${'$ac_ac_var'}'` = yes; then + cat >>confdefs.h <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 fi done - # # Study shared library generation # - - - - - - ac_header_dirent=no -for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 -echo "configure:2753: checking for $ac_hdr that defines DIR" >&5 -if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do + ac_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $ac_tr_sh` +echo "$as_me:5182: checking for $ac_hdr that defines DIR" >&5 +echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 +if eval "test \"\${$ac_ac_Header+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 5188 "configure" #include "confdefs.h" #include #include <$ac_hdr> -int main() { + +int +main () +{ DIR *dirp = 0; -; return 0; } -EOF -if { (eval echo configure:2766: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - eval "ac_cv_header_dirent_$ac_safe=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_dirent_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:5205: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:5208: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:5211: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + eval "$ac_ac_Header=yes" +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +eval "$ac_ac_Header=no" +fi +rm -f conftest.$ac_objext conftest.$ac_ext +fi +echo "$as_me:5221: result: `eval echo '${'$ac_ac_Header'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 +if test `eval echo '${'$ac_ac_Header'}'` = yes; then + cat >>confdefs.h <&6 + +ac_header_dirent=$ac_hdr; break fi + done # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. if test $ac_header_dirent = dirent.h; then -echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 -echo "configure:2791: checking for opendir in -ldir" >&5 -ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 + echo "$as_me:5234: checking for opendir in -ldir" >&5 +echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6 +if test "${ac_cv_lib_dir_opendir+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - ac_save_LIBS="$LIBS" + ac_check_lib_save_LIBS=$LIBS LIBS="-ldir $LIBS" -cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 5242 "configure" #include "confdefs.h" + /* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif /* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char opendir(); - -int main() { -opendir() -; return 0; } -EOF -if { (eval echo configure:2810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 + builtin and then its argument prototype would still apply. */ +char opendir (); +int +main () +{ +opendir (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:5261: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:5264: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:5267: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:5270: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_lib_dir_opendir=yes +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_lib_dir_opendir=no +fi +rm -f conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +echo "$as_me:5281: result: $ac_cv_lib_dir_opendir" >&5 +echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6 +if test $ac_cv_lib_dir_opendir = yes; then LIBS="$LIBS -ldir" -else - echo "$ac_t""no" 1>&6 fi else -echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 -echo "configure:2832: checking for opendir in -lx" >&5 -ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 + echo "$as_me:5288: checking for opendir in -lx" >&5 +echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6 +if test "${ac_cv_lib_x_opendir+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - ac_save_LIBS="$LIBS" + ac_check_lib_save_LIBS=$LIBS LIBS="-lx $LIBS" -cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 5296 "configure" #include "confdefs.h" + /* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif /* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char opendir(); - -int main() { -opendir() -; return 0; } -EOF -if { (eval echo configure:2851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 + builtin and then its argument prototype would still apply. */ +char opendir (); +int +main () +{ +opendir (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:5315: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:5318: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:5321: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:5324: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_lib_x_opendir=yes +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_lib_x_opendir=no +fi +rm -f conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +echo "$as_me:5335: result: $ac_cv_lib_x_opendir" >&5 +echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6 +if test $ac_cv_lib_x_opendir = yes; then LIBS="$LIBS -lx" -else - echo "$ac_t""no" 1>&6 fi fi -echo $ac_n "checking whether closedir returns void""... $ac_c" 1>&6 -echo "configure:2874: checking whether closedir returns void" >&5 -if eval "test \"`echo '$''{'ac_cv_func_closedir_void'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +echo "$as_me:5343: checking whether closedir returns void" >&5 +echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6 +if test "${ac_cv_func_closedir_void+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then ac_cv_func_closedir_void=yes else - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 5352 "configure" #include "confdefs.h" #include #include <$ac_header_dirent> -int closedir(); main() { exit(closedir(opendir(".")) != 0); } -EOF -if { (eval echo configure:2888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then + +int closedir (); +int +main () +{ + exit (closedir (opendir (".")) != 0); +} +_ACEOF +rm -f conftest$ac_exeext +if { (eval echo "$as_me:5365: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:5368: \$? = $ac_status" >&5 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext' + { (eval echo "$as_me:5370: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:5373: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then ac_cv_func_closedir_void=no else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_func_closedir_void=yes + echo "$as_me: program exited with status $ac_status" >&5 +echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_func_closedir_void=yes fi -rm -fr conftest* +rm -f conftest$ac_exeext conftest.$ac_ext fi - fi - -echo "$ac_t""$ac_cv_func_closedir_void" 1>&6 +echo "$as_me:5385: result: $ac_cv_func_closedir_void" >&5 +echo "${ECHO_T}$ac_cv_func_closedir_void" >&6 if test $ac_cv_func_closedir_void = yes; then - cat >> confdefs.h <<\EOF + +cat >>confdefs.h <<\EOF #define CLOSEDIR_VOID 1 EOF fi - -echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 -echo "configure:2912: checking for uid_t in sys/types.h" >&5 -if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +echo "$as_me:5395: checking for uid_t in sys/types.h" >&5 +echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 +if test "${ac_cv_type_uid_t+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 5401 "configure" #include "confdefs.h" #include -EOF + +_ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "uid_t" >/dev/null 2>&1; then - rm -rf conftest* ac_cv_type_uid_t=yes else - rm -rf conftest* ac_cv_type_uid_t=no fi rm -f conftest* fi - -echo "$ac_t""$ac_cv_type_uid_t" 1>&6 +echo "$as_me:5415: result: $ac_cv_type_uid_t" >&5 +echo "${ECHO_T}$ac_cv_type_uid_t" >&6 if test $ac_cv_type_uid_t = no; then - cat >> confdefs.h <<\EOF + +cat >>confdefs.h <<\EOF #define uid_t int EOF - cat >> confdefs.h <<\EOF +cat >>confdefs.h <<\EOF #define gid_t int EOF fi -echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6 -echo "configure:2946: checking type of array argument to getgroups" >&5 -if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +echo "$as_me:5429: checking type of array argument to getgroups" >&5 +echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6 +if test "${ac_cv_type_getgroups+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then ac_cv_type_getgroups=cross else - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 5438 "configure" #include "confdefs.h" - /* Thanks to Mike Rendell for this test. */ #include #define NGID 256 #undef MAX #define MAX(x, y) ((x) > (y) ? (x) : (y)) -main() + +int +main () { gid_t gidset[NGID]; int i, n; @@ -2973,227 +5459,167 @@ happens when gid_t is short but getgroups modifies an array of ints. */ exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0); } - -EOF -if { (eval echo configure:2979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_type_getgroups=gid_t +_ACEOF +rm -f conftest$ac_exeext +if { (eval echo "$as_me:5464: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:5467: \$? = $ac_status" >&5 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext' + { (eval echo "$as_me:5469: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:5472: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_type_getgroups=gid_t else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_type_getgroups=int + echo "$as_me: program exited with status $ac_status" >&5 +echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_type_getgroups=int fi -rm -fr conftest* +rm -f conftest$ac_exeext conftest.$ac_ext fi - if test $ac_cv_type_getgroups = cross; then - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 5485 "configure" #include "confdefs.h" #include -EOF + +_ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then - rm -rf conftest* ac_cv_type_getgroups=gid_t else - rm -rf conftest* ac_cv_type_getgroups=int fi rm -f conftest* fi fi +echo "$as_me:5500: result: $ac_cv_type_getgroups" >&5 +echo "${ECHO_T}$ac_cv_type_getgroups" >&6 -echo "$ac_t""$ac_cv_type_getgroups" 1>&6 -cat >> confdefs.h <>confdefs.h <&6 -echo "configure:3017: checking for ANSI C header files" >&5 -if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#include -#include -#include -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:3030: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - ac_cv_header_stdc=yes -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_header_stdc=no -fi -rm -f conftest* -if test $ac_cv_header_stdc = yes; then - # SunOS 4.x string.h does not declare mem*, contrary to ANSI. -cat > conftest.$ac_ext < -EOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "memchr" >/dev/null 2>&1; then - : +echo "$as_me:5507: checking for mode_t" >&5 +echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 +if test "${ac_cv_type_mode_t+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - rm -rf conftest* - ac_cv_header_stdc=no -fi -rm -f conftest* - -fi - -if test $ac_cv_header_stdc = yes; then - # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. -cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 5513 "configure" #include "confdefs.h" -#include -EOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "free" >/dev/null 2>&1; then - : -else - rm -rf conftest* - ac_cv_header_stdc=no -fi -rm -f conftest* - -fi - -if test $ac_cv_header_stdc = yes; then - # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. -if test "$cross_compiling" = yes; then - : +$ac_includes_default +int +main () +{ +if ((mode_t *) 0) + return 0; +if (sizeof (mode_t)) + return 0; + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:5528: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:5531: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:5534: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:5537: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_type_mode_t=yes else - cat > conftest.$ac_ext < -#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') -#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) -int main () { int i; for (i = 0; i < 256; i++) -if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); -exit (0); } - -EOF -if { (eval echo configure:3097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_type_mode_t=no +fi +rm -f conftest.$ac_objext conftest.$ac_ext +fi +echo "$as_me:5547: result: $ac_cv_type_mode_t" >&5 +echo "${ECHO_T}$ac_cv_type_mode_t" >&6 +if test $ac_cv_type_mode_t = yes; then : else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_header_stdc=no -fi -rm -fr conftest* -fi - -fi -fi - -echo "$ac_t""$ac_cv_header_stdc" 1>&6 -if test $ac_cv_header_stdc = yes; then - cat >> confdefs.h <<\EOF -#define STDC_HEADERS 1 -EOF - -fi - -echo $ac_n "checking for mode_t""... $ac_c" 1>&6 -echo "configure:3121: checking for mode_t" >&5 -if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#if STDC_HEADERS -#include -#include -#endif -EOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then - rm -rf conftest* - ac_cv_type_mode_t=yes -else - rm -rf conftest* - ac_cv_type_mode_t=no -fi -rm -f conftest* -fi -echo "$ac_t""$ac_cv_type_mode_t" 1>&6 -if test $ac_cv_type_mode_t = no; then - cat >> confdefs.h <<\EOF +cat >>confdefs.h <&6 -echo "configure:3154: checking for off_t" >&5 -if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +echo "$as_me:5559: checking for off_t" >&5 +echo $ECHO_N "checking for off_t... $ECHO_C" >&6 +if test "${ac_cv_type_off_t+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 5565 "configure" #include "confdefs.h" -#include -#if STDC_HEADERS -#include -#include -#endif -EOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then - rm -rf conftest* +$ac_includes_default +int +main () +{ +if ((off_t *) 0) + return 0; +if (sizeof (off_t)) + return 0; + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:5580: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:5583: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:5586: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:5589: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then ac_cv_type_off_t=yes else - rm -rf conftest* - ac_cv_type_off_t=no -fi -rm -f conftest* + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_type_off_t=no +fi +rm -f conftest.$ac_objext conftest.$ac_ext +fi +echo "$as_me:5599: result: $ac_cv_type_off_t" >&5 +echo "${ECHO_T}$ac_cv_type_off_t" >&6 +if test $ac_cv_type_off_t = yes; then + : +else -fi -echo "$ac_t""$ac_cv_type_off_t" 1>&6 -if test $ac_cv_type_off_t = no; then - cat >> confdefs.h <<\EOF +cat >>confdefs.h <&6 -echo "configure:3187: checking return type of signal handlers" >&5 -if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +echo "$as_me:5611: checking return type of signal handlers" >&5 +echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 +if test "${ac_cv_type_signal+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 5617 "configure" #include "confdefs.h" #include #include #ifdef signal -#undef signal +# undef signal #endif #ifdef __cplusplus extern "C" void (*signal (int, void (*)(int)))(int); @@ -3201,244 +5627,323 @@ void (*signal ()) (); #endif -int main() { +int +main () +{ int i; -; return 0; } -EOF -if { (eval echo configure:3209: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:5639: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:5642: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:5645: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:5648: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then ac_cv_type_signal=void else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_type_signal=int + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_type_signal=int fi -rm -f conftest* +rm -f conftest.$ac_objext conftest.$ac_ext fi +echo "$as_me:5658: result: $ac_cv_type_signal" >&5 +echo "${ECHO_T}$ac_cv_type_signal" >&6 -echo "$ac_t""$ac_cv_type_signal" 1>&6 -cat >> confdefs.h <>confdefs.h <&6 -echo "configure:3228: checking for size_t" >&5 -if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +echo "$as_me:5665: checking for size_t" >&5 +echo $ECHO_N "checking for size_t... $ECHO_C" >&6 +if test "${ac_cv_type_size_t+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 5671 "configure" #include "confdefs.h" -#include -#if STDC_HEADERS -#include -#include -#endif -EOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then - rm -rf conftest* +$ac_includes_default +int +main () +{ +if ((size_t *) 0) + return 0; +if (sizeof (size_t)) + return 0; + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:5686: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:5689: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:5692: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:5695: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then ac_cv_type_size_t=yes else - rm -rf conftest* - ac_cv_type_size_t=no -fi -rm -f conftest* + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_type_size_t=no +fi +rm -f conftest.$ac_objext conftest.$ac_ext +fi +echo "$as_me:5705: result: $ac_cv_type_size_t" >&5 +echo "${ECHO_T}$ac_cv_type_size_t" >&6 +if test $ac_cv_type_size_t = yes; then + : +else -fi -echo "$ac_t""$ac_cv_type_size_t" 1>&6 -if test $ac_cv_type_size_t = no; then - cat >> confdefs.h <<\EOF +cat >>confdefs.h <&6 -echo "configure:3261: checking for uid_t in sys/types.h" >&5 -if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +echo "$as_me:5717: checking for uid_t in sys/types.h" >&5 +echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 +if test "${ac_cv_type_uid_t+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 5723 "configure" #include "confdefs.h" #include -EOF + +_ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "uid_t" >/dev/null 2>&1; then - rm -rf conftest* ac_cv_type_uid_t=yes else - rm -rf conftest* ac_cv_type_uid_t=no fi rm -f conftest* fi - -echo "$ac_t""$ac_cv_type_uid_t" 1>&6 +echo "$as_me:5737: result: $ac_cv_type_uid_t" >&5 +echo "${ECHO_T}$ac_cv_type_uid_t" >&6 if test $ac_cv_type_uid_t = no; then - cat >> confdefs.h <<\EOF + +cat >>confdefs.h <<\EOF #define uid_t int EOF - cat >> confdefs.h <<\EOF +cat >>confdefs.h <<\EOF #define gid_t int EOF fi -echo $ac_n "checking for ino_t""... $ac_c" 1>&6 -echo "configure:3295: checking for ino_t" >&5 -if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +echo "$as_me:5751: checking for ino_t" >&5 +echo $ECHO_N "checking for ino_t... $ECHO_C" >&6 +if test "${ac_cv_type_ino_t+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 5757 "configure" #include "confdefs.h" -#include -#if STDC_HEADERS -#include -#include -#endif -EOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then - rm -rf conftest* +$ac_includes_default +int +main () +{ +if ((ino_t *) 0) + return 0; +if (sizeof (ino_t)) + return 0; + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:5772: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:5775: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:5778: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:5781: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then ac_cv_type_ino_t=yes else - rm -rf conftest* - ac_cv_type_ino_t=no -fi -rm -f conftest* + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_type_ino_t=no +fi +rm -f conftest.$ac_objext conftest.$ac_ext +fi +echo "$as_me:5791: result: $ac_cv_type_ino_t" >&5 +echo "${ECHO_T}$ac_cv_type_ino_t" >&6 +if test $ac_cv_type_ino_t = yes; then + : +else -fi -echo "$ac_t""$ac_cv_type_ino_t" 1>&6 -if test $ac_cv_type_ino_t = no; then - cat >> confdefs.h <<\EOF +cat >>confdefs.h <&5 +echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 +if test "${ac_cv_c_const+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +#line 5809 "configure" +#include "confdefs.h" -echo $ac_n "checking for working const""... $ac_c" 1>&6 -echo "configure:3329: checking for working const" >&5 -if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <j = 5; -} -{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ - const int foo = 10; -} +int +main () +{ +/* FIXME: Include the comments suggested by Paul. */ +#ifndef __cplusplus + /* Ultrix mips cc rejects this. */ + typedef int charset[2]; + const charset x; + /* SunOS 4.1.1 cc rejects this. */ + char const *const *ccp; + char **p; + /* NEC SVR4.0.2 mips cc rejects this. */ + struct point {int x, y;}; + static struct point const zero = {0,0}; + /* AIX XL C 1.02.0.0 rejects this. + It does not let you subtract one const X* pointer from another in + an arm of an if-expression whose if-part is not a constant + expression */ + const char *g = "string"; + ccp = &g + (g ? g-g : 0); + /* HPUX 7.0 cc rejects these. */ + ++ccp; + p = (char**) ccp; + ccp = (char const *const *) p; + { /* SCO 3.2v4 cc rejects this. */ + char *t; + char const *s = 0 ? (char *) 0 : (char const *) 0; -; return 0; } -EOF -if { (eval echo configure:3383: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* + *t++ = 0; + } + { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ + int x[] = {25, 17}; + const int *foo = &x[0]; + ++foo; + } + { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ + typedef const int *iptr; + iptr p = 0; + ++p; + } + { /* AIX XL C 1.02.0.0 rejects this saying + "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ + struct s { int j; const int *ap[3]; }; + struct s *b; b->j = 5; + } + { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ + const int foo = 10; + } +#endif + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:5867: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:5870: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:5873: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:5876: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then ac_cv_c_const=yes else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_c_const=no + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_c_const=no fi -rm -f conftest* +rm -f conftest.$ac_objext conftest.$ac_ext fi - -echo "$ac_t""$ac_cv_c_const" 1>&6 +echo "$as_me:5886: result: $ac_cv_c_const" >&5 +echo "${ECHO_T}$ac_cv_c_const" >&6 if test $ac_cv_c_const = no; then - cat >> confdefs.h <<\EOF -#define const + +cat >>confdefs.h <<\EOF +#define const EOF fi -echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 -echo "configure:3404: checking for ANSI C header files" >&5 -if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +echo "$as_me:5896: checking for ANSI C header files" >&5 +echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 +if test "${ac_cv_header_stdc+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 5902 "configure" #include "confdefs.h" #include #include #include #include -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:3417: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* + +_ACEOF +if { (eval echo "$as_me:5910: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 + (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 + ac_status=$? + egrep -v '^ *\+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:5916: \$? = $ac_status" >&5 + (exit $ac_status); }; then + if test -s conftest.err; then + ac_cpp_err=$ac_c_preproc_warn_flag + else + ac_cpp_err= + fi +else + ac_cpp_err=yes +fi +if test -z "$ac_cpp_err"; then ac_cv_header_stdc=yes else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 + echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 - rm -rf conftest* ac_cv_header_stdc=no fi -rm -f conftest* +rm -f conftest.err conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. -cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 5938 "configure" #include "confdefs.h" #include -EOF + +_ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "memchr" >/dev/null 2>&1; then : else - rm -rf conftest* ac_cv_header_stdc=no fi rm -f conftest* @@ -3447,16 +5952,16 @@ if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. -cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 5956 "configure" #include "confdefs.h" #include -EOF + +_ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "free" >/dev/null 2>&1; then : else - rm -rf conftest* ac_cv_header_stdc=no fi rm -f conftest* @@ -3465,254 +5970,369 @@ if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. -if test "$cross_compiling" = yes; then + if test "$cross_compiling" = yes; then : else - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 5977 "configure" #include "confdefs.h" #include -#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') -#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) -int main () { int i; for (i = 0; i < 256; i++) -if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); -exit (0); } +#if ((' ' & 0x0FF) == 0x020) +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) +#else +# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ + || ('j' <= (c) && (c) <= 'r') \ + || ('s' <= (c) && (c) <= 'z')) +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) +#endif -EOF -if { (eval echo configure:3484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) +int +main () +{ + int i; + for (i = 0; i < 256; i++) + if (XOR (islower (i), ISLOWER (i)) + || toupper (i) != TOUPPER (i)) + exit(2); + exit (0); +} +_ACEOF +rm -f conftest$ac_exeext +if { (eval echo "$as_me:6003: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:6006: \$? = $ac_status" >&5 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext' + { (eval echo "$as_me:6008: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:6011: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then : else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_header_stdc=no + echo "$as_me: program exited with status $ac_status" >&5 +echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_header_stdc=no fi -rm -fr conftest* +rm -f conftest$ac_exeext conftest.$ac_ext fi - fi fi - -echo "$ac_t""$ac_cv_header_stdc" 1>&6 +echo "$as_me:6024: result: $ac_cv_header_stdc" >&5 +echo "${ECHO_T}$ac_cv_header_stdc" >&6 if test $ac_cv_header_stdc = yes; then - cat >> confdefs.h <<\EOF + +cat >>confdefs.h <<\EOF #define STDC_HEADERS 1 EOF fi - # Timezones are always a pain in... everybody has their own ways :-( -for ac_hdr in sys/time.h + +for ac_header in sys/time.h do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:3513: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` +echo "$as_me:6039: checking for $ac_header" >&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 +if eval "test \"\${$ac_ac_Header+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +#line 6045 "configure" +#include "confdefs.h" +#include <$ac_header> +_ACEOF +if { (eval echo "$as_me:6049: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 + (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 + ac_status=$? + egrep -v '^ *\+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:6055: \$? = $ac_status" >&5 + (exit $ac_status); }; then + if test -s conftest.err; then + ac_cpp_err=$ac_c_preproc_warn_flag + else + ac_cpp_err= + fi else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:3523: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" + ac_cpp_err=yes +fi +if test -z "$ac_cpp_err"; then + eval "$ac_ac_Header=yes" else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 + echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" + eval "$ac_ac_Header=no" fi -rm -f conftest* +rm -f conftest.err conftest.$ac_ext fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&5 +echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 +if test `eval echo '${'$ac_ac_Header'}'` = yes; then + cat >>confdefs.h <&6 + fi done -echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 -echo "configure:3550: checking whether time.h and sys/time.h may both be included" >&5 -if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +echo "$as_me:6084: checking whether time.h and sys/time.h may both be included" >&5 +echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 +if test "${ac_cv_header_time+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 6090 "configure" #include "confdefs.h" #include #include #include -int main() { + +int +main () +{ struct tm *tp; -; return 0; } -EOF -if { (eval echo configure:3564: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:6105: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:6108: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:6111: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:6114: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then ac_cv_header_time=yes else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_header_time=no + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_header_time=no fi -rm -f conftest* +rm -f conftest.$ac_objext conftest.$ac_ext fi - -echo "$ac_t""$ac_cv_header_time" 1>&6 +echo "$as_me:6124: result: $ac_cv_header_time" >&5 +echo "${ECHO_T}$ac_cv_header_time" >&6 if test $ac_cv_header_time = yes; then - cat >> confdefs.h <<\EOF + +cat >>confdefs.h <<\EOF #define TIME_WITH_SYS_TIME 1 EOF fi -echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 -echo "configure:3585: checking whether struct tm is in sys/time.h or time.h" >&5 -if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +echo "$as_me:6134: checking whether struct tm is in sys/time.h or time.h" >&5 +echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 +if test "${ac_cv_struct_tm+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 6140 "configure" #include "confdefs.h" #include #include -int main() { + +int +main () +{ struct tm *tp; tp->tm_sec; -; return 0; } -EOF -if { (eval echo configure:3598: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:6154: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:6157: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:6160: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:6163: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then ac_cv_struct_tm=time.h else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_struct_tm=sys/time.h + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_struct_tm=sys/time.h fi -rm -f conftest* +rm -f conftest.$ac_objext conftest.$ac_ext fi - -echo "$ac_t""$ac_cv_struct_tm" 1>&6 +echo "$as_me:6173: result: $ac_cv_struct_tm" >&5 +echo "${ECHO_T}$ac_cv_struct_tm" >&6 if test $ac_cv_struct_tm = sys/time.h; then - cat >> confdefs.h <<\EOF + +cat >>confdefs.h <<\EOF #define TM_IN_SYS_TIME 1 EOF fi -echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 -echo "configure:3619: checking for tm_zone in struct tm" >&5 -if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +echo "$as_me:6183: checking for struct tm.tm_zone" >&5 +echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6 +if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 6189 "configure" #include "confdefs.h" #include #include <$ac_cv_struct_tm> -int main() { -struct tm tm; tm.tm_zone; -; return 0; } -EOF -if { (eval echo configure:3632: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_struct_tm_zone=yes + +int +main () +{ +struct tm foo; +foo.tm_zone; + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:6204: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:6207: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:6210: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:6213: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_member_struct_tm_tm_zone=yes else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_struct_tm_zone=no + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_member_struct_tm_tm_zone=no fi -rm -f conftest* +rm -f conftest.$ac_objext conftest.$ac_ext +fi +echo "$as_me:6223: result: $ac_cv_member_struct_tm_tm_zone" >&5 +echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6 +if test $ac_cv_member_struct_tm_tm_zone = yes; then + +cat >>confdefs.h <&6 -if test "$ac_cv_struct_tm_zone" = yes; then - cat >> confdefs.h <<\EOF +cat >>confdefs.h <<\EOF #define HAVE_TM_ZONE 1 EOF else - echo $ac_n "checking for tzname""... $ac_c" 1>&6 -echo "configure:3652: checking for tzname" >&5 -if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 + echo "$as_me:6240: checking for tzname" >&5 +echo $ECHO_N "checking for tzname... $ECHO_C" >&6 +if test "${ac_cv_var_tzname+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 6246 "configure" #include "confdefs.h" #include #ifndef tzname /* For SGI. */ extern char *tzname[]; /* RS6000 and others reject char **tzname. */ #endif -int main() { + +int +main () +{ atoi(*tzname); -; return 0; } -EOF -if { (eval echo configure:3667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:6262: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:6265: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:6268: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:6271: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then ac_cv_var_tzname=yes else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_var_tzname=no + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_var_tzname=no fi -rm -f conftest* +rm -f conftest$ac_exeext conftest.$ac_ext fi - -echo "$ac_t""$ac_cv_var_tzname" 1>&6 +echo "$as_me:6281: result: $ac_cv_var_tzname" >&5 +echo "${ECHO_T}$ac_cv_var_tzname" >&6 if test $ac_cv_var_tzname = yes; then - cat >> confdefs.h <<\EOF + +cat >>confdefs.h <<\EOF #define HAVE_TZNAME 1 EOF fi fi -echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 -echo "configure:3689: checking whether struct tm is in sys/time.h or time.h" >&5 -if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +echo "$as_me:6292: checking whether struct tm is in sys/time.h or time.h" >&5 +echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 +if test "${ac_cv_struct_tm+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 6298 "configure" #include "confdefs.h" #include #include -int main() { + +int +main () +{ struct tm *tp; tp->tm_sec; -; return 0; } -EOF -if { (eval echo configure:3702: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:6312: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:6315: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:6318: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:6321: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then ac_cv_struct_tm=time.h else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_struct_tm=sys/time.h + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_struct_tm=sys/time.h fi -rm -f conftest* +rm -f conftest.$ac_objext conftest.$ac_ext fi - -echo "$ac_t""$ac_cv_struct_tm" 1>&6 +echo "$as_me:6331: result: $ac_cv_struct_tm" >&5 +echo "${ECHO_T}$ac_cv_struct_tm" >&6 if test $ac_cv_struct_tm = sys/time.h; then - cat >> confdefs.h <<\EOF + +cat >>confdefs.h <<\EOF #define TM_IN_SYS_TIME 1 EOF @@ -3721,101 +6341,140 @@ # # Timezones are always a pain in... everybody has their own ways :-( # -echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 -echo "configure:3726: checking for tm_gmtoff in struct tm" >&5 -if eval "test \"`echo '$''{'ac_cv_struct_tm_gmtoff'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +echo "$as_me:6344: checking for tm_gmtoff in struct tm" >&5 +echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6 +if test "${ac_cv_struct_tm_gmtoff+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 6350 "configure" #include "confdefs.h" #include #include <$ac_cv_struct_tm> -int main() { +int +main () +{ struct tm tm; tm.tm_gmtoff; -; return 0; } -EOF -if { (eval echo configure:3739: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:6363: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:6366: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:6369: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:6372: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then ac_cv_struct_tm_gmtoff=yes else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_struct_tm_gmtoff=no + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_struct_tm_gmtoff=no fi -rm -f conftest* +rm -f conftest.$ac_objext conftest.$ac_ext fi - -echo "$ac_t""$ac_cv_struct_tm_gmtoff" 1>&6 +echo "$as_me:6382: result: $ac_cv_struct_tm_gmtoff" >&5 +echo "${ECHO_T}$ac_cv_struct_tm_gmtoff" >&6 if test "$ac_cv_struct_tm_gmtoff" = yes; then - cat >> confdefs.h <<\EOF + cat >>confdefs.h <<\EOF #define HAVE_TM_GMTOFF 1 EOF else - echo $ac_n "checking for altzone""... $ac_c" 1>&6 -echo "configure:3759: checking for altzone" >&5 -if eval "test \"`echo '$''{'ac_cv_var_altzone'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 + echo "$as_me:6390: checking for altzone" >&5 +echo $ECHO_N "checking for altzone... $ECHO_C" >&6 +if test "${ac_cv_var_altzone+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 6396 "configure" #include "confdefs.h" #include static int tt; -int main() { +int +main () +{ tt = (int)altzone; -; return 0; } -EOF -if { (eval echo configure:3772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:6409: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:6412: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:6415: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:6418: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then ac_cv_var_altzone=yes else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_var_altzone=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_var_altzone" 1>&6 - echo $ac_n "checking for timezone""... $ac_c" 1>&6 -echo "configure:3786: checking for timezone" >&5 -if eval "test \"`echo '$''{'ac_cv_var_timezone'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_var_altzone=no +fi +rm -f conftest$ac_exeext conftest.$ac_ext +fi +echo "$as_me:6428: result: $ac_cv_var_altzone" >&5 +echo "${ECHO_T}$ac_cv_var_altzone" >&6 + echo "$as_me:6430: checking for timezone" >&5 +echo $ECHO_N "checking for timezone... $ECHO_C" >&6 +if test "${ac_cv_var_timezone+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 6436 "configure" #include "confdefs.h" #include static int tt; -int main() { +int +main () +{ tt = (int)timezone; -; return 0; } -EOF -if { (eval echo configure:3799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:6449: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:6452: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:6455: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:6458: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then ac_cv_var_timezone=yes else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_var_timezone=no + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_var_timezone=no fi -rm -f conftest* +rm -f conftest$ac_exeext conftest.$ac_ext fi - -echo "$ac_t""$ac_cv_var_timezone" 1>&6 +echo "$as_me:6468: result: $ac_cv_var_timezone" >&5 +echo "${ECHO_T}$ac_cv_var_timezone" >&6 if test "$ac_cv_var_altzone" = yes; then - cat >> confdefs.h <<\EOF + cat >>confdefs.h <<\EOF #define HAVE_ALTZONE 1 EOF fi if test "$ac_cv_var_timezone" = yes; then - cat >> confdefs.h <<\EOF + cat >>confdefs.h <<\EOF #define HAVE_TIMEZONE 1 EOF @@ -3823,171 +6482,123 @@ fi if test "x$ac_cv_var_altzone" = xno -a x$ac_cv_struct_tm_gmtoff = xno -a \ "x$ac_cv_var_timezone" = xno ; then - echo "$ac_t""Aiee, autoconfig did not recognize timezone mechanism! Time-zone offset calculation may give wrong results" 1>&6 -fi - - -echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6 -echo "configure:3832: checking for st_blocks in struct stat" >&5 -if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#include -int main() { -struct stat s; s.st_blocks; -; return 0; } -EOF -if { (eval echo configure:3845: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_struct_st_blocks=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_struct_st_blocks=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6 -if test $ac_cv_struct_st_blocks = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_ST_BLOCKS 1 -EOF - -else - LIBOBJS="$LIBOBJS fileblocks.${ac_objext}" -fi - -echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6 -echo "configure:3868: checking for st_blksize in struct stat" >&5 -if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#include -int main() { -struct stat s; s.st_blksize; -; return 0; } -EOF -if { (eval echo configure:3881: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_struct_st_blksize=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_struct_st_blksize=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6 -if test $ac_cv_struct_st_blksize = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_ST_BLKSIZE 1 -EOF - + echo "$as_me:6485: result: Aiee, autoconfig did not recognize timezone mechanism! Time-zone offset calculation may give wrong results" >&5 +echo "${ECHO_T}Aiee, autoconfig did not recognize timezone mechanism! Time-zone offset calculation may give wrong results" >&6 fi +# AC_STRUCT_ST_BLOCKS +# AC_STRUCT_ST_BLKSIZE -echo "$ac_t""Scanning possible database libraries in preferrence order:" 1>&6 -echo "$ac_t"" NDBM, SDBM, GDBM, BSD DB 1.x, SleepyCat DB 2.x" 1>&6 -echo "$ac_t"" ( Hash, Hash, Hash, BTree, BTree )" 1>&6 -echo "$ac_t""Last one of them found will be system default DB format." 1>&6 +echo "$as_me:6492: result: Scanning possible database libraries in preferrence order:" >&5 +echo "${ECHO_T}Scanning possible database libraries in preferrence order:" >&6 +echo "$as_me:6494: result: NDBM, SDBM, GDBM, BSD DB 1.x, SleepyCat DB 2.x" >&5 +echo "${ECHO_T} NDBM, SDBM, GDBM, BSD DB 1.x, SleepyCat DB 2.x" >&6 +echo "$as_me:6496: result: ( Hash, Hash, Hash, BTree, BTree )" >&5 +echo "${ECHO_T} ( Hash, Hash, Hash, BTree, BTree )" >&6 +echo "$as_me:6498: result: Last one of them found will be system default DB format." >&5 +echo "${ECHO_T}Last one of them found will be system default DB format." >&6 DEFDBTYPE="$DBTYPE" # From possible entry in zmailer.conf above... # Default db-type, unless we figure out something. # Default db-extension (pag/db) for FILE OPEN # Default db-extension (pag/db) for FILE AGE TESTS -for ac_hdr in ndbm.h sdbm.h gdbm.h db.h db1/db.h db_185.h + +for ac_header in ndbm.h sdbm.h gdbm.h db.h db1/db.h db_185.h do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:3915: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` +echo "$as_me:6509: checking for $ac_header" >&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 +if eval "test \"\${$ac_ac_Header+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +#line 6515 "configure" +#include "confdefs.h" +#include <$ac_header> +_ACEOF +if { (eval echo "$as_me:6519: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 + (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 + ac_status=$? + egrep -v '^ *\+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:6525: \$? = $ac_status" >&5 + (exit $ac_status); }; then + if test -s conftest.err; then + ac_cpp_err=$ac_c_preproc_warn_flag + else + ac_cpp_err= + fi else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:3925: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" + ac_cpp_err=yes +fi +if test -z "$ac_cpp_err"; then + eval "$ac_ac_Header=yes" else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 + echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" + eval "$ac_ac_Header=no" fi -rm -f conftest* +rm -f conftest.err conftest.$ac_ext fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&5 +echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 +if test `eval echo '${'$ac_ac_Header'}'` = yes; then + cat >>confdefs.h <&6 + fi done -for ac_hdr in db2/db.h db2/db_185.h db3/db.h db3/db_185.h +for ac_header in db2/db.h db2/db_185.h db3/db.h db3/db_185.h do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:3955: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` +echo "$as_me:6557: checking for $ac_header" >&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 +if eval "test \"\${$ac_ac_Header+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 6563 "configure" #include "confdefs.h" -#include <$ac_hdr> -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:3965: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" +#include <$ac_header> +_ACEOF +if { (eval echo "$as_me:6567: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 + (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 + ac_status=$? + egrep -v '^ *\+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:6573: \$? = $ac_status" >&5 + (exit $ac_status); }; then + if test -s conftest.err; then + ac_cpp_err=$ac_c_preproc_warn_flag + else + ac_cpp_err= + fi else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 + ac_cpp_err=yes +fi +if test -z "$ac_cpp_err"; then + eval "$ac_ac_Header=yes" +else + echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" + eval "$ac_ac_Header=no" fi -rm -f conftest* +rm -f conftest.err conftest.$ac_ext fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&5 +echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 +if test `eval echo '${'$ac_ac_Header'}'` = yes; then + cat >>confdefs.h <&6 + fi done - dblocation="" LIBNDBM="" @@ -4010,46 +6621,72 @@ DBTYPE="ndbm" fi else - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 6625 "configure" #include "confdefs.h" -int main() { +int +main () +{ dbm_open(); -; return 0; } -EOF -if { (eval echo configure:4022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:6637: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:6640: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:6643: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:6646: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then ac_cv_lib_c_dbm_open=yes else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_lib_c_dbm_open=no + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_lib_c_dbm_open=no fi -rm -f conftest* +rm -f conftest$ac_exeext conftest.$ac_ext if test "$ac_cv_lib_c_dbm_open" = no; then if test "x$ac_cv_lib_dbm_dbm_open" = x; then # not set t_oldLibs="$LIBS" LIBS="$LIBS -ldbm" - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 6660 "configure" #include "confdefs.h" -int main() { +int +main () +{ dbm_open(); -; return 0; } -EOF -if { (eval echo configure:4044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:6672: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:6675: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:6678: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:6681: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then ac_cv_lib_dbm_dbm_open=yes else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_lib_dbm_dbm_open=no + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_lib_dbm_dbm_open=no fi -rm -f conftest* +rm -f conftest$ac_exeext conftest.$ac_ext LIBS="$t_oldLibs" if test "$ac_cv_lib_dbm_dbm_open" = yes; then LIBNDBM="-ldbm" @@ -4057,36 +6694,52 @@ DBTYPE="ndbm" else LIBS="$t_oldLibs -ldb" - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 6698 "configure" #include "confdefs.h" -int main() { +int +main () +{ dbm_open(); -; return 0; } -EOF -if { (eval echo configure:4069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:6710: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:6713: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:6716: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:6719: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then ac_cv_lib_db_dbm_open=yes else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_lib_db_dbm_open=no + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_lib_db_dbm_open=no fi -rm -f conftest* +rm -f conftest$ac_exeext conftest.$ac_ext LIBS="$t_oldLibs" if test "$ac_cv_lib_db_dbm_open" = yes ; then LIBNDBM="-ldb" t_found_at="db library" DBTYPE="ndbm" else - echo "$ac_t""??? Has , but dbm_open() is not at libc, libndbm, nor at libdb ???" 1>&6 + echo "$as_me:6734: result: ??? Has , but dbm_open() is not at libc, libndbm, nor at libdb ???" >&5 +echo "${ECHO_T}??? Has , but dbm_open() is not at libc, libndbm, nor at libdb ???" >&6 fi fi else if test "$ac_cv_lib_dbm_dbm_open" = yes ; then - { echo "configure: error: config.cache inconsistency! (ndbm) Delete it, and redo!" 1>&2; exit 1; } + { { echo "$as_me:6740: error: config.cache inconsistency! (ndbm) Delete it, and redo!" >&5 +echo "$as_me: error: config.cache inconsistency! (ndbm) Delete it, and redo!" >&2;} + { (exit 1); exit 1; }; } fi fi else # Has it in the libc! @@ -4101,28 +6754,43 @@ # If we have BSD DB's compability mode in use, it does not have # dbm_error() function. Check at it! LIBS="$LIBS $LIBNDBM" - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 6758 "configure" #include "confdefs.h" #include -int main() { +int +main () +{ DBM *db;int i = dbm_error(db); -; return 0; } -EOF -if { (eval echo configure:4113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - cat >> confdefs.h <<\EOF + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:6770: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:6773: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:6776: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:6779: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + cat >>confdefs.h <<\EOF #define HAVE_DBM_ERROR 1 EOF else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 fi -rm -f conftest* +rm -f conftest$ac_exeext conftest.$ac_ext LIBS="$t_oldLibs" fi - echo "$ac_t""Located NDBM's dbm_open() routine at $t_found_at" 1>&6 + echo "$as_me:6792: result: Located NDBM's dbm_open() routine at $t_found_at" >&5 +echo "${ECHO_T}Located NDBM's dbm_open() routine at $t_found_at" >&6 if test "$t_found_at" != nowhere; then dblocation="$dblocation;$t_found_at" fi @@ -4131,30 +6799,45 @@ if test -n "$LIBNDBM" ; then if test -z "ac_cv_ndbm_dbm_pagfno" ; then LIBS="$LIBS $LIBNDBM" - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 6803 "configure" #include "confdefs.h" #include #include -int main() { +int +main () +{ DBM *tdbm; int fd = dbm_pagfno(tdbm); -; return 0; } -EOF -if { (eval echo configure:4144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:6816: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:6819: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:6822: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:6825: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then ac_cv_ndbm_dbm_pagfno=yes else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_ndbm_dbm_pagfno=no + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_ndbm_dbm_pagfno=no fi -rm -f conftest* +rm -f conftest$ac_exeext conftest.$ac_ext LIBS="$t_oldLibs" fi if test "$ac_cv_ndbm_dbm_pagfno" = no ; then - echo "$ac_t""WARNING: sighted, but linkage of dbm_pagfno() function fails!" 1>&6 - echo "$ac_t""WARNING: YOU WILL PROPABLY BE IN A PICKLE DUE TO THIS!" 1>&6 + echo "$as_me:6837: result: WARNING: sighted, but linkage of dbm_pagfno() function fails!" >&5 +echo "${ECHO_T}WARNING: sighted, but linkage of dbm_pagfno() function fails!" >&6 + echo "$as_me:6839: result: WARNING: YOU WILL PROPABLY BE IN A PICKLE DUE TO THIS!" >&5 +echo "${ECHO_T}WARNING: YOU WILL PROPABLY BE IN A PICKLE DUE TO THIS!" >&6 fi fi @@ -4162,10 +6845,14 @@ # Sometimes it is in libc, sometimes at separate lib... # Umm... if test "$ac_cv_header_sdbm_h" = yes ; then - echo "$ac_t""Note: SDBM support is not really integrated!" 1>&6 - echo "$ac_t""Note2: Usually the is installed as and the library" 1>&6 - echo "$ac_t"" is installed as libdbm.a, and it is indistinguishable" 1>&6 - echo "$ac_t"" (at source level) from a real NDBM." 1>&6 + echo "$as_me:6848: result: Note: SDBM support is not really integrated!" >&5 +echo "${ECHO_T}Note: SDBM support is not really integrated!" >&6 + echo "$as_me:6850: result: Note2: Usually the is installed as and the library" >&5 +echo "${ECHO_T}Note2: Usually the is installed as and the library" >&6 + echo "$as_me:6852: result: is installed as libdbm.a, and it is indistinguishable" >&5 +echo "${ECHO_T} is installed as libdbm.a, and it is indistinguishable" >&6 + echo "$as_me:6854: result: (at source level) from a real NDBM." >&5 +echo "${ECHO_T} (at source level) from a real NDBM." >&6 t_found_at="nowhere" if test "$ac_cv_lib_c_dbm_open" = yes ; then LIBSDBM="" @@ -4177,57 +6864,86 @@ t_found_at="sdbm library" DBTYPE="ndbm" else - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 6868 "configure" #include "confdefs.h" -int main() { +int +main () +{ dbm_open(); -; return 0; } -EOF -if { (eval echo configure:4189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:6880: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:6883: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:6886: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:6889: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then ac_cv_lib_c_dbm_open=yes else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_lib_c_dbm_open=no + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_lib_c_dbm_open=no fi -rm -f conftest* +rm -f conftest$ac_exeext conftest.$ac_ext if test "$ac_cv_lib_c_dbm_open" = no; then if test "x$ac_cv_lib_sdbm_dbm_open" = x; then # not set t_oldLibs="$LIBS" LIBS="$LIBS -lsdbm" - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 6903 "configure" #include "confdefs.h" -int main() { +int +main () +{ dbm_open(); -; return 0; } -EOF -if { (eval echo configure:4211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:6915: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:6918: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:6921: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:6924: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then ac_cv_lib_sdbm_dbm_open=yes else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_lib_sdbm_dbm_open=no + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_lib_sdbm_dbm_open=no fi -rm -f conftest* +rm -f conftest$ac_exeext conftest.$ac_ext LIBS="$t_oldLibs" if test "$ac_cv_lib_sdbm_dbm_open" = yes; then LIBSDBM="-lsdbm" t_found_at="sdbm library" DBTYPE="ndbm" else - echo "$ac_t""??? Has , but dbm_open() is not at libc, nor at libsdbm ???" 1>&6 + echo "$as_me:6939: result: ??? Has , but dbm_open() is not at libc, nor at libsdbm ???" >&5 +echo "${ECHO_T}??? Has , but dbm_open() is not at libc, nor at libsdbm ???" >&6 fi else if test "$ac_cv_lib_sdbm_dbm_open" = yes ; then - { echo "configure: error: config.cache inconsistency! (sdbm) Delete it, and redo!" 1>&2; exit 1; } + { { echo "$as_me:6944: error: config.cache inconsistency! (sdbm) Delete it, and redo!" >&5 +echo "$as_me: error: config.cache inconsistency! (sdbm) Delete it, and redo!" >&2;} + { (exit 1); exit 1; }; } fi fi else # Has it in the libc! @@ -4237,7 +6953,8 @@ fi fi fi - echo "$ac_t""Located SDBM's dbm_open() routine at $t_found_at" 1>&6 + echo "$as_me:6956: result: Located SDBM's dbm_open() routine at $t_found_at" >&5 +echo "${ECHO_T}Located SDBM's dbm_open() routine at $t_found_at" >&6 if test "$t_found_at" != nowhere; then dblocation="$dblocation;$t_found_at" fi @@ -4257,58 +6974,87 @@ t_found_at="gdbm library" DBTYPE="gdbm" else - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 6978 "configure" #include "confdefs.h" -int main() { +int +main () +{ gdbm_open(); -; return 0; } -EOF -if { (eval echo configure:4269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:6990: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:6993: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:6996: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:6999: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then ac_cv_lib_c_gdbm_open=yes else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_lib_c_gdbm_open=no + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_lib_c_gdbm_open=no fi -rm -f conftest* +rm -f conftest$ac_exeext conftest.$ac_ext if test "$ac_cv_lib_c_gdbm_open" = no; then if test "x$ac_cv_lib_gdbm_gdbm_open" = x; then # not set t_oldLibs="$LIBS" LIBS="$LIBS -lgdbm" - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 7013 "configure" #include "confdefs.h" -int main() { +int +main () +{ gdbm_open(); -; return 0; } -EOF -if { (eval echo configure:4291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:7025: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:7028: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:7031: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:7034: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then ac_cv_lib_gdbm_gdbm_open=yes else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_lib_gdbm_gdbm_open=no + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_lib_gdbm_gdbm_open=no fi -rm -f conftest* +rm -f conftest$ac_exeext conftest.$ac_ext LIBS="$t_oldLibs" if test "$ac_cv_lib_gdbm_gdbm_open" = yes; then LIBGDBM="-lgdbm" t_found_at="gdbm library" DBTYPE="gdbm" else - echo "$ac_t""??? Has , but gdbm_open() is not at libc, nor at libgdbm ???" 1>&6 - + echo "$as_me:7049: result: ??? Has , but gdbm_open() is not at libc, nor at libgdbm ???" >&5 +echo "${ECHO_T}??? Has , but gdbm_open() is not at libc, nor at libgdbm ???" >&6 + fi else if test "$ac_cv_lib_gdbm_gdbm_open" = yes ; then - { echo "configure: error: config.cache inconsistency! (gdbm) Delete it, and redo!" 1>&2; exit 1; } + { { echo "$as_me:7055: error: config.cache inconsistency! (gdbm) Delete it, and redo!" >&5 +echo "$as_me: error: config.cache inconsistency! (gdbm) Delete it, and redo!" >&2;} + { (exit 1); exit 1; }; } fi fi else # Has it in the libc! @@ -4318,7 +7064,8 @@ fi fi fi - echo "$ac_t""Located GNU GDBM's gdbm_open() routine at $t_found_at" 1>&6 + echo "$as_me:7067: result: Located GNU GDBM's gdbm_open() routine at $t_found_at" >&5 +echo "${ECHO_T}Located GNU GDBM's gdbm_open() routine at $t_found_at" >&6 if test "$t_found_at" != nowhere; then dblocation="$dblocation;$t_found_at" fi @@ -4339,57 +7086,86 @@ DBTYPE="btree" else if test "x$ac_cv_lib_c_dbopen1" = x ; then # not set - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 7090 "configure" #include "confdefs.h" -int main() { +int +main () +{ dbopen(); -; return 0; } -EOF -if { (eval echo configure:4351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:7102: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:7105: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:7108: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:7111: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then ac_cv_lib_c_dbopen1=yes else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_lib_c_dbopen1=no + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_lib_c_dbopen1=no fi -rm -f conftest* +rm -f conftest$ac_exeext conftest.$ac_ext fi if test "$ac_cv_lib_c_dbopen1" = no ; then if test "x$ac_cv_lib_db1_dbopen1" = x ; then # not set t_oldLibs="$LIBS" LIBS="$LIBS -ldb1" - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 7126 "configure" #include "confdefs.h" -int main() { +int +main () +{ dbopen(); -; return 0; } -EOF -if { (eval echo configure:4374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:7138: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:7141: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:7144: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:7147: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then ac_cv_lib_db1_dbopen1=yes else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_lib_db1_dbopen1=no + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_lib_db1_dbopen1=no fi -rm -f conftest* +rm -f conftest$ac_exeext conftest.$ac_ext LIBS="$t_oldLibs" if test "$ac_cv_lib_db1_dbopen1" = yes ; then LIBDB="-ldb1" t_found_at="db1 library" DBTYPE="btree" else - echo "$ac_t""??? Has , but dbopen() is not at libc, nor at libdb ???" 1>&6 + echo "$as_me:7162: result: ??? Has , but dbopen() is not at libc, nor at libdb ???" >&5 +echo "${ECHO_T}??? Has , but dbopen() is not at libc, nor at libdb ???" >&6 fi elif test "$ac_cv_lib_db1_dbopen1" = yes ; then - { echo "configure: error: config.cache inconsistency! (db1) Delete it, and redo!" 1>&2; exit 1; } + { { echo "$as_me:7166: error: config.cache inconsistency! (db1) Delete it, and redo!" >&5 +echo "$as_me: error: config.cache inconsistency! (db1) Delete it, and redo!" >&2;} + { (exit 1); exit 1; }; } fi else # Has it in the libc! LIBDB="" @@ -4398,15 +7174,19 @@ fi fi if test "$t_found_at" = nowhere ; then - echo "$ac_t""Didn't locate BSD DB 1.x dbopen() anywhere, although file exists." 1>&6 + echo "$as_me:7177: result: Didn't locate BSD DB 1.x dbopen() anywhere, although file exists." >&5 +echo "${ECHO_T}Didn't locate BSD DB 1.x dbopen() anywhere, although file exists." >&6 else - echo "$ac_t""Located BSD DB 1.x dbopen() routine at $t_found_at" 1>&6 + echo "$as_me:7180: result: Located BSD DB 1.x dbopen() routine at $t_found_at" >&5 +echo "${ECHO_T}Located BSD DB 1.x dbopen() routine at $t_found_at" >&6 if test "x$LIBDB" != "x" -a "x$LIBDB" = "x$LIBNDBM" ; then # Well, both at the same library ( -ldb ), which propably # means that is just an emulation mode at BSD DB. LIBNDBM="" - echo "$ac_t""Note: It looks like your NDBM is actually BSD DB compability wrapper at" 1>&6 - echo "$ac_t"" libdb -library. If so, your NDBM databases are actually BSD DB_HASH ones.." 1>&6 + echo "$as_me:7186: result: Note: It looks like your NDBM is actually BSD DB compability wrapper at" >&5 +echo "${ECHO_T}Note: It looks like your NDBM is actually BSD DB compability wrapper at" >&6 + echo "$as_me:7188: result: libdb -library. If so, your NDBM databases are actually BSD DB_HASH ones.." >&5 +echo "${ECHO_T} libdb -library. If so, your NDBM databases are actually BSD DB_HASH ones.." >&6 fi if test "$t_found_at" != nowhere; then dblocation="$dblocation;$t_found_at" @@ -4414,7 +7194,6 @@ fi fi - if test "$ac_cv_header_db_h" = yes -o "$ac_cv_header_db1_db_h" = yes ; then t_found_at="nowhere" if test "$ac_cv_lib_c_dbopen" = yes ; then @@ -4431,69 +7210,108 @@ DBTYPE="btree" else if test "x$ac_cv_lib_c_dbopen" = x ; then # not set - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 7214 "configure" #include "confdefs.h" -int main() { +int +main () +{ dbopen(); -; return 0; } -EOF -if { (eval echo configure:4443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:7226: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:7229: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:7232: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:7235: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then ac_cv_lib_c_dbopen=yes else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_lib_c_dbopen=no + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_lib_c_dbopen=no fi -rm -f conftest* +rm -f conftest$ac_exeext conftest.$ac_ext fi if test "$ac_cv_lib_c_dbopen" = no ; then if test "x$ac_cv_lib_db1_dbopen" = x ; then # not set t_oldLibs="$LIBS" LIBS="$LIBS -ldb1" - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 7250 "configure" #include "confdefs.h" -int main() { +int +main () +{ dbopen(); -; return 0; } -EOF -if { (eval echo configure:4466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:7262: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:7265: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:7268: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:7271: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then ac_cv_lib_db1_dbopen=yes else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_lib_db1_dbopen=no + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_lib_db1_dbopen=no fi -rm -f conftest* +rm -f conftest$ac_exeext conftest.$ac_ext LIBS="$t_oldLibs" if test "$ac_cv_lib_db1_dbopen" = no ; then t_oldLibs="$LIBS" LIBS="$LIBS -ldb" - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 7285 "configure" #include "confdefs.h" -int main() { +int +main () +{ dbopen(); -; return 0; } -EOF -if { (eval echo configure:4488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:7297: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:7300: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:7303: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:7306: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then ac_cv_lib_db_dbopen=yes else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_lib_db_dbopen=no + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_lib_db_dbopen=no fi -rm -f conftest* +rm -f conftest$ac_exeext conftest.$ac_ext LIBS="$t_oldLibs" fi if test "$ac_cv_lib_db1_dbopen" = yes ; then @@ -4505,10 +7323,13 @@ t_found_at="db library" DBTYPE="btree" else - echo "$ac_t""??? Has , but dbopen() is not at libc, at libdb, nor at libdb1 ???" 1>&6 + echo "$as_me:7326: result: ??? Has , but dbopen() is not at libc, at libdb, nor at libdb1 ???" >&5 +echo "${ECHO_T}??? Has , but dbopen() is not at libc, at libdb, nor at libdb1 ???" >&6 fi elif test "$ac_cv_lib_db_dbopen" = yes ; then - { echo "configure: error: config.cache inconsistency! (db) Delete it, and redo!" 1>&2; exit 1; } + { { echo "$as_me:7330: error: config.cache inconsistency! (db) Delete it, and redo!" >&5 +echo "$as_me: error: config.cache inconsistency! (db) Delete it, and redo!" >&2;} + { (exit 1); exit 1; }; } fi else # Has it in the libc! LIBDB="" @@ -4517,15 +7338,19 @@ fi fi if test "$t_found_at" = nowhere ; then - echo "$ac_t""Didn't locate BSD DB 1.x dbopen() anywhere, although file exists." 1>&6 + echo "$as_me:7341: result: Didn't locate BSD DB 1.x dbopen() anywhere, although file exists." >&5 +echo "${ECHO_T}Didn't locate BSD DB 1.x dbopen() anywhere, although file exists." >&6 else - echo "$ac_t""Located BSD DB 1.x dbopen() routine at $t_found_at" 1>&6 + echo "$as_me:7344: result: Located BSD DB 1.x dbopen() routine at $t_found_at" >&5 +echo "${ECHO_T}Located BSD DB 1.x dbopen() routine at $t_found_at" >&6 if test "x$LIBDB" != "x" -a "x$LIBDB" = "x$LIBNDBM" ; then # Well, both at the same library ( -ldb ), which propably # means that is just an emulation mode at BSD DB. LIBNDBM="" - echo "$ac_t""Note: It looks like your NDBM is actually BSD DB compability wrapper at" 1>&6 - echo "$ac_t"" libdb -library. If so, your NDBM databases are actually BSD DB_HASH ones.." 1>&6 + echo "$as_me:7350: result: Note: It looks like your NDBM is actually BSD DB compability wrapper at" >&5 +echo "${ECHO_T}Note: It looks like your NDBM is actually BSD DB compability wrapper at" >&6 + echo "$as_me:7352: result: libdb -library. If so, your NDBM databases are actually BSD DB_HASH ones.." >&5 +echo "${ECHO_T} libdb -library. If so, your NDBM databases are actually BSD DB_HASH ones.." >&6 fi if test "$t_found_at" != nowhere; then dblocation="$dblocation;$t_found_at" @@ -4533,14 +7358,13 @@ fi fi - if test "$ac_cv_header_db_h" = yes -o "$ac_cv_header_db2_db_h" = yes ; then t_found_at="nowhere" if test "$ac_cv_lib_c_db_open2" = yes ; then LIBDB="" t_found_at="libc(3)" DBTYPE="btree" - cat >> confdefs.h <<\EOF + cat >>confdefs.h <<\EOF #define HAVE_DB_OPEN2 1 EOF @@ -4548,7 +7372,7 @@ LIBDB="-ldb2" t_found_at="db2 library" DBTYPE="btree" - cat >> confdefs.h <<\EOF + cat >>confdefs.h <<\EOF #define HAVE_DB_OPEN2 1 EOF @@ -4556,81 +7380,120 @@ LIBDB="-ldb" t_found_at="db library" DBTYPE="btree" - cat >> confdefs.h <<\EOF + cat >>confdefs.h <<\EOF #define HAVE_DB_OPEN2 1 EOF else if test "x$ac_cv_lib_c_db_open2" = x ; then # not set - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 7390 "configure" #include "confdefs.h" -int main() { +int +main () +{ db_open(); -; return 0; } -EOF -if { (eval echo configure:4574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:7402: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:7405: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:7408: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:7411: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then ac_cv_lib_c_db_open2=yes else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_lib_c_db_open2=no + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_lib_c_db_open2=no fi -rm -f conftest* +rm -f conftest$ac_exeext conftest.$ac_ext fi if test "$ac_cv_lib_c_db_open2" = no ; then if test "x$ac_cv_lib_db_db_open2" = x ; then # not set t_oldLibs="$LIBS" LIBS="$LIBS -ldb" - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 7426 "configure" #include "confdefs.h" -int main() { +int +main () +{ db_open(); -; return 0; } -EOF -if { (eval echo configure:4597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:7438: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:7441: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:7444: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:7447: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then ac_cv_lib_db_db_open2=yes else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_lib_db_db_open2=no + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_lib_db_db_open2=no fi -rm -f conftest* +rm -f conftest$ac_exeext conftest.$ac_ext LIBS="$t_oldLibs" if test "$ac_cv_lib_db_db_open2" = no ; then LIBS="$LIBS -ldb2" - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 7460 "configure" #include "confdefs.h" -int main() { +int +main () +{ db_open(); -; return 0; } -EOF -if { (eval echo configure:4618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:7472: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:7475: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:7478: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:7481: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then ac_cv_lib_db2_db_open2=yes else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_lib_db2_db_open2=no + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_lib_db2_db_open2=no fi -rm -f conftest* +rm -f conftest$ac_exeext conftest.$ac_ext LIBS="$t_oldLibs" fi if test "$ac_cv_lib_db2_db_open2" = yes ; then LIBDB="-ldb2" t_found_at="db2 library" DBTYPE="btree" - cat >> confdefs.h <<\EOF + cat >>confdefs.h <<\EOF #define HAVE_DB_OPEN2 1 EOF @@ -4638,7 +7501,7 @@ LIBDB="-ldb" t_found_at="db library" DBTYPE="btree" - cat >> confdefs.h <<\EOF + cat >>confdefs.h <<\EOF #define HAVE_DB_OPEN2 1 EOF @@ -4647,107 +7510,142 @@ "$ac_cv_lib_c_dbopen" != yes -a \ "$ac_cv_lib_db1_dbopen1" != yes -a \ "$ac_cv_lib_c_dbopen1" != yes ; then - echo "$ac_t""??? Has or , but db_open() is not at libc, nor at -ldb or -ldb2 ???" 1>&6 + echo "$as_me:7513: result: ??? Has or , but db_open() is not at libc, nor at -ldb or -ldb2 ???" >&5 +echo "${ECHO_T}??? Has or , but db_open() is not at libc, nor at -ldb or -ldb2 ???" >&6 fi fi else if test "$ac_cv_lib_db_db_open2" = yes ; then - { echo "configure: error: config.cache inconsistency! (db2) Delete it, and redo!" 1>&2; exit 1; } + { { echo "$as_me:7519: error: config.cache inconsistency! (db2) Delete it, and redo!" >&5 +echo "$as_me: error: config.cache inconsistency! (db2) Delete it, and redo!" >&2;} + { (exit 1); exit 1; }; } fi fi else # Has it in the libc! LIBDB="" t_found_at="libc(4)" DBTYPE="btree" - cat >> confdefs.h <<\EOF + cat >>confdefs.h <<\EOF #define HAVE_DB_OPEN2 1 EOF fi fi if test "$t_found_at" = nowhere ; then - echo "$ac_t""Didn't locate SleepyCat DB 2.x db_open() anywhere, although file exists." 1>&6 + echo "$as_me:7535: result: Didn't locate SleepyCat DB 2.x db_open() anywhere, although file exists." >&5 +echo "${ECHO_T}Didn't locate SleepyCat DB 2.x db_open() anywhere, although file exists." >&6 else - echo "$ac_t""Located SleepyCat DB 2.x db_open() routine at $t_found_at" 1>&6 + echo "$as_me:7538: result: Located SleepyCat DB 2.x db_open() routine at $t_found_at" >&5 +echo "${ECHO_T}Located SleepyCat DB 2.x db_open() routine at $t_found_at" >&6 # Does (db->cursor)(...) have 3 or 4 args ? if test -z "$ac_cv_db_cursor_4" ; then # not set if test "$ac_cv_header_db2_db_h" = yes ; then - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 7544 "configure" #include "confdefs.h" #include -int main() { +int +main () +{ DB *db; DBC *curs; int err = (db->cursor)(db, NULL, &curs, 0); -; return 0; } -EOF -if { (eval echo configure:4685: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:7557: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:7560: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:7563: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:7566: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then ac_cv_db_cursor_4=yes else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_db_cursor_4=no + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_db_cursor_4=no fi -rm -f conftest* +rm -f conftest.$ac_objext conftest.$ac_ext elif test "$ac_cv_header_db_h" = yes ; then - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 7577 "configure" #include "confdefs.h" #include -int main() { +int +main () +{ DB *db; DBC *curs; int err = (db->cursor)(db, NULL, &curs, 0); -; return 0; } -EOF -if { (eval echo configure:4705: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:7590: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:7593: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:7596: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:7599: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then ac_cv_db_cursor_4=yes else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_db_cursor_4=no + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_db_cursor_4=no fi -rm -f conftest* +rm -f conftest.$ac_objext conftest.$ac_ext else - echo "$ac_t"" Hmm.. No , nor ??" 1>&6 + echo "$as_me:7609: result: Hmm.. No , nor ??" >&5 +echo "${ECHO_T} Hmm.. No , nor ??" >&6 fi fi if test "$ac_cv_db_cursor_4" = yes ; then - echo "$ac_t"" (db->cursor)() method function seems to want 4 args." 1>&6 - cat >> confdefs.h <<\EOF + echo "$as_me:7614: result: (db->cursor)() method function seems to want 4 args." >&5 +echo "${ECHO_T} (db->cursor)() method function seems to want 4 args." >&6 + cat >>confdefs.h <<\EOF #define HAVE_DB_CURSOR4 1 EOF else - echo "$ac_t"" (db->cursor)() method function seems to want 3 args." 1>&6 + echo "$as_me:7621: result: (db->cursor)() method function seems to want 3 args." >&5 +echo "${ECHO_T} (db->cursor)() method function seems to want 3 args." >&6 fi fi if test -n "$LIBDB" -a "$LIBDB" = "$LIBNDBM" ; then # Well, both at the same library ( -ldb ), which propably # means that is just an emulation mode at BSD DB. LIBNDBM="" - echo "$ac_t""Note: It looks like your NDBM is actually BSD DB compability wrapper at" 1>&6 - echo "$ac_t"" libdb -library. If so, your NDBM databases are actually BSD DB_HASH ones.." 1>&6 + echo "$as_me:7629: result: Note: It looks like your NDBM is actually BSD DB compability wrapper at" >&5 +echo "${ECHO_T}Note: It looks like your NDBM is actually BSD DB compability wrapper at" >&6 + echo "$as_me:7631: result: libdb -library. If so, your NDBM databases are actually BSD DB_HASH ones.." >&5 +echo "${ECHO_T} libdb -library. If so, your NDBM databases are actually BSD DB_HASH ones.." >&6 fi if test "$t_found_at" != nowhere; then dblocation="$dblocation;$t_found_at" fi fi - LIBLDAP="" INCLLDAP="" + # Check whether --with-ldap-prefix or --without-ldap-prefix was given. if test "${with_ldap_prefix+set}" = set; then withval="$with_ldap_prefix" use_ldap=1 -fi - +fi; if test "$use_ldap" = 1 ; then - cat >> confdefs.h <<\EOF + cat >>confdefs.h <<\EOF #define HAVE_LDAP 1 EOF @@ -4758,14 +7656,14 @@ fi fi use_ldap=0 + # Check whether --with-ldap-include-dir or --without-ldap-include-dir was given. if test "${with_ldap_include_dir+set}" = set; then withval="$with_ldap_include_dir" use_ldap=1 -fi - +fi; if test "$use_ldap" = 1 ; then - cat >> confdefs.h <<\EOF + cat >>confdefs.h <<\EOF #define HAVE_LDAP 1 EOF @@ -4775,14 +7673,14 @@ fi fi use_ldap=0 + # Check whether --with-ldap-library-dir or --without-ldap-library-dir was given. if test "${with_ldap_library_dir+set}" = set; then withval="$with_ldap_library_dir" use_ldap=1 -fi - +fi; if test "$use_ldap" = 1 ; then - cat >> confdefs.h <<\EOF + cat >>confdefs.h <<\EOF #define HAVE_LDAP 1 EOF @@ -4794,7 +7692,6 @@ # Lets build a nice single substitute variable - # GDBM must be last as if we have LIBDB at the system instead of real # LIBNDBM, we still have ndbm routines, but want to use (likely) # ones from LIBDB instead of LIBGDBM... @@ -4828,10 +7725,14 @@ fi if test "$dblocation" = "" ; then - echo "$ac_t"">>> OOPS! You don't have any kind of modern DBMs in your" 1>&6 - echo "$ac_t"">>> system! We will not use ancient single-db using" 1>&6 - echo "$ac_t"">>> even if you had it. Now you have only" 1>&6 - echo "$ac_t"">>> relation (external) db types: ordered, unordered" 1>&6 + echo "$as_me:7728: result: >>> OOPS! You don't have any kind of modern DBMs in your" >&5 +echo "${ECHO_T}>>> OOPS! You don't have any kind of modern DBMs in your" >&6 + echo "$as_me:7730: result: >>> system! We will not use ancient single-db using" >&5 +echo "${ECHO_T}>>> system! We will not use ancient single-db using" >&6 + echo "$as_me:7732: result: >>> even if you had it. Now you have only" >&5 +echo "${ECHO_T}>>> even if you had it. Now you have only" >&6 + echo "$as_me:7734: result: >>> relation (external) db types: ordered, unordered" >&5 +echo "${ECHO_T}>>> relation (external) db types: ordered, unordered" >&6 fi # ... this is pointless test ... @@ -4860,92 +7761,106 @@ ;; esac -for ac_hdr in string.h fcntl.h limits.h errno.h unistd.h stdlib.h \ +for ac_header in string.h fcntl.h limits.h errno.h unistd.h stdlib.h \ sys/param.h sys/statfs.h sys/fstyp.h mnttab.h mntent.h utime.h \ sys/statvfs.h sys/vfs.h sys/mount.h sys/filsys.h sys/fs_types.h do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:4870: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` +echo "$as_me:7769: checking for $ac_header" >&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 +if eval "test \"\${$ac_ac_Header+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +#line 7775 "configure" +#include "confdefs.h" +#include <$ac_header> +_ACEOF +if { (eval echo "$as_me:7779: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 + (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 + ac_status=$? + egrep -v '^ *\+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:7785: \$? = $ac_status" >&5 + (exit $ac_status); }; then + if test -s conftest.err; then + ac_cpp_err=$ac_c_preproc_warn_flag + else + ac_cpp_err= + fi else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:4880: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" + ac_cpp_err=yes +fi +if test -z "$ac_cpp_err"; then + eval "$ac_ac_Header=yes" else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 + echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" + eval "$ac_ac_Header=no" fi -rm -f conftest* +rm -f conftest.err conftest.$ac_ext fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&5 +echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 +if test `eval echo '${'$ac_ac_Header'}'` = yes; then + cat >>confdefs.h <&6 + fi done -for ac_hdr in sys/utsname.h maillock.h arpa/inet.h +for ac_header in sys/utsname.h maillock.h arpa/inet.h do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:4910: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` +echo "$as_me:7817: checking for $ac_header" >&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 +if eval "test \"\${$ac_ac_Header+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 7823 "configure" #include "confdefs.h" -#include <$ac_hdr> -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:4920: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" +#include <$ac_header> +_ACEOF +if { (eval echo "$as_me:7827: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 + (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 + ac_status=$? + egrep -v '^ *\+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:7833: \$? = $ac_status" >&5 + (exit $ac_status); }; then + if test -s conftest.err; then + ac_cpp_err=$ac_c_preproc_warn_flag + else + ac_cpp_err= + fi else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 + ac_cpp_err=yes +fi +if test -z "$ac_cpp_err"; then + eval "$ac_ac_Header=yes" +else + echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" + eval "$ac_ac_Header=no" fi -rm -f conftest* +rm -f conftest.err conftest.$ac_ext fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&5 +echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 +if test `eval echo '${'$ac_ac_Header'}'` = yes; then + cat >>confdefs.h <&6 + fi done - - - use_pam=1 + # Check whether --with-pam or --without-pam was given. if test "${with_pam+set}" = set; then withval="$with_pam" @@ -4956,47 +7871,55 @@ fi else use_pam=1 -fi +fi; - if test "$use_pam" = 1 ; then - for ac_hdr in security/pam_appl.h shadow.h + +for ac_header in security/pam_appl.h shadow.h do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:4968: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` +echo "$as_me:7881: checking for $ac_header" >&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 +if eval "test \"\${$ac_ac_Header+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +#line 7887 "configure" +#include "confdefs.h" +#include <$ac_header> +_ACEOF +if { (eval echo "$as_me:7891: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 + (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 + ac_status=$? + egrep -v '^ *\+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:7897: \$? = $ac_status" >&5 + (exit $ac_status); }; then + if test -s conftest.err; then + ac_cpp_err=$ac_c_preproc_warn_flag + else + ac_cpp_err= + fi else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:4978: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" + ac_cpp_err=yes +fi +if test -z "$ac_cpp_err"; then + eval "$ac_ac_Header=yes" else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 + echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" + eval "$ac_ac_Header=no" fi -rm -f conftest* +rm -f conftest.err conftest.$ac_ext fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&5 +echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 +if test `eval echo '${'$ac_ac_Header'}'` = yes; then + cat >>confdefs.h <&6 + fi done @@ -5004,45 +7927,71 @@ # Some systems need only "-lpam", others need also "-ldl" t_oldLibs="$LIBS" LIBS="$LIBS -lpam" - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 7931 "configure" #include "confdefs.h" #include -int main() { +int +main () +{ pam_end(NULL,0); -; return 0; } -EOF -if { (eval echo configure:5016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - AUTHLIB="-lpam" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - AUTHLIB="-lpam -ldl" + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:7943: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:7946: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:7949: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:7952: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + AUTHLIB="-lpam" +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +AUTHLIB="-lpam -ldl" fi -rm -f conftest*; +rm -f conftest$ac_exeext conftest.$ac_ext; LIBS="$t_oldLibs" else if test "$ac_cv_header_shadow_h" = "yes"; then - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 7965 "configure" #include "confdefs.h" -int main() { +int +main () +{ getspnam("foo"); -; return 0; } -EOF -if { (eval echo configure:5037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:7977: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:7980: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:7983: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:7986: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then AUTHLIB="" else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - AUTHLIB="-lshadow" + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +AUTHLIB="-lshadow" fi -rm -f conftest* +rm -f conftest$ac_exeext conftest.$ac_ext else AUTHLIB="" fi @@ -5055,261 +8004,344 @@ # The API specs say: , but some people disagree... # -for ac_hdr in netinet/in.h sys/un.h sys/socket.h +for ac_header in netinet/in.h sys/un.h sys/socket.h do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:5063: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` +echo "$as_me:8010: checking for $ac_header" >&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 +if eval "test \"\${$ac_ac_Header+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +#line 8016 "configure" +#include "confdefs.h" +#include <$ac_header> +_ACEOF +if { (eval echo "$as_me:8020: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 + (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 + ac_status=$? + egrep -v '^ *\+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:8026: \$? = $ac_status" >&5 + (exit $ac_status); }; then + if test -s conftest.err; then + ac_cpp_err=$ac_c_preproc_warn_flag + else + ac_cpp_err= + fi else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:5073: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" + ac_cpp_err=yes +fi +if test -z "$ac_cpp_err"; then + eval "$ac_ac_Header=yes" else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 + echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" + eval "$ac_ac_Header=no" fi -rm -f conftest* +rm -f conftest.err conftest.$ac_ext fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&5 +echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 +if test `eval echo '${'$ac_ac_Header'}'` = yes; then + cat >>confdefs.h <&6 + fi done if test "$ac_cv_header_netinet_in_h" = no ; then - echo "$ac_t""%%% AIEEE! NO HEADER ?!" 1>&6 + echo "$as_me:8056: result: %%% AIEEE! NO HEADER ?!" >&5 +echo "${ECHO_T}%%% AIEEE! NO HEADER ?!" >&6 fi -cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 8061 "configure" #include "confdefs.h" #include #include -int main() { +int +main () +{ socklen_t sl = 2; -; return 0; } -EOF -if { (eval echo configure:5112: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - cat >> confdefs.h <<\EOF + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:8074: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:8077: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:8080: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:8083: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + cat >>confdefs.h <<\EOF #define HAVE_SOCKLEN_T 1 EOF else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 fi -rm -f conftest* +rm -f conftest.$ac_objext conftest.$ac_ext # Check whether --with-ipv6 or --without-ipv6 was given. if test "${with_ipv6+set}" = set; then withval="$with_ipv6" - cat >> confdefs.h <<\EOF + cat >>confdefs.h <<\EOF #define INET6 1 EOF ac_with_ipv6=yes - -fi +fi; if test "$ac_with_ipv6" = yes; then if test "x$ac_cv_af_inet6" = "x"; then - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 8109 "configure" #include "confdefs.h" #include #include -int main() { +int +main () +{ int af = AF_INET6; -; return 0; } -EOF -if { (eval echo configure:5147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:8122: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:8125: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:8128: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:8131: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then ac_cv_af_inet6=yes else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_af_inet6=no + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_af_inet6=no fi -rm -f conftest* +rm -f conftest$ac_exeext conftest.$ac_ext if test "$ac_cv_af_inet6" = yes; then - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 8142 "configure" #include "confdefs.h" #include #include #include -int main() { +int +main () +{ /* Has AF_INET6, but does one have all related things ? */ struct in6_addr sin6; -; return 0; } -EOF -if { (eval echo configure:5169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:8157: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:8160: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:8163: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:8166: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then ac_cv_struct_in6_addr=yes else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_struct_in6_addr=no -fi -rm -f conftest* - echo "$ac_t""We have defining AF_INET6, but do we have properly .." 1>&6 - echo "$ac_t"".. structured headers with 'struct in6_addr' ? $ac_cv_struct_in6_addr" 1>&6 + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_struct_in6_addr=no +fi +rm -f conftest$ac_exeext conftest.$ac_ext + echo "$as_me:8175: result: We have defining AF_INET6, but do we have properly .." >&5 +echo "${ECHO_T}We have defining AF_INET6, but do we have properly .." >&6 + echo "$as_me:8177: result: .. structured headers with 'struct in6_addr' ? $ac_cv_struct_in6_addr" >&5 +echo "${ECHO_T}.. structured headers with 'struct in6_addr' ? $ac_cv_struct_in6_addr" >&6 if test "$ac_cv_struct_in6_addr" != yes; then - for ac_hdr in netinet/in6.h +for ac_header in netinet/in6.h do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:5187: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` +echo "$as_me:8184: checking for $ac_header" >&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 +if eval "test \"\${$ac_ac_Header+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +#line 8190 "configure" +#include "confdefs.h" +#include <$ac_header> +_ACEOF +if { (eval echo "$as_me:8194: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 + (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 + ac_status=$? + egrep -v '^ *\+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:8200: \$? = $ac_status" >&5 + (exit $ac_status); }; then + if test -s conftest.err; then + ac_cpp_err=$ac_c_preproc_warn_flag + else + ac_cpp_err= + fi else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:5197: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" + ac_cpp_err=yes +fi +if test -z "$ac_cpp_err"; then + eval "$ac_ac_Header=yes" else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 + echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" + eval "$ac_ac_Header=no" fi -rm -f conftest* +rm -f conftest.err conftest.$ac_ext fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&5 +echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 +if test `eval echo '${'$ac_ac_Header'}'` = yes; then + cat >>confdefs.h <&6 + fi done if test "$ac_cv_header_netinet_in6_h" != "yes" ; then - for ac_hdr in netinet6/in6.h + +for ac_header in netinet6/in6.h do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:5228: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` +echo "$as_me:8234: checking for $ac_header" >&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 +if eval "test \"\${$ac_ac_Header+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +#line 8240 "configure" +#include "confdefs.h" +#include <$ac_header> +_ACEOF +if { (eval echo "$as_me:8244: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 + (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 + ac_status=$? + egrep -v '^ *\+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:8250: \$? = $ac_status" >&5 + (exit $ac_status); }; then + if test -s conftest.err; then + ac_cpp_err=$ac_c_preproc_warn_flag + else + ac_cpp_err= + fi else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:5238: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" + ac_cpp_err=yes +fi +if test -z "$ac_cpp_err"; then + eval "$ac_ac_Header=yes" else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 + echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" + eval "$ac_ac_Header=no" fi -rm -f conftest* +rm -f conftest.err conftest.$ac_ext fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&5 +echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 +if test `eval echo '${'$ac_ac_Header'}'` = yes; then + cat >>confdefs.h <&6 + fi done if test "$ac_cv_header_netinet6_in6_h" != "yes" ; then - for ac_hdr in linux/in6.h +for ac_header in linux/in6.h do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:5270: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` +echo "$as_me:8284: checking for $ac_header" >&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 +if eval "test \"\${$ac_ac_Header+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +#line 8290 "configure" +#include "confdefs.h" +#include <$ac_header> +_ACEOF +if { (eval echo "$as_me:8294: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 + (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 + ac_status=$? + egrep -v '^ *\+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:8300: \$? = $ac_status" >&5 + (exit $ac_status); }; then + if test -s conftest.err; then + ac_cpp_err=$ac_c_preproc_warn_flag + else + ac_cpp_err= + fi else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:5280: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" + ac_cpp_err=yes +fi +if test -z "$ac_cpp_err"; then + eval "$ac_ac_Header=yes" else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 + echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" + eval "$ac_ac_Header=no" fi -rm -f conftest* +rm -f conftest.err conftest.$ac_ext fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&5 +echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 +if test `eval echo '${'$ac_ac_Header'}'` = yes; then + cat >>confdefs.h <&6 + fi done if test "$ac_cv_header_linux_in6_h" != "yes" ; then - echo "$ac_t""*** You have a SOME system with defining AF_INET6, however" 1>&6 - echo "$ac_t""*** the system does not have all required includes " 1>&6 - echo "$ac_t""*** for the compilation to succeed. " 1>&6 - echo "$ac_t""*** I know of some releases of Linux 2.0.* systems doing this." 1>&6 - echo "$ac_t""*** If you have one, edit the , and" 1>&6 - echo "$ac_t""*** remove the define of AF_INET6 " 1>&6 - { echo "configure: error: AF_INET6 feature error" 1>&2; exit 1; } + echo "$as_me:8330: result: *** You have a SOME system with defining AF_INET6, however" >&5 +echo "${ECHO_T}*** You have a SOME system with defining AF_INET6, however" >&6 + echo "$as_me:8332: result: *** the system does not have all required includes " >&5 +echo "${ECHO_T}*** the system does not have all required includes " >&6 + echo "$as_me:8334: result: *** for the compilation to succeed. " >&5 +echo "${ECHO_T}*** for the compilation to succeed. " >&6 + echo "$as_me:8336: result: *** I know of some releases of Linux 2.0.* systems doing this." >&5 +echo "${ECHO_T}*** I know of some releases of Linux 2.0.* systems doing this." >&6 + echo "$as_me:8338: result: *** If you have one, edit the , and" >&5 +echo "${ECHO_T}*** If you have one, edit the , and" >&6 + echo "$as_me:8340: result: *** remove the define of AF_INET6 " >&5 +echo "${ECHO_T}*** remove the define of AF_INET6 " >&6 + { { echo "$as_me:8342: error: AF_INET6 feature error" >&5 +echo "$as_me: error: AF_INET6 feature error" >&2;} + { (exit 1); exit 1; }; } fi fi fi @@ -5321,19 +8353,19 @@ # thus we can (with confidence) do following, and only one is # defined as an end result.. if test "$ac_cv_header_netinet_in6_h" = yes; then - cat >> confdefs.h <<\EOF + cat >>confdefs.h <<\EOF #define HAVE_NETINET_IN6_H 1 EOF fi if test "$ac_cv_header_netinet6_in6_h" = yes; then - cat >> confdefs.h <<\EOF + cat >>confdefs.h <<\EOF #define HAVE_NETINET6_IN6_H 1 EOF fi if test "$ac_cv_header_linux_in6_h" = yes; then - cat >> confdefs.h <<\EOF + cat >>confdefs.h <<\EOF #define HAVE_LINUX_IN6_H 1 EOF @@ -5342,175 +8374,210 @@ fi fi # End of: --with-ipv6 - -for ac_hdr in varargs.h stdarg.h +for ac_header in varargs.h stdarg.h do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:5351: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` +echo "$as_me:8380: checking for $ac_header" >&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 +if eval "test \"\${$ac_ac_Header+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +#line 8386 "configure" +#include "confdefs.h" +#include <$ac_header> +_ACEOF +if { (eval echo "$as_me:8390: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 + (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 + ac_status=$? + egrep -v '^ *\+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:8396: \$? = $ac_status" >&5 + (exit $ac_status); }; then + if test -s conftest.err; then + ac_cpp_err=$ac_c_preproc_warn_flag + else + ac_cpp_err= + fi else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:5361: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" + ac_cpp_err=yes +fi +if test -z "$ac_cpp_err"; then + eval "$ac_ac_Header=yes" else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 + echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" + eval "$ac_ac_Header=no" fi -rm -f conftest* +rm -f conftest.err conftest.$ac_ext fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&5 +echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 +if test `eval echo '${'$ac_ac_Header'}'` = yes; then + cat >>confdefs.h <&6 + fi done for ac_func in flock lockf lstat do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:5390: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` +echo "$as_me:8428: checking for $ac_func" >&5 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 +if eval "test \"\${$ac_ac_var+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 8434 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func(); below. */ + which can conflict with char $ac_func (); below. */ #include /* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif /* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); + builtin and then its argument prototype would still apply. */ +char $ac_func (); +char (*f) (); -int main() { - +int +main () +{ /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) choke me #else -$ac_func(); +f = $ac_func; #endif -; return 0; } + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:8465: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:8468: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:8471: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:8474: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + eval "$ac_ac_var=yes" +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +eval "$ac_ac_var=no" +fi +rm -f conftest$ac_exeext conftest.$ac_ext +fi +echo "$as_me:8484: result: `eval echo '${'$ac_ac_var'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 +if test `eval echo '${'$ac_ac_var'}'` = yes; then + cat >>confdefs.h <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 fi done - without_fsync=0 + # Check whether --with-fsync or --without-fsync was given. if test "${with_fsync+set}" = set; then withval="$with_fsync" without_fsync=1 -fi - +fi; if test $without_fsync = 0; then - for ac_func in fsync + +for ac_func in fsync do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:5454: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` +echo "$as_me:8506: checking for $ac_func" >&5 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 +if eval "test \"\${$ac_ac_var+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 8512 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func(); below. */ + which can conflict with char $ac_func (); below. */ #include /* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif /* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { + builtin and then its argument prototype would still apply. */ +char $ac_func (); +char (*f) (); +int +main () +{ /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) choke me #else -$ac_func(); +f = $ac_func; #endif -; return 0; } + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:8543: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:8546: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:8549: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:8552: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + eval "$ac_ac_var=yes" +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +eval "$ac_ac_var=no" +fi +rm -f conftest$ac_exeext conftest.$ac_ext +fi +echo "$as_me:8562: result: `eval echo '${'$ac_ac_var'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 +if test `eval echo '${'$ac_ac_var'}'` = yes; then + cat >>confdefs.h <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 fi done fi without_maillock=0 + # Check whether --with-maillock or --without-maillock was given. if test "${with_maillock+set}" = set; then withval="$with_maillock" without_maillock=1 -fi - +fi; if test without_maillock = 0; then # # Test for SVR4 maillock()/mailunlock() mechanism (Solaris et.al.) @@ -5522,44 +8589,72 @@ if test "$ac_cv_header_maillock_h" = "yes" ; then t_oldLibs="$LIBS" LIBS="$LIBS -lmail" - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 8593 "configure" #include "confdefs.h" #include -int main() { +int +main () +{ mailunlock(); -; return 0; } -EOF -if { (eval echo configure:5534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:8605: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:8608: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:8611: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:8614: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_func_maillock_lmail=yes else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 fi -rm -f conftest* +rm -f conftest$ac_exeext conftest.$ac_ext LIBS="$t_oldLibs" if test "x$ac_cv_func_maillock_lmail" = "x"; then # On some Debian systems this exists as -llockfile :-/ LIBS="$LIBS -llockfile" - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 8628 "configure" #include "confdefs.h" #include -int main() { +int +main () +{ mailunlock(); -; return 0; } -EOF -if { (eval echo configure:5555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:8640: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:8643: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:8646: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:8649: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_func_maillock_llockfile=yes else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 fi -rm -f conftest* +rm -f conftest$ac_exeext conftest.$ac_ext LIBS="$t_oldLibs" fi else @@ -5568,748 +8663,927 @@ fi fi if test "$ac_cv_func_maillock_lmail" = "yes"; then - cat >> confdefs.h <<\EOF + cat >>confdefs.h <<\EOF #define HAVE_MAILLOCK 1 EOF LIBMAIL="-lmail" - echo "$ac_t""System has maillock() with -lmail" 1>&6 + echo "$as_me:8671: result: System has maillock() with -lmail" >&5 +echo "${ECHO_T}System has maillock() with -lmail" >&6 else if test "$ac_cv_func_maillock_llockfile" = "yes"; then - cat >> confdefs.h <<\EOF + cat >>confdefs.h <<\EOF #define HAVE_MAILLOCK 1 EOF LIBMAIL="-llockfile" - echo "$ac_t""System has maillock() with -llockfile" 1>&6 + echo "$as_me:8680: result: System has maillock() with -llockfile" >&5 +echo "${ECHO_T}System has maillock() with -llockfile" >&6 else - cat >> confdefs.h <<\EOF + cat >>confdefs.h <<\EOF #define HAVE_DOTLOCK 1 EOF - echo "$ac_t""Using traditional UNIX 'dot-lock' mailbox locks" 1>&6 + echo "$as_me:8687: result: Using traditional UNIX 'dot-lock' mailbox locks" >&5 +echo "${ECHO_T}Using traditional UNIX 'dot-lock' mailbox locks" >&6 fi -fi +fi else - cat >> confdefs.h <<\EOF + cat >>confdefs.h <<\EOF #define HAVE_DOTLOCK 1 EOF fi - for ac_func in mkdir mktime mkstemp rename rmdir strcpy strdup strstr \ strchr strrchr setvbuf strerror strsignal setreuid \ setregid sigprocmask sigpending sigsuspend gethostid do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:5607: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` +echo "$as_me:8703: checking for $ac_func" >&5 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 +if eval "test \"\${$ac_ac_var+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 8709 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func(); below. */ + which can conflict with char $ac_func (); below. */ #include /* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif /* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { + builtin and then its argument prototype would still apply. */ +char $ac_func (); +char (*f) (); +int +main () +{ /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) choke me #else -$ac_func(); +f = $ac_func; #endif -; return 0; } + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:8740: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:8743: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:8746: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:8749: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + eval "$ac_ac_var=yes" +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +eval "$ac_ac_var=no" +fi +rm -f conftest$ac_exeext conftest.$ac_ext +fi +echo "$as_me:8759: result: `eval echo '${'$ac_ac_var'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 +if test `eval echo '${'$ac_ac_var'}'` = yes; then + cat >>confdefs.h <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 fi done # If the system does not have the following (library) calls, # we use emulations (replacements): + for ac_func in mkdir mktime rename rmdir strcpy strdup strstr \ strchr strrchr setvbuf strerror strsignal strtoul do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:5665: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` +echo "$as_me:8776: checking for $ac_func" >&5 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 +if eval "test \"\${$ac_ac_var+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 8782 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func(); below. */ + which can conflict with char $ac_func (); below. */ #include /* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif /* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); + builtin and then its argument prototype would still apply. */ +char $ac_func (); +char (*f) (); -int main() { - +int +main () +{ /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) choke me #else -$ac_func(); +f = $ac_func; #endif -; return 0; } + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:8813: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:8816: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:8819: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:8822: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + eval "$ac_ac_var=yes" +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +eval "$ac_ac_var=no" +fi +rm -f conftest$ac_exeext conftest.$ac_ext +fi +echo "$as_me:8832: result: `eval echo '${'$ac_ac_var'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 +if test `eval echo '${'$ac_ac_var'}'` = yes; then + cat >>confdefs.h <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" + LIBOBJS="$LIBOBJS $ac_func.$ac_objext" fi done - - -echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6 -echo "configure:5721: checking for sys_siglist declaration in signal.h or unistd.h" >&5 -if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +echo "$as_me:8844: checking for sys_siglist declaration in signal.h or unistd.h" >&5 +echo $ECHO_N "checking for sys_siglist declaration in signal.h or unistd.h... $ECHO_C" >&6 +if test "${ac_cv_decl_sys_siglist+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 8850 "configure" #include "confdefs.h" #include #include /* NetBSD declares sys_siglist in unistd.h. */ -#ifdef HAVE_UNISTD_H -#include +#if HAVE_UNISTD_H +# include #endif -int main() { + +int +main () +{ char *msg = *(sys_siglist + 1); -; return 0; } -EOF -if { (eval echo configure:5738: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:8868: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:8871: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:8874: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:8877: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then ac_cv_decl_sys_siglist=yes else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_decl_sys_siglist=no + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_decl_sys_siglist=no fi -rm -f conftest* +rm -f conftest.$ac_objext conftest.$ac_ext fi - -echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6 +echo "$as_me:8887: result: $ac_cv_decl_sys_siglist" >&5 +echo "${ECHO_T}$ac_cv_decl_sys_siglist" >&6 if test $ac_cv_decl_sys_siglist = yes; then - cat >> confdefs.h <<\EOF + +cat >>confdefs.h <<\EOF #define SYS_SIGLIST_DECLARED 1 EOF fi +echo "$as_me:8897: checking existence of char **sys_siglist" >&5 +echo $ECHO_N "checking existence of char **sys_siglist... $ECHO_C" >&6 +if test "${ac_cv_arr_sys_siglist+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else -echo $ac_n "checking existence of char **sys_siglist""... $ac_c" 1>&6 -echo "configure:5760: checking existence of char **sys_siglist" >&5 -if eval "test \"`echo '$''{'ac_cv_arr_sys_siglist'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - -cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 8904 "configure" #include "confdefs.h" extern char *sys_siglist[]; static char *s; -int main() { -s = sys_siglist[2]; -; return 0; } -EOF -if { (eval echo configure:5773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - cat >> confdefs.h <<\EOF +int +main () +{ +s = sys_siglist[2]; + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:8916: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:8919: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:8922: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:8925: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_arr_sys_siglist=yes +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +fi +rm -f conftest$ac_exeext conftest.$ac_ext + +fi +echo "$as_me:8935: result: $ac_cv_arr_sys_siglist" >&5 +echo "${ECHO_T}$ac_cv_arr_sys_siglist" >&6 +if test "$ac_cv_arr_sys_siglist" = yes ; then + cat >>confdefs.h <<\EOF #define HAVE_SYS_SIGLIST 1 EOF - ac_cv_arr_sys_siglist=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 -fi -rm -f conftest* - fi -echo "$ac_t""$ac_cv_arr_sys_siglist" 1>&6 - - # Additional tests for the emulations.. + for ac_func in index rindex do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:5795: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` +echo "$as_me:8949: checking for $ac_func" >&5 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 +if eval "test \"\${$ac_ac_var+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 8955 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func(); below. */ + which can conflict with char $ac_func (); below. */ #include /* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif /* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { + builtin and then its argument prototype would still apply. */ +char $ac_func (); +char (*f) (); +int +main () +{ /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) choke me #else -$ac_func(); +f = $ac_func; #endif -; return 0; } + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:8986: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:8989: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:8992: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:8995: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + eval "$ac_ac_var=yes" +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +eval "$ac_ac_var=no" +fi +rm -f conftest$ac_exeext conftest.$ac_ext +fi +echo "$as_me:9005: result: `eval echo '${'$ac_ac_var'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 +if test `eval echo '${'$ac_ac_var'}'` = yes; then + cat >>confdefs.h <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 fi done # more tests.. + for ac_func in endgrent fchdir ftime getcwd getgroups setgroups \ getmntinfo gettimeofday isascii memcpy memchr mkfifo \ getpgrp setsid seteuid setuid do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:5853: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` +echo "$as_me:9022: checking for $ac_func" >&5 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 +if eval "test \"\${$ac_ac_var+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 9028 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func(); below. */ + which can conflict with char $ac_func (); below. */ #include /* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif /* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); + builtin and then its argument prototype would still apply. */ +char $ac_func (); +char (*f) (); -int main() { - +int +main () +{ /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) choke me #else -$ac_func(); +f = $ac_func; #endif -; return 0; } + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:9059: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:9062: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:9065: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:9068: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + eval "$ac_ac_var=yes" +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +eval "$ac_ac_var=no" +fi +rm -f conftest$ac_exeext conftest.$ac_ext +fi +echo "$as_me:9078: result: `eval echo '${'$ac_ac_var'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 +if test `eval echo '${'$ac_ac_var'}'` = yes; then + cat >>confdefs.h <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 fi done for ac_func in setrlimit fchown utimes utime sysconf fpathconf do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:5908: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` +echo "$as_me:9091: checking for $ac_func" >&5 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 +if eval "test \"\${$ac_ac_var+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 9097 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func(); below. */ + which can conflict with char $ac_func (); below. */ #include /* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif /* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); + builtin and then its argument prototype would still apply. */ +char $ac_func (); +char (*f) (); -int main() { - +int +main () +{ /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) choke me #else -$ac_func(); +f = $ac_func; #endif -; return 0; } + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:9128: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:9131: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:9134: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:9137: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + eval "$ac_ac_var=yes" +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +eval "$ac_ac_var=no" +fi +rm -f conftest$ac_exeext conftest.$ac_ext +fi +echo "$as_me:9147: result: `eval echo '${'$ac_ac_var'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 +if test `eval echo '${'$ac_ac_var'}'` = yes; then + cat >>confdefs.h <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 fi done # Networking stuff is in deep trouble, if sockets are not found.. -for ac_hdr in netdb.h syslog.h sys/resource.h \ + +for ac_header in netdb.h syslog.h sys/resource.h \ protocols/rwhod.h select.h sys/select.h do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:5966: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` +echo "$as_me:9163: checking for $ac_header" >&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 +if eval "test \"\${$ac_ac_Header+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +#line 9169 "configure" +#include "confdefs.h" +#include <$ac_header> +_ACEOF +if { (eval echo "$as_me:9173: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 + (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 + ac_status=$? + egrep -v '^ *\+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:9179: \$? = $ac_status" >&5 + (exit $ac_status); }; then + if test -s conftest.err; then + ac_cpp_err=$ac_c_preproc_warn_flag + else + ac_cpp_err= + fi else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:5976: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" + ac_cpp_err=yes +fi +if test -z "$ac_cpp_err"; then + eval "$ac_ac_Header=yes" else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 + echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" + eval "$ac_ac_Header=no" fi -rm -f conftest* +rm -f conftest.err conftest.$ac_ext fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&5 +echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 +if test `eval echo '${'$ac_ac_Header'}'` = yes; then + cat >>confdefs.h <&6 + fi done -for ac_hdr in ifaddrs.h +for ac_header in ifaddrs.h do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:6006: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` +echo "$as_me:9211: checking for $ac_header" >&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 +if eval "test \"\${$ac_ac_Header+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 9217 "configure" #include "confdefs.h" -#include <$ac_hdr> -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:6016: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" +#include <$ac_header> +_ACEOF +if { (eval echo "$as_me:9221: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 + (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 + ac_status=$? + egrep -v '^ *\+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:9227: \$? = $ac_status" >&5 + (exit $ac_status); }; then + if test -s conftest.err; then + ac_cpp_err=$ac_c_preproc_warn_flag + else + ac_cpp_err= + fi +else + ac_cpp_err=yes +fi +if test -z "$ac_cpp_err"; then + eval "$ac_ac_Header=yes" else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 + echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" + eval "$ac_ac_Header=no" fi -rm -f conftest* +rm -f conftest.err conftest.$ac_ext fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&5 +echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 +if test `eval echo '${'$ac_ac_Header'}'` = yes; then + cat >>confdefs.h <&6 + fi done for ac_func in select syslog getdtablesize setpriority do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:6045: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` +echo "$as_me:9259: checking for $ac_func" >&5 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 +if eval "test \"\${$ac_ac_var+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 9265 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func(); below. */ + which can conflict with char $ac_func (); below. */ #include /* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif /* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { + builtin and then its argument prototype would still apply. */ +char $ac_func (); +char (*f) (); +int +main () +{ /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) choke me #else -$ac_func(); +f = $ac_func; #endif -; return 0; } + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:9296: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:9299: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:9302: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:9305: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + eval "$ac_ac_var=yes" +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +eval "$ac_ac_var=no" +fi +rm -f conftest$ac_exeext conftest.$ac_ext +fi +echo "$as_me:9315: result: `eval echo '${'$ac_ac_var'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 +if test `eval echo '${'$ac_ac_var'}'` = yes; then + cat >>confdefs.h <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 fi done for ac_func in getifaddrs freeifaddrs do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:6100: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` +echo "$as_me:9328: checking for $ac_func" >&5 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 +if eval "test \"\${$ac_ac_var+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 9334 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func(); below. */ + which can conflict with char $ac_func (); below. */ #include /* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif /* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { + builtin and then its argument prototype would still apply. */ +char $ac_func (); +char (*f) (); +int +main () +{ /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) choke me #else -$ac_func(); +f = $ac_func; #endif -; return 0; } + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:9365: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:9368: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:9371: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:9374: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + eval "$ac_ac_var=yes" +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +eval "$ac_ac_var=no" +fi +rm -f conftest$ac_exeext conftest.$ac_ext +fi +echo "$as_me:9384: result: `eval echo '${'$ac_ac_var'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 +if test `eval echo '${'$ac_ac_var'}'` = yes; then + cat >>confdefs.h <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 fi done - # # Test to see, if we have BSD4.4 sa_len -field in the "struct sockaddr*" # # # Test to see, if we have BSD4.4 sa_len -field in the "struct sockaddr*" # -echo $ac_n "checking for 'sa_len' in 'struct sockaddr'""... $ac_c" 1>&6 -echo "configure:6160: checking for 'sa_len' in 'struct sockaddr'" >&5 -if eval "test \"`echo '$''{'ac_cv_struct_sa_len'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +echo "$as_me:9400: checking for 'sa_len' in 'struct sockaddr'" >&5 +echo $ECHO_N "checking for 'sa_len' in 'struct sockaddr'... $ECHO_C" >&6 +if test "${ac_cv_struct_sa_len+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 9406 "configure" #include "confdefs.h" #include #include -int main() { -struct sockaddr sa; sa.sa_len = 0; -; return 0; } -EOF -if { (eval echo configure:6173: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* +int +main () +{ +struct sockaddr sa; sa.sa_len = 0; + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:9419: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:9422: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:9425: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:9428: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then ac_cv_struct_sa_len=yes else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_struct_sa_len=no + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_struct_sa_len=no fi -rm -f conftest* +rm -f conftest.$ac_objext conftest.$ac_ext fi - -echo "$ac_t""$ac_cv_struct_sa_len" 1>&6 +echo "$as_me:9438: result: $ac_cv_struct_sa_len" >&5 +echo "${ECHO_T}$ac_cv_struct_sa_len" >&6 if test "$ac_cv_struct_sa_len" = yes; then - cat >> confdefs.h <<\EOF + cat >>confdefs.h <<\EOF #define HAVE_SA_LEN 1 EOF fi - -echo $ac_n "checking for res_init""... $ac_c" 1>&6 -echo "configure:6195: checking for res_init" >&5 -if eval "test \"`echo '$''{'ac_cv_func_res_init'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +echo "$as_me:9447: checking for res_init" >&5 +echo $ECHO_N "checking for res_init... $ECHO_C" >&6 +if test "${ac_cv_func_res_init+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 9453 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, - which can conflict with char res_init(); below. */ + which can conflict with char res_init (); below. */ #include /* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif /* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char res_init(); - -int main() { + builtin and then its argument prototype would still apply. */ +char res_init (); +char (*f) (); +int +main () +{ /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_res_init) || defined (__stub___res_init) choke me #else -res_init(); +f = res_init; #endif -; return 0; } -EOF -if { (eval echo configure:6223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_res_init=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_res_init=no" -fi -rm -f conftest* + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:9484: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:9487: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:9490: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:9493: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_func_res_init=yes +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_func_res_init=no fi - -if eval "test \"`echo '$ac_cv_func_'res_init`\" = yes"; then - echo "$ac_t""yes" 1>&6 - : -else - echo "$ac_t""no" 1>&6 +rm -f conftest$ac_exeext conftest.$ac_ext fi +echo "$as_me:9503: result: $ac_cv_func_res_init" >&5 +echo "${ECHO_T}$ac_cv_func_res_init" >&6 # Can be found without any libs ? Or needs BIND libresolv ? -echo $ac_n "checking for res_mkquery""... $ac_c" 1>&6 -echo "configure:6243: checking for res_mkquery" >&5 -if eval "test \"`echo '$''{'ac_cv_func_res_mkquery'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +echo "$as_me:9506: checking for res_mkquery" >&5 +echo $ECHO_N "checking for res_mkquery... $ECHO_C" >&6 +if test "${ac_cv_func_res_mkquery+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 9512 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, - which can conflict with char res_mkquery(); below. */ + which can conflict with char res_mkquery (); below. */ #include /* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif /* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char res_mkquery(); + builtin and then its argument prototype would still apply. */ +char res_mkquery (); +char (*f) (); -int main() { - +int +main () +{ /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_res_mkquery) || defined (__stub___res_mkquery) choke me #else -res_mkquery(); +f = res_mkquery; #endif -; return 0; } -EOF -if { (eval echo configure:6271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_res_mkquery=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_res_mkquery=no" -fi -rm -f conftest* + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:9543: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:9546: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:9549: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:9552: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_func_res_mkquery=yes +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_func_res_mkquery=no fi - -if eval "test \"`echo '$ac_cv_func_'res_mkquery`\" = yes"; then - echo "$ac_t""yes" 1>&6 - : -else - echo "$ac_t""no" 1>&6 +rm -f conftest$ac_exeext conftest.$ac_ext fi +echo "$as_me:9562: result: $ac_cv_func_res_mkquery" >&5 +echo "${ECHO_T}$ac_cv_func_res_mkquery" >&6 - - - - use_resolvopt=0 + # Check whether --with-bundled-libresolv or --without-bundled-libresolv was given. if test "${with_bundled_libresolv+set}" = set; then withval="$with_bundled_libresolv" use_resolvopt=1 -fi - +fi; if test "$use_resolvopt" = 0 ; then if test $ac_cv_func_res_mkquery = yes ; then LIBRESOLV="" # res_mkquery() is at system libc - echo "$ac_t""Using no -lresolv; res_mkquery() in libc ?" 1>&6 + echo "$as_me:9575: result: Using no -lresolv; res_mkquery() in libc ?" >&5 +echo "${ECHO_T}Using no -lresolv; res_mkquery() in libc ?" >&6 else LIBRESOLV="-lresolv" - echo "$ac_t""Using system supplied -lresolv -- hope it works.." 1>&6 + echo "$as_me:9579: result: Using system supplied -lresolv -- hope it works.." >&5 +echo "${ECHO_T}Using system supplied -lresolv -- hope it works.." >&6 fi - cat >> confdefs.h <<\EOF + cat >>confdefs.h <<\EOF #define HAVE_GETHOSTBYNAME 1 EOF - cat >> confdefs.h <<\EOF + cat >>confdefs.h <<\EOF #define HAVE_RESOLVER 1 EOF @@ -6318,54 +9592,68 @@ else # We have bundled BIND 4.9.4 resolver, which can make things # so much simpler to ourselves (except at BSD machines..) - cat >> confdefs.h <<\EOF + cat >>confdefs.h <<\EOF #define HAVE_GETHOSTBYNAME 1 EOF - cat >> confdefs.h <<\EOF + cat >>confdefs.h <<\EOF #define HAVE_RESOLVER 1 EOF LIBRESOLV="-lresolv" INCLRESOLV='-I$(TOPDIR)/libresolv' LIBRESOLVA="libresolv.a" - echo "$ac_t""Using bundled (bind 4.9.4-REL) libresolv" 1>&6 + echo "$as_me:9606: result: Using bundled (bind 4.9.4-REL) libresolv" >&5 +echo "${ECHO_T}Using bundled (bind 4.9.4-REL) libresolv" >&6 fi # # Test to see, if we have cd and ad fields in "struct HEADER" # -echo $ac_n "checking for cd and ad in HEADER struct (BIND 8)""... $ac_c" 1>&6 -echo "configure:6340: checking for cd and ad in HEADER struct (BIND 8)" >&5 -if eval "test \"`echo '$''{'zm_cv_struct_HEADER_cd_ac'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +echo "$as_me:9613: checking for cd and ad in HEADER struct (BIND 8)" >&5 +echo $ECHO_N "checking for cd and ad in HEADER struct (BIND 8)... $ECHO_C" >&6 +if test "${zm_cv_struct_HEADER_cd_ac+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 9619 "configure" #include "confdefs.h" #include #include #include #include -int main() { +int +main () +{ struct HEADER a; a.ad = a.cd = 0; -; return 0; } -EOF -if { (eval echo configure:6355: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:9634: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:9637: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:9640: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:9643: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then zm_cv_struct_HEADER_cd_ac=yes else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - zm_cv_struct_HEADER_cd_ac=no + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +zm_cv_struct_HEADER_cd_ac=no fi -rm -f conftest* +rm -f conftest.$ac_objext conftest.$ac_ext fi - -echo "$ac_t""$zm_cv_struct_HEADER_cd_ac" 1>&6 +echo "$as_me:9653: result: $zm_cv_struct_HEADER_cd_ac" >&5 +echo "${ECHO_T}$zm_cv_struct_HEADER_cd_ac" >&6 if test "$zm_cv_struct_HEADER_cd_ac" = yes; then - cat >> confdefs.h <<\EOF + cat >>confdefs.h <<\EOF #define HAVE_HEADER_CD_AD 1 EOF @@ -6377,247 +9665,334 @@ # The hallmark is connect() routine (we presume) # ac_cv_libsocket_both=1 -echo $ac_n "checking for connect""... $ac_c" 1>&6 -echo "configure:6382: checking for connect" >&5 -if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +echo "$as_me:9668: checking for connect" >&5 +echo $ECHO_N "checking for connect... $ECHO_C" >&6 +if test "${ac_cv_func_connect+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 9674 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, - which can conflict with char connect(); below. */ + which can conflict with char connect (); below. */ #include /* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif /* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char connect(); + builtin and then its argument prototype would still apply. */ +char connect (); +char (*f) (); -int main() { - +int +main () +{ /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_connect) || defined (__stub___connect) choke me #else -connect(); +f = connect; #endif - -; return 0; } -EOF -if { (eval echo configure:6410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_connect=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_connect=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then - echo "$ac_t""yes" 1>&6 + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:9705: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:9708: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:9711: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:9714: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_func_connect=yes +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_func_connect=no +fi +rm -f conftest$ac_exeext conftest.$ac_ext +fi +echo "$as_me:9724: result: $ac_cv_func_connect" >&5 +echo "${ECHO_T}$ac_cv_func_connect" >&6 +if test $ac_cv_func_connect = yes; then ac_cv_libsocket_both=0 -else - echo "$ac_t""no" 1>&6 fi -echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 -echo "configure:6430: checking for gethostbyname" >&5 -if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +echo "$as_me:9730: checking for gethostbyname" >&5 +echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 +if test "${ac_cv_func_gethostbyname+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 9736 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, - which can conflict with char gethostbyname(); below. */ + which can conflict with char gethostbyname (); below. */ #include /* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif /* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char gethostbyname(); - -int main() { + builtin and then its argument prototype would still apply. */ +char gethostbyname (); +char (*f) (); +int +main () +{ /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) choke me #else -gethostbyname(); +f = gethostbyname; #endif - -; return 0; } -EOF -if { (eval echo configure:6458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_gethostbyname=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_gethostbyname=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then - echo "$ac_t""yes" 1>&6 + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:9767: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:9770: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:9773: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:9776: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_func_gethostbyname=yes +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_func_gethostbyname=no +fi +rm -f conftest$ac_exeext conftest.$ac_ext +fi +echo "$as_me:9786: result: $ac_cv_func_gethostbyname" >&5 +echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 +if test $ac_cv_func_gethostbyname = yes; then ac_cv_libsocket_both=0 -else - echo "$ac_t""no" 1>&6 fi if test "$ac_cv_libsocket_both" = 1 ; then # Check cache if test "$ac_cv_func_socket_lxnet" = yes ; then - echo "$ac_t""need -lxnet library (cached)" 1>&6 + echo "$as_me:9795: result: need -lxnet library (cached)" >&5 +echo "${ECHO_T}need -lxnet library (cached)" >&6 LIBSOCKET="-lnsl -lsocket -lxnet" else if test "$ac_cv_func_socket_lsocket" = yes ; then - echo "$ac_t""need -lsocket library (cached)" 1>&6 + echo "$as_me:9800: result: need -lsocket library (cached)" >&5 +echo "${ECHO_T}need -lsocket library (cached)" >&6 LIBSOCKET="-lsocket" if test "$ac_cv_func_gethostbyname_lnsl" = yes ; then LIBSOCKET="-lnsl -lsocket" fi else # Well, will this work ? SysVR4, but not Sun Solaris ? - echo $ac_n "checking for connect in -lxnet""... $ac_c" 1>&6 -echo "configure:6492: checking for connect in -lxnet" >&5 -ac_lib_var=`echo xnet'_'connect | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 + echo "$as_me:9808: checking for connect in -lxnet" >&5 +echo $ECHO_N "checking for connect in -lxnet... $ECHO_C" >&6 +if test "${ac_cv_lib_xnet_connect+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - ac_save_LIBS="$LIBS" + ac_check_lib_save_LIBS=$LIBS LIBS="-lxnet $LIBS" -cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 9816 "configure" #include "confdefs.h" + /* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif /* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char connect(); - -int main() { -connect() -; return 0; } -EOF -if { (eval echo configure:6511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 + builtin and then its argument prototype would still apply. */ +char connect (); +int +main () +{ +connect (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:9835: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:9838: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:9841: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:9844: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_lib_xnet_connect=yes +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_lib_xnet_connect=no +fi +rm -f conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +echo "$as_me:9855: result: $ac_cv_lib_xnet_connect" >&5 +echo "${ECHO_T}$ac_cv_lib_xnet_connect" >&6 +if test $ac_cv_lib_xnet_connect = yes; then LIBSOCKET="-lnsl -lsocket -lxnet" ac_cv_func_socket_lsocket=no ac_cv_func_socket_lxnet=yes else - echo "$ac_t""no" 1>&6 - echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 -echo "configure:6533: checking for connect in -lsocket" >&5 -ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 + echo "$as_me:9863: checking for connect in -lsocket" >&5 +echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 +if test "${ac_cv_lib_socket_connect+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - ac_save_LIBS="$LIBS" + ac_check_lib_save_LIBS=$LIBS LIBS="-lsocket $LIBS" -cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 9871 "configure" #include "confdefs.h" + /* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif /* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char connect(); - -int main() { -connect() -; return 0; } -EOF -if { (eval echo configure:6552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 + builtin and then its argument prototype would still apply. */ +char connect (); +int +main () +{ +connect (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:9890: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:9893: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:9896: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:9899: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_lib_socket_connect=yes +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_lib_socket_connect=no +fi +rm -f conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +echo "$as_me:9910: result: $ac_cv_lib_socket_connect" >&5 +echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 +if test $ac_cv_lib_socket_connect = yes; then LIBSOCKET="-lsocket" ac_cv_func_socket_lsocket=yes else - echo "$ac_t""no" 1>&6 -ac_cv_func_socket_lsocket=no + ac_cv_func_socket_lsocket=no fi if test "$ac_cv_func_socket_lsocket" = yes ; then t_oldLibs="$LIBS" LIBS="$LIBS -lsocket $LIBRESOLV" - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 9923 "configure" #include "confdefs.h" -int main() { +int +main () +{ gethostbyname(); -; return 0; } -EOF -if { (eval echo configure:6585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:9935: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:9938: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:9941: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:9944: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then : else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 + LIBS="$LIBS -lnsl" # Add this Solaris library.. - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 9953 "configure" #include "confdefs.h" -int main() { +int +main () +{ gethostbyname(); -; return 0; } -EOF -if { (eval echo configure:6601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:9965: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:9968: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:9971: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:9974: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + LIBSOCKET="-lsocket -lnsl" ac_cv_func_gethostbyname_lnsl=yes - + else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - - { echo "configure: error: Weird, '$LIBS' not enough to find gethostnyname() ?!" 1>&2; exit 1; } - + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 + + { { echo "$as_me:9984: error: Weird, '$LIBS' not enough to find gethostnyname() ?!" >&5 +echo "$as_me: error: Weird, '$LIBS' not enough to find gethostnyname() ?!" >&2;} + { (exit 1); exit 1; }; } + fi -rm -f conftest* - +rm -f conftest$ac_exeext conftest.$ac_ext + fi -rm -f conftest* +rm -f conftest$ac_exeext conftest.$ac_ext LIBS="$t_oldLibs" fi - + fi fi @@ -6633,28 +10008,43 @@ # will not fail on other systems... It did! It did! # Many systems don't have idemponent headers, they need specific # includes before latter ones, or the latter ones won't be successful... - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 10012 "configure" #include "confdefs.h" #include #include #include #include #include -int main() { +int +main () +{ _res.options = RES_INIT; -; return 0; } -EOF -if { (eval echo configure:6649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:10028: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:10031: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:10034: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:10037: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then ac_cv_var__res_options=yes else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 fi -rm -f conftest*; +rm -f conftest$ac_exeext conftest.$ac_ext; if test "$ac_cv_var__res_options" != "yes"; then - echo "$ac_t""Can't do without -lresolv to link resolver's _res.options" 1>&6 + echo "$as_me:10046: result: Can't do without -lresolv to link resolver's _res.options" >&5 +echo "${ECHO_T}Can't do without -lresolv to link resolver's _res.options" >&6 LIBRESOLV="-lresolv" fi LIBS="$t_oldLibs" @@ -6662,58 +10052,73 @@ # See about the routines that possibly exist at the libraries.. LIBS="$t_oldLibs $LIBSOCKET" + for ac_func in socket socketpair do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:6669: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` +echo "$as_me:10059: checking for $ac_func" >&5 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 +if eval "test \"\${$ac_ac_var+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 10065 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func(); below. */ + which can conflict with char $ac_func (); below. */ #include /* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif /* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { + builtin and then its argument prototype would still apply. */ +char $ac_func (); +char (*f) (); +int +main () +{ /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) choke me #else -$ac_func(); +f = $ac_func; #endif -; return 0; } + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:10096: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:10099: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:10102: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:10105: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + eval "$ac_ac_var=yes" +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +eval "$ac_ac_var=no" +fi +rm -f conftest$ac_exeext conftest.$ac_ext +fi +echo "$as_me:10115: result: `eval echo '${'$ac_ac_var'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 +if test `eval echo '${'$ac_ac_var'}'` = yes; then + cat >>confdefs.h <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 fi done @@ -6721,128 +10126,193 @@ if test "$ac_cv_func_socket" = no -a "$LIBSOCKET" != ""; then LIBS="$LIBS $LIBSOCKET" - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 10130 "configure" #include "confdefs.h" -int main() { +int +main () +{ socket(); -; return 0; } -EOF -if { (eval echo configure:6733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:10142: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:10145: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:10148: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:10151: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then ac_cv_func_socket=yes else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 fi -rm -f conftest* +rm -f conftest$ac_exeext conftest.$ac_ext if test $ac_cv_func_socket = yes; then - cat >> confdefs.h <<\EOF + cat >>confdefs.h <<\EOF #define HAVE_SOCKET 1 EOF - echo "$ac_t""Has socket() when using $LIBSOCKET" 1>&6 + echo "$as_me:10164: result: Has socket() when using $LIBSOCKET" >&5 +echo "${ECHO_T}Has socket() when using $LIBSOCKET" >&6 fi LIBS="$t_oldLibs" fi if test "$ac_cv_func_socketpair" = no -a "$LIBSOCKET" != ""; then LIBS="$LIBS $LIBSOCKET" - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 10172 "configure" #include "confdefs.h" -int main() { +int +main () +{ socketpair(); -; return 0; } -EOF -if { (eval echo configure:6760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:10184: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:10187: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:10190: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:10193: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then ac_cv_func_socketpair=yes else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 fi -rm -f conftest* +rm -f conftest$ac_exeext conftest.$ac_ext if test $ac_cv_func_socketpair = yes; then - cat >> confdefs.h <<\EOF + cat >>confdefs.h <<\EOF #define HAVE_SOCKETPAIR 1 EOF - echo "$ac_t""Has socketpair() when using $LIBSOCKET" 1>&6 + echo "$as_me:10206: result: Has socketpair() when using $LIBSOCKET" >&5 +echo "${ECHO_T}Has socketpair() when using $LIBSOCKET" >&6 fi LIBS="$t_oldLibs" fi ac_with_ipv6_replacement_libc=0 + # Check whether --with-ipv6-replacement-libc or --without-ipv6-replacement-libc was given. if test "${with_ipv6_replacement_libc+set}" = set; then withval="$with_ipv6_replacement_libc" ac_with_ipv6_replacement_libc=1 -fi - +fi; if test "$ac_with_ipv6_replacement_libc" = 1 ; then LIBOBJS="$LIBOBJS inet_ntop.o inet_pton.o getaddrinfo.o getnameinfo.o gai_strerror.o" - + + cat >>confdefs.h <<\EOF +#define HAVE_GETNAMEINFO 1 +EOF + + cat >>confdefs.h <<\EOF +#define HAVE_GETADDRINFO 1 +EOF + + cat >>confdefs.h <<\EOF +#define HAVE__GETADDRINFO_ 1 +EOF + + cat >>confdefs.h <<\EOF +#define HAVE_INET_NTOP 1 +EOF + + cat >>confdefs.h <<\EOF +#define HAVE_INET_PTON 1 +EOF + else t_oldLibs="$LIBS" LIBS="$LIBS $LIBSOCKET" # Following stuff may exist in our LIBC, or in separate -linet6 - for ac_func in inet_ntop inet_pton getaddrinfo getnameinfo gai_strerror + +for ac_func in inet_ntop inet_pton getaddrinfo getnameinfo gai_strerror do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:6798: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` +echo "$as_me:10253: checking for $ac_func" >&5 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 +if eval "test \"\${$ac_ac_var+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 10259 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func(); below. */ + which can conflict with char $ac_func (); below. */ #include /* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif /* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { + builtin and then its argument prototype would still apply. */ +char $ac_func (); +char (*f) (); +int +main () +{ /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) choke me #else -$ac_func(); +f = $ac_func; #endif -; return 0; } + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:10290: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:10293: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:10296: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:10299: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + eval "$ac_ac_var=yes" +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +eval "$ac_ac_var=no" +fi +rm -f conftest$ac_exeext conftest.$ac_ext +fi +echo "$as_me:10309: result: `eval echo '${'$ac_ac_var'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 +if test `eval echo '${'$ac_ac_var'}'` = yes; then + cat >>confdefs.h <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 fi done @@ -6850,29 +10320,44 @@ # THEN call the AC_REPLACE_FUNCS() if test "$ac_cv_func_gai_strerror" = no ; then LIBS="$LIBS -linet6" - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 10324 "configure" #include "confdefs.h" -int main() { +int +main () +{ gai_strerror(); -; return 0; } -EOF -if { (eval echo configure:6862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:10336: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:10339: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:10342: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:10345: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then ac_cv_func_gai_strerror=yes else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 fi -rm -f conftest* +rm -f conftest$ac_exeext conftest.$ac_ext LIBS="$t_oldLibs" if test "$ac_cv_func_gai_strerror" = yes; then LIBSOCKET="$LIBSOCKET -linet6" - echo "$ac_t""Has IPv6 API gai_strerror() when using $LIBSOCKET" 1>&6 + echo "$as_me:10356: result: Has IPv6 API gai_strerror() when using $LIBSOCKET" >&5 +echo "${ECHO_T}Has IPv6 API gai_strerror() when using $LIBSOCKET" >&6 else LIBOBJS="$LIBOBJS inet_ntop.o inet_pton.o getaddrinfo.o getnameinfo.o gai_strerror.o" - + fi fi @@ -6880,7 +10365,6 @@ fi - # Check whether --with-rfc822-tabs or --without-rfc822-tabs was given. if test "${with_rfc822_tabs+set}" = set; then withval="$with_rfc822_tabs" @@ -6891,16 +10375,15 @@ fi else use_rfc822_tabs=1 -fi - +fi; RFC822TABS="$use_rfc822_tabs" -echo "$ac_t""RFC-822 TABs setting: $use_rfc822_tabs" 1>&6 - - +echo "$as_me:10380: result: RFC-822 TABs setting: $use_rfc822_tabs" >&5 +echo "${ECHO_T}RFC-822 TABs setting: $use_rfc822_tabs" >&6 LIBWRAP="" INCLWRAP="" use_tcpwrappers=0 + # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given. if test "${with_tcp_wrappers+set}" = set; then withval="$with_tcp_wrappers" @@ -6909,52 +10392,59 @@ else use_tcpwrappers=1 fi -fi +fi; - t_oldLibs="$LIBS" t_oldCpp="$CPPFLAGS" if test "$use_tcpwrappers" != 0 ; then if test "$use_tcpwrappers" = 2 ; then - for ac_hdr in tcpd.h +for ac_header in tcpd.h do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:6926: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` +echo "$as_me:10406: checking for $ac_header" >&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 +if eval "test \"\${$ac_ac_Header+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +#line 10412 "configure" +#include "confdefs.h" +#include <$ac_header> +_ACEOF +if { (eval echo "$as_me:10416: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 + (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 + ac_status=$? + egrep -v '^ *\+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:10422: \$? = $ac_status" >&5 + (exit $ac_status); }; then + if test -s conftest.err; then + ac_cpp_err=$ac_c_preproc_warn_flag + else + ac_cpp_err= + fi else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:6936: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" + ac_cpp_err=yes +fi +if test -z "$ac_cpp_err"; then + eval "$ac_ac_Header=yes" else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 + echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" + eval "$ac_ac_Header=no" fi -rm -f conftest* +rm -f conftest.err conftest.$ac_ext fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&5 +echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 +if test `eval echo '${'$ac_ac_Header'}'` = yes; then + cat >>confdefs.h <&6 + fi done @@ -6987,11 +10477,11 @@ fi LIBS="$LIBS $LIBSOCKET $LIBWRAP" CPPFLAGS="$CPPFLAGS $INCLWRAP" - if eval "test \"`echo '$''{'ac_cv_lib_tcpwrap'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 + if test "${ac_cv_lib_tcpwrap+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 10484 "configure" #include "confdefs.h" #include #include @@ -7000,33 +10490,47 @@ #include struct request_info request; int deny_severity, allow_severity; -int main() { +int +main () +{ hosts_access(&request); -; return 0; } -EOF -if { (eval echo configure:7008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:10502: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:10505: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:10508: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:10511: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then ac_cv_lib_tcpwrap=yes else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_lib_tcpwrap=no + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_lib_tcpwrap=no fi -rm -f conftest* - +rm -f conftest$ac_exeext conftest.$ac_ext + fi if test "$ac_cv_lib_tcpwrap" = yes; then - echo "$ac_t""Tcp-wrapper available at $wraploc: -lwrap !" 1>&6; + echo "$as_me:10524: result: Tcp-wrapper available at $wraploc: -lwrap !" >&5 +echo "${ECHO_T}Tcp-wrapper available at $wraploc: -lwrap !" >&6; else LIBS="$t_oldLibs $LIBSOCKET -lnsl $LIBWRAP" CPPFLAGS="$CPPFLAGS $INCLWRAP" - if eval "test \"`echo '$''{'ac_cv_lib_tcpwrap_nsl'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 + if test "${ac_cv_lib_tcpwrap_nsl+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 10533 "configure" #include "confdefs.h" #include #include @@ -7035,30 +10539,45 @@ #include struct request_info request; int deny_severity, allow_severity; -int main() { +int +main () +{ hosts_access(&request); -; return 0; } -EOF -if { (eval echo configure:7043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:10551: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:10554: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:10557: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:10560: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then ac_cv_lib_tcpwrap_nsl=yes else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_lib_tcpwrap_nsl=no -fi -rm -f conftest* - + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_lib_tcpwrap_nsl=no fi +rm -f conftest$ac_exeext conftest.$ac_ext +fi if test "$ac_cv_lib_tcpwrap_nsl" = yes; then - echo "$ac_t""Tcp-wrapper available at $wraploc: -lwrap !" 1>&6; - echo "$ac_t"" NEEDED TO ADD -lnsl TO THE LIBSOCKET!" 1>&6; - LIBSOCKET="$LIBSOCKET -lnsl" + echo "$as_me:10573: result: Tcp-wrapper available at $wraploc: -lwrap !" >&5 +echo "${ECHO_T}Tcp-wrapper available at $wraploc: -lwrap !" >&6; + echo "$as_me:10575: result: NEEDED TO ADD -lnsl TO THE LIBSOCKET!" >&5 +echo "${ECHO_T} NEEDED TO ADD -lnsl TO THE LIBSOCKET!" >&6; + LIBSOCKET="$LIBSOCKET -lnsl" else - echo "$ac_t""No tcp-wrapper available at system default locations ?" 1>&6 + echo "$as_me:10579: result: No tcp-wrapper available at system default locations ?" >&5 +echo "${ECHO_T}No tcp-wrapper available at system default locations ?" >&6 LIBWRAP="" INCLWRAP="" fi @@ -7067,16 +10586,17 @@ LIBWRAP="-L$withval -lwrap" INCLWRAP="-I$withval" unset ac_cv_lib_tcpwrap - cat >> confdefs.h <<\EOF + cat >>confdefs.h <<\EOF #define HAVE_TCPD_H 1 EOF - echo "$ac_t""Using tcp-wrappers at directory: $withval" 1>&6; + echo "$as_me:10593: result: Using tcp-wrappers at directory: $withval" >&5 +echo "${ECHO_T}Using tcp-wrappers at directory: $withval" >&6; fi fi if test -n "$LIBWRAP"; then - cat >> confdefs.h <<\EOF + cat >>confdefs.h <<\EOF #define USE_TCPWRAPPER 1 EOF @@ -7085,38 +10605,33 @@ CPPFLAGS="$t_oldCpp" LIBS="$t_oldLibs" - - PRIVATEMBOX="" + # Check whether --with-privatembox or --without-privatembox was given. if test "${with_privatembox+set}" = set; then withval="$with_privatembox" PRIVATEMBOX="private/" -fi - +fi; # Check whether --with-mboxquotacheck or --without-mboxquotacheck was given. if test "${with_mboxquotacheck+set}" = set; then withval="$with_mboxquotacheck" - cat >> confdefs.h <<\EOF + cat >>confdefs.h <<\EOF #define CHECK_MB_SIZE 1 EOF - -fi +fi; - PRIVATEAUTH="" + # Check whether --with-privateauth or --without-privateauth was given. if test "${with_privateauth+set}" = set; then withval="$with_privateauth" PRIVATEAUTH="private/" -fi - +fi; - - use_whoson=0 + # Check whether --with-whoson or --without-whoson was given. if test "${with_whoson+set}" = set; then withval="$with_whoson" @@ -7125,9 +10640,8 @@ else use_whoson=1 fi -fi +fi; - t_oldLibs="$LIBS" t_oldCpp="$CPPFLAGS" @@ -7149,45 +10663,54 @@ # else # AC_MSG_RESULT([No whoson libs available system at default location ?]) # fi -# : # "nop" +# : # "nop" #------------- - for ac_hdr in whoson.h + +for ac_header in whoson.h do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:7159: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` +echo "$as_me:10672: checking for $ac_header" >&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 +if eval "test \"\${$ac_ac_Header+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +#line 10678 "configure" +#include "confdefs.h" +#include <$ac_header> +_ACEOF +if { (eval echo "$as_me:10682: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 + (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 + ac_status=$? + egrep -v '^ *\+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:10688: \$? = $ac_status" >&5 + (exit $ac_status); }; then + if test -s conftest.err; then + ac_cpp_err=$ac_c_preproc_warn_flag + else + ac_cpp_err= + fi else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:7169: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" + ac_cpp_err=yes +fi +if test -z "$ac_cpp_err"; then + eval "$ac_ac_Header=yes" else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 + echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" + eval "$ac_ac_Header=no" fi -rm -f conftest* +rm -f conftest.err conftest.$ac_ext fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&5 +echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 +if test `eval echo '${'$ac_ac_Header'}'` = yes; then + cat >>confdefs.h <&6 + fi done @@ -7198,46 +10721,72 @@ LIBS="$LIBS $LIBSOCKET $LIBWHOSON" CPPFLAGS="$CPPFLAGS $INCLWHOSON" - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 10725 "configure" #include "confdefs.h" #include int deny_severity, allow_severity; -int main() { +int +main () +{ wso_version(); -; return 0; } -EOF -if { (eval echo configure:7211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:10738: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:10741: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:10744: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:10747: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then ac_cv_lib_whoson=yes else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_lib_whoson=no + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_lib_whoson=no fi -rm -f conftest* +rm -f conftest$ac_exeext conftest.$ac_ext if test "$ac_cv_lib_whoson" = no; then LIBS="$t_oldLibs" LIBS="$LIBS $LIBSOCKET -L/usr/local/lib $LIBWHOSON" - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 10760 "configure" #include "confdefs.h" #include -int main() { +int +main () +{ wso_version(); -; return 0; } -EOF -if { (eval echo configure:7232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:10772: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:10775: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:10778: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:10781: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then ac_cv_lib_whoson=yes else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_lib_whoson=no + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_lib_whoson=no fi -rm -f conftest* +rm -f conftest$ac_exeext conftest.$ac_ext if test "$ac_cv_lib_whoson" = yes; then whosonloc="-L/usr/local/lib" LIBWHOSON="-L/usr/local/lib $LIBWHOSON" @@ -7246,24 +10795,37 @@ if test "$ac_cv_lib_whoson" = no; then LIBS="$t_oldLibs" LIBS="$LIBS $LIBSOCKET -L/local/lib $LIBWHOSON" - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 10799 "configure" #include "confdefs.h" #include -int main() { +int +main () +{ wso_version(); -; return 0; } -EOF -if { (eval echo configure:7258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:10811: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:10814: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:10817: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:10820: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then ac_cv_lib_whoson=yes else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_lib_whoson=no + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_lib_whoson=no fi -rm -f conftest* +rm -f conftest$ac_exeext conftest.$ac_ext if test "$ac_cv_lib_whoson" = yes; then whosonloc="-L/local/lib" LIBWHOSON="-L/local/lib $LIBWHOSON" @@ -7272,24 +10834,37 @@ if test "$ac_cv_lib_whoson" = no; then LIBS="$t_oldLibs" LIBS="$LIBS $LIBSOCKET -L/opt/lib $LIBWHOSON" - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 10838 "configure" #include "confdefs.h" #include -int main() { +int +main () +{ wso_version(); -; return 0; } -EOF -if { (eval echo configure:7284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:10850: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:10853: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:10856: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:10859: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then ac_cv_lib_whoson=yes else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_lib_whoson=no + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_lib_whoson=no fi -rm -f conftest* +rm -f conftest$ac_exeext conftest.$ac_ext if test "$ac_cv_lib_whoson" = yes; then whosonloc="-L/opt/lib" LIBWHOSON="-L/opt/lib $LIBWHOSON" @@ -7298,24 +10873,37 @@ if test "$ac_cv_lib_whoson" = no; then LIBS="$t_oldLibs" LIBS="$LIBS $LIBSOCKET -L/opt/local/lib $LIBWHOSON" - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 10877 "configure" #include "confdefs.h" #include -int main() { +int +main () +{ wso_version(); -; return 0; } -EOF -if { (eval echo configure:7310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:10889: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:10892: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:10895: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:10898: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then ac_cv_lib_whoson=yes else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_lib_whoson=no + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_lib_whoson=no fi -rm -f conftest* +rm -f conftest$ac_exeext conftest.$ac_ext if test "$ac_cv_lib_whoson" = yes; then whosonloc="-L/opt/local/lib" LIBWHOSON="-L/opt/local/lib $LIBWHOSON" @@ -7329,44 +10917,53 @@ LIBS="$t_oldLibs" else - for ac_hdr in /local/include/whoson.h /usr/local/include/whoson.h \ + +for ac_header in /local/include/whoson.h /usr/local/include/whoson.h \ /opt/include/whoson.h /opt/local/include/whoson.h do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:7338: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` +echo "$as_me:10925: checking for $ac_header" >&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 +if eval "test \"\${$ac_ac_Header+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +#line 10931 "configure" +#include "confdefs.h" +#include <$ac_header> +_ACEOF +if { (eval echo "$as_me:10935: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 + (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 + ac_status=$? + egrep -v '^ *\+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:10941: \$? = $ac_status" >&5 + (exit $ac_status); }; then + if test -s conftest.err; then + ac_cpp_err=$ac_c_preproc_warn_flag + else + ac_cpp_err= + fi else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:7348: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" + ac_cpp_err=yes +fi +if test -z "$ac_cpp_err"; then + eval "$ac_ac_Header=yes" else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 + echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" + eval "$ac_ac_Header=no" fi -rm -f conftest* +rm -f conftest.err conftest.$ac_ext fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&5 +echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 +if test `eval echo '${'$ac_ac_Header'}'` = yes; then + cat >>confdefs.h <&6 + fi done @@ -7394,38 +10991,53 @@ fi LIBS="$LIBS $LIBSOCKET $LIBWHOSON" CPPFLAGS="$CPPFLAGS $INCLWHOSON" - if eval "test \"`echo '$''{'ac_cv_lib_whoson'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 + if test "${ac_cv_lib_whoson+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 10998 "configure" #include "confdefs.h" #include -int main() { +int +main () +{ wso_version(); -; return 0; } -EOF -if { (eval echo configure:7409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:11010: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:11013: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:11016: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:11019: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then ac_cv_lib_whoson=yes else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_lib_whoson=no + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_lib_whoson=no fi -rm -f conftest* - +rm -f conftest$ac_exeext conftest.$ac_ext + fi if test "$ac_cv_lib_whoson" = yes; then - echo "$ac_t""Whoson libs available at $whosonloc: -lwhoson !" 1>&6; - cat >> confdefs.h <<\EOF + echo "$as_me:11032: result: Whoson libs available at $whosonloc: -lwhoson !" >&5 +echo "${ECHO_T}Whoson libs available at $whosonloc: -lwhoson !" >&6; + cat >>confdefs.h <<\EOF #define HAVE_WHOSON_H 1 EOF else - echo "$ac_t""No whoson libs available at system default locations ?" 1>&6 + echo "$as_me:11039: result: No whoson libs available at system default locations ?" >&5 +echo "${ECHO_T}No whoson libs available at system default locations ?" >&6 LIBWHOSON="" INCLWHOSON="" fi @@ -7433,20 +11045,24 @@ else if test -f "$withval"/lib/libwhoson.a ; then LIBWHOSON="-L$withval/lib -lwhoson" - echo "$ac_t""Using whoson libs at directory: $withval/lib" 1>&6; + echo "$as_me:11048: result: Using whoson libs at directory: $withval/lib" >&5 +echo "${ECHO_T}Using whoson libs at directory: $withval/lib" >&6; else LIBWHOSON="-L$withval -lwhoson" - echo "$ac_t""Using whoson libs at directory: $withval" 1>&6; + echo "$as_me:11052: result: Using whoson libs at directory: $withval" >&5 +echo "${ECHO_T}Using whoson libs at directory: $withval" >&6; fi if test -f "$withval"/include/whoson.h ; then INCLWHOSON="-I$withval/include" - echo "$ac_t""Using whoson includes at directory: $withval" 1>&6; + echo "$as_me:11057: result: Using whoson includes at directory: $withval" >&5 +echo "${ECHO_T}Using whoson includes at directory: $withval" >&6; else INCLWHOSON="-I$withval" - echo "$ac_t""Using whoson includes at directory: $withval" 1>&6; + echo "$as_me:11061: result: Using whoson includes at directory: $withval" >&5 +echo "${ECHO_T}Using whoson includes at directory: $withval" >&6; fi unset ac_cv_lib_whoson - cat >> confdefs.h <<\EOF + cat >>confdefs.h <<\EOF #define HAVE_WHOSON_H 1 EOF @@ -7456,103 +11072,133 @@ CPPFLAGS="$t_oldCpp" LIBS="$t_oldLibs" - - -echo $ac_n "checking for strftime""... $ac_c" 1>&6 -echo "configure:7463: checking for strftime" >&5 -if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +for ac_func in strftime +do +ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` +echo "$as_me:11078: checking for $ac_func" >&5 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 +if eval "test \"\${$ac_ac_var+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 11084 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, - which can conflict with char strftime(); below. */ + which can conflict with char $ac_func (); below. */ #include /* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif /* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char strftime(); - -int main() { + builtin and then its argument prototype would still apply. */ +char $ac_func (); +char (*f) (); +int +main () +{ /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ -#if defined (__stub_strftime) || defined (__stub___strftime) +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) choke me #else -strftime(); +f = $ac_func; #endif - -; return 0; } -EOF -if { (eval echo configure:7491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_strftime=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_strftime=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then - echo "$ac_t""yes" 1>&6 - cat >> confdefs.h <<\EOF -#define HAVE_STRFTIME 1 + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:11115: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:11118: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:11121: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:11124: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + eval "$ac_ac_var=yes" +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +eval "$ac_ac_var=no" +fi +rm -f conftest$ac_exeext conftest.$ac_ext +fi +echo "$as_me:11134: result: `eval echo '${'$ac_ac_var'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 +if test `eval echo '${'$ac_ac_var'}'` = yes; then + cat >>confdefs.h <&6 -# strftime is in -lintl on SCO UNIX. -echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6 -echo "configure:7513: checking for strftime in -lintl" >&5 -ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 + # strftime is in -lintl on SCO UNIX. +echo "$as_me:11143: checking for strftime in -lintl" >&5 +echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6 +if test "${ac_cv_lib_intl_strftime+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - ac_save_LIBS="$LIBS" + ac_check_lib_save_LIBS=$LIBS LIBS="-lintl $LIBS" -cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 11151 "configure" #include "confdefs.h" + /* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif /* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char strftime(); - -int main() { -strftime() -; return 0; } -EOF -if { (eval echo configure:7532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - cat >> confdefs.h <<\EOF + builtin and then its argument prototype would still apply. */ +char strftime (); +int +main () +{ +strftime (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:11170: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:11173: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:11176: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:11179: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_lib_intl_strftime=yes +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_lib_intl_strftime=no +fi +rm -f conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +echo "$as_me:11190: result: $ac_cv_lib_intl_strftime" >&5 +echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6 +if test $ac_cv_lib_intl_strftime = yes; then + cat >>confdefs.h <<\EOF #define HAVE_STRFTIME 1 EOF LIBS="-lintl $LIBS" -else - echo "$ac_t""no" 1>&6 fi fi +done # # How the sprintf() really behaves ? @@ -7561,16 +11207,16 @@ # Substitutes @DSPRINTF_TYPE@ definitions into Makefiles (-DSPRINTF_CHAR) # Defines SPRINTF_CHAR for config.h in case the test yields "char *".. # -echo $ac_n "checking for the return type of sprintf() being char*""... $ac_c" 1>&6 -echo "configure:7566: checking for the return type of sprintf() being char*" >&5 -if eval "test \"`echo '$''{'ac_cv_func_char_sprintf'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +echo "$as_me:11210: checking for the return type of sprintf() being char*" >&5 +echo $ECHO_N "checking for the return type of sprintf() being char*... $ECHO_C" >&6 +if test "${ac_cv_func_char_sprintf+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then ac_cv_func_char_sprintf=no else - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 11219 "configure" #include "confdefs.h" extern char *sprintf(); @@ -7580,25 +11226,34 @@ char *ss = sprintf(buf,"xx"); return (ss == buf); /* returns the char pointer */ } -EOF -if { (eval echo configure:7585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then +_ACEOF +rm -f conftest$ac_exeext +if { (eval echo "$as_me:11231: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:11234: \$? = $ac_status" >&5 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext' + { (eval echo "$as_me:11236: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:11239: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then ac_cv_func_char_sprintf=no else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_func_char_sprintf=yes + echo "$as_me: program exited with status $ac_status" >&5 +echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_func_char_sprintf=yes fi -rm -fr conftest* +rm -f conftest$ac_exeext conftest.$ac_ext fi - fi -echo "$ac_t""$ac_cv_func_char_sprintf" 1>&6 +echo "$as_me:11252: result: $ac_cv_func_char_sprintf" >&5 +echo "${ECHO_T}$ac_cv_func_char_sprintf" >&6 if test $ac_cv_func_char_sprintf = yes; then - cat >> confdefs.h <<\EOF + cat >>confdefs.h <<\EOF #define SPRINTF_CHAR 1 EOF @@ -7607,210 +11262,267 @@ DSPRINTF_TYPE="" fi -echo $ac_n "checking for vprintf""... $ac_c" 1>&6 -echo "configure:7612: checking for vprintf" >&5 -if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +for ac_func in vprintf +do +ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` +echo "$as_me:11268: checking for $ac_func" >&5 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 +if eval "test \"\${$ac_ac_var+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 11274 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, - which can conflict with char vprintf(); below. */ + which can conflict with char $ac_func (); below. */ #include /* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif /* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char vprintf(); + builtin and then its argument prototype would still apply. */ +char $ac_func (); +char (*f) (); -int main() { - +int +main () +{ /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ -#if defined (__stub_vprintf) || defined (__stub___vprintf) +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) choke me #else -vprintf(); +f = $ac_func; #endif - -; return 0; } -EOF -if { (eval echo configure:7640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_vprintf=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_vprintf=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then - echo "$ac_t""yes" 1>&6 - cat >> confdefs.h <<\EOF -#define HAVE_VPRINTF 1 -EOF -else - echo "$ac_t""no" 1>&6 -fi - -if test "$ac_cv_func_vprintf" != yes; then -echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 -echo "configure:7664: checking for _doprnt" >&5 -if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:11305: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:11308: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:11311: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:11314: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + eval "$ac_ac_var=yes" +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +eval "$ac_ac_var=no" +fi +rm -f conftest$ac_exeext conftest.$ac_ext +fi +echo "$as_me:11324: result: `eval echo '${'$ac_ac_var'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 +if test `eval echo '${'$ac_ac_var'}'` = yes; then + cat >>confdefs.h <&5 +echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6 +if test "${ac_cv_func__doprnt+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 11337 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, - which can conflict with char _doprnt(); below. */ + which can conflict with char _doprnt (); below. */ #include /* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif /* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char _doprnt(); + builtin and then its argument prototype would still apply. */ +char _doprnt (); +char (*f) (); -int main() { - +int +main () +{ /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub__doprnt) || defined (__stub____doprnt) choke me #else -_doprnt(); +f = _doprnt; #endif -; return 0; } -EOF -if { (eval echo configure:7692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func__doprnt=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func__doprnt=no" -fi -rm -f conftest* -fi + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:11368: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:11371: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:11374: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:11377: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_func__doprnt=yes +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_func__doprnt=no +fi +rm -f conftest$ac_exeext conftest.$ac_ext +fi +echo "$as_me:11387: result: $ac_cv_func__doprnt" >&5 +echo "${ECHO_T}$ac_cv_func__doprnt" >&6 +if test $ac_cv_func__doprnt = yes; then -if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then - echo "$ac_t""yes" 1>&6 - cat >> confdefs.h <<\EOF +cat >>confdefs.h <<\EOF #define HAVE_DOPRNT 1 EOF -else - echo "$ac_t""no" 1>&6 fi fi +done for ac_func in vsprintf vsnprintf snprintf do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:7719: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` +echo "$as_me:11403: checking for $ac_func" >&5 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 +if eval "test \"\${$ac_ac_var+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 11409 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func(); below. */ + which can conflict with char $ac_func (); below. */ #include /* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif /* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { + builtin and then its argument prototype would still apply. */ +char $ac_func (); +char (*f) (); +int +main () +{ /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) choke me #else -$ac_func(); +f = $ac_func; #endif -; return 0; } + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:11440: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:11443: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:11446: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:11449: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + eval "$ac_ac_var=yes" +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +eval "$ac_ac_var=no" +fi +rm -f conftest$ac_exeext conftest.$ac_ext +fi +echo "$as_me:11459: result: `eval echo '${'$ac_ac_var'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 +if test `eval echo '${'$ac_ac_var'}'` = yes; then + cat >>confdefs.h <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 fi done # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works # for constant arguments. Useless! -echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 -echo "configure:7774: checking for working alloca.h" >&5 -if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +echo "$as_me:11471: checking for working alloca.h" >&5 +echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 +if test "${ac_cv_working_alloca_h+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 11477 "configure" #include "confdefs.h" #include -int main() { -char *p = alloca(2 * sizeof(int)); -; return 0; } -EOF -if { (eval echo configure:7786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - ac_cv_header_alloca_h=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_header_alloca_h=no -fi -rm -f conftest* -fi +int +main () +{ +char *p = (char *) alloca (2 * sizeof (int)); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:11489: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:11492: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:11495: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:11498: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_working_alloca_h=yes +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_working_alloca_h=no +fi +rm -f conftest$ac_exeext conftest.$ac_ext +fi +echo "$as_me:11508: result: $ac_cv_working_alloca_h" >&5 +echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 +if test $ac_cv_working_alloca_h = yes; then -echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 -if test $ac_cv_header_alloca_h = yes; then - cat >> confdefs.h <<\EOF +cat >>confdefs.h <<\EOF #define HAVE_ALLOCA_H 1 EOF fi -echo $ac_n "checking for alloca""... $ac_c" 1>&6 -echo "configure:7807: checking for alloca" >&5 -if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +echo "$as_me:11518: checking for alloca" >&5 +echo $ECHO_N "checking for alloca... $ECHO_C" >&6 +if test "${ac_cv_func_alloca_works+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 11524 "configure" #include "confdefs.h" - #ifdef __GNUC__ # define alloca __builtin_alloca #else @@ -7832,48 +11544,62 @@ # endif #endif -int main() { -char *p = (char *) alloca(1); -; return 0; } -EOF -if { (eval echo configure:7840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* +int +main () +{ +char *p = (char *) alloca (1); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:11556: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:11559: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:11562: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:11565: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then ac_cv_func_alloca_works=yes else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_func_alloca_works=no + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_func_alloca_works=no fi -rm -f conftest* +rm -f conftest$ac_exeext conftest.$ac_ext fi +echo "$as_me:11575: result: $ac_cv_func_alloca_works" >&5 +echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 -echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 if test $ac_cv_func_alloca_works = yes; then - cat >> confdefs.h <<\EOF + +cat >>confdefs.h <<\EOF #define HAVE_ALLOCA 1 EOF - -fi -if test $ac_cv_func_alloca_works = no; then +else # The SVR3 libPW and SVR4 libucb both contain incompatible functions - # that cause trouble. Some versions do not even contain alloca or - # contain a buggy version. If you still want to use their alloca, - # use ar to extract alloca.o from them instead of compiling alloca.c. - ALLOCA=alloca.${ac_objext} - cat >> confdefs.h <<\EOF +# that cause trouble. Some versions do not even contain alloca or +# contain a buggy version. If you still want to use their alloca, +# use ar to extract alloca.o from them instead of compiling alloca.c. + +ALLOCA=alloca.$ac_objext + +cat >>confdefs.h <<\EOF #define C_ALLOCA 1 EOF - -echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 -echo "configure:7872: checking whether alloca needs Cray hooks" >&5 -if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +echo "$as_me:11596: checking whether \`alloca.c' needs Cray hooks" >&5 +echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 +if test "${ac_cv_os_cray+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 11602 "configure" #include "confdefs.h" #if defined(CRAY) && ! defined(CRAY2) webecray @@ -7881,88 +11607,103 @@ wenotbecray #endif -EOF +_ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "webecray" >/dev/null 2>&1; then - rm -rf conftest* ac_cv_os_cray=yes else - rm -rf conftest* ac_cv_os_cray=no fi rm -f conftest* fi - -echo "$ac_t""$ac_cv_os_cray" 1>&6 +echo "$as_me:11620: result: $ac_cv_os_cray" >&5 +echo "${ECHO_T}$ac_cv_os_cray" >&6 if test $ac_cv_os_cray = yes; then -for ac_func in _getb67 GETB67 getb67; do - echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:7902: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 + for ac_func in _getb67 GETB67 getb67; do + ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` +echo "$as_me:11625: checking for $ac_func" >&5 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 +if eval "test \"\${$ac_ac_var+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 11631 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func(); below. */ + which can conflict with char $ac_func (); below. */ #include /* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif /* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { + builtin and then its argument prototype would still apply. */ +char $ac_func (); +char (*f) (); +int +main () +{ /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) choke me #else -$ac_func(); +f = $ac_func; #endif -; return 0; } -EOF -if { (eval echo configure:7930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:11662: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:11665: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:11668: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:11671: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + eval "$ac_ac_var=yes" +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +eval "$ac_ac_var=no" +fi +rm -f conftest$ac_exeext conftest.$ac_ext +fi +echo "$as_me:11681: result: `eval echo '${'$ac_ac_var'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 +if test `eval echo '${'$ac_ac_var'}'` = yes; then -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - cat >> confdefs.h <>confdefs.h <&6 + break fi -done + done fi -echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 -echo "configure:7957: checking stack direction for C alloca" >&5 -if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +echo "$as_me:11695: checking stack direction for C alloca" >&5 +echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 +if test "${ac_cv_c_stack_direction+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then ac_cv_c_stack_direction=0 else - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 11704 "configure" #include "confdefs.h" +int find_stack_direction () { static char *addr = 0; @@ -7975,42 +11716,55 @@ else return (&dummy > addr) ? 1 : -1; } + +int main () { - exit (find_stack_direction() < 0); + exit (find_stack_direction () < 0); } -EOF -if { (eval echo configure:7984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then +_ACEOF +rm -f conftest$ac_exeext +if { (eval echo "$as_me:11727: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:11730: \$? = $ac_status" >&5 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext' + { (eval echo "$as_me:11732: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:11735: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then ac_cv_c_stack_direction=1 else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_c_stack_direction=-1 + echo "$as_me: program exited with status $ac_status" >&5 +echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_c_stack_direction=-1 fi -rm -fr conftest* +rm -f conftest$ac_exeext conftest.$ac_ext fi - fi +echo "$as_me:11747: result: $ac_cv_c_stack_direction" >&5 +echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 -echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 -cat >> confdefs.h <>confdefs.h <&6 -echo "configure:8006: checking whether getpgrp takes no argument" >&5 -if eval "test \"`echo '$''{'ac_cv_func_getpgrp_void'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +echo "$as_me:11756: checking whether getpgrp takes no argument" >&5 +echo $ECHO_N "checking whether getpgrp takes no argument... $ECHO_C" >&6 +if test "${ac_cv_func_getpgrp_void+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then - { echo "configure: error: cannot check getpgrp if cross compiling" 1>&2; exit 1; } + { { echo "$as_me:11762: error: cannot check getpgrp if cross compiling" >&5 +echo "$as_me: error: cannot check getpgrp if cross compiling" >&2;} + { (exit 1); exit 1; }; } else - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 11767 "configure" #include "confdefs.h" /* @@ -8026,175 +11780,203 @@ int pg1, pg2, pg3, pg4; int ng, np, s, child; -main() +int +main () { - pid = getpid(); - pg1 = getpgrp(0); - pg2 = getpgrp(); - pg3 = getpgrp(pid); - pg4 = getpgrp(1); - - /* - * If all of these values are the same, it's pretty sure that - * we're on a system that ignores getpgrp's first argument. - */ - if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3) - exit(0); - - child = fork(); - if (child < 0) - exit(1); - else if (child == 0) { - np = getpid(); - /* - * If this is Sys V, this will not work; pgrp will be - * set to np because setpgrp just changes a pgrp to be - * the same as the pid. - */ - setpgrp(np, pg1); - ng = getpgrp(0); /* Same result for Sys V and BSD */ - if (ng == pg1) { - exit(1); - } else { - exit(0); - } - } else { - wait(&s); - exit(s>>8); - } -} - -EOF -if { (eval echo configure:8069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then + pid = getpid (); + pg1 = getpgrp (0); + pg2 = getpgrp (); + pg3 = getpgrp (pid); + pg4 = getpgrp (1); + + /* If all of these values are the same, it's pretty sure that we're + on a system that ignores getpgrp's first argument. */ + if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3) + exit (0); + + child = fork (); + if (child < 0) + exit(1); + else if (child == 0) + { + np = getpid (); + /* If this is Sys V, this will not work; pgrp will be set to np + because setpgrp just changes a pgrp to be the same as the + pid. */ + setpgrp (np, pg1); + ng = getpgrp (0); /* Same result for Sys V and BSD */ + if (ng == pg1) + exit (1); + else + exit (0); + } + else + { + wait (&s); + exit (s>>8); + } +} +_ACEOF +rm -f conftest$ac_exeext +if { (eval echo "$as_me:11821: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:11824: \$? = $ac_status" >&5 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext' + { (eval echo "$as_me:11826: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:11829: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then ac_cv_func_getpgrp_void=yes else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_func_getpgrp_void=no + echo "$as_me: program exited with status $ac_status" >&5 +echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_func_getpgrp_void=no fi -rm -fr conftest* +rm -f conftest$ac_exeext conftest.$ac_ext fi - fi - -echo "$ac_t""$ac_cv_func_getpgrp_void" 1>&6 +echo "$as_me:11842: result: $ac_cv_func_getpgrp_void" >&5 +echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6 if test $ac_cv_func_getpgrp_void = yes; then - cat >> confdefs.h <<\EOF + +cat >>confdefs.h <<\EOF #define GETPGRP_VOID 1 EOF fi -for ac_hdr in unistd.h +for ac_header in stdlib.h unistd.h do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:8096: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` +echo "$as_me:11855: checking for $ac_header" >&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 +if eval "test \"\${$ac_ac_Header+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +#line 11861 "configure" +#include "confdefs.h" +#include <$ac_header> +_ACEOF +if { (eval echo "$as_me:11865: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 + (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 + ac_status=$? + egrep -v '^ *\+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:11871: \$? = $ac_status" >&5 + (exit $ac_status); }; then + if test -s conftest.err; then + ac_cpp_err=$ac_c_preproc_warn_flag + else + ac_cpp_err= + fi else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:8106: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" + ac_cpp_err=yes +fi +if test -z "$ac_cpp_err"; then + eval "$ac_ac_Header=yes" else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 + echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" + eval "$ac_ac_Header=no" fi -rm -f conftest* +rm -f conftest.err conftest.$ac_ext fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&5 +echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 +if test `eval echo '${'$ac_ac_Header'}'` = yes; then + cat >>confdefs.h <&6 + fi done for ac_func in getpagesize do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:8135: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` +echo "$as_me:11903: checking for $ac_func" >&5 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 +if eval "test \"\${$ac_ac_var+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 11909 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func(); below. */ + which can conflict with char $ac_func (); below. */ #include /* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif /* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { + builtin and then its argument prototype would still apply. */ +char $ac_func (); +char (*f) (); +int +main () +{ /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) choke me #else -$ac_func(); +f = $ac_func; #endif -; return 0; } + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:11940: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:11943: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:11946: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:11949: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + eval "$ac_ac_var=yes" +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +eval "$ac_ac_var=no" +fi +rm -f conftest$ac_exeext conftest.$ac_ext +fi +echo "$as_me:11959: result: `eval echo '${'$ac_ac_var'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 +if test `eval echo '${'$ac_ac_var'}'` = yes; then + cat >>confdefs.h <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 fi done -echo $ac_n "checking for working mmap""... $ac_c" 1>&6 -echo "configure:8188: checking for working mmap" >&5 -if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +echo "$as_me:11969: checking for working mmap" >&5 +echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 +if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then ac_cv_func_mmap_fixed_mapped=no else - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 11978 "configure" #include "confdefs.h" - /* Thanks to Mike Haertel and Jim Avera for this test. Here is a matrix of mmap possibilities: mmap private not fixed @@ -8207,7 +11989,7 @@ back from the file, nor mmap's back from the file at a different address. (There have been systems where private was not correctly implemented like the infamous i386 svr4.0, and systems where the - VM page cache was not coherent with the filesystem buffer cache + VM page cache was not coherent with the file system buffer cache like early versions of FreeBSD and possibly contemporary NetBSD.) For shared mappings, we should conversely verify that changes get propogated back to all the places they're supposed to be. @@ -8220,21 +12002,27 @@ #include #include -/* This mess was copied from the GNU getpagesize.h. */ -#ifndef HAVE_GETPAGESIZE -# ifdef HAVE_UNISTD_H -# include -# endif +#if STDC_HEADERS || HAVE_STDLIB_H +# include +#else +char *malloc (); +#endif +#if HAVE_UNISTD_H +# include +#endif +#include +/* This mess was copied from the GNU getpagesize.h. */ +#if !HAVE_GETPAGESIZE /* Assume that all systems that can run configure have sys/param.h. */ -# ifndef HAVE_SYS_PARAM_H +# if !HAVE_SYS_PARAM_H # define HAVE_SYS_PARAM_H 1 # endif # ifdef _SC_PAGESIZE # define getpagesize() sysconf(_SC_PAGESIZE) # else /* no _SC_PAGESIZE */ -# ifdef HAVE_SYS_PARAM_H +# if HAVE_SYS_PARAM_H # include # ifdef EXEC_PAGESIZE # define getpagesize() EXEC_PAGESIZE @@ -8261,143 +12049,131 @@ #endif /* no HAVE_GETPAGESIZE */ -#ifdef __cplusplus -extern "C" { void *malloc(unsigned); } -#else -char *malloc(); -#endif - int -main() +main () { - char *data, *data2, *data3; - int i, pagesize; - int fd; - - pagesize = getpagesize(); - - /* - * First, make a file with some known garbage in it. - */ - data = malloc(pagesize); - if (!data) - exit(1); - for (i = 0; i < pagesize; ++i) - *(data + i) = rand(); - umask(0); - fd = creat("conftestmmap", 0600); - if (fd < 0) - exit(1); - if (write(fd, data, pagesize) != pagesize) - exit(1); - close(fd); - - /* - * Next, try to mmap the file at a fixed address which - * already has something else allocated at it. If we can, - * also make sure that we see the same garbage. - */ - fd = open("conftestmmap", O_RDWR); - if (fd < 0) - exit(1); - data2 = malloc(2 * pagesize); - if (!data2) - exit(1); - data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); - if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE, - MAP_PRIVATE | MAP_FIXED, fd, 0L)) - exit(1); - for (i = 0; i < pagesize; ++i) - if (*(data + i) != *(data2 + i)) - exit(1); - - /* - * Finally, make sure that changes to the mapped area - * do not percolate back to the file as seen by read(). - * (This is a bug on some variants of i386 svr4.0.) - */ - for (i = 0; i < pagesize; ++i) - *(data2 + i) = *(data2 + i) + 1; - data3 = malloc(pagesize); - if (!data3) - exit(1); - if (read(fd, data3, pagesize) != pagesize) - exit(1); - for (i = 0; i < pagesize; ++i) - if (*(data + i) != *(data3 + i)) - exit(1); - close(fd); - unlink("conftestmmap"); - exit(0); + char *data, *data2, *data3; + int i, pagesize; + int fd; + + pagesize = getpagesize (); + + /* First, make a file with some known garbage in it. */ + data = (char *) malloc (pagesize); + if (!data) + exit (1); + for (i = 0; i < pagesize; ++i) + *(data + i) = rand (); + umask (0); + fd = creat ("conftest.mmap", 0600); + if (fd < 0) + exit (1); + if (write (fd, data, pagesize) != pagesize) + exit (1); + close (fd); + + /* Next, try to mmap the file at a fixed address which already has + something else allocated at it. If we can, also make sure that + we see the same garbage. */ + fd = open ("conftest.mmap", O_RDWR); + if (fd < 0) + exit (1); + data2 = (char *) malloc (2 * pagesize); + if (!data2) + exit (1); + data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); + if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, + MAP_PRIVATE | MAP_FIXED, fd, 0L)) + exit (1); + for (i = 0; i < pagesize; ++i) + if (*(data + i) != *(data2 + i)) + exit (1); + + /* Finally, make sure that changes to the mapped area do not + percolate back to the file as seen by read(). (This is a bug on + some variants of i386 svr4.0.) */ + for (i = 0; i < pagesize; ++i) + *(data2 + i) = *(data2 + i) + 1; + data3 = (char *) malloc (pagesize); + if (!data3) + exit (1); + if (read (fd, data3, pagesize) != pagesize) + exit (1); + for (i = 0; i < pagesize; ++i) + if (*(data + i) != *(data3 + i)) + exit (1); + close (fd); + exit (0); } - -EOF -if { (eval echo configure:8336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then +_ACEOF +rm -f conftest$ac_exeext +if { (eval echo "$as_me:12110: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:12113: \$? = $ac_status" >&5 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext' + { (eval echo "$as_me:12115: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:12118: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then ac_cv_func_mmap_fixed_mapped=yes else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_func_mmap_fixed_mapped=no + echo "$as_me: program exited with status $ac_status" >&5 +echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_func_mmap_fixed_mapped=no fi -rm -fr conftest* +rm -f conftest$ac_exeext conftest.$ac_ext fi - fi - -echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6 +echo "$as_me:12130: result: $ac_cv_func_mmap_fixed_mapped" >&5 +echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 if test $ac_cv_func_mmap_fixed_mapped = yes; then - cat >> confdefs.h <<\EOF + +cat >>confdefs.h <<\EOF #define HAVE_MMAP 1 EOF fi +rm -f conftest.mmap - # Check whether --with-ta-mmap or --without-ta-mmap was given. if test "${with_ta_mmap+set}" = set; then withval="$with_ta_mmap" use_ta_mmap=1 else use_ta_mmap=0 -fi - +fi; if test "$use_ta_mmap" = "1"; then - cat >> confdefs.h <<\EOF + cat >>confdefs.h <<\EOF #define TA_USE_MMAP 1 EOF fi - # Check whether --with-getpwnam-library or --without-getpwnam-library was given. if test "${with_getpwnam_library+set}" = set; then withval="$with_getpwnam_library" use_getpwnam_lib=1 else use_getpwnam_lib=0 -fi - +fi; if test "$use_getpwnam_lib" = 1; then GETPWLIB="$withval" fi - - - - # Check whether --with-openssl-prefix or --without-openssl-prefix was given. if test "${with_openssl_prefix+set}" = set; then withval="$with_openssl_prefix" OPENSSLPREFIX="$withval" -fi +fi; # Check whether --with-openssl-include or --without-openssl-include was given. if test "${with_openssl_include+set}" = set; then withval="$with_openssl_include" OPENSSLINCL="-I$withval" -fi +fi; # Check whether --with-openssl-lib or --without-openssl-lib was given. if test "${with_openssl_lib+set}" = set; then @@ -8411,15 +12187,16 @@ # # Operating system dependent runtime path definition :-/ # OPENSSLLIB="-R$withval $OPENSSLLIB" # fi - -fi +fi; if test -n "$OPENSSLPREFIX" -a -z "$OPENSSLINCL" ; then if test -f "$OPENSSLPREFIX/include/openssl/ssl.h" ; then OPENSSLINCL="-I$OPENSSLPREFIX/include/" else - echo "$ac_t""!!! You defined --with-openssl-prefix=$OPENSSLPREFIX, BUT" 1>&6 - echo "$ac_t""!!! there does not exist file $OPENSSLPREFIX/include/openssl/ssl.h !" 1>&6 + echo "$as_me:12196: result: !!! You defined --with-openssl-prefix=$OPENSSLPREFIX, BUT" >&5 +echo "${ECHO_T}!!! You defined --with-openssl-prefix=$OPENSSLPREFIX, BUT" >&6 + echo "$as_me:12198: result: !!! there does not exist file $OPENSSLPREFIX/include/openssl/ssl.h !" >&5 +echo "${ECHO_T}!!! there does not exist file $OPENSSLPREFIX/include/openssl/ssl.h !" >&6 fi fi if test -n "$OPENSSLPREFIX" -a -z "$OPENSSLLIB" ; then @@ -8432,12 +12209,14 @@ elif test -n "$OPENSSLPREFIX" -a -f "$OPENSSLPREFIX/lib/libssl.a" ; then OPENSSLLIB="$OPENSSLPREFIX/lib/libssl.a $OPENSSLPREFIX/lib/libcrypto.a" else - echo "$ac_t""!!! You defined --with-openssl-prefix=$OPENSSLPREFIX, BUT" 1>&6 - echo "$ac_t""!!! there does not exist file $OPENSSLPREFIX/lib/libssl.a !" 1>&6 + echo "$as_me:12212: result: !!! You defined --with-openssl-prefix=$OPENSSLPREFIX, BUT" >&5 +echo "${ECHO_T}!!! You defined --with-openssl-prefix=$OPENSSLPREFIX, BUT" >&6 + echo "$as_me:12214: result: !!! there does not exist file $OPENSSLPREFIX/lib/libssl.a !" >&5 +echo "${ECHO_T}!!! there does not exist file $OPENSSLPREFIX/lib/libssl.a !" >&6 fi fi if test -n "$OPENSSLINCL" -a -n "$OPENSSLLIB" ; then - cat >> confdefs.h <<\EOF + cat >>confdefs.h <<\EOF #define HAVE_OPENSSL 1 EOF @@ -8450,7 +12229,7 @@ # No Explicite setup, lets do some auto-tests if test -f /usr/local/ssl/include/openssl/ssl.h ; then # Gee, OpenSSL 0.9.3a at default prefix! - cat >> confdefs.h <<\EOF + cat >>confdefs.h <<\EOF #define HAVE_OPENSSL 1 EOF @@ -8461,11 +12240,12 @@ else OPENSSLLIB="$OPENSSLPREFIX/lib/libssl.a $OPENSSLPREFIX/lib/libcrypto.a" fi - echo "$ac_t""You have OpenSSL version 0.9.3a (or newer) at default location" 1>&6 + echo "$as_me:12243: result: You have OpenSSL version 0.9.3a (or newer) at default location" >&5 +echo "${ECHO_T}You have OpenSSL version 0.9.3a (or newer) at default location" >&6 fi if test -f /usr/include/openssl/ssl.h ; then # Gee, OpenSSL 0.9.3a at "--prefix=/usr" !!! - cat >> confdefs.h <<\EOF + cat >>confdefs.h <<\EOF #define HAVE_OPENSSL 1 EOF @@ -8476,123 +12256,146 @@ else OPENSSLLIB="$OPENSSLPREFIX/lib/libssl.a $OPENSSLPREFIX/lib/libcrypto.a" fi - echo "$ac_t""You have OpenSSL version 0.9.3a (or newer) at system root!" 1>&6 + echo "$as_me:12259: result: You have OpenSSL version 0.9.3a (or newer) at system root!" >&5 +echo "${ECHO_T}You have OpenSSL version 0.9.3a (or newer) at system root!" >&6 fi fi -fi - +fi; # Check whether --enable-translation or --disable-translation was given. if test "${enable_translation+set}" = set; then enableval="$enable_translation" - - cat >> confdefs.h <>confdefs.h <&6 -echo "configure:8501: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` +echo "$as_me:12278: checking for $ac_func" >&5 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 +if eval "test \"\${$ac_ac_var+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 12284 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func(); below. */ + which can conflict with char $ac_func (); below. */ #include /* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif /* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { + builtin and then its argument prototype would still apply. */ +char $ac_func (); +char (*f) (); +int +main () +{ /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) choke me #else -$ac_func(); +f = $ac_func; #endif -; return 0; } + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:12315: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:12318: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:12321: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:12324: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + eval "$ac_ac_var=yes" +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +eval "$ac_ac_var=no" +fi +rm -f conftest$ac_exeext conftest.$ac_ext +fi +echo "$as_me:12334: result: `eval echo '${'$ac_ac_var'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 +if test `eval echo '${'$ac_ac_var'}'` = yes; then + cat >>confdefs.h <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 fi done - if test "$ac_cv_func_crypt" != yes ; then # Now why ??? Must have "-lcrypt" like Linuxes ??? t_oldLibs="$LIBS" LIBS="$LIBS -lcrypt" - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 12349 "configure" #include "confdefs.h" -int main() { +int +main () +{ char *s1, *s2, *s3; s3 = crypt(s1,s2); -; return 0; } -EOF -if { (eval echo configure:8566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:12361: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:12364: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:12367: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:12370: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then ac_cv_lib_crypt_lib=yes else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_lib_crypt_lib=no + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_lib_crypt_lib=no fi -rm -f conftest* +rm -f conftest$ac_exeext conftest.$ac_ext if test "$ac_cv_lib_crypt_lib" = yes; then # Success with this flag.. GETPWLIB="$GETPWLIB -lcrypt" - echo "$ac_t""crypt() was found by using -lcrypt library!" 1>&6 + echo "$as_me:12382: result: crypt() was found by using -lcrypt library!" >&5 +echo "${ECHO_T}crypt() was found by using -lcrypt library!" >&6 fi LIBS="$t_oldLibs" fi - - # # Is there "d_ino" within the dirent structure ? # Defines D_INO_IN_DIRENT if it is. # -echo $ac_n "checking for d_ino member in directory struct""... $ac_c" 1>&6 -echo "configure:8591: checking for d_ino member in directory struct" >&5 -if eval "test \"`echo '$''{'fu_cv_sys_d_ino_in_dirent'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +echo "$as_me:12392: checking for d_ino member in directory struct" >&5 +echo $ECHO_N "checking for d_ino member in directory struct... $ECHO_C" >&6 +if test "${fu_cv_sys_d_ino_in_dirent+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 12398 "configure" #include "confdefs.h" #include @@ -8611,25 +12414,39 @@ # endif /* HAVE_NDIR_H */ #endif /* HAVE_DIRENT_H */ -int main() { +int +main () +{ struct dirent dp; dp.d_ino = 0; -; return 0; } -EOF -if { (eval echo configure:8619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:12426: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:12429: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:12432: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:12435: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then fu_cv_sys_d_ino_in_dirent=yes else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - fu_cv_sys_d_ino_in_dirent=no + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +fu_cv_sys_d_ino_in_dirent=no fi -rm -f conftest* +rm -f conftest$ac_exeext conftest.$ac_ext fi -echo "$ac_t""$fu_cv_sys_d_ino_in_dirent" 1>&6 +echo "$as_me:12446: result: $fu_cv_sys_d_ino_in_dirent" >&5 +echo "${ECHO_T}$fu_cv_sys_d_ino_in_dirent" >&6 if test $fu_cv_sys_d_ino_in_dirent = yes; then - cat >> confdefs.h <<\EOF + cat >>confdefs.h <<\EOF #define D_INO_IN_DIRENT 1 EOF @@ -8638,175 +12455,231 @@ # Determine how to get the list of mounted filesystems. # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware. -echo $ac_n "checking for getmntent in -lsun""... $ac_c" 1>&6 -echo "configure:8643: checking for getmntent in -lsun" >&5 -ac_lib_var=`echo sun'_'getmntent | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +echo "$as_me:12458: checking for getmntent in -lsun" >&5 +echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6 +if test "${ac_cv_lib_sun_getmntent+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - ac_save_LIBS="$LIBS" + ac_check_lib_save_LIBS=$LIBS LIBS="-lsun $LIBS" -cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 12466 "configure" #include "confdefs.h" + /* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif /* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char getmntent(); - -int main() { -getmntent() -; return 0; } -EOF -if { (eval echo configure:8662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 + builtin and then its argument prototype would still apply. */ +char getmntent (); +int +main () +{ +getmntent (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:12485: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:12488: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:12491: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:12494: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_lib_sun_getmntent=yes +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_lib_sun_getmntent=no +fi +rm -f conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +echo "$as_me:12505: result: $ac_cv_lib_sun_getmntent" >&5 +echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6 +if test $ac_cv_lib_sun_getmntent = yes; then LIBS="-lsun $LIBS" else - echo "$ac_t""no" 1>&6 -echo $ac_n "checking for getmntent in -lseq""... $ac_c" 1>&6 -echo "configure:8681: checking for getmntent in -lseq" >&5 -ac_lib_var=`echo seq'_'getmntent | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 + echo "$as_me:12510: checking for getmntent in -lseq" >&5 +echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6 +if test "${ac_cv_lib_seq_getmntent+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - ac_save_LIBS="$LIBS" + ac_check_lib_save_LIBS=$LIBS LIBS="-lseq $LIBS" -cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 12518 "configure" #include "confdefs.h" + /* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif /* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char getmntent(); - -int main() { -getmntent() -; return 0; } -EOF -if { (eval echo configure:8700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 + builtin and then its argument prototype would still apply. */ +char getmntent (); +int +main () +{ +getmntent (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:12537: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:12540: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:12543: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:12546: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_lib_seq_getmntent=yes +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_lib_seq_getmntent=no +fi +rm -f conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +echo "$as_me:12557: result: $ac_cv_lib_seq_getmntent" >&5 +echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6 +if test $ac_cv_lib_seq_getmntent = yes; then LIBS="-lseq $LIBS" else - echo "$ac_t""no" 1>&6 -echo $ac_n "checking for getmntent in -lgen""... $ac_c" 1>&6 -echo "configure:8719: checking for getmntent in -lgen" >&5 -ac_lib_var=`echo gen'_'getmntent | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 + echo "$as_me:12562: checking for getmntent in -lgen" >&5 +echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6 +if test "${ac_cv_lib_gen_getmntent+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - ac_save_LIBS="$LIBS" + ac_check_lib_save_LIBS=$LIBS LIBS="-lgen $LIBS" -cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 12570 "configure" #include "confdefs.h" + /* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif /* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char getmntent(); - -int main() { -getmntent() -; return 0; } -EOF -if { (eval echo configure:8738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 + builtin and then its argument prototype would still apply. */ +char getmntent (); +int +main () +{ +getmntent (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:12589: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:12592: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:12595: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:12598: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_lib_gen_getmntent=yes +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_lib_gen_getmntent=no +fi +rm -f conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +echo "$as_me:12609: result: $ac_cv_lib_gen_getmntent" >&5 +echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6 +if test $ac_cv_lib_gen_getmntent = yes; then LIBS="-lgen $LIBS" -else - echo "$ac_t""no" 1>&6 fi fi fi -echo $ac_n "checking for getmntent""... $ac_c" 1>&6 -echo "configure:8763: checking for getmntent" >&5 -if eval "test \"`echo '$''{'ac_cv_func_getmntent'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +echo "$as_me:12619: checking for getmntent" >&5 +echo $ECHO_N "checking for getmntent... $ECHO_C" >&6 +if test "${ac_cv_func_getmntent+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 12625 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, - which can conflict with char getmntent(); below. */ + which can conflict with char getmntent (); below. */ #include /* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif /* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char getmntent(); - -int main() { + builtin and then its argument prototype would still apply. */ +char getmntent (); +char (*f) (); +int +main () +{ /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_getmntent) || defined (__stub___getmntent) choke me #else -getmntent(); +f = getmntent; #endif -; return 0; } -EOF -if { (eval echo configure:8791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_getmntent=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_getmntent=no" + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:12656: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:12659: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:12662: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:12665: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_func_getmntent=yes +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_func_getmntent=no fi -rm -f conftest* +rm -f conftest$ac_exeext conftest.$ac_ext fi +echo "$as_me:12675: result: $ac_cv_func_getmntent" >&5 +echo "${ECHO_T}$ac_cv_func_getmntent" >&6 +if test $ac_cv_func_getmntent = yes; then -if eval "test \"`echo '$ac_cv_func_'getmntent`\" = yes"; then - echo "$ac_t""yes" 1>&6 - cat >> confdefs.h <<\EOF +cat >>confdefs.h <<\EOF #define HAVE_GETMNTENT 1 EOF -else - echo "$ac_t""no" 1>&6 fi # @@ -8828,20 +12701,21 @@ if test -z "$list_mounted_fs"; then # 4.3BSD, SunOS, HP-UX, Dynix, Irix - echo $ac_n "checking for one-argument getmntent function""... $ac_c" 1>&6 -echo "configure:8833: checking for one-argument getmntent function" >&5 - if eval "test \"`echo '$''{'fu_cv_sys_mounted_getmntent1'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 + echo "$as_me:12704: checking for one-argument getmntent function" >&5 +echo $ECHO_N "checking for one-argument getmntent function... $ECHO_C" >&6 + if test "${fu_cv_sys_mounted_getmntent1+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else test $ac_cv_header_mntent_h = yes \ && fu_cv_sys_mounted_getmntent1=yes \ || fu_cv_sys_mounted_getmntent1=no fi - echo "$ac_t""$fu_cv_sys_mounted_getmntent1" 1>&6 + echo "$as_me:12714: result: $fu_cv_sys_mounted_getmntent1" >&5 +echo "${ECHO_T}$fu_cv_sys_mounted_getmntent1" >&6 if test $fu_cv_sys_mounted_getmntent1 = yes; then list_mounted_fs=found - cat >> confdefs.h <<\EOF + cat >>confdefs.h <<\EOF #define MOUNTED_GETMNTENT1 1 EOF @@ -8850,32 +12724,32 @@ if test -z "$list_mounted_fs"; then # SVR4 - echo $ac_n "checking for two-argument getmntent function""... $ac_c" 1>&6 -echo "configure:8855: checking for two-argument getmntent function" >&5 - if eval "test \"`echo '$''{'fu_cv_sys_mounted_getmntent2'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 + echo "$as_me:12727: checking for two-argument getmntent function" >&5 +echo $ECHO_N "checking for two-argument getmntent function... $ECHO_C" >&6 + if test "${fu_cv_sys_mounted_getmntent2+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 12733 "configure" #include "confdefs.h" #include -EOF + +_ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "getmntent" >/dev/null 2>&1; then - rm -rf conftest* fu_cv_sys_mounted_getmntent2=yes else - rm -rf conftest* fu_cv_sys_mounted_getmntent2=no fi rm -f conftest* fi - echo "$ac_t""$fu_cv_sys_mounted_getmntent2" 1>&6 + echo "$as_me:12748: result: $fu_cv_sys_mounted_getmntent2" >&5 +echo "${ECHO_T}$fu_cv_sys_mounted_getmntent2" >&6 if test $fu_cv_sys_mounted_getmntent2 = yes; then list_mounted_fs=found - cat >> confdefs.h <<\EOF + cat >>confdefs.h <<\EOF #define MOUNTED_GETMNTENT2 1 EOF @@ -8883,46 +12757,62 @@ fi if test -z "$list_mounted_fs"; then - { echo "configure: error: could not determine how to read list of mounted filesystems" 1>&2; exit 1; } + { { echo "$as_me:12760: error: could not determine how to read list of mounted filesystems" >&5 +echo "$as_me: error: could not determine how to read list of mounted filesystems" >&2;} + { (exit 1); exit 1; }; } fi fi if test -z "$list_mounted_fs"; then # DEC Alpha running OSF/1. - echo $ac_n "checking for getfsstat function""... $ac_c" 1>&6 -echo "configure:8895: checking for getfsstat function" >&5 - if eval "test \"`echo '$''{'fu_cv_sys_mounted_getsstat'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 + echo "$as_me:12769: checking for getfsstat function" >&5 +echo $ECHO_N "checking for getfsstat function... $ECHO_C" >&6 + if test "${fu_cv_sys_mounted_getsstat+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 12775 "configure" #include "confdefs.h" #include #include #include -int main() { +int +main () +{ struct statfs *stats; - numsys = getfsstat ((struct statfs *)0, 0L, MNT_WAIT); -; return 0; } -EOF -if { (eval echo configure:8911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* + numsys = getfsstat ((struct statfs *)0, 0L, MNT_WAIT); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:12791: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:12794: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:12797: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:12800: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then fu_cv_sys_mounted_getsstat=yes else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - fu_cv_sys_mounted_getsstat=no + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +fu_cv_sys_mounted_getsstat=no fi -rm -f conftest* +rm -f conftest$ac_exeext conftest.$ac_ext fi - echo "$ac_t""$fu_cv_sys_mounted_getsstat" 1>&6 + echo "$as_me:12811: result: $fu_cv_sys_mounted_getsstat" >&5 +echo "${ECHO_T}$fu_cv_sys_mounted_getsstat" >&6 if test $fu_cv_sys_mounted_getsstat = yes; then list_mounted_fs=found - cat >> confdefs.h <<\EOF + cat >>confdefs.h <<\EOF #define MOUNTED_GETFSSTAT 1 EOF @@ -8931,36 +12821,47 @@ if test -z "$list_mounted_fs"; then # AIX. - echo $ac_n "checking for mntctl function and struct vmount""... $ac_c" 1>&6 -echo "configure:8936: checking for mntctl function and struct vmount" >&5 - if eval "test \"`echo '$''{'fu_cv_sys_mounted_vmount'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 + echo "$as_me:12824: checking for mntctl function and struct vmount" >&5 +echo $ECHO_N "checking for mntctl function and struct vmount... $ECHO_C" >&6 + if test "${fu_cv_sys_mounted_vmount+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 12830 "configure" #include "confdefs.h" #include -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:8946: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* +_ACEOF +if { (eval echo "$as_me:12834: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 + (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 + ac_status=$? + egrep -v '^ *\+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:12840: \$? = $ac_status" >&5 + (exit $ac_status); }; then + if test -s conftest.err; then + ac_cpp_err=$ac_c_preproc_warn_flag + else + ac_cpp_err= + fi +else + ac_cpp_err=yes +fi +if test -z "$ac_cpp_err"; then fu_cv_sys_mounted_vmount=yes else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 + echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 - rm -rf conftest* fu_cv_sys_mounted_vmount=no fi -rm -f conftest* +rm -f conftest.err conftest.$ac_ext fi - echo "$ac_t""$fu_cv_sys_mounted_vmount" 1>&6 + echo "$as_me:12860: result: $fu_cv_sys_mounted_vmount" >&5 +echo "${ECHO_T}$fu_cv_sys_mounted_vmount" >&6 if test $fu_cv_sys_mounted_vmount = yes; then list_mounted_fs=found - cat >> confdefs.h <<\EOF + cat >>confdefs.h <<\EOF #define MOUNTED_VMOUNT 1 EOF @@ -8969,39 +12870,50 @@ if test -z "$list_mounted_fs"; then # SVR3 - echo $ac_n "checking for FIXME existence of three headers""... $ac_c" 1>&6 -echo "configure:8974: checking for FIXME existence of three headers" >&5 - if eval "test \"`echo '$''{'fu_cv_sys_mounted_fread_fstyp'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 + echo "$as_me:12873: checking for FIXME existence of three headers" >&5 +echo $ECHO_N "checking for FIXME existence of three headers... $ECHO_C" >&6 + if test "${fu_cv_sys_mounted_fread_fstyp+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 12879 "configure" #include "confdefs.h" #include #include #include -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:8987: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* +_ACEOF +if { (eval echo "$as_me:12886: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 + (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 + ac_status=$? + egrep -v '^ *\+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:12892: \$? = $ac_status" >&5 + (exit $ac_status); }; then + if test -s conftest.err; then + ac_cpp_err=$ac_c_preproc_warn_flag + else + ac_cpp_err= + fi +else + ac_cpp_err=yes +fi +if test -z "$ac_cpp_err"; then fu_cv_sys_mounted_fread_fstyp=yes else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 + echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 - rm -rf conftest* fu_cv_sys_mounted_fread_fstyp=no fi -rm -f conftest* +rm -f conftest.err conftest.$ac_ext fi - echo "$ac_t""$fu_cv_sys_mounted_fread_fstyp" 1>&6 + echo "$as_me:12912: result: $fu_cv_sys_mounted_fread_fstyp" >&5 +echo "${ECHO_T}$fu_cv_sys_mounted_fread_fstyp" >&6 if test $fu_cv_sys_mounted_fread_fstyp = yes; then list_mounted_fs=found - cat >> confdefs.h <<\EOF + cat >>confdefs.h <<\EOF #define MOUNTED_FREAD_FSTYP 1 EOF @@ -9010,22 +12922,22 @@ if test -z "$list_mounted_fs"; then # 4.4BSD and DEC OSF/1. - echo $ac_n "checking for getmntinfo function""... $ac_c" 1>&6 -echo "configure:9015: checking for getmntinfo function" >&5 - if eval "test \"`echo '$''{'fu_cv_sys_mounted_getmntinfo'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 + echo "$as_me:12925: checking for getmntinfo function" >&5 +echo $ECHO_N "checking for getmntinfo function... $ECHO_C" >&6 + if test "${fu_cv_sys_mounted_getmntinfo+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - + ok= if test $ac_cv_func_getmntinfo = yes; then - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 12934 "configure" #include "confdefs.h" #include -EOF + +_ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "f_type;" >/dev/null 2>&1; then - rm -rf conftest* ok=yes fi rm -f conftest* @@ -9034,13 +12946,14 @@ test -n "$ok" \ && fu_cv_sys_mounted_getmntinfo=yes \ || fu_cv_sys_mounted_getmntinfo=no - + fi - echo "$ac_t""$fu_cv_sys_mounted_getmntinfo" 1>&6 + echo "$as_me:12952: result: $fu_cv_sys_mounted_getmntinfo" >&5 +echo "${ECHO_T}$fu_cv_sys_mounted_getmntinfo" >&6 if test $fu_cv_sys_mounted_getmntinfo = yes; then list_mounted_fs=found - cat >> confdefs.h <<\EOF + cat >>confdefs.h <<\EOF #define MOUNTED_GETMNTINFO 1 EOF @@ -9051,38 +12964,49 @@ if test -z "$list_mounted_fs"; then # Ultrix - echo $ac_n "checking for getmnt function""... $ac_c" 1>&6 -echo "configure:9056: checking for getmnt function" >&5 - if eval "test \"`echo '$''{'fu_cv_sys_mounted_getmnt'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 + echo "$as_me:12967: checking for getmnt function" >&5 +echo $ECHO_N "checking for getmnt function... $ECHO_C" >&6 + if test "${fu_cv_sys_mounted_getmnt+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 12973 "configure" #include "confdefs.h" #include #include -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:9068: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* +_ACEOF +if { (eval echo "$as_me:12979: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 + (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 + ac_status=$? + egrep -v '^ *\+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:12985: \$? = $ac_status" >&5 + (exit $ac_status); }; then + if test -s conftest.err; then + ac_cpp_err=$ac_c_preproc_warn_flag + else + ac_cpp_err= + fi +else + ac_cpp_err=yes +fi +if test -z "$ac_cpp_err"; then fu_cv_sys_mounted_getmnt=yes else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 + echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 - rm -rf conftest* fu_cv_sys_mounted_getmnt=no fi -rm -f conftest* +rm -f conftest.err conftest.$ac_ext fi - echo "$ac_t""$fu_cv_sys_mounted_getmnt" 1>&6 + echo "$as_me:13005: result: $fu_cv_sys_mounted_getmnt" >&5 +echo "${ECHO_T}$fu_cv_sys_mounted_getmnt" >&6 if test $fu_cv_sys_mounted_getmnt = yes; then list_mounted_fs=found - cat >> confdefs.h <<\EOF + cat >>confdefs.h <<\EOF #define MOUNTED_GETMNT 1 EOF @@ -9091,36 +13015,47 @@ if test -z "$list_mounted_fs"; then # SVR2 - echo $ac_n "checking whether it is possible to resort to fread on /etc/mnttab""... $ac_c" 1>&6 -echo "configure:9096: checking whether it is possible to resort to fread on /etc/mnttab" >&5 - if eval "test \"`echo '$''{'fu_cv_sys_mounted_fread'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 + echo "$as_me:13018: checking whether it is possible to resort to fread on /etc/mnttab" >&5 +echo $ECHO_N "checking whether it is possible to resort to fread on /etc/mnttab... $ECHO_C" >&6 + if test "${fu_cv_sys_mounted_fread+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 13024 "configure" #include "confdefs.h" #include -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:9106: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* +_ACEOF +if { (eval echo "$as_me:13028: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 + (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 + ac_status=$? + egrep -v '^ *\+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:13034: \$? = $ac_status" >&5 + (exit $ac_status); }; then + if test -s conftest.err; then + ac_cpp_err=$ac_c_preproc_warn_flag + else + ac_cpp_err= + fi +else + ac_cpp_err=yes +fi +if test -z "$ac_cpp_err"; then fu_cv_sys_mounted_fread=yes else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 + echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 - rm -rf conftest* fu_cv_sys_mounted_fread=no fi -rm -f conftest* +rm -f conftest.err conftest.$ac_ext fi - echo "$ac_t""$fu_cv_sys_mounted_fread" 1>&6 + echo "$as_me:13054: result: $fu_cv_sys_mounted_fread" >&5 +echo "${ECHO_T}$fu_cv_sys_mounted_fread" >&6 if test $fu_cv_sys_mounted_fread = yes; then list_mounted_fs=found - cat >> confdefs.h <<\EOF + cat >>confdefs.h <<\EOF #define MOUNTED_FREAD 1 EOF @@ -9128,12 +13063,13 @@ fi if test -z "$list_mounted_fs"; then - { echo "configure: error: could not determine how to read list of mounted filesystems" 1>&2; exit 1; } + { { echo "$as_me:13066: error: could not determine how to read list of mounted filesystems" >&5 +echo "$as_me: error: could not determine how to read list of mounted filesystems" >&2;} + { (exit 1); exit 1; }; } # FIXME -- no need to abort building the whole package # Can't build mountlist.c or anything that needs its functions fi - # Test how to find out the filesystem space usage: # # AC_FUNC_STATVFS -- test how to find out the filesystem space usage @@ -9143,72 +13079,87 @@ # STAT_READ_FILSYS # -echo "checking how to get filesystem space usage:" 1>&6 -echo "configure:9148: checking how to get filesystem space usage:" >&5 +{ echo "$as_me:13082: checking how to get filesystem space usage:..." >&5 +echo "$as_me: checking how to get filesystem space usage:..." >&6;} space=no # Here we'll compromise a little (and perform only the link test) # since it seems there are no variants of the statvfs function. if test $space = no; then # SVR4 - for ac_func in statvfs + +for ac_func in statvfs do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:9158: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` +echo "$as_me:13094: checking for $ac_func" >&5 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 +if eval "test \"\${$ac_ac_var+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 13100 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func(); below. */ + which can conflict with char $ac_func (); below. */ #include /* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif /* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { + builtin and then its argument prototype would still apply. */ +char $ac_func (); +char (*f) (); +int +main () +{ /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) choke me #else -$ac_func(); +f = $ac_func; #endif -; return 0; } + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:13131: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:13134: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:13137: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:13140: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + eval "$ac_ac_var=yes" +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +eval "$ac_ac_var=no" +fi +rm -f conftest$ac_exeext conftest.$ac_ext +fi +echo "$as_me:13150: result: `eval echo '${'$ac_ac_var'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 +if test `eval echo '${'$ac_ac_var'}'` = yes; then + cat >>confdefs.h <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 fi done if test $ac_cv_func_statvfs = yes; then space=yes - cat >> confdefs.h <<\EOF + cat >>confdefs.h <<\EOF #define STAT_STATVFS 1 EOF @@ -9217,16 +13168,16 @@ if test $space = no; then # DEC Alpha running OSF/1 - echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6 -echo "configure:9222: checking for 3-argument statfs function (DEC OSF/1)" >&5 - if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 + echo "$as_me:13171: checking for 3-argument statfs function (DEC OSF/1)" >&5 +echo $ECHO_N "checking for 3-argument statfs function (DEC OSF/1)... $ECHO_C" >&6 + if test "${fu_cv_sys_stat_statfs3_osf1+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then fu_cv_sys_stat_statfs3_osf1=no else - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 13180 "configure" #include "confdefs.h" #include @@ -9238,25 +13189,34 @@ fsd.f_fsize = 0; exit (statfs (".", &fsd, sizeof (struct statfs))); } -EOF -if { (eval echo configure:9243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then +_ACEOF +rm -f conftest$ac_exeext +if { (eval echo "$as_me:13194: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:13197: \$? = $ac_status" >&5 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext' + { (eval echo "$as_me:13199: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:13202: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then fu_cv_sys_stat_statfs3_osf1=yes else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - fu_cv_sys_stat_statfs3_osf1=no + echo "$as_me: program exited with status $ac_status" >&5 +echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +fu_cv_sys_stat_statfs3_osf1=no fi -rm -fr conftest* +rm -f conftest$ac_exeext conftest.$ac_ext fi - fi - echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6 + echo "$as_me:13215: result: $fu_cv_sys_stat_statfs3_osf1" >&5 +echo "${ECHO_T}$fu_cv_sys_stat_statfs3_osf1" >&6 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then space=yes - cat >> confdefs.h <<\EOF + cat >>confdefs.h <<\EOF #define STAT_STATFS3_OSF1 1 EOF @@ -9265,16 +13225,16 @@ if test $space = no; then # AIX - echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6 -echo "configure:9270: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5 - if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 + echo "$as_me:13228: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5 +echo $ECHO_N "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)... $ECHO_C" >&6 + if test "${fu_cv_sys_stat_statfs2_bsize+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then fu_cv_sys_stat_statfs2_bsize=no else - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 13237 "configure" #include "confdefs.h" #ifdef HAVE_SYS_PARAM_H @@ -9292,25 +13252,34 @@ fsd.f_bsize = 0; exit (statfs (".", &fsd)); } -EOF -if { (eval echo configure:9297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then +_ACEOF +rm -f conftest$ac_exeext +if { (eval echo "$as_me:13257: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:13260: \$? = $ac_status" >&5 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext' + { (eval echo "$as_me:13262: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:13265: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then fu_cv_sys_stat_statfs2_bsize=yes else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - fu_cv_sys_stat_statfs2_bsize=no + echo "$as_me: program exited with status $ac_status" >&5 +echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +fu_cv_sys_stat_statfs2_bsize=no fi -rm -fr conftest* +rm -f conftest$ac_exeext conftest.$ac_ext fi - fi - echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6 + echo "$as_me:13278: result: $fu_cv_sys_stat_statfs2_bsize" >&5 +echo "${ECHO_T}$fu_cv_sys_stat_statfs2_bsize" >&6 if test $fu_cv_sys_stat_statfs2_bsize = yes; then space=yes - cat >> confdefs.h <<\EOF + cat >>confdefs.h <<\EOF #define STAT_STATFS2_BSIZE 1 EOF @@ -9319,16 +13288,16 @@ if test $space = no; then # SVR3 - echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6 -echo "configure:9324: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5 - if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 + echo "$as_me:13291: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5 +echo $ECHO_N "checking for four-argument statfs (AIX-3.2.5, SVR3)... $ECHO_C" >&6 + if test "${fu_cv_sys_stat_statfs4+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then fu_cv_sys_stat_statfs4=no else - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 13300 "configure" #include "confdefs.h" #include #include @@ -9337,25 +13306,34 @@ struct statfs fsd; exit (statfs (".", &fsd, sizeof fsd, 0)); } -EOF -if { (eval echo configure:9342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then +_ACEOF +rm -f conftest$ac_exeext +if { (eval echo "$as_me:13311: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:13314: \$? = $ac_status" >&5 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext' + { (eval echo "$as_me:13316: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:13319: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then fu_cv_sys_stat_statfs4=yes else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - fu_cv_sys_stat_statfs4=no + echo "$as_me: program exited with status $ac_status" >&5 +echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +fu_cv_sys_stat_statfs4=no fi -rm -fr conftest* +rm -f conftest$ac_exeext conftest.$ac_ext fi - fi - echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6 + echo "$as_me:13332: result: $fu_cv_sys_stat_statfs4" >&5 +echo "${ECHO_T}$fu_cv_sys_stat_statfs4" >&6 if test $fu_cv_sys_stat_statfs4 = yes; then space=yes - cat >> confdefs.h <<\EOF + cat >>confdefs.h <<\EOF #define STAT_STATFS4 1 EOF @@ -9364,16 +13342,16 @@ if test $space = no; then # 4.4BSD and NetBSD - echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6 -echo "configure:9369: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5 - if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 + echo "$as_me:13345: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5 +echo $ECHO_N "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)... $ECHO_C" >&6 + if test "${fu_cv_sys_stat_statfs2_fsize+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then fu_cv_sys_stat_statfs2_fsize=no else - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 13354 "configure" #include "confdefs.h" #include #ifdef HAVE_SYS_PARAM_H @@ -9388,25 +13366,34 @@ fsd.f_fsize = 0; exit (statfs (".", &fsd)); } -EOF -if { (eval echo configure:9393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then +_ACEOF +rm -f conftest$ac_exeext +if { (eval echo "$as_me:13371: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:13374: \$? = $ac_status" >&5 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext' + { (eval echo "$as_me:13376: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:13379: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then fu_cv_sys_stat_statfs2_fsize=yes else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - fu_cv_sys_stat_statfs2_fsize=no + echo "$as_me: program exited with status $ac_status" >&5 +echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +fu_cv_sys_stat_statfs2_fsize=no fi -rm -fr conftest* +rm -f conftest$ac_exeext conftest.$ac_ext fi - fi - echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6 + echo "$as_me:13392: result: $fu_cv_sys_stat_statfs2_fsize" >&5 +echo "${ECHO_T}$fu_cv_sys_stat_statfs2_fsize" >&6 if test $fu_cv_sys_stat_statfs2_fsize = yes; then space=yes - cat >> confdefs.h <<\EOF + cat >>confdefs.h <<\EOF #define STAT_STATFS2_FSIZE 1 EOF @@ -9415,16 +13402,16 @@ if test $space = no; then # Ultrix - echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6 -echo "configure:9420: checking for two-argument statfs with struct fs_data (Ultrix)" >&5 - if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 + echo "$as_me:13405: checking for two-argument statfs with struct fs_data (Ultrix)" >&5 +echo $ECHO_N "checking for two-argument statfs with struct fs_data (Ultrix)... $ECHO_C" >&6 + if test "${fu_cv_sys_stat_fs_data+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then fu_cv_sys_stat_fs_data=no else - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 13414 "configure" #include "confdefs.h" #include #ifdef HAVE_SYS_PARAM_H @@ -9443,25 +13430,34 @@ 0 for not mounted, -1 for failure. */ exit (statfs (".", &fsd) != 1); } -EOF -if { (eval echo configure:9448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then +_ACEOF +rm -f conftest$ac_exeext +if { (eval echo "$as_me:13435: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:13438: \$? = $ac_status" >&5 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext' + { (eval echo "$as_me:13440: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:13443: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then fu_cv_sys_stat_fs_data=yes else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - fu_cv_sys_stat_fs_data=no + echo "$as_me: program exited with status $ac_status" >&5 +echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +fu_cv_sys_stat_fs_data=no fi -rm -fr conftest* +rm -f conftest$ac_exeext conftest.$ac_ext fi - fi - echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6 + echo "$as_me:13456: result: $fu_cv_sys_stat_fs_data" >&5 +echo "${ECHO_T}$fu_cv_sys_stat_fs_data" >&6 if test $fu_cv_sys_stat_fs_data = yes; then space=yes - cat >> confdefs.h <<\EOF + cat >>confdefs.h <<\EOF #define STAT_STATFS2_FS_DATA 1 EOF @@ -9470,123 +13466,162 @@ if test $space = no; then # SVR2 -cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 13470 "configure" #include "confdefs.h" #include -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:9480: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - cat >> confdefs.h <<\EOF +_ACEOF +if { (eval echo "$as_me:13474: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 + (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 + ac_status=$? + egrep -v '^ *\+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:13480: \$? = $ac_status" >&5 + (exit $ac_status); }; then + if test -s conftest.err; then + ac_cpp_err=$ac_c_preproc_warn_flag + else + ac_cpp_err= + fi +else + ac_cpp_err=yes +fi +if test -z "$ac_cpp_err"; then + cat >>confdefs.h <<\EOF #define STAT_READ_FILSYS 1 EOF space=yes else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 + echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 + fi -rm -f conftest* +rm -f conftest.err conftest.$ac_ext fi - #if test -n "$list_mounted_fs" && test $space != no; then # PROGS="$PROGS df" LIBOBJS="$LIBOBJS" #fi for ac_func in ftruncate do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:9504: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` +echo "$as_me:13510: checking for $ac_func" >&5 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 +if eval "test \"\${$ac_ac_var+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 13516 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func(); below. */ + which can conflict with char $ac_func (); below. */ #include /* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif /* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); + builtin and then its argument prototype would still apply. */ +char $ac_func (); +char (*f) (); -int main() { - +int +main () +{ /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) choke me #else -$ac_func(); +f = $ac_func; #endif -; return 0; } -EOF -if { (eval echo configure:9532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:13550: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:13553: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:13556: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + eval "$ac_ac_var=yes" +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +eval "$ac_ac_var=no" +fi +rm -f conftest$ac_exeext conftest.$ac_ext +fi +echo "$as_me:13566: result: `eval echo '${'$ac_ac_var'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 +if test `eval echo '${'$ac_ac_var'}'` = yes; then + cat >>confdefs.h <&6 -ftruncate_missing=yes + ftruncate_missing=yes fi done - if test "$ftruncate_missing" = yes; then - echo $ac_n "checking fcntl emulation of ftruncate""... $ac_c" 1>&6 -echo "configure:9560: checking fcntl emulation of ftruncate" >&5 - if eval "test \"`echo '$''{'fu_cv_sys_ftruncate_emulation'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 + echo "$as_me:13579: checking fcntl emulation of ftruncate" >&5 +echo $ECHO_N "checking fcntl emulation of ftruncate... $ECHO_C" >&6 + if test "${fu_cv_sys_ftruncate_emulation+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 13585 "configure" #include "confdefs.h" #include #include -int main() { +int +main () +{ #if !defined(F_CHSIZE) && !defined(F_FREESP) chsize(); #endif -; return 0; } -EOF -if { (eval echo configure:9578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:13603: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:13606: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:13609: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:13612: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then fu_cv_sys_ftruncate_emulation=yes else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - fu_cv_sys_ftruncate_emulation=no + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +fu_cv_sys_ftruncate_emulation=no fi -rm -f conftest* +rm -f conftest$ac_exeext conftest.$ac_ext fi - echo "$ac_t""$fu_cv_sys_ftruncate_emulation" 1>&6 + echo "$as_me:13623: result: $fu_cv_sys_ftruncate_emulation" >&5 +echo "${ECHO_T}$fu_cv_sys_ftruncate_emulation" >&6 if test $fu_cv_sys_ftruncate_emulation = yes; then LIBOBJS="$LIBOBJS ftruncate.o" fi @@ -9594,296 +13629,357 @@ # If we don't yet have getgroups, see if it's in -lbsd. # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1. -echo $ac_n "checking for getgroups""... $ac_c" 1>&6 -echo "configure:9599: checking for getgroups" >&5 -if eval "test \"`echo '$''{'ac_cv_func_getgroups'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +echo "$as_me:13632: checking for getgroups" >&5 +echo $ECHO_N "checking for getgroups... $ECHO_C" >&6 +if test "${ac_cv_func_getgroups+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 13638 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, - which can conflict with char getgroups(); below. */ + which can conflict with char getgroups (); below. */ #include /* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif /* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char getgroups(); - -int main() { + builtin and then its argument prototype would still apply. */ +char getgroups (); +char (*f) (); +int +main () +{ /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_getgroups) || defined (__stub___getgroups) choke me #else -getgroups(); +f = getgroups; #endif - -; return 0; } -EOF -if { (eval echo configure:9627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_getgroups=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_getgroups=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_func_'getgroups`\" = yes"; then - echo "$ac_t""yes" 1>&6 + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:13669: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:13672: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:13675: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:13678: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_func_getgroups=yes +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_func_getgroups=no +fi +rm -f conftest$ac_exeext conftest.$ac_ext +fi +echo "$as_me:13688: result: $ac_cv_func_getgroups" >&5 +echo "${ECHO_T}$ac_cv_func_getgroups" >&6 +if test $ac_cv_func_getgroups = yes; then : else - echo "$ac_t""no" 1>&6 -echo $ac_n "checking for getgroups in -lbsd""... $ac_c" 1>&6 -echo "configure:9645: checking for getgroups in -lbsd" >&5 -ac_lib_var=`echo bsd'_'getgroups | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 + +echo "$as_me:13694: checking for getgroups in -lbsd" >&5 +echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6 +if test "${ac_cv_lib_bsd_getgroups+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - ac_save_LIBS="$LIBS" + ac_check_lib_save_LIBS=$LIBS LIBS="-lbsd $LIBS" -cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 13702 "configure" #include "confdefs.h" + /* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif /* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char getgroups(); - -int main() { -getgroups() -; return 0; } -EOF -if { (eval echo configure:9664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_lib=HAVE_LIB`echo bsd | sed -e 's/^a-zA-Z0-9_/_/g' \ - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` - cat >> confdefs.h <&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:13724: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:13727: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:13730: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_lib_bsd_getgroups=yes +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_lib_bsd_getgroups=no +fi +rm -f conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +echo "$as_me:13741: result: $ac_cv_lib_bsd_getgroups" >&5 +echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6 +if test $ac_cv_lib_bsd_getgroups = yes; then + cat >>confdefs.h <&6 fi fi - -for ac_hdr in sys/ipc.h sys/msg.h +for ac_header in sys/ipc.h sys/msg.h do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:9698: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` +echo "$as_me:13757: checking for $ac_header" >&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 +if eval "test \"\${$ac_ac_Header+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +#line 13763 "configure" +#include "confdefs.h" +#include <$ac_header> +_ACEOF +if { (eval echo "$as_me:13767: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 + (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 + ac_status=$? + egrep -v '^ *\+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:13773: \$? = $ac_status" >&5 + (exit $ac_status); }; then + if test -s conftest.err; then + ac_cpp_err=$ac_c_preproc_warn_flag + else + ac_cpp_err= + fi else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:9708: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" + ac_cpp_err=yes +fi +if test -z "$ac_cpp_err"; then + eval "$ac_ac_Header=yes" else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 + echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" + eval "$ac_ac_Header=no" fi -rm -f conftest* +rm -f conftest.err conftest.$ac_ext fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&5 +echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 +if test `eval echo '${'$ac_ac_Header'}'` = yes; then + cat >>confdefs.h <&6 + fi done for ac_func in msgsnd msgrcv msgctl do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:9737: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` +echo "$as_me:13805: checking for $ac_func" >&5 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 +if eval "test \"\${$ac_ac_var+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 13811 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func(); below. */ + which can conflict with char $ac_func (); below. */ #include /* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif /* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { + builtin and then its argument prototype would still apply. */ +char $ac_func (); +char (*f) (); +int +main () +{ /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) choke me #else -$ac_func(); +f = $ac_func; #endif -; return 0; } + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:13842: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:13845: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:13848: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:13851: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + eval "$ac_ac_var=yes" +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +eval "$ac_ac_var=no" +fi +rm -f conftest$ac_exeext conftest.$ac_ext +fi +echo "$as_me:13861: result: `eval echo '${'$ac_ac_var'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 +if test `eval echo '${'$ac_ac_var'}'` = yes; then + cat >>confdefs.h <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 fi done - # Check for libypsec.a on Dolphin M88K machines. -echo $ac_n "checking for main in -lypsec""... $ac_c" 1>&6 -echo "configure:9792: checking for main in -lypsec" >&5 -ac_lib_var=`echo ypsec'_'main | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 + +echo "$as_me:13873: checking for main in -lypsec" >&5 +echo $ECHO_N "checking for main in -lypsec... $ECHO_C" >&6 +if test "${ac_cv_lib_ypsec_main+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - ac_save_LIBS="$LIBS" + ac_check_lib_save_LIBS=$LIBS LIBS="-lypsec $LIBS" -cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 13881 "configure" #include "confdefs.h" - -int main() { -main() -; return 0; } -EOF -if { (eval echo configure:9807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_lib=HAVE_LIB`echo ypsec | sed -e 's/[^a-zA-Z0-9_]/_/g' \ - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` - cat >> confdefs.h <&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:13896: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:13899: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:13902: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_lib_ypsec_main=yes +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_lib_ypsec_main=no +fi +rm -f conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +echo "$as_me:13913: result: $ac_cv_lib_ypsec_main" >&5 +echo "${ECHO_T}$ac_cv_lib_ypsec_main" >&6 +if test $ac_cv_lib_ypsec_main = yes; then + cat >>confdefs.h <&6 fi - # m88k running dgux 5.4 needs this -echo $ac_n "checking for main in -lldgc""... $ac_c" 1>&6 -echo "configure:9837: checking for main in -lldgc" >&5 -ac_lib_var=`echo ldgc'_'main | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 + +echo "$as_me:13926: checking for main in -lldgc" >&5 +echo $ECHO_N "checking for main in -lldgc... $ECHO_C" >&6 +if test "${ac_cv_lib_ldgc_main+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - ac_save_LIBS="$LIBS" + ac_check_lib_save_LIBS=$LIBS LIBS="-lldgc $LIBS" -cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 13934 "configure" #include "confdefs.h" - -int main() { -main() -; return 0; } -EOF -if { (eval echo configure:9852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_lib=HAVE_LIB`echo ldgc | sed -e 's/[^a-zA-Z0-9_]/_/g' \ - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` - cat >> confdefs.h <&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:13949: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:13952: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:13955: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_lib_ldgc_main=yes +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_lib_ldgc_main=no +fi +rm -f conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +echo "$as_me:13966: result: $ac_cv_lib_ldgc_main" >&5 +echo "${ECHO_T}$ac_cv_lib_ldgc_main" >&6 +if test $ac_cv_lib_ldgc_main = yes; then + cat >>confdefs.h <&6 fi - -echo "checking for AFS" 1>&6 -echo "configure:9881: checking for AFS" >&5 -test -d /afs && cat >> confdefs.h <<\EOF +{ echo "$as_me:13977: checking for AFS..." >&5 +echo "$as_me: checking for AFS..." >&6;} +test -d /afs && cat >>confdefs.h <<\EOF #define AFS 1 EOF - - eval MANDIR=${mandir} if test "$ac_cv_c_const" = no ; then @@ -9892,73 +13988,75 @@ # Extract the first word of "procmail", so it can be a program name with args. set dummy procmail; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:9897: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_path_PROCMAIL'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +echo "$as_me:13991: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_path_PROCMAIL+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - case "$PROCMAIL" in - /*) + case $PROCMAIL in + [\\/]* | ?:[\\/]*) ac_cv_path_PROCMAIL="$PROCMAIL" # Let the user override the test with a path. ;; - ?:/*) - ac_cv_path_PROCMAIL="$PROCMAIL" # Let the user override the test with a dos path. - ;; *) - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_path_PROCMAIL="$ac_dir/$ac_word" - break - fi - done - IFS="$ac_save_ifs" + ac_save_IFS=$IFS; IFS=$ac_path_separator +ac_dummy="$PATH" +for ac_dir in $ac_dummy; do + IFS=$ac_save_IFS + test -z "$ac_dir" && ac_dir=. + if $as_executable_p "$ac_dir/$ac_word"; then + ac_cv_path_PROCMAIL="$ac_dir/$ac_word" + break +fi +done + test -z "$ac_cv_path_PROCMAIL" && ac_cv_path_PROCMAIL="procmail" ;; esac fi -PROCMAIL="$ac_cv_path_PROCMAIL" +PROCMAIL=$ac_cv_path_PROCMAIL + if test -n "$PROCMAIL"; then - echo "$ac_t""$PROCMAIL" 1>&6 + echo "$as_me:14019: result: $PROCMAIL" >&5 +echo "${ECHO_T}$PROCMAIL" >&6 else - echo "$ac_t""no" 1>&6 + echo "$as_me:14022: result: no" >&5 +echo "${ECHO_T}no" >&6 fi # Extract the first word of "md5sum", so it can be a program name with args. set dummy md5sum; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:9932: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_path_MD5SUM'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +echo "$as_me:14027: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_path_MD5SUM+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - case "$MD5SUM" in - /*) + case $MD5SUM in + [\\/]* | ?:[\\/]*) ac_cv_path_MD5SUM="$MD5SUM" # Let the user override the test with a path. ;; - ?:/*) - ac_cv_path_MD5SUM="$MD5SUM" # Let the user override the test with a dos path. - ;; *) - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_path_MD5SUM="$ac_dir/$ac_word" - break - fi - done - IFS="$ac_save_ifs" + ac_save_IFS=$IFS; IFS=$ac_path_separator +ac_dummy="$PATH" +for ac_dir in $ac_dummy; do + IFS=$ac_save_IFS + test -z "$ac_dir" && ac_dir=. + if $as_executable_p "$ac_dir/$ac_word"; then + ac_cv_path_MD5SUM="$ac_dir/$ac_word" + break +fi +done + test -z "$ac_cv_path_MD5SUM" && ac_cv_path_MD5SUM="$MAILBIN/md5sum" ;; esac fi -MD5SUM="$ac_cv_path_MD5SUM" +MD5SUM=$ac_cv_path_MD5SUM + if test -n "$MD5SUM"; then - echo "$ac_t""$MD5SUM" 1>&6 + echo "$as_me:14055: result: $MD5SUM" >&5 +echo "${ECHO_T}$MD5SUM" >&6 else - echo "$ac_t""no" 1>&6 + echo "$as_me:14058: result: no" >&5 +echo "${ECHO_T}no" >&6 fi for x in sfio sfio/src sfio/src/lib sfio/src/lib/sfio sfio/include sfio/lib @@ -9966,513 +14064,951 @@ if test ! -d $x ; then mkdir $x; fi done -trap '' 1 2 15 -cat > confcache <<\EOF +ac_config_files="$ac_config_files Makefile router/Makefile router/libdb/Makefile scheduler/Makefile smtpserver/Makefile transports/Makefile transports/smtp/Makefile transports/mailbox/Makefile transports/hold/Makefile transports/libta/Makefile transports/sm/Makefile transports/errormail/Makefile transports/fuzzyalias/Makefile transports/expirer/Makefile transports/expirer/manual-expirer compat/Makefile compat/rmail/Makefile compat/sendmail/Makefile sfio/Makefile sfio/src/lib/sfio/makefile sfio/src/lib/sfio/Stdio_b/Makefile sfio/src/lib/sfio/Stdio_s/Makefile sfio/src/lib/sfio/Sfio_f/Makefile sfio/src/lib/sfio/Sfio_dc/Makefile lib/Makefile libc/Makefile libident/Makefile libs/Makefile libsh/Makefile libmalloc/Makefile libmalloc/splay/Makefile libresolv/Makefile ssl/Makefile doc/Makefile doc/design/Makefile include/mail.h man/Makefile utils/policy-builder.sh utils/Makefile utils/zmailer.init.sh utils/autoanswer.pl utils/vacation/Makefile man/vacation.1 utils/vacation/vacation.sh utils/makedb/Makefile utils/rotate-logs.sh utils/smtpserver-log-parser.pl proto/Makefile proto/zmailer.sh proto/newaliases proto/newfqdnaliases proto/newdb proto/newdbprocessor proto/scheduler.conf proto/scheduler.auth proto/mailrm.sh proto/db/Makefile proto/cf/TELE-FI.cf proto/smtpserver.conf proto/cf/SMTP+UUCP.cf proto/cf/UTdefault.cf proto/cf/SMTP.cf proto/smtp-tls.conf proto/db/aliases proto/sm.conf bin/mkdep bin/mklibdep proto/post-install.sh utils/mxverify/Makefile packaging/Makefile packaging/solaris/Makefile SiteConfig" +ac_config_commands="$ac_config_commands default" +cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure -# scripts and configure runs. It is not useful on other systems. -# If it contains results you don't want to keep, you may remove or edit it. +# scripts and configure runs, see configure's option --config-cache. +# It is not useful on other systems. If it contains results you don't +# want to keep, you may remove or edit it. # -# By default, configure uses ./config.cache as the cache file, -# creating it if it does not exist already. You can give configure -# the --cache-file=FILE option to use a different cache file; that is -# what configure does when it calls configure scripts in -# subdirectories, so they share the cache. -# Giving --cache-file=/dev/null disables caching, for debugging configure. -# config.status only pays attention to the cache file if you give it the -# --recheck option to rerun configure. +# config.status only pays attention to the cache file if you give it +# the --recheck option to rerun configure. # -EOF +# `ac_cv_env_foo' variables (set or unset) will be overriden when +# loading this file, other *unset* `ac_cv_foo' will be assigned the +# following values. + +_ACEOF + # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, don't put newlines in cache variables' values. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. -(set) 2>&1 | - case `(ac_space=' '; set | grep ac_space) 2>&1` in - *ac_space=\ *) - # `set' does not quote correctly, so add quotes (double-quote substitution - # turns \\\\ into \\, and sed turns \\ into \). - sed -n \ - -e "s/'/'\\\\''/g" \ - -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" - ;; - *) - # `set' quotes correctly as required by POSIX, so do not add quotes. - sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' - ;; - esac >> confcache -if cmp -s $cache_file confcache; then - : -else +{ + (set) 2>&1 | + case `(ac_space=' '; set | grep ac_space) 2>&1` in + *ac_space=\ *) + # `set' does not quote correctly, so add quotes (double-quote + # substitution turns \\\\ into \\, and sed turns \\ into \). + sed -n \ + "s/'/'\\\\''/g; + s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" + ;; + *) + # `set' quotes correctly as required by POSIX, so do not add quotes. + sed -n \ + "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" + ;; + esac; +} | + sed ' + t clear + : clear + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ + t end + /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ + : end' >>confcache +if cmp -s $cache_file confcache; then :; else if test -w $cache_file; then - echo "updating cache $cache_file" - cat confcache > $cache_file + test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" + cat confcache >$cache_file else echo "not updating unwritable cache $cache_file" fi fi rm -f confcache -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 - test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' -# Any assignment to VPATH causes Sun make to only execute -# the first set of double-colon rules, so remove it if not needed. -# If there is a colon in the path, we need to keep it. +# VPATH may cause trouble with some makes, so we remove $(srcdir), +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and +# trailing colons and then remove the whole line if VPATH becomes empty +# (actually we leave an empty line to preserve line numbers). if test "x$srcdir" = x.; then - ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' + ac_vpsub='/^[ ]*VPATH[ ]*=/{ +s/:*\$(srcdir):*/:/; +s/:*\${srcdir}:*/:/; +s/:*@srcdir@:*/:/; +s/^\([^=]*=[ ]*\):*/\1/; +s/:*$//; +s/^[^=]*=[ ]*$//; +}' fi -trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 - DEFS=-DHAVE_CONFIG_H -# Without the "./", some shells look in PATH for config.status. : ${CONFIG_STATUS=./config.status} - -echo creating $CONFIG_STATUS -rm -f $CONFIG_STATUS -cat > $CONFIG_STATUS <&5 +echo "$as_me: creating $CONFIG_STATUS" >&6;} +cat >$CONFIG_STATUS <<\_ACEOF #! /bin/sh # Generated automatically by configure. # Run this file to recreate the current configuration. -# This directory was configured as follows, -# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: -# -# $0 $ac_configure_args -# # Compiler output produced by configure, useful for debugging -# configure, is in ./config.log if it exists. +# configure, is in config.log if it exists. -ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" -for ac_option +debug=false +as_me=`echo "$0" | sed 's,.*/,,'` +SHELL=${CONFIG_SHELL-/bin/sh} + +# Be Bourne compatible +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then + emulate sh + NULLCMD=: +elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then + set -o posix +fi + +if expr a : '\(a\)' >/dev/null 2>&1; then + as_expr=expr +else + as_expr=false +fi + +rm -f conf$$ conf$$.exe conf$$.file +echo >conf$$.file +if ln -s conf$$.file conf$$ 2>/dev/null; then + # We could just check for DJGPP; but this test a) works b) is more generic + # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). + if test -f conf$$.exe; then + # Don't use ln at all; we don't have any links + as_ln_s='cp -p' + else + as_ln_s='ln -s' + fi +elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln +else + as_ln_s='cp -p' +fi +rm -f conf$$ conf$$.exe conf$$.file + +as_executable_p="test -f" + +# Support unset when possible. +if (FOO=FOO; unset FOO) >/dev/null 2>&1; then + as_unset=unset +else + as_unset=false +fi + +# NLS nuisances. +$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } +$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } +$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } +$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } +$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } +$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } +$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } +$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } + +# IFS +# We need space, tab and new line, in precisely that order. +as_nl=' +' +IFS=" $as_nl" + +# CDPATH. +$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } + +# File descriptor usage: +# 0 standard input +# 1 file creation +# 2 errors and warnings +# 5 compiler messages saved in config.log +# 6 checking for... messages and results +exec 5>>config.log +exec 6>&1 + +cat >&5 << EOF + +## ----------------------- ## +## Running config.status. ## +## ----------------------- ## + +This file was extended by $as_me 2.49d, executed with + > $0 $@ +on `(hostname || uname -n) 2>/dev/null | sed 1q` + +EOF + +_ACEOF + +# Files that config.status was made for. +if test -n "$ac_config_files"; then + echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS +fi + +if test -n "$ac_config_headers"; then + echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS +fi + +if test -n "$ac_config_links"; then + echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS +fi + +if test -n "$ac_config_commands"; then + echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS +fi + +cat >>$CONFIG_STATUS <<\EOF + +ac_cs_usage="\ +\`$as_me' instantiates files from templates according to the +current configuration. + +Usage: $0 [OPTIONS] [FILE]... + + -h, --help print this help, then exit + -V, --version print version number, then exit + -d, --debug don't remove temporary files + --recheck update $as_me by reconfiguring in the same conditions + --file=FILE[:TEMPLATE] + instantiate the configuration file FILE + --header=FILE[:TEMPLATE] + instantiate the configuration header FILE + +Configuration files: +$config_files + +Configuration headers: +$config_headers + +Configuration commands: +$config_commands + +Report bugs to ." +EOF + +cat >>$CONFIG_STATUS <>$CONFIG_STATUS <<\EOF +# If no file are specified by the user, then we need to provide default +# value. By we need to know if files were specified by the user. +ac_need_defaults=: +while test $# != 0 do - case "\$ac_option" in + case $1 in + --*=*) + ac_option=`expr "x$1" : 'x\([^=]*\)='` + ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` + shift + set dummy "$ac_option" "$ac_optarg" ${1+"$@"} + shift + ;; + -*);; + *) # This is not an option, so the user has probably given explicit + # arguments. + ac_need_defaults=false;; + esac + + case $1 in + # Handling of the options. +EOF +cat >>$CONFIG_STATUS <>$CONFIG_STATUS <<\EOF + --version | --vers* | -V ) + echo "$ac_cs_version"; exit 0 ;; + --he | --h) + # Conflict between --help and --header + { { echo "$as_me:14332: error: ambiguous option: $1 +Try \`$0 --help' for more information." >&5 +echo "$as_me: error: ambiguous option: $1 +Try \`$0 --help' for more information." >&2;} + { (exit 1); exit 1; }; };; + --help | --hel | -h ) + echo "$ac_cs_usage"; exit 0 ;; + --debug | --d* | -d ) + debug=: ;; + --file | --fil | --fi | --f ) + shift + CONFIG_FILES="$CONFIG_FILES $1" + ac_need_defaults=false;; + --header | --heade | --head | --hea ) + shift + CONFIG_HEADERS="$CONFIG_HEADERS $1" + ac_need_defaults=false;; + + # Handling of arguments. + 'Makefile' ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; + 'router/Makefile' ) CONFIG_FILES="$CONFIG_FILES router/Makefile" ;; + 'router/libdb/Makefile' ) CONFIG_FILES="$CONFIG_FILES router/libdb/Makefile" ;; + 'scheduler/Makefile' ) CONFIG_FILES="$CONFIG_FILES scheduler/Makefile" ;; + 'smtpserver/Makefile' ) CONFIG_FILES="$CONFIG_FILES smtpserver/Makefile" ;; + 'transports/Makefile' ) CONFIG_FILES="$CONFIG_FILES transports/Makefile" ;; + 'transports/smtp/Makefile' ) CONFIG_FILES="$CONFIG_FILES transports/smtp/Makefile" ;; + 'transports/mailbox/Makefile' ) CONFIG_FILES="$CONFIG_FILES transports/mailbox/Makefile" ;; + 'transports/hold/Makefile' ) CONFIG_FILES="$CONFIG_FILES transports/hold/Makefile" ;; + 'transports/libta/Makefile' ) CONFIG_FILES="$CONFIG_FILES transports/libta/Makefile" ;; + 'transports/sm/Makefile' ) CONFIG_FILES="$CONFIG_FILES transports/sm/Makefile" ;; + 'transports/errormail/Makefile' ) CONFIG_FILES="$CONFIG_FILES transports/errormail/Makefile" ;; + 'transports/fuzzyalias/Makefile' ) CONFIG_FILES="$CONFIG_FILES transports/fuzzyalias/Makefile" ;; + 'transports/expirer/Makefile' ) CONFIG_FILES="$CONFIG_FILES transports/expirer/Makefile" ;; + 'transports/expirer/manual-expirer' ) CONFIG_FILES="$CONFIG_FILES transports/expirer/manual-expirer" ;; + 'compat/Makefile' ) CONFIG_FILES="$CONFIG_FILES compat/Makefile" ;; + 'compat/rmail/Makefile' ) CONFIG_FILES="$CONFIG_FILES compat/rmail/Makefile" ;; + 'compat/sendmail/Makefile' ) CONFIG_FILES="$CONFIG_FILES compat/sendmail/Makefile" ;; + 'sfio/Makefile' ) CONFIG_FILES="$CONFIG_FILES sfio/Makefile" ;; + 'sfio/src/lib/sfio/makefile' ) CONFIG_FILES="$CONFIG_FILES sfio/src/lib/sfio/makefile" ;; + 'sfio/src/lib/sfio/Stdio_b/Makefile' ) CONFIG_FILES="$CONFIG_FILES sfio/src/lib/sfio/Stdio_b/Makefile" ;; + 'sfio/src/lib/sfio/Stdio_s/Makefile' ) CONFIG_FILES="$CONFIG_FILES sfio/src/lib/sfio/Stdio_s/Makefile" ;; + 'sfio/src/lib/sfio/Sfio_f/Makefile' ) CONFIG_FILES="$CONFIG_FILES sfio/src/lib/sfio/Sfio_f/Makefile" ;; + 'sfio/src/lib/sfio/Sfio_dc/Makefile' ) CONFIG_FILES="$CONFIG_FILES sfio/src/lib/sfio/Sfio_dc/Makefile" ;; + 'lib/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; + 'libc/Makefile' ) CONFIG_FILES="$CONFIG_FILES libc/Makefile" ;; + 'libident/Makefile' ) CONFIG_FILES="$CONFIG_FILES libident/Makefile" ;; + 'libs/Makefile' ) CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;; + 'libsh/Makefile' ) CONFIG_FILES="$CONFIG_FILES libsh/Makefile" ;; + 'libmalloc/Makefile' ) CONFIG_FILES="$CONFIG_FILES libmalloc/Makefile" ;; + 'libmalloc/splay/Makefile' ) CONFIG_FILES="$CONFIG_FILES libmalloc/splay/Makefile" ;; + 'libresolv/Makefile' ) CONFIG_FILES="$CONFIG_FILES libresolv/Makefile" ;; + 'ssl/Makefile' ) CONFIG_FILES="$CONFIG_FILES ssl/Makefile" ;; + 'doc/Makefile' ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; + 'doc/design/Makefile' ) CONFIG_FILES="$CONFIG_FILES doc/design/Makefile" ;; + 'include/mail.h' ) CONFIG_FILES="$CONFIG_FILES include/mail.h" ;; + 'man/Makefile' ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; + 'utils/policy-builder.sh' ) CONFIG_FILES="$CONFIG_FILES utils/policy-builder.sh" ;; + 'utils/Makefile' ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;; + 'utils/zmailer.init.sh' ) CONFIG_FILES="$CONFIG_FILES utils/zmailer.init.sh" ;; + 'utils/autoanswer.pl' ) CONFIG_FILES="$CONFIG_FILES utils/autoanswer.pl" ;; + 'utils/vacation/Makefile' ) CONFIG_FILES="$CONFIG_FILES utils/vacation/Makefile" ;; + 'man/vacation.1' ) CONFIG_FILES="$CONFIG_FILES man/vacation.1" ;; + 'utils/vacation/vacation.sh' ) CONFIG_FILES="$CONFIG_FILES utils/vacation/vacation.sh" ;; + 'utils/makedb/Makefile' ) CONFIG_FILES="$CONFIG_FILES utils/makedb/Makefile" ;; + 'utils/rotate-logs.sh' ) CONFIG_FILES="$CONFIG_FILES utils/rotate-logs.sh" ;; + 'utils/smtpserver-log-parser.pl' ) CONFIG_FILES="$CONFIG_FILES utils/smtpserver-log-parser.pl" ;; + 'proto/Makefile' ) CONFIG_FILES="$CONFIG_FILES proto/Makefile" ;; + 'proto/zmailer.sh' ) CONFIG_FILES="$CONFIG_FILES proto/zmailer.sh" ;; + 'proto/newaliases' ) CONFIG_FILES="$CONFIG_FILES proto/newaliases" ;; + 'proto/newfqdnaliases' ) CONFIG_FILES="$CONFIG_FILES proto/newfqdnaliases" ;; + 'proto/newdb' ) CONFIG_FILES="$CONFIG_FILES proto/newdb" ;; + 'proto/newdbprocessor' ) CONFIG_FILES="$CONFIG_FILES proto/newdbprocessor" ;; + 'proto/scheduler.conf' ) CONFIG_FILES="$CONFIG_FILES proto/scheduler.conf" ;; + 'proto/scheduler.auth' ) CONFIG_FILES="$CONFIG_FILES proto/scheduler.auth" ;; + 'proto/mailrm.sh' ) CONFIG_FILES="$CONFIG_FILES proto/mailrm.sh" ;; + 'proto/db/Makefile' ) CONFIG_FILES="$CONFIG_FILES proto/db/Makefile" ;; + 'proto/cf/TELE-FI.cf' ) CONFIG_FILES="$CONFIG_FILES proto/cf/TELE-FI.cf" ;; + 'proto/smtpserver.conf' ) CONFIG_FILES="$CONFIG_FILES proto/smtpserver.conf" ;; + 'proto/cf/SMTP+UUCP.cf' ) CONFIG_FILES="$CONFIG_FILES proto/cf/SMTP+UUCP.cf" ;; + 'proto/cf/UTdefault.cf' ) CONFIG_FILES="$CONFIG_FILES proto/cf/UTdefault.cf" ;; + 'proto/cf/SMTP.cf' ) CONFIG_FILES="$CONFIG_FILES proto/cf/SMTP.cf" ;; + 'proto/smtp-tls.conf' ) CONFIG_FILES="$CONFIG_FILES proto/smtp-tls.conf" ;; + 'proto/db/aliases' ) CONFIG_FILES="$CONFIG_FILES proto/db/aliases" ;; + 'proto/sm.conf' ) CONFIG_FILES="$CONFIG_FILES proto/sm.conf" ;; + 'bin/mkdep' ) CONFIG_FILES="$CONFIG_FILES bin/mkdep" ;; + 'bin/mklibdep' ) CONFIG_FILES="$CONFIG_FILES bin/mklibdep" ;; + 'proto/post-install.sh' ) CONFIG_FILES="$CONFIG_FILES proto/post-install.sh" ;; + 'utils/mxverify/Makefile' ) CONFIG_FILES="$CONFIG_FILES utils/mxverify/Makefile" ;; + 'packaging/Makefile' ) CONFIG_FILES="$CONFIG_FILES packaging/Makefile" ;; + 'packaging/solaris/Makefile' ) CONFIG_FILES="$CONFIG_FILES packaging/solaris/Makefile" ;; + 'SiteConfig' ) CONFIG_FILES="$CONFIG_FILES SiteConfig" ;; + 'default' ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; + 'config.h' ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; + + # This is an error. + -*) { { echo "$as_me:14427: error: unrecognized option: $1 +Try \`$0 --help' for more information." >&5 +echo "$as_me: error: unrecognized option: $1 +Try \`$0 --help' for more information." >&2;} + { (exit 1); exit 1; }; } ;; + *) { { echo "$as_me:14432: error: invalid argument: $1" >&5 +echo "$as_me: error: invalid argument: $1" >&2;} + { (exit 1); exit 1; }; };; esac + shift done + +EOF -ac_given_srcdir=$srcdir -ac_given_INSTALL="$INSTALL" +cat >>$CONFIG_STATUS <<\EOF +# If the user did not use the arguments to specify the items to instantiate, +# then the envvar interface is used. Set only those that are not. +# We use the long form for the default assignment because of an extremely +# bizarre bug on SunOS 4.1.3. +if $ac_need_defaults; then + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files + test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers + test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands +fi -trap 'rm -fr `echo "Makefile - router/Makefile router/libdb/Makefile \ - scheduler/Makefile smtpserver/Makefile \ - transports/Makefile transports/smtp/Makefile \ - transports/mailbox/Makefile transports/hold/Makefile \ - transports/libta/Makefile transports/sm/Makefile \ - transports/errormail/Makefile transports/fuzzyalias/Makefile \ - transports/expirer/Makefile transports/expirer/manual-expirer \ - compat/Makefile compat/rmail/Makefile \ - compat/sendmail/Makefile \ - sfio/Makefile sfio/src/lib/sfio/makefile \ - sfio/src/lib/sfio/Stdio_b/Makefile \ - sfio/src/lib/sfio/Stdio_s/Makefile \ - sfio/src/lib/sfio/Sfio_f/Makefile \ - sfio/src/lib/sfio/Sfio_dc/Makefile \ - lib/Makefile libc/Makefile \ - libident/Makefile libs/Makefile \ - libsh/Makefile libmalloc/Makefile \ - libmalloc/splay/Makefile libresolv/Makefile \ - ssl/Makefile \ - doc/Makefile doc/design/Makefile \ - include/mail.h man/Makefile \ - utils/policy-builder.sh utils/Makefile \ - utils/zmailer.init.sh utils/autoanswer.pl \ - utils/vacation/Makefile man/vacation.1 \ - utils/vacation/vacation.sh utils/makedb/Makefile \ - utils/rotate-logs.sh utils/smtpserver-log-parser.pl \ - proto/Makefile proto/zmailer.sh \ - proto/newaliases proto/newfqdnaliases \ - proto/newdb proto/newdbprocessor \ - proto/scheduler.conf proto/scheduler.auth \ - proto/mailrm.sh proto/db/Makefile \ - proto/cf/TELE-FI.cf proto/smtpserver.conf \ - proto/cf/SMTP+UUCP.cf proto/cf/UTdefault.cf \ - proto/cf/SMTP.cf proto/smtp-tls.conf \ - proto/db/aliases proto/sm.conf \ - bin/mkdep bin/mklibdep \ - proto/post-install.sh utils/mxverify/Makefile \ - packaging/Makefile packaging/solaris/Makefile \ - SiteConfig config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 -EOF -cat >> $CONFIG_STATUS < conftest.subs <<\\CEOF -$ac_vpsub -$extrasub -s%@SHELL@%$SHELL%g -s%@CFLAGS@%$CFLAGS%g -s%@CPPFLAGS@%$CPPFLAGS%g -s%@CXXFLAGS@%$CXXFLAGS%g -s%@FFLAGS@%$FFLAGS%g -s%@DEFS@%$DEFS%g -s%@LDFLAGS@%$LDFLAGS%g -s%@LIBS@%$LIBS%g -s%@exec_prefix@%$exec_prefix%g -s%@prefix@%$prefix%g -s%@program_transform_name@%$program_transform_name%g -s%@bindir@%$bindir%g -s%@sbindir@%$sbindir%g -s%@libexecdir@%$libexecdir%g -s%@datadir@%$datadir%g -s%@sysconfdir@%$sysconfdir%g -s%@sharedstatedir@%$sharedstatedir%g -s%@localstatedir@%$localstatedir%g -s%@libdir@%$libdir%g -s%@includedir@%$includedir%g -s%@oldincludedir@%$oldincludedir%g -s%@infodir@%$infodir%g -s%@mandir@%$mandir%g -s%@CC@%$CC%g -s%@CPP@%$CPP%g -s%@MKDIR@%$MKDIR%g -s%@SET_MAKE@%$SET_MAKE%g -s%@PROGS@%$PROGS%g -s%@LN@%$LN%g -s%@MV@%$MV%g -s%@RM@%$RM%g -s%@TRUE@%$TRUE%g -s%@PERL@%$PERL%g -s%@GZIP@%$GZIP%g -s%@LIBPROGS@%$LIBPROGS%g -s%@CPPDEP@%$CPPDEP%g -s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g -s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g -s%@INSTALL_DATA@%$INSTALL_DATA%g -s%@RANLIB@%$RANLIB%g -s%@AR@%$AR%g -s%@LD@%$LD%g -s%@YACC@%$YACC%g -s%@LN_S@%$LN_S%g -s%@GENINCL@%$GENINCL%g -s%@GENLIB@%$GENLIB%g -s%@ZMAILERCFGFILE@%$ZMAILERCFGFILE%g -s%@MAILBOX@%$MAILBOX%g -s%@POSTOFFICE@%$POSTOFFICE%g -s%@MAILSHARE@%$MAILSHARE%g -s%@MAILVAR@%$MAILVAR%g -s%@MAILBIN@%$MAILBIN%g -s%@LOGDIR@%$LOGDIR%g -s%@ROUTEUSER_IN_ABNORMAL_UNIX@%$ROUTEUSER_IN_ABNORMAL_UNIX%g -s%@NNTPSERVER@%$NNTPSERVER%g -s%@INEWS@%$INEWS%g -s%@SCHEDULEROPTIONS@%$SCHEDULEROPTIONS%g -s%@ROUTEROPTIONS@%$ROUTEROPTIONS%g -s%@SMTPOPTIONS@%$SMTPOPTIONS%g -s%@SENDMAILPATH@%$SENDMAILPATH%g -s%@RMAILPATH@%$RMAILPATH%g -s%@VACATIONPATH@%$VACATIONPATH%g -s%@SELFADDRESSES@%$SELFADDRESSES%g -s%@LIBMALLOC@%$LIBMALLOC%g -s%@MALLOC@%$MALLOC%g -s%@MALLOCEXT@%$MALLOCEXT%g -s%@HAVE_YP@%$HAVE_YP%g -s%@LIBNIS@%$LIBNIS%g -s%@SHLIB_CFLAGS@%$SHLIB_CFLAGS%g -s%@SHLIB_LD@%$SHLIB_LD%g -s%@SHLIB_SUFFIX@%$SHLIB_SUFFIX%g -s%@DL_LIBS@%$DL_LIBS%g -s%@LD_FLAGS@%$LD_FLAGS%g -s%@LIBOBJS@%$LIBOBJS%g -s%@DBTYPE@%$DBTYPE%g -s%@DBEXT@%$DBEXT%g -s%@DBEXTtest@%$DBEXTtest%g -s%@INCLLDAP@%$INCLLDAP%g -s%@LIBDBMS@%$LIBDBMS%g -s%@LIBLOCALDBMS@%$LIBLOCALDBMS%g -s%@AUTHLIB@%$AUTHLIB%g -s%@LIBMAIL@%$LIBMAIL%g -s%@LIBRESOLV@%$LIBRESOLV%g -s%@INCLRESOLV@%$INCLRESOLV%g -s%@LIBRESOLVA@%$LIBRESOLVA%g -s%@LIBSOCKET@%$LIBSOCKET%g -s%@RFC822TABS@%$RFC822TABS%g -s%@LIBWRAP@%$LIBWRAP%g -s%@INCLWRAP@%$INCLWRAP%g -s%@PRIVATEMBOX@%$PRIVATEMBOX%g -s%@PRIVATEAUTH@%$PRIVATEAUTH%g -s%@LIBWHOSON@%$LIBWHOSON%g -s%@INCLWHOSON@%$INCLWHOSON%g -s%@DSPRINTF_TYPE@%$DSPRINTF_TYPE%g -s%@ALLOCA@%$ALLOCA%g -s%@GETPWLIB@%$GETPWLIB%g -s%@OPENSSLPREFIX@%$OPENSSLPREFIX%g -s%@OPENSSLINCL@%$OPENSSLINCL%g -s%@OPENSSLLIB@%$OPENSSLLIB%g -s%@MANDIR@%$MANDIR%g -s%@PROCMAIL@%$PROCMAIL%g -s%@MD5SUM@%$MD5SUM%g +# Create a temporary directory, and hook for its removal unless debugging. +$debug || +{ + trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 + trap '{ (exit $?); exit $?; }' 1 2 13 15 +} -CEOF +# Create a (secure) tmp directory for tmp files. +: ${TMPDIR=/tmp} +{ + tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && + test -n "$tmp" && test -d "$tmp" +} || +{ + tmp=$TMPDIR/cs$$-$RANDOM + (umask 077 && mkdir $tmp) +} || +{ + echo "$me: cannot create a temporary directory in $TMPDIR" >&2 + { (exit 1); exit 1; } +} + EOF -cat >> $CONFIG_STATUS <<\EOF +cat >>$CONFIG_STATUS < conftest.s$ac_file - else - sed "${ac_end}q" conftest.subs > conftest.s$ac_file - fi - if test ! -s conftest.s$ac_file; then - ac_more_lines=false - rm -f conftest.s$ac_file - else - if test -z "$ac_sed_cmds"; then - ac_sed_cmds="sed -f conftest.s$ac_file" +# +# CONFIG_FILES section. +# + +# No need to generate the scripts if there are no CONFIG_FILES. +# This happens for instance when ./config.status config.h +if test -n "\$CONFIG_FILES"; then + # Protect against being on the right side of a sed subst in config.status. + sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; + s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF +s,@SHELL@,$SHELL,;t t +s,@exec_prefix@,$exec_prefix,;t t +s,@prefix@,$prefix,;t t +s,@program_transform_name@,$program_transform_name,;t t +s,@bindir@,$bindir,;t t +s,@sbindir@,$sbindir,;t t +s,@libexecdir@,$libexecdir,;t t +s,@datadir@,$datadir,;t t +s,@sysconfdir@,$sysconfdir,;t t +s,@sharedstatedir@,$sharedstatedir,;t t +s,@localstatedir@,$localstatedir,;t t +s,@libdir@,$libdir,;t t +s,@includedir@,$includedir,;t t +s,@oldincludedir@,$oldincludedir,;t t +s,@infodir@,$infodir,;t t +s,@mandir@,$mandir,;t t +s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t +s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t +s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t +s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t +s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t +s,@ECHO_C@,$ECHO_C,;t t +s,@ECHO_N@,$ECHO_N,;t t +s,@ECHO_T@,$ECHO_T,;t t +s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t +s,@DEFS@,$DEFS,;t t +s,@LIBS@,$LIBS,;t t +s,@CC@,$CC,;t t +s,@CFLAGS@,$CFLAGS,;t t +s,@LDFLAGS@,$LDFLAGS,;t t +s,@ac_ct_CC@,$ac_ct_CC,;t t +s,@EXEEXT@,$EXEEXT,;t t +s,@OBJEXT@,$OBJEXT,;t t +s,@CPP@,$CPP,;t t +s,@CPPFLAGS@,$CPPFLAGS,;t t +s,@MKDIR@,$MKDIR,;t t +s,@SET_MAKE@,$SET_MAKE,;t t +s,@PROGS@,$PROGS,;t t +s,@LN@,$LN,;t t +s,@MV@,$MV,;t t +s,@RM@,$RM,;t t +s,@TRUE@,$TRUE,;t t +s,@PERL@,$PERL,;t t +s,@GZIP@,$GZIP,;t t +s,@LIBPROGS@,$LIBPROGS,;t t +s,@CPPDEP@,$CPPDEP,;t t +s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t +s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t +s,@INSTALL_DATA@,$INSTALL_DATA,;t t +s,@RANLIB@,$RANLIB,;t t +s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t +s,@AR@,$AR,;t t +s,@LD@,$LD,;t t +s,@YACC@,$YACC,;t t +s,@LN_S@,$LN_S,;t t +s,@GENINCL@,$GENINCL,;t t +s,@GENLIB@,$GENLIB,;t t +s,@ZMAILERCFGFILE@,$ZMAILERCFGFILE,;t t +s,@MAILBOX@,$MAILBOX,;t t +s,@POSTOFFICE@,$POSTOFFICE,;t t +s,@MAILSHARE@,$MAILSHARE,;t t +s,@MAILVAR@,$MAILVAR,;t t +s,@MAILBIN@,$MAILBIN,;t t +s,@LOGDIR@,$LOGDIR,;t t +s,@ROUTEUSER_IN_ABNORMAL_UNIX@,$ROUTEUSER_IN_ABNORMAL_UNIX,;t t +s,@NNTPSERVER@,$NNTPSERVER,;t t +s,@INEWS@,$INEWS,;t t +s,@SCHEDULEROPTIONS@,$SCHEDULEROPTIONS,;t t +s,@ROUTEROPTIONS@,$ROUTEROPTIONS,;t t +s,@SMTPOPTIONS@,$SMTPOPTIONS,;t t +s,@SENDMAILPATH@,$SENDMAILPATH,;t t +s,@RMAILPATH@,$RMAILPATH,;t t +s,@VACATIONPATH@,$VACATIONPATH,;t t +s,@SELFADDRESSES@,$SELFADDRESSES,;t t +s,@LIBMALLOC@,$LIBMALLOC,;t t +s,@MALLOC@,$MALLOC,;t t +s,@MALLOCEXT@,$MALLOCEXT,;t t +s,@HAVE_YP@,$HAVE_YP,;t t +s,@LIBNIS@,$LIBNIS,;t t +s,@SHLIB_CFLAGS@,$SHLIB_CFLAGS,;t t +s,@SHLIB_LD@,$SHLIB_LD,;t t +s,@SHLIB_SUFFIX@,$SHLIB_SUFFIX,;t t +s,@DL_LIBS@,$DL_LIBS,;t t +s,@LD_FLAGS@,$LD_FLAGS,;t t +s,@DBTYPE@,$DBTYPE,;t t +s,@DBEXT@,$DBEXT,;t t +s,@DBEXTtest@,$DBEXTtest,;t t +s,@INCLLDAP@,$INCLLDAP,;t t +s,@LIBDBMS@,$LIBDBMS,;t t +s,@LIBLOCALDBMS@,$LIBLOCALDBMS,;t t +s,@AUTHLIB@,$AUTHLIB,;t t +s,@LIBMAIL@,$LIBMAIL,;t t +s,@LIBOBJS@,$LIBOBJS,;t t +s,@LIBRESOLV@,$LIBRESOLV,;t t +s,@INCLRESOLV@,$INCLRESOLV,;t t +s,@LIBRESOLVA@,$LIBRESOLVA,;t t +s,@LIBSOCKET@,$LIBSOCKET,;t t +s,@RFC822TABS@,$RFC822TABS,;t t +s,@LIBWRAP@,$LIBWRAP,;t t +s,@INCLWRAP@,$INCLWRAP,;t t +s,@PRIVATEMBOX@,$PRIVATEMBOX,;t t +s,@PRIVATEAUTH@,$PRIVATEAUTH,;t t +s,@LIBWHOSON@,$LIBWHOSON,;t t +s,@INCLWHOSON@,$INCLWHOSON,;t t +s,@DSPRINTF_TYPE@,$DSPRINTF_TYPE,;t t +s,@ALLOCA@,$ALLOCA,;t t +s,@GETPWLIB@,$GETPWLIB,;t t +s,@OPENSSLPREFIX@,$OPENSSLPREFIX,;t t +s,@OPENSSLINCL@,$OPENSSLINCL,;t t +s,@OPENSSLLIB@,$OPENSSLLIB,;t t +s,@MANDIR@,$MANDIR,;t t +s,@PROCMAIL@,$PROCMAIL,;t t +s,@MD5SUM@,$MD5SUM,;t t +CEOF + +EOF + + cat >>$CONFIG_STATUS <<\EOF + # Split the substitutions into bite-sized pieces for seds with + # small command number limits, like on Digital OSF/1 and HP-UX. + ac_max_sed_lines=48 + ac_sed_frag=1 # Number of current file. + ac_beg=1 # First line for current file. + ac_end=$ac_max_sed_lines # Line after last line for current file. + ac_more_lines=: + ac_sed_cmds= + while $ac_more_lines; do + if test $ac_beg -gt 1; then + sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag else - ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" + sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag fi - ac_file=`expr $ac_file + 1` - ac_beg=$ac_end - ac_end=`expr $ac_end + $ac_max_sed_cmds` - fi -done -if test -z "$ac_sed_cmds"; then - ac_sed_cmds=cat -fi -EOF + if test ! -s $tmp/subs.frag; then + ac_more_lines=false + else + # The purpose of the label and of the branching condition is to + # speed up the sed processing (if there are no `@' at all, there + # is no need to browse any of the substitutions). + # These are the two extra sed commands mentioned above. + (echo ':t + /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed + if test -z "$ac_sed_cmds"; then + ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" + else + ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" + fi + ac_sed_frag=`expr $ac_sed_frag + 1` + ac_beg=$ac_end + ac_end=`expr $ac_end + $ac_max_sed_lines` + fi + done + if test -z "$ac_sed_cmds"; then + ac_sed_cmds=cat + fi +fi # test -n "$CONFIG_FILES" -cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF -for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then +cat >>$CONFIG_STATUS <<\EOF +for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". - case "$ac_file" in - *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` - ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; - *) ac_file_in="${ac_file}.in" ;; + case $ac_file in + - | *:- | *:-:* ) # input from stdin + cat >$tmp/stdin + ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; + *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; + * ) ac_file_in=$ac_file.in ;; esac - - # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. - # Remove last slash and all that follows it. Not all systems have dirname. - ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` + # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. + ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$ac_file" : 'X\(//\)[^/]' \| \ + X"$ac_file" : 'X\(//\)$' \| \ + X"$ac_file" : 'X\(/\)' \| \ + . : '\(.\)' 2>/dev/null || +echo X"$ac_file" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } + /^X\(\/\/\)[^/].*/{ s//\1/; q; } + /^X\(\/\/\)$/{ s//\1/; q; } + /^X\(\/\).*/{ s//\1/; q; } + s/.*/./; q'` if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then - # The file is in a subdirectory. - test ! -d "$ac_dir" && mkdir "$ac_dir" - ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" + { case "$ac_dir" in + [\\/]* | ?:[\\/]* ) as_incr_dir=;; + *) as_incr_dir=.;; +esac +as_dummy="$ac_dir" +for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do + case $as_mkdir_dir in + # Skip DOS drivespec + ?:) as_incr_dir=$as_mkdir_dir ;; + *) + as_incr_dir=$as_incr_dir/$as_mkdir_dir + test -d "$as_incr_dir" || mkdir "$as_incr_dir" + ;; + esac +done; } + + ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`" # A "../" for each directory in $ac_dir_suffix. - ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` + ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'` else ac_dir_suffix= ac_dots= fi - case "$ac_given_srcdir" in - .) srcdir=. - if test -z "$ac_dots"; then top_srcdir=. - else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; - /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; + case $srcdir in + .) ac_srcdir=. + if test -z "$ac_dots"; then + ac_top_srcdir=. + else + ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'` + fi ;; + [\\/]* | ?:[\\/]* ) + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir ;; *) # Relative path. - srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" - top_srcdir="$ac_dots$ac_given_srcdir" ;; + ac_srcdir=$ac_dots$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_dots$srcdir ;; esac - case "$ac_given_INSTALL" in - [/$]*) INSTALL="$ac_given_INSTALL" ;; - *) INSTALL="$ac_dots$ac_given_INSTALL" ;; + case $INSTALL in + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; + *) ac_INSTALL=$ac_dots$INSTALL ;; esac - echo creating "$ac_file" - rm -f "$ac_file" - configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." - case "$ac_file" in - *Makefile*) ac_comsub="1i\\ -# $configure_input" ;; - *) ac_comsub= ;; - esac + if test x"$ac_file" != x-; then + { echo "$as_me:14715: creating $ac_file" >&5 +echo "$as_me: creating $ac_file" >&6;} + rm -f "$ac_file" + fi + # Let's still pretend it is `configure' which instantiates (i.e., don't + # use $as_me), people would be surprised to read: + # /* config.h. Generated automatically by config.status. */ + configure_input="Generated automatically from `echo $ac_file_in | + sed 's,.*/,,'` by configure." + + # First look for the input files in the build tree, otherwise in the + # src tree. + ac_file_inputs=`IFS=: + for f in $ac_file_in; do + case $f in + -) echo $tmp/stdin ;; + [\\/$]* | ?:[\\/]*) + # Absolute + test -f "$f" || { { echo "$as_me:14733: error: cannot find input file: $f" >&5 +echo "$as_me: error: cannot find input file: $f" >&2;} + { (exit 1); exit 1; }; } + echo $f;; + *) # Relative + if test -f "$f"; then + # Build tree + echo $f + elif test -f "$srcdir/$f"; then + # Source tree + echo $srcdir/$f + else + # /dev/null tree + { { echo "$as_me:14746: error: cannot find input file: $f" >&5 +echo "$as_me: error: cannot find input file: $f" >&2;} + { (exit 1); exit 1; }; } + fi;; + esac + done` || { (exit 1); exit 1; } +EOF +cat >>$CONFIG_STATUS <>$CONFIG_STATUS <<\EOF +:t +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b +s,@configure_input@,$configure_input,;t t +s,@srcdir@,$ac_srcdir,;t t +s,@top_srcdir@,$ac_top_srcdir,;t t +s,@INSTALL@,$ac_INSTALL,;t t +" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out + rm -f $tmp/stdin + if test x"$ac_file" != x-; then + mv $tmp/out $ac_file + else + cat $tmp/out + rm -f $tmp/out + fi - ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` - sed -e "$ac_comsub -s%@configure_input@%$configure_input%g -s%@srcdir@%$srcdir%g -s%@top_srcdir@%$top_srcdir%g -s%@INSTALL@%$INSTALL%g -" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file -fi; done -rm -f conftest.s* +done +EOF +cat >>$CONFIG_STATUS <<\EOF + +# +# CONFIG_HEADER section. +# # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where # NAME is the cpp macro being defined and VALUE is the value it is being given. # # ac_d sets the value in "#define NAME VALUE" lines. -ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' -ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' -ac_dC='\3' -ac_dD='%g' -# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". -ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' -ac_uB='\([ ]\)%\1#\2define\3' +ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' +ac_dB='[ ].*$,\1#\2' +ac_dC=' ' +ac_dD=',;t' +# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". +ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' +ac_uB='$,\1#\2define\3' ac_uC=' ' -ac_uD='\4%g' -# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". -ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' -ac_eB='$%\1#\2define\3' -ac_eC=' ' -ac_eD='%g' +ac_uD=',;t' -if test "${CONFIG_HEADERS+set}" != set; then -EOF -cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF -fi -for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then +for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". - case "$ac_file" in - *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` - ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; - *) ac_file_in="${ac_file}.in" ;; + case $ac_file in + - | *:- | *:-:* ) # input from stdin + cat >$tmp/stdin + ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; + *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; + * ) ac_file_in=$ac_file.in ;; esac - echo creating $ac_file + test x"$ac_file" != x- && { echo "$as_me:14807: creating $ac_file" >&5 +echo "$as_me: creating $ac_file" >&6;} - rm -f conftest.frag conftest.in conftest.out - ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` - cat $ac_file_inputs > conftest.in + # First look for the input files in the build tree, otherwise in the + # src tree. + ac_file_inputs=`IFS=: + for f in $ac_file_in; do + case $f in + -) echo $tmp/stdin ;; + [\\/$]* | ?:[\\/]*) + # Absolute + test -f "$f" || { { echo "$as_me:14818: error: cannot find input file: $f" >&5 +echo "$as_me: error: cannot find input file: $f" >&2;} + { (exit 1); exit 1; }; } + echo $f;; + *) # Relative + if test -f "$f"; then + # Build tree + echo $f + elif test -f "$srcdir/$f"; then + # Source tree + echo $srcdir/$f + else + # /dev/null tree + { { echo "$as_me:14831: error: cannot find input file: $f" >&5 +echo "$as_me: error: cannot find input file: $f" >&2;} + { (exit 1); exit 1; }; } + fi;; + esac + done` || { (exit 1); exit 1; } + # Remove the trailing spaces. + sed 's/[ ]*$//' $ac_file_inputs >$tmp/in EOF -# Transform confdefs.h into a sed script conftest.vals that substitutes -# the proper values into config.h.in to produce config.h. And first: -# Protect against being on the right side of a sed subst in config.status. -# Protect against being in an unquoted here document in config.status. -rm -f conftest.vals -cat > conftest.hdr <<\EOF -s/[\\&%]/\\&/g -s%[\\$`]%\\&%g -s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp -s%ac_d%ac_u%gp -s%ac_u%ac_e%gp -EOF -sed -n -f conftest.hdr confdefs.h > conftest.vals -rm -f conftest.hdr +# Transform confdefs.h into two sed scripts, `conftest.defines' and +# `conftest.undefs', that substitutes the proper values into +# config.h.in to produce config.h. The first handles `#define' +# templates, and the second `#undef' templates. +# And first: Protect against being on the right side of a sed subst in +# config.status. Protect against being in an unquoted here document +# in config.status. +rm -f conftest.defines conftest.undefs +# Using a here document instead of a string reduces the quoting nightmare. +# Putting comments in sed scripts is not portable. +# +# `end' is used to avoid that the second main sed command (meant for +# 0-ary CPP macros) applies to n-ary macro definitions. +# See the Autoconf documentation for `clear'. +cat >confdef2sed.sed <<\EOF +s/[\\&,]/\\&/g +s,[\\$`],\\&,g +t clear +: clear +s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp +t end +s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp +: end +EOF +# If some macros were called several times there might be several times +# the same #defines, which is useless. Nevertheless, we may not want to +# sort them, since we want the *last* AC-DEFINE to be honored. +uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines +sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs +rm -f confdef2sed.sed # This sed command replaces #undef with comments. This is necessary, for # example, in the case of _POSIX_SOURCE, which is predefined and required # on some systems where configure will not decide to define it. -cat >> conftest.vals <<\EOF -s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% +cat >>conftest.undefs <<\EOF +s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, EOF -# Break up conftest.vals because some shells have a limit on -# the size of here documents, and old seds have small limits too. - +# Break up conftest.defines because some shells have a limit on the size +# of here documents, and old seds have small limits too (100 cmds). +echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS +echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS +echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS +echo ' :' >>$CONFIG_STATUS +rm -f conftest.tail +while grep . conftest.defines >/dev/null +do + # Write a limited-size here document to $tmp/defines.sed. + echo ' cat >$tmp/defines.sed <>$CONFIG_STATUS + # Speed up: don't consider the non `#define' lines. + echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS + # Work around the forget-to-reset-the-flag bug. + echo 't clr' >>$CONFIG_STATUS + echo ': clr' >>$CONFIG_STATUS + sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS + echo 'CEOF + sed -f $tmp/defines.sed $tmp/in >$tmp/out + rm -f $tmp/in + mv $tmp/out $tmp/in +' >>$CONFIG_STATUS + sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail + rm -f conftest.defines + mv conftest.tail conftest.defines +done +rm -f conftest.defines +echo ' fi # egrep' >>$CONFIG_STATUS +echo >>$CONFIG_STATUS + +# Break up conftest.undefs because some shells have a limit on the size +# of here documents, and old seds have small limits too (100 cmds). +echo ' # Handle all the #undef templates' >>$CONFIG_STATUS rm -f conftest.tail -while : +while grep . conftest.undefs >/dev/null do - ac_lines=`grep -c . conftest.vals` - # grep -c gives empty output for an empty file on some AIX systems. - if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi - # Write a limited-size here document to conftest.frag. - echo ' cat > conftest.frag <> $CONFIG_STATUS - sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS + # Write a limited-size here document to $tmp/undefs.sed. + echo ' cat >$tmp/undefs.sed <>$CONFIG_STATUS + # Speed up: don't consider the non `#undef' + echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS + # Work around the forget-to-reset-the-flag bug. + echo 't clr' >>$CONFIG_STATUS + echo ': clr' >>$CONFIG_STATUS + sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS echo 'CEOF - sed -f conftest.frag conftest.in > conftest.out - rm -f conftest.in - mv conftest.out conftest.in -' >> $CONFIG_STATUS - sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail - rm -f conftest.vals - mv conftest.tail conftest.vals -done -rm -f conftest.vals - -cat >> $CONFIG_STATUS <<\EOF - rm -f conftest.frag conftest.h - echo "/* $ac_file. Generated automatically by configure. */" > conftest.h - cat conftest.in >> conftest.h - rm -f conftest.in - if cmp -s $ac_file conftest.h 2>/dev/null; then - echo "$ac_file is unchanged" - rm -f conftest.h + sed -f $tmp/undefs.sed $tmp/in >$tmp/out + rm -f $tmp/in + mv $tmp/out $tmp/in +' >>$CONFIG_STATUS + sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail + rm -f conftest.undefs + mv conftest.tail conftest.undefs +done +rm -f conftest.undefs + +cat >>$CONFIG_STATUS <<\EOF + # Let's still pretend it is `configure' which instantiates (i.e., don't + # use $as_me), people would be surprised to read: + # /* config.h. Generated automatically by config.status. */ + if test x"$ac_file" = x-; then + echo "/* Generated automatically by configure. */" >$tmp/config.h else - # Remove last slash and all that follows it. Not all systems have dirname. - ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` + echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h + fi + cat $tmp/in >>$tmp/config.h + rm -f $tmp/in + if test x"$ac_file" != x-; then + if cmp -s $ac_file $tmp/config.h 2>/dev/null; then + { echo "$as_me:14948: $ac_file is unchanged" >&5 +echo "$as_me: $ac_file is unchanged" >&6;} + else + ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$ac_file" : 'X\(//\)[^/]' \| \ + X"$ac_file" : 'X\(//\)$' \| \ + X"$ac_file" : 'X\(/\)' \| \ + . : '\(.\)' 2>/dev/null || +echo X"$ac_file" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } + /^X\(\/\/\)[^/].*/{ s//\1/; q; } + /^X\(\/\/\)$/{ s//\1/; q; } + /^X\(\/\).*/{ s//\1/; q; } + s/.*/./; q'` if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then - # The file is in a subdirectory. - test ! -d "$ac_dir" && mkdir "$ac_dir" + { case "$ac_dir" in + [\\/]* | ?:[\\/]* ) as_incr_dir=;; + *) as_incr_dir=.;; +esac +as_dummy="$ac_dir" +for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do + case $as_mkdir_dir in + # Skip DOS drivespec + ?:) as_incr_dir=$as_mkdir_dir ;; + *) + as_incr_dir=$as_incr_dir/$as_mkdir_dir + test -d "$as_incr_dir" || mkdir "$as_incr_dir" + ;; + esac +done; } + + fi + rm -f $ac_file + mv $tmp/config.h $ac_file fi - rm -f $ac_file - mv conftest.h $ac_file + else + cat $tmp/config.h + rm -f $tmp/config.h fi -fi; done - +done EOF -cat >> $CONFIG_STATUS <>$CONFIG_STATUS <<\EOF +# +# CONFIG_COMMANDS section. +# +for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue + ac_dest=`echo "$ac_file" | sed 's,:.*,,'` + ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` + + case $ac_dest in + default ) chmod 755 bin/* + echo > stamp-h ;; + esac +done EOF -cat >> $CONFIG_STATUS <<\EOF -chmod 755 bin/* - echo > stamp-h -exit 0 + +cat >>$CONFIG_STATUS <<\EOF + +{ (exit 0); exit 0; } EOF chmod +x $CONFIG_STATUS -rm -fr confdefs* $ac_clean_files -test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 -echo "$ac_t""Remember to check SiteConfig for possible option changes" 1>&6 +ac_clean_files=$ac_clean_files_save + +test "$no_create" = yes || $SHELL $CONFIG_STATUS || { (exit 1); exit 1; } +echo "$as_me:15013: result: Remember to check SiteConfig for possible option changes" >&5 +echo "${ECHO_T}Remember to check SiteConfig for possible option changes" >&6 Index: zmailer/configure.in diff -u zmailer/configure.in:1.101 zmailer/configure.in:1.104 --- zmailer/configure.in:1.101 Fri Feb 16 03:16:40 2001 +++ zmailer/configure.in Fri May 4 14:07:40 2001 @@ -174,6 +174,11 @@ to disable usage of existing zmailer.conf -file to load existing defaults. ], use_zcfg=1) +load_zcfg=1 +AC_ARG_WITH(zconfig-noload, +[ --with-zconfig-noload Don't pre-load old values from possibly existing + ZCONFIG file.], + load_zcfg=0) if test "$use_zcfg" = "0" ; then ZMAILERCFGFILE="${ZMAILERCFGFILE-$ac_default_zmconfig}" use_zcfg=1 @@ -188,7 +193,7 @@ fi AC_MSG_RESULT([Using ZMailer parametrization file path: $ZMAILERCFGFILE]) -if test -r $ZMAILERCFGFILE -a "$use_zcfg" != "0" ; then +if test -r $ZMAILERCFGFILE -a "$load_zcfg" != "0" ; then # Source the previous configuration values for various environment parameters . $ZMAILERCFGFILE AC_MSG_RESULT([ The file exists, we use its values as defaults]) @@ -523,8 +528,8 @@ AC_STRUCT_TM AC_STRUCT_TM_GMTOFF -AC_STRUCT_ST_BLOCKS -AC_STRUCT_ST_BLKSIZE +# AC_STRUCT_ST_BLOCKS +# AC_STRUCT_ST_BLKSIZE AC_MSG_RESULT([Scanning possible database libraries in preferrence order:]) AC_MSG_RESULT([ NDBM, SDBM, GDBM, BSD DB 1.x, SleepyCat DB 2.x]) @@ -1216,9 +1221,11 @@ AC_CACHE_CHECK([existence of char **sys_siglist], ac_cv_arr_sys_siglist, [ AC_TRY_LINK([extern char *sys_siglist[]; static char *s;], [s = sys_siglist[2]; ], - [AC_DEFINE(HAVE_SYS_SIGLIST) - ac_cv_arr_sys_siglist=yes]) + [ac_cv_arr_sys_siglist=yes]) ]) +if test "$ac_cv_arr_sys_siglist" = yes ; then + AC_DEFINE(HAVE_SYS_SIGLIST) +fi # Additional tests for the emulations.. @@ -1391,6 +1398,11 @@ if test "$ac_with_ipv6_replacement_libc" = 1 ; then LIBOBJS="$LIBOBJS inet_ntop.o inet_pton.o getaddrinfo.o getnameinfo.o gai_strerror.o" AC_SUBST(LIBOBJS) + AC_DEFINE(HAVE_GETNAMEINFO) + AC_DEFINE(HAVE_GETADDRINFO) + AC_DEFINE(HAVE__GETADDRINFO_) + AC_DEFINE(HAVE_INET_NTOP) + AC_DEFINE(HAVE_INET_PTON) else t_oldLibs="$LIBS" Index: zmailer/doc/manual/Makefile diff -u zmailer/doc/manual/Makefile:1.28 zmailer/doc/manual/Makefile:1.31 --- zmailer/doc/manual/Makefile:1.28 Wed Feb 14 19:05:27 2001 +++ zmailer/doc/manual/Makefile Tue Apr 3 14:30:03 2001 @@ -2,14 +2,13 @@ # GNU-Makefile for ZMailer manual # -# -# Utilizing DocBook 3.1, Structured Stylesheets, DSSSL, jade-1.2.2(+) +VERSION = "v1.99.23" + # -# All relevant bits are available at for example in redhat 6.2 beta -# as RPM packages (February 2000) +# Utilizing DocBook 3.1, Structured Stylesheets, DSSSL, openjade-1.3 # -# (Well, not all, I have CUSTOMIZED JADE - I break certain ligatures -# at TeX source in a rather ugly manner, should have a better way..) +# All relevant bits are available at for example in redhat 7.1 beta +# as RPM packages (February 2001) # # When your "make pdf" run complains about running out of some resource # in TeX, go and edit file: /usr/share/texmf/web2c/texmf.cnf @@ -17,6 +16,11 @@ # At least: # save_size = 30000 % for saving values outside current group # and: +# % Max number of characters in all strings, including all error messages, +# % help texts, font names, control sequences. These values apply to TeX and MP. +# pool_size.context = 750000 +# pool_size.jadetex = 750000 +# pool_size = 750000 # % Minimum pool space after TeX/MP's own strings; must be at least # % 25000 less than pool_size, but doesn't need to be nearly that large. # string_vacancies.context = 55000 @@ -27,6 +31,9 @@ # max_strings = 35000 # +# We run LOCAL version of Jade Wrapper (jw), which needs PATH with leading dot +PATH := .:${PATH} + PARTS= zmanual.sgml zmanual-cover.sgml \ zadministration.sgml zref-router.sgml \ zapp-filefmts.sgml zref-scheduler.sgml \ @@ -38,14 +45,17 @@ zreference.sgml zref-rmail.sgml \ ztutorial.sgml zappendices.sgml \ zadm-dnsissues.sgml zadm-router.sgml \ - zadm-sm.sgml zadm-logging.sgml \ + zadm-transport-agents.sgml zadm-logging.sgml \ zadm-scheduler.sgml zadm-smtpserver.sgml \ zadm-queues.sgml zadm-security.sgml \ zapp-rfc821.sgml zapp-rfc821.sgml \ zmanual.dsl FIGS := msgmodl.fig msgrout.fig zmailer-logo.fig \ - zmdirs.fig zmprocs.fig + zmdirs.fig zmprocs.fig zmprocs-smtps.fig \ + zmprocs-router.fig zmprocs-scheduler.fig \ + zmprocs-tragents.fig zadm-sch-threads.fig \ + zmsched1.fig .SUFFIXES: .eps .pdf .ps .gif .fig .gif-green .png @@ -58,7 +68,6 @@ TEXINPUTS=$(LATEX2HTMLLIB):$(LINUXDOCLIB):$$TEXINPUTS: TEXENV= TEXINPUTS=$(TEXINPUTS);export TEXINPUTS; - GIFS = $(L2HGIFS) zmailer-logo2.gif all: @@ -79,24 +88,30 @@ $(L2HGIFS): +z-version.txt: ${PARTS} ${FIGS} + echo "${VERSION}.`TZ=UTC date +%Y%m%d%H%M`" > z-version.txt + + +OJCAT = /usr/share/sgml/openjade-1.3/catalog + zmanual.html: gifs $(PARTS) rm -rf zmanual TZ=UTC date > z-datetime.txt echo "HTML" > z-what.txt echo '' > z-gext.txt + make z-version.txt make index-html - DB_STYLESHEET=`/bin/pwd`/zmanual.dsl sh ./db2html zmanual.sgml - #sh ./db2html zmanual.sgml + ./db2html -c ${OJCAT} -d `/bin/pwd`/'zmanual.dsl#html' zmanual.sgml cp -p *.gif zmanual/ cd zmanual; ../html-post-fixup.sh *.html HTML.index: touch genindex.sgm - DB_STYLESHEET=`/bin/pwd`/zmanual.dsl sh ./db2html -html-index zmanual.sgml + ./db2html -c ${OJCAT} -d `/bin/pwd`/'zmanual.dsl#html' -V html-index zmanual.sgml mv zmanual/HTML.index . -index-html index-dvi index-pdf: HTML.index - perl ./collateindex.pl -f -g -i document-index -t Index -o genindex.sgm HTML.index +genindex.sgm index-html index-dvi index-pdf: HTML.index + ./collateindex.pl -d zman-index.html -f -g -i document-index -t Index -o genindex.sgm HTML.index zmanual.ps: zmanual.dvi $(FIGEPS) dvips -ta4 -ozmanual.ps zmanual.dvi @@ -105,15 +120,17 @@ TZ=UTC date > z-datetime.txt echo "PostScript" > z-what.txt echo '' > z-gext.txt + make z-version.txt make index-dvi - STYLESHEET=`/bin/pwd`/zmanual.dsl sh ./db2dvi zmanual.sgml + db2dvi -c ${OJCAT} -d `/bin/pwd`/'zmanual.dsl#print' zmanual.sgml zmanual.pdf: $(PARTS) $(FIGPDF) zmanual.sgml TZ=UTC date > z-datetime.txt echo "PDF" > z-what.txt echo '' > z-gext.txt + make z-version.txt make index-pdf - STYLESHEET=`/bin/pwd`/zmanual.dsl sh ./db2pdf zmanual.sgml + db2pdf -c ${OJCAT} -d `/bin/pwd`/'zmanual.dsl#pdf' zmanual.sgml distclean clean: # Leave "zmanual.ps" in place, if it exists Index: zmailer/doc/manual/collateindex.pl diff -u zmailer/doc/manual/collateindex.pl:1.1 zmailer/doc/manual/collateindex.pl:1.2 --- zmailer/doc/manual/collateindex.pl:1.1 Wed Feb 21 18:20:26 2001 +++ zmailer/doc/manual/collateindex.pl Thu Mar 8 00:31:29 2001 @@ -1,6 +1,7 @@ #! /usr/bin/perl +# -*- Perl -*- # -# $Id: collateindex.pl,v 1.1 2001/02/21 16:20:26 mea Exp $ +# $Id: collateindex.pl,v 1.2 2001/03/07 22:31:29 mea Exp $ use Getopt::Std; @@ -27,10 +28,11 @@ -f Force the output file to be written, even if it appears to have been edited by hand. -N New index (generates an empty index file). + -d file tag filename. file The file containing index data generated by Jade with the DocBook HTML Stylesheet.\n"; -die $usage if ! getopts('Dfgi:NpP:s:o:S:I:t:x'); +die $usage if ! getopts('Dd:fgi:NpP:s:o:S:I:t:x'); $linkpoints = $opt_p; $lettergroups = $opt_g; @@ -45,13 +47,16 @@ $forceoutput = $opt_f; $newindex = $opt_N; $debug = $opt_D; +$DBHTML = ''; +$DBHTML = '' if ($opt_d); + $indextag = $setindex ? 'setindex' : 'index'; if ($newindex) { safe_open(*OUT, $outfile); if ($indexid) { - print OUT "<$indextag ID='$indexid'>\n\n"; + print OUT "<$indextag id='$indexid'>\n\n"; } else { print OUT "<$indextag>\n\n"; } @@ -114,35 +119,74 @@ next; } + if (/^primary[\[ ](.*)$/i) { if (/^primary\[(.*?)\] (.*)$/i) { - $idx->{'psortas'} = $1; - $idx->{'primary'} = $2; + local($a1) = $1; + local($a2) = $2; + if ($a1 =~ m/\$[a-zA-Z]/) { + $idx->{'psortas'} = substr($a1, 1); + } else { + $idx->{'psortas'} = $a1; + } +#printf "PSORTAS[]='%s'\n",$idx->{'psortas'}; + $idx->{'primary'} = $a2; } else { - $idx->{'psortas'} = $1; - $idx->{'primary'} = $1; + local($a1) = $1; + local($a2) = $2; + if ($a1 =~ m/\$[a-zA-Z]/) { + $idx->{'psortas'} = substr($a1, 1); + } else { + $idx->{'psortas'} = $a1; + } +#printf "PSORTAS='%s'\n",$idx->{'psortas'}; + $idx->{'primary'} = $a1; } next; } if (/^secondary[\[ ](.*)$/i) { if (/^secondary\[(.*?)\] (.*)$/i) { - $idx->{'ssortas'} = $1; - $idx->{'secondary'} = $2; + local($a1) = $1; + local($a2) = $2; + if ($a1 =~ m/\$[a-zA-Z]/) { + $idx->{'ssortas'} = substr($a1, 1); + } else { + $idx->{'ssortas'} = $a1; + } + $idx->{'secondary'} = $a2; } else { - $idx->{'ssortas'} = $1; - $idx->{'secondary'} = $1; + local($a1) = $1; + local($a2) = $2; + if ($a1 =~ m/\$[a-zA-Z]/) { + $idx->{'ssortas'} = substr($a1, 1); + } else { + $idx->{'ssortas'} = $a1; + } + $idx->{'secondary'} = $a1; } next; } if (/^tertiary[\[ ](.*)$/i) { if (/^tertiary\[(.*?)\] (.*)$/i) { - $idx->{'tsortas'} = $1; - $idx->{'tertiary'} = $2; + local($a1) = $1; + local($a2) = $2; + if ($a1 =~ m/\$[a-zA-Z]/) { + $idx->{'tsortas'} = substr($a1, 1); + } else { + $idx->{'tsortas'} = $a1; + } + $idx->{'tertiary'} = $a2; } else { - $idx->{'tsortas'} = $1; - $idx->{'tertiary'} = $1; + local($a1) = $1; + local($a2) = $2; + if ($a1 =~ m/\$[a-zA-Z]/) { + $idx->{'tsortas'} = substr($a1, 1); + } else { + $idx->{'tsortas'} = $a1; + } + $idx->{'tertiary'} = $a1; } next; } @@ -224,7 +268,7 @@ # Write the index... if ($indexid) { - print OUT "<$indextag ID='$indexid'>\n\n"; + print OUT "<$indextag id='$indexid'>$DBHTML\n\n"; } else { print OUT "<$indextag>\n\n"; } @@ -442,7 +486,7 @@ print OUT "\n \n"; $lastout = ""; } - print OUT $indent, "", $idx->{'see'}, "\n"; + print OUT $indent, "", &escape($idx->{'see'}), "\n"; return; } @@ -452,7 +496,7 @@ print OUT "\n \n"; $lastout = ""; } - print OUT $indent, "", $idx->{'seealso'}, "\n"; + print OUT $indent, "", &escape($idx->{'seealso'}), "\n"; return; } @@ -480,17 +524,13 @@ $linkend = $key; } - $role = $linkend; + $role = $phref{$key}; $role = $1 if $role =~ /\#(.*)$/; - if ($role =~ m!(.+)\.html!) { - $role = uc($1); - } - print OUT $indent; print OUT ""; print OUT "" if ($idx->{'significance'} eq 'PREFERRED'); - print OUT $href{$key}; + print OUT &escape($href{$key}); print OUT "" if ($idx->{'significance'} eq 'PREFERRED'); print OUT ""; } @@ -598,3 +638,14 @@ } } } + +sub escape { + # make sure & and < don't show up in the index + local $_ = shift; + s/&/&/sg; + s//>/sg; # what the heck + + return $_; +} + Index: zmailer/doc/manual/db2dvi diff -u zmailer/doc/manual/db2dvi:1.1 zmailer/doc/manual/db2dvi:removed --- zmailer/doc/manual/db2dvi:1.1 Fri Feb 16 17:58:48 2001 +++ zmailer/doc/manual/db2dvi Tue May 8 16:00:09 2001 @@ -1,40 +0,0 @@ -#! /bin/sh - -: ${STYLESHEET:=/usr/lib/sgml/stylesheets/cygnus-both.dsl} -: ${ADMON_GRAPHICS:=/usr/lib/sgml/stylesheets/nwalsh-modular/images/*.gif} - -if [ $# -gt 2 ] -then - echo "Usage: `basename $0` [filename.sgml]" >&2 - exit 1 -fi - -if [ $# -eq 1 ] -then - if [ ! -r $1 ] - then - echo Cannot read \"$1\". Exiting. >&2 - exit 1 - fi - if echo $1 | egrep -i '\.sgml$|\.sgm$' >/dev/null 2>&1 - then - output="`echo $1 | sed 's,\.sgml$,.dvi,;s,\.sgm$,.dvi,'`" - fi -fi - -echo OUTPUT FILE NAME IS $output - -TMPFN=`echo $1 | sed 's/\.sgml//'` - -jade -t tex -d ${STYLESHEET}\#print -o ${TMPFN}.tex $1 - -jadetex ${TMPFN}.tex - -# if there are unresolved references, re-run jadetex, twice -if egrep '^LaTeX Warning: There were undefined references.$' ${TMPFN}.log >/dev/null 2>&1 -then - jadetex ${TMPFN}.tex - jadetex ${TMPFN}.tex -fi - -exit 0 Index: zmailer/doc/manual/db2html diff -u zmailer/doc/manual/db2html:1.1 zmailer/doc/manual/db2html:1.3 --- zmailer/doc/manual/db2html:1.1 Fri Feb 16 17:58:48 2001 +++ zmailer/doc/manual/db2html Tue Apr 3 14:30:03 2001 @@ -1,80 +1,29 @@ #! /bin/sh - -: ${DB_STYLESHEET:=/usr/lib/sgml/stylesheets/cygnus-both.dsl} -: ${HTML_STYLESHEET:=/usr/lib/sgml/stylesheets/nwalsh-modular/test/docbook.css} -: ${ADMON_GRAPHICS:=/usr/lib/sgml/stylesheets/nwalsh-modular/images/*.gif} - -output=db2html-dir -TMPDIR=DBTOHTML_OUTPUT_DIR$$ - -echo TMPDIR is $TMPDIR - -if [ "$1" = '-html-index' ]; then - HTMLINDEX="-V html-index" - shift -fi - -if [ $# -gt 2 ] -then - echo "Usage: `basename $0` [filename.sgml]" >&2 - exit 1 -fi - -if [ $# -eq 1 ] -then - if [ ! -r $1 ] - then - echo Cannot read \"$1\". Exiting. >&2 - exit 1 - fi - if echo $1 | egrep -i '\.sgml$|\.sgm$' >/dev/null 2>&1 +output=docbook2html-dir +skip=0 +for arg in $* +do + if [ $skip -gt 0 ] then - # now make sure that the output directory is always a subdirectory - # of hte current directory - echo - input_file=`basename $1` - output="`echo $input_file | sed 's,\.sgml$,,;s,\.sgm$,,'`" - echo "input file was called $input_file -- output will be in $output" - echo + skip=$(($skip - 1)) + continue fi -fi - -# we used to generate a single file, but with the modular DB_STYLESHEETs -# it's best to make a new directory with several html files in it -#cat $* | jade -d $DB_STYLESHEET -t sgml -V nochunks > $TMPFN - -mkdir $TMPDIR -SAVE_PWD=`pwd` -if [ $1 = `basename $1` ]; then - echo "working on ../$1" - (cd $TMPDIR; - jade -t sgml -ihtml -d ${DB_STYLESHEET}\#html $HTMLINDEX ../$1) -else - echo "working on $1" - (cd $TMPDIR; - jade -t sgml -ihtml -d ${DB_STYLESHEET}\#html $HTMLINDEX $1) -fi - -if [ $# -eq 1 ] + case $arg in + -h|--help|-v|--version) break + ;; + -n|--nostd|-u|--nochunks) ;; + -*) skip=1 + ;; + *) output="$(echo $arg | sed 's,\.sgml$,,;s,\.sgm$,,')" + echo "output is $output" + break + ;; + esac +done +if [ -d ${output} ] then - if [ -d ${output}.junk ] - then - /bin/rm -rf ${output}.junk - fi - if [ -d ${output} ] - then - mv $output ${output}.junk - fi - echo "about to copy cascading stylesheet and admon graphics to temp dir" - cp ${HTML_STYLESHEET} ${TMPDIR}/ - mkdir ${TMPDIR}/stylesheet-images - cp ${ADMON_GRAPHICS} ${TMPDIR}/stylesheet-images - echo "about to rename temporary directory to $output" - mv ${TMPDIR} $output -else - cat $TMPDIR/* + rm -rf ${output}.junk + mv ${output} ${output}.junk fi - -rm -rf $TMPDIR - -exit 0 +mkdir ${output} +jw -f docbook -b html -o ${output} "$@" Index: zmailer/doc/manual/db2pdf diff -u zmailer/doc/manual/db2pdf:1.1 zmailer/doc/manual/db2pdf:removed --- zmailer/doc/manual/db2pdf:1.1 Fri Feb 16 17:58:48 2001 +++ zmailer/doc/manual/db2pdf Tue May 8 16:00:09 2001 @@ -1,53 +0,0 @@ -#! /bin/sh - -: ${STYLESHEET:=/usr/lib/sgml/stylesheets/cygnus-both.dsl} - -TMPFN=`echo $1 | sed 's/\.sgml//'` - -if [ "$1" = '-html-index' ]; then - HTMLINDEX="-V html-index" - shift -fi - -if [ $# -gt 2 ] -then - echo "Usage: `basename $0` [filename.sgml]" >&2 - exit 1 -fi - -if [ $# -eq 1 ] -then - if [ ! -r $1 ] - then - echo Cannot read \"$1\". Exiting. >&2 - exit 1 - fi - if echo $1 | egrep -i '\.sgml$|\.sgm$' >/dev/null 2>&1 - then - output="`echo $1 | sed 's,\.sgml$,.pdf,;s,\.sgm$,.pdf,'`" - fi -fi - -OFILE="-o ${TMPFN}.tex" -if [ -n "$HTMLINDEX" ] ; then - OFILE="" -fi - -jade -t tex -d "${STYLESHEET}#pdf" $OFILE $HTMLFILE $1 - -pdfjadetex $TMPFN - -if egrep '^LaTeX Warning: There were undefined references.$' ${TMPFN}.log >/dev/null 2>&1 -then - pdfjadetex $TMPFN - pdfjadetex $TMPFN -fi - - -#if [ -f ${TMPFN}.cfg ] -#then -# mv ${TMPFN}.cfg jade.cfg -#fi - -exit 0 - Index: zmailer/doc/manual/db2ps diff -u zmailer/doc/manual/db2ps:1.1 zmailer/doc/manual/db2ps:removed --- zmailer/doc/manual/db2ps:1.1 Fri Feb 16 17:58:48 2001 +++ zmailer/doc/manual/db2ps Tue May 8 16:00:09 2001 @@ -1,68 +0,0 @@ -#! /bin/sh - -TMPFN=db2pstmp$$ - -if [ $# -gt 2 ] -then - echo "Usage: `basename $0` [filename.sgml]" >&2 - exit 1 -fi - -output="`echo $1 | sed 's,\.sgml$,.ps,;s,\.sgm$,.ps,'`" -outdvi="`echo $1 | sed 's,\.sgml$,.dvi,;s,\.sgm$,.dvi,'`" -db2dvi $1 -dvips $outdvi -o $output - -exit 0 - -if [ $# -eq 1 ] -then - if [ ! -r $1 ] - then - echo Cannot read \"$1\". Exiting. >&2 - exit 1 - fi - if echo $1 | egrep -i '\.sgml$|\.sgm$' >/dev/null 2>&1 - then - output="`echo $1 | sed 's,\.sgml$,.ps,;s,\.sgm$,.ps,'`" - outdvi="`echo $1 | sed 's,\.sgml$,.dvi,;s,\.sgm$,.dvi,'`" - # if we have a filename argument let us improve the - # temporary filename, sine gv and ghostview will display it. - # this TMPFN has $1 embedded in it - TMPFN=`echo $1 | sed 's/\.sgml//'`_db2pstmp$$ - fi -fi - -#rm -f ${TMPFN}.dvi -#cat $* | db2dvi > ${TMPFN}.dvi - -db2dvi $1 - -if [ ! -f ${TMPFN}.dvi ] -then - exit 1 -fi - - -# dvips ${TMPFN}.dvi - -dvips $outdvi -o $output - -if [ -f ${TMPFN}.ps ] -then - if [ $# -eq 1 ] - then - if [ -n "$output" ] - then - mv ${TMPFN}.ps $output - else - mv ${TMPFN}.ps db2ps.ps - fi - else - cat ${TMPFN}.ps - fi -fi - -rm -f ${TMPFN}* - -exit 0 Index: zmailer/doc/manual/db2rtf diff -u zmailer/doc/manual/db2rtf:1.1 zmailer/doc/manual/db2rtf:removed --- zmailer/doc/manual/db2rtf:1.1 Fri Feb 16 17:58:48 2001 +++ zmailer/doc/manual/db2rtf Tue May 8 16:00:09 2001 @@ -1,44 +0,0 @@ -#! /bin/sh - -#STYLESHEET=/usr/lib/sgml/stylesheets/docbook/print/docbook.dsl -${STYLESHEET:=/usr/lib/sgml/stylesheets/cygnus-both.dsl} -${ADMON_GRAPHICS:=/usr/lib/sgml/stylesheets/nwalsh-modular/images/*.gif} - -output=db2rtf.rtf -#TMPFN=db2rtf$$.rtf - -# setting SGML_CATALOG_FILES should be done in the Makefile at build time -# of jade but I set it here anyway in case someone forgets. - -if [ $# -gt 2 ] -then - echo "Usage: `basename $0` [filename.sgml]" >&2 - exit 1 -fi - -if [ $# -eq 1 ] -then - if [ ! -r $1 ] - then - echo Cannot read \"$1\". Exiting. >&2 - exit 1 - fi - if echo $1 | egrep -i '\.sgml$|\.sgm$' >/dev/null 2>&1 - then - output="`echo $1 | sed 's,\.sgml$,.rtf,;s,\.sgm$,.rtf,'`" - fi -fi - -### echo "about to copy admon graphics to this dir" -### cp ${ADMON_GRAPHICS} . - -cat $* | jade -t rtf -d ${STYLESHEET}\#print - -if [ $# -eq 1 ] -then - mv jade-out.rtf $output -else - cat jade-out.rtf -fi - -exit 0 Index: zmailer/doc/manual/dbskel.tar.gz Index: zmailer/doc/manual/isoents.tex diff -u zmailer/doc/manual/isoents.tex:1.1 zmailer/doc/manual/isoents.tex:removed --- zmailer/doc/manual/isoents.tex:1.1 Fri Feb 16 17:58:48 2001 +++ zmailer/doc/manual/isoents.tex Tue May 8 16:00:09 2001 @@ -1,12 +0,0 @@ -%% -%% This is file `isoents.tex', -%% Manually created after the model of JadeTeX isoents.tex to define -%% a few of my own magic entities. -%% -\expandafter\def\csname Entdd\endcsname{{\char45{}\char45}}% -\expandafter\def\csname Entddash\endcsname{{\char45{}\char45}}% -\expandafter\def\csname EntPGBREAK\endcsname{{\pagebreak}}% -\input /usr/share/texmf/tex/jadetex/isoents.tex -\endinput -%% -%% End of file `isoents.tex'. Index: zmailer/doc/manual/jadetex.cfg diff -u /dev/null zmailer/doc/manual/jadetex.cfg:1.1 --- /dev/null Tue May 8 16:00:09 2001 +++ zmailer/doc/manual/jadetex.cfg Thu Mar 8 00:31:29 2001 @@ -0,0 +1,10 @@ +%% +%% This is file `uentities.sty', +%% Manually created after the model of JadeTeX-3.3-1 uentities.sty to define +%% a few of my own magic entities. +%% +\expandafter\def\csname Entdd\endcsname{{\char45{}\char45}}% +\expandafter\def\csname Entddash\endcsname{{\char45{}\char45}}% +\expandafter\def\csname EntPGBREAK\endcsname{{\pagebreak}}% +%% +%% End of file `uentities.sty'. Index: zmailer/doc/manual/jw diff -u /dev/null zmailer/doc/manual/jw:1.2 --- /dev/null Tue May 8 16:00:09 2001 +++ zmailer/doc/manual/jw Tue Apr 3 14:30:03 2001 @@ -0,0 +1,322 @@ +#! /bin/sh +# Jade Wrapper +# Script to convert a SGML file into some other format +# Send any comments to Eric Bischoff +# This program is under GPL license. See LICENSE file for details. + +# Set help message +SGML_HELP_MESSAGE="Usage: `basename $0` [] \n\ +where are:\n\ +\040 -f|--frontend : \t Specify the frontend (source format)\n\ +\040 \t\t\t\t (default is docbook)\n\ +\040 -b|--backend : \t Specify the backend (destination format)\n\ +\040 \t\t\t\t (default is html)\n\ +\040 -c|--cat : \t\t Specify an extra SGML open catalog\n\ +\040 -n|--nostd: \t\t\t Do not use the standard SGML open catalogs\n\ +\040 -d|--dsl |default|none:\t Specify an alternate style sheet\n\ +\040 \t\t\t\t (default is to use the default stylesheet)\n\ +\040 -s|--sgmlbase : \t Change base directory for SGML distribution\n\ +\040 \t\t\t\t (usually /usr/share/sgml)\n\ +\040 -p|--parser : \t Specify the parser if several are installed\n\ +\040 \t\t\t\t (jade or openjade)\n\ +\040 -o|--output : \t Set output directory\n\ +\040 -u|--nochunks: \t\t Output only one big file\n\ +\040 \t\t\t\t (overrides the stylesheet settings)\n\ +\040 -i|--include
: \t Specify a SGML marked section to include\n\ +\040 \t\t\t\t (should be marked as \"ignore\" in the SGML text)\n\ +\040 -h|--help: \t\t\t Print this help message and exit\n\ +\040 -V : \t Set a variable\n\ +\040 -v|--version: \t\t Print the version and exit" + +# Get name of main SGML configuration file +which sgmlwhich >/dev/null 2>/dev/null +if [ $? -eq 0 ] +then + SGML_CONF=`sgmlwhich` +else + SGML_CONF="/etc/sgml/sgml.conf" +fi + +# Set version message +SGML_VERSION_MESSAGE="DocBook-utils version 0.6 (jw version 1.1)" + +# Set frontend to use +SGML_FRONTEND="docbook" + +# Set backend to use +SGML_BACKEND="html" + +# Set option: use standard catalogs +SGML_STANDARD_CATALOGS="yes" + +# Set path to user SGML catalogs +SGML_EXTRA_CATALOGS="" + +# Set SGML base directory and centralized catalogs directory +SGML_BASE_DIR="/usr/share/sgml" +SGML_CATALOGS_DIR="/etc/sgml" +if [ -f "$SGML_CONF" ] +then + RE='^[:space:]*SGML_BASE_DIR[:space:]*=[:space:]*' + SGML_BASE_DIR=`grep $RE $SGML_CONF | sed "s/$RE//"` + RE='^[:space:]*SGML_CATALOGS_DIR[:space:]*=[:space:]*' + SGML_CATALOGS_DIR=`grep $RE $SGML_CONF | sed "s/$RE//"` +fi + +# Set main stylesheet +SGML_STYLESHEET="default" + +# Set flavour of jade parser to use +SGML_JADE="" + +# Set SGML declaration and file to process +SGML_DECL="" +SGML_FILE="" + +# Set output and current directories +SGML_OUTPUT_DIRECTORY="." +SGML_CURRENT_DIRECTORY=`pwd` + +# Set option: do not output many chunks +SGML_OPTIONS="" + +# Set list of "include" marked sections +SGML_INCLUDE="" + +# Process options +while [ $# -gt 0 ] +do case $1 in + -f|--frontend) SGML_FRONTEND=$2 + shift 2 + ;; + -b|--backend) SGML_BACKEND=$2 + shift 2 + ;; + -c|--cat) SGML_EXTRA_CATALOGS=$SGML_EXTRA_CATALOGS:$2 + shift 2 + ;; + -d|--dsl) SGML_STYLESHEET=$2 + shift 2 + ;; + -l|--dcl) SGML_DECL=$2 + shift 2 + ;; + -n|--nostd) SGML_STANDARD_CATALOGS="no" + shift 1 + ;; + -s|--sgmlbase) SGML_BASE_DIR=$2 + shift 2 + ;; + -p|--parser) SGML_JADE=$2 + shift 2 + ;; + -o|--output) SGML_OUTPUT_DIRECTORY=$2 + shift 2 + ;; + -u|--nochunks) SGML_OPTIONS="$SGML_OPTIONS -V nochunks" + shift 1 + ;; + -V) SGML_OPTIONS="$SGML_OPTIONS -V $2" + shift 2 + ;; + -i|--include) case $2 in + print|html) echo "The marked section named \"$2\" is reserved for internal use by `basename $0`." + exit 1 + ;; + esac + SGML_INCLUDE="$SGML_INCLUDE -i $2" + shift 2 + ;; + -h|--help) echo -e "`basename $0` - Jade Wrapper\n" + echo -e $SGML_HELP_MESSAGE + exit 0 + ;; + -v|--version) echo -e $SGML_VERSION_MESSAGE + exit 0 + ;; + -*) echo -e $SGML_HELP_MESSAGE >&2 + exit 1 + ;; + *) if [ -z "$SGML_FILE" ] + then + SGML_FILE=$1 + shift 1 + else + echo -e $SGML_HELP_MESSAGE >&2 + exit 1 + fi + ;; + esac +done + +# Check that we have a frontend +if [ -z "$SGML_FRONTEND" ] +then + echo -e $SGML_HELP_MESSAGE >&2 + exit 1 +fi +if [ -n "${SGML_FRONTEND%%/*}" ] +then + SGML_FRONTEND=$SGML_BASE_DIR/docbook/utils-0.6/frontends/$SGML_FRONTEND +fi +if [ ! -s $SGML_FRONTEND ] +then + echo "`basename $0`: There is no frontend called \"$SGML_FRONTEND\"." >&2 + exit 2 +fi + +# Check that we have a backend +if [ -z "$SGML_BACKEND" ] +then + echo -e $SGML_HELP_MESSAGE >&2 + exit 1 +fi +if [ -n "${SGML_BACKEND%%/*}" ] +then + SGML_BACKEND=$SGML_BASE_DIR/docbook/utils-0.6/backends/$SGML_BACKEND +fi +if [ ! -s $SGML_BACKEND ] +then + echo "`basename $0`: There is no backend called \"$SGML_BACKEND\"." >&2 + exit 2 +fi + +# Check that we have a file to process +if [ -z "$SGML_FILE" ] +then + echo -e $SGML_HELP_MESSAGE >&2 + exit 1 +fi +case $SGML_FILE in + /*) ;; + *) SGML_FILE=`pwd`/$SGML_FILE + ;; +esac +if [ ! -s $SGML_FILE ] +then + echo "`basename $0`: Cannot open \"$SGML_FILE\"." >&2 + exit 3 +fi + +# Separate the file name and the extension (if any) +SGML_FILE_NAME=`basename $SGML_FILE` +SGML_FILE_NAME=${SGML_FILE_NAME%.*} + +# Determine if we are in an XML file +SGML_XML=`(grep "" $SGML_FILE; echo "sgml") | head -n 1 | sed 's/^.*xml.*$/xml/'` + +# Use SGML declaration for XML if needed +if [ "$SGML_DECL" = "" -a "$SGML_XML" = "xml" ] +then SGML_DECL=${SGML_BASE_DIR}/xml.dcl +fi + +# Set path to SGML catalogs (first try centralized catalog) +case $SGML_STANDARD_CATALOGS in + yes) export SGML_CATALOGS_DIR SGML_FILE SGML_XML + SGML_CENTRALIZED_CATALOG=`sh $SGML_FRONTEND centralized-catalog` + if [ -s $SGML_CENTRALIZED_CATALOG ] + then + SGML_CATALOG_FILES=$SGML_CENTRALIZED_CATALOG + else + SGML_CATALOG_FILES=`find $SGML_BASE_DIR -name catalog` + SGML_CATALOG_FILES=`echo "$SGML_CATALOG_FILES" | tr [:space:] :` + fi + ;; + no) SGML_CATALOG_FILES="" + ;; +esac +SGML_CATALOG_FILES=${SGML_CATALOG_FILES}${SGML_EXTRA_CATALOGS} +SGML_CATALOG_FILES=`echo "$SGML_CATALOG_FILES" | sed 's/^://;s/:$//'` +if [ -z "$SGML_CATALOG_FILES" ] +then + echo "`basename $0`: Please specify at least one catalog" >&2 + exit 4 +fi + +# Determine the backend type +case $SGML_BACKEND in + *html) \ + SGML_TYPE=html + ;; + *) SGML_TYPE=print + ;; +esac + +# Determine which stylesheet to use +# (run the frontend to know it if the default stylesheet or no custom stylesheet is desired) +if [ "$SGML_STYLESHEET" = "default" -o "$SGML_STYLESHEET" = "none" ] +then + export SGML_BASE_DIR SGML_TYPE SGML_STYLESHEET + SGML_STYLESHEET=`sh $SGML_FRONTEND style-sheet` + SGML_RETURN=$? + if [ $SGML_RETURN -gt 0 ] + then exit `expr 7 + $SGML_RETURN` + fi +fi +if [ -z "$SGML_STYLESHEET" ] +then + echo "`basename $0`: Please specify at least one stylesheet" >&2 + exit 5 +fi + +# Choose a parser +if [ -z "$SGML_JADE" ] +then + which jade >/dev/null 2>/dev/null + if [ $? -eq 0 ] + then + SGML_JADE="jade" + else + which openjade >/dev/null 2>/dev/null + if [ $? -eq 0 ] + then + SGML_JADE="openjade" + else + echo "`basename $0`: No parser available" >&2 + exit 6 + fi + fi +else + which $SGML_JADE >/dev/null 2>/dev/null + if [ $? -ne 0 ] + then + echo "`basename $0`: parser $SGML_JADE is not available" >&2 + exit 6 + fi +fi + +# Create output directory if not available +if [ -z "$SGML_OUTPUT_DIRECTORY" ] +then + echo -e $SGML_HELP_MESSAGE >&2 + exit 1 +fi +if [ ! -d $SGML_OUTPUT_DIRECTORY ] +then + mkdir $SGML_OUTPUT_DIRECTORY 2>/dev/null + if [ $? -ne 0 ] + then + echo "`basename $0`: Could not create \"$SGML_OUTPUT_DIRECTORY\" output directory" >&2 + exit 7 + fi +fi + +# Prepare the parser's arguments +SGML_ARGUMENTS="$SGML_INCLUDE -i $SGML_TYPE -d $SGML_STYLESHEET $SGML_OPTIONS $SGML_DECL $SGML_FILE" + +# Call the backend +echo "Using catalogs: `echo $SGML_CATALOG_FILES | sed 's/:/, /g'`" +echo "Using stylesheet: $SGML_STYLESHEET" +echo "Working on: $SGML_FILE" +cd $SGML_OUTPUT_DIRECTORY +export SGML_JADE SGML_FILE_NAME SGML_ARGUMENTS +export SGML_CATALOG_FILES SGML_BASE_DIR SGML_FILE SGML_STYLESHEET +sh -x $SGML_BACKEND +SGML_RETURN=$? +cd $SGML_CURRENT_DIRECTORY + +if [ $SGML_RETURN -gt 0 ] +then exit `expr 7 + $SGML_RETURN` +fi +echo "Done." +exit 0 Index: zmailer/doc/manual/zadm-logging.sgml diff -u zmailer/doc/manual/zadm-logging.sgml:1.7 zmailer/doc/manual/zadm-logging.sgml:1.10 --- zmailer/doc/manual/zadm-logging.sgml:1.7 Wed Feb 21 18:20:26 2001 +++ zmailer/doc/manual/zadm-logging.sgml Tue Apr 3 14:30:03 2001 @@ -1,325 +1,16 @@ -Logging and Statistics +Logging and Statistics for Administrator - -This text has been copied from other sections and will change... - - - - - - - -<COMMAND>Scheduler</> Statistics Log</> - -<PARA> -The statistics log reports condenced performance oriented -information in following format: -<INFORMALTABLE ROWSEP=0 COLSEP=0> -<TGROUP COLS=6> -<COLSPEC ALIGN=LEFT> -<COLSPEC ALIGN=LEFT> -<COLSPEC ALIGN=CENTER> -<COLSPEC ALIGN=CENTER> -<COLSPEC ALIGN=LEFT> -<COLSPEC ALIGN=LEFT> -<THEAD> -<ROW ROWSEP=1> - <ENTRY ALIGN=LEFT>timestamp</> - <ENTRY ALIGN=LEFT>fileid</> - <ENTRY ALIGN=CENTER>dt1</> - <ENTRY ALIGN=CENTER>dt2</> - <ENTRY ALIGN=LEFT>state</> - <ENTRY ALIGN=LEFT>$channel/$host</> -</ROW> -</THEAD> -<TBODY> -<ROW> - <ENTRY>812876190</> - <ENTRY>90401-2</> - <ENTRY>0</> - <ENTRY>5</> - <ENTRY>ok</> - <ENTRY>usenet/-</> -</ROW> -<ROW> - <ENTRY>812876228</> - <ENTRY>90401-1</> - <ENTRY>0</> - <ENTRY>7</> - <ENTRY>ok</> - <ENTRY>usenet/-</> -</ROW> -<ROW> - <ENTRY>812876244</> - <ENTRY>90401-1</> - <ENTRY>0</> - <ENTRY>1</> - <ENTRY>ok</> - <ENTRY>local/gopher-admin</> -</ROW> -<ROW> - <ENTRY>812876244</> - <ENTRY>90401-1</> - <ENTRY>0</> - <ENTRY>5</> - <ENTRY>ok</> - <ENTRY>smtp/funet.fi</> -</ROW> -<ROW> - <ENTRY>812876559</> - <ENTRY>90401-1</> - <ENTRY>0</> - <ENTRY>21</> - <ENTRY>ok</> - <ENTRY>smtp/utu.fi</> -</ROW> -</TBODY> -</TGROUP> -</INFORMALTABLE> -where the fields are: - -<VARIABLELIST> -<VARLISTENTRY><TERM><OPTION>timestamp</></><LISTITEM><PARA> -The original spoolfile <EMPHASIS>ctime</> (creation time) stamp in decimal. -</PARA></LISTITEM></VARLISTENTRY> - -<VARLISTENTRY><TERM><OPTION>fileid</></><LISTITEM><PARA> -Spoolfile name after the router has processed it. -</PARA></LISTITEM></VARLISTENTRY> - -<VARLISTENTRY><TERM><OPTION>dt1</></><LISTITEM><PARA> -The time difference from spoolfile ctime to -scheduler control file creation by the router. -</PARA></LISTITEM></VARLISTENTRY> - -<VARLISTENTRY><TERM><OPTION>dt2</></><LISTITEM><PARA> -The time difference from scheduler file <EMPHASIS>ctime</> to -the delivery that is logged on. -</PARA></LISTITEM></VARLISTENTRY> - -<VARLISTENTRY><TERM><OPTION>state</></><LISTITEM><PARA> -What happened? Values: ok, ok2, ok3, error, error2, expiry -</PARA></LISTITEM></VARLISTENTRY> - -<VARLISTENTRY><TERM><OPTION>$channel/$host</></><LISTITEM><PARA> -Where/how it was processed. -</PARA></LISTITEM></VARLISTENTRY> -</VARIABLELIST> -</PARA> - -</SECT1> - -<SECT1 ID=zadm-logging-syslogged-log-formats> -<TITLE>Syslogged Log Formats</> - -<PARA> -At <EMPHASIS>syslog</> facility the system logs also material, -if it has so been configured. -</PARA> - -<PARA> -Different subsystems do different logs, they are described below. -</PARA> - -<SECT2 ID=zadm-logging-syslog-from-smtpserver> -<TITLE><COMMAND>Smtpserver</>'s Syslog Format - - -The smtpserver may log in multiple formats: - - -INFO: connection from ... -WARN: refusing connection from ... -INFO: accepted id ... into freeze.. -INFO: TASPID accepted from... - -where TASPID: A spool-id that is valid throughout message lifetime -in the system, and should be long-term unique, even. (Per system.) - - - -EMERG: smtpserver policy database problem... -ERR: MAILBIN unspecified in zmailer.conf - - - - - - - - -<COMMAND>Router</>'s Syslog Format - - -The router does syslog() in following format: - - - -taspid: from=<addr>, rrelay=smtprelay, size=nnn, nrcpts=nnn, msgid=str - - - -Where: - - - - - - - - - - - - - - - - - - -Transport Agent's Syslog Format - - -The transport agents log in following format: - - - -taspid: to=<addr>, delay=dd, xdelay=xx, mailer=mm, relay=rr (wtt), stat=%s msg - - - -Here the fields are: - - - - - - - - - - - - - - - -msg -Arbitrary text line from whatever system is out there. - - - - - Index: zmailer/doc/manual/zadm-queues.sgml diff -u zmailer/doc/manual/zadm-queues.sgml:1.7 zmailer/doc/manual/zadm-queues.sgml:1.8 --- zmailer/doc/manual/zadm-queues.sgml:1.7 Wed Feb 21 18:20:26 2001 +++ zmailer/doc/manual/zadm-queues.sgml Sat Feb 24 00:11:56 2001 @@ -51,6 +51,8 @@ +&PGBREAK; + There are multiple queues in ZMailer. Messages exist in in one of five locations: @@ -78,8 +80,10 @@ $POSTOFFICE/queue/) + -and sometimes is also copied into the + +And sometimes is also copied into the: Postmaster analysis area @@ -136,8 +140,8 @@ FIXME: This description is from era before the router got ``daemonized'' in a sense of having separate instance - of queue processor (and it also handles logging/log rotation) - and a worker-farm of routing work processes. + of queue processor (and it also handles logging/log + rotation) and a worker-farm of routing work processes. @@ -302,8 +306,15 @@ directory! + +Usually forementioned underscoreless filenames are double-errors, +that is, error messages to error messages. There is nowhere else +to send them. + + -Usually forementioned underscoreless filenames +The indication of error message is, of course, +MAIL FROM:<> per RFC 821. Index: zmailer/doc/manual/zadm-router.sgml diff -u zmailer/doc/manual/zadm-router.sgml:1.9 zmailer/doc/manual/zadm-router.sgml:1.11 --- zmailer/doc/manual/zadm-router.sgml:1.9 Wed Feb 21 18:20:26 2001 +++ zmailer/doc/manual/zadm-router.sgml Mon Feb 26 19:42:00 2001 @@ -1,7 +1,54 @@ -<COMMAND>Router</> Configuration +<COMMAND>Router</> Administration +The router is the part of the ZMailer that uses algorithms, +and control databases to determine what latter stages, like +scheduler should do to the message. + + + +The repeats earlier picture +showing central components of the system, and where the router +is in relation to to all. + + + +
+ ZMailer's processes; Router + + + + + +
+ + +In following our intention is to cover topics of: + +What input data router uses +What output it produces +How the router is configured, including of +what is 'dbases.conf' file. +How it can be tuned + + + + + +FIXME: + - Intro to what the router does to the message + - How the configuration scripts are loaded + - How the standard scripts are tunable by means of databases, + specifically 'dbases.conf' + - The ROUGHT logic of the standard scripts + - What to do if one wants to tune ? + + + + + + The names (determined at compile-time) and interface specifications for the routing and crossbar functions, are the only crucial ``magical'' things one needs to contend with in a proper router configuration. @@ -22,6 +69,11 @@ script at first glance. There are minor syntax changes from standard sh(1), but the aim is to be as close to the Bourne Shell language as is practical. +In fact some aspects of variable handling are more of PERL style, +and others are even LISPish. + + + The contents of the file are compiled into bytecode, which can then be interpreted by the router. The configuration file is usually self-contained, although an easy @@ -70,7 +122,7 @@ Functions are allowed, parameter lists are allowed. If not enough arguments are present in a function call to exhaust the parameter -list, the so-far unbound parameter variables are bound to '' +list, the so-far unbound parameter variables are bound to ``'' (the empty string) as local variables. For example, this is the identity address rewriting function: @@ -100,8 +152,8 @@ Variables are dynamically scoped, local variables are the ones in a function's parameter list and those declared with the ``local'' statement. Only the first value of a multiple-value return may be assigned to a variable. -All values are strings, so no type information, checking, or declaration, is -necessary. +All values are either strings, or lists, so no type information, checking, +or declaration, is necessary. @@ -132,12 +184,73 @@ -FIXME! FIXME! -IFS, quoted strings, and evaluation results -- and how things differ -from usual shell languages, and how they are alike with PERL! - +In standard shells the IFS guides on how variable expansion +results are to be treated. Namely in cases where the expansion happens +without being enclosed into double-quotes, the expansion result is at first +split with IFS contained characters forming the separation sequences. + + + +ZMailer's ``shell'' behaves alike PERL in this regard, and will not do +IFS interpolation on the result. However, unlike with PERL, +double-quoted evaluation will not have its contents re-evaluated. + + + +Thus it is equally safe to do assignments like: + + + + +The notable thing at this particular example is that +both result variables are catenates +of the input strings. + + +However! If either of inputs is a list of any kind, then the catenate +is not to be done this way! See lappend. + + +Due to lack of implicite split by the IFS characters, +ZMailer ``shell'' contains function ifssplit. + + + + +The for construct is even more strange, and classical +Bourne script: + + + + + +Yields only nasty surprise. + + +Here are two alternates on how to do it: + + + + + + + Conditional substitution forms are supported: -Patterns (in case labels) are evaluated once, +Patterns (in case labels) are parsed once, the first time they are encountered. + + +This is like with PERL's ``m/../o'' patterns. @@ -194,7 +310,7 @@ -Overall usage of these ``sifts'' is very much like that of +Overall usage of these ``sifts'' is very much like that of ``case'', including the need for matching termination tokens: The general form of function calls in the system is: + + + + It returns a scalar or list object, and the result can be stored into variables at will. @@ -340,10 +460,6 @@ Non-critical but recommended functions: -getzenv -retrieves global ZMailer configuration values - - echo emulates /bin/echo @@ -353,7 +469,7 @@ hostname -internal function to get and set the system name +internal function to get and set the local idea about the system name trace @@ -430,31 +546,6 @@ -However careless usage of ``$var'' is -dangerous, as you may trip on following: - - - - -In this kind of places you must tread carefully, and use double-quotes -to save your neck: - - - - - - - To test the configuration or routing data, proceed as shown in figure . @@ -502,6 +593,16 @@ Databases + +FIXME: + - Intro + - How 'dbases.conf' file works + - How the databases are defined in the deep down inside ('relation' function) + - How lookup works + + + + Many of the decisions and actions taken by configuration file code depend on the specifics of the environment the MTA finds itself in. So, not just the facts that the local host is attached to (say) @@ -588,7 +689,7 @@ -f file -e# -s# - -bilmnpu + -bilmnpu% -d driver name @@ -619,8 +720,8 @@ The predefined database types are: -