2003-03-09 04:12:05 +03:00
|
|
|
dnl ######################################################################
|
|
|
|
dnl Find if struct mntent exists anywhere in mount.h or mntent.h headers
|
2005-04-23 22:07:47 +04:00
|
|
|
AC_DEFUN([AMU_STRUCT_MNTENT],
|
2003-03-09 04:12:05 +03:00
|
|
|
[
|
|
|
|
AC_CACHE_CHECK(for struct mntent,
|
|
|
|
ac_cv_have_struct_mntent,
|
|
|
|
[
|
|
|
|
# try to compile a program which may have a definition for the structure
|
|
|
|
AC_TRY_COMPILE(
|
|
|
|
AMU_MOUNT_HEADERS
|
|
|
|
,
|
|
|
|
[
|
|
|
|
struct mntent mt;
|
|
|
|
], ac_cv_have_struct_mntent=yes, ac_cv_have_struct_mntent=no)
|
|
|
|
])
|
|
|
|
if test "$ac_cv_have_struct_mntent" = yes
|
|
|
|
then
|
|
|
|
AC_DEFINE(HAVE_STRUCT_MNTENT)
|
|
|
|
fi
|
|
|
|
])
|
|
|
|
dnl ======================================================================
|