📄 general.m4
字号:
AC_MSG_ERROR([invalid variable name: $ac_envvar]) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` eval "$ac_envvar='$ac_optarg'" export $ac_envvar ;; *) # FIXME: should be removed in autoconf 3.0. AC_MSG_WARN([you should use --build, --host, --target]) expr "x$ac_option" : "[.*[^-._$as_cr_alnum]]" >/dev/null && AC_MSG_WARN([invalid host type: $ac_option]) : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} ;; esacdoneif test -n "$ac_prev"; then ac_option=--`echo $ac_prev | sed 's/_/-/g'` AC_MSG_ERROR([missing argument to $ac_option])fi# Be sure to have absolute paths.for ac_var in exec_prefix prefixdo eval ac_val=$`echo $ac_var` case $ac_val in [[\\/$]]* | ?:[[\\/]]* | NONE | '' ) ;; *) AC_MSG_ERROR([expected an absolute directory name for --$ac_var: $ac_val]);; esacdone# Be sure to have absolute paths.for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ localstatedir libdir includedir oldincludedir infodir mandirdo eval ac_val=$`echo $ac_var` case $ac_val in [[\\/$]]* | ?:[[\\/]]* ) ;; *) AC_MSG_ERROR([expected an absolute directory name for --$ac_var: $ac_val]);; esacdone# There might be people who depend on the old broken behavior: `$host'# used to hold the argument of --host etc.# FIXME: To remove some day.build=$build_aliashost=$host_aliastarget=$target_alias# FIXME: To remove some day.if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe AC_MSG_WARN([If you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used.]) elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes fifiac_tool_prefix=test -n "$host_alias" && ac_tool_prefix=$host_alias-test "$silent" = yes && exec AS_MESSAGE_FD>/dev/nullm4_divert_pop([PARSE_ARGS])dnl])# _AC_INIT_PARSE_ARGS# _AC_INIT_HELP# -------------# Handle the `configure --help' message.m4_define([_AC_INIT_HELP],[m4_divert_push([HELP_BEGIN])dnl## Report the --help message.#if test "$ac_init_help" = "long"; then # 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 <<_ACEOF\`configure' configures m4_ifset([AC_PACKAGE_STRING], [AC_PACKAGE_STRING], [this package]) to adapt to many kinds of systems.Usage: $[0] [[OPTION]]... [[VAR=VALUE]]...[To assign environment variables (e.g., CC, CFLAGS...), specify them asVAR=VALUE. See below for descriptions of some of the useful variables.Defaults for the options are specified in brackets.Configuration: -h, --help display this help and exit --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit -q, --quiet, --silent do not print \`checking...' messages --cache-file=FILE cache test results in FILE [disabled] -C, --config-cache alias for \`--cache-file=config.cache' -n, --no-create do not create output files --srcdir=DIR find the sources in DIR [configure dir or \`..']_ACEOF cat <<_ACEOFInstallation directories: --prefix=PREFIX install architecture-independent files in PREFIX [$ac_default_prefix] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [PREFIX]By default, \`make install' will install all the files in\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specifyan installation prefix other than \`$ac_default_prefix' using \`--prefix',for instance \`--prefix=\$HOME'.For better control, use the options below.Fine tuning of the installation directories: --bindir=DIR user executables [EPREFIX/bin] --sbindir=DIR system admin executables [EPREFIX/sbin] --libexecdir=DIR program executables [EPREFIX/libexec] --datadir=DIR read-only architecture-independent data [PREFIX/share] --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] --infodir=DIR info documentation [PREFIX/info] --mandir=DIR man documentation [PREFIX/man]_ACEOF cat <<\_ACEOF]m4_divert_pop([HELP_BEGIN])dnldnl The order of the diversions here isdnl - HELP_BEGINdnl which may be extended by extra generic options such as with X ordnl AC_ARG_PROGRAM. Displayed only in long --help.dnldnl - HELP_CANONdnl Support for cross compilation (--build, --host and --target).dnl Display only in long --help.dnldnl - HELP_ENABLEdnl which starts with the trailer of the HELP_BEGIN, HELP_CANON section,dnl then implements the header of the non generic options.dnldnl - HELP_WITHdnldnl - HELP_VARdnldnl - HELP_VAR_ENDdnldnl - HELP_ENDdnl initialized below, in which we dump the trailer (handling of thednl recursion for instance).m4_divert_push([HELP_ENABLE])dnl_ACEOFfiif test -n "$ac_init_help"; thenm4_ifset([AC_PACKAGE_STRING],[ case $ac_init_help in short | recursive ) echo "Configuration of AC_PACKAGE_STRING:";; esac]) cat <<\_ACEOFm4_divert_pop([HELP_ENABLE])dnlm4_divert_push([HELP_END])dnlm4_ifset([AC_PACKAGE_BUGREPORT], [Report bugs to <AC_PACKAGE_BUGREPORT>.])_ACEOFfiif test "$ac_init_help" = "recursive"; then # If there are subdirs, report their specific --help. ac_popdir=`pwd` for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue test -d $ac_dir || continue _AC_SRCPATHS(["$ac_dir"]) cd $ac_dir # Check for guested configure; otherwise get Cygnus style configure. if test -f $ac_srcdir/configure.gnu; then echo $SHELL $ac_srcdir/configure.gnu --help=recursive elif test -f $ac_srcdir/configure; then echo $SHELL $ac_srcdir/configure --help=recursive elif test -f $ac_srcdir/configure.ac || test -f $ac_srcdir/configure.in; then echo $ac_configure --help else AC_MSG_WARN([no configuration information is in $ac_dir]) fi cd $ac_popdir donefitest -n "$ac_init_help" && exit 0m4_divert_pop([HELP_END])dnl])# _AC_INIT_HELP# _AC_INIT_VERSION# ----------------# Handle the `configure --version' message.m4_define([_AC_INIT_VERSION],[m4_divert_text([VERSION_BEGIN],[if $ac_init_version; then cat <<\_ACEOF])dnlm4_ifset([AC_PACKAGE_STRING], [m4_divert_text([VERSION_BEGIN], [dnlm4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])configure[]dnlm4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])generated by m4_PACKAGE_STRING])])m4_divert_text([VERSION_END],[_ACEOF exit 0fi])dnl])# _AC_INIT_VERSION# _AC_INIT_CONFIG_LOG# -------------------# Initialize the config.log file descriptor and write header to it.m4_define([_AC_INIT_CONFIG_LOG],[m4_divert_text([INIT_PREPARE],[m4_define([AS_MESSAGE_LOG_FD], 5)dnlexec AS_MESSAGE_LOG_FD>config.logcat >&AS_MESSAGE_LOG_FD <<_ACEOFThis file contains any messages produced by compilers whilerunning configure, to aid debugging if configure makes a mistake.It was created by m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])dnl$as_me[]m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]), which wasgenerated by m4_PACKAGE_STRING. Invocation command line was $ $[0] $[@]_ACEOFAS_UNAME >&AS_MESSAGE_LOG_FDcat >&AS_MESSAGE_LOG_FD <<_ACEOFm4_text_box([Core tests.])_ACEOF])])# _AC_INIT_CONFIG_LOG# _AC_INIT_PREPARE# ----------------# Called by AC_INIT to build the preamble of the `configure' scripts.# 1. Trap and clean up various tmp files.# 2. Set up the fd and output files# 3. Remember the options given to `configure' for `config.status --recheck'.# 4. Ensure a correct environment# 5. Required macros (cache, default AC_SUBST etc.)m4_define([_AC_INIT_PREPARE],[m4_divert_push([INIT_PREPARE])dnl# Keep a trace of the command line.# Strip out --no-create and --no-recursion so they do not pile up.# Strip out --silent because we don't want to record it for future runs.# Also quote any args containing shell meta-characters.# Make two passes to allow for proper duplicate-argument suppression.ac_configure_args=ac_configure_args0=ac_configure_args1=ac_sep=ac_must_keep_next=falsefor ac_pass in 1 2do for ac_arg do case $ac_arg in -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) continue ;;dnl If you change this globbing pattern, test it on an old shell --dnl it's sensitive. Putting any kind of quote in it causes syntax errors. [ *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)] ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 2) ac_configure_args1="$ac_configure_args1 '$ac_arg'"dnl If trying to remove duplicates, be sure to (i) keep the *last*dnl value (e.g. --prefix=1 --prefix=2 --prefix=1 might keep 2 only),dnl and (ii) not to strip long options (--prefix foo --prefix bar mightdnl give --prefix foo bar). if test $ac_must_keep_next = true; then ac_must_keep_next=false # Got value, back to normal. else case $ac_arg indnl Use broad patterns, as arguments that would have already made configurednl exit don't matter. *=* | --config-cache | -C | -disable-* | --disable-* \ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | -with-* | --with-* | -without-* | --without-* | --x) case "$ac_configure_args0 " in "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; esac ;; -* ) ac_must_keep_next=true ;; esac fi ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" # Get rid of the leading space. ac_sep=" " ;; esac donedoneAS_UNSET(ac_configure_args0)AS_UNSET(ac_configure_args1)# When interrupted or exit'd, cleanup temporary files, and complete# config.log. We remove comments because anyway the quotes in there# would cause problems or look ugly.# WARNING: Be sure not to use single quotes in there, as some shells,# such as our DU 5.0 friend, will then `close' the trap.trap 'exit_status=$? # Save into config.log some information that might help in debugging. { echo AS_BOX([Cache variables.]) echo m4_bpatsubsts(m4_defn([_AC_CACHE_DUMP]), [^ *\(#.*\)?], [], ['], ['"'"']) echo AS_BOX([Output variables.]) echo for ac_var in $ac_subst_vars do eval ac_val=$`echo $ac_var` echo "$ac_var='"'"'$ac_val'"'"'" done | sort echo if test -n "$ac_subst_files"; then AS_BOX([Output files.]) echo for ac_var in $ac_subst_files do eval ac_val=$`echo $ac_var` echo "$ac_var='"'"'$ac_val'"'"'" done | sort echo fi if test -s confdefs.h; then AS_BOX([confdefs.h.]) echo sed "/^$/d" confdefs.h | sort echo fi test "$ac_signal" != 0 && echo "$as_me: caught signal $ac_signal" echo "$as_me: exit $exit_status" } >&AS_MESSAGE_LOG_FD rm -f core *.core && rm -rf conftest* confdefs* conf$[$]* $ac_clean_files && exit $exit_status ' 0for ac_signal in 1 2 13 15; do trap 'ac_signal='$ac_signal'; AS_EXIT([1])' $ac_signaldoneac_signal=0# confdefs.h avoids OS command line length limits that DEFS can exceed.rm -rf conftest* confdefs.h# AIX cpp loses on an empty file, so make sure it contains at least a newline.echo >confdefs.h# Predefined preprocessor variables.AC_DEFINE_UNQUOTED([PACKAGE_NAME], ["$PACKAGE_NAME"], [Define to the full name of this package.])AC_DEFINE_UNQUOTED([PACKAGE_TARNAME], ["$PACKAGE_TARNAME"], [Define to the one symbol short name of this package.])AC_DEFINE_UNQUOTED([PACKAGE_VERSION], ["$PACKAGE_VERSION"], [Define to the version of this package.])AC_DEFINE_UNQUOTED([PACKAGE_STRING], ["$PACKAGE_STRING"], [Define to the full name and version of this package.])AC_DEFINE_UNQUOTED([PACKAGE_BUGREPORT], ["$PACKAGE_BUGREPORT"], [Define to the address where bug reports for this package should be sent.])# Let the site file select an alternate cache file if it wants to.AC_SITE_LOADAC_CACHE_LOAD_AC_ARG_VAR_VALIDATE_AC_ARG_VAR_PRECIOUS([build_alias])dnl_AC_ARG_VAR_PRECIOUS([host_alias])dnl_AC_ARG_VAR_PRECIOUS([target_alias])dnlAC_LANG_PUSH(C)dnl Substitute for predefined variables.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -