Check for RSL in configure.ac
[grits] / 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
7 # Check for required programs
8 AC_PROG_CC
9 AC_PROG_LIBTOOL
10 PKG_PROG_PKG_CONFIG
11 GTK_DOC_CHECK(1.9)
12
13 # Check for required packages
14 PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.14 gobject-2.0 gthread-2.0 gmodule-export-2.0)
15 PKG_CHECK_MODULES(GTK,  gtk+-2.0 >= 2.16 gtkglext-1.0)
16 PKG_CHECK_MODULES(SOUP, libsoup-2.4 >= 2.26)
17
18 # Define odd RSL install location
19 AC_CHECK_LIB(rsl, RSL_wsr88d_to_radar, RLS_LIBS="-lrsl")
20 AM_CONDITIONAL(HAVE_RSL, test "$RSL_LIBS" != "")
21
22 # Output 
23 AC_CONFIG_FILES([
24         Makefile
25         src/Makefile
26         src/gis/Makefile
27         src/gis/libgis.pc
28         src/plugins/Makefile
29         data/Makefile
30         docs/Makefile
31         docs/api/Makefile
32 ])
33 AC_OUTPUT
34
35 # Print status messages
36 if test "$RSL_LIBS" = ""; then
37         echo " ** Warning, RSL not found, radar plugin disabled"
38 fi