diff options
author | Manish Singh <yosh@gimp.org> | 2001-11-05 01:39:22 +0000 |
---|---|---|
committer | Manish Singh <yosh@src.gnome.org> | 2001-11-05 01:39:22 +0000 |
commit | 064ed1e4a371a27c3e27c5934818d7a83d1cb828 (patch) | |
tree | e4b8378db24b477fd1ad63fa99d55c509652d76a /configure.in | |
parent | 3be9ce0e18f21dc9f0597ec67015743a455241ed (diff) | |
download | gdk-pixbuf-064ed1e4a371a27c3e27c5934818d7a83d1cb828.tar.gz |
sigsetjmp is macroized in some places, so use AC_TRY_LINK instead of
Sun Nov 4 17:36:08 2001 Manish Singh <yosh@gimp.org>
* acconfig.h configure.in: sigsetjmp is macroized in some places,
so use AC_TRY_LINK instead of AC_CHECK_FUNCS for the check.
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/configure.in b/configure.in index 27fd0c2e3..37f121a13 100644 --- a/configure.in +++ b/configure.in @@ -291,7 +291,18 @@ if test "x$enable_rebuilds" = "xyes" && \ fi AC_SUBST(REBUILD) -AC_CHECK_FUNCS(lstat mkstemp sigsetjmp bind_textdomain_codeset) +AC_CHECK_FUNCS(lstat mkstemp bind_textdomain_codeset) + +# 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) +fi AC_MSG_CHECKING(whether make is GNU Make) STRIP_BEGIN= @@ -385,7 +396,7 @@ AC_CHECK_HEADERS(unistd.h, AC_DEFINE(HAVE_UNISTD_H)) AC_CHECK_HEADERS(winsock.h, AC_DEFINE(HAVE_WINSOCK_H)) AC_CHECK_HEADERS(dimm.h, AC_DEFINE(HAVE_DIMM_H)) -if test ${with_wintab+set} = set && test $with_wintab != no; then +if test "${with_wintab+set}" = set && test $with_wintab != no; then AC_MSG_CHECKING([for wintab.h]) saved_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -I$with_wintab/include" |