X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=m4%2Flibsigsegv.m4;h=415640068e5c27c7a3a54b2ae768ae3d0ae23f3e;hb=4f8c7a6e29f65cb71eca3092f712c71d580ba936;hp=ecd81f2f96f1a59bc42aa53b48aa05e8428f5b48;hpb=42d1eda5dcce2d68deab7a642e7f29bcd7144a0d;p=gnulib.git diff --git a/m4/libsigsegv.m4 b/m4/libsigsegv.m4 index ecd81f2f9..415640068 100644 --- a/m4/libsigsegv.m4 +++ b/m4/libsigsegv.m4 @@ -1,5 +1,5 @@ -# libsigsegv.m4 serial 3 -dnl Copyright (C) 2002-2003, 2008, 2009 Free Software Foundation, Inc. +# libsigsegv.m4 serial 4 +dnl Copyright (C) 2002-2003, 2008-2011 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -8,41 +8,9 @@ dnl From Bruno Haible, Sam Steingold. AC_DEFUN([gl_LIBSIGSEGV], [ - dnl Prerequisites of AC_LIB_LINKFLAGS_BODY. - AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) - AC_REQUIRE([AC_LIB_RPATH]) - - dnl Search for libsigsegv and define LIBSIGSEGV, LTLIBSIGSEGV and INCSIGSEGV - dnl accordingly. - AC_LIB_LINKFLAGS_BODY([sigsegv]) - - dnl Add $INCSIGSEGV to CPPFLAGS before performing the following checks, - dnl because if the user has installed libsigsegv and not disabled its use - dnl via --without-libsigsegv-prefix, he wants to use it. - gl_save_CPPFLAGS="$CPPFLAGS" - AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCSIGSEGV]) - - AC_CACHE_CHECK([for libsigsegv], [gl_cv_lib_sigsegv], [ - gl_cv_lib_sigsegv="no, consider installing GNU libsigsegv" - gl_save_LIBS="$LIBS" - LIBS="$LIBS $LIBSIGSEGV" - AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include ]], - [sigsegv_deinstall_handler();])], - [gl_cv_lib_sigsegv=yes]) - LIBS="$gl_save_LIBS" - ]) - if test "$gl_cv_lib_sigsegv" = yes; then - AC_DEFINE([HAVE_LIBSIGSEGV], [1], - [Define if you have the libsigsegv library.]) - AC_MSG_CHECKING([how to link with libsigsegv]) - AC_MSG_RESULT([$LIBSIGSEGV]) - else - dnl If $LIBSIGSEGV didn't lead to a usable library, we don't need - dnl $INCSIGSEGV either. - CPPFLAGS="$gl_save_CPPFLAGS" - LIBSIGSEGV= - LTLIBSIGSEGV= - fi - AC_SUBST([LIBSIGSEGV]) - AC_SUBST([LTLIBSIGSEGV]) + AC_LIB_HAVE_LINKFLAGS([sigsegv], [], + [#include ], [sigsegv_deinstall_handler();], + [no, consider installing GNU libsigsegv]) + dnl Some other autoconf macros and clisp's configure use this variable. + gl_cv_lib_sigsegv="$ac_cv_libsigsegv" ])