Skip to content
Browse files

Add check for highgui.h and cvaux.h (fixes lp:#577562)

  • Loading branch information...
1 parent f4928d8 commit aa8b8f2ae911f54f1990ac608ae96abd1540335a @Elleo committed May 10, 2010
Showing with 21 additions and 0 deletions.
  1. +5 −0 ChangeLog
  2. +16 −0 configure.ac
View
5 ChangeLog
@@ -1,3 +1,8 @@
+2010-05-10 Mike Sheldon <mike@mikeasoft.com>
+
+ * configure.ac:
+ Add configure check for highgui.h and cvaux.h
+
2010-04-14 Mike Sheldon <mike@mikeasoft.com>
* configure.ac:
View
16 configure.ac
@@ -129,6 +129,22 @@ if test "x$HAVE_GSTCTRL" = "xno"; then
AC_MSG_NOTICE(no GStreamer Controller libraries found (gstreamer-controller-$GST_MAJORMINOR))
fi
+AC_PROG_CXX
+AC_LANG_CPLUSPLUS
+OLD_CPPFLAGS=$CPPFLAGS
+CPPFLAGS=$OPENCV_CFLAGS
+AC_CHECK_HEADER(highgui.h, HAVE_HIGHGUI="yes", HAVE_HIGHGUI="no")
+if test "x$HAVE_HIGHGUI" = "xno"; then
+ AC_MSG_ERROR(highgui.h could not be found.)
+fi
+
+AC_CHECK_HEADER(cvaux.h, HAVE_CVAUX="yes", HAVE_CVAUX="no")
+if test "x$HAVE_CVAUX" = "xno"; then
+ AC_MSG_ERROR(cvaux.h could not be found.)
+fi
+CPPFLAGS=$OLD_CPPFLAGS
+AC_LANG_C
+
dnl make _CFLAGS and _LIBS available
AC_SUBST(GSTCTRL_CFLAGS)
AC_SUBST(GSTCTRL_LIBS)

0 comments on commit aa8b8f2

Please sign in to comment.
Something went wrong with that request. Please try again.