Tizen 2.0 Release
[external/libgnutls26.git] / libextra / m4 / hooks.m4
1 # Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,
2 # 2009, 2010 Free Software Foundation, Inc.
3 #
4 # Author: Nikos Mavrogiannopoulos, Simon Josefsson
5 #
6 # This file is part of GnuTLS-EXTRA.
7 #
8 # GnuTLS-extra is free software; you can redistribute it and/or
9 # modify it under the terms of the GNU General Public License as
10 # published by the Free Software Foundation; either version 3 of the
11 # License, or (at your option) any later version.
12 #
13 # GnuTLS-extra is distributed in the hope that it will be useful, but
14 # WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16 # General Public License for more details.
17 #
18 # You should have received a copy of the GNU General Public License
19 # along with GnuTLS-EXTRA; if not, write to the Free Software
20 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
21 # 02110-1301, USA.
22
23 AC_DEFUN([LIBGNUTLS_EXTRA_HOOKS],
24 [
25   AC_MSG_CHECKING([whether to build OpenSSL compatibility layer])
26   AC_ARG_ENABLE(openssl-compatibility,
27     AS_HELP_STRING([--disable-openssl-compatibility],
28                    [disable the OpenSSL compatibility support]),
29     enable_openssl=$enableval, enable_openssl=yes)
30   AC_MSG_RESULT($enable_openssl)
31   AM_CONDITIONAL(ENABLE_OPENSSL, test "$enable_openssl" = "yes")
32
33   # We link to ../lib's gnulib, which needs -lws2_32 via LIBSOCKET in Makefile.am.
34   gl_SOCKETS
35 ])