]> Pileus Git - aweather/blob - configure.ac
Add desktop files and pixmaps
[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(GLIB, glib-2.0 >= 2.14 gobject-2.0 gthread-2.0 gmodule-export-2.0)
16 PKG_CHECK_MODULES(GTK,  gtk+-2.0 >= 2.16 gtkglext-1.0)
17 PKG_CHECK_MODULES(SOUP, libsoup-2.4 >= 2.26)
18
19 # Define odd RSL install location
20 AC_CHECK_LIB(rsl, RSL_wsr88d_to_radar, RLS_LIBS="-lrsl")
21 AM_CONDITIONAL(HAVE_RSL, test "$RSL_LIBS" != "")
22
23 # Output 
24 AC_CONFIG_FILES([
25         Makefile
26         src/Makefile
27         src/gis/Makefile
28         src/gis/libgis.pc
29         src/plugins/Makefile
30         data/Makefile
31         docs/Makefile
32         docs/api/Makefile
33 ])
34 AC_OUTPUT
35
36 # Print status messages
37 if test "$RSL_LIBS" = ""; then
38         echo " ** Warning, RSL not found, radar plugin disabled"
39 fi