File: configure.in

package info (click to toggle)
cone 0.75-1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 31,040 kB
  • ctags: 13,930
  • sloc: ansic: 90,648; cpp: 79,781; sh: 18,355; perl: 3,218; makefile: 1,611; yacc: 289; sed: 16
file content (71 lines) | stat: -rw-r--r-- 1,578 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
dnl Process this file with autoconf to produce a configure script.

AC_INIT(unicode, 0.10, [courier-maildrop@lists.sourceforge.net])

>confdefs.h  # Kill PACKAGE_ macros

AC_CONFIG_SRCDIR(mkiso8859.pl)

LPATH="$PATH:/usr/local/bin"

AM_CONFIG_HEADER(unicode_config.h)
AM_INIT_AUTOMAKE([foreign no-define])
dnl Checks for programs.

AC_PROG_MAKE_SET
AM_PROG_LIBTOOL
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_CC
AC_PATH_PROGS(PERL, perl5 perl, perl, $LPATH)

if test "$PERL" = "perl"
then
	AC_MSG_ERROR(Perl not found.)
fi

dnl Checks for libraries.

dnl Checks for header files.

AC_CHECK_HEADERS(stddef.h wchar.h)

dnl Checks for typedefs, structures, and compiler characteristics.

dnl Checks for library functions.

AC_ARG_ENABLE(mimecharset,
	[  --enable-mimecharset=charset   Default MIME charset to set on new messages],
	UNICODECHARSET="$enableval", UNICODECHARSET="us-ascii")

AC_ARG_ENABLE(unicode,
[  --disable-unicode              Disable all of unicode except iso-8859-1
  --enable-unicode=chset,chset   Comma-sep list of unicode charsets to use],
	unicode="$enableval",

	# Disable all unicode support by default, except the maintainer :-)

	unicode="no"
	if test -f ${srcdir}/UnicodeData.txt
	then
		unicode=""
	fi)

AC_SUBST(unicode)
AC_DEFINE_UNQUOTED(UNICODECHARSET,"$UNICODECHARSET",
	[ Default unicode charset ])

AM_CONDITIONAL(UPDATE_UNICODE, test -f ${srcdir}/UnicodeData.txt)

AC_ARG_ENABLE(unicode-test, [],
	unicode_xtest="$enableval",
	unicode_xtest="no")

AC_SUBST(unicode_xtest)

if test "$GCC" = "yes"
then
	CFLAGS="$CFLAGS -Wall"
fi

AC_OUTPUT(Makefile)