From 002424626ff5ae8392fa6f908a19b0267ed52cb5 Mon Sep 17 00:00:00 2001 From: "hyunghwan.chung" Date: Tue, 26 Sep 2017 15:17:28 +0000 Subject: [PATCH] enhanced the check for labels as values support --- moo/configure | 2 +- moo/configure.ac | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/moo/configure b/moo/configure index 698052a..53617c9 100755 --- a/moo/configure +++ b/moo/configure @@ -18695,7 +18695,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext int main () { -void *jp = &&jpt; goto *jp; 1; jpt: 2; +void* jp[] = { &&jpt1, &&jpt2, &&jpt3 }; goto *jp[1]; jpt1: 1; jpt2: 2; jpt3: 3; ; return 0; } diff --git a/moo/configure.ac b/moo/configure.ac index 97afc33..3924d5f 100644 --- a/moo/configure.ac +++ b/moo/configure.ac @@ -142,7 +142,7 @@ AC_LINK_IFELSE( AC_MSG_CHECKING([labels as values]) AC_COMPILE_IFELSE( - [AC_LANG_PROGRAM( [], [[void *jp = &&jpt; goto *jp; 1; jpt: 2; ]])], + [AC_LANG_PROGRAM( [], [[void* jp[] = { &&jpt1, &&jpt2, &&jpt3 }; goto *jp[1]; jpt1: 1; jpt2: 2; jpt3: 3; ]])], [AC_MSG_RESULT(yes) AC_DEFINE(HAVE_LABELS_AS_VALUES, 1, [labels as values])], [AC_MSG_RESULT(no)]