aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure12
1 files changed, 12 insertions, 0 deletions
diff --git a/configure b/configure
index 49fc71e026..68b39b3340 100755
--- a/configure
+++ b/configure
@@ -900,6 +900,12 @@ psp)
_host_os=psp
_host_cpu=mipsallegrexel
_host_alias=psp
+ if test -z "$PSPDEV"; then
+ PSPDEV=$(psp-config --pspdev-path)
+ fi
+ if test -d "$PSPDEV/psp/lib"; then
+ LDFLAGS="$LDFLAGS -L$PSPDEV/psp/lib"
+ fi
LDFLAGS="$LDFLAGS -L$PSPDEV/psp/sdk/lib -specs=$_srcdir/backends/platform/psp/psp.spec"
;;
ps2)
@@ -2307,6 +2313,12 @@ case $_backend in
DEFINES="$DEFINES -D__PSP__ -DDISABLE_TEXT_CONSOLE -DDISABLE_COMMAND_LINE -DDISABLE_DOSBOX_OPL"
INCLUDES="$INCLUDES -I$PSPDEV/psp/include/SDL"
LIBS="$LIBS -lpng -lSDL"
+ SDLLIBS=$($PSPDEV/psp/bin/sdl-config --libs)
+
+ if `echo "$SDLLIBS" | grep ".*-lGL.*" 1>/dev/null 2>&1`
+ then
+ LIBS="$LIBS -lGL"
+ fi
;;
ps2)
# TODO ps2