r18514: fix configure caching of AC_VERIFY_C_PROTOTYPE() macro
authorStefan Metzmacher <metze@samba.org>
Thu, 14 Sep 2006 10:34:03 +0000 (10:34 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:18:40 +0000 (14:18 -0500)
metze
(This used to be commit 8e49dc69e7d588c85c9e9e7b24b595c61c1da95a)

source4/lib/replace/libreplace_macros.m4

index 91f816c75d0a823bf6775a664c4d061fc489f62f..4a645ef81f9f38350841278b4b3d6e60ac08cdb2 100644 (file)
@@ -282,9 +282,9 @@ AC_DEFUN(AC_VERIFY_C_PROTOTYPE,
                }
        ],[
                AS_TR_SH([ac_cv_c_prototype_$1])=yes
-               $3
        ],[
                AS_TR_SH([ac_cv_c_prototype_$1])=no
-               $4
        ])
-)])
+)
+AS_IF([test $AS_TR_SH([ac_cv_c_prototype_$1]) = yes],[$3],[$4])
+])