You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by rj...@apache.org on 2011/05/20 19:16:55 UTC
svn commit: r1125473 - /apr/apr/branches/1.5.x/build/apr_common.m4
Author: rjung
Date: Fri May 20 17:16:55 2011
New Revision: 1125473
URL: http://svn.apache.org/viewvc?rev=1125473&view=rev
Log:
Silence autoconf 2.68 warnings.
Add AC_LANG_SOURCE to AC_COMPILE_IFELSE
in apr_common.m4.
Backport of r1125472 from trunk.
Modified:
apr/apr/branches/1.5.x/build/apr_common.m4
Modified: apr/apr/branches/1.5.x/build/apr_common.m4
URL: http://svn.apache.org/viewvc/apr/apr/branches/1.5.x/build/apr_common.m4?rev=1125473&r1=1125472&r2=1125473&view=diff
==============================================================================
--- apr/apr/branches/1.5.x/build/apr_common.m4 (original)
+++ apr/apr/branches/1.5.x/build/apr_common.m4 Fri May 20 17:16:55 2011
@@ -495,12 +495,14 @@ AC_DEFUN([APR_TRY_COMPILE_NO_WARNING],
CFLAGS="$CFLAGS -Werror"
fi
AC_COMPILE_IFELSE(
- [#include "confdefs.h"
- ]
- [[$1]]
- [int main(int argc, const char *const *argv) {]
- [[$2]]
- [ return 0; }],
+ [AC_LANG_SOURCE(
+ [#include "confdefs.h"
+ ]
+ [[$1]]
+ [int main(int argc, const char *const *argv) {]
+ [[$2]]
+ [ return 0; }]
+ )],
[$3], [$4])
CFLAGS=$apr_save_CFLAGS
])