AC_INIT(src/main.c) AM_CONFIG_HEADER(build-config.h) AM_INIT_AUTOMAKE(gpredict, 0.9.0) AM_MAINTAINER_MODE AC_PROG_INTLTOOL([0.21]) dnl check for programs AC_PROG_CC AC_ISC_POSIX AC_HEADER_STDC AM_PROG_LIBTOOL AC_CHECK_HEADERS([sys/time.h unistd.h getopt.h]) if test "${ac_cv_c_compiler_gnu}" = "yes"; then CFLAGS="${CFLAGS} -Wall" fi dnl chack for glib and gtk libraries pkg_modules="gtk+-2.0 >= 2.10.0 glib-2.0 >= 2.12.0 gthread-2.0 >= 2.12.0" PKG_CHECK_MODULES(PACKAGE, [$pkg_modules]) AC_SUBST(PACKAGE_CFLAGS) AC_SUBST(PACKAGE_LIBS) dnl check for libcurl PKG_CHECK_MODULES(LIBCURL, libcurl, [ CFLAGS="$CFLAGS $LIBCURL_CFLAGS"; LIBS="$LIBS $LIBCURL_LIBS"; havecurl=true; AC_DEFINE(HAVE_LIBCURL, 1, [Define if libcurl is available]) ], [ havecurl=false; AC_DEFINE(HAVE_LIBCURL, 0, [Define if libcurl is unvailable]) ]) dnl Add the languages which your application supports here. dnl Note that other progs only have ALL_LINGUAS and AM_GLIB_GNU_GETTEXT ALL_LINGUAS= GETTEXT_PACKAGE=gpredict AC_SUBST(GETTEXT_PACKAGE) AM_GLIB_GNU_GETTEXT AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", "definition of GETTEXT_PACKAGE") dnl compiler flags to enable generating coverage report dnl using gcov AC_ARG_ENABLE(coverage, [ --enable-coverage enable coverge reports],enable_coerage=yes,enable_coverage=no) if test "$enable_coverage" = yes ; then CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"; AC_DEFINE(ENABLE_COV, 1, [Define if hardware is disabled.]) fi GLIB_V=`pkg-config --modversion glib-2.0` GTHR_V=`pkg-config --modversion gthread-2.0` GDK_V=`pkg-config --modversion gdk-2.0` GTK_V=`pkg-config --modversion gtk+-2.0` if test "$havecurl" = true ; then CURL_V=`pkg-config --modversion libcurl` fi AC_SUBST(CFLAGS) AC_SUBST(LDFLAGS) AC_CONFIG_SUBDIRS(goocanv8) AC_OUTPUT([ Makefile doc/Makefile doc/man/gpredict.1 doc/man/Makefile src/Makefile src/sgpsdp/Makefile src/sgpsdp/TR/Makefile pixmaps/Makefile pixmaps/maps/Makefile pixmaps/icons/Makefile data/Makefile po/Makefile.in ]) echo echo SUMMARY: echo echo gpredict version... : $VERSION echo Glib version....... : $GLIB_V echo Gthread version.... : $GTHR_V echo Gdk version........ : $GDK_V echo Gtk+ version....... : $GTK_V if test "$havecurl" = true ; then echo Curl version....... : $CURL_V else echo Curl version....... : none fi echo Enable coverage.... : $enable_coverage echo