From: Byron Ellacott Date: Mon, 6 Feb 2012 18:57:00 +0000 (+0100) Subject: autoconf fixes for building on OSX X-Git-Tag: v2.3-alpha1~18 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3a90edbd194140eef51c245edfcf9afc0ecb2d13;p=thirdparty%2Fopenvpn.git autoconf fixes for building on OSX [DS: a few whitespace fixes was added as well during the merge] Signed-off-by: Byron Ellacott Acked-by: Gilles Espinasse Signed-off-by: David Sommerseth --- diff --git a/acinclude.m4 b/acinclude.m4 index acfc01d93..58e2a353a 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -17,16 +17,16 @@ dnl @author James Yonan AC_DEFUN([AX_EMPTY_ARRAY], [ AC_MSG_RESULT([checking for C compiler empty array support]) - AC_COMPILE_IFELSE( + AC_COMPILE_IFELSE([AC_LANG_SOURCE( [ struct { int foo; int bar[[0]]; } mystruct; - ], [ + ])], [ AC_DEFINE_UNQUOTED(EMPTY_ARRAY_SIZE, 0, [Dimension to use for empty array declaration]) ], [ - AC_COMPILE_IFELSE( + AC_COMPILE_IFELSE([AC_LANG_SOURCE( [ struct { int foo; int bar[[]]; } mystruct; - ], [ + ])], [ AC_DEFINE_UNQUOTED(EMPTY_ARRAY_SIZE,, [Dimension to use for empty array declaration]) ], [ AC_MSG_ERROR([C compiler is unable to creaty empty arrays]) @@ -45,13 +45,13 @@ dnl @author James Yonan , Matthias Andree , Matthias Andree