X-Git-Url: http://pileus.org/git/?p=aweather;a=blobdiff_plain;f=configure.ac;h=76f9d7ef1452c6d55b42a1e8779538d2b0f4f2e0;hp=da6af3d84fafc66a39b61ef66f8ab2a4e109064d;hb=0802b4ee72d913de2a05bf4cbdb1f64552992bf6;hpb=8206ff11b5450e27909f6867adbff8f6d051c315 diff --git a/configure.ac b/configure.ac index da6af3d..76f9d7e 100644 --- a/configure.ac +++ b/configure.ac @@ -1,9 +1,51 @@ -AC_INIT([aweather], [0.1], [spenceal@rose-hulman.edu]) -AM_INIT_AUTOMAKE([-Wall -Werror foreign]) -AC_PROG_CC +# Init and options +AC_INIT([aweather], [0.5], [andy753421@gmail.com]) +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 +gl_EARLY +LT_PROG_RC +AC_PROG_LIBTOOL +PKG_PROG_PKG_CONFIG +gl_INIT + +# Check for required packages +PKG_CHECK_MODULES(GLIB, glib-2.0) +PKG_CHECK_MODULES(GRITS, grits = $VERSION) + +# Define odd RSL install location +AC_CHECK_LIB(rsl, RSL_wsr88d_to_radar, RSL_LIBS="-lrsl") +AM_CONDITIONAL(HAVE_RSL, test "$RSL_LIBS" != "") +AC_SUBST(RSL_LIBS) + +# Test for Windows vs. Unix +case "${host}" in + *mingw32*) WIN32="yes" ;; + *) WIN32="no" ;; +esac +if test "$WIN32" = yes; then + ac_default_prefix="/" +fi +AM_CONDITIONAL([WIN32], test "$WIN32" = "yes") + +# Output AC_CONFIG_FILES([ Makefile + lib/Makefile src/Makefile + src/resource.rc + src/plugins/Makefile + data/Makefile + data/main.ui + docs/Makefile ]) AC_OUTPUT + +# Print status messages +if test "$RSL_LIBS" = ""; then + echo " ** Warning, RSL not found, radar plugin disabled" +fi