]> git.mxchange.org Git - flightgear.git/blobdiff - utils/fgadmin/configure.ac
general cleanups.
[flightgear.git] / utils / fgadmin / configure.ac
index 026267a9f99ac0ccf442bf5bbcce3c95e1cf6932..0b48693aa35e16aea94f7cb277f3af2784f4730f 100644 (file)
@@ -48,16 +48,16 @@ AC_CHECK_HEADER(windows.h)
 
 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
@@ -166,20 +166,6 @@ else
     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 )