Manual: improve out-of-memory documentation.
[gnulib.git] / m4 / gc.m4
1 # gc.m4 serial 6
2 dnl Copyright (C) 2005, 2006, 2009, 2010 Free Software Foundation, Inc.
3 dnl This file is free software; the Free Software Foundation
4 dnl gives unlimited permission to copy and/or distribute it,
5 dnl with or without modifications, as long as this notice is preserved.
6
7 AC_DEFUN([gl_GC],
8 [
9   AC_ARG_WITH([libgcrypt],
10     AS_HELP_STRING([--with-libgcrypt], [use libgcrypt for low-level crypto]),
11     libgcrypt=$withval, libgcrypt=no)
12   if test "$libgcrypt" != no; then
13     AC_LIB_HAVE_LINKFLAGS([gcrypt], [gpg-error], [#include <gcrypt.h>])
14   fi
15   if test "$ac_cv_libgcrypt" = yes; then
16     AC_LIBOBJ([gc-libgcrypt])
17   else
18     AC_LIBOBJ([gc-gnulib])
19   fi
20 ])
21
22 # Prerequisites of lib/gc.h
23 AC_DEFUN([gl_PREREQ_GC],
24 [
25   AC_REQUIRE([AC_C_RESTRICT])
26   :
27 ])