aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xconfigure210
-rwxr-xr-xconfigure.ac27
2 files changed, 209 insertions, 28 deletions
diff --git a/configure b/configure
index 2b59512..5ae4262 100755
--- a/configure
+++ b/configure
@@ -1,6 +1,8 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.67.
+# Generated by GNU Autoconf 2.67 for pdp_opencv 0.2-rc6-svn.
+#
+# Report bugs to <lluisgomez@hangar.org>.
#
#
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
@@ -228,10 +230,11 @@ fi
$as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
$as_echo "$0: be upgraded to zsh 4.3.4 or later."
else
- $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
-$0: including any error possibly output before this
-$0: message. Then install a modern shell, or manually run
-$0: the script under such a shell if you do have one."
+ $as_echo "$0: Please tell bug-autoconf@gnu.org and
+$0: lluisgomez@hangar.org about your system, including any
+$0: error possibly output before this message. Then install
+$0: a modern shell, or manually run the script under such a
+$0: shell if you do have one."
fi
exit 1
fi
@@ -547,12 +550,12 @@ MFLAGS=
MAKEFLAGS=
# Identity of this package.
-PACKAGE_NAME=
-PACKAGE_TARNAME=
-PACKAGE_VERSION=
-PACKAGE_STRING=
-PACKAGE_BUGREPORT=
-PACKAGE_URL=
+PACKAGE_NAME='pdp_opencv'
+PACKAGE_TARNAME='pdp_opencv-dev'
+PACKAGE_VERSION='0.2-rc6-svn'
+PACKAGE_STRING='pdp_opencv 0.2-rc6-svn'
+PACKAGE_BUGREPORT='lluisgomez@hangar.org'
+PACKAGE_URL='http://www.hangar.org/wikis/lab/doku.php?id=start:puredata_opencv'
enable_option_checking=no
ac_subst_vars='LTLIBOBJS
@@ -688,7 +691,7 @@ sharedstatedir='${prefix}/com'
localstatedir='${prefix}/var'
includedir='${prefix}/include'
oldincludedir='/usr/include'
-docdir='${datarootdir}/doc/${PACKAGE}'
+docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
infodir='${datarootdir}/info'
htmldir='${docdir}'
dvidir='${docdir}'
@@ -1190,7 +1193,7 @@ if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
-\`configure' configures this package to adapt to many kinds of systems.
+\`configure' configures pdp_opencv 0.2-rc6-svn to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
@@ -1238,7 +1241,7 @@ Fine tuning of the installation directories:
--infodir=DIR info documentation [DATAROOTDIR/info]
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
--mandir=DIR man documentation [DATAROOTDIR/man]
- --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
+ --docdir=DIR documentation root [DATAROOTDIR/doc/pdp_opencv-dev]
--htmldir=DIR html documentation [DOCDIR]
--dvidir=DIR dvi documentation [DOCDIR]
--pdfdir=DIR pdf documentation [DOCDIR]
@@ -1259,7 +1262,9 @@ _ACEOF
fi
if test -n "$ac_init_help"; then
-
+ case $ac_init_help in
+ short | recursive ) echo "Configuration of pdp_opencv 0.2-rc6-svn:";;
+ esac
cat <<\_ACEOF
Optional Features:
@@ -1290,7 +1295,8 @@ Some influential environment variables:
Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.
-Report bugs to the package provider.
+Report bugs to <lluisgomez@hangar.org>.
+pdp_opencv home page: <http://www.hangar.org/wikis/lab/doku.php?id=start:puredata_opencv>.
_ACEOF
ac_status=$?
fi
@@ -1353,7 +1359,7 @@ fi
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
-configure
+pdp_opencv configure 0.2-rc6-svn
generated by GNU Autoconf 2.67
Copyright (C) 2010 Free Software Foundation, Inc.
@@ -1533,7 +1539,7 @@ cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
-It was created by $as_me, which was
+It was created by pdp_opencv $as_me 0.2-rc6-svn, which was
generated by GNU Autoconf 2.67. Invocation command line was
$ $0 $@
@@ -4269,6 +4275,9 @@ fi
+# 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
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cvSobel in -lcv" >&5
$as_echo_n "checking for cvSobel in -lcv... " >&6; }
if test "${ac_cv_lib_cv_cvSobel+set}" = set; then :
@@ -4313,9 +4322,60 @@ _ACEOF
LIBS="-lcv $LIBS"
else
- as_fn_error $? "you need to install opencv library (libcv)" "$LINENO" 5
+
+ # try another lib name used in other versions of OpenCV
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cvSobel in -lopencv_imgproc" >&5
+$as_echo_n "checking for cvSobel in -lopencv_imgproc... " >&6; }
+if test "${ac_cv_lib_opencv_imgproc_cvSobel+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lopencv_imgproc $LIBS"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char cvSobel ();
+int
+main ()
+{
+return cvSobel ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_lib_opencv_imgproc_cvSobel=yes
+else
+ ac_cv_lib_opencv_imgproc_cvSobel=no
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_opencv_imgproc_cvSobel" >&5
+$as_echo "$ac_cv_lib_opencv_imgproc_cvSobel" >&6; }
+if test "x$ac_cv_lib_opencv_imgproc_cvSobel" = x""yes; then :
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_LIBOPENCV_IMGPROC 1
+_ACEOF
+
+ LIBS="-lopencv_imgproc $LIBS"
+
+else
+ as_fn_error $? "missing a library from opencv try installing libcv" "$LINENO" 5
+
fi
+
+fi
+
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cvNamedWindow in -lhighgui" >&5
$as_echo_n "checking for cvNamedWindow in -lhighgui... " >&6; }
if test "${ac_cv_lib_highgui_cvNamedWindow+set}" = set; then :
@@ -4360,9 +4420,60 @@ _ACEOF
LIBS="-lhighgui $LIBS"
else
- as_fn_error $? "you need to install high gui library (libhighgui)" "$LINENO" 5
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cvNamedWindow in -lopencv_highgui" >&5
+$as_echo_n "checking for cvNamedWindow in -lopencv_highgui... " >&6; }
+if test "${ac_cv_lib_opencv_highgui_cvNamedWindow+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lopencv_highgui $LIBS"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char cvNamedWindow ();
+int
+main ()
+{
+return cvNamedWindow ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_lib_opencv_highgui_cvNamedWindow=yes
+else
+ ac_cv_lib_opencv_highgui_cvNamedWindow=no
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_opencv_highgui_cvNamedWindow" >&5
+$as_echo "$ac_cv_lib_opencv_highgui_cvNamedWindow" >&6; }
+if test "x$ac_cv_lib_opencv_highgui_cvNamedWindow" = x""yes; then :
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_LIBOPENCV_HIGHGUI 1
+_ACEOF
+
+ LIBS="-lopencv_highgui $LIBS"
+
+else
+
+ as_fn_error $? "missing a library from opencv, try installing libhighgui" "$LINENO" 5
+
+fi
+
+
fi
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cvSegmentImage in -lcvaux" >&5
$as_echo_n "checking for cvSegmentImage in -lcvaux... " >&6; }
if test "${ac_cv_lib_cvaux_cvSegmentImage+set}" = set; then :
@@ -4407,7 +4518,57 @@ _ACEOF
LIBS="-lcvaux $LIBS"
else
- as_fn_error $? "you need to install opencv auxiliary library (libcvaux) " "$LINENO" 5
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cvSegmentImage in -lopencv_legacy" >&5
+$as_echo_n "checking for cvSegmentImage in -lopencv_legacy... " >&6; }
+if test "${ac_cv_lib_opencv_legacy_cvSegmentImage+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lopencv_legacy $LIBS"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char cvSegmentImage ();
+int
+main ()
+{
+return cvSegmentImage ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_lib_opencv_legacy_cvSegmentImage=yes
+else
+ ac_cv_lib_opencv_legacy_cvSegmentImage=no
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_opencv_legacy_cvSegmentImage" >&5
+$as_echo "$ac_cv_lib_opencv_legacy_cvSegmentImage" >&6; }
+if test "x$ac_cv_lib_opencv_legacy_cvSegmentImage" = x""yes; then :
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_LIBOPENCV_LEGACY 1
+_ACEOF
+
+ LIBS="-lopencv_legacy $LIBS"
+
+else
+
+ as_fn_error $? "missing a library from opencv try installing libcvaux" "$LINENO" 5
+
+fi
+
+
fi
@@ -5021,7 +5182,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
-This file was extended by $as_me, which was
+This file was extended by pdp_opencv $as_me 0.2-rc6-svn, which was
generated by GNU Autoconf 2.67. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
@@ -5068,13 +5229,14 @@ Usage: $0 [OPTION]... [TAG]...
Configuration files:
$config_files
-Report bugs to the package provider."
+Report bugs to <lluisgomez@hangar.org>.
+pdp_opencv home page: <http://www.hangar.org/wikis/lab/doku.php?id=start:puredata_opencv>."
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ac_cs_version="\\
-config.status
+pdp_opencv config.status 0.2-rc6-svn
configured by $0, generated by GNU Autoconf 2.67,
with options \\"\$ac_cs_config\\"
diff --git a/configure.ac b/configure.ac
index 7bc4dde..14da376 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([pdp_opencv],[0.2-rc6-svn],[lluisgomez@hangar.org],[pdp_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