Mercurial > dovecot > original-hg > dovecot-1.2
comparison configure.in @ 7183:6c868e7fe7b2 HEAD
posix_fallocate() needs to be tested with linking, not compiling
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 20 Jan 2008 20:00:41 +0200 |
parents | 88de748a2f17 |
children | df570f504edf 74e1dc23e441 |
comparison
equal
deleted
inserted
replaced
7182:efc78f6db374 | 7183:6c868e7fe7b2 |
---|---|
595 ],,, [ | 595 ],,, [ |
596 AC_DEFINE(PREAD_WRAPPERS,, Define if pread/pwrite needs _XOPEN_SOURCE 500) | 596 AC_DEFINE(PREAD_WRAPPERS,, Define if pread/pwrite needs _XOPEN_SOURCE 500) |
597 ]) | 597 ]) |
598 | 598 |
599 dnl * Old glibcs have broken posix_fallocate(). Make sure not to use it. | 599 dnl * Old glibcs have broken posix_fallocate(). Make sure not to use it. |
600 AC_TRY_COMPILE([ | 600 AC_TRY_LINK([ |
601 #define _XOPEN_SOURCE 600 | 601 #define _XOPEN_SOURCE 600 |
602 #include <stdlib.h> | 602 #include <stdlib.h> |
603 #if defined(__GLIBC__) && (__GLIBC__ < 2 || __GLIBC_MINOR__ < 7) | 603 #if defined(__GLIBC__) && (__GLIBC__ < 2 || __GLIBC_MINOR__ < 7) |
604 possibly broken posix_fallocate | 604 possibly broken posix_fallocate |
605 #endif | 605 #endif |