configure.in 59 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003
  1. dnl***************************************************************************
  2. dnl Copyright (c) 1998-2010,2011 Free Software Foundation, Inc. *
  3. dnl *
  4. dnl Permission is hereby granted, free of charge, to any person obtaining a *
  5. dnl copy of this software and associated documentation files (the *
  6. dnl "Software"), to deal in the Software without restriction, including *
  7. dnl without limitation the rights to use, copy, modify, merge, publish, *
  8. dnl distribute, distribute with modifications, sublicense, and/or sell *
  9. dnl copies of the Software, and to permit persons to whom the Software is *
  10. dnl furnished to do so, subject to the following conditions: *
  11. dnl *
  12. dnl The above copyright notice and this permission notice shall be included *
  13. dnl in all copies or substantial portions of the Software. *
  14. dnl *
  15. dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS *
  16. dnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF *
  17. dnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. *
  18. dnl IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, *
  19. dnl DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR *
  20. dnl OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR *
  21. dnl THE USE OR OTHER DEALINGS IN THE SOFTWARE. *
  22. dnl *
  23. dnl Except as contained in this notice, the name(s) of the above copyright *
  24. dnl holders shall not be used in advertising or otherwise to promote the *
  25. dnl sale, use or other dealings in this Software without prior written *
  26. dnl authorization. *
  27. dnl***************************************************************************
  28. dnl
  29. dnl Author: Thomas E. Dickey 1995-on
  30. dnl
  31. dnl $Id: configure.in,v 1.520 2011/03/28 00:22:26 tom Exp $
  32. dnl Process this file with autoconf to produce a configure script.
  33. dnl
  34. dnl See http://invisible-island.net/autoconf/ for additional information.
  35. dnl
  36. dnl ---------------------------------------------------------------------------
  37. AC_PREREQ(2.13.20020210)
  38. AC_REVISION($Revision: 1.520 $)
  39. AC_INIT(ncurses/base/lib_initscr.c)
  40. AC_CONFIG_HEADER(include/ncurses_cfg.h:include/ncurses_cfg.hin)
  41. CF_TOP_BUILDDIR
  42. CF_SUBST_NCURSES_VERSION
  43. CF_WITH_REL_VERSION(NCURSES)
  44. CF_WITH_ABI_VERSION
  45. CF_CHECK_CACHE([AC_CANONICAL_SYSTEM])
  46. AC_ARG_WITH(system-type,
  47. [ --with-system-type=XXX test: override derived host system-type],
  48. [AC_MSG_WARN(overriding system type to $withval)
  49. cf_cv_system_name=$withval])
  50. ### Save the given $CFLAGS to allow user-override.
  51. cf_user_CFLAGS="$CFLAGS"
  52. ### Default install-location
  53. CF_CFG_DEFAULTS
  54. ### Checks for programs.
  55. AC_PROG_CC
  56. CF_GCC_VERSION
  57. AC_PROG_CPP
  58. AC_PROG_GCC_TRADITIONAL
  59. CF_PROG_CC_C_O(CC)
  60. AC_ISC_POSIX
  61. CF_ANSI_CC_REQD
  62. CF_PROG_EXT
  63. CF_PROG_LDCONFIG
  64. dnl DEFECT in autoconf 2.12: an attempt to set policy, this breaks the
  65. dnl configure script by not letting us test if C++
  66. dnl is present, making this option necessary.
  67. AC_MSG_CHECKING(if you want to ensure bool is consistent with C++)
  68. AC_ARG_WITH(cxx,
  69. [ --without-cxx do not adjust ncurses bool to match C++],
  70. [cf_with_cxx=$withval],
  71. [cf_with_cxx=yes])
  72. AC_MSG_RESULT($cf_with_cxx)
  73. if test "X$cf_with_cxx" = Xno ; then
  74. CXX=""
  75. GXX=""
  76. else
  77. # with autoconf 2.13, we can change the error to a warning:
  78. pushdef([AC_MSG_ERROR],
  79. [AC_MSG_RESULT(no)
  80. AC_MSG_WARN([You don't have any C++ compiler, too bad])
  81. cf_with_cxx=no; CXX=""; GXX="";])dnl
  82. AC_PROG_CXX
  83. popdef([AC_MSG_ERROR])dnl
  84. # autoconf 2.5x removed the error - by hardcoding it to g++.
  85. if test "$CXX" = "g++" ; then
  86. AC_PATH_PROG(CXX,g++)
  87. fi
  88. if test "$CXX" = "g++" ; then
  89. AC_MSG_WARN(ignoring hardcoded g++)
  90. cf_with_cxx=no; CXX=""; GXX="";
  91. fi
  92. fi
  93. CF_GXX_VERSION
  94. case $GXX_VERSION in
  95. 1*|2.[[0-6]]*)
  96. # GXX=""; CXX=""; ac_cv_prog_gxx=no
  97. # cf_cxx_library=no
  98. AC_MSG_WARN(templates do not work)
  99. ;;
  100. esac
  101. AC_MSG_CHECKING(if you want to build C++ binding and demo)
  102. AC_ARG_WITH(cxx-binding,
  103. [ --without-cxx-binding do not build C++ binding and demo],
  104. [cf_with_cxx_binding=$withval],
  105. [cf_with_cxx_binding=$cf_with_cxx])
  106. AC_MSG_RESULT($cf_with_cxx_binding)
  107. AC_MSG_CHECKING(if you want to build with Ada95)
  108. AC_ARG_WITH(ada,
  109. [ --without-ada suppress check for Ada95, don't build demo],
  110. [cf_with_ada=$withval],
  111. [cf_with_ada=yes])
  112. AC_MSG_RESULT($cf_with_ada)
  113. AC_MSG_CHECKING(if you want to install manpages)
  114. AC_ARG_WITH(manpages,
  115. [ --without-manpages suppress install of manpages],
  116. [cf_with_manpages=$withval],
  117. [cf_with_manpages=yes])
  118. AC_MSG_RESULT($cf_with_manpages)
  119. AC_MSG_CHECKING(if you want to build programs such as tic)
  120. AC_ARG_WITH(progs,
  121. [ --without-progs suppress build with programs (e.g., tic)],
  122. [cf_with_progs=$withval],
  123. [cf_with_progs=yes])
  124. AC_MSG_RESULT($cf_with_progs)
  125. AC_MSG_CHECKING(if you want to build test-programs)
  126. AC_ARG_WITH(tests,
  127. [ --without-tests suppress build with test-programs],
  128. [cf_with_tests=$withval],
  129. [cf_with_tests=yes])
  130. AC_MSG_RESULT($cf_with_tests)
  131. AC_MSG_CHECKING(if you wish to install curses.h)
  132. AC_ARG_WITH(curses-h,
  133. [ --without-curses-h install curses.h as ncurses.h only],
  134. [with_curses_h=$withval],
  135. [with_curses_h=yes])
  136. AC_MSG_RESULT($with_curses_h)
  137. modules_to_build="ncurses"
  138. if test "X$cf_with_progs" != Xno ; then
  139. modules_to_build="$modules_to_build progs tack"
  140. fi
  141. modules_to_build="$modules_to_build panel menu form"
  142. AC_ARG_PROGRAM
  143. CF_PROG_AWK
  144. CF_PROG_EGREP
  145. CF_PROG_INSTALL
  146. CF_PROG_LINT
  147. CF_PROG_LN_S
  148. AC_SYS_LONG_FILE_NAMES
  149. # if we find pkg-config, check if we should install the ".pc" files.
  150. CF_PKG_CONFIG
  151. if test "$PKG_CONFIG" != no ; then
  152. AC_MSG_CHECKING(if we should install .pc files for $PKG_CONFIG)
  153. # Leave this as something that can be overridden in the environment.
  154. if test -z "$PKG_CONFIG_LIBDIR" ; then
  155. PKG_CONFIG_LIBDIR=`echo "$PKG_CONFIG" | sed -e 's,/[[^/]]*/[[^/]]*$,,'`/lib/pkgconfig
  156. fi
  157. PKG_CONFIG_LIBDIR=`echo "$PKG_CONFIG_LIBDIR" | sed -e 's/^://' -e 's/:.*//'`
  158. if test -n "$PKG_CONFIG_LIBDIR" && test -d "$PKG_CONFIG_LIBDIR" ; then
  159. AC_ARG_ENABLE(pc-files,
  160. [ --enable-pc-files generate and install .pc files for pkg-config],
  161. [enable_pc_files=$enableval],
  162. [enable_pc_files=no])
  163. AC_MSG_RESULT($enable_pc_files)
  164. else
  165. AC_MSG_RESULT(no)
  166. AC_MSG_WARN(did not find library $PKG_CONFIG_LIBDIR)
  167. enable_pc_files=no
  168. fi
  169. fi
  170. AC_SUBST(PKG_CONFIG_LIBDIR)
  171. AC_MSG_CHECKING(if we should assume mixed-case filenames)
  172. AC_ARG_ENABLE(mixed-case,
  173. [ --enable-mixed-case tic should assume mixed-case filenames],
  174. [enable_mixedcase=$enableval],
  175. [enable_mixedcase=auto])
  176. AC_MSG_RESULT($enable_mixedcase)
  177. if test "$enable_mixedcase" = "auto" ; then
  178. CF_MIXEDCASE_FILENAMES
  179. else
  180. cf_cv_mixedcase=$enable_mixedcase
  181. if test "$enable_mixedcase" = "yes" ; then
  182. AC_DEFINE(MIXEDCASE_FILENAMES)
  183. fi
  184. fi
  185. # do this after mixed-case option (tags/TAGS is not as important as tic).
  186. AC_PROG_MAKE_SET
  187. CF_MAKE_TAGS
  188. CF_MAKEFLAGS
  189. dnl These are standard among *NIX systems, but not when cross-compiling
  190. AC_CHECK_TOOL(RANLIB, ranlib, ':')
  191. AC_CHECK_TOOL(LD, ld, ld)
  192. AC_CHECK_TOOL(AR, ar, ar)
  193. CF_AR_FLAGS
  194. dnl Special option for use by system-builders: the install-prefix is used to
  195. dnl adjust the location into which the actual install is done, so that an
  196. dnl archive can be built without modifying the host system's configuration.
  197. AC_MSG_CHECKING(if you have specified an install-prefix)
  198. AC_ARG_WITH(install-prefix,
  199. [ --with-install-prefix prefixes actual install-location ($DESTDIR)],
  200. [case "$withval" in #(vi
  201. yes|no) #(vi
  202. ;;
  203. *) DESTDIR="$withval"
  204. ;;
  205. esac])
  206. AC_MSG_RESULT($DESTDIR)
  207. AC_SUBST(DESTDIR)
  208. ###############################################################################
  209. CF_HELP_MESSAGE(Build-Tools Needed to Compile Temporary Applications for Cross-compiling:)
  210. # If we're cross-compiling, allow the user to override the tools and their
  211. # options. The configure script is oriented toward identifying the host
  212. # compiler, etc., but we need a build compiler to generate parts of the source.
  213. CF_BUILD_CC
  214. ###############################################################################
  215. CF_HELP_MESSAGE(Options to Specify the Libraries Built/Used:)
  216. ### Options to allow the user to specify the set of libraries which are used.
  217. ### Use "--without-normal --with-shared" to allow the default model to be
  218. ### shared, for example.
  219. cf_list_models=""
  220. AC_SUBST(cf_list_models)dnl the complete list of models ("normal debug")
  221. CF_WITH_LIBTOOL
  222. if test "$with_libtool" != "no" ; then
  223. cf_list_models="$cf_list_models libtool"
  224. else
  225. AC_MSG_CHECKING(if you want to build shared libraries)
  226. AC_ARG_WITH(shared,
  227. [ --with-shared generate shared-libraries],
  228. [with_shared=$withval],
  229. [with_shared=no])
  230. AC_MSG_RESULT($with_shared)
  231. test "$with_shared" = "yes" && cf_list_models="$cf_list_models shared"
  232. AC_MSG_CHECKING(if you want to build static libraries)
  233. AC_ARG_WITH(normal,
  234. [ --with-normal generate normal-libraries (default)],
  235. [with_normal=$withval],
  236. [with_normal=yes])
  237. AC_MSG_RESULT($with_normal)
  238. test "$with_normal" = "yes" && cf_list_models="$cf_list_models normal"
  239. AC_MSG_CHECKING(if you want to build debug libraries)
  240. AC_ARG_WITH(debug,
  241. [ --with-debug generate debug-libraries (default)],
  242. [with_debug=$withval],
  243. [with_debug=yes])
  244. AC_MSG_RESULT($with_debug)
  245. test "$with_debug" = "yes" && cf_list_models="$cf_list_models debug"
  246. AC_MSG_CHECKING(if you want to build profiling libraries)
  247. AC_ARG_WITH(profile,
  248. [ --with-profile generate profile-libraries],
  249. [with_profile=$withval],
  250. [with_profile=no])
  251. AC_MSG_RESULT($with_profile)
  252. test "$with_profile" = "yes" && cf_list_models="$cf_list_models profile"
  253. fi
  254. ###############################################################################
  255. AC_MSG_CHECKING(for specified models)
  256. test -z "$cf_list_models" && cf_list_models=normal
  257. dnl If we use libtool to generate libraries, then it must be the only
  258. dnl specified model.
  259. test "$with_libtool" != "no" && cf_list_models=libtool
  260. AC_MSG_RESULT($cf_list_models)
  261. ### Use the first model as the default, and save its suffix for use in building
  262. ### up test-applications.
  263. AC_MSG_CHECKING(for default model)
  264. DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
  265. AC_MSG_RESULT($DFT_LWR_MODEL)
  266. CF_UPPER(DFT_UPR_MODEL,$DFT_LWR_MODEL)dnl
  267. AC_SUBST(DFT_LWR_MODEL)dnl the default model ("normal")
  268. AC_SUBST(DFT_UPR_MODEL)dnl the default model ("NORMAL")
  269. TICS_NAME=tic
  270. AC_SUBST(TICS_NAME)
  271. TINFO_NAME=tinfo
  272. AC_SUBST(TINFO_NAME)
  273. LIB_NAME=ncurses
  274. AC_SUBST(LIB_NAME)
  275. LIB_DIR=../lib
  276. LIB_2ND=../../lib
  277. CF_LIB_PREFIX(cf_prefix)
  278. LIB_PREFIX=$cf_prefix
  279. AC_SUBST(LIB_PREFIX)
  280. LIB_SUFFIX=
  281. AC_SUBST(LIB_SUFFIX)
  282. ###############################################################################
  283. AC_MSG_CHECKING(if you want to build a separate terminfo library)
  284. AC_ARG_WITH(termlib,
  285. [ --with-termlib generate separate terminfo library],
  286. [with_termlib=$withval],
  287. [with_termlib=no])
  288. AC_MSG_RESULT($with_termlib)
  289. AC_MSG_CHECKING(if you want to build a separate tic library)
  290. AC_ARG_WITH(ticlib,
  291. [ --with-ticlib generate separate tic library],
  292. [with_ticlib=$withval],
  293. [with_ticlib=no])
  294. AC_MSG_RESULT($with_ticlib)
  295. ### Checks for special libraries, must be done up-front.
  296. SHLIB_LIST=""
  297. CF_WITH_GPM
  298. if test "$with_gpm" != no ; then
  299. AC_MSG_CHECKING(if you want to load GPM dynamically)
  300. AC_ARG_WITH(dlsym,
  301. [ --without-dlsym do not use dlsym() to load GPM dynamically],
  302. [with_dlsym=$withval],
  303. [with_dlsym=yes])
  304. AC_MSG_RESULT($with_dlsym)
  305. if test "$with_dlsym" = yes ; then
  306. CF_FUNC_DLSYM
  307. if test "$with_gpm" != yes ; then
  308. CF_VERBOSE(assuming soname for gpm is $with_gpm)
  309. cf_cv_gpm_soname="$with_gpm"
  310. else
  311. CF_LIB_SONAME([#include <gpm.h>],[if (Gpm_Open(0,0)) Gpm_Close();],gpm)
  312. fi
  313. test "$cf_cv_gpm_soname" != "unknown" && AC_DEFINE_UNQUOTED(LIBGPM_SONAME,"$cf_cv_gpm_soname")
  314. SHLIB_LIST="-ldl $SHLIB_LIST"
  315. else
  316. SHLIB_LIST="-lgpm $SHLIB_LIST"
  317. CF_ADD_LIB(gpm,TEST_LIBS)
  318. fi
  319. AC_DEFINE(HAVE_LIBGPM)
  320. CF_CHECK_GPM_WGETCH
  321. fi
  322. CF_WITH_SYSMOUSE
  323. dnl Not all ports of gcc support the -g option
  324. if test X"$CC_G_OPT" = X"" ; then
  325. CC_G_OPT='-g'
  326. test -n "$GCC" && test "${ac_cv_prog_cc_g}" != yes && CC_G_OPT=''
  327. fi
  328. AC_SUBST(CC_G_OPT)
  329. if test X"$CXX_G_OPT" = X"" ; then
  330. CXX_G_OPT='-g'
  331. test -n "$GXX" && test "${ac_cv_prog_cxx_g}" != yes && CXX_G_OPT=''
  332. fi
  333. AC_SUBST(CXX_G_OPT)
  334. AC_MSG_CHECKING(for default loader flags)
  335. case $DFT_LWR_MODEL in
  336. libtool) LD_MODEL='' ;;
  337. normal) LD_MODEL='' ;;
  338. debug) LD_MODEL=$CC_G_OPT ;;
  339. profile) LD_MODEL='-pg';;
  340. shared) LD_MODEL='' ;;
  341. esac
  342. AC_SUBST(LD_MODEL)dnl the type of link (e.g., -g or -pg)
  343. AC_MSG_RESULT($LD_MODEL)
  344. case $DFT_LWR_MODEL in
  345. shared)
  346. CF_ENABLE_RPATH
  347. AC_MSG_CHECKING(if shared libraries should be relinked during install)
  348. AC_ARG_ENABLE(relink,
  349. [ --disable-relink relink shared libraries during install],
  350. [cf_cv_do_relink=$enableval],
  351. [cf_cv_do_relink=yes])
  352. AC_MSG_RESULT($cf_cv_do_relink)
  353. ;;
  354. esac
  355. CF_SHARED_OPTS
  356. if test "$CC_SHARED_OPTS" = "unknown"; then
  357. for model in $cf_list_models; do
  358. if test "$model" = "shared"; then
  359. AC_ERROR(Shared libraries are not supported in this version)
  360. fi
  361. done
  362. fi
  363. ### If we're building with rpath, try to link non-standard libs that way too.
  364. if test "$DFT_LWR_MODEL" = "shared"; then
  365. CF_DISABLE_RPATH_HACK
  366. fi
  367. ###############################################################################
  368. CF_HELP_MESSAGE(Fine-Tuning Your Configuration:)
  369. ### use option --disable-overwrite to leave out the link to -lcurses
  370. AC_MSG_CHECKING(if you wish to install ncurses overwriting curses)
  371. AC_ARG_ENABLE(overwrite,
  372. [ --disable-overwrite leave out the link to -lcurses],
  373. [with_overwrite=$enableval],
  374. [if test "$prefix" = "/usr" ; then with_overwrite=yes; else with_overwrite=no; fi])
  375. AC_MSG_RESULT($with_overwrite)
  376. AC_MSG_CHECKING(if external terminfo-database is used)
  377. AC_ARG_ENABLE(database,
  378. [ --disable-database do not use terminfo, only fallbacks/termcap],
  379. [use_database=$enableval],
  380. [use_database=yes])
  381. AC_MSG_RESULT($use_database)
  382. case $host_os in #(vi
  383. os2*) #(vi
  384. TERMINFO_SRC='${top_srcdir}/misc/emx.src'
  385. ;;
  386. *) #(vi
  387. TERMINFO_SRC='${top_srcdir}/misc/terminfo.src'
  388. ;;
  389. esac
  390. AC_SUBST(TERMINFO_SRC)
  391. CF_PATHSEP
  392. if test "$use_database" != no ; then
  393. AC_DEFINE(USE_DATABASE)
  394. AC_MSG_CHECKING(which terminfo source-file will be installed)
  395. AC_ARG_WITH(database,
  396. [ --with-database=XXX specify terminfo source to install],
  397. [TERMINFO_SRC=$withval])
  398. AC_MSG_RESULT($TERMINFO_SRC)
  399. AC_MSG_CHECKING(whether to use hashed database instead of directory/tree)
  400. AC_ARG_WITH(hashed-db,
  401. [ --with-hashed-db specify hashed-database library],,
  402. [with_hashed_db=no])
  403. AC_MSG_RESULT($with_hashed_db)
  404. else
  405. with_hashed_db=no
  406. fi
  407. AC_MSG_CHECKING(for list of fallback descriptions)
  408. AC_ARG_WITH(fallbacks,
  409. [ --with-fallbacks=XXX specify list of fallback terminal descriptions],
  410. [with_fallback=$withval],
  411. [with_fallback=])
  412. AC_MSG_RESULT($with_fallback)
  413. FALLBACK_LIST=`echo "$with_fallback" | sed -e 's/,/ /g'`
  414. AC_SUBST(FALLBACK_LIST)
  415. AC_MSG_CHECKING(if you want modern xterm or antique)
  416. AC_ARG_WITH(xterm-new,
  417. [ --without-xterm-new specify if xterm terminfo should be old version],
  418. [with_xterm_new=$withval],
  419. [with_xterm_new=yes])
  420. case $with_xterm_new in
  421. no) with_xterm_new=xterm-old;;
  422. *) with_xterm_new=xterm-new;;
  423. esac
  424. AC_MSG_RESULT($with_xterm_new)
  425. WHICH_XTERM=$with_xterm_new
  426. AC_SUBST(WHICH_XTERM)
  427. MAKE_TERMINFO=
  428. if test "$use_database" = no ; then
  429. TERMINFO="${datadir}/terminfo"
  430. MAKE_TERMINFO="#"
  431. else
  432. AC_MSG_CHECKING(for list of terminfo directories)
  433. CF_WITH_PATHLIST(terminfo-dirs,
  434. [ --with-terminfo-dirs=XXX specify list of terminfo directories],
  435. TERMINFO_DIRS,
  436. DATADIR/terminfo,
  437. ${datadir}/terminfo)
  438. AC_MSG_RESULT($TERMINFO_DIRS)
  439. test -n "$TERMINFO_DIRS" && AC_DEFINE_UNQUOTED(TERMINFO_DIRS,"$TERMINFO_DIRS")
  440. AC_MSG_CHECKING(for default terminfo directory)
  441. CF_WITH_PATH(default-terminfo-dir,
  442. [ --with-default-terminfo-dir=DIR default terminfo directory],
  443. TERMINFO,
  444. DATADIR/terminfo,
  445. ${datadir}/terminfo)
  446. AC_MSG_RESULT($TERMINFO)
  447. AC_DEFINE_UNQUOTED(TERMINFO,"$TERMINFO")
  448. fi
  449. AC_SUBST(TERMINFO)
  450. AC_SUBST(MAKE_TERMINFO)
  451. ### use option --disable-big-core to make tic run on small machines
  452. ### We need 4Mb, check if we can allocate 50% more than that.
  453. AC_MSG_CHECKING(if big-core option selected)
  454. AC_ARG_ENABLE(big-core,
  455. [ --disable-big-core assume machine has little memory],
  456. [with_big_core=$enableval],
  457. [AC_TRY_RUN([
  458. #include <stdlib.h>
  459. #include <string.h>
  460. int main() {
  461. unsigned long n = 6000000L;
  462. char *s = malloc(n);
  463. if (s != 0)
  464. s[0] = s[n-1] = 0;
  465. ${cf_cv_main_return:-return}(s == 0);
  466. }],
  467. [with_big_core=yes],
  468. [with_big_core=no],
  469. [with_big_core=no])])
  470. AC_MSG_RESULT($with_big_core)
  471. test "$with_big_core" = "yes" && AC_DEFINE(HAVE_BIG_CORE)
  472. ### ISO C only guarantees 512-char strings, we have tables which load faster
  473. ### when constructed using "big" strings. More than the C compiler, the awk
  474. ### program is a limit on most vendor UNIX systems. Check that we can build.
  475. AC_MSG_CHECKING(if big-strings option selected)
  476. AC_ARG_ENABLE(big-strings,
  477. [ --disable-big-strings assume compiler has only standard-size strings],
  478. [with_big_strings=$enableval],
  479. [CF_AWK_BIG_PRINTF(12000,with_big_strings)])
  480. AC_MSG_RESULT($with_big_strings)
  481. USE_BIG_STRINGS=0
  482. test "$with_big_strings" = "yes" && USE_BIG_STRINGS=1
  483. AC_SUBST(USE_BIG_STRINGS)
  484. ### use option --enable-termcap to compile in the termcap fallback support
  485. AC_MSG_CHECKING(if you want termcap-fallback support)
  486. AC_ARG_ENABLE(termcap,
  487. [ --enable-termcap compile in termcap fallback support],
  488. [with_termcap=$enableval],
  489. [with_termcap=no])
  490. AC_MSG_RESULT($with_termcap)
  491. if test "$with_termcap" != "yes" ; then
  492. if test "$use_database" = no ; then
  493. if test -z "$with_fallback" ; then
  494. AC_ERROR(You have disabled the database w/o specifying fallbacks)
  495. fi
  496. fi
  497. AC_DEFINE(PURE_TERMINFO)
  498. else
  499. if test "$with_ticlib" != no ; then
  500. AC_ERROR(Options --with-ticlib and --enable-termcap cannot be combined)
  501. fi
  502. AC_DEFINE(USE_TERMCAP)
  503. AC_MSG_CHECKING(for list of termcap files)
  504. CF_WITH_PATHLIST(termpath,
  505. [ --with-termpath=XXX specify list of termcap files],
  506. TERMPATH,
  507. /etc/termcap:/usr/share/misc/termcap)
  508. AC_MSG_RESULT($TERMPATH)
  509. test -n "$TERMPATH" && AC_DEFINE_UNQUOTED(TERMPATH,"$TERMPATH")
  510. ### use option --enable-getcap to use a hacked getcap for reading termcaps
  511. AC_MSG_CHECKING(if fast termcap-loader is needed)
  512. AC_ARG_ENABLE(getcap,
  513. [ --enable-getcap fast termcap load, no xrefs to terminfo],
  514. [with_getcap=$enableval],
  515. [with_getcap=no])
  516. AC_MSG_RESULT($with_getcap)
  517. test "$with_getcap" = "yes" && AC_DEFINE(USE_GETCAP)
  518. AC_MSG_CHECKING(if translated termcaps will be cached in ~/.terminfo)
  519. AC_ARG_ENABLE(getcap-cache,
  520. [ --enable-getcap-cache cache translated termcaps in ~/.terminfo],
  521. [with_getcap_cache=$enableval],
  522. [with_getcap_cache=no])
  523. AC_MSG_RESULT($with_getcap_cache)
  524. test "$with_getcap_cache" = "yes" && AC_DEFINE(USE_GETCAP_CACHE)
  525. fi
  526. ### Use option --disable-home-terminfo to completely remove ~/.terminfo
  527. AC_MSG_CHECKING(if ~/.terminfo is wanted)
  528. AC_ARG_ENABLE(home-terminfo,
  529. [ --disable-home-terminfo drop ~/.terminfo from terminfo search-path],
  530. [with_home_terminfo=$enableval],
  531. [with_home_terminfo=yes])
  532. AC_MSG_RESULT($with_home_terminfo)
  533. test "$with_home_terminfo" = "yes" && AC_DEFINE(USE_HOME_TERMINFO)
  534. AC_MSG_CHECKING(if you want to use restricted environment when running as root)
  535. AC_ARG_ENABLE(root-environ,
  536. [ --disable-root-environ restrict environment when running as root],
  537. [with_root_environ=$enableval],
  538. [with_root_environ=yes])
  539. AC_MSG_RESULT($with_root_environ)
  540. test "$with_root_environ" = yes && AC_DEFINE(USE_ROOT_ENVIRON)
  541. ### Use option --enable-symlinks to make tic use symlinks, not hard links
  542. ### to reduce storage requirements for the terminfo database.
  543. CF_LINK_FUNCS
  544. with_links=no
  545. with_symlinks=no
  546. # soft links (symbolic links) are useful for some systems where hard links do
  547. # not work, or to make it simpler to copy terminfo trees around.
  548. if test "$ac_cv_func_symlink" = yes ; then
  549. AC_MSG_CHECKING(if tic should use symbolic links)
  550. AC_ARG_ENABLE(symlinks,
  551. [ --enable-symlinks make tic use symbolic links not hard links],
  552. [with_symlinks=$enableval],
  553. [with_symlinks=no])
  554. AC_MSG_RESULT($with_symlinks)
  555. fi
  556. # If we have hard links and did not choose to use soft links instead, there is
  557. # no reason to make this choice optional - use the hard links.
  558. if test "$with_symlinks" = no ; then
  559. AC_MSG_CHECKING(if tic should use hard links)
  560. if test "$ac_cv_func_link" = yes ; then
  561. with_links=yes
  562. else
  563. with_links=no
  564. fi
  565. AC_MSG_RESULT($with_links)
  566. fi
  567. test "$with_links" = yes && AC_DEFINE(USE_LINKS)
  568. test "$with_symlinks" = yes && AC_DEFINE(USE_SYMLINKS)
  569. ### use option --enable-broken-linker to force on use of broken-linker support
  570. AC_MSG_CHECKING(if you want broken-linker support code)
  571. AC_ARG_ENABLE(broken_linker,
  572. [ --enable-broken_linker compile with broken-linker support code],
  573. [with_broken_linker=$enableval],
  574. [with_broken_linker=${BROKEN_LINKER:-no}])
  575. AC_MSG_RESULT($with_broken_linker)
  576. BROKEN_LINKER=0
  577. if test "$with_broken_linker" = yes ; then
  578. AC_DEFINE(BROKEN_LINKER)
  579. BROKEN_LINKER=1
  580. elif test "$DFT_LWR_MODEL" = shared ; then
  581. case $cf_cv_system_name in #(vi
  582. cygwin*)
  583. AC_DEFINE(BROKEN_LINKER)
  584. BROKEN_LINKER=1
  585. CF_VERBOSE(cygwin linker is broken anyway)
  586. ;;
  587. esac
  588. fi
  589. AC_SUBST(BROKEN_LINKER)
  590. ### use option --enable-bsdpad to have tputs process BSD-style prefix padding
  591. AC_MSG_CHECKING(if tputs should process BSD-style prefix padding)
  592. AC_ARG_ENABLE(bsdpad,
  593. [ --enable-bsdpad recognize BSD-style prefix padding],
  594. [with_bsdpad=$enableval],
  595. [with_bsdpad=no])
  596. AC_MSG_RESULT($with_bsdpad)
  597. test "$with_bsdpad" = yes && AC_DEFINE(BSD_TPUTS)
  598. ### use option --enable-widec to turn on use of wide-character support
  599. NCURSES_CH_T=chtype
  600. NCURSES_LIBUTF8=0
  601. NEED_WCHAR_H=0
  602. NCURSES_MBSTATE_T=0
  603. NCURSES_WCHAR_T=0
  604. NCURSES_WINT_T=0
  605. # Check to define _XOPEN_SOURCE "automatically"
  606. CF_XOPEN_SOURCE(500)
  607. # Work around breakage on OS X
  608. CF_SIGWINCH
  609. # Checks for CODESET support.
  610. AM_LANGINFO_CODESET
  611. # use these variables to work around a defect in gcc's fixincludes.
  612. NCURSES_OK_WCHAR_T=
  613. NCURSES_OK_WINT_T=
  614. AC_MSG_CHECKING(if you want wide-character code)
  615. AC_ARG_ENABLE(widec,
  616. [ --enable-widec compile with wide-char/UTF-8 code],
  617. [with_widec=$enableval],
  618. [with_widec=no])
  619. AC_MSG_RESULT($with_widec)
  620. if test "$with_widec" = yes ; then
  621. LIB_SUFFIX="w${LIB_SUFFIX}"
  622. AC_DEFINE(USE_WIDEC_SUPPORT)
  623. case "$CFLAGS $CPPFLAGS" in #(vi
  624. *-D_XOPEN_SOURCE=500) #(vi
  625. ;;
  626. *)
  627. CF_PREDEFINE(_XOPEN_SOURCE_EXTENDED)
  628. ;;
  629. esac
  630. # with_overwrite=no
  631. NCURSES_CH_T=cchar_t
  632. AC_CHECK_FUNCS(putwc btowc wctob mbtowc wctomb mblen mbrlen mbrtowc wcsrtombs mbsrtowcs wcstombs mbstowcs)
  633. if test "$ac_cv_func_putwc" != yes ; then
  634. CF_UTF8_LIB
  635. if test "$cf_cv_utf8_lib" != no ; then
  636. NCURSES_LIBUTF8=1
  637. fi
  638. fi
  639. CF_WCHAR_TYPE(mbstate_t, NCURSES_MBSTATE_T)
  640. CF_WCHAR_TYPE(wchar_t, NCURSES_WCHAR_T, NCURSES_OK_WCHAR_T)
  641. CF_WCHAR_TYPE(wint_t, NCURSES_WINT_T, NCURSES_OK_WINT_T)
  642. if test "$NCURSES_MBSTATE_T" != 0; then
  643. AC_DEFINE(NEED_MBSTATE_T_DEF)
  644. fi
  645. fi
  646. AC_SUBST(NCURSES_CH_T)
  647. AC_SUBST(NCURSES_LIBUTF8)
  648. AC_SUBST(NEED_WCHAR_H)
  649. AC_SUBST(NCURSES_MBSTATE_T)
  650. AC_SUBST(NCURSES_WCHAR_T)
  651. AC_SUBST(NCURSES_WINT_T)
  652. AC_SUBST(NCURSES_OK_WCHAR_T)
  653. AC_SUBST(NCURSES_OK_WINT_T)
  654. ### use option --disable-lp64 to allow long chtype
  655. case $cf_cv_abi_version in
  656. [[345]]*)
  657. default_with_lp64=no
  658. ;;
  659. *)
  660. default_with_lp64=yes
  661. ;;
  662. esac
  663. AC_MSG_CHECKING(whether to enable _LP64 definition in curses.h)
  664. AC_ARG_ENABLE(lp64,
  665. [ --disable-lp64 allow chtype to be long (ignore _LP64)],
  666. [with_lp64=$enableval],
  667. [with_lp64=$default_with_lp64])
  668. AC_MSG_RESULT($with_lp64)
  669. if test "$with_lp64" = yes ; then
  670. cf_cv_enable_lp64=1
  671. else
  672. cf_cv_enable_lp64=0
  673. fi
  674. AC_SUBST(cf_cv_enable_lp64)
  675. CF_LARGEFILE
  676. ### use option --disable-tparm-varargs to make tparm() conform to X/Open
  677. AC_MSG_CHECKING(if you want tparm not to use X/Open fixed-parameter list)
  678. AC_ARG_ENABLE(tparm-varargs,
  679. [ --disable-tparm-varargs compile tparm() without varargs interface],
  680. [with_tparm_varargs=$enableval],
  681. [with_tparm_varargs=yes])
  682. AC_MSG_RESULT($with_tparm_varargs)
  683. NCURSES_TPARM_VARARGS=0
  684. test "$with_tparm_varargs" = yes && NCURSES_TPARM_VARARGS=1
  685. AC_SUBST(NCURSES_TPARM_VARARGS)
  686. ### use option --disable-tic-depends to make libtic not explicitly depend on ncurses/ncursesw
  687. if test "$with_ticlib" != no ; then
  688. AC_MSG_CHECKING(if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library)
  689. AC_ARG_ENABLE(tic-depends,
  690. [ --disable-tic-depends link tic library without explicit dependency on ncurses library],
  691. [with_tic_depends=$enableval],
  692. [with_tic_depends=yes])
  693. AC_MSG_RESULT($with_tic_depends)
  694. else
  695. with_tic_depends=no
  696. fi
  697. ### use option --with-bool to override bool's type
  698. AC_MSG_CHECKING(for type of bool)
  699. AC_ARG_WITH(bool,
  700. [ --with-bool=TYPE override fallback type of bool variable],
  701. [NCURSES_BOOL="$withval"],
  702. [NCURSES_BOOL=auto])
  703. AC_MSG_RESULT($NCURSES_BOOL)
  704. AC_SUBST(NCURSES_BOOL)
  705. AC_MSG_CHECKING(for alternate terminal capabilities file)
  706. AC_ARG_WITH(caps,
  707. [ --with-caps=alt compile with alternate Caps file],
  708. [TERMINFO_CAPS=Caps.$withval],
  709. [TERMINFO_CAPS=Caps])
  710. test -f "${srcdir}/include/${TERMINFO_CAPS}" || TERMINFO_CAPS=Caps
  711. AC_MSG_RESULT($TERMINFO_CAPS)
  712. AC_SUBST(TERMINFO_CAPS)
  713. ### use option --with-chtype to override chtype's type
  714. AC_MSG_CHECKING(for type of chtype)
  715. AC_ARG_WITH(chtype,
  716. [ --with-chtype=TYPE override type of chtype],
  717. [NCURSES_CHTYPE="$withval"],
  718. [NCURSES_CHTYPE=auto])
  719. AC_MSG_RESULT($NCURSES_CHTYPE)
  720. ### use option --with-ospeed to override ospeed's type
  721. AC_MSG_CHECKING(for type of ospeed)
  722. AC_ARG_WITH(ospeed,
  723. [ --with-ospeed=TYPE override type of ospeed variable],
  724. [NCURSES_OSPEED="$withval"],
  725. [NCURSES_OSPEED=short])
  726. AC_MSG_RESULT($NCURSES_OSPEED)
  727. AC_SUBST(NCURSES_OSPEED)
  728. ### use option --with-mmask-t to override mmask_t's type
  729. AC_MSG_CHECKING(for type of mmask_t)
  730. AC_ARG_WITH(mmask-t,
  731. [ --with-mmask-t=TYPE override type of mmask_t],
  732. [NCURSES_MMASK_T="$withval"],
  733. [NCURSES_MMASK_T=auto])
  734. AC_MSG_RESULT($NCURSES_MMASK_T)
  735. ### use option --with-ccharw-max to override CCHARW_MAX size
  736. AC_MSG_CHECKING(for size CCHARW_MAX)
  737. AC_ARG_WITH(ccharw-max,
  738. [ --with-ccharw-max=XXX override size CCHARW_MAX],
  739. [NCURSES_CCHARW_MAX="$withval"],
  740. [NCURSES_CCHARW_MAX=5])
  741. AC_MSG_RESULT($NCURSES_CCHARW_MAX)
  742. AC_SUBST(NCURSES_CCHARW_MAX)
  743. ### Enable compiling-in rcs id's
  744. AC_MSG_CHECKING(if RCS identifiers should be compiled-in)
  745. AC_ARG_WITH(rcs-ids,
  746. [ --with-rcs-ids compile-in RCS identifiers],
  747. [with_rcs_ids=$withval],
  748. [with_rcs_ids=no])
  749. AC_MSG_RESULT($with_rcs_ids)
  750. test "$with_rcs_ids" = yes && AC_DEFINE(USE_RCS_IDS)
  751. ###############################################################################
  752. CF_MAN_PAGES([ captoinfo clear infocmp infotocap tabs tic toe tput tset ])
  753. ###############################################################################
  754. CF_HELP_MESSAGE(Extensions:)
  755. ### Note that some functions (such as const) are normally disabled anyway.
  756. AC_MSG_CHECKING(if you want to build with function extensions)
  757. AC_ARG_ENABLE(ext-funcs,
  758. [ --disable-ext-funcs disable function-extensions],
  759. [with_ext_funcs=$enableval],
  760. [with_ext_funcs=yes])
  761. AC_MSG_RESULT($with_ext_funcs)
  762. if test "$with_ext_funcs" = yes ; then
  763. NCURSES_EXT_FUNCS=1
  764. AC_DEFINE(HAVE_CURSES_VERSION)
  765. AC_DEFINE(HAVE_HAS_KEY)
  766. AC_DEFINE(HAVE_RESIZETERM)
  767. AC_DEFINE(HAVE_RESIZE_TERM)
  768. AC_DEFINE(HAVE_TERM_ENTRY_H)
  769. AC_DEFINE(HAVE_USE_DEFAULT_COLORS)
  770. AC_DEFINE(HAVE_WRESIZE)
  771. AC_DEFINE(NCURSES_EXT_FUNCS)
  772. GENERATED_EXT_FUNCS=generated
  773. else
  774. NCURSES_EXT_FUNCS=0
  775. GENERATED_EXT_FUNCS=
  776. fi
  777. AC_SUBST(NCURSES_EXT_FUNCS)
  778. AC_SUBST(GENERATED_EXT_FUNCS)
  779. AC_MSG_CHECKING(if you want to build with experimental SCREEN extensions)
  780. AC_ARG_ENABLE(sp-funcs,
  781. [ --enable-sp-funcs enable experimental SCREEN-extensions],
  782. [with_sp_funcs=$enableval],
  783. [with_sp_funcs=no])
  784. AC_MSG_RESULT($with_sp_funcs)
  785. if test "$with_sp_funcs" = yes ; then
  786. NCURSES_SP_FUNCS=1
  787. AC_DEFINE(NCURSES_SP_FUNCS)
  788. GENERATED_SP_FUNCS=generated
  789. else
  790. NCURSES_SP_FUNCS=0
  791. GENERATED_SP_FUNCS=
  792. fi
  793. AC_SUBST(NCURSES_SP_FUNCS)
  794. AC_SUBST(GENERATED_SP_FUNCS)
  795. AC_MSG_CHECKING(if you want to build with experimental terminal-driver)
  796. AC_ARG_ENABLE(term-driver,
  797. [ --enable-term-driver enable experimental terminal-driver],
  798. [with_term_driver=$enableval],
  799. [with_term_driver=no])
  800. AC_MSG_RESULT($with_term_driver)
  801. if test "$with_term_driver" = yes ; then
  802. AC_DEFINE(USE_TERM_DRIVER)
  803. if test "$with_sp_funcs" != yes ; then
  804. AC_MSG_ERROR(The term-driver option relies upon sp-funcs)
  805. fi
  806. fi
  807. ### use option --enable-const to turn on use of const beyond that in XSI.
  808. AC_MSG_CHECKING(for extended use of const keyword)
  809. AC_ARG_ENABLE(const,
  810. [ --enable-const compile with extra/non-standard const],
  811. [with_ext_const=$enableval],
  812. [with_ext_const=no])
  813. AC_MSG_RESULT($with_ext_const)
  814. NCURSES_CONST='/*nothing*/'
  815. if test "$with_ext_const" = yes ; then
  816. NCURSES_CONST=const
  817. fi
  818. AC_SUBST(NCURSES_CONST)
  819. ### use option --enable-ext-colors to turn on use of colors beyond 16.
  820. AC_MSG_CHECKING(if you want to use extended colors)
  821. AC_ARG_ENABLE(ext-colors,
  822. [ --enable-ext-colors compile for 256-color support],
  823. [with_ext_colors=$enableval],
  824. [with_ext_colors=no])
  825. AC_MSG_RESULT($with_ext_colors)
  826. NCURSES_EXT_COLORS=0
  827. if test "$with_ext_colors" = yes ; then
  828. if test "$with_widec" != yes ; then
  829. AC_MSG_ERROR(This option applies only to wide-character library)
  830. else
  831. # cannot be ABI 5 since it changes sizeof(cchar_t)
  832. CF_NCURSES_ABI_6
  833. fi
  834. NCURSES_EXT_COLORS=1
  835. AC_DEFINE(NCURSES_EXT_COLORS)
  836. fi
  837. AC_SUBST(NCURSES_EXT_COLORS)
  838. ### use option --enable-ext-mouse to modify coding to support 5-button mice
  839. AC_MSG_CHECKING(if you want to use extended mouse encoding)
  840. AC_ARG_ENABLE(ext-mouse,
  841. [ --enable-ext-mouse compile for extended mouse-encoding],
  842. [with_ext_mouse=$enableval],
  843. [with_ext_mouse=no])
  844. AC_MSG_RESULT($with_ext_mouse)
  845. NCURSES_MOUSE_VERSION=1
  846. if test "$with_ext_mouse" = yes ; then
  847. NCURSES_MOUSE_VERSION=2
  848. CF_NCURSES_ABI_6
  849. fi
  850. AC_SUBST(NCURSES_MOUSE_VERSION)
  851. AC_MSG_CHECKING(if you want \$NCURSES_NO_PADDING code)
  852. AC_ARG_ENABLE(no-padding,
  853. [ --enable-no-padding compile with $NCURSES_NO_PADDING code],
  854. [with_no_padding=$enableval],
  855. [with_no_padding=$with_ext_funcs])
  856. AC_MSG_RESULT($with_no_padding)
  857. test "$with_no_padding" = yes && AC_DEFINE(NCURSES_NO_PADDING)
  858. AC_CHECK_SIZEOF([signed char], 0)
  859. if test "$ac_cv_sizeof_signed_char" = 1 ; then
  860. NCURSES_SBOOL="signed char"
  861. else
  862. NCURSES_SBOOL="char"
  863. fi
  864. AC_MSG_CHECKING(if you want to use signed Boolean array in term.h)
  865. AC_ARG_ENABLE(signed-char,
  866. [ --enable-signed-char compile using signed Boolean's in term.h],
  867. [with_signed_char=$enableval],
  868. [with_signed_char=no])
  869. AC_MSG_RESULT($with_signed_char)
  870. test "$with_signed_char" != yes && NCURSES_SBOOL="char"
  871. AC_SUBST(NCURSES_SBOOL)
  872. ### use option --enable-sigwinch to turn on use of SIGWINCH logic
  873. AC_MSG_CHECKING(if you want SIGWINCH handler)
  874. AC_ARG_ENABLE(sigwinch,
  875. [ --enable-sigwinch compile with SIGWINCH handler],
  876. [with_sigwinch=$enableval],
  877. [with_sigwinch=$with_ext_funcs])
  878. AC_MSG_RESULT($with_sigwinch)
  879. test "$with_sigwinch" = yes && AC_DEFINE(USE_SIGWINCH)
  880. ### use option --enable-tcap-names to allow user to define new capabilities
  881. AC_MSG_CHECKING(if you want user-definable terminal capabilities like termcap)
  882. AC_ARG_ENABLE(tcap-names,
  883. [ --enable-tcap-names compile with user-definable terminal capabilities],
  884. [with_tcap_names=$enableval],
  885. [with_tcap_names=$with_ext_funcs])
  886. AC_MSG_RESULT($with_tcap_names)
  887. NCURSES_XNAMES=0
  888. test "$with_tcap_names" = yes && NCURSES_XNAMES=1
  889. AC_SUBST(NCURSES_XNAMES)
  890. ###############################################################################
  891. # These options are relatively safe to experiment with.
  892. CF_HELP_MESSAGE(Development Code:)
  893. AC_MSG_CHECKING(if you want all development code)
  894. AC_ARG_WITH(develop,
  895. [ --without-develop disable development options],
  896. [with_develop=$withval],
  897. [with_develop=no])
  898. AC_MSG_RESULT($with_develop)
  899. ### use option --enable-hard-tabs to turn on use of hard-tabs optimize
  900. AC_MSG_CHECKING(if you want hard-tabs code)
  901. AC_ARG_ENABLE(hard-tabs,
  902. [ --enable-hard-tabs compile with hard-tabs code],,
  903. [enable_hard_tabs=$with_develop])
  904. AC_MSG_RESULT($enable_hard_tabs)
  905. test "$enable_hard_tabs" = yes && AC_DEFINE(USE_HARD_TABS)
  906. ### use option --enable-xmc-glitch to turn on use of magic-cookie optimize
  907. AC_MSG_CHECKING(if you want limited support for xmc)
  908. AC_ARG_ENABLE(xmc-glitch,
  909. [ --enable-xmc-glitch compile with support for xmc (magic-cookie)],,
  910. [enable_xmc_glitch=$with_develop])
  911. AC_MSG_RESULT($enable_xmc_glitch)
  912. test "$enable_xmc_glitch" = yes && AC_DEFINE(USE_XMC_SUPPORT)
  913. ###############################################################################
  914. # These are just experimental, probably should not be in a package:
  915. CF_HELP_MESSAGE(Experimental Code:)
  916. AC_MSG_CHECKING(if you do not want to assume colors are white-on-black)
  917. AC_ARG_ENABLE(assumed-color,
  918. [ --disable-assumed-color do not assume anything about default-colors],
  919. [with_assumed_color=$enableval],
  920. [with_assumed_color=yes])
  921. AC_MSG_RESULT($with_assumed_color)
  922. test "$with_assumed_color" = yes && AC_DEFINE(USE_ASSUMED_COLOR)
  923. ### use option --enable-hashmap to turn on use of hashmap scrolling logic
  924. AC_MSG_CHECKING(if you want hashmap scrolling-optimization code)
  925. AC_ARG_ENABLE(hashmap,
  926. [ --disable-hashmap compile without hashmap scrolling-optimization],
  927. [with_hashmap=$enableval],
  928. [with_hashmap=yes])
  929. AC_MSG_RESULT($with_hashmap)
  930. test "$with_hashmap" = yes && AC_DEFINE(USE_HASHMAP)
  931. ### use option --enable-colorfgbg to turn on use of $COLORFGBG environment
  932. AC_MSG_CHECKING(if you want colorfgbg code)
  933. AC_ARG_ENABLE(colorfgbg,
  934. [ --enable-colorfgbg compile-in experimental $COLORFGBG code],
  935. [with_colorfgbg=$enableval],
  936. [with_colorfgbg=no])
  937. AC_MSG_RESULT($with_colorfgbg)
  938. test "$with_colorfgbg" = yes && AC_DEFINE(USE_COLORFGBG)
  939. ### use option --enable-interop to turn on use of bindings used for interop
  940. AC_MSG_CHECKING(if you want interop bindings)
  941. AC_ARG_ENABLE(interop,
  942. [ --enable-interop compile-in experimental interop bindings],
  943. [with_exp_interop=$enableval],
  944. [with_exp_interop=no])
  945. AC_MSG_RESULT($with_exp_interop)
  946. NCURSES_INTEROP_FUNCS=0
  947. test "$with_exp_interop" = yes && NCURSES_INTEROP_FUNCS=1
  948. AC_SUBST(NCURSES_INTEROP_FUNCS)
  949. # This is still experimental (20080329), but should ultimately be moved to
  950. # the script-block --with-normal, etc.
  951. CF_WITH_PTHREAD
  952. if test "x$with_pthread" != xno; then
  953. AC_CHECK_FUNC(pthread_kill,[
  954. AC_MSG_CHECKING(if you want to allow EINTR in wgetch with pthreads)
  955. AC_ARG_ENABLE(pthreads-eintr,
  956. [ --enable-pthreads-eintr enable EINTR in wgetch with pthreads],
  957. [use_pthreads_eintr=$enableval],
  958. [use_pthreads_eintr=no])
  959. AC_MSG_RESULT($use_pthreads_eintr)
  960. if test $use_pthreads_eintr = yes ; then
  961. AC_DEFINE(USE_PTHREADS_EINTR)
  962. fi])
  963. AC_MSG_CHECKING(if you want to use weak-symbols for pthreads)
  964. AC_ARG_ENABLE(weak-symbols,
  965. [ --enable-weak-symbols enable weak-symbols for pthreads],
  966. [use_weak_symbols=$enableval],
  967. [use_weak_symbols=no])
  968. AC_MSG_RESULT($use_weak_symbols)
  969. if test "$use_weak_symbols" = yes ; then
  970. CF_WEAK_SYMBOLS
  971. else
  972. cf_cv_weak_symbols=no
  973. fi
  974. if test $cf_cv_weak_symbols = yes ; then
  975. AC_DEFINE(USE_WEAK_SYMBOLS)
  976. fi
  977. fi
  978. PTHREAD=
  979. if test "$with_pthread" = "yes" ; then
  980. AC_DEFINE(USE_PTHREADS)
  981. enable_reentrant=yes
  982. if test $cf_cv_weak_symbols = yes ; then
  983. PTHREAD=-lpthread
  984. fi
  985. fi
  986. AC_SUBST(PTHREAD)
  987. # Reentrant code has to be opaque; there's little advantage to making ncurses
  988. # opaque outside of that, so there is no --enable-opaque option. We can use
  989. # this option without --with-pthreads, but this will be always set for
  990. # pthreads.
  991. AC_MSG_CHECKING(if you want experimental reentrant code)
  992. AC_ARG_ENABLE(reentrant,
  993. [ --enable-reentrant compile with experimental reentrant code],
  994. [with_reentrant=$enableval],
  995. [with_reentrant=no])
  996. AC_MSG_RESULT($with_reentrant)
  997. if test "$with_reentrant" = yes ; then
  998. cf_cv_enable_reentrant=1
  999. cf_cv_enable_opaque="NCURSES_INTERNALS"
  1000. NCURSES_OPAQUE=1
  1001. NCURSES_SIZE_T=int
  1002. if test $cf_cv_weak_symbols = yes ; then
  1003. CF_REMOVE_LIB(LIBS,$LIBS,pthread)
  1004. CF_ADD_LIB(pthread,TEST_LIBS)
  1005. CF_ADD_LIB(pthread,TEST_LIBS2)
  1006. else
  1007. LIB_SUFFIX="t${LIB_SUFFIX}"
  1008. fi
  1009. AC_DEFINE(USE_REENTRANT)
  1010. CF_NCURSES_ABI_6
  1011. else
  1012. cf_cv_enable_reentrant=0
  1013. cf_cv_enable_opaque="NCURSES_OPAQUE"
  1014. NCURSES_OPAQUE=0
  1015. NCURSES_SIZE_T=short
  1016. fi
  1017. AC_SUBST(cf_cv_enable_reentrant)
  1018. AC_SUBST(cf_cv_enable_opaque)
  1019. AC_SUBST(NCURSES_OPAQUE)
  1020. AC_SUBST(NCURSES_SIZE_T)
  1021. ### Allow using a different wrap-prefix
  1022. if test "$cf_cv_enable_reentrant" != 0 || test "$BROKEN_LINKER" = 1 ; then
  1023. AC_MSG_CHECKING(for prefix used to wrap public variables)
  1024. AC_ARG_WITH(wrap-prefix,
  1025. [ --with-wrap-prefix=XXX override prefix used for public variables],
  1026. [NCURSES_WRAP_PREFIX=$withval],
  1027. [NCURSES_WRAP_PREFIX=_nc_])
  1028. AC_MSG_RESULT($NCURSES_WRAP_PREFIX)
  1029. else
  1030. NCURSES_WRAP_PREFIX=_nc_
  1031. fi
  1032. AC_SUBST(NCURSES_WRAP_PREFIX)
  1033. AC_DEFINE_UNQUOTED(NCURSES_WRAP_PREFIX,"$NCURSES_WRAP_PREFIX")
  1034. AC_MSG_CHECKING(if you want experimental safe-sprintf code)
  1035. AC_ARG_ENABLE(safe-sprintf,
  1036. [ --enable-safe-sprintf compile with experimental safe-sprintf code],
  1037. [with_safe_sprintf=$enableval],
  1038. [with_safe_sprintf=no])
  1039. AC_MSG_RESULT($with_safe_sprintf)
  1040. test "$with_safe_sprintf" = yes && AC_DEFINE(USE_SAFE_SPRINTF)
  1041. ### use option --disable-scroll-hints to turn off use of scroll-hints scrolling logic
  1042. # when hashmap is used scroll hints are useless
  1043. if test "$with_hashmap" = no ; then
  1044. AC_MSG_CHECKING(if you want to experiment without scrolling-hints code)
  1045. AC_ARG_ENABLE(scroll-hints,
  1046. [ --disable-scroll-hints compile without scroll-hints code],
  1047. [with_scroll_hints=$enableval],
  1048. [with_scroll_hints=yes])
  1049. AC_MSG_RESULT($with_scroll_hints)
  1050. test "$with_scroll_hints" = yes && AC_DEFINE(USE_SCROLL_HINTS)
  1051. fi
  1052. AC_MSG_CHECKING(if you want experimental wgetch-events code)
  1053. AC_ARG_ENABLE(wgetch-events,
  1054. [ --enable-wgetch-events compile with experimental wgetch-events code],
  1055. [with_wgetch_events=$enableval],
  1056. [with_wgetch_events=no])
  1057. AC_MSG_RESULT($with_wgetch_events)
  1058. test "$with_wgetch_events" = yes && AC_DEFINE(NCURSES_WGETCH_EVENTS)
  1059. ###############################################################################
  1060. CF_HELP_MESSAGE(Testing/development Options:)
  1061. ### use option --disable-echo to suppress full display compiling commands
  1062. AC_MSG_CHECKING(if you want to display full commands during build)
  1063. AC_ARG_ENABLE(echo,
  1064. [ --enable-echo build: display "compiling" commands (default)],
  1065. [with_echo=$enableval],
  1066. [with_echo=yes])
  1067. if test "$with_echo" = yes; then
  1068. ECHO_LINK=
  1069. else
  1070. ECHO_LINK='@ echo linking $@ ... ;'
  1071. test -n "$LIBTOOL" && LIBTOOL="$LIBTOOL --silent"
  1072. test -n "$LIBTOOL_CXX" && LIBTOOL_CXX="$LIBTOOL_CXX --silent"
  1073. fi
  1074. AC_MSG_RESULT($with_echo)
  1075. AC_SUBST(ECHO_LINK)
  1076. ### use option --enable-warnings to turn on all gcc warnings
  1077. AC_MSG_CHECKING(if you want to see compiler warnings)
  1078. AC_ARG_ENABLE(warnings,
  1079. [ --enable-warnings build: turn on GCC compiler warnings],
  1080. [with_warnings=$enableval])
  1081. AC_MSG_RESULT($with_warnings)
  1082. if test "x$with_warnings" = "xyes"; then
  1083. CF_ADD_ADAFLAGS(-gnatg)
  1084. CF_GCC_WARNINGS(Wdeclaration-after-statement Wextra Wno-unknown-pragmas Wswitch-enum)
  1085. if test "$cf_with_cxx" = yes ; then
  1086. CF_GXX_WARNINGS(Wno-unused)
  1087. fi
  1088. fi
  1089. CF_GCC_ATTRIBUTES
  1090. ### use option --enable-assertions to turn on generation of assertion code
  1091. AC_MSG_CHECKING(if you want to enable runtime assertions)
  1092. AC_ARG_ENABLE(assertions,
  1093. [ --enable-assertions test: turn on generation of assertion code],
  1094. [with_assertions=$enableval],
  1095. [with_assertions=no])
  1096. AC_MSG_RESULT($with_assertions)
  1097. if test -n "$GCC"
  1098. then
  1099. if test "$with_assertions" = no
  1100. then
  1101. AC_DEFINE(NDEBUG)
  1102. CPPFLAGS="$CPPFLAGS -DNDEBUG"
  1103. else
  1104. CF_ADD_ADAFLAGS(-gnata)
  1105. fi
  1106. fi
  1107. ### use option --disable-leaks to suppress "permanent" leaks, for testing
  1108. CF_DISABLE_LEAKS
  1109. AC_DEFINE(HAVE_NC_ALLOC_H)
  1110. ### use option --enable-expanded to generate certain macros as functions
  1111. AC_ARG_ENABLE(expanded,
  1112. [ --enable-expanded test: generate functions for certain macros],
  1113. [test "$enableval" = yes && AC_DEFINE(NCURSES_EXPANDED)])
  1114. ### use option --disable-macros to suppress macros in favor of functions
  1115. AC_ARG_ENABLE(macros,
  1116. [ --disable-macros test: use functions rather than macros],
  1117. [test "$enableval" = no && AC_DEFINE(NCURSES_NOMACROS)])
  1118. # Normally we only add trace() to the debug-library. Allow this to be
  1119. # extended to all models of the ncurses library:
  1120. cf_all_traces=no
  1121. case "$CFLAGS $CPPFLAGS" in
  1122. *-DTRACE*)
  1123. cf_all_traces=yes
  1124. ;;
  1125. esac
  1126. AC_MSG_CHECKING(whether to add trace feature to all models)
  1127. AC_ARG_WITH(trace,
  1128. [ --with-trace test: add trace() function to all models of ncurses],
  1129. [cf_with_trace=$withval],
  1130. [cf_with_trace=$cf_all_traces])
  1131. AC_MSG_RESULT($cf_with_trace)
  1132. if test "$cf_with_trace" = yes ; then
  1133. LIB_TRACING=all
  1134. ADA_TRACE=TRUE
  1135. CF_ADD_CFLAGS(-DTRACE)
  1136. else
  1137. LIB_TRACING=DEBUG
  1138. ADA_TRACE=FALSE
  1139. fi
  1140. AC_SUBST(ADA_TRACE)
  1141. ### Checks for libraries.
  1142. case $cf_cv_system_name in #(vi
  1143. *mingw32*) #(vi
  1144. ;;
  1145. *)
  1146. AC_CHECK_FUNC(gettimeofday,
  1147. AC_DEFINE(HAVE_GETTIMEOFDAY),[
  1148. AC_CHECK_LIB(bsd, gettimeofday,
  1149. AC_DEFINE(HAVE_GETTIMEOFDAY)
  1150. CF_ADD_LIB(bsd))])dnl CLIX: bzero, select, gettimeofday
  1151. ;;
  1152. esac
  1153. CF_MATH_LIB(MATH_LIB,sin(x))
  1154. AC_SUBST(MATH_LIB)
  1155. ### Checks for header files.
  1156. AC_STDC_HEADERS
  1157. AC_HEADER_DIRENT
  1158. AC_HEADER_TIME
  1159. CF_REGEX
  1160. dnl These are some other potentially nonportable headers.
  1161. AC_CHECK_HEADERS( \
  1162. fcntl.h \
  1163. getopt.h \
  1164. limits.h \
  1165. locale.h \
  1166. math.h \
  1167. poll.h \
  1168. sys/bsdtypes.h \
  1169. sys/ioctl.h \
  1170. sys/param.h \
  1171. sys/poll.h \
  1172. sys/select.h \
  1173. sys/time.h \
  1174. sys/times.h \
  1175. ttyent.h \
  1176. unistd.h \
  1177. wctype.h \
  1178. )
  1179. # check for ISC (this may also define _POSIX_SOURCE)
  1180. # Note: even non-Posix ISC needs <sys/bsdtypes.h> to declare fd_set
  1181. if test "$ISC" = yes ; then
  1182. AC_CHECK_LIB(cposix,main)
  1183. AC_CHECK_LIB(inet,bzero,CF_ADD_LIB(inet))dnl also 'select()'
  1184. fi
  1185. CF_SYS_TIME_SELECT
  1186. ### checks for compiler characteristics
  1187. AC_LANG_C
  1188. AC_C_CONST
  1189. CF_C_INLINE(NCURSES_INLINE,1200)
  1190. CF_SIG_ATOMIC_T
  1191. if test $NCURSES_CHTYPE = auto ; then
  1192. CF_TYPEOF_CHTYPE
  1193. else
  1194. cf_cv_typeof_chtype=$NCURSES_CHTYPE
  1195. fi
  1196. test "$cf_cv_typeof_chtype" = unsigned && cf_cv_typeof_chtype=""
  1197. AC_SUBST(cf_cv_typeof_chtype)
  1198. CF_UNSIGNED_LITERALS
  1199. cf_cv_1UL="1"
  1200. test ".$cf_cv_unsigned_literals" = .yes && cf_cv_1UL="${cf_cv_1UL}U"
  1201. test ".$cf_cv_typeof_chtype" = .long && cf_cv_1UL="${cf_cv_1UL}L"
  1202. AC_SUBST(cf_cv_1UL)
  1203. if test $NCURSES_MMASK_T = auto ; then
  1204. cf_cv_typeof_mmask_t=long
  1205. else
  1206. cf_cv_typeof_mmask_t=$NCURSES_MMASK_T
  1207. fi
  1208. test "$cf_cv_typeof_mmask_t" = unsigned && cf_cv_typeof_mmask_t=""
  1209. AC_SUBST(cf_cv_typeof_mmask_t)
  1210. ### Checks for external-data
  1211. CF_ERRNO
  1212. CF_LINK_DATAONLY
  1213. ### Checks for library functions.
  1214. AC_CHECK_FUNCS( \
  1215. getcwd \
  1216. getegid \
  1217. geteuid \
  1218. getttynam \
  1219. issetugid \
  1220. poll \
  1221. remove \
  1222. select \
  1223. setbuf \
  1224. setbuffer \
  1225. setvbuf \
  1226. sigaction \
  1227. sigvec \
  1228. strdup \
  1229. strstr \
  1230. tcgetpgrp \
  1231. times \
  1232. vsnprintf \
  1233. )
  1234. if test "$with_getcap" = "yes" ; then
  1235. CF_CGETENT
  1236. fi
  1237. CF_ISASCII
  1238. CF_STRUCT_SIGACTION
  1239. CF_FUNC_NANOSLEEP
  1240. CF_FUNC_TERMIOS
  1241. CF_FUNC_VSSCANF
  1242. CF_MKSTEMP
  1243. # setup for prototype of fallback for vsscanf()
  1244. CF_SUBST_IF(["$cf_cv_func_vsscanf" = vsscanf], HAVE_VSSCANF, 1, 0)
  1245. dnl FIXME (may need this) AC_SYS_RESTARTABLE_SYSCALLS
  1246. if test "$cross_compiling" = yes ; then
  1247. AC_MSG_WARN(cross compiling: assume setvbuf params not reversed)
  1248. else
  1249. AC_FUNC_SETVBUF_REVERSED
  1250. fi
  1251. AC_TYPE_SIGNAL
  1252. CF_TYPE_SIGACTION
  1253. CF_SIZECHANGE
  1254. CF_FUNC_MEMMOVE
  1255. CF_FUNC_POLL
  1256. CF_VA_COPY
  1257. AC_FUNC_VFORK
  1258. # special check for test/ditto.c
  1259. CF_FUNC_OPENPTY
  1260. if test "$cf_cv_func_openpty" != no ; then
  1261. AC_DEFINE_UNQUOTED(USE_OPENPTY_HEADER,<$cf_cv_func_openpty>)
  1262. AC_DEFINE(USE_XTERM_PTY)
  1263. if test "$cf_cv_lib_util" = yes ; then
  1264. CF_ADD_LIB(util,TEST_LIBS)
  1265. fi
  1266. fi
  1267. AC_SUBST(TEST_LIBS)
  1268. AC_SUBST(TEST_LIBS2)
  1269. if test "$with_hashed_db" != no ; then
  1270. AC_DEFINE(USE_HASHED_DB)
  1271. CF_HASHED_DB($with_hashed_db)
  1272. fi
  1273. dnl We'll do our own -g libraries, unless the user's overridden via $CFLAGS
  1274. if test -z "$cf_user_CFLAGS" && test "$with_no_leaks" = no ; then
  1275. CF_STRIP_G_OPT(CFLAGS)
  1276. CF_STRIP_G_OPT(CXXFLAGS)
  1277. fi
  1278. # Just in case, check if the C compiler has a bool type.
  1279. CF_BOOL_DECL(cf_cv_cc_bool_type)
  1280. # Check for C++ compiler characteristics (and ensure that it's there!)
  1281. if test -n "$CXX" ; then
  1282. AC_LANG_CPLUSPLUS
  1283. CF_STDCPP_LIBRARY
  1284. CF_PROG_CC_C_O(CXX)
  1285. case $GXX_VERSION in
  1286. 1*|2.[0-6]*)
  1287. cf_cxx_library=yes
  1288. ;;
  1289. *-2.7*|2.7*)
  1290. CF_GPP_LIBRARY
  1291. ;;
  1292. *)
  1293. cf_cxx_library=no
  1294. ;;
  1295. esac
  1296. AC_CHECK_HEADERS(iostream typeinfo)
  1297. if test x"$ac_cv_header_iostream" = xyes ; then
  1298. AC_MSG_CHECKING(if iostream uses std-namespace)
  1299. AC_TRY_COMPILE([
  1300. #include <iostream>
  1301. using std::endl;
  1302. using std::cerr;],[
  1303. cerr << "testing" << endl;
  1304. ],[cf_iostream_namespace=yes],[cf_iostream_namespace=no])
  1305. AC_MSG_RESULT($cf_iostream_namespace)
  1306. if test "$cf_iostream_namespace" = yes ; then
  1307. AC_DEFINE(IOSTREAM_NAMESPACE)
  1308. fi
  1309. fi
  1310. CF_BOOL_DECL
  1311. CF_BOOL_SIZE
  1312. CF_ETIP_DEFINES
  1313. CF_CPP_PARAM_INIT
  1314. CF_CPP_STATIC_CAST
  1315. CXX_AR='$(AR)'
  1316. CXX_ARFLAGS='$(ARFLAGS)'
  1317. case $cf_cv_system_name in #(vi
  1318. irix*) #(vi
  1319. if test "$GXX" != yes ; then
  1320. CXX_AR='$(CXX)'
  1321. CXX_ARFLAGS='-ar -o'
  1322. fi
  1323. ;;
  1324. sco3.2v5*) #(vi
  1325. CXXLDFLAGS="-u main"
  1326. ;;
  1327. solaris2*)
  1328. if test "$GXX" != yes ; then
  1329. CXX_AR='$(CXX)'
  1330. CXX_ARFLAGS='-xar -o'
  1331. fi
  1332. ;;
  1333. esac
  1334. AC_SUBST(CXXLDFLAGS)
  1335. AC_SUBST(CXX_AR)
  1336. AC_SUBST(CXX_ARFLAGS)
  1337. else
  1338. cf_cxx_library=no
  1339. cf_cv_builtin_bool=1
  1340. # Just because we are not configuring against C++ right now does not
  1341. # mean that a user will not want to use C++. Some distributors disable
  1342. # the C++ portion of this configuration as a shortcut (or just to avoid
  1343. # compiling the demo in the c++ directory). So we need a reasonable
  1344. # default for the 'bool' type.
  1345. #
  1346. # Caveat: since the storage of the bool type is not standardized, it
  1347. # may change.
  1348. if test "$NCURSES_BOOL" != auto ; then
  1349. cf_cv_type_of_bool=$NCURSES_BOOL
  1350. cf_cv_header_stdbool_h=0
  1351. else
  1352. if test "$cf_cv_header_stdbool_h" = 1 ; then
  1353. CF_BOOL_SIZE
  1354. else
  1355. AC_MSG_CHECKING(for fallback type of bool)
  1356. case "$host_cpu" in #(vi
  1357. i?86) cf_cv_type_of_bool=char ;; #(vi
  1358. *) cf_cv_type_of_bool=int ;;
  1359. esac
  1360. AC_MSG_RESULT($cf_cv_type_of_bool)
  1361. fi
  1362. fi
  1363. fi
  1364. AC_SUBST(CXXLIBS)
  1365. # If the C compiler did not declare bool, and we did not determine that the C++
  1366. # compiler does not declare bool, turn on an ifdef in curses.h that makes the
  1367. # ncurses library use the same type as C++ bool. Note that this allows one to
  1368. # specify the type of bool in a configure-script option and postpone
  1369. # integration with the C++ compiler provided that the types are compatible.
  1370. USE_CXX_BOOL=1
  1371. if test $cf_cv_cc_bool_type = 1
  1372. then
  1373. # oops: C has a bool. Unlikely, but C++ could differ.
  1374. USE_CXX_BOOL=0
  1375. elif test $cf_cv_builtin_bool = 0
  1376. then
  1377. # C++ has no bool
  1378. USE_CXX_BOOL=0
  1379. else
  1380. # this is the normal case
  1381. USE_CXX_BOOL='defined(__cplusplus)'
  1382. fi
  1383. AC_SUBST(USE_CXX_BOOL)
  1384. CF_HELP_MESSAGE(Ada95 Binding Options:)
  1385. dnl If the Ada95 source-tree is present, add that to the build unless it will
  1386. dnl not work, or was not requested.
  1387. if test -f "${srcdir}/Ada95/Makefile.in" ; then
  1388. dnl libtool does not know anything about GNAT, though a change made in 1998
  1389. dnl provided for it "someday". Disable the ada subtree if we are using
  1390. dnl libtool -TD 20070714
  1391. if test "$cf_with_ada" != "no" ; then
  1392. if test "$with_libtool" != "no"; then
  1393. AC_MSG_WARN(libtool does not support Ada - disabling feature)
  1394. cf_with_ada=no
  1395. fi
  1396. fi
  1397. dnl Check for availability of GNU Ada Translator (GNAT).
  1398. dnl At the moment we support no other Ada95 compiler.
  1399. if test "$cf_with_ada" != "no" ; then
  1400. CF_PROG_GNAT
  1401. if test "$cf_cv_prog_gnat_correct" = yes; then
  1402. CF_ADD_ADAFLAGS(-gnatpn)
  1403. # make ADAFLAGS consistent with CFLAGS
  1404. case "$CFLAGS" in
  1405. *-g*)
  1406. CF_ADD_ADAFLAGS(-g)
  1407. ;;
  1408. esac
  1409. case "$CFLAGS" in
  1410. *-O*)
  1411. CF_ADD_ADAFLAGS(-O3)
  1412. ;;
  1413. esac
  1414. CF_GNAT_GENERICS
  1415. CF_GNAT_SIGINT
  1416. CF_GNAT_PRAGMA_UNREF
  1417. CF_GNAT_PROJECTS
  1418. CF_WITH_ADA_COMPILER
  1419. cf_ada_package=terminal_interface
  1420. AC_SUBST(cf_ada_package)
  1421. CF_WITH_ADA_INCLUDE
  1422. CF_WITH_ADA_OBJECTS
  1423. CF_WITH_ADA_SHAREDLIB
  1424. fi
  1425. fi
  1426. else
  1427. cf_with_ada=no
  1428. fi
  1429. ### Construct the ncurses library-subsets, if any, from this set of keywords:
  1430. ### none, base, ext_funcs, ext_tinfo, ticlib, termlib, widechar
  1431. ###
  1432. ### ticlib modules may be a separate library, otherwise contained in termlib.
  1433. ### termlib modules may be a separate library, otherwise contained in ncurses.
  1434. ###
  1435. ### The of "+" or " " between the tokens controls the way the script
  1436. ### chooses to split module lists into libraries.
  1437. ###
  1438. ### (see CF_LIB_RULES).
  1439. AC_MSG_CHECKING(for library subsets)
  1440. LIB_SUBSETS=
  1441. if test "$cf_with_progs" = yes || test "$with_ticlib" != no || test "$with_termcap" != no; then
  1442. LIB_SUBSETS="${LIB_SUBSETS}ticlib"
  1443. if test "$with_ticlib" != no ; then
  1444. LIB_SUBSETS="${LIB_SUBSETS} "
  1445. else
  1446. LIB_SUBSETS="${LIB_SUBSETS}+"
  1447. fi
  1448. fi
  1449. LIB_SUBSETS="${LIB_SUBSETS}termlib"
  1450. test "$with_ext_funcs" = yes && LIB_SUBSETS="${LIB_SUBSETS}+ext_tinfo"
  1451. if test "$with_termlib" != no ; then
  1452. LIB_SUBSETS="${LIB_SUBSETS} "
  1453. else
  1454. LIB_SUBSETS="${LIB_SUBSETS}+"
  1455. fi
  1456. LIB_SUBSETS="${LIB_SUBSETS}base"
  1457. # Most term-driver calls are to tinfo, but some like init_pair are to the
  1458. # base library (so it resides in base).
  1459. if test "$with_term_driver" != no ; then
  1460. LIB_SUBSETS="${LIB_SUBSETS}+port_drivers"
  1461. case $cf_cv_system_name in #(vi
  1462. *mingw32*) #(vi
  1463. LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo+port_win32con"
  1464. ;;
  1465. *) #(vi
  1466. LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo"
  1467. ;;
  1468. esac
  1469. fi
  1470. test "$with_widec" = yes && LIB_SUBSETS="${LIB_SUBSETS}+widechar"
  1471. test "$with_ext_funcs" = yes && LIB_SUBSETS="${LIB_SUBSETS}+ext_funcs"
  1472. AC_MSG_RESULT($LIB_SUBSETS)
  1473. ### Construct the list of include-directories to be generated
  1474. CF_INCLUDE_DIRS
  1475. CF_ADA_INCLUDE_DIRS
  1476. ### Build up pieces for makefile rules
  1477. AC_MSG_CHECKING(default library suffix)
  1478. CF_LIB_TYPE($DFT_LWR_MODEL,DFT_ARG_SUFFIX)dnl
  1479. AC_SUBST(DFT_ARG_SUFFIX)dnl the string to append to "-lncurses" ("")
  1480. AC_MSG_RESULT($DFT_ARG_SUFFIX)
  1481. AC_MSG_CHECKING(default library-dependency suffix)
  1482. CF_LIB_SUFFIX($DFT_LWR_MODEL,DFT_LIB_SUFFIX,DFT_DEP_SUFFIX)dnl
  1483. AC_SUBST(DFT_DEP_SUFFIX)dnl the corresponding library-suffix (".a")
  1484. AC_MSG_RESULT($DFT_DEP_SUFFIX)
  1485. AC_MSG_CHECKING(default object directory)
  1486. CF_OBJ_SUBDIR($DFT_LWR_MODEL,DFT_OBJ_SUBDIR)dnl
  1487. AC_SUBST(DFT_OBJ_SUBDIR)dnl the default object-directory ("obj")
  1488. AC_MSG_RESULT($DFT_OBJ_SUBDIR)
  1489. # libtool thinks it can make c++ shared libraries (perhaps only g++)
  1490. if test "$cf_with_cxx" = yes ; then
  1491. AC_MSG_CHECKING(c++ library-dependency suffix)
  1492. if test "$with_libtool" != "no"; then
  1493. CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
  1494. else
  1495. CF_LIB_SUFFIX(normal,CXX_LIB_SUFFIX,CXX_DEP_SUFFIX)dnl we normally make a static library
  1496. fi
  1497. AC_MSG_RESULT($CXX_LIB_SUFFIX)
  1498. AC_SUBST(CXX_LIB_SUFFIX)
  1499. fi
  1500. # do not want -ldl in build except as needed for -lncurses dependency
  1501. if test "$with_dlsym" = yes ; then
  1502. if test $DFT_LWR_MODEL = shared || \
  1503. test $DFT_LWR_MODEL = libtool ; then
  1504. CF_REMOVE_LIB(LIBS,$LIBS,dl)
  1505. fi
  1506. fi
  1507. ### Set up low-level terminfo dependencies for makefiles.
  1508. # TICS_LIST and TINFO_LIST are needed to build libtic.so and libterm.so, but
  1509. # do not need libdl
  1510. TICS_LIST=
  1511. if test "$with_dlsym" = yes ; then
  1512. CF_REMOVE_LIB(TINFO_LIST,$SHLIB_LIST,dl)
  1513. fi
  1514. if test "$with_ticlib" != no ; then
  1515. if test "$with_ticlib" != yes ; then
  1516. TICS_NAME=$with_ticlib
  1517. TICS_ARG_SUFFIX="${with_ticlib}`echo ${DFT_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
  1518. TICS_DEP_SUFFIX="${with_ticlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
  1519. TICS_LIB_SUFFIX="${with_ticlib}"
  1520. else
  1521. TICS_ARG_SUFFIX="${TICS_NAME}${DFT_ARG_SUFFIX}"
  1522. TICS_DEP_SUFFIX="${TICS_NAME}${DFT_DEP_SUFFIX}"
  1523. TICS_LIB_SUFFIX="${TICS_NAME}${LIB_SUFFIX}"
  1524. fi
  1525. TICS_ARGS="-L${LIB_DIR} -l${TICS_LIB_SUFFIX}"
  1526. else
  1527. TICS_ARGS="-L${LIB_DIR} -l${LIB_NAME}${DFT_ARG_SUFFIX}"
  1528. fi
  1529. AC_SUBST(TICS_ARG_SUFFIX)
  1530. AC_SUBST(TICS_DEP_SUFFIX)
  1531. AC_SUBST(TICS_LIB_SUFFIX)
  1532. AC_SUBST(TICS_ARGS)
  1533. if test "$with_termlib" != no ; then
  1534. if test "$with_termlib" != yes ; then
  1535. TINFO_NAME=$with_termlib
  1536. TINFO_SUFFIX="`echo ${DFT_LIB_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
  1537. TINFO_ARG_SUFFIX="${with_termlib}`echo ${DFT_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
  1538. TINFO_DEP_SUFFIX="${with_termlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
  1539. TINFO_LIB_SUFFIX="${with_termlib}"
  1540. else
  1541. TINFO_SUFFIX=${DFT_LIB_SUFFIX}
  1542. TINFO_ARG_SUFFIX="${TINFO_NAME}${DFT_ARG_SUFFIX}"
  1543. TINFO_DEP_SUFFIX="${TINFO_NAME}${DFT_DEP_SUFFIX}"
  1544. TINFO_LIB_SUFFIX="${TINFO_NAME}${LIB_SUFFIX}"
  1545. fi
  1546. TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
  1547. TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
  1548. if test "$DFT_LWR_MODEL" = "libtool"; then
  1549. TEST_ARGS="${TEST_DEPS}"
  1550. TEST_ARG2="${TEST_DEP2}"
  1551. TINFO_ARGS="-L${LIB_DIR} $TEST_ARGS"
  1552. TICS_LIST="$SHLIB_LIST $TEST_ARGS"
  1553. SHLIB_LIST="${SHLIB_LIST} $TEST_ARGS"
  1554. else
  1555. TEST_ARGS="-l${TINFO_ARG_SUFFIX}"
  1556. TEST_ARG2="-l${TINFO_ARG_SUFFIX}"
  1557. TICS_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
  1558. TINFO_ARGS="-L${LIB_DIR} $TEST_ARGS"
  1559. SHLIB_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
  1560. fi
  1561. else
  1562. # the next lines are needed for linking libtic over libncurses
  1563. TINFO_NAME=${LIB_NAME}
  1564. TINFO_SUFFIX=${DFT_LIB_SUFFIX}
  1565. TINFO_ARG_SUFFIX=${LIB_NAME}${DFT_ARG_SUFFIX}
  1566. if test "$with_tic_depends" = yes ; then
  1567. TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${DFT_ARG_SUFFIX}"
  1568. else
  1569. TICS_LIST="$SHLIB_LIST"
  1570. fi
  1571. TINFO_ARGS="-L${LIB_DIR} -l${LIB_NAME}${DFT_ARG_SUFFIX}"
  1572. fi
  1573. if test "$DFT_LWR_MODEL" = shared ; then
  1574. case $cf_cv_system_name in #(vi
  1575. cygwin*)
  1576. # "lib" files have ".dll.a" suffix, "cyg" files have ".dll"
  1577. TINFO_SUFFIX=.dll
  1578. ;;
  1579. esac
  1580. fi
  1581. AC_SUBST(TINFO_ARG_SUFFIX)
  1582. AC_SUBST(TINFO_DEP_SUFFIX)
  1583. AC_SUBST(TINFO_LIB_SUFFIX)
  1584. AC_SUBST(TINFO_ARGS)
  1585. if test "$with_dlsym" = yes ; then
  1586. CF_REMOVE_LIB(TICS_LIST,$TICS_LIST,dl)
  1587. fi
  1588. if test "$DFT_LWR_MODEL" = "libtool"; then
  1589. OBJEXT=lo
  1590. fi
  1591. # needed for Ada95
  1592. TINFO_ARGS2=`echo "$TINFO_ARGS" | sed -e 's,-L\.\./,-L../../,'`
  1593. AC_SUBST(TINFO_ARGS2)
  1594. case $DFT_LWR_MODEL in
  1595. normal|debug|profile)
  1596. CF_LDFLAGS_STATIC
  1597. ;;
  1598. esac
  1599. AC_MSG_CHECKING(where we will install curses.h)
  1600. test "$with_overwrite" = no && \
  1601. test "x$includedir" = 'x${prefix}/include' && \
  1602. includedir='${prefix}/include/ncurses'${LIB_SUFFIX}
  1603. AC_MSG_RESULT($includedir)
  1604. ### Resolve a conflict between normal and wide-curses by forcing applications
  1605. ### that will need libutf8 to add it to their configure script.
  1606. if test "$with_overwrite" != no ; then
  1607. if test "$NCURSES_LIBUTF8" = 1 ; then
  1608. NCURSES_LIBUTF8='defined(HAVE_LIBUTF8_H)'
  1609. AC_MSG_WARN(Wide-character applications must define HAVE_LIBUTF8_H to include curses.h)
  1610. fi
  1611. fi
  1612. WITH_OVERWRITE=$with_overwrite
  1613. AC_SUBST(WITH_OVERWRITE)
  1614. AC_SUBST(TICS_LIST)
  1615. AC_SUBST(TINFO_LIST)
  1616. AC_SUBST(SHLIB_LIST)
  1617. # used to separate tack out of the tree
  1618. NCURSES_TREE=
  1619. AC_SUBST(NCURSES_TREE)
  1620. ### predefined stuff for the test programs
  1621. AC_DEFINE(HAVE_SLK_COLOR)
  1622. ### Construct the list of subdirectories for which we'll customize makefiles
  1623. ### with the appropriate compile-rules.
  1624. CF_SRC_MODULES($modules_to_build)
  1625. if test "$cf_with_ada" != "no" && test "$cf_cv_prog_gnat_correct" != "no"; then
  1626. SUB_MAKEFILES="$SUB_MAKEFILES Ada95/gen/adacurses${DFT_ARG_SUFFIX}-config:Ada95/gen/adacurses-config.in"
  1627. SUB_MAKEFILES="$SUB_MAKEFILES man/adacurses${DFT_ARG_SUFFIX}-config.1:man/MKada_config.in"
  1628. fi
  1629. CF_DIRS_TO_MAKE
  1630. # symbols that differ when compiling Ada95 by itself.
  1631. NCURSES_SHLIB2='sh $(top_srcdir)/misc/shlib'
  1632. AC_SUBST(NCURSES_SHLIB2)
  1633. # values to use as strings
  1634. AC_DEFINE_UNQUOTED(NCURSES_PATHSEP,'$PATH_SEPARATOR')
  1635. AC_DEFINE_UNQUOTED(NCURSES_VERSION_STRING, "${NCURSES_MAJOR}.${NCURSES_MINOR}.${NCURSES_PATCH}")
  1636. ### Now that we're done running tests, add the compiler-warnings, if any
  1637. CF_ADD_CFLAGS($EXTRA_CFLAGS)
  1638. ### Define substitutions for header files to avoid name-pollution
  1639. CF_SUBST_IF(["$cf_cv_have_tcgetattr" = yes], HAVE_TCGETATTR, 1, 0)
  1640. CF_SUBST_IF(["$ac_cv_header_termio_h" = yes], HAVE_TERMIO_H, 1, 0)
  1641. CF_SUBST_IF(["$ac_cv_header_termios_h" = yes], HAVE_TERMIOS_H, 1, 0)
  1642. ################################################################################
  1643. test "$use_database" = yes && \
  1644. SUB_MAKEFILES="$SUB_MAKEFILES misc/run_tic.sh:misc/run_tic.in"
  1645. SUB_MAKEFILES="$SUB_MAKEFILES misc/ncurses-config:misc/ncurses-config.in"
  1646. SUB_MAKEFILES="$SUB_MAKEFILES man/ncurses${DFT_ARG_SUFFIX}${cf_cv_abi_version}-config.1:man/MKncu_config.in"
  1647. if test x"$enable_pc_files" = xyes ; then \
  1648. SUB_MAKEFILES="$SUB_MAKEFILES misc/gen-pkgconfig:misc/gen-pkgconfig.in"
  1649. MAKE_PC_FILES=
  1650. else
  1651. MAKE_PC_FILES="#"
  1652. fi
  1653. AC_SUBST(MAKE_PC_FILES)
  1654. AC_SUBST(cross_compiling)
  1655. AC_PATH_PROG(TIC_PATH,tic,unknown,$PATH:/usr/local/ncurses/bin)
  1656. if test -n "$FALLBACK_LIST"
  1657. then
  1658. if test "$TIC_PATH" = unknown
  1659. then
  1660. AC_MSG_WARN(no tic program found for fallbacks)
  1661. fi
  1662. fi
  1663. AC_SUBST(TIC_PATH)
  1664. if test "x$cf_with_tests" != xno ; then
  1665. MAKE_TESTS=
  1666. else
  1667. MAKE_TESTS="#"
  1668. fi
  1669. AC_SUBST(MAKE_TESTS)
  1670. ADAHTML_DIR=../../doc/html/ada
  1671. AC_SUBST(ADAHTML_DIR)
  1672. SUB_SCRIPTS=
  1673. case $cf_cv_system_name in #(vi
  1674. *mingw32*) #(vi
  1675. SUB_SCRIPTS="mk-dlls.sh"
  1676. ;;
  1677. esac
  1678. AC_OUTPUT( \
  1679. include/MKterm.h.awk \
  1680. include/curses.head:include/curses.h.in \
  1681. include/ncurses_dll.h \
  1682. include/termcap.h \
  1683. include/unctrl.h \
  1684. $SUB_SCRIPTS \
  1685. $SUB_MAKEFILES \
  1686. Makefile,[
  1687. if test "x$cf_with_tests" != xno ; then
  1688. CF_PRG_RULES([$srcdir/test/mk-test.awk INSTALL=no ECHO_LINK="$ECHO_LINK"], test)
  1689. fi
  1690. CF_LIB_RULES($SRC_SUBDIRS)
  1691. if test "x$cf_with_ada" != xno ; then
  1692. if test -z "$USE_OLD_MAKERULES" ; then
  1693. $AWK -f $srcdir/Ada95/mk-1st.awk <$srcdir/Ada95/src/modules >>Ada95/src/Makefile
  1694. fi
  1695. fi
  1696. ],[
  1697. ### Special initialization commands, used to pass information from the
  1698. ### configuration-run into config.status
  1699. AWK="$AWK"
  1700. DFT_ARG_SUFFIX="$DFT_ARG_SUFFIX"
  1701. DFT_LWR_MODEL="$DFT_LWR_MODEL"
  1702. ECHO_LINK="$ECHO_LINK"
  1703. LDCONFIG="$LDCONFIG"
  1704. LIBTOOL_VERSION="$LIBTOOL_VERSION"
  1705. LIB_NAME="$LIB_NAME"
  1706. LIB_SUBSETS="$LIB_SUBSETS"
  1707. LIB_SUFFIX="$LIB_SUFFIX"
  1708. LIB_TRACING="$LIB_TRACING"
  1709. LN_S="$LN_S"
  1710. MAKE_TERMINFO="$MAKE_TERMINFO"
  1711. NCURSES_MAJOR="$NCURSES_MAJOR"
  1712. NCURSES_MINOR="$NCURSES_MINOR"
  1713. NCURSES_OSPEED="$NCURSES_OSPEED"
  1714. NCURSES_PATCH="$NCURSES_PATCH"
  1715. SRC_SUBDIRS="$SRC_SUBDIRS"
  1716. TERMINFO="$TERMINFO"
  1717. TICS_ARG_SUFFIX="$TICS_ARG_SUFFIX"
  1718. TICS_LIB_SUFFIX="$TICS_LIB_SUFFIX"
  1719. TICS_NAME="$TICS_NAME"
  1720. TIC_PATH="$TIC_PATH"
  1721. TINFO_ARG_SUFFIX="$TINFO_ARG_SUFFIX"
  1722. TINFO_LIB_SUFFIX="$TINFO_LIB_SUFFIX"
  1723. TINFO_NAME="$TINFO_NAME"
  1724. TINFO_SUFFIX="$TINFO_SUFFIX"
  1725. USE_OLD_MAKERULES="$USE_OLD_MAKERULES"
  1726. WITH_CURSES_H="$with_curses_h"
  1727. WITH_ECHO="$with_echo"
  1728. WITH_OVERWRITE="$with_overwrite"
  1729. cf_LIST_MODELS="$cf_list_models"
  1730. cf_cv_abi_version="$cf_cv_abi_version"
  1731. cf_cv_do_relink="$cf_cv_do_relink"
  1732. cf_cv_do_symlinks="$cf_cv_do_symlinks"
  1733. cf_cv_enable_lp64="$cf_cv_enable_lp64"
  1734. cf_cv_enable_opaque="$cf_cv_enable_opaque"
  1735. cf_cv_prog_CC_c_o=$cf_cv_prog_CC_c_o
  1736. cf_cv_prog_CXX_c_o=$cf_cv_prog_CXX_c_o
  1737. cf_cv_rel_version="$cf_cv_rel_version"
  1738. cf_cv_rm_so_locs="$cf_cv_rm_so_locs"
  1739. cf_cv_shared_soname='$cf_cv_shared_soname'
  1740. cf_cv_shlib_version="$cf_cv_shlib_version"
  1741. cf_cv_shlib_version_infix="$cf_cv_shlib_version_infix"
  1742. cf_cv_system_name="$cf_cv_system_name"
  1743. cf_with_ada="$cf_with_ada"
  1744. cf_with_cxx_binding="$cf_with_cxx_binding"
  1745. cf_with_manpages="$cf_with_manpages"
  1746. cf_with_tests="$cf_with_tests"
  1747. host="$host"
  1748. target="$target"
  1749. ],cat)dnl
  1750. ${MAKE:-make} preinstall