1 dnl Process this file with autoconf to produce a configure script.
2 # Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,
3 # 2009, 2010 Free Software Foundation, Inc.
5 # Author: Nikos Mavrogiannopoulos, Simon Josefsson
7 # This file is part of GnuTLS-EXTRA.
9 # GnuTLS-extra is free software; you can redistribute it and/or
10 # modify it under the terms of the GNU General Public License as
11 # published by the Free Software Foundation; either version 3 of the
12 # License, or (at your option) any later version.
14 # GnuTLS-extra is distributed in the hope that it will be useful, but
15 # WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 # General Public License for more details.
19 # You should have received a copy of the GNU General Public License
20 # along with GnuTLS-EXTRA; if not, write to the Free Software
21 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
25 AC_INIT([libgnutls-extra], [2.12.19], [bug-gnutls@gnu.org])
26 AC_CONFIG_AUX_DIR([build-aux])
27 AC_CONFIG_MACRO_DIR([m4])
29 AM_INIT_AUTOMAKE([1.10 -Wall -Werror -Wno-override])
30 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
31 AM_CONFIG_HEADER(config.h)
34 # automake 1.12 seems to require this, but automake 1.11 doesn't recognize it
35 m4_pattern_allow([AM_PROG_AR])
47 LIBGNUTLS_EXTRA_LIBS="-L${libdir} -lgnutls-extra $LZO_LIBS $LIBGNUTLS_LIBS"
48 LIBGNUTLS_EXTRA_CFLAGS="-I${includedir}"
49 AC_SUBST(LIBGNUTLS_EXTRA_LIBS)
50 AC_SUBST(LIBGNUTLS_EXTRA_CFLAGS)
52 # Finish things from ../configure.ac.
53 AC_SUBST([WERROR_CFLAGS])
54 AC_SUBST([WSTACK_CFLAGS])
55 AC_SUBST([WARN_CFLAGS])
57 AC_DEFINE([GNUTLS_COMPAT_H], 1, [Make sure we don't use old features in code.])