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

📄 aclocal.m4

📁 Gambit 是一个游戏库理论软件
💻 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.dnldnl $Source: /home/gambit/CVS/gambit/acinclude.m4,v $dnl $Date: 2002/08/16 02:49:30 $dnl $Revision: 1.5 $dnldnl DESCRIPTION:dnl Local macro definitions for Gambit configure.indnldnl ---------------------------------------------------------------------------dnl WX_PATH_WXCONFIG(VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])dnldnl Test for wxWindows, and define WX_CFLAGS and WX_LIBS. Set WX_CONFIGdnl environment variable to override the default name of the wx-config scriptdnl to use.dnl ---------------------------------------------------------------------------AC_DEFUN(WX_PATH_WXCONFIG,[dnl dnl Get the cflags and libraries from the wx-config scriptdnlAC_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="")  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"     if test x${WX_CONFIG+set} != xset ; then        WX_CONFIG=$wx_config_exec_prefix/bin/wx-config     fi  fi  if test x$wx_config_prefix != x ; then     wx_config_args="$wx_config_args --prefix=$wx_config_prefix"     if test x${WX_CONFIG+set} != xset ; then        WX_CONFIG=$wx_config_prefix/bin/wx-config     fi  fi  AC_PATH_PROG(WX_CONFIG, wx-config, no)  min_wx_version=ifelse([$1], ,2.3.2,$1)  AC_MSG_CHECKING(for wxWindows version >= $min_wx_version)  no_wx=""  if test "$WX_CONFIG" = "no" ; then    no_wx=yes  else    WX_CFLAGS=`$WX_CONFIG $wx_config_args --cflags`    WX_CXXFLAGS=`$WX_CONFIG $wx_config_args --cxxflags`    WX_LIBS=`$WX_CONFIG $wx_config_args --libs`    wx_config_major_version=`$WX_CONFIG $wx_config_args --version | \           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`    wx_config_minor_version=`$WX_CONFIG $wx_config_args --version | \           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`    wx_config_micro_version=`$WX_CONFIG $wx_config_args --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    fi  fi  if test "x$no_wx" = x ; then     AC_MSG_RESULT(yes (version $wx_config_major_version.$wx_config_minor_version.$wx_config_micro_version))     ifelse([$2], , :, [$2])       else    if test "x$wx_config_major_version" = x; then      dnl no wx-config at all      AC_MSG_RESULT(no)    else      AC_MSG_RESULT(no (version $wx_config_major_version.$wx_config_minor_version.$wx_config_micro_version) is not new enough)    fi    WX_CFLAGS=""    WX_LIBS=""    ifelse([$3], , :, [$3])  fi  AC_SUBST(WX_CFLAGS)  AC_SUBST(WX_CXXFLAGS)  AC_SUBST(WX_LIBS)])# 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)])

⌨️ 快捷键说明

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