📄 aclocal.m4
字号:
# generated automatically by aclocal 1.9.6 -*- Autoconf -*-# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,# 2005 Free Software Foundation, Inc.# 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.# This program is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY, to the extent permitted by law; without# even the implied warranty of MERCHANTABILITY or FITNESS FOR A# PARTICULAR PURPOSE.# isc-posix.m4 serial 2 (gettext-0.11.2)dnl Copyright (C) 1995-2002 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.# This file is not needed with autoconf-2.53 and newer. Remove it in 2005.# This test replaces the one in autoconf.# Currently this macro should have the same name as the autoconf macro# because gettext's gettext.m4 (distributed in the automake package)# still uses it. Otherwise, the use in gettext.m4 makes autoheader# give these diagnostics:# configure.in:556: AC_TRY_COMPILE was called before AC_ISC_POSIX# configure.in:556: AC_TRY_RUN was called before AC_ISC_POSIXundefine([AC_ISC_POSIX])AC_DEFUN([AC_ISC_POSIX], [ dnl This test replaces the obsolescent AC_ISC_POSIX kludge. AC_CHECK_LIB(cposix, strerror, [LIBS="$LIBS -lcposix"]) ])# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-# # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.## 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 of the License, 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.## As a special exception to the GNU General Public License, if you# distribute this file as part of a program that contains a# configuration script generated by Autoconf, you may include it under# the same distribution terms that you use for the rest of that program.# PKG_PROG_PKG_CONFIG([MIN-VERSION])# ----------------------------------AC_DEFUN([PKG_PROG_PKG_CONFIG],[m4_pattern_forbid([^_?PKG_[A-Z_]+$])m4_pattern_allow([^PKG_CONFIG(_PATH)?$])AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnlif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then AC_PATH_TOOL([PKG_CONFIG], [pkg-config])fiif test -n "$PKG_CONFIG"; then _pkg_min_version=m4_default([$1], [0.9.0]) AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) PKG_CONFIG="" fi fi[]dnl])# PKG_PROG_PKG_CONFIG# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])## Check to see whether a particular set of modules exists. Similar# to PKG_CHECK_MODULES(), but does not set variables or print errors.### Similar to PKG_CHECK_MODULES, make sure that the first instance of# this or PKG_CHECK_MODULES is called, or make sure to call# PKG_CHECK_EXISTS manually# --------------------------------------------------------------AC_DEFUN([PKG_CHECK_EXISTS],[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnlif test -n "$PKG_CONFIG" && \ AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then m4_ifval([$2], [$2], [:])m4_ifvaln([$3], [else $3])dnlfi])# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])# ---------------------------------------------m4_define([_PKG_CONFIG],[if test -n "$PKG_CONFIG"; then if test -n "$$1"; then pkg_cv_[]$1="$$1" else PKG_CHECK_EXISTS([$3], [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`], [pkg_failed=yes]) fielse pkg_failed=untriedfi[]dnl])# _PKG_CONFIG# _PKG_SHORT_ERRORS_SUPPORTED# -----------------------------AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],[AC_REQUIRE([PKG_PROG_PKG_CONFIG])if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yeselse _pkg_short_errors_supported=nofi[]dnl])# _PKG_SHORT_ERRORS_SUPPORTED# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],# [ACTION-IF-NOT-FOUND])### Note that if there is a possibility the first call to# PKG_CHECK_MODULES might not happen, you should be sure to include an# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac### --------------------------------------------------------------AC_DEFUN([PKG_CHECK_MODULES],[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnlAC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnlAC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnlpkg_failed=noAC_MSG_CHECKING([for $1])_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])_PKG_CONFIG([$1][_LIBS], [libs], [$2])m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGSand $1[]_LIBS to avoid the need to call pkg-config.See the pkg-config man page for more details.])if test $pkg_failed = yes; then _PKG_SHORT_ERRORS_SUPPORTED if test $_pkg_short_errors_supported = yes; then $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"` else $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"` fi # Put the nasty error message in config.log where it belongs echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD ifelse([$4], , [AC_MSG_ERROR(dnl[Package requirements ($2) were not met:$$1_PKG_ERRORSConsider adjusting the PKG_CONFIG_PATH environment variable if youinstalled software in a non-standard prefix._PKG_TEXT])], [$4])elif test $pkg_failed = untried; then ifelse([$4], , [AC_MSG_FAILURE(dnl[The pkg-config script could not be found or is too old. Make sure itis in your PATH or set the PKG_CONFIG environment variable to the fullpath to pkg-config._PKG_TEXTTo get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.])], [$4])else $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS $1[]_LIBS=$pkg_cv_[]$1[]_LIBS AC_MSG_RESULT([yes]) ifelse([$3], , :, [$3])fi[]dnl])# PKG_CHECK_MODULES# Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.## 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.# 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.9"])# 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.9.6])])# AM_AUX_DIR_EXPAND -*- Autoconf -*-# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.## 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.# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to# `$srcdir', `$srcdir/..', or `$srcdir/../..'.## Of course, Automake must honor this variable whenever it calls a# tool from the auxiliary directory. The problem is that $srcdir (and# therefore $ac_aux_dir as well) can be either absolute or relative,# depending on how configure is run. This is pretty annoying, since# it makes $ac_aux_dir quite unusable in subdirectories: in the top# source directory, any form will work fine, but in subdirectories a# relative path needs to be adjusted first.## $ac_aux_dir/missing# fails when called from a subdirectory if $ac_aux_dir is relative# $top_srcdir/$ac_aux_dir/missing# fails if $ac_aux_dir is absolute,# fails when called from a subdirectory in a VPATH build with# a relative $ac_aux_dir## The reason of the latter failure is that $top_srcdir and $ac_aux_dir# are both prefixed by $srcdir. In an in-source build this is usually# harmless because $srcdir is `.', but things will broke when you# start a VPATH build or use an absolute $srcdir.## So we could use something similar to $top_srcdir/$ac_aux_dir/missing,# iff we strip the leading $srcdir from $ac_aux_dir. That would be:# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`# and then we would define $MISSING as# MISSING="\${SHELL} $am_aux_dir/missing"# This will work as long as MISSING is not called from configure, because# unfortunately $(top_srcdir) has no meaning in configure.# However there are other variables, like CC, which are often used in# configure, and could therefore not use this "fixed" $ac_aux_dir.## Another solution, used here, is to always expand $ac_aux_dir to an# absolute PATH. The drawback is that using absolute paths prevent a# configured tree to be moved without reconfiguration.AC_DEFUN([AM_AUX_DIR_EXPAND],[dnl Rely on autoconf to set up CDPATH properly.AC_PREREQ([2.50])dnl# expand $ac_aux_dir to an absolute patham_aux_dir=`cd $ac_aux_dir && pwd`])# Copyright (C) 1996, 1997, 1999, 2000, 2001, 2002, 2003, 2005# Free Software Foundation, Inc.## 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.# serial 4# This was merged into AC_PROG_CC in Autoconf.AU_DEFUN([AM_PROG_CC_STDC],[AC_PROG_CCAC_DIAGNOSE([obsolete], [$0: your code should no longer depend upon `am_cv_prog_cc_stdc', but upon `ac_cv_prog_cc_stdc'. Remove this warning and the assignment when you adjust the code. You can also remove the above call to AC_PROG_CC if you already called it elsewhere.])am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc])AU_DEFUN([fp_PROG_CC_STDC])# AM_CONDITIONAL -*- Autoconf -*-# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005# Free Software Foundation, Inc.## 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.# serial 7# AM_CONDITIONAL(NAME, SHELL-CONDITION)# -------------------------------------# Define a conditional.AC_DEFUN([AM_CONDITIONAL],[AC_PREREQ(2.52)dnl ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnlAC_SUBST([$1_TRUE])AC_SUBST([$1_FALSE])if $2; then $1_TRUE= $1_FALSE='#'else $1_TRUE='#' $1_FALSE=fiAC_CONFIG_COMMANDS_PRE([if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then AC_MSG_ERROR([[conditional "$1" was never defined.Usually this means the macro was only invoked conditionally.]])fi])])# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005# Free Software Foundation, Inc.## 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.# serial 8# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be# written in clear, in which case automake, when reading aclocal.m4,# will think it sees a *use*, and therefore will trigger all it's# C support machinery. Also note that it means that autoscan, seeing# CC etc. in the Makefile, will ask for an AC_PROG_CC use...# _AM_DEPENDENCIES(NAME)# ----------------------# See how the compiler implements dependency checking.# NAME is "CC", "CXX", "GCJ", or "OBJC".# We try a few techniques and use that to set a single cache variable.## We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular# dependency, and given that the user is not expected to run this macro,# just rely on AC_PROG_CC.AC_DEFUN([_AM_DEPENDENCIES],[AC_REQUIRE([AM_SET_DEPDIR])dnlAC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnlAC_REQUIRE([AM_MAKE_INCLUDE])dnlAC_REQUIRE([AM_DEP_TRACK])dnlifelse([$1], CC, [depcc="$CC" am_compiler_list=], [$1], CXX, [depcc="$CXX" am_compiler_list=], [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], [depcc="$$1" am_compiler_list=])AC_CACHE_CHECK([dependency style of $depcc], [am_cv_$1_dependencies_compiler_type],[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -