From 91171e631e679e2d77e2930527d00b00700293b7 Mon Sep 17 00:00:00 2001 From: Suman Manjunath Date: Mon, 17 Mar 2008 04:24:32 +0000 Subject: Patch from Paul Bolle : Fix for bug #519421 (Also allow header while compiling the TNEF attachment decoder plugin) svn path=/trunk/; revision=35206 --- configure.in | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'configure.in') diff --git a/configure.in b/configure.in index 34a13ea797..2a4466c795 100644 --- a/configure.in +++ b/configure.in @@ -1388,10 +1388,22 @@ AC_TRY_COMPILE([#include if test "$tnef_ok" = "yes"; then AC_MSG_RESULT([yes]) TNEF_ATTACHMENTS="tnef-attachments" + TNEF_CFLAGS="-DHAVE_YTNEF_H" else - AC_MSG_RESULT(no) - TNEF_ATTACHMENTS="" + AC_TRY_COMPILE([#include + #include ], + [TNEFStruct *tnef;], tnef_ok=yes, tnef_ok=no) + if test "$tnef_ok" = "yes"; then + AC_MSG_RESULT([yes]) + TNEF_ATTACHMENTS="tnef-attachments" + TNEF_CFLAGS="-DHAVE_LIBYTNEF_YTNEF_H" + else + AC_MSG_RESULT(no) + TNEF_ATTACHMENTS="" + TNEF_CFLAGS="" + fi fi +AC_SUBST(TNEF_CFLAGS) echo "TNEF is "$TNEF_ATTACHMENTS -- cgit v1.2.3