libreplace: AC_VERIFY_C_PROTOTYPE() needs AC_LANG_SOURCE() to bring in confdefs.h
authormetze <metze@0c0555d6-39d7-0310-84fc-f1cc0bd64818>
Tue, 6 Nov 2007 10:40:07 +0000 (10:40 +0000)
committerStefan Metzmacher <metze@samba.org>
Fri, 9 Nov 2007 08:53:00 +0000 (09:53 +0100)
metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25870 0c0555d6-39d7-0310-84fc-f1cc0bd64818

source/lib/replace/libreplace_macros.m4

index da46f6734f26b3b00f1a2b16a396fe562d3be7ad..92fecd3db84aad32e3e2840e1a3e019b8a828ecb 100644 (file)
@@ -291,14 +291,14 @@ dnl check if the prototype in the header matches the given one
 dnl AC_VERIFY_C_PROTOTYPE(prototype,functionbody,[IF-TRUE].[IF-FALSE],[extraheaders])
 AC_DEFUN(AC_VERIFY_C_PROTOTYPE,
 [AC_CACHE_CHECK([for prototype $1], AS_TR_SH([ac_cv_c_prototype_$1]),
-       AC_COMPILE_IFELSE([
+       AC_COMPILE_IFELSE([AC_LANG_SOURCE([
                AC_INCLUDES_DEFAULT
                $5
                $1
                {
                        $2
                }
-       ],[
+       ])],[
                AS_TR_SH([ac_cv_c_prototype_$1])=yes
        ],[
                AS_TR_SH([ac_cv_c_prototype_$1])=no