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

📄 configure.ac

📁 Aqualung is an advanced music player primarily targeted for the GNU/Linux operating system, but als
💻 AC
📖 第 1 页 / 共 2 页
字号:
# Process this file with autoconf to produce a configure script.AC_INIT(aqualung, 0.9beta6, http://aqualung.sf.net/mantis)AM_INIT_AUTOMAKE(aqualung, 0.9beta6)AC_CONFIG_SRCDIR([src/core.c])AM_CONFIG_HEADER([config.h])AC_MSG_CHECKING(for type of build)AC_ARG_ENABLE(	debug,	[  --enable-debug=yes,no   compile with debugging support (default: no)],	buildtype="debug",	buildtype="release")if test "$buildtype" = "debug"; then        BUILD_CFLAGS="-rdynamic -ggdb -g -O0"	AC_DEFINE([DEBUG_BUILD], [1], [Defined if doing a debug build])	AC_MSG_RESULT(debug)else        BUILD_CFLAGS="-O2"	AC_DEFINE([RELEASE_BUILD], [1], [Defined if doing a release build])	AC_MSG_RESULT(release)fiAC_MSG_CHECKING(for compilation platform)if test `uname -a | grep CYGWIN | wc -l` = "1" ; then   PLATFORM_CFLAGS="-mwin32 -mwindows"   PLATFORM_LIBS="-lintl -lwinmm"   win32="yes"   freebsd="no"   if test "$buildtype" = "debug"; then	   AC_MSG_ERROR([Sorry, debug build under Cygwin is unsupported!])   fi   platform="Cygwin"   AC_MSG_RESULT(Cygwin)fiif test `uname -a | grep FreeBSD | wc -l` = "1"  ; then   PLATFORM_CFLAGS=""   PLATFORM_LIBS=""   win32="no"   freebsd="yes"   platform="FreeBSD"   AC_MSG_RESULT(FreeBSD)fiif test `uname -a | grep Linux | wc -l` = "1"  ; then   PLATFORM_CFLAGS=""   PLATFORM_LIBS=""   win32="no"   freebsd="no"   platform="Linux"   AC_MSG_RESULT(Linux)fi# Checks for programs.AC_PROG_CCAC_PROG_RANLIBAC_PROG_CXX# Checks for header files.AC_HEADER_STDCAC_CHECK_HEADERS([errno.h fcntl.h stdlib.h string.h sys/ioctl.h unistd.h dlfcn.h])# Checks for typedefs, structures, and compiler characteristics.AC_C_CONSTAC_TYPE_SIZE_T# Checks for library functions.AC_PROG_GCC_TRADITIONALAC_FUNC_MALLOCAC_FUNC_STATAC_CHECK_FUNCS([floor memset mkdir strdup strrchr strstr])AC_CHECK_PROG([var], [pkg-config], [yes], [no])if test ! "$var" = "yes"; then	AC_MSG_ERROR(You do not appear to have pkg-config installed)fiif test $win32 = "no" ; thenAC_CHECK_LIB(pthread,	pthread_create,	[],	[AC_MSG_ERROR(You do not appear to have a usable pthread library)])fiif test $win32 = "no" -a $freebsd = "no" ; thenAC_CHECK_LIB(dl,	dlopen,	[],	[AC_MSG_ERROR(You do not appear to have a usable interface to the dynamic linking loader.)])fiz_LIBS=""AC_CHECK_LIB(z,	gzopen, [lib=yes], [lib=no])if test "$lib" = "yes"; then    z_LIBS="-lz"    AC_DEFINE([HAVE_LIBZ], [1], [Defined if compile with libz])fibz2_LIBS=""AC_CHECK_LIB(bz2, BZ2_bzopen, [lib=yes], [lib=no])if test "$lib" = "yes"; then    bz2_LIBS="-lbz2"    AC_DEFINE([HAVE_LIBBZ2], [1], [Defined if compile with libbz2])fi# Checks for libraries.AC_MSG_CHECKING(whether GTK+ version >= 2.6)if pkg-config --exists 'gtk+-2.0 >= 2.6'; then        gtk_CFLAGS=`pkg-config --cflags gtk+-2.0`	gtk_LIBS=`pkg-config --libs gtk+-2.0`	glib_CFLAGS=`pkg-config --cflags gthread-2.0`	glib_LIBS=`pkg-config --libs gthread-2.0`        AC_MSG_RESULT(yes)else	AC_MSG_RESULT(no)	AC_MSG_ERROR(GTK+ not found or too old (version < 2.6))fiAC_CHECK_PROG([var], [xml2-config], [yes], [no])if test ! "$var" = "yes"; then	AC_MSG_ERROR(You do not appear to have xml2-config installed. This usually means that the libxml2 library is missing or not properly installed on your system. Get libxml2 from http://xmlsoft.org)fixml_CFLAGS=`xml2-config --cflags`xml_LIBS=`xml2-config --libs`AC_CHECK_LIB(xml2,	xmlNewDoc,	[],	[AC_MSG_ERROR(You do not appear to have libxml2 installed. Grab it from http://xmlsoft.org)])AC_MSG_CHECKING(for OSS support)AC_ARG_WITH(	oss,	[  --with-oss=yes,no       compile with OSS support (default: yes)],	oss="$withval",	oss="detect")if test "$oss" = no; then	AC_MSG_RESULT(no)else	if test $freebsd = "no" ; then	        AC_CHECK_HEADER([linux/soundcard.h], [hdr=yes], [hdr=no])	else	        AC_CHECK_HEADER([sys/soundcard.h], [hdr=yes], [hdr=no])	fi	if test "$hdr" = "yes"; then		AC_DEFINE([HAVE_OSS], [1], [Defined if compile with OSS support])	fi	if test "$hdr" = "no" -a "$oss" = "yes"; then	        if test $freebsd = "no" ; then		        AC_MSG_ERROR(You do not appear to have linux/soundcard.h needed by OSS sound support.)		else		        AC_MSG_ERROR(You do not appear to have sys/soundcard.h needed by OSS sound support.)		fi	fi	if test "$oss" = "detect"; then	        oss=$hdr	fifiAC_MSG_CHECKING(for ALSA support)AC_ARG_WITH(	alsa,	[  --with-alsa=yes,no      compile with ALSA support (default: yes)],	alsa="$withval",	alsa="detect")if test "$alsa" = "no"; then	AC_MSG_RESULT(no)else	AC_CHECK_LIB(asound, snd_pcm_open, [lib=yes], [lib=no])	if test "$lib" = "yes"; then	        alsa_CFLAGS=`pkg-config --cflags alsa`		alsa_LIBS=`pkg-config --libs alsa`		AC_DEFINE([HAVE_ALSA], [1], [Defined if compile with ALSA support])	fi	if test "$lib" = "no" -a "$alsa" = "yes"; then		AC_MSG_ERROR(You do not appear to have the ALSA library installed)	fi	if test "$alsa" = "detect"; then	        alsa=$lib	fifiAC_MSG_CHECKING(for JACK support)AC_ARG_WITH(	jack,	[  --with-jack=yes,no      compile with JACK support (default: yes)],	jack="$withval",	jack="detect")if test "$jack" = "no"; then	AC_MSG_RESULT(no)else	AC_CHECK_LIB(jack, jack_client_new, [lib=yes], [lib=no])	if test "$lib" = "yes"; then	        jack_CFLAGS=`pkg-config --cflags jack`		jack_LIBS=`pkg-config --libs jack`		AC_DEFINE([HAVE_JACK], [1], [Defined if compile with JACK support])	fi	if test "$lib" = "no" -a "$jack" = "yes"; then		AC_MSG_ERROR(You do not appear to have the JACK library installed. Grab it from http://jackaudio.org)	fi	if test "$jack" = "detect"; then	        jack=$lib	fifiAC_MSG_CHECKING(for Sample Rate Converter support)AC_ARG_WITH(	src,	[  --with-src=yes,no       compile with Sample Rate Converter support (default: yes)],	src="$withval",	src="detect")if test "$src" = "no"; then	AC_MSG_RESULT(no)else	AC_CHECK_LIB(samplerate, src_new, [lib=yes], [lib=no])	if test "$lib" = "yes"; then	        src_LIBS=`pkg-config --libs samplerate`		AC_DEFINE([HAVE_SRC], [1], [Defined if compile with Sample Rate Converter support])	fi	if test "$lib" = "no" -a "$src" = "yes"; then	        AC_MSG_ERROR(You do not appear to have libsamplerate (aka. Secret Rabbit Code) installed. Grab it from  http://www.mega-nerd.com/SRC/ )	fi	if test "$src" = "detect"; then	        src=$lib	fifiAC_MSG_CHECKING(for sndfile support)AC_ARG_WITH(	sndfile,	[  --with-sndfile=yes,no   compile with sndfile (WAV, AIFF, etc.) support (default: yes)],	sndfile="$withval",	sndfile="detect")if test "$sndfile" = "no"; then	AC_MSG_RESULT(no)else        AC_CHECK_LIB(sndfile, sf_open, [lib=yes], [lib=no])	if test "$lib" = "yes"; then		sndfile_LIBS=`pkg-config --libs sndfile`		AC_DEFINE([HAVE_SNDFILE], [1], [Defined if compile with sndfile (WAV, AIFF, etc.) support])		AC_MSG_CHECKING(whether sndfile version >= 1.0.12)		if pkg-config --exists 'sndfile >= 1.0.12'; then		        AC_MSG_RESULT(yes)			AC_DEFINE([HAVE_NEW_SNDFILE], [1], [Defined if version(sndfile) >= 1.0.12])		else			AC_MSG_RESULT(no)		fi	fi	if test "$lib" = "no" -a "$sndfile" = "yes"; then		AC_MSG_ERROR(You do not appear to have the sndfile library installed. Grab it from  http://www.mega-nerd.com/libsndfile/ )	fi	if test "$sndfile" = "detect"; then	        sndfile=$lib	fifiAC_MSG_CHECKING(for FLAC support)AC_ARG_WITH(	flac,	[  --with-flac=yes,no      compile with FLAC support (default: yes)],	flac="$withval",	flac="detect")if test "$flac" = "no"; then	AC_MSG_RESULT(no)else	AC_CHECK_LIB(FLAC, FLAC__file_decoder_new, [lib=yes], [lib=no])	if test "$lib" = "yes"; then	        flac_LIBS="-lFLAC"		AC_DEFINE([HAVE_FLAC], [1], [Defined if compile with FLAC support])	fi	if test "$lib" = "no" -a "$flac" = "yes"; then		AC_MSG_ERROR(You do not appear to have the FLAC library installed. Grab it from http://flac.sourceforge.net)	fi	if test "$flac" = "detect"; then		flac=$lib	fifiAC_MSG_CHECKING(for Ogg Vorbis support)AC_ARG_WITH(	ogg,	[  --with-ogg=yes,no       compile with Ogg Vorbis support (default: yes)],	ogg="$withval",	ogg="detect")if test "$ogg" = "no"; then	AC_MSG_RESULT(no)else	AC_CHECK_LIB(vorbis, ov_open, [lib=yes], [lib=no], [-lvorbisfile])	if test "$lib" = "yes"; then		ogg_LIBS="-lvorbis -lvorbisfile"		AC_DEFINE([HAVE_OGG_VORBIS], [1], [Defined if compile with Ogg Vorbis support])	fi	if test "$lib" = "no" -a "$ogg" = "yes"; then		AC_MSG_ERROR(You do not appear to have the vorbis and vorbisfile libraries installed. Grab them from http://www.xiph.org/ogg/vorbis)	fi	if test "$ogg" = "detect"; then		ogg=$lib	fifiAC_MSG_CHECKING(for Ogg Speex support)AC_ARG_WITH(	speex,	[  --with-speex=yes,no     compile with Ogg Speex support (default: yes)],	speex="$withval",	speex="detect")if test "$speex" = "no"; then	AC_MSG_RESULT(no)else	AC_CHECK_LIB(oggz, oggz_open, [oggzlib=yes], [oggzlib=no], [-loggz -logg])	AC_CHECK_LIB(speex, speex_bits_init, [speexlib=yes], [speexlib=no], [-lspeex])	if test "$oggzlib" = "yes"; then		if test "$speexlib" = "yes"; then			speex_LIBS="-loggz -logg -lspeex"			lib="yes"			AC_DEFINE([HAVE_SPEEX], [1], [Defined if compile with Ogg Speex support])		else			lib="no"		fi	else		lib="no"	fi	if test "$lib" = "no" -a "$speex" = "yes"; then		AC_MSG_ERROR(You do not appear to have the oggz and speex libraries installed. Grab them from http://www.annodex.net/software/liboggz and http://speex.org)

⌨️ 快捷键说明

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