Commit 2840daff authored by Xavier Marchesini's avatar Xavier Marchesini

Please, please, don't forget those who use the --with-directx flag when
./configuring ! :p
Now, to configure directx, use the --enable-directx and --with-directx
if necessary.
parent 7602c536
This diff is collapsed.
...@@ -906,9 +906,17 @@ AC_ARG_ENABLE(directx, ...@@ -906,9 +906,17 @@ AC_ARG_ENABLE(directx,
then then
PLUGINS="${PLUGINS} directx" PLUGINS="${PLUGINS} directx"
if test "x$enableval" = "xyes" if test "x$enableval" = "xyes"
then
AC_ARG_WITH(directx,
[--with-directx=[name] Windows DirectX support (default enabled)])
if test "x$withval" = "x"
then then
AC_CHECK_HEADERS(directx.h, [LIB_DIRECTX="-lgdi32 -ldxguid"], AC_CHECK_HEADERS(directx.h, [LIB_DIRECTX="-lgdi32 -ldxguid"],
AC_MSG_ERROR([Cannot find DirectX headers !])) AC_MSG_ERROR([Cannot find DirectX headers !]))
else
LIB_DIRECTX="${LIB_DIRECTX} -L"$withval"/lib -lgdi32 -ldxguid"
INCLUDE="${INCLUDE} -I"$withval"/include"
fi
else else
AC_MSG_CHECKING(for directX headers in ${enableval}) AC_MSG_CHECKING(for directX headers in ${enableval})
if test -f ${enableval}/include/directx.h if test -f ${enableval}/include/directx.h
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment