From 8c2266165451efda7053faa58d98c693b9bd7d0b Mon Sep 17 00:00:00 2001 From: sam Date: Sat, 16 Oct 2010 21:52:51 +0000 Subject: [PATCH] Look for highgui.h in addition to the opencv package. git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@4692 92316355-f0b4-4df1-b90c-862c8a59935f --- configure.ac | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index edeb664..941115e 100644 --- a/configure.ac +++ b/configure.ac @@ -121,7 +121,15 @@ AM_CONDITIONAL(USE_SDL, test "${ac_cv_my_have_sdl}" = "yes") # Use OpenCV? ac_cv_my_have_opencv="no" OPENCV="no" -PKG_CHECK_MODULES(OPENCV, opencv, [ac_cv_my_have_opencv="yes"], [:]) +#FIXME: check for highgui, too. +PKG_CHECK_MODULES(OPENCV, opencv, + [save_CPPFLAGS="${CPPFLAGS}" + CPPFLAGS="${CPPFLAGS} ${OPENCV_CFLAGS}" + AC_CHECK_HEADERS(highgui.h, + [ac_cv_my_have_opencv="yes"], + [:]) + CPPFLAGS="${save_CPPFLAGS}"], + [:]) if test "${ac_cv_my_have_opencv}" != "no"; then AC_DEFINE(USE_OPENCV, 1, Define to 1 to use OpenCV) fi