[CTDB][PATCH] Add missing eval to m4 script

Sumit Bose sbose at redhat.com
Tue Feb 8 03:19:13 MST 2011


Hi,

while trying to compile ctdb I have seen error messages like

checking for prototype struct passwd *getpwent_r(struct passwd *src, char *buf, int buflen)... ./configure: line 7469: ac_cv_c_prototype_struct_passwd_pgetpwent_r_struct_passwd_psrc__char_pbuf__int_buflen_=no: command not found

during configure. I tracked this down to a missing eval in
libreplace_macros.m4.

Although samba is moving away from autoconf the attached patch can be
applied to the samba master branch, too.

bye,
Sumit
-------------- next part --------------
From d2730535b65ef1116d2e7ee47925c4a13e116684 Mon Sep 17 00:00:00 2001
From: Sumit Bose <sbose at redhat.com>
Date: Tue, 8 Feb 2011 10:55:06 +0100
Subject: [PATCH] Add missing eval to m4 script

---
 lib/replace/libreplace_macros.m4 |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/replace/libreplace_macros.m4 b/lib/replace/libreplace_macros.m4
index 1856eac..46aedd3 100644
--- a/lib/replace/libreplace_macros.m4
+++ b/lib/replace/libreplace_macros.m4
@@ -293,9 +293,9 @@ AC_DEFUN(AC_VERIFY_C_PROTOTYPE,
 			$2
 		}
 	])],[
-		AS_TR_SH([ac_cv_c_prototype_$1])=yes
+		eval AS_TR_SH([ac_cv_c_prototype_$1])=yes
 	],[
-		AS_TR_SH([ac_cv_c_prototype_$1])=no
+		eval AS_TR_SH([ac_cv_c_prototype_$1])=no
 	])
 )
 AS_IF([test $AS_TR_SH([ac_cv_c_prototype_$1]) = yes],[$3],[$4])
-- 
1.7.4



More information about the samba-technical mailing list