summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-03-27 02:04:03 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-03-27 02:04:03 +0000
commit5420e790567641b738128edc90a43c43c3c596c4 (patch)
tree7f464e697100e6dfe0c33463d8c9acc7fa3f8e35
parent5a5acd6b1fdcffc96fbf25416f155cbf45b2fdaf (diff)
downloadmpv-5420e790567641b738128edc90a43c43c3c596c4.tar.bz2
mpv-5420e790567641b738128edc90a43c43c3c596c4.tar.xz
support for DragonFly BSD, patch by Hasso Tepper, hasso estpak ee
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26280 b3059339-0415-0410-9bf9-f77b7e298cf2
-rwxr-xr-xconfigure24
1 files changed, 17 insertions, 7 deletions
diff --git a/configure b/configure
index 05f91555ba..3691eb82ec 100755
--- a/configure
+++ b/configure
@@ -107,6 +107,7 @@ freebsd() { issystem "FreeBSD" || issystem "GNU/kFreeBSD"; return "$?" ; }
netbsd() { issystem "NetBSD" ; return "$?" ; }
bsdos() { issystem "BSD/OS" ; return "$?" ; }
openbsd() { issystem "OpenBSD" ; return "$?" ; }
+dragonfly() { issystem "DragonFly" ; return "$?" ; }
qnx() { issystem "QNX" ; return "$?" ; }
darwin() { issystem "Darwin" ; return "$?" ; }
gnu() { issystem "GNU" ; return "$?" ; }
@@ -1211,7 +1212,7 @@ if test -z "$_target" ; then
# OS name
system_name=`uname -s 2>&1`
case "$system_name" in
- Linux|FreeBSD|NetBSD|BSD/OS|OpenBSD|SunOS|QNX|Darwin|GNU|BeOS|MorphOS|AIX|AmigaOS)
+ Linux|FreeBSD|NetBSD|OpenBSD|DragonFly|BSD/OS|Darwin|SunOS|QNX|GNU|BeOS|MorphOS|AIX|AmigaOS)
;;
IRIX*)
system_name=IRIX
@@ -1288,6 +1289,7 @@ else # if test -z "$_target"
netbsd) system_name=NetBSD ;;
bsd/os) system_name=BSD/OS ;;
openbsd) system_name=OpenBSD ;;
+ dragonfly) system_name=DragonFly ;;
sunos) system_name=SunOS ;;
qnx) system_name=QNX ;;
morphos) system_name=MorphOS ;;
@@ -1314,6 +1316,11 @@ if freebsd ; then
_inc_extra="$_inc_extra -I/usr/local/include"
fi
+if netbsd || dragonfly ; then
+ _ld_extra="$_ld_extra -L/usr/pkg/lib"
+ _inc_extra="$_inc_extra -I/usr/pkg/include"
+fi
+
if darwin; then
_ld_extra="$_ld_extra -L/usr/local/lib"
_inc_extra="$_inc_extra -I/usr/local/include"
@@ -2983,7 +2990,7 @@ else
_def_malloc='#undef HAVE_MALLOC_H'
fi
# malloc.h emits a warning in FreeBSD and OpenBSD
-freebsd || openbsd && _def_malloc='#undef HAVE_MALLOC_H'
+freebsd || openbsd || dragonfly && _def_malloc='#undef HAVE_MALLOC_H'
echores "$_malloc"
@@ -4270,7 +4277,7 @@ _def_vidix_drv_unichrome='#undef CONFIG_VIDIX_DRV_UNICHROME'
_vidix_drv_unichrome=no
if test "$_vidix_internal" = auto ; then
_vidix_internal=no
- x86 && (linux || freebsd || netbsd || openbsd || sunos || win32) \
+ x86 && (linux || freebsd || netbsd || openbsd || dragonfly || sunos || win32) \
&& _vidix_internal=yes
(ppc || alpha) && linux && _vidix_internal=yes
fi
@@ -5388,7 +5395,7 @@ fi #if irix
echocheck "VCD support"
-if linux || bsdos || freebsd || netbsd || sunos || darwin || mingw32; then
+if linux || freebsd || netbsd || dragonfly || bsdos || darwin || sunos || mingw32; then
_inputmodules="vcd $_inputmodules"
_def_vcd='#define HAVE_VCD 1'
_vcd="yes"
@@ -5405,7 +5412,7 @@ echores "$_vcd"
echocheck "dvdread"
if test "$_dvdread_internal" = auto ; then
_dvdread_internal=no
- if (linux || freebsd || netbsd || darwin || openbsd || win32 || sunos || hpux) && \
+ if (linux || freebsd || netbsd || openbsd || dragonfly || darwin || win32 || sunos || hpux) && \
(test "$_dvd" = yes || test "$_cdrom" = yes || test "$_cdio" = yes || \
test "$_dvdio" = yes || test "$_bsdi_dvd" = yes); then
_dvdread_internal=yes
@@ -5457,7 +5464,7 @@ if test "$_libdvdcss_internal" = yes ; then
if linux || netbsd || openbsd || bsdos ; then
_def_dvd_linux='#define HAVE_LINUX_DVD_STRUCT 1'
openbsd && _dev_dvd_openbsd='#define HAVE_OPENBSD_DVD_STRUCT 1'
- elif freebsd ; then
+ elif freebsd || dragonfly ; then
_def_dvd_bsd='#define HAVE_BSD_DVD_STRUCT 1'
elif darwin ; then
_def_dvd_darwin='#define DARWIN_DVD_IOCTL'
@@ -6266,7 +6273,7 @@ if test "$_real" = auto ; then
_real=no
_res_comment="dynamic loader support needed"
if test "$_dl" = yes || test "$_win32dll" = yes &&
- (linux || freebsd || netbsd || win32 || darwin) ; then
+ (linux || freebsd || netbsd || dragonfly || darwin || win32) ; then
_real=yes
fi
fi
@@ -8393,6 +8400,9 @@ $_def_vcd
#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
#define DEFAULT_CDROM_DEVICE "/dev/acd0"
#define DEFAULT_DVD_DEVICE DEFAULT_CDROM_DEVICE
+#elif defined(__DragonFly__)
+#define DEFAULT_CDROM_DEVICE "/dev/cd0"
+#define DEFAULT_DVD_DEVICE DEFAULT_CDROM_DEVICE
#elif defined(__AMIGAOS4__)
#define DEFAULT_CDROM_DEVICE "a1ide.device:2"
#define DEFAULT_DVD_DEVICE DEFAULT_CDROM_DEVICE