📄 aclocal.m4
字号:
p n /\\\\$/ b loop p } /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`AS_DIRNAME(["$file"])` AS_MKDIR_P([$dirpart/$fdir]) # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" donedone])# _AM_OUTPUT_DEPENDENCY_COMMANDS# AM_OUTPUT_DEPENDENCY_COMMANDS# -----------------------------# This macro should only be invoked once -- use via AC_REQUIRE.## This code is only required when automatic dependency tracking# is enabled. FIXME. This creates each `.P' file that we will# need in order to bootstrap the dependency handling code.AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],[AC_CONFIG_COMMANDS([depfiles], [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])])# Check to see how 'make' treats includes. -*- Autoconf -*-# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.# This program is free software; you can redistribute it and/or modify# it under the terms of the GNU General Public License as published by# the Free Software Foundation; either version 2, or (at your option)# any later version.# This program is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.# You should have received a copy of the GNU General Public License# along with this program; if not, write to the Free Software# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA# 02111-1307, USA.# serial 2# AM_MAKE_INCLUDE()# -----------------# Check to see how make treats includes.AC_DEFUN([AM_MAKE_INCLUDE],[am_make=${MAKE-make}cat > confinc << 'END'am__doit: @echo done.PHONY: am__doitEND# If we don't find an include directive, just comment out the code.AC_MSG_CHECKING([for style of include used by $am_make])am__include="#"am__quote=_am_result=none# First try GNU make style include.echo "include confinc" > confmf# We grep out `Entering directory' and `Leaving directory'# messages which can occur if `w' ends up in MAKEFLAGS.# In particular we don't look at `^make:' because GNU make might# be invoked under some other name (usually "gmake"), in which# case it prints its new name instead of `make'.if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then am__include=include am__quote= _am_result=GNUfi# Now try BSD make style include.if test "$am__include" = "#"; then echo '.include "confinc"' > confmf if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then am__include=.include am__quote="\"" _am_result=BSD fifiAC_SUBST([am__include])AC_SUBST([am__quote])AC_MSG_RESULT([$_am_result])rm -f confinc confmf])# Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*-# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.# This program is free software; you can redistribute it and/or modify# it under the terms of the GNU General Public License as published by# the Free Software Foundation; either version 2, or (at your option)# any later version.# This program is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.# You should have received a copy of the GNU General Public License# along with this program; if not, write to the Free Software# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA# 02111-1307, USA.AC_PREREQ([2.52])# serial 6# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])dnl Configure Paths for Alsadnl Some modifications by Richard Boulton <richard-alsa@tartarus.org>dnl Christopher Lansdown <lansdoct@cs.alfred.edu>dnl Jaroslav Kysela <perex@suse.cz>dnl Last modification: $Id: alsa.m4,v 1.24 2004/09/15 18:48:07 tiwai Exp $dnl AM_PATH_ALSA([MINIMUM-VERSION [, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])dnl Test for libasound, and define ALSA_CFLAGS and ALSA_LIBS as appropriate.dnl enables arguments --with-alsa-prefix=dnl --with-alsa-enc-prefix=dnl --disable-alsatestdnldnl For backwards compatibility, if ACTION_IF_NOT_FOUND is not specified,dnl and the alsa libraries are not found, a fatal AC_MSG_ERROR() will result.dnlAC_DEFUN([AM_PATH_ALSA],[dnl Save the original CFLAGS, LDFLAGS, and LIBSalsa_save_CFLAGS="$CFLAGS"alsa_save_LDFLAGS="$LDFLAGS"alsa_save_LIBS="$LIBS"alsa_found=yesdnldnl Get the cflags and libraries for alsadnlAC_ARG_WITH(alsa-prefix,[ --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)],[alsa_prefix="$withval"], [alsa_prefix=""])AC_ARG_WITH(alsa-inc-prefix,[ --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)],[alsa_inc_prefix="$withval"], [alsa_inc_prefix=""])dnl FIXME: this is not yet implementedAC_ARG_ENABLE(alsatest,[ --disable-alsatest Do not try to compile and run a test Alsa program],[enable_alsatest="$enableval"],[enable_alsatest=yes])dnl Add any special include directoriesAC_MSG_CHECKING(for ALSA CFLAGS)if test "$alsa_inc_prefix" != "" ; then ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix" CFLAGS="$CFLAGS -I$alsa_inc_prefix"fiAC_MSG_RESULT($ALSA_CFLAGS)dnl add any special lib dirsAC_MSG_CHECKING(for ALSA LDFLAGS)if test "$alsa_prefix" != "" ; then ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix" LDFLAGS="$LDFLAGS $ALSA_LIBS"fidnl add the alsa libraryALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"LIBS="$ALSA_LIBS $LIBS"AC_MSG_RESULT($ALSA_LIBS)dnl Check for a working version of libasound that is of the right version.min_alsa_version=ifelse([$1], ,0.1.1,$1)AC_MSG_CHECKING(for libasound headers version >= $min_alsa_version)no_alsa="" alsa_min_major_version=`echo $min_alsa_version | \ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` alsa_min_minor_version=`echo $min_alsa_version | \ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'` alsa_min_micro_version=`echo $min_alsa_version | \ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`AC_LANG_SAVEAC_LANG_CAC_TRY_COMPILE([#include <alsa/asoundlib.h>], [/* ensure backward compatibility */#if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)#define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR#endif#if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)#define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR#endif#if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)#define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR#endif# if(SND_LIB_MAJOR > $alsa_min_major_version) exit(0);# else# if(SND_LIB_MAJOR < $alsa_min_major_version)# error not present# endif# if(SND_LIB_MINOR > $alsa_min_minor_version) exit(0);# else# if(SND_LIB_MINOR < $alsa_min_minor_version)# error not present# endif# if(SND_LIB_SUBMINOR < $alsa_min_micro_version)# error not present# endif# endif# endifexit(0);], [AC_MSG_RESULT(found.)], [AC_MSG_RESULT(not present.) ifelse([$3], , [AC_MSG_ERROR(Sufficiently new version of libasound not found.)]) alsa_found=no])AC_LANG_RESTOREdnl Now that we know that we have the right version, let's see if we have the library and not just the headers.if test "x$enable_alsatest" = "xyes"; thenAC_CHECK_LIB([asound], [snd_ctl_open],, [ifelse([$3], , [AC_MSG_ERROR(No linkable libasound was found.)]) alsa_found=no])fiif test "x$alsa_found" = "xyes" ; then ifelse([$2], , :, [$2]) LIBS=`echo $LIBS | sed 's/-lasound//g'` LIBS=`echo $LIBS | sed 's/ //'` LIBS="-lasound $LIBS"fiif test "x$alsa_found" = "xno" ; then ifelse([$3], , :, [$3]) CFLAGS="$alsa_save_CFLAGS" LDFLAGS="$alsa_save_LDFLAGS" LIBS="$alsa_save_LIBS" ALSA_CFLAGS="" ALSA_LIBS=""fidnl That should be it. Now just export out symbols:AC_SUBST(ALSA_CFLAGS)AC_SUBST(ALSA_LIBS)])# ao.m4# Configure paths for libao# Jack Moffitt <jack@icecast.org> 10-21-2000# Shamelessly stolen from Owen Taylor and Manish Singhdnl XIPH_PATH_AO([ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])dnl Test for libao, and define AO_CFLAGS and AO_LIBSdnlAC_DEFUN([XIPH_PATH_AO],[dnl dnl Get the cflags and librariesdnlAC_ARG_WITH(ao,[ --with-ao=PFX Prefix where libao is installed (optional)], ao_prefix="$withval", ao_prefix="")AC_ARG_WITH(ao-libraries,[ --with-ao-libraries=DIR Directory where libao library is installed (optional)], ao_libraries="$withval", ao_libraries="")AC_ARG_WITH(ao-includes,[ --with-ao-includes=DIR Directory where libao header files are installed (optional)], ao_includes="$withval", ao_includes="")AC_ARG_ENABLE(aotest, [ --disable-aotest Do not try to compile and run a test ao program],, enable_aotest=yes) if test "x$ao_libraries" != "x" ; then AO_LIBS="-L$ao_libraries" elif test "x$ao_prefix" != "x"; then AO_LIBS="-L$ao_prefix/lib" elif test "x$prefix" != "xNONE"; then AO_LIBS="-L$prefix/lib" fi if test "x$ao_includes" != "x" ; then AO_CFLAGS="-I$ao_includes" elif test "x$ao_prefix" != "x"; then AO_CFLAGS="-I$ao_prefix/include" elif test "x$prefix" != "xNONE"; then AO_CFLAGS="-I$prefix/include" fi # see where dl* and friends live AC_CHECK_FUNCS(dlopen, [AO_DL_LIBS=""], [ AC_CHECK_LIB(dl, dlopen, [AO_DL_LIBS="-ldl"], [ AC_MSG_WARN([could not find dlopen() needed by libao sound drivers your system may not be supported.]) ]) ]) AO_LIBS="$AO_LIBS -lao $AO_DL_LIBS" AC_MSG_CHECKING(for ao) no_ao="" if test "x$enable_aotest" = "xyes" ; then ac_save_CFLAGS="$CFLAGS" ac_save_LIBS="$LIBS" CFLAGS="$CFLAGS $AO_CFLAGS" LIBS="$LIBS $AO_LIBS"dnldnl Now check if the installed ao is sufficiently new.dnl rm -f conf.aotest AC_TRY_RUN([#include <stdio.h>#include <stdlib.h>#include <string.h>#include <ao/ao.h>int main (){ system("touch conf.aotest"); return 0;}],, no_ao=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"]) CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi if test "x$no_ao" = "x" ; then AC_MSG_RESULT(yes) ifelse([$1], , :, [$1]) else AC_MSG_RESULT(no) if test -f conf.aotest ; then : else echo "*** Could not run ao test program, checking why..." CFLAGS="$CFLAGS $AO_CFLAGS" LIBS="$LIBS $AO_LIBS" AC_TRY_LINK([#include <stdio.h>#include <ao/ao.h>], [ return 0; ], [ echo "*** The test program compiled, but did not run. This usually means" echo "*** that the run-time linker is not finding ao or finding the wrong" echo "*** version of ao. If it is not finding ao, you'll need to set your" echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" echo "*** to the installed location Also, make sure you have run ldconfig if that" echo "*** is required on your system" echo "***" echo "*** If you have an old version installed, it is best to remove it, although" echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"], [ echo "*** The test program failed to compile or link. See the file config.log for the" echo "*** exact error that occured. This usually means ao was incorrectly installed" echo "*** or that you have moved ao since it was installed." ]) CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi AO_CFLAGS="" AO_LIBS="" ifelse([$2], , :, [$2]) fi AC_SUBST(AO_CFLAGS) AC_SUBST(AO_LIBS) rm -f conf.aotest])
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -