[dovecot-cvs] dovecot configure.in,1.157,1.158
cras at procontrol.fi
cras at procontrol.fi
Mon May 10 03:40:44 EEST 2004
Update of /home/cvs/dovecot
In directory talvi:/tmp/cvs-serv30655
Modified Files:
configure.in
Log Message:
Define PREAD_WRAPPERS if we're using GLIBC, not if we're using Linux.
Removed a few ANSI-C header checks. Added strings.h check and include it
automatically if it's found, for strcasecmp().
Index: configure.in
===================================================================
RCS file: /home/cvs/dovecot/configure.in,v
retrieving revision 1.157
retrieving revision 1.158
diff -u -d -r1.157 -r1.158
--- configure.in 6 May 2004 01:22:25 -0000 1.157
+++ configure.in 10 May 2004 00:40:42 -0000 1.158
@@ -1,7 +1,7 @@
AC_INIT(src)
AM_CONFIG_HEADER(config.h)
-AM_INIT_AUTOMAKE(dovecot, 1.0-test6)
+AM_INIT_AUTOMAKE(dovecot, 1.0-test7)
AM_MAINTAINER_MODE
@@ -14,7 +14,7 @@
AM_PROG_LIBTOOL
AM_ICONV
-AC_CHECK_HEADERS(string.h stdlib.h stdint.h unistd.h dirent.h)
+AC_CHECK_HEADERS(strings.h stdint.h unistd.h dirent.h)
AC_CHECK_HEADERS(sys/uio.h sys/sysmacros.h sys/resource.h linux/mman.h)
AC_CHECK_HEADERS(sys/select.h)
@@ -262,14 +262,21 @@
AC_DEFINE(IOLOOP_NOTIFY_NONE,, No special notify support)
])
+dnl * GLIBC?
+AC_TRY_COMPILE([
+ #include <stdlib.h>
+ #ifdef __GLIBC__
+ we have glibc
+ #endif
+],,, [
+ AC_DEFINE(PREAD_WRAPPERS,, Define if pread/pwrite needs _XOPEN_SOURCE 500)
+])
+
dnl * OS specific options
case "$host_os" in
hpux*)
CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED"
;;
- linux*)
- AC_DEFINE(PREAD_WRAPPERS,, Define if pread/pwrite needs _XOPEN_SOURCE 500)
- ;;
*)
;;
esac
More information about the dovecot-cvs
mailing list