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

📄 configure.in

📁 ncurses 库 可能有用酒用 没用就算了 我觉得还可以用
💻 IN
📖 第 1 页 / 共 3 页
字号:
AC_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])AC_MSG_RESULT($with_home_terminfo)test "$with_home_terminfo" = "yes" && AC_DEFINE(USE_HOME_TERMINFO)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-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 --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# Checks for CODESET support.AM_LANGINFO_CODESET# 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 wide-character code)AC_ARG_ENABLE(widec,	[  --enable-widec          compile with 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_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)	if test "$NCURSES_MBSTATE_T" != 0; then		AC_DEFINE(NEED_MBSTATE_T_DEF)	fifiAC_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)###   use option --disable-lp64 to allow long chtypecase $cf_cv_abi_version in[[345]]*)	default_with_lp64=no	;;*)	default_with_lp64=yes	;;esacAC_MSG_CHECKING(whether to enable _LP64 definition in curses.h)AC_ARG_ENABLE(lp64,	[  --disable-lp64          allow chtype to be long (ignore _LP64)],	[with_lp64=$enableval],	[with_lp64=$default_with_lp64])AC_MSG_RESULT($with_lp64)if test "$with_lp64" = yes ; then	cf_cv_enable_lp64=1else	cf_cv_enable_lp64=0fiAC_SUBST(cf_cv_enable_lp64)CF_LARGEFILE###   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)AC_MSG_CHECKING(for alternate terminal capabilities file)AC_ARG_WITH(caps,	[  --with-caps=alt         compile with 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)###   use option --with-chtype to override chtype's typeAC_MSG_CHECKING(for type of chtype)AC_ARG_WITH(chtype,	[  --with-chtype=TYPE      override type of chtype],	[NCURSES_CHTYPE="$withval"],	[NCURSES_CHTYPE=auto])AC_MSG_RESULT($NCURSES_CHTYPE)###   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 --with-mmask-t to override mmask_t's typeAC_MSG_CHECKING(for type of mmask_t)AC_ARG_WITH(mmask-t,	[  --with-mmask-t=TYPE     override type of mmask_t],	[NCURSES_MMASK_T="$withval"],	[NCURSES_MMASK_T=auto])AC_MSG_RESULT($NCURSES_MMASK_T)###   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)###   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)###   use option --enable-ext-colors to turn on use of colors beyond 16.AC_MSG_CHECKING(if you want to use experimental extended colors)AC_ARG_ENABLE(ext-colors,	[  --enable-ext-colors     compile for experimental 256-color support],	[with_ext_colors=$enableval],	[with_ext_colors=no])AC_MSG_RESULT($with_ext_colors)NCURSES_EXT_COLORS=0if test "$with_ext_colors" = yes ; then	if test "$with_widec" != yes ; then		AC_MSG_WARN(This option applies only to wide-character library)	else		# cannot be ABI 5 since it changes sizeof(cchar_t)		CF_NCURSES_ABI_6	fi	NCURSES_EXT_COLORS=1	AC_DEFINE(NCURSES_EXT_COLORS)fiAC_SUBST(NCURSES_EXT_COLORS)###   use option --enable-ext-mouse to modify coding to support 5-button miceAC_MSG_CHECKING(if you want to use experimental extended mouse encoding)AC_ARG_ENABLE(ext-mouse,	[  --enable-ext-mouse      compile for experimental mouse-encoding],	[with_ext_mouse=$enableval],	[with_ext_mouse=no])AC_MSG_RESULT($with_ext_mouse)NCURSES_MOUSE_VERSION=1if test "$with_ext_mouse" = yes ; then	NCURSES_MOUSE_VERSION=2	CF_NCURSES_ABI_6fiAC_SUBST(NCURSES_MOUSE_VERSION)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###############################################################################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_WARNINGS	if test "$cf_with_cxx" = yes ; then		CF_GXX_WARNINGS(Wno-unused)	fifiCF_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	;;esacAC_MSG_CHECKING(whether to add trace feature to all models)AC_ARG_WITH(trace,[  --with-trace            test: add trace() function to all models of ncurses],[cf_with_trace=$withval],[cf_with_trace=$cf_all_traces])AC_MSG_RESULT($cf_with_trace)if test "$cf_with_trace" = yes ; then	LIB_TRACING=all	ADA_TRACE=TRUE	CF_ADD_CFLAGS(-DTRACE)else	LIB_TRACING=DEBUG	ADA_TRACE=FALSEfiAC_SUBST(ADA_TRACE)###	Checks for libraries.AC_CHECK_FUNC(gettimeofday,	AC_DEFINE(HAVE_GETTIMEOFDAY),[

⌨️ 快捷键说明

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