⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 configure.in

📁 网络MPEG4IP流媒体开发源代码
💻 IN
📖 第 1 页 / 共 5 页
字号:
        fi        if test x$have_libusb = xyes; then            SYSTEM_LIBS="$SYSTEM_LIBS -lusb"        fi        AC_CHECK_HEADER(usb.h, have_usb_h=yes)        AC_CHECK_HEADER(usbhid.h, have_usbhid_h=yes)        AC_CHECK_HEADER(libusb.h, have_libusb_h=yes)        AC_CHECK_HEADER(libusbhid.h, have_libusbhid_h=yes)        if test x$have_usb_h = xyes; then            CFLAGS="$CFLAGS -DHAVE_USB_H"        fi        if test x$have_usbhid_h = xyes; then            CFLAGS="$CFLAGS -DHAVE_USBHID_H"        fi        if test x$have_libusb_h = xyes; then            CFLAGS="$CFLAGS -DHAVE_LIBUSB_H"        fi        if test x$have_libusbhid_h = xyes; then            CFLAGS="$CFLAGS -DHAVE_LIBUSBHID_H"        fi        AC_MSG_CHECKING(for usbhid)        have_usbhid=no        AC_TRY_COMPILE([          #include <sys/types.h>          #if defined(HAVE_USB_H)          #include <usb.h>          #endif          #include <dev/usb/usb.h>          #include <dev/usb/usbhid.h>          #if defined(HAVE_USBHID_H)          #include <usbhid.h>          #elif defined(HAVE_LIBUSB_H)          #include <libusb.h>          #elif defined(HAVE_LIBUSBHID_H)          #include <libusbhid.h>          #endif        ],[          struct report_desc *repdesc;          struct usb_ctl_report *repbuf;          hid_kind_t hidkind;        ],[        have_usbhid=yes        ])        AC_MSG_RESULT($have_usbhid)        if test x$have_usbhid = xyes; then            AC_MSG_CHECKING(for ucr_data member of usb_ctl_report)            have_usbhid_ucr_data=no            AC_TRY_COMPILE([              #include <sys/types.h>              #if defined(HAVE_USB_H)              #include <usb.h>              #endif              #include <dev/usb/usb.h>              #include <dev/usb/usbhid.h>              #if defined(HAVE_USBHID_H)              #include <usbhid.h>              #elif defined(HAVE_LIBUSB_H)              #include <libusb.h>              #elif defined(HAVE_LIBUSBHID_H)              #include <libusbhid.h>              #endif            ],[              struct usb_ctl_report buf;              if (buf.ucr_data) { }            ],[            have_usbhid_ucr_data=yes            ])            if test x$have_usbhid_ucr_data = xyes; then                CFLAGS="$CFLAGS -DUSBHID_UCR_DATA"            fi            AC_MSG_RESULT($have_usbhid_ucr_data)            	    AC_MSG_CHECKING(for new usbhid API)            have_usbhid_new=no            AC_TRY_COMPILE([              #include <sys/types.h>              #if defined(HAVE_USB_H)              #include <usb.h>              #endif              #include <dev/usb/usb.h>              #include <dev/usb/usbhid.h>              #if defined(HAVE_USBHID_H)              #include <usbhid.h>              #elif defined(HAVE_LIBUSB_H)              #include <libusb.h>              #elif defined(HAVE_LIBUSBHID_H)              #include <libusbhid.h>              #endif            ],[              report_desc_t d;	      hid_start_parse(d, 1, 1);            ],[            have_usbhid_new=yes            ])            if test x$have_usbhid_new = xyes; then                CFLAGS="$CFLAGS -DUSBHID_NEW"            fi            AC_MSG_RESULT($have_usbhid_new)            JOYSTICK_SUBDIRS="$JOYSTICK_SUBDIRS bsd"            JOYSTICK_DRIVERS="$JOYSTICK_DRIVERS bsd/libjoystick_bsd.la"        fi    fi}case "$target" in    *-*-linux*)        ARCH=linux        CheckDummyVideo        CheckDiskAudio        CheckDLOPEN        CheckNASM        CheckOSS        CheckALSA        CheckARTSC        CheckESD        CheckNAS        CheckX11        CheckNANOX        CheckDGA        CheckFBCON        CheckDirectFB        CheckPS2GS        CheckGGI        CheckSVGA        CheckAAlib        CheckQtopia        CheckPicoGUI        CheckOpenGL        CheckInputEvents        CheckPTHREAD        # Set up files for the main() stub        if test "x$video_qtopia" = "xyes"; then          COPY_ARCH_SRC(src/main, linux, SDL_Qtopia_main.cc)          SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"          SDL_LIBS="-lSDLmain $SDL_LIBS"        else          COPY_ARCH_SRC(src/main, linux, SDL_main.c)        fi        # Set up files for the audio library        # We use the OSS and ALSA API's, not the Sun audio API        #if test x$enable_audio = xyes; then        #    CFLAGS="$CFLAGS -DSUNAUDIO_SUPPORT"        #    AUDIO_SUBDIRS="$AUDIO_SUBDIRS sun"        #    AUDIO_DRIVERS="$AUDIO_DRIVERS sun/libaudio_sun.la"        #fi        # Set up files for the joystick library        if test x$enable_joystick = xyes; then            JOYSTICK_SUBDIRS="$JOYSTICK_SUBDIRS linux"            JOYSTICK_DRIVERS="$JOYSTICK_DRIVERS linux/libjoystick_linux.la"        fi        # Set up files for the cdrom library        if test x$enable_cdrom = xyes; then            CDROM_SUBDIRS="$CDROM_SUBDIRS linux"            CDROM_DRIVERS="$CDROM_DRIVERS linux/libcdrom_linux.la"        fi        # Set up files for the thread library        if test x$enable_threads = xyes; then            CopyUnixThreadSource        fi        # Set up files for the timer library        if test x$enable_timers = xyes; then            COPY_ARCH_SRC(src/timer, linux, SDL_systimer.c)        fi        ;;    *-*-bsdi*)        ARCH=bsdi        CheckDummyVideo        CheckDiskAudio        CheckDLOPEN        CheckNASM        CheckOSS        CheckARTSC        CheckESD        CheckNAS        CheckX11        CheckDGA        CheckSVGA        CheckAAlib        CheckOpenGL        CheckPTHREAD        # Set up files for the main() stub        COPY_ARCH_SRC(src/main, linux, SDL_main.c)        # Set up files for the audio library        # We use the OSS and ALSA API's, not the Sun audio API        #if test x$enable_audio = xyes; then        #    CFLAGS="$CFLAGS -DSUNAUDIO_SUPPORT"        #    AUDIO_SUBDIRS="$AUDIO_SUBDIRS sun"        #    AUDIO_DRIVERS="$AUDIO_DRIVERS sun/libaudio_sun.la"        #fi        # Set up files for the joystick library        # (No joystick support yet)        if test x$enable_joystick = xyes; then            JOYSTICK_SUBDIRS="$JOYSTICK_SUBDIRS dummy"            JOYSTICK_DRIVERS="$JOYSTICK_DRIVERS dummy/libjoystick_dummy.la"        fi        # Set up files for the cdrom library        if test x$enable_cdrom = xyes; then            CDROM_SUBDIRS="$CDROM_SUBDIRS bsdi"            CDROM_DRIVERS="$CDROM_DRIVERS bsdi/libcdrom_bsdi.la"        fi        # Set up files for the thread library        if test x$enable_threads = xyes; then            CopyUnixThreadSource        fi        # Set up files for the timer library        if test x$enable_timers = xyes; then            COPY_ARCH_SRC(src/timer, linux, SDL_systimer.c)        fi        ;;    *-*-freebsd*)        ARCH=freebsd        CheckDummyVideo        CheckDiskAudio        CheckDLOPEN        CheckVGL        CheckNASM        CheckOSS        CheckARTSC        CheckESD        CheckNAS        CheckX11        CheckDGA        CheckSVGA        CheckAAlib        CheckOpenGL        CheckPTHREAD        CheckUSBHID        # Set up files for the main() stub        COPY_ARCH_SRC(src/main, linux, SDL_main.c)        # Set up files for the audio library        # We use the OSS and ALSA API's, not the Sun audio API        #if test x$enable_audio = xyes; then        #    CFLAGS="$CFLAGS -DSUNAUDIO_SUPPORT"        #    AUDIO_SUBDIRS="$AUDIO_SUBDIRS sun"        #    AUDIO_DRIVERS="$AUDIO_DRIVERS sun/libaudio_sun.la"        #fi        # Set up files for the cdrom library        if test x$enable_cdrom = xyes; then            CDROM_SUBDIRS="$CDROM_SUBDIRS freebsd"            CDROM_DRIVERS="$CDROM_DRIVERS freebsd/libcdrom_freebsd.la"        fi        # Set up files for the thread library        if test x$enable_threads = xyes; then            CopyUnixThreadSource        fi        # Set up files for the timer library        if test x$enable_timers = xyes; then            COPY_ARCH_SRC(src/timer, linux, SDL_systimer.c)        fi        ;;    *-*-netbsd*)        ARCH=netbsd        CheckDummyVideo        CheckDiskAudio        CheckDLOPEN        CheckNASM        CheckOSS        CheckARTSC        CheckESD        CheckNAS        CheckX11        CheckAAlib        CheckOpenGL        CheckPTHREAD        CheckUSBHID        # Set up files for the main() stub        COPY_ARCH_SRC(src/main, linux, SDL_main.c)        # Set up files for the audio library        if test x$enable_audio = xyes; then            CFLAGS="$CFLAGS -DSUNAUDIO_SUPPORT"            AUDIO_SUBDIRS="$AUDIO_SUBDIRS sun"            AUDIO_DRIVERS="$AUDIO_DRIVERS sun/libaudio_sun.la"        fi        # Set up files for the cdrom library        if test x$enable_cdrom = xyes; then            CDROM_SUBDIRS="$CDROM_SUBDIRS openbsd"            CDROM_DRIVERS="$CDROM_DRIVERS openbsd/libcdrom_openbsd.la"        fi        # Set up files for the thread library        if test x$enable_threads = xyes; then            if test x$use_pthreads = xyes; then                CFLAGS="$CFLAGS -D_POSIX_THREAD_SYSCALL_SOFT=1"            fi            CopyUnixThreadSource        fi        # Set up files for the timer library        if test x$enable_timers = xyes; then            COPY_ARCH_SRC(src/timer, linux, SDL_systimer.c)        fi        # NetBSD does not define "unix"        CFLAGS="$CFLAGS -Dunix"        ;;    *-*-openbsd*)        ARCH=openbsd        CheckDummyVideo        CheckDiskAudio        CheckDLOPEN        CheckNASM        CheckOSS        CheckARTSC        CheckESD        CheckNAS        CheckX11        CheckAAlib        CheckOpenGL        CheckPTHREAD        CheckUSBHID        # Set up files for the main() stub        COPY_ARCH_SRC(src/main, linux, SDL_main.c)        # Set up files for the audio library        if test x$enable_audio = xyes; then            CFLAGS="$CFLAGS -DOPENBSD_AUDIO_SUPPORT"            AUDIO_SUBDIRS="$AUDIO_SUBDIRS openbsd"            AUDIO_DRIVERS="$AUDIO_DRIVERS openbsd/libaudio_openbsd.la"        fi        # OpenBSD needs linking with ossaudio emulation library        if test x$have_oss = xyes; then            SYSTEM_LIBS="$SYSTEM_LIBS -lossaudio"        fi        # Set up files for the cdrom library        if test x$enable_cdrom = xyes; then            CDROM_SUBDIRS="$CDROM_SUBDIRS openbsd"            CDROM_DRIVERS="$CDROM_DRIVERS openbsd/libcdrom_openbsd.la"        fi        # Set up files for the thread library        if test x$enable_threads = xyes; then            CopyUnixThreadSource        fi        # Set up files for the timer library        if test x$enable_timers = xyes; then            COPY_ARCH_SRC(src/timer, linux, SDL_systimer.c)        fi        # OpenBSD does not define "unix"        CFLAGS="$CFLAGS -Dunix"        ;;    *-*-sysv5*)        ARCH=sysv5        CheckDummyVideo        CheckDiskAudio        CheckDLOPEN        CheckNASM        CheckOSS        CheckARTSC        CheckESD        CheckNAS        CheckX11        CheckAAlib        CheckOpenGL        CheckPTHREAD        # Set up files for the main() stub        COPY_ARCH_SRC(src/main, linux, SDL_main.c)        # Set up files for the audio library        if test x$enable_audio = xyes; then            CFLAGS="$CFLAGS -DSUNAUDIO_SUPPORT"            AUDIO_SUBDIRS="$AUDIO_SUBDIRS sun"            AUDIO_DRIVERS="$AUDIO_DRIVERS sun/libaudio_sun.la"        fi        # Set up files for the joystick library        # (No joystick support yet)        if test x$enable_joystick = xyes; then            JOYSTICK_SUBDIRS="$JOYSTICK_SUBDIRS dummy"            JOYSTICK_DRIVERS="$JOYSTICK_DRIVERS dummy/libjoystick_dummy.la"        fi        # Set up files for the cdrom library        if test x$enable_cdrom = xyes; then            CDROM_SUBDIRS="$CDROM_SUBDIRS dummy"            CDROM_DRIVERS="$CDROM_DRIVERS dummy/libcdrom_dummy.la"        fi        # Set up files for the thread library        if test x$enable_threads = xyes; then            CopyUnixThreadSource        fi        # Set up files for the timer library        if test x$enable_timers = xyes; then            COPY_ARCH_SRC(src/timer, linux, SDL_systimer.c)        fi        ;;    *-*-solaris*)        ARCH=solaris        CFLAGS="$CFLAGS -D__ELF__" # Fix for nasm on Solaris x86        CheckDummyVideo        CheckDiskAudio        CheckDLOPEN        CheckNASM        CheckOSS        CheckARTSC        CheckESD 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -