[dovecot-cvs] dovecot acconfig.h,1.15,1.16 configure.in,1.53,1.54
cras at procontrol.fi
cras at procontrol.fi
Tue Nov 26 15:07:55 EET 2002
Update of /home/cvs/dovecot
In directory danu:/tmp/cvs-serv25042
Modified Files:
acconfig.h configure.in
Log Message:
Renamed largest_t to uintmax_t which already exists in C99.
Index: acconfig.h
===================================================================
RCS file: /home/cvs/dovecot/acconfig.h,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- acconfig.h 26 Nov 2002 10:28:40 -0000 1.15
+++ acconfig.h 26 Nov 2002 13:07:53 -0000 1.16
@@ -63,9 +63,11 @@
/* printf()-format for size_t, eg. "u" or "llu" */
#undef PRIuSIZE_T
-/* What type should be used for largest_t */
-#undef LARGEST_T_LONG
-#undef LARGEST_T_LONG_LONG
+/* Define if you have uintmax_t (C99 type) */
+#undef HAVE_UINTMAX_T
+
+/* Define if you have socklen_t */
+#undef HAVE_SOCKLEN_T
/* Define if you have Linux-compatible mremap() */
#undef HAVE_LINUX_MREMAP
Index: configure.in
===================================================================
RCS file: /home/cvs/dovecot/configure.in,v
retrieving revision 1.53
retrieving revision 1.54
diff -u -d -r1.53 -r1.54
--- configure.in 26 Nov 2002 12:28:11 -0000 1.53
+++ configure.in 26 Nov 2002 13:07:53 -0000 1.54
@@ -13,7 +13,7 @@
AC_ARG_PROGRAM
AM_PROG_LIBTOOL
-AC_CHECK_HEADERS(string.h stdlib.h unistd.h dirent.h)
+AC_CHECK_HEADERS(string.h stdlib.h stdint.h unistd.h dirent.h)
AC_CHECK_HEADERS(sys/uio.h iconv.h linux/mman.h)
# check posix headers
@@ -164,6 +164,9 @@
AC_DEFINE(IOLOOP_SELECT)
])
+dnl * memory alignment
+AC_DEFINE_UNQUOTED(MEM_ALIGN_SIZE, $mem_align)
+
dnl * gcc specific options
if test "x$ac_cv_prog_gcc" = "xyes"; then
# -Wchar-subscripts -Wpointer-arith -Wcast-qual -Wcast-align -Wconversion -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations
@@ -293,30 +296,28 @@
;;
esac
-if test x$ac_cv_sizeof_long_long != x0; then
- AC_DEFINE(LARGEST_T_LONG_LONG)
-else
- AC_DEFINE(LARGEST_T_LONG)
-fi
+AC_DEFUN(AC_CHECKTYPE2, [
+ AC_MSG_CHECKING([for $1])
+ AC_CACHE_VAL(i_cv_type_$1,
+ [AC_TRY_COMPILE([
+ #include <sys/types.h>
+ $2],
+ [$1 t;],
+ i_cv_type_$1=yes,
+ i_cv_type_$1=no,
+ )])
+ AC_MSG_RESULT($i_cv_type_$1)
+])
-dnl * memory alignment
-AC_DEFINE_UNQUOTED(MEM_ALIGN_SIZE, $mem_align)
+AC_CHECKTYPE2(uintmax_t, [#include <stdint.h>])
+if test $i_cv_type_uintmax_t = yes; then
+ AC_DEFINE(HAVE_UINTMAX_T)
+fi
-dnl * socklen_t - AC_CHECK_TYPE() would be _really_ useful if it only would
-dnl * accept header files where to find the typedef..
-AC_MSG_CHECKING([for socklen_t])
-AC_CACHE_VAL(i_cv_type_socklen_t,
-[AC_TRY_COMPILE([
-#include <sys/types.h>
-#include <sys/socket.h>],
-[socklen_t t;],
-i_cv_type_socklen_t=yes,
-i_cv_type_socklen_t=no,
-)])
-if test $i_cv_type_socklen_t = no; then
- AC_DEFINE(socklen_t, int, Define to 'int' if <sys/socket.h> doesn't define.)
+AC_CHECKTYPE2(socklen_t, [#include <sys/socket.h>])
+if test $i_cv_type_socklen_t = yes; then
+ AC_DEFINE(HAVE_SOCKLEN_T)
fi
-AC_MSG_RESULT($i_cv_type_socklen_t)
dnl * do we have tm_gmtoff
AC_MSG_CHECKING([for tm_gmtoff])
More information about the dovecot-cvs
mailing list