1dnl Copyright (C) 2000-2003, 2005-2006 Free Software Foundation, Inc.
2dnl This file is part of the GNU CHARSET Library.
3dnl
4dnl The GNU CHARSET Library is free software; you can redistribute it and/or
5dnl modify it under the terms of the GNU Library General Public License as
6dnl published by the Free Software Foundation; either version 2 of the
7dnl License, or (at your option) any later version.
8dnl
9dnl The GNU CHARSET Library is distributed in the hope that it will be useful,
10dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
11dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12dnl Library General Public License for more details.
13dnl
14dnl You should have received a copy of the GNU Library General Public License
15dnl along with the GNU CHARSET Library; see the file COPYING.LIB.  If not,
16dnl write to the Free Software Foundation, Inc., 51 Franklin Street,
17dnl Fifth Floor, Boston, MA 02110-1301, USA.
18
19AC_PREREQ(2.13)
20
21PACKAGE=libcharset
22VERSION=1.4
23
24AC_INIT(lib/localcharset.c)
25AC_CONFIG_AUX_DIR(build-aux)
26AC_CONFIG_HEADER(config.h)
27AC_PROG_MAKE_SET
28AC_SUBST(PACKAGE)
29AC_SUBST(VERSION)
30
31dnl           checks for basic programs
32
33AC_PROG_CC
34AC_PROG_CPP
35AC_PROG_GCC_TRADITIONAL
36AC_PROG_INSTALL
37
38dnl           check for host type
39
40AC_CANONICAL_HOST
41
42dnl           checks for installer options
43
44AC_RELOCATABLE_LIBRARY
45
46dnl           checks for programs
47
48dnl           checks for UNIX variants that set DEFS
49
50AC_AIX
51AC_MINIX
52AC_ISC_POSIX
53
54dnl           checks for compiler output filename suffixes
55
56AC_OBJEXT
57AC_EXEEXT
58
59dnl           check for build configuration
60
61AC_LIBTOOL_WIN32_DLL
62AC_PROG_LIBTOOL
63gl_VISIBILITY
64
65dnl           checks for header files and functions
66
67AM_LANGINFO_CODESET
68gl_GLIBC21
69AC_CHECK_HEADERS(stddef.h stdlib.h string.h)
70AC_CHECK_FUNCS(setlocale)
71
72AC_CONFIG_FILES([Makefile])
73AC_CONFIG_FILES([lib/Makefile])
74AC_CONFIG_FILES([include/localcharset.h:include/localcharset.h.build.in])
75AC_CONFIG_FILES([include/localcharset.h.inst:include/localcharset.h.in])
76AC_OUTPUT
77