?? stdint.m4
字號:
dnl AC_NEED_STDINT_H ( HEADER-TO-GENERATE )dnl $Id: stdint.m4,v 1.2 2004/07/16 15:31:20 kil3r Exp $dnl Copyright 2001-2002 by Dan Fandrich <dan@coneharvesters.com>dnl This file may be copied and used freely without restrictions. No warrantydnl is expressed or implied.dnldnl Look for a header file that defines size-specific integer types like thednl ones recommended to be in stdint.h in the C99 standard (e.g. uint32_t).dnl This is a dumbed-down version of the macro of the same name in the filednl ac_need_stdint_h.m4 which is part of the ac-archive, available atdnl <URL:http://ac-archive.sourceforge.net/> (also, another macrodnl AC_CREATE_STDINT_H by the same author). This version is not as smart,dnl but works on older autoconf versions and has a different license.dnl AC_CHECK_DEFINED_TYPE ( TYPE, FILE, ACTION-IF-FOUND, ACTION-IF-NOT-FOUND )dnl This is similar to _AC_CHECK_TYPE_NEW (a.k.a. new syntax version ofdnl AC_CHECK_TYPE) in autoconf 2.50 but works on older versionsAC_DEFUN([AC_CHECK_DEFINED_TYPE],[AC_MSG_CHECKING([for $1 in $2])AC_EGREP_CPP(changequote(<<,>>)dnl<<(^|[^a-zA-Z_0-9])$1[^a-zA-Z_0-9]>>dnlchangequote([,]), [#include <$2>],ac_cv_type_$1=yes, ac_cv_type_$1=no)dnlAC_MSG_RESULT($ac_cv_type_$1)if test $ac_cv_type_$1 = yes; then $3else $4fi])dnl Look for a header file that defines size-specific integer typesAC_DEFUN([AC_NEED_STDINT_H],[changequote(, )dnlac_dir=`echo "$1"|sed 's%/[^/][^/]*$%%'`changequote([, ])dnlif test "$ac_dir" != "$1" && test "$ac_dir" != .; then # The file is in a subdirectory. test ! -d "$ac_dir" && mkdir "$ac_dir"fiAC_CHECK_DEFINED_TYPE(uint8_t,stdint.h,[cat > "$1" <<EOF/* This file is generated automatically by configure */#include <stdint.h>EOF],[AC_CHECK_DEFINED_TYPE(uint8_t,inttypes.h,[cat > "$1" <<EOF/* This file is generated automatically by configure */#include <inttypes.h>EOF],[AC_CHECK_DEFINED_TYPE(uint8_t,sys/types.h,[cat > "$1" <<EOF/* This file is generated automatically by configure */#include <sys/types.h>EOF],[AC_CHECK_DEFINED_TYPE(u_int8_t,sys/types.h,[cat > "$1" <<EOF/* This file is generated automatically by configure */#ifndef __STDINT_H#define __STDINT_H#include <sys/types.h>typedef u_int8_t uint8_t;typedef u_int16_t uint16_t;typedef u_int32_t uint32_t;EOFAC_CHECK_DEFINED_TYPE(u_int64_t,sys/types.h,[cat >> "$1" <<EOFtypedef u_int64_t uint64_t;#endif /*!__STDINT_H*/EOF],[cat >> "$1" <<EOF/* 64-bit types are not available on this system *//* typedef u_int64_t uint64_t; */#endif /*!__STDINT_H*/EOF])],[AC_MSG_WARN([I can't find size-specific integer definitions on this system])if test -e "$1" ; then rm -f "$1"fi])])])])dnl])
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -