bug-autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[patch] AC_FUNC_GETMNTENT not defining HAVE_GETMNTENT to 1 but to empty


From: Ben Pfaff
Subject: [patch] AC_FUNC_GETMNTENT not defining HAVE_GETMNTENT to 1 but to empty
Date: Fri, 15 Dec 2006 11:09:19 -0800
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux)

Debian bug 403243 reports that HAVE_GETMNTENT gets defined to
empty when AC_FUNC_GETMNTENT is used.  See
        http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=403243
The bug log points to this Autoconf commit as the culprit:
        
http://cvs.savannah.gnu.org/viewcvs/autoconf/autoconf/lib/autoconf/functions.m4?r1=1.108&r2=1.109

I believe that this is the correct fix.  If someone here will
confirm that, I'll fix the Debian package (Debian is in freeze
right now so I'm only fixing bugs that actually bite someone):

--- /home/blp/debian/autoconf/autoconf-2.61/lib/autoconf/functions.m4~  
2006-12-07 17:32:01.000000000 -0800
+++ /home/blp/debian/autoconf/autoconf-2.61/lib/autoconf/functions.m4   
2006-12-15 11:04:17.000000000 -0800
@@ -801,7 +801,7 @@ AC_DEFUN([AC_FUNC_GETMNTENT],
 # -lseq on Dynix/PTX, -lgen on Unixware.
 AC_SEARCH_LIBS(getmntent, [sun seq gen],
               [ac_cv_func_getmntent=yes
-               AC_DEFINE([HAVE_GETMNTENT], [],
+               AC_DEFINE([HAVE_GETMNTENT], [1],
                          [Define to 1 if you have the `getmntent' function.])],
               [ac_cv_func_getmntent=no])
 ])

-- 
I love deadlines.
I love the whooshing noise they make as they go by.
--Douglas Adams




reply via email to

[Prev in Thread] Current Thread [Next in Thread]