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)]