configure 365 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by Autoconf 2.52.
  4. #
  5. # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
  6. # Free Software Foundation, Inc.
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9. # Avoid depending upon Character Ranges.
  10. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  11. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  12. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  13. as_cr_digits='0123456789'
  14. as_cr_alnum=$as_cr_Letters$as_cr_digits
  15. # Sed expression to map a string onto a valid variable name.
  16. as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
  17. # Sed expression to map a string onto a valid CPP name.
  18. as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
  19. # Be Bourne compatible
  20. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  21. emulate sh
  22. NULLCMD=:
  23. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  24. set -o posix
  25. fi
  26. # Name of the executable.
  27. as_me=`echo "$0" |sed 's,.*[\\/],,'`
  28. if expr a : '\(a\)' >/dev/null 2>&1; then
  29. as_expr=expr
  30. else
  31. as_expr=false
  32. fi
  33. rm -f conf$$ conf$$.exe conf$$.file
  34. echo >conf$$.file
  35. if ln -s conf$$.file conf$$ 2>/dev/null; then
  36. # We could just check for DJGPP; but this test a) works b) is more generic
  37. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  38. if test -f conf$$.exe; then
  39. # Don't use ln at all; we don't have any links
  40. as_ln_s='cp -p'
  41. else
  42. as_ln_s='ln -s'
  43. fi
  44. elif ln conf$$.file conf$$ 2>/dev/null; then
  45. as_ln_s=ln
  46. else
  47. as_ln_s='cp -p'
  48. fi
  49. rm -f conf$$ conf$$.exe conf$$.file
  50. as_executable_p="test -f"
  51. # Support unset when possible.
  52. if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
  53. as_unset=unset
  54. else
  55. as_unset=false
  56. fi
  57. # NLS nuisances.
  58. $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
  59. $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
  60. $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
  61. $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
  62. $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
  63. $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
  64. $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
  65. $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
  66. # IFS
  67. # We need space, tab and new line, in precisely that order.
  68. as_nl='
  69. '
  70. IFS=" $as_nl"
  71. # CDPATH.
  72. $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
  73. # Name of the host.
  74. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  75. # so uname gets run too.
  76. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  77. exec 6>&1
  78. #
  79. # Initializations.
  80. #
  81. ac_default_prefix=/usr/local
  82. cross_compiling=no
  83. subdirs=
  84. MFLAGS= MAKEFLAGS=
  85. SHELL=${CONFIG_SHELL-/bin/sh}
  86. # Maximum number of lines to put in a shell here document.
  87. # This variable seems obsolete. It should probably be removed, and
  88. # only ac_max_sed_lines should be used.
  89. : ${ac_max_here_lines=38}
  90. ac_unique_file="src/lisp.h"
  91. # Factoring default headers for most tests.
  92. ac_includes_default="\
  93. #include <stdio.h>
  94. #if HAVE_SYS_TYPES_H
  95. # include <sys/types.h>
  96. #endif
  97. #if HAVE_SYS_STAT_H
  98. # include <sys/stat.h>
  99. #endif
  100. #if STDC_HEADERS
  101. # include <stdlib.h>
  102. # include <stddef.h>
  103. #else
  104. # if HAVE_STDLIB_H
  105. # include <stdlib.h>
  106. # endif
  107. #endif
  108. #if HAVE_STRING_H
  109. # if !STDC_HEADERS && HAVE_MEMORY_H
  110. # include <memory.h>
  111. # endif
  112. # include <string.h>
  113. #endif
  114. #if HAVE_STRINGS_H
  115. # include <strings.h>
  116. #endif
  117. #if HAVE_INTTYPES_H
  118. # include <inttypes.h>
  119. #else
  120. # if HAVE_STDINT_H
  121. # include <stdint.h>
  122. # endif
  123. #endif
  124. #if HAVE_UNISTD_H
  125. # include <unistd.h>
  126. #endif"
  127. # Initialize some variables set by options.
  128. ac_init_help=
  129. ac_init_version=false
  130. # The variables have the same names as the options, with
  131. # dashes changed to underlines.
  132. cache_file=/dev/null
  133. exec_prefix=NONE
  134. no_create=
  135. no_recursion=
  136. prefix=NONE
  137. program_prefix=NONE
  138. program_suffix=NONE
  139. program_transform_name=s,x,x,
  140. silent=
  141. site=
  142. srcdir=
  143. verbose=
  144. x_includes=NONE
  145. x_libraries=NONE
  146. # Installation directory options.
  147. # These are left unexpanded so users can "make install exec_prefix=/foo"
  148. # and all the variables that are supposed to be based on exec_prefix
  149. # by default will actually change.
  150. # Use braces instead of parens because sh, perl, etc. also accept them.
  151. bindir='${exec_prefix}/bin'
  152. sbindir='${exec_prefix}/sbin'
  153. libexecdir='${exec_prefix}/libexec'
  154. datadir='${prefix}/share'
  155. sysconfdir='${prefix}/etc'
  156. sharedstatedir='${prefix}/com'
  157. localstatedir='${prefix}/var'
  158. libdir='${exec_prefix}/lib'
  159. includedir='${prefix}/include'
  160. oldincludedir='/usr/include'
  161. infodir='${prefix}/info'
  162. mandir='${prefix}/man'
  163. # Identity of this package.
  164. PACKAGE_NAME=
  165. PACKAGE_TARNAME=
  166. PACKAGE_VERSION=
  167. PACKAGE_STRING=
  168. PACKAGE_BUGREPORT=
  169. ac_prev=
  170. for ac_option
  171. do
  172. # If the previous option needs an argument, assign it.
  173. if test -n "$ac_prev"; then
  174. eval "$ac_prev=\$ac_option"
  175. ac_prev=
  176. continue
  177. fi
  178. ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  179. # Accept the important Cygnus configure options, so we can diagnose typos.
  180. case $ac_option in
  181. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  182. ac_prev=bindir ;;
  183. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  184. bindir=$ac_optarg ;;
  185. -build | --build | --buil | --bui | --bu)
  186. ac_prev=build_alias ;;
  187. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  188. build_alias=$ac_optarg ;;
  189. -cache-file | --cache-file | --cache-fil | --cache-fi \
  190. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  191. ac_prev=cache_file ;;
  192. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  193. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  194. cache_file=$ac_optarg ;;
  195. --config-cache | -C)
  196. cache_file=config.cache ;;
  197. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  198. ac_prev=datadir ;;
  199. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  200. | --da=*)
  201. datadir=$ac_optarg ;;
  202. -disable-* | --disable-*)
  203. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  204. # Reject names that are not valid shell variable names.
  205. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  206. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  207. { (exit 1); exit 1; }; }
  208. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  209. eval "enable_$ac_feature=no" ;;
  210. -enable-* | --enable-*)
  211. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  212. # Reject names that are not valid shell variable names.
  213. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  214. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  215. { (exit 1); exit 1; }; }
  216. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  217. case $ac_option in
  218. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  219. *) ac_optarg=yes ;;
  220. esac
  221. eval "enable_$ac_feature='$ac_optarg'" ;;
  222. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  223. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  224. | --exec | --exe | --ex)
  225. ac_prev=exec_prefix ;;
  226. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  227. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  228. | --exec=* | --exe=* | --ex=*)
  229. exec_prefix=$ac_optarg ;;
  230. -gas | --gas | --ga | --g)
  231. # Obsolete; use --with-gas.
  232. with_gas=yes ;;
  233. -help | --help | --hel | --he | -h)
  234. ac_init_help=long ;;
  235. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  236. ac_init_help=recursive ;;
  237. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  238. ac_init_help=short ;;
  239. -host | --host | --hos | --ho)
  240. ac_prev=host_alias ;;
  241. -host=* | --host=* | --hos=* | --ho=*)
  242. host_alias=$ac_optarg ;;
  243. -includedir | --includedir | --includedi | --included | --include \
  244. | --includ | --inclu | --incl | --inc)
  245. ac_prev=includedir ;;
  246. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  247. | --includ=* | --inclu=* | --incl=* | --inc=*)
  248. includedir=$ac_optarg ;;
  249. -infodir | --infodir | --infodi | --infod | --info | --inf)
  250. ac_prev=infodir ;;
  251. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  252. infodir=$ac_optarg ;;
  253. -libdir | --libdir | --libdi | --libd)
  254. ac_prev=libdir ;;
  255. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  256. libdir=$ac_optarg ;;
  257. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  258. | --libexe | --libex | --libe)
  259. ac_prev=libexecdir ;;
  260. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  261. | --libexe=* | --libex=* | --libe=*)
  262. libexecdir=$ac_optarg ;;
  263. -localstatedir | --localstatedir | --localstatedi | --localstated \
  264. | --localstate | --localstat | --localsta | --localst \
  265. | --locals | --local | --loca | --loc | --lo)
  266. ac_prev=localstatedir ;;
  267. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  268. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  269. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  270. localstatedir=$ac_optarg ;;
  271. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  272. ac_prev=mandir ;;
  273. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  274. mandir=$ac_optarg ;;
  275. -nfp | --nfp | --nf)
  276. # Obsolete; use --without-fp.
  277. with_fp=no ;;
  278. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  279. | --no-cr | --no-c)
  280. no_create=yes ;;
  281. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  282. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  283. no_recursion=yes ;;
  284. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  285. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  286. | --oldin | --oldi | --old | --ol | --o)
  287. ac_prev=oldincludedir ;;
  288. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  289. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  290. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  291. oldincludedir=$ac_optarg ;;
  292. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  293. ac_prev=prefix ;;
  294. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  295. prefix=$ac_optarg ;;
  296. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  297. | --program-pre | --program-pr | --program-p)
  298. ac_prev=program_prefix ;;
  299. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  300. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  301. program_prefix=$ac_optarg ;;
  302. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  303. | --program-suf | --program-su | --program-s)
  304. ac_prev=program_suffix ;;
  305. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  306. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  307. program_suffix=$ac_optarg ;;
  308. -program-transform-name | --program-transform-name \
  309. | --program-transform-nam | --program-transform-na \
  310. | --program-transform-n | --program-transform- \
  311. | --program-transform | --program-transfor \
  312. | --program-transfo | --program-transf \
  313. | --program-trans | --program-tran \
  314. | --progr-tra | --program-tr | --program-t)
  315. ac_prev=program_transform_name ;;
  316. -program-transform-name=* | --program-transform-name=* \
  317. | --program-transform-nam=* | --program-transform-na=* \
  318. | --program-transform-n=* | --program-transform-=* \
  319. | --program-transform=* | --program-transfor=* \
  320. | --program-transfo=* | --program-transf=* \
  321. | --program-trans=* | --program-tran=* \
  322. | --progr-tra=* | --program-tr=* | --program-t=*)
  323. program_transform_name=$ac_optarg ;;
  324. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  325. | -silent | --silent | --silen | --sile | --sil)
  326. silent=yes ;;
  327. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  328. ac_prev=sbindir ;;
  329. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  330. | --sbi=* | --sb=*)
  331. sbindir=$ac_optarg ;;
  332. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  333. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  334. | --sharedst | --shareds | --shared | --share | --shar \
  335. | --sha | --sh)
  336. ac_prev=sharedstatedir ;;
  337. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  338. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  339. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  340. | --sha=* | --sh=*)
  341. sharedstatedir=$ac_optarg ;;
  342. -site | --site | --sit)
  343. ac_prev=site ;;
  344. -site=* | --site=* | --sit=*)
  345. site=$ac_optarg ;;
  346. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  347. ac_prev=srcdir ;;
  348. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  349. srcdir=$ac_optarg ;;
  350. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  351. | --syscon | --sysco | --sysc | --sys | --sy)
  352. ac_prev=sysconfdir ;;
  353. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  354. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  355. sysconfdir=$ac_optarg ;;
  356. -target | --target | --targe | --targ | --tar | --ta | --t)
  357. ac_prev=target_alias ;;
  358. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  359. target_alias=$ac_optarg ;;
  360. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  361. verbose=yes ;;
  362. -version | --version | --versio | --versi | --vers | -V)
  363. ac_init_version=: ;;
  364. -with-* | --with-*)
  365. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  366. # Reject names that are not valid shell variable names.
  367. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  368. { echo "$as_me: error: invalid package name: $ac_package" >&2
  369. { (exit 1); exit 1; }; }
  370. ac_package=`echo $ac_package| sed 's/-/_/g'`
  371. case $ac_option in
  372. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  373. *) ac_optarg=yes ;;
  374. esac
  375. eval "with_$ac_package='$ac_optarg'" ;;
  376. -without-* | --without-*)
  377. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  378. # Reject names that are not valid shell variable names.
  379. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  380. { echo "$as_me: error: invalid package name: $ac_package" >&2
  381. { (exit 1); exit 1; }; }
  382. ac_package=`echo $ac_package | sed 's/-/_/g'`
  383. eval "with_$ac_package=no" ;;
  384. --x)
  385. # Obsolete; use --with-x.
  386. with_x=yes ;;
  387. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  388. | --x-incl | --x-inc | --x-in | --x-i)
  389. ac_prev=x_includes ;;
  390. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  391. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  392. x_includes=$ac_optarg ;;
  393. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  394. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  395. ac_prev=x_libraries ;;
  396. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  397. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  398. x_libraries=$ac_optarg ;;
  399. -*) { echo "$as_me: error: unrecognized option: $ac_option
  400. Try \`$0 --help' for more information." >&2
  401. { (exit 1); exit 1; }; }
  402. ;;
  403. *=*)
  404. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  405. # Reject names that are not valid shell variable names.
  406. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  407. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  408. { (exit 1); exit 1; }; }
  409. ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  410. eval "$ac_envvar='$ac_optarg'"
  411. export $ac_envvar ;;
  412. *)
  413. # FIXME: should be removed in autoconf 3.0.
  414. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  415. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  416. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  417. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  418. ;;
  419. esac
  420. done
  421. if test -n "$ac_prev"; then
  422. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  423. { echo "$as_me: error: missing argument to $ac_option" >&2
  424. { (exit 1); exit 1; }; }
  425. fi
  426. # Be sure to have absolute paths.
  427. for ac_var in exec_prefix prefix
  428. do
  429. eval ac_val=$`echo $ac_var`
  430. case $ac_val in
  431. [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  432. *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
  433. { (exit 1); exit 1; }; };;
  434. esac
  435. done
  436. # Be sure to have absolute paths.
  437. for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  438. localstatedir libdir includedir oldincludedir infodir mandir
  439. do
  440. eval ac_val=$`echo $ac_var`
  441. case $ac_val in
  442. [\\/$]* | ?:[\\/]* ) ;;
  443. *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
  444. { (exit 1); exit 1; }; };;
  445. esac
  446. done
  447. # There might be people who depend on the old broken behavior: `$host'
  448. # used to hold the argument of --host etc.
  449. build=$build_alias
  450. host=$host_alias
  451. target=$target_alias
  452. # FIXME: should be removed in autoconf 3.0.
  453. if test "x$host_alias" != x; then
  454. if test "x$build_alias" = x; then
  455. cross_compiling=maybe
  456. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  457. If a cross compiler is detected then cross compile mode will be used." >&2
  458. elif test "x$build_alias" != "x$host_alias"; then
  459. cross_compiling=yes
  460. fi
  461. fi
  462. ac_tool_prefix=
  463. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  464. test "$silent" = yes && exec 6>/dev/null
  465. # Find the source files, if location was not specified.
  466. if test -z "$srcdir"; then
  467. ac_srcdir_defaulted=yes
  468. # Try the directory containing this script, then its parent.
  469. ac_prog=$0
  470. ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
  471. test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  472. srcdir=$ac_confdir
  473. if test ! -r $srcdir/$ac_unique_file; then
  474. srcdir=..
  475. fi
  476. else
  477. ac_srcdir_defaulted=no
  478. fi
  479. if test ! -r $srcdir/$ac_unique_file; then
  480. if test "$ac_srcdir_defaulted" = yes; then
  481. { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
  482. { (exit 1); exit 1; }; }
  483. else
  484. { echo "$as_me: error: cannot find sources in $srcdir" >&2
  485. { (exit 1); exit 1; }; }
  486. fi
  487. fi
  488. srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  489. ac_env_build_alias_set=${build_alias+set}
  490. ac_env_build_alias_value=$build_alias
  491. ac_cv_env_build_alias_set=${build_alias+set}
  492. ac_cv_env_build_alias_value=$build_alias
  493. ac_env_host_alias_set=${host_alias+set}
  494. ac_env_host_alias_value=$host_alias
  495. ac_cv_env_host_alias_set=${host_alias+set}
  496. ac_cv_env_host_alias_value=$host_alias
  497. ac_env_target_alias_set=${target_alias+set}
  498. ac_env_target_alias_value=$target_alias
  499. ac_cv_env_target_alias_set=${target_alias+set}
  500. ac_cv_env_target_alias_value=$target_alias
  501. ac_env_CC_set=${CC+set}
  502. ac_env_CC_value=$CC
  503. ac_cv_env_CC_set=${CC+set}
  504. ac_cv_env_CC_value=$CC
  505. ac_env_CFLAGS_set=${CFLAGS+set}
  506. ac_env_CFLAGS_value=$CFLAGS
  507. ac_cv_env_CFLAGS_set=${CFLAGS+set}
  508. ac_cv_env_CFLAGS_value=$CFLAGS
  509. ac_env_LDFLAGS_set=${LDFLAGS+set}
  510. ac_env_LDFLAGS_value=$LDFLAGS
  511. ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  512. ac_cv_env_LDFLAGS_value=$LDFLAGS
  513. ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  514. ac_env_CPPFLAGS_value=$CPPFLAGS
  515. ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  516. ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  517. ac_env_CPP_set=${CPP+set}
  518. ac_env_CPP_value=$CPP
  519. ac_cv_env_CPP_set=${CPP+set}
  520. ac_cv_env_CPP_value=$CPP
  521. #
  522. # Report the --help message.
  523. #
  524. if test "$ac_init_help" = "long"; then
  525. # Omit some internal or obsolete options to make the list less imposing.
  526. # This message is too long to be a string in the A/UX 3.1 sh.
  527. cat <<EOF
  528. \`configure' configures this package to adapt to many kinds of systems.
  529. Usage: $0 [OPTION]... [VAR=VALUE]...
  530. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  531. VAR=VALUE. See below for descriptions of some of the useful variables.
  532. Defaults for the options are specified in brackets.
  533. Configuration:
  534. -h, --help display this help and exit
  535. --help=short display options specific to this package
  536. --help=recursive display the short help of all the included packages
  537. -V, --version display version information and exit
  538. -q, --quiet, --silent do not print \`checking...' messages
  539. --cache-file=FILE cache test results in FILE [disabled]
  540. -C, --config-cache alias for \`--cache-file=config.cache'
  541. -n, --no-create do not create output files
  542. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  543. EOF
  544. cat <<EOF
  545. Installation directories:
  546. --prefix=PREFIX install architecture-independent files in PREFIX
  547. [$ac_default_prefix]
  548. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  549. [PREFIX]
  550. By default, \`make install' will install all the files in
  551. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  552. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  553. for instance \`--prefix=\$HOME'.
  554. For better control, use the options below.
  555. Fine tuning of the installation directories:
  556. --bindir=DIR user executables [EPREFIX/bin]
  557. --sbindir=DIR system admin executables [EPREFIX/sbin]
  558. --libexecdir=DIR program executables [EPREFIX/libexec]
  559. --datadir=DIR read-only architecture-independent data [PREFIX/share]
  560. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  561. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  562. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  563. --libdir=DIR object code libraries [EPREFIX/lib]
  564. --includedir=DIR C header files [PREFIX/include]
  565. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  566. --infodir=DIR info documentation [PREFIX/info]
  567. --mandir=DIR man documentation [PREFIX/man]
  568. EOF
  569. cat <<\EOF
  570. Program names:
  571. --program-prefix=PREFIX prepend PREFIX to installed program names
  572. --program-suffix=SUFFIX append SUFFIX to installed program names
  573. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  574. X features:
  575. --x-includes=DIR X include files are in DIR
  576. --x-libraries=DIR X library files are in DIR
  577. System types:
  578. --build=BUILD configure for building on BUILD [guessed]
  579. --host=HOST build programs to run on HOST [BUILD]
  580. EOF
  581. fi
  582. if test -n "$ac_init_help"; then
  583. cat <<\EOF
  584. Optional Features:
  585. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  586. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  587. --disable-largefile omit support for large files
  588. Optional Packages:
  589. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  590. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  591. --without-gcc don't use GCC to compile Emacs if GCC is found
  592. --without-pop don't support POP mail retrieval with movemail
  593. --with-kerberos support Kerberos-authenticated POP
  594. --with-kerberos5 support Kerberos version 5 authenticated POP
  595. --with-hesiod support Hesiod to get the POP server host
  596. --with-x-toolkit=KIT use an X toolkit (KIT = yes/lucid/athena/motif/no)
  597. --with-xpm use -lXpm for displaying XPM images
  598. --with-jpeg use -ljpeg for displaying JPEG images
  599. --with-tiff use -ltiff for displaying TIFF images
  600. --with-gif use -lungif for displaying GIF images
  601. --with-png use -lpng for displaying PNG images
  602. --without-toolkit-scroll-bars
  603. don't use Motif or Xaw3d scroll bars
  604. --without-xim don't use X11 XIM
  605. --with-x use the X Window System
  606. Some influential environment variables:
  607. CC C compiler command
  608. CFLAGS C compiler flags
  609. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  610. nonstandard directory <lib dir>
  611. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  612. headers in a nonstandard directory <include dir>
  613. CPP C preprocessor
  614. Use these variables to override the choices made by `configure' or to help
  615. it to find libraries and programs with nonstandard names/locations.
  616. EOF
  617. fi
  618. if test "$ac_init_help" = "recursive"; then
  619. # If there are subdirs, report their specific --help.
  620. ac_popdir=`pwd`
  621. for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
  622. cd $ac_subdir
  623. # A "../" for each directory in /$ac_subdir.
  624. ac_dots=`echo $ac_subdir |
  625. sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
  626. case $srcdir in
  627. .) # No --srcdir option. We are building in place.
  628. ac_sub_srcdir=$srcdir ;;
  629. [\\/]* | ?:[\\/]* ) # Absolute path.
  630. ac_sub_srcdir=$srcdir/$ac_subdir ;;
  631. *) # Relative path.
  632. ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
  633. esac
  634. # Check for guested configure; otherwise get Cygnus style configure.
  635. if test -f $ac_sub_srcdir/configure.gnu; then
  636. echo
  637. $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
  638. elif test -f $ac_sub_srcdir/configure; then
  639. echo
  640. $SHELL $ac_sub_srcdir/configure --help=recursive
  641. elif test -f $ac_sub_srcdir/configure.ac ||
  642. test -f $ac_sub_srcdir/configure.in; then
  643. echo
  644. $ac_configure --help
  645. else
  646. echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
  647. fi
  648. cd $ac_popdir
  649. done
  650. fi
  651. test -n "$ac_init_help" && exit 0
  652. if $ac_init_version; then
  653. cat <<\EOF
  654. Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
  655. Free Software Foundation, Inc.
  656. This configure script is free software; the Free Software Foundation
  657. gives unlimited permission to copy, distribute and modify it.
  658. EOF
  659. exit 0
  660. fi
  661. exec 5>config.log
  662. cat >&5 <<EOF
  663. This file contains any messages produced by compilers while
  664. running configure, to aid debugging if configure makes a mistake.
  665. It was created by $as_me, which was
  666. generated by GNU Autoconf 2.52. Invocation command line was
  667. $ $0 $@
  668. EOF
  669. {
  670. cat <<_ASUNAME
  671. ## ---------- ##
  672. ## Platform. ##
  673. ## ---------- ##
  674. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  675. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  676. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  677. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  678. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  679. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  680. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  681. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  682. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  683. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  684. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  685. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  686. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  687. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  688. PATH = $PATH
  689. _ASUNAME
  690. } >&5
  691. cat >&5 <<EOF
  692. ## ------------ ##
  693. ## Core tests. ##
  694. ## ------------ ##
  695. EOF
  696. # Keep a trace of the command line.
  697. # Strip out --no-create and --no-recursion so they do not pile up.
  698. # Also quote any args containing shell meta-characters.
  699. ac_configure_args=
  700. ac_sep=
  701. for ac_arg
  702. do
  703. case $ac_arg in
  704. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  705. | --no-cr | --no-c) ;;
  706. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  707. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  708. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  709. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
  710. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  711. ac_sep=" " ;;
  712. *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
  713. ac_sep=" " ;;
  714. esac
  715. # Get rid of the leading space.
  716. done
  717. # When interrupted or exit'd, cleanup temporary files, and complete
  718. # config.log. We remove comments because anyway the quotes in there
  719. # would cause problems or look ugly.
  720. trap 'exit_status=$?
  721. # Save into config.log some information that might help in debugging.
  722. echo >&5
  723. echo "## ----------------- ##" >&5
  724. echo "## Cache variables. ##" >&5
  725. echo "## ----------------- ##" >&5
  726. echo >&5
  727. # The following way of writing the cache mishandles newlines in values,
  728. {
  729. (set) 2>&1 |
  730. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  731. *ac_space=\ *)
  732. sed -n \
  733. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  734. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  735. ;;
  736. *)
  737. sed -n \
  738. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  739. ;;
  740. esac;
  741. } >&5
  742. sed "/^$/d" confdefs.h >conftest.log
  743. if test -s conftest.log; then
  744. echo >&5
  745. echo "## ------------ ##" >&5
  746. echo "## confdefs.h. ##" >&5
  747. echo "## ------------ ##" >&5
  748. echo >&5
  749. cat conftest.log >&5
  750. fi
  751. (echo; echo) >&5
  752. test "$ac_signal" != 0 &&
  753. echo "$as_me: caught signal $ac_signal" >&5
  754. echo "$as_me: exit $exit_status" >&5
  755. rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
  756. exit $exit_status
  757. ' 0
  758. for ac_signal in 1 2 13 15; do
  759. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  760. done
  761. ac_signal=0
  762. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  763. rm -rf conftest* confdefs.h
  764. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  765. echo >confdefs.h
  766. # Let the site file select an alternate cache file if it wants to.
  767. # Prefer explicitly selected file to automatically selected ones.
  768. if test -z "$CONFIG_SITE"; then
  769. if test "x$prefix" != xNONE; then
  770. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  771. else
  772. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  773. fi
  774. fi
  775. for ac_site_file in $CONFIG_SITE; do
  776. if test -r "$ac_site_file"; then
  777. { echo "$as_me:892: loading site script $ac_site_file" >&5
  778. echo "$as_me: loading site script $ac_site_file" >&6;}
  779. cat "$ac_site_file" >&5
  780. . "$ac_site_file"
  781. fi
  782. done
  783. if test -r "$cache_file"; then
  784. # Some versions of bash will fail to source /dev/null (special
  785. # files actually), so we avoid doing that.
  786. if test -f "$cache_file"; then
  787. { echo "$as_me:903: loading cache $cache_file" >&5
  788. echo "$as_me: loading cache $cache_file" >&6;}
  789. case $cache_file in
  790. [\\/]* | ?:[\\/]* ) . $cache_file;;
  791. *) . ./$cache_file;;
  792. esac
  793. fi
  794. else
  795. { echo "$as_me:911: creating cache $cache_file" >&5
  796. echo "$as_me: creating cache $cache_file" >&6;}
  797. >$cache_file
  798. fi
  799. # Check that the precious variables saved in the cache have kept the same
  800. # value.
  801. ac_cache_corrupted=false
  802. for ac_var in `(set) 2>&1 |
  803. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  804. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  805. eval ac_new_set=\$ac_env_${ac_var}_set
  806. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  807. eval ac_new_val="\$ac_env_${ac_var}_value"
  808. case $ac_old_set,$ac_new_set in
  809. set,)
  810. { echo "$as_me:927: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  811. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  812. ac_cache_corrupted=: ;;
  813. ,set)
  814. { echo "$as_me:931: error: \`$ac_var' was not set in the previous run" >&5
  815. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  816. ac_cache_corrupted=: ;;
  817. ,);;
  818. *)
  819. if test "x$ac_old_val" != "x$ac_new_val"; then
  820. { echo "$as_me:937: error: \`$ac_var' has changed since the previous run:" >&5
  821. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  822. { echo "$as_me:939: former value: $ac_old_val" >&5
  823. echo "$as_me: former value: $ac_old_val" >&2;}
  824. { echo "$as_me:941: current value: $ac_new_val" >&5
  825. echo "$as_me: current value: $ac_new_val" >&2;}
  826. ac_cache_corrupted=:
  827. fi;;
  828. esac
  829. # Pass precious variables to config.status. It doesn't matter if
  830. # we pass some twice (in addition to the command line arguments).
  831. if test "$ac_new_set" = set; then
  832. case $ac_new_val in
  833. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  834. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
  835. ac_configure_args="$ac_configure_args '$ac_arg'"
  836. ;;
  837. *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
  838. ;;
  839. esac
  840. fi
  841. done
  842. if $ac_cache_corrupted; then
  843. { echo "$as_me:960: error: changes in the environment can compromise the build" >&5
  844. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  845. { { echo "$as_me:962: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  846. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  847. { (exit 1); exit 1; }; }
  848. fi
  849. ac_ext=c
  850. ac_cpp='$CPP $CPPFLAGS'
  851. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  852. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  853. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  854. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  855. *c*,-n*) ECHO_N= ECHO_C='
  856. ' ECHO_T=' ' ;;
  857. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  858. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  859. esac
  860. echo "#! $SHELL" >conftest.sh
  861. echo "exit 0" >>conftest.sh
  862. chmod +x conftest.sh
  863. if { (echo "$as_me:982: PATH=\".;.\"; conftest.sh") >&5
  864. (PATH=".;."; conftest.sh) 2>&5
  865. ac_status=$?
  866. echo "$as_me:985: \$? = $ac_status" >&5
  867. (exit $ac_status); }; then
  868. ac_path_separator=';'
  869. else
  870. ac_path_separator=:
  871. fi
  872. PATH_SEPARATOR="$ac_path_separator"
  873. rm -f conftest.sh
  874. ac_config_headers="$ac_config_headers src/config.h:src/config.in"
  875. test "$program_prefix" != NONE &&
  876. program_transform_name="s,^,$program_prefix,;$program_transform_name"
  877. # Use a double $ so make ignores it.
  878. test "$program_suffix" != NONE &&
  879. program_transform_name="s,\$,$program_suffix,;$program_transform_name"
  880. # Double any \ or $. echo might interpret backslashes.
  881. # By default was `s,x,x', remove it if useless.
  882. cat <<\_ACEOF >conftest.sed
  883. s/[\\$]/&&/g;s/;s,x,x,$//
  884. _ACEOF
  885. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  886. rm conftest.sed
  887. lispdir='${datadir}/emacs/${version}/lisp'
  888. locallisppath='${datadir}/emacs/${version}/site-lisp:'\
  889. '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
  890. lisppath='${locallisppath}:${lispdir}'
  891. etcdir='${datadir}/emacs/${version}/etc'
  892. archlibdir='${libexecdir}/emacs/${version}/${configuration}'
  893. docdir='${datadir}/emacs/${version}/etc'
  894. # Check whether --with-gcc or --without-gcc was given.
  895. if test "${with_gcc+set}" = set; then
  896. withval="$with_gcc"
  897. fi;
  898. # Check whether --with-pop or --without-pop was given.
  899. if test "${with_pop+set}" = set; then
  900. withval="$with_pop"
  901. if test "$withval" = yes; then
  902. cat >>confdefs.h <<\EOF
  903. #define MAIL_USE_POP 1
  904. EOF
  905. else :
  906. fi
  907. else
  908. cat >>confdefs.h <<\EOF
  909. #define MAIL_USE_POP 1
  910. EOF
  911. fi;
  912. # Check whether --with-kerberos or --without-kerberos was given.
  913. if test "${with_kerberos+set}" = set; then
  914. withval="$with_kerberos"
  915. cat >>confdefs.h <<\EOF
  916. #define KERBEROS 1
  917. EOF
  918. fi;
  919. # Check whether --with-kerberos5 or --without-kerberos5 was given.
  920. if test "${with_kerberos5+set}" = set; then
  921. withval="$with_kerberos5"
  922. if test "${with_kerberos5+set}" = set; then
  923. if test "${with_kerberos+set}" != set; then
  924. with_kerberos=yes
  925. cat >>confdefs.h <<\EOF
  926. #define KERBEROS 1
  927. EOF
  928. fi
  929. fi
  930. cat >>confdefs.h <<\EOF
  931. #define KERBEROS5 1
  932. EOF
  933. fi;
  934. # Check whether --with-hesiod or --without-hesiod was given.
  935. if test "${with_hesiod+set}" = set; then
  936. withval="$with_hesiod"
  937. cat >>confdefs.h <<\EOF
  938. #define HESIOD 1
  939. EOF
  940. fi;
  941. # Check whether --with-x-toolkit or --without-x-toolkit was given.
  942. if test "${with_x_toolkit+set}" = set; then
  943. withval="$with_x_toolkit"
  944. case "${withval}" in
  945. y | ye | yes ) val=athena ;;
  946. n | no ) val=no ;;
  947. l | lu | luc | luci | lucid ) val=lucid ;;
  948. a | at | ath | athe | athen | athena ) val=athena ;;
  949. m | mo | mot | moti | motif ) val=motif ;;
  950. * )
  951. { { echo "$as_me:1086: error: \`--with-x-toolkit=$withval' is invalid\;
  952. this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'.
  953. Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
  954. echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
  955. this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'.
  956. Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
  957. { (exit 1); exit 1; }; }
  958. ;;
  959. esac
  960. with_x_toolkit=$val
  961. fi;
  962. # Check whether --with-xpm or --without-xpm was given.
  963. if test "${with_xpm+set}" = set; then
  964. withval="$with_xpm"
  965. fi;
  966. # Check whether --with-jpeg or --without-jpeg was given.
  967. if test "${with_jpeg+set}" = set; then
  968. withval="$with_jpeg"
  969. fi;
  970. # Check whether --with-tiff or --without-tiff was given.
  971. if test "${with_tiff+set}" = set; then
  972. withval="$with_tiff"
  973. fi;
  974. # Check whether --with-gif or --without-gif was given.
  975. if test "${with_gif+set}" = set; then
  976. withval="$with_gif"
  977. fi;
  978. # Check whether --with-png or --without-png was given.
  979. if test "${with_png+set}" = set; then
  980. withval="$with_png"
  981. fi;
  982. # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
  983. if test "${with_toolkit_scroll_bars+set}" = set; then
  984. withval="$with_toolkit_scroll_bars"
  985. fi;
  986. # Check whether --with-xim or --without-xim was given.
  987. if test "${with_xim+set}" = set; then
  988. withval="$with_xim"
  989. fi;
  990. #### Make srcdir absolute, if it isn't already. It's important to
  991. #### avoid running the path through pwd unnecessarily, since pwd can
  992. #### give you automounter prefixes, which can go away. We do all this
  993. #### so Emacs can find its files when run uninstalled.
  994. ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
  995. unset CDPATH
  996. case "${srcdir}" in
  997. /* ) ;;
  998. . )
  999. ## We may be able to use the $PWD environment variable to make this
  1000. ## absolute. But sometimes PWD is inaccurate.
  1001. if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".${PWD}" ;
  1002. then
  1003. srcdir="$PWD"
  1004. else
  1005. srcdir="`(cd ${srcdir}; pwd)`"
  1006. fi
  1007. ;;
  1008. * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
  1009. esac
  1010. #### Check if the source directory already has a configured system in it.
  1011. if test `pwd` != `(cd ${srcdir} && pwd)` \
  1012. && test -f "${srcdir}/src/config.h" ; then
  1013. { echo "$as_me:1165: WARNING: The directory tree \`${srcdir}' is being used
  1014. as a build directory right now; it has been configured in its own
  1015. right. To configure in another directory as well, you MUST
  1016. use GNU make. If you do not have GNU make, then you must
  1017. now do \`make distclean' in ${srcdir},
  1018. and then run $0 again." >&5
  1019. echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
  1020. as a build directory right now; it has been configured in its own
  1021. right. To configure in another directory as well, you MUST
  1022. use GNU make. If you do not have GNU make, then you must
  1023. now do \`make distclean' in ${srcdir},
  1024. and then run $0 again." >&2;}
  1025. extrasub='/^VPATH[ ]*=/c\
  1026. vpath %.c $(srcdir)\
  1027. vpath %.h $(srcdir)\
  1028. vpath %.y $(srcdir)\
  1029. vpath %.l $(srcdir)\
  1030. vpath %.s $(srcdir)\
  1031. vpath %.in $(srcdir)\
  1032. vpath %.texi $(srcdir)'
  1033. fi
  1034. #### Given the configuration name, set machfile and opsysfile to the
  1035. #### names of the m/*.h and s/*.h files we should use.
  1036. ### Canonicalize the configuration name.
  1037. ac_aux_dir=
  1038. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  1039. if test -f $ac_dir/install-sh; then
  1040. ac_aux_dir=$ac_dir
  1041. ac_install_sh="$ac_aux_dir/install-sh -c"
  1042. break
  1043. elif test -f $ac_dir/install.sh; then
  1044. ac_aux_dir=$ac_dir
  1045. ac_install_sh="$ac_aux_dir/install.sh -c"
  1046. break
  1047. elif test -f $ac_dir/shtool; then
  1048. ac_aux_dir=$ac_dir
  1049. ac_install_sh="$ac_aux_dir/shtool install -c"
  1050. break
  1051. fi
  1052. done
  1053. if test -z "$ac_aux_dir"; then
  1054. { { echo "$as_me:1210: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
  1055. echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
  1056. { (exit 1); exit 1; }; }
  1057. fi
  1058. ac_config_guess="$SHELL $ac_aux_dir/config.guess"
  1059. ac_config_sub="$SHELL $ac_aux_dir/config.sub"
  1060. ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
  1061. # Make sure we can run config.sub.
  1062. $ac_config_sub sun4 >/dev/null 2>&1 ||
  1063. { { echo "$as_me:1220: error: cannot run $ac_config_sub" >&5
  1064. echo "$as_me: error: cannot run $ac_config_sub" >&2;}
  1065. { (exit 1); exit 1; }; }
  1066. echo "$as_me:1224: checking build system type" >&5
  1067. echo $ECHO_N "checking build system type... $ECHO_C" >&6
  1068. if test "${ac_cv_build+set}" = set; then
  1069. echo $ECHO_N "(cached) $ECHO_C" >&6
  1070. else
  1071. ac_cv_build_alias=$build_alias
  1072. test -z "$ac_cv_build_alias" &&
  1073. ac_cv_build_alias=`$ac_config_guess`
  1074. test -z "$ac_cv_build_alias" &&
  1075. { { echo "$as_me:1233: error: cannot guess build type; you must specify one" >&5
  1076. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1077. { (exit 1); exit 1; }; }
  1078. ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
  1079. { { echo "$as_me:1237: error: $ac_config_sub $ac_cv_build_alias failed." >&5
  1080. echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
  1081. { (exit 1); exit 1; }; }
  1082. fi
  1083. echo "$as_me:1242: result: $ac_cv_build" >&5
  1084. echo "${ECHO_T}$ac_cv_build" >&6
  1085. build=$ac_cv_build
  1086. build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1087. build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1088. build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1089. echo "$as_me:1249: checking host system type" >&5
  1090. echo $ECHO_N "checking host system type... $ECHO_C" >&6
  1091. if test "${ac_cv_host+set}" = set; then
  1092. echo $ECHO_N "(cached) $ECHO_C" >&6
  1093. else
  1094. ac_cv_host_alias=$host_alias
  1095. test -z "$ac_cv_host_alias" &&
  1096. ac_cv_host_alias=$ac_cv_build_alias
  1097. ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
  1098. { { echo "$as_me:1258: error: $ac_config_sub $ac_cv_host_alias failed" >&5
  1099. echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
  1100. { (exit 1); exit 1; }; }
  1101. fi
  1102. echo "$as_me:1263: result: $ac_cv_host" >&5
  1103. echo "${ECHO_T}$ac_cv_host" >&6
  1104. host=$ac_cv_host
  1105. host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1106. host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1107. host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1108. canonical=$host
  1109. configuration=${host_alias-$host}
  1110. ### If you add support for a new configuration, add code to this
  1111. ### switch statement to recognize your configuration name and select
  1112. ### the appropriate operating system and machine description files.
  1113. ### You would hope that you could choose an m/*.h file pretty much
  1114. ### based on the machine portion of the configuration name, and an s-
  1115. ### file based on the operating system portion. However, it turns out
  1116. ### that each m/*.h file is pretty manufacturer-specific - for
  1117. ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
  1118. ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
  1119. ### machines. So we basically have to have a special case for each
  1120. ### configuration name.
  1121. ###
  1122. ### As far as handling version numbers on operating systems is
  1123. ### concerned, make sure things will fail in a fixable way. If
  1124. ### /etc/MACHINES doesn't say anything about version numbers, be
  1125. ### prepared to handle anything reasonably. If version numbers
  1126. ### matter, be sure /etc/MACHINES says something about it.
  1127. ###
  1128. ### Eric Raymond says we should accept strings like "sysvr4" to mean
  1129. ### "System V Release 4"; he writes, "The old convention encouraged
  1130. ### confusion between `system' and `release' levels'."
  1131. machine='' opsys='' unported=no
  1132. case "${canonical}" in
  1133. ## FreeBSD ports
  1134. *-*-freebsd* )
  1135. opsys=freebsd
  1136. case "${canonical}" in
  1137. alpha*-*-freebsd*) machine=alpha ;;
  1138. i[3456]86-*-freebsd*) machine=intel386 ;;
  1139. esac
  1140. ;;
  1141. ## NetBSD ports
  1142. *-*-netbsd* )
  1143. opsys=netbsd
  1144. case "${canonical}" in
  1145. alpha*-*-netbsd*) machine=alpha ;;
  1146. i[3456]86-*-netbsd*) machine=intel386 ;;
  1147. m68k-*-netbsd*)
  1148. # This is somewhat bogus.
  1149. machine=hp9000s300 ;;
  1150. powerpc-apple-netbsd*) machine=macppc ;;
  1151. mips-*-netbsd*) machine=pmax ;;
  1152. mipsel-*-netbsd*) machine=pmax ;;
  1153. ns32k-*-netbsd*) machine=ns32000 ;;
  1154. powerpc-*-netbsd*) machine=macppc ;;
  1155. sparc*-*-netbsd*) machine=sparc ;;
  1156. vax-*-netbsd*) machine=vax ;;
  1157. arm-*-netbsd*) machine=arm ;;
  1158. esac
  1159. ;;
  1160. ## OpenBSD ports
  1161. *-*-openbsd* )
  1162. opsys=openbsd
  1163. case "${canonical}" in
  1164. alpha*-*-openbsd*) machine=alpha ;;
  1165. i386-*-openbsd*) machine=intel386 ;;
  1166. m68k-*-openbsd*) machine=hp9000s300 ;;
  1167. mipsel-*-openbsd*) machine=pmax ;;
  1168. ns32k-*-openbsd*) machine=ns32000 ;;
  1169. sparc-*-openbsd*) machine=sparc ;;
  1170. vax-*-openbsd*) machine=vax ;;
  1171. esac
  1172. ;;
  1173. ## Acorn RISCiX:
  1174. arm-acorn-riscix1.1* )
  1175. machine=acorn opsys=riscix1-1
  1176. ;;
  1177. arm-acorn-riscix1.2* | arm-acorn-riscix )
  1178. ## This name is riscix12 instead of riscix1.2
  1179. ## to avoid a file name conflict on MSDOS.
  1180. machine=acorn opsys=riscix12
  1181. ;;
  1182. ## BSDI ports
  1183. *-*-bsdi* )
  1184. opsys=bsdi
  1185. case "${canonical}" in
  1186. i[345]86-*-bsdi*) machine=intel386 ;;
  1187. sparc-*-bsdi*) machine=sparc ;;
  1188. powerpc-*-bsdi*) machine=macppc ;;
  1189. esac
  1190. case "${canonical}" in
  1191. *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
  1192. *-*-bsdi2.0* ) opsys=bsdos2 ;;
  1193. *-*-bsdi2* ) opsys=bsdos2-1 ;;
  1194. *-*-bsdi3* ) opsys=bsdos3 ;;
  1195. *-*-bsdi[45]* ) opsys=bsdos4 ;;
  1196. esac
  1197. ;;
  1198. ## Alliant machines
  1199. ## Strictly speaking, we need the version of the alliant operating
  1200. ## system to choose the right machine file, but currently the
  1201. ## configuration name doesn't tell us enough to choose the right
  1202. ## one; we need to give alliants their own operating system name to
  1203. ## do this right. When someone cares, they can help us.
  1204. fx80-alliant-* )
  1205. machine=alliant4 opsys=bsd4-2
  1206. ;;
  1207. i860-alliant-* )
  1208. machine=alliant-2800 opsys=bsd4-3
  1209. ;;
  1210. ## Alpha (DEC) machines.
  1211. alpha*-dec-osf* )
  1212. machine=alpha opsys=osf1
  1213. # This is needed to find X11R6.1 libraries for certain tests.
  1214. NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
  1215. GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
  1216. # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
  1217. # due to non-traditional preprocessing with the current compiler
  1218. # defaults. OSF 4 can also have that compiler version, and there
  1219. # seems always to have been a usable /usr/bin/cpp.
  1220. NON_GNU_CPP=/usr/bin/cpp
  1221. case "${canonical}" in
  1222. alpha*-dec-osf[5-9]*)
  1223. opsys=osf5-0 ;;
  1224. esac
  1225. ;;
  1226. alpha*-*-linux-gnu* )
  1227. machine=alpha opsys=gnu-linux
  1228. ;;
  1229. arm*-*-linux-gnu* )
  1230. machine=arm opsys=gnu-linux
  1231. ;;
  1232. ppc-*-linux | \
  1233. powerpc-*-linux* )
  1234. machine=macppc opsys=gnu-linux
  1235. ;;
  1236. ## Altos 3068
  1237. m68*-altos-sysv* )
  1238. machine=altos opsys=usg5-2
  1239. ;;
  1240. ## Amdahl UTS
  1241. 580-amdahl-sysv* )
  1242. machine=amdahl opsys=usg5-2-2
  1243. ;;
  1244. ## Apollo, Domain/OS
  1245. m68*-apollo-* )
  1246. machine=apollo opsys=bsd4-3
  1247. ;;
  1248. ## AT&T 3b2, 3b5, 3b15, 3b20
  1249. we32k-att-sysv* )
  1250. machine=att3b opsys=usg5-2-2
  1251. ;;
  1252. ## AT&T 3b1 - The Mighty Unix PC!
  1253. m68*-att-sysv* )
  1254. machine=7300 opsys=usg5-2-2
  1255. ;;
  1256. ## Bull dpx20
  1257. rs6000-bull-bosx* )
  1258. machine=ibmrs6000 opsys=aix3-2
  1259. ;;
  1260. ## Bull dpx2
  1261. m68*-bull-sysv3* )
  1262. machine=dpx2 opsys=usg5-3
  1263. ;;
  1264. ## Bull sps7
  1265. m68*-bull-sysv2* )
  1266. machine=sps7 opsys=usg5-2
  1267. ;;
  1268. ## CCI 5/32, 6/32 -- see "Tahoe".
  1269. ## Celerity
  1270. ## I don't know what configuration name to use for this; config.sub
  1271. ## doesn't seem to know anything about it. Hey, Celerity users, get
  1272. ## in touch with us!
  1273. celerity-celerity-bsd* )
  1274. machine=celerity opsys=bsd4-2
  1275. ;;
  1276. ## Clipper
  1277. ## What operating systems does this chip run that Emacs has been
  1278. ## tested on?
  1279. clipper-* )
  1280. machine=clipper
  1281. ## We'll use the catch-all code at the bottom to guess the
  1282. ## operating system.
  1283. ;;
  1284. ## Convex
  1285. *-convex-bsd* | *-convex-convexos* )
  1286. machine=convex opsys=bsd4-3
  1287. ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
  1288. NON_GNU_CPP="cc -E -P"
  1289. ;;
  1290. ## Cubix QBx/386
  1291. i[3456]86-cubix-sysv* )
  1292. machine=intel386 opsys=usg5-3
  1293. ;;
  1294. ## Cydra 5
  1295. cydra*-cydrome-sysv* )
  1296. machine=cydra5 opsys=usg5-3
  1297. ;;
  1298. ## Data General AViiON Machines
  1299. ## DG changed naming conventions with the release of 5.4.4.10, they
  1300. ## dropped the initial 5.4 but left the intervening R. Because of the
  1301. ## R this shouldn't conflict with older versions of the OS (which I
  1302. ## think were named like dgux4.*). In addition, DG new AViiONs series
  1303. ## uses either Motorola M88k or Intel Pentium CPUs.
  1304. m88k-dg-dguxR4.* | m88k-dg-dgux4* )
  1305. machine=aviion opsys=dgux4
  1306. ;;
  1307. m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
  1308. ## This name is dgux5-4-3 instead of dgux5-4r3
  1309. ## to avoid a file name conflict on MSDOS.
  1310. machine=aviion opsys=dgux5-4-3
  1311. ;;
  1312. m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
  1313. machine=aviion opsys=dgux5-4r2
  1314. ;;
  1315. m88k-dg-dgux* )
  1316. machine=aviion opsys=dgux
  1317. ;;
  1318. ## Data General AViiON Intel (x86) Machines
  1319. ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
  1320. ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
  1321. i[345]86-dg-dguxR4* )
  1322. machine=aviion-intel opsys=dgux4
  1323. ;;
  1324. ## DECstations
  1325. mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
  1326. machine=pmax opsys=bsd4-2
  1327. ;;
  1328. mips-dec-ultrix4.[12]* | mips-dec-bsd* )
  1329. machine=pmax opsys=bsd4-3
  1330. ;;
  1331. mips-dec-ultrix* )
  1332. machine=pmax opsys=ultrix4-3
  1333. ;;
  1334. mips-dec-osf* )
  1335. machine=pmax opsys=osf1
  1336. ;;
  1337. mips-dec-mach_bsd4.3* )
  1338. machine=pmax opsys=mach-bsd4-3
  1339. ;;
  1340. ## Motorola Delta machines
  1341. m68k-motorola-sysv* | m68000-motorola-sysv* )
  1342. machine=delta opsys=usg5-3
  1343. if test -z "`type gnucc | grep 'not found'`"
  1344. then
  1345. if test -s /etc/167config
  1346. then CC="gnucc -m68040"
  1347. else CC="gnucc -m68881"
  1348. fi
  1349. else
  1350. if test -z "`type gcc | grep 'not found'`"
  1351. then CC=gcc
  1352. else CC=cc
  1353. fi
  1354. fi
  1355. ;;
  1356. m88k-motorola-sysv4* )
  1357. # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
  1358. # needs POSIX_SIGNALS and therefore needs usg5-4-2.
  1359. # I hope there are not other 4.0 versions for this machine
  1360. # which really need usg5-4 instead.
  1361. machine=delta88k opsys=usg5-4-2
  1362. ;;
  1363. m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
  1364. machine=delta88k opsys=usg5-3
  1365. ;;
  1366. ## Dual machines
  1367. m68*-dual-sysv* )
  1368. machine=dual opsys=usg5-2
  1369. ;;
  1370. m68*-dual-uniplus* )
  1371. machine=dual opsys=unipl5-2
  1372. ;;
  1373. ## Elxsi 6400
  1374. elxsi-elxsi-sysv* )
  1375. machine=elxsi opsys=usg5-2
  1376. ;;
  1377. ## Encore machines
  1378. ns16k-encore-bsd* )
  1379. machine=ns16000 opsys=umax
  1380. ;;
  1381. ## The GEC 63 - apparently, this port isn't really finished yet.
  1382. # I'm sure we finished off the last of the machines, though. -- fx
  1383. ## Gould Power Node and NP1
  1384. pn-gould-bsd4.2* )
  1385. machine=gould opsys=bsd4-2
  1386. ;;
  1387. pn-gould-bsd4.3* )
  1388. machine=gould opsys=bsd4-3
  1389. ;;
  1390. np1-gould-bsd* )
  1391. machine=gould-np1 opsys=bsd4-3
  1392. ;;
  1393. ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
  1394. ## as far as Emacs is concerned).
  1395. m88k-harris-cxux* )
  1396. # Build needs to be different on 7.0 and later releases
  1397. case "`uname -r`" in
  1398. [56].[0-9] ) machine=nh4000 opsys=cxux ;;
  1399. [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
  1400. esac
  1401. NON_GNU_CPP="/lib/cpp"
  1402. ;;
  1403. ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
  1404. m68k-harris-cxux* )
  1405. machine=nh3000 opsys=cxux
  1406. ;;
  1407. ## Harris power pc NightHawk running Power UNIX (Series 6000)
  1408. powerpc-harris-powerunix )
  1409. machine=nh6000 opsys=powerunix
  1410. NON_GNU_CPP="cc -Xo -E -P"
  1411. ;;
  1412. ## SR2001/SR2201 running HI-UX/MPP
  1413. hppa1.1-hitachi-hiuxmpp* )
  1414. machine=sr2k opsys=hiuxmpp
  1415. ;;
  1416. hppa1.1-hitachi-hiuxwe2* )
  1417. machine=sr2k opsys=hiuxwe2
  1418. ;;
  1419. ## Honeywell XPS100
  1420. xps*-honeywell-sysv* )
  1421. machine=xps100 opsys=usg5-2
  1422. ;;
  1423. ## HP 9000 series 200 or 300
  1424. m68*-hp-bsd* )
  1425. machine=hp9000s300 opsys=bsd4-3
  1426. ;;
  1427. ## HP/UX 7, 8, 9, and 10 are supported on these machines.
  1428. m68*-hp-hpux* )
  1429. case "`uname -r`" in
  1430. ## Someone's system reports A.B8.05 for this.
  1431. ## I wonder what other possibilities there are.
  1432. *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
  1433. *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
  1434. *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
  1435. *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
  1436. *) machine=hp9000s300 opsys=hpux ;;
  1437. esac
  1438. ;;
  1439. ## HP 9000 series 700 and 800, running HP/UX
  1440. hppa*-hp-hpux7* )
  1441. machine=hp800 opsys=hpux
  1442. ;;
  1443. hppa*-hp-hpux8* )
  1444. machine=hp800 opsys=hpux8
  1445. ;;
  1446. hppa*-hp-hpux9shr* )
  1447. machine=hp800 opsys=hpux9shr
  1448. ;;
  1449. hppa*-hp-hpux9* )
  1450. machine=hp800 opsys=hpux9
  1451. ;;
  1452. hppa*-hp-hpux10* )
  1453. machine=hp800 opsys=hpux10
  1454. ;;
  1455. hppa*-hp-hpux1[1-9]* )
  1456. machine=hp800 opsys=hpux11
  1457. ;;
  1458. hppa*-*-linux-gnu* )
  1459. machine=hp800 opsys=gnu-linux
  1460. ;;
  1461. ## HP 9000 series 700 and 800, running HP/UX
  1462. hppa*-hp-hpux* )
  1463. ## Cross-compilation? Nah!
  1464. case "`uname -r`" in
  1465. ## Someone's system reports A.B8.05 for this.
  1466. ## I wonder what other possibilities there are.
  1467. *.B8.* ) machine=hp800 opsys=hpux8 ;;
  1468. *.08.* ) machine=hp800 opsys=hpux8 ;;
  1469. *.09.* ) machine=hp800 opsys=hpux9 ;;
  1470. *) machine=hp800 opsys=hpux10 ;;
  1471. esac
  1472. ;;
  1473. hppa*-*-nextstep* )
  1474. machine=hp800 opsys=nextstep
  1475. ;;
  1476. ## Orion machines
  1477. orion-orion-bsd* )
  1478. machine=orion opsys=bsd4-2
  1479. ;;
  1480. clipper-orion-bsd* )
  1481. machine=orion105 opsys=bsd4-2
  1482. ;;
  1483. ## IBM machines
  1484. i[3456]86-ibm-aix1.1* )
  1485. machine=ibmps2-aix opsys=usg5-2-2
  1486. ;;
  1487. i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
  1488. machine=ibmps2-aix opsys=usg5-3
  1489. ;;
  1490. i370-ibm-aix*)
  1491. machine=ibm370aix opsys=usg5-3
  1492. ;;
  1493. s390-*-linux-gnu)
  1494. machine=ibms390 opsys=gnu-linux
  1495. ;;
  1496. rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
  1497. machine=ibmrs6000 opsys=aix3-1
  1498. ;;
  1499. rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
  1500. machine=ibmrs6000 opsys=aix3-2-5
  1501. ;;
  1502. rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
  1503. machine=ibmrs6000 opsys=aix4-1
  1504. ;;
  1505. rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
  1506. machine=ibmrs6000 opsys=aix4-2
  1507. ;;
  1508. rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
  1509. machine=ibmrs6000 opsys=aix4
  1510. ;;
  1511. rs6000-ibm-aix4* | powerpc-ibm-aix4* )
  1512. machine=ibmrs6000 opsys=aix4-1
  1513. ;;
  1514. rs6000-ibm-aix* | powerpc-ibm-aix* )
  1515. machine=ibmrs6000 opsys=aix3-2
  1516. ;;
  1517. romp-ibm-bsd4.3* )
  1518. machine=ibmrt opsys=bsd4-3
  1519. ;;
  1520. romp-ibm-bsd4.2* )
  1521. machine=ibmrt opsys=bsd4-2
  1522. ;;
  1523. romp-ibm-aos4.3* )
  1524. machine=ibmrt opsys=bsd4-3
  1525. ;;
  1526. romp-ibm-aos4.2* )
  1527. machine=ibmrt opsys=bsd4-2
  1528. ;;
  1529. romp-ibm-aos* )
  1530. machine=ibmrt opsys=bsd4-3
  1531. ;;
  1532. romp-ibm-bsd* )
  1533. machine=ibmrt opsys=bsd4-3
  1534. ;;
  1535. romp-ibm-aix* )
  1536. machine=ibmrt-aix opsys=usg5-2-2
  1537. ;;
  1538. ## Integrated Solutions `Optimum V'
  1539. m68*-isi-bsd4.2* )
  1540. machine=isi-ov opsys=bsd4-2
  1541. ;;
  1542. m68*-isi-bsd4.3* )
  1543. machine=isi-ov opsys=bsd4-3
  1544. ;;
  1545. ## Intel 386 machines where we do care about the manufacturer
  1546. i[3456]86-intsys-sysv* )
  1547. machine=is386 opsys=usg5-2-2
  1548. ;;
  1549. ## Prime EXL
  1550. i[3456]86-prime-sysv* )
  1551. machine=i386 opsys=usg5-3
  1552. ;;
  1553. ## Sequent Symmetry running Dynix
  1554. i[3456]86-sequent-bsd* )
  1555. machine=symmetry opsys=bsd4-3
  1556. ;;
  1557. ## Sequent Symmetry running ptx 4, which is a modified SVR4.
  1558. i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
  1559. machine=sequent-ptx opsys=ptx4
  1560. NON_GNU_CPP=/lib/cpp
  1561. ;;
  1562. ## Sequent Symmetry running DYNIX/ptx
  1563. ## Use the old cpp rather than the newer ANSI one.
  1564. i[3456]86-sequent-ptx* )
  1565. machine=sequent-ptx opsys=ptx
  1566. NON_GNU_CPP="/lib/cpp"
  1567. ;;
  1568. ## ncr machine running svr4.3.
  1569. i[3456]86-ncr-sysv4.3 )
  1570. machine=ncr386 opsys=usg5-4-3
  1571. ;;
  1572. ## Unspecified sysv on an ncr machine defaults to svr4.2.
  1573. ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
  1574. i[3456]86-ncr-sysv* )
  1575. machine=ncr386 opsys=usg5-4-2
  1576. ;;
  1577. ## Intel Paragon OSF/1
  1578. i860-intel-osf1* )
  1579. machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
  1580. ;;
  1581. ## Intel 860
  1582. i860-*-sysv4* )
  1583. machine=i860 opsys=usg5-4
  1584. NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
  1585. NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
  1586. ;;
  1587. ## Macintosh PowerPC
  1588. powerpc*-*-linux-gnu* )
  1589. machine=macppc opsys=gnu-linux
  1590. ;;
  1591. ## Masscomp machines
  1592. m68*-masscomp-rtu* )
  1593. machine=masscomp opsys=rtu
  1594. ;;
  1595. ## Megatest machines
  1596. m68*-megatest-bsd* )
  1597. machine=mega68 opsys=bsd4-2
  1598. ;;
  1599. ## Workstations sold by MIPS
  1600. ## This is not necessarily all workstations using the MIPS processor -
  1601. ## Irises are produced by SGI, and DECstations by DEC.
  1602. ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
  1603. ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
  1604. ## it gives for choosing between the alternatives seems to be "Use
  1605. ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
  1606. ## the BSD world." I'll assume that these are instructions for
  1607. ## handling two odd situations, and that every other situation
  1608. ## should use mips.h and usg5-2-2, they being listed first.
  1609. mips-mips-usg* )
  1610. machine=mips4
  1611. ## Fall through to the general code at the bottom to decide on the OS.
  1612. ;;
  1613. mips-mips-riscos4* )
  1614. machine=mips4 opsys=bsd4-3
  1615. NON_GNU_CC="cc -systype bsd43"
  1616. NON_GNU_CPP="cc -systype bsd43 -E"
  1617. ;;
  1618. mips-mips-riscos5* )
  1619. machine=mips4 opsys=riscos5
  1620. NON_GNU_CC="cc -systype bsd43"
  1621. NON_GNU_CPP="cc -systype bsd43 -E"
  1622. ;;
  1623. mips-mips-bsd* )
  1624. machine=mips opsys=bsd4-3
  1625. ;;
  1626. mips-mips-* )
  1627. machine=mips opsys=usg5-2-2
  1628. ;;
  1629. ## NeXT
  1630. m68*-next-* | m68k-*-nextstep* )
  1631. machine=m68k opsys=nextstep
  1632. ;;
  1633. ## The complete machine from National Semiconductor
  1634. ns32k-ns-genix* )
  1635. machine=ns32000 opsys=usg5-2
  1636. ;;
  1637. ## NCR machines
  1638. m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
  1639. machine=tower32 opsys=usg5-2-2
  1640. ;;
  1641. m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
  1642. machine=tower32v3 opsys=usg5-3
  1643. ;;
  1644. ## NEC EWS4800
  1645. mips-nec-sysv4*)
  1646. machine=ews4800 opsys=ux4800
  1647. ;;
  1648. ## Nixdorf Targon 31
  1649. m68*-nixdorf-sysv* )
  1650. machine=targon31 opsys=usg5-2-2
  1651. ;;
  1652. ## Nu (TI or LMI)
  1653. m68*-nu-sysv* )
  1654. machine=nu opsys=usg5-2
  1655. ;;
  1656. ## Plexus
  1657. m68*-plexus-sysv* )
  1658. machine=plexus opsys=usg5-2
  1659. ;;
  1660. ## PowerPC reference platform
  1661. powerpcle-*-solaris2* )
  1662. machine=prep
  1663. opsys=sol2-5
  1664. ;;
  1665. ## Pyramid machines
  1666. ## I don't really have any idea what sort of processor the Pyramid has,
  1667. ## so I'm assuming it is its own architecture.
  1668. pyramid-pyramid-bsd* )
  1669. machine=pyramid opsys=bsd4-2
  1670. ;;
  1671. ## Sequent Balance
  1672. ns32k-sequent-bsd4.2* )
  1673. machine=sequent opsys=bsd4-2
  1674. ;;
  1675. ns32k-sequent-bsd4.3* )
  1676. machine=sequent opsys=bsd4-3
  1677. ;;
  1678. ## Siemens Nixdorf
  1679. mips-siemens-sysv* | mips-sni-sysv*)
  1680. machine=mips-siemens opsys=usg5-4
  1681. NON_GNU_CC=/usr/ccs/bin/cc
  1682. NON_GNU_CPP=/usr/ccs/lib/cpp
  1683. ;;
  1684. ## Silicon Graphics machines
  1685. ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
  1686. m68*-sgi-iris3.5* )
  1687. machine=irist opsys=iris3-5
  1688. ;;
  1689. m68*-sgi-iris3.6* | m68*-sgi-iris*)
  1690. machine=irist opsys=iris3-6
  1691. ;;
  1692. ## Iris 4D
  1693. mips-sgi-irix3* )
  1694. machine=iris4d opsys=irix3-3
  1695. ;;
  1696. mips-sgi-irix4* )
  1697. machine=iris4d opsys=irix4-0
  1698. ;;
  1699. mips-sgi-irix6.5 )
  1700. machine=iris4d opsys=irix6-5
  1701. # Without defining _LANGUAGE_C, things get masked out in the headers
  1702. # so that, for instance, grepping for `free' in stdlib.h fails and
  1703. # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
  1704. NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
  1705. NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
  1706. ;;
  1707. mips-sgi-irix6* )
  1708. machine=iris4d opsys=irix6-0
  1709. # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
  1710. # but presumably it does no harm.
  1711. NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
  1712. # -32 probably isn't necessary in later v.6s -- anyone know which?
  1713. NON_GCC_TEST_OPTIONS=-32
  1714. ;;
  1715. mips-sgi-irix5.[01]* )
  1716. machine=iris4d opsys=irix5-0
  1717. ;;
  1718. mips-sgi-irix5* | mips-sgi-irix* )
  1719. machine=iris4d opsys=irix5-2
  1720. ;;
  1721. ## SONY machines
  1722. m68*-sony-bsd4.2* )
  1723. machine=news opsys=bsd4-2
  1724. ;;
  1725. m68*-sony-bsd4.3* )
  1726. machine=news opsys=bsd4-3
  1727. ;;
  1728. m68*-sony-newsos3* | m68*-sony-news3*)
  1729. machine=news opsys=bsd4-3
  1730. ;;
  1731. mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
  1732. machine=news-risc opsys=bsd4-3
  1733. ;;
  1734. mips-sony-newsos6* )
  1735. machine=news-r6 opsys=newsos6
  1736. ;;
  1737. mips-sony-news* )
  1738. machine=news-risc opsys=newsos5
  1739. ;;
  1740. ## Stride
  1741. m68*-stride-sysv* )
  1742. machine=stride opsys=usg5-2
  1743. ;;
  1744. ## Suns
  1745. sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
  1746. machine=sparc opsys=gnu-linux
  1747. ;;
  1748. *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
  1749. | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
  1750. | rs6000-*-solaris2*)
  1751. case "${canonical}" in
  1752. m68*-sunos1* ) machine=sun1 ;;
  1753. m68*-sunos2* ) machine=sun2 ;;
  1754. m68* ) machine=sun3 ;;
  1755. i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
  1756. i[3456]86-*-* ) machine=intel386 ;;
  1757. powerpcle* ) machine=powerpcle ;;
  1758. powerpc* | rs6000* ) machine=ibmrs6000 ;;
  1759. sparc* ) machine=sparc ;;
  1760. * ) unported=yes ;;
  1761. esac
  1762. case "${canonical}" in
  1763. ## The Sun386 didn't get past 4.0.
  1764. i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
  1765. *-sunos4.0* ) opsys=sunos4-0 ;;
  1766. *-sunos4.1.[3-9]*noshare )
  1767. ## This name is sunos413 instead of sunos4-1-3
  1768. ## to avoid a file name conflict on MSDOS.
  1769. opsys=sunos413
  1770. NON_GNU_CPP=/usr/lib/cpp
  1771. NON_GCC_TEST_OPTIONS=-Bstatic
  1772. GCC_TEST_OPTIONS=-static
  1773. ;;
  1774. *-sunos4.1.[3-9]* | *-sunos4shr*)
  1775. opsys=sunos4shr
  1776. NON_GNU_CPP=/usr/lib/cpp
  1777. ;;
  1778. *-sunos4* | *-sunos )
  1779. opsys=sunos4-1
  1780. NON_GCC_TEST_OPTIONS=-Bstatic
  1781. GCC_TEST_OPTIONS=-static
  1782. ;;
  1783. *-sunos5.3* | *-solaris2.3* )
  1784. opsys=sol2-3
  1785. NON_GNU_CPP=/usr/ccs/lib/cpp
  1786. ;;
  1787. *-sunos5.4* | *-solaris2.4* )
  1788. opsys=sol2-4
  1789. NON_GNU_CPP=/usr/ccs/lib/cpp
  1790. RANLIB="ar -ts"
  1791. ;;
  1792. *-sunos5.5* | *-solaris2.5* )
  1793. opsys=sol2-5
  1794. NON_GNU_CPP=/usr/ccs/lib/cpp
  1795. RANLIB="ar -ts"
  1796. ;;
  1797. *-sunos5* | *-solaris* )
  1798. opsys=sol2-5
  1799. NON_GNU_CPP=/usr/ccs/lib/cpp
  1800. ;;
  1801. * ) opsys=bsd4-2 ;;
  1802. esac
  1803. ## Watch out for a compiler that we know will not work.
  1804. case "${canonical}" in
  1805. *-solaris* | *-sunos5* )
  1806. if [ "x$CC" = x/usr/ucb/cc ]; then
  1807. ## /usr/ucb/cc doesn't work;
  1808. ## we should find some other compiler that does work.
  1809. unset CC
  1810. fi
  1811. ;;
  1812. *) ;;
  1813. esac
  1814. ;;
  1815. sparc-*-nextstep* )
  1816. machine=sparc opsys=nextstep
  1817. ;;
  1818. ## Tadpole 68k
  1819. m68*-tadpole-sysv* )
  1820. machine=tad68k opsys=usg5-3
  1821. ;;
  1822. ## Tahoe machines
  1823. tahoe-tahoe-bsd4.2* )
  1824. machine=tahoe opsys=bsd4-2
  1825. ;;
  1826. tahoe-tahoe-bsd4.3* )
  1827. machine=tahoe opsys=bsd4-3
  1828. ;;
  1829. ## Tandem Integrity S2
  1830. mips-tandem-sysv* )
  1831. machine=tandem-s2 opsys=usg5-3
  1832. ;;
  1833. ## Tektronix XD88
  1834. m88k-tektronix-sysv3* )
  1835. machine=tekxd88 opsys=usg5-3
  1836. ;;
  1837. ## Tektronix 16000 box (6130?)
  1838. ns16k-tektronix-bsd* )
  1839. machine=ns16000 opsys=bsd4-2
  1840. ;;
  1841. ## Tektronix 4300
  1842. ## src/m/tek4300.h hints that this is a m68k machine.
  1843. m68*-tektronix-bsd* )
  1844. machine=tek4300 opsys=bsd4-3
  1845. ;;
  1846. ## Titan P2 or P3
  1847. ## We seem to have lost the machine-description file titan.h!
  1848. titan-titan-sysv* )
  1849. machine=titan opsys=usg5-3
  1850. ;;
  1851. ## Ustation E30 (SS5E)
  1852. m68*-unisys-uniplus* )
  1853. machine=ustation opsystem=unipl5-2
  1854. ;;
  1855. ## Vaxen.
  1856. vax-dec-* )
  1857. machine=vax
  1858. case "${canonical}" in
  1859. *-bsd4.1* ) opsys=bsd4-1 ;;
  1860. *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
  1861. *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
  1862. *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
  1863. *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
  1864. *-vms* ) opsys=vms ;;
  1865. * ) unported=yes
  1866. esac
  1867. ;;
  1868. ## Whitechapel MG1
  1869. ns16k-whitechapel-* )
  1870. machine=mg1
  1871. ## We don't know what sort of OS runs on these; we'll let the
  1872. ## operating system guessing code below try.
  1873. ;;
  1874. ## Wicat
  1875. m68*-wicat-sysv* )
  1876. machine=wicat opsys=usg5-2
  1877. ;;
  1878. ## IA-64
  1879. ia64*-*-linux* )
  1880. machine=ia64 opsys=gnu-linux
  1881. ;;
  1882. ## Intel 386 machines where we don't care about the manufacturer
  1883. i[3456]86-*-* )
  1884. machine=intel386
  1885. case "${canonical}" in
  1886. *-lynxos* ) opsys=lynxos ;;
  1887. *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
  1888. *-isc2.2* ) opsys=isc2-2 ;;
  1889. *-isc4.0* ) opsys=isc4-0 ;;
  1890. *-isc4.* ) opsys=isc4-1
  1891. GCC_TEST_OPTIONS=-posix
  1892. NON_GCC_TEST_OPTIONS=-Xp
  1893. ;;
  1894. *-isc* ) opsys=isc3-0 ;;
  1895. *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
  1896. *-esix* ) opsys=esix ;;
  1897. *-xenix* ) opsys=xenix ;;
  1898. *-linux-gnu* ) opsys=gnu-linux ;;
  1899. *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
  1900. *-sco3.2v5* ) opsys=sco5
  1901. NON_GNU_CPP=/lib/cpp
  1902. # Prevent -belf from being passed to $CPP.
  1903. # /lib/cpp does not accept it.
  1904. OVERRIDE_CPPFLAGS=" "
  1905. ;;
  1906. *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
  1907. *-386bsd* ) opsys=386bsd ;;
  1908. *-nextstep* ) opsys=nextstep ;;
  1909. ## Otherwise, we'll fall through to the generic opsys code at the bottom.
  1910. esac
  1911. ;;
  1912. ## m68k Linux-based GNU system
  1913. m68k-*-linux-gnu* )
  1914. machine=m68k opsys=gnu-linux
  1915. ;;
  1916. ## Mips Linux-based GNU system
  1917. mips-*-linux-gnu* )
  1918. machine=mips opsys=gnu-linux
  1919. ;;
  1920. ## UXP/DS
  1921. sparc-fujitsu-sysv4* )
  1922. machine=sparc opsys=uxpds
  1923. NON_GNU_CPP=/usr/ccs/lib/cpp
  1924. RANLIB="ar -ts"
  1925. ;;
  1926. ## UXP/V
  1927. f301-fujitsu-uxpv4.1)
  1928. machine=f301 opsys=uxpv
  1929. ;;
  1930. * )
  1931. unported=yes
  1932. ;;
  1933. esac
  1934. ### If the code above didn't choose an operating system, just choose
  1935. ### an operating system based on the configuration name. You really
  1936. ### only want to use this when you have no idea what the right
  1937. ### operating system is; if you know what operating systems a machine
  1938. ### runs, it's cleaner to make it explicit in the case statement
  1939. ### above.
  1940. if test x"${opsys}" = x; then
  1941. case "${canonical}" in
  1942. *-gnu* ) opsys=gnu ;;
  1943. *-bsd4.[01] ) opsys=bsd4-1 ;;
  1944. *-bsd4.2 ) opsys=bsd4-2 ;;
  1945. *-bsd4.3 ) opsys=bsd4-3 ;;
  1946. *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
  1947. *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
  1948. *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
  1949. *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
  1950. *-sysv4.2uw* ) opsys=unixware ;;
  1951. *-sysv4.1* | *-sysvr4.1* )
  1952. NON_GNU_CPP=/usr/lib/cpp
  1953. opsys=usg5-4 ;;
  1954. *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
  1955. if [ x$NON_GNU_CPP = x ]; then
  1956. if [ -f /usr/ccs/lib/cpp ]; then
  1957. NON_GNU_CPP=/usr/ccs/lib/cpp
  1958. else
  1959. NON_GNU_CPP=/lib/cpp
  1960. fi
  1961. fi
  1962. opsys=usg5-4-2 ;;
  1963. *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
  1964. * )
  1965. unported=yes
  1966. ;;
  1967. esac
  1968. fi
  1969. if test $unported = yes; then
  1970. { { echo "$as_me:2225: error: Emacs hasn't been ported to \`${canonical}' systems.
  1971. Check \`etc/MACHINES' for recognized configuration names." >&5
  1972. echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
  1973. Check \`etc/MACHINES' for recognized configuration names." >&2;}
  1974. { (exit 1); exit 1; }; }
  1975. fi
  1976. machfile="m/${machine}.h"
  1977. opsysfile="s/${opsys}.h"
  1978. #### Choose a compiler.
  1979. test -n "$CC" && cc_specified=yes
  1980. # Save the value of CFLAGS that the user specified.
  1981. SPECIFIED_CFLAGS="$CFLAGS"
  1982. case ${with_gcc} in
  1983. "yes" ) CC="gcc" GCC=yes ;;
  1984. "no" ) : ${CC=cc} ;;
  1985. * )
  1986. esac
  1987. ac_ext=c
  1988. ac_cpp='$CPP $CPPFLAGS'
  1989. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1990. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1991. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1992. if test -n "$ac_tool_prefix"; then
  1993. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  1994. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  1995. echo "$as_me:2254: checking for $ac_word" >&5
  1996. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1997. if test "${ac_cv_prog_CC+set}" = set; then
  1998. echo $ECHO_N "(cached) $ECHO_C" >&6
  1999. else
  2000. if test -n "$CC"; then
  2001. ac_cv_prog_CC="$CC" # Let the user override the test.
  2002. else
  2003. ac_save_IFS=$IFS; IFS=$ac_path_separator
  2004. ac_dummy="$PATH"
  2005. for ac_dir in $ac_dummy; do
  2006. IFS=$ac_save_IFS
  2007. test -z "$ac_dir" && ac_dir=.
  2008. $as_executable_p "$ac_dir/$ac_word" || continue
  2009. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2010. echo "$as_me:2269: found $ac_dir/$ac_word" >&5
  2011. break
  2012. done
  2013. fi
  2014. fi
  2015. CC=$ac_cv_prog_CC
  2016. if test -n "$CC"; then
  2017. echo "$as_me:2277: result: $CC" >&5
  2018. echo "${ECHO_T}$CC" >&6
  2019. else
  2020. echo "$as_me:2280: result: no" >&5
  2021. echo "${ECHO_T}no" >&6
  2022. fi
  2023. fi
  2024. if test -z "$ac_cv_prog_CC"; then
  2025. ac_ct_CC=$CC
  2026. # Extract the first word of "gcc", so it can be a program name with args.
  2027. set dummy gcc; ac_word=$2
  2028. echo "$as_me:2289: checking for $ac_word" >&5
  2029. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2030. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2031. echo $ECHO_N "(cached) $ECHO_C" >&6
  2032. else
  2033. if test -n "$ac_ct_CC"; then
  2034. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2035. else
  2036. ac_save_IFS=$IFS; IFS=$ac_path_separator
  2037. ac_dummy="$PATH"
  2038. for ac_dir in $ac_dummy; do
  2039. IFS=$ac_save_IFS
  2040. test -z "$ac_dir" && ac_dir=.
  2041. $as_executable_p "$ac_dir/$ac_word" || continue
  2042. ac_cv_prog_ac_ct_CC="gcc"
  2043. echo "$as_me:2304: found $ac_dir/$ac_word" >&5
  2044. break
  2045. done
  2046. fi
  2047. fi
  2048. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2049. if test -n "$ac_ct_CC"; then
  2050. echo "$as_me:2312: result: $ac_ct_CC" >&5
  2051. echo "${ECHO_T}$ac_ct_CC" >&6
  2052. else
  2053. echo "$as_me:2315: result: no" >&5
  2054. echo "${ECHO_T}no" >&6
  2055. fi
  2056. CC=$ac_ct_CC
  2057. else
  2058. CC="$ac_cv_prog_CC"
  2059. fi
  2060. if test -z "$CC"; then
  2061. if test -n "$ac_tool_prefix"; then
  2062. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2063. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2064. echo "$as_me:2328: checking for $ac_word" >&5
  2065. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2066. if test "${ac_cv_prog_CC+set}" = set; then
  2067. echo $ECHO_N "(cached) $ECHO_C" >&6
  2068. else
  2069. if test -n "$CC"; then
  2070. ac_cv_prog_CC="$CC" # Let the user override the test.
  2071. else
  2072. ac_save_IFS=$IFS; IFS=$ac_path_separator
  2073. ac_dummy="$PATH"
  2074. for ac_dir in $ac_dummy; do
  2075. IFS=$ac_save_IFS
  2076. test -z "$ac_dir" && ac_dir=.
  2077. $as_executable_p "$ac_dir/$ac_word" || continue
  2078. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2079. echo "$as_me:2343: found $ac_dir/$ac_word" >&5
  2080. break
  2081. done
  2082. fi
  2083. fi
  2084. CC=$ac_cv_prog_CC
  2085. if test -n "$CC"; then
  2086. echo "$as_me:2351: result: $CC" >&5
  2087. echo "${ECHO_T}$CC" >&6
  2088. else
  2089. echo "$as_me:2354: result: no" >&5
  2090. echo "${ECHO_T}no" >&6
  2091. fi
  2092. fi
  2093. if test -z "$ac_cv_prog_CC"; then
  2094. ac_ct_CC=$CC
  2095. # Extract the first word of "cc", so it can be a program name with args.
  2096. set dummy cc; ac_word=$2
  2097. echo "$as_me:2363: checking for $ac_word" >&5
  2098. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2099. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2100. echo $ECHO_N "(cached) $ECHO_C" >&6
  2101. else
  2102. if test -n "$ac_ct_CC"; then
  2103. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2104. else
  2105. ac_save_IFS=$IFS; IFS=$ac_path_separator
  2106. ac_dummy="$PATH"
  2107. for ac_dir in $ac_dummy; do
  2108. IFS=$ac_save_IFS
  2109. test -z "$ac_dir" && ac_dir=.
  2110. $as_executable_p "$ac_dir/$ac_word" || continue
  2111. ac_cv_prog_ac_ct_CC="cc"
  2112. echo "$as_me:2378: found $ac_dir/$ac_word" >&5
  2113. break
  2114. done
  2115. fi
  2116. fi
  2117. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2118. if test -n "$ac_ct_CC"; then
  2119. echo "$as_me:2386: result: $ac_ct_CC" >&5
  2120. echo "${ECHO_T}$ac_ct_CC" >&6
  2121. else
  2122. echo "$as_me:2389: result: no" >&5
  2123. echo "${ECHO_T}no" >&6
  2124. fi
  2125. CC=$ac_ct_CC
  2126. else
  2127. CC="$ac_cv_prog_CC"
  2128. fi
  2129. fi
  2130. if test -z "$CC"; then
  2131. # Extract the first word of "cc", so it can be a program name with args.
  2132. set dummy cc; ac_word=$2
  2133. echo "$as_me:2402: checking for $ac_word" >&5
  2134. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2135. if test "${ac_cv_prog_CC+set}" = set; then
  2136. echo $ECHO_N "(cached) $ECHO_C" >&6
  2137. else
  2138. if test -n "$CC"; then
  2139. ac_cv_prog_CC="$CC" # Let the user override the test.
  2140. else
  2141. ac_prog_rejected=no
  2142. ac_save_IFS=$IFS; IFS=$ac_path_separator
  2143. ac_dummy="$PATH"
  2144. for ac_dir in $ac_dummy; do
  2145. IFS=$ac_save_IFS
  2146. test -z "$ac_dir" && ac_dir=.
  2147. $as_executable_p "$ac_dir/$ac_word" || continue
  2148. if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  2149. ac_prog_rejected=yes
  2150. continue
  2151. fi
  2152. ac_cv_prog_CC="cc"
  2153. echo "$as_me:2422: found $ac_dir/$ac_word" >&5
  2154. break
  2155. done
  2156. if test $ac_prog_rejected = yes; then
  2157. # We found a bogon in the path, so make sure we never use it.
  2158. set dummy $ac_cv_prog_CC
  2159. shift
  2160. if test $# != 0; then
  2161. # We chose a different compiler from the bogus one.
  2162. # However, it has the same basename, so the bogon will be chosen
  2163. # first if we set CC to just the basename; use the full file name.
  2164. shift
  2165. set dummy "$ac_dir/$ac_word" ${1+"$@"}
  2166. shift
  2167. ac_cv_prog_CC="$@"
  2168. fi
  2169. fi
  2170. fi
  2171. fi
  2172. CC=$ac_cv_prog_CC
  2173. if test -n "$CC"; then
  2174. echo "$as_me:2444: result: $CC" >&5
  2175. echo "${ECHO_T}$CC" >&6
  2176. else
  2177. echo "$as_me:2447: result: no" >&5
  2178. echo "${ECHO_T}no" >&6
  2179. fi
  2180. fi
  2181. if test -z "$CC"; then
  2182. if test -n "$ac_tool_prefix"; then
  2183. for ac_prog in cl
  2184. do
  2185. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2186. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2187. echo "$as_me:2458: checking for $ac_word" >&5
  2188. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2189. if test "${ac_cv_prog_CC+set}" = set; then
  2190. echo $ECHO_N "(cached) $ECHO_C" >&6
  2191. else
  2192. if test -n "$CC"; then
  2193. ac_cv_prog_CC="$CC" # Let the user override the test.
  2194. else
  2195. ac_save_IFS=$IFS; IFS=$ac_path_separator
  2196. ac_dummy="$PATH"
  2197. for ac_dir in $ac_dummy; do
  2198. IFS=$ac_save_IFS
  2199. test -z "$ac_dir" && ac_dir=.
  2200. $as_executable_p "$ac_dir/$ac_word" || continue
  2201. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2202. echo "$as_me:2473: found $ac_dir/$ac_word" >&5
  2203. break
  2204. done
  2205. fi
  2206. fi
  2207. CC=$ac_cv_prog_CC
  2208. if test -n "$CC"; then
  2209. echo "$as_me:2481: result: $CC" >&5
  2210. echo "${ECHO_T}$CC" >&6
  2211. else
  2212. echo "$as_me:2484: result: no" >&5
  2213. echo "${ECHO_T}no" >&6
  2214. fi
  2215. test -n "$CC" && break
  2216. done
  2217. fi
  2218. if test -z "$CC"; then
  2219. ac_ct_CC=$CC
  2220. for ac_prog in cl
  2221. do
  2222. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2223. set dummy $ac_prog; ac_word=$2
  2224. echo "$as_me:2497: checking for $ac_word" >&5
  2225. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2226. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2227. echo $ECHO_N "(cached) $ECHO_C" >&6
  2228. else
  2229. if test -n "$ac_ct_CC"; then
  2230. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2231. else
  2232. ac_save_IFS=$IFS; IFS=$ac_path_separator
  2233. ac_dummy="$PATH"
  2234. for ac_dir in $ac_dummy; do
  2235. IFS=$ac_save_IFS
  2236. test -z "$ac_dir" && ac_dir=.
  2237. $as_executable_p "$ac_dir/$ac_word" || continue
  2238. ac_cv_prog_ac_ct_CC="$ac_prog"
  2239. echo "$as_me:2512: found $ac_dir/$ac_word" >&5
  2240. break
  2241. done
  2242. fi
  2243. fi
  2244. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2245. if test -n "$ac_ct_CC"; then
  2246. echo "$as_me:2520: result: $ac_ct_CC" >&5
  2247. echo "${ECHO_T}$ac_ct_CC" >&6
  2248. else
  2249. echo "$as_me:2523: result: no" >&5
  2250. echo "${ECHO_T}no" >&6
  2251. fi
  2252. test -n "$ac_ct_CC" && break
  2253. done
  2254. CC=$ac_ct_CC
  2255. fi
  2256. fi
  2257. test -z "$CC" && { { echo "$as_me:2535: error: no acceptable cc found in \$PATH" >&5
  2258. echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
  2259. { (exit 1); exit 1; }; }
  2260. # Provide some information about the compiler.
  2261. echo "$as_me:2540:" \
  2262. "checking for C compiler version" >&5
  2263. ac_compiler=`set X $ac_compile; echo $2`
  2264. { (eval echo "$as_me:2543: \"$ac_compiler --version </dev/null >&5\"") >&5
  2265. (eval $ac_compiler --version </dev/null >&5) 2>&5
  2266. ac_status=$?
  2267. echo "$as_me:2546: \$? = $ac_status" >&5
  2268. (exit $ac_status); }
  2269. { (eval echo "$as_me:2548: \"$ac_compiler -v </dev/null >&5\"") >&5
  2270. (eval $ac_compiler -v </dev/null >&5) 2>&5
  2271. ac_status=$?
  2272. echo "$as_me:2551: \$? = $ac_status" >&5
  2273. (exit $ac_status); }
  2274. { (eval echo "$as_me:2553: \"$ac_compiler -V </dev/null >&5\"") >&5
  2275. (eval $ac_compiler -V </dev/null >&5) 2>&5
  2276. ac_status=$?
  2277. echo "$as_me:2556: \$? = $ac_status" >&5
  2278. (exit $ac_status); }
  2279. cat >conftest.$ac_ext <<_ACEOF
  2280. #line 2560 "configure"
  2281. #include "confdefs.h"
  2282. int
  2283. main ()
  2284. {
  2285. ;
  2286. return 0;
  2287. }
  2288. _ACEOF
  2289. ac_clean_files_save=$ac_clean_files
  2290. ac_clean_files="$ac_clean_files a.out a.exe"
  2291. # Try to create an executable without -o first, disregard a.out.
  2292. # It will help us diagnose broken compilers, and finding out an intuition
  2293. # of exeext.
  2294. echo "$as_me:2576: checking for C compiler default output" >&5
  2295. echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
  2296. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2297. if { (eval echo "$as_me:2579: \"$ac_link_default\"") >&5
  2298. (eval $ac_link_default) 2>&5
  2299. ac_status=$?
  2300. echo "$as_me:2582: \$? = $ac_status" >&5
  2301. (exit $ac_status); }; then
  2302. # Find the output, starting from the most likely. This scheme is
  2303. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  2304. # resort.
  2305. for ac_file in `ls a.exe conftest.exe 2>/dev/null;
  2306. ls a.out conftest 2>/dev/null;
  2307. ls a.* conftest.* 2>/dev/null`; do
  2308. case $ac_file in
  2309. *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
  2310. a.out ) # We found the default executable, but exeext='' is most
  2311. # certainly right.
  2312. break;;
  2313. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2314. # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
  2315. export ac_cv_exeext
  2316. break;;
  2317. * ) break;;
  2318. esac
  2319. done
  2320. else
  2321. echo "$as_me: failed program was:" >&5
  2322. cat conftest.$ac_ext >&5
  2323. { { echo "$as_me:2605: error: C compiler cannot create executables" >&5
  2324. echo "$as_me: error: C compiler cannot create executables" >&2;}
  2325. { (exit 77); exit 77; }; }
  2326. fi
  2327. ac_exeext=$ac_cv_exeext
  2328. echo "$as_me:2611: result: $ac_file" >&5
  2329. echo "${ECHO_T}$ac_file" >&6
  2330. # Check the compiler produces executables we can run. If not, either
  2331. # the compiler is broken, or we cross compile.
  2332. echo "$as_me:2616: checking whether the C compiler works" >&5
  2333. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  2334. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2335. # If not cross compiling, check that we can run a simple program.
  2336. if test "$cross_compiling" != yes; then
  2337. if { ac_try='./$ac_file'
  2338. { (eval echo "$as_me:2622: \"$ac_try\"") >&5
  2339. (eval $ac_try) 2>&5
  2340. ac_status=$?
  2341. echo "$as_me:2625: \$? = $ac_status" >&5
  2342. (exit $ac_status); }; }; then
  2343. cross_compiling=no
  2344. else
  2345. if test "$cross_compiling" = maybe; then
  2346. cross_compiling=yes
  2347. else
  2348. { { echo "$as_me:2632: error: cannot run C compiled programs.
  2349. If you meant to cross compile, use \`--host'." >&5
  2350. echo "$as_me: error: cannot run C compiled programs.
  2351. If you meant to cross compile, use \`--host'." >&2;}
  2352. { (exit 1); exit 1; }; }
  2353. fi
  2354. fi
  2355. fi
  2356. echo "$as_me:2640: result: yes" >&5
  2357. echo "${ECHO_T}yes" >&6
  2358. rm -f a.out a.exe conftest$ac_cv_exeext
  2359. ac_clean_files=$ac_clean_files_save
  2360. # Check the compiler produces executables we can run. If not, either
  2361. # the compiler is broken, or we cross compile.
  2362. echo "$as_me:2647: checking whether we are cross compiling" >&5
  2363. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  2364. echo "$as_me:2649: result: $cross_compiling" >&5
  2365. echo "${ECHO_T}$cross_compiling" >&6
  2366. echo "$as_me:2652: checking for executable suffix" >&5
  2367. echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
  2368. if { (eval echo "$as_me:2654: \"$ac_link\"") >&5
  2369. (eval $ac_link) 2>&5
  2370. ac_status=$?
  2371. echo "$as_me:2657: \$? = $ac_status" >&5
  2372. (exit $ac_status); }; then
  2373. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2374. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2375. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2376. # `rm'.
  2377. for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
  2378. case $ac_file in
  2379. *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
  2380. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2381. export ac_cv_exeext
  2382. break;;
  2383. * ) break;;
  2384. esac
  2385. done
  2386. else
  2387. { { echo "$as_me:2673: error: cannot compute EXEEXT: cannot compile and link" >&5
  2388. echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
  2389. { (exit 1); exit 1; }; }
  2390. fi
  2391. rm -f conftest$ac_cv_exeext
  2392. echo "$as_me:2679: result: $ac_cv_exeext" >&5
  2393. echo "${ECHO_T}$ac_cv_exeext" >&6
  2394. rm -f conftest.$ac_ext
  2395. EXEEXT=$ac_cv_exeext
  2396. ac_exeext=$EXEEXT
  2397. echo "$as_me:2685: checking for object suffix" >&5
  2398. echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
  2399. if test "${ac_cv_objext+set}" = set; then
  2400. echo $ECHO_N "(cached) $ECHO_C" >&6
  2401. else
  2402. cat >conftest.$ac_ext <<_ACEOF
  2403. #line 2691 "configure"
  2404. #include "confdefs.h"
  2405. int
  2406. main ()
  2407. {
  2408. ;
  2409. return 0;
  2410. }
  2411. _ACEOF
  2412. rm -f conftest.o conftest.obj
  2413. if { (eval echo "$as_me:2703: \"$ac_compile\"") >&5
  2414. (eval $ac_compile) 2>&5
  2415. ac_status=$?
  2416. echo "$as_me:2706: \$? = $ac_status" >&5
  2417. (exit $ac_status); }; then
  2418. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  2419. case $ac_file in
  2420. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
  2421. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2422. break;;
  2423. esac
  2424. done
  2425. else
  2426. echo "$as_me: failed program was:" >&5
  2427. cat conftest.$ac_ext >&5
  2428. { { echo "$as_me:2718: error: cannot compute OBJEXT: cannot compile" >&5
  2429. echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
  2430. { (exit 1); exit 1; }; }
  2431. fi
  2432. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2433. fi
  2434. echo "$as_me:2725: result: $ac_cv_objext" >&5
  2435. echo "${ECHO_T}$ac_cv_objext" >&6
  2436. OBJEXT=$ac_cv_objext
  2437. ac_objext=$OBJEXT
  2438. echo "$as_me:2729: checking whether we are using the GNU C compiler" >&5
  2439. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  2440. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2441. echo $ECHO_N "(cached) $ECHO_C" >&6
  2442. else
  2443. cat >conftest.$ac_ext <<_ACEOF
  2444. #line 2735 "configure"
  2445. #include "confdefs.h"
  2446. int
  2447. main ()
  2448. {
  2449. #ifndef __GNUC__
  2450. choke me
  2451. #endif
  2452. ;
  2453. return 0;
  2454. }
  2455. _ACEOF
  2456. rm -f conftest.$ac_objext
  2457. if { (eval echo "$as_me:2750: \"$ac_compile\"") >&5
  2458. (eval $ac_compile) 2>&5
  2459. ac_status=$?
  2460. echo "$as_me:2753: \$? = $ac_status" >&5
  2461. (exit $ac_status); } &&
  2462. { ac_try='test -s conftest.$ac_objext'
  2463. { (eval echo "$as_me:2756: \"$ac_try\"") >&5
  2464. (eval $ac_try) 2>&5
  2465. ac_status=$?
  2466. echo "$as_me:2759: \$? = $ac_status" >&5
  2467. (exit $ac_status); }; }; then
  2468. ac_compiler_gnu=yes
  2469. else
  2470. echo "$as_me: failed program was:" >&5
  2471. cat conftest.$ac_ext >&5
  2472. ac_compiler_gnu=no
  2473. fi
  2474. rm -f conftest.$ac_objext conftest.$ac_ext
  2475. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2476. fi
  2477. echo "$as_me:2771: result: $ac_cv_c_compiler_gnu" >&5
  2478. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  2479. GCC=`test $ac_compiler_gnu = yes && echo yes`
  2480. ac_test_CFLAGS=${CFLAGS+set}
  2481. ac_save_CFLAGS=$CFLAGS
  2482. CFLAGS="-g"
  2483. echo "$as_me:2777: checking whether $CC accepts -g" >&5
  2484. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  2485. if test "${ac_cv_prog_cc_g+set}" = set; then
  2486. echo $ECHO_N "(cached) $ECHO_C" >&6
  2487. else
  2488. cat >conftest.$ac_ext <<_ACEOF
  2489. #line 2783 "configure"
  2490. #include "confdefs.h"
  2491. int
  2492. main ()
  2493. {
  2494. ;
  2495. return 0;
  2496. }
  2497. _ACEOF
  2498. rm -f conftest.$ac_objext
  2499. if { (eval echo "$as_me:2795: \"$ac_compile\"") >&5
  2500. (eval $ac_compile) 2>&5
  2501. ac_status=$?
  2502. echo "$as_me:2798: \$? = $ac_status" >&5
  2503. (exit $ac_status); } &&
  2504. { ac_try='test -s conftest.$ac_objext'
  2505. { (eval echo "$as_me:2801: \"$ac_try\"") >&5
  2506. (eval $ac_try) 2>&5
  2507. ac_status=$?
  2508. echo "$as_me:2804: \$? = $ac_status" >&5
  2509. (exit $ac_status); }; }; then
  2510. ac_cv_prog_cc_g=yes
  2511. else
  2512. echo "$as_me: failed program was:" >&5
  2513. cat conftest.$ac_ext >&5
  2514. ac_cv_prog_cc_g=no
  2515. fi
  2516. rm -f conftest.$ac_objext conftest.$ac_ext
  2517. fi
  2518. echo "$as_me:2814: result: $ac_cv_prog_cc_g" >&5
  2519. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  2520. if test "$ac_test_CFLAGS" = set; then
  2521. CFLAGS=$ac_save_CFLAGS
  2522. elif test $ac_cv_prog_cc_g = yes; then
  2523. if test "$GCC" = yes; then
  2524. CFLAGS="-g -O2"
  2525. else
  2526. CFLAGS="-g"
  2527. fi
  2528. else
  2529. if test "$GCC" = yes; then
  2530. CFLAGS="-O2"
  2531. else
  2532. CFLAGS=
  2533. fi
  2534. fi
  2535. # Some people use a C++ compiler to compile C. Since we use `exit',
  2536. # in C++ we need to declare it. In case someone uses the same compiler
  2537. # for both compiling C and C++ we need to have the C++ compiler decide
  2538. # the declaration of exit, since it's the most demanding environment.
  2539. cat >conftest.$ac_ext <<_ACEOF
  2540. #ifndef __cplusplus
  2541. choke me
  2542. #endif
  2543. _ACEOF
  2544. rm -f conftest.$ac_objext
  2545. if { (eval echo "$as_me:2841: \"$ac_compile\"") >&5
  2546. (eval $ac_compile) 2>&5
  2547. ac_status=$?
  2548. echo "$as_me:2844: \$? = $ac_status" >&5
  2549. (exit $ac_status); } &&
  2550. { ac_try='test -s conftest.$ac_objext'
  2551. { (eval echo "$as_me:2847: \"$ac_try\"") >&5
  2552. (eval $ac_try) 2>&5
  2553. ac_status=$?
  2554. echo "$as_me:2850: \$? = $ac_status" >&5
  2555. (exit $ac_status); }; }; then
  2556. for ac_declaration in \
  2557. ''\
  2558. '#include <stdlib.h>' \
  2559. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  2560. 'extern "C" void std::exit (int); using std::exit;' \
  2561. 'extern "C" void exit (int) throw ();' \
  2562. 'extern "C" void exit (int);' \
  2563. 'void exit (int);'
  2564. do
  2565. cat >conftest.$ac_ext <<_ACEOF
  2566. #line 2862 "configure"
  2567. #include "confdefs.h"
  2568. #include <stdlib.h>
  2569. $ac_declaration
  2570. int
  2571. main ()
  2572. {
  2573. exit (42);
  2574. ;
  2575. return 0;
  2576. }
  2577. _ACEOF
  2578. rm -f conftest.$ac_objext
  2579. if { (eval echo "$as_me:2875: \"$ac_compile\"") >&5
  2580. (eval $ac_compile) 2>&5
  2581. ac_status=$?
  2582. echo "$as_me:2878: \$? = $ac_status" >&5
  2583. (exit $ac_status); } &&
  2584. { ac_try='test -s conftest.$ac_objext'
  2585. { (eval echo "$as_me:2881: \"$ac_try\"") >&5
  2586. (eval $ac_try) 2>&5
  2587. ac_status=$?
  2588. echo "$as_me:2884: \$? = $ac_status" >&5
  2589. (exit $ac_status); }; }; then
  2590. :
  2591. else
  2592. echo "$as_me: failed program was:" >&5
  2593. cat conftest.$ac_ext >&5
  2594. continue
  2595. fi
  2596. rm -f conftest.$ac_objext conftest.$ac_ext
  2597. cat >conftest.$ac_ext <<_ACEOF
  2598. #line 2894 "configure"
  2599. #include "confdefs.h"
  2600. $ac_declaration
  2601. int
  2602. main ()
  2603. {
  2604. exit (42);
  2605. ;
  2606. return 0;
  2607. }
  2608. _ACEOF
  2609. rm -f conftest.$ac_objext
  2610. if { (eval echo "$as_me:2906: \"$ac_compile\"") >&5
  2611. (eval $ac_compile) 2>&5
  2612. ac_status=$?
  2613. echo "$as_me:2909: \$? = $ac_status" >&5
  2614. (exit $ac_status); } &&
  2615. { ac_try='test -s conftest.$ac_objext'
  2616. { (eval echo "$as_me:2912: \"$ac_try\"") >&5
  2617. (eval $ac_try) 2>&5
  2618. ac_status=$?
  2619. echo "$as_me:2915: \$? = $ac_status" >&5
  2620. (exit $ac_status); }; }; then
  2621. break
  2622. else
  2623. echo "$as_me: failed program was:" >&5
  2624. cat conftest.$ac_ext >&5
  2625. fi
  2626. rm -f conftest.$ac_objext conftest.$ac_ext
  2627. done
  2628. rm -f conftest*
  2629. if test -n "$ac_declaration"; then
  2630. echo '#ifdef __cplusplus' >>confdefs.h
  2631. echo $ac_declaration >>confdefs.h
  2632. echo '#endif' >>confdefs.h
  2633. fi
  2634. else
  2635. echo "$as_me: failed program was:" >&5
  2636. cat conftest.$ac_ext >&5
  2637. fi
  2638. rm -f conftest.$ac_objext conftest.$ac_ext
  2639. ac_ext=c
  2640. ac_cpp='$CPP $CPPFLAGS'
  2641. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2642. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2643. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2644. # On Suns, sometimes $CPP names a directory.
  2645. if test -n "$CPP" && test -d "$CPP"; then
  2646. CPP=
  2647. fi
  2648. #### Some systems specify a CPP to use unless we are using GCC.
  2649. #### Now that we know whether we are using GCC, we can decide whether
  2650. #### to use that one.
  2651. if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
  2652. then
  2653. CPP="$NON_GNU_CPP"
  2654. fi
  2655. #### Some systems specify a CC to use unless we are using GCC.
  2656. #### Now that we know whether we are using GCC, we can decide whether
  2657. #### to use that one.
  2658. if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
  2659. test x$cc_specified != xyes
  2660. then
  2661. CC="$NON_GNU_CC"
  2662. fi
  2663. if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
  2664. then
  2665. CC="$CC $GCC_TEST_OPTIONS"
  2666. fi
  2667. if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
  2668. then
  2669. CC="$CC $NON_GCC_TEST_OPTIONS"
  2670. fi
  2671. if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
  2672. then
  2673. ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
  2674. fi
  2675. if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
  2676. then
  2677. ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
  2678. fi
  2679. #### Some other nice autoconf tests. If you add a test here which
  2680. #### should make an entry in src/config.h, don't forget to add an
  2681. #### #undef clause to src/config.h.in for autoconf to modify.
  2682. echo "$as_me:2988: checking whether ln -s works" >&5
  2683. echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
  2684. LN_S=$as_ln_s
  2685. if test "$LN_S" = "ln -s"; then
  2686. echo "$as_me:2992: result: yes" >&5
  2687. echo "${ECHO_T}yes" >&6
  2688. else
  2689. echo "$as_me:2995: result: no, using $LN_S" >&5
  2690. echo "${ECHO_T}no, using $LN_S" >&6
  2691. fi
  2692. ac_ext=c
  2693. ac_cpp='$CPP $CPPFLAGS'
  2694. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2695. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2696. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2697. echo "$as_me:3004: checking how to run the C preprocessor" >&5
  2698. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  2699. # On Suns, sometimes $CPP names a directory.
  2700. if test -n "$CPP" && test -d "$CPP"; then
  2701. CPP=
  2702. fi
  2703. if test -z "$CPP"; then
  2704. if test "${ac_cv_prog_CPP+set}" = set; then
  2705. echo $ECHO_N "(cached) $ECHO_C" >&6
  2706. else
  2707. # Double quotes because CPP needs to be expanded
  2708. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  2709. do
  2710. ac_preproc_ok=false
  2711. for ac_c_preproc_warn_flag in '' yes
  2712. do
  2713. # Use a header file that comes with gcc, so configuring glibc
  2714. # with a fresh cross-compiler works.
  2715. # On the NeXT, cc -E runs the code through the compiler's parser,
  2716. # not just through cpp. "Syntax error" is here to catch this case.
  2717. cat >conftest.$ac_ext <<_ACEOF
  2718. #line 3025 "configure"
  2719. #include "confdefs.h"
  2720. #include <assert.h>
  2721. Syntax error
  2722. _ACEOF
  2723. if { (eval echo "$as_me:3030: \"$ac_cpp conftest.$ac_ext\"") >&5
  2724. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2725. ac_status=$?
  2726. egrep -v '^ *\+' conftest.er1 >conftest.err
  2727. rm -f conftest.er1
  2728. cat conftest.err >&5
  2729. echo "$as_me:3036: \$? = $ac_status" >&5
  2730. (exit $ac_status); } >/dev/null; then
  2731. if test -s conftest.err; then
  2732. ac_cpp_err=$ac_c_preproc_warn_flag
  2733. else
  2734. ac_cpp_err=
  2735. fi
  2736. else
  2737. ac_cpp_err=yes
  2738. fi
  2739. if test -z "$ac_cpp_err"; then
  2740. :
  2741. else
  2742. echo "$as_me: failed program was:" >&5
  2743. cat conftest.$ac_ext >&5
  2744. # Broken: fails on valid input.
  2745. continue
  2746. fi
  2747. rm -f conftest.err conftest.$ac_ext
  2748. # OK, works on sane cases. Now check whether non-existent headers
  2749. # can be detected and how.
  2750. cat >conftest.$ac_ext <<_ACEOF
  2751. #line 3059 "configure"
  2752. #include "confdefs.h"
  2753. #include <ac_nonexistent.h>
  2754. _ACEOF
  2755. if { (eval echo "$as_me:3063: \"$ac_cpp conftest.$ac_ext\"") >&5
  2756. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2757. ac_status=$?
  2758. egrep -v '^ *\+' conftest.er1 >conftest.err
  2759. rm -f conftest.er1
  2760. cat conftest.err >&5
  2761. echo "$as_me:3069: \$? = $ac_status" >&5
  2762. (exit $ac_status); } >/dev/null; then
  2763. if test -s conftest.err; then
  2764. ac_cpp_err=$ac_c_preproc_warn_flag
  2765. else
  2766. ac_cpp_err=
  2767. fi
  2768. else
  2769. ac_cpp_err=yes
  2770. fi
  2771. if test -z "$ac_cpp_err"; then
  2772. # Broken: success on invalid input.
  2773. continue
  2774. else
  2775. echo "$as_me: failed program was:" >&5
  2776. cat conftest.$ac_ext >&5
  2777. # Passes both tests.
  2778. ac_preproc_ok=:
  2779. break
  2780. fi
  2781. rm -f conftest.err conftest.$ac_ext
  2782. done
  2783. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2784. rm -f conftest.err conftest.$ac_ext
  2785. if $ac_preproc_ok; then
  2786. break
  2787. fi
  2788. done
  2789. ac_cv_prog_CPP=$CPP
  2790. fi
  2791. CPP=$ac_cv_prog_CPP
  2792. else
  2793. ac_cv_prog_CPP=$CPP
  2794. fi
  2795. echo "$as_me:3106: result: $CPP" >&5
  2796. echo "${ECHO_T}$CPP" >&6
  2797. ac_preproc_ok=false
  2798. for ac_c_preproc_warn_flag in '' yes
  2799. do
  2800. # Use a header file that comes with gcc, so configuring glibc
  2801. # with a fresh cross-compiler works.
  2802. # On the NeXT, cc -E runs the code through the compiler's parser,
  2803. # not just through cpp. "Syntax error" is here to catch this case.
  2804. cat >conftest.$ac_ext <<_ACEOF
  2805. #line 3116 "configure"
  2806. #include "confdefs.h"
  2807. #include <assert.h>
  2808. Syntax error
  2809. _ACEOF
  2810. if { (eval echo "$as_me:3121: \"$ac_cpp conftest.$ac_ext\"") >&5
  2811. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2812. ac_status=$?
  2813. egrep -v '^ *\+' conftest.er1 >conftest.err
  2814. rm -f conftest.er1
  2815. cat conftest.err >&5
  2816. echo "$as_me:3127: \$? = $ac_status" >&5
  2817. (exit $ac_status); } >/dev/null; then
  2818. if test -s conftest.err; then
  2819. ac_cpp_err=$ac_c_preproc_warn_flag
  2820. else
  2821. ac_cpp_err=
  2822. fi
  2823. else
  2824. ac_cpp_err=yes
  2825. fi
  2826. if test -z "$ac_cpp_err"; then
  2827. :
  2828. else
  2829. echo "$as_me: failed program was:" >&5
  2830. cat conftest.$ac_ext >&5
  2831. # Broken: fails on valid input.
  2832. continue
  2833. fi
  2834. rm -f conftest.err conftest.$ac_ext
  2835. # OK, works on sane cases. Now check whether non-existent headers
  2836. # can be detected and how.
  2837. cat >conftest.$ac_ext <<_ACEOF
  2838. #line 3150 "configure"
  2839. #include "confdefs.h"
  2840. #include <ac_nonexistent.h>
  2841. _ACEOF
  2842. if { (eval echo "$as_me:3154: \"$ac_cpp conftest.$ac_ext\"") >&5
  2843. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2844. ac_status=$?
  2845. egrep -v '^ *\+' conftest.er1 >conftest.err
  2846. rm -f conftest.er1
  2847. cat conftest.err >&5
  2848. echo "$as_me:3160: \$? = $ac_status" >&5
  2849. (exit $ac_status); } >/dev/null; then
  2850. if test -s conftest.err; then
  2851. ac_cpp_err=$ac_c_preproc_warn_flag
  2852. else
  2853. ac_cpp_err=
  2854. fi
  2855. else
  2856. ac_cpp_err=yes
  2857. fi
  2858. if test -z "$ac_cpp_err"; then
  2859. # Broken: success on invalid input.
  2860. continue
  2861. else
  2862. echo "$as_me: failed program was:" >&5
  2863. cat conftest.$ac_ext >&5
  2864. # Passes both tests.
  2865. ac_preproc_ok=:
  2866. break
  2867. fi
  2868. rm -f conftest.err conftest.$ac_ext
  2869. done
  2870. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2871. rm -f conftest.err conftest.$ac_ext
  2872. if $ac_preproc_ok; then
  2873. :
  2874. else
  2875. { { echo "$as_me:3188: error: C preprocessor \"$CPP\" fails sanity check" >&5
  2876. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
  2877. { (exit 1); exit 1; }; }
  2878. fi
  2879. ac_ext=c
  2880. ac_cpp='$CPP $CPPFLAGS'
  2881. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2882. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2883. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2884. # Find a good install program. We prefer a C program (faster),
  2885. # so one script is as good as another. But avoid the broken or
  2886. # incompatible versions:
  2887. # SysV /etc/install, /usr/sbin/install
  2888. # SunOS /usr/etc/install
  2889. # IRIX /sbin/install
  2890. # AIX /bin/install
  2891. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2892. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2893. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2894. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2895. # ./install, which can be erroneously created by make from ./install.sh.
  2896. echo "$as_me:3211: checking for a BSD compatible install" >&5
  2897. echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
  2898. if test -z "$INSTALL"; then
  2899. if test "${ac_cv_path_install+set}" = set; then
  2900. echo $ECHO_N "(cached) $ECHO_C" >&6
  2901. else
  2902. ac_save_IFS=$IFS; IFS=$ac_path_separator
  2903. for ac_dir in $PATH; do
  2904. IFS=$ac_save_IFS
  2905. # Account for people who put trailing slashes in PATH elements.
  2906. case $ac_dir/ in
  2907. / | ./ | .// | /cC/* \
  2908. | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
  2909. | /usr/ucb/* ) ;;
  2910. *)
  2911. # OSF1 and SCO ODT 3.0 have their own names for install.
  2912. # Don't use installbsd from OSF since it installs stuff as root
  2913. # by default.
  2914. for ac_prog in ginstall scoinst install; do
  2915. if $as_executable_p "$ac_dir/$ac_prog"; then
  2916. if test $ac_prog = install &&
  2917. grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
  2918. # AIX install. It has an incompatible calling convention.
  2919. :
  2920. elif test $ac_prog = install &&
  2921. grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
  2922. # program-specific install script used by HP pwplus--don't use.
  2923. :
  2924. else
  2925. ac_cv_path_install="$ac_dir/$ac_prog -c"
  2926. break 2
  2927. fi
  2928. fi
  2929. done
  2930. ;;
  2931. esac
  2932. done
  2933. fi
  2934. if test "${ac_cv_path_install+set}" = set; then
  2935. INSTALL=$ac_cv_path_install
  2936. else
  2937. # As a last resort, use the slow shell script. We don't cache a
  2938. # path for INSTALL within a source directory, because that will
  2939. # break other packages using the cache if that directory is
  2940. # removed, or if the path is relative.
  2941. INSTALL=$ac_install_sh
  2942. fi
  2943. fi
  2944. echo "$as_me:3260: result: $INSTALL" >&5
  2945. echo "${ECHO_T}$INSTALL" >&6
  2946. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2947. # It thinks the first close brace ends the variable substitution.
  2948. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2949. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2950. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2951. for ac_prog in 'bison -y' byacc
  2952. do
  2953. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2954. set dummy $ac_prog; ac_word=$2
  2955. echo "$as_me:3275: checking for $ac_word" >&5
  2956. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2957. if test "${ac_cv_prog_YACC+set}" = set; then
  2958. echo $ECHO_N "(cached) $ECHO_C" >&6
  2959. else
  2960. if test -n "$YACC"; then
  2961. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  2962. else
  2963. ac_save_IFS=$IFS; IFS=$ac_path_separator
  2964. ac_dummy="$PATH"
  2965. for ac_dir in $ac_dummy; do
  2966. IFS=$ac_save_IFS
  2967. test -z "$ac_dir" && ac_dir=.
  2968. $as_executable_p "$ac_dir/$ac_word" || continue
  2969. ac_cv_prog_YACC="$ac_prog"
  2970. echo "$as_me:3290: found $ac_dir/$ac_word" >&5
  2971. break
  2972. done
  2973. fi
  2974. fi
  2975. YACC=$ac_cv_prog_YACC
  2976. if test -n "$YACC"; then
  2977. echo "$as_me:3298: result: $YACC" >&5
  2978. echo "${ECHO_T}$YACC" >&6
  2979. else
  2980. echo "$as_me:3301: result: no" >&5
  2981. echo "${ECHO_T}no" >&6
  2982. fi
  2983. test -n "$YACC" && break
  2984. done
  2985. test -n "$YACC" || YACC="yacc"
  2986. if test "x$RANLIB" = x; then
  2987. if test -n "$ac_tool_prefix"; then
  2988. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  2989. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  2990. echo "$as_me:3313: checking for $ac_word" >&5
  2991. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2992. if test "${ac_cv_prog_RANLIB+set}" = set; then
  2993. echo $ECHO_N "(cached) $ECHO_C" >&6
  2994. else
  2995. if test -n "$RANLIB"; then
  2996. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  2997. else
  2998. ac_save_IFS=$IFS; IFS=$ac_path_separator
  2999. ac_dummy="$PATH"
  3000. for ac_dir in $ac_dummy; do
  3001. IFS=$ac_save_IFS
  3002. test -z "$ac_dir" && ac_dir=.
  3003. $as_executable_p "$ac_dir/$ac_word" || continue
  3004. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  3005. echo "$as_me:3328: found $ac_dir/$ac_word" >&5
  3006. break
  3007. done
  3008. fi
  3009. fi
  3010. RANLIB=$ac_cv_prog_RANLIB
  3011. if test -n "$RANLIB"; then
  3012. echo "$as_me:3336: result: $RANLIB" >&5
  3013. echo "${ECHO_T}$RANLIB" >&6
  3014. else
  3015. echo "$as_me:3339: result: no" >&5
  3016. echo "${ECHO_T}no" >&6
  3017. fi
  3018. fi
  3019. if test -z "$ac_cv_prog_RANLIB"; then
  3020. ac_ct_RANLIB=$RANLIB
  3021. # Extract the first word of "ranlib", so it can be a program name with args.
  3022. set dummy ranlib; ac_word=$2
  3023. echo "$as_me:3348: checking for $ac_word" >&5
  3024. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3025. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  3026. echo $ECHO_N "(cached) $ECHO_C" >&6
  3027. else
  3028. if test -n "$ac_ct_RANLIB"; then
  3029. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  3030. else
  3031. ac_save_IFS=$IFS; IFS=$ac_path_separator
  3032. ac_dummy="$PATH"
  3033. for ac_dir in $ac_dummy; do
  3034. IFS=$ac_save_IFS
  3035. test -z "$ac_dir" && ac_dir=.
  3036. $as_executable_p "$ac_dir/$ac_word" || continue
  3037. ac_cv_prog_ac_ct_RANLIB="ranlib"
  3038. echo "$as_me:3363: found $ac_dir/$ac_word" >&5
  3039. break
  3040. done
  3041. test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
  3042. fi
  3043. fi
  3044. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  3045. if test -n "$ac_ct_RANLIB"; then
  3046. echo "$as_me:3372: result: $ac_ct_RANLIB" >&5
  3047. echo "${ECHO_T}$ac_ct_RANLIB" >&6
  3048. else
  3049. echo "$as_me:3375: result: no" >&5
  3050. echo "${ECHO_T}no" >&6
  3051. fi
  3052. RANLIB=$ac_ct_RANLIB
  3053. else
  3054. RANLIB="$ac_cv_prog_RANLIB"
  3055. fi
  3056. fi
  3057. echo "$as_me:3386: checking for AIX" >&5
  3058. echo $ECHO_N "checking for AIX... $ECHO_C" >&6
  3059. cat >conftest.$ac_ext <<_ACEOF
  3060. #line 3389 "configure"
  3061. #include "confdefs.h"
  3062. #ifdef _AIX
  3063. yes
  3064. #endif
  3065. _ACEOF
  3066. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3067. egrep "yes" >/dev/null 2>&1; then
  3068. echo "$as_me:3398: result: yes" >&5
  3069. echo "${ECHO_T}yes" >&6
  3070. cat >>confdefs.h <<\EOF
  3071. #define _ALL_SOURCE 1
  3072. EOF
  3073. else
  3074. echo "$as_me:3405: result: no" >&5
  3075. echo "${ECHO_T}no" >&6
  3076. fi
  3077. rm -f conftest*
  3078. #### Extract some information from the operating system and machine files.
  3079. { echo "$as_me:3412: checking the machine- and system-dependent files to find out
  3080. - which libraries the lib-src programs will want, and
  3081. - whether the GNU malloc routines are usable..." >&5
  3082. echo "$as_me: checking the machine- and system-dependent files to find out
  3083. - which libraries the lib-src programs will want, and
  3084. - whether the GNU malloc routines are usable..." >&6;}
  3085. ### First figure out CFLAGS (which we use for running the compiler here)
  3086. ### and REAL_CFLAGS (which we use for real compilation).
  3087. ### The two are the same except on a few systems, where they are made
  3088. ### different to work around various lossages. For example,
  3089. ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
  3090. ### as implying static linking.
  3091. ### If the CFLAGS env var is specified, we use that value
  3092. ### instead of the default.
  3093. ### It's not important that this name contain the PID; you can't run
  3094. ### two configures in the same directory and have anything work
  3095. ### anyway.
  3096. tempcname="conftest.c"
  3097. echo '
  3098. #include "'${srcdir}'/src/'${opsysfile}'"
  3099. #include "'${srcdir}'/src/'${machfile}'"
  3100. #ifndef LIBS_MACHINE
  3101. #define LIBS_MACHINE
  3102. #endif
  3103. #ifndef LIBS_SYSTEM
  3104. #define LIBS_SYSTEM
  3105. #endif
  3106. #ifndef C_SWITCH_SYSTEM
  3107. #define C_SWITCH_SYSTEM
  3108. #endif
  3109. #ifndef C_SWITCH_MACHINE
  3110. #define C_SWITCH_MACHINE
  3111. #endif
  3112. configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
  3113. configure___ c_switch_system=C_SWITCH_SYSTEM
  3114. configure___ c_switch_machine=C_SWITCH_MACHINE
  3115. #ifndef LIB_X11_LIB
  3116. #define LIB_X11_LIB -lX11
  3117. #endif
  3118. #ifndef LIBX11_MACHINE
  3119. #define LIBX11_MACHINE
  3120. #endif
  3121. #ifndef LIBX11_SYSTEM
  3122. #define LIBX11_SYSTEM
  3123. #endif
  3124. configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
  3125. #ifdef UNEXEC
  3126. configure___ unexec=UNEXEC
  3127. #else
  3128. configure___ unexec=unexec.o
  3129. #endif
  3130. #ifdef SYSTEM_MALLOC
  3131. configure___ system_malloc=yes
  3132. #else
  3133. configure___ system_malloc=no
  3134. #endif
  3135. #ifdef USE_MMAP_FOR_BUFFERS
  3136. configure___ use_mmap_for_buffers=yes
  3137. #else
  3138. configure___ use_mmap_for_buffers=no
  3139. #endif
  3140. #ifndef C_DEBUG_SWITCH
  3141. #define C_DEBUG_SWITCH -g
  3142. #endif
  3143. #ifndef C_OPTIMIZE_SWITCH
  3144. #ifdef __GNUC__
  3145. #define C_OPTIMIZE_SWITCH -O2
  3146. #else
  3147. #define C_OPTIMIZE_SWITCH -O
  3148. #endif
  3149. #endif
  3150. #ifndef LD_SWITCH_MACHINE
  3151. #define LD_SWITCH_MACHINE
  3152. #endif
  3153. #ifndef LD_SWITCH_SYSTEM
  3154. #define LD_SWITCH_SYSTEM
  3155. #endif
  3156. #ifndef LD_SWITCH_X_SITE_AUX
  3157. #define LD_SWITCH_X_SITE_AUX
  3158. #endif
  3159. configure___ ld_switch_system=LD_SWITCH_SYSTEM
  3160. configure___ ld_switch_machine=LD_SWITCH_MACHINE
  3161. #ifdef THIS_IS_CONFIGURE
  3162. /* Get the CFLAGS for tests in configure. */
  3163. #ifdef __GNUC__
  3164. configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
  3165. #else
  3166. configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
  3167. #endif
  3168. #else /* not THIS_IS_CONFIGURE */
  3169. /* Get the CFLAGS for real compilation. */
  3170. #ifdef __GNUC__
  3171. configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
  3172. #else
  3173. configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
  3174. #endif
  3175. #endif /* not THIS_IS_CONFIGURE */
  3176. ' > ${tempcname}
  3177. # The value of CPP is a quoted variable reference, so we need to do this
  3178. # to get its actual value...
  3179. CPP=`eval "echo $CPP"`
  3180. eval `${CPP} -Isrc ${tempcname} \
  3181. | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
  3182. if test "x$SPECIFIED_CFLAGS" = x; then
  3183. eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
  3184. | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
  3185. else
  3186. REAL_CFLAGS="$CFLAGS"
  3187. fi
  3188. rm ${tempcname}
  3189. ac_link="$ac_link $ld_switch_machine $ld_switch_system"
  3190. ### Make sure subsequent tests use flags consistent with the build flags.
  3191. if test x"${OVERRIDE_CPPFLAGS}" != x; then
  3192. CPPFLAGS="${OVERRIDE_CPPFLAGS}"
  3193. else
  3194. CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
  3195. fi
  3196. # Check whether --enable-largefile or --disable-largefile was given.
  3197. if test "${enable_largefile+set}" = set; then
  3198. enableval="$enable_largefile"
  3199. fi;
  3200. if test "$enable_largefile" != no; then
  3201. echo "$as_me:3562: checking for special C compiler options needed for large files" >&5
  3202. echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
  3203. if test "${ac_cv_sys_largefile_CC+set}" = set; then
  3204. echo $ECHO_N "(cached) $ECHO_C" >&6
  3205. else
  3206. ac_cv_sys_largefile_CC=no
  3207. if test "$GCC" != yes; then
  3208. ac_save_CC=$CC
  3209. while :; do
  3210. # IRIX 6.2 and later do not support large files by default,
  3211. # so use the C compiler's -n32 option if that helps.
  3212. cat >conftest.$ac_ext <<_ACEOF
  3213. #line 3574 "configure"
  3214. #include "confdefs.h"
  3215. #include <sys/types.h>
  3216. /* Check that off_t can represent 2**63 - 1 correctly.
  3217. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  3218. since some C++ compilers masquerading as C compilers
  3219. incorrectly reject 9223372036854775807. */
  3220. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  3221. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  3222. && LARGE_OFF_T % 2147483647 == 1)
  3223. ? 1 : -1];
  3224. int
  3225. main ()
  3226. {
  3227. ;
  3228. return 0;
  3229. }
  3230. _ACEOF
  3231. rm -f conftest.$ac_objext
  3232. if { (eval echo "$as_me:3594: \"$ac_compile\"") >&5
  3233. (eval $ac_compile) 2>&5
  3234. ac_status=$?
  3235. echo "$as_me:3597: \$? = $ac_status" >&5
  3236. (exit $ac_status); } &&
  3237. { ac_try='test -s conftest.$ac_objext'
  3238. { (eval echo "$as_me:3600: \"$ac_try\"") >&5
  3239. (eval $ac_try) 2>&5
  3240. ac_status=$?
  3241. echo "$as_me:3603: \$? = $ac_status" >&5
  3242. (exit $ac_status); }; }; then
  3243. break
  3244. else
  3245. echo "$as_me: failed program was:" >&5
  3246. cat conftest.$ac_ext >&5
  3247. fi
  3248. rm -f conftest.$ac_objext
  3249. CC="$CC -n32"
  3250. rm -f conftest.$ac_objext
  3251. if { (eval echo "$as_me:3613: \"$ac_compile\"") >&5
  3252. (eval $ac_compile) 2>&5
  3253. ac_status=$?
  3254. echo "$as_me:3616: \$? = $ac_status" >&5
  3255. (exit $ac_status); } &&
  3256. { ac_try='test -s conftest.$ac_objext'
  3257. { (eval echo "$as_me:3619: \"$ac_try\"") >&5
  3258. (eval $ac_try) 2>&5
  3259. ac_status=$?
  3260. echo "$as_me:3622: \$? = $ac_status" >&5
  3261. (exit $ac_status); }; }; then
  3262. ac_cv_sys_largefile_CC=' -n32'; break
  3263. else
  3264. echo "$as_me: failed program was:" >&5
  3265. cat conftest.$ac_ext >&5
  3266. fi
  3267. rm -f conftest.$ac_objext
  3268. break
  3269. done
  3270. CC=$ac_save_CC
  3271. rm -f conftest.$ac_ext
  3272. fi
  3273. fi
  3274. echo "$as_me:3636: result: $ac_cv_sys_largefile_CC" >&5
  3275. echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
  3276. if test "$ac_cv_sys_largefile_CC" != no; then
  3277. CC=$CC$ac_cv_sys_largefile_CC
  3278. fi
  3279. echo "$as_me:3642: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  3280. echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
  3281. if test "${ac_cv_sys_file_offset_bits+set}" = set; then
  3282. echo $ECHO_N "(cached) $ECHO_C" >&6
  3283. else
  3284. while :; do
  3285. ac_cv_sys_file_offset_bits=no
  3286. cat >conftest.$ac_ext <<_ACEOF
  3287. #line 3650 "configure"
  3288. #include "confdefs.h"
  3289. #include <sys/types.h>
  3290. /* Check that off_t can represent 2**63 - 1 correctly.
  3291. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  3292. since some C++ compilers masquerading as C compilers
  3293. incorrectly reject 9223372036854775807. */
  3294. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  3295. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  3296. && LARGE_OFF_T % 2147483647 == 1)
  3297. ? 1 : -1];
  3298. int
  3299. main ()
  3300. {
  3301. ;
  3302. return 0;
  3303. }
  3304. _ACEOF
  3305. rm -f conftest.$ac_objext
  3306. if { (eval echo "$as_me:3670: \"$ac_compile\"") >&5
  3307. (eval $ac_compile) 2>&5
  3308. ac_status=$?
  3309. echo "$as_me:3673: \$? = $ac_status" >&5
  3310. (exit $ac_status); } &&
  3311. { ac_try='test -s conftest.$ac_objext'
  3312. { (eval echo "$as_me:3676: \"$ac_try\"") >&5
  3313. (eval $ac_try) 2>&5
  3314. ac_status=$?
  3315. echo "$as_me:3679: \$? = $ac_status" >&5
  3316. (exit $ac_status); }; }; then
  3317. break
  3318. else
  3319. echo "$as_me: failed program was:" >&5
  3320. cat conftest.$ac_ext >&5
  3321. fi
  3322. rm -f conftest.$ac_objext conftest.$ac_ext
  3323. cat >conftest.$ac_ext <<_ACEOF
  3324. #line 3688 "configure"
  3325. #include "confdefs.h"
  3326. #define _FILE_OFFSET_BITS 64
  3327. #include <sys/types.h>
  3328. /* Check that off_t can represent 2**63 - 1 correctly.
  3329. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  3330. since some C++ compilers masquerading as C compilers
  3331. incorrectly reject 9223372036854775807. */
  3332. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  3333. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  3334. && LARGE_OFF_T % 2147483647 == 1)
  3335. ? 1 : -1];
  3336. int
  3337. main ()
  3338. {
  3339. ;
  3340. return 0;
  3341. }
  3342. _ACEOF
  3343. rm -f conftest.$ac_objext
  3344. if { (eval echo "$as_me:3709: \"$ac_compile\"") >&5
  3345. (eval $ac_compile) 2>&5
  3346. ac_status=$?
  3347. echo "$as_me:3712: \$? = $ac_status" >&5
  3348. (exit $ac_status); } &&
  3349. { ac_try='test -s conftest.$ac_objext'
  3350. { (eval echo "$as_me:3715: \"$ac_try\"") >&5
  3351. (eval $ac_try) 2>&5
  3352. ac_status=$?
  3353. echo "$as_me:3718: \$? = $ac_status" >&5
  3354. (exit $ac_status); }; }; then
  3355. ac_cv_sys_file_offset_bits=64; break
  3356. else
  3357. echo "$as_me: failed program was:" >&5
  3358. cat conftest.$ac_ext >&5
  3359. fi
  3360. rm -f conftest.$ac_objext conftest.$ac_ext
  3361. break
  3362. done
  3363. fi
  3364. echo "$as_me:3729: result: $ac_cv_sys_file_offset_bits" >&5
  3365. echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
  3366. if test "$ac_cv_sys_file_offset_bits" != no; then
  3367. cat >>confdefs.h <<EOF
  3368. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  3369. EOF
  3370. fi
  3371. rm -f conftest*
  3372. echo "$as_me:3739: checking for _LARGE_FILES value needed for large files" >&5
  3373. echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
  3374. if test "${ac_cv_sys_large_files+set}" = set; then
  3375. echo $ECHO_N "(cached) $ECHO_C" >&6
  3376. else
  3377. while :; do
  3378. ac_cv_sys_large_files=no
  3379. cat >conftest.$ac_ext <<_ACEOF
  3380. #line 3747 "configure"
  3381. #include "confdefs.h"
  3382. #include <sys/types.h>
  3383. /* Check that off_t can represent 2**63 - 1 correctly.
  3384. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  3385. since some C++ compilers masquerading as C compilers
  3386. incorrectly reject 9223372036854775807. */
  3387. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  3388. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  3389. && LARGE_OFF_T % 2147483647 == 1)
  3390. ? 1 : -1];
  3391. int
  3392. main ()
  3393. {
  3394. ;
  3395. return 0;
  3396. }
  3397. _ACEOF
  3398. rm -f conftest.$ac_objext
  3399. if { (eval echo "$as_me:3767: \"$ac_compile\"") >&5
  3400. (eval $ac_compile) 2>&5
  3401. ac_status=$?
  3402. echo "$as_me:3770: \$? = $ac_status" >&5
  3403. (exit $ac_status); } &&
  3404. { ac_try='test -s conftest.$ac_objext'
  3405. { (eval echo "$as_me:3773: \"$ac_try\"") >&5
  3406. (eval $ac_try) 2>&5
  3407. ac_status=$?
  3408. echo "$as_me:3776: \$? = $ac_status" >&5
  3409. (exit $ac_status); }; }; then
  3410. break
  3411. else
  3412. echo "$as_me: failed program was:" >&5
  3413. cat conftest.$ac_ext >&5
  3414. fi
  3415. rm -f conftest.$ac_objext conftest.$ac_ext
  3416. cat >conftest.$ac_ext <<_ACEOF
  3417. #line 3785 "configure"
  3418. #include "confdefs.h"
  3419. #define _LARGE_FILES 1
  3420. #include <sys/types.h>
  3421. /* Check that off_t can represent 2**63 - 1 correctly.
  3422. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  3423. since some C++ compilers masquerading as C compilers
  3424. incorrectly reject 9223372036854775807. */
  3425. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  3426. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  3427. && LARGE_OFF_T % 2147483647 == 1)
  3428. ? 1 : -1];
  3429. int
  3430. main ()
  3431. {
  3432. ;
  3433. return 0;
  3434. }
  3435. _ACEOF
  3436. rm -f conftest.$ac_objext
  3437. if { (eval echo "$as_me:3806: \"$ac_compile\"") >&5
  3438. (eval $ac_compile) 2>&5
  3439. ac_status=$?
  3440. echo "$as_me:3809: \$? = $ac_status" >&5
  3441. (exit $ac_status); } &&
  3442. { ac_try='test -s conftest.$ac_objext'
  3443. { (eval echo "$as_me:3812: \"$ac_try\"") >&5
  3444. (eval $ac_try) 2>&5
  3445. ac_status=$?
  3446. echo "$as_me:3815: \$? = $ac_status" >&5
  3447. (exit $ac_status); }; }; then
  3448. ac_cv_sys_large_files=1; break
  3449. else
  3450. echo "$as_me: failed program was:" >&5
  3451. cat conftest.$ac_ext >&5
  3452. fi
  3453. rm -f conftest.$ac_objext conftest.$ac_ext
  3454. break
  3455. done
  3456. fi
  3457. echo "$as_me:3826: result: $ac_cv_sys_large_files" >&5
  3458. echo "${ECHO_T}$ac_cv_sys_large_files" >&6
  3459. if test "$ac_cv_sys_large_files" != no; then
  3460. cat >>confdefs.h <<EOF
  3461. #define _LARGE_FILES $ac_cv_sys_large_files
  3462. EOF
  3463. fi
  3464. rm -f conftest*
  3465. fi
  3466. # Sound support for GNU/Linux and the free BSDs.
  3467. for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
  3468. do
  3469. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3470. echo "$as_me:3843: checking for $ac_header" >&5
  3471. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  3472. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3473. echo $ECHO_N "(cached) $ECHO_C" >&6
  3474. else
  3475. cat >conftest.$ac_ext <<_ACEOF
  3476. #line 3849 "configure"
  3477. #include "confdefs.h"
  3478. #include <$ac_header>
  3479. _ACEOF
  3480. if { (eval echo "$as_me:3853: \"$ac_cpp conftest.$ac_ext\"") >&5
  3481. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3482. ac_status=$?
  3483. egrep -v '^ *\+' conftest.er1 >conftest.err
  3484. rm -f conftest.er1
  3485. cat conftest.err >&5
  3486. echo "$as_me:3859: \$? = $ac_status" >&5
  3487. (exit $ac_status); } >/dev/null; then
  3488. if test -s conftest.err; then
  3489. ac_cpp_err=$ac_c_preproc_warn_flag
  3490. else
  3491. ac_cpp_err=
  3492. fi
  3493. else
  3494. ac_cpp_err=yes
  3495. fi
  3496. if test -z "$ac_cpp_err"; then
  3497. eval "$as_ac_Header=yes"
  3498. else
  3499. echo "$as_me: failed program was:" >&5
  3500. cat conftest.$ac_ext >&5
  3501. eval "$as_ac_Header=no"
  3502. fi
  3503. rm -f conftest.err conftest.$ac_ext
  3504. fi
  3505. echo "$as_me:3878: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3506. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3507. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  3508. cat >>confdefs.h <<EOF
  3509. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3510. EOF
  3511. fi
  3512. done
  3513. # Emulation library used on NetBSD.
  3514. echo "$as_me:3889: checking for _oss_ioctl in -lossaudio" >&5
  3515. echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
  3516. if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
  3517. echo $ECHO_N "(cached) $ECHO_C" >&6
  3518. else
  3519. ac_check_lib_save_LIBS=$LIBS
  3520. LIBS="-lossaudio $LIBS"
  3521. cat >conftest.$ac_ext <<_ACEOF
  3522. #line 3897 "configure"
  3523. #include "confdefs.h"
  3524. /* Override any gcc2 internal prototype to avoid an error. */
  3525. #ifdef __cplusplus
  3526. extern "C"
  3527. #endif
  3528. /* We use char because int might match the return type of a gcc2
  3529. builtin and then its argument prototype would still apply. */
  3530. char _oss_ioctl ();
  3531. int
  3532. main ()
  3533. {
  3534. _oss_ioctl ();
  3535. ;
  3536. return 0;
  3537. }
  3538. _ACEOF
  3539. rm -f conftest.$ac_objext conftest$ac_exeext
  3540. if { (eval echo "$as_me:3916: \"$ac_link\"") >&5
  3541. (eval $ac_link) 2>&5
  3542. ac_status=$?
  3543. echo "$as_me:3919: \$? = $ac_status" >&5
  3544. (exit $ac_status); } &&
  3545. { ac_try='test -s conftest$ac_exeext'
  3546. { (eval echo "$as_me:3922: \"$ac_try\"") >&5
  3547. (eval $ac_try) 2>&5
  3548. ac_status=$?
  3549. echo "$as_me:3925: \$? = $ac_status" >&5
  3550. (exit $ac_status); }; }; then
  3551. ac_cv_lib_ossaudio__oss_ioctl=yes
  3552. else
  3553. echo "$as_me: failed program was:" >&5
  3554. cat conftest.$ac_ext >&5
  3555. ac_cv_lib_ossaudio__oss_ioctl=no
  3556. fi
  3557. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  3558. LIBS=$ac_check_lib_save_LIBS
  3559. fi
  3560. echo "$as_me:3936: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
  3561. echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
  3562. if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
  3563. LIBSOUND=-lossaudio
  3564. else
  3565. LIBSOUND=
  3566. fi
  3567. for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
  3568. linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
  3569. termcap.h stdio_ext.h fcntl.h term.h strings.h coff.h
  3570. do
  3571. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3572. echo "$as_me:3949: checking for $ac_header" >&5
  3573. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  3574. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3575. echo $ECHO_N "(cached) $ECHO_C" >&6
  3576. else
  3577. cat >conftest.$ac_ext <<_ACEOF
  3578. #line 3955 "configure"
  3579. #include "confdefs.h"
  3580. #include <$ac_header>
  3581. _ACEOF
  3582. if { (eval echo "$as_me:3959: \"$ac_cpp conftest.$ac_ext\"") >&5
  3583. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3584. ac_status=$?
  3585. egrep -v '^ *\+' conftest.er1 >conftest.err
  3586. rm -f conftest.er1
  3587. cat conftest.err >&5
  3588. echo "$as_me:3965: \$? = $ac_status" >&5
  3589. (exit $ac_status); } >/dev/null; then
  3590. if test -s conftest.err; then
  3591. ac_cpp_err=$ac_c_preproc_warn_flag
  3592. else
  3593. ac_cpp_err=
  3594. fi
  3595. else
  3596. ac_cpp_err=yes
  3597. fi
  3598. if test -z "$ac_cpp_err"; then
  3599. eval "$as_ac_Header=yes"
  3600. else
  3601. echo "$as_me: failed program was:" >&5
  3602. cat conftest.$ac_ext >&5
  3603. eval "$as_ac_Header=no"
  3604. fi
  3605. rm -f conftest.err conftest.$ac_ext
  3606. fi
  3607. echo "$as_me:3984: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3608. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3609. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  3610. cat >>confdefs.h <<EOF
  3611. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3612. EOF
  3613. fi
  3614. done
  3615. echo "$as_me:3994: checking for ANSI C header files" >&5
  3616. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  3617. if test "${ac_cv_header_stdc+set}" = set; then
  3618. echo $ECHO_N "(cached) $ECHO_C" >&6
  3619. else
  3620. cat >conftest.$ac_ext <<_ACEOF
  3621. #line 4000 "configure"
  3622. #include "confdefs.h"
  3623. #include <stdlib.h>
  3624. #include <stdarg.h>
  3625. #include <string.h>
  3626. #include <float.h>
  3627. _ACEOF
  3628. if { (eval echo "$as_me:4008: \"$ac_cpp conftest.$ac_ext\"") >&5
  3629. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3630. ac_status=$?
  3631. egrep -v '^ *\+' conftest.er1 >conftest.err
  3632. rm -f conftest.er1
  3633. cat conftest.err >&5
  3634. echo "$as_me:4014: \$? = $ac_status" >&5
  3635. (exit $ac_status); } >/dev/null; then
  3636. if test -s conftest.err; then
  3637. ac_cpp_err=$ac_c_preproc_warn_flag
  3638. else
  3639. ac_cpp_err=
  3640. fi
  3641. else
  3642. ac_cpp_err=yes
  3643. fi
  3644. if test -z "$ac_cpp_err"; then
  3645. ac_cv_header_stdc=yes
  3646. else
  3647. echo "$as_me: failed program was:" >&5
  3648. cat conftest.$ac_ext >&5
  3649. ac_cv_header_stdc=no
  3650. fi
  3651. rm -f conftest.err conftest.$ac_ext
  3652. if test $ac_cv_header_stdc = yes; then
  3653. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3654. cat >conftest.$ac_ext <<_ACEOF
  3655. #line 4036 "configure"
  3656. #include "confdefs.h"
  3657. #include <string.h>
  3658. _ACEOF
  3659. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3660. egrep "memchr" >/dev/null 2>&1; then
  3661. :
  3662. else
  3663. ac_cv_header_stdc=no
  3664. fi
  3665. rm -f conftest*
  3666. fi
  3667. if test $ac_cv_header_stdc = yes; then
  3668. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3669. cat >conftest.$ac_ext <<_ACEOF
  3670. #line 4054 "configure"
  3671. #include "confdefs.h"
  3672. #include <stdlib.h>
  3673. _ACEOF
  3674. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3675. egrep "free" >/dev/null 2>&1; then
  3676. :
  3677. else
  3678. ac_cv_header_stdc=no
  3679. fi
  3680. rm -f conftest*
  3681. fi
  3682. if test $ac_cv_header_stdc = yes; then
  3683. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3684. if test "$cross_compiling" = yes; then
  3685. :
  3686. else
  3687. cat >conftest.$ac_ext <<_ACEOF
  3688. #line 4075 "configure"
  3689. #include "confdefs.h"
  3690. #include <ctype.h>
  3691. #if ((' ' & 0x0FF) == 0x020)
  3692. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3693. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3694. #else
  3695. # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
  3696. || ('j' <= (c) && (c) <= 'r') \
  3697. || ('s' <= (c) && (c) <= 'z'))
  3698. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3699. #endif
  3700. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3701. int
  3702. main ()
  3703. {
  3704. int i;
  3705. for (i = 0; i < 256; i++)
  3706. if (XOR (islower (i), ISLOWER (i))
  3707. || toupper (i) != TOUPPER (i))
  3708. exit(2);
  3709. exit (0);
  3710. }
  3711. _ACEOF
  3712. rm -f conftest$ac_exeext
  3713. if { (eval echo "$as_me:4101: \"$ac_link\"") >&5
  3714. (eval $ac_link) 2>&5
  3715. ac_status=$?
  3716. echo "$as_me:4104: \$? = $ac_status" >&5
  3717. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3718. { (eval echo "$as_me:4106: \"$ac_try\"") >&5
  3719. (eval $ac_try) 2>&5
  3720. ac_status=$?
  3721. echo "$as_me:4109: \$? = $ac_status" >&5
  3722. (exit $ac_status); }; }; then
  3723. :
  3724. else
  3725. echo "$as_me: program exited with status $ac_status" >&5
  3726. echo "$as_me: failed program was:" >&5
  3727. cat conftest.$ac_ext >&5
  3728. ac_cv_header_stdc=no
  3729. fi
  3730. rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3731. fi
  3732. fi
  3733. fi
  3734. echo "$as_me:4122: result: $ac_cv_header_stdc" >&5
  3735. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  3736. if test $ac_cv_header_stdc = yes; then
  3737. cat >>confdefs.h <<\EOF
  3738. #define STDC_HEADERS 1
  3739. EOF
  3740. fi
  3741. echo "$as_me:4132: checking whether time.h and sys/time.h may both be included" >&5
  3742. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
  3743. if test "${ac_cv_header_time+set}" = set; then
  3744. echo $ECHO_N "(cached) $ECHO_C" >&6
  3745. else
  3746. cat >conftest.$ac_ext <<_ACEOF
  3747. #line 4138 "configure"
  3748. #include "confdefs.h"
  3749. #include <sys/types.h>
  3750. #include <sys/time.h>
  3751. #include <time.h>
  3752. int
  3753. main ()
  3754. {
  3755. if ((struct tm *) 0)
  3756. return 0;
  3757. ;
  3758. return 0;
  3759. }
  3760. _ACEOF
  3761. rm -f conftest.$ac_objext
  3762. if { (eval echo "$as_me:4154: \"$ac_compile\"") >&5
  3763. (eval $ac_compile) 2>&5
  3764. ac_status=$?
  3765. echo "$as_me:4157: \$? = $ac_status" >&5
  3766. (exit $ac_status); } &&
  3767. { ac_try='test -s conftest.$ac_objext'
  3768. { (eval echo "$as_me:4160: \"$ac_try\"") >&5
  3769. (eval $ac_try) 2>&5
  3770. ac_status=$?
  3771. echo "$as_me:4163: \$? = $ac_status" >&5
  3772. (exit $ac_status); }; }; then
  3773. ac_cv_header_time=yes
  3774. else
  3775. echo "$as_me: failed program was:" >&5
  3776. cat conftest.$ac_ext >&5
  3777. ac_cv_header_time=no
  3778. fi
  3779. rm -f conftest.$ac_objext conftest.$ac_ext
  3780. fi
  3781. echo "$as_me:4173: result: $ac_cv_header_time" >&5
  3782. echo "${ECHO_T}$ac_cv_header_time" >&6
  3783. if test $ac_cv_header_time = yes; then
  3784. cat >>confdefs.h <<\EOF
  3785. #define TIME_WITH_SYS_TIME 1
  3786. EOF
  3787. fi
  3788. echo "$as_me:4183: checking for sys_siglist declaration in signal.h or unistd.h" >&5
  3789. echo $ECHO_N "checking for sys_siglist declaration in signal.h or unistd.h... $ECHO_C" >&6
  3790. if test "${ac_cv_decl_sys_siglist+set}" = set; then
  3791. echo $ECHO_N "(cached) $ECHO_C" >&6
  3792. else
  3793. cat >conftest.$ac_ext <<_ACEOF
  3794. #line 4189 "configure"
  3795. #include "confdefs.h"
  3796. #include <sys/types.h>
  3797. #include <signal.h>
  3798. /* NetBSD declares sys_siglist in unistd.h. */
  3799. #if HAVE_UNISTD_H
  3800. # include <unistd.h>
  3801. #endif
  3802. int
  3803. main ()
  3804. {
  3805. char *msg = *(sys_siglist + 1);
  3806. ;
  3807. return 0;
  3808. }
  3809. _ACEOF
  3810. rm -f conftest.$ac_objext
  3811. if { (eval echo "$as_me:4207: \"$ac_compile\"") >&5
  3812. (eval $ac_compile) 2>&5
  3813. ac_status=$?
  3814. echo "$as_me:4210: \$? = $ac_status" >&5
  3815. (exit $ac_status); } &&
  3816. { ac_try='test -s conftest.$ac_objext'
  3817. { (eval echo "$as_me:4213: \"$ac_try\"") >&5
  3818. (eval $ac_try) 2>&5
  3819. ac_status=$?
  3820. echo "$as_me:4216: \$? = $ac_status" >&5
  3821. (exit $ac_status); }; }; then
  3822. ac_cv_decl_sys_siglist=yes
  3823. else
  3824. echo "$as_me: failed program was:" >&5
  3825. cat conftest.$ac_ext >&5
  3826. ac_cv_decl_sys_siglist=no
  3827. fi
  3828. rm -f conftest.$ac_objext conftest.$ac_ext
  3829. fi
  3830. echo "$as_me:4226: result: $ac_cv_decl_sys_siglist" >&5
  3831. echo "${ECHO_T}$ac_cv_decl_sys_siglist" >&6
  3832. if test $ac_cv_decl_sys_siglist = yes; then
  3833. cat >>confdefs.h <<\EOF
  3834. #define SYS_SIGLIST_DECLARED 1
  3835. EOF
  3836. fi
  3837. echo "$as_me:4236: checking for sys/wait.h that is POSIX.1 compatible" >&5
  3838. echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
  3839. if test "${ac_cv_header_sys_wait_h+set}" = set; then
  3840. echo $ECHO_N "(cached) $ECHO_C" >&6
  3841. else
  3842. cat >conftest.$ac_ext <<_ACEOF
  3843. #line 4242 "configure"
  3844. #include "confdefs.h"
  3845. #include <sys/types.h>
  3846. #include <sys/wait.h>
  3847. #ifndef WEXITSTATUS
  3848. # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  3849. #endif
  3850. #ifndef WIFEXITED
  3851. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  3852. #endif
  3853. int
  3854. main ()
  3855. {
  3856. int s;
  3857. wait (&s);
  3858. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  3859. ;
  3860. return 0;
  3861. }
  3862. _ACEOF
  3863. rm -f conftest.$ac_objext
  3864. if { (eval echo "$as_me:4264: \"$ac_compile\"") >&5
  3865. (eval $ac_compile) 2>&5
  3866. ac_status=$?
  3867. echo "$as_me:4267: \$? = $ac_status" >&5
  3868. (exit $ac_status); } &&
  3869. { ac_try='test -s conftest.$ac_objext'
  3870. { (eval echo "$as_me:4270: \"$ac_try\"") >&5
  3871. (eval $ac_try) 2>&5
  3872. ac_status=$?
  3873. echo "$as_me:4273: \$? = $ac_status" >&5
  3874. (exit $ac_status); }; }; then
  3875. ac_cv_header_sys_wait_h=yes
  3876. else
  3877. echo "$as_me: failed program was:" >&5
  3878. cat conftest.$ac_ext >&5
  3879. ac_cv_header_sys_wait_h=no
  3880. fi
  3881. rm -f conftest.$ac_objext conftest.$ac_ext
  3882. fi
  3883. echo "$as_me:4283: result: $ac_cv_header_sys_wait_h" >&5
  3884. echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
  3885. if test $ac_cv_header_sys_wait_h = yes; then
  3886. cat >>confdefs.h <<\EOF
  3887. #define HAVE_SYS_WAIT_H 1
  3888. EOF
  3889. fi
  3890. echo "$as_me:4293: checking for struct utimbuf" >&5
  3891. echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
  3892. if test "${emacs_cv_struct_utimbuf+set}" = set; then
  3893. echo $ECHO_N "(cached) $ECHO_C" >&6
  3894. else
  3895. cat >conftest.$ac_ext <<_ACEOF
  3896. #line 4299 "configure"
  3897. #include "confdefs.h"
  3898. #ifdef TIME_WITH_SYS_TIME
  3899. #include <sys/time.h>
  3900. #include <time.h>
  3901. #else
  3902. #ifdef HAVE_SYS_TIME_H
  3903. #include <sys/time.h>
  3904. #else
  3905. #include <time.h>
  3906. #endif
  3907. #endif
  3908. #ifdef HAVE_UTIME_H
  3909. #include <utime.h>
  3910. #endif
  3911. int
  3912. main ()
  3913. {
  3914. static struct utimbuf x; x.actime = x.modtime;
  3915. ;
  3916. return 0;
  3917. }
  3918. _ACEOF
  3919. rm -f conftest.$ac_objext
  3920. if { (eval echo "$as_me:4323: \"$ac_compile\"") >&5
  3921. (eval $ac_compile) 2>&5
  3922. ac_status=$?
  3923. echo "$as_me:4326: \$? = $ac_status" >&5
  3924. (exit $ac_status); } &&
  3925. { ac_try='test -s conftest.$ac_objext'
  3926. { (eval echo "$as_me:4329: \"$ac_try\"") >&5
  3927. (eval $ac_try) 2>&5
  3928. ac_status=$?
  3929. echo "$as_me:4332: \$? = $ac_status" >&5
  3930. (exit $ac_status); }; }; then
  3931. emacs_cv_struct_utimbuf=yes
  3932. else
  3933. echo "$as_me: failed program was:" >&5
  3934. cat conftest.$ac_ext >&5
  3935. emacs_cv_struct_utimbuf=no
  3936. fi
  3937. rm -f conftest.$ac_objext conftest.$ac_ext
  3938. fi
  3939. echo "$as_me:4342: result: $emacs_cv_struct_utimbuf" >&5
  3940. echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
  3941. if test $emacs_cv_struct_utimbuf = yes; then
  3942. cat >>confdefs.h <<\EOF
  3943. #define HAVE_STRUCT_UTIMBUF 1
  3944. EOF
  3945. fi
  3946. echo "$as_me:4351: checking return type of signal handlers" >&5
  3947. echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
  3948. if test "${ac_cv_type_signal+set}" = set; then
  3949. echo $ECHO_N "(cached) $ECHO_C" >&6
  3950. else
  3951. cat >conftest.$ac_ext <<_ACEOF
  3952. #line 4357 "configure"
  3953. #include "confdefs.h"
  3954. #include <sys/types.h>
  3955. #include <signal.h>
  3956. #ifdef signal
  3957. # undef signal
  3958. #endif
  3959. #ifdef __cplusplus
  3960. extern "C" void (*signal (int, void (*)(int)))(int);
  3961. #else
  3962. void (*signal ()) ();
  3963. #endif
  3964. int
  3965. main ()
  3966. {
  3967. int i;
  3968. ;
  3969. return 0;
  3970. }
  3971. _ACEOF
  3972. rm -f conftest.$ac_objext
  3973. if { (eval echo "$as_me:4379: \"$ac_compile\"") >&5
  3974. (eval $ac_compile) 2>&5
  3975. ac_status=$?
  3976. echo "$as_me:4382: \$? = $ac_status" >&5
  3977. (exit $ac_status); } &&
  3978. { ac_try='test -s conftest.$ac_objext'
  3979. { (eval echo "$as_me:4385: \"$ac_try\"") >&5
  3980. (eval $ac_try) 2>&5
  3981. ac_status=$?
  3982. echo "$as_me:4388: \$? = $ac_status" >&5
  3983. (exit $ac_status); }; }; then
  3984. ac_cv_type_signal=void
  3985. else
  3986. echo "$as_me: failed program was:" >&5
  3987. cat conftest.$ac_ext >&5
  3988. ac_cv_type_signal=int
  3989. fi
  3990. rm -f conftest.$ac_objext conftest.$ac_ext
  3991. fi
  3992. echo "$as_me:4398: result: $ac_cv_type_signal" >&5
  3993. echo "${ECHO_T}$ac_cv_type_signal" >&6
  3994. cat >>confdefs.h <<EOF
  3995. #define RETSIGTYPE $ac_cv_type_signal
  3996. EOF
  3997. echo "$as_me:4405: checking for speed_t" >&5
  3998. echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
  3999. if test "${emacs_cv_speed_t+set}" = set; then
  4000. echo $ECHO_N "(cached) $ECHO_C" >&6
  4001. else
  4002. cat >conftest.$ac_ext <<_ACEOF
  4003. #line 4411 "configure"
  4004. #include "confdefs.h"
  4005. #include <termios.h>
  4006. int
  4007. main ()
  4008. {
  4009. speed_t x = 1;
  4010. ;
  4011. return 0;
  4012. }
  4013. _ACEOF
  4014. rm -f conftest.$ac_objext
  4015. if { (eval echo "$as_me:4423: \"$ac_compile\"") >&5
  4016. (eval $ac_compile) 2>&5
  4017. ac_status=$?
  4018. echo "$as_me:4426: \$? = $ac_status" >&5
  4019. (exit $ac_status); } &&
  4020. { ac_try='test -s conftest.$ac_objext'
  4021. { (eval echo "$as_me:4429: \"$ac_try\"") >&5
  4022. (eval $ac_try) 2>&5
  4023. ac_status=$?
  4024. echo "$as_me:4432: \$? = $ac_status" >&5
  4025. (exit $ac_status); }; }; then
  4026. emacs_cv_speed_t=yes
  4027. else
  4028. echo "$as_me: failed program was:" >&5
  4029. cat conftest.$ac_ext >&5
  4030. emacs_cv_speed_t=no
  4031. fi
  4032. rm -f conftest.$ac_objext conftest.$ac_ext
  4033. fi
  4034. echo "$as_me:4442: result: $emacs_cv_speed_t" >&5
  4035. echo "${ECHO_T}$emacs_cv_speed_t" >&6
  4036. if test $emacs_cv_speed_t = yes; then
  4037. cat >>confdefs.h <<\EOF
  4038. #define HAVE_SPEED_T 1
  4039. EOF
  4040. fi
  4041. echo "$as_me:4451: checking for struct timeval" >&5
  4042. echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
  4043. if test "${emacs_cv_struct_timeval+set}" = set; then
  4044. echo $ECHO_N "(cached) $ECHO_C" >&6
  4045. else
  4046. cat >conftest.$ac_ext <<_ACEOF
  4047. #line 4457 "configure"
  4048. #include "confdefs.h"
  4049. #ifdef TIME_WITH_SYS_TIME
  4050. #include <sys/time.h>
  4051. #include <time.h>
  4052. #else
  4053. #ifdef HAVE_SYS_TIME_H
  4054. #include <sys/time.h>
  4055. #else
  4056. #include <time.h>
  4057. #endif
  4058. #endif
  4059. int
  4060. main ()
  4061. {
  4062. static struct timeval x; x.tv_sec = x.tv_usec;
  4063. ;
  4064. return 0;
  4065. }
  4066. _ACEOF
  4067. rm -f conftest.$ac_objext
  4068. if { (eval echo "$as_me:4478: \"$ac_compile\"") >&5
  4069. (eval $ac_compile) 2>&5
  4070. ac_status=$?
  4071. echo "$as_me:4481: \$? = $ac_status" >&5
  4072. (exit $ac_status); } &&
  4073. { ac_try='test -s conftest.$ac_objext'
  4074. { (eval echo "$as_me:4484: \"$ac_try\"") >&5
  4075. (eval $ac_try) 2>&5
  4076. ac_status=$?
  4077. echo "$as_me:4487: \$? = $ac_status" >&5
  4078. (exit $ac_status); }; }; then
  4079. emacs_cv_struct_timeval=yes
  4080. else
  4081. echo "$as_me: failed program was:" >&5
  4082. cat conftest.$ac_ext >&5
  4083. emacs_cv_struct_timeval=no
  4084. fi
  4085. rm -f conftest.$ac_objext conftest.$ac_ext
  4086. fi
  4087. echo "$as_me:4497: result: $emacs_cv_struct_timeval" >&5
  4088. echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
  4089. HAVE_TIMEVAL=$emacs_cv_struct_timeval
  4090. if test $emacs_cv_struct_timeval = yes; then
  4091. cat >>confdefs.h <<\EOF
  4092. #define HAVE_TIMEVAL 1
  4093. EOF
  4094. fi
  4095. echo "$as_me:4507: checking for struct exception" >&5
  4096. echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
  4097. if test "${emacs_cv_struct_exception+set}" = set; then
  4098. echo $ECHO_N "(cached) $ECHO_C" >&6
  4099. else
  4100. cat >conftest.$ac_ext <<_ACEOF
  4101. #line 4513 "configure"
  4102. #include "confdefs.h"
  4103. #include <math.h>
  4104. int
  4105. main ()
  4106. {
  4107. static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
  4108. ;
  4109. return 0;
  4110. }
  4111. _ACEOF
  4112. rm -f conftest.$ac_objext
  4113. if { (eval echo "$as_me:4525: \"$ac_compile\"") >&5
  4114. (eval $ac_compile) 2>&5
  4115. ac_status=$?
  4116. echo "$as_me:4528: \$? = $ac_status" >&5
  4117. (exit $ac_status); } &&
  4118. { ac_try='test -s conftest.$ac_objext'
  4119. { (eval echo "$as_me:4531: \"$ac_try\"") >&5
  4120. (eval $ac_try) 2>&5
  4121. ac_status=$?
  4122. echo "$as_me:4534: \$? = $ac_status" >&5
  4123. (exit $ac_status); }; }; then
  4124. emacs_cv_struct_exception=yes
  4125. else
  4126. echo "$as_me: failed program was:" >&5
  4127. cat conftest.$ac_ext >&5
  4128. emacs_cv_struct_exception=no
  4129. fi
  4130. rm -f conftest.$ac_objext conftest.$ac_ext
  4131. fi
  4132. echo "$as_me:4544: result: $emacs_cv_struct_exception" >&5
  4133. echo "${ECHO_T}$emacs_cv_struct_exception" >&6
  4134. HAVE_EXCEPTION=$emacs_cv_struct_exception
  4135. if test $emacs_cv_struct_exception != yes; then
  4136. cat >>confdefs.h <<\EOF
  4137. #define NO_MATHERR 1
  4138. EOF
  4139. fi
  4140. echo "$as_me:4554: checking whether struct tm is in sys/time.h or time.h" >&5
  4141. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  4142. if test "${ac_cv_struct_tm+set}" = set; then
  4143. echo $ECHO_N "(cached) $ECHO_C" >&6
  4144. else
  4145. cat >conftest.$ac_ext <<_ACEOF
  4146. #line 4560 "configure"
  4147. #include "confdefs.h"
  4148. #include <sys/types.h>
  4149. #include <time.h>
  4150. int
  4151. main ()
  4152. {
  4153. struct tm *tp; tp->tm_sec;
  4154. ;
  4155. return 0;
  4156. }
  4157. _ACEOF
  4158. rm -f conftest.$ac_objext
  4159. if { (eval echo "$as_me:4574: \"$ac_compile\"") >&5
  4160. (eval $ac_compile) 2>&5
  4161. ac_status=$?
  4162. echo "$as_me:4577: \$? = $ac_status" >&5
  4163. (exit $ac_status); } &&
  4164. { ac_try='test -s conftest.$ac_objext'
  4165. { (eval echo "$as_me:4580: \"$ac_try\"") >&5
  4166. (eval $ac_try) 2>&5
  4167. ac_status=$?
  4168. echo "$as_me:4583: \$? = $ac_status" >&5
  4169. (exit $ac_status); }; }; then
  4170. ac_cv_struct_tm=time.h
  4171. else
  4172. echo "$as_me: failed program was:" >&5
  4173. cat conftest.$ac_ext >&5
  4174. ac_cv_struct_tm=sys/time.h
  4175. fi
  4176. rm -f conftest.$ac_objext conftest.$ac_ext
  4177. fi
  4178. echo "$as_me:4593: result: $ac_cv_struct_tm" >&5
  4179. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  4180. if test $ac_cv_struct_tm = sys/time.h; then
  4181. cat >>confdefs.h <<\EOF
  4182. #define TM_IN_SYS_TIME 1
  4183. EOF
  4184. fi
  4185. echo "$as_me:4603: checking for struct tm.tm_zone" >&5
  4186. echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
  4187. if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
  4188. echo $ECHO_N "(cached) $ECHO_C" >&6
  4189. else
  4190. cat >conftest.$ac_ext <<_ACEOF
  4191. #line 4609 "configure"
  4192. #include "confdefs.h"
  4193. #include <sys/types.h>
  4194. #include <$ac_cv_struct_tm>
  4195. int
  4196. main ()
  4197. {
  4198. static struct tm ac_aggr;
  4199. if (ac_aggr.tm_zone)
  4200. return 0;
  4201. ;
  4202. return 0;
  4203. }
  4204. _ACEOF
  4205. rm -f conftest.$ac_objext
  4206. if { (eval echo "$as_me:4625: \"$ac_compile\"") >&5
  4207. (eval $ac_compile) 2>&5
  4208. ac_status=$?
  4209. echo "$as_me:4628: \$? = $ac_status" >&5
  4210. (exit $ac_status); } &&
  4211. { ac_try='test -s conftest.$ac_objext'
  4212. { (eval echo "$as_me:4631: \"$ac_try\"") >&5
  4213. (eval $ac_try) 2>&5
  4214. ac_status=$?
  4215. echo "$as_me:4634: \$? = $ac_status" >&5
  4216. (exit $ac_status); }; }; then
  4217. ac_cv_member_struct_tm_tm_zone=yes
  4218. else
  4219. echo "$as_me: failed program was:" >&5
  4220. cat conftest.$ac_ext >&5
  4221. ac_cv_member_struct_tm_tm_zone=no
  4222. fi
  4223. rm -f conftest.$ac_objext conftest.$ac_ext
  4224. fi
  4225. echo "$as_me:4644: result: $ac_cv_member_struct_tm_tm_zone" >&5
  4226. echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
  4227. if test $ac_cv_member_struct_tm_tm_zone = yes; then
  4228. cat >>confdefs.h <<EOF
  4229. #define HAVE_STRUCT_TM_TM_ZONE 1
  4230. EOF
  4231. fi
  4232. if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
  4233. cat >>confdefs.h <<\EOF
  4234. #define HAVE_TM_ZONE 1
  4235. EOF
  4236. else
  4237. echo "$as_me:4661: checking for tzname" >&5
  4238. echo $ECHO_N "checking for tzname... $ECHO_C" >&6
  4239. if test "${ac_cv_var_tzname+set}" = set; then
  4240. echo $ECHO_N "(cached) $ECHO_C" >&6
  4241. else
  4242. cat >conftest.$ac_ext <<_ACEOF
  4243. #line 4667 "configure"
  4244. #include "confdefs.h"
  4245. #include <time.h>
  4246. #ifndef tzname /* For SGI. */
  4247. extern char *tzname[]; /* RS6000 and others reject char **tzname. */
  4248. #endif
  4249. int
  4250. main ()
  4251. {
  4252. atoi(*tzname);
  4253. ;
  4254. return 0;
  4255. }
  4256. _ACEOF
  4257. rm -f conftest.$ac_objext conftest$ac_exeext
  4258. if { (eval echo "$as_me:4683: \"$ac_link\"") >&5
  4259. (eval $ac_link) 2>&5
  4260. ac_status=$?
  4261. echo "$as_me:4686: \$? = $ac_status" >&5
  4262. (exit $ac_status); } &&
  4263. { ac_try='test -s conftest$ac_exeext'
  4264. { (eval echo "$as_me:4689: \"$ac_try\"") >&5
  4265. (eval $ac_try) 2>&5
  4266. ac_status=$?
  4267. echo "$as_me:4692: \$? = $ac_status" >&5
  4268. (exit $ac_status); }; }; then
  4269. ac_cv_var_tzname=yes
  4270. else
  4271. echo "$as_me: failed program was:" >&5
  4272. cat conftest.$ac_ext >&5
  4273. ac_cv_var_tzname=no
  4274. fi
  4275. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  4276. fi
  4277. echo "$as_me:4702: result: $ac_cv_var_tzname" >&5
  4278. echo "${ECHO_T}$ac_cv_var_tzname" >&6
  4279. if test $ac_cv_var_tzname = yes; then
  4280. cat >>confdefs.h <<\EOF
  4281. #define HAVE_TZNAME 1
  4282. EOF
  4283. fi
  4284. fi
  4285. echo "$as_me:4713: checking for tm_gmtoff in struct tm" >&5
  4286. echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
  4287. if test "${emacs_cv_tm_gmtoff+set}" = set; then
  4288. echo $ECHO_N "(cached) $ECHO_C" >&6
  4289. else
  4290. cat >conftest.$ac_ext <<_ACEOF
  4291. #line 4719 "configure"
  4292. #include "confdefs.h"
  4293. #include <time.h>
  4294. int
  4295. main ()
  4296. {
  4297. struct tm t; t.tm_gmtoff = 0
  4298. ;
  4299. return 0;
  4300. }
  4301. _ACEOF
  4302. rm -f conftest.$ac_objext conftest$ac_exeext
  4303. if { (eval echo "$as_me:4731: \"$ac_link\"") >&5
  4304. (eval $ac_link) 2>&5
  4305. ac_status=$?
  4306. echo "$as_me:4734: \$? = $ac_status" >&5
  4307. (exit $ac_status); } &&
  4308. { ac_try='test -s conftest$ac_exeext'
  4309. { (eval echo "$as_me:4737: \"$ac_try\"") >&5
  4310. (eval $ac_try) 2>&5
  4311. ac_status=$?
  4312. echo "$as_me:4740: \$? = $ac_status" >&5
  4313. (exit $ac_status); }; }; then
  4314. emacs_cv_tm_gmtoff=yes
  4315. else
  4316. echo "$as_me: failed program was:" >&5
  4317. cat conftest.$ac_ext >&5
  4318. emacs_cv_tm_gmtoff=no
  4319. fi
  4320. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  4321. fi
  4322. echo "$as_me:4750: result: $emacs_cv_tm_gmtoff" >&5
  4323. echo "${ECHO_T}$emacs_cv_tm_gmtoff" >&6
  4324. if test $emacs_cv_tm_gmtoff = yes; then
  4325. cat >>confdefs.h <<\EOF
  4326. #define HAVE_TM_GMTOFF 1
  4327. EOF
  4328. fi
  4329. echo "$as_me:4759: checking for $CC option to accept ANSI C" >&5
  4330. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  4331. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  4332. echo $ECHO_N "(cached) $ECHO_C" >&6
  4333. else
  4334. ac_cv_prog_cc_stdc=no
  4335. ac_save_CC=$CC
  4336. cat >conftest.$ac_ext <<_ACEOF
  4337. #line 4767 "configure"
  4338. #include "confdefs.h"
  4339. #include <stdarg.h>
  4340. #include <stdio.h>
  4341. #include <sys/types.h>
  4342. #include <sys/stat.h>
  4343. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4344. struct buf { int x; };
  4345. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4346. static char *e (p, i)
  4347. char **p;
  4348. int i;
  4349. {
  4350. return p[i];
  4351. }
  4352. static char *f (char * (*g) (char **, int), char **p, ...)
  4353. {
  4354. char *s;
  4355. va_list v;
  4356. va_start (v,p);
  4357. s = g (p, va_arg (v,int));
  4358. va_end (v);
  4359. return s;
  4360. }
  4361. int test (int i, double x);
  4362. struct s1 {int (*f) (int a);};
  4363. struct s2 {int (*f) (double a);};
  4364. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4365. int argc;
  4366. char **argv;
  4367. int
  4368. main ()
  4369. {
  4370. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4371. ;
  4372. return 0;
  4373. }
  4374. _ACEOF
  4375. # Don't try gcc -ansi; that turns off useful extensions and
  4376. # breaks some systems' header files.
  4377. # AIX -qlanglvl=ansi
  4378. # Ultrix and OSF/1 -std1
  4379. # HP-UX 10.20 and later -Ae
  4380. # HP-UX older versions -Aa -D_HPUX_SOURCE
  4381. # SVR4 -Xc -D__EXTENSIONS__
  4382. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4383. do
  4384. CC="$ac_save_CC $ac_arg"
  4385. rm -f conftest.$ac_objext
  4386. if { (eval echo "$as_me:4816: \"$ac_compile\"") >&5
  4387. (eval $ac_compile) 2>&5
  4388. ac_status=$?
  4389. echo "$as_me:4819: \$? = $ac_status" >&5
  4390. (exit $ac_status); } &&
  4391. { ac_try='test -s conftest.$ac_objext'
  4392. { (eval echo "$as_me:4822: \"$ac_try\"") >&5
  4393. (eval $ac_try) 2>&5
  4394. ac_status=$?
  4395. echo "$as_me:4825: \$? = $ac_status" >&5
  4396. (exit $ac_status); }; }; then
  4397. ac_cv_prog_cc_stdc=$ac_arg
  4398. break
  4399. else
  4400. echo "$as_me: failed program was:" >&5
  4401. cat conftest.$ac_ext >&5
  4402. fi
  4403. rm -f conftest.$ac_objext
  4404. done
  4405. rm -f conftest.$ac_ext conftest.$ac_objext
  4406. CC=$ac_save_CC
  4407. fi
  4408. case "x$ac_cv_prog_cc_stdc" in
  4409. x|xno)
  4410. echo "$as_me:4842: result: none needed" >&5
  4411. echo "${ECHO_T}none needed" >&6 ;;
  4412. *)
  4413. echo "$as_me:4845: result: $ac_cv_prog_cc_stdc" >&5
  4414. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  4415. CC="$CC $ac_cv_prog_cc_stdc" ;;
  4416. esac
  4417. echo "$as_me:4850: checking for function prototypes" >&5
  4418. echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
  4419. if test "$ac_cv_prog_cc_stdc" != no; then
  4420. echo "$as_me:4853: result: yes" >&5
  4421. echo "${ECHO_T}yes" >&6
  4422. cat >>confdefs.h <<\EOF
  4423. #define PROTOTYPES 1
  4424. EOF
  4425. else
  4426. echo "$as_me:4861: result: no" >&5
  4427. echo "${ECHO_T}no" >&6
  4428. fi
  4429. echo "$as_me:4865: checking for working volatile" >&5
  4430. echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
  4431. if test "${ac_cv_c_volatile+set}" = set; then
  4432. echo $ECHO_N "(cached) $ECHO_C" >&6
  4433. else
  4434. cat >conftest.$ac_ext <<_ACEOF
  4435. #line 4871 "configure"
  4436. #include "confdefs.h"
  4437. int
  4438. main ()
  4439. {
  4440. volatile int x;
  4441. int * volatile y;
  4442. ;
  4443. return 0;
  4444. }
  4445. _ACEOF
  4446. rm -f conftest.$ac_objext
  4447. if { (eval echo "$as_me:4885: \"$ac_compile\"") >&5
  4448. (eval $ac_compile) 2>&5
  4449. ac_status=$?
  4450. echo "$as_me:4888: \$? = $ac_status" >&5
  4451. (exit $ac_status); } &&
  4452. { ac_try='test -s conftest.$ac_objext'
  4453. { (eval echo "$as_me:4891: \"$ac_try\"") >&5
  4454. (eval $ac_try) 2>&5
  4455. ac_status=$?
  4456. echo "$as_me:4894: \$? = $ac_status" >&5
  4457. (exit $ac_status); }; }; then
  4458. ac_cv_c_volatile=yes
  4459. else
  4460. echo "$as_me: failed program was:" >&5
  4461. cat conftest.$ac_ext >&5
  4462. ac_cv_c_volatile=no
  4463. fi
  4464. rm -f conftest.$ac_objext conftest.$ac_ext
  4465. fi
  4466. echo "$as_me:4904: result: $ac_cv_c_volatile" >&5
  4467. echo "${ECHO_T}$ac_cv_c_volatile" >&6
  4468. if test $ac_cv_c_volatile = no; then
  4469. cat >>confdefs.h <<\EOF
  4470. #define volatile
  4471. EOF
  4472. fi
  4473. echo "$as_me:4914: checking for an ANSI C-conforming const" >&5
  4474. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  4475. if test "${ac_cv_c_const+set}" = set; then
  4476. echo $ECHO_N "(cached) $ECHO_C" >&6
  4477. else
  4478. cat >conftest.$ac_ext <<_ACEOF
  4479. #line 4920 "configure"
  4480. #include "confdefs.h"
  4481. int
  4482. main ()
  4483. {
  4484. /* FIXME: Include the comments suggested by Paul. */
  4485. #ifndef __cplusplus
  4486. /* Ultrix mips cc rejects this. */
  4487. typedef int charset[2];
  4488. const charset x;
  4489. /* SunOS 4.1.1 cc rejects this. */
  4490. char const *const *ccp;
  4491. char **p;
  4492. /* NEC SVR4.0.2 mips cc rejects this. */
  4493. struct point {int x, y;};
  4494. static struct point const zero = {0,0};
  4495. /* AIX XL C 1.02.0.0 rejects this.
  4496. It does not let you subtract one const X* pointer from another in
  4497. an arm of an if-expression whose if-part is not a constant
  4498. expression */
  4499. const char *g = "string";
  4500. ccp = &g + (g ? g-g : 0);
  4501. /* HPUX 7.0 cc rejects these. */
  4502. ++ccp;
  4503. p = (char**) ccp;
  4504. ccp = (char const *const *) p;
  4505. { /* SCO 3.2v4 cc rejects this. */
  4506. char *t;
  4507. char const *s = 0 ? (char *) 0 : (char const *) 0;
  4508. *t++ = 0;
  4509. }
  4510. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  4511. int x[] = {25, 17};
  4512. const int *foo = &x[0];
  4513. ++foo;
  4514. }
  4515. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  4516. typedef const int *iptr;
  4517. iptr p = 0;
  4518. ++p;
  4519. }
  4520. { /* AIX XL C 1.02.0.0 rejects this saying
  4521. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  4522. struct s { int j; const int *ap[3]; };
  4523. struct s *b; b->j = 5;
  4524. }
  4525. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  4526. const int foo = 10;
  4527. }
  4528. #endif
  4529. ;
  4530. return 0;
  4531. }
  4532. _ACEOF
  4533. rm -f conftest.$ac_objext
  4534. if { (eval echo "$as_me:4978: \"$ac_compile\"") >&5
  4535. (eval $ac_compile) 2>&5
  4536. ac_status=$?
  4537. echo "$as_me:4981: \$? = $ac_status" >&5
  4538. (exit $ac_status); } &&
  4539. { ac_try='test -s conftest.$ac_objext'
  4540. { (eval echo "$as_me:4984: \"$ac_try\"") >&5
  4541. (eval $ac_try) 2>&5
  4542. ac_status=$?
  4543. echo "$as_me:4987: \$? = $ac_status" >&5
  4544. (exit $ac_status); }; }; then
  4545. ac_cv_c_const=yes
  4546. else
  4547. echo "$as_me: failed program was:" >&5
  4548. cat conftest.$ac_ext >&5
  4549. ac_cv_c_const=no
  4550. fi
  4551. rm -f conftest.$ac_objext conftest.$ac_ext
  4552. fi
  4553. echo "$as_me:4997: result: $ac_cv_c_const" >&5
  4554. echo "${ECHO_T}$ac_cv_c_const" >&6
  4555. if test $ac_cv_c_const = no; then
  4556. cat >>confdefs.h <<\EOF
  4557. #define const
  4558. EOF
  4559. fi
  4560. echo "$as_me:5007: checking for void * support" >&5
  4561. echo $ECHO_N "checking for void * support... $ECHO_C" >&6
  4562. if test "${emacs_cv_void_star+set}" = set; then
  4563. echo $ECHO_N "(cached) $ECHO_C" >&6
  4564. else
  4565. cat >conftest.$ac_ext <<_ACEOF
  4566. #line 5013 "configure"
  4567. #include "confdefs.h"
  4568. int
  4569. main ()
  4570. {
  4571. void * foo;
  4572. ;
  4573. return 0;
  4574. }
  4575. _ACEOF
  4576. rm -f conftest.$ac_objext
  4577. if { (eval echo "$as_me:5025: \"$ac_compile\"") >&5
  4578. (eval $ac_compile) 2>&5
  4579. ac_status=$?
  4580. echo "$as_me:5028: \$? = $ac_status" >&5
  4581. (exit $ac_status); } &&
  4582. { ac_try='test -s conftest.$ac_objext'
  4583. { (eval echo "$as_me:5031: \"$ac_try\"") >&5
  4584. (eval $ac_try) 2>&5
  4585. ac_status=$?
  4586. echo "$as_me:5034: \$? = $ac_status" >&5
  4587. (exit $ac_status); }; }; then
  4588. emacs_cv_void_star=yes
  4589. else
  4590. echo "$as_me: failed program was:" >&5
  4591. cat conftest.$ac_ext >&5
  4592. emacs_cv_void_star=no
  4593. fi
  4594. rm -f conftest.$ac_objext conftest.$ac_ext
  4595. fi
  4596. echo "$as_me:5044: result: $emacs_cv_void_star" >&5
  4597. echo "${ECHO_T}$emacs_cv_void_star" >&6
  4598. if test $emacs_cv_void_star = yes; then
  4599. cat >>confdefs.h <<\EOF
  4600. #define POINTER_TYPE void
  4601. EOF
  4602. else
  4603. cat >>confdefs.h <<\EOF
  4604. #define POINTER_TYPE char
  4605. EOF
  4606. fi
  4607. echo "$as_me:5058: checking whether ${MAKE-make} sets \${MAKE}" >&5
  4608. echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
  4609. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
  4610. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  4611. echo $ECHO_N "(cached) $ECHO_C" >&6
  4612. else
  4613. cat >conftest.make <<\EOF
  4614. all:
  4615. @echo 'ac_maketemp="${MAKE}"'
  4616. EOF
  4617. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  4618. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  4619. if test -n "$ac_maketemp"; then
  4620. eval ac_cv_prog_make_${ac_make}_set=yes
  4621. else
  4622. eval ac_cv_prog_make_${ac_make}_set=no
  4623. fi
  4624. rm -f conftest.make
  4625. fi
  4626. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  4627. echo "$as_me:5078: result: yes" >&5
  4628. echo "${ECHO_T}yes" >&6
  4629. SET_MAKE=
  4630. else
  4631. echo "$as_me:5082: result: no" >&5
  4632. echo "${ECHO_T}no" >&6
  4633. SET_MAKE="MAKE=${MAKE-make}"
  4634. fi
  4635. echo "$as_me:5087: checking for long file names" >&5
  4636. echo $ECHO_N "checking for long file names... $ECHO_C" >&6
  4637. if test "${ac_cv_sys_long_file_names+set}" = set; then
  4638. echo $ECHO_N "(cached) $ECHO_C" >&6
  4639. else
  4640. ac_cv_sys_long_file_names=yes
  4641. # Test for long file names in all the places we know might matter:
  4642. # . the current directory, where building will happen
  4643. # $prefix/lib where we will be installing things
  4644. # $exec_prefix/lib likewise
  4645. # eval it to expand exec_prefix.
  4646. # $TMPDIR if set, where it might want to write temporary files
  4647. # if $TMPDIR is not set:
  4648. # /tmp where it might want to write temporary files
  4649. # /var/tmp likewise
  4650. # /usr/tmp likewise
  4651. if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
  4652. ac_tmpdirs=$TMPDIR
  4653. else
  4654. ac_tmpdirs='/tmp /var/tmp /usr/tmp'
  4655. fi
  4656. for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
  4657. test -d $ac_dir || continue
  4658. test -w $ac_dir || continue # It is less confusing to not echo anything here.
  4659. ac_xdir=$ac_dir/cf$$
  4660. (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
  4661. ac_tf1=$ac_xdir/conftest9012345
  4662. ac_tf2=$ac_xdir/conftest9012346
  4663. (echo 1 >$ac_tf1) 2>/dev/null
  4664. (echo 2 >$ac_tf2) 2>/dev/null
  4665. ac_val=`cat $ac_tf1 2>/dev/null`
  4666. if test ! -f $ac_tf1 || test "$ac_val" != 1; then
  4667. ac_cv_sys_long_file_names=no
  4668. rm -rf $ac_xdir 2>/dev/null
  4669. break
  4670. fi
  4671. rm -rf $ac_xdir 2>/dev/null
  4672. done
  4673. fi
  4674. echo "$as_me:5126: result: $ac_cv_sys_long_file_names" >&5
  4675. echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
  4676. if test $ac_cv_sys_long_file_names = yes; then
  4677. cat >>confdefs.h <<\EOF
  4678. #define HAVE_LONG_FILE_NAMES 1
  4679. EOF
  4680. fi
  4681. #### Choose a window system.
  4682. echo "$as_me:5138: checking for X" >&5
  4683. echo $ECHO_N "checking for X... $ECHO_C" >&6
  4684. # Check whether --with-x or --without-x was given.
  4685. if test "${with_x+set}" = set; then
  4686. withval="$with_x"
  4687. fi;
  4688. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  4689. if test "x$with_x" = xno; then
  4690. # The user explicitly disabled X.
  4691. have_x=disabled
  4692. else
  4693. if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
  4694. # Both variables are already set.
  4695. have_x=yes
  4696. else
  4697. if test "${ac_cv_have_x+set}" = set; then
  4698. echo $ECHO_N "(cached) $ECHO_C" >&6
  4699. else
  4700. # One or both of the vars are not set, and there is no cached value.
  4701. ac_x_includes=no ac_x_libraries=no
  4702. rm -fr conftest.dir
  4703. if mkdir conftest.dir; then
  4704. cd conftest.dir
  4705. # Make sure to not put "make" in the Imakefile rules, since we grep it out.
  4706. cat >Imakefile <<'EOF'
  4707. acfindx:
  4708. @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
  4709. EOF
  4710. if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
  4711. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  4712. eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
  4713. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  4714. for ac_extension in a so sl; do
  4715. if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
  4716. test -f $ac_im_libdir/libX11.$ac_extension; then
  4717. ac_im_usrlibdir=$ac_im_libdir; break
  4718. fi
  4719. done
  4720. # Screen out bogus values from the imake configuration. They are
  4721. # bogus both because they are the default anyway, and because
  4722. # using them would break gcc on systems where it needs fixed includes.
  4723. case $ac_im_incroot in
  4724. /usr/include) ;;
  4725. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  4726. esac
  4727. case $ac_im_usrlibdir in
  4728. /usr/lib | /lib) ;;
  4729. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  4730. esac
  4731. fi
  4732. cd ..
  4733. rm -fr conftest.dir
  4734. fi
  4735. # Standard set of common directories for X headers.
  4736. # Check X11 before X11Rn because it is often a symlink to the current release.
  4737. ac_x_header_dirs='
  4738. /usr/X11/include
  4739. /usr/X11R6/include
  4740. /usr/X11R5/include
  4741. /usr/X11R4/include
  4742. /usr/include/X11
  4743. /usr/include/X11R6
  4744. /usr/include/X11R5
  4745. /usr/include/X11R4
  4746. /usr/local/X11/include
  4747. /usr/local/X11R6/include
  4748. /usr/local/X11R5/include
  4749. /usr/local/X11R4/include
  4750. /usr/local/include/X11
  4751. /usr/local/include/X11R6
  4752. /usr/local/include/X11R5
  4753. /usr/local/include/X11R4
  4754. /usr/X386/include
  4755. /usr/x386/include
  4756. /usr/XFree86/include/X11
  4757. /usr/include
  4758. /usr/local/include
  4759. /usr/unsupported/include
  4760. /usr/athena/include
  4761. /usr/local/x11r5/include
  4762. /usr/lpp/Xamples/include
  4763. /usr/openwin/include
  4764. /usr/openwin/share/include'
  4765. if test "$ac_x_includes" = no; then
  4766. # Guess where to find include files, by looking for Intrinsic.h.
  4767. # First, try using that file with no special directory specified.
  4768. cat >conftest.$ac_ext <<_ACEOF
  4769. #line 5235 "configure"
  4770. #include "confdefs.h"
  4771. #include <X11/Intrinsic.h>
  4772. _ACEOF
  4773. if { (eval echo "$as_me:5239: \"$ac_cpp conftest.$ac_ext\"") >&5
  4774. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4775. ac_status=$?
  4776. egrep -v '^ *\+' conftest.er1 >conftest.err
  4777. rm -f conftest.er1
  4778. cat conftest.err >&5
  4779. echo "$as_me:5245: \$? = $ac_status" >&5
  4780. (exit $ac_status); } >/dev/null; then
  4781. if test -s conftest.err; then
  4782. ac_cpp_err=$ac_c_preproc_warn_flag
  4783. else
  4784. ac_cpp_err=
  4785. fi
  4786. else
  4787. ac_cpp_err=yes
  4788. fi
  4789. if test -z "$ac_cpp_err"; then
  4790. # We can compile using X headers with no special include directory.
  4791. ac_x_includes=
  4792. else
  4793. echo "$as_me: failed program was:" >&5
  4794. cat conftest.$ac_ext >&5
  4795. for ac_dir in $ac_x_header_dirs; do
  4796. if test -r "$ac_dir/X11/Intrinsic.h"; then
  4797. ac_x_includes=$ac_dir
  4798. break
  4799. fi
  4800. done
  4801. fi
  4802. rm -f conftest.err conftest.$ac_ext
  4803. fi # $ac_x_includes = no
  4804. if test "$ac_x_libraries" = no; then
  4805. # Check for the libraries.
  4806. # See if we find them without any special options.
  4807. # Don't add to $LIBS permanently.
  4808. ac_save_LIBS=$LIBS
  4809. LIBS="-lXt $LIBS"
  4810. cat >conftest.$ac_ext <<_ACEOF
  4811. #line 5278 "configure"
  4812. #include "confdefs.h"
  4813. #include <X11/Intrinsic.h>
  4814. int
  4815. main ()
  4816. {
  4817. XtMalloc (0)
  4818. ;
  4819. return 0;
  4820. }
  4821. _ACEOF
  4822. rm -f conftest.$ac_objext conftest$ac_exeext
  4823. if { (eval echo "$as_me:5290: \"$ac_link\"") >&5
  4824. (eval $ac_link) 2>&5
  4825. ac_status=$?
  4826. echo "$as_me:5293: \$? = $ac_status" >&5
  4827. (exit $ac_status); } &&
  4828. { ac_try='test -s conftest$ac_exeext'
  4829. { (eval echo "$as_me:5296: \"$ac_try\"") >&5
  4830. (eval $ac_try) 2>&5
  4831. ac_status=$?
  4832. echo "$as_me:5299: \$? = $ac_status" >&5
  4833. (exit $ac_status); }; }; then
  4834. LIBS=$ac_save_LIBS
  4835. # We can link X programs with no special library path.
  4836. ac_x_libraries=
  4837. else
  4838. echo "$as_me: failed program was:" >&5
  4839. cat conftest.$ac_ext >&5
  4840. LIBS=$ac_save_LIBS
  4841. for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  4842. do
  4843. # Don't even attempt the hair of trying to link an X program!
  4844. for ac_extension in a so sl; do
  4845. if test -r $ac_dir/libXt.$ac_extension; then
  4846. ac_x_libraries=$ac_dir
  4847. break 2
  4848. fi
  4849. done
  4850. done
  4851. fi
  4852. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  4853. fi # $ac_x_libraries = no
  4854. if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
  4855. # Didn't find X anywhere. Cache the known absence of X.
  4856. ac_cv_have_x="have_x=no"
  4857. else
  4858. # Record where we found X for the cache.
  4859. ac_cv_have_x="have_x=yes \
  4860. ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
  4861. fi
  4862. fi
  4863. fi
  4864. eval "$ac_cv_have_x"
  4865. fi # $with_x != no
  4866. if test "$have_x" != yes; then
  4867. echo "$as_me:5337: result: $have_x" >&5
  4868. echo "${ECHO_T}$have_x" >&6
  4869. no_x=yes
  4870. else
  4871. # If each of the values was on the command line, it overrides each guess.
  4872. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  4873. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  4874. # Update the cache value to reflect the command line values.
  4875. ac_cv_have_x="have_x=yes \
  4876. ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
  4877. echo "$as_me:5347: result: libraries $x_libraries, headers $x_includes" >&5
  4878. echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
  4879. fi
  4880. if test "$no_x" = yes; then
  4881. window_system=none
  4882. else
  4883. window_system=x11
  4884. fi
  4885. if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
  4886. LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
  4887. LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
  4888. x_default_search_path=""
  4889. for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
  4890. x_search_path="\
  4891. ${x_library}/X11/%L/%T/%N%C%S:\
  4892. ${x_library}/X11/%l/%T/%N%C%S:\
  4893. ${x_library}/X11/%T/%N%C%S:\
  4894. ${x_library}/X11/%L/%T/%N%S:\
  4895. ${x_library}/X11/%l/%T/%N%S:\
  4896. ${x_library}/X11/%T/%N%S"
  4897. if test x"${x_default_search_path}" = x; then
  4898. x_default_search_path=${x_search_path}
  4899. else
  4900. x_default_search_path="${x_search_path}:${x_default_search_path}"
  4901. fi
  4902. done
  4903. fi
  4904. if test "${x_includes}" != NONE && test -n "${x_includes}"; then
  4905. C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
  4906. fi
  4907. if test x"${x_includes}" = x; then
  4908. bitmapdir=/usr/include/X11/bitmaps
  4909. else
  4910. # accumulate include directories that have X11 bitmap subdirectories
  4911. bmd_acc="dummyval"
  4912. for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
  4913. if test -d "${bmd}/X11/bitmaps"; then
  4914. bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
  4915. fi
  4916. if test -d "${bmd}/bitmaps"; then
  4917. bmd_acc="${bmd_acc}:${bmd}/bitmaps"
  4918. fi
  4919. done
  4920. if test ${bmd_acc} != "dummyval"; then
  4921. bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
  4922. fi
  4923. fi
  4924. case "${window_system}" in
  4925. x11 )
  4926. HAVE_X_WINDOWS=yes
  4927. HAVE_X11=yes
  4928. case "${with_x_toolkit}" in
  4929. athena | lucid ) USE_X_TOOLKIT=LUCID ;;
  4930. motif ) USE_X_TOOLKIT=MOTIF ;;
  4931. no ) USE_X_TOOLKIT=none ;;
  4932. * ) USE_X_TOOLKIT=maybe ;;
  4933. esac
  4934. ;;
  4935. none )
  4936. HAVE_X_WINDOWS=no
  4937. HAVE_X11=no
  4938. USE_X_TOOLKIT=none
  4939. ;;
  4940. esac
  4941. ### If we're using X11, we should use the X menu package.
  4942. HAVE_MENUS=no
  4943. case ${HAVE_X11} in
  4944. yes ) HAVE_MENUS=yes ;;
  4945. esac
  4946. if test "${opsys}" = "hpux9"; then
  4947. case "${x_libraries}" in
  4948. *X11R4* )
  4949. opsysfile="s/hpux9-x11r4.h"
  4950. ;;
  4951. esac
  4952. fi
  4953. if test "${opsys}" = "hpux9shr"; then
  4954. case "${x_libraries}" in
  4955. *X11R4* )
  4956. opsysfile="s/hpux9shxr4.h"
  4957. ;;
  4958. esac
  4959. fi
  4960. ### Compute the unexec source name from the object name.
  4961. UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
  4962. # Do the opsystem or machine files prohibit the use of the GNU malloc?
  4963. # Assume not, until told otherwise.
  4964. GNU_MALLOC=yes
  4965. doug_lea_malloc=yes
  4966. echo "$as_me:5445: checking for malloc_get_state" >&5
  4967. echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
  4968. if test "${ac_cv_func_malloc_get_state+set}" = set; then
  4969. echo $ECHO_N "(cached) $ECHO_C" >&6
  4970. else
  4971. cat >conftest.$ac_ext <<_ACEOF
  4972. #line 5451 "configure"
  4973. #include "confdefs.h"
  4974. /* System header to define __stub macros and hopefully few prototypes,
  4975. which can conflict with char malloc_get_state (); below. */
  4976. #include <assert.h>
  4977. /* Override any gcc2 internal prototype to avoid an error. */
  4978. #ifdef __cplusplus
  4979. extern "C"
  4980. #endif
  4981. /* We use char because int might match the return type of a gcc2
  4982. builtin and then its argument prototype would still apply. */
  4983. char malloc_get_state ();
  4984. char (*f) ();
  4985. int
  4986. main ()
  4987. {
  4988. /* The GNU C library defines this for functions which it implements
  4989. to always fail with ENOSYS. Some functions are actually named
  4990. something starting with __ and the normal name is an alias. */
  4991. #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
  4992. choke me
  4993. #else
  4994. f = malloc_get_state;
  4995. #endif
  4996. ;
  4997. return 0;
  4998. }
  4999. _ACEOF
  5000. rm -f conftest.$ac_objext conftest$ac_exeext
  5001. if { (eval echo "$as_me:5482: \"$ac_link\"") >&5
  5002. (eval $ac_link) 2>&5
  5003. ac_status=$?
  5004. echo "$as_me:5485: \$? = $ac_status" >&5
  5005. (exit $ac_status); } &&
  5006. { ac_try='test -s conftest$ac_exeext'
  5007. { (eval echo "$as_me:5488: \"$ac_try\"") >&5
  5008. (eval $ac_try) 2>&5
  5009. ac_status=$?
  5010. echo "$as_me:5491: \$? = $ac_status" >&5
  5011. (exit $ac_status); }; }; then
  5012. ac_cv_func_malloc_get_state=yes
  5013. else
  5014. echo "$as_me: failed program was:" >&5
  5015. cat conftest.$ac_ext >&5
  5016. ac_cv_func_malloc_get_state=no
  5017. fi
  5018. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  5019. fi
  5020. echo "$as_me:5501: result: $ac_cv_func_malloc_get_state" >&5
  5021. echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
  5022. if test $ac_cv_func_malloc_get_state = yes; then
  5023. :
  5024. else
  5025. doug_lea_malloc=no
  5026. fi
  5027. echo "$as_me:5509: checking for malloc_set_state" >&5
  5028. echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
  5029. if test "${ac_cv_func_malloc_set_state+set}" = set; then
  5030. echo $ECHO_N "(cached) $ECHO_C" >&6
  5031. else
  5032. cat >conftest.$ac_ext <<_ACEOF
  5033. #line 5515 "configure"
  5034. #include "confdefs.h"
  5035. /* System header to define __stub macros and hopefully few prototypes,
  5036. which can conflict with char malloc_set_state (); below. */
  5037. #include <assert.h>
  5038. /* Override any gcc2 internal prototype to avoid an error. */
  5039. #ifdef __cplusplus
  5040. extern "C"
  5041. #endif
  5042. /* We use char because int might match the return type of a gcc2
  5043. builtin and then its argument prototype would still apply. */
  5044. char malloc_set_state ();
  5045. char (*f) ();
  5046. int
  5047. main ()
  5048. {
  5049. /* The GNU C library defines this for functions which it implements
  5050. to always fail with ENOSYS. Some functions are actually named
  5051. something starting with __ and the normal name is an alias. */
  5052. #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
  5053. choke me
  5054. #else
  5055. f = malloc_set_state;
  5056. #endif
  5057. ;
  5058. return 0;
  5059. }
  5060. _ACEOF
  5061. rm -f conftest.$ac_objext conftest$ac_exeext
  5062. if { (eval echo "$as_me:5546: \"$ac_link\"") >&5
  5063. (eval $ac_link) 2>&5
  5064. ac_status=$?
  5065. echo "$as_me:5549: \$? = $ac_status" >&5
  5066. (exit $ac_status); } &&
  5067. { ac_try='test -s conftest$ac_exeext'
  5068. { (eval echo "$as_me:5552: \"$ac_try\"") >&5
  5069. (eval $ac_try) 2>&5
  5070. ac_status=$?
  5071. echo "$as_me:5555: \$? = $ac_status" >&5
  5072. (exit $ac_status); }; }; then
  5073. ac_cv_func_malloc_set_state=yes
  5074. else
  5075. echo "$as_me: failed program was:" >&5
  5076. cat conftest.$ac_ext >&5
  5077. ac_cv_func_malloc_set_state=no
  5078. fi
  5079. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  5080. fi
  5081. echo "$as_me:5565: result: $ac_cv_func_malloc_set_state" >&5
  5082. echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
  5083. if test $ac_cv_func_malloc_set_state = yes; then
  5084. :
  5085. else
  5086. doug_lea_malloc=no
  5087. fi
  5088. echo "$as_me:5573: checking whether __after_morecore_hook exists" >&5
  5089. echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
  5090. if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
  5091. echo $ECHO_N "(cached) $ECHO_C" >&6
  5092. else
  5093. cat >conftest.$ac_ext <<_ACEOF
  5094. #line 5579 "configure"
  5095. #include "confdefs.h"
  5096. extern void (* __after_morecore_hook)();
  5097. int
  5098. main ()
  5099. {
  5100. __after_morecore_hook = 0
  5101. ;
  5102. return 0;
  5103. }
  5104. _ACEOF
  5105. rm -f conftest.$ac_objext conftest$ac_exeext
  5106. if { (eval echo "$as_me:5591: \"$ac_link\"") >&5
  5107. (eval $ac_link) 2>&5
  5108. ac_status=$?
  5109. echo "$as_me:5594: \$? = $ac_status" >&5
  5110. (exit $ac_status); } &&
  5111. { ac_try='test -s conftest$ac_exeext'
  5112. { (eval echo "$as_me:5597: \"$ac_try\"") >&5
  5113. (eval $ac_try) 2>&5
  5114. ac_status=$?
  5115. echo "$as_me:5600: \$? = $ac_status" >&5
  5116. (exit $ac_status); }; }; then
  5117. emacs_cv_var___after_morecore_hook=yes
  5118. else
  5119. echo "$as_me: failed program was:" >&5
  5120. cat conftest.$ac_ext >&5
  5121. emacs_cv_var___after_morecore_hook=no
  5122. fi
  5123. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  5124. fi
  5125. echo "$as_me:5610: result: $emacs_cv_var___after_morecore_hook" >&5
  5126. echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
  5127. if test $emacs_cv_var___after_morecore_hook = no; then
  5128. doug_lea_malloc=no
  5129. fi
  5130. if test "${system_malloc}" = "yes"; then
  5131. GNU_MALLOC=no
  5132. GNU_MALLOC_reason="
  5133. (The GNU allocators don't work with this system configuration.)"
  5134. fi
  5135. if test "$doug_lea_malloc" = "yes" ; then
  5136. if test "$GNU_MALLOC" = yes ; then
  5137. GNU_MALLOC_reason="
  5138. (Using Doug Lea's new malloc from the GNU C Library.)"
  5139. fi
  5140. cat >>confdefs.h <<\EOF
  5141. #define DOUG_LEA_MALLOC 1
  5142. EOF
  5143. fi
  5144. if test x"${REL_ALLOC}" = x; then
  5145. REL_ALLOC=${GNU_MALLOC}
  5146. fi
  5147. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  5148. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  5149. inttypes.h stdint.h unistd.h
  5150. do
  5151. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5152. echo "$as_me:5641: checking for $ac_header" >&5
  5153. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5154. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5155. echo $ECHO_N "(cached) $ECHO_C" >&6
  5156. else
  5157. cat >conftest.$ac_ext <<_ACEOF
  5158. #line 5647 "configure"
  5159. #include "confdefs.h"
  5160. $ac_includes_default
  5161. #include <$ac_header>
  5162. _ACEOF
  5163. rm -f conftest.$ac_objext
  5164. if { (eval echo "$as_me:5653: \"$ac_compile\"") >&5
  5165. (eval $ac_compile) 2>&5
  5166. ac_status=$?
  5167. echo "$as_me:5656: \$? = $ac_status" >&5
  5168. (exit $ac_status); } &&
  5169. { ac_try='test -s conftest.$ac_objext'
  5170. { (eval echo "$as_me:5659: \"$ac_try\"") >&5
  5171. (eval $ac_try) 2>&5
  5172. ac_status=$?
  5173. echo "$as_me:5662: \$? = $ac_status" >&5
  5174. (exit $ac_status); }; }; then
  5175. eval "$as_ac_Header=yes"
  5176. else
  5177. echo "$as_me: failed program was:" >&5
  5178. cat conftest.$ac_ext >&5
  5179. eval "$as_ac_Header=no"
  5180. fi
  5181. rm -f conftest.$ac_objext conftest.$ac_ext
  5182. fi
  5183. echo "$as_me:5672: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5184. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5185. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5186. cat >>confdefs.h <<EOF
  5187. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5188. EOF
  5189. fi
  5190. done
  5191. for ac_header in stdlib.h unistd.h
  5192. do
  5193. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5194. echo "$as_me:5685: checking for $ac_header" >&5
  5195. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5196. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5197. echo $ECHO_N "(cached) $ECHO_C" >&6
  5198. else
  5199. cat >conftest.$ac_ext <<_ACEOF
  5200. #line 5691 "configure"
  5201. #include "confdefs.h"
  5202. #include <$ac_header>
  5203. _ACEOF
  5204. if { (eval echo "$as_me:5695: \"$ac_cpp conftest.$ac_ext\"") >&5
  5205. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5206. ac_status=$?
  5207. egrep -v '^ *\+' conftest.er1 >conftest.err
  5208. rm -f conftest.er1
  5209. cat conftest.err >&5
  5210. echo "$as_me:5701: \$? = $ac_status" >&5
  5211. (exit $ac_status); } >/dev/null; then
  5212. if test -s conftest.err; then
  5213. ac_cpp_err=$ac_c_preproc_warn_flag
  5214. else
  5215. ac_cpp_err=
  5216. fi
  5217. else
  5218. ac_cpp_err=yes
  5219. fi
  5220. if test -z "$ac_cpp_err"; then
  5221. eval "$as_ac_Header=yes"
  5222. else
  5223. echo "$as_me: failed program was:" >&5
  5224. cat conftest.$ac_ext >&5
  5225. eval "$as_ac_Header=no"
  5226. fi
  5227. rm -f conftest.err conftest.$ac_ext
  5228. fi
  5229. echo "$as_me:5720: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5230. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5231. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5232. cat >>confdefs.h <<EOF
  5233. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5234. EOF
  5235. fi
  5236. done
  5237. for ac_func in getpagesize
  5238. do
  5239. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5240. echo "$as_me:5733: checking for $ac_func" >&5
  5241. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  5242. if eval "test \"\${$as_ac_var+set}\" = set"; then
  5243. echo $ECHO_N "(cached) $ECHO_C" >&6
  5244. else
  5245. cat >conftest.$ac_ext <<_ACEOF
  5246. #line 5739 "configure"
  5247. #include "confdefs.h"
  5248. /* System header to define __stub macros and hopefully few prototypes,
  5249. which can conflict with char $ac_func (); below. */
  5250. #include <assert.h>
  5251. /* Override any gcc2 internal prototype to avoid an error. */
  5252. #ifdef __cplusplus
  5253. extern "C"
  5254. #endif
  5255. /* We use char because int might match the return type of a gcc2
  5256. builtin and then its argument prototype would still apply. */
  5257. char $ac_func ();
  5258. char (*f) ();
  5259. int
  5260. main ()
  5261. {
  5262. /* The GNU C library defines this for functions which it implements
  5263. to always fail with ENOSYS. Some functions are actually named
  5264. something starting with __ and the normal name is an alias. */
  5265. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  5266. choke me
  5267. #else
  5268. f = $ac_func;
  5269. #endif
  5270. ;
  5271. return 0;
  5272. }
  5273. _ACEOF
  5274. rm -f conftest.$ac_objext conftest$ac_exeext
  5275. if { (eval echo "$as_me:5770: \"$ac_link\"") >&5
  5276. (eval $ac_link) 2>&5
  5277. ac_status=$?
  5278. echo "$as_me:5773: \$? = $ac_status" >&5
  5279. (exit $ac_status); } &&
  5280. { ac_try='test -s conftest$ac_exeext'
  5281. { (eval echo "$as_me:5776: \"$ac_try\"") >&5
  5282. (eval $ac_try) 2>&5
  5283. ac_status=$?
  5284. echo "$as_me:5779: \$? = $ac_status" >&5
  5285. (exit $ac_status); }; }; then
  5286. eval "$as_ac_var=yes"
  5287. else
  5288. echo "$as_me: failed program was:" >&5
  5289. cat conftest.$ac_ext >&5
  5290. eval "$as_ac_var=no"
  5291. fi
  5292. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  5293. fi
  5294. echo "$as_me:5789: result: `eval echo '${'$as_ac_var'}'`" >&5
  5295. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  5296. if test `eval echo '${'$as_ac_var'}'` = yes; then
  5297. cat >>confdefs.h <<EOF
  5298. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5299. EOF
  5300. fi
  5301. done
  5302. echo "$as_me:5799: checking for working mmap" >&5
  5303. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
  5304. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  5305. echo $ECHO_N "(cached) $ECHO_C" >&6
  5306. else
  5307. if test "$cross_compiling" = yes; then
  5308. ac_cv_func_mmap_fixed_mapped=no
  5309. else
  5310. cat >conftest.$ac_ext <<_ACEOF
  5311. #line 5808 "configure"
  5312. #include "confdefs.h"
  5313. $ac_includes_default
  5314. /* Thanks to Mike Haertel and Jim Avera for this test.
  5315. Here is a matrix of mmap possibilities:
  5316. mmap private not fixed
  5317. mmap private fixed at somewhere currently unmapped
  5318. mmap private fixed at somewhere already mapped
  5319. mmap shared not fixed
  5320. mmap shared fixed at somewhere currently unmapped
  5321. mmap shared fixed at somewhere already mapped
  5322. For private mappings, we should verify that changes cannot be read()
  5323. back from the file, nor mmap's back from the file at a different
  5324. address. (There have been systems where private was not correctly
  5325. implemented like the infamous i386 svr4.0, and systems where the
  5326. VM page cache was not coherent with the file system buffer cache
  5327. like early versions of FreeBSD and possibly contemporary NetBSD.)
  5328. For shared mappings, we should conversely verify that changes get
  5329. propogated back to all the places they're supposed to be.
  5330. Grep wants private fixed already mapped.
  5331. The main things grep needs to know about mmap are:
  5332. * does it exist and is it safe to write into the mmap'd area
  5333. * how to use it (BSD variants) */
  5334. #include <fcntl.h>
  5335. #include <sys/mman.h>
  5336. #if !STDC_HEADERS && !HAVE_STDLIB_H
  5337. char *malloc ();
  5338. #endif
  5339. /* This mess was copied from the GNU getpagesize.h. */
  5340. #if !HAVE_GETPAGESIZE
  5341. /* Assume that all systems that can run configure have sys/param.h. */
  5342. # if !HAVE_SYS_PARAM_H
  5343. # define HAVE_SYS_PARAM_H 1
  5344. # endif
  5345. # ifdef _SC_PAGESIZE
  5346. # define getpagesize() sysconf(_SC_PAGESIZE)
  5347. # else /* no _SC_PAGESIZE */
  5348. # if HAVE_SYS_PARAM_H
  5349. # include <sys/param.h>
  5350. # ifdef EXEC_PAGESIZE
  5351. # define getpagesize() EXEC_PAGESIZE
  5352. # else /* no EXEC_PAGESIZE */
  5353. # ifdef NBPG
  5354. # define getpagesize() NBPG * CLSIZE
  5355. # ifndef CLSIZE
  5356. # define CLSIZE 1
  5357. # endif /* no CLSIZE */
  5358. # else /* no NBPG */
  5359. # ifdef NBPC
  5360. # define getpagesize() NBPC
  5361. # else /* no NBPC */
  5362. # ifdef PAGESIZE
  5363. # define getpagesize() PAGESIZE
  5364. # endif /* PAGESIZE */
  5365. # endif /* no NBPC */
  5366. # endif /* no NBPG */
  5367. # endif /* no EXEC_PAGESIZE */
  5368. # else /* no HAVE_SYS_PARAM_H */
  5369. # define getpagesize() 8192 /* punt totally */
  5370. # endif /* no HAVE_SYS_PARAM_H */
  5371. # endif /* no _SC_PAGESIZE */
  5372. #endif /* no HAVE_GETPAGESIZE */
  5373. int
  5374. main ()
  5375. {
  5376. char *data, *data2, *data3;
  5377. int i, pagesize;
  5378. int fd;
  5379. pagesize = getpagesize ();
  5380. /* First, make a file with some known garbage in it. */
  5381. data = (char *) malloc (pagesize);
  5382. if (!data)
  5383. exit (1);
  5384. for (i = 0; i < pagesize; ++i)
  5385. *(data + i) = rand ();
  5386. umask (0);
  5387. fd = creat ("conftest.mmap", 0600);
  5388. if (fd < 0)
  5389. exit (1);
  5390. if (write (fd, data, pagesize) != pagesize)
  5391. exit (1);
  5392. close (fd);
  5393. /* Next, try to mmap the file at a fixed address which already has
  5394. something else allocated at it. If we can, also make sure that
  5395. we see the same garbage. */
  5396. fd = open ("conftest.mmap", O_RDWR);
  5397. if (fd < 0)
  5398. exit (1);
  5399. data2 = (char *) malloc (2 * pagesize);
  5400. if (!data2)
  5401. exit (1);
  5402. data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
  5403. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  5404. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  5405. exit (1);
  5406. for (i = 0; i < pagesize; ++i)
  5407. if (*(data + i) != *(data2 + i))
  5408. exit (1);
  5409. /* Finally, make sure that changes to the mapped area do not
  5410. percolate back to the file as seen by read(). (This is a bug on
  5411. some variants of i386 svr4.0.) */
  5412. for (i = 0; i < pagesize; ++i)
  5413. *(data2 + i) = *(data2 + i) + 1;
  5414. data3 = (char *) malloc (pagesize);
  5415. if (!data3)
  5416. exit (1);
  5417. if (read (fd, data3, pagesize) != pagesize)
  5418. exit (1);
  5419. for (i = 0; i < pagesize; ++i)
  5420. if (*(data + i) != *(data3 + i))
  5421. exit (1);
  5422. close (fd);
  5423. exit (0);
  5424. }
  5425. _ACEOF
  5426. rm -f conftest$ac_exeext
  5427. if { (eval echo "$as_me:5935: \"$ac_link\"") >&5
  5428. (eval $ac_link) 2>&5
  5429. ac_status=$?
  5430. echo "$as_me:5938: \$? = $ac_status" >&5
  5431. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5432. { (eval echo "$as_me:5940: \"$ac_try\"") >&5
  5433. (eval $ac_try) 2>&5
  5434. ac_status=$?
  5435. echo "$as_me:5943: \$? = $ac_status" >&5
  5436. (exit $ac_status); }; }; then
  5437. ac_cv_func_mmap_fixed_mapped=yes
  5438. else
  5439. echo "$as_me: program exited with status $ac_status" >&5
  5440. echo "$as_me: failed program was:" >&5
  5441. cat conftest.$ac_ext >&5
  5442. ac_cv_func_mmap_fixed_mapped=no
  5443. fi
  5444. rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5445. fi
  5446. fi
  5447. echo "$as_me:5955: result: $ac_cv_func_mmap_fixed_mapped" >&5
  5448. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
  5449. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  5450. cat >>confdefs.h <<\EOF
  5451. #define HAVE_MMAP 1
  5452. EOF
  5453. fi
  5454. rm -f conftest.mmap
  5455. if test $use_mmap_for_buffers = yes; then
  5456. REL_ALLOC=no
  5457. fi
  5458. LIBS="$libsrc_libs $LIBS"
  5459. echo "$as_me:5972: checking for dnet_ntoa in -ldnet" >&5
  5460. echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
  5461. if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
  5462. echo $ECHO_N "(cached) $ECHO_C" >&6
  5463. else
  5464. ac_check_lib_save_LIBS=$LIBS
  5465. LIBS="-ldnet $LIBS"
  5466. cat >conftest.$ac_ext <<_ACEOF
  5467. #line 5980 "configure"
  5468. #include "confdefs.h"
  5469. /* Override any gcc2 internal prototype to avoid an error. */
  5470. #ifdef __cplusplus
  5471. extern "C"
  5472. #endif
  5473. /* We use char because int might match the return type of a gcc2
  5474. builtin and then its argument prototype would still apply. */
  5475. char dnet_ntoa ();
  5476. int
  5477. main ()
  5478. {
  5479. dnet_ntoa ();
  5480. ;
  5481. return 0;
  5482. }
  5483. _ACEOF
  5484. rm -f conftest.$ac_objext conftest$ac_exeext
  5485. if { (eval echo "$as_me:5999: \"$ac_link\"") >&5
  5486. (eval $ac_link) 2>&5
  5487. ac_status=$?
  5488. echo "$as_me:6002: \$? = $ac_status" >&5
  5489. (exit $ac_status); } &&
  5490. { ac_try='test -s conftest$ac_exeext'
  5491. { (eval echo "$as_me:6005: \"$ac_try\"") >&5
  5492. (eval $ac_try) 2>&5
  5493. ac_status=$?
  5494. echo "$as_me:6008: \$? = $ac_status" >&5
  5495. (exit $ac_status); }; }; then
  5496. ac_cv_lib_dnet_dnet_ntoa=yes
  5497. else
  5498. echo "$as_me: failed program was:" >&5
  5499. cat conftest.$ac_ext >&5
  5500. ac_cv_lib_dnet_dnet_ntoa=no
  5501. fi
  5502. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  5503. LIBS=$ac_check_lib_save_LIBS
  5504. fi
  5505. echo "$as_me:6019: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  5506. echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
  5507. if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
  5508. cat >>confdefs.h <<EOF
  5509. #define HAVE_LIBDNET 1
  5510. EOF
  5511. LIBS="-ldnet $LIBS"
  5512. fi
  5513. echo "$as_me:6030: checking for main in -lXbsd" >&5
  5514. echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
  5515. if test "${ac_cv_lib_Xbsd_main+set}" = set; then
  5516. echo $ECHO_N "(cached) $ECHO_C" >&6
  5517. else
  5518. ac_check_lib_save_LIBS=$LIBS
  5519. LIBS="-lXbsd $LIBS"
  5520. cat >conftest.$ac_ext <<_ACEOF
  5521. #line 6038 "configure"
  5522. #include "confdefs.h"
  5523. int
  5524. main ()
  5525. {
  5526. main ();
  5527. ;
  5528. return 0;
  5529. }
  5530. _ACEOF
  5531. rm -f conftest.$ac_objext conftest$ac_exeext
  5532. if { (eval echo "$as_me:6050: \"$ac_link\"") >&5
  5533. (eval $ac_link) 2>&5
  5534. ac_status=$?
  5535. echo "$as_me:6053: \$? = $ac_status" >&5
  5536. (exit $ac_status); } &&
  5537. { ac_try='test -s conftest$ac_exeext'
  5538. { (eval echo "$as_me:6056: \"$ac_try\"") >&5
  5539. (eval $ac_try) 2>&5
  5540. ac_status=$?
  5541. echo "$as_me:6059: \$? = $ac_status" >&5
  5542. (exit $ac_status); }; }; then
  5543. ac_cv_lib_Xbsd_main=yes
  5544. else
  5545. echo "$as_me: failed program was:" >&5
  5546. cat conftest.$ac_ext >&5
  5547. ac_cv_lib_Xbsd_main=no
  5548. fi
  5549. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  5550. LIBS=$ac_check_lib_save_LIBS
  5551. fi
  5552. echo "$as_me:6070: result: $ac_cv_lib_Xbsd_main" >&5
  5553. echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
  5554. if test $ac_cv_lib_Xbsd_main = yes; then
  5555. LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
  5556. fi
  5557. echo "$as_me:6076: checking for cma_open in -lpthreads" >&5
  5558. echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
  5559. if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
  5560. echo $ECHO_N "(cached) $ECHO_C" >&6
  5561. else
  5562. ac_check_lib_save_LIBS=$LIBS
  5563. LIBS="-lpthreads $LIBS"
  5564. cat >conftest.$ac_ext <<_ACEOF
  5565. #line 6084 "configure"
  5566. #include "confdefs.h"
  5567. /* Override any gcc2 internal prototype to avoid an error. */
  5568. #ifdef __cplusplus
  5569. extern "C"
  5570. #endif
  5571. /* We use char because int might match the return type of a gcc2
  5572. builtin and then its argument prototype would still apply. */
  5573. char cma_open ();
  5574. int
  5575. main ()
  5576. {
  5577. cma_open ();
  5578. ;
  5579. return 0;
  5580. }
  5581. _ACEOF
  5582. rm -f conftest.$ac_objext conftest$ac_exeext
  5583. if { (eval echo "$as_me:6103: \"$ac_link\"") >&5
  5584. (eval $ac_link) 2>&5
  5585. ac_status=$?
  5586. echo "$as_me:6106: \$? = $ac_status" >&5
  5587. (exit $ac_status); } &&
  5588. { ac_try='test -s conftest$ac_exeext'
  5589. { (eval echo "$as_me:6109: \"$ac_try\"") >&5
  5590. (eval $ac_try) 2>&5
  5591. ac_status=$?
  5592. echo "$as_me:6112: \$? = $ac_status" >&5
  5593. (exit $ac_status); }; }; then
  5594. ac_cv_lib_pthreads_cma_open=yes
  5595. else
  5596. echo "$as_me: failed program was:" >&5
  5597. cat conftest.$ac_ext >&5
  5598. ac_cv_lib_pthreads_cma_open=no
  5599. fi
  5600. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  5601. LIBS=$ac_check_lib_save_LIBS
  5602. fi
  5603. echo "$as_me:6123: result: $ac_cv_lib_pthreads_cma_open" >&5
  5604. echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
  5605. if test $ac_cv_lib_pthreads_cma_open = yes; then
  5606. cat >>confdefs.h <<EOF
  5607. #define HAVE_LIBPTHREADS 1
  5608. EOF
  5609. LIBS="-lpthreads $LIBS"
  5610. fi
  5611. echo "$as_me:6134: checking for XFree86 in /usr/X386" >&5
  5612. echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
  5613. if test -d /usr/X386/include; then
  5614. HAVE_XFREE386=yes
  5615. : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
  5616. else
  5617. HAVE_XFREE386=no
  5618. fi
  5619. echo "$as_me:6142: result: $HAVE_XFREE386" >&5
  5620. echo "${ECHO_T}$HAVE_XFREE386" >&6
  5621. # Change CFLAGS temporarily so that C_SWITCH_X_SITE gets used
  5622. # for the tests that follow. We set it back to REAL_CFLAGS later on.
  5623. REAL_CPPFLAGS="$CPPFLAGS"
  5624. if test "${HAVE_X11}" = "yes"; then
  5625. DEFS="$C_SWITCH_X_SITE $DEFS"
  5626. LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
  5627. LIBS="$LIBX $LIBS"
  5628. CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
  5629. CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
  5630. # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
  5631. # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
  5632. # but it's more convenient here to set LD_RUN_PATH
  5633. # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
  5634. if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
  5635. LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
  5636. export LD_RUN_PATH
  5637. fi
  5638. if test "${opsys}" = "gnu-linux"; then
  5639. echo "$as_me:6167: checking whether X on GNU/Linux needs -b to link" >&5
  5640. echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
  5641. cat >conftest.$ac_ext <<_ACEOF
  5642. #line 6170 "configure"
  5643. #include "confdefs.h"
  5644. int
  5645. main ()
  5646. {
  5647. XOpenDisplay ("foo");
  5648. ;
  5649. return 0;
  5650. }
  5651. _ACEOF
  5652. rm -f conftest.$ac_objext conftest$ac_exeext
  5653. if { (eval echo "$as_me:6182: \"$ac_link\"") >&5
  5654. (eval $ac_link) 2>&5
  5655. ac_status=$?
  5656. echo "$as_me:6185: \$? = $ac_status" >&5
  5657. (exit $ac_status); } &&
  5658. { ac_try='test -s conftest$ac_exeext'
  5659. { (eval echo "$as_me:6188: \"$ac_try\"") >&5
  5660. (eval $ac_try) 2>&5
  5661. ac_status=$?
  5662. echo "$as_me:6191: \$? = $ac_status" >&5
  5663. (exit $ac_status); }; }; then
  5664. xlinux_first_failure=no
  5665. else
  5666. echo "$as_me: failed program was:" >&5
  5667. cat conftest.$ac_ext >&5
  5668. xlinux_first_failure=yes
  5669. fi
  5670. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  5671. if test "${xlinux_first_failure}" = "yes"; then
  5672. OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
  5673. OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
  5674. OLD_CPPFLAGS="$CPPFLAGS"
  5675. OLD_LIBS="$LIBS"
  5676. LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
  5677. C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
  5678. CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
  5679. LIBS="$LIBS -b i486-linuxaout"
  5680. cat >conftest.$ac_ext <<_ACEOF
  5681. #line 6210 "configure"
  5682. #include "confdefs.h"
  5683. int
  5684. main ()
  5685. {
  5686. XOpenDisplay ("foo");
  5687. ;
  5688. return 0;
  5689. }
  5690. _ACEOF
  5691. rm -f conftest.$ac_objext conftest$ac_exeext
  5692. if { (eval echo "$as_me:6222: \"$ac_link\"") >&5
  5693. (eval $ac_link) 2>&5
  5694. ac_status=$?
  5695. echo "$as_me:6225: \$? = $ac_status" >&5
  5696. (exit $ac_status); } &&
  5697. { ac_try='test -s conftest$ac_exeext'
  5698. { (eval echo "$as_me:6228: \"$ac_try\"") >&5
  5699. (eval $ac_try) 2>&5
  5700. ac_status=$?
  5701. echo "$as_me:6231: \$? = $ac_status" >&5
  5702. (exit $ac_status); }; }; then
  5703. xlinux_second_failure=no
  5704. else
  5705. echo "$as_me: failed program was:" >&5
  5706. cat conftest.$ac_ext >&5
  5707. xlinux_second_failure=yes
  5708. fi
  5709. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  5710. if test "${xlinux_second_failure}" = "yes"; then
  5711. # If we get the same failure with -b, there is no use adding -b.
  5712. # So take it out. This plays safe.
  5713. LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
  5714. C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
  5715. CPPFLAGS="$OLD_CPPFLAGS"
  5716. LIBS="$OLD_LIBS"
  5717. echo "$as_me:6247: result: no" >&5
  5718. echo "${ECHO_T}no" >&6
  5719. else
  5720. echo "$as_me:6250: result: yes" >&5
  5721. echo "${ECHO_T}yes" >&6
  5722. fi
  5723. else
  5724. echo "$as_me:6254: result: no" >&5
  5725. echo "${ECHO_T}no" >&6
  5726. fi
  5727. fi
  5728. # Reportedly, some broken Solaris systems have XKBlib.h but are missing
  5729. # header files included from there.
  5730. echo "$as_me:6261: checking for Xkb" >&5
  5731. echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
  5732. cat >conftest.$ac_ext <<_ACEOF
  5733. #line 6264 "configure"
  5734. #include "confdefs.h"
  5735. #include <X11/Xlib.h>
  5736. #include <X11/XKBlib.h>
  5737. int
  5738. main ()
  5739. {
  5740. XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
  5741. ;
  5742. return 0;
  5743. }
  5744. _ACEOF
  5745. rm -f conftest.$ac_objext conftest$ac_exeext
  5746. if { (eval echo "$as_me:6277: \"$ac_link\"") >&5
  5747. (eval $ac_link) 2>&5
  5748. ac_status=$?
  5749. echo "$as_me:6280: \$? = $ac_status" >&5
  5750. (exit $ac_status); } &&
  5751. { ac_try='test -s conftest$ac_exeext'
  5752. { (eval echo "$as_me:6283: \"$ac_try\"") >&5
  5753. (eval $ac_try) 2>&5
  5754. ac_status=$?
  5755. echo "$as_me:6286: \$? = $ac_status" >&5
  5756. (exit $ac_status); }; }; then
  5757. emacs_xkb=yes
  5758. else
  5759. echo "$as_me: failed program was:" >&5
  5760. cat conftest.$ac_ext >&5
  5761. emacs_xkb=no
  5762. fi
  5763. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  5764. echo "$as_me:6295: result: $emacs_xkb" >&5
  5765. echo "${ECHO_T}$emacs_xkb" >&6
  5766. if test $emacs_xkb = yes; then
  5767. cat >>confdefs.h <<\EOF
  5768. #define HAVE_XKBGETKEYBOARD 1
  5769. EOF
  5770. fi
  5771. for ac_func in XrmSetDatabase XScreenResourceString \
  5772. XScreenNumberOfScreen XSetWMProtocols
  5773. do
  5774. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5775. echo "$as_me:6308: checking for $ac_func" >&5
  5776. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  5777. if eval "test \"\${$as_ac_var+set}\" = set"; then
  5778. echo $ECHO_N "(cached) $ECHO_C" >&6
  5779. else
  5780. cat >conftest.$ac_ext <<_ACEOF
  5781. #line 6314 "configure"
  5782. #include "confdefs.h"
  5783. /* System header to define __stub macros and hopefully few prototypes,
  5784. which can conflict with char $ac_func (); below. */
  5785. #include <assert.h>
  5786. /* Override any gcc2 internal prototype to avoid an error. */
  5787. #ifdef __cplusplus
  5788. extern "C"
  5789. #endif
  5790. /* We use char because int might match the return type of a gcc2
  5791. builtin and then its argument prototype would still apply. */
  5792. char $ac_func ();
  5793. char (*f) ();
  5794. int
  5795. main ()
  5796. {
  5797. /* The GNU C library defines this for functions which it implements
  5798. to always fail with ENOSYS. Some functions are actually named
  5799. something starting with __ and the normal name is an alias. */
  5800. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  5801. choke me
  5802. #else
  5803. f = $ac_func;
  5804. #endif
  5805. ;
  5806. return 0;
  5807. }
  5808. _ACEOF
  5809. rm -f conftest.$ac_objext conftest$ac_exeext
  5810. if { (eval echo "$as_me:6345: \"$ac_link\"") >&5
  5811. (eval $ac_link) 2>&5
  5812. ac_status=$?
  5813. echo "$as_me:6348: \$? = $ac_status" >&5
  5814. (exit $ac_status); } &&
  5815. { ac_try='test -s conftest$ac_exeext'
  5816. { (eval echo "$as_me:6351: \"$ac_try\"") >&5
  5817. (eval $ac_try) 2>&5
  5818. ac_status=$?
  5819. echo "$as_me:6354: \$? = $ac_status" >&5
  5820. (exit $ac_status); }; }; then
  5821. eval "$as_ac_var=yes"
  5822. else
  5823. echo "$as_me: failed program was:" >&5
  5824. cat conftest.$ac_ext >&5
  5825. eval "$as_ac_var=no"
  5826. fi
  5827. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  5828. fi
  5829. echo "$as_me:6364: result: `eval echo '${'$as_ac_var'}'`" >&5
  5830. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  5831. if test `eval echo '${'$as_ac_var'}'` = yes; then
  5832. cat >>confdefs.h <<EOF
  5833. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5834. EOF
  5835. fi
  5836. done
  5837. fi
  5838. if test "${window_system}" = "x11"; then
  5839. echo "$as_me:6377: checking X11 version 6" >&5
  5840. echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
  5841. if test "${emacs_cv_x11_version_6+set}" = set; then
  5842. echo $ECHO_N "(cached) $ECHO_C" >&6
  5843. else
  5844. cat >conftest.$ac_ext <<_ACEOF
  5845. #line 6383 "configure"
  5846. #include "confdefs.h"
  5847. #include <X11/Xlib.h>
  5848. int
  5849. main ()
  5850. {
  5851. #if XlibSpecificationRelease < 6
  5852. fail;
  5853. #endif
  5854. ;
  5855. return 0;
  5856. }
  5857. _ACEOF
  5858. rm -f conftest.$ac_objext conftest$ac_exeext
  5859. if { (eval echo "$as_me:6398: \"$ac_link\"") >&5
  5860. (eval $ac_link) 2>&5
  5861. ac_status=$?
  5862. echo "$as_me:6401: \$? = $ac_status" >&5
  5863. (exit $ac_status); } &&
  5864. { ac_try='test -s conftest$ac_exeext'
  5865. { (eval echo "$as_me:6404: \"$ac_try\"") >&5
  5866. (eval $ac_try) 2>&5
  5867. ac_status=$?
  5868. echo "$as_me:6407: \$? = $ac_status" >&5
  5869. (exit $ac_status); }; }; then
  5870. emacs_cv_x11_version_6=yes
  5871. else
  5872. echo "$as_me: failed program was:" >&5
  5873. cat conftest.$ac_ext >&5
  5874. emacs_cv_x11_version_6=no
  5875. fi
  5876. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  5877. fi
  5878. if test $emacs_cv_x11_version_6 = yes; then
  5879. echo "$as_me:6419: result: 6 or newer" >&5
  5880. echo "${ECHO_T}6 or newer" >&6
  5881. cat >>confdefs.h <<\EOF
  5882. #define HAVE_X11R6 1
  5883. EOF
  5884. else
  5885. echo "$as_me:6426: result: before 6" >&5
  5886. echo "${ECHO_T}before 6" >&6
  5887. fi
  5888. fi
  5889. if test "${window_system}" = "x11"; then
  5890. echo "$as_me:6432: checking X11 version 5" >&5
  5891. echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
  5892. if test "${emacs_cv_x11_version_5+set}" = set; then
  5893. echo $ECHO_N "(cached) $ECHO_C" >&6
  5894. else
  5895. cat >conftest.$ac_ext <<_ACEOF
  5896. #line 6438 "configure"
  5897. #include "confdefs.h"
  5898. #include <X11/Xlib.h>
  5899. int
  5900. main ()
  5901. {
  5902. #if XlibSpecificationRelease < 5
  5903. fail;
  5904. #endif
  5905. ;
  5906. return 0;
  5907. }
  5908. _ACEOF
  5909. rm -f conftest.$ac_objext conftest$ac_exeext
  5910. if { (eval echo "$as_me:6453: \"$ac_link\"") >&5
  5911. (eval $ac_link) 2>&5
  5912. ac_status=$?
  5913. echo "$as_me:6456: \$? = $ac_status" >&5
  5914. (exit $ac_status); } &&
  5915. { ac_try='test -s conftest$ac_exeext'
  5916. { (eval echo "$as_me:6459: \"$ac_try\"") >&5
  5917. (eval $ac_try) 2>&5
  5918. ac_status=$?
  5919. echo "$as_me:6462: \$? = $ac_status" >&5
  5920. (exit $ac_status); }; }; then
  5921. emacs_cv_x11_version_5=yes
  5922. else
  5923. echo "$as_me: failed program was:" >&5
  5924. cat conftest.$ac_ext >&5
  5925. emacs_cv_x11_version_5=no
  5926. fi
  5927. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  5928. fi
  5929. if test $emacs_cv_x11_version_5 = yes; then
  5930. echo "$as_me:6474: result: 5 or newer" >&5
  5931. echo "${ECHO_T}5 or newer" >&6
  5932. HAVE_X11R5=yes
  5933. cat >>confdefs.h <<\EOF
  5934. #define HAVE_X11R5 1
  5935. EOF
  5936. else
  5937. HAVE_X11R5=no
  5938. echo "$as_me:6483: result: before 5" >&5
  5939. echo "${ECHO_T}before 5" >&6
  5940. fi
  5941. fi
  5942. if test x"${USE_X_TOOLKIT}" = xmaybe; then
  5943. if test x"${HAVE_X11R5}" = xyes; then
  5944. echo "$as_me:6490: checking X11 version 5 with Xaw" >&5
  5945. echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
  5946. if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
  5947. echo $ECHO_N "(cached) $ECHO_C" >&6
  5948. else
  5949. cat >conftest.$ac_ext <<_ACEOF
  5950. #line 6496 "configure"
  5951. #include "confdefs.h"
  5952. #include <X11/Intrinsic.h>
  5953. #include <X11/Xaw/Simple.h>
  5954. int
  5955. main ()
  5956. {
  5957. ;
  5958. return 0;
  5959. }
  5960. _ACEOF
  5961. rm -f conftest.$ac_objext conftest$ac_exeext
  5962. if { (eval echo "$as_me:6510: \"$ac_link\"") >&5
  5963. (eval $ac_link) 2>&5
  5964. ac_status=$?
  5965. echo "$as_me:6513: \$? = $ac_status" >&5
  5966. (exit $ac_status); } &&
  5967. { ac_try='test -s conftest$ac_exeext'
  5968. { (eval echo "$as_me:6516: \"$ac_try\"") >&5
  5969. (eval $ac_try) 2>&5
  5970. ac_status=$?
  5971. echo "$as_me:6519: \$? = $ac_status" >&5
  5972. (exit $ac_status); }; }; then
  5973. emacs_cv_x11_version_5_with_xaw=yes
  5974. else
  5975. echo "$as_me: failed program was:" >&5
  5976. cat conftest.$ac_ext >&5
  5977. emacs_cv_x11_version_5_with_xaw=no
  5978. fi
  5979. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  5980. fi
  5981. if test $emacs_cv_x11_version_5_with_xaw = yes; then
  5982. echo "$as_me:6531: result: 5 or newer, with Xaw; use toolkit by default" >&5
  5983. echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
  5984. USE_X_TOOLKIT=LUCID
  5985. else
  5986. echo "$as_me:6535: result: before 5 or no Xaw; do not use toolkit by default" >&5
  5987. echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
  5988. USE_X_TOOLKIT=none
  5989. fi
  5990. else
  5991. USE_X_TOOLKIT=none
  5992. fi
  5993. fi
  5994. X_TOOLKIT_TYPE=$USE_X_TOOLKIT
  5995. if test "${USE_X_TOOLKIT}" != "none"; then
  5996. echo "$as_me:6547: checking X11 toolkit version" >&5
  5997. echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
  5998. if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
  5999. echo $ECHO_N "(cached) $ECHO_C" >&6
  6000. else
  6001. cat >conftest.$ac_ext <<_ACEOF
  6002. #line 6553 "configure"
  6003. #include "confdefs.h"
  6004. #include <X11/Intrinsic.h>
  6005. int
  6006. main ()
  6007. {
  6008. #if XtSpecificationRelease < 6
  6009. fail;
  6010. #endif
  6011. ;
  6012. return 0;
  6013. }
  6014. _ACEOF
  6015. rm -f conftest.$ac_objext conftest$ac_exeext
  6016. if { (eval echo "$as_me:6568: \"$ac_link\"") >&5
  6017. (eval $ac_link) 2>&5
  6018. ac_status=$?
  6019. echo "$as_me:6571: \$? = $ac_status" >&5
  6020. (exit $ac_status); } &&
  6021. { ac_try='test -s conftest$ac_exeext'
  6022. { (eval echo "$as_me:6574: \"$ac_try\"") >&5
  6023. (eval $ac_try) 2>&5
  6024. ac_status=$?
  6025. echo "$as_me:6577: \$? = $ac_status" >&5
  6026. (exit $ac_status); }; }; then
  6027. emacs_cv_x11_toolkit_version_6=yes
  6028. else
  6029. echo "$as_me: failed program was:" >&5
  6030. cat conftest.$ac_ext >&5
  6031. emacs_cv_x11_toolkit_version_6=no
  6032. fi
  6033. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  6034. fi
  6035. HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
  6036. if test $emacs_cv_x11_toolkit_version_6 = yes; then
  6037. echo "$as_me:6590: result: 6 or newer" >&5
  6038. echo "${ECHO_T}6 or newer" >&6
  6039. cat >>confdefs.h <<\EOF
  6040. #define HAVE_X11XTR6 1
  6041. EOF
  6042. else
  6043. echo "$as_me:6597: result: before 6" >&5
  6044. echo "${ECHO_T}before 6" >&6
  6045. fi
  6046. OLDLIBS="$LIBS"
  6047. if test x$HAVE_X11XTR6 = xyes; then
  6048. LIBS="-lXt -lSM -lICE $LIBS"
  6049. else
  6050. LIBS="-lXt $LIBS"
  6051. fi
  6052. echo "$as_me:6608: checking for XmuConvertStandardSelection in -lXmu" >&5
  6053. echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
  6054. if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
  6055. echo $ECHO_N "(cached) $ECHO_C" >&6
  6056. else
  6057. ac_check_lib_save_LIBS=$LIBS
  6058. LIBS="-lXmu $LIBS"
  6059. cat >conftest.$ac_ext <<_ACEOF
  6060. #line 6616 "configure"
  6061. #include "confdefs.h"
  6062. /* Override any gcc2 internal prototype to avoid an error. */
  6063. #ifdef __cplusplus
  6064. extern "C"
  6065. #endif
  6066. /* We use char because int might match the return type of a gcc2
  6067. builtin and then its argument prototype would still apply. */
  6068. char XmuConvertStandardSelection ();
  6069. int
  6070. main ()
  6071. {
  6072. XmuConvertStandardSelection ();
  6073. ;
  6074. return 0;
  6075. }
  6076. _ACEOF
  6077. rm -f conftest.$ac_objext conftest$ac_exeext
  6078. if { (eval echo "$as_me:6635: \"$ac_link\"") >&5
  6079. (eval $ac_link) 2>&5
  6080. ac_status=$?
  6081. echo "$as_me:6638: \$? = $ac_status" >&5
  6082. (exit $ac_status); } &&
  6083. { ac_try='test -s conftest$ac_exeext'
  6084. { (eval echo "$as_me:6641: \"$ac_try\"") >&5
  6085. (eval $ac_try) 2>&5
  6086. ac_status=$?
  6087. echo "$as_me:6644: \$? = $ac_status" >&5
  6088. (exit $ac_status); }; }; then
  6089. ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
  6090. else
  6091. echo "$as_me: failed program was:" >&5
  6092. cat conftest.$ac_ext >&5
  6093. ac_cv_lib_Xmu_XmuConvertStandardSelection=no
  6094. fi
  6095. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  6096. LIBS=$ac_check_lib_save_LIBS
  6097. fi
  6098. echo "$as_me:6655: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
  6099. echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
  6100. if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
  6101. cat >>confdefs.h <<EOF
  6102. #define HAVE_LIBXMU 1
  6103. EOF
  6104. LIBS="-lXmu $LIBS"
  6105. fi
  6106. test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
  6107. fi
  6108. # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
  6109. if test "${HAVE_X11}" = "yes"; then
  6110. if test "${USE_X_TOOLKIT}" != "none"; then
  6111. echo "$as_me:6673: checking for XShapeQueryExtension in -lXext" >&5
  6112. echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
  6113. if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
  6114. echo $ECHO_N "(cached) $ECHO_C" >&6
  6115. else
  6116. ac_check_lib_save_LIBS=$LIBS
  6117. LIBS="-lXext $LIBS"
  6118. cat >conftest.$ac_ext <<_ACEOF
  6119. #line 6681 "configure"
  6120. #include "confdefs.h"
  6121. /* Override any gcc2 internal prototype to avoid an error. */
  6122. #ifdef __cplusplus
  6123. extern "C"
  6124. #endif
  6125. /* We use char because int might match the return type of a gcc2
  6126. builtin and then its argument prototype would still apply. */
  6127. char XShapeQueryExtension ();
  6128. int
  6129. main ()
  6130. {
  6131. XShapeQueryExtension ();
  6132. ;
  6133. return 0;
  6134. }
  6135. _ACEOF
  6136. rm -f conftest.$ac_objext conftest$ac_exeext
  6137. if { (eval echo "$as_me:6700: \"$ac_link\"") >&5
  6138. (eval $ac_link) 2>&5
  6139. ac_status=$?
  6140. echo "$as_me:6703: \$? = $ac_status" >&5
  6141. (exit $ac_status); } &&
  6142. { ac_try='test -s conftest$ac_exeext'
  6143. { (eval echo "$as_me:6706: \"$ac_try\"") >&5
  6144. (eval $ac_try) 2>&5
  6145. ac_status=$?
  6146. echo "$as_me:6709: \$? = $ac_status" >&5
  6147. (exit $ac_status); }; }; then
  6148. ac_cv_lib_Xext_XShapeQueryExtension=yes
  6149. else
  6150. echo "$as_me: failed program was:" >&5
  6151. cat conftest.$ac_ext >&5
  6152. ac_cv_lib_Xext_XShapeQueryExtension=no
  6153. fi
  6154. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  6155. LIBS=$ac_check_lib_save_LIBS
  6156. fi
  6157. echo "$as_me:6720: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
  6158. echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
  6159. if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
  6160. cat >>confdefs.h <<EOF
  6161. #define HAVE_LIBXEXT 1
  6162. EOF
  6163. LIBS="-lXext $LIBS"
  6164. fi
  6165. fi
  6166. fi
  6167. if test "${USE_X_TOOLKIT}" = "MOTIF"; then
  6168. echo "$as_me:6735: checking for Motif version 2.1" >&5
  6169. echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
  6170. if test "${emacs_cv_motif_version_2_1+set}" = set; then
  6171. echo $ECHO_N "(cached) $ECHO_C" >&6
  6172. else
  6173. cat >conftest.$ac_ext <<_ACEOF
  6174. #line 6741 "configure"
  6175. #include "confdefs.h"
  6176. #include <Xm/Xm.h>
  6177. int
  6178. main ()
  6179. {
  6180. #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
  6181. int x = 5;
  6182. #else
  6183. Motif version prior to 2.1.
  6184. #endif
  6185. ;
  6186. return 0;
  6187. }
  6188. _ACEOF
  6189. rm -f conftest.$ac_objext
  6190. if { (eval echo "$as_me:6757: \"$ac_compile\"") >&5
  6191. (eval $ac_compile) 2>&5
  6192. ac_status=$?
  6193. echo "$as_me:6760: \$? = $ac_status" >&5
  6194. (exit $ac_status); } &&
  6195. { ac_try='test -s conftest.$ac_objext'
  6196. { (eval echo "$as_me:6763: \"$ac_try\"") >&5
  6197. (eval $ac_try) 2>&5
  6198. ac_status=$?
  6199. echo "$as_me:6766: \$? = $ac_status" >&5
  6200. (exit $ac_status); }; }; then
  6201. emacs_cv_motif_version_2_1=yes
  6202. else
  6203. echo "$as_me: failed program was:" >&5
  6204. cat conftest.$ac_ext >&5
  6205. emacs_cv_motif_version_2_1=no
  6206. fi
  6207. rm -f conftest.$ac_objext conftest.$ac_ext
  6208. fi
  6209. echo "$as_me:6776: result: $emacs_cv_motif_version_2_1" >&5
  6210. echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
  6211. HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
  6212. if test $emacs_cv_motif_version_2_1 = yes; then
  6213. HAVE_LIBXP=no
  6214. cat >>confdefs.h <<\EOF
  6215. #define HAVE_MOTIF_2_1 1
  6216. EOF
  6217. echo "$as_me:6785: checking for XpCreateContext in -lXp" >&5
  6218. echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
  6219. if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
  6220. echo $ECHO_N "(cached) $ECHO_C" >&6
  6221. else
  6222. ac_check_lib_save_LIBS=$LIBS
  6223. LIBS="-lXp $LIBS"
  6224. cat >conftest.$ac_ext <<_ACEOF
  6225. #line 6793 "configure"
  6226. #include "confdefs.h"
  6227. /* Override any gcc2 internal prototype to avoid an error. */
  6228. #ifdef __cplusplus
  6229. extern "C"
  6230. #endif
  6231. /* We use char because int might match the return type of a gcc2
  6232. builtin and then its argument prototype would still apply. */
  6233. char XpCreateContext ();
  6234. int
  6235. main ()
  6236. {
  6237. XpCreateContext ();
  6238. ;
  6239. return 0;
  6240. }
  6241. _ACEOF
  6242. rm -f conftest.$ac_objext conftest$ac_exeext
  6243. if { (eval echo "$as_me:6812: \"$ac_link\"") >&5
  6244. (eval $ac_link) 2>&5
  6245. ac_status=$?
  6246. echo "$as_me:6815: \$? = $ac_status" >&5
  6247. (exit $ac_status); } &&
  6248. { ac_try='test -s conftest$ac_exeext'
  6249. { (eval echo "$as_me:6818: \"$ac_try\"") >&5
  6250. (eval $ac_try) 2>&5
  6251. ac_status=$?
  6252. echo "$as_me:6821: \$? = $ac_status" >&5
  6253. (exit $ac_status); }; }; then
  6254. ac_cv_lib_Xp_XpCreateContext=yes
  6255. else
  6256. echo "$as_me: failed program was:" >&5
  6257. cat conftest.$ac_ext >&5
  6258. ac_cv_lib_Xp_XpCreateContext=no
  6259. fi
  6260. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  6261. LIBS=$ac_check_lib_save_LIBS
  6262. fi
  6263. echo "$as_me:6832: result: $ac_cv_lib_Xp_XpCreateContext" >&5
  6264. echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
  6265. if test $ac_cv_lib_Xp_XpCreateContext = yes; then
  6266. HAVE_LIBXP=yes
  6267. fi
  6268. if test ${HAVE_LIBXP} = yes; then
  6269. cat >>confdefs.h <<\EOF
  6270. #define HAVE_LIBXP 1
  6271. EOF
  6272. fi
  6273. fi
  6274. fi
  6275. ### Is -lXaw3d available?
  6276. HAVE_XAW3D=no
  6277. if test "${HAVE_X11}" = "yes"; then
  6278. if test "${USE_X_TOOLKIT}" != "none"; then
  6279. echo "$as_me:6851: checking for X11/Xaw3d/Scrollbar.h" >&5
  6280. echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
  6281. if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
  6282. echo $ECHO_N "(cached) $ECHO_C" >&6
  6283. else
  6284. cat >conftest.$ac_ext <<_ACEOF
  6285. #line 6857 "configure"
  6286. #include "confdefs.h"
  6287. #include <X11/Xaw3d/Scrollbar.h>
  6288. _ACEOF
  6289. if { (eval echo "$as_me:6861: \"$ac_cpp conftest.$ac_ext\"") >&5
  6290. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  6291. ac_status=$?
  6292. egrep -v '^ *\+' conftest.er1 >conftest.err
  6293. rm -f conftest.er1
  6294. cat conftest.err >&5
  6295. echo "$as_me:6867: \$? = $ac_status" >&5
  6296. (exit $ac_status); } >/dev/null; then
  6297. if test -s conftest.err; then
  6298. ac_cpp_err=$ac_c_preproc_warn_flag
  6299. else
  6300. ac_cpp_err=
  6301. fi
  6302. else
  6303. ac_cpp_err=yes
  6304. fi
  6305. if test -z "$ac_cpp_err"; then
  6306. ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
  6307. else
  6308. echo "$as_me: failed program was:" >&5
  6309. cat conftest.$ac_ext >&5
  6310. ac_cv_header_X11_Xaw3d_Scrollbar_h=no
  6311. fi
  6312. rm -f conftest.err conftest.$ac_ext
  6313. fi
  6314. echo "$as_me:6886: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
  6315. echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
  6316. if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
  6317. echo "$as_me:6889: checking for XawScrollbarSetThumb in -lXaw3d" >&5
  6318. echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
  6319. if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
  6320. echo $ECHO_N "(cached) $ECHO_C" >&6
  6321. else
  6322. ac_check_lib_save_LIBS=$LIBS
  6323. LIBS="-lXaw3d $LIBS"
  6324. cat >conftest.$ac_ext <<_ACEOF
  6325. #line 6897 "configure"
  6326. #include "confdefs.h"
  6327. /* Override any gcc2 internal prototype to avoid an error. */
  6328. #ifdef __cplusplus
  6329. extern "C"
  6330. #endif
  6331. /* We use char because int might match the return type of a gcc2
  6332. builtin and then its argument prototype would still apply. */
  6333. char XawScrollbarSetThumb ();
  6334. int
  6335. main ()
  6336. {
  6337. XawScrollbarSetThumb ();
  6338. ;
  6339. return 0;
  6340. }
  6341. _ACEOF
  6342. rm -f conftest.$ac_objext conftest$ac_exeext
  6343. if { (eval echo "$as_me:6916: \"$ac_link\"") >&5
  6344. (eval $ac_link) 2>&5
  6345. ac_status=$?
  6346. echo "$as_me:6919: \$? = $ac_status" >&5
  6347. (exit $ac_status); } &&
  6348. { ac_try='test -s conftest$ac_exeext'
  6349. { (eval echo "$as_me:6922: \"$ac_try\"") >&5
  6350. (eval $ac_try) 2>&5
  6351. ac_status=$?
  6352. echo "$as_me:6925: \$? = $ac_status" >&5
  6353. (exit $ac_status); }; }; then
  6354. ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
  6355. else
  6356. echo "$as_me: failed program was:" >&5
  6357. cat conftest.$ac_ext >&5
  6358. ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
  6359. fi
  6360. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  6361. LIBS=$ac_check_lib_save_LIBS
  6362. fi
  6363. echo "$as_me:6936: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
  6364. echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
  6365. if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
  6366. HAVE_XAW3D=yes
  6367. fi
  6368. fi
  6369. if test "${HAVE_XAW3D}" = "yes"; then
  6370. cat >>confdefs.h <<\EOF
  6371. #define HAVE_XAW3D 1
  6372. EOF
  6373. fi
  6374. fi
  6375. fi
  6376. USE_TOOLKIT_SCROLL_BARS=no
  6377. if test "${with_toolkit_scroll_bars}" != "no"; then
  6378. if test "${USE_X_TOOLKIT}" != "none"; then
  6379. if test "${USE_X_TOOLKIT}" = "MOTIF"; then
  6380. cat >>confdefs.h <<\EOF
  6381. #define USE_TOOLKIT_SCROLL_BARS 1
  6382. EOF
  6383. HAVE_XAW3D=no
  6384. USE_TOOLKIT_SCROLL_BARS=yes
  6385. elif test "${HAVE_XAW3D}" = "yes"; then
  6386. cat >>confdefs.h <<\EOF
  6387. #define USE_TOOLKIT_SCROLL_BARS 1
  6388. EOF
  6389. USE_TOOLKIT_SCROLL_BARS=yes
  6390. fi
  6391. fi
  6392. fi
  6393. if test "${with_xim}" != "no"; then
  6394. cat >>confdefs.h <<\EOF
  6395. #define USE_XIM 1
  6396. EOF
  6397. fi
  6398. ### Use -lXpm if available, unless `--with-xpm=no'.
  6399. HAVE_XPM=no
  6400. if test "${HAVE_X11}" = "yes"; then
  6401. if test "${with_xpm}" != "no"; then
  6402. echo "$as_me:6984: checking for X11/xpm.h" >&5
  6403. echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
  6404. if test "${ac_cv_header_X11_xpm_h+set}" = set; then
  6405. echo $ECHO_N "(cached) $ECHO_C" >&6
  6406. else
  6407. cat >conftest.$ac_ext <<_ACEOF
  6408. #line 6990 "configure"
  6409. #include "confdefs.h"
  6410. #include <X11/xpm.h>
  6411. _ACEOF
  6412. if { (eval echo "$as_me:6994: \"$ac_cpp conftest.$ac_ext\"") >&5
  6413. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  6414. ac_status=$?
  6415. egrep -v '^ *\+' conftest.er1 >conftest.err
  6416. rm -f conftest.er1
  6417. cat conftest.err >&5
  6418. echo "$as_me:7000: \$? = $ac_status" >&5
  6419. (exit $ac_status); } >/dev/null; then
  6420. if test -s conftest.err; then
  6421. ac_cpp_err=$ac_c_preproc_warn_flag
  6422. else
  6423. ac_cpp_err=
  6424. fi
  6425. else
  6426. ac_cpp_err=yes
  6427. fi
  6428. if test -z "$ac_cpp_err"; then
  6429. ac_cv_header_X11_xpm_h=yes
  6430. else
  6431. echo "$as_me: failed program was:" >&5
  6432. cat conftest.$ac_ext >&5
  6433. ac_cv_header_X11_xpm_h=no
  6434. fi
  6435. rm -f conftest.err conftest.$ac_ext
  6436. fi
  6437. echo "$as_me:7019: result: $ac_cv_header_X11_xpm_h" >&5
  6438. echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
  6439. if test $ac_cv_header_X11_xpm_h = yes; then
  6440. echo "$as_me:7022: checking for XpmReadFileToPixmap in -lXpm" >&5
  6441. echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
  6442. if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
  6443. echo $ECHO_N "(cached) $ECHO_C" >&6
  6444. else
  6445. ac_check_lib_save_LIBS=$LIBS
  6446. LIBS="-lXpm -lX11 $LIBS"
  6447. cat >conftest.$ac_ext <<_ACEOF
  6448. #line 7030 "configure"
  6449. #include "confdefs.h"
  6450. /* Override any gcc2 internal prototype to avoid an error. */
  6451. #ifdef __cplusplus
  6452. extern "C"
  6453. #endif
  6454. /* We use char because int might match the return type of a gcc2
  6455. builtin and then its argument prototype would still apply. */
  6456. char XpmReadFileToPixmap ();
  6457. int
  6458. main ()
  6459. {
  6460. XpmReadFileToPixmap ();
  6461. ;
  6462. return 0;
  6463. }
  6464. _ACEOF
  6465. rm -f conftest.$ac_objext conftest$ac_exeext
  6466. if { (eval echo "$as_me:7049: \"$ac_link\"") >&5
  6467. (eval $ac_link) 2>&5
  6468. ac_status=$?
  6469. echo "$as_me:7052: \$? = $ac_status" >&5
  6470. (exit $ac_status); } &&
  6471. { ac_try='test -s conftest$ac_exeext'
  6472. { (eval echo "$as_me:7055: \"$ac_try\"") >&5
  6473. (eval $ac_try) 2>&5
  6474. ac_status=$?
  6475. echo "$as_me:7058: \$? = $ac_status" >&5
  6476. (exit $ac_status); }; }; then
  6477. ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
  6478. else
  6479. echo "$as_me: failed program was:" >&5
  6480. cat conftest.$ac_ext >&5
  6481. ac_cv_lib_Xpm_XpmReadFileToPixmap=no
  6482. fi
  6483. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  6484. LIBS=$ac_check_lib_save_LIBS
  6485. fi
  6486. echo "$as_me:7069: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
  6487. echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
  6488. if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
  6489. HAVE_XPM=yes
  6490. fi
  6491. fi
  6492. if test "${HAVE_XPM}" = "yes"; then
  6493. echo "$as_me:7078: checking for XpmReturnAllocPixels preprocessor define" >&5
  6494. echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
  6495. cat >conftest.$ac_ext <<_ACEOF
  6496. #line 7081 "configure"
  6497. #include "confdefs.h"
  6498. #include "X11/xpm.h"
  6499. #ifndef XpmReturnAllocPixels
  6500. no_return_alloc_pixels
  6501. #endif
  6502. _ACEOF
  6503. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6504. egrep "no_return_alloc_pixels" >/dev/null 2>&1; then
  6505. HAVE_XPM=no
  6506. else
  6507. HAVE_XPM=yes
  6508. fi
  6509. rm -f conftest*
  6510. if test "${HAVE_XPM}" = "yes"; then
  6511. echo "$as_me:7098: result: yes" >&5
  6512. echo "${ECHO_T}yes" >&6
  6513. else
  6514. echo "$as_me:7101: result: no" >&5
  6515. echo "${ECHO_T}no" >&6
  6516. fi
  6517. fi
  6518. fi
  6519. if test "${HAVE_XPM}" = "yes"; then
  6520. cat >>confdefs.h <<\EOF
  6521. #define HAVE_XPM 1
  6522. EOF
  6523. fi
  6524. fi
  6525. ### Use -ljpeg if available, unless `--with-jpeg=no'.
  6526. HAVE_JPEG=no
  6527. if test "${HAVE_X11}" = "yes"; then
  6528. if test "${with_jpeg}" != "no"; then
  6529. echo "$as_me:7119: checking for jerror.h" >&5
  6530. echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
  6531. if test "${ac_cv_header_jerror_h+set}" = set; then
  6532. echo $ECHO_N "(cached) $ECHO_C" >&6
  6533. else
  6534. cat >conftest.$ac_ext <<_ACEOF
  6535. #line 7125 "configure"
  6536. #include "confdefs.h"
  6537. #include <jerror.h>
  6538. _ACEOF
  6539. if { (eval echo "$as_me:7129: \"$ac_cpp conftest.$ac_ext\"") >&5
  6540. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  6541. ac_status=$?
  6542. egrep -v '^ *\+' conftest.er1 >conftest.err
  6543. rm -f conftest.er1
  6544. cat conftest.err >&5
  6545. echo "$as_me:7135: \$? = $ac_status" >&5
  6546. (exit $ac_status); } >/dev/null; then
  6547. if test -s conftest.err; then
  6548. ac_cpp_err=$ac_c_preproc_warn_flag
  6549. else
  6550. ac_cpp_err=
  6551. fi
  6552. else
  6553. ac_cpp_err=yes
  6554. fi
  6555. if test -z "$ac_cpp_err"; then
  6556. ac_cv_header_jerror_h=yes
  6557. else
  6558. echo "$as_me: failed program was:" >&5
  6559. cat conftest.$ac_ext >&5
  6560. ac_cv_header_jerror_h=no
  6561. fi
  6562. rm -f conftest.err conftest.$ac_ext
  6563. fi
  6564. echo "$as_me:7154: result: $ac_cv_header_jerror_h" >&5
  6565. echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
  6566. if test $ac_cv_header_jerror_h = yes; then
  6567. echo "$as_me:7157: checking for jpeg_destroy_compress in -ljpeg" >&5
  6568. echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
  6569. if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
  6570. echo $ECHO_N "(cached) $ECHO_C" >&6
  6571. else
  6572. ac_check_lib_save_LIBS=$LIBS
  6573. LIBS="-ljpeg $LIBS"
  6574. cat >conftest.$ac_ext <<_ACEOF
  6575. #line 7165 "configure"
  6576. #include "confdefs.h"
  6577. /* Override any gcc2 internal prototype to avoid an error. */
  6578. #ifdef __cplusplus
  6579. extern "C"
  6580. #endif
  6581. /* We use char because int might match the return type of a gcc2
  6582. builtin and then its argument prototype would still apply. */
  6583. char jpeg_destroy_compress ();
  6584. int
  6585. main ()
  6586. {
  6587. jpeg_destroy_compress ();
  6588. ;
  6589. return 0;
  6590. }
  6591. _ACEOF
  6592. rm -f conftest.$ac_objext conftest$ac_exeext
  6593. if { (eval echo "$as_me:7184: \"$ac_link\"") >&5
  6594. (eval $ac_link) 2>&5
  6595. ac_status=$?
  6596. echo "$as_me:7187: \$? = $ac_status" >&5
  6597. (exit $ac_status); } &&
  6598. { ac_try='test -s conftest$ac_exeext'
  6599. { (eval echo "$as_me:7190: \"$ac_try\"") >&5
  6600. (eval $ac_try) 2>&5
  6601. ac_status=$?
  6602. echo "$as_me:7193: \$? = $ac_status" >&5
  6603. (exit $ac_status); }; }; then
  6604. ac_cv_lib_jpeg_jpeg_destroy_compress=yes
  6605. else
  6606. echo "$as_me: failed program was:" >&5
  6607. cat conftest.$ac_ext >&5
  6608. ac_cv_lib_jpeg_jpeg_destroy_compress=no
  6609. fi
  6610. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  6611. LIBS=$ac_check_lib_save_LIBS
  6612. fi
  6613. echo "$as_me:7204: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
  6614. echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
  6615. if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
  6616. HAVE_JPEG=yes
  6617. fi
  6618. fi
  6619. fi
  6620. if test "${HAVE_JPEG}" = "yes"; then
  6621. cat >>confdefs.h <<\EOF
  6622. #define HAVE_JPEG 1
  6623. EOF
  6624. fi
  6625. fi
  6626. ### Use -lpng if available, unless `--with-png=no'.
  6627. HAVE_PNG=no
  6628. if test "${HAVE_X11}" = "yes"; then
  6629. if test "${with_png}" != "no"; then
  6630. echo "$as_me:7226: checking for png.h" >&5
  6631. echo $ECHO_N "checking for png.h... $ECHO_C" >&6
  6632. if test "${ac_cv_header_png_h+set}" = set; then
  6633. echo $ECHO_N "(cached) $ECHO_C" >&6
  6634. else
  6635. cat >conftest.$ac_ext <<_ACEOF
  6636. #line 7232 "configure"
  6637. #include "confdefs.h"
  6638. #include <png.h>
  6639. _ACEOF
  6640. if { (eval echo "$as_me:7236: \"$ac_cpp conftest.$ac_ext\"") >&5
  6641. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  6642. ac_status=$?
  6643. egrep -v '^ *\+' conftest.er1 >conftest.err
  6644. rm -f conftest.er1
  6645. cat conftest.err >&5
  6646. echo "$as_me:7242: \$? = $ac_status" >&5
  6647. (exit $ac_status); } >/dev/null; then
  6648. if test -s conftest.err; then
  6649. ac_cpp_err=$ac_c_preproc_warn_flag
  6650. else
  6651. ac_cpp_err=
  6652. fi
  6653. else
  6654. ac_cpp_err=yes
  6655. fi
  6656. if test -z "$ac_cpp_err"; then
  6657. ac_cv_header_png_h=yes
  6658. else
  6659. echo "$as_me: failed program was:" >&5
  6660. cat conftest.$ac_ext >&5
  6661. ac_cv_header_png_h=no
  6662. fi
  6663. rm -f conftest.err conftest.$ac_ext
  6664. fi
  6665. echo "$as_me:7261: result: $ac_cv_header_png_h" >&5
  6666. echo "${ECHO_T}$ac_cv_header_png_h" >&6
  6667. if test $ac_cv_header_png_h = yes; then
  6668. echo "$as_me:7264: checking for png_get_channels in -lpng" >&5
  6669. echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
  6670. if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
  6671. echo $ECHO_N "(cached) $ECHO_C" >&6
  6672. else
  6673. ac_check_lib_save_LIBS=$LIBS
  6674. LIBS="-lpng -lz -lm $LIBS"
  6675. cat >conftest.$ac_ext <<_ACEOF
  6676. #line 7272 "configure"
  6677. #include "confdefs.h"
  6678. /* Override any gcc2 internal prototype to avoid an error. */
  6679. #ifdef __cplusplus
  6680. extern "C"
  6681. #endif
  6682. /* We use char because int might match the return type of a gcc2
  6683. builtin and then its argument prototype would still apply. */
  6684. char png_get_channels ();
  6685. int
  6686. main ()
  6687. {
  6688. png_get_channels ();
  6689. ;
  6690. return 0;
  6691. }
  6692. _ACEOF
  6693. rm -f conftest.$ac_objext conftest$ac_exeext
  6694. if { (eval echo "$as_me:7291: \"$ac_link\"") >&5
  6695. (eval $ac_link) 2>&5
  6696. ac_status=$?
  6697. echo "$as_me:7294: \$? = $ac_status" >&5
  6698. (exit $ac_status); } &&
  6699. { ac_try='test -s conftest$ac_exeext'
  6700. { (eval echo "$as_me:7297: \"$ac_try\"") >&5
  6701. (eval $ac_try) 2>&5
  6702. ac_status=$?
  6703. echo "$as_me:7300: \$? = $ac_status" >&5
  6704. (exit $ac_status); }; }; then
  6705. ac_cv_lib_png_png_get_channels=yes
  6706. else
  6707. echo "$as_me: failed program was:" >&5
  6708. cat conftest.$ac_ext >&5
  6709. ac_cv_lib_png_png_get_channels=no
  6710. fi
  6711. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  6712. LIBS=$ac_check_lib_save_LIBS
  6713. fi
  6714. echo "$as_me:7311: result: $ac_cv_lib_png_png_get_channels" >&5
  6715. echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
  6716. if test $ac_cv_lib_png_png_get_channels = yes; then
  6717. HAVE_PNG=yes
  6718. fi
  6719. fi
  6720. fi
  6721. if test "${HAVE_PNG}" = "yes"; then
  6722. cat >>confdefs.h <<\EOF
  6723. #define HAVE_PNG 1
  6724. EOF
  6725. fi
  6726. fi
  6727. ### Use -ltiff if available, unless `--with-tiff=no'.
  6728. HAVE_TIFF=no
  6729. if test "${HAVE_X11}" = "yes"; then
  6730. if test "${with_tiff}" != "no"; then
  6731. echo "$as_me:7333: checking for tiffio.h" >&5
  6732. echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
  6733. if test "${ac_cv_header_tiffio_h+set}" = set; then
  6734. echo $ECHO_N "(cached) $ECHO_C" >&6
  6735. else
  6736. cat >conftest.$ac_ext <<_ACEOF
  6737. #line 7339 "configure"
  6738. #include "confdefs.h"
  6739. #include <tiffio.h>
  6740. _ACEOF
  6741. if { (eval echo "$as_me:7343: \"$ac_cpp conftest.$ac_ext\"") >&5
  6742. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  6743. ac_status=$?
  6744. egrep -v '^ *\+' conftest.er1 >conftest.err
  6745. rm -f conftest.er1
  6746. cat conftest.err >&5
  6747. echo "$as_me:7349: \$? = $ac_status" >&5
  6748. (exit $ac_status); } >/dev/null; then
  6749. if test -s conftest.err; then
  6750. ac_cpp_err=$ac_c_preproc_warn_flag
  6751. else
  6752. ac_cpp_err=
  6753. fi
  6754. else
  6755. ac_cpp_err=yes
  6756. fi
  6757. if test -z "$ac_cpp_err"; then
  6758. ac_cv_header_tiffio_h=yes
  6759. else
  6760. echo "$as_me: failed program was:" >&5
  6761. cat conftest.$ac_ext >&5
  6762. ac_cv_header_tiffio_h=no
  6763. fi
  6764. rm -f conftest.err conftest.$ac_ext
  6765. fi
  6766. echo "$as_me:7368: result: $ac_cv_header_tiffio_h" >&5
  6767. echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
  6768. if test $ac_cv_header_tiffio_h = yes; then
  6769. tifflibs="-lz -lm"
  6770. # At least one tiff package requires the jpeg library.
  6771. if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
  6772. echo "$as_me:7374: checking for TIFFGetVersion in -ltiff" >&5
  6773. echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
  6774. if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
  6775. echo $ECHO_N "(cached) $ECHO_C" >&6
  6776. else
  6777. ac_check_lib_save_LIBS=$LIBS
  6778. LIBS="-ltiff $tifflibs $LIBS"
  6779. cat >conftest.$ac_ext <<_ACEOF
  6780. #line 7382 "configure"
  6781. #include "confdefs.h"
  6782. /* Override any gcc2 internal prototype to avoid an error. */
  6783. #ifdef __cplusplus
  6784. extern "C"
  6785. #endif
  6786. /* We use char because int might match the return type of a gcc2
  6787. builtin and then its argument prototype would still apply. */
  6788. char TIFFGetVersion ();
  6789. int
  6790. main ()
  6791. {
  6792. TIFFGetVersion ();
  6793. ;
  6794. return 0;
  6795. }
  6796. _ACEOF
  6797. rm -f conftest.$ac_objext conftest$ac_exeext
  6798. if { (eval echo "$as_me:7401: \"$ac_link\"") >&5
  6799. (eval $ac_link) 2>&5
  6800. ac_status=$?
  6801. echo "$as_me:7404: \$? = $ac_status" >&5
  6802. (exit $ac_status); } &&
  6803. { ac_try='test -s conftest$ac_exeext'
  6804. { (eval echo "$as_me:7407: \"$ac_try\"") >&5
  6805. (eval $ac_try) 2>&5
  6806. ac_status=$?
  6807. echo "$as_me:7410: \$? = $ac_status" >&5
  6808. (exit $ac_status); }; }; then
  6809. ac_cv_lib_tiff_TIFFGetVersion=yes
  6810. else
  6811. echo "$as_me: failed program was:" >&5
  6812. cat conftest.$ac_ext >&5
  6813. ac_cv_lib_tiff_TIFFGetVersion=no
  6814. fi
  6815. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  6816. LIBS=$ac_check_lib_save_LIBS
  6817. fi
  6818. echo "$as_me:7421: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
  6819. echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
  6820. if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
  6821. HAVE_TIFF=yes
  6822. fi
  6823. fi
  6824. fi
  6825. if test "${HAVE_TIFF}" = "yes"; then
  6826. cat >>confdefs.h <<\EOF
  6827. #define HAVE_TIFF 1
  6828. EOF
  6829. fi
  6830. fi
  6831. ### Use -lgif if available, unless `--with-gif=no'.
  6832. HAVE_GIF=no
  6833. if test "${HAVE_X11}" = "yes"; then
  6834. if test "${with_gif}" != "no"; then
  6835. echo "$as_me:7443: checking for gif_lib.h" >&5
  6836. echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
  6837. if test "${ac_cv_header_gif_lib_h+set}" = set; then
  6838. echo $ECHO_N "(cached) $ECHO_C" >&6
  6839. else
  6840. cat >conftest.$ac_ext <<_ACEOF
  6841. #line 7449 "configure"
  6842. #include "confdefs.h"
  6843. #include <gif_lib.h>
  6844. _ACEOF
  6845. if { (eval echo "$as_me:7453: \"$ac_cpp conftest.$ac_ext\"") >&5
  6846. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  6847. ac_status=$?
  6848. egrep -v '^ *\+' conftest.er1 >conftest.err
  6849. rm -f conftest.er1
  6850. cat conftest.err >&5
  6851. echo "$as_me:7459: \$? = $ac_status" >&5
  6852. (exit $ac_status); } >/dev/null; then
  6853. if test -s conftest.err; then
  6854. ac_cpp_err=$ac_c_preproc_warn_flag
  6855. else
  6856. ac_cpp_err=
  6857. fi
  6858. else
  6859. ac_cpp_err=yes
  6860. fi
  6861. if test -z "$ac_cpp_err"; then
  6862. ac_cv_header_gif_lib_h=yes
  6863. else
  6864. echo "$as_me: failed program was:" >&5
  6865. cat conftest.$ac_ext >&5
  6866. ac_cv_header_gif_lib_h=no
  6867. fi
  6868. rm -f conftest.err conftest.$ac_ext
  6869. fi
  6870. echo "$as_me:7478: result: $ac_cv_header_gif_lib_h" >&5
  6871. echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
  6872. if test $ac_cv_header_gif_lib_h = yes; then
  6873. echo "$as_me:7481: checking for DGifOpen in -lungif" >&5
  6874. echo $ECHO_N "checking for DGifOpen in -lungif... $ECHO_C" >&6
  6875. if test "${ac_cv_lib_ungif_DGifOpen+set}" = set; then
  6876. echo $ECHO_N "(cached) $ECHO_C" >&6
  6877. else
  6878. ac_check_lib_save_LIBS=$LIBS
  6879. LIBS="-lungif $LIBS"
  6880. cat >conftest.$ac_ext <<_ACEOF
  6881. #line 7489 "configure"
  6882. #include "confdefs.h"
  6883. /* Override any gcc2 internal prototype to avoid an error. */
  6884. #ifdef __cplusplus
  6885. extern "C"
  6886. #endif
  6887. /* We use char because int might match the return type of a gcc2
  6888. builtin and then its argument prototype would still apply. */
  6889. char DGifOpen ();
  6890. int
  6891. main ()
  6892. {
  6893. DGifOpen ();
  6894. ;
  6895. return 0;
  6896. }
  6897. _ACEOF
  6898. rm -f conftest.$ac_objext conftest$ac_exeext
  6899. if { (eval echo "$as_me:7508: \"$ac_link\"") >&5
  6900. (eval $ac_link) 2>&5
  6901. ac_status=$?
  6902. echo "$as_me:7511: \$? = $ac_status" >&5
  6903. (exit $ac_status); } &&
  6904. { ac_try='test -s conftest$ac_exeext'
  6905. { (eval echo "$as_me:7514: \"$ac_try\"") >&5
  6906. (eval $ac_try) 2>&5
  6907. ac_status=$?
  6908. echo "$as_me:7517: \$? = $ac_status" >&5
  6909. (exit $ac_status); }; }; then
  6910. ac_cv_lib_ungif_DGifOpen=yes
  6911. else
  6912. echo "$as_me: failed program was:" >&5
  6913. cat conftest.$ac_ext >&5
  6914. ac_cv_lib_ungif_DGifOpen=no
  6915. fi
  6916. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  6917. LIBS=$ac_check_lib_save_LIBS
  6918. fi
  6919. echo "$as_me:7528: result: $ac_cv_lib_ungif_DGifOpen" >&5
  6920. echo "${ECHO_T}$ac_cv_lib_ungif_DGifOpen" >&6
  6921. if test $ac_cv_lib_ungif_DGifOpen = yes; then
  6922. HAVE_GIF=yes
  6923. fi
  6924. fi
  6925. fi
  6926. if test "${HAVE_GIF}" = "yes"; then
  6927. cat >>confdefs.h <<\EOF
  6928. #define HAVE_GIF 1
  6929. EOF
  6930. fi
  6931. fi
  6932. # If netdb.h doesn't declare h_errno, we must declare it by hand.
  6933. echo "$as_me:7547: checking whether netdb declares h_errno" >&5
  6934. echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
  6935. if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
  6936. echo $ECHO_N "(cached) $ECHO_C" >&6
  6937. else
  6938. cat >conftest.$ac_ext <<_ACEOF
  6939. #line 7553 "configure"
  6940. #include "confdefs.h"
  6941. #include <netdb.h>
  6942. int
  6943. main ()
  6944. {
  6945. return h_errno;
  6946. ;
  6947. return 0;
  6948. }
  6949. _ACEOF
  6950. rm -f conftest.$ac_objext conftest$ac_exeext
  6951. if { (eval echo "$as_me:7565: \"$ac_link\"") >&5
  6952. (eval $ac_link) 2>&5
  6953. ac_status=$?
  6954. echo "$as_me:7568: \$? = $ac_status" >&5
  6955. (exit $ac_status); } &&
  6956. { ac_try='test -s conftest$ac_exeext'
  6957. { (eval echo "$as_me:7571: \"$ac_try\"") >&5
  6958. (eval $ac_try) 2>&5
  6959. ac_status=$?
  6960. echo "$as_me:7574: \$? = $ac_status" >&5
  6961. (exit $ac_status); }; }; then
  6962. emacs_cv_netdb_declares_h_errno=yes
  6963. else
  6964. echo "$as_me: failed program was:" >&5
  6965. cat conftest.$ac_ext >&5
  6966. emacs_cv_netdb_declares_h_errno=no
  6967. fi
  6968. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  6969. fi
  6970. echo "$as_me:7584: result: $emacs_cv_netdb_declares_h_errno" >&5
  6971. echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
  6972. if test $emacs_cv_netdb_declares_h_errno = yes; then
  6973. cat >>confdefs.h <<\EOF
  6974. #define HAVE_H_ERRNO 1
  6975. EOF
  6976. fi
  6977. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  6978. # for constant arguments. Useless!
  6979. echo "$as_me:7595: checking for working alloca.h" >&5
  6980. echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
  6981. if test "${ac_cv_working_alloca_h+set}" = set; then
  6982. echo $ECHO_N "(cached) $ECHO_C" >&6
  6983. else
  6984. cat >conftest.$ac_ext <<_ACEOF
  6985. #line 7601 "configure"
  6986. #include "confdefs.h"
  6987. #include <alloca.h>
  6988. int
  6989. main ()
  6990. {
  6991. char *p = (char *) alloca (2 * sizeof (int));
  6992. ;
  6993. return 0;
  6994. }
  6995. _ACEOF
  6996. rm -f conftest.$ac_objext conftest$ac_exeext
  6997. if { (eval echo "$as_me:7613: \"$ac_link\"") >&5
  6998. (eval $ac_link) 2>&5
  6999. ac_status=$?
  7000. echo "$as_me:7616: \$? = $ac_status" >&5
  7001. (exit $ac_status); } &&
  7002. { ac_try='test -s conftest$ac_exeext'
  7003. { (eval echo "$as_me:7619: \"$ac_try\"") >&5
  7004. (eval $ac_try) 2>&5
  7005. ac_status=$?
  7006. echo "$as_me:7622: \$? = $ac_status" >&5
  7007. (exit $ac_status); }; }; then
  7008. ac_cv_working_alloca_h=yes
  7009. else
  7010. echo "$as_me: failed program was:" >&5
  7011. cat conftest.$ac_ext >&5
  7012. ac_cv_working_alloca_h=no
  7013. fi
  7014. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  7015. fi
  7016. echo "$as_me:7632: result: $ac_cv_working_alloca_h" >&5
  7017. echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
  7018. if test $ac_cv_working_alloca_h = yes; then
  7019. cat >>confdefs.h <<\EOF
  7020. #define HAVE_ALLOCA_H 1
  7021. EOF
  7022. fi
  7023. echo "$as_me:7642: checking for alloca" >&5
  7024. echo $ECHO_N "checking for alloca... $ECHO_C" >&6
  7025. if test "${ac_cv_func_alloca_works+set}" = set; then
  7026. echo $ECHO_N "(cached) $ECHO_C" >&6
  7027. else
  7028. cat >conftest.$ac_ext <<_ACEOF
  7029. #line 7648 "configure"
  7030. #include "confdefs.h"
  7031. #ifdef __GNUC__
  7032. # define alloca __builtin_alloca
  7033. #else
  7034. # ifdef _MSC_VER
  7035. # include <malloc.h>
  7036. # define alloca _alloca
  7037. # else
  7038. # if HAVE_ALLOCA_H
  7039. # include <alloca.h>
  7040. # else
  7041. # ifdef _AIX
  7042. #pragma alloca
  7043. # else
  7044. # ifndef alloca /* predefined by HP cc +Olibcalls */
  7045. char *alloca ();
  7046. # endif
  7047. # endif
  7048. # endif
  7049. # endif
  7050. #endif
  7051. int
  7052. main ()
  7053. {
  7054. char *p = (char *) alloca (1);
  7055. ;
  7056. return 0;
  7057. }
  7058. _ACEOF
  7059. rm -f conftest.$ac_objext conftest$ac_exeext
  7060. if { (eval echo "$as_me:7680: \"$ac_link\"") >&5
  7061. (eval $ac_link) 2>&5
  7062. ac_status=$?
  7063. echo "$as_me:7683: \$? = $ac_status" >&5
  7064. (exit $ac_status); } &&
  7065. { ac_try='test -s conftest$ac_exeext'
  7066. { (eval echo "$as_me:7686: \"$ac_try\"") >&5
  7067. (eval $ac_try) 2>&5
  7068. ac_status=$?
  7069. echo "$as_me:7689: \$? = $ac_status" >&5
  7070. (exit $ac_status); }; }; then
  7071. ac_cv_func_alloca_works=yes
  7072. else
  7073. echo "$as_me: failed program was:" >&5
  7074. cat conftest.$ac_ext >&5
  7075. ac_cv_func_alloca_works=no
  7076. fi
  7077. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  7078. fi
  7079. echo "$as_me:7699: result: $ac_cv_func_alloca_works" >&5
  7080. echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
  7081. if test $ac_cv_func_alloca_works = yes; then
  7082. cat >>confdefs.h <<\EOF
  7083. #define HAVE_ALLOCA 1
  7084. EOF
  7085. else
  7086. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  7087. # that cause trouble. Some versions do not even contain alloca or
  7088. # contain a buggy version. If you still want to use their alloca,
  7089. # use ar to extract alloca.o from them instead of compiling alloca.c.
  7090. ALLOCA=alloca.$ac_objext
  7091. cat >>confdefs.h <<\EOF
  7092. #define C_ALLOCA 1
  7093. EOF
  7094. echo "$as_me:7720: checking whether \`alloca.c' needs Cray hooks" >&5
  7095. echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
  7096. if test "${ac_cv_os_cray+set}" = set; then
  7097. echo $ECHO_N "(cached) $ECHO_C" >&6
  7098. else
  7099. cat >conftest.$ac_ext <<_ACEOF
  7100. #line 7726 "configure"
  7101. #include "confdefs.h"
  7102. #if defined(CRAY) && ! defined(CRAY2)
  7103. webecray
  7104. #else
  7105. wenotbecray
  7106. #endif
  7107. _ACEOF
  7108. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7109. egrep "webecray" >/dev/null 2>&1; then
  7110. ac_cv_os_cray=yes
  7111. else
  7112. ac_cv_os_cray=no
  7113. fi
  7114. rm -f conftest*
  7115. fi
  7116. echo "$as_me:7744: result: $ac_cv_os_cray" >&5
  7117. echo "${ECHO_T}$ac_cv_os_cray" >&6
  7118. if test $ac_cv_os_cray = yes; then
  7119. for ac_func in _getb67 GETB67 getb67; do
  7120. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7121. echo "$as_me:7749: checking for $ac_func" >&5
  7122. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  7123. if eval "test \"\${$as_ac_var+set}\" = set"; then
  7124. echo $ECHO_N "(cached) $ECHO_C" >&6
  7125. else
  7126. cat >conftest.$ac_ext <<_ACEOF
  7127. #line 7755 "configure"
  7128. #include "confdefs.h"
  7129. /* System header to define __stub macros and hopefully few prototypes,
  7130. which can conflict with char $ac_func (); below. */
  7131. #include <assert.h>
  7132. /* Override any gcc2 internal prototype to avoid an error. */
  7133. #ifdef __cplusplus
  7134. extern "C"
  7135. #endif
  7136. /* We use char because int might match the return type of a gcc2
  7137. builtin and then its argument prototype would still apply. */
  7138. char $ac_func ();
  7139. char (*f) ();
  7140. int
  7141. main ()
  7142. {
  7143. /* The GNU C library defines this for functions which it implements
  7144. to always fail with ENOSYS. Some functions are actually named
  7145. something starting with __ and the normal name is an alias. */
  7146. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  7147. choke me
  7148. #else
  7149. f = $ac_func;
  7150. #endif
  7151. ;
  7152. return 0;
  7153. }
  7154. _ACEOF
  7155. rm -f conftest.$ac_objext conftest$ac_exeext
  7156. if { (eval echo "$as_me:7786: \"$ac_link\"") >&5
  7157. (eval $ac_link) 2>&5
  7158. ac_status=$?
  7159. echo "$as_me:7789: \$? = $ac_status" >&5
  7160. (exit $ac_status); } &&
  7161. { ac_try='test -s conftest$ac_exeext'
  7162. { (eval echo "$as_me:7792: \"$ac_try\"") >&5
  7163. (eval $ac_try) 2>&5
  7164. ac_status=$?
  7165. echo "$as_me:7795: \$? = $ac_status" >&5
  7166. (exit $ac_status); }; }; then
  7167. eval "$as_ac_var=yes"
  7168. else
  7169. echo "$as_me: failed program was:" >&5
  7170. cat conftest.$ac_ext >&5
  7171. eval "$as_ac_var=no"
  7172. fi
  7173. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  7174. fi
  7175. echo "$as_me:7805: result: `eval echo '${'$as_ac_var'}'`" >&5
  7176. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  7177. if test `eval echo '${'$as_ac_var'}'` = yes; then
  7178. cat >>confdefs.h <<EOF
  7179. #define CRAY_STACKSEG_END $ac_func
  7180. EOF
  7181. break
  7182. fi
  7183. done
  7184. fi
  7185. echo "$as_me:7819: checking stack direction for C alloca" >&5
  7186. echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
  7187. if test "${ac_cv_c_stack_direction+set}" = set; then
  7188. echo $ECHO_N "(cached) $ECHO_C" >&6
  7189. else
  7190. if test "$cross_compiling" = yes; then
  7191. ac_cv_c_stack_direction=0
  7192. else
  7193. cat >conftest.$ac_ext <<_ACEOF
  7194. #line 7828 "configure"
  7195. #include "confdefs.h"
  7196. int
  7197. find_stack_direction ()
  7198. {
  7199. static char *addr = 0;
  7200. auto char dummy;
  7201. if (addr == 0)
  7202. {
  7203. addr = &dummy;
  7204. return find_stack_direction ();
  7205. }
  7206. else
  7207. return (&dummy > addr) ? 1 : -1;
  7208. }
  7209. int
  7210. main ()
  7211. {
  7212. exit (find_stack_direction () < 0);
  7213. }
  7214. _ACEOF
  7215. rm -f conftest$ac_exeext
  7216. if { (eval echo "$as_me:7851: \"$ac_link\"") >&5
  7217. (eval $ac_link) 2>&5
  7218. ac_status=$?
  7219. echo "$as_me:7854: \$? = $ac_status" >&5
  7220. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7221. { (eval echo "$as_me:7856: \"$ac_try\"") >&5
  7222. (eval $ac_try) 2>&5
  7223. ac_status=$?
  7224. echo "$as_me:7859: \$? = $ac_status" >&5
  7225. (exit $ac_status); }; }; then
  7226. ac_cv_c_stack_direction=1
  7227. else
  7228. echo "$as_me: program exited with status $ac_status" >&5
  7229. echo "$as_me: failed program was:" >&5
  7230. cat conftest.$ac_ext >&5
  7231. ac_cv_c_stack_direction=-1
  7232. fi
  7233. rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7234. fi
  7235. fi
  7236. echo "$as_me:7871: result: $ac_cv_c_stack_direction" >&5
  7237. echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
  7238. cat >>confdefs.h <<EOF
  7239. #define STACK_DIRECTION $ac_cv_c_stack_direction
  7240. EOF
  7241. fi
  7242. # fmod, logb, and frexp are found in -lm on most systems.
  7243. # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
  7244. echo "$as_me:7883: checking for sqrt in -lm" >&5
  7245. echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
  7246. if test "${ac_cv_lib_m_sqrt+set}" = set; then
  7247. echo $ECHO_N "(cached) $ECHO_C" >&6
  7248. else
  7249. ac_check_lib_save_LIBS=$LIBS
  7250. LIBS="-lm $LIBS"
  7251. cat >conftest.$ac_ext <<_ACEOF
  7252. #line 7891 "configure"
  7253. #include "confdefs.h"
  7254. /* Override any gcc2 internal prototype to avoid an error. */
  7255. #ifdef __cplusplus
  7256. extern "C"
  7257. #endif
  7258. /* We use char because int might match the return type of a gcc2
  7259. builtin and then its argument prototype would still apply. */
  7260. char sqrt ();
  7261. int
  7262. main ()
  7263. {
  7264. sqrt ();
  7265. ;
  7266. return 0;
  7267. }
  7268. _ACEOF
  7269. rm -f conftest.$ac_objext conftest$ac_exeext
  7270. if { (eval echo "$as_me:7910: \"$ac_link\"") >&5
  7271. (eval $ac_link) 2>&5
  7272. ac_status=$?
  7273. echo "$as_me:7913: \$? = $ac_status" >&5
  7274. (exit $ac_status); } &&
  7275. { ac_try='test -s conftest$ac_exeext'
  7276. { (eval echo "$as_me:7916: \"$ac_try\"") >&5
  7277. (eval $ac_try) 2>&5
  7278. ac_status=$?
  7279. echo "$as_me:7919: \$? = $ac_status" >&5
  7280. (exit $ac_status); }; }; then
  7281. ac_cv_lib_m_sqrt=yes
  7282. else
  7283. echo "$as_me: failed program was:" >&5
  7284. cat conftest.$ac_ext >&5
  7285. ac_cv_lib_m_sqrt=no
  7286. fi
  7287. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  7288. LIBS=$ac_check_lib_save_LIBS
  7289. fi
  7290. echo "$as_me:7930: result: $ac_cv_lib_m_sqrt" >&5
  7291. echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
  7292. if test $ac_cv_lib_m_sqrt = yes; then
  7293. cat >>confdefs.h <<EOF
  7294. #define HAVE_LIBM 1
  7295. EOF
  7296. LIBS="-lm $LIBS"
  7297. fi
  7298. # Check for mail-locking functions in a "mail" library
  7299. echo "$as_me:7943: checking for maillock in -lmail" >&5
  7300. echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
  7301. if test "${ac_cv_lib_mail_maillock+set}" = set; then
  7302. echo $ECHO_N "(cached) $ECHO_C" >&6
  7303. else
  7304. ac_check_lib_save_LIBS=$LIBS
  7305. LIBS="-lmail $LIBS"
  7306. cat >conftest.$ac_ext <<_ACEOF
  7307. #line 7951 "configure"
  7308. #include "confdefs.h"
  7309. /* Override any gcc2 internal prototype to avoid an error. */
  7310. #ifdef __cplusplus
  7311. extern "C"
  7312. #endif
  7313. /* We use char because int might match the return type of a gcc2
  7314. builtin and then its argument prototype would still apply. */
  7315. char maillock ();
  7316. int
  7317. main ()
  7318. {
  7319. maillock ();
  7320. ;
  7321. return 0;
  7322. }
  7323. _ACEOF
  7324. rm -f conftest.$ac_objext conftest$ac_exeext
  7325. if { (eval echo "$as_me:7970: \"$ac_link\"") >&5
  7326. (eval $ac_link) 2>&5
  7327. ac_status=$?
  7328. echo "$as_me:7973: \$? = $ac_status" >&5
  7329. (exit $ac_status); } &&
  7330. { ac_try='test -s conftest$ac_exeext'
  7331. { (eval echo "$as_me:7976: \"$ac_try\"") >&5
  7332. (eval $ac_try) 2>&5
  7333. ac_status=$?
  7334. echo "$as_me:7979: \$? = $ac_status" >&5
  7335. (exit $ac_status); }; }; then
  7336. ac_cv_lib_mail_maillock=yes
  7337. else
  7338. echo "$as_me: failed program was:" >&5
  7339. cat conftest.$ac_ext >&5
  7340. ac_cv_lib_mail_maillock=no
  7341. fi
  7342. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  7343. LIBS=$ac_check_lib_save_LIBS
  7344. fi
  7345. echo "$as_me:7990: result: $ac_cv_lib_mail_maillock" >&5
  7346. echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
  7347. if test $ac_cv_lib_mail_maillock = yes; then
  7348. cat >>confdefs.h <<EOF
  7349. #define HAVE_LIBMAIL 1
  7350. EOF
  7351. LIBS="-lmail $LIBS"
  7352. fi
  7353. echo "$as_me:8001: checking for maillock in -llockfile" >&5
  7354. echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
  7355. if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
  7356. echo $ECHO_N "(cached) $ECHO_C" >&6
  7357. else
  7358. ac_check_lib_save_LIBS=$LIBS
  7359. LIBS="-llockfile $LIBS"
  7360. cat >conftest.$ac_ext <<_ACEOF
  7361. #line 8009 "configure"
  7362. #include "confdefs.h"
  7363. /* Override any gcc2 internal prototype to avoid an error. */
  7364. #ifdef __cplusplus
  7365. extern "C"
  7366. #endif
  7367. /* We use char because int might match the return type of a gcc2
  7368. builtin and then its argument prototype would still apply. */
  7369. char maillock ();
  7370. int
  7371. main ()
  7372. {
  7373. maillock ();
  7374. ;
  7375. return 0;
  7376. }
  7377. _ACEOF
  7378. rm -f conftest.$ac_objext conftest$ac_exeext
  7379. if { (eval echo "$as_me:8028: \"$ac_link\"") >&5
  7380. (eval $ac_link) 2>&5
  7381. ac_status=$?
  7382. echo "$as_me:8031: \$? = $ac_status" >&5
  7383. (exit $ac_status); } &&
  7384. { ac_try='test -s conftest$ac_exeext'
  7385. { (eval echo "$as_me:8034: \"$ac_try\"") >&5
  7386. (eval $ac_try) 2>&5
  7387. ac_status=$?
  7388. echo "$as_me:8037: \$? = $ac_status" >&5
  7389. (exit $ac_status); }; }; then
  7390. ac_cv_lib_lockfile_maillock=yes
  7391. else
  7392. echo "$as_me: failed program was:" >&5
  7393. cat conftest.$ac_ext >&5
  7394. ac_cv_lib_lockfile_maillock=no
  7395. fi
  7396. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  7397. LIBS=$ac_check_lib_save_LIBS
  7398. fi
  7399. echo "$as_me:8048: result: $ac_cv_lib_lockfile_maillock" >&5
  7400. echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
  7401. if test $ac_cv_lib_lockfile_maillock = yes; then
  7402. cat >>confdefs.h <<EOF
  7403. #define HAVE_LIBLOCKFILE 1
  7404. EOF
  7405. LIBS="-llockfile $LIBS"
  7406. fi
  7407. # If we have the shared liblockfile, assume we must use it for mail
  7408. # locking (e.g. Debian). If we couldn't link against liblockfile
  7409. # (no liblockfile.a installed), ensure that we don't need to.
  7410. if test "$ac_cv_lib_lockfile_maillock" = no; then
  7411. # Extract the first word of "liblockfile.so", so it can be a program name with args.
  7412. set dummy liblockfile.so; ac_word=$2
  7413. echo "$as_me:8065: checking for $ac_word" >&5
  7414. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  7415. if test "${ac_cv_prog_liblockfile+set}" = set; then
  7416. echo $ECHO_N "(cached) $ECHO_C" >&6
  7417. else
  7418. if test -n "$liblockfile"; then
  7419. ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
  7420. else
  7421. ac_save_IFS=$IFS; IFS=$ac_path_separator
  7422. ac_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
  7423. for ac_dir in $ac_dummy; do
  7424. IFS=$ac_save_IFS
  7425. test -z "$ac_dir" && ac_dir=.
  7426. $as_executable_p "$ac_dir/$ac_word" || continue
  7427. ac_cv_prog_liblockfile="yes"
  7428. echo "$as_me:8080: found $ac_dir/$ac_word" >&5
  7429. break
  7430. done
  7431. test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
  7432. fi
  7433. fi
  7434. liblockfile=$ac_cv_prog_liblockfile
  7435. if test -n "$liblockfile"; then
  7436. echo "$as_me:8089: result: $liblockfile" >&5
  7437. echo "${ECHO_T}$liblockfile" >&6
  7438. else
  7439. echo "$as_me:8092: result: no" >&5
  7440. echo "${ECHO_T}no" >&6
  7441. fi
  7442. if test $ac_cv_prog_liblockfile = yes; then
  7443. { { echo "$as_me:8097: error: Shared liblockfile found but can't link against it.
  7444. This probably means that movemail could lose mail.
  7445. There may be a \`development' package to install containing liblockfile." >&5
  7446. echo "$as_me: error: Shared liblockfile found but can't link against it.
  7447. This probably means that movemail could lose mail.
  7448. There may be a \`development' package to install containing liblockfile." >&2;}
  7449. { (exit 1); exit 1; }; }
  7450. else cat >>confdefs.h <<\EOF
  7451. #define LIBMAIL -llockfile
  7452. EOF
  7453. fi
  7454. else :
  7455. fi
  7456. for ac_func in touchlock
  7457. do
  7458. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7459. echo "$as_me:8115: checking for $ac_func" >&5
  7460. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  7461. if eval "test \"\${$as_ac_var+set}\" = set"; then
  7462. echo $ECHO_N "(cached) $ECHO_C" >&6
  7463. else
  7464. cat >conftest.$ac_ext <<_ACEOF
  7465. #line 8121 "configure"
  7466. #include "confdefs.h"
  7467. /* System header to define __stub macros and hopefully few prototypes,
  7468. which can conflict with char $ac_func (); below. */
  7469. #include <assert.h>
  7470. /* Override any gcc2 internal prototype to avoid an error. */
  7471. #ifdef __cplusplus
  7472. extern "C"
  7473. #endif
  7474. /* We use char because int might match the return type of a gcc2
  7475. builtin and then its argument prototype would still apply. */
  7476. char $ac_func ();
  7477. char (*f) ();
  7478. int
  7479. main ()
  7480. {
  7481. /* The GNU C library defines this for functions which it implements
  7482. to always fail with ENOSYS. Some functions are actually named
  7483. something starting with __ and the normal name is an alias. */
  7484. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  7485. choke me
  7486. #else
  7487. f = $ac_func;
  7488. #endif
  7489. ;
  7490. return 0;
  7491. }
  7492. _ACEOF
  7493. rm -f conftest.$ac_objext conftest$ac_exeext
  7494. if { (eval echo "$as_me:8152: \"$ac_link\"") >&5
  7495. (eval $ac_link) 2>&5
  7496. ac_status=$?
  7497. echo "$as_me:8155: \$? = $ac_status" >&5
  7498. (exit $ac_status); } &&
  7499. { ac_try='test -s conftest$ac_exeext'
  7500. { (eval echo "$as_me:8158: \"$ac_try\"") >&5
  7501. (eval $ac_try) 2>&5
  7502. ac_status=$?
  7503. echo "$as_me:8161: \$? = $ac_status" >&5
  7504. (exit $ac_status); }; }; then
  7505. eval "$as_ac_var=yes"
  7506. else
  7507. echo "$as_me: failed program was:" >&5
  7508. cat conftest.$ac_ext >&5
  7509. eval "$as_ac_var=no"
  7510. fi
  7511. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  7512. fi
  7513. echo "$as_me:8171: result: `eval echo '${'$as_ac_var'}'`" >&5
  7514. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  7515. if test `eval echo '${'$as_ac_var'}'` = yes; then
  7516. cat >>confdefs.h <<EOF
  7517. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7518. EOF
  7519. fi
  7520. done
  7521. for ac_header in maillock.h
  7522. do
  7523. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7524. echo "$as_me:8184: checking for $ac_header" >&5
  7525. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7526. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7527. echo $ECHO_N "(cached) $ECHO_C" >&6
  7528. else
  7529. cat >conftest.$ac_ext <<_ACEOF
  7530. #line 8190 "configure"
  7531. #include "confdefs.h"
  7532. #include <$ac_header>
  7533. _ACEOF
  7534. if { (eval echo "$as_me:8194: \"$ac_cpp conftest.$ac_ext\"") >&5
  7535. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  7536. ac_status=$?
  7537. egrep -v '^ *\+' conftest.er1 >conftest.err
  7538. rm -f conftest.er1
  7539. cat conftest.err >&5
  7540. echo "$as_me:8200: \$? = $ac_status" >&5
  7541. (exit $ac_status); } >/dev/null; then
  7542. if test -s conftest.err; then
  7543. ac_cpp_err=$ac_c_preproc_warn_flag
  7544. else
  7545. ac_cpp_err=
  7546. fi
  7547. else
  7548. ac_cpp_err=yes
  7549. fi
  7550. if test -z "$ac_cpp_err"; then
  7551. eval "$as_ac_Header=yes"
  7552. else
  7553. echo "$as_me: failed program was:" >&5
  7554. cat conftest.$ac_ext >&5
  7555. eval "$as_ac_Header=no"
  7556. fi
  7557. rm -f conftest.err conftest.$ac_ext
  7558. fi
  7559. echo "$as_me:8219: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7560. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7561. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7562. cat >>confdefs.h <<EOF
  7563. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7564. EOF
  7565. fi
  7566. done
  7567. for ac_func in gethostname getdomainname dup2 \
  7568. rename closedir mkdir rmdir sysinfo \
  7569. random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
  7570. strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
  7571. utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \
  7572. __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
  7573. gai_strerror mkstemp
  7574. do
  7575. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7576. echo "$as_me:8238: checking for $ac_func" >&5
  7577. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  7578. if eval "test \"\${$as_ac_var+set}\" = set"; then
  7579. echo $ECHO_N "(cached) $ECHO_C" >&6
  7580. else
  7581. cat >conftest.$ac_ext <<_ACEOF
  7582. #line 8244 "configure"
  7583. #include "confdefs.h"
  7584. /* System header to define __stub macros and hopefully few prototypes,
  7585. which can conflict with char $ac_func (); below. */
  7586. #include <assert.h>
  7587. /* Override any gcc2 internal prototype to avoid an error. */
  7588. #ifdef __cplusplus
  7589. extern "C"
  7590. #endif
  7591. /* We use char because int might match the return type of a gcc2
  7592. builtin and then its argument prototype would still apply. */
  7593. char $ac_func ();
  7594. char (*f) ();
  7595. int
  7596. main ()
  7597. {
  7598. /* The GNU C library defines this for functions which it implements
  7599. to always fail with ENOSYS. Some functions are actually named
  7600. something starting with __ and the normal name is an alias. */
  7601. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  7602. choke me
  7603. #else
  7604. f = $ac_func;
  7605. #endif
  7606. ;
  7607. return 0;
  7608. }
  7609. _ACEOF
  7610. rm -f conftest.$ac_objext conftest$ac_exeext
  7611. if { (eval echo "$as_me:8275: \"$ac_link\"") >&5
  7612. (eval $ac_link) 2>&5
  7613. ac_status=$?
  7614. echo "$as_me:8278: \$? = $ac_status" >&5
  7615. (exit $ac_status); } &&
  7616. { ac_try='test -s conftest$ac_exeext'
  7617. { (eval echo "$as_me:8281: \"$ac_try\"") >&5
  7618. (eval $ac_try) 2>&5
  7619. ac_status=$?
  7620. echo "$as_me:8284: \$? = $ac_status" >&5
  7621. (exit $ac_status); }; }; then
  7622. eval "$as_ac_var=yes"
  7623. else
  7624. echo "$as_me: failed program was:" >&5
  7625. cat conftest.$ac_ext >&5
  7626. eval "$as_ac_var=no"
  7627. fi
  7628. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  7629. fi
  7630. echo "$as_me:8294: result: `eval echo '${'$as_ac_var'}'`" >&5
  7631. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  7632. if test `eval echo '${'$as_ac_var'}'` = yes; then
  7633. cat >>confdefs.h <<EOF
  7634. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7635. EOF
  7636. fi
  7637. done
  7638. for ac_header in sys/time.h unistd.h
  7639. do
  7640. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7641. echo "$as_me:8307: checking for $ac_header" >&5
  7642. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7643. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7644. echo $ECHO_N "(cached) $ECHO_C" >&6
  7645. else
  7646. cat >conftest.$ac_ext <<_ACEOF
  7647. #line 8313 "configure"
  7648. #include "confdefs.h"
  7649. #include <$ac_header>
  7650. _ACEOF
  7651. if { (eval echo "$as_me:8317: \"$ac_cpp conftest.$ac_ext\"") >&5
  7652. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  7653. ac_status=$?
  7654. egrep -v '^ *\+' conftest.er1 >conftest.err
  7655. rm -f conftest.er1
  7656. cat conftest.err >&5
  7657. echo "$as_me:8323: \$? = $ac_status" >&5
  7658. (exit $ac_status); } >/dev/null; then
  7659. if test -s conftest.err; then
  7660. ac_cpp_err=$ac_c_preproc_warn_flag
  7661. else
  7662. ac_cpp_err=
  7663. fi
  7664. else
  7665. ac_cpp_err=yes
  7666. fi
  7667. if test -z "$ac_cpp_err"; then
  7668. eval "$as_ac_Header=yes"
  7669. else
  7670. echo "$as_me: failed program was:" >&5
  7671. cat conftest.$ac_ext >&5
  7672. eval "$as_ac_Header=no"
  7673. fi
  7674. rm -f conftest.err conftest.$ac_ext
  7675. fi
  7676. echo "$as_me:8342: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7677. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7678. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7679. cat >>confdefs.h <<EOF
  7680. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7681. EOF
  7682. fi
  7683. done
  7684. for ac_func in alarm
  7685. do
  7686. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7687. echo "$as_me:8355: checking for $ac_func" >&5
  7688. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  7689. if eval "test \"\${$as_ac_var+set}\" = set"; then
  7690. echo $ECHO_N "(cached) $ECHO_C" >&6
  7691. else
  7692. cat >conftest.$ac_ext <<_ACEOF
  7693. #line 8361 "configure"
  7694. #include "confdefs.h"
  7695. /* System header to define __stub macros and hopefully few prototypes,
  7696. which can conflict with char $ac_func (); below. */
  7697. #include <assert.h>
  7698. /* Override any gcc2 internal prototype to avoid an error. */
  7699. #ifdef __cplusplus
  7700. extern "C"
  7701. #endif
  7702. /* We use char because int might match the return type of a gcc2
  7703. builtin and then its argument prototype would still apply. */
  7704. char $ac_func ();
  7705. char (*f) ();
  7706. int
  7707. main ()
  7708. {
  7709. /* The GNU C library defines this for functions which it implements
  7710. to always fail with ENOSYS. Some functions are actually named
  7711. something starting with __ and the normal name is an alias. */
  7712. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  7713. choke me
  7714. #else
  7715. f = $ac_func;
  7716. #endif
  7717. ;
  7718. return 0;
  7719. }
  7720. _ACEOF
  7721. rm -f conftest.$ac_objext conftest$ac_exeext
  7722. if { (eval echo "$as_me:8392: \"$ac_link\"") >&5
  7723. (eval $ac_link) 2>&5
  7724. ac_status=$?
  7725. echo "$as_me:8395: \$? = $ac_status" >&5
  7726. (exit $ac_status); } &&
  7727. { ac_try='test -s conftest$ac_exeext'
  7728. { (eval echo "$as_me:8398: \"$ac_try\"") >&5
  7729. (eval $ac_try) 2>&5
  7730. ac_status=$?
  7731. echo "$as_me:8401: \$? = $ac_status" >&5
  7732. (exit $ac_status); }; }; then
  7733. eval "$as_ac_var=yes"
  7734. else
  7735. echo "$as_me: failed program was:" >&5
  7736. cat conftest.$ac_ext >&5
  7737. eval "$as_ac_var=no"
  7738. fi
  7739. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  7740. fi
  7741. echo "$as_me:8411: result: `eval echo '${'$as_ac_var'}'`" >&5
  7742. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  7743. if test `eval echo '${'$as_ac_var'}'` = yes; then
  7744. cat >>confdefs.h <<EOF
  7745. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7746. EOF
  7747. fi
  7748. done
  7749. echo "$as_me:8421: checking for working mktime" >&5
  7750. echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
  7751. if test "${ac_cv_func_working_mktime+set}" = set; then
  7752. echo $ECHO_N "(cached) $ECHO_C" >&6
  7753. else
  7754. if test "$cross_compiling" = yes; then
  7755. ac_cv_func_working_mktime=no
  7756. else
  7757. cat >conftest.$ac_ext <<_ACEOF
  7758. #line 8430 "configure"
  7759. #include "confdefs.h"
  7760. /* Test program from Paul Eggert and Tony Leneis. */
  7761. #if TIME_WITH_SYS_TIME
  7762. # include <sys/time.h>
  7763. # include <time.h>
  7764. #else
  7765. # if HAVE_SYS_TIME_H
  7766. # include <sys/time.h>
  7767. # else
  7768. # include <time.h>
  7769. # endif
  7770. #endif
  7771. #if HAVE_UNISTD_H
  7772. # include <unistd.h>
  7773. #endif
  7774. #if !HAVE_ALARM
  7775. # define alarm(X) /* empty */
  7776. #endif
  7777. /* Work around redefinition to rpl_putenv by other config tests. */
  7778. #undef putenv
  7779. static time_t time_t_max;
  7780. /* Values we'll use to set the TZ environment variable. */
  7781. static const char *const tz_strings[] = {
  7782. (const char *) 0, "TZ=GMT0", "TZ=JST-9",
  7783. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  7784. };
  7785. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  7786. /* Fail if mktime fails to convert a date in the spring-forward gap.
  7787. Based on a problem report from Andreas Jaeger. */
  7788. static void
  7789. spring_forward_gap ()
  7790. {
  7791. /* glibc (up to about 1998-10-07) failed this test. */
  7792. struct tm tm;
  7793. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  7794. instead of "TZ=America/Vancouver" in order to detect the bug even
  7795. on systems that don't support the Olson extension, or don't have the
  7796. full zoneinfo tables installed. */
  7797. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  7798. tm.tm_year = 98;
  7799. tm.tm_mon = 3;
  7800. tm.tm_mday = 5;
  7801. tm.tm_hour = 2;
  7802. tm.tm_min = 0;
  7803. tm.tm_sec = 0;
  7804. tm.tm_isdst = -1;
  7805. if (mktime (&tm) == (time_t)-1)
  7806. exit (1);
  7807. }
  7808. static void
  7809. mktime_test (now)
  7810. time_t now;
  7811. {
  7812. struct tm *lt;
  7813. if ((lt = localtime (&now)) && mktime (lt) != now)
  7814. exit (1);
  7815. now = time_t_max - now;
  7816. if ((lt = localtime (&now)) && mktime (lt) != now)
  7817. exit (1);
  7818. }
  7819. static void
  7820. irix_6_4_bug ()
  7821. {
  7822. /* Based on code from Ariel Faigon. */
  7823. struct tm tm;
  7824. tm.tm_year = 96;
  7825. tm.tm_mon = 3;
  7826. tm.tm_mday = 0;
  7827. tm.tm_hour = 0;
  7828. tm.tm_min = 0;
  7829. tm.tm_sec = 0;
  7830. tm.tm_isdst = -1;
  7831. mktime (&tm);
  7832. if (tm.tm_mon != 2 || tm.tm_mday != 31)
  7833. exit (1);
  7834. }
  7835. static void
  7836. bigtime_test (j)
  7837. int j;
  7838. {
  7839. struct tm tm;
  7840. time_t now;
  7841. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  7842. now = mktime (&tm);
  7843. if (now != (time_t) -1)
  7844. {
  7845. struct tm *lt = localtime (&now);
  7846. if (! (lt
  7847. && lt->tm_year == tm.tm_year
  7848. && lt->tm_mon == tm.tm_mon
  7849. && lt->tm_mday == tm.tm_mday
  7850. && lt->tm_hour == tm.tm_hour
  7851. && lt->tm_min == tm.tm_min
  7852. && lt->tm_sec == tm.tm_sec
  7853. && lt->tm_yday == tm.tm_yday
  7854. && lt->tm_wday == tm.tm_wday
  7855. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  7856. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  7857. exit (1);
  7858. }
  7859. }
  7860. int
  7861. main ()
  7862. {
  7863. time_t t, delta;
  7864. int i, j;
  7865. /* This test makes some buggy mktime implementations loop.
  7866. Give up after 60 seconds; a mktime slower than that
  7867. isn't worth using anyway. */
  7868. alarm (60);
  7869. for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
  7870. continue;
  7871. time_t_max--;
  7872. delta = time_t_max / 997; /* a suitable prime number */
  7873. for (i = 0; i < N_STRINGS; i++)
  7874. {
  7875. if (tz_strings[i])
  7876. putenv (tz_strings[i]);
  7877. for (t = 0; t <= time_t_max - delta; t += delta)
  7878. mktime_test (t);
  7879. mktime_test ((time_t) 60 * 60);
  7880. mktime_test ((time_t) 60 * 60 * 24);
  7881. for (j = 1; 0 < j; j *= 2)
  7882. bigtime_test (j);
  7883. bigtime_test (j - 1);
  7884. }
  7885. irix_6_4_bug ();
  7886. spring_forward_gap ();
  7887. exit (0);
  7888. }
  7889. _ACEOF
  7890. rm -f conftest$ac_exeext
  7891. if { (eval echo "$as_me:8579: \"$ac_link\"") >&5
  7892. (eval $ac_link) 2>&5
  7893. ac_status=$?
  7894. echo "$as_me:8582: \$? = $ac_status" >&5
  7895. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7896. { (eval echo "$as_me:8584: \"$ac_try\"") >&5
  7897. (eval $ac_try) 2>&5
  7898. ac_status=$?
  7899. echo "$as_me:8587: \$? = $ac_status" >&5
  7900. (exit $ac_status); }; }; then
  7901. ac_cv_func_working_mktime=yes
  7902. else
  7903. echo "$as_me: program exited with status $ac_status" >&5
  7904. echo "$as_me: failed program was:" >&5
  7905. cat conftest.$ac_ext >&5
  7906. ac_cv_func_working_mktime=no
  7907. fi
  7908. rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7909. fi
  7910. fi
  7911. echo "$as_me:8599: result: $ac_cv_func_working_mktime" >&5
  7912. echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
  7913. if test $ac_cv_func_working_mktime = no; then
  7914. LIBOBJS="$LIBOBJS mktime.$ac_objext"
  7915. fi
  7916. if test "$ac_cv_func_working_mktime" = no; then
  7917. cat >>confdefs.h <<\EOF
  7918. #define BROKEN_MKTIME 1
  7919. EOF
  7920. fi
  7921. ac_have_func=no # yes means we've found a way to get the load average.
  7922. ac_save_LIBS=$LIBS
  7923. # Check for getloadavg, but be sure not to touch the cache variable.
  7924. (echo "$as_me:8617: checking for getloadavg" >&5
  7925. echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
  7926. if test "${ac_cv_func_getloadavg+set}" = set; then
  7927. echo $ECHO_N "(cached) $ECHO_C" >&6
  7928. else
  7929. cat >conftest.$ac_ext <<_ACEOF
  7930. #line 8623 "configure"
  7931. #include "confdefs.h"
  7932. /* System header to define __stub macros and hopefully few prototypes,
  7933. which can conflict with char getloadavg (); below. */
  7934. #include <assert.h>
  7935. /* Override any gcc2 internal prototype to avoid an error. */
  7936. #ifdef __cplusplus
  7937. extern "C"
  7938. #endif
  7939. /* We use char because int might match the return type of a gcc2
  7940. builtin and then its argument prototype would still apply. */
  7941. char getloadavg ();
  7942. char (*f) ();
  7943. int
  7944. main ()
  7945. {
  7946. /* The GNU C library defines this for functions which it implements
  7947. to always fail with ENOSYS. Some functions are actually named
  7948. something starting with __ and the normal name is an alias. */
  7949. #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
  7950. choke me
  7951. #else
  7952. f = getloadavg;
  7953. #endif
  7954. ;
  7955. return 0;
  7956. }
  7957. _ACEOF
  7958. rm -f conftest.$ac_objext conftest$ac_exeext
  7959. if { (eval echo "$as_me:8654: \"$ac_link\"") >&5
  7960. (eval $ac_link) 2>&5
  7961. ac_status=$?
  7962. echo "$as_me:8657: \$? = $ac_status" >&5
  7963. (exit $ac_status); } &&
  7964. { ac_try='test -s conftest$ac_exeext'
  7965. { (eval echo "$as_me:8660: \"$ac_try\"") >&5
  7966. (eval $ac_try) 2>&5
  7967. ac_status=$?
  7968. echo "$as_me:8663: \$? = $ac_status" >&5
  7969. (exit $ac_status); }; }; then
  7970. ac_cv_func_getloadavg=yes
  7971. else
  7972. echo "$as_me: failed program was:" >&5
  7973. cat conftest.$ac_ext >&5
  7974. ac_cv_func_getloadavg=no
  7975. fi
  7976. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  7977. fi
  7978. echo "$as_me:8673: result: $ac_cv_func_getloadavg" >&5
  7979. echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
  7980. if test $ac_cv_func_getloadavg = yes; then
  7981. exit 0
  7982. else
  7983. exit 1
  7984. fi
  7985. ) && ac_have_func=yes
  7986. # On HPUX9, an unprivileged user can get load averages through this function.
  7987. for ac_func in pstat_getdynamic
  7988. do
  7989. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7990. echo "$as_me:8687: checking for $ac_func" >&5
  7991. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  7992. if eval "test \"\${$as_ac_var+set}\" = set"; then
  7993. echo $ECHO_N "(cached) $ECHO_C" >&6
  7994. else
  7995. cat >conftest.$ac_ext <<_ACEOF
  7996. #line 8693 "configure"
  7997. #include "confdefs.h"
  7998. /* System header to define __stub macros and hopefully few prototypes,
  7999. which can conflict with char $ac_func (); below. */
  8000. #include <assert.h>
  8001. /* Override any gcc2 internal prototype to avoid an error. */
  8002. #ifdef __cplusplus
  8003. extern "C"
  8004. #endif
  8005. /* We use char because int might match the return type of a gcc2
  8006. builtin and then its argument prototype would still apply. */
  8007. char $ac_func ();
  8008. char (*f) ();
  8009. int
  8010. main ()
  8011. {
  8012. /* The GNU C library defines this for functions which it implements
  8013. to always fail with ENOSYS. Some functions are actually named
  8014. something starting with __ and the normal name is an alias. */
  8015. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  8016. choke me
  8017. #else
  8018. f = $ac_func;
  8019. #endif
  8020. ;
  8021. return 0;
  8022. }
  8023. _ACEOF
  8024. rm -f conftest.$ac_objext conftest$ac_exeext
  8025. if { (eval echo "$as_me:8724: \"$ac_link\"") >&5
  8026. (eval $ac_link) 2>&5
  8027. ac_status=$?
  8028. echo "$as_me:8727: \$? = $ac_status" >&5
  8029. (exit $ac_status); } &&
  8030. { ac_try='test -s conftest$ac_exeext'
  8031. { (eval echo "$as_me:8730: \"$ac_try\"") >&5
  8032. (eval $ac_try) 2>&5
  8033. ac_status=$?
  8034. echo "$as_me:8733: \$? = $ac_status" >&5
  8035. (exit $ac_status); }; }; then
  8036. eval "$as_ac_var=yes"
  8037. else
  8038. echo "$as_me: failed program was:" >&5
  8039. cat conftest.$ac_ext >&5
  8040. eval "$as_ac_var=no"
  8041. fi
  8042. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  8043. fi
  8044. echo "$as_me:8743: result: `eval echo '${'$as_ac_var'}'`" >&5
  8045. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  8046. if test `eval echo '${'$as_ac_var'}'` = yes; then
  8047. cat >>confdefs.h <<EOF
  8048. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8049. EOF
  8050. fi
  8051. done
  8052. # Solaris has libkstat which does not require root.
  8053. echo "$as_me:8755: checking for kstat_open in -lkstat" >&5
  8054. echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
  8055. if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
  8056. echo $ECHO_N "(cached) $ECHO_C" >&6
  8057. else
  8058. ac_check_lib_save_LIBS=$LIBS
  8059. LIBS="-lkstat $LIBS"
  8060. cat >conftest.$ac_ext <<_ACEOF
  8061. #line 8763 "configure"
  8062. #include "confdefs.h"
  8063. /* Override any gcc2 internal prototype to avoid an error. */
  8064. #ifdef __cplusplus
  8065. extern "C"
  8066. #endif
  8067. /* We use char because int might match the return type of a gcc2
  8068. builtin and then its argument prototype would still apply. */
  8069. char kstat_open ();
  8070. int
  8071. main ()
  8072. {
  8073. kstat_open ();
  8074. ;
  8075. return 0;
  8076. }
  8077. _ACEOF
  8078. rm -f conftest.$ac_objext conftest$ac_exeext
  8079. if { (eval echo "$as_me:8782: \"$ac_link\"") >&5
  8080. (eval $ac_link) 2>&5
  8081. ac_status=$?
  8082. echo "$as_me:8785: \$? = $ac_status" >&5
  8083. (exit $ac_status); } &&
  8084. { ac_try='test -s conftest$ac_exeext'
  8085. { (eval echo "$as_me:8788: \"$ac_try\"") >&5
  8086. (eval $ac_try) 2>&5
  8087. ac_status=$?
  8088. echo "$as_me:8791: \$? = $ac_status" >&5
  8089. (exit $ac_status); }; }; then
  8090. ac_cv_lib_kstat_kstat_open=yes
  8091. else
  8092. echo "$as_me: failed program was:" >&5
  8093. cat conftest.$ac_ext >&5
  8094. ac_cv_lib_kstat_kstat_open=no
  8095. fi
  8096. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  8097. LIBS=$ac_check_lib_save_LIBS
  8098. fi
  8099. echo "$as_me:8802: result: $ac_cv_lib_kstat_kstat_open" >&5
  8100. echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
  8101. if test $ac_cv_lib_kstat_kstat_open = yes; then
  8102. cat >>confdefs.h <<EOF
  8103. #define HAVE_LIBKSTAT 1
  8104. EOF
  8105. LIBS="-lkstat $LIBS"
  8106. fi
  8107. test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
  8108. # Some systems with -lutil have (and need) -lkvm as well, some do not.
  8109. # On Solaris, -lkvm requires nlist from -lelf, so check that first
  8110. # to get the right answer into the cache.
  8111. # For kstat on solaris, we need libelf to force the definition of SVR4 below.
  8112. if test $ac_have_func = no; then
  8113. echo "$as_me:8820: checking for elf_begin in -lelf" >&5
  8114. echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
  8115. if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
  8116. echo $ECHO_N "(cached) $ECHO_C" >&6
  8117. else
  8118. ac_check_lib_save_LIBS=$LIBS
  8119. LIBS="-lelf $LIBS"
  8120. cat >conftest.$ac_ext <<_ACEOF
  8121. #line 8828 "configure"
  8122. #include "confdefs.h"
  8123. /* Override any gcc2 internal prototype to avoid an error. */
  8124. #ifdef __cplusplus
  8125. extern "C"
  8126. #endif
  8127. /* We use char because int might match the return type of a gcc2
  8128. builtin and then its argument prototype would still apply. */
  8129. char elf_begin ();
  8130. int
  8131. main ()
  8132. {
  8133. elf_begin ();
  8134. ;
  8135. return 0;
  8136. }
  8137. _ACEOF
  8138. rm -f conftest.$ac_objext conftest$ac_exeext
  8139. if { (eval echo "$as_me:8847: \"$ac_link\"") >&5
  8140. (eval $ac_link) 2>&5
  8141. ac_status=$?
  8142. echo "$as_me:8850: \$? = $ac_status" >&5
  8143. (exit $ac_status); } &&
  8144. { ac_try='test -s conftest$ac_exeext'
  8145. { (eval echo "$as_me:8853: \"$ac_try\"") >&5
  8146. (eval $ac_try) 2>&5
  8147. ac_status=$?
  8148. echo "$as_me:8856: \$? = $ac_status" >&5
  8149. (exit $ac_status); }; }; then
  8150. ac_cv_lib_elf_elf_begin=yes
  8151. else
  8152. echo "$as_me: failed program was:" >&5
  8153. cat conftest.$ac_ext >&5
  8154. ac_cv_lib_elf_elf_begin=no
  8155. fi
  8156. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  8157. LIBS=$ac_check_lib_save_LIBS
  8158. fi
  8159. echo "$as_me:8867: result: $ac_cv_lib_elf_elf_begin" >&5
  8160. echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
  8161. if test $ac_cv_lib_elf_elf_begin = yes; then
  8162. LIBS="-lelf $LIBS"
  8163. fi
  8164. fi
  8165. if test $ac_have_func = no; then
  8166. echo "$as_me:8875: checking for kvm_open in -lkvm" >&5
  8167. echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
  8168. if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
  8169. echo $ECHO_N "(cached) $ECHO_C" >&6
  8170. else
  8171. ac_check_lib_save_LIBS=$LIBS
  8172. LIBS="-lkvm $LIBS"
  8173. cat >conftest.$ac_ext <<_ACEOF
  8174. #line 8883 "configure"
  8175. #include "confdefs.h"
  8176. /* Override any gcc2 internal prototype to avoid an error. */
  8177. #ifdef __cplusplus
  8178. extern "C"
  8179. #endif
  8180. /* We use char because int might match the return type of a gcc2
  8181. builtin and then its argument prototype would still apply. */
  8182. char kvm_open ();
  8183. int
  8184. main ()
  8185. {
  8186. kvm_open ();
  8187. ;
  8188. return 0;
  8189. }
  8190. _ACEOF
  8191. rm -f conftest.$ac_objext conftest$ac_exeext
  8192. if { (eval echo "$as_me:8902: \"$ac_link\"") >&5
  8193. (eval $ac_link) 2>&5
  8194. ac_status=$?
  8195. echo "$as_me:8905: \$? = $ac_status" >&5
  8196. (exit $ac_status); } &&
  8197. { ac_try='test -s conftest$ac_exeext'
  8198. { (eval echo "$as_me:8908: \"$ac_try\"") >&5
  8199. (eval $ac_try) 2>&5
  8200. ac_status=$?
  8201. echo "$as_me:8911: \$? = $ac_status" >&5
  8202. (exit $ac_status); }; }; then
  8203. ac_cv_lib_kvm_kvm_open=yes
  8204. else
  8205. echo "$as_me: failed program was:" >&5
  8206. cat conftest.$ac_ext >&5
  8207. ac_cv_lib_kvm_kvm_open=no
  8208. fi
  8209. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  8210. LIBS=$ac_check_lib_save_LIBS
  8211. fi
  8212. echo "$as_me:8922: result: $ac_cv_lib_kvm_kvm_open" >&5
  8213. echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
  8214. if test $ac_cv_lib_kvm_kvm_open = yes; then
  8215. LIBS="-lkvm $LIBS"
  8216. fi
  8217. # Check for the 4.4BSD definition of getloadavg.
  8218. echo "$as_me:8929: checking for getloadavg in -lutil" >&5
  8219. echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
  8220. if test "${ac_cv_lib_util_getloadavg+set}" = set; then
  8221. echo $ECHO_N "(cached) $ECHO_C" >&6
  8222. else
  8223. ac_check_lib_save_LIBS=$LIBS
  8224. LIBS="-lutil $LIBS"
  8225. cat >conftest.$ac_ext <<_ACEOF
  8226. #line 8937 "configure"
  8227. #include "confdefs.h"
  8228. /* Override any gcc2 internal prototype to avoid an error. */
  8229. #ifdef __cplusplus
  8230. extern "C"
  8231. #endif
  8232. /* We use char because int might match the return type of a gcc2
  8233. builtin and then its argument prototype would still apply. */
  8234. char getloadavg ();
  8235. int
  8236. main ()
  8237. {
  8238. getloadavg ();
  8239. ;
  8240. return 0;
  8241. }
  8242. _ACEOF
  8243. rm -f conftest.$ac_objext conftest$ac_exeext
  8244. if { (eval echo "$as_me:8956: \"$ac_link\"") >&5
  8245. (eval $ac_link) 2>&5
  8246. ac_status=$?
  8247. echo "$as_me:8959: \$? = $ac_status" >&5
  8248. (exit $ac_status); } &&
  8249. { ac_try='test -s conftest$ac_exeext'
  8250. { (eval echo "$as_me:8962: \"$ac_try\"") >&5
  8251. (eval $ac_try) 2>&5
  8252. ac_status=$?
  8253. echo "$as_me:8965: \$? = $ac_status" >&5
  8254. (exit $ac_status); }; }; then
  8255. ac_cv_lib_util_getloadavg=yes
  8256. else
  8257. echo "$as_me: failed program was:" >&5
  8258. cat conftest.$ac_ext >&5
  8259. ac_cv_lib_util_getloadavg=no
  8260. fi
  8261. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  8262. LIBS=$ac_check_lib_save_LIBS
  8263. fi
  8264. echo "$as_me:8976: result: $ac_cv_lib_util_getloadavg" >&5
  8265. echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
  8266. if test $ac_cv_lib_util_getloadavg = yes; then
  8267. LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
  8268. fi
  8269. fi
  8270. if test $ac_have_func = no; then
  8271. # There is a commonly available library for RS/6000 AIX.
  8272. # Since it is not a standard part of AIX, it might be installed locally.
  8273. ac_getloadavg_LIBS=$LIBS
  8274. LIBS="-L/usr/local/lib $LIBS"
  8275. echo "$as_me:8989: checking for getloadavg in -lgetloadavg" >&5
  8276. echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
  8277. if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
  8278. echo $ECHO_N "(cached) $ECHO_C" >&6
  8279. else
  8280. ac_check_lib_save_LIBS=$LIBS
  8281. LIBS="-lgetloadavg $LIBS"
  8282. cat >conftest.$ac_ext <<_ACEOF
  8283. #line 8997 "configure"
  8284. #include "confdefs.h"
  8285. /* Override any gcc2 internal prototype to avoid an error. */
  8286. #ifdef __cplusplus
  8287. extern "C"
  8288. #endif
  8289. /* We use char because int might match the return type of a gcc2
  8290. builtin and then its argument prototype would still apply. */
  8291. char getloadavg ();
  8292. int
  8293. main ()
  8294. {
  8295. getloadavg ();
  8296. ;
  8297. return 0;
  8298. }
  8299. _ACEOF
  8300. rm -f conftest.$ac_objext conftest$ac_exeext
  8301. if { (eval echo "$as_me:9016: \"$ac_link\"") >&5
  8302. (eval $ac_link) 2>&5
  8303. ac_status=$?
  8304. echo "$as_me:9019: \$? = $ac_status" >&5
  8305. (exit $ac_status); } &&
  8306. { ac_try='test -s conftest$ac_exeext'
  8307. { (eval echo "$as_me:9022: \"$ac_try\"") >&5
  8308. (eval $ac_try) 2>&5
  8309. ac_status=$?
  8310. echo "$as_me:9025: \$? = $ac_status" >&5
  8311. (exit $ac_status); }; }; then
  8312. ac_cv_lib_getloadavg_getloadavg=yes
  8313. else
  8314. echo "$as_me: failed program was:" >&5
  8315. cat conftest.$ac_ext >&5
  8316. ac_cv_lib_getloadavg_getloadavg=no
  8317. fi
  8318. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  8319. LIBS=$ac_check_lib_save_LIBS
  8320. fi
  8321. echo "$as_me:9036: result: $ac_cv_lib_getloadavg_getloadavg" >&5
  8322. echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
  8323. if test $ac_cv_lib_getloadavg_getloadavg = yes; then
  8324. LIBS="-lgetloadavg $LIBS"
  8325. else
  8326. LIBS=$ac_getloadavg_LIBS
  8327. fi
  8328. fi
  8329. # Make sure it is really in the library, if we think we found it,
  8330. # otherwise set up the replacement function.
  8331. for ac_func in getloadavg
  8332. do
  8333. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8334. echo "$as_me:9052: checking for $ac_func" >&5
  8335. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  8336. if eval "test \"\${$as_ac_var+set}\" = set"; then
  8337. echo $ECHO_N "(cached) $ECHO_C" >&6
  8338. else
  8339. cat >conftest.$ac_ext <<_ACEOF
  8340. #line 9058 "configure"
  8341. #include "confdefs.h"
  8342. /* System header to define __stub macros and hopefully few prototypes,
  8343. which can conflict with char $ac_func (); below. */
  8344. #include <assert.h>
  8345. /* Override any gcc2 internal prototype to avoid an error. */
  8346. #ifdef __cplusplus
  8347. extern "C"
  8348. #endif
  8349. /* We use char because int might match the return type of a gcc2
  8350. builtin and then its argument prototype would still apply. */
  8351. char $ac_func ();
  8352. char (*f) ();
  8353. int
  8354. main ()
  8355. {
  8356. /* The GNU C library defines this for functions which it implements
  8357. to always fail with ENOSYS. Some functions are actually named
  8358. something starting with __ and the normal name is an alias. */
  8359. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  8360. choke me
  8361. #else
  8362. f = $ac_func;
  8363. #endif
  8364. ;
  8365. return 0;
  8366. }
  8367. _ACEOF
  8368. rm -f conftest.$ac_objext conftest$ac_exeext
  8369. if { (eval echo "$as_me:9089: \"$ac_link\"") >&5
  8370. (eval $ac_link) 2>&5
  8371. ac_status=$?
  8372. echo "$as_me:9092: \$? = $ac_status" >&5
  8373. (exit $ac_status); } &&
  8374. { ac_try='test -s conftest$ac_exeext'
  8375. { (eval echo "$as_me:9095: \"$ac_try\"") >&5
  8376. (eval $ac_try) 2>&5
  8377. ac_status=$?
  8378. echo "$as_me:9098: \$? = $ac_status" >&5
  8379. (exit $ac_status); }; }; then
  8380. eval "$as_ac_var=yes"
  8381. else
  8382. echo "$as_me: failed program was:" >&5
  8383. cat conftest.$ac_ext >&5
  8384. eval "$as_ac_var=no"
  8385. fi
  8386. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  8387. fi
  8388. echo "$as_me:9108: result: `eval echo '${'$as_ac_var'}'`" >&5
  8389. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  8390. if test `eval echo '${'$as_ac_var'}'` = yes; then
  8391. cat >>confdefs.h <<EOF
  8392. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8393. EOF
  8394. else
  8395. LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
  8396. cat >>confdefs.h <<\EOF
  8397. #define C_GETLOADAVG 1
  8398. EOF
  8399. # Figure out what our getloadavg.c needs.
  8400. ac_have_func=no
  8401. echo "$as_me:9124: checking for sys/dg_sys_info.h" >&5
  8402. echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
  8403. if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
  8404. echo $ECHO_N "(cached) $ECHO_C" >&6
  8405. else
  8406. cat >conftest.$ac_ext <<_ACEOF
  8407. #line 9130 "configure"
  8408. #include "confdefs.h"
  8409. #include <sys/dg_sys_info.h>
  8410. _ACEOF
  8411. if { (eval echo "$as_me:9134: \"$ac_cpp conftest.$ac_ext\"") >&5
  8412. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8413. ac_status=$?
  8414. egrep -v '^ *\+' conftest.er1 >conftest.err
  8415. rm -f conftest.er1
  8416. cat conftest.err >&5
  8417. echo "$as_me:9140: \$? = $ac_status" >&5
  8418. (exit $ac_status); } >/dev/null; then
  8419. if test -s conftest.err; then
  8420. ac_cpp_err=$ac_c_preproc_warn_flag
  8421. else
  8422. ac_cpp_err=
  8423. fi
  8424. else
  8425. ac_cpp_err=yes
  8426. fi
  8427. if test -z "$ac_cpp_err"; then
  8428. ac_cv_header_sys_dg_sys_info_h=yes
  8429. else
  8430. echo "$as_me: failed program was:" >&5
  8431. cat conftest.$ac_ext >&5
  8432. ac_cv_header_sys_dg_sys_info_h=no
  8433. fi
  8434. rm -f conftest.err conftest.$ac_ext
  8435. fi
  8436. echo "$as_me:9159: result: $ac_cv_header_sys_dg_sys_info_h" >&5
  8437. echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
  8438. if test $ac_cv_header_sys_dg_sys_info_h = yes; then
  8439. ac_have_func=yes
  8440. cat >>confdefs.h <<\EOF
  8441. #define DGUX 1
  8442. EOF
  8443. echo "$as_me:9168: checking for dg_sys_info in -ldgc" >&5
  8444. echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
  8445. if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
  8446. echo $ECHO_N "(cached) $ECHO_C" >&6
  8447. else
  8448. ac_check_lib_save_LIBS=$LIBS
  8449. LIBS="-ldgc $LIBS"
  8450. cat >conftest.$ac_ext <<_ACEOF
  8451. #line 9176 "configure"
  8452. #include "confdefs.h"
  8453. /* Override any gcc2 internal prototype to avoid an error. */
  8454. #ifdef __cplusplus
  8455. extern "C"
  8456. #endif
  8457. /* We use char because int might match the return type of a gcc2
  8458. builtin and then its argument prototype would still apply. */
  8459. char dg_sys_info ();
  8460. int
  8461. main ()
  8462. {
  8463. dg_sys_info ();
  8464. ;
  8465. return 0;
  8466. }
  8467. _ACEOF
  8468. rm -f conftest.$ac_objext conftest$ac_exeext
  8469. if { (eval echo "$as_me:9195: \"$ac_link\"") >&5
  8470. (eval $ac_link) 2>&5
  8471. ac_status=$?
  8472. echo "$as_me:9198: \$? = $ac_status" >&5
  8473. (exit $ac_status); } &&
  8474. { ac_try='test -s conftest$ac_exeext'
  8475. { (eval echo "$as_me:9201: \"$ac_try\"") >&5
  8476. (eval $ac_try) 2>&5
  8477. ac_status=$?
  8478. echo "$as_me:9204: \$? = $ac_status" >&5
  8479. (exit $ac_status); }; }; then
  8480. ac_cv_lib_dgc_dg_sys_info=yes
  8481. else
  8482. echo "$as_me: failed program was:" >&5
  8483. cat conftest.$ac_ext >&5
  8484. ac_cv_lib_dgc_dg_sys_info=no
  8485. fi
  8486. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  8487. LIBS=$ac_check_lib_save_LIBS
  8488. fi
  8489. echo "$as_me:9215: result: $ac_cv_lib_dgc_dg_sys_info" >&5
  8490. echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
  8491. if test $ac_cv_lib_dgc_dg_sys_info = yes; then
  8492. cat >>confdefs.h <<EOF
  8493. #define HAVE_LIBDGC 1
  8494. EOF
  8495. LIBS="-ldgc $LIBS"
  8496. fi
  8497. fi
  8498. echo "$as_me:9228: checking for locale.h" >&5
  8499. echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
  8500. if test "${ac_cv_header_locale_h+set}" = set; then
  8501. echo $ECHO_N "(cached) $ECHO_C" >&6
  8502. else
  8503. cat >conftest.$ac_ext <<_ACEOF
  8504. #line 9234 "configure"
  8505. #include "confdefs.h"
  8506. #include <locale.h>
  8507. _ACEOF
  8508. if { (eval echo "$as_me:9238: \"$ac_cpp conftest.$ac_ext\"") >&5
  8509. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8510. ac_status=$?
  8511. egrep -v '^ *\+' conftest.er1 >conftest.err
  8512. rm -f conftest.er1
  8513. cat conftest.err >&5
  8514. echo "$as_me:9244: \$? = $ac_status" >&5
  8515. (exit $ac_status); } >/dev/null; then
  8516. if test -s conftest.err; then
  8517. ac_cpp_err=$ac_c_preproc_warn_flag
  8518. else
  8519. ac_cpp_err=
  8520. fi
  8521. else
  8522. ac_cpp_err=yes
  8523. fi
  8524. if test -z "$ac_cpp_err"; then
  8525. ac_cv_header_locale_h=yes
  8526. else
  8527. echo "$as_me: failed program was:" >&5
  8528. cat conftest.$ac_ext >&5
  8529. ac_cv_header_locale_h=no
  8530. fi
  8531. rm -f conftest.err conftest.$ac_ext
  8532. fi
  8533. echo "$as_me:9263: result: $ac_cv_header_locale_h" >&5
  8534. echo "${ECHO_T}$ac_cv_header_locale_h" >&6
  8535. for ac_func in setlocale
  8536. do
  8537. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8538. echo "$as_me:9269: checking for $ac_func" >&5
  8539. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  8540. if eval "test \"\${$as_ac_var+set}\" = set"; then
  8541. echo $ECHO_N "(cached) $ECHO_C" >&6
  8542. else
  8543. cat >conftest.$ac_ext <<_ACEOF
  8544. #line 9275 "configure"
  8545. #include "confdefs.h"
  8546. /* System header to define __stub macros and hopefully few prototypes,
  8547. which can conflict with char $ac_func (); below. */
  8548. #include <assert.h>
  8549. /* Override any gcc2 internal prototype to avoid an error. */
  8550. #ifdef __cplusplus
  8551. extern "C"
  8552. #endif
  8553. /* We use char because int might match the return type of a gcc2
  8554. builtin and then its argument prototype would still apply. */
  8555. char $ac_func ();
  8556. char (*f) ();
  8557. int
  8558. main ()
  8559. {
  8560. /* The GNU C library defines this for functions which it implements
  8561. to always fail with ENOSYS. Some functions are actually named
  8562. something starting with __ and the normal name is an alias. */
  8563. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  8564. choke me
  8565. #else
  8566. f = $ac_func;
  8567. #endif
  8568. ;
  8569. return 0;
  8570. }
  8571. _ACEOF
  8572. rm -f conftest.$ac_objext conftest$ac_exeext
  8573. if { (eval echo "$as_me:9306: \"$ac_link\"") >&5
  8574. (eval $ac_link) 2>&5
  8575. ac_status=$?
  8576. echo "$as_me:9309: \$? = $ac_status" >&5
  8577. (exit $ac_status); } &&
  8578. { ac_try='test -s conftest$ac_exeext'
  8579. { (eval echo "$as_me:9312: \"$ac_try\"") >&5
  8580. (eval $ac_try) 2>&5
  8581. ac_status=$?
  8582. echo "$as_me:9315: \$? = $ac_status" >&5
  8583. (exit $ac_status); }; }; then
  8584. eval "$as_ac_var=yes"
  8585. else
  8586. echo "$as_me: failed program was:" >&5
  8587. cat conftest.$ac_ext >&5
  8588. eval "$as_ac_var=no"
  8589. fi
  8590. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  8591. fi
  8592. echo "$as_me:9325: result: `eval echo '${'$as_ac_var'}'`" >&5
  8593. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  8594. if test `eval echo '${'$as_ac_var'}'` = yes; then
  8595. cat >>confdefs.h <<EOF
  8596. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8597. EOF
  8598. fi
  8599. done
  8600. # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
  8601. # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
  8602. # Irix 4.0.5F has the header but not the library.
  8603. if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
  8604. ac_have_func=yes
  8605. cat >>confdefs.h <<\EOF
  8606. #define SVR4 1
  8607. EOF
  8608. fi
  8609. if test $ac_have_func = no; then
  8610. echo "$as_me:9348: checking for inq_stats/cpustats.h" >&5
  8611. echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
  8612. if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
  8613. echo $ECHO_N "(cached) $ECHO_C" >&6
  8614. else
  8615. cat >conftest.$ac_ext <<_ACEOF
  8616. #line 9354 "configure"
  8617. #include "confdefs.h"
  8618. #include <inq_stats/cpustats.h>
  8619. _ACEOF
  8620. if { (eval echo "$as_me:9358: \"$ac_cpp conftest.$ac_ext\"") >&5
  8621. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8622. ac_status=$?
  8623. egrep -v '^ *\+' conftest.er1 >conftest.err
  8624. rm -f conftest.er1
  8625. cat conftest.err >&5
  8626. echo "$as_me:9364: \$? = $ac_status" >&5
  8627. (exit $ac_status); } >/dev/null; then
  8628. if test -s conftest.err; then
  8629. ac_cpp_err=$ac_c_preproc_warn_flag
  8630. else
  8631. ac_cpp_err=
  8632. fi
  8633. else
  8634. ac_cpp_err=yes
  8635. fi
  8636. if test -z "$ac_cpp_err"; then
  8637. ac_cv_header_inq_stats_cpustats_h=yes
  8638. else
  8639. echo "$as_me: failed program was:" >&5
  8640. cat conftest.$ac_ext >&5
  8641. ac_cv_header_inq_stats_cpustats_h=no
  8642. fi
  8643. rm -f conftest.err conftest.$ac_ext
  8644. fi
  8645. echo "$as_me:9383: result: $ac_cv_header_inq_stats_cpustats_h" >&5
  8646. echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
  8647. if test $ac_cv_header_inq_stats_cpustats_h = yes; then
  8648. ac_have_func=yes
  8649. cat >>confdefs.h <<\EOF
  8650. #define UMAX 1
  8651. EOF
  8652. cat >>confdefs.h <<\EOF
  8653. #define UMAX4_3 1
  8654. EOF
  8655. fi
  8656. fi
  8657. if test $ac_have_func = no; then
  8658. echo "$as_me:9401: checking for sys/cpustats.h" >&5
  8659. echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
  8660. if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
  8661. echo $ECHO_N "(cached) $ECHO_C" >&6
  8662. else
  8663. cat >conftest.$ac_ext <<_ACEOF
  8664. #line 9407 "configure"
  8665. #include "confdefs.h"
  8666. #include <sys/cpustats.h>
  8667. _ACEOF
  8668. if { (eval echo "$as_me:9411: \"$ac_cpp conftest.$ac_ext\"") >&5
  8669. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8670. ac_status=$?
  8671. egrep -v '^ *\+' conftest.er1 >conftest.err
  8672. rm -f conftest.er1
  8673. cat conftest.err >&5
  8674. echo "$as_me:9417: \$? = $ac_status" >&5
  8675. (exit $ac_status); } >/dev/null; then
  8676. if test -s conftest.err; then
  8677. ac_cpp_err=$ac_c_preproc_warn_flag
  8678. else
  8679. ac_cpp_err=
  8680. fi
  8681. else
  8682. ac_cpp_err=yes
  8683. fi
  8684. if test -z "$ac_cpp_err"; then
  8685. ac_cv_header_sys_cpustats_h=yes
  8686. else
  8687. echo "$as_me: failed program was:" >&5
  8688. cat conftest.$ac_ext >&5
  8689. ac_cv_header_sys_cpustats_h=no
  8690. fi
  8691. rm -f conftest.err conftest.$ac_ext
  8692. fi
  8693. echo "$as_me:9436: result: $ac_cv_header_sys_cpustats_h" >&5
  8694. echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
  8695. if test $ac_cv_header_sys_cpustats_h = yes; then
  8696. ac_have_func=yes; cat >>confdefs.h <<\EOF
  8697. #define UMAX 1
  8698. EOF
  8699. fi
  8700. fi
  8701. if test $ac_have_func = no; then
  8702. for ac_header in mach/mach.h
  8703. do
  8704. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8705. echo "$as_me:9452: checking for $ac_header" >&5
  8706. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8707. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8708. echo $ECHO_N "(cached) $ECHO_C" >&6
  8709. else
  8710. cat >conftest.$ac_ext <<_ACEOF
  8711. #line 9458 "configure"
  8712. #include "confdefs.h"
  8713. #include <$ac_header>
  8714. _ACEOF
  8715. if { (eval echo "$as_me:9462: \"$ac_cpp conftest.$ac_ext\"") >&5
  8716. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8717. ac_status=$?
  8718. egrep -v '^ *\+' conftest.er1 >conftest.err
  8719. rm -f conftest.er1
  8720. cat conftest.err >&5
  8721. echo "$as_me:9468: \$? = $ac_status" >&5
  8722. (exit $ac_status); } >/dev/null; then
  8723. if test -s conftest.err; then
  8724. ac_cpp_err=$ac_c_preproc_warn_flag
  8725. else
  8726. ac_cpp_err=
  8727. fi
  8728. else
  8729. ac_cpp_err=yes
  8730. fi
  8731. if test -z "$ac_cpp_err"; then
  8732. eval "$as_ac_Header=yes"
  8733. else
  8734. echo "$as_me: failed program was:" >&5
  8735. cat conftest.$ac_ext >&5
  8736. eval "$as_ac_Header=no"
  8737. fi
  8738. rm -f conftest.err conftest.$ac_ext
  8739. fi
  8740. echo "$as_me:9487: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8741. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8742. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8743. cat >>confdefs.h <<EOF
  8744. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8745. EOF
  8746. fi
  8747. done
  8748. fi
  8749. for ac_header in nlist.h
  8750. do
  8751. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8752. echo "$as_me:9502: checking for $ac_header" >&5
  8753. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8754. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8755. echo $ECHO_N "(cached) $ECHO_C" >&6
  8756. else
  8757. cat >conftest.$ac_ext <<_ACEOF
  8758. #line 9508 "configure"
  8759. #include "confdefs.h"
  8760. #include <$ac_header>
  8761. _ACEOF
  8762. if { (eval echo "$as_me:9512: \"$ac_cpp conftest.$ac_ext\"") >&5
  8763. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8764. ac_status=$?
  8765. egrep -v '^ *\+' conftest.er1 >conftest.err
  8766. rm -f conftest.er1
  8767. cat conftest.err >&5
  8768. echo "$as_me:9518: \$? = $ac_status" >&5
  8769. (exit $ac_status); } >/dev/null; then
  8770. if test -s conftest.err; then
  8771. ac_cpp_err=$ac_c_preproc_warn_flag
  8772. else
  8773. ac_cpp_err=
  8774. fi
  8775. else
  8776. ac_cpp_err=yes
  8777. fi
  8778. if test -z "$ac_cpp_err"; then
  8779. eval "$as_ac_Header=yes"
  8780. else
  8781. echo "$as_me: failed program was:" >&5
  8782. cat conftest.$ac_ext >&5
  8783. eval "$as_ac_Header=no"
  8784. fi
  8785. rm -f conftest.err conftest.$ac_ext
  8786. fi
  8787. echo "$as_me:9537: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8788. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8789. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8790. cat >>confdefs.h <<EOF
  8791. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8792. EOF
  8793. echo "$as_me:9543: checking for struct nlist.n_un.n_name" >&5
  8794. echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
  8795. if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
  8796. echo $ECHO_N "(cached) $ECHO_C" >&6
  8797. else
  8798. cat >conftest.$ac_ext <<_ACEOF
  8799. #line 9549 "configure"
  8800. #include "confdefs.h"
  8801. #include <nlist.h>
  8802. int
  8803. main ()
  8804. {
  8805. static struct nlist ac_aggr;
  8806. if (ac_aggr.n_un.n_name)
  8807. return 0;
  8808. ;
  8809. return 0;
  8810. }
  8811. _ACEOF
  8812. rm -f conftest.$ac_objext
  8813. if { (eval echo "$as_me:9564: \"$ac_compile\"") >&5
  8814. (eval $ac_compile) 2>&5
  8815. ac_status=$?
  8816. echo "$as_me:9567: \$? = $ac_status" >&5
  8817. (exit $ac_status); } &&
  8818. { ac_try='test -s conftest.$ac_objext'
  8819. { (eval echo "$as_me:9570: \"$ac_try\"") >&5
  8820. (eval $ac_try) 2>&5
  8821. ac_status=$?
  8822. echo "$as_me:9573: \$? = $ac_status" >&5
  8823. (exit $ac_status); }; }; then
  8824. ac_cv_member_struct_nlist_n_un_n_name=yes
  8825. else
  8826. echo "$as_me: failed program was:" >&5
  8827. cat conftest.$ac_ext >&5
  8828. ac_cv_member_struct_nlist_n_un_n_name=no
  8829. fi
  8830. rm -f conftest.$ac_objext conftest.$ac_ext
  8831. fi
  8832. echo "$as_me:9583: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
  8833. echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
  8834. if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
  8835. cat >>confdefs.h <<EOF
  8836. #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
  8837. EOF
  8838. cat >>confdefs.h <<\EOF
  8839. #define NLIST_NAME_UNION 1
  8840. EOF
  8841. fi
  8842. fi
  8843. done
  8844. fi
  8845. done
  8846. # Some definitions of getloadavg require that the program be installed setgid.
  8847. echo "$as_me:9604: checking whether getloadavg requires setgid" >&5
  8848. echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
  8849. if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
  8850. echo $ECHO_N "(cached) $ECHO_C" >&6
  8851. else
  8852. cat >conftest.$ac_ext <<_ACEOF
  8853. #line 9610 "configure"
  8854. #include "confdefs.h"
  8855. #include "$srcdir/getloadavg.c"
  8856. #ifdef LDAV_PRIVILEGED
  8857. Yowza Am I SETGID yet
  8858. #endif
  8859. _ACEOF
  8860. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  8861. egrep "Yowza Am I SETGID yet" >/dev/null 2>&1; then
  8862. ac_cv_func_getloadavg_setgid=yes
  8863. else
  8864. ac_cv_func_getloadavg_setgid=no
  8865. fi
  8866. rm -f conftest*
  8867. fi
  8868. echo "$as_me:9626: result: $ac_cv_func_getloadavg_setgid" >&5
  8869. echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
  8870. if test $ac_cv_func_getloadavg_setgid = yes; then
  8871. NEED_SETGID=true
  8872. cat >>confdefs.h <<\EOF
  8873. #define GETLOADAVG_PRIVILEGED 1
  8874. EOF
  8875. else
  8876. NEED_SETGID=false
  8877. fi
  8878. if test $ac_cv_func_getloadavg_setgid = yes; then
  8879. echo "$as_me:9640: checking group of /dev/kmem" >&5
  8880. echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
  8881. if test "${ac_cv_group_kmem+set}" = set; then
  8882. echo $ECHO_N "(cached) $ECHO_C" >&6
  8883. else
  8884. # On Solaris, /dev/kmem is a symlink. Get info on the real file.
  8885. ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
  8886. # If we got an error (system does not support symlinks), try without -L.
  8887. test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
  8888. ac_cv_group_kmem=`echo $ac_ls_output \
  8889. | sed -ne 's/[ ][ ]*/ /g;
  8890. s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
  8891. / /s/.* //;p;'`
  8892. fi
  8893. echo "$as_me:9655: result: $ac_cv_group_kmem" >&5
  8894. echo "${ECHO_T}$ac_cv_group_kmem" >&6
  8895. KMEM_GROUP=$ac_cv_group_kmem
  8896. fi
  8897. if test "x$ac_save_LIBS" = x; then
  8898. GETLOADAVG_LIBS=$LIBS
  8899. else
  8900. GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
  8901. fi
  8902. LIBS=$ac_save_LIBS
  8903. echo "$as_me:9666: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  8904. echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
  8905. if test "${ac_cv_sys_largefile_source+set}" = set; then
  8906. echo $ECHO_N "(cached) $ECHO_C" >&6
  8907. else
  8908. while :; do
  8909. ac_cv_sys_largefile_source=no
  8910. cat >conftest.$ac_ext <<_ACEOF
  8911. #line 9674 "configure"
  8912. #include "confdefs.h"
  8913. #include <stdio.h>
  8914. int
  8915. main ()
  8916. {
  8917. return !fseeko;
  8918. ;
  8919. return 0;
  8920. }
  8921. _ACEOF
  8922. rm -f conftest.$ac_objext
  8923. if { (eval echo "$as_me:9686: \"$ac_compile\"") >&5
  8924. (eval $ac_compile) 2>&5
  8925. ac_status=$?
  8926. echo "$as_me:9689: \$? = $ac_status" >&5
  8927. (exit $ac_status); } &&
  8928. { ac_try='test -s conftest.$ac_objext'
  8929. { (eval echo "$as_me:9692: \"$ac_try\"") >&5
  8930. (eval $ac_try) 2>&5
  8931. ac_status=$?
  8932. echo "$as_me:9695: \$? = $ac_status" >&5
  8933. (exit $ac_status); }; }; then
  8934. break
  8935. else
  8936. echo "$as_me: failed program was:" >&5
  8937. cat conftest.$ac_ext >&5
  8938. fi
  8939. rm -f conftest.$ac_objext conftest.$ac_ext
  8940. cat >conftest.$ac_ext <<_ACEOF
  8941. #line 9704 "configure"
  8942. #include "confdefs.h"
  8943. #define _LARGEFILE_SOURCE 1
  8944. #include <stdio.h>
  8945. int
  8946. main ()
  8947. {
  8948. return !fseeko;
  8949. ;
  8950. return 0;
  8951. }
  8952. _ACEOF
  8953. rm -f conftest.$ac_objext
  8954. if { (eval echo "$as_me:9717: \"$ac_compile\"") >&5
  8955. (eval $ac_compile) 2>&5
  8956. ac_status=$?
  8957. echo "$as_me:9720: \$? = $ac_status" >&5
  8958. (exit $ac_status); } &&
  8959. { ac_try='test -s conftest.$ac_objext'
  8960. { (eval echo "$as_me:9723: \"$ac_try\"") >&5
  8961. (eval $ac_try) 2>&5
  8962. ac_status=$?
  8963. echo "$as_me:9726: \$? = $ac_status" >&5
  8964. (exit $ac_status); }; }; then
  8965. ac_cv_sys_largefile_source=1; break
  8966. else
  8967. echo "$as_me: failed program was:" >&5
  8968. cat conftest.$ac_ext >&5
  8969. fi
  8970. rm -f conftest.$ac_objext conftest.$ac_ext
  8971. break
  8972. done
  8973. fi
  8974. echo "$as_me:9737: result: $ac_cv_sys_largefile_source" >&5
  8975. echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
  8976. if test "$ac_cv_sys_largefile_source" != no; then
  8977. cat >>confdefs.h <<EOF
  8978. #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  8979. EOF
  8980. fi
  8981. rm -f conftest*
  8982. # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
  8983. # in glibc 2.1.3, but that breaks too many other things.
  8984. # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
  8985. echo "$as_me:9751: checking for fseeko" >&5
  8986. echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
  8987. if test "${ac_cv_func_fseeko+set}" = set; then
  8988. echo $ECHO_N "(cached) $ECHO_C" >&6
  8989. else
  8990. cat >conftest.$ac_ext <<_ACEOF
  8991. #line 9757 "configure"
  8992. #include "confdefs.h"
  8993. #include <stdio.h>
  8994. int
  8995. main ()
  8996. {
  8997. return fseeko && fseeko (stdin, 0, 0);
  8998. ;
  8999. return 0;
  9000. }
  9001. _ACEOF
  9002. rm -f conftest.$ac_objext conftest$ac_exeext
  9003. if { (eval echo "$as_me:9769: \"$ac_link\"") >&5
  9004. (eval $ac_link) 2>&5
  9005. ac_status=$?
  9006. echo "$as_me:9772: \$? = $ac_status" >&5
  9007. (exit $ac_status); } &&
  9008. { ac_try='test -s conftest$ac_exeext'
  9009. { (eval echo "$as_me:9775: \"$ac_try\"") >&5
  9010. (eval $ac_try) 2>&5
  9011. ac_status=$?
  9012. echo "$as_me:9778: \$? = $ac_status" >&5
  9013. (exit $ac_status); }; }; then
  9014. ac_cv_func_fseeko=yes
  9015. else
  9016. echo "$as_me: failed program was:" >&5
  9017. cat conftest.$ac_ext >&5
  9018. ac_cv_func_fseeko=no
  9019. fi
  9020. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  9021. fi
  9022. echo "$as_me:9788: result: $ac_cv_func_fseeko" >&5
  9023. echo "${ECHO_T}$ac_cv_func_fseeko" >&6
  9024. if test $ac_cv_func_fseeko = yes; then
  9025. cat >>confdefs.h <<\EOF
  9026. #define HAVE_FSEEKO 1
  9027. EOF
  9028. fi
  9029. # UNIX98 PTYs.
  9030. for ac_func in grantpt
  9031. do
  9032. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9033. echo "$as_me:9803: checking for $ac_func" >&5
  9034. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9035. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9036. echo $ECHO_N "(cached) $ECHO_C" >&6
  9037. else
  9038. cat >conftest.$ac_ext <<_ACEOF
  9039. #line 9809 "configure"
  9040. #include "confdefs.h"
  9041. /* System header to define __stub macros and hopefully few prototypes,
  9042. which can conflict with char $ac_func (); below. */
  9043. #include <assert.h>
  9044. /* Override any gcc2 internal prototype to avoid an error. */
  9045. #ifdef __cplusplus
  9046. extern "C"
  9047. #endif
  9048. /* We use char because int might match the return type of a gcc2
  9049. builtin and then its argument prototype would still apply. */
  9050. char $ac_func ();
  9051. char (*f) ();
  9052. int
  9053. main ()
  9054. {
  9055. /* The GNU C library defines this for functions which it implements
  9056. to always fail with ENOSYS. Some functions are actually named
  9057. something starting with __ and the normal name is an alias. */
  9058. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9059. choke me
  9060. #else
  9061. f = $ac_func;
  9062. #endif
  9063. ;
  9064. return 0;
  9065. }
  9066. _ACEOF
  9067. rm -f conftest.$ac_objext conftest$ac_exeext
  9068. if { (eval echo "$as_me:9840: \"$ac_link\"") >&5
  9069. (eval $ac_link) 2>&5
  9070. ac_status=$?
  9071. echo "$as_me:9843: \$? = $ac_status" >&5
  9072. (exit $ac_status); } &&
  9073. { ac_try='test -s conftest$ac_exeext'
  9074. { (eval echo "$as_me:9846: \"$ac_try\"") >&5
  9075. (eval $ac_try) 2>&5
  9076. ac_status=$?
  9077. echo "$as_me:9849: \$? = $ac_status" >&5
  9078. (exit $ac_status); }; }; then
  9079. eval "$as_ac_var=yes"
  9080. else
  9081. echo "$as_me: failed program was:" >&5
  9082. cat conftest.$ac_ext >&5
  9083. eval "$as_ac_var=no"
  9084. fi
  9085. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  9086. fi
  9087. echo "$as_me:9859: result: `eval echo '${'$as_ac_var'}'`" >&5
  9088. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9089. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9090. cat >>confdefs.h <<EOF
  9091. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9092. EOF
  9093. fi
  9094. done
  9095. # PTY-related GNU extensions.
  9096. for ac_func in getpt
  9097. do
  9098. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9099. echo "$as_me:9874: checking for $ac_func" >&5
  9100. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9101. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9102. echo $ECHO_N "(cached) $ECHO_C" >&6
  9103. else
  9104. cat >conftest.$ac_ext <<_ACEOF
  9105. #line 9880 "configure"
  9106. #include "confdefs.h"
  9107. /* System header to define __stub macros and hopefully few prototypes,
  9108. which can conflict with char $ac_func (); below. */
  9109. #include <assert.h>
  9110. /* Override any gcc2 internal prototype to avoid an error. */
  9111. #ifdef __cplusplus
  9112. extern "C"
  9113. #endif
  9114. /* We use char because int might match the return type of a gcc2
  9115. builtin and then its argument prototype would still apply. */
  9116. char $ac_func ();
  9117. char (*f) ();
  9118. int
  9119. main ()
  9120. {
  9121. /* The GNU C library defines this for functions which it implements
  9122. to always fail with ENOSYS. Some functions are actually named
  9123. something starting with __ and the normal name is an alias. */
  9124. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9125. choke me
  9126. #else
  9127. f = $ac_func;
  9128. #endif
  9129. ;
  9130. return 0;
  9131. }
  9132. _ACEOF
  9133. rm -f conftest.$ac_objext conftest$ac_exeext
  9134. if { (eval echo "$as_me:9911: \"$ac_link\"") >&5
  9135. (eval $ac_link) 2>&5
  9136. ac_status=$?
  9137. echo "$as_me:9914: \$? = $ac_status" >&5
  9138. (exit $ac_status); } &&
  9139. { ac_try='test -s conftest$ac_exeext'
  9140. { (eval echo "$as_me:9917: \"$ac_try\"") >&5
  9141. (eval $ac_try) 2>&5
  9142. ac_status=$?
  9143. echo "$as_me:9920: \$? = $ac_status" >&5
  9144. (exit $ac_status); }; }; then
  9145. eval "$as_ac_var=yes"
  9146. else
  9147. echo "$as_me: failed program was:" >&5
  9148. cat conftest.$ac_ext >&5
  9149. eval "$as_ac_var=no"
  9150. fi
  9151. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  9152. fi
  9153. echo "$as_me:9930: result: `eval echo '${'$as_ac_var'}'`" >&5
  9154. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9155. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9156. cat >>confdefs.h <<EOF
  9157. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9158. EOF
  9159. fi
  9160. done
  9161. # Check this now, so that we will NOT find the above functions in ncurses.
  9162. # That is because we have not set up to link ncurses in lib-src.
  9163. # It's better to believe a function is not available
  9164. # than to expect to find it in ncurses.
  9165. echo "$as_me:9945: checking for tparm in -lncurses" >&5
  9166. echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
  9167. if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
  9168. echo $ECHO_N "(cached) $ECHO_C" >&6
  9169. else
  9170. ac_check_lib_save_LIBS=$LIBS
  9171. LIBS="-lncurses $LIBS"
  9172. cat >conftest.$ac_ext <<_ACEOF
  9173. #line 9953 "configure"
  9174. #include "confdefs.h"
  9175. /* Override any gcc2 internal prototype to avoid an error. */
  9176. #ifdef __cplusplus
  9177. extern "C"
  9178. #endif
  9179. /* We use char because int might match the return type of a gcc2
  9180. builtin and then its argument prototype would still apply. */
  9181. char tparm ();
  9182. int
  9183. main ()
  9184. {
  9185. tparm ();
  9186. ;
  9187. return 0;
  9188. }
  9189. _ACEOF
  9190. rm -f conftest.$ac_objext conftest$ac_exeext
  9191. if { (eval echo "$as_me:9972: \"$ac_link\"") >&5
  9192. (eval $ac_link) 2>&5
  9193. ac_status=$?
  9194. echo "$as_me:9975: \$? = $ac_status" >&5
  9195. (exit $ac_status); } &&
  9196. { ac_try='test -s conftest$ac_exeext'
  9197. { (eval echo "$as_me:9978: \"$ac_try\"") >&5
  9198. (eval $ac_try) 2>&5
  9199. ac_status=$?
  9200. echo "$as_me:9981: \$? = $ac_status" >&5
  9201. (exit $ac_status); }; }; then
  9202. ac_cv_lib_ncurses_tparm=yes
  9203. else
  9204. echo "$as_me: failed program was:" >&5
  9205. cat conftest.$ac_ext >&5
  9206. ac_cv_lib_ncurses_tparm=no
  9207. fi
  9208. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  9209. LIBS=$ac_check_lib_save_LIBS
  9210. fi
  9211. echo "$as_me:9992: result: $ac_cv_lib_ncurses_tparm" >&5
  9212. echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
  9213. if test $ac_cv_lib_ncurses_tparm = yes; then
  9214. cat >>confdefs.h <<EOF
  9215. #define HAVE_LIBNCURSES 1
  9216. EOF
  9217. LIBS="-lncurses $LIBS"
  9218. fi
  9219. # Do we need the Hesiod library to provide the support routines?
  9220. if test "$with_hesiod" = yes ; then
  9221. # Don't set $LIBS here -- see comments above.
  9222. resolv=no
  9223. echo "$as_me:10007: checking for res_send" >&5
  9224. echo $ECHO_N "checking for res_send... $ECHO_C" >&6
  9225. if test "${ac_cv_func_res_send+set}" = set; then
  9226. echo $ECHO_N "(cached) $ECHO_C" >&6
  9227. else
  9228. cat >conftest.$ac_ext <<_ACEOF
  9229. #line 10013 "configure"
  9230. #include "confdefs.h"
  9231. /* System header to define __stub macros and hopefully few prototypes,
  9232. which can conflict with char res_send (); below. */
  9233. #include <assert.h>
  9234. /* Override any gcc2 internal prototype to avoid an error. */
  9235. #ifdef __cplusplus
  9236. extern "C"
  9237. #endif
  9238. /* We use char because int might match the return type of a gcc2
  9239. builtin and then its argument prototype would still apply. */
  9240. char res_send ();
  9241. char (*f) ();
  9242. int
  9243. main ()
  9244. {
  9245. /* The GNU C library defines this for functions which it implements
  9246. to always fail with ENOSYS. Some functions are actually named
  9247. something starting with __ and the normal name is an alias. */
  9248. #if defined (__stub_res_send) || defined (__stub___res_send)
  9249. choke me
  9250. #else
  9251. f = res_send;
  9252. #endif
  9253. ;
  9254. return 0;
  9255. }
  9256. _ACEOF
  9257. rm -f conftest.$ac_objext conftest$ac_exeext
  9258. if { (eval echo "$as_me:10044: \"$ac_link\"") >&5
  9259. (eval $ac_link) 2>&5
  9260. ac_status=$?
  9261. echo "$as_me:10047: \$? = $ac_status" >&5
  9262. (exit $ac_status); } &&
  9263. { ac_try='test -s conftest$ac_exeext'
  9264. { (eval echo "$as_me:10050: \"$ac_try\"") >&5
  9265. (eval $ac_try) 2>&5
  9266. ac_status=$?
  9267. echo "$as_me:10053: \$? = $ac_status" >&5
  9268. (exit $ac_status); }; }; then
  9269. ac_cv_func_res_send=yes
  9270. else
  9271. echo "$as_me: failed program was:" >&5
  9272. cat conftest.$ac_ext >&5
  9273. ac_cv_func_res_send=no
  9274. fi
  9275. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  9276. fi
  9277. echo "$as_me:10063: result: $ac_cv_func_res_send" >&5
  9278. echo "${ECHO_T}$ac_cv_func_res_send" >&6
  9279. if test $ac_cv_func_res_send = yes; then
  9280. :
  9281. else
  9282. echo "$as_me:10068: checking for __res_send" >&5
  9283. echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
  9284. if test "${ac_cv_func___res_send+set}" = set; then
  9285. echo $ECHO_N "(cached) $ECHO_C" >&6
  9286. else
  9287. cat >conftest.$ac_ext <<_ACEOF
  9288. #line 10074 "configure"
  9289. #include "confdefs.h"
  9290. /* System header to define __stub macros and hopefully few prototypes,
  9291. which can conflict with char __res_send (); below. */
  9292. #include <assert.h>
  9293. /* Override any gcc2 internal prototype to avoid an error. */
  9294. #ifdef __cplusplus
  9295. extern "C"
  9296. #endif
  9297. /* We use char because int might match the return type of a gcc2
  9298. builtin and then its argument prototype would still apply. */
  9299. char __res_send ();
  9300. char (*f) ();
  9301. int
  9302. main ()
  9303. {
  9304. /* The GNU C library defines this for functions which it implements
  9305. to always fail with ENOSYS. Some functions are actually named
  9306. something starting with __ and the normal name is an alias. */
  9307. #if defined (__stub___res_send) || defined (__stub_____res_send)
  9308. choke me
  9309. #else
  9310. f = __res_send;
  9311. #endif
  9312. ;
  9313. return 0;
  9314. }
  9315. _ACEOF
  9316. rm -f conftest.$ac_objext conftest$ac_exeext
  9317. if { (eval echo "$as_me:10105: \"$ac_link\"") >&5
  9318. (eval $ac_link) 2>&5
  9319. ac_status=$?
  9320. echo "$as_me:10108: \$? = $ac_status" >&5
  9321. (exit $ac_status); } &&
  9322. { ac_try='test -s conftest$ac_exeext'
  9323. { (eval echo "$as_me:10111: \"$ac_try\"") >&5
  9324. (eval $ac_try) 2>&5
  9325. ac_status=$?
  9326. echo "$as_me:10114: \$? = $ac_status" >&5
  9327. (exit $ac_status); }; }; then
  9328. ac_cv_func___res_send=yes
  9329. else
  9330. echo "$as_me: failed program was:" >&5
  9331. cat conftest.$ac_ext >&5
  9332. ac_cv_func___res_send=no
  9333. fi
  9334. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  9335. fi
  9336. echo "$as_me:10124: result: $ac_cv_func___res_send" >&5
  9337. echo "${ECHO_T}$ac_cv_func___res_send" >&6
  9338. if test $ac_cv_func___res_send = yes; then
  9339. :
  9340. else
  9341. echo "$as_me:10129: checking for res_send in -lresolv" >&5
  9342. echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
  9343. if test "${ac_cv_lib_resolv_res_send+set}" = set; then
  9344. echo $ECHO_N "(cached) $ECHO_C" >&6
  9345. else
  9346. ac_check_lib_save_LIBS=$LIBS
  9347. LIBS="-lresolv $LIBS"
  9348. cat >conftest.$ac_ext <<_ACEOF
  9349. #line 10137 "configure"
  9350. #include "confdefs.h"
  9351. /* Override any gcc2 internal prototype to avoid an error. */
  9352. #ifdef __cplusplus
  9353. extern "C"
  9354. #endif
  9355. /* We use char because int might match the return type of a gcc2
  9356. builtin and then its argument prototype would still apply. */
  9357. char res_send ();
  9358. int
  9359. main ()
  9360. {
  9361. res_send ();
  9362. ;
  9363. return 0;
  9364. }
  9365. _ACEOF
  9366. rm -f conftest.$ac_objext conftest$ac_exeext
  9367. if { (eval echo "$as_me:10156: \"$ac_link\"") >&5
  9368. (eval $ac_link) 2>&5
  9369. ac_status=$?
  9370. echo "$as_me:10159: \$? = $ac_status" >&5
  9371. (exit $ac_status); } &&
  9372. { ac_try='test -s conftest$ac_exeext'
  9373. { (eval echo "$as_me:10162: \"$ac_try\"") >&5
  9374. (eval $ac_try) 2>&5
  9375. ac_status=$?
  9376. echo "$as_me:10165: \$? = $ac_status" >&5
  9377. (exit $ac_status); }; }; then
  9378. ac_cv_lib_resolv_res_send=yes
  9379. else
  9380. echo "$as_me: failed program was:" >&5
  9381. cat conftest.$ac_ext >&5
  9382. ac_cv_lib_resolv_res_send=no
  9383. fi
  9384. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  9385. LIBS=$ac_check_lib_save_LIBS
  9386. fi
  9387. echo "$as_me:10176: result: $ac_cv_lib_resolv_res_send" >&5
  9388. echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
  9389. if test $ac_cv_lib_resolv_res_send = yes; then
  9390. resolv=yes
  9391. else
  9392. echo "$as_me:10181: checking for __res_send in -lresolv" >&5
  9393. echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
  9394. if test "${ac_cv_lib_resolv___res_send+set}" = set; then
  9395. echo $ECHO_N "(cached) $ECHO_C" >&6
  9396. else
  9397. ac_check_lib_save_LIBS=$LIBS
  9398. LIBS="-lresolv $LIBS"
  9399. cat >conftest.$ac_ext <<_ACEOF
  9400. #line 10189 "configure"
  9401. #include "confdefs.h"
  9402. /* Override any gcc2 internal prototype to avoid an error. */
  9403. #ifdef __cplusplus
  9404. extern "C"
  9405. #endif
  9406. /* We use char because int might match the return type of a gcc2
  9407. builtin and then its argument prototype would still apply. */
  9408. char __res_send ();
  9409. int
  9410. main ()
  9411. {
  9412. __res_send ();
  9413. ;
  9414. return 0;
  9415. }
  9416. _ACEOF
  9417. rm -f conftest.$ac_objext conftest$ac_exeext
  9418. if { (eval echo "$as_me:10208: \"$ac_link\"") >&5
  9419. (eval $ac_link) 2>&5
  9420. ac_status=$?
  9421. echo "$as_me:10211: \$? = $ac_status" >&5
  9422. (exit $ac_status); } &&
  9423. { ac_try='test -s conftest$ac_exeext'
  9424. { (eval echo "$as_me:10214: \"$ac_try\"") >&5
  9425. (eval $ac_try) 2>&5
  9426. ac_status=$?
  9427. echo "$as_me:10217: \$? = $ac_status" >&5
  9428. (exit $ac_status); }; }; then
  9429. ac_cv_lib_resolv___res_send=yes
  9430. else
  9431. echo "$as_me: failed program was:" >&5
  9432. cat conftest.$ac_ext >&5
  9433. ac_cv_lib_resolv___res_send=no
  9434. fi
  9435. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  9436. LIBS=$ac_check_lib_save_LIBS
  9437. fi
  9438. echo "$as_me:10228: result: $ac_cv_lib_resolv___res_send" >&5
  9439. echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
  9440. if test $ac_cv_lib_resolv___res_send = yes; then
  9441. resolv=yes
  9442. fi
  9443. fi
  9444. fi
  9445. fi
  9446. if test "$resolv" = yes ; then
  9447. RESOLVLIB=-lresolv
  9448. cat >>confdefs.h <<\EOF
  9449. #define HAVE_LIBRESOLV 1
  9450. EOF
  9451. else
  9452. RESOLVLIB=
  9453. fi
  9454. echo "$as_me:10249: checking for hes_getmailhost" >&5
  9455. echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
  9456. if test "${ac_cv_func_hes_getmailhost+set}" = set; then
  9457. echo $ECHO_N "(cached) $ECHO_C" >&6
  9458. else
  9459. cat >conftest.$ac_ext <<_ACEOF
  9460. #line 10255 "configure"
  9461. #include "confdefs.h"
  9462. /* System header to define __stub macros and hopefully few prototypes,
  9463. which can conflict with char hes_getmailhost (); below. */
  9464. #include <assert.h>
  9465. /* Override any gcc2 internal prototype to avoid an error. */
  9466. #ifdef __cplusplus
  9467. extern "C"
  9468. #endif
  9469. /* We use char because int might match the return type of a gcc2
  9470. builtin and then its argument prototype would still apply. */
  9471. char hes_getmailhost ();
  9472. char (*f) ();
  9473. int
  9474. main ()
  9475. {
  9476. /* The GNU C library defines this for functions which it implements
  9477. to always fail with ENOSYS. Some functions are actually named
  9478. something starting with __ and the normal name is an alias. */
  9479. #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
  9480. choke me
  9481. #else
  9482. f = hes_getmailhost;
  9483. #endif
  9484. ;
  9485. return 0;
  9486. }
  9487. _ACEOF
  9488. rm -f conftest.$ac_objext conftest$ac_exeext
  9489. if { (eval echo "$as_me:10286: \"$ac_link\"") >&5
  9490. (eval $ac_link) 2>&5
  9491. ac_status=$?
  9492. echo "$as_me:10289: \$? = $ac_status" >&5
  9493. (exit $ac_status); } &&
  9494. { ac_try='test -s conftest$ac_exeext'
  9495. { (eval echo "$as_me:10292: \"$ac_try\"") >&5
  9496. (eval $ac_try) 2>&5
  9497. ac_status=$?
  9498. echo "$as_me:10295: \$? = $ac_status" >&5
  9499. (exit $ac_status); }; }; then
  9500. ac_cv_func_hes_getmailhost=yes
  9501. else
  9502. echo "$as_me: failed program was:" >&5
  9503. cat conftest.$ac_ext >&5
  9504. ac_cv_func_hes_getmailhost=no
  9505. fi
  9506. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  9507. fi
  9508. echo "$as_me:10305: result: $ac_cv_func_hes_getmailhost" >&5
  9509. echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
  9510. if test $ac_cv_func_hes_getmailhost = yes; then
  9511. :
  9512. else
  9513. echo "$as_me:10310: checking for hes_getmailhost in -lhesiod" >&5
  9514. echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
  9515. if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
  9516. echo $ECHO_N "(cached) $ECHO_C" >&6
  9517. else
  9518. ac_check_lib_save_LIBS=$LIBS
  9519. LIBS="-lhesiod $RESOLVLIB $LIBS"
  9520. cat >conftest.$ac_ext <<_ACEOF
  9521. #line 10318 "configure"
  9522. #include "confdefs.h"
  9523. /* Override any gcc2 internal prototype to avoid an error. */
  9524. #ifdef __cplusplus
  9525. extern "C"
  9526. #endif
  9527. /* We use char because int might match the return type of a gcc2
  9528. builtin and then its argument prototype would still apply. */
  9529. char hes_getmailhost ();
  9530. int
  9531. main ()
  9532. {
  9533. hes_getmailhost ();
  9534. ;
  9535. return 0;
  9536. }
  9537. _ACEOF
  9538. rm -f conftest.$ac_objext conftest$ac_exeext
  9539. if { (eval echo "$as_me:10337: \"$ac_link\"") >&5
  9540. (eval $ac_link) 2>&5
  9541. ac_status=$?
  9542. echo "$as_me:10340: \$? = $ac_status" >&5
  9543. (exit $ac_status); } &&
  9544. { ac_try='test -s conftest$ac_exeext'
  9545. { (eval echo "$as_me:10343: \"$ac_try\"") >&5
  9546. (eval $ac_try) 2>&5
  9547. ac_status=$?
  9548. echo "$as_me:10346: \$? = $ac_status" >&5
  9549. (exit $ac_status); }; }; then
  9550. ac_cv_lib_hesiod_hes_getmailhost=yes
  9551. else
  9552. echo "$as_me: failed program was:" >&5
  9553. cat conftest.$ac_ext >&5
  9554. ac_cv_lib_hesiod_hes_getmailhost=no
  9555. fi
  9556. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  9557. LIBS=$ac_check_lib_save_LIBS
  9558. fi
  9559. echo "$as_me:10357: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
  9560. echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
  9561. if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
  9562. cat >>confdefs.h <<\EOF
  9563. #define HAVE_LIBHESIOD 1
  9564. EOF
  9565. else
  9566. :
  9567. fi
  9568. fi
  9569. fi
  9570. # These tell us which Kerberos-related libraries to use.
  9571. if test "${with_kerberos+set}" = set; then
  9572. echo "$as_me:10375: checking for com_err in -lcom_err" >&5
  9573. echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
  9574. if test "${ac_cv_lib_com_err_com_err+set}" = set; then
  9575. echo $ECHO_N "(cached) $ECHO_C" >&6
  9576. else
  9577. ac_check_lib_save_LIBS=$LIBS
  9578. LIBS="-lcom_err $LIBS"
  9579. cat >conftest.$ac_ext <<_ACEOF
  9580. #line 10383 "configure"
  9581. #include "confdefs.h"
  9582. /* Override any gcc2 internal prototype to avoid an error. */
  9583. #ifdef __cplusplus
  9584. extern "C"
  9585. #endif
  9586. /* We use char because int might match the return type of a gcc2
  9587. builtin and then its argument prototype would still apply. */
  9588. char com_err ();
  9589. int
  9590. main ()
  9591. {
  9592. com_err ();
  9593. ;
  9594. return 0;
  9595. }
  9596. _ACEOF
  9597. rm -f conftest.$ac_objext conftest$ac_exeext
  9598. if { (eval echo "$as_me:10402: \"$ac_link\"") >&5
  9599. (eval $ac_link) 2>&5
  9600. ac_status=$?
  9601. echo "$as_me:10405: \$? = $ac_status" >&5
  9602. (exit $ac_status); } &&
  9603. { ac_try='test -s conftest$ac_exeext'
  9604. { (eval echo "$as_me:10408: \"$ac_try\"") >&5
  9605. (eval $ac_try) 2>&5
  9606. ac_status=$?
  9607. echo "$as_me:10411: \$? = $ac_status" >&5
  9608. (exit $ac_status); }; }; then
  9609. ac_cv_lib_com_err_com_err=yes
  9610. else
  9611. echo "$as_me: failed program was:" >&5
  9612. cat conftest.$ac_ext >&5
  9613. ac_cv_lib_com_err_com_err=no
  9614. fi
  9615. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  9616. LIBS=$ac_check_lib_save_LIBS
  9617. fi
  9618. echo "$as_me:10422: result: $ac_cv_lib_com_err_com_err" >&5
  9619. echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
  9620. if test $ac_cv_lib_com_err_com_err = yes; then
  9621. cat >>confdefs.h <<EOF
  9622. #define HAVE_LIBCOM_ERR 1
  9623. EOF
  9624. LIBS="-lcom_err $LIBS"
  9625. fi
  9626. echo "$as_me:10433: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
  9627. echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
  9628. if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
  9629. echo $ECHO_N "(cached) $ECHO_C" >&6
  9630. else
  9631. ac_check_lib_save_LIBS=$LIBS
  9632. LIBS="-lk5crypto $LIBS"
  9633. cat >conftest.$ac_ext <<_ACEOF
  9634. #line 10441 "configure"
  9635. #include "confdefs.h"
  9636. /* Override any gcc2 internal prototype to avoid an error. */
  9637. #ifdef __cplusplus
  9638. extern "C"
  9639. #endif
  9640. /* We use char because int might match the return type of a gcc2
  9641. builtin and then its argument prototype would still apply. */
  9642. char mit_des_cbc_encrypt ();
  9643. int
  9644. main ()
  9645. {
  9646. mit_des_cbc_encrypt ();
  9647. ;
  9648. return 0;
  9649. }
  9650. _ACEOF
  9651. rm -f conftest.$ac_objext conftest$ac_exeext
  9652. if { (eval echo "$as_me:10460: \"$ac_link\"") >&5
  9653. (eval $ac_link) 2>&5
  9654. ac_status=$?
  9655. echo "$as_me:10463: \$? = $ac_status" >&5
  9656. (exit $ac_status); } &&
  9657. { ac_try='test -s conftest$ac_exeext'
  9658. { (eval echo "$as_me:10466: \"$ac_try\"") >&5
  9659. (eval $ac_try) 2>&5
  9660. ac_status=$?
  9661. echo "$as_me:10469: \$? = $ac_status" >&5
  9662. (exit $ac_status); }; }; then
  9663. ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
  9664. else
  9665. echo "$as_me: failed program was:" >&5
  9666. cat conftest.$ac_ext >&5
  9667. ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
  9668. fi
  9669. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  9670. LIBS=$ac_check_lib_save_LIBS
  9671. fi
  9672. echo "$as_me:10480: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
  9673. echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
  9674. if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
  9675. cat >>confdefs.h <<EOF
  9676. #define HAVE_LIBK5CRYPTO 1
  9677. EOF
  9678. LIBS="-lk5crypto $LIBS"
  9679. fi
  9680. echo "$as_me:10491: checking for mit_des_cbc_encrypt in -lcrypto" >&5
  9681. echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
  9682. if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
  9683. echo $ECHO_N "(cached) $ECHO_C" >&6
  9684. else
  9685. ac_check_lib_save_LIBS=$LIBS
  9686. LIBS="-lcrypto $LIBS"
  9687. cat >conftest.$ac_ext <<_ACEOF
  9688. #line 10499 "configure"
  9689. #include "confdefs.h"
  9690. /* Override any gcc2 internal prototype to avoid an error. */
  9691. #ifdef __cplusplus
  9692. extern "C"
  9693. #endif
  9694. /* We use char because int might match the return type of a gcc2
  9695. builtin and then its argument prototype would still apply. */
  9696. char mit_des_cbc_encrypt ();
  9697. int
  9698. main ()
  9699. {
  9700. mit_des_cbc_encrypt ();
  9701. ;
  9702. return 0;
  9703. }
  9704. _ACEOF
  9705. rm -f conftest.$ac_objext conftest$ac_exeext
  9706. if { (eval echo "$as_me:10518: \"$ac_link\"") >&5
  9707. (eval $ac_link) 2>&5
  9708. ac_status=$?
  9709. echo "$as_me:10521: \$? = $ac_status" >&5
  9710. (exit $ac_status); } &&
  9711. { ac_try='test -s conftest$ac_exeext'
  9712. { (eval echo "$as_me:10524: \"$ac_try\"") >&5
  9713. (eval $ac_try) 2>&5
  9714. ac_status=$?
  9715. echo "$as_me:10527: \$? = $ac_status" >&5
  9716. (exit $ac_status); }; }; then
  9717. ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
  9718. else
  9719. echo "$as_me: failed program was:" >&5
  9720. cat conftest.$ac_ext >&5
  9721. ac_cv_lib_crypto_mit_des_cbc_encrypt=no
  9722. fi
  9723. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  9724. LIBS=$ac_check_lib_save_LIBS
  9725. fi
  9726. echo "$as_me:10538: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
  9727. echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
  9728. if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
  9729. cat >>confdefs.h <<EOF
  9730. #define HAVE_LIBCRYPTO 1
  9731. EOF
  9732. LIBS="-lcrypto $LIBS"
  9733. fi
  9734. echo "$as_me:10549: checking for krb5_init_context in -lkrb5" >&5
  9735. echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
  9736. if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
  9737. echo $ECHO_N "(cached) $ECHO_C" >&6
  9738. else
  9739. ac_check_lib_save_LIBS=$LIBS
  9740. LIBS="-lkrb5 $LIBS"
  9741. cat >conftest.$ac_ext <<_ACEOF
  9742. #line 10557 "configure"
  9743. #include "confdefs.h"
  9744. /* Override any gcc2 internal prototype to avoid an error. */
  9745. #ifdef __cplusplus
  9746. extern "C"
  9747. #endif
  9748. /* We use char because int might match the return type of a gcc2
  9749. builtin and then its argument prototype would still apply. */
  9750. char krb5_init_context ();
  9751. int
  9752. main ()
  9753. {
  9754. krb5_init_context ();
  9755. ;
  9756. return 0;
  9757. }
  9758. _ACEOF
  9759. rm -f conftest.$ac_objext conftest$ac_exeext
  9760. if { (eval echo "$as_me:10576: \"$ac_link\"") >&5
  9761. (eval $ac_link) 2>&5
  9762. ac_status=$?
  9763. echo "$as_me:10579: \$? = $ac_status" >&5
  9764. (exit $ac_status); } &&
  9765. { ac_try='test -s conftest$ac_exeext'
  9766. { (eval echo "$as_me:10582: \"$ac_try\"") >&5
  9767. (eval $ac_try) 2>&5
  9768. ac_status=$?
  9769. echo "$as_me:10585: \$? = $ac_status" >&5
  9770. (exit $ac_status); }; }; then
  9771. ac_cv_lib_krb5_krb5_init_context=yes
  9772. else
  9773. echo "$as_me: failed program was:" >&5
  9774. cat conftest.$ac_ext >&5
  9775. ac_cv_lib_krb5_krb5_init_context=no
  9776. fi
  9777. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  9778. LIBS=$ac_check_lib_save_LIBS
  9779. fi
  9780. echo "$as_me:10596: result: $ac_cv_lib_krb5_krb5_init_context" >&5
  9781. echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
  9782. if test $ac_cv_lib_krb5_krb5_init_context = yes; then
  9783. cat >>confdefs.h <<EOF
  9784. #define HAVE_LIBKRB5 1
  9785. EOF
  9786. LIBS="-lkrb5 $LIBS"
  9787. fi
  9788. if test "${with_kerberos5+set}" != set; then
  9789. echo "$as_me:10609: checking for des_cbc_encrypt in -ldes425" >&5
  9790. echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
  9791. if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
  9792. echo $ECHO_N "(cached) $ECHO_C" >&6
  9793. else
  9794. ac_check_lib_save_LIBS=$LIBS
  9795. LIBS="-ldes425 $LIBS"
  9796. cat >conftest.$ac_ext <<_ACEOF
  9797. #line 10617 "configure"
  9798. #include "confdefs.h"
  9799. /* Override any gcc2 internal prototype to avoid an error. */
  9800. #ifdef __cplusplus
  9801. extern "C"
  9802. #endif
  9803. /* We use char because int might match the return type of a gcc2
  9804. builtin and then its argument prototype would still apply. */
  9805. char des_cbc_encrypt ();
  9806. int
  9807. main ()
  9808. {
  9809. des_cbc_encrypt ();
  9810. ;
  9811. return 0;
  9812. }
  9813. _ACEOF
  9814. rm -f conftest.$ac_objext conftest$ac_exeext
  9815. if { (eval echo "$as_me:10636: \"$ac_link\"") >&5
  9816. (eval $ac_link) 2>&5
  9817. ac_status=$?
  9818. echo "$as_me:10639: \$? = $ac_status" >&5
  9819. (exit $ac_status); } &&
  9820. { ac_try='test -s conftest$ac_exeext'
  9821. { (eval echo "$as_me:10642: \"$ac_try\"") >&5
  9822. (eval $ac_try) 2>&5
  9823. ac_status=$?
  9824. echo "$as_me:10645: \$? = $ac_status" >&5
  9825. (exit $ac_status); }; }; then
  9826. ac_cv_lib_des425_des_cbc_encrypt=yes
  9827. else
  9828. echo "$as_me: failed program was:" >&5
  9829. cat conftest.$ac_ext >&5
  9830. ac_cv_lib_des425_des_cbc_encrypt=no
  9831. fi
  9832. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  9833. LIBS=$ac_check_lib_save_LIBS
  9834. fi
  9835. echo "$as_me:10656: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
  9836. echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
  9837. if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
  9838. cat >>confdefs.h <<EOF
  9839. #define HAVE_LIBDES425 1
  9840. EOF
  9841. LIBS="-ldes425 $LIBS"
  9842. else
  9843. echo "$as_me:10667: checking for des_cbc_encrypt in -ldes" >&5
  9844. echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
  9845. if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
  9846. echo $ECHO_N "(cached) $ECHO_C" >&6
  9847. else
  9848. ac_check_lib_save_LIBS=$LIBS
  9849. LIBS="-ldes $LIBS"
  9850. cat >conftest.$ac_ext <<_ACEOF
  9851. #line 10675 "configure"
  9852. #include "confdefs.h"
  9853. /* Override any gcc2 internal prototype to avoid an error. */
  9854. #ifdef __cplusplus
  9855. extern "C"
  9856. #endif
  9857. /* We use char because int might match the return type of a gcc2
  9858. builtin and then its argument prototype would still apply. */
  9859. char des_cbc_encrypt ();
  9860. int
  9861. main ()
  9862. {
  9863. des_cbc_encrypt ();
  9864. ;
  9865. return 0;
  9866. }
  9867. _ACEOF
  9868. rm -f conftest.$ac_objext conftest$ac_exeext
  9869. if { (eval echo "$as_me:10694: \"$ac_link\"") >&5
  9870. (eval $ac_link) 2>&5
  9871. ac_status=$?
  9872. echo "$as_me:10697: \$? = $ac_status" >&5
  9873. (exit $ac_status); } &&
  9874. { ac_try='test -s conftest$ac_exeext'
  9875. { (eval echo "$as_me:10700: \"$ac_try\"") >&5
  9876. (eval $ac_try) 2>&5
  9877. ac_status=$?
  9878. echo "$as_me:10703: \$? = $ac_status" >&5
  9879. (exit $ac_status); }; }; then
  9880. ac_cv_lib_des_des_cbc_encrypt=yes
  9881. else
  9882. echo "$as_me: failed program was:" >&5
  9883. cat conftest.$ac_ext >&5
  9884. ac_cv_lib_des_des_cbc_encrypt=no
  9885. fi
  9886. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  9887. LIBS=$ac_check_lib_save_LIBS
  9888. fi
  9889. echo "$as_me:10714: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
  9890. echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
  9891. if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
  9892. cat >>confdefs.h <<EOF
  9893. #define HAVE_LIBDES 1
  9894. EOF
  9895. LIBS="-ldes $LIBS"
  9896. fi
  9897. fi
  9898. echo "$as_me:10727: checking for krb_get_cred in -lkrb4" >&5
  9899. echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
  9900. if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
  9901. echo $ECHO_N "(cached) $ECHO_C" >&6
  9902. else
  9903. ac_check_lib_save_LIBS=$LIBS
  9904. LIBS="-lkrb4 $LIBS"
  9905. cat >conftest.$ac_ext <<_ACEOF
  9906. #line 10735 "configure"
  9907. #include "confdefs.h"
  9908. /* Override any gcc2 internal prototype to avoid an error. */
  9909. #ifdef __cplusplus
  9910. extern "C"
  9911. #endif
  9912. /* We use char because int might match the return type of a gcc2
  9913. builtin and then its argument prototype would still apply. */
  9914. char krb_get_cred ();
  9915. int
  9916. main ()
  9917. {
  9918. krb_get_cred ();
  9919. ;
  9920. return 0;
  9921. }
  9922. _ACEOF
  9923. rm -f conftest.$ac_objext conftest$ac_exeext
  9924. if { (eval echo "$as_me:10754: \"$ac_link\"") >&5
  9925. (eval $ac_link) 2>&5
  9926. ac_status=$?
  9927. echo "$as_me:10757: \$? = $ac_status" >&5
  9928. (exit $ac_status); } &&
  9929. { ac_try='test -s conftest$ac_exeext'
  9930. { (eval echo "$as_me:10760: \"$ac_try\"") >&5
  9931. (eval $ac_try) 2>&5
  9932. ac_status=$?
  9933. echo "$as_me:10763: \$? = $ac_status" >&5
  9934. (exit $ac_status); }; }; then
  9935. ac_cv_lib_krb4_krb_get_cred=yes
  9936. else
  9937. echo "$as_me: failed program was:" >&5
  9938. cat conftest.$ac_ext >&5
  9939. ac_cv_lib_krb4_krb_get_cred=no
  9940. fi
  9941. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  9942. LIBS=$ac_check_lib_save_LIBS
  9943. fi
  9944. echo "$as_me:10774: result: $ac_cv_lib_krb4_krb_get_cred" >&5
  9945. echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
  9946. if test $ac_cv_lib_krb4_krb_get_cred = yes; then
  9947. cat >>confdefs.h <<EOF
  9948. #define HAVE_LIBKRB4 1
  9949. EOF
  9950. LIBS="-lkrb4 $LIBS"
  9951. else
  9952. echo "$as_me:10785: checking for krb_get_cred in -lkrb" >&5
  9953. echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
  9954. if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
  9955. echo $ECHO_N "(cached) $ECHO_C" >&6
  9956. else
  9957. ac_check_lib_save_LIBS=$LIBS
  9958. LIBS="-lkrb $LIBS"
  9959. cat >conftest.$ac_ext <<_ACEOF
  9960. #line 10793 "configure"
  9961. #include "confdefs.h"
  9962. /* Override any gcc2 internal prototype to avoid an error. */
  9963. #ifdef __cplusplus
  9964. extern "C"
  9965. #endif
  9966. /* We use char because int might match the return type of a gcc2
  9967. builtin and then its argument prototype would still apply. */
  9968. char krb_get_cred ();
  9969. int
  9970. main ()
  9971. {
  9972. krb_get_cred ();
  9973. ;
  9974. return 0;
  9975. }
  9976. _ACEOF
  9977. rm -f conftest.$ac_objext conftest$ac_exeext
  9978. if { (eval echo "$as_me:10812: \"$ac_link\"") >&5
  9979. (eval $ac_link) 2>&5
  9980. ac_status=$?
  9981. echo "$as_me:10815: \$? = $ac_status" >&5
  9982. (exit $ac_status); } &&
  9983. { ac_try='test -s conftest$ac_exeext'
  9984. { (eval echo "$as_me:10818: \"$ac_try\"") >&5
  9985. (eval $ac_try) 2>&5
  9986. ac_status=$?
  9987. echo "$as_me:10821: \$? = $ac_status" >&5
  9988. (exit $ac_status); }; }; then
  9989. ac_cv_lib_krb_krb_get_cred=yes
  9990. else
  9991. echo "$as_me: failed program was:" >&5
  9992. cat conftest.$ac_ext >&5
  9993. ac_cv_lib_krb_krb_get_cred=no
  9994. fi
  9995. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  9996. LIBS=$ac_check_lib_save_LIBS
  9997. fi
  9998. echo "$as_me:10832: result: $ac_cv_lib_krb_krb_get_cred" >&5
  9999. echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
  10000. if test $ac_cv_lib_krb_krb_get_cred = yes; then
  10001. cat >>confdefs.h <<EOF
  10002. #define HAVE_LIBKRB 1
  10003. EOF
  10004. LIBS="-lkrb $LIBS"
  10005. fi
  10006. fi
  10007. fi
  10008. if test "${with_kerberos5+set}" = set; then
  10009. for ac_header in krb5.h
  10010. do
  10011. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10012. echo "$as_me:10852: checking for $ac_header" >&5
  10013. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  10014. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  10015. echo $ECHO_N "(cached) $ECHO_C" >&6
  10016. else
  10017. cat >conftest.$ac_ext <<_ACEOF
  10018. #line 10858 "configure"
  10019. #include "confdefs.h"
  10020. #include <$ac_header>
  10021. _ACEOF
  10022. if { (eval echo "$as_me:10862: \"$ac_cpp conftest.$ac_ext\"") >&5
  10023. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  10024. ac_status=$?
  10025. egrep -v '^ *\+' conftest.er1 >conftest.err
  10026. rm -f conftest.er1
  10027. cat conftest.err >&5
  10028. echo "$as_me:10868: \$? = $ac_status" >&5
  10029. (exit $ac_status); } >/dev/null; then
  10030. if test -s conftest.err; then
  10031. ac_cpp_err=$ac_c_preproc_warn_flag
  10032. else
  10033. ac_cpp_err=
  10034. fi
  10035. else
  10036. ac_cpp_err=yes
  10037. fi
  10038. if test -z "$ac_cpp_err"; then
  10039. eval "$as_ac_Header=yes"
  10040. else
  10041. echo "$as_me: failed program was:" >&5
  10042. cat conftest.$ac_ext >&5
  10043. eval "$as_ac_Header=no"
  10044. fi
  10045. rm -f conftest.err conftest.$ac_ext
  10046. fi
  10047. echo "$as_me:10887: result: `eval echo '${'$as_ac_Header'}'`" >&5
  10048. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  10049. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10050. cat >>confdefs.h <<EOF
  10051. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10052. EOF
  10053. fi
  10054. done
  10055. else
  10056. for ac_header in des.h
  10057. do
  10058. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10059. echo "$as_me:10902: checking for $ac_header" >&5
  10060. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  10061. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  10062. echo $ECHO_N "(cached) $ECHO_C" >&6
  10063. else
  10064. cat >conftest.$ac_ext <<_ACEOF
  10065. #line 10908 "configure"
  10066. #include "confdefs.h"
  10067. #include <$ac_header>
  10068. _ACEOF
  10069. if { (eval echo "$as_me:10912: \"$ac_cpp conftest.$ac_ext\"") >&5
  10070. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  10071. ac_status=$?
  10072. egrep -v '^ *\+' conftest.er1 >conftest.err
  10073. rm -f conftest.er1
  10074. cat conftest.err >&5
  10075. echo "$as_me:10918: \$? = $ac_status" >&5
  10076. (exit $ac_status); } >/dev/null; then
  10077. if test -s conftest.err; then
  10078. ac_cpp_err=$ac_c_preproc_warn_flag
  10079. else
  10080. ac_cpp_err=
  10081. fi
  10082. else
  10083. ac_cpp_err=yes
  10084. fi
  10085. if test -z "$ac_cpp_err"; then
  10086. eval "$as_ac_Header=yes"
  10087. else
  10088. echo "$as_me: failed program was:" >&5
  10089. cat conftest.$ac_ext >&5
  10090. eval "$as_ac_Header=no"
  10091. fi
  10092. rm -f conftest.err conftest.$ac_ext
  10093. fi
  10094. echo "$as_me:10937: result: `eval echo '${'$as_ac_Header'}'`" >&5
  10095. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  10096. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10097. cat >>confdefs.h <<EOF
  10098. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10099. EOF
  10100. else
  10101. for ac_header in kerberosIV/des.h
  10102. do
  10103. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10104. echo "$as_me:10949: checking for $ac_header" >&5
  10105. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  10106. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  10107. echo $ECHO_N "(cached) $ECHO_C" >&6
  10108. else
  10109. cat >conftest.$ac_ext <<_ACEOF
  10110. #line 10955 "configure"
  10111. #include "confdefs.h"
  10112. #include <$ac_header>
  10113. _ACEOF
  10114. if { (eval echo "$as_me:10959: \"$ac_cpp conftest.$ac_ext\"") >&5
  10115. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  10116. ac_status=$?
  10117. egrep -v '^ *\+' conftest.er1 >conftest.err
  10118. rm -f conftest.er1
  10119. cat conftest.err >&5
  10120. echo "$as_me:10965: \$? = $ac_status" >&5
  10121. (exit $ac_status); } >/dev/null; then
  10122. if test -s conftest.err; then
  10123. ac_cpp_err=$ac_c_preproc_warn_flag
  10124. else
  10125. ac_cpp_err=
  10126. fi
  10127. else
  10128. ac_cpp_err=yes
  10129. fi
  10130. if test -z "$ac_cpp_err"; then
  10131. eval "$as_ac_Header=yes"
  10132. else
  10133. echo "$as_me: failed program was:" >&5
  10134. cat conftest.$ac_ext >&5
  10135. eval "$as_ac_Header=no"
  10136. fi
  10137. rm -f conftest.err conftest.$ac_ext
  10138. fi
  10139. echo "$as_me:10984: result: `eval echo '${'$as_ac_Header'}'`" >&5
  10140. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  10141. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10142. cat >>confdefs.h <<EOF
  10143. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10144. EOF
  10145. else
  10146. for ac_header in kerberos/des.h
  10147. do
  10148. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10149. echo "$as_me:10996: checking for $ac_header" >&5
  10150. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  10151. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  10152. echo $ECHO_N "(cached) $ECHO_C" >&6
  10153. else
  10154. cat >conftest.$ac_ext <<_ACEOF
  10155. #line 11002 "configure"
  10156. #include "confdefs.h"
  10157. #include <$ac_header>
  10158. _ACEOF
  10159. if { (eval echo "$as_me:11006: \"$ac_cpp conftest.$ac_ext\"") >&5
  10160. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  10161. ac_status=$?
  10162. egrep -v '^ *\+' conftest.er1 >conftest.err
  10163. rm -f conftest.er1
  10164. cat conftest.err >&5
  10165. echo "$as_me:11012: \$? = $ac_status" >&5
  10166. (exit $ac_status); } >/dev/null; then
  10167. if test -s conftest.err; then
  10168. ac_cpp_err=$ac_c_preproc_warn_flag
  10169. else
  10170. ac_cpp_err=
  10171. fi
  10172. else
  10173. ac_cpp_err=yes
  10174. fi
  10175. if test -z "$ac_cpp_err"; then
  10176. eval "$as_ac_Header=yes"
  10177. else
  10178. echo "$as_me: failed program was:" >&5
  10179. cat conftest.$ac_ext >&5
  10180. eval "$as_ac_Header=no"
  10181. fi
  10182. rm -f conftest.err conftest.$ac_ext
  10183. fi
  10184. echo "$as_me:11031: result: `eval echo '${'$as_ac_Header'}'`" >&5
  10185. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  10186. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10187. cat >>confdefs.h <<EOF
  10188. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10189. EOF
  10190. fi
  10191. done
  10192. fi
  10193. done
  10194. fi
  10195. done
  10196. for ac_header in krb.h
  10197. do
  10198. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10199. echo "$as_me:11050: checking for $ac_header" >&5
  10200. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  10201. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  10202. echo $ECHO_N "(cached) $ECHO_C" >&6
  10203. else
  10204. cat >conftest.$ac_ext <<_ACEOF
  10205. #line 11056 "configure"
  10206. #include "confdefs.h"
  10207. #include <$ac_header>
  10208. _ACEOF
  10209. if { (eval echo "$as_me:11060: \"$ac_cpp conftest.$ac_ext\"") >&5
  10210. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  10211. ac_status=$?
  10212. egrep -v '^ *\+' conftest.er1 >conftest.err
  10213. rm -f conftest.er1
  10214. cat conftest.err >&5
  10215. echo "$as_me:11066: \$? = $ac_status" >&5
  10216. (exit $ac_status); } >/dev/null; then
  10217. if test -s conftest.err; then
  10218. ac_cpp_err=$ac_c_preproc_warn_flag
  10219. else
  10220. ac_cpp_err=
  10221. fi
  10222. else
  10223. ac_cpp_err=yes
  10224. fi
  10225. if test -z "$ac_cpp_err"; then
  10226. eval "$as_ac_Header=yes"
  10227. else
  10228. echo "$as_me: failed program was:" >&5
  10229. cat conftest.$ac_ext >&5
  10230. eval "$as_ac_Header=no"
  10231. fi
  10232. rm -f conftest.err conftest.$ac_ext
  10233. fi
  10234. echo "$as_me:11085: result: `eval echo '${'$as_ac_Header'}'`" >&5
  10235. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  10236. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10237. cat >>confdefs.h <<EOF
  10238. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10239. EOF
  10240. else
  10241. for ac_header in kerberosIV/krb.h
  10242. do
  10243. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10244. echo "$as_me:11097: checking for $ac_header" >&5
  10245. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  10246. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  10247. echo $ECHO_N "(cached) $ECHO_C" >&6
  10248. else
  10249. cat >conftest.$ac_ext <<_ACEOF
  10250. #line 11103 "configure"
  10251. #include "confdefs.h"
  10252. #include <$ac_header>
  10253. _ACEOF
  10254. if { (eval echo "$as_me:11107: \"$ac_cpp conftest.$ac_ext\"") >&5
  10255. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  10256. ac_status=$?
  10257. egrep -v '^ *\+' conftest.er1 >conftest.err
  10258. rm -f conftest.er1
  10259. cat conftest.err >&5
  10260. echo "$as_me:11113: \$? = $ac_status" >&5
  10261. (exit $ac_status); } >/dev/null; then
  10262. if test -s conftest.err; then
  10263. ac_cpp_err=$ac_c_preproc_warn_flag
  10264. else
  10265. ac_cpp_err=
  10266. fi
  10267. else
  10268. ac_cpp_err=yes
  10269. fi
  10270. if test -z "$ac_cpp_err"; then
  10271. eval "$as_ac_Header=yes"
  10272. else
  10273. echo "$as_me: failed program was:" >&5
  10274. cat conftest.$ac_ext >&5
  10275. eval "$as_ac_Header=no"
  10276. fi
  10277. rm -f conftest.err conftest.$ac_ext
  10278. fi
  10279. echo "$as_me:11132: result: `eval echo '${'$as_ac_Header'}'`" >&5
  10280. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  10281. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10282. cat >>confdefs.h <<EOF
  10283. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10284. EOF
  10285. else
  10286. for ac_header in kerberos/krb.h
  10287. do
  10288. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10289. echo "$as_me:11144: checking for $ac_header" >&5
  10290. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  10291. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  10292. echo $ECHO_N "(cached) $ECHO_C" >&6
  10293. else
  10294. cat >conftest.$ac_ext <<_ACEOF
  10295. #line 11150 "configure"
  10296. #include "confdefs.h"
  10297. #include <$ac_header>
  10298. _ACEOF
  10299. if { (eval echo "$as_me:11154: \"$ac_cpp conftest.$ac_ext\"") >&5
  10300. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  10301. ac_status=$?
  10302. egrep -v '^ *\+' conftest.er1 >conftest.err
  10303. rm -f conftest.er1
  10304. cat conftest.err >&5
  10305. echo "$as_me:11160: \$? = $ac_status" >&5
  10306. (exit $ac_status); } >/dev/null; then
  10307. if test -s conftest.err; then
  10308. ac_cpp_err=$ac_c_preproc_warn_flag
  10309. else
  10310. ac_cpp_err=
  10311. fi
  10312. else
  10313. ac_cpp_err=yes
  10314. fi
  10315. if test -z "$ac_cpp_err"; then
  10316. eval "$as_ac_Header=yes"
  10317. else
  10318. echo "$as_me: failed program was:" >&5
  10319. cat conftest.$ac_ext >&5
  10320. eval "$as_ac_Header=no"
  10321. fi
  10322. rm -f conftest.err conftest.$ac_ext
  10323. fi
  10324. echo "$as_me:11179: result: `eval echo '${'$as_ac_Header'}'`" >&5
  10325. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  10326. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10327. cat >>confdefs.h <<EOF
  10328. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10329. EOF
  10330. fi
  10331. done
  10332. fi
  10333. done
  10334. fi
  10335. done
  10336. fi
  10337. for ac_header in com_err.h
  10338. do
  10339. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10340. echo "$as_me:11200: checking for $ac_header" >&5
  10341. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  10342. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  10343. echo $ECHO_N "(cached) $ECHO_C" >&6
  10344. else
  10345. cat >conftest.$ac_ext <<_ACEOF
  10346. #line 11206 "configure"
  10347. #include "confdefs.h"
  10348. #include <$ac_header>
  10349. _ACEOF
  10350. if { (eval echo "$as_me:11210: \"$ac_cpp conftest.$ac_ext\"") >&5
  10351. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  10352. ac_status=$?
  10353. egrep -v '^ *\+' conftest.er1 >conftest.err
  10354. rm -f conftest.er1
  10355. cat conftest.err >&5
  10356. echo "$as_me:11216: \$? = $ac_status" >&5
  10357. (exit $ac_status); } >/dev/null; then
  10358. if test -s conftest.err; then
  10359. ac_cpp_err=$ac_c_preproc_warn_flag
  10360. else
  10361. ac_cpp_err=
  10362. fi
  10363. else
  10364. ac_cpp_err=yes
  10365. fi
  10366. if test -z "$ac_cpp_err"; then
  10367. eval "$as_ac_Header=yes"
  10368. else
  10369. echo "$as_me: failed program was:" >&5
  10370. cat conftest.$ac_ext >&5
  10371. eval "$as_ac_Header=no"
  10372. fi
  10373. rm -f conftest.err conftest.$ac_ext
  10374. fi
  10375. echo "$as_me:11235: result: `eval echo '${'$as_ac_Header'}'`" >&5
  10376. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  10377. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10378. cat >>confdefs.h <<EOF
  10379. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10380. EOF
  10381. fi
  10382. done
  10383. fi
  10384. # Solaris requires -lintl if you want strerror (which calls dgettext)
  10385. # to return localized messages.
  10386. echo "$as_me:11250: checking for dgettext in -lintl" >&5
  10387. echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
  10388. if test "${ac_cv_lib_intl_dgettext+set}" = set; then
  10389. echo $ECHO_N "(cached) $ECHO_C" >&6
  10390. else
  10391. ac_check_lib_save_LIBS=$LIBS
  10392. LIBS="-lintl $LIBS"
  10393. cat >conftest.$ac_ext <<_ACEOF
  10394. #line 11258 "configure"
  10395. #include "confdefs.h"
  10396. /* Override any gcc2 internal prototype to avoid an error. */
  10397. #ifdef __cplusplus
  10398. extern "C"
  10399. #endif
  10400. /* We use char because int might match the return type of a gcc2
  10401. builtin and then its argument prototype would still apply. */
  10402. char dgettext ();
  10403. int
  10404. main ()
  10405. {
  10406. dgettext ();
  10407. ;
  10408. return 0;
  10409. }
  10410. _ACEOF
  10411. rm -f conftest.$ac_objext conftest$ac_exeext
  10412. if { (eval echo "$as_me:11277: \"$ac_link\"") >&5
  10413. (eval $ac_link) 2>&5
  10414. ac_status=$?
  10415. echo "$as_me:11280: \$? = $ac_status" >&5
  10416. (exit $ac_status); } &&
  10417. { ac_try='test -s conftest$ac_exeext'
  10418. { (eval echo "$as_me:11283: \"$ac_try\"") >&5
  10419. (eval $ac_try) 2>&5
  10420. ac_status=$?
  10421. echo "$as_me:11286: \$? = $ac_status" >&5
  10422. (exit $ac_status); }; }; then
  10423. ac_cv_lib_intl_dgettext=yes
  10424. else
  10425. echo "$as_me: failed program was:" >&5
  10426. cat conftest.$ac_ext >&5
  10427. ac_cv_lib_intl_dgettext=no
  10428. fi
  10429. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  10430. LIBS=$ac_check_lib_save_LIBS
  10431. fi
  10432. echo "$as_me:11297: result: $ac_cv_lib_intl_dgettext" >&5
  10433. echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
  10434. if test $ac_cv_lib_intl_dgettext = yes; then
  10435. cat >>confdefs.h <<EOF
  10436. #define HAVE_LIBINTL 1
  10437. EOF
  10438. LIBS="-lintl $LIBS"
  10439. fi
  10440. echo "$as_me:11308: checking whether localtime caches TZ" >&5
  10441. echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
  10442. if test "${emacs_cv_localtime_cache+set}" = set; then
  10443. echo $ECHO_N "(cached) $ECHO_C" >&6
  10444. else
  10445. if test x$ac_cv_func_tzset = xyes; then
  10446. if test "$cross_compiling" = yes; then
  10447. # If we have tzset, assume the worst when cross-compiling.
  10448. emacs_cv_localtime_cache=yes
  10449. else
  10450. cat >conftest.$ac_ext <<_ACEOF
  10451. #line 11319 "configure"
  10452. #include "confdefs.h"
  10453. #include <time.h>
  10454. extern char **environ;
  10455. unset_TZ ()
  10456. {
  10457. char **from, **to;
  10458. for (to = from = environ; (*to = *from); from++)
  10459. if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
  10460. to++;
  10461. }
  10462. char TZ_GMT0[] = "TZ=GMT0";
  10463. char TZ_PST8[] = "TZ=PST8";
  10464. main()
  10465. {
  10466. time_t now = time ((time_t *) 0);
  10467. int hour_GMT0, hour_unset;
  10468. if (putenv (TZ_GMT0) != 0)
  10469. exit (1);
  10470. hour_GMT0 = localtime (&now)->tm_hour;
  10471. unset_TZ ();
  10472. hour_unset = localtime (&now)->tm_hour;
  10473. if (putenv (TZ_PST8) != 0)
  10474. exit (1);
  10475. if (localtime (&now)->tm_hour == hour_GMT0)
  10476. exit (1);
  10477. unset_TZ ();
  10478. if (localtime (&now)->tm_hour != hour_unset)
  10479. exit (1);
  10480. exit (0);
  10481. }
  10482. _ACEOF
  10483. rm -f conftest$ac_exeext
  10484. if { (eval echo "$as_me:11352: \"$ac_link\"") >&5
  10485. (eval $ac_link) 2>&5
  10486. ac_status=$?
  10487. echo "$as_me:11355: \$? = $ac_status" >&5
  10488. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10489. { (eval echo "$as_me:11357: \"$ac_try\"") >&5
  10490. (eval $ac_try) 2>&5
  10491. ac_status=$?
  10492. echo "$as_me:11360: \$? = $ac_status" >&5
  10493. (exit $ac_status); }; }; then
  10494. emacs_cv_localtime_cache=no
  10495. else
  10496. echo "$as_me: program exited with status $ac_status" >&5
  10497. echo "$as_me: failed program was:" >&5
  10498. cat conftest.$ac_ext >&5
  10499. emacs_cv_localtime_cache=yes
  10500. fi
  10501. rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10502. fi
  10503. else
  10504. # If we lack tzset, report that localtime does not cache TZ,
  10505. # since we can't invalidate the cache if we don't have tzset.
  10506. emacs_cv_localtime_cache=no
  10507. fi
  10508. fi
  10509. echo "$as_me:11377: result: $emacs_cv_localtime_cache" >&5
  10510. echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
  10511. if test $emacs_cv_localtime_cache = yes; then
  10512. cat >>confdefs.h <<\EOF
  10513. #define LOCALTIME_CACHE 1
  10514. EOF
  10515. fi
  10516. if test "x$HAVE_TIMEVAL" = xyes; then
  10517. for ac_func in gettimeofday
  10518. do
  10519. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10520. echo "$as_me:11391: checking for $ac_func" >&5
  10521. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10522. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10523. echo $ECHO_N "(cached) $ECHO_C" >&6
  10524. else
  10525. cat >conftest.$ac_ext <<_ACEOF
  10526. #line 11397 "configure"
  10527. #include "confdefs.h"
  10528. /* System header to define __stub macros and hopefully few prototypes,
  10529. which can conflict with char $ac_func (); below. */
  10530. #include <assert.h>
  10531. /* Override any gcc2 internal prototype to avoid an error. */
  10532. #ifdef __cplusplus
  10533. extern "C"
  10534. #endif
  10535. /* We use char because int might match the return type of a gcc2
  10536. builtin and then its argument prototype would still apply. */
  10537. char $ac_func ();
  10538. char (*f) ();
  10539. int
  10540. main ()
  10541. {
  10542. /* The GNU C library defines this for functions which it implements
  10543. to always fail with ENOSYS. Some functions are actually named
  10544. something starting with __ and the normal name is an alias. */
  10545. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10546. choke me
  10547. #else
  10548. f = $ac_func;
  10549. #endif
  10550. ;
  10551. return 0;
  10552. }
  10553. _ACEOF
  10554. rm -f conftest.$ac_objext conftest$ac_exeext
  10555. if { (eval echo "$as_me:11428: \"$ac_link\"") >&5
  10556. (eval $ac_link) 2>&5
  10557. ac_status=$?
  10558. echo "$as_me:11431: \$? = $ac_status" >&5
  10559. (exit $ac_status); } &&
  10560. { ac_try='test -s conftest$ac_exeext'
  10561. { (eval echo "$as_me:11434: \"$ac_try\"") >&5
  10562. (eval $ac_try) 2>&5
  10563. ac_status=$?
  10564. echo "$as_me:11437: \$? = $ac_status" >&5
  10565. (exit $ac_status); }; }; then
  10566. eval "$as_ac_var=yes"
  10567. else
  10568. echo "$as_me: failed program was:" >&5
  10569. cat conftest.$ac_ext >&5
  10570. eval "$as_ac_var=no"
  10571. fi
  10572. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  10573. fi
  10574. echo "$as_me:11447: result: `eval echo '${'$as_ac_var'}'`" >&5
  10575. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10576. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10577. cat >>confdefs.h <<EOF
  10578. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10579. EOF
  10580. fi
  10581. done
  10582. echo "$as_me:11457: checking whether gettimeofday can accept two arguments" >&5
  10583. echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
  10584. if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
  10585. echo $ECHO_N "(cached) $ECHO_C" >&6
  10586. else
  10587. cat >conftest.$ac_ext <<_ACEOF
  10588. #line 11463 "configure"
  10589. #include "confdefs.h"
  10590. #ifdef TIME_WITH_SYS_TIME
  10591. #include <sys/time.h>
  10592. #include <time.h>
  10593. #else
  10594. #ifdef HAVE_SYS_TIME_H
  10595. #include <sys/time.h>
  10596. #else
  10597. #include <time.h>
  10598. #endif
  10599. #endif
  10600. int
  10601. main ()
  10602. {
  10603. struct timeval time;
  10604. gettimeofday (&time, 0);
  10605. ;
  10606. return 0;
  10607. }
  10608. _ACEOF
  10609. rm -f conftest.$ac_objext
  10610. if { (eval echo "$as_me:11486: \"$ac_compile\"") >&5
  10611. (eval $ac_compile) 2>&5
  10612. ac_status=$?
  10613. echo "$as_me:11489: \$? = $ac_status" >&5
  10614. (exit $ac_status); } &&
  10615. { ac_try='test -s conftest.$ac_objext'
  10616. { (eval echo "$as_me:11492: \"$ac_try\"") >&5
  10617. (eval $ac_try) 2>&5
  10618. ac_status=$?
  10619. echo "$as_me:11495: \$? = $ac_status" >&5
  10620. (exit $ac_status); }; }; then
  10621. emacs_cv_gettimeofday_two_arguments=yes
  10622. else
  10623. echo "$as_me: failed program was:" >&5
  10624. cat conftest.$ac_ext >&5
  10625. emacs_cv_gettimeofday_two_arguments=no
  10626. fi
  10627. rm -f conftest.$ac_objext conftest.$ac_ext
  10628. fi
  10629. echo "$as_me:11505: result: $emacs_cv_gettimeofday_two_arguments" >&5
  10630. echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
  10631. if test $emacs_cv_gettimeofday_two_arguments = no; then
  10632. cat >>confdefs.h <<\EOF
  10633. #define GETTIMEOFDAY_ONE_ARGUMENT 1
  10634. EOF
  10635. fi
  10636. fi
  10637. if test "$ac_cv_func_gettimeofday" = yes; then
  10638. echo "$as_me:11516: checking for struct timezone" >&5
  10639. echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
  10640. if test "${emacs_cv_struct_timezone+set}" = set; then
  10641. echo $ECHO_N "(cached) $ECHO_C" >&6
  10642. else
  10643. cat >conftest.$ac_ext <<_ACEOF
  10644. #line 11522 "configure"
  10645. #include "confdefs.h"
  10646. #include <sys/time.h>
  10647. int
  10648. main ()
  10649. {
  10650. struct timezone tz;
  10651. ;
  10652. return 0;
  10653. }
  10654. _ACEOF
  10655. rm -f conftest.$ac_objext
  10656. if { (eval echo "$as_me:11534: \"$ac_compile\"") >&5
  10657. (eval $ac_compile) 2>&5
  10658. ac_status=$?
  10659. echo "$as_me:11537: \$? = $ac_status" >&5
  10660. (exit $ac_status); } &&
  10661. { ac_try='test -s conftest.$ac_objext'
  10662. { (eval echo "$as_me:11540: \"$ac_try\"") >&5
  10663. (eval $ac_try) 2>&5
  10664. ac_status=$?
  10665. echo "$as_me:11543: \$? = $ac_status" >&5
  10666. (exit $ac_status); }; }; then
  10667. if test "$cross_compiling" = yes; then
  10668. emacs_cv_struct_timezone=yes
  10669. else
  10670. cat >conftest.$ac_ext <<_ACEOF
  10671. #line 11549 "configure"
  10672. #include "confdefs.h"
  10673. #ifdef TIME_WITH_SYS_TIME
  10674. #include <sys/time.h>
  10675. #include <time.h>
  10676. #else
  10677. #ifdef HAVE_SYS_TIME_H
  10678. #include <sys/time.h>
  10679. #else
  10680. #include <time.h>
  10681. #endif
  10682. #endif
  10683. main () {
  10684. struct timeval time;
  10685. struct timezone dummy;
  10686. exit (gettimeofday (&time, &dummy));
  10687. }
  10688. _ACEOF
  10689. rm -f conftest$ac_exeext
  10690. if { (eval echo "$as_me:11569: \"$ac_link\"") >&5
  10691. (eval $ac_link) 2>&5
  10692. ac_status=$?
  10693. echo "$as_me:11572: \$? = $ac_status" >&5
  10694. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10695. { (eval echo "$as_me:11574: \"$ac_try\"") >&5
  10696. (eval $ac_try) 2>&5
  10697. ac_status=$?
  10698. echo "$as_me:11577: \$? = $ac_status" >&5
  10699. (exit $ac_status); }; }; then
  10700. emacs_cv_struct_timezone=yes
  10701. else
  10702. echo "$as_me: program exited with status $ac_status" >&5
  10703. echo "$as_me: failed program was:" >&5
  10704. cat conftest.$ac_ext >&5
  10705. emacs_cv_struct_timezone=no
  10706. fi
  10707. rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10708. fi
  10709. else
  10710. echo "$as_me: failed program was:" >&5
  10711. cat conftest.$ac_ext >&5
  10712. emacs_cv_struct_timezone=no
  10713. fi
  10714. rm -f conftest.$ac_objext conftest.$ac_ext
  10715. fi
  10716. echo "$as_me:11595: result: $emacs_cv_struct_timezone" >&5
  10717. echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
  10718. fi
  10719. ok_so_far=yes
  10720. echo "$as_me:11600: checking for socket" >&5
  10721. echo $ECHO_N "checking for socket... $ECHO_C" >&6
  10722. if test "${ac_cv_func_socket+set}" = set; then
  10723. echo $ECHO_N "(cached) $ECHO_C" >&6
  10724. else
  10725. cat >conftest.$ac_ext <<_ACEOF
  10726. #line 11606 "configure"
  10727. #include "confdefs.h"
  10728. /* System header to define __stub macros and hopefully few prototypes,
  10729. which can conflict with char socket (); below. */
  10730. #include <assert.h>
  10731. /* Override any gcc2 internal prototype to avoid an error. */
  10732. #ifdef __cplusplus
  10733. extern "C"
  10734. #endif
  10735. /* We use char because int might match the return type of a gcc2
  10736. builtin and then its argument prototype would still apply. */
  10737. char socket ();
  10738. char (*f) ();
  10739. int
  10740. main ()
  10741. {
  10742. /* The GNU C library defines this for functions which it implements
  10743. to always fail with ENOSYS. Some functions are actually named
  10744. something starting with __ and the normal name is an alias. */
  10745. #if defined (__stub_socket) || defined (__stub___socket)
  10746. choke me
  10747. #else
  10748. f = socket;
  10749. #endif
  10750. ;
  10751. return 0;
  10752. }
  10753. _ACEOF
  10754. rm -f conftest.$ac_objext conftest$ac_exeext
  10755. if { (eval echo "$as_me:11637: \"$ac_link\"") >&5
  10756. (eval $ac_link) 2>&5
  10757. ac_status=$?
  10758. echo "$as_me:11640: \$? = $ac_status" >&5
  10759. (exit $ac_status); } &&
  10760. { ac_try='test -s conftest$ac_exeext'
  10761. { (eval echo "$as_me:11643: \"$ac_try\"") >&5
  10762. (eval $ac_try) 2>&5
  10763. ac_status=$?
  10764. echo "$as_me:11646: \$? = $ac_status" >&5
  10765. (exit $ac_status); }; }; then
  10766. ac_cv_func_socket=yes
  10767. else
  10768. echo "$as_me: failed program was:" >&5
  10769. cat conftest.$ac_ext >&5
  10770. ac_cv_func_socket=no
  10771. fi
  10772. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  10773. fi
  10774. echo "$as_me:11656: result: $ac_cv_func_socket" >&5
  10775. echo "${ECHO_T}$ac_cv_func_socket" >&6
  10776. if test $ac_cv_func_socket = yes; then
  10777. :
  10778. else
  10779. ok_so_far=no
  10780. fi
  10781. if test $ok_so_far = yes; then
  10782. echo "$as_me:11665: checking for netinet/in.h" >&5
  10783. echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
  10784. if test "${ac_cv_header_netinet_in_h+set}" = set; then
  10785. echo $ECHO_N "(cached) $ECHO_C" >&6
  10786. else
  10787. cat >conftest.$ac_ext <<_ACEOF
  10788. #line 11671 "configure"
  10789. #include "confdefs.h"
  10790. #include <netinet/in.h>
  10791. _ACEOF
  10792. if { (eval echo "$as_me:11675: \"$ac_cpp conftest.$ac_ext\"") >&5
  10793. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  10794. ac_status=$?
  10795. egrep -v '^ *\+' conftest.er1 >conftest.err
  10796. rm -f conftest.er1
  10797. cat conftest.err >&5
  10798. echo "$as_me:11681: \$? = $ac_status" >&5
  10799. (exit $ac_status); } >/dev/null; then
  10800. if test -s conftest.err; then
  10801. ac_cpp_err=$ac_c_preproc_warn_flag
  10802. else
  10803. ac_cpp_err=
  10804. fi
  10805. else
  10806. ac_cpp_err=yes
  10807. fi
  10808. if test -z "$ac_cpp_err"; then
  10809. ac_cv_header_netinet_in_h=yes
  10810. else
  10811. echo "$as_me: failed program was:" >&5
  10812. cat conftest.$ac_ext >&5
  10813. ac_cv_header_netinet_in_h=no
  10814. fi
  10815. rm -f conftest.err conftest.$ac_ext
  10816. fi
  10817. echo "$as_me:11700: result: $ac_cv_header_netinet_in_h" >&5
  10818. echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
  10819. if test $ac_cv_header_netinet_in_h = yes; then
  10820. :
  10821. else
  10822. ok_so_far=no
  10823. fi
  10824. fi
  10825. if test $ok_so_far = yes; then
  10826. echo "$as_me:11710: checking for arpa/inet.h" >&5
  10827. echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
  10828. if test "${ac_cv_header_arpa_inet_h+set}" = set; then
  10829. echo $ECHO_N "(cached) $ECHO_C" >&6
  10830. else
  10831. cat >conftest.$ac_ext <<_ACEOF
  10832. #line 11716 "configure"
  10833. #include "confdefs.h"
  10834. #include <arpa/inet.h>
  10835. _ACEOF
  10836. if { (eval echo "$as_me:11720: \"$ac_cpp conftest.$ac_ext\"") >&5
  10837. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  10838. ac_status=$?
  10839. egrep -v '^ *\+' conftest.er1 >conftest.err
  10840. rm -f conftest.er1
  10841. cat conftest.err >&5
  10842. echo "$as_me:11726: \$? = $ac_status" >&5
  10843. (exit $ac_status); } >/dev/null; then
  10844. if test -s conftest.err; then
  10845. ac_cpp_err=$ac_c_preproc_warn_flag
  10846. else
  10847. ac_cpp_err=
  10848. fi
  10849. else
  10850. ac_cpp_err=yes
  10851. fi
  10852. if test -z "$ac_cpp_err"; then
  10853. ac_cv_header_arpa_inet_h=yes
  10854. else
  10855. echo "$as_me: failed program was:" >&5
  10856. cat conftest.$ac_ext >&5
  10857. ac_cv_header_arpa_inet_h=no
  10858. fi
  10859. rm -f conftest.err conftest.$ac_ext
  10860. fi
  10861. echo "$as_me:11745: result: $ac_cv_header_arpa_inet_h" >&5
  10862. echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
  10863. if test $ac_cv_header_arpa_inet_h = yes; then
  10864. :
  10865. else
  10866. ok_so_far=no
  10867. fi
  10868. fi
  10869. if test $ok_so_far = yes; then
  10870. cat >>confdefs.h <<\EOF
  10871. #define HAVE_INET_SOCKETS 1
  10872. EOF
  10873. fi
  10874. if test -f /usr/lpp/X11/bin/smt.exp; then
  10875. cat >>confdefs.h <<\EOF
  10876. #define HAVE_AIX_SMT_EXP 1
  10877. EOF
  10878. fi
  10879. echo "$as_me:11768: checking whether system supports dynamic ptys" >&5
  10880. echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
  10881. if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
  10882. echo "$as_me:11771: result: yes" >&5
  10883. echo "${ECHO_T}yes" >&6
  10884. cat >>confdefs.h <<\EOF
  10885. #define HAVE_DEV_PTMX 1
  10886. EOF
  10887. else
  10888. echo "$as_me:11778: result: no" >&5
  10889. echo "${ECHO_T}no" >&6
  10890. fi
  10891. echo "$as_me:11782: checking for pid_t" >&5
  10892. echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
  10893. if test "${ac_cv_type_pid_t+set}" = set; then
  10894. echo $ECHO_N "(cached) $ECHO_C" >&6
  10895. else
  10896. cat >conftest.$ac_ext <<_ACEOF
  10897. #line 11788 "configure"
  10898. #include "confdefs.h"
  10899. $ac_includes_default
  10900. int
  10901. main ()
  10902. {
  10903. if ((pid_t *) 0)
  10904. return 0;
  10905. if (sizeof (pid_t))
  10906. return 0;
  10907. ;
  10908. return 0;
  10909. }
  10910. _ACEOF
  10911. rm -f conftest.$ac_objext
  10912. if { (eval echo "$as_me:11803: \"$ac_compile\"") >&5
  10913. (eval $ac_compile) 2>&5
  10914. ac_status=$?
  10915. echo "$as_me:11806: \$? = $ac_status" >&5
  10916. (exit $ac_status); } &&
  10917. { ac_try='test -s conftest.$ac_objext'
  10918. { (eval echo "$as_me:11809: \"$ac_try\"") >&5
  10919. (eval $ac_try) 2>&5
  10920. ac_status=$?
  10921. echo "$as_me:11812: \$? = $ac_status" >&5
  10922. (exit $ac_status); }; }; then
  10923. ac_cv_type_pid_t=yes
  10924. else
  10925. echo "$as_me: failed program was:" >&5
  10926. cat conftest.$ac_ext >&5
  10927. ac_cv_type_pid_t=no
  10928. fi
  10929. rm -f conftest.$ac_objext conftest.$ac_ext
  10930. fi
  10931. echo "$as_me:11822: result: $ac_cv_type_pid_t" >&5
  10932. echo "${ECHO_T}$ac_cv_type_pid_t" >&6
  10933. if test $ac_cv_type_pid_t = yes; then
  10934. :
  10935. else
  10936. cat >>confdefs.h <<EOF
  10937. #define pid_t int
  10938. EOF
  10939. fi
  10940. for ac_header in unistd.h vfork.h
  10941. do
  10942. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10943. echo "$as_me:11837: checking for $ac_header" >&5
  10944. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  10945. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  10946. echo $ECHO_N "(cached) $ECHO_C" >&6
  10947. else
  10948. cat >conftest.$ac_ext <<_ACEOF
  10949. #line 11843 "configure"
  10950. #include "confdefs.h"
  10951. #include <$ac_header>
  10952. _ACEOF
  10953. if { (eval echo "$as_me:11847: \"$ac_cpp conftest.$ac_ext\"") >&5
  10954. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  10955. ac_status=$?
  10956. egrep -v '^ *\+' conftest.er1 >conftest.err
  10957. rm -f conftest.er1
  10958. cat conftest.err >&5
  10959. echo "$as_me:11853: \$? = $ac_status" >&5
  10960. (exit $ac_status); } >/dev/null; then
  10961. if test -s conftest.err; then
  10962. ac_cpp_err=$ac_c_preproc_warn_flag
  10963. else
  10964. ac_cpp_err=
  10965. fi
  10966. else
  10967. ac_cpp_err=yes
  10968. fi
  10969. if test -z "$ac_cpp_err"; then
  10970. eval "$as_ac_Header=yes"
  10971. else
  10972. echo "$as_me: failed program was:" >&5
  10973. cat conftest.$ac_ext >&5
  10974. eval "$as_ac_Header=no"
  10975. fi
  10976. rm -f conftest.err conftest.$ac_ext
  10977. fi
  10978. echo "$as_me:11872: result: `eval echo '${'$as_ac_Header'}'`" >&5
  10979. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  10980. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10981. cat >>confdefs.h <<EOF
  10982. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10983. EOF
  10984. fi
  10985. done
  10986. for ac_func in fork vfork
  10987. do
  10988. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10989. echo "$as_me:11885: checking for $ac_func" >&5
  10990. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10991. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10992. echo $ECHO_N "(cached) $ECHO_C" >&6
  10993. else
  10994. cat >conftest.$ac_ext <<_ACEOF
  10995. #line 11891 "configure"
  10996. #include "confdefs.h"
  10997. /* System header to define __stub macros and hopefully few prototypes,
  10998. which can conflict with char $ac_func (); below. */
  10999. #include <assert.h>
  11000. /* Override any gcc2 internal prototype to avoid an error. */
  11001. #ifdef __cplusplus
  11002. extern "C"
  11003. #endif
  11004. /* We use char because int might match the return type of a gcc2
  11005. builtin and then its argument prototype would still apply. */
  11006. char $ac_func ();
  11007. char (*f) ();
  11008. int
  11009. main ()
  11010. {
  11011. /* The GNU C library defines this for functions which it implements
  11012. to always fail with ENOSYS. Some functions are actually named
  11013. something starting with __ and the normal name is an alias. */
  11014. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  11015. choke me
  11016. #else
  11017. f = $ac_func;
  11018. #endif
  11019. ;
  11020. return 0;
  11021. }
  11022. _ACEOF
  11023. rm -f conftest.$ac_objext conftest$ac_exeext
  11024. if { (eval echo "$as_me:11922: \"$ac_link\"") >&5
  11025. (eval $ac_link) 2>&5
  11026. ac_status=$?
  11027. echo "$as_me:11925: \$? = $ac_status" >&5
  11028. (exit $ac_status); } &&
  11029. { ac_try='test -s conftest$ac_exeext'
  11030. { (eval echo "$as_me:11928: \"$ac_try\"") >&5
  11031. (eval $ac_try) 2>&5
  11032. ac_status=$?
  11033. echo "$as_me:11931: \$? = $ac_status" >&5
  11034. (exit $ac_status); }; }; then
  11035. eval "$as_ac_var=yes"
  11036. else
  11037. echo "$as_me: failed program was:" >&5
  11038. cat conftest.$ac_ext >&5
  11039. eval "$as_ac_var=no"
  11040. fi
  11041. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  11042. fi
  11043. echo "$as_me:11941: result: `eval echo '${'$as_ac_var'}'`" >&5
  11044. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  11045. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11046. cat >>confdefs.h <<EOF
  11047. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11048. EOF
  11049. fi
  11050. done
  11051. ac_cv_func_fork_works=$ac_cv_func_fork
  11052. if test "x$ac_cv_func_fork" = xyes; then
  11053. echo "$as_me:11953: checking for working fork" >&5
  11054. echo $ECHO_N "checking for working fork... $ECHO_C" >&6
  11055. if test "${ac_cv_func_fork_works+set}" = set; then
  11056. echo $ECHO_N "(cached) $ECHO_C" >&6
  11057. else
  11058. if test "$cross_compiling" = yes; then
  11059. ac_cv_func_fork_works=cross
  11060. else
  11061. cat >conftest.$ac_ext <<_ACEOF
  11062. /* By Rüdiger Kuhlmann. */
  11063. #include <sys/types.h>
  11064. #if HAVE_UNISTD_H
  11065. # include <unistd.h>
  11066. #endif
  11067. /* Some systems only have a dummy stub for fork() */
  11068. int main ()
  11069. {
  11070. if (fork() < 0)
  11071. exit (1);
  11072. exit (0);
  11073. }
  11074. _ACEOF
  11075. rm -f conftest$ac_exeext
  11076. if { (eval echo "$as_me:11976: \"$ac_link\"") >&5
  11077. (eval $ac_link) 2>&5
  11078. ac_status=$?
  11079. echo "$as_me:11979: \$? = $ac_status" >&5
  11080. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  11081. { (eval echo "$as_me:11981: \"$ac_try\"") >&5
  11082. (eval $ac_try) 2>&5
  11083. ac_status=$?
  11084. echo "$as_me:11984: \$? = $ac_status" >&5
  11085. (exit $ac_status); }; }; then
  11086. ac_cv_func_fork_works=yes
  11087. else
  11088. echo "$as_me: program exited with status $ac_status" >&5
  11089. echo "$as_me: failed program was:" >&5
  11090. cat conftest.$ac_ext >&5
  11091. ac_cv_func_fork_works=no
  11092. fi
  11093. rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  11094. fi
  11095. fi
  11096. echo "$as_me:11996: result: $ac_cv_func_fork_works" >&5
  11097. echo "${ECHO_T}$ac_cv_func_fork_works" >&6
  11098. fi
  11099. if test "x$ac_cv_func_fork_works" = xcross; then
  11100. case $host in
  11101. *-*-amigaos* | *-*-msdosdjgpp*)
  11102. # Override, as these systems have only a dummy fork() stub
  11103. ac_cv_func_fork_works=no
  11104. ;;
  11105. *)
  11106. ac_cv_func_fork_works=yes
  11107. ;;
  11108. esac
  11109. { echo "$as_me:12010: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&5
  11110. echo "$as_me: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&2;}
  11111. fi
  11112. ac_cv_func_vfork_works=$ac_cv_func_vfork
  11113. if test "x$ac_cv_func_vfork" = xyes; then
  11114. echo "$as_me:12015: checking for working vfork" >&5
  11115. echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
  11116. if test "${ac_cv_func_vfork_works+set}" = set; then
  11117. echo $ECHO_N "(cached) $ECHO_C" >&6
  11118. else
  11119. if test "$cross_compiling" = yes; then
  11120. ac_cv_func_vfork_works=cross
  11121. else
  11122. cat >conftest.$ac_ext <<_ACEOF
  11123. #line 12024 "configure"
  11124. #include "confdefs.h"
  11125. /* Thanks to Paul Eggert for this test. */
  11126. #include <stdio.h>
  11127. #include <sys/types.h>
  11128. #include <sys/stat.h>
  11129. #if HAVE_UNISTD_H
  11130. # include <unistd.h>
  11131. #endif
  11132. #if HAVE_VFORK_H
  11133. # include <vfork.h>
  11134. #endif
  11135. /* On some sparc systems, changes by the child to local and incoming
  11136. argument registers are propagated back to the parent. The compiler
  11137. is told about this with #include <vfork.h>, but some compilers
  11138. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  11139. static variable whose address is put into a register that is
  11140. clobbered by the vfork. */
  11141. static
  11142. #ifdef __cplusplus
  11143. sparc_address_test (int arg)
  11144. # else
  11145. sparc_address_test (arg) int arg;
  11146. #endif
  11147. {
  11148. static pid_t child;
  11149. if (!child) {
  11150. child = vfork ();
  11151. if (child < 0) {
  11152. perror ("vfork");
  11153. _exit(2);
  11154. }
  11155. if (!child) {
  11156. arg = getpid();
  11157. write(-1, "", 0);
  11158. _exit (arg);
  11159. }
  11160. }
  11161. }
  11162. int
  11163. main ()
  11164. {
  11165. pid_t parent = getpid ();
  11166. pid_t child;
  11167. sparc_address_test ();
  11168. child = vfork ();
  11169. if (child == 0) {
  11170. /* Here is another test for sparc vfork register problems. This
  11171. test uses lots of local variables, at least as many local
  11172. variables as main has allocated so far including compiler
  11173. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  11174. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  11175. reuse the register of parent for one of the local variables,
  11176. since it will think that parent can't possibly be used any more
  11177. in this routine. Assigning to the local variable will thus
  11178. munge parent in the parent process. */
  11179. pid_t
  11180. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  11181. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  11182. /* Convince the compiler that p..p7 are live; otherwise, it might
  11183. use the same hardware register for all 8 local variables. */
  11184. if (p != p1 || p != p2 || p != p3 || p != p4
  11185. || p != p5 || p != p6 || p != p7)
  11186. _exit(1);
  11187. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  11188. from child file descriptors. If the child closes a descriptor
  11189. before it execs or exits, this munges the parent's descriptor
  11190. as well. Test for this by closing stdout in the child. */
  11191. _exit(close(fileno(stdout)) != 0);
  11192. } else {
  11193. int status;
  11194. struct stat st;
  11195. while (wait(&status) != child)
  11196. ;
  11197. exit(
  11198. /* Was there some problem with vforking? */
  11199. child < 0
  11200. /* Did the child fail? (This shouldn't happen.) */
  11201. || status
  11202. /* Did the vfork/compiler bug occur? */
  11203. || parent != getpid()
  11204. /* Did the file descriptor bug occur? */
  11205. || fstat(fileno(stdout), &st) != 0
  11206. );
  11207. }
  11208. }
  11209. _ACEOF
  11210. rm -f conftest$ac_exeext
  11211. if { (eval echo "$as_me:12121: \"$ac_link\"") >&5
  11212. (eval $ac_link) 2>&5
  11213. ac_status=$?
  11214. echo "$as_me:12124: \$? = $ac_status" >&5
  11215. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  11216. { (eval echo "$as_me:12126: \"$ac_try\"") >&5
  11217. (eval $ac_try) 2>&5
  11218. ac_status=$?
  11219. echo "$as_me:12129: \$? = $ac_status" >&5
  11220. (exit $ac_status); }; }; then
  11221. ac_cv_func_vfork_works=yes
  11222. else
  11223. echo "$as_me: program exited with status $ac_status" >&5
  11224. echo "$as_me: failed program was:" >&5
  11225. cat conftest.$ac_ext >&5
  11226. ac_cv_func_vfork_works=no
  11227. fi
  11228. rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  11229. fi
  11230. fi
  11231. echo "$as_me:12141: result: $ac_cv_func_vfork_works" >&5
  11232. echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
  11233. fi;
  11234. if test "x$ac_cv_func_fork_works" = xcross; then
  11235. ac_cv_func_vfork_works=ac_cv_func_vfork
  11236. { echo "$as_me:12147: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&5
  11237. echo "$as_me: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&2;}
  11238. fi
  11239. if test "x$ac_cv_func_vfork_works" = xyes; then
  11240. cat >>confdefs.h <<\EOF
  11241. #define HAVE_WORKING_VFORK 1
  11242. EOF
  11243. else
  11244. cat >>confdefs.h <<\EOF
  11245. #define vfork fork
  11246. EOF
  11247. fi
  11248. if test "x$ac_cv_func_fork_works" = xyes; then
  11249. cat >>confdefs.h <<\EOF
  11250. #define HAVE_WORKING_FORK 1
  11251. EOF
  11252. fi
  11253. # Fixme: This should be replaced when we have autoconf 2.14.
  11254. echo "$as_me:12173: checking for size_t" >&5
  11255. echo $ECHO_N "checking for size_t... $ECHO_C" >&6
  11256. if test "${ac_cv_type_size_t+set}" = set; then
  11257. echo $ECHO_N "(cached) $ECHO_C" >&6
  11258. else
  11259. cat >conftest.$ac_ext <<_ACEOF
  11260. #line 12179 "configure"
  11261. #include "confdefs.h"
  11262. $ac_includes_default
  11263. int
  11264. main ()
  11265. {
  11266. if ((size_t *) 0)
  11267. return 0;
  11268. if (sizeof (size_t))
  11269. return 0;
  11270. ;
  11271. return 0;
  11272. }
  11273. _ACEOF
  11274. rm -f conftest.$ac_objext
  11275. if { (eval echo "$as_me:12194: \"$ac_compile\"") >&5
  11276. (eval $ac_compile) 2>&5
  11277. ac_status=$?
  11278. echo "$as_me:12197: \$? = $ac_status" >&5
  11279. (exit $ac_status); } &&
  11280. { ac_try='test -s conftest.$ac_objext'
  11281. { (eval echo "$as_me:12200: \"$ac_try\"") >&5
  11282. (eval $ac_try) 2>&5
  11283. ac_status=$?
  11284. echo "$as_me:12203: \$? = $ac_status" >&5
  11285. (exit $ac_status); }; }; then
  11286. ac_cv_type_size_t=yes
  11287. else
  11288. echo "$as_me: failed program was:" >&5
  11289. cat conftest.$ac_ext >&5
  11290. ac_cv_type_size_t=no
  11291. fi
  11292. rm -f conftest.$ac_objext conftest.$ac_ext
  11293. fi
  11294. echo "$as_me:12213: result: $ac_cv_type_size_t" >&5
  11295. echo "${ECHO_T}$ac_cv_type_size_t" >&6
  11296. if test $ac_cv_type_size_t = yes; then
  11297. :
  11298. else
  11299. cat >>confdefs.h <<EOF
  11300. #define size_t unsigned
  11301. EOF
  11302. fi
  11303. # Set up the CFLAGS for real compilation, so we can substitute it.
  11304. CFLAGS="$REAL_CFLAGS"
  11305. CPPFLAGS="$REAL_CPPFLAGS"
  11306. #### Find out which version of Emacs this is.
  11307. version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
  11308. | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
  11309. if test x"${version}" = x; then
  11310. { { echo "$as_me:12233: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
  11311. echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
  11312. { (exit 1); exit 1; }; }
  11313. fi
  11314. ### Specify what sort of things we'll be editing into Makefile and config.h.
  11315. ### Use configuration here uncanonicalized to avoid exceeding size limits.
  11316. cat >>confdefs.h <<EOF
  11317. #define EMACS_CONFIGURATION "${canonical}"
  11318. EOF
  11319. cat >>confdefs.h <<EOF
  11320. #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
  11321. EOF
  11322. cat >>confdefs.h <<EOF
  11323. #define config_machfile "${machfile}"
  11324. EOF
  11325. cat >>confdefs.h <<EOF
  11326. #define config_opsysfile "${opsysfile}"
  11327. EOF
  11328. cat >>confdefs.h <<EOF
  11329. #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
  11330. EOF
  11331. cat >>confdefs.h <<EOF
  11332. #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
  11333. EOF
  11334. cat >>confdefs.h <<EOF
  11335. #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
  11336. EOF
  11337. cat >>confdefs.h <<EOF
  11338. #define UNEXEC_SRC ${UNEXEC_SRC}
  11339. EOF
  11340. if test "${HAVE_X_WINDOWS}" = "yes" ; then
  11341. cat >>confdefs.h <<\EOF
  11342. #define HAVE_X_WINDOWS 1
  11343. EOF
  11344. fi
  11345. if test "${USE_X_TOOLKIT}" != "none" ; then
  11346. cat >>confdefs.h <<\EOF
  11347. #define USE_X_TOOLKIT 1
  11348. EOF
  11349. fi
  11350. if test "${HAVE_X11}" = "yes" ; then
  11351. cat >>confdefs.h <<\EOF
  11352. #define HAVE_X11 1
  11353. EOF
  11354. fi
  11355. if test "${HAVE_XFREE386}" = "yes" ; then
  11356. cat >>confdefs.h <<\EOF
  11357. #define HAVE_XFREE386 1
  11358. EOF
  11359. fi
  11360. if test "${HAVE_MENUS}" = "yes" ; then
  11361. cat >>confdefs.h <<\EOF
  11362. #define HAVE_MENUS 1
  11363. EOF
  11364. fi
  11365. if test "${GNU_MALLOC}" = "yes" ; then
  11366. cat >>confdefs.h <<\EOF
  11367. #define GNU_MALLOC 1
  11368. EOF
  11369. fi
  11370. if test "${REL_ALLOC}" = "yes" ; then
  11371. cat >>confdefs.h <<\EOF
  11372. #define REL_ALLOC 1
  11373. EOF
  11374. fi
  11375. for ac_header in nlist.h
  11376. do
  11377. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11378. echo "$as_me:12319: checking for $ac_header" >&5
  11379. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  11380. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  11381. echo $ECHO_N "(cached) $ECHO_C" >&6
  11382. else
  11383. cat >conftest.$ac_ext <<_ACEOF
  11384. #line 12325 "configure"
  11385. #include "confdefs.h"
  11386. #include <$ac_header>
  11387. _ACEOF
  11388. if { (eval echo "$as_me:12329: \"$ac_cpp conftest.$ac_ext\"") >&5
  11389. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  11390. ac_status=$?
  11391. egrep -v '^ *\+' conftest.er1 >conftest.err
  11392. rm -f conftest.er1
  11393. cat conftest.err >&5
  11394. echo "$as_me:12335: \$? = $ac_status" >&5
  11395. (exit $ac_status); } >/dev/null; then
  11396. if test -s conftest.err; then
  11397. ac_cpp_err=$ac_c_preproc_warn_flag
  11398. else
  11399. ac_cpp_err=
  11400. fi
  11401. else
  11402. ac_cpp_err=yes
  11403. fi
  11404. if test -z "$ac_cpp_err"; then
  11405. eval "$as_ac_Header=yes"
  11406. else
  11407. echo "$as_me: failed program was:" >&5
  11408. cat conftest.$ac_ext >&5
  11409. eval "$as_ac_Header=no"
  11410. fi
  11411. rm -f conftest.err conftest.$ac_ext
  11412. fi
  11413. echo "$as_me:12354: result: `eval echo '${'$as_ac_Header'}'`" >&5
  11414. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  11415. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  11416. cat >>confdefs.h <<EOF
  11417. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11418. EOF
  11419. cat >>confdefs.h <<\EOF
  11420. #define NLIST_STRUCT 1
  11421. EOF
  11422. fi
  11423. done
  11424. #### Report on what we decided to do.
  11425. echo "
  11426. Configured for \`${canonical}'.
  11427. Where should the build process find the source code? ${srcdir}
  11428. What operating system and machine description files should Emacs use?
  11429. \`${opsysfile}' and \`${machfile}'
  11430. What compiler should emacs be built with? ${CC} ${CFLAGS}
  11431. Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
  11432. Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
  11433. Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
  11434. What window system should Emacs use? ${window_system}
  11435. What toolkit should Emacs use? ${USE_X_TOOLKIT}"
  11436. if test -n "${x_includes}"; then
  11437. echo " Where do we find X Windows header files? ${x_includes}"
  11438. else
  11439. echo " Where do we find X Windows header files? Standard dirs"
  11440. fi
  11441. if test -n "${x_libraries}"; then
  11442. echo " Where do we find X Windows libraries? ${x_libraries}"
  11443. else
  11444. echo " Where do we find X Windows libraries? Standard dirs"
  11445. fi
  11446. echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
  11447. echo " Does Emacs use -lXpm? ${HAVE_XPM}"
  11448. echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
  11449. echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
  11450. echo " Does Emacs use -lungif? ${HAVE_GIF}"
  11451. echo " Does Emacs use -lpng? ${HAVE_PNG}"
  11452. echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
  11453. echo
  11454. # Remove any trailing slashes in these variables.
  11455. test "${prefix}" != NONE &&
  11456. prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
  11457. test "${exec_prefix}" != NONE &&
  11458. exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
  11459. ## Check if the C preprocessor will convert `..' to `. .'. If so, set
  11460. ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
  11461. ## from Makefile.c can correctly provide the arg `-traditional' to the
  11462. ## C preprocessor.
  11463. cat >conftest.$ac_ext <<_ACEOF
  11464. #line 12414 "configure"
  11465. #include "confdefs.h"
  11466. yes..yes
  11467. _ACEOF
  11468. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11469. egrep "yes..yes" >/dev/null 2>&1; then
  11470. CPP_NEED_TRADITIONAL=no
  11471. else
  11472. CPP_NEED_TRADITIONAL=yes
  11473. fi
  11474. rm -f conftest*
  11475. ac_config_files="$ac_config_files Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile man/Makefile lwlib/Makefile src/Makefile.c:src/Makefile.in lisp/Makefile lispref/Makefile lispintro/Makefile leim/Makefile"
  11476. ac_config_commands="$ac_config_commands default"
  11477. cat >confcache <<\_ACEOF
  11478. # This file is a shell script that caches the results of configure
  11479. # tests run on this system so they can be shared between configure
  11480. # scripts and configure runs, see configure's option --config-cache.
  11481. # It is not useful on other systems. If it contains results you don't
  11482. # want to keep, you may remove or edit it.
  11483. #
  11484. # config.status only pays attention to the cache file if you give it
  11485. # the --recheck option to rerun configure.
  11486. #
  11487. # `ac_cv_env_foo' variables (set or unset) will be overriden when
  11488. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11489. # following values.
  11490. _ACEOF
  11491. # The following way of writing the cache mishandles newlines in values,
  11492. # but we know of no workaround that is simple, portable, and efficient.
  11493. # So, don't put newlines in cache variables' values.
  11494. # Ultrix sh set writes to stderr and can't be redirected directly,
  11495. # and sets the high bit in the cache file unless we assign to the vars.
  11496. {
  11497. (set) 2>&1 |
  11498. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  11499. *ac_space=\ *)
  11500. # `set' does not quote correctly, so add quotes (double-quote
  11501. # substitution turns \\\\ into \\, and sed turns \\ into \).
  11502. sed -n \
  11503. "s/'/'\\\\''/g;
  11504. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11505. ;;
  11506. *)
  11507. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11508. sed -n \
  11509. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  11510. ;;
  11511. esac;
  11512. } |
  11513. sed '
  11514. t clear
  11515. : clear
  11516. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11517. t end
  11518. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11519. : end' >>confcache
  11520. if cmp -s $cache_file confcache; then :; else
  11521. if test -w $cache_file; then
  11522. test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  11523. cat confcache >$cache_file
  11524. else
  11525. echo "not updating unwritable cache $cache_file"
  11526. fi
  11527. fi
  11528. rm -f confcache
  11529. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  11530. # Let make expand exec_prefix.
  11531. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  11532. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  11533. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  11534. # trailing colons and then remove the whole line if VPATH becomes empty
  11535. # (actually we leave an empty line to preserve line numbers).
  11536. if test "x$srcdir" = x.; then
  11537. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  11538. s/:*\$(srcdir):*/:/;
  11539. s/:*\${srcdir}:*/:/;
  11540. s/:*@srcdir@:*/:/;
  11541. s/^\([^=]*=[ ]*\):*/\1/;
  11542. s/:*$//;
  11543. s/^[^=]*=[ ]*$//;
  11544. }'
  11545. fi
  11546. DEFS=-DHAVE_CONFIG_H
  11547. : ${CONFIG_STATUS=./config.status}
  11548. ac_clean_files_save=$ac_clean_files
  11549. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  11550. { echo "$as_me:12507: creating $CONFIG_STATUS" >&5
  11551. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  11552. cat >$CONFIG_STATUS <<_ACEOF
  11553. #! $SHELL
  11554. # Generated automatically by configure.
  11555. # Run this file to recreate the current configuration.
  11556. # Compiler output produced by configure, useful for debugging
  11557. # configure, is in config.log if it exists.
  11558. debug=false
  11559. SHELL=\${CONFIG_SHELL-$SHELL}
  11560. ac_cs_invocation="\$0 \$@"
  11561. _ACEOF
  11562. cat >>$CONFIG_STATUS <<\_ACEOF
  11563. # Be Bourne compatible
  11564. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  11565. emulate sh
  11566. NULLCMD=:
  11567. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  11568. set -o posix
  11569. fi
  11570. # Name of the executable.
  11571. as_me=`echo "$0" |sed 's,.*[\\/],,'`
  11572. if expr a : '\(a\)' >/dev/null 2>&1; then
  11573. as_expr=expr
  11574. else
  11575. as_expr=false
  11576. fi
  11577. rm -f conf$$ conf$$.exe conf$$.file
  11578. echo >conf$$.file
  11579. if ln -s conf$$.file conf$$ 2>/dev/null; then
  11580. # We could just check for DJGPP; but this test a) works b) is more generic
  11581. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  11582. if test -f conf$$.exe; then
  11583. # Don't use ln at all; we don't have any links
  11584. as_ln_s='cp -p'
  11585. else
  11586. as_ln_s='ln -s'
  11587. fi
  11588. elif ln conf$$.file conf$$ 2>/dev/null; then
  11589. as_ln_s=ln
  11590. else
  11591. as_ln_s='cp -p'
  11592. fi
  11593. rm -f conf$$ conf$$.exe conf$$.file
  11594. as_executable_p="test -f"
  11595. # Support unset when possible.
  11596. if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
  11597. as_unset=unset
  11598. else
  11599. as_unset=false
  11600. fi
  11601. # NLS nuisances.
  11602. $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
  11603. $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
  11604. $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
  11605. $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
  11606. $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
  11607. $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
  11608. $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
  11609. $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
  11610. # IFS
  11611. # We need space, tab and new line, in precisely that order.
  11612. as_nl='
  11613. '
  11614. IFS=" $as_nl"
  11615. # CDPATH.
  11616. $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
  11617. exec 6>&1
  11618. _ACEOF
  11619. # Files that config.status was made for.
  11620. if test -n "$ac_config_files"; then
  11621. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  11622. fi
  11623. if test -n "$ac_config_headers"; then
  11624. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  11625. fi
  11626. if test -n "$ac_config_links"; then
  11627. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  11628. fi
  11629. if test -n "$ac_config_commands"; then
  11630. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  11631. fi
  11632. cat >>$CONFIG_STATUS <<\EOF
  11633. ac_cs_usage="\
  11634. \`$as_me' instantiates files from templates according to the
  11635. current configuration.
  11636. Usage: $0 [OPTIONS] [FILE]...
  11637. -h, --help print this help, then exit
  11638. -V, --version print version number, then exit
  11639. -d, --debug don't remove temporary files
  11640. --recheck update $as_me by reconfiguring in the same conditions
  11641. --file=FILE[:TEMPLATE]
  11642. instantiate the configuration file FILE
  11643. --header=FILE[:TEMPLATE]
  11644. instantiate the configuration header FILE
  11645. Configuration files:
  11646. $config_files
  11647. Configuration headers:
  11648. $config_headers
  11649. Configuration commands:
  11650. $config_commands
  11651. Report bugs to <bug-autoconf@gnu.org>."
  11652. EOF
  11653. cat >>$CONFIG_STATUS <<EOF
  11654. ac_cs_version="\\
  11655. config.status
  11656. configured by $0, generated by GNU Autoconf 2.52,
  11657. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  11658. Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
  11659. Free Software Foundation, Inc.
  11660. This config.status script is free software; the Free Software Foundation
  11661. gives unlimited permission to copy, distribute and modify it."
  11662. srcdir=$srcdir
  11663. INSTALL="$INSTALL"
  11664. EOF
  11665. cat >>$CONFIG_STATUS <<\EOF
  11666. # If no file are specified by the user, then we need to provide default
  11667. # value. By we need to know if files were specified by the user.
  11668. ac_need_defaults=:
  11669. while test $# != 0
  11670. do
  11671. case $1 in
  11672. --*=*)
  11673. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  11674. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  11675. shift
  11676. set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
  11677. shift
  11678. ;;
  11679. -*);;
  11680. *) # This is not an option, so the user has probably given explicit
  11681. # arguments.
  11682. ac_need_defaults=false;;
  11683. esac
  11684. case $1 in
  11685. # Handling of the options.
  11686. EOF
  11687. cat >>$CONFIG_STATUS <<EOF
  11688. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  11689. echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
  11690. exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
  11691. EOF
  11692. cat >>$CONFIG_STATUS <<\EOF
  11693. --version | --vers* | -V )
  11694. echo "$ac_cs_version"; exit 0 ;;
  11695. --he | --h)
  11696. # Conflict between --help and --header
  11697. { { echo "$as_me:12683: error: ambiguous option: $1
  11698. Try \`$0 --help' for more information." >&5
  11699. echo "$as_me: error: ambiguous option: $1
  11700. Try \`$0 --help' for more information." >&2;}
  11701. { (exit 1); exit 1; }; };;
  11702. --help | --hel | -h )
  11703. echo "$ac_cs_usage"; exit 0 ;;
  11704. --debug | --d* | -d )
  11705. debug=: ;;
  11706. --file | --fil | --fi | --f )
  11707. shift
  11708. CONFIG_FILES="$CONFIG_FILES $1"
  11709. ac_need_defaults=false;;
  11710. --header | --heade | --head | --hea )
  11711. shift
  11712. CONFIG_HEADERS="$CONFIG_HEADERS $1"
  11713. ac_need_defaults=false;;
  11714. # This is an error.
  11715. -*) { { echo "$as_me:12702: error: unrecognized option: $1
  11716. Try \`$0 --help' for more information." >&5
  11717. echo "$as_me: error: unrecognized option: $1
  11718. Try \`$0 --help' for more information." >&2;}
  11719. { (exit 1); exit 1; }; } ;;
  11720. *) ac_config_targets="$ac_config_targets $1" ;;
  11721. esac
  11722. shift
  11723. done
  11724. exec 5>>config.log
  11725. cat >&5 << _ACEOF
  11726. ## ----------------------- ##
  11727. ## Running config.status. ##
  11728. ## ----------------------- ##
  11729. This file was extended by $as_me 2.52, executed with
  11730. CONFIG_FILES = $CONFIG_FILES
  11731. CONFIG_HEADERS = $CONFIG_HEADERS
  11732. CONFIG_LINKS = $CONFIG_LINKS
  11733. CONFIG_COMMANDS = $CONFIG_COMMANDS
  11734. > $ac_cs_invocation
  11735. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  11736. _ACEOF
  11737. EOF
  11738. cat >>$CONFIG_STATUS <<EOF
  11739. #
  11740. # INIT-COMMANDS section.
  11741. #
  11742. GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
  11743. EOF
  11744. cat >>$CONFIG_STATUS <<\EOF
  11745. for ac_config_target in $ac_config_targets
  11746. do
  11747. case "$ac_config_target" in
  11748. # Handling of arguments.
  11749. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  11750. "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
  11751. "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
  11752. "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
  11753. "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
  11754. "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
  11755. "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
  11756. "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
  11757. "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
  11758. "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
  11759. "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
  11760. "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
  11761. *) { { echo "$as_me:12758: error: invalid argument: $ac_config_target" >&5
  11762. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  11763. { (exit 1); exit 1; }; };;
  11764. esac
  11765. done
  11766. # If the user did not use the arguments to specify the items to instantiate,
  11767. # then the envvar interface is used. Set only those that are not.
  11768. # We use the long form for the default assignment because of an extremely
  11769. # bizarre bug on SunOS 4.1.3.
  11770. if $ac_need_defaults; then
  11771. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  11772. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  11773. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  11774. fi
  11775. # Create a temporary directory, and hook for its removal unless debugging.
  11776. $debug ||
  11777. {
  11778. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  11779. trap '{ (exit 1); exit 1; }' 1 2 13 15
  11780. }
  11781. # Create a (secure) tmp directory for tmp files.
  11782. : ${TMPDIR=/tmp}
  11783. {
  11784. tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
  11785. test -n "$tmp" && test -d "$tmp"
  11786. } ||
  11787. {
  11788. tmp=$TMPDIR/cs$$-$RANDOM
  11789. (umask 077 && mkdir $tmp)
  11790. } ||
  11791. {
  11792. echo "$me: cannot create a temporary directory in $TMPDIR" >&2
  11793. { (exit 1); exit 1; }
  11794. }
  11795. EOF
  11796. cat >>$CONFIG_STATUS <<EOF
  11797. #
  11798. # CONFIG_FILES section.
  11799. #
  11800. # No need to generate the scripts if there are no CONFIG_FILES.
  11801. # This happens for instance when ./config.status config.h
  11802. if test -n "\$CONFIG_FILES"; then
  11803. # Protect against being on the right side of a sed subst in config.status.
  11804. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  11805. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  11806. s,@SHELL@,$SHELL,;t t
  11807. s,@exec_prefix@,$exec_prefix,;t t
  11808. s,@prefix@,$prefix,;t t
  11809. s,@program_transform_name@,$program_transform_name,;t t
  11810. s,@bindir@,$bindir,;t t
  11811. s,@sbindir@,$sbindir,;t t
  11812. s,@libexecdir@,$libexecdir,;t t
  11813. s,@datadir@,$datadir,;t t
  11814. s,@sysconfdir@,$sysconfdir,;t t
  11815. s,@sharedstatedir@,$sharedstatedir,;t t
  11816. s,@localstatedir@,$localstatedir,;t t
  11817. s,@libdir@,$libdir,;t t
  11818. s,@includedir@,$includedir,;t t
  11819. s,@oldincludedir@,$oldincludedir,;t t
  11820. s,@infodir@,$infodir,;t t
  11821. s,@mandir@,$mandir,;t t
  11822. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  11823. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  11824. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  11825. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  11826. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  11827. s,@build_alias@,$build_alias,;t t
  11828. s,@host_alias@,$host_alias,;t t
  11829. s,@target_alias@,$target_alias,;t t
  11830. s,@ECHO_C@,$ECHO_C,;t t
  11831. s,@ECHO_N@,$ECHO_N,;t t
  11832. s,@ECHO_T@,$ECHO_T,;t t
  11833. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  11834. s,@DEFS@,$DEFS,;t t
  11835. s,@LIBS@,$LIBS,;t t
  11836. s,@build@,$build,;t t
  11837. s,@build_cpu@,$build_cpu,;t t
  11838. s,@build_vendor@,$build_vendor,;t t
  11839. s,@build_os@,$build_os,;t t
  11840. s,@host@,$host,;t t
  11841. s,@host_cpu@,$host_cpu,;t t
  11842. s,@host_vendor@,$host_vendor,;t t
  11843. s,@host_os@,$host_os,;t t
  11844. s,@CC@,$CC,;t t
  11845. s,@CFLAGS@,$CFLAGS,;t t
  11846. s,@LDFLAGS@,$LDFLAGS,;t t
  11847. s,@CPPFLAGS@,$CPPFLAGS,;t t
  11848. s,@ac_ct_CC@,$ac_ct_CC,;t t
  11849. s,@EXEEXT@,$EXEEXT,;t t
  11850. s,@OBJEXT@,$OBJEXT,;t t
  11851. s,@LN_S@,$LN_S,;t t
  11852. s,@CPP@,$CPP,;t t
  11853. s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
  11854. s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
  11855. s,@INSTALL_DATA@,$INSTALL_DATA,;t t
  11856. s,@YACC@,$YACC,;t t
  11857. s,@RANLIB@,$RANLIB,;t t
  11858. s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
  11859. s,@LIBSOUND@,$LIBSOUND,;t t
  11860. s,@SET_MAKE@,$SET_MAKE,;t t
  11861. s,@ALLOCA@,$ALLOCA,;t t
  11862. s,@liblockfile@,$liblockfile,;t t
  11863. s,@LIBOBJS@,$LIBOBJS,;t t
  11864. s,@NEED_SETGID@,$NEED_SETGID,;t t
  11865. s,@KMEM_GROUP@,$KMEM_GROUP,;t t
  11866. s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
  11867. s,@version@,$version,;t t
  11868. s,@configuration@,$configuration,;t t
  11869. s,@canonical@,$canonical,;t t
  11870. s,@srcdir@,$srcdir,;t t
  11871. s,@lispdir@,$lispdir,;t t
  11872. s,@locallisppath@,$locallisppath,;t t
  11873. s,@lisppath@,$lisppath,;t t
  11874. s,@x_default_search_path@,$x_default_search_path,;t t
  11875. s,@etcdir@,$etcdir,;t t
  11876. s,@archlibdir@,$archlibdir,;t t
  11877. s,@docdir@,$docdir,;t t
  11878. s,@bitmapdir@,$bitmapdir,;t t
  11879. s,@c_switch_system@,$c_switch_system,;t t
  11880. s,@c_switch_machine@,$c_switch_machine,;t t
  11881. s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
  11882. s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
  11883. s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
  11884. s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
  11885. s,@machfile@,$machfile,;t t
  11886. s,@opsysfile@,$opsysfile,;t t
  11887. CEOF
  11888. EOF
  11889. cat >>$CONFIG_STATUS <<\EOF
  11890. # Split the substitutions into bite-sized pieces for seds with
  11891. # small command number limits, like on Digital OSF/1 and HP-UX.
  11892. ac_max_sed_lines=48
  11893. ac_sed_frag=1 # Number of current file.
  11894. ac_beg=1 # First line for current file.
  11895. ac_end=$ac_max_sed_lines # Line after last line for current file.
  11896. ac_more_lines=:
  11897. ac_sed_cmds=
  11898. while $ac_more_lines; do
  11899. if test $ac_beg -gt 1; then
  11900. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  11901. else
  11902. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  11903. fi
  11904. if test ! -s $tmp/subs.frag; then
  11905. ac_more_lines=false
  11906. else
  11907. # The purpose of the label and of the branching condition is to
  11908. # speed up the sed processing (if there are no `@' at all, there
  11909. # is no need to browse any of the substitutions).
  11910. # These are the two extra sed commands mentioned above.
  11911. (echo ':t
  11912. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  11913. if test -z "$ac_sed_cmds"; then
  11914. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  11915. else
  11916. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  11917. fi
  11918. ac_sed_frag=`expr $ac_sed_frag + 1`
  11919. ac_beg=$ac_end
  11920. ac_end=`expr $ac_end + $ac_max_sed_lines`
  11921. fi
  11922. done
  11923. if test -z "$ac_sed_cmds"; then
  11924. ac_sed_cmds=cat
  11925. fi
  11926. fi # test -n "$CONFIG_FILES"
  11927. EOF
  11928. cat >>$CONFIG_STATUS <<\EOF
  11929. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  11930. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  11931. case $ac_file in
  11932. - | *:- | *:-:* ) # input from stdin
  11933. cat >$tmp/stdin
  11934. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11935. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11936. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11937. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11938. * ) ac_file_in=$ac_file.in ;;
  11939. esac
  11940. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  11941. ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11942. X"$ac_file" : 'X\(//\)[^/]' \| \
  11943. X"$ac_file" : 'X\(//\)$' \| \
  11944. X"$ac_file" : 'X\(/\)' \| \
  11945. . : '\(.\)' 2>/dev/null ||
  11946. echo X"$ac_file" |
  11947. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11948. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11949. /^X\(\/\/\)$/{ s//\1/; q; }
  11950. /^X\(\/\).*/{ s//\1/; q; }
  11951. s/.*/./; q'`
  11952. if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  11953. { case "$ac_dir" in
  11954. [\\/]* | ?:[\\/]* ) as_incr_dir=;;
  11955. *) as_incr_dir=.;;
  11956. esac
  11957. as_dummy="$ac_dir"
  11958. for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
  11959. case $as_mkdir_dir in
  11960. # Skip DOS drivespec
  11961. ?:) as_incr_dir=$as_mkdir_dir ;;
  11962. *)
  11963. as_incr_dir=$as_incr_dir/$as_mkdir_dir
  11964. test -d "$as_incr_dir" || mkdir "$as_incr_dir"
  11965. ;;
  11966. esac
  11967. done; }
  11968. ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
  11969. # A "../" for each directory in $ac_dir_suffix.
  11970. ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
  11971. else
  11972. ac_dir_suffix= ac_dots=
  11973. fi
  11974. case $srcdir in
  11975. .) ac_srcdir=.
  11976. if test -z "$ac_dots"; then
  11977. ac_top_srcdir=.
  11978. else
  11979. ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
  11980. fi ;;
  11981. [\\/]* | ?:[\\/]* )
  11982. ac_srcdir=$srcdir$ac_dir_suffix;
  11983. ac_top_srcdir=$srcdir ;;
  11984. *) # Relative path.
  11985. ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
  11986. ac_top_srcdir=$ac_dots$srcdir ;;
  11987. esac
  11988. case $INSTALL in
  11989. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  11990. *) ac_INSTALL=$ac_dots$INSTALL ;;
  11991. esac
  11992. if test x"$ac_file" != x-; then
  11993. { echo "$as_me:13005: creating $ac_file" >&5
  11994. echo "$as_me: creating $ac_file" >&6;}
  11995. rm -f "$ac_file"
  11996. fi
  11997. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11998. # use $as_me), people would be surprised to read:
  11999. # /* config.h. Generated automatically by config.status. */
  12000. configure_input="Generated automatically from `echo $ac_file_in |
  12001. sed 's,.*/,,'` by configure."
  12002. # First look for the input files in the build tree, otherwise in the
  12003. # src tree.
  12004. ac_file_inputs=`IFS=:
  12005. for f in $ac_file_in; do
  12006. case $f in
  12007. -) echo $tmp/stdin ;;
  12008. [\\/$]*)
  12009. # Absolute (can't be DOS-style, as IFS=:)
  12010. test -f "$f" || { { echo "$as_me:13023: error: cannot find input file: $f" >&5
  12011. echo "$as_me: error: cannot find input file: $f" >&2;}
  12012. { (exit 1); exit 1; }; }
  12013. echo $f;;
  12014. *) # Relative
  12015. if test -f "$f"; then
  12016. # Build tree
  12017. echo $f
  12018. elif test -f "$srcdir/$f"; then
  12019. # Source tree
  12020. echo $srcdir/$f
  12021. else
  12022. # /dev/null tree
  12023. { { echo "$as_me:13036: error: cannot find input file: $f" >&5
  12024. echo "$as_me: error: cannot find input file: $f" >&2;}
  12025. { (exit 1); exit 1; }; }
  12026. fi;;
  12027. esac
  12028. done` || { (exit 1); exit 1; }
  12029. EOF
  12030. cat >>$CONFIG_STATUS <<EOF
  12031. sed "$ac_vpsub
  12032. $extrasub
  12033. EOF
  12034. cat >>$CONFIG_STATUS <<\EOF
  12035. :t
  12036. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  12037. s,@configure_input@,$configure_input,;t t
  12038. s,@srcdir@,$ac_srcdir,;t t
  12039. s,@top_srcdir@,$ac_top_srcdir,;t t
  12040. s,@INSTALL@,$ac_INSTALL,;t t
  12041. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  12042. rm -f $tmp/stdin
  12043. if test x"$ac_file" != x-; then
  12044. mv $tmp/out $ac_file
  12045. else
  12046. cat $tmp/out
  12047. rm -f $tmp/out
  12048. fi
  12049. done
  12050. EOF
  12051. cat >>$CONFIG_STATUS <<\EOF
  12052. #
  12053. # CONFIG_HEADER section.
  12054. #
  12055. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  12056. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  12057. #
  12058. # ac_d sets the value in "#define NAME VALUE" lines.
  12059. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  12060. ac_dB='[ ].*$,\1#\2'
  12061. ac_dC=' '
  12062. ac_dD=',;t'
  12063. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  12064. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  12065. ac_uB='$,\1#\2define\3'
  12066. ac_uC=' '
  12067. ac_uD=',;t'
  12068. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  12069. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  12070. case $ac_file in
  12071. - | *:- | *:-:* ) # input from stdin
  12072. cat >$tmp/stdin
  12073. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  12074. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  12075. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  12076. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  12077. * ) ac_file_in=$ac_file.in ;;
  12078. esac
  12079. test x"$ac_file" != x- && { echo "$as_me:13097: creating $ac_file" >&5
  12080. echo "$as_me: creating $ac_file" >&6;}
  12081. # First look for the input files in the build tree, otherwise in the
  12082. # src tree.
  12083. ac_file_inputs=`IFS=:
  12084. for f in $ac_file_in; do
  12085. case $f in
  12086. -) echo $tmp/stdin ;;
  12087. [\\/$]*)
  12088. # Absolute (can't be DOS-style, as IFS=:)
  12089. test -f "$f" || { { echo "$as_me:13108: error: cannot find input file: $f" >&5
  12090. echo "$as_me: error: cannot find input file: $f" >&2;}
  12091. { (exit 1); exit 1; }; }
  12092. echo $f;;
  12093. *) # Relative
  12094. if test -f "$f"; then
  12095. # Build tree
  12096. echo $f
  12097. elif test -f "$srcdir/$f"; then
  12098. # Source tree
  12099. echo $srcdir/$f
  12100. else
  12101. # /dev/null tree
  12102. { { echo "$as_me:13121: error: cannot find input file: $f" >&5
  12103. echo "$as_me: error: cannot find input file: $f" >&2;}
  12104. { (exit 1); exit 1; }; }
  12105. fi;;
  12106. esac
  12107. done` || { (exit 1); exit 1; }
  12108. # Remove the trailing spaces.
  12109. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  12110. EOF
  12111. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  12112. # `conftest.undefs', that substitutes the proper values into
  12113. # config.h.in to produce config.h. The first handles `#define'
  12114. # templates, and the second `#undef' templates.
  12115. # And first: Protect against being on the right side of a sed subst in
  12116. # config.status. Protect against being in an unquoted here document
  12117. # in config.status.
  12118. rm -f conftest.defines conftest.undefs
  12119. # Using a here document instead of a string reduces the quoting nightmare.
  12120. # Putting comments in sed scripts is not portable.
  12121. #
  12122. # `end' is used to avoid that the second main sed command (meant for
  12123. # 0-ary CPP macros) applies to n-ary macro definitions.
  12124. # See the Autoconf documentation for `clear'.
  12125. cat >confdef2sed.sed <<\EOF
  12126. s/[\\&,]/\\&/g
  12127. s,[\\$`],\\&,g
  12128. t clear
  12129. : clear
  12130. s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
  12131. t end
  12132. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  12133. : end
  12134. EOF
  12135. # If some macros were called several times there might be several times
  12136. # the same #defines, which is useless. Nevertheless, we may not want to
  12137. # sort them, since we want the *last* AC-DEFINE to be honored.
  12138. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  12139. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  12140. rm -f confdef2sed.sed
  12141. # This sed command replaces #undef with comments. This is necessary, for
  12142. # example, in the case of _POSIX_SOURCE, which is predefined and required
  12143. # on some systems where configure will not decide to define it.
  12144. cat >>conftest.undefs <<\EOF
  12145. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  12146. EOF
  12147. # Break up conftest.defines because some shells have a limit on the size
  12148. # of here documents, and old seds have small limits too (100 cmds).
  12149. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  12150. echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  12151. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  12152. echo ' :' >>$CONFIG_STATUS
  12153. rm -f conftest.tail
  12154. while grep . conftest.defines >/dev/null
  12155. do
  12156. # Write a limited-size here document to $tmp/defines.sed.
  12157. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  12158. # Speed up: don't consider the non `#define' lines.
  12159. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  12160. # Work around the forget-to-reset-the-flag bug.
  12161. echo 't clr' >>$CONFIG_STATUS
  12162. echo ': clr' >>$CONFIG_STATUS
  12163. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  12164. echo 'CEOF
  12165. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  12166. rm -f $tmp/in
  12167. mv $tmp/out $tmp/in
  12168. ' >>$CONFIG_STATUS
  12169. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  12170. rm -f conftest.defines
  12171. mv conftest.tail conftest.defines
  12172. done
  12173. rm -f conftest.defines
  12174. echo ' fi # egrep' >>$CONFIG_STATUS
  12175. echo >>$CONFIG_STATUS
  12176. # Break up conftest.undefs because some shells have a limit on the size
  12177. # of here documents, and old seds have small limits too (100 cmds).
  12178. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  12179. rm -f conftest.tail
  12180. while grep . conftest.undefs >/dev/null
  12181. do
  12182. # Write a limited-size here document to $tmp/undefs.sed.
  12183. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  12184. # Speed up: don't consider the non `#undef'
  12185. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  12186. # Work around the forget-to-reset-the-flag bug.
  12187. echo 't clr' >>$CONFIG_STATUS
  12188. echo ': clr' >>$CONFIG_STATUS
  12189. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  12190. echo 'CEOF
  12191. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  12192. rm -f $tmp/in
  12193. mv $tmp/out $tmp/in
  12194. ' >>$CONFIG_STATUS
  12195. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  12196. rm -f conftest.undefs
  12197. mv conftest.tail conftest.undefs
  12198. done
  12199. rm -f conftest.undefs
  12200. cat >>$CONFIG_STATUS <<\EOF
  12201. # Let's still pretend it is `configure' which instantiates (i.e., don't
  12202. # use $as_me), people would be surprised to read:
  12203. # /* config.h. Generated automatically by config.status. */
  12204. if test x"$ac_file" = x-; then
  12205. echo "/* Generated automatically by configure. */" >$tmp/config.h
  12206. else
  12207. echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
  12208. fi
  12209. cat $tmp/in >>$tmp/config.h
  12210. rm -f $tmp/in
  12211. if test x"$ac_file" != x-; then
  12212. if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
  12213. { echo "$as_me:13238: $ac_file is unchanged" >&5
  12214. echo "$as_me: $ac_file is unchanged" >&6;}
  12215. else
  12216. ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12217. X"$ac_file" : 'X\(//\)[^/]' \| \
  12218. X"$ac_file" : 'X\(//\)$' \| \
  12219. X"$ac_file" : 'X\(/\)' \| \
  12220. . : '\(.\)' 2>/dev/null ||
  12221. echo X"$ac_file" |
  12222. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  12223. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  12224. /^X\(\/\/\)$/{ s//\1/; q; }
  12225. /^X\(\/\).*/{ s//\1/; q; }
  12226. s/.*/./; q'`
  12227. if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  12228. { case "$ac_dir" in
  12229. [\\/]* | ?:[\\/]* ) as_incr_dir=;;
  12230. *) as_incr_dir=.;;
  12231. esac
  12232. as_dummy="$ac_dir"
  12233. for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
  12234. case $as_mkdir_dir in
  12235. # Skip DOS drivespec
  12236. ?:) as_incr_dir=$as_mkdir_dir ;;
  12237. *)
  12238. as_incr_dir=$as_incr_dir/$as_mkdir_dir
  12239. test -d "$as_incr_dir" || mkdir "$as_incr_dir"
  12240. ;;
  12241. esac
  12242. done; }
  12243. fi
  12244. rm -f $ac_file
  12245. mv $tmp/config.h $ac_file
  12246. fi
  12247. else
  12248. cat $tmp/config.h
  12249. rm -f $tmp/config.h
  12250. fi
  12251. done
  12252. EOF
  12253. cat >>$CONFIG_STATUS <<\EOF
  12254. #
  12255. # CONFIG_COMMANDS section.
  12256. #
  12257. for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  12258. ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  12259. ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
  12260. case $ac_dest in
  12261. default )
  12262. ### Make the necessary directories, if they don't exist.
  12263. for dir in etc lisp ; do
  12264. test -d ${dir} || mkdir ${dir}
  12265. done
  12266. # Build src/Makefile from ${srcdir}/src/Makefile.c
  12267. # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
  12268. # This must be done after src/config.h is built, since we rely on that file.
  12269. # Now get this: Some word that is part of the ${srcdir} directory name
  12270. # or the ${configuration} value might, just might, happen to be an
  12271. # identifier like `sun4' or `i386' or something, and be predefined by
  12272. # the C preprocessor to some helpful value like 1, or maybe the empty
  12273. # string. Needless to say consequent macro substitutions are less
  12274. # than conducive to the makefile finding the correct directory.
  12275. undefs="`echo $top_srcdir $configuration $canonical |
  12276. sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
  12277. -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
  12278. `"
  12279. echo creating src/epaths.h
  12280. ${MAKE-make} epaths-force
  12281. # As of 2000-11-19, newest development versions of GNU cpp preprocess
  12282. # `..' to `. .' unless invoked with -traditional
  12283. if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
  12284. CPPFLAGS="$CPPFLAGS -traditional"
  12285. fi
  12286. echo creating lib-src/Makefile
  12287. ( cd lib-src
  12288. rm -f junk.c junk1.c junk2.c
  12289. sed -e '/start of cpp stuff/q' \
  12290. < Makefile.c > junk1.c
  12291. sed -e '1,/start of cpp stuff/d'\
  12292. -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
  12293. < Makefile.c > junk.c
  12294. $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
  12295. sed -e 's/^ / /' -e '/^#/d' -e '/^[ ]*$/d' > junk2.c
  12296. cat junk1.c junk2.c > Makefile.new
  12297. rm -f junk.c junk1.c junk2.c
  12298. chmod 444 Makefile.new
  12299. mv -f Makefile.new Makefile
  12300. )
  12301. echo creating src/Makefile
  12302. ( cd src
  12303. rm -f junk.c junk1.c junk2.c
  12304. sed -e '/start of cpp stuff/q' \
  12305. < Makefile.c > junk1.c
  12306. sed -e '1,/start of cpp stuff/d'\
  12307. -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
  12308. < Makefile.c > junk.c
  12309. $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
  12310. sed -e 's/^ / /' -e '/^#/d' -e '/^[ ]*$/d' > junk2.c
  12311. cat junk1.c junk2.c > Makefile.new
  12312. rm -f junk.c junk1.c junk2.c
  12313. chmod 444 Makefile.new
  12314. mv -f Makefile.new Makefile
  12315. )
  12316. if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
  12317. echo creating src/.gdbinit
  12318. echo source $srcdir/src/.gdbinit > src/.gdbinit
  12319. fi
  12320. # This is how we know whether to re-run configure in certain cases.
  12321. touch src/config.stamp
  12322. ;;
  12323. esac
  12324. done
  12325. EOF
  12326. cat >>$CONFIG_STATUS <<\EOF
  12327. { (exit 0); exit 0; }
  12328. EOF
  12329. chmod +x $CONFIG_STATUS
  12330. ac_clean_files=$ac_clean_files_save
  12331. # configure is writing to config.log, and then calls config.status.
  12332. # config.status does its own redirection, appending to config.log.
  12333. # Unfortunately, on DOS this fails, as config.log is still kept open
  12334. # by configure, so config.status won't be able to write to it; its
  12335. # output is simply discarded. So we exec the FD to /dev/null,
  12336. # effectively closing config.log, so it can be properly (re)opened and
  12337. # appended to by config.status. When coming back to configure, we
  12338. # need to make the FD available again.
  12339. if test "$no_create" != yes; then
  12340. ac_cs_success=:
  12341. exec 5>/dev/null
  12342. $SHELL $CONFIG_STATUS || ac_cs_success=false
  12343. exec 5>>config.log
  12344. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  12345. # would make configure fail if this is the last instruction.
  12346. $ac_cs_success || { (exit 1); exit 1; }
  12347. fi