?? aclocal.m4
字號:
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"glib_save_datarootdir="$datarootdir"test "x$prefix" = xNONE && prefix=$ac_default_prefixtest "x$exec_prefix" = xNONE && exec_prefix=$prefixdatarootdir=`eval echo "${datarootdir}"`if 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"datarootdir="$glib_save_datarootdir"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($@)])])dnl# GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL])# # Create a temporary file with TEST-FILE as its contents and pass the# file name to PROGRAM. Perform ACTION-IF-PASS if PROGRAM exits with# 0 and perform ACTION-IF-FAIL for any other exit status.AC_DEFUN([GLIB_RUN_PROG],[cat >conftest.foo <<_ACEOF$2_ACEOFif AC_RUN_LOG([$1 conftest.foo]); then m4_ifval([$3], [$3], [:])m4_ifvaln([$4], [else $4])dnlecho "$as_me: failed input was:" >&AS_MESSAGE_LOG_FDsed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FDfi])dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])# serial 40 IT_PROG_INTLTOOLAC_DEFUN([IT_PROG_INTLTOOL], [AC_PREREQ([2.50])dnlAC_REQUIRE([AM_NLS])dnlcase "$am__api_version" in 1.[01234]) AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool]) ;; *) ;;esacif test -n "$1"; then AC_MSG_CHECKING([for intltool >= $1]) INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'` INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3` [INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'` ] AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found]) test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" || AC_MSG_ERROR([Your intltool is too old. You need intltool $1 or later.])fiAC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update])AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge])AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract])if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.])fi INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< [$]@' INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< [$]@' INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'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_XML_NOMERGE_RULE)AC_SUBST(INTLTOOL_CAVES_RULE)AC_SUBST(INTLTOOL_SCHEMAS_RULE)AC_SUBST(INTLTOOL_THEME_RULE)AC_SUBST(INTLTOOL_SERVICE_RULE)AC_SUBST(INTLTOOL_POLICY_RULE)# Check the gettext tools to make sure they are GNUAC_PATH_PROG(XGETTEXT, xgettext)AC_PATH_PROG(MSGMERGE, msgmerge)AC_PATH_PROG(MSGFMT, msgfmt)AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then AC_MSG_ERROR([GNU gettext tools not found; required for intltool])fixgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then AC_MSG_ERROR([GNU gettext tools not found; required for intltool])fiAC_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 test "x$2" != "xno-xml"; then AC_MSG_CHECKING([for XML::Parser]) if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then AC_MSG_RESULT([ok]) else AC_MSG_ERROR([XML::Parser perl module is required for intltool]) fifi# Substitute ALL_LINGUAS so we can use it in po/MakefileAC_SUBST(ALL_LINGUAS)# Set DATADIRNAME correctly if it is not set yet# (copied from glib-gettext.m4)if test -z "$DATADIRNAME"; then AC_LINK_IFELSE( [AC_LANG_PROGRAM([[]], [[extern int _nl_msg_cat_cntr; return _nl_msg_cat_cntr]])], [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 dnl in this case. AC_CHECK_FUNC(bind_textdomain_codeset, [DATADIRNAME=share], [DATADIRNAME=lib]) ;; *) [DATADIRNAME=lib] ;; esac])fiAC_SUBST(DATADIRNAME)IT_PO_SUBDIR([po])])# IT_PO_SUBDIR(DIRNAME)# ---------------------# All po subdirs have to be declared with this macro; the subdir "po" is# declared by IT_PROG_INTLTOOL.#AC_DEFUN([IT_PO_SUBDIR],[AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS.dnldnl The following CONFIG_COMMANDS should be exetuted at the very enddnl of config.status.AC_CONFIG_COMMANDS_PRE([ AC_CONFIG_COMMANDS([$1/stamp-it], [ if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" ]; then AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.]) fi rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp" >"$1/stamp-it.tmp" [sed '/^#/d s/^[[].*] *// /^[ ]*$/d '"s|^| $ac_top_srcdir/|" \ "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES" ] [sed '/^POTFILES =/,/[^\\]$/ { /^POTFILES =/!d r $1/POTFILES } ' "$1/Makefile.in" >"$1/Makefile"] rm -f "$1/Makefile.tmp" mv "$1/stamp-it.tmp" "$1/stamp-it" ])])dnl])# deprecated macrosAU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])# A hint is needed for aclocal from Automake <= 1.9.4:# AC_DEFUN([AC_PROG_INTLTOOL], ...)# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-## Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,# 2006, 2007, 2008 Free Software Foundation, Inc.# Written by Gordon Matzigkeit, 1996## This file is free software; the Free Software Foundation gives# unlimited permission to copy and/or distribute it, with or without# modifications, as long as this notice is preserved.m4_define([_LT_COPYING], [dnl# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,# 2006, 2007, 2008 Free Software Foundation, Inc.# Written by Gordon Matzigkeit, 1996## This file is part of GNU Libtool.## GNU Libtool 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 of# the License, or (at your option) any later version.## As a special exception to the GNU General Public License,# if you distribute this file as part of a program or library that# is built using GNU Libtool, you may include this file under the# same distribution terms that you use for the rest of that program.## GNU Libtool 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 GNU Libtool; see the file COPYING. If not, a copy# can be downloaded from http://www.gnu.org/licenses/gpl.html, or# obtained by writing to the Free Software Foundation, Inc.,# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.])# serial 56 LT_INIT# LT_PREREQ(VERSION)# ------------------# Complain and exit if this libtool version is less that VERSION.m4_defun([LT_PREREQ],[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, [m4_default([$3], [m4_fatal([Libtool version $1 or higher is required], 63)])], [$2])])# _LT_CHECK_BUILDDIR# ------------------# Complain if the absolute build directory name contains unusual charactersm4_defun([_LT_CHECK_BUILDDIR],[case `pwd` in *\ * | *\ *) AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;esac])# LT_INIT([OPTIONS])# ------------------AC_DEFUN([LT_INIT],[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULTAC_BEFORE([$0], [LT_LANG])dnlAC_BEFORE([$0], [LT_OUTPUT])dnlAC_BEFORE([$0], [LTDL_INIT])dnlm4_require([_LT_CHECK_BUILDDIR])dnldnl Autoconf doesn't catch unexpanded LT_ macros by default:m4_pattern_forbid([^_?LT_[A-Z_]+$])dnlm4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnldnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4dnl unless we require an AC_DEFUNed macro:AC_REQUIRE([LTOPTIONS_VERSION])dnlAC_REQUIRE([LTSUGAR_VERSION])dnlAC_REQUIRE([LTVERSION_VERSION])dnlAC_REQUIRE([LTOBSOLETE_VERSION])dnlm4_require([_LT_PROG_LTMAIN])dnldnl Parse OPTIONS_LT_SET_OPTIONS([$0], [$1])# This can be used to rebuild libtool when neededLIBTOOL_DEPS="$ltmain"# Always use our own libtool.LIBTOOL='$(SHELL) $(top_builddir)/libtool'AC_SUBST(LIBTOOL)dnl_LT_SETUP# Only expand once:m4_define([LT_INIT])])# LT_INIT# Old names:AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])dnl aclocal-1.4 backwards compatibility:dnl AC_DEFUN([AC_PROG_LIBTOOL], [])dnl AC_DEFUN([AM_PROG_LIBTOOL], [])# _LT_CC_BASENAME(CC)# -------------------# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.m4_defun([_LT_CC_BASENAME],[for cc_temp in $1""; do case $cc_temp in compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; \-*) ;; *) break;; esacdonecc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`])# _LT_FILEUTILS_DEFAULTS# ----------------------# It is okay to use these file commands and assume they have been set# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.m4_defun([_LT_FILEUTILS_DEFAULTS],[: ${CP="cp -f"}: ${MV="mv -f"}: ${RM="rm -f"}])# _LT_FILEUTILS_DEFAULTS# _LT_SETUP# ---------m4_defun([_LT_SETUP],[AC_REQUIRE([AC_CANONICAL_HOST])dnlAC_REQUIRE([AC_CANONICAL_BUILD])dnl_LT_DECL([], [host_alias], [0], [The host system])dnl_LT_DECL([], [host], [0])dnl_LT_DECL([], [host_os], [0])dnldnl_LT_DECL([], [build_alias], [0], [The build system])dnl_LT_DECL([], [build], [0])dnl
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -