Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Test related to old TooN/new gcc

  • Loading branch information...
commit 9ba9388c80e39862128faed3ff922b5e68870a10 1 parent 04f39fa
edrosten authored

Showing 3 changed files with 79 additions and 0 deletions. Show diff stats Hide diff stats

  1. +54 0 configure
  2. +19 0 configure.in
  3. +6 0 cvd/documentation.h
54 configure
@@ -7937,6 +7937,60 @@ fi
7937 7937
7938 7938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7939 7939
  7940 + { echo "$as_me:$LINENO: checking Old TooN" >&5
  7941 +echo $ECHO_N "checking Old TooN... $ECHO_C" >&6; }
  7942 +
  7943 + cat >conftest.$ac_ext <<_ACEOF
  7944 +#include <TooN/TooN.h>
  7945 + using namespace TooN;
  7946 + int main()
  7947 + {
  7948 + Matrix<> m1(10,10);
  7949 + Matrix<3,3> m2;
  7950 + m1.slice(0,0,3,3) += m2;
  7951 + return 0;
  7952 + }
  7953 +_ACEOF
  7954 +rm -f conftest.$ac_objext
  7955 +if { (ac_try="$ac_compile"
  7956 +case "(($ac_try" in
  7957 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7958 + *) ac_try_echo=$ac_try;;
  7959 +esac
  7960 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7961 + (eval "$ac_compile") 2>conftest.er1
  7962 + ac_status=$?
  7963 + grep -v '^ *+' conftest.er1 >conftest.err
  7964 + rm -f conftest.er1
  7965 + cat conftest.err >&5
  7966 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7967 + (exit $ac_status); } && {
  7968 + test -z "$ac_cxx_werror_flag" ||
  7969 + test ! -s conftest.err
  7970 + } && test -s conftest.$ac_objext; then
  7971 + { echo "$as_me:$LINENO: result: no" >&5
  7972 +echo "${ECHO_T}no" >&6; }
  7973 +else
  7974 + echo "$as_me: failed program was:" >&5
  7975 +sed 's/^/| /' conftest.$ac_ext >&5
  7976 +
  7977 + { echo "$as_me:$LINENO: result: yes" >&5
  7978 +echo "${ECHO_T}yes" >&6; }; a=1
  7979 +fi
  7980 +
  7981 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7982 +
  7983 + if test x$a = x1
  7984 + then
  7985 + { echo "$as_me:$LINENO: WARNING: Your version of TooN is too old for this version of GCC.
  7986 +You need a recent version (SNAPSHOT_20080725 or later), or GCC version
  7987 +less than 4.2.0.
  7988 + " >&5
  7989 +echo "$as_me: WARNING: Your version of TooN is too old for this version of GCC.
  7990 +You need a recent version (SNAPSHOT_20080725 or later), or GCC version
  7991 +less than 4.2.0.
  7992 + " >&2;}
  7993 + fi
7940 7994
7941 7995
7942 7996 if test x$a == x
19 configure.in
@@ -591,6 +591,25 @@ CHECK_FOR_OPTION(toon, [
591 591 AC_COMPILE_IFELSE([#include <TooN/TooN.h>
592 592 int main(){TooN::Vector<2> v;return 0;}], [AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no); a=1])
593 593
  594 + AC_MSG_CHECKING([Old TooN])
  595 +
  596 + AC_COMPILE_IFELSE([#include <TooN/TooN.h>
  597 + using namespace TooN;
  598 + int main()
  599 + {
  600 + Matrix<> m1(10,10);
  601 + Matrix<3,3> m2;
  602 + m1.slice(0,0,3,3) += m2;
  603 + return 0;
  604 + }], [AC_MSG_RESULT(no)],[AC_MSG_RESULT(yes); a=1])
  605 +
  606 + if test x$a = x1
  607 + then
  608 + AC_MSG_WARN([Your version of TooN is too old for this version of GCC.
  609 +You need a recent version (SNAPSHOT_20080725 or later), or GCC version
  610 +less than 4.2.0.
  611 + ])
  612 + fi
594 613 ])
595 614
596 615 CHECK_FOR_OPTION(lapack, [
6 cvd/documentation.h
@@ -119,6 +119,12 @@ The normal system works:
119 119
120 120 libCVD fully supports parallel builds (<code>make -j2</code> for instance).
121 121
  122 +\subsection slBugs Library bugs/issues
  123 + There are a few known library bugs which prevent the libraries working with libCVD
  124 +
  125 + - TooN: If you have gcc >= 4.2.0 you need a version of TooN at least as recent as SNAPSHOT_20080725.
  126 +
  127 +
122 128 \subsection scBugs Compiler bugs
123 129 There are a few known compiler bugs which affect libCVD on various platforms.
124 130

0 comments on commit 9ba9388

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