From dbc80e801b2cffde7479b3d7d82882d4ee21aac0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?llu=C3=ADs=20g=C3=B3mez=20i=20bigord=C3=A0?= Date: Mon, 17 Oct 2011 09:35:09 +0000 Subject: updated configure.ac for puredata_openc by ricardofabbri. better openCV detection. thanks! svn path=/trunk/externals/pix_opencv/; revision=15611 --- configure.ac | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 1ab17e4..e4e4f36 100755 --- a/configure.ac +++ b/configure.ac @@ -1,6 +1,7 @@ dnl Process this file with autoconf to produce a configure script. -AC_INIT +AC_PREREQ(2.65) +AC_INIT([pix-opencv],[0.2-rc6-svn],[lluisgomez@hangar.org],[pix-opencv-dev],[http://www.hangar.org/wikis/lab/doku.php?id=start:puredata_opencv]) AC_CANONICAL_HOST AM_INIT_AUTOMAKE AC_DISABLE_OPTION_CHECKING @@ -69,9 +70,27 @@ AM_SANITY_CHECK AM_MAINTAINER_MODE AM_WITH_DMALLOC -AC_CHECK_LIB(cv, cvSobel, , AC_MSG_ERROR(you need to install opencv library (libcv))) -AC_CHECK_LIB(highgui, cvNamedWindow, , AC_MSG_ERROR(you need to install high gui library (libhighgui))) -AC_CHECK_LIB(cvaux, cvSegmentImage, , AC_MSG_ERROR(you need to install opencv auxiliary library (libcvaux) )) +# Very basic check for OpenCV. This does not collect any compile flags; these +# are currently set in Makefile.in through pkg-config +# TODO: use a more robust and well-established OpenCV configure approach +AC_CHECK_LIB([cv], [cvSobel], [], [ + # try another lib name used in other versions of OpenCV + AC_CHECK_LIB([opencv_imgproc], [cvSobel], [], + [AC_MSG_ERROR([[missing a library from opencv try installing libcv]]) + ]) +]) + +AC_CHECK_LIB([highgui], [cvNamedWindow], [], [ + AC_CHECK_LIB([opencv_highgui], [cvNamedWindow], [], [ + AC_MSG_ERROR([[missing a library from opencv, try installing libhighgui]]) + ]) +]) + +AC_CHECK_LIB([cvaux], [cvSegmentImage], [], [ + AC_CHECK_LIB([opencv_legacy], [cvSegmentImage], [], [ + AC_MSG_ERROR([[missing a library from opencv try installing libcvaux]]) + ]) +]) echo -n "looking for pd sources (required) ... " if test -f $PD_DIR/src/m_pd.h -- cgit v1.2.1