configure 70 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated automatically using autoconf version 2.13
  4. # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  5. #
  6. # This configure script is free software; the Free Software Foundation
  7. # gives unlimited permission to copy, distribute and modify it.
  8. # Defaults:
  9. ac_help=
  10. ac_default_prefix=/usr/local
  11. # Any additions from configure.in:
  12. ac_help="$ac_help
  13. --disable-readline Disable readline compatibility"
  14. ac_help="$ac_help
  15. --enable-debug Enable debugging code"
  16. # Initialize some variables set by options.
  17. # The variables have the same names as the options, with
  18. # dashes changed to underlines.
  19. build=NONE
  20. cache_file=./config.cache
  21. exec_prefix=NONE
  22. host=NONE
  23. no_create=
  24. nonopt=NONE
  25. no_recursion=
  26. prefix=NONE
  27. program_prefix=NONE
  28. program_suffix=NONE
  29. program_transform_name=s,x,x,
  30. silent=
  31. site=
  32. srcdir=
  33. target=NONE
  34. verbose=
  35. x_includes=NONE
  36. x_libraries=NONE
  37. bindir='${exec_prefix}/bin'
  38. sbindir='${exec_prefix}/sbin'
  39. libexecdir='${exec_prefix}/libexec'
  40. datadir='${prefix}/share'
  41. sysconfdir='${prefix}/etc'
  42. sharedstatedir='${prefix}/com'
  43. localstatedir='${prefix}/var'
  44. libdir='${exec_prefix}/lib'
  45. includedir='${prefix}/include'
  46. oldincludedir='/usr/include'
  47. infodir='${prefix}/info'
  48. mandir='${prefix}/man'
  49. # Initialize some other variables.
  50. subdirs=
  51. MFLAGS= MAKEFLAGS=
  52. SHELL=${CONFIG_SHELL-/bin/sh}
  53. # Maximum number of lines to put in a shell here document.
  54. ac_max_here_lines=12
  55. ac_prev=
  56. for ac_option
  57. do
  58. # If the previous option needs an argument, assign it.
  59. if test -n "$ac_prev"; then
  60. eval "$ac_prev=\$ac_option"
  61. ac_prev=
  62. continue
  63. fi
  64. case "$ac_option" in
  65. -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  66. *) ac_optarg= ;;
  67. esac
  68. # Accept the important Cygnus configure options, so we can diagnose typos.
  69. case "$ac_option" in
  70. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  71. ac_prev=bindir ;;
  72. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  73. bindir="$ac_optarg" ;;
  74. -build | --build | --buil | --bui | --bu)
  75. ac_prev=build ;;
  76. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  77. build="$ac_optarg" ;;
  78. -cache-file | --cache-file | --cache-fil | --cache-fi \
  79. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  80. ac_prev=cache_file ;;
  81. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  82. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  83. cache_file="$ac_optarg" ;;
  84. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  85. ac_prev=datadir ;;
  86. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  87. | --da=*)
  88. datadir="$ac_optarg" ;;
  89. -disable-* | --disable-*)
  90. ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  91. # Reject names that are not valid shell variable names.
  92. if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  93. { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  94. fi
  95. ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  96. eval "enable_${ac_feature}=no" ;;
  97. -enable-* | --enable-*)
  98. ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  99. # Reject names that are not valid shell variable names.
  100. if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  101. { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  102. fi
  103. ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  104. case "$ac_option" in
  105. *=*) ;;
  106. *) ac_optarg=yes ;;
  107. esac
  108. eval "enable_${ac_feature}='$ac_optarg'" ;;
  109. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  110. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  111. | --exec | --exe | --ex)
  112. ac_prev=exec_prefix ;;
  113. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  114. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  115. | --exec=* | --exe=* | --ex=*)
  116. exec_prefix="$ac_optarg" ;;
  117. -gas | --gas | --ga | --g)
  118. # Obsolete; use --with-gas.
  119. with_gas=yes ;;
  120. -help | --help | --hel | --he)
  121. # Omit some internal or obsolete options to make the list less imposing.
  122. # This message is too long to be a string in the A/UX 3.1 sh.
  123. cat << EOF
  124. Usage: configure [options] [host]
  125. Options: [defaults in brackets after descriptions]
  126. Configuration:
  127. --cache-file=FILE cache test results in FILE
  128. --help print this message
  129. --no-create do not create output files
  130. --quiet, --silent do not print \`checking...' messages
  131. --version print the version of autoconf that created configure
  132. Directory and file names:
  133. --prefix=PREFIX install architecture-independent files in PREFIX
  134. [$ac_default_prefix]
  135. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  136. [same as prefix]
  137. --bindir=DIR user executables in DIR [EPREFIX/bin]
  138. --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
  139. --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
  140. --datadir=DIR read-only architecture-independent data in DIR
  141. [PREFIX/share]
  142. --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
  143. --sharedstatedir=DIR modifiable architecture-independent data in DIR
  144. [PREFIX/com]
  145. --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
  146. --libdir=DIR object code libraries in DIR [EPREFIX/lib]
  147. --includedir=DIR C header files in DIR [PREFIX/include]
  148. --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
  149. --infodir=DIR info documentation in DIR [PREFIX/info]
  150. --mandir=DIR man documentation in DIR [PREFIX/man]
  151. --srcdir=DIR find the sources in DIR [configure dir or ..]
  152. --program-prefix=PREFIX prepend PREFIX to installed program names
  153. --program-suffix=SUFFIX append SUFFIX to installed program names
  154. --program-transform-name=PROGRAM
  155. run sed PROGRAM on installed program names
  156. EOF
  157. cat << EOF
  158. Host type:
  159. --build=BUILD configure for building on BUILD [BUILD=HOST]
  160. --host=HOST configure for HOST [guessed]
  161. --target=TARGET configure for TARGET [TARGET=HOST]
  162. Features and packages:
  163. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  164. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  165. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  166. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  167. --x-includes=DIR X include files are in DIR
  168. --x-libraries=DIR X library files are in DIR
  169. EOF
  170. if test -n "$ac_help"; then
  171. echo "--enable and --with options recognized:$ac_help"
  172. fi
  173. exit 0 ;;
  174. -host | --host | --hos | --ho)
  175. ac_prev=host ;;
  176. -host=* | --host=* | --hos=* | --ho=*)
  177. host="$ac_optarg" ;;
  178. -includedir | --includedir | --includedi | --included | --include \
  179. | --includ | --inclu | --incl | --inc)
  180. ac_prev=includedir ;;
  181. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  182. | --includ=* | --inclu=* | --incl=* | --inc=*)
  183. includedir="$ac_optarg" ;;
  184. -infodir | --infodir | --infodi | --infod | --info | --inf)
  185. ac_prev=infodir ;;
  186. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  187. infodir="$ac_optarg" ;;
  188. -libdir | --libdir | --libdi | --libd)
  189. ac_prev=libdir ;;
  190. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  191. libdir="$ac_optarg" ;;
  192. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  193. | --libexe | --libex | --libe)
  194. ac_prev=libexecdir ;;
  195. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  196. | --libexe=* | --libex=* | --libe=*)
  197. libexecdir="$ac_optarg" ;;
  198. -localstatedir | --localstatedir | --localstatedi | --localstated \
  199. | --localstate | --localstat | --localsta | --localst \
  200. | --locals | --local | --loca | --loc | --lo)
  201. ac_prev=localstatedir ;;
  202. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  203. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  204. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  205. localstatedir="$ac_optarg" ;;
  206. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  207. ac_prev=mandir ;;
  208. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  209. mandir="$ac_optarg" ;;
  210. -nfp | --nfp | --nf)
  211. # Obsolete; use --without-fp.
  212. with_fp=no ;;
  213. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  214. | --no-cr | --no-c)
  215. no_create=yes ;;
  216. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  217. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  218. no_recursion=yes ;;
  219. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  220. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  221. | --oldin | --oldi | --old | --ol | --o)
  222. ac_prev=oldincludedir ;;
  223. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  224. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  225. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  226. oldincludedir="$ac_optarg" ;;
  227. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  228. ac_prev=prefix ;;
  229. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  230. prefix="$ac_optarg" ;;
  231. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  232. | --program-pre | --program-pr | --program-p)
  233. ac_prev=program_prefix ;;
  234. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  235. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  236. program_prefix="$ac_optarg" ;;
  237. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  238. | --program-suf | --program-su | --program-s)
  239. ac_prev=program_suffix ;;
  240. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  241. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  242. program_suffix="$ac_optarg" ;;
  243. -program-transform-name | --program-transform-name \
  244. | --program-transform-nam | --program-transform-na \
  245. | --program-transform-n | --program-transform- \
  246. | --program-transform | --program-transfor \
  247. | --program-transfo | --program-transf \
  248. | --program-trans | --program-tran \
  249. | --progr-tra | --program-tr | --program-t)
  250. ac_prev=program_transform_name ;;
  251. -program-transform-name=* | --program-transform-name=* \
  252. | --program-transform-nam=* | --program-transform-na=* \
  253. | --program-transform-n=* | --program-transform-=* \
  254. | --program-transform=* | --program-transfor=* \
  255. | --program-transfo=* | --program-transf=* \
  256. | --program-trans=* | --program-tran=* \
  257. | --progr-tra=* | --program-tr=* | --program-t=*)
  258. program_transform_name="$ac_optarg" ;;
  259. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  260. | -silent | --silent | --silen | --sile | --sil)
  261. silent=yes ;;
  262. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  263. ac_prev=sbindir ;;
  264. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  265. | --sbi=* | --sb=*)
  266. sbindir="$ac_optarg" ;;
  267. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  268. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  269. | --sharedst | --shareds | --shared | --share | --shar \
  270. | --sha | --sh)
  271. ac_prev=sharedstatedir ;;
  272. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  273. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  274. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  275. | --sha=* | --sh=*)
  276. sharedstatedir="$ac_optarg" ;;
  277. -site | --site | --sit)
  278. ac_prev=site ;;
  279. -site=* | --site=* | --sit=*)
  280. site="$ac_optarg" ;;
  281. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  282. ac_prev=srcdir ;;
  283. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  284. srcdir="$ac_optarg" ;;
  285. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  286. | --syscon | --sysco | --sysc | --sys | --sy)
  287. ac_prev=sysconfdir ;;
  288. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  289. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  290. sysconfdir="$ac_optarg" ;;
  291. -target | --target | --targe | --targ | --tar | --ta | --t)
  292. ac_prev=target ;;
  293. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  294. target="$ac_optarg" ;;
  295. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  296. verbose=yes ;;
  297. -version | --version | --versio | --versi | --vers)
  298. echo "configure generated by autoconf version 2.13"
  299. exit 0 ;;
  300. -with-* | --with-*)
  301. ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  302. # Reject names that are not valid shell variable names.
  303. if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  304. { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  305. fi
  306. ac_package=`echo $ac_package| sed 's/-/_/g'`
  307. case "$ac_option" in
  308. *=*) ;;
  309. *) ac_optarg=yes ;;
  310. esac
  311. eval "with_${ac_package}='$ac_optarg'" ;;
  312. -without-* | --without-*)
  313. ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  314. # Reject names that are not valid shell variable names.
  315. if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  316. { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  317. fi
  318. ac_package=`echo $ac_package| sed 's/-/_/g'`
  319. eval "with_${ac_package}=no" ;;
  320. --x)
  321. # Obsolete; use --with-x.
  322. with_x=yes ;;
  323. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  324. | --x-incl | --x-inc | --x-in | --x-i)
  325. ac_prev=x_includes ;;
  326. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  327. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  328. x_includes="$ac_optarg" ;;
  329. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  330. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  331. ac_prev=x_libraries ;;
  332. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  333. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  334. x_libraries="$ac_optarg" ;;
  335. -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  336. ;;
  337. *)
  338. if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  339. echo "configure: warning: $ac_option: invalid host type" 1>&2
  340. fi
  341. if test "x$nonopt" != xNONE; then
  342. { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  343. fi
  344. nonopt="$ac_option"
  345. ;;
  346. esac
  347. done
  348. if test -n "$ac_prev"; then
  349. { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  350. fi
  351. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  352. # File descriptor usage:
  353. # 0 standard input
  354. # 1 file creation
  355. # 2 errors and warnings
  356. # 3 some systems may open it to /dev/tty
  357. # 4 used on the Kubota Titan
  358. # 6 checking for... messages and results
  359. # 5 compiler messages saved in config.log
  360. if test "$silent" = yes; then
  361. exec 6>/dev/null
  362. else
  363. exec 6>&1
  364. fi
  365. exec 5>./config.log
  366. echo "\
  367. This file contains any messages produced by compilers while
  368. running configure, to aid debugging if configure makes a mistake.
  369. " 1>&5
  370. # Strip out --no-create and --no-recursion so they do not pile up.
  371. # Also quote any args containing shell metacharacters.
  372. ac_configure_args=
  373. for ac_arg
  374. do
  375. case "$ac_arg" in
  376. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  377. | --no-cr | --no-c) ;;
  378. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  379. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  380. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  381. ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  382. *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  383. esac
  384. done
  385. # NLS nuisances.
  386. # Only set these to C if already set. These must not be set unconditionally
  387. # because not all systems understand e.g. LANG=C (notably SCO).
  388. # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  389. # Non-C LC_CTYPE values break the ctype check.
  390. if test "${LANG+set}" = set; then LANG=C; export LANG; fi
  391. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  392. if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  393. if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
  394. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  395. rm -rf conftest* confdefs.h
  396. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  397. echo > confdefs.h
  398. # A filename unique to this package, relative to the directory that
  399. # configure is in, which we can look for to find out if srcdir is correct.
  400. ac_unique_file=Makefile.in
  401. # Find the source files, if location was not specified.
  402. if test -z "$srcdir"; then
  403. ac_srcdir_defaulted=yes
  404. # Try the directory containing this script, then its parent.
  405. ac_prog=$0
  406. ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  407. test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  408. srcdir=$ac_confdir
  409. if test ! -r $srcdir/$ac_unique_file; then
  410. srcdir=..
  411. fi
  412. else
  413. ac_srcdir_defaulted=no
  414. fi
  415. if test ! -r $srcdir/$ac_unique_file; then
  416. if test "$ac_srcdir_defaulted" = yes; then
  417. { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  418. else
  419. { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  420. fi
  421. fi
  422. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  423. # Prefer explicitly selected file to automatically selected ones.
  424. if test -z "$CONFIG_SITE"; then
  425. if test "x$prefix" != xNONE; then
  426. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  427. else
  428. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  429. fi
  430. fi
  431. for ac_site_file in $CONFIG_SITE; do
  432. if test -r "$ac_site_file"; then
  433. echo "loading site script $ac_site_file"
  434. . "$ac_site_file"
  435. fi
  436. done
  437. if test -r "$cache_file"; then
  438. echo "loading cache $cache_file"
  439. . $cache_file
  440. else
  441. echo "creating cache $cache_file"
  442. > $cache_file
  443. fi
  444. ac_ext=c
  445. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  446. ac_cpp='$CPP $CPPFLAGS'
  447. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  448. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  449. cross_compiling=$ac_cv_prog_cc_cross
  450. ac_exeext=
  451. ac_objext=o
  452. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  453. # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  454. if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  455. ac_n= ac_c='
  456. ' ac_t=' '
  457. else
  458. ac_n=-n ac_c= ac_t=
  459. fi
  460. else
  461. ac_n= ac_c='\c' ac_t=
  462. fi
  463. CFLAGS=$CFLAGS
  464. # Extract the first word of "gcc", so it can be a program name with args.
  465. set dummy gcc; ac_word=$2
  466. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  467. echo "configure:534: checking for $ac_word" >&5
  468. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  469. echo $ac_n "(cached) $ac_c" 1>&6
  470. else
  471. if test -n "$CC"; then
  472. ac_cv_prog_CC="$CC" # Let the user override the test.
  473. else
  474. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  475. ac_dummy="$PATH"
  476. for ac_dir in $ac_dummy; do
  477. test -z "$ac_dir" && ac_dir=.
  478. if test -f $ac_dir/$ac_word; then
  479. ac_cv_prog_CC="gcc"
  480. break
  481. fi
  482. done
  483. IFS="$ac_save_ifs"
  484. fi
  485. fi
  486. CC="$ac_cv_prog_CC"
  487. if test -n "$CC"; then
  488. echo "$ac_t""$CC" 1>&6
  489. else
  490. echo "$ac_t""no" 1>&6
  491. fi
  492. if test -z "$CC"; then
  493. # Extract the first word of "cc", so it can be a program name with args.
  494. set dummy cc; ac_word=$2
  495. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  496. echo "configure:564: checking for $ac_word" >&5
  497. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  498. echo $ac_n "(cached) $ac_c" 1>&6
  499. else
  500. if test -n "$CC"; then
  501. ac_cv_prog_CC="$CC" # Let the user override the test.
  502. else
  503. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  504. ac_prog_rejected=no
  505. ac_dummy="$PATH"
  506. for ac_dir in $ac_dummy; do
  507. test -z "$ac_dir" && ac_dir=.
  508. if test -f $ac_dir/$ac_word; then
  509. if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  510. ac_prog_rejected=yes
  511. continue
  512. fi
  513. ac_cv_prog_CC="cc"
  514. break
  515. fi
  516. done
  517. IFS="$ac_save_ifs"
  518. if test $ac_prog_rejected = yes; then
  519. # We found a bogon in the path, so make sure we never use it.
  520. set dummy $ac_cv_prog_CC
  521. shift
  522. if test $# -gt 0; then
  523. # We chose a different compiler from the bogus one.
  524. # However, it has the same basename, so the bogon will be chosen
  525. # first if we set CC to just the basename; use the full file name.
  526. shift
  527. set dummy "$ac_dir/$ac_word" "$@"
  528. shift
  529. ac_cv_prog_CC="$@"
  530. fi
  531. fi
  532. fi
  533. fi
  534. CC="$ac_cv_prog_CC"
  535. if test -n "$CC"; then
  536. echo "$ac_t""$CC" 1>&6
  537. else
  538. echo "$ac_t""no" 1>&6
  539. fi
  540. if test -z "$CC"; then
  541. case "`uname -s`" in
  542. *win32* | *WIN32*)
  543. # Extract the first word of "cl", so it can be a program name with args.
  544. set dummy cl; ac_word=$2
  545. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  546. echo "configure:615: checking for $ac_word" >&5
  547. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  548. echo $ac_n "(cached) $ac_c" 1>&6
  549. else
  550. if test -n "$CC"; then
  551. ac_cv_prog_CC="$CC" # Let the user override the test.
  552. else
  553. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  554. ac_dummy="$PATH"
  555. for ac_dir in $ac_dummy; do
  556. test -z "$ac_dir" && ac_dir=.
  557. if test -f $ac_dir/$ac_word; then
  558. ac_cv_prog_CC="cl"
  559. break
  560. fi
  561. done
  562. IFS="$ac_save_ifs"
  563. fi
  564. fi
  565. CC="$ac_cv_prog_CC"
  566. if test -n "$CC"; then
  567. echo "$ac_t""$CC" 1>&6
  568. else
  569. echo "$ac_t""no" 1>&6
  570. fi
  571. ;;
  572. esac
  573. fi
  574. test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  575. fi
  576. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  577. echo "configure:647: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  578. ac_ext=c
  579. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  580. ac_cpp='$CPP $CPPFLAGS'
  581. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  582. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  583. cross_compiling=$ac_cv_prog_cc_cross
  584. cat > conftest.$ac_ext << EOF
  585. #line 658 "configure"
  586. #include "confdefs.h"
  587. main(){return(0);}
  588. EOF
  589. if { (eval echo configure:663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  590. ac_cv_prog_cc_works=yes
  591. # If we can't run a trivial program, we are probably using a cross compiler.
  592. if (./conftest; exit) 2>/dev/null; then
  593. ac_cv_prog_cc_cross=no
  594. else
  595. ac_cv_prog_cc_cross=yes
  596. fi
  597. else
  598. echo "configure: failed program was:" >&5
  599. cat conftest.$ac_ext >&5
  600. ac_cv_prog_cc_works=no
  601. fi
  602. rm -fr conftest*
  603. ac_ext=c
  604. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  605. ac_cpp='$CPP $CPPFLAGS'
  606. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  607. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  608. cross_compiling=$ac_cv_prog_cc_cross
  609. echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  610. if test $ac_cv_prog_cc_works = no; then
  611. { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  612. fi
  613. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  614. echo "configure:689: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  615. echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  616. cross_compiling=$ac_cv_prog_cc_cross
  617. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  618. echo "configure:694: checking whether we are using GNU C" >&5
  619. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  620. echo $ac_n "(cached) $ac_c" 1>&6
  621. else
  622. cat > conftest.c <<EOF
  623. #ifdef __GNUC__
  624. yes;
  625. #endif
  626. EOF
  627. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:703: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  628. ac_cv_prog_gcc=yes
  629. else
  630. ac_cv_prog_gcc=no
  631. fi
  632. fi
  633. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  634. if test $ac_cv_prog_gcc = yes; then
  635. GCC=yes
  636. else
  637. GCC=
  638. fi
  639. ac_test_CFLAGS="${CFLAGS+set}"
  640. ac_save_CFLAGS="$CFLAGS"
  641. CFLAGS=
  642. echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  643. echo "configure:722: checking whether ${CC-cc} accepts -g" >&5
  644. if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  645. echo $ac_n "(cached) $ac_c" 1>&6
  646. else
  647. echo 'void f(){}' > conftest.c
  648. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  649. ac_cv_prog_cc_g=yes
  650. else
  651. ac_cv_prog_cc_g=no
  652. fi
  653. rm -f conftest*
  654. fi
  655. echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  656. if test "$ac_test_CFLAGS" = set; then
  657. CFLAGS="$ac_save_CFLAGS"
  658. elif test $ac_cv_prog_cc_g = yes; then
  659. if test "$GCC" = yes; then
  660. CFLAGS="-g -O2"
  661. else
  662. CFLAGS="-g"
  663. fi
  664. else
  665. if test "$GCC" = yes; then
  666. CFLAGS="-O2"
  667. else
  668. CFLAGS=
  669. fi
  670. fi
  671. if test "x$CFLAGS" = "x" ; then
  672. no_CFLAGS="yes"
  673. fi
  674. if test "x$no_CFLAGS" = "xyes" -a "x$GCC" = "xyes" ; then
  675. CFLAGS="-Wall -pipe -g3"
  676. fi
  677. A_CFLAGS=""
  678. S_CFLAGS="-fPIC -DPIC"
  679. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  680. echo "configure:764: checking how to run the C preprocessor" >&5
  681. # On Suns, sometimes $CPP names a directory.
  682. if test -n "$CPP" && test -d "$CPP"; then
  683. CPP=
  684. fi
  685. if test -z "$CPP"; then
  686. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  687. echo $ac_n "(cached) $ac_c" 1>&6
  688. else
  689. # This must be in double quotes, not single quotes, because CPP may get
  690. # substituted into the Makefile and "${CC-cc}" will confuse make.
  691. CPP="${CC-cc} -E"
  692. # On the NeXT, cc -E runs the code through the compiler's parser,
  693. # not just through cpp.
  694. cat > conftest.$ac_ext <<EOF
  695. #line 779 "configure"
  696. #include "confdefs.h"
  697. #include <assert.h>
  698. Syntax Error
  699. EOF
  700. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  701. { (eval echo configure:785: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  702. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  703. if test -z "$ac_err"; then
  704. :
  705. else
  706. echo "$ac_err" >&5
  707. echo "configure: failed program was:" >&5
  708. cat conftest.$ac_ext >&5
  709. rm -rf conftest*
  710. CPP="${CC-cc} -E -traditional-cpp"
  711. cat > conftest.$ac_ext <<EOF
  712. #line 796 "configure"
  713. #include "confdefs.h"
  714. #include <assert.h>
  715. Syntax Error
  716. EOF
  717. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  718. { (eval echo configure:802: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  719. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  720. if test -z "$ac_err"; then
  721. :
  722. else
  723. echo "$ac_err" >&5
  724. echo "configure: failed program was:" >&5
  725. cat conftest.$ac_ext >&5
  726. rm -rf conftest*
  727. CPP="${CC-cc} -nologo -E"
  728. cat > conftest.$ac_ext <<EOF
  729. #line 813 "configure"
  730. #include "confdefs.h"
  731. #include <assert.h>
  732. Syntax Error
  733. EOF
  734. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  735. { (eval echo configure:819: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  736. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  737. if test -z "$ac_err"; then
  738. :
  739. else
  740. echo "$ac_err" >&5
  741. echo "configure: failed program was:" >&5
  742. cat conftest.$ac_ext >&5
  743. rm -rf conftest*
  744. CPP=/lib/cpp
  745. fi
  746. rm -f conftest*
  747. fi
  748. rm -f conftest*
  749. fi
  750. rm -f conftest*
  751. ac_cv_prog_CPP="$CPP"
  752. fi
  753. CPP="$ac_cv_prog_CPP"
  754. else
  755. ac_cv_prog_CPP="$CPP"
  756. fi
  757. echo "$ac_t""$CPP" 1>&6
  758. ac_aux_dir=
  759. for ac_dir in ${GNUSYSTEM_AUX_DIR} $srcdir $srcdir/.. $srcdir/../..; do
  760. if test -f $ac_dir/install-sh; then
  761. ac_aux_dir=$ac_dir
  762. ac_install_sh="$ac_aux_dir/install-sh -c"
  763. break
  764. elif test -f $ac_dir/install.sh; then
  765. ac_aux_dir=$ac_dir
  766. ac_install_sh="$ac_aux_dir/install.sh -c"
  767. break
  768. fi
  769. done
  770. if test -z "$ac_aux_dir"; then
  771. { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  772. fi
  773. ac_config_guess=$ac_aux_dir/config.guess
  774. ac_config_sub=$ac_aux_dir/config.sub
  775. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  776. # Make sure we can run config.sub.
  777. if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
  778. else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
  779. fi
  780. echo $ac_n "checking host system type""... $ac_c" 1>&6
  781. echo "configure:870: checking host system type" >&5
  782. host_alias=$host
  783. case "$host_alias" in
  784. NONE)
  785. case $nonopt in
  786. NONE)
  787. if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
  788. else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
  789. fi ;;
  790. *) host_alias=$nonopt ;;
  791. esac ;;
  792. esac
  793. host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
  794. host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  795. host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  796. host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  797. echo "$ac_t""$host" 1>&6
  798. case "${host}" in
  799. *-*-darwin*)
  800. CFLAGS="$CFLAGS -fno-common -no-cpp-precomp"
  801. ABI="macho"
  802. ;;
  803. *-*-freebsd*)
  804. ABI="elf"
  805. ;;
  806. *-*-linux* | *cygwin*)
  807. if echo ${host} | grep -q cygwin ; then \
  808. echo "cygwin detected"; \
  809. S_CFLAGS=""; \
  810. echo "/* cygdef.h. Generated automatically by configure. */
  811. #ifndef _CYGDEF_H_
  812. #define _CYGDEF_H_ 1
  813. #include <sys/ioctl.h>
  814. #define __linux__ 1
  815. typedef void (*sig_t)(int);
  816. #endif /* _CYGDEF_H_ */" > cygdef.h; \
  817. echo "
  818. #define CYGWIN 1
  819. " > confdefs.h; \
  820. fi
  821. ABI="elf"
  822. ;;
  823. *-*-netbsd*)
  824. echo $ac_n "checking ABI""... $ac_c" 1>&6
  825. echo "configure:903: checking ABI" >&5
  826. cat > conftest.$ac_ext <<EOF
  827. #line 905 "configure"
  828. #include "confdefs.h"
  829. #ifdef __ELF__
  830. yes
  831. #endif
  832. EOF
  833. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  834. egrep "yes" >/dev/null 2>&1; then
  835. rm -rf conftest*
  836. ABI="elf"
  837. else
  838. rm -rf conftest*
  839. ABI="aout"
  840. fi
  841. rm -f conftest*
  842. echo "$ac_t""$ABI" 1>&6
  843. ;;
  844. *-*-solaris2*)
  845. ABI="elf"
  846. cat >> confdefs.h <<\EOF
  847. #define SUNOS 1
  848. EOF
  849. ;;
  850. *)
  851. echo "$ac_t""Unsupported operating system: ${host}" 1>&6
  852. ABI="elf"
  853. ;;
  854. esac
  855. # Find a good install program. We prefer a C program (faster),
  856. # so one script is as good as another. But avoid the broken or
  857. # incompatible versions:
  858. # SysV /etc/install, /usr/sbin/install
  859. # SunOS /usr/etc/install
  860. # IRIX /sbin/install
  861. # AIX /bin/install
  862. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  863. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  864. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  865. # ./install, which can be erroneously created by make from ./install.sh.
  866. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  867. echo "configure:949: checking for a BSD compatible install" >&5
  868. if test -z "$INSTALL"; then
  869. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  870. echo $ac_n "(cached) $ac_c" 1>&6
  871. else
  872. IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
  873. for ac_dir in $PATH; do
  874. # Account for people who put trailing slashes in PATH elements.
  875. case "$ac_dir/" in
  876. /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  877. *)
  878. # OSF1 and SCO ODT 3.0 have their own names for install.
  879. # Don't use installbsd from OSF since it installs stuff as root
  880. # by default.
  881. for ac_prog in ginstall scoinst install; do
  882. if test -f $ac_dir/$ac_prog; then
  883. if test $ac_prog = install &&
  884. grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  885. # AIX install. It has an incompatible calling convention.
  886. :
  887. else
  888. ac_cv_path_install="$ac_dir/$ac_prog -c"
  889. break 2
  890. fi
  891. fi
  892. done
  893. ;;
  894. esac
  895. done
  896. IFS="$ac_save_IFS"
  897. fi
  898. if test "${ac_cv_path_install+set}" = set; then
  899. INSTALL="$ac_cv_path_install"
  900. else
  901. # As a last resort, use the slow shell script. We don't cache a
  902. # path for INSTALL within a source directory, because that will
  903. # break other packages using the cache if that directory is
  904. # removed, or if the path is relative.
  905. INSTALL="$ac_install_sh"
  906. fi
  907. fi
  908. echo "$ac_t""$INSTALL" 1>&6
  909. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  910. # It thinks the first close brace ends the variable substitution.
  911. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  912. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
  913. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  914. # Extract the first word of "ranlib", so it can be a program name with args.
  915. set dummy ranlib; ac_word=$2
  916. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  917. echo "configure:1004: checking for $ac_word" >&5
  918. if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  919. echo $ac_n "(cached) $ac_c" 1>&6
  920. else
  921. if test -n "$RANLIB"; then
  922. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  923. else
  924. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  925. ac_dummy="$PATH"
  926. for ac_dir in $ac_dummy; do
  927. test -z "$ac_dir" && ac_dir=.
  928. if test -f $ac_dir/$ac_word; then
  929. ac_cv_prog_RANLIB="ranlib"
  930. break
  931. fi
  932. done
  933. IFS="$ac_save_ifs"
  934. test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  935. fi
  936. fi
  937. RANLIB="$ac_cv_prog_RANLIB"
  938. if test -n "$RANLIB"; then
  939. echo "$ac_t""$RANLIB" 1>&6
  940. else
  941. echo "$ac_t""no" 1>&6
  942. fi
  943. # Extract the first word of "ar", so it can be a program name with args.
  944. set dummy ar; ac_word=$2
  945. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  946. echo "configure:1034: checking for $ac_word" >&5
  947. if eval "test \"`echo '$''{'ac_cv_path_AR'+set}'`\" = set"; then
  948. echo $ac_n "(cached) $ac_c" 1>&6
  949. else
  950. case "$AR" in
  951. /*)
  952. ac_cv_path_AR="$AR" # Let the user override the test with a path.
  953. ;;
  954. ?:/*)
  955. ac_cv_path_AR="$AR" # Let the user override the test with a dos path.
  956. ;;
  957. *)
  958. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  959. ac_dummy="$PATH"
  960. for ac_dir in $ac_dummy; do
  961. test -z "$ac_dir" && ac_dir=.
  962. if test -f $ac_dir/$ac_word; then
  963. ac_cv_path_AR="$ac_dir/$ac_word"
  964. break
  965. fi
  966. done
  967. IFS="$ac_save_ifs"
  968. ;;
  969. esac
  970. fi
  971. AR="$ac_cv_path_AR"
  972. if test -n "$AR"; then
  973. echo "$ac_t""$AR" 1>&6
  974. else
  975. echo "$ac_t""no" 1>&6
  976. fi
  977. echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
  978. echo "configure:1068: checking for tgetent in -ltermcap" >&5
  979. ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
  980. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  981. echo $ac_n "(cached) $ac_c" 1>&6
  982. else
  983. ac_save_LIBS="$LIBS"
  984. LIBS="-ltermcap $LIBS"
  985. cat > conftest.$ac_ext <<EOF
  986. #line 1076 "configure"
  987. #include "confdefs.h"
  988. /* Override any gcc2 internal prototype to avoid an error. */
  989. /* We use char because int might match the return type of a gcc2
  990. builtin and then its argument prototype would still apply. */
  991. char tgetent();
  992. int main() {
  993. tgetent()
  994. ; return 0; }
  995. EOF
  996. if { (eval echo configure:1087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  997. rm -rf conftest*
  998. eval "ac_cv_lib_$ac_lib_var=yes"
  999. else
  1000. echo "configure: failed program was:" >&5
  1001. cat conftest.$ac_ext >&5
  1002. rm -rf conftest*
  1003. eval "ac_cv_lib_$ac_lib_var=no"
  1004. fi
  1005. rm -f conftest*
  1006. LIBS="$ac_save_LIBS"
  1007. fi
  1008. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1009. echo "$ac_t""yes" 1>&6
  1010. ac_tr_lib=HAVE_LIB`echo termcap | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  1011. -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  1012. cat >> confdefs.h <<EOF
  1013. #define $ac_tr_lib 1
  1014. EOF
  1015. LIBS="-ltermcap $LIBS"
  1016. else
  1017. echo "$ac_t""no" 1>&6
  1018. \
  1019. echo $ac_n "checking for tgetent in -ltinfo""... $ac_c" 1>&6
  1020. echo "configure:1114: checking for tgetent in -ltinfo" >&5
  1021. ac_lib_var=`echo tinfo'_'tgetent | sed 'y%./+-%__p_%'`
  1022. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1023. echo $ac_n "(cached) $ac_c" 1>&6
  1024. else
  1025. ac_save_LIBS="$LIBS"
  1026. LIBS="-ltinfo $LIBS"
  1027. cat > conftest.$ac_ext <<EOF
  1028. #line 1122 "configure"
  1029. #include "confdefs.h"
  1030. /* Override any gcc2 internal prototype to avoid an error. */
  1031. /* We use char because int might match the return type of a gcc2
  1032. builtin and then its argument prototype would still apply. */
  1033. char tgetent();
  1034. int main() {
  1035. tgetent()
  1036. ; return 0; }
  1037. EOF
  1038. if { (eval echo configure:1133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1039. rm -rf conftest*
  1040. eval "ac_cv_lib_$ac_lib_var=yes"
  1041. else
  1042. echo "configure: failed program was:" >&5
  1043. cat conftest.$ac_ext >&5
  1044. rm -rf conftest*
  1045. eval "ac_cv_lib_$ac_lib_var=no"
  1046. fi
  1047. rm -f conftest*
  1048. LIBS="$ac_save_LIBS"
  1049. fi
  1050. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1051. echo "$ac_t""yes" 1>&6
  1052. ac_tr_lib=HAVE_LIB`echo tinfo | sed -e 's/^a-zA-Z0-9_/_/g' \
  1053. -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  1054. cat >> confdefs.h <<EOF
  1055. #define $ac_tr_lib 1
  1056. EOF
  1057. LIBS="-ltinfo $LIBS"
  1058. else
  1059. echo "$ac_t""no" 1>&6
  1060. \
  1061. echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
  1062. echo "configure:1160: checking for tgetent in -lcurses" >&5
  1063. ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
  1064. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1065. echo $ac_n "(cached) $ac_c" 1>&6
  1066. else
  1067. ac_save_LIBS="$LIBS"
  1068. LIBS="-lcurses $LIBS"
  1069. cat > conftest.$ac_ext <<EOF
  1070. #line 1168 "configure"
  1071. #include "confdefs.h"
  1072. /* Override any gcc2 internal prototype to avoid an error. */
  1073. /* We use char because int might match the return type of a gcc2
  1074. builtin and then its argument prototype would still apply. */
  1075. char tgetent();
  1076. int main() {
  1077. tgetent()
  1078. ; return 0; }
  1079. EOF
  1080. if { (eval echo configure:1179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1081. rm -rf conftest*
  1082. eval "ac_cv_lib_$ac_lib_var=yes"
  1083. else
  1084. echo "configure: failed program was:" >&5
  1085. cat conftest.$ac_ext >&5
  1086. rm -rf conftest*
  1087. eval "ac_cv_lib_$ac_lib_var=no"
  1088. fi
  1089. rm -f conftest*
  1090. LIBS="$ac_save_LIBS"
  1091. fi
  1092. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1093. echo "$ac_t""yes" 1>&6
  1094. ac_tr_lib=HAVE_LIB`echo curses | sed -e 's/^a-zA-Z0-9_/_/g' \
  1095. -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  1096. cat >> confdefs.h <<EOF
  1097. #define $ac_tr_lib 1
  1098. EOF
  1099. LIBS="-lcurses $LIBS"
  1100. else
  1101. echo "$ac_t""no" 1>&6
  1102. \
  1103. echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
  1104. echo "configure:1206: checking for tgetent in -lncurses" >&5
  1105. ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
  1106. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1107. echo $ac_n "(cached) $ac_c" 1>&6
  1108. else
  1109. ac_save_LIBS="$LIBS"
  1110. LIBS="-lncurses $LIBS"
  1111. cat > conftest.$ac_ext <<EOF
  1112. #line 1214 "configure"
  1113. #include "confdefs.h"
  1114. /* Override any gcc2 internal prototype to avoid an error. */
  1115. /* We use char because int might match the return type of a gcc2
  1116. builtin and then its argument prototype would still apply. */
  1117. char tgetent();
  1118. int main() {
  1119. tgetent()
  1120. ; return 0; }
  1121. EOF
  1122. if { (eval echo configure:1225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1123. rm -rf conftest*
  1124. eval "ac_cv_lib_$ac_lib_var=yes"
  1125. else
  1126. echo "configure: failed program was:" >&5
  1127. cat conftest.$ac_ext >&5
  1128. rm -rf conftest*
  1129. eval "ac_cv_lib_$ac_lib_var=no"
  1130. fi
  1131. rm -f conftest*
  1132. LIBS="$ac_save_LIBS"
  1133. fi
  1134. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1135. echo "$ac_t""yes" 1>&6
  1136. ac_tr_lib=HAVE_LIB`echo ncurses | sed -e 's/^a-zA-Z0-9_/_/g' \
  1137. -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  1138. cat >> confdefs.h <<EOF
  1139. #define $ac_tr_lib 1
  1140. EOF
  1141. LIBS="-lncurses $LIBS"
  1142. else
  1143. echo "$ac_t""no" 1>&6
  1144. \
  1145. { echo "configure: error: termcap support not found" 1>&2; exit 1; }
  1146. fi
  1147. fi
  1148. fi
  1149. fi
  1150. for ac_hdr in termcap.h
  1151. do
  1152. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  1153. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1154. echo "configure:1265: checking for $ac_hdr" >&5
  1155. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1156. echo $ac_n "(cached) $ac_c" 1>&6
  1157. else
  1158. cat > conftest.$ac_ext <<EOF
  1159. #line 1270 "configure"
  1160. #include "confdefs.h"
  1161. #include <$ac_hdr>
  1162. EOF
  1163. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1164. { (eval echo configure:1275: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1165. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1166. if test -z "$ac_err"; then
  1167. rm -rf conftest*
  1168. eval "ac_cv_header_$ac_safe=yes"
  1169. else
  1170. echo "$ac_err" >&5
  1171. echo "configure: failed program was:" >&5
  1172. cat conftest.$ac_ext >&5
  1173. rm -rf conftest*
  1174. eval "ac_cv_header_$ac_safe=no"
  1175. fi
  1176. rm -f conftest*
  1177. fi
  1178. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1179. echo "$ac_t""yes" 1>&6
  1180. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  1181. cat >> confdefs.h <<EOF
  1182. #define $ac_tr_hdr 1
  1183. EOF
  1184. else
  1185. echo "$ac_t""no" 1>&6
  1186. \
  1187. for ac_hdr in term.h
  1188. do
  1189. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  1190. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1191. echo "configure:1303: checking for $ac_hdr" >&5
  1192. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1193. echo $ac_n "(cached) $ac_c" 1>&6
  1194. else
  1195. cat > conftest.$ac_ext <<EOF
  1196. #line 1308 "configure"
  1197. #include "confdefs.h"
  1198. #include <$ac_hdr>
  1199. EOF
  1200. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1201. { (eval echo configure:1313: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1202. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1203. if test -z "$ac_err"; then
  1204. rm -rf conftest*
  1205. eval "ac_cv_header_$ac_safe=yes"
  1206. else
  1207. echo "$ac_err" >&5
  1208. echo "configure: failed program was:" >&5
  1209. cat conftest.$ac_ext >&5
  1210. rm -rf conftest*
  1211. eval "ac_cv_header_$ac_safe=no"
  1212. fi
  1213. rm -f conftest*
  1214. fi
  1215. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1216. echo "$ac_t""yes" 1>&6
  1217. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  1218. cat >> confdefs.h <<EOF
  1219. #define $ac_tr_hdr 1
  1220. EOF
  1221. else
  1222. echo "$ac_t""no" 1>&6
  1223. \
  1224. echo "$ac_t""Need term.h since termcap.h is missing" 1>&6
  1225. fi
  1226. done
  1227. for ac_hdr in curses.h
  1228. do
  1229. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  1230. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1231. echo "configure:1345: checking for $ac_hdr" >&5
  1232. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1233. echo $ac_n "(cached) $ac_c" 1>&6
  1234. else
  1235. cat > conftest.$ac_ext <<EOF
  1236. #line 1350 "configure"
  1237. #include "confdefs.h"
  1238. #include <$ac_hdr>
  1239. EOF
  1240. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1241. { (eval echo configure:1355: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1242. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1243. if test -z "$ac_err"; then
  1244. rm -rf conftest*
  1245. eval "ac_cv_header_$ac_safe=yes"
  1246. else
  1247. echo "$ac_err" >&5
  1248. echo "configure: failed program was:" >&5
  1249. cat conftest.$ac_ext >&5
  1250. rm -rf conftest*
  1251. eval "ac_cv_header_$ac_safe=no"
  1252. fi
  1253. rm -f conftest*
  1254. fi
  1255. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1256. echo "$ac_t""yes" 1>&6
  1257. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  1258. cat >> confdefs.h <<EOF
  1259. #define $ac_tr_hdr 1
  1260. EOF
  1261. else
  1262. echo "$ac_t""no" 1>&6
  1263. \
  1264. for ac_hdr in ncurses.h
  1265. do
  1266. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  1267. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1268. echo "configure:1383: checking for $ac_hdr" >&5
  1269. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1270. echo $ac_n "(cached) $ac_c" 1>&6
  1271. else
  1272. cat > conftest.$ac_ext <<EOF
  1273. #line 1388 "configure"
  1274. #include "confdefs.h"
  1275. #include <$ac_hdr>
  1276. EOF
  1277. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1278. { (eval echo configure:1393: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1279. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1280. if test -z "$ac_err"; then
  1281. rm -rf conftest*
  1282. eval "ac_cv_header_$ac_safe=yes"
  1283. else
  1284. echo "$ac_err" >&5
  1285. echo "configure: failed program was:" >&5
  1286. cat conftest.$ac_ext >&5
  1287. rm -rf conftest*
  1288. eval "ac_cv_header_$ac_safe=no"
  1289. fi
  1290. rm -f conftest*
  1291. fi
  1292. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1293. echo "$ac_t""yes" 1>&6
  1294. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  1295. cat >> confdefs.h <<EOF
  1296. #define $ac_tr_hdr 1
  1297. EOF
  1298. else
  1299. echo "$ac_t""no" 1>&6
  1300. \
  1301. echo "$ac_t""Need curses.h or ncurses.h" 1>&6
  1302. fi
  1303. done
  1304. fi
  1305. done
  1306. fi
  1307. done
  1308. for ac_hdr in sys/cdefs.h vis.h
  1309. do
  1310. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  1311. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1312. echo "configure:1432: checking for $ac_hdr" >&5
  1313. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1314. echo $ac_n "(cached) $ac_c" 1>&6
  1315. else
  1316. cat > conftest.$ac_ext <<EOF
  1317. #line 1437 "configure"
  1318. #include "confdefs.h"
  1319. #include <$ac_hdr>
  1320. EOF
  1321. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1322. { (eval echo configure:1442: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1323. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1324. if test -z "$ac_err"; then
  1325. rm -rf conftest*
  1326. eval "ac_cv_header_$ac_safe=yes"
  1327. else
  1328. echo "$ac_err" >&5
  1329. echo "configure: failed program was:" >&5
  1330. cat conftest.$ac_ext >&5
  1331. rm -rf conftest*
  1332. eval "ac_cv_header_$ac_safe=no"
  1333. fi
  1334. rm -f conftest*
  1335. fi
  1336. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1337. echo "$ac_t""yes" 1>&6
  1338. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  1339. cat >> confdefs.h <<EOF
  1340. #define $ac_tr_hdr 1
  1341. EOF
  1342. else
  1343. echo "$ac_t""no" 1>&6
  1344. fi
  1345. done
  1346. for ac_func in issetugid
  1347. do
  1348. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1349. echo "configure:1472: checking for $ac_func" >&5
  1350. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1351. echo $ac_n "(cached) $ac_c" 1>&6
  1352. else
  1353. cat > conftest.$ac_ext <<EOF
  1354. #line 1477 "configure"
  1355. #include "confdefs.h"
  1356. /* System header to define __stub macros and hopefully few prototypes,
  1357. which can conflict with char $ac_func(); below. */
  1358. #include <assert.h>
  1359. /* Override any gcc2 internal prototype to avoid an error. */
  1360. /* We use char because int might match the return type of a gcc2
  1361. builtin and then its argument prototype would still apply. */
  1362. char $ac_func();
  1363. int main() {
  1364. /* The GNU C library defines this for functions which it implements
  1365. to always fail with ENOSYS. Some functions are actually named
  1366. something starting with __ and the normal name is an alias. */
  1367. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1368. choke me
  1369. #else
  1370. $ac_func();
  1371. #endif
  1372. ; return 0; }
  1373. EOF
  1374. if { (eval echo configure:1500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1375. rm -rf conftest*
  1376. eval "ac_cv_func_$ac_func=yes"
  1377. else
  1378. echo "configure: failed program was:" >&5
  1379. cat conftest.$ac_ext >&5
  1380. rm -rf conftest*
  1381. eval "ac_cv_func_$ac_func=no"
  1382. fi
  1383. rm -f conftest*
  1384. fi
  1385. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1386. echo "$ac_t""yes" 1>&6
  1387. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1388. cat >> confdefs.h <<EOF
  1389. #define $ac_tr_func 1
  1390. EOF
  1391. else
  1392. echo "$ac_t""no" 1>&6
  1393. fi
  1394. done
  1395. for ac_func in strlcat
  1396. do
  1397. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1398. echo "configure:1527: checking for $ac_func" >&5
  1399. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1400. echo $ac_n "(cached) $ac_c" 1>&6
  1401. else
  1402. cat > conftest.$ac_ext <<EOF
  1403. #line 1532 "configure"
  1404. #include "confdefs.h"
  1405. /* System header to define __stub macros and hopefully few prototypes,
  1406. which can conflict with char $ac_func(); below. */
  1407. #include <assert.h>
  1408. /* Override any gcc2 internal prototype to avoid an error. */
  1409. /* We use char because int might match the return type of a gcc2
  1410. builtin and then its argument prototype would still apply. */
  1411. char $ac_func();
  1412. int main() {
  1413. /* The GNU C library defines this for functions which it implements
  1414. to always fail with ENOSYS. Some functions are actually named
  1415. something starting with __ and the normal name is an alias. */
  1416. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1417. choke me
  1418. #else
  1419. $ac_func();
  1420. #endif
  1421. ; return 0; }
  1422. EOF
  1423. if { (eval echo configure:1555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1424. rm -rf conftest*
  1425. eval "ac_cv_func_$ac_func=yes"
  1426. else
  1427. echo "configure: failed program was:" >&5
  1428. cat conftest.$ac_ext >&5
  1429. rm -rf conftest*
  1430. eval "ac_cv_func_$ac_func=no"
  1431. fi
  1432. rm -f conftest*
  1433. fi
  1434. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1435. echo "$ac_t""yes" 1>&6
  1436. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1437. cat >> confdefs.h <<EOF
  1438. #define $ac_tr_func 1
  1439. EOF
  1440. else
  1441. echo "$ac_t""no" 1>&6
  1442. CCSRCS="$CCSRCS np/strlcat.c"
  1443. fi
  1444. done
  1445. for ac_func in strlcpy
  1446. do
  1447. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1448. echo "configure:1583: checking for $ac_func" >&5
  1449. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1450. echo $ac_n "(cached) $ac_c" 1>&6
  1451. else
  1452. cat > conftest.$ac_ext <<EOF
  1453. #line 1588 "configure"
  1454. #include "confdefs.h"
  1455. /* System header to define __stub macros and hopefully few prototypes,
  1456. which can conflict with char $ac_func(); below. */
  1457. #include <assert.h>
  1458. /* Override any gcc2 internal prototype to avoid an error. */
  1459. /* We use char because int might match the return type of a gcc2
  1460. builtin and then its argument prototype would still apply. */
  1461. char $ac_func();
  1462. int main() {
  1463. /* The GNU C library defines this for functions which it implements
  1464. to always fail with ENOSYS. Some functions are actually named
  1465. something starting with __ and the normal name is an alias. */
  1466. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1467. choke me
  1468. #else
  1469. $ac_func();
  1470. #endif
  1471. ; return 0; }
  1472. EOF
  1473. if { (eval echo configure:1611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1474. rm -rf conftest*
  1475. eval "ac_cv_func_$ac_func=yes"
  1476. else
  1477. echo "configure: failed program was:" >&5
  1478. cat conftest.$ac_ext >&5
  1479. rm -rf conftest*
  1480. eval "ac_cv_func_$ac_func=no"
  1481. fi
  1482. rm -f conftest*
  1483. fi
  1484. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1485. echo "$ac_t""yes" 1>&6
  1486. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1487. cat >> confdefs.h <<EOF
  1488. #define $ac_tr_func 1
  1489. EOF
  1490. else
  1491. echo "$ac_t""no" 1>&6
  1492. CCSRCS="$CCSRCS np/strlcpy.c"
  1493. fi
  1494. done
  1495. for ac_func in fgetln
  1496. do
  1497. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1498. echo "configure:1639: checking for $ac_func" >&5
  1499. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1500. echo $ac_n "(cached) $ac_c" 1>&6
  1501. else
  1502. cat > conftest.$ac_ext <<EOF
  1503. #line 1644 "configure"
  1504. #include "confdefs.h"
  1505. /* System header to define __stub macros and hopefully few prototypes,
  1506. which can conflict with char $ac_func(); below. */
  1507. #include <assert.h>
  1508. /* Override any gcc2 internal prototype to avoid an error. */
  1509. /* We use char because int might match the return type of a gcc2
  1510. builtin and then its argument prototype would still apply. */
  1511. char $ac_func();
  1512. int main() {
  1513. /* The GNU C library defines this for functions which it implements
  1514. to always fail with ENOSYS. Some functions are actually named
  1515. something starting with __ and the normal name is an alias. */
  1516. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1517. choke me
  1518. #else
  1519. $ac_func();
  1520. #endif
  1521. ; return 0; }
  1522. EOF
  1523. if { (eval echo configure:1667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1524. rm -rf conftest*
  1525. eval "ac_cv_func_$ac_func=yes"
  1526. else
  1527. echo "configure: failed program was:" >&5
  1528. cat conftest.$ac_ext >&5
  1529. rm -rf conftest*
  1530. eval "ac_cv_func_$ac_func=no"
  1531. fi
  1532. rm -f conftest*
  1533. fi
  1534. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1535. echo "$ac_t""yes" 1>&6
  1536. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1537. cat >> confdefs.h <<EOF
  1538. #define $ac_tr_func 1
  1539. EOF
  1540. else
  1541. echo "$ac_t""no" 1>&6
  1542. CCSRCS="$CCSRCS np/fgetln.c"
  1543. fi
  1544. done
  1545. for ac_func in strvis
  1546. do
  1547. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1548. echo "configure:1695: checking for $ac_func" >&5
  1549. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1550. echo $ac_n "(cached) $ac_c" 1>&6
  1551. else
  1552. cat > conftest.$ac_ext <<EOF
  1553. #line 1700 "configure"
  1554. #include "confdefs.h"
  1555. /* System header to define __stub macros and hopefully few prototypes,
  1556. which can conflict with char $ac_func(); below. */
  1557. #include <assert.h>
  1558. /* Override any gcc2 internal prototype to avoid an error. */
  1559. /* We use char because int might match the return type of a gcc2
  1560. builtin and then its argument prototype would still apply. */
  1561. char $ac_func();
  1562. int main() {
  1563. /* The GNU C library defines this for functions which it implements
  1564. to always fail with ENOSYS. Some functions are actually named
  1565. something starting with __ and the normal name is an alias. */
  1566. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1567. choke me
  1568. #else
  1569. $ac_func();
  1570. #endif
  1571. ; return 0; }
  1572. EOF
  1573. if { (eval echo configure:1723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1574. rm -rf conftest*
  1575. eval "ac_cv_func_$ac_func=yes"
  1576. else
  1577. echo "configure: failed program was:" >&5
  1578. cat conftest.$ac_ext >&5
  1579. rm -rf conftest*
  1580. eval "ac_cv_func_$ac_func=no"
  1581. fi
  1582. rm -f conftest*
  1583. fi
  1584. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1585. echo "$ac_t""yes" 1>&6
  1586. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1587. cat >> confdefs.h <<EOF
  1588. #define $ac_tr_func 1
  1589. EOF
  1590. else
  1591. echo "$ac_t""no" 1>&6
  1592. CCSRCS="$CCSRCS np/vis.c"
  1593. fi
  1594. done
  1595. for ac_func in strunvis
  1596. do
  1597. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1598. echo "configure:1751: checking for $ac_func" >&5
  1599. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1600. echo $ac_n "(cached) $ac_c" 1>&6
  1601. else
  1602. cat > conftest.$ac_ext <<EOF
  1603. #line 1756 "configure"
  1604. #include "confdefs.h"
  1605. /* System header to define __stub macros and hopefully few prototypes,
  1606. which can conflict with char $ac_func(); below. */
  1607. #include <assert.h>
  1608. /* Override any gcc2 internal prototype to avoid an error. */
  1609. /* We use char because int might match the return type of a gcc2
  1610. builtin and then its argument prototype would still apply. */
  1611. char $ac_func();
  1612. int main() {
  1613. /* The GNU C library defines this for functions which it implements
  1614. to always fail with ENOSYS. Some functions are actually named
  1615. something starting with __ and the normal name is an alias. */
  1616. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1617. choke me
  1618. #else
  1619. $ac_func();
  1620. #endif
  1621. ; return 0; }
  1622. EOF
  1623. if { (eval echo configure:1779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1624. rm -rf conftest*
  1625. eval "ac_cv_func_$ac_func=yes"
  1626. else
  1627. echo "configure: failed program was:" >&5
  1628. cat conftest.$ac_ext >&5
  1629. rm -rf conftest*
  1630. eval "ac_cv_func_$ac_func=no"
  1631. fi
  1632. rm -f conftest*
  1633. fi
  1634. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1635. echo "$ac_t""yes" 1>&6
  1636. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1637. cat >> confdefs.h <<EOF
  1638. #define $ac_tr_func 1
  1639. EOF
  1640. else
  1641. echo "$ac_t""no" 1>&6
  1642. CCSRCS="$CCSRCS np/unvis.c"
  1643. fi
  1644. done
  1645. cat > conftest.$ac_ext <<EOF
  1646. #line 1806 "configure"
  1647. #include "confdefs.h"
  1648. #include <sys/cdefs.h>
  1649. #ifdef __RCSID
  1650. yes
  1651. #endif
  1652. EOF
  1653. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1654. egrep "yes" >/dev/null 2>&1; then
  1655. :
  1656. else
  1657. rm -rf conftest*
  1658. CPPFLAGS="$CPPFLAGS '-D__RCSID(x)='"
  1659. fi
  1660. rm -f conftest*
  1661. cat > conftest.$ac_ext <<EOF
  1662. #line 1825 "configure"
  1663. #include "confdefs.h"
  1664. #include <sys/cdefs.h>
  1665. #ifdef __COPYRIGHT
  1666. yes
  1667. #endif
  1668. EOF
  1669. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1670. egrep "yes" >/dev/null 2>&1; then
  1671. :
  1672. else
  1673. rm -rf conftest*
  1674. CPPFLAGS="$CPPFLAGS '-D__COPYRIGHT(x)='"
  1675. fi
  1676. rm -f conftest*
  1677. cat > conftest.$ac_ext <<EOF
  1678. #line 1844 "configure"
  1679. #include "confdefs.h"
  1680. #include <sys/cdefs.h>
  1681. #ifdef __RENAME
  1682. yes
  1683. #endif
  1684. EOF
  1685. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1686. egrep "yes" >/dev/null 2>&1; then
  1687. :
  1688. else
  1689. rm -rf conftest*
  1690. CPPFLAGS="$CPPFLAGS '-D__RENAME(x)='"
  1691. fi
  1692. rm -f conftest*
  1693. cat > conftest.$ac_ext <<EOF
  1694. #line 1863 "configure"
  1695. #include "confdefs.h"
  1696. #include <sys/cdefs.h>
  1697. #ifdef _DIAGASSERT
  1698. yes
  1699. #endif
  1700. EOF
  1701. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1702. egrep "yes" >/dev/null 2>&1; then
  1703. :
  1704. else
  1705. rm -rf conftest*
  1706. CPPFLAGS="$CPPFLAGS '-D_DIAGASSERT(x)='"
  1707. fi
  1708. rm -f conftest*
  1709. # Check whether --enable-readline or --disable-readline was given.
  1710. if test "${enable_readline+set}" = set; then
  1711. enableval="$enable_readline"
  1712. if test "x$enable_readline" != "xyes" ; then
  1713. enable_readline="no"
  1714. fi
  1715. else
  1716. enable_readline="yes"
  1717. fi
  1718. # Check whether --enable-debug or --disable-debug was given.
  1719. if test "${enable_debug+set}" = set; then
  1720. enableval="$enable_debug"
  1721. if test "x$enable_debug" != "xyes" ; then
  1722. enable_debug="no"
  1723. fi
  1724. else
  1725. enable_debug="no"
  1726. fi
  1727. if test "x$enable_debug" = "xyes" ; then
  1728. CPPFLAGS="$CPPFLAGS -DDEBUG_TTY -DDEBUG_KEY -DDEBUG_READ -DDEBUG"
  1729. CPPFLAGS="$CPPFLAGS -DDEBUG_REFRESH -DDEBUG_PASTE"
  1730. fi
  1731. ACSRCS="common.c emacs.c vi.c"
  1732. BCSRCS="chared.c el.c hist.c key.c map.c parse.c prompt.c read.c refresh.c search.c sig.c term.c tty.c"
  1733. CCSRCS="$CCSRCS history.c tokenizer.c"
  1734. AGCSRCS="fcns.c help.c"
  1735. BGCSRCS="editline.c"
  1736. HDRS="chared.h el.h hist.h key.h map.h parse.h prompt.h refresh.h search.h sig.h sys.h term.h tokenizer.h tty.h"
  1737. IHDRS="histedit.h"
  1738. IHDR_LINKS=
  1739. AGHDRS="common.h emacs.h vi.h"
  1740. BGHDRS="fcns.h help.h"
  1741. HDR_DIRS="include"
  1742. MAN3="editline.3"
  1743. MAN5="editrc.5"
  1744. MAN3_LINKS=
  1745. for i in el_init.3 el_end.3 el_reset.3 el_gets.3 el_getc.3 el_push.3 \
  1746. el_parse.3 el_set.3 el_get.3 el_source.3 el_resize.3 el_line.3 \
  1747. el_insertstr.3 el_deletestr.3 history_init.3 history_end.3 \
  1748. history.3 ; do
  1749. MAN3_LINKS="$MAN3_LINKS editline.3 $i"
  1750. done
  1751. MAN_DIRS="man/man3 man/man5"
  1752. LIB_DIRS="lib"
  1753. LIB_MAJOR="2"
  1754. LIB_MINOR="6"
  1755. LIB_A="libedit.a"
  1756. LIB_A_LINKS=
  1757. if test "x$ABI" = "xelf" ; then
  1758. LIB_S="libedit.so.$LIB_MAJOR"
  1759. LIB_S_LINK="libedit.so"
  1760. LIB_S_LINKS="$LIB_S $LIB_S_LINK"
  1761. S_LDFLAGS="-shared"
  1762. elif test "x$ABI" = "xaout" ; then
  1763. LIB_S="libedit.so.$LIB_MAJOR.$LIB_MINOR"
  1764. LIB_S_LINKS=
  1765. S_LDFLAGS="-shared"
  1766. elif test "x$ABI" = "xmacho" ; then
  1767. S_LDFLAGS="-shared"
  1768. LIB_S="libedit.$LIB_MAJOR.dylib"
  1769. LIB_S_LINK="libedit.dylib"
  1770. LIB_S_LINKS="$LIB_S $LIB_S_LINK"
  1771. if test "x$prefix" = "xNONE" ; then
  1772. S_LDFLAGS="-undefined suppress -flat_namespace -dynamiclib -compatibility_version $LIB_MAJOR -current_version $LIB_MAJOR -install_name /usr/local/lib/$LIB_S"
  1773. else
  1774. S_LDFLAGS="-undefined suppress -flat_namespace -dynamiclib -compatibility_version $LIB_MAJOR -current_version $LIB_MAJOR -install_name $prefix/lib/$LIB_S"
  1775. fi
  1776. fi
  1777. TEST="TEST/test"
  1778. TCSRCS="TEST/test.c"
  1779. if test "x$enable_readline" = "xyes" ; then
  1780. CCSRCS="$CCSRCS readline.c"
  1781. IHDRS="$IHDRS readline/readline.h"
  1782. IHDR_LINKS="readline.h readline/history.h"
  1783. HDR_DIRS="$HDR_DIRS include/readline"
  1784. LIB_A_LINKS="$LIB_A_LINKS libedit.a libreadline.a"
  1785. if test "x$ABI" = "xelf" ; then
  1786. LIB_S_LINKS="$LIB_S_LINKS $LIB_S_LINK libreadline.so"
  1787. elif test "x$ABI" = "xaout" ; then
  1788. LIB_S_LINKS="$LIB_S_LINKS $LIB_S libreadline.so.$LIB_MAJOR.$LIB_MINOR"
  1789. elif test "x$ABI" = "xmacho" ; then
  1790. LIB_S_LINKS="$LIB_S_LINKS $LIB_S_LINK libreadline.dylib"
  1791. fi
  1792. fi
  1793. trap '' 1 2 15
  1794. cat > confcache <<\EOF
  1795. # This file is a shell script that caches the results of configure
  1796. # tests run on this system so they can be shared between configure
  1797. # scripts and configure runs. It is not useful on other systems.
  1798. # If it contains results you don't want to keep, you may remove or edit it.
  1799. #
  1800. # By default, configure uses ./config.cache as the cache file,
  1801. # creating it if it does not exist already. You can give configure
  1802. # the --cache-file=FILE option to use a different cache file; that is
  1803. # what configure does when it calls configure scripts in
  1804. # subdirectories, so they share the cache.
  1805. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  1806. # config.status only pays attention to the cache file if you give it the
  1807. # --recheck option to rerun configure.
  1808. #
  1809. EOF
  1810. # The following way of writing the cache mishandles newlines in values,
  1811. # but we know of no workaround that is simple, portable, and efficient.
  1812. # So, don't put newlines in cache variables' values.
  1813. # Ultrix sh set writes to stderr and can't be redirected directly,
  1814. # and sets the high bit in the cache file unless we assign to the vars.
  1815. (set) 2>&1 |
  1816. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  1817. *ac_space=\ *)
  1818. # `set' does not quote correctly, so add quotes (double-quote substitution
  1819. # turns \\\\ into \\, and sed turns \\ into \).
  1820. sed -n \
  1821. -e "s/'/'\\\\''/g" \
  1822. -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  1823. ;;
  1824. *)
  1825. # `set' quotes correctly as required by POSIX, so do not add quotes.
  1826. sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  1827. ;;
  1828. esac >> confcache
  1829. if cmp -s $cache_file confcache; then
  1830. :
  1831. else
  1832. if test -w $cache_file; then
  1833. echo "updating cache $cache_file"
  1834. cat confcache > $cache_file
  1835. else
  1836. echo "not updating unwritable cache $cache_file"
  1837. fi
  1838. fi
  1839. rm -f confcache
  1840. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  1841. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  1842. # Let make expand exec_prefix.
  1843. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  1844. # Any assignment to VPATH causes Sun make to only execute
  1845. # the first set of double-colon rules, so remove it if not needed.
  1846. # If there is a colon in the path, we need to keep it.
  1847. if test "x$srcdir" = x.; then
  1848. ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
  1849. fi
  1850. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  1851. DEFS=-DHAVE_CONFIG_H
  1852. # Without the "./", some shells look in PATH for config.status.
  1853. : ${CONFIG_STATUS=./config.status}
  1854. echo creating $CONFIG_STATUS
  1855. rm -f $CONFIG_STATUS
  1856. cat > $CONFIG_STATUS <<EOF
  1857. #! /bin/sh
  1858. # Generated automatically by configure.
  1859. # Run this file to recreate the current configuration.
  1860. # This directory was configured as follows,
  1861. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  1862. #
  1863. # $0 $ac_configure_args
  1864. #
  1865. # Compiler output produced by configure, useful for debugging
  1866. # configure, is in ./config.log if it exists.
  1867. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  1868. for ac_option
  1869. do
  1870. case "\$ac_option" in
  1871. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  1872. echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  1873. exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  1874. -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  1875. echo "$CONFIG_STATUS generated by autoconf version 2.13"
  1876. exit 0 ;;
  1877. -help | --help | --hel | --he | --h)
  1878. echo "\$ac_cs_usage"; exit 0 ;;
  1879. *) echo "\$ac_cs_usage"; exit 1 ;;
  1880. esac
  1881. done
  1882. ac_given_srcdir=$srcdir
  1883. ac_given_INSTALL="$INSTALL"
  1884. trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  1885. EOF
  1886. cat >> $CONFIG_STATUS <<EOF
  1887. # Protect against being on the right side of a sed subst in config.status.
  1888. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  1889. s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  1890. $ac_vpsub
  1891. $extrasub
  1892. s%@SHELL@%$SHELL%g
  1893. s%@CFLAGS@%$CFLAGS%g
  1894. s%@CPPFLAGS@%$CPPFLAGS%g
  1895. s%@CXXFLAGS@%$CXXFLAGS%g
  1896. s%@FFLAGS@%$FFLAGS%g
  1897. s%@DEFS@%$DEFS%g
  1898. s%@LDFLAGS@%$LDFLAGS%g
  1899. s%@LIBS@%$LIBS%g
  1900. s%@exec_prefix@%$exec_prefix%g
  1901. s%@prefix@%$prefix%g
  1902. s%@program_transform_name@%$program_transform_name%g
  1903. s%@bindir@%$bindir%g
  1904. s%@sbindir@%$sbindir%g
  1905. s%@libexecdir@%$libexecdir%g
  1906. s%@datadir@%$datadir%g
  1907. s%@sysconfdir@%$sysconfdir%g
  1908. s%@sharedstatedir@%$sharedstatedir%g
  1909. s%@localstatedir@%$localstatedir%g
  1910. s%@libdir@%$libdir%g
  1911. s%@includedir@%$includedir%g
  1912. s%@oldincludedir@%$oldincludedir%g
  1913. s%@infodir@%$infodir%g
  1914. s%@mandir@%$mandir%g
  1915. s%@CC@%$CC%g
  1916. s%@A_CFLAGS@%$A_CFLAGS%g
  1917. s%@S_CFLAGS@%$S_CFLAGS%g
  1918. s%@CPP@%$CPP%g
  1919. s%@host@%$host%g
  1920. s%@host_alias@%$host_alias%g
  1921. s%@host_cpu@%$host_cpu%g
  1922. s%@host_vendor@%$host_vendor%g
  1923. s%@host_os@%$host_os%g
  1924. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  1925. s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
  1926. s%@INSTALL_DATA@%$INSTALL_DATA%g
  1927. s%@RANLIB@%$RANLIB%g
  1928. s%@AR@%$AR%g
  1929. s%@ACSRCS@%$ACSRCS%g
  1930. s%@BCSRCS@%$BCSRCS%g
  1931. s%@CCSRCS@%$CCSRCS%g
  1932. s%@AGCSRCS@%$AGCSRCS%g
  1933. s%@BGCSRCS@%$BGCSRCS%g
  1934. s%@HDRS@%$HDRS%g
  1935. s%@IHDRS@%$IHDRS%g
  1936. s%@IHDR_LINKS@%$IHDR_LINKS%g
  1937. s%@AGHDRS@%$AGHDRS%g
  1938. s%@BGHDRS@%$BGHDRS%g
  1939. s%@HDR_DIRS@%$HDR_DIRS%g
  1940. s%@MAN3@%$MAN3%g
  1941. s%@MAN5@%$MAN5%g
  1942. s%@MAN3_LINKS@%$MAN3_LINKS%g
  1943. s%@MAN_DIRS@%$MAN_DIRS%g
  1944. s%@LIB_DIRS@%$LIB_DIRS%g
  1945. s%@LIB_VER@%$LIB_VER%g
  1946. s%@LIB_A@%$LIB_A%g
  1947. s%@LIB_A_LINKS@%$LIB_A_LINKS%g
  1948. s%@LIB_S@%$LIB_S%g
  1949. s%@LIB_S_LINKS@%$LIB_S_LINKS%g
  1950. s%@S_LDFLAGS@%$S_LDFLAGS%g
  1951. s%@TEST@%$TEST%g
  1952. s%@TCSRCS@%$TCSRCS%g
  1953. CEOF
  1954. EOF
  1955. cat >> $CONFIG_STATUS <<\EOF
  1956. # Split the substitutions into bite-sized pieces for seds with
  1957. # small command number limits, like on Digital OSF/1 and HP-UX.
  1958. ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  1959. ac_file=1 # Number of current file.
  1960. ac_beg=1 # First line for current file.
  1961. ac_end=$ac_max_sed_cmds # Line after last line for current file.
  1962. ac_more_lines=:
  1963. ac_sed_cmds=""
  1964. while $ac_more_lines; do
  1965. if test $ac_beg -gt 1; then
  1966. sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  1967. else
  1968. sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  1969. fi
  1970. if test ! -s conftest.s$ac_file; then
  1971. ac_more_lines=false
  1972. rm -f conftest.s$ac_file
  1973. else
  1974. if test -z "$ac_sed_cmds"; then
  1975. ac_sed_cmds="sed -f conftest.s$ac_file"
  1976. else
  1977. ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  1978. fi
  1979. ac_file=`expr $ac_file + 1`
  1980. ac_beg=$ac_end
  1981. ac_end=`expr $ac_end + $ac_max_sed_cmds`
  1982. fi
  1983. done
  1984. if test -z "$ac_sed_cmds"; then
  1985. ac_sed_cmds=cat
  1986. fi
  1987. EOF
  1988. cat >> $CONFIG_STATUS <<EOF
  1989. CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
  1990. EOF
  1991. cat >> $CONFIG_STATUS <<\EOF
  1992. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  1993. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  1994. case "$ac_file" in
  1995. *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  1996. ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  1997. *) ac_file_in="${ac_file}.in" ;;
  1998. esac
  1999. # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  2000. # Remove last slash and all that follows it. Not all systems have dirname.
  2001. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  2002. if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  2003. # The file is in a subdirectory.
  2004. test ! -d "$ac_dir" && mkdir "$ac_dir"
  2005. ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  2006. # A "../" for each directory in $ac_dir_suffix.
  2007. ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  2008. else
  2009. ac_dir_suffix= ac_dots=
  2010. fi
  2011. case "$ac_given_srcdir" in
  2012. .) srcdir=.
  2013. if test -z "$ac_dots"; then top_srcdir=.
  2014. else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  2015. /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  2016. *) # Relative path.
  2017. srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  2018. top_srcdir="$ac_dots$ac_given_srcdir" ;;
  2019. esac
  2020. case "$ac_given_INSTALL" in
  2021. [/$]*) INSTALL="$ac_given_INSTALL" ;;
  2022. *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  2023. esac
  2024. echo creating "$ac_file"
  2025. rm -f "$ac_file"
  2026. configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  2027. case "$ac_file" in
  2028. *Makefile*) ac_comsub="1i\\
  2029. # $configure_input" ;;
  2030. *) ac_comsub= ;;
  2031. esac
  2032. ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  2033. sed -e "$ac_comsub
  2034. s%@configure_input@%$configure_input%g
  2035. s%@srcdir@%$srcdir%g
  2036. s%@top_srcdir@%$top_srcdir%g
  2037. s%@INSTALL@%$INSTALL%g
  2038. " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  2039. fi; done
  2040. rm -f conftest.s*
  2041. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  2042. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  2043. #
  2044. # ac_d sets the value in "#define NAME VALUE" lines.
  2045. ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  2046. ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
  2047. ac_dC='\3'
  2048. ac_dD='%g'
  2049. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  2050. ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  2051. ac_uB='\([ ]\)%\1#\2define\3'
  2052. ac_uC=' '
  2053. ac_uD='\4%g'
  2054. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  2055. ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  2056. ac_eB='$%\1#\2define\3'
  2057. ac_eC=' '
  2058. ac_eD='%g'
  2059. if test "${CONFIG_HEADERS+set}" != set; then
  2060. EOF
  2061. cat >> $CONFIG_STATUS <<EOF
  2062. CONFIG_HEADERS="config.h"
  2063. EOF
  2064. cat >> $CONFIG_STATUS <<\EOF
  2065. fi
  2066. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  2067. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  2068. case "$ac_file" in
  2069. *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  2070. ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  2071. *) ac_file_in="${ac_file}.in" ;;
  2072. esac
  2073. echo creating $ac_file
  2074. rm -f conftest.frag conftest.in conftest.out
  2075. ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  2076. cat $ac_file_inputs > conftest.in
  2077. EOF
  2078. # Transform confdefs.h into a sed script conftest.vals that substitutes
  2079. # the proper values into config.h.in to produce config.h. And first:
  2080. # Protect against being on the right side of a sed subst in config.status.
  2081. # Protect against being in an unquoted here document in config.status.
  2082. rm -f conftest.vals
  2083. cat > conftest.hdr <<\EOF
  2084. s/[\\&%]/\\&/g
  2085. s%[\\$`]%\\&%g
  2086. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  2087. s%ac_d%ac_u%gp
  2088. s%ac_u%ac_e%gp
  2089. EOF
  2090. sed -n -f conftest.hdr confdefs.h > conftest.vals
  2091. rm -f conftest.hdr
  2092. # This sed command replaces #undef with comments. This is necessary, for
  2093. # example, in the case of _POSIX_SOURCE, which is predefined and required
  2094. # on some systems where configure will not decide to define it.
  2095. cat >> conftest.vals <<\EOF
  2096. s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  2097. EOF
  2098. # Break up conftest.vals because some shells have a limit on
  2099. # the size of here documents, and old seds have small limits too.
  2100. rm -f conftest.tail
  2101. while :
  2102. do
  2103. ac_lines=`grep -c . conftest.vals`
  2104. # grep -c gives empty output for an empty file on some AIX systems.
  2105. if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  2106. # Write a limited-size here document to conftest.frag.
  2107. echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  2108. sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  2109. echo 'CEOF
  2110. sed -f conftest.frag conftest.in > conftest.out
  2111. rm -f conftest.in
  2112. mv conftest.out conftest.in
  2113. ' >> $CONFIG_STATUS
  2114. sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  2115. rm -f conftest.vals
  2116. mv conftest.tail conftest.vals
  2117. done
  2118. rm -f conftest.vals
  2119. cat >> $CONFIG_STATUS <<\EOF
  2120. rm -f conftest.frag conftest.h
  2121. echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
  2122. cat conftest.in >> conftest.h
  2123. rm -f conftest.in
  2124. if cmp -s $ac_file conftest.h 2>/dev/null; then
  2125. echo "$ac_file is unchanged"
  2126. rm -f conftest.h
  2127. else
  2128. # Remove last slash and all that follows it. Not all systems have dirname.
  2129. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  2130. if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  2131. # The file is in a subdirectory.
  2132. test ! -d "$ac_dir" && mkdir "$ac_dir"
  2133. fi
  2134. rm -f $ac_file
  2135. mv conftest.h $ac_file
  2136. fi
  2137. fi; done
  2138. EOF
  2139. cat >> $CONFIG_STATUS <<EOF
  2140. EOF
  2141. cat >> $CONFIG_STATUS <<\EOF
  2142. exit 0
  2143. EOF
  2144. chmod +x $CONFIG_STATUS
  2145. rm -fr confdefs* $ac_clean_files
  2146. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1