📄 aclocal.m4
字号:
[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 36 IT_PROG_INTLTOOLAC_DEFUN([IT_PROG_INTLTOOL],[AC_PREREQ([2.50])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=`awk -F\" '/\\$VERSION / { print $ 2; }' ${ac_aux_dir}/intltool-update.in` [INTLTOOL_APPLIED_VERSION_AS_INT=`awk -F\" '/\\$VERSION / { split($ 2, VERSION, "."); print VERSION[1] * 1000 + VERSION[2] * 100 + VERSION[3];}' ${ac_aux_dir}/intltool-update.in` ] 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.])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)# Use the tools built into the package, not the ones that are installed.AC_SUBST(INTLTOOL_EXTRACT, '$(top_builddir)/intltool-extract')AC_SUBST(INTLTOOL_MERGE, '$(top_builddir)/intltool-merge')AC_SUBST(INTLTOOL_UPDATE, '$(top_builddir)/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 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])dnl The following is very similar todnldnl AC_CONFIG_FILES([intltool-extract intltool-merge intltool-update])dnldnl with the following slight differences:dnl - the *.in files are in ac_aux_dir,dnl - if the file haven't changed upon reconfigure, it's not touched,dnl - the evaluation of the third parameter enables a hack which computesdnl the actual value of $libdir,dnl - the user sees "executing intltool commands", instead ofdnl "creating intltool-extract" and such.dnldnl Nothing crucial here, and we could use AC_CONFIG_FILES, if there werednl a reason for it.AC_CONFIG_COMMANDS([intltool], [for file in intltool-extract intltool-merge intltool-update; do sed -e "s|@INTLTOOL_EXTRACT@|`pwd`/intltool-extract|g" \ -e "s|@INTLTOOL_LIBDIR@|${INTLTOOL_LIBDIR}|g" \ -e "s|@INTLTOOL_PERL@|${INTLTOOL_PERL}|g" \ < ${ac_aux_dir}/${file}.in > ${file}.out if cmp -s ${file} ${file}.out 2>/dev/null; then rm -f ${file}.out else mv -f ${file}.out ${file} fi chmod ugo+x ${file} chmod u+w ${file}done],[INTLTOOL_PERL='${INTLTOOL_PERL}' ac_aux_dir='${ac_aux_dir}'prefix="$prefix" exec_prefix="$exec_prefix" INTLTOOL_LIBDIR="$libdir" INTLTOOL_EXTRACT='${INTLTOOL_EXTRACT}'])])# 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], [ 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" ] if test ! -f "$1/Makefile"; then AC_MSG_ERROR([$1/Makefile is not ready.]) fi mv "$1/Makefile" "$1/Makefile.tmp" [sed '/^POTFILES =/,/[^\\]$/ { /^POTFILES =/!d r $1/POTFILES } ' "$1/Makefile.tmp" >"$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-*-# serial 51 Debian 1.5.24-1 AC_PROG_LIBTOOL# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)# -----------------------------------------------------------# If this macro is not defined by Autoconf, define it here.m4_ifdef([AC_PROVIDE_IFELSE], [], [m4_define([AC_PROVIDE_IFELSE], [m4_ifdef([AC_PROVIDE_$1], [$2], [$3])])])# AC_PROG_LIBTOOL# ---------------AC_DEFUN([AC_PROG_LIBTOOL],[AC_REQUIRE([_AC_PROG_LIBTOOL])dnldnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXXdnl immediately, otherwise, hook it in at the end of AC_PROG_CXX. AC_PROVIDE_IFELSE([AC_PROG_CXX], [AC_LIBTOOL_CXX], [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX ])])dnl And a similar setup for Fortran 77 support AC_PROVIDE_IFELSE([AC_PROG_F77], [AC_LIBTOOL_F77], [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77])])dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, rundnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both. AC_PROVIDE_IFELSE([AC_PROG_GCJ], [AC_LIBTOOL_GCJ], [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], [AC_LIBTOOL_GCJ], [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ], [AC_LIBTOOL_GCJ], [ifdef([AC_PROG_GCJ], [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])]) ifdef([A][M_PROG_GCJ], [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])]) ifdef([LT_AC_PROG_GCJ], [define([LT_AC_PROG_GCJ], defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])])])# AC_PROG_LIBTOOL# _AC_PROG_LIBTOOL# ----------------AC_DEFUN([_AC_PROG_LIBTOOL],[AC_REQUIRE([AC_LIBTOOL_SETUP])dnlAC_BEFORE([$0],[AC_LIBTOOL_CXX])dnlAC_BEFORE([$0],[AC_LIBTOOL_F77])dnlAC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl# This can be used to rebuild libtool when neededLIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"# Always use our own libtool.LIBTOOL='$(SHELL) $(top_builddir)/libtool'AC_SUBST(LIBTOOL)dnl# Prevent multiple expansiondefine([AC_PROG_LIBTOOL], [])])# _AC_PROG_LIBTOOL# AC_LIBTOOL_SETUP# ----------------AC_DEFUN([AC_LIBTOOL_SETUP],[AC_PREREQ(2.50)dnlAC_REQUIRE([AC_ENABLE_SHARED])dnlAC_REQUIRE([AC_ENABLE_STATIC])dnlAC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnlAC_REQUIRE([AC_CANONICAL_HOST])dnlAC_REQUIRE([AC_CANONICAL_BUILD])dnlAC_REQUIRE([AC_PROG_CC])dnlAC_REQUIRE([AC_PROG_LD])dnlAC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnlAC_REQUIRE([AC_PROG_NM])dnlAC_REQUIRE([AC_PROG_LN_S])dnlAC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!AC_REQUIRE([AC_OBJEXT])dnlAC_REQUIRE([AC_EXEEXT])dnldnlAC_LIBTOOL_SYS_MAX_CMD_LENAC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPEAC_LIBTOOL_OBJDIRAC_REQUIRE([_LT_AC_SYS_COMPILER])dnl_LT_AC_PROG_ECHO_BACKSLASHcase $host_os inaix3*) # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test "X${COLLECT_NAMES+set}" != Xset; then COLLECT_NAMES= export COLLECT_NAMES fi ;;esac# Sed substitution that helps us do robust quoting. It backslashifies# metacharacters that are still active within double-quoted strings.Xsed='sed -e 1s/^X//'[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']# Same as above, but do not quote variable references.[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']# Sed substitution to delay expansion of an escaped shell variable in a# double_quote_subst'ed string.delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'# Sed substitution to avoid accidental globbing in evaled expressionsno_glob_subst='s/\*/\\\*/g'# Constants:rm="rm -f"# Global variables:default_ofile=libtoolcan_build_shared=yes# All known linkers require a `.a' archive for static linking (except MSVC,# which needs '.lib').libext=altmain="$ac_aux_dir/ltmain.sh"ofile="$default_ofile"with_gnu_ld="$lt_cv_prog_gnu_ld"AC_CHECK_TOOL(AR, ar, false)AC_CHECK_TOOL(RANLIB, ranlib, :)AC_CHECK_TOOL(STRIP, strip, :)old_CC="$CC"old_CFLAGS="$CFLAGS"# Set sane defaults for various variablestest -z "$AR" && AR=artest -z "$AR_FLAGS" && AR_FLAGS=crutest -z "$AS" && AS=astest -z "$CC" && CC=cctest -z "$LTCC" && LTCC=$CCtest -z "$LTCFLAGS" && LTCFLAGS=$CFLAGStest -z "$DLLTOOL" && DLLTOOL=dlltooltest -z "$LD" && LD=ldtest -z "$LN_S" && LN_S="ln -s"test -z "$MAGIC_CMD" && MAGIC_CMD=filetest -z "$NM" && NM=nmtest -z "$SED" && SED=sedtest -z "$OBJDUMP" && OBJDUMP=objdumptest -z "$RANLIB" && RANLIB=:
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -