📄 aclocal.m4
字号:
dnl aclocal.m4 generated automatically by aclocal 1.4dnl Copyright (C) 1994, 1995-8, 1999 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.# 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([,]))])# 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([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, $missing_dir)AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir)AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)AC_REQUIRE([AC_PROG_MAKE_SET])])## 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)])dnl ########################### -*- Mode: M4 -*- #######################dnl Copyright (C) 2000 Frank Hoeppner <frank.hoeppner@ieee.org>dnldnl This file is free software; you can redistribute it and/or modify itdnl under the terms of the GNU General Public License as published bydnl the Free Software Foundation; either version 2 of the License, ordnl (at your option) any later version.dnldnl This file is distributed in the hope that it will be useful, butdnl WITHOUT ANY WARRANTY; without even the implied warranty ofdnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNUdnl General Public License for more details.dnldnl You should have received a copy of the GNU General Public Licensednl along with this file; if not, write to:dnldnl Free Software Foundation, Inc.dnl Suite 330dnl 59 Temple Placednl Boston, MA 02111-1307, USA.dnl ####################################################################dnl @synopsis FH_HAVE_STLdnl dnl We look for an STL (standard template library). An include pathdnl to the STL can be given as a parameter.dnldnl We need the bool datatype. There are already some macros that detectdnl boolean types, but we have to be consistent with the STL found. Wednl check for two files: stl_config.h and bool.h. Since we assume thatdnl an STL is present, one of these files must be present, too. Includingdnl one of these files automatically defines bool. dnldnl @version 0.01 $Id$dnl @author Frank Hoeppner <frank.hoeppner@ieee.org>AC_DEFUN(FH_HAVE_STL,[ AC_REQUIRE([AC_PROG_CXX]) AC_REQUIRE([AC_PROG_CXXCPP]) AC_LANG_SAVE AC_LANG_CPLUSPLUS AC_MSG_CHECKING([for standard template library]) STL_PATH="" AC_HELP_STRING([--enable-stl=PATH], [Search for STL at PATH], enable_stl_help_string) AC_ARG_ENABLE(stl, $enable_stl_help_string, [if test -r "${ac_optarg}/mapx.h"; then AC_DEFINE(STL_FOUND) STL_PATH="-I${ac_optarg}" else AC_MSG_ERROR(This package requires an STL - not found at ${ac_optarg}.) fi if test -r "${ac_optarg}/stl_config.h"; then AC_DEFINE(BOOL_DEFINED_IN_STL_CONFIG_H) else if test -r "${ac_optarg}/bool.h"; then AC_DEFINE(BOOL_DEFINED_IN_BOOL_H) else AC_MSG_ERROR(Have not found stl_config.h neither bool.h) fi fi ], [AC_TRY_CPP([#include <map.h>], AC_DEFINE(STL_FOUND), AC_MSG_ERROR(This package requires an STL.) ) AC_TRY_CPP([#include <stl_config.h>], AC_DEFINE(BOOL_DEFINED_IN_STL_CONFIG_H), AC_TRY_CPP([#include <bool.h>], AC_DEFINE(BOOL_DEFINED_IN_BOOL_H), AC_MSG_ERROR(Have not found stl_config.h neither bool.h) ) ) ] ) dnl *** if we passed this point message result is true AC_MSG_RESULT([yes]) AC_SUBST(STL_PATH) AC_MSG_CHECKING([for template<> specialization]) AC_TRY_COMPILE([template <class T> class C { public: T min(); }; template<> int C<int>::min() { return 0; }],, AC_DEFINE(TEMPLATE_SPECIALIZATION,[template<>]) AC_MSG_RESULT(yes), AC_DEFINE(TEMPLATE_SPECIALIZATION,[]) AC_MSG_RESULT(no) ) AC_LANG_RESTORE ])])dnl *** Enable debug (but no liblog!)AC_DEFUN(FH_DEBUG,[ DEBUG_FLAGS="" AC_HELP_STRING([--enable-debug], [enable debug information during compilation], enable_debug_help_string) AC_ARG_ENABLE(debug, $enable_debug_help_string, [ DEBUG_FLAGS="-g -Wall -pedantic" ], [ DEBUG_FLAGS="-O2" ] ) AC_SUBST(DEBUG_FLAGS)])dnl ** FH_LOGTRACEAC_DEFUN(FH_LT_DEBUG,[ DEBUG_FLAGS="" AC_HELP_STRING([--enable-debug], [enable debug information during compilation, liblogtrace required], enable_debug_help_string) AC_ARG_ENABLE(debug, $enable_debug_help_string, [ AC_DEFINE(LOGTRACE_DEBUG) LIBLOG="-llogtrace" DEBUG_FLAGS="-g -Wall" ], [ LIBLOG="" DEBUG_FLAGS="-O2" ] ) AC_SUBST(LIBLOG) AC_SUBST(DEBUG_FLAGS)])dnl ********************************************************************dnl *** With --enable-docs a 'make' creates postscript documentation whichdnl *** will be included in the package. Since source and documentation comednl *** from the same files (noweb), it does no make sense to update the dnl *** documentation each time the source changes. Therefore, this switchdnl *** can be used by the maintainer to turn off docs during development.dnl ***dnl *** We provide no help string because this is a maintainer optionAC_DEFUN(FH_DOCS,[ AC_ARG_ENABLE(docs,, [ WEBMAKE="code ps" ], [ WEBMAKE="code" ] ) AC_SUBST(WEBMAKE)])dnl *******************************************************************dnl *** Use FH_REQ_UTIL if libutil is required.AC_DEFUN(FH_REQ_UTIL,[ AC_MSG_CHECKING([for util library]) AC_LANG_SAVE AC_LANG_CPLUSPLUS FH_SAVE_LIBS="$LIBS" LIBS="-lutility" AC_TRY_LINK([#include "strconv.hpp"],[char text[] = "t e s t"; delete_superfluous_blanks(text);], AC_MSG_RESULT([yes]), AC_MSG_ERROR([library utility has not been found]) )
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -