comparison configure.in @ 360:8c1f8c4d2dd1

Configure fixes from Wilbern Cobb for FreeBSD joystick support.
author Sam Lantinga <slouken@libsdl.org>
date Thu, 18 Apr 2002 04:28:58 +0000
parents 30935e76acb5
children db0cc6034336
comparison
equal deleted inserted replaced
359:f0e5198a1522 360:8c1f8c4d2dd1
290 AC_MSG_RESULT($have_alsa) 290 AC_MSG_RESULT($have_alsa)
291 fi 291 fi
292 fi 292 fi
293 } 293 }
294 294
295 dnl Check whether we want to use OpenBSD native audio or not
296 CheckOPENBSDAUDIO()
297 {
298 AC_ARG_ENABLE(openbsdaudio,
299 [ --enable-openbsdaudio OpenBSD native audio support [default=yes]],
300 , enable_openbsdaudio=yes)
301 if test x$enable_audio = xyes -a x$enable_openbsdaudio = xyes; then
302 CFLAGS="$CFLAGS -DOPENBSD_AUDIO_SUPPORT"
303 AUDIO_SUBDIRS="$AUDIO_SUBDIRS openbsd"
304 AUDIO_DRIVERS="$AUDIO_DRIVERS openbsd/libaudio_openbsd.la"
305 fi
306 }
307
308 dnl Check whether we want to use IRIX 6.5+ native audio or not 295 dnl Check whether we want to use IRIX 6.5+ native audio or not
309 CheckDMEDIA() 296 CheckDMEDIA()
310 { 297 {
311 if test x$enable_audio = xyes; then 298 if test x$enable_audio = xyes; then
312 AC_MSG_CHECKING(for dmedia audio support) 299 AC_MSG_CHECKING(for dmedia audio support)
472 else 459 else
473 CFLAGS="$CFLAGS -DUSE_ASMBLIT -I$srcdir/hermes" 460 CFLAGS="$CFLAGS -DUSE_ASMBLIT -I$srcdir/hermes"
474 case $ARCH in 461 case $ARCH in
475 win32) 462 win32)
476 NASMFLAGS="-f win32" 463 NASMFLAGS="-f win32"
464 ;;
465 openbsd)
466 NASMFLAGS="-f aoutb"
477 ;; 467 ;;
478 *) 468 *)
479 NASMFLAGS="-f elf" 469 NASMFLAGS="-f elf"
480 ;; 470 ;;
481 esac 471 esac
1578 #fi 1568 #fi
1579 # Set up files for the joystick library 1569 # Set up files for the joystick library
1580 if test x$enable_joystick = xyes; then 1570 if test x$enable_joystick = xyes; then
1581 JOYSTICK_SUBDIRS="$JOYSTICK_SUBDIRS bsd" 1571 JOYSTICK_SUBDIRS="$JOYSTICK_SUBDIRS bsd"
1582 JOYSTICK_DRIVERS="$JOYSTICK_DRIVERS bsd/libjoystick_bsd.la" 1572 JOYSTICK_DRIVERS="$JOYSTICK_DRIVERS bsd/libjoystick_bsd.la"
1573 SYSTEM_LIBS="$SYSTEM_LIBS -lusb"
1583 fi 1574 fi
1584 # Set up files for the cdrom library 1575 # Set up files for the cdrom library
1585 if test x$enable_cdrom = xyes; then 1576 if test x$enable_cdrom = xyes; then
1586 CDROM_SUBDIRS="$CDROM_SUBDIRS freebsd" 1577 CDROM_SUBDIRS="$CDROM_SUBDIRS freebsd"
1587 CDROM_DRIVERS="$CDROM_DRIVERS freebsd/libcdrom_freebsd.la" 1578 CDROM_DRIVERS="$CDROM_DRIVERS freebsd/libcdrom_freebsd.la"
1630 fi 1621 fi
1631 # Set up files for the joystick library 1622 # Set up files for the joystick library
1632 if test x$enable_joystick = xyes; then 1623 if test x$enable_joystick = xyes; then
1633 JOYSTICK_SUBDIRS="$JOYSTICK_SUBDIRS bsd" 1624 JOYSTICK_SUBDIRS="$JOYSTICK_SUBDIRS bsd"
1634 JOYSTICK_DRIVERS="$JOYSTICK_DRIVERS bsd/libjoystick_bsd.la" 1625 JOYSTICK_DRIVERS="$JOYSTICK_DRIVERS bsd/libjoystick_bsd.la"
1626 SYSTEM_LIBS="$SYSTEM_LIBS -lusb"
1635 fi 1627 fi
1636 # Set up files for the cdrom library 1628 # Set up files for the cdrom library
1637 if test x$enable_cdrom = xyes; then 1629 if test x$enable_cdrom = xyes; then
1638 CDROM_SUBDIRS="$CDROM_SUBDIRS openbsd" 1630 CDROM_SUBDIRS="$CDROM_SUBDIRS openbsd"
1639 CDROM_DRIVERS="$CDROM_DRIVERS openbsd/libcdrom_openbsd.la" 1631 CDROM_DRIVERS="$CDROM_DRIVERS openbsd/libcdrom_openbsd.la"
1663 *-*-openbsd*) 1655 *-*-openbsd*)
1664 ARCH=openbsd 1656 ARCH=openbsd
1665 CheckDummyVideo 1657 CheckDummyVideo
1666 CheckDiskAudio 1658 CheckDiskAudio
1667 CheckDLOPEN 1659 CheckDLOPEN
1668 CheckOPENBSDAUDIO
1669 CheckNASM 1660 CheckNASM
1670 CheckOSS 1661 CheckOSS
1671 CheckARTSC 1662 CheckARTSC
1672 CheckESD 1663 CheckESD
1673 CheckNAS 1664 CheckNAS
1676 CheckOpenGL 1667 CheckOpenGL
1677 CheckPTHREAD 1668 CheckPTHREAD
1678 # Set up files for the main() stub 1669 # Set up files for the main() stub
1679 COPY_ARCH_SRC(src/main, linux, SDL_main.c) 1670 COPY_ARCH_SRC(src/main, linux, SDL_main.c)
1680 # Set up files for the audio library 1671 # Set up files for the audio library
1681 # We use the OSS and native API's, not the Sun audio API 1672 if test x$enable_audio = xyes; then
1682 #if test x$enable_audio = xyes; then 1673 CFLAGS="$CFLAGS -DOPENBSD_AUDIO_SUPPORT"
1683 # CFLAGS="$CFLAGS -DSUNAUDIO_SUPPORT" 1674 AUDIO_SUBDIRS="$AUDIO_SUBDIRS openbsd"
1684 # AUDIO_SUBDIRS="$AUDIO_SUBDIRS sun" 1675 AUDIO_DRIVERS="$AUDIO_DRIVERS openbsd/libaudio_openbsd.la"
1685 # AUDIO_DRIVERS="$AUDIO_DRIVERS sun/libaudio_sun.la" 1676 fi
1686 #fi
1687 # OpenBSD needs linking with ossaudio emulation library 1677 # OpenBSD needs linking with ossaudio emulation library
1688 if test x$have_oss = xyes; then 1678 if test x$have_oss = xyes; then
1689 SYSTEM_LIBS="$SYSTEM_LIBS -lossaudio" 1679 SYSTEM_LIBS="$SYSTEM_LIBS -lossaudio"
1690 fi 1680 fi
1691 # Set up files for the joystick library 1681 # Set up files for the joystick library
1692 if test x$enable_joystick = xyes; then 1682 if test x$enable_joystick = xyes; then
1693 JOYSTICK_SUBDIRS="$JOYSTICK_SUBDIRS bsd" 1683 JOYSTICK_SUBDIRS="$JOYSTICK_SUBDIRS bsd"
1694 JOYSTICK_DRIVERS="$JOYSTICK_DRIVERS bsd/libjoystick_bsd.la" 1684 JOYSTICK_DRIVERS="$JOYSTICK_DRIVERS bsd/libjoystick_bsd.la"
1685 SYSTEM_LIBS="$SYSTEM_LIBS -lusbhid"
1695 fi 1686 fi
1696 # Set up files for the cdrom library 1687 # Set up files for the cdrom library
1697 if test x$enable_cdrom = xyes; then 1688 if test x$enable_cdrom = xyes; then
1698 CDROM_SUBDIRS="$CDROM_SUBDIRS openbsd" 1689 CDROM_SUBDIRS="$CDROM_SUBDIRS openbsd"
1699 CDROM_DRIVERS="$CDROM_DRIVERS openbsd/libcdrom_openbsd.la" 1690 CDROM_DRIVERS="$CDROM_DRIVERS openbsd/libcdrom_openbsd.la"