dnl version number
MAJOR_VERSION=1
MINOR_VERSION=9
-MICRO_VERSION=12
+MICRO_VERSION=13
INTERFACE_AGE=0
BINARY_AGE=0
-EXTRA_VERSION=83
+EXTRA_VERSION=43
EXTRA_RELEASE=
EXTRA_GTK2_VERSION=
*-darwin*)
CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
;;
+*-*-mingw*)
+ CFLAGS="$CFLAGS -mms-bitfields"
+ LIBS="$LIBS -lws2_32"
+ ;;
esac
dnl Checks for iconv
LIBS=$syl_save_LIBS
dnl for gettext
-ALL_LINGUAS="bg ca cs de el en_GB es fi fr hr hu it ja ko nl pl pt_BR ru sk sr sv zh_CN zh_TW.Big5"
+ALL_LINGUAS="bg ca cs de el en_GB es fi fr hr hu it ja ko nb nl pl pt_BR ru sk sr sv zh_CN zh_TW.Big5"
GETTEXT_PACKAGE=sylpheed-claws
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Define text domain.])
dnl AM_GNU_GETTEXT
dnl AC_CHECK_FUNC(gettext, AC_CHECK_LIB(intl, gettext))
localedir='${prefix}/${DATADIRNAME}/locale'
+AC_ARG_WITH(localedir,
+ [ --with-localedir=DIR Locale directory],
+ [localedir="$withval"])
AC_SUBST(localedir)
manualdir='${prefix}/${DATADIRNAME}/${PACKAGE}/manual'
+AC_ARG_WITH(manualdir,
+ [ --with-manualdir=DIR Manual directory],
+ [manualdir="$withval"])
AC_SUBST(manualdir)
+
faqdir='${prefix}/${DATADIRNAME}/${PACKAGE}/faq'
+AC_ARG_WITH(faqdir,
+ [ --with-faqdir=DIR FAQ directory],
+ [faqdir="$withval"])
AC_SUBST(faqdir)
dnl Set PACKAGE_DATA_DIR in config.h.
AC_HEADER_SYS_WAIT
AC_CHECK_HEADERS(fcntl.h sys/file.h unistd.h paths.h \
sys/param.h sys/utsname.h sys/select.h \
- wchar.h wctype.h locale.h)
+ wchar.h wctype.h locale.h netdb.h)
dnl alf - Check for apache installation f*ck up. apache may also install an
dnl fnmatch, which includes their own regex stuff if USE_HSREGEX is defined
wcsstr wcswcs iswalnum iswspace towlower \
wcslen wcscpy wcsncpy \
uname flock lockf inet_aton inet_addr \
- fchmod mkstemp)
+ fchmod mkstemp truncate getuid regcomp)
dnl *****************
dnl ** common code **
fi
AC_SUBST(PTHREAD_LIBS)
+t_oldLibs="$LIBS"
+LIBS="$LIBS"
+ac_cv_var__res_options=no
+AC_TRY_LINK([#include <sys/types.h>
+ #include <sys/socket.h>
+ #include <netinet/in.h>
+ #include <arpa/nameser.h>
+ #include <resolv.h>],
+ [_res.options = RES_INIT;],
+ ac_cv_var__res_options=yes);
+if test "$ac_cv_var__res_options" != "yes"; then
+ LIBRESOLV="-lresolv"
+fi
+LIBS="$t_oldLibs"
+
+if test "x$LIBRESOLV" = "x"; then
+ AC_CHECK_LIB(resolv, res_query, [LIBRESOLV=-lresolv])
+ LIBS="$t_oldLibs"
+fi
+AC_SUBST(LIBRESOLV)
+
+LIBS="$LIBS $LIBRESOLV"
+
dnl for LDAP support in addressbook
dnl no check for libraries; dynamically loaded
AC_ARG_ENABLE(ldap,
fi
AM_CONDITIONAL(BUILD_PGPMIME_PLUGIN, test x"$ac_cv_enable_pgpmime_plugin" = xyes)
+AC_MSG_CHECKING([whether to build PGP/Inline plugin])
+AC_ARG_ENABLE(pgpinline-plugin,
+ [ --disable-pgpinline-plugin Do not build PGP/Inline plugin],
+ [ac_cv_enable_pgpinline_plugin=$enableval], [ac_cv_enable_pgpinline_plugin=yes])
+if test x"$ac_cv_enable_pgpinline_plugin" = xyes; then
+ AC_MSG_RESULT(yes)
+ if test x"$ac_cv_enable_pgpcore_plugin" = xyes; then
+ PLUGINS="pgpinline $PLUGINS"
+ else
+ AC_MSG_WARN([*** PGP/Inline plugin cannot be built ***])
+ AC_MSG_WARN([*** without the PGP/CORE plugin ***])
+ fi
+else
+ AC_MSG_RESULT(no)
+fi
+AM_CONDITIONAL(BUILD_PGPINLINE_PLUGIN, test x"$ac_cv_enable_pgpinline_plugin" = xyes)
+
dnl --- MathML Viewer ---
AC_MSG_CHECKING([whether to build MathML-Viewer plugin])
AC_ARG_ENABLE(mathml-viewer-plugin,
src/plugins/clamav/Makefile
src/plugins/pgpcore/Makefile
src/plugins/pgpmime/Makefile
+src/plugins/pgpinline/Makefile
doc/Makefile
doc/faq/Makefile
doc/faq/de/Makefile