From 9e1c1e0923a64b5d3367f0c1d64faa2b2874b32a Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Sun, 28 Aug 2005 13:49:07 +0000 Subject: [PATCH] Missing M4 files in dist + fixed iconv detection. --- SConstruct | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/SConstruct b/SConstruct index 8ea5275b..acd7d3ed 100644 --- a/SConstruct +++ b/SConstruct @@ -269,6 +269,8 @@ libvmime_extra = [ 'INSTALL', 'NEWS', 'README', + 'README.msvc', + 'README.refcounting', 'SConstruct', 'vmime.doxygen' ] @@ -319,6 +321,10 @@ libvmimetest_sources = [ ] libvmime_autotools = [ + 'm4/iconv.m4', + 'm4/lib-ld.m4', + 'm4/lib-link.m4', + 'm4/lib-prefix.m4', 'autotools/install-sh', # 'autotools/mkinstalldirs', 'autotools/missing', @@ -1173,18 +1179,13 @@ AM_ICONV # -- iconv AC_MSG_CHECKING([if an usable version of iconv exists (required)]) -AC_TRY_LINK( -[ - #include -],[ - iconv_t x = iconv_open("", ""); - return 0; -],[ + +if test "x$am_cv_func_iconv" = "xyes"; then AC_MSG_RESULT(yes) -],[ +else AC_MSG_RESULT(no) AC_ERROR(no usable version of iconv has been found) -]) +fi # -- global constructors (stolen from 'configure.in' in libsigc++) AC_MSG_CHECKING([if linker supports global constructors])