summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2011-10-17 07:59:33 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2011-10-17 07:59:33 +0200
commit8ca78851c4747a3c459a4d3966016d0b68a39adb (patch)
treef264db8a6650e52d46e881ef90e5bd9ef1228ec5 /configure.ac
parentdd7cf48369c656bac0ab8136915db453da0476b0 (diff)
ntfs_mbstoucs takes 2 parameters in ntfs-3g and 3 in ntfsprogs
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac17
1 files changed, 17 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 3248224..df59143 100644
--- a/configure.ac
+++ b/configure.ac
@@ -584,6 +584,23 @@ else
AC_MSG_WARN(Use of ntfs library disabled)
fi
+AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
+#ifdef HAVE_LIBNTFS
+#include <ntfs/volume.h>
+#include <ntfs/attrib.h>
+#endif
+#ifdef HAVE_LIBNTFS3G
+#include <ntfs-3g/volume.h>
+#include <ntfs-3g/attrib.h>
+#endif
+]],
+[[ ntfs_mbstoucs(NULL,NULL); ]])],
+ [ac_cv_c_ntfs_mbstoucs_have_two_arguments=yes],
+ [ac_cv_c_ntfs_mbstoucs_have_two_arguments=no])
+if test "${ac_cv_c_ntfs_mbstoucs_have_two_arguments}" != "no"; then
+ AC_DEFINE([NTFS_MBSTOUCS_HAVE_TWO_ARGUMENTS], 1, [Define if ntfs_mbstoucs takes two parameters.])
+fi
+
if test -z "${use_reiserfs}"; then
AC_CHECK_LIB(reiserfs,libreiserfs_get_version,[
AC_DEFINE([HAVE_LIBREISERFS],1,[Define to 1 if you have the reiserfs library (-lreiserfs).])