Mercurial > dovecot > core-2.2
diff configure.in @ 691:567f5e66c7b8 HEAD
We compile now if dev_t is a structure (eg. glibc+tcc).
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Tue, 26 Nov 2002 20:47:43 +0200 |
parents | 78966c511e57 |
children | 359f73bf84b5 |
line wrap: on
line diff
--- a/configure.in Tue Nov 26 20:39:57 2002 +0200 +++ b/configure.in Tue Nov 26 20:47:43 2002 +0200 @@ -1,7 +1,7 @@ AC_INIT(src) AM_CONFIG_HEADER(config.h) -AM_INIT_AUTOMAKE(dovecot, 0.99.1) +AM_INIT_AUTOMAKE(dovecot, 0.99.2) AM_MAINTAINER_MODE @@ -127,6 +127,12 @@ ssldir=/etc/ssl ) +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 + CFLAGS="$CFLAGS -Wall -W" +fi + dnl ** dnl ** just some generic stuff... dnl ** @@ -167,12 +173,6 @@ 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 - CFLAGS="$CFLAGS -Wall -W" -fi - dnl * OS specific options case "$host_os" in hpux*) @@ -349,6 +349,20 @@ fi AC_MSG_RESULT($i_cv_struct_iovec) +dnl * is dev_t an integer or something else? +AC_TRY_COMPILE([ + #include <sys/types.h> + struct test { dev_t a; }; + static struct test t = { 0 }; +],,, [ + AC_DEFINE(DEV_T_STRUCT) + + dnl we can't initialize structures, so don't warn about them either + if test "x$ac_cv_prog_gcc" = "xyes"; then + CFLAGS=`echo $CFLAGS|sed 's/ -W\b//'` + fi +]) + dnl * Linux compatible mremap() AC_MSG_CHECKING([Linux compatible mremap()]) AC_TRY_COMPILE([