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

📄 acgeneral.m4

📁 这是一个自动生成MAKEFILE的工具。在LINUX工程项目里是很好的帮手。希望对大家有点帮助。
💻 M4
📖 第 1 页 / 共 5 页
字号:
dnl Parameterized macros.dnl Requires GNU m4.dnl This file is part of Autoconf.dnl Copyright (C) 1992, 93, 94, 95, 96, 1998 Free Software Foundation, Inc.dnldnl This program is free software; you can redistribute it and/or modifydnl it under the terms of the GNU General Public License as published bydnl the Free Software Foundation; either version 2, or (at your option)dnl any later version.dnldnl This program is distributed in the hope that it will be useful,dnl but WITHOUT ANY WARRANTY; without even the implied warranty ofdnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See thednl GNU General Public License for more details.dnldnl You should have received a copy of the GNU General Public Licensednl along with this program; if not, write to the Free Softwarednl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MAdnl 02111-1307, USA.dnldnl As a special exception, the Free Software Foundation gives unlimiteddnl permission to copy, distribute and modify the configure scripts thatdnl are the output of Autoconf.  You need not follow the terms of the GNUdnl General Public License when using or distributing such scripts, evendnl though portions of the text of Autoconf appear in them.  The GNUdnl General Public License (GPL) does govern all other use of the materialdnl that constitutes the Autoconf program.dnldnl Certain portions of the Autoconf source text are designed to be copieddnl (in certain cases, depending on the input) into the output ofdnl Autoconf.  We call these the "data" portions.  The rest of the Autoconfdnl source text consists of comments plus executable code that decides whichdnl of the data portions to output in any given case.  We call thesednl comments and executable code the "non-data" portions.  Autoconf neverdnl copies any of the non-data portions into its output.dnldnl This special exception to the GPL applies to versions of Autoconfdnl released by the Free Software Foundation.  When you make anddnl distribute a modified version of Autoconf, you may extend this specialdnl exception to the GPL to apply to your modified version as well, *unless*dnl your modified version has the potential to copy into its output somednl of the text that was the non-data portion of the version that you starteddnl with.  (In other words, unless your change moves or copies text fromdnl the non-data portions to the data portions.)  If your modification hasdnl such potential, you must delete any notice of this special exceptiondnl to the GPL from your modified version.dnldnl Written by David MacKenzie, with help fromdnl Franc,ois Pinard, Karl Berry, Richard Pixley, Ian Lance Taylor,dnl Roland McGrath, Noah Friedman, david d zuhn, and many others.dnldivert(-1)dnl Throw away output until AC_INIT is called.changequote([, ])define(AC_ACVERSION, 2.13)dnl Some old m4's don't support m4exit.  But they providednl equivalent functionality by core dumping because of thednl long macros we define.ifdef([__gnu__], , [errprint(Autoconf requires GNU m4.Install it before installing Autoconf or set theM4 environment variable to its path name.)m4exit(2)])undefine([eval])undefine([include])undefine([shift])undefine([format])dnl ### Defining macrosdnl m4 output diversions.  We let m4 output them all in order at the end,dnl except that we explicitly undivert AC_DIVERSION_SED, AC_DIVERSION_CMDS,dnl and AC_DIVERSION_ICMDS.dnl AC_DIVERSION_NOTICE - 1 (= 0)	AC_REQUIRE'd #! /bin/sh linedefine(AC_DIVERSION_NOTICE, 1)dnl	copyright notice & option help stringsdefine(AC_DIVERSION_INIT, 2)dnl		initialization codedefine(AC_DIVERSION_NORMAL_4, 3)dnl	AC_REQUIRE'd code, 4 level deepdefine(AC_DIVERSION_NORMAL_3, 4)dnl	AC_REQUIRE'd code, 3 level deepdefine(AC_DIVERSION_NORMAL_2, 5)dnl	AC_REQUIRE'd code, 2 level deepdefine(AC_DIVERSION_NORMAL_1, 6)dnl	AC_REQUIRE'd code, 1 level deepdefine(AC_DIVERSION_NORMAL, 7)dnl	the tests and output codedefine(AC_DIVERSION_SED, 8)dnl		variable substitutions in config.statusdefine(AC_DIVERSION_CMDS, 9)dnl		extra shell commands in config.statusdefine(AC_DIVERSION_ICMDS, 10)dnl	extra initialization in config.statusdnl Change the diversion stream to STREAM, while stacking old values.dnl AC_DIVERT_PUSH(STREAM)define(AC_DIVERT_PUSH,[pushdef([AC_DIVERSION_CURRENT], $1)dnldivert(AC_DIVERSION_CURRENT)dnl])dnl Change the diversion stream to its previous value, unstacking it.dnl AC_DIVERT_POP()define(AC_DIVERT_POP,[popdef([AC_DIVERSION_CURRENT])dnldivert(AC_DIVERSION_CURRENT)dnl])dnl Initialize the diversion setup.define([AC_DIVERSION_CURRENT], AC_DIVERSION_NORMAL)dnl This will be popped by AC_REQUIRE in AC_INIT.pushdef([AC_DIVERSION_CURRENT], AC_DIVERSION_NOTICE)dnl The prologue for Autoconf macros.dnl AC_PRO(MACRO-NAME)define(AC_PRO,[define([AC_PROVIDE_$1], )dnlifelse(AC_DIVERSION_CURRENT, AC_DIVERSION_NORMAL,[AC_DIVERT_PUSH(builtin(eval, AC_DIVERSION_CURRENT - 1))],[pushdef([AC_DIVERSION_CURRENT], AC_DIVERSION_CURRENT)])dnl])dnl The Epilogue for Autoconf macros.dnl AC_EPI()define(AC_EPI,[AC_DIVERT_POP()dnlifelse(AC_DIVERSION_CURRENT, AC_DIVERSION_NORMAL,[undivert(AC_DIVERSION_NORMAL_4)dnlundivert(AC_DIVERSION_NORMAL_3)dnlundivert(AC_DIVERSION_NORMAL_2)dnlundivert(AC_DIVERSION_NORMAL_1)dnl])dnl])dnl Define a macro which automatically provides itself.  Add machinerydnl so the macro automatically switches expansion to the diversiondnl stack if it is not already using it.  In this case, once finished,dnl it will bring back all the code accumulated in the diversion stack.dnl This, combined with AC_REQUIRE, achieves the topological ordering ofdnl macros.  We don't use this macro to define some frequently calleddnl macros that are not involved in ordering constraints, to save m4dnl processing.dnl AC_DEFUN(NAME, EXPANSION)define([AC_DEFUN],[define($1, [AC_PRO([$1])$2[]AC_EPI()])])dnl ### Initializationdnl AC_INIT_NOTICE()AC_DEFUN(AC_INIT_NOTICE,[# Guess values for system-dependent variables and create Makefiles.# Generated automatically using autoconf version] AC_ACVERSION [# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.## This configure script is free software; the Free Software Foundation# gives unlimited permission to copy, distribute and modify it.# Defaults:ac_help=ac_default_prefix=/usr/local[#] Any additions from configure.in:])dnl AC_PREFIX_DEFAULT(PREFIX)AC_DEFUN(AC_PREFIX_DEFAULT,[AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)dnlac_default_prefix=$1AC_DIVERT_POP()])dnl AC_INIT_PARSE_ARGS()AC_DEFUN(AC_INIT_PARSE_ARGS,[# Initialize some variables set by options.# The variables have the same names as the options, with# dashes changed to underlines.build=NONEcache_file=./config.cacheexec_prefix=NONEhost=NONEno_create=nonopt=NONEno_recursion=prefix=NONEprogram_prefix=NONEprogram_suffix=NONEprogram_transform_name=s,x,x,silent=site=srcdir=target=NONEverbose=x_includes=NONEx_libraries=NONEdnl Installation directory options.dnl These are left unexpanded so users can "make install exec_prefix=/foo"dnl and all the variables that are supposed to be based on exec_prefixdnl by default will actually change.dnl Use braces instead of parens because sh, perl, etc. also accept them.bindir='${exec_prefix}/bin'sbindir='${exec_prefix}/sbin'libexecdir='${exec_prefix}/libexec'datadir='${prefix}/share'sysconfdir='${prefix}/etc'sharedstatedir='${prefix}/com'localstatedir='${prefix}/var'libdir='${exec_prefix}/lib'includedir='${prefix}/include'oldincludedir='/usr/include'infodir='${prefix}/info'mandir='${prefix}/man'# Initialize some other variables.subdirs=MFLAGS= MAKEFLAGS=SHELL=${CONFIG_SHELL-/bin/sh}# Maximum number of lines to put in a shell here document.ac_max_here_lines=12ac_prev=for ac_optiondo  # If the previous option needs an argument, assign it.  if test -n "$ac_prev"; then    eval "$ac_prev=\$ac_option"    ac_prev=    continue  fi  case "$ac_option" inchangequote(, )dnl  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;changequote([, ])dnl  *) ac_optarg= ;;  esac  # Accept the important Cygnus configure options, so we can diagnose typos.  case "$ac_option" in  -bindir | --bindir | --bindi | --bind | --bin | --bi)    ac_prev=bindir ;;  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)    bindir="$ac_optarg" ;;  -build | --build | --buil | --bui | --bu)    ac_prev=build ;;  -build=* | --build=* | --buil=* | --bui=* | --bu=*)    build="$ac_optarg" ;;  -cache-file | --cache-file | --cache-fil | --cache-fi \  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)    ac_prev=cache_file ;;  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)    cache_file="$ac_optarg" ;;  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)    ac_prev=datadir ;;  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \  | --da=*)    datadir="$ac_optarg" ;;  -disable-* | --disable-*)    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`    # Reject names that are not valid shell variable names.changequote(, )dnl    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; thenchangequote([, ])dnl      AC_MSG_ERROR($ac_feature: invalid feature name)    fi    ac_feature=`echo $ac_feature| sed 's/-/_/g'`    eval "enable_${ac_feature}=no" ;;  -enable-* | --enable-*)    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`    # Reject names that are not valid shell variable names.changequote(, )dnl    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; thenchangequote([, ])dnl      AC_MSG_ERROR($ac_feature: invalid feature name)    fi    ac_feature=`echo $ac_feature| sed 's/-/_/g'`    case "$ac_option" in      *=*) ;;      *) ac_optarg=yes ;;    esac    eval "enable_${ac_feature}='$ac_optarg'" ;;  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \  | --exec | --exe | --ex)    ac_prev=exec_prefix ;;  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \  | --exec=* | --exe=* | --ex=*)    exec_prefix="$ac_optarg" ;;  -gas | --gas | --ga | --g)    # Obsolete; use --with-gas.    with_gas=yes ;;  -help | --help | --hel | --he)    # Omit some internal or obsolete options to make the list less imposing.    # This message is too long to be a string in the A/UX 3.1 sh.    cat << EOFchangequote(, )dnlUsage: configure [options] [host]Options: [defaults in brackets after descriptions]Configuration:  --cache-file=FILE       cache test results in FILE  --help                  print this message  --no-create             do not create output files  --quiet, --silent       do not print \`checking...' messages  --version               print the version of autoconf that created configureDirectory and file names:  --prefix=PREFIX         install architecture-independent files in PREFIX                          [$ac_default_prefix]  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX                          [same as prefix]  --bindir=DIR            user executables in DIR [EPREFIX/bin]  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]  --datadir=DIR           read-only architecture-independent data in DIR                          [PREFIX/share]  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]  --sharedstatedir=DIR    modifiable architecture-independent data in DIR                          [PREFIX/com]  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]  --includedir=DIR        C header files in DIR [PREFIX/include]  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]  --infodir=DIR           info documentation in DIR [PREFIX/info]  --mandir=DIR            man documentation in DIR [PREFIX/man]  --srcdir=DIR            find the sources in DIR [configure dir or ..]  --program-prefix=PREFIX prepend PREFIX to installed program names  --program-suffix=SUFFIX append SUFFIX to installed program names  --program-transform-name=PROGRAM                          run sed PROGRAM on installed program namesEOF    cat << EOFHost type:  --build=BUILD           configure for building on BUILD [BUILD=HOST]  --host=HOST             configure for HOST [guessed]  --target=TARGET         configure for TARGET [TARGET=HOST]Features and packages:  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)  --x-includes=DIR        X include files are in DIR  --x-libraries=DIR       X library files are in DIRchangequote([, ])dnlEOF    if test -n "$ac_help"; then      echo "--enable and --with options recognized:$ac_help"    fi    exit 0 ;;  -host | --host | --hos | --ho)    ac_prev=host ;;  -host=* | --host=* | --hos=* | --ho=*)    host="$ac_optarg" ;;  -includedir | --includedir | --includedi | --included | --include \  | --includ | --inclu | --incl | --inc)    ac_prev=includedir ;;  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \  | --includ=* | --inclu=* | --incl=* | --inc=*)    includedir="$ac_optarg" ;;  -infodir | --infodir | --infodi | --infod | --info | --inf)    ac_prev=infodir ;;  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)    infodir="$ac_optarg" ;;  -libdir | --libdir | --libdi | --libd)    ac_prev=libdir ;;  -libdir=* | --libdir=* | --libdi=* | --libd=*)    libdir="$ac_optarg" ;;  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \  | --libexe | --libex | --libe)    ac_prev=libexecdir ;;  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \  | --libexe=* | --libex=* | --libe=*)    libexecdir="$ac_optarg" ;;  -localstatedir | --localstatedir | --localstatedi | --localstated \  | --localstate | --localstat | --localsta | --localst \  | --locals | --local | --loca | --loc | --lo)    ac_prev=localstatedir ;;  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \  | --localstate=* | --localstat=* | --localsta=* | --localst=* \  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)    localstatedir="$ac_optarg" ;;  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)    ac_prev=mandir ;;  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)    mandir="$ac_optarg" ;;  -nfp | --nfp | --nf)    # Obsolete; use --without-fp.    with_fp=no ;;  -no-create | --no-create | --no-creat | --no-crea | --no-cre \  | --no-cr | --no-c)    no_create=yes ;;  -no-recursion | --no-recursion | --no-recursio | --no-recursi \  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)    no_recursion=yes ;;  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \  | --oldin | --oldi | --old | --ol | --o)    ac_prev=oldincludedir ;;  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)    oldincludedir="$ac_optarg" ;;  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)    ac_prev=prefix ;;  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)    prefix="$ac_optarg" ;;

⌨️ 快捷键说明

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