xref: /netbsd-src/external/bsd/am-utils/dist/m4/macros/struct_mnttab.m4 (revision a53f50b9b44dc9467ccc9c464999b1d1c509cb0c)
1*a53f50b9Schristosdnl ######################################################################
2*a53f50b9Schristosdnl Find if struct mnttab exists anywhere in mount.h or mnttab.h headers
3*a53f50b9SchristosAC_DEFUN([AMU_STRUCT_MNTTAB],
4*a53f50b9Schristos[
5*a53f50b9SchristosAC_CACHE_CHECK(for struct mnttab,
6*a53f50b9Schristosac_cv_have_struct_mnttab,
7*a53f50b9Schristos[
8*a53f50b9Schristos# try to compile a program which may have a definition for the structure
9*a53f50b9SchristosAC_TRY_COMPILE(
10*a53f50b9SchristosAMU_MOUNT_HEADERS
11*a53f50b9Schristos,
12*a53f50b9Schristos[
13*a53f50b9Schristosstruct mnttab mt;
14*a53f50b9Schristos], ac_cv_have_struct_mnttab=yes, ac_cv_have_struct_mnttab=no)
15*a53f50b9Schristos])
16*a53f50b9Schristosif test "$ac_cv_have_struct_mnttab" = yes
17*a53f50b9Schristosthen
18*a53f50b9Schristos  AC_DEFINE(HAVE_STRUCT_MNTTAB)
19*a53f50b9Schristosfi
20*a53f50b9Schristos])
21*a53f50b9Schristosdnl ======================================================================
22