From f2bb550da8353a7ab11d487b947ed702aa9a838f Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Mon, 7 Jan 2008 11:19:38 +0000 Subject: Basic framework for NSIS. --- configure.ac | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 63ef06f..f0ec22a 100755 --- a/configure.ac +++ b/configure.ac @@ -147,6 +147,21 @@ AC_SUBST(subdirs) dnl Check for optional perldoc (for building manual pages). AC_CHECK_PROG(HAVE_PERLDOC,perldoc,perldoc) +dnl Check for optional NSIS. +AC_ARG_WITH([nsis], + [AS_HELP_STRING([--with-nsis], + [use NSIS to build a Windows installer])], + [], + [with_nsis=no]) +MAKENSIS= +if test "x$with_nsis" != "xno"; then + AC_PATH_PROG(MAKENSIS,makensis,[],[$with_nsis:$PATH]) + if test "x$MAKENSIS" = "x"; then + AC_MSG_FAILURE([--with-nsis was given, but could not find MAKENSIS.EXE]) + fi +fi +AC_SUBST(MAKENSIS) + dnl Summary. echo "------------------------------------------------------------" echo "Thanks for downloading" $PACKAGE_STRING -- cgit