| Line | |
|---|
| 1 |
|
|---|
| 2 |
|
|---|
| 3 | dnl #############################################
|
|---|
| 4 | dnl see if we have nanosecond resolution for stat
|
|---|
| 5 | AC_CACHE_CHECK([for tv_nsec nanosecond fields in struct stat],ac_cv_have_stat_tv_nsec,[
|
|---|
| 6 | AC_TRY_COMPILE(
|
|---|
| 7 | [
|
|---|
| 8 | #include <sys/types.h>
|
|---|
| 9 | #include <sys/stat.h>
|
|---|
| 10 | #include <unistd.h>
|
|---|
| 11 | ],
|
|---|
| 12 | [struct stat st;
|
|---|
| 13 | st.st_mtim.tv_nsec;
|
|---|
| 14 | st.st_atim.tv_nsec;
|
|---|
| 15 | st.st_ctim.tv_nsec;
|
|---|
| 16 | ],
|
|---|
| 17 | ac_cv_decl_have_stat_tv_nsec=yes,
|
|---|
| 18 | ac_cv_decl_have_stat_tv_nsec=no)
|
|---|
| 19 | ])
|
|---|
| 20 | if test x"$ac_cv_decl_have_stat_tv_nsec" = x"yes"; then
|
|---|
| 21 | AC_DEFINE(HAVE_STAT_TV_NSEC,1,[Whether stat has tv_nsec nanosecond fields])
|
|---|
| 22 | fi
|
|---|
| 23 |
|
|---|
| 24 | AC_CHECK_HEADERS(blkid/blkid.h)
|
|---|
| 25 | AC_SEARCH_LIBS_EXT(blkid_get_cache, [blkid], BLKID_LIBS)
|
|---|
| 26 | AC_CHECK_FUNC_EXT(blkid_get_cache, $BLKID_LIBS)
|
|---|
| 27 | SMB_EXT_LIB(BLKID,[${BLKID_LIBS}],[${BLKID_CFLAGS}],[${BLKID_CPPFLAGS}],[${BLKID_LDFLAGS}])
|
|---|
| 28 | if test x"$ac_cv_func_ext_blkid_get_cache" = x"yes"; then
|
|---|
| 29 | AC_DEFINE(HAVE_LIBBLKID,1,[Whether we have blkid support (e2fsprogs)])
|
|---|
| 30 | SMB_ENABLE(BLKID,YES)
|
|---|
| 31 | fi
|
|---|
| 32 |
|
|---|
| 33 | SMB_ENABLE(pvfs_aio,NO)
|
|---|
| 34 | if test x"$tevent_cv_aio_support" = x"yes"; then
|
|---|
| 35 | SMB_ENABLE(pvfs_aio,YES)
|
|---|
| 36 | fi
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.