# Init and options AC_INIT([aweather], [0.3], [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 AC_PROG_LIBTOOL PKG_PROG_PKG_CONFIG gl_INIT # Check for required packages PKG_CHECK_MODULES(GLIB, glib-2.0) PKG_CHECK_MODULES(GIS, libgis = $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) # Output AC_CONFIG_FILES([ Makefile lib/Makefile src/Makefile 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