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

📄 aclocal.m4

📁 源代码
💻 M4
📖 第 1 页 / 共 3 页
字号:
    }    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do    # Make sure the directory exists.    test -f "$dirpart/$file" && continue    fdir=`echo "$file" | sed -e 's|/[^/]*$||'`    $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1    # echo "creating $dirpart/$file"    echo '# dummy' > "$dirpart/$file"  donedone], [AMDEP_TRUE="$AMDEP_TRUE"ac_aux_dir="$ac_aux_dir"])])# AM_MAKE_INCLUDE()# -----------------# Check to see how make treats includes.AC_DEFUN([AM_MAKE_INCLUDE],[am_make=${MAKE-make}cat > confinc << 'END'doit:	@echo doneEND# If we don't find an include directive, just comment out the code.AC_MSG_CHECKING([for style of include used by $am_make])am__include='#'am__quote=_am_result=none# First try GNU make style include.echo "include confinc" > confmf# We grep out `Entering directory' and `Leaving directory'# messages which can occur if `w' ends up in MAKEFLAGS.# In particular we don't look at `^make:' because GNU make might# be invoked under some other name (usually "gmake"), in which# case it prints its new name instead of `make'.if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then   am__include=include   am__quote=   _am_result=GNUfi# Now try BSD make style include.if test "$am__include" = "#"; then   echo '.include "confinc"' > confmf   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then      am__include=.include      am__quote='"'      _am_result=BSD   fifiAC_SUBST(am__include)AC_SUBST(am__quote)AC_MSG_RESULT($_am_result)rm -f confinc confmf])# serial 3# AM_CONDITIONAL(NAME, SHELL-CONDITION)# -------------------------------------# Define a conditional.## FIXME: Once using 2.50, use this:# m4_match([$1], [^TRUE\|FALSE$], [AC_FATAL([$0: invalid condition: $1])])dnlAC_DEFUN([AM_CONDITIONAL],[ifelse([$1], [TRUE],        [errprint(__file__:__line__: [$0: invalid condition: $1])dnlm4exit(1)])dnlifelse([$1], [FALSE],       [errprint(__file__:__line__: [$0: invalid condition: $1])dnlm4exit(1)])dnlAC_SUBST([$1_TRUE])AC_SUBST([$1_FALSE])if $2; then  $1_TRUE=  $1_FALSE='#'else  $1_TRUE='#'  $1_FALSE=fi])# Like AC_CONFIG_HEADER, but automatically create stamp file.# serial 3# When config.status generates a header, we must update the stamp-h file.# This file resides in the same directory as the config header# that is generated.  We must strip everything past the first ":",# and everything past the last "/".AC_PREREQ([2.12])AC_DEFUN([AM_CONFIG_HEADER],[ifdef([AC_FOREACH],dnl	 [dnl init our file count if it isn't already	 m4_ifndef([_AM_Config_Header_Index], m4_define([_AM_Config_Header_Index], [0]))	 dnl prepare to store our destination file list for use in config.status	 AC_FOREACH([_AM_File], [$1],		    [m4_pushdef([_AM_Dest], m4_patsubst(_AM_File, [:.*]))		    m4_define([_AM_Config_Header_Index], m4_incr(_AM_Config_Header_Index))		    dnl and add it to the list of files AC keeps track of, along		    dnl with our hook		    AC_CONFIG_HEADERS(_AM_File,dnl COMMANDS, [, INIT-CMDS][# update the timestampecho timestamp >"AS_ESCAPE(_AM_DIRNAME(]_AM_Dest[))/stamp-h]_AM_Config_Header_Index["][$2]m4_ifval([$3], [, [$3]]))dnl AC_CONFIG_HEADERS		    m4_popdef([_AM_Dest])])],dnl[AC_CONFIG_HEADER([$1])  AC_OUTPUT_COMMANDS(   ifelse(patsubst([$1], [[^ ]], []),	  [],	  [test -z "$CONFIG_HEADERS" || echo timestamp >dnl	   patsubst([$1], [^\([^:]*/\)?.*], [\1])stamp-h]),dnl[am_indx=1for am_file in $1; do  case " \$CONFIG_HEADERS " in  *" \$am_file "*)    am_dir=\`echo \$am_file |sed 's%:.*%%;s%[^/]*\$%%'\`    if test -n "\$am_dir"; then      am_tmpdir=\`echo \$am_dir |sed 's%^\(/*\).*\$%\1%'\`      for am_subdir in \`echo \$am_dir |sed 's%/% %'\`; do        am_tmpdir=\$am_tmpdir\$am_subdir/        if test ! -d \$am_tmpdir; then          mkdir \$am_tmpdir        fi      done    fi    echo timestamp > "\$am_dir"stamp-h\$am_indx    ;;  esac  am_indx=\`expr \$am_indx + 1\`done])])]) # AM_CONFIG_HEADER# _AM_DIRNAME(PATH)# -----------------# Like AS_DIRNAME, only do it during macro expansionAC_DEFUN([_AM_DIRNAME],       [m4_if(m4_regexp([$1], [^.*[^/]//*[^/][^/]*/*$]), -1,	      m4_if(m4_regexp([$1], [^//\([^/]\|$\)]), -1,		    m4_if(m4_regexp([$1], [^/.*]), -1,			  [.],			  m4_patsubst([$1], [^\(/\).*], [\1])),		    m4_patsubst([$1], [^\(//\)\([^/].*\|$\)], [\1])),	      m4_patsubst([$1], [^\(.*[^/]\)//*[^/][^/]*/*$], [\1]))[]dnl]) # _AM_DIRNAME#serial 1# This test replaces the one in autoconf.# Currently this macro should have the same name as the autoconf macro# because gettext's gettext.m4 (distributed in the automake package)# still uses it.  Otherwise, the use in gettext.m4 makes autoheader# give these diagnostics:#   configure.in:556: AC_TRY_COMPILE was called before AC_ISC_POSIX#   configure.in:556: AC_TRY_RUN was called before AC_ISC_POSIXundefine([AC_ISC_POSIX])AC_DEFUN([AC_ISC_POSIX],  [    dnl This test replaces the obsolescent AC_ISC_POSIX kludge.    AC_CHECK_LIB(cposix, strerror, [LIBS="$LIBS -lcposix"])  ])# serial 1# @defmac AC_PROG_CC_STDC# @maindex PROG_CC_STDC# @ovindex CC# If the C compiler in not in ANSI C mode by default, try to add an option# to output variable @code{CC} to make it so.  This macro tries various# options that select ANSI C on some system or another.  It considers the# compiler to be in ANSI C mode if it handles function prototypes correctly.## If you use this macro, you should check after calling it whether the C# compiler has been set to accept ANSI C; if not, the shell variable# @code{am_cv_prog_cc_stdc} is set to @samp{no}.  If you wrote your source# code in ANSI C, you can make an un-ANSIfied copy of it by using the# program @code{ansi2knr}, which comes with Ghostscript.# @end defmacAC_DEFUN([AM_PROG_CC_STDC],[AC_REQUIRE([AC_PROG_CC])AC_BEFORE([$0], [AC_C_INLINE])AC_BEFORE([$0], [AC_C_CONST])dnl Force this before AC_PROG_CPP.  Some cpp's, eg on HPUX, requirednl a magic option to avoid problems with ANSI preprocessor commandsdnl like #elif.dnl FIXME: can't do this because then AC_AIX won't work due to adnl circular dependency.dnl AC_BEFORE([$0], [AC_PROG_CPP])AC_MSG_CHECKING([for ${CC-cc} option to accept ANSI C])AC_CACHE_VAL(am_cv_prog_cc_stdc,[am_cv_prog_cc_stdc=noac_save_CC="$CC"# Don't try gcc -ansi; that turns off useful extensions and# breaks some systems' header files.# AIX			-qlanglvl=ansi# Ultrix and OSF/1	-std1# HP-UX 10.20 and later	-Ae# HP-UX older versions	-Aa -D_HPUX_SOURCE# SVR4			-Xc -D__EXTENSIONS__for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"do  CC="$ac_save_CC $ac_arg"  AC_TRY_COMPILE([#include <stdarg.h>#include <stdio.h>#include <sys/types.h>#include <sys/stat.h>/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */struct buf { int x; };FILE * (*rcsopen) (struct buf *, struct stat *, int);static char *e (p, i)     char **p;     int i;{  return p[i];}static char *f (char * (*g) (char **, int), char **p, ...){  char *s;  va_list v;  va_start (v,p);  s = g (p, va_arg (v,int));  va_end (v);  return s;}int test (int i, double x);struct s1 {int (*f) (int a);};struct s2 {int (*f) (double a);};int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);int argc;char **argv;], [return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];],[am_cv_prog_cc_stdc="$ac_arg"; break])doneCC="$ac_save_CC"])if test -z "$am_cv_prog_cc_stdc"; then  AC_MSG_RESULT([none needed])else  AC_MSG_RESULT([$am_cv_prog_cc_stdc])ficase "x$am_cv_prog_cc_stdc" in  x|xno) ;;  *) CC="$CC $am_cv_prog_cc_stdc" ;;esac])# Macro to add for using GNU gettext.# Ulrich Drepper <drepper@cygnus.com>, 1995.## This file can be copied and used freely without restrictions.  It can# be used in projects which are not available under the GNU General Public# License or the GNU Library General Public License but which still want# to provide support for the GNU gettext functionality.# Please note that the actual code of the GNU gettext library is covered# by the GNU Library General Public License, and the rest of the GNU# gettext package package is covered by the GNU General Public License.# They are *not* in the public domain.# serial 10dnl Usage: AM_WITH_NLS([TOOLSYMBOL], [NEEDSYMBOL], [LIBDIR]).dnl If TOOLSYMBOL is specified and is 'use-libtool', then a libtool librarydnl    $(top_builddir)/intl/libintl.la will be created (shared and/or static,dnl    depending on --{enable,disable}-{shared,static} and on the presence ofdnl    AM-DISABLE-SHARED). Otherwise, a static librarydnl    $(top_builddir)/intl/libintl.a will be created.dnl If NEEDSYMBOL is specified and is 'need-ngettext', then GNU gettextdnl    implementations (in libc or libintl) without the ngettext() functiondnl    will be ignored.dnl LIBDIR is used to find the intl libraries.  If empty,dnl    the value `$(top_builddir)/intl/' is used.dnldnl The result of the configuration is one of three cases:dnl 1) GNU gettext, as included in the intl subdirectory, will be compileddnl    and used.dnl    Catalog format: GNU --> install in $(datadir)dnl    Catalog extension: .mo after installation, .gmo in source treednl 2) GNU gettext has been found in the system's C library.dnl    Catalog format: GNU --> install in $(datadir)dnl    Catalog extension: .mo after installation, .gmo in source treednl 3) No internationalization, always use English msgid.dnl    Catalog format: nonednl    Catalog extension: nonednl The use of .gmo is historical (it was needed to avoid overwriting thednl GNU format catalogs when building on a platform with an X/Open gettext),dnl but we keep it in order not to force irrelevant filename changes on thednl maintainers.dnlAC_DEFUN([AM_WITH_NLS],  [AC_MSG_CHECKING([whether NLS is requested])    dnl Default is enabled NLS    AC_ARG_ENABLE(nls,      [  --disable-nls           do not use Native Language Support],      USE_NLS=$enableval, USE_NLS=yes)    AC_MSG_RESULT($USE_NLS)    AC_SUBST(USE_NLS)    BUILD_INCLUDED_LIBINTL=no    USE_INCLUDED_LIBINTL=no    INTLLIBS=    dnl If we use NLS figure out what method    if test "$USE_NLS" = "yes"; then      AC_DEFINE(ENABLE_NLS, 1,        [Define to 1 if translation of program messages to the user's native language   is requested.])      AC_MSG_CHECKING([whether included gettext is requested])      AC_ARG_WITH(included-gettext,        [  --with-included-gettext use the GNU gettext library included here],        nls_cv_force_use_gnu_gettext=$withval,        nls_cv_force_use_gnu_gettext=no)      AC_MSG_RESULT($nls_cv_force_use_gnu_gettext)      nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"      if test "$nls_cv_force_use_gnu_gettext" != "yes"; then        dnl User does not insist on using GNU NLS library.  Figure out what        dnl to use.  If GNU gettext is available we use this.  Else we have        dnl to fall back to GNU NLS library.	CATOBJEXT=NONE        dnl Add a version number to the cache macros.        define(gt_cv_func_gnugettext_libc, [gt_cv_func_gnugettext]ifelse([$2], need-ngettext, 2, 1)[_libc])        define(gt_cv_func_gnugettext_libintl, [gt_cv_func_gnugettext]ifelse([$2], need-ngettext, 2, 1)[_libintl])	AC_CHECK_HEADER(libintl.h,	  [AC_CACHE_CHECK([for GNU gettext in libc], gt_cv_func_gnugettext_libc,	    [AC_TRY_LINK([#include <libintl.h>extern int _nl_msg_cat_cntr;],	       [bindtextdomain ("", "");return (int) gettext ("")]ifelse([$2], need-ngettext, [ + (int) ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr],	       gt_cv_func_gnugettext_libc=yes,	       gt_cv_func_gnugettext_libc=no)])	   if test "$gt_cv_func_gnugettext_libc" != "yes"; then	     AC_CACHE_CHECK([for GNU gettext in libintl],	       gt_cv_func_gnugettext_libintl,	       [gt_save_LIBS="$LIBS"		LIBS="$LIBS -lintl $LIBICONV"		AC_TRY_LINK([#include <libintl.h>extern int _nl_msg_cat_cntr;],		  [bindtextdomain ("", "");return (int) gettext ("")]ifelse([$2], need-ngettext, [ + (int) ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr],		  gt_cv_func_gnugettext_libintl=yes,		  gt_cv_func_gnugettext_libintl=no)		LIBS="$gt_save_LIBS"])	   fi	   dnl If an already present or preinstalled GNU gettext() is found,	   dnl use it.  But if this macro is used in GNU gettext, and GNU	   dnl gettext is already preinstalled in libintl, we update this	   dnl libintl.  (Cf. the install rule in intl/Makefile.in.)	   if test "$gt_cv_func_gnugettext_libc" = "yes" \	      || { test "$gt_cv_func_gnugettext_libintl" = "yes" \		   && test "$PACKAGE" != gettext; }; then	     AC_DEFINE(HAVE_GETTEXT, 1,               [Define if the GNU gettext() function is already present or preinstalled.])	     if test "$gt_cv_func_gnugettext_libintl" = "yes"; then	       dnl If iconv() is in a separate libiconv library, then anyone	       dnl linking with libintl{.a,.so} also needs to link with	       dnl libiconv.	       INTLLIBS="-lintl $LIBICONV"	     fi	     gt_save_LIBS="$LIBS"	     LIBS="$LIBS $INTLLIBS"	     AC_CHECK_FUNCS(dcgettext)	     LIBS="$gt_save_LIBS"	     dnl Search for GNU msgfmt in the PATH.	     AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,	       [$ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1], :)	     AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)	     dnl Search for GNU xgettext in the PATH.	     AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,	       [$ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1], :)	     CATOBJEXT=.gmo	   fi	])        if test "$CATOBJEXT" = "NONE"; then	  dnl GNU gettext is not found in the C library.	  dnl Fall back on GNU gettext library.	  nls_cv_use_gnu_gettext=yes        fi      fi      if test "$nls_cv_use_gnu_gettext" = "yes"; then        dnl Mark actions used to generate GNU NLS library.        INTLOBJS="\$(GETTOBJS)"        AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,	  [$ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1], :)        AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)        AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,	  [$ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1], :)        AC_SUBST(MSGFMT)	BUILD_INCLUDED_LIBINTL=yes	USE_INCLUDED_LIBINTL=yes        CATOBJEXT=.gmo

⌨️ 快捷键说明

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