configure 411 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678
  1. #! /bin/sh
  2. # From configure.ac Revision: 1.12 .
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated by GNU Autoconf 2.59.
  5. #
  6. # Copyright (C) 2003 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. #
  10. # Copyright (c) 2003, 2004 Bryan Drewery (bryan)
  11. ## --------------------- ##
  12. ## M4sh Initialization. ##
  13. ## --------------------- ##
  14. # Be Bourne compatible
  15. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  16. emulate sh
  17. NULLCMD=:
  18. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  19. # is contrary to our usage. Disable this feature.
  20. alias -g '${1+"$@"}'='"$@"'
  21. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  22. set -o posix
  23. fi
  24. DUALCASE=1; export DUALCASE # for MKS sh
  25. # Support unset when possible.
  26. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  27. as_unset=unset
  28. else
  29. as_unset=false
  30. fi
  31. # Work around bugs in pre-3.0 UWIN ksh.
  32. $as_unset ENV MAIL MAILPATH
  33. PS1='$ '
  34. PS2='> '
  35. PS4='+ '
  36. # NLS nuisances.
  37. for as_var in \
  38. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  39. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  40. LC_TELEPHONE LC_TIME
  41. do
  42. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  43. eval $as_var=C; export $as_var
  44. else
  45. $as_unset $as_var
  46. fi
  47. done
  48. # Required to use basename.
  49. if expr a : '\(a\)' >/dev/null 2>&1; then
  50. as_expr=expr
  51. else
  52. as_expr=false
  53. fi
  54. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  55. as_basename=basename
  56. else
  57. as_basename=false
  58. fi
  59. # Name of the executable.
  60. as_me=`$as_basename "$0" ||
  61. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  62. X"$0" : 'X\(//\)$' \| \
  63. X"$0" : 'X\(/\)$' \| \
  64. . : '\(.\)' 2>/dev/null ||
  65. echo X/"$0" |
  66. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  67. /^X\/\(\/\/\)$/{ s//\1/; q; }
  68. /^X\/\(\/\).*/{ s//\1/; q; }
  69. s/.*/./; q'`
  70. # PATH needs CR, and LINENO needs CR and PATH.
  71. # Avoid depending upon Character Ranges.
  72. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  73. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  74. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  75. as_cr_digits='0123456789'
  76. as_cr_alnum=$as_cr_Letters$as_cr_digits
  77. # The user is always right.
  78. if test "${PATH_SEPARATOR+set}" != set; then
  79. echo "#! /bin/sh" >conf$$.sh
  80. echo "exit 0" >>conf$$.sh
  81. chmod +x conf$$.sh
  82. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  83. PATH_SEPARATOR=';'
  84. else
  85. PATH_SEPARATOR=:
  86. fi
  87. rm -f conf$$.sh
  88. fi
  89. as_lineno_1=$LINENO
  90. as_lineno_2=$LINENO
  91. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  92. test "x$as_lineno_1" != "x$as_lineno_2" &&
  93. test "x$as_lineno_3" = "x$as_lineno_2" || {
  94. # Find who we are. Look in the path if we contain no path at all
  95. # relative or not.
  96. case $0 in
  97. *[\\/]* ) as_myself=$0 ;;
  98. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  99. for as_dir in $PATH
  100. do
  101. IFS=$as_save_IFS
  102. test -z "$as_dir" && as_dir=.
  103. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  104. done
  105. ;;
  106. esac
  107. # We did not find ourselves, most probably we were run as `sh COMMAND'
  108. # in which case we are not to be found in the path.
  109. if test "x$as_myself" = x; then
  110. as_myself=$0
  111. fi
  112. if test ! -f "$as_myself"; then
  113. { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
  114. { (exit 1); exit 1; }; }
  115. fi
  116. case $CONFIG_SHELL in
  117. '')
  118. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  119. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  120. do
  121. IFS=$as_save_IFS
  122. test -z "$as_dir" && as_dir=.
  123. for as_base in sh bash ksh sh5; do
  124. case $as_dir in
  125. /*)
  126. if ("$as_dir/$as_base" -c '
  127. as_lineno_1=$LINENO
  128. as_lineno_2=$LINENO
  129. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  130. test "x$as_lineno_1" != "x$as_lineno_2" &&
  131. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  132. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  133. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  134. CONFIG_SHELL=$as_dir/$as_base
  135. export CONFIG_SHELL
  136. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  137. fi;;
  138. esac
  139. done
  140. done
  141. ;;
  142. esac
  143. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  144. # uniformly replaced by the line number. The first 'sed' inserts a
  145. # line-number line before each line; the second 'sed' does the real
  146. # work. The second script uses 'N' to pair each line-number line
  147. # with the numbered line, and appends trailing '-' during
  148. # substitution so that $LINENO is not a special case at line end.
  149. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  150. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  151. sed '=' <$as_myself |
  152. sed '
  153. N
  154. s,$,-,
  155. : loop
  156. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  157. t loop
  158. s,-$,,
  159. s,^['$as_cr_digits']*\n,,
  160. ' >$as_me.lineno &&
  161. chmod +x $as_me.lineno ||
  162. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  163. { (exit 1); exit 1; }; }
  164. # Don't try to exec as it changes $[0], causing all sort of problems
  165. # (the dirname of $[0] is not the place where we might find the
  166. # original and so on. Autoconf is especially sensible to this).
  167. . ./$as_me.lineno
  168. # Exit status is that of the last command.
  169. exit
  170. }
  171. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  172. *c*,-n*) ECHO_N= ECHO_C='
  173. ' ECHO_T=' ' ;;
  174. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  175. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  176. esac
  177. if expr a : '\(a\)' >/dev/null 2>&1; then
  178. as_expr=expr
  179. else
  180. as_expr=false
  181. fi
  182. rm -f conf$$ conf$$.exe conf$$.file
  183. echo >conf$$.file
  184. if ln -s conf$$.file conf$$ 2>/dev/null; then
  185. # We could just check for DJGPP; but this test a) works b) is more generic
  186. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  187. if test -f conf$$.exe; then
  188. # Don't use ln at all; we don't have any links
  189. as_ln_s='cp -p'
  190. else
  191. as_ln_s='ln -s'
  192. fi
  193. elif ln conf$$.file conf$$ 2>/dev/null; then
  194. as_ln_s=ln
  195. else
  196. as_ln_s='cp -p'
  197. fi
  198. rm -f conf$$ conf$$.exe conf$$.file
  199. if mkdir -p . 2>/dev/null; then
  200. as_mkdir_p=:
  201. else
  202. test -d ./-p && rmdir ./-p
  203. as_mkdir_p=false
  204. fi
  205. as_executable_p="test -f"
  206. # Sed expression to map a string onto a valid CPP name.
  207. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  208. # Sed expression to map a string onto a valid variable name.
  209. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  210. # IFS
  211. # We need space, tab and new line, in precisely that order.
  212. as_nl='
  213. '
  214. IFS=" $as_nl"
  215. # CDPATH.
  216. $as_unset CDPATH
  217. # Name of the host.
  218. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  219. # so uname gets run too.
  220. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  221. exec 6>&1
  222. #
  223. # Initializations.
  224. #
  225. ac_default_prefix=/usr/local
  226. ac_config_libobj_dir=.
  227. cross_compiling=no
  228. subdirs=
  229. MFLAGS=
  230. MAKEFLAGS=
  231. SHELL=${CONFIG_SHELL-/bin/sh}
  232. # Maximum number of lines to put in a shell here document.
  233. # This variable seems obsolete. It should probably be removed, and
  234. # only ac_max_sed_lines should be used.
  235. : ${ac_max_here_lines=38}
  236. # Identity of this package.
  237. PACKAGE_NAME=
  238. PACKAGE_TARNAME=
  239. PACKAGE_VERSION=
  240. PACKAGE_STRING=
  241. PACKAGE_BUGREPORT=
  242. ac_unique_file="wraith"
  243. ac_unique_file="src/eggdrop.h"
  244. # Factoring default headers for most tests.
  245. ac_includes_default="\
  246. #include <stdio.h>
  247. #if HAVE_SYS_TYPES_H
  248. # include <sys/types.h>
  249. #endif
  250. #if HAVE_SYS_STAT_H
  251. # include <sys/stat.h>
  252. #endif
  253. #if STDC_HEADERS
  254. # include <stdlib.h>
  255. # include <stddef.h>
  256. #else
  257. # if HAVE_STDLIB_H
  258. # include <stdlib.h>
  259. # endif
  260. #endif
  261. #if HAVE_STRING_H
  262. # if !STDC_HEADERS && HAVE_MEMORY_H
  263. # include <memory.h>
  264. # endif
  265. # include <string.h>
  266. #endif
  267. #if HAVE_STRINGS_H
  268. # include <strings.h>
  269. #endif
  270. #if HAVE_INTTYPES_H
  271. # include <inttypes.h>
  272. #else
  273. # if HAVE_STDINT_H
  274. # include <stdint.h>
  275. # endif
  276. #endif
  277. #if HAVE_UNISTD_H
  278. # include <unistd.h>
  279. #endif"
  280. ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS egg_ac_parameters CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CCDEPMODE CCDEBUG SET_MAKE HEAD_1 STRIP AWK BASENAME OBJCOPY DISTCC UNAME RESLIB RESINCLUDE ZLIB SSL LIBOBJS TCLLIB TCLLIBFN TCLINC TCLINCFN TCL_REQS TCL_LIBS VERSION NUMVER PACKNAME MOD_UPDIR LTLIBOBJS'
  281. ac_subst_files=''
  282. # Initialize some variables set by options.
  283. ac_init_help=
  284. ac_init_version=false
  285. # The variables have the same names as the options, with
  286. # dashes changed to underlines.
  287. cache_file=./config.cache
  288. exec_prefix=NONE
  289. no_create=
  290. no_recursion=
  291. prefix=NONE
  292. program_prefix=NONE
  293. program_suffix=NONE
  294. program_transform_name=s,x,x,
  295. silent=
  296. site=
  297. srcdir=
  298. verbose=
  299. x_includes=NONE
  300. x_libraries=NONE
  301. # Installation directory options.
  302. # These are left unexpanded so users can "make install exec_prefix=/foo"
  303. # and all the variables that are supposed to be based on exec_prefix
  304. # by default will actually change.
  305. # Use braces instead of parens because sh, perl, etc. also accept them.
  306. bindir='${exec_prefix}/bin'
  307. sbindir='${exec_prefix}/sbin'
  308. libexecdir='${exec_prefix}/libexec'
  309. datadir='${prefix}/share'
  310. sysconfdir='${prefix}/etc'
  311. sharedstatedir='${prefix}/com'
  312. localstatedir='${prefix}/var'
  313. libdir='${exec_prefix}/lib'
  314. includedir='${prefix}/include'
  315. oldincludedir='/usr/include'
  316. infodir='${prefix}/info'
  317. mandir='${prefix}/man'
  318. ac_prev=
  319. for ac_option
  320. do
  321. # If the previous option needs an argument, assign it.
  322. if test -n "$ac_prev"; then
  323. eval "$ac_prev=\$ac_option"
  324. ac_prev=
  325. continue
  326. fi
  327. ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  328. # Accept the important Cygnus configure options, so we can diagnose typos.
  329. case $ac_option in
  330. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  331. ac_prev=bindir ;;
  332. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  333. bindir=$ac_optarg ;;
  334. -build | --build | --buil | --bui | --bu)
  335. ac_prev=build_alias ;;
  336. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  337. build_alias=$ac_optarg ;;
  338. -cache-file | --cache-file | --cache-fil | --cache-fi \
  339. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  340. ac_prev=cache_file ;;
  341. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  342. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  343. cache_file=$ac_optarg ;;
  344. --config-cache | -C)
  345. cache_file=config.cache ;;
  346. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  347. ac_prev=datadir ;;
  348. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  349. | --da=*)
  350. datadir=$ac_optarg ;;
  351. -disable-* | --disable-*)
  352. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  353. # Reject names that are not valid shell variable names.
  354. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  355. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  356. { (exit 1); exit 1; }; }
  357. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  358. eval "enable_$ac_feature=no" ;;
  359. -enable-* | --enable-*)
  360. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  361. # Reject names that are not valid shell variable names.
  362. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  363. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  364. { (exit 1); exit 1; }; }
  365. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  366. case $ac_option in
  367. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  368. *) ac_optarg=yes ;;
  369. esac
  370. eval "enable_$ac_feature='$ac_optarg'" ;;
  371. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  372. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  373. | --exec | --exe | --ex)
  374. ac_prev=exec_prefix ;;
  375. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  376. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  377. | --exec=* | --exe=* | --ex=*)
  378. exec_prefix=$ac_optarg ;;
  379. -gas | --gas | --ga | --g)
  380. # Obsolete; use --with-gas.
  381. with_gas=yes ;;
  382. -help | --help | --hel | --he | -h)
  383. ac_init_help=long ;;
  384. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  385. ac_init_help=recursive ;;
  386. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  387. ac_init_help=short ;;
  388. -host | --host | --hos | --ho)
  389. ac_prev=host_alias ;;
  390. -host=* | --host=* | --hos=* | --ho=*)
  391. host_alias=$ac_optarg ;;
  392. -includedir | --includedir | --includedi | --included | --include \
  393. | --includ | --inclu | --incl | --inc)
  394. ac_prev=includedir ;;
  395. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  396. | --includ=* | --inclu=* | --incl=* | --inc=*)
  397. includedir=$ac_optarg ;;
  398. -infodir | --infodir | --infodi | --infod | --info | --inf)
  399. ac_prev=infodir ;;
  400. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  401. infodir=$ac_optarg ;;
  402. -libdir | --libdir | --libdi | --libd)
  403. ac_prev=libdir ;;
  404. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  405. libdir=$ac_optarg ;;
  406. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  407. | --libexe | --libex | --libe)
  408. ac_prev=libexecdir ;;
  409. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  410. | --libexe=* | --libex=* | --libe=*)
  411. libexecdir=$ac_optarg ;;
  412. -localstatedir | --localstatedir | --localstatedi | --localstated \
  413. | --localstate | --localstat | --localsta | --localst \
  414. | --locals | --local | --loca | --loc | --lo)
  415. ac_prev=localstatedir ;;
  416. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  417. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  418. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  419. localstatedir=$ac_optarg ;;
  420. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  421. ac_prev=mandir ;;
  422. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  423. mandir=$ac_optarg ;;
  424. -nfp | --nfp | --nf)
  425. # Obsolete; use --without-fp.
  426. with_fp=no ;;
  427. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  428. | --no-cr | --no-c | -n)
  429. no_create=yes ;;
  430. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  431. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  432. no_recursion=yes ;;
  433. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  434. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  435. | --oldin | --oldi | --old | --ol | --o)
  436. ac_prev=oldincludedir ;;
  437. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  438. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  439. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  440. oldincludedir=$ac_optarg ;;
  441. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  442. ac_prev=prefix ;;
  443. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  444. prefix=$ac_optarg ;;
  445. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  446. | --program-pre | --program-pr | --program-p)
  447. ac_prev=program_prefix ;;
  448. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  449. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  450. program_prefix=$ac_optarg ;;
  451. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  452. | --program-suf | --program-su | --program-s)
  453. ac_prev=program_suffix ;;
  454. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  455. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  456. program_suffix=$ac_optarg ;;
  457. -program-transform-name | --program-transform-name \
  458. | --program-transform-nam | --program-transform-na \
  459. | --program-transform-n | --program-transform- \
  460. | --program-transform | --program-transfor \
  461. | --program-transfo | --program-transf \
  462. | --program-trans | --program-tran \
  463. | --progr-tra | --program-tr | --program-t)
  464. ac_prev=program_transform_name ;;
  465. -program-transform-name=* | --program-transform-name=* \
  466. | --program-transform-nam=* | --program-transform-na=* \
  467. | --program-transform-n=* | --program-transform-=* \
  468. | --program-transform=* | --program-transfor=* \
  469. | --program-transfo=* | --program-transf=* \
  470. | --program-trans=* | --program-tran=* \
  471. | --progr-tra=* | --program-tr=* | --program-t=*)
  472. program_transform_name=$ac_optarg ;;
  473. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  474. | -silent | --silent | --silen | --sile | --sil)
  475. silent=yes ;;
  476. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  477. ac_prev=sbindir ;;
  478. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  479. | --sbi=* | --sb=*)
  480. sbindir=$ac_optarg ;;
  481. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  482. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  483. | --sharedst | --shareds | --shared | --share | --shar \
  484. | --sha | --sh)
  485. ac_prev=sharedstatedir ;;
  486. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  487. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  488. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  489. | --sha=* | --sh=*)
  490. sharedstatedir=$ac_optarg ;;
  491. -site | --site | --sit)
  492. ac_prev=site ;;
  493. -site=* | --site=* | --sit=*)
  494. site=$ac_optarg ;;
  495. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  496. ac_prev=srcdir ;;
  497. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  498. srcdir=$ac_optarg ;;
  499. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  500. | --syscon | --sysco | --sysc | --sys | --sy)
  501. ac_prev=sysconfdir ;;
  502. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  503. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  504. sysconfdir=$ac_optarg ;;
  505. -target | --target | --targe | --targ | --tar | --ta | --t)
  506. ac_prev=target_alias ;;
  507. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  508. target_alias=$ac_optarg ;;
  509. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  510. verbose=yes ;;
  511. -version | --version | --versio | --versi | --vers | -V)
  512. ac_init_version=: ;;
  513. -with-* | --with-*)
  514. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  515. # Reject names that are not valid shell variable names.
  516. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  517. { echo "$as_me: error: invalid package name: $ac_package" >&2
  518. { (exit 1); exit 1; }; }
  519. ac_package=`echo $ac_package| sed 's/-/_/g'`
  520. case $ac_option in
  521. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  522. *) ac_optarg=yes ;;
  523. esac
  524. eval "with_$ac_package='$ac_optarg'" ;;
  525. -without-* | --without-*)
  526. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  527. # Reject names that are not valid shell variable names.
  528. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  529. { echo "$as_me: error: invalid package name: $ac_package" >&2
  530. { (exit 1); exit 1; }; }
  531. ac_package=`echo $ac_package | sed 's/-/_/g'`
  532. eval "with_$ac_package=no" ;;
  533. --x)
  534. # Obsolete; use --with-x.
  535. with_x=yes ;;
  536. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  537. | --x-incl | --x-inc | --x-in | --x-i)
  538. ac_prev=x_includes ;;
  539. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  540. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  541. x_includes=$ac_optarg ;;
  542. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  543. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  544. ac_prev=x_libraries ;;
  545. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  546. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  547. x_libraries=$ac_optarg ;;
  548. -*) { echo "$as_me: error: unrecognized option: $ac_option
  549. Try \`$0 --help' for more information." >&2
  550. { (exit 1); exit 1; }; }
  551. ;;
  552. *=*)
  553. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  554. # Reject names that are not valid shell variable names.
  555. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  556. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  557. { (exit 1); exit 1; }; }
  558. ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  559. eval "$ac_envvar='$ac_optarg'"
  560. export $ac_envvar ;;
  561. *)
  562. # FIXME: should be removed in autoconf 3.0.
  563. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  564. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  565. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  566. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  567. ;;
  568. esac
  569. done
  570. if test -n "$ac_prev"; then
  571. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  572. { echo "$as_me: error: missing argument to $ac_option" >&2
  573. { (exit 1); exit 1; }; }
  574. fi
  575. # Be sure to have absolute paths.
  576. for ac_var in exec_prefix prefix
  577. do
  578. eval ac_val=$`echo $ac_var`
  579. case $ac_val in
  580. [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  581. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  582. { (exit 1); exit 1; }; };;
  583. esac
  584. done
  585. # Be sure to have absolute paths.
  586. for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  587. localstatedir libdir includedir oldincludedir infodir mandir
  588. do
  589. eval ac_val=$`echo $ac_var`
  590. case $ac_val in
  591. [\\/$]* | ?:[\\/]* ) ;;
  592. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  593. { (exit 1); exit 1; }; };;
  594. esac
  595. done
  596. # There might be people who depend on the old broken behavior: `$host'
  597. # used to hold the argument of --host etc.
  598. # FIXME: To remove some day.
  599. build=$build_alias
  600. host=$host_alias
  601. target=$target_alias
  602. # FIXME: To remove some day.
  603. if test "x$host_alias" != x; then
  604. if test "x$build_alias" = x; then
  605. cross_compiling=maybe
  606. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  607. If a cross compiler is detected then cross compile mode will be used." >&2
  608. elif test "x$build_alias" != "x$host_alias"; then
  609. cross_compiling=yes
  610. fi
  611. fi
  612. ac_tool_prefix=
  613. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  614. test "$silent" = yes && exec 6>/dev/null
  615. # Find the source files, if location was not specified.
  616. if test -z "$srcdir"; then
  617. ac_srcdir_defaulted=yes
  618. # Try the directory containing this script, then its parent.
  619. ac_confdir=`(dirname "$0") 2>/dev/null ||
  620. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  621. X"$0" : 'X\(//\)[^/]' \| \
  622. X"$0" : 'X\(//\)$' \| \
  623. X"$0" : 'X\(/\)' \| \
  624. . : '\(.\)' 2>/dev/null ||
  625. echo X"$0" |
  626. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  627. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  628. /^X\(\/\/\)$/{ s//\1/; q; }
  629. /^X\(\/\).*/{ s//\1/; q; }
  630. s/.*/./; q'`
  631. srcdir=$ac_confdir
  632. if test ! -r $srcdir/$ac_unique_file; then
  633. srcdir=..
  634. fi
  635. else
  636. ac_srcdir_defaulted=no
  637. fi
  638. if test ! -r $srcdir/$ac_unique_file; then
  639. if test "$ac_srcdir_defaulted" = yes; then
  640. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  641. { (exit 1); exit 1; }; }
  642. else
  643. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  644. { (exit 1); exit 1; }; }
  645. fi
  646. fi
  647. (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
  648. { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
  649. { (exit 1); exit 1; }; }
  650. srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  651. ac_env_build_alias_set=${build_alias+set}
  652. ac_env_build_alias_value=$build_alias
  653. ac_cv_env_build_alias_set=${build_alias+set}
  654. ac_cv_env_build_alias_value=$build_alias
  655. ac_env_host_alias_set=${host_alias+set}
  656. ac_env_host_alias_value=$host_alias
  657. ac_cv_env_host_alias_set=${host_alias+set}
  658. ac_cv_env_host_alias_value=$host_alias
  659. ac_env_target_alias_set=${target_alias+set}
  660. ac_env_target_alias_value=$target_alias
  661. ac_cv_env_target_alias_set=${target_alias+set}
  662. ac_cv_env_target_alias_value=$target_alias
  663. ac_env_CC_set=${CC+set}
  664. ac_env_CC_value=$CC
  665. ac_cv_env_CC_set=${CC+set}
  666. ac_cv_env_CC_value=$CC
  667. ac_env_CFLAGS_set=${CFLAGS+set}
  668. ac_env_CFLAGS_value=$CFLAGS
  669. ac_cv_env_CFLAGS_set=${CFLAGS+set}
  670. ac_cv_env_CFLAGS_value=$CFLAGS
  671. ac_env_LDFLAGS_set=${LDFLAGS+set}
  672. ac_env_LDFLAGS_value=$LDFLAGS
  673. ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  674. ac_cv_env_LDFLAGS_value=$LDFLAGS
  675. ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  676. ac_env_CPPFLAGS_value=$CPPFLAGS
  677. ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  678. ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  679. ac_env_CPP_set=${CPP+set}
  680. ac_env_CPP_value=$CPP
  681. ac_cv_env_CPP_set=${CPP+set}
  682. ac_cv_env_CPP_value=$CPP
  683. #
  684. # Report the --help message.
  685. #
  686. if test "$ac_init_help" = "long"; then
  687. # Omit some internal or obsolete options to make the list less imposing.
  688. # This message is too long to be a string in the A/UX 3.1 sh.
  689. cat <<_ACEOF
  690. \`configure' configures this package to adapt to many kinds of systems.
  691. Usage: $0 [OPTION]... [VAR=VALUE]...
  692. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  693. VAR=VALUE. See below for descriptions of some of the useful variables.
  694. Defaults for the options are specified in brackets.
  695. Configuration:
  696. -h, --help display this help and exit
  697. --help=short display options specific to this package
  698. --help=recursive display the short help of all the included packages
  699. -V, --version display version information and exit
  700. -q, --quiet, --silent do not print \`checking...' messages
  701. --cache-file=FILE cache test results in FILE [disabled]
  702. -C, --config-cache alias for \`--cache-file=config.cache'
  703. -n, --no-create do not create output files
  704. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  705. _ACEOF
  706. cat <<_ACEOF
  707. Installation directories:
  708. --prefix=PREFIX install architecture-independent files in PREFIX
  709. [$ac_default_prefix]
  710. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  711. [PREFIX]
  712. By default, \`make install' will install all the files in
  713. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  714. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  715. for instance \`--prefix=\$HOME'.
  716. For better control, use the options below.
  717. Fine tuning of the installation directories:
  718. --bindir=DIR user executables [EPREFIX/bin]
  719. --sbindir=DIR system admin executables [EPREFIX/sbin]
  720. --libexecdir=DIR program executables [EPREFIX/libexec]
  721. --datadir=DIR read-only architecture-independent data [PREFIX/share]
  722. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  723. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  724. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  725. --libdir=DIR object code libraries [EPREFIX/lib]
  726. --includedir=DIR C header files [PREFIX/include]
  727. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  728. --infodir=DIR info documentation [PREFIX/info]
  729. --mandir=DIR man documentation [PREFIX/man]
  730. _ACEOF
  731. cat <<\_ACEOF
  732. _ACEOF
  733. fi
  734. if test -n "$ac_init_help"; then
  735. cat <<\_ACEOF
  736. Optional Features:
  737. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  738. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  739. --disable-ipv6 disable IPv6 support
  740. Optional Packages:
  741. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  742. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  743. --with-tcllib=PATH full path to Tcl library
  744. --with-tclinc=PATH full path to Tcl header
  745. Some influential environment variables:
  746. CC C compiler command
  747. CFLAGS C compiler flags
  748. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  749. nonstandard directory <lib dir>
  750. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  751. headers in a nonstandard directory <include dir>
  752. CPP C preprocessor
  753. Use these variables to override the choices made by `configure' or to help
  754. it to find libraries and programs with nonstandard names/locations.
  755. _ACEOF
  756. fi
  757. if test "$ac_init_help" = "recursive"; then
  758. # If there are subdirs, report their specific --help.
  759. ac_popdir=`pwd`
  760. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  761. test -d $ac_dir || continue
  762. ac_builddir=.
  763. if test "$ac_dir" != .; then
  764. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  765. # A "../" for each directory in $ac_dir_suffix.
  766. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  767. else
  768. ac_dir_suffix= ac_top_builddir=
  769. fi
  770. case $srcdir in
  771. .) # No --srcdir option. We are building in place.
  772. ac_srcdir=.
  773. if test -z "$ac_top_builddir"; then
  774. ac_top_srcdir=.
  775. else
  776. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  777. fi ;;
  778. [\\/]* | ?:[\\/]* ) # Absolute path.
  779. ac_srcdir=$srcdir$ac_dir_suffix;
  780. ac_top_srcdir=$srcdir ;;
  781. *) # Relative path.
  782. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  783. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  784. esac
  785. # Do not use `cd foo && pwd` to compute absolute paths, because
  786. # the directories may not exist.
  787. case `pwd` in
  788. .) ac_abs_builddir="$ac_dir";;
  789. *)
  790. case "$ac_dir" in
  791. .) ac_abs_builddir=`pwd`;;
  792. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  793. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  794. esac;;
  795. esac
  796. case $ac_abs_builddir in
  797. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  798. *)
  799. case ${ac_top_builddir}. in
  800. .) ac_abs_top_builddir=$ac_abs_builddir;;
  801. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  802. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  803. esac;;
  804. esac
  805. case $ac_abs_builddir in
  806. .) ac_abs_srcdir=$ac_srcdir;;
  807. *)
  808. case $ac_srcdir in
  809. .) ac_abs_srcdir=$ac_abs_builddir;;
  810. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  811. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  812. esac;;
  813. esac
  814. case $ac_abs_builddir in
  815. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  816. *)
  817. case $ac_top_srcdir in
  818. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  819. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  820. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  821. esac;;
  822. esac
  823. cd $ac_dir
  824. # Check for guested configure; otherwise get Cygnus style configure.
  825. if test -f $ac_srcdir/configure.gnu; then
  826. echo
  827. $SHELL $ac_srcdir/configure.gnu --help=recursive
  828. elif test -f $ac_srcdir/configure; then
  829. echo
  830. $SHELL $ac_srcdir/configure --help=recursive
  831. elif test -f $ac_srcdir/configure.ac ||
  832. test -f $ac_srcdir/configure.in; then
  833. echo
  834. $ac_configure --help
  835. else
  836. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  837. fi
  838. cd "$ac_popdir"
  839. done
  840. fi
  841. test -n "$ac_init_help" && exit 0
  842. if $ac_init_version; then
  843. cat <<\_ACEOF
  844. Copyright (C) 2003 Free Software Foundation, Inc.
  845. This configure script is free software; the Free Software Foundation
  846. gives unlimited permission to copy, distribute and modify it.
  847. Copyright (c) 2003, 2004 Bryan Drewery (bryan)
  848. _ACEOF
  849. exit 0
  850. fi
  851. exec 5>config.log
  852. cat >&5 <<_ACEOF
  853. This file contains any messages produced by compilers while
  854. running configure, to aid debugging if configure makes a mistake.
  855. It was created by $as_me, which was
  856. generated by GNU Autoconf 2.59. Invocation command line was
  857. $ $0 $@
  858. _ACEOF
  859. {
  860. cat <<_ASUNAME
  861. ## --------- ##
  862. ## Platform. ##
  863. ## --------- ##
  864. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  865. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  866. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  867. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  868. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  869. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  870. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  871. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  872. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  873. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  874. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  875. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  876. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  877. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  878. _ASUNAME
  879. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  880. for as_dir in $PATH
  881. do
  882. IFS=$as_save_IFS
  883. test -z "$as_dir" && as_dir=.
  884. echo "PATH: $as_dir"
  885. done
  886. } >&5
  887. cat >&5 <<_ACEOF
  888. ## ----------- ##
  889. ## Core tests. ##
  890. ## ----------- ##
  891. _ACEOF
  892. # Keep a trace of the command line.
  893. # Strip out --no-create and --no-recursion so they do not pile up.
  894. # Strip out --silent because we don't want to record it for future runs.
  895. # Also quote any args containing shell meta-characters.
  896. # Make two passes to allow for proper duplicate-argument suppression.
  897. ac_configure_args=
  898. ac_configure_args0=
  899. ac_configure_args1=
  900. ac_sep=
  901. ac_must_keep_next=false
  902. for ac_pass in 1 2
  903. do
  904. for ac_arg
  905. do
  906. case $ac_arg in
  907. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  908. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  909. | -silent | --silent | --silen | --sile | --sil)
  910. continue ;;
  911. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  912. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  913. esac
  914. case $ac_pass in
  915. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  916. 2)
  917. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  918. if test $ac_must_keep_next = true; then
  919. ac_must_keep_next=false # Got value, back to normal.
  920. else
  921. case $ac_arg in
  922. *=* | --config-cache | -C | -disable-* | --disable-* \
  923. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  924. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  925. | -with-* | --with-* | -without-* | --without-* | --x)
  926. case "$ac_configure_args0 " in
  927. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  928. esac
  929. ;;
  930. -* ) ac_must_keep_next=true ;;
  931. esac
  932. fi
  933. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  934. # Get rid of the leading space.
  935. ac_sep=" "
  936. ;;
  937. esac
  938. done
  939. done
  940. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  941. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  942. # When interrupted or exit'd, cleanup temporary files, and complete
  943. # config.log. We remove comments because anyway the quotes in there
  944. # would cause problems or look ugly.
  945. # WARNING: Be sure not to use single quotes in there, as some shells,
  946. # such as our DU 5.0 friend, will then `close' the trap.
  947. trap 'exit_status=$?
  948. # Save into config.log some information that might help in debugging.
  949. {
  950. echo
  951. cat <<\_ASBOX
  952. ## ---------------- ##
  953. ## Cache variables. ##
  954. ## ---------------- ##
  955. _ASBOX
  956. echo
  957. # The following way of writing the cache mishandles newlines in values,
  958. {
  959. (set) 2>&1 |
  960. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  961. *ac_space=\ *)
  962. sed -n \
  963. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  964. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  965. ;;
  966. *)
  967. sed -n \
  968. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  969. ;;
  970. esac;
  971. }
  972. echo
  973. cat <<\_ASBOX
  974. ## ----------------- ##
  975. ## Output variables. ##
  976. ## ----------------- ##
  977. _ASBOX
  978. echo
  979. for ac_var in $ac_subst_vars
  980. do
  981. eval ac_val=$`echo $ac_var`
  982. echo "$ac_var='"'"'$ac_val'"'"'"
  983. done | sort
  984. echo
  985. if test -n "$ac_subst_files"; then
  986. cat <<\_ASBOX
  987. ## ------------- ##
  988. ## Output files. ##
  989. ## ------------- ##
  990. _ASBOX
  991. echo
  992. for ac_var in $ac_subst_files
  993. do
  994. eval ac_val=$`echo $ac_var`
  995. echo "$ac_var='"'"'$ac_val'"'"'"
  996. done | sort
  997. echo
  998. fi
  999. if test -s confdefs.h; then
  1000. cat <<\_ASBOX
  1001. ## ----------- ##
  1002. ## confdefs.h. ##
  1003. ## ----------- ##
  1004. _ASBOX
  1005. echo
  1006. sed "/^$/d" confdefs.h | sort
  1007. echo
  1008. fi
  1009. test "$ac_signal" != 0 &&
  1010. echo "$as_me: caught signal $ac_signal"
  1011. echo "$as_me: exit $exit_status"
  1012. } >&5
  1013. rm -f core *.core &&
  1014. rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1015. exit $exit_status
  1016. ' 0
  1017. for ac_signal in 1 2 13 15; do
  1018. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1019. done
  1020. ac_signal=0
  1021. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1022. rm -rf conftest* confdefs.h
  1023. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1024. echo >confdefs.h
  1025. # Predefined preprocessor variables.
  1026. cat >>confdefs.h <<_ACEOF
  1027. #define PACKAGE_NAME "$PACKAGE_NAME"
  1028. _ACEOF
  1029. cat >>confdefs.h <<_ACEOF
  1030. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1031. _ACEOF
  1032. cat >>confdefs.h <<_ACEOF
  1033. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1034. _ACEOF
  1035. cat >>confdefs.h <<_ACEOF
  1036. #define PACKAGE_STRING "$PACKAGE_STRING"
  1037. _ACEOF
  1038. cat >>confdefs.h <<_ACEOF
  1039. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1040. _ACEOF
  1041. # Let the site file select an alternate cache file if it wants to.
  1042. # Prefer explicitly selected file to automatically selected ones.
  1043. if test -z "$CONFIG_SITE"; then
  1044. if test "x$prefix" != xNONE; then
  1045. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1046. else
  1047. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1048. fi
  1049. fi
  1050. for ac_site_file in $CONFIG_SITE; do
  1051. if test -r "$ac_site_file"; then
  1052. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1053. echo "$as_me: loading site script $ac_site_file" >&6;}
  1054. sed 's/^/| /' "$ac_site_file" >&5
  1055. . "$ac_site_file"
  1056. fi
  1057. done
  1058. if test -r "$cache_file"; then
  1059. # Some versions of bash will fail to source /dev/null (special
  1060. # files actually), so we avoid doing that.
  1061. if test -f "$cache_file"; then
  1062. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1063. echo "$as_me: loading cache $cache_file" >&6;}
  1064. case $cache_file in
  1065. [\\/]* | ?:[\\/]* ) . $cache_file;;
  1066. *) . ./$cache_file;;
  1067. esac
  1068. fi
  1069. else
  1070. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1071. echo "$as_me: creating cache $cache_file" >&6;}
  1072. >$cache_file
  1073. fi
  1074. # Check that the precious variables saved in the cache have kept the same
  1075. # value.
  1076. ac_cache_corrupted=false
  1077. for ac_var in `(set) 2>&1 |
  1078. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1079. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1080. eval ac_new_set=\$ac_env_${ac_var}_set
  1081. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1082. eval ac_new_val="\$ac_env_${ac_var}_value"
  1083. case $ac_old_set,$ac_new_set in
  1084. set,)
  1085. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1086. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1087. ac_cache_corrupted=: ;;
  1088. ,set)
  1089. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1090. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1091. ac_cache_corrupted=: ;;
  1092. ,);;
  1093. *)
  1094. if test "x$ac_old_val" != "x$ac_new_val"; then
  1095. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1096. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1097. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1098. echo "$as_me: former value: $ac_old_val" >&2;}
  1099. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1100. echo "$as_me: current value: $ac_new_val" >&2;}
  1101. ac_cache_corrupted=:
  1102. fi;;
  1103. esac
  1104. # Pass precious variables to config.status.
  1105. if test "$ac_new_set" = set; then
  1106. case $ac_new_val in
  1107. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1108. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1109. *) ac_arg=$ac_var=$ac_new_val ;;
  1110. esac
  1111. case " $ac_configure_args " in
  1112. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1113. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1114. esac
  1115. fi
  1116. done
  1117. if $ac_cache_corrupted; then
  1118. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1119. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1120. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1121. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1122. { (exit 1); exit 1; }; }
  1123. fi
  1124. ac_ext=c
  1125. ac_cpp='$CPP $CPPFLAGS'
  1126. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1127. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1128. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1129. ac_config_headers="$ac_config_headers config.h"
  1130. # Remove --cache-file and --srcdir arguments so they do not pile up.
  1131. egg_ac_parameters=
  1132. ac_prev=
  1133. for ac_arg in $ac_configure_args; do
  1134. if test -n "$ac_prev"; then
  1135. ac_prev=
  1136. continue
  1137. fi
  1138. case $ac_arg in
  1139. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1140. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1141. ac_prev=cache_file ;;
  1142. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1143. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  1144. | --c=*)
  1145. ;;
  1146. --config-cache | -C)
  1147. ;;
  1148. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1149. ac_prev=srcdir ;;
  1150. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1151. ;;
  1152. *) egg_ac_parameters="$egg_ac_parameters $ac_arg" ;;
  1153. esac
  1154. done
  1155. # Setup build environment
  1156. ac_ext=c
  1157. ac_cpp='$CPP $CPPFLAGS'
  1158. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1159. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1160. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1161. if test -n "$ac_tool_prefix"; then
  1162. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  1163. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  1164. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1165. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1166. if test "${ac_cv_prog_CC+set}" = set; then
  1167. echo $ECHO_N "(cached) $ECHO_C" >&6
  1168. else
  1169. if test -n "$CC"; then
  1170. ac_cv_prog_CC="$CC" # Let the user override the test.
  1171. else
  1172. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1173. for as_dir in $PATH
  1174. do
  1175. IFS=$as_save_IFS
  1176. test -z "$as_dir" && as_dir=.
  1177. for ac_exec_ext in '' $ac_executable_extensions; do
  1178. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1179. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  1180. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1181. break 2
  1182. fi
  1183. done
  1184. done
  1185. fi
  1186. fi
  1187. CC=$ac_cv_prog_CC
  1188. if test -n "$CC"; then
  1189. echo "$as_me:$LINENO: result: $CC" >&5
  1190. echo "${ECHO_T}$CC" >&6
  1191. else
  1192. echo "$as_me:$LINENO: result: no" >&5
  1193. echo "${ECHO_T}no" >&6
  1194. fi
  1195. fi
  1196. if test -z "$ac_cv_prog_CC"; then
  1197. ac_ct_CC=$CC
  1198. # Extract the first word of "gcc", so it can be a program name with args.
  1199. set dummy gcc; ac_word=$2
  1200. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1201. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1202. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1203. echo $ECHO_N "(cached) $ECHO_C" >&6
  1204. else
  1205. if test -n "$ac_ct_CC"; then
  1206. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1207. else
  1208. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1209. for as_dir in $PATH
  1210. do
  1211. IFS=$as_save_IFS
  1212. test -z "$as_dir" && as_dir=.
  1213. for ac_exec_ext in '' $ac_executable_extensions; do
  1214. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1215. ac_cv_prog_ac_ct_CC="gcc"
  1216. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1217. break 2
  1218. fi
  1219. done
  1220. done
  1221. fi
  1222. fi
  1223. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1224. if test -n "$ac_ct_CC"; then
  1225. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1226. echo "${ECHO_T}$ac_ct_CC" >&6
  1227. else
  1228. echo "$as_me:$LINENO: result: no" >&5
  1229. echo "${ECHO_T}no" >&6
  1230. fi
  1231. CC=$ac_ct_CC
  1232. else
  1233. CC="$ac_cv_prog_CC"
  1234. fi
  1235. if test -z "$CC"; then
  1236. if test -n "$ac_tool_prefix"; then
  1237. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  1238. set dummy ${ac_tool_prefix}cc; ac_word=$2
  1239. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1240. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1241. if test "${ac_cv_prog_CC+set}" = set; then
  1242. echo $ECHO_N "(cached) $ECHO_C" >&6
  1243. else
  1244. if test -n "$CC"; then
  1245. ac_cv_prog_CC="$CC" # Let the user override the test.
  1246. else
  1247. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1248. for as_dir in $PATH
  1249. do
  1250. IFS=$as_save_IFS
  1251. test -z "$as_dir" && as_dir=.
  1252. for ac_exec_ext in '' $ac_executable_extensions; do
  1253. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1254. ac_cv_prog_CC="${ac_tool_prefix}cc"
  1255. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1256. break 2
  1257. fi
  1258. done
  1259. done
  1260. fi
  1261. fi
  1262. CC=$ac_cv_prog_CC
  1263. if test -n "$CC"; then
  1264. echo "$as_me:$LINENO: result: $CC" >&5
  1265. echo "${ECHO_T}$CC" >&6
  1266. else
  1267. echo "$as_me:$LINENO: result: no" >&5
  1268. echo "${ECHO_T}no" >&6
  1269. fi
  1270. fi
  1271. if test -z "$ac_cv_prog_CC"; then
  1272. ac_ct_CC=$CC
  1273. # Extract the first word of "cc", so it can be a program name with args.
  1274. set dummy cc; ac_word=$2
  1275. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1276. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1277. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1278. echo $ECHO_N "(cached) $ECHO_C" >&6
  1279. else
  1280. if test -n "$ac_ct_CC"; then
  1281. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1282. else
  1283. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1284. for as_dir in $PATH
  1285. do
  1286. IFS=$as_save_IFS
  1287. test -z "$as_dir" && as_dir=.
  1288. for ac_exec_ext in '' $ac_executable_extensions; do
  1289. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1290. ac_cv_prog_ac_ct_CC="cc"
  1291. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1292. break 2
  1293. fi
  1294. done
  1295. done
  1296. fi
  1297. fi
  1298. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1299. if test -n "$ac_ct_CC"; then
  1300. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1301. echo "${ECHO_T}$ac_ct_CC" >&6
  1302. else
  1303. echo "$as_me:$LINENO: result: no" >&5
  1304. echo "${ECHO_T}no" >&6
  1305. fi
  1306. CC=$ac_ct_CC
  1307. else
  1308. CC="$ac_cv_prog_CC"
  1309. fi
  1310. fi
  1311. if test -z "$CC"; then
  1312. # Extract the first word of "cc", so it can be a program name with args.
  1313. set dummy cc; ac_word=$2
  1314. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1315. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1316. if test "${ac_cv_prog_CC+set}" = set; then
  1317. echo $ECHO_N "(cached) $ECHO_C" >&6
  1318. else
  1319. if test -n "$CC"; then
  1320. ac_cv_prog_CC="$CC" # Let the user override the test.
  1321. else
  1322. ac_prog_rejected=no
  1323. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1324. for as_dir in $PATH
  1325. do
  1326. IFS=$as_save_IFS
  1327. test -z "$as_dir" && as_dir=.
  1328. for ac_exec_ext in '' $ac_executable_extensions; do
  1329. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1330. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  1331. ac_prog_rejected=yes
  1332. continue
  1333. fi
  1334. ac_cv_prog_CC="cc"
  1335. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1336. break 2
  1337. fi
  1338. done
  1339. done
  1340. if test $ac_prog_rejected = yes; then
  1341. # We found a bogon in the path, so make sure we never use it.
  1342. set dummy $ac_cv_prog_CC
  1343. shift
  1344. if test $# != 0; then
  1345. # We chose a different compiler from the bogus one.
  1346. # However, it has the same basename, so the bogon will be chosen
  1347. # first if we set CC to just the basename; use the full file name.
  1348. shift
  1349. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  1350. fi
  1351. fi
  1352. fi
  1353. fi
  1354. CC=$ac_cv_prog_CC
  1355. if test -n "$CC"; then
  1356. echo "$as_me:$LINENO: result: $CC" >&5
  1357. echo "${ECHO_T}$CC" >&6
  1358. else
  1359. echo "$as_me:$LINENO: result: no" >&5
  1360. echo "${ECHO_T}no" >&6
  1361. fi
  1362. fi
  1363. if test -z "$CC"; then
  1364. if test -n "$ac_tool_prefix"; then
  1365. for ac_prog in cl
  1366. do
  1367. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1368. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1369. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1370. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1371. if test "${ac_cv_prog_CC+set}" = set; then
  1372. echo $ECHO_N "(cached) $ECHO_C" >&6
  1373. else
  1374. if test -n "$CC"; then
  1375. ac_cv_prog_CC="$CC" # Let the user override the test.
  1376. else
  1377. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1378. for as_dir in $PATH
  1379. do
  1380. IFS=$as_save_IFS
  1381. test -z "$as_dir" && as_dir=.
  1382. for ac_exec_ext in '' $ac_executable_extensions; do
  1383. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1384. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  1385. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1386. break 2
  1387. fi
  1388. done
  1389. done
  1390. fi
  1391. fi
  1392. CC=$ac_cv_prog_CC
  1393. if test -n "$CC"; then
  1394. echo "$as_me:$LINENO: result: $CC" >&5
  1395. echo "${ECHO_T}$CC" >&6
  1396. else
  1397. echo "$as_me:$LINENO: result: no" >&5
  1398. echo "${ECHO_T}no" >&6
  1399. fi
  1400. test -n "$CC" && break
  1401. done
  1402. fi
  1403. if test -z "$CC"; then
  1404. ac_ct_CC=$CC
  1405. for ac_prog in cl
  1406. do
  1407. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1408. set dummy $ac_prog; ac_word=$2
  1409. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1410. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1411. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1412. echo $ECHO_N "(cached) $ECHO_C" >&6
  1413. else
  1414. if test -n "$ac_ct_CC"; then
  1415. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1416. else
  1417. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1418. for as_dir in $PATH
  1419. do
  1420. IFS=$as_save_IFS
  1421. test -z "$as_dir" && as_dir=.
  1422. for ac_exec_ext in '' $ac_executable_extensions; do
  1423. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1424. ac_cv_prog_ac_ct_CC="$ac_prog"
  1425. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1426. break 2
  1427. fi
  1428. done
  1429. done
  1430. fi
  1431. fi
  1432. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1433. if test -n "$ac_ct_CC"; then
  1434. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1435. echo "${ECHO_T}$ac_ct_CC" >&6
  1436. else
  1437. echo "$as_me:$LINENO: result: no" >&5
  1438. echo "${ECHO_T}no" >&6
  1439. fi
  1440. test -n "$ac_ct_CC" && break
  1441. done
  1442. CC=$ac_ct_CC
  1443. fi
  1444. fi
  1445. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  1446. See \`config.log' for more details." >&5
  1447. echo "$as_me: error: no acceptable C compiler found in \$PATH
  1448. See \`config.log' for more details." >&2;}
  1449. { (exit 1); exit 1; }; }
  1450. # Provide some information about the compiler.
  1451. echo "$as_me:$LINENO:" \
  1452. "checking for C compiler version" >&5
  1453. ac_compiler=`set X $ac_compile; echo $2`
  1454. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  1455. (eval $ac_compiler --version </dev/null >&5) 2>&5
  1456. ac_status=$?
  1457. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1458. (exit $ac_status); }
  1459. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  1460. (eval $ac_compiler -v </dev/null >&5) 2>&5
  1461. ac_status=$?
  1462. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1463. (exit $ac_status); }
  1464. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  1465. (eval $ac_compiler -V </dev/null >&5) 2>&5
  1466. ac_status=$?
  1467. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1468. (exit $ac_status); }
  1469. cat >conftest.$ac_ext <<_ACEOF
  1470. /* confdefs.h. */
  1471. _ACEOF
  1472. cat confdefs.h >>conftest.$ac_ext
  1473. cat >>conftest.$ac_ext <<_ACEOF
  1474. /* end confdefs.h. */
  1475. int
  1476. main ()
  1477. {
  1478. ;
  1479. return 0;
  1480. }
  1481. _ACEOF
  1482. ac_clean_files_save=$ac_clean_files
  1483. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  1484. # Try to create an executable without -o first, disregard a.out.
  1485. # It will help us diagnose broken compilers, and finding out an intuition
  1486. # of exeext.
  1487. echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  1488. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
  1489. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1490. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  1491. (eval $ac_link_default) 2>&5
  1492. ac_status=$?
  1493. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1494. (exit $ac_status); }; then
  1495. # Find the output, starting from the most likely. This scheme is
  1496. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  1497. # resort.
  1498. # Be careful to initialize this variable, since it used to be cached.
  1499. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  1500. ac_cv_exeext=
  1501. # b.out is created by i960 compilers.
  1502. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  1503. do
  1504. test -f "$ac_file" || continue
  1505. case $ac_file in
  1506. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  1507. ;;
  1508. conftest.$ac_ext )
  1509. # This is the source file.
  1510. ;;
  1511. [ab].out )
  1512. # We found the default executable, but exeext='' is most
  1513. # certainly right.
  1514. break;;
  1515. *.* )
  1516. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1517. # FIXME: I believe we export ac_cv_exeext for Libtool,
  1518. # but it would be cool to find out if it's true. Does anybody
  1519. # maintain Libtool? --akim.
  1520. export ac_cv_exeext
  1521. break;;
  1522. * )
  1523. break;;
  1524. esac
  1525. done
  1526. else
  1527. echo "$as_me: failed program was:" >&5
  1528. sed 's/^/| /' conftest.$ac_ext >&5
  1529. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  1530. See \`config.log' for more details." >&5
  1531. echo "$as_me: error: C compiler cannot create executables
  1532. See \`config.log' for more details." >&2;}
  1533. { (exit 77); exit 77; }; }
  1534. fi
  1535. ac_exeext=$ac_cv_exeext
  1536. echo "$as_me:$LINENO: result: $ac_file" >&5
  1537. echo "${ECHO_T}$ac_file" >&6
  1538. # Check the compiler produces executables we can run. If not, either
  1539. # the compiler is broken, or we cross compile.
  1540. echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  1541. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  1542. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1543. # If not cross compiling, check that we can run a simple program.
  1544. if test "$cross_compiling" != yes; then
  1545. if { ac_try='./$ac_file'
  1546. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1547. (eval $ac_try) 2>&5
  1548. ac_status=$?
  1549. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1550. (exit $ac_status); }; }; then
  1551. cross_compiling=no
  1552. else
  1553. if test "$cross_compiling" = maybe; then
  1554. cross_compiling=yes
  1555. else
  1556. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  1557. If you meant to cross compile, use \`--host'.
  1558. See \`config.log' for more details." >&5
  1559. echo "$as_me: error: cannot run C compiled programs.
  1560. If you meant to cross compile, use \`--host'.
  1561. See \`config.log' for more details." >&2;}
  1562. { (exit 1); exit 1; }; }
  1563. fi
  1564. fi
  1565. fi
  1566. echo "$as_me:$LINENO: result: yes" >&5
  1567. echo "${ECHO_T}yes" >&6
  1568. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  1569. ac_clean_files=$ac_clean_files_save
  1570. # Check the compiler produces executables we can run. If not, either
  1571. # the compiler is broken, or we cross compile.
  1572. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  1573. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  1574. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  1575. echo "${ECHO_T}$cross_compiling" >&6
  1576. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  1577. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  1578. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  1579. (eval $ac_link) 2>&5
  1580. ac_status=$?
  1581. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1582. (exit $ac_status); }; then
  1583. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  1584. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  1585. # work properly (i.e., refer to `conftest.exe'), while it won't with
  1586. # `rm'.
  1587. for ac_file in conftest.exe conftest conftest.*; do
  1588. test -f "$ac_file" || continue
  1589. case $ac_file in
  1590. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  1591. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1592. export ac_cv_exeext
  1593. break;;
  1594. * ) break;;
  1595. esac
  1596. done
  1597. else
  1598. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  1599. See \`config.log' for more details." >&5
  1600. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  1601. See \`config.log' for more details." >&2;}
  1602. { (exit 1); exit 1; }; }
  1603. fi
  1604. rm -f conftest$ac_cv_exeext
  1605. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  1606. echo "${ECHO_T}$ac_cv_exeext" >&6
  1607. rm -f conftest.$ac_ext
  1608. EXEEXT=$ac_cv_exeext
  1609. ac_exeext=$EXEEXT
  1610. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  1611. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  1612. if test "${ac_cv_objext+set}" = set; then
  1613. echo $ECHO_N "(cached) $ECHO_C" >&6
  1614. else
  1615. cat >conftest.$ac_ext <<_ACEOF
  1616. /* confdefs.h. */
  1617. _ACEOF
  1618. cat confdefs.h >>conftest.$ac_ext
  1619. cat >>conftest.$ac_ext <<_ACEOF
  1620. /* end confdefs.h. */
  1621. int
  1622. main ()
  1623. {
  1624. ;
  1625. return 0;
  1626. }
  1627. _ACEOF
  1628. rm -f conftest.o conftest.obj
  1629. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1630. (eval $ac_compile) 2>&5
  1631. ac_status=$?
  1632. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1633. (exit $ac_status); }; then
  1634. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  1635. case $ac_file in
  1636. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  1637. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  1638. break;;
  1639. esac
  1640. done
  1641. else
  1642. echo "$as_me: failed program was:" >&5
  1643. sed 's/^/| /' conftest.$ac_ext >&5
  1644. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  1645. See \`config.log' for more details." >&5
  1646. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  1647. See \`config.log' for more details." >&2;}
  1648. { (exit 1); exit 1; }; }
  1649. fi
  1650. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  1651. fi
  1652. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  1653. echo "${ECHO_T}$ac_cv_objext" >&6
  1654. OBJEXT=$ac_cv_objext
  1655. ac_objext=$OBJEXT
  1656. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  1657. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  1658. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  1659. echo $ECHO_N "(cached) $ECHO_C" >&6
  1660. else
  1661. cat >conftest.$ac_ext <<_ACEOF
  1662. /* confdefs.h. */
  1663. _ACEOF
  1664. cat confdefs.h >>conftest.$ac_ext
  1665. cat >>conftest.$ac_ext <<_ACEOF
  1666. /* end confdefs.h. */
  1667. int
  1668. main ()
  1669. {
  1670. #ifndef __GNUC__
  1671. choke me
  1672. #endif
  1673. ;
  1674. return 0;
  1675. }
  1676. _ACEOF
  1677. rm -f conftest.$ac_objext
  1678. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1679. (eval $ac_compile) 2>conftest.er1
  1680. ac_status=$?
  1681. grep -v '^ *+' conftest.er1 >conftest.err
  1682. rm -f conftest.er1
  1683. cat conftest.err >&5
  1684. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1685. (exit $ac_status); } &&
  1686. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1687. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1688. (eval $ac_try) 2>&5
  1689. ac_status=$?
  1690. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1691. (exit $ac_status); }; } &&
  1692. { ac_try='test -s conftest.$ac_objext'
  1693. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1694. (eval $ac_try) 2>&5
  1695. ac_status=$?
  1696. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1697. (exit $ac_status); }; }; then
  1698. ac_compiler_gnu=yes
  1699. else
  1700. echo "$as_me: failed program was:" >&5
  1701. sed 's/^/| /' conftest.$ac_ext >&5
  1702. ac_compiler_gnu=no
  1703. fi
  1704. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1705. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  1706. fi
  1707. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  1708. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  1709. GCC=`test $ac_compiler_gnu = yes && echo yes`
  1710. ac_test_CFLAGS=${CFLAGS+set}
  1711. ac_save_CFLAGS=$CFLAGS
  1712. CFLAGS="-g"
  1713. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  1714. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  1715. if test "${ac_cv_prog_cc_g+set}" = set; then
  1716. echo $ECHO_N "(cached) $ECHO_C" >&6
  1717. else
  1718. cat >conftest.$ac_ext <<_ACEOF
  1719. /* confdefs.h. */
  1720. _ACEOF
  1721. cat confdefs.h >>conftest.$ac_ext
  1722. cat >>conftest.$ac_ext <<_ACEOF
  1723. /* end confdefs.h. */
  1724. int
  1725. main ()
  1726. {
  1727. ;
  1728. return 0;
  1729. }
  1730. _ACEOF
  1731. rm -f conftest.$ac_objext
  1732. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1733. (eval $ac_compile) 2>conftest.er1
  1734. ac_status=$?
  1735. grep -v '^ *+' conftest.er1 >conftest.err
  1736. rm -f conftest.er1
  1737. cat conftest.err >&5
  1738. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1739. (exit $ac_status); } &&
  1740. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1741. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1742. (eval $ac_try) 2>&5
  1743. ac_status=$?
  1744. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1745. (exit $ac_status); }; } &&
  1746. { ac_try='test -s conftest.$ac_objext'
  1747. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1748. (eval $ac_try) 2>&5
  1749. ac_status=$?
  1750. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1751. (exit $ac_status); }; }; then
  1752. ac_cv_prog_cc_g=yes
  1753. else
  1754. echo "$as_me: failed program was:" >&5
  1755. sed 's/^/| /' conftest.$ac_ext >&5
  1756. ac_cv_prog_cc_g=no
  1757. fi
  1758. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1759. fi
  1760. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  1761. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  1762. if test "$ac_test_CFLAGS" = set; then
  1763. CFLAGS=$ac_save_CFLAGS
  1764. elif test $ac_cv_prog_cc_g = yes; then
  1765. if test "$GCC" = yes; then
  1766. CFLAGS="-g -O2"
  1767. else
  1768. CFLAGS="-g"
  1769. fi
  1770. else
  1771. if test "$GCC" = yes; then
  1772. CFLAGS="-O2"
  1773. else
  1774. CFLAGS=
  1775. fi
  1776. fi
  1777. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  1778. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  1779. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  1780. echo $ECHO_N "(cached) $ECHO_C" >&6
  1781. else
  1782. ac_cv_prog_cc_stdc=no
  1783. ac_save_CC=$CC
  1784. cat >conftest.$ac_ext <<_ACEOF
  1785. /* confdefs.h. */
  1786. _ACEOF
  1787. cat confdefs.h >>conftest.$ac_ext
  1788. cat >>conftest.$ac_ext <<_ACEOF
  1789. /* end confdefs.h. */
  1790. #include <stdarg.h>
  1791. #include <stdio.h>
  1792. #include <sys/types.h>
  1793. #include <sys/stat.h>
  1794. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  1795. struct buf { int x; };
  1796. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  1797. static char *e (p, i)
  1798. char **p;
  1799. int i;
  1800. {
  1801. return p[i];
  1802. }
  1803. static char *f (char * (*g) (char **, int), char **p, ...)
  1804. {
  1805. char *s;
  1806. va_list v;
  1807. va_start (v,p);
  1808. s = g (p, va_arg (v,int));
  1809. va_end (v);
  1810. return s;
  1811. }
  1812. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  1813. function prototypes and stuff, but not '\xHH' hex character constants.
  1814. These don't provoke an error unfortunately, instead are silently treated
  1815. as 'x'. The following induces an error, until -std1 is added to get
  1816. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  1817. array size at least. It's necessary to write '\x00'==0 to get something
  1818. that's true only with -std1. */
  1819. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  1820. int test (int i, double x);
  1821. struct s1 {int (*f) (int a);};
  1822. struct s2 {int (*f) (double a);};
  1823. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  1824. int argc;
  1825. char **argv;
  1826. int
  1827. main ()
  1828. {
  1829. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  1830. ;
  1831. return 0;
  1832. }
  1833. _ACEOF
  1834. # Don't try gcc -ansi; that turns off useful extensions and
  1835. # breaks some systems' header files.
  1836. # AIX -qlanglvl=ansi
  1837. # Ultrix and OSF/1 -std1
  1838. # HP-UX 10.20 and later -Ae
  1839. # HP-UX older versions -Aa -D_HPUX_SOURCE
  1840. # SVR4 -Xc -D__EXTENSIONS__
  1841. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  1842. do
  1843. CC="$ac_save_CC $ac_arg"
  1844. rm -f conftest.$ac_objext
  1845. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1846. (eval $ac_compile) 2>conftest.er1
  1847. ac_status=$?
  1848. grep -v '^ *+' conftest.er1 >conftest.err
  1849. rm -f conftest.er1
  1850. cat conftest.err >&5
  1851. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1852. (exit $ac_status); } &&
  1853. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1854. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1855. (eval $ac_try) 2>&5
  1856. ac_status=$?
  1857. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1858. (exit $ac_status); }; } &&
  1859. { ac_try='test -s conftest.$ac_objext'
  1860. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1861. (eval $ac_try) 2>&5
  1862. ac_status=$?
  1863. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1864. (exit $ac_status); }; }; then
  1865. ac_cv_prog_cc_stdc=$ac_arg
  1866. break
  1867. else
  1868. echo "$as_me: failed program was:" >&5
  1869. sed 's/^/| /' conftest.$ac_ext >&5
  1870. fi
  1871. rm -f conftest.err conftest.$ac_objext
  1872. done
  1873. rm -f conftest.$ac_ext conftest.$ac_objext
  1874. CC=$ac_save_CC
  1875. fi
  1876. case "x$ac_cv_prog_cc_stdc" in
  1877. x|xno)
  1878. echo "$as_me:$LINENO: result: none needed" >&5
  1879. echo "${ECHO_T}none needed" >&6 ;;
  1880. *)
  1881. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  1882. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  1883. CC="$CC $ac_cv_prog_cc_stdc" ;;
  1884. esac
  1885. # Some people use a C++ compiler to compile C. Since we use `exit',
  1886. # in C++ we need to declare it. In case someone uses the same compiler
  1887. # for both compiling C and C++ we need to have the C++ compiler decide
  1888. # the declaration of exit, since it's the most demanding environment.
  1889. cat >conftest.$ac_ext <<_ACEOF
  1890. #ifndef __cplusplus
  1891. choke me
  1892. #endif
  1893. _ACEOF
  1894. rm -f conftest.$ac_objext
  1895. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1896. (eval $ac_compile) 2>conftest.er1
  1897. ac_status=$?
  1898. grep -v '^ *+' conftest.er1 >conftest.err
  1899. rm -f conftest.er1
  1900. cat conftest.err >&5
  1901. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1902. (exit $ac_status); } &&
  1903. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1904. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1905. (eval $ac_try) 2>&5
  1906. ac_status=$?
  1907. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1908. (exit $ac_status); }; } &&
  1909. { ac_try='test -s conftest.$ac_objext'
  1910. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1911. (eval $ac_try) 2>&5
  1912. ac_status=$?
  1913. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1914. (exit $ac_status); }; }; then
  1915. for ac_declaration in \
  1916. '' \
  1917. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  1918. 'extern "C" void std::exit (int); using std::exit;' \
  1919. 'extern "C" void exit (int) throw ();' \
  1920. 'extern "C" void exit (int);' \
  1921. 'void exit (int);'
  1922. do
  1923. cat >conftest.$ac_ext <<_ACEOF
  1924. /* confdefs.h. */
  1925. _ACEOF
  1926. cat confdefs.h >>conftest.$ac_ext
  1927. cat >>conftest.$ac_ext <<_ACEOF
  1928. /* end confdefs.h. */
  1929. $ac_declaration
  1930. #include <stdlib.h>
  1931. int
  1932. main ()
  1933. {
  1934. exit (42);
  1935. ;
  1936. return 0;
  1937. }
  1938. _ACEOF
  1939. rm -f conftest.$ac_objext
  1940. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1941. (eval $ac_compile) 2>conftest.er1
  1942. ac_status=$?
  1943. grep -v '^ *+' conftest.er1 >conftest.err
  1944. rm -f conftest.er1
  1945. cat conftest.err >&5
  1946. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1947. (exit $ac_status); } &&
  1948. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1949. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1950. (eval $ac_try) 2>&5
  1951. ac_status=$?
  1952. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1953. (exit $ac_status); }; } &&
  1954. { ac_try='test -s conftest.$ac_objext'
  1955. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1956. (eval $ac_try) 2>&5
  1957. ac_status=$?
  1958. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1959. (exit $ac_status); }; }; then
  1960. :
  1961. else
  1962. echo "$as_me: failed program was:" >&5
  1963. sed 's/^/| /' conftest.$ac_ext >&5
  1964. continue
  1965. fi
  1966. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1967. cat >conftest.$ac_ext <<_ACEOF
  1968. /* confdefs.h. */
  1969. _ACEOF
  1970. cat confdefs.h >>conftest.$ac_ext
  1971. cat >>conftest.$ac_ext <<_ACEOF
  1972. /* end confdefs.h. */
  1973. $ac_declaration
  1974. int
  1975. main ()
  1976. {
  1977. exit (42);
  1978. ;
  1979. return 0;
  1980. }
  1981. _ACEOF
  1982. rm -f conftest.$ac_objext
  1983. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1984. (eval $ac_compile) 2>conftest.er1
  1985. ac_status=$?
  1986. grep -v '^ *+' conftest.er1 >conftest.err
  1987. rm -f conftest.er1
  1988. cat conftest.err >&5
  1989. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1990. (exit $ac_status); } &&
  1991. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1992. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1993. (eval $ac_try) 2>&5
  1994. ac_status=$?
  1995. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1996. (exit $ac_status); }; } &&
  1997. { ac_try='test -s conftest.$ac_objext'
  1998. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1999. (eval $ac_try) 2>&5
  2000. ac_status=$?
  2001. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2002. (exit $ac_status); }; }; then
  2003. break
  2004. else
  2005. echo "$as_me: failed program was:" >&5
  2006. sed 's/^/| /' conftest.$ac_ext >&5
  2007. fi
  2008. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2009. done
  2010. rm -f conftest*
  2011. if test -n "$ac_declaration"; then
  2012. echo '#ifdef __cplusplus' >>confdefs.h
  2013. echo $ac_declaration >>confdefs.h
  2014. echo '#endif' >>confdefs.h
  2015. fi
  2016. else
  2017. echo "$as_me: failed program was:" >&5
  2018. sed 's/^/| /' conftest.$ac_ext >&5
  2019. fi
  2020. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2021. ac_ext=c
  2022. ac_cpp='$CPP $CPPFLAGS'
  2023. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2024. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2025. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2026. if test "${cross_compiling-x}" = "x"
  2027. then
  2028. cat << 'EOF' >&2
  2029. configure: error:
  2030. This system does not appear to have a working C compiler.
  2031. A working C compiler is required to compile Eggdrop.
  2032. EOF
  2033. exit 1
  2034. fi
  2035. # Crazy machines
  2036. ac_ext=c
  2037. ac_cpp='$CPP $CPPFLAGS'
  2038. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2039. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2040. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2041. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  2042. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  2043. # On Suns, sometimes $CPP names a directory.
  2044. if test -n "$CPP" && test -d "$CPP"; then
  2045. CPP=
  2046. fi
  2047. if test -z "$CPP"; then
  2048. if test "${ac_cv_prog_CPP+set}" = set; then
  2049. echo $ECHO_N "(cached) $ECHO_C" >&6
  2050. else
  2051. # Double quotes because CPP needs to be expanded
  2052. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  2053. do
  2054. ac_preproc_ok=false
  2055. for ac_c_preproc_warn_flag in '' yes
  2056. do
  2057. # Use a header file that comes with gcc, so configuring glibc
  2058. # with a fresh cross-compiler works.
  2059. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2060. # <limits.h> exists even on freestanding compilers.
  2061. # On the NeXT, cc -E runs the code through the compiler's parser,
  2062. # not just through cpp. "Syntax error" is here to catch this case.
  2063. cat >conftest.$ac_ext <<_ACEOF
  2064. /* confdefs.h. */
  2065. _ACEOF
  2066. cat confdefs.h >>conftest.$ac_ext
  2067. cat >>conftest.$ac_ext <<_ACEOF
  2068. /* end confdefs.h. */
  2069. #ifdef __STDC__
  2070. # include <limits.h>
  2071. #else
  2072. # include <assert.h>
  2073. #endif
  2074. Syntax error
  2075. _ACEOF
  2076. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2077. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2078. ac_status=$?
  2079. grep -v '^ *+' conftest.er1 >conftest.err
  2080. rm -f conftest.er1
  2081. cat conftest.err >&5
  2082. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2083. (exit $ac_status); } >/dev/null; then
  2084. if test -s conftest.err; then
  2085. ac_cpp_err=$ac_c_preproc_warn_flag
  2086. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2087. else
  2088. ac_cpp_err=
  2089. fi
  2090. else
  2091. ac_cpp_err=yes
  2092. fi
  2093. if test -z "$ac_cpp_err"; then
  2094. :
  2095. else
  2096. echo "$as_me: failed program was:" >&5
  2097. sed 's/^/| /' conftest.$ac_ext >&5
  2098. # Broken: fails on valid input.
  2099. continue
  2100. fi
  2101. rm -f conftest.err conftest.$ac_ext
  2102. # OK, works on sane cases. Now check whether non-existent headers
  2103. # can be detected and how.
  2104. cat >conftest.$ac_ext <<_ACEOF
  2105. /* confdefs.h. */
  2106. _ACEOF
  2107. cat confdefs.h >>conftest.$ac_ext
  2108. cat >>conftest.$ac_ext <<_ACEOF
  2109. /* end confdefs.h. */
  2110. #include <ac_nonexistent.h>
  2111. _ACEOF
  2112. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2113. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2114. ac_status=$?
  2115. grep -v '^ *+' conftest.er1 >conftest.err
  2116. rm -f conftest.er1
  2117. cat conftest.err >&5
  2118. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2119. (exit $ac_status); } >/dev/null; then
  2120. if test -s conftest.err; then
  2121. ac_cpp_err=$ac_c_preproc_warn_flag
  2122. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2123. else
  2124. ac_cpp_err=
  2125. fi
  2126. else
  2127. ac_cpp_err=yes
  2128. fi
  2129. if test -z "$ac_cpp_err"; then
  2130. # Broken: success on invalid input.
  2131. continue
  2132. else
  2133. echo "$as_me: failed program was:" >&5
  2134. sed 's/^/| /' conftest.$ac_ext >&5
  2135. # Passes both tests.
  2136. ac_preproc_ok=:
  2137. break
  2138. fi
  2139. rm -f conftest.err conftest.$ac_ext
  2140. done
  2141. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2142. rm -f conftest.err conftest.$ac_ext
  2143. if $ac_preproc_ok; then
  2144. break
  2145. fi
  2146. done
  2147. ac_cv_prog_CPP=$CPP
  2148. fi
  2149. CPP=$ac_cv_prog_CPP
  2150. else
  2151. ac_cv_prog_CPP=$CPP
  2152. fi
  2153. echo "$as_me:$LINENO: result: $CPP" >&5
  2154. echo "${ECHO_T}$CPP" >&6
  2155. ac_preproc_ok=false
  2156. for ac_c_preproc_warn_flag in '' yes
  2157. do
  2158. # Use a header file that comes with gcc, so configuring glibc
  2159. # with a fresh cross-compiler works.
  2160. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2161. # <limits.h> exists even on freestanding compilers.
  2162. # On the NeXT, cc -E runs the code through the compiler's parser,
  2163. # not just through cpp. "Syntax error" is here to catch this case.
  2164. cat >conftest.$ac_ext <<_ACEOF
  2165. /* confdefs.h. */
  2166. _ACEOF
  2167. cat confdefs.h >>conftest.$ac_ext
  2168. cat >>conftest.$ac_ext <<_ACEOF
  2169. /* end confdefs.h. */
  2170. #ifdef __STDC__
  2171. # include <limits.h>
  2172. #else
  2173. # include <assert.h>
  2174. #endif
  2175. Syntax error
  2176. _ACEOF
  2177. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2178. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2179. ac_status=$?
  2180. grep -v '^ *+' conftest.er1 >conftest.err
  2181. rm -f conftest.er1
  2182. cat conftest.err >&5
  2183. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2184. (exit $ac_status); } >/dev/null; then
  2185. if test -s conftest.err; then
  2186. ac_cpp_err=$ac_c_preproc_warn_flag
  2187. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2188. else
  2189. ac_cpp_err=
  2190. fi
  2191. else
  2192. ac_cpp_err=yes
  2193. fi
  2194. if test -z "$ac_cpp_err"; then
  2195. :
  2196. else
  2197. echo "$as_me: failed program was:" >&5
  2198. sed 's/^/| /' conftest.$ac_ext >&5
  2199. # Broken: fails on valid input.
  2200. continue
  2201. fi
  2202. rm -f conftest.err conftest.$ac_ext
  2203. # OK, works on sane cases. Now check whether non-existent headers
  2204. # can be detected and how.
  2205. cat >conftest.$ac_ext <<_ACEOF
  2206. /* confdefs.h. */
  2207. _ACEOF
  2208. cat confdefs.h >>conftest.$ac_ext
  2209. cat >>conftest.$ac_ext <<_ACEOF
  2210. /* end confdefs.h. */
  2211. #include <ac_nonexistent.h>
  2212. _ACEOF
  2213. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2214. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2215. ac_status=$?
  2216. grep -v '^ *+' conftest.er1 >conftest.err
  2217. rm -f conftest.er1
  2218. cat conftest.err >&5
  2219. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2220. (exit $ac_status); } >/dev/null; then
  2221. if test -s conftest.err; then
  2222. ac_cpp_err=$ac_c_preproc_warn_flag
  2223. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2224. else
  2225. ac_cpp_err=
  2226. fi
  2227. else
  2228. ac_cpp_err=yes
  2229. fi
  2230. if test -z "$ac_cpp_err"; then
  2231. # Broken: success on invalid input.
  2232. continue
  2233. else
  2234. echo "$as_me: failed program was:" >&5
  2235. sed 's/^/| /' conftest.$ac_ext >&5
  2236. # Passes both tests.
  2237. ac_preproc_ok=:
  2238. break
  2239. fi
  2240. rm -f conftest.err conftest.$ac_ext
  2241. done
  2242. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2243. rm -f conftest.err conftest.$ac_ext
  2244. if $ac_preproc_ok; then
  2245. :
  2246. else
  2247. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  2248. See \`config.log' for more details." >&5
  2249. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  2250. See \`config.log' for more details." >&2;}
  2251. { (exit 1); exit 1; }; }
  2252. fi
  2253. ac_ext=c
  2254. ac_cpp='$CPP $CPPFLAGS'
  2255. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2256. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2257. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2258. echo "$as_me:$LINENO: checking for egrep" >&5
  2259. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  2260. if test "${ac_cv_prog_egrep+set}" = set; then
  2261. echo $ECHO_N "(cached) $ECHO_C" >&6
  2262. else
  2263. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  2264. then ac_cv_prog_egrep='grep -E'
  2265. else ac_cv_prog_egrep='egrep'
  2266. fi
  2267. fi
  2268. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  2269. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  2270. EGREP=$ac_cv_prog_egrep
  2271. echo "$as_me:$LINENO: checking for AIX" >&5
  2272. echo $ECHO_N "checking for AIX... $ECHO_C" >&6
  2273. cat >conftest.$ac_ext <<_ACEOF
  2274. /* confdefs.h. */
  2275. _ACEOF
  2276. cat confdefs.h >>conftest.$ac_ext
  2277. cat >>conftest.$ac_ext <<_ACEOF
  2278. /* end confdefs.h. */
  2279. #ifdef _AIX
  2280. yes
  2281. #endif
  2282. _ACEOF
  2283. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2284. $EGREP "yes" >/dev/null 2>&1; then
  2285. echo "$as_me:$LINENO: result: yes" >&5
  2286. echo "${ECHO_T}yes" >&6
  2287. cat >>confdefs.h <<\_ACEOF
  2288. #define _ALL_SOURCE 1
  2289. _ACEOF
  2290. else
  2291. echo "$as_me:$LINENO: result: no" >&5
  2292. echo "${ECHO_T}no" >&6
  2293. fi
  2294. rm -f conftest*
  2295. echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
  2296. echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
  2297. if test "${ac_cv_lib_cposix_strerror+set}" = set; then
  2298. echo $ECHO_N "(cached) $ECHO_C" >&6
  2299. else
  2300. ac_check_lib_save_LIBS=$LIBS
  2301. LIBS="-lcposix $LIBS"
  2302. cat >conftest.$ac_ext <<_ACEOF
  2303. /* confdefs.h. */
  2304. _ACEOF
  2305. cat confdefs.h >>conftest.$ac_ext
  2306. cat >>conftest.$ac_ext <<_ACEOF
  2307. /* end confdefs.h. */
  2308. /* Override any gcc2 internal prototype to avoid an error. */
  2309. #ifdef __cplusplus
  2310. extern "C"
  2311. #endif
  2312. /* We use char because int might match the return type of a gcc2
  2313. builtin and then its argument prototype would still apply. */
  2314. char strerror ();
  2315. int
  2316. main ()
  2317. {
  2318. strerror ();
  2319. ;
  2320. return 0;
  2321. }
  2322. _ACEOF
  2323. rm -f conftest.$ac_objext conftest$ac_exeext
  2324. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2325. (eval $ac_link) 2>conftest.er1
  2326. ac_status=$?
  2327. grep -v '^ *+' conftest.er1 >conftest.err
  2328. rm -f conftest.er1
  2329. cat conftest.err >&5
  2330. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2331. (exit $ac_status); } &&
  2332. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2333. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2334. (eval $ac_try) 2>&5
  2335. ac_status=$?
  2336. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2337. (exit $ac_status); }; } &&
  2338. { ac_try='test -s conftest$ac_exeext'
  2339. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2340. (eval $ac_try) 2>&5
  2341. ac_status=$?
  2342. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2343. (exit $ac_status); }; }; then
  2344. ac_cv_lib_cposix_strerror=yes
  2345. else
  2346. echo "$as_me: failed program was:" >&5
  2347. sed 's/^/| /' conftest.$ac_ext >&5
  2348. ac_cv_lib_cposix_strerror=no
  2349. fi
  2350. rm -f conftest.err conftest.$ac_objext \
  2351. conftest$ac_exeext conftest.$ac_ext
  2352. LIBS=$ac_check_lib_save_LIBS
  2353. fi
  2354. echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
  2355. echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
  2356. if test $ac_cv_lib_cposix_strerror = yes; then
  2357. LIBS="$LIBS -lcposix"
  2358. fi
  2359. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  2360. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  2361. if test "${ac_cv_header_stdc+set}" = set; then
  2362. echo $ECHO_N "(cached) $ECHO_C" >&6
  2363. else
  2364. cat >conftest.$ac_ext <<_ACEOF
  2365. /* confdefs.h. */
  2366. _ACEOF
  2367. cat confdefs.h >>conftest.$ac_ext
  2368. cat >>conftest.$ac_ext <<_ACEOF
  2369. /* end confdefs.h. */
  2370. #include <stdlib.h>
  2371. #include <stdarg.h>
  2372. #include <string.h>
  2373. #include <float.h>
  2374. int
  2375. main ()
  2376. {
  2377. ;
  2378. return 0;
  2379. }
  2380. _ACEOF
  2381. rm -f conftest.$ac_objext
  2382. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2383. (eval $ac_compile) 2>conftest.er1
  2384. ac_status=$?
  2385. grep -v '^ *+' conftest.er1 >conftest.err
  2386. rm -f conftest.er1
  2387. cat conftest.err >&5
  2388. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2389. (exit $ac_status); } &&
  2390. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2391. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2392. (eval $ac_try) 2>&5
  2393. ac_status=$?
  2394. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2395. (exit $ac_status); }; } &&
  2396. { ac_try='test -s conftest.$ac_objext'
  2397. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2398. (eval $ac_try) 2>&5
  2399. ac_status=$?
  2400. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2401. (exit $ac_status); }; }; then
  2402. ac_cv_header_stdc=yes
  2403. else
  2404. echo "$as_me: failed program was:" >&5
  2405. sed 's/^/| /' conftest.$ac_ext >&5
  2406. ac_cv_header_stdc=no
  2407. fi
  2408. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2409. if test $ac_cv_header_stdc = yes; then
  2410. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  2411. cat >conftest.$ac_ext <<_ACEOF
  2412. /* confdefs.h. */
  2413. _ACEOF
  2414. cat confdefs.h >>conftest.$ac_ext
  2415. cat >>conftest.$ac_ext <<_ACEOF
  2416. /* end confdefs.h. */
  2417. #include <string.h>
  2418. _ACEOF
  2419. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2420. $EGREP "memchr" >/dev/null 2>&1; then
  2421. :
  2422. else
  2423. ac_cv_header_stdc=no
  2424. fi
  2425. rm -f conftest*
  2426. fi
  2427. if test $ac_cv_header_stdc = yes; then
  2428. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  2429. cat >conftest.$ac_ext <<_ACEOF
  2430. /* confdefs.h. */
  2431. _ACEOF
  2432. cat confdefs.h >>conftest.$ac_ext
  2433. cat >>conftest.$ac_ext <<_ACEOF
  2434. /* end confdefs.h. */
  2435. #include <stdlib.h>
  2436. _ACEOF
  2437. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2438. $EGREP "free" >/dev/null 2>&1; then
  2439. :
  2440. else
  2441. ac_cv_header_stdc=no
  2442. fi
  2443. rm -f conftest*
  2444. fi
  2445. if test $ac_cv_header_stdc = yes; then
  2446. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  2447. if test "$cross_compiling" = yes; then
  2448. :
  2449. else
  2450. cat >conftest.$ac_ext <<_ACEOF
  2451. /* confdefs.h. */
  2452. _ACEOF
  2453. cat confdefs.h >>conftest.$ac_ext
  2454. cat >>conftest.$ac_ext <<_ACEOF
  2455. /* end confdefs.h. */
  2456. #include <ctype.h>
  2457. #if ((' ' & 0x0FF) == 0x020)
  2458. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  2459. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  2460. #else
  2461. # define ISLOWER(c) \
  2462. (('a' <= (c) && (c) <= 'i') \
  2463. || ('j' <= (c) && (c) <= 'r') \
  2464. || ('s' <= (c) && (c) <= 'z'))
  2465. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  2466. #endif
  2467. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  2468. int
  2469. main ()
  2470. {
  2471. int i;
  2472. for (i = 0; i < 256; i++)
  2473. if (XOR (islower (i), ISLOWER (i))
  2474. || toupper (i) != TOUPPER (i))
  2475. exit(2);
  2476. exit (0);
  2477. }
  2478. _ACEOF
  2479. rm -f conftest$ac_exeext
  2480. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2481. (eval $ac_link) 2>&5
  2482. ac_status=$?
  2483. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2484. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  2485. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2486. (eval $ac_try) 2>&5
  2487. ac_status=$?
  2488. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2489. (exit $ac_status); }; }; then
  2490. :
  2491. else
  2492. echo "$as_me: program exited with status $ac_status" >&5
  2493. echo "$as_me: failed program was:" >&5
  2494. sed 's/^/| /' conftest.$ac_ext >&5
  2495. ( exit $ac_status )
  2496. ac_cv_header_stdc=no
  2497. fi
  2498. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  2499. fi
  2500. fi
  2501. fi
  2502. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  2503. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  2504. if test $ac_cv_header_stdc = yes; then
  2505. cat >>confdefs.h <<\_ACEOF
  2506. #define STDC_HEADERS 1
  2507. _ACEOF
  2508. fi
  2509. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  2510. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  2511. inttypes.h stdint.h unistd.h
  2512. do
  2513. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  2514. echo "$as_me:$LINENO: checking for $ac_header" >&5
  2515. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  2516. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  2517. echo $ECHO_N "(cached) $ECHO_C" >&6
  2518. else
  2519. cat >conftest.$ac_ext <<_ACEOF
  2520. /* confdefs.h. */
  2521. _ACEOF
  2522. cat confdefs.h >>conftest.$ac_ext
  2523. cat >>conftest.$ac_ext <<_ACEOF
  2524. /* end confdefs.h. */
  2525. $ac_includes_default
  2526. #include <$ac_header>
  2527. _ACEOF
  2528. rm -f conftest.$ac_objext
  2529. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2530. (eval $ac_compile) 2>conftest.er1
  2531. ac_status=$?
  2532. grep -v '^ *+' conftest.er1 >conftest.err
  2533. rm -f conftest.er1
  2534. cat conftest.err >&5
  2535. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2536. (exit $ac_status); } &&
  2537. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2538. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2539. (eval $ac_try) 2>&5
  2540. ac_status=$?
  2541. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2542. (exit $ac_status); }; } &&
  2543. { ac_try='test -s conftest.$ac_objext'
  2544. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2545. (eval $ac_try) 2>&5
  2546. ac_status=$?
  2547. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2548. (exit $ac_status); }; }; then
  2549. eval "$as_ac_Header=yes"
  2550. else
  2551. echo "$as_me: failed program was:" >&5
  2552. sed 's/^/| /' conftest.$ac_ext >&5
  2553. eval "$as_ac_Header=no"
  2554. fi
  2555. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2556. fi
  2557. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  2558. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  2559. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  2560. cat >>confdefs.h <<_ACEOF
  2561. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  2562. _ACEOF
  2563. fi
  2564. done
  2565. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2566. echo "$as_me:$LINENO: checking for minix/config.h" >&5
  2567. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
  2568. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2569. echo $ECHO_N "(cached) $ECHO_C" >&6
  2570. fi
  2571. echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  2572. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
  2573. else
  2574. # Is the header compilable?
  2575. echo "$as_me:$LINENO: checking minix/config.h usability" >&5
  2576. echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
  2577. cat >conftest.$ac_ext <<_ACEOF
  2578. /* confdefs.h. */
  2579. _ACEOF
  2580. cat confdefs.h >>conftest.$ac_ext
  2581. cat >>conftest.$ac_ext <<_ACEOF
  2582. /* end confdefs.h. */
  2583. $ac_includes_default
  2584. #include <minix/config.h>
  2585. _ACEOF
  2586. rm -f conftest.$ac_objext
  2587. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2588. (eval $ac_compile) 2>conftest.er1
  2589. ac_status=$?
  2590. grep -v '^ *+' conftest.er1 >conftest.err
  2591. rm -f conftest.er1
  2592. cat conftest.err >&5
  2593. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2594. (exit $ac_status); } &&
  2595. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2596. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2597. (eval $ac_try) 2>&5
  2598. ac_status=$?
  2599. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2600. (exit $ac_status); }; } &&
  2601. { ac_try='test -s conftest.$ac_objext'
  2602. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2603. (eval $ac_try) 2>&5
  2604. ac_status=$?
  2605. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2606. (exit $ac_status); }; }; then
  2607. ac_header_compiler=yes
  2608. else
  2609. echo "$as_me: failed program was:" >&5
  2610. sed 's/^/| /' conftest.$ac_ext >&5
  2611. ac_header_compiler=no
  2612. fi
  2613. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2614. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  2615. echo "${ECHO_T}$ac_header_compiler" >&6
  2616. # Is the header present?
  2617. echo "$as_me:$LINENO: checking minix/config.h presence" >&5
  2618. echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
  2619. cat >conftest.$ac_ext <<_ACEOF
  2620. /* confdefs.h. */
  2621. _ACEOF
  2622. cat confdefs.h >>conftest.$ac_ext
  2623. cat >>conftest.$ac_ext <<_ACEOF
  2624. /* end confdefs.h. */
  2625. #include <minix/config.h>
  2626. _ACEOF
  2627. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2628. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2629. ac_status=$?
  2630. grep -v '^ *+' conftest.er1 >conftest.err
  2631. rm -f conftest.er1
  2632. cat conftest.err >&5
  2633. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2634. (exit $ac_status); } >/dev/null; then
  2635. if test -s conftest.err; then
  2636. ac_cpp_err=$ac_c_preproc_warn_flag
  2637. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2638. else
  2639. ac_cpp_err=
  2640. fi
  2641. else
  2642. ac_cpp_err=yes
  2643. fi
  2644. if test -z "$ac_cpp_err"; then
  2645. ac_header_preproc=yes
  2646. else
  2647. echo "$as_me: failed program was:" >&5
  2648. sed 's/^/| /' conftest.$ac_ext >&5
  2649. ac_header_preproc=no
  2650. fi
  2651. rm -f conftest.err conftest.$ac_ext
  2652. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  2653. echo "${ECHO_T}$ac_header_preproc" >&6
  2654. # So? What about this header?
  2655. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  2656. yes:no: )
  2657. { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
  2658. echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2659. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
  2660. echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
  2661. ac_header_preproc=yes
  2662. ;;
  2663. no:yes:* )
  2664. { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
  2665. echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
  2666. { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
  2667. echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
  2668. { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
  2669. echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
  2670. { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
  2671. echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
  2672. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
  2673. echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
  2674. { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
  2675. echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
  2676. (
  2677. cat <<\_ASBOX
  2678. ## ------------------------------------------ ##
  2679. ## Report this to the AC_PACKAGE_NAME lists. ##
  2680. ## ------------------------------------------ ##
  2681. _ASBOX
  2682. ) |
  2683. sed "s/^/$as_me: WARNING: /" >&2
  2684. ;;
  2685. esac
  2686. echo "$as_me:$LINENO: checking for minix/config.h" >&5
  2687. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
  2688. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2689. echo $ECHO_N "(cached) $ECHO_C" >&6
  2690. else
  2691. ac_cv_header_minix_config_h=$ac_header_preproc
  2692. fi
  2693. echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  2694. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
  2695. fi
  2696. if test $ac_cv_header_minix_config_h = yes; then
  2697. MINIX=yes
  2698. else
  2699. MINIX=
  2700. fi
  2701. if test "$MINIX" = yes; then
  2702. cat >>confdefs.h <<\_ACEOF
  2703. #define _POSIX_SOURCE 1
  2704. _ACEOF
  2705. cat >>confdefs.h <<\_ACEOF
  2706. #define _POSIX_1_SOURCE 2
  2707. _ACEOF
  2708. cat >>confdefs.h <<\_ACEOF
  2709. #define _MINIX 1
  2710. _ACEOF
  2711. fi
  2712. #checkpoint
  2713. cat >confcache <<\_ACEOF
  2714. # This file is a shell script that caches the results of configure
  2715. # tests run on this system so they can be shared between configure
  2716. # scripts and configure runs, see configure's option --config-cache.
  2717. # It is not useful on other systems. If it contains results you don't
  2718. # want to keep, you may remove or edit it.
  2719. #
  2720. # config.status only pays attention to the cache file if you give it
  2721. # the --recheck option to rerun configure.
  2722. #
  2723. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  2724. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  2725. # following values.
  2726. _ACEOF
  2727. # The following way of writing the cache mishandles newlines in values,
  2728. # but we know of no workaround that is simple, portable, and efficient.
  2729. # So, don't put newlines in cache variables' values.
  2730. # Ultrix sh set writes to stderr and can't be redirected directly,
  2731. # and sets the high bit in the cache file unless we assign to the vars.
  2732. {
  2733. (set) 2>&1 |
  2734. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  2735. *ac_space=\ *)
  2736. # `set' does not quote correctly, so add quotes (double-quote
  2737. # substitution turns \\\\ into \\, and sed turns \\ into \).
  2738. sed -n \
  2739. "s/'/'\\\\''/g;
  2740. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  2741. ;;
  2742. *)
  2743. # `set' quotes correctly as required by POSIX, so do not add quotes.
  2744. sed -n \
  2745. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  2746. ;;
  2747. esac;
  2748. } |
  2749. sed '
  2750. t clear
  2751. : clear
  2752. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  2753. t end
  2754. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  2755. : end' >>confcache
  2756. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  2757. if test -w $cache_file; then
  2758. test "x$cache_file" != "x/dev/null"
  2759. cat confcache >$cache_file
  2760. else
  2761. echo "not updating unwritable cache $cache_file"
  2762. fi
  2763. fi
  2764. rm -f confcache
  2765. # Speedup compile
  2766. if test -z "$no_pipe"
  2767. then
  2768. if test -n "$GCC"
  2769. then
  2770. echo "$as_me:$LINENO: checking whether the compiler understands -pipe" >&5
  2771. echo $ECHO_N "checking whether the compiler understands -pipe... $ECHO_C" >&6
  2772. if test "${egg_cv_var_ccpipe+set}" = set; then
  2773. echo $ECHO_N "(cached) $ECHO_C" >&6
  2774. else
  2775. ac_old_CC="$CC"
  2776. CC="$CC -pipe"
  2777. cat >conftest.$ac_ext <<_ACEOF
  2778. /* confdefs.h. */
  2779. _ACEOF
  2780. cat confdefs.h >>conftest.$ac_ext
  2781. cat >>conftest.$ac_ext <<_ACEOF
  2782. /* end confdefs.h. */
  2783. int
  2784. main ()
  2785. {
  2786. ;
  2787. return 0;
  2788. }
  2789. _ACEOF
  2790. rm -f conftest.$ac_objext
  2791. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2792. (eval $ac_compile) 2>conftest.er1
  2793. ac_status=$?
  2794. grep -v '^ *+' conftest.er1 >conftest.err
  2795. rm -f conftest.er1
  2796. cat conftest.err >&5
  2797. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2798. (exit $ac_status); } &&
  2799. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2800. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2801. (eval $ac_try) 2>&5
  2802. ac_status=$?
  2803. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2804. (exit $ac_status); }; } &&
  2805. { ac_try='test -s conftest.$ac_objext'
  2806. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2807. (eval $ac_try) 2>&5
  2808. ac_status=$?
  2809. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2810. (exit $ac_status); }; }; then
  2811. egg_cv_var_ccpipe="yes"
  2812. else
  2813. echo "$as_me: failed program was:" >&5
  2814. sed 's/^/| /' conftest.$ac_ext >&5
  2815. egg_cv_var_ccpipe="no"
  2816. fi
  2817. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2818. CC="$ac_old_CC"
  2819. fi
  2820. echo "$as_me:$LINENO: result: $egg_cv_var_ccpipe" >&5
  2821. echo "${ECHO_T}$egg_cv_var_ccpipe" >&6
  2822. if test "$egg_cv_var_ccpipe" = "yes"
  2823. then
  2824. CC="$CC -pipe"
  2825. fi
  2826. fi
  2827. fi
  2828. CCDEPMODE=gcc
  2829. num=`$CC -dumpversion | sed "s/^\\\(.\\\).*/\\\1/"`
  2830. if test $num = "3"; then
  2831. CCDEPMODE=gcc3
  2832. fi
  2833. # Create static binaries
  2834. if test -z "$no_static"
  2835. then
  2836. if test -n "$GCC"
  2837. then
  2838. echo "$as_me:$LINENO: checking whether the compiler understands -static" >&5
  2839. echo $ECHO_N "checking whether the compiler understands -static... $ECHO_C" >&6
  2840. if test "${egg_cv_var_ccstatic+set}" = set; then
  2841. echo $ECHO_N "(cached) $ECHO_C" >&6
  2842. else
  2843. ac_old_CC="$CC"
  2844. CC="$CC -static"
  2845. cat >conftest.$ac_ext <<_ACEOF
  2846. /* confdefs.h. */
  2847. _ACEOF
  2848. cat confdefs.h >>conftest.$ac_ext
  2849. cat >>conftest.$ac_ext <<_ACEOF
  2850. /* end confdefs.h. */
  2851. int
  2852. main ()
  2853. {
  2854. ;
  2855. return 0;
  2856. }
  2857. _ACEOF
  2858. rm -f conftest.$ac_objext
  2859. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2860. (eval $ac_compile) 2>conftest.er1
  2861. ac_status=$?
  2862. grep -v '^ *+' conftest.er1 >conftest.err
  2863. rm -f conftest.er1
  2864. cat conftest.err >&5
  2865. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2866. (exit $ac_status); } &&
  2867. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2868. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2869. (eval $ac_try) 2>&5
  2870. ac_status=$?
  2871. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2872. (exit $ac_status); }; } &&
  2873. { ac_try='test -s conftest.$ac_objext'
  2874. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2875. (eval $ac_try) 2>&5
  2876. ac_status=$?
  2877. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2878. (exit $ac_status); }; }; then
  2879. egg_cv_var_ccstatic="yes"
  2880. else
  2881. echo "$as_me: failed program was:" >&5
  2882. sed 's/^/| /' conftest.$ac_ext >&5
  2883. egg_cv_var_ccstatic="no"
  2884. fi
  2885. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2886. CC="$ac_old_CC"
  2887. fi
  2888. echo "$as_me:$LINENO: result: $egg_cv_var_ccstatic" >&5
  2889. echo "${ECHO_T}$egg_cv_var_ccstatic" >&6
  2890. if test "$egg_cv_var_ccstatic" = "yes"
  2891. then
  2892. CCDEBUG="$CC"
  2893. CC="$CC -static"
  2894. else
  2895. cat << 'EOF' >&2
  2896. configure: error:
  2897. Your C compiler does not support -static.
  2898. This compile flag is required for the botpack.
  2899. EOF
  2900. exit 1
  2901. fi
  2902. fi
  2903. fi
  2904. # Checks for programs
  2905. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2906. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  2907. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  2908. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  2909. echo $ECHO_N "(cached) $ECHO_C" >&6
  2910. else
  2911. cat >conftest.make <<\_ACEOF
  2912. all:
  2913. @echo 'ac_maketemp="$(MAKE)"'
  2914. _ACEOF
  2915. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2916. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  2917. if test -n "$ac_maketemp"; then
  2918. eval ac_cv_prog_make_${ac_make}_set=yes
  2919. else
  2920. eval ac_cv_prog_make_${ac_make}_set=no
  2921. fi
  2922. rm -f conftest.make
  2923. fi
  2924. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  2925. echo "$as_me:$LINENO: result: yes" >&5
  2926. echo "${ECHO_T}yes" >&6
  2927. SET_MAKE=
  2928. else
  2929. echo "$as_me:$LINENO: result: no" >&5
  2930. echo "${ECHO_T}no" >&6
  2931. SET_MAKE="MAKE=${MAKE-make}"
  2932. fi
  2933. cat << 'EOF' > conftest.head
  2934. a
  2935. b
  2936. c
  2937. EOF
  2938. for ac_prog in 'head -1' 'head -n 1' 'sed 1q';
  2939. do
  2940. echo "$as_me:$LINENO: checking whether $ac_prog works" >&5
  2941. echo $ECHO_N "checking whether $ac_prog works... $ECHO_C" >&6
  2942. if test "${ac_cv_prog_HEAD_1+set}" = set; then
  2943. echo $ECHO_N "(cached) $ECHO_C" >&6
  2944. else
  2945. if test -n "$HEAD_1"
  2946. then
  2947. ac_cv_prog_HEAD_1="$HEAD_1" # Let the user override the test.
  2948. else
  2949. if test "`cat conftest.head | $ac_prog`" = "a";
  2950. then
  2951. echo "$as_me:$LINENO: result: yes" >&5
  2952. echo "${ECHO_T}yes" >&6
  2953. ac_cv_prog_HEAD_1=$ac_prog
  2954. else
  2955. echo "$as_me:$LINENO: result: no" >&5
  2956. echo "${ECHO_T}no" >&6
  2957. fi
  2958. fi
  2959. fi
  2960. test -n "$ac_cv_prog_HEAD_1" && break
  2961. done
  2962. if test "${ac_cv_prog_HEAD_1-x}" = "x"
  2963. then
  2964. cat << 'EOF' >&2
  2965. configure: error:
  2966. This system seems to lack a working 'head -1' or 'head -n 1' command.
  2967. A working 'head -1' (or equivalent) command is required to compile Eggdrop.
  2968. EOF
  2969. exit 1
  2970. fi
  2971. rm -f conftest.head
  2972. HEAD_1=$ac_cv_prog_HEAD_1
  2973. # Extract the first word of "strip", so it can be a program name with args.
  2974. set dummy strip; ac_word=$2
  2975. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2976. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2977. if test "${ac_cv_prog_STRIP+set}" = set; then
  2978. echo $ECHO_N "(cached) $ECHO_C" >&6
  2979. else
  2980. if test -n "$STRIP"; then
  2981. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2982. else
  2983. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2984. for as_dir in $PATH
  2985. do
  2986. IFS=$as_save_IFS
  2987. test -z "$as_dir" && as_dir=.
  2988. for ac_exec_ext in '' $ac_executable_extensions; do
  2989. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2990. ac_cv_prog_STRIP="strip"
  2991. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2992. break 2
  2993. fi
  2994. done
  2995. done
  2996. fi
  2997. fi
  2998. STRIP=$ac_cv_prog_STRIP
  2999. if test -n "$STRIP"; then
  3000. echo "$as_me:$LINENO: result: $STRIP" >&5
  3001. echo "${ECHO_T}$STRIP" >&6
  3002. else
  3003. echo "$as_me:$LINENO: result: no" >&5
  3004. echo "${ECHO_T}no" >&6
  3005. fi
  3006. if test "${STRIP-x}" = "x"
  3007. then
  3008. STRIP=touch
  3009. fi
  3010. # awk is needed for Tcl library and header checks, and eggdrop version subst
  3011. for ac_prog in gawk mawk nawk awk
  3012. do
  3013. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3014. set dummy $ac_prog; ac_word=$2
  3015. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3016. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3017. if test "${ac_cv_prog_AWK+set}" = set; then
  3018. echo $ECHO_N "(cached) $ECHO_C" >&6
  3019. else
  3020. if test -n "$AWK"; then
  3021. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3022. else
  3023. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3024. for as_dir in $PATH
  3025. do
  3026. IFS=$as_save_IFS
  3027. test -z "$as_dir" && as_dir=.
  3028. for ac_exec_ext in '' $ac_executable_extensions; do
  3029. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3030. ac_cv_prog_AWK="$ac_prog"
  3031. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3032. break 2
  3033. fi
  3034. done
  3035. done
  3036. fi
  3037. fi
  3038. AWK=$ac_cv_prog_AWK
  3039. if test -n "$AWK"; then
  3040. echo "$as_me:$LINENO: result: $AWK" >&5
  3041. echo "${ECHO_T}$AWK" >&6
  3042. else
  3043. echo "$as_me:$LINENO: result: no" >&5
  3044. echo "${ECHO_T}no" >&6
  3045. fi
  3046. test -n "$AWK" && break
  3047. done
  3048. if test "${AWK-x}" = "x"
  3049. then
  3050. cat << 'EOF' >&2
  3051. configure: error:
  3052. This system seems to lack a working 'awk' command.
  3053. A working 'awk' command is required to compile Eggdrop.
  3054. EOF
  3055. exit 1
  3056. fi
  3057. # basename is needed for Tcl library and header checks
  3058. # Extract the first word of "basename", so it can be a program name with args.
  3059. set dummy basename; ac_word=$2
  3060. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3061. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3062. if test "${ac_cv_prog_BASENAME+set}" = set; then
  3063. echo $ECHO_N "(cached) $ECHO_C" >&6
  3064. else
  3065. if test -n "$BASENAME"; then
  3066. ac_cv_prog_BASENAME="$BASENAME" # Let the user override the test.
  3067. else
  3068. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3069. for as_dir in $PATH
  3070. do
  3071. IFS=$as_save_IFS
  3072. test -z "$as_dir" && as_dir=.
  3073. for ac_exec_ext in '' $ac_executable_extensions; do
  3074. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3075. ac_cv_prog_BASENAME="basename"
  3076. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3077. break 2
  3078. fi
  3079. done
  3080. done
  3081. fi
  3082. fi
  3083. BASENAME=$ac_cv_prog_BASENAME
  3084. if test -n "$BASENAME"; then
  3085. echo "$as_me:$LINENO: result: $BASENAME" >&5
  3086. echo "${ECHO_T}$BASENAME" >&6
  3087. else
  3088. echo "$as_me:$LINENO: result: no" >&5
  3089. echo "${ECHO_T}no" >&6
  3090. fi
  3091. if test "${BASENAME-x}" = "x"
  3092. then
  3093. cat << 'EOF' >&2
  3094. configure: error:
  3095. This system seems to lack a working 'basename' command.
  3096. A working 'basename' command is required to compile Eggdrop.
  3097. EOF
  3098. exit 1
  3099. fi
  3100. # Extract the first word of "objcopy", so it can be a program name with args.
  3101. set dummy objcopy; ac_word=$2
  3102. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3103. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3104. if test "${ac_cv_prog_OBJCOPY+set}" = set; then
  3105. echo $ECHO_N "(cached) $ECHO_C" >&6
  3106. else
  3107. if test -n "$OBJCOPY"; then
  3108. ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
  3109. else
  3110. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3111. for as_dir in $PATH
  3112. do
  3113. IFS=$as_save_IFS
  3114. test -z "$as_dir" && as_dir=.
  3115. for ac_exec_ext in '' $ac_executable_extensions; do
  3116. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3117. ac_cv_prog_OBJCOPY="objcopy"
  3118. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3119. break 2
  3120. fi
  3121. done
  3122. done
  3123. fi
  3124. fi
  3125. OBJCOPY=$ac_cv_prog_OBJCOPY
  3126. if test -n "$OBJCOPY"; then
  3127. echo "$as_me:$LINENO: result: $OBJCOPY" >&5
  3128. echo "${ECHO_T}$OBJCOPY" >&6
  3129. else
  3130. echo "$as_me:$LINENO: result: no" >&5
  3131. echo "${ECHO_T}no" >&6
  3132. fi
  3133. if ! test "${OBJCOPY-x}" = "x"
  3134. then
  3135. OBJCOPY="objcopy --remove-section=.note --remove-section=.comment"
  3136. else
  3137. OBJCOPY=touch
  3138. fi
  3139. #EGG_PROG_CCACHE
  3140. # Extract the first word of "distcc", so it can be a program name with args.
  3141. set dummy distcc; ac_word=$2
  3142. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3143. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3144. if test "${ac_cv_prog_DISTCC+set}" = set; then
  3145. echo $ECHO_N "(cached) $ECHO_C" >&6
  3146. else
  3147. if test -n "$DISTCC"; then
  3148. ac_cv_prog_DISTCC="$DISTCC" # Let the user override the test.
  3149. else
  3150. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3151. for as_dir in $PATH
  3152. do
  3153. IFS=$as_save_IFS
  3154. test -z "$as_dir" && as_dir=.
  3155. for ac_exec_ext in '' $ac_executable_extensions; do
  3156. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3157. ac_cv_prog_DISTCC="distcc"
  3158. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3159. break 2
  3160. fi
  3161. done
  3162. done
  3163. fi
  3164. fi
  3165. DISTCC=$ac_cv_prog_DISTCC
  3166. if test -n "$DISTCC"; then
  3167. echo "$as_me:$LINENO: result: $DISTCC" >&5
  3168. echo "${ECHO_T}$DISTCC" >&6
  3169. else
  3170. echo "$as_me:$LINENO: result: no" >&5
  3171. echo "${ECHO_T}no" >&6
  3172. fi
  3173. if ! test "${DISTCC-x}" = "x"
  3174. then
  3175. DISTCC=distcc
  3176. else
  3177. DISTCC=
  3178. fi
  3179. # Extract the first word of "uname", so it can be a program name with args.
  3180. set dummy uname; ac_word=$2
  3181. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3182. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3183. if test "${ac_cv_prog_UNAME+set}" = set; then
  3184. echo $ECHO_N "(cached) $ECHO_C" >&6
  3185. else
  3186. if test -n "$UNAME"; then
  3187. ac_cv_prog_UNAME="$UNAME" # Let the user override the test.
  3188. else
  3189. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3190. for as_dir in $PATH
  3191. do
  3192. IFS=$as_save_IFS
  3193. test -z "$as_dir" && as_dir=.
  3194. for ac_exec_ext in '' $ac_executable_extensions; do
  3195. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3196. ac_cv_prog_UNAME="uname"
  3197. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3198. break 2
  3199. fi
  3200. done
  3201. done
  3202. fi
  3203. fi
  3204. UNAME=$ac_cv_prog_UNAME
  3205. if test -n "$UNAME"; then
  3206. echo "$as_me:$LINENO: result: $UNAME" >&5
  3207. echo "${ECHO_T}$UNAME" >&6
  3208. else
  3209. echo "$as_me:$LINENO: result: no" >&5
  3210. echo "${ECHO_T}no" >&6
  3211. fi
  3212. # Test the os and set the module linking settings
  3213. LINUX=no
  3214. IRIX=no
  3215. SUNOS=no
  3216. HPUX=no
  3217. EGG_CYGWIN=no
  3218. echo "$as_me:$LINENO: checking system type" >&5
  3219. echo $ECHO_N "checking system type... $ECHO_C" >&6
  3220. if test "${egg_cv_var_system_type+set}" = set; then
  3221. echo $ECHO_N "(cached) $ECHO_C" >&6
  3222. else
  3223. egg_cv_var_system_type=`$UNAME -s`
  3224. fi
  3225. echo "$as_me:$LINENO: result: $egg_cv_var_system_type" >&5
  3226. echo "${ECHO_T}$egg_cv_var_system_type" >&6
  3227. echo "$as_me:$LINENO: checking system release" >&5
  3228. echo $ECHO_N "checking system release... $ECHO_C" >&6
  3229. if test "${egg_cv_var_system_release+set}" = set; then
  3230. echo $ECHO_N "(cached) $ECHO_C" >&6
  3231. else
  3232. egg_cv_var_system_release=`$UNAME -r`
  3233. fi
  3234. echo "$as_me:$LINENO: result: $egg_cv_var_system_release" >&5
  3235. echo "${ECHO_T}$egg_cv_var_system_release" >&6
  3236. case "$egg_cv_var_system_type" in
  3237. BSD/OS)
  3238. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  3239. 2)
  3240. ;;
  3241. *)
  3242. CFLAGS="$CFLAGS -Wall"
  3243. ;;
  3244. esac
  3245. ;;
  3246. CYGWI*)
  3247. case "`echo $egg_cv_var_system_release | cut -c 1-3`" in
  3248. 1.*)
  3249. echo "$as_me:$LINENO: checking how to access the Win32 API" >&5
  3250. echo $ECHO_N "checking how to access the Win32 API... $ECHO_C" >&6
  3251. WIN32FLAGS=
  3252. cat >conftest.$ac_ext <<_ACEOF
  3253. /* confdefs.h. */
  3254. _ACEOF
  3255. cat confdefs.h >>conftest.$ac_ext
  3256. cat >>conftest.$ac_ext <<_ACEOF
  3257. /* end confdefs.h. */
  3258. int
  3259. main ()
  3260. {
  3261. #ifndef WIN32
  3262. # ifndef _WIN32
  3263. # error WIN32 or _WIN32 not defined
  3264. # endif
  3265. #endif
  3266. ;
  3267. return 0;
  3268. }
  3269. _ACEOF
  3270. rm -f conftest.$ac_objext
  3271. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3272. (eval $ac_compile) 2>conftest.er1
  3273. ac_status=$?
  3274. grep -v '^ *+' conftest.er1 >conftest.err
  3275. rm -f conftest.er1
  3276. cat conftest.err >&5
  3277. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3278. (exit $ac_status); } &&
  3279. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3280. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3281. (eval $ac_try) 2>&5
  3282. ac_status=$?
  3283. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3284. (exit $ac_status); }; } &&
  3285. { ac_try='test -s conftest.$ac_objext'
  3286. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3287. (eval $ac_try) 2>&5
  3288. ac_status=$?
  3289. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3290. (exit $ac_status); }; }; then
  3291. echo "$as_me:$LINENO: result: present by default" >&5
  3292. echo "${ECHO_T}present by default" >&6
  3293. else
  3294. echo "$as_me: failed program was:" >&5
  3295. sed 's/^/| /' conftest.$ac_ext >&5
  3296. ac_compile_save="$ac_compile"
  3297. save_CC="$CC"
  3298. ac_compile="$ac_compile -mwin32"
  3299. CC="$CC -mwin32"
  3300. cat >conftest.$ac_ext <<_ACEOF
  3301. /* confdefs.h. */
  3302. _ACEOF
  3303. cat confdefs.h >>conftest.$ac_ext
  3304. cat >>conftest.$ac_ext <<_ACEOF
  3305. /* end confdefs.h. */
  3306. int
  3307. main ()
  3308. {
  3309. #ifndef WIN32
  3310. # ifndef _WIN32
  3311. # error WIN32 or _WIN32 not defined
  3312. # endif
  3313. #endif
  3314. ;
  3315. return 0;
  3316. }
  3317. _ACEOF
  3318. rm -f conftest.$ac_objext
  3319. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3320. (eval $ac_compile) 2>conftest.er1
  3321. ac_status=$?
  3322. grep -v '^ *+' conftest.er1 >conftest.err
  3323. rm -f conftest.er1
  3324. cat conftest.err >&5
  3325. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3326. (exit $ac_status); } &&
  3327. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3328. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3329. (eval $ac_try) 2>&5
  3330. ac_status=$?
  3331. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3332. (exit $ac_status); }; } &&
  3333. { ac_try='test -s conftest.$ac_objext'
  3334. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3335. (eval $ac_try) 2>&5
  3336. ac_status=$?
  3337. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3338. (exit $ac_status); }; }; then
  3339. echo "$as_me:$LINENO: result: found via -mwin32" >&5
  3340. echo "${ECHO_T}found via -mwin32" >&6
  3341. ac_compile="$ac_compile_save"
  3342. CC="$save_CC"
  3343. WIN32FLAGS="-mwin32"
  3344. else
  3345. echo "$as_me: failed program was:" >&5
  3346. sed 's/^/| /' conftest.$ac_ext >&5
  3347. ac_compile="$ac_compile_save"
  3348. CC="$save_CC"
  3349. echo "$as_me:$LINENO: result: not found" >&5
  3350. echo "${ECHO_T}not found" >&6
  3351. fi
  3352. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3353. fi
  3354. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3355. CC="$CC $WIN32FLAGS"
  3356. echo "$as_me:$LINENO: checking for /usr/lib/binmode.o" >&5
  3357. echo $ECHO_N "checking for /usr/lib/binmode.o... $ECHO_C" >&6
  3358. if test -r /usr/lib/binmode.o
  3359. then
  3360. echo "$as_me:$LINENO: result: yes" >&5
  3361. echo "${ECHO_T}yes" >&6
  3362. LIBS="$LIBS /usr/lib/binmode.o"
  3363. else
  3364. echo "$as_me:$LINENO: result: no" >&5
  3365. echo "${ECHO_T}no" >&6
  3366. { echo "$as_me:$LINENO: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&5
  3367. echo "$as_me: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&2;}
  3368. fi
  3369. ;;
  3370. *)
  3371. { echo "$as_me:$LINENO: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&5
  3372. echo "$as_me: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&2;}
  3373. ;;
  3374. esac
  3375. EGG_CYGWIN=yes
  3376. cat >>confdefs.h <<\_ACEOF
  3377. #define CYGWIN_HACKS 1
  3378. _ACEOF
  3379. ;;
  3380. HP-UX)
  3381. HPUX=yes
  3382. cat >>confdefs.h <<\_ACEOF
  3383. #define HPUX_HACKS 1
  3384. _ACEOF
  3385. if test "`echo $egg_cv_var_system_release | cut -d . -f 2`" = "10"
  3386. then
  3387. cat >>confdefs.h <<\_ACEOF
  3388. #define HPUX10_HACKS 1
  3389. _ACEOF
  3390. fi
  3391. ;;
  3392. dell)
  3393. echo "$as_me:$LINENO: result: Dell SVR4" >&5
  3394. echo "${ECHO_T}Dell SVR4" >&6
  3395. ;;
  3396. IRIX)
  3397. IRIX=yes
  3398. ;;
  3399. Ultrix)
  3400. SHELL=/bin/sh5
  3401. ;;
  3402. SINIX*)
  3403. ;;
  3404. BeOS)
  3405. ;;
  3406. Linux)
  3407. LINUX=yes
  3408. CFLAGS="$CFLAGS -Wall"
  3409. ;;
  3410. Lynx)
  3411. ;;
  3412. QNX)
  3413. ;;
  3414. OSF1)
  3415. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  3416. V*)
  3417. # FIXME: we should check this in a separate test
  3418. # Digital OSF uses an ancient version of gawk
  3419. if test "$AWK" = "gawk"
  3420. then
  3421. AWK=awk
  3422. fi
  3423. ;;
  3424. 1.0|1.1|1.2)
  3425. cat >>confdefs.h <<\_ACEOF
  3426. #define OSF1_HACKS 1
  3427. _ACEOF
  3428. ;;
  3429. 1.*)
  3430. cat >>confdefs.h <<\_ACEOF
  3431. #define OSF1_HACKS 1
  3432. _ACEOF
  3433. ;;
  3434. *)
  3435. ;;
  3436. esac
  3437. cat >>confdefs.h <<\_ACEOF
  3438. #define STOP_UAC 1
  3439. _ACEOF
  3440. cat >>confdefs.h <<\_ACEOF
  3441. #define BROKEN_SNPRINTF 1
  3442. _ACEOF
  3443. ;;
  3444. SunOS)
  3445. if ! test "`echo $egg_cv_var_system_release | cut -d . -f 1`" = "5"
  3446. then
  3447. # SunOS 4
  3448. SUNOS=yes
  3449. fi
  3450. ;;
  3451. *BSD)
  3452. # FreeBSD/OpenBSD/NetBSD
  3453. ;;
  3454. *)
  3455. echo "$as_me:$LINENO: checking if system is Mach based" >&5
  3456. echo $ECHO_N "checking if system is Mach based... $ECHO_C" >&6
  3457. if test -r /mach
  3458. then
  3459. echo "$as_me:$LINENO: result: yes" >&5
  3460. echo "${ECHO_T}yes" >&6
  3461. cat >>confdefs.h <<\_ACEOF
  3462. #define BORGCUBES 1
  3463. _ACEOF
  3464. else
  3465. echo "$as_me:$LINENO: result: no" >&5
  3466. echo "${ECHO_T}no" >&6
  3467. echo "$as_me:$LINENO: checking if system is QNX" >&5
  3468. echo $ECHO_N "checking if system is QNX... $ECHO_C" >&6
  3469. if test -r /cmds
  3470. then
  3471. echo "$as_me:$LINENO: result: yes" >&5
  3472. echo "${ECHO_T}yes" >&6
  3473. else
  3474. echo "$as_me:$LINENO: result: no" >&5
  3475. echo "${ECHO_T}no" >&6
  3476. echo "$as_me:$LINENO: result: Something unknown!" >&5
  3477. echo "${ECHO_T}Something unknown!" >&6
  3478. echo "$as_me:$LINENO: result: If you get dynamic modules to work, be sure to let the devel team know HOW :)" >&5
  3479. echo "${ECHO_T}If you get dynamic modules to work, be sure to let the devel team know HOW :)" >&6
  3480. fi
  3481. fi
  3482. ;;
  3483. esac
  3484. dns_reslib_avail="true"
  3485. echo "$as_me:$LINENO: checking for res_init" >&5
  3486. echo $ECHO_N "checking for res_init... $ECHO_C" >&6
  3487. if test "${ac_cv_func_res_init+set}" = set; then
  3488. echo $ECHO_N "(cached) $ECHO_C" >&6
  3489. else
  3490. cat >conftest.$ac_ext <<_ACEOF
  3491. /* confdefs.h. */
  3492. _ACEOF
  3493. cat confdefs.h >>conftest.$ac_ext
  3494. cat >>conftest.$ac_ext <<_ACEOF
  3495. /* end confdefs.h. */
  3496. /* Define res_init to an innocuous variant, in case <limits.h> declares res_init.
  3497. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3498. #define res_init innocuous_res_init
  3499. /* System header to define __stub macros and hopefully few prototypes,
  3500. which can conflict with char res_init (); below.
  3501. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3502. <limits.h> exists even on freestanding compilers. */
  3503. #ifdef __STDC__
  3504. # include <limits.h>
  3505. #else
  3506. # include <assert.h>
  3507. #endif
  3508. #undef res_init
  3509. /* Override any gcc2 internal prototype to avoid an error. */
  3510. #ifdef __cplusplus
  3511. extern "C"
  3512. {
  3513. #endif
  3514. /* We use char because int might match the return type of a gcc2
  3515. builtin and then its argument prototype would still apply. */
  3516. char res_init ();
  3517. /* The GNU C library defines this for functions which it implements
  3518. to always fail with ENOSYS. Some functions are actually named
  3519. something starting with __ and the normal name is an alias. */
  3520. #if defined (__stub_res_init) || defined (__stub___res_init)
  3521. choke me
  3522. #else
  3523. char (*f) () = res_init;
  3524. #endif
  3525. #ifdef __cplusplus
  3526. }
  3527. #endif
  3528. int
  3529. main ()
  3530. {
  3531. return f != res_init;
  3532. ;
  3533. return 0;
  3534. }
  3535. _ACEOF
  3536. rm -f conftest.$ac_objext conftest$ac_exeext
  3537. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3538. (eval $ac_link) 2>conftest.er1
  3539. ac_status=$?
  3540. grep -v '^ *+' conftest.er1 >conftest.err
  3541. rm -f conftest.er1
  3542. cat conftest.err >&5
  3543. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3544. (exit $ac_status); } &&
  3545. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3546. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3547. (eval $ac_try) 2>&5
  3548. ac_status=$?
  3549. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3550. (exit $ac_status); }; } &&
  3551. { ac_try='test -s conftest$ac_exeext'
  3552. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3553. (eval $ac_try) 2>&5
  3554. ac_status=$?
  3555. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3556. (exit $ac_status); }; }; then
  3557. ac_cv_func_res_init=yes
  3558. else
  3559. echo "$as_me: failed program was:" >&5
  3560. sed 's/^/| /' conftest.$ac_ext >&5
  3561. ac_cv_func_res_init=no
  3562. fi
  3563. rm -f conftest.err conftest.$ac_objext \
  3564. conftest$ac_exeext conftest.$ac_ext
  3565. fi
  3566. echo "$as_me:$LINENO: result: $ac_cv_func_res_init" >&5
  3567. echo "${ECHO_T}$ac_cv_func_res_init" >&6
  3568. if test $ac_cv_func_res_init = yes; then
  3569. :
  3570. else
  3571. echo "$as_me:$LINENO: checking for res_init in -lresolv" >&5
  3572. echo $ECHO_N "checking for res_init in -lresolv... $ECHO_C" >&6
  3573. if test "${ac_cv_lib_resolv_res_init+set}" = set; then
  3574. echo $ECHO_N "(cached) $ECHO_C" >&6
  3575. else
  3576. ac_check_lib_save_LIBS=$LIBS
  3577. LIBS="-lresolv $LIBS"
  3578. cat >conftest.$ac_ext <<_ACEOF
  3579. /* confdefs.h. */
  3580. _ACEOF
  3581. cat confdefs.h >>conftest.$ac_ext
  3582. cat >>conftest.$ac_ext <<_ACEOF
  3583. /* end confdefs.h. */
  3584. /* Override any gcc2 internal prototype to avoid an error. */
  3585. #ifdef __cplusplus
  3586. extern "C"
  3587. #endif
  3588. /* We use char because int might match the return type of a gcc2
  3589. builtin and then its argument prototype would still apply. */
  3590. char res_init ();
  3591. int
  3592. main ()
  3593. {
  3594. res_init ();
  3595. ;
  3596. return 0;
  3597. }
  3598. _ACEOF
  3599. rm -f conftest.$ac_objext conftest$ac_exeext
  3600. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3601. (eval $ac_link) 2>conftest.er1
  3602. ac_status=$?
  3603. grep -v '^ *+' conftest.er1 >conftest.err
  3604. rm -f conftest.er1
  3605. cat conftest.err >&5
  3606. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3607. (exit $ac_status); } &&
  3608. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3609. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3610. (eval $ac_try) 2>&5
  3611. ac_status=$?
  3612. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3613. (exit $ac_status); }; } &&
  3614. { ac_try='test -s conftest$ac_exeext'
  3615. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3616. (eval $ac_try) 2>&5
  3617. ac_status=$?
  3618. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3619. (exit $ac_status); }; }; then
  3620. ac_cv_lib_resolv_res_init=yes
  3621. else
  3622. echo "$as_me: failed program was:" >&5
  3623. sed 's/^/| /' conftest.$ac_ext >&5
  3624. ac_cv_lib_resolv_res_init=no
  3625. fi
  3626. rm -f conftest.err conftest.$ac_objext \
  3627. conftest$ac_exeext conftest.$ac_ext
  3628. LIBS=$ac_check_lib_save_LIBS
  3629. fi
  3630. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_init" >&5
  3631. echo "${ECHO_T}$ac_cv_lib_resolv_res_init" >&6
  3632. if test $ac_cv_lib_resolv_res_init = yes; then
  3633. RESLIB="-lresolv"
  3634. else
  3635. echo "$as_me:$LINENO: checking for res_init in -lbind" >&5
  3636. echo $ECHO_N "checking for res_init in -lbind... $ECHO_C" >&6
  3637. if test "${ac_cv_lib_bind_res_init+set}" = set; then
  3638. echo $ECHO_N "(cached) $ECHO_C" >&6
  3639. else
  3640. ac_check_lib_save_LIBS=$LIBS
  3641. LIBS="-lbind $LIBS"
  3642. cat >conftest.$ac_ext <<_ACEOF
  3643. /* confdefs.h. */
  3644. _ACEOF
  3645. cat confdefs.h >>conftest.$ac_ext
  3646. cat >>conftest.$ac_ext <<_ACEOF
  3647. /* end confdefs.h. */
  3648. /* Override any gcc2 internal prototype to avoid an error. */
  3649. #ifdef __cplusplus
  3650. extern "C"
  3651. #endif
  3652. /* We use char because int might match the return type of a gcc2
  3653. builtin and then its argument prototype would still apply. */
  3654. char res_init ();
  3655. int
  3656. main ()
  3657. {
  3658. res_init ();
  3659. ;
  3660. return 0;
  3661. }
  3662. _ACEOF
  3663. rm -f conftest.$ac_objext conftest$ac_exeext
  3664. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3665. (eval $ac_link) 2>conftest.er1
  3666. ac_status=$?
  3667. grep -v '^ *+' conftest.er1 >conftest.err
  3668. rm -f conftest.er1
  3669. cat conftest.err >&5
  3670. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3671. (exit $ac_status); } &&
  3672. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3673. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3674. (eval $ac_try) 2>&5
  3675. ac_status=$?
  3676. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3677. (exit $ac_status); }; } &&
  3678. { ac_try='test -s conftest$ac_exeext'
  3679. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3680. (eval $ac_try) 2>&5
  3681. ac_status=$?
  3682. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3683. (exit $ac_status); }; }; then
  3684. ac_cv_lib_bind_res_init=yes
  3685. else
  3686. echo "$as_me: failed program was:" >&5
  3687. sed 's/^/| /' conftest.$ac_ext >&5
  3688. ac_cv_lib_bind_res_init=no
  3689. fi
  3690. rm -f conftest.err conftest.$ac_objext \
  3691. conftest$ac_exeext conftest.$ac_ext
  3692. LIBS=$ac_check_lib_save_LIBS
  3693. fi
  3694. echo "$as_me:$LINENO: result: $ac_cv_lib_bind_res_init" >&5
  3695. echo "${ECHO_T}$ac_cv_lib_bind_res_init" >&6
  3696. if test $ac_cv_lib_bind_res_init = yes; then
  3697. RESLIB="-lbind"
  3698. else
  3699. dns_reslib_avail="false";
  3700. fi
  3701. fi
  3702. fi
  3703. if test "${dns_reslib_avail}" = false; then
  3704. dns_reslib_avail="true"
  3705. echo "$as_me:$LINENO: checking for __res_init" >&5
  3706. echo $ECHO_N "checking for __res_init... $ECHO_C" >&6
  3707. if test "${ac_cv_func___res_init+set}" = set; then
  3708. echo $ECHO_N "(cached) $ECHO_C" >&6
  3709. else
  3710. cat >conftest.$ac_ext <<_ACEOF
  3711. /* confdefs.h. */
  3712. _ACEOF
  3713. cat confdefs.h >>conftest.$ac_ext
  3714. cat >>conftest.$ac_ext <<_ACEOF
  3715. /* end confdefs.h. */
  3716. /* Define __res_init to an innocuous variant, in case <limits.h> declares __res_init.
  3717. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3718. #define __res_init innocuous___res_init
  3719. /* System header to define __stub macros and hopefully few prototypes,
  3720. which can conflict with char __res_init (); below.
  3721. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3722. <limits.h> exists even on freestanding compilers. */
  3723. #ifdef __STDC__
  3724. # include <limits.h>
  3725. #else
  3726. # include <assert.h>
  3727. #endif
  3728. #undef __res_init
  3729. /* Override any gcc2 internal prototype to avoid an error. */
  3730. #ifdef __cplusplus
  3731. extern "C"
  3732. {
  3733. #endif
  3734. /* We use char because int might match the return type of a gcc2
  3735. builtin and then its argument prototype would still apply. */
  3736. char __res_init ();
  3737. /* The GNU C library defines this for functions which it implements
  3738. to always fail with ENOSYS. Some functions are actually named
  3739. something starting with __ and the normal name is an alias. */
  3740. #if defined (__stub___res_init) || defined (__stub_____res_init)
  3741. choke me
  3742. #else
  3743. char (*f) () = __res_init;
  3744. #endif
  3745. #ifdef __cplusplus
  3746. }
  3747. #endif
  3748. int
  3749. main ()
  3750. {
  3751. return f != __res_init;
  3752. ;
  3753. return 0;
  3754. }
  3755. _ACEOF
  3756. rm -f conftest.$ac_objext conftest$ac_exeext
  3757. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3758. (eval $ac_link) 2>conftest.er1
  3759. ac_status=$?
  3760. grep -v '^ *+' conftest.er1 >conftest.err
  3761. rm -f conftest.er1
  3762. cat conftest.err >&5
  3763. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3764. (exit $ac_status); } &&
  3765. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3766. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3767. (eval $ac_try) 2>&5
  3768. ac_status=$?
  3769. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3770. (exit $ac_status); }; } &&
  3771. { ac_try='test -s conftest$ac_exeext'
  3772. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3773. (eval $ac_try) 2>&5
  3774. ac_status=$?
  3775. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3776. (exit $ac_status); }; }; then
  3777. ac_cv_func___res_init=yes
  3778. else
  3779. echo "$as_me: failed program was:" >&5
  3780. sed 's/^/| /' conftest.$ac_ext >&5
  3781. ac_cv_func___res_init=no
  3782. fi
  3783. rm -f conftest.err conftest.$ac_objext \
  3784. conftest$ac_exeext conftest.$ac_ext
  3785. fi
  3786. echo "$as_me:$LINENO: result: $ac_cv_func___res_init" >&5
  3787. echo "${ECHO_T}$ac_cv_func___res_init" >&6
  3788. if test $ac_cv_func___res_init = yes; then
  3789. :
  3790. else
  3791. echo "$as_me:$LINENO: checking for __res_init in -lresolv" >&5
  3792. echo $ECHO_N "checking for __res_init in -lresolv... $ECHO_C" >&6
  3793. if test "${ac_cv_lib_resolv___res_init+set}" = set; then
  3794. echo $ECHO_N "(cached) $ECHO_C" >&6
  3795. else
  3796. ac_check_lib_save_LIBS=$LIBS
  3797. LIBS="-lresolv $LIBS"
  3798. cat >conftest.$ac_ext <<_ACEOF
  3799. /* confdefs.h. */
  3800. _ACEOF
  3801. cat confdefs.h >>conftest.$ac_ext
  3802. cat >>conftest.$ac_ext <<_ACEOF
  3803. /* end confdefs.h. */
  3804. /* Override any gcc2 internal prototype to avoid an error. */
  3805. #ifdef __cplusplus
  3806. extern "C"
  3807. #endif
  3808. /* We use char because int might match the return type of a gcc2
  3809. builtin and then its argument prototype would still apply. */
  3810. char __res_init ();
  3811. int
  3812. main ()
  3813. {
  3814. __res_init ();
  3815. ;
  3816. return 0;
  3817. }
  3818. _ACEOF
  3819. rm -f conftest.$ac_objext conftest$ac_exeext
  3820. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3821. (eval $ac_link) 2>conftest.er1
  3822. ac_status=$?
  3823. grep -v '^ *+' conftest.er1 >conftest.err
  3824. rm -f conftest.er1
  3825. cat conftest.err >&5
  3826. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3827. (exit $ac_status); } &&
  3828. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3829. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3830. (eval $ac_try) 2>&5
  3831. ac_status=$?
  3832. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3833. (exit $ac_status); }; } &&
  3834. { ac_try='test -s conftest$ac_exeext'
  3835. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3836. (eval $ac_try) 2>&5
  3837. ac_status=$?
  3838. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3839. (exit $ac_status); }; }; then
  3840. ac_cv_lib_resolv___res_init=yes
  3841. else
  3842. echo "$as_me: failed program was:" >&5
  3843. sed 's/^/| /' conftest.$ac_ext >&5
  3844. ac_cv_lib_resolv___res_init=no
  3845. fi
  3846. rm -f conftest.err conftest.$ac_objext \
  3847. conftest$ac_exeext conftest.$ac_ext
  3848. LIBS=$ac_check_lib_save_LIBS
  3849. fi
  3850. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_init" >&5
  3851. echo "${ECHO_T}$ac_cv_lib_resolv___res_init" >&6
  3852. if test $ac_cv_lib_resolv___res_init = yes; then
  3853. RESLIB="-lresolv"
  3854. else
  3855. echo "$as_me:$LINENO: checking for __res_init in -lbind" >&5
  3856. echo $ECHO_N "checking for __res_init in -lbind... $ECHO_C" >&6
  3857. if test "${ac_cv_lib_bind___res_init+set}" = set; then
  3858. echo $ECHO_N "(cached) $ECHO_C" >&6
  3859. else
  3860. ac_check_lib_save_LIBS=$LIBS
  3861. LIBS="-lbind $LIBS"
  3862. cat >conftest.$ac_ext <<_ACEOF
  3863. /* confdefs.h. */
  3864. _ACEOF
  3865. cat confdefs.h >>conftest.$ac_ext
  3866. cat >>conftest.$ac_ext <<_ACEOF
  3867. /* end confdefs.h. */
  3868. /* Override any gcc2 internal prototype to avoid an error. */
  3869. #ifdef __cplusplus
  3870. extern "C"
  3871. #endif
  3872. /* We use char because int might match the return type of a gcc2
  3873. builtin and then its argument prototype would still apply. */
  3874. char __res_init ();
  3875. int
  3876. main ()
  3877. {
  3878. __res_init ();
  3879. ;
  3880. return 0;
  3881. }
  3882. _ACEOF
  3883. rm -f conftest.$ac_objext conftest$ac_exeext
  3884. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3885. (eval $ac_link) 2>conftest.er1
  3886. ac_status=$?
  3887. grep -v '^ *+' conftest.er1 >conftest.err
  3888. rm -f conftest.er1
  3889. cat conftest.err >&5
  3890. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3891. (exit $ac_status); } &&
  3892. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3893. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3894. (eval $ac_try) 2>&5
  3895. ac_status=$?
  3896. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3897. (exit $ac_status); }; } &&
  3898. { ac_try='test -s conftest$ac_exeext'
  3899. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3900. (eval $ac_try) 2>&5
  3901. ac_status=$?
  3902. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3903. (exit $ac_status); }; }; then
  3904. ac_cv_lib_bind___res_init=yes
  3905. else
  3906. echo "$as_me: failed program was:" >&5
  3907. sed 's/^/| /' conftest.$ac_ext >&5
  3908. ac_cv_lib_bind___res_init=no
  3909. fi
  3910. rm -f conftest.err conftest.$ac_objext \
  3911. conftest$ac_exeext conftest.$ac_ext
  3912. LIBS=$ac_check_lib_save_LIBS
  3913. fi
  3914. echo "$as_me:$LINENO: result: $ac_cv_lib_bind___res_init" >&5
  3915. echo "${ECHO_T}$ac_cv_lib_bind___res_init" >&6
  3916. if test $ac_cv_lib_bind___res_init = yes; then
  3917. RESLIB="-lbind"
  3918. else
  3919. dns_reslib_avail="false";
  3920. fi
  3921. fi
  3922. fi
  3923. fi
  3924. echo "$as_me:$LINENO: checking for res_mkquery" >&5
  3925. echo $ECHO_N "checking for res_mkquery... $ECHO_C" >&6
  3926. if test "${ac_cv_func_res_mkquery+set}" = set; then
  3927. echo $ECHO_N "(cached) $ECHO_C" >&6
  3928. else
  3929. cat >conftest.$ac_ext <<_ACEOF
  3930. /* confdefs.h. */
  3931. _ACEOF
  3932. cat confdefs.h >>conftest.$ac_ext
  3933. cat >>conftest.$ac_ext <<_ACEOF
  3934. /* end confdefs.h. */
  3935. /* Define res_mkquery to an innocuous variant, in case <limits.h> declares res_mkquery.
  3936. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3937. #define res_mkquery innocuous_res_mkquery
  3938. /* System header to define __stub macros and hopefully few prototypes,
  3939. which can conflict with char res_mkquery (); below.
  3940. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3941. <limits.h> exists even on freestanding compilers. */
  3942. #ifdef __STDC__
  3943. # include <limits.h>
  3944. #else
  3945. # include <assert.h>
  3946. #endif
  3947. #undef res_mkquery
  3948. /* Override any gcc2 internal prototype to avoid an error. */
  3949. #ifdef __cplusplus
  3950. extern "C"
  3951. {
  3952. #endif
  3953. /* We use char because int might match the return type of a gcc2
  3954. builtin and then its argument prototype would still apply. */
  3955. char res_mkquery ();
  3956. /* The GNU C library defines this for functions which it implements
  3957. to always fail with ENOSYS. Some functions are actually named
  3958. something starting with __ and the normal name is an alias. */
  3959. #if defined (__stub_res_mkquery) || defined (__stub___res_mkquery)
  3960. choke me
  3961. #else
  3962. char (*f) () = res_mkquery;
  3963. #endif
  3964. #ifdef __cplusplus
  3965. }
  3966. #endif
  3967. int
  3968. main ()
  3969. {
  3970. return f != res_mkquery;
  3971. ;
  3972. return 0;
  3973. }
  3974. _ACEOF
  3975. rm -f conftest.$ac_objext conftest$ac_exeext
  3976. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3977. (eval $ac_link) 2>conftest.er1
  3978. ac_status=$?
  3979. grep -v '^ *+' conftest.er1 >conftest.err
  3980. rm -f conftest.er1
  3981. cat conftest.err >&5
  3982. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3983. (exit $ac_status); } &&
  3984. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3985. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3986. (eval $ac_try) 2>&5
  3987. ac_status=$?
  3988. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3989. (exit $ac_status); }; } &&
  3990. { ac_try='test -s conftest$ac_exeext'
  3991. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3992. (eval $ac_try) 2>&5
  3993. ac_status=$?
  3994. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3995. (exit $ac_status); }; }; then
  3996. ac_cv_func_res_mkquery=yes
  3997. else
  3998. echo "$as_me: failed program was:" >&5
  3999. sed 's/^/| /' conftest.$ac_ext >&5
  4000. ac_cv_func_res_mkquery=no
  4001. fi
  4002. rm -f conftest.err conftest.$ac_objext \
  4003. conftest$ac_exeext conftest.$ac_ext
  4004. fi
  4005. echo "$as_me:$LINENO: result: $ac_cv_func_res_mkquery" >&5
  4006. echo "${ECHO_T}$ac_cv_func_res_mkquery" >&6
  4007. if test $ac_cv_func_res_mkquery = yes; then
  4008. :
  4009. else
  4010. echo "$as_me:$LINENO: checking for res_mkquery in -lresolv" >&5
  4011. echo $ECHO_N "checking for res_mkquery in -lresolv... $ECHO_C" >&6
  4012. if test "${ac_cv_lib_resolv_res_mkquery+set}" = set; then
  4013. echo $ECHO_N "(cached) $ECHO_C" >&6
  4014. else
  4015. ac_check_lib_save_LIBS=$LIBS
  4016. LIBS="-lresolv $LIBS"
  4017. cat >conftest.$ac_ext <<_ACEOF
  4018. /* confdefs.h. */
  4019. _ACEOF
  4020. cat confdefs.h >>conftest.$ac_ext
  4021. cat >>conftest.$ac_ext <<_ACEOF
  4022. /* end confdefs.h. */
  4023. /* Override any gcc2 internal prototype to avoid an error. */
  4024. #ifdef __cplusplus
  4025. extern "C"
  4026. #endif
  4027. /* We use char because int might match the return type of a gcc2
  4028. builtin and then its argument prototype would still apply. */
  4029. char res_mkquery ();
  4030. int
  4031. main ()
  4032. {
  4033. res_mkquery ();
  4034. ;
  4035. return 0;
  4036. }
  4037. _ACEOF
  4038. rm -f conftest.$ac_objext conftest$ac_exeext
  4039. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4040. (eval $ac_link) 2>conftest.er1
  4041. ac_status=$?
  4042. grep -v '^ *+' conftest.er1 >conftest.err
  4043. rm -f conftest.er1
  4044. cat conftest.err >&5
  4045. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4046. (exit $ac_status); } &&
  4047. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4048. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4049. (eval $ac_try) 2>&5
  4050. ac_status=$?
  4051. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4052. (exit $ac_status); }; } &&
  4053. { ac_try='test -s conftest$ac_exeext'
  4054. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4055. (eval $ac_try) 2>&5
  4056. ac_status=$?
  4057. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4058. (exit $ac_status); }; }; then
  4059. ac_cv_lib_resolv_res_mkquery=yes
  4060. else
  4061. echo "$as_me: failed program was:" >&5
  4062. sed 's/^/| /' conftest.$ac_ext >&5
  4063. ac_cv_lib_resolv_res_mkquery=no
  4064. fi
  4065. rm -f conftest.err conftest.$ac_objext \
  4066. conftest$ac_exeext conftest.$ac_ext
  4067. LIBS=$ac_check_lib_save_LIBS
  4068. fi
  4069. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_mkquery" >&5
  4070. echo "${ECHO_T}$ac_cv_lib_resolv_res_mkquery" >&6
  4071. if test $ac_cv_lib_resolv_res_mkquery = yes; then
  4072. if test "x${RESLIB}" != "x-lresolv"; then
  4073. RESLIB="${RESLIB} -lresolv"
  4074. fi
  4075. else
  4076. echo "$as_me:$LINENO: checking for res_mkquery in -lbind" >&5
  4077. echo $ECHO_N "checking for res_mkquery in -lbind... $ECHO_C" >&6
  4078. if test "${ac_cv_lib_bind_res_mkquery+set}" = set; then
  4079. echo $ECHO_N "(cached) $ECHO_C" >&6
  4080. else
  4081. ac_check_lib_save_LIBS=$LIBS
  4082. LIBS="-lbind $LIBS"
  4083. cat >conftest.$ac_ext <<_ACEOF
  4084. /* confdefs.h. */
  4085. _ACEOF
  4086. cat confdefs.h >>conftest.$ac_ext
  4087. cat >>conftest.$ac_ext <<_ACEOF
  4088. /* end confdefs.h. */
  4089. /* Override any gcc2 internal prototype to avoid an error. */
  4090. #ifdef __cplusplus
  4091. extern "C"
  4092. #endif
  4093. /* We use char because int might match the return type of a gcc2
  4094. builtin and then its argument prototype would still apply. */
  4095. char res_mkquery ();
  4096. int
  4097. main ()
  4098. {
  4099. res_mkquery ();
  4100. ;
  4101. return 0;
  4102. }
  4103. _ACEOF
  4104. rm -f conftest.$ac_objext conftest$ac_exeext
  4105. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4106. (eval $ac_link) 2>conftest.er1
  4107. ac_status=$?
  4108. grep -v '^ *+' conftest.er1 >conftest.err
  4109. rm -f conftest.er1
  4110. cat conftest.err >&5
  4111. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4112. (exit $ac_status); } &&
  4113. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4114. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4115. (eval $ac_try) 2>&5
  4116. ac_status=$?
  4117. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4118. (exit $ac_status); }; } &&
  4119. { ac_try='test -s conftest$ac_exeext'
  4120. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4121. (eval $ac_try) 2>&5
  4122. ac_status=$?
  4123. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4124. (exit $ac_status); }; }; then
  4125. ac_cv_lib_bind_res_mkquery=yes
  4126. else
  4127. echo "$as_me: failed program was:" >&5
  4128. sed 's/^/| /' conftest.$ac_ext >&5
  4129. ac_cv_lib_bind_res_mkquery=no
  4130. fi
  4131. rm -f conftest.err conftest.$ac_objext \
  4132. conftest$ac_exeext conftest.$ac_ext
  4133. LIBS=$ac_check_lib_save_LIBS
  4134. fi
  4135. echo "$as_me:$LINENO: result: $ac_cv_lib_bind_res_mkquery" >&5
  4136. echo "${ECHO_T}$ac_cv_lib_bind_res_mkquery" >&6
  4137. if test $ac_cv_lib_bind_res_mkquery = yes; then
  4138. if test "x${RESLIB}" != "x-lbind"; then
  4139. RESLIB="${RESLIB} -lbind"
  4140. fi
  4141. else
  4142. dns_reslib_avail="false";
  4143. fi
  4144. fi
  4145. fi
  4146. if test "${dns_reslib_avail}" = false; then
  4147. dns_reslib_avail="true"
  4148. echo "$as_me:$LINENO: checking for __res_mkquery" >&5
  4149. echo $ECHO_N "checking for __res_mkquery... $ECHO_C" >&6
  4150. if test "${ac_cv_func___res_mkquery+set}" = set; then
  4151. echo $ECHO_N "(cached) $ECHO_C" >&6
  4152. else
  4153. cat >conftest.$ac_ext <<_ACEOF
  4154. /* confdefs.h. */
  4155. _ACEOF
  4156. cat confdefs.h >>conftest.$ac_ext
  4157. cat >>conftest.$ac_ext <<_ACEOF
  4158. /* end confdefs.h. */
  4159. /* Define __res_mkquery to an innocuous variant, in case <limits.h> declares __res_mkquery.
  4160. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  4161. #define __res_mkquery innocuous___res_mkquery
  4162. /* System header to define __stub macros and hopefully few prototypes,
  4163. which can conflict with char __res_mkquery (); below.
  4164. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4165. <limits.h> exists even on freestanding compilers. */
  4166. #ifdef __STDC__
  4167. # include <limits.h>
  4168. #else
  4169. # include <assert.h>
  4170. #endif
  4171. #undef __res_mkquery
  4172. /* Override any gcc2 internal prototype to avoid an error. */
  4173. #ifdef __cplusplus
  4174. extern "C"
  4175. {
  4176. #endif
  4177. /* We use char because int might match the return type of a gcc2
  4178. builtin and then its argument prototype would still apply. */
  4179. char __res_mkquery ();
  4180. /* The GNU C library defines this for functions which it implements
  4181. to always fail with ENOSYS. Some functions are actually named
  4182. something starting with __ and the normal name is an alias. */
  4183. #if defined (__stub___res_mkquery) || defined (__stub_____res_mkquery)
  4184. choke me
  4185. #else
  4186. char (*f) () = __res_mkquery;
  4187. #endif
  4188. #ifdef __cplusplus
  4189. }
  4190. #endif
  4191. int
  4192. main ()
  4193. {
  4194. return f != __res_mkquery;
  4195. ;
  4196. return 0;
  4197. }
  4198. _ACEOF
  4199. rm -f conftest.$ac_objext conftest$ac_exeext
  4200. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4201. (eval $ac_link) 2>conftest.er1
  4202. ac_status=$?
  4203. grep -v '^ *+' conftest.er1 >conftest.err
  4204. rm -f conftest.er1
  4205. cat conftest.err >&5
  4206. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4207. (exit $ac_status); } &&
  4208. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4209. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4210. (eval $ac_try) 2>&5
  4211. ac_status=$?
  4212. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4213. (exit $ac_status); }; } &&
  4214. { ac_try='test -s conftest$ac_exeext'
  4215. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4216. (eval $ac_try) 2>&5
  4217. ac_status=$?
  4218. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4219. (exit $ac_status); }; }; then
  4220. ac_cv_func___res_mkquery=yes
  4221. else
  4222. echo "$as_me: failed program was:" >&5
  4223. sed 's/^/| /' conftest.$ac_ext >&5
  4224. ac_cv_func___res_mkquery=no
  4225. fi
  4226. rm -f conftest.err conftest.$ac_objext \
  4227. conftest$ac_exeext conftest.$ac_ext
  4228. fi
  4229. echo "$as_me:$LINENO: result: $ac_cv_func___res_mkquery" >&5
  4230. echo "${ECHO_T}$ac_cv_func___res_mkquery" >&6
  4231. if test $ac_cv_func___res_mkquery = yes; then
  4232. :
  4233. else
  4234. echo "$as_me:$LINENO: checking for __res_mkquery in -lresolv" >&5
  4235. echo $ECHO_N "checking for __res_mkquery in -lresolv... $ECHO_C" >&6
  4236. if test "${ac_cv_lib_resolv___res_mkquery+set}" = set; then
  4237. echo $ECHO_N "(cached) $ECHO_C" >&6
  4238. else
  4239. ac_check_lib_save_LIBS=$LIBS
  4240. LIBS="-lresolv $LIBS"
  4241. cat >conftest.$ac_ext <<_ACEOF
  4242. /* confdefs.h. */
  4243. _ACEOF
  4244. cat confdefs.h >>conftest.$ac_ext
  4245. cat >>conftest.$ac_ext <<_ACEOF
  4246. /* end confdefs.h. */
  4247. /* Override any gcc2 internal prototype to avoid an error. */
  4248. #ifdef __cplusplus
  4249. extern "C"
  4250. #endif
  4251. /* We use char because int might match the return type of a gcc2
  4252. builtin and then its argument prototype would still apply. */
  4253. char __res_mkquery ();
  4254. int
  4255. main ()
  4256. {
  4257. __res_mkquery ();
  4258. ;
  4259. return 0;
  4260. }
  4261. _ACEOF
  4262. rm -f conftest.$ac_objext conftest$ac_exeext
  4263. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4264. (eval $ac_link) 2>conftest.er1
  4265. ac_status=$?
  4266. grep -v '^ *+' conftest.er1 >conftest.err
  4267. rm -f conftest.er1
  4268. cat conftest.err >&5
  4269. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4270. (exit $ac_status); } &&
  4271. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4272. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4273. (eval $ac_try) 2>&5
  4274. ac_status=$?
  4275. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4276. (exit $ac_status); }; } &&
  4277. { ac_try='test -s conftest$ac_exeext'
  4278. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4279. (eval $ac_try) 2>&5
  4280. ac_status=$?
  4281. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4282. (exit $ac_status); }; }; then
  4283. ac_cv_lib_resolv___res_mkquery=yes
  4284. else
  4285. echo "$as_me: failed program was:" >&5
  4286. sed 's/^/| /' conftest.$ac_ext >&5
  4287. ac_cv_lib_resolv___res_mkquery=no
  4288. fi
  4289. rm -f conftest.err conftest.$ac_objext \
  4290. conftest$ac_exeext conftest.$ac_ext
  4291. LIBS=$ac_check_lib_save_LIBS
  4292. fi
  4293. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_mkquery" >&5
  4294. echo "${ECHO_T}$ac_cv_lib_resolv___res_mkquery" >&6
  4295. if test $ac_cv_lib_resolv___res_mkquery = yes; then
  4296. if test "x${RESLIB}" != "x-lresolv"; then
  4297. RESLIB="${RESLIB} -lresolv"
  4298. fi
  4299. else
  4300. echo "$as_me:$LINENO: checking for __res_mkquery in -lbind" >&5
  4301. echo $ECHO_N "checking for __res_mkquery in -lbind... $ECHO_C" >&6
  4302. if test "${ac_cv_lib_bind___res_mkquery+set}" = set; then
  4303. echo $ECHO_N "(cached) $ECHO_C" >&6
  4304. else
  4305. ac_check_lib_save_LIBS=$LIBS
  4306. LIBS="-lbind $LIBS"
  4307. cat >conftest.$ac_ext <<_ACEOF
  4308. /* confdefs.h. */
  4309. _ACEOF
  4310. cat confdefs.h >>conftest.$ac_ext
  4311. cat >>conftest.$ac_ext <<_ACEOF
  4312. /* end confdefs.h. */
  4313. /* Override any gcc2 internal prototype to avoid an error. */
  4314. #ifdef __cplusplus
  4315. extern "C"
  4316. #endif
  4317. /* We use char because int might match the return type of a gcc2
  4318. builtin and then its argument prototype would still apply. */
  4319. char __res_mkquery ();
  4320. int
  4321. main ()
  4322. {
  4323. __res_mkquery ();
  4324. ;
  4325. return 0;
  4326. }
  4327. _ACEOF
  4328. rm -f conftest.$ac_objext conftest$ac_exeext
  4329. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4330. (eval $ac_link) 2>conftest.er1
  4331. ac_status=$?
  4332. grep -v '^ *+' conftest.er1 >conftest.err
  4333. rm -f conftest.er1
  4334. cat conftest.err >&5
  4335. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4336. (exit $ac_status); } &&
  4337. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4338. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4339. (eval $ac_try) 2>&5
  4340. ac_status=$?
  4341. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4342. (exit $ac_status); }; } &&
  4343. { ac_try='test -s conftest$ac_exeext'
  4344. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4345. (eval $ac_try) 2>&5
  4346. ac_status=$?
  4347. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4348. (exit $ac_status); }; }; then
  4349. ac_cv_lib_bind___res_mkquery=yes
  4350. else
  4351. echo "$as_me: failed program was:" >&5
  4352. sed 's/^/| /' conftest.$ac_ext >&5
  4353. ac_cv_lib_bind___res_mkquery=no
  4354. fi
  4355. rm -f conftest.err conftest.$ac_objext \
  4356. conftest$ac_exeext conftest.$ac_ext
  4357. LIBS=$ac_check_lib_save_LIBS
  4358. fi
  4359. echo "$as_me:$LINENO: result: $ac_cv_lib_bind___res_mkquery" >&5
  4360. echo "${ECHO_T}$ac_cv_lib_bind___res_mkquery" >&6
  4361. if test $ac_cv_lib_bind___res_mkquery = yes; then
  4362. if test "x${RESLIB}" != "x-lbind"; then
  4363. RESLIB="${RESLIB} -lbind"
  4364. fi
  4365. else
  4366. dns_reslib_avail="false";
  4367. fi
  4368. fi
  4369. fi
  4370. fi
  4371. if test "${dns_reslib_avail}" = false; then
  4372. if test "$ac_cv_cygwin" = "yes"; then
  4373. echo "$as_me:$LINENO: checking for /usr/local/bind/lib/libbind.a" >&5
  4374. echo $ECHO_N "checking for /usr/local/bind/lib/libbind.a... $ECHO_C" >&6
  4375. if test -r /usr/local/bind/lib/libbind.a; then
  4376. echo "$as_me:$LINENO: result: yes" >&5
  4377. echo "${ECHO_T}yes" >&6
  4378. RESLIB="${RESLIB} -L/usr/local/bind/lib -lbind"
  4379. RESINCLUDE="-I/usr/local/bind/include"
  4380. dns_reslib_avail="true"
  4381. else
  4382. echo "$as_me:$LINENO: result: no" >&5
  4383. echo "${ECHO_T}no" >&6
  4384. fi
  4385. fi
  4386. fi
  4387. if test "${dns_reslib_avail}" = false; then
  4388. cat >&2 <<EOF
  4389. configure: warning:
  4390. Your system provides no functional resolver library.
  4391. One is required for buld.
  4392. EOF
  4393. exit 1
  4394. fi
  4395. #checkpoint
  4396. cat >confcache <<\_ACEOF
  4397. # This file is a shell script that caches the results of configure
  4398. # tests run on this system so they can be shared between configure
  4399. # scripts and configure runs, see configure's option --config-cache.
  4400. # It is not useful on other systems. If it contains results you don't
  4401. # want to keep, you may remove or edit it.
  4402. #
  4403. # config.status only pays attention to the cache file if you give it
  4404. # the --recheck option to rerun configure.
  4405. #
  4406. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4407. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4408. # following values.
  4409. _ACEOF
  4410. # The following way of writing the cache mishandles newlines in values,
  4411. # but we know of no workaround that is simple, portable, and efficient.
  4412. # So, don't put newlines in cache variables' values.
  4413. # Ultrix sh set writes to stderr and can't be redirected directly,
  4414. # and sets the high bit in the cache file unless we assign to the vars.
  4415. {
  4416. (set) 2>&1 |
  4417. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  4418. *ac_space=\ *)
  4419. # `set' does not quote correctly, so add quotes (double-quote
  4420. # substitution turns \\\\ into \\, and sed turns \\ into \).
  4421. sed -n \
  4422. "s/'/'\\\\''/g;
  4423. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4424. ;;
  4425. *)
  4426. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4427. sed -n \
  4428. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  4429. ;;
  4430. esac;
  4431. } |
  4432. sed '
  4433. t clear
  4434. : clear
  4435. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4436. t end
  4437. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4438. : end' >>confcache
  4439. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  4440. if test -w $cache_file; then
  4441. test "x$cache_file" != "x/dev/null"
  4442. cat confcache >$cache_file
  4443. else
  4444. echo "not updating unwritable cache $cache_file"
  4445. fi
  4446. fi
  4447. rm -f confcache
  4448. # Checks for system libraries
  4449. # FIXME: this needs to be fixed so that it works on IRIX
  4450. if test "$IRIX" = "yes"
  4451. then
  4452. { echo "$as_me:$LINENO: WARNING: Skipping library tests because they CONFUSE Irix." >&5
  4453. echo "$as_me: WARNING: Skipping library tests because they CONFUSE Irix." >&2;}
  4454. else
  4455. echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
  4456. echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
  4457. if test "${ac_cv_lib_socket_socket+set}" = set; then
  4458. echo $ECHO_N "(cached) $ECHO_C" >&6
  4459. else
  4460. ac_check_lib_save_LIBS=$LIBS
  4461. LIBS="-lsocket $LIBS"
  4462. cat >conftest.$ac_ext <<_ACEOF
  4463. /* confdefs.h. */
  4464. _ACEOF
  4465. cat confdefs.h >>conftest.$ac_ext
  4466. cat >>conftest.$ac_ext <<_ACEOF
  4467. /* end confdefs.h. */
  4468. /* Override any gcc2 internal prototype to avoid an error. */
  4469. #ifdef __cplusplus
  4470. extern "C"
  4471. #endif
  4472. /* We use char because int might match the return type of a gcc2
  4473. builtin and then its argument prototype would still apply. */
  4474. char socket ();
  4475. int
  4476. main ()
  4477. {
  4478. socket ();
  4479. ;
  4480. return 0;
  4481. }
  4482. _ACEOF
  4483. rm -f conftest.$ac_objext conftest$ac_exeext
  4484. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4485. (eval $ac_link) 2>conftest.er1
  4486. ac_status=$?
  4487. grep -v '^ *+' conftest.er1 >conftest.err
  4488. rm -f conftest.er1
  4489. cat conftest.err >&5
  4490. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4491. (exit $ac_status); } &&
  4492. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4493. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4494. (eval $ac_try) 2>&5
  4495. ac_status=$?
  4496. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4497. (exit $ac_status); }; } &&
  4498. { ac_try='test -s conftest$ac_exeext'
  4499. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4500. (eval $ac_try) 2>&5
  4501. ac_status=$?
  4502. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4503. (exit $ac_status); }; }; then
  4504. ac_cv_lib_socket_socket=yes
  4505. else
  4506. echo "$as_me: failed program was:" >&5
  4507. sed 's/^/| /' conftest.$ac_ext >&5
  4508. ac_cv_lib_socket_socket=no
  4509. fi
  4510. rm -f conftest.err conftest.$ac_objext \
  4511. conftest$ac_exeext conftest.$ac_ext
  4512. LIBS=$ac_check_lib_save_LIBS
  4513. fi
  4514. echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
  4515. echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
  4516. if test $ac_cv_lib_socket_socket = yes; then
  4517. cat >>confdefs.h <<_ACEOF
  4518. #define HAVE_LIBSOCKET 1
  4519. _ACEOF
  4520. LIBS="-lsocket $LIBS"
  4521. fi
  4522. echo "$as_me:$LINENO: checking for connect in -lnsl" >&5
  4523. echo $ECHO_N "checking for connect in -lnsl... $ECHO_C" >&6
  4524. if test "${ac_cv_lib_nsl_connect+set}" = set; then
  4525. echo $ECHO_N "(cached) $ECHO_C" >&6
  4526. else
  4527. ac_check_lib_save_LIBS=$LIBS
  4528. LIBS="-lnsl $LIBS"
  4529. cat >conftest.$ac_ext <<_ACEOF
  4530. /* confdefs.h. */
  4531. _ACEOF
  4532. cat confdefs.h >>conftest.$ac_ext
  4533. cat >>conftest.$ac_ext <<_ACEOF
  4534. /* end confdefs.h. */
  4535. /* Override any gcc2 internal prototype to avoid an error. */
  4536. #ifdef __cplusplus
  4537. extern "C"
  4538. #endif
  4539. /* We use char because int might match the return type of a gcc2
  4540. builtin and then its argument prototype would still apply. */
  4541. char connect ();
  4542. int
  4543. main ()
  4544. {
  4545. connect ();
  4546. ;
  4547. return 0;
  4548. }
  4549. _ACEOF
  4550. rm -f conftest.$ac_objext conftest$ac_exeext
  4551. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4552. (eval $ac_link) 2>conftest.er1
  4553. ac_status=$?
  4554. grep -v '^ *+' conftest.er1 >conftest.err
  4555. rm -f conftest.er1
  4556. cat conftest.err >&5
  4557. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4558. (exit $ac_status); } &&
  4559. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4560. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4561. (eval $ac_try) 2>&5
  4562. ac_status=$?
  4563. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4564. (exit $ac_status); }; } &&
  4565. { ac_try='test -s conftest$ac_exeext'
  4566. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4567. (eval $ac_try) 2>&5
  4568. ac_status=$?
  4569. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4570. (exit $ac_status); }; }; then
  4571. ac_cv_lib_nsl_connect=yes
  4572. else
  4573. echo "$as_me: failed program was:" >&5
  4574. sed 's/^/| /' conftest.$ac_ext >&5
  4575. ac_cv_lib_nsl_connect=no
  4576. fi
  4577. rm -f conftest.err conftest.$ac_objext \
  4578. conftest$ac_exeext conftest.$ac_ext
  4579. LIBS=$ac_check_lib_save_LIBS
  4580. fi
  4581. echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_connect" >&5
  4582. echo "${ECHO_T}$ac_cv_lib_nsl_connect" >&6
  4583. if test $ac_cv_lib_nsl_connect = yes; then
  4584. cat >>confdefs.h <<_ACEOF
  4585. #define HAVE_LIBNSL 1
  4586. _ACEOF
  4587. LIBS="-lnsl $LIBS"
  4588. fi
  4589. echo "$as_me:$LINENO: checking for gethostbyname in -ldns" >&5
  4590. echo $ECHO_N "checking for gethostbyname in -ldns... $ECHO_C" >&6
  4591. if test "${ac_cv_lib_dns_gethostbyname+set}" = set; then
  4592. echo $ECHO_N "(cached) $ECHO_C" >&6
  4593. else
  4594. ac_check_lib_save_LIBS=$LIBS
  4595. LIBS="-ldns $LIBS"
  4596. cat >conftest.$ac_ext <<_ACEOF
  4597. /* confdefs.h. */
  4598. _ACEOF
  4599. cat confdefs.h >>conftest.$ac_ext
  4600. cat >>conftest.$ac_ext <<_ACEOF
  4601. /* end confdefs.h. */
  4602. /* Override any gcc2 internal prototype to avoid an error. */
  4603. #ifdef __cplusplus
  4604. extern "C"
  4605. #endif
  4606. /* We use char because int might match the return type of a gcc2
  4607. builtin and then its argument prototype would still apply. */
  4608. char gethostbyname ();
  4609. int
  4610. main ()
  4611. {
  4612. gethostbyname ();
  4613. ;
  4614. return 0;
  4615. }
  4616. _ACEOF
  4617. rm -f conftest.$ac_objext conftest$ac_exeext
  4618. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4619. (eval $ac_link) 2>conftest.er1
  4620. ac_status=$?
  4621. grep -v '^ *+' conftest.er1 >conftest.err
  4622. rm -f conftest.er1
  4623. cat conftest.err >&5
  4624. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4625. (exit $ac_status); } &&
  4626. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4627. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4628. (eval $ac_try) 2>&5
  4629. ac_status=$?
  4630. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4631. (exit $ac_status); }; } &&
  4632. { ac_try='test -s conftest$ac_exeext'
  4633. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4634. (eval $ac_try) 2>&5
  4635. ac_status=$?
  4636. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4637. (exit $ac_status); }; }; then
  4638. ac_cv_lib_dns_gethostbyname=yes
  4639. else
  4640. echo "$as_me: failed program was:" >&5
  4641. sed 's/^/| /' conftest.$ac_ext >&5
  4642. ac_cv_lib_dns_gethostbyname=no
  4643. fi
  4644. rm -f conftest.err conftest.$ac_objext \
  4645. conftest$ac_exeext conftest.$ac_ext
  4646. LIBS=$ac_check_lib_save_LIBS
  4647. fi
  4648. echo "$as_me:$LINENO: result: $ac_cv_lib_dns_gethostbyname" >&5
  4649. echo "${ECHO_T}$ac_cv_lib_dns_gethostbyname" >&6
  4650. if test $ac_cv_lib_dns_gethostbyname = yes; then
  4651. cat >>confdefs.h <<_ACEOF
  4652. #define HAVE_LIBDNS 1
  4653. _ACEOF
  4654. LIBS="-ldns $LIBS"
  4655. fi
  4656. echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
  4657. echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6
  4658. if test "${ac_cv_lib_z_gzopen+set}" = set; then
  4659. echo $ECHO_N "(cached) $ECHO_C" >&6
  4660. else
  4661. ac_check_lib_save_LIBS=$LIBS
  4662. LIBS="-lz $LIBS"
  4663. cat >conftest.$ac_ext <<_ACEOF
  4664. /* confdefs.h. */
  4665. _ACEOF
  4666. cat confdefs.h >>conftest.$ac_ext
  4667. cat >>conftest.$ac_ext <<_ACEOF
  4668. /* end confdefs.h. */
  4669. /* Override any gcc2 internal prototype to avoid an error. */
  4670. #ifdef __cplusplus
  4671. extern "C"
  4672. #endif
  4673. /* We use char because int might match the return type of a gcc2
  4674. builtin and then its argument prototype would still apply. */
  4675. char gzopen ();
  4676. int
  4677. main ()
  4678. {
  4679. gzopen ();
  4680. ;
  4681. return 0;
  4682. }
  4683. _ACEOF
  4684. rm -f conftest.$ac_objext conftest$ac_exeext
  4685. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4686. (eval $ac_link) 2>conftest.er1
  4687. ac_status=$?
  4688. grep -v '^ *+' conftest.er1 >conftest.err
  4689. rm -f conftest.er1
  4690. cat conftest.err >&5
  4691. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4692. (exit $ac_status); } &&
  4693. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4694. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4695. (eval $ac_try) 2>&5
  4696. ac_status=$?
  4697. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4698. (exit $ac_status); }; } &&
  4699. { ac_try='test -s conftest$ac_exeext'
  4700. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4701. (eval $ac_try) 2>&5
  4702. ac_status=$?
  4703. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4704. (exit $ac_status); }; }; then
  4705. ac_cv_lib_z_gzopen=yes
  4706. else
  4707. echo "$as_me: failed program was:" >&5
  4708. sed 's/^/| /' conftest.$ac_ext >&5
  4709. ac_cv_lib_z_gzopen=no
  4710. fi
  4711. rm -f conftest.err conftest.$ac_objext \
  4712. conftest$ac_exeext conftest.$ac_ext
  4713. LIBS=$ac_check_lib_save_LIBS
  4714. fi
  4715. echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
  4716. echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6
  4717. if test $ac_cv_lib_z_gzopen = yes; then
  4718. ZLIB="-lz"
  4719. fi
  4720. echo "$as_me:$LINENO: checking for SSL_accept in -lssl" >&5
  4721. echo $ECHO_N "checking for SSL_accept in -lssl... $ECHO_C" >&6
  4722. if test "${ac_cv_lib_ssl_SSL_accept+set}" = set; then
  4723. echo $ECHO_N "(cached) $ECHO_C" >&6
  4724. else
  4725. ac_check_lib_save_LIBS=$LIBS
  4726. LIBS="-lssl -lcrypto $LIBS"
  4727. cat >conftest.$ac_ext <<_ACEOF
  4728. /* confdefs.h. */
  4729. _ACEOF
  4730. cat confdefs.h >>conftest.$ac_ext
  4731. cat >>conftest.$ac_ext <<_ACEOF
  4732. /* end confdefs.h. */
  4733. /* Override any gcc2 internal prototype to avoid an error. */
  4734. #ifdef __cplusplus
  4735. extern "C"
  4736. #endif
  4737. /* We use char because int might match the return type of a gcc2
  4738. builtin and then its argument prototype would still apply. */
  4739. char SSL_accept ();
  4740. int
  4741. main ()
  4742. {
  4743. SSL_accept ();
  4744. ;
  4745. return 0;
  4746. }
  4747. _ACEOF
  4748. rm -f conftest.$ac_objext conftest$ac_exeext
  4749. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4750. (eval $ac_link) 2>conftest.er1
  4751. ac_status=$?
  4752. grep -v '^ *+' conftest.er1 >conftest.err
  4753. rm -f conftest.er1
  4754. cat conftest.err >&5
  4755. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4756. (exit $ac_status); } &&
  4757. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4758. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4759. (eval $ac_try) 2>&5
  4760. ac_status=$?
  4761. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4762. (exit $ac_status); }; } &&
  4763. { ac_try='test -s conftest$ac_exeext'
  4764. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4765. (eval $ac_try) 2>&5
  4766. ac_status=$?
  4767. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4768. (exit $ac_status); }; }; then
  4769. ac_cv_lib_ssl_SSL_accept=yes
  4770. else
  4771. echo "$as_me: failed program was:" >&5
  4772. sed 's/^/| /' conftest.$ac_ext >&5
  4773. ac_cv_lib_ssl_SSL_accept=no
  4774. fi
  4775. rm -f conftest.err conftest.$ac_objext \
  4776. conftest$ac_exeext conftest.$ac_ext
  4777. LIBS=$ac_check_lib_save_LIBS
  4778. fi
  4779. echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_accept" >&5
  4780. echo "${ECHO_T}$ac_cv_lib_ssl_SSL_accept" >&6
  4781. if test $ac_cv_lib_ssl_SSL_accept = yes; then
  4782. SSL="-lssl -lcrypto"
  4783. else
  4784. SSL=""
  4785. fi
  4786. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  4787. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  4788. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  4789. echo $ECHO_N "(cached) $ECHO_C" >&6
  4790. else
  4791. ac_check_lib_save_LIBS=$LIBS
  4792. LIBS="-ldl $LIBS"
  4793. cat >conftest.$ac_ext <<_ACEOF
  4794. /* confdefs.h. */
  4795. _ACEOF
  4796. cat confdefs.h >>conftest.$ac_ext
  4797. cat >>conftest.$ac_ext <<_ACEOF
  4798. /* end confdefs.h. */
  4799. /* Override any gcc2 internal prototype to avoid an error. */
  4800. #ifdef __cplusplus
  4801. extern "C"
  4802. #endif
  4803. /* We use char because int might match the return type of a gcc2
  4804. builtin and then its argument prototype would still apply. */
  4805. char dlopen ();
  4806. int
  4807. main ()
  4808. {
  4809. dlopen ();
  4810. ;
  4811. return 0;
  4812. }
  4813. _ACEOF
  4814. rm -f conftest.$ac_objext conftest$ac_exeext
  4815. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4816. (eval $ac_link) 2>conftest.er1
  4817. ac_status=$?
  4818. grep -v '^ *+' conftest.er1 >conftest.err
  4819. rm -f conftest.er1
  4820. cat conftest.err >&5
  4821. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4822. (exit $ac_status); } &&
  4823. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4824. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4825. (eval $ac_try) 2>&5
  4826. ac_status=$?
  4827. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4828. (exit $ac_status); }; } &&
  4829. { ac_try='test -s conftest$ac_exeext'
  4830. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4831. (eval $ac_try) 2>&5
  4832. ac_status=$?
  4833. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4834. (exit $ac_status); }; }; then
  4835. ac_cv_lib_dl_dlopen=yes
  4836. else
  4837. echo "$as_me: failed program was:" >&5
  4838. sed 's/^/| /' conftest.$ac_ext >&5
  4839. ac_cv_lib_dl_dlopen=no
  4840. fi
  4841. rm -f conftest.err conftest.$ac_objext \
  4842. conftest$ac_exeext conftest.$ac_ext
  4843. LIBS=$ac_check_lib_save_LIBS
  4844. fi
  4845. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  4846. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  4847. if test $ac_cv_lib_dl_dlopen = yes; then
  4848. cat >>confdefs.h <<_ACEOF
  4849. #define HAVE_LIBDL 1
  4850. _ACEOF
  4851. LIBS="-ldl $LIBS"
  4852. fi
  4853. echo "$as_me:$LINENO: checking for tan in -lm" >&5
  4854. echo $ECHO_N "checking for tan in -lm... $ECHO_C" >&6
  4855. if test "${ac_cv_lib_m_tan+set}" = set; then
  4856. echo $ECHO_N "(cached) $ECHO_C" >&6
  4857. else
  4858. ac_check_lib_save_LIBS=$LIBS
  4859. LIBS="-lm $LIBS"
  4860. cat >conftest.$ac_ext <<_ACEOF
  4861. /* confdefs.h. */
  4862. _ACEOF
  4863. cat confdefs.h >>conftest.$ac_ext
  4864. cat >>conftest.$ac_ext <<_ACEOF
  4865. /* end confdefs.h. */
  4866. /* Override any gcc2 internal prototype to avoid an error. */
  4867. #ifdef __cplusplus
  4868. extern "C"
  4869. #endif
  4870. /* We use char because int might match the return type of a gcc2
  4871. builtin and then its argument prototype would still apply. */
  4872. char tan ();
  4873. int
  4874. main ()
  4875. {
  4876. tan ();
  4877. ;
  4878. return 0;
  4879. }
  4880. _ACEOF
  4881. rm -f conftest.$ac_objext conftest$ac_exeext
  4882. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4883. (eval $ac_link) 2>conftest.er1
  4884. ac_status=$?
  4885. grep -v '^ *+' conftest.er1 >conftest.err
  4886. rm -f conftest.er1
  4887. cat conftest.err >&5
  4888. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4889. (exit $ac_status); } &&
  4890. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4891. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4892. (eval $ac_try) 2>&5
  4893. ac_status=$?
  4894. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4895. (exit $ac_status); }; } &&
  4896. { ac_try='test -s conftest$ac_exeext'
  4897. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4898. (eval $ac_try) 2>&5
  4899. ac_status=$?
  4900. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4901. (exit $ac_status); }; }; then
  4902. ac_cv_lib_m_tan=yes
  4903. else
  4904. echo "$as_me: failed program was:" >&5
  4905. sed 's/^/| /' conftest.$ac_ext >&5
  4906. ac_cv_lib_m_tan=no
  4907. fi
  4908. rm -f conftest.err conftest.$ac_objext \
  4909. conftest$ac_exeext conftest.$ac_ext
  4910. LIBS=$ac_check_lib_save_LIBS
  4911. fi
  4912. echo "$as_me:$LINENO: result: $ac_cv_lib_m_tan" >&5
  4913. echo "${ECHO_T}$ac_cv_lib_m_tan" >&6
  4914. if test $ac_cv_lib_m_tan = yes; then
  4915. EGG_MATH_LIB="-lm"
  4916. fi
  4917. # This is needed for Tcl libraries compiled with thread support
  4918. echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
  4919. echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6
  4920. if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
  4921. echo $ECHO_N "(cached) $ECHO_C" >&6
  4922. else
  4923. ac_check_lib_save_LIBS=$LIBS
  4924. LIBS="-lpthread $LIBS"
  4925. cat >conftest.$ac_ext <<_ACEOF
  4926. /* confdefs.h. */
  4927. _ACEOF
  4928. cat confdefs.h >>conftest.$ac_ext
  4929. cat >>conftest.$ac_ext <<_ACEOF
  4930. /* end confdefs.h. */
  4931. /* Override any gcc2 internal prototype to avoid an error. */
  4932. #ifdef __cplusplus
  4933. extern "C"
  4934. #endif
  4935. /* We use char because int might match the return type of a gcc2
  4936. builtin and then its argument prototype would still apply. */
  4937. char pthread_mutex_init ();
  4938. int
  4939. main ()
  4940. {
  4941. pthread_mutex_init ();
  4942. ;
  4943. return 0;
  4944. }
  4945. _ACEOF
  4946. rm -f conftest.$ac_objext conftest$ac_exeext
  4947. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4948. (eval $ac_link) 2>conftest.er1
  4949. ac_status=$?
  4950. grep -v '^ *+' conftest.er1 >conftest.err
  4951. rm -f conftest.er1
  4952. cat conftest.err >&5
  4953. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4954. (exit $ac_status); } &&
  4955. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4956. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4957. (eval $ac_try) 2>&5
  4958. ac_status=$?
  4959. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4960. (exit $ac_status); }; } &&
  4961. { ac_try='test -s conftest$ac_exeext'
  4962. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4963. (eval $ac_try) 2>&5
  4964. ac_status=$?
  4965. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4966. (exit $ac_status); }; }; then
  4967. ac_cv_lib_pthread_pthread_mutex_init=yes
  4968. else
  4969. echo "$as_me: failed program was:" >&5
  4970. sed 's/^/| /' conftest.$ac_ext >&5
  4971. ac_cv_lib_pthread_pthread_mutex_init=no
  4972. fi
  4973. rm -f conftest.err conftest.$ac_objext \
  4974. conftest$ac_exeext conftest.$ac_ext
  4975. LIBS=$ac_check_lib_save_LIBS
  4976. fi
  4977. echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
  4978. echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6
  4979. if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
  4980. ac_cv_lib_pthread_pthread_mutex_init=yes
  4981. ac_cv_lib_pthread="-lpthread"
  4982. else
  4983. echo "$as_me:$LINENO: checking for __pthread_mutex_init in -lpthread" >&5
  4984. echo $ECHO_N "checking for __pthread_mutex_init in -lpthread... $ECHO_C" >&6
  4985. if test "${ac_cv_lib_pthread___pthread_mutex_init+set}" = set; then
  4986. echo $ECHO_N "(cached) $ECHO_C" >&6
  4987. else
  4988. ac_check_lib_save_LIBS=$LIBS
  4989. LIBS="-lpthread $LIBS"
  4990. cat >conftest.$ac_ext <<_ACEOF
  4991. /* confdefs.h. */
  4992. _ACEOF
  4993. cat confdefs.h >>conftest.$ac_ext
  4994. cat >>conftest.$ac_ext <<_ACEOF
  4995. /* end confdefs.h. */
  4996. /* Override any gcc2 internal prototype to avoid an error. */
  4997. #ifdef __cplusplus
  4998. extern "C"
  4999. #endif
  5000. /* We use char because int might match the return type of a gcc2
  5001. builtin and then its argument prototype would still apply. */
  5002. char __pthread_mutex_init ();
  5003. int
  5004. main ()
  5005. {
  5006. __pthread_mutex_init ();
  5007. ;
  5008. return 0;
  5009. }
  5010. _ACEOF
  5011. rm -f conftest.$ac_objext conftest$ac_exeext
  5012. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5013. (eval $ac_link) 2>conftest.er1
  5014. ac_status=$?
  5015. grep -v '^ *+' conftest.er1 >conftest.err
  5016. rm -f conftest.er1
  5017. cat conftest.err >&5
  5018. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5019. (exit $ac_status); } &&
  5020. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5021. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5022. (eval $ac_try) 2>&5
  5023. ac_status=$?
  5024. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5025. (exit $ac_status); }; } &&
  5026. { ac_try='test -s conftest$ac_exeext'
  5027. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5028. (eval $ac_try) 2>&5
  5029. ac_status=$?
  5030. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5031. (exit $ac_status); }; }; then
  5032. ac_cv_lib_pthread___pthread_mutex_init=yes
  5033. else
  5034. echo "$as_me: failed program was:" >&5
  5035. sed 's/^/| /' conftest.$ac_ext >&5
  5036. ac_cv_lib_pthread___pthread_mutex_init=no
  5037. fi
  5038. rm -f conftest.err conftest.$ac_objext \
  5039. conftest$ac_exeext conftest.$ac_ext
  5040. LIBS=$ac_check_lib_save_LIBS
  5041. fi
  5042. echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_mutex_init" >&5
  5043. echo "${ECHO_T}$ac_cv_lib_pthread___pthread_mutex_init" >&6
  5044. if test $ac_cv_lib_pthread___pthread_mutex_init = yes; then
  5045. ac_cv_lib_pthread_pthread_mutex_init=yes
  5046. ac_cv_lib_pthread="-lpthread"
  5047. else
  5048. echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthreads" >&5
  5049. echo $ECHO_N "checking for pthread_mutex_init in -lpthreads... $ECHO_C" >&6
  5050. if test "${ac_cv_lib_pthreads_pthread_mutex_init+set}" = set; then
  5051. echo $ECHO_N "(cached) $ECHO_C" >&6
  5052. else
  5053. ac_check_lib_save_LIBS=$LIBS
  5054. LIBS="-lpthreads $LIBS"
  5055. cat >conftest.$ac_ext <<_ACEOF
  5056. /* confdefs.h. */
  5057. _ACEOF
  5058. cat confdefs.h >>conftest.$ac_ext
  5059. cat >>conftest.$ac_ext <<_ACEOF
  5060. /* end confdefs.h. */
  5061. /* Override any gcc2 internal prototype to avoid an error. */
  5062. #ifdef __cplusplus
  5063. extern "C"
  5064. #endif
  5065. /* We use char because int might match the return type of a gcc2
  5066. builtin and then its argument prototype would still apply. */
  5067. char pthread_mutex_init ();
  5068. int
  5069. main ()
  5070. {
  5071. pthread_mutex_init ();
  5072. ;
  5073. return 0;
  5074. }
  5075. _ACEOF
  5076. rm -f conftest.$ac_objext conftest$ac_exeext
  5077. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5078. (eval $ac_link) 2>conftest.er1
  5079. ac_status=$?
  5080. grep -v '^ *+' conftest.er1 >conftest.err
  5081. rm -f conftest.er1
  5082. cat conftest.err >&5
  5083. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5084. (exit $ac_status); } &&
  5085. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5086. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5087. (eval $ac_try) 2>&5
  5088. ac_status=$?
  5089. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5090. (exit $ac_status); }; } &&
  5091. { ac_try='test -s conftest$ac_exeext'
  5092. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5093. (eval $ac_try) 2>&5
  5094. ac_status=$?
  5095. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5096. (exit $ac_status); }; }; then
  5097. ac_cv_lib_pthreads_pthread_mutex_init=yes
  5098. else
  5099. echo "$as_me: failed program was:" >&5
  5100. sed 's/^/| /' conftest.$ac_ext >&5
  5101. ac_cv_lib_pthreads_pthread_mutex_init=no
  5102. fi
  5103. rm -f conftest.err conftest.$ac_objext \
  5104. conftest$ac_exeext conftest.$ac_ext
  5105. LIBS=$ac_check_lib_save_LIBS
  5106. fi
  5107. echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_mutex_init" >&5
  5108. echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_mutex_init" >&6
  5109. if test $ac_cv_lib_pthreads_pthread_mutex_init = yes; then
  5110. ac_cv_lib_pthread_pthread_mutex_init=yes
  5111. ac_cv_lib_pthread="-lpthreads"
  5112. else
  5113. echo "$as_me:$LINENO: checking for pthread_mutex_init" >&5
  5114. echo $ECHO_N "checking for pthread_mutex_init... $ECHO_C" >&6
  5115. if test "${ac_cv_func_pthread_mutex_init+set}" = set; then
  5116. echo $ECHO_N "(cached) $ECHO_C" >&6
  5117. else
  5118. cat >conftest.$ac_ext <<_ACEOF
  5119. /* confdefs.h. */
  5120. _ACEOF
  5121. cat confdefs.h >>conftest.$ac_ext
  5122. cat >>conftest.$ac_ext <<_ACEOF
  5123. /* end confdefs.h. */
  5124. /* Define pthread_mutex_init to an innocuous variant, in case <limits.h> declares pthread_mutex_init.
  5125. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5126. #define pthread_mutex_init innocuous_pthread_mutex_init
  5127. /* System header to define __stub macros and hopefully few prototypes,
  5128. which can conflict with char pthread_mutex_init (); below.
  5129. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5130. <limits.h> exists even on freestanding compilers. */
  5131. #ifdef __STDC__
  5132. # include <limits.h>
  5133. #else
  5134. # include <assert.h>
  5135. #endif
  5136. #undef pthread_mutex_init
  5137. /* Override any gcc2 internal prototype to avoid an error. */
  5138. #ifdef __cplusplus
  5139. extern "C"
  5140. {
  5141. #endif
  5142. /* We use char because int might match the return type of a gcc2
  5143. builtin and then its argument prototype would still apply. */
  5144. char pthread_mutex_init ();
  5145. /* The GNU C library defines this for functions which it implements
  5146. to always fail with ENOSYS. Some functions are actually named
  5147. something starting with __ and the normal name is an alias. */
  5148. #if defined (__stub_pthread_mutex_init) || defined (__stub___pthread_mutex_init)
  5149. choke me
  5150. #else
  5151. char (*f) () = pthread_mutex_init;
  5152. #endif
  5153. #ifdef __cplusplus
  5154. }
  5155. #endif
  5156. int
  5157. main ()
  5158. {
  5159. return f != pthread_mutex_init;
  5160. ;
  5161. return 0;
  5162. }
  5163. _ACEOF
  5164. rm -f conftest.$ac_objext conftest$ac_exeext
  5165. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5166. (eval $ac_link) 2>conftest.er1
  5167. ac_status=$?
  5168. grep -v '^ *+' conftest.er1 >conftest.err
  5169. rm -f conftest.er1
  5170. cat conftest.err >&5
  5171. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5172. (exit $ac_status); } &&
  5173. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5174. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5175. (eval $ac_try) 2>&5
  5176. ac_status=$?
  5177. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5178. (exit $ac_status); }; } &&
  5179. { ac_try='test -s conftest$ac_exeext'
  5180. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5181. (eval $ac_try) 2>&5
  5182. ac_status=$?
  5183. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5184. (exit $ac_status); }; }; then
  5185. ac_cv_func_pthread_mutex_init=yes
  5186. else
  5187. echo "$as_me: failed program was:" >&5
  5188. sed 's/^/| /' conftest.$ac_ext >&5
  5189. ac_cv_func_pthread_mutex_init=no
  5190. fi
  5191. rm -f conftest.err conftest.$ac_objext \
  5192. conftest$ac_exeext conftest.$ac_ext
  5193. fi
  5194. echo "$as_me:$LINENO: result: $ac_cv_func_pthread_mutex_init" >&5
  5195. echo "${ECHO_T}$ac_cv_func_pthread_mutex_init" >&6
  5196. if test $ac_cv_func_pthread_mutex_init = yes; then
  5197. ac_cv_lib_pthread_pthread_mutex_init=yes
  5198. ac_cv_lib_pthread=""
  5199. else
  5200. ac_cv_lib_pthread_pthread_mutex_init=no
  5201. fi
  5202. fi
  5203. fi
  5204. fi
  5205. if test "$SUNOS" = "yes"
  5206. then
  5207. # For suns without yp or something like that
  5208. echo "$as_me:$LINENO: checking for main in -ldl" >&5
  5209. echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
  5210. if test "${ac_cv_lib_dl_main+set}" = set; then
  5211. echo $ECHO_N "(cached) $ECHO_C" >&6
  5212. else
  5213. ac_check_lib_save_LIBS=$LIBS
  5214. LIBS="-ldl $LIBS"
  5215. cat >conftest.$ac_ext <<_ACEOF
  5216. /* confdefs.h. */
  5217. _ACEOF
  5218. cat confdefs.h >>conftest.$ac_ext
  5219. cat >>conftest.$ac_ext <<_ACEOF
  5220. /* end confdefs.h. */
  5221. int
  5222. main ()
  5223. {
  5224. main ();
  5225. ;
  5226. return 0;
  5227. }
  5228. _ACEOF
  5229. rm -f conftest.$ac_objext conftest$ac_exeext
  5230. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5231. (eval $ac_link) 2>conftest.er1
  5232. ac_status=$?
  5233. grep -v '^ *+' conftest.er1 >conftest.err
  5234. rm -f conftest.er1
  5235. cat conftest.err >&5
  5236. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5237. (exit $ac_status); } &&
  5238. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5239. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5240. (eval $ac_try) 2>&5
  5241. ac_status=$?
  5242. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5243. (exit $ac_status); }; } &&
  5244. { ac_try='test -s conftest$ac_exeext'
  5245. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5246. (eval $ac_try) 2>&5
  5247. ac_status=$?
  5248. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5249. (exit $ac_status); }; }; then
  5250. ac_cv_lib_dl_main=yes
  5251. else
  5252. echo "$as_me: failed program was:" >&5
  5253. sed 's/^/| /' conftest.$ac_ext >&5
  5254. ac_cv_lib_dl_main=no
  5255. fi
  5256. rm -f conftest.err conftest.$ac_objext \
  5257. conftest$ac_exeext conftest.$ac_ext
  5258. LIBS=$ac_check_lib_save_LIBS
  5259. fi
  5260. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
  5261. echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
  5262. if test $ac_cv_lib_dl_main = yes; then
  5263. cat >>confdefs.h <<_ACEOF
  5264. #define HAVE_LIBDL 1
  5265. _ACEOF
  5266. LIBS="-ldl $LIBS"
  5267. fi
  5268. else
  5269. if test "$HPUX" = "yes"
  5270. then
  5271. echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  5272. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
  5273. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  5274. echo $ECHO_N "(cached) $ECHO_C" >&6
  5275. else
  5276. ac_check_lib_save_LIBS=$LIBS
  5277. LIBS="-ldld $LIBS"
  5278. cat >conftest.$ac_ext <<_ACEOF
  5279. /* confdefs.h. */
  5280. _ACEOF
  5281. cat confdefs.h >>conftest.$ac_ext
  5282. cat >>conftest.$ac_ext <<_ACEOF
  5283. /* end confdefs.h. */
  5284. /* Override any gcc2 internal prototype to avoid an error. */
  5285. #ifdef __cplusplus
  5286. extern "C"
  5287. #endif
  5288. /* We use char because int might match the return type of a gcc2
  5289. builtin and then its argument prototype would still apply. */
  5290. char shl_load ();
  5291. int
  5292. main ()
  5293. {
  5294. shl_load ();
  5295. ;
  5296. return 0;
  5297. }
  5298. _ACEOF
  5299. rm -f conftest.$ac_objext conftest$ac_exeext
  5300. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5301. (eval $ac_link) 2>conftest.er1
  5302. ac_status=$?
  5303. grep -v '^ *+' conftest.er1 >conftest.err
  5304. rm -f conftest.er1
  5305. cat conftest.err >&5
  5306. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5307. (exit $ac_status); } &&
  5308. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5309. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5310. (eval $ac_try) 2>&5
  5311. ac_status=$?
  5312. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5313. (exit $ac_status); }; } &&
  5314. { ac_try='test -s conftest$ac_exeext'
  5315. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5316. (eval $ac_try) 2>&5
  5317. ac_status=$?
  5318. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5319. (exit $ac_status); }; }; then
  5320. ac_cv_lib_dld_shl_load=yes
  5321. else
  5322. echo "$as_me: failed program was:" >&5
  5323. sed 's/^/| /' conftest.$ac_ext >&5
  5324. ac_cv_lib_dld_shl_load=no
  5325. fi
  5326. rm -f conftest.err conftest.$ac_objext \
  5327. conftest$ac_exeext conftest.$ac_ext
  5328. LIBS=$ac_check_lib_save_LIBS
  5329. fi
  5330. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  5331. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
  5332. if test $ac_cv_lib_dld_shl_load = yes; then
  5333. cat >>confdefs.h <<_ACEOF
  5334. #define HAVE_LIBDLD 1
  5335. _ACEOF
  5336. LIBS="-ldld $LIBS"
  5337. fi
  5338. fi
  5339. fi
  5340. fi
  5341. # Checks for header files
  5342. ac_header_dirent=no
  5343. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  5344. as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  5345. echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  5346. echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
  5347. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5348. echo $ECHO_N "(cached) $ECHO_C" >&6
  5349. else
  5350. cat >conftest.$ac_ext <<_ACEOF
  5351. /* confdefs.h. */
  5352. _ACEOF
  5353. cat confdefs.h >>conftest.$ac_ext
  5354. cat >>conftest.$ac_ext <<_ACEOF
  5355. /* end confdefs.h. */
  5356. #include <sys/types.h>
  5357. #include <$ac_hdr>
  5358. int
  5359. main ()
  5360. {
  5361. if ((DIR *) 0)
  5362. return 0;
  5363. ;
  5364. return 0;
  5365. }
  5366. _ACEOF
  5367. rm -f conftest.$ac_objext
  5368. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5369. (eval $ac_compile) 2>conftest.er1
  5370. ac_status=$?
  5371. grep -v '^ *+' conftest.er1 >conftest.err
  5372. rm -f conftest.er1
  5373. cat conftest.err >&5
  5374. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5375. (exit $ac_status); } &&
  5376. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5377. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5378. (eval $ac_try) 2>&5
  5379. ac_status=$?
  5380. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5381. (exit $ac_status); }; } &&
  5382. { ac_try='test -s conftest.$ac_objext'
  5383. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5384. (eval $ac_try) 2>&5
  5385. ac_status=$?
  5386. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5387. (exit $ac_status); }; }; then
  5388. eval "$as_ac_Header=yes"
  5389. else
  5390. echo "$as_me: failed program was:" >&5
  5391. sed 's/^/| /' conftest.$ac_ext >&5
  5392. eval "$as_ac_Header=no"
  5393. fi
  5394. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5395. fi
  5396. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5397. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5398. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5399. cat >>confdefs.h <<_ACEOF
  5400. #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  5401. _ACEOF
  5402. ac_header_dirent=$ac_hdr; break
  5403. fi
  5404. done
  5405. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  5406. if test $ac_header_dirent = dirent.h; then
  5407. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  5408. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  5409. if test "${ac_cv_search_opendir+set}" = set; then
  5410. echo $ECHO_N "(cached) $ECHO_C" >&6
  5411. else
  5412. ac_func_search_save_LIBS=$LIBS
  5413. ac_cv_search_opendir=no
  5414. cat >conftest.$ac_ext <<_ACEOF
  5415. /* confdefs.h. */
  5416. _ACEOF
  5417. cat confdefs.h >>conftest.$ac_ext
  5418. cat >>conftest.$ac_ext <<_ACEOF
  5419. /* end confdefs.h. */
  5420. /* Override any gcc2 internal prototype to avoid an error. */
  5421. #ifdef __cplusplus
  5422. extern "C"
  5423. #endif
  5424. /* We use char because int might match the return type of a gcc2
  5425. builtin and then its argument prototype would still apply. */
  5426. char opendir ();
  5427. int
  5428. main ()
  5429. {
  5430. opendir ();
  5431. ;
  5432. return 0;
  5433. }
  5434. _ACEOF
  5435. rm -f conftest.$ac_objext conftest$ac_exeext
  5436. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5437. (eval $ac_link) 2>conftest.er1
  5438. ac_status=$?
  5439. grep -v '^ *+' conftest.er1 >conftest.err
  5440. rm -f conftest.er1
  5441. cat conftest.err >&5
  5442. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5443. (exit $ac_status); } &&
  5444. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5445. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5446. (eval $ac_try) 2>&5
  5447. ac_status=$?
  5448. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5449. (exit $ac_status); }; } &&
  5450. { ac_try='test -s conftest$ac_exeext'
  5451. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5452. (eval $ac_try) 2>&5
  5453. ac_status=$?
  5454. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5455. (exit $ac_status); }; }; then
  5456. ac_cv_search_opendir="none required"
  5457. else
  5458. echo "$as_me: failed program was:" >&5
  5459. sed 's/^/| /' conftest.$ac_ext >&5
  5460. fi
  5461. rm -f conftest.err conftest.$ac_objext \
  5462. conftest$ac_exeext conftest.$ac_ext
  5463. if test "$ac_cv_search_opendir" = no; then
  5464. for ac_lib in dir; do
  5465. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  5466. cat >conftest.$ac_ext <<_ACEOF
  5467. /* confdefs.h. */
  5468. _ACEOF
  5469. cat confdefs.h >>conftest.$ac_ext
  5470. cat >>conftest.$ac_ext <<_ACEOF
  5471. /* end confdefs.h. */
  5472. /* Override any gcc2 internal prototype to avoid an error. */
  5473. #ifdef __cplusplus
  5474. extern "C"
  5475. #endif
  5476. /* We use char because int might match the return type of a gcc2
  5477. builtin and then its argument prototype would still apply. */
  5478. char opendir ();
  5479. int
  5480. main ()
  5481. {
  5482. opendir ();
  5483. ;
  5484. return 0;
  5485. }
  5486. _ACEOF
  5487. rm -f conftest.$ac_objext conftest$ac_exeext
  5488. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5489. (eval $ac_link) 2>conftest.er1
  5490. ac_status=$?
  5491. grep -v '^ *+' conftest.er1 >conftest.err
  5492. rm -f conftest.er1
  5493. cat conftest.err >&5
  5494. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5495. (exit $ac_status); } &&
  5496. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5497. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5498. (eval $ac_try) 2>&5
  5499. ac_status=$?
  5500. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5501. (exit $ac_status); }; } &&
  5502. { ac_try='test -s conftest$ac_exeext'
  5503. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5504. (eval $ac_try) 2>&5
  5505. ac_status=$?
  5506. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5507. (exit $ac_status); }; }; then
  5508. ac_cv_search_opendir="-l$ac_lib"
  5509. break
  5510. else
  5511. echo "$as_me: failed program was:" >&5
  5512. sed 's/^/| /' conftest.$ac_ext >&5
  5513. fi
  5514. rm -f conftest.err conftest.$ac_objext \
  5515. conftest$ac_exeext conftest.$ac_ext
  5516. done
  5517. fi
  5518. LIBS=$ac_func_search_save_LIBS
  5519. fi
  5520. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  5521. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  5522. if test "$ac_cv_search_opendir" != no; then
  5523. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  5524. fi
  5525. else
  5526. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  5527. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  5528. if test "${ac_cv_search_opendir+set}" = set; then
  5529. echo $ECHO_N "(cached) $ECHO_C" >&6
  5530. else
  5531. ac_func_search_save_LIBS=$LIBS
  5532. ac_cv_search_opendir=no
  5533. cat >conftest.$ac_ext <<_ACEOF
  5534. /* confdefs.h. */
  5535. _ACEOF
  5536. cat confdefs.h >>conftest.$ac_ext
  5537. cat >>conftest.$ac_ext <<_ACEOF
  5538. /* end confdefs.h. */
  5539. /* Override any gcc2 internal prototype to avoid an error. */
  5540. #ifdef __cplusplus
  5541. extern "C"
  5542. #endif
  5543. /* We use char because int might match the return type of a gcc2
  5544. builtin and then its argument prototype would still apply. */
  5545. char opendir ();
  5546. int
  5547. main ()
  5548. {
  5549. opendir ();
  5550. ;
  5551. return 0;
  5552. }
  5553. _ACEOF
  5554. rm -f conftest.$ac_objext conftest$ac_exeext
  5555. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5556. (eval $ac_link) 2>conftest.er1
  5557. ac_status=$?
  5558. grep -v '^ *+' conftest.er1 >conftest.err
  5559. rm -f conftest.er1
  5560. cat conftest.err >&5
  5561. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5562. (exit $ac_status); } &&
  5563. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5564. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5565. (eval $ac_try) 2>&5
  5566. ac_status=$?
  5567. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5568. (exit $ac_status); }; } &&
  5569. { ac_try='test -s conftest$ac_exeext'
  5570. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5571. (eval $ac_try) 2>&5
  5572. ac_status=$?
  5573. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5574. (exit $ac_status); }; }; then
  5575. ac_cv_search_opendir="none required"
  5576. else
  5577. echo "$as_me: failed program was:" >&5
  5578. sed 's/^/| /' conftest.$ac_ext >&5
  5579. fi
  5580. rm -f conftest.err conftest.$ac_objext \
  5581. conftest$ac_exeext conftest.$ac_ext
  5582. if test "$ac_cv_search_opendir" = no; then
  5583. for ac_lib in x; do
  5584. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  5585. cat >conftest.$ac_ext <<_ACEOF
  5586. /* confdefs.h. */
  5587. _ACEOF
  5588. cat confdefs.h >>conftest.$ac_ext
  5589. cat >>conftest.$ac_ext <<_ACEOF
  5590. /* end confdefs.h. */
  5591. /* Override any gcc2 internal prototype to avoid an error. */
  5592. #ifdef __cplusplus
  5593. extern "C"
  5594. #endif
  5595. /* We use char because int might match the return type of a gcc2
  5596. builtin and then its argument prototype would still apply. */
  5597. char opendir ();
  5598. int
  5599. main ()
  5600. {
  5601. opendir ();
  5602. ;
  5603. return 0;
  5604. }
  5605. _ACEOF
  5606. rm -f conftest.$ac_objext conftest$ac_exeext
  5607. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5608. (eval $ac_link) 2>conftest.er1
  5609. ac_status=$?
  5610. grep -v '^ *+' conftest.er1 >conftest.err
  5611. rm -f conftest.er1
  5612. cat conftest.err >&5
  5613. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5614. (exit $ac_status); } &&
  5615. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5616. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5617. (eval $ac_try) 2>&5
  5618. ac_status=$?
  5619. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5620. (exit $ac_status); }; } &&
  5621. { ac_try='test -s conftest$ac_exeext'
  5622. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5623. (eval $ac_try) 2>&5
  5624. ac_status=$?
  5625. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5626. (exit $ac_status); }; }; then
  5627. ac_cv_search_opendir="-l$ac_lib"
  5628. break
  5629. else
  5630. echo "$as_me: failed program was:" >&5
  5631. sed 's/^/| /' conftest.$ac_ext >&5
  5632. fi
  5633. rm -f conftest.err conftest.$ac_objext \
  5634. conftest$ac_exeext conftest.$ac_ext
  5635. done
  5636. fi
  5637. LIBS=$ac_func_search_save_LIBS
  5638. fi
  5639. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  5640. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  5641. if test "$ac_cv_search_opendir" != no; then
  5642. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  5643. fi
  5644. fi
  5645. echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  5646. echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
  5647. if test "${ac_cv_header_sys_wait_h+set}" = set; then
  5648. echo $ECHO_N "(cached) $ECHO_C" >&6
  5649. else
  5650. cat >conftest.$ac_ext <<_ACEOF
  5651. /* confdefs.h. */
  5652. _ACEOF
  5653. cat confdefs.h >>conftest.$ac_ext
  5654. cat >>conftest.$ac_ext <<_ACEOF
  5655. /* end confdefs.h. */
  5656. #include <sys/types.h>
  5657. #include <sys/wait.h>
  5658. #ifndef WEXITSTATUS
  5659. # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  5660. #endif
  5661. #ifndef WIFEXITED
  5662. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  5663. #endif
  5664. int
  5665. main ()
  5666. {
  5667. int s;
  5668. wait (&s);
  5669. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  5670. ;
  5671. return 0;
  5672. }
  5673. _ACEOF
  5674. rm -f conftest.$ac_objext
  5675. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5676. (eval $ac_compile) 2>conftest.er1
  5677. ac_status=$?
  5678. grep -v '^ *+' conftest.er1 >conftest.err
  5679. rm -f conftest.er1
  5680. cat conftest.err >&5
  5681. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5682. (exit $ac_status); } &&
  5683. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5684. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5685. (eval $ac_try) 2>&5
  5686. ac_status=$?
  5687. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5688. (exit $ac_status); }; } &&
  5689. { ac_try='test -s conftest.$ac_objext'
  5690. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5691. (eval $ac_try) 2>&5
  5692. ac_status=$?
  5693. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5694. (exit $ac_status); }; }; then
  5695. ac_cv_header_sys_wait_h=yes
  5696. else
  5697. echo "$as_me: failed program was:" >&5
  5698. sed 's/^/| /' conftest.$ac_ext >&5
  5699. ac_cv_header_sys_wait_h=no
  5700. fi
  5701. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5702. fi
  5703. echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  5704. echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
  5705. if test $ac_cv_header_sys_wait_h = yes; then
  5706. cat >>confdefs.h <<\_ACEOF
  5707. #define HAVE_SYS_WAIT_H 1
  5708. _ACEOF
  5709. fi
  5710. echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  5711. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
  5712. if test "${ac_cv_header_time+set}" = set; then
  5713. echo $ECHO_N "(cached) $ECHO_C" >&6
  5714. else
  5715. cat >conftest.$ac_ext <<_ACEOF
  5716. /* confdefs.h. */
  5717. _ACEOF
  5718. cat confdefs.h >>conftest.$ac_ext
  5719. cat >>conftest.$ac_ext <<_ACEOF
  5720. /* end confdefs.h. */
  5721. #include <sys/types.h>
  5722. #include <sys/time.h>
  5723. #include <time.h>
  5724. int
  5725. main ()
  5726. {
  5727. if ((struct tm *) 0)
  5728. return 0;
  5729. ;
  5730. return 0;
  5731. }
  5732. _ACEOF
  5733. rm -f conftest.$ac_objext
  5734. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5735. (eval $ac_compile) 2>conftest.er1
  5736. ac_status=$?
  5737. grep -v '^ *+' conftest.er1 >conftest.err
  5738. rm -f conftest.er1
  5739. cat conftest.err >&5
  5740. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5741. (exit $ac_status); } &&
  5742. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5743. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5744. (eval $ac_try) 2>&5
  5745. ac_status=$?
  5746. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5747. (exit $ac_status); }; } &&
  5748. { ac_try='test -s conftest.$ac_objext'
  5749. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5750. (eval $ac_try) 2>&5
  5751. ac_status=$?
  5752. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5753. (exit $ac_status); }; }; then
  5754. ac_cv_header_time=yes
  5755. else
  5756. echo "$as_me: failed program was:" >&5
  5757. sed 's/^/| /' conftest.$ac_ext >&5
  5758. ac_cv_header_time=no
  5759. fi
  5760. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5761. fi
  5762. echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  5763. echo "${ECHO_T}$ac_cv_header_time" >&6
  5764. if test $ac_cv_header_time = yes; then
  5765. cat >>confdefs.h <<\_ACEOF
  5766. #define TIME_WITH_SYS_TIME 1
  5767. _ACEOF
  5768. fi
  5769. echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
  5770. echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
  5771. if test "${ac_cv_header_stat_broken+set}" = set; then
  5772. echo $ECHO_N "(cached) $ECHO_C" >&6
  5773. else
  5774. cat >conftest.$ac_ext <<_ACEOF
  5775. /* confdefs.h. */
  5776. _ACEOF
  5777. cat confdefs.h >>conftest.$ac_ext
  5778. cat >>conftest.$ac_ext <<_ACEOF
  5779. /* end confdefs.h. */
  5780. #include <sys/types.h>
  5781. #include <sys/stat.h>
  5782. #if defined(S_ISBLK) && defined(S_IFDIR)
  5783. # if S_ISBLK (S_IFDIR)
  5784. You lose.
  5785. # endif
  5786. #endif
  5787. #if defined(S_ISBLK) && defined(S_IFCHR)
  5788. # if S_ISBLK (S_IFCHR)
  5789. You lose.
  5790. # endif
  5791. #endif
  5792. #if defined(S_ISLNK) && defined(S_IFREG)
  5793. # if S_ISLNK (S_IFREG)
  5794. You lose.
  5795. # endif
  5796. #endif
  5797. #if defined(S_ISSOCK) && defined(S_IFREG)
  5798. # if S_ISSOCK (S_IFREG)
  5799. You lose.
  5800. # endif
  5801. #endif
  5802. _ACEOF
  5803. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5804. $EGREP "You lose" >/dev/null 2>&1; then
  5805. ac_cv_header_stat_broken=yes
  5806. else
  5807. ac_cv_header_stat_broken=no
  5808. fi
  5809. rm -f conftest*
  5810. fi
  5811. echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
  5812. echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
  5813. if test $ac_cv_header_stat_broken = yes; then
  5814. cat >>confdefs.h <<\_ACEOF
  5815. #define STAT_MACROS_BROKEN 1
  5816. _ACEOF
  5817. fi
  5818. #checkpoint
  5819. cat >confcache <<\_ACEOF
  5820. # This file is a shell script that caches the results of configure
  5821. # tests run on this system so they can be shared between configure
  5822. # scripts and configure runs, see configure's option --config-cache.
  5823. # It is not useful on other systems. If it contains results you don't
  5824. # want to keep, you may remove or edit it.
  5825. #
  5826. # config.status only pays attention to the cache file if you give it
  5827. # the --recheck option to rerun configure.
  5828. #
  5829. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5830. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5831. # following values.
  5832. _ACEOF
  5833. # The following way of writing the cache mishandles newlines in values,
  5834. # but we know of no workaround that is simple, portable, and efficient.
  5835. # So, don't put newlines in cache variables' values.
  5836. # Ultrix sh set writes to stderr and can't be redirected directly,
  5837. # and sets the high bit in the cache file unless we assign to the vars.
  5838. {
  5839. (set) 2>&1 |
  5840. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  5841. *ac_space=\ *)
  5842. # `set' does not quote correctly, so add quotes (double-quote
  5843. # substitution turns \\\\ into \\, and sed turns \\ into \).
  5844. sed -n \
  5845. "s/'/'\\\\''/g;
  5846. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5847. ;;
  5848. *)
  5849. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5850. sed -n \
  5851. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  5852. ;;
  5853. esac;
  5854. } |
  5855. sed '
  5856. t clear
  5857. : clear
  5858. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5859. t end
  5860. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5861. : end' >>confcache
  5862. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  5863. if test -w $cache_file; then
  5864. test "x$cache_file" != "x/dev/null"
  5865. cat confcache >$cache_file
  5866. else
  5867. echo "not updating unwritable cache $cache_file"
  5868. fi
  5869. fi
  5870. rm -f confcache
  5871. for ac_header in arpa/inet.h fcntl.h limits.h locale.h netdb.h netinet/in.h
  5872. do
  5873. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5874. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5875. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5876. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5877. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5878. echo $ECHO_N "(cached) $ECHO_C" >&6
  5879. fi
  5880. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5881. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5882. else
  5883. # Is the header compilable?
  5884. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5885. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5886. cat >conftest.$ac_ext <<_ACEOF
  5887. /* confdefs.h. */
  5888. _ACEOF
  5889. cat confdefs.h >>conftest.$ac_ext
  5890. cat >>conftest.$ac_ext <<_ACEOF
  5891. /* end confdefs.h. */
  5892. $ac_includes_default
  5893. #include <$ac_header>
  5894. _ACEOF
  5895. rm -f conftest.$ac_objext
  5896. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5897. (eval $ac_compile) 2>conftest.er1
  5898. ac_status=$?
  5899. grep -v '^ *+' conftest.er1 >conftest.err
  5900. rm -f conftest.er1
  5901. cat conftest.err >&5
  5902. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5903. (exit $ac_status); } &&
  5904. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5905. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5906. (eval $ac_try) 2>&5
  5907. ac_status=$?
  5908. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5909. (exit $ac_status); }; } &&
  5910. { ac_try='test -s conftest.$ac_objext'
  5911. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5912. (eval $ac_try) 2>&5
  5913. ac_status=$?
  5914. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5915. (exit $ac_status); }; }; then
  5916. ac_header_compiler=yes
  5917. else
  5918. echo "$as_me: failed program was:" >&5
  5919. sed 's/^/| /' conftest.$ac_ext >&5
  5920. ac_header_compiler=no
  5921. fi
  5922. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5923. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5924. echo "${ECHO_T}$ac_header_compiler" >&6
  5925. # Is the header present?
  5926. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5927. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5928. cat >conftest.$ac_ext <<_ACEOF
  5929. /* confdefs.h. */
  5930. _ACEOF
  5931. cat confdefs.h >>conftest.$ac_ext
  5932. cat >>conftest.$ac_ext <<_ACEOF
  5933. /* end confdefs.h. */
  5934. #include <$ac_header>
  5935. _ACEOF
  5936. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5937. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5938. ac_status=$?
  5939. grep -v '^ *+' conftest.er1 >conftest.err
  5940. rm -f conftest.er1
  5941. cat conftest.err >&5
  5942. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5943. (exit $ac_status); } >/dev/null; then
  5944. if test -s conftest.err; then
  5945. ac_cpp_err=$ac_c_preproc_warn_flag
  5946. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5947. else
  5948. ac_cpp_err=
  5949. fi
  5950. else
  5951. ac_cpp_err=yes
  5952. fi
  5953. if test -z "$ac_cpp_err"; then
  5954. ac_header_preproc=yes
  5955. else
  5956. echo "$as_me: failed program was:" >&5
  5957. sed 's/^/| /' conftest.$ac_ext >&5
  5958. ac_header_preproc=no
  5959. fi
  5960. rm -f conftest.err conftest.$ac_ext
  5961. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5962. echo "${ECHO_T}$ac_header_preproc" >&6
  5963. # So? What about this header?
  5964. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5965. yes:no: )
  5966. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5967. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5968. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5969. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5970. ac_header_preproc=yes
  5971. ;;
  5972. no:yes:* )
  5973. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5974. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5975. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5976. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5977. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5978. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5979. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5980. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5981. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5982. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5983. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5984. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5985. (
  5986. cat <<\_ASBOX
  5987. ## ------------------------------------------ ##
  5988. ## Report this to the AC_PACKAGE_NAME lists. ##
  5989. ## ------------------------------------------ ##
  5990. _ASBOX
  5991. ) |
  5992. sed "s/^/$as_me: WARNING: /" >&2
  5993. ;;
  5994. esac
  5995. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5996. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5997. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5998. echo $ECHO_N "(cached) $ECHO_C" >&6
  5999. else
  6000. eval "$as_ac_Header=\$ac_header_preproc"
  6001. fi
  6002. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6003. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6004. fi
  6005. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  6006. cat >>confdefs.h <<_ACEOF
  6007. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6008. _ACEOF
  6009. fi
  6010. done
  6011. for ac_header in sys/file.h sys/ioctl.h sys/param.h sys/socket.h wchar.h
  6012. do
  6013. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6014. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6015. echo "$as_me:$LINENO: checking for $ac_header" >&5
  6016. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6017. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6018. echo $ECHO_N "(cached) $ECHO_C" >&6
  6019. fi
  6020. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6021. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6022. else
  6023. # Is the header compilable?
  6024. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6025. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  6026. cat >conftest.$ac_ext <<_ACEOF
  6027. /* confdefs.h. */
  6028. _ACEOF
  6029. cat confdefs.h >>conftest.$ac_ext
  6030. cat >>conftest.$ac_ext <<_ACEOF
  6031. /* end confdefs.h. */
  6032. $ac_includes_default
  6033. #include <$ac_header>
  6034. _ACEOF
  6035. rm -f conftest.$ac_objext
  6036. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6037. (eval $ac_compile) 2>conftest.er1
  6038. ac_status=$?
  6039. grep -v '^ *+' conftest.er1 >conftest.err
  6040. rm -f conftest.er1
  6041. cat conftest.err >&5
  6042. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6043. (exit $ac_status); } &&
  6044. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6045. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6046. (eval $ac_try) 2>&5
  6047. ac_status=$?
  6048. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6049. (exit $ac_status); }; } &&
  6050. { ac_try='test -s conftest.$ac_objext'
  6051. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6052. (eval $ac_try) 2>&5
  6053. ac_status=$?
  6054. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6055. (exit $ac_status); }; }; then
  6056. ac_header_compiler=yes
  6057. else
  6058. echo "$as_me: failed program was:" >&5
  6059. sed 's/^/| /' conftest.$ac_ext >&5
  6060. ac_header_compiler=no
  6061. fi
  6062. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6063. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6064. echo "${ECHO_T}$ac_header_compiler" >&6
  6065. # Is the header present?
  6066. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6067. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  6068. cat >conftest.$ac_ext <<_ACEOF
  6069. /* confdefs.h. */
  6070. _ACEOF
  6071. cat confdefs.h >>conftest.$ac_ext
  6072. cat >>conftest.$ac_ext <<_ACEOF
  6073. /* end confdefs.h. */
  6074. #include <$ac_header>
  6075. _ACEOF
  6076. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  6077. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  6078. ac_status=$?
  6079. grep -v '^ *+' conftest.er1 >conftest.err
  6080. rm -f conftest.er1
  6081. cat conftest.err >&5
  6082. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6083. (exit $ac_status); } >/dev/null; then
  6084. if test -s conftest.err; then
  6085. ac_cpp_err=$ac_c_preproc_warn_flag
  6086. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  6087. else
  6088. ac_cpp_err=
  6089. fi
  6090. else
  6091. ac_cpp_err=yes
  6092. fi
  6093. if test -z "$ac_cpp_err"; then
  6094. ac_header_preproc=yes
  6095. else
  6096. echo "$as_me: failed program was:" >&5
  6097. sed 's/^/| /' conftest.$ac_ext >&5
  6098. ac_header_preproc=no
  6099. fi
  6100. rm -f conftest.err conftest.$ac_ext
  6101. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6102. echo "${ECHO_T}$ac_header_preproc" >&6
  6103. # So? What about this header?
  6104. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  6105. yes:no: )
  6106. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  6107. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6108. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  6109. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  6110. ac_header_preproc=yes
  6111. ;;
  6112. no:yes:* )
  6113. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  6114. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  6115. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  6116. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  6117. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  6118. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  6119. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  6120. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  6121. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6122. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  6123. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  6124. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  6125. (
  6126. cat <<\_ASBOX
  6127. ## ------------------------------------------ ##
  6128. ## Report this to the AC_PACKAGE_NAME lists. ##
  6129. ## ------------------------------------------ ##
  6130. _ASBOX
  6131. ) |
  6132. sed "s/^/$as_me: WARNING: /" >&2
  6133. ;;
  6134. esac
  6135. echo "$as_me:$LINENO: checking for $ac_header" >&5
  6136. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6137. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6138. echo $ECHO_N "(cached) $ECHO_C" >&6
  6139. else
  6140. eval "$as_ac_Header=\$ac_header_preproc"
  6141. fi
  6142. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6143. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6144. fi
  6145. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  6146. cat >>confdefs.h <<_ACEOF
  6147. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6148. _ACEOF
  6149. fi
  6150. done
  6151. #checkpoint
  6152. cat >confcache <<\_ACEOF
  6153. # This file is a shell script that caches the results of configure
  6154. # tests run on this system so they can be shared between configure
  6155. # scripts and configure runs, see configure's option --config-cache.
  6156. # It is not useful on other systems. If it contains results you don't
  6157. # want to keep, you may remove or edit it.
  6158. #
  6159. # config.status only pays attention to the cache file if you give it
  6160. # the --recheck option to rerun configure.
  6161. #
  6162. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  6163. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  6164. # following values.
  6165. _ACEOF
  6166. # The following way of writing the cache mishandles newlines in values,
  6167. # but we know of no workaround that is simple, portable, and efficient.
  6168. # So, don't put newlines in cache variables' values.
  6169. # Ultrix sh set writes to stderr and can't be redirected directly,
  6170. # and sets the high bit in the cache file unless we assign to the vars.
  6171. {
  6172. (set) 2>&1 |
  6173. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  6174. *ac_space=\ *)
  6175. # `set' does not quote correctly, so add quotes (double-quote
  6176. # substitution turns \\\\ into \\, and sed turns \\ into \).
  6177. sed -n \
  6178. "s/'/'\\\\''/g;
  6179. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  6180. ;;
  6181. *)
  6182. # `set' quotes correctly as required by POSIX, so do not add quotes.
  6183. sed -n \
  6184. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  6185. ;;
  6186. esac;
  6187. } |
  6188. sed '
  6189. t clear
  6190. : clear
  6191. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  6192. t end
  6193. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  6194. : end' >>confcache
  6195. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  6196. if test -w $cache_file; then
  6197. test "x$cache_file" != "x/dev/null"
  6198. cat confcache >$cache_file
  6199. else
  6200. echo "not updating unwritable cache $cache_file"
  6201. fi
  6202. fi
  6203. rm -f confcache
  6204. for ac_header in openssl/ssl.h openssl/crypto.h
  6205. do
  6206. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6207. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6208. echo "$as_me:$LINENO: checking for $ac_header" >&5
  6209. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6210. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6211. echo $ECHO_N "(cached) $ECHO_C" >&6
  6212. fi
  6213. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6214. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6215. else
  6216. # Is the header compilable?
  6217. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6218. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  6219. cat >conftest.$ac_ext <<_ACEOF
  6220. /* confdefs.h. */
  6221. _ACEOF
  6222. cat confdefs.h >>conftest.$ac_ext
  6223. cat >>conftest.$ac_ext <<_ACEOF
  6224. /* end confdefs.h. */
  6225. $ac_includes_default
  6226. #include <$ac_header>
  6227. _ACEOF
  6228. rm -f conftest.$ac_objext
  6229. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6230. (eval $ac_compile) 2>conftest.er1
  6231. ac_status=$?
  6232. grep -v '^ *+' conftest.er1 >conftest.err
  6233. rm -f conftest.er1
  6234. cat conftest.err >&5
  6235. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6236. (exit $ac_status); } &&
  6237. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6238. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6239. (eval $ac_try) 2>&5
  6240. ac_status=$?
  6241. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6242. (exit $ac_status); }; } &&
  6243. { ac_try='test -s conftest.$ac_objext'
  6244. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6245. (eval $ac_try) 2>&5
  6246. ac_status=$?
  6247. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6248. (exit $ac_status); }; }; then
  6249. ac_header_compiler=yes
  6250. else
  6251. echo "$as_me: failed program was:" >&5
  6252. sed 's/^/| /' conftest.$ac_ext >&5
  6253. ac_header_compiler=no
  6254. fi
  6255. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6256. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6257. echo "${ECHO_T}$ac_header_compiler" >&6
  6258. # Is the header present?
  6259. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6260. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  6261. cat >conftest.$ac_ext <<_ACEOF
  6262. /* confdefs.h. */
  6263. _ACEOF
  6264. cat confdefs.h >>conftest.$ac_ext
  6265. cat >>conftest.$ac_ext <<_ACEOF
  6266. /* end confdefs.h. */
  6267. #include <$ac_header>
  6268. _ACEOF
  6269. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  6270. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  6271. ac_status=$?
  6272. grep -v '^ *+' conftest.er1 >conftest.err
  6273. rm -f conftest.er1
  6274. cat conftest.err >&5
  6275. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6276. (exit $ac_status); } >/dev/null; then
  6277. if test -s conftest.err; then
  6278. ac_cpp_err=$ac_c_preproc_warn_flag
  6279. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  6280. else
  6281. ac_cpp_err=
  6282. fi
  6283. else
  6284. ac_cpp_err=yes
  6285. fi
  6286. if test -z "$ac_cpp_err"; then
  6287. ac_header_preproc=yes
  6288. else
  6289. echo "$as_me: failed program was:" >&5
  6290. sed 's/^/| /' conftest.$ac_ext >&5
  6291. ac_header_preproc=no
  6292. fi
  6293. rm -f conftest.err conftest.$ac_ext
  6294. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6295. echo "${ECHO_T}$ac_header_preproc" >&6
  6296. # So? What about this header?
  6297. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  6298. yes:no: )
  6299. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  6300. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6301. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  6302. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  6303. ac_header_preproc=yes
  6304. ;;
  6305. no:yes:* )
  6306. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  6307. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  6308. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  6309. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  6310. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  6311. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  6312. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  6313. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  6314. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6315. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  6316. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  6317. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  6318. (
  6319. cat <<\_ASBOX
  6320. ## ------------------------------------------ ##
  6321. ## Report this to the AC_PACKAGE_NAME lists. ##
  6322. ## ------------------------------------------ ##
  6323. _ASBOX
  6324. ) |
  6325. sed "s/^/$as_me: WARNING: /" >&2
  6326. ;;
  6327. esac
  6328. echo "$as_me:$LINENO: checking for $ac_header" >&5
  6329. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6330. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6331. echo $ECHO_N "(cached) $ECHO_C" >&6
  6332. else
  6333. eval "$as_ac_Header=\$ac_header_preproc"
  6334. fi
  6335. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6336. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6337. fi
  6338. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  6339. cat >>confdefs.h <<_ACEOF
  6340. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6341. _ACEOF
  6342. fi
  6343. done
  6344. for ac_header in zlib.h
  6345. do
  6346. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6347. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6348. echo "$as_me:$LINENO: checking for $ac_header" >&5
  6349. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6350. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6351. echo $ECHO_N "(cached) $ECHO_C" >&6
  6352. fi
  6353. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6354. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6355. else
  6356. # Is the header compilable?
  6357. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6358. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  6359. cat >conftest.$ac_ext <<_ACEOF
  6360. /* confdefs.h. */
  6361. _ACEOF
  6362. cat confdefs.h >>conftest.$ac_ext
  6363. cat >>conftest.$ac_ext <<_ACEOF
  6364. /* end confdefs.h. */
  6365. $ac_includes_default
  6366. #include <$ac_header>
  6367. _ACEOF
  6368. rm -f conftest.$ac_objext
  6369. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6370. (eval $ac_compile) 2>conftest.er1
  6371. ac_status=$?
  6372. grep -v '^ *+' conftest.er1 >conftest.err
  6373. rm -f conftest.er1
  6374. cat conftest.err >&5
  6375. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6376. (exit $ac_status); } &&
  6377. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6378. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6379. (eval $ac_try) 2>&5
  6380. ac_status=$?
  6381. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6382. (exit $ac_status); }; } &&
  6383. { ac_try='test -s conftest.$ac_objext'
  6384. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6385. (eval $ac_try) 2>&5
  6386. ac_status=$?
  6387. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6388. (exit $ac_status); }; }; then
  6389. ac_header_compiler=yes
  6390. else
  6391. echo "$as_me: failed program was:" >&5
  6392. sed 's/^/| /' conftest.$ac_ext >&5
  6393. ac_header_compiler=no
  6394. fi
  6395. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6396. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6397. echo "${ECHO_T}$ac_header_compiler" >&6
  6398. # Is the header present?
  6399. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6400. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  6401. cat >conftest.$ac_ext <<_ACEOF
  6402. /* confdefs.h. */
  6403. _ACEOF
  6404. cat confdefs.h >>conftest.$ac_ext
  6405. cat >>conftest.$ac_ext <<_ACEOF
  6406. /* end confdefs.h. */
  6407. #include <$ac_header>
  6408. _ACEOF
  6409. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  6410. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  6411. ac_status=$?
  6412. grep -v '^ *+' conftest.er1 >conftest.err
  6413. rm -f conftest.er1
  6414. cat conftest.err >&5
  6415. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6416. (exit $ac_status); } >/dev/null; then
  6417. if test -s conftest.err; then
  6418. ac_cpp_err=$ac_c_preproc_warn_flag
  6419. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  6420. else
  6421. ac_cpp_err=
  6422. fi
  6423. else
  6424. ac_cpp_err=yes
  6425. fi
  6426. if test -z "$ac_cpp_err"; then
  6427. ac_header_preproc=yes
  6428. else
  6429. echo "$as_me: failed program was:" >&5
  6430. sed 's/^/| /' conftest.$ac_ext >&5
  6431. ac_header_preproc=no
  6432. fi
  6433. rm -f conftest.err conftest.$ac_ext
  6434. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6435. echo "${ECHO_T}$ac_header_preproc" >&6
  6436. # So? What about this header?
  6437. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  6438. yes:no: )
  6439. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  6440. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6441. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  6442. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  6443. ac_header_preproc=yes
  6444. ;;
  6445. no:yes:* )
  6446. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  6447. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  6448. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  6449. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  6450. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  6451. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  6452. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  6453. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  6454. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6455. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  6456. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  6457. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  6458. (
  6459. cat <<\_ASBOX
  6460. ## ------------------------------------------ ##
  6461. ## Report this to the AC_PACKAGE_NAME lists. ##
  6462. ## ------------------------------------------ ##
  6463. _ASBOX
  6464. ) |
  6465. sed "s/^/$as_me: WARNING: /" >&2
  6466. ;;
  6467. esac
  6468. echo "$as_me:$LINENO: checking for $ac_header" >&5
  6469. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6470. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6471. echo $ECHO_N "(cached) $ECHO_C" >&6
  6472. else
  6473. eval "$as_ac_Header=\$ac_header_preproc"
  6474. fi
  6475. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6476. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6477. fi
  6478. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  6479. cat >>confdefs.h <<_ACEOF
  6480. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6481. _ACEOF
  6482. fi
  6483. done
  6484. if test "x${ZLIB}" = x; then
  6485. cat >&2 <<EOF
  6486. configure: error:
  6487. Your system does not provide a working zlib compression library.
  6488. It is required.
  6489. EOF
  6490. exit 1
  6491. else
  6492. if test "${ac_cv_header_zlib_h}" != yes; then
  6493. cat >&2 <<EOF
  6494. configure: error:
  6495. Your system does not provide the necessary zlib header file.
  6496. It is required.
  6497. EOF
  6498. exit 1
  6499. fi
  6500. fi
  6501. if test "x${SSL}" = x; then
  6502. cat >&2 <<EOF
  6503. configure: error:
  6504. Your system does not provide a working ssl library.
  6505. It is required. Download openssl at www.openssl.org
  6506. EOF
  6507. exit 1
  6508. else
  6509. if test "${ac_cv_header_openssl_ssl_h}" != yes; then
  6510. cat >&2 <<EOF
  6511. configure: error:
  6512. Your system does not provide the necessary ssl header file.
  6513. It is required. Download openssl at www.openssl.org
  6514. EOF
  6515. exit 1
  6516. fi
  6517. fi
  6518. # Checks for typedefs, structures, and compiler characteristics
  6519. echo "$as_me:$LINENO: checking for pid_t" >&5
  6520. echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
  6521. if test "${ac_cv_type_pid_t+set}" = set; then
  6522. echo $ECHO_N "(cached) $ECHO_C" >&6
  6523. else
  6524. cat >conftest.$ac_ext <<_ACEOF
  6525. /* confdefs.h. */
  6526. _ACEOF
  6527. cat confdefs.h >>conftest.$ac_ext
  6528. cat >>conftest.$ac_ext <<_ACEOF
  6529. /* end confdefs.h. */
  6530. $ac_includes_default
  6531. int
  6532. main ()
  6533. {
  6534. if ((pid_t *) 0)
  6535. return 0;
  6536. if (sizeof (pid_t))
  6537. return 0;
  6538. ;
  6539. return 0;
  6540. }
  6541. _ACEOF
  6542. rm -f conftest.$ac_objext
  6543. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6544. (eval $ac_compile) 2>conftest.er1
  6545. ac_status=$?
  6546. grep -v '^ *+' conftest.er1 >conftest.err
  6547. rm -f conftest.er1
  6548. cat conftest.err >&5
  6549. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6550. (exit $ac_status); } &&
  6551. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6552. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6553. (eval $ac_try) 2>&5
  6554. ac_status=$?
  6555. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6556. (exit $ac_status); }; } &&
  6557. { ac_try='test -s conftest.$ac_objext'
  6558. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6559. (eval $ac_try) 2>&5
  6560. ac_status=$?
  6561. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6562. (exit $ac_status); }; }; then
  6563. ac_cv_type_pid_t=yes
  6564. else
  6565. echo "$as_me: failed program was:" >&5
  6566. sed 's/^/| /' conftest.$ac_ext >&5
  6567. ac_cv_type_pid_t=no
  6568. fi
  6569. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6570. fi
  6571. echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
  6572. echo "${ECHO_T}$ac_cv_type_pid_t" >&6
  6573. if test $ac_cv_type_pid_t = yes; then
  6574. :
  6575. else
  6576. cat >>confdefs.h <<_ACEOF
  6577. #define pid_t int
  6578. _ACEOF
  6579. fi
  6580. echo "$as_me:$LINENO: checking for size_t" >&5
  6581. echo $ECHO_N "checking for size_t... $ECHO_C" >&6
  6582. if test "${ac_cv_type_size_t+set}" = set; then
  6583. echo $ECHO_N "(cached) $ECHO_C" >&6
  6584. else
  6585. cat >conftest.$ac_ext <<_ACEOF
  6586. /* confdefs.h. */
  6587. _ACEOF
  6588. cat confdefs.h >>conftest.$ac_ext
  6589. cat >>conftest.$ac_ext <<_ACEOF
  6590. /* end confdefs.h. */
  6591. $ac_includes_default
  6592. int
  6593. main ()
  6594. {
  6595. if ((size_t *) 0)
  6596. return 0;
  6597. if (sizeof (size_t))
  6598. return 0;
  6599. ;
  6600. return 0;
  6601. }
  6602. _ACEOF
  6603. rm -f conftest.$ac_objext
  6604. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6605. (eval $ac_compile) 2>conftest.er1
  6606. ac_status=$?
  6607. grep -v '^ *+' conftest.er1 >conftest.err
  6608. rm -f conftest.er1
  6609. cat conftest.err >&5
  6610. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6611. (exit $ac_status); } &&
  6612. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6613. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6614. (eval $ac_try) 2>&5
  6615. ac_status=$?
  6616. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6617. (exit $ac_status); }; } &&
  6618. { ac_try='test -s conftest.$ac_objext'
  6619. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6620. (eval $ac_try) 2>&5
  6621. ac_status=$?
  6622. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6623. (exit $ac_status); }; }; then
  6624. ac_cv_type_size_t=yes
  6625. else
  6626. echo "$as_me: failed program was:" >&5
  6627. sed 's/^/| /' conftest.$ac_ext >&5
  6628. ac_cv_type_size_t=no
  6629. fi
  6630. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6631. fi
  6632. echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  6633. echo "${ECHO_T}$ac_cv_type_size_t" >&6
  6634. if test $ac_cv_type_size_t = yes; then
  6635. :
  6636. else
  6637. cat >>confdefs.h <<_ACEOF
  6638. #define size_t unsigned
  6639. _ACEOF
  6640. fi
  6641. echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
  6642. echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
  6643. if test "${ac_cv_type_uid_t+set}" = set; then
  6644. echo $ECHO_N "(cached) $ECHO_C" >&6
  6645. else
  6646. cat >conftest.$ac_ext <<_ACEOF
  6647. /* confdefs.h. */
  6648. _ACEOF
  6649. cat confdefs.h >>conftest.$ac_ext
  6650. cat >>conftest.$ac_ext <<_ACEOF
  6651. /* end confdefs.h. */
  6652. #include <sys/types.h>
  6653. _ACEOF
  6654. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6655. $EGREP "uid_t" >/dev/null 2>&1; then
  6656. ac_cv_type_uid_t=yes
  6657. else
  6658. ac_cv_type_uid_t=no
  6659. fi
  6660. rm -f conftest*
  6661. fi
  6662. echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
  6663. echo "${ECHO_T}$ac_cv_type_uid_t" >&6
  6664. if test $ac_cv_type_uid_t = no; then
  6665. cat >>confdefs.h <<\_ACEOF
  6666. #define uid_t int
  6667. _ACEOF
  6668. cat >>confdefs.h <<\_ACEOF
  6669. #define gid_t int
  6670. _ACEOF
  6671. fi
  6672. echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  6673. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  6674. if test "${ac_cv_c_const+set}" = set; then
  6675. echo $ECHO_N "(cached) $ECHO_C" >&6
  6676. else
  6677. cat >conftest.$ac_ext <<_ACEOF
  6678. /* confdefs.h. */
  6679. _ACEOF
  6680. cat confdefs.h >>conftest.$ac_ext
  6681. cat >>conftest.$ac_ext <<_ACEOF
  6682. /* end confdefs.h. */
  6683. int
  6684. main ()
  6685. {
  6686. /* FIXME: Include the comments suggested by Paul. */
  6687. #ifndef __cplusplus
  6688. /* Ultrix mips cc rejects this. */
  6689. typedef int charset[2];
  6690. const charset x;
  6691. /* SunOS 4.1.1 cc rejects this. */
  6692. char const *const *ccp;
  6693. char **p;
  6694. /* NEC SVR4.0.2 mips cc rejects this. */
  6695. struct point {int x, y;};
  6696. static struct point const zero = {0,0};
  6697. /* AIX XL C 1.02.0.0 rejects this.
  6698. It does not let you subtract one const X* pointer from another in
  6699. an arm of an if-expression whose if-part is not a constant
  6700. expression */
  6701. const char *g = "string";
  6702. ccp = &g + (g ? g-g : 0);
  6703. /* HPUX 7.0 cc rejects these. */
  6704. ++ccp;
  6705. p = (char**) ccp;
  6706. ccp = (char const *const *) p;
  6707. { /* SCO 3.2v4 cc rejects this. */
  6708. char *t;
  6709. char const *s = 0 ? (char *) 0 : (char const *) 0;
  6710. *t++ = 0;
  6711. }
  6712. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  6713. int x[] = {25, 17};
  6714. const int *foo = &x[0];
  6715. ++foo;
  6716. }
  6717. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  6718. typedef const int *iptr;
  6719. iptr p = 0;
  6720. ++p;
  6721. }
  6722. { /* AIX XL C 1.02.0.0 rejects this saying
  6723. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  6724. struct s { int j; const int *ap[3]; };
  6725. struct s *b; b->j = 5;
  6726. }
  6727. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  6728. const int foo = 10;
  6729. }
  6730. #endif
  6731. ;
  6732. return 0;
  6733. }
  6734. _ACEOF
  6735. rm -f conftest.$ac_objext
  6736. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6737. (eval $ac_compile) 2>conftest.er1
  6738. ac_status=$?
  6739. grep -v '^ *+' conftest.er1 >conftest.err
  6740. rm -f conftest.er1
  6741. cat conftest.err >&5
  6742. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6743. (exit $ac_status); } &&
  6744. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6745. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6746. (eval $ac_try) 2>&5
  6747. ac_status=$?
  6748. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6749. (exit $ac_status); }; } &&
  6750. { ac_try='test -s conftest.$ac_objext'
  6751. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6752. (eval $ac_try) 2>&5
  6753. ac_status=$?
  6754. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6755. (exit $ac_status); }; }; then
  6756. ac_cv_c_const=yes
  6757. else
  6758. echo "$as_me: failed program was:" >&5
  6759. sed 's/^/| /' conftest.$ac_ext >&5
  6760. ac_cv_c_const=no
  6761. fi
  6762. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6763. fi
  6764. echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  6765. echo "${ECHO_T}$ac_cv_c_const" >&6
  6766. if test $ac_cv_c_const = no; then
  6767. cat >>confdefs.h <<\_ACEOF
  6768. #define const
  6769. _ACEOF
  6770. fi
  6771. echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  6772. echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
  6773. if test "${ac_cv_c_bigendian+set}" = set; then
  6774. echo $ECHO_N "(cached) $ECHO_C" >&6
  6775. else
  6776. # See if sys/param.h defines the BYTE_ORDER macro.
  6777. cat >conftest.$ac_ext <<_ACEOF
  6778. /* confdefs.h. */
  6779. _ACEOF
  6780. cat confdefs.h >>conftest.$ac_ext
  6781. cat >>conftest.$ac_ext <<_ACEOF
  6782. /* end confdefs.h. */
  6783. #include <sys/types.h>
  6784. #include <sys/param.h>
  6785. int
  6786. main ()
  6787. {
  6788. #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
  6789. bogus endian macros
  6790. #endif
  6791. ;
  6792. return 0;
  6793. }
  6794. _ACEOF
  6795. rm -f conftest.$ac_objext
  6796. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6797. (eval $ac_compile) 2>conftest.er1
  6798. ac_status=$?
  6799. grep -v '^ *+' conftest.er1 >conftest.err
  6800. rm -f conftest.er1
  6801. cat conftest.err >&5
  6802. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6803. (exit $ac_status); } &&
  6804. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6805. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6806. (eval $ac_try) 2>&5
  6807. ac_status=$?
  6808. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6809. (exit $ac_status); }; } &&
  6810. { ac_try='test -s conftest.$ac_objext'
  6811. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6812. (eval $ac_try) 2>&5
  6813. ac_status=$?
  6814. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6815. (exit $ac_status); }; }; then
  6816. # It does; now see whether it defined to BIG_ENDIAN or not.
  6817. cat >conftest.$ac_ext <<_ACEOF
  6818. /* confdefs.h. */
  6819. _ACEOF
  6820. cat confdefs.h >>conftest.$ac_ext
  6821. cat >>conftest.$ac_ext <<_ACEOF
  6822. /* end confdefs.h. */
  6823. #include <sys/types.h>
  6824. #include <sys/param.h>
  6825. int
  6826. main ()
  6827. {
  6828. #if BYTE_ORDER != BIG_ENDIAN
  6829. not big endian
  6830. #endif
  6831. ;
  6832. return 0;
  6833. }
  6834. _ACEOF
  6835. rm -f conftest.$ac_objext
  6836. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6837. (eval $ac_compile) 2>conftest.er1
  6838. ac_status=$?
  6839. grep -v '^ *+' conftest.er1 >conftest.err
  6840. rm -f conftest.er1
  6841. cat conftest.err >&5
  6842. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6843. (exit $ac_status); } &&
  6844. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6845. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6846. (eval $ac_try) 2>&5
  6847. ac_status=$?
  6848. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6849. (exit $ac_status); }; } &&
  6850. { ac_try='test -s conftest.$ac_objext'
  6851. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6852. (eval $ac_try) 2>&5
  6853. ac_status=$?
  6854. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6855. (exit $ac_status); }; }; then
  6856. ac_cv_c_bigendian=yes
  6857. else
  6858. echo "$as_me: failed program was:" >&5
  6859. sed 's/^/| /' conftest.$ac_ext >&5
  6860. ac_cv_c_bigendian=no
  6861. fi
  6862. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6863. else
  6864. echo "$as_me: failed program was:" >&5
  6865. sed 's/^/| /' conftest.$ac_ext >&5
  6866. # It does not; compile a test program.
  6867. if test "$cross_compiling" = yes; then
  6868. # try to guess the endianness by grepping values into an object file
  6869. ac_cv_c_bigendian=unknown
  6870. cat >conftest.$ac_ext <<_ACEOF
  6871. /* confdefs.h. */
  6872. _ACEOF
  6873. cat confdefs.h >>conftest.$ac_ext
  6874. cat >>conftest.$ac_ext <<_ACEOF
  6875. /* end confdefs.h. */
  6876. short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  6877. short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  6878. void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
  6879. short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  6880. short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  6881. void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
  6882. int
  6883. main ()
  6884. {
  6885. _ascii (); _ebcdic ();
  6886. ;
  6887. return 0;
  6888. }
  6889. _ACEOF
  6890. rm -f conftest.$ac_objext
  6891. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6892. (eval $ac_compile) 2>conftest.er1
  6893. ac_status=$?
  6894. grep -v '^ *+' conftest.er1 >conftest.err
  6895. rm -f conftest.er1
  6896. cat conftest.err >&5
  6897. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6898. (exit $ac_status); } &&
  6899. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6900. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6901. (eval $ac_try) 2>&5
  6902. ac_status=$?
  6903. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6904. (exit $ac_status); }; } &&
  6905. { ac_try='test -s conftest.$ac_objext'
  6906. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6907. (eval $ac_try) 2>&5
  6908. ac_status=$?
  6909. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6910. (exit $ac_status); }; }; then
  6911. if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  6912. ac_cv_c_bigendian=yes
  6913. fi
  6914. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  6915. if test "$ac_cv_c_bigendian" = unknown; then
  6916. ac_cv_c_bigendian=no
  6917. else
  6918. # finding both strings is unlikely to happen, but who knows?
  6919. ac_cv_c_bigendian=unknown
  6920. fi
  6921. fi
  6922. else
  6923. echo "$as_me: failed program was:" >&5
  6924. sed 's/^/| /' conftest.$ac_ext >&5
  6925. fi
  6926. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6927. else
  6928. cat >conftest.$ac_ext <<_ACEOF
  6929. /* confdefs.h. */
  6930. _ACEOF
  6931. cat confdefs.h >>conftest.$ac_ext
  6932. cat >>conftest.$ac_ext <<_ACEOF
  6933. /* end confdefs.h. */
  6934. int
  6935. main ()
  6936. {
  6937. /* Are we little or big endian? From Harbison&Steele. */
  6938. union
  6939. {
  6940. long l;
  6941. char c[sizeof (long)];
  6942. } u;
  6943. u.l = 1;
  6944. exit (u.c[sizeof (long) - 1] == 1);
  6945. }
  6946. _ACEOF
  6947. rm -f conftest$ac_exeext
  6948. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6949. (eval $ac_link) 2>&5
  6950. ac_status=$?
  6951. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6952. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6953. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6954. (eval $ac_try) 2>&5
  6955. ac_status=$?
  6956. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6957. (exit $ac_status); }; }; then
  6958. ac_cv_c_bigendian=no
  6959. else
  6960. echo "$as_me: program exited with status $ac_status" >&5
  6961. echo "$as_me: failed program was:" >&5
  6962. sed 's/^/| /' conftest.$ac_ext >&5
  6963. ( exit $ac_status )
  6964. ac_cv_c_bigendian=yes
  6965. fi
  6966. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6967. fi
  6968. fi
  6969. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6970. fi
  6971. echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  6972. echo "${ECHO_T}$ac_cv_c_bigendian" >&6
  6973. case $ac_cv_c_bigendian in
  6974. yes)
  6975. cat >>confdefs.h <<\_ACEOF
  6976. #define WORDS_BIGENDIAN 1
  6977. _ACEOF
  6978. ;;
  6979. no)
  6980. ;;
  6981. *)
  6982. { { echo "$as_me:$LINENO: error: unknown endianness
  6983. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  6984. echo "$as_me: error: unknown endianness
  6985. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  6986. { (exit 1); exit 1; }; } ;;
  6987. esac
  6988. echo "$as_me:$LINENO: checking for inline" >&5
  6989. echo $ECHO_N "checking for inline... $ECHO_C" >&6
  6990. if test "${ac_cv_c_inline+set}" = set; then
  6991. echo $ECHO_N "(cached) $ECHO_C" >&6
  6992. else
  6993. ac_cv_c_inline=no
  6994. for ac_kw in inline __inline__ __inline; do
  6995. cat >conftest.$ac_ext <<_ACEOF
  6996. /* confdefs.h. */
  6997. _ACEOF
  6998. cat confdefs.h >>conftest.$ac_ext
  6999. cat >>conftest.$ac_ext <<_ACEOF
  7000. /* end confdefs.h. */
  7001. #ifndef __cplusplus
  7002. typedef int foo_t;
  7003. static $ac_kw foo_t static_foo () {return 0; }
  7004. $ac_kw foo_t foo () {return 0; }
  7005. #endif
  7006. _ACEOF
  7007. rm -f conftest.$ac_objext
  7008. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7009. (eval $ac_compile) 2>conftest.er1
  7010. ac_status=$?
  7011. grep -v '^ *+' conftest.er1 >conftest.err
  7012. rm -f conftest.er1
  7013. cat conftest.err >&5
  7014. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7015. (exit $ac_status); } &&
  7016. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7017. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7018. (eval $ac_try) 2>&5
  7019. ac_status=$?
  7020. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7021. (exit $ac_status); }; } &&
  7022. { ac_try='test -s conftest.$ac_objext'
  7023. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7024. (eval $ac_try) 2>&5
  7025. ac_status=$?
  7026. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7027. (exit $ac_status); }; }; then
  7028. ac_cv_c_inline=$ac_kw; break
  7029. else
  7030. echo "$as_me: failed program was:" >&5
  7031. sed 's/^/| /' conftest.$ac_ext >&5
  7032. fi
  7033. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7034. done
  7035. fi
  7036. echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  7037. echo "${ECHO_T}$ac_cv_c_inline" >&6
  7038. case $ac_cv_c_inline in
  7039. inline | yes) ;;
  7040. *)
  7041. case $ac_cv_c_inline in
  7042. no) ac_val=;;
  7043. *) ac_val=$ac_cv_c_inline;;
  7044. esac
  7045. cat >>confdefs.h <<_ACEOF
  7046. #ifndef __cplusplus
  7047. #define inline $ac_val
  7048. #endif
  7049. _ACEOF
  7050. ;;
  7051. esac
  7052. echo "$as_me:$LINENO: checking for long" >&5
  7053. echo $ECHO_N "checking for long... $ECHO_C" >&6
  7054. if test "${ac_cv_type_long+set}" = set; then
  7055. echo $ECHO_N "(cached) $ECHO_C" >&6
  7056. else
  7057. cat >conftest.$ac_ext <<_ACEOF
  7058. /* confdefs.h. */
  7059. _ACEOF
  7060. cat confdefs.h >>conftest.$ac_ext
  7061. cat >>conftest.$ac_ext <<_ACEOF
  7062. /* end confdefs.h. */
  7063. $ac_includes_default
  7064. int
  7065. main ()
  7066. {
  7067. if ((long *) 0)
  7068. return 0;
  7069. if (sizeof (long))
  7070. return 0;
  7071. ;
  7072. return 0;
  7073. }
  7074. _ACEOF
  7075. rm -f conftest.$ac_objext
  7076. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7077. (eval $ac_compile) 2>conftest.er1
  7078. ac_status=$?
  7079. grep -v '^ *+' conftest.er1 >conftest.err
  7080. rm -f conftest.er1
  7081. cat conftest.err >&5
  7082. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7083. (exit $ac_status); } &&
  7084. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7085. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7086. (eval $ac_try) 2>&5
  7087. ac_status=$?
  7088. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7089. (exit $ac_status); }; } &&
  7090. { ac_try='test -s conftest.$ac_objext'
  7091. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7092. (eval $ac_try) 2>&5
  7093. ac_status=$?
  7094. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7095. (exit $ac_status); }; }; then
  7096. ac_cv_type_long=yes
  7097. else
  7098. echo "$as_me: failed program was:" >&5
  7099. sed 's/^/| /' conftest.$ac_ext >&5
  7100. ac_cv_type_long=no
  7101. fi
  7102. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7103. fi
  7104. echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
  7105. echo "${ECHO_T}$ac_cv_type_long" >&6
  7106. echo "$as_me:$LINENO: checking size of long" >&5
  7107. echo $ECHO_N "checking size of long... $ECHO_C" >&6
  7108. if test "${ac_cv_sizeof_long+set}" = set; then
  7109. echo $ECHO_N "(cached) $ECHO_C" >&6
  7110. else
  7111. if test "$ac_cv_type_long" = yes; then
  7112. # The cast to unsigned long works around a bug in the HP C Compiler
  7113. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  7114. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  7115. # This bug is HP SR number 8606223364.
  7116. if test "$cross_compiling" = yes; then
  7117. # Depending upon the size, compute the lo and hi bounds.
  7118. cat >conftest.$ac_ext <<_ACEOF
  7119. /* confdefs.h. */
  7120. _ACEOF
  7121. cat confdefs.h >>conftest.$ac_ext
  7122. cat >>conftest.$ac_ext <<_ACEOF
  7123. /* end confdefs.h. */
  7124. $ac_includes_default
  7125. int
  7126. main ()
  7127. {
  7128. static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
  7129. test_array [0] = 0
  7130. ;
  7131. return 0;
  7132. }
  7133. _ACEOF
  7134. rm -f conftest.$ac_objext
  7135. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7136. (eval $ac_compile) 2>conftest.er1
  7137. ac_status=$?
  7138. grep -v '^ *+' conftest.er1 >conftest.err
  7139. rm -f conftest.er1
  7140. cat conftest.err >&5
  7141. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7142. (exit $ac_status); } &&
  7143. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7144. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7145. (eval $ac_try) 2>&5
  7146. ac_status=$?
  7147. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7148. (exit $ac_status); }; } &&
  7149. { ac_try='test -s conftest.$ac_objext'
  7150. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7151. (eval $ac_try) 2>&5
  7152. ac_status=$?
  7153. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7154. (exit $ac_status); }; }; then
  7155. ac_lo=0 ac_mid=0
  7156. while :; do
  7157. cat >conftest.$ac_ext <<_ACEOF
  7158. /* confdefs.h. */
  7159. _ACEOF
  7160. cat confdefs.h >>conftest.$ac_ext
  7161. cat >>conftest.$ac_ext <<_ACEOF
  7162. /* end confdefs.h. */
  7163. $ac_includes_default
  7164. int
  7165. main ()
  7166. {
  7167. static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  7168. test_array [0] = 0
  7169. ;
  7170. return 0;
  7171. }
  7172. _ACEOF
  7173. rm -f conftest.$ac_objext
  7174. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7175. (eval $ac_compile) 2>conftest.er1
  7176. ac_status=$?
  7177. grep -v '^ *+' conftest.er1 >conftest.err
  7178. rm -f conftest.er1
  7179. cat conftest.err >&5
  7180. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7181. (exit $ac_status); } &&
  7182. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7183. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7184. (eval $ac_try) 2>&5
  7185. ac_status=$?
  7186. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7187. (exit $ac_status); }; } &&
  7188. { ac_try='test -s conftest.$ac_objext'
  7189. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7190. (eval $ac_try) 2>&5
  7191. ac_status=$?
  7192. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7193. (exit $ac_status); }; }; then
  7194. ac_hi=$ac_mid; break
  7195. else
  7196. echo "$as_me: failed program was:" >&5
  7197. sed 's/^/| /' conftest.$ac_ext >&5
  7198. ac_lo=`expr $ac_mid + 1`
  7199. if test $ac_lo -le $ac_mid; then
  7200. ac_lo= ac_hi=
  7201. break
  7202. fi
  7203. ac_mid=`expr 2 '*' $ac_mid + 1`
  7204. fi
  7205. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7206. done
  7207. else
  7208. echo "$as_me: failed program was:" >&5
  7209. sed 's/^/| /' conftest.$ac_ext >&5
  7210. cat >conftest.$ac_ext <<_ACEOF
  7211. /* confdefs.h. */
  7212. _ACEOF
  7213. cat confdefs.h >>conftest.$ac_ext
  7214. cat >>conftest.$ac_ext <<_ACEOF
  7215. /* end confdefs.h. */
  7216. $ac_includes_default
  7217. int
  7218. main ()
  7219. {
  7220. static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
  7221. test_array [0] = 0
  7222. ;
  7223. return 0;
  7224. }
  7225. _ACEOF
  7226. rm -f conftest.$ac_objext
  7227. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7228. (eval $ac_compile) 2>conftest.er1
  7229. ac_status=$?
  7230. grep -v '^ *+' conftest.er1 >conftest.err
  7231. rm -f conftest.er1
  7232. cat conftest.err >&5
  7233. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7234. (exit $ac_status); } &&
  7235. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7236. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7237. (eval $ac_try) 2>&5
  7238. ac_status=$?
  7239. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7240. (exit $ac_status); }; } &&
  7241. { ac_try='test -s conftest.$ac_objext'
  7242. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7243. (eval $ac_try) 2>&5
  7244. ac_status=$?
  7245. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7246. (exit $ac_status); }; }; then
  7247. ac_hi=-1 ac_mid=-1
  7248. while :; do
  7249. cat >conftest.$ac_ext <<_ACEOF
  7250. /* confdefs.h. */
  7251. _ACEOF
  7252. cat confdefs.h >>conftest.$ac_ext
  7253. cat >>conftest.$ac_ext <<_ACEOF
  7254. /* end confdefs.h. */
  7255. $ac_includes_default
  7256. int
  7257. main ()
  7258. {
  7259. static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
  7260. test_array [0] = 0
  7261. ;
  7262. return 0;
  7263. }
  7264. _ACEOF
  7265. rm -f conftest.$ac_objext
  7266. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7267. (eval $ac_compile) 2>conftest.er1
  7268. ac_status=$?
  7269. grep -v '^ *+' conftest.er1 >conftest.err
  7270. rm -f conftest.er1
  7271. cat conftest.err >&5
  7272. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7273. (exit $ac_status); } &&
  7274. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7275. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7276. (eval $ac_try) 2>&5
  7277. ac_status=$?
  7278. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7279. (exit $ac_status); }; } &&
  7280. { ac_try='test -s conftest.$ac_objext'
  7281. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7282. (eval $ac_try) 2>&5
  7283. ac_status=$?
  7284. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7285. (exit $ac_status); }; }; then
  7286. ac_lo=$ac_mid; break
  7287. else
  7288. echo "$as_me: failed program was:" >&5
  7289. sed 's/^/| /' conftest.$ac_ext >&5
  7290. ac_hi=`expr '(' $ac_mid ')' - 1`
  7291. if test $ac_mid -le $ac_hi; then
  7292. ac_lo= ac_hi=
  7293. break
  7294. fi
  7295. ac_mid=`expr 2 '*' $ac_mid`
  7296. fi
  7297. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7298. done
  7299. else
  7300. echo "$as_me: failed program was:" >&5
  7301. sed 's/^/| /' conftest.$ac_ext >&5
  7302. ac_lo= ac_hi=
  7303. fi
  7304. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7305. fi
  7306. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7307. # Binary search between lo and hi bounds.
  7308. while test "x$ac_lo" != "x$ac_hi"; do
  7309. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  7310. cat >conftest.$ac_ext <<_ACEOF
  7311. /* confdefs.h. */
  7312. _ACEOF
  7313. cat confdefs.h >>conftest.$ac_ext
  7314. cat >>conftest.$ac_ext <<_ACEOF
  7315. /* end confdefs.h. */
  7316. $ac_includes_default
  7317. int
  7318. main ()
  7319. {
  7320. static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  7321. test_array [0] = 0
  7322. ;
  7323. return 0;
  7324. }
  7325. _ACEOF
  7326. rm -f conftest.$ac_objext
  7327. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7328. (eval $ac_compile) 2>conftest.er1
  7329. ac_status=$?
  7330. grep -v '^ *+' conftest.er1 >conftest.err
  7331. rm -f conftest.er1
  7332. cat conftest.err >&5
  7333. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7334. (exit $ac_status); } &&
  7335. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7336. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7337. (eval $ac_try) 2>&5
  7338. ac_status=$?
  7339. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7340. (exit $ac_status); }; } &&
  7341. { ac_try='test -s conftest.$ac_objext'
  7342. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7343. (eval $ac_try) 2>&5
  7344. ac_status=$?
  7345. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7346. (exit $ac_status); }; }; then
  7347. ac_hi=$ac_mid
  7348. else
  7349. echo "$as_me: failed program was:" >&5
  7350. sed 's/^/| /' conftest.$ac_ext >&5
  7351. ac_lo=`expr '(' $ac_mid ')' + 1`
  7352. fi
  7353. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7354. done
  7355. case $ac_lo in
  7356. ?*) ac_cv_sizeof_long=$ac_lo;;
  7357. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  7358. See \`config.log' for more details." >&5
  7359. echo "$as_me: error: cannot compute sizeof (long), 77
  7360. See \`config.log' for more details." >&2;}
  7361. { (exit 1); exit 1; }; } ;;
  7362. esac
  7363. else
  7364. if test "$cross_compiling" = yes; then
  7365. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  7366. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  7367. { (exit 1); exit 1; }; }
  7368. else
  7369. cat >conftest.$ac_ext <<_ACEOF
  7370. /* confdefs.h. */
  7371. _ACEOF
  7372. cat confdefs.h >>conftest.$ac_ext
  7373. cat >>conftest.$ac_ext <<_ACEOF
  7374. /* end confdefs.h. */
  7375. $ac_includes_default
  7376. long longval () { return (long) (sizeof (long)); }
  7377. unsigned long ulongval () { return (long) (sizeof (long)); }
  7378. #include <stdio.h>
  7379. #include <stdlib.h>
  7380. int
  7381. main ()
  7382. {
  7383. FILE *f = fopen ("conftest.val", "w");
  7384. if (! f)
  7385. exit (1);
  7386. if (((long) (sizeof (long))) < 0)
  7387. {
  7388. long i = longval ();
  7389. if (i != ((long) (sizeof (long))))
  7390. exit (1);
  7391. fprintf (f, "%ld\n", i);
  7392. }
  7393. else
  7394. {
  7395. unsigned long i = ulongval ();
  7396. if (i != ((long) (sizeof (long))))
  7397. exit (1);
  7398. fprintf (f, "%lu\n", i);
  7399. }
  7400. exit (ferror (f) || fclose (f) != 0);
  7401. ;
  7402. return 0;
  7403. }
  7404. _ACEOF
  7405. rm -f conftest$ac_exeext
  7406. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7407. (eval $ac_link) 2>&5
  7408. ac_status=$?
  7409. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7410. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7411. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7412. (eval $ac_try) 2>&5
  7413. ac_status=$?
  7414. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7415. (exit $ac_status); }; }; then
  7416. ac_cv_sizeof_long=`cat conftest.val`
  7417. else
  7418. echo "$as_me: program exited with status $ac_status" >&5
  7419. echo "$as_me: failed program was:" >&5
  7420. sed 's/^/| /' conftest.$ac_ext >&5
  7421. ( exit $ac_status )
  7422. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  7423. See \`config.log' for more details." >&5
  7424. echo "$as_me: error: cannot compute sizeof (long), 77
  7425. See \`config.log' for more details." >&2;}
  7426. { (exit 1); exit 1; }; }
  7427. fi
  7428. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7429. fi
  7430. fi
  7431. rm -f conftest.val
  7432. else
  7433. ac_cv_sizeof_long=0
  7434. fi
  7435. fi
  7436. echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  7437. echo "${ECHO_T}$ac_cv_sizeof_long" >&6
  7438. cat >>confdefs.h <<_ACEOF
  7439. #define SIZEOF_LONG $ac_cv_sizeof_long
  7440. _ACEOF
  7441. echo "$as_me:$LINENO: checking for int" >&5
  7442. echo $ECHO_N "checking for int... $ECHO_C" >&6
  7443. if test "${ac_cv_type_int+set}" = set; then
  7444. echo $ECHO_N "(cached) $ECHO_C" >&6
  7445. else
  7446. cat >conftest.$ac_ext <<_ACEOF
  7447. /* confdefs.h. */
  7448. _ACEOF
  7449. cat confdefs.h >>conftest.$ac_ext
  7450. cat >>conftest.$ac_ext <<_ACEOF
  7451. /* end confdefs.h. */
  7452. $ac_includes_default
  7453. int
  7454. main ()
  7455. {
  7456. if ((int *) 0)
  7457. return 0;
  7458. if (sizeof (int))
  7459. return 0;
  7460. ;
  7461. return 0;
  7462. }
  7463. _ACEOF
  7464. rm -f conftest.$ac_objext
  7465. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7466. (eval $ac_compile) 2>conftest.er1
  7467. ac_status=$?
  7468. grep -v '^ *+' conftest.er1 >conftest.err
  7469. rm -f conftest.er1
  7470. cat conftest.err >&5
  7471. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7472. (exit $ac_status); } &&
  7473. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7474. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7475. (eval $ac_try) 2>&5
  7476. ac_status=$?
  7477. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7478. (exit $ac_status); }; } &&
  7479. { ac_try='test -s conftest.$ac_objext'
  7480. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7481. (eval $ac_try) 2>&5
  7482. ac_status=$?
  7483. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7484. (exit $ac_status); }; }; then
  7485. ac_cv_type_int=yes
  7486. else
  7487. echo "$as_me: failed program was:" >&5
  7488. sed 's/^/| /' conftest.$ac_ext >&5
  7489. ac_cv_type_int=no
  7490. fi
  7491. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7492. fi
  7493. echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
  7494. echo "${ECHO_T}$ac_cv_type_int" >&6
  7495. echo "$as_me:$LINENO: checking size of int" >&5
  7496. echo $ECHO_N "checking size of int... $ECHO_C" >&6
  7497. if test "${ac_cv_sizeof_int+set}" = set; then
  7498. echo $ECHO_N "(cached) $ECHO_C" >&6
  7499. else
  7500. if test "$ac_cv_type_int" = yes; then
  7501. # The cast to unsigned long works around a bug in the HP C Compiler
  7502. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  7503. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  7504. # This bug is HP SR number 8606223364.
  7505. if test "$cross_compiling" = yes; then
  7506. # Depending upon the size, compute the lo and hi bounds.
  7507. cat >conftest.$ac_ext <<_ACEOF
  7508. /* confdefs.h. */
  7509. _ACEOF
  7510. cat confdefs.h >>conftest.$ac_ext
  7511. cat >>conftest.$ac_ext <<_ACEOF
  7512. /* end confdefs.h. */
  7513. $ac_includes_default
  7514. int
  7515. main ()
  7516. {
  7517. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
  7518. test_array [0] = 0
  7519. ;
  7520. return 0;
  7521. }
  7522. _ACEOF
  7523. rm -f conftest.$ac_objext
  7524. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7525. (eval $ac_compile) 2>conftest.er1
  7526. ac_status=$?
  7527. grep -v '^ *+' conftest.er1 >conftest.err
  7528. rm -f conftest.er1
  7529. cat conftest.err >&5
  7530. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7531. (exit $ac_status); } &&
  7532. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7533. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7534. (eval $ac_try) 2>&5
  7535. ac_status=$?
  7536. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7537. (exit $ac_status); }; } &&
  7538. { ac_try='test -s conftest.$ac_objext'
  7539. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7540. (eval $ac_try) 2>&5
  7541. ac_status=$?
  7542. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7543. (exit $ac_status); }; }; then
  7544. ac_lo=0 ac_mid=0
  7545. while :; do
  7546. cat >conftest.$ac_ext <<_ACEOF
  7547. /* confdefs.h. */
  7548. _ACEOF
  7549. cat confdefs.h >>conftest.$ac_ext
  7550. cat >>conftest.$ac_ext <<_ACEOF
  7551. /* end confdefs.h. */
  7552. $ac_includes_default
  7553. int
  7554. main ()
  7555. {
  7556. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  7557. test_array [0] = 0
  7558. ;
  7559. return 0;
  7560. }
  7561. _ACEOF
  7562. rm -f conftest.$ac_objext
  7563. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7564. (eval $ac_compile) 2>conftest.er1
  7565. ac_status=$?
  7566. grep -v '^ *+' conftest.er1 >conftest.err
  7567. rm -f conftest.er1
  7568. cat conftest.err >&5
  7569. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7570. (exit $ac_status); } &&
  7571. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7572. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7573. (eval $ac_try) 2>&5
  7574. ac_status=$?
  7575. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7576. (exit $ac_status); }; } &&
  7577. { ac_try='test -s conftest.$ac_objext'
  7578. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7579. (eval $ac_try) 2>&5
  7580. ac_status=$?
  7581. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7582. (exit $ac_status); }; }; then
  7583. ac_hi=$ac_mid; break
  7584. else
  7585. echo "$as_me: failed program was:" >&5
  7586. sed 's/^/| /' conftest.$ac_ext >&5
  7587. ac_lo=`expr $ac_mid + 1`
  7588. if test $ac_lo -le $ac_mid; then
  7589. ac_lo= ac_hi=
  7590. break
  7591. fi
  7592. ac_mid=`expr 2 '*' $ac_mid + 1`
  7593. fi
  7594. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7595. done
  7596. else
  7597. echo "$as_me: failed program was:" >&5
  7598. sed 's/^/| /' conftest.$ac_ext >&5
  7599. cat >conftest.$ac_ext <<_ACEOF
  7600. /* confdefs.h. */
  7601. _ACEOF
  7602. cat confdefs.h >>conftest.$ac_ext
  7603. cat >>conftest.$ac_ext <<_ACEOF
  7604. /* end confdefs.h. */
  7605. $ac_includes_default
  7606. int
  7607. main ()
  7608. {
  7609. static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
  7610. test_array [0] = 0
  7611. ;
  7612. return 0;
  7613. }
  7614. _ACEOF
  7615. rm -f conftest.$ac_objext
  7616. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7617. (eval $ac_compile) 2>conftest.er1
  7618. ac_status=$?
  7619. grep -v '^ *+' conftest.er1 >conftest.err
  7620. rm -f conftest.er1
  7621. cat conftest.err >&5
  7622. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7623. (exit $ac_status); } &&
  7624. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7625. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7626. (eval $ac_try) 2>&5
  7627. ac_status=$?
  7628. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7629. (exit $ac_status); }; } &&
  7630. { ac_try='test -s conftest.$ac_objext'
  7631. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7632. (eval $ac_try) 2>&5
  7633. ac_status=$?
  7634. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7635. (exit $ac_status); }; }; then
  7636. ac_hi=-1 ac_mid=-1
  7637. while :; do
  7638. cat >conftest.$ac_ext <<_ACEOF
  7639. /* confdefs.h. */
  7640. _ACEOF
  7641. cat confdefs.h >>conftest.$ac_ext
  7642. cat >>conftest.$ac_ext <<_ACEOF
  7643. /* end confdefs.h. */
  7644. $ac_includes_default
  7645. int
  7646. main ()
  7647. {
  7648. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
  7649. test_array [0] = 0
  7650. ;
  7651. return 0;
  7652. }
  7653. _ACEOF
  7654. rm -f conftest.$ac_objext
  7655. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7656. (eval $ac_compile) 2>conftest.er1
  7657. ac_status=$?
  7658. grep -v '^ *+' conftest.er1 >conftest.err
  7659. rm -f conftest.er1
  7660. cat conftest.err >&5
  7661. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7662. (exit $ac_status); } &&
  7663. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7664. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7665. (eval $ac_try) 2>&5
  7666. ac_status=$?
  7667. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7668. (exit $ac_status); }; } &&
  7669. { ac_try='test -s conftest.$ac_objext'
  7670. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7671. (eval $ac_try) 2>&5
  7672. ac_status=$?
  7673. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7674. (exit $ac_status); }; }; then
  7675. ac_lo=$ac_mid; break
  7676. else
  7677. echo "$as_me: failed program was:" >&5
  7678. sed 's/^/| /' conftest.$ac_ext >&5
  7679. ac_hi=`expr '(' $ac_mid ')' - 1`
  7680. if test $ac_mid -le $ac_hi; then
  7681. ac_lo= ac_hi=
  7682. break
  7683. fi
  7684. ac_mid=`expr 2 '*' $ac_mid`
  7685. fi
  7686. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7687. done
  7688. else
  7689. echo "$as_me: failed program was:" >&5
  7690. sed 's/^/| /' conftest.$ac_ext >&5
  7691. ac_lo= ac_hi=
  7692. fi
  7693. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7694. fi
  7695. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7696. # Binary search between lo and hi bounds.
  7697. while test "x$ac_lo" != "x$ac_hi"; do
  7698. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  7699. cat >conftest.$ac_ext <<_ACEOF
  7700. /* confdefs.h. */
  7701. _ACEOF
  7702. cat confdefs.h >>conftest.$ac_ext
  7703. cat >>conftest.$ac_ext <<_ACEOF
  7704. /* end confdefs.h. */
  7705. $ac_includes_default
  7706. int
  7707. main ()
  7708. {
  7709. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  7710. test_array [0] = 0
  7711. ;
  7712. return 0;
  7713. }
  7714. _ACEOF
  7715. rm -f conftest.$ac_objext
  7716. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7717. (eval $ac_compile) 2>conftest.er1
  7718. ac_status=$?
  7719. grep -v '^ *+' conftest.er1 >conftest.err
  7720. rm -f conftest.er1
  7721. cat conftest.err >&5
  7722. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7723. (exit $ac_status); } &&
  7724. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7725. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7726. (eval $ac_try) 2>&5
  7727. ac_status=$?
  7728. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7729. (exit $ac_status); }; } &&
  7730. { ac_try='test -s conftest.$ac_objext'
  7731. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7732. (eval $ac_try) 2>&5
  7733. ac_status=$?
  7734. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7735. (exit $ac_status); }; }; then
  7736. ac_hi=$ac_mid
  7737. else
  7738. echo "$as_me: failed program was:" >&5
  7739. sed 's/^/| /' conftest.$ac_ext >&5
  7740. ac_lo=`expr '(' $ac_mid ')' + 1`
  7741. fi
  7742. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7743. done
  7744. case $ac_lo in
  7745. ?*) ac_cv_sizeof_int=$ac_lo;;
  7746. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  7747. See \`config.log' for more details." >&5
  7748. echo "$as_me: error: cannot compute sizeof (int), 77
  7749. See \`config.log' for more details." >&2;}
  7750. { (exit 1); exit 1; }; } ;;
  7751. esac
  7752. else
  7753. if test "$cross_compiling" = yes; then
  7754. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  7755. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  7756. { (exit 1); exit 1; }; }
  7757. else
  7758. cat >conftest.$ac_ext <<_ACEOF
  7759. /* confdefs.h. */
  7760. _ACEOF
  7761. cat confdefs.h >>conftest.$ac_ext
  7762. cat >>conftest.$ac_ext <<_ACEOF
  7763. /* end confdefs.h. */
  7764. $ac_includes_default
  7765. long longval () { return (long) (sizeof (int)); }
  7766. unsigned long ulongval () { return (long) (sizeof (int)); }
  7767. #include <stdio.h>
  7768. #include <stdlib.h>
  7769. int
  7770. main ()
  7771. {
  7772. FILE *f = fopen ("conftest.val", "w");
  7773. if (! f)
  7774. exit (1);
  7775. if (((long) (sizeof (int))) < 0)
  7776. {
  7777. long i = longval ();
  7778. if (i != ((long) (sizeof (int))))
  7779. exit (1);
  7780. fprintf (f, "%ld\n", i);
  7781. }
  7782. else
  7783. {
  7784. unsigned long i = ulongval ();
  7785. if (i != ((long) (sizeof (int))))
  7786. exit (1);
  7787. fprintf (f, "%lu\n", i);
  7788. }
  7789. exit (ferror (f) || fclose (f) != 0);
  7790. ;
  7791. return 0;
  7792. }
  7793. _ACEOF
  7794. rm -f conftest$ac_exeext
  7795. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7796. (eval $ac_link) 2>&5
  7797. ac_status=$?
  7798. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7799. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7800. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7801. (eval $ac_try) 2>&5
  7802. ac_status=$?
  7803. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7804. (exit $ac_status); }; }; then
  7805. ac_cv_sizeof_int=`cat conftest.val`
  7806. else
  7807. echo "$as_me: program exited with status $ac_status" >&5
  7808. echo "$as_me: failed program was:" >&5
  7809. sed 's/^/| /' conftest.$ac_ext >&5
  7810. ( exit $ac_status )
  7811. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  7812. See \`config.log' for more details." >&5
  7813. echo "$as_me: error: cannot compute sizeof (int), 77
  7814. See \`config.log' for more details." >&2;}
  7815. { (exit 1); exit 1; }; }
  7816. fi
  7817. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7818. fi
  7819. fi
  7820. rm -f conftest.val
  7821. else
  7822. ac_cv_sizeof_int=0
  7823. fi
  7824. fi
  7825. echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
  7826. echo "${ECHO_T}$ac_cv_sizeof_int" >&6
  7827. cat >>confdefs.h <<_ACEOF
  7828. #define SIZEOF_INT $ac_cv_sizeof_int
  7829. _ACEOF
  7830. #checkpoint
  7831. cat >confcache <<\_ACEOF
  7832. # This file is a shell script that caches the results of configure
  7833. # tests run on this system so they can be shared between configure
  7834. # scripts and configure runs, see configure's option --config-cache.
  7835. # It is not useful on other systems. If it contains results you don't
  7836. # want to keep, you may remove or edit it.
  7837. #
  7838. # config.status only pays attention to the cache file if you give it
  7839. # the --recheck option to rerun configure.
  7840. #
  7841. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7842. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7843. # following values.
  7844. _ACEOF
  7845. # The following way of writing the cache mishandles newlines in values,
  7846. # but we know of no workaround that is simple, portable, and efficient.
  7847. # So, don't put newlines in cache variables' values.
  7848. # Ultrix sh set writes to stderr and can't be redirected directly,
  7849. # and sets the high bit in the cache file unless we assign to the vars.
  7850. {
  7851. (set) 2>&1 |
  7852. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  7853. *ac_space=\ *)
  7854. # `set' does not quote correctly, so add quotes (double-quote
  7855. # substitution turns \\\\ into \\, and sed turns \\ into \).
  7856. sed -n \
  7857. "s/'/'\\\\''/g;
  7858. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7859. ;;
  7860. *)
  7861. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7862. sed -n \
  7863. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  7864. ;;
  7865. esac;
  7866. } |
  7867. sed '
  7868. t clear
  7869. : clear
  7870. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7871. t end
  7872. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7873. : end' >>confcache
  7874. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  7875. if test -w $cache_file; then
  7876. test "x$cache_file" != "x/dev/null"
  7877. cat confcache >$cache_file
  7878. else
  7879. echo "not updating unwritable cache $cache_file"
  7880. fi
  7881. fi
  7882. rm -f confcache
  7883. echo "$as_me:$LINENO: checking for working volatile" >&5
  7884. echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
  7885. if test "${ac_cv_c_volatile+set}" = set; then
  7886. echo $ECHO_N "(cached) $ECHO_C" >&6
  7887. else
  7888. cat >conftest.$ac_ext <<_ACEOF
  7889. /* confdefs.h. */
  7890. _ACEOF
  7891. cat confdefs.h >>conftest.$ac_ext
  7892. cat >>conftest.$ac_ext <<_ACEOF
  7893. /* end confdefs.h. */
  7894. int
  7895. main ()
  7896. {
  7897. volatile int x;
  7898. int * volatile y;
  7899. ;
  7900. return 0;
  7901. }
  7902. _ACEOF
  7903. rm -f conftest.$ac_objext
  7904. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7905. (eval $ac_compile) 2>conftest.er1
  7906. ac_status=$?
  7907. grep -v '^ *+' conftest.er1 >conftest.err
  7908. rm -f conftest.er1
  7909. cat conftest.err >&5
  7910. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7911. (exit $ac_status); } &&
  7912. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7913. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7914. (eval $ac_try) 2>&5
  7915. ac_status=$?
  7916. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7917. (exit $ac_status); }; } &&
  7918. { ac_try='test -s conftest.$ac_objext'
  7919. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7920. (eval $ac_try) 2>&5
  7921. ac_status=$?
  7922. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7923. (exit $ac_status); }; }; then
  7924. ac_cv_c_volatile=yes
  7925. else
  7926. echo "$as_me: failed program was:" >&5
  7927. sed 's/^/| /' conftest.$ac_ext >&5
  7928. ac_cv_c_volatile=no
  7929. fi
  7930. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7931. fi
  7932. echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  7933. echo "${ECHO_T}$ac_cv_c_volatile" >&6
  7934. if test $ac_cv_c_volatile = no; then
  7935. cat >>confdefs.h <<\_ACEOF
  7936. #define volatile
  7937. _ACEOF
  7938. fi
  7939. if test $ac_cv_c_compiler_gnu = yes; then
  7940. echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
  7941. echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
  7942. if test "${ac_cv_prog_gcc_traditional+set}" = set; then
  7943. echo $ECHO_N "(cached) $ECHO_C" >&6
  7944. else
  7945. ac_pattern="Autoconf.*'x'"
  7946. cat >conftest.$ac_ext <<_ACEOF
  7947. /* confdefs.h. */
  7948. _ACEOF
  7949. cat confdefs.h >>conftest.$ac_ext
  7950. cat >>conftest.$ac_ext <<_ACEOF
  7951. /* end confdefs.h. */
  7952. #include <sgtty.h>
  7953. Autoconf TIOCGETP
  7954. _ACEOF
  7955. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7956. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  7957. ac_cv_prog_gcc_traditional=yes
  7958. else
  7959. ac_cv_prog_gcc_traditional=no
  7960. fi
  7961. rm -f conftest*
  7962. if test $ac_cv_prog_gcc_traditional = no; then
  7963. cat >conftest.$ac_ext <<_ACEOF
  7964. /* confdefs.h. */
  7965. _ACEOF
  7966. cat confdefs.h >>conftest.$ac_ext
  7967. cat >>conftest.$ac_ext <<_ACEOF
  7968. /* end confdefs.h. */
  7969. #include <termio.h>
  7970. Autoconf TCGETA
  7971. _ACEOF
  7972. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7973. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  7974. ac_cv_prog_gcc_traditional=yes
  7975. fi
  7976. rm -f conftest*
  7977. fi
  7978. fi
  7979. echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
  7980. echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
  7981. if test $ac_cv_prog_gcc_traditional = yes; then
  7982. CC="$CC -traditional"
  7983. fi
  7984. fi
  7985. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  7986. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  7987. if test "${ac_cv_struct_tm+set}" = set; then
  7988. echo $ECHO_N "(cached) $ECHO_C" >&6
  7989. else
  7990. cat >conftest.$ac_ext <<_ACEOF
  7991. /* confdefs.h. */
  7992. _ACEOF
  7993. cat confdefs.h >>conftest.$ac_ext
  7994. cat >>conftest.$ac_ext <<_ACEOF
  7995. /* end confdefs.h. */
  7996. #include <sys/types.h>
  7997. #include <time.h>
  7998. int
  7999. main ()
  8000. {
  8001. struct tm *tp; tp->tm_sec;
  8002. ;
  8003. return 0;
  8004. }
  8005. _ACEOF
  8006. rm -f conftest.$ac_objext
  8007. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8008. (eval $ac_compile) 2>conftest.er1
  8009. ac_status=$?
  8010. grep -v '^ *+' conftest.er1 >conftest.err
  8011. rm -f conftest.er1
  8012. cat conftest.err >&5
  8013. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8014. (exit $ac_status); } &&
  8015. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8016. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8017. (eval $ac_try) 2>&5
  8018. ac_status=$?
  8019. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8020. (exit $ac_status); }; } &&
  8021. { ac_try='test -s conftest.$ac_objext'
  8022. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8023. (eval $ac_try) 2>&5
  8024. ac_status=$?
  8025. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8026. (exit $ac_status); }; }; then
  8027. ac_cv_struct_tm=time.h
  8028. else
  8029. echo "$as_me: failed program was:" >&5
  8030. sed 's/^/| /' conftest.$ac_ext >&5
  8031. ac_cv_struct_tm=sys/time.h
  8032. fi
  8033. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8034. fi
  8035. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  8036. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  8037. if test $ac_cv_struct_tm = sys/time.h; then
  8038. cat >>confdefs.h <<\_ACEOF
  8039. #define TM_IN_SYS_TIME 1
  8040. _ACEOF
  8041. fi
  8042. echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
  8043. echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
  8044. if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
  8045. echo $ECHO_N "(cached) $ECHO_C" >&6
  8046. else
  8047. cat >conftest.$ac_ext <<_ACEOF
  8048. /* confdefs.h. */
  8049. _ACEOF
  8050. cat confdefs.h >>conftest.$ac_ext
  8051. cat >>conftest.$ac_ext <<_ACEOF
  8052. /* end confdefs.h. */
  8053. #include <sys/types.h>
  8054. #include <$ac_cv_struct_tm>
  8055. int
  8056. main ()
  8057. {
  8058. static struct tm ac_aggr;
  8059. if (ac_aggr.tm_zone)
  8060. return 0;
  8061. ;
  8062. return 0;
  8063. }
  8064. _ACEOF
  8065. rm -f conftest.$ac_objext
  8066. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8067. (eval $ac_compile) 2>conftest.er1
  8068. ac_status=$?
  8069. grep -v '^ *+' conftest.er1 >conftest.err
  8070. rm -f conftest.er1
  8071. cat conftest.err >&5
  8072. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8073. (exit $ac_status); } &&
  8074. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8075. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8076. (eval $ac_try) 2>&5
  8077. ac_status=$?
  8078. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8079. (exit $ac_status); }; } &&
  8080. { ac_try='test -s conftest.$ac_objext'
  8081. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8082. (eval $ac_try) 2>&5
  8083. ac_status=$?
  8084. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8085. (exit $ac_status); }; }; then
  8086. ac_cv_member_struct_tm_tm_zone=yes
  8087. else
  8088. echo "$as_me: failed program was:" >&5
  8089. sed 's/^/| /' conftest.$ac_ext >&5
  8090. cat >conftest.$ac_ext <<_ACEOF
  8091. /* confdefs.h. */
  8092. _ACEOF
  8093. cat confdefs.h >>conftest.$ac_ext
  8094. cat >>conftest.$ac_ext <<_ACEOF
  8095. /* end confdefs.h. */
  8096. #include <sys/types.h>
  8097. #include <$ac_cv_struct_tm>
  8098. int
  8099. main ()
  8100. {
  8101. static struct tm ac_aggr;
  8102. if (sizeof ac_aggr.tm_zone)
  8103. return 0;
  8104. ;
  8105. return 0;
  8106. }
  8107. _ACEOF
  8108. rm -f conftest.$ac_objext
  8109. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8110. (eval $ac_compile) 2>conftest.er1
  8111. ac_status=$?
  8112. grep -v '^ *+' conftest.er1 >conftest.err
  8113. rm -f conftest.er1
  8114. cat conftest.err >&5
  8115. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8116. (exit $ac_status); } &&
  8117. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8118. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8119. (eval $ac_try) 2>&5
  8120. ac_status=$?
  8121. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8122. (exit $ac_status); }; } &&
  8123. { ac_try='test -s conftest.$ac_objext'
  8124. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8125. (eval $ac_try) 2>&5
  8126. ac_status=$?
  8127. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8128. (exit $ac_status); }; }; then
  8129. ac_cv_member_struct_tm_tm_zone=yes
  8130. else
  8131. echo "$as_me: failed program was:" >&5
  8132. sed 's/^/| /' conftest.$ac_ext >&5
  8133. ac_cv_member_struct_tm_tm_zone=no
  8134. fi
  8135. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8136. fi
  8137. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8138. fi
  8139. echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
  8140. echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
  8141. if test $ac_cv_member_struct_tm_tm_zone = yes; then
  8142. cat >>confdefs.h <<_ACEOF
  8143. #define HAVE_STRUCT_TM_TM_ZONE 1
  8144. _ACEOF
  8145. fi
  8146. if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
  8147. cat >>confdefs.h <<\_ACEOF
  8148. #define HAVE_TM_ZONE 1
  8149. _ACEOF
  8150. else
  8151. echo "$as_me:$LINENO: checking for tzname" >&5
  8152. echo $ECHO_N "checking for tzname... $ECHO_C" >&6
  8153. if test "${ac_cv_var_tzname+set}" = set; then
  8154. echo $ECHO_N "(cached) $ECHO_C" >&6
  8155. else
  8156. cat >conftest.$ac_ext <<_ACEOF
  8157. /* confdefs.h. */
  8158. _ACEOF
  8159. cat confdefs.h >>conftest.$ac_ext
  8160. cat >>conftest.$ac_ext <<_ACEOF
  8161. /* end confdefs.h. */
  8162. #include <time.h>
  8163. #ifndef tzname /* For SGI. */
  8164. extern char *tzname[]; /* RS6000 and others reject char **tzname. */
  8165. #endif
  8166. int
  8167. main ()
  8168. {
  8169. atoi(*tzname);
  8170. ;
  8171. return 0;
  8172. }
  8173. _ACEOF
  8174. rm -f conftest.$ac_objext conftest$ac_exeext
  8175. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8176. (eval $ac_link) 2>conftest.er1
  8177. ac_status=$?
  8178. grep -v '^ *+' conftest.er1 >conftest.err
  8179. rm -f conftest.er1
  8180. cat conftest.err >&5
  8181. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8182. (exit $ac_status); } &&
  8183. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8184. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8185. (eval $ac_try) 2>&5
  8186. ac_status=$?
  8187. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8188. (exit $ac_status); }; } &&
  8189. { ac_try='test -s conftest$ac_exeext'
  8190. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8191. (eval $ac_try) 2>&5
  8192. ac_status=$?
  8193. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8194. (exit $ac_status); }; }; then
  8195. ac_cv_var_tzname=yes
  8196. else
  8197. echo "$as_me: failed program was:" >&5
  8198. sed 's/^/| /' conftest.$ac_ext >&5
  8199. ac_cv_var_tzname=no
  8200. fi
  8201. rm -f conftest.err conftest.$ac_objext \
  8202. conftest$ac_exeext conftest.$ac_ext
  8203. fi
  8204. echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
  8205. echo "${ECHO_T}$ac_cv_var_tzname" >&6
  8206. if test $ac_cv_var_tzname = yes; then
  8207. cat >>confdefs.h <<\_ACEOF
  8208. #define HAVE_TZNAME 1
  8209. _ACEOF
  8210. fi
  8211. fi
  8212. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  8213. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  8214. if test "${ac_cv_struct_tm+set}" = set; then
  8215. echo $ECHO_N "(cached) $ECHO_C" >&6
  8216. else
  8217. cat >conftest.$ac_ext <<_ACEOF
  8218. /* confdefs.h. */
  8219. _ACEOF
  8220. cat confdefs.h >>conftest.$ac_ext
  8221. cat >>conftest.$ac_ext <<_ACEOF
  8222. /* end confdefs.h. */
  8223. #include <sys/types.h>
  8224. #include <time.h>
  8225. int
  8226. main ()
  8227. {
  8228. struct tm *tp; tp->tm_sec;
  8229. ;
  8230. return 0;
  8231. }
  8232. _ACEOF
  8233. rm -f conftest.$ac_objext
  8234. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8235. (eval $ac_compile) 2>conftest.er1
  8236. ac_status=$?
  8237. grep -v '^ *+' conftest.er1 >conftest.err
  8238. rm -f conftest.er1
  8239. cat conftest.err >&5
  8240. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8241. (exit $ac_status); } &&
  8242. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8243. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8244. (eval $ac_try) 2>&5
  8245. ac_status=$?
  8246. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8247. (exit $ac_status); }; } &&
  8248. { ac_try='test -s conftest.$ac_objext'
  8249. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8250. (eval $ac_try) 2>&5
  8251. ac_status=$?
  8252. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8253. (exit $ac_status); }; }; then
  8254. ac_cv_struct_tm=time.h
  8255. else
  8256. echo "$as_me: failed program was:" >&5
  8257. sed 's/^/| /' conftest.$ac_ext >&5
  8258. ac_cv_struct_tm=sys/time.h
  8259. fi
  8260. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8261. fi
  8262. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  8263. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  8264. if test $ac_cv_struct_tm = sys/time.h; then
  8265. cat >>confdefs.h <<\_ACEOF
  8266. #define TM_IN_SYS_TIME 1
  8267. _ACEOF
  8268. fi
  8269. #checkpoint
  8270. cat >confcache <<\_ACEOF
  8271. # This file is a shell script that caches the results of configure
  8272. # tests run on this system so they can be shared between configure
  8273. # scripts and configure runs, see configure's option --config-cache.
  8274. # It is not useful on other systems. If it contains results you don't
  8275. # want to keep, you may remove or edit it.
  8276. #
  8277. # config.status only pays attention to the cache file if you give it
  8278. # the --recheck option to rerun configure.
  8279. #
  8280. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  8281. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  8282. # following values.
  8283. _ACEOF
  8284. # The following way of writing the cache mishandles newlines in values,
  8285. # but we know of no workaround that is simple, portable, and efficient.
  8286. # So, don't put newlines in cache variables' values.
  8287. # Ultrix sh set writes to stderr and can't be redirected directly,
  8288. # and sets the high bit in the cache file unless we assign to the vars.
  8289. {
  8290. (set) 2>&1 |
  8291. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  8292. *ac_space=\ *)
  8293. # `set' does not quote correctly, so add quotes (double-quote
  8294. # substitution turns \\\\ into \\, and sed turns \\ into \).
  8295. sed -n \
  8296. "s/'/'\\\\''/g;
  8297. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  8298. ;;
  8299. *)
  8300. # `set' quotes correctly as required by POSIX, so do not add quotes.
  8301. sed -n \
  8302. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  8303. ;;
  8304. esac;
  8305. } |
  8306. sed '
  8307. t clear
  8308. : clear
  8309. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  8310. t end
  8311. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  8312. : end' >>confcache
  8313. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  8314. if test -w $cache_file; then
  8315. test "x$cache_file" != "x/dev/null"
  8316. cat confcache >$cache_file
  8317. else
  8318. echo "not updating unwritable cache $cache_file"
  8319. fi
  8320. fi
  8321. rm -f confcache
  8322. # Check for IPv6 support
  8323. #EGG_IPV6_SUPPORTED
  8324. echo "$as_me:$LINENO: checking whether or not you disabled IPv6 support" >&5
  8325. echo $ECHO_N "checking whether or not you disabled IPv6 support... $ECHO_C" >&6
  8326. # Check whether --enable-ipv6 or --disable-ipv6 was given.
  8327. if test "${enable_ipv6+set}" = set; then
  8328. enableval="$enable_ipv6"
  8329. ac_cv_dipv6="yes"
  8330. echo "$as_me:$LINENO: result: yes" >&5
  8331. echo "${ECHO_T}yes" >&6
  8332. else
  8333. ac_cv_dipv6="no"
  8334. if test "$egg_cv_ipv6_supported" = "no"; then
  8335. ac_cv_dipv6="no"
  8336. fi
  8337. echo "$as_me:$LINENO: result: $ac_cv_dipv6" >&5
  8338. echo "${ECHO_T}$ac_cv_dipv6" >&6
  8339. fi;
  8340. if test "$ac_cv_dipv6" = "no"; then
  8341. cat >>confdefs.h <<\_ACEOF
  8342. #define USE_IPV6 1
  8343. _ACEOF
  8344. fi
  8345. echo "$as_me:$LINENO: checking for socklen_t" >&5
  8346. echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
  8347. if test "${egg_cv_socklen_t+set}" = set; then
  8348. echo $ECHO_N "(cached) $ECHO_C" >&6
  8349. else
  8350. if test "$cross_compiling" = yes; then
  8351. egg_cv_socklen_t=no
  8352. else
  8353. cat >conftest.$ac_ext <<_ACEOF
  8354. /* confdefs.h. */
  8355. _ACEOF
  8356. cat confdefs.h >>conftest.$ac_ext
  8357. cat >>conftest.$ac_ext <<_ACEOF
  8358. /* end confdefs.h. */
  8359. #include <unistd.h>
  8360. #include <sys/types.h>
  8361. #include <sys/socket.h>
  8362. #include <netinet/in.h>
  8363. #include <arpa/inet.h>
  8364. int main()
  8365. {
  8366. socklen_t test = sizeof(int);
  8367. return 0;
  8368. }
  8369. _ACEOF
  8370. rm -f conftest$ac_exeext
  8371. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8372. (eval $ac_link) 2>&5
  8373. ac_status=$?
  8374. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8375. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8376. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8377. (eval $ac_try) 2>&5
  8378. ac_status=$?
  8379. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8380. (exit $ac_status); }; }; then
  8381. egg_cv_socklen_t=yes
  8382. else
  8383. echo "$as_me: program exited with status $ac_status" >&5
  8384. echo "$as_me: failed program was:" >&5
  8385. sed 's/^/| /' conftest.$ac_ext >&5
  8386. ( exit $ac_status )
  8387. egg_cv_socklen_t=no
  8388. fi
  8389. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8390. fi
  8391. fi
  8392. if test "$egg_cv_socklen_t" = "yes"; then
  8393. cat >>confdefs.h <<\_ACEOF
  8394. #define HAVE_SOCKLEN_T 1
  8395. _ACEOF
  8396. echo "$as_me:$LINENO: result: yes" >&5
  8397. echo "${ECHO_T}yes" >&6
  8398. else
  8399. echo "$as_me:$LINENO: result: no" >&5
  8400. echo "${ECHO_T}no" >&6
  8401. fi
  8402. # Checks for library functions
  8403. #checkpoint
  8404. cat >confcache <<\_ACEOF
  8405. # This file is a shell script that caches the results of configure
  8406. # tests run on this system so they can be shared between configure
  8407. # scripts and configure runs, see configure's option --config-cache.
  8408. # It is not useful on other systems. If it contains results you don't
  8409. # want to keep, you may remove or edit it.
  8410. #
  8411. # config.status only pays attention to the cache file if you give it
  8412. # the --recheck option to rerun configure.
  8413. #
  8414. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  8415. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  8416. # following values.
  8417. _ACEOF
  8418. # The following way of writing the cache mishandles newlines in values,
  8419. # but we know of no workaround that is simple, portable, and efficient.
  8420. # So, don't put newlines in cache variables' values.
  8421. # Ultrix sh set writes to stderr and can't be redirected directly,
  8422. # and sets the high bit in the cache file unless we assign to the vars.
  8423. {
  8424. (set) 2>&1 |
  8425. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  8426. *ac_space=\ *)
  8427. # `set' does not quote correctly, so add quotes (double-quote
  8428. # substitution turns \\\\ into \\, and sed turns \\ into \).
  8429. sed -n \
  8430. "s/'/'\\\\''/g;
  8431. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  8432. ;;
  8433. *)
  8434. # `set' quotes correctly as required by POSIX, so do not add quotes.
  8435. sed -n \
  8436. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  8437. ;;
  8438. esac;
  8439. } |
  8440. sed '
  8441. t clear
  8442. : clear
  8443. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  8444. t end
  8445. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  8446. : end' >>confcache
  8447. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  8448. if test -w $cache_file; then
  8449. test "x$cache_file" != "x/dev/null"
  8450. cat confcache >$cache_file
  8451. else
  8452. echo "not updating unwritable cache $cache_file"
  8453. fi
  8454. fi
  8455. rm -f confcache
  8456. # Checks for library functions.
  8457. for ac_header in unistd.h vfork.h
  8458. do
  8459. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8460. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8461. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8462. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8463. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8464. echo $ECHO_N "(cached) $ECHO_C" >&6
  8465. fi
  8466. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8467. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8468. else
  8469. # Is the header compilable?
  8470. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8471. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8472. cat >conftest.$ac_ext <<_ACEOF
  8473. /* confdefs.h. */
  8474. _ACEOF
  8475. cat confdefs.h >>conftest.$ac_ext
  8476. cat >>conftest.$ac_ext <<_ACEOF
  8477. /* end confdefs.h. */
  8478. $ac_includes_default
  8479. #include <$ac_header>
  8480. _ACEOF
  8481. rm -f conftest.$ac_objext
  8482. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8483. (eval $ac_compile) 2>conftest.er1
  8484. ac_status=$?
  8485. grep -v '^ *+' conftest.er1 >conftest.err
  8486. rm -f conftest.er1
  8487. cat conftest.err >&5
  8488. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8489. (exit $ac_status); } &&
  8490. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8491. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8492. (eval $ac_try) 2>&5
  8493. ac_status=$?
  8494. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8495. (exit $ac_status); }; } &&
  8496. { ac_try='test -s conftest.$ac_objext'
  8497. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8498. (eval $ac_try) 2>&5
  8499. ac_status=$?
  8500. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8501. (exit $ac_status); }; }; then
  8502. ac_header_compiler=yes
  8503. else
  8504. echo "$as_me: failed program was:" >&5
  8505. sed 's/^/| /' conftest.$ac_ext >&5
  8506. ac_header_compiler=no
  8507. fi
  8508. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8509. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8510. echo "${ECHO_T}$ac_header_compiler" >&6
  8511. # Is the header present?
  8512. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8513. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8514. cat >conftest.$ac_ext <<_ACEOF
  8515. /* confdefs.h. */
  8516. _ACEOF
  8517. cat confdefs.h >>conftest.$ac_ext
  8518. cat >>conftest.$ac_ext <<_ACEOF
  8519. /* end confdefs.h. */
  8520. #include <$ac_header>
  8521. _ACEOF
  8522. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8523. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8524. ac_status=$?
  8525. grep -v '^ *+' conftest.er1 >conftest.err
  8526. rm -f conftest.er1
  8527. cat conftest.err >&5
  8528. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8529. (exit $ac_status); } >/dev/null; then
  8530. if test -s conftest.err; then
  8531. ac_cpp_err=$ac_c_preproc_warn_flag
  8532. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  8533. else
  8534. ac_cpp_err=
  8535. fi
  8536. else
  8537. ac_cpp_err=yes
  8538. fi
  8539. if test -z "$ac_cpp_err"; then
  8540. ac_header_preproc=yes
  8541. else
  8542. echo "$as_me: failed program was:" >&5
  8543. sed 's/^/| /' conftest.$ac_ext >&5
  8544. ac_header_preproc=no
  8545. fi
  8546. rm -f conftest.err conftest.$ac_ext
  8547. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8548. echo "${ECHO_T}$ac_header_preproc" >&6
  8549. # So? What about this header?
  8550. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8551. yes:no: )
  8552. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8553. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8554. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8555. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8556. ac_header_preproc=yes
  8557. ;;
  8558. no:yes:* )
  8559. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8560. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8561. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8562. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8563. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8564. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8565. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8566. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8567. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8568. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8569. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8570. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8571. (
  8572. cat <<\_ASBOX
  8573. ## ------------------------------------------ ##
  8574. ## Report this to the AC_PACKAGE_NAME lists. ##
  8575. ## ------------------------------------------ ##
  8576. _ASBOX
  8577. ) |
  8578. sed "s/^/$as_me: WARNING: /" >&2
  8579. ;;
  8580. esac
  8581. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8582. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8583. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8584. echo $ECHO_N "(cached) $ECHO_C" >&6
  8585. else
  8586. eval "$as_ac_Header=\$ac_header_preproc"
  8587. fi
  8588. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8589. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8590. fi
  8591. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8592. cat >>confdefs.h <<_ACEOF
  8593. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8594. _ACEOF
  8595. fi
  8596. done
  8597. for ac_func in fork vfork
  8598. do
  8599. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8600. echo "$as_me:$LINENO: checking for $ac_func" >&5
  8601. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  8602. if eval "test \"\${$as_ac_var+set}\" = set"; then
  8603. echo $ECHO_N "(cached) $ECHO_C" >&6
  8604. else
  8605. cat >conftest.$ac_ext <<_ACEOF
  8606. /* confdefs.h. */
  8607. _ACEOF
  8608. cat confdefs.h >>conftest.$ac_ext
  8609. cat >>conftest.$ac_ext <<_ACEOF
  8610. /* end confdefs.h. */
  8611. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8612. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8613. #define $ac_func innocuous_$ac_func
  8614. /* System header to define __stub macros and hopefully few prototypes,
  8615. which can conflict with char $ac_func (); below.
  8616. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8617. <limits.h> exists even on freestanding compilers. */
  8618. #ifdef __STDC__
  8619. # include <limits.h>
  8620. #else
  8621. # include <assert.h>
  8622. #endif
  8623. #undef $ac_func
  8624. /* Override any gcc2 internal prototype to avoid an error. */
  8625. #ifdef __cplusplus
  8626. extern "C"
  8627. {
  8628. #endif
  8629. /* We use char because int might match the return type of a gcc2
  8630. builtin and then its argument prototype would still apply. */
  8631. char $ac_func ();
  8632. /* The GNU C library defines this for functions which it implements
  8633. to always fail with ENOSYS. Some functions are actually named
  8634. something starting with __ and the normal name is an alias. */
  8635. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  8636. choke me
  8637. #else
  8638. char (*f) () = $ac_func;
  8639. #endif
  8640. #ifdef __cplusplus
  8641. }
  8642. #endif
  8643. int
  8644. main ()
  8645. {
  8646. return f != $ac_func;
  8647. ;
  8648. return 0;
  8649. }
  8650. _ACEOF
  8651. rm -f conftest.$ac_objext conftest$ac_exeext
  8652. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8653. (eval $ac_link) 2>conftest.er1
  8654. ac_status=$?
  8655. grep -v '^ *+' conftest.er1 >conftest.err
  8656. rm -f conftest.er1
  8657. cat conftest.err >&5
  8658. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8659. (exit $ac_status); } &&
  8660. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8661. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8662. (eval $ac_try) 2>&5
  8663. ac_status=$?
  8664. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8665. (exit $ac_status); }; } &&
  8666. { ac_try='test -s conftest$ac_exeext'
  8667. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8668. (eval $ac_try) 2>&5
  8669. ac_status=$?
  8670. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8671. (exit $ac_status); }; }; then
  8672. eval "$as_ac_var=yes"
  8673. else
  8674. echo "$as_me: failed program was:" >&5
  8675. sed 's/^/| /' conftest.$ac_ext >&5
  8676. eval "$as_ac_var=no"
  8677. fi
  8678. rm -f conftest.err conftest.$ac_objext \
  8679. conftest$ac_exeext conftest.$ac_ext
  8680. fi
  8681. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  8682. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  8683. if test `eval echo '${'$as_ac_var'}'` = yes; then
  8684. cat >>confdefs.h <<_ACEOF
  8685. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8686. _ACEOF
  8687. fi
  8688. done
  8689. if test "x$ac_cv_func_fork" = xyes; then
  8690. echo "$as_me:$LINENO: checking for working fork" >&5
  8691. echo $ECHO_N "checking for working fork... $ECHO_C" >&6
  8692. if test "${ac_cv_func_fork_works+set}" = set; then
  8693. echo $ECHO_N "(cached) $ECHO_C" >&6
  8694. else
  8695. if test "$cross_compiling" = yes; then
  8696. ac_cv_func_fork_works=cross
  8697. else
  8698. cat >conftest.$ac_ext <<_ACEOF
  8699. /* By Ruediger Kuhlmann. */
  8700. #include <sys/types.h>
  8701. #if HAVE_UNISTD_H
  8702. # include <unistd.h>
  8703. #endif
  8704. /* Some systems only have a dummy stub for fork() */
  8705. int main ()
  8706. {
  8707. if (fork() < 0)
  8708. exit (1);
  8709. exit (0);
  8710. }
  8711. _ACEOF
  8712. rm -f conftest$ac_exeext
  8713. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8714. (eval $ac_link) 2>&5
  8715. ac_status=$?
  8716. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8717. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8718. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8719. (eval $ac_try) 2>&5
  8720. ac_status=$?
  8721. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8722. (exit $ac_status); }; }; then
  8723. ac_cv_func_fork_works=yes
  8724. else
  8725. echo "$as_me: program exited with status $ac_status" >&5
  8726. echo "$as_me: failed program was:" >&5
  8727. sed 's/^/| /' conftest.$ac_ext >&5
  8728. ( exit $ac_status )
  8729. ac_cv_func_fork_works=no
  8730. fi
  8731. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8732. fi
  8733. fi
  8734. echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
  8735. echo "${ECHO_T}$ac_cv_func_fork_works" >&6
  8736. else
  8737. ac_cv_func_fork_works=$ac_cv_func_fork
  8738. fi
  8739. if test "x$ac_cv_func_fork_works" = xcross; then
  8740. case $host in
  8741. *-*-amigaos* | *-*-msdosdjgpp*)
  8742. # Override, as these systems have only a dummy fork() stub
  8743. ac_cv_func_fork_works=no
  8744. ;;
  8745. *)
  8746. ac_cv_func_fork_works=yes
  8747. ;;
  8748. esac
  8749. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  8750. echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  8751. fi
  8752. ac_cv_func_vfork_works=$ac_cv_func_vfork
  8753. if test "x$ac_cv_func_vfork" = xyes; then
  8754. echo "$as_me:$LINENO: checking for working vfork" >&5
  8755. echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
  8756. if test "${ac_cv_func_vfork_works+set}" = set; then
  8757. echo $ECHO_N "(cached) $ECHO_C" >&6
  8758. else
  8759. if test "$cross_compiling" = yes; then
  8760. ac_cv_func_vfork_works=cross
  8761. else
  8762. cat >conftest.$ac_ext <<_ACEOF
  8763. /* confdefs.h. */
  8764. _ACEOF
  8765. cat confdefs.h >>conftest.$ac_ext
  8766. cat >>conftest.$ac_ext <<_ACEOF
  8767. /* end confdefs.h. */
  8768. /* Thanks to Paul Eggert for this test. */
  8769. #include <stdio.h>
  8770. #include <stdlib.h>
  8771. #include <sys/types.h>
  8772. #include <sys/stat.h>
  8773. #include <sys/wait.h>
  8774. #if HAVE_UNISTD_H
  8775. # include <unistd.h>
  8776. #endif
  8777. #if HAVE_VFORK_H
  8778. # include <vfork.h>
  8779. #endif
  8780. /* On some sparc systems, changes by the child to local and incoming
  8781. argument registers are propagated back to the parent. The compiler
  8782. is told about this with #include <vfork.h>, but some compilers
  8783. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  8784. static variable whose address is put into a register that is
  8785. clobbered by the vfork. */
  8786. static void
  8787. #ifdef __cplusplus
  8788. sparc_address_test (int arg)
  8789. # else
  8790. sparc_address_test (arg) int arg;
  8791. #endif
  8792. {
  8793. static pid_t child;
  8794. if (!child) {
  8795. child = vfork ();
  8796. if (child < 0) {
  8797. perror ("vfork");
  8798. _exit(2);
  8799. }
  8800. if (!child) {
  8801. arg = getpid();
  8802. write(-1, "", 0);
  8803. _exit (arg);
  8804. }
  8805. }
  8806. }
  8807. int
  8808. main ()
  8809. {
  8810. pid_t parent = getpid ();
  8811. pid_t child;
  8812. sparc_address_test (0);
  8813. child = vfork ();
  8814. if (child == 0) {
  8815. /* Here is another test for sparc vfork register problems. This
  8816. test uses lots of local variables, at least as many local
  8817. variables as main has allocated so far including compiler
  8818. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  8819. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  8820. reuse the register of parent for one of the local variables,
  8821. since it will think that parent can't possibly be used any more
  8822. in this routine. Assigning to the local variable will thus
  8823. munge parent in the parent process. */
  8824. pid_t
  8825. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  8826. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  8827. /* Convince the compiler that p..p7 are live; otherwise, it might
  8828. use the same hardware register for all 8 local variables. */
  8829. if (p != p1 || p != p2 || p != p3 || p != p4
  8830. || p != p5 || p != p6 || p != p7)
  8831. _exit(1);
  8832. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  8833. from child file descriptors. If the child closes a descriptor
  8834. before it execs or exits, this munges the parent's descriptor
  8835. as well. Test for this by closing stdout in the child. */
  8836. _exit(close(fileno(stdout)) != 0);
  8837. } else {
  8838. int status;
  8839. struct stat st;
  8840. while (wait(&status) != child)
  8841. ;
  8842. exit(
  8843. /* Was there some problem with vforking? */
  8844. child < 0
  8845. /* Did the child fail? (This shouldn't happen.) */
  8846. || status
  8847. /* Did the vfork/compiler bug occur? */
  8848. || parent != getpid()
  8849. /* Did the file descriptor bug occur? */
  8850. || fstat(fileno(stdout), &st) != 0
  8851. );
  8852. }
  8853. }
  8854. _ACEOF
  8855. rm -f conftest$ac_exeext
  8856. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8857. (eval $ac_link) 2>&5
  8858. ac_status=$?
  8859. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8860. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8861. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8862. (eval $ac_try) 2>&5
  8863. ac_status=$?
  8864. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8865. (exit $ac_status); }; }; then
  8866. ac_cv_func_vfork_works=yes
  8867. else
  8868. echo "$as_me: program exited with status $ac_status" >&5
  8869. echo "$as_me: failed program was:" >&5
  8870. sed 's/^/| /' conftest.$ac_ext >&5
  8871. ( exit $ac_status )
  8872. ac_cv_func_vfork_works=no
  8873. fi
  8874. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8875. fi
  8876. fi
  8877. echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
  8878. echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
  8879. fi;
  8880. if test "x$ac_cv_func_fork_works" = xcross; then
  8881. ac_cv_func_vfork_works=$ac_cv_func_vfork
  8882. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  8883. echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  8884. fi
  8885. if test "x$ac_cv_func_vfork_works" = xyes; then
  8886. cat >>confdefs.h <<\_ACEOF
  8887. #define HAVE_WORKING_VFORK 1
  8888. _ACEOF
  8889. else
  8890. cat >>confdefs.h <<\_ACEOF
  8891. #define vfork fork
  8892. _ACEOF
  8893. fi
  8894. if test "x$ac_cv_func_fork_works" = xyes; then
  8895. cat >>confdefs.h <<\_ACEOF
  8896. #define HAVE_WORKING_FORK 1
  8897. _ACEOF
  8898. fi
  8899. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  8900. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  8901. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  8902. echo $ECHO_N "(cached) $ECHO_C" >&6
  8903. else
  8904. rm -f conftest.sym conftest.file
  8905. echo >conftest.file
  8906. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  8907. if test "$cross_compiling" = yes; then
  8908. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8909. else
  8910. cat >conftest.$ac_ext <<_ACEOF
  8911. /* confdefs.h. */
  8912. _ACEOF
  8913. cat confdefs.h >>conftest.$ac_ext
  8914. cat >>conftest.$ac_ext <<_ACEOF
  8915. /* end confdefs.h. */
  8916. $ac_includes_default
  8917. int
  8918. main ()
  8919. {
  8920. struct stat sbuf;
  8921. /* Linux will dereference the symlink and fail.
  8922. That is better in the sense that it means we will not
  8923. have to compile and use the lstat wrapper. */
  8924. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  8925. ;
  8926. return 0;
  8927. }
  8928. _ACEOF
  8929. rm -f conftest$ac_exeext
  8930. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8931. (eval $ac_link) 2>&5
  8932. ac_status=$?
  8933. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8934. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8935. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8936. (eval $ac_try) 2>&5
  8937. ac_status=$?
  8938. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8939. (exit $ac_status); }; }; then
  8940. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  8941. else
  8942. echo "$as_me: program exited with status $ac_status" >&5
  8943. echo "$as_me: failed program was:" >&5
  8944. sed 's/^/| /' conftest.$ac_ext >&5
  8945. ( exit $ac_status )
  8946. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8947. fi
  8948. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8949. fi
  8950. else
  8951. # If the `ln -s' command failed, then we probably don't even
  8952. # have an lstat function.
  8953. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8954. fi
  8955. rm -f conftest.sym conftest.file
  8956. fi
  8957. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  8958. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  8959. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  8960. cat >>confdefs.h <<_ACEOF
  8961. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  8962. _ACEOF
  8963. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  8964. case $LIBOBJS in
  8965. "lstat.$ac_objext" | \
  8966. *" lstat.$ac_objext" | \
  8967. "lstat.$ac_objext "* | \
  8968. *" lstat.$ac_objext "* ) ;;
  8969. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  8970. esac
  8971. fi
  8972. echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
  8973. echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
  8974. if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
  8975. echo $ECHO_N "(cached) $ECHO_C" >&6
  8976. else
  8977. if test "$cross_compiling" = yes; then
  8978. ac_cv_func_lstat_empty_string_bug=yes
  8979. else
  8980. cat >conftest.$ac_ext <<_ACEOF
  8981. /* confdefs.h. */
  8982. _ACEOF
  8983. cat confdefs.h >>conftest.$ac_ext
  8984. cat >>conftest.$ac_ext <<_ACEOF
  8985. /* end confdefs.h. */
  8986. $ac_includes_default
  8987. int
  8988. main ()
  8989. {
  8990. struct stat sbuf;
  8991. exit (lstat ("", &sbuf) ? 1 : 0);
  8992. ;
  8993. return 0;
  8994. }
  8995. _ACEOF
  8996. rm -f conftest$ac_exeext
  8997. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8998. (eval $ac_link) 2>&5
  8999. ac_status=$?
  9000. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9001. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9002. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9003. (eval $ac_try) 2>&5
  9004. ac_status=$?
  9005. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9006. (exit $ac_status); }; }; then
  9007. ac_cv_func_lstat_empty_string_bug=yes
  9008. else
  9009. echo "$as_me: program exited with status $ac_status" >&5
  9010. echo "$as_me: failed program was:" >&5
  9011. sed 's/^/| /' conftest.$ac_ext >&5
  9012. ( exit $ac_status )
  9013. ac_cv_func_lstat_empty_string_bug=no
  9014. fi
  9015. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9016. fi
  9017. fi
  9018. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
  9019. echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
  9020. if test $ac_cv_func_lstat_empty_string_bug = yes; then
  9021. case $LIBOBJS in
  9022. "lstat.$ac_objext" | \
  9023. *" lstat.$ac_objext" | \
  9024. "lstat.$ac_objext "* | \
  9025. *" lstat.$ac_objext "* ) ;;
  9026. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  9027. esac
  9028. cat >>confdefs.h <<_ACEOF
  9029. #define HAVE_LSTAT_EMPTY_STRING_BUG 1
  9030. _ACEOF
  9031. fi
  9032. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  9033. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  9034. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  9035. echo $ECHO_N "(cached) $ECHO_C" >&6
  9036. else
  9037. rm -f conftest.sym conftest.file
  9038. echo >conftest.file
  9039. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  9040. if test "$cross_compiling" = yes; then
  9041. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9042. else
  9043. cat >conftest.$ac_ext <<_ACEOF
  9044. /* confdefs.h. */
  9045. _ACEOF
  9046. cat confdefs.h >>conftest.$ac_ext
  9047. cat >>conftest.$ac_ext <<_ACEOF
  9048. /* end confdefs.h. */
  9049. $ac_includes_default
  9050. int
  9051. main ()
  9052. {
  9053. struct stat sbuf;
  9054. /* Linux will dereference the symlink and fail.
  9055. That is better in the sense that it means we will not
  9056. have to compile and use the lstat wrapper. */
  9057. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  9058. ;
  9059. return 0;
  9060. }
  9061. _ACEOF
  9062. rm -f conftest$ac_exeext
  9063. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9064. (eval $ac_link) 2>&5
  9065. ac_status=$?
  9066. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9067. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9068. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9069. (eval $ac_try) 2>&5
  9070. ac_status=$?
  9071. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9072. (exit $ac_status); }; }; then
  9073. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  9074. else
  9075. echo "$as_me: program exited with status $ac_status" >&5
  9076. echo "$as_me: failed program was:" >&5
  9077. sed 's/^/| /' conftest.$ac_ext >&5
  9078. ( exit $ac_status )
  9079. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9080. fi
  9081. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9082. fi
  9083. else
  9084. # If the `ln -s' command failed, then we probably don't even
  9085. # have an lstat function.
  9086. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9087. fi
  9088. rm -f conftest.sym conftest.file
  9089. fi
  9090. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  9091. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  9092. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  9093. cat >>confdefs.h <<_ACEOF
  9094. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  9095. _ACEOF
  9096. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  9097. case $LIBOBJS in
  9098. "lstat.$ac_objext" | \
  9099. *" lstat.$ac_objext" | \
  9100. "lstat.$ac_objext "* | \
  9101. *" lstat.$ac_objext "* ) ;;
  9102. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  9103. esac
  9104. fi
  9105. for ac_header in stdlib.h
  9106. do
  9107. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9108. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9109. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9110. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9111. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9112. echo $ECHO_N "(cached) $ECHO_C" >&6
  9113. fi
  9114. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9115. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9116. else
  9117. # Is the header compilable?
  9118. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9119. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9120. cat >conftest.$ac_ext <<_ACEOF
  9121. /* confdefs.h. */
  9122. _ACEOF
  9123. cat confdefs.h >>conftest.$ac_ext
  9124. cat >>conftest.$ac_ext <<_ACEOF
  9125. /* end confdefs.h. */
  9126. $ac_includes_default
  9127. #include <$ac_header>
  9128. _ACEOF
  9129. rm -f conftest.$ac_objext
  9130. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9131. (eval $ac_compile) 2>conftest.er1
  9132. ac_status=$?
  9133. grep -v '^ *+' conftest.er1 >conftest.err
  9134. rm -f conftest.er1
  9135. cat conftest.err >&5
  9136. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9137. (exit $ac_status); } &&
  9138. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9139. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9140. (eval $ac_try) 2>&5
  9141. ac_status=$?
  9142. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9143. (exit $ac_status); }; } &&
  9144. { ac_try='test -s conftest.$ac_objext'
  9145. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9146. (eval $ac_try) 2>&5
  9147. ac_status=$?
  9148. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9149. (exit $ac_status); }; }; then
  9150. ac_header_compiler=yes
  9151. else
  9152. echo "$as_me: failed program was:" >&5
  9153. sed 's/^/| /' conftest.$ac_ext >&5
  9154. ac_header_compiler=no
  9155. fi
  9156. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9157. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9158. echo "${ECHO_T}$ac_header_compiler" >&6
  9159. # Is the header present?
  9160. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9161. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9162. cat >conftest.$ac_ext <<_ACEOF
  9163. /* confdefs.h. */
  9164. _ACEOF
  9165. cat confdefs.h >>conftest.$ac_ext
  9166. cat >>conftest.$ac_ext <<_ACEOF
  9167. /* end confdefs.h. */
  9168. #include <$ac_header>
  9169. _ACEOF
  9170. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9171. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9172. ac_status=$?
  9173. grep -v '^ *+' conftest.er1 >conftest.err
  9174. rm -f conftest.er1
  9175. cat conftest.err >&5
  9176. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9177. (exit $ac_status); } >/dev/null; then
  9178. if test -s conftest.err; then
  9179. ac_cpp_err=$ac_c_preproc_warn_flag
  9180. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9181. else
  9182. ac_cpp_err=
  9183. fi
  9184. else
  9185. ac_cpp_err=yes
  9186. fi
  9187. if test -z "$ac_cpp_err"; then
  9188. ac_header_preproc=yes
  9189. else
  9190. echo "$as_me: failed program was:" >&5
  9191. sed 's/^/| /' conftest.$ac_ext >&5
  9192. ac_header_preproc=no
  9193. fi
  9194. rm -f conftest.err conftest.$ac_ext
  9195. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9196. echo "${ECHO_T}$ac_header_preproc" >&6
  9197. # So? What about this header?
  9198. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9199. yes:no: )
  9200. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9201. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9202. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9203. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9204. ac_header_preproc=yes
  9205. ;;
  9206. no:yes:* )
  9207. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9208. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9209. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9210. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9211. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9212. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9213. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9214. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9215. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9216. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9217. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9218. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9219. (
  9220. cat <<\_ASBOX
  9221. ## ------------------------------------------ ##
  9222. ## Report this to the AC_PACKAGE_NAME lists. ##
  9223. ## ------------------------------------------ ##
  9224. _ASBOX
  9225. ) |
  9226. sed "s/^/$as_me: WARNING: /" >&2
  9227. ;;
  9228. esac
  9229. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9230. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9231. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9232. echo $ECHO_N "(cached) $ECHO_C" >&6
  9233. else
  9234. eval "$as_ac_Header=\$ac_header_preproc"
  9235. fi
  9236. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9237. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9238. fi
  9239. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9240. cat >>confdefs.h <<_ACEOF
  9241. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9242. _ACEOF
  9243. fi
  9244. done
  9245. echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  9246. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
  9247. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  9248. echo $ECHO_N "(cached) $ECHO_C" >&6
  9249. else
  9250. if test "$cross_compiling" = yes; then
  9251. ac_cv_func_malloc_0_nonnull=no
  9252. else
  9253. cat >conftest.$ac_ext <<_ACEOF
  9254. /* confdefs.h. */
  9255. _ACEOF
  9256. cat confdefs.h >>conftest.$ac_ext
  9257. cat >>conftest.$ac_ext <<_ACEOF
  9258. /* end confdefs.h. */
  9259. #if STDC_HEADERS || HAVE_STDLIB_H
  9260. # include <stdlib.h>
  9261. #else
  9262. char *malloc ();
  9263. #endif
  9264. int
  9265. main ()
  9266. {
  9267. exit (malloc (0) ? 0 : 1);
  9268. ;
  9269. return 0;
  9270. }
  9271. _ACEOF
  9272. rm -f conftest$ac_exeext
  9273. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9274. (eval $ac_link) 2>&5
  9275. ac_status=$?
  9276. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9277. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9278. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9279. (eval $ac_try) 2>&5
  9280. ac_status=$?
  9281. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9282. (exit $ac_status); }; }; then
  9283. ac_cv_func_malloc_0_nonnull=yes
  9284. else
  9285. echo "$as_me: program exited with status $ac_status" >&5
  9286. echo "$as_me: failed program was:" >&5
  9287. sed 's/^/| /' conftest.$ac_ext >&5
  9288. ( exit $ac_status )
  9289. ac_cv_func_malloc_0_nonnull=no
  9290. fi
  9291. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9292. fi
  9293. fi
  9294. echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  9295. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
  9296. if test $ac_cv_func_malloc_0_nonnull = yes; then
  9297. cat >>confdefs.h <<\_ACEOF
  9298. #define HAVE_MALLOC 1
  9299. _ACEOF
  9300. else
  9301. cat >>confdefs.h <<\_ACEOF
  9302. #define HAVE_MALLOC 0
  9303. _ACEOF
  9304. case $LIBOBJS in
  9305. "malloc.$ac_objext" | \
  9306. *" malloc.$ac_objext" | \
  9307. "malloc.$ac_objext "* | \
  9308. *" malloc.$ac_objext "* ) ;;
  9309. *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
  9310. esac
  9311. cat >>confdefs.h <<\_ACEOF
  9312. #define malloc rpl_malloc
  9313. _ACEOF
  9314. fi
  9315. for ac_header in stdlib.h sys/time.h unistd.h
  9316. do
  9317. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9318. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9319. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9320. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9321. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9322. echo $ECHO_N "(cached) $ECHO_C" >&6
  9323. fi
  9324. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9325. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9326. else
  9327. # Is the header compilable?
  9328. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9329. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9330. cat >conftest.$ac_ext <<_ACEOF
  9331. /* confdefs.h. */
  9332. _ACEOF
  9333. cat confdefs.h >>conftest.$ac_ext
  9334. cat >>conftest.$ac_ext <<_ACEOF
  9335. /* end confdefs.h. */
  9336. $ac_includes_default
  9337. #include <$ac_header>
  9338. _ACEOF
  9339. rm -f conftest.$ac_objext
  9340. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9341. (eval $ac_compile) 2>conftest.er1
  9342. ac_status=$?
  9343. grep -v '^ *+' conftest.er1 >conftest.err
  9344. rm -f conftest.er1
  9345. cat conftest.err >&5
  9346. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9347. (exit $ac_status); } &&
  9348. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9349. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9350. (eval $ac_try) 2>&5
  9351. ac_status=$?
  9352. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9353. (exit $ac_status); }; } &&
  9354. { ac_try='test -s conftest.$ac_objext'
  9355. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9356. (eval $ac_try) 2>&5
  9357. ac_status=$?
  9358. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9359. (exit $ac_status); }; }; then
  9360. ac_header_compiler=yes
  9361. else
  9362. echo "$as_me: failed program was:" >&5
  9363. sed 's/^/| /' conftest.$ac_ext >&5
  9364. ac_header_compiler=no
  9365. fi
  9366. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9367. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9368. echo "${ECHO_T}$ac_header_compiler" >&6
  9369. # Is the header present?
  9370. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9371. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9372. cat >conftest.$ac_ext <<_ACEOF
  9373. /* confdefs.h. */
  9374. _ACEOF
  9375. cat confdefs.h >>conftest.$ac_ext
  9376. cat >>conftest.$ac_ext <<_ACEOF
  9377. /* end confdefs.h. */
  9378. #include <$ac_header>
  9379. _ACEOF
  9380. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9381. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9382. ac_status=$?
  9383. grep -v '^ *+' conftest.er1 >conftest.err
  9384. rm -f conftest.er1
  9385. cat conftest.err >&5
  9386. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9387. (exit $ac_status); } >/dev/null; then
  9388. if test -s conftest.err; then
  9389. ac_cpp_err=$ac_c_preproc_warn_flag
  9390. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9391. else
  9392. ac_cpp_err=
  9393. fi
  9394. else
  9395. ac_cpp_err=yes
  9396. fi
  9397. if test -z "$ac_cpp_err"; then
  9398. ac_header_preproc=yes
  9399. else
  9400. echo "$as_me: failed program was:" >&5
  9401. sed 's/^/| /' conftest.$ac_ext >&5
  9402. ac_header_preproc=no
  9403. fi
  9404. rm -f conftest.err conftest.$ac_ext
  9405. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9406. echo "${ECHO_T}$ac_header_preproc" >&6
  9407. # So? What about this header?
  9408. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9409. yes:no: )
  9410. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9411. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9412. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9413. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9414. ac_header_preproc=yes
  9415. ;;
  9416. no:yes:* )
  9417. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9418. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9419. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9420. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9421. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9422. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9423. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9424. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9425. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9426. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9427. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9428. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9429. (
  9430. cat <<\_ASBOX
  9431. ## ------------------------------------------ ##
  9432. ## Report this to the AC_PACKAGE_NAME lists. ##
  9433. ## ------------------------------------------ ##
  9434. _ASBOX
  9435. ) |
  9436. sed "s/^/$as_me: WARNING: /" >&2
  9437. ;;
  9438. esac
  9439. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9440. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9441. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9442. echo $ECHO_N "(cached) $ECHO_C" >&6
  9443. else
  9444. eval "$as_ac_Header=\$ac_header_preproc"
  9445. fi
  9446. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9447. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9448. fi
  9449. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9450. cat >>confdefs.h <<_ACEOF
  9451. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9452. _ACEOF
  9453. fi
  9454. done
  9455. for ac_func in alarm
  9456. do
  9457. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9458. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9459. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9460. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9461. echo $ECHO_N "(cached) $ECHO_C" >&6
  9462. else
  9463. cat >conftest.$ac_ext <<_ACEOF
  9464. /* confdefs.h. */
  9465. _ACEOF
  9466. cat confdefs.h >>conftest.$ac_ext
  9467. cat >>conftest.$ac_ext <<_ACEOF
  9468. /* end confdefs.h. */
  9469. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9470. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9471. #define $ac_func innocuous_$ac_func
  9472. /* System header to define __stub macros and hopefully few prototypes,
  9473. which can conflict with char $ac_func (); below.
  9474. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9475. <limits.h> exists even on freestanding compilers. */
  9476. #ifdef __STDC__
  9477. # include <limits.h>
  9478. #else
  9479. # include <assert.h>
  9480. #endif
  9481. #undef $ac_func
  9482. /* Override any gcc2 internal prototype to avoid an error. */
  9483. #ifdef __cplusplus
  9484. extern "C"
  9485. {
  9486. #endif
  9487. /* We use char because int might match the return type of a gcc2
  9488. builtin and then its argument prototype would still apply. */
  9489. char $ac_func ();
  9490. /* The GNU C library defines this for functions which it implements
  9491. to always fail with ENOSYS. Some functions are actually named
  9492. something starting with __ and the normal name is an alias. */
  9493. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9494. choke me
  9495. #else
  9496. char (*f) () = $ac_func;
  9497. #endif
  9498. #ifdef __cplusplus
  9499. }
  9500. #endif
  9501. int
  9502. main ()
  9503. {
  9504. return f != $ac_func;
  9505. ;
  9506. return 0;
  9507. }
  9508. _ACEOF
  9509. rm -f conftest.$ac_objext conftest$ac_exeext
  9510. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9511. (eval $ac_link) 2>conftest.er1
  9512. ac_status=$?
  9513. grep -v '^ *+' conftest.er1 >conftest.err
  9514. rm -f conftest.er1
  9515. cat conftest.err >&5
  9516. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9517. (exit $ac_status); } &&
  9518. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9519. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9520. (eval $ac_try) 2>&5
  9521. ac_status=$?
  9522. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9523. (exit $ac_status); }; } &&
  9524. { ac_try='test -s conftest$ac_exeext'
  9525. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9526. (eval $ac_try) 2>&5
  9527. ac_status=$?
  9528. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9529. (exit $ac_status); }; }; then
  9530. eval "$as_ac_var=yes"
  9531. else
  9532. echo "$as_me: failed program was:" >&5
  9533. sed 's/^/| /' conftest.$ac_ext >&5
  9534. eval "$as_ac_var=no"
  9535. fi
  9536. rm -f conftest.err conftest.$ac_objext \
  9537. conftest$ac_exeext conftest.$ac_ext
  9538. fi
  9539. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9540. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9541. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9542. cat >>confdefs.h <<_ACEOF
  9543. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9544. _ACEOF
  9545. fi
  9546. done
  9547. echo "$as_me:$LINENO: checking for working mktime" >&5
  9548. echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
  9549. if test "${ac_cv_func_working_mktime+set}" = set; then
  9550. echo $ECHO_N "(cached) $ECHO_C" >&6
  9551. else
  9552. if test "$cross_compiling" = yes; then
  9553. ac_cv_func_working_mktime=no
  9554. else
  9555. cat >conftest.$ac_ext <<_ACEOF
  9556. /* confdefs.h. */
  9557. _ACEOF
  9558. cat confdefs.h >>conftest.$ac_ext
  9559. cat >>conftest.$ac_ext <<_ACEOF
  9560. /* end confdefs.h. */
  9561. /* Test program from Paul Eggert and Tony Leneis. */
  9562. #if TIME_WITH_SYS_TIME
  9563. # include <sys/time.h>
  9564. # include <time.h>
  9565. #else
  9566. # if HAVE_SYS_TIME_H
  9567. # include <sys/time.h>
  9568. # else
  9569. # include <time.h>
  9570. # endif
  9571. #endif
  9572. #if HAVE_STDLIB_H
  9573. # include <stdlib.h>
  9574. #endif
  9575. #if HAVE_UNISTD_H
  9576. # include <unistd.h>
  9577. #endif
  9578. #if !HAVE_ALARM
  9579. # define alarm(X) /* empty */
  9580. #endif
  9581. /* Work around redefinition to rpl_putenv by other config tests. */
  9582. #undef putenv
  9583. static time_t time_t_max;
  9584. static time_t time_t_min;
  9585. /* Values we'll use to set the TZ environment variable. */
  9586. static char *tz_strings[] = {
  9587. (char *) 0, "TZ=GMT0", "TZ=JST-9",
  9588. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  9589. };
  9590. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  9591. /* Fail if mktime fails to convert a date in the spring-forward gap.
  9592. Based on a problem report from Andreas Jaeger. */
  9593. static void
  9594. spring_forward_gap ()
  9595. {
  9596. /* glibc (up to about 1998-10-07) failed this test. */
  9597. struct tm tm;
  9598. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  9599. instead of "TZ=America/Vancouver" in order to detect the bug even
  9600. on systems that don't support the Olson extension, or don't have the
  9601. full zoneinfo tables installed. */
  9602. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  9603. tm.tm_year = 98;
  9604. tm.tm_mon = 3;
  9605. tm.tm_mday = 5;
  9606. tm.tm_hour = 2;
  9607. tm.tm_min = 0;
  9608. tm.tm_sec = 0;
  9609. tm.tm_isdst = -1;
  9610. if (mktime (&tm) == (time_t)-1)
  9611. exit (1);
  9612. }
  9613. static void
  9614. mktime_test1 (now)
  9615. time_t now;
  9616. {
  9617. struct tm *lt;
  9618. if ((lt = localtime (&now)) && mktime (lt) != now)
  9619. exit (1);
  9620. }
  9621. static void
  9622. mktime_test (now)
  9623. time_t now;
  9624. {
  9625. mktime_test1 (now);
  9626. mktime_test1 ((time_t) (time_t_max - now));
  9627. mktime_test1 ((time_t) (time_t_min + now));
  9628. }
  9629. static void
  9630. irix_6_4_bug ()
  9631. {
  9632. /* Based on code from Ariel Faigon. */
  9633. struct tm tm;
  9634. tm.tm_year = 96;
  9635. tm.tm_mon = 3;
  9636. tm.tm_mday = 0;
  9637. tm.tm_hour = 0;
  9638. tm.tm_min = 0;
  9639. tm.tm_sec = 0;
  9640. tm.tm_isdst = -1;
  9641. mktime (&tm);
  9642. if (tm.tm_mon != 2 || tm.tm_mday != 31)
  9643. exit (1);
  9644. }
  9645. static void
  9646. bigtime_test (j)
  9647. int j;
  9648. {
  9649. struct tm tm;
  9650. time_t now;
  9651. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  9652. now = mktime (&tm);
  9653. if (now != (time_t) -1)
  9654. {
  9655. struct tm *lt = localtime (&now);
  9656. if (! (lt
  9657. && lt->tm_year == tm.tm_year
  9658. && lt->tm_mon == tm.tm_mon
  9659. && lt->tm_mday == tm.tm_mday
  9660. && lt->tm_hour == tm.tm_hour
  9661. && lt->tm_min == tm.tm_min
  9662. && lt->tm_sec == tm.tm_sec
  9663. && lt->tm_yday == tm.tm_yday
  9664. && lt->tm_wday == tm.tm_wday
  9665. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  9666. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  9667. exit (1);
  9668. }
  9669. }
  9670. int
  9671. main ()
  9672. {
  9673. time_t t, delta;
  9674. int i, j;
  9675. /* This test makes some buggy mktime implementations loop.
  9676. Give up after 60 seconds; a mktime slower than that
  9677. isn't worth using anyway. */
  9678. alarm (60);
  9679. for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
  9680. continue;
  9681. time_t_max--;
  9682. if ((time_t) -1 < 0)
  9683. for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
  9684. continue;
  9685. delta = time_t_max / 997; /* a suitable prime number */
  9686. for (i = 0; i < N_STRINGS; i++)
  9687. {
  9688. if (tz_strings[i])
  9689. putenv (tz_strings[i]);
  9690. for (t = 0; t <= time_t_max - delta; t += delta)
  9691. mktime_test (t);
  9692. mktime_test ((time_t) 1);
  9693. mktime_test ((time_t) (60 * 60));
  9694. mktime_test ((time_t) (60 * 60 * 24));
  9695. for (j = 1; 0 < j; j *= 2)
  9696. bigtime_test (j);
  9697. bigtime_test (j - 1);
  9698. }
  9699. irix_6_4_bug ();
  9700. spring_forward_gap ();
  9701. exit (0);
  9702. }
  9703. _ACEOF
  9704. rm -f conftest$ac_exeext
  9705. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9706. (eval $ac_link) 2>&5
  9707. ac_status=$?
  9708. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9709. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9710. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9711. (eval $ac_try) 2>&5
  9712. ac_status=$?
  9713. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9714. (exit $ac_status); }; }; then
  9715. ac_cv_func_working_mktime=yes
  9716. else
  9717. echo "$as_me: program exited with status $ac_status" >&5
  9718. echo "$as_me: failed program was:" >&5
  9719. sed 's/^/| /' conftest.$ac_ext >&5
  9720. ( exit $ac_status )
  9721. ac_cv_func_working_mktime=no
  9722. fi
  9723. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9724. fi
  9725. fi
  9726. echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
  9727. echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
  9728. if test $ac_cv_func_working_mktime = no; then
  9729. case $LIBOBJS in
  9730. "mktime.$ac_objext" | \
  9731. *" mktime.$ac_objext" | \
  9732. "mktime.$ac_objext "* | \
  9733. *" mktime.$ac_objext "* ) ;;
  9734. *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
  9735. esac
  9736. fi
  9737. for ac_header in stdlib.h unistd.h
  9738. do
  9739. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9740. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9741. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9742. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9743. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9744. echo $ECHO_N "(cached) $ECHO_C" >&6
  9745. fi
  9746. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9747. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9748. else
  9749. # Is the header compilable?
  9750. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9751. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9752. cat >conftest.$ac_ext <<_ACEOF
  9753. /* confdefs.h. */
  9754. _ACEOF
  9755. cat confdefs.h >>conftest.$ac_ext
  9756. cat >>conftest.$ac_ext <<_ACEOF
  9757. /* end confdefs.h. */
  9758. $ac_includes_default
  9759. #include <$ac_header>
  9760. _ACEOF
  9761. rm -f conftest.$ac_objext
  9762. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9763. (eval $ac_compile) 2>conftest.er1
  9764. ac_status=$?
  9765. grep -v '^ *+' conftest.er1 >conftest.err
  9766. rm -f conftest.er1
  9767. cat conftest.err >&5
  9768. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9769. (exit $ac_status); } &&
  9770. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9771. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9772. (eval $ac_try) 2>&5
  9773. ac_status=$?
  9774. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9775. (exit $ac_status); }; } &&
  9776. { ac_try='test -s conftest.$ac_objext'
  9777. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9778. (eval $ac_try) 2>&5
  9779. ac_status=$?
  9780. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9781. (exit $ac_status); }; }; then
  9782. ac_header_compiler=yes
  9783. else
  9784. echo "$as_me: failed program was:" >&5
  9785. sed 's/^/| /' conftest.$ac_ext >&5
  9786. ac_header_compiler=no
  9787. fi
  9788. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9789. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9790. echo "${ECHO_T}$ac_header_compiler" >&6
  9791. # Is the header present?
  9792. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9793. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9794. cat >conftest.$ac_ext <<_ACEOF
  9795. /* confdefs.h. */
  9796. _ACEOF
  9797. cat confdefs.h >>conftest.$ac_ext
  9798. cat >>conftest.$ac_ext <<_ACEOF
  9799. /* end confdefs.h. */
  9800. #include <$ac_header>
  9801. _ACEOF
  9802. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9803. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9804. ac_status=$?
  9805. grep -v '^ *+' conftest.er1 >conftest.err
  9806. rm -f conftest.er1
  9807. cat conftest.err >&5
  9808. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9809. (exit $ac_status); } >/dev/null; then
  9810. if test -s conftest.err; then
  9811. ac_cpp_err=$ac_c_preproc_warn_flag
  9812. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9813. else
  9814. ac_cpp_err=
  9815. fi
  9816. else
  9817. ac_cpp_err=yes
  9818. fi
  9819. if test -z "$ac_cpp_err"; then
  9820. ac_header_preproc=yes
  9821. else
  9822. echo "$as_me: failed program was:" >&5
  9823. sed 's/^/| /' conftest.$ac_ext >&5
  9824. ac_header_preproc=no
  9825. fi
  9826. rm -f conftest.err conftest.$ac_ext
  9827. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9828. echo "${ECHO_T}$ac_header_preproc" >&6
  9829. # So? What about this header?
  9830. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9831. yes:no: )
  9832. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9833. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9834. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9835. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9836. ac_header_preproc=yes
  9837. ;;
  9838. no:yes:* )
  9839. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9840. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9841. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9842. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9843. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9844. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9845. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9846. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9847. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9848. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9849. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9850. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9851. (
  9852. cat <<\_ASBOX
  9853. ## ------------------------------------------ ##
  9854. ## Report this to the AC_PACKAGE_NAME lists. ##
  9855. ## ------------------------------------------ ##
  9856. _ASBOX
  9857. ) |
  9858. sed "s/^/$as_me: WARNING: /" >&2
  9859. ;;
  9860. esac
  9861. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9862. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9863. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9864. echo $ECHO_N "(cached) $ECHO_C" >&6
  9865. else
  9866. eval "$as_ac_Header=\$ac_header_preproc"
  9867. fi
  9868. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9869. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9870. fi
  9871. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9872. cat >>confdefs.h <<_ACEOF
  9873. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9874. _ACEOF
  9875. fi
  9876. done
  9877. for ac_func in getpagesize
  9878. do
  9879. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9880. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9881. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9882. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9883. echo $ECHO_N "(cached) $ECHO_C" >&6
  9884. else
  9885. cat >conftest.$ac_ext <<_ACEOF
  9886. /* confdefs.h. */
  9887. _ACEOF
  9888. cat confdefs.h >>conftest.$ac_ext
  9889. cat >>conftest.$ac_ext <<_ACEOF
  9890. /* end confdefs.h. */
  9891. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9892. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9893. #define $ac_func innocuous_$ac_func
  9894. /* System header to define __stub macros and hopefully few prototypes,
  9895. which can conflict with char $ac_func (); below.
  9896. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9897. <limits.h> exists even on freestanding compilers. */
  9898. #ifdef __STDC__
  9899. # include <limits.h>
  9900. #else
  9901. # include <assert.h>
  9902. #endif
  9903. #undef $ac_func
  9904. /* Override any gcc2 internal prototype to avoid an error. */
  9905. #ifdef __cplusplus
  9906. extern "C"
  9907. {
  9908. #endif
  9909. /* We use char because int might match the return type of a gcc2
  9910. builtin and then its argument prototype would still apply. */
  9911. char $ac_func ();
  9912. /* The GNU C library defines this for functions which it implements
  9913. to always fail with ENOSYS. Some functions are actually named
  9914. something starting with __ and the normal name is an alias. */
  9915. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9916. choke me
  9917. #else
  9918. char (*f) () = $ac_func;
  9919. #endif
  9920. #ifdef __cplusplus
  9921. }
  9922. #endif
  9923. int
  9924. main ()
  9925. {
  9926. return f != $ac_func;
  9927. ;
  9928. return 0;
  9929. }
  9930. _ACEOF
  9931. rm -f conftest.$ac_objext conftest$ac_exeext
  9932. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9933. (eval $ac_link) 2>conftest.er1
  9934. ac_status=$?
  9935. grep -v '^ *+' conftest.er1 >conftest.err
  9936. rm -f conftest.er1
  9937. cat conftest.err >&5
  9938. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9939. (exit $ac_status); } &&
  9940. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9941. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9942. (eval $ac_try) 2>&5
  9943. ac_status=$?
  9944. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9945. (exit $ac_status); }; } &&
  9946. { ac_try='test -s conftest$ac_exeext'
  9947. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9948. (eval $ac_try) 2>&5
  9949. ac_status=$?
  9950. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9951. (exit $ac_status); }; }; then
  9952. eval "$as_ac_var=yes"
  9953. else
  9954. echo "$as_me: failed program was:" >&5
  9955. sed 's/^/| /' conftest.$ac_ext >&5
  9956. eval "$as_ac_var=no"
  9957. fi
  9958. rm -f conftest.err conftest.$ac_objext \
  9959. conftest$ac_exeext conftest.$ac_ext
  9960. fi
  9961. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9962. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9963. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9964. cat >>confdefs.h <<_ACEOF
  9965. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9966. _ACEOF
  9967. fi
  9968. done
  9969. echo "$as_me:$LINENO: checking for working mmap" >&5
  9970. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
  9971. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  9972. echo $ECHO_N "(cached) $ECHO_C" >&6
  9973. else
  9974. if test "$cross_compiling" = yes; then
  9975. ac_cv_func_mmap_fixed_mapped=no
  9976. else
  9977. cat >conftest.$ac_ext <<_ACEOF
  9978. /* confdefs.h. */
  9979. _ACEOF
  9980. cat confdefs.h >>conftest.$ac_ext
  9981. cat >>conftest.$ac_ext <<_ACEOF
  9982. /* end confdefs.h. */
  9983. $ac_includes_default
  9984. /* malloc might have been renamed as rpl_malloc. */
  9985. #undef malloc
  9986. /* Thanks to Mike Haertel and Jim Avera for this test.
  9987. Here is a matrix of mmap possibilities:
  9988. mmap private not fixed
  9989. mmap private fixed at somewhere currently unmapped
  9990. mmap private fixed at somewhere already mapped
  9991. mmap shared not fixed
  9992. mmap shared fixed at somewhere currently unmapped
  9993. mmap shared fixed at somewhere already mapped
  9994. For private mappings, we should verify that changes cannot be read()
  9995. back from the file, nor mmap's back from the file at a different
  9996. address. (There have been systems where private was not correctly
  9997. implemented like the infamous i386 svr4.0, and systems where the
  9998. VM page cache was not coherent with the file system buffer cache
  9999. like early versions of FreeBSD and possibly contemporary NetBSD.)
  10000. For shared mappings, we should conversely verify that changes get
  10001. propagated back to all the places they're supposed to be.
  10002. Grep wants private fixed already mapped.
  10003. The main things grep needs to know about mmap are:
  10004. * does it exist and is it safe to write into the mmap'd area
  10005. * how to use it (BSD variants) */
  10006. #include <fcntl.h>
  10007. #include <sys/mman.h>
  10008. #if !STDC_HEADERS && !HAVE_STDLIB_H
  10009. char *malloc ();
  10010. #endif
  10011. /* This mess was copied from the GNU getpagesize.h. */
  10012. #if !HAVE_GETPAGESIZE
  10013. /* Assume that all systems that can run configure have sys/param.h. */
  10014. # if !HAVE_SYS_PARAM_H
  10015. # define HAVE_SYS_PARAM_H 1
  10016. # endif
  10017. # ifdef _SC_PAGESIZE
  10018. # define getpagesize() sysconf(_SC_PAGESIZE)
  10019. # else /* no _SC_PAGESIZE */
  10020. # if HAVE_SYS_PARAM_H
  10021. # include <sys/param.h>
  10022. # ifdef EXEC_PAGESIZE
  10023. # define getpagesize() EXEC_PAGESIZE
  10024. # else /* no EXEC_PAGESIZE */
  10025. # ifdef NBPG
  10026. # define getpagesize() NBPG * CLSIZE
  10027. # ifndef CLSIZE
  10028. # define CLSIZE 1
  10029. # endif /* no CLSIZE */
  10030. # else /* no NBPG */
  10031. # ifdef NBPC
  10032. # define getpagesize() NBPC
  10033. # else /* no NBPC */
  10034. # ifdef PAGESIZE
  10035. # define getpagesize() PAGESIZE
  10036. # endif /* PAGESIZE */
  10037. # endif /* no NBPC */
  10038. # endif /* no NBPG */
  10039. # endif /* no EXEC_PAGESIZE */
  10040. # else /* no HAVE_SYS_PARAM_H */
  10041. # define getpagesize() 8192 /* punt totally */
  10042. # endif /* no HAVE_SYS_PARAM_H */
  10043. # endif /* no _SC_PAGESIZE */
  10044. #endif /* no HAVE_GETPAGESIZE */
  10045. int
  10046. main ()
  10047. {
  10048. char *data, *data2, *data3;
  10049. int i, pagesize;
  10050. int fd;
  10051. pagesize = getpagesize ();
  10052. /* First, make a file with some known garbage in it. */
  10053. data = (char *) malloc (pagesize);
  10054. if (!data)
  10055. exit (1);
  10056. for (i = 0; i < pagesize; ++i)
  10057. *(data + i) = rand ();
  10058. umask (0);
  10059. fd = creat ("conftest.mmap", 0600);
  10060. if (fd < 0)
  10061. exit (1);
  10062. if (write (fd, data, pagesize) != pagesize)
  10063. exit (1);
  10064. close (fd);
  10065. /* Next, try to mmap the file at a fixed address which already has
  10066. something else allocated at it. If we can, also make sure that
  10067. we see the same garbage. */
  10068. fd = open ("conftest.mmap", O_RDWR);
  10069. if (fd < 0)
  10070. exit (1);
  10071. data2 = (char *) malloc (2 * pagesize);
  10072. if (!data2)
  10073. exit (1);
  10074. data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
  10075. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  10076. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  10077. exit (1);
  10078. for (i = 0; i < pagesize; ++i)
  10079. if (*(data + i) != *(data2 + i))
  10080. exit (1);
  10081. /* Finally, make sure that changes to the mapped area do not
  10082. percolate back to the file as seen by read(). (This is a bug on
  10083. some variants of i386 svr4.0.) */
  10084. for (i = 0; i < pagesize; ++i)
  10085. *(data2 + i) = *(data2 + i) + 1;
  10086. data3 = (char *) malloc (pagesize);
  10087. if (!data3)
  10088. exit (1);
  10089. if (read (fd, data3, pagesize) != pagesize)
  10090. exit (1);
  10091. for (i = 0; i < pagesize; ++i)
  10092. if (*(data + i) != *(data3 + i))
  10093. exit (1);
  10094. close (fd);
  10095. exit (0);
  10096. }
  10097. _ACEOF
  10098. rm -f conftest$ac_exeext
  10099. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10100. (eval $ac_link) 2>&5
  10101. ac_status=$?
  10102. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10103. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10104. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10105. (eval $ac_try) 2>&5
  10106. ac_status=$?
  10107. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10108. (exit $ac_status); }; }; then
  10109. ac_cv_func_mmap_fixed_mapped=yes
  10110. else
  10111. echo "$as_me: program exited with status $ac_status" >&5
  10112. echo "$as_me: failed program was:" >&5
  10113. sed 's/^/| /' conftest.$ac_ext >&5
  10114. ( exit $ac_status )
  10115. ac_cv_func_mmap_fixed_mapped=no
  10116. fi
  10117. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10118. fi
  10119. fi
  10120. echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  10121. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
  10122. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  10123. cat >>confdefs.h <<\_ACEOF
  10124. #define HAVE_MMAP 1
  10125. _ACEOF
  10126. fi
  10127. rm -f conftest.mmap
  10128. for ac_header in stdlib.h
  10129. do
  10130. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10131. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  10132. echo "$as_me:$LINENO: checking for $ac_header" >&5
  10133. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  10134. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  10135. echo $ECHO_N "(cached) $ECHO_C" >&6
  10136. fi
  10137. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  10138. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  10139. else
  10140. # Is the header compilable?
  10141. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10142. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  10143. cat >conftest.$ac_ext <<_ACEOF
  10144. /* confdefs.h. */
  10145. _ACEOF
  10146. cat confdefs.h >>conftest.$ac_ext
  10147. cat >>conftest.$ac_ext <<_ACEOF
  10148. /* end confdefs.h. */
  10149. $ac_includes_default
  10150. #include <$ac_header>
  10151. _ACEOF
  10152. rm -f conftest.$ac_objext
  10153. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10154. (eval $ac_compile) 2>conftest.er1
  10155. ac_status=$?
  10156. grep -v '^ *+' conftest.er1 >conftest.err
  10157. rm -f conftest.er1
  10158. cat conftest.err >&5
  10159. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10160. (exit $ac_status); } &&
  10161. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10162. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10163. (eval $ac_try) 2>&5
  10164. ac_status=$?
  10165. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10166. (exit $ac_status); }; } &&
  10167. { ac_try='test -s conftest.$ac_objext'
  10168. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10169. (eval $ac_try) 2>&5
  10170. ac_status=$?
  10171. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10172. (exit $ac_status); }; }; then
  10173. ac_header_compiler=yes
  10174. else
  10175. echo "$as_me: failed program was:" >&5
  10176. sed 's/^/| /' conftest.$ac_ext >&5
  10177. ac_header_compiler=no
  10178. fi
  10179. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  10180. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10181. echo "${ECHO_T}$ac_header_compiler" >&6
  10182. # Is the header present?
  10183. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10184. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  10185. cat >conftest.$ac_ext <<_ACEOF
  10186. /* confdefs.h. */
  10187. _ACEOF
  10188. cat confdefs.h >>conftest.$ac_ext
  10189. cat >>conftest.$ac_ext <<_ACEOF
  10190. /* end confdefs.h. */
  10191. #include <$ac_header>
  10192. _ACEOF
  10193. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  10194. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  10195. ac_status=$?
  10196. grep -v '^ *+' conftest.er1 >conftest.err
  10197. rm -f conftest.er1
  10198. cat conftest.err >&5
  10199. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10200. (exit $ac_status); } >/dev/null; then
  10201. if test -s conftest.err; then
  10202. ac_cpp_err=$ac_c_preproc_warn_flag
  10203. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  10204. else
  10205. ac_cpp_err=
  10206. fi
  10207. else
  10208. ac_cpp_err=yes
  10209. fi
  10210. if test -z "$ac_cpp_err"; then
  10211. ac_header_preproc=yes
  10212. else
  10213. echo "$as_me: failed program was:" >&5
  10214. sed 's/^/| /' conftest.$ac_ext >&5
  10215. ac_header_preproc=no
  10216. fi
  10217. rm -f conftest.err conftest.$ac_ext
  10218. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10219. echo "${ECHO_T}$ac_header_preproc" >&6
  10220. # So? What about this header?
  10221. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  10222. yes:no: )
  10223. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10224. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10225. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10226. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10227. ac_header_preproc=yes
  10228. ;;
  10229. no:yes:* )
  10230. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10231. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10232. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10233. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10234. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10235. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10236. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10237. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10238. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10239. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10240. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10241. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10242. (
  10243. cat <<\_ASBOX
  10244. ## ------------------------------------------ ##
  10245. ## Report this to the AC_PACKAGE_NAME lists. ##
  10246. ## ------------------------------------------ ##
  10247. _ASBOX
  10248. ) |
  10249. sed "s/^/$as_me: WARNING: /" >&2
  10250. ;;
  10251. esac
  10252. echo "$as_me:$LINENO: checking for $ac_header" >&5
  10253. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  10254. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  10255. echo $ECHO_N "(cached) $ECHO_C" >&6
  10256. else
  10257. eval "$as_ac_Header=\$ac_header_preproc"
  10258. fi
  10259. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  10260. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  10261. fi
  10262. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10263. cat >>confdefs.h <<_ACEOF
  10264. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10265. _ACEOF
  10266. fi
  10267. done
  10268. echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
  10269. echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
  10270. if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
  10271. echo $ECHO_N "(cached) $ECHO_C" >&6
  10272. else
  10273. if test "$cross_compiling" = yes; then
  10274. ac_cv_func_realloc_0_nonnull=no
  10275. else
  10276. cat >conftest.$ac_ext <<_ACEOF
  10277. /* confdefs.h. */
  10278. _ACEOF
  10279. cat confdefs.h >>conftest.$ac_ext
  10280. cat >>conftest.$ac_ext <<_ACEOF
  10281. /* end confdefs.h. */
  10282. #if STDC_HEADERS || HAVE_STDLIB_H
  10283. # include <stdlib.h>
  10284. #else
  10285. char *realloc ();
  10286. #endif
  10287. int
  10288. main ()
  10289. {
  10290. exit (realloc (0, 0) ? 0 : 1);
  10291. ;
  10292. return 0;
  10293. }
  10294. _ACEOF
  10295. rm -f conftest$ac_exeext
  10296. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10297. (eval $ac_link) 2>&5
  10298. ac_status=$?
  10299. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10300. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10301. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10302. (eval $ac_try) 2>&5
  10303. ac_status=$?
  10304. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10305. (exit $ac_status); }; }; then
  10306. ac_cv_func_realloc_0_nonnull=yes
  10307. else
  10308. echo "$as_me: program exited with status $ac_status" >&5
  10309. echo "$as_me: failed program was:" >&5
  10310. sed 's/^/| /' conftest.$ac_ext >&5
  10311. ( exit $ac_status )
  10312. ac_cv_func_realloc_0_nonnull=no
  10313. fi
  10314. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10315. fi
  10316. fi
  10317. echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
  10318. echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
  10319. if test $ac_cv_func_realloc_0_nonnull = yes; then
  10320. cat >>confdefs.h <<\_ACEOF
  10321. #define HAVE_REALLOC 1
  10322. _ACEOF
  10323. else
  10324. cat >>confdefs.h <<\_ACEOF
  10325. #define HAVE_REALLOC 0
  10326. _ACEOF
  10327. case $LIBOBJS in
  10328. "realloc.$ac_objext" | \
  10329. *" realloc.$ac_objext" | \
  10330. "realloc.$ac_objext "* | \
  10331. *" realloc.$ac_objext "* ) ;;
  10332. *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
  10333. esac
  10334. cat >>confdefs.h <<\_ACEOF
  10335. #define realloc rpl_realloc
  10336. _ACEOF
  10337. fi
  10338. for ac_header in sys/select.h sys/socket.h
  10339. do
  10340. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10341. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  10342. echo "$as_me:$LINENO: checking for $ac_header" >&5
  10343. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  10344. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  10345. echo $ECHO_N "(cached) $ECHO_C" >&6
  10346. fi
  10347. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  10348. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  10349. else
  10350. # Is the header compilable?
  10351. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10352. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  10353. cat >conftest.$ac_ext <<_ACEOF
  10354. /* confdefs.h. */
  10355. _ACEOF
  10356. cat confdefs.h >>conftest.$ac_ext
  10357. cat >>conftest.$ac_ext <<_ACEOF
  10358. /* end confdefs.h. */
  10359. $ac_includes_default
  10360. #include <$ac_header>
  10361. _ACEOF
  10362. rm -f conftest.$ac_objext
  10363. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10364. (eval $ac_compile) 2>conftest.er1
  10365. ac_status=$?
  10366. grep -v '^ *+' conftest.er1 >conftest.err
  10367. rm -f conftest.er1
  10368. cat conftest.err >&5
  10369. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10370. (exit $ac_status); } &&
  10371. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10372. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10373. (eval $ac_try) 2>&5
  10374. ac_status=$?
  10375. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10376. (exit $ac_status); }; } &&
  10377. { ac_try='test -s conftest.$ac_objext'
  10378. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10379. (eval $ac_try) 2>&5
  10380. ac_status=$?
  10381. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10382. (exit $ac_status); }; }; then
  10383. ac_header_compiler=yes
  10384. else
  10385. echo "$as_me: failed program was:" >&5
  10386. sed 's/^/| /' conftest.$ac_ext >&5
  10387. ac_header_compiler=no
  10388. fi
  10389. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  10390. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10391. echo "${ECHO_T}$ac_header_compiler" >&6
  10392. # Is the header present?
  10393. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10394. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  10395. cat >conftest.$ac_ext <<_ACEOF
  10396. /* confdefs.h. */
  10397. _ACEOF
  10398. cat confdefs.h >>conftest.$ac_ext
  10399. cat >>conftest.$ac_ext <<_ACEOF
  10400. /* end confdefs.h. */
  10401. #include <$ac_header>
  10402. _ACEOF
  10403. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  10404. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  10405. ac_status=$?
  10406. grep -v '^ *+' conftest.er1 >conftest.err
  10407. rm -f conftest.er1
  10408. cat conftest.err >&5
  10409. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10410. (exit $ac_status); } >/dev/null; then
  10411. if test -s conftest.err; then
  10412. ac_cpp_err=$ac_c_preproc_warn_flag
  10413. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  10414. else
  10415. ac_cpp_err=
  10416. fi
  10417. else
  10418. ac_cpp_err=yes
  10419. fi
  10420. if test -z "$ac_cpp_err"; then
  10421. ac_header_preproc=yes
  10422. else
  10423. echo "$as_me: failed program was:" >&5
  10424. sed 's/^/| /' conftest.$ac_ext >&5
  10425. ac_header_preproc=no
  10426. fi
  10427. rm -f conftest.err conftest.$ac_ext
  10428. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10429. echo "${ECHO_T}$ac_header_preproc" >&6
  10430. # So? What about this header?
  10431. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  10432. yes:no: )
  10433. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10434. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10435. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10436. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10437. ac_header_preproc=yes
  10438. ;;
  10439. no:yes:* )
  10440. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10441. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10442. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10443. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10444. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10445. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10446. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10447. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10448. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10449. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10450. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10451. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10452. (
  10453. cat <<\_ASBOX
  10454. ## ------------------------------------------ ##
  10455. ## Report this to the AC_PACKAGE_NAME lists. ##
  10456. ## ------------------------------------------ ##
  10457. _ASBOX
  10458. ) |
  10459. sed "s/^/$as_me: WARNING: /" >&2
  10460. ;;
  10461. esac
  10462. echo "$as_me:$LINENO: checking for $ac_header" >&5
  10463. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  10464. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  10465. echo $ECHO_N "(cached) $ECHO_C" >&6
  10466. else
  10467. eval "$as_ac_Header=\$ac_header_preproc"
  10468. fi
  10469. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  10470. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  10471. fi
  10472. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10473. cat >>confdefs.h <<_ACEOF
  10474. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10475. _ACEOF
  10476. fi
  10477. done
  10478. echo "$as_me:$LINENO: checking types of arguments for select" >&5
  10479. echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
  10480. if test "${ac_cv_func_select_args+set}" = set; then
  10481. echo $ECHO_N "(cached) $ECHO_C" >&6
  10482. else
  10483. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  10484. for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
  10485. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  10486. cat >conftest.$ac_ext <<_ACEOF
  10487. /* confdefs.h. */
  10488. _ACEOF
  10489. cat confdefs.h >>conftest.$ac_ext
  10490. cat >>conftest.$ac_ext <<_ACEOF
  10491. /* end confdefs.h. */
  10492. $ac_includes_default
  10493. #if HAVE_SYS_SELECT_H
  10494. # include <sys/select.h>
  10495. #endif
  10496. #if HAVE_SYS_SOCKET_H
  10497. # include <sys/socket.h>
  10498. #endif
  10499. int
  10500. main ()
  10501. {
  10502. extern int select ($ac_arg1,
  10503. $ac_arg234, $ac_arg234, $ac_arg234,
  10504. $ac_arg5);
  10505. ;
  10506. return 0;
  10507. }
  10508. _ACEOF
  10509. rm -f conftest.$ac_objext
  10510. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10511. (eval $ac_compile) 2>conftest.er1
  10512. ac_status=$?
  10513. grep -v '^ *+' conftest.er1 >conftest.err
  10514. rm -f conftest.er1
  10515. cat conftest.err >&5
  10516. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10517. (exit $ac_status); } &&
  10518. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10519. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10520. (eval $ac_try) 2>&5
  10521. ac_status=$?
  10522. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10523. (exit $ac_status); }; } &&
  10524. { ac_try='test -s conftest.$ac_objext'
  10525. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10526. (eval $ac_try) 2>&5
  10527. ac_status=$?
  10528. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10529. (exit $ac_status); }; }; then
  10530. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  10531. else
  10532. echo "$as_me: failed program was:" >&5
  10533. sed 's/^/| /' conftest.$ac_ext >&5
  10534. fi
  10535. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  10536. done
  10537. done
  10538. done
  10539. # Provide a safe default value.
  10540. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  10541. fi
  10542. echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
  10543. echo "${ECHO_T}$ac_cv_func_select_args" >&6
  10544. ac_save_IFS=$IFS; IFS=','
  10545. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  10546. IFS=$ac_save_IFS
  10547. shift
  10548. cat >>confdefs.h <<_ACEOF
  10549. #define SELECT_TYPE_ARG1 $1
  10550. _ACEOF
  10551. cat >>confdefs.h <<_ACEOF
  10552. #define SELECT_TYPE_ARG234 ($2)
  10553. _ACEOF
  10554. cat >>confdefs.h <<_ACEOF
  10555. #define SELECT_TYPE_ARG5 ($3)
  10556. _ACEOF
  10557. rm -f conftest*
  10558. echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  10559. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
  10560. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  10561. echo $ECHO_N "(cached) $ECHO_C" >&6
  10562. else
  10563. if test "$cross_compiling" = yes; then
  10564. ac_cv_func_stat_empty_string_bug=yes
  10565. else
  10566. cat >conftest.$ac_ext <<_ACEOF
  10567. /* confdefs.h. */
  10568. _ACEOF
  10569. cat confdefs.h >>conftest.$ac_ext
  10570. cat >>conftest.$ac_ext <<_ACEOF
  10571. /* end confdefs.h. */
  10572. $ac_includes_default
  10573. int
  10574. main ()
  10575. {
  10576. struct stat sbuf;
  10577. exit (stat ("", &sbuf) ? 1 : 0);
  10578. ;
  10579. return 0;
  10580. }
  10581. _ACEOF
  10582. rm -f conftest$ac_exeext
  10583. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10584. (eval $ac_link) 2>&5
  10585. ac_status=$?
  10586. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10587. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10588. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10589. (eval $ac_try) 2>&5
  10590. ac_status=$?
  10591. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10592. (exit $ac_status); }; }; then
  10593. ac_cv_func_stat_empty_string_bug=yes
  10594. else
  10595. echo "$as_me: program exited with status $ac_status" >&5
  10596. echo "$as_me: failed program was:" >&5
  10597. sed 's/^/| /' conftest.$ac_ext >&5
  10598. ( exit $ac_status )
  10599. ac_cv_func_stat_empty_string_bug=no
  10600. fi
  10601. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10602. fi
  10603. fi
  10604. echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  10605. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
  10606. if test $ac_cv_func_stat_empty_string_bug = yes; then
  10607. case $LIBOBJS in
  10608. "stat.$ac_objext" | \
  10609. *" stat.$ac_objext" | \
  10610. "stat.$ac_objext "* | \
  10611. *" stat.$ac_objext "* ) ;;
  10612. *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
  10613. esac
  10614. cat >>confdefs.h <<_ACEOF
  10615. #define HAVE_STAT_EMPTY_STRING_BUG 1
  10616. _ACEOF
  10617. fi
  10618. for ac_func in strftime
  10619. do
  10620. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10621. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10622. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10623. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10624. echo $ECHO_N "(cached) $ECHO_C" >&6
  10625. else
  10626. cat >conftest.$ac_ext <<_ACEOF
  10627. /* confdefs.h. */
  10628. _ACEOF
  10629. cat confdefs.h >>conftest.$ac_ext
  10630. cat >>conftest.$ac_ext <<_ACEOF
  10631. /* end confdefs.h. */
  10632. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10633. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10634. #define $ac_func innocuous_$ac_func
  10635. /* System header to define __stub macros and hopefully few prototypes,
  10636. which can conflict with char $ac_func (); below.
  10637. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10638. <limits.h> exists even on freestanding compilers. */
  10639. #ifdef __STDC__
  10640. # include <limits.h>
  10641. #else
  10642. # include <assert.h>
  10643. #endif
  10644. #undef $ac_func
  10645. /* Override any gcc2 internal prototype to avoid an error. */
  10646. #ifdef __cplusplus
  10647. extern "C"
  10648. {
  10649. #endif
  10650. /* We use char because int might match the return type of a gcc2
  10651. builtin and then its argument prototype would still apply. */
  10652. char $ac_func ();
  10653. /* The GNU C library defines this for functions which it implements
  10654. to always fail with ENOSYS. Some functions are actually named
  10655. something starting with __ and the normal name is an alias. */
  10656. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10657. choke me
  10658. #else
  10659. char (*f) () = $ac_func;
  10660. #endif
  10661. #ifdef __cplusplus
  10662. }
  10663. #endif
  10664. int
  10665. main ()
  10666. {
  10667. return f != $ac_func;
  10668. ;
  10669. return 0;
  10670. }
  10671. _ACEOF
  10672. rm -f conftest.$ac_objext conftest$ac_exeext
  10673. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10674. (eval $ac_link) 2>conftest.er1
  10675. ac_status=$?
  10676. grep -v '^ *+' conftest.er1 >conftest.err
  10677. rm -f conftest.er1
  10678. cat conftest.err >&5
  10679. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10680. (exit $ac_status); } &&
  10681. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10682. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10683. (eval $ac_try) 2>&5
  10684. ac_status=$?
  10685. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10686. (exit $ac_status); }; } &&
  10687. { ac_try='test -s conftest$ac_exeext'
  10688. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10689. (eval $ac_try) 2>&5
  10690. ac_status=$?
  10691. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10692. (exit $ac_status); }; }; then
  10693. eval "$as_ac_var=yes"
  10694. else
  10695. echo "$as_me: failed program was:" >&5
  10696. sed 's/^/| /' conftest.$ac_ext >&5
  10697. eval "$as_ac_var=no"
  10698. fi
  10699. rm -f conftest.err conftest.$ac_objext \
  10700. conftest$ac_exeext conftest.$ac_ext
  10701. fi
  10702. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10703. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10704. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10705. cat >>confdefs.h <<_ACEOF
  10706. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10707. _ACEOF
  10708. else
  10709. # strftime is in -lintl on SCO UNIX.
  10710. echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  10711. echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
  10712. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  10713. echo $ECHO_N "(cached) $ECHO_C" >&6
  10714. else
  10715. ac_check_lib_save_LIBS=$LIBS
  10716. LIBS="-lintl $LIBS"
  10717. cat >conftest.$ac_ext <<_ACEOF
  10718. /* confdefs.h. */
  10719. _ACEOF
  10720. cat confdefs.h >>conftest.$ac_ext
  10721. cat >>conftest.$ac_ext <<_ACEOF
  10722. /* end confdefs.h. */
  10723. /* Override any gcc2 internal prototype to avoid an error. */
  10724. #ifdef __cplusplus
  10725. extern "C"
  10726. #endif
  10727. /* We use char because int might match the return type of a gcc2
  10728. builtin and then its argument prototype would still apply. */
  10729. char strftime ();
  10730. int
  10731. main ()
  10732. {
  10733. strftime ();
  10734. ;
  10735. return 0;
  10736. }
  10737. _ACEOF
  10738. rm -f conftest.$ac_objext conftest$ac_exeext
  10739. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10740. (eval $ac_link) 2>conftest.er1
  10741. ac_status=$?
  10742. grep -v '^ *+' conftest.er1 >conftest.err
  10743. rm -f conftest.er1
  10744. cat conftest.err >&5
  10745. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10746. (exit $ac_status); } &&
  10747. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10748. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10749. (eval $ac_try) 2>&5
  10750. ac_status=$?
  10751. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10752. (exit $ac_status); }; } &&
  10753. { ac_try='test -s conftest$ac_exeext'
  10754. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10755. (eval $ac_try) 2>&5
  10756. ac_status=$?
  10757. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10758. (exit $ac_status); }; }; then
  10759. ac_cv_lib_intl_strftime=yes
  10760. else
  10761. echo "$as_me: failed program was:" >&5
  10762. sed 's/^/| /' conftest.$ac_ext >&5
  10763. ac_cv_lib_intl_strftime=no
  10764. fi
  10765. rm -f conftest.err conftest.$ac_objext \
  10766. conftest$ac_exeext conftest.$ac_ext
  10767. LIBS=$ac_check_lib_save_LIBS
  10768. fi
  10769. echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  10770. echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
  10771. if test $ac_cv_lib_intl_strftime = yes; then
  10772. cat >>confdefs.h <<\_ACEOF
  10773. #define HAVE_STRFTIME 1
  10774. _ACEOF
  10775. LIBS="-lintl $LIBS"
  10776. fi
  10777. fi
  10778. done
  10779. #checkpoint
  10780. cat >confcache <<\_ACEOF
  10781. # This file is a shell script that caches the results of configure
  10782. # tests run on this system so they can be shared between configure
  10783. # scripts and configure runs, see configure's option --config-cache.
  10784. # It is not useful on other systems. If it contains results you don't
  10785. # want to keep, you may remove or edit it.
  10786. #
  10787. # config.status only pays attention to the cache file if you give it
  10788. # the --recheck option to rerun configure.
  10789. #
  10790. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10791. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10792. # following values.
  10793. _ACEOF
  10794. # The following way of writing the cache mishandles newlines in values,
  10795. # but we know of no workaround that is simple, portable, and efficient.
  10796. # So, don't put newlines in cache variables' values.
  10797. # Ultrix sh set writes to stderr and can't be redirected directly,
  10798. # and sets the high bit in the cache file unless we assign to the vars.
  10799. {
  10800. (set) 2>&1 |
  10801. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10802. *ac_space=\ *)
  10803. # `set' does not quote correctly, so add quotes (double-quote
  10804. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10805. sed -n \
  10806. "s/'/'\\\\''/g;
  10807. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10808. ;;
  10809. *)
  10810. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10811. sed -n \
  10812. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10813. ;;
  10814. esac;
  10815. } |
  10816. sed '
  10817. t clear
  10818. : clear
  10819. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10820. t end
  10821. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10822. : end' >>confcache
  10823. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10824. if test -w $cache_file; then
  10825. test "x$cache_file" != "x/dev/null"
  10826. cat confcache >$cache_file
  10827. else
  10828. echo "not updating unwritable cache $cache_file"
  10829. fi
  10830. fi
  10831. rm -f confcache
  10832. for ac_func in clock dprintf fsync getdtablesize getrusage inet_aton isascii gethostbyname2
  10833. do
  10834. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10835. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10836. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10837. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10838. echo $ECHO_N "(cached) $ECHO_C" >&6
  10839. else
  10840. cat >conftest.$ac_ext <<_ACEOF
  10841. /* confdefs.h. */
  10842. _ACEOF
  10843. cat confdefs.h >>conftest.$ac_ext
  10844. cat >>conftest.$ac_ext <<_ACEOF
  10845. /* end confdefs.h. */
  10846. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10847. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10848. #define $ac_func innocuous_$ac_func
  10849. /* System header to define __stub macros and hopefully few prototypes,
  10850. which can conflict with char $ac_func (); below.
  10851. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10852. <limits.h> exists even on freestanding compilers. */
  10853. #ifdef __STDC__
  10854. # include <limits.h>
  10855. #else
  10856. # include <assert.h>
  10857. #endif
  10858. #undef $ac_func
  10859. /* Override any gcc2 internal prototype to avoid an error. */
  10860. #ifdef __cplusplus
  10861. extern "C"
  10862. {
  10863. #endif
  10864. /* We use char because int might match the return type of a gcc2
  10865. builtin and then its argument prototype would still apply. */
  10866. char $ac_func ();
  10867. /* The GNU C library defines this for functions which it implements
  10868. to always fail with ENOSYS. Some functions are actually named
  10869. something starting with __ and the normal name is an alias. */
  10870. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10871. choke me
  10872. #else
  10873. char (*f) () = $ac_func;
  10874. #endif
  10875. #ifdef __cplusplus
  10876. }
  10877. #endif
  10878. int
  10879. main ()
  10880. {
  10881. return f != $ac_func;
  10882. ;
  10883. return 0;
  10884. }
  10885. _ACEOF
  10886. rm -f conftest.$ac_objext conftest$ac_exeext
  10887. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10888. (eval $ac_link) 2>conftest.er1
  10889. ac_status=$?
  10890. grep -v '^ *+' conftest.er1 >conftest.err
  10891. rm -f conftest.er1
  10892. cat conftest.err >&5
  10893. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10894. (exit $ac_status); } &&
  10895. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10896. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10897. (eval $ac_try) 2>&5
  10898. ac_status=$?
  10899. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10900. (exit $ac_status); }; } &&
  10901. { ac_try='test -s conftest$ac_exeext'
  10902. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10903. (eval $ac_try) 2>&5
  10904. ac_status=$?
  10905. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10906. (exit $ac_status); }; }; then
  10907. eval "$as_ac_var=yes"
  10908. else
  10909. echo "$as_me: failed program was:" >&5
  10910. sed 's/^/| /' conftest.$ac_ext >&5
  10911. eval "$as_ac_var=no"
  10912. fi
  10913. rm -f conftest.err conftest.$ac_objext \
  10914. conftest$ac_exeext conftest.$ac_ext
  10915. fi
  10916. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10917. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10918. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10919. cat >>confdefs.h <<_ACEOF
  10920. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10921. _ACEOF
  10922. fi
  10923. done
  10924. for ac_func in getipnodebyname memcpy memset random rename setpgid sigaction sigemptyset snprintf srandom
  10925. do
  10926. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10927. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10928. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10929. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10930. echo $ECHO_N "(cached) $ECHO_C" >&6
  10931. else
  10932. cat >conftest.$ac_ext <<_ACEOF
  10933. /* confdefs.h. */
  10934. _ACEOF
  10935. cat confdefs.h >>conftest.$ac_ext
  10936. cat >>conftest.$ac_ext <<_ACEOF
  10937. /* end confdefs.h. */
  10938. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10939. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10940. #define $ac_func innocuous_$ac_func
  10941. /* System header to define __stub macros and hopefully few prototypes,
  10942. which can conflict with char $ac_func (); below.
  10943. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10944. <limits.h> exists even on freestanding compilers. */
  10945. #ifdef __STDC__
  10946. # include <limits.h>
  10947. #else
  10948. # include <assert.h>
  10949. #endif
  10950. #undef $ac_func
  10951. /* Override any gcc2 internal prototype to avoid an error. */
  10952. #ifdef __cplusplus
  10953. extern "C"
  10954. {
  10955. #endif
  10956. /* We use char because int might match the return type of a gcc2
  10957. builtin and then its argument prototype would still apply. */
  10958. char $ac_func ();
  10959. /* The GNU C library defines this for functions which it implements
  10960. to always fail with ENOSYS. Some functions are actually named
  10961. something starting with __ and the normal name is an alias. */
  10962. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10963. choke me
  10964. #else
  10965. char (*f) () = $ac_func;
  10966. #endif
  10967. #ifdef __cplusplus
  10968. }
  10969. #endif
  10970. int
  10971. main ()
  10972. {
  10973. return f != $ac_func;
  10974. ;
  10975. return 0;
  10976. }
  10977. _ACEOF
  10978. rm -f conftest.$ac_objext conftest$ac_exeext
  10979. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10980. (eval $ac_link) 2>conftest.er1
  10981. ac_status=$?
  10982. grep -v '^ *+' conftest.er1 >conftest.err
  10983. rm -f conftest.er1
  10984. cat conftest.err >&5
  10985. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10986. (exit $ac_status); } &&
  10987. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10988. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10989. (eval $ac_try) 2>&5
  10990. ac_status=$?
  10991. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10992. (exit $ac_status); }; } &&
  10993. { ac_try='test -s conftest$ac_exeext'
  10994. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10995. (eval $ac_try) 2>&5
  10996. ac_status=$?
  10997. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10998. (exit $ac_status); }; }; then
  10999. eval "$as_ac_var=yes"
  11000. else
  11001. echo "$as_me: failed program was:" >&5
  11002. sed 's/^/| /' conftest.$ac_ext >&5
  11003. eval "$as_ac_var=no"
  11004. fi
  11005. rm -f conftest.err conftest.$ac_objext \
  11006. conftest$ac_exeext conftest.$ac_ext
  11007. fi
  11008. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  11009. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  11010. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11011. cat >>confdefs.h <<_ACEOF
  11012. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11013. _ACEOF
  11014. fi
  11015. done
  11016. #checkpoint
  11017. cat >confcache <<\_ACEOF
  11018. # This file is a shell script that caches the results of configure
  11019. # tests run on this system so they can be shared between configure
  11020. # scripts and configure runs, see configure's option --config-cache.
  11021. # It is not useful on other systems. If it contains results you don't
  11022. # want to keep, you may remove or edit it.
  11023. #
  11024. # config.status only pays attention to the cache file if you give it
  11025. # the --recheck option to rerun configure.
  11026. #
  11027. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11028. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11029. # following values.
  11030. _ACEOF
  11031. # The following way of writing the cache mishandles newlines in values,
  11032. # but we know of no workaround that is simple, portable, and efficient.
  11033. # So, don't put newlines in cache variables' values.
  11034. # Ultrix sh set writes to stderr and can't be redirected directly,
  11035. # and sets the high bit in the cache file unless we assign to the vars.
  11036. {
  11037. (set) 2>&1 |
  11038. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  11039. *ac_space=\ *)
  11040. # `set' does not quote correctly, so add quotes (double-quote
  11041. # substitution turns \\\\ into \\, and sed turns \\ into \).
  11042. sed -n \
  11043. "s/'/'\\\\''/g;
  11044. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11045. ;;
  11046. *)
  11047. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11048. sed -n \
  11049. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  11050. ;;
  11051. esac;
  11052. } |
  11053. sed '
  11054. t clear
  11055. : clear
  11056. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11057. t end
  11058. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11059. : end' >>confcache
  11060. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  11061. if test -w $cache_file; then
  11062. test "x$cache_file" != "x/dev/null"
  11063. cat confcache >$cache_file
  11064. else
  11065. echo "not updating unwritable cache $cache_file"
  11066. fi
  11067. fi
  11068. rm -f confcache
  11069. for ac_func in strcasecmp strncasecmp vsnprintf
  11070. do
  11071. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11072. echo "$as_me:$LINENO: checking for $ac_func" >&5
  11073. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  11074. if eval "test \"\${$as_ac_var+set}\" = set"; then
  11075. echo $ECHO_N "(cached) $ECHO_C" >&6
  11076. else
  11077. cat >conftest.$ac_ext <<_ACEOF
  11078. /* confdefs.h. */
  11079. _ACEOF
  11080. cat confdefs.h >>conftest.$ac_ext
  11081. cat >>conftest.$ac_ext <<_ACEOF
  11082. /* end confdefs.h. */
  11083. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11084. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11085. #define $ac_func innocuous_$ac_func
  11086. /* System header to define __stub macros and hopefully few prototypes,
  11087. which can conflict with char $ac_func (); below.
  11088. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11089. <limits.h> exists even on freestanding compilers. */
  11090. #ifdef __STDC__
  11091. # include <limits.h>
  11092. #else
  11093. # include <assert.h>
  11094. #endif
  11095. #undef $ac_func
  11096. /* Override any gcc2 internal prototype to avoid an error. */
  11097. #ifdef __cplusplus
  11098. extern "C"
  11099. {
  11100. #endif
  11101. /* We use char because int might match the return type of a gcc2
  11102. builtin and then its argument prototype would still apply. */
  11103. char $ac_func ();
  11104. /* The GNU C library defines this for functions which it implements
  11105. to always fail with ENOSYS. Some functions are actually named
  11106. something starting with __ and the normal name is an alias. */
  11107. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  11108. choke me
  11109. #else
  11110. char (*f) () = $ac_func;
  11111. #endif
  11112. #ifdef __cplusplus
  11113. }
  11114. #endif
  11115. int
  11116. main ()
  11117. {
  11118. return f != $ac_func;
  11119. ;
  11120. return 0;
  11121. }
  11122. _ACEOF
  11123. rm -f conftest.$ac_objext conftest$ac_exeext
  11124. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11125. (eval $ac_link) 2>conftest.er1
  11126. ac_status=$?
  11127. grep -v '^ *+' conftest.er1 >conftest.err
  11128. rm -f conftest.er1
  11129. cat conftest.err >&5
  11130. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11131. (exit $ac_status); } &&
  11132. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  11133. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11134. (eval $ac_try) 2>&5
  11135. ac_status=$?
  11136. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11137. (exit $ac_status); }; } &&
  11138. { ac_try='test -s conftest$ac_exeext'
  11139. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11140. (eval $ac_try) 2>&5
  11141. ac_status=$?
  11142. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11143. (exit $ac_status); }; }; then
  11144. eval "$as_ac_var=yes"
  11145. else
  11146. echo "$as_me: failed program was:" >&5
  11147. sed 's/^/| /' conftest.$ac_ext >&5
  11148. eval "$as_ac_var=no"
  11149. fi
  11150. rm -f conftest.err conftest.$ac_objext \
  11151. conftest$ac_exeext conftest.$ac_ext
  11152. fi
  11153. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  11154. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  11155. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11156. cat >>confdefs.h <<_ACEOF
  11157. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11158. _ACEOF
  11159. fi
  11160. done
  11161. #autoscan suggested this....
  11162. #These are recommended by autoscan, but no code supports it currently
  11163. #AC_CHECK_FUNCS([alarm bzero dup2 getcwd gethostbyaddr gethostbyname gethostname getpass gettimeofday inet_ntoa mbrlen mkdir munmap realpath select setlocale socket strchr strerror strpbrk strrchr strstr strtol tzset])
  11164. for ac_func in vsprintf
  11165. do
  11166. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11167. echo "$as_me:$LINENO: checking for $ac_func" >&5
  11168. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  11169. if eval "test \"\${$as_ac_var+set}\" = set"; then
  11170. echo $ECHO_N "(cached) $ECHO_C" >&6
  11171. else
  11172. cat >conftest.$ac_ext <<_ACEOF
  11173. /* confdefs.h. */
  11174. _ACEOF
  11175. cat confdefs.h >>conftest.$ac_ext
  11176. cat >>conftest.$ac_ext <<_ACEOF
  11177. /* end confdefs.h. */
  11178. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11179. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11180. #define $ac_func innocuous_$ac_func
  11181. /* System header to define __stub macros and hopefully few prototypes,
  11182. which can conflict with char $ac_func (); below.
  11183. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11184. <limits.h> exists even on freestanding compilers. */
  11185. #ifdef __STDC__
  11186. # include <limits.h>
  11187. #else
  11188. # include <assert.h>
  11189. #endif
  11190. #undef $ac_func
  11191. /* Override any gcc2 internal prototype to avoid an error. */
  11192. #ifdef __cplusplus
  11193. extern "C"
  11194. {
  11195. #endif
  11196. /* We use char because int might match the return type of a gcc2
  11197. builtin and then its argument prototype would still apply. */
  11198. char $ac_func ();
  11199. /* The GNU C library defines this for functions which it implements
  11200. to always fail with ENOSYS. Some functions are actually named
  11201. something starting with __ and the normal name is an alias. */
  11202. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  11203. choke me
  11204. #else
  11205. char (*f) () = $ac_func;
  11206. #endif
  11207. #ifdef __cplusplus
  11208. }
  11209. #endif
  11210. int
  11211. main ()
  11212. {
  11213. return f != $ac_func;
  11214. ;
  11215. return 0;
  11216. }
  11217. _ACEOF
  11218. rm -f conftest.$ac_objext conftest$ac_exeext
  11219. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11220. (eval $ac_link) 2>conftest.er1
  11221. ac_status=$?
  11222. grep -v '^ *+' conftest.er1 >conftest.err
  11223. rm -f conftest.er1
  11224. cat conftest.err >&5
  11225. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11226. (exit $ac_status); } &&
  11227. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  11228. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11229. (eval $ac_try) 2>&5
  11230. ac_status=$?
  11231. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11232. (exit $ac_status); }; } &&
  11233. { ac_try='test -s conftest$ac_exeext'
  11234. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11235. (eval $ac_try) 2>&5
  11236. ac_status=$?
  11237. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11238. (exit $ac_status); }; }; then
  11239. eval "$as_ac_var=yes"
  11240. else
  11241. echo "$as_me: failed program was:" >&5
  11242. sed 's/^/| /' conftest.$ac_ext >&5
  11243. eval "$as_ac_var=no"
  11244. fi
  11245. rm -f conftest.err conftest.$ac_objext \
  11246. conftest$ac_exeext conftest.$ac_ext
  11247. fi
  11248. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  11249. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  11250. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11251. cat >>confdefs.h <<_ACEOF
  11252. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11253. _ACEOF
  11254. fi
  11255. done
  11256. if test "$ac_cv_func_vsprintf" = "no"
  11257. then
  11258. cat << 'EOF' >&2
  11259. configure: error:
  11260. Your system does not have the sprintf/vsprintf libraries.
  11261. These are required to compile almost anything. Sorry.
  11262. EOF
  11263. exit 1
  11264. fi
  11265. for ac_func in uname
  11266. do
  11267. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11268. echo "$as_me:$LINENO: checking for $ac_func" >&5
  11269. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  11270. if eval "test \"\${$as_ac_var+set}\" = set"; then
  11271. echo $ECHO_N "(cached) $ECHO_C" >&6
  11272. else
  11273. cat >conftest.$ac_ext <<_ACEOF
  11274. /* confdefs.h. */
  11275. _ACEOF
  11276. cat confdefs.h >>conftest.$ac_ext
  11277. cat >>conftest.$ac_ext <<_ACEOF
  11278. /* end confdefs.h. */
  11279. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11280. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11281. #define $ac_func innocuous_$ac_func
  11282. /* System header to define __stub macros and hopefully few prototypes,
  11283. which can conflict with char $ac_func (); below.
  11284. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11285. <limits.h> exists even on freestanding compilers. */
  11286. #ifdef __STDC__
  11287. # include <limits.h>
  11288. #else
  11289. # include <assert.h>
  11290. #endif
  11291. #undef $ac_func
  11292. /* Override any gcc2 internal prototype to avoid an error. */
  11293. #ifdef __cplusplus
  11294. extern "C"
  11295. {
  11296. #endif
  11297. /* We use char because int might match the return type of a gcc2
  11298. builtin and then its argument prototype would still apply. */
  11299. char $ac_func ();
  11300. /* The GNU C library defines this for functions which it implements
  11301. to always fail with ENOSYS. Some functions are actually named
  11302. something starting with __ and the normal name is an alias. */
  11303. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  11304. choke me
  11305. #else
  11306. char (*f) () = $ac_func;
  11307. #endif
  11308. #ifdef __cplusplus
  11309. }
  11310. #endif
  11311. int
  11312. main ()
  11313. {
  11314. return f != $ac_func;
  11315. ;
  11316. return 0;
  11317. }
  11318. _ACEOF
  11319. rm -f conftest.$ac_objext conftest$ac_exeext
  11320. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11321. (eval $ac_link) 2>conftest.er1
  11322. ac_status=$?
  11323. grep -v '^ *+' conftest.er1 >conftest.err
  11324. rm -f conftest.er1
  11325. cat conftest.err >&5
  11326. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11327. (exit $ac_status); } &&
  11328. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  11329. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11330. (eval $ac_try) 2>&5
  11331. ac_status=$?
  11332. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11333. (exit $ac_status); }; } &&
  11334. { ac_try='test -s conftest$ac_exeext'
  11335. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11336. (eval $ac_try) 2>&5
  11337. ac_status=$?
  11338. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11339. (exit $ac_status); }; }; then
  11340. eval "$as_ac_var=yes"
  11341. else
  11342. echo "$as_me: failed program was:" >&5
  11343. sed 's/^/| /' conftest.$ac_ext >&5
  11344. eval "$as_ac_var=no"
  11345. fi
  11346. rm -f conftest.err conftest.$ac_objext \
  11347. conftest$ac_exeext conftest.$ac_ext
  11348. fi
  11349. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  11350. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  11351. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11352. cat >>confdefs.h <<_ACEOF
  11353. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11354. _ACEOF
  11355. fi
  11356. done
  11357. if test "$ac_cv_func_uname" = "no"
  11358. then
  11359. cat << 'EOF' >&2
  11360. configure: error:
  11361. Your system does not have the uname() function.
  11362. This is required for the botpack.
  11363. EOF
  11364. exit 1
  11365. fi
  11366. # Make sure we have stdc headers, since we can't compile without them
  11367. if test "$ac_cv_header_stdc" = "no"
  11368. then
  11369. cat << 'EOF' >&2
  11370. configure: error:
  11371. Your system must support ANSI C Header files.
  11372. These are required for the language support. Sorry.
  11373. EOF
  11374. exit 1
  11375. fi
  11376. #checkpoint
  11377. cat >confcache <<\_ACEOF
  11378. # This file is a shell script that caches the results of configure
  11379. # tests run on this system so they can be shared between configure
  11380. # scripts and configure runs, see configure's option --config-cache.
  11381. # It is not useful on other systems. If it contains results you don't
  11382. # want to keep, you may remove or edit it.
  11383. #
  11384. # config.status only pays attention to the cache file if you give it
  11385. # the --recheck option to rerun configure.
  11386. #
  11387. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11388. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11389. # following values.
  11390. _ACEOF
  11391. # The following way of writing the cache mishandles newlines in values,
  11392. # but we know of no workaround that is simple, portable, and efficient.
  11393. # So, don't put newlines in cache variables' values.
  11394. # Ultrix sh set writes to stderr and can't be redirected directly,
  11395. # and sets the high bit in the cache file unless we assign to the vars.
  11396. {
  11397. (set) 2>&1 |
  11398. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  11399. *ac_space=\ *)
  11400. # `set' does not quote correctly, so add quotes (double-quote
  11401. # substitution turns \\\\ into \\, and sed turns \\ into \).
  11402. sed -n \
  11403. "s/'/'\\\\''/g;
  11404. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11405. ;;
  11406. *)
  11407. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11408. sed -n \
  11409. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  11410. ;;
  11411. esac;
  11412. } |
  11413. sed '
  11414. t clear
  11415. : clear
  11416. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11417. t end
  11418. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11419. : end' >>confcache
  11420. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  11421. if test -w $cache_file; then
  11422. test "x$cache_file" != "x/dev/null"
  11423. cat confcache >$cache_file
  11424. else
  11425. echo "not updating unwritable cache $cache_file"
  11426. fi
  11427. fi
  11428. rm -f confcache
  11429. # Where is Tcl? Is it here?
  11430. # ---------- begin robey's Tcl thingies
  11431. # (well, what used to be robey's Tcl thingies...)
  11432. # Latest tested Tcl version to recommend if Tcl isn't found
  11433. tclrecommendver="8.4"
  11434. # Site recommended to download Tcl from
  11435. tclrecommendsite="http://www.tcl.tk/software/tcltk/download84.html"
  11436. # Tcl library filename prefixes (also used for Tcl header dir on FreeBSD)
  11437. tcllibnames="tcl tcl8.4 tcl84 tcl8.3 tcl83 tcl8.2 tcl82 tcl8.1 tcl81 \
  11438. tcl8.0 tcl80"
  11439. # Tcl library filename suffixes
  11440. tcllibextensions=".a .so .so.1 .so.1.0 .so.1.2 .sl .dll .dylib"
  11441. # Tcl library search paths
  11442. tcllibpaths="${HOME}/lib ${HOME}/tcl/lib ${HOME} \
  11443. /usr/local/lib /usr/local/pkgs/tcl/lib \
  11444. /usr/lib /lib /usr/i486-linuxaout/lib \
  11445. /beos/system/lib /sys/lib"
  11446. # Tcl header filenames
  11447. tclheadernames="tcl.h"
  11448. # Tcl header search paths
  11449. tclheaderpaths="${HOME}/include ${HOME}/tcl/include ${HOME} \
  11450. /usr/local/include /usr/local/pkgs/tcl/include \
  11451. /usr/include /beos/system/include /beos/devel/include \
  11452. /sys/include"
  11453. # oohh new configure --variables for those with multiple Tcl libs
  11454. # Check whether --with-tcllib or --without-tcllib was given.
  11455. if test "${with_tcllib+set}" = set; then
  11456. withval="$with_tcllib"
  11457. tcllibname="$withval"
  11458. fi;
  11459. # Check whether --with-tclinc or --without-tclinc was given.
  11460. if test "${with_tclinc+set}" = set; then
  11461. withval="$with_tclinc"
  11462. tclincname="$withval"
  11463. fi;
  11464. WARN=0
  11465. # Make sure either both or neither $tcllibname and $tclincname are set
  11466. if test ! "${tcllibname-x}" = "x"
  11467. then
  11468. if test "${tclincname-x}" = "x"
  11469. then
  11470. WARN=1
  11471. tcllibname=""
  11472. TCLLIB=""
  11473. TCLINC=""
  11474. fi
  11475. else
  11476. if test ! "${tclincname-x}" = "x"
  11477. then
  11478. WARN=1
  11479. tclincname=""
  11480. TCLLIB=""
  11481. TCLINC=""
  11482. fi
  11483. fi
  11484. if test "$WARN" = 1
  11485. then
  11486. cat << 'EOF' >&2
  11487. configure: warning:
  11488. You must specify both --with-tcllib and --with-tclinc for them to work.
  11489. configure will now attempt to autodetect both the Tcl library and header...
  11490. EOF
  11491. fi
  11492. WARN=0
  11493. # Make sure either both or neither $TCLLIB and $TCLINC are set
  11494. if test ! "${TCLLIB-x}" = "x"
  11495. then
  11496. if test "${TCLINC-x}" = "x"
  11497. then
  11498. WARN=1
  11499. WVAR1=TCLLIB
  11500. WVAR2=TCLINC
  11501. TCLLIB=""
  11502. fi
  11503. else
  11504. if test ! "${TCLINC-x}" = "x"
  11505. then
  11506. WARN=1
  11507. WVAR1=TCLINC
  11508. WVAR2=TCLLIB
  11509. TCLINC=""
  11510. fi
  11511. fi
  11512. if test "$WARN" = 1
  11513. then
  11514. cat << EOF >&2
  11515. configure: warning:
  11516. Environment variable $WVAR1 was set, but I did not detect ${WVAR2}.
  11517. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  11518. configure will now attempt to autodetect both the Tcl library and header...
  11519. EOF
  11520. fi
  11521. # Look for Tcl library: if $tcllibname is set, check there first
  11522. if test ! "${tcllibname-x}" = "x"
  11523. then
  11524. if test -f "$tcllibname" && test -r "$tcllibname"
  11525. then
  11526. TCLLIB=`echo $tcllibname | sed 's%/[^/][^/]*$%%'`
  11527. TCLLIBFN=`$BASENAME $tcllibname | cut -c4-`
  11528. TCLLIBEXT=".`echo $TCLLIBFN | $AWK '{j=split($1, i, "."); print i[j]}'`"
  11529. TCLLIBFNS=`$BASENAME $tcllibname $TCLLIBEXT | cut -c4-`
  11530. else
  11531. cat << EOF >&2
  11532. configure: warning:
  11533. The file '$tcllibname' given to option --with-tcllib is not valid.
  11534. configure will now attempt to autodetect both the Tcl library and header...
  11535. EOF
  11536. tcllibname=""
  11537. tclincname=""
  11538. TCLLIB=""
  11539. TCLLIBFN=""
  11540. TCLINC=""
  11541. TCLINCFN=""
  11542. fi
  11543. fi
  11544. # Look for Tcl header: if $tclincname is set, check there first
  11545. if test ! "${tclincname-x}" = "x"
  11546. then
  11547. if test -f "$tclincname" && test -r "$tclincname"
  11548. then
  11549. TCLINC=`echo $tclincname | sed 's%/[^/][^/]*$%%'`
  11550. TCLINCFN=`$BASENAME $tclincname`
  11551. else
  11552. cat << EOF >&2
  11553. configure: warning:
  11554. The file '$tclincname' given to option --with-tclinc is not valid.
  11555. configure will now attempt to autodetect both the Tcl library and header...
  11556. EOF
  11557. tcllibname=""
  11558. tclincname=""
  11559. TCLLIB=""
  11560. TCLLIBFN=""
  11561. TCLINC=""
  11562. TCLINCFN=""
  11563. fi
  11564. fi
  11565. # Look for Tcl library: if $TCLLIB is set, check there first
  11566. if test "${TCLLIBFN-x}" = "x"
  11567. then
  11568. if test ! "${TCLLIB-x}" = "x"
  11569. then
  11570. if test -d "$TCLLIB"
  11571. then
  11572. for tcllibfns in $tcllibnames
  11573. do
  11574. for tcllibext in $tcllibextensions
  11575. do
  11576. if test -r "$TCLLIB/lib$tcllibfns$tcllibext"
  11577. then
  11578. TCLLIBFN="$tcllibfns$tcllibext"
  11579. TCLLIBEXT="$tcllibext"
  11580. TCLLIBFNS="$tcllibfns"
  11581. break 2
  11582. fi
  11583. done
  11584. done
  11585. fi
  11586. if test "${TCLLIBFN-x}" = "x"
  11587. then
  11588. cat << 'EOF' >&2
  11589. configure: warning:
  11590. Environment variable TCLLIB was set, but incorrect.
  11591. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  11592. configure will now attempt to autodetect both the Tcl library and header...
  11593. EOF
  11594. TCLLIB=""
  11595. TCLLIBFN=""
  11596. TCLINC=""
  11597. TCLINCFN=""
  11598. fi
  11599. fi
  11600. fi
  11601. # Look for Tcl header: if $TCLINC is set, check there first
  11602. if test "${TCLINCFN-x}" = "x"
  11603. then
  11604. if test ! "${TCLINC-x}" = "x"
  11605. then
  11606. if test -d "$TCLINC"
  11607. then
  11608. for tclheaderfn in $tclheadernames
  11609. do
  11610. if test -r "$TCLINC/$tclheaderfn"
  11611. then
  11612. TCLINCFN="$tclheaderfn"
  11613. break
  11614. fi
  11615. done
  11616. fi
  11617. if test "${TCLINCFN-x}" = "x"
  11618. then
  11619. cat << 'EOF' >&2
  11620. configure: warning:
  11621. Environment variable TCLINC was set, but incorrect.
  11622. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  11623. configure will now attempt to autodetect both the Tcl library and header...
  11624. EOF
  11625. TCLLIB=""
  11626. TCLLIBFN=""
  11627. TCLINC=""
  11628. TCLINCFN=""
  11629. fi
  11630. fi
  11631. fi
  11632. echo "$as_me:$LINENO: checking for Tcl library" >&5
  11633. echo $ECHO_N "checking for Tcl library... $ECHO_C" >&6
  11634. # Attempt autodetect for $TCLLIBFN if it's not set
  11635. if test ! "${TCLLIBFN-x}" = "x"
  11636. then
  11637. echo "$as_me:$LINENO: result: using $TCLLIB/lib$TCLLIBFN" >&5
  11638. echo "${ECHO_T}using $TCLLIB/lib$TCLLIBFN" >&6
  11639. else
  11640. for tcllibfns in $tcllibnames
  11641. do
  11642. for tcllibext in $tcllibextensions
  11643. do
  11644. for tcllibpath in $tcllibpaths
  11645. do
  11646. if test -r "$tcllibpath/lib$tcllibfns$tcllibext"
  11647. then
  11648. echo "$as_me:$LINENO: result: found $tcllibpath/lib$tcllibfns$tcllibext" >&5
  11649. echo "${ECHO_T}found $tcllibpath/lib$tcllibfns$tcllibext" >&6
  11650. TCLLIB="$tcllibpath"
  11651. TCLLIBFN="$tcllibfns$tcllibext"
  11652. TCLLIBEXT="$tcllibext"
  11653. TCLLIBFNS="$tcllibfns"
  11654. break 3
  11655. fi
  11656. done
  11657. done
  11658. done
  11659. fi
  11660. # Show if $TCLLIBFN wasn't found
  11661. if test "${TCLLIBFN-x}" = "x"
  11662. then
  11663. echo "$as_me:$LINENO: result: not found" >&5
  11664. echo "${ECHO_T}not found" >&6
  11665. fi
  11666. echo "$as_me:$LINENO: checking for Tcl header" >&5
  11667. echo $ECHO_N "checking for Tcl header... $ECHO_C" >&6
  11668. # Attempt autodetect for $TCLINCFN if it's not set
  11669. if test ! "${TCLINCFN-x}" = "x"
  11670. then
  11671. echo "$as_me:$LINENO: result: using $TCLINC/$TCLINCFN" >&5
  11672. echo "${ECHO_T}using $TCLINC/$TCLINCFN" >&6
  11673. else
  11674. for tclheaderpath in $tclheaderpaths
  11675. do
  11676. for tclheaderfn in $tclheadernames
  11677. do
  11678. if test -r "$tclheaderpath/$tclheaderfn"
  11679. then
  11680. echo "$as_me:$LINENO: result: found $tclheaderpath/$tclheaderfn" >&5
  11681. echo "${ECHO_T}found $tclheaderpath/$tclheaderfn" >&6
  11682. TCLINC="$tclheaderpath"
  11683. TCLINCFN="$tclheaderfn"
  11684. break 2
  11685. fi
  11686. done
  11687. done
  11688. # FreeBSD hack ...
  11689. if test "${TCLINCFN-x}" = "x"
  11690. then
  11691. for tcllibfns in $tcllibnames
  11692. do
  11693. for tclheaderpath in $tclheaderpaths
  11694. do
  11695. for tclheaderfn in $tclheadernames
  11696. do
  11697. if test -r "$tclheaderpath/$tcllibfns/$tclheaderfn"
  11698. then
  11699. echo "$as_me:$LINENO: result: found $tclheaderpath/$tcllibfns/$tclheaderfn" >&5
  11700. echo "${ECHO_T}found $tclheaderpath/$tcllibfns/$tclheaderfn" >&6
  11701. TCLINC="$tclheaderpath/$tcllibfns"
  11702. TCLINCFN="$tclheaderfn"
  11703. break 3
  11704. fi
  11705. done
  11706. done
  11707. done
  11708. fi
  11709. fi
  11710. # Show if $TCLINCFN wasn't found
  11711. if test "${TCLINCFN-x}" = "x"
  11712. then
  11713. echo "$as_me:$LINENO: result: not found" >&5
  11714. echo "${ECHO_T}not found" >&6
  11715. fi
  11716. echo "$as_me:$LINENO: checking whether the Tcl system has changed" >&5
  11717. echo $ECHO_N "checking whether the Tcl system has changed... $ECHO_C" >&6
  11718. egg_tcl_changed=yes
  11719. egg_tcl_id="$TCLLIB:$TCLLIBFN:$TCLINC:$TCLINCFN"
  11720. if test ! "$egg_tcl_id" = ":::"
  11721. then
  11722. egg_tcl_cached=yes
  11723. if test "${egg_cv_var_tcl_id+set}" = set; then
  11724. echo $ECHO_N "(cached) $ECHO_C" >&6
  11725. else
  11726. egg_cv_var_tcl_id="$egg_tcl_id"
  11727. egg_tcl_cached=no
  11728. fi
  11729. if test "$egg_tcl_cached" = "yes"
  11730. then
  11731. if test "${egg_cv_var_tcl_id-x}" = "${egg_tcl_id-x}"
  11732. then
  11733. egg_tcl_changed=no
  11734. else
  11735. egg_cv_var_tcl_id="$egg_tcl_id"
  11736. fi
  11737. fi
  11738. fi
  11739. if test "$egg_tcl_changed" = "yes"
  11740. then
  11741. echo "$as_me:$LINENO: result: yes" >&5
  11742. echo "${ECHO_T}yes" >&6
  11743. else
  11744. echo "$as_me:$LINENO: result: no" >&5
  11745. echo "${ECHO_T}no" >&6
  11746. fi
  11747. #checkpoint
  11748. cat >confcache <<\_ACEOF
  11749. # This file is a shell script that caches the results of configure
  11750. # tests run on this system so they can be shared between configure
  11751. # scripts and configure runs, see configure's option --config-cache.
  11752. # It is not useful on other systems. If it contains results you don't
  11753. # want to keep, you may remove or edit it.
  11754. #
  11755. # config.status only pays attention to the cache file if you give it
  11756. # the --recheck option to rerun configure.
  11757. #
  11758. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11759. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11760. # following values.
  11761. _ACEOF
  11762. # The following way of writing the cache mishandles newlines in values,
  11763. # but we know of no workaround that is simple, portable, and efficient.
  11764. # So, don't put newlines in cache variables' values.
  11765. # Ultrix sh set writes to stderr and can't be redirected directly,
  11766. # and sets the high bit in the cache file unless we assign to the vars.
  11767. {
  11768. (set) 2>&1 |
  11769. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  11770. *ac_space=\ *)
  11771. # `set' does not quote correctly, so add quotes (double-quote
  11772. # substitution turns \\\\ into \\, and sed turns \\ into \).
  11773. sed -n \
  11774. "s/'/'\\\\''/g;
  11775. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11776. ;;
  11777. *)
  11778. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11779. sed -n \
  11780. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  11781. ;;
  11782. esac;
  11783. } |
  11784. sed '
  11785. t clear
  11786. : clear
  11787. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11788. t end
  11789. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11790. : end' >>confcache
  11791. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  11792. if test -w $cache_file; then
  11793. test "x$cache_file" != "x/dev/null"
  11794. cat confcache >$cache_file
  11795. else
  11796. echo "not updating unwritable cache $cache_file"
  11797. fi
  11798. fi
  11799. rm -f confcache
  11800. # Both TCLLIBFN & TCLINCFN must be set, or we bail
  11801. TCL_FOUND=0
  11802. if test ! "${TCLLIBFN-x}" = "x" && test ! "${TCLINCFN-x}" = "x"
  11803. then
  11804. TCL_FOUND=1
  11805. # Check Tcl's version
  11806. if test "$egg_tcl_changed" = "yes"
  11807. then
  11808. unset egg_cv_var_tcl_version
  11809. fi
  11810. echo "$as_me:$LINENO: checking for Tcl version" >&5
  11811. echo $ECHO_N "checking for Tcl version... $ECHO_C" >&6
  11812. if test "${egg_cv_var_tcl_version+set}" = set; then
  11813. echo $ECHO_N "(cached) $ECHO_C" >&6
  11814. else
  11815. egg_cv_var_tcl_version=`grep TCL_VERSION $TCLINC/$TCLINCFN | $HEAD_1 | $AWK '{gsub(/\"/, "", $3); print $3}'`
  11816. fi
  11817. if test ! "${egg_cv_var_tcl_version-x}" = "x"
  11818. then
  11819. echo "$as_me:$LINENO: result: $egg_cv_var_tcl_version" >&5
  11820. echo "${ECHO_T}$egg_cv_var_tcl_version" >&6
  11821. else
  11822. echo "$as_me:$LINENO: result: not found" >&5
  11823. echo "${ECHO_T}not found" >&6
  11824. TCL_FOUND=0
  11825. fi
  11826. # Check Tcl's patch level (if available)
  11827. if test "$egg_tcl_changed" = "yes"
  11828. then
  11829. unset egg_cv_var_tcl_patch_level
  11830. fi
  11831. echo "$as_me:$LINENO: checking for Tcl patch level" >&5
  11832. echo $ECHO_N "checking for Tcl patch level... $ECHO_C" >&6
  11833. if test "${egg_cv_var_tcl_patch_level+set}" = set; then
  11834. echo $ECHO_N "(cached) $ECHO_C" >&6
  11835. else
  11836. eval "egg_cv_var_tcl_patch_level=`grep TCL_PATCH_LEVEL $TCLINC/$TCLINCFN | $HEAD_1 | $AWK '{gsub(/\"/, "", $3); print $3}'`"
  11837. fi
  11838. if test ! "${egg_cv_var_tcl_patch_level-x}" = "x"
  11839. then
  11840. echo "$as_me:$LINENO: result: $egg_cv_var_tcl_patch_level" >&5
  11841. echo "${ECHO_T}$egg_cv_var_tcl_patch_level" >&6
  11842. else
  11843. egg_cv_var_tcl_patch_level="unknown"
  11844. echo "$as_me:$LINENO: result: unknown" >&5
  11845. echo "${ECHO_T}unknown" >&6
  11846. fi
  11847. fi
  11848. # Check if we found Tcl's version
  11849. if test "$TCL_FOUND" = 0
  11850. then
  11851. cat << 'EOF' >&2
  11852. configure: error:
  11853. I can't find Tcl on this system.
  11854. The download website is at:
  11855. http://www.tcl.tk/software/tcltk/download84.html
  11856. A nice direct link for the tarball is:
  11857. http://aleron.dl.sourceforge.net/sourceforge/tcl/tcl8.4.4-src.tar.gz
  11858. OR
  11859. Just type: ./build -T
  11860. EOF
  11861. exit 1
  11862. fi
  11863. # Is this version of Tcl too old for us to use ?
  11864. TCL_VER_PRE80=`echo $egg_cv_var_tcl_version | $AWK '{split($1, i, "."); if (i[1] < 8) print "yes"; else print "no"}'`
  11865. if test "$TCL_VER_PRE80" = "yes"
  11866. then
  11867. cat << EOF >&2
  11868. configure: error:
  11869. Your Tcl version is much too old for Eggdrop to use.
  11870. I suggest you download and compile a more recent version.
  11871. The most reliable current version is $tclrecommendver and
  11872. can be downloaded from $tclrecommendsite
  11873. EOF
  11874. exit 1
  11875. fi
  11876. # Set variables for Tcl library tests
  11877. TCL_TEST_LIB="$TCLLIBFNS"
  11878. TCL_TEST_OTHERLIBS="-L$TCLLIB $EGG_MATH_LIB"
  11879. if test ! "${ac_cv_lib_pthread-x}" = "x"
  11880. then
  11881. TCL_TEST_OTHERLIBS="$TCL_TEST_OTHERLIBS $ac_cv_lib_pthread"
  11882. fi
  11883. if test "$egg_tcl_changed" = "yes"
  11884. then
  11885. unset egg_cv_var_tcl_free
  11886. fi
  11887. # Check for Tcl_Free()
  11888. as_ac_Lib=`echo "ac_cv_lib_$TCL_TEST_LIB''_Tcl_Free" | $as_tr_sh`
  11889. echo "$as_me:$LINENO: checking for Tcl_Free in -l$TCL_TEST_LIB" >&5
  11890. echo $ECHO_N "checking for Tcl_Free in -l$TCL_TEST_LIB... $ECHO_C" >&6
  11891. if eval "test \"\${$as_ac_Lib+set}\" = set"; then
  11892. echo $ECHO_N "(cached) $ECHO_C" >&6
  11893. else
  11894. ac_check_lib_save_LIBS=$LIBS
  11895. LIBS="-l$TCL_TEST_LIB $TCL_TEST_OTHERLIBS $LIBS"
  11896. cat >conftest.$ac_ext <<_ACEOF
  11897. /* confdefs.h. */
  11898. _ACEOF
  11899. cat confdefs.h >>conftest.$ac_ext
  11900. cat >>conftest.$ac_ext <<_ACEOF
  11901. /* end confdefs.h. */
  11902. /* Override any gcc2 internal prototype to avoid an error. */
  11903. #ifdef __cplusplus
  11904. extern "C"
  11905. #endif
  11906. /* We use char because int might match the return type of a gcc2
  11907. builtin and then its argument prototype would still apply. */
  11908. char Tcl_Free ();
  11909. int
  11910. main ()
  11911. {
  11912. Tcl_Free ();
  11913. ;
  11914. return 0;
  11915. }
  11916. _ACEOF
  11917. rm -f conftest.$ac_objext conftest$ac_exeext
  11918. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11919. (eval $ac_link) 2>conftest.er1
  11920. ac_status=$?
  11921. grep -v '^ *+' conftest.er1 >conftest.err
  11922. rm -f conftest.er1
  11923. cat conftest.err >&5
  11924. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11925. (exit $ac_status); } &&
  11926. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  11927. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11928. (eval $ac_try) 2>&5
  11929. ac_status=$?
  11930. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11931. (exit $ac_status); }; } &&
  11932. { ac_try='test -s conftest$ac_exeext'
  11933. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11934. (eval $ac_try) 2>&5
  11935. ac_status=$?
  11936. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11937. (exit $ac_status); }; }; then
  11938. eval "$as_ac_Lib=yes"
  11939. else
  11940. echo "$as_me: failed program was:" >&5
  11941. sed 's/^/| /' conftest.$ac_ext >&5
  11942. eval "$as_ac_Lib=no"
  11943. fi
  11944. rm -f conftest.err conftest.$ac_objext \
  11945. conftest$ac_exeext conftest.$ac_ext
  11946. LIBS=$ac_check_lib_save_LIBS
  11947. fi
  11948. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
  11949. echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
  11950. if test `eval echo '${'$as_ac_Lib'}'` = yes; then
  11951. egg_cv_var_tcl_free="yes"
  11952. else
  11953. egg_cv_var_tcl_free="no"
  11954. fi
  11955. if test "$egg_cv_var_tcl_free" = "yes"
  11956. then
  11957. cat >>confdefs.h <<\_ACEOF
  11958. #define HAVE_TCL_FREE 1
  11959. _ACEOF
  11960. fi
  11961. if test "$egg_tcl_changed" = "yes"
  11962. then
  11963. unset egg_cv_var_tcl_threaded
  11964. fi
  11965. # Check for TclpFinalizeThreadData()
  11966. as_ac_Lib=`echo "ac_cv_lib_$TCL_TEST_LIB''_TclpFinalizeThreadData" | $as_tr_sh`
  11967. echo "$as_me:$LINENO: checking for TclpFinalizeThreadData in -l$TCL_TEST_LIB" >&5
  11968. echo $ECHO_N "checking for TclpFinalizeThreadData in -l$TCL_TEST_LIB... $ECHO_C" >&6
  11969. if eval "test \"\${$as_ac_Lib+set}\" = set"; then
  11970. echo $ECHO_N "(cached) $ECHO_C" >&6
  11971. else
  11972. ac_check_lib_save_LIBS=$LIBS
  11973. LIBS="-l$TCL_TEST_LIB $TCL_TEST_OTHERLIBS $LIBS"
  11974. cat >conftest.$ac_ext <<_ACEOF
  11975. /* confdefs.h. */
  11976. _ACEOF
  11977. cat confdefs.h >>conftest.$ac_ext
  11978. cat >>conftest.$ac_ext <<_ACEOF
  11979. /* end confdefs.h. */
  11980. /* Override any gcc2 internal prototype to avoid an error. */
  11981. #ifdef __cplusplus
  11982. extern "C"
  11983. #endif
  11984. /* We use char because int might match the return type of a gcc2
  11985. builtin and then its argument prototype would still apply. */
  11986. char TclpFinalizeThreadData ();
  11987. int
  11988. main ()
  11989. {
  11990. TclpFinalizeThreadData ();
  11991. ;
  11992. return 0;
  11993. }
  11994. _ACEOF
  11995. rm -f conftest.$ac_objext conftest$ac_exeext
  11996. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11997. (eval $ac_link) 2>conftest.er1
  11998. ac_status=$?
  11999. grep -v '^ *+' conftest.er1 >conftest.err
  12000. rm -f conftest.er1
  12001. cat conftest.err >&5
  12002. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12003. (exit $ac_status); } &&
  12004. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  12005. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12006. (eval $ac_try) 2>&5
  12007. ac_status=$?
  12008. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12009. (exit $ac_status); }; } &&
  12010. { ac_try='test -s conftest$ac_exeext'
  12011. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12012. (eval $ac_try) 2>&5
  12013. ac_status=$?
  12014. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12015. (exit $ac_status); }; }; then
  12016. eval "$as_ac_Lib=yes"
  12017. else
  12018. echo "$as_me: failed program was:" >&5
  12019. sed 's/^/| /' conftest.$ac_ext >&5
  12020. eval "$as_ac_Lib=no"
  12021. fi
  12022. rm -f conftest.err conftest.$ac_objext \
  12023. conftest$ac_exeext conftest.$ac_ext
  12024. LIBS=$ac_check_lib_save_LIBS
  12025. fi
  12026. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
  12027. echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
  12028. if test `eval echo '${'$as_ac_Lib'}'` = yes; then
  12029. egg_cv_var_tcl_threaded="yes"
  12030. else
  12031. egg_cv_var_tcl_threaded="no"
  12032. fi
  12033. enable_tcl_threads=no
  12034. if test "$egg_cv_var_tcl_threaded" = "yes"
  12035. then
  12036. if test "$enable_tcl_threads" = "no"
  12037. then
  12038. cat << 'EOF' >&2
  12039. configure: warning:
  12040. You have disabled threads support on a system with a threaded Tcl library.
  12041. Tcl features that rely on scheduled events may not function properly.
  12042. EOF
  12043. fi
  12044. # Add pthread library to $LIBS if we need it
  12045. if test ! "${ac_cv_lib_pthread-x}" = "x"
  12046. then
  12047. LIBS="$ac_cv_lib_pthread $LIBS"
  12048. fi
  12049. fi
  12050. if test "$EGG_CYGWIN" = "yes"
  12051. then
  12052. TCL_REQS="$TCLLIB/lib$TCLLIBFN"
  12053. TCL_LIBS="-L$TCLLIB -l$TCLLIBFNS $EGG_MATH_LIB"
  12054. else
  12055. if test ! "$TCLLIBEXT" = ".a"
  12056. then
  12057. cat << 'EOF' >&2
  12058. configure: warning:
  12059. Your Tcl library is not compiled statically.
  12060. You will need to compile Tcl statically to successfully compile wraith.
  12061. EOF
  12062. exit 1
  12063. else
  12064. # Was the --with-tcllib option given ?
  12065. if test ! "${tcllibname-x}" = "x"
  12066. then
  12067. TCL_REQS="$TCLLIB/lib$TCLLIBFN"
  12068. TCL_LIBS="$TCLLIB/lib$TCLLIBFN $EGG_MATH_LIB"
  12069. else
  12070. TCL_REQS="$TCLLIB/lib$TCLLIBFN"
  12071. TCL_LIBS="-L$TCLLIB -l$TCLLIBFNS $EGG_MATH_LIB"
  12072. fi
  12073. fi
  12074. fi
  12075. ac_config_commands="$ac_config_commands replace-if-changed"
  12076. #checkpoint
  12077. cat >confcache <<\_ACEOF
  12078. # This file is a shell script that caches the results of configure
  12079. # tests run on this system so they can be shared between configure
  12080. # scripts and configure runs, see configure's option --config-cache.
  12081. # It is not useful on other systems. If it contains results you don't
  12082. # want to keep, you may remove or edit it.
  12083. #
  12084. # config.status only pays attention to the cache file if you give it
  12085. # the --recheck option to rerun configure.
  12086. #
  12087. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  12088. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  12089. # following values.
  12090. _ACEOF
  12091. # The following way of writing the cache mishandles newlines in values,
  12092. # but we know of no workaround that is simple, portable, and efficient.
  12093. # So, don't put newlines in cache variables' values.
  12094. # Ultrix sh set writes to stderr and can't be redirected directly,
  12095. # and sets the high bit in the cache file unless we assign to the vars.
  12096. {
  12097. (set) 2>&1 |
  12098. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  12099. *ac_space=\ *)
  12100. # `set' does not quote correctly, so add quotes (double-quote
  12101. # substitution turns \\\\ into \\, and sed turns \\ into \).
  12102. sed -n \
  12103. "s/'/'\\\\''/g;
  12104. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  12105. ;;
  12106. *)
  12107. # `set' quotes correctly as required by POSIX, so do not add quotes.
  12108. sed -n \
  12109. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  12110. ;;
  12111. esac;
  12112. } |
  12113. sed '
  12114. t clear
  12115. : clear
  12116. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  12117. t end
  12118. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  12119. : end' >>confcache
  12120. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  12121. if test -w $cache_file; then
  12122. test "x$cache_file" != "x/dev/null"
  12123. cat confcache >$cache_file
  12124. else
  12125. echo "not updating unwritable cache $cache_file"
  12126. fi
  12127. fi
  12128. rm -f confcache
  12129. # ---------- end of (what used to be) robey's Tcl thingies
  12130. VERSION=`grep "char" $srcdir/src/main.c | $AWK '/egg_version/ {print $5}' | sed -e 's/\"//g' | sed -e 's/\;//g'`
  12131. NUMVER=`grep "int" $srcdir/src/main.c | $AWK '/egg_numver =/ {print $5}' | sed -e 's/\;//g'`
  12132. if ! test -f $srcdir/pack/pack.cfg; then
  12133. cat << EOF >&2
  12134. configure: error:
  12135. Your pack cfg is missing, please copy it to $srcdir/pack/pack.cfg
  12136. EOF
  12137. exit 1
  12138. fi
  12139. PACKNAME=`grep "PACKNAME " $srcdir/pack/pack.cfg | $AWK '/PACKNAME/ {print $2}'`
  12140. version_num=`echo $VERSION | $AWK 'BEGIN {FS = "."} {printf("%d%02d%02d", $1, $2, $3)}'`
  12141. cat >>confdefs.h <<_ACEOF
  12142. #define EGG_VERSION $version_num
  12143. _ACEOF
  12144. for define in `sed -n -e 's/^+ \([^ ]*\) .*/\1/ p' pack/pack.cfg`; do
  12145. u_define="S_$define"
  12146. cat >>confdefs.h <<_ACEOF
  12147. #define $u_define 1
  12148. _ACEOF
  12149. done
  12150. case "$srcdir" in
  12151. [\\/]* | ?:[\\/]*)
  12152. MOD_UPDIR=""
  12153. ;;
  12154. *)
  12155. MOD_UPDIR="../"
  12156. ;;
  12157. esac
  12158. files="src/Makefile.in src/compat/Makefile.in src/mod/channels.mod/Makefile src/mod/compress.mod/Makefile src/mod/console.mod/Makefile src/mod/ctcp.mod/Makefile src/mod/dns.mod/Makefile.in src/mod/irc.mod/Makefile src/mod/notes.mod/Makefile src/mod/server.mod/Makefile src/mod/share.mod/Makefile src/mod/transfer.mod/Makefile src/mod/update.mod/Makefile"
  12159. for mf in $files; do
  12160. # Strip MF so we end up with the name of the file.
  12161. # echo "MF: $mf"
  12162. mf=`echo "$mf" | sed -e 's/:.*$//'`
  12163. dirpart=`(dirname "$mf") 2>/dev/null ||
  12164. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12165. X"$mf" : 'X\(//\)[^/]' \| \
  12166. X"$mf" : 'X\(//\)$' \| \
  12167. X"$mf" : 'X\(/\)' \| \
  12168. . : '\(.\)' 2>/dev/null ||
  12169. echo X"$mf" |
  12170. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  12171. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  12172. /^X\(\/\/\)$/{ s//\1/; q; }
  12173. /^X\(\/\).*/{ s//\1/; q; }
  12174. s/.*/./; q'`
  12175. # echo "dirpart: $dirpart mf: $mf"
  12176. # rm -rf "$dirpart/.deps/"
  12177. rm -f "$dirpart/.deps/includes"
  12178. test -d "$dirpart/.deps" || mkdir "$dirpart/.deps"
  12179. for file in `sed -n -e '
  12180. /^OBJS = .*\\\\$/ {
  12181. s/^OBJS = //
  12182. :loop
  12183. s/\\\\$//
  12184. p
  12185. n
  12186. /\\\\$/ b loop
  12187. p
  12188. }
  12189. /^OBJS = / s/^OBJS = //p' < "$mf"`;
  12190. do
  12191. base=`basename $file .o`
  12192. test -f "$dirpart/$base.c" || continue
  12193. if ! test -f "$dirpart/.deps/$base.Po"; then
  12194. echo '# dummy' > "$dirpart/.deps/$base.Po"
  12195. #Remove the .o file, because it needs to be recompiled for its dependancies.
  12196. if test -f "$dirpart/$base.o"; then
  12197. rm -f "$dirpart/$base.o"
  12198. fi
  12199. fi
  12200. echo "include .deps/$base.Po" >> "$dirpart/.deps/includes"
  12201. echo "_$base.c:" >> "$dirpart/.deps/includes"
  12202. done
  12203. done
  12204. ac_config_files="$ac_config_files Makefile src/Makefile src/compat/Makefile src/mod/Makefile src/mod/dns.mod/Makefile"
  12205. cat >confcache <<\_ACEOF
  12206. # This file is a shell script that caches the results of configure
  12207. # tests run on this system so they can be shared between configure
  12208. # scripts and configure runs, see configure's option --config-cache.
  12209. # It is not useful on other systems. If it contains results you don't
  12210. # want to keep, you may remove or edit it.
  12211. #
  12212. # config.status only pays attention to the cache file if you give it
  12213. # the --recheck option to rerun configure.
  12214. #
  12215. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  12216. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  12217. # following values.
  12218. _ACEOF
  12219. # The following way of writing the cache mishandles newlines in values,
  12220. # but we know of no workaround that is simple, portable, and efficient.
  12221. # So, don't put newlines in cache variables' values.
  12222. # Ultrix sh set writes to stderr and can't be redirected directly,
  12223. # and sets the high bit in the cache file unless we assign to the vars.
  12224. {
  12225. (set) 2>&1 |
  12226. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  12227. *ac_space=\ *)
  12228. # `set' does not quote correctly, so add quotes (double-quote
  12229. # substitution turns \\\\ into \\, and sed turns \\ into \).
  12230. sed -n \
  12231. "s/'/'\\\\''/g;
  12232. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  12233. ;;
  12234. *)
  12235. # `set' quotes correctly as required by POSIX, so do not add quotes.
  12236. sed -n \
  12237. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  12238. ;;
  12239. esac;
  12240. } |
  12241. sed '
  12242. t clear
  12243. : clear
  12244. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  12245. t end
  12246. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  12247. : end' >>confcache
  12248. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  12249. if test -w $cache_file; then
  12250. test "x$cache_file" != "x/dev/null"
  12251. cat confcache >$cache_file
  12252. else
  12253. echo "not updating unwritable cache $cache_file"
  12254. fi
  12255. fi
  12256. rm -f confcache
  12257. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  12258. # Let make expand exec_prefix.
  12259. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  12260. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  12261. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  12262. # trailing colons and then remove the whole line if VPATH becomes empty
  12263. # (actually we leave an empty line to preserve line numbers).
  12264. if test "x$srcdir" = x.; then
  12265. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  12266. s/:*\$(srcdir):*/:/;
  12267. s/:*\${srcdir}:*/:/;
  12268. s/:*@srcdir@:*/:/;
  12269. s/^\([^=]*=[ ]*\):*/\1/;
  12270. s/:*$//;
  12271. s/^[^=]*=[ ]*$//;
  12272. }'
  12273. fi
  12274. DEFS=-DHAVE_CONFIG_H
  12275. ac_libobjs=
  12276. ac_ltlibobjs=
  12277. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  12278. # 1. Remove the extension, and $U if already installed.
  12279. ac_i=`echo "$ac_i" |
  12280. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  12281. # 2. Add them.
  12282. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  12283. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  12284. done
  12285. LIBOBJS=$ac_libobjs
  12286. LTLIBOBJS=$ac_ltlibobjs
  12287. : ${CONFIG_STATUS=./config.status}
  12288. ac_clean_files_save=$ac_clean_files
  12289. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  12290. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  12291. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  12292. cat >$CONFIG_STATUS <<_ACEOF
  12293. #! $SHELL
  12294. # Generated by $as_me.
  12295. # Run this file to recreate the current configuration.
  12296. # Compiler output produced by configure, useful for debugging
  12297. # configure, is in config.log if it exists.
  12298. debug=false
  12299. ac_cs_recheck=false
  12300. ac_cs_silent=false
  12301. SHELL=\${CONFIG_SHELL-$SHELL}
  12302. _ACEOF
  12303. cat >>$CONFIG_STATUS <<\_ACEOF
  12304. ## --------------------- ##
  12305. ## M4sh Initialization. ##
  12306. ## --------------------- ##
  12307. # Be Bourne compatible
  12308. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  12309. emulate sh
  12310. NULLCMD=:
  12311. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  12312. # is contrary to our usage. Disable this feature.
  12313. alias -g '${1+"$@"}'='"$@"'
  12314. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  12315. set -o posix
  12316. fi
  12317. DUALCASE=1; export DUALCASE # for MKS sh
  12318. # Support unset when possible.
  12319. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  12320. as_unset=unset
  12321. else
  12322. as_unset=false
  12323. fi
  12324. # Work around bugs in pre-3.0 UWIN ksh.
  12325. $as_unset ENV MAIL MAILPATH
  12326. PS1='$ '
  12327. PS2='> '
  12328. PS4='+ '
  12329. # NLS nuisances.
  12330. for as_var in \
  12331. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  12332. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  12333. LC_TELEPHONE LC_TIME
  12334. do
  12335. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  12336. eval $as_var=C; export $as_var
  12337. else
  12338. $as_unset $as_var
  12339. fi
  12340. done
  12341. # Required to use basename.
  12342. if expr a : '\(a\)' >/dev/null 2>&1; then
  12343. as_expr=expr
  12344. else
  12345. as_expr=false
  12346. fi
  12347. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  12348. as_basename=basename
  12349. else
  12350. as_basename=false
  12351. fi
  12352. # Name of the executable.
  12353. as_me=`$as_basename "$0" ||
  12354. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  12355. X"$0" : 'X\(//\)$' \| \
  12356. X"$0" : 'X\(/\)$' \| \
  12357. . : '\(.\)' 2>/dev/null ||
  12358. echo X/"$0" |
  12359. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  12360. /^X\/\(\/\/\)$/{ s//\1/; q; }
  12361. /^X\/\(\/\).*/{ s//\1/; q; }
  12362. s/.*/./; q'`
  12363. # PATH needs CR, and LINENO needs CR and PATH.
  12364. # Avoid depending upon Character Ranges.
  12365. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  12366. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  12367. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  12368. as_cr_digits='0123456789'
  12369. as_cr_alnum=$as_cr_Letters$as_cr_digits
  12370. # The user is always right.
  12371. if test "${PATH_SEPARATOR+set}" != set; then
  12372. echo "#! /bin/sh" >conf$$.sh
  12373. echo "exit 0" >>conf$$.sh
  12374. chmod +x conf$$.sh
  12375. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  12376. PATH_SEPARATOR=';'
  12377. else
  12378. PATH_SEPARATOR=:
  12379. fi
  12380. rm -f conf$$.sh
  12381. fi
  12382. as_lineno_1=$LINENO
  12383. as_lineno_2=$LINENO
  12384. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  12385. test "x$as_lineno_1" != "x$as_lineno_2" &&
  12386. test "x$as_lineno_3" = "x$as_lineno_2" || {
  12387. # Find who we are. Look in the path if we contain no path at all
  12388. # relative or not.
  12389. case $0 in
  12390. *[\\/]* ) as_myself=$0 ;;
  12391. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12392. for as_dir in $PATH
  12393. do
  12394. IFS=$as_save_IFS
  12395. test -z "$as_dir" && as_dir=.
  12396. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  12397. done
  12398. ;;
  12399. esac
  12400. # We did not find ourselves, most probably we were run as `sh COMMAND'
  12401. # in which case we are not to be found in the path.
  12402. if test "x$as_myself" = x; then
  12403. as_myself=$0
  12404. fi
  12405. if test ! -f "$as_myself"; then
  12406. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  12407. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  12408. { (exit 1); exit 1; }; }
  12409. fi
  12410. case $CONFIG_SHELL in
  12411. '')
  12412. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12413. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  12414. do
  12415. IFS=$as_save_IFS
  12416. test -z "$as_dir" && as_dir=.
  12417. for as_base in sh bash ksh sh5; do
  12418. case $as_dir in
  12419. /*)
  12420. if ("$as_dir/$as_base" -c '
  12421. as_lineno_1=$LINENO
  12422. as_lineno_2=$LINENO
  12423. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  12424. test "x$as_lineno_1" != "x$as_lineno_2" &&
  12425. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  12426. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  12427. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  12428. CONFIG_SHELL=$as_dir/$as_base
  12429. export CONFIG_SHELL
  12430. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  12431. fi;;
  12432. esac
  12433. done
  12434. done
  12435. ;;
  12436. esac
  12437. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  12438. # uniformly replaced by the line number. The first 'sed' inserts a
  12439. # line-number line before each line; the second 'sed' does the real
  12440. # work. The second script uses 'N' to pair each line-number line
  12441. # with the numbered line, and appends trailing '-' during
  12442. # substitution so that $LINENO is not a special case at line end.
  12443. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  12444. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  12445. sed '=' <$as_myself |
  12446. sed '
  12447. N
  12448. s,$,-,
  12449. : loop
  12450. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  12451. t loop
  12452. s,-$,,
  12453. s,^['$as_cr_digits']*\n,,
  12454. ' >$as_me.lineno &&
  12455. chmod +x $as_me.lineno ||
  12456. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  12457. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  12458. { (exit 1); exit 1; }; }
  12459. # Don't try to exec as it changes $[0], causing all sort of problems
  12460. # (the dirname of $[0] is not the place where we might find the
  12461. # original and so on. Autoconf is especially sensible to this).
  12462. . ./$as_me.lineno
  12463. # Exit status is that of the last command.
  12464. exit
  12465. }
  12466. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  12467. *c*,-n*) ECHO_N= ECHO_C='
  12468. ' ECHO_T=' ' ;;
  12469. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  12470. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  12471. esac
  12472. if expr a : '\(a\)' >/dev/null 2>&1; then
  12473. as_expr=expr
  12474. else
  12475. as_expr=false
  12476. fi
  12477. rm -f conf$$ conf$$.exe conf$$.file
  12478. echo >conf$$.file
  12479. if ln -s conf$$.file conf$$ 2>/dev/null; then
  12480. # We could just check for DJGPP; but this test a) works b) is more generic
  12481. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  12482. if test -f conf$$.exe; then
  12483. # Don't use ln at all; we don't have any links
  12484. as_ln_s='cp -p'
  12485. else
  12486. as_ln_s='ln -s'
  12487. fi
  12488. elif ln conf$$.file conf$$ 2>/dev/null; then
  12489. as_ln_s=ln
  12490. else
  12491. as_ln_s='cp -p'
  12492. fi
  12493. rm -f conf$$ conf$$.exe conf$$.file
  12494. if mkdir -p . 2>/dev/null; then
  12495. as_mkdir_p=:
  12496. else
  12497. test -d ./-p && rmdir ./-p
  12498. as_mkdir_p=false
  12499. fi
  12500. as_executable_p="test -f"
  12501. # Sed expression to map a string onto a valid CPP name.
  12502. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  12503. # Sed expression to map a string onto a valid variable name.
  12504. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  12505. # IFS
  12506. # We need space, tab and new line, in precisely that order.
  12507. as_nl='
  12508. '
  12509. IFS=" $as_nl"
  12510. # CDPATH.
  12511. $as_unset CDPATH
  12512. exec 6>&1
  12513. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  12514. # report actual input values of CONFIG_FILES etc. instead of their
  12515. # values after options handling. Logging --version etc. is OK.
  12516. exec 5>>config.log
  12517. {
  12518. echo
  12519. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  12520. ## Running $as_me. ##
  12521. _ASBOX
  12522. } >&5
  12523. cat >&5 <<_CSEOF
  12524. This file was extended by $as_me, which was
  12525. generated by GNU Autoconf 2.59. Invocation command line was
  12526. CONFIG_FILES = $CONFIG_FILES
  12527. CONFIG_HEADERS = $CONFIG_HEADERS
  12528. CONFIG_LINKS = $CONFIG_LINKS
  12529. CONFIG_COMMANDS = $CONFIG_COMMANDS
  12530. $ $0 $@
  12531. _CSEOF
  12532. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  12533. echo >&5
  12534. _ACEOF
  12535. # Files that config.status was made for.
  12536. if test -n "$ac_config_files"; then
  12537. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  12538. fi
  12539. if test -n "$ac_config_headers"; then
  12540. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  12541. fi
  12542. if test -n "$ac_config_links"; then
  12543. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  12544. fi
  12545. if test -n "$ac_config_commands"; then
  12546. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  12547. fi
  12548. cat >>$CONFIG_STATUS <<\_ACEOF
  12549. ac_cs_usage="\
  12550. \`$as_me' instantiates files from templates according to the
  12551. current configuration.
  12552. Usage: $0 [OPTIONS] [FILE]...
  12553. -h, --help print this help, then exit
  12554. -V, --version print version number, then exit
  12555. -q, --quiet do not print progress messages
  12556. -d, --debug don't remove temporary files
  12557. --recheck update $as_me by reconfiguring in the same conditions
  12558. --file=FILE[:TEMPLATE]
  12559. instantiate the configuration file FILE
  12560. --header=FILE[:TEMPLATE]
  12561. instantiate the configuration header FILE
  12562. Configuration files:
  12563. $config_files
  12564. Configuration headers:
  12565. $config_headers
  12566. Configuration commands:
  12567. $config_commands
  12568. Report bugs to <bug-autoconf@gnu.org>."
  12569. _ACEOF
  12570. cat >>$CONFIG_STATUS <<_ACEOF
  12571. ac_cs_version="\\
  12572. config.status
  12573. configured by $0, generated by GNU Autoconf 2.59,
  12574. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  12575. Copyright (C) 2003 Free Software Foundation, Inc.
  12576. This config.status script is free software; the Free Software Foundation
  12577. gives unlimited permission to copy, distribute and modify it."
  12578. srcdir=$srcdir
  12579. _ACEOF
  12580. cat >>$CONFIG_STATUS <<\_ACEOF
  12581. # If no file are specified by the user, then we need to provide default
  12582. # value. By we need to know if files were specified by the user.
  12583. ac_need_defaults=:
  12584. while test $# != 0
  12585. do
  12586. case $1 in
  12587. --*=*)
  12588. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  12589. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  12590. ac_shift=:
  12591. ;;
  12592. -*)
  12593. ac_option=$1
  12594. ac_optarg=$2
  12595. ac_shift=shift
  12596. ;;
  12597. *) # This is not an option, so the user has probably given explicit
  12598. # arguments.
  12599. ac_option=$1
  12600. ac_need_defaults=false;;
  12601. esac
  12602. case $ac_option in
  12603. # Handling of the options.
  12604. _ACEOF
  12605. cat >>$CONFIG_STATUS <<\_ACEOF
  12606. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  12607. ac_cs_recheck=: ;;
  12608. --version | --vers* | -V )
  12609. echo "$ac_cs_version"; exit 0 ;;
  12610. --he | --h)
  12611. # Conflict between --help and --header
  12612. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  12613. Try \`$0 --help' for more information." >&5
  12614. echo "$as_me: error: ambiguous option: $1
  12615. Try \`$0 --help' for more information." >&2;}
  12616. { (exit 1); exit 1; }; };;
  12617. --help | --hel | -h )
  12618. echo "$ac_cs_usage"; exit 0 ;;
  12619. --debug | --d* | -d )
  12620. debug=: ;;
  12621. --file | --fil | --fi | --f )
  12622. $ac_shift
  12623. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  12624. ac_need_defaults=false;;
  12625. --header | --heade | --head | --hea )
  12626. $ac_shift
  12627. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  12628. ac_need_defaults=false;;
  12629. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  12630. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  12631. ac_cs_silent=: ;;
  12632. # This is an error.
  12633. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  12634. Try \`$0 --help' for more information." >&5
  12635. echo "$as_me: error: unrecognized option: $1
  12636. Try \`$0 --help' for more information." >&2;}
  12637. { (exit 1); exit 1; }; } ;;
  12638. *) ac_config_targets="$ac_config_targets $1" ;;
  12639. esac
  12640. shift
  12641. done
  12642. ac_configure_extra_args=
  12643. if $ac_cs_silent; then
  12644. exec 6>/dev/null
  12645. ac_configure_extra_args="$ac_configure_extra_args --silent"
  12646. fi
  12647. _ACEOF
  12648. cat >>$CONFIG_STATUS <<_ACEOF
  12649. if \$ac_cs_recheck; then
  12650. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  12651. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  12652. fi
  12653. _ACEOF
  12654. cat >>$CONFIG_STATUS <<_ACEOF
  12655. #
  12656. # INIT-COMMANDS section.
  12657. #
  12658. egg_tclinc="$TCLINC"
  12659. egg_tclincfn="$TCLINCFN"
  12660. _ACEOF
  12661. cat >>$CONFIG_STATUS <<\_ACEOF
  12662. for ac_config_target in $ac_config_targets
  12663. do
  12664. case "$ac_config_target" in
  12665. # Handling of arguments.
  12666. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  12667. "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  12668. "src/compat/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/compat/Makefile" ;;
  12669. "src/mod/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/mod/Makefile" ;;
  12670. "src/mod/dns.mod/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/mod/dns.mod/Makefile" ;;
  12671. "replace-if-changed" ) CONFIG_COMMANDS="$CONFIG_COMMANDS replace-if-changed" ;;
  12672. "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  12673. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  12674. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  12675. { (exit 1); exit 1; }; };;
  12676. esac
  12677. done
  12678. # If the user did not use the arguments to specify the items to instantiate,
  12679. # then the envvar interface is used. Set only those that are not.
  12680. # We use the long form for the default assignment because of an extremely
  12681. # bizarre bug on SunOS 4.1.3.
  12682. if $ac_need_defaults; then
  12683. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  12684. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  12685. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  12686. fi
  12687. # Have a temporary directory for convenience. Make it in the build tree
  12688. # simply because there is no reason to put it here, and in addition,
  12689. # creating and moving files from /tmp can sometimes cause problems.
  12690. # Create a temporary directory, and hook for its removal unless debugging.
  12691. $debug ||
  12692. {
  12693. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  12694. trap '{ (exit 1); exit 1; }' 1 2 13 15
  12695. }
  12696. # Create a (secure) tmp directory for tmp files.
  12697. {
  12698. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  12699. test -n "$tmp" && test -d "$tmp"
  12700. } ||
  12701. {
  12702. tmp=./confstat$$-$RANDOM
  12703. (umask 077 && mkdir $tmp)
  12704. } ||
  12705. {
  12706. echo "$me: cannot create a temporary directory in ." >&2
  12707. { (exit 1); exit 1; }
  12708. }
  12709. _ACEOF
  12710. cat >>$CONFIG_STATUS <<_ACEOF
  12711. #
  12712. # CONFIG_FILES section.
  12713. #
  12714. # No need to generate the scripts if there are no CONFIG_FILES.
  12715. # This happens for instance when ./config.status config.h
  12716. if test -n "\$CONFIG_FILES"; then
  12717. # Protect against being on the right side of a sed subst in config.status.
  12718. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  12719. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  12720. s,@SHELL@,$SHELL,;t t
  12721. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  12722. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  12723. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  12724. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  12725. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  12726. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  12727. s,@exec_prefix@,$exec_prefix,;t t
  12728. s,@prefix@,$prefix,;t t
  12729. s,@program_transform_name@,$program_transform_name,;t t
  12730. s,@bindir@,$bindir,;t t
  12731. s,@sbindir@,$sbindir,;t t
  12732. s,@libexecdir@,$libexecdir,;t t
  12733. s,@datadir@,$datadir,;t t
  12734. s,@sysconfdir@,$sysconfdir,;t t
  12735. s,@sharedstatedir@,$sharedstatedir,;t t
  12736. s,@localstatedir@,$localstatedir,;t t
  12737. s,@libdir@,$libdir,;t t
  12738. s,@includedir@,$includedir,;t t
  12739. s,@oldincludedir@,$oldincludedir,;t t
  12740. s,@infodir@,$infodir,;t t
  12741. s,@mandir@,$mandir,;t t
  12742. s,@build_alias@,$build_alias,;t t
  12743. s,@host_alias@,$host_alias,;t t
  12744. s,@target_alias@,$target_alias,;t t
  12745. s,@DEFS@,$DEFS,;t t
  12746. s,@ECHO_C@,$ECHO_C,;t t
  12747. s,@ECHO_N@,$ECHO_N,;t t
  12748. s,@ECHO_T@,$ECHO_T,;t t
  12749. s,@LIBS@,$LIBS,;t t
  12750. s,@egg_ac_parameters@,$egg_ac_parameters,;t t
  12751. s,@CC@,$CC,;t t
  12752. s,@CFLAGS@,$CFLAGS,;t t
  12753. s,@LDFLAGS@,$LDFLAGS,;t t
  12754. s,@CPPFLAGS@,$CPPFLAGS,;t t
  12755. s,@ac_ct_CC@,$ac_ct_CC,;t t
  12756. s,@EXEEXT@,$EXEEXT,;t t
  12757. s,@OBJEXT@,$OBJEXT,;t t
  12758. s,@CPP@,$CPP,;t t
  12759. s,@EGREP@,$EGREP,;t t
  12760. s,@CCDEPMODE@,$CCDEPMODE,;t t
  12761. s,@CCDEBUG@,$CCDEBUG,;t t
  12762. s,@SET_MAKE@,$SET_MAKE,;t t
  12763. s,@HEAD_1@,$HEAD_1,;t t
  12764. s,@STRIP@,$STRIP,;t t
  12765. s,@AWK@,$AWK,;t t
  12766. s,@BASENAME@,$BASENAME,;t t
  12767. s,@OBJCOPY@,$OBJCOPY,;t t
  12768. s,@DISTCC@,$DISTCC,;t t
  12769. s,@UNAME@,$UNAME,;t t
  12770. s,@RESLIB@,$RESLIB,;t t
  12771. s,@RESINCLUDE@,$RESINCLUDE,;t t
  12772. s,@ZLIB@,$ZLIB,;t t
  12773. s,@SSL@,$SSL,;t t
  12774. s,@LIBOBJS@,$LIBOBJS,;t t
  12775. s,@TCLLIB@,$TCLLIB,;t t
  12776. s,@TCLLIBFN@,$TCLLIBFN,;t t
  12777. s,@TCLINC@,$TCLINC,;t t
  12778. s,@TCLINCFN@,$TCLINCFN,;t t
  12779. s,@TCL_REQS@,$TCL_REQS,;t t
  12780. s,@TCL_LIBS@,$TCL_LIBS,;t t
  12781. s,@VERSION@,$VERSION,;t t
  12782. s,@NUMVER@,$NUMVER,;t t
  12783. s,@PACKNAME@,$PACKNAME,;t t
  12784. s,@MOD_UPDIR@,$MOD_UPDIR,;t t
  12785. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  12786. CEOF
  12787. _ACEOF
  12788. cat >>$CONFIG_STATUS <<\_ACEOF
  12789. # Split the substitutions into bite-sized pieces for seds with
  12790. # small command number limits, like on Digital OSF/1 and HP-UX.
  12791. ac_max_sed_lines=48
  12792. ac_sed_frag=1 # Number of current file.
  12793. ac_beg=1 # First line for current file.
  12794. ac_end=$ac_max_sed_lines # Line after last line for current file.
  12795. ac_more_lines=:
  12796. ac_sed_cmds=
  12797. while $ac_more_lines; do
  12798. if test $ac_beg -gt 1; then
  12799. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  12800. else
  12801. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  12802. fi
  12803. if test ! -s $tmp/subs.frag; then
  12804. ac_more_lines=false
  12805. else
  12806. # The purpose of the label and of the branching condition is to
  12807. # speed up the sed processing (if there are no `@' at all, there
  12808. # is no need to browse any of the substitutions).
  12809. # These are the two extra sed commands mentioned above.
  12810. (echo ':t
  12811. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  12812. if test -z "$ac_sed_cmds"; then
  12813. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  12814. else
  12815. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  12816. fi
  12817. ac_sed_frag=`expr $ac_sed_frag + 1`
  12818. ac_beg=$ac_end
  12819. ac_end=`expr $ac_end + $ac_max_sed_lines`
  12820. fi
  12821. done
  12822. if test -z "$ac_sed_cmds"; then
  12823. ac_sed_cmds=cat
  12824. fi
  12825. fi # test -n "$CONFIG_FILES"
  12826. _ACEOF
  12827. cat >>$CONFIG_STATUS <<\_ACEOF
  12828. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  12829. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  12830. case $ac_file in
  12831. - | *:- | *:-:* ) # input from stdin
  12832. cat >$tmp/stdin
  12833. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  12834. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  12835. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  12836. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  12837. * ) ac_file_in=$ac_file.in ;;
  12838. esac
  12839. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  12840. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  12841. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12842. X"$ac_file" : 'X\(//\)[^/]' \| \
  12843. X"$ac_file" : 'X\(//\)$' \| \
  12844. X"$ac_file" : 'X\(/\)' \| \
  12845. . : '\(.\)' 2>/dev/null ||
  12846. echo X"$ac_file" |
  12847. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  12848. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  12849. /^X\(\/\/\)$/{ s//\1/; q; }
  12850. /^X\(\/\).*/{ s//\1/; q; }
  12851. s/.*/./; q'`
  12852. { if $as_mkdir_p; then
  12853. mkdir -p "$ac_dir"
  12854. else
  12855. as_dir="$ac_dir"
  12856. as_dirs=
  12857. while test ! -d "$as_dir"; do
  12858. as_dirs="$as_dir $as_dirs"
  12859. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  12860. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12861. X"$as_dir" : 'X\(//\)[^/]' \| \
  12862. X"$as_dir" : 'X\(//\)$' \| \
  12863. X"$as_dir" : 'X\(/\)' \| \
  12864. . : '\(.\)' 2>/dev/null ||
  12865. echo X"$as_dir" |
  12866. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  12867. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  12868. /^X\(\/\/\)$/{ s//\1/; q; }
  12869. /^X\(\/\).*/{ s//\1/; q; }
  12870. s/.*/./; q'`
  12871. done
  12872. test ! -n "$as_dirs" || mkdir $as_dirs
  12873. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  12874. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  12875. { (exit 1); exit 1; }; }; }
  12876. ac_builddir=.
  12877. if test "$ac_dir" != .; then
  12878. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  12879. # A "../" for each directory in $ac_dir_suffix.
  12880. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  12881. else
  12882. ac_dir_suffix= ac_top_builddir=
  12883. fi
  12884. case $srcdir in
  12885. .) # No --srcdir option. We are building in place.
  12886. ac_srcdir=.
  12887. if test -z "$ac_top_builddir"; then
  12888. ac_top_srcdir=.
  12889. else
  12890. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  12891. fi ;;
  12892. [\\/]* | ?:[\\/]* ) # Absolute path.
  12893. ac_srcdir=$srcdir$ac_dir_suffix;
  12894. ac_top_srcdir=$srcdir ;;
  12895. *) # Relative path.
  12896. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  12897. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  12898. esac
  12899. # Do not use `cd foo && pwd` to compute absolute paths, because
  12900. # the directories may not exist.
  12901. case `pwd` in
  12902. .) ac_abs_builddir="$ac_dir";;
  12903. *)
  12904. case "$ac_dir" in
  12905. .) ac_abs_builddir=`pwd`;;
  12906. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  12907. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  12908. esac;;
  12909. esac
  12910. case $ac_abs_builddir in
  12911. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  12912. *)
  12913. case ${ac_top_builddir}. in
  12914. .) ac_abs_top_builddir=$ac_abs_builddir;;
  12915. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  12916. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  12917. esac;;
  12918. esac
  12919. case $ac_abs_builddir in
  12920. .) ac_abs_srcdir=$ac_srcdir;;
  12921. *)
  12922. case $ac_srcdir in
  12923. .) ac_abs_srcdir=$ac_abs_builddir;;
  12924. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  12925. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  12926. esac;;
  12927. esac
  12928. case $ac_abs_builddir in
  12929. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  12930. *)
  12931. case $ac_top_srcdir in
  12932. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  12933. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  12934. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  12935. esac;;
  12936. esac
  12937. # Let's still pretend it is `configure' which instantiates (i.e., don't
  12938. # use $as_me), people would be surprised to read:
  12939. # /* config.h. Generated by config.status. */
  12940. if test x"$ac_file" = x-; then
  12941. configure_input=
  12942. else
  12943. configure_input="$ac_file. "
  12944. fi
  12945. configure_input=$configure_input"Generated from `echo $ac_file_in |
  12946. sed 's,.*/,,'` by configure."
  12947. # First look for the input files in the build tree, otherwise in the
  12948. # src tree.
  12949. ac_file_inputs=`IFS=:
  12950. for f in $ac_file_in; do
  12951. case $f in
  12952. -) echo $tmp/stdin ;;
  12953. [\\/$]*)
  12954. # Absolute (can't be DOS-style, as IFS=:)
  12955. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  12956. echo "$as_me: error: cannot find input file: $f" >&2;}
  12957. { (exit 1); exit 1; }; }
  12958. echo "$f";;
  12959. *) # Relative
  12960. if test -f "$f"; then
  12961. # Build tree
  12962. echo "$f"
  12963. elif test -f "$srcdir/$f"; then
  12964. # Source tree
  12965. echo "$srcdir/$f"
  12966. else
  12967. # /dev/null tree
  12968. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  12969. echo "$as_me: error: cannot find input file: $f" >&2;}
  12970. { (exit 1); exit 1; }; }
  12971. fi;;
  12972. esac
  12973. done` || { (exit 1); exit 1; }
  12974. if test x"$ac_file" != x-; then
  12975. { echo "$as_me:$LINENO: creating $ac_file" >&5
  12976. echo "$as_me: creating $ac_file" >&6;}
  12977. rm -f "$ac_file"
  12978. fi
  12979. _ACEOF
  12980. cat >>$CONFIG_STATUS <<_ACEOF
  12981. sed "$ac_vpsub
  12982. $extrasub
  12983. _ACEOF
  12984. cat >>$CONFIG_STATUS <<\_ACEOF
  12985. :t
  12986. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  12987. s,@configure_input@,$configure_input,;t t
  12988. s,@srcdir@,$ac_srcdir,;t t
  12989. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  12990. s,@top_srcdir@,$ac_top_srcdir,;t t
  12991. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  12992. s,@builddir@,$ac_builddir,;t t
  12993. s,@abs_builddir@,$ac_abs_builddir,;t t
  12994. s,@top_builddir@,$ac_top_builddir,;t t
  12995. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  12996. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  12997. rm -f $tmp/stdin
  12998. if test x"$ac_file" != x-; then
  12999. mv $tmp/out $ac_file
  13000. else
  13001. cat $tmp/out
  13002. rm -f $tmp/out
  13003. fi
  13004. done
  13005. _ACEOF
  13006. cat >>$CONFIG_STATUS <<\_ACEOF
  13007. #
  13008. # CONFIG_HEADER section.
  13009. #
  13010. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  13011. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  13012. #
  13013. # ac_d sets the value in "#define NAME VALUE" lines.
  13014. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  13015. ac_dB='[ ].*$,\1#\2'
  13016. ac_dC=' '
  13017. ac_dD=',;t'
  13018. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  13019. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  13020. ac_uB='$,\1#\2define\3'
  13021. ac_uC=' '
  13022. ac_uD=',;t'
  13023. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  13024. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  13025. case $ac_file in
  13026. - | *:- | *:-:* ) # input from stdin
  13027. cat >$tmp/stdin
  13028. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  13029. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  13030. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  13031. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  13032. * ) ac_file_in=$ac_file.in ;;
  13033. esac
  13034. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  13035. echo "$as_me: creating $ac_file" >&6;}
  13036. # First look for the input files in the build tree, otherwise in the
  13037. # src tree.
  13038. ac_file_inputs=`IFS=:
  13039. for f in $ac_file_in; do
  13040. case $f in
  13041. -) echo $tmp/stdin ;;
  13042. [\\/$]*)
  13043. # Absolute (can't be DOS-style, as IFS=:)
  13044. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  13045. echo "$as_me: error: cannot find input file: $f" >&2;}
  13046. { (exit 1); exit 1; }; }
  13047. # Do quote $f, to prevent DOS paths from being IFS'd.
  13048. echo "$f";;
  13049. *) # Relative
  13050. if test -f "$f"; then
  13051. # Build tree
  13052. echo "$f"
  13053. elif test -f "$srcdir/$f"; then
  13054. # Source tree
  13055. echo "$srcdir/$f"
  13056. else
  13057. # /dev/null tree
  13058. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  13059. echo "$as_me: error: cannot find input file: $f" >&2;}
  13060. { (exit 1); exit 1; }; }
  13061. fi;;
  13062. esac
  13063. done` || { (exit 1); exit 1; }
  13064. # Remove the trailing spaces.
  13065. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  13066. _ACEOF
  13067. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  13068. # `conftest.undefs', that substitutes the proper values into
  13069. # config.h.in to produce config.h. The first handles `#define'
  13070. # templates, and the second `#undef' templates.
  13071. # And first: Protect against being on the right side of a sed subst in
  13072. # config.status. Protect against being in an unquoted here document
  13073. # in config.status.
  13074. rm -f conftest.defines conftest.undefs
  13075. # Using a here document instead of a string reduces the quoting nightmare.
  13076. # Putting comments in sed scripts is not portable.
  13077. #
  13078. # `end' is used to avoid that the second main sed command (meant for
  13079. # 0-ary CPP macros) applies to n-ary macro definitions.
  13080. # See the Autoconf documentation for `clear'.
  13081. cat >confdef2sed.sed <<\_ACEOF
  13082. s/[\\&,]/\\&/g
  13083. s,[\\$`],\\&,g
  13084. t clear
  13085. : clear
  13086. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  13087. t end
  13088. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  13089. : end
  13090. _ACEOF
  13091. # If some macros were called several times there might be several times
  13092. # the same #defines, which is useless. Nevertheless, we may not want to
  13093. # sort them, since we want the *last* AC-DEFINE to be honored.
  13094. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  13095. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  13096. rm -f confdef2sed.sed
  13097. # This sed command replaces #undef with comments. This is necessary, for
  13098. # example, in the case of _POSIX_SOURCE, which is predefined and required
  13099. # on some systems where configure will not decide to define it.
  13100. cat >>conftest.undefs <<\_ACEOF
  13101. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  13102. _ACEOF
  13103. # Break up conftest.defines because some shells have a limit on the size
  13104. # of here documents, and old seds have small limits too (100 cmds).
  13105. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  13106. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  13107. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  13108. echo ' :' >>$CONFIG_STATUS
  13109. rm -f conftest.tail
  13110. while grep . conftest.defines >/dev/null
  13111. do
  13112. # Write a limited-size here document to $tmp/defines.sed.
  13113. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  13114. # Speed up: don't consider the non `#define' lines.
  13115. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  13116. # Work around the forget-to-reset-the-flag bug.
  13117. echo 't clr' >>$CONFIG_STATUS
  13118. echo ': clr' >>$CONFIG_STATUS
  13119. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  13120. echo 'CEOF
  13121. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  13122. rm -f $tmp/in
  13123. mv $tmp/out $tmp/in
  13124. ' >>$CONFIG_STATUS
  13125. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  13126. rm -f conftest.defines
  13127. mv conftest.tail conftest.defines
  13128. done
  13129. rm -f conftest.defines
  13130. echo ' fi # grep' >>$CONFIG_STATUS
  13131. echo >>$CONFIG_STATUS
  13132. # Break up conftest.undefs because some shells have a limit on the size
  13133. # of here documents, and old seds have small limits too (100 cmds).
  13134. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  13135. rm -f conftest.tail
  13136. while grep . conftest.undefs >/dev/null
  13137. do
  13138. # Write a limited-size here document to $tmp/undefs.sed.
  13139. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  13140. # Speed up: don't consider the non `#undef'
  13141. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  13142. # Work around the forget-to-reset-the-flag bug.
  13143. echo 't clr' >>$CONFIG_STATUS
  13144. echo ': clr' >>$CONFIG_STATUS
  13145. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  13146. echo 'CEOF
  13147. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  13148. rm -f $tmp/in
  13149. mv $tmp/out $tmp/in
  13150. ' >>$CONFIG_STATUS
  13151. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  13152. rm -f conftest.undefs
  13153. mv conftest.tail conftest.undefs
  13154. done
  13155. rm -f conftest.undefs
  13156. cat >>$CONFIG_STATUS <<\_ACEOF
  13157. # Let's still pretend it is `configure' which instantiates (i.e., don't
  13158. # use $as_me), people would be surprised to read:
  13159. # /* config.h. Generated by config.status. */
  13160. if test x"$ac_file" = x-; then
  13161. echo "/* Generated by configure. */" >$tmp/config.h
  13162. else
  13163. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  13164. fi
  13165. cat $tmp/in >>$tmp/config.h
  13166. rm -f $tmp/in
  13167. if test x"$ac_file" != x-; then
  13168. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  13169. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  13170. echo "$as_me: $ac_file is unchanged" >&6;}
  13171. else
  13172. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  13173. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13174. X"$ac_file" : 'X\(//\)[^/]' \| \
  13175. X"$ac_file" : 'X\(//\)$' \| \
  13176. X"$ac_file" : 'X\(/\)' \| \
  13177. . : '\(.\)' 2>/dev/null ||
  13178. echo X"$ac_file" |
  13179. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  13180. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  13181. /^X\(\/\/\)$/{ s//\1/; q; }
  13182. /^X\(\/\).*/{ s//\1/; q; }
  13183. s/.*/./; q'`
  13184. { if $as_mkdir_p; then
  13185. mkdir -p "$ac_dir"
  13186. else
  13187. as_dir="$ac_dir"
  13188. as_dirs=
  13189. while test ! -d "$as_dir"; do
  13190. as_dirs="$as_dir $as_dirs"
  13191. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  13192. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13193. X"$as_dir" : 'X\(//\)[^/]' \| \
  13194. X"$as_dir" : 'X\(//\)$' \| \
  13195. X"$as_dir" : 'X\(/\)' \| \
  13196. . : '\(.\)' 2>/dev/null ||
  13197. echo X"$as_dir" |
  13198. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  13199. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  13200. /^X\(\/\/\)$/{ s//\1/; q; }
  13201. /^X\(\/\).*/{ s//\1/; q; }
  13202. s/.*/./; q'`
  13203. done
  13204. test ! -n "$as_dirs" || mkdir $as_dirs
  13205. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  13206. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  13207. { (exit 1); exit 1; }; }; }
  13208. rm -f $ac_file
  13209. mv $tmp/config.h $ac_file
  13210. fi
  13211. else
  13212. cat $tmp/config.h
  13213. rm -f $tmp/config.h
  13214. fi
  13215. done
  13216. _ACEOF
  13217. cat >>$CONFIG_STATUS <<\_ACEOF
  13218. #
  13219. # CONFIG_COMMANDS section.
  13220. #
  13221. for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  13222. ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  13223. ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
  13224. ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
  13225. $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13226. X"$ac_dest" : 'X\(//\)[^/]' \| \
  13227. X"$ac_dest" : 'X\(//\)$' \| \
  13228. X"$ac_dest" : 'X\(/\)' \| \
  13229. . : '\(.\)' 2>/dev/null ||
  13230. echo X"$ac_dest" |
  13231. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  13232. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  13233. /^X\(\/\/\)$/{ s//\1/; q; }
  13234. /^X\(\/\).*/{ s//\1/; q; }
  13235. s/.*/./; q'`
  13236. { if $as_mkdir_p; then
  13237. mkdir -p "$ac_dir"
  13238. else
  13239. as_dir="$ac_dir"
  13240. as_dirs=
  13241. while test ! -d "$as_dir"; do
  13242. as_dirs="$as_dir $as_dirs"
  13243. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  13244. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13245. X"$as_dir" : 'X\(//\)[^/]' \| \
  13246. X"$as_dir" : 'X\(//\)$' \| \
  13247. X"$as_dir" : 'X\(/\)' \| \
  13248. . : '\(.\)' 2>/dev/null ||
  13249. echo X"$as_dir" |
  13250. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  13251. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  13252. /^X\(\/\/\)$/{ s//\1/; q; }
  13253. /^X\(\/\).*/{ s//\1/; q; }
  13254. s/.*/./; q'`
  13255. done
  13256. test ! -n "$as_dirs" || mkdir $as_dirs
  13257. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  13258. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  13259. { (exit 1); exit 1; }; }; }
  13260. ac_builddir=.
  13261. if test "$ac_dir" != .; then
  13262. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  13263. # A "../" for each directory in $ac_dir_suffix.
  13264. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  13265. else
  13266. ac_dir_suffix= ac_top_builddir=
  13267. fi
  13268. case $srcdir in
  13269. .) # No --srcdir option. We are building in place.
  13270. ac_srcdir=.
  13271. if test -z "$ac_top_builddir"; then
  13272. ac_top_srcdir=.
  13273. else
  13274. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  13275. fi ;;
  13276. [\\/]* | ?:[\\/]* ) # Absolute path.
  13277. ac_srcdir=$srcdir$ac_dir_suffix;
  13278. ac_top_srcdir=$srcdir ;;
  13279. *) # Relative path.
  13280. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  13281. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  13282. esac
  13283. # Do not use `cd foo && pwd` to compute absolute paths, because
  13284. # the directories may not exist.
  13285. case `pwd` in
  13286. .) ac_abs_builddir="$ac_dir";;
  13287. *)
  13288. case "$ac_dir" in
  13289. .) ac_abs_builddir=`pwd`;;
  13290. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  13291. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  13292. esac;;
  13293. esac
  13294. case $ac_abs_builddir in
  13295. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  13296. *)
  13297. case ${ac_top_builddir}. in
  13298. .) ac_abs_top_builddir=$ac_abs_builddir;;
  13299. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  13300. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  13301. esac;;
  13302. esac
  13303. case $ac_abs_builddir in
  13304. .) ac_abs_srcdir=$ac_srcdir;;
  13305. *)
  13306. case $ac_srcdir in
  13307. .) ac_abs_srcdir=$ac_abs_builddir;;
  13308. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  13309. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  13310. esac;;
  13311. esac
  13312. case $ac_abs_builddir in
  13313. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  13314. *)
  13315. case $ac_top_srcdir in
  13316. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  13317. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  13318. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  13319. esac;;
  13320. esac
  13321. { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
  13322. echo "$as_me: executing $ac_dest commands" >&6;}
  13323. case $ac_dest in
  13324. replace-if-changed )
  13325. egg_replace_file="lush.h"
  13326. cat > conftest.out << EOF
  13327. /* Ignore me but do not erase me. I am a kludge. */
  13328. #include "${egg_tclinc}/${egg_tclincfn}"
  13329. EOF
  13330. if test -f "$egg_replace_file" && cmp -s conftest.out $egg_replace_file; then
  13331. echo "lush.h is unchanged"
  13332. else
  13333. echo "creating lush.h"
  13334. mv conftest.out $egg_replace_file
  13335. fi
  13336. rm -f conftest.out
  13337. ;;
  13338. esac
  13339. done
  13340. _ACEOF
  13341. cat >>$CONFIG_STATUS <<\_ACEOF
  13342. { (exit 0); exit 0; }
  13343. _ACEOF
  13344. chmod +x $CONFIG_STATUS
  13345. ac_clean_files=$ac_clean_files_save
  13346. # configure is writing to config.log, and then calls config.status.
  13347. # config.status does its own redirection, appending to config.log.
  13348. # Unfortunately, on DOS this fails, as config.log is still kept open
  13349. # by configure, so config.status won't be able to write to it; its
  13350. # output is simply discarded. So we exec the FD to /dev/null,
  13351. # effectively closing config.log, so it can be properly (re)opened and
  13352. # appended to by config.status. When coming back to configure, we
  13353. # need to make the FD available again.
  13354. if test "$no_create" != yes; then
  13355. ac_cs_success=:
  13356. ac_config_status_args=
  13357. test "$silent" = yes &&
  13358. ac_config_status_args="$ac_config_status_args --quiet"
  13359. exec 5>/dev/null
  13360. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  13361. exec 5>>config.log
  13362. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  13363. # would make configure fail if this is the last instruction.
  13364. $ac_cs_success || { (exit 1); exit 1; }
  13365. fi