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

📄 configure.in

📁 MIDI解码程序(用VC编写)
💻 IN
📖 第 1 页 / 共 4 页
字号:
		esac		if test x"$msnative_struct" = x ; then			AC_MSG_RESULT([no way])			AC_MSG_WARN([produced binary will be incompatible with windows' GUI ])		else			CFLAGS="$CFLAGS $msnative_struct"			CPPFLAGS="$CPPFLAGS $msnative_struct"			AC_MSG_RESULT([${msnative_struct}])		fi		;;	*) 		;;	esacfidnl Cygnus Mingw32 mmsystem checkif test "x$CYGNUS" = xyes || test "x$MSYS" = xyes; then  AC_CACHE_CHECK(Cygwin new mmsystem,timidity_cv_header_new_mmsystem,    AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <windows.h>#include <mmsystem.h>]], [[return WOM_OPEN != 0x3BB]])],[timidity_cv_header_new_mmsystem=yes],[timidity_cv_header_new_mmsystem=no]))  if test $timidity_cv_header_new_mmsystem = yes; then    AC_DEFINE(HAVE_NEW_MMSYSTEM,1,Define to 1 if you have <mmsystem.h> file)  fifi# Checks for library functions.AC_FUNC_ERROR_AT_LINEAC_FUNC_FORKAC_FUNC_MEMCMPAC_FUNC_MMAPAC_FUNC_SETVBUF_REVERSEDAC_TYPE_SIGNALif test "x$VCPP" != xyes && test "x$BORLANDC" != xyes && test "x$WATCOM_C" != "xyes"; thenAC_FUNC_VPRINTFfiAC_CHECK_FUNCS( \  [alarm \  dup2 \  floor \  getcwd \  getopt \  gethostbyname \  gettimeofday \  getwd \  isatty \  memchr \  memmove \  memset \  modf \  munmap \  popen \  pow \  select \  signal \  socket \  sleep \  vsnprintf \  snprintf \  sqrt \  strchr \  strdup \  strstr \  strerror \  strcasecmp \  strncasecmp \  strrchr \  strstr \  strtol \  strlcat \  strlcpy \  usleep])if test "x$VCPP" = xyes; then  AC_DEFINE(RETSIGTYPE,int)  AC_DEFINE(HAVE_GETCWD,int)fiif test "x$VCPP" = xyes || test "x$BORLANDC" = xyes || test "x$WATCOM_C" = xyes; then  AC_DEFINE(HAVE_GETHOSTBYNAME,1)  AC_DEFINE(HAVE_POPEN,1)  AC_DEFINE(popen,_popen,[for VC])  AC_DEFINE(pclose,_pclose,[for VC])  AC_DEFINE(HAVE_SELECT,1)  AC_DEFINE(HAVE_SNPRINTF,1)  AC_DEFINE(HAVE_STRDUP,1)  AC_DEFINE(HAVE_STRERROR,1)  AC_DEFINE(HAVE_STRNCASECMP,1)  AC_DEFINE(HAVE_STRSTR,1)  AC_DEFINE(snprintf,_snprintf,[for VC])  AC_DEFINE(HAVE_SOCKET,1)  AC_DEFINE(HAVE_VSNPRINTF,1)  AC_DEFINE(vsnprintf,_vsnprintf,[for VC])  AC_DEFINE(TIMID_VERSION,[$(PACKAGE_VERSION)],[for windows gui])fiAC_CHECK_FUNC(getopt_long,	 AC_DEFINE([HAVE_GETOPT_LONG],1,[Define to 1 if you have `getopt_long function'])	 tm_cv_needgetopt="no",	 tm_cv_needgetopt="yes")AM_CONDITIONAL([NEEDGETOPT], test "x$tm_cv_needgetopt" = "xyes")# Checks on cygnus and MYSYSif test "x$CYGNUS" = xyes || test "x$MSYS" = xyes; then  case "$ac_cv_header_dirent_dirent_h$ac_cv_header_dirent_sys_ndir_h$ac_cv_header_dirent_sys_dir_h$ac_cv_header_dirent_ndir_h" in  *yes*)    AC_CHECK_FUNC(opendir,,  [ EXTRADEFS="$EXTRADEFS -D__W32READDIR__"    W32READDIR=yes ])    ;;  *)EXTRADEFS="$EXTRADEFS -D__W32READDIR__"    W32READDIR=yes    ;;  esac  if test "x$enable_network" = "xyes"; then  	if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes || test "x$WATCOM_C" = xyes; then      EXTRALIBS="$EXTRALIBS  wsock32.lib"      EXTRADEFS="$EXTRADEFS -DWINSOCK"     else      AC_CHECK_FUNC(socket,,       WAPI_CHECK_LIB(wsock32,WSAStartup,  	     [#include <winsock.h>],  	     [WSAStartup(0,0);],         [ EXTRALIBS="$EXTRALIBS -lwsock32"          EXTRADEFS="$EXTRADEFS -DWINSOCK" ]       )      )    fi  fifi# Checks on extra pathsdnl tcltk pathsAC_ARG_WITH(tcl-includes,  [  --with-tcl-includes=DIR Tcl include file path ],  [ if test ! -d $withval; then      AC_MSG_WARN($withval is not found.)    fi    tcl_include_dir="-I$withval"  ])AC_ARG_WITH(tcl-libs,  [  --with-tcl-libs=DIR     Tcl library file path ],  [ if test ! -d $withval; then      AC_MSG_WARN($withval is not found.)    fi    tcl_libdir="-L$withval" ])AC_ARG_WITH(tk-includes,  [  --with-tk-includes=DIR  Tk include file path ],  [ if test ! -d $withval; then      AC_MSG_WARN($withval is not found.)    fi    tk_includes="-I$withval" ])AC_ARG_WITH(tk-libs,  [  --with-tk-libs=DIR      Tk library file path ],  [ if test ! -d $withval; then      AC_MSG_WARN($withval is not found.)    fi    tk_libdir="-L$withval" ])dnl offix pathsAC_ARG_WITH(offix-includes,  [  --with-offix-includes=DIR Offix include file path ],  [ if test ! -d $withval; then      AC_MSG_WARN($withval is not found.)    fi    offix_include_dir="-I$withval" ])AC_ARG_WITH(offix-libs,  [  --with-offix-libs=DIR   Offix include file path ],  [ if test ! -d $withval; then      AC_MSG_WARN($withval is not found.)    fi    offix_lib_dir="-L$withval" ])## audio section#dnl default(d): auto selectiondnl oss(d):     OSS /dev/dspdnl alsa(d):    ALSA pcm devicednl sun(d):     SunOS /dev/audiodnl hpux(d):    HPUX /dev/audiodnl irix(d):    IRIX audiodnl mme(d):     OSF/1 MMEdnl sb_dsp(d):  BSD/OS 2.0 /dev/sb_dspdnl w32(d):     Windows MMSdnl darwin(d):  Mac OS X pcm devicednl alsa(s):    ALSA pcm devicednl alib(A):    HPUX network audio (Alib)dnl nas(n):     Network Audio Systemdnl arts(R):	aRtsdnl esd(e):     EsounDdnl portaudio(p) PortAudiodnl vorbis(v):  Ogg Vorbisdnl flac(F):    FLAC / OggFLACdnl speex(S):   Ogg Speexdnl gogo(g):    MP3 GOGOdnl jack(j):    JACKdnl ao(O):      Libaoaudio_targets='default oss alsa sun hpux irix mme sb_dsp w32 alib nas arts esd vorbis flac gogo portaudio jack ao'AC_ARG_WITH(nas-library,  [  --with-nas-library=library NAS absolute library path(Don't use -laudio)])AC_ARG_WITH(nas-includes,  [  --with-nas-includes=DIR NAS include files are in dir])AC_ARG_ENABLE(audio,  [  --enable-audio[=mode_list] Enable audio (Specify comma separated mode list):                              default:   Automatically select audio device.                              oss:       OSS /dev/dsp                              sun:       SunOS /dev/audio                              hpux:      HPUX /dev/audio                              irix:      IRIX audio library                              mme:       OSF/1 MME                              sb_dsp:    BSD/OS 2.0 /dev/sb_dsp                              w32:       Windows MMS                              darwin:    Darwin CoreAudio                              alsa:      ALSA pcm device                              alib:      HPUX network audio (Alib)                              nas:       NAS - Network Audio System                              arts:      aRts                              esd:       EsounD - Enlightened Sound Daemon                              portaudio: PortAudio                              jack:      JACK                              ao:        Libao                              vorbis:    Ogg Vorbis                              flac:      FLAC / OggFLAC                              speex:     Ogg Speex                              gogo:      MP3 GOGO (Only Windows is supported)],  [ enable_audio=$enableval    have_audio_opt=yes ],  [ enable_audio=yes    have_audio_opt=no ])dnl yes -> defaulttest "x$enable_audio" = xyes && enable_audio=defaultif test "x$enable_audio" != xno; then  for i in `echo $enable_audio | sed 's/,/ /g'`; do    eval "au_enable_$i=yes"  donefidnl Turn on default output modeDEFAULT_PLAYMODE=AC_ARG_WITH(default-output,  [  --with-default-output=<mode>  Specify default output mode (optional):                                (default|alsa|alib|arts|nas|                                esd|wav|au|aiff|list|vorbis|flac|speex|                                gogo|portaudio|jack|ao)],  [ if test "$enable_audio" != no; then    DEFAULT_PLAYMODE=$withval    eval "au_enable_$DEFAULT_PLAYMODE=yes"  else    AC_MSG_WARN(--with-default-output=$withval: audio is not enabled)  fi])dnl compatibility matters.dnl AC_ARG_ENABLE(esd,dnl   [  --enable-esd         EsounD (Obsoleted.  Use --enable-audio=esd)],dnl   [ au_enable_esd=$enableval ])dnl AC_ARG_ENABLE(nas,dnl   [  --enable-nas         NAS  (Obsoleted.  Use --enable-audio=nas)],dnl   [ au_enable_nas=$enableval ])dnl AC_ARG_ENABLE(alsa,dnl   [  --enable-alsa        ALSA   (Obsoleted.  Use --enable-audio=alsa)],dnl   [ au_enable_alsa=$enableval ])dnl target-specific defaultsif test "x$au_enable_default" = xyes; then  case "$target" in  *-*-linux*|*-*-freebsd*)    au_enable_oss=yes    ;;  *-*-bsdi2.0)    au_enable_sb_dsp=yes    ;;  *-*-bsdi2.1|*-*-bsdi3.?|*-*-bsdi4.?)    au_enable_oss=yes    ;;  *-*-hpux*)    au_enable_hpux=yes    ;;  *-dec-*)    au_enable_mme=yes    ;;  *irix*)    au_enable_irix=yes    ;;  *-*-sunos4*)    au_enable_sun=yes    ;;  *-*-solaris*)    au_enable_sun=yes    ;;  *-*-netbsd*)    au_enable_sun=yes    ;;  *-*-cygwin*)    au_enable_w32=yes    ;;  *-*-mingw*)    au_enable_w32=yes    ;;  *-*-darwin*)    au_enable_darwin=yes    ;;  *)    AC_MSG_WARN(No --enable-audio=default audio for $target)    ;;  esacfi# Each audio mode's configurationsdnl ossAC_MSG_CHECKING(enable_audio=oss)if test "x$au_enable_oss" = xyes; then  EXTRADEFS="$EXTRADEFS -DAU_OSS"  SYSEXTRAS="$SYSEXTRAS oss_a.c"  if test "x$ac_cv_header_sys_soundcard_h" = xyes; then    AC_MSG_RESULT(yes - <sys/soundcard.h>)  else    case "$target" in      *linux*|*freebsd*)        dnl <linux/soundcard.h> or <machine/soundcard.h>        AC_MSG_RESULT(yes)        ;;      *)        if test "x$ac_cv_header_soundcard_h" = xyes; then          AC_MSG_RESULT(yes - <soundcard.h>)        else          AC_MSG_WARN(<sys/soundcard.h> is not found)        fi	;;    esac  fi  AC_CHECK_LIB(ossaudio,open)  dnl Why OpenBSD use /dev/audio instead of /dev/dsp for OSS  case "$target" in    *openbsd*)      if test ! -e "/dev/dsp"; then        oss_device=/dev/audio      fi      ;;  esacelse  AC_MSG_RESULT(no)fidnl SunOS'sAC_MSG_CHECKING(enable_audio=sun)if test "x$au_enable_sun" = xyes; then  case "$target" in    *-*-sunos4*)      if test -f /usr/demo/SOUND/libaudio.a; then        EXTRALIBS="$EXTRALIBS /usr/demo/SOUND/libaudio.a"	AC_MSG_RESULT(yes)      else	AC_MSG_RESULT(Notice: libaudio.a is not found [(ignore)])      fi      ;;    *-*-solaris*)      if test -f /usr/demo/SOUND/lib/libaudio.a; then        EXTRALIBS="$EXTRALIBS /usr/demo/SOUND/lib/libaudio.a"	AC_MSG_RESULT(yes)      else        AC_MSG_RESULT(Notice: libaudio.a is not found [(ignore)])      fi      ;;    *)   AC_MSG_RESULT(yes)      ;;  esac  EXTRADEFS="$EXTRADEFS -DAU_SUN"  SYSEXTRAS="$SYSEXTRAS sun_a.c"else  AC_MSG_RESULT(no)fidnl HP-UX'sAC_MSG_CHECKING(enable_audio=hpux)if test "x$au_enable_hpux" = xyes; then  case "$target" in    *-*-hpux*) AC_MSG_RESULT(yes) ;;    *) AC_MSG_WARN(may not work on $target) ;;  esac  EXTRADEFS="$EXTRADEFS -DAU_HPUX_AUDIO"  SYSEXTRAS="$SYSEXTRAS hpux_d_a.c"else  AC_MSG_RESULT(no)fidnl Irix'sAC_MSG_CHECKING(enable_audio=irix)if test "x$au_enable_irix" = xyes; then  case "$target" in    *-sgi-irix5*|*-sgi-irix6.2)      EXTRADEFS="$EXTRADEFS -DAU_AUDRIV -DSGI_OLDAL"      AC_MSG_RESULT(yes)      ;;    *-sgi-irix6*)      EXTRADEFS="$EXTRADEFS -DAU_AUDRIV -DSGI_NEWAL"      AC_MSG_RESULT(yes)      ;;    *) AC_MSG_WARN(may not work on $target) ;;  esac  SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_al.c"  EXTRALIBS="$EXTRASLIBS -laudio"else  AC_MSG_RESULT(no)fidnl OSF/1 MMEAC_MSG_CHECKING(enable_audio=mme)if test "x$au_enable_mme" = xyes; then  case "$target" in    *-dec-*) AC_MSG_RESULT(yes) ;;    *) AC_MSG_WARN(may not work on $target) ;;  esac  EXTRADEFS="$EXTRADEFS -DAU_DEC -DAU_AUDRIV"  SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_mme.c"  CPPFLAGS="$CPPFLAGS -I/usr/opt/MME210/include"  EXTRALIBS="$EXTRALIBS /usr/opt/MME220/lib/libmme.a"else  AC_MSG_RESULT(no)fidnl BSD/OS's sb_dspAC_MSG_CHECKING(enable_audio=sb_dsp)if test "x$au_enable_sb_dsp" = xyes; then  case "$target" in    *-*-bsdi2.0) AC_MSG_RESULT(yes) ;;    *) AC_MSG_WARN(may not work on $target) ;;  esac  EXTRADEFS="$EXTRADEFS -DAU_BSDI -DDEFAULT_RATE=22500"  SYSEXTRAS="$SYSEXTRAS bsd20_a.c"else  AC_MSG_RESULT(no)fidnl Windows' MMEAC_MSG_CHECKING(enable_audio=w32)if test "x$au_enable_w32" = xyes; then  case "$target" in    *-*-cygwin*)     AC_MSG_RESULT(yes)     ;;    *-*-mingw32)     AC_MSG_RESULT(yes)     ;;    *)     AC_MSG_WARN(may not work on $target)     ;;  esac  SYSEXTRAS="$SYSEXTRAS w32_a.c"  if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes || test "x$WATCOM_C" = xyes; then  	EXTRALIBS="$EXTRALIBS winmm.lib"  else    EXTRALIBS="$EXTRALIBS -lwinmm"  fi  EXTRADEFS="$EXTRADEFS -DAU_W32"else  AC_MSG_RESULT(no)fidnl Mac OS X / darwin-x86AC_MSG_CHECKING(enable_audio=darwin)if test "x$au_enable_darwin" = xyes; then  EXTRADEFS="$EXTRADEFS -DAU_DARWIN"  SYSEXTRAS="$SYSEXTRAS darwin_a.c"  EXTRALIBS="$EXTRALIBS -framework CoreAudio"  dnl just say yes or no :-P  case "$target" in    *-*-darwin*)     AC_MSG_RESULT(yes);;   *)     AC_MSG_WARN(may not work on $target)     ;;  esacelse  AC_MSG_RESULT(no)fidnl alsa - Advanced Linux Sound ArchitectureAC_MSG_CHECKING(enable_audio=alsa)if test "x$au_enable_alsa" = xyes; then  AC_MSG_RESULT([yes, configuring alsa])  KEEPCFLAGS=$CFLAGS  KEEPLIBS=$LIBS  KEEPLDFLAGS=$LDFLAGS  AM_PATH_ALSA()  if test "x$alsa_found" = "xyes" ; then    dnl AC_MSG_RESULT(yes)    EXTRADEFS="$EXTRADEFS -DAU_ALSA"    SYSEXTRAS="$SYSEXTRAS alsa_a.c"

⌨️ 快捷键说明

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