Copied from rfc1510bis.asn1, with modifications.
[shishi.git] / errcrypto / configure.ac
blob01d54487f040dbd1852c89cd31951e5c36721fc6
1 # configure.ac for libgpg-error
2 # Copyright (C) 2003 g10 Code GmbH
3
4 # This file is part of libgpg-error.
5
6 # libgpg-error is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU Lesser General Public License as
8 # published by the Free Software Foundation; either version 2.1 of the
9 # License, or (at your option) any later version.
10
11 # libgpg-error is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 # GNU Lesser General Public License for more details.
15
16 # You should have received a copy of the GNU Lesser General Public
17 # License along with this program; if not, write to the Free Software
18 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
20 # (Process this file with autoconf to produce a configure script.)
22 # Version number: Remember to change it immediately *after* a release.
23 AC_INIT(libgpg-error, 0.1, bug-gnupg@gnupg.org)
24 # LT Version numbers, remember to change them just *before* a release.
25 #   (Code changed:                      REVISION++)
26 #   (Interfaces added/removed/changed:  CURRENT++, REVISION=0)
27 #   (Interfaces added:                  AGE++)
28 #   (Interfaces removed:                AGE=0)
29 LIBGPG_ERROR_LT_CURRENT=0
30 LIBGPG_ERROR_LT_AGE=0
31 LIBGPG_ERROR_LT_REVISION=0
32 AC_SUBST(LIBGPG_ERROR_LT_CURRENT)
33 AC_SUBST(LIBGPG_ERROR_LT_AGE)
34 AC_SUBST(LIBGPG_ERROR_LT_REVISION)
36 AC_PREREQ(2.57)
37 AM_INIT_AUTOMAKE
38 AM_MAINTAINER_MODE
39 AC_CONFIG_SRCDIR([src/err-sources.h.in])
40 AC_CONFIG_HEADER([config.h])
42 # Checks for programs.
43 AC_PROG_CC
44 AC_PROG_LIBTOOL
45 AC_PROG_AWK
47 # Checks for libraries.
48 AM_GNU_GETTEXT([external])
49 AM_GNU_GETTEXT_VERSION(0.11.5)
51 # Checks for header files.
52 AC_HEADER_STDC
53 AC_CHECK_HEADERS([stdlib.h])
55 # Checks for typedefs, structures, and compiler characteristics.
56 AC_C_CONST
58 # Substitution used for gpg-error-config
59 GPG_ERROR_CONFIG_LIBS="-lgpg-error"
60 GPG_ERROR_CONFIG_CFLAGS=""
61 AC_SUBST(GPG_ERROR_CONFIG_LIBS)
62 AC_SUBST(GPG_ERROR_CONFIG_CFLAGS)
63 AC_CONFIG_FILES([src/gpg-error-config], [chmod +x src/gpg-error-config])
65 # Checks for library functions.
66 AC_CONFIG_FILES([Makefile])
67 AC_CONFIG_FILES([po/Makefile.in m4/Makefile])
68 AC_CONFIG_FILES([src/Makefile tests/Makefile])
69 AC_OUTPUT