Commit 2e5890bd authored by Pekka Pessi's avatar Pekka Pessi

m4/sac-su2.m4: fixed tagstack check.

darcs-hash:20070207200212-65a35-cfd75eeca99dac65565f7f2d6bfd848949e7f6d4.gz
parent e351dc6e
...@@ -127,21 +127,17 @@ fi ...@@ -127,21 +127,17 @@ fi
### Test if we have stack suitable for handling tags directly ### Test if we have stack suitable for handling tags directly
### ###
test -z "$ac_cv_tagstack" &&
case "$target" in
i?86-*-* ) ac_cv_tagstack=yes ;;
esac
AC_CACHE_CHECK([for stack suitable for tags],[ac_cv_tagstack],[ AC_CACHE_CHECK([for stack suitable for tags],[ac_cv_tagstack],[
ac_cv_tagstack=no ac_cv_tagstack=no
AC_RUN_IFELSE([ AC_RUN_IFELSE([AC_LANG_SOURCE([[
#if HAVE_INTTYPES_H #if HAVE_INTTYPES_H
#include <inttypes.h> #include <inttypes.h>
#endif #endif
#if HAVE_STDINT_H #if HAVE_STDINT_H
#include <stdint.h> #include <stdint.h>
#endif #endif
#include <stdarg.h> #include <stdarg.h>
typedef void *tp; typedef void *tp;
...@@ -177,7 +173,12 @@ int main(int avc, char **av) ...@@ -177,7 +173,12 @@ int main(int avc, char **av)
(tv)1, (tv)2, (tv)3, (tv)4, (tv)5, (tv)1, (tv)2, (tv)3, (tv)4, (tv)5,
(tv)6, (tv)7, (tv)8, (tv)9, (tv)10); (tv)6, (tv)7, (tv)8, (tv)9, (tv)10);
} }
],[ac_cv_tagstack=yes],[ac_cv_tagstack=no],[ac_cv_tagstack=no])]) ]])],[ac_cv_tagstack=yes],[ac_cv_tagstack=no],[
case "$target" in
i?86-*-* ) ac_cv_tagstack=yes ;;
* ) ac_cv_tagstack=no ;;
esac
])])
if test $ac_cv_tagstack = yes ; then if test $ac_cv_tagstack = yes ; then
SAC_SU_DEFINE([SU_HAVE_TAGSTACK], 1, [ SAC_SU_DEFINE([SU_HAVE_TAGSTACK], 1, [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment