diff options
author | Avuton Olrich <avuton@gmail.com> | 2012-02-18 03:33:49 -0800 |
---|---|---|
committer | Avuton Olrich <avuton@gmail.com> | 2012-02-23 06:32:30 -0800 |
commit | 07429761382dc2dfc277bacf8b897a0d51402ab8 (patch) | |
tree | 83f95e10f68b539b6e0858e799843306431919d8 /configure.ac | |
parent | 1a63663c85b7e043c75310d8cc11e61c85087724 (diff) | |
download | mpd-07429761382dc2dfc277bacf8b897a0d51402ab8.tar.gz mpd-07429761382dc2dfc277bacf8b897a0d51402ab8.tar.xz mpd-07429761382dc2dfc277bacf8b897a0d51402ab8.zip |
win32: Add a Windows OS resource file and icon
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index f1de64575..95bc0183b 100644 --- a/configure.ac +++ b/configure.ac @@ -1,5 +1,12 @@ AC_PREREQ(2.60) + AC_INIT(mpd, 0.17~git, musicpd-dev-team@lists.sourceforge.net) + +VERSION_MAJOR=0 +VERSION_MINOR=17 +VERSION_REVISION=0 +VERSION_EXTRA=0 + AC_CONFIG_SRCDIR([src/main.c]) AM_INIT_AUTOMAKE([foreign 1.11 dist-bzip2 subdir-objects]) AM_SILENT_RULES @@ -58,6 +65,12 @@ AC_SUBST(AM_CPPFLAGS,"") AC_SUBST(AM_CFLAGS,"") AC_SUBST(AM_CXXFLAGS,"") +## Used for the windows resource file +AC_SUBST(VERSION_MAJOR) +AC_SUBST(VERSION_MINOR) +AC_SUBST(VERSION_REVISION) +AC_SUBST(VERSION_EXTRA) + dnl --------------------------------------------------------------------------- dnl OS Specific Defaults dnl --------------------------------------------------------------------------- @@ -65,10 +78,16 @@ AC_CANONICAL_HOST case "$host_os" in mingw32* | windows*) + AC_CONFIG_FILES([ + src/win/mpd_win32_rc.rc + ]) + AC_CHECK_TOOL(WINDRES, windres) AM_CPPFLAGS="$AM_CPPFLAGS -DWINVER=0x0501" LIBS="$LIBS -lws2_32" + HAVE_WINDOWS=1 ;; esac +AM_CONDITIONAL([HAVE_WINDOWS], [test $HAVE_WINDOWS -eq 1]) if test -z "$prefix" || test "x$prefix" = xNONE; then local_lib= |