X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=configure.ac;h=a2db4cfda05fafd56e8bad35c71e07388144e272;hp=39129322d1de7bf8f522bc144d23877580c5aeeb;hb=33842c860fe18ca8cf087905992885687434320c;hpb=9351bfa7871c88a5ad6e63f1d9c4483f50e4fed1 diff --git a/configure.ac b/configure.ac index 3912932..a2db4cf 100644 --- a/configure.ac +++ b/configure.ac @@ -42,6 +42,8 @@ case "${host}" in AC_MSG_ERROR([windres could not be found]) fi AC_SUBST(WINDRES) + AC_PATH_PROGS([MAKENSIS], [makensis]) + AC_SUBST(MAKENSIS) ;; *cygwin*) CYGWIN=yes @@ -51,8 +53,14 @@ case "${host}" in MACOSX=yes LIBS="$LIBS -Wl,-framework" ;; + *-linux-gnu*) + LINUX=yes + AC_PATH_PROGS([RPMBUILD], [rpmbuild]) + AC_SUBST(RPMBUILD) + ;; esac +AM_CONDITIONAL([LINUX], test "$LINUX" = "yes") AM_CONDITIONAL([WIN32], test "$WIN32" = "yes") @@ -168,6 +176,12 @@ AC_DEFINE_UNQUOTED([VERSION_MINOR], [${VERSION_MINOR:-0}], AC_DEFINE_UNQUOTED([VERSION_REVISION], [${VERSION_REVISION:-0}], [Define to revision version number component.]) +if test x$WIN32 = xyes +then + PVERSION="${VERSION_MAJOR:-0}.${VERSION_MINOR:-0}.${VERSION_REVISION:-0}.0" + AC_SUBST([PVERSION]) +fi + # these are used in src/yoink.rc @@ -295,6 +309,7 @@ AC_CONFIG_FILES([Makefile doc/yoink.6 extra/Makefile extra/yoink.spec + make-win32-installer.sh src/Makefile]) AC_CONFIG_HEADERS([src/config.h])