@@ -51,7 +51,7 @@ AC_CANONICAL_TARGET
5151
5252dnl Compute the canonical host-system type variable, 'host', and its three
5353dnl individual parts 'host_cpu', 'host_vendor', and 'host_os'.
54- dnl AC_CANONICAL_HOST
54+ AC_CANONICAL_HOST
5555
5656dnl Runs many macros required for proper operation of the generated Makefiles.
5757dnl see http://sources.redhat.com/automake/automake.html#Options for options
@@ -123,6 +123,11 @@ dnl AC_DEFINE writes values in config.h
123123dnl AC_DEFINE_UNQUOTED performs additional shell expansions, e.g. substitution
124124dnl of variable with value.
125125
126+
127+ AS_IF ( [ test "$host_os" = "mingw32"] , [
128+ CXXFLAGS="$CXXFLAGS -mwin32"
129+ ] )
130+
126131ENABLE_AUTO([ all] ,
127132 [ all renderers (use --enable-xyz to re-enable certain renderers)] ,
128133[
@@ -496,6 +501,9 @@ ENABLE_FORCED([gui], [graphical user interface (using Qt)],
496501 AC_CHECK_HEADER ( [ OpenGL/glu.h] , , [ have_gui=no] )
497502 LIBS="$LIBS -framework OpenGL"
498503 ] )
504+ AS_IF ( [ test "$host_os" = "mingw32"] , [
505+ LIBS="$LIBS -lglu32 -lopengl32"
506+ ] )
499507 AC_SEARCH_LIBS ( [ gluNewQuadric] , [ GLU] , , [ have_gui=no] )
500508 # on some systems this is needed, on the others it doesn't hurt:
501509 AC_SEARCH_LIBS ( [ glSelectBuffer] , [ GL] , , [ have_gui=no] )
@@ -562,6 +570,13 @@ ENABLE_AUTO([fudi-interface], [FUDI interface (needs Asio and {fmt})],
562570 [ have_fudi_interface=no] )
563571] )
564572
573+ AS_IF ( [ test "$host_os" = "mingw32"] , [
574+ AS_IF ( [ test x$have_ip_interface = xyes -o x$have_websocket_interface = xyes -o x$have_fudi_interface = xyes] ,
575+ [
576+ LIBS="$LIBS -lws2_32 -lwsock32"
577+ ] )
578+ ] )
579+
565580ENABLE_FORCED([ ecasound] , [ Ecasound soundfile playback/recording] ,
566581[
567582 dnl Checking for libecasoundc. It does not provide pkg-config and installs
@@ -728,14 +743,14 @@ ENABLE_EXPLICIT([windows-installer], [creation of an installer for Windows],
728743 AC_CHECK_PROG ( [ have_nsis] , [ nsis] , [ yes] , [ no] )
729744 AC_CHECK_PROG ( [ have_windeployqt] , [ windeployqt] , [ yes] , [ no] )
730745 AS_IF ( [ test x$enable_windows_installer = xyes -o x$enable_windows_installer = x] ,
731- [ WINDOWS_INSTALLER=SoundScapeRenderer- $PACKAGE_VERSION] ,
746+ [ WINDOWS_INSTALLER="SoundScape Renderer $PACKAGE_VERSION Installer" ] ,
732747 [ WINDOWS_INSTALLER=$enable_windows_installer] )
733748
734749 dnl WARNING: any user-specified --prefix, --bindir, ... is overwritten!
735750 dnl however, it can still be specified at make time (although kinda useless)!
736751 prefix=$(pwd)/windows-installer
737752 docdir=\${prefix}/Documentation
738- pkgdatadir=\${prefix}/PkgData
753+ pkgdatadir=\${prefix}/data
739754] )
740755
741756ENABLE_AUTO([ browser-gui] , [ creation of HTML/JavaScript files for browser GUI] ,
@@ -769,7 +784,8 @@ AC_SUBST(DEBUGGING_FLAGS)
769784
770785dnl List of output files generated by AC_OUTPUT from their respective *.in files
771786AC_CONFIG_FILES ( [ Makefile src/Makefile man/Makefile browser-gui/Makefile] )
772- AC_CONFIG_FILES ( [ tests/Makefile data/Makefile data/nsis/Makefile] )
787+ AC_CONFIG_FILES ( [ tests/Makefile data/Makefile] )
788+ AC_CONFIG_FILES ( [ data/nsis/Makefile data/nsis/installer-script.nsi] )
773789
774790dnl AC_OUTPUT should be the last command (except maybe some status messages)
775791dnl It generates and runs config.status, which in turn creates the Makefiles and
0 commit comments