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

📄 aclocal.m4

📁 Linux下文件工具。
💻 M4
📖 第 1 页 / 共 5 页
字号:
  AC_CHECK_FUNCS(gethostbyname gethostbyaddr inet_ntoa)  AC_CHECK_HEADERS(unistd.h string.h netdb.h sys/socket.h \                   netinet/in.h arpa/inet.h)])AC_DEFUN([jm_PREREQ_DIRNAME],[  AC_HEADER_STDC  AC_CHECK_HEADERS(string.h)])AC_DEFUN([jm_PREREQ_EXCLUDE],[  AC_FUNC_FNMATCH_GNU  AC_HEADER_STDBOOL])AC_DEFUN([jm_PREREQ_GETPAGESIZE],[  AC_CHECK_FUNCS(getpagesize)  AC_CHECK_HEADERS(OS.h unistd.h)])AC_DEFUN([jm_PREREQ_HARD_LOCALE],[  AC_CHECK_HEADERS(locale.h stdlib.h string.h)  AC_CHECK_FUNCS(setlocale)  AM_C_PROTOTYPES])AC_DEFUN([jm_PREREQ_HASH],[  AC_CHECK_HEADERS(stdlib.h)  AC_HEADER_STDBOOL  AC_REQUIRE([jm_CHECK_DECLS])])# If you use human.c, you need the following files:# inttypes.m4 ulonglong.m4AC_DEFUN([jm_PREREQ_HUMAN],[  AC_CHECK_HEADERS(limits.h stdlib.h string.h)  AC_CHECK_DECLS([getenv])  AC_REQUIRE([jm_AC_TYPE_UINTMAX_T])])AC_DEFUN([jm_PREREQ_MEMCHR],[  AC_CHECK_HEADERS(limits.h stdlib.h bp-sym.h)])AC_DEFUN([jm_PREREQ_PHYSMEM],[  AC_CHECK_HEADERS(sys/pstat.h unistd.h)  AC_CHECK_FUNCS(pstat_getstatic pstat_getdynamic)])AC_DEFUN([jm_PREREQ_POSIXVER],[  AC_CHECK_HEADERS(unistd.h)  AC_CHECK_DECLS([getenv])])AC_DEFUN([jm_PREREQ_QUOTEARG],[  AC_CHECK_FUNCS(isascii iswprint)  jm_FUNC_MBRTOWC  AC_CHECK_HEADERS(limits.h stddef.h stdlib.h string.h wchar.h wctype.h)  AC_HEADER_STDC  AC_C_BACKSLASH_A  AC_TYPE_MBSTATE_T  AM_C_PROTOTYPES])AC_DEFUN([jm_PREREQ_READUTMP],[  AC_HEADER_STDC  AC_CHECK_HEADERS(string.h utmp.h utmpx.h sys/param.h)  AC_CHECK_FUNCS(utmpname)  AC_CHECK_FUNCS(utmpxname)  AM_C_PROTOTYPES  if test $ac_cv_header_utmp_h = yes || test $ac_cv_header_utmpx_h = yes; then    utmp_includes="\$ac_includes_default#ifdef HAVE_UTMPX_H# include <utmpx.h>#endif#ifdef HAVE_UTMP_H# include <utmp.h>#endif"    AC_CHECK_MEMBERS([struct utmpx.ut_user],,,[$utmp_includes])    AC_CHECK_MEMBERS([struct utmp.ut_user],,,[$utmp_includes])    AC_CHECK_MEMBERS([struct utmpx.ut_name],,,[$utmp_includes])    AC_CHECK_MEMBERS([struct utmp.ut_name],,,[$utmp_includes])    AC_CHECK_MEMBERS([struct utmpx.ut_type],,,[$utmp_includes])    AC_CHECK_MEMBERS([struct utmp.ut_type],,,[$utmp_includes])    AC_CHECK_MEMBERS([struct utmpx.ut_pid],,,[$utmp_includes])    AC_CHECK_MEMBERS([struct utmp.ut_pid],,,[$utmp_includes])    AC_CHECK_MEMBERS([struct utmpx.ut_id],,,[$utmp_includes])    AC_CHECK_MEMBERS([struct utmp.ut_id],,,[$utmp_includes])    AC_CHECK_MEMBERS([struct utmpx.ut_exit],,,[$utmp_includes])    AC_CHECK_MEMBERS([struct utmp.ut_exit],,,[$utmp_includes])    AC_LIBOBJ(readutmp)  fi])AC_DEFUN([jm_PREREQ_REGEX],[  dnl FIXME: Maybe provide a btowc replacement someday: solaris-2.5.1 lacks it.  dnl FIXME: Check for wctype and iswctype, and and add -lw if necessary  dnl to get them.  AC_CHECK_FUNCS(bzero bcopy isascii btowc)  AC_CHECK_HEADERS(alloca.h libintl.h wctype.h wchar.h)  AC_HEADER_STDC  AC_FUNC_ALLOCA])AC_DEFUN([jm_PREREQ_STAT],[  AC_CHECK_HEADERS(sys/sysmacros.h sys/statvfs.h sys/vfs.h inttypes.h)  AC_CHECK_HEADERS(sys/param.h sys/mount.h)  AC_CHECK_FUNCS(statvfs)  jm_AC_TYPE_LONG_LONG  statxfs_includes="\$ac_includes_default#if HAVE_SYS_STATVFS_H# include <sys/statvfs.h>#endif#if HAVE_SYS_VFS_H# include <sys/vfs.h>#endif#if ( ! HAVE_SYS_STATVFS_H && ! HAVE_SYS_VFS_H && HAVE_SYS_MOUNT_H && HAVE_SYS_PARAM_H )/* NetBSD 1.5.2 needs these, for the declaration of struct statfs. */# include <sys/param.h># include <sys/mount.h>#endif"  AC_CHECK_MEMBERS([struct statfs.f_basetype],,,[$statxfs_includes])  AC_CHECK_MEMBERS([struct statvfs.f_basetype],,,[$statxfs_includes])  AC_CHECK_MEMBERS([struct statfs.f_fstypename],,,[$statxfs_includes])  AC_CHECK_MEMBERS([struct statfs.f_type],,,[$statxfs_includes])  AC_CHECK_MEMBERS([struct statvfs.f_type],,,[$statxfs_includes])  AC_CHECK_MEMBERS([struct statfs.f_fsid.__val],,,[$statxfs_includes])  AC_CHECK_MEMBERS([struct statvfs.f_fsid.__val],,,[$statxfs_includes])  AC_CHECK_MEMBERS([struct statfs.f_namemax],,,[$statxfs_includes])  AC_CHECK_MEMBERS([struct statvfs.f_namemax],,,[$statxfs_includes])  AC_CHECK_MEMBERS([struct statfs.f_namelen],,,[$statxfs_includes])  AC_CHECK_MEMBERS([struct statvfs.f_namelen],,,[$statxfs_includes])])AC_DEFUN([jm_PREREQ_STRNLEN],[  AC_FUNC_STRNLEN  AC_HEADER_STDC  AC_CHECK_HEADERS(memory.h)  AC_CHECK_DECLS([memchr])  # This is necessary because automake-1.6.1 doesn't understand  # that the above use of AC_FUNC_STRNLEN means we may have to use  # lib/strnlen.c.  test $ac_cv_func_strnlen_working = yes \    && AC_LIBOBJ(strnlen)])AC_DEFUN([jm_PREREQ_TEMPNAME],[  AC_HEADER_STDC  AC_HEADER_STAT  AC_CHECK_HEADERS(fcntl.h sys/time.h stdint.h unistd.h)  AC_CHECK_FUNCS(__secure_getenv gettimeofday)  AC_CHECK_DECLS([getenv])])AC_DEFUN([jm_PREREQ_XGETCWD],[  AC_C_PROTOTYPES  AC_CHECK_HEADERS(limits.h stdlib.h sys/param.h unistd.h)  AC_CHECK_FUNCS(getcwd)  AC_FUNC_GETCWD_NULL])AC_DEFUN([jm_PREREQ_XREADLINK],[  AC_C_PROTOTYPES  AC_CHECK_HEADERS(limits.h stdlib.h sys/types.h unistd.h)])# Check prerequisites for compiling lib/c-stack.c.# Copyright (C) 2002 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.# Written by Paul Eggert.AC_DEFUN([AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC],  [# for STACK_DIRECTION   AC_REQUIRE([AC_FUNC_ALLOCA])   AC_CACHE_CHECK([for working C stack overflow detection],     ac_cv_sys_xsi_stack_overflow_heuristic,     [AC_TRY_RUN(	[	 #include <signal.h>	 #include <ucontext.h>	 static union	 {	   char buffer[SIGSTKSZ];	   long double ld;	   long u;	   void *p;	 } alternate_signal_stack;	 #if STACK_DIRECTION	 # define find_stack_direction(ptr) STACK_DIRECTION	 #else	 static int	 find_stack_direction (char const *addr)	 {	   char dummy;	   return (! addr ? find_stack_direction (&dummy)		   : addr < &dummy ? 1 : -1);	 }	 #endif	 static void	 segv_handler (int signo, siginfo_t *info, void *context)	 {	   if (0 < info->si_code)	     {	       ucontext_t const *user_context = context;	       char const *stack_min = user_context->uc_stack.ss_sp;	       size_t stack_size = user_context->uc_stack.ss_size;	       char const *faulting_address = info->si_addr;	       size_t s = faulting_address - stack_min;	       size_t page_size = sysconf (_SC_PAGESIZE);	       if (find_stack_direction (0) < 0)		 s += page_size;	       if (s < stack_size + page_size)		 _exit (0);	     }	   _exit (1);	 }	 static int	 c_stack_action (void)	 {	   stack_t st;	   struct sigaction act;	   int r;	   st.ss_flags = 0;	   st.ss_sp = alternate_signal_stack.buffer;	   st.ss_size = sizeof alternate_signal_stack.buffer;	   r = sigaltstack (&st, 0);	   if (r != 0)	     return r;	   sigemptyset (&act.sa_mask);	   act.sa_flags = SA_NODEFER | SA_ONSTACK | SA_RESETHAND | SA_SIGINFO;	   act.sa_sigaction = segv_handler;	   return sigaction (SIGSEGV, &act, 0);	 }	 static int	 recurse (char *p)	 {	   char array[500];	   array[0] = 1;	   return *p + recurse (array);	 }	 int	 main (void)	 {	   c_stack_action ();	   return recurse ("\1");	 }	],	[ac_cv_sys_xsi_stack_overflow_heuristic=yes],	[ac_cv_sys_xsi_stack_overflow_heuristic=no],	[ac_cv_sys_xsi_stack_overflow_heuristic=cross-compiling])])   if test $ac_cv_sys_xsi_stack_overflow_heuristic = yes; then     AC_DEFINE(HAVE_XSI_STACK_OVERFLOW_HEURISTIC, 1,       [Define to 1 if extending the stack slightly past the limit causes	a SIGSEGV, and an alternate stack can be established with sigaltstack,	and the signal handler is passed a context that specifies the	run time stack.  This behavior is defined by POSIX 1003.1-2001        with the X/Open System Interface (XSI) option	and is a standardized way to implement a SEGV-based stack        overflow detection heuristic.])   fi])AC_DEFUN([jm_PREREQ_C_STACK],  [AC_REQUIRE([AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC])   # for STACK_DIRECTION   AC_REQUIRE([AC_FUNC_ALLOCA])   AC_CHECK_FUNCS(getcontext sigaltstack)   AC_CHECK_DECLS([getcontext], , , [#include <ucontext.h>])   AC_CHECK_DECLS([sigaltstack], , , [#include <signal.h>])   AC_CHECK_HEADERS(sys/resource.h ucontext.h unistd.h)   AC_CHECK_TYPES([stack_t], , , [#include <signal.h>])])#serial 4dnl FIXME: put these prerequisite-only *.m4 files in a separatednl directory -- otherwise, they'll conflict with existing files.dnl These are the prerequisite macros for GNU's error.c file.AC_DEFUN([jm_PREREQ_ERROR],[  AC_CHECK_FUNCS(strerror vprintf doprnt)  AC_CHECK_DECLS([strerror])  AC_FUNC_STRERROR_R  AC_HEADER_STDC])#serial 1003# Experimental replacement for the function in the latest CVS autoconf.# Use with the error.c file in ../lib.# Copyright 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.  */undefine([AC_FUNC_STRERROR_R])# AC_FUNC_STRERROR_R# ------------------AC_DEFUN([AC_FUNC_STRERROR_R],[AC_CHECK_DECLS([strerror_r])AC_CHECK_FUNCS([strerror_r])AC_CACHE_CHECK([whether strerror_r returns char *],               ac_cv_func_strerror_r_char_p,   [    ac_cv_func_strerror_r_char_p=no    if test $ac_cv_have_decl_strerror_r = yes; then      AC_COMPILE_IFELSE([AC_LANG_PROGRAM([AC_INCLUDES_DEFAULT],	[[	  char buf[100];	  char x = *strerror_r (0, buf, sizeof buf);	  char *p = strerror_r (0, buf, sizeof buf);	]])],			ac_cv_func_strerror_r_char_p=yes)    else      # strerror_r is not declared.  Choose between      # systems that have relatively inaccessible declarations for the      # function.  BeOS and DEC UNIX 4.0 fall in this category, but the      # former has a strerror_r that returns char*, while the latter      # has a strerror_r that returns `int'.      # This test should segfault on the DEC system.      AC_RUN_IFELSE([AC_LANG_PROGRAM([AC_INCLUDES_DEFAULT	extern char *strerror_r ();],	[[char buf[100];	  char x = *strerror_r (0, buf, sizeof buf);	  exit (!isalpha (x));]])],                    ac_cv_func_strerror_r_char_p=yes, , :)    fi  ])if test $ac_cv_func_strerror_r_char_p = yes; then  AC_DEFINE([STRERROR_R_CHAR_P], 1,	    [Define to 1 if strerror_r returns char *.])fi])# AC_FUNC_STRERROR_R#serial 7dnl autoconf tests required for use of mbswidth.cdnl From Bruno Haible.AC_DEFUN([jm_PREREQ_MBSWIDTH],[  AC_REQUIRE([AC_HEADER_STDC])  AC_CHECK_HEADERS(limits.h stdlib.h string.h wchar.h wctype.h)  AC_CHECK_FUNCS(isascii iswcntrl iswprint mbsinit wcwidth)  jm_FUNC_MBRTOWC  AC_CACHE_CHECK([whether wcwidth is declared], ac_cv_have_decl_wcwidth,    [AC_TRY_COMPILE([/* AIX 3.2.5 declares wcwidth in <string.h>. */#if HAVE_STRING_H# include <string.h>#endif#if HAVE_WCHAR_H# include 

⌨️ 快捷键说明

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