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

📄 aclocal.m4

📁 一款运行在linux上的象棋游戏。用GTK/GNOME环境下用GLADE开发。
💻 M4
📖 第 1 页 / 共 4 页
字号:
typedef          short   int16_t;typedef          long    int32_t;#endif#elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL == 444/* 2:4:4 =  LP32 = a 32-bit system derived from a 16-bit *//* 4:4:4 = ILP32 = a normal 32-bit system                */typedef unsigned char   uint8_t;typedef unsigned short  uint16_t;typedef unsigned int    uint32_t;#ifndef __int8_t_defined#define __int8_t_definedtypedef          char    int8_t;typedef          short   int16_t;typedef          int     int32_t;#endif#elif _STDINT_LONG_MODEL+0 == 484 || _STDINT_LONG_MODEL+0 == 488/* 4:8:4 =  IP32 = a 32-bit system prepared for 64-bit    *//* 4:8:8 =  LP64 = a normal 64-bit system                 */typedef unsigned char   uint8_t;typedef unsigned short  uint16_t;typedef unsigned int    uint32_t;#ifndef __int8_t_defined#define __int8_t_definedtypedef          char    int8_t;typedef          short   int16_t;typedef          int     int32_t;#endif/* this system has a "long" of 64bit */#ifndef _HAVE_UINT64_T#define _HAVE_UINT64_Ttypedef unsigned long   uint64_t;typedef          long    int64_t;#endif#elif _STDINT_LONG_MODEL+0 == 448/*      LLP64   a 64-bit system derived from a 32-bit system */typedef unsigned char   uint8_t;typedef unsigned short  uint16_t;typedef unsigned int    uint32_t;#ifndef __int8_t_defined#define __int8_t_definedtypedef          char    int8_t;typedef          short   int16_t;typedef          int     int32_t;#endif/* assuming the system has a "long long" */#ifndef _HAVE_UINT64_T#define _HAVE_UINT64_Ttypedef unsigned long long uint64_t;typedef          long long  int64_t;#endif#else#define _STDINT_NO_INT32_T#endif#else#define _STDINT_NO_INT8_T#define _STDINT_NO_INT32_T#endif#endif/* * quote from SunOS-5.8 sys/inttypes.h: * Use at your own risk.  As of February 1996, the committee is squarely * behind the fixed sized types; the "least" and "fast" types are still being * discussed.  The probability that the "fast" types may be removed before * the standard is finalized is high enough that they are not currently * implemented. */#if defined _STDINT_NEED_INT_LEAST_Ttypedef  int8_t    int_least8_t;typedef  int16_t   int_least16_t;typedef  int32_t   int_least32_t;#ifdef _HAVE_UINT64_Ttypedef  int64_t   int_least64_t;#endiftypedef uint8_t   uint_least8_t;typedef uint16_t  uint_least16_t;typedef uint32_t  uint_least32_t;#ifdef _HAVE_UINT64_Ttypedef uint64_t  uint_least64_t;#endif  /* least types */#endif#if defined _STDINT_NEED_INT_FAST_Ttypedef  int8_t    int_fast8_t; typedef  int       int_fast16_t;typedef  int32_t   int_fast32_t;#ifdef _HAVE_UINT64_Ttypedef  int64_t   int_fast64_t;#endiftypedef uint8_t   uint_fast8_t; typedef unsigned  uint_fast16_t;typedef uint32_t  uint_fast32_t;#ifdef _HAVE_UINT64_Ttypedef uint64_t  uint_fast64_t;#endif  /* fast types */#endif#ifdef _STDINT_NEED_INTMAX_T#ifdef _HAVE_UINT64_Ttypedef  int64_t       intmax_t;typedef uint64_t      uintmax_t;#elsetypedef          long  intmax_t;typedef unsigned long uintmax_t;#endif#endif#ifdef _STDINT_NEED_INTPTR_T#ifndef __intptr_t_defined#define __intptr_t_defined/* we encourage using "long" to store pointer values, never use "int" ! */#if   _STDINT_LONG_MODEL+0 == 242 || _STDINT_LONG_MODEL+0 == 484typedef  unsinged int   uintptr_t;typedef           int    intptr_t;#elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL+0 == 444typedef  unsigned long  uintptr_t;typedef           long   intptr_t;#elif _STDINT_LONG_MODEL+0 == 448 && defined _HAVE_UINT64_Ttypedef        uint64_t uintptr_t;typedef         int64_t  intptr_t;#else /* matches typical system types ILP32 and LP64 - but not IP16 or LLP64 */typedef  unsigned long  uintptr_t;typedef           long   intptr_t;#endif#endif#endif  /* shortcircuit*/#endif  /* once */#endif#endifSTDINT_EOF    if cmp -s $ac_stdint_h $ac_stdint 2>/dev/null; then      AC_MSG_NOTICE([$ac_stdint_h is unchanged])    else      ac_dir=`AS_DIRNAME(["$ac_stdint_h"])`      AS_MKDIR_P(["$ac_dir"])      rm -f $ac_stdint_h      mv $ac_stdint $ac_stdint_h    fi],[# variables for create stdint.h replacementPACKAGE="$PACKAGE"VERSION="$VERSION"ac_stdint_h="$ac_stdint_h"_ac_stdint_h=AS_TR_CPP(_$PACKAGE-$ac_stdint_h)ac_cv_stdint_message="$ac_cv_stdint_message"ac_cv_header_stdint_t="$ac_cv_header_stdint_t"ac_cv_header_stdint_x="$ac_cv_header_stdint_x"ac_cv_header_stdint_o="$ac_cv_header_stdint_o"ac_cv_header_stdint_u="$ac_cv_header_stdint_u"ac_cv_type_uint64_t="$ac_cv_type_uint64_t"ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"ac_cv_stdint_char_model="$ac_cv_stdint_char_model"ac_cv_stdint_long_model="$ac_cv_stdint_long_model"ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"ac_cv_type_intmax_t="$ac_cv_type_intmax_t"])])dnl Available from the GNU Autoconf Macro Archive at:dnl http://www.gnu.org/software/ac-archive/htmldoc/ac_compile_check_sizeof.htmldnlAC_DEFUN([AC_COMPILE_CHECK_SIZEOF],[changequote(<<, >>)dnldnl The name to #define.define(<<AC_TYPE_NAME>>, translit(sizeof_$1, [a-z *], [A-Z_P]))dnldnl The cache variable name.define(<<AC_CV_NAME>>, translit(ac_cv_sizeof_$1, [ *], [_p]))dnlchangequote([, ])dnlAC_MSG_CHECKING(size of $1)AC_CACHE_VAL(AC_CV_NAME,[for ac_size in 4 8 1 2 16 $2 ; do # List sizes in rough order of prevalence.  AC_TRY_COMPILE([#include "confdefs.h"#include <sys/types.h>$2], [switch (0) case 0: case (sizeof ($1) == $ac_size):;], AC_CV_NAME=$ac_size)  if test x$AC_CV_NAME != x ; then break; fidone])if test x$AC_CV_NAME = x ; then  AC_MSG_ERROR([cannot determine a size for $1])fiAC_MSG_RESULT($AC_CV_NAME)AC_DEFINE_UNQUOTED(AC_TYPE_NAME, $AC_CV_NAME, [The number of bytes in type $1])undefine([AC_TYPE_NAME])dnlundefine([AC_CV_NAME])dnl])dnl Available from the GNU Autoconf Macro Archive at:dnl http://www.gnu.org/software/ac-archive/htmldoc/acx_pthread.htmldnlAC_DEFUN([ACX_PTHREAD], [AC_REQUIRE([AC_CANONICAL_HOST])AC_LANG_SAVEAC_LANG_Cacx_pthread_ok=no# We used to check for pthread.h first, but this fails if pthread.h# requires special compiler flags (e.g. on True64 or Sequent).# It gets checked for in the link test anyway.# First of all, check if the user has set any of the PTHREAD_LIBS,# etcetera environment variables, and if threads linking works using# them:if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then        save_CFLAGS="$CFLAGS"        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"        save_LIBS="$LIBS"        LIBS="$PTHREAD_LIBS $LIBS"        AC_MSG_CHECKING([for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS])        AC_TRY_LINK_FUNC(pthread_join, acx_pthread_ok=yes)        AC_MSG_RESULT($acx_pthread_ok)        if test x"$acx_pthread_ok" = xno; then                PTHREAD_LIBS=""                PTHREAD_CFLAGS=""        fi        LIBS="$save_LIBS"        CFLAGS="$save_CFLAGS"fi# We must check for the threads library under a number of different# names; the ordering is very important because some systems# (e.g. DEC) have both -lpthread and -lpthreads, where one of the# libraries is broken (non-POSIX).# Create a list of thread flags to try.  Items starting with a "-" are# C compiler flags, and other items are library names, except for "none"# which indicates that we try without any flags at all.acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt"# The ordering *is* (sometimes) important.  Some notes on the# individual items follow:# pthreads: AIX (must check this before -lpthread)# none: in case threads are in libc; should be tried before -Kthread and#       other compiler flags to prevent continual compiler warnings# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)# -pthreads: Solaris/gcc# -mthreads: Mingw32/gcc, Lynx/gcc# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it#      doesn't hurt to check since this sometimes defines pthreads too;#      also defines -D_REENTRANT)# pthread: Linux, etcetera# --thread-safe: KAI C++case "${host_cpu}-${host_os}" in        *solaris*)        # On Solaris (at least, for some versions), libc contains stubbed        # (non-functional) versions of the pthreads routines, so link-based        # tests will erroneously succeed.  (We need to link with -pthread or        # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather        # a function called by this macro, so we could check for that, but        # who knows whether they'll stub that too in a future libc.)  So,        # we'll just look for -pthreads and -lpthread first:        acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"        ;;esacif test x"$acx_pthread_ok" = xno; thenfor flag in $acx_pthread_flags; do        case $flag in                none)                AC_MSG_CHECKING([whether pthreads work without any flags])                ;;                -*)                AC_MSG_CHECKING([whether pthreads work with $flag])                PTHREAD_CFLAGS="$flag"                ;;                *)                AC_MSG_CHECKING([for the pthreads library -l$flag])                PTHREAD_LIBS="-l$flag"                ;;        esac        save_LIBS="$LIBS"        save_CFLAGS="$CFLAGS"        LIBS="$PTHREAD_LIBS $LIBS"        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"        # Check for various functions.  We must include pthread.h,        # since some functions may be macros.  (On the Sequent, we        # need a special flag -Kthread to make this header compile.)        # We check for pthread_join because it is in -lpthread on IRIX        # while pthread_create is in libc.  We check for pthread_attr_init        # due to DEC craziness with -lpthreads.  We check for        # pthread_cleanup_push because it is one of the few pthread        # functions on Solaris that doesn't have a non-functional libc stub.        # We try pthread_create on general principles.        AC_TRY_LINK([#include <pthread.h>],                    [pthread_t th; pthread_join(th, 0);                     pthread_attr_init(0); pthread_cleanup_push(0, 0);                     pthread_create(0,0,0,0); pthread_cleanup_pop(0); ],                    [acx_pthread_ok=yes])        LIBS="$save_LIBS"        CFLAGS="$save_CFLAGS"        AC_MSG_RESULT($acx_pthread_ok)        if test "x$acx_pthread_ok" = xyes; then                break;        fi        PTHREAD_LIBS=""        PTHREAD_CFLAGS=""donefi# Various other checks:if test "x$acx_pthread_ok" = xyes; then        save_LIBS="$LIBS"        LIBS="$PTHREAD_LIBS $LIBS"        save_CFLAGS="$CFLAGS"        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"        # Detect AIX lossage: threads are created detached by default        # and the JOINABLE attribute has a nonstandard name (UNDETACHED).        AC_MSG_CHECKING([for joinable pthread attribute])        AC_TRY_LINK([#include <pthread.h>],                    [int attr=PTHREAD_CREATE_JOINABLE;],                    ok=PTHREAD_CREATE_JOINABLE, ok=unknown)        if test x"$ok" = xunknown; then                AC_TRY_LINK([#include <pthread.h>],                            [int attr=PTHREAD_CREATE_UNDETACHED;],                            ok=PTHREAD_CREATE_UNDETACHED, ok=unknown)        fi        if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then                AC_DEFINE(PTHREAD_CREATE_JOINABLE, $ok,                          [Define to the necessary symbol if this constant                           uses a non-standard name on your system.])        fi        AC_MSG_RESULT(${ok})        if test x"$ok" = xunknown; then                AC_MSG_WARN([we do not know how to create joinable pthreads])        fi        AC_MSG_CHECKING([if more special flags are required for pthreads])        flag=no        case "${host_cpu}-${host_os}" in                *-aix* | *-freebsd*)     flag="-D_THREAD_SAFE";;                *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;        esac        AC_MSG_RESULT(${flag})        if test "x$flag" != xno; then                PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"        fi        LIBS="$save_LIBS"        CFLAGS="$save_CFLAGS"        # More AIX lossage: must compile with cc_r        AC_CHECK_PROG(PTHREAD_CC, cc_r, cc_r, ${CC})else        PTHREAD_CC="$CC"fiAC_SUBST(PTHREAD_LIBS)AC_SUBST(PTHREAD_CFLAGS)AC_SUBST(PTHREAD_CC)# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:if test x"$acx_pthread_ok" = xyes; then        ifelse([$1],,AC_DEFINE(HAVE_PTHREAD,1,[Define if you have POSIX threads libraries and header files.]),[$1])        :else        acx_pthread_ok=no        $2fiAC_LANG_RESTORE])dnl ACX_PTHREAD# Do all the work for Automake.                            -*- Autoconf -*-# 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.# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003# 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 10AC_PREREQ([2.54])# Autoconf 2.50 wants to disallow AM_ names.  We explicitly allow# the ones we care about.m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])# AM_INIT_AUTOMAKE([OPTIONS])

⌨️ 快捷键说明

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