# Process this file with autoconf to produce a configure script. AC_INIT(QComicBook, 0.3.4, pawel.stolowski@wp.pl) AM_INIT_AUTOMAKE(qcomicbook, 0.3.4) AC_CONFIG_HEADERS([src/config.h]) AC_PREFIX_DEFAULT([/usr/local]) # Checks for programs. AC_PROG_CXX AC_PROG_CC # Checks for libraries. # Checks for header files. #AC_HEADER_STDC # Checks for typedefs, structures, and compiler characteristics. AC_C_CONST # Checks for library functions. #AC_PROG_GCC_TRADITIONAL BNV_HAVE_QT if test "x$have_qt" = "xno" then AC_MSG_ERROR("Qt library is required to compile QComicBook!", 1) fi # # custom test for correct Qt version AC_LANG(C++) #save_CPPFLAGS="$CPPFLAGS" #CPPFLAGS="$CPPFLAGS $QT_CXXFLAGS $QT_LIBS" #AC_MSG_CHECKING([for correct version of Qt (>=3.3.1)]) #AC_RUN_IFELSE( # [AC_LANG_PROGRAM([[#include #include ]],[[exit(QT_VERSION<0x030301);]])], # [AC_MSG_RESULT(yes)], [AC_MSG_ERROR(Too old!)],[]) #CPPFLAGS="$save_CPPFLAGS" PKG_CHECK_MODULES(Imlib2,imlib2,ac_imlib=yes,ac_imlib=no) if test "x$ac_imlib" = "xno" then AC_MSG_ERROR("Imlib2 not found!", 1) fi AC_SUBST(Imlib2_CFLAGS) AC_SUBST(Imlib2_LIBS) AC_CONFIG_FILES([Makefile src/Makefile icons/Makefile help/Makefile help/en/Makefile]) AC_OUTPUT()