1 # configure.ac for libgpg-error
2 # Copyright (C) 2003 g10 Code GmbH
4 # This file is part of libgpg-error.
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.
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.
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
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)
39 AC_CONFIG_SRCDIR([src/err-sources.h.in])
40 AC_CONFIG_HEADER([config.h])
42 # Checks for programs.
47 # Checks for libraries.
48 AM_GNU_GETTEXT([external])
49 AM_GNU_GETTEXT_VERSION(0.11.5)
51 # Checks for header files.
53 AC_CHECK_HEADERS([stdlib.h])
55 # Checks for typedefs, structures, and compiler characteristics.
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])