aboutsummaryrefslogtreecommitdiffstats
path: root/android-configure.sh
diff options
context:
space:
mode:
authorAlexey Tarasov <tarasov@dodologics.com>2009-09-01 02:07:51 +1100
committerJean-Baptiste Queru <jbq@google.com>2009-09-08 18:11:50 -0700
commit088232286a7814a92b5b0d4a34f243a2e857facc (patch)
treeff915e8834142b304953b751b5bb5b372f496c26 /android-configure.sh
parent37f0fd547e05c8bcfa59eee57c9988c1f3969fb1 (diff)
downloadexternal_qemu-088232286a7814a92b5b0d4a34f243a2e857facc.zip
external_qemu-088232286a7814a92b5b0d4a34f243a2e857facc.tar.gz
external_qemu-088232286a7814a92b5b0d4a34f243a2e857facc.tar.bz2
General changes to support freebsd system in building scripts
Diffstat (limited to 'android-configure.sh')
-rwxr-xr-xandroid-configure.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/android-configure.sh b/android-configure.sh
index 59ec9b4..16e0d4d 100755
--- a/android-configure.sh
+++ b/android-configure.sh
@@ -203,6 +203,12 @@ log "SDL-probe : SDL_LIBS = $SDL_LIBS"
EXTRA_CFLAGS="$SDL_CFLAGS"
EXTRA_LDFLAGS="$SDL_LIBS"
+case "$OS" in
+ freebsd-*)
+ EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -lpthread"
+ ;;
+esac
+
cat > $TMPC << EOF
#include <SDL.h>
#undef main
@@ -269,6 +275,8 @@ case "$OS" in
;;
linux-*) PROBE_ALSA=yes; PROBE_OSS=yes; PROBE_ESD=yes;
;;
+ freebsd-*) PROBE_OSS=yes;
+ ;;
windows) PROBE_WINAUDIO=yes
;;
esac
@@ -414,6 +422,9 @@ case "$OS" in
darwin-*) CONFIG_OS=DARWIN
BSD=1
;;
+ freebsd-*) CONFIG_OS=FREEBSD
+ BSD=1
+ ;;
windows*) CONFIG_OS=WIN32
;;
*) CONFIG_OS=$OS