mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-29 19:30:36 +02:00
* acconfig.h: Removed. * acinclude.m4: Use the extended AC_DEFINE for HAVE_LABELS_AS_VALUES, so as to remove the need for acconfig.h. * autogen.sh: Use autoreconf. * configure.in: Update info, don't warn about non-gnu make, bump version to 0.7. * doc/texinfo.tex: Automagically updated. (Should this be in VCS?)
22 lines
601 B
Text
22 lines
601 B
Text
dnl check for gcc's "labels as values" feature
|
|
AC_DEFUN(AC_C_LABELS_AS_VALUES,
|
|
[AC_CACHE_CHECK([labels as values], ac_cv_labels_as_values,
|
|
[AC_TRY_COMPILE([
|
|
int foo(int);
|
|
int foo(i)
|
|
int i; {
|
|
static void *label[] = { &&l1, &&l2 };
|
|
goto *label[i];
|
|
l1: return 1;
|
|
l2: return 2;
|
|
}
|
|
],
|
|
[int i;],
|
|
ac_cv_labels_as_values=yes,
|
|
ac_cv_labels_as_values=no)])
|
|
if test "$ac_cv_labels_as_values" = yes; then
|
|
AC_DEFINE(HAVE_LABELS_AS_VALUES, [],
|
|
[Define if compiler supports gcc's "labels as values" (aka computed goto)
|
|
feature, used to speed up instruction dispatch in the interpreter.])
|
|
fi
|
|
])
|