From d6c548c7831b2767f394637be500244a51a4c32b Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 10 Jan 1999 22:47:37 +0000 Subject: Use the new 3-arg form of AC_DEFINE instead of my gross kludge. --- m4/fstypename.m4 | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) (limited to 'm4/fstypename.m4') diff --git a/m4/fstypename.m4 b/m4/fstypename.m4 index 87569f8d3..70abc12b3 100644 --- a/m4/fstypename.m4 +++ b/m4/fstypename.m4 @@ -1,4 +1,4 @@ -#serial 1 +#serial 2 dnl From Jim Meyering. dnl @@ -25,18 +25,8 @@ AC_DEFUN(jm_FSTYPENAME, ) if test $fu_cv_sys_f_fstypename_in_statfs = yes; then - if test x = y; then - # This code is deliberately never run via ./configure. - # FIXME: this is a hack to make autoheader put the corresponding - # HAVE_* undef for this symbol in config.h.in. This saves me the - # trouble of having to maintain the #undef in acconfig.h manually. - AC_CHECK_FUNCS(F_FSTYPENAME_IN_STATFS) - fi - # Defining it this way (rather than via AC_DEFINE) short-circuits the - # autoheader check -- autoheader doesn't know it's already been taken - # care of by the hack above. - ac_kludge=HAVE_F_FSTYPENAME_IN_STATFS - AC_DEFINE_UNQUOTED($ac_kludge) + AC_DEFINE_UNQUOTED(HAVE_F_FSTYPENAME_IN_STATFS, 1, + [Define if struct statfs has the f_fstypename member.]) fi ] ) -- cgit v1.2.3-54-g00ecf