diff options
Diffstat (limited to 'opcodes/configure.in')
-rw-r--r-- | opcodes/configure.in | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/opcodes/configure.in b/opcodes/configure.in index 00f9892..3ffcaa0 100644 --- a/opcodes/configure.in +++ b/opcodes/configure.in @@ -98,6 +98,17 @@ ACX_HEADER_STRING AC_CHECK_DECLS([basename, stpcpy]) +# Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do +# since sigsetjmp might only be defined as a macro. +AC_CACHE_CHECK([for sigsetjmp], gdb_cv_func_sigsetjmp, +[AC_TRY_COMPILE([ +#include <setjmp.h> +], [sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);], +bfd_cv_func_sigsetjmp=yes, bfd_cv_func_sigsetjmp=no)]) +if test $bfd_cv_func_sigsetjmp = yes; then + AC_DEFINE(HAVE_SIGSETJMP, 1, [Define if sigsetjmp is available. ]) +fi + cgen_maint=no cgendir='$(srcdir)/../cgen' |