-GTKMATHVIEW_CONFIG="gtkmathview-config"
-GTKMATHVIEW_MIN_VERSION=0.4.0
-AC_MSG_CHECKING([for gtkmathview library] >= $GTKMATHVIEW_MIN_VERSION)
-if test "x$GTKMATHVIEW_PREFIX" != "x"
-then
- if ${GTKMATHVIEW_PREFIX}/bin/$GTKMATHVIEW_CONFIG --version > /dev/null 2>&1
- then
- GTKMATHVIEW_CONFIG=${GTKMATHVIEW_PREFIX}/bin/$GTKMATHVIEW_CONFIG
- elif ! $GTKMATHVIEW_CONFIG --version > /dev/null 2>&1
- then
- AC_MSG_ERROR([Could not find gtkmathview anywhere (see config.log for details).])
- fi
-fi
-
-dnl
-dnl test version and init our variables
-dnl
-vers=`$GTKMATHVIEW_CONFIG --version | awk -F. '{ printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
-minvers=`echo $GTKMATHVIEW_MIN_VERSION | awk -F. '{ printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
-if test "$vers" -ge "$minvers"
-then
- GTKMATHVIEW_LIBS="`$GTKMATHVIEW_CONFIG --libs`"
- GTKMATHVIEW_CFLAGS="`$GTKMATHVIEW_CONFIG --cflags`"
- AC_MSG_RESULT(found)
-else
- AC_MSG_ERROR([You need at least gtkmathview $GTKMATHVIEW_MIN_VERSION for this version of $PACKAGE])
-fi
-