Lines Matching +full:charge +full:- +full:integration

2 dnl Copyright 2018-2023,2024 Thomas E. Dickey                                *
3 dnl Copyright 1998-2017,2018 Free Software Foundation, Inc. *
5 dnl Permission is hereby granted, free of charge, to any person obtaining a *
30 dnl Author: Thomas E. Dickey 1995-on
36 dnl https://invisible-island.net/autoconf/
37 dnl https://invisible-island.net/autoconf/my-autoconf.html
39 dnl ---------------------------------------------------------------------------
56 ### Save the given $CFLAGS to allow user-override.
59 ### Default install-location
69 [ --without-ada suppress check for Ada compiler, don't build demo],
91 [ --without-cxx do not adjust ncurses bool to match C++],
111 # cross-compiling (20140913 -TD)
116 CPPFLAGS="$CPPFLAGS -I${cf_includedir}"
131 AC_MSG_WARN([Ignore $CXX, since it cannot compile hello-world.])
151 ([[1-9]][[0-9]].*)
153 (1.*|2.[[0-6]]*)
159 AC_ARG_WITH(cxx-binding,
160 [ --without-cxx-binding do not build C++ binding and demo],
169 AC_ARG_ENABLE(db-install,
170 [ --disable-db-install suppress install of terminal database],
177 [ --without-manpages suppress install of manpages],
184 [ --without-progs suppress build/install with programs (e.g., tic)],
189 AC_MSG_CHECKING(if you want to build test-programs)
191 [ --without-tests suppress build/install with test-programs],
197 AC_ARG_WITH(curses-h,
198 [ --without-curses-h install curses.h as ncurses.h only],
216 # Provide for renaming "ncurses5-config" to "ncurses5X-config", etc., in case
219 AC_ARG_WITH(config-suffix,
220 [ --with-config-suffix=X name ncurses*X-config file with X],
223 AC_MSG_WARN(expected a value for config-suffix option)
230 # If we find pkg-config, check if we should install the ".pc" files.
234 if test -z "$MAKE_PC_FILES"
236 AC_MSG_CHECKING(for suffix to add to pkg-config files)
237 AC_ARG_WITH(pc-suffix,
238 [[ --with-pc-suffix[=XXX] suffix pkg-config files with XXX]],
246 test -z "$PC_MODULE_SUFFIX" && PC_MODULE_SUFFIX=none
252 AC_MSG_CHECKING(if we should assume mixed-case filenames)
253 AC_ARG_ENABLE(mixed-case,
254 [ --enable-mixed-case tic should assume mixed-case filenames],
263 AC_DEFINE(MIXEDCASE_FILENAMES,1,[Define to 1 if tic should assume mixed-case filenames])
267 # do this after mixed-case option (tags/TAGS is not as important as tic).
273 dnl These are standard among *NIX systems, but not when cross-compiling
280 dnl Special option for use by system-builders: the install-prefix is used to
284 AC_ARG_WITH(install-prefix,
285 [ --with-install-prefix=DESTDIR use DESTDIR as installation directory prefix],
292 AC_MSG_RESULT([${DESTDIR:-(none)}])
296 CF_HELP_MESSAGE(Build-Tools Needed to Compile Temporary Applications for Cross-compiling:)
297 # If we're cross-compiling, allow the user to override the tools and their
302 (*-msvc*)
314 ### Use "--without-normal --with-shared" to allow the default model to be
328 [ --with-shared generate shared-libraries],
336 [ --with-normal generate normal-libraries (default)],
344 [ --with-debug generate debug-libraries (default)],
352 [ --with-profile generate profile-libraries],
363 AC_ARG_WITH(cxx-shared,
364 [ --with-cxx-shared generate C++ shared-libraries],
374 test -z "$cf_list_models" && cf_list_models=normal
381 ### up test-applications.
417 [ --with-termlib generate separate terminfo library],
424 [ --with-ticlib generate separate tic library],
429 dnl Not all ports of gcc support the -g option
432 CC_G_OPT='-g'
433 test -n "$GCC" && test "x${ac_cv_prog_cc_g}" != xyes && CC_G_OPT=''
438 CXX_G_OPT='-g'
439 test -n "$GXX" && test "x${ac_cv_prog_cxx_g}" != xyes && CXX_G_OPT=''
448 (profile) LD_MODEL='-pg';;
451 AC_SUBST(LD_MODEL)dnl the type of link (e.g., -g or -pg)
452 AC_MSG_RESULT([${LD_MODEL:-(none)}])
459 [ --disable-relink relink shared libraries during install],
466 # we will build libraries one-level down.
489 CF_VERBOSE(try to work around by appending shared-options)
497 ### Checks for special libraries, must be done up-front.
503 [ --without-dlsym do not use dlsym() to load GPM dynamically],
516 SHLIB_LIST="-ldl $SHLIB_LIST"
519 SHLIB_LIST="-lgpm $SHLIB_LIST"
532 CF_ARG_DISABLE(lib-suffixes,
533 [ --disable-lib-suffixes disable library suffixes],
539 ### If we're building with rpath, try to link non-standard libs that way too.
548 if test -n "$EXTRA_PKG_LDFLAGS"
550 AC_MSG_CHECKING(if you want to disable extra LDFLAGS for package-scripts)
551 CF_ARG_DISABLE(pkg-ldflags,
552 [ --disable-pkg-ldflags disable extra LDFLAGS for package-scripts],
562 CF_HELP_MESSAGE(Fine-Tuning Your Configuration:)
564 ### use option --with-extra-suffix to append suffix to headers and libraries
567 AC_ARG_WITH(extra-suffix,
568 [[ --with-extra-suffix[=X] append extra suffix X to header/library paths]],
580 AC_MSG_RESULT([${EXTRA_SUFFIX:-(none)}])
583 ### use option --disable-overwrite to leave out the link to -lcurses
586 [ --disable-overwrite put headers in subdir, omit link to -lcurses],
591 AC_MSG_CHECKING(if external terminfo-database is used)
593 [ --disable-database do not use terminfo, only fallbacks/termcap],
612 AC_MSG_CHECKING(which terminfo source-file will be installed)
614 [ --with-database=XXX specify terminfo source to install],
619 AC_ARG_WITH(hashed-db,
620 [ --with-hashed-db specify hashed-database library],,
630 [ --with-fallbacks=XXX specify list of fallback terminal descriptions],
633 AC_MSG_RESULT([${with_fallback:-(none)}])
643 FALLBACK_LIST=`echo "$with_fallback" | sed -e 's/,/ /g'`
650 # databases. Use configure-options to point to the tools which will be used,
654 if test -n "$FALLBACK_LIST"
658 test -z "$TIC" && FALLBACK_LIST=
659 test -z "$INFOCMP" && FALLBACK_LIST=
660 if test -z "$FALLBACK_LIST"
669 test -z "$FALLBACK_LIST" && USE_FALLBACKS="#"
674 AC_ARG_WITH(xterm-new,
675 [ --without-xterm-new specify if xterm terminfo should be old version],
679 (no) with_xterm_new=xterm-old;;
680 (*) with_xterm_new=xterm-new;;
687 (*linux-gnu|*cygwin|*mingw32|*msys)
696 AC_ARG_WITH(xterm-kbs,
697 [[ --with-xterm-kbs[=XXX] specify if xterm backspace sends BS or DEL]],
720 AC_MSG_WARN([expected --with-xterm-kbs=$want_xterm_kbs for $host_os, have $with_xterm_kbs])
730 CF_WITH_PATHLIST(terminfo-dirs,
731 [ --with-terminfo-dirs=XXX specify list of terminfo directories],
736 test -n "$TERMINFO_DIRS" && AC_DEFINE_UNQUOTED(TERMINFO_DIRS,"$TERMINFO_DIRS",[Define as needed to …
740 AC_MSG_WARN(ignoring non-directory/file TERMINFO value)
746 CF_WITH_PATH(default-terminfo-dir,
747 [ --with-default-terminfo-dir=DIR default terminfo directory],
759 ### use option --disable-big-core to make tic run on small machines
761 AC_MSG_CHECKING(if big-core option selected)
762 AC_ARG_ENABLE(big-core,
763 [ --disable-big-core assume machine has little memory],
772 s[0] = s[n-1] = 0;
773 ${cf_cv_main_return:-return}(s == 0);
781 ### ISO C only guarantees 512-char strings, we have tables which load faster
784 AC_MSG_CHECKING(if big-strings option selected)
785 AC_ARG_ENABLE(big-strings,
786 [ --disable-big-strings assume compiler has only standard-size strings],
795 ### use option --enable-termcap to compile in the termcap fallback support
796 AC_MSG_CHECKING(if you want termcap-fallback support)
798 [ --enable-termcap compile in termcap fallback support],
806 if test -z "$with_fallback" ; then
814 AC_ERROR(Options --with-ticlib and --enable-termcap cannot be combined)
820 [ --with-termpath=XXX specify list of termcap files],
824 …test -n "$TERMPATH" && AC_DEFINE_UNQUOTED(TERMPATH,"$TERMPATH",[Define to set the termcap searchli…
826 ### use option --enable-getcap to use a hacked getcap for reading termcaps
827 AC_MSG_CHECKING(if fast termcap-loader is needed)
829 [ --enable-getcap fast termcap load, no xrefs to terminfo],
833 test "x$with_getcap" = "xyes" && AC_DEFINE(USE_GETCAP,1,[Define to 1 to use fast termcap-loader])
836 AC_ARG_ENABLE(getcap-cache,
837 [ --enable-getcap-cache cache translated termcaps in ~/.terminfo],
846 ### Use option --disable-home-terminfo to completely remove ~/.terminfo
848 AC_ARG_ENABLE(home-terminfo,
849 [ --disable-home-terminfo drop ~/.terminfo from terminfo search-path],
856 AC_ARG_ENABLE(root-environ,
857 [ --disable-root-environ restrict root use of ncurses environment variables],
864 AC_ARG_ENABLE(root-access,
865 [ --disable-root-access restrict file-access when running setuid],
869 …t_access" = xyes && AC_DEFINE(USE_ROOT_ACCESS,1,[Define to 1 if setuid is allowed all file-access])
872 AC_ARG_ENABLE(setuid-environ,
873 [ --disable-setuid-environ restrict setuid use of ncurses environment variables],
879 ### Use option --enable-symlinks to make tic use symlinks, not hard links
891 [ --enable-symlinks make tic use symbolic links not hard links],
898 # no reason to make this choice optional - use the hard links.
912 ### use option --enable-broken-linker to force on use of broken-linker support
915 ### use option --enable-bsdpad to have tputs process BSD-style prefix padding
916 AC_MSG_CHECKING(if tputs should process BSD-style prefix padding)
918 [ --enable-bsdpad recognize BSD-style prefix padding],
922 test "x$with_bsdpad" = xyes && AC_DEFINE(BSD_TPUTS,1,[Define to 1 to recognize BSD-style prefix pad…
924 ### use option --enable-widec to turn on use of wide-character support
948 AC_MSG_CHECKING(if you want wide-character code)
950 [ --disable-widec compile without wide character and UTF-8 support],
962 AC_DEFINE(USE_WIDEC_SUPPORT,1,[Define to 1 to compile with wide character and UTF-8 support])
963 AC_DEFINE(NCURSES_WIDECHAR,1,[Define to 1 to compile with wide character and UTF-8 support])
969 # CPPFLAGS="$CPPFLAGS -DNCURSES_WIDECHAR"
970 CPPFLAGS_after_XOPEN="$CPPFLAGS_after_XOPEN -DNCURSES_WIDECHAR"
1006 ### use option --disable-lp64 to allow long chtype
1009 [ --disable-lp64 allow chtype to be long (ignore _LP64)],
1023 ### use option --disable-tparm-varargs to make tparm() conform to X/Open
1024 AC_MSG_CHECKING(if you want tparm not to use X/Open fixed-parameter list)
1025 AC_ARG_ENABLE(tparm-varargs,
1026 [ --disable-tparm-varargs compile tparm() without varargs interface],
1034 ### use option --disable-tic-depends to make libtic not explicitly depend on ncurses/ncursesw
1037 AC_ARG_ENABLE(tic-depends,
1038 [ --disable-tic-depends link tic library without explicit dependency on ncurses library],
1046 ### use option --enable-wattr-macros to enable wattr* macros in curses.h
1048 AC_ARG_ENABLE(wattr-macros,
1049 [ --enable-wattr-macros enable wattr* macros],
1063 ### use option --with-bool to override bool's type
1065 [ --with-bool=TYPE fall back to TYPE for curses 'bool' typedef],
1071 [ --with-caps=alt compile with alternate Caps file],
1074 if test ! -f "${srcdir}/include/${TERMINFO_CAPS}"
1082 ### use option --with-chtype to override chtype's type
1084 [ --with-chtype=TYPE override type of chtype],
1088 ### use option --with-ospeed to override ospeed's type
1090 [ --with-ospeed=TYPE override type of ospeed variable],
1094 ### use option --with-mmask-t to override mmask_t's type
1095 CF_WITH_TYPE(mmask-t,
1096 [ --with-mmask-t=TYPE override type of mmask_t],
1100 ### use option --with-ccharw-max to override CCHARW_MAX size
1102 AC_ARG_WITH(ccharw-max,
1103 [ --with-ccharw-max=XXX override size CCHARW_MAX],
1116 AC_ARG_ENABLE(signed-char,
1117 [ --enable-signed-char use signed chars for Boolean array in term.h],
1124 ### use option --with-tparm-arg to override tparm's argument type
1125 CF_WITH_TYPE(tparm-arg,
1126 [ --with-tparm-arg=TYPE override parameter type of tparm],
1130 ### Enable compiling-in rcs id's
1131 AC_MSG_CHECKING(if RCS identifiers should be compiled-in)
1132 AC_ARG_WITH(rcs-ids,
1133 [ --with-rcs-ids compile-in RCS identifiers],
1137 test "x$with_rcs_ids" = xyes && AC_DEFINE(USE_RCS_IDS,1,[Define to 1 to compile-in RCS identifiers])
1147 AC_ARG_ENABLE(ext-funcs,
1148 [ --disable-ext-funcs disable function-extensions],
1155 …_ASSUME_DEFAULT_COLORS,1,[Define to 1 to enable assume_default_colors() function in test-programs])
1156 AC_DEFINE(HAVE_CURSES_VERSION,1,[Define to 1 to enable curses_version() function in test-programs])
1157 AC_DEFINE(HAVE_HAS_KEY,1,[Define to 1 to enable has_key() function in test-programs])
1158 AC_DEFINE(HAVE_RESIZETERM,1,[Define to 1 to enable resizeterm() function in test-programs])
1159 AC_DEFINE(HAVE_RESIZE_TERM,1,[Define to 1 to enable resize_term() function in test-programs])
1160 AC_DEFINE(HAVE_TERM_ENTRY_H,1,[Define to 1 to enable term_entry() function in test-programs])
1161 …AC_DEFINE(HAVE_USE_DEFAULT_COLORS,1,[Define to 1 to enable use_default_colors() function in test-p…
1162 AC_DEFINE(HAVE_USE_SCREEN,1,[Define to 1 to enable use_screen() function in test-programs])
1163 AC_DEFINE(HAVE_USE_WINDOW,1,[Define to 1 to enable use_window() function in test-programs])
1164 AC_DEFINE(HAVE_WRESIZE,1,[Define to 1 to enable wresize() function in test-programs])
1175 AC_ARG_ENABLE(sp-funcs,
1176 [ --enable-sp-funcs enable SCREEN-extensions],
1182 AC_DEFINE(NCURSES_SP_FUNCS,1,[Define to 1 to enable SCREEN-extensions])
1183 AC_DEFINE(HAVE_TPUTS_SP,1,[Define to 1 to enable tputs_sp() function in test-programs])
1192 AC_MSG_CHECKING(if you want to build with terminal-driver)
1193 AC_ARG_ENABLE(term-driver,
1194 [ --enable-term-driver enable terminal-driver],
1199 AC_DEFINE(USE_TERM_DRIVER,1,[Define to 1 to enable terminal-driver])
1201 AC_MSG_ERROR(The term-driver option conflicts with the termlib option)
1204 AC_MSG_ERROR(The term-driver option relies upon sp-funcs)
1208 ### use option --enable-const to turn on use of const beyond that in XSI.
1211 [ --enable-const compile with extra/non-standard const],
1221 ### use option --enable-ext-colors to turn on use of colors beyond 16.
1223 AC_ARG_ENABLE(ext-colors,
1224 [ --enable-ext-colors compile for 256-color support],
1231 AC_MSG_WARN(This option applies only to wide-character library)
1236 AC_DEFINE(NCURSES_EXT_COLORS,1,[Define to 1 to compile for 256-color support])
1238 …HAVE_INIT_EXTENDED_COLOR,1,[Define to 1 to enable init_extended_color() function in test-programs])
1239 …AC_DEFINE(HAVE_RESET_COLOR_PAIRS,1,[Define to 1 to enable reset_color_pairs() function in test-pro…
1244 ### use option --enable-ext-mouse to modify coding to support 5-button mice
1246 AC_ARG_ENABLE(ext-mouse,
1247 [ --enable-ext-mouse compile for extended mouse-encoding],
1255 if test $cf_cv_abi_default -le 5 ; then
1257 elif test $cf_cv_abi_default -le 6 ; then
1265 ### use option --enable-ext-putwin to turn on extended screendumps
1267 AC_ARG_ENABLE(ext-putwin,
1268 [ --enable-ext-putwin compile with extended putwin/screendump],
1277 AC_ARG_ENABLE(no-padding,
1278 [ --enable-no-padding compile with $NCURSES_NO_PADDING code],
1284 ### use option --enable-sigwinch to turn on use of SIGWINCH logic
1287 [ --enable-sigwinch compile with SIGWINCH handler],
1300 ### use option --enable-tcap-names to allow user to define new capabilities
1301 AC_MSG_CHECKING(if you want user-definable terminal capabilities like termcap)
1302 AC_ARG_ENABLE(tcap-names,
1303 [ --enable-tcap-names compile with user-definable terminal capabilities],
1310 AC_DEFINE(NCURSES_XNAMES,1,[Define to 1 to compile with user-definable terminal capabilities])
1321 AC_ARG_ENABLE(pthreads-eintr,
1322 [ --enable-pthreads-eintr enable EINTR in wgetch with pthreads],
1330 AC_MSG_CHECKING(if you want to use weak-symbols for pthreads)
1331 AC_ARG_ENABLE(weak-symbols,
1332 [ --enable-weak-symbols enable weak-symbols for pthreads],
1343 AC_DEFINE(USE_WEAK_SYMBOLS,1,[Define to 1 to enable weak-symbols for pthreads])
1352 PTHREAD=-lpthread
1359 # opaque outside of that, so there is no --enable-opaque option. We can use
1360 # this option without --with-pthreads, but this will be always set for
1364 [ --enable-reentrant compile with reentrant code],
1409 CF_ARG_DISABLE(opaque-curses,
1410 [ --disable-opaque-curses do not make WINDOW, etc., structures opaque],
1422 CF_ARG_DISABLE(opaque-form,
1423 [ --disable-opaque-form do not make form library structures opaque],
1428 CF_ARG_DISABLE(opaque-menu,
1429 [ --disable-opaque-menu do not make menu library structures opaque],
1434 CF_ARG_DISABLE(opaque-panel,
1435 [ --disable-opaque-panel do not make panel library structures opaque],
1449 ### Allow using a different wrap-prefix
1452 AC_ARG_WITH(wrap-prefix,
1453 [ --with-wrap-prefix=XXX override prefix used for public variables],
1468 [ --without-develop disable development options],
1473 ### use option --enable-check-size to detect screensize with CPR
1475 AC_ARG_ENABLE(check-size,
1476 [ --enable-check-size compile-in code to detect screensize of serial terminals],,
1479 test "x$enable_check_size" = xyes && AC_DEFINE(USE_CHECK_SIZE,1,[Define to 1 to compile-in code to …
1481 ### use option --enable-hard-tabs to turn on use of hard-tabs optimize
1482 AC_MSG_CHECKING(if you want hard-tabs code)
1483 AC_ARG_ENABLE(hard-tabs,
1484 [ --enable-hard-tabs compile with hard-tabs code],,
1487 test "x$enable_hard_tabs" = xyes && AC_DEFINE(USE_HARD_TABS,1,[Define to 1 to compile with hard-tab…
1489 ### use option --enable-xmc-glitch to turn on use of magic-cookie optimize
1491 AC_ARG_ENABLE(xmc-glitch,
1492 [ --enable-xmc-glitch compile with support for xmc (magic-cookie)],,
1495 …= xyes && AC_DEFINE(USE_XMC_SUPPORT,1,[Define to 1 to compile with support for xmc (magic-cookie)])
1501 AC_MSG_CHECKING(if you do not want to assume colors are white-on-black)
1502 AC_ARG_ENABLE(assumed-color,
1503 [ --disable-assumed-color do not assume anything about default-colors],
1507 …color" = xyes && AC_DEFINE(USE_ASSUMED_COLOR,1,[Define to 1 to assume things about default-colors])
1509 ### use option --enable-hashmap to turn on use of hashmap scrolling logic
1510 AC_MSG_CHECKING(if you want hashmap scrolling-optimization code)
1512 [ --disable-hashmap compile without hashmap scrolling-optimization],
1516 …ap" = xyes && AC_DEFINE(USE_HASHMAP,1,[Define to 1 to compile with hashmap scrolling-optimization])
1518 ### use option --enable-colorfgbg to turn on use of $COLORFGBG environment
1521 [ --enable-colorfgbg compile-in experimental $COLORFGBG code],
1525 test "x$with_colorfgbg" = xyes && AC_DEFINE(USE_COLORFGBG,1,[Define to 1 to compile-in experimental…
1527 ### use option --enable-fvisibility to turn on use of gcc-specific feature
1528 AC_MSG_CHECKING(if you want to use gcc -fvisibility option)
1530 [ --enable-fvisibility compile with -fvisibility=hidden],
1541 CF_ADD_CFLAGS([-fvisibility=hidden])
1544 if test -n "$CXX"
1550 CF_ADD_CXXFLAGS([-fvisibility=hidden])
1559 ### use option --enable-interop to turn on use of bindings used for interop
1562 [ --enable-interop compile-in interop bindings],
1572 AC_MSG_CHECKING(if you want experimental safe-sprintf code)
1573 AC_ARG_ENABLE(safe-sprintf,
1574 [ --enable-safe-sprintf compile with experimental safe-sprintf code],
1579 ### use option --disable-scroll-hints to turn off use of scroll-hints scrolling logic
1582 AC_MSG_CHECKING(if you want to experiment without scrolling-hints code)
1583 AC_ARG_ENABLE(scroll-hints,
1584 [ --disable-scroll-hints compile without scroll-hints code],
1588 …l_hints" = xyes && AC_DEFINE(USE_SCROLL_HINTS,1,[Define to 1 to compile without scroll-hints code])
1591 AC_MSG_CHECKING(if you want wgetch-events code)
1592 AC_ARG_ENABLE(wgetch-events,
1593 [ --enable-wgetch-events compile with wgetch-events code],
1598 AC_DEFINE(NCURSES_WGETCH_EVENTS,1,[Define to 1 to compile with wgetch-events code])
1606 (*mingw32*|*mingw64*|*-msvc*)
1607 AC_MSG_CHECKING(if you want experimental-Windows driver)
1608 AC_ARG_ENABLE(exp-win32,
1609 [ --enable-exp-win32 compile with experimental-Windows driver],
1634 ### use option --disable-echo to suppress full display compiling commands
1640 test -n "$LIBTOOL" && LIBTOOL="$LIBTOOL --silent"
1641 test -n "$LIBTOOL_CXX" && LIBTOOL_CXX="$LIBTOOL_CXX --silent"
1645 # --disable-stripping is used for debugging
1649 # avoid modifying the build-tree. For the same reason, avoid doing ranlib if
1650 # the install program has "-p" (for preserving timestamps).
1657 INSTALL_OPT_P="-p"
1663 ### use option --enable-warnings to turn on all gcc warnings
1664 CF_ENABLE_WARNINGS(Wno-unknown-pragmas Wswitch-enum,yes)
1667 CF_ADD_ADAFLAGS(-gnatwa -gnatyg)
1669 CF_GXX_WARNINGS(Wno-unused)
1674 ### use option --enable-assertions to turn on generation of assertion code
1677 [ --enable-assertions test: turn on generation of assertion code],
1681 if test -n "$GCC"
1685 CPPFLAGS="$CPPFLAGS -DNDEBUG"
1687 CF_ADD_ADAFLAGS(-gnata)
1691 ### use option --disable-leaks to suppress "permanent" leaks, for testing
1695 ### use option --enable-expanded to generate certain macros as functions
1697 [ --enable-expanded test: generate functions for certain macros],
1700 ### use option --disable-macros to suppress macros in favor of functions
1702 [ --disable-macros test: use functions rather than macros],
1705 # Normally we only add trace() to the debug-library. Allow this to be
1709 (*-DTRACE*)
1716 [ --with-trace test: add trace() function to all models of ncurses],
1724 CF_ADD_CFLAGS(-DTRACE)
1740 CPPFLAGS="$CPPFLAGS -DWINVER=0x0600 -DWIN32_LEAN_AND_MEAN"
1742 CPPFLAGS="$CPPFLAGS -DWINVER=0x0501 -DWIN32_LEAN_AND_MEAN"
1816 ### Checks for external-data
1862 AC_MSG_WARN(will use vsnprintf instead of safe-sprintf option)
1864 AC_DEFINE(USE_SAFE_SPRINTF,1,[Define to 1 to compile with experimental safe-sprintf code])
1916 dnl We'll do our own -g libraries, unless the user's overridden via $CFLAGS
1917 if test -z "$cf_user_CFLAGS" && test "$enable_leaks" = yes ; then
1926 if test -n "$CXX" ; then
1932 (1.*|2.[[0-6]]*|[[1-9]][[0-9]].*)
1935 (*-2.7*|2.7*)
1986 # specify the type of bool in a configure-script option and postpone
1987 # integration with the C++ compiler provided that the types are compatible.
2005 dnl If the Ada95 source-tree is present, add that to the build unless it will
2007 if test -f "${srcdir}/Ada95/Makefile.in" ; then
2011 dnl libtool -TD 20070714
2014 AC_MSG_WARN(libtool does not support Ada - disabling feature)
2024 CF_ADD_ADAFLAGS(-gnatpn)
2050 # do this "late" to avoid conflict with header-checks
2053 # cross-compiling to mingw can run into the problem that attempting to
2055 # a number. "recent" autoconf does not address this problem either -TD
2056 if test -z "$ac_cv_sizeof_wchar_t"
2065 ### Construct the ncurses library-subsets, if any, from this set of keywords:
2098 # Most term-driver calls are to tinfo, but some like init_pair are to the
2109 CPPFLAGS="$CPPFLAGS -DUSE_WIN32CON_DRIVER"
2130 ### Construct the list of include-directories to be generated
2137 AC_SUBST(DFT_ARG_SUFFIX)dnl the string to append to "-lncurses" ("")
2140 AC_MSG_CHECKING(default library-dependency suffix)
2142 AC_SUBST(DFT_DEP_SUFFIX)dnl the corresponding library-suffix (".a")
2147 AC_SUBST(DFT_OBJ_SUBDIR)dnl the default object-directory ("obj")
2151 AC_MSG_CHECKING(c++ library-dependency suffix)
2166 # do not want -ldl in build except as needed for -lncurses dependency
2173 ### Set up low-level terminfo dependencies for makefiles.
2185 if test -n "$EXTRA_SUFFIX" && test "x$EXTRA_SUFFIX" != "x${cf_cv_abi_version}"
2197 TICS_SUFFIX="`echo "${DFT_LIB_SUFFIX}" |sed -e "s/^${USE_LIB_SUFFIX}//"`"
2198 TICS_ARG_SUFFIX="${with_ticlib}`echo "${USE_ARG_SUFFIX}" |sed -e "s/^${LIB_SUFFIX}//"`"
2199 TICS_DEP_SUFFIX="${with_ticlib}`echo "${DFT_DEP_SUFFIX}" |sed -e "s/^${LIB_SUFFIX}//"`"
2207 TICS_LDFLAGS="-L${LIB_DIR}"
2208 TICS_LIBS="-l${TICS_ARG_SUFFIX}"
2211 TICS_LDFLAGS="-L${LIB_DIR}"
2212 TICS_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX}"
2224 TINFO_SUFFIX="`echo "${DFT_LIB_SUFFIX}" |sed -e "s/^${USE_LIB_SUFFIX}//"`"
2225 TINFO_ARG_SUFFIX="${with_termlib}`echo "${USE_ARG_SUFFIX}" |sed -e "s/^${LIB_SUFFIX}//"`"
2226 TINFO_DEP_SUFFIX="${with_termlib}`echo "${DFT_DEP_SUFFIX}" |sed -e "s/^${LIB_SUFFIX}//"`"
2240 TINFO_LDFLAGS="-L${LIB_DIR}"
2245 TEST_ARGS="-l${TINFO_ARG_SUFFIX}"
2246 TEST_ARG2="-l${TINFO_ARG_SUFFIX}"
2248 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${USE_ARG_SUFFIX}"
2249 TICS_LIBS="$TICS_LIBS -l${LIB_NAME}${USE_ARG_SUFFIX}"
2250 TINFO_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARGS"
2252 TICS_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
2255 TINFO_LDFLAGS="-L${LIB_DIR}"
2256 SHLIB_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
2264 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${USE_ARG_SUFFIX}"
2269 TINFO_LDFLAGS="-L${LIB_DIR}"
2270 TINFO_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX}"
2276 # "lib" files have ".dll.a" suffix, "cyg"or "msys-" files have ".dll"
2297 TINFO_LDFLAGS2=`echo "$TINFO_LDFLAGS" | sed -e 's,-L\.\./,-L../../,'`
2317 ### Resolve a conflict between normal and wide-curses by forcing applications
2322 AC_MSG_WARN(Wide-character applications must define HAVE_LIBUTF8_H to include curses.h)
2344 AC_DEFINE(HAVE_SLK_COLOR,1,[Define to 1 if we have slk_color for test-programs])
2354 ### with the appropriate compile-rules.
2360 …SUB_MAKEFILES="$SUB_MAKEFILES Ada95/gen/adacurses${USE_CFG_SUFFIX}-config:Ada95/gen/adacurses-conf…
2361 SUB_MAKEFILES="$SUB_MAKEFILES man/adacurses${USE_CFG_SUFFIX}-config.1:man/MKada_config.in"
2371 AC_DEFINE_UNQUOTED(NCURSES_PATHSEP,'$PATH_SEPARATOR',[Define to override ':' as library path-separa…
2375 ### Define substitutions for header files to avoid name-pollution
2385 SUB_MAKEFILES="$SUB_MAKEFILES misc/ncurses-config:misc/ncurses-config.in"
2386 SUB_MAKEFILES="$SUB_MAKEFILES man/ncurses${USE_CFG_SUFFIX}-config.1:man/MKncu_config.in"
2388 if test "x$enable_pc_files" = xyes && test -z "$MAKE_PC_FILES" ; then
2389 SUB_MAKEFILES="$SUB_MAKEFILES misc/gen-pkgconfig:misc/gen-pkgconfig.in"
2406 LIBTOOL_OPTS_CXX="-os2dllname ncurs++"
2418 (*-D_XOPEN_SOURCE_EXTENDED*)
2420 CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED"
2421 CPPFLAGS=`echo "x$CPPFLAGS" | sed -e 's/^.//' -e 's/-D_XOPEN_SOURCE_EXTENDED//'`
2428 # the *-config or the ".pc" files by adding defines.
2429 AC_MSG_CHECKING(for defines to add to ncurses${USE_CFG_SUFFIX}${cf_config_suffix}-config script)
2491 if test -n "$PACKAGE"
2501 if test -n "$RESULTING_SYMS"
2514 UNALTERED_SYMS=`echo "$RESULTING_SYMS" | sed -e 's/\\$/\\\\$/g'`
2532 # This is used for the *-config script and *.pc data files.
2545 CF_PRG_RULES(["$srcdir/test/mk-test.awk" INSTALL=no ECHO_LINK="$ECHO_LD"], test)
2551 if test -z "$USE_OLD_MAKERULES" ; then
2552 $AWK -f "$srcdir/Ada95/mk-1st.awk" <"$srcdir/Ada95/src/modules" >>Ada95/src/Makefile
2557 ### configuration-run into config.status
2635 ${MAKE:-make} preinstall