Commit 3577ba72 authored by Markus Wanner's avatar Markus Wanner

Import upstream release 0.77.0

parent b296e2b9
0.77.0
2017-06-17 Sam Varshavchik <mrsam@courier-mta.com>
* libs/maildir/maildirquota.c (docheckquota): Skip DT_LNK.
2017-04-20 Sam Varshavchik <mrsam@courier-mta.com>
* courier/module.esmtp/esmtpclient.c (sendesmtp): Fix failure
to report connection errors.
2017-03-15 Sam Varshavchik <mrsam@courier-mta.com>
* rfc1035: fix TLS hostname verification problem caused by CNAME
records.
2017-03-11 Sam Varshavchik <mrsam@courier-mta.com>
* couriertcpd: do not issue ANY queries for DNSBL lookups.
* courier-unicode library API update.
2017-02-07 Sam Varshavchik <mrsam@courier-mta.com>
* libs/tcpd/libcouriertls.c: OpenSSL API update.
2017-01-27 "Stefan Hornburg (Racke)" <racke@linuxia.de>
* Merge several Debian patches:
0001-Include-cstdio-in-afx.h.patch
0005-Ignore-and-.dpkg-a-z-files.patch
0007-Fix-bashisms.patch
0009-Fix-linking-in-upstream-Makefiles.patch
0012-Define-and-use-PEMFILE-in-mkesmtpdcert.patch
(*) with some changes.
0013-Add-P-to-ghostscript-invocation.patch
0014-Improve-error-reporting-in-preline.c.patch
0017-Fix-formatting-errors-in-syslog-calls.patch
0020-Add-perl-stanza-to-perlfilter-scripts.patch
2017-01-27 Gordon Messmer <gordon.messmer@gmail.com>
* courier/perms.sh.in, courier/submit2.C (MessageEnd): Patches
from FreeBSD.
0.76.4
2017-01-13 Sam Varshavchik <mrsam@courier-mta.com>
......
......@@ -2256,12 +2256,7 @@ OPTIONAL: Configure ESMTP authentication and SSL
/usr/lib/courier/etc/courierd configuration file. When sending mail using
SSL, The Courier mail server can optionally verify the remote server's
X.509 certificate. This is done by setting ESMTP_TLS_VERIFY_DOMAIN to 1,
in /usr/lib/courier/etc/courierd. Also, TLS_PEERCERTDIR must be set to a
directory that contains PEM files of X.509 certificates of trusted root
certificate authorities. The PEM files must be hashed by OpenSSL's
c_rehash script. When this is done, the remote server's X.509 certificate
must signed by trusted root CA, else the Courier mail server will bounce
the recipient.
in /usr/lib/courier/etc/courierd.
The configuration script checks for the system's list of trusted
certificate authorities, and initializes TLS_TRUSTCERTS in the courierd
......
......@@ -5,6 +5,7 @@
@SET_MAKE@
AUTOMAKE_OPTIONS=dist-bzip2
AM_CXXFLAGS=@COURIER_UNICODE_CXXFLAGS@
SUBDIRS=afx @DBSUBDIR@ libs/numlib libs/soxwrap libs/md5 libs/sha1 \
libs/libhmac libs/random128 libs/rfc822 libs/rfc1035 \
......@@ -172,13 +173,11 @@ install-webadmin-password:
@stty -echo ; echo -n "Password: " ; read P; stty echo ; echo "" ; echo $$P >@sysconfdir@/webadmin/password && chown @mailuser@ @sysconfdir@/webadmin/password && chgrp @mailgroup@ @sysconfdir@/webadmin/password && chmod 400 @sysconfdir@/webadmin/password
upload-beta:
test -z "$(SFPASSWD)" && exit 1; exit 0
rm -f @PACKAGE@-@VERSION@.tar.bz2.sig; gpg --detach-sign --default-key mrsam@courier-mta.com @PACKAGE@-@VERSION@.tar.bz2; test -f @PACKAGE@-@VERSION@.tar.bz2.sig || exit 1
~/src/sftools/release.pl mrsam $(SFPASSWD) courier courier-devel `echo @VERSION@|sed 's/.*\(........\)/\1/'` @PACKAGE@-@VERSION@.tar.bz2 @PACKAGE@-@VERSION@.tar.bz2.sig
~/src/sftools/release.pl mrsam courier courier-devel `echo @VERSION@|sed 's/.*\(........\)/\1/'` @PACKAGE@-@VERSION@.tar.bz2 @PACKAGE@-@VERSION@.tar.bz2.sig
upload-dist:
test -z "$(SFPASSWD)" && exit 1; exit 0
rm -f @PACKAGE@-@VERSION@.tar.bz2.sig; gpg --detach-sign --default-key mrsam@courier-mta.com @PACKAGE@-@VERSION@.tar.bz2; test -f @PACKAGE@-@VERSION@.tar.bz2.sig || exit 1
set -e; v="@PACKAGE@/@VERSION@/`date +%Y%m%d%H%M%S`"; git tag -s $$v -m 'Tag version @VERSION@'; cd libs; git tag -s $$v -m 'Tag version @VERSION@'
socksify ~/src/sftools/release.pl mrsam $(SFPASSWD) courier courier @VERSION@ @PACKAGE@-@VERSION@.tar.bz2 @PACKAGE@-@VERSION@.tar.bz2.sig
socksify ~/src/sftools/release.pl mrsam courier courier @VERSION@ @PACKAGE@-@VERSION@.tar.bz2 @PACKAGE@-@VERSION@.tar.bz2.sig
......@@ -344,6 +344,7 @@ top_build_prefix = @top_build_prefix@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
AUTOMAKE_OPTIONS = dist-bzip2
AM_CXXFLAGS = @COURIER_UNICODE_CXXFLAGS@
SUBDIRS = afx @DBSUBDIR@ libs/numlib libs/soxwrap libs/md5 libs/sha1 \
libs/libhmac libs/random128 libs/rfc822 libs/rfc1035 \
libs/rfc2045 libs/liblock libs/maildir libs/waitlib libs/tcpd \
......@@ -988,15 +989,13 @@ install-webadmin-password:
@stty -echo ; echo -n "Password: " ; read P; stty echo ; echo "" ; echo $$P >@sysconfdir@/webadmin/password && chown @mailuser@ @sysconfdir@/webadmin/password && chgrp @mailgroup@ @sysconfdir@/webadmin/password && chmod 400 @sysconfdir@/webadmin/password
upload-beta:
test -z "$(SFPASSWD)" && exit 1; exit 0
rm -f @PACKAGE@-@VERSION@.tar.bz2.sig; gpg --detach-sign --default-key mrsam@courier-mta.com @PACKAGE@-@VERSION@.tar.bz2; test -f @PACKAGE@-@VERSION@.tar.bz2.sig || exit 1
~/src/sftools/release.pl mrsam $(SFPASSWD) courier courier-devel `echo @VERSION@|sed 's/.*\(........\)/\1/'` @PACKAGE@-@VERSION@.tar.bz2 @PACKAGE@-@VERSION@.tar.bz2.sig
~/src/sftools/release.pl mrsam courier courier-devel `echo @VERSION@|sed 's/.*\(........\)/\1/'` @PACKAGE@-@VERSION@.tar.bz2 @PACKAGE@-@VERSION@.tar.bz2.sig
upload-dist:
test -z "$(SFPASSWD)" && exit 1; exit 0
rm -f @PACKAGE@-@VERSION@.tar.bz2.sig; gpg --detach-sign --default-key mrsam@courier-mta.com @PACKAGE@-@VERSION@.tar.bz2; test -f @PACKAGE@-@VERSION@.tar.bz2.sig || exit 1
set -e; v="@PACKAGE@/@VERSION@/`date +%Y%m%d%H%M%S`"; git tag -s $$v -m 'Tag version @VERSION@'; cd libs; git tag -s $$v -m 'Tag version @VERSION@'
socksify ~/src/sftools/release.pl mrsam $(SFPASSWD) courier courier @VERSION@ @PACKAGE@-@VERSION@.tar.bz2 @PACKAGE@-@VERSION@.tar.bz2.sig
socksify ~/src/sftools/release.pl mrsam courier courier @VERSION@ @PACKAGE@-@VERSION@.tar.bz2 @PACKAGE@-@VERSION@.tar.bz2.sig
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
......
......@@ -20,6 +20,83 @@ You have another version of autoconf. It may work, but is not guaranteed to.
If you have problems, you may need to regenerate the build system entirely.
To do so, use the procedure documented by the package, typically 'autoreconf'.])])
dnl Sets the COURIER_UNICODE_CXXFLAGS variable to any additional compiler
dnl flags needed to build the courier-unicode package and packages that
dnl use the courier-unicode package.
AC_DEFUN([AX_COURIER_UNICODE_CXXFLAGS],[
save_FLAGS="$CXXFLAGS"
AC_LANG_PUSH([C++])
AC_TRY_COMPILE([
#include <string>
], [
std::u32string s;
char32_t c;
],
[
],
[
COURIER_UNICODE_CXXFLAGS="-std=c++11"
CXXFLAGS="$save_CFLAGS $COURIER_UNICODE_CXXFLAGS"
AC_TRY_COMPILE([
#include <string>
], [
std::u32string s;
char32_t c;
],
[
],
[
COURIER_UNICODE_CXXFLAGS="-std=c++0x"
CXXFLAGS="$save_CFLAGS $COURIER_UNICODE_CXXFLAGS"
AC_TRY_COMPILE([
#include <string>
], [
std::u32string s;
char32_t c;
],
[
],
[
AC_MSG_ERROR([*** A compiler with C++11 Unicode support was not found])
])
])
])
CXXFLAGS="$save_FLAGS"
AC_LANG_POP([C++])
])
AC_DEFUN([AX_COURIER_UNICODE_VERSION],[
AC_MSG_CHECKING(courier-unicode library and version)
AC_TRY_COMPILE([
#include <courier-unicode.h>
#ifndef COURIER_UNICODE_VERSION
#define COURIER_UNICODE_VERSION 0
#endif
#if COURIER_UNICODE_VERSION < 200
#error "courier-unicode 2.0 library is required"
#endif
],[],[],
AC_MSG_ERROR([
ERROR: The Courier Unicode Library 2.0 header files appear not to be installed.
You may need to upgrade the library or install a separate development
subpackage in addition to the main package.])
)
AC_MSG_RESULT([ok])
])
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
#
# Copyright (C) 1996-2001, 2003-2015 Free Software Foundation, Inc.
......
......@@ -12,6 +12,7 @@
#include <unistd.h>
#endif
#include <cstdio>
#include <iostream>
#include <istream>
#include <ostream>
......
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.69 for courier 0.76.4.
# Generated by GNU Autoconf 2.69 for courier 0.77.0.
#
# Report bugs to <courier-users@lists.sourceforge.net>.
#
......@@ -590,8 +590,8 @@ MAKEFLAGS=
# Identity of this package.
PACKAGE_NAME='courier'
PACKAGE_TARNAME='courier'
PACKAGE_VERSION='0.76.4'
PACKAGE_STRING='courier 0.76.4'
PACKAGE_VERSION='0.77.0'
PACKAGE_STRING='courier 0.77.0'
PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net'
PACKAGE_URL=''
......@@ -1358,7 +1358,7 @@ if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
\`configure' configures courier 0.76.4 to adapt to many kinds of systems.
\`configure' configures courier 0.77.0 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
......@@ -1428,7 +1428,7 @@ fi
if test -n "$ac_init_help"; then
case $ac_init_help in
short | recursive ) echo "Configuration of courier 0.76.4:";;
short | recursive ) echo "Configuration of courier 0.77.0:";;
esac
cat <<\_ACEOF
......@@ -1548,7 +1548,7 @@ fi
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
courier configure 0.76.4
courier configure 0.77.0
generated by GNU Autoconf 2.69
Copyright (C) 2012 Free Software Foundation, Inc.
......@@ -2038,7 +2038,7 @@ cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by courier $as_me 0.76.4, which was
It was created by courier $as_me 0.77.0, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ $0 $@
......@@ -2903,7 +2903,7 @@ fi
# Define the identity of the package.
PACKAGE='courier'
VERSION='0.76.4'
VERSION='0.77.0'
cat >>confdefs.h <<_ACEOF
......@@ -15965,6 +15965,45 @@ fi
done
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking courier-unicode library and version" >&5
$as_echo_n "checking courier-unicode library and version... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include <courier-unicode.h>
#ifndef COURIER_UNICODE_VERSION
#define COURIER_UNICODE_VERSION 0
#endif
#if COURIER_UNICODE_VERSION < 200
#error "courier-unicode 2.0 library is required"
#endif
int
main ()
{
;
return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
else
as_fn_error $? "
ERROR: The Courier Unicode Library 2.0 header files appear not to be installed.
You may need to upgrade the library or install a separate development
subpackage in addition to the main package." "$LINENO" 5
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
$as_echo "ok" >&6; }
# Check whether --enable-root-check was given.
if test "${enable_root_check+set}" = set; then :
enableval=$enable_root_check; rootcheck="$enableval"
......@@ -16417,32 +16456,6 @@ fi
save_LIBS="$LIBS"
LIBS="-lcourier-unicode"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include <courier-unicode.h>
int
main ()
{
unicode_default_chset();
;
return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
:
else
as_fn_error $? "The Courier Unicode Library 1.2 appears not to be installed. You may need to install a separate development subpackage, in addition to the main package" "$LINENO" 5
fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
LIBS="$save_LIBS"
......@@ -17237,7 +17250,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
This file was extended by courier $as_me 0.76.4, which was
This file was extended by courier $as_me 0.77.0, which was
generated by GNU Autoconf 2.69. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
......@@ -17294,7 +17307,7 @@ _ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ac_cs_version="\\
courier config.status 0.76.4
courier config.status 0.77.0
configured by $0, generated by GNU Autoconf 2.69,
with options \\"\$ac_cs_config\\"
......
......@@ -5,7 +5,7 @@ dnl distribution information.
AC_PREREQ(2.59)
AC_INIT(courier, 0.76.4, [courier-users@lists.sourceforge.net])
AC_INIT(courier, 0.77.0, [courier-users@lists.sourceforge.net])
version=$PACKAGE_VERSION
AC_CONFIG_SRCDIR(courier/courier.c)
AM_INIT_AUTOMAKE
......@@ -20,7 +20,7 @@ AC_PROG_MAKE_SET
AC_PROG_CXX
AC_PROG_SYSCONFTOOL
AC_PATH_PROGS(SETENV, env)
AX_COURIER_UNICODE_VERSION
AC_ARG_ENABLE(root-check, [ --disable-root-check Allow build as root (make check will fail)],
rootcheck="$enableval",
rootcheck="yes")
......@@ -192,16 +192,6 @@ AC_SUBST(LIBDB)
AC_SUBST(LIBGDBM)
AC_SUBST(dblibrary)
save_LIBS="$LIBS"
LIBS="-lcourier-unicode"
AC_LINK_IFELSE(
[AC_LANG_PROGRAM([
#include <courier-unicode.h>
],[
unicode_default_chset();
])],[:],[AC_MSG_ERROR([The Courier Unicode Library 1.2 appears not to be installed. You may need to install a separate development subpackage, in addition to the main package])])
LIBS="$save_LIBS"
dnl
dnl Need to settle on our uid/gids here
dnl
......
......@@ -59,16 +59,16 @@
# -----------------------------------------------------------------------------
Summary: Courier 0.76.4 mail server
Summary: Courier 0.77.0 mail server
Name: courier
Version: 0.76.4
Version: 0.77.0
Release: 1%{?dist}%{courier_release}
Group: Applications/Mail
License: GPL
URL: http://www.courier-mta.org
Packager: %{PACKAGER}
Source: http://download.sourceforge.net/courier/courier-0.76.4.tar.bz2
Source: http://download.sourceforge.net/courier/courier-0.77.0.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
Provides: smtpdaemon server(smtp)
Provides: config(courier) = %{version}-%{release}
......@@ -153,36 +153,36 @@ BuildRequires: perl-generators
%if ! %alternatives
%package sendmail-wrapper
Summary: Courier 0.76.4 soft links for sendmail
Summary: Courier 0.77.0 soft links for sendmail
Group: Applications/Mail
%endif
%package ldap
Summary: Courier 0.76.4 LDAP modules and configuration screen
Summary: Courier 0.77.0 LDAP modules and configuration screen
Group: Application/Mail
%package mysql
Summary: Courier 0.76.4 MySQL configuration screen
Summary: Courier 0.77.0 MySQL configuration screen
Group: Application/Mail
%package pgsql
Summary: Courier 0.76.4 PostgreSQL configuration screen
Summary: Courier 0.77.0 PostgreSQL configuration screen
Group: Application/Mail
%package pop3d
Summary: Courier 0.76.4 Integrated POP3 server
Summary: Courier 0.77.0 Integrated POP3 server
Group: Applications/Mail
Requires: courier = 0.76.4 fileutils
Requires: courier = 0.77.0 fileutils
%package imapd
Summary: Courier 0.76.4 Integrated IMAP server
Summary: Courier 0.77.0 Integrated IMAP server
Group: Applications/Mail
Requires: courier = 0.76.4 fileutils
Requires: courier = 0.77.0 fileutils
%package webmail
Summary: Courier 0.76.4 Integrated HTTP (webmail) server
Summary: Courier 0.77.0 Integrated HTTP (webmail) server
Group: Applications/Mail
Requires: courier = 0.76.4 %{apache_documentroot} /etc/cron.hourly
Requires: courier = 0.77.0 %{apache_documentroot} /etc/cron.hourly
%if %with_gpg2
Requires: gnupg2
%define gpg_option --with-gpg2
......@@ -194,40 +194,40 @@ Requires: %{apache_cgibindir}
%endif
%package webadmin
Summary: Courier 0.76.4 web-based administration tool
Summary: Courier 0.77.0 web-based administration tool
Group: Applications/Mail
Requires: courier = 0.76.4 %{apache_documentroot}
Requires: courier = 0.77.0 %{apache_documentroot}
%if %is_not_mandrake
Requires: %{apache_cgibindir}
%endif
%package mlm
Summary: Courier 0.76.4 Integrated Mailing List Manager
Summary: Courier 0.77.0 Integrated Mailing List Manager
Group: Applications/Mail
Requires: courier = 0.76.4
Requires: courier = 0.77.0
%package mlm-web
Summary: Courier 0.76.4 Integrated web-based mailing list interface
Summary: Courier 0.77.0 Integrated web-based mailing list interface
Group: Applications/Mail
Requires: courier-mlm = 0.76.4 %{apache_documentroot}
Requires: courier-mlm = 0.77.0 %{apache_documentroot}
%if %is_not_mandrake
Requires: %{apache_cgibindir}
%endif
%package maildrop
Summary: Courier 0.76.4 Integrated mail filter
Summary: Courier 0.77.0 Integrated mail filter
Group: Applications/Mail
Requires: courier = 0.76.4
Requires: courier = 0.77.0
%package fax
Summary: Courier 0.76.4 fax support
Summary: Courier 0.77.0 fax support
Group: Application/Mail
Requires: courier = 0.76.4 groff ghostscript netpbm-progs mgetty-sendfax
Requires: courier = 0.77.0 groff ghostscript netpbm-progs mgetty-sendfax
%package maildrop-wrapper
Summary: Courier 0.76.4 soft links for maildrop
Summary: Courier 0.77.0 soft links for maildrop
Group: Applications/Mail
Requires: courier-maildrop = 0.76.4
Requires: courier-maildrop = 0.77.0
%description
The Courier mail transfer agent (MTA) is an integrated mail/groupware
......
......@@ -1735,7 +1735,7 @@ distdir: $(DISTFILES)
! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
|| chmod -R a+r "$(distdir)"
dist-gzip: distdir
tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
tardir=$(distdir) && $(am__tar) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).tar.gz
$(am__post_remove_distdir)
dist-bzip2: distdir
......@@ -1761,7 +1761,7 @@ dist-shar: distdir
@echo WARNING: "Support for shar distribution archives is" \
"deprecated." >&2
@echo WARNING: "It will be removed altogether in Automake 2.0" >&2
shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
shar $(distdir) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).shar.gz
$(am__post_remove_distdir)
dist-zip: distdir
......@@ -1779,7 +1779,7 @@ dist dist-all:
distcheck: dist
case '$(DIST_ARCHIVES)' in \
*.tar.gz*) \
GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).tar.gz | $(am__untar) ;;\
*.tar.bz2*) \
bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
*.tar.lz*) \
......@@ -1789,7 +1789,7 @@ distcheck: dist
*.tar.Z*) \
uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
*.shar.gz*) \
GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).shar.gz | unshar ;;\
*.zip*) \
unzip $(distdir).zip ;;\
esac
......
......@@ -20,6 +20,83 @@ You have another version of autoconf. It may work, but is not guaranteed to.
If you have problems, you may need to regenerate the build system entirely.
To do so, use the procedure documented by the package, typically 'autoreconf'.])])
dnl Sets the COURIER_UNICODE_CXXFLAGS variable to any additional compiler
dnl flags needed to build the courier-unicode package and packages that
dnl use the courier-unicode package.
AC_DEFUN([AX_COURIER_UNICODE_CXXFLAGS],[
save_FLAGS="$CXXFLAGS"
AC_LANG_PUSH([C++])
AC_TRY_COMPILE([
#include <string>
], [
std::u32string s;
char32_t c;
],
[
],
[
COURIER_UNICODE_CXXFLAGS="-std=c++11"
CXXFLAGS="$save_CFLAGS $COURIER_UNICODE_CXXFLAGS"
AC_TRY_COMPILE([
#include <string>
], [
std::u32string s;
char32_t c;
],
[
],
[
COURIER_UNICODE_CXXFLAGS="-std=c++0x"
CXXFLAGS="$save_CFLAGS $COURIER_UNICODE_CXXFLAGS"
AC_TRY_COMPILE([
#include <string>
], [
std::u32string s;
char32_t c;
],
[
],
[
AC_MSG_ERROR([*** A compiler with C++11 Unicode support was not found])
])
])
])
CXXFLAGS="$save_FLAGS"
AC_LANG_POP([C++])
])
AC_DEFUN([AX_COURIER_UNICODE_VERSION],[
AC_MSG_CHECKING(courier-unicode library and version)
AC_TRY_COMPILE([
#include <courier-unicode.h>
#ifndef COURIER_UNICODE_VERSION
#define COURIER_UNICODE_VERSION 0
#endif
#if COURIER_UNICODE_VERSION < 200
#error "courier-unicode 2.0 library is required"
#endif
],[],[],
AC_MSG_ERROR([
ERROR: The Courier Unicode Library 2.0 header files appear not to be installed.
You may need to upgrade the library or install a separate development
subpackage in addition to the main package.])
)
AC_MSG_RESULT([ok])
])
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
#
# Copyright (C) 1996-2001, 2003-2015 Free Software Foundation, Inc.
......
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.69 for courier 0.76.
# Generated by GNU Autoconf 2.69 for courier 0.77.
#
# Report bugs to <courier-users@lists.sourceforge.net>.
#
......@@ -590,8 +590,8 @@ MAKEFLAGS=
# Identity of this package.
PACKAGE_NAME='courier'
PACKAGE_TARNAME='courier'
PACKAGE_VERSION='0.76'
PACKAGE_STRING='courier 0.76'
PACKAGE_VERSION='0.77'
PACKAGE_STRING='courier 0.77'
PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net'
PACKAGE_URL=''
......@@ -1379,7 +1379,7 @@ if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
\`configure' configures courier 0.76 to adapt to many kinds of systems.
\`configure' configures courier 0.77 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
......@@ -1450,7 +1450,7 @@ fi
if test -n "$ac_init_help"; then
case $ac_init_help in
short | recursive ) echo "Configuration of courier 0.76:";;
short | recursive ) echo "Configuration of courier 0.77:";;
esac
cat <<\_ACEOF
......@@ -1573,7 +1573,7 @@ fi
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
courier configure 0.76
courier configure 0.77
generated by GNU Autoconf 2.69
Copyright (C) 2012 Free Software Foundation, Inc.
......@@ -2117,7 +2117,7 @@ cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by courier $as_me 0.76, which was
It was created by courier $as_me 0.77, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ $0 $@
......@@ -3095,7 +3095,7 @@ fi
# Define the identity of the package.
PACKAGE='courier'
VERSION='0.76'
VERSION='0.77'
cat >>confdefs.h <<_ACEOF
......@@ -16328,8 +16328,109 @@ then
as_fn_error $? "courierauthconfig not found" "$LINENO" 5
fi
save_FLAGS="$CXXFLAGS"
ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include <string>
int
main ()
{
std::u32string s;
char32_t c;
;
return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :