]> Pileus Git - aweather/blob - configure.ac
24494211ef3ef4881314480aa688647b1480c2ef
[aweather] / configure.ac
1 # Init and options
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])
7
8 # Check for required programs
9 AC_PROG_CC
10 gl_EARLY
11 LT_PROG_RC
12 AC_PROG_LIBTOOL
13 DOLT
14 PKG_PROG_PKG_CONFIG
15 gl_INIT
16
17 # Check for required packages
18 PKG_CHECK_MODULES(GLIB,  glib-2.0)
19 PKG_CHECK_MODULES(GRITS, grits >= 0.5)
20
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" != "")
24 AC_SUBST(RSL_LIBS)
25
26 # Test for Windows vs. Unix
27 case "${host}" in
28         *mingw32*) WIN32="yes" ;;
29         *)         WIN32="no"  ;;
30 esac
31 if test "$WIN32" = yes; then
32         ac_default_prefix="/"
33 fi
34 AM_CONDITIONAL([WIN32], test "$WIN32" = "yes")
35
36 # Output 
37 AC_CONFIG_FILES([
38         Makefile
39         lib/Makefile
40         src/Makefile
41         src/resource.rc
42         src/plugins/Makefile
43         data/Makefile
44         data/main.ui
45         docs/Makefile
46 ])
47 AC_OUTPUT
48
49 # Print status messages
50 if test "$RSL_LIBS" = ""; then
51         echo " ** Warning, RSL not found, radar plugin disabled"
52 fi