configure 492 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481
  1. #! /bin/sh
  2. # From configure.in Revision: 1.456 .
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated by Autoconf 2.52.20080325.
  5. #
  6. # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
  7. # Free Software Foundation, Inc.
  8. # This configure script is free software; the Free Software Foundation
  9. # gives unlimited permission to copy, distribute and modify it.
  10. # Avoid depending upon Character Ranges.
  11. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  12. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  13. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  14. as_cr_digits='0123456789'
  15. as_cr_alnum=$as_cr_Letters$as_cr_digits
  16. # Sed expression to map a string onto a valid variable name.
  17. as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
  18. # Sed expression to map a string onto a valid CPP name.
  19. as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
  20. # Be Bourne compatible
  21. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  22. emulate sh
  23. NULLCMD=:
  24. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  25. set -o posix
  26. fi
  27. # Name of the executable.
  28. as_me=`echo "$0" |sed 's,.*[\\/],,'`
  29. if expr a : '\(a\)' >/dev/null 2>&1; then
  30. as_expr=expr
  31. else
  32. as_expr=false
  33. fi
  34. rm -f conf$$ conf$$.exe conf$$.file
  35. echo >conf$$.file
  36. if ln -s conf$$.file conf$$ 2>/dev/null; then
  37. # We could just check for DJGPP; but this test a) works b) is more generic
  38. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  39. if test -f conf$$.exe; then
  40. # Don't use ln at all; we don't have any links
  41. as_ln_s='cp -p'
  42. else
  43. as_ln_s='ln -s'
  44. fi
  45. elif ln conf$$.file conf$$ 2>/dev/null; then
  46. as_ln_s=ln
  47. else
  48. as_ln_s='cp -p'
  49. fi
  50. rm -f conf$$ conf$$.exe conf$$.file
  51. as_executable_p="test -f"
  52. # Support unset when possible.
  53. if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
  54. as_unset=unset
  55. else
  56. as_unset=false
  57. fi
  58. # NLS nuisances.
  59. $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
  60. $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
  61. $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
  62. $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
  63. $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
  64. $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
  65. $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
  66. $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
  67. # IFS
  68. # We need space, tab and new line, in precisely that order.
  69. as_nl='
  70. '
  71. IFS=" $as_nl"
  72. # CDPATH.
  73. $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
  74. # Name of the host.
  75. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  76. # so uname gets run too.
  77. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  78. exec 6>&1
  79. #
  80. # Initializations.
  81. #
  82. ac_default_prefix=/usr/local
  83. cross_compiling=no
  84. subdirs=
  85. MFLAGS= MAKEFLAGS=
  86. SHELL=${CONFIG_SHELL-/bin/sh}
  87. # Maximum number of lines to put in a shell here document.
  88. # This variable seems obsolete. It should probably be removed, and
  89. # only ac_max_sed_lines should be used.
  90. : ${ac_max_here_lines=38}
  91. ac_unique_file="ncurses/base/lib_initscr.c"
  92. # Factoring default headers for most tests.
  93. ac_includes_default="\
  94. #include <stdio.h>
  95. #if HAVE_SYS_TYPES_H
  96. # include <sys/types.h>
  97. #endif
  98. #if HAVE_SYS_STAT_H
  99. # include <sys/stat.h>
  100. #endif
  101. #if STDC_HEADERS
  102. # include <stdlib.h>
  103. # include <stddef.h>
  104. #else
  105. # if HAVE_STDLIB_H
  106. # include <stdlib.h>
  107. # endif
  108. #endif
  109. #if HAVE_STRING_H
  110. # if !STDC_HEADERS && HAVE_MEMORY_H
  111. # include <memory.h>
  112. # endif
  113. # include <string.h>
  114. #endif
  115. #if HAVE_STRINGS_H
  116. # include <strings.h>
  117. #endif
  118. #if HAVE_INTTYPES_H
  119. # include <inttypes.h>
  120. #else
  121. # if HAVE_STDINT_H
  122. # include <stdint.h>
  123. # endif
  124. #endif
  125. #if HAVE_UNISTD_H
  126. # include <unistd.h>
  127. #endif"
  128. # Initialize some variables set by options.
  129. ac_init_help=
  130. ac_init_version=false
  131. # The variables have the same names as the options, with
  132. # dashes changed to underlines.
  133. cache_file=/dev/null
  134. exec_prefix=NONE
  135. no_create=
  136. no_recursion=
  137. prefix=NONE
  138. program_prefix=NONE
  139. program_suffix=NONE
  140. program_transform_name=s,x,x,
  141. silent=
  142. site=
  143. srcdir=
  144. verbose=
  145. x_includes=NONE
  146. x_libraries=NONE
  147. # Installation directory options.
  148. # These are left unexpanded so users can "make install exec_prefix=/foo"
  149. # and all the variables that are supposed to be based on exec_prefix
  150. # by default will actually change.
  151. # Use braces instead of parens because sh, perl, etc. also accept them.
  152. bindir='${exec_prefix}/bin'
  153. sbindir='${exec_prefix}/sbin'
  154. libexecdir='${exec_prefix}/libexec'
  155. datadir='${prefix}/share'
  156. sysconfdir='${prefix}/etc'
  157. sharedstatedir='${prefix}/com'
  158. localstatedir='${prefix}/var'
  159. libdir='${exec_prefix}/lib'
  160. includedir='${prefix}/include'
  161. oldincludedir='/usr/include'
  162. infodir='${prefix}/info'
  163. mandir='${prefix}/man'
  164. # Identity of this package.
  165. PACKAGE_NAME=
  166. PACKAGE_TARNAME=
  167. PACKAGE_VERSION=
  168. PACKAGE_STRING=
  169. PACKAGE_BUGREPORT=
  170. ac_prev=
  171. for ac_option
  172. do
  173. # If the previous option needs an argument, assign it.
  174. if test -n "$ac_prev"; then
  175. eval "$ac_prev=\$ac_option"
  176. ac_prev=
  177. continue
  178. fi
  179. ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  180. # Accept the important Cygnus configure options, so we can diagnose typos.
  181. case $ac_option in
  182. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  183. ac_prev=bindir ;;
  184. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  185. bindir=$ac_optarg ;;
  186. -build | --build | --buil | --bui | --bu)
  187. ac_prev=build_alias ;;
  188. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  189. build_alias=$ac_optarg ;;
  190. -cache-file | --cache-file | --cache-fil | --cache-fi \
  191. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  192. ac_prev=cache_file ;;
  193. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  194. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  195. cache_file=$ac_optarg ;;
  196. --config-cache | -C)
  197. cache_file=config.cache ;;
  198. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  199. ac_prev=datadir ;;
  200. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  201. | --da=*)
  202. datadir=$ac_optarg ;;
  203. -disable-* | --disable-*)
  204. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  205. # Reject names that are not valid shell variable names.
  206. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  207. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  208. { (exit 1); exit 1; }; }
  209. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  210. eval "enable_$ac_feature=no" ;;
  211. -enable-* | --enable-*)
  212. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  213. # Reject names that are not valid shell variable names.
  214. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  215. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  216. { (exit 1); exit 1; }; }
  217. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  218. case $ac_option in
  219. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  220. *) ac_optarg=yes ;;
  221. esac
  222. eval "enable_$ac_feature='$ac_optarg'" ;;
  223. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  224. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  225. | --exec | --exe | --ex)
  226. ac_prev=exec_prefix ;;
  227. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  228. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  229. | --exec=* | --exe=* | --ex=*)
  230. exec_prefix=$ac_optarg ;;
  231. -gas | --gas | --ga | --g)
  232. # Obsolete; use --with-gas.
  233. with_gas=yes ;;
  234. -help | --help | --hel | --he | -h)
  235. ac_init_help=long ;;
  236. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  237. ac_init_help=recursive ;;
  238. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  239. ac_init_help=short ;;
  240. -host | --host | --hos | --ho)
  241. ac_prev=host_alias ;;
  242. -host=* | --host=* | --hos=* | --ho=*)
  243. host_alias=$ac_optarg ;;
  244. -includedir | --includedir | --includedi | --included | --include \
  245. | --includ | --inclu | --incl | --inc)
  246. ac_prev=includedir ;;
  247. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  248. | --includ=* | --inclu=* | --incl=* | --inc=*)
  249. includedir=$ac_optarg ;;
  250. -infodir | --infodir | --infodi | --infod | --info | --inf)
  251. ac_prev=infodir ;;
  252. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  253. infodir=$ac_optarg ;;
  254. -libdir | --libdir | --libdi | --libd)
  255. ac_prev=libdir ;;
  256. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  257. libdir=$ac_optarg ;;
  258. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  259. | --libexe | --libex | --libe)
  260. ac_prev=libexecdir ;;
  261. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  262. | --libexe=* | --libex=* | --libe=*)
  263. libexecdir=$ac_optarg ;;
  264. -localstatedir | --localstatedir | --localstatedi | --localstated \
  265. | --localstate | --localstat | --localsta | --localst \
  266. | --locals | --local | --loca | --loc | --lo)
  267. ac_prev=localstatedir ;;
  268. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  269. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  270. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  271. localstatedir=$ac_optarg ;;
  272. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  273. ac_prev=mandir ;;
  274. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  275. mandir=$ac_optarg ;;
  276. -nfp | --nfp | --nf)
  277. # Obsolete; use --without-fp.
  278. with_fp=no ;;
  279. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  280. | --no-cr | --no-c)
  281. no_create=yes ;;
  282. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  283. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  284. no_recursion=yes ;;
  285. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  286. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  287. | --oldin | --oldi | --old | --ol | --o)
  288. ac_prev=oldincludedir ;;
  289. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  290. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  291. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  292. oldincludedir=$ac_optarg ;;
  293. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  294. ac_prev=prefix ;;
  295. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  296. prefix=$ac_optarg ;;
  297. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  298. | --program-pre | --program-pr | --program-p)
  299. ac_prev=program_prefix ;;
  300. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  301. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  302. program_prefix=$ac_optarg ;;
  303. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  304. | --program-suf | --program-su | --program-s)
  305. ac_prev=program_suffix ;;
  306. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  307. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  308. program_suffix=$ac_optarg ;;
  309. -program-transform-name | --program-transform-name \
  310. | --program-transform-nam | --program-transform-na \
  311. | --program-transform-n | --program-transform- \
  312. | --program-transform | --program-transfor \
  313. | --program-transfo | --program-transf \
  314. | --program-trans | --program-tran \
  315. | --progr-tra | --program-tr | --program-t)
  316. ac_prev=program_transform_name ;;
  317. -program-transform-name=* | --program-transform-name=* \
  318. | --program-transform-nam=* | --program-transform-na=* \
  319. | --program-transform-n=* | --program-transform-=* \
  320. | --program-transform=* | --program-transfor=* \
  321. | --program-transfo=* | --program-transf=* \
  322. | --program-trans=* | --program-tran=* \
  323. | --progr-tra=* | --program-tr=* | --program-t=*)
  324. program_transform_name=$ac_optarg ;;
  325. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  326. | -silent | --silent | --silen | --sile | --sil)
  327. silent=yes ;;
  328. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  329. ac_prev=sbindir ;;
  330. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  331. | --sbi=* | --sb=*)
  332. sbindir=$ac_optarg ;;
  333. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  334. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  335. | --sharedst | --shareds | --shared | --share | --shar \
  336. | --sha | --sh)
  337. ac_prev=sharedstatedir ;;
  338. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  339. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  340. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  341. | --sha=* | --sh=*)
  342. sharedstatedir=$ac_optarg ;;
  343. -site | --site | --sit)
  344. ac_prev=site ;;
  345. -site=* | --site=* | --sit=*)
  346. site=$ac_optarg ;;
  347. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  348. ac_prev=srcdir ;;
  349. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  350. srcdir=$ac_optarg ;;
  351. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  352. | --syscon | --sysco | --sysc | --sys | --sy)
  353. ac_prev=sysconfdir ;;
  354. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  355. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  356. sysconfdir=$ac_optarg ;;
  357. -target | --target | --targe | --targ | --tar | --ta | --t)
  358. ac_prev=target_alias ;;
  359. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  360. target_alias=$ac_optarg ;;
  361. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  362. verbose=yes ;;
  363. -version | --version | --versio | --versi | --vers | -V)
  364. ac_init_version=: ;;
  365. -with-* | --with-*)
  366. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  367. # Reject names that are not valid shell variable names.
  368. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  369. { echo "$as_me: error: invalid package name: $ac_package" >&2
  370. { (exit 1); exit 1; }; }
  371. ac_package=`echo $ac_package| sed 's/-/_/g'`
  372. case $ac_option in
  373. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  374. *) ac_optarg=yes ;;
  375. esac
  376. eval "with_$ac_package='$ac_optarg'" ;;
  377. -without-* | --without-*)
  378. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  379. # Reject names that are not valid shell variable names.
  380. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  381. { echo "$as_me: error: invalid package name: $ac_package" >&2
  382. { (exit 1); exit 1; }; }
  383. ac_package=`echo $ac_package | sed 's/-/_/g'`
  384. eval "with_$ac_package=no" ;;
  385. --x)
  386. # Obsolete; use --with-x.
  387. with_x=yes ;;
  388. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  389. | --x-incl | --x-inc | --x-in | --x-i)
  390. ac_prev=x_includes ;;
  391. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  392. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  393. x_includes=$ac_optarg ;;
  394. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  395. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  396. ac_prev=x_libraries ;;
  397. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  398. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  399. x_libraries=$ac_optarg ;;
  400. -*) { echo "$as_me: error: unrecognized option: $ac_option
  401. Try \`$0 --help' for more information." >&2
  402. { (exit 1); exit 1; }; }
  403. ;;
  404. *=*)
  405. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  406. # Reject names that are not valid shell variable names.
  407. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  408. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  409. { (exit 1); exit 1; }; }
  410. ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  411. eval "$ac_envvar='$ac_optarg'"
  412. export $ac_envvar ;;
  413. *)
  414. # FIXME: should be removed in autoconf 3.0.
  415. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  416. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  417. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  418. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  419. ;;
  420. esac
  421. done
  422. if test -n "$ac_prev"; then
  423. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  424. { echo "$as_me: error: missing argument to $ac_option" >&2
  425. { (exit 1); exit 1; }; }
  426. fi
  427. # Be sure to have absolute paths.
  428. for ac_var in exec_prefix prefix
  429. do
  430. eval ac_val=$`echo $ac_var`
  431. case $ac_val in
  432. [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  433. *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
  434. { (exit 1); exit 1; }; };;
  435. esac
  436. done
  437. # Be sure to have absolute paths.
  438. for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  439. localstatedir libdir includedir oldincludedir infodir mandir
  440. do
  441. eval ac_val=$`echo $ac_var`
  442. case $ac_val in
  443. [\\/$]* | ?:[\\/]* ) ;;
  444. *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
  445. { (exit 1); exit 1; }; };;
  446. esac
  447. done
  448. # There might be people who depend on the old broken behavior: `$host'
  449. # used to hold the argument of --host etc.
  450. build=$build_alias
  451. host=$host_alias
  452. target=$target_alias
  453. # FIXME: should be removed in autoconf 3.0.
  454. if test "x$host_alias" != x; then
  455. if test "x$build_alias" = x; then
  456. cross_compiling=maybe
  457. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  458. If a cross compiler is detected then cross compile mode will be used." >&2
  459. elif test "x$build_alias" != "x$host_alias"; then
  460. cross_compiling=yes
  461. fi
  462. fi
  463. ac_tool_prefix=
  464. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  465. test "$silent" = yes && exec 6>/dev/null
  466. # Find the source files, if location was not specified.
  467. if test -z "$srcdir"; then
  468. ac_srcdir_defaulted=yes
  469. # Try the directory containing this script, then its parent.
  470. ac_prog=$0
  471. ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
  472. test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  473. srcdir=$ac_confdir
  474. if test ! -r $srcdir/$ac_unique_file; then
  475. srcdir=..
  476. fi
  477. else
  478. ac_srcdir_defaulted=no
  479. fi
  480. if test ! -r $srcdir/$ac_unique_file; then
  481. if test "$ac_srcdir_defaulted" = yes; then
  482. { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
  483. { (exit 1); exit 1; }; }
  484. else
  485. { echo "$as_me: error: cannot find sources in $srcdir" >&2
  486. { (exit 1); exit 1; }; }
  487. fi
  488. fi
  489. srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  490. ac_env_build_alias_set=${build_alias+set}
  491. ac_env_build_alias_value=$build_alias
  492. ac_cv_env_build_alias_set=${build_alias+set}
  493. ac_cv_env_build_alias_value=$build_alias
  494. ac_env_host_alias_set=${host_alias+set}
  495. ac_env_host_alias_value=$host_alias
  496. ac_cv_env_host_alias_set=${host_alias+set}
  497. ac_cv_env_host_alias_value=$host_alias
  498. ac_env_target_alias_set=${target_alias+set}
  499. ac_env_target_alias_value=$target_alias
  500. ac_cv_env_target_alias_set=${target_alias+set}
  501. ac_cv_env_target_alias_value=$target_alias
  502. ac_env_CC_set=${CC+set}
  503. ac_env_CC_value=$CC
  504. ac_cv_env_CC_set=${CC+set}
  505. ac_cv_env_CC_value=$CC
  506. ac_env_CFLAGS_set=${CFLAGS+set}
  507. ac_env_CFLAGS_value=$CFLAGS
  508. ac_cv_env_CFLAGS_set=${CFLAGS+set}
  509. ac_cv_env_CFLAGS_value=$CFLAGS
  510. ac_env_LDFLAGS_set=${LDFLAGS+set}
  511. ac_env_LDFLAGS_value=$LDFLAGS
  512. ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  513. ac_cv_env_LDFLAGS_value=$LDFLAGS
  514. ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  515. ac_env_CPPFLAGS_value=$CPPFLAGS
  516. ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  517. ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  518. ac_env_CPP_set=${CPP+set}
  519. ac_env_CPP_value=$CPP
  520. ac_cv_env_CPP_set=${CPP+set}
  521. ac_cv_env_CPP_value=$CPP
  522. ac_env_CXX_set=${CXX+set}
  523. ac_env_CXX_value=$CXX
  524. ac_cv_env_CXX_set=${CXX+set}
  525. ac_cv_env_CXX_value=$CXX
  526. ac_env_CXXFLAGS_set=${CXXFLAGS+set}
  527. ac_env_CXXFLAGS_value=$CXXFLAGS
  528. ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
  529. ac_cv_env_CXXFLAGS_value=$CXXFLAGS
  530. ac_env_CXXCPP_set=${CXXCPP+set}
  531. ac_env_CXXCPP_value=$CXXCPP
  532. ac_cv_env_CXXCPP_set=${CXXCPP+set}
  533. ac_cv_env_CXXCPP_value=$CXXCPP
  534. #
  535. # Report the --help message.
  536. #
  537. if test "$ac_init_help" = "long"; then
  538. # Omit some internal or obsolete options to make the list less imposing.
  539. # This message is too long to be a string in the A/UX 3.1 sh.
  540. cat <<EOF
  541. \`configure' configures this package to adapt to many kinds of systems.
  542. Usage: $0 [OPTION]... [VAR=VALUE]...
  543. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  544. VAR=VALUE. See below for descriptions of some of the useful variables.
  545. Defaults for the options are specified in brackets.
  546. Configuration:
  547. -h, --help display this help and exit
  548. --help=short display options specific to this package
  549. --help=recursive display the short help of all the included packages
  550. -V, --version display version information and exit
  551. -q, --quiet, --silent do not print \`checking...' messages
  552. --cache-file=FILE cache test results in FILE [disabled]
  553. -C, --config-cache alias for \`--cache-file=config.cache'
  554. -n, --no-create do not create output files
  555. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  556. EOF
  557. cat <<EOF
  558. Installation directories:
  559. --prefix=PREFIX install architecture-independent files in PREFIX
  560. [$ac_default_prefix]
  561. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  562. [PREFIX]
  563. By default, \`make install' will install all the files in
  564. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  565. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  566. for instance \`--prefix=\$HOME'.
  567. For better control, use the options below.
  568. Fine tuning of the installation directories:
  569. --bindir=DIR user executables [EPREFIX/bin]
  570. --sbindir=DIR system admin executables [EPREFIX/sbin]
  571. --libexecdir=DIR program executables [EPREFIX/libexec]
  572. --datadir=DIR read-only architecture-independent data [PREFIX/share]
  573. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  574. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  575. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  576. --libdir=DIR object code libraries [EPREFIX/lib]
  577. --includedir=DIR C header files [PREFIX/include]
  578. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  579. --infodir=DIR info documentation [PREFIX/info]
  580. --mandir=DIR man documentation [PREFIX/man]
  581. EOF
  582. cat <<\EOF
  583. Program names:
  584. --program-prefix=PREFIX prepend PREFIX to installed program names
  585. --program-suffix=SUFFIX append SUFFIX to installed program names
  586. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  587. System types:
  588. --build=BUILD configure for building on BUILD [guessed]
  589. --host=HOST build programs to run on HOST [BUILD]
  590. --target=TARGET configure for building compilers for TARGET [HOST]
  591. EOF
  592. fi
  593. if test -n "$ac_init_help"; then
  594. cat <<\EOF
  595. Optional Packages:
  596. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  597. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  598. Optional Features:
  599. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  600. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  601. --with-rel-version=XXX override derived release version
  602. --with-abi-version=XXX override derived ABI version
  603. --with-system-type=XXX test: override derived host system-type
  604. --without-cxx do not adjust ncurses bool to match C++
  605. --without-cxx-binding do not build C++ binding and demo
  606. --without-ada suppress check for Ada95, don't build demo
  607. --without-manpages suppress install of manpages
  608. --without-progs suppress build with programs (e.g., tic)
  609. --without-curses-h install curses.h as ncurses.h only
  610. --enable-mixed-case tic should assume mixed-case filenames
  611. --with-install-prefix prefixes actual install-location ($DESTDIR)
  612. Build-Tools Needed to Compile Temporary Applications for Cross-compiling:
  613. --with-build-cc=XXX the build C compiler ($BUILD_CC)
  614. --with-build-cpp=XXX the build C preprocessor ($BUILD_CPP)
  615. --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS)
  616. --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS)
  617. --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS)
  618. --with-build-libs=XXX the build libraries (${BUILD_LIBS})
  619. Options to Specify the Libraries Built/Used:
  620. --with-libtool generate libraries with libtool
  621. --with-shared generate shared-libraries
  622. --with-normal generate normal-libraries (default)
  623. --with-debug generate debug-libraries (default)
  624. --with-profile generate profile-libraries
  625. --with-termlib generate separate terminfo library
  626. --with-ticlib generate separate tic library
  627. --with-gpm use Alessandro Rubini's GPM library
  628. --without-dlsym do not use dlsym() to load GPM dynamically
  629. --with-sysmouse use sysmouse (FreeBSD console)
  630. --enable-rpath use rpath option when generating shared libraries
  631. --disable-relink relink shared libraries during install
  632. --with-shlib-version=X Specify rel or abi version for shared libs
  633. Fine-Tuning Your Configuration:
  634. --disable-overwrite leave out the link to -lcurses
  635. --disable-database do not use terminfo, only fallbacks/termcap
  636. --with-database=XXX specify terminfo source to install
  637. --with-hashed-db specify hashed-database library
  638. --with-fallbacks=XXX specify list of fallback terminal descriptions
  639. --without-xterm-new specify if xterm terminfo should be old version
  640. --with-terminfo-dirs=XXX specify list of terminfo directories (default: DATADIR/terminfo)
  641. --with-default-terminfo-dir=DIR default terminfo directory (default: DATADIR/terminfo)
  642. --disable-big-core assume machine has little memory
  643. --disable-big-strings assume compiler has only standard-size strings
  644. --enable-termcap compile in termcap fallback support
  645. --with-termpath=XXX specify list of termcap files (default: /etc/termcap:/usr/share/misc/termcap)
  646. --enable-getcap fast termcap load, no xrefs to terminfo
  647. --enable-getcap-cache cache translated termcaps in ~/.terminfo
  648. --disable-home-terminfo drop ~/.terminfo from terminfo search-path
  649. --disable-root-environ restrict environment when running as root
  650. --enable-symlinks make tic use symbolic links not hard links
  651. --enable-broken_linker compile with broken-linker support code
  652. --enable-bsdpad recognize BSD-style prefix padding
  653. --enable-widec compile with wide-char/UTF-8 code
  654. --disable-lp64 allow chtype to be long (ignore _LP64)
  655. --disable-largefile omit support for large files
  656. --disable-tparm-varargs compile tparm() without varargs interface
  657. --disable-tic-depends link tic library without explicit dependency on ncurses library
  658. --with-bool=TYPE override fallback type of bool variable
  659. --with-caps=alt compile with alternate Caps file
  660. --with-chtype=TYPE override type of chtype
  661. --with-ospeed=TYPE override type of ospeed variable
  662. --with-mmask-t=TYPE override type of mmask_t
  663. --with-rcs-ids compile-in RCS identifiers
  664. Options to Specify How Manpages are Installed:
  665. --with-manpage-format specify manpage-format: gzip/compress/BSDI/normal and
  666. optionally formatted/catonly, e.g., gzip,formatted
  667. --with-manpage-renames specify manpage-renaming
  668. --with-manpage-aliases specify manpage-aliases using .so
  669. --with-manpage-symlinks specify manpage-aliases using symlinks
  670. --with-manpage-tbl specify manpage processing with tbl
  671. Extensions:
  672. --disable-ext-funcs disable function-extensions
  673. --enable-const compile with extra/non-standard const
  674. --enable-ext-colors compile for 256-color support
  675. --enable-ext-mouse compile for extended mouse-encoding
  676. --enable-no-padding compile with $NCURSES_NO_PADDING code
  677. --enable-signed-char compile using signed Boolean's in term.h
  678. --enable-sigwinch compile with SIGWINCH handler
  679. --enable-tcap-names compile with user-definable terminal capabilities
  680. Development Code:
  681. --without-develop disable development options
  682. --enable-hard-tabs compile with hard-tabs code
  683. --enable-xmc-glitch compile with support for xmc (magic-cookie)
  684. Experimental Code:
  685. --disable-assumed-color do not assume anything about default-colors
  686. --disable-hashmap compile without hashmap scrolling-optimization
  687. --enable-colorfgbg compile with $COLORFGBG code
  688. --with-pthread use POSIX thread library
  689. --enable-weak-symbols enable weak-symbols for pthreads
  690. --enable-reentrant compile with experimental reentrant code
  691. --enable-safe-sprintf compile with experimental safe-sprintf code
  692. --disable-scroll-hints compile without scroll-hints code
  693. --enable-wgetch-events compile with experimental wgetch-events code
  694. Testing/development Options:
  695. --enable-echo build: display "compiling" commands (default)
  696. --enable-warnings build: turn on GCC compiler warnings
  697. --enable-assertions test: turn on generation of assertion code
  698. --with-dmalloc test: use Gray Watson's dmalloc library
  699. --with-dbmalloc test: use Conor Cahill's dbmalloc library
  700. --with-valgrind test: use valgrind
  701. --disable-leaks test: free permanent memory, analyze leaks
  702. --enable-expanded test: generate functions for certain macros
  703. --disable-macros test: use functions rather than macros
  704. --with-trace test: add trace() function to all models of ncurses
  705. Ada95 Binding Options:
  706. --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
  707. --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/lib/ada/adainclude)
  708. --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
  709. Some influential environment variables:
  710. CC C compiler command
  711. CFLAGS C compiler flags
  712. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  713. nonstandard directory <lib dir>
  714. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  715. headers in a nonstandard directory <include dir>
  716. CPP C preprocessor
  717. CXX C++ compiler command
  718. CXXFLAGS C++ compiler flags
  719. CXXCPP C++ preprocessor
  720. Use these variables to override the choices made by `configure' or to help
  721. it to find libraries and programs with nonstandard names/locations.
  722. EOF
  723. fi
  724. if test "$ac_init_help" = "recursive"; then
  725. # If there are subdirs, report their specific --help.
  726. ac_popdir=`pwd`
  727. for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
  728. cd $ac_subdir
  729. # A "../" for each directory in /$ac_subdir.
  730. ac_dots=`echo $ac_subdir |
  731. sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
  732. case $srcdir in
  733. .) # No --srcdir option. We are building in place.
  734. ac_sub_srcdir=$srcdir ;;
  735. [\\/]* | ?:[\\/]* ) # Absolute path.
  736. ac_sub_srcdir=$srcdir/$ac_subdir ;;
  737. *) # Relative path.
  738. ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
  739. esac
  740. # Check for guested configure; otherwise get Cygnus style configure.
  741. if test -f $ac_sub_srcdir/configure.gnu; then
  742. echo
  743. $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
  744. elif test -f $ac_sub_srcdir/configure; then
  745. echo
  746. $SHELL $ac_sub_srcdir/configure --help=recursive
  747. elif test -f $ac_sub_srcdir/configure.ac ||
  748. test -f $ac_sub_srcdir/configure.in; then
  749. echo
  750. $ac_configure --help
  751. else
  752. echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
  753. fi
  754. cd $ac_popdir
  755. done
  756. fi
  757. test -n "$ac_init_help" && exit 0
  758. if $ac_init_version; then
  759. cat <<\EOF
  760. Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
  761. Free Software Foundation, Inc.
  762. This configure script is free software; the Free Software Foundation
  763. gives unlimited permission to copy, distribute and modify it.
  764. EOF
  765. exit 0
  766. fi
  767. exec 5>config.log
  768. cat >&5 <<EOF
  769. This file contains any messages produced by compilers while
  770. running configure, to aid debugging if configure makes a mistake.
  771. It was created by $as_me, which was
  772. generated by GNU Autoconf 2.52.20080325. Invocation command line was
  773. $ $0 $@
  774. EOF
  775. {
  776. cat <<_ASUNAME
  777. ## ---------- ##
  778. ## Platform. ##
  779. ## ---------- ##
  780. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  781. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  782. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  783. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  784. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  785. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  786. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  787. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  788. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  789. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  790. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  791. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  792. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  793. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  794. PATH = $PATH
  795. _ASUNAME
  796. } >&5
  797. cat >&5 <<EOF
  798. ## ------------ ##
  799. ## Core tests. ##
  800. ## ------------ ##
  801. EOF
  802. # Keep a trace of the command line.
  803. # Strip out --no-create and --no-recursion so they do not pile up.
  804. # Also quote any args containing shell meta-characters.
  805. ac_configure_args=
  806. ac_sep=
  807. for ac_arg
  808. do
  809. case $ac_arg in
  810. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  811. | --no-cr | --no-c) ;;
  812. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  813. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  814. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  815. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
  816. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  817. ac_sep=" " ;;
  818. *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
  819. ac_sep=" " ;;
  820. esac
  821. # Get rid of the leading space.
  822. done
  823. # When interrupted or exit'd, cleanup temporary files, and complete
  824. # config.log. We remove comments because anyway the quotes in there
  825. # would cause problems or look ugly.
  826. trap 'exit_status=$?
  827. # Save into config.log some information that might help in debugging.
  828. echo >&5
  829. echo "## ----------------- ##" >&5
  830. echo "## Cache variables. ##" >&5
  831. echo "## ----------------- ##" >&5
  832. echo >&5
  833. # The following way of writing the cache mishandles newlines in values,
  834. {
  835. (set) 2>&1 |
  836. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  837. *ac_space=\ *)
  838. sed -n \
  839. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  840. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  841. ;;
  842. *)
  843. sed -n \
  844. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  845. ;;
  846. esac;
  847. } >&5
  848. sed "/^$/d" confdefs.h >conftest.log
  849. if test -s conftest.log; then
  850. echo >&5
  851. echo "## ------------ ##" >&5
  852. echo "## confdefs.h. ##" >&5
  853. echo "## ------------ ##" >&5
  854. echo >&5
  855. cat conftest.log >&5
  856. fi
  857. (echo; echo) >&5
  858. test "$ac_signal" != 0 &&
  859. echo "$as_me: caught signal $ac_signal" >&5
  860. echo "$as_me: exit $exit_status" >&5
  861. rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
  862. exit $exit_status
  863. ' 0
  864. for ac_signal in 1 2 13 15; do
  865. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  866. done
  867. ac_signal=0
  868. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  869. rm -rf conftest* confdefs.h
  870. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  871. echo >confdefs.h
  872. # Let the site file select an alternate cache file if it wants to.
  873. # Prefer explicitly selected file to automatically selected ones.
  874. if test -z "$CONFIG_SITE"; then
  875. if test "x$prefix" != xNONE; then
  876. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  877. else
  878. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  879. fi
  880. fi
  881. for ac_site_file in $CONFIG_SITE; do
  882. if test -r "$ac_site_file"; then
  883. { echo "$as_me:998: loading site script $ac_site_file" >&5
  884. echo "$as_me: loading site script $ac_site_file" >&6;}
  885. cat "$ac_site_file" >&5
  886. . "$ac_site_file"
  887. fi
  888. done
  889. if test -r "$cache_file"; then
  890. # Some versions of bash will fail to source /dev/null (special
  891. # files actually), so we avoid doing that.
  892. if test -f "$cache_file"; then
  893. { echo "$as_me:1009: loading cache $cache_file" >&5
  894. echo "$as_me: loading cache $cache_file" >&6;}
  895. case $cache_file in
  896. [\\/]* | ?:[\\/]* ) . $cache_file;;
  897. *) . ./$cache_file;;
  898. esac
  899. fi
  900. else
  901. { echo "$as_me:1017: creating cache $cache_file" >&5
  902. echo "$as_me: creating cache $cache_file" >&6;}
  903. >$cache_file
  904. fi
  905. # Check that the precious variables saved in the cache have kept the same
  906. # value.
  907. ac_cache_corrupted=false
  908. for ac_var in `(set) 2>&1 |
  909. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  910. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  911. eval ac_new_set=\$ac_env_${ac_var}_set
  912. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  913. eval ac_new_val="\$ac_env_${ac_var}_value"
  914. case $ac_old_set,$ac_new_set in
  915. set,)
  916. { echo "$as_me:1033: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  917. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  918. ac_cache_corrupted=: ;;
  919. ,set)
  920. { echo "$as_me:1037: error: \`$ac_var' was not set in the previous run" >&5
  921. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  922. ac_cache_corrupted=: ;;
  923. ,);;
  924. *)
  925. if test "x$ac_old_val" != "x$ac_new_val"; then
  926. { echo "$as_me:1043: error: \`$ac_var' has changed since the previous run:" >&5
  927. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  928. { echo "$as_me:1045: former value: $ac_old_val" >&5
  929. echo "$as_me: former value: $ac_old_val" >&2;}
  930. { echo "$as_me:1047: current value: $ac_new_val" >&5
  931. echo "$as_me: current value: $ac_new_val" >&2;}
  932. ac_cache_corrupted=:
  933. fi;;
  934. esac
  935. # Pass precious variables to config.status. It doesn't matter if
  936. # we pass some twice (in addition to the command line arguments).
  937. if test "$ac_new_set" = set; then
  938. case $ac_new_val in
  939. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  940. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
  941. ac_configure_args="$ac_configure_args '$ac_arg'"
  942. ;;
  943. *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
  944. ;;
  945. esac
  946. fi
  947. done
  948. if $ac_cache_corrupted; then
  949. { echo "$as_me:1066: error: changes in the environment can compromise the build" >&5
  950. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  951. { { echo "$as_me:1068: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  952. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  953. { (exit 1); exit 1; }; }
  954. fi
  955. ac_ext=c
  956. ac_cpp='$CPP $CPPFLAGS'
  957. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  958. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  959. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  960. ac_main_return=return
  961. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  962. *c*,-n*) ECHO_N= ECHO_C='
  963. ' ECHO_T=' ' ;;
  964. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  965. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  966. esac
  967. echo "#! $SHELL" >conftest.sh
  968. echo "exit 0" >>conftest.sh
  969. chmod +x conftest.sh
  970. if { (echo "$as_me:1089: PATH=\".;.\"; conftest.sh") >&5
  971. (PATH=".;."; conftest.sh) 2>&5
  972. ac_status=$?
  973. echo "$as_me:1092: \$? = $ac_status" >&5
  974. (exit $ac_status); }; then
  975. ac_path_separator=';'
  976. else
  977. ac_path_separator=:
  978. fi
  979. PATH_SEPARATOR="$ac_path_separator"
  980. rm -f conftest.sh
  981. ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
  982. top_builddir=`pwd`
  983. echo "$as_me:1105: checking for egrep" >&5
  984. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  985. if test "${ac_cv_prog_egrep+set}" = set; then
  986. echo $ECHO_N "(cached) $ECHO_C" >&6
  987. else
  988. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  989. then ac_cv_prog_egrep='grep -E'
  990. else ac_cv_prog_egrep='egrep'
  991. fi
  992. fi
  993. echo "$as_me:1115: result: $ac_cv_prog_egrep" >&5
  994. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  995. EGREP=$ac_cv_prog_egrep
  996. test -z "$EGREP" && { { echo "$as_me:1119: error: No egrep program found" >&5
  997. echo "$as_me: error: No egrep program found" >&2;}
  998. { (exit 1); exit 1; }; }
  999. NCURSES_MAJOR="`$ac_cv_prog_egrep '^NCURSES_MAJOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
  1000. NCURSES_MINOR="`$ac_cv_prog_egrep '^NCURSES_MINOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
  1001. NCURSES_PATCH="`$ac_cv_prog_egrep '^NCURSES_PATCH[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
  1002. cf_cv_abi_version=${NCURSES_MAJOR}
  1003. cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
  1004. cf_cv_timestamp=`date`
  1005. echo "$as_me:1129: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
  1006. echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
  1007. test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0
  1008. # Check whether --with-rel-version or --without-rel-version was given.
  1009. if test "${with_rel_version+set}" = set; then
  1010. withval="$with_rel_version"
  1011. { echo "$as_me:1137: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
  1012. echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
  1013. cf_cv_rel_version=$withval
  1014. fi;
  1015. NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
  1016. NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`
  1017. if test -n "$NCURSES_MAJOR" ; then
  1018. case $NCURSES_MAJOR in #(vi
  1019. [0-9]*) #(vi
  1020. ;;
  1021. *)
  1022. { { echo "$as_me:1150: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
  1023. echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;}
  1024. { (exit 1); exit 1; }; }
  1025. ;;
  1026. esac
  1027. else
  1028. { { echo "$as_me:1156: error: Release major-version value is empty" >&5
  1029. echo "$as_me: error: Release major-version value is empty" >&2;}
  1030. { (exit 1); exit 1; }; }
  1031. fi
  1032. if test -n "$NCURSES_MINOR" ; then
  1033. case $NCURSES_MINOR in #(vi
  1034. [0-9]*) #(vi
  1035. ;;
  1036. *)
  1037. { { echo "$as_me:1166: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
  1038. echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;}
  1039. { (exit 1); exit 1; }; }
  1040. ;;
  1041. esac
  1042. else
  1043. { { echo "$as_me:1172: error: Release minor-version value is empty" >&5
  1044. echo "$as_me: error: Release minor-version value is empty" >&2;}
  1045. { (exit 1); exit 1; }; }
  1046. fi
  1047. test -z "$cf_cv_abi_version" && cf_cv_abi_version=0
  1048. # Check whether --with-abi-version or --without-abi-version was given.
  1049. if test "${with_abi_version+set}" = set; then
  1050. withval="$with_abi_version"
  1051. { echo "$as_me:1182: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
  1052. echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
  1053. cf_cv_abi_version=$withval
  1054. fi;
  1055. if test -n "$cf_cv_abi_version" ; then
  1056. case $cf_cv_abi_version in #(vi
  1057. [0-9]*) #(vi
  1058. ;;
  1059. *)
  1060. { { echo "$as_me:1192: error: ABI version is not a number: $cf_cv_abi_version" >&5
  1061. echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
  1062. { (exit 1); exit 1; }; }
  1063. ;;
  1064. esac
  1065. else
  1066. { { echo "$as_me:1198: error: ABI version value is empty" >&5
  1067. echo "$as_me: error: ABI version value is empty" >&2;}
  1068. { (exit 1); exit 1; }; }
  1069. fi
  1070. ac_aux_dir=
  1071. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  1072. if test -f $ac_dir/install-sh; then
  1073. ac_aux_dir=$ac_dir
  1074. ac_install_sh="$ac_aux_dir/install-sh -c"
  1075. break
  1076. elif test -f $ac_dir/install.sh; then
  1077. ac_aux_dir=$ac_dir
  1078. ac_install_sh="$ac_aux_dir/install.sh -c"
  1079. break
  1080. elif test -f $ac_dir/shtool; then
  1081. ac_aux_dir=$ac_dir
  1082. ac_install_sh="$ac_aux_dir/shtool install -c"
  1083. break
  1084. fi
  1085. done
  1086. if test -z "$ac_aux_dir"; then
  1087. { { echo "$as_me:1220: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
  1088. echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
  1089. { (exit 1); exit 1; }; }
  1090. fi
  1091. ac_config_guess="$SHELL $ac_aux_dir/config.guess"
  1092. ac_config_sub="$SHELL $ac_aux_dir/config.sub"
  1093. ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
  1094. # Make sure we can run config.sub.
  1095. $ac_config_sub sun4 >/dev/null 2>&1 ||
  1096. { { echo "$as_me:1230: error: cannot run $ac_config_sub" >&5
  1097. echo "$as_me: error: cannot run $ac_config_sub" >&2;}
  1098. { (exit 1); exit 1; }; }
  1099. echo "$as_me:1234: checking build system type" >&5
  1100. echo $ECHO_N "checking build system type... $ECHO_C" >&6
  1101. if test "${ac_cv_build+set}" = set; then
  1102. echo $ECHO_N "(cached) $ECHO_C" >&6
  1103. else
  1104. ac_cv_build_alias=$build_alias
  1105. test -z "$ac_cv_build_alias" &&
  1106. ac_cv_build_alias=`$ac_config_guess`
  1107. test -z "$ac_cv_build_alias" &&
  1108. { { echo "$as_me:1243: error: cannot guess build type; you must specify one" >&5
  1109. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1110. { (exit 1); exit 1; }; }
  1111. ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
  1112. { { echo "$as_me:1247: error: $ac_config_sub $ac_cv_build_alias failed." >&5
  1113. echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
  1114. { (exit 1); exit 1; }; }
  1115. fi
  1116. echo "$as_me:1252: result: $ac_cv_build" >&5
  1117. echo "${ECHO_T}$ac_cv_build" >&6
  1118. build=$ac_cv_build
  1119. build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1120. build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1121. build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1122. echo "$as_me:1259: checking host system type" >&5
  1123. echo $ECHO_N "checking host system type... $ECHO_C" >&6
  1124. if test "${ac_cv_host+set}" = set; then
  1125. echo $ECHO_N "(cached) $ECHO_C" >&6
  1126. else
  1127. ac_cv_host_alias=$host_alias
  1128. test -z "$ac_cv_host_alias" &&
  1129. ac_cv_host_alias=$ac_cv_build_alias
  1130. ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
  1131. { { echo "$as_me:1268: error: $ac_config_sub $ac_cv_host_alias failed" >&5
  1132. echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
  1133. { (exit 1); exit 1; }; }
  1134. fi
  1135. echo "$as_me:1273: result: $ac_cv_host" >&5
  1136. echo "${ECHO_T}$ac_cv_host" >&6
  1137. host=$ac_cv_host
  1138. host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1139. host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1140. host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1141. if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
  1142. echo "$as_me:1281: checking target system type" >&5
  1143. echo $ECHO_N "checking target system type... $ECHO_C" >&6
  1144. if test "${ac_cv_target+set}" = set; then
  1145. echo $ECHO_N "(cached) $ECHO_C" >&6
  1146. else
  1147. ac_cv_target_alias=$target_alias
  1148. test "x$ac_cv_target_alias" = "x" &&
  1149. ac_cv_target_alias=$ac_cv_host_alias
  1150. ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
  1151. { { echo "$as_me:1290: error: $ac_config_sub $ac_cv_target_alias failed" >&5
  1152. echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
  1153. { (exit 1); exit 1; }; }
  1154. fi
  1155. echo "$as_me:1295: result: $ac_cv_target" >&5
  1156. echo "${ECHO_T}$ac_cv_target" >&6
  1157. target=$ac_cv_target
  1158. target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1159. target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1160. target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1161. # The aliases save the names the user supplied, while $host etc.
  1162. # will get canonicalized.
  1163. test -n "$target_alias" &&
  1164. test "$program_prefix$program_suffix$program_transform_name" = \
  1165. NONENONEs,x,x, &&
  1166. program_prefix=${target_alias}-
  1167. system_name="$host_os"
  1168. else
  1169. system_name="`(uname -s -r) 2>/dev/null`"
  1170. if test -z "$system_name" ; then
  1171. system_name="`(hostname) 2>/dev/null`"
  1172. fi
  1173. fi
  1174. test -n "$system_name" && cat >>confdefs.h <<EOF
  1175. #define SYSTEM_NAME "$system_name"
  1176. EOF
  1177. if test "${cf_cv_system_name+set}" = set; then
  1178. echo $ECHO_N "(cached) $ECHO_C" >&6
  1179. else
  1180. cf_cv_system_name="$system_name"
  1181. fi
  1182. test -z "$system_name" && system_name="$cf_cv_system_name"
  1183. test -n "$cf_cv_system_name" && echo "$as_me:1326: result: Configuring for $cf_cv_system_name" >&5
  1184. echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
  1185. if test ".$system_name" != ".$cf_cv_system_name" ; then
  1186. echo "$as_me:1330: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
  1187. echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
  1188. { { echo "$as_me:1332: error: \"Please remove config.cache and try again.\"" >&5
  1189. echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
  1190. { (exit 1); exit 1; }; }
  1191. fi
  1192. # Check whether --with-system-type or --without-system-type was given.
  1193. if test "${with_system_type+set}" = set; then
  1194. withval="$with_system_type"
  1195. { echo "$as_me:1340: WARNING: overriding system type to $withval" >&5
  1196. echo "$as_me: WARNING: overriding system type to $withval" >&2;}
  1197. cf_cv_system_name=$withval
  1198. fi;
  1199. ### Save the given $CFLAGS to allow user-override.
  1200. cf_user_CFLAGS="$CFLAGS"
  1201. ### Default install-location
  1202. echo "$as_me:1350: checking for prefix" >&5
  1203. echo $ECHO_N "checking for prefix... $ECHO_C" >&6
  1204. if test "x$prefix" = "xNONE" ; then
  1205. case "$cf_cv_system_name" in
  1206. # non-vendor systems don't have a conflict
  1207. openbsd*|freebsd*|linux*|cygwin*|k*bsd*-gnu)
  1208. prefix=/usr
  1209. ;;
  1210. *) prefix=$ac_default_prefix
  1211. ;;
  1212. esac
  1213. fi
  1214. echo "$as_me:1362: result: $prefix" >&5
  1215. echo "${ECHO_T}$prefix" >&6
  1216. if test "x$prefix" = "xNONE" ; then
  1217. echo "$as_me:1366: checking for default include-directory" >&5
  1218. echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
  1219. test -n "$verbose" && echo 1>&6
  1220. for cf_symbol in \
  1221. $includedir \
  1222. $includedir/ncurses \
  1223. $prefix/include \
  1224. $prefix/include/ncurses \
  1225. /usr/local/include \
  1226. /usr/local/include/ncurses \
  1227. /usr/include \
  1228. /usr/include/ncurses
  1229. do
  1230. cf_dir=`eval echo $cf_symbol`
  1231. if test -f $cf_dir/curses.h ; then
  1232. if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
  1233. includedir="$cf_symbol"
  1234. test -n "$verbose" && echo $ac_n " found " 1>&6
  1235. break
  1236. fi
  1237. fi
  1238. test -n "$verbose" && echo " tested $cf_dir" 1>&6
  1239. done
  1240. echo "$as_me:1389: result: $includedir" >&5
  1241. echo "${ECHO_T}$includedir" >&6
  1242. fi
  1243. ### Checks for programs.
  1244. ac_ext=c
  1245. ac_cpp='$CPP $CPPFLAGS'
  1246. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1247. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1248. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1249. ac_main_return=return
  1250. if test -n "$ac_tool_prefix"; then
  1251. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  1252. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  1253. echo "$as_me:1403: checking for $ac_word" >&5
  1254. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1255. if test "${ac_cv_prog_CC+set}" = set; then
  1256. echo $ECHO_N "(cached) $ECHO_C" >&6
  1257. else
  1258. if test -n "$CC"; then
  1259. ac_cv_prog_CC="$CC" # Let the user override the test.
  1260. else
  1261. ac_save_IFS=$IFS; IFS=$ac_path_separator
  1262. ac_dummy="$PATH"
  1263. for ac_dir in $ac_dummy; do
  1264. IFS=$ac_save_IFS
  1265. test -z "$ac_dir" && ac_dir=.
  1266. $as_executable_p "$ac_dir/$ac_word" || continue
  1267. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  1268. echo "$as_me:1418: found $ac_dir/$ac_word" >&5
  1269. break
  1270. done
  1271. fi
  1272. fi
  1273. CC=$ac_cv_prog_CC
  1274. if test -n "$CC"; then
  1275. echo "$as_me:1426: result: $CC" >&5
  1276. echo "${ECHO_T}$CC" >&6
  1277. else
  1278. echo "$as_me:1429: result: no" >&5
  1279. echo "${ECHO_T}no" >&6
  1280. fi
  1281. fi
  1282. if test -z "$ac_cv_prog_CC"; then
  1283. ac_ct_CC=$CC
  1284. # Extract the first word of "gcc", so it can be a program name with args.
  1285. set dummy gcc; ac_word=$2
  1286. echo "$as_me:1438: checking for $ac_word" >&5
  1287. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1288. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1289. echo $ECHO_N "(cached) $ECHO_C" >&6
  1290. else
  1291. if test -n "$ac_ct_CC"; then
  1292. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1293. else
  1294. ac_save_IFS=$IFS; IFS=$ac_path_separator
  1295. ac_dummy="$PATH"
  1296. for ac_dir in $ac_dummy; do
  1297. IFS=$ac_save_IFS
  1298. test -z "$ac_dir" && ac_dir=.
  1299. $as_executable_p "$ac_dir/$ac_word" || continue
  1300. ac_cv_prog_ac_ct_CC="gcc"
  1301. echo "$as_me:1453: found $ac_dir/$ac_word" >&5
  1302. break
  1303. done
  1304. fi
  1305. fi
  1306. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1307. if test -n "$ac_ct_CC"; then
  1308. echo "$as_me:1461: result: $ac_ct_CC" >&5
  1309. echo "${ECHO_T}$ac_ct_CC" >&6
  1310. else
  1311. echo "$as_me:1464: result: no" >&5
  1312. echo "${ECHO_T}no" >&6
  1313. fi
  1314. CC=$ac_ct_CC
  1315. else
  1316. CC="$ac_cv_prog_CC"
  1317. fi
  1318. if test -z "$CC"; then
  1319. if test -n "$ac_tool_prefix"; then
  1320. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  1321. set dummy ${ac_tool_prefix}cc; ac_word=$2
  1322. echo "$as_me:1477: checking for $ac_word" >&5
  1323. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1324. if test "${ac_cv_prog_CC+set}" = set; then
  1325. echo $ECHO_N "(cached) $ECHO_C" >&6
  1326. else
  1327. if test -n "$CC"; then
  1328. ac_cv_prog_CC="$CC" # Let the user override the test.
  1329. else
  1330. ac_save_IFS=$IFS; IFS=$ac_path_separator
  1331. ac_dummy="$PATH"
  1332. for ac_dir in $ac_dummy; do
  1333. IFS=$ac_save_IFS
  1334. test -z "$ac_dir" && ac_dir=.
  1335. $as_executable_p "$ac_dir/$ac_word" || continue
  1336. ac_cv_prog_CC="${ac_tool_prefix}cc"
  1337. echo "$as_me:1492: found $ac_dir/$ac_word" >&5
  1338. break
  1339. done
  1340. fi
  1341. fi
  1342. CC=$ac_cv_prog_CC
  1343. if test -n "$CC"; then
  1344. echo "$as_me:1500: result: $CC" >&5
  1345. echo "${ECHO_T}$CC" >&6
  1346. else
  1347. echo "$as_me:1503: result: no" >&5
  1348. echo "${ECHO_T}no" >&6
  1349. fi
  1350. fi
  1351. if test -z "$ac_cv_prog_CC"; then
  1352. ac_ct_CC=$CC
  1353. # Extract the first word of "cc", so it can be a program name with args.
  1354. set dummy cc; ac_word=$2
  1355. echo "$as_me:1512: checking for $ac_word" >&5
  1356. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1357. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1358. echo $ECHO_N "(cached) $ECHO_C" >&6
  1359. else
  1360. if test -n "$ac_ct_CC"; then
  1361. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1362. else
  1363. ac_save_IFS=$IFS; IFS=$ac_path_separator
  1364. ac_dummy="$PATH"
  1365. for ac_dir in $ac_dummy; do
  1366. IFS=$ac_save_IFS
  1367. test -z "$ac_dir" && ac_dir=.
  1368. $as_executable_p "$ac_dir/$ac_word" || continue
  1369. ac_cv_prog_ac_ct_CC="cc"
  1370. echo "$as_me:1527: found $ac_dir/$ac_word" >&5
  1371. break
  1372. done
  1373. fi
  1374. fi
  1375. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1376. if test -n "$ac_ct_CC"; then
  1377. echo "$as_me:1535: result: $ac_ct_CC" >&5
  1378. echo "${ECHO_T}$ac_ct_CC" >&6
  1379. else
  1380. echo "$as_me:1538: result: no" >&5
  1381. echo "${ECHO_T}no" >&6
  1382. fi
  1383. CC=$ac_ct_CC
  1384. else
  1385. CC="$ac_cv_prog_CC"
  1386. fi
  1387. fi
  1388. if test -z "$CC"; then
  1389. # Extract the first word of "cc", so it can be a program name with args.
  1390. set dummy cc; ac_word=$2
  1391. echo "$as_me:1551: checking for $ac_word" >&5
  1392. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1393. if test "${ac_cv_prog_CC+set}" = set; then
  1394. echo $ECHO_N "(cached) $ECHO_C" >&6
  1395. else
  1396. if test -n "$CC"; then
  1397. ac_cv_prog_CC="$CC" # Let the user override the test.
  1398. else
  1399. ac_prog_rejected=no
  1400. ac_save_IFS=$IFS; IFS=$ac_path_separator
  1401. ac_dummy="$PATH"
  1402. for ac_dir in $ac_dummy; do
  1403. IFS=$ac_save_IFS
  1404. test -z "$ac_dir" && ac_dir=.
  1405. $as_executable_p "$ac_dir/$ac_word" || continue
  1406. if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  1407. ac_prog_rejected=yes
  1408. continue
  1409. fi
  1410. ac_cv_prog_CC="cc"
  1411. echo "$as_me:1571: found $ac_dir/$ac_word" >&5
  1412. break
  1413. done
  1414. if test $ac_prog_rejected = yes; then
  1415. # We found a bogon in the path, so make sure we never use it.
  1416. set dummy $ac_cv_prog_CC
  1417. shift
  1418. if test $# != 0; then
  1419. # We chose a different compiler from the bogus one.
  1420. # However, it has the same basename, so the bogon will be chosen
  1421. # first if we set CC to just the basename; use the full file name.
  1422. shift
  1423. set dummy "$ac_dir/$ac_word" ${1+"$@"}
  1424. shift
  1425. ac_cv_prog_CC="$@"
  1426. fi
  1427. fi
  1428. fi
  1429. fi
  1430. CC=$ac_cv_prog_CC
  1431. if test -n "$CC"; then
  1432. echo "$as_me:1593: result: $CC" >&5
  1433. echo "${ECHO_T}$CC" >&6
  1434. else
  1435. echo "$as_me:1596: result: no" >&5
  1436. echo "${ECHO_T}no" >&6
  1437. fi
  1438. fi
  1439. if test -z "$CC"; then
  1440. if test -n "$ac_tool_prefix"; then
  1441. for ac_prog in cl
  1442. do
  1443. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1444. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1445. echo "$as_me:1607: checking for $ac_word" >&5
  1446. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1447. if test "${ac_cv_prog_CC+set}" = set; then
  1448. echo $ECHO_N "(cached) $ECHO_C" >&6
  1449. else
  1450. if test -n "$CC"; then
  1451. ac_cv_prog_CC="$CC" # Let the user override the test.
  1452. else
  1453. ac_save_IFS=$IFS; IFS=$ac_path_separator
  1454. ac_dummy="$PATH"
  1455. for ac_dir in $ac_dummy; do
  1456. IFS=$ac_save_IFS
  1457. test -z "$ac_dir" && ac_dir=.
  1458. $as_executable_p "$ac_dir/$ac_word" || continue
  1459. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  1460. echo "$as_me:1622: found $ac_dir/$ac_word" >&5
  1461. break
  1462. done
  1463. fi
  1464. fi
  1465. CC=$ac_cv_prog_CC
  1466. if test -n "$CC"; then
  1467. echo "$as_me:1630: result: $CC" >&5
  1468. echo "${ECHO_T}$CC" >&6
  1469. else
  1470. echo "$as_me:1633: result: no" >&5
  1471. echo "${ECHO_T}no" >&6
  1472. fi
  1473. test -n "$CC" && break
  1474. done
  1475. fi
  1476. if test -z "$CC"; then
  1477. ac_ct_CC=$CC
  1478. for ac_prog in cl
  1479. do
  1480. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1481. set dummy $ac_prog; ac_word=$2
  1482. echo "$as_me:1646: checking for $ac_word" >&5
  1483. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1484. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1485. echo $ECHO_N "(cached) $ECHO_C" >&6
  1486. else
  1487. if test -n "$ac_ct_CC"; then
  1488. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1489. else
  1490. ac_save_IFS=$IFS; IFS=$ac_path_separator
  1491. ac_dummy="$PATH"
  1492. for ac_dir in $ac_dummy; do
  1493. IFS=$ac_save_IFS
  1494. test -z "$ac_dir" && ac_dir=.
  1495. $as_executable_p "$ac_dir/$ac_word" || continue
  1496. ac_cv_prog_ac_ct_CC="$ac_prog"
  1497. echo "$as_me:1661: found $ac_dir/$ac_word" >&5
  1498. break
  1499. done
  1500. fi
  1501. fi
  1502. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1503. if test -n "$ac_ct_CC"; then
  1504. echo "$as_me:1669: result: $ac_ct_CC" >&5
  1505. echo "${ECHO_T}$ac_ct_CC" >&6
  1506. else
  1507. echo "$as_me:1672: result: no" >&5
  1508. echo "${ECHO_T}no" >&6
  1509. fi
  1510. test -n "$ac_ct_CC" && break
  1511. done
  1512. CC=$ac_ct_CC
  1513. fi
  1514. fi
  1515. test -z "$CC" && { { echo "$as_me:1684: error: no acceptable cc found in \$PATH" >&5
  1516. echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
  1517. { (exit 1); exit 1; }; }
  1518. # Provide some information about the compiler.
  1519. echo "$as_me:1689:" \
  1520. "checking for C compiler version" >&5
  1521. ac_compiler=`set X $ac_compile; echo $2`
  1522. { (eval echo "$as_me:1692: \"$ac_compiler --version </dev/null >&5\"") >&5
  1523. (eval $ac_compiler --version </dev/null >&5) 2>&5
  1524. ac_status=$?
  1525. echo "$as_me:1695: \$? = $ac_status" >&5
  1526. (exit $ac_status); }
  1527. { (eval echo "$as_me:1697: \"$ac_compiler -v </dev/null >&5\"") >&5
  1528. (eval $ac_compiler -v </dev/null >&5) 2>&5
  1529. ac_status=$?
  1530. echo "$as_me:1700: \$? = $ac_status" >&5
  1531. (exit $ac_status); }
  1532. { (eval echo "$as_me:1702: \"$ac_compiler -V </dev/null >&5\"") >&5
  1533. (eval $ac_compiler -V </dev/null >&5) 2>&5
  1534. ac_status=$?
  1535. echo "$as_me:1705: \$? = $ac_status" >&5
  1536. (exit $ac_status); }
  1537. cat >conftest.$ac_ext <<_ACEOF
  1538. #line 1709 "configure"
  1539. #include "confdefs.h"
  1540. int
  1541. main ()
  1542. {
  1543. ;
  1544. return 0;
  1545. }
  1546. _ACEOF
  1547. ac_clean_files_save=$ac_clean_files
  1548. ac_clean_files="$ac_clean_files a.out a.exe"
  1549. # Try to create an executable without -o first, disregard a.out.
  1550. # It will help us diagnose broken compilers, and finding out an intuition
  1551. # of exeext.
  1552. echo "$as_me:1725: checking for C compiler default output" >&5
  1553. echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
  1554. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1555. if { (eval echo "$as_me:1728: \"$ac_link_default\"") >&5
  1556. (eval $ac_link_default) 2>&5
  1557. ac_status=$?
  1558. echo "$as_me:1731: \$? = $ac_status" >&5
  1559. (exit $ac_status); }; then
  1560. # Find the output, starting from the most likely. This scheme is
  1561. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  1562. # resort.
  1563. for ac_file in `ls a.exe conftest.exe 2>/dev/null;
  1564. ls a.out conftest 2>/dev/null;
  1565. ls a.* conftest.* 2>/dev/null`; do
  1566. case $ac_file in
  1567. *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
  1568. a.out ) # We found the default executable, but exeext='' is most
  1569. # certainly right.
  1570. break;;
  1571. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1572. # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
  1573. export ac_cv_exeext
  1574. break;;
  1575. * ) break;;
  1576. esac
  1577. done
  1578. else
  1579. echo "$as_me: failed program was:" >&5
  1580. cat conftest.$ac_ext >&5
  1581. { { echo "$as_me:1754: error: C compiler cannot create executables" >&5
  1582. echo "$as_me: error: C compiler cannot create executables" >&2;}
  1583. { (exit 77); exit 77; }; }
  1584. fi
  1585. ac_exeext=$ac_cv_exeext
  1586. echo "$as_me:1760: result: $ac_file" >&5
  1587. echo "${ECHO_T}$ac_file" >&6
  1588. # Check the compiler produces executables we can run. If not, either
  1589. # the compiler is broken, or we cross compile.
  1590. echo "$as_me:1765: checking whether the C compiler works" >&5
  1591. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  1592. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1593. # If not cross compiling, check that we can run a simple program.
  1594. if test "$cross_compiling" != yes; then
  1595. if { ac_try='./$ac_file'
  1596. { (eval echo "$as_me:1771: \"$ac_try\"") >&5
  1597. (eval $ac_try) 2>&5
  1598. ac_status=$?
  1599. echo "$as_me:1774: \$? = $ac_status" >&5
  1600. (exit $ac_status); }; }; then
  1601. cross_compiling=no
  1602. else
  1603. if test "$cross_compiling" = maybe; then
  1604. cross_compiling=yes
  1605. else
  1606. { { echo "$as_me:1781: error: cannot run C compiled programs.
  1607. If you meant to cross compile, use \`--host'." >&5
  1608. echo "$as_me: error: cannot run C compiled programs.
  1609. If you meant to cross compile, use \`--host'." >&2;}
  1610. { (exit 1); exit 1; }; }
  1611. fi
  1612. fi
  1613. fi
  1614. echo "$as_me:1789: result: yes" >&5
  1615. echo "${ECHO_T}yes" >&6
  1616. rm -f a.out a.exe conftest$ac_cv_exeext
  1617. ac_clean_files=$ac_clean_files_save
  1618. # Check the compiler produces executables we can run. If not, either
  1619. # the compiler is broken, or we cross compile.
  1620. echo "$as_me:1796: checking whether we are cross compiling" >&5
  1621. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  1622. echo "$as_me:1798: result: $cross_compiling" >&5
  1623. echo "${ECHO_T}$cross_compiling" >&6
  1624. echo "$as_me:1801: checking for executable suffix" >&5
  1625. echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
  1626. if { (eval echo "$as_me:1803: \"$ac_link\"") >&5
  1627. (eval $ac_link) 2>&5
  1628. ac_status=$?
  1629. echo "$as_me:1806: \$? = $ac_status" >&5
  1630. (exit $ac_status); }; then
  1631. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  1632. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  1633. # work properly (i.e., refer to `conftest.exe'), while it won't with
  1634. # `rm'.
  1635. for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
  1636. case $ac_file in
  1637. *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
  1638. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1639. export ac_cv_exeext
  1640. break;;
  1641. * ) break;;
  1642. esac
  1643. done
  1644. else
  1645. { { echo "$as_me:1822: error: cannot compute EXEEXT: cannot compile and link" >&5
  1646. echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
  1647. { (exit 1); exit 1; }; }
  1648. fi
  1649. rm -f conftest$ac_cv_exeext
  1650. echo "$as_me:1828: result: $ac_cv_exeext" >&5
  1651. echo "${ECHO_T}$ac_cv_exeext" >&6
  1652. rm -f conftest.$ac_ext
  1653. EXEEXT=$ac_cv_exeext
  1654. ac_exeext=$EXEEXT
  1655. echo "$as_me:1834: checking for object suffix" >&5
  1656. echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
  1657. if test "${ac_cv_objext+set}" = set; then
  1658. echo $ECHO_N "(cached) $ECHO_C" >&6
  1659. else
  1660. cat >conftest.$ac_ext <<_ACEOF
  1661. #line 1840 "configure"
  1662. #include "confdefs.h"
  1663. int
  1664. main ()
  1665. {
  1666. ;
  1667. return 0;
  1668. }
  1669. _ACEOF
  1670. rm -f conftest.o conftest.obj
  1671. if { (eval echo "$as_me:1852: \"$ac_compile\"") >&5
  1672. (eval $ac_compile) 2>&5
  1673. ac_status=$?
  1674. echo "$as_me:1855: \$? = $ac_status" >&5
  1675. (exit $ac_status); }; then
  1676. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  1677. case $ac_file in
  1678. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
  1679. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  1680. break;;
  1681. esac
  1682. done
  1683. else
  1684. echo "$as_me: failed program was:" >&5
  1685. cat conftest.$ac_ext >&5
  1686. { { echo "$as_me:1867: error: cannot compute OBJEXT: cannot compile" >&5
  1687. echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
  1688. { (exit 1); exit 1; }; }
  1689. fi
  1690. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  1691. fi
  1692. echo "$as_me:1874: result: $ac_cv_objext" >&5
  1693. echo "${ECHO_T}$ac_cv_objext" >&6
  1694. OBJEXT=$ac_cv_objext
  1695. ac_objext=$OBJEXT
  1696. echo "$as_me:1878: checking whether we are using the GNU C compiler" >&5
  1697. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  1698. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  1699. echo $ECHO_N "(cached) $ECHO_C" >&6
  1700. else
  1701. cat >conftest.$ac_ext <<_ACEOF
  1702. #line 1884 "configure"
  1703. #include "confdefs.h"
  1704. int
  1705. main ()
  1706. {
  1707. #ifndef __GNUC__
  1708. choke me
  1709. #endif
  1710. ;
  1711. return 0;
  1712. }
  1713. _ACEOF
  1714. rm -f conftest.$ac_objext
  1715. if { (eval echo "$as_me:1899: \"$ac_compile\"") >&5
  1716. (eval $ac_compile) 2>&5
  1717. ac_status=$?
  1718. echo "$as_me:1902: \$? = $ac_status" >&5
  1719. (exit $ac_status); } &&
  1720. { ac_try='test -s conftest.$ac_objext'
  1721. { (eval echo "$as_me:1905: \"$ac_try\"") >&5
  1722. (eval $ac_try) 2>&5
  1723. ac_status=$?
  1724. echo "$as_me:1908: \$? = $ac_status" >&5
  1725. (exit $ac_status); }; }; then
  1726. ac_compiler_gnu=yes
  1727. else
  1728. echo "$as_me: failed program was:" >&5
  1729. cat conftest.$ac_ext >&5
  1730. ac_compiler_gnu=no
  1731. fi
  1732. rm -f conftest.$ac_objext conftest.$ac_ext
  1733. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  1734. fi
  1735. echo "$as_me:1920: result: $ac_cv_c_compiler_gnu" >&5
  1736. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  1737. GCC=`test $ac_compiler_gnu = yes && echo yes`
  1738. ac_test_CFLAGS=${CFLAGS+set}
  1739. ac_save_CFLAGS=$CFLAGS
  1740. CFLAGS="-g"
  1741. echo "$as_me:1926: checking whether $CC accepts -g" >&5
  1742. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  1743. if test "${ac_cv_prog_cc_g+set}" = set; then
  1744. echo $ECHO_N "(cached) $ECHO_C" >&6
  1745. else
  1746. cat >conftest.$ac_ext <<_ACEOF
  1747. #line 1932 "configure"
  1748. #include "confdefs.h"
  1749. int
  1750. main ()
  1751. {
  1752. ;
  1753. return 0;
  1754. }
  1755. _ACEOF
  1756. rm -f conftest.$ac_objext
  1757. if { (eval echo "$as_me:1944: \"$ac_compile\"") >&5
  1758. (eval $ac_compile) 2>&5
  1759. ac_status=$?
  1760. echo "$as_me:1947: \$? = $ac_status" >&5
  1761. (exit $ac_status); } &&
  1762. { ac_try='test -s conftest.$ac_objext'
  1763. { (eval echo "$as_me:1950: \"$ac_try\"") >&5
  1764. (eval $ac_try) 2>&5
  1765. ac_status=$?
  1766. echo "$as_me:1953: \$? = $ac_status" >&5
  1767. (exit $ac_status); }; }; then
  1768. ac_cv_prog_cc_g=yes
  1769. else
  1770. echo "$as_me: failed program was:" >&5
  1771. cat conftest.$ac_ext >&5
  1772. ac_cv_prog_cc_g=no
  1773. fi
  1774. rm -f conftest.$ac_objext conftest.$ac_ext
  1775. fi
  1776. echo "$as_me:1963: result: $ac_cv_prog_cc_g" >&5
  1777. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  1778. if test "$ac_test_CFLAGS" = set; then
  1779. CFLAGS=$ac_save_CFLAGS
  1780. elif test $ac_cv_prog_cc_g = yes; then
  1781. if test "$GCC" = yes; then
  1782. CFLAGS="-g -O2"
  1783. else
  1784. CFLAGS="-g"
  1785. fi
  1786. else
  1787. if test "$GCC" = yes; then
  1788. CFLAGS="-O2"
  1789. else
  1790. CFLAGS=
  1791. fi
  1792. fi
  1793. # Some people use a C++ compiler to compile C. Since we use `exit',
  1794. # in C++ we need to declare it. In case someone uses the same compiler
  1795. # for both compiling C and C++ we need to have the C++ compiler decide
  1796. # the declaration of exit, since it's the most demanding environment.
  1797. cat >conftest.$ac_ext <<_ACEOF
  1798. #ifndef __cplusplus
  1799. choke me
  1800. #endif
  1801. _ACEOF
  1802. rm -f conftest.$ac_objext
  1803. if { (eval echo "$as_me:1990: \"$ac_compile\"") >&5
  1804. (eval $ac_compile) 2>&5
  1805. ac_status=$?
  1806. echo "$as_me:1993: \$? = $ac_status" >&5
  1807. (exit $ac_status); } &&
  1808. { ac_try='test -s conftest.$ac_objext'
  1809. { (eval echo "$as_me:1996: \"$ac_try\"") >&5
  1810. (eval $ac_try) 2>&5
  1811. ac_status=$?
  1812. echo "$as_me:1999: \$? = $ac_status" >&5
  1813. (exit $ac_status); }; }; then
  1814. for ac_declaration in \
  1815. ''\
  1816. '#include <stdlib.h>' \
  1817. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  1818. 'extern "C" void std::exit (int); using std::exit;' \
  1819. 'extern "C" void exit (int) throw ();' \
  1820. 'extern "C" void exit (int);' \
  1821. 'void exit (int);'
  1822. do
  1823. cat >conftest.$ac_ext <<_ACEOF
  1824. #line 2011 "configure"
  1825. #include "confdefs.h"
  1826. #include <stdlib.h>
  1827. $ac_declaration
  1828. int
  1829. main ()
  1830. {
  1831. exit (42);
  1832. ;
  1833. return 0;
  1834. }
  1835. _ACEOF
  1836. rm -f conftest.$ac_objext
  1837. if { (eval echo "$as_me:2024: \"$ac_compile\"") >&5
  1838. (eval $ac_compile) 2>&5
  1839. ac_status=$?
  1840. echo "$as_me:2027: \$? = $ac_status" >&5
  1841. (exit $ac_status); } &&
  1842. { ac_try='test -s conftest.$ac_objext'
  1843. { (eval echo "$as_me:2030: \"$ac_try\"") >&5
  1844. (eval $ac_try) 2>&5
  1845. ac_status=$?
  1846. echo "$as_me:2033: \$? = $ac_status" >&5
  1847. (exit $ac_status); }; }; then
  1848. :
  1849. else
  1850. echo "$as_me: failed program was:" >&5
  1851. cat conftest.$ac_ext >&5
  1852. continue
  1853. fi
  1854. rm -f conftest.$ac_objext conftest.$ac_ext
  1855. cat >conftest.$ac_ext <<_ACEOF
  1856. #line 2043 "configure"
  1857. #include "confdefs.h"
  1858. $ac_declaration
  1859. int
  1860. main ()
  1861. {
  1862. exit (42);
  1863. ;
  1864. return 0;
  1865. }
  1866. _ACEOF
  1867. rm -f conftest.$ac_objext
  1868. if { (eval echo "$as_me:2055: \"$ac_compile\"") >&5
  1869. (eval $ac_compile) 2>&5
  1870. ac_status=$?
  1871. echo "$as_me:2058: \$? = $ac_status" >&5
  1872. (exit $ac_status); } &&
  1873. { ac_try='test -s conftest.$ac_objext'
  1874. { (eval echo "$as_me:2061: \"$ac_try\"") >&5
  1875. (eval $ac_try) 2>&5
  1876. ac_status=$?
  1877. echo "$as_me:2064: \$? = $ac_status" >&5
  1878. (exit $ac_status); }; }; then
  1879. break
  1880. else
  1881. echo "$as_me: failed program was:" >&5
  1882. cat conftest.$ac_ext >&5
  1883. fi
  1884. rm -f conftest.$ac_objext conftest.$ac_ext
  1885. done
  1886. rm -f conftest*
  1887. if test -n "$ac_declaration"; then
  1888. echo '#ifdef __cplusplus' >>confdefs.h
  1889. echo $ac_declaration >>confdefs.h
  1890. echo '#endif' >>confdefs.h
  1891. fi
  1892. else
  1893. echo "$as_me: failed program was:" >&5
  1894. cat conftest.$ac_ext >&5
  1895. fi
  1896. rm -f conftest.$ac_objext conftest.$ac_ext
  1897. ac_ext=c
  1898. ac_cpp='$CPP $CPPFLAGS'
  1899. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1900. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1901. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1902. ac_main_return=return
  1903. GCC_VERSION=none
  1904. if test "$GCC" = yes ; then
  1905. echo "$as_me:2094: checking version of $CC" >&5
  1906. echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
  1907. GCC_VERSION="`${CC} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
  1908. test -z "$GCC_VERSION" && GCC_VERSION=unknown
  1909. echo "$as_me:2098: result: $GCC_VERSION" >&5
  1910. echo "${ECHO_T}$GCC_VERSION" >&6
  1911. fi
  1912. ac_ext=c
  1913. ac_cpp='$CPP $CPPFLAGS'
  1914. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1915. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1916. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1917. ac_main_return=return
  1918. echo "$as_me:2108: checking how to run the C preprocessor" >&5
  1919. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  1920. # On Suns, sometimes $CPP names a directory.
  1921. if test -n "$CPP" && test -d "$CPP"; then
  1922. CPP=
  1923. fi
  1924. if test -z "$CPP"; then
  1925. if test "${ac_cv_prog_CPP+set}" = set; then
  1926. echo $ECHO_N "(cached) $ECHO_C" >&6
  1927. else
  1928. # Double quotes because CPP needs to be expanded
  1929. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  1930. do
  1931. ac_preproc_ok=false
  1932. for ac_c_preproc_warn_flag in '' yes
  1933. do
  1934. # Use a header file that comes with gcc, so configuring glibc
  1935. # with a fresh cross-compiler works.
  1936. # On the NeXT, cc -E runs the code through the compiler's parser,
  1937. # not just through cpp. "Syntax error" is here to catch this case.
  1938. cat >conftest.$ac_ext <<_ACEOF
  1939. #line 2129 "configure"
  1940. #include "confdefs.h"
  1941. #include <assert.h>
  1942. Syntax error
  1943. _ACEOF
  1944. if { (eval echo "$as_me:2134: \"$ac_cpp conftest.$ac_ext\"") >&5
  1945. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  1946. ac_status=$?
  1947. egrep -v '^ *\+' conftest.er1 >conftest.err
  1948. rm -f conftest.er1
  1949. cat conftest.err >&5
  1950. echo "$as_me:2140: \$? = $ac_status" >&5
  1951. (exit $ac_status); } >/dev/null; then
  1952. if test -s conftest.err; then
  1953. ac_cpp_err=$ac_c_preproc_warn_flag
  1954. else
  1955. ac_cpp_err=
  1956. fi
  1957. else
  1958. ac_cpp_err=yes
  1959. fi
  1960. if test -z "$ac_cpp_err"; then
  1961. :
  1962. else
  1963. echo "$as_me: failed program was:" >&5
  1964. cat conftest.$ac_ext >&5
  1965. # Broken: fails on valid input.
  1966. continue
  1967. fi
  1968. rm -f conftest.err conftest.$ac_ext
  1969. # OK, works on sane cases. Now check whether non-existent headers
  1970. # can be detected and how.
  1971. cat >conftest.$ac_ext <<_ACEOF
  1972. #line 2163 "configure"
  1973. #include "confdefs.h"
  1974. #include <ac_nonexistent.h>
  1975. _ACEOF
  1976. if { (eval echo "$as_me:2167: \"$ac_cpp conftest.$ac_ext\"") >&5
  1977. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  1978. ac_status=$?
  1979. egrep -v '^ *\+' conftest.er1 >conftest.err
  1980. rm -f conftest.er1
  1981. cat conftest.err >&5
  1982. echo "$as_me:2173: \$? = $ac_status" >&5
  1983. (exit $ac_status); } >/dev/null; then
  1984. if test -s conftest.err; then
  1985. ac_cpp_err=$ac_c_preproc_warn_flag
  1986. else
  1987. ac_cpp_err=
  1988. fi
  1989. else
  1990. ac_cpp_err=yes
  1991. fi
  1992. if test -z "$ac_cpp_err"; then
  1993. # Broken: success on invalid input.
  1994. continue
  1995. else
  1996. echo "$as_me: failed program was:" >&5
  1997. cat conftest.$ac_ext >&5
  1998. # Passes both tests.
  1999. ac_preproc_ok=:
  2000. break
  2001. fi
  2002. rm -f conftest.err conftest.$ac_ext
  2003. done
  2004. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2005. rm -f conftest.err conftest.$ac_ext
  2006. if $ac_preproc_ok; then
  2007. break
  2008. fi
  2009. done
  2010. ac_cv_prog_CPP=$CPP
  2011. fi
  2012. CPP=$ac_cv_prog_CPP
  2013. else
  2014. ac_cv_prog_CPP=$CPP
  2015. fi
  2016. echo "$as_me:2210: result: $CPP" >&5
  2017. echo "${ECHO_T}$CPP" >&6
  2018. ac_preproc_ok=false
  2019. for ac_c_preproc_warn_flag in '' yes
  2020. do
  2021. # Use a header file that comes with gcc, so configuring glibc
  2022. # with a fresh cross-compiler works.
  2023. # On the NeXT, cc -E runs the code through the compiler's parser,
  2024. # not just through cpp. "Syntax error" is here to catch this case.
  2025. cat >conftest.$ac_ext <<_ACEOF
  2026. #line 2220 "configure"
  2027. #include "confdefs.h"
  2028. #include <assert.h>
  2029. Syntax error
  2030. _ACEOF
  2031. if { (eval echo "$as_me:2225: \"$ac_cpp conftest.$ac_ext\"") >&5
  2032. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2033. ac_status=$?
  2034. egrep -v '^ *\+' conftest.er1 >conftest.err
  2035. rm -f conftest.er1
  2036. cat conftest.err >&5
  2037. echo "$as_me:2231: \$? = $ac_status" >&5
  2038. (exit $ac_status); } >/dev/null; then
  2039. if test -s conftest.err; then
  2040. ac_cpp_err=$ac_c_preproc_warn_flag
  2041. else
  2042. ac_cpp_err=
  2043. fi
  2044. else
  2045. ac_cpp_err=yes
  2046. fi
  2047. if test -z "$ac_cpp_err"; then
  2048. :
  2049. else
  2050. echo "$as_me: failed program was:" >&5
  2051. cat conftest.$ac_ext >&5
  2052. # Broken: fails on valid input.
  2053. continue
  2054. fi
  2055. rm -f conftest.err conftest.$ac_ext
  2056. # OK, works on sane cases. Now check whether non-existent headers
  2057. # can be detected and how.
  2058. cat >conftest.$ac_ext <<_ACEOF
  2059. #line 2254 "configure"
  2060. #include "confdefs.h"
  2061. #include <ac_nonexistent.h>
  2062. _ACEOF
  2063. if { (eval echo "$as_me:2258: \"$ac_cpp conftest.$ac_ext\"") >&5
  2064. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2065. ac_status=$?
  2066. egrep -v '^ *\+' conftest.er1 >conftest.err
  2067. rm -f conftest.er1
  2068. cat conftest.err >&5
  2069. echo "$as_me:2264: \$? = $ac_status" >&5
  2070. (exit $ac_status); } >/dev/null; then
  2071. if test -s conftest.err; then
  2072. ac_cpp_err=$ac_c_preproc_warn_flag
  2073. else
  2074. ac_cpp_err=
  2075. fi
  2076. else
  2077. ac_cpp_err=yes
  2078. fi
  2079. if test -z "$ac_cpp_err"; then
  2080. # Broken: success on invalid input.
  2081. continue
  2082. else
  2083. echo "$as_me: failed program was:" >&5
  2084. cat conftest.$ac_ext >&5
  2085. # Passes both tests.
  2086. ac_preproc_ok=:
  2087. break
  2088. fi
  2089. rm -f conftest.err conftest.$ac_ext
  2090. done
  2091. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2092. rm -f conftest.err conftest.$ac_ext
  2093. if $ac_preproc_ok; then
  2094. :
  2095. else
  2096. { { echo "$as_me:2292: error: C preprocessor \"$CPP\" fails sanity check" >&5
  2097. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
  2098. { (exit 1); exit 1; }; }
  2099. fi
  2100. ac_ext=c
  2101. ac_cpp='$CPP $CPPFLAGS'
  2102. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2103. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2104. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2105. ac_main_return=return
  2106. if test $ac_cv_c_compiler_gnu = yes; then
  2107. echo "$as_me:2305: checking whether $CC needs -traditional" >&5
  2108. echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
  2109. if test "${ac_cv_prog_gcc_traditional+set}" = set; then
  2110. echo $ECHO_N "(cached) $ECHO_C" >&6
  2111. else
  2112. ac_pattern="Autoconf.*'x'"
  2113. cat >conftest.$ac_ext <<_ACEOF
  2114. #line 2312 "configure"
  2115. #include "confdefs.h"
  2116. #include <sgtty.h>
  2117. int Autoconf = TIOCGETP;
  2118. _ACEOF
  2119. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2120. egrep "$ac_pattern" >/dev/null 2>&1; then
  2121. ac_cv_prog_gcc_traditional=yes
  2122. else
  2123. ac_cv_prog_gcc_traditional=no
  2124. fi
  2125. rm -f conftest*
  2126. if test $ac_cv_prog_gcc_traditional = no; then
  2127. cat >conftest.$ac_ext <<_ACEOF
  2128. #line 2327 "configure"
  2129. #include "confdefs.h"
  2130. #include <termio.h>
  2131. int Autoconf = TCGETA;
  2132. _ACEOF
  2133. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2134. egrep "$ac_pattern" >/dev/null 2>&1; then
  2135. ac_cv_prog_gcc_traditional=yes
  2136. fi
  2137. rm -f conftest*
  2138. fi
  2139. fi
  2140. echo "$as_me:2340: result: $ac_cv_prog_gcc_traditional" >&5
  2141. echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
  2142. if test $ac_cv_prog_gcc_traditional = yes; then
  2143. CC="$CC -traditional"
  2144. fi
  2145. fi
  2146. echo "$as_me:2347: checking whether $CC understands -c and -o together" >&5
  2147. echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
  2148. if test "${cf_cv_prog_CC_c_o+set}" = set; then
  2149. echo $ECHO_N "(cached) $ECHO_C" >&6
  2150. else
  2151. cat > conftest.$ac_ext <<CF_EOF
  2152. #include <stdio.h>
  2153. int main()
  2154. {
  2155. ${cf_cv_main_return:-return}(0);
  2156. }
  2157. CF_EOF
  2158. # We do the test twice because some compilers refuse to overwrite an
  2159. # existing .o file with -o, though they will create one.
  2160. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  2161. if { (eval echo "$as_me:2363: \"$ac_try\"") >&5
  2162. (eval $ac_try) 2>&5
  2163. ac_status=$?
  2164. echo "$as_me:2366: \$? = $ac_status" >&5
  2165. (exit $ac_status); } &&
  2166. test -f conftest2.$ac_objext && { (eval echo "$as_me:2368: \"$ac_try\"") >&5
  2167. (eval $ac_try) 2>&5
  2168. ac_status=$?
  2169. echo "$as_me:2371: \$? = $ac_status" >&5
  2170. (exit $ac_status); };
  2171. then
  2172. eval cf_cv_prog_CC_c_o=yes
  2173. else
  2174. eval cf_cv_prog_CC_c_o=no
  2175. fi
  2176. rm -f conftest*
  2177. fi
  2178. if test $cf_cv_prog_CC_c_o = yes; then
  2179. echo "$as_me:2382: result: yes" >&5
  2180. echo "${ECHO_T}yes" >&6
  2181. else
  2182. echo "$as_me:2385: result: no" >&5
  2183. echo "${ECHO_T}no" >&6
  2184. fi
  2185. echo "$as_me:2389: checking for POSIXized ISC" >&5
  2186. echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
  2187. if test -d /etc/conf/kconfig.d &&
  2188. grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
  2189. then
  2190. echo "$as_me:2394: result: yes" >&5
  2191. echo "${ECHO_T}yes" >&6
  2192. ISC=yes # If later tests want to check for ISC.
  2193. cat >>confdefs.h <<\EOF
  2194. #define _POSIX_SOURCE 1
  2195. EOF
  2196. if test "$GCC" = yes; then
  2197. CC="$CC -posix"
  2198. else
  2199. CC="$CC -Xp"
  2200. fi
  2201. else
  2202. echo "$as_me:2408: result: no" >&5
  2203. echo "${ECHO_T}no" >&6
  2204. ISC=
  2205. fi
  2206. echo "$as_me:2413: checking for ${CC-cc} option to accept ANSI C" >&5
  2207. echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
  2208. if test "${cf_cv_ansi_cc+set}" = set; then
  2209. echo $ECHO_N "(cached) $ECHO_C" >&6
  2210. else
  2211. cf_cv_ansi_cc=no
  2212. cf_save_CFLAGS="$CFLAGS"
  2213. cf_save_CPPFLAGS="$CPPFLAGS"
  2214. # Don't try gcc -ansi; that turns off useful extensions and
  2215. # breaks some systems' header files.
  2216. # AIX -qlanglvl=ansi
  2217. # Ultrix and OSF/1 -std1
  2218. # HP-UX -Aa -D_HPUX_SOURCE
  2219. # SVR4 -Xc
  2220. # UnixWare 1.2 (cannot use -Xc, since ANSI/POSIX clashes)
  2221. for cf_arg in "-DCC_HAS_PROTOS" \
  2222. "" \
  2223. -qlanglvl=ansi \
  2224. -std1 \
  2225. -Ae \
  2226. "-Aa -D_HPUX_SOURCE" \
  2227. -Xc
  2228. do
  2229. cf_fix_cppflags=no
  2230. cf_new_cflags=
  2231. cf_new_cppflags=
  2232. cf_new_extra_cppflags=
  2233. for cf_add_cflags in $cf_arg
  2234. do
  2235. case $cf_fix_cppflags in
  2236. no)
  2237. case $cf_add_cflags in #(vi
  2238. -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
  2239. case $cf_add_cflags in
  2240. -D*)
  2241. cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
  2242. test "${cf_add_cflags}" != "${cf_tst_cflags}" \
  2243. && test -z "${cf_tst_cflags}" \
  2244. && cf_fix_cppflags=yes
  2245. if test $cf_fix_cppflags = yes ; then
  2246. cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
  2247. continue
  2248. elif test "${cf_tst_cflags}" = "\"'" ; then
  2249. cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
  2250. continue
  2251. fi
  2252. ;;
  2253. esac
  2254. case "$CPPFLAGS" in
  2255. *$cf_add_cflags) #(vi
  2256. ;;
  2257. *) #(vi
  2258. cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
  2259. ;;
  2260. esac
  2261. ;;
  2262. *)
  2263. cf_new_cflags="$cf_new_cflags $cf_add_cflags"
  2264. ;;
  2265. esac
  2266. ;;
  2267. yes)
  2268. cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
  2269. cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
  2270. test "${cf_add_cflags}" != "${cf_tst_cflags}" \
  2271. && test -z "${cf_tst_cflags}" \
  2272. && cf_fix_cppflags=no
  2273. ;;
  2274. esac
  2275. done
  2276. if test -n "$cf_new_cflags" ; then
  2277. CFLAGS="$CFLAGS $cf_new_cflags"
  2278. fi
  2279. if test -n "$cf_new_cppflags" ; then
  2280. CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
  2281. fi
  2282. if test -n "$cf_new_extra_cppflags" ; then
  2283. EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
  2284. fi
  2285. cat >conftest.$ac_ext <<_ACEOF
  2286. #line 2507 "configure"
  2287. #include "confdefs.h"
  2288. #ifndef CC_HAS_PROTOS
  2289. #if !defined(__STDC__) || (__STDC__ != 1)
  2290. choke me
  2291. #endif
  2292. #endif
  2293. int
  2294. main ()
  2295. {
  2296. int test (int i, double x);
  2297. struct s1 {int (*f) (int a);};
  2298. struct s2 {int (*f) (double a);};
  2299. ;
  2300. return 0;
  2301. }
  2302. _ACEOF
  2303. rm -f conftest.$ac_objext
  2304. if { (eval echo "$as_me:2528: \"$ac_compile\"") >&5
  2305. (eval $ac_compile) 2>&5
  2306. ac_status=$?
  2307. echo "$as_me:2531: \$? = $ac_status" >&5
  2308. (exit $ac_status); } &&
  2309. { ac_try='test -s conftest.$ac_objext'
  2310. { (eval echo "$as_me:2534: \"$ac_try\"") >&5
  2311. (eval $ac_try) 2>&5
  2312. ac_status=$?
  2313. echo "$as_me:2537: \$? = $ac_status" >&5
  2314. (exit $ac_status); }; }; then
  2315. cf_cv_ansi_cc="$cf_arg"; break
  2316. else
  2317. echo "$as_me: failed program was:" >&5
  2318. cat conftest.$ac_ext >&5
  2319. fi
  2320. rm -f conftest.$ac_objext conftest.$ac_ext
  2321. done
  2322. CFLAGS="$cf_save_CFLAGS"
  2323. CPPFLAGS="$cf_save_CPPFLAGS"
  2324. fi
  2325. echo "$as_me:2550: result: $cf_cv_ansi_cc" >&5
  2326. echo "${ECHO_T}$cf_cv_ansi_cc" >&6
  2327. if test "$cf_cv_ansi_cc" != "no"; then
  2328. if test ".$cf_cv_ansi_cc" != ".-DCC_HAS_PROTOS"; then
  2329. cf_fix_cppflags=no
  2330. cf_new_cflags=
  2331. cf_new_cppflags=
  2332. cf_new_extra_cppflags=
  2333. for cf_add_cflags in $cf_cv_ansi_cc
  2334. do
  2335. case $cf_fix_cppflags in
  2336. no)
  2337. case $cf_add_cflags in #(vi
  2338. -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
  2339. case $cf_add_cflags in
  2340. -D*)
  2341. cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
  2342. test "${cf_add_cflags}" != "${cf_tst_cflags}" \
  2343. && test -z "${cf_tst_cflags}" \
  2344. && cf_fix_cppflags=yes
  2345. if test $cf_fix_cppflags = yes ; then
  2346. cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
  2347. continue
  2348. elif test "${cf_tst_cflags}" = "\"'" ; then
  2349. cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
  2350. continue
  2351. fi
  2352. ;;
  2353. esac
  2354. case "$CPPFLAGS" in
  2355. *$cf_add_cflags) #(vi
  2356. ;;
  2357. *) #(vi
  2358. cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
  2359. ;;
  2360. esac
  2361. ;;
  2362. *)
  2363. cf_new_cflags="$cf_new_cflags $cf_add_cflags"
  2364. ;;
  2365. esac
  2366. ;;
  2367. yes)
  2368. cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
  2369. cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
  2370. test "${cf_add_cflags}" != "${cf_tst_cflags}" \
  2371. && test -z "${cf_tst_cflags}" \
  2372. && cf_fix_cppflags=no
  2373. ;;
  2374. esac
  2375. done
  2376. if test -n "$cf_new_cflags" ; then
  2377. CFLAGS="$CFLAGS $cf_new_cflags"
  2378. fi
  2379. if test -n "$cf_new_cppflags" ; then
  2380. CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
  2381. fi
  2382. if test -n "$cf_new_extra_cppflags" ; then
  2383. EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
  2384. fi
  2385. else
  2386. cat >>confdefs.h <<\EOF
  2387. #define CC_HAS_PROTOS 1
  2388. EOF
  2389. fi
  2390. fi
  2391. if test "$cf_cv_ansi_cc" = "no"; then
  2392. { { echo "$as_me:2633: error: Your compiler does not appear to recognize prototypes.
  2393. You have the following choices:
  2394. a. adjust your compiler options
  2395. b. get an up-to-date compiler
  2396. c. use a wrapper such as unproto" >&5
  2397. echo "$as_me: error: Your compiler does not appear to recognize prototypes.
  2398. You have the following choices:
  2399. a. adjust your compiler options
  2400. b. get an up-to-date compiler
  2401. c. use a wrapper such as unproto" >&2;}
  2402. { (exit 1); exit 1; }; }
  2403. fi
  2404. case $cf_cv_system_name in
  2405. os2*)
  2406. CFLAGS="$CFLAGS -Zmt"
  2407. CPPFLAGS="$CPPFLAGS -D__ST_MT_ERRNO__"
  2408. CXXFLAGS="$CXXFLAGS -Zmt"
  2409. # autoconf's macro sets -Zexe and suffix both, which conflict:w
  2410. LDFLAGS="$LDFLAGS -Zmt -Zcrtdll"
  2411. ac_cv_exeext=.exe
  2412. ;;
  2413. esac
  2414. PROG_EXT="$EXEEXT"
  2415. test -n "$PROG_EXT" && cat >>confdefs.h <<EOF
  2416. #define PROG_EXT "$PROG_EXT"
  2417. EOF
  2418. if test "$cross_compiling" = yes ; then
  2419. LDCONFIG=:
  2420. else
  2421. case "$cf_cv_system_name" in #(vi
  2422. dragonfly*|freebsd*) #(vi
  2423. test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
  2424. ;;
  2425. *) LDPATH=$PATH:/sbin:/usr/sbin
  2426. # Extract the first word of "ldconfig", so it can be a program name with args.
  2427. set dummy ldconfig; ac_word=$2
  2428. echo "$as_me:2673: checking for $ac_word" >&5
  2429. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2430. if test "${ac_cv_path_LDCONFIG+set}" = set; then
  2431. echo $ECHO_N "(cached) $ECHO_C" >&6
  2432. else
  2433. case $LDCONFIG in
  2434. [\\/]* | ?:[\\/]*)
  2435. ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
  2436. ;;
  2437. *)
  2438. ac_save_IFS=$IFS; IFS=$ac_path_separator
  2439. ac_dummy="$LDPATH"
  2440. for ac_dir in $ac_dummy; do
  2441. IFS=$ac_save_IFS
  2442. test -z "$ac_dir" && ac_dir=.
  2443. if $as_executable_p "$ac_dir/$ac_word"; then
  2444. ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
  2445. echo "$as_me:2690: found $ac_dir/$ac_word" >&5
  2446. break
  2447. fi
  2448. done
  2449. ;;
  2450. esac
  2451. fi
  2452. LDCONFIG=$ac_cv_path_LDCONFIG
  2453. if test -n "$LDCONFIG"; then
  2454. echo "$as_me:2701: result: $LDCONFIG" >&5
  2455. echo "${ECHO_T}$LDCONFIG" >&6
  2456. else
  2457. echo "$as_me:2704: result: no" >&5
  2458. echo "${ECHO_T}no" >&6
  2459. fi
  2460. ;;
  2461. esac
  2462. fi
  2463. echo "$as_me:2712: checking if you want to ensure bool is consistent with C++" >&5
  2464. echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
  2465. # Check whether --with-cxx or --without-cxx was given.
  2466. if test "${with_cxx+set}" = set; then
  2467. withval="$with_cxx"
  2468. cf_with_cxx=$withval
  2469. else
  2470. cf_with_cxx=yes
  2471. fi;
  2472. echo "$as_me:2722: result: $cf_with_cxx" >&5
  2473. echo "${ECHO_T}$cf_with_cxx" >&6
  2474. if test "X$cf_with_cxx" = Xno ; then
  2475. CXX=""
  2476. GXX=""
  2477. else
  2478. # with autoconf 2.13, we can change the error to a warning:
  2479. ac_ext=cc
  2480. ac_cpp='$CXXCPP $CPPFLAGS'
  2481. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2482. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2483. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2484. ac_main_return=return
  2485. if test -n "$ac_tool_prefix"; then
  2486. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  2487. do
  2488. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2489. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2490. echo "$as_me:2740: checking for $ac_word" >&5
  2491. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2492. if test "${ac_cv_prog_CXX+set}" = set; then
  2493. echo $ECHO_N "(cached) $ECHO_C" >&6
  2494. else
  2495. if test -n "$CXX"; then
  2496. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2497. else
  2498. ac_save_IFS=$IFS; IFS=$ac_path_separator
  2499. ac_dummy="$PATH"
  2500. for ac_dir in $ac_dummy; do
  2501. IFS=$ac_save_IFS
  2502. test -z "$ac_dir" && ac_dir=.
  2503. $as_executable_p "$ac_dir/$ac_word" || continue
  2504. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2505. echo "$as_me:2755: found $ac_dir/$ac_word" >&5
  2506. break
  2507. done
  2508. fi
  2509. fi
  2510. CXX=$ac_cv_prog_CXX
  2511. if test -n "$CXX"; then
  2512. echo "$as_me:2763: result: $CXX" >&5
  2513. echo "${ECHO_T}$CXX" >&6
  2514. else
  2515. echo "$as_me:2766: result: no" >&5
  2516. echo "${ECHO_T}no" >&6
  2517. fi
  2518. test -n "$CXX" && break
  2519. done
  2520. fi
  2521. if test -z "$CXX"; then
  2522. ac_ct_CXX=$CXX
  2523. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  2524. do
  2525. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2526. set dummy $ac_prog; ac_word=$2
  2527. echo "$as_me:2779: checking for $ac_word" >&5
  2528. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2529. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  2530. echo $ECHO_N "(cached) $ECHO_C" >&6
  2531. else
  2532. if test -n "$ac_ct_CXX"; then
  2533. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2534. else
  2535. ac_save_IFS=$IFS; IFS=$ac_path_separator
  2536. ac_dummy="$PATH"
  2537. for ac_dir in $ac_dummy; do
  2538. IFS=$ac_save_IFS
  2539. test -z "$ac_dir" && ac_dir=.
  2540. $as_executable_p "$ac_dir/$ac_word" || continue
  2541. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2542. echo "$as_me:2794: found $ac_dir/$ac_word" >&5
  2543. break
  2544. done
  2545. fi
  2546. fi
  2547. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2548. if test -n "$ac_ct_CXX"; then
  2549. echo "$as_me:2802: result: $ac_ct_CXX" >&5
  2550. echo "${ECHO_T}$ac_ct_CXX" >&6
  2551. else
  2552. echo "$as_me:2805: result: no" >&5
  2553. echo "${ECHO_T}no" >&6
  2554. fi
  2555. test -n "$ac_ct_CXX" && break
  2556. done
  2557. test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
  2558. CXX=$ac_ct_CXX
  2559. fi
  2560. # Provide some information about the compiler.
  2561. echo "$as_me:2817:" \
  2562. "checking for C++ compiler version" >&5
  2563. ac_compiler=`set X $ac_compile; echo $2`
  2564. { (eval echo "$as_me:2820: \"$ac_compiler --version </dev/null >&5\"") >&5
  2565. (eval $ac_compiler --version </dev/null >&5) 2>&5
  2566. ac_status=$?
  2567. echo "$as_me:2823: \$? = $ac_status" >&5
  2568. (exit $ac_status); }
  2569. { (eval echo "$as_me:2825: \"$ac_compiler -v </dev/null >&5\"") >&5
  2570. (eval $ac_compiler -v </dev/null >&5) 2>&5
  2571. ac_status=$?
  2572. echo "$as_me:2828: \$? = $ac_status" >&5
  2573. (exit $ac_status); }
  2574. { (eval echo "$as_me:2830: \"$ac_compiler -V </dev/null >&5\"") >&5
  2575. (eval $ac_compiler -V </dev/null >&5) 2>&5
  2576. ac_status=$?
  2577. echo "$as_me:2833: \$? = $ac_status" >&5
  2578. (exit $ac_status); }
  2579. echo "$as_me:2836: checking whether we are using the GNU C++ compiler" >&5
  2580. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
  2581. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  2582. echo $ECHO_N "(cached) $ECHO_C" >&6
  2583. else
  2584. cat >conftest.$ac_ext <<_ACEOF
  2585. #line 2842 "configure"
  2586. #include "confdefs.h"
  2587. int
  2588. main ()
  2589. {
  2590. #ifndef __GNUC__
  2591. choke me
  2592. #endif
  2593. ;
  2594. return 0;
  2595. }
  2596. _ACEOF
  2597. rm -f conftest.$ac_objext
  2598. if { (eval echo "$as_me:2857: \"$ac_compile\"") >&5
  2599. (eval $ac_compile) 2>&5
  2600. ac_status=$?
  2601. echo "$as_me:2860: \$? = $ac_status" >&5
  2602. (exit $ac_status); } &&
  2603. { ac_try='test -s conftest.$ac_objext'
  2604. { (eval echo "$as_me:2863: \"$ac_try\"") >&5
  2605. (eval $ac_try) 2>&5
  2606. ac_status=$?
  2607. echo "$as_me:2866: \$? = $ac_status" >&5
  2608. (exit $ac_status); }; }; then
  2609. ac_compiler_gnu=yes
  2610. else
  2611. echo "$as_me: failed program was:" >&5
  2612. cat conftest.$ac_ext >&5
  2613. ac_compiler_gnu=no
  2614. fi
  2615. rm -f conftest.$ac_objext conftest.$ac_ext
  2616. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2617. fi
  2618. echo "$as_me:2878: result: $ac_cv_cxx_compiler_gnu" >&5
  2619. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
  2620. GXX=`test $ac_compiler_gnu = yes && echo yes`
  2621. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2622. ac_save_CXXFLAGS=$CXXFLAGS
  2623. CXXFLAGS="-g"
  2624. echo "$as_me:2884: checking whether $CXX accepts -g" >&5
  2625. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
  2626. if test "${ac_cv_prog_cxx_g+set}" = set; then
  2627. echo $ECHO_N "(cached) $ECHO_C" >&6
  2628. else
  2629. cat >conftest.$ac_ext <<_ACEOF
  2630. #line 2890 "configure"
  2631. #include "confdefs.h"
  2632. int
  2633. main ()
  2634. {
  2635. ;
  2636. return 0;
  2637. }
  2638. _ACEOF
  2639. rm -f conftest.$ac_objext
  2640. if { (eval echo "$as_me:2902: \"$ac_compile\"") >&5
  2641. (eval $ac_compile) 2>&5
  2642. ac_status=$?
  2643. echo "$as_me:2905: \$? = $ac_status" >&5
  2644. (exit $ac_status); } &&
  2645. { ac_try='test -s conftest.$ac_objext'
  2646. { (eval echo "$as_me:2908: \"$ac_try\"") >&5
  2647. (eval $ac_try) 2>&5
  2648. ac_status=$?
  2649. echo "$as_me:2911: \$? = $ac_status" >&5
  2650. (exit $ac_status); }; }; then
  2651. ac_cv_prog_cxx_g=yes
  2652. else
  2653. echo "$as_me: failed program was:" >&5
  2654. cat conftest.$ac_ext >&5
  2655. ac_cv_prog_cxx_g=no
  2656. fi
  2657. rm -f conftest.$ac_objext conftest.$ac_ext
  2658. fi
  2659. echo "$as_me:2921: result: $ac_cv_prog_cxx_g" >&5
  2660. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
  2661. if test "$ac_test_CXXFLAGS" = set; then
  2662. CXXFLAGS=$ac_save_CXXFLAGS
  2663. elif test $ac_cv_prog_cxx_g = yes; then
  2664. if test "$GXX" = yes; then
  2665. CXXFLAGS="-g -O2"
  2666. else
  2667. CXXFLAGS="-g"
  2668. fi
  2669. else
  2670. if test "$GXX" = yes; then
  2671. CXXFLAGS="-O2"
  2672. else
  2673. CXXFLAGS=
  2674. fi
  2675. fi
  2676. for ac_declaration in \
  2677. ''\
  2678. '#include <stdlib.h>' \
  2679. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  2680. 'extern "C" void std::exit (int); using std::exit;' \
  2681. 'extern "C" void exit (int) throw ();' \
  2682. 'extern "C" void exit (int);' \
  2683. 'void exit (int);'
  2684. do
  2685. cat >conftest.$ac_ext <<_ACEOF
  2686. #line 2948 "configure"
  2687. #include "confdefs.h"
  2688. #include <stdlib.h>
  2689. $ac_declaration
  2690. int
  2691. main ()
  2692. {
  2693. exit (42);
  2694. ;
  2695. return 0;
  2696. }
  2697. _ACEOF
  2698. rm -f conftest.$ac_objext
  2699. if { (eval echo "$as_me:2961: \"$ac_compile\"") >&5
  2700. (eval $ac_compile) 2>&5
  2701. ac_status=$?
  2702. echo "$as_me:2964: \$? = $ac_status" >&5
  2703. (exit $ac_status); } &&
  2704. { ac_try='test -s conftest.$ac_objext'
  2705. { (eval echo "$as_me:2967: \"$ac_try\"") >&5
  2706. (eval $ac_try) 2>&5
  2707. ac_status=$?
  2708. echo "$as_me:2970: \$? = $ac_status" >&5
  2709. (exit $ac_status); }; }; then
  2710. :
  2711. else
  2712. echo "$as_me: failed program was:" >&5
  2713. cat conftest.$ac_ext >&5
  2714. continue
  2715. fi
  2716. rm -f conftest.$ac_objext conftest.$ac_ext
  2717. cat >conftest.$ac_ext <<_ACEOF
  2718. #line 2980 "configure"
  2719. #include "confdefs.h"
  2720. $ac_declaration
  2721. int
  2722. main ()
  2723. {
  2724. exit (42);
  2725. ;
  2726. return 0;
  2727. }
  2728. _ACEOF
  2729. rm -f conftest.$ac_objext
  2730. if { (eval echo "$as_me:2992: \"$ac_compile\"") >&5
  2731. (eval $ac_compile) 2>&5
  2732. ac_status=$?
  2733. echo "$as_me:2995: \$? = $ac_status" >&5
  2734. (exit $ac_status); } &&
  2735. { ac_try='test -s conftest.$ac_objext'
  2736. { (eval echo "$as_me:2998: \"$ac_try\"") >&5
  2737. (eval $ac_try) 2>&5
  2738. ac_status=$?
  2739. echo "$as_me:3001: \$? = $ac_status" >&5
  2740. (exit $ac_status); }; }; then
  2741. break
  2742. else
  2743. echo "$as_me: failed program was:" >&5
  2744. cat conftest.$ac_ext >&5
  2745. fi
  2746. rm -f conftest.$ac_objext conftest.$ac_ext
  2747. done
  2748. rm -f conftest*
  2749. if test -n "$ac_declaration"; then
  2750. echo '#ifdef __cplusplus' >>confdefs.h
  2751. echo $ac_declaration >>confdefs.h
  2752. echo '#endif' >>confdefs.h
  2753. fi
  2754. ac_ext=c
  2755. ac_cpp='$CPP $CPPFLAGS'
  2756. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2757. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2758. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2759. ac_main_return=return
  2760. # autoconf 2.5x removed the error - by hardcoding it to g++.
  2761. if test "$CXX" = "g++" ; then
  2762. # Extract the first word of "g++", so it can be a program name with args.
  2763. set dummy g++; ac_word=$2
  2764. echo "$as_me:3028: checking for $ac_word" >&5
  2765. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2766. if test "${ac_cv_path_CXX+set}" = set; then
  2767. echo $ECHO_N "(cached) $ECHO_C" >&6
  2768. else
  2769. case $CXX in
  2770. [\\/]* | ?:[\\/]*)
  2771. ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
  2772. ;;
  2773. *)
  2774. ac_save_IFS=$IFS; IFS=$ac_path_separator
  2775. ac_dummy="$PATH"
  2776. for ac_dir in $ac_dummy; do
  2777. IFS=$ac_save_IFS
  2778. test -z "$ac_dir" && ac_dir=.
  2779. if $as_executable_p "$ac_dir/$ac_word"; then
  2780. ac_cv_path_CXX="$ac_dir/$ac_word"
  2781. echo "$as_me:3045: found $ac_dir/$ac_word" >&5
  2782. break
  2783. fi
  2784. done
  2785. ;;
  2786. esac
  2787. fi
  2788. CXX=$ac_cv_path_CXX
  2789. if test -n "$CXX"; then
  2790. echo "$as_me:3056: result: $CXX" >&5
  2791. echo "${ECHO_T}$CXX" >&6
  2792. else
  2793. echo "$as_me:3059: result: no" >&5
  2794. echo "${ECHO_T}no" >&6
  2795. fi
  2796. fi
  2797. if test "$CXX" = "g++" ; then
  2798. { echo "$as_me:3065: WARNING: ignoring hardcoded g++" >&5
  2799. echo "$as_me: WARNING: ignoring hardcoded g++" >&2;}
  2800. cf_with_cxx=no; CXX=""; GXX="";
  2801. fi
  2802. fi
  2803. GXX_VERSION=none
  2804. if test "$GXX" = yes; then
  2805. echo "$as_me:3073: checking version of g++" >&5
  2806. echo $ECHO_N "checking version of g++... $ECHO_C" >&6
  2807. GXX_VERSION="`${CXX-g++} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
  2808. test -z "$GXX_VERSION" && GXX_VERSION=unknown
  2809. echo "$as_me:3077: result: $GXX_VERSION" >&5
  2810. echo "${ECHO_T}$GXX_VERSION" >&6
  2811. fi
  2812. case $GXX_VERSION in
  2813. 1*|2.[0-6]*)
  2814. # GXX=""; CXX=""; ac_cv_prog_gxx=no
  2815. # cf_cxx_library=no
  2816. { echo "$as_me:3085: WARNING: templates do not work" >&5
  2817. echo "$as_me: WARNING: templates do not work" >&2;}
  2818. ;;
  2819. esac
  2820. echo "$as_me:3090: checking if you want to build C++ binding and demo" >&5
  2821. echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
  2822. # Check whether --with-cxx-binding or --without-cxx-binding was given.
  2823. if test "${with_cxx_binding+set}" = set; then
  2824. withval="$with_cxx_binding"
  2825. cf_with_cxx_binding=$withval
  2826. else
  2827. cf_with_cxx_binding=$cf_with_cxx
  2828. fi;
  2829. echo "$as_me:3100: result: $cf_with_cxx_binding" >&5
  2830. echo "${ECHO_T}$cf_with_cxx_binding" >&6
  2831. echo "$as_me:3103: checking if you want to build with Ada95" >&5
  2832. echo $ECHO_N "checking if you want to build with Ada95... $ECHO_C" >&6
  2833. # Check whether --with-ada or --without-ada was given.
  2834. if test "${with_ada+set}" = set; then
  2835. withval="$with_ada"
  2836. cf_with_ada=$withval
  2837. else
  2838. cf_with_ada=yes
  2839. fi;
  2840. echo "$as_me:3113: result: $cf_with_ada" >&5
  2841. echo "${ECHO_T}$cf_with_ada" >&6
  2842. echo "$as_me:3116: checking if you want to install manpages" >&5
  2843. echo $ECHO_N "checking if you want to install manpages... $ECHO_C" >&6
  2844. # Check whether --with-manpages or --without-manpages was given.
  2845. if test "${with_manpages+set}" = set; then
  2846. withval="$with_manpages"
  2847. cf_with_manpages=$withval
  2848. else
  2849. cf_with_manpages=yes
  2850. fi;
  2851. echo "$as_me:3126: result: $cf_with_manpages" >&5
  2852. echo "${ECHO_T}$cf_with_manpages" >&6
  2853. echo "$as_me:3129: checking if you want to build programs such as tic" >&5
  2854. echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
  2855. # Check whether --with-progs or --without-progs was given.
  2856. if test "${with_progs+set}" = set; then
  2857. withval="$with_progs"
  2858. cf_with_progs=$withval
  2859. else
  2860. cf_with_progs=yes
  2861. fi;
  2862. echo "$as_me:3139: result: $cf_with_progs" >&5
  2863. echo "${ECHO_T}$cf_with_progs" >&6
  2864. echo "$as_me:3142: checking if you wish to install curses.h" >&5
  2865. echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
  2866. # Check whether --with-curses-h or --without-curses-h was given.
  2867. if test "${with_curses_h+set}" = set; then
  2868. withval="$with_curses_h"
  2869. with_curses_h=$withval
  2870. else
  2871. with_curses_h=yes
  2872. fi;
  2873. echo "$as_me:3152: result: $with_curses_h" >&5
  2874. echo "${ECHO_T}$with_curses_h" >&6
  2875. modules_to_build="ncurses"
  2876. if test "X$cf_with_progs" != Xno ; then
  2877. modules_to_build="$modules_to_build progs tack"
  2878. fi
  2879. modules_to_build="$modules_to_build panel menu form"
  2880. test "$program_prefix" != NONE &&
  2881. program_transform_name="s,^,$program_prefix,;$program_transform_name"
  2882. # Use a double $ so make ignores it.
  2883. test "$program_suffix" != NONE &&
  2884. program_transform_name="s,\$,$program_suffix,;$program_transform_name"
  2885. # Double any \ or $. echo might interpret backslashes.
  2886. # By default was `s,x,x', remove it if useless.
  2887. cat <<\_ACEOF >conftest.sed
  2888. s/[\\$]/&&/g;s/;s,x,x,$//
  2889. _ACEOF
  2890. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  2891. rm conftest.sed
  2892. for ac_prog in mawk gawk nawk awk
  2893. do
  2894. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2895. set dummy $ac_prog; ac_word=$2
  2896. echo "$as_me:3178: checking for $ac_word" >&5
  2897. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2898. if test "${ac_cv_prog_AWK+set}" = set; then
  2899. echo $ECHO_N "(cached) $ECHO_C" >&6
  2900. else
  2901. if test -n "$AWK"; then
  2902. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2903. else
  2904. ac_save_IFS=$IFS; IFS=$ac_path_separator
  2905. ac_dummy="$PATH"
  2906. for ac_dir in $ac_dummy; do
  2907. IFS=$ac_save_IFS
  2908. test -z "$ac_dir" && ac_dir=.
  2909. $as_executable_p "$ac_dir/$ac_word" || continue
  2910. ac_cv_prog_AWK="$ac_prog"
  2911. echo "$as_me:3193: found $ac_dir/$ac_word" >&5
  2912. break
  2913. done
  2914. fi
  2915. fi
  2916. AWK=$ac_cv_prog_AWK
  2917. if test -n "$AWK"; then
  2918. echo "$as_me:3201: result: $AWK" >&5
  2919. echo "${ECHO_T}$AWK" >&6
  2920. else
  2921. echo "$as_me:3204: result: no" >&5
  2922. echo "${ECHO_T}no" >&6
  2923. fi
  2924. test -n "$AWK" && break
  2925. done
  2926. test -z "$AWK" && { { echo "$as_me:3211: error: No awk program found" >&5
  2927. echo "$as_me: error: No awk program found" >&2;}
  2928. { (exit 1); exit 1; }; }
  2929. echo "$as_me:3215: checking for egrep" >&5
  2930. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  2931. if test "${ac_cv_prog_egrep+set}" = set; then
  2932. echo $ECHO_N "(cached) $ECHO_C" >&6
  2933. else
  2934. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  2935. then ac_cv_prog_egrep='grep -E'
  2936. else ac_cv_prog_egrep='egrep'
  2937. fi
  2938. fi
  2939. echo "$as_me:3225: result: $ac_cv_prog_egrep" >&5
  2940. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  2941. EGREP=$ac_cv_prog_egrep
  2942. test -z "$EGREP" && { { echo "$as_me:3229: error: No egrep program found" >&5
  2943. echo "$as_me: error: No egrep program found" >&2;}
  2944. { (exit 1); exit 1; }; }
  2945. # Find a good install program. We prefer a C program (faster),
  2946. # so one script is as good as another. But avoid the broken or
  2947. # incompatible versions:
  2948. # SysV /etc/install, /usr/sbin/install
  2949. # SunOS /usr/etc/install
  2950. # IRIX /sbin/install
  2951. # AIX /bin/install
  2952. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2953. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2954. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2955. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2956. # ./install, which can be erroneously created by make from ./install.sh.
  2957. echo "$as_me:3245: checking for a BSD compatible install" >&5
  2958. echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
  2959. if test -z "$INSTALL"; then
  2960. if test "${ac_cv_path_install+set}" = set; then
  2961. echo $ECHO_N "(cached) $ECHO_C" >&6
  2962. else
  2963. ac_save_IFS=$IFS; IFS=$ac_path_separator
  2964. for ac_dir in $PATH; do
  2965. IFS=$ac_save_IFS
  2966. # Account for people who put trailing slashes in PATH elements.
  2967. case $ac_dir/ in
  2968. / | ./ | .// | /cC/* \
  2969. | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
  2970. | /usr/ucb/* ) ;;
  2971. *)
  2972. # OSF1 and SCO ODT 3.0 have their own names for install.
  2973. # Don't use installbsd from OSF since it installs stuff as root
  2974. # by default.
  2975. for ac_prog in ginstall scoinst install; do
  2976. if $as_executable_p "$ac_dir/$ac_prog"; then
  2977. if test $ac_prog = install &&
  2978. grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
  2979. # AIX install. It has an incompatible calling convention.
  2980. :
  2981. elif test $ac_prog = install &&
  2982. grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
  2983. # program-specific install script used by HP pwplus--don't use.
  2984. :
  2985. else
  2986. ac_cv_path_install="$ac_dir/$ac_prog -c"
  2987. break 2
  2988. fi
  2989. fi
  2990. done
  2991. ;;
  2992. esac
  2993. done
  2994. fi
  2995. if test "${ac_cv_path_install+set}" = set; then
  2996. INSTALL=$ac_cv_path_install
  2997. else
  2998. # As a last resort, use the slow shell script. We don't cache a
  2999. # path for INSTALL within a source directory, because that will
  3000. # break other packages using the cache if that directory is
  3001. # removed, or if the path is relative.
  3002. INSTALL=$ac_install_sh
  3003. fi
  3004. fi
  3005. echo "$as_me:3294: result: $INSTALL" >&5
  3006. echo "${ECHO_T}$INSTALL" >&6
  3007. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3008. # It thinks the first close brace ends the variable substitution.
  3009. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3010. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3011. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3012. case $INSTALL in
  3013. /*)
  3014. ;;
  3015. *)
  3016. cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
  3017. test -z "$cf_dir" && cf_dir=.
  3018. INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
  3019. ;;
  3020. esac
  3021. for ac_prog in tdlint lint alint
  3022. do
  3023. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3024. set dummy $ac_prog; ac_word=$2
  3025. echo "$as_me:3319: checking for $ac_word" >&5
  3026. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3027. if test "${ac_cv_prog_LINT+set}" = set; then
  3028. echo $ECHO_N "(cached) $ECHO_C" >&6
  3029. else
  3030. if test -n "$LINT"; then
  3031. ac_cv_prog_LINT="$LINT" # Let the user override the test.
  3032. else
  3033. ac_save_IFS=$IFS; IFS=$ac_path_separator
  3034. ac_dummy="$PATH"
  3035. for ac_dir in $ac_dummy; do
  3036. IFS=$ac_save_IFS
  3037. test -z "$ac_dir" && ac_dir=.
  3038. $as_executable_p "$ac_dir/$ac_word" || continue
  3039. ac_cv_prog_LINT="$ac_prog"
  3040. echo "$as_me:3334: found $ac_dir/$ac_word" >&5
  3041. break
  3042. done
  3043. fi
  3044. fi
  3045. LINT=$ac_cv_prog_LINT
  3046. if test -n "$LINT"; then
  3047. echo "$as_me:3342: result: $LINT" >&5
  3048. echo "${ECHO_T}$LINT" >&6
  3049. else
  3050. echo "$as_me:3345: result: no" >&5
  3051. echo "${ECHO_T}no" >&6
  3052. fi
  3053. test -n "$LINT" && break
  3054. done
  3055. echo "$as_me:3352: checking whether ln -s works" >&5
  3056. echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
  3057. LN_S=$as_ln_s
  3058. if test "$LN_S" = "ln -s"; then
  3059. echo "$as_me:3356: result: yes" >&5
  3060. echo "${ECHO_T}yes" >&6
  3061. else
  3062. echo "$as_me:3359: result: no, using $LN_S" >&5
  3063. echo "${ECHO_T}no, using $LN_S" >&6
  3064. fi
  3065. echo "$as_me:3363: checking for long file names" >&5
  3066. echo $ECHO_N "checking for long file names... $ECHO_C" >&6
  3067. if test "${ac_cv_sys_long_file_names+set}" = set; then
  3068. echo $ECHO_N "(cached) $ECHO_C" >&6
  3069. else
  3070. ac_cv_sys_long_file_names=yes
  3071. # Test for long file names in all the places we know might matter:
  3072. # . the current directory, where building will happen
  3073. # $prefix/lib where we will be installing things
  3074. # $exec_prefix/lib likewise
  3075. # eval it to expand exec_prefix.
  3076. # $TMPDIR if set, where it might want to write temporary files
  3077. # if $TMPDIR is not set:
  3078. # /tmp where it might want to write temporary files
  3079. # /var/tmp likewise
  3080. # /usr/tmp likewise
  3081. if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
  3082. ac_tmpdirs=$TMPDIR
  3083. else
  3084. ac_tmpdirs='/tmp /var/tmp /usr/tmp'
  3085. fi
  3086. for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
  3087. test -d $ac_dir || continue
  3088. test -w $ac_dir || continue # It is less confusing to not echo anything here.
  3089. ac_xdir=$ac_dir/cf$$
  3090. (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
  3091. ac_tf1=$ac_xdir/conftest9012345
  3092. ac_tf2=$ac_xdir/conftest9012346
  3093. (echo 1 >$ac_tf1) 2>/dev/null
  3094. (echo 2 >$ac_tf2) 2>/dev/null
  3095. ac_val=`cat $ac_tf1 2>/dev/null`
  3096. if test ! -f $ac_tf1 || test "$ac_val" != 1; then
  3097. ac_cv_sys_long_file_names=no
  3098. rm -rf $ac_xdir 2>/dev/null
  3099. break
  3100. fi
  3101. rm -rf $ac_xdir 2>/dev/null
  3102. done
  3103. fi
  3104. echo "$as_me:3402: result: $ac_cv_sys_long_file_names" >&5
  3105. echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
  3106. if test $ac_cv_sys_long_file_names = yes; then
  3107. cat >>confdefs.h <<\EOF
  3108. #define HAVE_LONG_FILE_NAMES 1
  3109. EOF
  3110. fi
  3111. echo "$as_me:3412: checking if we should assume mixed-case filenames" >&5
  3112. echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
  3113. # Check whether --enable-mixed-case or --disable-mixed-case was given.
  3114. if test "${enable_mixed_case+set}" = set; then
  3115. enableval="$enable_mixed_case"
  3116. enable_mixedcase=$enableval
  3117. else
  3118. enable_mixedcase=auto
  3119. fi;
  3120. echo "$as_me:3422: result: $enable_mixedcase" >&5
  3121. echo "${ECHO_T}$enable_mixedcase" >&6
  3122. if test "$enable_mixedcase" = "auto" ; then
  3123. echo "$as_me:3426: checking if filesystem supports mixed-case filenames" >&5
  3124. echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
  3125. if test "${cf_cv_mixedcase+set}" = set; then
  3126. echo $ECHO_N "(cached) $ECHO_C" >&6
  3127. else
  3128. if test "$cross_compiling" = yes ; then
  3129. case $target_alias in #(vi
  3130. *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-mingw32*|*-uwin*) #(vi
  3131. cf_cv_mixedcase=no
  3132. ;;
  3133. *)
  3134. cf_cv_mixedcase=yes
  3135. ;;
  3136. esac
  3137. else
  3138. rm -f conftest CONFTEST
  3139. echo test >conftest
  3140. if test -f CONFTEST ; then
  3141. cf_cv_mixedcase=no
  3142. else
  3143. cf_cv_mixedcase=yes
  3144. fi
  3145. rm -f conftest CONFTEST
  3146. fi
  3147. fi
  3148. echo "$as_me:3453: result: $cf_cv_mixedcase" >&5
  3149. echo "${ECHO_T}$cf_cv_mixedcase" >&6
  3150. test "$cf_cv_mixedcase" = yes && cat >>confdefs.h <<\EOF
  3151. #define MIXEDCASE_FILENAMES 1
  3152. EOF
  3153. else
  3154. cf_cv_mixedcase=$enable_mixedcase
  3155. if test "$enable_mixedcase" = "yes" ; then
  3156. cat >>confdefs.h <<\EOF
  3157. #define MIXEDCASE_FILENAMES 1
  3158. EOF
  3159. fi
  3160. fi
  3161. # do this after mixed-case option (tags/TAGS is not as important as tic).
  3162. echo "$as_me:3470: checking whether ${MAKE-make} sets \${MAKE}" >&5
  3163. echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
  3164. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
  3165. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  3166. echo $ECHO_N "(cached) $ECHO_C" >&6
  3167. else
  3168. cat >conftest.make <<\EOF
  3169. all:
  3170. @echo 'ac_maketemp="${MAKE}"'
  3171. EOF
  3172. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  3173. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  3174. if test -n "$ac_maketemp"; then
  3175. eval ac_cv_prog_make_${ac_make}_set=yes
  3176. else
  3177. eval ac_cv_prog_make_${ac_make}_set=no
  3178. fi
  3179. rm -f conftest.make
  3180. fi
  3181. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  3182. echo "$as_me:3490: result: yes" >&5
  3183. echo "${ECHO_T}yes" >&6
  3184. SET_MAKE=
  3185. else
  3186. echo "$as_me:3494: result: no" >&5
  3187. echo "${ECHO_T}no" >&6
  3188. SET_MAKE="MAKE=${MAKE-make}"
  3189. fi
  3190. # Extract the first word of "ctags", so it can be a program name with args.
  3191. set dummy ctags; ac_word=$2
  3192. echo "$as_me:3501: checking for $ac_word" >&5
  3193. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3194. if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
  3195. echo $ECHO_N "(cached) $ECHO_C" >&6
  3196. else
  3197. if test -n "$MAKE_LOWER_TAGS"; then
  3198. ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
  3199. else
  3200. ac_save_IFS=$IFS; IFS=$ac_path_separator
  3201. ac_dummy="$PATH"
  3202. for ac_dir in $ac_dummy; do
  3203. IFS=$ac_save_IFS
  3204. test -z "$ac_dir" && ac_dir=.
  3205. $as_executable_p "$ac_dir/$ac_word" || continue
  3206. ac_cv_prog_MAKE_LOWER_TAGS="yes"
  3207. echo "$as_me:3516: found $ac_dir/$ac_word" >&5
  3208. break
  3209. done
  3210. test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
  3211. fi
  3212. fi
  3213. MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
  3214. if test -n "$MAKE_LOWER_TAGS"; then
  3215. echo "$as_me:3525: result: $MAKE_LOWER_TAGS" >&5
  3216. echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
  3217. else
  3218. echo "$as_me:3528: result: no" >&5
  3219. echo "${ECHO_T}no" >&6
  3220. fi
  3221. if test "$cf_cv_mixedcase" = yes ; then
  3222. # Extract the first word of "etags", so it can be a program name with args.
  3223. set dummy etags; ac_word=$2
  3224. echo "$as_me:3535: checking for $ac_word" >&5
  3225. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3226. if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
  3227. echo $ECHO_N "(cached) $ECHO_C" >&6
  3228. else
  3229. if test -n "$MAKE_UPPER_TAGS"; then
  3230. ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
  3231. else
  3232. ac_save_IFS=$IFS; IFS=$ac_path_separator
  3233. ac_dummy="$PATH"
  3234. for ac_dir in $ac_dummy; do
  3235. IFS=$ac_save_IFS
  3236. test -z "$ac_dir" && ac_dir=.
  3237. $as_executable_p "$ac_dir/$ac_word" || continue
  3238. ac_cv_prog_MAKE_UPPER_TAGS="yes"
  3239. echo "$as_me:3550: found $ac_dir/$ac_word" >&5
  3240. break
  3241. done
  3242. test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
  3243. fi
  3244. fi
  3245. MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
  3246. if test -n "$MAKE_UPPER_TAGS"; then
  3247. echo "$as_me:3559: result: $MAKE_UPPER_TAGS" >&5
  3248. echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
  3249. else
  3250. echo "$as_me:3562: result: no" >&5
  3251. echo "${ECHO_T}no" >&6
  3252. fi
  3253. else
  3254. MAKE_UPPER_TAGS=no
  3255. fi
  3256. if test "$MAKE_UPPER_TAGS" = yes ; then
  3257. MAKE_UPPER_TAGS=
  3258. else
  3259. MAKE_UPPER_TAGS="#"
  3260. fi
  3261. if test "$MAKE_LOWER_TAGS" = yes ; then
  3262. MAKE_LOWER_TAGS=
  3263. else
  3264. MAKE_LOWER_TAGS="#"
  3265. fi
  3266. echo "$as_me:3582: checking for makeflags variable" >&5
  3267. echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
  3268. if test "${cf_cv_makeflags+set}" = set; then
  3269. echo $ECHO_N "(cached) $ECHO_C" >&6
  3270. else
  3271. cf_cv_makeflags=''
  3272. for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
  3273. do
  3274. cat >cf_makeflags.tmp <<CF_EOF
  3275. SHELL = /bin/sh
  3276. all :
  3277. @ echo '.$cf_option'
  3278. CF_EOF
  3279. cf_result=`${MAKE-make} -k -f cf_makeflags.tmp 2>/dev/null | sed -e 's,[ ]*$,,'`
  3280. case "$cf_result" in
  3281. .*k)
  3282. cf_result=`${MAKE-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
  3283. case "$cf_result" in
  3284. .*CC=*) cf_cv_makeflags=
  3285. ;;
  3286. *) cf_cv_makeflags=$cf_option
  3287. ;;
  3288. esac
  3289. break
  3290. ;;
  3291. .-) ;;
  3292. *) echo "given option \"$cf_option\", no match \"$cf_result\""
  3293. ;;
  3294. esac
  3295. done
  3296. rm -f cf_makeflags.tmp
  3297. fi
  3298. echo "$as_me:3616: result: $cf_cv_makeflags" >&5
  3299. echo "${ECHO_T}$cf_cv_makeflags" >&6
  3300. if test -n "$ac_tool_prefix"; then
  3301. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  3302. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  3303. echo "$as_me:3622: checking for $ac_word" >&5
  3304. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3305. if test "${ac_cv_prog_RANLIB+set}" = set; then
  3306. echo $ECHO_N "(cached) $ECHO_C" >&6
  3307. else
  3308. if test -n "$RANLIB"; then
  3309. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  3310. else
  3311. ac_save_IFS=$IFS; IFS=$ac_path_separator
  3312. ac_dummy="$PATH"
  3313. for ac_dir in $ac_dummy; do
  3314. IFS=$ac_save_IFS
  3315. test -z "$ac_dir" && ac_dir=.
  3316. $as_executable_p "$ac_dir/$ac_word" || continue
  3317. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  3318. echo "$as_me:3637: found $ac_dir/$ac_word" >&5
  3319. break
  3320. done
  3321. fi
  3322. fi
  3323. RANLIB=$ac_cv_prog_RANLIB
  3324. if test -n "$RANLIB"; then
  3325. echo "$as_me:3645: result: $RANLIB" >&5
  3326. echo "${ECHO_T}$RANLIB" >&6
  3327. else
  3328. echo "$as_me:3648: result: no" >&5
  3329. echo "${ECHO_T}no" >&6
  3330. fi
  3331. fi
  3332. if test -z "$ac_cv_prog_RANLIB"; then
  3333. ac_ct_RANLIB=$RANLIB
  3334. # Extract the first word of "ranlib", so it can be a program name with args.
  3335. set dummy ranlib; ac_word=$2
  3336. echo "$as_me:3657: checking for $ac_word" >&5
  3337. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3338. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  3339. echo $ECHO_N "(cached) $ECHO_C" >&6
  3340. else
  3341. if test -n "$ac_ct_RANLIB"; then
  3342. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  3343. else
  3344. ac_save_IFS=$IFS; IFS=$ac_path_separator
  3345. ac_dummy="$PATH"
  3346. for ac_dir in $ac_dummy; do
  3347. IFS=$ac_save_IFS
  3348. test -z "$ac_dir" && ac_dir=.
  3349. $as_executable_p "$ac_dir/$ac_word" || continue
  3350. ac_cv_prog_ac_ct_RANLIB="ranlib"
  3351. echo "$as_me:3672: found $ac_dir/$ac_word" >&5
  3352. break
  3353. done
  3354. test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
  3355. fi
  3356. fi
  3357. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  3358. if test -n "$ac_ct_RANLIB"; then
  3359. echo "$as_me:3681: result: $ac_ct_RANLIB" >&5
  3360. echo "${ECHO_T}$ac_ct_RANLIB" >&6
  3361. else
  3362. echo "$as_me:3684: result: no" >&5
  3363. echo "${ECHO_T}no" >&6
  3364. fi
  3365. RANLIB=$ac_ct_RANLIB
  3366. else
  3367. RANLIB="$ac_cv_prog_RANLIB"
  3368. fi
  3369. if test -n "$ac_tool_prefix"; then
  3370. # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
  3371. set dummy ${ac_tool_prefix}ld; ac_word=$2
  3372. echo "$as_me:3696: checking for $ac_word" >&5
  3373. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3374. if test "${ac_cv_prog_LD+set}" = set; then
  3375. echo $ECHO_N "(cached) $ECHO_C" >&6
  3376. else
  3377. if test -n "$LD"; then
  3378. ac_cv_prog_LD="$LD" # Let the user override the test.
  3379. else
  3380. ac_save_IFS=$IFS; IFS=$ac_path_separator
  3381. ac_dummy="$PATH"
  3382. for ac_dir in $ac_dummy; do
  3383. IFS=$ac_save_IFS
  3384. test -z "$ac_dir" && ac_dir=.
  3385. $as_executable_p "$ac_dir/$ac_word" || continue
  3386. ac_cv_prog_LD="${ac_tool_prefix}ld"
  3387. echo "$as_me:3711: found $ac_dir/$ac_word" >&5
  3388. break
  3389. done
  3390. fi
  3391. fi
  3392. LD=$ac_cv_prog_LD
  3393. if test -n "$LD"; then
  3394. echo "$as_me:3719: result: $LD" >&5
  3395. echo "${ECHO_T}$LD" >&6
  3396. else
  3397. echo "$as_me:3722: result: no" >&5
  3398. echo "${ECHO_T}no" >&6
  3399. fi
  3400. fi
  3401. if test -z "$ac_cv_prog_LD"; then
  3402. ac_ct_LD=$LD
  3403. # Extract the first word of "ld", so it can be a program name with args.
  3404. set dummy ld; ac_word=$2
  3405. echo "$as_me:3731: checking for $ac_word" >&5
  3406. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3407. if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
  3408. echo $ECHO_N "(cached) $ECHO_C" >&6
  3409. else
  3410. if test -n "$ac_ct_LD"; then
  3411. ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
  3412. else
  3413. ac_save_IFS=$IFS; IFS=$ac_path_separator
  3414. ac_dummy="$PATH"
  3415. for ac_dir in $ac_dummy; do
  3416. IFS=$ac_save_IFS
  3417. test -z "$ac_dir" && ac_dir=.
  3418. $as_executable_p "$ac_dir/$ac_word" || continue
  3419. ac_cv_prog_ac_ct_LD="ld"
  3420. echo "$as_me:3746: found $ac_dir/$ac_word" >&5
  3421. break
  3422. done
  3423. test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
  3424. fi
  3425. fi
  3426. ac_ct_LD=$ac_cv_prog_ac_ct_LD
  3427. if test -n "$ac_ct_LD"; then
  3428. echo "$as_me:3755: result: $ac_ct_LD" >&5
  3429. echo "${ECHO_T}$ac_ct_LD" >&6
  3430. else
  3431. echo "$as_me:3758: result: no" >&5
  3432. echo "${ECHO_T}no" >&6
  3433. fi
  3434. LD=$ac_ct_LD
  3435. else
  3436. LD="$ac_cv_prog_LD"
  3437. fi
  3438. if test -n "$ac_tool_prefix"; then
  3439. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  3440. set dummy ${ac_tool_prefix}ar; ac_word=$2
  3441. echo "$as_me:3770: checking for $ac_word" >&5
  3442. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3443. if test "${ac_cv_prog_AR+set}" = set; then
  3444. echo $ECHO_N "(cached) $ECHO_C" >&6
  3445. else
  3446. if test -n "$AR"; then
  3447. ac_cv_prog_AR="$AR" # Let the user override the test.
  3448. else
  3449. ac_save_IFS=$IFS; IFS=$ac_path_separator
  3450. ac_dummy="$PATH"
  3451. for ac_dir in $ac_dummy; do
  3452. IFS=$ac_save_IFS
  3453. test -z "$ac_dir" && ac_dir=.
  3454. $as_executable_p "$ac_dir/$ac_word" || continue
  3455. ac_cv_prog_AR="${ac_tool_prefix}ar"
  3456. echo "$as_me:3785: found $ac_dir/$ac_word" >&5
  3457. break
  3458. done
  3459. fi
  3460. fi
  3461. AR=$ac_cv_prog_AR
  3462. if test -n "$AR"; then
  3463. echo "$as_me:3793: result: $AR" >&5
  3464. echo "${ECHO_T}$AR" >&6
  3465. else
  3466. echo "$as_me:3796: result: no" >&5
  3467. echo "${ECHO_T}no" >&6
  3468. fi
  3469. fi
  3470. if test -z "$ac_cv_prog_AR"; then
  3471. ac_ct_AR=$AR
  3472. # Extract the first word of "ar", so it can be a program name with args.
  3473. set dummy ar; ac_word=$2
  3474. echo "$as_me:3805: checking for $ac_word" >&5
  3475. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3476. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  3477. echo $ECHO_N "(cached) $ECHO_C" >&6
  3478. else
  3479. if test -n "$ac_ct_AR"; then
  3480. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  3481. else
  3482. ac_save_IFS=$IFS; IFS=$ac_path_separator
  3483. ac_dummy="$PATH"
  3484. for ac_dir in $ac_dummy; do
  3485. IFS=$ac_save_IFS
  3486. test -z "$ac_dir" && ac_dir=.
  3487. $as_executable_p "$ac_dir/$ac_word" || continue
  3488. ac_cv_prog_ac_ct_AR="ar"
  3489. echo "$as_me:3820: found $ac_dir/$ac_word" >&5
  3490. break
  3491. done
  3492. test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
  3493. fi
  3494. fi
  3495. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  3496. if test -n "$ac_ct_AR"; then
  3497. echo "$as_me:3829: result: $ac_ct_AR" >&5
  3498. echo "${ECHO_T}$ac_ct_AR" >&6
  3499. else
  3500. echo "$as_me:3832: result: no" >&5
  3501. echo "${ECHO_T}no" >&6
  3502. fi
  3503. AR=$ac_ct_AR
  3504. else
  3505. AR="$ac_cv_prog_AR"
  3506. fi
  3507. if test "${cf_cv_subst_AR_OPTS+set}" = set; then
  3508. echo $ECHO_N "(cached) $ECHO_C" >&6
  3509. else
  3510. echo "$as_me:3845: checking for archiver options (symbol AR_OPTS)" >&5
  3511. echo $ECHO_N "checking for archiver options (symbol AR_OPTS)... $ECHO_C" >&6
  3512. if test -z "$AR_OPTS" ; then
  3513. AR_OPTS=rv
  3514. fi
  3515. cf_cv_subst_AR_OPTS=$AR_OPTS
  3516. echo "$as_me:3854: result: $AR_OPTS" >&5
  3517. echo "${ECHO_T}$AR_OPTS" >&6
  3518. fi
  3519. echo "$as_me:3859: checking if you have specified an install-prefix" >&5
  3520. echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
  3521. # Check whether --with-install-prefix or --without-install-prefix was given.
  3522. if test "${with_install_prefix+set}" = set; then
  3523. withval="$with_install_prefix"
  3524. case "$withval" in #(vi
  3525. yes|no) #(vi
  3526. ;;
  3527. *) DESTDIR="$withval"
  3528. ;;
  3529. esac
  3530. fi;
  3531. echo "$as_me:3872: result: $DESTDIR" >&5
  3532. echo "${ECHO_T}$DESTDIR" >&6
  3533. ###############################################################################
  3534. # If we're cross-compiling, allow the user to override the tools and their
  3535. # options. The configure script is oriented toward identifying the host
  3536. # compiler, etc., but we need a build compiler to generate parts of the source.
  3537. if test "$cross_compiling" = yes ; then
  3538. # defaults that we might want to override
  3539. : ${BUILD_CFLAGS:=''}
  3540. : ${BUILD_CPPFLAGS:=''}
  3541. : ${BUILD_LDFLAGS:=''}
  3542. : ${BUILD_LIBS:=''}
  3543. : ${BUILD_EXEEXT:='$x'}
  3544. : ${BUILD_OBJEXT:='o'}
  3545. # Check whether --with-build-cc or --without-build-cc was given.
  3546. if test "${with_build_cc+set}" = set; then
  3547. withval="$with_build_cc"
  3548. BUILD_CC="$withval"
  3549. else
  3550. for ac_prog in gcc cc cl
  3551. do
  3552. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3553. set dummy $ac_prog; ac_word=$2
  3554. echo "$as_me:3900: checking for $ac_word" >&5
  3555. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3556. if test "${ac_cv_prog_BUILD_CC+set}" = set; then
  3557. echo $ECHO_N "(cached) $ECHO_C" >&6
  3558. else
  3559. if test -n "$BUILD_CC"; then
  3560. ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
  3561. else
  3562. ac_save_IFS=$IFS; IFS=$ac_path_separator
  3563. ac_dummy="$PATH"
  3564. for ac_dir in $ac_dummy; do
  3565. IFS=$ac_save_IFS
  3566. test -z "$ac_dir" && ac_dir=.
  3567. $as_executable_p "$ac_dir/$ac_word" || continue
  3568. ac_cv_prog_BUILD_CC="$ac_prog"
  3569. echo "$as_me:3915: found $ac_dir/$ac_word" >&5
  3570. break
  3571. done
  3572. fi
  3573. fi
  3574. BUILD_CC=$ac_cv_prog_BUILD_CC
  3575. if test -n "$BUILD_CC"; then
  3576. echo "$as_me:3923: result: $BUILD_CC" >&5
  3577. echo "${ECHO_T}$BUILD_CC" >&6
  3578. else
  3579. echo "$as_me:3926: result: no" >&5
  3580. echo "${ECHO_T}no" >&6
  3581. fi
  3582. test -n "$BUILD_CC" && break
  3583. done
  3584. fi;
  3585. echo "$as_me:3934: checking for native build C compiler" >&5
  3586. echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
  3587. echo "$as_me:3936: result: $BUILD_CC" >&5
  3588. echo "${ECHO_T}$BUILD_CC" >&6
  3589. echo "$as_me:3939: checking for native build C preprocessor" >&5
  3590. echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
  3591. # Check whether --with-build-cpp or --without-build-cpp was given.
  3592. if test "${with_build_cpp+set}" = set; then
  3593. withval="$with_build_cpp"
  3594. BUILD_CPP="$withval"
  3595. else
  3596. BUILD_CPP='${BUILD_CC} -E'
  3597. fi;
  3598. echo "$as_me:3949: result: $BUILD_CPP" >&5
  3599. echo "${ECHO_T}$BUILD_CPP" >&6
  3600. echo "$as_me:3952: checking for native build C flags" >&5
  3601. echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
  3602. # Check whether --with-build-cflags or --without-build-cflags was given.
  3603. if test "${with_build_cflags+set}" = set; then
  3604. withval="$with_build_cflags"
  3605. BUILD_CFLAGS="$withval"
  3606. fi;
  3607. echo "$as_me:3960: result: $BUILD_CFLAGS" >&5
  3608. echo "${ECHO_T}$BUILD_CFLAGS" >&6
  3609. echo "$as_me:3963: checking for native build C preprocessor-flags" >&5
  3610. echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
  3611. # Check whether --with-build-cppflags or --without-build-cppflags was given.
  3612. if test "${with_build_cppflags+set}" = set; then
  3613. withval="$with_build_cppflags"
  3614. BUILD_CPPFLAGS="$withval"
  3615. fi;
  3616. echo "$as_me:3971: result: $BUILD_CPPFLAGS" >&5
  3617. echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
  3618. echo "$as_me:3974: checking for native build linker-flags" >&5
  3619. echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
  3620. # Check whether --with-build-ldflags or --without-build-ldflags was given.
  3621. if test "${with_build_ldflags+set}" = set; then
  3622. withval="$with_build_ldflags"
  3623. BUILD_LDFLAGS="$withval"
  3624. fi;
  3625. echo "$as_me:3982: result: $BUILD_LDFLAGS" >&5
  3626. echo "${ECHO_T}$BUILD_LDFLAGS" >&6
  3627. echo "$as_me:3985: checking for native build linker-libraries" >&5
  3628. echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
  3629. # Check whether --with-build-libs or --without-build-libs was given.
  3630. if test "${with_build_libs+set}" = set; then
  3631. withval="$with_build_libs"
  3632. BUILD_LIBS="$withval"
  3633. fi;
  3634. echo "$as_me:3993: result: $BUILD_LIBS" >&5
  3635. echo "${ECHO_T}$BUILD_LIBS" >&6
  3636. # this assumes we're on Unix.
  3637. BUILD_EXEEXT=
  3638. BUILD_OBJEXT=o
  3639. : ${BUILD_CC:='${CC}'}
  3640. if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then
  3641. { { echo "$as_me:4003: error: Cross-build requires two compilers.
  3642. Use --with-build-cc to specify the native compiler." >&5
  3643. echo "$as_me: error: Cross-build requires two compilers.
  3644. Use --with-build-cc to specify the native compiler." >&2;}
  3645. { (exit 1); exit 1; }; }
  3646. fi
  3647. else
  3648. : ${BUILD_CC:='${CC}'}
  3649. : ${BUILD_CPP:='${CPP}'}
  3650. : ${BUILD_CFLAGS:='${CFLAGS}'}
  3651. : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
  3652. : ${BUILD_LDFLAGS:='${LDFLAGS}'}
  3653. : ${BUILD_LIBS:='${LIBS}'}
  3654. : ${BUILD_EXEEXT:='$x'}
  3655. : ${BUILD_OBJEXT:='o'}
  3656. fi
  3657. ###############################################################################
  3658. ### Options to allow the user to specify the set of libraries which are used.
  3659. ### Use "--without-normal --with-shared" to allow the default model to be
  3660. ### shared, for example.
  3661. cf_list_models=""
  3662. LIBTOOL=
  3663. # common library maintenance symbols that are convenient for libtool scripts:
  3664. LIB_CREATE='${AR} -cr'
  3665. LIB_OBJECT='${OBJECTS}'
  3666. LIB_SUFFIX=.a
  3667. LIB_PREP="$RANLIB"
  3668. # symbols used to prop libtool up to enable it to determine what it should be
  3669. # doing:
  3670. LIB_CLEAN=
  3671. LIB_COMPILE=
  3672. LIB_LINK='${CC}'
  3673. LIB_INSTALL=
  3674. LIB_UNINSTALL=
  3675. echo "$as_me:4044: checking if you want to build libraries with libtool" >&5
  3676. echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6
  3677. # Check whether --with-libtool or --without-libtool was given.
  3678. if test "${with_libtool+set}" = set; then
  3679. withval="$with_libtool"
  3680. with_libtool=$withval
  3681. else
  3682. with_libtool=no
  3683. fi;
  3684. echo "$as_me:4054: result: $with_libtool" >&5
  3685. echo "${ECHO_T}$with_libtool" >&6
  3686. if test "$with_libtool" != "no"; then
  3687. if test "$with_libtool" != "yes" ; then
  3688. if test "x$prefix" != xNONE; then
  3689. cf_path_syntax="$prefix"
  3690. else
  3691. cf_path_syntax="$ac_default_prefix"
  3692. fi
  3693. case ".$with_libtool" in #(vi
  3694. .\$\(*\)*|.\'*\'*) #(vi
  3695. ;;
  3696. ..|./*|.\\*) #(vi
  3697. ;;
  3698. .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
  3699. ;;
  3700. .\${*prefix}*) #(vi
  3701. eval with_libtool="$with_libtool"
  3702. case ".$with_libtool" in #(vi
  3703. .NONE/*)
  3704. with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
  3705. ;;
  3706. esac
  3707. ;; #(vi
  3708. .no|.NONE/*)
  3709. with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
  3710. ;;
  3711. *)
  3712. { { echo "$as_me:4085: error: expected a pathname, not \"$with_libtool\"" >&5
  3713. echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;}
  3714. { (exit 1); exit 1; }; }
  3715. ;;
  3716. esac
  3717. LIBTOOL=$with_libtool
  3718. else
  3719. # Extract the first word of "libtool", so it can be a program name with args.
  3720. set dummy libtool; ac_word=$2
  3721. echo "$as_me:4095: checking for $ac_word" >&5
  3722. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3723. if test "${ac_cv_path_LIBTOOL+set}" = set; then
  3724. echo $ECHO_N "(cached) $ECHO_C" >&6
  3725. else
  3726. case $LIBTOOL in
  3727. [\\/]* | ?:[\\/]*)
  3728. ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
  3729. ;;
  3730. *)
  3731. ac_save_IFS=$IFS; IFS=$ac_path_separator
  3732. ac_dummy="$PATH"
  3733. for ac_dir in $ac_dummy; do
  3734. IFS=$ac_save_IFS
  3735. test -z "$ac_dir" && ac_dir=.
  3736. if $as_executable_p "$ac_dir/$ac_word"; then
  3737. ac_cv_path_LIBTOOL="$ac_dir/$ac_word"
  3738. echo "$as_me:4112: found $ac_dir/$ac_word" >&5
  3739. break
  3740. fi
  3741. done
  3742. ;;
  3743. esac
  3744. fi
  3745. LIBTOOL=$ac_cv_path_LIBTOOL
  3746. if test -n "$LIBTOOL"; then
  3747. echo "$as_me:4123: result: $LIBTOOL" >&5
  3748. echo "${ECHO_T}$LIBTOOL" >&6
  3749. else
  3750. echo "$as_me:4126: result: no" >&5
  3751. echo "${ECHO_T}no" >&6
  3752. fi
  3753. fi
  3754. if test -z "$LIBTOOL" ; then
  3755. { { echo "$as_me:4132: error: Cannot find libtool" >&5
  3756. echo "$as_me: error: Cannot find libtool" >&2;}
  3757. { (exit 1); exit 1; }; }
  3758. fi
  3759. LIB_CREATE='${LIBTOOL} --mode=link ${CC} -rpath ${DESTDIR}${libdir} -version-info `cut -f1 ${srcdir}/VERSION` ${LIBTOOL_OPTS} -o'
  3760. LIB_OBJECT='${OBJECTS:.o=.lo}'
  3761. LIB_SUFFIX=.la
  3762. LIB_CLEAN='${LIBTOOL} --mode=clean'
  3763. LIB_COMPILE='${LIBTOOL} --mode=compile'
  3764. LIB_LINK='${LIBTOOL} --mode=link ${CC} ${LIBTOOL_OPTS}'
  3765. LIB_INSTALL='${LIBTOOL} --mode=install'
  3766. LIB_UNINSTALL='${LIBTOOL} --mode=uninstall'
  3767. LIB_PREP=:
  3768. # Show the version of libtool
  3769. echo "$as_me:4147: checking version of libtool" >&5
  3770. echo $ECHO_N "checking version of libtool... $ECHO_C" >&6
  3771. # Save the version in a cache variable - this is not entirely a good
  3772. # thing, but the version string from libtool is very ugly, and for
  3773. # bug reports it might be useful to have the original string.
  3774. cf_cv_libtool_version=`$LIBTOOL --version 2>&1 | sed -e '/^$/d' |sed -e '2,$d' -e 's/([^)]*)//g' -e 's/^[^1-9]*//' -e 's/[^0-9.].*//'`
  3775. echo "$as_me:4154: result: $cf_cv_libtool_version" >&5
  3776. echo "${ECHO_T}$cf_cv_libtool_version" >&6
  3777. if test -z "$cf_cv_libtool_version" ; then
  3778. { { echo "$as_me:4157: error: This is not GNU libtool" >&5
  3779. echo "$as_me: error: This is not GNU libtool" >&2;}
  3780. { (exit 1); exit 1; }; }
  3781. fi
  3782. # special hack to add --tag option for C++ compiler
  3783. case $cf_cv_libtool_version in
  3784. 1.[5-9]*|[2-9]*)
  3785. LIBTOOL_CXX="$LIBTOOL --tag=CXX"
  3786. LIBTOOL="$LIBTOOL --tag=CC"
  3787. ;;
  3788. *)
  3789. LIBTOOL_CXX="$LIBTOOL"
  3790. ;;
  3791. esac
  3792. else
  3793. LIBTOOL=""
  3794. LIBTOOL_CXX=""
  3795. fi
  3796. test -z "$LIBTOOL" && ECHO_LT=
  3797. if test "$with_libtool" != "no" ; then
  3798. cf_list_models="$cf_list_models libtool"
  3799. else
  3800. echo "$as_me:4185: checking if you want to build shared libraries" >&5
  3801. echo $ECHO_N "checking if you want to build shared libraries... $ECHO_C" >&6
  3802. # Check whether --with-shared or --without-shared was given.
  3803. if test "${with_shared+set}" = set; then
  3804. withval="$with_shared"
  3805. with_shared=$withval
  3806. else
  3807. with_shared=no
  3808. fi;
  3809. echo "$as_me:4195: result: $with_shared" >&5
  3810. echo "${ECHO_T}$with_shared" >&6
  3811. test "$with_shared" = "yes" && cf_list_models="$cf_list_models shared"
  3812. echo "$as_me:4199: checking if you want to build static libraries" >&5
  3813. echo $ECHO_N "checking if you want to build static libraries... $ECHO_C" >&6
  3814. # Check whether --with-normal or --without-normal was given.
  3815. if test "${with_normal+set}" = set; then
  3816. withval="$with_normal"
  3817. with_normal=$withval
  3818. else
  3819. with_normal=yes
  3820. fi;
  3821. echo "$as_me:4209: result: $with_normal" >&5
  3822. echo "${ECHO_T}$with_normal" >&6
  3823. test "$with_normal" = "yes" && cf_list_models="$cf_list_models normal"
  3824. echo "$as_me:4213: checking if you want to build debug libraries" >&5
  3825. echo $ECHO_N "checking if you want to build debug libraries... $ECHO_C" >&6
  3826. # Check whether --with-debug or --without-debug was given.
  3827. if test "${with_debug+set}" = set; then
  3828. withval="$with_debug"
  3829. with_debug=$withval
  3830. else
  3831. with_debug=yes
  3832. fi;
  3833. echo "$as_me:4223: result: $with_debug" >&5
  3834. echo "${ECHO_T}$with_debug" >&6
  3835. test "$with_debug" = "yes" && cf_list_models="$cf_list_models debug"
  3836. echo "$as_me:4227: checking if you want to build profiling libraries" >&5
  3837. echo $ECHO_N "checking if you want to build profiling libraries... $ECHO_C" >&6
  3838. # Check whether --with-profile or --without-profile was given.
  3839. if test "${with_profile+set}" = set; then
  3840. withval="$with_profile"
  3841. with_profile=$withval
  3842. else
  3843. with_profile=no
  3844. fi;
  3845. echo "$as_me:4237: result: $with_profile" >&5
  3846. echo "${ECHO_T}$with_profile" >&6
  3847. test "$with_profile" = "yes" && cf_list_models="$cf_list_models profile"
  3848. fi
  3849. ###############################################################################
  3850. echo "$as_me:4245: checking for specified models" >&5
  3851. echo $ECHO_N "checking for specified models... $ECHO_C" >&6
  3852. test -z "$cf_list_models" && cf_list_models=normal
  3853. test "$with_libtool" != "no" && cf_list_models=libtool
  3854. echo "$as_me:4249: result: $cf_list_models" >&5
  3855. echo "${ECHO_T}$cf_list_models" >&6
  3856. ### Use the first model as the default, and save its suffix for use in building
  3857. ### up test-applications.
  3858. echo "$as_me:4254: checking for default model" >&5
  3859. echo $ECHO_N "checking for default model... $ECHO_C" >&6
  3860. DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
  3861. echo "$as_me:4257: result: $DFT_LWR_MODEL" >&5
  3862. echo "${ECHO_T}$DFT_LWR_MODEL" >&6
  3863. DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
  3864. TICS_NAME=tic
  3865. TINFO_NAME=tinfo
  3866. LIB_NAME=ncurses
  3867. LIB_DIR=../lib
  3868. LIB_2ND=../../lib
  3869. case $cf_cv_system_name in #(vi
  3870. OS/2*|os2*) #(vi
  3871. LIB_PREFIX=''
  3872. ;;
  3873. *) LIB_PREFIX='lib'
  3874. ;;
  3875. esac
  3876. cf_prefix=$LIB_PREFIX
  3877. LIB_PREFIX=$cf_prefix
  3878. LIB_SUFFIX=
  3879. ###############################################################################
  3880. echo "$as_me:4286: checking if you want to build a separate terminfo library" >&5
  3881. echo $ECHO_N "checking if you want to build a separate terminfo library... $ECHO_C" >&6
  3882. # Check whether --with-termlib or --without-termlib was given.
  3883. if test "${with_termlib+set}" = set; then
  3884. withval="$with_termlib"
  3885. with_termlib=$withval
  3886. else
  3887. with_termlib=no
  3888. fi;
  3889. echo "$as_me:4296: result: $with_termlib" >&5
  3890. echo "${ECHO_T}$with_termlib" >&6
  3891. echo "$as_me:4299: checking if you want to build a separate tic library" >&5
  3892. echo $ECHO_N "checking if you want to build a separate tic library... $ECHO_C" >&6
  3893. # Check whether --with-ticlib or --without-ticlib was given.
  3894. if test "${with_ticlib+set}" = set; then
  3895. withval="$with_ticlib"
  3896. with_ticlib=$withval
  3897. else
  3898. with_ticlib=no
  3899. fi;
  3900. echo "$as_me:4309: result: $with_ticlib" >&5
  3901. echo "${ECHO_T}$with_ticlib" >&6
  3902. ### Checks for special libraries, must be done up-front.
  3903. SHLIB_LIST=""
  3904. echo "$as_me:4315: checking if you want to link with the GPM mouse library" >&5
  3905. echo $ECHO_N "checking if you want to link with the GPM mouse library... $ECHO_C" >&6
  3906. # Check whether --with-gpm or --without-gpm was given.
  3907. if test "${with_gpm+set}" = set; then
  3908. withval="$with_gpm"
  3909. with_gpm=$withval
  3910. else
  3911. with_gpm=maybe
  3912. fi;
  3913. echo "$as_me:4325: result: $with_gpm" >&5
  3914. echo "${ECHO_T}$with_gpm" >&6
  3915. if test "$with_gpm" != no ; then
  3916. echo "$as_me:4329: checking for gpm.h" >&5
  3917. echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6
  3918. if test "${ac_cv_header_gpm_h+set}" = set; then
  3919. echo $ECHO_N "(cached) $ECHO_C" >&6
  3920. else
  3921. cat >conftest.$ac_ext <<_ACEOF
  3922. #line 4335 "configure"
  3923. #include "confdefs.h"
  3924. #include <gpm.h>
  3925. _ACEOF
  3926. if { (eval echo "$as_me:4339: \"$ac_cpp conftest.$ac_ext\"") >&5
  3927. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3928. ac_status=$?
  3929. egrep -v '^ *\+' conftest.er1 >conftest.err
  3930. rm -f conftest.er1
  3931. cat conftest.err >&5
  3932. echo "$as_me:4345: \$? = $ac_status" >&5
  3933. (exit $ac_status); } >/dev/null; then
  3934. if test -s conftest.err; then
  3935. ac_cpp_err=$ac_c_preproc_warn_flag
  3936. else
  3937. ac_cpp_err=
  3938. fi
  3939. else
  3940. ac_cpp_err=yes
  3941. fi
  3942. if test -z "$ac_cpp_err"; then
  3943. ac_cv_header_gpm_h=yes
  3944. else
  3945. echo "$as_me: failed program was:" >&5
  3946. cat conftest.$ac_ext >&5
  3947. ac_cv_header_gpm_h=no
  3948. fi
  3949. rm -f conftest.err conftest.$ac_ext
  3950. fi
  3951. echo "$as_me:4364: result: $ac_cv_header_gpm_h" >&5
  3952. echo "${ECHO_T}$ac_cv_header_gpm_h" >&6
  3953. if test $ac_cv_header_gpm_h = yes; then
  3954. cat >>confdefs.h <<\EOF
  3955. #define HAVE_GPM_H 1
  3956. EOF
  3957. if test "$with_gpm" != yes && test "$with_gpm" != maybe ; then
  3958. test -n "$verbose" && echo " assuming we really have GPM library" 1>&6
  3959. echo "${as_me-configure}:4375: testing assuming we really have GPM library ..." 1>&5
  3960. cat >>confdefs.h <<\EOF
  3961. #define HAVE_LIBGPM 1
  3962. EOF
  3963. else
  3964. echo "$as_me:4382: checking for Gpm_Open in -lgpm" >&5
  3965. echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
  3966. if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
  3967. echo $ECHO_N "(cached) $ECHO_C" >&6
  3968. else
  3969. ac_check_lib_save_LIBS=$LIBS
  3970. LIBS="-lgpm $LIBS"
  3971. cat >conftest.$ac_ext <<_ACEOF
  3972. #line 4390 "configure"
  3973. #include "confdefs.h"
  3974. /* Override any gcc2 internal prototype to avoid an error. */
  3975. #ifdef __cplusplus
  3976. extern "C"
  3977. #endif
  3978. /* We use char because int might match the return type of a gcc2
  3979. builtin and then its argument prototype would still apply. */
  3980. char Gpm_Open ();
  3981. int
  3982. main ()
  3983. {
  3984. Gpm_Open ();
  3985. ;
  3986. return 0;
  3987. }
  3988. _ACEOF
  3989. rm -f conftest.$ac_objext conftest$ac_exeext
  3990. if { (eval echo "$as_me:4409: \"$ac_link\"") >&5
  3991. (eval $ac_link) 2>&5
  3992. ac_status=$?
  3993. echo "$as_me:4412: \$? = $ac_status" >&5
  3994. (exit $ac_status); } &&
  3995. { ac_try='test -s conftest$ac_exeext'
  3996. { (eval echo "$as_me:4415: \"$ac_try\"") >&5
  3997. (eval $ac_try) 2>&5
  3998. ac_status=$?
  3999. echo "$as_me:4418: \$? = $ac_status" >&5
  4000. (exit $ac_status); }; }; then
  4001. ac_cv_lib_gpm_Gpm_Open=yes
  4002. else
  4003. echo "$as_me: failed program was:" >&5
  4004. cat conftest.$ac_ext >&5
  4005. ac_cv_lib_gpm_Gpm_Open=no
  4006. fi
  4007. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  4008. LIBS=$ac_check_lib_save_LIBS
  4009. fi
  4010. echo "$as_me:4429: result: $ac_cv_lib_gpm_Gpm_Open" >&5
  4011. echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
  4012. if test $ac_cv_lib_gpm_Gpm_Open = yes; then
  4013. :
  4014. else
  4015. { { echo "$as_me:4435: error: Cannot link with GPM library" >&5
  4016. echo "$as_me: error: Cannot link with GPM library" >&2;}
  4017. { (exit 1); exit 1; }; }
  4018. fi
  4019. with_gpm=yes
  4020. fi
  4021. else
  4022. test "$with_gpm" != maybe && { echo "$as_me:4445: WARNING: Cannot find GPM header" >&5
  4023. echo "$as_me: WARNING: Cannot find GPM header" >&2;}
  4024. with_gpm=no
  4025. fi
  4026. fi
  4027. if test "$with_gpm" != no ; then
  4028. echo "$as_me:4454: checking if you want to load GPM dynamically" >&5
  4029. echo $ECHO_N "checking if you want to load GPM dynamically... $ECHO_C" >&6
  4030. # Check whether --with-dlsym or --without-dlsym was given.
  4031. if test "${with_dlsym+set}" = set; then
  4032. withval="$with_dlsym"
  4033. with_dlsym=$withval
  4034. else
  4035. with_dlsym=yes
  4036. fi;
  4037. echo "$as_me:4464: result: $with_dlsym" >&5
  4038. echo "${ECHO_T}$with_dlsym" >&6
  4039. if test "$with_dlsym" = yes ; then
  4040. cf_have_dlsym=no
  4041. echo "$as_me:4469: checking for dlsym" >&5
  4042. echo $ECHO_N "checking for dlsym... $ECHO_C" >&6
  4043. if test "${ac_cv_func_dlsym+set}" = set; then
  4044. echo $ECHO_N "(cached) $ECHO_C" >&6
  4045. else
  4046. cat >conftest.$ac_ext <<_ACEOF
  4047. #line 4475 "configure"
  4048. #include "confdefs.h"
  4049. /* System header to define __stub macros and hopefully few prototypes,
  4050. which can conflict with char dlsym (); below. */
  4051. #include <assert.h>
  4052. /* Override any gcc2 internal prototype to avoid an error. */
  4053. #ifdef __cplusplus
  4054. extern "C"
  4055. #endif
  4056. /* We use char because int might match the return type of a gcc2
  4057. builtin and then its argument prototype would still apply. */
  4058. char dlsym ();
  4059. char (*f) ();
  4060. int
  4061. main ()
  4062. {
  4063. /* The GNU C library defines this for functions which it implements
  4064. to always fail with ENOSYS. Some functions are actually named
  4065. something starting with __ and the normal name is an alias. */
  4066. #if defined (__stub_dlsym) || defined (__stub___dlsym)
  4067. choke me
  4068. #else
  4069. f = dlsym;
  4070. #endif
  4071. ;
  4072. return 0;
  4073. }
  4074. _ACEOF
  4075. rm -f conftest.$ac_objext conftest$ac_exeext
  4076. if { (eval echo "$as_me:4506: \"$ac_link\"") >&5
  4077. (eval $ac_link) 2>&5
  4078. ac_status=$?
  4079. echo "$as_me:4509: \$? = $ac_status" >&5
  4080. (exit $ac_status); } &&
  4081. { ac_try='test -s conftest$ac_exeext'
  4082. { (eval echo "$as_me:4512: \"$ac_try\"") >&5
  4083. (eval $ac_try) 2>&5
  4084. ac_status=$?
  4085. echo "$as_me:4515: \$? = $ac_status" >&5
  4086. (exit $ac_status); }; }; then
  4087. ac_cv_func_dlsym=yes
  4088. else
  4089. echo "$as_me: failed program was:" >&5
  4090. cat conftest.$ac_ext >&5
  4091. ac_cv_func_dlsym=no
  4092. fi
  4093. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  4094. fi
  4095. echo "$as_me:4525: result: $ac_cv_func_dlsym" >&5
  4096. echo "${ECHO_T}$ac_cv_func_dlsym" >&6
  4097. if test $ac_cv_func_dlsym = yes; then
  4098. cf_have_dlsym=yes
  4099. else
  4100. cf_have_libdl=no
  4101. echo "$as_me:4532: checking for dlsym in -ldl" >&5
  4102. echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
  4103. if test "${ac_cv_lib_dl_dlsym+set}" = set; then
  4104. echo $ECHO_N "(cached) $ECHO_C" >&6
  4105. else
  4106. ac_check_lib_save_LIBS=$LIBS
  4107. LIBS="-ldl $LIBS"
  4108. cat >conftest.$ac_ext <<_ACEOF
  4109. #line 4540 "configure"
  4110. #include "confdefs.h"
  4111. /* Override any gcc2 internal prototype to avoid an error. */
  4112. #ifdef __cplusplus
  4113. extern "C"
  4114. #endif
  4115. /* We use char because int might match the return type of a gcc2
  4116. builtin and then its argument prototype would still apply. */
  4117. char dlsym ();
  4118. int
  4119. main ()
  4120. {
  4121. dlsym ();
  4122. ;
  4123. return 0;
  4124. }
  4125. _ACEOF
  4126. rm -f conftest.$ac_objext conftest$ac_exeext
  4127. if { (eval echo "$as_me:4559: \"$ac_link\"") >&5
  4128. (eval $ac_link) 2>&5
  4129. ac_status=$?
  4130. echo "$as_me:4562: \$? = $ac_status" >&5
  4131. (exit $ac_status); } &&
  4132. { ac_try='test -s conftest$ac_exeext'
  4133. { (eval echo "$as_me:4565: \"$ac_try\"") >&5
  4134. (eval $ac_try) 2>&5
  4135. ac_status=$?
  4136. echo "$as_me:4568: \$? = $ac_status" >&5
  4137. (exit $ac_status); }; }; then
  4138. ac_cv_lib_dl_dlsym=yes
  4139. else
  4140. echo "$as_me: failed program was:" >&5
  4141. cat conftest.$ac_ext >&5
  4142. ac_cv_lib_dl_dlsym=no
  4143. fi
  4144. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  4145. LIBS=$ac_check_lib_save_LIBS
  4146. fi
  4147. echo "$as_me:4579: result: $ac_cv_lib_dl_dlsym" >&5
  4148. echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
  4149. if test $ac_cv_lib_dl_dlsym = yes; then
  4150. cf_have_dlsym=yes
  4151. cf_have_libdl=yes
  4152. fi
  4153. fi
  4154. if test "$cf_have_dlsym" = yes ; then
  4155. test "$cf_have_libdl" = yes && LIBS="-ldl $LIBS"
  4156. echo "$as_me:4592: checking whether able to link to dl*() functions" >&5
  4157. echo $ECHO_N "checking whether able to link to dl*() functions... $ECHO_C" >&6
  4158. cat >conftest.$ac_ext <<_ACEOF
  4159. #line 4595 "configure"
  4160. #include "confdefs.h"
  4161. #include <dlfcn.h>
  4162. int
  4163. main ()
  4164. {
  4165. void *obj;
  4166. if ((obj = dlopen("filename", 0)) != 0) {
  4167. if (dlsym(obj, "symbolname") == 0) {
  4168. dlclose(obj);
  4169. }
  4170. }
  4171. ;
  4172. return 0;
  4173. }
  4174. _ACEOF
  4175. rm -f conftest.$ac_objext conftest$ac_exeext
  4176. if { (eval echo "$as_me:4613: \"$ac_link\"") >&5
  4177. (eval $ac_link) 2>&5
  4178. ac_status=$?
  4179. echo "$as_me:4616: \$? = $ac_status" >&5
  4180. (exit $ac_status); } &&
  4181. { ac_try='test -s conftest$ac_exeext'
  4182. { (eval echo "$as_me:4619: \"$ac_try\"") >&5
  4183. (eval $ac_try) 2>&5
  4184. ac_status=$?
  4185. echo "$as_me:4622: \$? = $ac_status" >&5
  4186. (exit $ac_status); }; }; then
  4187. cat >>confdefs.h <<\EOF
  4188. #define HAVE_LIBDL 1
  4189. EOF
  4190. else
  4191. echo "$as_me: failed program was:" >&5
  4192. cat conftest.$ac_ext >&5
  4193. { { echo "$as_me:4633: error: Cannot link test program for libdl" >&5
  4194. echo "$as_me: error: Cannot link test program for libdl" >&2;}
  4195. { (exit 1); exit 1; }; }
  4196. fi
  4197. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  4198. echo "$as_me:4638: result: ok" >&5
  4199. echo "${ECHO_T}ok" >&6
  4200. else
  4201. { { echo "$as_me:4641: error: Cannot find dlsym function" >&5
  4202. echo "$as_me: error: Cannot find dlsym function" >&2;}
  4203. { (exit 1); exit 1; }; }
  4204. fi
  4205. if test "$with_gpm" != yes ; then
  4206. test -n "$verbose" && echo " assuming soname for gpm is $with_gpm" 1>&6
  4207. echo "${as_me-configure}:4649: testing assuming soname for gpm is $with_gpm ..." 1>&5
  4208. cf_cv_gpm_soname="$with_gpm"
  4209. else
  4210. echo "$as_me:4654: checking for soname of gpm library" >&5
  4211. echo $ECHO_N "checking for soname of gpm library... $ECHO_C" >&6
  4212. if test "${cf_cv_gpm_soname+set}" = set; then
  4213. echo $ECHO_N "(cached) $ECHO_C" >&6
  4214. else
  4215. cf_cv_gpm_soname=unknown
  4216. if test "$cross_compiling" != yes ; then
  4217. cat >conftest.$ac_ext <<CF_EOF
  4218. #include <gpm.h>
  4219. int main()
  4220. {
  4221. if (Gpm_Open(0,0)) Gpm_Close();
  4222. ${cf_cv_main_return:-return}(0);
  4223. }
  4224. CF_EOF
  4225. cf_save_LIBS="$LIBS"
  4226. LIBS="-lgpm $LIBS"
  4227. if { (eval echo "$as_me:4672: \"$ac_compile\"") >&5
  4228. (eval $ac_compile) 2>&5
  4229. ac_status=$?
  4230. echo "$as_me:4675: \$? = $ac_status" >&5
  4231. (exit $ac_status); } ; then
  4232. if { (eval echo "$as_me:4677: \"$ac_link\"") >&5
  4233. (eval $ac_link) 2>&5
  4234. ac_status=$?
  4235. echo "$as_me:4680: \$? = $ac_status" >&5
  4236. (exit $ac_status); } ; then
  4237. cf_cv_gpm_soname=`ldd conftest$ac_exeext 2>/dev/null | sed -e 's,^.*/,,' -e 's, .*$,,' | fgrep libgpm.`
  4238. test -z "$cf_cv_gpm_soname" && cf_cv_gpm_soname=unknown
  4239. fi
  4240. fi
  4241. rm -f conftest*
  4242. LIBS="$cf_save_LIBS"
  4243. fi
  4244. fi
  4245. echo "$as_me:4691: result: $cf_cv_gpm_soname" >&5
  4246. echo "${ECHO_T}$cf_cv_gpm_soname" >&6
  4247. fi
  4248. test "$cf_cv_gpm_soname" != "unknown" && cat >>confdefs.h <<EOF
  4249. #define LIBGPM_SONAME "$cf_cv_gpm_soname"
  4250. EOF
  4251. SHLIB_LIST="-ldl $SHLIB_LIST"
  4252. else
  4253. SHLIB_LIST="-lgpm $SHLIB_LIST"
  4254. fi
  4255. cat >>confdefs.h <<\EOF
  4256. #define HAVE_LIBGPM 1
  4257. EOF
  4258. echo "$as_me:4707: checking for Gpm_Wgetch in -lgpm" >&5
  4259. echo $ECHO_N "checking for Gpm_Wgetch in -lgpm... $ECHO_C" >&6
  4260. if test "${ac_cv_lib_gpm_Gpm_Wgetch+set}" = set; then
  4261. echo $ECHO_N "(cached) $ECHO_C" >&6
  4262. else
  4263. ac_check_lib_save_LIBS=$LIBS
  4264. LIBS="-lgpm $LIBS"
  4265. cat >conftest.$ac_ext <<_ACEOF
  4266. #line 4715 "configure"
  4267. #include "confdefs.h"
  4268. /* Override any gcc2 internal prototype to avoid an error. */
  4269. #ifdef __cplusplus
  4270. extern "C"
  4271. #endif
  4272. /* We use char because int might match the return type of a gcc2
  4273. builtin and then its argument prototype would still apply. */
  4274. char Gpm_Wgetch ();
  4275. int
  4276. main ()
  4277. {
  4278. Gpm_Wgetch ();
  4279. ;
  4280. return 0;
  4281. }
  4282. _ACEOF
  4283. rm -f conftest.$ac_objext conftest$ac_exeext
  4284. if { (eval echo "$as_me:4734: \"$ac_link\"") >&5
  4285. (eval $ac_link) 2>&5
  4286. ac_status=$?
  4287. echo "$as_me:4737: \$? = $ac_status" >&5
  4288. (exit $ac_status); } &&
  4289. { ac_try='test -s conftest$ac_exeext'
  4290. { (eval echo "$as_me:4740: \"$ac_try\"") >&5
  4291. (eval $ac_try) 2>&5
  4292. ac_status=$?
  4293. echo "$as_me:4743: \$? = $ac_status" >&5
  4294. (exit $ac_status); }; }; then
  4295. ac_cv_lib_gpm_Gpm_Wgetch=yes
  4296. else
  4297. echo "$as_me: failed program was:" >&5
  4298. cat conftest.$ac_ext >&5
  4299. ac_cv_lib_gpm_Gpm_Wgetch=no
  4300. fi
  4301. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  4302. LIBS=$ac_check_lib_save_LIBS
  4303. fi
  4304. echo "$as_me:4754: result: $ac_cv_lib_gpm_Gpm_Wgetch" >&5
  4305. echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Wgetch" >&6
  4306. if test $ac_cv_lib_gpm_Gpm_Wgetch = yes; then
  4307. echo "$as_me:4758: checking if GPM is weakly bound to curses library" >&5
  4308. echo $ECHO_N "checking if GPM is weakly bound to curses library... $ECHO_C" >&6
  4309. if test "${cf_cv_check_gpm_wgetch+set}" = set; then
  4310. echo $ECHO_N "(cached) $ECHO_C" >&6
  4311. else
  4312. cf_cv_check_gpm_wgetch=unknown
  4313. if test "$cross_compiling" != yes ; then
  4314. cat >conftest.$ac_ext <<CF_EOF
  4315. #include <gpm.h>
  4316. int main()
  4317. {
  4318. Gpm_Wgetch();
  4319. ${cf_cv_main_return:-return}(0);
  4320. }
  4321. CF_EOF
  4322. cf_save_LIBS="$LIBS"
  4323. # This only works if we can look at the symbol table. If a shared
  4324. # library is stripped for install, we cannot use that. So we're forced
  4325. # to rely on the static library, noting that some packagers may not
  4326. # include it.
  4327. LIBS="-static -lgpm -dynamic $LIBS"
  4328. if { (eval echo "$as_me:4782: \"$ac_compile\"") >&5
  4329. (eval $ac_compile) 2>&5
  4330. ac_status=$?
  4331. echo "$as_me:4785: \$? = $ac_status" >&5
  4332. (exit $ac_status); } ; then
  4333. if { (eval echo "$as_me:4787: \"$ac_link\"") >&5
  4334. (eval $ac_link) 2>&5
  4335. ac_status=$?
  4336. echo "$as_me:4790: \$? = $ac_status" >&5
  4337. (exit $ac_status); } ; then
  4338. cf_cv_check_gpm_wgetch=`nm conftest$ac_exeext | egrep '\<wgetch\>' | egrep '\<[vVwW]\>'`
  4339. test -n "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=yes
  4340. test -z "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=no
  4341. fi
  4342. fi
  4343. rm -f conftest*
  4344. LIBS="$cf_save_LIBS"
  4345. fi
  4346. fi
  4347. echo "$as_me:4802: result: $cf_cv_check_gpm_wgetch" >&5
  4348. echo "${ECHO_T}$cf_cv_check_gpm_wgetch" >&6
  4349. if test "$cf_cv_check_gpm_wgetch" != yes ; then
  4350. { echo "$as_me:4806: WARNING: GPM library is already linked with curses - read the FAQ" >&5
  4351. echo "$as_me: WARNING: GPM library is already linked with curses - read the FAQ" >&2;}
  4352. fi
  4353. fi
  4354. fi
  4355. # not everyone has "test -c"
  4356. if test -c /dev/sysmouse 2>/dev/null ; then
  4357. echo "$as_me:4816: checking if you want to use sysmouse" >&5
  4358. echo $ECHO_N "checking if you want to use sysmouse... $ECHO_C" >&6
  4359. # Check whether --with-sysmouse or --without-sysmouse was given.
  4360. if test "${with_sysmouse+set}" = set; then
  4361. withval="$with_sysmouse"
  4362. cf_with_sysmouse=$withval
  4363. else
  4364. cf_with_sysmouse=maybe
  4365. fi;
  4366. if test "$cf_with_sysmouse" != no ; then
  4367. cat >conftest.$ac_ext <<_ACEOF
  4368. #line 4828 "configure"
  4369. #include "confdefs.h"
  4370. #include <osreldate.h>
  4371. #if (__FreeBSD_version >= 400017)
  4372. #include <sys/consio.h>
  4373. #include <sys/fbio.h>
  4374. #else
  4375. #include <machine/console.h>
  4376. #endif
  4377. int
  4378. main ()
  4379. {
  4380. struct mouse_info the_mouse;
  4381. ioctl(0, CONS_MOUSECTL, &the_mouse);
  4382. ;
  4383. return 0;
  4384. }
  4385. _ACEOF
  4386. rm -f conftest.$ac_objext
  4387. if { (eval echo "$as_me:4851: \"$ac_compile\"") >&5
  4388. (eval $ac_compile) 2>&5
  4389. ac_status=$?
  4390. echo "$as_me:4854: \$? = $ac_status" >&5
  4391. (exit $ac_status); } &&
  4392. { ac_try='test -s conftest.$ac_objext'
  4393. { (eval echo "$as_me:4857: \"$ac_try\"") >&5
  4394. (eval $ac_try) 2>&5
  4395. ac_status=$?
  4396. echo "$as_me:4860: \$? = $ac_status" >&5
  4397. (exit $ac_status); }; }; then
  4398. cf_with_sysmouse=yes
  4399. else
  4400. echo "$as_me: failed program was:" >&5
  4401. cat conftest.$ac_ext >&5
  4402. cf_with_sysmouse=no
  4403. fi
  4404. rm -f conftest.$ac_objext conftest.$ac_ext
  4405. fi
  4406. echo "$as_me:4870: result: $cf_with_sysmouse" >&5
  4407. echo "${ECHO_T}$cf_with_sysmouse" >&6
  4408. test "$cf_with_sysmouse" = yes && cat >>confdefs.h <<\EOF
  4409. #define USE_SYSMOUSE 1
  4410. EOF
  4411. fi
  4412. if test X"$CC_G_OPT" = X"" ; then
  4413. CC_G_OPT='-g'
  4414. test -n "$GCC" && test "${ac_cv_prog_cc_g}" != yes && CC_G_OPT=''
  4415. fi
  4416. if test X"$CXX_G_OPT" = X"" ; then
  4417. CXX_G_OPT='-g'
  4418. test -n "$GXX" && test "${ac_cv_prog_cxx_g}" != yes && CXX_G_OPT=''
  4419. fi
  4420. echo "$as_me:4888: checking for default loader flags" >&5
  4421. echo $ECHO_N "checking for default loader flags... $ECHO_C" >&6
  4422. case $DFT_LWR_MODEL in
  4423. libtool) LD_MODEL='' ;;
  4424. normal) LD_MODEL='' ;;
  4425. debug) LD_MODEL=$CC_G_OPT ;;
  4426. profile) LD_MODEL='-pg';;
  4427. shared) LD_MODEL='' ;;
  4428. esac
  4429. echo "$as_me:4897: result: $LD_MODEL" >&5
  4430. echo "${ECHO_T}$LD_MODEL" >&6
  4431. case $DFT_LWR_MODEL in
  4432. shared)
  4433. echo "$as_me:4903: checking if rpath option should be used" >&5
  4434. echo $ECHO_N "checking if rpath option should be used... $ECHO_C" >&6
  4435. # Check whether --enable-rpath or --disable-rpath was given.
  4436. if test "${enable_rpath+set}" = set; then
  4437. enableval="$enable_rpath"
  4438. cf_cv_ld_rpath=$enableval
  4439. else
  4440. cf_cv_ld_rpath=no
  4441. fi;
  4442. echo "$as_me:4913: result: $cf_cv_ld_rpath" >&5
  4443. echo "${ECHO_T}$cf_cv_ld_rpath" >&6
  4444. echo "$as_me:4916: checking if shared libraries should be relinked during install" >&5
  4445. echo $ECHO_N "checking if shared libraries should be relinked during install... $ECHO_C" >&6
  4446. # Check whether --enable-relink or --disable-relink was given.
  4447. if test "${enable_relink+set}" = set; then
  4448. enableval="$enable_relink"
  4449. cf_cv_do_relink=$enableval
  4450. else
  4451. cf_cv_do_relink=yes
  4452. fi;
  4453. echo "$as_me:4926: result: $cf_cv_do_relink" >&5
  4454. echo "${ECHO_T}$cf_cv_do_relink" >&6
  4455. ;;
  4456. esac
  4457. LOCAL_LDFLAGS=
  4458. LOCAL_LDFLAGS2=
  4459. LD_SHARED_OPTS=
  4460. INSTALL_LIB="-m 644"
  4461. cf_cv_do_symlinks=no
  4462. echo "$as_me:4938: checking if release/abi version should be used for shared libs" >&5
  4463. echo $ECHO_N "checking if release/abi version should be used for shared libs... $ECHO_C" >&6
  4464. # Check whether --with-shlib-version or --without-shlib-version was given.
  4465. if test "${with_shlib_version+set}" = set; then
  4466. withval="$with_shlib_version"
  4467. test -z "$withval" && withval=auto
  4468. case $withval in #(vi
  4469. yes) #(vi
  4470. cf_cv_shlib_version=auto
  4471. ;;
  4472. rel|abi|auto|no) #(vi
  4473. cf_cv_shlib_version=$withval
  4474. ;;
  4475. *)
  4476. { { echo "$as_me:4953: error: option value must be one of: rel, abi, auto or no" >&5
  4477. echo "$as_me: error: option value must be one of: rel, abi, auto or no" >&2;}
  4478. { (exit 1); exit 1; }; }
  4479. ;;
  4480. esac
  4481. else
  4482. cf_cv_shlib_version=auto
  4483. fi;
  4484. echo "$as_me:4962: result: $cf_cv_shlib_version" >&5
  4485. echo "${ECHO_T}$cf_cv_shlib_version" >&6
  4486. cf_cv_rm_so_locs=no
  4487. # Some less-capable ports of gcc support only -fpic
  4488. CC_SHARED_OPTS=
  4489. if test "$GCC" = yes
  4490. then
  4491. echo "$as_me:4971: checking which $CC option to use" >&5
  4492. echo $ECHO_N "checking which $CC option to use... $ECHO_C" >&6
  4493. cf_save_CFLAGS="$CFLAGS"
  4494. for CC_SHARED_OPTS in -fPIC -fpic ''
  4495. do
  4496. CFLAGS="$cf_save_CFLAGS $CC_SHARED_OPTS"
  4497. cat >conftest.$ac_ext <<_ACEOF
  4498. #line 4978 "configure"
  4499. #include "confdefs.h"
  4500. #include <stdio.h>
  4501. int
  4502. main ()
  4503. {
  4504. int x = 1
  4505. ;
  4506. return 0;
  4507. }
  4508. _ACEOF
  4509. rm -f conftest.$ac_objext
  4510. if { (eval echo "$as_me:4990: \"$ac_compile\"") >&5
  4511. (eval $ac_compile) 2>&5
  4512. ac_status=$?
  4513. echo "$as_me:4993: \$? = $ac_status" >&5
  4514. (exit $ac_status); } &&
  4515. { ac_try='test -s conftest.$ac_objext'
  4516. { (eval echo "$as_me:4996: \"$ac_try\"") >&5
  4517. (eval $ac_try) 2>&5
  4518. ac_status=$?
  4519. echo "$as_me:4999: \$? = $ac_status" >&5
  4520. (exit $ac_status); }; }; then
  4521. break
  4522. else
  4523. echo "$as_me: failed program was:" >&5
  4524. cat conftest.$ac_ext >&5
  4525. fi
  4526. rm -f conftest.$ac_objext conftest.$ac_ext
  4527. done
  4528. echo "$as_me:5008: result: $CC_SHARED_OPTS" >&5
  4529. echo "${ECHO_T}$CC_SHARED_OPTS" >&6
  4530. CFLAGS="$cf_save_CFLAGS"
  4531. fi
  4532. cf_cv_shlib_version_infix=no
  4533. case $cf_cv_system_name in
  4534. beos*)
  4535. MK_SHARED_LIB='${CC} ${CFLAGS} -o $@ -Xlinker -soname=`basename $@` -nostart -e 0'
  4536. ;;
  4537. cygwin*)
  4538. CC_SHARED_OPTS=
  4539. MK_SHARED_LIB='sh ../mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
  4540. cf_cv_shlib_version=cygdll
  4541. cf_cv_shlib_version_infix=cygdll
  4542. cat >mk_shared_lib.sh <<-CF_EOF
  4543. #!/bin/sh
  4544. SHARED_LIB=\$1
  4545. IMPORT_LIB=\`echo "\$1" | sed -e 's/cyg/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
  4546. shift
  4547. cat <<-EOF
  4548. Linking shared library
  4549. ** SHARED_LIB \$SHARED_LIB
  4550. ** IMPORT_LIB \$IMPORT_LIB
  4551. EOF
  4552. exec \$* -shared -Wl,--out-implib=../lib/\${IMPORT_LIB} -Wl,--export-all-symbols -o ../lib/\${SHARED_LIB}
  4553. CF_EOF
  4554. chmod +x mk_shared_lib.sh
  4555. ;;
  4556. darwin*)
  4557. EXTRA_CFLAGS="-no-cpp-precomp"
  4558. CC_SHARED_OPTS="-dynamic"
  4559. MK_SHARED_LIB='${CC} ${CFLAGS} -dynamiclib -install_name ${libdir}/`basename $@` -compatibility_version ${ABI_VERSION} -current_version ${ABI_VERSION} -o $@'
  4560. test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=abi
  4561. cf_cv_shlib_version_infix=yes
  4562. echo "$as_me:5044: checking if ld -search_paths_first works" >&5
  4563. echo $ECHO_N "checking if ld -search_paths_first works... $ECHO_C" >&6
  4564. if test "${cf_cv_ldflags_search_paths_first+set}" = set; then
  4565. echo $ECHO_N "(cached) $ECHO_C" >&6
  4566. else
  4567. cf_save_LDFLAGS=$LDFLAGS
  4568. LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
  4569. cat >conftest.$ac_ext <<_ACEOF
  4570. #line 5053 "configure"
  4571. #include "confdefs.h"
  4572. int
  4573. main ()
  4574. {
  4575. int i;
  4576. ;
  4577. return 0;
  4578. }
  4579. _ACEOF
  4580. rm -f conftest.$ac_objext conftest$ac_exeext
  4581. if { (eval echo "$as_me:5065: \"$ac_link\"") >&5
  4582. (eval $ac_link) 2>&5
  4583. ac_status=$?
  4584. echo "$as_me:5068: \$? = $ac_status" >&5
  4585. (exit $ac_status); } &&
  4586. { ac_try='test -s conftest$ac_exeext'
  4587. { (eval echo "$as_me:5071: \"$ac_try\"") >&5
  4588. (eval $ac_try) 2>&5
  4589. ac_status=$?
  4590. echo "$as_me:5074: \$? = $ac_status" >&5
  4591. (exit $ac_status); }; }; then
  4592. cf_cv_ldflags_search_paths_first=yes
  4593. else
  4594. echo "$as_me: failed program was:" >&5
  4595. cat conftest.$ac_ext >&5
  4596. cf_cv_ldflags_search_paths_first=no
  4597. fi
  4598. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  4599. LDFLAGS=$cf_save_LDFLAGS
  4600. fi
  4601. echo "$as_me:5085: result: $cf_cv_ldflags_search_paths_first" >&5
  4602. echo "${ECHO_T}$cf_cv_ldflags_search_paths_first" >&6
  4603. if test $cf_cv_ldflags_search_paths_first = yes; then
  4604. LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
  4605. fi
  4606. ;;
  4607. hpux*)
  4608. # (tested with gcc 2.7.2 -- I don't have c89)
  4609. if test "$GCC" = yes; then
  4610. LD_SHARED_OPTS='-Xlinker +b -Xlinker ${libdir}'
  4611. else
  4612. CC_SHARED_OPTS='+Z'
  4613. LD_SHARED_OPTS='-Wl,+b,${libdir}'
  4614. fi
  4615. MK_SHARED_LIB='${LD} +b ${libdir} -b -o $@'
  4616. # HP-UX shared libraries must be executable, and should be
  4617. # readonly to exploit a quirk in the memory manager.
  4618. INSTALL_LIB="-m 555"
  4619. ;;
  4620. irix*)
  4621. if test "$cf_cv_ld_rpath" = yes ; then
  4622. if test "$GCC" = yes; then
  4623. cf_ld_rpath_opt="-Wl,-rpath,"
  4624. EXTRA_LDFLAGS="-Wl,-rpath,\${libdir} $EXTRA_LDFLAGS"
  4625. else
  4626. cf_ld_rpath_opt="-rpath "
  4627. EXTRA_LDFLAGS="-rpath \${libdir} $EXTRA_LDFLAGS"
  4628. fi
  4629. fi
  4630. # tested with IRIX 5.2 and 'cc'.
  4631. if test "$GCC" != yes; then
  4632. CC_SHARED_OPTS='-KPIC'
  4633. MK_SHARED_LIB='${CC} -shared -rdata_shared -soname `basename $@` -o $@'
  4634. else
  4635. MK_SHARED_LIB='${CC} -shared -Wl,-soname,`basename $@` -o $@'
  4636. fi
  4637. cf_cv_rm_so_locs=yes
  4638. ;;
  4639. linux*|gnu*|k*bsd*-gnu)
  4640. if test "$DFT_LWR_MODEL" = "shared" ; then
  4641. LOCAL_LDFLAGS="-Wl,-rpath,\$(LOCAL_LIBDIR)"
  4642. LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
  4643. fi
  4644. if test "$cf_cv_ld_rpath" = yes ; then
  4645. cf_ld_rpath_opt="-Wl,-rpath,"
  4646. EXTRA_LDFLAGS="-Wl,-rpath,\${libdir} $EXTRA_LDFLAGS"
  4647. fi
  4648. test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
  4649. if test "$cf_cv_shlib_version" = rel; then
  4650. cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
  4651. else
  4652. cf_cv_shared_soname='`basename $@`'
  4653. fi
  4654. MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
  4655. ;;
  4656. openbsd[2-9].*)
  4657. if test "$DFT_LWR_MODEL" = "shared" ; then
  4658. LOCAL_LDFLAGS="-Wl,-rpath,\$(LOCAL_LIBDIR)"
  4659. LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
  4660. fi
  4661. if test "$cf_cv_ld_rpath" = yes ; then
  4662. cf_ld_rpath_opt="-Wl,-rpath,"
  4663. EXTRA_LDFLAGS="-Wl,-rpath,\${libdir} $EXTRA_LDFLAGS"
  4664. fi
  4665. CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
  4666. test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
  4667. if test "$cf_cv_shlib_version" = rel; then
  4668. cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
  4669. else
  4670. cf_cv_shared_soname='`basename $@`'
  4671. fi
  4672. MK_SHARED_LIB='${CC} ${CFLAGS} -Wl,-Bshareable,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
  4673. ;;
  4674. nto-qnx*|openbsd*|freebsd[12].*)
  4675. CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
  4676. MK_SHARED_LIB='${LD} -Bshareable -o $@'
  4677. test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
  4678. ;;
  4679. freebsd*)
  4680. CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
  4681. if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_ld_rpath" = yes ; then
  4682. LOCAL_LDFLAGS="-rpath \$(LOCAL_LIBDIR)"
  4683. LOCAL_LDFLAGS2="-rpath \${libdir} $LOCAL_LDFLAGS"
  4684. cf_ld_rpath_opt="-rpath "
  4685. EXTRA_LDFLAGS="-rpath \${libdir} $EXTRA_LDFLAGS"
  4686. fi
  4687. test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
  4688. if test "$cf_cv_shlib_version" = rel; then
  4689. cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
  4690. else
  4691. cf_cv_shared_soname='`basename $@`'
  4692. fi
  4693. MK_SHARED_LIB='${LD} -Bshareable -soname=`basename $@` -o $@'
  4694. ;;
  4695. netbsd*)
  4696. CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
  4697. test "$cf_cv_ld_rpath" = yes && cf_ld_rpath_opt="-Wl,-rpath,"
  4698. if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_ld_rpath" = yes ; then
  4699. LOCAL_LDFLAGS="-Wl,-rpath,\$(LOCAL_LIBDIR)"
  4700. LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
  4701. EXTRA_LDFLAGS="-Wl,-rpath,\${libdir} $EXTRA_LDFLAGS"
  4702. if test "$cf_cv_shlib_version" = auto; then
  4703. if test -f /usr/libexec/ld.elf_so; then
  4704. cf_cv_shlib_version=abi
  4705. else
  4706. cf_cv_shlib_version=rel
  4707. fi
  4708. fi
  4709. test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
  4710. if test "$cf_cv_shlib_version" = rel; then
  4711. cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
  4712. else
  4713. cf_cv_shared_soname='`basename $@`'
  4714. fi
  4715. MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname' -o $@'
  4716. else
  4717. MK_SHARED_LIB='${LD} -Bshareable -o $@'
  4718. fi
  4719. ;;
  4720. osf*|mls+*)
  4721. # tested with OSF/1 V3.2 and 'cc'
  4722. # tested with OSF/1 V3.2 and gcc 2.6.3 (but the c++ demo didn't
  4723. # link with shared libs).
  4724. MK_SHARED_LIB='${LD} -set_version ${REL_VERSION}:${ABI_VERSION} -expect_unresolved "*" -shared -soname `basename $@`'
  4725. case $host_os in
  4726. osf4*)
  4727. MK_SHARED_LIB="${MK_SHARED_LIB} -msym"
  4728. ;;
  4729. esac
  4730. MK_SHARED_LIB="${MK_SHARED_LIB}"' -o $@'
  4731. if test "$DFT_LWR_MODEL" = "shared" ; then
  4732. LOCAL_LDFLAGS="-Wl,-rpath,\$(LOCAL_LIBDIR)"
  4733. LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
  4734. fi
  4735. if test "$cf_cv_ld_rpath" = yes ; then
  4736. cf_ld_rpath_opt="-rpath"
  4737. # EXTRA_LDFLAGS="$LOCAL_LDFLAGS $EXTRA_LDFLAGS"
  4738. fi
  4739. cf_cv_rm_so_locs=yes
  4740. ;;
  4741. sco3.2v5*) # (also uw2* and UW7) hops 13-Apr-98
  4742. # tested with osr5.0.5
  4743. if test "$GCC" != yes; then
  4744. CC_SHARED_OPTS='-belf -KPIC'
  4745. fi
  4746. MK_SHARED_LIB='${LD} -dy -G -h `basename $@ .${REL_VERSION}`.${ABI_VERSION} -o $@'
  4747. if test "$cf_cv_ld_rpath" = yes ; then
  4748. # only way is to set LD_RUN_PATH but no switch for it
  4749. RUN_PATH=$libdir
  4750. fi
  4751. test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
  4752. LINK_PROGS='LD_RUN_PATH=${libdir}'
  4753. LINK_TESTS='Pwd=`pwd`;LD_RUN_PATH=`dirname $${Pwd}`/lib'
  4754. ;;
  4755. sunos4*)
  4756. # tested with SunOS 4.1.1 and gcc 2.7.0
  4757. if test "$GCC" != yes; then
  4758. CC_SHARED_OPTS='-KPIC'
  4759. fi
  4760. MK_SHARED_LIB='${LD} -assert pure-text -o $@'
  4761. test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
  4762. ;;
  4763. solaris2*)
  4764. # tested with SunOS 5.5.1 (solaris 2.5.1) and gcc 2.7.2
  4765. # tested with SunOS 5.10 (solaris 10) and gcc 3.4.3
  4766. if test "$DFT_LWR_MODEL" = "shared" ; then
  4767. LOCAL_LDFLAGS="-R \$(LOCAL_LIBDIR):\${libdir}"
  4768. LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
  4769. fi
  4770. if test "$cf_cv_ld_rpath" = yes ; then
  4771. cf_ld_rpath_opt="-R"
  4772. EXTRA_LDFLAGS="$LOCAL_LDFLAGS $EXTRA_LDFLAGS"
  4773. fi
  4774. test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
  4775. if test "$cf_cv_shlib_version" = rel; then
  4776. cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
  4777. else
  4778. cf_cv_shared_soname='`basename $@`'
  4779. fi
  4780. if test "$GCC" != yes; then
  4781. CC_SHARED_OPTS='-xcode=pic32'
  4782. MK_SHARED_LIB='${CC} -dy -G -h '$cf_cv_shared_soname' -o $@'
  4783. else
  4784. MK_SHARED_LIB='${CC} -shared -dy -G -h '$cf_cv_shared_soname' -o $@'
  4785. fi
  4786. ;;
  4787. sysv5uw7*|unix_sv*)
  4788. # tested with UnixWare 7.1.0 (gcc 2.95.2 and cc)
  4789. if test "$GCC" != yes; then
  4790. CC_SHARED_OPTS='-KPIC'
  4791. fi
  4792. MK_SHARED_LIB='${LD} -d y -G -o $@'
  4793. ;;
  4794. *)
  4795. CC_SHARED_OPTS='unknown'
  4796. MK_SHARED_LIB='echo unknown'
  4797. ;;
  4798. esac
  4799. # This works if the last tokens in $MK_SHARED_LIB are the -o target.
  4800. case "$cf_cv_shlib_version" in #(vi
  4801. rel|abi)
  4802. case "$MK_SHARED_LIB" in #(vi
  4803. *'-o $@')
  4804. test "$cf_cv_do_symlinks" = no && cf_cv_do_symlinks=yes
  4805. ;;
  4806. *)
  4807. { echo "$as_me:5302: WARNING: ignored --with-shlib-version" >&5
  4808. echo "$as_me: WARNING: ignored --with-shlib-version" >&2;}
  4809. ;;
  4810. esac
  4811. ;;
  4812. esac
  4813. if test -n "$cf_ld_rpath_opt" ; then
  4814. echo "$as_me:5310: checking if we need a space after rpath option" >&5
  4815. echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
  4816. cf_save_LIBS="$LIBS"
  4817. LIBS="$LIBS ${cf_ld_rpath_opt}$libdir"
  4818. cat >conftest.$ac_ext <<_ACEOF
  4819. #line 5315 "configure"
  4820. #include "confdefs.h"
  4821. int
  4822. main ()
  4823. {
  4824. ;
  4825. return 0;
  4826. }
  4827. _ACEOF
  4828. rm -f conftest.$ac_objext conftest$ac_exeext
  4829. if { (eval echo "$as_me:5327: \"$ac_link\"") >&5
  4830. (eval $ac_link) 2>&5
  4831. ac_status=$?
  4832. echo "$as_me:5330: \$? = $ac_status" >&5
  4833. (exit $ac_status); } &&
  4834. { ac_try='test -s conftest$ac_exeext'
  4835. { (eval echo "$as_me:5333: \"$ac_try\"") >&5
  4836. (eval $ac_try) 2>&5
  4837. ac_status=$?
  4838. echo "$as_me:5336: \$? = $ac_status" >&5
  4839. (exit $ac_status); }; }; then
  4840. cf_rpath_space=no
  4841. else
  4842. echo "$as_me: failed program was:" >&5
  4843. cat conftest.$ac_ext >&5
  4844. cf_rpath_space=yes
  4845. fi
  4846. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  4847. LIBS="$cf_save_LIBS"
  4848. echo "$as_me:5346: result: $cf_rpath_space" >&5
  4849. echo "${ECHO_T}$cf_rpath_space" >&6
  4850. test "$cf_rpath_space" = yes && cf_ld_rpath_opt="$cf_ld_rpath_opt "
  4851. MK_SHARED_LIB="$MK_SHARED_LIB $cf_ld_rpath_opt\${libdir}"
  4852. fi
  4853. if test "$CC_SHARED_OPTS" = "unknown"; then
  4854. for model in $cf_list_models; do
  4855. if test "$model" = "shared"; then
  4856. { { echo "$as_me:5355: error: Shared libraries are not supported in this version" >&5
  4857. echo "$as_me: error: Shared libraries are not supported in this version" >&2;}
  4858. { (exit 1); exit 1; }; }
  4859. fi
  4860. done
  4861. fi
  4862. ###############################################################################
  4863. ### use option --disable-overwrite to leave out the link to -lcurses
  4864. echo "$as_me:5365: checking if you wish to install ncurses overwriting curses" >&5
  4865. echo $ECHO_N "checking if you wish to install ncurses overwriting curses... $ECHO_C" >&6
  4866. # Check whether --enable-overwrite or --disable-overwrite was given.
  4867. if test "${enable_overwrite+set}" = set; then
  4868. enableval="$enable_overwrite"
  4869. with_overwrite=$enableval
  4870. else
  4871. if test "$prefix" = "/usr" ; then with_overwrite=yes; else with_overwrite=no; fi
  4872. fi;
  4873. echo "$as_me:5375: result: $with_overwrite" >&5
  4874. echo "${ECHO_T}$with_overwrite" >&6
  4875. echo "$as_me:5378: checking if external terminfo-database is used" >&5
  4876. echo $ECHO_N "checking if external terminfo-database is used... $ECHO_C" >&6
  4877. # Check whether --enable-database or --disable-database was given.
  4878. if test "${enable_database+set}" = set; then
  4879. enableval="$enable_database"
  4880. use_database=$enableval
  4881. else
  4882. use_database=yes
  4883. fi;
  4884. echo "$as_me:5388: result: $use_database" >&5
  4885. echo "${ECHO_T}$use_database" >&6
  4886. case $host_os in #(vi
  4887. os2*) #(vi
  4888. TERMINFO_SRC='${top_srcdir}/misc/emx.src'
  4889. ;;
  4890. *) #(vi
  4891. TERMINFO_SRC='${top_srcdir}/misc/terminfo.src'
  4892. ;;
  4893. esac
  4894. case $cf_cv_system_name in
  4895. os2*) PATHSEP=';' ;;
  4896. *) PATHSEP=':' ;;
  4897. esac
  4898. if test "$use_database" != no ; then
  4899. cat >>confdefs.h <<\EOF
  4900. #define USE_DATABASE 1
  4901. EOF
  4902. echo "$as_me:5410: checking which terminfo source-file will be installed" >&5
  4903. echo $ECHO_N "checking which terminfo source-file will be installed... $ECHO_C" >&6
  4904. # Check whether --enable-database or --disable-database was given.
  4905. if test "${enable_database+set}" = set; then
  4906. enableval="$enable_database"
  4907. TERMINFO_SRC=$withval
  4908. fi;
  4909. echo "$as_me:5418: result: $TERMINFO_SRC" >&5
  4910. echo "${ECHO_T}$TERMINFO_SRC" >&6
  4911. echo "$as_me:5421: checking whether to use hashed database instead of directory/tree" >&5
  4912. echo $ECHO_N "checking whether to use hashed database instead of directory/tree... $ECHO_C" >&6
  4913. # Check whether --with-hashed-db or --without-hashed-db was given.
  4914. if test "${with_hashed_db+set}" = set; then
  4915. withval="$with_hashed_db"
  4916. else
  4917. with_hashed_db=no
  4918. fi;
  4919. echo "$as_me:5431: result: $with_hashed_db" >&5
  4920. echo "${ECHO_T}$with_hashed_db" >&6
  4921. else
  4922. with_hashed_db=no
  4923. fi
  4924. echo "$as_me:5437: checking for list of fallback descriptions" >&5
  4925. echo $ECHO_N "checking for list of fallback descriptions... $ECHO_C" >&6
  4926. # Check whether --with-fallbacks or --without-fallbacks was given.
  4927. if test "${with_fallbacks+set}" = set; then
  4928. withval="$with_fallbacks"
  4929. with_fallback=$withval
  4930. else
  4931. with_fallback=
  4932. fi;
  4933. echo "$as_me:5447: result: $with_fallback" >&5
  4934. echo "${ECHO_T}$with_fallback" >&6
  4935. FALLBACK_LIST=`echo "$with_fallback" | sed -e 's/,/ /g'`
  4936. echo "$as_me:5451: checking if you want modern xterm or antique" >&5
  4937. echo $ECHO_N "checking if you want modern xterm or antique... $ECHO_C" >&6
  4938. # Check whether --with-xterm-new or --without-xterm-new was given.
  4939. if test "${with_xterm_new+set}" = set; then
  4940. withval="$with_xterm_new"
  4941. with_xterm_new=$withval
  4942. else
  4943. with_xterm_new=yes
  4944. fi;
  4945. case $with_xterm_new in
  4946. no) with_xterm_new=xterm-old;;
  4947. *) with_xterm_new=xterm-new;;
  4948. esac
  4949. echo "$as_me:5465: result: $with_xterm_new" >&5
  4950. echo "${ECHO_T}$with_xterm_new" >&6
  4951. WHICH_XTERM=$with_xterm_new
  4952. MAKE_TERMINFO=
  4953. if test "$use_database" = no ; then
  4954. TERMINFO="${datadir}/terminfo"
  4955. MAKE_TERMINFO="#"
  4956. else
  4957. echo "$as_me:5475: checking for list of terminfo directories" >&5
  4958. echo $ECHO_N "checking for list of terminfo directories... $ECHO_C" >&6
  4959. # Check whether --with-terminfo-dirs or --without-terminfo-dirs was given.
  4960. if test "${with_terminfo_dirs+set}" = set; then
  4961. withval="$with_terminfo_dirs"
  4962. else
  4963. withval=${TERMINFO_DIRS-${datadir}/terminfo}
  4964. fi;
  4965. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATHSEP}"
  4966. cf_dst_path=
  4967. for cf_src_path in $withval
  4968. do
  4969. if test "x$prefix" != xNONE; then
  4970. cf_path_syntax="$prefix"
  4971. else
  4972. cf_path_syntax="$ac_default_prefix"
  4973. fi
  4974. case ".$cf_src_path" in #(vi
  4975. .\$\(*\)*|.\'*\'*) #(vi
  4976. ;;
  4977. ..|./*|.\\*) #(vi
  4978. ;;
  4979. .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
  4980. ;;
  4981. .\${*prefix}*) #(vi
  4982. eval cf_src_path="$cf_src_path"
  4983. case ".$cf_src_path" in #(vi
  4984. .NONE/*)
  4985. cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
  4986. ;;
  4987. esac
  4988. ;; #(vi
  4989. .no|.NONE/*)
  4990. cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
  4991. ;;
  4992. *)
  4993. { { echo "$as_me:5515: error: expected a pathname, not \"$cf_src_path\"" >&5
  4994. echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
  4995. { (exit 1); exit 1; }; }
  4996. ;;
  4997. esac
  4998. test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}:"
  4999. cf_dst_path="${cf_dst_path}${cf_src_path}"
  5000. done
  5001. IFS="$ac_save_ifs"
  5002. eval 'TERMINFO_DIRS="$cf_dst_path"'
  5003. echo "$as_me:5528: result: $TERMINFO_DIRS" >&5
  5004. echo "${ECHO_T}$TERMINFO_DIRS" >&6
  5005. test -n "$TERMINFO_DIRS" && cat >>confdefs.h <<EOF
  5006. #define TERMINFO_DIRS "$TERMINFO_DIRS"
  5007. EOF
  5008. echo "$as_me:5534: checking for default terminfo directory" >&5
  5009. echo $ECHO_N "checking for default terminfo directory... $ECHO_C" >&6
  5010. # Check whether --with-default-terminfo-dir or --without-default-terminfo-dir was given.
  5011. if test "${with_default_terminfo_dir+set}" = set; then
  5012. withval="$with_default_terminfo_dir"
  5013. else
  5014. withval="${TERMINFO-${datadir}/terminfo}"
  5015. fi; if test -n "${datadir}/terminfo" ; then
  5016. if test "x$prefix" != xNONE; then
  5017. cf_path_syntax="$prefix"
  5018. else
  5019. cf_path_syntax="$ac_default_prefix"
  5020. fi
  5021. case ".$withval" in #(vi
  5022. .\$\(*\)*|.\'*\'*) #(vi
  5023. ;;
  5024. ..|./*|.\\*) #(vi
  5025. ;;
  5026. .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
  5027. ;;
  5028. .\${*prefix}*) #(vi
  5029. eval withval="$withval"
  5030. case ".$withval" in #(vi
  5031. .NONE/*)
  5032. withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
  5033. ;;
  5034. esac
  5035. ;; #(vi
  5036. .no|.NONE/*)
  5037. withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
  5038. ;;
  5039. *)
  5040. { { echo "$as_me:5570: error: expected a pathname, not \"$withval\"" >&5
  5041. echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
  5042. { (exit 1); exit 1; }; }
  5043. ;;
  5044. esac
  5045. fi
  5046. TERMINFO="$withval"
  5047. echo "$as_me:5579: result: $TERMINFO" >&5
  5048. echo "${ECHO_T}$TERMINFO" >&6
  5049. cat >>confdefs.h <<EOF
  5050. #define TERMINFO "$TERMINFO"
  5051. EOF
  5052. fi
  5053. ### use option --disable-big-core to make tic run on small machines
  5054. ### We need 4Mb, check if we can allocate 50% more than that.
  5055. echo "$as_me:5589: checking if big-core option selected" >&5
  5056. echo $ECHO_N "checking if big-core option selected... $ECHO_C" >&6
  5057. # Check whether --enable-big-core or --disable-big-core was given.
  5058. if test "${enable_big_core+set}" = set; then
  5059. enableval="$enable_big_core"
  5060. with_big_core=$enableval
  5061. else
  5062. if test "$cross_compiling" = yes; then
  5063. with_big_core=no
  5064. else
  5065. cat >conftest.$ac_ext <<_ACEOF
  5066. #line 5601 "configure"
  5067. #include "confdefs.h"
  5068. #include <stdlib.h>
  5069. #include <string.h>
  5070. int main() {
  5071. unsigned long n = 6000000L;
  5072. char *s = malloc(n);
  5073. if (s != 0)
  5074. s[0] = s[n-1] = 0;
  5075. ${cf_cv_main_return:-return}(s == 0);
  5076. }
  5077. _ACEOF
  5078. rm -f conftest$ac_exeext
  5079. if { (eval echo "$as_me:5615: \"$ac_link\"") >&5
  5080. (eval $ac_link) 2>&5
  5081. ac_status=$?
  5082. echo "$as_me:5618: \$? = $ac_status" >&5
  5083. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5084. { (eval echo "$as_me:5620: \"$ac_try\"") >&5
  5085. (eval $ac_try) 2>&5
  5086. ac_status=$?
  5087. echo "$as_me:5623: \$? = $ac_status" >&5
  5088. (exit $ac_status); }; }; then
  5089. with_big_core=yes
  5090. else
  5091. echo "$as_me: program exited with status $ac_status" >&5
  5092. echo "$as_me: failed program was:" >&5
  5093. cat conftest.$ac_ext >&5
  5094. with_big_core=no
  5095. fi
  5096. rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5097. fi
  5098. fi;
  5099. echo "$as_me:5635: result: $with_big_core" >&5
  5100. echo "${ECHO_T}$with_big_core" >&6
  5101. test "$with_big_core" = "yes" && cat >>confdefs.h <<\EOF
  5102. #define HAVE_BIG_CORE 1
  5103. EOF
  5104. ### ISO C only guarantees 512-char strings, we have tables which load faster
  5105. ### when constructed using "big" strings. More than the C compiler, the awk
  5106. ### program is a limit on most vendor UNIX systems. Check that we can build.
  5107. echo "$as_me:5644: checking if big-strings option selected" >&5
  5108. echo $ECHO_N "checking if big-strings option selected... $ECHO_C" >&6
  5109. # Check whether --enable-big-strings or --disable-big-strings was given.
  5110. if test "${enable_big_strings+set}" = set; then
  5111. enableval="$enable_big_strings"
  5112. with_big_strings=$enableval
  5113. else
  5114. case x$AWK in #(vi
  5115. x)
  5116. eval with_big_strings=no
  5117. ;;
  5118. *) #(vi
  5119. if ( ${AWK} 'BEGIN { xx = "x"; while (length(xx) < 12000) { xx = xx "x"; }; printf("%s\n", xx); }' \
  5120. | $AWK '{ printf "%d\n", length($0); }' | $AWK 'BEGIN { eqls=0; recs=0; } { recs++; if ($0 == 12000) eqls++; } END { if (recs != 1 || eqls != 1) exit 1; }' 2>/dev/null >/dev/null ) ; then
  5121. eval with_big_strings=yes
  5122. else
  5123. eval with_big_strings=no
  5124. fi
  5125. ;;
  5126. esac
  5127. fi;
  5128. echo "$as_me:5668: result: $with_big_strings" >&5
  5129. echo "${ECHO_T}$with_big_strings" >&6
  5130. USE_BIG_STRINGS=0
  5131. test "$with_big_strings" = "yes" && USE_BIG_STRINGS=1
  5132. ### use option --enable-termcap to compile in the termcap fallback support
  5133. echo "$as_me:5675: checking if you want termcap-fallback support" >&5
  5134. echo $ECHO_N "checking if you want termcap-fallback support... $ECHO_C" >&6
  5135. # Check whether --enable-termcap or --disable-termcap was given.
  5136. if test "${enable_termcap+set}" = set; then
  5137. enableval="$enable_termcap"
  5138. with_termcap=$enableval
  5139. else
  5140. with_termcap=no
  5141. fi;
  5142. echo "$as_me:5685: result: $with_termcap" >&5
  5143. echo "${ECHO_T}$with_termcap" >&6
  5144. if test "$with_termcap" != "yes" ; then
  5145. if test "$use_database" = no ; then
  5146. if test -z "$with_fallback" ; then
  5147. { { echo "$as_me:5691: error: You have disabled the database w/o specifying fallbacks" >&5
  5148. echo "$as_me: error: You have disabled the database w/o specifying fallbacks" >&2;}
  5149. { (exit 1); exit 1; }; }
  5150. fi
  5151. fi
  5152. cat >>confdefs.h <<\EOF
  5153. #define PURE_TERMINFO 1
  5154. EOF
  5155. else
  5156. if test "$with_ticlib" != no ; then
  5157. { { echo "$as_me:5703: error: Options --with-ticlib and --enable-termcap cannot be combined" >&5
  5158. echo "$as_me: error: Options --with-ticlib and --enable-termcap cannot be combined" >&2;}
  5159. { (exit 1); exit 1; }; }
  5160. fi
  5161. cat >>confdefs.h <<\EOF
  5162. #define USE_TERMCAP 1
  5163. EOF
  5164. echo "$as_me:5712: checking for list of termcap files" >&5
  5165. echo $ECHO_N "checking for list of termcap files... $ECHO_C" >&6
  5166. # Check whether --with-termpath or --without-termpath was given.
  5167. if test "${with_termpath+set}" = set; then
  5168. withval="$with_termpath"
  5169. else
  5170. withval=${TERMPATH-/etc/termcap:/usr/share/misc/termcap}
  5171. fi;
  5172. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATHSEP}"
  5173. cf_dst_path=
  5174. for cf_src_path in $withval
  5175. do
  5176. if test "x$prefix" != xNONE; then
  5177. cf_path_syntax="$prefix"
  5178. else
  5179. cf_path_syntax="$ac_default_prefix"
  5180. fi
  5181. case ".$cf_src_path" in #(vi
  5182. .\$\(*\)*|.\'*\'*) #(vi
  5183. ;;
  5184. ..|./*|.\\*) #(vi
  5185. ;;
  5186. .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
  5187. ;;
  5188. .\${*prefix}*) #(vi
  5189. eval cf_src_path="$cf_src_path"
  5190. case ".$cf_src_path" in #(vi
  5191. .NONE/*)
  5192. cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
  5193. ;;
  5194. esac
  5195. ;; #(vi
  5196. .no|.NONE/*)
  5197. cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
  5198. ;;
  5199. *)
  5200. { { echo "$as_me:5752: error: expected a pathname, not \"$cf_src_path\"" >&5
  5201. echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
  5202. { (exit 1); exit 1; }; }
  5203. ;;
  5204. esac
  5205. test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}:"
  5206. cf_dst_path="${cf_dst_path}${cf_src_path}"
  5207. done
  5208. IFS="$ac_save_ifs"
  5209. eval 'TERMPATH="$cf_dst_path"'
  5210. echo "$as_me:5765: result: $TERMPATH" >&5
  5211. echo "${ECHO_T}$TERMPATH" >&6
  5212. test -n "$TERMPATH" && cat >>confdefs.h <<EOF
  5213. #define TERMPATH "$TERMPATH"
  5214. EOF
  5215. ### use option --enable-getcap to use a hacked getcap for reading termcaps
  5216. echo "$as_me:5772: checking if fast termcap-loader is needed" >&5
  5217. echo $ECHO_N "checking if fast termcap-loader is needed... $ECHO_C" >&6
  5218. # Check whether --enable-getcap or --disable-getcap was given.
  5219. if test "${enable_getcap+set}" = set; then
  5220. enableval="$enable_getcap"
  5221. with_getcap=$enableval
  5222. else
  5223. with_getcap=no
  5224. fi;
  5225. echo "$as_me:5782: result: $with_getcap" >&5
  5226. echo "${ECHO_T}$with_getcap" >&6
  5227. test "$with_getcap" = "yes" && cat >>confdefs.h <<\EOF
  5228. #define USE_GETCAP 1
  5229. EOF
  5230. echo "$as_me:5788: checking if translated termcaps will be cached in ~/.terminfo" >&5
  5231. echo $ECHO_N "checking if translated termcaps will be cached in ~/.terminfo... $ECHO_C" >&6
  5232. # Check whether --enable-getcap-cache or --disable-getcap-cache was given.
  5233. if test "${enable_getcap_cache+set}" = set; then
  5234. enableval="$enable_getcap_cache"
  5235. with_getcap_cache=$enableval
  5236. else
  5237. with_getcap_cache=no
  5238. fi;
  5239. echo "$as_me:5798: result: $with_getcap_cache" >&5
  5240. echo "${ECHO_T}$with_getcap_cache" >&6
  5241. test "$with_getcap_cache" = "yes" && cat >>confdefs.h <<\EOF
  5242. #define USE_GETCAP_CACHE 1
  5243. EOF
  5244. fi
  5245. ### Use option --disable-home-terminfo to completely remove ~/.terminfo
  5246. echo "$as_me:5807: checking if ~/.terminfo is wanted" >&5
  5247. echo $ECHO_N "checking if ~/.terminfo is wanted... $ECHO_C" >&6
  5248. # Check whether --enable-home-terminfo or --disable-home-terminfo was given.
  5249. if test "${enable_home_terminfo+set}" = set; then
  5250. enableval="$enable_home_terminfo"
  5251. with_home_terminfo=$enableval
  5252. else
  5253. with_home_terminfo=yes
  5254. fi;
  5255. echo "$as_me:5817: result: $with_home_terminfo" >&5
  5256. echo "${ECHO_T}$with_home_terminfo" >&6
  5257. test "$with_home_terminfo" = "yes" && cat >>confdefs.h <<\EOF
  5258. #define USE_HOME_TERMINFO 1
  5259. EOF
  5260. echo "$as_me:5823: checking if you want to use restricted environment when running as root" >&5
  5261. echo $ECHO_N "checking if you want to use restricted environment when running as root... $ECHO_C" >&6
  5262. # Check whether --enable-root-environ or --disable-root-environ was given.
  5263. if test "${enable_root_environ+set}" = set; then
  5264. enableval="$enable_root_environ"
  5265. with_root_environ=$enableval
  5266. else
  5267. with_root_environ=yes
  5268. fi;
  5269. echo "$as_me:5833: result: $with_root_environ" >&5
  5270. echo "${ECHO_T}$with_root_environ" >&6
  5271. test "$with_root_environ" = yes && cat >>confdefs.h <<\EOF
  5272. #define USE_ROOT_ENVIRON 1
  5273. EOF
  5274. ### Use option --enable-symlinks to make tic use symlinks, not hard links
  5275. ### to reduce storage requirements for the terminfo database.
  5276. for ac_func in \
  5277. remove \
  5278. unlink
  5279. do
  5280. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5281. echo "$as_me:5847: checking for $ac_func" >&5
  5282. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  5283. if eval "test \"\${$as_ac_var+set}\" = set"; then
  5284. echo $ECHO_N "(cached) $ECHO_C" >&6
  5285. else
  5286. cat >conftest.$ac_ext <<_ACEOF
  5287. #line 5853 "configure"
  5288. #include "confdefs.h"
  5289. /* System header to define __stub macros and hopefully few prototypes,
  5290. which can conflict with char $ac_func (); below. */
  5291. #include <assert.h>
  5292. /* Override any gcc2 internal prototype to avoid an error. */
  5293. #ifdef __cplusplus
  5294. extern "C"
  5295. #endif
  5296. /* We use char because int might match the return type of a gcc2
  5297. builtin and then its argument prototype would still apply. */
  5298. char $ac_func ();
  5299. char (*f) ();
  5300. int
  5301. main ()
  5302. {
  5303. /* The GNU C library defines this for functions which it implements
  5304. to always fail with ENOSYS. Some functions are actually named
  5305. something starting with __ and the normal name is an alias. */
  5306. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  5307. choke me
  5308. #else
  5309. f = $ac_func;
  5310. #endif
  5311. ;
  5312. return 0;
  5313. }
  5314. _ACEOF
  5315. rm -f conftest.$ac_objext conftest$ac_exeext
  5316. if { (eval echo "$as_me:5884: \"$ac_link\"") >&5
  5317. (eval $ac_link) 2>&5
  5318. ac_status=$?
  5319. echo "$as_me:5887: \$? = $ac_status" >&5
  5320. (exit $ac_status); } &&
  5321. { ac_try='test -s conftest$ac_exeext'
  5322. { (eval echo "$as_me:5890: \"$ac_try\"") >&5
  5323. (eval $ac_try) 2>&5
  5324. ac_status=$?
  5325. echo "$as_me:5893: \$? = $ac_status" >&5
  5326. (exit $ac_status); }; }; then
  5327. eval "$as_ac_var=yes"
  5328. else
  5329. echo "$as_me: failed program was:" >&5
  5330. cat conftest.$ac_ext >&5
  5331. eval "$as_ac_var=no"
  5332. fi
  5333. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  5334. fi
  5335. echo "$as_me:5903: result: `eval echo '${'$as_ac_var'}'`" >&5
  5336. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  5337. if test `eval echo '${'$as_ac_var'}'` = yes; then
  5338. cat >>confdefs.h <<EOF
  5339. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5340. EOF
  5341. fi
  5342. done
  5343. if test "$cross_compiling" = yes ; then
  5344. for ac_func in \
  5345. link \
  5346. symlink
  5347. do
  5348. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5349. echo "$as_me:5920: checking for $ac_func" >&5
  5350. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  5351. if eval "test \"\${$as_ac_var+set}\" = set"; then
  5352. echo $ECHO_N "(cached) $ECHO_C" >&6
  5353. else
  5354. cat >conftest.$ac_ext <<_ACEOF
  5355. #line 5926 "configure"
  5356. #include "confdefs.h"
  5357. /* System header to define __stub macros and hopefully few prototypes,
  5358. which can conflict with char $ac_func (); below. */
  5359. #include <assert.h>
  5360. /* Override any gcc2 internal prototype to avoid an error. */
  5361. #ifdef __cplusplus
  5362. extern "C"
  5363. #endif
  5364. /* We use char because int might match the return type of a gcc2
  5365. builtin and then its argument prototype would still apply. */
  5366. char $ac_func ();
  5367. char (*f) ();
  5368. int
  5369. main ()
  5370. {
  5371. /* The GNU C library defines this for functions which it implements
  5372. to always fail with ENOSYS. Some functions are actually named
  5373. something starting with __ and the normal name is an alias. */
  5374. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  5375. choke me
  5376. #else
  5377. f = $ac_func;
  5378. #endif
  5379. ;
  5380. return 0;
  5381. }
  5382. _ACEOF
  5383. rm -f conftest.$ac_objext conftest$ac_exeext
  5384. if { (eval echo "$as_me:5957: \"$ac_link\"") >&5
  5385. (eval $ac_link) 2>&5
  5386. ac_status=$?
  5387. echo "$as_me:5960: \$? = $ac_status" >&5
  5388. (exit $ac_status); } &&
  5389. { ac_try='test -s conftest$ac_exeext'
  5390. { (eval echo "$as_me:5963: \"$ac_try\"") >&5
  5391. (eval $ac_try) 2>&5
  5392. ac_status=$?
  5393. echo "$as_me:5966: \$? = $ac_status" >&5
  5394. (exit $ac_status); }; }; then
  5395. eval "$as_ac_var=yes"
  5396. else
  5397. echo "$as_me: failed program was:" >&5
  5398. cat conftest.$ac_ext >&5
  5399. eval "$as_ac_var=no"
  5400. fi
  5401. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  5402. fi
  5403. echo "$as_me:5976: result: `eval echo '${'$as_ac_var'}'`" >&5
  5404. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  5405. if test `eval echo '${'$as_ac_var'}'` = yes; then
  5406. cat >>confdefs.h <<EOF
  5407. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5408. EOF
  5409. fi
  5410. done
  5411. else
  5412. echo "$as_me:5987: checking if link/symlink functions work" >&5
  5413. echo $ECHO_N "checking if link/symlink functions work... $ECHO_C" >&6
  5414. if test "${cf_cv_link_funcs+set}" = set; then
  5415. echo $ECHO_N "(cached) $ECHO_C" >&6
  5416. else
  5417. cf_cv_link_funcs=
  5418. for cf_func in link symlink ; do
  5419. if test "$cross_compiling" = yes; then
  5420. eval 'ac_cv_func_'$cf_func'=error'
  5421. else
  5422. cat >conftest.$ac_ext <<_ACEOF
  5423. #line 6000 "configure"
  5424. #include "confdefs.h"
  5425. #include <sys/types.h>
  5426. #include <sys/stat.h>
  5427. #ifdef HAVE_UNISTD_H
  5428. #include <unistd.h>
  5429. #endif
  5430. int main()
  5431. {
  5432. int fail = 0;
  5433. char *src = "config.log";
  5434. char *dst = "conftest.chk";
  5435. struct stat src_sb;
  5436. struct stat dst_sb;
  5437. stat(src, &src_sb);
  5438. fail = ($cf_func("config.log", "conftest.chk") < 0)
  5439. || (stat(dst, &dst_sb) < 0)
  5440. || (dst_sb.st_mtime != src_sb.st_mtime);
  5441. #ifdef HAVE_UNLINK
  5442. unlink(dst);
  5443. #else
  5444. remove(dst);
  5445. #endif
  5446. ${cf_cv_main_return:-return} (fail);
  5447. }
  5448. _ACEOF
  5449. rm -f conftest$ac_exeext
  5450. if { (eval echo "$as_me:6030: \"$ac_link\"") >&5
  5451. (eval $ac_link) 2>&5
  5452. ac_status=$?
  5453. echo "$as_me:6033: \$? = $ac_status" >&5
  5454. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5455. { (eval echo "$as_me:6035: \"$ac_try\"") >&5
  5456. (eval $ac_try) 2>&5
  5457. ac_status=$?
  5458. echo "$as_me:6038: \$? = $ac_status" >&5
  5459. (exit $ac_status); }; }; then
  5460. cf_cv_link_funcs="$cf_cv_link_funcs $cf_func"
  5461. eval 'ac_cv_func_'$cf_func'=yes'
  5462. else
  5463. echo "$as_me: program exited with status $ac_status" >&5
  5464. echo "$as_me: failed program was:" >&5
  5465. cat conftest.$ac_ext >&5
  5466. eval 'ac_cv_func_'$cf_func'=no'
  5467. fi
  5468. rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5469. fi
  5470. done
  5471. test -z "$cf_cv_link_funcs" && cf_cv_link_funcs=no
  5472. fi
  5473. echo "$as_me:6056: result: $cf_cv_link_funcs" >&5
  5474. echo "${ECHO_T}$cf_cv_link_funcs" >&6
  5475. test "$ac_cv_func_link" = yes && cat >>confdefs.h <<\EOF
  5476. #define HAVE_LINK 1
  5477. EOF
  5478. test "$ac_cv_func_symlink" = yes && cat >>confdefs.h <<\EOF
  5479. #define HAVE_SYMLINK 1
  5480. EOF
  5481. fi
  5482. with_links=no
  5483. with_symlinks=no
  5484. # soft links (symbolic links) are useful for some systems where hard links do
  5485. # not work, or to make it simpler to copy terminfo trees around.
  5486. if test "$ac_cv_func_symlink" = yes ; then
  5487. echo "$as_me:6074: checking if tic should use symbolic links" >&5
  5488. echo $ECHO_N "checking if tic should use symbolic links... $ECHO_C" >&6
  5489. # Check whether --enable-symlinks or --disable-symlinks was given.
  5490. if test "${enable_symlinks+set}" = set; then
  5491. enableval="$enable_symlinks"
  5492. with_symlinks=$enableval
  5493. else
  5494. with_symlinks=no
  5495. fi;
  5496. echo "$as_me:6084: result: $with_symlinks" >&5
  5497. echo "${ECHO_T}$with_symlinks" >&6
  5498. fi
  5499. # If we have hard links and did not choose to use soft links instead, there is
  5500. # no reason to make this choice optional - use the hard links.
  5501. if test "$with_symlinks" = no ; then
  5502. echo "$as_me:6091: checking if tic should use hard links" >&5
  5503. echo $ECHO_N "checking if tic should use hard links... $ECHO_C" >&6
  5504. if test "$ac_cv_func_link" = yes ; then
  5505. with_links=yes
  5506. else
  5507. with_links=no
  5508. fi
  5509. echo "$as_me:6098: result: $with_links" >&5
  5510. echo "${ECHO_T}$with_links" >&6
  5511. fi
  5512. test "$with_links" = yes && cat >>confdefs.h <<\EOF
  5513. #define USE_LINKS 1
  5514. EOF
  5515. test "$with_symlinks" = yes && cat >>confdefs.h <<\EOF
  5516. #define USE_SYMLINKS 1
  5517. EOF
  5518. ### use option --enable-broken-linker to force on use of broken-linker support
  5519. echo "$as_me:6111: checking if you want broken-linker support code" >&5
  5520. echo $ECHO_N "checking if you want broken-linker support code... $ECHO_C" >&6
  5521. # Check whether --enable-broken_linker or --disable-broken_linker was given.
  5522. if test "${enable_broken_linker+set}" = set; then
  5523. enableval="$enable_broken_linker"
  5524. with_broken_linker=$enableval
  5525. else
  5526. with_broken_linker=${BROKEN_LINKER-no}
  5527. fi;
  5528. echo "$as_me:6121: result: $with_broken_linker" >&5
  5529. echo "${ECHO_T}$with_broken_linker" >&6
  5530. BROKEN_LINKER=0
  5531. if test "$with_broken_linker" = yes ; then
  5532. cat >>confdefs.h <<\EOF
  5533. #define BROKEN_LINKER 1
  5534. EOF
  5535. BROKEN_LINKER=1
  5536. elif test "$DFT_LWR_MODEL" = shared ; then
  5537. case $cf_cv_system_name in #(vi
  5538. cygwin*)
  5539. cat >>confdefs.h <<\EOF
  5540. #define BROKEN_LINKER 1
  5541. EOF
  5542. BROKEN_LINKER=1
  5543. test -n "$verbose" && echo " cygwin linker is broken anyway" 1>&6
  5544. echo "${as_me-configure}:6141: testing cygwin linker is broken anyway ..." 1>&5
  5545. ;;
  5546. esac
  5547. fi
  5548. ### use option --enable-bsdpad to have tputs process BSD-style prefix padding
  5549. echo "$as_me:6148: checking if tputs should process BSD-style prefix padding" >&5
  5550. echo $ECHO_N "checking if tputs should process BSD-style prefix padding... $ECHO_C" >&6
  5551. # Check whether --enable-bsdpad or --disable-bsdpad was given.
  5552. if test "${enable_bsdpad+set}" = set; then
  5553. enableval="$enable_bsdpad"
  5554. with_bsdpad=$enableval
  5555. else
  5556. with_bsdpad=no
  5557. fi;
  5558. echo "$as_me:6158: result: $with_bsdpad" >&5
  5559. echo "${ECHO_T}$with_bsdpad" >&6
  5560. test "$with_bsdpad" = yes && cat >>confdefs.h <<\EOF
  5561. #define BSD_TPUTS 1
  5562. EOF
  5563. ### use option --enable-widec to turn on use of wide-character support
  5564. NCURSES_CH_T=chtype
  5565. NCURSES_LIBUTF8=0
  5566. NEED_WCHAR_H=0
  5567. NCURSES_MBSTATE_T=0
  5568. NCURSES_WCHAR_T=0
  5569. NCURSES_WINT_T=0
  5570. # Check to define _XOPEN_SOURCE "automatically"
  5571. echo "$as_me:6175: checking if $CC -U and -D options work together" >&5
  5572. echo $ECHO_N "checking if $CC -U and -D options work together... $ECHO_C" >&6
  5573. if test "${cf_cv_cc_u_d_options+set}" = set; then
  5574. echo $ECHO_N "(cached) $ECHO_C" >&6
  5575. else
  5576. cf_save_CPPFLAGS="$CPPFLAGS"
  5577. CPPFLAGS="-UU_D_OPTIONS -DU_D_OPTIONS -DD_U_OPTIONS -UD_U_OPTIONS"
  5578. cat >conftest.$ac_ext <<_ACEOF
  5579. #line 6184 "configure"
  5580. #include "confdefs.h"
  5581. int
  5582. main ()
  5583. {
  5584. #ifndef U_D_OPTIONS
  5585. make an undefined-error
  5586. #endif
  5587. #ifdef D_U_OPTIONS
  5588. make a defined-error
  5589. #endif
  5590. ;
  5591. return 0;
  5592. }
  5593. _ACEOF
  5594. rm -f conftest.$ac_objext
  5595. if { (eval echo "$as_me:6203: \"$ac_compile\"") >&5
  5596. (eval $ac_compile) 2>&5
  5597. ac_status=$?
  5598. echo "$as_me:6206: \$? = $ac_status" >&5
  5599. (exit $ac_status); } &&
  5600. { ac_try='test -s conftest.$ac_objext'
  5601. { (eval echo "$as_me:6209: \"$ac_try\"") >&5
  5602. (eval $ac_try) 2>&5
  5603. ac_status=$?
  5604. echo "$as_me:6212: \$? = $ac_status" >&5
  5605. (exit $ac_status); }; }; then
  5606. cf_cv_cc_u_d_options=yes
  5607. else
  5608. echo "$as_me: failed program was:" >&5
  5609. cat conftest.$ac_ext >&5
  5610. cf_cv_cc_u_d_options=no
  5611. fi
  5612. rm -f conftest.$ac_objext conftest.$ac_ext
  5613. CPPFLAGS="$cf_save_CPPFLAGS"
  5614. fi
  5615. echo "$as_me:6226: result: $cf_cv_cc_u_d_options" >&5
  5616. echo "${ECHO_T}$cf_cv_cc_u_d_options" >&6
  5617. cf_XOPEN_SOURCE=500
  5618. cf_POSIX_C_SOURCE=199506L
  5619. case $host_os in #(vi
  5620. aix[45]*) #(vi
  5621. CPPFLAGS="$CPPFLAGS -D_ALL_SOURCE"
  5622. ;;
  5623. freebsd*|dragonfly*) #(vi
  5624. # 5.x headers associate
  5625. # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
  5626. # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
  5627. cf_POSIX_C_SOURCE=200112L
  5628. cf_XOPEN_SOURCE=600
  5629. CPPFLAGS="$CPPFLAGS -D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
  5630. ;;
  5631. hpux*) #(vi
  5632. CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE"
  5633. ;;
  5634. irix[56].*) #(vi
  5635. CPPFLAGS="$CPPFLAGS -D_SGI_SOURCE"
  5636. ;;
  5637. linux*|gnu*|mint*|k*bsd*-gnu) #(vi
  5638. echo "$as_me:6252: checking if we must define _GNU_SOURCE" >&5
  5639. echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
  5640. if test "${cf_cv_gnu_source+set}" = set; then
  5641. echo $ECHO_N "(cached) $ECHO_C" >&6
  5642. else
  5643. cat >conftest.$ac_ext <<_ACEOF
  5644. #line 6259 "configure"
  5645. #include "confdefs.h"
  5646. #include <sys/types.h>
  5647. int
  5648. main ()
  5649. {
  5650. #ifndef _XOPEN_SOURCE
  5651. make an error
  5652. #endif
  5653. ;
  5654. return 0;
  5655. }
  5656. _ACEOF
  5657. rm -f conftest.$ac_objext
  5658. if { (eval echo "$as_me:6274: \"$ac_compile\"") >&5
  5659. (eval $ac_compile) 2>&5
  5660. ac_status=$?
  5661. echo "$as_me:6277: \$? = $ac_status" >&5
  5662. (exit $ac_status); } &&
  5663. { ac_try='test -s conftest.$ac_objext'
  5664. { (eval echo "$as_me:6280: \"$ac_try\"") >&5
  5665. (eval $ac_try) 2>&5
  5666. ac_status=$?
  5667. echo "$as_me:6283: \$? = $ac_status" >&5
  5668. (exit $ac_status); }; }; then
  5669. cf_cv_gnu_source=no
  5670. else
  5671. echo "$as_me: failed program was:" >&5
  5672. cat conftest.$ac_ext >&5
  5673. cf_save="$CPPFLAGS"
  5674. CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
  5675. cat >conftest.$ac_ext <<_ACEOF
  5676. #line 6292 "configure"
  5677. #include "confdefs.h"
  5678. #include <sys/types.h>
  5679. int
  5680. main ()
  5681. {
  5682. #ifdef _XOPEN_SOURCE
  5683. make an error
  5684. #endif
  5685. ;
  5686. return 0;
  5687. }
  5688. _ACEOF
  5689. rm -f conftest.$ac_objext
  5690. if { (eval echo "$as_me:6307: \"$ac_compile\"") >&5
  5691. (eval $ac_compile) 2>&5
  5692. ac_status=$?
  5693. echo "$as_me:6310: \$? = $ac_status" >&5
  5694. (exit $ac_status); } &&
  5695. { ac_try='test -s conftest.$ac_objext'
  5696. { (eval echo "$as_me:6313: \"$ac_try\"") >&5
  5697. (eval $ac_try) 2>&5
  5698. ac_status=$?
  5699. echo "$as_me:6316: \$? = $ac_status" >&5
  5700. (exit $ac_status); }; }; then
  5701. cf_cv_gnu_source=no
  5702. else
  5703. echo "$as_me: failed program was:" >&5
  5704. cat conftest.$ac_ext >&5
  5705. cf_cv_gnu_source=yes
  5706. fi
  5707. rm -f conftest.$ac_objext conftest.$ac_ext
  5708. CPPFLAGS="$cf_save"
  5709. fi
  5710. rm -f conftest.$ac_objext conftest.$ac_ext
  5711. fi
  5712. echo "$as_me:6331: result: $cf_cv_gnu_source" >&5
  5713. echo "${ECHO_T}$cf_cv_gnu_source" >&6
  5714. test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
  5715. ;;
  5716. mirbsd*) #(vi
  5717. # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <arpa/inet.h>
  5718. ;;
  5719. netbsd*) #(vi
  5720. # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
  5721. ;;
  5722. openbsd*) #(vi
  5723. # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
  5724. ;;
  5725. osf[45]*) #(vi
  5726. CPPFLAGS="$CPPFLAGS -D_OSF_SOURCE"
  5727. ;;
  5728. nto-qnx*) #(vi
  5729. CPPFLAGS="$CPPFLAGS -D_QNX_SOURCE"
  5730. ;;
  5731. sco*) #(vi
  5732. # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
  5733. ;;
  5734. solaris*) #(vi
  5735. CPPFLAGS="$CPPFLAGS -D__EXTENSIONS__"
  5736. ;;
  5737. *)
  5738. echo "$as_me:6358: checking if we should define _XOPEN_SOURCE" >&5
  5739. echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
  5740. if test "${cf_cv_xopen_source+set}" = set; then
  5741. echo $ECHO_N "(cached) $ECHO_C" >&6
  5742. else
  5743. cat >conftest.$ac_ext <<_ACEOF
  5744. #line 6365 "configure"
  5745. #include "confdefs.h"
  5746. #include <sys/types.h>
  5747. int
  5748. main ()
  5749. {
  5750. #ifndef _XOPEN_SOURCE
  5751. make an error
  5752. #endif
  5753. ;
  5754. return 0;
  5755. }
  5756. _ACEOF
  5757. rm -f conftest.$ac_objext
  5758. if { (eval echo "$as_me:6380: \"$ac_compile\"") >&5
  5759. (eval $ac_compile) 2>&5
  5760. ac_status=$?
  5761. echo "$as_me:6383: \$? = $ac_status" >&5
  5762. (exit $ac_status); } &&
  5763. { ac_try='test -s conftest.$ac_objext'
  5764. { (eval echo "$as_me:6386: \"$ac_try\"") >&5
  5765. (eval $ac_try) 2>&5
  5766. ac_status=$?
  5767. echo "$as_me:6389: \$? = $ac_status" >&5
  5768. (exit $ac_status); }; }; then
  5769. cf_cv_xopen_source=no
  5770. else
  5771. echo "$as_me: failed program was:" >&5
  5772. cat conftest.$ac_ext >&5
  5773. cf_save="$CPPFLAGS"
  5774. CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
  5775. cat >conftest.$ac_ext <<_ACEOF
  5776. #line 6398 "configure"
  5777. #include "confdefs.h"
  5778. #include <sys/types.h>
  5779. int
  5780. main ()
  5781. {
  5782. #ifdef _XOPEN_SOURCE
  5783. make an error
  5784. #endif
  5785. ;
  5786. return 0;
  5787. }
  5788. _ACEOF
  5789. rm -f conftest.$ac_objext
  5790. if { (eval echo "$as_me:6413: \"$ac_compile\"") >&5
  5791. (eval $ac_compile) 2>&5
  5792. ac_status=$?
  5793. echo "$as_me:6416: \$? = $ac_status" >&5
  5794. (exit $ac_status); } &&
  5795. { ac_try='test -s conftest.$ac_objext'
  5796. { (eval echo "$as_me:6419: \"$ac_try\"") >&5
  5797. (eval $ac_try) 2>&5
  5798. ac_status=$?
  5799. echo "$as_me:6422: \$? = $ac_status" >&5
  5800. (exit $ac_status); }; }; then
  5801. cf_cv_xopen_source=no
  5802. else
  5803. echo "$as_me: failed program was:" >&5
  5804. cat conftest.$ac_ext >&5
  5805. cf_cv_xopen_source=$cf_XOPEN_SOURCE
  5806. fi
  5807. rm -f conftest.$ac_objext conftest.$ac_ext
  5808. CPPFLAGS="$cf_save"
  5809. fi
  5810. rm -f conftest.$ac_objext conftest.$ac_ext
  5811. fi
  5812. echo "$as_me:6437: result: $cf_cv_xopen_source" >&5
  5813. echo "${ECHO_T}$cf_cv_xopen_source" >&6
  5814. if test "$cf_cv_xopen_source" != no ; then
  5815. # remove _XOPEN_SOURCE symbol from $CFLAGS
  5816. CFLAGS=`echo "$CFLAGS" | \
  5817. sed -e 's/-[UD]_XOPEN_SOURCE\(=[^ ]*\)\?[ ]/ /g' \
  5818. -e 's/-[UD]_XOPEN_SOURCE\(=[^ ]*\)\?$//g'`
  5819. # remove _XOPEN_SOURCE symbol from $CPPFLAGS
  5820. CPPFLAGS=`echo "$CPPFLAGS" | \
  5821. sed -e 's/-[UD]_XOPEN_SOURCE\(=[^ ]*\)\?[ ]/ /g' \
  5822. -e 's/-[UD]_XOPEN_SOURCE\(=[^ ]*\)\?$//g'`
  5823. test "$cf_cv_cc_u_d_options" = yes && \
  5824. CPPFLAGS="$CPPFLAGS -U_XOPEN_SOURCE"
  5825. CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_cv_xopen_source"
  5826. fi
  5827. cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
  5828. cf_save_CFLAGS="$CFLAGS"
  5829. cf_save_CPPFLAGS="$CPPFLAGS"
  5830. # remove _POSIX_C_SOURCE symbol from $cf_save_CFLAGS
  5831. cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
  5832. sed -e 's/-[UD]_POSIX_C_SOURCE\(=[^ ]*\)\?[ ]/ /g' \
  5833. -e 's/-[UD]_POSIX_C_SOURCE\(=[^ ]*\)\?$//g'`
  5834. # remove _POSIX_C_SOURCE symbol from $cf_save_CPPFLAGS
  5835. cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
  5836. sed -e 's/-[UD]_POSIX_C_SOURCE\(=[^ ]*\)\?[ ]/ /g' \
  5837. -e 's/-[UD]_POSIX_C_SOURCE\(=[^ ]*\)\?$//g'`
  5838. echo "$as_me:6471: checking if we should define _POSIX_C_SOURCE" >&5
  5839. echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
  5840. if test "${cf_cv_posix_c_source+set}" = set; then
  5841. echo $ECHO_N "(cached) $ECHO_C" >&6
  5842. else
  5843. echo "${as_me-configure}:6477: testing if the symbol is already defined go no further ..." 1>&5
  5844. cat >conftest.$ac_ext <<_ACEOF
  5845. #line 6480 "configure"
  5846. #include "confdefs.h"
  5847. #include <sys/types.h>
  5848. int
  5849. main ()
  5850. {
  5851. #ifndef _POSIX_C_SOURCE
  5852. make an error
  5853. #endif
  5854. ;
  5855. return 0;
  5856. }
  5857. _ACEOF
  5858. rm -f conftest.$ac_objext
  5859. if { (eval echo "$as_me:6495: \"$ac_compile\"") >&5
  5860. (eval $ac_compile) 2>&5
  5861. ac_status=$?
  5862. echo "$as_me:6498: \$? = $ac_status" >&5
  5863. (exit $ac_status); } &&
  5864. { ac_try='test -s conftest.$ac_objext'
  5865. { (eval echo "$as_me:6501: \"$ac_try\"") >&5
  5866. (eval $ac_try) 2>&5
  5867. ac_status=$?
  5868. echo "$as_me:6504: \$? = $ac_status" >&5
  5869. (exit $ac_status); }; }; then
  5870. cf_cv_posix_c_source=no
  5871. else
  5872. echo "$as_me: failed program was:" >&5
  5873. cat conftest.$ac_ext >&5
  5874. cf_want_posix_source=no
  5875. case .$cf_POSIX_C_SOURCE in #(vi
  5876. .[12]??*) #(vi
  5877. cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
  5878. ;;
  5879. .2) #(vi
  5880. cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
  5881. cf_want_posix_source=yes
  5882. ;;
  5883. .*)
  5884. cf_want_posix_source=yes
  5885. ;;
  5886. esac
  5887. if test "$cf_want_posix_source" = yes ; then
  5888. cat >conftest.$ac_ext <<_ACEOF
  5889. #line 6525 "configure"
  5890. #include "confdefs.h"
  5891. #include <sys/types.h>
  5892. int
  5893. main ()
  5894. {
  5895. #ifdef _POSIX_SOURCE
  5896. make an error
  5897. #endif
  5898. ;
  5899. return 0;
  5900. }
  5901. _ACEOF
  5902. rm -f conftest.$ac_objext
  5903. if { (eval echo "$as_me:6540: \"$ac_compile\"") >&5
  5904. (eval $ac_compile) 2>&5
  5905. ac_status=$?
  5906. echo "$as_me:6543: \$? = $ac_status" >&5
  5907. (exit $ac_status); } &&
  5908. { ac_try='test -s conftest.$ac_objext'
  5909. { (eval echo "$as_me:6546: \"$ac_try\"") >&5
  5910. (eval $ac_try) 2>&5
  5911. ac_status=$?
  5912. echo "$as_me:6549: \$? = $ac_status" >&5
  5913. (exit $ac_status); }; }; then
  5914. :
  5915. else
  5916. echo "$as_me: failed program was:" >&5
  5917. cat conftest.$ac_ext >&5
  5918. cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
  5919. fi
  5920. rm -f conftest.$ac_objext conftest.$ac_ext
  5921. fi
  5922. echo "${as_me-configure}:6560: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
  5923. CFLAGS="$cf_trim_CFLAGS"
  5924. CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
  5925. echo "${as_me-configure}:6565: testing if the second compile does not leave our definition intact error ..." 1>&5
  5926. cat >conftest.$ac_ext <<_ACEOF
  5927. #line 6568 "configure"
  5928. #include "confdefs.h"
  5929. #include <sys/types.h>
  5930. int
  5931. main ()
  5932. {
  5933. #ifndef _POSIX_C_SOURCE
  5934. make an error
  5935. #endif
  5936. ;
  5937. return 0;
  5938. }
  5939. _ACEOF
  5940. rm -f conftest.$ac_objext
  5941. if { (eval echo "$as_me:6583: \"$ac_compile\"") >&5
  5942. (eval $ac_compile) 2>&5
  5943. ac_status=$?
  5944. echo "$as_me:6586: \$? = $ac_status" >&5
  5945. (exit $ac_status); } &&
  5946. { ac_try='test -s conftest.$ac_objext'
  5947. { (eval echo "$as_me:6589: \"$ac_try\"") >&5
  5948. (eval $ac_try) 2>&5
  5949. ac_status=$?
  5950. echo "$as_me:6592: \$? = $ac_status" >&5
  5951. (exit $ac_status); }; }; then
  5952. :
  5953. else
  5954. echo "$as_me: failed program was:" >&5
  5955. cat conftest.$ac_ext >&5
  5956. cf_cv_posix_c_source=no
  5957. fi
  5958. rm -f conftest.$ac_objext conftest.$ac_ext
  5959. CFLAGS="$cf_save_CFLAGS"
  5960. CPPFLAGS="$cf_save_CPPFLAGS"
  5961. fi
  5962. rm -f conftest.$ac_objext conftest.$ac_ext
  5963. fi
  5964. echo "$as_me:6608: result: $cf_cv_posix_c_source" >&5
  5965. echo "${ECHO_T}$cf_cv_posix_c_source" >&6
  5966. if test "$cf_cv_posix_c_source" != no ; then
  5967. CFLAGS="$cf_trim_CFLAGS"
  5968. CPPFLAGS="$cf_trim_CPPFLAGS"
  5969. if test "$cf_cv_cc_u_d_options" = yes ; then
  5970. cf_temp_posix_c_source=`echo "$cf_cv_posix_c_source" | \
  5971. sed -e 's/-D/-U/g' -e 's/=[^ ]*//g'`
  5972. CPPFLAGS="$CPPFLAGS $cf_temp_posix_c_source"
  5973. fi
  5974. CPPFLAGS="$CPPFLAGS $cf_cv_posix_c_source"
  5975. fi
  5976. ;;
  5977. esac
  5978. # Work around breakage on OS X
  5979. echo "$as_me:6627: checking if SIGWINCH is defined" >&5
  5980. echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6
  5981. if test "${cf_cv_define_sigwinch+set}" = set; then
  5982. echo $ECHO_N "(cached) $ECHO_C" >&6
  5983. else
  5984. cat >conftest.$ac_ext <<_ACEOF
  5985. #line 6634 "configure"
  5986. #include "confdefs.h"
  5987. #include <sys/types.h>
  5988. #include <sys/signal.h>
  5989. int
  5990. main ()
  5991. {
  5992. int x = SIGWINCH
  5993. ;
  5994. return 0;
  5995. }
  5996. _ACEOF
  5997. rm -f conftest.$ac_objext
  5998. if { (eval echo "$as_me:6649: \"$ac_compile\"") >&5
  5999. (eval $ac_compile) 2>&5
  6000. ac_status=$?
  6001. echo "$as_me:6652: \$? = $ac_status" >&5
  6002. (exit $ac_status); } &&
  6003. { ac_try='test -s conftest.$ac_objext'
  6004. { (eval echo "$as_me:6655: \"$ac_try\"") >&5
  6005. (eval $ac_try) 2>&5
  6006. ac_status=$?
  6007. echo "$as_me:6658: \$? = $ac_status" >&5
  6008. (exit $ac_status); }; }; then
  6009. cf_cv_define_sigwinch=yes
  6010. else
  6011. echo "$as_me: failed program was:" >&5
  6012. cat conftest.$ac_ext >&5
  6013. cat >conftest.$ac_ext <<_ACEOF
  6014. #line 6665 "configure"
  6015. #include "confdefs.h"
  6016. #undef _XOPEN_SOURCE
  6017. #undef _POSIX_SOURCE
  6018. #undef _POSIX_C_SOURCE
  6019. #include <sys/types.h>
  6020. #include <sys/signal.h>
  6021. int
  6022. main ()
  6023. {
  6024. int x = SIGWINCH
  6025. ;
  6026. return 0;
  6027. }
  6028. _ACEOF
  6029. rm -f conftest.$ac_objext
  6030. if { (eval echo "$as_me:6683: \"$ac_compile\"") >&5
  6031. (eval $ac_compile) 2>&5
  6032. ac_status=$?
  6033. echo "$as_me:6686: \$? = $ac_status" >&5
  6034. (exit $ac_status); } &&
  6035. { ac_try='test -s conftest.$ac_objext'
  6036. { (eval echo "$as_me:6689: \"$ac_try\"") >&5
  6037. (eval $ac_try) 2>&5
  6038. ac_status=$?
  6039. echo "$as_me:6692: \$? = $ac_status" >&5
  6040. (exit $ac_status); }; }; then
  6041. cf_cv_define_sigwinch=maybe
  6042. else
  6043. echo "$as_me: failed program was:" >&5
  6044. cat conftest.$ac_ext >&5
  6045. cf_cv_define_sigwinch=no
  6046. fi
  6047. rm -f conftest.$ac_objext conftest.$ac_ext
  6048. fi
  6049. rm -f conftest.$ac_objext conftest.$ac_ext
  6050. fi
  6051. echo "$as_me:6706: result: $cf_cv_define_sigwinch" >&5
  6052. echo "${ECHO_T}$cf_cv_define_sigwinch" >&6
  6053. if test "$cf_cv_define_sigwinch" = maybe ; then
  6054. echo "$as_me:6710: checking for actual SIGWINCH definition" >&5
  6055. echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6
  6056. if test "${cf_cv_fixup_sigwinch+set}" = set; then
  6057. echo $ECHO_N "(cached) $ECHO_C" >&6
  6058. else
  6059. cf_cv_fixup_sigwinch=unknown
  6060. cf_sigwinch=32
  6061. while test $cf_sigwinch != 1
  6062. do
  6063. cat >conftest.$ac_ext <<_ACEOF
  6064. #line 6721 "configure"
  6065. #include "confdefs.h"
  6066. #undef _XOPEN_SOURCE
  6067. #undef _POSIX_SOURCE
  6068. #undef _POSIX_C_SOURCE
  6069. #include <sys/types.h>
  6070. #include <sys/signal.h>
  6071. int
  6072. main ()
  6073. {
  6074. #if SIGWINCH != $cf_sigwinch
  6075. make an error
  6076. #endif
  6077. int x = SIGWINCH
  6078. ;
  6079. return 0;
  6080. }
  6081. _ACEOF
  6082. rm -f conftest.$ac_objext
  6083. if { (eval echo "$as_me:6743: \"$ac_compile\"") >&5
  6084. (eval $ac_compile) 2>&5
  6085. ac_status=$?
  6086. echo "$as_me:6746: \$? = $ac_status" >&5
  6087. (exit $ac_status); } &&
  6088. { ac_try='test -s conftest.$ac_objext'
  6089. { (eval echo "$as_me:6749: \"$ac_try\"") >&5
  6090. (eval $ac_try) 2>&5
  6091. ac_status=$?
  6092. echo "$as_me:6752: \$? = $ac_status" >&5
  6093. (exit $ac_status); }; }; then
  6094. cf_cv_fixup_sigwinch=$cf_sigwinch
  6095. break
  6096. else
  6097. echo "$as_me: failed program was:" >&5
  6098. cat conftest.$ac_ext >&5
  6099. fi
  6100. rm -f conftest.$ac_objext conftest.$ac_ext
  6101. cf_sigwinch=`expr $cf_sigwinch - 1`
  6102. done
  6103. fi
  6104. echo "$as_me:6766: result: $cf_cv_fixup_sigwinch" >&5
  6105. echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6
  6106. if test "$cf_cv_fixup_sigwinch" != unknown ; then
  6107. CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch"
  6108. fi
  6109. fi
  6110. # Checks for CODESET support.
  6111. echo "$as_me:6776: checking for nl_langinfo and CODESET" >&5
  6112. echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
  6113. if test "${am_cv_langinfo_codeset+set}" = set; then
  6114. echo $ECHO_N "(cached) $ECHO_C" >&6
  6115. else
  6116. cat >conftest.$ac_ext <<_ACEOF
  6117. #line 6782 "configure"
  6118. #include "confdefs.h"
  6119. #include <langinfo.h>
  6120. int
  6121. main ()
  6122. {
  6123. char* cs = nl_langinfo(CODESET);
  6124. ;
  6125. return 0;
  6126. }
  6127. _ACEOF
  6128. rm -f conftest.$ac_objext conftest$ac_exeext
  6129. if { (eval echo "$as_me:6794: \"$ac_link\"") >&5
  6130. (eval $ac_link) 2>&5
  6131. ac_status=$?
  6132. echo "$as_me:6797: \$? = $ac_status" >&5
  6133. (exit $ac_status); } &&
  6134. { ac_try='test -s conftest$ac_exeext'
  6135. { (eval echo "$as_me:6800: \"$ac_try\"") >&5
  6136. (eval $ac_try) 2>&5
  6137. ac_status=$?
  6138. echo "$as_me:6803: \$? = $ac_status" >&5
  6139. (exit $ac_status); }; }; then
  6140. am_cv_langinfo_codeset=yes
  6141. else
  6142. echo "$as_me: failed program was:" >&5
  6143. cat conftest.$ac_ext >&5
  6144. am_cv_langinfo_codeset=no
  6145. fi
  6146. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  6147. fi
  6148. echo "$as_me:6814: result: $am_cv_langinfo_codeset" >&5
  6149. echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
  6150. if test $am_cv_langinfo_codeset = yes; then
  6151. cat >>confdefs.h <<\EOF
  6152. #define HAVE_LANGINFO_CODESET 1
  6153. EOF
  6154. fi
  6155. # use these variables to work around a defect in gcc's fixincludes.
  6156. NCURSES_OK_WCHAR_T=
  6157. NCURSES_OK_WINT_T=
  6158. echo "$as_me:6828: checking if you want wide-character code" >&5
  6159. echo $ECHO_N "checking if you want wide-character code... $ECHO_C" >&6
  6160. # Check whether --enable-widec or --disable-widec was given.
  6161. if test "${enable_widec+set}" = set; then
  6162. enableval="$enable_widec"
  6163. with_widec=$enableval
  6164. else
  6165. with_widec=no
  6166. fi;
  6167. echo "$as_me:6838: result: $with_widec" >&5
  6168. echo "${ECHO_T}$with_widec" >&6
  6169. if test "$with_widec" = yes ; then
  6170. LIB_SUFFIX="w${LIB_SUFFIX}"
  6171. cat >>confdefs.h <<\EOF
  6172. #define USE_WIDEC_SUPPORT 1
  6173. EOF
  6174. echo "$as_me:6846: checking if we must define _XOPEN_SOURCE_EXTENDED" >&5
  6175. echo $ECHO_N "checking if we must define _XOPEN_SOURCE_EXTENDED... $ECHO_C" >&6
  6176. cat >conftest.$ac_ext <<_ACEOF
  6177. #line 6849 "configure"
  6178. #include "confdefs.h"
  6179. #include <sys/types.h>
  6180. int
  6181. main ()
  6182. {
  6183. #ifndef _XOPEN_SOURCE_EXTENDED
  6184. make an error
  6185. #endif
  6186. ;
  6187. return 0;
  6188. }
  6189. _ACEOF
  6190. rm -f conftest.$ac_objext
  6191. if { (eval echo "$as_me:6865: \"$ac_compile\"") >&5
  6192. (eval $ac_compile) 2>&5
  6193. ac_status=$?
  6194. echo "$as_me:6868: \$? = $ac_status" >&5
  6195. (exit $ac_status); } &&
  6196. { ac_try='test -s conftest.$ac_objext'
  6197. { (eval echo "$as_me:6871: \"$ac_try\"") >&5
  6198. (eval $ac_try) 2>&5
  6199. ac_status=$?
  6200. echo "$as_me:6874: \$? = $ac_status" >&5
  6201. (exit $ac_status); }; }; then
  6202. cf_result=no
  6203. else
  6204. echo "$as_me: failed program was:" >&5
  6205. cat conftest.$ac_ext >&5
  6206. cf_result=yes
  6207. fi
  6208. rm -f conftest.$ac_objext conftest.$ac_ext
  6209. echo "$as_me:6883: result: $cf_result" >&5
  6210. echo "${ECHO_T}$cf_result" >&6
  6211. if test "$cf_result" = yes ; then
  6212. CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
  6213. elif test "x" != "x" ; then
  6214. echo "$as_me:6889: checking checking for compatible value versus " >&5
  6215. echo $ECHO_N "checking checking for compatible value versus ... $ECHO_C" >&6
  6216. cat >conftest.$ac_ext <<_ACEOF
  6217. #line 6892 "configure"
  6218. #include "confdefs.h"
  6219. #include <sys/types.h>
  6220. int
  6221. main ()
  6222. {
  6223. #if _XOPEN_SOURCE_EXTENDED- < 0
  6224. make an error
  6225. #endif
  6226. ;
  6227. return 0;
  6228. }
  6229. _ACEOF
  6230. rm -f conftest.$ac_objext
  6231. if { (eval echo "$as_me:6908: \"$ac_compile\"") >&5
  6232. (eval $ac_compile) 2>&5
  6233. ac_status=$?
  6234. echo "$as_me:6911: \$? = $ac_status" >&5
  6235. (exit $ac_status); } &&
  6236. { ac_try='test -s conftest.$ac_objext'
  6237. { (eval echo "$as_me:6914: \"$ac_try\"") >&5
  6238. (eval $ac_try) 2>&5
  6239. ac_status=$?
  6240. echo "$as_me:6917: \$? = $ac_status" >&5
  6241. (exit $ac_status); }; }; then
  6242. cf_result=yes
  6243. else
  6244. echo "$as_me: failed program was:" >&5
  6245. cat conftest.$ac_ext >&5
  6246. cf_result=no
  6247. fi
  6248. rm -f conftest.$ac_objext conftest.$ac_ext
  6249. echo "$as_me:6926: result: $cf_result" >&5
  6250. echo "${ECHO_T}$cf_result" >&6
  6251. if test "$cf_result" = no ; then
  6252. # perhaps we can override it - try...
  6253. CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED="
  6254. fi
  6255. fi
  6256. # with_overwrite=no
  6257. NCURSES_CH_T=cchar_t
  6258. for ac_func in putwc btowc wctob mbtowc wctomb mblen mbrlen mbrtowc wcsrtombs mbsrtowcs wcstombs mbstowcs
  6259. do
  6260. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6261. echo "$as_me:6940: checking for $ac_func" >&5
  6262. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  6263. if eval "test \"\${$as_ac_var+set}\" = set"; then
  6264. echo $ECHO_N "(cached) $ECHO_C" >&6
  6265. else
  6266. cat >conftest.$ac_ext <<_ACEOF
  6267. #line 6946 "configure"
  6268. #include "confdefs.h"
  6269. /* System header to define __stub macros and hopefully few prototypes,
  6270. which can conflict with char $ac_func (); below. */
  6271. #include <assert.h>
  6272. /* Override any gcc2 internal prototype to avoid an error. */
  6273. #ifdef __cplusplus
  6274. extern "C"
  6275. #endif
  6276. /* We use char because int might match the return type of a gcc2
  6277. builtin and then its argument prototype would still apply. */
  6278. char $ac_func ();
  6279. char (*f) ();
  6280. int
  6281. main ()
  6282. {
  6283. /* The GNU C library defines this for functions which it implements
  6284. to always fail with ENOSYS. Some functions are actually named
  6285. something starting with __ and the normal name is an alias. */
  6286. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  6287. choke me
  6288. #else
  6289. f = $ac_func;
  6290. #endif
  6291. ;
  6292. return 0;
  6293. }
  6294. _ACEOF
  6295. rm -f conftest.$ac_objext conftest$ac_exeext
  6296. if { (eval echo "$as_me:6977: \"$ac_link\"") >&5
  6297. (eval $ac_link) 2>&5
  6298. ac_status=$?
  6299. echo "$as_me:6980: \$? = $ac_status" >&5
  6300. (exit $ac_status); } &&
  6301. { ac_try='test -s conftest$ac_exeext'
  6302. { (eval echo "$as_me:6983: \"$ac_try\"") >&5
  6303. (eval $ac_try) 2>&5
  6304. ac_status=$?
  6305. echo "$as_me:6986: \$? = $ac_status" >&5
  6306. (exit $ac_status); }; }; then
  6307. eval "$as_ac_var=yes"
  6308. else
  6309. echo "$as_me: failed program was:" >&5
  6310. cat conftest.$ac_ext >&5
  6311. eval "$as_ac_var=no"
  6312. fi
  6313. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  6314. fi
  6315. echo "$as_me:6996: result: `eval echo '${'$as_ac_var'}'`" >&5
  6316. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  6317. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6318. cat >>confdefs.h <<EOF
  6319. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6320. EOF
  6321. fi
  6322. done
  6323. if test "$ac_cv_func_putwc" != yes ; then
  6324. echo "$as_me:7008: checking for multibyte character support" >&5
  6325. echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6
  6326. if test "${cf_cv_utf8_lib+set}" = set; then
  6327. echo $ECHO_N "(cached) $ECHO_C" >&6
  6328. else
  6329. cf_save_LIBS="$LIBS"
  6330. cat >conftest.$ac_ext <<_ACEOF
  6331. #line 7016 "configure"
  6332. #include "confdefs.h"
  6333. #include <stdlib.h>
  6334. int
  6335. main ()
  6336. {
  6337. putwc(0,0);
  6338. ;
  6339. return 0;
  6340. }
  6341. _ACEOF
  6342. rm -f conftest.$ac_objext conftest$ac_exeext
  6343. if { (eval echo "$as_me:7029: \"$ac_link\"") >&5
  6344. (eval $ac_link) 2>&5
  6345. ac_status=$?
  6346. echo "$as_me:7032: \$? = $ac_status" >&5
  6347. (exit $ac_status); } &&
  6348. { ac_try='test -s conftest$ac_exeext'
  6349. { (eval echo "$as_me:7035: \"$ac_try\"") >&5
  6350. (eval $ac_try) 2>&5
  6351. ac_status=$?
  6352. echo "$as_me:7038: \$? = $ac_status" >&5
  6353. (exit $ac_status); }; }; then
  6354. cf_cv_utf8_lib=yes
  6355. else
  6356. echo "$as_me: failed program was:" >&5
  6357. cat conftest.$ac_ext >&5
  6358. # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
  6359. # will be set on completion of the AC_TRY_LINK below.
  6360. cf_cv_header_path_utf8=
  6361. cf_cv_library_path_utf8=
  6362. echo "${as_me-configure}:7050: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5
  6363. cat >conftest.$ac_ext <<_ACEOF
  6364. #line 7053 "configure"
  6365. #include "confdefs.h"
  6366. #include <libutf8.h>
  6367. int
  6368. main ()
  6369. {
  6370. putwc(0,0);
  6371. ;
  6372. return 0;
  6373. }
  6374. _ACEOF
  6375. rm -f conftest.$ac_objext conftest$ac_exeext
  6376. if { (eval echo "$as_me:7066: \"$ac_link\"") >&5
  6377. (eval $ac_link) 2>&5
  6378. ac_status=$?
  6379. echo "$as_me:7069: \$? = $ac_status" >&5
  6380. (exit $ac_status); } &&
  6381. { ac_try='test -s conftest$ac_exeext'
  6382. { (eval echo "$as_me:7072: \"$ac_try\"") >&5
  6383. (eval $ac_try) 2>&5
  6384. ac_status=$?
  6385. echo "$as_me:7075: \$? = $ac_status" >&5
  6386. (exit $ac_status); }; }; then
  6387. cf_cv_find_linkage_utf8=yes
  6388. else
  6389. echo "$as_me: failed program was:" >&5
  6390. cat conftest.$ac_ext >&5
  6391. cf_cv_find_linkage_utf8=no
  6392. echo "${as_me-configure}:7084: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5
  6393. cf_save_CPPFLAGS="$CPPFLAGS"
  6394. cf_test_CPPFLAGS="$CPPFLAGS"
  6395. cf_header_path_list=""
  6396. if test -n "${CFLAGS}${CPPFLAGS}" ; then
  6397. for cf_header_path in $CPPFLAGS $CFLAGS
  6398. do
  6399. case $cf_header_path in #(vi
  6400. -I*)
  6401. cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
  6402. test "$cf_header_path" != "NONE" && \
  6403. test -d "$cf_header_path" && \
  6404. {
  6405. test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
  6406. test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
  6407. test -d $cf_header_path/include/utf8 && cf_search="$cf_search $cf_header_path/include/utf8"
  6408. test -d $cf_header_path/include/utf8/include && cf_search="$cf_search $cf_header_path/include/utf8/include"
  6409. test -d $cf_header_path/utf8/include && cf_search="$cf_search $cf_header_path/utf8/include"
  6410. test -d $cf_header_path/utf8/include/utf8 && cf_search="$cf_search $cf_header_path/utf8/include/utf8"
  6411. }
  6412. cf_header_path_list="$cf_header_path_list $cf_search"
  6413. ;;
  6414. esac
  6415. done
  6416. fi
  6417. cf_search=""
  6418. test "/usr" != "$prefix" && \
  6419. test -d "/usr" && \
  6420. (test $prefix = NONE || test -d $prefix) && {
  6421. test -n "$verbose" && echo " ... testing for include-directories under /usr"
  6422. test -d /usr/include && cf_search="$cf_search /usr/include"
  6423. test -d /usr/include/utf8 && cf_search="$cf_search /usr/include/utf8"
  6424. test -d /usr/include/utf8/include && cf_search="$cf_search /usr/include/utf8/include"
  6425. test -d /usr/utf8/include && cf_search="$cf_search /usr/utf8/include"
  6426. test -d /usr/utf8/include/utf8 && cf_search="$cf_search /usr/utf8/include/utf8"
  6427. }
  6428. test "$prefix" != "NONE" && \
  6429. test -d "$prefix" && \
  6430. {
  6431. test -n "$verbose" && echo " ... testing for include-directories under $prefix"
  6432. test -d $prefix/include && cf_search="$cf_search $prefix/include"
  6433. test -d $prefix/include/utf8 && cf_search="$cf_search $prefix/include/utf8"
  6434. test -d $prefix/include/utf8/include && cf_search="$cf_search $prefix/include/utf8/include"
  6435. test -d $prefix/utf8/include && cf_search="$cf_search $prefix/utf8/include"
  6436. test -d $prefix/utf8/include/utf8 && cf_search="$cf_search $prefix/utf8/include/utf8"
  6437. }
  6438. test "/usr/local" != "$prefix" && \
  6439. test -d "/usr/local" && \
  6440. (test $prefix = NONE || test -d $prefix) && {
  6441. test -n "$verbose" && echo " ... testing for include-directories under /usr/local"
  6442. test -d /usr/local/include && cf_search="$cf_search /usr/local/include"
  6443. test -d /usr/local/include/utf8 && cf_search="$cf_search /usr/local/include/utf8"
  6444. test -d /usr/local/include/utf8/include && cf_search="$cf_search /usr/local/include/utf8/include"
  6445. test -d /usr/local/utf8/include && cf_search="$cf_search /usr/local/utf8/include"
  6446. test -d /usr/local/utf8/include/utf8 && cf_search="$cf_search /usr/local/utf8/include/utf8"
  6447. }
  6448. test "/opt" != "$prefix" && \
  6449. test -d "/opt" && \
  6450. (test $prefix = NONE || test -d $prefix) && {
  6451. test -n "$verbose" && echo " ... testing for include-directories under /opt"
  6452. test -d /opt/include && cf_search="$cf_search /opt/include"
  6453. test -d /opt/include/utf8 && cf_search="$cf_search /opt/include/utf8"
  6454. test -d /opt/include/utf8/include && cf_search="$cf_search /opt/include/utf8/include"
  6455. test -d /opt/utf8/include && cf_search="$cf_search /opt/utf8/include"
  6456. test -d /opt/utf8/include/utf8 && cf_search="$cf_search /opt/utf8/include/utf8"
  6457. }
  6458. test "$HOME" != "$prefix" && \
  6459. test -d "$HOME" && \
  6460. (test $prefix = NONE || test -d $prefix) && {
  6461. test -n "$verbose" && echo " ... testing for include-directories under $HOME"
  6462. test -d $HOME/include && cf_search="$cf_search $HOME/include"
  6463. test -d $HOME/include/utf8 && cf_search="$cf_search $HOME/include/utf8"
  6464. test -d $HOME/include/utf8/include && cf_search="$cf_search $HOME/include/utf8/include"
  6465. test -d $HOME/utf8/include && cf_search="$cf_search $HOME/utf8/include"
  6466. test -d $HOME/utf8/include/utf8 && cf_search="$cf_search $HOME/utf8/include/utf8"
  6467. }
  6468. test "$includedir" != NONE && \
  6469. test "$includedir" != "/usr/include" && \
  6470. test -d "$includedir" && {
  6471. test -d $includedir && cf_search="$cf_search $includedir"
  6472. test -d $includedir/utf8 && cf_search="$cf_search $includedir/utf8"
  6473. }
  6474. test "$oldincludedir" != NONE && \
  6475. test "$oldincludedir" != "/usr/include" && \
  6476. test -d "$oldincludedir" && {
  6477. test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
  6478. test -d $oldincludedir/utf8 && cf_search="$cf_search $oldincludedir/utf8"
  6479. }
  6480. cf_search="$cf_header_path_list $cf_search"
  6481. for cf_cv_header_path_utf8 in $cf_search
  6482. do
  6483. if test -d $cf_cv_header_path_utf8 ; then
  6484. test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6
  6485. echo "${as_me-configure}:7192: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5
  6486. CPPFLAGS="$cf_save_CPPFLAGS -I$cf_cv_header_path_utf8"
  6487. cat >conftest.$ac_ext <<_ACEOF
  6488. #line 7196 "configure"
  6489. #include "confdefs.h"
  6490. #include <libutf8.h>
  6491. int
  6492. main ()
  6493. {
  6494. putwc(0,0);
  6495. ;
  6496. return 0;
  6497. }
  6498. _ACEOF
  6499. rm -f conftest.$ac_objext
  6500. if { (eval echo "$as_me:7209: \"$ac_compile\"") >&5
  6501. (eval $ac_compile) 2>&5
  6502. ac_status=$?
  6503. echo "$as_me:7212: \$? = $ac_status" >&5
  6504. (exit $ac_status); } &&
  6505. { ac_try='test -s conftest.$ac_objext'
  6506. { (eval echo "$as_me:7215: \"$ac_try\"") >&5
  6507. (eval $ac_try) 2>&5
  6508. ac_status=$?
  6509. echo "$as_me:7218: \$? = $ac_status" >&5
  6510. (exit $ac_status); }; }; then
  6511. test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6
  6512. echo "${as_me-configure}:7223: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5
  6513. cf_cv_find_linkage_utf8=maybe
  6514. cf_test_CPPFLAGS="$CPPFLAGS"
  6515. break
  6516. else
  6517. echo "$as_me: failed program was:" >&5
  6518. cat conftest.$ac_ext >&5
  6519. CPPFLAGS="$cf_save_CPPFLAGS"
  6520. fi
  6521. rm -f conftest.$ac_objext conftest.$ac_ext
  6522. fi
  6523. done
  6524. if test "$cf_cv_find_linkage_utf8" = maybe ; then
  6525. echo "${as_me-configure}:7241: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5
  6526. cf_save_LIBS="$LIBS"
  6527. cf_save_LDFLAGS="$LDFLAGS"
  6528. if test "$cf_cv_find_linkage_utf8" != yes ; then
  6529. cf_library_path_list=""
  6530. if test -n "${LDFLAGS}${LIBS}" ; then
  6531. for cf_library_path in $LDFLAGS $LIBS
  6532. do
  6533. case $cf_library_path in #(vi
  6534. -L*)
  6535. cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
  6536. test "$cf_library_path" != "NONE" && \
  6537. test -d "$cf_library_path" && \
  6538. {
  6539. test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
  6540. test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
  6541. test -d $cf_library_path/lib/utf8 && cf_search="$cf_search $cf_library_path/lib/utf8"
  6542. test -d $cf_library_path/lib/utf8/lib && cf_search="$cf_search $cf_library_path/lib/utf8/lib"
  6543. test -d $cf_library_path/utf8/lib && cf_search="$cf_search $cf_library_path/utf8/lib"
  6544. test -d $cf_library_path/utf8/lib/utf8 && cf_search="$cf_search $cf_library_path/utf8/lib/utf8"
  6545. }
  6546. cf_library_path_list="$cf_library_path_list $cf_search"
  6547. ;;
  6548. esac
  6549. done
  6550. fi
  6551. cf_search=""
  6552. test "/usr" != "$prefix" && \
  6553. test -d "/usr" && \
  6554. (test $prefix = NONE || test -d $prefix) && {
  6555. test -n "$verbose" && echo " ... testing for lib-directories under /usr"
  6556. test -d /usr/lib && cf_search="$cf_search /usr/lib"
  6557. test -d /usr/lib/utf8 && cf_search="$cf_search /usr/lib/utf8"
  6558. test -d /usr/lib/utf8/lib && cf_search="$cf_search /usr/lib/utf8/lib"
  6559. test -d /usr/utf8/lib && cf_search="$cf_search /usr/utf8/lib"
  6560. test -d /usr/utf8/lib/utf8 && cf_search="$cf_search /usr/utf8/lib/utf8"
  6561. }
  6562. test "$prefix" != "NONE" && \
  6563. test -d "$prefix" && \
  6564. {
  6565. test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
  6566. test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
  6567. test -d $prefix/lib/utf8 && cf_search="$cf_search $prefix/lib/utf8"
  6568. test -d $prefix/lib/utf8/lib && cf_search="$cf_search $prefix/lib/utf8/lib"
  6569. test -d $prefix/utf8/lib && cf_search="$cf_search $prefix/utf8/lib"
  6570. test -d $prefix/utf8/lib/utf8 && cf_search="$cf_search $prefix/utf8/lib/utf8"
  6571. }
  6572. test "/usr/local" != "$prefix" && \
  6573. test -d "/usr/local" && \
  6574. (test $prefix = NONE || test -d $prefix) && {
  6575. test -n "$verbose" && echo " ... testing for lib-directories under /usr/local"
  6576. test -d /usr/local/lib && cf_search="$cf_search /usr/local/lib"
  6577. test -d /usr/local/lib/utf8 && cf_search="$cf_search /usr/local/lib/utf8"
  6578. test -d /usr/local/lib/utf8/lib && cf_search="$cf_search /usr/local/lib/utf8/lib"
  6579. test -d /usr/local/utf8/lib && cf_search="$cf_search /usr/local/utf8/lib"
  6580. test -d /usr/local/utf8/lib/utf8 && cf_search="$cf_search /usr/local/utf8/lib/utf8"
  6581. }
  6582. test "/opt" != "$prefix" && \
  6583. test -d "/opt" && \
  6584. (test $prefix = NONE || test -d $prefix) && {
  6585. test -n "$verbose" && echo " ... testing for lib-directories under /opt"
  6586. test -d /opt/lib && cf_search="$cf_search /opt/lib"
  6587. test -d /opt/lib/utf8 && cf_search="$cf_search /opt/lib/utf8"
  6588. test -d /opt/lib/utf8/lib && cf_search="$cf_search /opt/lib/utf8/lib"
  6589. test -d /opt/utf8/lib && cf_search="$cf_search /opt/utf8/lib"
  6590. test -d /opt/utf8/lib/utf8 && cf_search="$cf_search /opt/utf8/lib/utf8"
  6591. }
  6592. test "$HOME" != "$prefix" && \
  6593. test -d "$HOME" && \
  6594. (test $prefix = NONE || test -d $prefix) && {
  6595. test -n "$verbose" && echo " ... testing for lib-directories under $HOME"
  6596. test -d $HOME/lib && cf_search="$cf_search $HOME/lib"
  6597. test -d $HOME/lib/utf8 && cf_search="$cf_search $HOME/lib/utf8"
  6598. test -d $HOME/lib/utf8/lib && cf_search="$cf_search $HOME/lib/utf8/lib"
  6599. test -d $HOME/utf8/lib && cf_search="$cf_search $HOME/utf8/lib"
  6600. test -d $HOME/utf8/lib/utf8 && cf_search="$cf_search $HOME/utf8/lib/utf8"
  6601. }
  6602. cf_search="$cf_library_path_list $cf_search"
  6603. for cf_cv_library_path_utf8 in $cf_search
  6604. do
  6605. if test -d $cf_cv_library_path_utf8 ; then
  6606. test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6
  6607. echo "${as_me-configure}:7337: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5
  6608. CPPFLAGS="$cf_test_CPPFLAGS"
  6609. LIBS="-lutf8 $cf_save_LIBS"
  6610. LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8"
  6611. cat >conftest.$ac_ext <<_ACEOF
  6612. #line 7343 "configure"
  6613. #include "confdefs.h"
  6614. #include <libutf8.h>
  6615. int
  6616. main ()
  6617. {
  6618. putwc(0,0);
  6619. ;
  6620. return 0;
  6621. }
  6622. _ACEOF
  6623. rm -f conftest.$ac_objext conftest$ac_exeext
  6624. if { (eval echo "$as_me:7356: \"$ac_link\"") >&5
  6625. (eval $ac_link) 2>&5
  6626. ac_status=$?
  6627. echo "$as_me:7359: \$? = $ac_status" >&5
  6628. (exit $ac_status); } &&
  6629. { ac_try='test -s conftest$ac_exeext'
  6630. { (eval echo "$as_me:7362: \"$ac_try\"") >&5
  6631. (eval $ac_try) 2>&5
  6632. ac_status=$?
  6633. echo "$as_me:7365: \$? = $ac_status" >&5
  6634. (exit $ac_status); }; }; then
  6635. test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6
  6636. echo "${as_me-configure}:7370: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5
  6637. cf_cv_find_linkage_utf8=yes
  6638. cf_cv_library_file_utf8="-lutf8"
  6639. break
  6640. else
  6641. echo "$as_me: failed program was:" >&5
  6642. cat conftest.$ac_ext >&5
  6643. CPPFLAGS="$cf_save_CPPFLAGS"
  6644. LIBS="$cf_save_LIBS"
  6645. LDFLAGS="$cf_save_LDFLAGS"
  6646. fi
  6647. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  6648. fi
  6649. done
  6650. LIBS="$cf_save_LIBS"
  6651. CPPFLAGS="$cf_save_CPPFLAGS"
  6652. LDFLAGS="$cf_save_LDFLAGS"
  6653. fi
  6654. else
  6655. cf_cv_find_linkage_utf8=no
  6656. fi
  6657. fi
  6658. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  6659. if test "$cf_cv_find_linkage_utf8" = yes ; then
  6660. cf_cv_utf8_lib=add-on
  6661. else
  6662. cf_cv_utf8_lib=no
  6663. fi
  6664. fi
  6665. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  6666. fi
  6667. echo "$as_me:7408: result: $cf_cv_utf8_lib" >&5
  6668. echo "${ECHO_T}$cf_cv_utf8_lib" >&6
  6669. # HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between
  6670. # ncurses/ncursesw:
  6671. if test "$cf_cv_utf8_lib" = "add-on" ; then
  6672. cat >>confdefs.h <<\EOF
  6673. #define HAVE_LIBUTF8_H 1
  6674. EOF
  6675. if test -n "$cf_cv_header_path_utf8" ; then
  6676. for cf_add_incdir in $cf_cv_header_path_utf8
  6677. do
  6678. while test $cf_add_incdir != /usr/include
  6679. do
  6680. if test -d $cf_add_incdir
  6681. then
  6682. cf_have_incdir=no
  6683. if test -n "$CFLAGS$CPPFLAGS" ; then
  6684. # a loop is needed to ensure we can add subdirs of existing dirs
  6685. for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
  6686. if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
  6687. cf_have_incdir=yes; break
  6688. fi
  6689. done
  6690. fi
  6691. if test "$cf_have_incdir" = no ; then
  6692. if test "$cf_add_incdir" = /usr/local/include ; then
  6693. if test "$GCC" = yes
  6694. then
  6695. cf_save_CPPFLAGS=$CPPFLAGS
  6696. CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
  6697. cat >conftest.$ac_ext <<_ACEOF
  6698. #line 7442 "configure"
  6699. #include "confdefs.h"
  6700. #include <stdio.h>
  6701. int
  6702. main ()
  6703. {
  6704. printf("Hello")
  6705. ;
  6706. return 0;
  6707. }
  6708. _ACEOF
  6709. rm -f conftest.$ac_objext
  6710. if { (eval echo "$as_me:7454: \"$ac_compile\"") >&5
  6711. (eval $ac_compile) 2>&5
  6712. ac_status=$?
  6713. echo "$as_me:7457: \$? = $ac_status" >&5
  6714. (exit $ac_status); } &&
  6715. { ac_try='test -s conftest.$ac_objext'
  6716. { (eval echo "$as_me:7460: \"$ac_try\"") >&5
  6717. (eval $ac_try) 2>&5
  6718. ac_status=$?
  6719. echo "$as_me:7463: \$? = $ac_status" >&5
  6720. (exit $ac_status); }; }; then
  6721. :
  6722. else
  6723. echo "$as_me: failed program was:" >&5
  6724. cat conftest.$ac_ext >&5
  6725. cf_have_incdir=yes
  6726. fi
  6727. rm -f conftest.$ac_objext conftest.$ac_ext
  6728. CPPFLAGS=$cf_save_CPPFLAGS
  6729. fi
  6730. fi
  6731. fi
  6732. if test "$cf_have_incdir" = no ; then
  6733. test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
  6734. echo "${as_me-configure}:7480: testing adding $cf_add_incdir to include-path ..." 1>&5
  6735. CPPFLAGS="-I$cf_add_incdir $CPPFLAGS"
  6736. cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
  6737. test "$cf_top_incdir" = "$cf_add_incdir" && break
  6738. cf_add_incdir="$cf_top_incdir"
  6739. else
  6740. break
  6741. fi
  6742. fi
  6743. done
  6744. done
  6745. fi
  6746. if test -n "$cf_cv_library_path_utf8" ; then
  6747. for cf_add_libdir in $cf_cv_library_path_utf8
  6748. do
  6749. if test $cf_add_libdir = /usr/lib ; then
  6750. :
  6751. elif test -d $cf_add_libdir
  6752. then
  6753. cf_have_libdir=no
  6754. if test -n "$LDFLAGS$LIBS" ; then
  6755. # a loop is needed to ensure we can add subdirs of existing dirs
  6756. for cf_test_libdir in $LDFLAGS $LIBS ; do
  6757. if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
  6758. cf_have_libdir=yes; break
  6759. fi
  6760. done
  6761. fi
  6762. if test "$cf_have_libdir" = no ; then
  6763. test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
  6764. echo "${as_me-configure}:7514: testing adding $cf_add_libdir to library-path ..." 1>&5
  6765. LDFLAGS="-L$cf_add_libdir $LDFLAGS"
  6766. fi
  6767. fi
  6768. done
  6769. fi
  6770. LIBS="-lutf8 $LIBS"
  6771. fi
  6772. if test "$cf_cv_utf8_lib" != no ; then
  6773. NCURSES_LIBUTF8=1
  6774. fi
  6775. fi
  6776. # This is needed on Tru64 5.0 to declare mbstate_t
  6777. echo "$as_me:7531: checking if we must include wchar.h to declare mbstate_t" >&5
  6778. echo $ECHO_N "checking if we must include wchar.h to declare mbstate_t... $ECHO_C" >&6
  6779. if test "${cf_cv_mbstate_t+set}" = set; then
  6780. echo $ECHO_N "(cached) $ECHO_C" >&6
  6781. else
  6782. cat >conftest.$ac_ext <<_ACEOF
  6783. #line 7538 "configure"
  6784. #include "confdefs.h"
  6785. #include <stdlib.h>
  6786. #include <stdarg.h>
  6787. #include <stdio.h>
  6788. #ifdef HAVE_LIBUTF8_H
  6789. #include <libutf8.h>
  6790. #endif
  6791. int
  6792. main ()
  6793. {
  6794. mbstate_t state
  6795. ;
  6796. return 0;
  6797. }
  6798. _ACEOF
  6799. rm -f conftest.$ac_objext
  6800. if { (eval echo "$as_me:7556: \"$ac_compile\"") >&5
  6801. (eval $ac_compile) 2>&5
  6802. ac_status=$?
  6803. echo "$as_me:7559: \$? = $ac_status" >&5
  6804. (exit $ac_status); } &&
  6805. { ac_try='test -s conftest.$ac_objext'
  6806. { (eval echo "$as_me:7562: \"$ac_try\"") >&5
  6807. (eval $ac_try) 2>&5
  6808. ac_status=$?
  6809. echo "$as_me:7565: \$? = $ac_status" >&5
  6810. (exit $ac_status); }; }; then
  6811. cf_cv_mbstate_t=no
  6812. else
  6813. echo "$as_me: failed program was:" >&5
  6814. cat conftest.$ac_ext >&5
  6815. cat >conftest.$ac_ext <<_ACEOF
  6816. #line 7572 "configure"
  6817. #include "confdefs.h"
  6818. #include <stdlib.h>
  6819. #include <stdarg.h>
  6820. #include <stdio.h>
  6821. #include <wchar.h>
  6822. #ifdef HAVE_LIBUTF8_H
  6823. #include <libutf8.h>
  6824. #endif
  6825. int
  6826. main ()
  6827. {
  6828. mbstate_t value
  6829. ;
  6830. return 0;
  6831. }
  6832. _ACEOF
  6833. rm -f conftest.$ac_objext
  6834. if { (eval echo "$as_me:7591: \"$ac_compile\"") >&5
  6835. (eval $ac_compile) 2>&5
  6836. ac_status=$?
  6837. echo "$as_me:7594: \$? = $ac_status" >&5
  6838. (exit $ac_status); } &&
  6839. { ac_try='test -s conftest.$ac_objext'
  6840. { (eval echo "$as_me:7597: \"$ac_try\"") >&5
  6841. (eval $ac_try) 2>&5
  6842. ac_status=$?
  6843. echo "$as_me:7600: \$? = $ac_status" >&5
  6844. (exit $ac_status); }; }; then
  6845. cf_cv_mbstate_t=yes
  6846. else
  6847. echo "$as_me: failed program was:" >&5
  6848. cat conftest.$ac_ext >&5
  6849. cf_cv_mbstate_t=unknown
  6850. fi
  6851. rm -f conftest.$ac_objext conftest.$ac_ext
  6852. fi
  6853. rm -f conftest.$ac_objext conftest.$ac_ext
  6854. fi
  6855. echo "$as_me:7612: result: $cf_cv_mbstate_t" >&5
  6856. echo "${ECHO_T}$cf_cv_mbstate_t" >&6
  6857. if test "$cf_cv_mbstate_t" = yes ; then
  6858. cat >>confdefs.h <<\EOF
  6859. #define NEED_WCHAR_H 1
  6860. EOF
  6861. NEED_WCHAR_H=1
  6862. fi
  6863. # if we do not find mbstate_t in either place, use substitution to provide a fallback.
  6864. if test "$cf_cv_mbstate_t" = unknown ; then
  6865. NCURSES_MBSTATE_T=1
  6866. fi
  6867. # This is needed on Tru64 5.0 to declare wchar_t
  6868. echo "$as_me:7629: checking if we must include wchar.h to declare wchar_t" >&5
  6869. echo $ECHO_N "checking if we must include wchar.h to declare wchar_t... $ECHO_C" >&6
  6870. if test "${cf_cv_wchar_t+set}" = set; then
  6871. echo $ECHO_N "(cached) $ECHO_C" >&6
  6872. else
  6873. cat >conftest.$ac_ext <<_ACEOF
  6874. #line 7636 "configure"
  6875. #include "confdefs.h"
  6876. #include <stdlib.h>
  6877. #include <stdarg.h>
  6878. #include <stdio.h>
  6879. #ifdef HAVE_LIBUTF8_H
  6880. #include <libutf8.h>
  6881. #endif
  6882. int
  6883. main ()
  6884. {
  6885. wchar_t state
  6886. ;
  6887. return 0;
  6888. }
  6889. _ACEOF
  6890. rm -f conftest.$ac_objext
  6891. if { (eval echo "$as_me:7654: \"$ac_compile\"") >&5
  6892. (eval $ac_compile) 2>&5
  6893. ac_status=$?
  6894. echo "$as_me:7657: \$? = $ac_status" >&5
  6895. (exit $ac_status); } &&
  6896. { ac_try='test -s conftest.$ac_objext'
  6897. { (eval echo "$as_me:7660: \"$ac_try\"") >&5
  6898. (eval $ac_try) 2>&5
  6899. ac_status=$?
  6900. echo "$as_me:7663: \$? = $ac_status" >&5
  6901. (exit $ac_status); }; }; then
  6902. cf_cv_wchar_t=no
  6903. else
  6904. echo "$as_me: failed program was:" >&5
  6905. cat conftest.$ac_ext >&5
  6906. cat >conftest.$ac_ext <<_ACEOF
  6907. #line 7670 "configure"
  6908. #include "confdefs.h"
  6909. #include <stdlib.h>
  6910. #include <stdarg.h>
  6911. #include <stdio.h>
  6912. #include <wchar.h>
  6913. #ifdef HAVE_LIBUTF8_H
  6914. #include <libutf8.h>
  6915. #endif
  6916. int
  6917. main ()
  6918. {
  6919. wchar_t value
  6920. ;
  6921. return 0;
  6922. }
  6923. _ACEOF
  6924. rm -f conftest.$ac_objext
  6925. if { (eval echo "$as_me:7689: \"$ac_compile\"") >&5
  6926. (eval $ac_compile) 2>&5
  6927. ac_status=$?
  6928. echo "$as_me:7692: \$? = $ac_status" >&5
  6929. (exit $ac_status); } &&
  6930. { ac_try='test -s conftest.$ac_objext'
  6931. { (eval echo "$as_me:7695: \"$ac_try\"") >&5
  6932. (eval $ac_try) 2>&5
  6933. ac_status=$?
  6934. echo "$as_me:7698: \$? = $ac_status" >&5
  6935. (exit $ac_status); }; }; then
  6936. cf_cv_wchar_t=yes
  6937. else
  6938. echo "$as_me: failed program was:" >&5
  6939. cat conftest.$ac_ext >&5
  6940. cf_cv_wchar_t=unknown
  6941. fi
  6942. rm -f conftest.$ac_objext conftest.$ac_ext
  6943. fi
  6944. rm -f conftest.$ac_objext conftest.$ac_ext
  6945. fi
  6946. echo "$as_me:7710: result: $cf_cv_wchar_t" >&5
  6947. echo "${ECHO_T}$cf_cv_wchar_t" >&6
  6948. if test "$cf_cv_wchar_t" = yes ; then
  6949. cat >>confdefs.h <<\EOF
  6950. #define NEED_WCHAR_H 1
  6951. EOF
  6952. NEED_WCHAR_H=1
  6953. fi
  6954. # if we do not find wchar_t in either place, use substitution to provide a fallback.
  6955. if test "$cf_cv_wchar_t" = unknown ; then
  6956. NCURSES_WCHAR_T=1
  6957. fi
  6958. # if we find wchar_t in either place, use substitution to provide a fallback.
  6959. if test "$cf_cv_wchar_t" != unknown ; then
  6960. NCURSES_OK_WCHAR_T=1
  6961. fi
  6962. # This is needed on Tru64 5.0 to declare wint_t
  6963. echo "$as_me:7732: checking if we must include wchar.h to declare wint_t" >&5
  6964. echo $ECHO_N "checking if we must include wchar.h to declare wint_t... $ECHO_C" >&6
  6965. if test "${cf_cv_wint_t+set}" = set; then
  6966. echo $ECHO_N "(cached) $ECHO_C" >&6
  6967. else
  6968. cat >conftest.$ac_ext <<_ACEOF
  6969. #line 7739 "configure"
  6970. #include "confdefs.h"
  6971. #include <stdlib.h>
  6972. #include <stdarg.h>
  6973. #include <stdio.h>
  6974. #ifdef HAVE_LIBUTF8_H
  6975. #include <libutf8.h>
  6976. #endif
  6977. int
  6978. main ()
  6979. {
  6980. wint_t state
  6981. ;
  6982. return 0;
  6983. }
  6984. _ACEOF
  6985. rm -f conftest.$ac_objext
  6986. if { (eval echo "$as_me:7757: \"$ac_compile\"") >&5
  6987. (eval $ac_compile) 2>&5
  6988. ac_status=$?
  6989. echo "$as_me:7760: \$? = $ac_status" >&5
  6990. (exit $ac_status); } &&
  6991. { ac_try='test -s conftest.$ac_objext'
  6992. { (eval echo "$as_me:7763: \"$ac_try\"") >&5
  6993. (eval $ac_try) 2>&5
  6994. ac_status=$?
  6995. echo "$as_me:7766: \$? = $ac_status" >&5
  6996. (exit $ac_status); }; }; then
  6997. cf_cv_wint_t=no
  6998. else
  6999. echo "$as_me: failed program was:" >&5
  7000. cat conftest.$ac_ext >&5
  7001. cat >conftest.$ac_ext <<_ACEOF
  7002. #line 7773 "configure"
  7003. #include "confdefs.h"
  7004. #include <stdlib.h>
  7005. #include <stdarg.h>
  7006. #include <stdio.h>
  7007. #include <wchar.h>
  7008. #ifdef HAVE_LIBUTF8_H
  7009. #include <libutf8.h>
  7010. #endif
  7011. int
  7012. main ()
  7013. {
  7014. wint_t value
  7015. ;
  7016. return 0;
  7017. }
  7018. _ACEOF
  7019. rm -f conftest.$ac_objext
  7020. if { (eval echo "$as_me:7792: \"$ac_compile\"") >&5
  7021. (eval $ac_compile) 2>&5
  7022. ac_status=$?
  7023. echo "$as_me:7795: \$? = $ac_status" >&5
  7024. (exit $ac_status); } &&
  7025. { ac_try='test -s conftest.$ac_objext'
  7026. { (eval echo "$as_me:7798: \"$ac_try\"") >&5
  7027. (eval $ac_try) 2>&5
  7028. ac_status=$?
  7029. echo "$as_me:7801: \$? = $ac_status" >&5
  7030. (exit $ac_status); }; }; then
  7031. cf_cv_wint_t=yes
  7032. else
  7033. echo "$as_me: failed program was:" >&5
  7034. cat conftest.$ac_ext >&5
  7035. cf_cv_wint_t=unknown
  7036. fi
  7037. rm -f conftest.$ac_objext conftest.$ac_ext
  7038. fi
  7039. rm -f conftest.$ac_objext conftest.$ac_ext
  7040. fi
  7041. echo "$as_me:7813: result: $cf_cv_wint_t" >&5
  7042. echo "${ECHO_T}$cf_cv_wint_t" >&6
  7043. if test "$cf_cv_wint_t" = yes ; then
  7044. cat >>confdefs.h <<\EOF
  7045. #define NEED_WCHAR_H 1
  7046. EOF
  7047. NEED_WCHAR_H=1
  7048. fi
  7049. # if we do not find wint_t in either place, use substitution to provide a fallback.
  7050. if test "$cf_cv_wint_t" = unknown ; then
  7051. NCURSES_WINT_T=1
  7052. fi
  7053. # if we find wint_t in either place, use substitution to provide a fallback.
  7054. if test "$cf_cv_wint_t" != unknown ; then
  7055. NCURSES_OK_WINT_T=1
  7056. fi
  7057. if test "$NCURSES_MBSTATE_T" != 0; then
  7058. cat >>confdefs.h <<\EOF
  7059. #define NEED_MBSTATE_T_DEF 1
  7060. EOF
  7061. fi
  7062. fi
  7063. ### use option --disable-lp64 to allow long chtype
  7064. case $cf_cv_abi_version in
  7065. [345]*)
  7066. default_with_lp64=no
  7067. ;;
  7068. *)
  7069. default_with_lp64=yes
  7070. ;;
  7071. esac
  7072. echo "$as_me:7852: checking whether to enable _LP64 definition in curses.h" >&5
  7073. echo $ECHO_N "checking whether to enable _LP64 definition in curses.h... $ECHO_C" >&6
  7074. # Check whether --enable-lp64 or --disable-lp64 was given.
  7075. if test "${enable_lp64+set}" = set; then
  7076. enableval="$enable_lp64"
  7077. with_lp64=$enableval
  7078. else
  7079. with_lp64=$default_with_lp64
  7080. fi;
  7081. echo "$as_me:7862: result: $with_lp64" >&5
  7082. echo "${ECHO_T}$with_lp64" >&6
  7083. if test "$with_lp64" = yes ; then
  7084. cf_cv_enable_lp64=1
  7085. else
  7086. cf_cv_enable_lp64=0
  7087. fi
  7088. # Check whether --enable-largefile or --disable-largefile was given.
  7089. if test "${enable_largefile+set}" = set; then
  7090. enableval="$enable_largefile"
  7091. fi;
  7092. if test "$enable_largefile" != no; then
  7093. echo "$as_me:7878: checking for special C compiler options needed for large files" >&5
  7094. echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
  7095. if test "${ac_cv_sys_largefile_CC+set}" = set; then
  7096. echo $ECHO_N "(cached) $ECHO_C" >&6
  7097. else
  7098. ac_cv_sys_largefile_CC=no
  7099. if test "$GCC" != yes; then
  7100. ac_save_CC=$CC
  7101. while :; do
  7102. # IRIX 6.2 and later do not support large files by default,
  7103. # so use the C compiler's -n32 option if that helps.
  7104. cat >conftest.$ac_ext <<_ACEOF
  7105. #line 7890 "configure"
  7106. #include "confdefs.h"
  7107. #include <sys/types.h>
  7108. /* Check that off_t can represent 2**63 - 1 correctly.
  7109. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7110. since some C++ compilers masquerading as C compilers
  7111. incorrectly reject 9223372036854775807. */
  7112. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7113. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7114. && LARGE_OFF_T % 2147483647 == 1)
  7115. ? 1 : -1];
  7116. int
  7117. main ()
  7118. {
  7119. ;
  7120. return 0;
  7121. }
  7122. _ACEOF
  7123. rm -f conftest.$ac_objext
  7124. if { (eval echo "$as_me:7910: \"$ac_compile\"") >&5
  7125. (eval $ac_compile) 2>&5
  7126. ac_status=$?
  7127. echo "$as_me:7913: \$? = $ac_status" >&5
  7128. (exit $ac_status); } &&
  7129. { ac_try='test -s conftest.$ac_objext'
  7130. { (eval echo "$as_me:7916: \"$ac_try\"") >&5
  7131. (eval $ac_try) 2>&5
  7132. ac_status=$?
  7133. echo "$as_me:7919: \$? = $ac_status" >&5
  7134. (exit $ac_status); }; }; then
  7135. break
  7136. else
  7137. echo "$as_me: failed program was:" >&5
  7138. cat conftest.$ac_ext >&5
  7139. fi
  7140. rm -f conftest.$ac_objext
  7141. CC="$CC -n32"
  7142. rm -f conftest.$ac_objext
  7143. if { (eval echo "$as_me:7929: \"$ac_compile\"") >&5
  7144. (eval $ac_compile) 2>&5
  7145. ac_status=$?
  7146. echo "$as_me:7932: \$? = $ac_status" >&5
  7147. (exit $ac_status); } &&
  7148. { ac_try='test -s conftest.$ac_objext'
  7149. { (eval echo "$as_me:7935: \"$ac_try\"") >&5
  7150. (eval $ac_try) 2>&5
  7151. ac_status=$?
  7152. echo "$as_me:7938: \$? = $ac_status" >&5
  7153. (exit $ac_status); }; }; then
  7154. ac_cv_sys_largefile_CC=' -n32'; break
  7155. else
  7156. echo "$as_me: failed program was:" >&5
  7157. cat conftest.$ac_ext >&5
  7158. fi
  7159. rm -f conftest.$ac_objext
  7160. break
  7161. done
  7162. CC=$ac_save_CC
  7163. rm -f conftest.$ac_ext
  7164. fi
  7165. fi
  7166. echo "$as_me:7952: result: $ac_cv_sys_largefile_CC" >&5
  7167. echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
  7168. if test "$ac_cv_sys_largefile_CC" != no; then
  7169. CC=$CC$ac_cv_sys_largefile_CC
  7170. fi
  7171. echo "$as_me:7958: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  7172. echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
  7173. if test "${ac_cv_sys_file_offset_bits+set}" = set; then
  7174. echo $ECHO_N "(cached) $ECHO_C" >&6
  7175. else
  7176. while :; do
  7177. ac_cv_sys_file_offset_bits=no
  7178. cat >conftest.$ac_ext <<_ACEOF
  7179. #line 7966 "configure"
  7180. #include "confdefs.h"
  7181. #include <sys/types.h>
  7182. /* Check that off_t can represent 2**63 - 1 correctly.
  7183. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7184. since some C++ compilers masquerading as C compilers
  7185. incorrectly reject 9223372036854775807. */
  7186. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7187. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7188. && LARGE_OFF_T % 2147483647 == 1)
  7189. ? 1 : -1];
  7190. int
  7191. main ()
  7192. {
  7193. ;
  7194. return 0;
  7195. }
  7196. _ACEOF
  7197. rm -f conftest.$ac_objext
  7198. if { (eval echo "$as_me:7986: \"$ac_compile\"") >&5
  7199. (eval $ac_compile) 2>&5
  7200. ac_status=$?
  7201. echo "$as_me:7989: \$? = $ac_status" >&5
  7202. (exit $ac_status); } &&
  7203. { ac_try='test -s conftest.$ac_objext'
  7204. { (eval echo "$as_me:7992: \"$ac_try\"") >&5
  7205. (eval $ac_try) 2>&5
  7206. ac_status=$?
  7207. echo "$as_me:7995: \$? = $ac_status" >&5
  7208. (exit $ac_status); }; }; then
  7209. break
  7210. else
  7211. echo "$as_me: failed program was:" >&5
  7212. cat conftest.$ac_ext >&5
  7213. fi
  7214. rm -f conftest.$ac_objext conftest.$ac_ext
  7215. cat >conftest.$ac_ext <<_ACEOF
  7216. #line 8004 "configure"
  7217. #include "confdefs.h"
  7218. #define _FILE_OFFSET_BITS 64
  7219. #include <sys/types.h>
  7220. /* Check that off_t can represent 2**63 - 1 correctly.
  7221. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7222. since some C++ compilers masquerading as C compilers
  7223. incorrectly reject 9223372036854775807. */
  7224. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7225. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7226. && LARGE_OFF_T % 2147483647 == 1)
  7227. ? 1 : -1];
  7228. int
  7229. main ()
  7230. {
  7231. ;
  7232. return 0;
  7233. }
  7234. _ACEOF
  7235. rm -f conftest.$ac_objext
  7236. if { (eval echo "$as_me:8025: \"$ac_compile\"") >&5
  7237. (eval $ac_compile) 2>&5
  7238. ac_status=$?
  7239. echo "$as_me:8028: \$? = $ac_status" >&5
  7240. (exit $ac_status); } &&
  7241. { ac_try='test -s conftest.$ac_objext'
  7242. { (eval echo "$as_me:8031: \"$ac_try\"") >&5
  7243. (eval $ac_try) 2>&5
  7244. ac_status=$?
  7245. echo "$as_me:8034: \$? = $ac_status" >&5
  7246. (exit $ac_status); }; }; then
  7247. ac_cv_sys_file_offset_bits=64; break
  7248. else
  7249. echo "$as_me: failed program was:" >&5
  7250. cat conftest.$ac_ext >&5
  7251. fi
  7252. rm -f conftest.$ac_objext conftest.$ac_ext
  7253. break
  7254. done
  7255. fi
  7256. echo "$as_me:8045: result: $ac_cv_sys_file_offset_bits" >&5
  7257. echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
  7258. if test "$ac_cv_sys_file_offset_bits" != no; then
  7259. cat >>confdefs.h <<EOF
  7260. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  7261. EOF
  7262. fi
  7263. rm -f conftest*
  7264. echo "$as_me:8055: checking for _LARGE_FILES value needed for large files" >&5
  7265. echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
  7266. if test "${ac_cv_sys_large_files+set}" = set; then
  7267. echo $ECHO_N "(cached) $ECHO_C" >&6
  7268. else
  7269. while :; do
  7270. ac_cv_sys_large_files=no
  7271. cat >conftest.$ac_ext <<_ACEOF
  7272. #line 8063 "configure"
  7273. #include "confdefs.h"
  7274. #include <sys/types.h>
  7275. /* Check that off_t can represent 2**63 - 1 correctly.
  7276. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7277. since some C++ compilers masquerading as C compilers
  7278. incorrectly reject 9223372036854775807. */
  7279. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7280. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7281. && LARGE_OFF_T % 2147483647 == 1)
  7282. ? 1 : -1];
  7283. int
  7284. main ()
  7285. {
  7286. ;
  7287. return 0;
  7288. }
  7289. _ACEOF
  7290. rm -f conftest.$ac_objext
  7291. if { (eval echo "$as_me:8083: \"$ac_compile\"") >&5
  7292. (eval $ac_compile) 2>&5
  7293. ac_status=$?
  7294. echo "$as_me:8086: \$? = $ac_status" >&5
  7295. (exit $ac_status); } &&
  7296. { ac_try='test -s conftest.$ac_objext'
  7297. { (eval echo "$as_me:8089: \"$ac_try\"") >&5
  7298. (eval $ac_try) 2>&5
  7299. ac_status=$?
  7300. echo "$as_me:8092: \$? = $ac_status" >&5
  7301. (exit $ac_status); }; }; then
  7302. break
  7303. else
  7304. echo "$as_me: failed program was:" >&5
  7305. cat conftest.$ac_ext >&5
  7306. fi
  7307. rm -f conftest.$ac_objext conftest.$ac_ext
  7308. cat >conftest.$ac_ext <<_ACEOF
  7309. #line 8101 "configure"
  7310. #include "confdefs.h"
  7311. #define _LARGE_FILES 1
  7312. #include <sys/types.h>
  7313. /* Check that off_t can represent 2**63 - 1 correctly.
  7314. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7315. since some C++ compilers masquerading as C compilers
  7316. incorrectly reject 9223372036854775807. */
  7317. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7318. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7319. && LARGE_OFF_T % 2147483647 == 1)
  7320. ? 1 : -1];
  7321. int
  7322. main ()
  7323. {
  7324. ;
  7325. return 0;
  7326. }
  7327. _ACEOF
  7328. rm -f conftest.$ac_objext
  7329. if { (eval echo "$as_me:8122: \"$ac_compile\"") >&5
  7330. (eval $ac_compile) 2>&5
  7331. ac_status=$?
  7332. echo "$as_me:8125: \$? = $ac_status" >&5
  7333. (exit $ac_status); } &&
  7334. { ac_try='test -s conftest.$ac_objext'
  7335. { (eval echo "$as_me:8128: \"$ac_try\"") >&5
  7336. (eval $ac_try) 2>&5
  7337. ac_status=$?
  7338. echo "$as_me:8131: \$? = $ac_status" >&5
  7339. (exit $ac_status); }; }; then
  7340. ac_cv_sys_large_files=1; break
  7341. else
  7342. echo "$as_me: failed program was:" >&5
  7343. cat conftest.$ac_ext >&5
  7344. fi
  7345. rm -f conftest.$ac_objext conftest.$ac_ext
  7346. break
  7347. done
  7348. fi
  7349. echo "$as_me:8142: result: $ac_cv_sys_large_files" >&5
  7350. echo "${ECHO_T}$ac_cv_sys_large_files" >&6
  7351. if test "$ac_cv_sys_large_files" != no; then
  7352. cat >>confdefs.h <<EOF
  7353. #define _LARGE_FILES $ac_cv_sys_large_files
  7354. EOF
  7355. fi
  7356. rm -f conftest*
  7357. fi
  7358. if test "$enable_largefile" != no ; then
  7359. echo "$as_me:8155: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  7360. echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
  7361. if test "${ac_cv_sys_largefile_source+set}" = set; then
  7362. echo $ECHO_N "(cached) $ECHO_C" >&6
  7363. else
  7364. while :; do
  7365. ac_cv_sys_largefile_source=no
  7366. cat >conftest.$ac_ext <<_ACEOF
  7367. #line 8163 "configure"
  7368. #include "confdefs.h"
  7369. #include <stdio.h>
  7370. int
  7371. main ()
  7372. {
  7373. return !fseeko;
  7374. ;
  7375. return 0;
  7376. }
  7377. _ACEOF
  7378. rm -f conftest.$ac_objext
  7379. if { (eval echo "$as_me:8175: \"$ac_compile\"") >&5
  7380. (eval $ac_compile) 2>&5
  7381. ac_status=$?
  7382. echo "$as_me:8178: \$? = $ac_status" >&5
  7383. (exit $ac_status); } &&
  7384. { ac_try='test -s conftest.$ac_objext'
  7385. { (eval echo "$as_me:8181: \"$ac_try\"") >&5
  7386. (eval $ac_try) 2>&5
  7387. ac_status=$?
  7388. echo "$as_me:8184: \$? = $ac_status" >&5
  7389. (exit $ac_status); }; }; then
  7390. break
  7391. else
  7392. echo "$as_me: failed program was:" >&5
  7393. cat conftest.$ac_ext >&5
  7394. fi
  7395. rm -f conftest.$ac_objext conftest.$ac_ext
  7396. cat >conftest.$ac_ext <<_ACEOF
  7397. #line 8193 "configure"
  7398. #include "confdefs.h"
  7399. #define _LARGEFILE_SOURCE 1
  7400. #include <stdio.h>
  7401. int
  7402. main ()
  7403. {
  7404. return !fseeko;
  7405. ;
  7406. return 0;
  7407. }
  7408. _ACEOF
  7409. rm -f conftest.$ac_objext
  7410. if { (eval echo "$as_me:8206: \"$ac_compile\"") >&5
  7411. (eval $ac_compile) 2>&5
  7412. ac_status=$?
  7413. echo "$as_me:8209: \$? = $ac_status" >&5
  7414. (exit $ac_status); } &&
  7415. { ac_try='test -s conftest.$ac_objext'
  7416. { (eval echo "$as_me:8212: \"$ac_try\"") >&5
  7417. (eval $ac_try) 2>&5
  7418. ac_status=$?
  7419. echo "$as_me:8215: \$? = $ac_status" >&5
  7420. (exit $ac_status); }; }; then
  7421. ac_cv_sys_largefile_source=1; break
  7422. else
  7423. echo "$as_me: failed program was:" >&5
  7424. cat conftest.$ac_ext >&5
  7425. fi
  7426. rm -f conftest.$ac_objext conftest.$ac_ext
  7427. break
  7428. done
  7429. fi
  7430. echo "$as_me:8226: result: $ac_cv_sys_largefile_source" >&5
  7431. echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
  7432. if test "$ac_cv_sys_largefile_source" != no; then
  7433. cat >>confdefs.h <<EOF
  7434. #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  7435. EOF
  7436. fi
  7437. rm -f conftest*
  7438. # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
  7439. # in glibc 2.1.3, but that breaks too many other things.
  7440. # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
  7441. echo "$as_me:8240: checking for fseeko" >&5
  7442. echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
  7443. if test "${ac_cv_func_fseeko+set}" = set; then
  7444. echo $ECHO_N "(cached) $ECHO_C" >&6
  7445. else
  7446. cat >conftest.$ac_ext <<_ACEOF
  7447. #line 8246 "configure"
  7448. #include "confdefs.h"
  7449. #include <stdio.h>
  7450. int
  7451. main ()
  7452. {
  7453. return fseeko && fseeko (stdin, 0, 0);
  7454. ;
  7455. return 0;
  7456. }
  7457. _ACEOF
  7458. rm -f conftest.$ac_objext conftest$ac_exeext
  7459. if { (eval echo "$as_me:8258: \"$ac_link\"") >&5
  7460. (eval $ac_link) 2>&5
  7461. ac_status=$?
  7462. echo "$as_me:8261: \$? = $ac_status" >&5
  7463. (exit $ac_status); } &&
  7464. { ac_try='test -s conftest$ac_exeext'
  7465. { (eval echo "$as_me:8264: \"$ac_try\"") >&5
  7466. (eval $ac_try) 2>&5
  7467. ac_status=$?
  7468. echo "$as_me:8267: \$? = $ac_status" >&5
  7469. (exit $ac_status); }; }; then
  7470. ac_cv_func_fseeko=yes
  7471. else
  7472. echo "$as_me: failed program was:" >&5
  7473. cat conftest.$ac_ext >&5
  7474. ac_cv_func_fseeko=no
  7475. fi
  7476. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  7477. fi
  7478. echo "$as_me:8277: result: $ac_cv_func_fseeko" >&5
  7479. echo "${ECHO_T}$ac_cv_func_fseeko" >&6
  7480. if test $ac_cv_func_fseeko = yes; then
  7481. cat >>confdefs.h <<\EOF
  7482. #define HAVE_FSEEKO 1
  7483. EOF
  7484. fi
  7485. # Normally we would collect these definitions in the config.h,
  7486. # but (like _XOPEN_SOURCE), some environments rely on having these
  7487. # defined before any of the system headers are included. Another
  7488. # case comes up with C++, e.g., on AIX the compiler compiles the
  7489. # header files by themselves before looking at the body files it is
  7490. # told to compile. For ncurses, those header files do not include
  7491. # the config.h
  7492. test "$ac_cv_sys_large_files" != no && CPPFLAGS="$CPPFLAGS -D_LARGE_FILES "
  7493. test "$ac_cv_sys_largefile_source" != no && CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE "
  7494. test "$ac_cv_sys_file_offset_bits" != no && CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits "
  7495. echo "$as_me:8298: checking whether to use struct dirent64" >&5
  7496. echo $ECHO_N "checking whether to use struct dirent64... $ECHO_C" >&6
  7497. if test "${cf_cv_struct_dirent64+set}" = set; then
  7498. echo $ECHO_N "(cached) $ECHO_C" >&6
  7499. else
  7500. cat >conftest.$ac_ext <<_ACEOF
  7501. #line 8305 "configure"
  7502. #include "confdefs.h"
  7503. #include <sys/types.h>
  7504. #include <dirent.h>
  7505. int
  7506. main ()
  7507. {
  7508. /* if transitional largefile support is setup, this is true */
  7509. extern struct dirent64 * readdir(DIR *);
  7510. struct dirent64 *x = readdir((DIR *)0);
  7511. struct dirent *y = readdir((DIR *)0);
  7512. int z = x - y;
  7513. ;
  7514. return 0;
  7515. }
  7516. _ACEOF
  7517. rm -f conftest.$ac_objext
  7518. if { (eval echo "$as_me:8326: \"$ac_compile\"") >&5
  7519. (eval $ac_compile) 2>&5
  7520. ac_status=$?
  7521. echo "$as_me:8329: \$? = $ac_status" >&5
  7522. (exit $ac_status); } &&
  7523. { ac_try='test -s conftest.$ac_objext'
  7524. { (eval echo "$as_me:8332: \"$ac_try\"") >&5
  7525. (eval $ac_try) 2>&5
  7526. ac_status=$?
  7527. echo "$as_me:8335: \$? = $ac_status" >&5
  7528. (exit $ac_status); }; }; then
  7529. cf_cv_struct_dirent64=yes
  7530. else
  7531. echo "$as_me: failed program was:" >&5
  7532. cat conftest.$ac_ext >&5
  7533. cf_cv_struct_dirent64=no
  7534. fi
  7535. rm -f conftest.$ac_objext conftest.$ac_ext
  7536. fi
  7537. echo "$as_me:8346: result: $cf_cv_struct_dirent64" >&5
  7538. echo "${ECHO_T}$cf_cv_struct_dirent64" >&6
  7539. test "$cf_cv_struct_dirent64" = yes && cat >>confdefs.h <<\EOF
  7540. #define HAVE_STRUCT_DIRENT64 1
  7541. EOF
  7542. fi
  7543. ### use option --disable-tparm-varargs to make tparm() conform to X/Open
  7544. echo "$as_me:8355: checking if you want tparm not to use X/Open fixed-parameter list" >&5
  7545. echo $ECHO_N "checking if you want tparm not to use X/Open fixed-parameter list... $ECHO_C" >&6
  7546. # Check whether --enable-tparm-varargs or --disable-tparm-varargs was given.
  7547. if test "${enable_tparm_varargs+set}" = set; then
  7548. enableval="$enable_tparm_varargs"
  7549. with_tparm_varargs=$enableval
  7550. else
  7551. with_tparm_varargs=yes
  7552. fi;
  7553. echo "$as_me:8365: result: $with_tparm_varargs" >&5
  7554. echo "${ECHO_T}$with_tparm_varargs" >&6
  7555. NCURSES_TPARM_VARARGS=0
  7556. test "$with_tparm_varargs" = yes && NCURSES_TPARM_VARARGS=1
  7557. ### use option --disable-tic-depends to make libtic not explicitly depend on ncurses/ncursesw
  7558. if test "$with_ticlib" != no ; then
  7559. echo "$as_me:8372: checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library" >&5
  7560. echo $ECHO_N "checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library... $ECHO_C" >&6
  7561. # Check whether --enable-tic-depends or --disable-tic-depends was given.
  7562. if test "${enable_tic_depends+set}" = set; then
  7563. enableval="$enable_tic_depends"
  7564. with_tic_depends=$enableval
  7565. else
  7566. with_tic_depends=yes
  7567. fi;
  7568. echo "$as_me:8382: result: $with_tic_depends" >&5
  7569. echo "${ECHO_T}$with_tic_depends" >&6
  7570. else
  7571. with_tic_depends=no
  7572. fi
  7573. ### use option --with-bool to override bool's type
  7574. echo "$as_me:8389: checking for type of bool" >&5
  7575. echo $ECHO_N "checking for type of bool... $ECHO_C" >&6
  7576. # Check whether --with-bool or --without-bool was given.
  7577. if test "${with_bool+set}" = set; then
  7578. withval="$with_bool"
  7579. NCURSES_BOOL="$withval"
  7580. else
  7581. NCURSES_BOOL=auto
  7582. fi;
  7583. echo "$as_me:8399: result: $NCURSES_BOOL" >&5
  7584. echo "${ECHO_T}$NCURSES_BOOL" >&6
  7585. echo "$as_me:8402: checking for alternate terminal capabilities file" >&5
  7586. echo $ECHO_N "checking for alternate terminal capabilities file... $ECHO_C" >&6
  7587. # Check whether --with-caps or --without-caps was given.
  7588. if test "${with_caps+set}" = set; then
  7589. withval="$with_caps"
  7590. TERMINFO_CAPS=Caps.$withval
  7591. else
  7592. TERMINFO_CAPS=Caps
  7593. fi;
  7594. test -f "${srcdir}/include/${TERMINFO_CAPS}" || TERMINFO_CAPS=Caps
  7595. echo "$as_me:8413: result: $TERMINFO_CAPS" >&5
  7596. echo "${ECHO_T}$TERMINFO_CAPS" >&6
  7597. ### use option --with-chtype to override chtype's type
  7598. echo "$as_me:8417: checking for type of chtype" >&5
  7599. echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
  7600. # Check whether --with-chtype or --without-chtype was given.
  7601. if test "${with_chtype+set}" = set; then
  7602. withval="$with_chtype"
  7603. NCURSES_CHTYPE="$withval"
  7604. else
  7605. NCURSES_CHTYPE=auto
  7606. fi;
  7607. echo "$as_me:8427: result: $NCURSES_CHTYPE" >&5
  7608. echo "${ECHO_T}$NCURSES_CHTYPE" >&6
  7609. ### use option --with-ospeed to override ospeed's type
  7610. echo "$as_me:8431: checking for type of ospeed" >&5
  7611. echo $ECHO_N "checking for type of ospeed... $ECHO_C" >&6
  7612. # Check whether --with-ospeed or --without-ospeed was given.
  7613. if test "${with_ospeed+set}" = set; then
  7614. withval="$with_ospeed"
  7615. NCURSES_OSPEED="$withval"
  7616. else
  7617. NCURSES_OSPEED=short
  7618. fi;
  7619. echo "$as_me:8441: result: $NCURSES_OSPEED" >&5
  7620. echo "${ECHO_T}$NCURSES_OSPEED" >&6
  7621. ### use option --with-mmask-t to override mmask_t's type
  7622. echo "$as_me:8445: checking for type of mmask_t" >&5
  7623. echo $ECHO_N "checking for type of mmask_t... $ECHO_C" >&6
  7624. # Check whether --with-mmask-t or --without-mmask-t was given.
  7625. if test "${with_mmask_t+set}" = set; then
  7626. withval="$with_mmask_t"
  7627. NCURSES_MMASK_T="$withval"
  7628. else
  7629. NCURSES_MMASK_T=auto
  7630. fi;
  7631. echo "$as_me:8455: result: $NCURSES_MMASK_T" >&5
  7632. echo "${ECHO_T}$NCURSES_MMASK_T" >&6
  7633. ### Enable compiling-in rcs id's
  7634. echo "$as_me:8459: checking if RCS identifiers should be compiled-in" >&5
  7635. echo $ECHO_N "checking if RCS identifiers should be compiled-in... $ECHO_C" >&6
  7636. # Check whether --with-rcs-ids or --without-rcs-ids was given.
  7637. if test "${with_rcs_ids+set}" = set; then
  7638. withval="$with_rcs_ids"
  7639. with_rcs_ids=$withval
  7640. else
  7641. with_rcs_ids=no
  7642. fi;
  7643. echo "$as_me:8469: result: $with_rcs_ids" >&5
  7644. echo "${ECHO_T}$with_rcs_ids" >&6
  7645. test "$with_rcs_ids" = yes && cat >>confdefs.h <<\EOF
  7646. #define USE_RCS_IDS 1
  7647. EOF
  7648. ###############################################################################
  7649. echo "$as_me:8477: checking format of man-pages" >&5
  7650. echo $ECHO_N "checking format of man-pages... $ECHO_C" >&6
  7651. # Check whether --with-manpage-format or --without-manpage-format was given.
  7652. if test "${with_manpage_format+set}" = set; then
  7653. withval="$with_manpage_format"
  7654. MANPAGE_FORMAT=$withval
  7655. else
  7656. MANPAGE_FORMAT=unknown
  7657. fi;
  7658. test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=unknown
  7659. MANPAGE_FORMAT=`echo "$MANPAGE_FORMAT" | sed -e 's/,/ /g'`
  7660. cf_unknown=
  7661. case $MANPAGE_FORMAT in
  7662. unknown)
  7663. if test -z "$MANPATH" ; then
  7664. MANPATH="/usr/man:/usr/share/man"
  7665. fi
  7666. # look for the 'date' man-page (it's most likely to be installed!)
  7667. MANPAGE_FORMAT=
  7668. cf_preform=no
  7669. cf_catonly=yes
  7670. cf_example=date
  7671. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATHSEP}"
  7672. for cf_dir in $MANPATH; do
  7673. test -z "$cf_dir" && cf_dir=/usr/man
  7674. for cf_name in $cf_dir/man*/$cf_example.[01]* $cf_dir/cat*/$cf_example.[01]* $cf_dir/man*/$cf_example $cf_dir/cat*/$cf_example
  7675. do
  7676. cf_test=`echo $cf_name | sed -e 's/*//'`
  7677. if test "x$cf_test" = "x$cf_name" ; then
  7678. case "$cf_name" in
  7679. *.gz) MANPAGE_FORMAT="$MANPAGE_FORMAT gzip";;
  7680. *.Z) MANPAGE_FORMAT="$MANPAGE_FORMAT compress";;
  7681. *.0) MANPAGE_FORMAT="$MANPAGE_FORMAT BSDI";;
  7682. *) MANPAGE_FORMAT="$MANPAGE_FORMAT normal";;
  7683. esac
  7684. case "$cf_name" in
  7685. $cf_dir/man*)
  7686. cf_catonly=no
  7687. ;;
  7688. $cf_dir/cat*)
  7689. cf_preform=yes
  7690. ;;
  7691. esac
  7692. break
  7693. fi
  7694. # if we found a match in either man* or cat*, stop looking
  7695. if test -n "$MANPAGE_FORMAT" ; then
  7696. cf_found=no
  7697. test "$cf_preform" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT formatted"
  7698. test "$cf_catonly" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT catonly"
  7699. case "$cf_name" in
  7700. $cf_dir/cat*)
  7701. cf_found=yes
  7702. ;;
  7703. esac
  7704. test $cf_found=yes && break
  7705. fi
  7706. done
  7707. # only check the first directory in $MANPATH where we find manpages
  7708. if test -n "$MANPAGE_FORMAT" ; then
  7709. break
  7710. fi
  7711. done
  7712. # if we did not find the example, just assume it is normal
  7713. test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=normal
  7714. IFS="$ac_save_ifs"
  7715. ;;
  7716. *)
  7717. for cf_option in $MANPAGE_FORMAT; do
  7718. case $cf_option in #(vi
  7719. gzip|compress|BSDI|normal|formatted|catonly)
  7720. ;;
  7721. *)
  7722. cf_unknown="$cf_unknown $cf_option"
  7723. ;;
  7724. esac
  7725. done
  7726. ;;
  7727. esac
  7728. echo "$as_me:8566: result: $MANPAGE_FORMAT" >&5
  7729. echo "${ECHO_T}$MANPAGE_FORMAT" >&6
  7730. if test -n "$cf_unknown" ; then
  7731. { echo "$as_me:8569: WARNING: Unexpected manpage-format $cf_unknown" >&5
  7732. echo "$as_me: WARNING: Unexpected manpage-format $cf_unknown" >&2;}
  7733. fi
  7734. echo "$as_me:8573: checking for manpage renaming" >&5
  7735. echo $ECHO_N "checking for manpage renaming... $ECHO_C" >&6
  7736. # Check whether --with-manpage-renames or --without-manpage-renames was given.
  7737. if test "${with_manpage_renames+set}" = set; then
  7738. withval="$with_manpage_renames"
  7739. MANPAGE_RENAMES=$withval
  7740. else
  7741. MANPAGE_RENAMES=yes
  7742. fi;
  7743. case ".$MANPAGE_RENAMES" in #(vi
  7744. .no) #(vi
  7745. ;;
  7746. .|.yes)
  7747. # Debian 'man' program?
  7748. if test -f /etc/debian_version ; then
  7749. MANPAGE_RENAMES=`cd $srcdir && pwd`/man/man_db.renames
  7750. else
  7751. MANPAGE_RENAMES=no
  7752. fi
  7753. ;;
  7754. esac
  7755. if test "$MANPAGE_RENAMES" != no ; then
  7756. if test -f $srcdir/man/$MANPAGE_RENAMES ; then
  7757. MANPAGE_RENAMES=`cd $srcdir/man && pwd`/$MANPAGE_RENAMES
  7758. elif test ! -f $MANPAGE_RENAMES ; then
  7759. { { echo "$as_me:8601: error: not a filename: $MANPAGE_RENAMES" >&5
  7760. echo "$as_me: error: not a filename: $MANPAGE_RENAMES" >&2;}
  7761. { (exit 1); exit 1; }; }
  7762. fi
  7763. test ! -d man && mkdir man
  7764. # Construct a sed-script to perform renaming within man-pages
  7765. if test -n "$MANPAGE_RENAMES" ; then
  7766. test ! -d man && mkdir man
  7767. sh $srcdir/man/make_sed.sh $MANPAGE_RENAMES >./edit_man.sed
  7768. fi
  7769. fi
  7770. echo "$as_me:8615: result: $MANPAGE_RENAMES" >&5
  7771. echo "${ECHO_T}$MANPAGE_RENAMES" >&6
  7772. echo "$as_me:8618: checking if manpage aliases will be installed" >&5
  7773. echo $ECHO_N "checking if manpage aliases will be installed... $ECHO_C" >&6
  7774. # Check whether --with-manpage-aliases or --without-manpage-aliases was given.
  7775. if test "${with_manpage_aliases+set}" = set; then
  7776. withval="$with_manpage_aliases"
  7777. MANPAGE_ALIASES=$withval
  7778. else
  7779. MANPAGE_ALIASES=yes
  7780. fi;
  7781. echo "$as_me:8629: result: $MANPAGE_ALIASES" >&5
  7782. echo "${ECHO_T}$MANPAGE_ALIASES" >&6
  7783. if test "$LN_S" = "ln -s"; then
  7784. cf_use_symlinks=yes
  7785. else
  7786. cf_use_symlinks=no
  7787. fi
  7788. MANPAGE_SYMLINKS=no
  7789. if test "$MANPAGE_ALIASES" = yes ; then
  7790. echo "$as_me:8640: checking if manpage symlinks should be used" >&5
  7791. echo $ECHO_N "checking if manpage symlinks should be used... $ECHO_C" >&6
  7792. # Check whether --with-manpage-symlinks or --without-manpage-symlinks was given.
  7793. if test "${with_manpage_symlinks+set}" = set; then
  7794. withval="$with_manpage_symlinks"
  7795. MANPAGE_SYMLINKS=$withval
  7796. else
  7797. MANPAGE_SYMLINKS=$cf_use_symlinks
  7798. fi;
  7799. if test "$$cf_use_symlinks" = no; then
  7800. if test "$MANPAGE_SYMLINKS" = yes ; then
  7801. { echo "$as_me:8653: WARNING: cannot make symlinks" >&5
  7802. echo "$as_me: WARNING: cannot make symlinks" >&2;}
  7803. MANPAGE_SYMLINKS=no
  7804. fi
  7805. fi
  7806. echo "$as_me:8659: result: $MANPAGE_SYMLINKS" >&5
  7807. echo "${ECHO_T}$MANPAGE_SYMLINKS" >&6
  7808. fi
  7809. echo "$as_me:8663: checking for manpage tbl" >&5
  7810. echo $ECHO_N "checking for manpage tbl... $ECHO_C" >&6
  7811. # Check whether --with-manpage-tbl or --without-manpage-tbl was given.
  7812. if test "${with_manpage_tbl+set}" = set; then
  7813. withval="$with_manpage_tbl"
  7814. MANPAGE_TBL=$withval
  7815. else
  7816. MANPAGE_TBL=no
  7817. fi;
  7818. echo "$as_me:8674: result: $MANPAGE_TBL" >&5
  7819. echo "${ECHO_T}$MANPAGE_TBL" >&6
  7820. if test "$prefix" = "NONE" ; then
  7821. cf_prefix="$ac_default_prefix"
  7822. else
  7823. cf_prefix="$prefix"
  7824. fi
  7825. case "$MANPAGE_FORMAT" in # (vi
  7826. *catonly*) # (vi
  7827. cf_format=yes
  7828. cf_inboth=no
  7829. ;;
  7830. *formatted*) # (vi
  7831. cf_format=yes
  7832. cf_inboth=yes
  7833. ;;
  7834. *)
  7835. cf_format=no
  7836. cf_inboth=no
  7837. ;;
  7838. esac
  7839. test ! -d man && mkdir man
  7840. cf_so_strip=
  7841. cf_compress=
  7842. case "$MANPAGE_FORMAT" in #(vi
  7843. *compress*) #(vi
  7844. cf_so_strip="Z"
  7845. cf_compress=compress
  7846. ;;
  7847. *gzip*) #(vi
  7848. cf_so_strip="gz"
  7849. cf_compress=gzip
  7850. ;;
  7851. esac
  7852. cf_edit_man=./edit_man.sh
  7853. cf_man_alias=`pwd`/man_alias.sed
  7854. cat >$cf_edit_man <<CF_EOF
  7855. #! /bin/sh
  7856. # this script is generated by the configure-script CF_MAN_PAGES macro.
  7857. prefix="$cf_prefix"
  7858. datadir="$datadir"
  7859. NCURSES_MAJOR="$NCURSES_MAJOR"
  7860. NCURSES_MINOR="$NCURSES_MINOR"
  7861. NCURSES_PATCH="$NCURSES_PATCH"
  7862. NCURSES_OSPEED="$NCURSES_OSPEED"
  7863. TERMINFO="$TERMINFO"
  7864. MKDIRS="sh `cd $srcdir && pwd`/mkdirs.sh"
  7865. INSTALL="$INSTALL"
  7866. INSTALL_DATA="$INSTALL_DATA"
  7867. transform="$program_transform_name"
  7868. TMP=\${TMPDIR-/tmp}/man\$\$
  7869. trap "rm -f \$TMP" 0 1 2 5 15
  7870. form=\$1
  7871. shift || exit 1
  7872. verb=\$1
  7873. shift || exit 1
  7874. mandir=\$1
  7875. shift || exit 1
  7876. srcdir=\$1
  7877. top_srcdir=\$srcdir/..
  7878. shift || exit 1
  7879. if test "\$form" = normal ; then
  7880. if test "$cf_format" = yes ; then
  7881. if test "$cf_inboth" = no ; then
  7882. sh \$0 format \$verb \$mandir \$srcdir \$*
  7883. exit $?
  7884. fi
  7885. fi
  7886. cf_subdir=\$mandir/man
  7887. cf_tables=$MANPAGE_TBL
  7888. else
  7889. cf_subdir=\$mandir/cat
  7890. cf_tables=yes
  7891. fi
  7892. # process the list of source-files
  7893. for i in \$* ; do
  7894. case \$i in #(vi
  7895. *.orig|*.rej) ;; #(vi
  7896. *.[0-9]*)
  7897. section=\`expr "\$i" : '.*\\.\\([0-9]\\)[xm]*'\`;
  7898. if test \$verb = installing ; then
  7899. if test ! -d \$cf_subdir\${section} ; then
  7900. \$MKDIRS \$cf_subdir\$section
  7901. fi
  7902. fi
  7903. # replace variables in man page
  7904. if test ! -f $cf_man_alias ; then
  7905. cat >>$cf_man_alias <<-CF_EOF2
  7906. s,@DATADIR@,\$datadir,g
  7907. s,@TERMINFO@,\$TERMINFO,g
  7908. s,@NCURSES_MAJOR@,\$NCURSES_MAJOR,g
  7909. s,@NCURSES_MINOR@,\$NCURSES_MINOR,g
  7910. s,@NCURSES_PATCH@,\$NCURSES_PATCH,g
  7911. s,@NCURSES_OSPEED@,\$NCURSES_OSPEED,g
  7912. CF_EOF
  7913. for cf_name in captoinfo clear infocmp infotocap tabs tic toe tput tset
  7914. do
  7915. cf_NAME=`echo "$cf_name" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
  7916. cf_name=`echo $cf_name|sed "$program_transform_name"`
  7917. cat >>$cf_edit_man <<-CF_EOF
  7918. s,@$cf_NAME@,$cf_name,
  7919. CF_EOF
  7920. done
  7921. cat >>$cf_edit_man <<CF_EOF
  7922. CF_EOF2
  7923. echo "...made $cf_man_alias"
  7924. fi
  7925. aliases=
  7926. cf_source=\`basename \$i\`
  7927. inalias=\$cf_source
  7928. test ! -f \$inalias && inalias="\$srcdir/\$inalias"
  7929. if test ! -f \$inalias ; then
  7930. echo .. skipped \$cf_source
  7931. continue
  7932. fi
  7933. CF_EOF
  7934. if test "$MANPAGE_ALIASES" != no ; then
  7935. cat >>$cf_edit_man <<CF_EOF
  7936. aliases=\`sed -f \$top_srcdir/man/manlinks.sed \$inalias |sed -f $cf_man_alias | sort -u\`
  7937. CF_EOF
  7938. fi
  7939. if test "$MANPAGE_RENAMES" = no ; then
  7940. cat >>$cf_edit_man <<CF_EOF
  7941. # perform program transformations for section 1 man pages
  7942. if test \$section = 1 ; then
  7943. cf_target=\$cf_subdir\${section}/\`echo \$cf_source|sed "\${transform}"\`
  7944. else
  7945. cf_target=\$cf_subdir\${section}/\$cf_source
  7946. fi
  7947. CF_EOF
  7948. else
  7949. cat >>$cf_edit_man <<CF_EOF
  7950. cf_target=\`grep "^\$cf_source" $MANPAGE_RENAMES | $AWK '{print \$2}'\`
  7951. if test -z "\$cf_target" ; then
  7952. echo '? missing rename for '\$cf_source
  7953. cf_target="\$cf_source"
  7954. fi
  7955. cf_target="\$cf_subdir\${section}/\${cf_target}"
  7956. CF_EOF
  7957. fi
  7958. cat >>$cf_edit_man <<CF_EOF
  7959. sed -f $cf_man_alias \\
  7960. CF_EOF
  7961. if test -f $MANPAGE_RENAMES ; then
  7962. cat >>$cf_edit_man <<CF_EOF
  7963. < \$i | sed -f `pwd`/edit_man.sed >\$TMP
  7964. CF_EOF
  7965. else
  7966. cat >>$cf_edit_man <<CF_EOF
  7967. < \$i >\$TMP
  7968. CF_EOF
  7969. fi
  7970. cat >>$cf_edit_man <<CF_EOF
  7971. if test \$cf_tables = yes ; then
  7972. tbl \$TMP >\$TMP.out
  7973. mv \$TMP.out \$TMP
  7974. fi
  7975. CF_EOF
  7976. if test $with_curses_h != yes ; then
  7977. cat >>$cf_edit_man <<CF_EOF
  7978. sed -e "/\#[ ]*include/s,curses.h,ncurses.h," < \$TMP >\$TMP.out
  7979. mv \$TMP.out \$TMP
  7980. CF_EOF
  7981. fi
  7982. cat >>$cf_edit_man <<CF_EOF
  7983. if test \$form = format ; then
  7984. nroff -man \$TMP >\$TMP.out
  7985. mv \$TMP.out \$TMP
  7986. fi
  7987. CF_EOF
  7988. if test -n "$cf_compress" ; then
  7989. cat >>$cf_edit_man <<CF_EOF
  7990. if test \$verb = installing ; then
  7991. if ( $cf_compress -f \$TMP )
  7992. then
  7993. mv \$TMP.$cf_so_strip \$TMP
  7994. fi
  7995. fi
  7996. cf_target="\$cf_target.$cf_so_strip"
  7997. CF_EOF
  7998. fi
  7999. case "$MANPAGE_FORMAT" in #(vi
  8000. *BSDI*)
  8001. cat >>$cf_edit_man <<CF_EOF
  8002. if test \$form = format ; then
  8003. # BSDI installs only .0 suffixes in the cat directories
  8004. cf_target="\`echo \$cf_target|sed -e 's/\.[1-9]\+[a-z]*/.0/'\`"
  8005. fi
  8006. CF_EOF
  8007. ;;
  8008. esac
  8009. cat >>$cf_edit_man <<CF_EOF
  8010. suffix=\`basename \$cf_target | sed -e 's%^[^.]*%%'\`
  8011. if test \$verb = installing ; then
  8012. echo \$verb \$cf_target
  8013. \$INSTALL_DATA \$TMP \$cf_target
  8014. test -d \$cf_subdir\${section} &&
  8015. test -n "\$aliases" && (
  8016. cd \$cf_subdir\${section} && (
  8017. cf_source=\`echo \$cf_target |sed -e 's%^.*/\([^/][^/]*/[^/][^/]*$\)%\1%'\`
  8018. test -n "$cf_so_strip" && cf_source=\`echo \$cf_source |sed -e 's%\.$cf_so_strip\$%%'\`
  8019. cf_target=\`basename \$cf_target\`
  8020. for cf_alias in \$aliases
  8021. do
  8022. if test \$section = 1 ; then
  8023. cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
  8024. fi
  8025. if test "$MANPAGE_SYMLINKS" = yes ; then
  8026. if test -f \$cf_alias\${suffix} ; then
  8027. if ( cmp -s \$cf_target \$cf_alias\${suffix} )
  8028. then
  8029. continue
  8030. fi
  8031. fi
  8032. echo .. \$verb alias \$cf_alias\${suffix}
  8033. rm -f \$cf_alias\${suffix}
  8034. $LN_S \$cf_target \$cf_alias\${suffix}
  8035. elif test "\$cf_target" != "\$cf_alias\${suffix}" ; then
  8036. echo ".so \$cf_source" >\$TMP
  8037. CF_EOF
  8038. if test -n "$cf_compress" ; then
  8039. cat >>$cf_edit_man <<CF_EOF
  8040. if test -n "$cf_so_strip" ; then
  8041. $cf_compress -f \$TMP
  8042. mv \$TMP.$cf_so_strip \$TMP
  8043. fi
  8044. CF_EOF
  8045. fi
  8046. cat >>$cf_edit_man <<CF_EOF
  8047. echo .. \$verb alias \$cf_alias\${suffix}
  8048. rm -f \$cf_alias\${suffix}
  8049. \$INSTALL_DATA \$TMP \$cf_alias\${suffix}
  8050. fi
  8051. done
  8052. )
  8053. )
  8054. elif test \$verb = removing ; then
  8055. test -f \$cf_target && (
  8056. echo \$verb \$cf_target
  8057. rm -f \$cf_target
  8058. )
  8059. test -d \$cf_subdir\${section} &&
  8060. test -n "\$aliases" && (
  8061. cd \$cf_subdir\${section} && (
  8062. for cf_alias in \$aliases
  8063. do
  8064. if test \$section = 1 ; then
  8065. cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
  8066. fi
  8067. echo .. \$verb alias \$cf_alias\${suffix}
  8068. rm -f \$cf_alias\${suffix}
  8069. done
  8070. )
  8071. )
  8072. else
  8073. # echo ".hy 0"
  8074. cat \$TMP
  8075. fi
  8076. ;;
  8077. esac
  8078. done
  8079. if test $cf_inboth = yes ; then
  8080. if test \$form != format ; then
  8081. sh \$0 format \$verb \$mandir \$srcdir \$*
  8082. fi
  8083. fi
  8084. exit 0
  8085. CF_EOF
  8086. chmod 755 $cf_edit_man
  8087. ###############################################################################
  8088. ### Note that some functions (such as const) are normally disabled anyway.
  8089. echo "$as_me:8985: checking if you want to build with function extensions" >&5
  8090. echo $ECHO_N "checking if you want to build with function extensions... $ECHO_C" >&6
  8091. # Check whether --enable-ext-funcs or --disable-ext-funcs was given.
  8092. if test "${enable_ext_funcs+set}" = set; then
  8093. enableval="$enable_ext_funcs"
  8094. with_ext_funcs=$enableval
  8095. else
  8096. with_ext_funcs=yes
  8097. fi;
  8098. echo "$as_me:8995: result: $with_ext_funcs" >&5
  8099. echo "${ECHO_T}$with_ext_funcs" >&6
  8100. if test "$with_ext_funcs" = yes ; then
  8101. NCURSES_EXT_FUNCS=1
  8102. cat >>confdefs.h <<\EOF
  8103. #define HAVE_CURSES_VERSION 1
  8104. EOF
  8105. cat >>confdefs.h <<\EOF
  8106. #define HAVE_HAS_KEY 1
  8107. EOF
  8108. cat >>confdefs.h <<\EOF
  8109. #define HAVE_RESIZETERM 1
  8110. EOF
  8111. cat >>confdefs.h <<\EOF
  8112. #define HAVE_RESIZE_TERM 1
  8113. EOF
  8114. cat >>confdefs.h <<\EOF
  8115. #define HAVE_USE_DEFAULT_COLORS 1
  8116. EOF
  8117. cat >>confdefs.h <<\EOF
  8118. #define HAVE_WRESIZE 1
  8119. EOF
  8120. cat >>confdefs.h <<\EOF
  8121. #define NCURSES_EXT_FUNCS 1
  8122. EOF
  8123. else
  8124. NCURSES_EXT_FUNCS=0
  8125. fi
  8126. ### use option --enable-const to turn on use of const beyond that in XSI.
  8127. echo "$as_me:9032: checking for extended use of const keyword" >&5
  8128. echo $ECHO_N "checking for extended use of const keyword... $ECHO_C" >&6
  8129. # Check whether --enable-const or --disable-const was given.
  8130. if test "${enable_const+set}" = set; then
  8131. enableval="$enable_const"
  8132. with_ext_const=$enableval
  8133. else
  8134. with_ext_const=no
  8135. fi;
  8136. echo "$as_me:9042: result: $with_ext_const" >&5
  8137. echo "${ECHO_T}$with_ext_const" >&6
  8138. NCURSES_CONST='/*nothing*/'
  8139. if test "$with_ext_const" = yes ; then
  8140. NCURSES_CONST=const
  8141. fi
  8142. ### use option --enable-ext-colors to turn on use of colors beyond 16.
  8143. echo "$as_me:9050: checking if you want to use extended colors" >&5
  8144. echo $ECHO_N "checking if you want to use extended colors... $ECHO_C" >&6
  8145. # Check whether --enable-ext-colors or --disable-ext-colors was given.
  8146. if test "${enable_ext_colors+set}" = set; then
  8147. enableval="$enable_ext_colors"
  8148. with_ext_colors=$enableval
  8149. else
  8150. with_ext_colors=no
  8151. fi;
  8152. echo "$as_me:9060: result: $with_ext_colors" >&5
  8153. echo "${ECHO_T}$with_ext_colors" >&6
  8154. NCURSES_EXT_COLORS=0
  8155. if test "$with_ext_colors" = yes ; then
  8156. if test "$with_widec" != yes ; then
  8157. { { echo "$as_me:9065: error: This option applies only to wide-character library" >&5
  8158. echo "$as_me: error: This option applies only to wide-character library" >&2;}
  8159. { (exit 1); exit 1; }; }
  8160. else
  8161. # cannot be ABI 5 since it changes sizeof(cchar_t)
  8162. if test "${with_abi_version+set}" != set; then
  8163. case $cf_cv_rel_version in
  8164. 5.*)
  8165. cf_cv_rel_version=6.0
  8166. cf_cv_abi_version=6
  8167. { echo "$as_me:9076: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
  8168. echo "$as_me: WARNING: Overriding ABI version to $cf_cv_abi_version" >&2;}
  8169. ;;
  8170. esac
  8171. fi
  8172. fi
  8173. NCURSES_EXT_COLORS=1
  8174. cat >>confdefs.h <<\EOF
  8175. #define NCURSES_EXT_COLORS 1
  8176. EOF
  8177. fi
  8178. ### use option --enable-ext-mouse to modify coding to support 5-button mice
  8179. echo "$as_me:9091: checking if you want to use extended mouse encoding" >&5
  8180. echo $ECHO_N "checking if you want to use extended mouse encoding... $ECHO_C" >&6
  8181. # Check whether --enable-ext-mouse or --disable-ext-mouse was given.
  8182. if test "${enable_ext_mouse+set}" = set; then
  8183. enableval="$enable_ext_mouse"
  8184. with_ext_mouse=$enableval
  8185. else
  8186. with_ext_mouse=no
  8187. fi;
  8188. echo "$as_me:9101: result: $with_ext_mouse" >&5
  8189. echo "${ECHO_T}$with_ext_mouse" >&6
  8190. NCURSES_MOUSE_VERSION=1
  8191. if test "$with_ext_mouse" = yes ; then
  8192. NCURSES_MOUSE_VERSION=2
  8193. if test "${with_abi_version+set}" != set; then
  8194. case $cf_cv_rel_version in
  8195. 5.*)
  8196. cf_cv_rel_version=6.0
  8197. cf_cv_abi_version=6
  8198. { echo "$as_me:9112: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
  8199. echo "$as_me: WARNING: Overriding ABI version to $cf_cv_abi_version" >&2;}
  8200. ;;
  8201. esac
  8202. fi
  8203. fi
  8204. echo "$as_me:9120: checking if you want \$NCURSES_NO_PADDING code" >&5
  8205. echo $ECHO_N "checking if you want \$NCURSES_NO_PADDING code... $ECHO_C" >&6
  8206. # Check whether --enable-no-padding or --disable-no-padding was given.
  8207. if test "${enable_no_padding+set}" = set; then
  8208. enableval="$enable_no_padding"
  8209. with_no_padding=$enableval
  8210. else
  8211. with_no_padding=$with_ext_funcs
  8212. fi;
  8213. echo "$as_me:9130: result: $with_no_padding" >&5
  8214. echo "${ECHO_T}$with_no_padding" >&6
  8215. test "$with_no_padding" = yes && cat >>confdefs.h <<\EOF
  8216. #define NCURSES_NO_PADDING 1
  8217. EOF
  8218. echo "$as_me:9136: checking for ANSI C header files" >&5
  8219. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  8220. if test "${ac_cv_header_stdc+set}" = set; then
  8221. echo $ECHO_N "(cached) $ECHO_C" >&6
  8222. else
  8223. cat >conftest.$ac_ext <<_ACEOF
  8224. #line 9142 "configure"
  8225. #include "confdefs.h"
  8226. #include <stdlib.h>
  8227. #include <stdarg.h>
  8228. #include <string.h>
  8229. #include <float.h>
  8230. _ACEOF
  8231. if { (eval echo "$as_me:9150: \"$ac_cpp conftest.$ac_ext\"") >&5
  8232. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8233. ac_status=$?
  8234. egrep -v '^ *\+' conftest.er1 >conftest.err
  8235. rm -f conftest.er1
  8236. cat conftest.err >&5
  8237. echo "$as_me:9156: \$? = $ac_status" >&5
  8238. (exit $ac_status); } >/dev/null; then
  8239. if test -s conftest.err; then
  8240. ac_cpp_err=$ac_c_preproc_warn_flag
  8241. else
  8242. ac_cpp_err=
  8243. fi
  8244. else
  8245. ac_cpp_err=yes
  8246. fi
  8247. if test -z "$ac_cpp_err"; then
  8248. ac_cv_header_stdc=yes
  8249. else
  8250. echo "$as_me: failed program was:" >&5
  8251. cat conftest.$ac_ext >&5
  8252. ac_cv_header_stdc=no
  8253. fi
  8254. rm -f conftest.err conftest.$ac_ext
  8255. if test $ac_cv_header_stdc = yes; then
  8256. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  8257. cat >conftest.$ac_ext <<_ACEOF
  8258. #line 9178 "configure"
  8259. #include "confdefs.h"
  8260. #include <string.h>
  8261. _ACEOF
  8262. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  8263. egrep "memchr" >/dev/null 2>&1; then
  8264. :
  8265. else
  8266. ac_cv_header_stdc=no
  8267. fi
  8268. rm -f conftest*
  8269. fi
  8270. if test $ac_cv_header_stdc = yes; then
  8271. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  8272. cat >conftest.$ac_ext <<_ACEOF
  8273. #line 9196 "configure"
  8274. #include "confdefs.h"
  8275. #include <stdlib.h>
  8276. _ACEOF
  8277. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  8278. egrep "free" >/dev/null 2>&1; then
  8279. :
  8280. else
  8281. ac_cv_header_stdc=no
  8282. fi
  8283. rm -f conftest*
  8284. fi
  8285. if test $ac_cv_header_stdc = yes; then
  8286. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  8287. if test "$cross_compiling" = yes; then
  8288. :
  8289. else
  8290. cat >conftest.$ac_ext <<_ACEOF
  8291. #line 9217 "configure"
  8292. #include "confdefs.h"
  8293. #include <ctype.h>
  8294. #if ((' ' & 0x0FF) == 0x020)
  8295. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  8296. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  8297. #else
  8298. # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
  8299. || ('j' <= (c) && (c) <= 'r') \
  8300. || ('s' <= (c) && (c) <= 'z'))
  8301. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  8302. #endif
  8303. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  8304. int
  8305. main ()
  8306. {
  8307. int i;
  8308. for (i = 0; i < 256; i++)
  8309. if (XOR (islower (i), ISLOWER (i))
  8310. || toupper (i) != TOUPPER (i))
  8311. $ac_main_return(2);
  8312. $ac_main_return (0);
  8313. }
  8314. _ACEOF
  8315. rm -f conftest$ac_exeext
  8316. if { (eval echo "$as_me:9243: \"$ac_link\"") >&5
  8317. (eval $ac_link) 2>&5
  8318. ac_status=$?
  8319. echo "$as_me:9246: \$? = $ac_status" >&5
  8320. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8321. { (eval echo "$as_me:9248: \"$ac_try\"") >&5
  8322. (eval $ac_try) 2>&5
  8323. ac_status=$?
  8324. echo "$as_me:9251: \$? = $ac_status" >&5
  8325. (exit $ac_status); }; }; then
  8326. :
  8327. else
  8328. echo "$as_me: program exited with status $ac_status" >&5
  8329. echo "$as_me: failed program was:" >&5
  8330. cat conftest.$ac_ext >&5
  8331. ac_cv_header_stdc=no
  8332. fi
  8333. rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8334. fi
  8335. fi
  8336. fi
  8337. echo "$as_me:9264: result: $ac_cv_header_stdc" >&5
  8338. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  8339. if test $ac_cv_header_stdc = yes; then
  8340. cat >>confdefs.h <<\EOF
  8341. #define STDC_HEADERS 1
  8342. EOF
  8343. fi
  8344. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  8345. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  8346. inttypes.h stdint.h unistd.h
  8347. do
  8348. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8349. echo "$as_me:9280: checking for $ac_header" >&5
  8350. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8351. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8352. echo $ECHO_N "(cached) $ECHO_C" >&6
  8353. else
  8354. cat >conftest.$ac_ext <<_ACEOF
  8355. #line 9286 "configure"
  8356. #include "confdefs.h"
  8357. $ac_includes_default
  8358. #include <$ac_header>
  8359. _ACEOF
  8360. rm -f conftest.$ac_objext
  8361. if { (eval echo "$as_me:9292: \"$ac_compile\"") >&5
  8362. (eval $ac_compile) 2>&5
  8363. ac_status=$?
  8364. echo "$as_me:9295: \$? = $ac_status" >&5
  8365. (exit $ac_status); } &&
  8366. { ac_try='test -s conftest.$ac_objext'
  8367. { (eval echo "$as_me:9298: \"$ac_try\"") >&5
  8368. (eval $ac_try) 2>&5
  8369. ac_status=$?
  8370. echo "$as_me:9301: \$? = $ac_status" >&5
  8371. (exit $ac_status); }; }; then
  8372. eval "$as_ac_Header=yes"
  8373. else
  8374. echo "$as_me: failed program was:" >&5
  8375. cat conftest.$ac_ext >&5
  8376. eval "$as_ac_Header=no"
  8377. fi
  8378. rm -f conftest.$ac_objext conftest.$ac_ext
  8379. fi
  8380. echo "$as_me:9311: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8381. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8382. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8383. cat >>confdefs.h <<EOF
  8384. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8385. EOF
  8386. fi
  8387. done
  8388. echo "$as_me:9321: checking for signed char" >&5
  8389. echo $ECHO_N "checking for signed char... $ECHO_C" >&6
  8390. if test "${ac_cv_type_signed_char+set}" = set; then
  8391. echo $ECHO_N "(cached) $ECHO_C" >&6
  8392. else
  8393. cat >conftest.$ac_ext <<_ACEOF
  8394. #line 9327 "configure"
  8395. #include "confdefs.h"
  8396. $ac_includes_default
  8397. int
  8398. main ()
  8399. {
  8400. if ((signed char *) 0)
  8401. return 0;
  8402. if (sizeof (signed char))
  8403. return 0;
  8404. ;
  8405. return 0;
  8406. }
  8407. _ACEOF
  8408. rm -f conftest.$ac_objext
  8409. if { (eval echo "$as_me:9342: \"$ac_compile\"") >&5
  8410. (eval $ac_compile) 2>&5
  8411. ac_status=$?
  8412. echo "$as_me:9345: \$? = $ac_status" >&5
  8413. (exit $ac_status); } &&
  8414. { ac_try='test -s conftest.$ac_objext'
  8415. { (eval echo "$as_me:9348: \"$ac_try\"") >&5
  8416. (eval $ac_try) 2>&5
  8417. ac_status=$?
  8418. echo "$as_me:9351: \$? = $ac_status" >&5
  8419. (exit $ac_status); }; }; then
  8420. ac_cv_type_signed_char=yes
  8421. else
  8422. echo "$as_me: failed program was:" >&5
  8423. cat conftest.$ac_ext >&5
  8424. ac_cv_type_signed_char=no
  8425. fi
  8426. rm -f conftest.$ac_objext conftest.$ac_ext
  8427. fi
  8428. echo "$as_me:9361: result: $ac_cv_type_signed_char" >&5
  8429. echo "${ECHO_T}$ac_cv_type_signed_char" >&6
  8430. echo "$as_me:9364: checking size of signed char" >&5
  8431. echo $ECHO_N "checking size of signed char... $ECHO_C" >&6
  8432. if test "${ac_cv_sizeof_signed_char+set}" = set; then
  8433. echo $ECHO_N "(cached) $ECHO_C" >&6
  8434. else
  8435. if test "$ac_cv_type_signed_char" = yes; then
  8436. if test "$cross_compiling" = yes; then
  8437. # Depending upon the size, compute the lo and hi bounds.
  8438. cat >conftest.$ac_ext <<_ACEOF
  8439. #line 9373 "configure"
  8440. #include "confdefs.h"
  8441. $ac_includes_default
  8442. int
  8443. main ()
  8444. {
  8445. int _array_ [1 - 2 * !((sizeof (signed char)) >= 0)]
  8446. ;
  8447. return 0;
  8448. }
  8449. _ACEOF
  8450. rm -f conftest.$ac_objext
  8451. if { (eval echo "$as_me:9385: \"$ac_compile\"") >&5
  8452. (eval $ac_compile) 2>&5
  8453. ac_status=$?
  8454. echo "$as_me:9388: \$? = $ac_status" >&5
  8455. (exit $ac_status); } &&
  8456. { ac_try='test -s conftest.$ac_objext'
  8457. { (eval echo "$as_me:9391: \"$ac_try\"") >&5
  8458. (eval $ac_try) 2>&5
  8459. ac_status=$?
  8460. echo "$as_me:9394: \$? = $ac_status" >&5
  8461. (exit $ac_status); }; }; then
  8462. ac_lo=0 ac_mid=0
  8463. while :; do
  8464. cat >conftest.$ac_ext <<_ACEOF
  8465. #line 9399 "configure"
  8466. #include "confdefs.h"
  8467. $ac_includes_default
  8468. int
  8469. main ()
  8470. {
  8471. int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
  8472. ;
  8473. return 0;
  8474. }
  8475. _ACEOF
  8476. rm -f conftest.$ac_objext
  8477. if { (eval echo "$as_me:9411: \"$ac_compile\"") >&5
  8478. (eval $ac_compile) 2>&5
  8479. ac_status=$?
  8480. echo "$as_me:9414: \$? = $ac_status" >&5
  8481. (exit $ac_status); } &&
  8482. { ac_try='test -s conftest.$ac_objext'
  8483. { (eval echo "$as_me:9417: \"$ac_try\"") >&5
  8484. (eval $ac_try) 2>&5
  8485. ac_status=$?
  8486. echo "$as_me:9420: \$? = $ac_status" >&5
  8487. (exit $ac_status); }; }; then
  8488. ac_hi=$ac_mid; break
  8489. else
  8490. echo "$as_me: failed program was:" >&5
  8491. cat conftest.$ac_ext >&5
  8492. ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
  8493. fi
  8494. rm -f conftest.$ac_objext conftest.$ac_ext
  8495. done
  8496. else
  8497. echo "$as_me: failed program was:" >&5
  8498. cat conftest.$ac_ext >&5
  8499. ac_hi=-1 ac_mid=-1
  8500. while :; do
  8501. cat >conftest.$ac_ext <<_ACEOF
  8502. #line 9436 "configure"
  8503. #include "confdefs.h"
  8504. $ac_includes_default
  8505. int
  8506. main ()
  8507. {
  8508. int _array_ [1 - 2 * !((sizeof (signed char)) >= $ac_mid)]
  8509. ;
  8510. return 0;
  8511. }
  8512. _ACEOF
  8513. rm -f conftest.$ac_objext
  8514. if { (eval echo "$as_me:9448: \"$ac_compile\"") >&5
  8515. (eval $ac_compile) 2>&5
  8516. ac_status=$?
  8517. echo "$as_me:9451: \$? = $ac_status" >&5
  8518. (exit $ac_status); } &&
  8519. { ac_try='test -s conftest.$ac_objext'
  8520. { (eval echo "$as_me:9454: \"$ac_try\"") >&5
  8521. (eval $ac_try) 2>&5
  8522. ac_status=$?
  8523. echo "$as_me:9457: \$? = $ac_status" >&5
  8524. (exit $ac_status); }; }; then
  8525. ac_lo=$ac_mid; break
  8526. else
  8527. echo "$as_me: failed program was:" >&5
  8528. cat conftest.$ac_ext >&5
  8529. ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
  8530. fi
  8531. rm -f conftest.$ac_objext conftest.$ac_ext
  8532. done
  8533. fi
  8534. rm -f conftest.$ac_objext conftest.$ac_ext
  8535. # Binary search between lo and hi bounds.
  8536. while test "x$ac_lo" != "x$ac_hi"; do
  8537. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  8538. cat >conftest.$ac_ext <<_ACEOF
  8539. #line 9473 "configure"
  8540. #include "confdefs.h"
  8541. $ac_includes_default
  8542. int
  8543. main ()
  8544. {
  8545. int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
  8546. ;
  8547. return 0;
  8548. }
  8549. _ACEOF
  8550. rm -f conftest.$ac_objext
  8551. if { (eval echo "$as_me:9485: \"$ac_compile\"") >&5
  8552. (eval $ac_compile) 2>&5
  8553. ac_status=$?
  8554. echo "$as_me:9488: \$? = $ac_status" >&5
  8555. (exit $ac_status); } &&
  8556. { ac_try='test -s conftest.$ac_objext'
  8557. { (eval echo "$as_me:9491: \"$ac_try\"") >&5
  8558. (eval $ac_try) 2>&5
  8559. ac_status=$?
  8560. echo "$as_me:9494: \$? = $ac_status" >&5
  8561. (exit $ac_status); }; }; then
  8562. ac_hi=$ac_mid
  8563. else
  8564. echo "$as_me: failed program was:" >&5
  8565. cat conftest.$ac_ext >&5
  8566. ac_lo=`expr $ac_mid + 1`
  8567. fi
  8568. rm -f conftest.$ac_objext conftest.$ac_ext
  8569. done
  8570. ac_cv_sizeof_signed_char=$ac_lo
  8571. else
  8572. if test "$cross_compiling" = yes; then
  8573. { { echo "$as_me:9507: error: cannot run test program while cross compiling" >&5
  8574. echo "$as_me: error: cannot run test program while cross compiling" >&2;}
  8575. { (exit 1); exit 1; }; }
  8576. else
  8577. cat >conftest.$ac_ext <<_ACEOF
  8578. #line 9512 "configure"
  8579. #include "confdefs.h"
  8580. $ac_includes_default
  8581. int
  8582. main ()
  8583. {
  8584. FILE *f = fopen ("conftest.val", "w");
  8585. if (!f)
  8586. $ac_main_return (1);
  8587. fprintf (f, "%d", (sizeof (signed char)));
  8588. fclose (f);
  8589. ;
  8590. return 0;
  8591. }
  8592. _ACEOF
  8593. rm -f conftest$ac_exeext
  8594. if { (eval echo "$as_me:9528: \"$ac_link\"") >&5
  8595. (eval $ac_link) 2>&5
  8596. ac_status=$?
  8597. echo "$as_me:9531: \$? = $ac_status" >&5
  8598. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8599. { (eval echo "$as_me:9533: \"$ac_try\"") >&5
  8600. (eval $ac_try) 2>&5
  8601. ac_status=$?
  8602. echo "$as_me:9536: \$? = $ac_status" >&5
  8603. (exit $ac_status); }; }; then
  8604. ac_cv_sizeof_signed_char=`cat conftest.val`
  8605. else
  8606. echo "$as_me: program exited with status $ac_status" >&5
  8607. echo "$as_me: failed program was:" >&5
  8608. cat conftest.$ac_ext >&5
  8609. fi
  8610. rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8611. fi
  8612. fi
  8613. rm -f conftest.val
  8614. else
  8615. ac_cv_sizeof_signed_char=0
  8616. fi
  8617. fi
  8618. echo "$as_me:9552: result: $ac_cv_sizeof_signed_char" >&5
  8619. echo "${ECHO_T}$ac_cv_sizeof_signed_char" >&6
  8620. cat >>confdefs.h <<EOF
  8621. #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
  8622. EOF
  8623. if test "$ac_cv_sizeof_signed_char" = 1 ; then
  8624. NCURSES_SBOOL="signed char"
  8625. else
  8626. NCURSES_SBOOL="char"
  8627. fi
  8628. echo "$as_me:9563: checking if you want to use signed Boolean array in term.h" >&5
  8629. echo $ECHO_N "checking if you want to use signed Boolean array in term.h... $ECHO_C" >&6
  8630. # Check whether --enable-signed-char or --disable-signed-char was given.
  8631. if test "${enable_signed_char+set}" = set; then
  8632. enableval="$enable_signed_char"
  8633. with_signed_char=$enableval
  8634. else
  8635. with_signed_char=no
  8636. fi;
  8637. echo "$as_me:9573: result: $with_signed_char" >&5
  8638. echo "${ECHO_T}$with_signed_char" >&6
  8639. test "$with_signed_char" != yes && NCURSES_SBOOL="char"
  8640. ### use option --enable-sigwinch to turn on use of SIGWINCH logic
  8641. echo "$as_me:9578: checking if you want SIGWINCH handler" >&5
  8642. echo $ECHO_N "checking if you want SIGWINCH handler... $ECHO_C" >&6
  8643. # Check whether --enable-sigwinch or --disable-sigwinch was given.
  8644. if test "${enable_sigwinch+set}" = set; then
  8645. enableval="$enable_sigwinch"
  8646. with_sigwinch=$enableval
  8647. else
  8648. with_sigwinch=$with_ext_funcs
  8649. fi;
  8650. echo "$as_me:9588: result: $with_sigwinch" >&5
  8651. echo "${ECHO_T}$with_sigwinch" >&6
  8652. test "$with_sigwinch" = yes && cat >>confdefs.h <<\EOF
  8653. #define USE_SIGWINCH 1
  8654. EOF
  8655. ### use option --enable-tcap-names to allow user to define new capabilities
  8656. echo "$as_me:9595: checking if you want user-definable terminal capabilities like termcap" >&5
  8657. echo $ECHO_N "checking if you want user-definable terminal capabilities like termcap... $ECHO_C" >&6
  8658. # Check whether --enable-tcap-names or --disable-tcap-names was given.
  8659. if test "${enable_tcap_names+set}" = set; then
  8660. enableval="$enable_tcap_names"
  8661. with_tcap_names=$enableval
  8662. else
  8663. with_tcap_names=$with_ext_funcs
  8664. fi;
  8665. echo "$as_me:9605: result: $with_tcap_names" >&5
  8666. echo "${ECHO_T}$with_tcap_names" >&6
  8667. NCURSES_XNAMES=0
  8668. test "$with_tcap_names" = yes && NCURSES_XNAMES=1
  8669. ###############################################################################
  8670. # These options are relatively safe to experiment with.
  8671. echo "$as_me:9613: checking if you want all development code" >&5
  8672. echo $ECHO_N "checking if you want all development code... $ECHO_C" >&6
  8673. # Check whether --with-develop or --without-develop was given.
  8674. if test "${with_develop+set}" = set; then
  8675. withval="$with_develop"
  8676. with_develop=$withval
  8677. else
  8678. with_develop=no
  8679. fi;
  8680. echo "$as_me:9623: result: $with_develop" >&5
  8681. echo "${ECHO_T}$with_develop" >&6
  8682. ### use option --enable-hard-tabs to turn on use of hard-tabs optimize
  8683. echo "$as_me:9627: checking if you want hard-tabs code" >&5
  8684. echo $ECHO_N "checking if you want hard-tabs code... $ECHO_C" >&6
  8685. # Check whether --enable-hard-tabs or --disable-hard-tabs was given.
  8686. if test "${enable_hard_tabs+set}" = set; then
  8687. enableval="$enable_hard_tabs"
  8688. else
  8689. enable_hard_tabs=$with_develop
  8690. fi;
  8691. echo "$as_me:9637: result: $enable_hard_tabs" >&5
  8692. echo "${ECHO_T}$enable_hard_tabs" >&6
  8693. test "$enable_hard_tabs" = yes && cat >>confdefs.h <<\EOF
  8694. #define USE_HARD_TABS 1
  8695. EOF
  8696. ### use option --enable-xmc-glitch to turn on use of magic-cookie optimize
  8697. echo "$as_me:9644: checking if you want limited support for xmc" >&5
  8698. echo $ECHO_N "checking if you want limited support for xmc... $ECHO_C" >&6
  8699. # Check whether --enable-xmc-glitch or --disable-xmc-glitch was given.
  8700. if test "${enable_xmc_glitch+set}" = set; then
  8701. enableval="$enable_xmc_glitch"
  8702. else
  8703. enable_xmc_glitch=$with_develop
  8704. fi;
  8705. echo "$as_me:9654: result: $enable_xmc_glitch" >&5
  8706. echo "${ECHO_T}$enable_xmc_glitch" >&6
  8707. test "$enable_xmc_glitch" = yes && cat >>confdefs.h <<\EOF
  8708. #define USE_XMC_SUPPORT 1
  8709. EOF
  8710. ###############################################################################
  8711. # These are just experimental, probably should not be in a package:
  8712. echo "$as_me:9663: checking if you do not want to assume colors are white-on-black" >&5
  8713. echo $ECHO_N "checking if you do not want to assume colors are white-on-black... $ECHO_C" >&6
  8714. # Check whether --enable-assumed-color or --disable-assumed-color was given.
  8715. if test "${enable_assumed_color+set}" = set; then
  8716. enableval="$enable_assumed_color"
  8717. with_assumed_color=$enableval
  8718. else
  8719. with_assumed_color=yes
  8720. fi;
  8721. echo "$as_me:9673: result: $with_assumed_color" >&5
  8722. echo "${ECHO_T}$with_assumed_color" >&6
  8723. test "$with_assumed_color" = yes && cat >>confdefs.h <<\EOF
  8724. #define USE_ASSUMED_COLOR 1
  8725. EOF
  8726. ### use option --enable-hashmap to turn on use of hashmap scrolling logic
  8727. echo "$as_me:9680: checking if you want hashmap scrolling-optimization code" >&5
  8728. echo $ECHO_N "checking if you want hashmap scrolling-optimization code... $ECHO_C" >&6
  8729. # Check whether --enable-hashmap or --disable-hashmap was given.
  8730. if test "${enable_hashmap+set}" = set; then
  8731. enableval="$enable_hashmap"
  8732. with_hashmap=$enableval
  8733. else
  8734. with_hashmap=yes
  8735. fi;
  8736. echo "$as_me:9690: result: $with_hashmap" >&5
  8737. echo "${ECHO_T}$with_hashmap" >&6
  8738. test "$with_hashmap" = yes && cat >>confdefs.h <<\EOF
  8739. #define USE_HASHMAP 1
  8740. EOF
  8741. ### use option --enable-colorfgbg to turn on use of $COLORFGBG environment
  8742. echo "$as_me:9697: checking if you want colorfgbg code" >&5
  8743. echo $ECHO_N "checking if you want colorfgbg code... $ECHO_C" >&6
  8744. # Check whether --enable-colorfgbg or --disable-colorfgbg was given.
  8745. if test "${enable_colorfgbg+set}" = set; then
  8746. enableval="$enable_colorfgbg"
  8747. with_colorfgbg=$enableval
  8748. else
  8749. with_colorfgbg=no
  8750. fi;
  8751. echo "$as_me:9707: result: $with_colorfgbg" >&5
  8752. echo "${ECHO_T}$with_colorfgbg" >&6
  8753. test "$with_colorfgbg" = yes && cat >>confdefs.h <<\EOF
  8754. #define USE_COLORFGBG 1
  8755. EOF
  8756. # This is still experimental (20080329), but should ultimately be moved to
  8757. # the script-block --with-normal, etc.
  8758. echo "$as_me:9716: checking if you want to link with the pthread library" >&5
  8759. echo $ECHO_N "checking if you want to link with the pthread library... $ECHO_C" >&6
  8760. # Check whether --with-pthread or --without-pthread was given.
  8761. if test "${with_pthread+set}" = set; then
  8762. withval="$with_pthread"
  8763. with_pthread=$withval
  8764. else
  8765. with_pthread=no
  8766. fi;
  8767. echo "$as_me:9726: result: $with_pthread" >&5
  8768. echo "${ECHO_T}$with_pthread" >&6
  8769. if test "$with_pthread" != no ; then
  8770. echo "$as_me:9730: checking for pthread.h" >&5
  8771. echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
  8772. if test "${ac_cv_header_pthread_h+set}" = set; then
  8773. echo $ECHO_N "(cached) $ECHO_C" >&6
  8774. else
  8775. cat >conftest.$ac_ext <<_ACEOF
  8776. #line 9736 "configure"
  8777. #include "confdefs.h"
  8778. #include <pthread.h>
  8779. _ACEOF
  8780. if { (eval echo "$as_me:9740: \"$ac_cpp conftest.$ac_ext\"") >&5
  8781. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8782. ac_status=$?
  8783. egrep -v '^ *\+' conftest.er1 >conftest.err
  8784. rm -f conftest.er1
  8785. cat conftest.err >&5
  8786. echo "$as_me:9746: \$? = $ac_status" >&5
  8787. (exit $ac_status); } >/dev/null; then
  8788. if test -s conftest.err; then
  8789. ac_cpp_err=$ac_c_preproc_warn_flag
  8790. else
  8791. ac_cpp_err=
  8792. fi
  8793. else
  8794. ac_cpp_err=yes
  8795. fi
  8796. if test -z "$ac_cpp_err"; then
  8797. ac_cv_header_pthread_h=yes
  8798. else
  8799. echo "$as_me: failed program was:" >&5
  8800. cat conftest.$ac_ext >&5
  8801. ac_cv_header_pthread_h=no
  8802. fi
  8803. rm -f conftest.err conftest.$ac_ext
  8804. fi
  8805. echo "$as_me:9765: result: $ac_cv_header_pthread_h" >&5
  8806. echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
  8807. if test $ac_cv_header_pthread_h = yes; then
  8808. cat >>confdefs.h <<\EOF
  8809. #define HAVE_PTHREADS_H 1
  8810. EOF
  8811. echo "$as_me:9773: checking if we can link with the pthread library" >&5
  8812. echo $ECHO_N "checking if we can link with the pthread library... $ECHO_C" >&6
  8813. cf_save_LIBS="$LIBS"
  8814. LIBS="-lpthread $LIBS"
  8815. cat >conftest.$ac_ext <<_ACEOF
  8816. #line 9778 "configure"
  8817. #include "confdefs.h"
  8818. #include <pthread.h>
  8819. int
  8820. main ()
  8821. {
  8822. int rc = pthread_create(0,0,0,0);
  8823. ;
  8824. return 0;
  8825. }
  8826. _ACEOF
  8827. rm -f conftest.$ac_objext conftest$ac_exeext
  8828. if { (eval echo "$as_me:9794: \"$ac_link\"") >&5
  8829. (eval $ac_link) 2>&5
  8830. ac_status=$?
  8831. echo "$as_me:9797: \$? = $ac_status" >&5
  8832. (exit $ac_status); } &&
  8833. { ac_try='test -s conftest$ac_exeext'
  8834. { (eval echo "$as_me:9800: \"$ac_try\"") >&5
  8835. (eval $ac_try) 2>&5
  8836. ac_status=$?
  8837. echo "$as_me:9803: \$? = $ac_status" >&5
  8838. (exit $ac_status); }; }; then
  8839. with_pthread=yes
  8840. else
  8841. echo "$as_me: failed program was:" >&5
  8842. cat conftest.$ac_ext >&5
  8843. with_pthread=no
  8844. fi
  8845. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  8846. LIBS="$cf_save_LIBS"
  8847. echo "$as_me:9813: result: $with_pthread" >&5
  8848. echo "${ECHO_T}$with_pthread" >&6
  8849. if test "$with_pthread" = yes ; then
  8850. LIBS="-lpthread $LIBS"
  8851. cat >>confdefs.h <<\EOF
  8852. #define HAVE_LIBPTHREADS 1
  8853. EOF
  8854. else
  8855. { { echo "$as_me:9823: error: Cannot link with pthread library" >&5
  8856. echo "$as_me: error: Cannot link with pthread library" >&2;}
  8857. { (exit 1); exit 1; }; }
  8858. fi
  8859. fi
  8860. fi
  8861. echo "$as_me:9832: checking if you want to use weak-symbols for pthreads" >&5
  8862. echo $ECHO_N "checking if you want to use weak-symbols for pthreads... $ECHO_C" >&6
  8863. # Check whether --enable-weak-symbols or --disable-weak-symbols was given.
  8864. if test "${enable_weak_symbols+set}" = set; then
  8865. enableval="$enable_weak_symbols"
  8866. use_weak_symbols=$withval
  8867. else
  8868. use_weak_symbols=no
  8869. fi;
  8870. echo "$as_me:9842: result: $use_weak_symbols" >&5
  8871. echo "${ECHO_T}$use_weak_symbols" >&6
  8872. if test "$use_weak_symbols" = yes ; then
  8873. echo "$as_me:9846: checking if $CC supports weak symbols" >&5
  8874. echo $ECHO_N "checking if $CC supports weak symbols... $ECHO_C" >&6
  8875. if test "${cf_cv_weak_symbols+set}" = set; then
  8876. echo $ECHO_N "(cached) $ECHO_C" >&6
  8877. else
  8878. cat >conftest.$ac_ext <<_ACEOF
  8879. #line 9853 "configure"
  8880. #include "confdefs.h"
  8881. #include <stdio.h>
  8882. int
  8883. main ()
  8884. {
  8885. #if defined(__GNUC__)
  8886. # if defined __USE_ISOC99
  8887. # define _cat_pragma(exp) _Pragma(#exp)
  8888. # define _weak_pragma(exp) _cat_pragma(weak name)
  8889. # else
  8890. # define _weak_pragma(exp)
  8891. # endif
  8892. # define _declare(name) __extension__ extern __typeof__(name) name
  8893. # define weak_symbol(name) _weak_pragma(name) _declare(name) __attribute__((weak))
  8894. #endif
  8895. weak_symbol(fopen);
  8896. ;
  8897. return 0;
  8898. }
  8899. _ACEOF
  8900. rm -f conftest.$ac_objext
  8901. if { (eval echo "$as_me:9879: \"$ac_compile\"") >&5
  8902. (eval $ac_compile) 2>&5
  8903. ac_status=$?
  8904. echo "$as_me:9882: \$? = $ac_status" >&5
  8905. (exit $ac_status); } &&
  8906. { ac_try='test -s conftest.$ac_objext'
  8907. { (eval echo "$as_me:9885: \"$ac_try\"") >&5
  8908. (eval $ac_try) 2>&5
  8909. ac_status=$?
  8910. echo "$as_me:9888: \$? = $ac_status" >&5
  8911. (exit $ac_status); }; }; then
  8912. cf_cv_weak_symbols=yes
  8913. else
  8914. echo "$as_me: failed program was:" >&5
  8915. cat conftest.$ac_ext >&5
  8916. cf_cv_weak_symbols=no
  8917. fi
  8918. rm -f conftest.$ac_objext conftest.$ac_ext
  8919. fi
  8920. echo "$as_me:9899: result: $cf_cv_weak_symbols" >&5
  8921. echo "${ECHO_T}$cf_cv_weak_symbols" >&6
  8922. else
  8923. cf_cv_weak_symbols=no
  8924. fi
  8925. if test $cf_cv_weak_symbols = yes ; then
  8926. cat >>confdefs.h <<\EOF
  8927. #define USE_WEAK_SYMBOLS 1
  8928. EOF
  8929. fi
  8930. PTHREAD=
  8931. if test "$with_pthread" = "yes" ; then
  8932. cat >>confdefs.h <<\EOF
  8933. #define USE_PTHREADS 1
  8934. EOF
  8935. enable_reentrant=yes
  8936. if test $cf_cv_weak_symbols = yes ; then
  8937. PTHREAD=-lpthread
  8938. fi
  8939. fi
  8940. # Reentrant code has to be opaque; there's little advantage to making ncurses
  8941. # opaque outside of that, so there is no --enable-opaque option. We can use
  8942. # this option without --with-pthreads, but this will be always set for
  8943. # pthreads.
  8944. echo "$as_me:9929: checking if you want experimental reentrant code" >&5
  8945. echo $ECHO_N "checking if you want experimental reentrant code... $ECHO_C" >&6
  8946. # Check whether --enable-reentrant or --disable-reentrant was given.
  8947. if test "${enable_reentrant+set}" = set; then
  8948. enableval="$enable_reentrant"
  8949. with_reentrant=$enableval
  8950. else
  8951. with_reentrant=no
  8952. fi;
  8953. echo "$as_me:9939: result: $with_reentrant" >&5
  8954. echo "${ECHO_T}$with_reentrant" >&6
  8955. if test "$with_reentrant" = yes ; then
  8956. cf_cv_enable_reentrant=1
  8957. cf_cv_enable_opaque="NCURSES_INTERNALS"
  8958. NCURSES_OPAQUE=1
  8959. NCURSES_SIZE_T=int
  8960. if test $cf_cv_weak_symbols = yes ; then
  8961. # remove pthread library from $LIBS
  8962. LIBS=`echo "$LIBS" | sed -e 's/-lpthread[ ]//g' -e 's/-lpthread$//'`
  8963. else
  8964. LIB_SUFFIX="t${LIB_SUFFIX}"
  8965. fi
  8966. cat >>confdefs.h <<\EOF
  8967. #define USE_REENTRANT 1
  8968. EOF
  8969. if test "${with_abi_version+set}" != set; then
  8970. case $cf_cv_rel_version in
  8971. 5.*)
  8972. cf_cv_rel_version=6.0
  8973. cf_cv_abi_version=6
  8974. { echo "$as_me:9963: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
  8975. echo "$as_me: WARNING: Overriding ABI version to $cf_cv_abi_version" >&2;}
  8976. ;;
  8977. esac
  8978. fi
  8979. else
  8980. cf_cv_enable_reentrant=0
  8981. cf_cv_enable_opaque="NCURSES_OPAQUE"
  8982. NCURSES_OPAQUE=0
  8983. NCURSES_SIZE_T=short
  8984. fi
  8985. echo "$as_me:9976: checking if you want experimental safe-sprintf code" >&5
  8986. echo $ECHO_N "checking if you want experimental safe-sprintf code... $ECHO_C" >&6
  8987. # Check whether --enable-safe-sprintf or --disable-safe-sprintf was given.
  8988. if test "${enable_safe_sprintf+set}" = set; then
  8989. enableval="$enable_safe_sprintf"
  8990. with_safe_sprintf=$enableval
  8991. else
  8992. with_safe_sprintf=no
  8993. fi;
  8994. echo "$as_me:9986: result: $with_safe_sprintf" >&5
  8995. echo "${ECHO_T}$with_safe_sprintf" >&6
  8996. test "$with_safe_sprintf" = yes && cat >>confdefs.h <<\EOF
  8997. #define USE_SAFE_SPRINTF 1
  8998. EOF
  8999. ### use option --disable-scroll-hints to turn off use of scroll-hints scrolling logic
  9000. # when hashmap is used scroll hints are useless
  9001. if test "$with_hashmap" = no ; then
  9002. echo "$as_me:9995: checking if you want to experiment without scrolling-hints code" >&5
  9003. echo $ECHO_N "checking if you want to experiment without scrolling-hints code... $ECHO_C" >&6
  9004. # Check whether --enable-scroll-hints or --disable-scroll-hints was given.
  9005. if test "${enable_scroll_hints+set}" = set; then
  9006. enableval="$enable_scroll_hints"
  9007. with_scroll_hints=$enableval
  9008. else
  9009. with_scroll_hints=yes
  9010. fi;
  9011. echo "$as_me:10005: result: $with_scroll_hints" >&5
  9012. echo "${ECHO_T}$with_scroll_hints" >&6
  9013. test "$with_scroll_hints" = yes && cat >>confdefs.h <<\EOF
  9014. #define USE_SCROLL_HINTS 1
  9015. EOF
  9016. fi
  9017. echo "$as_me:10013: checking if you want experimental wgetch-events code" >&5
  9018. echo $ECHO_N "checking if you want experimental wgetch-events code... $ECHO_C" >&6
  9019. # Check whether --enable-wgetch-events or --disable-wgetch-events was given.
  9020. if test "${enable_wgetch_events+set}" = set; then
  9021. enableval="$enable_wgetch_events"
  9022. with_wgetch_events=$enableval
  9023. else
  9024. with_wgetch_events=no
  9025. fi;
  9026. echo "$as_me:10023: result: $with_wgetch_events" >&5
  9027. echo "${ECHO_T}$with_wgetch_events" >&6
  9028. test "$with_wgetch_events" = yes && cat >>confdefs.h <<\EOF
  9029. #define NCURSES_WGETCH_EVENTS 1
  9030. EOF
  9031. ###############################################################################
  9032. ### use option --disable-echo to suppress full display compiling commands
  9033. echo "$as_me:10032: checking if you want to display full commands during build" >&5
  9034. echo $ECHO_N "checking if you want to display full commands during build... $ECHO_C" >&6
  9035. # Check whether --enable-echo or --disable-echo was given.
  9036. if test "${enable_echo+set}" = set; then
  9037. enableval="$enable_echo"
  9038. with_echo=$enableval
  9039. else
  9040. with_echo=yes
  9041. fi;
  9042. if test "$with_echo" = yes; then
  9043. ECHO_LINK=
  9044. else
  9045. ECHO_LINK='@ echo linking $@ ... ;'
  9046. test -n "$LIBTOOL" && LIBTOOL="$LIBTOOL --silent"
  9047. test -n "$LIBTOOL_CXX" && LIBTOOL_CXX="$LIBTOOL_CXX --silent"
  9048. fi
  9049. echo "$as_me:10049: result: $with_echo" >&5
  9050. echo "${ECHO_T}$with_echo" >&6
  9051. ### use option --enable-warnings to turn on all gcc warnings
  9052. echo "$as_me:10053: checking if you want to see compiler warnings" >&5
  9053. echo $ECHO_N "checking if you want to see compiler warnings... $ECHO_C" >&6
  9054. # Check whether --enable-warnings or --disable-warnings was given.
  9055. if test "${enable_warnings+set}" = set; then
  9056. enableval="$enable_warnings"
  9057. with_warnings=$enableval
  9058. fi;
  9059. echo "$as_me:10061: result: $with_warnings" >&5
  9060. echo "${ECHO_T}$with_warnings" >&6
  9061. if test "x$with_warnings" = "xyes"; then
  9062. ADAFLAGS="$ADAFLAGS -gnatg"
  9063. INTEL_COMPILER=no
  9064. if test "$GCC" = yes ; then
  9065. case $host_os in
  9066. linux*|gnu*)
  9067. echo "$as_me:10072: checking if this is really Intel C compiler" >&5
  9068. echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
  9069. cf_save_CFLAGS="$CFLAGS"
  9070. CFLAGS="$CFLAGS -no-gcc"
  9071. cat >conftest.$ac_ext <<_ACEOF
  9072. #line 10077 "configure"
  9073. #include "confdefs.h"
  9074. int
  9075. main ()
  9076. {
  9077. #ifdef __INTEL_COMPILER
  9078. #else
  9079. make an error
  9080. #endif
  9081. ;
  9082. return 0;
  9083. }
  9084. _ACEOF
  9085. rm -f conftest.$ac_objext
  9086. if { (eval echo "$as_me:10094: \"$ac_compile\"") >&5
  9087. (eval $ac_compile) 2>&5
  9088. ac_status=$?
  9089. echo "$as_me:10097: \$? = $ac_status" >&5
  9090. (exit $ac_status); } &&
  9091. { ac_try='test -s conftest.$ac_objext'
  9092. { (eval echo "$as_me:10100: \"$ac_try\"") >&5
  9093. (eval $ac_try) 2>&5
  9094. ac_status=$?
  9095. echo "$as_me:10103: \$? = $ac_status" >&5
  9096. (exit $ac_status); }; }; then
  9097. INTEL_COMPILER=yes
  9098. cf_save_CFLAGS="$cf_save_CFLAGS -we147 -no-gcc"
  9099. else
  9100. echo "$as_me: failed program was:" >&5
  9101. cat conftest.$ac_ext >&5
  9102. fi
  9103. rm -f conftest.$ac_objext conftest.$ac_ext
  9104. CFLAGS="$cf_save_CFLAGS"
  9105. echo "$as_me:10114: result: $INTEL_COMPILER" >&5
  9106. echo "${ECHO_T}$INTEL_COMPILER" >&6
  9107. ;;
  9108. esac
  9109. fi
  9110. cat > conftest.$ac_ext <<EOF
  9111. #line 10121 "${as_me-configure}"
  9112. int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
  9113. EOF
  9114. if test "$INTEL_COMPILER" = yes
  9115. then
  9116. # The "-wdXXX" options suppress warnings:
  9117. # remark #1419: external declaration in primary source file
  9118. # remark #1682: implicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
  9119. # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
  9120. # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
  9121. # remark #193: zero used for undefined preprocessing identifier
  9122. # remark #593: variable "curs_sb_left_arrow" was set but never used
  9123. # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
  9124. # remark #869: parameter "tw" was never referenced
  9125. # remark #981: operands are evaluated in unspecified order
  9126. # warning #269: invalid format string conversion
  9127. { echo "$as_me:10139: checking for $CC warning options..." >&5
  9128. echo "$as_me: checking for $CC warning options..." >&6;}
  9129. cf_save_CFLAGS="$CFLAGS"
  9130. EXTRA_CFLAGS="-Wall"
  9131. for cf_opt in \
  9132. wd1419 \
  9133. wd1682 \
  9134. wd1683 \
  9135. wd1684 \
  9136. wd193 \
  9137. wd279 \
  9138. wd593 \
  9139. wd810 \
  9140. wd869 \
  9141. wd981
  9142. do
  9143. CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
  9144. if { (eval echo "$as_me:10156: \"$ac_compile\"") >&5
  9145. (eval $ac_compile) 2>&5
  9146. ac_status=$?
  9147. echo "$as_me:10159: \$? = $ac_status" >&5
  9148. (exit $ac_status); }; then
  9149. test -n "$verbose" && echo "$as_me:10161: result: ... -$cf_opt" >&5
  9150. echo "${ECHO_T}... -$cf_opt" >&6
  9151. EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
  9152. fi
  9153. done
  9154. CFLAGS="$cf_save_CFLAGS"
  9155. elif test "$GCC" = yes
  9156. then
  9157. { echo "$as_me:10170: checking for $CC warning options..." >&5
  9158. echo "$as_me: checking for $CC warning options..." >&6;}
  9159. cf_save_CFLAGS="$CFLAGS"
  9160. EXTRA_CFLAGS="-W -Wall"
  9161. cf_warn_CONST=""
  9162. test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
  9163. for cf_opt in \
  9164. Wbad-function-cast \
  9165. Wcast-align \
  9166. Wcast-qual \
  9167. Winline \
  9168. Wmissing-declarations \
  9169. Wmissing-prototypes \
  9170. Wnested-externs \
  9171. Wpointer-arith \
  9172. Wshadow \
  9173. Wstrict-prototypes \
  9174. Wundef $cf_warn_CONST Wdeclaration-after-statement Wextra Wno-unknown-pragmas Wswitch-enum
  9175. do
  9176. CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
  9177. if { (eval echo "$as_me:10190: \"$ac_compile\"") >&5
  9178. (eval $ac_compile) 2>&5
  9179. ac_status=$?
  9180. echo "$as_me:10193: \$? = $ac_status" >&5
  9181. (exit $ac_status); }; then
  9182. test -n "$verbose" && echo "$as_me:10195: result: ... -$cf_opt" >&5
  9183. echo "${ECHO_T}... -$cf_opt" >&6
  9184. case $cf_opt in #(vi
  9185. Wcast-qual) #(vi
  9186. CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
  9187. ;;
  9188. Winline) #(vi
  9189. case $GCC_VERSION in
  9190. [34].*)
  9191. test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
  9192. echo "${as_me-configure}:10206: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
  9193. continue;;
  9194. esac
  9195. ;;
  9196. esac
  9197. EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
  9198. fi
  9199. done
  9200. CFLAGS="$cf_save_CFLAGS"
  9201. fi
  9202. rm -f conftest*
  9203. if test "$cf_with_cxx" = yes ; then
  9204. INTEL_CPLUSPLUS=no
  9205. if test "$GCC" = yes ; then
  9206. case $host_os in
  9207. linux*|gnu*)
  9208. echo "$as_me:10226: checking if this is really Intel C++ compiler" >&5
  9209. echo $ECHO_N "checking if this is really Intel C++ compiler... $ECHO_C" >&6
  9210. cf_save_CFLAGS="$CXXFLAGS"
  9211. CXXFLAGS="$CXXFLAGS -no-gcc"
  9212. cat >conftest.$ac_ext <<_ACEOF
  9213. #line 10231 "configure"
  9214. #include "confdefs.h"
  9215. int
  9216. main ()
  9217. {
  9218. #ifdef __INTEL_COMPILER
  9219. #else
  9220. make an error
  9221. #endif
  9222. ;
  9223. return 0;
  9224. }
  9225. _ACEOF
  9226. rm -f conftest.$ac_objext
  9227. if { (eval echo "$as_me:10248: \"$ac_compile\"") >&5
  9228. (eval $ac_compile) 2>&5
  9229. ac_status=$?
  9230. echo "$as_me:10251: \$? = $ac_status" >&5
  9231. (exit $ac_status); } &&
  9232. { ac_try='test -s conftest.$ac_objext'
  9233. { (eval echo "$as_me:10254: \"$ac_try\"") >&5
  9234. (eval $ac_try) 2>&5
  9235. ac_status=$?
  9236. echo "$as_me:10257: \$? = $ac_status" >&5
  9237. (exit $ac_status); }; }; then
  9238. INTEL_CPLUSPLUS=yes
  9239. cf_save_CFLAGS="$cf_save_CFLAGS -we147 -no-gcc"
  9240. else
  9241. echo "$as_me: failed program was:" >&5
  9242. cat conftest.$ac_ext >&5
  9243. fi
  9244. rm -f conftest.$ac_objext conftest.$ac_ext
  9245. CXXFLAGS="$cf_save_CFLAGS"
  9246. echo "$as_me:10268: result: $INTEL_CPLUSPLUS" >&5
  9247. echo "${ECHO_T}$INTEL_CPLUSPLUS" >&6
  9248. ;;
  9249. esac
  9250. fi
  9251. ac_ext=cc
  9252. ac_cpp='$CXXCPP $CPPFLAGS'
  9253. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9254. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9255. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9256. ac_main_return=return
  9257. cat > conftest.$ac_ext <<EOF
  9258. #line 10282 "configure"
  9259. int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
  9260. EOF
  9261. if test "$INTEL_CPLUSPLUS" = yes
  9262. then
  9263. # The "-wdXXX" options suppress warnings:
  9264. # remark #1419: external declaration in primary source file
  9265. # remark #1682: implicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
  9266. # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
  9267. # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
  9268. # remark #193: zero used for undefined preprocessing identifier
  9269. # remark #593: variable "curs_sb_left_arrow" was set but never used
  9270. # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
  9271. # remark #869: parameter "tw" was never referenced
  9272. # remark #981: operands are evaluated in unspecified order
  9273. # warning #269: invalid format string conversion
  9274. { echo "$as_me:10300: checking for $CC warning options..." >&5
  9275. echo "$as_me: checking for $CC warning options..." >&6;}
  9276. cf_save_CXXFLAGS="$CXXFLAGS"
  9277. EXTRA_CXXFLAGS="-Wall"
  9278. for cf_opt in \
  9279. wd1419 \
  9280. wd1682 \
  9281. wd1683 \
  9282. wd1684 \
  9283. wd193 \
  9284. wd279 \
  9285. wd593 \
  9286. wd810 \
  9287. wd869 \
  9288. wd981
  9289. do
  9290. CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -$cf_opt"
  9291. if { (eval echo "$as_me:10317: \"$ac_compile\"") >&5
  9292. (eval $ac_compile) 2>&5
  9293. ac_status=$?
  9294. echo "$as_me:10320: \$? = $ac_status" >&5
  9295. (exit $ac_status); }; then
  9296. test -n "$verbose" && echo "$as_me:10322: result: ... -$cf_opt" >&5
  9297. echo "${ECHO_T}... -$cf_opt" >&6
  9298. EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
  9299. fi
  9300. done
  9301. CXXFLAGS="$cf_save_CXXFLAGS"
  9302. elif test "$GXX" = yes
  9303. then
  9304. { echo "$as_me:10331: checking for $CXX warning options..." >&5
  9305. echo "$as_me: checking for $CXX warning options..." >&6;}
  9306. cf_save_CXXFLAGS="$CXXFLAGS"
  9307. EXTRA_CXXFLAGS="-W -Wall"
  9308. cf_gxx_extra_warnings=""
  9309. test "$with_ext_const" = yes && cf_gxx_extra_warnings="Wwrite-strings"
  9310. case "$GCC_VERSION" in
  9311. [1-2].*)
  9312. ;;
  9313. *)
  9314. cf_gxx_extra_warnings="$cf_gxx_extra_warnings Weffc++"
  9315. ;;
  9316. esac
  9317. for cf_opt in \
  9318. Wabi \
  9319. fabi-version=0 \
  9320. Woverloaded-virtual \
  9321. Wsign-promo \
  9322. Wsynth \
  9323. Wold-style-cast \
  9324. Wcast-align \
  9325. Wcast-qual \
  9326. Wmissing-prototypes \
  9327. Wpointer-arith \
  9328. Wshadow \
  9329. Wstrict-prototypes \
  9330. Wundef $cf_gxx_extra_warnings Wno-unused
  9331. do
  9332. CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -Werror -$cf_opt"
  9333. if { (eval echo "$as_me:10360: \"$ac_compile\"") >&5
  9334. (eval $ac_compile) 2>&5
  9335. ac_status=$?
  9336. echo "$as_me:10363: \$? = $ac_status" >&5
  9337. (exit $ac_status); }; then
  9338. test -n "$verbose" && echo "$as_me:10365: result: ... -$cf_opt" >&5
  9339. echo "${ECHO_T}... -$cf_opt" >&6
  9340. EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
  9341. else
  9342. test -n "$verbose" && echo "$as_me:10369: result: ... no -$cf_opt" >&5
  9343. echo "${ECHO_T}... no -$cf_opt" >&6
  9344. fi
  9345. done
  9346. CXXFLAGS="$cf_save_CXXFLAGS"
  9347. fi
  9348. rm -f conftest*
  9349. ac_ext=c
  9350. ac_cpp='$CPP $CPPFLAGS'
  9351. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9352. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9353. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9354. ac_main_return=return
  9355. fi
  9356. fi
  9357. if test "$GCC" = yes
  9358. then
  9359. cat > conftest.i <<EOF
  9360. #ifndef GCC_PRINTF
  9361. #define GCC_PRINTF 0
  9362. #endif
  9363. #ifndef GCC_SCANF
  9364. #define GCC_SCANF 0
  9365. #endif
  9366. #ifndef GCC_NORETURN
  9367. #define GCC_NORETURN /* nothing */
  9368. #endif
  9369. #ifndef GCC_UNUSED
  9370. #define GCC_UNUSED /* nothing */
  9371. #endif
  9372. EOF
  9373. if test "$GCC" = yes
  9374. then
  9375. { echo "$as_me:10405: checking for $CC __attribute__ directives..." >&5
  9376. echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
  9377. cat > conftest.$ac_ext <<EOF
  9378. #line 10408 "${as_me-configure}"
  9379. #include "confdefs.h"
  9380. #include "conftest.h"
  9381. #include "conftest.i"
  9382. #if GCC_PRINTF
  9383. #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
  9384. #else
  9385. #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
  9386. #endif
  9387. #if GCC_SCANF
  9388. #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
  9389. #else
  9390. #define GCC_SCANFLIKE(fmt,var) /*nothing*/
  9391. #endif
  9392. extern void wow(char *,...) GCC_SCANFLIKE(1,2);
  9393. extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
  9394. extern void foo(void) GCC_NORETURN;
  9395. int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
  9396. EOF
  9397. for cf_attribute in scanf printf unused noreturn
  9398. do
  9399. cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
  9400. cf_directive="__attribute__(($cf_attribute))"
  9401. echo "checking for $CC $cf_directive" 1>&5
  9402. case $cf_attribute in
  9403. scanf|printf)
  9404. cat >conftest.h <<EOF
  9405. #define GCC_$cf_ATTRIBUTE 1
  9406. EOF
  9407. ;;
  9408. *)
  9409. cat >conftest.h <<EOF
  9410. #define GCC_$cf_ATTRIBUTE $cf_directive
  9411. EOF
  9412. ;;
  9413. esac
  9414. if { (eval echo "$as_me:10446: \"$ac_compile\"") >&5
  9415. (eval $ac_compile) 2>&5
  9416. ac_status=$?
  9417. echo "$as_me:10449: \$? = $ac_status" >&5
  9418. (exit $ac_status); }; then
  9419. test -n "$verbose" && echo "$as_me:10451: result: ... $cf_attribute" >&5
  9420. echo "${ECHO_T}... $cf_attribute" >&6
  9421. cat conftest.h >>confdefs.h
  9422. fi
  9423. done
  9424. else
  9425. fgrep define conftest.i >>confdefs.h
  9426. fi
  9427. rm -rf conftest*
  9428. fi
  9429. ### use option --enable-assertions to turn on generation of assertion code
  9430. echo "$as_me:10463: checking if you want to enable runtime assertions" >&5
  9431. echo $ECHO_N "checking if you want to enable runtime assertions... $ECHO_C" >&6
  9432. # Check whether --enable-assertions or --disable-assertions was given.
  9433. if test "${enable_assertions+set}" = set; then
  9434. enableval="$enable_assertions"
  9435. with_assertions=$enableval
  9436. else
  9437. with_assertions=no
  9438. fi;
  9439. echo "$as_me:10473: result: $with_assertions" >&5
  9440. echo "${ECHO_T}$with_assertions" >&6
  9441. if test -n "$GCC"
  9442. then
  9443. if test "$with_assertions" = no
  9444. then
  9445. cat >>confdefs.h <<\EOF
  9446. #define NDEBUG 1
  9447. EOF
  9448. CPPFLAGS="$CPPFLAGS -DNDEBUG"
  9449. else
  9450. ADAFLAGS="$ADAFLAGS -gnata"
  9451. fi
  9452. fi
  9453. ### use option --disable-leaks to suppress "permanent" leaks, for testing
  9454. echo "$as_me:10491: checking if you want to use dmalloc for testing" >&5
  9455. echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
  9456. # Check whether --with-dmalloc or --without-dmalloc was given.
  9457. if test "${with_dmalloc+set}" = set; then
  9458. withval="$with_dmalloc"
  9459. cat >>confdefs.h <<\EOF
  9460. #define USE_DMALLOC 1
  9461. EOF
  9462. : ${with_cflags:=-g}
  9463. : ${with_no_leaks:=yes}
  9464. with_dmalloc=yes
  9465. else
  9466. with_dmalloc=
  9467. fi;
  9468. echo "$as_me:10507: result: ${with_dmalloc:-no}" >&5
  9469. echo "${ECHO_T}${with_dmalloc:-no}" >&6
  9470. case .$with_cflags in #(vi
  9471. .*-g*)
  9472. case .$CFLAGS in #(vi
  9473. .*-g*) #(vi
  9474. ;;
  9475. *)
  9476. cf_fix_cppflags=no
  9477. cf_new_cflags=
  9478. cf_new_cppflags=
  9479. cf_new_extra_cppflags=
  9480. for cf_add_cflags in -g
  9481. do
  9482. case $cf_fix_cppflags in
  9483. no)
  9484. case $cf_add_cflags in #(vi
  9485. -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
  9486. case $cf_add_cflags in
  9487. -D*)
  9488. cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
  9489. test "${cf_add_cflags}" != "${cf_tst_cflags}" \
  9490. && test -z "${cf_tst_cflags}" \
  9491. && cf_fix_cppflags=yes
  9492. if test $cf_fix_cppflags = yes ; then
  9493. cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
  9494. continue
  9495. elif test "${cf_tst_cflags}" = "\"'" ; then
  9496. cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
  9497. continue
  9498. fi
  9499. ;;
  9500. esac
  9501. case "$CPPFLAGS" in
  9502. *$cf_add_cflags) #(vi
  9503. ;;
  9504. *) #(vi
  9505. cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
  9506. ;;
  9507. esac
  9508. ;;
  9509. *)
  9510. cf_new_cflags="$cf_new_cflags $cf_add_cflags"
  9511. ;;
  9512. esac
  9513. ;;
  9514. yes)
  9515. cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
  9516. cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
  9517. test "${cf_add_cflags}" != "${cf_tst_cflags}" \
  9518. && test -z "${cf_tst_cflags}" \
  9519. && cf_fix_cppflags=no
  9520. ;;
  9521. esac
  9522. done
  9523. if test -n "$cf_new_cflags" ; then
  9524. CFLAGS="$CFLAGS $cf_new_cflags"
  9525. fi
  9526. if test -n "$cf_new_cppflags" ; then
  9527. CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
  9528. fi
  9529. if test -n "$cf_new_extra_cppflags" ; then
  9530. EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
  9531. fi
  9532. ;;
  9533. esac
  9534. ;;
  9535. esac
  9536. if test "$with_dmalloc" = yes ; then
  9537. echo "$as_me:10591: checking for dmalloc.h" >&5
  9538. echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
  9539. if test "${ac_cv_header_dmalloc_h+set}" = set; then
  9540. echo $ECHO_N "(cached) $ECHO_C" >&6
  9541. else
  9542. cat >conftest.$ac_ext <<_ACEOF
  9543. #line 10597 "configure"
  9544. #include "confdefs.h"
  9545. #include <dmalloc.h>
  9546. _ACEOF
  9547. if { (eval echo "$as_me:10601: \"$ac_cpp conftest.$ac_ext\"") >&5
  9548. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9549. ac_status=$?
  9550. egrep -v '^ *\+' conftest.er1 >conftest.err
  9551. rm -f conftest.er1
  9552. cat conftest.err >&5
  9553. echo "$as_me:10607: \$? = $ac_status" >&5
  9554. (exit $ac_status); } >/dev/null; then
  9555. if test -s conftest.err; then
  9556. ac_cpp_err=$ac_c_preproc_warn_flag
  9557. else
  9558. ac_cpp_err=
  9559. fi
  9560. else
  9561. ac_cpp_err=yes
  9562. fi
  9563. if test -z "$ac_cpp_err"; then
  9564. ac_cv_header_dmalloc_h=yes
  9565. else
  9566. echo "$as_me: failed program was:" >&5
  9567. cat conftest.$ac_ext >&5
  9568. ac_cv_header_dmalloc_h=no
  9569. fi
  9570. rm -f conftest.err conftest.$ac_ext
  9571. fi
  9572. echo "$as_me:10626: result: $ac_cv_header_dmalloc_h" >&5
  9573. echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
  9574. if test $ac_cv_header_dmalloc_h = yes; then
  9575. echo "$as_me:10630: checking for dmalloc_debug in -ldmalloc" >&5
  9576. echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
  9577. if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
  9578. echo $ECHO_N "(cached) $ECHO_C" >&6
  9579. else
  9580. ac_check_lib_save_LIBS=$LIBS
  9581. LIBS="-ldmalloc $LIBS"
  9582. cat >conftest.$ac_ext <<_ACEOF
  9583. #line 10638 "configure"
  9584. #include "confdefs.h"
  9585. /* Override any gcc2 internal prototype to avoid an error. */
  9586. #ifdef __cplusplus
  9587. extern "C"
  9588. #endif
  9589. /* We use char because int might match the return type of a gcc2
  9590. builtin and then its argument prototype would still apply. */
  9591. char dmalloc_debug ();
  9592. int
  9593. main ()
  9594. {
  9595. dmalloc_debug ();
  9596. ;
  9597. return 0;
  9598. }
  9599. _ACEOF
  9600. rm -f conftest.$ac_objext conftest$ac_exeext
  9601. if { (eval echo "$as_me:10657: \"$ac_link\"") >&5
  9602. (eval $ac_link) 2>&5
  9603. ac_status=$?
  9604. echo "$as_me:10660: \$? = $ac_status" >&5
  9605. (exit $ac_status); } &&
  9606. { ac_try='test -s conftest$ac_exeext'
  9607. { (eval echo "$as_me:10663: \"$ac_try\"") >&5
  9608. (eval $ac_try) 2>&5
  9609. ac_status=$?
  9610. echo "$as_me:10666: \$? = $ac_status" >&5
  9611. (exit $ac_status); }; }; then
  9612. ac_cv_lib_dmalloc_dmalloc_debug=yes
  9613. else
  9614. echo "$as_me: failed program was:" >&5
  9615. cat conftest.$ac_ext >&5
  9616. ac_cv_lib_dmalloc_dmalloc_debug=no
  9617. fi
  9618. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  9619. LIBS=$ac_check_lib_save_LIBS
  9620. fi
  9621. echo "$as_me:10677: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
  9622. echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
  9623. if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
  9624. cat >>confdefs.h <<EOF
  9625. #define HAVE_LIBDMALLOC 1
  9626. EOF
  9627. LIBS="-ldmalloc $LIBS"
  9628. fi
  9629. fi
  9630. fi
  9631. echo "$as_me:10692: checking if you want to use dbmalloc for testing" >&5
  9632. echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
  9633. # Check whether --with-dbmalloc or --without-dbmalloc was given.
  9634. if test "${with_dbmalloc+set}" = set; then
  9635. withval="$with_dbmalloc"
  9636. cat >>confdefs.h <<\EOF
  9637. #define USE_DBMALLOC 1
  9638. EOF
  9639. : ${with_cflags:=-g}
  9640. : ${with_no_leaks:=yes}
  9641. with_dbmalloc=yes
  9642. else
  9643. with_dbmalloc=
  9644. fi;
  9645. echo "$as_me:10708: result: ${with_dbmalloc:-no}" >&5
  9646. echo "${ECHO_T}${with_dbmalloc:-no}" >&6
  9647. case .$with_cflags in #(vi
  9648. .*-g*)
  9649. case .$CFLAGS in #(vi
  9650. .*-g*) #(vi
  9651. ;;
  9652. *)
  9653. cf_fix_cppflags=no
  9654. cf_new_cflags=
  9655. cf_new_cppflags=
  9656. cf_new_extra_cppflags=
  9657. for cf_add_cflags in -g
  9658. do
  9659. case $cf_fix_cppflags in
  9660. no)
  9661. case $cf_add_cflags in #(vi
  9662. -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
  9663. case $cf_add_cflags in
  9664. -D*)
  9665. cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
  9666. test "${cf_add_cflags}" != "${cf_tst_cflags}" \
  9667. && test -z "${cf_tst_cflags}" \
  9668. && cf_fix_cppflags=yes
  9669. if test $cf_fix_cppflags = yes ; then
  9670. cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
  9671. continue
  9672. elif test "${cf_tst_cflags}" = "\"'" ; then
  9673. cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
  9674. continue
  9675. fi
  9676. ;;
  9677. esac
  9678. case "$CPPFLAGS" in
  9679. *$cf_add_cflags) #(vi
  9680. ;;
  9681. *) #(vi
  9682. cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
  9683. ;;
  9684. esac
  9685. ;;
  9686. *)
  9687. cf_new_cflags="$cf_new_cflags $cf_add_cflags"
  9688. ;;
  9689. esac
  9690. ;;
  9691. yes)
  9692. cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
  9693. cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
  9694. test "${cf_add_cflags}" != "${cf_tst_cflags}" \
  9695. && test -z "${cf_tst_cflags}" \
  9696. && cf_fix_cppflags=no
  9697. ;;
  9698. esac
  9699. done
  9700. if test -n "$cf_new_cflags" ; then
  9701. CFLAGS="$CFLAGS $cf_new_cflags"
  9702. fi
  9703. if test -n "$cf_new_cppflags" ; then
  9704. CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
  9705. fi
  9706. if test -n "$cf_new_extra_cppflags" ; then
  9707. EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
  9708. fi
  9709. ;;
  9710. esac
  9711. ;;
  9712. esac
  9713. if test "$with_dbmalloc" = yes ; then
  9714. echo "$as_me:10792: checking for dbmalloc.h" >&5
  9715. echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
  9716. if test "${ac_cv_header_dbmalloc_h+set}" = set; then
  9717. echo $ECHO_N "(cached) $ECHO_C" >&6
  9718. else
  9719. cat >conftest.$ac_ext <<_ACEOF
  9720. #line 10798 "configure"
  9721. #include "confdefs.h"
  9722. #include <dbmalloc.h>
  9723. _ACEOF
  9724. if { (eval echo "$as_me:10802: \"$ac_cpp conftest.$ac_ext\"") >&5
  9725. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9726. ac_status=$?
  9727. egrep -v '^ *\+' conftest.er1 >conftest.err
  9728. rm -f conftest.er1
  9729. cat conftest.err >&5
  9730. echo "$as_me:10808: \$? = $ac_status" >&5
  9731. (exit $ac_status); } >/dev/null; then
  9732. if test -s conftest.err; then
  9733. ac_cpp_err=$ac_c_preproc_warn_flag
  9734. else
  9735. ac_cpp_err=
  9736. fi
  9737. else
  9738. ac_cpp_err=yes
  9739. fi
  9740. if test -z "$ac_cpp_err"; then
  9741. ac_cv_header_dbmalloc_h=yes
  9742. else
  9743. echo "$as_me: failed program was:" >&5
  9744. cat conftest.$ac_ext >&5
  9745. ac_cv_header_dbmalloc_h=no
  9746. fi
  9747. rm -f conftest.err conftest.$ac_ext
  9748. fi
  9749. echo "$as_me:10827: result: $ac_cv_header_dbmalloc_h" >&5
  9750. echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
  9751. if test $ac_cv_header_dbmalloc_h = yes; then
  9752. echo "$as_me:10831: checking for debug_malloc in -ldbmalloc" >&5
  9753. echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
  9754. if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
  9755. echo $ECHO_N "(cached) $ECHO_C" >&6
  9756. else
  9757. ac_check_lib_save_LIBS=$LIBS
  9758. LIBS="-ldbmalloc $LIBS"
  9759. cat >conftest.$ac_ext <<_ACEOF
  9760. #line 10839 "configure"
  9761. #include "confdefs.h"
  9762. /* Override any gcc2 internal prototype to avoid an error. */
  9763. #ifdef __cplusplus
  9764. extern "C"
  9765. #endif
  9766. /* We use char because int might match the return type of a gcc2
  9767. builtin and then its argument prototype would still apply. */
  9768. char debug_malloc ();
  9769. int
  9770. main ()
  9771. {
  9772. debug_malloc ();
  9773. ;
  9774. return 0;
  9775. }
  9776. _ACEOF
  9777. rm -f conftest.$ac_objext conftest$ac_exeext
  9778. if { (eval echo "$as_me:10858: \"$ac_link\"") >&5
  9779. (eval $ac_link) 2>&5
  9780. ac_status=$?
  9781. echo "$as_me:10861: \$? = $ac_status" >&5
  9782. (exit $ac_status); } &&
  9783. { ac_try='test -s conftest$ac_exeext'
  9784. { (eval echo "$as_me:10864: \"$ac_try\"") >&5
  9785. (eval $ac_try) 2>&5
  9786. ac_status=$?
  9787. echo "$as_me:10867: \$? = $ac_status" >&5
  9788. (exit $ac_status); }; }; then
  9789. ac_cv_lib_dbmalloc_debug_malloc=yes
  9790. else
  9791. echo "$as_me: failed program was:" >&5
  9792. cat conftest.$ac_ext >&5
  9793. ac_cv_lib_dbmalloc_debug_malloc=no
  9794. fi
  9795. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  9796. LIBS=$ac_check_lib_save_LIBS
  9797. fi
  9798. echo "$as_me:10878: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
  9799. echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
  9800. if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
  9801. cat >>confdefs.h <<EOF
  9802. #define HAVE_LIBDBMALLOC 1
  9803. EOF
  9804. LIBS="-ldbmalloc $LIBS"
  9805. fi
  9806. fi
  9807. fi
  9808. echo "$as_me:10893: checking if you want to use valgrind for testing" >&5
  9809. echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
  9810. # Check whether --with-valgrind or --without-valgrind was given.
  9811. if test "${with_valgrind+set}" = set; then
  9812. withval="$with_valgrind"
  9813. cat >>confdefs.h <<\EOF
  9814. #define USE_VALGRIND 1
  9815. EOF
  9816. : ${with_cflags:=-g}
  9817. : ${with_no_leaks:=yes}
  9818. with_valgrind=yes
  9819. else
  9820. with_valgrind=
  9821. fi;
  9822. echo "$as_me:10909: result: ${with_valgrind:-no}" >&5
  9823. echo "${ECHO_T}${with_valgrind:-no}" >&6
  9824. case .$with_cflags in #(vi
  9825. .*-g*)
  9826. case .$CFLAGS in #(vi
  9827. .*-g*) #(vi
  9828. ;;
  9829. *)
  9830. cf_fix_cppflags=no
  9831. cf_new_cflags=
  9832. cf_new_cppflags=
  9833. cf_new_extra_cppflags=
  9834. for cf_add_cflags in -g
  9835. do
  9836. case $cf_fix_cppflags in
  9837. no)
  9838. case $cf_add_cflags in #(vi
  9839. -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
  9840. case $cf_add_cflags in
  9841. -D*)
  9842. cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
  9843. test "${cf_add_cflags}" != "${cf_tst_cflags}" \
  9844. && test -z "${cf_tst_cflags}" \
  9845. && cf_fix_cppflags=yes
  9846. if test $cf_fix_cppflags = yes ; then
  9847. cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
  9848. continue
  9849. elif test "${cf_tst_cflags}" = "\"'" ; then
  9850. cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
  9851. continue
  9852. fi
  9853. ;;
  9854. esac
  9855. case "$CPPFLAGS" in
  9856. *$cf_add_cflags) #(vi
  9857. ;;
  9858. *) #(vi
  9859. cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
  9860. ;;
  9861. esac
  9862. ;;
  9863. *)
  9864. cf_new_cflags="$cf_new_cflags $cf_add_cflags"
  9865. ;;
  9866. esac
  9867. ;;
  9868. yes)
  9869. cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
  9870. cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
  9871. test "${cf_add_cflags}" != "${cf_tst_cflags}" \
  9872. && test -z "${cf_tst_cflags}" \
  9873. && cf_fix_cppflags=no
  9874. ;;
  9875. esac
  9876. done
  9877. if test -n "$cf_new_cflags" ; then
  9878. CFLAGS="$CFLAGS $cf_new_cflags"
  9879. fi
  9880. if test -n "$cf_new_cppflags" ; then
  9881. CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
  9882. fi
  9883. if test -n "$cf_new_extra_cppflags" ; then
  9884. EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
  9885. fi
  9886. ;;
  9887. esac
  9888. ;;
  9889. esac
  9890. echo "$as_me:10992: checking if you want to perform memory-leak testing" >&5
  9891. echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
  9892. # Check whether --enable-leaks or --disable-leaks was given.
  9893. if test "${enable_leaks+set}" = set; then
  9894. enableval="$enable_leaks"
  9895. with_no_leaks=yes
  9896. else
  9897. : ${with_no_leaks:=no}
  9898. fi;
  9899. echo "$as_me:11002: result: $with_no_leaks" >&5
  9900. echo "${ECHO_T}$with_no_leaks" >&6
  9901. if test "$with_no_leaks" = yes ; then
  9902. cat >>confdefs.h <<\EOF
  9903. #define NO_LEAKS 1
  9904. EOF
  9905. fi
  9906. cat >>confdefs.h <<\EOF
  9907. #define HAVE_NC_ALLOC_H 1
  9908. EOF
  9909. ### use option --enable-expanded to generate certain macros as functions
  9910. # Check whether --enable-expanded or --disable-expanded was given.
  9911. if test "${enable_expanded+set}" = set; then
  9912. enableval="$enable_expanded"
  9913. test "$enableval" = yes && cat >>confdefs.h <<\EOF
  9914. #define NCURSES_EXPANDED 1
  9915. EOF
  9916. fi;
  9917. ### use option --disable-macros to suppress macros in favor of functions
  9918. # Check whether --enable-macros or --disable-macros was given.
  9919. if test "${enable_macros+set}" = set; then
  9920. enableval="$enable_macros"
  9921. test "$enableval" = no && cat >>confdefs.h <<\EOF
  9922. #define NCURSES_NOMACROS 1
  9923. EOF
  9924. fi;
  9925. # Normally we only add trace() to the debug-library. Allow this to be
  9926. # extended to all models of the ncurses library:
  9927. cf_all_traces=no
  9928. case "$CFLAGS $CPPFLAGS" in
  9929. *-DTRACE*)
  9930. cf_all_traces=yes
  9931. ;;
  9932. esac
  9933. echo "$as_me:11047: checking whether to add trace feature to all models" >&5
  9934. echo $ECHO_N "checking whether to add trace feature to all models... $ECHO_C" >&6
  9935. # Check whether --with-trace or --without-trace was given.
  9936. if test "${with_trace+set}" = set; then
  9937. withval="$with_trace"
  9938. cf_with_trace=$withval
  9939. else
  9940. cf_with_trace=$cf_all_traces
  9941. fi;
  9942. echo "$as_me:11057: result: $cf_with_trace" >&5
  9943. echo "${ECHO_T}$cf_with_trace" >&6
  9944. if test "$cf_with_trace" = yes ; then
  9945. LIB_TRACING=all
  9946. ADA_TRACE=TRUE
  9947. cf_fix_cppflags=no
  9948. cf_new_cflags=
  9949. cf_new_cppflags=
  9950. cf_new_extra_cppflags=
  9951. for cf_add_cflags in -DTRACE
  9952. do
  9953. case $cf_fix_cppflags in
  9954. no)
  9955. case $cf_add_cflags in #(vi
  9956. -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
  9957. case $cf_add_cflags in
  9958. -D*)
  9959. cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
  9960. test "${cf_add_cflags}" != "${cf_tst_cflags}" \
  9961. && test -z "${cf_tst_cflags}" \
  9962. && cf_fix_cppflags=yes
  9963. if test $cf_fix_cppflags = yes ; then
  9964. cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
  9965. continue
  9966. elif test "${cf_tst_cflags}" = "\"'" ; then
  9967. cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
  9968. continue
  9969. fi
  9970. ;;
  9971. esac
  9972. case "$CPPFLAGS" in
  9973. *$cf_add_cflags) #(vi
  9974. ;;
  9975. *) #(vi
  9976. cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
  9977. ;;
  9978. esac
  9979. ;;
  9980. *)
  9981. cf_new_cflags="$cf_new_cflags $cf_add_cflags"
  9982. ;;
  9983. esac
  9984. ;;
  9985. yes)
  9986. cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
  9987. cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
  9988. test "${cf_add_cflags}" != "${cf_tst_cflags}" \
  9989. && test -z "${cf_tst_cflags}" \
  9990. && cf_fix_cppflags=no
  9991. ;;
  9992. esac
  9993. done
  9994. if test -n "$cf_new_cflags" ; then
  9995. CFLAGS="$CFLAGS $cf_new_cflags"
  9996. fi
  9997. if test -n "$cf_new_cppflags" ; then
  9998. CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
  9999. fi
  10000. if test -n "$cf_new_extra_cppflags" ; then
  10001. EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
  10002. fi
  10003. else
  10004. LIB_TRACING=DEBUG
  10005. ADA_TRACE=FALSE
  10006. fi
  10007. ### Checks for libraries.
  10008. echo "$as_me:11138: checking for gettimeofday" >&5
  10009. echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
  10010. if test "${ac_cv_func_gettimeofday+set}" = set; then
  10011. echo $ECHO_N "(cached) $ECHO_C" >&6
  10012. else
  10013. cat >conftest.$ac_ext <<_ACEOF
  10014. #line 11144 "configure"
  10015. #include "confdefs.h"
  10016. /* System header to define __stub macros and hopefully few prototypes,
  10017. which can conflict with char gettimeofday (); below. */
  10018. #include <assert.h>
  10019. /* Override any gcc2 internal prototype to avoid an error. */
  10020. #ifdef __cplusplus
  10021. extern "C"
  10022. #endif
  10023. /* We use char because int might match the return type of a gcc2
  10024. builtin and then its argument prototype would still apply. */
  10025. char gettimeofday ();
  10026. char (*f) ();
  10027. int
  10028. main ()
  10029. {
  10030. /* The GNU C library defines this for functions which it implements
  10031. to always fail with ENOSYS. Some functions are actually named
  10032. something starting with __ and the normal name is an alias. */
  10033. #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
  10034. choke me
  10035. #else
  10036. f = gettimeofday;
  10037. #endif
  10038. ;
  10039. return 0;
  10040. }
  10041. _ACEOF
  10042. rm -f conftest.$ac_objext conftest$ac_exeext
  10043. if { (eval echo "$as_me:11175: \"$ac_link\"") >&5
  10044. (eval $ac_link) 2>&5
  10045. ac_status=$?
  10046. echo "$as_me:11178: \$? = $ac_status" >&5
  10047. (exit $ac_status); } &&
  10048. { ac_try='test -s conftest$ac_exeext'
  10049. { (eval echo "$as_me:11181: \"$ac_try\"") >&5
  10050. (eval $ac_try) 2>&5
  10051. ac_status=$?
  10052. echo "$as_me:11184: \$? = $ac_status" >&5
  10053. (exit $ac_status); }; }; then
  10054. ac_cv_func_gettimeofday=yes
  10055. else
  10056. echo "$as_me: failed program was:" >&5
  10057. cat conftest.$ac_ext >&5
  10058. ac_cv_func_gettimeofday=no
  10059. fi
  10060. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  10061. fi
  10062. echo "$as_me:11194: result: $ac_cv_func_gettimeofday" >&5
  10063. echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
  10064. if test $ac_cv_func_gettimeofday = yes; then
  10065. cat >>confdefs.h <<\EOF
  10066. #define HAVE_GETTIMEOFDAY 1
  10067. EOF
  10068. else
  10069. echo "$as_me:11203: checking for gettimeofday in -lbsd" >&5
  10070. echo $ECHO_N "checking for gettimeofday in -lbsd... $ECHO_C" >&6
  10071. if test "${ac_cv_lib_bsd_gettimeofday+set}" = set; then
  10072. echo $ECHO_N "(cached) $ECHO_C" >&6
  10073. else
  10074. ac_check_lib_save_LIBS=$LIBS
  10075. LIBS="-lbsd $LIBS"
  10076. cat >conftest.$ac_ext <<_ACEOF
  10077. #line 11211 "configure"
  10078. #include "confdefs.h"
  10079. /* Override any gcc2 internal prototype to avoid an error. */
  10080. #ifdef __cplusplus
  10081. extern "C"
  10082. #endif
  10083. /* We use char because int might match the return type of a gcc2
  10084. builtin and then its argument prototype would still apply. */
  10085. char gettimeofday ();
  10086. int
  10087. main ()
  10088. {
  10089. gettimeofday ();
  10090. ;
  10091. return 0;
  10092. }
  10093. _ACEOF
  10094. rm -f conftest.$ac_objext conftest$ac_exeext
  10095. if { (eval echo "$as_me:11230: \"$ac_link\"") >&5
  10096. (eval $ac_link) 2>&5
  10097. ac_status=$?
  10098. echo "$as_me:11233: \$? = $ac_status" >&5
  10099. (exit $ac_status); } &&
  10100. { ac_try='test -s conftest$ac_exeext'
  10101. { (eval echo "$as_me:11236: \"$ac_try\"") >&5
  10102. (eval $ac_try) 2>&5
  10103. ac_status=$?
  10104. echo "$as_me:11239: \$? = $ac_status" >&5
  10105. (exit $ac_status); }; }; then
  10106. ac_cv_lib_bsd_gettimeofday=yes
  10107. else
  10108. echo "$as_me: failed program was:" >&5
  10109. cat conftest.$ac_ext >&5
  10110. ac_cv_lib_bsd_gettimeofday=no
  10111. fi
  10112. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  10113. LIBS=$ac_check_lib_save_LIBS
  10114. fi
  10115. echo "$as_me:11250: result: $ac_cv_lib_bsd_gettimeofday" >&5
  10116. echo "${ECHO_T}$ac_cv_lib_bsd_gettimeofday" >&6
  10117. if test $ac_cv_lib_bsd_gettimeofday = yes; then
  10118. cat >>confdefs.h <<\EOF
  10119. #define HAVE_GETTIMEOFDAY 1
  10120. EOF
  10121. LIBS="$LIBS -lbsd"
  10122. fi
  10123. fi
  10124. echo "$as_me:11262: checking if -lm needed for math functions" >&5
  10125. echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
  10126. if test "${cf_cv_need_libm+set}" = set; then
  10127. echo $ECHO_N "(cached) $ECHO_C" >&6
  10128. else
  10129. cat >conftest.$ac_ext <<_ACEOF
  10130. #line 11269 "configure"
  10131. #include "confdefs.h"
  10132. #include <stdio.h>
  10133. #include <math.h>
  10134. int
  10135. main ()
  10136. {
  10137. double x = rand(); printf("result = %g\n", sin(x))
  10138. ;
  10139. return 0;
  10140. }
  10141. _ACEOF
  10142. rm -f conftest.$ac_objext conftest$ac_exeext
  10143. if { (eval echo "$as_me:11284: \"$ac_link\"") >&5
  10144. (eval $ac_link) 2>&5
  10145. ac_status=$?
  10146. echo "$as_me:11287: \$? = $ac_status" >&5
  10147. (exit $ac_status); } &&
  10148. { ac_try='test -s conftest$ac_exeext'
  10149. { (eval echo "$as_me:11290: \"$ac_try\"") >&5
  10150. (eval $ac_try) 2>&5
  10151. ac_status=$?
  10152. echo "$as_me:11293: \$? = $ac_status" >&5
  10153. (exit $ac_status); }; }; then
  10154. cf_cv_need_libm=no
  10155. else
  10156. echo "$as_me: failed program was:" >&5
  10157. cat conftest.$ac_ext >&5
  10158. cf_cv_need_libm=yes
  10159. fi
  10160. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  10161. fi
  10162. echo "$as_me:11303: result: $cf_cv_need_libm" >&5
  10163. echo "${ECHO_T}$cf_cv_need_libm" >&6
  10164. if test "$cf_cv_need_libm" = yes
  10165. then
  10166. MATH_LIB=-lm
  10167. fi
  10168. ### Checks for header files.
  10169. echo "$as_me:11311: checking for ANSI C header files" >&5
  10170. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  10171. if test "${ac_cv_header_stdc+set}" = set; then
  10172. echo $ECHO_N "(cached) $ECHO_C" >&6
  10173. else
  10174. cat >conftest.$ac_ext <<_ACEOF
  10175. #line 11317 "configure"
  10176. #include "confdefs.h"
  10177. #include <stdlib.h>
  10178. #include <stdarg.h>
  10179. #include <string.h>
  10180. #include <float.h>
  10181. _ACEOF
  10182. if { (eval echo "$as_me:11325: \"$ac_cpp conftest.$ac_ext\"") >&5
  10183. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  10184. ac_status=$?
  10185. egrep -v '^ *\+' conftest.er1 >conftest.err
  10186. rm -f conftest.er1
  10187. cat conftest.err >&5
  10188. echo "$as_me:11331: \$? = $ac_status" >&5
  10189. (exit $ac_status); } >/dev/null; then
  10190. if test -s conftest.err; then
  10191. ac_cpp_err=$ac_c_preproc_warn_flag
  10192. else
  10193. ac_cpp_err=
  10194. fi
  10195. else
  10196. ac_cpp_err=yes
  10197. fi
  10198. if test -z "$ac_cpp_err"; then
  10199. ac_cv_header_stdc=yes
  10200. else
  10201. echo "$as_me: failed program was:" >&5
  10202. cat conftest.$ac_ext >&5
  10203. ac_cv_header_stdc=no
  10204. fi
  10205. rm -f conftest.err conftest.$ac_ext
  10206. if test $ac_cv_header_stdc = yes; then
  10207. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  10208. cat >conftest.$ac_ext <<_ACEOF
  10209. #line 11353 "configure"
  10210. #include "confdefs.h"
  10211. #include <string.h>
  10212. _ACEOF
  10213. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10214. egrep "memchr" >/dev/null 2>&1; then
  10215. :
  10216. else
  10217. ac_cv_header_stdc=no
  10218. fi
  10219. rm -f conftest*
  10220. fi
  10221. if test $ac_cv_header_stdc = yes; then
  10222. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  10223. cat >conftest.$ac_ext <<_ACEOF
  10224. #line 11371 "configure"
  10225. #include "confdefs.h"
  10226. #include <stdlib.h>
  10227. _ACEOF
  10228. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10229. egrep "free" >/dev/null 2>&1; then
  10230. :
  10231. else
  10232. ac_cv_header_stdc=no
  10233. fi
  10234. rm -f conftest*
  10235. fi
  10236. if test $ac_cv_header_stdc = yes; then
  10237. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  10238. if test "$cross_compiling" = yes; then
  10239. :
  10240. else
  10241. cat >conftest.$ac_ext <<_ACEOF
  10242. #line 11392 "configure"
  10243. #include "confdefs.h"
  10244. #include <ctype.h>
  10245. #if ((' ' & 0x0FF) == 0x020)
  10246. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  10247. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  10248. #else
  10249. # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
  10250. || ('j' <= (c) && (c) <= 'r') \
  10251. || ('s' <= (c) && (c) <= 'z'))
  10252. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  10253. #endif
  10254. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  10255. int
  10256. main ()
  10257. {
  10258. int i;
  10259. for (i = 0; i < 256; i++)
  10260. if (XOR (islower (i), ISLOWER (i))
  10261. || toupper (i) != TOUPPER (i))
  10262. $ac_main_return(2);
  10263. $ac_main_return (0);
  10264. }
  10265. _ACEOF
  10266. rm -f conftest$ac_exeext
  10267. if { (eval echo "$as_me:11418: \"$ac_link\"") >&5
  10268. (eval $ac_link) 2>&5
  10269. ac_status=$?
  10270. echo "$as_me:11421: \$? = $ac_status" >&5
  10271. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10272. { (eval echo "$as_me:11423: \"$ac_try\"") >&5
  10273. (eval $ac_try) 2>&5
  10274. ac_status=$?
  10275. echo "$as_me:11426: \$? = $ac_status" >&5
  10276. (exit $ac_status); }; }; then
  10277. :
  10278. else
  10279. echo "$as_me: program exited with status $ac_status" >&5
  10280. echo "$as_me: failed program was:" >&5
  10281. cat conftest.$ac_ext >&5
  10282. ac_cv_header_stdc=no
  10283. fi
  10284. rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10285. fi
  10286. fi
  10287. fi
  10288. echo "$as_me:11439: result: $ac_cv_header_stdc" >&5
  10289. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  10290. if test $ac_cv_header_stdc = yes; then
  10291. cat >>confdefs.h <<\EOF
  10292. #define STDC_HEADERS 1
  10293. EOF
  10294. fi
  10295. ac_header_dirent=no
  10296. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  10297. as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  10298. echo "$as_me:11452: checking for $ac_hdr that defines DIR" >&5
  10299. echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
  10300. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  10301. echo $ECHO_N "(cached) $ECHO_C" >&6
  10302. else
  10303. cat >conftest.$ac_ext <<_ACEOF
  10304. #line 11458 "configure"
  10305. #include "confdefs.h"
  10306. #include <sys/types.h>
  10307. #include <$ac_hdr>
  10308. int
  10309. main ()
  10310. {
  10311. if ((DIR *) 0)
  10312. return 0;
  10313. ;
  10314. return 0;
  10315. }
  10316. _ACEOF
  10317. rm -f conftest.$ac_objext
  10318. if { (eval echo "$as_me:11473: \"$ac_compile\"") >&5
  10319. (eval $ac_compile) 2>&5
  10320. ac_status=$?
  10321. echo "$as_me:11476: \$? = $ac_status" >&5
  10322. (exit $ac_status); } &&
  10323. { ac_try='test -s conftest.$ac_objext'
  10324. { (eval echo "$as_me:11479: \"$ac_try\"") >&5
  10325. (eval $ac_try) 2>&5
  10326. ac_status=$?
  10327. echo "$as_me:11482: \$? = $ac_status" >&5
  10328. (exit $ac_status); }; }; then
  10329. eval "$as_ac_Header=yes"
  10330. else
  10331. echo "$as_me: failed program was:" >&5
  10332. cat conftest.$ac_ext >&5
  10333. eval "$as_ac_Header=no"
  10334. fi
  10335. rm -f conftest.$ac_objext conftest.$ac_ext
  10336. fi
  10337. echo "$as_me:11492: result: `eval echo '${'$as_ac_Header'}'`" >&5
  10338. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  10339. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10340. cat >>confdefs.h <<EOF
  10341. #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  10342. EOF
  10343. ac_header_dirent=$ac_hdr; break
  10344. fi
  10345. done
  10346. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  10347. if test $ac_header_dirent = dirent.h; then
  10348. echo "$as_me:11505: checking for opendir in -ldir" >&5
  10349. echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
  10350. if test "${ac_cv_lib_dir_opendir+set}" = set; then
  10351. echo $ECHO_N "(cached) $ECHO_C" >&6
  10352. else
  10353. ac_check_lib_save_LIBS=$LIBS
  10354. LIBS="-ldir $LIBS"
  10355. cat >conftest.$ac_ext <<_ACEOF
  10356. #line 11513 "configure"
  10357. #include "confdefs.h"
  10358. /* Override any gcc2 internal prototype to avoid an error. */
  10359. #ifdef __cplusplus
  10360. extern "C"
  10361. #endif
  10362. /* We use char because int might match the return type of a gcc2
  10363. builtin and then its argument prototype would still apply. */
  10364. char opendir ();
  10365. int
  10366. main ()
  10367. {
  10368. opendir ();
  10369. ;
  10370. return 0;
  10371. }
  10372. _ACEOF
  10373. rm -f conftest.$ac_objext conftest$ac_exeext
  10374. if { (eval echo "$as_me:11532: \"$ac_link\"") >&5
  10375. (eval $ac_link) 2>&5
  10376. ac_status=$?
  10377. echo "$as_me:11535: \$? = $ac_status" >&5
  10378. (exit $ac_status); } &&
  10379. { ac_try='test -s conftest$ac_exeext'
  10380. { (eval echo "$as_me:11538: \"$ac_try\"") >&5
  10381. (eval $ac_try) 2>&5
  10382. ac_status=$?
  10383. echo "$as_me:11541: \$? = $ac_status" >&5
  10384. (exit $ac_status); }; }; then
  10385. ac_cv_lib_dir_opendir=yes
  10386. else
  10387. echo "$as_me: failed program was:" >&5
  10388. cat conftest.$ac_ext >&5
  10389. ac_cv_lib_dir_opendir=no
  10390. fi
  10391. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  10392. LIBS=$ac_check_lib_save_LIBS
  10393. fi
  10394. echo "$as_me:11552: result: $ac_cv_lib_dir_opendir" >&5
  10395. echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
  10396. if test $ac_cv_lib_dir_opendir = yes; then
  10397. LIBS="$LIBS -ldir"
  10398. fi
  10399. else
  10400. echo "$as_me:11559: checking for opendir in -lx" >&5
  10401. echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
  10402. if test "${ac_cv_lib_x_opendir+set}" = set; then
  10403. echo $ECHO_N "(cached) $ECHO_C" >&6
  10404. else
  10405. ac_check_lib_save_LIBS=$LIBS
  10406. LIBS="-lx $LIBS"
  10407. cat >conftest.$ac_ext <<_ACEOF
  10408. #line 11567 "configure"
  10409. #include "confdefs.h"
  10410. /* Override any gcc2 internal prototype to avoid an error. */
  10411. #ifdef __cplusplus
  10412. extern "C"
  10413. #endif
  10414. /* We use char because int might match the return type of a gcc2
  10415. builtin and then its argument prototype would still apply. */
  10416. char opendir ();
  10417. int
  10418. main ()
  10419. {
  10420. opendir ();
  10421. ;
  10422. return 0;
  10423. }
  10424. _ACEOF
  10425. rm -f conftest.$ac_objext conftest$ac_exeext
  10426. if { (eval echo "$as_me:11586: \"$ac_link\"") >&5
  10427. (eval $ac_link) 2>&5
  10428. ac_status=$?
  10429. echo "$as_me:11589: \$? = $ac_status" >&5
  10430. (exit $ac_status); } &&
  10431. { ac_try='test -s conftest$ac_exeext'
  10432. { (eval echo "$as_me:11592: \"$ac_try\"") >&5
  10433. (eval $ac_try) 2>&5
  10434. ac_status=$?
  10435. echo "$as_me:11595: \$? = $ac_status" >&5
  10436. (exit $ac_status); }; }; then
  10437. ac_cv_lib_x_opendir=yes
  10438. else
  10439. echo "$as_me: failed program was:" >&5
  10440. cat conftest.$ac_ext >&5
  10441. ac_cv_lib_x_opendir=no
  10442. fi
  10443. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  10444. LIBS=$ac_check_lib_save_LIBS
  10445. fi
  10446. echo "$as_me:11606: result: $ac_cv_lib_x_opendir" >&5
  10447. echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
  10448. if test $ac_cv_lib_x_opendir = yes; then
  10449. LIBS="$LIBS -lx"
  10450. fi
  10451. fi
  10452. echo "$as_me:11614: checking whether time.h and sys/time.h may both be included" >&5
  10453. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
  10454. if test "${ac_cv_header_time+set}" = set; then
  10455. echo $ECHO_N "(cached) $ECHO_C" >&6
  10456. else
  10457. cat >conftest.$ac_ext <<_ACEOF
  10458. #line 11620 "configure"
  10459. #include "confdefs.h"
  10460. #include <sys/types.h>
  10461. #include <sys/time.h>
  10462. #include <time.h>
  10463. int
  10464. main ()
  10465. {
  10466. if ((struct tm *) 0)
  10467. return 0;
  10468. ;
  10469. return 0;
  10470. }
  10471. _ACEOF
  10472. rm -f conftest.$ac_objext
  10473. if { (eval echo "$as_me:11636: \"$ac_compile\"") >&5
  10474. (eval $ac_compile) 2>&5
  10475. ac_status=$?
  10476. echo "$as_me:11639: \$? = $ac_status" >&5
  10477. (exit $ac_status); } &&
  10478. { ac_try='test -s conftest.$ac_objext'
  10479. { (eval echo "$as_me:11642: \"$ac_try\"") >&5
  10480. (eval $ac_try) 2>&5
  10481. ac_status=$?
  10482. echo "$as_me:11645: \$? = $ac_status" >&5
  10483. (exit $ac_status); }; }; then
  10484. ac_cv_header_time=yes
  10485. else
  10486. echo "$as_me: failed program was:" >&5
  10487. cat conftest.$ac_ext >&5
  10488. ac_cv_header_time=no
  10489. fi
  10490. rm -f conftest.$ac_objext conftest.$ac_ext
  10491. fi
  10492. echo "$as_me:11655: result: $ac_cv_header_time" >&5
  10493. echo "${ECHO_T}$ac_cv_header_time" >&6
  10494. if test $ac_cv_header_time = yes; then
  10495. cat >>confdefs.h <<\EOF
  10496. #define TIME_WITH_SYS_TIME 1
  10497. EOF
  10498. fi
  10499. echo "$as_me:11665: checking for regular-expression headers" >&5
  10500. echo $ECHO_N "checking for regular-expression headers... $ECHO_C" >&6
  10501. if test "${cf_cv_regex+set}" = set; then
  10502. echo $ECHO_N "(cached) $ECHO_C" >&6
  10503. else
  10504. cat >conftest.$ac_ext <<_ACEOF
  10505. #line 11672 "configure"
  10506. #include "confdefs.h"
  10507. #include <sys/types.h>
  10508. #include <regex.h>
  10509. int
  10510. main ()
  10511. {
  10512. regex_t *p;
  10513. int x = regcomp(p, "", 0);
  10514. int y = regexec(p, "", 0, 0, 0);
  10515. regfree(p);
  10516. ;
  10517. return 0;
  10518. }
  10519. _ACEOF
  10520. rm -f conftest.$ac_objext conftest$ac_exeext
  10521. if { (eval echo "$as_me:11690: \"$ac_link\"") >&5
  10522. (eval $ac_link) 2>&5
  10523. ac_status=$?
  10524. echo "$as_me:11693: \$? = $ac_status" >&5
  10525. (exit $ac_status); } &&
  10526. { ac_try='test -s conftest$ac_exeext'
  10527. { (eval echo "$as_me:11696: \"$ac_try\"") >&5
  10528. (eval $ac_try) 2>&5
  10529. ac_status=$?
  10530. echo "$as_me:11699: \$? = $ac_status" >&5
  10531. (exit $ac_status); }; }; then
  10532. cf_cv_regex="regex.h"
  10533. else
  10534. echo "$as_me: failed program was:" >&5
  10535. cat conftest.$ac_ext >&5
  10536. cat >conftest.$ac_ext <<_ACEOF
  10537. #line 11707 "configure"
  10538. #include "confdefs.h"
  10539. #include <regexp.h>
  10540. int
  10541. main ()
  10542. {
  10543. char *p = compile("", "", "", 0);
  10544. int x = step("", "");
  10545. ;
  10546. return 0;
  10547. }
  10548. _ACEOF
  10549. rm -f conftest.$ac_objext conftest$ac_exeext
  10550. if { (eval echo "$as_me:11722: \"$ac_link\"") >&5
  10551. (eval $ac_link) 2>&5
  10552. ac_status=$?
  10553. echo "$as_me:11725: \$? = $ac_status" >&5
  10554. (exit $ac_status); } &&
  10555. { ac_try='test -s conftest$ac_exeext'
  10556. { (eval echo "$as_me:11728: \"$ac_try\"") >&5
  10557. (eval $ac_try) 2>&5
  10558. ac_status=$?
  10559. echo "$as_me:11731: \$? = $ac_status" >&5
  10560. (exit $ac_status); }; }; then
  10561. cf_cv_regex="regexp.h"
  10562. else
  10563. echo "$as_me: failed program was:" >&5
  10564. cat conftest.$ac_ext >&5
  10565. cf_save_LIBS="$LIBS"
  10566. LIBS="-lgen $LIBS"
  10567. cat >conftest.$ac_ext <<_ACEOF
  10568. #line 11741 "configure"
  10569. #include "confdefs.h"
  10570. #include <regexpr.h>
  10571. int
  10572. main ()
  10573. {
  10574. char *p = compile("", "", "");
  10575. int x = step("", "");
  10576. ;
  10577. return 0;
  10578. }
  10579. _ACEOF
  10580. rm -f conftest.$ac_objext conftest$ac_exeext
  10581. if { (eval echo "$as_me:11756: \"$ac_link\"") >&5
  10582. (eval $ac_link) 2>&5
  10583. ac_status=$?
  10584. echo "$as_me:11759: \$? = $ac_status" >&5
  10585. (exit $ac_status); } &&
  10586. { ac_try='test -s conftest$ac_exeext'
  10587. { (eval echo "$as_me:11762: \"$ac_try\"") >&5
  10588. (eval $ac_try) 2>&5
  10589. ac_status=$?
  10590. echo "$as_me:11765: \$? = $ac_status" >&5
  10591. (exit $ac_status); }; }; then
  10592. cf_cv_regex="regexpr.h"
  10593. else
  10594. echo "$as_me: failed program was:" >&5
  10595. cat conftest.$ac_ext >&5
  10596. LIBS="$cf_save_LIBS"
  10597. fi
  10598. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  10599. fi
  10600. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  10601. fi
  10602. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  10603. fi
  10604. echo "$as_me:11781: result: $cf_cv_regex" >&5
  10605. echo "${ECHO_T}$cf_cv_regex" >&6
  10606. case $cf_cv_regex in
  10607. regex.h) cat >>confdefs.h <<\EOF
  10608. #define HAVE_REGEX_H_FUNCS 1
  10609. EOF
  10610. ;;
  10611. regexp.h) cat >>confdefs.h <<\EOF
  10612. #define HAVE_REGEXP_H_FUNCS 1
  10613. EOF
  10614. ;;
  10615. regexpr.h) cat >>confdefs.h <<\EOF
  10616. #define HAVE_REGEXPR_H_FUNCS 1
  10617. EOF
  10618. ;;
  10619. esac
  10620. for ac_header in \
  10621. fcntl.h \
  10622. getopt.h \
  10623. limits.h \
  10624. locale.h \
  10625. poll.h \
  10626. sys/bsdtypes.h \
  10627. sys/ioctl.h \
  10628. sys/param.h \
  10629. sys/poll.h \
  10630. sys/select.h \
  10631. sys/time.h \
  10632. sys/times.h \
  10633. ttyent.h \
  10634. unistd.h \
  10635. wctype.h \
  10636. do
  10637. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10638. echo "$as_me:11817: checking for $ac_header" >&5
  10639. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  10640. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  10641. echo $ECHO_N "(cached) $ECHO_C" >&6
  10642. else
  10643. cat >conftest.$ac_ext <<_ACEOF
  10644. #line 11823 "configure"
  10645. #include "confdefs.h"
  10646. #include <$ac_header>
  10647. _ACEOF
  10648. if { (eval echo "$as_me:11827: \"$ac_cpp conftest.$ac_ext\"") >&5
  10649. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  10650. ac_status=$?
  10651. egrep -v '^ *\+' conftest.er1 >conftest.err
  10652. rm -f conftest.er1
  10653. cat conftest.err >&5
  10654. echo "$as_me:11833: \$? = $ac_status" >&5
  10655. (exit $ac_status); } >/dev/null; then
  10656. if test -s conftest.err; then
  10657. ac_cpp_err=$ac_c_preproc_warn_flag
  10658. else
  10659. ac_cpp_err=
  10660. fi
  10661. else
  10662. ac_cpp_err=yes
  10663. fi
  10664. if test -z "$ac_cpp_err"; then
  10665. eval "$as_ac_Header=yes"
  10666. else
  10667. echo "$as_me: failed program was:" >&5
  10668. cat conftest.$ac_ext >&5
  10669. eval "$as_ac_Header=no"
  10670. fi
  10671. rm -f conftest.err conftest.$ac_ext
  10672. fi
  10673. echo "$as_me:11852: result: `eval echo '${'$as_ac_Header'}'`" >&5
  10674. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  10675. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10676. cat >>confdefs.h <<EOF
  10677. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10678. EOF
  10679. fi
  10680. done
  10681. # check for ISC (this may also define _POSIX_SOURCE)
  10682. # Note: even non-Posix ISC needs <sys/bsdtypes.h> to declare fd_set
  10683. if test "$ISC" = yes ; then
  10684. echo "$as_me:11866: checking for main in -lcposix" >&5
  10685. echo $ECHO_N "checking for main in -lcposix... $ECHO_C" >&6
  10686. if test "${ac_cv_lib_cposix_main+set}" = set; then
  10687. echo $ECHO_N "(cached) $ECHO_C" >&6
  10688. else
  10689. ac_check_lib_save_LIBS=$LIBS
  10690. LIBS="-lcposix $LIBS"
  10691. cat >conftest.$ac_ext <<_ACEOF
  10692. #line 11874 "configure"
  10693. #include "confdefs.h"
  10694. int
  10695. main ()
  10696. {
  10697. main ();
  10698. ;
  10699. return 0;
  10700. }
  10701. _ACEOF
  10702. rm -f conftest.$ac_objext conftest$ac_exeext
  10703. if { (eval echo "$as_me:11886: \"$ac_link\"") >&5
  10704. (eval $ac_link) 2>&5
  10705. ac_status=$?
  10706. echo "$as_me:11889: \$? = $ac_status" >&5
  10707. (exit $ac_status); } &&
  10708. { ac_try='test -s conftest$ac_exeext'
  10709. { (eval echo "$as_me:11892: \"$ac_try\"") >&5
  10710. (eval $ac_try) 2>&5
  10711. ac_status=$?
  10712. echo "$as_me:11895: \$? = $ac_status" >&5
  10713. (exit $ac_status); }; }; then
  10714. ac_cv_lib_cposix_main=yes
  10715. else
  10716. echo "$as_me: failed program was:" >&5
  10717. cat conftest.$ac_ext >&5
  10718. ac_cv_lib_cposix_main=no
  10719. fi
  10720. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  10721. LIBS=$ac_check_lib_save_LIBS
  10722. fi
  10723. echo "$as_me:11906: result: $ac_cv_lib_cposix_main" >&5
  10724. echo "${ECHO_T}$ac_cv_lib_cposix_main" >&6
  10725. if test $ac_cv_lib_cposix_main = yes; then
  10726. cat >>confdefs.h <<EOF
  10727. #define HAVE_LIBCPOSIX 1
  10728. EOF
  10729. LIBS="-lcposix $LIBS"
  10730. fi
  10731. echo "$as_me:11917: checking for bzero in -linet" >&5
  10732. echo $ECHO_N "checking for bzero in -linet... $ECHO_C" >&6
  10733. if test "${ac_cv_lib_inet_bzero+set}" = set; then
  10734. echo $ECHO_N "(cached) $ECHO_C" >&6
  10735. else
  10736. ac_check_lib_save_LIBS=$LIBS
  10737. LIBS="-linet $LIBS"
  10738. cat >conftest.$ac_ext <<_ACEOF
  10739. #line 11925 "configure"
  10740. #include "confdefs.h"
  10741. /* Override any gcc2 internal prototype to avoid an error. */
  10742. #ifdef __cplusplus
  10743. extern "C"
  10744. #endif
  10745. /* We use char because int might match the return type of a gcc2
  10746. builtin and then its argument prototype would still apply. */
  10747. char bzero ();
  10748. int
  10749. main ()
  10750. {
  10751. bzero ();
  10752. ;
  10753. return 0;
  10754. }
  10755. _ACEOF
  10756. rm -f conftest.$ac_objext conftest$ac_exeext
  10757. if { (eval echo "$as_me:11944: \"$ac_link\"") >&5
  10758. (eval $ac_link) 2>&5
  10759. ac_status=$?
  10760. echo "$as_me:11947: \$? = $ac_status" >&5
  10761. (exit $ac_status); } &&
  10762. { ac_try='test -s conftest$ac_exeext'
  10763. { (eval echo "$as_me:11950: \"$ac_try\"") >&5
  10764. (eval $ac_try) 2>&5
  10765. ac_status=$?
  10766. echo "$as_me:11953: \$? = $ac_status" >&5
  10767. (exit $ac_status); }; }; then
  10768. ac_cv_lib_inet_bzero=yes
  10769. else
  10770. echo "$as_me: failed program was:" >&5
  10771. cat conftest.$ac_ext >&5
  10772. ac_cv_lib_inet_bzero=no
  10773. fi
  10774. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  10775. LIBS=$ac_check_lib_save_LIBS
  10776. fi
  10777. echo "$as_me:11964: result: $ac_cv_lib_inet_bzero" >&5
  10778. echo "${ECHO_T}$ac_cv_lib_inet_bzero" >&6
  10779. if test $ac_cv_lib_inet_bzero = yes; then
  10780. LIBS="$LIBS -linet"
  10781. fi
  10782. fi
  10783. echo "$as_me:11971: checking if sys/time.h works with sys/select.h" >&5
  10784. echo $ECHO_N "checking if sys/time.h works with sys/select.h... $ECHO_C" >&6
  10785. if test "${cf_cv_sys_time_select+set}" = set; then
  10786. echo $ECHO_N "(cached) $ECHO_C" >&6
  10787. else
  10788. cat >conftest.$ac_ext <<_ACEOF
  10789. #line 11978 "configure"
  10790. #include "confdefs.h"
  10791. #include <sys/types.h>
  10792. #ifdef HAVE_SYS_TIME_H
  10793. #include <sys/time.h>
  10794. #endif
  10795. #ifdef HAVE_SYS_SELECT_H
  10796. #include <sys/select.h>
  10797. #endif
  10798. int
  10799. main ()
  10800. {
  10801. ;
  10802. return 0;
  10803. }
  10804. _ACEOF
  10805. rm -f conftest.$ac_objext
  10806. if { (eval echo "$as_me:11998: \"$ac_compile\"") >&5
  10807. (eval $ac_compile) 2>&5
  10808. ac_status=$?
  10809. echo "$as_me:12001: \$? = $ac_status" >&5
  10810. (exit $ac_status); } &&
  10811. { ac_try='test -s conftest.$ac_objext'
  10812. { (eval echo "$as_me:12004: \"$ac_try\"") >&5
  10813. (eval $ac_try) 2>&5
  10814. ac_status=$?
  10815. echo "$as_me:12007: \$? = $ac_status" >&5
  10816. (exit $ac_status); }; }; then
  10817. cf_cv_sys_time_select=yes
  10818. else
  10819. echo "$as_me: failed program was:" >&5
  10820. cat conftest.$ac_ext >&5
  10821. cf_cv_sys_time_select=no
  10822. fi
  10823. rm -f conftest.$ac_objext conftest.$ac_ext
  10824. fi
  10825. echo "$as_me:12019: result: $cf_cv_sys_time_select" >&5
  10826. echo "${ECHO_T}$cf_cv_sys_time_select" >&6
  10827. test "$cf_cv_sys_time_select" = yes && cat >>confdefs.h <<\EOF
  10828. #define HAVE_SYS_TIME_SELECT 1
  10829. EOF
  10830. ### checks for compiler characteristics
  10831. ac_ext=c
  10832. ac_cpp='$CPP $CPPFLAGS'
  10833. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10834. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10835. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10836. ac_main_return=return
  10837. echo "$as_me:12033: checking for $CC option to accept ANSI C" >&5
  10838. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  10839. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  10840. echo $ECHO_N "(cached) $ECHO_C" >&6
  10841. else
  10842. ac_cv_prog_cc_stdc=no
  10843. ac_save_CC=$CC
  10844. cat >conftest.$ac_ext <<_ACEOF
  10845. #line 12041 "configure"
  10846. #include "confdefs.h"
  10847. #include <stdarg.h>
  10848. #include <stdio.h>
  10849. #include <sys/types.h>
  10850. #include <sys/stat.h>
  10851. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  10852. struct buf { int x; };
  10853. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  10854. static char *e (p, i)
  10855. char **p;
  10856. int i;
  10857. {
  10858. return p[i];
  10859. }
  10860. static char *f (char * (*g) (char **, int), char **p, ...)
  10861. {
  10862. char *s;
  10863. va_list v;
  10864. va_start (v,p);
  10865. s = g (p, va_arg (v,int));
  10866. va_end (v);
  10867. return s;
  10868. }
  10869. int test (int i, double x);
  10870. struct s1 {int (*f) (int a);};
  10871. struct s2 {int (*f) (double a);};
  10872. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  10873. int argc;
  10874. char **argv;
  10875. int
  10876. main ()
  10877. {
  10878. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  10879. ;
  10880. return 0;
  10881. }
  10882. _ACEOF
  10883. # Don't try gcc -ansi; that turns off useful extensions and
  10884. # breaks some systems' header files.
  10885. # AIX -qlanglvl=ansi
  10886. # Ultrix and OSF/1 -std1
  10887. # HP-UX 10.20 and later -Ae
  10888. # HP-UX older versions -Aa -D_HPUX_SOURCE
  10889. # SVR4 -Xc -D__EXTENSIONS__
  10890. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  10891. do
  10892. CC="$ac_save_CC $ac_arg"
  10893. rm -f conftest.$ac_objext
  10894. if { (eval echo "$as_me:12090: \"$ac_compile\"") >&5
  10895. (eval $ac_compile) 2>&5
  10896. ac_status=$?
  10897. echo "$as_me:12093: \$? = $ac_status" >&5
  10898. (exit $ac_status); } &&
  10899. { ac_try='test -s conftest.$ac_objext'
  10900. { (eval echo "$as_me:12096: \"$ac_try\"") >&5
  10901. (eval $ac_try) 2>&5
  10902. ac_status=$?
  10903. echo "$as_me:12099: \$? = $ac_status" >&5
  10904. (exit $ac_status); }; }; then
  10905. ac_cv_prog_cc_stdc=$ac_arg
  10906. break
  10907. else
  10908. echo "$as_me: failed program was:" >&5
  10909. cat conftest.$ac_ext >&5
  10910. fi
  10911. rm -f conftest.$ac_objext
  10912. done
  10913. rm -f conftest.$ac_ext conftest.$ac_objext
  10914. CC=$ac_save_CC
  10915. fi
  10916. case "x$ac_cv_prog_cc_stdc" in
  10917. x|xno)
  10918. echo "$as_me:12116: result: none needed" >&5
  10919. echo "${ECHO_T}none needed" >&6 ;;
  10920. *)
  10921. echo "$as_me:12119: result: $ac_cv_prog_cc_stdc" >&5
  10922. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  10923. CC="$CC $ac_cv_prog_cc_stdc" ;;
  10924. esac
  10925. echo "$as_me:12124: checking for an ANSI C-conforming const" >&5
  10926. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  10927. if test "${ac_cv_c_const+set}" = set; then
  10928. echo $ECHO_N "(cached) $ECHO_C" >&6
  10929. else
  10930. cat >conftest.$ac_ext <<_ACEOF
  10931. #line 12130 "configure"
  10932. #include "confdefs.h"
  10933. int
  10934. main ()
  10935. {
  10936. /* FIXME: Include the comments suggested by Paul. */
  10937. #ifndef __cplusplus
  10938. /* Ultrix mips cc rejects this. */
  10939. typedef int charset[2];
  10940. const charset x;
  10941. /* SunOS 4.1.1 cc rejects this. */
  10942. char const *const *ccp;
  10943. char **p;
  10944. /* NEC SVR4.0.2 mips cc rejects this. */
  10945. struct point {int x, y;};
  10946. static struct point const zero = {0,0};
  10947. /* AIX XL C 1.02.0.0 rejects this.
  10948. It does not let you subtract one const X* pointer from another in
  10949. an arm of an if-expression whose if-part is not a constant
  10950. expression */
  10951. const char *g = "string";
  10952. ccp = &g + (g ? g-g : 0);
  10953. /* HPUX 7.0 cc rejects these. */
  10954. ++ccp;
  10955. p = (char**) ccp;
  10956. ccp = (char const *const *) p;
  10957. { /* SCO 3.2v4 cc rejects this. */
  10958. char *t;
  10959. char const *s = 0 ? (char *) 0 : (char const *) 0;
  10960. *t++ = 0;
  10961. }
  10962. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  10963. int x[] = {25, 17};
  10964. const int *foo = &x[0];
  10965. ++foo;
  10966. }
  10967. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  10968. typedef const int *iptr;
  10969. iptr p = 0;
  10970. ++p;
  10971. }
  10972. { /* AIX XL C 1.02.0.0 rejects this saying
  10973. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  10974. struct s { int j; const int *ap[3]; };
  10975. struct s *b; b->j = 5;
  10976. }
  10977. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  10978. const int foo = 10;
  10979. }
  10980. #endif
  10981. ;
  10982. return 0;
  10983. }
  10984. _ACEOF
  10985. rm -f conftest.$ac_objext
  10986. if { (eval echo "$as_me:12188: \"$ac_compile\"") >&5
  10987. (eval $ac_compile) 2>&5
  10988. ac_status=$?
  10989. echo "$as_me:12191: \$? = $ac_status" >&5
  10990. (exit $ac_status); } &&
  10991. { ac_try='test -s conftest.$ac_objext'
  10992. { (eval echo "$as_me:12194: \"$ac_try\"") >&5
  10993. (eval $ac_try) 2>&5
  10994. ac_status=$?
  10995. echo "$as_me:12197: \$? = $ac_status" >&5
  10996. (exit $ac_status); }; }; then
  10997. ac_cv_c_const=yes
  10998. else
  10999. echo "$as_me: failed program was:" >&5
  11000. cat conftest.$ac_ext >&5
  11001. ac_cv_c_const=no
  11002. fi
  11003. rm -f conftest.$ac_objext conftest.$ac_ext
  11004. fi
  11005. echo "$as_me:12207: result: $ac_cv_c_const" >&5
  11006. echo "${ECHO_T}$ac_cv_c_const" >&6
  11007. if test $ac_cv_c_const = no; then
  11008. cat >>confdefs.h <<\EOF
  11009. #define const
  11010. EOF
  11011. fi
  11012. echo "$as_me:12217: checking for inline" >&5
  11013. echo $ECHO_N "checking for inline... $ECHO_C" >&6
  11014. if test "${ac_cv_c_inline+set}" = set; then
  11015. echo $ECHO_N "(cached) $ECHO_C" >&6
  11016. else
  11017. ac_cv_c_inline=no
  11018. for ac_kw in inline __inline__ __inline; do
  11019. cat >conftest.$ac_ext <<_ACEOF
  11020. #line 12225 "configure"
  11021. #include "confdefs.h"
  11022. #ifndef __cplusplus
  11023. static $ac_kw int static_foo () {return 0; }
  11024. $ac_kw int foo () {return 0; }
  11025. #endif
  11026. _ACEOF
  11027. rm -f conftest.$ac_objext
  11028. if { (eval echo "$as_me:12234: \"$ac_compile\"") >&5
  11029. (eval $ac_compile) 2>&5
  11030. ac_status=$?
  11031. echo "$as_me:12237: \$? = $ac_status" >&5
  11032. (exit $ac_status); } &&
  11033. { ac_try='test -s conftest.$ac_objext'
  11034. { (eval echo "$as_me:12240: \"$ac_try\"") >&5
  11035. (eval $ac_try) 2>&5
  11036. ac_status=$?
  11037. echo "$as_me:12243: \$? = $ac_status" >&5
  11038. (exit $ac_status); }; }; then
  11039. ac_cv_c_inline=$ac_kw; break
  11040. else
  11041. echo "$as_me: failed program was:" >&5
  11042. cat conftest.$ac_ext >&5
  11043. fi
  11044. rm -f conftest.$ac_objext conftest.$ac_ext
  11045. done
  11046. fi
  11047. echo "$as_me:12254: result: $ac_cv_c_inline" >&5
  11048. echo "${ECHO_T}$ac_cv_c_inline" >&6
  11049. case $ac_cv_c_inline in
  11050. inline | yes) ;;
  11051. no)
  11052. cat >>confdefs.h <<\EOF
  11053. #define inline
  11054. EOF
  11055. ;;
  11056. *) cat >>confdefs.h <<EOF
  11057. #define inline $ac_cv_c_inline
  11058. EOF
  11059. ;;
  11060. esac
  11061. NCURSES_INLINE=
  11062. if test "$ac_cv_c_inline" != no ; then
  11063. NCURSES_INLINE=inline
  11064. if test "$INTEL_COMPILER" = yes
  11065. then
  11066. :
  11067. elif test "$GCC" = yes
  11068. then
  11069. echo "$as_me:12277: checking if gcc supports options to tune inlining" >&5
  11070. echo $ECHO_N "checking if gcc supports options to tune inlining... $ECHO_C" >&6
  11071. if test "${cf_cv_gcc_inline+set}" = set; then
  11072. echo $ECHO_N "(cached) $ECHO_C" >&6
  11073. else
  11074. cf_save_CFLAGS=$CFLAGS
  11075. CFLAGS="$CFLAGS --param max-inline-insns-single=1200"
  11076. cat >conftest.$ac_ext <<_ACEOF
  11077. #line 12286 "configure"
  11078. #include "confdefs.h"
  11079. inline int foo(void) { return 1; }
  11080. int
  11081. main ()
  11082. {
  11083. ${cf_cv_main_return:-return} foo()
  11084. ;
  11085. return 0;
  11086. }
  11087. _ACEOF
  11088. rm -f conftest.$ac_objext
  11089. if { (eval echo "$as_me:12298: \"$ac_compile\"") >&5
  11090. (eval $ac_compile) 2>&5
  11091. ac_status=$?
  11092. echo "$as_me:12301: \$? = $ac_status" >&5
  11093. (exit $ac_status); } &&
  11094. { ac_try='test -s conftest.$ac_objext'
  11095. { (eval echo "$as_me:12304: \"$ac_try\"") >&5
  11096. (eval $ac_try) 2>&5
  11097. ac_status=$?
  11098. echo "$as_me:12307: \$? = $ac_status" >&5
  11099. (exit $ac_status); }; }; then
  11100. cf_cv_gcc_inline=yes
  11101. else
  11102. echo "$as_me: failed program was:" >&5
  11103. cat conftest.$ac_ext >&5
  11104. cf_cv_gcc_inline=no
  11105. fi
  11106. rm -f conftest.$ac_objext conftest.$ac_ext
  11107. CFLAGS=$cf_save_CFLAGS
  11108. fi
  11109. echo "$as_me:12319: result: $cf_cv_gcc_inline" >&5
  11110. echo "${ECHO_T}$cf_cv_gcc_inline" >&6
  11111. if test "$cf_cv_gcc_inline" = yes ; then
  11112. cf_fix_cppflags=no
  11113. cf_new_cflags=
  11114. cf_new_cppflags=
  11115. cf_new_extra_cppflags=
  11116. for cf_add_cflags in --param max-inline-insns-single=1200
  11117. do
  11118. case $cf_fix_cppflags in
  11119. no)
  11120. case $cf_add_cflags in #(vi
  11121. -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
  11122. case $cf_add_cflags in
  11123. -D*)
  11124. cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
  11125. test "${cf_add_cflags}" != "${cf_tst_cflags}" \
  11126. && test -z "${cf_tst_cflags}" \
  11127. && cf_fix_cppflags=yes
  11128. if test $cf_fix_cppflags = yes ; then
  11129. cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
  11130. continue
  11131. elif test "${cf_tst_cflags}" = "\"'" ; then
  11132. cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
  11133. continue
  11134. fi
  11135. ;;
  11136. esac
  11137. case "$CPPFLAGS" in
  11138. *$cf_add_cflags) #(vi
  11139. ;;
  11140. *) #(vi
  11141. cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
  11142. ;;
  11143. esac
  11144. ;;
  11145. *)
  11146. cf_new_cflags="$cf_new_cflags $cf_add_cflags"
  11147. ;;
  11148. esac
  11149. ;;
  11150. yes)
  11151. cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
  11152. cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
  11153. test "${cf_add_cflags}" != "${cf_tst_cflags}" \
  11154. && test -z "${cf_tst_cflags}" \
  11155. && cf_fix_cppflags=no
  11156. ;;
  11157. esac
  11158. done
  11159. if test -n "$cf_new_cflags" ; then
  11160. CFLAGS="$CFLAGS $cf_new_cflags"
  11161. fi
  11162. if test -n "$cf_new_cppflags" ; then
  11163. CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
  11164. fi
  11165. if test -n "$cf_new_extra_cppflags" ; then
  11166. EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
  11167. fi
  11168. fi
  11169. fi
  11170. fi
  11171. echo "$as_me:12395: checking for signal global datatype" >&5
  11172. echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
  11173. if test "${cf_cv_sig_atomic_t+set}" = set; then
  11174. echo $ECHO_N "(cached) $ECHO_C" >&6
  11175. else
  11176. for cf_type in \
  11177. "volatile sig_atomic_t" \
  11178. "sig_atomic_t" \
  11179. "int"
  11180. do
  11181. cat >conftest.$ac_ext <<_ACEOF
  11182. #line 12407 "configure"
  11183. #include "confdefs.h"
  11184. #include <sys/types.h>
  11185. #include <signal.h>
  11186. #include <stdio.h>
  11187. extern $cf_type x;
  11188. $cf_type x;
  11189. static void handler(int sig)
  11190. {
  11191. x = 5;
  11192. }
  11193. int
  11194. main ()
  11195. {
  11196. signal(SIGINT, handler);
  11197. x = 1
  11198. ;
  11199. return 0;
  11200. }
  11201. _ACEOF
  11202. rm -f conftest.$ac_objext
  11203. if { (eval echo "$as_me:12430: \"$ac_compile\"") >&5
  11204. (eval $ac_compile) 2>&5
  11205. ac_status=$?
  11206. echo "$as_me:12433: \$? = $ac_status" >&5
  11207. (exit $ac_status); } &&
  11208. { ac_try='test -s conftest.$ac_objext'
  11209. { (eval echo "$as_me:12436: \"$ac_try\"") >&5
  11210. (eval $ac_try) 2>&5
  11211. ac_status=$?
  11212. echo "$as_me:12439: \$? = $ac_status" >&5
  11213. (exit $ac_status); }; }; then
  11214. cf_cv_sig_atomic_t=$cf_type
  11215. else
  11216. echo "$as_me: failed program was:" >&5
  11217. cat conftest.$ac_ext >&5
  11218. cf_cv_sig_atomic_t=no
  11219. fi
  11220. rm -f conftest.$ac_objext conftest.$ac_ext
  11221. test "$cf_cv_sig_atomic_t" != no && break
  11222. done
  11223. fi
  11224. echo "$as_me:12453: result: $cf_cv_sig_atomic_t" >&5
  11225. echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
  11226. test "$cf_cv_sig_atomic_t" != no && cat >>confdefs.h <<EOF
  11227. #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
  11228. EOF
  11229. if test $NCURSES_CHTYPE = auto ; then
  11230. echo "$as_me:12461: checking for type of chtype" >&5
  11231. echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
  11232. if test "${cf_cv_typeof_chtype+set}" = set; then
  11233. echo $ECHO_N "(cached) $ECHO_C" >&6
  11234. else
  11235. if test "$cross_compiling" = yes; then
  11236. cf_cv_typeof_chtype=long
  11237. else
  11238. cat >conftest.$ac_ext <<_ACEOF
  11239. #line 12471 "configure"
  11240. #include "confdefs.h"
  11241. #define WANT_BITS 31
  11242. #include <stdio.h>
  11243. int main()
  11244. {
  11245. FILE *fp = fopen("cf_test.out", "w");
  11246. if (fp != 0) {
  11247. char *result = "long";
  11248. if (sizeof(unsigned long) > sizeof(unsigned int)) {
  11249. int n;
  11250. unsigned int x, y;
  11251. for (n = 0; n < WANT_BITS; n++) {
  11252. x = (1 << n);
  11253. y = (x >> n);
  11254. if (y != 1 || x == 0) {
  11255. x = 0;
  11256. break;
  11257. }
  11258. }
  11259. /*
  11260. * If x is nonzero, an int is big enough for the bits
  11261. * that we want.
  11262. */
  11263. result = (x != 0) ? "int" : "long";
  11264. }
  11265. fputs(result, fp);
  11266. fclose(fp);
  11267. }
  11268. ${cf_cv_main_return:-return}(0);
  11269. }
  11270. _ACEOF
  11271. rm -f conftest$ac_exeext
  11272. if { (eval echo "$as_me:12506: \"$ac_link\"") >&5
  11273. (eval $ac_link) 2>&5
  11274. ac_status=$?
  11275. echo "$as_me:12509: \$? = $ac_status" >&5
  11276. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  11277. { (eval echo "$as_me:12511: \"$ac_try\"") >&5
  11278. (eval $ac_try) 2>&5
  11279. ac_status=$?
  11280. echo "$as_me:12514: \$? = $ac_status" >&5
  11281. (exit $ac_status); }; }; then
  11282. cf_cv_typeof_chtype=`cat cf_test.out`
  11283. else
  11284. echo "$as_me: program exited with status $ac_status" >&5
  11285. echo "$as_me: failed program was:" >&5
  11286. cat conftest.$ac_ext >&5
  11287. cf_cv_typeof_chtype=long
  11288. fi
  11289. rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  11290. fi
  11291. rm -f cf_test.out
  11292. fi
  11293. echo "$as_me:12529: result: $cf_cv_typeof_chtype" >&5
  11294. echo "${ECHO_T}$cf_cv_typeof_chtype" >&6
  11295. cat >>confdefs.h <<EOF
  11296. #define TYPEOF_CHTYPE $cf_cv_typeof_chtype
  11297. EOF
  11298. else
  11299. cf_cv_typeof_chtype=$NCURSES_CHTYPE
  11300. fi
  11301. test "$cf_cv_typeof_chtype" = unsigned && cf_cv_typeof_chtype=""
  11302. echo "$as_me:12541: checking if unsigned literals are legal" >&5
  11303. echo $ECHO_N "checking if unsigned literals are legal... $ECHO_C" >&6
  11304. if test "${cf_cv_unsigned_literals+set}" = set; then
  11305. echo $ECHO_N "(cached) $ECHO_C" >&6
  11306. else
  11307. cat >conftest.$ac_ext <<_ACEOF
  11308. #line 12548 "configure"
  11309. #include "confdefs.h"
  11310. int
  11311. main ()
  11312. {
  11313. long x = 1L + 1UL + 1U + 1
  11314. ;
  11315. return 0;
  11316. }
  11317. _ACEOF
  11318. rm -f conftest.$ac_objext
  11319. if { (eval echo "$as_me:12560: \"$ac_compile\"") >&5
  11320. (eval $ac_compile) 2>&5
  11321. ac_status=$?
  11322. echo "$as_me:12563: \$? = $ac_status" >&5
  11323. (exit $ac_status); } &&
  11324. { ac_try='test -s conftest.$ac_objext'
  11325. { (eval echo "$as_me:12566: \"$ac_try\"") >&5
  11326. (eval $ac_try) 2>&5
  11327. ac_status=$?
  11328. echo "$as_me:12569: \$? = $ac_status" >&5
  11329. (exit $ac_status); }; }; then
  11330. cf_cv_unsigned_literals=yes
  11331. else
  11332. echo "$as_me: failed program was:" >&5
  11333. cat conftest.$ac_ext >&5
  11334. cf_cv_unsigned_literals=no
  11335. fi
  11336. rm -f conftest.$ac_objext conftest.$ac_ext
  11337. fi
  11338. echo "$as_me:12581: result: $cf_cv_unsigned_literals" >&5
  11339. echo "${ECHO_T}$cf_cv_unsigned_literals" >&6
  11340. cf_cv_1UL="1"
  11341. test ".$cf_cv_unsigned_literals" = .yes && cf_cv_1UL="${cf_cv_1UL}U"
  11342. test ".$cf_cv_typeof_chtype" = .long && cf_cv_1UL="${cf_cv_1UL}L"
  11343. if test $NCURSES_MMASK_T = auto ; then
  11344. cf_cv_typeof_mmask_t=long
  11345. else
  11346. cf_cv_typeof_mmask_t=$NCURSES_MMASK_T
  11347. fi
  11348. test "$cf_cv_typeof_mmask_t" = unsigned && cf_cv_typeof_mmask_t=""
  11349. ### Checks for external-data
  11350. echo "$as_me:12597: checking if external errno is declared" >&5
  11351. echo $ECHO_N "checking if external errno is declared... $ECHO_C" >&6
  11352. if test "${cf_cv_dcl_errno+set}" = set; then
  11353. echo $ECHO_N "(cached) $ECHO_C" >&6
  11354. else
  11355. cat >conftest.$ac_ext <<_ACEOF
  11356. #line 12604 "configure"
  11357. #include "confdefs.h"
  11358. #ifdef HAVE_STDLIB_H
  11359. #include <stdlib.h>
  11360. #endif
  11361. #include <stdio.h>
  11362. #include <sys/types.h>
  11363. #include <errno.h>
  11364. int
  11365. main ()
  11366. {
  11367. int x = (int) errno
  11368. ;
  11369. return 0;
  11370. }
  11371. _ACEOF
  11372. rm -f conftest.$ac_objext
  11373. if { (eval echo "$as_me:12622: \"$ac_compile\"") >&5
  11374. (eval $ac_compile) 2>&5
  11375. ac_status=$?
  11376. echo "$as_me:12625: \$? = $ac_status" >&5
  11377. (exit $ac_status); } &&
  11378. { ac_try='test -s conftest.$ac_objext'
  11379. { (eval echo "$as_me:12628: \"$ac_try\"") >&5
  11380. (eval $ac_try) 2>&5
  11381. ac_status=$?
  11382. echo "$as_me:12631: \$? = $ac_status" >&5
  11383. (exit $ac_status); }; }; then
  11384. cf_cv_dcl_errno=yes
  11385. else
  11386. echo "$as_me: failed program was:" >&5
  11387. cat conftest.$ac_ext >&5
  11388. cf_cv_dcl_errno=no
  11389. fi
  11390. rm -f conftest.$ac_objext conftest.$ac_ext
  11391. fi
  11392. echo "$as_me:12642: result: $cf_cv_dcl_errno" >&5
  11393. echo "${ECHO_T}$cf_cv_dcl_errno" >&6
  11394. if test "$cf_cv_dcl_errno" = no ; then
  11395. cf_result=`echo "decl_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
  11396. cat >>confdefs.h <<EOF
  11397. #define $cf_result 1
  11398. EOF
  11399. fi
  11400. # It's possible (for near-UNIX clones) that the data doesn't exist
  11401. echo "$as_me:12657: checking if external errno exists" >&5
  11402. echo $ECHO_N "checking if external errno exists... $ECHO_C" >&6
  11403. if test "${cf_cv_have_errno+set}" = set; then
  11404. echo $ECHO_N "(cached) $ECHO_C" >&6
  11405. else
  11406. cat >conftest.$ac_ext <<_ACEOF
  11407. #line 12664 "configure"
  11408. #include "confdefs.h"
  11409. #undef errno
  11410. extern int errno;
  11411. int
  11412. main ()
  11413. {
  11414. errno = 2
  11415. ;
  11416. return 0;
  11417. }
  11418. _ACEOF
  11419. rm -f conftest.$ac_objext conftest$ac_exeext
  11420. if { (eval echo "$as_me:12679: \"$ac_link\"") >&5
  11421. (eval $ac_link) 2>&5
  11422. ac_status=$?
  11423. echo "$as_me:12682: \$? = $ac_status" >&5
  11424. (exit $ac_status); } &&
  11425. { ac_try='test -s conftest$ac_exeext'
  11426. { (eval echo "$as_me:12685: \"$ac_try\"") >&5
  11427. (eval $ac_try) 2>&5
  11428. ac_status=$?
  11429. echo "$as_me:12688: \$? = $ac_status" >&5
  11430. (exit $ac_status); }; }; then
  11431. cf_cv_have_errno=yes
  11432. else
  11433. echo "$as_me: failed program was:" >&5
  11434. cat conftest.$ac_ext >&5
  11435. cf_cv_have_errno=no
  11436. fi
  11437. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  11438. fi
  11439. echo "$as_me:12699: result: $cf_cv_have_errno" >&5
  11440. echo "${ECHO_T}$cf_cv_have_errno" >&6
  11441. if test "$cf_cv_have_errno" = yes ; then
  11442. cf_result=`echo "have_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
  11443. cat >>confdefs.h <<EOF
  11444. #define $cf_result 1
  11445. EOF
  11446. fi
  11447. echo "$as_me:12712: checking if data-only library module links" >&5
  11448. echo $ECHO_N "checking if data-only library module links... $ECHO_C" >&6
  11449. if test "${cf_cv_link_dataonly+set}" = set; then
  11450. echo $ECHO_N "(cached) $ECHO_C" >&6
  11451. else
  11452. rm -f conftest.a
  11453. cat >conftest.$ac_ext <<EOF
  11454. #line 12720 "configure"
  11455. int testdata[3] = { 123, 456, 789 };
  11456. EOF
  11457. if { (eval echo "$as_me:12723: \"$ac_compile\"") >&5
  11458. (eval $ac_compile) 2>&5
  11459. ac_status=$?
  11460. echo "$as_me:12726: \$? = $ac_status" >&5
  11461. (exit $ac_status); } ; then
  11462. mv conftest.o data.o && \
  11463. ( $AR $AR_OPTS conftest.a data.o ) 2>&5 1>/dev/null
  11464. fi
  11465. rm -f conftest.$ac_ext data.o
  11466. cat >conftest.$ac_ext <<EOF
  11467. #line 12733 "configure"
  11468. int testfunc()
  11469. {
  11470. #if defined(NeXT)
  11471. ${cf_cv_main_return:-return}(1); /* I'm told this linker is broken */
  11472. #else
  11473. extern int testdata[3];
  11474. return testdata[0] == 123
  11475. && testdata[1] == 456
  11476. && testdata[2] == 789;
  11477. #endif
  11478. }
  11479. EOF
  11480. if { (eval echo "$as_me:12746: \"$ac_compile\"") >&5
  11481. (eval $ac_compile) 2>&5
  11482. ac_status=$?
  11483. echo "$as_me:12749: \$? = $ac_status" >&5
  11484. (exit $ac_status); }; then
  11485. mv conftest.o func.o && \
  11486. ( $AR $AR_OPTS conftest.a func.o ) 2>&5 1>/dev/null
  11487. fi
  11488. rm -f conftest.$ac_ext func.o
  11489. ( eval $RANLIB conftest.a ) 2>&5 >/dev/null
  11490. cf_saveLIBS="$LIBS"
  11491. LIBS="conftest.a $LIBS"
  11492. if test "$cross_compiling" = yes; then
  11493. cf_cv_link_dataonly=unknown
  11494. else
  11495. cat >conftest.$ac_ext <<_ACEOF
  11496. #line 12762 "configure"
  11497. #include "confdefs.h"
  11498. int main()
  11499. {
  11500. extern int testfunc();
  11501. ${cf_cv_main_return:-return} (!testfunc());
  11502. }
  11503. _ACEOF
  11504. rm -f conftest$ac_exeext
  11505. if { (eval echo "$as_me:12773: \"$ac_link\"") >&5
  11506. (eval $ac_link) 2>&5
  11507. ac_status=$?
  11508. echo "$as_me:12776: \$? = $ac_status" >&5
  11509. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  11510. { (eval echo "$as_me:12778: \"$ac_try\"") >&5
  11511. (eval $ac_try) 2>&5
  11512. ac_status=$?
  11513. echo "$as_me:12781: \$? = $ac_status" >&5
  11514. (exit $ac_status); }; }; then
  11515. cf_cv_link_dataonly=yes
  11516. else
  11517. echo "$as_me: program exited with status $ac_status" >&5
  11518. echo "$as_me: failed program was:" >&5
  11519. cat conftest.$ac_ext >&5
  11520. cf_cv_link_dataonly=no
  11521. fi
  11522. rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  11523. fi
  11524. LIBS="$cf_saveLIBS"
  11525. fi
  11526. echo "$as_me:12796: result: $cf_cv_link_dataonly" >&5
  11527. echo "${ECHO_T}$cf_cv_link_dataonly" >&6
  11528. if test "$cf_cv_link_dataonly" = no ; then
  11529. cat >>confdefs.h <<\EOF
  11530. #define BROKEN_LINKER 1
  11531. EOF
  11532. BROKEN_LINKER=1
  11533. fi
  11534. ### Checks for library functions.
  11535. for ac_func in \
  11536. getcwd \
  11537. getegid \
  11538. geteuid \
  11539. getttynam \
  11540. issetugid \
  11541. poll \
  11542. remove \
  11543. select \
  11544. setbuf \
  11545. setbuffer \
  11546. setvbuf \
  11547. sigaction \
  11548. sigvec \
  11549. strdup \
  11550. strstr \
  11551. tcgetpgrp \
  11552. times \
  11553. vsnprintf \
  11554. do
  11555. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11556. echo "$as_me:12831: checking for $ac_func" >&5
  11557. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  11558. if eval "test \"\${$as_ac_var+set}\" = set"; then
  11559. echo $ECHO_N "(cached) $ECHO_C" >&6
  11560. else
  11561. cat >conftest.$ac_ext <<_ACEOF
  11562. #line 12837 "configure"
  11563. #include "confdefs.h"
  11564. /* System header to define __stub macros and hopefully few prototypes,
  11565. which can conflict with char $ac_func (); below. */
  11566. #include <assert.h>
  11567. /* Override any gcc2 internal prototype to avoid an error. */
  11568. #ifdef __cplusplus
  11569. extern "C"
  11570. #endif
  11571. /* We use char because int might match the return type of a gcc2
  11572. builtin and then its argument prototype would still apply. */
  11573. char $ac_func ();
  11574. char (*f) ();
  11575. int
  11576. main ()
  11577. {
  11578. /* The GNU C library defines this for functions which it implements
  11579. to always fail with ENOSYS. Some functions are actually named
  11580. something starting with __ and the normal name is an alias. */
  11581. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  11582. choke me
  11583. #else
  11584. f = $ac_func;
  11585. #endif
  11586. ;
  11587. return 0;
  11588. }
  11589. _ACEOF
  11590. rm -f conftest.$ac_objext conftest$ac_exeext
  11591. if { (eval echo "$as_me:12868: \"$ac_link\"") >&5
  11592. (eval $ac_link) 2>&5
  11593. ac_status=$?
  11594. echo "$as_me:12871: \$? = $ac_status" >&5
  11595. (exit $ac_status); } &&
  11596. { ac_try='test -s conftest$ac_exeext'
  11597. { (eval echo "$as_me:12874: \"$ac_try\"") >&5
  11598. (eval $ac_try) 2>&5
  11599. ac_status=$?
  11600. echo "$as_me:12877: \$? = $ac_status" >&5
  11601. (exit $ac_status); }; }; then
  11602. eval "$as_ac_var=yes"
  11603. else
  11604. echo "$as_me: failed program was:" >&5
  11605. cat conftest.$ac_ext >&5
  11606. eval "$as_ac_var=no"
  11607. fi
  11608. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  11609. fi
  11610. echo "$as_me:12887: result: `eval echo '${'$as_ac_var'}'`" >&5
  11611. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  11612. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11613. cat >>confdefs.h <<EOF
  11614. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11615. EOF
  11616. fi
  11617. done
  11618. if test "$with_getcap" = "yes" ; then
  11619. echo "$as_me:12899: checking for terminal-capability database functions" >&5
  11620. echo $ECHO_N "checking for terminal-capability database functions... $ECHO_C" >&6
  11621. if test "${cf_cv_cgetent+set}" = set; then
  11622. echo $ECHO_N "(cached) $ECHO_C" >&6
  11623. else
  11624. cat >conftest.$ac_ext <<_ACEOF
  11625. #line 12906 "configure"
  11626. #include "confdefs.h"
  11627. #include <stdlib.h>
  11628. int
  11629. main ()
  11630. {
  11631. char temp[128];
  11632. char *buf = temp;
  11633. char *db_array = temp;
  11634. cgetent(&buf, /* int *, */ &db_array, "vt100");
  11635. cgetcap(buf, "tc", '=');
  11636. cgetmatch(buf, "tc");
  11637. ;
  11638. return 0;
  11639. }
  11640. _ACEOF
  11641. rm -f conftest.$ac_objext conftest$ac_exeext
  11642. if { (eval echo "$as_me:12926: \"$ac_link\"") >&5
  11643. (eval $ac_link) 2>&5
  11644. ac_status=$?
  11645. echo "$as_me:12929: \$? = $ac_status" >&5
  11646. (exit $ac_status); } &&
  11647. { ac_try='test -s conftest$ac_exeext'
  11648. { (eval echo "$as_me:12932: \"$ac_try\"") >&5
  11649. (eval $ac_try) 2>&5
  11650. ac_status=$?
  11651. echo "$as_me:12935: \$? = $ac_status" >&5
  11652. (exit $ac_status); }; }; then
  11653. cf_cv_cgetent=yes
  11654. else
  11655. echo "$as_me: failed program was:" >&5
  11656. cat conftest.$ac_ext >&5
  11657. cf_cv_cgetent=no
  11658. fi
  11659. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  11660. fi
  11661. echo "$as_me:12947: result: $cf_cv_cgetent" >&5
  11662. echo "${ECHO_T}$cf_cv_cgetent" >&6
  11663. test "$cf_cv_cgetent" = yes && cat >>confdefs.h <<\EOF
  11664. #define HAVE_BSD_CGETENT 1
  11665. EOF
  11666. fi
  11667. echo "$as_me:12955: checking for isascii" >&5
  11668. echo $ECHO_N "checking for isascii... $ECHO_C" >&6
  11669. if test "${cf_cv_have_isascii+set}" = set; then
  11670. echo $ECHO_N "(cached) $ECHO_C" >&6
  11671. else
  11672. cat >conftest.$ac_ext <<_ACEOF
  11673. #line 12962 "configure"
  11674. #include "confdefs.h"
  11675. #include <ctype.h>
  11676. int
  11677. main ()
  11678. {
  11679. int x = isascii(' ')
  11680. ;
  11681. return 0;
  11682. }
  11683. _ACEOF
  11684. rm -f conftest.$ac_objext conftest$ac_exeext
  11685. if { (eval echo "$as_me:12974: \"$ac_link\"") >&5
  11686. (eval $ac_link) 2>&5
  11687. ac_status=$?
  11688. echo "$as_me:12977: \$? = $ac_status" >&5
  11689. (exit $ac_status); } &&
  11690. { ac_try='test -s conftest$ac_exeext'
  11691. { (eval echo "$as_me:12980: \"$ac_try\"") >&5
  11692. (eval $ac_try) 2>&5
  11693. ac_status=$?
  11694. echo "$as_me:12983: \$? = $ac_status" >&5
  11695. (exit $ac_status); }; }; then
  11696. cf_cv_have_isascii=yes
  11697. else
  11698. echo "$as_me: failed program was:" >&5
  11699. cat conftest.$ac_ext >&5
  11700. cf_cv_have_isascii=no
  11701. fi
  11702. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  11703. fi
  11704. echo "$as_me:12994: result: $cf_cv_have_isascii" >&5
  11705. echo "${ECHO_T}$cf_cv_have_isascii" >&6
  11706. test "$cf_cv_have_isascii" = yes && cat >>confdefs.h <<\EOF
  11707. #define HAVE_ISASCII 1
  11708. EOF
  11709. if test "$ac_cv_func_sigaction" = yes; then
  11710. echo "$as_me:13001: checking whether sigaction needs _POSIX_SOURCE" >&5
  11711. echo $ECHO_N "checking whether sigaction needs _POSIX_SOURCE... $ECHO_C" >&6
  11712. cat >conftest.$ac_ext <<_ACEOF
  11713. #line 13004 "configure"
  11714. #include "confdefs.h"
  11715. #include <sys/types.h>
  11716. #include <signal.h>
  11717. int
  11718. main ()
  11719. {
  11720. struct sigaction act
  11721. ;
  11722. return 0;
  11723. }
  11724. _ACEOF
  11725. rm -f conftest.$ac_objext
  11726. if { (eval echo "$as_me:13018: \"$ac_compile\"") >&5
  11727. (eval $ac_compile) 2>&5
  11728. ac_status=$?
  11729. echo "$as_me:13021: \$? = $ac_status" >&5
  11730. (exit $ac_status); } &&
  11731. { ac_try='test -s conftest.$ac_objext'
  11732. { (eval echo "$as_me:13024: \"$ac_try\"") >&5
  11733. (eval $ac_try) 2>&5
  11734. ac_status=$?
  11735. echo "$as_me:13027: \$? = $ac_status" >&5
  11736. (exit $ac_status); }; }; then
  11737. sigact_bad=no
  11738. else
  11739. echo "$as_me: failed program was:" >&5
  11740. cat conftest.$ac_ext >&5
  11741. cat >conftest.$ac_ext <<_ACEOF
  11742. #line 13035 "configure"
  11743. #include "confdefs.h"
  11744. #define _POSIX_SOURCE
  11745. #include <sys/types.h>
  11746. #include <signal.h>
  11747. int
  11748. main ()
  11749. {
  11750. struct sigaction act
  11751. ;
  11752. return 0;
  11753. }
  11754. _ACEOF
  11755. rm -f conftest.$ac_objext
  11756. if { (eval echo "$as_me:13050: \"$ac_compile\"") >&5
  11757. (eval $ac_compile) 2>&5
  11758. ac_status=$?
  11759. echo "$as_me:13053: \$? = $ac_status" >&5
  11760. (exit $ac_status); } &&
  11761. { ac_try='test -s conftest.$ac_objext'
  11762. { (eval echo "$as_me:13056: \"$ac_try\"") >&5
  11763. (eval $ac_try) 2>&5
  11764. ac_status=$?
  11765. echo "$as_me:13059: \$? = $ac_status" >&5
  11766. (exit $ac_status); }; }; then
  11767. sigact_bad=yes
  11768. cat >>confdefs.h <<\EOF
  11769. #define SVR4_ACTION 1
  11770. EOF
  11771. else
  11772. echo "$as_me: failed program was:" >&5
  11773. cat conftest.$ac_ext >&5
  11774. sigact_bad=unknown
  11775. fi
  11776. rm -f conftest.$ac_objext conftest.$ac_ext
  11777. fi
  11778. rm -f conftest.$ac_objext conftest.$ac_ext
  11779. echo "$as_me:13074: result: $sigact_bad" >&5
  11780. echo "${ECHO_T}$sigact_bad" >&6
  11781. fi
  11782. echo "$as_me:13078: checking if nanosleep really works" >&5
  11783. echo $ECHO_N "checking if nanosleep really works... $ECHO_C" >&6
  11784. if test "${cf_cv_func_nanosleep+set}" = set; then
  11785. echo $ECHO_N "(cached) $ECHO_C" >&6
  11786. else
  11787. if test "$cross_compiling" = yes; then
  11788. cf_cv_func_nanosleep=unknown
  11789. else
  11790. cat >conftest.$ac_ext <<_ACEOF
  11791. #line 13088 "configure"
  11792. #include "confdefs.h"
  11793. #include <stdio.h>
  11794. #include <errno.h>
  11795. #include <time.h>
  11796. #ifdef HAVE_SYS_TIME_H
  11797. #include <sys/time.h>
  11798. #endif
  11799. int main() {
  11800. struct timespec ts1, ts2;
  11801. int code;
  11802. ts1.tv_sec = 0;
  11803. ts1.tv_nsec = 750000000;
  11804. ts2.tv_sec = 0;
  11805. ts2.tv_nsec = 0;
  11806. errno = 0;
  11807. code = nanosleep(&ts1, &ts2); /* on failure errno is ENOSYS. */
  11808. ${cf_cv_main_return:-return}(code != 0);
  11809. }
  11810. _ACEOF
  11811. rm -f conftest$ac_exeext
  11812. if { (eval echo "$as_me:13113: \"$ac_link\"") >&5
  11813. (eval $ac_link) 2>&5
  11814. ac_status=$?
  11815. echo "$as_me:13116: \$? = $ac_status" >&5
  11816. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  11817. { (eval echo "$as_me:13118: \"$ac_try\"") >&5
  11818. (eval $ac_try) 2>&5
  11819. ac_status=$?
  11820. echo "$as_me:13121: \$? = $ac_status" >&5
  11821. (exit $ac_status); }; }; then
  11822. cf_cv_func_nanosleep=yes
  11823. else
  11824. echo "$as_me: program exited with status $ac_status" >&5
  11825. echo "$as_me: failed program was:" >&5
  11826. cat conftest.$ac_ext >&5
  11827. cf_cv_func_nanosleep=no
  11828. fi
  11829. rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  11830. fi
  11831. fi
  11832. echo "$as_me:13133: result: $cf_cv_func_nanosleep" >&5
  11833. echo "${ECHO_T}$cf_cv_func_nanosleep" >&6
  11834. test "$cf_cv_func_nanosleep" = "yes" && cat >>confdefs.h <<\EOF
  11835. #define HAVE_NANOSLEEP 1
  11836. EOF
  11837. for ac_header in \
  11838. termio.h \
  11839. termios.h \
  11840. unistd.h \
  11841. do
  11842. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11843. echo "$as_me:13147: checking for $ac_header" >&5
  11844. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  11845. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  11846. echo $ECHO_N "(cached) $ECHO_C" >&6
  11847. else
  11848. cat >conftest.$ac_ext <<_ACEOF
  11849. #line 13153 "configure"
  11850. #include "confdefs.h"
  11851. #include <$ac_header>
  11852. _ACEOF
  11853. if { (eval echo "$as_me:13157: \"$ac_cpp conftest.$ac_ext\"") >&5
  11854. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  11855. ac_status=$?
  11856. egrep -v '^ *\+' conftest.er1 >conftest.err
  11857. rm -f conftest.er1
  11858. cat conftest.err >&5
  11859. echo "$as_me:13163: \$? = $ac_status" >&5
  11860. (exit $ac_status); } >/dev/null; then
  11861. if test -s conftest.err; then
  11862. ac_cpp_err=$ac_c_preproc_warn_flag
  11863. else
  11864. ac_cpp_err=
  11865. fi
  11866. else
  11867. ac_cpp_err=yes
  11868. fi
  11869. if test -z "$ac_cpp_err"; then
  11870. eval "$as_ac_Header=yes"
  11871. else
  11872. echo "$as_me: failed program was:" >&5
  11873. cat conftest.$ac_ext >&5
  11874. eval "$as_ac_Header=no"
  11875. fi
  11876. rm -f conftest.err conftest.$ac_ext
  11877. fi
  11878. echo "$as_me:13182: result: `eval echo '${'$as_ac_Header'}'`" >&5
  11879. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  11880. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  11881. cat >>confdefs.h <<EOF
  11882. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11883. EOF
  11884. fi
  11885. done
  11886. if test "$ISC" = yes ; then
  11887. for ac_header in sys/termio.h
  11888. do
  11889. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11890. echo "$as_me:13197: checking for $ac_header" >&5
  11891. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  11892. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  11893. echo $ECHO_N "(cached) $ECHO_C" >&6
  11894. else
  11895. cat >conftest.$ac_ext <<_ACEOF
  11896. #line 13203 "configure"
  11897. #include "confdefs.h"
  11898. #include <$ac_header>
  11899. _ACEOF
  11900. if { (eval echo "$as_me:13207: \"$ac_cpp conftest.$ac_ext\"") >&5
  11901. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  11902. ac_status=$?
  11903. egrep -v '^ *\+' conftest.er1 >conftest.err
  11904. rm -f conftest.er1
  11905. cat conftest.err >&5
  11906. echo "$as_me:13213: \$? = $ac_status" >&5
  11907. (exit $ac_status); } >/dev/null; then
  11908. if test -s conftest.err; then
  11909. ac_cpp_err=$ac_c_preproc_warn_flag
  11910. else
  11911. ac_cpp_err=
  11912. fi
  11913. else
  11914. ac_cpp_err=yes
  11915. fi
  11916. if test -z "$ac_cpp_err"; then
  11917. eval "$as_ac_Header=yes"
  11918. else
  11919. echo "$as_me: failed program was:" >&5
  11920. cat conftest.$ac_ext >&5
  11921. eval "$as_ac_Header=no"
  11922. fi
  11923. rm -f conftest.err conftest.$ac_ext
  11924. fi
  11925. echo "$as_me:13232: result: `eval echo '${'$as_ac_Header'}'`" >&5
  11926. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  11927. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  11928. cat >>confdefs.h <<EOF
  11929. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11930. EOF
  11931. fi
  11932. done
  11933. fi
  11934. if test "$ac_cv_header_termios_h" = yes ; then
  11935. case "$CFLAGS $CPPFLAGS" in
  11936. *-D_POSIX_SOURCE*)
  11937. termios_bad=dunno ;;
  11938. *) termios_bad=maybe ;;
  11939. esac
  11940. if test "$termios_bad" = maybe ; then
  11941. echo "$as_me:13250: checking whether termios.h needs _POSIX_SOURCE" >&5
  11942. echo $ECHO_N "checking whether termios.h needs _POSIX_SOURCE... $ECHO_C" >&6
  11943. cat >conftest.$ac_ext <<_ACEOF
  11944. #line 13253 "configure"
  11945. #include "confdefs.h"
  11946. #include <termios.h>
  11947. int
  11948. main ()
  11949. {
  11950. struct termios foo; int x = foo.c_iflag
  11951. ;
  11952. return 0;
  11953. }
  11954. _ACEOF
  11955. rm -f conftest.$ac_objext
  11956. if { (eval echo "$as_me:13265: \"$ac_compile\"") >&5
  11957. (eval $ac_compile) 2>&5
  11958. ac_status=$?
  11959. echo "$as_me:13268: \$? = $ac_status" >&5
  11960. (exit $ac_status); } &&
  11961. { ac_try='test -s conftest.$ac_objext'
  11962. { (eval echo "$as_me:13271: \"$ac_try\"") >&5
  11963. (eval $ac_try) 2>&5
  11964. ac_status=$?
  11965. echo "$as_me:13274: \$? = $ac_status" >&5
  11966. (exit $ac_status); }; }; then
  11967. termios_bad=no
  11968. else
  11969. echo "$as_me: failed program was:" >&5
  11970. cat conftest.$ac_ext >&5
  11971. cat >conftest.$ac_ext <<_ACEOF
  11972. #line 13282 "configure"
  11973. #include "confdefs.h"
  11974. #define _POSIX_SOURCE
  11975. #include <termios.h>
  11976. int
  11977. main ()
  11978. {
  11979. struct termios foo; int x = foo.c_iflag
  11980. ;
  11981. return 0;
  11982. }
  11983. _ACEOF
  11984. rm -f conftest.$ac_objext
  11985. if { (eval echo "$as_me:13296: \"$ac_compile\"") >&5
  11986. (eval $ac_compile) 2>&5
  11987. ac_status=$?
  11988. echo "$as_me:13299: \$? = $ac_status" >&5
  11989. (exit $ac_status); } &&
  11990. { ac_try='test -s conftest.$ac_objext'
  11991. { (eval echo "$as_me:13302: \"$ac_try\"") >&5
  11992. (eval $ac_try) 2>&5
  11993. ac_status=$?
  11994. echo "$as_me:13305: \$? = $ac_status" >&5
  11995. (exit $ac_status); }; }; then
  11996. termios_bad=unknown
  11997. else
  11998. echo "$as_me: failed program was:" >&5
  11999. cat conftest.$ac_ext >&5
  12000. termios_bad=yes cat >>confdefs.h <<\EOF
  12001. #define SVR4_TERMIO 1
  12002. EOF
  12003. fi
  12004. rm -f conftest.$ac_objext conftest.$ac_ext
  12005. fi
  12006. rm -f conftest.$ac_objext conftest.$ac_ext
  12007. echo "$as_me:13320: result: $termios_bad" >&5
  12008. echo "${ECHO_T}$termios_bad" >&6
  12009. fi
  12010. fi
  12011. echo "$as_me:13325: checking for tcgetattr" >&5
  12012. echo $ECHO_N "checking for tcgetattr... $ECHO_C" >&6
  12013. if test "${cf_cv_have_tcgetattr+set}" = set; then
  12014. echo $ECHO_N "(cached) $ECHO_C" >&6
  12015. else
  12016. cat >conftest.$ac_ext <<_ACEOF
  12017. #line 13332 "configure"
  12018. #include "confdefs.h"
  12019. #include <sys/types.h>
  12020. #ifdef HAVE_UNISTD_H
  12021. #include <unistd.h>
  12022. #endif
  12023. #ifdef HAVE_TERMIOS_H
  12024. #include <termios.h>
  12025. #define TTY struct termios
  12026. #else
  12027. #ifdef HAVE_TERMIO_H
  12028. #include <termio.h>
  12029. #define TTY struct termio
  12030. #endif
  12031. #endif
  12032. int
  12033. main ()
  12034. {
  12035. TTY foo;
  12036. tcgetattr(1, &foo);
  12037. ;
  12038. return 0;
  12039. }
  12040. _ACEOF
  12041. rm -f conftest.$ac_objext conftest$ac_exeext
  12042. if { (eval echo "$as_me:13360: \"$ac_link\"") >&5
  12043. (eval $ac_link) 2>&5
  12044. ac_status=$?
  12045. echo "$as_me:13363: \$? = $ac_status" >&5
  12046. (exit $ac_status); } &&
  12047. { ac_try='test -s conftest$ac_exeext'
  12048. { (eval echo "$as_me:13366: \"$ac_try\"") >&5
  12049. (eval $ac_try) 2>&5
  12050. ac_status=$?
  12051. echo "$as_me:13369: \$? = $ac_status" >&5
  12052. (exit $ac_status); }; }; then
  12053. cf_cv_have_tcgetattr=yes
  12054. else
  12055. echo "$as_me: failed program was:" >&5
  12056. cat conftest.$ac_ext >&5
  12057. cf_cv_have_tcgetattr=no
  12058. fi
  12059. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  12060. fi
  12061. echo "$as_me:13379: result: $cf_cv_have_tcgetattr" >&5
  12062. echo "${ECHO_T}$cf_cv_have_tcgetattr" >&6
  12063. test "$cf_cv_have_tcgetattr" = yes && cat >>confdefs.h <<\EOF
  12064. #define HAVE_TCGETATTR 1
  12065. EOF
  12066. echo "$as_me:13385: checking for vsscanf function or workaround" >&5
  12067. echo $ECHO_N "checking for vsscanf function or workaround... $ECHO_C" >&6
  12068. if test "${cf_cv_func_vsscanf+set}" = set; then
  12069. echo $ECHO_N "(cached) $ECHO_C" >&6
  12070. else
  12071. cat >conftest.$ac_ext <<_ACEOF
  12072. #line 13392 "configure"
  12073. #include "confdefs.h"
  12074. #include <stdarg.h>
  12075. #include <stdio.h>
  12076. int
  12077. main ()
  12078. {
  12079. va_list ap;
  12080. vsscanf("from", "%d", ap)
  12081. ;
  12082. return 0;
  12083. }
  12084. _ACEOF
  12085. rm -f conftest.$ac_objext conftest$ac_exeext
  12086. if { (eval echo "$as_me:13408: \"$ac_link\"") >&5
  12087. (eval $ac_link) 2>&5
  12088. ac_status=$?
  12089. echo "$as_me:13411: \$? = $ac_status" >&5
  12090. (exit $ac_status); } &&
  12091. { ac_try='test -s conftest$ac_exeext'
  12092. { (eval echo "$as_me:13414: \"$ac_try\"") >&5
  12093. (eval $ac_try) 2>&5
  12094. ac_status=$?
  12095. echo "$as_me:13417: \$? = $ac_status" >&5
  12096. (exit $ac_status); }; }; then
  12097. cf_cv_func_vsscanf=vsscanf
  12098. else
  12099. echo "$as_me: failed program was:" >&5
  12100. cat conftest.$ac_ext >&5
  12101. cat >conftest.$ac_ext <<_ACEOF
  12102. #line 13425 "configure"
  12103. #include "confdefs.h"
  12104. #include <stdarg.h>
  12105. #include <stdio.h>
  12106. int
  12107. main ()
  12108. {
  12109. FILE strbuf;
  12110. char *str = "from";
  12111. strbuf._flag = _IOREAD;
  12112. strbuf._ptr = strbuf._base = (unsigned char *) str;
  12113. strbuf._cnt = strlen(str);
  12114. strbuf._file = _NFILE;
  12115. return (vfscanf(&strbuf, "%d", ap))
  12116. ;
  12117. return 0;
  12118. }
  12119. _ACEOF
  12120. rm -f conftest.$ac_objext conftest$ac_exeext
  12121. if { (eval echo "$as_me:13447: \"$ac_link\"") >&5
  12122. (eval $ac_link) 2>&5
  12123. ac_status=$?
  12124. echo "$as_me:13450: \$? = $ac_status" >&5
  12125. (exit $ac_status); } &&
  12126. { ac_try='test -s conftest$ac_exeext'
  12127. { (eval echo "$as_me:13453: \"$ac_try\"") >&5
  12128. (eval $ac_try) 2>&5
  12129. ac_status=$?
  12130. echo "$as_me:13456: \$? = $ac_status" >&5
  12131. (exit $ac_status); }; }; then
  12132. cf_cv_func_vsscanf=vfscanf
  12133. else
  12134. echo "$as_me: failed program was:" >&5
  12135. cat conftest.$ac_ext >&5
  12136. cat >conftest.$ac_ext <<_ACEOF
  12137. #line 13464 "configure"
  12138. #include "confdefs.h"
  12139. #include <stdarg.h>
  12140. #include <stdio.h>
  12141. int
  12142. main ()
  12143. {
  12144. FILE strbuf;
  12145. char *str = "from";
  12146. strbuf._flag = _IOREAD;
  12147. strbuf._ptr = strbuf._base = (unsigned char *) str;
  12148. strbuf._cnt = strlen(str);
  12149. strbuf._file = _NFILE;
  12150. return (_doscan(&strbuf, "%d", ap))
  12151. ;
  12152. return 0;
  12153. }
  12154. _ACEOF
  12155. rm -f conftest.$ac_objext conftest$ac_exeext
  12156. if { (eval echo "$as_me:13486: \"$ac_link\"") >&5
  12157. (eval $ac_link) 2>&5
  12158. ac_status=$?
  12159. echo "$as_me:13489: \$? = $ac_status" >&5
  12160. (exit $ac_status); } &&
  12161. { ac_try='test -s conftest$ac_exeext'
  12162. { (eval echo "$as_me:13492: \"$ac_try\"") >&5
  12163. (eval $ac_try) 2>&5
  12164. ac_status=$?
  12165. echo "$as_me:13495: \$? = $ac_status" >&5
  12166. (exit $ac_status); }; }; then
  12167. cf_cv_func_vsscanf=_doscan
  12168. else
  12169. echo "$as_me: failed program was:" >&5
  12170. cat conftest.$ac_ext >&5
  12171. cf_cv_func_vsscanf=no
  12172. fi
  12173. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  12174. fi
  12175. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  12176. fi
  12177. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  12178. fi
  12179. echo "$as_me:13510: result: $cf_cv_func_vsscanf" >&5
  12180. echo "${ECHO_T}$cf_cv_func_vsscanf" >&6
  12181. case $cf_cv_func_vsscanf in #(vi
  12182. vsscanf) cat >>confdefs.h <<\EOF
  12183. #define HAVE_VSSCANF 1
  12184. EOF
  12185. ;; #(vi
  12186. vfscanf) cat >>confdefs.h <<\EOF
  12187. #define HAVE_VFSCANF 1
  12188. EOF
  12189. ;; #(vi
  12190. _doscan) cat >>confdefs.h <<\EOF
  12191. #define HAVE__DOSCAN 1
  12192. EOF
  12193. ;;
  12194. esac
  12195. echo "$as_me:13528: checking for working mkstemp" >&5
  12196. echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6
  12197. if test "${cf_cv_func_mkstemp+set}" = set; then
  12198. echo $ECHO_N "(cached) $ECHO_C" >&6
  12199. else
  12200. rm -f conftest*
  12201. if test "$cross_compiling" = yes; then
  12202. echo "$as_me:13536: checking for mkstemp" >&5
  12203. echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
  12204. if test "${ac_cv_func_mkstemp+set}" = set; then
  12205. echo $ECHO_N "(cached) $ECHO_C" >&6
  12206. else
  12207. cat >conftest.$ac_ext <<_ACEOF
  12208. #line 13542 "configure"
  12209. #include "confdefs.h"
  12210. /* System header to define __stub macros and hopefully few prototypes,
  12211. which can conflict with char mkstemp (); below. */
  12212. #include <assert.h>
  12213. /* Override any gcc2 internal prototype to avoid an error. */
  12214. #ifdef __cplusplus
  12215. extern "C"
  12216. #endif
  12217. /* We use char because int might match the return type of a gcc2
  12218. builtin and then its argument prototype would still apply. */
  12219. char mkstemp ();
  12220. char (*f) ();
  12221. int
  12222. main ()
  12223. {
  12224. /* The GNU C library defines this for functions which it implements
  12225. to always fail with ENOSYS. Some functions are actually named
  12226. something starting with __ and the normal name is an alias. */
  12227. #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
  12228. choke me
  12229. #else
  12230. f = mkstemp;
  12231. #endif
  12232. ;
  12233. return 0;
  12234. }
  12235. _ACEOF
  12236. rm -f conftest.$ac_objext conftest$ac_exeext
  12237. if { (eval echo "$as_me:13573: \"$ac_link\"") >&5
  12238. (eval $ac_link) 2>&5
  12239. ac_status=$?
  12240. echo "$as_me:13576: \$? = $ac_status" >&5
  12241. (exit $ac_status); } &&
  12242. { ac_try='test -s conftest$ac_exeext'
  12243. { (eval echo "$as_me:13579: \"$ac_try\"") >&5
  12244. (eval $ac_try) 2>&5
  12245. ac_status=$?
  12246. echo "$as_me:13582: \$? = $ac_status" >&5
  12247. (exit $ac_status); }; }; then
  12248. ac_cv_func_mkstemp=yes
  12249. else
  12250. echo "$as_me: failed program was:" >&5
  12251. cat conftest.$ac_ext >&5
  12252. ac_cv_func_mkstemp=no
  12253. fi
  12254. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  12255. fi
  12256. echo "$as_me:13592: result: $ac_cv_func_mkstemp" >&5
  12257. echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
  12258. else
  12259. cat >conftest.$ac_ext <<_ACEOF
  12260. #line 13597 "configure"
  12261. #include "confdefs.h"
  12262. #include <sys/types.h>
  12263. #include <stdlib.h>
  12264. #include <stdio.h>
  12265. #include <string.h>
  12266. #include <sys/stat.h>
  12267. int main()
  12268. {
  12269. char *tmpl = "conftestXXXXXX";
  12270. char name[2][80];
  12271. int n;
  12272. int result = 0;
  12273. int fd;
  12274. struct stat sb;
  12275. umask(077);
  12276. for (n = 0; n < 2; ++n) {
  12277. strcpy(name[n], tmpl);
  12278. if ((fd = mkstemp(name[n])) >= 0) {
  12279. if (!strcmp(name[n], tmpl)
  12280. || stat(name[n], &sb) != 0
  12281. || (sb.st_mode & S_IFMT) != S_IFREG
  12282. || (sb.st_mode & 077) != 0) {
  12283. result = 1;
  12284. }
  12285. close(fd);
  12286. }
  12287. }
  12288. if (result == 0
  12289. && !strcmp(name[0], name[1]))
  12290. result = 1;
  12291. ${cf_cv_main_return:-return}(result);
  12292. }
  12293. _ACEOF
  12294. rm -f conftest$ac_exeext
  12295. if { (eval echo "$as_me:13635: \"$ac_link\"") >&5
  12296. (eval $ac_link) 2>&5
  12297. ac_status=$?
  12298. echo "$as_me:13638: \$? = $ac_status" >&5
  12299. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  12300. { (eval echo "$as_me:13640: \"$ac_try\"") >&5
  12301. (eval $ac_try) 2>&5
  12302. ac_status=$?
  12303. echo "$as_me:13643: \$? = $ac_status" >&5
  12304. (exit $ac_status); }; }; then
  12305. cf_cv_func_mkstemp=yes
  12306. else
  12307. echo "$as_me: program exited with status $ac_status" >&5
  12308. echo "$as_me: failed program was:" >&5
  12309. cat conftest.$ac_ext >&5
  12310. cf_cv_func_mkstemp=no
  12311. fi
  12312. rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  12313. fi
  12314. fi
  12315. echo "$as_me:13658: result: $cf_cv_func_mkstemp" >&5
  12316. echo "${ECHO_T}$cf_cv_func_mkstemp" >&6
  12317. if test "$cf_cv_func_mkstemp" = yes ; then
  12318. cat >>confdefs.h <<\EOF
  12319. #define HAVE_MKSTEMP 1
  12320. EOF
  12321. fi
  12322. # setup for prototype of fallback for vsscanf()
  12323. if test "$cf_cv_func_vsscanf" = vsscanf ; then
  12324. HAVE_VSSCANF=1
  12325. else
  12326. HAVE_VSSCANF=0
  12327. fi
  12328. if test "$cross_compiling" = yes ; then
  12329. { echo "$as_me:13676: WARNING: cross compiling: assume setvbuf params not reversed" >&5
  12330. echo "$as_me: WARNING: cross compiling: assume setvbuf params not reversed" >&2;}
  12331. else
  12332. echo "$as_me:13679: checking whether setvbuf arguments are reversed" >&5
  12333. echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
  12334. if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
  12335. echo $ECHO_N "(cached) $ECHO_C" >&6
  12336. else
  12337. if test "$cross_compiling" = yes; then
  12338. { { echo "$as_me:13685: error: cannot run test program while cross compiling" >&5
  12339. echo "$as_me: error: cannot run test program while cross compiling" >&2;}
  12340. { (exit 1); exit 1; }; }
  12341. else
  12342. cat >conftest.$ac_ext <<_ACEOF
  12343. #line 13690 "configure"
  12344. #include "confdefs.h"
  12345. #include <stdio.h>
  12346. /* If setvbuf has the reversed format, exit 0. */
  12347. int
  12348. main ()
  12349. {
  12350. /* This call has the arguments reversed.
  12351. A reversed system may check and see that the address of main
  12352. is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
  12353. if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
  12354. $ac_main_return(1);
  12355. putc('\r', stdout);
  12356. $ac_main_return(0); /* Non-reversed systems segv here. */
  12357. }
  12358. _ACEOF
  12359. rm -f conftest$ac_exeext
  12360. if { (eval echo "$as_me:13707: \"$ac_link\"") >&5
  12361. (eval $ac_link) 2>&5
  12362. ac_status=$?
  12363. echo "$as_me:13710: \$? = $ac_status" >&5
  12364. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  12365. { (eval echo "$as_me:13712: \"$ac_try\"") >&5
  12366. (eval $ac_try) 2>&5
  12367. ac_status=$?
  12368. echo "$as_me:13715: \$? = $ac_status" >&5
  12369. (exit $ac_status); }; }; then
  12370. ac_cv_func_setvbuf_reversed=yes
  12371. else
  12372. echo "$as_me: program exited with status $ac_status" >&5
  12373. echo "$as_me: failed program was:" >&5
  12374. cat conftest.$ac_ext >&5
  12375. ac_cv_func_setvbuf_reversed=no
  12376. fi
  12377. rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  12378. fi
  12379. rm -f core core.* *.core
  12380. fi
  12381. echo "$as_me:13728: result: $ac_cv_func_setvbuf_reversed" >&5
  12382. echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
  12383. if test $ac_cv_func_setvbuf_reversed = yes; then
  12384. cat >>confdefs.h <<\EOF
  12385. #define SETVBUF_REVERSED 1
  12386. EOF
  12387. fi
  12388. fi
  12389. echo "$as_me:13739: checking return type of signal handlers" >&5
  12390. echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
  12391. if test "${ac_cv_type_signal+set}" = set; then
  12392. echo $ECHO_N "(cached) $ECHO_C" >&6
  12393. else
  12394. cat >conftest.$ac_ext <<_ACEOF
  12395. #line 13745 "configure"
  12396. #include "confdefs.h"
  12397. #include <sys/types.h>
  12398. #include <signal.h>
  12399. #ifdef signal
  12400. # undef signal
  12401. #endif
  12402. #ifdef __cplusplus
  12403. extern "C" void (*signal (int, void (*)(int)))(int);
  12404. #else
  12405. void (*signal ()) ();
  12406. #endif
  12407. int
  12408. main ()
  12409. {
  12410. int i;
  12411. ;
  12412. return 0;
  12413. }
  12414. _ACEOF
  12415. rm -f conftest.$ac_objext
  12416. if { (eval echo "$as_me:13767: \"$ac_compile\"") >&5
  12417. (eval $ac_compile) 2>&5
  12418. ac_status=$?
  12419. echo "$as_me:13770: \$? = $ac_status" >&5
  12420. (exit $ac_status); } &&
  12421. { ac_try='test -s conftest.$ac_objext'
  12422. { (eval echo "$as_me:13773: \"$ac_try\"") >&5
  12423. (eval $ac_try) 2>&5
  12424. ac_status=$?
  12425. echo "$as_me:13776: \$? = $ac_status" >&5
  12426. (exit $ac_status); }; }; then
  12427. ac_cv_type_signal=void
  12428. else
  12429. echo "$as_me: failed program was:" >&5
  12430. cat conftest.$ac_ext >&5
  12431. ac_cv_type_signal=int
  12432. fi
  12433. rm -f conftest.$ac_objext conftest.$ac_ext
  12434. fi
  12435. echo "$as_me:13786: result: $ac_cv_type_signal" >&5
  12436. echo "${ECHO_T}$ac_cv_type_signal" >&6
  12437. cat >>confdefs.h <<EOF
  12438. #define RETSIGTYPE $ac_cv_type_signal
  12439. EOF
  12440. echo "$as_me:13793: checking for type sigaction_t" >&5
  12441. echo $ECHO_N "checking for type sigaction_t... $ECHO_C" >&6
  12442. if test "${cf_cv_type_sigaction+set}" = set; then
  12443. echo $ECHO_N "(cached) $ECHO_C" >&6
  12444. else
  12445. cat >conftest.$ac_ext <<_ACEOF
  12446. #line 13800 "configure"
  12447. #include "confdefs.h"
  12448. #include <signal.h>
  12449. int
  12450. main ()
  12451. {
  12452. sigaction_t x
  12453. ;
  12454. return 0;
  12455. }
  12456. _ACEOF
  12457. rm -f conftest.$ac_objext
  12458. if { (eval echo "$as_me:13813: \"$ac_compile\"") >&5
  12459. (eval $ac_compile) 2>&5
  12460. ac_status=$?
  12461. echo "$as_me:13816: \$? = $ac_status" >&5
  12462. (exit $ac_status); } &&
  12463. { ac_try='test -s conftest.$ac_objext'
  12464. { (eval echo "$as_me:13819: \"$ac_try\"") >&5
  12465. (eval $ac_try) 2>&5
  12466. ac_status=$?
  12467. echo "$as_me:13822: \$? = $ac_status" >&5
  12468. (exit $ac_status); }; }; then
  12469. cf_cv_type_sigaction=yes
  12470. else
  12471. echo "$as_me: failed program was:" >&5
  12472. cat conftest.$ac_ext >&5
  12473. cf_cv_type_sigaction=no
  12474. fi
  12475. rm -f conftest.$ac_objext conftest.$ac_ext
  12476. fi
  12477. echo "$as_me:13833: result: $cf_cv_type_sigaction" >&5
  12478. echo "${ECHO_T}$cf_cv_type_sigaction" >&6
  12479. test "$cf_cv_type_sigaction" = yes && cat >>confdefs.h <<\EOF
  12480. #define HAVE_TYPE_SIGACTION 1
  12481. EOF
  12482. echo "$as_me:13839: checking declaration of size-change" >&5
  12483. echo $ECHO_N "checking declaration of size-change... $ECHO_C" >&6
  12484. if test "${cf_cv_sizechange+set}" = set; then
  12485. echo $ECHO_N "(cached) $ECHO_C" >&6
  12486. else
  12487. cf_cv_sizechange=unknown
  12488. cf_save_CPPFLAGS="$CPPFLAGS"
  12489. for cf_opts in "" "NEED_PTEM_H"
  12490. do
  12491. CPPFLAGS="$cf_save_CPPFLAGS"
  12492. test -n "$cf_opts" && CPPFLAGS="$CPPFLAGS -D$cf_opts"
  12493. cat >conftest.$ac_ext <<_ACEOF
  12494. #line 13854 "configure"
  12495. #include "confdefs.h"
  12496. #include <sys/types.h>
  12497. #ifdef HAVE_TERMIOS_H
  12498. #include <termios.h>
  12499. #else
  12500. #ifdef HAVE_TERMIO_H
  12501. #include <termio.h>
  12502. #endif
  12503. #endif
  12504. #ifdef NEED_PTEM_H
  12505. /* This is a workaround for SCO: they neglected to define struct winsize in
  12506. * termios.h -- it's only in termio.h and ptem.h
  12507. */
  12508. #include <sys/stream.h>
  12509. #include <sys/ptem.h>
  12510. #endif
  12511. #if !defined(sun) || !defined(HAVE_TERMIOS_H)
  12512. #include <sys/ioctl.h>
  12513. #endif
  12514. int
  12515. main ()
  12516. {
  12517. #ifdef TIOCGSIZE
  12518. struct ttysize win; /* FIXME: what system is this? */
  12519. int y = win.ts_lines;
  12520. int x = win.ts_cols;
  12521. #else
  12522. #ifdef TIOCGWINSZ
  12523. struct winsize win;
  12524. int y = win.ws_row;
  12525. int x = win.ws_col;
  12526. #else
  12527. no TIOCGSIZE or TIOCGWINSZ
  12528. #endif /* TIOCGWINSZ */
  12529. #endif /* TIOCGSIZE */
  12530. ;
  12531. return 0;
  12532. }
  12533. _ACEOF
  12534. rm -f conftest.$ac_objext
  12535. if { (eval echo "$as_me:13898: \"$ac_compile\"") >&5
  12536. (eval $ac_compile) 2>&5
  12537. ac_status=$?
  12538. echo "$as_me:13901: \$? = $ac_status" >&5
  12539. (exit $ac_status); } &&
  12540. { ac_try='test -s conftest.$ac_objext'
  12541. { (eval echo "$as_me:13904: \"$ac_try\"") >&5
  12542. (eval $ac_try) 2>&5
  12543. ac_status=$?
  12544. echo "$as_me:13907: \$? = $ac_status" >&5
  12545. (exit $ac_status); }; }; then
  12546. cf_cv_sizechange=yes
  12547. else
  12548. echo "$as_me: failed program was:" >&5
  12549. cat conftest.$ac_ext >&5
  12550. cf_cv_sizechange=no
  12551. fi
  12552. rm -f conftest.$ac_objext conftest.$ac_ext
  12553. CPPFLAGS="$cf_save_CPPFLAGS"
  12554. if test "$cf_cv_sizechange" = yes ; then
  12555. echo "size-change succeeded ($cf_opts)" >&5
  12556. test -n "$cf_opts" && cf_cv_sizechange="$cf_opts"
  12557. break
  12558. fi
  12559. done
  12560. fi
  12561. echo "$as_me:13926: result: $cf_cv_sizechange" >&5
  12562. echo "${ECHO_T}$cf_cv_sizechange" >&6
  12563. if test "$cf_cv_sizechange" != no ; then
  12564. cat >>confdefs.h <<\EOF
  12565. #define HAVE_SIZECHANGE 1
  12566. EOF
  12567. case $cf_cv_sizechange in #(vi
  12568. NEED*)
  12569. cat >>confdefs.h <<EOF
  12570. #define $cf_cv_sizechange 1
  12571. EOF
  12572. ;;
  12573. esac
  12574. fi
  12575. echo "$as_me:13943: checking for memmove" >&5
  12576. echo $ECHO_N "checking for memmove... $ECHO_C" >&6
  12577. if test "${ac_cv_func_memmove+set}" = set; then
  12578. echo $ECHO_N "(cached) $ECHO_C" >&6
  12579. else
  12580. cat >conftest.$ac_ext <<_ACEOF
  12581. #line 13949 "configure"
  12582. #include "confdefs.h"
  12583. /* System header to define __stub macros and hopefully few prototypes,
  12584. which can conflict with char memmove (); below. */
  12585. #include <assert.h>
  12586. /* Override any gcc2 internal prototype to avoid an error. */
  12587. #ifdef __cplusplus
  12588. extern "C"
  12589. #endif
  12590. /* We use char because int might match the return type of a gcc2
  12591. builtin and then its argument prototype would still apply. */
  12592. char memmove ();
  12593. char (*f) ();
  12594. int
  12595. main ()
  12596. {
  12597. /* The GNU C library defines this for functions which it implements
  12598. to always fail with ENOSYS. Some functions are actually named
  12599. something starting with __ and the normal name is an alias. */
  12600. #if defined (__stub_memmove) || defined (__stub___memmove)
  12601. choke me
  12602. #else
  12603. f = memmove;
  12604. #endif
  12605. ;
  12606. return 0;
  12607. }
  12608. _ACEOF
  12609. rm -f conftest.$ac_objext conftest$ac_exeext
  12610. if { (eval echo "$as_me:13980: \"$ac_link\"") >&5
  12611. (eval $ac_link) 2>&5
  12612. ac_status=$?
  12613. echo "$as_me:13983: \$? = $ac_status" >&5
  12614. (exit $ac_status); } &&
  12615. { ac_try='test -s conftest$ac_exeext'
  12616. { (eval echo "$as_me:13986: \"$ac_try\"") >&5
  12617. (eval $ac_try) 2>&5
  12618. ac_status=$?
  12619. echo "$as_me:13989: \$? = $ac_status" >&5
  12620. (exit $ac_status); }; }; then
  12621. ac_cv_func_memmove=yes
  12622. else
  12623. echo "$as_me: failed program was:" >&5
  12624. cat conftest.$ac_ext >&5
  12625. ac_cv_func_memmove=no
  12626. fi
  12627. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  12628. fi
  12629. echo "$as_me:13999: result: $ac_cv_func_memmove" >&5
  12630. echo "${ECHO_T}$ac_cv_func_memmove" >&6
  12631. if test $ac_cv_func_memmove = yes; then
  12632. :
  12633. else
  12634. echo "$as_me:14005: checking for bcopy" >&5
  12635. echo $ECHO_N "checking for bcopy... $ECHO_C" >&6
  12636. if test "${ac_cv_func_bcopy+set}" = set; then
  12637. echo $ECHO_N "(cached) $ECHO_C" >&6
  12638. else
  12639. cat >conftest.$ac_ext <<_ACEOF
  12640. #line 14011 "configure"
  12641. #include "confdefs.h"
  12642. /* System header to define __stub macros and hopefully few prototypes,
  12643. which can conflict with char bcopy (); below. */
  12644. #include <assert.h>
  12645. /* Override any gcc2 internal prototype to avoid an error. */
  12646. #ifdef __cplusplus
  12647. extern "C"
  12648. #endif
  12649. /* We use char because int might match the return type of a gcc2
  12650. builtin and then its argument prototype would still apply. */
  12651. char bcopy ();
  12652. char (*f) ();
  12653. int
  12654. main ()
  12655. {
  12656. /* The GNU C library defines this for functions which it implements
  12657. to always fail with ENOSYS. Some functions are actually named
  12658. something starting with __ and the normal name is an alias. */
  12659. #if defined (__stub_bcopy) || defined (__stub___bcopy)
  12660. choke me
  12661. #else
  12662. f = bcopy;
  12663. #endif
  12664. ;
  12665. return 0;
  12666. }
  12667. _ACEOF
  12668. rm -f conftest.$ac_objext conftest$ac_exeext
  12669. if { (eval echo "$as_me:14042: \"$ac_link\"") >&5
  12670. (eval $ac_link) 2>&5
  12671. ac_status=$?
  12672. echo "$as_me:14045: \$? = $ac_status" >&5
  12673. (exit $ac_status); } &&
  12674. { ac_try='test -s conftest$ac_exeext'
  12675. { (eval echo "$as_me:14048: \"$ac_try\"") >&5
  12676. (eval $ac_try) 2>&5
  12677. ac_status=$?
  12678. echo "$as_me:14051: \$? = $ac_status" >&5
  12679. (exit $ac_status); }; }; then
  12680. ac_cv_func_bcopy=yes
  12681. else
  12682. echo "$as_me: failed program was:" >&5
  12683. cat conftest.$ac_ext >&5
  12684. ac_cv_func_bcopy=no
  12685. fi
  12686. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  12687. fi
  12688. echo "$as_me:14061: result: $ac_cv_func_bcopy" >&5
  12689. echo "${ECHO_T}$ac_cv_func_bcopy" >&6
  12690. if test $ac_cv_func_bcopy = yes; then
  12691. echo "$as_me:14065: checking if bcopy does overlapping moves" >&5
  12692. echo $ECHO_N "checking if bcopy does overlapping moves... $ECHO_C" >&6
  12693. if test "${cf_cv_good_bcopy+set}" = set; then
  12694. echo $ECHO_N "(cached) $ECHO_C" >&6
  12695. else
  12696. if test "$cross_compiling" = yes; then
  12697. cf_cv_good_bcopy=unknown
  12698. else
  12699. cat >conftest.$ac_ext <<_ACEOF
  12700. #line 14075 "configure"
  12701. #include "confdefs.h"
  12702. int main() {
  12703. static char data[] = "abcdefghijklmnopqrstuwwxyz";
  12704. char temp[40];
  12705. bcopy(data, temp, sizeof(data));
  12706. bcopy(temp+10, temp, 15);
  12707. bcopy(temp+5, temp+15, 10);
  12708. ${cf_cv_main_return:-return} (strcmp(temp, "klmnopqrstuwwxypqrstuwwxyz"));
  12709. }
  12710. _ACEOF
  12711. rm -f conftest$ac_exeext
  12712. if { (eval echo "$as_me:14089: \"$ac_link\"") >&5
  12713. (eval $ac_link) 2>&5
  12714. ac_status=$?
  12715. echo "$as_me:14092: \$? = $ac_status" >&5
  12716. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  12717. { (eval echo "$as_me:14094: \"$ac_try\"") >&5
  12718. (eval $ac_try) 2>&5
  12719. ac_status=$?
  12720. echo "$as_me:14097: \$? = $ac_status" >&5
  12721. (exit $ac_status); }; }; then
  12722. cf_cv_good_bcopy=yes
  12723. else
  12724. echo "$as_me: program exited with status $ac_status" >&5
  12725. echo "$as_me: failed program was:" >&5
  12726. cat conftest.$ac_ext >&5
  12727. cf_cv_good_bcopy=no
  12728. fi
  12729. rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  12730. fi
  12731. fi
  12732. echo "$as_me:14110: result: $cf_cv_good_bcopy" >&5
  12733. echo "${ECHO_T}$cf_cv_good_bcopy" >&6
  12734. else
  12735. cf_cv_good_bcopy=no
  12736. fi
  12737. if test "$cf_cv_good_bcopy" = yes ; then
  12738. cat >>confdefs.h <<\EOF
  12739. #define USE_OK_BCOPY 1
  12740. EOF
  12741. else
  12742. cat >>confdefs.h <<\EOF
  12743. #define USE_MY_MEMMOVE 1
  12744. EOF
  12745. fi
  12746. fi
  12747. echo "$as_me:14131: checking if poll really works" >&5
  12748. echo $ECHO_N "checking if poll really works... $ECHO_C" >&6
  12749. if test "${cf_cv_working_poll+set}" = set; then
  12750. echo $ECHO_N "(cached) $ECHO_C" >&6
  12751. else
  12752. if test "$cross_compiling" = yes; then
  12753. cf_cv_working_poll=unknown
  12754. else
  12755. cat >conftest.$ac_ext <<_ACEOF
  12756. #line 14141 "configure"
  12757. #include "confdefs.h"
  12758. #include <stdio.h>
  12759. #ifdef HAVE_POLL_H
  12760. #include <poll.h>
  12761. #else
  12762. #include <sys/poll.h>
  12763. #endif
  12764. int main() {
  12765. struct pollfd myfds;
  12766. int ret;
  12767. myfds.fd = 0;
  12768. myfds.events = POLLIN;
  12769. ret = poll(&myfds, 1, 100);
  12770. ${cf_cv_main_return:-return}(ret != 0);
  12771. }
  12772. _ACEOF
  12773. rm -f conftest$ac_exeext
  12774. if { (eval echo "$as_me:14162: \"$ac_link\"") >&5
  12775. (eval $ac_link) 2>&5
  12776. ac_status=$?
  12777. echo "$as_me:14165: \$? = $ac_status" >&5
  12778. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  12779. { (eval echo "$as_me:14167: \"$ac_try\"") >&5
  12780. (eval $ac_try) 2>&5
  12781. ac_status=$?
  12782. echo "$as_me:14170: \$? = $ac_status" >&5
  12783. (exit $ac_status); }; }; then
  12784. cf_cv_working_poll=yes
  12785. else
  12786. echo "$as_me: program exited with status $ac_status" >&5
  12787. echo "$as_me: failed program was:" >&5
  12788. cat conftest.$ac_ext >&5
  12789. cf_cv_working_poll=no
  12790. fi
  12791. rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  12792. fi
  12793. fi
  12794. echo "$as_me:14182: result: $cf_cv_working_poll" >&5
  12795. echo "${ECHO_T}$cf_cv_working_poll" >&6
  12796. test "$cf_cv_working_poll" = "yes" && cat >>confdefs.h <<\EOF
  12797. #define HAVE_WORKING_POLL 1
  12798. EOF
  12799. # special check for test/ditto.c
  12800. echo "$as_me:14190: checking for openpty in -lutil" >&5
  12801. echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
  12802. if test "${ac_cv_lib_util_openpty+set}" = set; then
  12803. echo $ECHO_N "(cached) $ECHO_C" >&6
  12804. else
  12805. ac_check_lib_save_LIBS=$LIBS
  12806. LIBS="-lutil $LIBS"
  12807. cat >conftest.$ac_ext <<_ACEOF
  12808. #line 14198 "configure"
  12809. #include "confdefs.h"
  12810. /* Override any gcc2 internal prototype to avoid an error. */
  12811. #ifdef __cplusplus
  12812. extern "C"
  12813. #endif
  12814. /* We use char because int might match the return type of a gcc2
  12815. builtin and then its argument prototype would still apply. */
  12816. char openpty ();
  12817. int
  12818. main ()
  12819. {
  12820. openpty ();
  12821. ;
  12822. return 0;
  12823. }
  12824. _ACEOF
  12825. rm -f conftest.$ac_objext conftest$ac_exeext
  12826. if { (eval echo "$as_me:14217: \"$ac_link\"") >&5
  12827. (eval $ac_link) 2>&5
  12828. ac_status=$?
  12829. echo "$as_me:14220: \$? = $ac_status" >&5
  12830. (exit $ac_status); } &&
  12831. { ac_try='test -s conftest$ac_exeext'
  12832. { (eval echo "$as_me:14223: \"$ac_try\"") >&5
  12833. (eval $ac_try) 2>&5
  12834. ac_status=$?
  12835. echo "$as_me:14226: \$? = $ac_status" >&5
  12836. (exit $ac_status); }; }; then
  12837. ac_cv_lib_util_openpty=yes
  12838. else
  12839. echo "$as_me: failed program was:" >&5
  12840. cat conftest.$ac_ext >&5
  12841. ac_cv_lib_util_openpty=no
  12842. fi
  12843. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  12844. LIBS=$ac_check_lib_save_LIBS
  12845. fi
  12846. echo "$as_me:14237: result: $ac_cv_lib_util_openpty" >&5
  12847. echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
  12848. if test $ac_cv_lib_util_openpty = yes; then
  12849. cf_cv_lib_util=yes
  12850. else
  12851. cf_cv_lib_util=no
  12852. fi
  12853. echo "$as_me:14245: checking for openpty header" >&5
  12854. echo $ECHO_N "checking for openpty header... $ECHO_C" >&6
  12855. if test "${cf_cv_func_openpty+set}" = set; then
  12856. echo $ECHO_N "(cached) $ECHO_C" >&6
  12857. else
  12858. cf_save_LIBS="$LIBS"
  12859. test $cf_cv_lib_util = yes && LIBS="-lutil $LIBS"
  12860. for cf_header in pty.h libutil.h util.h
  12861. do
  12862. cat >conftest.$ac_ext <<_ACEOF
  12863. #line 14256 "configure"
  12864. #include "confdefs.h"
  12865. #include <$cf_header>
  12866. int
  12867. main ()
  12868. {
  12869. int x = openpty((int *)0, (int *)0, (char *)0,
  12870. (struct termios *)0, (struct winsize *)0);
  12871. ;
  12872. return 0;
  12873. }
  12874. _ACEOF
  12875. rm -f conftest.$ac_objext conftest$ac_exeext
  12876. if { (eval echo "$as_me:14273: \"$ac_link\"") >&5
  12877. (eval $ac_link) 2>&5
  12878. ac_status=$?
  12879. echo "$as_me:14276: \$? = $ac_status" >&5
  12880. (exit $ac_status); } &&
  12881. { ac_try='test -s conftest$ac_exeext'
  12882. { (eval echo "$as_me:14279: \"$ac_try\"") >&5
  12883. (eval $ac_try) 2>&5
  12884. ac_status=$?
  12885. echo "$as_me:14282: \$? = $ac_status" >&5
  12886. (exit $ac_status); }; }; then
  12887. cf_cv_func_openpty=$cf_header
  12888. break
  12889. else
  12890. echo "$as_me: failed program was:" >&5
  12891. cat conftest.$ac_ext >&5
  12892. cf_cv_func_openpty=no
  12893. fi
  12894. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  12895. done
  12896. LIBS="$cf_save_LIBS"
  12897. fi
  12898. echo "$as_me:14300: result: $cf_cv_func_openpty" >&5
  12899. echo "${ECHO_T}$cf_cv_func_openpty" >&6
  12900. if test "$cf_cv_func_openpty" != no ; then
  12901. cat >>confdefs.h <<EOF
  12902. #define USE_OPENPTY_HEADER <$cf_cv_func_openpty>
  12903. EOF
  12904. cat >>confdefs.h <<\EOF
  12905. #define USE_XTERM_PTY 1
  12906. EOF
  12907. if test "$cf_cv_lib_util" = yes ; then
  12908. TEST_LIBS="-lutil $TEST_LIBS"
  12909. fi
  12910. fi
  12911. if test "$with_hashed_db" != no ; then
  12912. cat >>confdefs.h <<\EOF
  12913. #define USE_HASHED_DB 1
  12914. EOF
  12915. case $with_hashed_db in #(vi
  12916. yes|*able*) #(vi
  12917. ;;
  12918. *)
  12919. if test -d "$with_hashed_db" ; then
  12920. if test -n "$with_hashed_db/include" ; then
  12921. for cf_add_incdir in $with_hashed_db/include
  12922. do
  12923. while test $cf_add_incdir != /usr/include
  12924. do
  12925. if test -d $cf_add_incdir
  12926. then
  12927. cf_have_incdir=no
  12928. if test -n "$CFLAGS$CPPFLAGS" ; then
  12929. # a loop is needed to ensure we can add subdirs of existing dirs
  12930. for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
  12931. if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
  12932. cf_have_incdir=yes; break
  12933. fi
  12934. done
  12935. fi
  12936. if test "$cf_have_incdir" = no ; then
  12937. if test "$cf_add_incdir" = /usr/local/include ; then
  12938. if test "$GCC" = yes
  12939. then
  12940. cf_save_CPPFLAGS=$CPPFLAGS
  12941. CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
  12942. cat >conftest.$ac_ext <<_ACEOF
  12943. #line 14352 "configure"
  12944. #include "confdefs.h"
  12945. #include <stdio.h>
  12946. int
  12947. main ()
  12948. {
  12949. printf("Hello")
  12950. ;
  12951. return 0;
  12952. }
  12953. _ACEOF
  12954. rm -f conftest.$ac_objext
  12955. if { (eval echo "$as_me:14364: \"$ac_compile\"") >&5
  12956. (eval $ac_compile) 2>&5
  12957. ac_status=$?
  12958. echo "$as_me:14367: \$? = $ac_status" >&5
  12959. (exit $ac_status); } &&
  12960. { ac_try='test -s conftest.$ac_objext'
  12961. { (eval echo "$as_me:14370: \"$ac_try\"") >&5
  12962. (eval $ac_try) 2>&5
  12963. ac_status=$?
  12964. echo "$as_me:14373: \$? = $ac_status" >&5
  12965. (exit $ac_status); }; }; then
  12966. :
  12967. else
  12968. echo "$as_me: failed program was:" >&5
  12969. cat conftest.$ac_ext >&5
  12970. cf_have_incdir=yes
  12971. fi
  12972. rm -f conftest.$ac_objext conftest.$ac_ext
  12973. CPPFLAGS=$cf_save_CPPFLAGS
  12974. fi
  12975. fi
  12976. fi
  12977. if test "$cf_have_incdir" = no ; then
  12978. test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
  12979. echo "${as_me-configure}:14390: testing adding $cf_add_incdir to include-path ..." 1>&5
  12980. CPPFLAGS="-I$cf_add_incdir $CPPFLAGS"
  12981. cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
  12982. test "$cf_top_incdir" = "$cf_add_incdir" && break
  12983. cf_add_incdir="$cf_top_incdir"
  12984. else
  12985. break
  12986. fi
  12987. fi
  12988. done
  12989. done
  12990. fi
  12991. if test -n "$with_hashed_db/lib" ; then
  12992. for cf_add_libdir in $with_hashed_db/lib
  12993. do
  12994. if test $cf_add_libdir = /usr/lib ; then
  12995. :
  12996. elif test -d $cf_add_libdir
  12997. then
  12998. cf_have_libdir=no
  12999. if test -n "$LDFLAGS$LIBS" ; then
  13000. # a loop is needed to ensure we can add subdirs of existing dirs
  13001. for cf_test_libdir in $LDFLAGS $LIBS ; do
  13002. if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
  13003. cf_have_libdir=yes; break
  13004. fi
  13005. done
  13006. fi
  13007. if test "$cf_have_libdir" = no ; then
  13008. test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
  13009. echo "${as_me-configure}:14424: testing adding $cf_add_libdir to library-path ..." 1>&5
  13010. LDFLAGS="-L$cf_add_libdir $LDFLAGS"
  13011. fi
  13012. fi
  13013. done
  13014. fi
  13015. fi
  13016. esac
  13017. echo "$as_me:14435: checking for db.h" >&5
  13018. echo $ECHO_N "checking for db.h... $ECHO_C" >&6
  13019. if test "${ac_cv_header_db_h+set}" = set; then
  13020. echo $ECHO_N "(cached) $ECHO_C" >&6
  13021. else
  13022. cat >conftest.$ac_ext <<_ACEOF
  13023. #line 14441 "configure"
  13024. #include "confdefs.h"
  13025. #include <db.h>
  13026. _ACEOF
  13027. if { (eval echo "$as_me:14445: \"$ac_cpp conftest.$ac_ext\"") >&5
  13028. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  13029. ac_status=$?
  13030. egrep -v '^ *\+' conftest.er1 >conftest.err
  13031. rm -f conftest.er1
  13032. cat conftest.err >&5
  13033. echo "$as_me:14451: \$? = $ac_status" >&5
  13034. (exit $ac_status); } >/dev/null; then
  13035. if test -s conftest.err; then
  13036. ac_cpp_err=$ac_c_preproc_warn_flag
  13037. else
  13038. ac_cpp_err=
  13039. fi
  13040. else
  13041. ac_cpp_err=yes
  13042. fi
  13043. if test -z "$ac_cpp_err"; then
  13044. ac_cv_header_db_h=yes
  13045. else
  13046. echo "$as_me: failed program was:" >&5
  13047. cat conftest.$ac_ext >&5
  13048. ac_cv_header_db_h=no
  13049. fi
  13050. rm -f conftest.err conftest.$ac_ext
  13051. fi
  13052. echo "$as_me:14470: result: $ac_cv_header_db_h" >&5
  13053. echo "${ECHO_T}$ac_cv_header_db_h" >&6
  13054. if test $ac_cv_header_db_h = yes; then
  13055. echo "$as_me:14474: checking for version of db" >&5
  13056. echo $ECHO_N "checking for version of db... $ECHO_C" >&6
  13057. if test "${cf_cv_hashed_db_version+set}" = set; then
  13058. echo $ECHO_N "(cached) $ECHO_C" >&6
  13059. else
  13060. cf_cv_hashed_db_version=unknown
  13061. for cf_db_version in 1 2 3 4 5
  13062. do
  13063. echo "${as_me-configure}:14485: testing checking for db version $cf_db_version ..." 1>&5
  13064. cat >conftest.$ac_ext <<_ACEOF
  13065. #line 14488 "configure"
  13066. #include "confdefs.h"
  13067. $ac_includes_default
  13068. #include <db.h>
  13069. #ifdef DB_VERSION_MAJOR
  13070. /* db2 (DB_VERSION_MAJOR=2) has also DB_VERSION_MINOR, tested with 7 */
  13071. #if $cf_db_version == DB_VERSION_MAJOR
  13072. /* ok */
  13073. #else
  13074. make an error
  13075. #endif
  13076. #else
  13077. #if $cf_db_version == 1
  13078. /* ok: assuming this is DB 1.8.5 */
  13079. #else
  13080. make an error
  13081. #endif
  13082. #endif
  13083. int
  13084. main ()
  13085. {
  13086. DBT *foo = 0
  13087. ;
  13088. return 0;
  13089. }
  13090. _ACEOF
  13091. rm -f conftest.$ac_objext
  13092. if { (eval echo "$as_me:14518: \"$ac_compile\"") >&5
  13093. (eval $ac_compile) 2>&5
  13094. ac_status=$?
  13095. echo "$as_me:14521: \$? = $ac_status" >&5
  13096. (exit $ac_status); } &&
  13097. { ac_try='test -s conftest.$ac_objext'
  13098. { (eval echo "$as_me:14524: \"$ac_try\"") >&5
  13099. (eval $ac_try) 2>&5
  13100. ac_status=$?
  13101. echo "$as_me:14527: \$? = $ac_status" >&5
  13102. (exit $ac_status); }; }; then
  13103. cf_cv_hashed_db_version=$cf_db_version
  13104. break
  13105. else
  13106. echo "$as_me: failed program was:" >&5
  13107. cat conftest.$ac_ext >&5
  13108. fi
  13109. rm -f conftest.$ac_objext conftest.$ac_ext
  13110. done
  13111. fi
  13112. echo "$as_me:14541: result: $cf_cv_hashed_db_version" >&5
  13113. echo "${ECHO_T}$cf_cv_hashed_db_version" >&6
  13114. if test "$cf_cv_hashed_db_version" = unknown ; then
  13115. { { echo "$as_me:14545: error: Cannot determine version of db" >&5
  13116. echo "$as_me: error: Cannot determine version of db" >&2;}
  13117. { (exit 1); exit 1; }; }
  13118. else
  13119. echo "$as_me:14550: checking for db libraries" >&5
  13120. echo $ECHO_N "checking for db libraries... $ECHO_C" >&6
  13121. if test "${cf_cv_hashed_db_libs+set}" = set; then
  13122. echo $ECHO_N "(cached) $ECHO_C" >&6
  13123. else
  13124. cf_cv_hashed_db_libs=unknown
  13125. for cf_db_libs in "" db$cf_cv_hashed_db_version db-$cf_cv_hashed_db_version db ''
  13126. do
  13127. cf_save_libs="$LIBS"
  13128. if test -n "$cf_db_libs"; then
  13129. LIBS="-l$cf_db_libs $LIBS"
  13130. fi
  13131. echo "${as_me-configure}:14564: testing checking for library "$cf_db_libs" ..." 1>&5
  13132. cat >conftest.$ac_ext <<_ACEOF
  13133. #line 14567 "configure"
  13134. #include "confdefs.h"
  13135. $ac_includes_default
  13136. #include <db.h>
  13137. int
  13138. main ()
  13139. {
  13140. char *path = "/tmp/foo";
  13141. #ifdef DB_VERSION_MAJOR
  13142. #if DB_VERSION_MAJOR >= 4
  13143. DB *result = 0;
  13144. db_create(&result, NULL, 0);
  13145. result->open(result,
  13146. NULL,
  13147. path,
  13148. path,
  13149. DB_HASH,
  13150. DB_CREATE,
  13151. 0644);
  13152. #elif DB_VERSION_MAJOR >= 3
  13153. DB *result = 0;
  13154. db_create(&result, NULL, 0);
  13155. result->open(result,
  13156. path,
  13157. path,
  13158. DB_HASH,
  13159. DB_CREATE,
  13160. 0644);
  13161. #elif DB_VERSION_MAJOR >= 2
  13162. DB *result = 0;
  13163. db_open(path,
  13164. DB_HASH,
  13165. DB_CREATE,
  13166. 0644,
  13167. (DB_ENV *) 0,
  13168. (DB_INFO *) 0,
  13169. &result);
  13170. #endif /* DB_VERSION_MAJOR */
  13171. #else
  13172. DB *result = dbopen(path,
  13173. 2,
  13174. 0644,
  13175. DB_HASH,
  13176. 0);
  13177. #endif
  13178. ${cf_cv_main_return:-return}(result != 0)
  13179. ;
  13180. return 0;
  13181. }
  13182. _ACEOF
  13183. rm -f conftest.$ac_objext conftest$ac_exeext
  13184. if { (eval echo "$as_me:14622: \"$ac_link\"") >&5
  13185. (eval $ac_link) 2>&5
  13186. ac_status=$?
  13187. echo "$as_me:14625: \$? = $ac_status" >&5
  13188. (exit $ac_status); } &&
  13189. { ac_try='test -s conftest$ac_exeext'
  13190. { (eval echo "$as_me:14628: \"$ac_try\"") >&5
  13191. (eval $ac_try) 2>&5
  13192. ac_status=$?
  13193. echo "$as_me:14631: \$? = $ac_status" >&5
  13194. (exit $ac_status); }; }; then
  13195. if test -n "$cf_db_libs" ; then
  13196. cf_cv_hashed_db_libs=$cf_db_libs
  13197. else
  13198. cf_cv_hashed_db_libs=default
  13199. fi
  13200. LIBS="$cf_save_libs"
  13201. break
  13202. else
  13203. echo "$as_me: failed program was:" >&5
  13204. cat conftest.$ac_ext >&5
  13205. fi
  13206. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  13207. LIBS="$cf_save_libs"
  13208. done
  13209. fi
  13210. echo "$as_me:14651: result: $cf_cv_hashed_db_libs" >&5
  13211. echo "${ECHO_T}$cf_cv_hashed_db_libs" >&6
  13212. if test "$cf_cv_hashed_db_libs" = unknown ; then
  13213. { { echo "$as_me:14655: error: Cannot determine library for db" >&5
  13214. echo "$as_me: error: Cannot determine library for db" >&2;}
  13215. { (exit 1); exit 1; }; }
  13216. elif test "$cf_cv_hashed_db_libs" != default ; then
  13217. LIBS="-l$cf_cv_hashed_db_libs $LIBS"
  13218. fi
  13219. fi
  13220. else
  13221. { { echo "$as_me:14665: error: Cannot find db.h" >&5
  13222. echo "$as_me: error: Cannot find db.h" >&2;}
  13223. { (exit 1); exit 1; }; }
  13224. fi
  13225. fi
  13226. if test -z "$cf_user_CFLAGS" && test "$with_no_leaks" = no ; then
  13227. CFLAGS=`echo ${CFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
  13228. CXXFLAGS=`echo ${CXXFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
  13229. fi
  13230. # Just in case, check if the C compiler has a bool type.
  13231. echo "$as_me:14680: checking if we should include stdbool.h" >&5
  13232. echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
  13233. if test "${cf_cv_header_stdbool_h+set}" = set; then
  13234. echo $ECHO_N "(cached) $ECHO_C" >&6
  13235. else
  13236. cat >conftest.$ac_ext <<_ACEOF
  13237. #line 14688 "configure"
  13238. #include "confdefs.h"
  13239. int
  13240. main ()
  13241. {
  13242. bool foo = false
  13243. ;
  13244. return 0;
  13245. }
  13246. _ACEOF
  13247. rm -f conftest.$ac_objext
  13248. if { (eval echo "$as_me:14700: \"$ac_compile\"") >&5
  13249. (eval $ac_compile) 2>&5
  13250. ac_status=$?
  13251. echo "$as_me:14703: \$? = $ac_status" >&5
  13252. (exit $ac_status); } &&
  13253. { ac_try='test -s conftest.$ac_objext'
  13254. { (eval echo "$as_me:14706: \"$ac_try\"") >&5
  13255. (eval $ac_try) 2>&5
  13256. ac_status=$?
  13257. echo "$as_me:14709: \$? = $ac_status" >&5
  13258. (exit $ac_status); }; }; then
  13259. cf_cv_header_stdbool_h=0
  13260. else
  13261. echo "$as_me: failed program was:" >&5
  13262. cat conftest.$ac_ext >&5
  13263. cat >conftest.$ac_ext <<_ACEOF
  13264. #line 14716 "configure"
  13265. #include "confdefs.h"
  13266. #ifndef __BEOS__
  13267. #include <stdbool.h>
  13268. #endif
  13269. int
  13270. main ()
  13271. {
  13272. bool foo = false
  13273. ;
  13274. return 0;
  13275. }
  13276. _ACEOF
  13277. rm -f conftest.$ac_objext
  13278. if { (eval echo "$as_me:14732: \"$ac_compile\"") >&5
  13279. (eval $ac_compile) 2>&5
  13280. ac_status=$?
  13281. echo "$as_me:14735: \$? = $ac_status" >&5
  13282. (exit $ac_status); } &&
  13283. { ac_try='test -s conftest.$ac_objext'
  13284. { (eval echo "$as_me:14738: \"$ac_try\"") >&5
  13285. (eval $ac_try) 2>&5
  13286. ac_status=$?
  13287. echo "$as_me:14741: \$? = $ac_status" >&5
  13288. (exit $ac_status); }; }; then
  13289. cf_cv_header_stdbool_h=1
  13290. else
  13291. echo "$as_me: failed program was:" >&5
  13292. cat conftest.$ac_ext >&5
  13293. cf_cv_header_stdbool_h=0
  13294. fi
  13295. rm -f conftest.$ac_objext conftest.$ac_ext
  13296. fi
  13297. rm -f conftest.$ac_objext conftest.$ac_ext
  13298. fi
  13299. if test "$cf_cv_header_stdbool_h" = 1
  13300. then echo "$as_me:14755: result: yes" >&5
  13301. echo "${ECHO_T}yes" >&6
  13302. else echo "$as_me:14757: result: no" >&5
  13303. echo "${ECHO_T}no" >&6
  13304. fi
  13305. echo "$as_me:14761: checking for builtin bool type" >&5
  13306. echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
  13307. if test "${cf_cv_cc_bool_type+set}" = set; then
  13308. echo $ECHO_N "(cached) $ECHO_C" >&6
  13309. else
  13310. cat >conftest.$ac_ext <<_ACEOF
  13311. #line 14769 "configure"
  13312. #include "confdefs.h"
  13313. #include <stdio.h>
  13314. #include <sys/types.h>
  13315. int
  13316. main ()
  13317. {
  13318. bool x = false
  13319. ;
  13320. return 0;
  13321. }
  13322. _ACEOF
  13323. rm -f conftest.$ac_objext
  13324. if { (eval echo "$as_me:14784: \"$ac_compile\"") >&5
  13325. (eval $ac_compile) 2>&5
  13326. ac_status=$?
  13327. echo "$as_me:14787: \$? = $ac_status" >&5
  13328. (exit $ac_status); } &&
  13329. { ac_try='test -s conftest.$ac_objext'
  13330. { (eval echo "$as_me:14790: \"$ac_try\"") >&5
  13331. (eval $ac_try) 2>&5
  13332. ac_status=$?
  13333. echo "$as_me:14793: \$? = $ac_status" >&5
  13334. (exit $ac_status); }; }; then
  13335. cf_cv_cc_bool_type=1
  13336. else
  13337. echo "$as_me: failed program was:" >&5
  13338. cat conftest.$ac_ext >&5
  13339. cf_cv_cc_bool_type=0
  13340. fi
  13341. rm -f conftest.$ac_objext conftest.$ac_ext
  13342. fi
  13343. if test "$cf_cv_cc_bool_type" = 1
  13344. then echo "$as_me:14806: result: yes" >&5
  13345. echo "${ECHO_T}yes" >&6
  13346. else echo "$as_me:14808: result: no" >&5
  13347. echo "${ECHO_T}no" >&6
  13348. fi
  13349. # Check for C++ compiler characteristics (and ensure that it's there!)
  13350. if test -n "$CXX" ; then
  13351. ac_ext=cc
  13352. ac_cpp='$CXXCPP $CPPFLAGS'
  13353. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13354. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13355. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13356. ac_main_return=return
  13357. if test -n "$GXX" ; then
  13358. case $cf_cv_system_name in #(vi
  13359. os2*) #(vi
  13360. cf_stdcpp_libname=stdcpp
  13361. ;;
  13362. *)
  13363. cf_stdcpp_libname=stdc++
  13364. ;;
  13365. esac
  13366. echo "$as_me:14830: checking for library $cf_stdcpp_libname" >&5
  13367. echo $ECHO_N "checking for library $cf_stdcpp_libname... $ECHO_C" >&6
  13368. if test "${cf_cv_libstdcpp+set}" = set; then
  13369. echo $ECHO_N "(cached) $ECHO_C" >&6
  13370. else
  13371. cf_save="$LIBS"
  13372. LIBS="$LIBS -l$cf_stdcpp_libname"
  13373. cat >conftest.$ac_ext <<_ACEOF
  13374. #line 14839 "configure"
  13375. #include "confdefs.h"
  13376. #include <strstream.h>
  13377. int
  13378. main ()
  13379. {
  13380. char buf[80];
  13381. strstreambuf foo(buf, sizeof(buf))
  13382. ;
  13383. return 0;
  13384. }
  13385. _ACEOF
  13386. rm -f conftest.$ac_objext conftest$ac_exeext
  13387. if { (eval echo "$as_me:14855: \"$ac_link\"") >&5
  13388. (eval $ac_link) 2>&5
  13389. ac_status=$?
  13390. echo "$as_me:14858: \$? = $ac_status" >&5
  13391. (exit $ac_status); } &&
  13392. { ac_try='test -s conftest$ac_exeext'
  13393. { (eval echo "$as_me:14861: \"$ac_try\"") >&5
  13394. (eval $ac_try) 2>&5
  13395. ac_status=$?
  13396. echo "$as_me:14864: \$? = $ac_status" >&5
  13397. (exit $ac_status); }; }; then
  13398. cf_cv_libstdcpp=yes
  13399. else
  13400. echo "$as_me: failed program was:" >&5
  13401. cat conftest.$ac_ext >&5
  13402. cf_cv_libstdcpp=no
  13403. fi
  13404. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  13405. LIBS="$cf_save"
  13406. fi
  13407. echo "$as_me:14876: result: $cf_cv_libstdcpp" >&5
  13408. echo "${ECHO_T}$cf_cv_libstdcpp" >&6
  13409. test "$cf_cv_libstdcpp" = yes && CXXLIBS="$CXXLIBS -l$cf_stdcpp_libname"
  13410. fi
  13411. echo "$as_me:14881: checking whether $CXX understands -c and -o together" >&5
  13412. echo $ECHO_N "checking whether $CXX understands -c and -o together... $ECHO_C" >&6
  13413. if test "${cf_cv_prog_CXX_c_o+set}" = set; then
  13414. echo $ECHO_N "(cached) $ECHO_C" >&6
  13415. else
  13416. cat > conftest.$ac_ext <<CF_EOF
  13417. #include <stdio.h>
  13418. int main()
  13419. {
  13420. ${cf_cv_main_return:-return}(0);
  13421. }
  13422. CF_EOF
  13423. # We do the test twice because some compilers refuse to overwrite an
  13424. # existing .o file with -o, though they will create one.
  13425. ac_try='$CXX -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  13426. if { (eval echo "$as_me:14897: \"$ac_try\"") >&5
  13427. (eval $ac_try) 2>&5
  13428. ac_status=$?
  13429. echo "$as_me:14900: \$? = $ac_status" >&5
  13430. (exit $ac_status); } &&
  13431. test -f conftest2.$ac_objext && { (eval echo "$as_me:14902: \"$ac_try\"") >&5
  13432. (eval $ac_try) 2>&5
  13433. ac_status=$?
  13434. echo "$as_me:14905: \$? = $ac_status" >&5
  13435. (exit $ac_status); };
  13436. then
  13437. eval cf_cv_prog_CXX_c_o=yes
  13438. else
  13439. eval cf_cv_prog_CXX_c_o=no
  13440. fi
  13441. rm -f conftest*
  13442. fi
  13443. if test $cf_cv_prog_CXX_c_o = yes; then
  13444. echo "$as_me:14916: result: yes" >&5
  13445. echo "${ECHO_T}yes" >&6
  13446. else
  13447. echo "$as_me:14919: result: no" >&5
  13448. echo "${ECHO_T}no" >&6
  13449. fi
  13450. case $GXX_VERSION in
  13451. 1*|2.0-6*)
  13452. cf_cxx_library=yes
  13453. ;;
  13454. *-2.7*|2.7*)
  13455. cf_cxx_library=unknown
  13456. case $cf_cv_system_name in #(vi
  13457. os2*) #(vi
  13458. cf_gpp_libname=gpp
  13459. ;;
  13460. *)
  13461. cf_gpp_libname=g++
  13462. ;;
  13463. esac
  13464. if test "$GXX" = yes; then
  13465. echo "$as_me:14939: checking for lib$cf_gpp_libname" >&5
  13466. echo $ECHO_N "checking for lib$cf_gpp_libname... $ECHO_C" >&6
  13467. cf_save="$LIBS"
  13468. LIBS="$LIBS -l$cf_gpp_libname"
  13469. cat >conftest.$ac_ext <<_ACEOF
  13470. #line 14944 "configure"
  13471. #include "confdefs.h"
  13472. #include <$cf_gpp_libname/builtin.h>
  13473. int
  13474. main ()
  13475. {
  13476. two_arg_error_handler_t foo2 = lib_error_handler
  13477. ;
  13478. return 0;
  13479. }
  13480. _ACEOF
  13481. rm -f conftest.$ac_objext conftest$ac_exeext
  13482. if { (eval echo "$as_me:14958: \"$ac_link\"") >&5
  13483. (eval $ac_link) 2>&5
  13484. ac_status=$?
  13485. echo "$as_me:14961: \$? = $ac_status" >&5
  13486. (exit $ac_status); } &&
  13487. { ac_try='test -s conftest$ac_exeext'
  13488. { (eval echo "$as_me:14964: \"$ac_try\"") >&5
  13489. (eval $ac_try) 2>&5
  13490. ac_status=$?
  13491. echo "$as_me:14967: \$? = $ac_status" >&5
  13492. (exit $ac_status); }; }; then
  13493. cf_cxx_library=yes
  13494. CXXLIBS="$CXXLIBS -l$cf_gpp_libname"
  13495. if test "$cf_gpp_libname" = cpp ; then
  13496. cat >>confdefs.h <<\EOF
  13497. #define HAVE_GPP_BUILTIN_H 1
  13498. EOF
  13499. else
  13500. cat >>confdefs.h <<\EOF
  13501. #define HAVE_GXX_BUILTIN_H 1
  13502. EOF
  13503. fi
  13504. else
  13505. echo "$as_me: failed program was:" >&5
  13506. cat conftest.$ac_ext >&5
  13507. cat >conftest.$ac_ext <<_ACEOF
  13508. #line 14986 "configure"
  13509. #include "confdefs.h"
  13510. #include <builtin.h>
  13511. int
  13512. main ()
  13513. {
  13514. two_arg_error_handler_t foo2 = lib_error_handler
  13515. ;
  13516. return 0;
  13517. }
  13518. _ACEOF
  13519. rm -f conftest.$ac_objext conftest$ac_exeext
  13520. if { (eval echo "$as_me:15000: \"$ac_link\"") >&5
  13521. (eval $ac_link) 2>&5
  13522. ac_status=$?
  13523. echo "$as_me:15003: \$? = $ac_status" >&5
  13524. (exit $ac_status); } &&
  13525. { ac_try='test -s conftest$ac_exeext'
  13526. { (eval echo "$as_me:15006: \"$ac_try\"") >&5
  13527. (eval $ac_try) 2>&5
  13528. ac_status=$?
  13529. echo "$as_me:15009: \$? = $ac_status" >&5
  13530. (exit $ac_status); }; }; then
  13531. cf_cxx_library=yes
  13532. CXXLIBS="$CXXLIBS -l$cf_gpp_libname"
  13533. cat >>confdefs.h <<\EOF
  13534. #define HAVE_BUILTIN_H 1
  13535. EOF
  13536. else
  13537. echo "$as_me: failed program was:" >&5
  13538. cat conftest.$ac_ext >&5
  13539. cf_cxx_library=no
  13540. fi
  13541. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  13542. fi
  13543. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  13544. LIBS="$cf_save"
  13545. echo "$as_me:15026: result: $cf_cxx_library" >&5
  13546. echo "${ECHO_T}$cf_cxx_library" >&6
  13547. fi
  13548. ;;
  13549. *)
  13550. cf_cxx_library=no
  13551. ;;
  13552. esac
  13553. ac_ext=cc
  13554. ac_cpp='$CXXCPP $CPPFLAGS'
  13555. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13556. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13557. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13558. ac_main_return=return
  13559. echo "$as_me:15042: checking how to run the C++ preprocessor" >&5
  13560. echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
  13561. if test -z "$CXXCPP"; then
  13562. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  13563. echo $ECHO_N "(cached) $ECHO_C" >&6
  13564. else
  13565. # Double quotes because CXXCPP needs to be expanded
  13566. for CXXCPP in "$CXX -E" "/lib/cpp"
  13567. do
  13568. ac_preproc_ok=false
  13569. for ac_cxx_preproc_warn_flag in '' yes
  13570. do
  13571. # Use a header file that comes with gcc, so configuring glibc
  13572. # with a fresh cross-compiler works.
  13573. # On the NeXT, cc -E runs the code through the compiler's parser,
  13574. # not just through cpp. "Syntax error" is here to catch this case.
  13575. cat >conftest.$ac_ext <<_ACEOF
  13576. #line 15059 "configure"
  13577. #include "confdefs.h"
  13578. #include <assert.h>
  13579. Syntax error
  13580. _ACEOF
  13581. if { (eval echo "$as_me:15064: \"$ac_cpp conftest.$ac_ext\"") >&5
  13582. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  13583. ac_status=$?
  13584. egrep -v '^ *\+' conftest.er1 >conftest.err
  13585. rm -f conftest.er1
  13586. cat conftest.err >&5
  13587. echo "$as_me:15070: \$? = $ac_status" >&5
  13588. (exit $ac_status); } >/dev/null; then
  13589. if test -s conftest.err; then
  13590. ac_cpp_err=$ac_cxx_preproc_warn_flag
  13591. else
  13592. ac_cpp_err=
  13593. fi
  13594. else
  13595. ac_cpp_err=yes
  13596. fi
  13597. if test -z "$ac_cpp_err"; then
  13598. :
  13599. else
  13600. echo "$as_me: failed program was:" >&5
  13601. cat conftest.$ac_ext >&5
  13602. # Broken: fails on valid input.
  13603. continue
  13604. fi
  13605. rm -f conftest.err conftest.$ac_ext
  13606. # OK, works on sane cases. Now check whether non-existent headers
  13607. # can be detected and how.
  13608. cat >conftest.$ac_ext <<_ACEOF
  13609. #line 15093 "configure"
  13610. #include "confdefs.h"
  13611. #include <ac_nonexistent.h>
  13612. _ACEOF
  13613. if { (eval echo "$as_me:15097: \"$ac_cpp conftest.$ac_ext\"") >&5
  13614. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  13615. ac_status=$?
  13616. egrep -v '^ *\+' conftest.er1 >conftest.err
  13617. rm -f conftest.er1
  13618. cat conftest.err >&5
  13619. echo "$as_me:15103: \$? = $ac_status" >&5
  13620. (exit $ac_status); } >/dev/null; then
  13621. if test -s conftest.err; then
  13622. ac_cpp_err=$ac_cxx_preproc_warn_flag
  13623. else
  13624. ac_cpp_err=
  13625. fi
  13626. else
  13627. ac_cpp_err=yes
  13628. fi
  13629. if test -z "$ac_cpp_err"; then
  13630. # Broken: success on invalid input.
  13631. continue
  13632. else
  13633. echo "$as_me: failed program was:" >&5
  13634. cat conftest.$ac_ext >&5
  13635. # Passes both tests.
  13636. ac_preproc_ok=:
  13637. break
  13638. fi
  13639. rm -f conftest.err conftest.$ac_ext
  13640. done
  13641. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  13642. rm -f conftest.err conftest.$ac_ext
  13643. if $ac_preproc_ok; then
  13644. break
  13645. fi
  13646. done
  13647. ac_cv_prog_CXXCPP=$CXXCPP
  13648. fi
  13649. CXXCPP=$ac_cv_prog_CXXCPP
  13650. else
  13651. ac_cv_prog_CXXCPP=$CXXCPP
  13652. fi
  13653. echo "$as_me:15140: result: $CXXCPP" >&5
  13654. echo "${ECHO_T}$CXXCPP" >&6
  13655. ac_preproc_ok=false
  13656. for ac_cxx_preproc_warn_flag in '' yes
  13657. do
  13658. # Use a header file that comes with gcc, so configuring glibc
  13659. # with a fresh cross-compiler works.
  13660. # On the NeXT, cc -E runs the code through the compiler's parser,
  13661. # not just through cpp. "Syntax error" is here to catch this case.
  13662. cat >conftest.$ac_ext <<_ACEOF
  13663. #line 15150 "configure"
  13664. #include "confdefs.h"
  13665. #include <assert.h>
  13666. Syntax error
  13667. _ACEOF
  13668. if { (eval echo "$as_me:15155: \"$ac_cpp conftest.$ac_ext\"") >&5
  13669. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  13670. ac_status=$?
  13671. egrep -v '^ *\+' conftest.er1 >conftest.err
  13672. rm -f conftest.er1
  13673. cat conftest.err >&5
  13674. echo "$as_me:15161: \$? = $ac_status" >&5
  13675. (exit $ac_status); } >/dev/null; then
  13676. if test -s conftest.err; then
  13677. ac_cpp_err=$ac_cxx_preproc_warn_flag
  13678. else
  13679. ac_cpp_err=
  13680. fi
  13681. else
  13682. ac_cpp_err=yes
  13683. fi
  13684. if test -z "$ac_cpp_err"; then
  13685. :
  13686. else
  13687. echo "$as_me: failed program was:" >&5
  13688. cat conftest.$ac_ext >&5
  13689. # Broken: fails on valid input.
  13690. continue
  13691. fi
  13692. rm -f conftest.err conftest.$ac_ext
  13693. # OK, works on sane cases. Now check whether non-existent headers
  13694. # can be detected and how.
  13695. cat >conftest.$ac_ext <<_ACEOF
  13696. #line 15184 "configure"
  13697. #include "confdefs.h"
  13698. #include <ac_nonexistent.h>
  13699. _ACEOF
  13700. if { (eval echo "$as_me:15188: \"$ac_cpp conftest.$ac_ext\"") >&5
  13701. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  13702. ac_status=$?
  13703. egrep -v '^ *\+' conftest.er1 >conftest.err
  13704. rm -f conftest.er1
  13705. cat conftest.err >&5
  13706. echo "$as_me:15194: \$? = $ac_status" >&5
  13707. (exit $ac_status); } >/dev/null; then
  13708. if test -s conftest.err; then
  13709. ac_cpp_err=$ac_cxx_preproc_warn_flag
  13710. else
  13711. ac_cpp_err=
  13712. fi
  13713. else
  13714. ac_cpp_err=yes
  13715. fi
  13716. if test -z "$ac_cpp_err"; then
  13717. # Broken: success on invalid input.
  13718. continue
  13719. else
  13720. echo "$as_me: failed program was:" >&5
  13721. cat conftest.$ac_ext >&5
  13722. # Passes both tests.
  13723. ac_preproc_ok=:
  13724. break
  13725. fi
  13726. rm -f conftest.err conftest.$ac_ext
  13727. done
  13728. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  13729. rm -f conftest.err conftest.$ac_ext
  13730. if $ac_preproc_ok; then
  13731. :
  13732. else
  13733. { { echo "$as_me:15222: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
  13734. echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
  13735. { (exit 1); exit 1; }; }
  13736. fi
  13737. ac_ext=cc
  13738. ac_cpp='$CXXCPP $CPPFLAGS'
  13739. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13740. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13741. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13742. ac_main_return=return
  13743. for ac_header in iostream typeinfo
  13744. do
  13745. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13746. echo "$as_me:15237: checking for $ac_header" >&5
  13747. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  13748. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  13749. echo $ECHO_N "(cached) $ECHO_C" >&6
  13750. else
  13751. cat >conftest.$ac_ext <<_ACEOF
  13752. #line 15243 "configure"
  13753. #include "confdefs.h"
  13754. #include <$ac_header>
  13755. _ACEOF
  13756. if { (eval echo "$as_me:15247: \"$ac_cpp conftest.$ac_ext\"") >&5
  13757. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  13758. ac_status=$?
  13759. egrep -v '^ *\+' conftest.er1 >conftest.err
  13760. rm -f conftest.er1
  13761. cat conftest.err >&5
  13762. echo "$as_me:15253: \$? = $ac_status" >&5
  13763. (exit $ac_status); } >/dev/null; then
  13764. if test -s conftest.err; then
  13765. ac_cpp_err=$ac_cxx_preproc_warn_flag
  13766. else
  13767. ac_cpp_err=
  13768. fi
  13769. else
  13770. ac_cpp_err=yes
  13771. fi
  13772. if test -z "$ac_cpp_err"; then
  13773. eval "$as_ac_Header=yes"
  13774. else
  13775. echo "$as_me: failed program was:" >&5
  13776. cat conftest.$ac_ext >&5
  13777. eval "$as_ac_Header=no"
  13778. fi
  13779. rm -f conftest.err conftest.$ac_ext
  13780. fi
  13781. echo "$as_me:15272: result: `eval echo '${'$as_ac_Header'}'`" >&5
  13782. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  13783. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  13784. cat >>confdefs.h <<EOF
  13785. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13786. EOF
  13787. fi
  13788. done
  13789. if test x"$ac_cv_header_iostream" = xyes ; then
  13790. echo "$as_me:15283: checking if iostream uses std-namespace" >&5
  13791. echo $ECHO_N "checking if iostream uses std-namespace... $ECHO_C" >&6
  13792. cat >conftest.$ac_ext <<_ACEOF
  13793. #line 15286 "configure"
  13794. #include "confdefs.h"
  13795. #include <iostream>
  13796. using std::endl;
  13797. using std::cerr;
  13798. int
  13799. main ()
  13800. {
  13801. cerr << "testing" << endl;
  13802. ;
  13803. return 0;
  13804. }
  13805. _ACEOF
  13806. rm -f conftest.$ac_objext
  13807. if { (eval echo "$as_me:15303: \"$ac_compile\"") >&5
  13808. (eval $ac_compile) 2>&5
  13809. ac_status=$?
  13810. echo "$as_me:15306: \$? = $ac_status" >&5
  13811. (exit $ac_status); } &&
  13812. { ac_try='test -s conftest.$ac_objext'
  13813. { (eval echo "$as_me:15309: \"$ac_try\"") >&5
  13814. (eval $ac_try) 2>&5
  13815. ac_status=$?
  13816. echo "$as_me:15312: \$? = $ac_status" >&5
  13817. (exit $ac_status); }; }; then
  13818. cf_iostream_namespace=yes
  13819. else
  13820. echo "$as_me: failed program was:" >&5
  13821. cat conftest.$ac_ext >&5
  13822. cf_iostream_namespace=no
  13823. fi
  13824. rm -f conftest.$ac_objext conftest.$ac_ext
  13825. echo "$as_me:15321: result: $cf_iostream_namespace" >&5
  13826. echo "${ECHO_T}$cf_iostream_namespace" >&6
  13827. if test "$cf_iostream_namespace" = yes ; then
  13828. cat >>confdefs.h <<\EOF
  13829. #define IOSTREAM_NAMESPACE 1
  13830. EOF
  13831. fi
  13832. fi
  13833. echo "$as_me:15331: checking if we should include stdbool.h" >&5
  13834. echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
  13835. if test "${cf_cv_header_stdbool_h+set}" = set; then
  13836. echo $ECHO_N "(cached) $ECHO_C" >&6
  13837. else
  13838. cat >conftest.$ac_ext <<_ACEOF
  13839. #line 15339 "configure"
  13840. #include "confdefs.h"
  13841. int
  13842. main ()
  13843. {
  13844. bool foo = false
  13845. ;
  13846. return 0;
  13847. }
  13848. _ACEOF
  13849. rm -f conftest.$ac_objext
  13850. if { (eval echo "$as_me:15351: \"$ac_compile\"") >&5
  13851. (eval $ac_compile) 2>&5
  13852. ac_status=$?
  13853. echo "$as_me:15354: \$? = $ac_status" >&5
  13854. (exit $ac_status); } &&
  13855. { ac_try='test -s conftest.$ac_objext'
  13856. { (eval echo "$as_me:15357: \"$ac_try\"") >&5
  13857. (eval $ac_try) 2>&5
  13858. ac_status=$?
  13859. echo "$as_me:15360: \$? = $ac_status" >&5
  13860. (exit $ac_status); }; }; then
  13861. cf_cv_header_stdbool_h=0
  13862. else
  13863. echo "$as_me: failed program was:" >&5
  13864. cat conftest.$ac_ext >&5
  13865. cat >conftest.$ac_ext <<_ACEOF
  13866. #line 15367 "configure"
  13867. #include "confdefs.h"
  13868. #ifndef __BEOS__
  13869. #include <stdbool.h>
  13870. #endif
  13871. int
  13872. main ()
  13873. {
  13874. bool foo = false
  13875. ;
  13876. return 0;
  13877. }
  13878. _ACEOF
  13879. rm -f conftest.$ac_objext
  13880. if { (eval echo "$as_me:15383: \"$ac_compile\"") >&5
  13881. (eval $ac_compile) 2>&5
  13882. ac_status=$?
  13883. echo "$as_me:15386: \$? = $ac_status" >&5
  13884. (exit $ac_status); } &&
  13885. { ac_try='test -s conftest.$ac_objext'
  13886. { (eval echo "$as_me:15389: \"$ac_try\"") >&5
  13887. (eval $ac_try) 2>&5
  13888. ac_status=$?
  13889. echo "$as_me:15392: \$? = $ac_status" >&5
  13890. (exit $ac_status); }; }; then
  13891. cf_cv_header_stdbool_h=1
  13892. else
  13893. echo "$as_me: failed program was:" >&5
  13894. cat conftest.$ac_ext >&5
  13895. cf_cv_header_stdbool_h=0
  13896. fi
  13897. rm -f conftest.$ac_objext conftest.$ac_ext
  13898. fi
  13899. rm -f conftest.$ac_objext conftest.$ac_ext
  13900. fi
  13901. if test "$cf_cv_header_stdbool_h" = 1
  13902. then echo "$as_me:15406: result: yes" >&5
  13903. echo "${ECHO_T}yes" >&6
  13904. else echo "$as_me:15408: result: no" >&5
  13905. echo "${ECHO_T}no" >&6
  13906. fi
  13907. echo "$as_me:15412: checking for builtin bool type" >&5
  13908. echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
  13909. if test "${cf_cv_builtin_bool+set}" = set; then
  13910. echo $ECHO_N "(cached) $ECHO_C" >&6
  13911. else
  13912. cat >conftest.$ac_ext <<_ACEOF
  13913. #line 15420 "configure"
  13914. #include "confdefs.h"
  13915. #include <stdio.h>
  13916. #include <sys/types.h>
  13917. int
  13918. main ()
  13919. {
  13920. bool x = false
  13921. ;
  13922. return 0;
  13923. }
  13924. _ACEOF
  13925. rm -f conftest.$ac_objext
  13926. if { (eval echo "$as_me:15435: \"$ac_compile\"") >&5
  13927. (eval $ac_compile) 2>&5
  13928. ac_status=$?
  13929. echo "$as_me:15438: \$? = $ac_status" >&5
  13930. (exit $ac_status); } &&
  13931. { ac_try='test -s conftest.$ac_objext'
  13932. { (eval echo "$as_me:15441: \"$ac_try\"") >&5
  13933. (eval $ac_try) 2>&5
  13934. ac_status=$?
  13935. echo "$as_me:15444: \$? = $ac_status" >&5
  13936. (exit $ac_status); }; }; then
  13937. cf_cv_builtin_bool=1
  13938. else
  13939. echo "$as_me: failed program was:" >&5
  13940. cat conftest.$ac_ext >&5
  13941. cf_cv_builtin_bool=0
  13942. fi
  13943. rm -f conftest.$ac_objext conftest.$ac_ext
  13944. fi
  13945. if test "$cf_cv_builtin_bool" = 1
  13946. then echo "$as_me:15457: result: yes" >&5
  13947. echo "${ECHO_T}yes" >&6
  13948. else echo "$as_me:15459: result: no" >&5
  13949. echo "${ECHO_T}no" >&6
  13950. fi
  13951. echo "$as_me:15463: checking for size of bool" >&5
  13952. echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
  13953. if test "${cf_cv_type_of_bool+set}" = set; then
  13954. echo $ECHO_N "(cached) $ECHO_C" >&6
  13955. else
  13956. rm -f cf_test.out
  13957. if test "$cross_compiling" = yes; then
  13958. cf_cv_type_of_bool=unknown
  13959. else
  13960. cat >conftest.$ac_ext <<_ACEOF
  13961. #line 15474 "configure"
  13962. #include "confdefs.h"
  13963. #include <stdlib.h>
  13964. #include <stdio.h>
  13965. #if defined(__cplusplus)
  13966. #ifdef HAVE_GXX_BUILTIN_H
  13967. #include <g++/builtin.h>
  13968. #elif HAVE_GPP_BUILTIN_H
  13969. #include <gpp/builtin.h>
  13970. #elif HAVE_BUILTIN_H
  13971. #include <builtin.h>
  13972. #endif
  13973. #else
  13974. #if $cf_cv_header_stdbool_h
  13975. #include <stdbool.h>
  13976. #endif
  13977. #endif
  13978. main()
  13979. {
  13980. FILE *fp = fopen("cf_test.out", "w");
  13981. if (fp != 0) {
  13982. bool x = true;
  13983. if ((bool)(-x) >= 0)
  13984. fputs("unsigned ", fp);
  13985. if (sizeof(x) == sizeof(int)) fputs("int", fp);
  13986. else if (sizeof(x) == sizeof(char)) fputs("char", fp);
  13987. else if (sizeof(x) == sizeof(short))fputs("short",fp);
  13988. else if (sizeof(x) == sizeof(long)) fputs("long", fp);
  13989. fclose(fp);
  13990. }
  13991. ${cf_cv_main_return:-return}(0);
  13992. }
  13993. _ACEOF
  13994. rm -f conftest$ac_exeext
  13995. if { (eval echo "$as_me:15516: \"$ac_link\"") >&5
  13996. (eval $ac_link) 2>&5
  13997. ac_status=$?
  13998. echo "$as_me:15519: \$? = $ac_status" >&5
  13999. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  14000. { (eval echo "$as_me:15521: \"$ac_try\"") >&5
  14001. (eval $ac_try) 2>&5
  14002. ac_status=$?
  14003. echo "$as_me:15524: \$? = $ac_status" >&5
  14004. (exit $ac_status); }; }; then
  14005. cf_cv_type_of_bool=`cat cf_test.out`
  14006. if test -z "$cf_cv_type_of_bool"; then
  14007. cf_cv_type_of_bool=unknown
  14008. fi
  14009. else
  14010. echo "$as_me: program exited with status $ac_status" >&5
  14011. echo "$as_me: failed program was:" >&5
  14012. cat conftest.$ac_ext >&5
  14013. cf_cv_type_of_bool=unknown
  14014. fi
  14015. rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  14016. fi
  14017. fi
  14018. rm -f cf_test.out
  14019. echo "$as_me:15542: result: $cf_cv_type_of_bool" >&5
  14020. echo "${ECHO_T}$cf_cv_type_of_bool" >&6
  14021. if test "$cf_cv_type_of_bool" = unknown ; then
  14022. case .$NCURSES_BOOL in #(vi
  14023. .auto|.) NCURSES_BOOL=unsigned;;
  14024. esac
  14025. { echo "$as_me:15548: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
  14026. echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
  14027. cf_cv_type_of_bool=$NCURSES_BOOL
  14028. fi
  14029. echo "$as_me:15553: checking for special defines needed for etip.h" >&5
  14030. echo $ECHO_N "checking for special defines needed for etip.h... $ECHO_C" >&6
  14031. cf_save_CXXFLAGS="$CXXFLAGS"
  14032. cf_result="none"
  14033. for cf_math in "" MATH_H
  14034. do
  14035. for cf_excp in "" MATH_EXCEPTION
  14036. do
  14037. CXXFLAGS="$cf_save_CXXFLAGS -I${srcdir}/c++ -I${srcdir}/menu -I${srcdir}/include"
  14038. test -n "$cf_math" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_math}"
  14039. test -n "$cf_excp" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_excp}"
  14040. cat >conftest.$ac_ext <<_ACEOF
  14041. #line 15565 "configure"
  14042. #include "confdefs.h"
  14043. #include <etip.h.in>
  14044. int
  14045. main ()
  14046. {
  14047. ;
  14048. return 0;
  14049. }
  14050. _ACEOF
  14051. rm -f conftest.$ac_objext
  14052. if { (eval echo "$as_me:15579: \"$ac_compile\"") >&5
  14053. (eval $ac_compile) 2>&5
  14054. ac_status=$?
  14055. echo "$as_me:15582: \$? = $ac_status" >&5
  14056. (exit $ac_status); } &&
  14057. { ac_try='test -s conftest.$ac_objext'
  14058. { (eval echo "$as_me:15585: \"$ac_try\"") >&5
  14059. (eval $ac_try) 2>&5
  14060. ac_status=$?
  14061. echo "$as_me:15588: \$? = $ac_status" >&5
  14062. (exit $ac_status); }; }; then
  14063. test -n "$cf_math" && cat >>confdefs.h <<EOF
  14064. #define ETIP_NEEDS_${cf_math} 1
  14065. EOF
  14066. test -n "$cf_excp" && cat >>confdefs.h <<EOF
  14067. #define ETIP_NEEDS_${cf_excp} 1
  14068. EOF
  14069. cf_result="$cf_math $cf_excp"
  14070. break
  14071. else
  14072. echo "$as_me: failed program was:" >&5
  14073. cat conftest.$ac_ext >&5
  14074. fi
  14075. rm -f conftest.$ac_objext conftest.$ac_ext
  14076. done
  14077. done
  14078. echo "$as_me:15609: result: $cf_result" >&5
  14079. echo "${ECHO_T}$cf_result" >&6
  14080. CXXFLAGS="$cf_save_CXXFLAGS"
  14081. if test -n "$CXX"; then
  14082. echo "$as_me:15614: checking if $CXX accepts parameter initialization" >&5
  14083. echo $ECHO_N "checking if $CXX accepts parameter initialization... $ECHO_C" >&6
  14084. if test "${cf_cv_cpp_param_init+set}" = set; then
  14085. echo $ECHO_N "(cached) $ECHO_C" >&6
  14086. else
  14087. ac_ext=cc
  14088. ac_cpp='$CXXCPP $CPPFLAGS'
  14089. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14090. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14091. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  14092. ac_main_return=return
  14093. if test "$cross_compiling" = yes; then
  14094. cf_cv_cpp_param_init=unknown
  14095. else
  14096. cat >conftest.$ac_ext <<_ACEOF
  14097. #line 15631 "configure"
  14098. #include "confdefs.h"
  14099. class TEST {
  14100. private:
  14101. int value;
  14102. public:
  14103. TEST(int x = 1);
  14104. ~TEST();
  14105. };
  14106. TEST::TEST(int x = 1) // some compilers do not like second initializer
  14107. {
  14108. value = x;
  14109. }
  14110. void main() { }
  14111. _ACEOF
  14112. rm -f conftest$ac_exeext
  14113. if { (eval echo "$as_me:15650: \"$ac_link\"") >&5
  14114. (eval $ac_link) 2>&5
  14115. ac_status=$?
  14116. echo "$as_me:15653: \$? = $ac_status" >&5
  14117. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  14118. { (eval echo "$as_me:15655: \"$ac_try\"") >&5
  14119. (eval $ac_try) 2>&5
  14120. ac_status=$?
  14121. echo "$as_me:15658: \$? = $ac_status" >&5
  14122. (exit $ac_status); }; }; then
  14123. cf_cv_cpp_param_init=yes
  14124. else
  14125. echo "$as_me: program exited with status $ac_status" >&5
  14126. echo "$as_me: failed program was:" >&5
  14127. cat conftest.$ac_ext >&5
  14128. cf_cv_cpp_param_init=no
  14129. fi
  14130. rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  14131. fi
  14132. ac_ext=cc
  14133. ac_cpp='$CXXCPP $CPPFLAGS'
  14134. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14135. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14136. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  14137. ac_main_return=return
  14138. fi
  14139. echo "$as_me:15677: result: $cf_cv_cpp_param_init" >&5
  14140. echo "${ECHO_T}$cf_cv_cpp_param_init" >&6
  14141. fi
  14142. test "$cf_cv_cpp_param_init" = yes && cat >>confdefs.h <<\EOF
  14143. #define CPP_HAS_PARAM_INIT 1
  14144. EOF
  14145. if test -n "$CXX"; then
  14146. echo "$as_me:15686: checking if $CXX accepts static_cast" >&5
  14147. echo $ECHO_N "checking if $CXX accepts static_cast... $ECHO_C" >&6
  14148. if test "${cf_cv_cpp_static_cast+set}" = set; then
  14149. echo $ECHO_N "(cached) $ECHO_C" >&6
  14150. else
  14151. ac_ext=cc
  14152. ac_cpp='$CXXCPP $CPPFLAGS'
  14153. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14154. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14155. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  14156. ac_main_return=return
  14157. cat >conftest.$ac_ext <<_ACEOF
  14158. #line 15700 "configure"
  14159. #include "confdefs.h"
  14160. class NCursesPanel
  14161. {
  14162. public:
  14163. NCursesPanel(int nlines,
  14164. int ncols,
  14165. int begin_y = 0,
  14166. int begin_x = 0)
  14167. {
  14168. }
  14169. ~NCursesPanel();
  14170. };
  14171. template<class T> class NCursesUserPanel : public NCursesPanel
  14172. {
  14173. public:
  14174. NCursesUserPanel (int nlines,
  14175. int ncols,
  14176. int begin_y = 0,
  14177. int begin_x = 0,
  14178. const T* p_UserData = static_cast<T*>(0))
  14179. : NCursesPanel (nlines, ncols, begin_y, begin_x)
  14180. {
  14181. };
  14182. NCursesUserPanel(const T* p_UserData = static_cast<T*>(0)) : NCursesPanel()
  14183. {
  14184. };
  14185. virtual ~NCursesUserPanel() {};
  14186. };
  14187. int
  14188. main ()
  14189. {
  14190. const char* p_UserData = static_cast<char*>(0)
  14191. ;
  14192. return 0;
  14193. }
  14194. _ACEOF
  14195. rm -f conftest.$ac_objext
  14196. if { (eval echo "$as_me:15744: \"$ac_compile\"") >&5
  14197. (eval $ac_compile) 2>&5
  14198. ac_status=$?
  14199. echo "$as_me:15747: \$? = $ac_status" >&5
  14200. (exit $ac_status); } &&
  14201. { ac_try='test -s conftest.$ac_objext'
  14202. { (eval echo "$as_me:15750: \"$ac_try\"") >&5
  14203. (eval $ac_try) 2>&5
  14204. ac_status=$?
  14205. echo "$as_me:15753: \$? = $ac_status" >&5
  14206. (exit $ac_status); }; }; then
  14207. cf_cv_cpp_static_cast=yes
  14208. else
  14209. echo "$as_me: failed program was:" >&5
  14210. cat conftest.$ac_ext >&5
  14211. cf_cv_cpp_static_cast=no
  14212. fi
  14213. rm -f conftest.$ac_objext conftest.$ac_ext
  14214. ac_ext=cc
  14215. ac_cpp='$CXXCPP $CPPFLAGS'
  14216. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14217. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14218. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  14219. ac_main_return=return
  14220. fi
  14221. echo "$as_me:15771: result: $cf_cv_cpp_static_cast" >&5
  14222. echo "${ECHO_T}$cf_cv_cpp_static_cast" >&6
  14223. fi
  14224. test "$cf_cv_cpp_static_cast" = yes && cat >>confdefs.h <<\EOF
  14225. #define CPP_HAS_STATIC_CAST 1
  14226. EOF
  14227. CXX_AR='$(AR)'
  14228. CXX_AR_OPTS='$(AR_OPTS)'
  14229. case $cf_cv_system_name in #(vi
  14230. irix*) #(vi
  14231. if test "$GXX" != yes ; then
  14232. CXX_AR='$(CXX)'
  14233. CXX_AR_OPTS='-ar -o'
  14234. fi
  14235. ;;
  14236. sco3.2v5*) #(vi
  14237. CXXLDFLAGS="-u main"
  14238. ;;
  14239. solaris2*)
  14240. if test "$GXX" != yes ; then
  14241. CXX_AR='$(CXX)'
  14242. CXX_AR_OPTS='-xar -o'
  14243. fi
  14244. ;;
  14245. esac
  14246. else
  14247. cf_cxx_library=no
  14248. cf_cv_builtin_bool=1
  14249. # Just because we are not configuring against C++ right now does not
  14250. # mean that a user will not want to use C++. Some distributors disable
  14251. # the C++ portion of this configuration as a shortcut (or just to avoid
  14252. # compiling the demo in the c++ directory). So we need a reasonable
  14253. # default for the 'bool' type.
  14254. #
  14255. # Caveat: since the storage of the bool type is not standardized, it
  14256. # may change.
  14257. if test "$NCURSES_BOOL" != auto ; then
  14258. cf_cv_type_of_bool=$NCURSES_BOOL
  14259. cf_cv_header_stdbool_h=0
  14260. else
  14261. if test "$cf_cv_header_stdbool_h" = 1 ; then
  14262. echo "$as_me:15819: checking for size of bool" >&5
  14263. echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
  14264. if test "${cf_cv_type_of_bool+set}" = set; then
  14265. echo $ECHO_N "(cached) $ECHO_C" >&6
  14266. else
  14267. rm -f cf_test.out
  14268. if test "$cross_compiling" = yes; then
  14269. cf_cv_type_of_bool=unknown
  14270. else
  14271. cat >conftest.$ac_ext <<_ACEOF
  14272. #line 15830 "configure"
  14273. #include "confdefs.h"
  14274. #include <stdlib.h>
  14275. #include <stdio.h>
  14276. #if defined(__cplusplus)
  14277. #ifdef HAVE_GXX_BUILTIN_H
  14278. #include <g++/builtin.h>
  14279. #elif HAVE_GPP_BUILTIN_H
  14280. #include <gpp/builtin.h>
  14281. #elif HAVE_BUILTIN_H
  14282. #include <builtin.h>
  14283. #endif
  14284. #else
  14285. #if $cf_cv_header_stdbool_h
  14286. #include <stdbool.h>
  14287. #endif
  14288. #endif
  14289. main()
  14290. {
  14291. FILE *fp = fopen("cf_test.out", "w");
  14292. if (fp != 0) {
  14293. bool x = true;
  14294. if ((bool)(-x) >= 0)
  14295. fputs("unsigned ", fp);
  14296. if (sizeof(x) == sizeof(int)) fputs("int", fp);
  14297. else if (sizeof(x) == sizeof(char)) fputs("char", fp);
  14298. else if (sizeof(x) == sizeof(short))fputs("short",fp);
  14299. else if (sizeof(x) == sizeof(long)) fputs("long", fp);
  14300. fclose(fp);
  14301. }
  14302. ${cf_cv_main_return:-return}(0);
  14303. }
  14304. _ACEOF
  14305. rm -f conftest$ac_exeext
  14306. if { (eval echo "$as_me:15872: \"$ac_link\"") >&5
  14307. (eval $ac_link) 2>&5
  14308. ac_status=$?
  14309. echo "$as_me:15875: \$? = $ac_status" >&5
  14310. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  14311. { (eval echo "$as_me:15877: \"$ac_try\"") >&5
  14312. (eval $ac_try) 2>&5
  14313. ac_status=$?
  14314. echo "$as_me:15880: \$? = $ac_status" >&5
  14315. (exit $ac_status); }; }; then
  14316. cf_cv_type_of_bool=`cat cf_test.out`
  14317. if test -z "$cf_cv_type_of_bool"; then
  14318. cf_cv_type_of_bool=unknown
  14319. fi
  14320. else
  14321. echo "$as_me: program exited with status $ac_status" >&5
  14322. echo "$as_me: failed program was:" >&5
  14323. cat conftest.$ac_ext >&5
  14324. cf_cv_type_of_bool=unknown
  14325. fi
  14326. rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  14327. fi
  14328. fi
  14329. rm -f cf_test.out
  14330. echo "$as_me:15898: result: $cf_cv_type_of_bool" >&5
  14331. echo "${ECHO_T}$cf_cv_type_of_bool" >&6
  14332. if test "$cf_cv_type_of_bool" = unknown ; then
  14333. case .$NCURSES_BOOL in #(vi
  14334. .auto|.) NCURSES_BOOL=unsigned;;
  14335. esac
  14336. { echo "$as_me:15904: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
  14337. echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
  14338. cf_cv_type_of_bool=$NCURSES_BOOL
  14339. fi
  14340. else
  14341. echo "$as_me:15910: checking for fallback type of bool" >&5
  14342. echo $ECHO_N "checking for fallback type of bool... $ECHO_C" >&6
  14343. case "$host_cpu" in #(vi
  14344. i?86) cf_cv_type_of_bool=char ;; #(vi
  14345. *) cf_cv_type_of_bool=int ;;
  14346. esac
  14347. echo "$as_me:15916: result: $cf_cv_type_of_bool" >&5
  14348. echo "${ECHO_T}$cf_cv_type_of_bool" >&6
  14349. fi
  14350. fi
  14351. fi
  14352. # If the C compiler did not declare bool, and we did not determine that the C++
  14353. # compiler does not declare bool, turn on an ifdef in curses.h that makes the
  14354. # ncurses library use the same type as C++ bool. Note that this allows one to
  14355. # specify the type of bool in a configure-script option and postpone
  14356. # integration with the C++ compiler provided that the types are compatible.
  14357. USE_CXX_BOOL=1
  14358. if test $cf_cv_cc_bool_type = 1
  14359. then
  14360. # oops: C has a bool. Unlikely, but C++ could differ.
  14361. USE_CXX_BOOL=0
  14362. elif test $cf_cv_builtin_bool = 0
  14363. then
  14364. # C++ has no bool
  14365. USE_CXX_BOOL=0
  14366. else
  14367. # this is the normal case
  14368. USE_CXX_BOOL='defined(__cplusplus)'
  14369. fi
  14370. if test -f "${srcdir}/Ada95/Makefile.in" ; then
  14371. if test "$cf_with_ada" != "no" ; then
  14372. if test "$with_libtool" != "no"; then
  14373. { echo "$as_me:15945: WARNING: libtool does not support Ada - disabling feature" >&5
  14374. echo "$as_me: WARNING: libtool does not support Ada - disabling feature" >&2;}
  14375. cf_with_ada=no
  14376. fi
  14377. fi
  14378. if test "$cf_with_ada" != "no" ; then
  14379. cf_ada_make=gnatmake
  14380. # Extract the first word of "$cf_ada_make", so it can be a program name with args.
  14381. set dummy $cf_ada_make; ac_word=$2
  14382. echo "$as_me:15955: checking for $ac_word" >&5
  14383. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  14384. if test "${ac_cv_prog_gnat_exists+set}" = set; then
  14385. echo $ECHO_N "(cached) $ECHO_C" >&6
  14386. else
  14387. if test -n "$gnat_exists"; then
  14388. ac_cv_prog_gnat_exists="$gnat_exists" # Let the user override the test.
  14389. else
  14390. ac_save_IFS=$IFS; IFS=$ac_path_separator
  14391. ac_dummy="$PATH"
  14392. for ac_dir in $ac_dummy; do
  14393. IFS=$ac_save_IFS
  14394. test -z "$ac_dir" && ac_dir=.
  14395. $as_executable_p "$ac_dir/$ac_word" || continue
  14396. ac_cv_prog_gnat_exists="yes"
  14397. echo "$as_me:15970: found $ac_dir/$ac_word" >&5
  14398. break
  14399. done
  14400. test -z "$ac_cv_prog_gnat_exists" && ac_cv_prog_gnat_exists="no"
  14401. fi
  14402. fi
  14403. gnat_exists=$ac_cv_prog_gnat_exists
  14404. if test -n "$gnat_exists"; then
  14405. echo "$as_me:15979: result: $gnat_exists" >&5
  14406. echo "${ECHO_T}$gnat_exists" >&6
  14407. else
  14408. echo "$as_me:15982: result: no" >&5
  14409. echo "${ECHO_T}no" >&6
  14410. fi
  14411. if test "$ac_cv_prog_gnat_exists" = no; then
  14412. cf_ada_make=
  14413. else
  14414. echo "$as_me:15990: checking for gnat version" >&5
  14415. echo $ECHO_N "checking for gnat version... $ECHO_C" >&6
  14416. cf_gnat_version=`${cf_ada_make-gnatmake} -v 2>&1 | grep '[0-9].[0-9][0-9]*' |\
  14417. sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
  14418. echo "$as_me:15994: result: $cf_gnat_version" >&5
  14419. echo "${ECHO_T}$cf_gnat_version" >&6
  14420. case $cf_gnat_version in
  14421. 3.1[1-9]*|3.[2-9]*|[4-9].*)
  14422. cf_cv_prog_gnat_correct=yes
  14423. ;;
  14424. *) echo Unsupported GNAT version $cf_gnat_version. Required is 3.11 or better. Disabling Ada95 binding.
  14425. cf_cv_prog_gnat_correct=no
  14426. ;;
  14427. esac
  14428. case $cf_gnat_version in
  14429. 3.[1-9]*|[4-9].*)
  14430. cf_compile_generics=generics
  14431. cf_generic_objects="\${GENOBJS}"
  14432. ;;
  14433. *) cf_compile_generics=
  14434. cf_generic_objects=
  14435. ;;
  14436. esac
  14437. # Extract the first word of "m4", so it can be a program name with args.
  14438. set dummy m4; ac_word=$2
  14439. echo "$as_me:16017: checking for $ac_word" >&5
  14440. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  14441. if test "${ac_cv_prog_M4_exists+set}" = set; then
  14442. echo $ECHO_N "(cached) $ECHO_C" >&6
  14443. else
  14444. if test -n "$M4_exists"; then
  14445. ac_cv_prog_M4_exists="$M4_exists" # Let the user override the test.
  14446. else
  14447. ac_save_IFS=$IFS; IFS=$ac_path_separator
  14448. ac_dummy="$PATH"
  14449. for ac_dir in $ac_dummy; do
  14450. IFS=$ac_save_IFS
  14451. test -z "$ac_dir" && ac_dir=.
  14452. $as_executable_p "$ac_dir/$ac_word" || continue
  14453. ac_cv_prog_M4_exists="yes"
  14454. echo "$as_me:16032: found $ac_dir/$ac_word" >&5
  14455. break
  14456. done
  14457. test -z "$ac_cv_prog_M4_exists" && ac_cv_prog_M4_exists="no"
  14458. fi
  14459. fi
  14460. M4_exists=$ac_cv_prog_M4_exists
  14461. if test -n "$M4_exists"; then
  14462. echo "$as_me:16041: result: $M4_exists" >&5
  14463. echo "${ECHO_T}$M4_exists" >&6
  14464. else
  14465. echo "$as_me:16044: result: no" >&5
  14466. echo "${ECHO_T}no" >&6
  14467. fi
  14468. if test "$ac_cv_prog_M4_exists" = no; then
  14469. cf_cv_prog_gnat_correct=no
  14470. echo Ada95 binding required program m4 not found. Ada95 binding disabled.
  14471. fi
  14472. if test "$cf_cv_prog_gnat_correct" = yes; then
  14473. echo "$as_me:16053: checking if GNAT works" >&5
  14474. echo $ECHO_N "checking if GNAT works... $ECHO_C" >&6
  14475. rm -f conftest*
  14476. cat >>conftest.ads <<CF_EOF
  14477. procedure conftest;
  14478. CF_EOF
  14479. cat >>conftest.adb <<CF_EOF
  14480. with Text_IO;
  14481. with GNAT.OS_Lib;
  14482. procedure conftest is
  14483. begin
  14484. Text_IO.Put ("Hello World");
  14485. Text_IO.New_Line;
  14486. GNAT.OS_Lib.OS_Exit (0);
  14487. end conftest;
  14488. CF_EOF
  14489. if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
  14490. if ( ./conftest 1>&5 2>&1 ) ; then
  14491. cf_cv_prog_gnat_correct=yes
  14492. else
  14493. cf_cv_prog_gnat_correct=no
  14494. fi
  14495. else
  14496. cf_cv_prog_gnat_correct=no
  14497. fi
  14498. rm -f conftest*
  14499. echo "$as_me:16081: result: $cf_cv_prog_gnat_correct" >&5
  14500. echo "${ECHO_T}$cf_cv_prog_gnat_correct" >&6
  14501. fi
  14502. fi
  14503. if test "$cf_cv_prog_gnat_correct" = yes; then
  14504. ADAFLAGS="-O3 -gnatpn $ADAFLAGS"
  14505. echo "$as_me:16088: checking if GNAT pragma Unreferenced works" >&5
  14506. echo $ECHO_N "checking if GNAT pragma Unreferenced works... $ECHO_C" >&6
  14507. rm -f conftest*
  14508. cat >>conftest.ads <<CF_EOF
  14509. procedure conftest;
  14510. CF_EOF
  14511. cat >>conftest.adb <<CF_EOF
  14512. with Text_IO;
  14513. with GNAT.OS_Lib;
  14514. procedure conftest is
  14515. test : Integer;
  14516. pragma Unreferenced (test);
  14517. begin
  14518. test := 1;
  14519. Text_IO.Put ("Hello World");
  14520. Text_IO.New_Line;
  14521. GNAT.OS_Lib.OS_Exit (0);
  14522. end conftest;
  14523. CF_EOF
  14524. if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
  14525. cf_cv_pragma_unreferenced=yes
  14526. else
  14527. cf_cv_pragma_unreferenced=no
  14528. fi
  14529. rm -f conftest*
  14530. echo "$as_me:16115: result: $cf_cv_pragma_unreferenced" >&5
  14531. echo "${ECHO_T}$cf_cv_pragma_unreferenced" >&6
  14532. # if the pragma is supported, use it (needed in the Trace code).
  14533. if test $cf_cv_pragma_unreferenced = yes ; then
  14534. PRAGMA_UNREF=TRUE
  14535. else
  14536. PRAGMA_UNREF=FALSE
  14537. fi
  14538. # Check whether --with-ada-compiler or --without-ada-compiler was given.
  14539. if test "${with_ada_compiler+set}" = set; then
  14540. withval="$with_ada_compiler"
  14541. cf_ada_compiler=$withval
  14542. else
  14543. cf_ada_compiler=gnatmake
  14544. fi;
  14545. cf_ada_package=terminal_interface
  14546. # Check whether --with-ada-include or --without-ada-include was given.
  14547. if test "${with_ada_include+set}" = set; then
  14548. withval="$with_ada_include"
  14549. else
  14550. withval="${ADA_INCLUDE-$prefix/lib/ada/adainclude}"
  14551. fi; if test -n "$prefix/lib/ada/adainclude" ; then
  14552. if test "x$prefix" != xNONE; then
  14553. cf_path_syntax="$prefix"
  14554. else
  14555. cf_path_syntax="$ac_default_prefix"
  14556. fi
  14557. case ".$withval" in #(vi
  14558. .\$\(*\)*|.\'*\'*) #(vi
  14559. ;;
  14560. ..|./*|.\\*) #(vi
  14561. ;;
  14562. .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
  14563. ;;
  14564. .\${*prefix}*) #(vi
  14565. eval withval="$withval"
  14566. case ".$withval" in #(vi
  14567. .NONE/*)
  14568. withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
  14569. ;;
  14570. esac
  14571. ;; #(vi
  14572. .no|.NONE/*)
  14573. withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
  14574. ;;
  14575. *)
  14576. { { echo "$as_me:16168: error: expected a pathname, not \"$withval\"" >&5
  14577. echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
  14578. { (exit 1); exit 1; }; }
  14579. ;;
  14580. esac
  14581. fi
  14582. ADA_INCLUDE="$withval"
  14583. # Check whether --with-ada-objects or --without-ada-objects was given.
  14584. if test "${with_ada_objects+set}" = set; then
  14585. withval="$with_ada_objects"
  14586. else
  14587. withval="${ADA_OBJECTS-$prefix/lib/ada/adalib}"
  14588. fi; if test -n "$prefix/lib/ada/adalib" ; then
  14589. if test "x$prefix" != xNONE; then
  14590. cf_path_syntax="$prefix"
  14591. else
  14592. cf_path_syntax="$ac_default_prefix"
  14593. fi
  14594. case ".$withval" in #(vi
  14595. .\$\(*\)*|.\'*\'*) #(vi
  14596. ;;
  14597. ..|./*|.\\*) #(vi
  14598. ;;
  14599. .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
  14600. ;;
  14601. .\${*prefix}*) #(vi
  14602. eval withval="$withval"
  14603. case ".$withval" in #(vi
  14604. .NONE/*)
  14605. withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
  14606. ;;
  14607. esac
  14608. ;; #(vi
  14609. .no|.NONE/*)
  14610. withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
  14611. ;;
  14612. *)
  14613. { { echo "$as_me:16210: error: expected a pathname, not \"$withval\"" >&5
  14614. echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
  14615. { (exit 1); exit 1; }; }
  14616. ;;
  14617. esac
  14618. fi
  14619. ADA_OBJECTS="$withval"
  14620. fi
  14621. fi
  14622. else
  14623. cf_with_ada=no
  14624. fi
  14625. ### Construct the ncurses library-subsets, if any, from this set of keywords:
  14626. ### none, base, ext_funcs, ext_tinfo, ticlib, termlib, widechar
  14627. ###
  14628. ### ticlib modules may be a separate library, otherwise contained in termlib.
  14629. ### termlib modules may be a separate library, otherwise contained in ncurses.
  14630. ###
  14631. ### The of "+" or " " between the tokens controls the way the script
  14632. ### chooses to split module lists into libraries.
  14633. ###
  14634. ### (see CF_LIB_RULES).
  14635. echo "$as_me:16235: checking for library subsets" >&5
  14636. echo $ECHO_N "checking for library subsets... $ECHO_C" >&6
  14637. LIB_SUBSETS=
  14638. if test "$cf_with_progs" = yes || test "$with_ticlib" != no || test "$with_termcap" != no; then
  14639. LIB_SUBSETS="${LIB_SUBSETS}ticlib"
  14640. if test "$with_ticlib" != no ; then
  14641. LIB_SUBSETS="${LIB_SUBSETS} "
  14642. else
  14643. LIB_SUBSETS="${LIB_SUBSETS}+"
  14644. fi
  14645. fi
  14646. LIB_SUBSETS="${LIB_SUBSETS}termlib"
  14647. test "$with_ext_funcs" = yes && LIB_SUBSETS="${LIB_SUBSETS}+ext_tinfo"
  14648. if test "$with_termlib" != no ; then
  14649. LIB_SUBSETS="${LIB_SUBSETS} "
  14650. else
  14651. LIB_SUBSETS="${LIB_SUBSETS}+"
  14652. fi
  14653. LIB_SUBSETS="${LIB_SUBSETS}base"
  14654. test "$with_widec" = yes && LIB_SUBSETS="${LIB_SUBSETS}+widechar"
  14655. test "$with_ext_funcs" = yes && LIB_SUBSETS="${LIB_SUBSETS}+ext_funcs"
  14656. echo "$as_me:16260: result: $LIB_SUBSETS" >&5
  14657. echo "${ECHO_T}$LIB_SUBSETS" >&6
  14658. ### Construct the list of include-directories to be generated
  14659. CPPFLAGS="-I. -I../include $CPPFLAGS"
  14660. if test "$srcdir" != "."; then
  14661. CPPFLAGS="-I\${srcdir}/../include $CPPFLAGS"
  14662. fi
  14663. if test "$GCC" != yes; then
  14664. CPPFLAGS="$CPPFLAGS -I\${includedir}"
  14665. elif test "$includedir" != "/usr/include"; then
  14666. if test "$includedir" = '${prefix}/include' ; then
  14667. if test $prefix != /usr ; then
  14668. CPPFLAGS="$CPPFLAGS -I\${includedir}"
  14669. fi
  14670. else
  14671. CPPFLAGS="$CPPFLAGS -I\${includedir}"
  14672. fi
  14673. fi
  14674. ACPPFLAGS="-I. -I../../include $ACPPFLAGS"
  14675. if test "$srcdir" != "."; then
  14676. ACPPFLAGS="-I\${srcdir}/../../include $ACPPFLAGS"
  14677. fi
  14678. if test "$GCC" != yes; then
  14679. ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
  14680. elif test "$includedir" != "/usr/include"; then
  14681. if test "$includedir" = '${prefix}/include' ; then
  14682. if test $prefix != /usr ; then
  14683. ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
  14684. fi
  14685. else
  14686. ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
  14687. fi
  14688. fi
  14689. ### Build up pieces for makefile rules
  14690. echo "$as_me:16298: checking default library suffix" >&5
  14691. echo $ECHO_N "checking default library suffix... $ECHO_C" >&6
  14692. case $DFT_LWR_MODEL in
  14693. libtool) DFT_ARG_SUFFIX='' ;;
  14694. normal) DFT_ARG_SUFFIX='' ;;
  14695. debug) DFT_ARG_SUFFIX='_g' ;;
  14696. profile) DFT_ARG_SUFFIX='_p' ;;
  14697. shared) DFT_ARG_SUFFIX='' ;;
  14698. esac
  14699. test -n "$LIB_SUFFIX" && DFT_ARG_SUFFIX="${LIB_SUFFIX}${DFT_ARG_SUFFIX}"
  14700. echo "$as_me:16309: result: $DFT_ARG_SUFFIX" >&5
  14701. echo "${ECHO_T}$DFT_ARG_SUFFIX" >&6
  14702. echo "$as_me:16312: checking default library-dependency suffix" >&5
  14703. echo $ECHO_N "checking default library-dependency suffix... $ECHO_C" >&6
  14704. case $DFT_LWR_MODEL in
  14705. libtool)
  14706. DFT_LIB_SUFFIX='.la'
  14707. DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
  14708. ;;
  14709. normal)
  14710. DFT_LIB_SUFFIX='.a'
  14711. DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
  14712. ;;
  14713. debug)
  14714. DFT_LIB_SUFFIX='_g.a'
  14715. DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
  14716. ;;
  14717. profile)
  14718. DFT_LIB_SUFFIX='_p.a'
  14719. DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
  14720. ;;
  14721. shared)
  14722. case $cf_cv_system_name in
  14723. cygwin*)
  14724. DFT_LIB_SUFFIX='.dll'
  14725. DFT_DEP_SUFFIX='.dll.a'
  14726. ;;
  14727. darwin*)
  14728. DFT_LIB_SUFFIX='.dylib'
  14729. DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
  14730. ;;
  14731. hpux*)
  14732. case $target in
  14733. ia64*)
  14734. DFT_LIB_SUFFIX='.so'
  14735. DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
  14736. ;;
  14737. *)
  14738. DFT_LIB_SUFFIX='.sl'
  14739. DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
  14740. ;;
  14741. esac
  14742. ;;
  14743. *) DFT_LIB_SUFFIX='.so'
  14744. DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
  14745. ;;
  14746. esac
  14747. esac
  14748. test -n "$LIB_SUFFIX" && DFT_LIB_SUFFIX="${LIB_SUFFIX}${DFT_LIB_SUFFIX}"
  14749. test -n "$LIB_SUFFIX" && DFT_DEP_SUFFIX="${LIB_SUFFIX}${DFT_DEP_SUFFIX}"
  14750. echo "$as_me:16361: result: $DFT_DEP_SUFFIX" >&5
  14751. echo "${ECHO_T}$DFT_DEP_SUFFIX" >&6
  14752. echo "$as_me:16364: checking default object directory" >&5
  14753. echo $ECHO_N "checking default object directory... $ECHO_C" >&6
  14754. case $DFT_LWR_MODEL in
  14755. libtool) DFT_OBJ_SUBDIR='obj_lo' ;;
  14756. normal) DFT_OBJ_SUBDIR='objects' ;;
  14757. debug) DFT_OBJ_SUBDIR='obj_g' ;;
  14758. profile) DFT_OBJ_SUBDIR='obj_p' ;;
  14759. shared)
  14760. case $cf_cv_system_name in #(vi
  14761. cygwin) #(vi
  14762. DFT_OBJ_SUBDIR='objects' ;;
  14763. *)
  14764. DFT_OBJ_SUBDIR='obj_s' ;;
  14765. esac
  14766. esac
  14767. echo "$as_me:16380: result: $DFT_OBJ_SUBDIR" >&5
  14768. echo "${ECHO_T}$DFT_OBJ_SUBDIR" >&6
  14769. # libtool thinks it can make c++ shared libraries (perhaps only g++)
  14770. if test "$cf_with_cxx" = yes ; then
  14771. echo "$as_me:16385: checking c++ library-dependency suffix" >&5
  14772. echo $ECHO_N "checking c++ library-dependency suffix... $ECHO_C" >&6
  14773. if test "$with_libtool" != "no"; then
  14774. CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
  14775. else
  14776. case normal in
  14777. libtool)
  14778. CXX_LIB_SUFFIX='.la'
  14779. CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
  14780. ;;
  14781. normal)
  14782. CXX_LIB_SUFFIX='.a'
  14783. CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
  14784. ;;
  14785. debug)
  14786. CXX_LIB_SUFFIX='_g.a'
  14787. CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
  14788. ;;
  14789. profile)
  14790. CXX_LIB_SUFFIX='_p.a'
  14791. CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
  14792. ;;
  14793. shared)
  14794. case $cf_cv_system_name in
  14795. cygwin*)
  14796. CXX_LIB_SUFFIX='.dll'
  14797. CXX_DEP_SUFFIX='.dll.a'
  14798. ;;
  14799. darwin*)
  14800. CXX_LIB_SUFFIX='.dylib'
  14801. CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
  14802. ;;
  14803. hpux*)
  14804. case $target in
  14805. ia64*)
  14806. CXX_LIB_SUFFIX='.so'
  14807. CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
  14808. ;;
  14809. *)
  14810. CXX_LIB_SUFFIX='.sl'
  14811. CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
  14812. ;;
  14813. esac
  14814. ;;
  14815. *) CXX_LIB_SUFFIX='.so'
  14816. CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
  14817. ;;
  14818. esac
  14819. esac
  14820. test -n "$LIB_SUFFIX" && CXX_LIB_SUFFIX="${LIB_SUFFIX}${CXX_LIB_SUFFIX}"
  14821. test -n "$LIB_SUFFIX" && CXX_DEP_SUFFIX="${LIB_SUFFIX}${CXX_DEP_SUFFIX}"
  14822. fi
  14823. echo "$as_me:16438: result: $CXX_LIB_SUFFIX" >&5
  14824. echo "${ECHO_T}$CXX_LIB_SUFFIX" >&6
  14825. fi
  14826. # do not want -ldl in build except as needed for -lncurses dependency
  14827. if test "$with_dlsym" = yes ; then
  14828. if test $DFT_LWR_MODEL = shared || \
  14829. test $DFT_LWR_MODEL = libtool ; then
  14830. # remove dl library from $LIBS
  14831. LIBS=`echo "$LIBS" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
  14832. fi
  14833. fi
  14834. ### Set up low-level terminfo dependencies for makefiles.
  14835. # TICS_LIST and TINFO_LIST are needed to build libtic.so and libterm.so, but
  14836. # do not need libdl
  14837. TICS_LIST=
  14838. if test "$with_dlsym" = yes ; then
  14839. # remove dl library from $SHLIB_LIST
  14840. TINFO_LIST=`echo "$SHLIB_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
  14841. fi
  14842. if test "$with_ticlib" != no ; then
  14843. if test "$with_ticlib" != yes ; then
  14844. TICS_NAME=$with_ticlib
  14845. TICS_ARG_SUFFIX="${with_ticlib}`echo ${DFT_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
  14846. TICS_DEP_SUFFIX="${with_ticlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
  14847. TICS_LIB_SUFFIX="${with_ticlib}"
  14848. else
  14849. TICS_ARG_SUFFIX="${TICS_NAME}${DFT_ARG_SUFFIX}"
  14850. TICS_DEP_SUFFIX="${TICS_NAME}${DFT_DEP_SUFFIX}"
  14851. TICS_LIB_SUFFIX="${TICS_NAME}${LIB_SUFFIX}"
  14852. fi
  14853. TICS_ARGS="-L${LIB_DIR} -l${TICS_LIB_SUFFIX}"
  14854. else
  14855. TICS_ARGS="-L${LIB_DIR} -l${LIB_NAME}${DFT_ARG_SUFFIX}"
  14856. fi
  14857. if test "$with_termlib" != no ; then
  14858. if test "$with_termlib" != yes ; then
  14859. TINFO_NAME=$with_termlib
  14860. TINFO_SUFFIX="`echo ${DFT_LIB_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
  14861. TINFO_ARG_SUFFIX="${with_termlib}`echo ${DFT_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
  14862. TINFO_DEP_SUFFIX="${with_termlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
  14863. TINFO_LIB_SUFFIX="${with_termlib}"
  14864. else
  14865. TINFO_SUFFIX=${DFT_LIB_SUFFIX}
  14866. TINFO_ARG_SUFFIX="${TINFO_NAME}${DFT_ARG_SUFFIX}"
  14867. TINFO_DEP_SUFFIX="${TINFO_NAME}${DFT_DEP_SUFFIX}"
  14868. TINFO_LIB_SUFFIX="${TINFO_NAME}${LIB_SUFFIX}"
  14869. fi
  14870. TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
  14871. TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
  14872. if test "$DFT_LWR_MODEL" = "libtool"; then
  14873. TEST_ARGS="${TEST_DEPS}"
  14874. TEST_ARG2="${TEST_DEP2}"
  14875. TINFO_ARGS="-L${LIB_DIR} $TEST_ARGS"
  14876. else
  14877. TEST_ARGS="-l${TINFO_ARG_SUFFIX}"
  14878. TEST_ARG2="-l${TINFO_ARG_SUFFIX}"
  14879. TICS_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
  14880. TINFO_ARGS="-L${LIB_DIR} $TEST_ARGS"
  14881. SHLIB_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
  14882. fi
  14883. else
  14884. # the next lines are needed for linking libtic over libncurses
  14885. TINFO_NAME=${LIB_NAME}
  14886. TINFO_SUFFIX=${DFT_LIB_SUFFIX}
  14887. TINFO_ARG_SUFFIX=${LIB_NAME}${DFT_ARG_SUFFIX}
  14888. if test "$with_tic_depends" = yes ; then
  14889. TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${DFT_ARG_SUFFIX}"
  14890. else
  14891. TICS_LIST="$SHLIB_LIST"
  14892. fi
  14893. TINFO_ARGS="-L${LIB_DIR} -l${LIB_NAME}${DFT_ARG_SUFFIX}"
  14894. fi
  14895. if test "$DFT_LWR_MODEL" = shared ; then
  14896. case $cf_cv_system_name in #(vi
  14897. cygwin*)
  14898. # "lib" files have ".dll.a" suffix, "cyg" files have ".dll"
  14899. TINFO_SUFFIX=.dll
  14900. ;;
  14901. esac
  14902. fi
  14903. if test "$with_dlsym" = yes ; then
  14904. # remove dl library from $TICS_LIST
  14905. TICS_LIST=`echo "$TICS_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
  14906. fi
  14907. if test "$DFT_LWR_MODEL" = "libtool"; then
  14908. OBJEXT=lo
  14909. fi
  14910. # needed for Ada95
  14911. TINFO_ARGS2=`echo "$TINFO_ARGS" | sed -e 's,-L\.\./,-L../../,'`
  14912. case $DFT_LWR_MODEL in
  14913. normal|debug|profile)
  14914. if test "$GCC" = yes ; then
  14915. case $cf_cv_system_name in #(
  14916. OS/2*|os2*|aix[45]*) #( vi
  14917. LDFLAGS_STATIC=
  14918. LDFLAGS_SHARED=
  14919. ;;
  14920. *) #( normally, except when broken
  14921. LDFLAGS_STATIC=-static
  14922. LDFLAGS_SHARED=-dynamic
  14923. ;;
  14924. esac
  14925. else
  14926. case $cf_cv_system_name in #(
  14927. aix[45]*) #( from ld manpage
  14928. LDFLAGS_STATIC=-bstatic
  14929. LDFLAGS_SHARED=-bdynamic
  14930. ;;
  14931. hpux*) #( from ld manpage for hpux10.20, hpux11.11
  14932. # We could also use just "archive" and "shared".
  14933. LDFLAGS_STATIC=-Wl,-a,archive_shared
  14934. LDFLAGS_SHARED=-Wl,-a,shared_archive
  14935. ;;
  14936. irix*) #( from ld manpage IRIX64
  14937. LDFLAGS_STATIC=-Bstatic
  14938. LDFLAGS_SHARED=-Bdynamic
  14939. ;;
  14940. osf[45]*) #( from ld manpage osf4.0d, osf5.1
  14941. # alternative "-oldstyle_liblookup" (not in cc manpage)
  14942. LDFLAGS_STATIC=-noso
  14943. LDFLAGS_SHARED=-so_archive
  14944. ;;
  14945. solaris2*)
  14946. LDFLAGS_STATIC=-Bstatic
  14947. LDFLAGS_SHARED=-Bdynamic
  14948. ;;
  14949. esac
  14950. fi
  14951. ;;
  14952. esac
  14953. echo "$as_me:16591: checking where we will install curses.h" >&5
  14954. echo $ECHO_N "checking where we will install curses.h... $ECHO_C" >&6
  14955. test "$with_overwrite" = no && \
  14956. test "x$includedir" = 'x${prefix}/include' && \
  14957. includedir='${prefix}/include/ncurses'${LIB_SUFFIX}
  14958. echo "$as_me:16596: result: $includedir" >&5
  14959. echo "${ECHO_T}$includedir" >&6
  14960. ### Resolve a conflict between normal and wide-curses by forcing applications
  14961. ### that will need libutf8 to add it to their configure script.
  14962. if test "$with_overwrite" != no ; then
  14963. if test "$NCURSES_LIBUTF8" = 1 ; then
  14964. NCURSES_LIBUTF8='defined(HAVE_LIBUTF8_H)'
  14965. { echo "$as_me:16604: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&5
  14966. echo "$as_me: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&2;}
  14967. fi
  14968. fi
  14969. # used to separate tack out of the tree
  14970. NCURSES_TREE=
  14971. ### predefined stuff for the test programs
  14972. cat >>confdefs.h <<\EOF
  14973. #define HAVE_SLK_COLOR 1
  14974. EOF
  14975. ### Construct the list of subdirectories for which we'll customize makefiles
  14976. ### with the appropriate compile-rules.
  14977. echo "$as_me:16620: checking for src modules" >&5
  14978. echo $ECHO_N "checking for src modules... $ECHO_C" >&6
  14979. # dependencies and linker-arguments for test-programs
  14980. TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEPS"
  14981. TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEP2"
  14982. if test "$DFT_LWR_MODEL" = "libtool"; then
  14983. TEST_ARGS="${TEST_DEPS}"
  14984. TEST_ARG2="${TEST_DEP2}"
  14985. else
  14986. TEST_ARGS="-l${LIB_NAME}${DFT_ARG_SUFFIX} $TEST_ARGS"
  14987. TEST_ARG2="-l${LIB_NAME}${DFT_ARG_SUFFIX} $TEST_ARG2"
  14988. fi
  14989. cf_cv_src_modules=
  14990. for cf_dir in $modules_to_build
  14991. do
  14992. if test -f $srcdir/$cf_dir/modules; then
  14993. # We may/may not have tack in the distribution, though the
  14994. # makefile is.
  14995. if test $cf_dir = tack ; then
  14996. if test ! -f $srcdir/${cf_dir}/${cf_dir}.h; then
  14997. continue
  14998. fi
  14999. fi
  15000. if test -z "$cf_cv_src_modules"; then
  15001. cf_cv_src_modules=$cf_dir
  15002. else
  15003. cf_cv_src_modules="$cf_cv_src_modules $cf_dir"
  15004. fi
  15005. # Make the ncurses_cfg.h file record the library interface files as
  15006. # well. These are header files that are the same name as their
  15007. # directory. Ncurses is the only library that does not follow
  15008. # that pattern.
  15009. if test $cf_dir = tack ; then
  15010. continue
  15011. elif test -f $srcdir/${cf_dir}/${cf_dir}.h; then
  15012. cf_have_include=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
  15013. cat >>confdefs.h <<EOF
  15014. #define HAVE_${cf_have_include}_H 1
  15015. EOF
  15016. cat >>confdefs.h <<EOF
  15017. #define HAVE_LIB${cf_have_include} 1
  15018. EOF
  15019. TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${cf_dir}${DFT_DEP_SUFFIX} $TEST_DEPS"
  15020. TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${cf_dir}${DFT_DEP_SUFFIX} $TEST_DEP2"
  15021. if test "$DFT_LWR_MODEL" = "libtool"; then
  15022. TEST_ARGS="${TEST_DEPS}"
  15023. TEST_ARG2="${TEST_DEP2}"
  15024. else
  15025. TEST_ARGS="-l${cf_dir}${DFT_ARG_SUFFIX} $TEST_ARGS"
  15026. TEST_ARG2="-l${cf_dir}${DFT_ARG_SUFFIX} $TEST_ARG2"
  15027. fi
  15028. fi
  15029. fi
  15030. done
  15031. echo "$as_me:16683: result: $cf_cv_src_modules" >&5
  15032. echo "${ECHO_T}$cf_cv_src_modules" >&6
  15033. TEST_ARGS="-L${LIB_DIR} $TEST_ARGS"
  15034. TEST_ARG2="-L${LIB_2ND} $TEST_ARG2"
  15035. SRC_SUBDIRS=
  15036. if test "x$cf_with_manpages" != xno ; then
  15037. SRC_SUBDIRS="$SRC_SUBDIRS man"
  15038. fi
  15039. SRC_SUBDIRS="$SRC_SUBDIRS include"
  15040. for cf_dir in $cf_cv_src_modules
  15041. do
  15042. SRC_SUBDIRS="$SRC_SUBDIRS $cf_dir"
  15043. done
  15044. SRC_SUBDIRS="$SRC_SUBDIRS test"
  15045. test -z "$MAKE_TERMINFO" && SRC_SUBDIRS="$SRC_SUBDIRS misc"
  15046. test "$cf_with_cxx_binding" != no && SRC_SUBDIRS="$SRC_SUBDIRS c++"
  15047. ADA_SUBDIRS=
  15048. if test "$cf_cv_prog_gnat_correct" = yes && test -f $srcdir/Ada95/Makefile.in; then
  15049. SRC_SUBDIRS="$SRC_SUBDIRS Ada95"
  15050. ADA_SUBDIRS="gen src samples"
  15051. fi
  15052. SUB_MAKEFILES=
  15053. for cf_dir in $SRC_SUBDIRS
  15054. do
  15055. SUB_MAKEFILES="$SUB_MAKEFILES $cf_dir/Makefile"
  15056. done
  15057. if test -n "$ADA_SUBDIRS"; then
  15058. for cf_dir in $ADA_SUBDIRS
  15059. do
  15060. SUB_MAKEFILES="$SUB_MAKEFILES Ada95/$cf_dir/Makefile"
  15061. done
  15062. fi
  15063. if test "$cf_with_ada" != "no" && test "$cf_cv_prog_gnat_correct" != "no"; then
  15064. SUB_MAKEFILES="$SUB_MAKEFILES Ada95/gen/adacurses-config"
  15065. fi
  15066. DIRS_TO_MAKE="lib"
  15067. for cf_item in $cf_list_models
  15068. do
  15069. case $cf_item in
  15070. libtool) cf_subdir='obj_lo' ;;
  15071. normal) cf_subdir='objects' ;;
  15072. debug) cf_subdir='obj_g' ;;
  15073. profile) cf_subdir='obj_p' ;;
  15074. shared)
  15075. case $cf_cv_system_name in #(vi
  15076. cygwin) #(vi
  15077. cf_subdir='objects' ;;
  15078. *)
  15079. cf_subdir='obj_s' ;;
  15080. esac
  15081. esac
  15082. for cf_item2 in $DIRS_TO_MAKE
  15083. do
  15084. test $cf_item2 = $cf_subdir && break
  15085. done
  15086. test ".$cf_item2" != ".$cf_subdir" && DIRS_TO_MAKE="$DIRS_TO_MAKE $cf_subdir"
  15087. done
  15088. for cf_dir in $DIRS_TO_MAKE
  15089. do
  15090. test ! -d $cf_dir && mkdir $cf_dir
  15091. done
  15092. cat >>confdefs.h <<EOF
  15093. #define NCURSES_PATHSEP '$PATHSEP'
  15094. EOF
  15095. cat >>confdefs.h <<EOF
  15096. #define NCURSES_VERSION_STRING "${NCURSES_MAJOR}.${NCURSES_MINOR}.${NCURSES_PATCH}"
  15097. EOF
  15098. ### Now that we're done running tests, add the compiler-warnings, if any
  15099. cf_fix_cppflags=no
  15100. cf_new_cflags=
  15101. cf_new_cppflags=
  15102. cf_new_extra_cppflags=
  15103. for cf_add_cflags in $EXTRA_CFLAGS
  15104. do
  15105. case $cf_fix_cppflags in
  15106. no)
  15107. case $cf_add_cflags in #(vi
  15108. -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
  15109. case $cf_add_cflags in
  15110. -D*)
  15111. cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
  15112. test "${cf_add_cflags}" != "${cf_tst_cflags}" \
  15113. && test -z "${cf_tst_cflags}" \
  15114. && cf_fix_cppflags=yes
  15115. if test $cf_fix_cppflags = yes ; then
  15116. cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
  15117. continue
  15118. elif test "${cf_tst_cflags}" = "\"'" ; then
  15119. cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
  15120. continue
  15121. fi
  15122. ;;
  15123. esac
  15124. case "$CPPFLAGS" in
  15125. *$cf_add_cflags) #(vi
  15126. ;;
  15127. *) #(vi
  15128. cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
  15129. ;;
  15130. esac
  15131. ;;
  15132. *)
  15133. cf_new_cflags="$cf_new_cflags $cf_add_cflags"
  15134. ;;
  15135. esac
  15136. ;;
  15137. yes)
  15138. cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
  15139. cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
  15140. test "${cf_add_cflags}" != "${cf_tst_cflags}" \
  15141. && test -z "${cf_tst_cflags}" \
  15142. && cf_fix_cppflags=no
  15143. ;;
  15144. esac
  15145. done
  15146. if test -n "$cf_new_cflags" ; then
  15147. CFLAGS="$CFLAGS $cf_new_cflags"
  15148. fi
  15149. if test -n "$cf_new_cppflags" ; then
  15150. CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
  15151. fi
  15152. if test -n "$cf_new_extra_cppflags" ; then
  15153. EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
  15154. fi
  15155. ### If we're building with rpath, try to link non-standard libs that way too.
  15156. if test "$DFT_LWR_MODEL" = "shared"; then
  15157. echo "$as_me:16836: checking for updated LDFLAGS" >&5
  15158. echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6
  15159. if test -n "$LDFLAGS" ; then
  15160. echo "$as_me:16839: result: maybe" >&5
  15161. echo "${ECHO_T}maybe" >&6
  15162. test -n "$verbose" && echo " ...checking LDFLAGS $LDFLAGS" 1>&6
  15163. echo "${as_me-configure}:16843: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5
  15164. test -n "$verbose" && echo " ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
  15165. echo "${as_me-configure}:16847: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
  15166. case "$EXTRA_LDFLAGS" in #(vi
  15167. -Wl,-rpath,*) #(vi
  15168. cf_rpath_hack="-Wl,-rpath,"
  15169. ;;
  15170. -R\ *)
  15171. cf_rpath_hack="-R "
  15172. ;;
  15173. -R*)
  15174. cf_rpath_hack="-R"
  15175. ;;
  15176. *)
  15177. cf_rpath_hack=
  15178. ;;
  15179. esac
  15180. if test -n "$cf_rpath_hack" ; then
  15181. cf_rpath_dst=
  15182. for cf_rpath_src in $LDFLAGS
  15183. do
  15184. test -n "$verbose" && echo " Filtering $cf_rpath_src" 1>&6
  15185. echo "${as_me-configure}:16869: testing Filtering $cf_rpath_src ..." 1>&5
  15186. case $cf_rpath_src in #(vi
  15187. -L*) #(vi
  15188. if test "$cf_rpath_hack" = "-R " ; then
  15189. cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e 's%-L%-R %'`
  15190. else
  15191. cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e s%-L%$cf_rpath_hack%`
  15192. fi
  15193. test -n "$verbose" && echo " ...Filter $cf_rpath_tmp" 1>&6
  15194. echo "${as_me-configure}:16880: testing ...Filter $cf_rpath_tmp ..." 1>&5
  15195. EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
  15196. ;;
  15197. esac
  15198. cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
  15199. done
  15200. LDFLAGS=$cf_rpath_dst
  15201. test -n "$verbose" && echo " ...checked LDFLAGS $LDFLAGS" 1>&6
  15202. echo "${as_me-configure}:16890: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5
  15203. test -n "$verbose" && echo " ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
  15204. echo "${as_me-configure}:16894: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
  15205. fi
  15206. else
  15207. echo "$as_me:16898: result: no" >&5
  15208. echo "${ECHO_T}no" >&6
  15209. fi
  15210. fi
  15211. ### Define substitutions for header files to avoid name-pollution
  15212. if test "$cf_cv_have_tcgetattr" = yes ; then
  15213. HAVE_TCGETATTR=1
  15214. else
  15215. HAVE_TCGETATTR=0
  15216. fi
  15217. if test "$ac_cv_header_termio_h" = yes ; then
  15218. HAVE_TERMIO_H=1
  15219. else
  15220. HAVE_TERMIO_H=0
  15221. fi
  15222. if test "$ac_cv_header_termios_h" = yes ; then
  15223. HAVE_TERMIOS_H=1
  15224. else
  15225. HAVE_TERMIOS_H=0
  15226. fi
  15227. ################################################################################
  15228. test "$use_database" = yes && SUB_MAKEFILES="$SUB_MAKEFILES misc/run_tic.sh:misc/run_tic.in"
  15229. SUB_MAKEFILES="$SUB_MAKEFILES misc/ncurses-config:misc/ncurses-config.in"
  15230. ac_config_files="$ac_config_files include/MKterm.h.awk include/curses.head:include/curses.h.in include/termcap.h include/unctrl.h $SUB_MAKEFILES Makefile"
  15231. ac_config_commands="$ac_config_commands default"
  15232. cat >confcache <<\_ACEOF
  15233. # This file is a shell script that caches the results of configure
  15234. # tests run on this system so they can be shared between configure
  15235. # scripts and configure runs, see configure's option --config-cache.
  15236. # It is not useful on other systems. If it contains results you don't
  15237. # want to keep, you may remove or edit it.
  15238. #
  15239. # config.status only pays attention to the cache file if you give it
  15240. # the --recheck option to rerun configure.
  15241. #
  15242. # `ac_cv_env_foo' variables (set or unset) will be overriden when
  15243. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  15244. # following values.
  15245. _ACEOF
  15246. # The following way of writing the cache mishandles newlines in values,
  15247. # but we know of no workaround that is simple, portable, and efficient.
  15248. # So, don't put newlines in cache variables' values.
  15249. # Ultrix sh set writes to stderr and can't be redirected directly,
  15250. # and sets the high bit in the cache file unless we assign to the vars.
  15251. {
  15252. (set) 2>&1 |
  15253. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  15254. *ac_space=\ *)
  15255. # `set' does not quote correctly, so add quotes (double-quote
  15256. # substitution turns \\\\ into \\, and sed turns \\ into \).
  15257. sed -n \
  15258. "s/'/'\\\\''/g;
  15259. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  15260. ;;
  15261. *)
  15262. # `set' quotes correctly as required by POSIX, so do not add quotes.
  15263. sed -n \
  15264. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  15265. ;;
  15266. esac;
  15267. } |
  15268. sed '
  15269. t clear
  15270. : clear
  15271. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  15272. t end
  15273. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  15274. : end' >>confcache
  15275. if cmp -s $cache_file confcache; then :; else
  15276. if test -w $cache_file; then
  15277. test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  15278. cat confcache >$cache_file
  15279. else
  15280. echo "not updating unwritable cache $cache_file"
  15281. fi
  15282. fi
  15283. rm -f confcache
  15284. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  15285. # Let make expand exec_prefix.
  15286. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  15287. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  15288. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  15289. # trailing colons and then remove the whole line if VPATH becomes empty
  15290. # (actually we leave an empty line to preserve line numbers).
  15291. if test "x$srcdir" = x.; then
  15292. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  15293. s/:*\$(srcdir):*/:/;
  15294. s/:*\${srcdir}:*/:/;
  15295. s/:*@srcdir@:*/:/;
  15296. s/^\([^=]*=[ ]*\):*/\1/;
  15297. s/:*$//;
  15298. s/^[^=]*=[ ]*$//;
  15299. }'
  15300. fi
  15301. DEFS=-DHAVE_CONFIG_H
  15302. : ${CONFIG_STATUS=./config.status}
  15303. ac_clean_files_save=$ac_clean_files
  15304. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  15305. { echo "$as_me:17008: creating $CONFIG_STATUS" >&5
  15306. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  15307. cat >$CONFIG_STATUS <<_ACEOF
  15308. #! $SHELL
  15309. # Generated automatically by configure.
  15310. # Run this file to recreate the current configuration.
  15311. # Compiler output produced by configure, useful for debugging
  15312. # configure, is in config.log if it exists.
  15313. debug=false
  15314. SHELL=\${CONFIG_SHELL-$SHELL}
  15315. ac_cs_invocation="\$0 \$@"
  15316. _ACEOF
  15317. cat >>$CONFIG_STATUS <<\_ACEOF
  15318. # Be Bourne compatible
  15319. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  15320. emulate sh
  15321. NULLCMD=:
  15322. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  15323. set -o posix
  15324. fi
  15325. # Name of the executable.
  15326. as_me=`echo "$0" |sed 's,.*[\\/],,'`
  15327. if expr a : '\(a\)' >/dev/null 2>&1; then
  15328. as_expr=expr
  15329. else
  15330. as_expr=false
  15331. fi
  15332. rm -f conf$$ conf$$.exe conf$$.file
  15333. echo >conf$$.file
  15334. if ln -s conf$$.file conf$$ 2>/dev/null; then
  15335. # We could just check for DJGPP; but this test a) works b) is more generic
  15336. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  15337. if test -f conf$$.exe; then
  15338. # Don't use ln at all; we don't have any links
  15339. as_ln_s='cp -p'
  15340. else
  15341. as_ln_s='ln -s'
  15342. fi
  15343. elif ln conf$$.file conf$$ 2>/dev/null; then
  15344. as_ln_s=ln
  15345. else
  15346. as_ln_s='cp -p'
  15347. fi
  15348. rm -f conf$$ conf$$.exe conf$$.file
  15349. as_executable_p="test -f"
  15350. # Support unset when possible.
  15351. if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
  15352. as_unset=unset
  15353. else
  15354. as_unset=false
  15355. fi
  15356. # NLS nuisances.
  15357. $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
  15358. $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
  15359. $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
  15360. $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
  15361. $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
  15362. $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
  15363. $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
  15364. $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
  15365. # IFS
  15366. # We need space, tab and new line, in precisely that order.
  15367. as_nl='
  15368. '
  15369. IFS=" $as_nl"
  15370. # CDPATH.
  15371. $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
  15372. exec 6>&1
  15373. _ACEOF
  15374. # Files that config.status was made for.
  15375. if test -n "$ac_config_files"; then
  15376. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  15377. fi
  15378. if test -n "$ac_config_headers"; then
  15379. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  15380. fi
  15381. if test -n "$ac_config_links"; then
  15382. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  15383. fi
  15384. if test -n "$ac_config_commands"; then
  15385. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  15386. fi
  15387. cat >>$CONFIG_STATUS <<\EOF
  15388. ac_cs_usage="\
  15389. \`$as_me' instantiates files from templates according to the
  15390. current configuration.
  15391. Usage: $0 [OPTIONS] [FILE]...
  15392. -h, --help print this help, then exit
  15393. -V, --version print version number, then exit
  15394. -d, --debug don't remove temporary files
  15395. --recheck update $as_me by reconfiguring in the same conditions
  15396. --file=FILE[:TEMPLATE]
  15397. instantiate the configuration file FILE
  15398. --header=FILE[:TEMPLATE]
  15399. instantiate the configuration header FILE
  15400. Configuration files:
  15401. $config_files
  15402. Configuration headers:
  15403. $config_headers
  15404. Configuration commands:
  15405. $config_commands
  15406. Report bugs to <bug-autoconf@gnu.org>."
  15407. EOF
  15408. cat >>$CONFIG_STATUS <<EOF
  15409. ac_cs_version="\\
  15410. config.status
  15411. configured by $0, generated by GNU Autoconf 2.52.20080325,
  15412. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  15413. Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
  15414. Free Software Foundation, Inc.
  15415. This config.status script is free software; the Free Software Foundation
  15416. gives unlimited permission to copy, distribute and modify it."
  15417. srcdir=$srcdir
  15418. INSTALL="$INSTALL"
  15419. EOF
  15420. cat >>$CONFIG_STATUS <<\EOF
  15421. # If no file are specified by the user, then we need to provide default
  15422. # value. By we need to know if files were specified by the user.
  15423. ac_need_defaults=:
  15424. while test $# != 0
  15425. do
  15426. case $1 in
  15427. --*=*)
  15428. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  15429. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  15430. shift
  15431. set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
  15432. shift
  15433. ;;
  15434. -*);;
  15435. *) # This is not an option, so the user has probably given explicit
  15436. # arguments.
  15437. ac_need_defaults=false;;
  15438. esac
  15439. case $1 in
  15440. # Handling of the options.
  15441. EOF
  15442. cat >>$CONFIG_STATUS <<EOF
  15443. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  15444. echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
  15445. exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
  15446. EOF
  15447. cat >>$CONFIG_STATUS <<\EOF
  15448. --version | --vers* | -V )
  15449. echo "$ac_cs_version"; exit 0 ;;
  15450. --he | --h)
  15451. # Conflict between --help and --header
  15452. { { echo "$as_me:17184: error: ambiguous option: $1
  15453. Try \`$0 --help' for more information." >&5
  15454. echo "$as_me: error: ambiguous option: $1
  15455. Try \`$0 --help' for more information." >&2;}
  15456. { (exit 1); exit 1; }; };;
  15457. --help | --hel | -h )
  15458. echo "$ac_cs_usage"; exit 0 ;;
  15459. --debug | --d* | -d )
  15460. debug=: ;;
  15461. --file | --fil | --fi | --f )
  15462. shift
  15463. CONFIG_FILES="$CONFIG_FILES $1"
  15464. ac_need_defaults=false;;
  15465. --header | --heade | --head | --hea )
  15466. shift
  15467. CONFIG_HEADERS="$CONFIG_HEADERS $1"
  15468. ac_need_defaults=false;;
  15469. # This is an error.
  15470. -*) { { echo "$as_me:17203: error: unrecognized option: $1
  15471. Try \`$0 --help' for more information." >&5
  15472. echo "$as_me: error: unrecognized option: $1
  15473. Try \`$0 --help' for more information." >&2;}
  15474. { (exit 1); exit 1; }; } ;;
  15475. *) ac_config_targets="$ac_config_targets $1" ;;
  15476. esac
  15477. shift
  15478. done
  15479. exec 5>>config.log
  15480. cat >&5 << _ACEOF
  15481. ## ----------------------- ##
  15482. ## Running config.status. ##
  15483. ## ----------------------- ##
  15484. This file was extended by $as_me 2.52.20080325, executed with
  15485. CONFIG_FILES = $CONFIG_FILES
  15486. CONFIG_HEADERS = $CONFIG_HEADERS
  15487. CONFIG_LINKS = $CONFIG_LINKS
  15488. CONFIG_COMMANDS = $CONFIG_COMMANDS
  15489. > $ac_cs_invocation
  15490. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  15491. _ACEOF
  15492. EOF
  15493. cat >>$CONFIG_STATUS <<EOF
  15494. #
  15495. # INIT-COMMANDS section.
  15496. #
  15497. ### Special initialization commands, used to pass information from the
  15498. ### configuration-run into config.status
  15499. AWK="$AWK"
  15500. DFT_ARG_SUFFIX="$DFT_ARG_SUFFIX"
  15501. DFT_LWR_MODEL="$DFT_LWR_MODEL"
  15502. ECHO_LINK="$ECHO_LINK"
  15503. LDCONFIG="$LDCONFIG"
  15504. LIB_NAME="$LIB_NAME"
  15505. LIB_SUBSETS="$LIB_SUBSETS"
  15506. LIB_SUFFIX="$LIB_SUFFIX"
  15507. LIB_TRACING="$LIB_TRACING"
  15508. MAKE_TERMINFO="$MAKE_TERMINFO"
  15509. NCURSES_MAJOR="$NCURSES_MAJOR"
  15510. NCURSES_MINOR="$NCURSES_MINOR"
  15511. NCURSES_OSPEED="$NCURSES_OSPEED"
  15512. NCURSES_PATCH="$NCURSES_PATCH"
  15513. SRC_SUBDIRS="$SRC_SUBDIRS"
  15514. TERMINFO="$TERMINFO"
  15515. TINFO_ARG_SUFFIX="$TINFO_ARG_SUFFIX"
  15516. TINFO_LIB_SUFFIX="$TINFO_LIB_SUFFIX"
  15517. TINFO_NAME="$TINFO_NAME"
  15518. TINFO_SUFFIX="$TINFO_SUFFIX"
  15519. TICS_ARG_SUFFIX="$TICS_ARG_SUFFIX"
  15520. TICS_LIB_SUFFIX="$TICS_LIB_SUFFIX"
  15521. TICS_NAME="$TICS_NAME"
  15522. WITH_CURSES_H="$with_curses_h"
  15523. WITH_ECHO="$with_echo"
  15524. WITH_OVERWRITE="$with_overwrite"
  15525. cf_LIST_MODELS="$cf_list_models"
  15526. cf_cv_abi_version="$cf_cv_abi_version"
  15527. cf_cv_do_relink="$cf_cv_do_relink"
  15528. cf_cv_do_symlinks="$cf_cv_do_symlinks"
  15529. cf_cv_enable_lp64="$cf_cv_enable_lp64"
  15530. cf_cv_enable_opaque="$cf_cv_enable_opaque"
  15531. cf_cv_prog_CC_c_o=$cf_cv_prog_CC_c_o
  15532. cf_cv_prog_CXX_c_o=$cf_cv_prog_CXX_c_o
  15533. cf_cv_rel_version="$cf_cv_rel_version"
  15534. cf_cv_rm_so_locs="$cf_cv_rm_so_locs"
  15535. cf_cv_shared_soname='$cf_cv_shared_soname'
  15536. cf_cv_shlib_version="$cf_cv_shlib_version"
  15537. cf_cv_shlib_version_infix="$cf_cv_shlib_version_infix"
  15538. cf_cv_system_name="$cf_cv_system_name"
  15539. cf_with_cxx_binding="$cf_with_cxx_binding"
  15540. cf_with_manpages="$cf_with_manpages"
  15541. host="$host"
  15542. target="$target"
  15543. EOF
  15544. cat >>$CONFIG_STATUS <<\EOF
  15545. for ac_config_target in $ac_config_targets
  15546. do
  15547. case "$ac_config_target" in
  15548. # Handling of arguments.
  15549. "include/MKterm.h.awk" ) CONFIG_FILES="$CONFIG_FILES include/MKterm.h.awk" ;;
  15550. "include/curses.head" ) CONFIG_FILES="$CONFIG_FILES include/curses.head:include/curses.h.in" ;;
  15551. "include/termcap.h" ) CONFIG_FILES="$CONFIG_FILES include/termcap.h" ;;
  15552. "include/unctrl.h" ) CONFIG_FILES="$CONFIG_FILES include/unctrl.h" ;;
  15553. "$SUB_MAKEFILES" ) CONFIG_FILES="$CONFIG_FILES $SUB_MAKEFILES" ;;
  15554. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  15555. "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
  15556. "include/ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ncurses_cfg.h:include/ncurses_cfg.hin" ;;
  15557. *) { { echo "$as_me:17301: error: invalid argument: $ac_config_target" >&5
  15558. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  15559. { (exit 1); exit 1; }; };;
  15560. esac
  15561. done
  15562. # If the user did not use the arguments to specify the items to instantiate,
  15563. # then the envvar interface is used. Set only those that are not.
  15564. # We use the long form for the default assignment because of an extremely
  15565. # bizarre bug on SunOS 4.1.3.
  15566. if $ac_need_defaults; then
  15567. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  15568. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  15569. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  15570. fi
  15571. # Create a temporary directory, and hook for its removal unless debugging.
  15572. $debug ||
  15573. {
  15574. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  15575. trap '{ (exit 1); exit 1; }' 1 2 13 15
  15576. }
  15577. # Create a (secure) tmp directory for tmp files.
  15578. : ${TMPDIR=/tmp}
  15579. {
  15580. tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
  15581. test -n "$tmp" && test -d "$tmp"
  15582. } ||
  15583. {
  15584. tmp=$TMPDIR/cs$$-$RANDOM
  15585. (umask 077 && mkdir $tmp)
  15586. } ||
  15587. {
  15588. echo "$me: cannot create a temporary directory in $TMPDIR" >&2
  15589. { (exit 1); exit 1; }
  15590. }
  15591. EOF
  15592. cat >>$CONFIG_STATUS <<EOF
  15593. #
  15594. # CONFIG_FILES section.
  15595. #
  15596. # No need to generate the scripts if there are no CONFIG_FILES.
  15597. # This happens for instance when ./config.status config.h
  15598. if test -n "\$CONFIG_FILES"; then
  15599. # Protect against being on the right side of a sed subst in config.status.
  15600. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  15601. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  15602. s,@SHELL@,$SHELL,;t t
  15603. s,@exec_prefix@,$exec_prefix,;t t
  15604. s,@prefix@,$prefix,;t t
  15605. s,@program_transform_name@,$program_transform_name,;t t
  15606. s,@bindir@,$bindir,;t t
  15607. s,@sbindir@,$sbindir,;t t
  15608. s,@libexecdir@,$libexecdir,;t t
  15609. s,@datadir@,$datadir,;t t
  15610. s,@sysconfdir@,$sysconfdir,;t t
  15611. s,@sharedstatedir@,$sharedstatedir,;t t
  15612. s,@localstatedir@,$localstatedir,;t t
  15613. s,@libdir@,$libdir,;t t
  15614. s,@includedir@,$includedir,;t t
  15615. s,@oldincludedir@,$oldincludedir,;t t
  15616. s,@infodir@,$infodir,;t t
  15617. s,@mandir@,$mandir,;t t
  15618. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  15619. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  15620. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  15621. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  15622. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  15623. s,@build_alias@,$build_alias,;t t
  15624. s,@host_alias@,$host_alias,;t t
  15625. s,@target_alias@,$target_alias,;t t
  15626. s,@ECHO_C@,$ECHO_C,;t t
  15627. s,@ECHO_N@,$ECHO_N,;t t
  15628. s,@ECHO_T@,$ECHO_T,;t t
  15629. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  15630. s,@DEFS@,$DEFS,;t t
  15631. s,@LIBS@,$LIBS,;t t
  15632. s,@top_builddir@,$top_builddir,;t t
  15633. s,@EGREP@,$EGREP,;t t
  15634. s,@NCURSES_MAJOR@,$NCURSES_MAJOR,;t t
  15635. s,@NCURSES_MINOR@,$NCURSES_MINOR,;t t
  15636. s,@NCURSES_PATCH@,$NCURSES_PATCH,;t t
  15637. s,@cf_cv_rel_version@,$cf_cv_rel_version,;t t
  15638. s,@cf_cv_abi_version@,$cf_cv_abi_version,;t t
  15639. s,@cf_cv_builtin_bool@,$cf_cv_builtin_bool,;t t
  15640. s,@cf_cv_header_stdbool_h@,$cf_cv_header_stdbool_h,;t t
  15641. s,@cf_cv_type_of_bool@,$cf_cv_type_of_bool,;t t
  15642. s,@build@,$build,;t t
  15643. s,@build_cpu@,$build_cpu,;t t
  15644. s,@build_vendor@,$build_vendor,;t t
  15645. s,@build_os@,$build_os,;t t
  15646. s,@host@,$host,;t t
  15647. s,@host_cpu@,$host_cpu,;t t
  15648. s,@host_vendor@,$host_vendor,;t t
  15649. s,@host_os@,$host_os,;t t
  15650. s,@target@,$target,;t t
  15651. s,@target_cpu@,$target_cpu,;t t
  15652. s,@target_vendor@,$target_vendor,;t t
  15653. s,@target_os@,$target_os,;t t
  15654. s,@CC@,$CC,;t t
  15655. s,@CFLAGS@,$CFLAGS,;t t
  15656. s,@LDFLAGS@,$LDFLAGS,;t t
  15657. s,@CPPFLAGS@,$CPPFLAGS,;t t
  15658. s,@ac_ct_CC@,$ac_ct_CC,;t t
  15659. s,@EXEEXT@,$EXEEXT,;t t
  15660. s,@OBJEXT@,$OBJEXT,;t t
  15661. s,@CPP@,$CPP,;t t
  15662. s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
  15663. s,@PROG_EXT@,$PROG_EXT,;t t
  15664. s,@LDCONFIG@,$LDCONFIG,;t t
  15665. s,@CXX@,$CXX,;t t
  15666. s,@CXXFLAGS@,$CXXFLAGS,;t t
  15667. s,@ac_ct_CXX@,$ac_ct_CXX,;t t
  15668. s,@AWK@,$AWK,;t t
  15669. s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
  15670. s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
  15671. s,@INSTALL_DATA@,$INSTALL_DATA,;t t
  15672. s,@LINT@,$LINT,;t t
  15673. s,@LINT_OPTS@,$LINT_OPTS,;t t
  15674. s,@LN_S@,$LN_S,;t t
  15675. s,@SET_MAKE@,$SET_MAKE,;t t
  15676. s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
  15677. s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
  15678. s,@cf_cv_makeflags@,$cf_cv_makeflags,;t t
  15679. s,@RANLIB@,$RANLIB,;t t
  15680. s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
  15681. s,@LD@,$LD,;t t
  15682. s,@ac_ct_LD@,$ac_ct_LD,;t t
  15683. s,@AR@,$AR,;t t
  15684. s,@ac_ct_AR@,$ac_ct_AR,;t t
  15685. s,@AR_OPTS@,$AR_OPTS,;t t
  15686. s,@DESTDIR@,$DESTDIR,;t t
  15687. s,@BUILD_CC@,$BUILD_CC,;t t
  15688. s,@BUILD_CPP@,$BUILD_CPP,;t t
  15689. s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
  15690. s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
  15691. s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
  15692. s,@BUILD_LIBS@,$BUILD_LIBS,;t t
  15693. s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
  15694. s,@BUILD_OBJEXT@,$BUILD_OBJEXT,;t t
  15695. s,@cf_list_models@,$cf_list_models,;t t
  15696. s,@LIBTOOL@,$LIBTOOL,;t t
  15697. s,@LIBTOOL_CXX@,$LIBTOOL_CXX,;t t
  15698. s,@LIBTOOL_OPTS@,$LIBTOOL_OPTS,;t t
  15699. s,@LIB_CREATE@,$LIB_CREATE,;t t
  15700. s,@LIB_OBJECT@,$LIB_OBJECT,;t t
  15701. s,@LIB_SUFFIX@,$LIB_SUFFIX,;t t
  15702. s,@LIB_PREP@,$LIB_PREP,;t t
  15703. s,@LIB_CLEAN@,$LIB_CLEAN,;t t
  15704. s,@LIB_COMPILE@,$LIB_COMPILE,;t t
  15705. s,@LIB_LINK@,$LIB_LINK,;t t
  15706. s,@LIB_INSTALL@,$LIB_INSTALL,;t t
  15707. s,@LIB_UNINSTALL@,$LIB_UNINSTALL,;t t
  15708. s,@DFT_LWR_MODEL@,$DFT_LWR_MODEL,;t t
  15709. s,@DFT_UPR_MODEL@,$DFT_UPR_MODEL,;t t
  15710. s,@TICS_NAME@,$TICS_NAME,;t t
  15711. s,@TINFO_NAME@,$TINFO_NAME,;t t
  15712. s,@LIB_NAME@,$LIB_NAME,;t t
  15713. s,@LIB_PREFIX@,$LIB_PREFIX,;t t
  15714. s,@CC_G_OPT@,$CC_G_OPT,;t t
  15715. s,@CXX_G_OPT@,$CXX_G_OPT,;t t
  15716. s,@LD_MODEL@,$LD_MODEL,;t t
  15717. s,@CC_SHARED_OPTS@,$CC_SHARED_OPTS,;t t
  15718. s,@LD_SHARED_OPTS@,$LD_SHARED_OPTS,;t t
  15719. s,@MK_SHARED_LIB@,$MK_SHARED_LIB,;t t
  15720. s,@LINK_PROGS@,$LINK_PROGS,;t t
  15721. s,@LINK_TESTS@,$LINK_TESTS,;t t
  15722. s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t
  15723. s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
  15724. s,@LOCAL_LDFLAGS2@,$LOCAL_LDFLAGS2,;t t
  15725. s,@INSTALL_LIB@,$INSTALL_LIB,;t t
  15726. s,@TERMINFO_SRC@,$TERMINFO_SRC,;t t
  15727. s,@PATHSEP@,$PATHSEP,;t t
  15728. s,@FALLBACK_LIST@,$FALLBACK_LIST,;t t
  15729. s,@WHICH_XTERM@,$WHICH_XTERM,;t t
  15730. s,@TERMINFO_DIRS@,$TERMINFO_DIRS,;t t
  15731. s,@TERMINFO@,$TERMINFO,;t t
  15732. s,@MAKE_TERMINFO@,$MAKE_TERMINFO,;t t
  15733. s,@USE_BIG_STRINGS@,$USE_BIG_STRINGS,;t t
  15734. s,@TERMPATH@,$TERMPATH,;t t
  15735. s,@BROKEN_LINKER@,$BROKEN_LINKER,;t t
  15736. s,@NCURSES_CH_T@,$NCURSES_CH_T,;t t
  15737. s,@NCURSES_LIBUTF8@,$NCURSES_LIBUTF8,;t t
  15738. s,@NEED_WCHAR_H@,$NEED_WCHAR_H,;t t
  15739. s,@NCURSES_MBSTATE_T@,$NCURSES_MBSTATE_T,;t t
  15740. s,@NCURSES_WCHAR_T@,$NCURSES_WCHAR_T,;t t
  15741. s,@NCURSES_WINT_T@,$NCURSES_WINT_T,;t t
  15742. s,@NCURSES_OK_WCHAR_T@,$NCURSES_OK_WCHAR_T,;t t
  15743. s,@NCURSES_OK_WINT_T@,$NCURSES_OK_WINT_T,;t t
  15744. s,@cf_cv_enable_lp64@,$cf_cv_enable_lp64,;t t
  15745. s,@NCURSES_TPARM_VARARGS@,$NCURSES_TPARM_VARARGS,;t t
  15746. s,@NCURSES_BOOL@,$NCURSES_BOOL,;t t
  15747. s,@TERMINFO_CAPS@,$TERMINFO_CAPS,;t t
  15748. s,@NCURSES_OSPEED@,$NCURSES_OSPEED,;t t
  15749. s,@MANPAGE_RENAMES@,$MANPAGE_RENAMES,;t t
  15750. s,@NCURSES_EXT_FUNCS@,$NCURSES_EXT_FUNCS,;t t
  15751. s,@NCURSES_CONST@,$NCURSES_CONST,;t t
  15752. s,@NCURSES_EXT_COLORS@,$NCURSES_EXT_COLORS,;t t
  15753. s,@NCURSES_MOUSE_VERSION@,$NCURSES_MOUSE_VERSION,;t t
  15754. s,@NCURSES_SBOOL@,$NCURSES_SBOOL,;t t
  15755. s,@NCURSES_XNAMES@,$NCURSES_XNAMES,;t t
  15756. s,@PTHREAD@,$PTHREAD,;t t
  15757. s,@cf_cv_enable_reentrant@,$cf_cv_enable_reentrant,;t t
  15758. s,@cf_cv_enable_opaque@,$cf_cv_enable_opaque,;t t
  15759. s,@NCURSES_OPAQUE@,$NCURSES_OPAQUE,;t t
  15760. s,@NCURSES_SIZE_T@,$NCURSES_SIZE_T,;t t
  15761. s,@ECHO_LINK@,$ECHO_LINK,;t t
  15762. s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
  15763. s,@EXTRA_CXXFLAGS@,$EXTRA_CXXFLAGS,;t t
  15764. s,@ADA_TRACE@,$ADA_TRACE,;t t
  15765. s,@MATH_LIB@,$MATH_LIB,;t t
  15766. s,@NCURSES_INLINE@,$NCURSES_INLINE,;t t
  15767. s,@cf_cv_typeof_chtype@,$cf_cv_typeof_chtype,;t t
  15768. s,@cf_cv_1UL@,$cf_cv_1UL,;t t
  15769. s,@cf_cv_typeof_mmask_t@,$cf_cv_typeof_mmask_t,;t t
  15770. s,@HAVE_VSSCANF@,$HAVE_VSSCANF,;t t
  15771. s,@TEST_LIBS@,$TEST_LIBS,;t t
  15772. s,@CXXCPP@,$CXXCPP,;t t
  15773. s,@CXXLDFLAGS@,$CXXLDFLAGS,;t t
  15774. s,@CXX_AR@,$CXX_AR,;t t
  15775. s,@CXX_AR_OPTS@,$CXX_AR_OPTS,;t t
  15776. s,@CXXLIBS@,$CXXLIBS,;t t
  15777. s,@USE_CXX_BOOL@,$USE_CXX_BOOL,;t t
  15778. s,@gnat_exists@,$gnat_exists,;t t
  15779. s,@M4_exists@,$M4_exists,;t t
  15780. s,@cf_ada_make@,$cf_ada_make,;t t
  15781. s,@cf_ada_compiler@,$cf_ada_compiler,;t t
  15782. s,@cf_ada_package@,$cf_ada_package,;t t
  15783. s,@ADAFLAGS@,$ADAFLAGS,;t t
  15784. s,@cf_compile_generics@,$cf_compile_generics,;t t
  15785. s,@cf_generic_objects@,$cf_generic_objects,;t t
  15786. s,@PRAGMA_UNREF@,$PRAGMA_UNREF,;t t
  15787. s,@ADA_INCLUDE@,$ADA_INCLUDE,;t t
  15788. s,@ADA_OBJECTS@,$ADA_OBJECTS,;t t
  15789. s,@ACPPFLAGS@,$ACPPFLAGS,;t t
  15790. s,@DFT_ARG_SUFFIX@,$DFT_ARG_SUFFIX,;t t
  15791. s,@DFT_DEP_SUFFIX@,$DFT_DEP_SUFFIX,;t t
  15792. s,@DFT_OBJ_SUBDIR@,$DFT_OBJ_SUBDIR,;t t
  15793. s,@CXX_LIB_SUFFIX@,$CXX_LIB_SUFFIX,;t t
  15794. s,@TICS_ARG_SUFFIX@,$TICS_ARG_SUFFIX,;t t
  15795. s,@TICS_DEP_SUFFIX@,$TICS_DEP_SUFFIX,;t t
  15796. s,@TICS_LIB_SUFFIX@,$TICS_LIB_SUFFIX,;t t
  15797. s,@TICS_ARGS@,$TICS_ARGS,;t t
  15798. s,@TINFO_ARG_SUFFIX@,$TINFO_ARG_SUFFIX,;t t
  15799. s,@TINFO_DEP_SUFFIX@,$TINFO_DEP_SUFFIX,;t t
  15800. s,@TINFO_LIB_SUFFIX@,$TINFO_LIB_SUFFIX,;t t
  15801. s,@TINFO_ARGS@,$TINFO_ARGS,;t t
  15802. s,@TINFO_ARGS2@,$TINFO_ARGS2,;t t
  15803. s,@LDFLAGS_STATIC@,$LDFLAGS_STATIC,;t t
  15804. s,@LDFLAGS_SHARED@,$LDFLAGS_SHARED,;t t
  15805. s,@WITH_OVERWRITE@,$WITH_OVERWRITE,;t t
  15806. s,@TICS_LIST@,$TICS_LIST,;t t
  15807. s,@TINFO_LIST@,$TINFO_LIST,;t t
  15808. s,@SHLIB_LIST@,$SHLIB_LIST,;t t
  15809. s,@NCURSES_TREE@,$NCURSES_TREE,;t t
  15810. s,@TEST_ARGS@,$TEST_ARGS,;t t
  15811. s,@TEST_DEPS@,$TEST_DEPS,;t t
  15812. s,@TEST_ARG2@,$TEST_ARG2,;t t
  15813. s,@TEST_DEP2@,$TEST_DEP2,;t t
  15814. s,@ADA_SUBDIRS@,$ADA_SUBDIRS,;t t
  15815. s,@DIRS_TO_MAKE@,$DIRS_TO_MAKE,;t t
  15816. s,@HAVE_TCGETATTR@,$HAVE_TCGETATTR,;t t
  15817. s,@HAVE_TERMIO_H@,$HAVE_TERMIO_H,;t t
  15818. s,@HAVE_TERMIOS_H@,$HAVE_TERMIOS_H,;t t
  15819. CEOF
  15820. EOF
  15821. cat >>$CONFIG_STATUS <<\EOF
  15822. # Split the substitutions into bite-sized pieces for seds with
  15823. # small command number limits, like on Digital OSF/1 and HP-UX.
  15824. ac_max_sed_lines=48
  15825. ac_sed_frag=1 # Number of current file.
  15826. ac_beg=1 # First line for current file.
  15827. ac_end=$ac_max_sed_lines # Line after last line for current file.
  15828. ac_more_lines=:
  15829. ac_sed_cmds=
  15830. while $ac_more_lines; do
  15831. if test $ac_beg -gt 1; then
  15832. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  15833. else
  15834. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  15835. fi
  15836. if test ! -s $tmp/subs.frag; then
  15837. ac_more_lines=false
  15838. else
  15839. # The purpose of the label and of the branching condition is to
  15840. # speed up the sed processing (if there are no `@' at all, there
  15841. # is no need to browse any of the substitutions).
  15842. # These are the two extra sed commands mentioned above.
  15843. (echo ':t
  15844. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  15845. if test -z "$ac_sed_cmds"; then
  15846. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  15847. else
  15848. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  15849. fi
  15850. ac_sed_frag=`expr $ac_sed_frag + 1`
  15851. ac_beg=$ac_end
  15852. ac_end=`expr $ac_end + $ac_max_sed_lines`
  15853. fi
  15854. done
  15855. if test -z "$ac_sed_cmds"; then
  15856. ac_sed_cmds=cat
  15857. fi
  15858. fi # test -n "$CONFIG_FILES"
  15859. EOF
  15860. cat >>$CONFIG_STATUS <<\EOF
  15861. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  15862. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  15863. case $ac_file in
  15864. - | *:- | *:-:* ) # input from stdin
  15865. cat >$tmp/stdin
  15866. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  15867. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  15868. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  15869. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  15870. * ) ac_file_in=$ac_file.in ;;
  15871. esac
  15872. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  15873. ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15874. X"$ac_file" : 'X\(//\)[^/]' \| \
  15875. X"$ac_file" : 'X\(//\)$' \| \
  15876. X"$ac_file" : 'X\(/\)' \| \
  15877. . : '\(.\)' 2>/dev/null ||
  15878. echo X"$ac_file" |
  15879. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  15880. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  15881. /^X\(\/\/\)$/{ s//\1/; q; }
  15882. /^X\(\/\).*/{ s//\1/; q; }
  15883. s/.*/./; q'`
  15884. if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  15885. { case "$ac_dir" in
  15886. [\\/]* | ?:[\\/]* ) as_incr_dir=;;
  15887. *) as_incr_dir=.;;
  15888. esac
  15889. as_dummy="$ac_dir"
  15890. for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
  15891. case $as_mkdir_dir in
  15892. # Skip DOS drivespec
  15893. ?:) as_incr_dir=$as_mkdir_dir ;;
  15894. *)
  15895. as_incr_dir=$as_incr_dir/$as_mkdir_dir
  15896. test -d "$as_incr_dir" || mkdir "$as_incr_dir"
  15897. ;;
  15898. esac
  15899. done; }
  15900. ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
  15901. # A "../" for each directory in $ac_dir_suffix.
  15902. ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
  15903. else
  15904. ac_dir_suffix= ac_dots=
  15905. fi
  15906. case $srcdir in
  15907. .) ac_srcdir=.
  15908. if test -z "$ac_dots"; then
  15909. ac_top_srcdir=.
  15910. else
  15911. ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
  15912. fi ;;
  15913. [\\/]* | ?:[\\/]* )
  15914. ac_srcdir=$srcdir$ac_dir_suffix;
  15915. ac_top_srcdir=$srcdir ;;
  15916. *) # Relative path.
  15917. ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
  15918. ac_top_srcdir=$ac_dots$srcdir ;;
  15919. esac
  15920. case $INSTALL in
  15921. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  15922. *) ac_INSTALL=$ac_dots$INSTALL ;;
  15923. esac
  15924. if test x"$ac_file" != x-; then
  15925. { echo "$as_me:17684: creating $ac_file" >&5
  15926. echo "$as_me: creating $ac_file" >&6;}
  15927. rm -f "$ac_file"
  15928. fi
  15929. # Let's still pretend it is `configure' which instantiates (i.e., don't
  15930. # use $as_me), people would be surprised to read:
  15931. # /* config.h. Generated automatically by config.status. */
  15932. configure_input="Generated automatically from `echo $ac_file_in |
  15933. sed 's,.*/,,'` by configure."
  15934. # First look for the input files in the build tree, otherwise in the
  15935. # src tree.
  15936. ac_file_inputs=`IFS=:
  15937. for f in $ac_file_in; do
  15938. case $f in
  15939. -) echo $tmp/stdin ;;
  15940. [\\/$]*)
  15941. # Absolute (can't be DOS-style, as IFS=:)
  15942. test -f "$f" || { { echo "$as_me:17702: error: cannot find input file: $f" >&5
  15943. echo "$as_me: error: cannot find input file: $f" >&2;}
  15944. { (exit 1); exit 1; }; }
  15945. echo $f;;
  15946. *) # Relative
  15947. if test -f "$f"; then
  15948. # Build tree
  15949. echo $f
  15950. elif test -f "$srcdir/$f"; then
  15951. # Source tree
  15952. echo $srcdir/$f
  15953. else
  15954. # /dev/null tree
  15955. { { echo "$as_me:17715: error: cannot find input file: $f" >&5
  15956. echo "$as_me: error: cannot find input file: $f" >&2;}
  15957. { (exit 1); exit 1; }; }
  15958. fi;;
  15959. esac
  15960. done` || { (exit 1); exit 1; }
  15961. EOF
  15962. cat >>$CONFIG_STATUS <<EOF
  15963. sed "$ac_vpsub
  15964. $extrasub
  15965. EOF
  15966. cat >>$CONFIG_STATUS <<\EOF
  15967. :t
  15968. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  15969. s,@configure_input@,$configure_input,;t t
  15970. s,@srcdir@,$ac_srcdir,;t t
  15971. s,@top_srcdir@,$ac_top_srcdir,;t t
  15972. s,@INSTALL@,$ac_INSTALL,;t t
  15973. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  15974. rm -f $tmp/stdin
  15975. if test x"$ac_file" != x-; then
  15976. mv $tmp/out $ac_file
  15977. else
  15978. cat $tmp/out
  15979. rm -f $tmp/out
  15980. fi
  15981. done
  15982. EOF
  15983. cat >>$CONFIG_STATUS <<\EOF
  15984. #
  15985. # CONFIG_HEADER section.
  15986. #
  15987. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  15988. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  15989. #
  15990. # ac_d sets the value in "#define NAME VALUE" lines.
  15991. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  15992. ac_dB='[ ].*$,\1#\2'
  15993. ac_dC=' '
  15994. ac_dD=',;t'
  15995. # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  15996. ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  15997. ac_iB='\([ ]\),\1#\2define\3'
  15998. ac_iC=' '
  15999. ac_iD='\4,;t'
  16000. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  16001. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  16002. ac_uB='$,\1#\2define\3'
  16003. ac_uC=' '
  16004. ac_uD=',;t'
  16005. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  16006. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  16007. case $ac_file in
  16008. - | *:- | *:-:* ) # input from stdin
  16009. cat >$tmp/stdin
  16010. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  16011. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  16012. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  16013. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  16014. * ) ac_file_in=$ac_file.in ;;
  16015. esac
  16016. test x"$ac_file" != x- && { echo "$as_me:17781: creating $ac_file" >&5
  16017. echo "$as_me: creating $ac_file" >&6;}
  16018. # First look for the input files in the build tree, otherwise in the
  16019. # src tree.
  16020. ac_file_inputs=`IFS=:
  16021. for f in $ac_file_in; do
  16022. case $f in
  16023. -) echo $tmp/stdin ;;
  16024. [\\/$]*)
  16025. # Absolute (can't be DOS-style, as IFS=:)
  16026. test -f "$f" || { { echo "$as_me:17792: error: cannot find input file: $f" >&5
  16027. echo "$as_me: error: cannot find input file: $f" >&2;}
  16028. { (exit 1); exit 1; }; }
  16029. echo $f;;
  16030. *) # Relative
  16031. if test -f "$f"; then
  16032. # Build tree
  16033. echo $f
  16034. elif test -f "$srcdir/$f"; then
  16035. # Source tree
  16036. echo $srcdir/$f
  16037. else
  16038. # /dev/null tree
  16039. { { echo "$as_me:17805: error: cannot find input file: $f" >&5
  16040. echo "$as_me: error: cannot find input file: $f" >&2;}
  16041. { (exit 1); exit 1; }; }
  16042. fi;;
  16043. esac
  16044. done` || { (exit 1); exit 1; }
  16045. # Remove the trailing spaces.
  16046. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  16047. EOF
  16048. # Transform confdefs.h into a list of #define's. We won't use it as a sed
  16049. # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
  16050. # be either 'cat' or 'sort'.
  16051. cat confdefs.h | uniq >conftest.vals
  16052. # Break up conftest.vals because some shells have a limit on
  16053. # the size of here documents, and old seds have small limits too.
  16054. rm -f conftest.tail
  16055. echo ' rm -f conftest.frag' >> $CONFIG_STATUS
  16056. while grep . conftest.vals >/dev/null
  16057. do
  16058. # Write chunks of a limited-size here document to conftest.frag.
  16059. echo ' cat >> conftest.frag <<CEOF' >> $CONFIG_STATUS
  16060. sed ${ac_max_here_lines}q conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> $CONFIG_STATUS
  16061. echo 'CEOF' >> $CONFIG_STATUS
  16062. sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  16063. rm -f conftest.vals
  16064. mv conftest.tail conftest.vals
  16065. done
  16066. rm -f conftest.vals
  16067. # Run sed to substitute the contents of conftest.frag into $tmp/in at the
  16068. # marker @DEFS@.
  16069. echo ' cat >> conftest.edit <<CEOF
  16070. /@DEFS@/r conftest.frag
  16071. /@DEFS@/d
  16072. CEOF
  16073. sed -f conftest.edit $tmp/in > $tmp/out
  16074. rm -f $tmp/in
  16075. mv $tmp/out $tmp/in
  16076. rm -f conftest.edit conftest.frag
  16077. ' >> $CONFIG_STATUS
  16078. cat >>$CONFIG_STATUS <<\EOF
  16079. # Let's still pretend it is `configure' which instantiates (i.e., don't
  16080. # use $as_me), people would be surprised to read:
  16081. # /* config.h. Generated automatically by config.status. */
  16082. if test x"$ac_file" = x-; then
  16083. echo "/* Generated automatically by configure. */" >$tmp/config.h
  16084. else
  16085. echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
  16086. fi
  16087. cat $tmp/in >>$tmp/config.h
  16088. rm -f $tmp/in
  16089. if test x"$ac_file" != x-; then
  16090. if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
  16091. { echo "$as_me:17863: $ac_file is unchanged" >&5
  16092. echo "$as_me: $ac_file is unchanged" >&6;}
  16093. else
  16094. ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16095. X"$ac_file" : 'X\(//\)[^/]' \| \
  16096. X"$ac_file" : 'X\(//\)$' \| \
  16097. X"$ac_file" : 'X\(/\)' \| \
  16098. . : '\(.\)' 2>/dev/null ||
  16099. echo X"$ac_file" |
  16100. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  16101. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  16102. /^X\(\/\/\)$/{ s//\1/; q; }
  16103. /^X\(\/\).*/{ s//\1/; q; }
  16104. s/.*/./; q'`
  16105. if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  16106. { case "$ac_dir" in
  16107. [\\/]* | ?:[\\/]* ) as_incr_dir=;;
  16108. *) as_incr_dir=.;;
  16109. esac
  16110. as_dummy="$ac_dir"
  16111. for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
  16112. case $as_mkdir_dir in
  16113. # Skip DOS drivespec
  16114. ?:) as_incr_dir=$as_mkdir_dir ;;
  16115. *)
  16116. as_incr_dir=$as_incr_dir/$as_mkdir_dir
  16117. test -d "$as_incr_dir" || mkdir "$as_incr_dir"
  16118. ;;
  16119. esac
  16120. done; }
  16121. fi
  16122. rm -f $ac_file
  16123. mv $tmp/config.h $ac_file
  16124. fi
  16125. else
  16126. cat $tmp/config.h
  16127. rm -f $tmp/config.h
  16128. fi
  16129. done
  16130. EOF
  16131. cat >>$CONFIG_STATUS <<\EOF
  16132. #
  16133. # CONFIG_COMMANDS section.
  16134. #
  16135. for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  16136. ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  16137. ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
  16138. case $ac_dest in
  16139. default )
  16140. for cf_dir in test
  16141. do
  16142. if test ! -d $srcdir/$cf_dir; then
  16143. continue
  16144. elif test -f $srcdir/$cf_dir/programs; then
  16145. $AWK -f $srcdir/test/mk-test.awk ECHO_LINK="$ECHO_LINK" $srcdir/$cf_dir/programs >>$cf_dir/Makefile
  16146. fi
  16147. done
  16148. case $cf_cv_system_name in #(vi
  16149. OS/2*|os2*) #(vi
  16150. LIB_PREFIX=''
  16151. ;;
  16152. *) LIB_PREFIX='lib'
  16153. ;;
  16154. esac
  16155. cf_prefix=$LIB_PREFIX
  16156. if test $cf_cv_shlib_version = cygdll ; then
  16157. TINFO_NAME=$TINFO_ARG_SUFFIX
  16158. TINFO_SUFFIX=.dll
  16159. fi
  16160. for cf_dir in $SRC_SUBDIRS
  16161. do
  16162. if test ! -d $srcdir/$cf_dir ; then
  16163. continue
  16164. elif test -f $srcdir/$cf_dir/modules; then
  16165. SHARED_LIB=
  16166. LIBS_TO_MAKE=
  16167. for cf_item in $cf_LIST_MODELS
  16168. do
  16169. case $cf_item in
  16170. libtool)
  16171. cf_suffix='.la'
  16172. cf_depsuf=$cf_suffix
  16173. ;;
  16174. normal)
  16175. cf_suffix='.a'
  16176. cf_depsuf=$cf_suffix
  16177. ;;
  16178. debug)
  16179. cf_suffix='_g.a'
  16180. cf_depsuf=$cf_suffix
  16181. ;;
  16182. profile)
  16183. cf_suffix='_p.a'
  16184. cf_depsuf=$cf_suffix
  16185. ;;
  16186. shared)
  16187. case $cf_cv_system_name in
  16188. cygwin*)
  16189. cf_suffix='.dll'
  16190. cf_depsuf='.dll.a'
  16191. ;;
  16192. darwin*)
  16193. cf_suffix='.dylib'
  16194. cf_depsuf=$cf_suffix
  16195. ;;
  16196. hpux*)
  16197. case $target in
  16198. ia64*)
  16199. cf_suffix='.so'
  16200. cf_depsuf=$cf_suffix
  16201. ;;
  16202. *)
  16203. cf_suffix='.sl'
  16204. cf_depsuf=$cf_suffix
  16205. ;;
  16206. esac
  16207. ;;
  16208. *) cf_suffix='.so'
  16209. cf_depsuf=$cf_suffix
  16210. ;;
  16211. esac
  16212. esac
  16213. test -n "$LIB_SUFFIX" && cf_suffix="${LIB_SUFFIX}${cf_suffix}"
  16214. test -n "$LIB_SUFFIX" && cf_depsuf="${LIB_SUFFIX}${cf_depsuf}"
  16215. if test $cf_item = shared ; then
  16216. if test "$cf_cv_do_symlinks" = yes ; then
  16217. case "$cf_cv_shlib_version" in #(vi
  16218. rel) #(vi
  16219. case "$cf_cv_system_name" in #(vi
  16220. darwin*)
  16221. case .${LIB_SUFFIX} in
  16222. .w*)
  16223. cf_suffix=`echo $cf_suffix | sed 's/^w//'`
  16224. cf_suffix=w'.${REL_VERSION}'"$cf_suffix"
  16225. ;;
  16226. *)
  16227. cf_suffix='.${REL_VERSION}'"$cf_suffix"
  16228. ;;
  16229. esac
  16230. ;; #(vi
  16231. *) cf_suffix="$cf_suffix"'.${REL_VERSION}' ;;
  16232. esac
  16233. ;;
  16234. abi)
  16235. case "$cf_cv_system_name" in #(vi
  16236. darwin*)
  16237. case .${LIB_SUFFIX} in
  16238. .w*)
  16239. cf_suffix=`echo $cf_suffix | sed 's/^w//'`
  16240. cf_suffix=w'.${ABI_VERSION}'"$cf_suffix"
  16241. ;;
  16242. *)
  16243. cf_suffix='.${ABI_VERSION}'"$cf_suffix"
  16244. ;;
  16245. esac
  16246. ;; #(vi
  16247. *) cf_suffix="$cf_suffix"'.${ABI_VERSION}' ;;
  16248. esac
  16249. ;;
  16250. esac
  16251. fi
  16252. # cygwin needs import library, and has unique naming convention
  16253. # use autodetected ${cf_prefix} for import lib and static lib, but
  16254. # use 'cyg' prefix for shared lib.
  16255. if test $cf_cv_shlib_version = cygdll ; then
  16256. cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
  16257. LIBS_TO_MAKE="$LIBS_TO_MAKE ../lib/cyg${cf_dir}${cf_cygsuf}"
  16258. continue
  16259. fi
  16260. fi
  16261. LIBS_TO_MAKE="$LIBS_TO_MAKE ../lib/${cf_prefix}${cf_dir}${cf_suffix}"
  16262. done
  16263. if test $cf_dir = ncurses ; then
  16264. cf_subsets="$LIB_SUBSETS"
  16265. cf_r_parts="$cf_subsets"
  16266. cf_liblist="$LIBS_TO_MAKE"
  16267. while test -n "$cf_r_parts"
  16268. do
  16269. cf_l_parts=`echo "$cf_r_parts" |sed -e 's/ .*$//'`
  16270. cf_r_parts=`echo "$cf_r_parts" |sed -e 's/^[^ ]* //'`
  16271. if test "$cf_l_parts" != "$cf_r_parts" ; then
  16272. cf_item=
  16273. case $cf_l_parts in #(vi
  16274. *termlib*) #(vi
  16275. cf_item=`echo $cf_liblist |sed -e s%${LIB_NAME}${LIB_SUFFIX}%${TINFO_LIB_SUFFIX}%g`
  16276. ;;
  16277. *ticlib*)
  16278. cf_item=`echo $cf_liblist |sed -e s%${LIB_NAME}${LIB_SUFFIX}%${TICS_LIB_SUFFIX}%g`
  16279. ;;
  16280. *)
  16281. break
  16282. ;;
  16283. esac
  16284. if test -n "$cf_item"; then
  16285. LIBS_TO_MAKE="$cf_item $LIBS_TO_MAKE"
  16286. fi
  16287. else
  16288. break
  16289. fi
  16290. done
  16291. else
  16292. cf_subsets=`echo "$LIB_SUBSETS" | sed -e 's/^termlib.* //'`
  16293. fi
  16294. sed -e "s%@LIBS_TO_MAKE@%$LIBS_TO_MAKE%" \
  16295. -e "s%@SHARED_LIB@%$SHARED_LIB%" \
  16296. $cf_dir/Makefile >$cf_dir/Makefile.out
  16297. mv $cf_dir/Makefile.out $cf_dir/Makefile
  16298. $AWK -f $srcdir/mk-0th.awk \
  16299. libname="${cf_dir}${LIB_SUFFIX}" subsets="$LIB_SUBSETS" \
  16300. $srcdir/$cf_dir/modules >>$cf_dir/Makefile
  16301. for cf_subset in $cf_subsets
  16302. do
  16303. cf_subdirs=
  16304. for cf_item in $cf_LIST_MODELS
  16305. do
  16306. echo "Appending rules for ${cf_item} model (${cf_dir}: ${cf_subset})"
  16307. cf_ITEM=`echo "$cf_item" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
  16308. case $cf_item in
  16309. libtool)
  16310. cf_suffix='.la'
  16311. cf_depsuf=$cf_suffix
  16312. ;;
  16313. normal)
  16314. cf_suffix='.a'
  16315. cf_depsuf=$cf_suffix
  16316. ;;
  16317. debug)
  16318. cf_suffix='_g.a'
  16319. cf_depsuf=$cf_suffix
  16320. ;;
  16321. profile)
  16322. cf_suffix='_p.a'
  16323. cf_depsuf=$cf_suffix
  16324. ;;
  16325. shared)
  16326. case $cf_cv_system_name in
  16327. cygwin*)
  16328. cf_suffix='.dll'
  16329. cf_depsuf='.dll.a'
  16330. ;;
  16331. darwin*)
  16332. cf_suffix='.dylib'
  16333. cf_depsuf=$cf_suffix
  16334. ;;
  16335. hpux*)
  16336. case $target in
  16337. ia64*)
  16338. cf_suffix='.so'
  16339. cf_depsuf=$cf_suffix
  16340. ;;
  16341. *)
  16342. cf_suffix='.sl'
  16343. cf_depsuf=$cf_suffix
  16344. ;;
  16345. esac
  16346. ;;
  16347. *) cf_suffix='.so'
  16348. cf_depsuf=$cf_suffix
  16349. ;;
  16350. esac
  16351. esac
  16352. test -n "$LIB_SUFFIX" && cf_suffix="${LIB_SUFFIX}${cf_suffix}"
  16353. test -n "$LIB_SUFFIX" && cf_depsuf="${LIB_SUFFIX}${cf_depsuf}"
  16354. case $cf_item in
  16355. libtool) cf_subdir='obj_lo' ;;
  16356. normal) cf_subdir='objects' ;;
  16357. debug) cf_subdir='obj_g' ;;
  16358. profile) cf_subdir='obj_p' ;;
  16359. shared)
  16360. case $cf_cv_system_name in #(vi
  16361. cygwin) #(vi
  16362. cf_subdir='objects' ;;
  16363. *)
  16364. cf_subdir='obj_s' ;;
  16365. esac
  16366. esac
  16367. # Test for case where we build libtinfo with a different name.
  16368. cf_libname=$cf_dir
  16369. if test $cf_dir = ncurses ; then
  16370. case $cf_subset in
  16371. *base*)
  16372. cf_libname=${cf_libname}$LIB_SUFFIX
  16373. ;;
  16374. *termlib*)
  16375. cf_libname=$TINFO_LIB_SUFFIX
  16376. ;;
  16377. ticlib*)
  16378. cf_libname=$TICS_LIB_SUFFIX
  16379. ;;
  16380. esac
  16381. else
  16382. cf_libname=${cf_libname}$LIB_SUFFIX
  16383. fi
  16384. if test -n "${DFT_ARG_SUFFIX}" ; then
  16385. # undo $LIB_SUFFIX add-on in CF_LIB_SUFFIX
  16386. cf_suffix=`echo $cf_suffix |sed -e "s%^${LIB_SUFFIX}%%"`
  16387. fi
  16388. # These dependencies really are for development, not
  16389. # builds, but they are useful in porting, too.
  16390. cf_depend="../include/ncurses_cfg.h"
  16391. if test "$srcdir" = "."; then
  16392. cf_reldir="."
  16393. else
  16394. cf_reldir="\${srcdir}"
  16395. fi
  16396. if test -f $srcdir/$cf_dir/$cf_dir.priv.h; then
  16397. cf_depend="$cf_depend $cf_reldir/$cf_dir.priv.h"
  16398. elif test -f $srcdir/$cf_dir/curses.priv.h; then
  16399. cf_depend="$cf_depend $cf_reldir/curses.priv.h"
  16400. fi
  16401. cf_dir_suffix=
  16402. old_cf_suffix="$cf_suffix"
  16403. if test "$cf_cv_shlib_version_infix" = yes ; then
  16404. if test -n "$LIB_SUFFIX" ; then
  16405. case $LIB_SUFFIX in
  16406. w*)
  16407. cf_libname=`echo $cf_libname | sed 's/w$//'`
  16408. cf_suffix=`echo $cf_suffix | sed 's/^w//'`
  16409. cf_dir_suffix=w
  16410. ;;
  16411. esac
  16412. fi
  16413. fi
  16414. $AWK -f $srcdir/mk-1st.awk \
  16415. name=${cf_libname}${cf_dir_suffix} \
  16416. traces=$LIB_TRACING \
  16417. MODEL=$cf_ITEM \
  16418. model=$cf_subdir \
  16419. prefix=$cf_prefix \
  16420. suffix=$cf_suffix \
  16421. subset=$cf_subset \
  16422. TermlibRoot=$TINFO_NAME \
  16423. TermlibSuffix=$TINFO_SUFFIX \
  16424. ShlibVer=$cf_cv_shlib_version \
  16425. ShlibVerInfix=$cf_cv_shlib_version_infix \
  16426. ReLink=${cf_cv_do_relink-no} \
  16427. DoLinks=$cf_cv_do_symlinks \
  16428. rmSoLocs=$cf_cv_rm_so_locs \
  16429. ldconfig="$LDCONFIG" \
  16430. overwrite=$WITH_OVERWRITE \
  16431. depend="$cf_depend" \
  16432. host="$host" \
  16433. $srcdir/$cf_dir/modules >>$cf_dir/Makefile
  16434. cf_suffix="$old_cf_suffix"
  16435. for cf_subdir2 in $cf_subdirs lib
  16436. do
  16437. test $cf_subdir = $cf_subdir2 && break
  16438. done
  16439. test "${cf_subset}.${cf_subdir2}" != "${cf_subset}.${cf_subdir}" && \
  16440. $AWK -f $srcdir/mk-2nd.awk \
  16441. name=$cf_dir \
  16442. traces=$LIB_TRACING \
  16443. MODEL=$cf_ITEM \
  16444. model=$cf_subdir \
  16445. subset=$cf_subset \
  16446. srcdir=$srcdir \
  16447. echo=$WITH_ECHO \
  16448. crenames=$cf_cv_prog_CC_c_o \
  16449. cxxrenames=$cf_cv_prog_CXX_c_o \
  16450. $srcdir/$cf_dir/modules >>$cf_dir/Makefile
  16451. cf_subdirs="$cf_subdirs $cf_subdir"
  16452. done
  16453. done
  16454. fi
  16455. echo ' cd '$cf_dir' && ${MAKE} ${CF_MFLAGS} $@' >>Makefile
  16456. done
  16457. for cf_dir in $SRC_SUBDIRS
  16458. do
  16459. if test ! -d $srcdir/$cf_dir ; then
  16460. continue
  16461. fi
  16462. if test -f $cf_dir/Makefile ; then
  16463. case "$cf_dir" in
  16464. Ada95) #(vi
  16465. echo 'libs \' >> Makefile
  16466. echo 'install.libs \' >> Makefile
  16467. echo 'uninstall.libs ::' >> Makefile
  16468. echo ' cd '$cf_dir' && ${MAKE} ${CF_MFLAGS} $@' >> Makefile
  16469. ;;
  16470. esac
  16471. fi
  16472. if test -f $srcdir/$cf_dir/modules; then
  16473. echo >> Makefile
  16474. if test -f $srcdir/$cf_dir/headers; then
  16475. cat >> Makefile <<CF_EOF
  16476. install.includes \\
  16477. uninstall.includes \\
  16478. CF_EOF
  16479. fi
  16480. if test "$cf_dir" != "c++" ; then
  16481. echo 'lint \' >> Makefile
  16482. fi
  16483. cat >> Makefile <<CF_EOF
  16484. libs \\
  16485. lintlib \\
  16486. install.libs \\
  16487. uninstall.libs \\
  16488. install.$cf_dir \\
  16489. uninstall.$cf_dir ::
  16490. cd $cf_dir && \${MAKE} \${CF_MFLAGS} \$@
  16491. CF_EOF
  16492. elif test -f $srcdir/$cf_dir/headers; then
  16493. cat >> Makefile <<CF_EOF
  16494. libs \\
  16495. install.libs \\
  16496. uninstall.libs \\
  16497. install.includes \\
  16498. uninstall.includes ::
  16499. cd $cf_dir && \${MAKE} \${CF_MFLAGS} \$@
  16500. CF_EOF
  16501. fi
  16502. done
  16503. cat >> Makefile <<CF_EOF
  16504. install.libs uninstall.libs \\
  16505. install.data uninstall.data ::
  16506. $MAKE_TERMINFO cd misc && \${MAKE} \${CF_MFLAGS} \$@
  16507. CF_EOF
  16508. if test "x$cf_with_manpages" = xyes; then
  16509. cat >> Makefile <<CF_EOF
  16510. install.man \\
  16511. uninstall.man ::
  16512. cd man && \${MAKE} \${CF_MFLAGS} \$@
  16513. CF_EOF
  16514. fi
  16515. cat >> Makefile <<CF_EOF
  16516. distclean ::
  16517. rm -f config.cache config.log config.status Makefile include/ncurses_cfg.h
  16518. rm -f headers.sh headers.sed mk_shared_lib.sh
  16519. rm -f edit_man.* man_alias.*
  16520. rm -rf \${DIRS_TO_MAKE}
  16521. CF_EOF
  16522. # Special case: tack's manpage lives in its own directory.
  16523. if test "x$cf_with_manpages" = xyes; then
  16524. if test -d tack ; then
  16525. if test -f $srcdir/$tack.h; then
  16526. cat >> Makefile <<CF_EOF
  16527. install.man \\
  16528. uninstall.man ::
  16529. cd tack && \${MAKE} \${CF_MFLAGS} \$@
  16530. CF_EOF
  16531. fi
  16532. fi
  16533. fi
  16534. rm -f headers.sed headers.sh
  16535. echo creating headers.sh
  16536. cat >headers.sh <<CF_EOF
  16537. #! /bin/sh
  16538. # This shell script is generated by the 'configure' script. It is invoked in a
  16539. # subdirectory of the build tree. It generates a sed-script in the parent
  16540. # directory that is used to adjust includes for header files that reside in a
  16541. # subdirectory of /usr/include, etc.
  16542. PRG=""
  16543. while test \$# != 3
  16544. do
  16545. PRG="\$PRG \$1"; shift
  16546. done
  16547. DST=\$1
  16548. REF=\$2
  16549. SRC=\$3
  16550. TMPSRC=\${TMPDIR-/tmp}/\`basename \$SRC\`\$\$
  16551. TMPSED=\${TMPDIR-/tmp}/headers.sed\$\$
  16552. echo installing \$SRC in \$DST
  16553. CF_EOF
  16554. if test $WITH_CURSES_H = yes; then
  16555. cat >>headers.sh <<CF_EOF
  16556. case \$DST in
  16557. /*/include/*)
  16558. END=\`basename \$DST\`
  16559. for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
  16560. do
  16561. NAME=\`basename \$i\`
  16562. echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
  16563. done
  16564. ;;
  16565. *)
  16566. echo "" >> \$TMPSED
  16567. ;;
  16568. esac
  16569. CF_EOF
  16570. else
  16571. cat >>headers.sh <<CF_EOF
  16572. case \$DST in
  16573. /*/include/*)
  16574. END=\`basename \$DST\`
  16575. for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
  16576. do
  16577. NAME=\`basename \$i\`
  16578. if test "\$NAME" = "curses.h"
  16579. then
  16580. echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
  16581. NAME=ncurses.h
  16582. fi
  16583. echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
  16584. done
  16585. ;;
  16586. *)
  16587. echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
  16588. ;;
  16589. esac
  16590. CF_EOF
  16591. fi
  16592. cat >>headers.sh <<CF_EOF
  16593. rm -f \$TMPSRC
  16594. sed -f \$TMPSED \$SRC > \$TMPSRC
  16595. NAME=\`basename \$SRC\`
  16596. CF_EOF
  16597. if test $WITH_CURSES_H != yes; then
  16598. cat >>headers.sh <<CF_EOF
  16599. test "\$NAME" = "curses.h" && NAME=ncurses.h
  16600. CF_EOF
  16601. fi
  16602. cat >>headers.sh <<CF_EOF
  16603. # Just in case someone gzip'd manpages, remove the conflicting copy.
  16604. test -f \$DST/\$NAME.gz && rm -f \$DST/\$NAME.gz
  16605. eval \$PRG \$TMPSRC \$DST/\$NAME
  16606. rm -f \$TMPSRC \$TMPSED
  16607. CF_EOF
  16608. chmod 0755 headers.sh
  16609. for cf_dir in $SRC_SUBDIRS
  16610. do
  16611. if test ! -d $srcdir/$cf_dir ; then
  16612. continue
  16613. fi
  16614. if test -f $srcdir/$cf_dir/headers; then
  16615. $AWK -f $srcdir/mk-hdr.awk \
  16616. subset="$LIB_SUBSETS" \
  16617. compat="$WITH_CURSES_H" \
  16618. $srcdir/$cf_dir/headers >>$cf_dir/Makefile
  16619. fi
  16620. if test -f $srcdir/$cf_dir/modules; then
  16621. if test "$cf_dir" != "c++" ; then
  16622. cat >>$cf_dir/Makefile <<"CF_EOF"
  16623. depend : ${AUTO_SRC}
  16624. makedepend -- ${CPPFLAGS} -- ${C_SRC}
  16625. # DO NOT DELETE THIS LINE -- make depend depends on it.
  16626. CF_EOF
  16627. fi
  16628. fi
  16629. done
  16630. ;;
  16631. esac
  16632. done
  16633. EOF
  16634. cat >>$CONFIG_STATUS <<\EOF
  16635. { (exit 0); exit 0; }
  16636. EOF
  16637. chmod +x $CONFIG_STATUS
  16638. ac_clean_files=$ac_clean_files_save
  16639. # configure is writing to config.log, and then calls config.status.
  16640. # config.status does its own redirection, appending to config.log.
  16641. # Unfortunately, on DOS this fails, as config.log is still kept open
  16642. # by configure, so config.status won't be able to write to it; its
  16643. # output is simply discarded. So we exec the FD to /dev/null,
  16644. # effectively closing config.log, so it can be properly (re)opened and
  16645. # appended to by config.status. When coming back to configure, we
  16646. # need to make the FD available again.
  16647. if test "$no_create" != yes; then
  16648. ac_cs_success=:
  16649. exec 5>/dev/null
  16650. $SHELL $CONFIG_STATUS || ac_cs_success=false
  16651. exec 5>>config.log
  16652. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  16653. # would make configure fail if this is the last instruction.
  16654. $ac_cs_success || { (exit 1); exit 1; }
  16655. fi
  16656. ${MAKE-make} preinstall