?? status.m4
字號:
[m4_if(_AC_SED_DELIM_NUM, 0,[m4_if(_AC_Var, [@END@],[dnl The whole of the last fragment would be the final deletion of `|#_!!_#|'.m4_define([_AC_SED_CMDS], m4_defn([_AC_SED_CMDS])[| sed 's/|#_!!_#|//g' ])],[ac_delim='%!_!# 'for ac_last_try in false false false false false :; do cat >conf$$subs.sed <<_ACEOF])])dnlm4_if(_AC_Var, [@END@], [m4_if(m4_eval(_AC_SED_CMD_NUM + 2 <= _AC_SED_CMD_LIMIT), 1, [m4_define([_AC_SED_FRAG], [ end]m4_defn([_AC_SED_FRAG]))])],[m4_define([_AC_SED_CMD_NUM], m4_incr(_AC_SED_CMD_NUM))dnlm4_define([_AC_SED_DELIM_NUM], m4_incr(_AC_SED_DELIM_NUM))dnl_AC_Var!$_AC_Var$ac_delim])dnlm4_if(_AC_SED_CMD_LIMIT, m4_if(_AC_Var, [@END@], m4_if(_AC_SED_CMD_NUM, 2, 2, _AC_SED_CMD_LIMIT), _AC_SED_CMD_NUM),[_ACEOFdnl Do not use grep on conf$$subs.sed, since AIX grep has a line length limit. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = _AC_SED_DELIM_NUM; then break elif $ac_last_try; then AC_MSG_ERROR([could not make $CONFIG_STATUS]) else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fidonednl Similarly, avoid grep here too.ac_eof=`sed -n '/^CEOF[[0-9]]*$/s/CEOF/0/p' conf$$subs.sed`if test -n "$ac_eof"; then ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` ac_eof=`expr $ac_eof + 1`fidnl Increment fragment number.m4_define([_AC_SED_FRAG_NUM], m4_incr(_AC_SED_FRAG_NUM))dnldnl Record that this fragment will need to be used.m4_define([_AC_SED_CMDS],m4_defn([_AC_SED_CMDS])[| sed -f "$tmp/subs-]_AC_SED_FRAG_NUM[.sed" ])dnl[cat >>$CONFIG_STATUS <<_ACEOFcat >"\$tmp/subs-]_AC_SED_FRAG_NUM[.sed" <<\CEOF$ac_eof/@[a-zA-Z_][a-zA-Z_0-9]*@/!b]m4_defn([_AC_SED_FRAG])dnl[_ACEOFsed 's/[,\\&]/\\&/g; s/@/@|#_!!_#|/gs/^/s,@/; s/!/@,|#_!!_#|/:nt ns/'"$ac_delim"'$/,g/; ts/$/\\/; pN; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n' >>$CONFIG_STATUS <conf$$subs.sedrm -f conf$$subs.sedcat >>$CONFIG_STATUS <<_ACEOF]m4_if(_AC_Var, [@END@],[m4_if(m4_eval(_AC_SED_CMD_NUM + 2 > _AC_SED_CMD_LIMIT), 1,[m4_define([_AC_SED_CMDS], m4_defn([_AC_SED_CMDS])[| sed 's/|#_!!_#|//g' ])],[[:ends/|#_!!_#|//g]])])dnlCEOF$ac_eof_ACEOFm4_define([_AC_SED_FRAG], [])m4_define([_AC_SED_DELIM_NUM], 0)m4_define([_AC_SED_CMD_NUM], 2)dnl])])dnldnlm4_popdef([_AC_SED_FRAG_NUM])dnlm4_popdef([_AC_SED_CMD_NUM])dnlm4_popdef([_AC_SED_DELIM_NUM])dnlm4_popdef([_AC_SED_FRAG])dnl# VPATH may cause trouble with some makes, so we remove $(srcdir),# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and# trailing colons and then remove the whole line if VPATH becomes empty# (actually we leave an empty line to preserve line numbers).if test "x$srcdir" = x.; then ac_vpsub=['/^[ ]*VPATH[ ]*=/{s/:*\$(srcdir):*/:/s/:*\${srcdir}:*/:/s/:*@srcdir@:*/:/s/^\([^=]*=[ ]*\):*/\1/s/:*$//s/^[^=]*=[ ]*$//}']ficat >>$CONFIG_STATUS <<\_ACEOFfi # test -n "$CONFIG_FILES"])# _AC_OUTPUT_FILES_PREPARE# _AC_OUTPUT_FILE# ---------------# Do the variable substitutions to create the Makefiles or whatever.## This macro is expanded inside a here document. If the here document is# closed, it has to be reopened with "cat >>$CONFIG_STATUS <<\_ACEOF".#m4_define([_AC_OUTPUT_FILE],[ # # CONFIG_FILE #AC_PROVIDE_IFELSE([AC_PROG_INSTALL],[ case $INSTALL in [[\\/$]]* | ?:[[\\/]]* ) ac_INSTALL=$INSTALL ;; *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; esac])dnlAC_PROVIDE_IFELSE([AC_PROG_MKDIR_P],[ ac_MKDIR_P=$MKDIR_P case $MKDIR_P in [[\\/$]]* | ?:[[\\/]]* ) ;; */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; esac])dnl_ACEOFm4_ifndef([AC_DATAROOTDIR_CHECKED],[cat >>$CONFIG_STATUS <<\_ACEOF# If the template does not know about datarootdir, expand it.# FIXME: This hack should be removed a few years after 2.60.ac_datarootdir_hack=; ac_datarootdir_seen=m4_define([_AC_datarootdir_vars], [datadir, docdir, infodir, localedir, mandir])case `sed -n '/datarootdir/ { p q}m4_foreach([_AC_Var], m4_defn([_AC_datarootdir_vars]), [/@_AC_Var@/p])' $ac_file_inputs` in*datarootdir*) ac_datarootdir_seen=yes;;*@[]m4_join([@*|*@], _AC_datarootdir_vars)@*) AC_MSG_WARN([$ac_file_inputs seems to ignore the --datarootdir setting])_ACEOFcat >>$CONFIG_STATUS <<_ACEOF ac_datarootdir_hack=' m4_foreach([_AC_Var], m4_defn([_AC_datarootdir_vars]), [s&@_AC_Var@&$_AC_Var&g ])dnl s&\\\${datarootdir}&$datarootdir&g' ;;esac_ACEOF])dnl# Neutralize VPATH when `$srcdir' = `.'.# Shell code in configure.ac might set extrasub.# FIXME: do we really want to maintain this feature?cat >>$CONFIG_STATUS <<_ACEOF sed "$ac_vpsub$extrasub_ACEOFcat >>$CONFIG_STATUS <<\_ACEOF:t[/@[a-zA-Z_][a-zA-Z_0-9]*@/!b]dnl configure_input is a somewhat special, so we don't call AC_SUBST_TRACE.s&@configure_input@&$configure_input&;t tdnl During the transition period, this is a special case:s&@top_builddir@&$ac_top_builddir_sub&;t t[]AC_SUBST_TRACE([top_builddir])m4_foreach([_AC_Var], [srcdir, abs_srcdir, top_srcdir, abs_top_srcdir, builddir, abs_builddir, abs_top_builddir]AC_PROVIDE_IFELSE([AC_PROG_INSTALL], [[, INSTALL]])AC_PROVIDE_IFELSE([AC_PROG_MKDIR_P], [[, MKDIR_P]]), [s&@_AC_Var@&$ac_[]_AC_Var&;t t[]AC_SUBST_TRACE(_AC_Var)])dnlm4_ifndef([AC_DATAROOTDIR_CHECKED], [$ac_datarootdir_hack])dnl" $ac_file_inputs m4_defn([_AC_SED_CMDS])>$tmp/outm4_ifndef([AC_DATAROOTDIR_CHECKED],[test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[[ ]]*datarootdir[[ ]]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && AC_MSG_WARN([$ac_file contains a reference to the variable `datarootdir'which seems to be undefined. Please make sure it is defined.])])dnl rm -f "$tmp/stdin" case $ac_file in -) cat "$tmp/out"; rm -f "$tmp/out";; *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; esacdnl This would break Makefile dependencies:dnl if diff $ac_file "$tmp/out" >/dev/null 2>&1; thendnl echo "$ac_file is unchanged"dnl elsednl rm -f $ac_file; mv "$tmp/out" $ac_filednl fi])# _AC_OUTPUT_FILE## ----------------------- #### Configuration headers. #### ----------------------- ### AC_CONFIG_HEADERS(HEADERS..., [COMMANDS], [INIT-CMDS])# ------------------------------------------------------# Specify that the HEADERS are to be created by instantiation of the# AC_DEFINEs.#AC_DEFUN([AC_CONFIG_HEADERS], [_AC_CONFIG_FOOS([HEADERS], $@)])# AC_CONFIG_HEADER(HEADER-TO-CREATE ...)# --------------------------------------# FIXME: Make it obsolete?AC_DEFUN([AC_CONFIG_HEADER],[AC_CONFIG_HEADERS([$1])])# _AC_OUTPUT_HEADER# -----------------## Output the code which instantiates the `config.h' files from their# `config.h.in'.## This macro is expanded inside a here document. If the here document is# closed, it has to be reopened with "cat >>$CONFIG_STATUS <<\_ACEOF".#m4_define([_AC_OUTPUT_HEADER],[ # # CONFIG_HEADER #_ACEOF# Transform confdefs.h into a sed script `conftest.defines', that# substitutes the proper values into config.h.in to produce config.h.rm -f conftest.defines conftest.tail# First, append a space to every undef/define line, to ease matching.echo 's/$/ /' >conftest.defines# Then, protect against being on the right side of a sed subst, or in# an unquoted here document, in config.status. If some macros were# called several times there might be several #defines for the same# symbol, which is useless. But do not sort them, since the last# AC_DEFINE must be honored.dnldnl Quote, for `[ ]' and `define'.[ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where# NAME is the cpp macro being defined, VALUE is the value it is being given.# PARAMS is the parameter list in the macro definition--in most cases, it's# just an empty string.ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'ac_dB='\\)[ (].*,\\1define\\2'ac_dC=' 'ac_dD=' ,']dnl ac_dD used to contain `;t' at the end, but that was both slow and incorrect.dnl 1) Since the script must be broken into chunks containing 100 commands,dnl the extra command meant extra calls to sed.dnl 2) The code was incorrect: in the unusual case where a symbol has multiplednl different AC_DEFINEs, the last one should be honored.dnldnl ac_dB works because every line has a space appended. ac_dD reinsertsdnl the space, because some symbol may have been AC_DEFINEd several times.dnldnl The first use of ac_dA has a space prepended, so that the seconddnl use does not match the initial 's' of $ac_dA.[uniq confdefs.h | sed -n ' t rset :rset s/^[ ]*#[ ]*define[ ][ ]*// t ok d :ok s/[\\&,]/\\&/g s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p ' >>conftest.defines]# Remove the space that was appended to ease matching.# Then replace #undef with comments. This is necessary, for# example, in the case of _POSIX_SOURCE, which is predefined and required# on some systems where configure will not decide to define it.# (The regexp can be short, since the line contains either #define or #undef.)echo 's/ $//[s,^[ #]*u.*,/* & */,]' >>conftest.defines# Break up conftest.defines:dnl If we cared only about not exceeding line count limits, we would use this:dnl ac_max_sed_lines=m4_eval(_AC_SED_CMD_LIMIT - 3)dnl But in practice this can generate scripts that contain too many bytes;dnl and this can cause obscure 'sed' failures, e.g.,dnl http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00127.htmldnl So instead, we use the following, which is about half the size we'd like:ac_max_sed_lines=50dnl In the future, let's use awk or sh instead of sed to do substitutions,dnl since we have so many problems with sed.# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"# et cetera.ac_in='$ac_file_inputs'ac_out='"$tmp/out1"'ac_nxt='"$tmp/out2"'while :do # Write a here document: dnl Quote, for the `[ ]' and `define'.[ cat >>$CONFIG_STATUS <<_ACEOF # First, check the format of the line: cat >"\$tmp/defines.sed" <<\\CEOF/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b defb:def_ACEOF] sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS echo 'CEOF sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail grep . conftest.tail >/dev/null || break rm -f conftest.defines mv conftest.tail conftest.definesdonerm -f conftest.defines conftest.taildnl Now back to your regularly scheduled config.status.echo "ac_result=$ac_in" >>$CONFIG_STATUScat >>$CONFIG_STATUS <<\_ACEOF if test x"$ac_file" != x-; then echo "/* $configure_input */" >"$tmp/config.h" cat "$ac_result" >>"$tmp/config.h" if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then AC_MSG_NOTICE([$ac_file is unchanged]) else rm -f $ac_file mv "$tmp/config.h" $ac_file fi else echo "/* $configure_input */" cat "$ac_result" fi rm -f "$tmp/out[12]"dnl If running for Automake, be ready to perform additionaldnl commands to set up the timestamp files.m4_ifdef([_AC_AM_CONFIG_HEADER_HOOK], [_AC_AM_CONFIG_HEADER_HOOK([$ac_file])])dnl])# _AC_OUTPUT_HEADER## --------------------- #### Configuration links. #### --------------------- ### AC_CONFIG_LINKS(DEST:SOURCE..., [COMMANDS], [INIT-CMDS])# --------------------------------------------------------# Specify that config.status should establish a (symbolic if possible)# link from TOP_SRCDIR/SOURCE to TOP_SRCDIR/DEST.# Reject DEST=., because it is makes it hard for ./config.status# to guess the links to establish (`./config.status .').#AC_DEFUN([AC_CONFIG_LINKS], [_AC_CONFIG_FOOS([LINKS], $@)])# AC_LINK_FILES(SOURCE..., DEST...)# ---------------------------------# Link each of the existing files SOURCE... to the corresponding# link name in DEST...## Unfortunately we can't provide a very good autoupdate service here,# since in `AC_LINK_FILES($from, $to)' it is possible that `$from'# and `$to' are actually lists. It would then be completely wrong to# replace it with `AC_CONFIG_LINKS($to:$from). It is possible in the# case of literal values though, but because I don't think there is any# interest in creating config links with literal values, no special
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -