Commit 4bee377f authored by Brad Smith's avatar Brad Smith Committed by Rémi Denis-Courmont
Browse files

Fix up *BSD handling in Operating System check

This fixes up the *BSD handling within the Operating System check.
SYS is now set to the OS without the version attached as provided
by ${host_os} (.e.g. openbsd instead of openbsd5.1) to match all
the other OS's and simplifies other OS's checks further down. This
also allows the script to recognize DragonFly.
Signed-off-by: Rémi Denis-Courmont's avatarRémi Denis-Courmont <>
parent 900041eb
...@@ -108,19 +108,22 @@ case "${host_os}" in ...@@ -108,19 +108,22 @@ case "${host_os}" in
CFLAGS="${CFLAGS} -pthread" CFLAGS="${CFLAGS} -pthread"
VLC_ADD_LIBS([vcd cdda vcdx],[-ldvd]) VLC_ADD_LIBS([vcd cdda vcdx],[-ldvd])
;; ;;
*bsd*) freebsd*)
SYS="${host_os}" SYS=freebsd
CFLAGS="${CFLAGS} -pthread" CFLAGS="${CFLAGS} -pthread"
case "${host_os}" in CPPFLAGS="${CPPFLAGS} -I/usr/local/include"
freebsd*) LDFLAGS="${LDFLAGS} -L/usr/local/lib"
CPPFLAGS="${CPPFLAGS} -I/usr/local/include" ;;
LDFLAGS="${LDFLAGS} -L/usr/local/lib" openbsd*)
;; SYS=openbsd
openbsd*) CPPFLAGS="${CPPFLAGS} -I/usr/local/include -I/usr/X11R6/include"
CPPFLAGS="${CPPFLAGS} -I/usr/local/include -I/usr/X11R6/include" LDFLAGS="${LDFLAGS} -L/usr/local/lib -L/usr/X11R6/lib/"
LDFLAGS="${LDFLAGS} -L/usr/local/lib -L/usr/X11R6/lib/" ;;
;; netbsd*)
esac SYS=netbsd
;; ;;
darwin*) darwin*)
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