2 AC_INIT([aweather], [0.5.2], [andy753421@gmail.com])
3 AM_INIT_AUTOMAKE([-Wall -Werror -Wno-portability foreign])
4 AC_CONFIG_HEADERS([config.h])
5 AC_CONFIG_MACRO_DIR([m4])
6 #AM_SILENT_RULES([yes])
8 # Check for required programs
17 # Check for required packages
18 PKG_CHECK_MODULES(GLIB, glib-2.0)
19 PKG_CHECK_MODULES(GRITS, grits >= 0.5)
21 # Define odd RSL install location
22 AC_CHECK_LIB(rsl, RSL_wsr88d_to_radar, RSL_LIBS="-lrsl")
23 AM_CONDITIONAL(HAVE_RSL, test "$RSL_LIBS" != "")
26 # Test for Windows vs. Unix
28 *mingw32*) WIN32="yes" ;;
31 if test "$WIN32" = yes; then
34 AM_CONDITIONAL([WIN32], test "$WIN32" = "yes")
49 # Print status messages
50 if test "$RSL_LIBS" = ""; then
51 echo " ** Warning, RSL not found, radar plugin disabled"