--- a/app-admin/testdisk/testdisk-6.12.ebuild 2011-07-08 11:31:02.000000000 +0100 +++ b/app-admin/testdisk/testdisk-6.12.ebuild 2011-07-14 12:46:00.000000000 +0100 @@ -46,8 +46,8 @@ src_configure() { econf ${myconf} || die # perform safety checks for NTFS and REISERFS - if use ntfs && egrep -q 'undef HAVE_LIBNTFS\>' "${S}"/config.h ; then - die "Failed to find NTFS library." + if use ntfs && ! egrep -q '^#define HAVE_LIBNTFS(3G)? 1$' "${S}"/config.h ; then + die "Failed to find either NTFS or NTFS-3G library." fi if use reiserfs && egrep -q 'undef HAVE_LIBREISERFS\>' "${S}"/config.h ; then die "Failed to find reiserfs library."