comparison configure @ 26248:83e813ecc187

support for DragonFly BSD, patch by Hasso Tepper, hasso estpak ee
author diego
date Thu, 27 Mar 2008 02:04:03 +0000
parents 5ae0c6ec14e9
children c43a3eb22369
comparison
equal deleted inserted replaced
26247:5ae0c6ec14e9 26248:83e813ecc187
105 cygwin() { issystem "CYGWIN" ; return "$?" ; } 105 cygwin() { issystem "CYGWIN" ; return "$?" ; }
106 freebsd() { issystem "FreeBSD" || issystem "GNU/kFreeBSD"; return "$?" ; } 106 freebsd() { issystem "FreeBSD" || issystem "GNU/kFreeBSD"; return "$?" ; }
107 netbsd() { issystem "NetBSD" ; return "$?" ; } 107 netbsd() { issystem "NetBSD" ; return "$?" ; }
108 bsdos() { issystem "BSD/OS" ; return "$?" ; } 108 bsdos() { issystem "BSD/OS" ; return "$?" ; }
109 openbsd() { issystem "OpenBSD" ; return "$?" ; } 109 openbsd() { issystem "OpenBSD" ; return "$?" ; }
110 dragonfly() { issystem "DragonFly" ; return "$?" ; }
110 qnx() { issystem "QNX" ; return "$?" ; } 111 qnx() { issystem "QNX" ; return "$?" ; }
111 darwin() { issystem "Darwin" ; return "$?" ; } 112 darwin() { issystem "Darwin" ; return "$?" ; }
112 gnu() { issystem "GNU" ; return "$?" ; } 113 gnu() { issystem "GNU" ; return "$?" ; }
113 mingw32() { issystem "MINGW32" ; return "$?" ; } 114 mingw32() { issystem "MINGW32" ; return "$?" ; }
114 morphos() { issystem "MorphOS" ; return "$?" ; } 115 morphos() { issystem "MorphOS" ; return "$?" ; }
1209 # Determine our OS name and CPU architecture 1210 # Determine our OS name and CPU architecture
1210 if test -z "$_target" ; then 1211 if test -z "$_target" ; then
1211 # OS name 1212 # OS name
1212 system_name=`uname -s 2>&1` 1213 system_name=`uname -s 2>&1`
1213 case "$system_name" in 1214 case "$system_name" in
1214 Linux|FreeBSD|NetBSD|BSD/OS|OpenBSD|SunOS|QNX|Darwin|GNU|BeOS|MorphOS|AIX|AmigaOS) 1215 Linux|FreeBSD|NetBSD|OpenBSD|DragonFly|BSD/OS|Darwin|SunOS|QNX|GNU|BeOS|MorphOS|AIX|AmigaOS)
1215 ;; 1216 ;;
1216 IRIX*) 1217 IRIX*)
1217 system_name=IRIX 1218 system_name=IRIX
1218 ;; 1219 ;;
1219 GNU/kFreeBSD) 1220 GNU/kFreeBSD)
1286 freebsd) system_name=FreeBSD ;; 1287 freebsd) system_name=FreeBSD ;;
1287 gnu/kfreebsd) system_name=FreeBSD ;; 1288 gnu/kfreebsd) system_name=FreeBSD ;;
1288 netbsd) system_name=NetBSD ;; 1289 netbsd) system_name=NetBSD ;;
1289 bsd/os) system_name=BSD/OS ;; 1290 bsd/os) system_name=BSD/OS ;;
1290 openbsd) system_name=OpenBSD ;; 1291 openbsd) system_name=OpenBSD ;;
1292 dragonfly) system_name=DragonFly ;;
1291 sunos) system_name=SunOS ;; 1293 sunos) system_name=SunOS ;;
1292 qnx) system_name=QNX ;; 1294 qnx) system_name=QNX ;;
1293 morphos) system_name=MorphOS ;; 1295 morphos) system_name=MorphOS ;;
1294 amigaos) system_name=AmigaOS ;; 1296 amigaos) system_name=AmigaOS ;;
1295 mingw32msvc) system_name=MINGW32 ;; 1297 mingw32msvc) system_name=MINGW32 ;;
1310 1312
1311 1313
1312 if freebsd ; then 1314 if freebsd ; then
1313 _ld_extra="$_ld_extra -L/usr/local/lib" 1315 _ld_extra="$_ld_extra -L/usr/local/lib"
1314 _inc_extra="$_inc_extra -I/usr/local/include" 1316 _inc_extra="$_inc_extra -I/usr/local/include"
1317 fi
1318
1319 if netbsd || dragonfly ; then
1320 _ld_extra="$_ld_extra -L/usr/pkg/lib"
1321 _inc_extra="$_inc_extra -I/usr/pkg/include"
1315 fi 1322 fi
1316 1323
1317 if darwin; then 1324 if darwin; then
1318 _ld_extra="$_ld_extra -L/usr/local/lib" 1325 _ld_extra="$_ld_extra -L/usr/local/lib"
1319 _inc_extra="$_inc_extra -I/usr/local/include" 1326 _inc_extra="$_inc_extra -I/usr/local/include"
2981 _def_malloc='#define HAVE_MALLOC_H 1' 2988 _def_malloc='#define HAVE_MALLOC_H 1'
2982 else 2989 else
2983 _def_malloc='#undef HAVE_MALLOC_H' 2990 _def_malloc='#undef HAVE_MALLOC_H'
2984 fi 2991 fi
2985 # malloc.h emits a warning in FreeBSD and OpenBSD 2992 # malloc.h emits a warning in FreeBSD and OpenBSD
2986 freebsd || openbsd && _def_malloc='#undef HAVE_MALLOC_H' 2993 freebsd || openbsd || dragonfly && _def_malloc='#undef HAVE_MALLOC_H'
2987 echores "$_malloc" 2994 echores "$_malloc"
2988 2995
2989 2996
2990 echocheck "memalign()" 2997 echocheck "memalign()"
2991 # XXX restrict to x86 ? extend to other CPUs/cacheline sizes ? 2998 # XXX restrict to x86 ? extend to other CPUs/cacheline sizes ?
4268 _vidix_drv_sis=no 4275 _vidix_drv_sis=no
4269 _def_vidix_drv_unichrome='#undef CONFIG_VIDIX_DRV_UNICHROME' 4276 _def_vidix_drv_unichrome='#undef CONFIG_VIDIX_DRV_UNICHROME'
4270 _vidix_drv_unichrome=no 4277 _vidix_drv_unichrome=no
4271 if test "$_vidix_internal" = auto ; then 4278 if test "$_vidix_internal" = auto ; then
4272 _vidix_internal=no 4279 _vidix_internal=no
4273 x86 && (linux || freebsd || netbsd || openbsd || sunos || win32) \ 4280 x86 && (linux || freebsd || netbsd || openbsd || dragonfly || sunos || win32) \
4274 && _vidix_internal=yes 4281 && _vidix_internal=yes
4275 (ppc || alpha) && linux && _vidix_internal=yes 4282 (ppc || alpha) && linux && _vidix_internal=yes
4276 fi 4283 fi
4277 if test "$_vidix_internal" = yes; then 4284 if test "$_vidix_internal" = yes; then
4278 _res_comment="internal" 4285 _res_comment="internal"
5386 echores "$_sgiaudio" 5393 echores "$_sgiaudio"
5387 fi #if irix 5394 fi #if irix
5388 5395
5389 5396
5390 echocheck "VCD support" 5397 echocheck "VCD support"
5391 if linux || bsdos || freebsd || netbsd || sunos || darwin || mingw32; then 5398 if linux || freebsd || netbsd || dragonfly || bsdos || darwin || sunos || mingw32; then
5392 _inputmodules="vcd $_inputmodules" 5399 _inputmodules="vcd $_inputmodules"
5393 _def_vcd='#define HAVE_VCD 1' 5400 _def_vcd='#define HAVE_VCD 1'
5394 _vcd="yes" 5401 _vcd="yes"
5395 else 5402 else
5396 _def_vcd='#undef HAVE_VCD' 5403 _def_vcd='#undef HAVE_VCD'
5403 5410
5404 5411
5405 echocheck "dvdread" 5412 echocheck "dvdread"
5406 if test "$_dvdread_internal" = auto ; then 5413 if test "$_dvdread_internal" = auto ; then
5407 _dvdread_internal=no 5414 _dvdread_internal=no
5408 if (linux || freebsd || netbsd || darwin || openbsd || win32 || sunos || hpux) && \ 5415 if (linux || freebsd || netbsd || openbsd || dragonfly || darwin || win32 || sunos || hpux) && \
5409 (test "$_dvd" = yes || test "$_cdrom" = yes || test "$_cdio" = yes || \ 5416 (test "$_dvd" = yes || test "$_cdrom" = yes || test "$_cdio" = yes || \
5410 test "$_dvdio" = yes || test "$_bsdi_dvd" = yes); then 5417 test "$_dvdio" = yes || test "$_bsdi_dvd" = yes); then
5411 _dvdread_internal=yes 5418 _dvdread_internal=yes
5412 _dvdread=yes 5419 _dvdread=yes
5413 fi 5420 fi
5455 fi 5462 fi
5456 if test "$_libdvdcss_internal" = yes ; then 5463 if test "$_libdvdcss_internal" = yes ; then
5457 if linux || netbsd || openbsd || bsdos ; then 5464 if linux || netbsd || openbsd || bsdos ; then
5458 _def_dvd_linux='#define HAVE_LINUX_DVD_STRUCT 1' 5465 _def_dvd_linux='#define HAVE_LINUX_DVD_STRUCT 1'
5459 openbsd && _dev_dvd_openbsd='#define HAVE_OPENBSD_DVD_STRUCT 1' 5466 openbsd && _dev_dvd_openbsd='#define HAVE_OPENBSD_DVD_STRUCT 1'
5460 elif freebsd ; then 5467 elif freebsd || dragonfly ; then
5461 _def_dvd_bsd='#define HAVE_BSD_DVD_STRUCT 1' 5468 _def_dvd_bsd='#define HAVE_BSD_DVD_STRUCT 1'
5462 elif darwin ; then 5469 elif darwin ; then
5463 _def_dvd_darwin='#define DARWIN_DVD_IOCTL' 5470 _def_dvd_darwin='#define DARWIN_DVD_IOCTL'
5464 _ld_extra="$_ld_extra -framework IOKit" 5471 _ld_extra="$_ld_extra -framework IOKit"
5465 fi 5472 fi
6264 echocheck "RealPlayer codecs" 6271 echocheck "RealPlayer codecs"
6265 if test "$_real" = auto ; then 6272 if test "$_real" = auto ; then
6266 _real=no 6273 _real=no
6267 _res_comment="dynamic loader support needed" 6274 _res_comment="dynamic loader support needed"
6268 if test "$_dl" = yes || test "$_win32dll" = yes && 6275 if test "$_dl" = yes || test "$_win32dll" = yes &&
6269 (linux || freebsd || netbsd || win32 || darwin) ; then 6276 (linux || freebsd || netbsd || dragonfly || darwin || win32) ; then
6270 _real=yes 6277 _real=yes
6271 fi 6278 fi
6272 fi 6279 fi
6273 if test "$_real" = yes ; then 6280 if test "$_real" = yes ; then
6274 test -z "$_realcodecsdir" && _realcodecsdir="$_codecsdir" 6281 test -z "$_realcodecsdir" && _realcodecsdir="$_codecsdir"
8391 #define DEFAULT_CDROM_DEVICE "/dev/rcd0a" 8398 #define DEFAULT_CDROM_DEVICE "/dev/rcd0a"
8392 #define DEFAULT_DVD_DEVICE DEFAULT_CDROM_DEVICE 8399 #define DEFAULT_DVD_DEVICE DEFAULT_CDROM_DEVICE
8393 #elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) 8400 #elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
8394 #define DEFAULT_CDROM_DEVICE "/dev/acd0" 8401 #define DEFAULT_CDROM_DEVICE "/dev/acd0"
8395 #define DEFAULT_DVD_DEVICE DEFAULT_CDROM_DEVICE 8402 #define DEFAULT_DVD_DEVICE DEFAULT_CDROM_DEVICE
8403 #elif defined(__DragonFly__)
8404 #define DEFAULT_CDROM_DEVICE "/dev/cd0"
8405 #define DEFAULT_DVD_DEVICE DEFAULT_CDROM_DEVICE
8396 #elif defined(__AMIGAOS4__) 8406 #elif defined(__AMIGAOS4__)
8397 #define DEFAULT_CDROM_DEVICE "a1ide.device:2" 8407 #define DEFAULT_CDROM_DEVICE "a1ide.device:2"
8398 #define DEFAULT_DVD_DEVICE DEFAULT_CDROM_DEVICE 8408 #define DEFAULT_DVD_DEVICE DEFAULT_CDROM_DEVICE
8399 #else 8409 #else
8400 #define DEFAULT_CDROM_DEVICE "/dev/cdrom" 8410 #define DEFAULT_CDROM_DEVICE "/dev/cdrom"