1 dnl Copyright (C) 1999-2001 Free Software Foundation, Inc.
2 dnl This file is part of the GNU LIBICONV Library.
4 dnl The GNU LIBICONV Library is free software; you can redistribute it
5 dnl and/or modify it under the terms of the GNU Library General Public
6 dnl License as published by the Free Software Foundation; either version 2
7 dnl of the License, or (at your option) any later version.
9 dnl The GNU LIBICONV Library is distributed in the hope that it will be
10 dnl useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
11 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 dnl Library General Public License for more details.
14 dnl You should have received a copy of the GNU Library General Public
15 dnl License along with the GNU LIBICONV Library; see the file COPYING.LIB.
16 dnl If not, write to the Free Software Foundation, Inc., 59 Temple Place -
17 dnl Suite 330, Boston, MA 02111-1307, USA. */
25 AC_CONFIG_AUX_DIR(autoconf)
26 AC_CONFIG_HEADER(lib/config.h)
29 dnl checks for programs
33 AC_PROG_GCC_TRADITIONAL
40 dnl check for host type
42 CL_CANONICAL_HOST(autoconf)
44 dnl checks for UNIX variants that set DEFS
50 dnl checks for compiler output filename suffixes
55 dnl check for build configuration
60 dnl checks for header files
62 AC_CHECK_HEADERS(locale.h)
64 dnl checks for typedefs
68 dnl checks for functions and declarations
71 if test $cl_cv_func_iconv = yes -a -z "$cl_cv_proto_iconv_arg1"; then
78 AC_CHECK_FUNCS(mbrtowc wcrtomb mbsinit setlocale)
84 dnl check whether OS supports plug libraries
89 solaris*) OS="solaris" ;;
92 if test -n "$OS"; then
95 PLUGLIB="libiconv_plug.so"
101 if test -d "${srcdir}/tests"; then
102 TESTS_MAKEFILE=tests/Makefile
106 AC_CONFIG_SUBDIRS(libcharset)
107 AC_OUTPUT(Makefile lib/Makefile src/Makefile man/Makefile ${TESTS_MAKEFILE} include/iconv.h)