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

📄 aclocal.m4

📁 fdisk 实现源码,可以查询Linux下系统的分区信息
💻 M4
📖 第 1 页 / 共 5 页
字号:
    dnl to 'yes' because some of the testsuite requires it.    if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then      BUILD_INCLUDED_LIBINTL=yes    fi    dnl Make all variables we use known to autoconf.    AC_SUBST(BUILD_INCLUDED_LIBINTL)    AC_SUBST(USE_INCLUDED_LIBINTL)    AC_SUBST(CATOBJEXT)    dnl For backward compatibility. Some configure.ins may be using this.    nls_cv_header_intl=    nls_cv_header_libgt=    dnl For backward compatibility. Some Makefiles may be using this.    DATADIRNAME=share    AC_SUBST(DATADIRNAME)    dnl For backward compatibility. Some Makefiles may be using this.    INSTOBJEXT=.mo    AC_SUBST(INSTOBJEXT)    dnl For backward compatibility. Some Makefiles may be using this.    GENCAT=gencat    AC_SUBST(GENCAT)    dnl For backward compatibility. Some Makefiles may be using this.    INTLOBJS=    if test "$USE_INCLUDED_LIBINTL" = yes; then      INTLOBJS="\$(GETTOBJS)"    fi    AC_SUBST(INTLOBJS)    dnl Enable libtool support if the surrounding package wishes it.    INTL_LIBTOOL_SUFFIX_PREFIX=gt_libtool_suffix_prefix    AC_SUBST(INTL_LIBTOOL_SUFFIX_PREFIX)  ])  dnl For backward compatibility. Some Makefiles may be using this.  INTLLIBS="$LIBINTL"  AC_SUBST(INTLLIBS)  dnl Make all documented variables known to autoconf.  AC_SUBST(LIBINTL)  AC_SUBST(LTLIBINTL)  AC_SUBST(POSUB)])dnl Checks for special options needed on MacOS X.dnl Defines INTL_MACOSX_LIBS.AC_DEFUN([gt_INTL_MACOSX],[  dnl Check for API introduced in MacOS X 10.2.  AC_CACHE_CHECK([for CFPreferencesCopyAppValue],    gt_cv_func_CFPreferencesCopyAppValue,    [gt_save_LIBS="$LIBS"     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"     AC_TRY_LINK([#include <CoreFoundation/CFPreferences.h>],       [CFPreferencesCopyAppValue(NULL, NULL)],       [gt_cv_func_CFPreferencesCopyAppValue=yes],       [gt_cv_func_CFPreferencesCopyAppValue=no])     LIBS="$gt_save_LIBS"])  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then    AC_DEFINE([HAVE_CFPREFERENCESCOPYAPPVALUE], 1,      [Define to 1 if you have the MacOS X function CFPreferencesCopyAppValue in the CoreFoundation framework.])  fi  dnl Check for API introduced in MacOS X 10.3.  AC_CACHE_CHECK([for CFLocaleCopyCurrent], gt_cv_func_CFLocaleCopyCurrent,    [gt_save_LIBS="$LIBS"     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"     AC_TRY_LINK([#include <CoreFoundation/CFLocale.h>], [CFLocaleCopyCurrent();],       [gt_cv_func_CFLocaleCopyCurrent=yes],       [gt_cv_func_CFLocaleCopyCurrent=no])     LIBS="$gt_save_LIBS"])  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then    AC_DEFINE([HAVE_CFLOCALECOPYCURRENT], 1,      [Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the CoreFoundation framework.])  fi  INTL_MACOSX_LIBS=  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"  fi  AC_SUBST([INTL_MACOSX_LIBS])])dnl gt_NEEDS_INIT ensures that the gt_needs variable is initialized.m4_define([gt_NEEDS_INIT],[  m4_divert_text([DEFAULTS], [gt_needs=])  m4_define([gt_NEEDS_INIT], [])])dnl Usage: AM_GNU_GETTEXT_NEED([NEEDSYMBOL])AC_DEFUN([AM_GNU_GETTEXT_NEED],[  m4_divert_text([INIT_PREPARE], [gt_needs="$gt_needs $1"])])dnl Usage: AM_GNU_GETTEXT_VERSION([gettext-version])AC_DEFUN([AM_GNU_GETTEXT_VERSION], [])# iconv.m4 serial AM4 (gettext-0.11.3)dnl Copyright (C) 2000-2002 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 From Bruno Haible.AC_DEFUN([AM_ICONV_LINKFLAGS_BODY],[  dnl Prerequisites of AC_LIB_LINKFLAGS_BODY.  AC_REQUIRE([AC_LIB_PREPARE_PREFIX])  AC_REQUIRE([AC_LIB_RPATH])  dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV  dnl accordingly.  AC_LIB_LINKFLAGS_BODY([iconv])])AC_DEFUN([AM_ICONV_LINK],[  dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and  dnl those with the standalone portable GNU libiconv installed).  dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV  dnl accordingly.  AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY])  dnl Add $INCICONV to CPPFLAGS before performing the following checks,  dnl because if the user has installed libiconv and not disabled its use  dnl via --without-libiconv-prefix, he wants to use it. The first  dnl AC_TRY_LINK will then fail, the second AC_TRY_LINK will succeed.  am_save_CPPFLAGS="$CPPFLAGS"  AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCICONV])  AC_CACHE_CHECK(for iconv, am_cv_func_iconv, [    am_cv_func_iconv="no, consider installing GNU libiconv"    am_cv_lib_iconv=no    AC_TRY_LINK([#include <stdlib.h>#include <iconv.h>],      [iconv_t cd = iconv_open("","");       iconv(cd,NULL,NULL,NULL,NULL);       iconv_close(cd);],      am_cv_func_iconv=yes)    if test "$am_cv_func_iconv" != yes; then      am_save_LIBS="$LIBS"      LIBS="$LIBS $LIBICONV"      AC_TRY_LINK([#include <stdlib.h>#include <iconv.h>],        [iconv_t cd = iconv_open("","");         iconv(cd,NULL,NULL,NULL,NULL);         iconv_close(cd);],        am_cv_lib_iconv=yes        am_cv_func_iconv=yes)      LIBS="$am_save_LIBS"    fi  ])  if test "$am_cv_func_iconv" = yes; then    AC_DEFINE(HAVE_ICONV, 1, [Define if you have the iconv() function.])  fi  if test "$am_cv_lib_iconv" = yes; then    AC_MSG_CHECKING([how to link with libiconv])    AC_MSG_RESULT([$LIBICONV])  else    dnl If $LIBICONV didn't lead to a usable library, we don't need $INCICONV    dnl either.    CPPFLAGS="$am_save_CPPFLAGS"    LIBICONV=    LTLIBICONV=  fi  AC_SUBST(LIBICONV)  AC_SUBST(LTLIBICONV)])AC_DEFUN([AM_ICONV],[  AM_ICONV_LINK  if test "$am_cv_func_iconv" = yes; then    AC_MSG_CHECKING([for iconv declaration])    AC_CACHE_VAL(am_cv_proto_iconv, [      AC_TRY_COMPILE([#include <stdlib.h>#include <iconv.h>extern#ifdef __cplusplus"C"#endif#if defined(__STDC__) || defined(__cplusplus)size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);#elsesize_t iconv();#endif], [], am_cv_proto_iconv_arg1="", am_cv_proto_iconv_arg1="const")      am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"])    am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`    AC_MSG_RESULT([$]{ac_t:-         }[$]am_cv_proto_iconv)    AC_DEFINE_UNQUOTED(ICONV_CONST, $am_cv_proto_iconv_arg1,      [Define as const if the declaration of iconv() needs const.])  fi])# lib-ld.m4 serial 3 (gettext-0.13)dnl Copyright (C) 1996-2003 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 Subroutines of libtool.m4,dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collisiondnl with libtool.m4.dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no.AC_DEFUN([AC_LIB_PROG_LD_GNU],[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld,[# I'd rather use --version here, but apparently some GNU ld's only accept -v.case `$LD -v 2>&1 </dev/null` in*GNU* | *'with BFD'*)  acl_cv_prog_gnu_ld=yes ;;*)  acl_cv_prog_gnu_ld=no ;;esac])with_gnu_ld=$acl_cv_prog_gnu_ld])dnl From libtool-1.4. Sets the variable LD.AC_DEFUN([AC_LIB_PROG_LD],[AC_ARG_WITH(gnu-ld,[  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]],test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)AC_REQUIRE([AC_PROG_CC])dnlAC_REQUIRE([AC_CANONICAL_HOST])dnl# Prepare PATH_SEPARATOR.# The user is always right.if test "${PATH_SEPARATOR+set}" != set; then  echo "#! /bin/sh" >conf$$.sh  echo  "exit 0"   >>conf$$.sh  chmod +x conf$$.sh  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then    PATH_SEPARATOR=';'  else    PATH_SEPARATOR=:  fi  rm -f conf$$.shfiac_prog=ldif test "$GCC" = yes; then  # Check if gcc -print-prog-name=ld gives a path.  AC_MSG_CHECKING([for ld used by GCC])  case $host in  *-*-mingw*)    # gcc leaves a trailing carriage return which upsets mingw    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;  *)    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;  esac  case $ac_prog in    # Accept absolute paths.    [[\\/]* | [A-Za-z]:[\\/]*)]      [re_direlt='/[^/][^/]*/\.\./']      # Canonicalize the path of ld      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`      done      test -z "$LD" && LD="$ac_prog"      ;;  "")    # If it fails, then pretend we aren't using GCC.    ac_prog=ld    ;;  *)    # If it is relative, then search for the first ld in PATH.    with_gnu_ld=unknown    ;;  esacelif test "$with_gnu_ld" = yes; then  AC_MSG_CHECKING([for GNU ld])else  AC_MSG_CHECKING([for non-GNU ld])fiAC_CACHE_VAL(acl_cv_path_LD,[if test -z "$LD"; then  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"  for ac_dir in $PATH; do    test -z "$ac_dir" && ac_dir=.    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then      acl_cv_path_LD="$ac_dir/$ac_prog"      # Check to see if the program is GNU ld.  I'd rather use --version,      # but apparently some GNU ld's only accept -v.      # Break only if it was the GNU/non-GNU ld that we prefer.      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in      *GNU* | *'with BFD'*)	test "$with_gnu_ld" != no && break ;;      *)	test "$with_gnu_ld" != yes && break ;;      esac    fi  done  IFS="$ac_save_ifs"else  acl_cv_path_LD="$LD" # Let the user override the test with a path.fi])LD="$acl_cv_path_LD"if test -n "$LD"; then  AC_MSG_RESULT($LD)else  AC_MSG_RESULT(no)fitest -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])AC_LIB_PROG_LD_GNU])# lib-link.m4 serial 9 (gettext-0.16)dnl Copyright (C) 2001-2006 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 From Bruno Haible.AC_PREREQ(2.50)dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname anddnl the libraries corresponding to explicit and implicit dependencies.dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables anddnl augments the CPPFLAGS variable.AC_DEFUN([AC_LIB_LINKFLAGS],

⌨️ 快捷键说明

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