dnl Checks for libraries.
-AC_CHECK_LIB(fltk,main,LIBS="$LIBS `fltk-config --use-images --ldflags`"
- LDFLAGS="$LDFLAGS `fltk-config --use-images --ldflags`"
- CPPFLAGS="$CPPFLAGS `fltk-config --cxxflags`",
- AC_MSG_ERROR(fltk library required get it at http://www.fltk.org))
-
# The following are C++ items that need to be tested for with the c++
# compiler
AC_LANG_PUSH(C++)
+AC_CHECK_LIB(fltk,fl_yes,LIBS="$LIBS `fltk-config --use-images --ldflags`"
+ LDFLAGS="$LDFLAGS `fltk-config --use-images --ldflags`"
+ CPPFLAGS="$CPPFLAGS `fltk-config --cxxflags`",
+ AC_MSG_ERROR(fltk library required get it at http://www.fltk.org))
+
# Check for "plib" without which we cannot go on
AC_CHECK_HEADER(plib/ul.h)
if test "x$ac_cv_header_plib_ul_h" != "xyes"; then
AC_DEFINE([HAVE_ZLIB], 1, [Define to enable gz compressed tar archives])
fi
-dnl Check for system installed zlib
-AC_CHECK_HEADER(libtar.h)
-if test "x$ac_cv_header_libtar_h" != "xyes"; then
- echo
- echo "libtar library not found."
- echo
- echo "If your OS does not provide an installable package for libtar"
- echo "you will have to compile and install it first yourself."
- echo
- echo "configure aborted."
- echo
- exit
-fi
-
dnl Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS( errno.h fcntl.h sys/types.h sys/stat.h )