]> Pileus Git - aweather/blob - configure.ac
Splitting out libgis
[aweather] / configure.ac
1 # Init and options
2 AC_INIT([aweather], [0.3-p0], [spenceal@rose-hulman.edu])
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])
7
8 # Check for required programs
9 AC_PROG_CC
10 AC_PROG_LIBTOOL
11 PKG_PROG_PKG_CONFIG
12 GTK_DOC_CHECK(1.9)
13
14 # Check for required packages
15 PKG_CHECK_MODULES(GIS, libgis)
16
17 # Define odd RSL install location
18 AC_CHECK_LIB(rsl, RSL_wsr88d_to_radar, RSL_LIBS="-lrsl")
19 AM_CONDITIONAL(HAVE_RSL, test "$RSL_LIBS" != "")
20 AC_SUBST(RSL_LIBS)
21
22 # Output 
23 AC_CONFIG_FILES([
24         Makefile
25         src/Makefile
26         src/plugins/Makefile
27         data/Makefile
28         docs/Makefile
29 ])
30 AC_OUTPUT
31
32 # Print status messages
33 if test "$RSL_LIBS" = ""; then
34         echo " ** Warning, RSL not found, radar plugin disabled"
35 fi