X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=configure.ac;h=27116862571a389165036ce49b553ed00806ed32;hb=c66778bac36f8b1d827bd907307a084533427b33;hp=d938eb9c232f73e1d95f6edb050ec3376d34a52f;hpb=518768fdda018e6ee4089bd848350fe26e9c0cc1;p=aweather diff --git a/configure.ac b/configure.ac index d938eb9..2711686 100644 --- a/configure.ac +++ b/configure.ac @@ -1,5 +1,5 @@ # Init and options -AC_INIT([aweather], [0.3], [andy753421@gmail.com]) +AC_INIT([aweather], [0.4.1], [andy753421@gmail.com]) AM_INIT_AUTOMAKE([-Wall -Werror -Wno-portability foreign]) AC_CONFIG_HEADERS([config.h]) AC_CONFIG_MACRO_DIR([m4]) @@ -8,6 +8,7 @@ AC_CONFIG_MACRO_DIR([m4]) # Check for required programs AC_PROG_CC gl_EARLY +LT_PROG_RC AC_PROG_LIBTOOL PKG_PROG_PKG_CONFIG gl_INIT @@ -21,11 +22,22 @@ AC_CHECK_LIB(rsl, RSL_wsr88d_to_radar, RSL_LIBS="-lrsl") AM_CONDITIONAL(HAVE_RSL, test "$RSL_LIBS" != "") AC_SUBST(RSL_LIBS) +# Test for Windows vs. Unix +case "${host}" in + *mingw32*) WIN32="yes" ;; + *) WIN32="no" ;; +esac +if test "$WIN32" = yes; then + ac_default_prefix="/" +fi +AM_CONDITIONAL([WIN32], test "$WIN32" = "yes") + # Output AC_CONFIG_FILES([ Makefile lib/Makefile src/Makefile + src/resource.rc src/plugins/Makefile data/Makefile data/main.ui