Commit 04c93734 authored by Christophe Massiot's avatar Christophe Massiot

Added --with-sdl-config-path option if you sdl-config is not in $PATH.

parent c107309f
This diff is collapsed.
...@@ -609,18 +609,25 @@ AC_ARG_ENABLE(sdl, ...@@ -609,18 +609,25 @@ AC_ARG_ENABLE(sdl,
[ --disable-sdl SDL support (default enabled)]) [ --disable-sdl SDL support (default enabled)])
if test "x$enable_sdl" != "xno" if test "x$enable_sdl" != "xno"
then then
AC_PATH_PROG(SDL12_CONFIG, sdl12-config, no) SDL_PATH=$PATH
AC_ARG_WITH(sdl-config-path,
[ --with-sdl-config-path=path sdl-config path (default search in \$PATH)],
[ if test "x$withval" != "xno"
then
SDL_PATH=$withval:$PATH
fi ])
AC_PATH_PROG(SDL12_CONFIG, sdl12-config, no, $SDL_PATH)
SDL_CONFIG=${SDL12_CONFIG} SDL_CONFIG=${SDL12_CONFIG}
SDL_HEADER="SDL12/SDL.h" SDL_HEADER="SDL12/SDL.h"
if test x${SDL_CONFIG} = xno if test x${SDL_CONFIG} = xno
then then
AC_PATH_PROG(SDL11_CONFIG, sdl11-config, no) AC_PATH_PROG(SDL11_CONFIG, sdl11-config, no, $SDL_PATH)
SDL_CONFIG=${SDL11_CONFIG} SDL_CONFIG=${SDL11_CONFIG}
SDL_HEADER="SDL11/SDL.h" SDL_HEADER="SDL11/SDL.h"
fi fi
if test x${SDL_CONFIG} = xno if test x${SDL_CONFIG} = xno
then then
AC_PATH_PROG(SDL_CONFIG, sdl-config, no) AC_PATH_PROG(SDL_CONFIG, sdl-config, no, $SDL_PATH)
SDL_HEADER="SDL/SDL.h" SDL_HEADER="SDL/SDL.h"
fi fi
if test x${SDL_CONFIG} != xno if test x${SDL_CONFIG} != xno
......
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