1 | AC_PREREQ(2.59) |
1 | AC_PREREQ(2.59) |
2 | AC_INIT |
2 | AC_INIT |
3 | AC_CONFIG_HEADERS([config.h]) |
3 | AC_CONFIG_HEADERS([config.h]) |
4 | |
|
|
5 | # Enable GNU extensions. |
|
|
6 | # Define this here, not in acconfig's @TOP@ section, since definitions |
|
|
7 | # in the latter don't make it into the configure-time tests. |
|
|
8 | AC_DEFINE([_GNU_SOURCE], 1, [Enable GNU extenstions]) |
|
|
9 | |
|
|
10 | # do NOT define POSIX_SOURCE, since this clashes with many BSDs |
|
|
11 | dnl AC_DEFINE([_POSIX_SOURCE], 1, [Enable POSIX 1003.1 extensions]) |
|
|
12 | dnl AC_DEFINE([_XOPEN_SOURCE], 500, [Enable XOPEN extensions]) |
|
|
13 | |
4 | |
14 | AC_PROG_CC |
5 | AC_PROG_CC |
15 | |
6 | |
16 | AC_CACHE_CHECK(for readahead, ac_cv_readahead, [AC_LINK_IFELSE([ |
7 | AC_CACHE_CHECK(for readahead, ac_cv_readahead, [AC_LINK_IFELSE([ |
17 | #include <fcntl.h> |
8 | #include <fcntl.h> |