[gdk-pixbuf] configure.ac: add check for sigsetjmp(), it was forgotten when splitting the libs
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdk-pixbuf] configure.ac: add check for sigsetjmp(), it was forgotten when splitting the libs
- Date: Tue, 21 Sep 2010 10:35:14 +0000 (UTC)
commit ba49f70c144bb919c2bbae97139aa83a9d476fc8
Author: Michael Natterer <mitch gimp org>
Date: Tue Sep 21 12:34:31 2010 +0200
configure.ac: add check for sigsetjmp(), it was forgotten when splitting the libs
configure.ac | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 29d734a..1f330e2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -316,6 +316,18 @@ if test "x$enable_rebuilds" = "xyes" && \
fi
AC_SUBST(REBUILD)
+# sigsetjmp is a macro on some platforms, so AC_CHECK_FUNCS is not reliable
+AC_MSG_CHECKING(for sigsetjmp)
+AC_TRY_LINK([#include <setjmp.h>], [
+sigjmp_buf env;
+sigsetjmp(env, 0);
+], gtk_ok=yes, gtk_ok=no)
+AC_MSG_RESULT($gtk_ok)
+if test "$gtk_ok" = "yes"; then
+ AC_DEFINE(HAVE_SIGSETJMP, 1,
+ [Define to 1 if sigsetjmp is available])
+fi
+
# i18n stuff
AM_GNU_GETTEXT_VERSION([0.17])
AM_GNU_GETTEXT([external])
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]