enhanced the check for labels as values support
This commit is contained in:
parent
a05c86dd27
commit
002424626f
2
moo/configure
vendored
2
moo/configure
vendored
@ -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;
|
||||
}
|
||||
|
@ -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)]
|
||||
|
Loading…
Reference in New Issue
Block a user