X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;ds=sidebyside;f=configure.ac;h=4b8999cb0f80c6746f5b5640670411035ce113bc;hb=refs%2Ftags%2Fv0.3;hp=9dbac1efe1614c1476f58f421ef99e6970ed2bd8;hpb=807100ae8d20f0a22ab3bcf72c88c0c4a03ec112;p=aweather diff --git a/configure.ac b/configure.ac index 9dbac1e..4b8999c 100644 --- a/configure.ac +++ b/configure.ac @@ -1,23 +1,34 @@ # Init and options -AC_INIT([aweather], [0.1], [spenceal@rose-hulman.edu]) +AC_INIT([aweather], [0.3], [spenceal@rose-hulman.edu]) AM_INIT_AUTOMAKE([-Wall -Werror -Wno-portability foreign]) AC_CONFIG_HEADERS([config.h]) +AC_CONFIG_MACRO_DIR([m4]) +#AM_SILENT_RULES([yes]) # Check for required programs AC_PROG_CC +AC_PROG_LIBTOOL PKG_PROG_PKG_CONFIG # Check for required packages -PKG_CHECK_MODULES(GTK, gtk+-2.0 gtkglext-1.0) -PKG_CHECK_MODULES(CURL, libcurl) +PKG_CHECK_MODULES(GIS, libgis = $VERSION) # Define odd RSL install location -AC_SUBST(RSL_CFLAGS, "-I/usr/local/trmm/GVBOX/include/") -AC_SUBST(RSL_LIBS, "-L/usr/local/trmm/GVBOX/lib/ -lrsl") +AC_CHECK_LIB(rsl, RSL_wsr88d_to_radar, RSL_LIBS="-lrsl") +AM_CONDITIONAL(HAVE_RSL, test "$RSL_LIBS" != "") +AC_SUBST(RSL_LIBS) # Output AC_CONFIG_FILES([ Makefile src/Makefile + src/plugins/Makefile + data/Makefile + docs/Makefile ]) AC_OUTPUT + +# Print status messages +if test "$RSL_LIBS" = ""; then + echo " ** Warning, RSL not found, radar plugin disabled" +fi