Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Test related to old TooN/new gcc

  • Loading branch information...
commit 9ba9388c80e39862128faed3ff922b5e68870a10 1 parent 04f39fa
edrosten authored
Showing with 79 additions and 0 deletions.
  1. +54 −0 configure
  2. +19 −0 configure.in
  3. +6 −0 cvd/documentation.h
View
54 configure
@@ -7937,6 +7937,60 @@ fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ { echo "$as_me:$LINENO: checking Old TooN" >&5
+echo $ECHO_N "checking Old TooN... $ECHO_C" >&6; }
+
+ cat >conftest.$ac_ext <<_ACEOF
+#include <TooN/TooN.h>
+ using namespace TooN;
+ int main()
+ {
+ Matrix<> m1(10,10);
+ Matrix<3,3> m2;
+ m1.slice(0,0,3,3) += m2;
+ return 0;
+ }
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_cxx_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ { echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6; }
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ { echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6; }; a=1
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+
+ if test x$a = x1
+ then
+ { echo "$as_me:$LINENO: WARNING: Your version of TooN is too old for this version of GCC.
+You need a recent version (SNAPSHOT_20080725 or later), or GCC version
+less than 4.2.0.
+ " >&5
+echo "$as_me: WARNING: Your version of TooN is too old for this version of GCC.
+You need a recent version (SNAPSHOT_20080725 or later), or GCC version
+less than 4.2.0.
+ " >&2;}
+ fi
if test x$a == x
View
19 configure.in
@@ -591,6 +591,25 @@ CHECK_FOR_OPTION(toon, [
AC_COMPILE_IFELSE([#include <TooN/TooN.h>
int main(){TooN::Vector<2> v;return 0;}], [AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no); a=1])
+ AC_MSG_CHECKING([Old TooN])
+
+ AC_COMPILE_IFELSE([#include <TooN/TooN.h>
+ using namespace TooN;
+ int main()
+ {
+ Matrix<> m1(10,10);
+ Matrix<3,3> m2;
+ m1.slice(0,0,3,3) += m2;
+ return 0;
+ }], [AC_MSG_RESULT(no)],[AC_MSG_RESULT(yes); a=1])
+
+ if test x$a = x1
+ then
+ AC_MSG_WARN([Your version of TooN is too old for this version of GCC.
+You need a recent version (SNAPSHOT_20080725 or later), or GCC version
+less than 4.2.0.
+ ])
+ fi
])
CHECK_FOR_OPTION(lapack, [
View
6 cvd/documentation.h
@@ -119,6 +119,12 @@ The normal system works:
libCVD fully supports parallel builds (<code>make -j2</code> for instance).
+\subsection slBugs Library bugs/issues
+ There are a few known library bugs which prevent the libraries working with libCVD
+
+ - TooN: If you have gcc >= 4.2.0 you need a version of TooN at least as recent as SNAPSHOT_20080725.
+
+
\subsection scBugs Compiler bugs
There are a few known compiler bugs which affect libCVD on various platforms.
Please sign in to comment.
Something went wrong with that request. Please try again.