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

📄 aclocal.m4

📁 一个开源的音频解码源程序
💻 M4
📖 第 1 页 / 共 2 页
字号:
dnl aclocal.m4 generated automatically by aclocal 1.4-p6dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.dnl This file is free software; the Free Software Foundationdnl gives unlimited permission to copy and/or distribute it,dnl with or without modifications, as long as this notice is preserved.dnl This program is distributed in the hope that it will be useful,dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; withoutdnl even the implied warranty of MERCHANTABILITY or FITNESS FOR Adnl PARTICULAR PURPOSE.# Do all the work for Automake.  This macro actually does too much --# some checks are only needed if your package does certain things.# But this isn't really a big deal.# serial 1dnl Usage:dnl AM_INIT_AUTOMAKE(package,version, [no-define])AC_DEFUN([AM_INIT_AUTOMAKE],[AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnlAC_REQUIRE([AC_PROG_INSTALL])PACKAGE=[$1]AC_SUBST(PACKAGE)VERSION=[$2]AC_SUBST(VERSION)dnl test to see if srcdir already configuredif test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])fiifelse([$3],,AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]))AC_REQUIRE([AM_SANITY_CHECK])AC_REQUIRE([AC_ARG_PROGRAM])dnl FIXME This is truly gross.missing_dir=`cd $ac_aux_dir && pwd`AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}, $missing_dir)AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}, $missing_dir)AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)AC_REQUIRE([AC_PROG_MAKE_SET])])# Copyright 2002  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# AM_AUTOMAKE_VERSION(VERSION)# ----------------------------# Automake X.Y traces this macro to ensure aclocal.m4 has been# generated from the m4 files accompanying Automake X.Y.AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.4"])# AM_SET_CURRENT_AUTOMAKE_VERSION# -------------------------------# Call AM_AUTOMAKE_VERSION so it can be traced.# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],	 [AM_AUTOMAKE_VERSION([1.4-p6])])## Check to make sure that the build environment is sane.#AC_DEFUN([AM_SANITY_CHECK],[AC_MSG_CHECKING([whether build environment is sane])# Just in casesleep 1echo timestamp > conftestfile# Do `set' in a subshell so we don't clobber the current shell's# arguments.  Must try -L first in case configure is actually a# symlink; some systems play weird games with the mod time of symlinks# (eg FreeBSD returns the mod time of the symlink's containing# directory).if (   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`   if test "[$]*" = "X"; then      # -L didn't work.      set X `ls -t $srcdir/configure conftestfile`   fi   if test "[$]*" != "X $srcdir/configure conftestfile" \      && test "[$]*" != "X conftestfile $srcdir/configure"; then      # If neither matched, then we have a broken ls.  This can happen      # if, for instance, CONFIG_SHELL is bash and it inherits a      # broken ls alias from the environment.  This has actually      # happened.  Such a system could not be considered "sane".      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a brokenalias in your environment])   fi   test "[$]2" = conftestfile   )then   # Ok.   :else   AC_MSG_ERROR([newly created file is older than distributed files!Check your system clock])firm -f conftest*AC_MSG_RESULT(yes)])dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)dnl The program must properly implement --version.AC_DEFUN([AM_MISSING_PROG],[AC_MSG_CHECKING(for working $2)# Run test in a subshell; some versions of sh will print an error if# an executable is not found, even if stderr is redirected.# Redirect stdin to placate older versions of autoconf.  Sigh.if ($2 --version) < /dev/null > /dev/null 2>&1; then   $1=$2   AC_MSG_RESULT(found)else   $1="$3/missing $2"   AC_MSG_RESULT(missing)fiAC_SUBST($1)])# Like AC_CONFIG_HEADER, but automatically create stamp file.AC_DEFUN([AM_CONFIG_HEADER],[AC_PREREQ([2.12])AC_CONFIG_HEADER([$1])dnl When config.status generates a header, we must update the stamp-h file.dnl This file resides in the same directory as the config headerdnl that is generated.  We must strip everything past the first ":",dnl and everything past the last "/".AC_OUTPUT_COMMANDS(changequote(<<,>>)dnlifelse(patsubst(<<$1>>, <<[^ ]>>, <<>>), <<>>,<<test -z "<<$>>CONFIG_HEADERS" || echo timestamp > patsubst(<<$1>>, <<^\([^:]*/\)?.*>>, <<\1>>)stamp-h<<>>dnl>>,<<am_indx=1for am_file in <<$1>>; do  case " <<$>>CONFIG_HEADERS " in  *" <<$>>am_file "*<<)>>    echo timestamp > `echo <<$>>am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx    ;;  esac  am_indx=`expr "<<$>>am_indx" + 1`done<<>>dnl>>)changequote([,]))])# Copyright (C) 1995-2002 Free Software Foundation, Inc.# Copyright (C) 2001-2003 Red Hat, Inc.## This file is free software, distributed under the terms of the GNU# General Public License.  As a special exception to the GNU General# Public License, this file may be distributed as part of a program# that contains a configuration script generated by Autoconf, under# the same distribution terms as the rest of that program.## This file can be copied and used freely without restrictions.  It can# be used in projects which are not available under the GNU Public License# but which still want to provide support for the GNU gettext functionality.## Macro to add for using GNU gettext.# Ulrich Drepper <drepper@cygnus.com>, 1995, 1996## Modified to never use included libintl. # Owen Taylor <otaylor@redhat.com>, 12/15/1998## Major rework to remove unused code# Owen Taylor <otaylor@redhat.com>, 12/11/2002## Added better handling of ALL_LINGUAS from GNU gettext version # written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002## We need this here as well, since someone might use autoconf-2.5x# to configure GLib then an older version to configure a package# using AM_GLIB_GNU_GETTEXTAC_PREREQ(2.53)dnldnl We go to great lengths to make sure that aclocal won't dnl try to pull in the installed version of these macrosdnl when running aclocal in the glib directory.dnlm4_copy([AC_DEFUN],[glib_DEFUN])m4_copy([AC_REQUIRE],[glib_REQUIRE])dnldnl At the end, if we're not within glib, we'll define the publicdnl definitions in terms of our private definitions.dnl# GLIB_LC_MESSAGES#--------------------glib_DEFUN([GLIB_LC_MESSAGES],  [AC_CHECK_HEADERS([locale.h])    if test $ac_cv_header_locale_h = yes; then    AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,      [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],       am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])    if test $am_cv_val_LC_MESSAGES = yes; then      AC_DEFINE(HAVE_LC_MESSAGES, 1,        [Define if your <locale.h> file defines LC_MESSAGES.])    fi  fi])# GLIB_PATH_PROG_WITH_TEST#----------------------------dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,dnl   TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])glib_DEFUN([GLIB_PATH_PROG_WITH_TEST],[# Extract the first word of "$2", so it can be a program name with args.set dummy $2; ac_word=[$]2AC_MSG_CHECKING([for $ac_word])AC_CACHE_VAL(ac_cv_path_$1,[case "[$]$1" in  /*)  ac_cv_path_$1="[$]$1" # Let the user override the test with a path.  ;;  *)  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"  for ac_dir in ifelse([$5], , $PATH, [$5]); do    test -z "$ac_dir" && ac_dir=.    if test -f $ac_dir/$ac_word; then      if [$3]; then	ac_cv_path_$1="$ac_dir/$ac_word"	break      fi    fi  done  IFS="$ac_save_ifs"dnl If no 4th arg is given, leave the cache variable unset,dnl so AC_PATH_PROGS will keep looking.ifelse([$4], , , [  test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"])dnl  ;;esac])dnl$1="$ac_cv_path_$1"if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then  AC_MSG_RESULT([$]$1)else  AC_MSG_RESULT(no)fiAC_SUBST($1)dnl])# GLIB_WITH_NLS#-----------------glib_DEFUN([GLIB_WITH_NLS],  dnl NLS is obligatory  [USE_NLS=yes    AC_SUBST(USE_NLS)    gt_cv_have_gettext=no    CATOBJEXT=NONE    XGETTEXT=:    INTLLIBS=    AC_CHECK_HEADER(libintl.h,     [gt_cv_func_dgettext_libintl="no"      libintl_extra_libs=""      #      # First check in libc      #      AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc,        [AC_TRY_LINK([#include <libintl.h>],          [return (int) dgettext ("","")],	  gt_cv_func_dgettext_libc=yes,          gt_cv_func_dgettext_libc=no)        ])        if test "$gt_cv_func_dgettext_libc" = "yes" ; then        AC_CHECK_FUNCS(bind_textdomain_codeset)      fi      #      # If we don't have everything we want, check in libintl      #      if test "$gt_cv_func_dgettext_libc" != "yes" \         || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then                AC_CHECK_LIB(intl, bindtextdomain,	    [AC_CHECK_LIB(intl, dgettext,		          gt_cv_func_dgettext_libintl=yes)])	if test "$gt_cv_func_dgettext_libintl" != "yes" ; then	  AC_MSG_CHECKING([if -liconv is needed to use gettext])	  AC_MSG_RESULT([])          AC_CHECK_LIB(intl, dcgettext,		       [gt_cv_func_dgettext_libintl=yes			libintl_extra_libs=-liconv],			:,-liconv)        fi        #        # If we found libintl, then check in it for bind_textdomain_codeset();        # we'll prefer libc if neither have bind_textdomain_codeset(),        # and both have dgettext        #        if test "$gt_cv_func_dgettext_libintl" = "yes" ; then          glib_save_LIBS="$LIBS"          LIBS="$LIBS -lintl $libintl_extra_libs"          unset ac_cv_func_bind_textdomain_codeset          AC_CHECK_FUNCS(bind_textdomain_codeset)          LIBS="$glib_save_LIBS"          if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then            gt_cv_func_dgettext_libc=no          else            if test "$gt_cv_func_dgettext_libc" = "yes"; then              gt_cv_func_dgettext_libintl=no            fi          fi        fi      fi      if test "$gt_cv_func_dgettext_libc" = "yes" \	|| test "$gt_cv_func_dgettext_libintl" = "yes"; then        gt_cv_have_gettext=yes      fi        if test "$gt_cv_func_dgettext_libintl" = "yes"; then        INTLLIBS="-lintl $libintl_extra_libs"      fi        if test "$gt_cv_have_gettext" = "yes"; then	AC_DEFINE(HAVE_GETTEXT,1,	  [Define if the GNU gettext() function is already present or preinstalled.])	GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,	  [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl	if test "$MSGFMT" != "no"; then          glib_save_LIBS="$LIBS"          LIBS="$LIBS $INTLLIBS"	  AC_CHECK_FUNCS(dcgettext)	  AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)	  GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,	    [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)	  AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;			 return _nl_msg_cat_cntr],	    [CATOBJEXT=.gmo              DATADIRNAME=share],	    [case $host in	    *-*-solaris*)	    dnl On Solaris, if bind_textdomain_codeset is in libc,	    dnl GNU format message catalog is always supported,            dnl since both are added to the libc all together.	    dnl Hence, we'd like to go with DATADIRNAME=share and	    dnl and CATOBJEXT=.gmo in this case.            AC_CHECK_FUNC(bind_textdomain_codeset,	      [CATOBJEXT=.gmo                DATADIRNAME=share],	      [CATOBJEXT=.mo               DATADIRNAME=lib])	    ;;	    *)	    CATOBJEXT=.mo            DATADIRNAME=lib	    ;;	    esac])          LIBS="$glib_save_LIBS"	  INSTOBJEXT=.mo	else	  gt_cv_have_gettext=no	fi      fi    ])    if test "$gt_cv_have_gettext" = "yes" ; then      AC_DEFINE(ENABLE_NLS, 1,        [always defined to indicate that i18n is enabled])    fi    dnl Test whether we really found GNU xgettext.    if test "$XGETTEXT" != ":"; then      dnl If it is not GNU xgettext we define it as : so that the      dnl Makefiles still can work.      if $XGETTEXT --omit-header /dev/null 2> /dev/null; then        : ;      else        AC_MSG_RESULT(	  [found xgettext program is not GNU xgettext; ignore it])        XGETTEXT=":"      fi    fi

⌨️ 快捷键说明

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