From cc0a133a616aeff57887b27497e4a978b5697c04 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 18 May 2008 12:15:29 +0000 Subject: use native openal library on win32 --- configure.in | 5 ++++- src/sys/sys.cc | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/configure.in b/configure.in index 6ea1e8c..e4ec169 100644 --- a/configure.in +++ b/configure.in @@ -67,6 +67,7 @@ case "$host" in *-*-mingw*) HOST_LIBS="-lws2_32" HOST_GL_LIBS="-lopengl32 -lglu32" + HOST_AL_LIBS="-lOpenAL32" ICON_CLIENT="osirion-res.o" ICON_SERVER="osiriond-res.o" AC_MSG_RESULT(win32) @@ -74,6 +75,7 @@ case "$host" in *) HOST_LIBS="" HOST_GL_LIBS="-lGL -lGLU" + HOST_AL_LIBS="-lopenal" ICON_CLIENT="" ICON_SERVER="" AC_MSG_RESULT(generic unix) @@ -131,7 +133,7 @@ AC_CHECK_HEADER(AL/al.h, HAVE_OPENAL=no ) -AL_LIBS="-lopenal" +AL_LIBS="$HOST_AL_LIBS" AC_SUBST(AL_LIBS) AC_MSG_CHECKING([looking for SDL]) @@ -208,6 +210,7 @@ Configuration summary: flags .............. $CXXFLAGS libraries .......... $HOST_LIBS opengl ............. $GL_LIBS + openal ............. $AL_LIBS Installation directories: prefix ............. $PACKAGE_PREFIX diff --git a/src/sys/sys.cc b/src/sys/sys.cc index 36a40a0..10b7897 100644 --- a/src/sys/sys.cc +++ b/src/sys/sys.cc @@ -29,10 +29,12 @@ namespace sys { void mkdir(std::string const &path) { #ifdef _WIN32 +/* std::string p(path); for (size_t i = 0; i < p.size(); i++) if (p[i] == '/') p[i] = '\\'; mkdir(p.c_str()); +*/ #else ::mkdir(path.c_str(), 0777); -- cgit v1.2.3