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

📄 aclocal.m4

📁 常用字符串hash算法
💻 M4
📖 第 1 页 / 共 3 页
字号:
# AM_OUTPUT_DEPENDENCY_COMMANDS# -----------------------------# This macro should only be invoked once -- use via AC_REQUIRE.## This code is only required when automatic dependency tracking# is enabled.  FIXME.  This creates each `.P' file that we will# need in order to bootstrap the dependency handling code.AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],[AC_CONFIG_COMMANDS([depfiles],     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])])# Copyright 2001 Free Software Foundation, Inc.             -*- Autoconf -*-# 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, 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.# serial 2# AM_MAKE_INCLUDE()# -----------------# Check to see how make treats includes.AC_DEFUN([AM_MAKE_INCLUDE],[am_make=${MAKE-make}cat > confinc << 'END'doit:	@echo doneEND# If we don't find an include directive, just comment out the code.AC_MSG_CHECKING([for style of include used by $am_make])am__include="#"am__quote=_am_result=none# First try GNU make style include.echo "include confinc" > confmf# We grep out `Entering directory' and `Leaving directory'# messages which can occur if `w' ends up in MAKEFLAGS.# In particular we don't look at `^make:' because GNU make might# be invoked under some other name (usually "gmake"), in which# case it prints its new name instead of `make'.if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then   am__include=include   am__quote=   _am_result=GNUfi# Now try BSD make style include.if test "$am__include" = "#"; then   echo '.include "confinc"' > confmf   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then      am__include=.include      am__quote="\""      _am_result=BSD   fifiAC_SUBST(am__include)AC_SUBST(am__quote)AC_MSG_RESULT($_am_result)rm -f confinc confmf])# AM_CONDITIONAL                                              -*- Autoconf -*-# Copyright 1997, 2000, 2001 Free Software Foundation, Inc.# 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, 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.# serial 5AC_PREREQ(2.52)# AM_CONDITIONAL(NAME, SHELL-CONDITION)# -------------------------------------# Define a conditional.AC_DEFUN([AM_CONDITIONAL],[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])])dnl ---------------------------------------------------------------------------dnl Macros for wxWindows detection. Typically used in configure.in as:dnldnl 	AC_ARG_ENABLE(...)dnl 	AC_ARG_WITH(...)dnl	...dnl	AM_OPTIONS_WXCONFIGdnl	...dnl	...dnl	AM_PATH_WXCONFIG(2.3.4, wxWin=1)dnl     if test "$wxWin" != 1; thendnl        AC_MSG_ERROR([dnl     	   wxWindows must be installed on your systemdnl     	   but wx-config script couldn't be found.dnl     dnl     	   Please check that wx-config is in path, the directorydnl     	   where wxWindows libraries are installed (returned bydnl     	   'wx-config --libs' command) is in LD_LIBRARY_PATH ordnl     	   equivalent variable and wxWindows version is 2.3.4 or above.dnl        ])dnl     fidnl     CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS"dnl     CXXFLAGS="$CXXFLAGS $WX_CXXFLAGS_ONLY"dnl     CFLAGS="$CFLAGS $WX_CFLAGS_ONLY"dnl     dnl     LDFLAGS="$LDFLAGS $WX_LIBS"dnl ---------------------------------------------------------------------------dnl ---------------------------------------------------------------------------dnl AM_OPTIONS_WXCONFIGdnldnl adds support for --wx-prefix, --wx-exec-prefix and --wx-config dnl command line optionsdnl ---------------------------------------------------------------------------AC_DEFUN(AM_OPTIONS_WXCONFIG,[   AC_ARG_WITH(wx-prefix, [  --with-wx-prefix=PREFIX   Prefix where wxWindows is installed (optional)],               wx_config_prefix="$withval", wx_config_prefix="")   AC_ARG_WITH(wx-exec-prefix,[  --with-wx-exec-prefix=PREFIX Exec prefix where wxWindows is installed (optional)],               wx_config_exec_prefix="$withval", wx_config_exec_prefix="")   AC_ARG_WITH(wx-config,[  --with-wx-config=CONFIG   wx-config script to use (optional)],               wx_config_name="$withval", wx_config_name="")])dnl ---------------------------------------------------------------------------dnl AM_PATH_WXCONFIG(VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])dnldnl Test for wxWindows, and define WX_C*FLAGS, WX_LIBS and WX_LIBS_STATICdnl (the latter is for static linking against wxWindows). Set WX_CONFIG_NAMEdnl environment variable to override the default name of the wx-config scriptdnl to use. Set WX_CONFIG_PATH to specify the full path to wx-config - in thisdnl case the macro won't even waste time on tests for its existence.dnl ---------------------------------------------------------------------------dnldnl Get the cflags and libraries from the wx-config scriptdnlAC_DEFUN(AM_PATH_WXCONFIG,[  dnl do we have wx-config name: it can be wx-config or wxd-config or ...  if test x${WX_CONFIG_NAME+set} != xset ; then     WX_CONFIG_NAME=wx-config  fi  if test "x$wx_config_name" != x ; then     WX_CONFIG_NAME="$wx_config_name"  fi  dnl deal with optional prefixes  if test x$wx_config_exec_prefix != x ; then     wx_config_args="$wx_config_args --exec-prefix=$wx_config_exec_prefix"     WX_LOOKUP_PATH="$wx_config_exec_prefix/bin"  fi  if test x$wx_config_prefix != x ; then     wx_config_args="$wx_config_args --prefix=$wx_config_prefix"     WX_LOOKUP_PATH="$WX_LOOKUP_PATH:$wx_config_prefix/bin"  fi  dnl don't search the PATH if WX_CONFIG_NAME is absolute filename  if test -x "$WX_CONFIG_NAME" ; then     AC_MSG_CHECKING(for wx-config)     WX_CONFIG_PATH="$WX_CONFIG_NAME"     AC_MSG_RESULT($WX_CONFIG_PATH)  else     AC_PATH_PROG(WX_CONFIG_PATH, $WX_CONFIG_NAME, no, "$WX_LOOKUP_PATH:$PATH")  fi  if test "$WX_CONFIG_PATH" != "no" ; then    WX_VERSION=""    no_wx=""    min_wx_version=ifelse([$1], ,2.2.1,$1)    AC_MSG_CHECKING(for wxWindows version >= $min_wx_version)    WX_CONFIG_WITH_ARGS="$WX_CONFIG_PATH $wx_config_args"    WX_VERSION=`$WX_CONFIG_WITH_ARGS --version`    wx_config_major_version=`echo $WX_VERSION | \           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`    wx_config_minor_version=`echo $WX_VERSION | \           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`    wx_config_micro_version=`echo $WX_VERSION | \           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`    wx_requested_major_version=`echo $min_wx_version | \           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`    wx_requested_minor_version=`echo $min_wx_version | \           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`    wx_requested_micro_version=`echo $min_wx_version | \           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`    wx_ver_ok=""    if test $wx_config_major_version -gt $wx_requested_major_version; then      wx_ver_ok=yes    else      if test $wx_config_major_version -eq $wx_requested_major_version; then         if test $wx_config_minor_version -gt $wx_requested_minor_version; then            wx_ver_ok=yes         else            if test $wx_config_minor_version -eq $wx_requested_minor_version; then               if test $wx_config_micro_version -ge $wx_requested_micro_version; then                  wx_ver_ok=yes               fi            fi         fi      fi    fi    if test "x$wx_ver_ok" = x ; then      no_wx=yes    else      WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs`      WX_LIBS_STATIC=`$WX_CONFIG_WITH_ARGS --static --libs`      dnl starting with version 2.2.6 wx-config has --cppflags argument      wx_has_cppflags=""      if test $wx_config_major_version -gt 2; then        wx_has_cppflags=yes      else        if test $wx_config_major_version -eq 2; then           if test $wx_config_minor_version -gt 2; then              wx_has_cppflags=yes           else              if test $wx_config_minor_version -eq 2; then                 if test $wx_config_micro_version -ge 6; then                    wx_has_cppflags=yes                 fi              fi           fi        fi      fi      if test "x$wx_has_cppflags" = x ; then         dnl no choice but to define all flags like CFLAGS         WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags`         WX_CPPFLAGS=$WX_CFLAGS         WX_CXXFLAGS=$WX_CFLAGS         WX_CFLAGS_ONLY=$WX_CFLAGS         WX_CXXFLAGS_ONLY=$WX_CFLAGS      else         dnl we have CPPFLAGS included in CFLAGS included in CXXFLAGS         WX_CPPFLAGS=`$WX_CONFIG_WITH_ARGS --cppflags`         WX_CXXFLAGS=`$WX_CONFIG_WITH_ARGS --cxxflags`         WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags`         WX_CFLAGS_ONLY=`echo $WX_CFLAGS | sed "s@^$WX_CPPFLAGS *@@"`         WX_CXXFLAGS_ONLY=`echo $WX_CXXFLAGS | sed "s@^$WX_CFLAGS *@@"`      fi    fi    if test "x$no_wx" = x ; then       AC_MSG_RESULT(yes (version $WX_VERSION))       ifelse([$2], , :, [$2])    else       if test "x$WX_VERSION" = x; then	  dnl no wx-config at all	  AC_MSG_RESULT(no)       else	  AC_MSG_RESULT(no (version $WX_VERSION is not new enough))       fi       WX_CFLAGS=""       WX_CPPFLAGS=""       WX_CXXFLAGS=""       WX_LIBS=""       WX_LIBS_STATIC=""       ifelse([$3], , :, [$3])    fi  fi  AC_SUBST(WX_CPPFLAGS)  AC_SUBST(WX_CFLAGS)  AC_SUBST(WX_CXXFLAGS)  AC_SUBST(WX_CFLAGS_ONLY)  AC_SUBST(WX_CXXFLAGS_ONLY)  AC_SUBST(WX_LIBS)  AC_SUBST(WX_LIBS_STATIC)  AC_SUBST(WX_VERSION)])

⌨️ 快捷键说明

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