1 dnl Process this file with autoconf to produce a configure script.
3 AC_INIT(unicode, 0.10, [courier-maildrop@lists.sourceforge.net])
5 >confdefs.h # Kill PACKAGE_ macros
7 AC_CONFIG_SRCDIR(mkiso8859.pl)
9 LPATH="$PATH:/usr/local/bin"
11 AM_CONFIG_HEADER(unicode_config.h)
12 AM_INIT_AUTOMAKE([foreign no-define])
13 dnl Checks for programs.
20 AC_PATH_PROGS(PERL, perl5 perl, perl, $LPATH)
22 if test "$PERL" = "perl"
24 AC_MSG_ERROR(Perl not found.)
27 dnl Checks for libraries.
29 dnl Checks for header files.
31 AC_CHECK_HEADERS(stddef.h wchar.h)
33 dnl Checks for typedefs, structures, and compiler characteristics.
35 dnl Checks for library functions.
37 AC_ARG_ENABLE(mimecharset,
38 [ --enable-mimecharset=charset Default MIME charset to set on new messages],
39 UNICODECHARSET="$enableval", UNICODECHARSET="us-ascii")
41 AC_ARG_ENABLE(unicode,
42 [ --disable-unicode Disable all of unicode except iso-8859-1
43 --enable-unicode=chset,chset Comma-sep list of unicode charsets to use],
46 # Disable all unicode support by default, except the maintainer :-)
49 if test -f ${srcdir}/UnicodeData.txt
55 AC_DEFINE_UNQUOTED(UNICODECHARSET,"$UNICODECHARSET",
56 [ Default unicode charset ])
58 AM_CONDITIONAL(UPDATE_UNICODE, test -f ${srcdir}/UnicodeData.txt)
60 AC_ARG_ENABLE(unicode-test, [],
61 unicode_xtest="$enableval",
64 AC_SUBST(unicode_xtest)
66 if test "$GCC" = "yes"
68 CFLAGS="$CFLAGS -Wall"