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

📄 aclocal.m4

📁 一个开源的音频解码源程序
💻 M4
📖 第 1 页 / 共 2 页
字号:
    # We need to process the po/ directory.    POSUB=po    AC_OUTPUT_COMMANDS(      [case "$CONFIG_FILES" in *po/Makefile.in*)        sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile      esac])    dnl These rules are solely for the distribution goal.  While doing this    dnl we only have to keep exactly one list of the available catalogs    dnl in configure.in.    for lang in $ALL_LINGUAS; do      GMOFILES="$GMOFILES $lang.gmo"      POFILES="$POFILES $lang.po"    done    dnl Make all variables we use known to autoconf.    AC_SUBST(CATALOGS)    AC_SUBST(CATOBJEXT)    AC_SUBST(DATADIRNAME)    AC_SUBST(GMOFILES)    AC_SUBST(INSTOBJEXT)    AC_SUBST(INTLLIBS)    AC_SUBST(PO_IN_DATADIR_TRUE)    AC_SUBST(PO_IN_DATADIR_FALSE)    AC_SUBST(POFILES)    AC_SUBST(POSUB)  ])# AM_GLIB_GNU_GETTEXT# -------------------# Do checks necessary for use of gettext. If a suitable implementation # of gettext is found in either in libintl or in the C library,# it will set INTLLIBS to the libraries needed for use of gettext# and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable# gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST()# on various variables needed by the Makefile.in.in installed by # glib-gettextize.dnlglib_DEFUN([GLIB_GNU_GETTEXT],  [AC_REQUIRE([AC_PROG_CC])dnl   AC_REQUIRE([AC_HEADER_STDC])dnl      GLIB_LC_MESSAGES   GLIB_WITH_NLS   if test "$gt_cv_have_gettext" = "yes"; then     if test "x$ALL_LINGUAS" = "x"; then       LINGUAS=     else       AC_MSG_CHECKING(for catalogs to be installed)       NEW_LINGUAS=       for presentlang in $ALL_LINGUAS; do         useit=no         if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then           desiredlanguages="$LINGUAS"         else           desiredlanguages="$ALL_LINGUAS"         fi         for desiredlang in $desiredlanguages; do 	   # Use the presentlang catalog if desiredlang is           #   a. equal to presentlang, or           #   b. a variant of presentlang (because in this case,           #      presentlang can be used as a fallback for messages           #      which are not translated in the desiredlang catalog).           case "$desiredlang" in             "$presentlang"*) useit=yes;;           esac         done         if test $useit = yes; then           NEW_LINGUAS="$NEW_LINGUAS $presentlang"         fi       done       LINGUAS=$NEW_LINGUAS       AC_MSG_RESULT($LINGUAS)     fi     dnl Construct list of names of catalog files to be constructed.     if test -n "$LINGUAS"; then       for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done     fi   fi   dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly   dnl find the mkinstalldirs script in another subdir but ($top_srcdir).   dnl Try to locate is.   MKINSTALLDIRS=   if test -n "$ac_aux_dir"; then     MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"   fi   if test -z "$MKINSTALLDIRS"; then     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"   fi   AC_SUBST(MKINSTALLDIRS)   dnl Generate list of files to be processed by xgettext which will   dnl be included in po/Makefile.   test -d po || mkdir po   if test "x$srcdir" != "x."; then     if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then       posrcprefix="$srcdir/"     else       posrcprefix="../$srcdir/"     fi   else     posrcprefix="../"   fi   rm -f po/POTFILES   sed -e "/^#/d" -e "/^\$/d" -e "s,.*,	$posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \	< $srcdir/po/POTFILES.in > po/POTFILES  ])# AM_GLIB_DEFINE_LOCALEDIR(VARIABLE)# -------------------------------# Define VARIABLE to the location where catalog files will# be installed by po/Makefile.glib_DEFUN([GLIB_DEFINE_LOCALEDIR],[glib_REQUIRE([GLIB_GNU_GETTEXT])dnlglib_save_prefix="$prefix"glib_save_exec_prefix="$exec_prefix"test "x$prefix" = xNONE && prefix=$ac_default_prefixtest "x$exec_prefix" = xNONE && exec_prefix=$prefixif test "x$CATOBJEXT" = "x.mo" ; then  localedir=`eval echo "${libdir}/locale"`else  localedir=`eval echo "${datadir}/locale"`fiprefix="$glib_save_prefix"exec_prefix="$glib_save_exec_prefix"AC_DEFINE_UNQUOTED($1, "$localedir",  [Define the location where the catalogs will be installed])])dnldnl Now the definitions that aclocal will finddnlifdef(glib_configure_in,[],[AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)])AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])])dnlll## intltool.m4 - Configure intltool for the target system. -*-Shell-script-*-dnl AC_PROG_INTLTOOL([MINIMUM-VERSION])# serial 1 AC_PROG_INTLTOOLAC_DEFUN([AC_PROG_INTLTOOL],[if test -n "$1"; then    AC_MSG_CHECKING(for intltool >= $1)    INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ printf "%d", $[1] * 100 + $[2]; }'`    INTLTOOL_APPLIED_VERSION=`awk -F\" '/\\$VERSION / { printf $[2]; }'  < ${ac_aux_dir}/intltool-update.in`    changequote({{,}})    INTLTOOL_APPLIED_VERSION_AS_INT=`awk -F\" '/\\$VERSION / { split(${{2}}, VERSION, "."); printf "%d\n", VERSION[1] * 100 + VERSION[2];}' < ${ac_aux_dir}/intltool-update.in`    changequote([,])    if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT"; then	AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])    else	AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found. Your intltool is too old.  You need intltool $1 or later.])	exit 1    fifi  INTLTOOL_DESKTOP_RULE='%.desktop:   %.desktop.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) $(top_srcdir)/po $< [$]@ -d -u -c $(top_builddir)/po/.intltool-merge-cache'INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) $(top_srcdir)/po $< [$]@ -d -u -c $(top_builddir)/po/.intltool-merge-cache'     INTLTOOL_KEYS_RULE='%.keys:      %.keys.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) $(top_srcdir)/po $< [$]@ -k -u -c $(top_builddir)/po/.intltool-merge-cache'     INTLTOOL_PROP_RULE='%.prop:      %.prop.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) $(top_srcdir)/po $< [$]@ -d -u -c $(top_builddir)/po/.intltool-merge-cache'      INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) $(top_srcdir)/po $< [$]@ -o -p'     INTLTOOL_PONG_RULE='%.pong:      %.pong.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) $(top_srcdir)/po $< [$]@ -x -u -c $(top_builddir)/po/.intltool-merge-cache'   INTLTOOL_SERVER_RULE='%.server:    %.server.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) $(top_srcdir)/po $< [$]@ -o -u -c $(top_builddir)/po/.intltool-merge-cache'    INTLTOOL_SHEET_RULE='%.sheet:     %.sheet.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) $(top_srcdir)/po $< [$]@ -x -u -c $(top_builddir)/po/.intltool-merge-cache'INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) $(top_srcdir)/po $< [$]@ -d -u -c $(top_builddir)/po/.intltool-merge-cache'       INTLTOOL_UI_RULE='%.ui:        %.ui.in        $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) $(top_srcdir)/po $< [$]@ -x -u -c $(top_builddir)/po/.intltool-merge-cache'      INTLTOOL_XML_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) $(top_srcdir)/po $< [$]@ -x -u -c $(top_builddir)/po/.intltool-merge-cache'      INTLTOOL_XAM_RULE='%.xam:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) $(top_srcdir)/po $< [$]@ -x -u -c $(top_builddir)/po/.intltool-merge-cache'      INTLTOOL_KBD_RULE='%.kbd:       %.kbd.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) $(top_srcdir)/po $< [$]@ -x -u -m -c $(top_builddir)/po/.intltool-merge-cache'    INTLTOOL_CAVES_RULE='%.caves:     %.caves.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) $(top_srcdir)/po $< [$]@ -d -u -c $(top_builddir)/po/.intltool-merge-cache'  INTLTOOL_SCHEMAS_RULE='%.schemas:   %.schemas.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) $(top_srcdir)/po $< [$]@ -s -u -c $(top_builddir)/po/.intltool-merge-cache'    INTLTOOL_THEME_RULE='%.theme:     %.theme.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) $(top_srcdir)/po $< [$]@ -d -u -c $(top_builddir)/po/.intltool-merge-cache'AC_SUBST(INTLTOOL_DESKTOP_RULE)AC_SUBST(INTLTOOL_DIRECTORY_RULE)AC_SUBST(INTLTOOL_KEYS_RULE)AC_SUBST(INTLTOOL_PROP_RULE)AC_SUBST(INTLTOOL_OAF_RULE)AC_SUBST(INTLTOOL_PONG_RULE)AC_SUBST(INTLTOOL_SERVER_RULE)AC_SUBST(INTLTOOL_SHEET_RULE)AC_SUBST(INTLTOOL_SOUNDLIST_RULE)AC_SUBST(INTLTOOL_UI_RULE)AC_SUBST(INTLTOOL_XAM_RULE)AC_SUBST(INTLTOOL_KBD_RULE)AC_SUBST(INTLTOOL_XML_RULE)AC_SUBST(INTLTOOL_CAVES_RULE)AC_SUBST(INTLTOOL_SCHEMAS_RULE)AC_SUBST(INTLTOOL_THEME_RULE)# Use the tools built into the package, not the ones that are installed.INTLTOOL_EXTRACT='$(top_builddir)/intltool-extract'INTLTOOL_MERGE='$(top_builddir)/intltool-merge'INTLTOOL_UPDATE='$(top_builddir)/intltool-update'AC_SUBST(INTLTOOL_EXTRACT)AC_SUBST(INTLTOOL_MERGE)AC_SUBST(INTLTOOL_UPDATE)AC_PATH_PROG(INTLTOOL_PERL, perl)if test -z "$INTLTOOL_PERL"; then   AC_MSG_ERROR([perl not found; required for intltool])fiif test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then   AC_MSG_ERROR([perl 5.x required for intltool])fiif `perl -e "require XML::Parser" 2>/dev/null`; then:else   AC_MSG_ERROR([XML::Parser perl module is required for intltool])fi# Remove file type tags (using []) from po/POTFILES.ifdef([AC_DIVERSION_ICMDS],[  AC_DIVERT_PUSH(AC_DIVERSION_ICMDS)      changequote(,)      mv -f po/POTFILES po/POTFILES.tmp      sed -e '/\[encoding.*\]/d' -e 's/\[.*\] *//' < po/POTFILES.tmp > po/POTFILES      rm -f po/POTFILES.tmp      changequote([,])  AC_DIVERT_POP()],[  ifdef([AC_CONFIG_COMMANDS_PRE],[    AC_CONFIG_COMMANDS_PRE([        changequote(,)        mv -f po/POTFILES po/POTFILES.tmp        sed -e '/\[encoding.*\]/d' -e 's/\[.*\] *//' < po/POTFILES.tmp > po/POTFILES        rm -f po/POTFILES.tmp        changequote([,])    ])  ])])# Manually sed perl in so people don't have to put the intltool scripts in AC_OUTPUT.AC_OUTPUT_COMMANDS([sed -e "s:@INTLTOOL_PERL@:${INTLTOOL_PERL}:;" < ${ac_aux_dir}/intltool-extract.in > intltool-extract.outif cmp -s intltool-extract intltool-extract.out 2>/dev/null; then  rm -f intltool-extract.outelse  mv -f intltool-extract.out intltool-extractfichmod ugo+x intltool-extractchmod u+w intltool-extractsed -e "s:@INTLTOOL_PERL@:${INTLTOOL_PERL}:;" \    < ${ac_aux_dir}/intltool-merge.in > intltool-merge.outif cmp -s intltool-merge intltool-merge.out 2>/dev/null; then  rm -f intltool-merge.outelse  mv -f intltool-merge.out intltool-mergefichmod ugo+x intltool-mergechmod u+w intltool-mergesed -e "s:@INTLTOOL_PERL@:${INTLTOOL_PERL}:;" < ${ac_aux_dir}/intltool-update.in > intltool-update.outif cmp -s intltool-update intltool-update.out 2>/dev/null; then  rm -f intltool-update.outelse  mv -f intltool-update.out intltool-updatefichmod ugo+x intltool-updatechmod u+w intltool-update], INTLTOOL_PERL=${INTLTOOL_PERL} ac_aux_dir=${ac_aux_dir})])dnl PKG_CHECK_MODULES(GSTUFF, gtk+-2.0 >= 1.3 glib = 1.3.4, action-if, action-not)dnl defines GSTUFF_LIBS, GSTUFF_CFLAGS, see pkg-config man pagednl also defines GSTUFF_PKG_ERRORS on errorAC_DEFUN(PKG_CHECK_MODULES, [  succeeded=no  if test -z "$PKG_CONFIG"; then    AC_PATH_PROG(PKG_CONFIG, pkg-config, no)  fi  if test "$PKG_CONFIG" = "no" ; then     echo "*** The pkg-config script could not be found. Make sure it is"     echo "*** in your path, or set the PKG_CONFIG environment variable"     echo "*** to the full path to pkg-config."     echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."  else     PKG_CONFIG_MIN_VERSION=0.9.0     if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then        AC_MSG_CHECKING(for $2)        if $PKG_CONFIG --exists "$2" ; then            AC_MSG_RESULT(yes)            succeeded=yes            AC_MSG_CHECKING($1_CFLAGS)            $1_CFLAGS=`$PKG_CONFIG --cflags "$2"`            AC_MSG_RESULT($$1_CFLAGS)            AC_MSG_CHECKING($1_LIBS)            $1_LIBS=`$PKG_CONFIG --libs "$2"`            AC_MSG_RESULT($$1_LIBS)        else            $1_CFLAGS=""            $1_LIBS=""            ## If we have a custom action on failure, don't print errors, but             ## do set a variable so people can do so.            $1_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`            ifelse([$4], ,echo $$1_PKG_ERRORS,)        fi        AC_SUBST($1_CFLAGS)        AC_SUBST($1_LIBS)     else        echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."        echo "*** See http://www.freedesktop.org/software/pkgconfig"     fi  fi  if test $succeeded = yes; then     ifelse([$3], , :, [$3])  else     ifelse([$4], , AC_MSG_ERROR([Library requirements ($2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.]), [$4])  fi])dnl AM_GCONF_SOURCE_2dnl Defines GCONF_SCHEMA_CONFIG_SOURCE which is where you should install schemasdnl  (i.e. pass to gconftool-2dnl Defines GCONF_SCHEMA_FILE_DIR which is a filesystem directory wherednl  you should install foo.schemas filesdnlAC_DEFUN([AM_GCONF_SOURCE_2],[  if test "x$GCONF_SCHEMA_INSTALL_SOURCE" = "x"; then    GCONF_SCHEMA_CONFIG_SOURCE=`gconftool-2 --get-default-source`  else    GCONF_SCHEMA_CONFIG_SOURCE=$GCONF_SCHEMA_INSTALL_SOURCE  fi  AC_ARG_WITH(gconf-source,   [  --with-gconf-source=sourceaddress      Config database for installing schema files.],GCONF_SCHEMA_CONFIG_SOURCE="$withval",)  AC_SUBST(GCONF_SCHEMA_CONFIG_SOURCE)  AC_MSG_RESULT([Using config source $GCONF_SCHEMA_CONFIG_SOURCE for schema installation])  if test "x$GCONF_SCHEMA_FILE_DIR" = "x"; then    GCONF_SCHEMA_FILE_DIR='$(sysconfdir)/gconf/schemas/'  else    GCONF_SCHEMA_FILE_DIR=$GCONF_SCHEMA_FILE_DIR  fi  AC_ARG_WITH(gconf-schema-file-dir,   [  --with-gconf-schema-file-dir=dir        Directory for installing schema files.],GCONF_SCHEMA_FILE_DIR="$withval",)  AC_SUBST(GCONF_SCHEMA_FILE_DIR)  AC_MSG_RESULT([Using $GCONF_SCHEMA_FILE_DIR as install directory for schema files])  AC_ARG_ENABLE(schemas-install,     [  --disable-schemas-install	Disable the schemas installation],     [case "${enableval}" in       yes) schemas_install=true ;;       no)  schemas_install=false ;;       *) AC_MSG_ERROR(bad value ${enableval} for --disable-schemas-install) ;;     esac],[schemas_install=true])     AM_CONDITIONAL(GCONF_SCHEMAS_INSTALL, test x$schemas_install = xtrue)])# Define a conditional.AC_DEFUN([AM_CONDITIONAL],[AC_SUBST($1_TRUE)AC_SUBST($1_FALSE)if $2; then  $1_TRUE=  $1_FALSE='#'else  $1_TRUE='#'  $1_FALSE=fi])

⌨️ 快捷键说明

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