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

📄 configure.in

📁 ncurses-5.4
💻 IN
📖 第 1 页 / 共 3 页
字号:
	[with_big_core=$enableval],	[AC_TRY_RUN([#include <stdlib.h>#include <string.h>int main() {	unsigned long n = 6000000L;	char *s = malloc(n);	if (s != 0)		s[0] = s[n-1] = 0;	exit(s == 0);}],	[with_big_core=yes],	[with_big_core=no],	[with_big_core=no])])AC_MSG_RESULT($with_big_core)test "$with_big_core" = "yes" && AC_DEFINE(HAVE_BIG_CORE)###	use option --enable-termcap to compile in the termcap fallback supportAC_MSG_CHECKING(if you want termcap-fallback support)AC_ARG_ENABLE(termcap,	[  --enable-termcap        compile in termcap fallback support],	[with_termcap=$enableval],	[with_termcap=no])AC_MSG_RESULT($with_termcap)if test "$with_termcap" != "yes" ; then	if test "$use_database" = no ; then		if test -z "$with_fallback" ; then			AC_ERROR(You have disabled the database w/o specifying fallbacks)		fi	fi	AC_DEFINE(PURE_TERMINFO)elseAC_DEFINE(USE_TERMCAP)AC_MSG_CHECKING(for list of termcap files)CF_WITH_PATHLIST(termpath,	[  --with-termpath=XXX     specify list of termcap files],	TERMPATH,	/etc/termcap:/usr/share/misc/termcap)AC_MSG_RESULT($TERMPATH)test -n "$TERMPATH" && AC_DEFINE_UNQUOTED(TERMPATH,"$TERMPATH")###	use option --enable-getcap to use a hacked getcap for reading termcapsAC_MSG_CHECKING(if fast termcap-loader is needed)AC_ARG_ENABLE(getcap,	[  --enable-getcap         fast termcap load, no xrefs to terminfo],	[with_getcap=$enableval],	[with_getcap=no])AC_MSG_RESULT($with_getcap)test "$with_getcap" = "yes" && AC_DEFINE(USE_GETCAP)AC_MSG_CHECKING(if translated termcaps will be cached in ~/.terminfo)AC_ARG_ENABLE(getcap-cache,	[  --enable-getcap-cache   cache translated termcaps in ~/.terminfo],	[with_getcap_cache=$enableval],	[with_getcap_cache=no])AC_MSG_RESULT($with_getcap_cache)test "$with_getcap_cache" = "yes" && AC_DEFINE(USE_GETCAP_CACHE)fi###   Use option --disable-home-terminfo to completely remove ~/.terminfoAC_MSG_CHECKING(if ~/.terminfo is wanted)AC_ARG_ENABLE(home-terminfo,	[  --disable-home-terminfo drop ~/.terminfo from terminfo search-path],	[with_home_terminfo=$enableval],	[with_home_terminfo=yes])test "$with_home_terminfo" = "yes" && AC_DEFINE(USE_HOME_TERMINFO)###   Use option --enable-symlinks to make tic use symlinks, not hard links###   to reduce storage requirements for the terminfo database.CF_LINK_FUNCSwith_links=nowith_symlinks=noif test "$ac_cv_func_link" != yes ; then    AC_MSG_CHECKING(if tic should use symbolic links)    if test "$ac_cv_func_symlink" = yes ; then    	with_symlinks=yes    else    	with_symlinks=no    fi    AC_MSG_RESULT($with_symlinks)elif test "$ac_cv_func_symlink" != yes ; then    AC_MSG_CHECKING(if tic should use hard links)    if test "$ac_cv_func_link" = yes ; then    	with_links=yes    else    	with_links=no    fi    AC_MSG_RESULT($with_links)else    AC_MSG_CHECKING(if tic should use symbolic links)    AC_ARG_ENABLE(symlinks,	[  --enable-symlinks       make tic use symbolic links not hard links],	[with_symlinks=$enableval],	[with_symlinks=no])    AC_MSG_RESULT($with_symlinks)fitest "$with_links" = yes && AC_DEFINE(USE_LINKS)test "$with_symlinks" = yes && AC_DEFINE(USE_SYMLINKS)###   use option --enable-broken-linker to force on use of broken-linker supportAC_MSG_CHECKING(if you want broken-linker support code)AC_ARG_ENABLE(broken_linker,	[  --enable-broken_linker  compile with broken-linker support code],	[with_broken_linker=$enableval],	[with_broken_linker=${BROKEN_LINKER-no}])AC_MSG_RESULT($with_broken_linker)BROKEN_LINKER=0if test "$with_broken_linker" = yes ; then	AC_DEFINE(BROKEN_LINKER)	BROKEN_LINKER=1elif test "$DFT_LWR_MODEL" = shared ; then	case $cf_cv_system_name in #(vi	cygwin*)		AC_DEFINE(BROKEN_LINKER)		BROKEN_LINKER=1		CF_VERBOSE(cygwin linker is broken anyway)		;;	esacfiAC_SUBST(BROKEN_LINKER)###   use option --with-bool to override bool's typeAC_MSG_CHECKING(for type of bool)AC_ARG_WITH(bool,	[  --with-bool=TYPE        override fallback type of bool variable],	[NCURSES_BOOL="$withval"],	[NCURSES_BOOL=auto])AC_MSG_RESULT($NCURSES_BOOL)AC_SUBST(NCURSES_BOOL)###   use option --with-ospeed to override ospeed's typeAC_MSG_CHECKING(for type of ospeed)AC_ARG_WITH(ospeed,	[  --with-ospeed=TYPE      override type of ospeed variable],	[NCURSES_OSPEED="$withval"],	[NCURSES_OSPEED=short])AC_MSG_RESULT($NCURSES_OSPEED)AC_SUBST(NCURSES_OSPEED)###   use option --enable-bsdpad to have tputs process BSD-style prefix paddingAC_MSG_CHECKING(if tputs should process BSD-style prefix padding)AC_ARG_ENABLE(bsdpad,	[  --enable-bsdpad         recognize BSD-style prefix padding],	[with_bsdpad=$enableval],	[with_bsdpad=no])AC_MSG_RESULT($with_bsdpad)test "$with_bsdpad" = yes && AC_DEFINE(BSD_TPUTS)### Enable compiling-in rcs id'sAC_MSG_CHECKING(if RCS identifiers should be compiled-in)AC_ARG_WITH(rcs-ids,	[  --with-rcs-ids          compile-in RCS identifiers],	[with_rcs_ids=$withval],	[with_rcs_ids=no])AC_MSG_RESULT($with_rcs_ids)test "$with_rcs_ids" = yes && AC_DEFINE(USE_RCS_IDS)###############################################################################CF_MAN_PAGES([ captoinfo clear infocmp infotocap tic toe tput ])###############################################################################CF_HELP_MESSAGE(Extensions:)### Note that some functions (such as const) are normally disabled anyway.AC_MSG_CHECKING(if you want to build with function extensions)AC_ARG_ENABLE(ext-funcs,	[  --disable-ext-funcs     disable function-extensions],	[with_ext_funcs=$enableval],	[with_ext_funcs=yes])AC_MSG_RESULT($with_ext_funcs)if test "$with_ext_funcs" = yes ; then	NCURSES_EXT_FUNCS=1	AC_DEFINE(HAVE_CURSES_VERSION)	AC_DEFINE(HAVE_HAS_KEY)	AC_DEFINE(HAVE_RESIZETERM)	AC_DEFINE(HAVE_RESIZE_TERM)	AC_DEFINE(HAVE_USE_DEFAULT_COLORS)	AC_DEFINE(HAVE_WRESIZE)	AC_DEFINE(NCURSES_EXT_FUNCS)else	NCURSES_EXT_FUNCS=0fiAC_SUBST(NCURSES_EXT_FUNCS)###   use option --enable-const to turn on use of const beyond that in XSI.AC_MSG_CHECKING(for extended use of const keyword)AC_ARG_ENABLE(const,	[  --enable-const          compile with extra/non-standard const],	[with_ext_const=$enableval],	[with_ext_const=no])AC_MSG_RESULT($with_ext_const)NCURSES_CONST='/*nothing*/'if test "$with_ext_const" = yes ; then	NCURSES_CONST=constfiAC_SUBST(NCURSES_CONST)AC_MSG_CHECKING(if you want \$NCURSES_NO_PADDING code)AC_ARG_ENABLE(no-padding,	[  --enable-no-padding     compile with $NCURSES_NO_PADDING code],	[with_no_padding=$enableval],	[with_no_padding=$with_ext_funcs])AC_MSG_RESULT($with_no_padding)test "$with_no_padding" = yes && AC_DEFINE(NCURSES_NO_PADDING)###   use option --enable-sigwinch to turn on use of SIGWINCH logicAC_MSG_CHECKING(if you want SIGWINCH handler)AC_ARG_ENABLE(sigwinch,	[  --enable-sigwinch       compile with SIGWINCH handler],	[with_sigwinch=$enableval],	[with_sigwinch=$with_ext_funcs])AC_MSG_RESULT($with_sigwinch)test "$with_sigwinch" = yes && AC_DEFINE(USE_SIGWINCH)###   use option --enable-tcap-names to allow user to define new capabilitiesAC_MSG_CHECKING(if you want user-definable terminal capabilities like termcap)AC_ARG_ENABLE(tcap-names,	[  --enable-tcap-names     compile with user-definable terminal capabilities],	[with_tcap_names=$enableval],	[with_tcap_names=$with_ext_funcs])AC_MSG_RESULT($with_tcap_names)NCURSES_XNAMES=0test "$with_tcap_names" = yes && NCURSES_XNAMES=1AC_SUBST(NCURSES_XNAMES)################################################################################ These options are relatively safe to experiment with.CF_HELP_MESSAGE(Development Code:)AC_MSG_CHECKING(if you want all development code)AC_ARG_WITH(develop,	[  --with-develop          enable all development options],	[with_develop=$withval],	[with_develop=no])AC_MSG_RESULT($with_develop)###   use option --enable-hard-tabs to turn on use of hard-tabs optimizeAC_MSG_CHECKING(if you want hard-tabs code)AC_ARG_ENABLE(hard-tabs,	[  --enable-hard-tabs      compile with hard-tabs code],	[with_hardtabs=$enableval],	[with_hardtabs=$with_develop])AC_MSG_RESULT($with_hardtabs)test "$with_hardtabs" = yes && AC_DEFINE(USE_HARD_TABS)AC_MSG_CHECKING(if you want to use restrict environment when running as root)AC_ARG_ENABLE(root-environ,	[  --disable-root-environ  limit environment when running as root],	[with_root_environ=$enableval],	[with_root_environ=yes])AC_MSG_RESULT($with_root_environ)test "$with_root_environ" = yes && AC_DEFINE(USE_ROOT_ENVIRON)###   use option --enable-xmc-glitch to turn on use of magic-cookie optimizeAC_MSG_CHECKING(if you want limited support for xmc)AC_ARG_ENABLE(xmc-glitch,	[  --enable-xmc-glitch     compile with limited support for xmc],	[with_xmc_glitch=$enableval],	[with_xmc_glitch=$with_develop])AC_MSG_RESULT($with_xmc_glitch)test "$with_xmc_glitch" = yes && AC_DEFINE(USE_XMC_SUPPORT)################################################################################ These are just experimental, probably should not be in a package:CF_HELP_MESSAGE(Experimental Code:)AC_MSG_CHECKING(if you do not want to assume colors are white-on-black)AC_ARG_ENABLE(assumed-color,	[  --disable-assumed-color do not assume anything about default-colors],	[with_assumed_color=$enableval],	[with_assumed_color=yes])AC_MSG_RESULT($with_assumed_color)test "$with_assumed_color" = yes && AC_DEFINE(USE_ASSUMED_COLOR)###   use option --enable-hashmap to turn on use of hashmap scrolling logicAC_MSG_CHECKING(if you want hashmap scrolling-optimization code)AC_ARG_ENABLE(hashmap,	[  --disable-hashmap       compile without hashmap scrolling-optimization],	[with_hashmap=$enableval],	[with_hashmap=yes])AC_MSG_RESULT($with_hashmap)test "$with_hashmap" = yes && AC_DEFINE(USE_HASHMAP)###   use option --enable-colorfgbg to turn on use of $COLORFGBG environmentAC_MSG_CHECKING(if you want colorfgbg code)AC_ARG_ENABLE(colorfgbg,	[  --enable-colorfgbg      compile with $COLORFGBG code],	[with_colorfgbg=$enableval],	[with_colorfgbg=no])AC_MSG_RESULT($with_colorfgbg)test "$with_colorfgbg" = yes && AC_DEFINE(USE_COLORFGBG)AC_MSG_CHECKING(if you want experimental safe-sprintf code)AC_ARG_ENABLE(safe-sprintf,	[  --enable-safe-sprintf   compile with experimental safe-sprintf code],	[with_safe_sprintf=$enableval],	[with_safe_sprintf=no])AC_MSG_RESULT($with_safe_sprintf)test "$with_safe_sprintf" = yes && AC_DEFINE(USE_SAFE_SPRINTF)###   use option --disable-scroll-hints to turn off use of scroll-hints scrolling logic# when hashmap is used scroll hints are uselessif test "$with_hashmap" = no ; thenAC_MSG_CHECKING(if you want to experiment without scrolling-hints code)AC_ARG_ENABLE(scroll-hints,	[  --disable-scroll-hints  compile without scroll-hints code],	[with_scroll_hints=$enableval],	[with_scroll_hints=yes])AC_MSG_RESULT($with_scroll_hints)test "$with_scroll_hints" = yes && AC_DEFINE(USE_SCROLL_HINTS)fi###   use option --enable-widec to turn on use of wide-character supportNCURSES_CH_T=chtypeNCURSES_LIBUTF8=0NEED_WCHAR_H=0NCURSES_MBSTATE_T=0NCURSES_WCHAR_T=0NCURSES_WINT_T=0# Check to define _XOPEN_SOURCE "automatically"CF_XOPEN_SOURCE# use these variables to work around a defect in gcc's fixincludes.NCURSES_OK_WCHAR_T=NCURSES_OK_WINT_T=AC_MSG_CHECKING(if you want experimental wide-character code)AC_ARG_ENABLE(widec,	[  --enable-widec          compile with experimental wide-char/UTF-8 code],	[with_widec=$enableval],	[with_widec=no])AC_MSG_RESULT($with_widec)if test "$with_widec" = yes ; then	LIB_SUFFIX="w${LIB_SUFFIX}"	AC_DEFINE(USE_WIDEC_SUPPORT)	CF_PREDEFINE(_XOPEN_SOURCE,500)	CF_PREDEFINE(_XOPEN_SOURCE_EXTENDED)	# with_overwrite=no	NCURSES_CH_T=cchar_t	AC_CHECK_FUNCS(putwc btowc wctob mbtowc wctomb mblen mbrlen mbrtowc)	if test "$ac_cv_func_putwc" != yes ; then		CF_LIBUTF8		if test "$cf_cv_libutf8" = yes ; then			NCURSES_LIBUTF8=1		fi	fi	CF_WCHAR_TYPE(mbstate_t, NCURSES_MBSTATE_T)	CF_WCHAR_TYPE(wchar_t,   NCURSES_WCHAR_T,   NCURSES_OK_WCHAR_T)	CF_WCHAR_TYPE(wint_t,    NCURSES_WINT_T,    NCURSES_OK_WINT_T)fiAC_SUBST(NCURSES_CH_T)AC_SUBST(NCURSES_LIBUTF8)AC_SUBST(NEED_WCHAR_H)AC_SUBST(NCURSES_MBSTATE_T)AC_SUBST(NCURSES_WCHAR_T)AC_SUBST(NCURSES_WINT_T)AC_SUBST(NCURSES_OK_WCHAR_T)AC_SUBST(NCURSES_OK_WINT_T)AC_MSG_CHECKING(for terminal capabilities file)AC_ARG_WITH(caps,	[  --with-caps=alt         compile with experimental alternate Caps file],	[TERMINFO_CAPS=Caps.$withval],	[TERMINFO_CAPS=Caps])test -f ${srcdir}/include/${TERMINFO_CAPS} || TERMINFO_CAPS=CapsAC_MSG_RESULT($TERMINFO_CAPS)AC_SUBST(TERMINFO_CAPS)###############################################################################CF_HELP_MESSAGE(Testing/development Options:)###	use option --disable-echo to suppress full display compiling commandsAC_MSG_CHECKING(if you want to display full commands during build)AC_ARG_ENABLE(echo,	[  --enable-echo           build: display "compiling" commands (default)],	[with_echo=$enableval],	[with_echo=yes])if test "$with_echo" = yes; then	ECHO_LINK=else	ECHO_LINK='@ echo linking $@ ... ;'	test -n "$LIBTOOL" && LIBTOOL="$LIBTOOL --silent"fiAC_MSG_RESULT($with_echo)AC_SUBST(ECHO_LINK)###	use option --enable-warnings to turn on all gcc warningsAC_MSG_CHECKING(if you want to see compiler warnings)AC_ARG_ENABLE(warnings,	[  --enable-warnings       build: turn on GCC compiler warnings],	[with_warnings=$enableval])AC_MSG_RESULT($with_warnings)if test -n "$with_warnings"; then 	ADAFLAGS="$ADAFLAGS -gnatg"	CF_GCC_WARNINGSfiCF_GCC_ATTRIBUTES###	use option --enable-assertions to turn on generation of assertion codeAC_MSG_CHECKING(if you want to enable runtime assertions)AC_ARG_ENABLE(assertions,	[  --enable-assertions     test: turn on generation of assertion code],	[with_assertions=$enableval],	[with_assertions=no])AC_MSG_RESULT($with_assertions)if test -n "$GCC"then	if test "$with_assertions" = no	then		AC_DEFINE(NDEBUG)		CPPFLAGS="$CPPFLAGS -DNDEBUG"	else		ADAFLAGS="$ADAFLAGS -gnata"	fifi###	use option --disable-leaks to suppress "permanent" leaks, for testingAC_ARG_ENABLE(leaks,	[  --disable-leaks         test: suppress permanent memory-leaks],	[test "$enableval" = no && AC_DEFINE(NO_LEAKS)])AC_DEFINE(HAVE_NC_ALLOC_H)###	use option --enable-expanded to generate certain macros as functionsAC_ARG_ENABLE(expanded,	[  --enable-expanded       test: generate functions for certain macros],	[test "$enableval" = yes && AC_DEFINE(NCURSES_EXPANDED)])###	use option --disable-macros to suppress macros in favor of functionsAC_ARG_ENABLE(macros,	[  --disable-macros        test: use functions rather than macros],	[test "$enableval" = no && AC_DEFINE(NCURSES_NOMACROS)])# Normally we only add trace() to the debug-library.  Allow this to be# extended to all models of the ncurses library:cf_all_traces=nocase "$CFLAGS $CPPFLAGS" in*-DTRACE*)	cf_all_traces=yes	;;esac

⌨️ 快捷键说明

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