Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.in5
-rw-r--r--src/sys/sys.cc2
2 files changed, 6 insertions, 1 deletions
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);