summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2008-03-14 08:57:10 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2008-03-14 08:57:10 +0100
commit5148a5273b97c61a5625a9d900b835d41954c101 (patch)
tree49cf194e13515ca08e97a4da64d56c72f505f6f8 /configure.ac
parent12e2a801d6d465ce4bc73abefec04aa96d83fb00 (diff)
In latest libewf beta, libewf_get_bytes_per_sector() and libewf_get_media_size() take 2 arguments
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac14
1 files changed, 14 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 27c3945..401ea39 100644
--- a/configure.ac
+++ b/configure.ac
@@ -460,6 +460,20 @@ if test -z "${use_ewf}"; then
else
LIBS="${ewf_lib_a} $LIBS"
fi
+ AC_TRY_COMPILE([#include <libewf.h>],
+ [void foo() { libewf_get_bytes_per_sector(NULL,NULL); }],
+ ac_cv_c_libewf_get_bytes_per_sector_have_two_arguments=yes,
+ ac_cv_c_libewf_get_bytes_per_sector_have_two_arguments=no)
+ if test "${ac_cv_c_libewf_get_bytes_per_sector_have_two_arguments}" != "no"; then
+ AC_DEFINE([LIBEWF_GET_BYTES_PER_SECTOR_HAVE_TWO_ARGUMENTS], 1, [Define if libewf_get_bytes_per_sector takes two parameters.])
+ fi
+ AC_TRY_COMPILE([#include <libewf.h>],
+ [void foo() { libewf_get_media_size(NULL,NULL); }],
+ ac_cv_c_libewf_get_media_size_have_two_arguments=yes,
+ ac_cv_c_libewf_get_media_size_have_two_arguments=no)
+ if test "${ac_cv_c_libewf_get_media_size_have_two_arguments}" != "no"; then
+ AC_DEFINE([LIBEWF_GET_MEDIA_SIZE_HAVE_TWO_ARGUMENTS], 1, [Define if libewf_get_media_size takes two parameters.])
+ fi
],[
AC_MSG_WARN(No ewf library detected)
LIBS="$OLDLIBS"