fltk 1.4.x compatability

* changes to insure upward compatability
This commit is contained in:
dave-w1hkj 2023-10-17 19:05:37 -05:00
parent e988a7d1f3
commit 55edeba13f

View file

@ -22,7 +22,8 @@ AC_DEFUN([AC_CHECK_FLTK], [
if test $? -ne 0; then
AC_MSG_ERROR([$FLTK_CONFIG failed])
fi
if test -n "$(expr $FLTK_API_VERSION : '1\.1[3]')"; then
if test "x$FLTK_API_VERSION" = "x1.3" ||
test "x$FLTK_API_VERSION" = "x1.4"; then
HAVE_FLTK_API_VERSION=yes
fi
@ -38,7 +39,7 @@ AC_DEFUN([AC_CHECK_FLTK], [
if test "${HAVE_FLTK_API_VERSION}" = "no"; then
AC_MSG_ERROR([
*** The version of FLTK found on your system provides API version $FLTK_API_VERSION.
*** To build $PACKAGE you need a FLTK version that provides API 1.1 or 1.3.
*** To build $PACKAGE you need a FLTK version that provides API 1.3 or 1.4.
])
fi
FLTK_CFLAGS=`$FLTK_CONFIG --cxxflags`