configure 355 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623
  1. #! /bin/sh
  2. # From configure.ac Revision: 1.35 .
  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 CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CXXCPP EGREP CCDEPMODE GCC3 SET_MAKE HEAD_1 AWK BASENAME OBJCOPY STRIP UNAME DISTCC RESLIB RESINCLUDE CCDEBUG ZLIB LIBOBJS VERSION NUMVER 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_CXX_set=${CXX+set}
  664. ac_env_CXX_value=$CXX
  665. ac_cv_env_CXX_set=${CXX+set}
  666. ac_cv_env_CXX_value=$CXX
  667. ac_env_CXXFLAGS_set=${CXXFLAGS+set}
  668. ac_env_CXXFLAGS_value=$CXXFLAGS
  669. ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
  670. ac_cv_env_CXXFLAGS_value=$CXXFLAGS
  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_CXXCPP_set=${CXXCPP+set}
  680. ac_env_CXXCPP_value=$CXXCPP
  681. ac_cv_env_CXXCPP_set=${CXXCPP+set}
  682. ac_cv_env_CXXCPP_value=$CXXCPP
  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. Some influential environment variables:
  741. CXX C++ compiler command
  742. CXXFLAGS C++ compiler flags
  743. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  744. nonstandard directory <lib dir>
  745. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  746. headers in a nonstandard directory <include dir>
  747. CXXCPP C++ preprocessor
  748. Use these variables to override the choices made by `configure' or to help
  749. it to find libraries and programs with nonstandard names/locations.
  750. _ACEOF
  751. fi
  752. if test "$ac_init_help" = "recursive"; then
  753. # If there are subdirs, report their specific --help.
  754. ac_popdir=`pwd`
  755. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  756. test -d $ac_dir || continue
  757. ac_builddir=.
  758. if test "$ac_dir" != .; then
  759. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  760. # A "../" for each directory in $ac_dir_suffix.
  761. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  762. else
  763. ac_dir_suffix= ac_top_builddir=
  764. fi
  765. case $srcdir in
  766. .) # No --srcdir option. We are building in place.
  767. ac_srcdir=.
  768. if test -z "$ac_top_builddir"; then
  769. ac_top_srcdir=.
  770. else
  771. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  772. fi ;;
  773. [\\/]* | ?:[\\/]* ) # Absolute path.
  774. ac_srcdir=$srcdir$ac_dir_suffix;
  775. ac_top_srcdir=$srcdir ;;
  776. *) # Relative path.
  777. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  778. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  779. esac
  780. # Do not use `cd foo && pwd` to compute absolute paths, because
  781. # the directories may not exist.
  782. case `pwd` in
  783. .) ac_abs_builddir="$ac_dir";;
  784. *)
  785. case "$ac_dir" in
  786. .) ac_abs_builddir=`pwd`;;
  787. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  788. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  789. esac;;
  790. esac
  791. case $ac_abs_builddir in
  792. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  793. *)
  794. case ${ac_top_builddir}. in
  795. .) ac_abs_top_builddir=$ac_abs_builddir;;
  796. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  797. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  798. esac;;
  799. esac
  800. case $ac_abs_builddir in
  801. .) ac_abs_srcdir=$ac_srcdir;;
  802. *)
  803. case $ac_srcdir in
  804. .) ac_abs_srcdir=$ac_abs_builddir;;
  805. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  806. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  807. esac;;
  808. esac
  809. case $ac_abs_builddir in
  810. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  811. *)
  812. case $ac_top_srcdir in
  813. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  814. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  815. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  816. esac;;
  817. esac
  818. cd $ac_dir
  819. # Check for guested configure; otherwise get Cygnus style configure.
  820. if test -f $ac_srcdir/configure.gnu; then
  821. echo
  822. $SHELL $ac_srcdir/configure.gnu --help=recursive
  823. elif test -f $ac_srcdir/configure; then
  824. echo
  825. $SHELL $ac_srcdir/configure --help=recursive
  826. elif test -f $ac_srcdir/configure.ac ||
  827. test -f $ac_srcdir/configure.in; then
  828. echo
  829. $ac_configure --help
  830. else
  831. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  832. fi
  833. cd "$ac_popdir"
  834. done
  835. fi
  836. test -n "$ac_init_help" && exit 0
  837. if $ac_init_version; then
  838. cat <<\_ACEOF
  839. Copyright (C) 2003 Free Software Foundation, Inc.
  840. This configure script is free software; the Free Software Foundation
  841. gives unlimited permission to copy, distribute and modify it.
  842. Copyright (c) 2003, 2004 Bryan Drewery (bryan)
  843. _ACEOF
  844. exit 0
  845. fi
  846. exec 5>config.log
  847. cat >&5 <<_ACEOF
  848. This file contains any messages produced by compilers while
  849. running configure, to aid debugging if configure makes a mistake.
  850. It was created by $as_me, which was
  851. generated by GNU Autoconf 2.59. Invocation command line was
  852. $ $0 $@
  853. _ACEOF
  854. {
  855. cat <<_ASUNAME
  856. ## --------- ##
  857. ## Platform. ##
  858. ## --------- ##
  859. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  860. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  861. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  862. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  863. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  864. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  865. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  866. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  867. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  868. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  869. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  870. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  871. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  872. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  873. _ASUNAME
  874. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  875. for as_dir in $PATH
  876. do
  877. IFS=$as_save_IFS
  878. test -z "$as_dir" && as_dir=.
  879. echo "PATH: $as_dir"
  880. done
  881. } >&5
  882. cat >&5 <<_ACEOF
  883. ## ----------- ##
  884. ## Core tests. ##
  885. ## ----------- ##
  886. _ACEOF
  887. # Keep a trace of the command line.
  888. # Strip out --no-create and --no-recursion so they do not pile up.
  889. # Strip out --silent because we don't want to record it for future runs.
  890. # Also quote any args containing shell meta-characters.
  891. # Make two passes to allow for proper duplicate-argument suppression.
  892. ac_configure_args=
  893. ac_configure_args0=
  894. ac_configure_args1=
  895. ac_sep=
  896. ac_must_keep_next=false
  897. for ac_pass in 1 2
  898. do
  899. for ac_arg
  900. do
  901. case $ac_arg in
  902. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  903. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  904. | -silent | --silent | --silen | --sile | --sil)
  905. continue ;;
  906. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  907. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  908. esac
  909. case $ac_pass in
  910. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  911. 2)
  912. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  913. if test $ac_must_keep_next = true; then
  914. ac_must_keep_next=false # Got value, back to normal.
  915. else
  916. case $ac_arg in
  917. *=* | --config-cache | -C | -disable-* | --disable-* \
  918. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  919. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  920. | -with-* | --with-* | -without-* | --without-* | --x)
  921. case "$ac_configure_args0 " in
  922. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  923. esac
  924. ;;
  925. -* ) ac_must_keep_next=true ;;
  926. esac
  927. fi
  928. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  929. # Get rid of the leading space.
  930. ac_sep=" "
  931. ;;
  932. esac
  933. done
  934. done
  935. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  936. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  937. # When interrupted or exit'd, cleanup temporary files, and complete
  938. # config.log. We remove comments because anyway the quotes in there
  939. # would cause problems or look ugly.
  940. # WARNING: Be sure not to use single quotes in there, as some shells,
  941. # such as our DU 5.0 friend, will then `close' the trap.
  942. trap 'exit_status=$?
  943. # Save into config.log some information that might help in debugging.
  944. {
  945. echo
  946. cat <<\_ASBOX
  947. ## ---------------- ##
  948. ## Cache variables. ##
  949. ## ---------------- ##
  950. _ASBOX
  951. echo
  952. # The following way of writing the cache mishandles newlines in values,
  953. {
  954. (set) 2>&1 |
  955. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  956. *ac_space=\ *)
  957. sed -n \
  958. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  959. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  960. ;;
  961. *)
  962. sed -n \
  963. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  964. ;;
  965. esac;
  966. }
  967. echo
  968. cat <<\_ASBOX
  969. ## ----------------- ##
  970. ## Output variables. ##
  971. ## ----------------- ##
  972. _ASBOX
  973. echo
  974. for ac_var in $ac_subst_vars
  975. do
  976. eval ac_val=$`echo $ac_var`
  977. echo "$ac_var='"'"'$ac_val'"'"'"
  978. done | sort
  979. echo
  980. if test -n "$ac_subst_files"; then
  981. cat <<\_ASBOX
  982. ## ------------- ##
  983. ## Output files. ##
  984. ## ------------- ##
  985. _ASBOX
  986. echo
  987. for ac_var in $ac_subst_files
  988. do
  989. eval ac_val=$`echo $ac_var`
  990. echo "$ac_var='"'"'$ac_val'"'"'"
  991. done | sort
  992. echo
  993. fi
  994. if test -s confdefs.h; then
  995. cat <<\_ASBOX
  996. ## ----------- ##
  997. ## confdefs.h. ##
  998. ## ----------- ##
  999. _ASBOX
  1000. echo
  1001. sed "/^$/d" confdefs.h | sort
  1002. echo
  1003. fi
  1004. test "$ac_signal" != 0 &&
  1005. echo "$as_me: caught signal $ac_signal"
  1006. echo "$as_me: exit $exit_status"
  1007. } >&5
  1008. rm -f core *.core &&
  1009. rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1010. exit $exit_status
  1011. ' 0
  1012. for ac_signal in 1 2 13 15; do
  1013. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1014. done
  1015. ac_signal=0
  1016. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1017. rm -rf conftest* confdefs.h
  1018. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1019. echo >confdefs.h
  1020. # Predefined preprocessor variables.
  1021. cat >>confdefs.h <<_ACEOF
  1022. #define PACKAGE_NAME "$PACKAGE_NAME"
  1023. _ACEOF
  1024. cat >>confdefs.h <<_ACEOF
  1025. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1026. _ACEOF
  1027. cat >>confdefs.h <<_ACEOF
  1028. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1029. _ACEOF
  1030. cat >>confdefs.h <<_ACEOF
  1031. #define PACKAGE_STRING "$PACKAGE_STRING"
  1032. _ACEOF
  1033. cat >>confdefs.h <<_ACEOF
  1034. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1035. _ACEOF
  1036. # Let the site file select an alternate cache file if it wants to.
  1037. # Prefer explicitly selected file to automatically selected ones.
  1038. if test -z "$CONFIG_SITE"; then
  1039. if test "x$prefix" != xNONE; then
  1040. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1041. else
  1042. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1043. fi
  1044. fi
  1045. for ac_site_file in $CONFIG_SITE; do
  1046. if test -r "$ac_site_file"; then
  1047. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1048. echo "$as_me: loading site script $ac_site_file" >&6;}
  1049. sed 's/^/| /' "$ac_site_file" >&5
  1050. . "$ac_site_file"
  1051. fi
  1052. done
  1053. if test -r "$cache_file"; then
  1054. # Some versions of bash will fail to source /dev/null (special
  1055. # files actually), so we avoid doing that.
  1056. if test -f "$cache_file"; then
  1057. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1058. echo "$as_me: loading cache $cache_file" >&6;}
  1059. case $cache_file in
  1060. [\\/]* | ?:[\\/]* ) . $cache_file;;
  1061. *) . ./$cache_file;;
  1062. esac
  1063. fi
  1064. else
  1065. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1066. echo "$as_me: creating cache $cache_file" >&6;}
  1067. >$cache_file
  1068. fi
  1069. # Check that the precious variables saved in the cache have kept the same
  1070. # value.
  1071. ac_cache_corrupted=false
  1072. for ac_var in `(set) 2>&1 |
  1073. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1074. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1075. eval ac_new_set=\$ac_env_${ac_var}_set
  1076. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1077. eval ac_new_val="\$ac_env_${ac_var}_value"
  1078. case $ac_old_set,$ac_new_set in
  1079. set,)
  1080. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1081. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1082. ac_cache_corrupted=: ;;
  1083. ,set)
  1084. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1085. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1086. ac_cache_corrupted=: ;;
  1087. ,);;
  1088. *)
  1089. if test "x$ac_old_val" != "x$ac_new_val"; then
  1090. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1091. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1092. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1093. echo "$as_me: former value: $ac_old_val" >&2;}
  1094. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1095. echo "$as_me: current value: $ac_new_val" >&2;}
  1096. ac_cache_corrupted=:
  1097. fi;;
  1098. esac
  1099. # Pass precious variables to config.status.
  1100. if test "$ac_new_set" = set; then
  1101. case $ac_new_val in
  1102. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1103. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1104. *) ac_arg=$ac_var=$ac_new_val ;;
  1105. esac
  1106. case " $ac_configure_args " in
  1107. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1108. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1109. esac
  1110. fi
  1111. done
  1112. if $ac_cache_corrupted; then
  1113. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1114. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1115. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1116. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1117. { (exit 1); exit 1; }; }
  1118. fi
  1119. ac_ext=c
  1120. ac_cpp='$CPP $CPPFLAGS'
  1121. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1122. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1123. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1124. ac_config_headers="$ac_config_headers config.h"
  1125. # Remove --cache-file and --srcdir arguments so they do not pile up.
  1126. egg_ac_parameters=
  1127. ac_prev=
  1128. for ac_arg in $ac_configure_args; do
  1129. if test -n "$ac_prev"; then
  1130. ac_prev=
  1131. continue
  1132. fi
  1133. case $ac_arg in
  1134. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1135. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1136. ac_prev=cache_file ;;
  1137. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1138. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  1139. | --c=*)
  1140. ;;
  1141. --config-cache | -C)
  1142. ;;
  1143. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1144. ac_prev=srcdir ;;
  1145. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1146. ;;
  1147. *) egg_ac_parameters="$egg_ac_parameters $ac_arg" ;;
  1148. esac
  1149. done
  1150. # Setup build environment
  1151. #AC_REQUIRE_CPP
  1152. ac_ext=cc
  1153. ac_cpp='$CXXCPP $CPPFLAGS'
  1154. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1155. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1156. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  1157. ac_ext=cc
  1158. ac_cpp='$CXXCPP $CPPFLAGS'
  1159. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1160. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1161. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  1162. if test -n "$ac_tool_prefix"; then
  1163. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  1164. do
  1165. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1166. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1167. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1168. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1169. if test "${ac_cv_prog_CXX+set}" = set; then
  1170. echo $ECHO_N "(cached) $ECHO_C" >&6
  1171. else
  1172. if test -n "$CXX"; then
  1173. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  1174. else
  1175. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1176. for as_dir in $PATH
  1177. do
  1178. IFS=$as_save_IFS
  1179. test -z "$as_dir" && as_dir=.
  1180. for ac_exec_ext in '' $ac_executable_extensions; do
  1181. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1182. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  1183. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1184. break 2
  1185. fi
  1186. done
  1187. done
  1188. fi
  1189. fi
  1190. CXX=$ac_cv_prog_CXX
  1191. if test -n "$CXX"; then
  1192. echo "$as_me:$LINENO: result: $CXX" >&5
  1193. echo "${ECHO_T}$CXX" >&6
  1194. else
  1195. echo "$as_me:$LINENO: result: no" >&5
  1196. echo "${ECHO_T}no" >&6
  1197. fi
  1198. test -n "$CXX" && break
  1199. done
  1200. fi
  1201. if test -z "$CXX"; then
  1202. ac_ct_CXX=$CXX
  1203. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  1204. do
  1205. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1206. set dummy $ac_prog; ac_word=$2
  1207. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1208. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1209. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  1210. echo $ECHO_N "(cached) $ECHO_C" >&6
  1211. else
  1212. if test -n "$ac_ct_CXX"; then
  1213. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  1214. else
  1215. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1216. for as_dir in $PATH
  1217. do
  1218. IFS=$as_save_IFS
  1219. test -z "$as_dir" && as_dir=.
  1220. for ac_exec_ext in '' $ac_executable_extensions; do
  1221. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1222. ac_cv_prog_ac_ct_CXX="$ac_prog"
  1223. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1224. break 2
  1225. fi
  1226. done
  1227. done
  1228. fi
  1229. fi
  1230. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  1231. if test -n "$ac_ct_CXX"; then
  1232. echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  1233. echo "${ECHO_T}$ac_ct_CXX" >&6
  1234. else
  1235. echo "$as_me:$LINENO: result: no" >&5
  1236. echo "${ECHO_T}no" >&6
  1237. fi
  1238. test -n "$ac_ct_CXX" && break
  1239. done
  1240. test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
  1241. CXX=$ac_ct_CXX
  1242. fi
  1243. # Provide some information about the compiler.
  1244. echo "$as_me:$LINENO:" \
  1245. "checking for C++ compiler version" >&5
  1246. ac_compiler=`set X $ac_compile; echo $2`
  1247. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  1248. (eval $ac_compiler --version </dev/null >&5) 2>&5
  1249. ac_status=$?
  1250. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1251. (exit $ac_status); }
  1252. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  1253. (eval $ac_compiler -v </dev/null >&5) 2>&5
  1254. ac_status=$?
  1255. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1256. (exit $ac_status); }
  1257. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  1258. (eval $ac_compiler -V </dev/null >&5) 2>&5
  1259. ac_status=$?
  1260. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1261. (exit $ac_status); }
  1262. cat >conftest.$ac_ext <<_ACEOF
  1263. /* confdefs.h. */
  1264. _ACEOF
  1265. cat confdefs.h >>conftest.$ac_ext
  1266. cat >>conftest.$ac_ext <<_ACEOF
  1267. /* end confdefs.h. */
  1268. int
  1269. main ()
  1270. {
  1271. ;
  1272. return 0;
  1273. }
  1274. _ACEOF
  1275. ac_clean_files_save=$ac_clean_files
  1276. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  1277. # Try to create an executable without -o first, disregard a.out.
  1278. # It will help us diagnose broken compilers, and finding out an intuition
  1279. # of exeext.
  1280. echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
  1281. echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
  1282. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1283. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  1284. (eval $ac_link_default) 2>&5
  1285. ac_status=$?
  1286. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1287. (exit $ac_status); }; then
  1288. # Find the output, starting from the most likely. This scheme is
  1289. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  1290. # resort.
  1291. # Be careful to initialize this variable, since it used to be cached.
  1292. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  1293. ac_cv_exeext=
  1294. # b.out is created by i960 compilers.
  1295. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  1296. do
  1297. test -f "$ac_file" || continue
  1298. case $ac_file in
  1299. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  1300. ;;
  1301. conftest.$ac_ext )
  1302. # This is the source file.
  1303. ;;
  1304. [ab].out )
  1305. # We found the default executable, but exeext='' is most
  1306. # certainly right.
  1307. break;;
  1308. *.* )
  1309. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1310. # FIXME: I believe we export ac_cv_exeext for Libtool,
  1311. # but it would be cool to find out if it's true. Does anybody
  1312. # maintain Libtool? --akim.
  1313. export ac_cv_exeext
  1314. break;;
  1315. * )
  1316. break;;
  1317. esac
  1318. done
  1319. else
  1320. echo "$as_me: failed program was:" >&5
  1321. sed 's/^/| /' conftest.$ac_ext >&5
  1322. { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
  1323. See \`config.log' for more details." >&5
  1324. echo "$as_me: error: C++ compiler cannot create executables
  1325. See \`config.log' for more details." >&2;}
  1326. { (exit 77); exit 77; }; }
  1327. fi
  1328. ac_exeext=$ac_cv_exeext
  1329. echo "$as_me:$LINENO: result: $ac_file" >&5
  1330. echo "${ECHO_T}$ac_file" >&6
  1331. # Check the compiler produces executables we can run. If not, either
  1332. # the compiler is broken, or we cross compile.
  1333. echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
  1334. echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
  1335. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1336. # If not cross compiling, check that we can run a simple program.
  1337. if test "$cross_compiling" != yes; then
  1338. if { ac_try='./$ac_file'
  1339. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1340. (eval $ac_try) 2>&5
  1341. ac_status=$?
  1342. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1343. (exit $ac_status); }; }; then
  1344. cross_compiling=no
  1345. else
  1346. if test "$cross_compiling" = maybe; then
  1347. cross_compiling=yes
  1348. else
  1349. { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
  1350. If you meant to cross compile, use \`--host'.
  1351. See \`config.log' for more details." >&5
  1352. echo "$as_me: error: cannot run C++ compiled programs.
  1353. If you meant to cross compile, use \`--host'.
  1354. See \`config.log' for more details." >&2;}
  1355. { (exit 1); exit 1; }; }
  1356. fi
  1357. fi
  1358. fi
  1359. echo "$as_me:$LINENO: result: yes" >&5
  1360. echo "${ECHO_T}yes" >&6
  1361. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  1362. ac_clean_files=$ac_clean_files_save
  1363. # Check the compiler produces executables we can run. If not, either
  1364. # the compiler is broken, or we cross compile.
  1365. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  1366. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  1367. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  1368. echo "${ECHO_T}$cross_compiling" >&6
  1369. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  1370. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  1371. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  1372. (eval $ac_link) 2>&5
  1373. ac_status=$?
  1374. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1375. (exit $ac_status); }; then
  1376. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  1377. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  1378. # work properly (i.e., refer to `conftest.exe'), while it won't with
  1379. # `rm'.
  1380. for ac_file in conftest.exe conftest conftest.*; do
  1381. test -f "$ac_file" || continue
  1382. case $ac_file in
  1383. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  1384. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1385. export ac_cv_exeext
  1386. break;;
  1387. * ) break;;
  1388. esac
  1389. done
  1390. else
  1391. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  1392. See \`config.log' for more details." >&5
  1393. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  1394. See \`config.log' for more details." >&2;}
  1395. { (exit 1); exit 1; }; }
  1396. fi
  1397. rm -f conftest$ac_cv_exeext
  1398. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  1399. echo "${ECHO_T}$ac_cv_exeext" >&6
  1400. rm -f conftest.$ac_ext
  1401. EXEEXT=$ac_cv_exeext
  1402. ac_exeext=$EXEEXT
  1403. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  1404. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  1405. if test "${ac_cv_objext+set}" = set; then
  1406. echo $ECHO_N "(cached) $ECHO_C" >&6
  1407. else
  1408. cat >conftest.$ac_ext <<_ACEOF
  1409. /* confdefs.h. */
  1410. _ACEOF
  1411. cat confdefs.h >>conftest.$ac_ext
  1412. cat >>conftest.$ac_ext <<_ACEOF
  1413. /* end confdefs.h. */
  1414. int
  1415. main ()
  1416. {
  1417. ;
  1418. return 0;
  1419. }
  1420. _ACEOF
  1421. rm -f conftest.o conftest.obj
  1422. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1423. (eval $ac_compile) 2>&5
  1424. ac_status=$?
  1425. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1426. (exit $ac_status); }; then
  1427. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  1428. case $ac_file in
  1429. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  1430. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  1431. break;;
  1432. esac
  1433. done
  1434. else
  1435. echo "$as_me: failed program was:" >&5
  1436. sed 's/^/| /' conftest.$ac_ext >&5
  1437. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  1438. See \`config.log' for more details." >&5
  1439. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  1440. See \`config.log' for more details." >&2;}
  1441. { (exit 1); exit 1; }; }
  1442. fi
  1443. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  1444. fi
  1445. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  1446. echo "${ECHO_T}$ac_cv_objext" >&6
  1447. OBJEXT=$ac_cv_objext
  1448. ac_objext=$OBJEXT
  1449. echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  1450. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
  1451. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  1452. echo $ECHO_N "(cached) $ECHO_C" >&6
  1453. else
  1454. cat >conftest.$ac_ext <<_ACEOF
  1455. /* confdefs.h. */
  1456. _ACEOF
  1457. cat confdefs.h >>conftest.$ac_ext
  1458. cat >>conftest.$ac_ext <<_ACEOF
  1459. /* end confdefs.h. */
  1460. int
  1461. main ()
  1462. {
  1463. #ifndef __GNUC__
  1464. choke me
  1465. #endif
  1466. ;
  1467. return 0;
  1468. }
  1469. _ACEOF
  1470. rm -f conftest.$ac_objext
  1471. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1472. (eval $ac_compile) 2>conftest.er1
  1473. ac_status=$?
  1474. grep -v '^ *+' conftest.er1 >conftest.err
  1475. rm -f conftest.er1
  1476. cat conftest.err >&5
  1477. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1478. (exit $ac_status); } &&
  1479. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  1480. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1481. (eval $ac_try) 2>&5
  1482. ac_status=$?
  1483. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1484. (exit $ac_status); }; } &&
  1485. { ac_try='test -s conftest.$ac_objext'
  1486. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1487. (eval $ac_try) 2>&5
  1488. ac_status=$?
  1489. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1490. (exit $ac_status); }; }; then
  1491. ac_compiler_gnu=yes
  1492. else
  1493. echo "$as_me: failed program was:" >&5
  1494. sed 's/^/| /' conftest.$ac_ext >&5
  1495. ac_compiler_gnu=no
  1496. fi
  1497. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1498. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  1499. fi
  1500. echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  1501. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
  1502. GXX=`test $ac_compiler_gnu = yes && echo yes`
  1503. ac_test_CXXFLAGS=${CXXFLAGS+set}
  1504. ac_save_CXXFLAGS=$CXXFLAGS
  1505. CXXFLAGS="-g"
  1506. echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  1507. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
  1508. if test "${ac_cv_prog_cxx_g+set}" = set; then
  1509. echo $ECHO_N "(cached) $ECHO_C" >&6
  1510. else
  1511. cat >conftest.$ac_ext <<_ACEOF
  1512. /* confdefs.h. */
  1513. _ACEOF
  1514. cat confdefs.h >>conftest.$ac_ext
  1515. cat >>conftest.$ac_ext <<_ACEOF
  1516. /* end confdefs.h. */
  1517. int
  1518. main ()
  1519. {
  1520. ;
  1521. return 0;
  1522. }
  1523. _ACEOF
  1524. rm -f conftest.$ac_objext
  1525. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1526. (eval $ac_compile) 2>conftest.er1
  1527. ac_status=$?
  1528. grep -v '^ *+' conftest.er1 >conftest.err
  1529. rm -f conftest.er1
  1530. cat conftest.err >&5
  1531. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1532. (exit $ac_status); } &&
  1533. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  1534. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1535. (eval $ac_try) 2>&5
  1536. ac_status=$?
  1537. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1538. (exit $ac_status); }; } &&
  1539. { ac_try='test -s conftest.$ac_objext'
  1540. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1541. (eval $ac_try) 2>&5
  1542. ac_status=$?
  1543. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1544. (exit $ac_status); }; }; then
  1545. ac_cv_prog_cxx_g=yes
  1546. else
  1547. echo "$as_me: failed program was:" >&5
  1548. sed 's/^/| /' conftest.$ac_ext >&5
  1549. ac_cv_prog_cxx_g=no
  1550. fi
  1551. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1552. fi
  1553. echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  1554. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
  1555. if test "$ac_test_CXXFLAGS" = set; then
  1556. CXXFLAGS=$ac_save_CXXFLAGS
  1557. elif test $ac_cv_prog_cxx_g = yes; then
  1558. if test "$GXX" = yes; then
  1559. CXXFLAGS="-g -O2"
  1560. else
  1561. CXXFLAGS="-g"
  1562. fi
  1563. else
  1564. if test "$GXX" = yes; then
  1565. CXXFLAGS="-O2"
  1566. else
  1567. CXXFLAGS=
  1568. fi
  1569. fi
  1570. for ac_declaration in \
  1571. '' \
  1572. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  1573. 'extern "C" void std::exit (int); using std::exit;' \
  1574. 'extern "C" void exit (int) throw ();' \
  1575. 'extern "C" void exit (int);' \
  1576. 'void exit (int);'
  1577. do
  1578. cat >conftest.$ac_ext <<_ACEOF
  1579. /* confdefs.h. */
  1580. _ACEOF
  1581. cat confdefs.h >>conftest.$ac_ext
  1582. cat >>conftest.$ac_ext <<_ACEOF
  1583. /* end confdefs.h. */
  1584. $ac_declaration
  1585. #include <stdlib.h>
  1586. int
  1587. main ()
  1588. {
  1589. exit (42);
  1590. ;
  1591. return 0;
  1592. }
  1593. _ACEOF
  1594. rm -f conftest.$ac_objext
  1595. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1596. (eval $ac_compile) 2>conftest.er1
  1597. ac_status=$?
  1598. grep -v '^ *+' conftest.er1 >conftest.err
  1599. rm -f conftest.er1
  1600. cat conftest.err >&5
  1601. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1602. (exit $ac_status); } &&
  1603. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  1604. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1605. (eval $ac_try) 2>&5
  1606. ac_status=$?
  1607. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1608. (exit $ac_status); }; } &&
  1609. { ac_try='test -s conftest.$ac_objext'
  1610. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1611. (eval $ac_try) 2>&5
  1612. ac_status=$?
  1613. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1614. (exit $ac_status); }; }; then
  1615. :
  1616. else
  1617. echo "$as_me: failed program was:" >&5
  1618. sed 's/^/| /' conftest.$ac_ext >&5
  1619. continue
  1620. fi
  1621. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1622. cat >conftest.$ac_ext <<_ACEOF
  1623. /* confdefs.h. */
  1624. _ACEOF
  1625. cat confdefs.h >>conftest.$ac_ext
  1626. cat >>conftest.$ac_ext <<_ACEOF
  1627. /* end confdefs.h. */
  1628. $ac_declaration
  1629. int
  1630. main ()
  1631. {
  1632. exit (42);
  1633. ;
  1634. return 0;
  1635. }
  1636. _ACEOF
  1637. rm -f conftest.$ac_objext
  1638. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1639. (eval $ac_compile) 2>conftest.er1
  1640. ac_status=$?
  1641. grep -v '^ *+' conftest.er1 >conftest.err
  1642. rm -f conftest.er1
  1643. cat conftest.err >&5
  1644. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1645. (exit $ac_status); } &&
  1646. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  1647. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1648. (eval $ac_try) 2>&5
  1649. ac_status=$?
  1650. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1651. (exit $ac_status); }; } &&
  1652. { ac_try='test -s conftest.$ac_objext'
  1653. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1654. (eval $ac_try) 2>&5
  1655. ac_status=$?
  1656. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1657. (exit $ac_status); }; }; then
  1658. break
  1659. else
  1660. echo "$as_me: failed program was:" >&5
  1661. sed 's/^/| /' conftest.$ac_ext >&5
  1662. fi
  1663. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1664. done
  1665. rm -f conftest*
  1666. if test -n "$ac_declaration"; then
  1667. echo '#ifdef __cplusplus' >>confdefs.h
  1668. echo $ac_declaration >>confdefs.h
  1669. echo '#endif' >>confdefs.h
  1670. fi
  1671. ac_ext=cc
  1672. ac_cpp='$CXXCPP $CPPFLAGS'
  1673. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1674. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1675. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  1676. if test "${cross_compiling-x}" = "x"
  1677. then
  1678. cat << 'EOF' >&2
  1679. configure: error:
  1680. This system does not appear to have a working C compiler.
  1681. A working C compiler is required to compile Eggdrop.
  1682. EOF
  1683. exit 1
  1684. fi
  1685. if test -n "$GXX"; then
  1686. CXXFLAGS="$CXXFLAGS -O3"
  1687. fi
  1688. # Crazy machines
  1689. ac_ext=cc
  1690. ac_cpp='$CXXCPP $CPPFLAGS'
  1691. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1692. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1693. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  1694. echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  1695. echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
  1696. if test -z "$CXXCPP"; then
  1697. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  1698. echo $ECHO_N "(cached) $ECHO_C" >&6
  1699. else
  1700. # Double quotes because CXXCPP needs to be expanded
  1701. for CXXCPP in "$CXX -E" "/lib/cpp"
  1702. do
  1703. ac_preproc_ok=false
  1704. for ac_cxx_preproc_warn_flag in '' yes
  1705. do
  1706. # Use a header file that comes with gcc, so configuring glibc
  1707. # with a fresh cross-compiler works.
  1708. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1709. # <limits.h> exists even on freestanding compilers.
  1710. # On the NeXT, cc -E runs the code through the compiler's parser,
  1711. # not just through cpp. "Syntax error" is here to catch this case.
  1712. cat >conftest.$ac_ext <<_ACEOF
  1713. /* confdefs.h. */
  1714. _ACEOF
  1715. cat confdefs.h >>conftest.$ac_ext
  1716. cat >>conftest.$ac_ext <<_ACEOF
  1717. /* end confdefs.h. */
  1718. #ifdef __STDC__
  1719. # include <limits.h>
  1720. #else
  1721. # include <assert.h>
  1722. #endif
  1723. Syntax error
  1724. _ACEOF
  1725. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  1726. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  1727. ac_status=$?
  1728. grep -v '^ *+' conftest.er1 >conftest.err
  1729. rm -f conftest.er1
  1730. cat conftest.err >&5
  1731. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1732. (exit $ac_status); } >/dev/null; then
  1733. if test -s conftest.err; then
  1734. ac_cpp_err=$ac_cxx_preproc_warn_flag
  1735. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  1736. else
  1737. ac_cpp_err=
  1738. fi
  1739. else
  1740. ac_cpp_err=yes
  1741. fi
  1742. if test -z "$ac_cpp_err"; then
  1743. :
  1744. else
  1745. echo "$as_me: failed program was:" >&5
  1746. sed 's/^/| /' conftest.$ac_ext >&5
  1747. # Broken: fails on valid input.
  1748. continue
  1749. fi
  1750. rm -f conftest.err conftest.$ac_ext
  1751. # OK, works on sane cases. Now check whether non-existent headers
  1752. # can be detected and how.
  1753. cat >conftest.$ac_ext <<_ACEOF
  1754. /* confdefs.h. */
  1755. _ACEOF
  1756. cat confdefs.h >>conftest.$ac_ext
  1757. cat >>conftest.$ac_ext <<_ACEOF
  1758. /* end confdefs.h. */
  1759. #include <ac_nonexistent.h>
  1760. _ACEOF
  1761. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  1762. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  1763. ac_status=$?
  1764. grep -v '^ *+' conftest.er1 >conftest.err
  1765. rm -f conftest.er1
  1766. cat conftest.err >&5
  1767. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1768. (exit $ac_status); } >/dev/null; then
  1769. if test -s conftest.err; then
  1770. ac_cpp_err=$ac_cxx_preproc_warn_flag
  1771. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  1772. else
  1773. ac_cpp_err=
  1774. fi
  1775. else
  1776. ac_cpp_err=yes
  1777. fi
  1778. if test -z "$ac_cpp_err"; then
  1779. # Broken: success on invalid input.
  1780. continue
  1781. else
  1782. echo "$as_me: failed program was:" >&5
  1783. sed 's/^/| /' conftest.$ac_ext >&5
  1784. # Passes both tests.
  1785. ac_preproc_ok=:
  1786. break
  1787. fi
  1788. rm -f conftest.err conftest.$ac_ext
  1789. done
  1790. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  1791. rm -f conftest.err conftest.$ac_ext
  1792. if $ac_preproc_ok; then
  1793. break
  1794. fi
  1795. done
  1796. ac_cv_prog_CXXCPP=$CXXCPP
  1797. fi
  1798. CXXCPP=$ac_cv_prog_CXXCPP
  1799. else
  1800. ac_cv_prog_CXXCPP=$CXXCPP
  1801. fi
  1802. echo "$as_me:$LINENO: result: $CXXCPP" >&5
  1803. echo "${ECHO_T}$CXXCPP" >&6
  1804. ac_preproc_ok=false
  1805. for ac_cxx_preproc_warn_flag in '' yes
  1806. do
  1807. # Use a header file that comes with gcc, so configuring glibc
  1808. # with a fresh cross-compiler works.
  1809. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1810. # <limits.h> exists even on freestanding compilers.
  1811. # On the NeXT, cc -E runs the code through the compiler's parser,
  1812. # not just through cpp. "Syntax error" is here to catch this case.
  1813. cat >conftest.$ac_ext <<_ACEOF
  1814. /* confdefs.h. */
  1815. _ACEOF
  1816. cat confdefs.h >>conftest.$ac_ext
  1817. cat >>conftest.$ac_ext <<_ACEOF
  1818. /* end confdefs.h. */
  1819. #ifdef __STDC__
  1820. # include <limits.h>
  1821. #else
  1822. # include <assert.h>
  1823. #endif
  1824. Syntax error
  1825. _ACEOF
  1826. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  1827. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  1828. ac_status=$?
  1829. grep -v '^ *+' conftest.er1 >conftest.err
  1830. rm -f conftest.er1
  1831. cat conftest.err >&5
  1832. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1833. (exit $ac_status); } >/dev/null; then
  1834. if test -s conftest.err; then
  1835. ac_cpp_err=$ac_cxx_preproc_warn_flag
  1836. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  1837. else
  1838. ac_cpp_err=
  1839. fi
  1840. else
  1841. ac_cpp_err=yes
  1842. fi
  1843. if test -z "$ac_cpp_err"; then
  1844. :
  1845. else
  1846. echo "$as_me: failed program was:" >&5
  1847. sed 's/^/| /' conftest.$ac_ext >&5
  1848. # Broken: fails on valid input.
  1849. continue
  1850. fi
  1851. rm -f conftest.err conftest.$ac_ext
  1852. # OK, works on sane cases. Now check whether non-existent headers
  1853. # can be detected and how.
  1854. cat >conftest.$ac_ext <<_ACEOF
  1855. /* confdefs.h. */
  1856. _ACEOF
  1857. cat confdefs.h >>conftest.$ac_ext
  1858. cat >>conftest.$ac_ext <<_ACEOF
  1859. /* end confdefs.h. */
  1860. #include <ac_nonexistent.h>
  1861. _ACEOF
  1862. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  1863. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  1864. ac_status=$?
  1865. grep -v '^ *+' conftest.er1 >conftest.err
  1866. rm -f conftest.er1
  1867. cat conftest.err >&5
  1868. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1869. (exit $ac_status); } >/dev/null; then
  1870. if test -s conftest.err; then
  1871. ac_cpp_err=$ac_cxx_preproc_warn_flag
  1872. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  1873. else
  1874. ac_cpp_err=
  1875. fi
  1876. else
  1877. ac_cpp_err=yes
  1878. fi
  1879. if test -z "$ac_cpp_err"; then
  1880. # Broken: success on invalid input.
  1881. continue
  1882. else
  1883. echo "$as_me: failed program was:" >&5
  1884. sed 's/^/| /' conftest.$ac_ext >&5
  1885. # Passes both tests.
  1886. ac_preproc_ok=:
  1887. break
  1888. fi
  1889. rm -f conftest.err conftest.$ac_ext
  1890. done
  1891. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  1892. rm -f conftest.err conftest.$ac_ext
  1893. if $ac_preproc_ok; then
  1894. :
  1895. else
  1896. { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  1897. See \`config.log' for more details." >&5
  1898. echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  1899. See \`config.log' for more details." >&2;}
  1900. { (exit 1); exit 1; }; }
  1901. fi
  1902. ac_ext=cc
  1903. ac_cpp='$CXXCPP $CPPFLAGS'
  1904. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1905. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1906. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  1907. echo "$as_me:$LINENO: checking for egrep" >&5
  1908. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  1909. if test "${ac_cv_prog_egrep+set}" = set; then
  1910. echo $ECHO_N "(cached) $ECHO_C" >&6
  1911. else
  1912. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  1913. then ac_cv_prog_egrep='grep -E'
  1914. else ac_cv_prog_egrep='egrep'
  1915. fi
  1916. fi
  1917. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  1918. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  1919. EGREP=$ac_cv_prog_egrep
  1920. echo "$as_me:$LINENO: checking for AIX" >&5
  1921. echo $ECHO_N "checking for AIX... $ECHO_C" >&6
  1922. cat >conftest.$ac_ext <<_ACEOF
  1923. /* confdefs.h. */
  1924. _ACEOF
  1925. cat confdefs.h >>conftest.$ac_ext
  1926. cat >>conftest.$ac_ext <<_ACEOF
  1927. /* end confdefs.h. */
  1928. #ifdef _AIX
  1929. yes
  1930. #endif
  1931. _ACEOF
  1932. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1933. $EGREP "yes" >/dev/null 2>&1; then
  1934. echo "$as_me:$LINENO: result: yes" >&5
  1935. echo "${ECHO_T}yes" >&6
  1936. cat >>confdefs.h <<\_ACEOF
  1937. #define _ALL_SOURCE 1
  1938. _ACEOF
  1939. else
  1940. echo "$as_me:$LINENO: result: no" >&5
  1941. echo "${ECHO_T}no" >&6
  1942. fi
  1943. rm -f conftest*
  1944. echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
  1945. echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
  1946. if test "${ac_cv_lib_cposix_strerror+set}" = set; then
  1947. echo $ECHO_N "(cached) $ECHO_C" >&6
  1948. else
  1949. ac_check_lib_save_LIBS=$LIBS
  1950. LIBS="-lcposix $LIBS"
  1951. cat >conftest.$ac_ext <<_ACEOF
  1952. /* confdefs.h. */
  1953. _ACEOF
  1954. cat confdefs.h >>conftest.$ac_ext
  1955. cat >>conftest.$ac_ext <<_ACEOF
  1956. /* end confdefs.h. */
  1957. /* Override any gcc2 internal prototype to avoid an error. */
  1958. #ifdef __cplusplus
  1959. extern "C"
  1960. #endif
  1961. /* We use char because int might match the return type of a gcc2
  1962. builtin and then its argument prototype would still apply. */
  1963. char strerror ();
  1964. int
  1965. main ()
  1966. {
  1967. strerror ();
  1968. ;
  1969. return 0;
  1970. }
  1971. _ACEOF
  1972. rm -f conftest.$ac_objext conftest$ac_exeext
  1973. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  1974. (eval $ac_link) 2>conftest.er1
  1975. ac_status=$?
  1976. grep -v '^ *+' conftest.er1 >conftest.err
  1977. rm -f conftest.er1
  1978. cat conftest.err >&5
  1979. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1980. (exit $ac_status); } &&
  1981. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  1982. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1983. (eval $ac_try) 2>&5
  1984. ac_status=$?
  1985. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1986. (exit $ac_status); }; } &&
  1987. { ac_try='test -s conftest$ac_exeext'
  1988. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1989. (eval $ac_try) 2>&5
  1990. ac_status=$?
  1991. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1992. (exit $ac_status); }; }; then
  1993. ac_cv_lib_cposix_strerror=yes
  1994. else
  1995. echo "$as_me: failed program was:" >&5
  1996. sed 's/^/| /' conftest.$ac_ext >&5
  1997. ac_cv_lib_cposix_strerror=no
  1998. fi
  1999. rm -f conftest.err conftest.$ac_objext \
  2000. conftest$ac_exeext conftest.$ac_ext
  2001. LIBS=$ac_check_lib_save_LIBS
  2002. fi
  2003. echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
  2004. echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
  2005. if test $ac_cv_lib_cposix_strerror = yes; then
  2006. LIBS="$LIBS -lcposix"
  2007. fi
  2008. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  2009. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  2010. if test "${ac_cv_header_stdc+set}" = set; then
  2011. echo $ECHO_N "(cached) $ECHO_C" >&6
  2012. else
  2013. cat >conftest.$ac_ext <<_ACEOF
  2014. /* confdefs.h. */
  2015. _ACEOF
  2016. cat confdefs.h >>conftest.$ac_ext
  2017. cat >>conftest.$ac_ext <<_ACEOF
  2018. /* end confdefs.h. */
  2019. #include <stdlib.h>
  2020. #include <stdarg.h>
  2021. #include <string.h>
  2022. #include <float.h>
  2023. int
  2024. main ()
  2025. {
  2026. ;
  2027. return 0;
  2028. }
  2029. _ACEOF
  2030. rm -f conftest.$ac_objext
  2031. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2032. (eval $ac_compile) 2>conftest.er1
  2033. ac_status=$?
  2034. grep -v '^ *+' conftest.er1 >conftest.err
  2035. rm -f conftest.er1
  2036. cat conftest.err >&5
  2037. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2038. (exit $ac_status); } &&
  2039. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2040. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2041. (eval $ac_try) 2>&5
  2042. ac_status=$?
  2043. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2044. (exit $ac_status); }; } &&
  2045. { ac_try='test -s conftest.$ac_objext'
  2046. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2047. (eval $ac_try) 2>&5
  2048. ac_status=$?
  2049. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2050. (exit $ac_status); }; }; then
  2051. ac_cv_header_stdc=yes
  2052. else
  2053. echo "$as_me: failed program was:" >&5
  2054. sed 's/^/| /' conftest.$ac_ext >&5
  2055. ac_cv_header_stdc=no
  2056. fi
  2057. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2058. if test $ac_cv_header_stdc = yes; then
  2059. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  2060. cat >conftest.$ac_ext <<_ACEOF
  2061. /* confdefs.h. */
  2062. _ACEOF
  2063. cat confdefs.h >>conftest.$ac_ext
  2064. cat >>conftest.$ac_ext <<_ACEOF
  2065. /* end confdefs.h. */
  2066. #include <string.h>
  2067. _ACEOF
  2068. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2069. $EGREP "memchr" >/dev/null 2>&1; then
  2070. :
  2071. else
  2072. ac_cv_header_stdc=no
  2073. fi
  2074. rm -f conftest*
  2075. fi
  2076. if test $ac_cv_header_stdc = yes; then
  2077. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  2078. cat >conftest.$ac_ext <<_ACEOF
  2079. /* confdefs.h. */
  2080. _ACEOF
  2081. cat confdefs.h >>conftest.$ac_ext
  2082. cat >>conftest.$ac_ext <<_ACEOF
  2083. /* end confdefs.h. */
  2084. #include <stdlib.h>
  2085. _ACEOF
  2086. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2087. $EGREP "free" >/dev/null 2>&1; then
  2088. :
  2089. else
  2090. ac_cv_header_stdc=no
  2091. fi
  2092. rm -f conftest*
  2093. fi
  2094. if test $ac_cv_header_stdc = yes; then
  2095. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  2096. if test "$cross_compiling" = yes; then
  2097. :
  2098. else
  2099. cat >conftest.$ac_ext <<_ACEOF
  2100. /* confdefs.h. */
  2101. _ACEOF
  2102. cat confdefs.h >>conftest.$ac_ext
  2103. cat >>conftest.$ac_ext <<_ACEOF
  2104. /* end confdefs.h. */
  2105. #include <ctype.h>
  2106. #if ((' ' & 0x0FF) == 0x020)
  2107. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  2108. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  2109. #else
  2110. # define ISLOWER(c) \
  2111. (('a' <= (c) && (c) <= 'i') \
  2112. || ('j' <= (c) && (c) <= 'r') \
  2113. || ('s' <= (c) && (c) <= 'z'))
  2114. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  2115. #endif
  2116. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  2117. int
  2118. main ()
  2119. {
  2120. int i;
  2121. for (i = 0; i < 256; i++)
  2122. if (XOR (islower (i), ISLOWER (i))
  2123. || toupper (i) != TOUPPER (i))
  2124. exit(2);
  2125. exit (0);
  2126. }
  2127. _ACEOF
  2128. rm -f conftest$ac_exeext
  2129. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2130. (eval $ac_link) 2>&5
  2131. ac_status=$?
  2132. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2133. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  2134. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2135. (eval $ac_try) 2>&5
  2136. ac_status=$?
  2137. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2138. (exit $ac_status); }; }; then
  2139. :
  2140. else
  2141. echo "$as_me: program exited with status $ac_status" >&5
  2142. echo "$as_me: failed program was:" >&5
  2143. sed 's/^/| /' conftest.$ac_ext >&5
  2144. ( exit $ac_status )
  2145. ac_cv_header_stdc=no
  2146. fi
  2147. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  2148. fi
  2149. fi
  2150. fi
  2151. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  2152. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  2153. if test $ac_cv_header_stdc = yes; then
  2154. cat >>confdefs.h <<\_ACEOF
  2155. #define STDC_HEADERS 1
  2156. _ACEOF
  2157. fi
  2158. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  2159. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  2160. inttypes.h stdint.h unistd.h
  2161. do
  2162. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  2163. echo "$as_me:$LINENO: checking for $ac_header" >&5
  2164. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  2165. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  2166. echo $ECHO_N "(cached) $ECHO_C" >&6
  2167. else
  2168. cat >conftest.$ac_ext <<_ACEOF
  2169. /* confdefs.h. */
  2170. _ACEOF
  2171. cat confdefs.h >>conftest.$ac_ext
  2172. cat >>conftest.$ac_ext <<_ACEOF
  2173. /* end confdefs.h. */
  2174. $ac_includes_default
  2175. #include <$ac_header>
  2176. _ACEOF
  2177. rm -f conftest.$ac_objext
  2178. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2179. (eval $ac_compile) 2>conftest.er1
  2180. ac_status=$?
  2181. grep -v '^ *+' conftest.er1 >conftest.err
  2182. rm -f conftest.er1
  2183. cat conftest.err >&5
  2184. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2185. (exit $ac_status); } &&
  2186. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2187. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2188. (eval $ac_try) 2>&5
  2189. ac_status=$?
  2190. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2191. (exit $ac_status); }; } &&
  2192. { ac_try='test -s conftest.$ac_objext'
  2193. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2194. (eval $ac_try) 2>&5
  2195. ac_status=$?
  2196. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2197. (exit $ac_status); }; }; then
  2198. eval "$as_ac_Header=yes"
  2199. else
  2200. echo "$as_me: failed program was:" >&5
  2201. sed 's/^/| /' conftest.$ac_ext >&5
  2202. eval "$as_ac_Header=no"
  2203. fi
  2204. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2205. fi
  2206. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  2207. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  2208. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  2209. cat >>confdefs.h <<_ACEOF
  2210. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  2211. _ACEOF
  2212. fi
  2213. done
  2214. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2215. echo "$as_me:$LINENO: checking for minix/config.h" >&5
  2216. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
  2217. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2218. echo $ECHO_N "(cached) $ECHO_C" >&6
  2219. fi
  2220. echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  2221. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
  2222. else
  2223. # Is the header compilable?
  2224. echo "$as_me:$LINENO: checking minix/config.h usability" >&5
  2225. echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
  2226. cat >conftest.$ac_ext <<_ACEOF
  2227. /* confdefs.h. */
  2228. _ACEOF
  2229. cat confdefs.h >>conftest.$ac_ext
  2230. cat >>conftest.$ac_ext <<_ACEOF
  2231. /* end confdefs.h. */
  2232. $ac_includes_default
  2233. #include <minix/config.h>
  2234. _ACEOF
  2235. rm -f conftest.$ac_objext
  2236. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2237. (eval $ac_compile) 2>conftest.er1
  2238. ac_status=$?
  2239. grep -v '^ *+' conftest.er1 >conftest.err
  2240. rm -f conftest.er1
  2241. cat conftest.err >&5
  2242. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2243. (exit $ac_status); } &&
  2244. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2245. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2246. (eval $ac_try) 2>&5
  2247. ac_status=$?
  2248. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2249. (exit $ac_status); }; } &&
  2250. { ac_try='test -s conftest.$ac_objext'
  2251. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2252. (eval $ac_try) 2>&5
  2253. ac_status=$?
  2254. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2255. (exit $ac_status); }; }; then
  2256. ac_header_compiler=yes
  2257. else
  2258. echo "$as_me: failed program was:" >&5
  2259. sed 's/^/| /' conftest.$ac_ext >&5
  2260. ac_header_compiler=no
  2261. fi
  2262. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2263. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  2264. echo "${ECHO_T}$ac_header_compiler" >&6
  2265. # Is the header present?
  2266. echo "$as_me:$LINENO: checking minix/config.h presence" >&5
  2267. echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
  2268. cat >conftest.$ac_ext <<_ACEOF
  2269. /* confdefs.h. */
  2270. _ACEOF
  2271. cat confdefs.h >>conftest.$ac_ext
  2272. cat >>conftest.$ac_ext <<_ACEOF
  2273. /* end confdefs.h. */
  2274. #include <minix/config.h>
  2275. _ACEOF
  2276. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2277. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2278. ac_status=$?
  2279. grep -v '^ *+' conftest.er1 >conftest.err
  2280. rm -f conftest.er1
  2281. cat conftest.err >&5
  2282. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2283. (exit $ac_status); } >/dev/null; then
  2284. if test -s conftest.err; then
  2285. ac_cpp_err=$ac_cxx_preproc_warn_flag
  2286. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  2287. else
  2288. ac_cpp_err=
  2289. fi
  2290. else
  2291. ac_cpp_err=yes
  2292. fi
  2293. if test -z "$ac_cpp_err"; then
  2294. ac_header_preproc=yes
  2295. else
  2296. echo "$as_me: failed program was:" >&5
  2297. sed 's/^/| /' conftest.$ac_ext >&5
  2298. ac_header_preproc=no
  2299. fi
  2300. rm -f conftest.err conftest.$ac_ext
  2301. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  2302. echo "${ECHO_T}$ac_header_preproc" >&6
  2303. # So? What about this header?
  2304. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  2305. yes:no: )
  2306. { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
  2307. echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2308. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
  2309. echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
  2310. ac_header_preproc=yes
  2311. ;;
  2312. no:yes:* )
  2313. { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
  2314. echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
  2315. { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
  2316. echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
  2317. { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
  2318. echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
  2319. { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
  2320. echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
  2321. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
  2322. echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
  2323. { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
  2324. echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
  2325. (
  2326. cat <<\_ASBOX
  2327. ## ------------------------------------------ ##
  2328. ## Report this to the AC_PACKAGE_NAME lists. ##
  2329. ## ------------------------------------------ ##
  2330. _ASBOX
  2331. ) |
  2332. sed "s/^/$as_me: WARNING: /" >&2
  2333. ;;
  2334. esac
  2335. echo "$as_me:$LINENO: checking for minix/config.h" >&5
  2336. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
  2337. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2338. echo $ECHO_N "(cached) $ECHO_C" >&6
  2339. else
  2340. ac_cv_header_minix_config_h=$ac_header_preproc
  2341. fi
  2342. echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  2343. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
  2344. fi
  2345. if test $ac_cv_header_minix_config_h = yes; then
  2346. MINIX=yes
  2347. else
  2348. MINIX=
  2349. fi
  2350. if test "$MINIX" = yes; then
  2351. cat >>confdefs.h <<\_ACEOF
  2352. #define _POSIX_SOURCE 1
  2353. _ACEOF
  2354. cat >>confdefs.h <<\_ACEOF
  2355. #define _POSIX_1_SOURCE 2
  2356. _ACEOF
  2357. cat >>confdefs.h <<\_ACEOF
  2358. #define _MINIX 1
  2359. _ACEOF
  2360. fi
  2361. #checkpoint
  2362. cat >confcache <<\_ACEOF
  2363. # This file is a shell script that caches the results of configure
  2364. # tests run on this system so they can be shared between configure
  2365. # scripts and configure runs, see configure's option --config-cache.
  2366. # It is not useful on other systems. If it contains results you don't
  2367. # want to keep, you may remove or edit it.
  2368. #
  2369. # config.status only pays attention to the cache file if you give it
  2370. # the --recheck option to rerun configure.
  2371. #
  2372. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  2373. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  2374. # following values.
  2375. _ACEOF
  2376. # The following way of writing the cache mishandles newlines in values,
  2377. # but we know of no workaround that is simple, portable, and efficient.
  2378. # So, don't put newlines in cache variables' values.
  2379. # Ultrix sh set writes to stderr and can't be redirected directly,
  2380. # and sets the high bit in the cache file unless we assign to the vars.
  2381. {
  2382. (set) 2>&1 |
  2383. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  2384. *ac_space=\ *)
  2385. # `set' does not quote correctly, so add quotes (double-quote
  2386. # substitution turns \\\\ into \\, and sed turns \\ into \).
  2387. sed -n \
  2388. "s/'/'\\\\''/g;
  2389. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  2390. ;;
  2391. *)
  2392. # `set' quotes correctly as required by POSIX, so do not add quotes.
  2393. sed -n \
  2394. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  2395. ;;
  2396. esac;
  2397. } |
  2398. sed '
  2399. t clear
  2400. : clear
  2401. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  2402. t end
  2403. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  2404. : end' >>confcache
  2405. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  2406. if test -w $cache_file; then
  2407. test "x$cache_file" != "x/dev/null"
  2408. cat confcache >$cache_file
  2409. else
  2410. echo "not updating unwritable cache $cache_file"
  2411. fi
  2412. fi
  2413. rm -f confcache
  2414. # Speedup compile
  2415. if test -n "$GXX" && test -z "$no_wall"; then
  2416. echo "$as_me:$LINENO: checking whether the compiler understands -Wall" >&5
  2417. echo $ECHO_N "checking whether the compiler understands -Wall... $ECHO_C" >&6
  2418. if test "${egg_cv_var_ccwall+set}" = set; then
  2419. echo $ECHO_N "(cached) $ECHO_C" >&6
  2420. else
  2421. ac_old_CXXFLAGS="$CXXFLAGS"
  2422. CXXFLAGS="$CXXFLAGS -Wall"
  2423. cat >conftest.$ac_ext <<_ACEOF
  2424. int main ()
  2425. {
  2426. return(0);
  2427. }
  2428. _ACEOF
  2429. rm -f conftest.$ac_objext
  2430. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2431. (eval $ac_compile) 2>conftest.er1
  2432. ac_status=$?
  2433. grep -v '^ *+' conftest.er1 >conftest.err
  2434. rm -f conftest.er1
  2435. cat conftest.err >&5
  2436. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2437. (exit $ac_status); } &&
  2438. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2439. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2440. (eval $ac_try) 2>&5
  2441. ac_status=$?
  2442. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2443. (exit $ac_status); }; } &&
  2444. { ac_try='test -s conftest.$ac_objext'
  2445. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2446. (eval $ac_try) 2>&5
  2447. ac_status=$?
  2448. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2449. (exit $ac_status); }; }; then
  2450. egg_cv_var_ccwall="yes"
  2451. else
  2452. echo "$as_me: failed program was:" >&5
  2453. sed 's/^/| /' conftest.$ac_ext >&5
  2454. egg_cv_var_ccwall="no"
  2455. fi
  2456. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2457. CXXFLAGS="$ac_old_CXXFLAGS"
  2458. fi
  2459. echo "$as_me:$LINENO: result: $egg_cv_var_ccwall" >&5
  2460. echo "${ECHO_T}$egg_cv_var_ccwall" >&6
  2461. if test "$egg_cv_var_ccwall" = "yes"; then
  2462. CXXFLAGS="$CXXFLAGS -Wall"
  2463. fi
  2464. fi
  2465. if test -n "$GXX" && test -z "$no_pipe"; then
  2466. echo "$as_me:$LINENO: checking whether the compiler understands -pipe" >&5
  2467. echo $ECHO_N "checking whether the compiler understands -pipe... $ECHO_C" >&6
  2468. if test "${egg_cv_var_ccpipe+set}" = set; then
  2469. echo $ECHO_N "(cached) $ECHO_C" >&6
  2470. else
  2471. ac_old_CXX="$CXX"
  2472. CXX="$CXX -pipe"
  2473. cat >conftest.$ac_ext <<_ACEOF
  2474. int main ()
  2475. {
  2476. return(0);
  2477. }
  2478. _ACEOF
  2479. rm -f conftest.$ac_objext
  2480. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2481. (eval $ac_compile) 2>conftest.er1
  2482. ac_status=$?
  2483. grep -v '^ *+' conftest.er1 >conftest.err
  2484. rm -f conftest.er1
  2485. cat conftest.err >&5
  2486. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2487. (exit $ac_status); } &&
  2488. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2489. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2490. (eval $ac_try) 2>&5
  2491. ac_status=$?
  2492. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2493. (exit $ac_status); }; } &&
  2494. { ac_try='test -s conftest.$ac_objext'
  2495. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2496. (eval $ac_try) 2>&5
  2497. ac_status=$?
  2498. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2499. (exit $ac_status); }; }; then
  2500. egg_cv_var_ccpipe="yes"
  2501. else
  2502. echo "$as_me: failed program was:" >&5
  2503. sed 's/^/| /' conftest.$ac_ext >&5
  2504. egg_cv_var_ccpipe="no"
  2505. fi
  2506. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2507. CXX="$ac_old_CXX"
  2508. fi
  2509. echo "$as_me:$LINENO: result: $egg_cv_var_ccpipe" >&5
  2510. echo "${ECHO_T}$egg_cv_var_ccpipe" >&6
  2511. if test "$egg_cv_var_ccpipe" = "yes"; then
  2512. CXX="$CXX -pipe"
  2513. fi
  2514. fi
  2515. CCDEPMODE=gcc
  2516. num=`$CXX -dumpversion | sed "s/^\\\(.\\\).*/\\\1/"`
  2517. if test $num = "3"; then
  2518. CCDEPMODE=gcc3
  2519. # GCC3="-Wpadded -Wpacked -Wno-unused-parameter -Wmissing-format-attribute -Wdisabled-optimization"
  2520. GCC3="-W -Wno-unused-parameter -Wdisabled-optimization -Wmissing-format-attribute"
  2521. fi
  2522. #checkpoint
  2523. cat >confcache <<\_ACEOF
  2524. # This file is a shell script that caches the results of configure
  2525. # tests run on this system so they can be shared between configure
  2526. # scripts and configure runs, see configure's option --config-cache.
  2527. # It is not useful on other systems. If it contains results you don't
  2528. # want to keep, you may remove or edit it.
  2529. #
  2530. # config.status only pays attention to the cache file if you give it
  2531. # the --recheck option to rerun configure.
  2532. #
  2533. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  2534. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  2535. # following values.
  2536. _ACEOF
  2537. # The following way of writing the cache mishandles newlines in values,
  2538. # but we know of no workaround that is simple, portable, and efficient.
  2539. # So, don't put newlines in cache variables' values.
  2540. # Ultrix sh set writes to stderr and can't be redirected directly,
  2541. # and sets the high bit in the cache file unless we assign to the vars.
  2542. {
  2543. (set) 2>&1 |
  2544. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  2545. *ac_space=\ *)
  2546. # `set' does not quote correctly, so add quotes (double-quote
  2547. # substitution turns \\\\ into \\, and sed turns \\ into \).
  2548. sed -n \
  2549. "s/'/'\\\\''/g;
  2550. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  2551. ;;
  2552. *)
  2553. # `set' quotes correctly as required by POSIX, so do not add quotes.
  2554. sed -n \
  2555. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  2556. ;;
  2557. esac;
  2558. } |
  2559. sed '
  2560. t clear
  2561. : clear
  2562. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  2563. t end
  2564. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  2565. : end' >>confcache
  2566. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  2567. if test -w $cache_file; then
  2568. test "x$cache_file" != "x/dev/null"
  2569. cat confcache >$cache_file
  2570. else
  2571. echo "not updating unwritable cache $cache_file"
  2572. fi
  2573. fi
  2574. rm -f confcache
  2575. # Checks for programs
  2576. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2577. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  2578. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  2579. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  2580. echo $ECHO_N "(cached) $ECHO_C" >&6
  2581. else
  2582. cat >conftest.make <<\_ACEOF
  2583. all:
  2584. @echo 'ac_maketemp="$(MAKE)"'
  2585. _ACEOF
  2586. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2587. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  2588. if test -n "$ac_maketemp"; then
  2589. eval ac_cv_prog_make_${ac_make}_set=yes
  2590. else
  2591. eval ac_cv_prog_make_${ac_make}_set=no
  2592. fi
  2593. rm -f conftest.make
  2594. fi
  2595. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  2596. echo "$as_me:$LINENO: result: yes" >&5
  2597. echo "${ECHO_T}yes" >&6
  2598. SET_MAKE=
  2599. else
  2600. echo "$as_me:$LINENO: result: no" >&5
  2601. echo "${ECHO_T}no" >&6
  2602. SET_MAKE="MAKE=${MAKE-make}"
  2603. fi
  2604. cat << 'EOF' > conftest.head
  2605. a
  2606. b
  2607. c
  2608. EOF
  2609. for ac_prog in 'head -1' 'head -n 1' 'sed 1q';
  2610. do
  2611. echo "$as_me:$LINENO: checking whether $ac_prog works" >&5
  2612. echo $ECHO_N "checking whether $ac_prog works... $ECHO_C" >&6
  2613. if test "${ac_cv_prog_HEAD_1+set}" = set; then
  2614. echo $ECHO_N "(cached) $ECHO_C" >&6
  2615. else
  2616. if test -n "$HEAD_1"
  2617. then
  2618. ac_cv_prog_HEAD_1="$HEAD_1" # Let the user override the test.
  2619. else
  2620. if test "`cat conftest.head | $ac_prog`" = "a";
  2621. then
  2622. echo "$as_me:$LINENO: result: yes" >&5
  2623. echo "${ECHO_T}yes" >&6
  2624. ac_cv_prog_HEAD_1=$ac_prog
  2625. else
  2626. echo "$as_me:$LINENO: result: no" >&5
  2627. echo "${ECHO_T}no" >&6
  2628. fi
  2629. fi
  2630. fi
  2631. test -n "$ac_cv_prog_HEAD_1" && break
  2632. done
  2633. if test "${ac_cv_prog_HEAD_1-x}" = "x"
  2634. then
  2635. cat << 'EOF' >&2
  2636. configure: error:
  2637. This system seems to lack a working 'head -1' or 'head -n 1' command.
  2638. A working 'head -1' (or equivalent) command is required to compile Eggdrop.
  2639. EOF
  2640. exit 1
  2641. fi
  2642. rm -f conftest.head
  2643. HEAD_1=$ac_cv_prog_HEAD_1
  2644. # awk is needed for Tcl library and header checks, and eggdrop version subst
  2645. for ac_prog in gawk mawk nawk awk
  2646. do
  2647. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2648. set dummy $ac_prog; ac_word=$2
  2649. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2650. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2651. if test "${ac_cv_prog_AWK+set}" = set; then
  2652. echo $ECHO_N "(cached) $ECHO_C" >&6
  2653. else
  2654. if test -n "$AWK"; then
  2655. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2656. else
  2657. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2658. for as_dir in $PATH
  2659. do
  2660. IFS=$as_save_IFS
  2661. test -z "$as_dir" && as_dir=.
  2662. for ac_exec_ext in '' $ac_executable_extensions; do
  2663. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2664. ac_cv_prog_AWK="$ac_prog"
  2665. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2666. break 2
  2667. fi
  2668. done
  2669. done
  2670. fi
  2671. fi
  2672. AWK=$ac_cv_prog_AWK
  2673. if test -n "$AWK"; then
  2674. echo "$as_me:$LINENO: result: $AWK" >&5
  2675. echo "${ECHO_T}$AWK" >&6
  2676. else
  2677. echo "$as_me:$LINENO: result: no" >&5
  2678. echo "${ECHO_T}no" >&6
  2679. fi
  2680. test -n "$AWK" && break
  2681. done
  2682. if test "${AWK-x}" = "x"
  2683. then
  2684. cat << 'EOF' >&2
  2685. configure: error:
  2686. This system seems to lack a working 'awk' command.
  2687. A working 'awk' command is required to compile Eggdrop.
  2688. EOF
  2689. exit 1
  2690. fi
  2691. # basename is needed for Tcl library and header checks
  2692. # Extract the first word of "basename", so it can be a program name with args.
  2693. set dummy basename; ac_word=$2
  2694. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2695. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2696. if test "${ac_cv_prog_BASENAME+set}" = set; then
  2697. echo $ECHO_N "(cached) $ECHO_C" >&6
  2698. else
  2699. if test -n "$BASENAME"; then
  2700. ac_cv_prog_BASENAME="$BASENAME" # Let the user override the test.
  2701. else
  2702. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2703. for as_dir in $PATH
  2704. do
  2705. IFS=$as_save_IFS
  2706. test -z "$as_dir" && as_dir=.
  2707. for ac_exec_ext in '' $ac_executable_extensions; do
  2708. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2709. ac_cv_prog_BASENAME="basename"
  2710. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2711. break 2
  2712. fi
  2713. done
  2714. done
  2715. fi
  2716. fi
  2717. BASENAME=$ac_cv_prog_BASENAME
  2718. if test -n "$BASENAME"; then
  2719. echo "$as_me:$LINENO: result: $BASENAME" >&5
  2720. echo "${ECHO_T}$BASENAME" >&6
  2721. else
  2722. echo "$as_me:$LINENO: result: no" >&5
  2723. echo "${ECHO_T}no" >&6
  2724. fi
  2725. if test "${BASENAME-x}" = "x"
  2726. then
  2727. cat << 'EOF' >&2
  2728. configure: error:
  2729. This system seems to lack a working 'basename' command.
  2730. A working 'basename' command is required to compile Eggdrop.
  2731. EOF
  2732. exit 1
  2733. fi
  2734. # Extract the first word of "objcopy", so it can be a program name with args.
  2735. set dummy objcopy; ac_word=$2
  2736. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2737. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2738. if test "${ac_cv_prog_OBJCOPY+set}" = set; then
  2739. echo $ECHO_N "(cached) $ECHO_C" >&6
  2740. else
  2741. if test -n "$OBJCOPY"; then
  2742. ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
  2743. else
  2744. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2745. for as_dir in $PATH
  2746. do
  2747. IFS=$as_save_IFS
  2748. test -z "$as_dir" && as_dir=.
  2749. for ac_exec_ext in '' $ac_executable_extensions; do
  2750. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2751. ac_cv_prog_OBJCOPY="objcopy --remove-section=.note --remove-section=.comment"
  2752. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2753. break 2
  2754. fi
  2755. done
  2756. done
  2757. test -z "$ac_cv_prog_OBJCOPY" && ac_cv_prog_OBJCOPY="touch"
  2758. fi
  2759. fi
  2760. OBJCOPY=$ac_cv_prog_OBJCOPY
  2761. if test -n "$OBJCOPY"; then
  2762. echo "$as_me:$LINENO: result: $OBJCOPY" >&5
  2763. echo "${ECHO_T}$OBJCOPY" >&6
  2764. else
  2765. echo "$as_me:$LINENO: result: no" >&5
  2766. echo "${ECHO_T}no" >&6
  2767. fi
  2768. # Extract the first word of "strip", so it can be a program name with args.
  2769. set dummy strip; ac_word=$2
  2770. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2771. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2772. if test "${ac_cv_prog_STRIP+set}" = set; then
  2773. echo $ECHO_N "(cached) $ECHO_C" >&6
  2774. else
  2775. if test -n "$STRIP"; then
  2776. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2777. else
  2778. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2779. for as_dir in $PATH
  2780. do
  2781. IFS=$as_save_IFS
  2782. test -z "$as_dir" && as_dir=.
  2783. for ac_exec_ext in '' $ac_executable_extensions; do
  2784. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2785. ac_cv_prog_STRIP="strip"
  2786. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2787. break 2
  2788. fi
  2789. done
  2790. done
  2791. test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="touch"
  2792. fi
  2793. fi
  2794. STRIP=$ac_cv_prog_STRIP
  2795. if test -n "$STRIP"; then
  2796. echo "$as_me:$LINENO: result: $STRIP" >&5
  2797. echo "${ECHO_T}$STRIP" >&6
  2798. else
  2799. echo "$as_me:$LINENO: result: no" >&5
  2800. echo "${ECHO_T}no" >&6
  2801. fi
  2802. # Extract the first word of "uname", so it can be a program name with args.
  2803. set dummy uname; ac_word=$2
  2804. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2805. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2806. if test "${ac_cv_prog_UNAME+set}" = set; then
  2807. echo $ECHO_N "(cached) $ECHO_C" >&6
  2808. else
  2809. if test -n "$UNAME"; then
  2810. ac_cv_prog_UNAME="$UNAME" # Let the user override the test.
  2811. else
  2812. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2813. for as_dir in $PATH
  2814. do
  2815. IFS=$as_save_IFS
  2816. test -z "$as_dir" && as_dir=.
  2817. for ac_exec_ext in '' $ac_executable_extensions; do
  2818. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2819. ac_cv_prog_UNAME="uname"
  2820. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2821. break 2
  2822. fi
  2823. done
  2824. done
  2825. fi
  2826. fi
  2827. UNAME=$ac_cv_prog_UNAME
  2828. if test -n "$UNAME"; then
  2829. echo "$as_me:$LINENO: result: $UNAME" >&5
  2830. echo "${ECHO_T}$UNAME" >&6
  2831. else
  2832. echo "$as_me:$LINENO: result: no" >&5
  2833. echo "${ECHO_T}no" >&6
  2834. fi
  2835. #AC_CHECK_PROG(CCACHE, ccache, ccache)
  2836. # Extract the first word of "distcc", so it can be a program name with args.
  2837. set dummy distcc; ac_word=$2
  2838. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2839. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2840. if test "${ac_cv_prog_DISTCC+set}" = set; then
  2841. echo $ECHO_N "(cached) $ECHO_C" >&6
  2842. else
  2843. if test -n "$DISTCC"; then
  2844. ac_cv_prog_DISTCC="$DISTCC" # Let the user override the test.
  2845. else
  2846. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2847. for as_dir in $PATH
  2848. do
  2849. IFS=$as_save_IFS
  2850. test -z "$as_dir" && as_dir=.
  2851. for ac_exec_ext in '' $ac_executable_extensions; do
  2852. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2853. ac_cv_prog_DISTCC="distcc"
  2854. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2855. break 2
  2856. fi
  2857. done
  2858. done
  2859. fi
  2860. fi
  2861. DISTCC=$ac_cv_prog_DISTCC
  2862. if test -n "$DISTCC"; then
  2863. echo "$as_me:$LINENO: result: $DISTCC" >&5
  2864. echo "${ECHO_T}$DISTCC" >&6
  2865. else
  2866. echo "$as_me:$LINENO: result: no" >&5
  2867. echo "${ECHO_T}no" >&6
  2868. fi
  2869. # Test the os and set the module linking settings
  2870. EGG_CYGWIN=no
  2871. echo "$as_me:$LINENO: checking system type" >&5
  2872. echo $ECHO_N "checking system type... $ECHO_C" >&6
  2873. if test "${egg_cv_var_system_type+set}" = set; then
  2874. echo $ECHO_N "(cached) $ECHO_C" >&6
  2875. else
  2876. egg_cv_var_system_type=`$UNAME -s`
  2877. fi
  2878. echo "$as_me:$LINENO: result: $egg_cv_var_system_type" >&5
  2879. echo "${ECHO_T}$egg_cv_var_system_type" >&6
  2880. echo "$as_me:$LINENO: checking system release" >&5
  2881. echo $ECHO_N "checking system release... $ECHO_C" >&6
  2882. if test "${egg_cv_var_system_release+set}" = set; then
  2883. echo $ECHO_N "(cached) $ECHO_C" >&6
  2884. else
  2885. egg_cv_var_system_release=`$UNAME -r`
  2886. fi
  2887. echo "$as_me:$LINENO: result: $egg_cv_var_system_release" >&5
  2888. echo "${ECHO_T}$egg_cv_var_system_release" >&6
  2889. case "$egg_cv_var_system_type" in
  2890. BSD/OS)
  2891. ;;
  2892. CYGWI*)
  2893. echo "$as_me:$LINENO: checking how to access the Win32 API" >&5
  2894. echo $ECHO_N "checking how to access the Win32 API... $ECHO_C" >&6
  2895. WIN32FLAGS=
  2896. cat >conftest.$ac_ext <<_ACEOF
  2897. /* confdefs.h. */
  2898. _ACEOF
  2899. cat confdefs.h >>conftest.$ac_ext
  2900. cat >>conftest.$ac_ext <<_ACEOF
  2901. /* end confdefs.h. */
  2902. int
  2903. main ()
  2904. {
  2905. #ifndef WIN32
  2906. # ifndef _WIN32
  2907. # error WIN32 or _WIN32 not defined
  2908. # endif
  2909. #endif
  2910. ;
  2911. return 0;
  2912. }
  2913. _ACEOF
  2914. rm -f conftest.$ac_objext
  2915. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2916. (eval $ac_compile) 2>conftest.er1
  2917. ac_status=$?
  2918. grep -v '^ *+' conftest.er1 >conftest.err
  2919. rm -f conftest.er1
  2920. cat conftest.err >&5
  2921. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2922. (exit $ac_status); } &&
  2923. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2924. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2925. (eval $ac_try) 2>&5
  2926. ac_status=$?
  2927. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2928. (exit $ac_status); }; } &&
  2929. { ac_try='test -s conftest.$ac_objext'
  2930. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2931. (eval $ac_try) 2>&5
  2932. ac_status=$?
  2933. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2934. (exit $ac_status); }; }; then
  2935. echo "$as_me:$LINENO: result: present by default" >&5
  2936. echo "${ECHO_T}present by default" >&6
  2937. else
  2938. echo "$as_me: failed program was:" >&5
  2939. sed 's/^/| /' conftest.$ac_ext >&5
  2940. ac_compile_save="$ac_compile"
  2941. save_CXX="$CXX"
  2942. ac_compile="$ac_compile -mwin32"
  2943. CXX="$CXX -mwin32"
  2944. cat >conftest.$ac_ext <<_ACEOF
  2945. /* confdefs.h. */
  2946. _ACEOF
  2947. cat confdefs.h >>conftest.$ac_ext
  2948. cat >>conftest.$ac_ext <<_ACEOF
  2949. /* end confdefs.h. */
  2950. int
  2951. main ()
  2952. {
  2953. #ifndef WIN32
  2954. # ifndef _WIN32
  2955. # error WIN32 or _WIN32 not defined
  2956. # endif
  2957. #endif
  2958. ;
  2959. return 0;
  2960. }
  2961. _ACEOF
  2962. rm -f conftest.$ac_objext
  2963. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2964. (eval $ac_compile) 2>conftest.er1
  2965. ac_status=$?
  2966. grep -v '^ *+' conftest.er1 >conftest.err
  2967. rm -f conftest.er1
  2968. cat conftest.err >&5
  2969. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2970. (exit $ac_status); } &&
  2971. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2972. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2973. (eval $ac_try) 2>&5
  2974. ac_status=$?
  2975. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2976. (exit $ac_status); }; } &&
  2977. { ac_try='test -s conftest.$ac_objext'
  2978. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2979. (eval $ac_try) 2>&5
  2980. ac_status=$?
  2981. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2982. (exit $ac_status); }; }; then
  2983. echo "$as_me:$LINENO: result: found via -mwin32" >&5
  2984. echo "${ECHO_T}found via -mwin32" >&6
  2985. ac_compile="$ac_compile_save"
  2986. CXX="$save_CC"
  2987. WIN32FLAGS="-mwin32"
  2988. else
  2989. echo "$as_me: failed program was:" >&5
  2990. sed 's/^/| /' conftest.$ac_ext >&5
  2991. ac_compile="$ac_compile_save"
  2992. CXX="$save_CC"
  2993. echo "$as_me:$LINENO: result: not found" >&5
  2994. echo "${ECHO_T}not found" >&6
  2995. fi
  2996. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2997. fi
  2998. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2999. CXX="$CXX $WIN32FLAGS"
  3000. EGG_CYGWIN="yes"
  3001. if test $EGG_CYGWIN = "yes"; then
  3002. echo "$as_me:$LINENO: checking for /usr/lib/binmode.o" >&5
  3003. echo $ECHO_N "checking for /usr/lib/binmode.o... $ECHO_C" >&6
  3004. if test -r /usr/lib/binmode.o; then
  3005. echo "$as_me:$LINENO: result: yes" >&5
  3006. echo "${ECHO_T}yes" >&6
  3007. LIBS="$LIBS /usr/lib/binmode.o"
  3008. else
  3009. echo "$as_me:$LINENO: result: no" >&5
  3010. echo "${ECHO_T}no" >&6
  3011. { echo "$as_me:$LINENO: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&5
  3012. echo "$as_me: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&2;}
  3013. fi
  3014. fi
  3015. cat >>confdefs.h <<\_ACEOF
  3016. #define CYGWIN_HACKS 1
  3017. _ACEOF
  3018. cat >>confdefs.h <<\_ACEOF
  3019. #define WIN32_LEAN_AND_MEAN 1
  3020. _ACEOF
  3021. ;;
  3022. IRIX)
  3023. ;;
  3024. Ultrix)
  3025. SHELL=/bin/sh5
  3026. ;;
  3027. SINIX*)
  3028. ;;
  3029. BeOS)
  3030. ;;
  3031. Linux)
  3032. ;;
  3033. Lynx)
  3034. ;;
  3035. QNX)
  3036. ;;
  3037. OSF1)
  3038. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  3039. V*)
  3040. if test "$AWK" = "gawk"
  3041. then
  3042. AWK=awk
  3043. fi
  3044. ;;
  3045. 1.0|1.1|1.2)
  3046. cat >>confdefs.h <<\_ACEOF
  3047. #define OSF1_HACKS 1
  3048. _ACEOF
  3049. ;;
  3050. 1.*)
  3051. cat >>confdefs.h <<\_ACEOF
  3052. #define OSF1_HACKS 1
  3053. _ACEOF
  3054. ;;
  3055. *)
  3056. ;;
  3057. esac
  3058. cat >>confdefs.h <<\_ACEOF
  3059. #define STOP_UAC 1
  3060. _ACEOF
  3061. cat >>confdefs.h <<\_ACEOF
  3062. #define BROKEN_SNPRINTF 1
  3063. _ACEOF
  3064. ;;
  3065. SunOS)
  3066. ;;
  3067. *BSD)
  3068. # FreeBSD/OpenBSD/NetBSD
  3069. ;;
  3070. *)
  3071. echo "$as_me:$LINENO: checking if system is Mach based" >&5
  3072. echo $ECHO_N "checking if system is Mach based... $ECHO_C" >&6
  3073. if test -r /mach
  3074. then
  3075. echo "$as_me:$LINENO: result: yes" >&5
  3076. echo "${ECHO_T}yes" >&6
  3077. cat >>confdefs.h <<\_ACEOF
  3078. #define BORGCUBES 1
  3079. _ACEOF
  3080. else
  3081. echo "$as_me:$LINENO: result: no" >&5
  3082. echo "${ECHO_T}no" >&6
  3083. echo "$as_me:$LINENO: checking if system is QNX" >&5
  3084. echo $ECHO_N "checking if system is QNX... $ECHO_C" >&6
  3085. if test -r /cmds
  3086. then
  3087. echo "$as_me:$LINENO: result: yes" >&5
  3088. echo "${ECHO_T}yes" >&6
  3089. else
  3090. echo "$as_me:$LINENO: result: no" >&5
  3091. echo "${ECHO_T}no" >&6
  3092. echo "$as_me:$LINENO: result: Something unknown!" >&5
  3093. echo "${ECHO_T}Something unknown!" >&6
  3094. echo "$as_me:$LINENO: result: If you get dynamic modules to work, be sure to let the devel team know HOW :)" >&5
  3095. echo "${ECHO_T}If you get dynamic modules to work, be sure to let the devel team know HOW :)" >&6
  3096. fi
  3097. fi
  3098. ;;
  3099. esac
  3100. dns_reslib_avail="true"
  3101. echo "$as_me:$LINENO: checking for res_init" >&5
  3102. echo $ECHO_N "checking for res_init... $ECHO_C" >&6
  3103. if test "${ac_cv_func_res_init+set}" = set; then
  3104. echo $ECHO_N "(cached) $ECHO_C" >&6
  3105. else
  3106. cat >conftest.$ac_ext <<_ACEOF
  3107. /* confdefs.h. */
  3108. _ACEOF
  3109. cat confdefs.h >>conftest.$ac_ext
  3110. cat >>conftest.$ac_ext <<_ACEOF
  3111. /* end confdefs.h. */
  3112. /* Define res_init to an innocuous variant, in case <limits.h> declares res_init.
  3113. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3114. #define res_init innocuous_res_init
  3115. /* System header to define __stub macros and hopefully few prototypes,
  3116. which can conflict with char res_init (); below.
  3117. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3118. <limits.h> exists even on freestanding compilers. */
  3119. #ifdef __STDC__
  3120. # include <limits.h>
  3121. #else
  3122. # include <assert.h>
  3123. #endif
  3124. #undef res_init
  3125. /* Override any gcc2 internal prototype to avoid an error. */
  3126. #ifdef __cplusplus
  3127. extern "C"
  3128. {
  3129. #endif
  3130. /* We use char because int might match the return type of a gcc2
  3131. builtin and then its argument prototype would still apply. */
  3132. char res_init ();
  3133. /* The GNU C library defines this for functions which it implements
  3134. to always fail with ENOSYS. Some functions are actually named
  3135. something starting with __ and the normal name is an alias. */
  3136. #if defined (__stub_res_init) || defined (__stub___res_init)
  3137. choke me
  3138. #else
  3139. char (*f) () = res_init;
  3140. #endif
  3141. #ifdef __cplusplus
  3142. }
  3143. #endif
  3144. int
  3145. main ()
  3146. {
  3147. return f != res_init;
  3148. ;
  3149. return 0;
  3150. }
  3151. _ACEOF
  3152. rm -f conftest.$ac_objext conftest$ac_exeext
  3153. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3154. (eval $ac_link) 2>conftest.er1
  3155. ac_status=$?
  3156. grep -v '^ *+' conftest.er1 >conftest.err
  3157. rm -f conftest.er1
  3158. cat conftest.err >&5
  3159. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3160. (exit $ac_status); } &&
  3161. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3162. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3163. (eval $ac_try) 2>&5
  3164. ac_status=$?
  3165. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3166. (exit $ac_status); }; } &&
  3167. { ac_try='test -s conftest$ac_exeext'
  3168. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3169. (eval $ac_try) 2>&5
  3170. ac_status=$?
  3171. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3172. (exit $ac_status); }; }; then
  3173. ac_cv_func_res_init=yes
  3174. else
  3175. echo "$as_me: failed program was:" >&5
  3176. sed 's/^/| /' conftest.$ac_ext >&5
  3177. ac_cv_func_res_init=no
  3178. fi
  3179. rm -f conftest.err conftest.$ac_objext \
  3180. conftest$ac_exeext conftest.$ac_ext
  3181. fi
  3182. echo "$as_me:$LINENO: result: $ac_cv_func_res_init" >&5
  3183. echo "${ECHO_T}$ac_cv_func_res_init" >&6
  3184. if test $ac_cv_func_res_init = yes; then
  3185. :
  3186. else
  3187. echo "$as_me:$LINENO: checking for res_init in -lresolv" >&5
  3188. echo $ECHO_N "checking for res_init in -lresolv... $ECHO_C" >&6
  3189. if test "${ac_cv_lib_resolv_res_init+set}" = set; then
  3190. echo $ECHO_N "(cached) $ECHO_C" >&6
  3191. else
  3192. ac_check_lib_save_LIBS=$LIBS
  3193. LIBS="-lresolv $LIBS"
  3194. cat >conftest.$ac_ext <<_ACEOF
  3195. /* confdefs.h. */
  3196. _ACEOF
  3197. cat confdefs.h >>conftest.$ac_ext
  3198. cat >>conftest.$ac_ext <<_ACEOF
  3199. /* end confdefs.h. */
  3200. /* Override any gcc2 internal prototype to avoid an error. */
  3201. #ifdef __cplusplus
  3202. extern "C"
  3203. #endif
  3204. /* We use char because int might match the return type of a gcc2
  3205. builtin and then its argument prototype would still apply. */
  3206. char res_init ();
  3207. int
  3208. main ()
  3209. {
  3210. res_init ();
  3211. ;
  3212. return 0;
  3213. }
  3214. _ACEOF
  3215. rm -f conftest.$ac_objext conftest$ac_exeext
  3216. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3217. (eval $ac_link) 2>conftest.er1
  3218. ac_status=$?
  3219. grep -v '^ *+' conftest.er1 >conftest.err
  3220. rm -f conftest.er1
  3221. cat conftest.err >&5
  3222. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3223. (exit $ac_status); } &&
  3224. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3225. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3226. (eval $ac_try) 2>&5
  3227. ac_status=$?
  3228. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3229. (exit $ac_status); }; } &&
  3230. { ac_try='test -s conftest$ac_exeext'
  3231. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3232. (eval $ac_try) 2>&5
  3233. ac_status=$?
  3234. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3235. (exit $ac_status); }; }; then
  3236. ac_cv_lib_resolv_res_init=yes
  3237. else
  3238. echo "$as_me: failed program was:" >&5
  3239. sed 's/^/| /' conftest.$ac_ext >&5
  3240. ac_cv_lib_resolv_res_init=no
  3241. fi
  3242. rm -f conftest.err conftest.$ac_objext \
  3243. conftest$ac_exeext conftest.$ac_ext
  3244. LIBS=$ac_check_lib_save_LIBS
  3245. fi
  3246. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_init" >&5
  3247. echo "${ECHO_T}$ac_cv_lib_resolv_res_init" >&6
  3248. if test $ac_cv_lib_resolv_res_init = yes; then
  3249. RESLIB="-lresolv"
  3250. else
  3251. echo "$as_me:$LINENO: checking for res_init in -lbind" >&5
  3252. echo $ECHO_N "checking for res_init in -lbind... $ECHO_C" >&6
  3253. if test "${ac_cv_lib_bind_res_init+set}" = set; then
  3254. echo $ECHO_N "(cached) $ECHO_C" >&6
  3255. else
  3256. ac_check_lib_save_LIBS=$LIBS
  3257. LIBS="-lbind $LIBS"
  3258. cat >conftest.$ac_ext <<_ACEOF
  3259. /* confdefs.h. */
  3260. _ACEOF
  3261. cat confdefs.h >>conftest.$ac_ext
  3262. cat >>conftest.$ac_ext <<_ACEOF
  3263. /* end confdefs.h. */
  3264. /* Override any gcc2 internal prototype to avoid an error. */
  3265. #ifdef __cplusplus
  3266. extern "C"
  3267. #endif
  3268. /* We use char because int might match the return type of a gcc2
  3269. builtin and then its argument prototype would still apply. */
  3270. char res_init ();
  3271. int
  3272. main ()
  3273. {
  3274. res_init ();
  3275. ;
  3276. return 0;
  3277. }
  3278. _ACEOF
  3279. rm -f conftest.$ac_objext conftest$ac_exeext
  3280. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3281. (eval $ac_link) 2>conftest.er1
  3282. ac_status=$?
  3283. grep -v '^ *+' conftest.er1 >conftest.err
  3284. rm -f conftest.er1
  3285. cat conftest.err >&5
  3286. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3287. (exit $ac_status); } &&
  3288. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3289. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3290. (eval $ac_try) 2>&5
  3291. ac_status=$?
  3292. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3293. (exit $ac_status); }; } &&
  3294. { ac_try='test -s conftest$ac_exeext'
  3295. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3296. (eval $ac_try) 2>&5
  3297. ac_status=$?
  3298. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3299. (exit $ac_status); }; }; then
  3300. ac_cv_lib_bind_res_init=yes
  3301. else
  3302. echo "$as_me: failed program was:" >&5
  3303. sed 's/^/| /' conftest.$ac_ext >&5
  3304. ac_cv_lib_bind_res_init=no
  3305. fi
  3306. rm -f conftest.err conftest.$ac_objext \
  3307. conftest$ac_exeext conftest.$ac_ext
  3308. LIBS=$ac_check_lib_save_LIBS
  3309. fi
  3310. echo "$as_me:$LINENO: result: $ac_cv_lib_bind_res_init" >&5
  3311. echo "${ECHO_T}$ac_cv_lib_bind_res_init" >&6
  3312. if test $ac_cv_lib_bind_res_init = yes; then
  3313. RESLIB="-lbind"
  3314. else
  3315. dns_reslib_avail="false";
  3316. fi
  3317. fi
  3318. fi
  3319. if test "${dns_reslib_avail}" = false; then
  3320. dns_reslib_avail="true"
  3321. echo "$as_me:$LINENO: checking for __res_init" >&5
  3322. echo $ECHO_N "checking for __res_init... $ECHO_C" >&6
  3323. if test "${ac_cv_func___res_init+set}" = set; then
  3324. echo $ECHO_N "(cached) $ECHO_C" >&6
  3325. else
  3326. cat >conftest.$ac_ext <<_ACEOF
  3327. /* confdefs.h. */
  3328. _ACEOF
  3329. cat confdefs.h >>conftest.$ac_ext
  3330. cat >>conftest.$ac_ext <<_ACEOF
  3331. /* end confdefs.h. */
  3332. /* Define __res_init to an innocuous variant, in case <limits.h> declares __res_init.
  3333. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3334. #define __res_init innocuous___res_init
  3335. /* System header to define __stub macros and hopefully few prototypes,
  3336. which can conflict with char __res_init (); below.
  3337. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3338. <limits.h> exists even on freestanding compilers. */
  3339. #ifdef __STDC__
  3340. # include <limits.h>
  3341. #else
  3342. # include <assert.h>
  3343. #endif
  3344. #undef __res_init
  3345. /* Override any gcc2 internal prototype to avoid an error. */
  3346. #ifdef __cplusplus
  3347. extern "C"
  3348. {
  3349. #endif
  3350. /* We use char because int might match the return type of a gcc2
  3351. builtin and then its argument prototype would still apply. */
  3352. char __res_init ();
  3353. /* The GNU C library defines this for functions which it implements
  3354. to always fail with ENOSYS. Some functions are actually named
  3355. something starting with __ and the normal name is an alias. */
  3356. #if defined (__stub___res_init) || defined (__stub_____res_init)
  3357. choke me
  3358. #else
  3359. char (*f) () = __res_init;
  3360. #endif
  3361. #ifdef __cplusplus
  3362. }
  3363. #endif
  3364. int
  3365. main ()
  3366. {
  3367. return f != __res_init;
  3368. ;
  3369. return 0;
  3370. }
  3371. _ACEOF
  3372. rm -f conftest.$ac_objext conftest$ac_exeext
  3373. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3374. (eval $ac_link) 2>conftest.er1
  3375. ac_status=$?
  3376. grep -v '^ *+' conftest.er1 >conftest.err
  3377. rm -f conftest.er1
  3378. cat conftest.err >&5
  3379. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3380. (exit $ac_status); } &&
  3381. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3382. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3383. (eval $ac_try) 2>&5
  3384. ac_status=$?
  3385. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3386. (exit $ac_status); }; } &&
  3387. { ac_try='test -s conftest$ac_exeext'
  3388. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3389. (eval $ac_try) 2>&5
  3390. ac_status=$?
  3391. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3392. (exit $ac_status); }; }; then
  3393. ac_cv_func___res_init=yes
  3394. else
  3395. echo "$as_me: failed program was:" >&5
  3396. sed 's/^/| /' conftest.$ac_ext >&5
  3397. ac_cv_func___res_init=no
  3398. fi
  3399. rm -f conftest.err conftest.$ac_objext \
  3400. conftest$ac_exeext conftest.$ac_ext
  3401. fi
  3402. echo "$as_me:$LINENO: result: $ac_cv_func___res_init" >&5
  3403. echo "${ECHO_T}$ac_cv_func___res_init" >&6
  3404. if test $ac_cv_func___res_init = yes; then
  3405. :
  3406. else
  3407. echo "$as_me:$LINENO: checking for __res_init in -lresolv" >&5
  3408. echo $ECHO_N "checking for __res_init in -lresolv... $ECHO_C" >&6
  3409. if test "${ac_cv_lib_resolv___res_init+set}" = set; then
  3410. echo $ECHO_N "(cached) $ECHO_C" >&6
  3411. else
  3412. ac_check_lib_save_LIBS=$LIBS
  3413. LIBS="-lresolv $LIBS"
  3414. cat >conftest.$ac_ext <<_ACEOF
  3415. /* confdefs.h. */
  3416. _ACEOF
  3417. cat confdefs.h >>conftest.$ac_ext
  3418. cat >>conftest.$ac_ext <<_ACEOF
  3419. /* end confdefs.h. */
  3420. /* Override any gcc2 internal prototype to avoid an error. */
  3421. #ifdef __cplusplus
  3422. extern "C"
  3423. #endif
  3424. /* We use char because int might match the return type of a gcc2
  3425. builtin and then its argument prototype would still apply. */
  3426. char __res_init ();
  3427. int
  3428. main ()
  3429. {
  3430. __res_init ();
  3431. ;
  3432. return 0;
  3433. }
  3434. _ACEOF
  3435. rm -f conftest.$ac_objext conftest$ac_exeext
  3436. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3437. (eval $ac_link) 2>conftest.er1
  3438. ac_status=$?
  3439. grep -v '^ *+' conftest.er1 >conftest.err
  3440. rm -f conftest.er1
  3441. cat conftest.err >&5
  3442. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3443. (exit $ac_status); } &&
  3444. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3445. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3446. (eval $ac_try) 2>&5
  3447. ac_status=$?
  3448. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3449. (exit $ac_status); }; } &&
  3450. { ac_try='test -s conftest$ac_exeext'
  3451. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3452. (eval $ac_try) 2>&5
  3453. ac_status=$?
  3454. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3455. (exit $ac_status); }; }; then
  3456. ac_cv_lib_resolv___res_init=yes
  3457. else
  3458. echo "$as_me: failed program was:" >&5
  3459. sed 's/^/| /' conftest.$ac_ext >&5
  3460. ac_cv_lib_resolv___res_init=no
  3461. fi
  3462. rm -f conftest.err conftest.$ac_objext \
  3463. conftest$ac_exeext conftest.$ac_ext
  3464. LIBS=$ac_check_lib_save_LIBS
  3465. fi
  3466. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_init" >&5
  3467. echo "${ECHO_T}$ac_cv_lib_resolv___res_init" >&6
  3468. if test $ac_cv_lib_resolv___res_init = yes; then
  3469. RESLIB="-lresolv"
  3470. else
  3471. echo "$as_me:$LINENO: checking for __res_init in -lbind" >&5
  3472. echo $ECHO_N "checking for __res_init in -lbind... $ECHO_C" >&6
  3473. if test "${ac_cv_lib_bind___res_init+set}" = set; then
  3474. echo $ECHO_N "(cached) $ECHO_C" >&6
  3475. else
  3476. ac_check_lib_save_LIBS=$LIBS
  3477. LIBS="-lbind $LIBS"
  3478. cat >conftest.$ac_ext <<_ACEOF
  3479. /* confdefs.h. */
  3480. _ACEOF
  3481. cat confdefs.h >>conftest.$ac_ext
  3482. cat >>conftest.$ac_ext <<_ACEOF
  3483. /* end confdefs.h. */
  3484. /* Override any gcc2 internal prototype to avoid an error. */
  3485. #ifdef __cplusplus
  3486. extern "C"
  3487. #endif
  3488. /* We use char because int might match the return type of a gcc2
  3489. builtin and then its argument prototype would still apply. */
  3490. char __res_init ();
  3491. int
  3492. main ()
  3493. {
  3494. __res_init ();
  3495. ;
  3496. return 0;
  3497. }
  3498. _ACEOF
  3499. rm -f conftest.$ac_objext conftest$ac_exeext
  3500. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3501. (eval $ac_link) 2>conftest.er1
  3502. ac_status=$?
  3503. grep -v '^ *+' conftest.er1 >conftest.err
  3504. rm -f conftest.er1
  3505. cat conftest.err >&5
  3506. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3507. (exit $ac_status); } &&
  3508. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3509. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3510. (eval $ac_try) 2>&5
  3511. ac_status=$?
  3512. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3513. (exit $ac_status); }; } &&
  3514. { ac_try='test -s conftest$ac_exeext'
  3515. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3516. (eval $ac_try) 2>&5
  3517. ac_status=$?
  3518. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3519. (exit $ac_status); }; }; then
  3520. ac_cv_lib_bind___res_init=yes
  3521. else
  3522. echo "$as_me: failed program was:" >&5
  3523. sed 's/^/| /' conftest.$ac_ext >&5
  3524. ac_cv_lib_bind___res_init=no
  3525. fi
  3526. rm -f conftest.err conftest.$ac_objext \
  3527. conftest$ac_exeext conftest.$ac_ext
  3528. LIBS=$ac_check_lib_save_LIBS
  3529. fi
  3530. echo "$as_me:$LINENO: result: $ac_cv_lib_bind___res_init" >&5
  3531. echo "${ECHO_T}$ac_cv_lib_bind___res_init" >&6
  3532. if test $ac_cv_lib_bind___res_init = yes; then
  3533. RESLIB="-lbind"
  3534. else
  3535. dns_reslib_avail="false";
  3536. fi
  3537. fi
  3538. fi
  3539. fi
  3540. echo "$as_me:$LINENO: checking for res_mkquery" >&5
  3541. echo $ECHO_N "checking for res_mkquery... $ECHO_C" >&6
  3542. if test "${ac_cv_func_res_mkquery+set}" = set; then
  3543. echo $ECHO_N "(cached) $ECHO_C" >&6
  3544. else
  3545. cat >conftest.$ac_ext <<_ACEOF
  3546. /* confdefs.h. */
  3547. _ACEOF
  3548. cat confdefs.h >>conftest.$ac_ext
  3549. cat >>conftest.$ac_ext <<_ACEOF
  3550. /* end confdefs.h. */
  3551. /* Define res_mkquery to an innocuous variant, in case <limits.h> declares res_mkquery.
  3552. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3553. #define res_mkquery innocuous_res_mkquery
  3554. /* System header to define __stub macros and hopefully few prototypes,
  3555. which can conflict with char res_mkquery (); below.
  3556. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3557. <limits.h> exists even on freestanding compilers. */
  3558. #ifdef __STDC__
  3559. # include <limits.h>
  3560. #else
  3561. # include <assert.h>
  3562. #endif
  3563. #undef res_mkquery
  3564. /* Override any gcc2 internal prototype to avoid an error. */
  3565. #ifdef __cplusplus
  3566. extern "C"
  3567. {
  3568. #endif
  3569. /* We use char because int might match the return type of a gcc2
  3570. builtin and then its argument prototype would still apply. */
  3571. char res_mkquery ();
  3572. /* The GNU C library defines this for functions which it implements
  3573. to always fail with ENOSYS. Some functions are actually named
  3574. something starting with __ and the normal name is an alias. */
  3575. #if defined (__stub_res_mkquery) || defined (__stub___res_mkquery)
  3576. choke me
  3577. #else
  3578. char (*f) () = res_mkquery;
  3579. #endif
  3580. #ifdef __cplusplus
  3581. }
  3582. #endif
  3583. int
  3584. main ()
  3585. {
  3586. return f != res_mkquery;
  3587. ;
  3588. return 0;
  3589. }
  3590. _ACEOF
  3591. rm -f conftest.$ac_objext conftest$ac_exeext
  3592. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3593. (eval $ac_link) 2>conftest.er1
  3594. ac_status=$?
  3595. grep -v '^ *+' conftest.er1 >conftest.err
  3596. rm -f conftest.er1
  3597. cat conftest.err >&5
  3598. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3599. (exit $ac_status); } &&
  3600. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3601. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3602. (eval $ac_try) 2>&5
  3603. ac_status=$?
  3604. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3605. (exit $ac_status); }; } &&
  3606. { ac_try='test -s conftest$ac_exeext'
  3607. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3608. (eval $ac_try) 2>&5
  3609. ac_status=$?
  3610. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3611. (exit $ac_status); }; }; then
  3612. ac_cv_func_res_mkquery=yes
  3613. else
  3614. echo "$as_me: failed program was:" >&5
  3615. sed 's/^/| /' conftest.$ac_ext >&5
  3616. ac_cv_func_res_mkquery=no
  3617. fi
  3618. rm -f conftest.err conftest.$ac_objext \
  3619. conftest$ac_exeext conftest.$ac_ext
  3620. fi
  3621. echo "$as_me:$LINENO: result: $ac_cv_func_res_mkquery" >&5
  3622. echo "${ECHO_T}$ac_cv_func_res_mkquery" >&6
  3623. if test $ac_cv_func_res_mkquery = yes; then
  3624. :
  3625. else
  3626. echo "$as_me:$LINENO: checking for res_mkquery in -lresolv" >&5
  3627. echo $ECHO_N "checking for res_mkquery in -lresolv... $ECHO_C" >&6
  3628. if test "${ac_cv_lib_resolv_res_mkquery+set}" = set; then
  3629. echo $ECHO_N "(cached) $ECHO_C" >&6
  3630. else
  3631. ac_check_lib_save_LIBS=$LIBS
  3632. LIBS="-lresolv $LIBS"
  3633. cat >conftest.$ac_ext <<_ACEOF
  3634. /* confdefs.h. */
  3635. _ACEOF
  3636. cat confdefs.h >>conftest.$ac_ext
  3637. cat >>conftest.$ac_ext <<_ACEOF
  3638. /* end confdefs.h. */
  3639. /* Override any gcc2 internal prototype to avoid an error. */
  3640. #ifdef __cplusplus
  3641. extern "C"
  3642. #endif
  3643. /* We use char because int might match the return type of a gcc2
  3644. builtin and then its argument prototype would still apply. */
  3645. char res_mkquery ();
  3646. int
  3647. main ()
  3648. {
  3649. res_mkquery ();
  3650. ;
  3651. return 0;
  3652. }
  3653. _ACEOF
  3654. rm -f conftest.$ac_objext conftest$ac_exeext
  3655. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3656. (eval $ac_link) 2>conftest.er1
  3657. ac_status=$?
  3658. grep -v '^ *+' conftest.er1 >conftest.err
  3659. rm -f conftest.er1
  3660. cat conftest.err >&5
  3661. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3662. (exit $ac_status); } &&
  3663. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3664. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3665. (eval $ac_try) 2>&5
  3666. ac_status=$?
  3667. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3668. (exit $ac_status); }; } &&
  3669. { ac_try='test -s conftest$ac_exeext'
  3670. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3671. (eval $ac_try) 2>&5
  3672. ac_status=$?
  3673. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3674. (exit $ac_status); }; }; then
  3675. ac_cv_lib_resolv_res_mkquery=yes
  3676. else
  3677. echo "$as_me: failed program was:" >&5
  3678. sed 's/^/| /' conftest.$ac_ext >&5
  3679. ac_cv_lib_resolv_res_mkquery=no
  3680. fi
  3681. rm -f conftest.err conftest.$ac_objext \
  3682. conftest$ac_exeext conftest.$ac_ext
  3683. LIBS=$ac_check_lib_save_LIBS
  3684. fi
  3685. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_mkquery" >&5
  3686. echo "${ECHO_T}$ac_cv_lib_resolv_res_mkquery" >&6
  3687. if test $ac_cv_lib_resolv_res_mkquery = yes; then
  3688. if test "x${RESLIB}" != "x-lresolv"; then
  3689. RESLIB="${RESLIB} -lresolv"
  3690. fi
  3691. else
  3692. echo "$as_me:$LINENO: checking for res_mkquery in -lbind" >&5
  3693. echo $ECHO_N "checking for res_mkquery in -lbind... $ECHO_C" >&6
  3694. if test "${ac_cv_lib_bind_res_mkquery+set}" = set; then
  3695. echo $ECHO_N "(cached) $ECHO_C" >&6
  3696. else
  3697. ac_check_lib_save_LIBS=$LIBS
  3698. LIBS="-lbind $LIBS"
  3699. cat >conftest.$ac_ext <<_ACEOF
  3700. /* confdefs.h. */
  3701. _ACEOF
  3702. cat confdefs.h >>conftest.$ac_ext
  3703. cat >>conftest.$ac_ext <<_ACEOF
  3704. /* end confdefs.h. */
  3705. /* Override any gcc2 internal prototype to avoid an error. */
  3706. #ifdef __cplusplus
  3707. extern "C"
  3708. #endif
  3709. /* We use char because int might match the return type of a gcc2
  3710. builtin and then its argument prototype would still apply. */
  3711. char res_mkquery ();
  3712. int
  3713. main ()
  3714. {
  3715. res_mkquery ();
  3716. ;
  3717. return 0;
  3718. }
  3719. _ACEOF
  3720. rm -f conftest.$ac_objext conftest$ac_exeext
  3721. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3722. (eval $ac_link) 2>conftest.er1
  3723. ac_status=$?
  3724. grep -v '^ *+' conftest.er1 >conftest.err
  3725. rm -f conftest.er1
  3726. cat conftest.err >&5
  3727. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3728. (exit $ac_status); } &&
  3729. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3730. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3731. (eval $ac_try) 2>&5
  3732. ac_status=$?
  3733. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3734. (exit $ac_status); }; } &&
  3735. { ac_try='test -s conftest$ac_exeext'
  3736. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3737. (eval $ac_try) 2>&5
  3738. ac_status=$?
  3739. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3740. (exit $ac_status); }; }; then
  3741. ac_cv_lib_bind_res_mkquery=yes
  3742. else
  3743. echo "$as_me: failed program was:" >&5
  3744. sed 's/^/| /' conftest.$ac_ext >&5
  3745. ac_cv_lib_bind_res_mkquery=no
  3746. fi
  3747. rm -f conftest.err conftest.$ac_objext \
  3748. conftest$ac_exeext conftest.$ac_ext
  3749. LIBS=$ac_check_lib_save_LIBS
  3750. fi
  3751. echo "$as_me:$LINENO: result: $ac_cv_lib_bind_res_mkquery" >&5
  3752. echo "${ECHO_T}$ac_cv_lib_bind_res_mkquery" >&6
  3753. if test $ac_cv_lib_bind_res_mkquery = yes; then
  3754. if test "x${RESLIB}" != "x-lbind"; then
  3755. RESLIB="${RESLIB} -lbind"
  3756. fi
  3757. else
  3758. dns_reslib_avail="false";
  3759. fi
  3760. fi
  3761. fi
  3762. if test "${dns_reslib_avail}" = false; then
  3763. dns_reslib_avail="true"
  3764. echo "$as_me:$LINENO: checking for __res_mkquery" >&5
  3765. echo $ECHO_N "checking for __res_mkquery... $ECHO_C" >&6
  3766. if test "${ac_cv_func___res_mkquery+set}" = set; then
  3767. echo $ECHO_N "(cached) $ECHO_C" >&6
  3768. else
  3769. cat >conftest.$ac_ext <<_ACEOF
  3770. /* confdefs.h. */
  3771. _ACEOF
  3772. cat confdefs.h >>conftest.$ac_ext
  3773. cat >>conftest.$ac_ext <<_ACEOF
  3774. /* end confdefs.h. */
  3775. /* Define __res_mkquery to an innocuous variant, in case <limits.h> declares __res_mkquery.
  3776. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3777. #define __res_mkquery innocuous___res_mkquery
  3778. /* System header to define __stub macros and hopefully few prototypes,
  3779. which can conflict with char __res_mkquery (); below.
  3780. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3781. <limits.h> exists even on freestanding compilers. */
  3782. #ifdef __STDC__
  3783. # include <limits.h>
  3784. #else
  3785. # include <assert.h>
  3786. #endif
  3787. #undef __res_mkquery
  3788. /* Override any gcc2 internal prototype to avoid an error. */
  3789. #ifdef __cplusplus
  3790. extern "C"
  3791. {
  3792. #endif
  3793. /* We use char because int might match the return type of a gcc2
  3794. builtin and then its argument prototype would still apply. */
  3795. char __res_mkquery ();
  3796. /* The GNU C library defines this for functions which it implements
  3797. to always fail with ENOSYS. Some functions are actually named
  3798. something starting with __ and the normal name is an alias. */
  3799. #if defined (__stub___res_mkquery) || defined (__stub_____res_mkquery)
  3800. choke me
  3801. #else
  3802. char (*f) () = __res_mkquery;
  3803. #endif
  3804. #ifdef __cplusplus
  3805. }
  3806. #endif
  3807. int
  3808. main ()
  3809. {
  3810. return f != __res_mkquery;
  3811. ;
  3812. return 0;
  3813. }
  3814. _ACEOF
  3815. rm -f conftest.$ac_objext conftest$ac_exeext
  3816. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3817. (eval $ac_link) 2>conftest.er1
  3818. ac_status=$?
  3819. grep -v '^ *+' conftest.er1 >conftest.err
  3820. rm -f conftest.er1
  3821. cat conftest.err >&5
  3822. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3823. (exit $ac_status); } &&
  3824. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3825. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3826. (eval $ac_try) 2>&5
  3827. ac_status=$?
  3828. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3829. (exit $ac_status); }; } &&
  3830. { ac_try='test -s conftest$ac_exeext'
  3831. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3832. (eval $ac_try) 2>&5
  3833. ac_status=$?
  3834. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3835. (exit $ac_status); }; }; then
  3836. ac_cv_func___res_mkquery=yes
  3837. else
  3838. echo "$as_me: failed program was:" >&5
  3839. sed 's/^/| /' conftest.$ac_ext >&5
  3840. ac_cv_func___res_mkquery=no
  3841. fi
  3842. rm -f conftest.err conftest.$ac_objext \
  3843. conftest$ac_exeext conftest.$ac_ext
  3844. fi
  3845. echo "$as_me:$LINENO: result: $ac_cv_func___res_mkquery" >&5
  3846. echo "${ECHO_T}$ac_cv_func___res_mkquery" >&6
  3847. if test $ac_cv_func___res_mkquery = yes; then
  3848. :
  3849. else
  3850. echo "$as_me:$LINENO: checking for __res_mkquery in -lresolv" >&5
  3851. echo $ECHO_N "checking for __res_mkquery in -lresolv... $ECHO_C" >&6
  3852. if test "${ac_cv_lib_resolv___res_mkquery+set}" = set; then
  3853. echo $ECHO_N "(cached) $ECHO_C" >&6
  3854. else
  3855. ac_check_lib_save_LIBS=$LIBS
  3856. LIBS="-lresolv $LIBS"
  3857. cat >conftest.$ac_ext <<_ACEOF
  3858. /* confdefs.h. */
  3859. _ACEOF
  3860. cat confdefs.h >>conftest.$ac_ext
  3861. cat >>conftest.$ac_ext <<_ACEOF
  3862. /* end confdefs.h. */
  3863. /* Override any gcc2 internal prototype to avoid an error. */
  3864. #ifdef __cplusplus
  3865. extern "C"
  3866. #endif
  3867. /* We use char because int might match the return type of a gcc2
  3868. builtin and then its argument prototype would still apply. */
  3869. char __res_mkquery ();
  3870. int
  3871. main ()
  3872. {
  3873. __res_mkquery ();
  3874. ;
  3875. return 0;
  3876. }
  3877. _ACEOF
  3878. rm -f conftest.$ac_objext conftest$ac_exeext
  3879. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3880. (eval $ac_link) 2>conftest.er1
  3881. ac_status=$?
  3882. grep -v '^ *+' conftest.er1 >conftest.err
  3883. rm -f conftest.er1
  3884. cat conftest.err >&5
  3885. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3886. (exit $ac_status); } &&
  3887. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3888. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3889. (eval $ac_try) 2>&5
  3890. ac_status=$?
  3891. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3892. (exit $ac_status); }; } &&
  3893. { ac_try='test -s conftest$ac_exeext'
  3894. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3895. (eval $ac_try) 2>&5
  3896. ac_status=$?
  3897. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3898. (exit $ac_status); }; }; then
  3899. ac_cv_lib_resolv___res_mkquery=yes
  3900. else
  3901. echo "$as_me: failed program was:" >&5
  3902. sed 's/^/| /' conftest.$ac_ext >&5
  3903. ac_cv_lib_resolv___res_mkquery=no
  3904. fi
  3905. rm -f conftest.err conftest.$ac_objext \
  3906. conftest$ac_exeext conftest.$ac_ext
  3907. LIBS=$ac_check_lib_save_LIBS
  3908. fi
  3909. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_mkquery" >&5
  3910. echo "${ECHO_T}$ac_cv_lib_resolv___res_mkquery" >&6
  3911. if test $ac_cv_lib_resolv___res_mkquery = yes; then
  3912. if test "x${RESLIB}" != "x-lresolv"; then
  3913. RESLIB="${RESLIB} -lresolv"
  3914. fi
  3915. else
  3916. echo "$as_me:$LINENO: checking for __res_mkquery in -lbind" >&5
  3917. echo $ECHO_N "checking for __res_mkquery in -lbind... $ECHO_C" >&6
  3918. if test "${ac_cv_lib_bind___res_mkquery+set}" = set; then
  3919. echo $ECHO_N "(cached) $ECHO_C" >&6
  3920. else
  3921. ac_check_lib_save_LIBS=$LIBS
  3922. LIBS="-lbind $LIBS"
  3923. cat >conftest.$ac_ext <<_ACEOF
  3924. /* confdefs.h. */
  3925. _ACEOF
  3926. cat confdefs.h >>conftest.$ac_ext
  3927. cat >>conftest.$ac_ext <<_ACEOF
  3928. /* end confdefs.h. */
  3929. /* Override any gcc2 internal prototype to avoid an error. */
  3930. #ifdef __cplusplus
  3931. extern "C"
  3932. #endif
  3933. /* We use char because int might match the return type of a gcc2
  3934. builtin and then its argument prototype would still apply. */
  3935. char __res_mkquery ();
  3936. int
  3937. main ()
  3938. {
  3939. __res_mkquery ();
  3940. ;
  3941. return 0;
  3942. }
  3943. _ACEOF
  3944. rm -f conftest.$ac_objext conftest$ac_exeext
  3945. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3946. (eval $ac_link) 2>conftest.er1
  3947. ac_status=$?
  3948. grep -v '^ *+' conftest.er1 >conftest.err
  3949. rm -f conftest.er1
  3950. cat conftest.err >&5
  3951. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3952. (exit $ac_status); } &&
  3953. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3954. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3955. (eval $ac_try) 2>&5
  3956. ac_status=$?
  3957. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3958. (exit $ac_status); }; } &&
  3959. { ac_try='test -s conftest$ac_exeext'
  3960. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3961. (eval $ac_try) 2>&5
  3962. ac_status=$?
  3963. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3964. (exit $ac_status); }; }; then
  3965. ac_cv_lib_bind___res_mkquery=yes
  3966. else
  3967. echo "$as_me: failed program was:" >&5
  3968. sed 's/^/| /' conftest.$ac_ext >&5
  3969. ac_cv_lib_bind___res_mkquery=no
  3970. fi
  3971. rm -f conftest.err conftest.$ac_objext \
  3972. conftest$ac_exeext conftest.$ac_ext
  3973. LIBS=$ac_check_lib_save_LIBS
  3974. fi
  3975. echo "$as_me:$LINENO: result: $ac_cv_lib_bind___res_mkquery" >&5
  3976. echo "${ECHO_T}$ac_cv_lib_bind___res_mkquery" >&6
  3977. if test $ac_cv_lib_bind___res_mkquery = yes; then
  3978. if test "x${RESLIB}" != "x-lbind"; then
  3979. RESLIB="${RESLIB} -lbind"
  3980. fi
  3981. else
  3982. dns_reslib_avail="false";
  3983. fi
  3984. fi
  3985. fi
  3986. fi
  3987. if test "${dns_reslib_avail}" = false; then
  3988. if test "$ac_cv_cygwin" = "yes"; then
  3989. echo "$as_me:$LINENO: checking for /usr/local/bind/lib/libbind.a" >&5
  3990. echo $ECHO_N "checking for /usr/local/bind/lib/libbind.a... $ECHO_C" >&6
  3991. if test -r /usr/local/bind/lib/libbind.a; then
  3992. echo "$as_me:$LINENO: result: yes" >&5
  3993. echo "${ECHO_T}yes" >&6
  3994. RESLIB="${RESLIB} -L/usr/local/bind/lib -lbind"
  3995. RESINCLUDE="-I/usr/local/bind/include"
  3996. dns_reslib_avail="true"
  3997. else
  3998. echo "$as_me:$LINENO: result: no" >&5
  3999. echo "${ECHO_T}no" >&6
  4000. fi
  4001. fi
  4002. fi
  4003. if test "${dns_reslib_avail}" = false; then
  4004. cat >&2 <<EOF
  4005. configure: warning:
  4006. Your system provides no functional resolver library.
  4007. One is required for buld.
  4008. EOF
  4009. exit 1
  4010. fi
  4011. # Check for IPv6 support
  4012. #EGG_IPV6_SUPPORTED
  4013. echo "$as_me:$LINENO: checking whether or not you disabled IPv6 support" >&5
  4014. echo $ECHO_N "checking whether or not you disabled IPv6 support... $ECHO_C" >&6
  4015. # Check whether --enable-ipv6 or --disable-ipv6 was given.
  4016. if test "${enable_ipv6+set}" = set; then
  4017. enableval="$enable_ipv6"
  4018. ac_cv_dipv6="yes"
  4019. echo "$as_me:$LINENO: result: yes" >&5
  4020. echo "${ECHO_T}yes" >&6
  4021. else
  4022. ac_cv_dipv6="no"
  4023. if test "$egg_cv_ipv6_supported" = "no"; then
  4024. ac_cv_dipv6="no"
  4025. fi
  4026. echo "$as_me:$LINENO: result: $ac_cv_dipv6" >&5
  4027. echo "${ECHO_T}$ac_cv_dipv6" >&6
  4028. fi;
  4029. if ! test "$EGG_CYGWIN" = "yes"; then
  4030. if test "$ac_cv_dipv6" = "no"; then
  4031. cat >>confdefs.h <<\_ACEOF
  4032. #define USE_IPV6 1
  4033. _ACEOF
  4034. fi
  4035. fi
  4036. echo "$as_me:$LINENO: checking for socklen_t" >&5
  4037. echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
  4038. if test "${egg_cv_socklen_t+set}" = set; then
  4039. echo $ECHO_N "(cached) $ECHO_C" >&6
  4040. else
  4041. if test "$cross_compiling" = yes; then
  4042. egg_cv_socklen_t=no
  4043. else
  4044. cat >conftest.$ac_ext <<_ACEOF
  4045. /* confdefs.h. */
  4046. _ACEOF
  4047. cat confdefs.h >>conftest.$ac_ext
  4048. cat >>conftest.$ac_ext <<_ACEOF
  4049. /* end confdefs.h. */
  4050. #include <unistd.h>
  4051. #include <sys/types.h>
  4052. #include <sys/socket.h>
  4053. #include <netinet/in.h>
  4054. #include <arpa/inet.h>
  4055. int main()
  4056. {
  4057. socklen_t test = sizeof(int);
  4058. return 0;
  4059. }
  4060. _ACEOF
  4061. rm -f conftest$ac_exeext
  4062. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4063. (eval $ac_link) 2>&5
  4064. ac_status=$?
  4065. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4066. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4067. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4068. (eval $ac_try) 2>&5
  4069. ac_status=$?
  4070. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4071. (exit $ac_status); }; }; then
  4072. egg_cv_socklen_t=yes
  4073. else
  4074. echo "$as_me: program exited with status $ac_status" >&5
  4075. echo "$as_me: failed program was:" >&5
  4076. sed 's/^/| /' conftest.$ac_ext >&5
  4077. ( exit $ac_status )
  4078. egg_cv_socklen_t=no
  4079. fi
  4080. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4081. fi
  4082. fi
  4083. if test "$egg_cv_socklen_t" = "yes"; then
  4084. cat >>confdefs.h <<\_ACEOF
  4085. #define HAVE_SOCKLEN_T 1
  4086. _ACEOF
  4087. echo "$as_me:$LINENO: result: yes" >&5
  4088. echo "${ECHO_T}yes" >&6
  4089. else
  4090. echo "$as_me:$LINENO: result: no" >&5
  4091. echo "${ECHO_T}no" >&6
  4092. fi
  4093. # Create static binaries
  4094. if test -z "$no_static"
  4095. then
  4096. if test -n "$GXX"
  4097. then
  4098. echo "$as_me:$LINENO: checking whether the compiler understands -static" >&5
  4099. echo $ECHO_N "checking whether the compiler understands -static... $ECHO_C" >&6
  4100. if test "${egg_cv_var_ccstatic+set}" = set; then
  4101. echo $ECHO_N "(cached) $ECHO_C" >&6
  4102. else
  4103. ac_old_CXX="$CXX"
  4104. CXX="$CXX -static"
  4105. cat >conftest.$ac_ext <<_ACEOF
  4106. /* confdefs.h. */
  4107. _ACEOF
  4108. cat confdefs.h >>conftest.$ac_ext
  4109. cat >>conftest.$ac_ext <<_ACEOF
  4110. /* end confdefs.h. */
  4111. int
  4112. main ()
  4113. {
  4114. ;
  4115. return 0;
  4116. }
  4117. _ACEOF
  4118. rm -f conftest.$ac_objext
  4119. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4120. (eval $ac_compile) 2>conftest.er1
  4121. ac_status=$?
  4122. grep -v '^ *+' conftest.er1 >conftest.err
  4123. rm -f conftest.er1
  4124. cat conftest.err >&5
  4125. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4126. (exit $ac_status); } &&
  4127. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4128. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4129. (eval $ac_try) 2>&5
  4130. ac_status=$?
  4131. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4132. (exit $ac_status); }; } &&
  4133. { ac_try='test -s conftest.$ac_objext'
  4134. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4135. (eval $ac_try) 2>&5
  4136. ac_status=$?
  4137. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4138. (exit $ac_status); }; }; then
  4139. egg_cv_var_ccstatic="yes"
  4140. else
  4141. echo "$as_me: failed program was:" >&5
  4142. sed 's/^/| /' conftest.$ac_ext >&5
  4143. egg_cv_var_ccstatic="no"
  4144. fi
  4145. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4146. CXX="$ac_old_CXX"
  4147. fi
  4148. echo "$as_me:$LINENO: result: $egg_cv_var_ccstatic" >&5
  4149. echo "${ECHO_T}$egg_cv_var_ccstatic" >&6
  4150. if test "$egg_cv_var_ccstatic" = "yes"
  4151. then
  4152. CCDEBUG="$CXX"
  4153. CXX="$CXX -static"
  4154. else
  4155. cat << 'EOF' >&2
  4156. configure: error:
  4157. Your C compiler does not support -static.
  4158. This compile flag is required for the botpack.
  4159. EOF
  4160. exit 1
  4161. fi
  4162. fi
  4163. fi
  4164. #checkpoint
  4165. cat >confcache <<\_ACEOF
  4166. # This file is a shell script that caches the results of configure
  4167. # tests run on this system so they can be shared between configure
  4168. # scripts and configure runs, see configure's option --config-cache.
  4169. # It is not useful on other systems. If it contains results you don't
  4170. # want to keep, you may remove or edit it.
  4171. #
  4172. # config.status only pays attention to the cache file if you give it
  4173. # the --recheck option to rerun configure.
  4174. #
  4175. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4176. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4177. # following values.
  4178. _ACEOF
  4179. # The following way of writing the cache mishandles newlines in values,
  4180. # but we know of no workaround that is simple, portable, and efficient.
  4181. # So, don't put newlines in cache variables' values.
  4182. # Ultrix sh set writes to stderr and can't be redirected directly,
  4183. # and sets the high bit in the cache file unless we assign to the vars.
  4184. {
  4185. (set) 2>&1 |
  4186. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  4187. *ac_space=\ *)
  4188. # `set' does not quote correctly, so add quotes (double-quote
  4189. # substitution turns \\\\ into \\, and sed turns \\ into \).
  4190. sed -n \
  4191. "s/'/'\\\\''/g;
  4192. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4193. ;;
  4194. *)
  4195. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4196. sed -n \
  4197. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  4198. ;;
  4199. esac;
  4200. } |
  4201. sed '
  4202. t clear
  4203. : clear
  4204. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4205. t end
  4206. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4207. : end' >>confcache
  4208. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  4209. if test -w $cache_file; then
  4210. test "x$cache_file" != "x/dev/null"
  4211. cat confcache >$cache_file
  4212. else
  4213. echo "not updating unwritable cache $cache_file"
  4214. fi
  4215. fi
  4216. rm -f confcache
  4217. # Checks for system libraries
  4218. echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
  4219. echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
  4220. if test "${ac_cv_lib_socket_socket+set}" = set; then
  4221. echo $ECHO_N "(cached) $ECHO_C" >&6
  4222. else
  4223. ac_check_lib_save_LIBS=$LIBS
  4224. LIBS="-lsocket $LIBS"
  4225. cat >conftest.$ac_ext <<_ACEOF
  4226. /* confdefs.h. */
  4227. _ACEOF
  4228. cat confdefs.h >>conftest.$ac_ext
  4229. cat >>conftest.$ac_ext <<_ACEOF
  4230. /* end confdefs.h. */
  4231. /* Override any gcc2 internal prototype to avoid an error. */
  4232. #ifdef __cplusplus
  4233. extern "C"
  4234. #endif
  4235. /* We use char because int might match the return type of a gcc2
  4236. builtin and then its argument prototype would still apply. */
  4237. char socket ();
  4238. int
  4239. main ()
  4240. {
  4241. socket ();
  4242. ;
  4243. return 0;
  4244. }
  4245. _ACEOF
  4246. rm -f conftest.$ac_objext conftest$ac_exeext
  4247. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4248. (eval $ac_link) 2>conftest.er1
  4249. ac_status=$?
  4250. grep -v '^ *+' conftest.er1 >conftest.err
  4251. rm -f conftest.er1
  4252. cat conftest.err >&5
  4253. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4254. (exit $ac_status); } &&
  4255. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4256. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4257. (eval $ac_try) 2>&5
  4258. ac_status=$?
  4259. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4260. (exit $ac_status); }; } &&
  4261. { ac_try='test -s conftest$ac_exeext'
  4262. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4263. (eval $ac_try) 2>&5
  4264. ac_status=$?
  4265. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4266. (exit $ac_status); }; }; then
  4267. ac_cv_lib_socket_socket=yes
  4268. else
  4269. echo "$as_me: failed program was:" >&5
  4270. sed 's/^/| /' conftest.$ac_ext >&5
  4271. ac_cv_lib_socket_socket=no
  4272. fi
  4273. rm -f conftest.err conftest.$ac_objext \
  4274. conftest$ac_exeext conftest.$ac_ext
  4275. LIBS=$ac_check_lib_save_LIBS
  4276. fi
  4277. echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
  4278. echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
  4279. if test $ac_cv_lib_socket_socket = yes; then
  4280. cat >>confdefs.h <<_ACEOF
  4281. #define HAVE_LIBSOCKET 1
  4282. _ACEOF
  4283. LIBS="-lsocket $LIBS"
  4284. fi
  4285. # AC_CHECK_LIB(nsl, connect)
  4286. echo "$as_me:$LINENO: checking for gethostbyname in -ldns" >&5
  4287. echo $ECHO_N "checking for gethostbyname in -ldns... $ECHO_C" >&6
  4288. if test "${ac_cv_lib_dns_gethostbyname+set}" = set; then
  4289. echo $ECHO_N "(cached) $ECHO_C" >&6
  4290. else
  4291. ac_check_lib_save_LIBS=$LIBS
  4292. LIBS="-ldns $LIBS"
  4293. cat >conftest.$ac_ext <<_ACEOF
  4294. /* confdefs.h. */
  4295. _ACEOF
  4296. cat confdefs.h >>conftest.$ac_ext
  4297. cat >>conftest.$ac_ext <<_ACEOF
  4298. /* end confdefs.h. */
  4299. /* Override any gcc2 internal prototype to avoid an error. */
  4300. #ifdef __cplusplus
  4301. extern "C"
  4302. #endif
  4303. /* We use char because int might match the return type of a gcc2
  4304. builtin and then its argument prototype would still apply. */
  4305. char gethostbyname ();
  4306. int
  4307. main ()
  4308. {
  4309. gethostbyname ();
  4310. ;
  4311. return 0;
  4312. }
  4313. _ACEOF
  4314. rm -f conftest.$ac_objext conftest$ac_exeext
  4315. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4316. (eval $ac_link) 2>conftest.er1
  4317. ac_status=$?
  4318. grep -v '^ *+' conftest.er1 >conftest.err
  4319. rm -f conftest.er1
  4320. cat conftest.err >&5
  4321. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4322. (exit $ac_status); } &&
  4323. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4324. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4325. (eval $ac_try) 2>&5
  4326. ac_status=$?
  4327. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4328. (exit $ac_status); }; } &&
  4329. { ac_try='test -s conftest$ac_exeext'
  4330. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4331. (eval $ac_try) 2>&5
  4332. ac_status=$?
  4333. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4334. (exit $ac_status); }; }; then
  4335. ac_cv_lib_dns_gethostbyname=yes
  4336. else
  4337. echo "$as_me: failed program was:" >&5
  4338. sed 's/^/| /' conftest.$ac_ext >&5
  4339. ac_cv_lib_dns_gethostbyname=no
  4340. fi
  4341. rm -f conftest.err conftest.$ac_objext \
  4342. conftest$ac_exeext conftest.$ac_ext
  4343. LIBS=$ac_check_lib_save_LIBS
  4344. fi
  4345. echo "$as_me:$LINENO: result: $ac_cv_lib_dns_gethostbyname" >&5
  4346. echo "${ECHO_T}$ac_cv_lib_dns_gethostbyname" >&6
  4347. if test $ac_cv_lib_dns_gethostbyname = yes; then
  4348. cat >>confdefs.h <<_ACEOF
  4349. #define HAVE_LIBDNS 1
  4350. _ACEOF
  4351. LIBS="-ldns $LIBS"
  4352. fi
  4353. # AC_CHECK_LIB(z, gzopen, ZLIB="-lz")
  4354. # AC_CHECK_LIB(ssl, SSL_accept, SSL="-lssl -lcrypto", SSL="", -lcrypto)
  4355. # AC_CHECK_LIB(ssl, SSL_accept, SSL="-lcrypto", SSL="", -lcrypto)
  4356. # This is needed for Tcl libraries compiled with thread support
  4357. # AC_CHECK_LIB(pthread, pthread_mutex_init, [dnl
  4358. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4359. # ac_cv_lib_pthread="-lpthread"], [dnl
  4360. # AC_CHECK_LIB(pthread, __pthread_mutex_init, [dnl
  4361. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4362. # ac_cv_lib_pthread="-lpthread"], [dnl
  4363. # AC_CHECK_LIB(pthreads, pthread_mutex_init, [dnl
  4364. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4365. # ac_cv_lib_pthread="-lpthreads"], [dnl
  4366. # AC_CHECK_FUNC(pthread_mutex_init, [dnl
  4367. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4368. # ac_cv_lib_pthread=""],
  4369. # ac_cv_lib_pthread_pthread_mutex_init=no)])])])
  4370. # Checks for header files
  4371. ac_header_dirent=no
  4372. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  4373. as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  4374. echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  4375. echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
  4376. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4377. echo $ECHO_N "(cached) $ECHO_C" >&6
  4378. else
  4379. cat >conftest.$ac_ext <<_ACEOF
  4380. /* confdefs.h. */
  4381. _ACEOF
  4382. cat confdefs.h >>conftest.$ac_ext
  4383. cat >>conftest.$ac_ext <<_ACEOF
  4384. /* end confdefs.h. */
  4385. #include <sys/types.h>
  4386. #include <$ac_hdr>
  4387. int
  4388. main ()
  4389. {
  4390. if ((DIR *) 0)
  4391. return 0;
  4392. ;
  4393. return 0;
  4394. }
  4395. _ACEOF
  4396. rm -f conftest.$ac_objext
  4397. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4398. (eval $ac_compile) 2>conftest.er1
  4399. ac_status=$?
  4400. grep -v '^ *+' conftest.er1 >conftest.err
  4401. rm -f conftest.er1
  4402. cat conftest.err >&5
  4403. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4404. (exit $ac_status); } &&
  4405. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4406. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4407. (eval $ac_try) 2>&5
  4408. ac_status=$?
  4409. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4410. (exit $ac_status); }; } &&
  4411. { ac_try='test -s conftest.$ac_objext'
  4412. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4413. (eval $ac_try) 2>&5
  4414. ac_status=$?
  4415. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4416. (exit $ac_status); }; }; then
  4417. eval "$as_ac_Header=yes"
  4418. else
  4419. echo "$as_me: failed program was:" >&5
  4420. sed 's/^/| /' conftest.$ac_ext >&5
  4421. eval "$as_ac_Header=no"
  4422. fi
  4423. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4424. fi
  4425. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4426. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4427. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4428. cat >>confdefs.h <<_ACEOF
  4429. #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  4430. _ACEOF
  4431. ac_header_dirent=$ac_hdr; break
  4432. fi
  4433. done
  4434. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  4435. if test $ac_header_dirent = dirent.h; then
  4436. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  4437. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  4438. if test "${ac_cv_search_opendir+set}" = set; then
  4439. echo $ECHO_N "(cached) $ECHO_C" >&6
  4440. else
  4441. ac_func_search_save_LIBS=$LIBS
  4442. ac_cv_search_opendir=no
  4443. cat >conftest.$ac_ext <<_ACEOF
  4444. /* confdefs.h. */
  4445. _ACEOF
  4446. cat confdefs.h >>conftest.$ac_ext
  4447. cat >>conftest.$ac_ext <<_ACEOF
  4448. /* end confdefs.h. */
  4449. /* Override any gcc2 internal prototype to avoid an error. */
  4450. #ifdef __cplusplus
  4451. extern "C"
  4452. #endif
  4453. /* We use char because int might match the return type of a gcc2
  4454. builtin and then its argument prototype would still apply. */
  4455. char opendir ();
  4456. int
  4457. main ()
  4458. {
  4459. opendir ();
  4460. ;
  4461. return 0;
  4462. }
  4463. _ACEOF
  4464. rm -f conftest.$ac_objext conftest$ac_exeext
  4465. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4466. (eval $ac_link) 2>conftest.er1
  4467. ac_status=$?
  4468. grep -v '^ *+' conftest.er1 >conftest.err
  4469. rm -f conftest.er1
  4470. cat conftest.err >&5
  4471. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4472. (exit $ac_status); } &&
  4473. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4474. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4475. (eval $ac_try) 2>&5
  4476. ac_status=$?
  4477. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4478. (exit $ac_status); }; } &&
  4479. { ac_try='test -s conftest$ac_exeext'
  4480. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4481. (eval $ac_try) 2>&5
  4482. ac_status=$?
  4483. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4484. (exit $ac_status); }; }; then
  4485. ac_cv_search_opendir="none required"
  4486. else
  4487. echo "$as_me: failed program was:" >&5
  4488. sed 's/^/| /' conftest.$ac_ext >&5
  4489. fi
  4490. rm -f conftest.err conftest.$ac_objext \
  4491. conftest$ac_exeext conftest.$ac_ext
  4492. if test "$ac_cv_search_opendir" = no; then
  4493. for ac_lib in dir; do
  4494. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4495. cat >conftest.$ac_ext <<_ACEOF
  4496. /* confdefs.h. */
  4497. _ACEOF
  4498. cat confdefs.h >>conftest.$ac_ext
  4499. cat >>conftest.$ac_ext <<_ACEOF
  4500. /* end confdefs.h. */
  4501. /* Override any gcc2 internal prototype to avoid an error. */
  4502. #ifdef __cplusplus
  4503. extern "C"
  4504. #endif
  4505. /* We use char because int might match the return type of a gcc2
  4506. builtin and then its argument prototype would still apply. */
  4507. char opendir ();
  4508. int
  4509. main ()
  4510. {
  4511. opendir ();
  4512. ;
  4513. return 0;
  4514. }
  4515. _ACEOF
  4516. rm -f conftest.$ac_objext conftest$ac_exeext
  4517. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4518. (eval $ac_link) 2>conftest.er1
  4519. ac_status=$?
  4520. grep -v '^ *+' conftest.er1 >conftest.err
  4521. rm -f conftest.er1
  4522. cat conftest.err >&5
  4523. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4524. (exit $ac_status); } &&
  4525. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4526. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4527. (eval $ac_try) 2>&5
  4528. ac_status=$?
  4529. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4530. (exit $ac_status); }; } &&
  4531. { ac_try='test -s conftest$ac_exeext'
  4532. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4533. (eval $ac_try) 2>&5
  4534. ac_status=$?
  4535. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4536. (exit $ac_status); }; }; then
  4537. ac_cv_search_opendir="-l$ac_lib"
  4538. break
  4539. else
  4540. echo "$as_me: failed program was:" >&5
  4541. sed 's/^/| /' conftest.$ac_ext >&5
  4542. fi
  4543. rm -f conftest.err conftest.$ac_objext \
  4544. conftest$ac_exeext conftest.$ac_ext
  4545. done
  4546. fi
  4547. LIBS=$ac_func_search_save_LIBS
  4548. fi
  4549. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  4550. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  4551. if test "$ac_cv_search_opendir" != no; then
  4552. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  4553. fi
  4554. else
  4555. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  4556. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  4557. if test "${ac_cv_search_opendir+set}" = set; then
  4558. echo $ECHO_N "(cached) $ECHO_C" >&6
  4559. else
  4560. ac_func_search_save_LIBS=$LIBS
  4561. ac_cv_search_opendir=no
  4562. cat >conftest.$ac_ext <<_ACEOF
  4563. /* confdefs.h. */
  4564. _ACEOF
  4565. cat confdefs.h >>conftest.$ac_ext
  4566. cat >>conftest.$ac_ext <<_ACEOF
  4567. /* end confdefs.h. */
  4568. /* Override any gcc2 internal prototype to avoid an error. */
  4569. #ifdef __cplusplus
  4570. extern "C"
  4571. #endif
  4572. /* We use char because int might match the return type of a gcc2
  4573. builtin and then its argument prototype would still apply. */
  4574. char opendir ();
  4575. int
  4576. main ()
  4577. {
  4578. opendir ();
  4579. ;
  4580. return 0;
  4581. }
  4582. _ACEOF
  4583. rm -f conftest.$ac_objext conftest$ac_exeext
  4584. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4585. (eval $ac_link) 2>conftest.er1
  4586. ac_status=$?
  4587. grep -v '^ *+' conftest.er1 >conftest.err
  4588. rm -f conftest.er1
  4589. cat conftest.err >&5
  4590. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4591. (exit $ac_status); } &&
  4592. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4593. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4594. (eval $ac_try) 2>&5
  4595. ac_status=$?
  4596. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4597. (exit $ac_status); }; } &&
  4598. { ac_try='test -s conftest$ac_exeext'
  4599. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4600. (eval $ac_try) 2>&5
  4601. ac_status=$?
  4602. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4603. (exit $ac_status); }; }; then
  4604. ac_cv_search_opendir="none required"
  4605. else
  4606. echo "$as_me: failed program was:" >&5
  4607. sed 's/^/| /' conftest.$ac_ext >&5
  4608. fi
  4609. rm -f conftest.err conftest.$ac_objext \
  4610. conftest$ac_exeext conftest.$ac_ext
  4611. if test "$ac_cv_search_opendir" = no; then
  4612. for ac_lib in x; do
  4613. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4614. cat >conftest.$ac_ext <<_ACEOF
  4615. /* confdefs.h. */
  4616. _ACEOF
  4617. cat confdefs.h >>conftest.$ac_ext
  4618. cat >>conftest.$ac_ext <<_ACEOF
  4619. /* end confdefs.h. */
  4620. /* Override any gcc2 internal prototype to avoid an error. */
  4621. #ifdef __cplusplus
  4622. extern "C"
  4623. #endif
  4624. /* We use char because int might match the return type of a gcc2
  4625. builtin and then its argument prototype would still apply. */
  4626. char opendir ();
  4627. int
  4628. main ()
  4629. {
  4630. opendir ();
  4631. ;
  4632. return 0;
  4633. }
  4634. _ACEOF
  4635. rm -f conftest.$ac_objext conftest$ac_exeext
  4636. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4637. (eval $ac_link) 2>conftest.er1
  4638. ac_status=$?
  4639. grep -v '^ *+' conftest.er1 >conftest.err
  4640. rm -f conftest.er1
  4641. cat conftest.err >&5
  4642. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4643. (exit $ac_status); } &&
  4644. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4645. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4646. (eval $ac_try) 2>&5
  4647. ac_status=$?
  4648. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4649. (exit $ac_status); }; } &&
  4650. { ac_try='test -s conftest$ac_exeext'
  4651. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4652. (eval $ac_try) 2>&5
  4653. ac_status=$?
  4654. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4655. (exit $ac_status); }; }; then
  4656. ac_cv_search_opendir="-l$ac_lib"
  4657. break
  4658. else
  4659. echo "$as_me: failed program was:" >&5
  4660. sed 's/^/| /' conftest.$ac_ext >&5
  4661. fi
  4662. rm -f conftest.err conftest.$ac_objext \
  4663. conftest$ac_exeext conftest.$ac_ext
  4664. done
  4665. fi
  4666. LIBS=$ac_func_search_save_LIBS
  4667. fi
  4668. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  4669. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  4670. if test "$ac_cv_search_opendir" != no; then
  4671. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  4672. fi
  4673. fi
  4674. echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  4675. echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
  4676. if test "${ac_cv_header_sys_wait_h+set}" = set; then
  4677. echo $ECHO_N "(cached) $ECHO_C" >&6
  4678. else
  4679. cat >conftest.$ac_ext <<_ACEOF
  4680. /* confdefs.h. */
  4681. _ACEOF
  4682. cat confdefs.h >>conftest.$ac_ext
  4683. cat >>conftest.$ac_ext <<_ACEOF
  4684. /* end confdefs.h. */
  4685. #include <sys/types.h>
  4686. #include <sys/wait.h>
  4687. #ifndef WEXITSTATUS
  4688. # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  4689. #endif
  4690. #ifndef WIFEXITED
  4691. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  4692. #endif
  4693. int
  4694. main ()
  4695. {
  4696. int s;
  4697. wait (&s);
  4698. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  4699. ;
  4700. return 0;
  4701. }
  4702. _ACEOF
  4703. rm -f conftest.$ac_objext
  4704. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4705. (eval $ac_compile) 2>conftest.er1
  4706. ac_status=$?
  4707. grep -v '^ *+' conftest.er1 >conftest.err
  4708. rm -f conftest.er1
  4709. cat conftest.err >&5
  4710. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4711. (exit $ac_status); } &&
  4712. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4713. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4714. (eval $ac_try) 2>&5
  4715. ac_status=$?
  4716. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4717. (exit $ac_status); }; } &&
  4718. { ac_try='test -s conftest.$ac_objext'
  4719. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4720. (eval $ac_try) 2>&5
  4721. ac_status=$?
  4722. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4723. (exit $ac_status); }; }; then
  4724. ac_cv_header_sys_wait_h=yes
  4725. else
  4726. echo "$as_me: failed program was:" >&5
  4727. sed 's/^/| /' conftest.$ac_ext >&5
  4728. ac_cv_header_sys_wait_h=no
  4729. fi
  4730. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4731. fi
  4732. echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  4733. echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
  4734. if test $ac_cv_header_sys_wait_h = yes; then
  4735. cat >>confdefs.h <<\_ACEOF
  4736. #define HAVE_SYS_WAIT_H 1
  4737. _ACEOF
  4738. fi
  4739. echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  4740. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
  4741. if test "${ac_cv_header_time+set}" = set; then
  4742. echo $ECHO_N "(cached) $ECHO_C" >&6
  4743. else
  4744. cat >conftest.$ac_ext <<_ACEOF
  4745. /* confdefs.h. */
  4746. _ACEOF
  4747. cat confdefs.h >>conftest.$ac_ext
  4748. cat >>conftest.$ac_ext <<_ACEOF
  4749. /* end confdefs.h. */
  4750. #include <sys/types.h>
  4751. #include <sys/time.h>
  4752. #include <time.h>
  4753. int
  4754. main ()
  4755. {
  4756. if ((struct tm *) 0)
  4757. return 0;
  4758. ;
  4759. return 0;
  4760. }
  4761. _ACEOF
  4762. rm -f conftest.$ac_objext
  4763. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4764. (eval $ac_compile) 2>conftest.er1
  4765. ac_status=$?
  4766. grep -v '^ *+' conftest.er1 >conftest.err
  4767. rm -f conftest.er1
  4768. cat conftest.err >&5
  4769. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4770. (exit $ac_status); } &&
  4771. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4772. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4773. (eval $ac_try) 2>&5
  4774. ac_status=$?
  4775. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4776. (exit $ac_status); }; } &&
  4777. { ac_try='test -s conftest.$ac_objext'
  4778. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4779. (eval $ac_try) 2>&5
  4780. ac_status=$?
  4781. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4782. (exit $ac_status); }; }; then
  4783. ac_cv_header_time=yes
  4784. else
  4785. echo "$as_me: failed program was:" >&5
  4786. sed 's/^/| /' conftest.$ac_ext >&5
  4787. ac_cv_header_time=no
  4788. fi
  4789. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4790. fi
  4791. echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  4792. echo "${ECHO_T}$ac_cv_header_time" >&6
  4793. if test $ac_cv_header_time = yes; then
  4794. cat >>confdefs.h <<\_ACEOF
  4795. #define TIME_WITH_SYS_TIME 1
  4796. _ACEOF
  4797. fi
  4798. echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
  4799. echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
  4800. if test "${ac_cv_header_stat_broken+set}" = set; then
  4801. echo $ECHO_N "(cached) $ECHO_C" >&6
  4802. else
  4803. cat >conftest.$ac_ext <<_ACEOF
  4804. /* confdefs.h. */
  4805. _ACEOF
  4806. cat confdefs.h >>conftest.$ac_ext
  4807. cat >>conftest.$ac_ext <<_ACEOF
  4808. /* end confdefs.h. */
  4809. #include <sys/types.h>
  4810. #include <sys/stat.h>
  4811. #if defined(S_ISBLK) && defined(S_IFDIR)
  4812. # if S_ISBLK (S_IFDIR)
  4813. You lose.
  4814. # endif
  4815. #endif
  4816. #if defined(S_ISBLK) && defined(S_IFCHR)
  4817. # if S_ISBLK (S_IFCHR)
  4818. You lose.
  4819. # endif
  4820. #endif
  4821. #if defined(S_ISLNK) && defined(S_IFREG)
  4822. # if S_ISLNK (S_IFREG)
  4823. You lose.
  4824. # endif
  4825. #endif
  4826. #if defined(S_ISSOCK) && defined(S_IFREG)
  4827. # if S_ISSOCK (S_IFREG)
  4828. You lose.
  4829. # endif
  4830. #endif
  4831. _ACEOF
  4832. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4833. $EGREP "You lose" >/dev/null 2>&1; then
  4834. ac_cv_header_stat_broken=yes
  4835. else
  4836. ac_cv_header_stat_broken=no
  4837. fi
  4838. rm -f conftest*
  4839. fi
  4840. echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
  4841. echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
  4842. if test $ac_cv_header_stat_broken = yes; then
  4843. cat >>confdefs.h <<\_ACEOF
  4844. #define STAT_MACROS_BROKEN 1
  4845. _ACEOF
  4846. fi
  4847. #checkpoint
  4848. cat >confcache <<\_ACEOF
  4849. # This file is a shell script that caches the results of configure
  4850. # tests run on this system so they can be shared between configure
  4851. # scripts and configure runs, see configure's option --config-cache.
  4852. # It is not useful on other systems. If it contains results you don't
  4853. # want to keep, you may remove or edit it.
  4854. #
  4855. # config.status only pays attention to the cache file if you give it
  4856. # the --recheck option to rerun configure.
  4857. #
  4858. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4859. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4860. # following values.
  4861. _ACEOF
  4862. # The following way of writing the cache mishandles newlines in values,
  4863. # but we know of no workaround that is simple, portable, and efficient.
  4864. # So, don't put newlines in cache variables' values.
  4865. # Ultrix sh set writes to stderr and can't be redirected directly,
  4866. # and sets the high bit in the cache file unless we assign to the vars.
  4867. {
  4868. (set) 2>&1 |
  4869. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  4870. *ac_space=\ *)
  4871. # `set' does not quote correctly, so add quotes (double-quote
  4872. # substitution turns \\\\ into \\, and sed turns \\ into \).
  4873. sed -n \
  4874. "s/'/'\\\\''/g;
  4875. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4876. ;;
  4877. *)
  4878. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4879. sed -n \
  4880. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  4881. ;;
  4882. esac;
  4883. } |
  4884. sed '
  4885. t clear
  4886. : clear
  4887. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4888. t end
  4889. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4890. : end' >>confcache
  4891. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  4892. if test -w $cache_file; then
  4893. test "x$cache_file" != "x/dev/null"
  4894. cat confcache >$cache_file
  4895. else
  4896. echo "not updating unwritable cache $cache_file"
  4897. fi
  4898. fi
  4899. rm -f confcache
  4900. for ac_header in stdarg.h std_arg.h arpa/inet.h fcntl.h limits.h locale.h netdb.h netinet/in.h
  4901. do
  4902. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4903. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4904. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4905. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4906. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4907. echo $ECHO_N "(cached) $ECHO_C" >&6
  4908. fi
  4909. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4910. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4911. else
  4912. # Is the header compilable?
  4913. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4914. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  4915. cat >conftest.$ac_ext <<_ACEOF
  4916. /* confdefs.h. */
  4917. _ACEOF
  4918. cat confdefs.h >>conftest.$ac_ext
  4919. cat >>conftest.$ac_ext <<_ACEOF
  4920. /* end confdefs.h. */
  4921. $ac_includes_default
  4922. #include <$ac_header>
  4923. _ACEOF
  4924. rm -f conftest.$ac_objext
  4925. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4926. (eval $ac_compile) 2>conftest.er1
  4927. ac_status=$?
  4928. grep -v '^ *+' conftest.er1 >conftest.err
  4929. rm -f conftest.er1
  4930. cat conftest.err >&5
  4931. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4932. (exit $ac_status); } &&
  4933. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4934. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4935. (eval $ac_try) 2>&5
  4936. ac_status=$?
  4937. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4938. (exit $ac_status); }; } &&
  4939. { ac_try='test -s conftest.$ac_objext'
  4940. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4941. (eval $ac_try) 2>&5
  4942. ac_status=$?
  4943. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4944. (exit $ac_status); }; }; then
  4945. ac_header_compiler=yes
  4946. else
  4947. echo "$as_me: failed program was:" >&5
  4948. sed 's/^/| /' conftest.$ac_ext >&5
  4949. ac_header_compiler=no
  4950. fi
  4951. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4952. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4953. echo "${ECHO_T}$ac_header_compiler" >&6
  4954. # Is the header present?
  4955. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4956. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  4957. cat >conftest.$ac_ext <<_ACEOF
  4958. /* confdefs.h. */
  4959. _ACEOF
  4960. cat confdefs.h >>conftest.$ac_ext
  4961. cat >>conftest.$ac_ext <<_ACEOF
  4962. /* end confdefs.h. */
  4963. #include <$ac_header>
  4964. _ACEOF
  4965. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4966. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4967. ac_status=$?
  4968. grep -v '^ *+' conftest.er1 >conftest.err
  4969. rm -f conftest.er1
  4970. cat conftest.err >&5
  4971. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4972. (exit $ac_status); } >/dev/null; then
  4973. if test -s conftest.err; then
  4974. ac_cpp_err=$ac_cxx_preproc_warn_flag
  4975. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  4976. else
  4977. ac_cpp_err=
  4978. fi
  4979. else
  4980. ac_cpp_err=yes
  4981. fi
  4982. if test -z "$ac_cpp_err"; then
  4983. ac_header_preproc=yes
  4984. else
  4985. echo "$as_me: failed program was:" >&5
  4986. sed 's/^/| /' conftest.$ac_ext >&5
  4987. ac_header_preproc=no
  4988. fi
  4989. rm -f conftest.err conftest.$ac_ext
  4990. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4991. echo "${ECHO_T}$ac_header_preproc" >&6
  4992. # So? What about this header?
  4993. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  4994. yes:no: )
  4995. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4996. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4997. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  4998. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  4999. ac_header_preproc=yes
  5000. ;;
  5001. no:yes:* )
  5002. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5003. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5004. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5005. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5006. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5007. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5008. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5009. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5010. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5011. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5012. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5013. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5014. (
  5015. cat <<\_ASBOX
  5016. ## ------------------------------------------ ##
  5017. ## Report this to the AC_PACKAGE_NAME lists. ##
  5018. ## ------------------------------------------ ##
  5019. _ASBOX
  5020. ) |
  5021. sed "s/^/$as_me: WARNING: /" >&2
  5022. ;;
  5023. esac
  5024. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5025. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5026. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5027. echo $ECHO_N "(cached) $ECHO_C" >&6
  5028. else
  5029. eval "$as_ac_Header=\$ac_header_preproc"
  5030. fi
  5031. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5032. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5033. fi
  5034. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5035. cat >>confdefs.h <<_ACEOF
  5036. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5037. _ACEOF
  5038. fi
  5039. done
  5040. for ac_header in sys/file.h sys/ioctl.h sys/param.h sys/socket.h wchar.h
  5041. do
  5042. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5043. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5044. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5045. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5046. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5047. echo $ECHO_N "(cached) $ECHO_C" >&6
  5048. fi
  5049. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5050. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5051. else
  5052. # Is the header compilable?
  5053. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5054. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  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. $ac_includes_default
  5062. #include <$ac_header>
  5063. _ACEOF
  5064. rm -f conftest.$ac_objext
  5065. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5066. (eval $ac_compile) 2>conftest.er1
  5067. ac_status=$?
  5068. grep -v '^ *+' conftest.er1 >conftest.err
  5069. rm -f conftest.er1
  5070. cat conftest.err >&5
  5071. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5072. (exit $ac_status); } &&
  5073. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5074. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5075. (eval $ac_try) 2>&5
  5076. ac_status=$?
  5077. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5078. (exit $ac_status); }; } &&
  5079. { ac_try='test -s conftest.$ac_objext'
  5080. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5081. (eval $ac_try) 2>&5
  5082. ac_status=$?
  5083. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5084. (exit $ac_status); }; }; then
  5085. ac_header_compiler=yes
  5086. else
  5087. echo "$as_me: failed program was:" >&5
  5088. sed 's/^/| /' conftest.$ac_ext >&5
  5089. ac_header_compiler=no
  5090. fi
  5091. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5092. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5093. echo "${ECHO_T}$ac_header_compiler" >&6
  5094. # Is the header present?
  5095. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5096. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5097. cat >conftest.$ac_ext <<_ACEOF
  5098. /* confdefs.h. */
  5099. _ACEOF
  5100. cat confdefs.h >>conftest.$ac_ext
  5101. cat >>conftest.$ac_ext <<_ACEOF
  5102. /* end confdefs.h. */
  5103. #include <$ac_header>
  5104. _ACEOF
  5105. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5106. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5107. ac_status=$?
  5108. grep -v '^ *+' conftest.er1 >conftest.err
  5109. rm -f conftest.er1
  5110. cat conftest.err >&5
  5111. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5112. (exit $ac_status); } >/dev/null; then
  5113. if test -s conftest.err; then
  5114. ac_cpp_err=$ac_cxx_preproc_warn_flag
  5115. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  5116. else
  5117. ac_cpp_err=
  5118. fi
  5119. else
  5120. ac_cpp_err=yes
  5121. fi
  5122. if test -z "$ac_cpp_err"; then
  5123. ac_header_preproc=yes
  5124. else
  5125. echo "$as_me: failed program was:" >&5
  5126. sed 's/^/| /' conftest.$ac_ext >&5
  5127. ac_header_preproc=no
  5128. fi
  5129. rm -f conftest.err conftest.$ac_ext
  5130. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5131. echo "${ECHO_T}$ac_header_preproc" >&6
  5132. # So? What about this header?
  5133. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  5134. yes:no: )
  5135. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5136. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5137. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5138. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5139. ac_header_preproc=yes
  5140. ;;
  5141. no:yes:* )
  5142. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5143. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5144. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5145. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5146. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5147. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5148. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5149. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5150. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5151. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5152. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5153. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5154. (
  5155. cat <<\_ASBOX
  5156. ## ------------------------------------------ ##
  5157. ## Report this to the AC_PACKAGE_NAME lists. ##
  5158. ## ------------------------------------------ ##
  5159. _ASBOX
  5160. ) |
  5161. sed "s/^/$as_me: WARNING: /" >&2
  5162. ;;
  5163. esac
  5164. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5165. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5166. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5167. echo $ECHO_N "(cached) $ECHO_C" >&6
  5168. else
  5169. eval "$as_ac_Header=\$ac_header_preproc"
  5170. fi
  5171. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5172. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5173. fi
  5174. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5175. cat >>confdefs.h <<_ACEOF
  5176. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5177. _ACEOF
  5178. fi
  5179. done
  5180. #checkpoint
  5181. cat >confcache <<\_ACEOF
  5182. # This file is a shell script that caches the results of configure
  5183. # tests run on this system so they can be shared between configure
  5184. # scripts and configure runs, see configure's option --config-cache.
  5185. # It is not useful on other systems. If it contains results you don't
  5186. # want to keep, you may remove or edit it.
  5187. #
  5188. # config.status only pays attention to the cache file if you give it
  5189. # the --recheck option to rerun configure.
  5190. #
  5191. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5192. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5193. # following values.
  5194. _ACEOF
  5195. # The following way of writing the cache mishandles newlines in values,
  5196. # but we know of no workaround that is simple, portable, and efficient.
  5197. # So, don't put newlines in cache variables' values.
  5198. # Ultrix sh set writes to stderr and can't be redirected directly,
  5199. # and sets the high bit in the cache file unless we assign to the vars.
  5200. {
  5201. (set) 2>&1 |
  5202. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  5203. *ac_space=\ *)
  5204. # `set' does not quote correctly, so add quotes (double-quote
  5205. # substitution turns \\\\ into \\, and sed turns \\ into \).
  5206. sed -n \
  5207. "s/'/'\\\\''/g;
  5208. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5209. ;;
  5210. *)
  5211. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5212. sed -n \
  5213. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  5214. ;;
  5215. esac;
  5216. } |
  5217. sed '
  5218. t clear
  5219. : clear
  5220. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5221. t end
  5222. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5223. : end' >>confcache
  5224. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  5225. if test -w $cache_file; then
  5226. test "x$cache_file" != "x/dev/null"
  5227. cat confcache >$cache_file
  5228. else
  5229. echo "not updating unwritable cache $cache_file"
  5230. fi
  5231. fi
  5232. rm -f confcache
  5233. #AC_CHECK_HEADERS(openssl/ssl.h openssl/crypto.h)
  5234. #AC_CHECK_HEADERS(zlib.h)
  5235. #EGG_CHECK_ZLIB
  5236. #EGG_CHECK_SSL
  5237. #AC_SUBST(SSL)dnl
  5238. # Checks for typedefs, structures, and compiler characteristics
  5239. echo "$as_me:$LINENO: checking for pid_t" >&5
  5240. echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
  5241. if test "${ac_cv_type_pid_t+set}" = set; then
  5242. echo $ECHO_N "(cached) $ECHO_C" >&6
  5243. else
  5244. cat >conftest.$ac_ext <<_ACEOF
  5245. /* confdefs.h. */
  5246. _ACEOF
  5247. cat confdefs.h >>conftest.$ac_ext
  5248. cat >>conftest.$ac_ext <<_ACEOF
  5249. /* end confdefs.h. */
  5250. $ac_includes_default
  5251. int
  5252. main ()
  5253. {
  5254. if ((pid_t *) 0)
  5255. return 0;
  5256. if (sizeof (pid_t))
  5257. return 0;
  5258. ;
  5259. return 0;
  5260. }
  5261. _ACEOF
  5262. rm -f conftest.$ac_objext
  5263. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5264. (eval $ac_compile) 2>conftest.er1
  5265. ac_status=$?
  5266. grep -v '^ *+' conftest.er1 >conftest.err
  5267. rm -f conftest.er1
  5268. cat conftest.err >&5
  5269. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5270. (exit $ac_status); } &&
  5271. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5272. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5273. (eval $ac_try) 2>&5
  5274. ac_status=$?
  5275. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5276. (exit $ac_status); }; } &&
  5277. { ac_try='test -s conftest.$ac_objext'
  5278. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5279. (eval $ac_try) 2>&5
  5280. ac_status=$?
  5281. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5282. (exit $ac_status); }; }; then
  5283. ac_cv_type_pid_t=yes
  5284. else
  5285. echo "$as_me: failed program was:" >&5
  5286. sed 's/^/| /' conftest.$ac_ext >&5
  5287. ac_cv_type_pid_t=no
  5288. fi
  5289. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5290. fi
  5291. echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
  5292. echo "${ECHO_T}$ac_cv_type_pid_t" >&6
  5293. if test $ac_cv_type_pid_t = yes; then
  5294. :
  5295. else
  5296. cat >>confdefs.h <<_ACEOF
  5297. #define pid_t int
  5298. _ACEOF
  5299. fi
  5300. echo "$as_me:$LINENO: checking for size_t" >&5
  5301. echo $ECHO_N "checking for size_t... $ECHO_C" >&6
  5302. if test "${ac_cv_type_size_t+set}" = set; then
  5303. echo $ECHO_N "(cached) $ECHO_C" >&6
  5304. else
  5305. cat >conftest.$ac_ext <<_ACEOF
  5306. /* confdefs.h. */
  5307. _ACEOF
  5308. cat confdefs.h >>conftest.$ac_ext
  5309. cat >>conftest.$ac_ext <<_ACEOF
  5310. /* end confdefs.h. */
  5311. $ac_includes_default
  5312. int
  5313. main ()
  5314. {
  5315. if ((size_t *) 0)
  5316. return 0;
  5317. if (sizeof (size_t))
  5318. return 0;
  5319. ;
  5320. return 0;
  5321. }
  5322. _ACEOF
  5323. rm -f conftest.$ac_objext
  5324. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5325. (eval $ac_compile) 2>conftest.er1
  5326. ac_status=$?
  5327. grep -v '^ *+' conftest.er1 >conftest.err
  5328. rm -f conftest.er1
  5329. cat conftest.err >&5
  5330. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5331. (exit $ac_status); } &&
  5332. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5333. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5334. (eval $ac_try) 2>&5
  5335. ac_status=$?
  5336. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5337. (exit $ac_status); }; } &&
  5338. { ac_try='test -s conftest.$ac_objext'
  5339. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5340. (eval $ac_try) 2>&5
  5341. ac_status=$?
  5342. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5343. (exit $ac_status); }; }; then
  5344. ac_cv_type_size_t=yes
  5345. else
  5346. echo "$as_me: failed program was:" >&5
  5347. sed 's/^/| /' conftest.$ac_ext >&5
  5348. ac_cv_type_size_t=no
  5349. fi
  5350. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5351. fi
  5352. echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  5353. echo "${ECHO_T}$ac_cv_type_size_t" >&6
  5354. if test $ac_cv_type_size_t = yes; then
  5355. :
  5356. else
  5357. cat >>confdefs.h <<_ACEOF
  5358. #define size_t unsigned
  5359. _ACEOF
  5360. fi
  5361. echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
  5362. echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
  5363. if test "${ac_cv_type_uid_t+set}" = set; then
  5364. echo $ECHO_N "(cached) $ECHO_C" >&6
  5365. else
  5366. cat >conftest.$ac_ext <<_ACEOF
  5367. /* confdefs.h. */
  5368. _ACEOF
  5369. cat confdefs.h >>conftest.$ac_ext
  5370. cat >>conftest.$ac_ext <<_ACEOF
  5371. /* end confdefs.h. */
  5372. #include <sys/types.h>
  5373. _ACEOF
  5374. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5375. $EGREP "uid_t" >/dev/null 2>&1; then
  5376. ac_cv_type_uid_t=yes
  5377. else
  5378. ac_cv_type_uid_t=no
  5379. fi
  5380. rm -f conftest*
  5381. fi
  5382. echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
  5383. echo "${ECHO_T}$ac_cv_type_uid_t" >&6
  5384. if test $ac_cv_type_uid_t = no; then
  5385. cat >>confdefs.h <<\_ACEOF
  5386. #define uid_t int
  5387. _ACEOF
  5388. cat >>confdefs.h <<\_ACEOF
  5389. #define gid_t int
  5390. _ACEOF
  5391. fi
  5392. #AC_C_CONST
  5393. echo "$as_me:$LINENO: checking for working volatile" >&5
  5394. echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
  5395. if test "${ac_cv_c_volatile+set}" = set; then
  5396. echo $ECHO_N "(cached) $ECHO_C" >&6
  5397. else
  5398. cat >conftest.$ac_ext <<_ACEOF
  5399. /* confdefs.h. */
  5400. _ACEOF
  5401. cat confdefs.h >>conftest.$ac_ext
  5402. cat >>conftest.$ac_ext <<_ACEOF
  5403. /* end confdefs.h. */
  5404. int
  5405. main ()
  5406. {
  5407. volatile int x;
  5408. int * volatile y;
  5409. ;
  5410. return 0;
  5411. }
  5412. _ACEOF
  5413. rm -f conftest.$ac_objext
  5414. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5415. (eval $ac_compile) 2>conftest.er1
  5416. ac_status=$?
  5417. grep -v '^ *+' conftest.er1 >conftest.err
  5418. rm -f conftest.er1
  5419. cat conftest.err >&5
  5420. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5421. (exit $ac_status); } &&
  5422. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5423. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5424. (eval $ac_try) 2>&5
  5425. ac_status=$?
  5426. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5427. (exit $ac_status); }; } &&
  5428. { ac_try='test -s conftest.$ac_objext'
  5429. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5430. (eval $ac_try) 2>&5
  5431. ac_status=$?
  5432. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5433. (exit $ac_status); }; }; then
  5434. ac_cv_c_volatile=yes
  5435. else
  5436. echo "$as_me: failed program was:" >&5
  5437. sed 's/^/| /' conftest.$ac_ext >&5
  5438. ac_cv_c_volatile=no
  5439. fi
  5440. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5441. fi
  5442. echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  5443. echo "${ECHO_T}$ac_cv_c_volatile" >&6
  5444. if test $ac_cv_c_volatile = no; then
  5445. cat >>confdefs.h <<\_ACEOF
  5446. #define volatile
  5447. _ACEOF
  5448. fi
  5449. echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  5450. echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
  5451. if test "${ac_cv_c_bigendian+set}" = set; then
  5452. echo $ECHO_N "(cached) $ECHO_C" >&6
  5453. else
  5454. # See if sys/param.h defines the BYTE_ORDER macro.
  5455. cat >conftest.$ac_ext <<_ACEOF
  5456. /* confdefs.h. */
  5457. _ACEOF
  5458. cat confdefs.h >>conftest.$ac_ext
  5459. cat >>conftest.$ac_ext <<_ACEOF
  5460. /* end confdefs.h. */
  5461. #include <sys/types.h>
  5462. #include <sys/param.h>
  5463. int
  5464. main ()
  5465. {
  5466. #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
  5467. bogus endian macros
  5468. #endif
  5469. ;
  5470. return 0;
  5471. }
  5472. _ACEOF
  5473. rm -f conftest.$ac_objext
  5474. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5475. (eval $ac_compile) 2>conftest.er1
  5476. ac_status=$?
  5477. grep -v '^ *+' conftest.er1 >conftest.err
  5478. rm -f conftest.er1
  5479. cat conftest.err >&5
  5480. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5481. (exit $ac_status); } &&
  5482. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5483. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5484. (eval $ac_try) 2>&5
  5485. ac_status=$?
  5486. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5487. (exit $ac_status); }; } &&
  5488. { ac_try='test -s conftest.$ac_objext'
  5489. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5490. (eval $ac_try) 2>&5
  5491. ac_status=$?
  5492. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5493. (exit $ac_status); }; }; then
  5494. # It does; now see whether it defined to BIG_ENDIAN or not.
  5495. cat >conftest.$ac_ext <<_ACEOF
  5496. /* confdefs.h. */
  5497. _ACEOF
  5498. cat confdefs.h >>conftest.$ac_ext
  5499. cat >>conftest.$ac_ext <<_ACEOF
  5500. /* end confdefs.h. */
  5501. #include <sys/types.h>
  5502. #include <sys/param.h>
  5503. int
  5504. main ()
  5505. {
  5506. #if BYTE_ORDER != BIG_ENDIAN
  5507. not big endian
  5508. #endif
  5509. ;
  5510. return 0;
  5511. }
  5512. _ACEOF
  5513. rm -f conftest.$ac_objext
  5514. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5515. (eval $ac_compile) 2>conftest.er1
  5516. ac_status=$?
  5517. grep -v '^ *+' conftest.er1 >conftest.err
  5518. rm -f conftest.er1
  5519. cat conftest.err >&5
  5520. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5521. (exit $ac_status); } &&
  5522. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5523. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5524. (eval $ac_try) 2>&5
  5525. ac_status=$?
  5526. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5527. (exit $ac_status); }; } &&
  5528. { ac_try='test -s conftest.$ac_objext'
  5529. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5530. (eval $ac_try) 2>&5
  5531. ac_status=$?
  5532. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5533. (exit $ac_status); }; }; then
  5534. ac_cv_c_bigendian=yes
  5535. else
  5536. echo "$as_me: failed program was:" >&5
  5537. sed 's/^/| /' conftest.$ac_ext >&5
  5538. ac_cv_c_bigendian=no
  5539. fi
  5540. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5541. else
  5542. echo "$as_me: failed program was:" >&5
  5543. sed 's/^/| /' conftest.$ac_ext >&5
  5544. # It does not; compile a test program.
  5545. if test "$cross_compiling" = yes; then
  5546. # try to guess the endianness by grepping values into an object file
  5547. ac_cv_c_bigendian=unknown
  5548. cat >conftest.$ac_ext <<_ACEOF
  5549. /* confdefs.h. */
  5550. _ACEOF
  5551. cat confdefs.h >>conftest.$ac_ext
  5552. cat >>conftest.$ac_ext <<_ACEOF
  5553. /* end confdefs.h. */
  5554. short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  5555. short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  5556. void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
  5557. short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  5558. short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  5559. void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
  5560. int
  5561. main ()
  5562. {
  5563. _ascii (); _ebcdic ();
  5564. ;
  5565. return 0;
  5566. }
  5567. _ACEOF
  5568. rm -f conftest.$ac_objext
  5569. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5570. (eval $ac_compile) 2>conftest.er1
  5571. ac_status=$?
  5572. grep -v '^ *+' conftest.er1 >conftest.err
  5573. rm -f conftest.er1
  5574. cat conftest.err >&5
  5575. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5576. (exit $ac_status); } &&
  5577. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5578. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5579. (eval $ac_try) 2>&5
  5580. ac_status=$?
  5581. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5582. (exit $ac_status); }; } &&
  5583. { ac_try='test -s conftest.$ac_objext'
  5584. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5585. (eval $ac_try) 2>&5
  5586. ac_status=$?
  5587. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5588. (exit $ac_status); }; }; then
  5589. if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  5590. ac_cv_c_bigendian=yes
  5591. fi
  5592. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  5593. if test "$ac_cv_c_bigendian" = unknown; then
  5594. ac_cv_c_bigendian=no
  5595. else
  5596. # finding both strings is unlikely to happen, but who knows?
  5597. ac_cv_c_bigendian=unknown
  5598. fi
  5599. fi
  5600. else
  5601. echo "$as_me: failed program was:" >&5
  5602. sed 's/^/| /' conftest.$ac_ext >&5
  5603. fi
  5604. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5605. else
  5606. cat >conftest.$ac_ext <<_ACEOF
  5607. /* confdefs.h. */
  5608. _ACEOF
  5609. cat confdefs.h >>conftest.$ac_ext
  5610. cat >>conftest.$ac_ext <<_ACEOF
  5611. /* end confdefs.h. */
  5612. int
  5613. main ()
  5614. {
  5615. /* Are we little or big endian? From Harbison&Steele. */
  5616. union
  5617. {
  5618. long l;
  5619. char c[sizeof (long)];
  5620. } u;
  5621. u.l = 1;
  5622. exit (u.c[sizeof (long) - 1] == 1);
  5623. }
  5624. _ACEOF
  5625. rm -f conftest$ac_exeext
  5626. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5627. (eval $ac_link) 2>&5
  5628. ac_status=$?
  5629. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5630. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5631. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5632. (eval $ac_try) 2>&5
  5633. ac_status=$?
  5634. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5635. (exit $ac_status); }; }; then
  5636. ac_cv_c_bigendian=no
  5637. else
  5638. echo "$as_me: program exited with status $ac_status" >&5
  5639. echo "$as_me: failed program was:" >&5
  5640. sed 's/^/| /' conftest.$ac_ext >&5
  5641. ( exit $ac_status )
  5642. ac_cv_c_bigendian=yes
  5643. fi
  5644. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5645. fi
  5646. fi
  5647. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5648. fi
  5649. echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  5650. echo "${ECHO_T}$ac_cv_c_bigendian" >&6
  5651. case $ac_cv_c_bigendian in
  5652. yes)
  5653. cat >>confdefs.h <<\_ACEOF
  5654. #define WORDS_BIGENDIAN 1
  5655. _ACEOF
  5656. ;;
  5657. no)
  5658. ;;
  5659. *)
  5660. { { echo "$as_me:$LINENO: error: unknown endianness
  5661. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  5662. echo "$as_me: error: unknown endianness
  5663. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  5664. { (exit 1); exit 1; }; } ;;
  5665. esac
  5666. #AC_C_INLINE
  5667. echo "$as_me:$LINENO: checking whether char is unsigned" >&5
  5668. echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
  5669. if test "${ac_cv_c_char_unsigned+set}" = set; then
  5670. echo $ECHO_N "(cached) $ECHO_C" >&6
  5671. else
  5672. cat >conftest.$ac_ext <<_ACEOF
  5673. /* confdefs.h. */
  5674. _ACEOF
  5675. cat confdefs.h >>conftest.$ac_ext
  5676. cat >>conftest.$ac_ext <<_ACEOF
  5677. /* end confdefs.h. */
  5678. $ac_includes_default
  5679. int
  5680. main ()
  5681. {
  5682. static int test_array [1 - 2 * !(((char) -1) < 0)];
  5683. test_array [0] = 0
  5684. ;
  5685. return 0;
  5686. }
  5687. _ACEOF
  5688. rm -f conftest.$ac_objext
  5689. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5690. (eval $ac_compile) 2>conftest.er1
  5691. ac_status=$?
  5692. grep -v '^ *+' conftest.er1 >conftest.err
  5693. rm -f conftest.er1
  5694. cat conftest.err >&5
  5695. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5696. (exit $ac_status); } &&
  5697. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5698. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5699. (eval $ac_try) 2>&5
  5700. ac_status=$?
  5701. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5702. (exit $ac_status); }; } &&
  5703. { ac_try='test -s conftest.$ac_objext'
  5704. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5705. (eval $ac_try) 2>&5
  5706. ac_status=$?
  5707. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5708. (exit $ac_status); }; }; then
  5709. ac_cv_c_char_unsigned=no
  5710. else
  5711. echo "$as_me: failed program was:" >&5
  5712. sed 's/^/| /' conftest.$ac_ext >&5
  5713. ac_cv_c_char_unsigned=yes
  5714. fi
  5715. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5716. fi
  5717. echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
  5718. echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
  5719. if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
  5720. cat >>confdefs.h <<\_ACEOF
  5721. #define __CHAR_UNSIGNED__ 1
  5722. _ACEOF
  5723. fi
  5724. #AC_C_STRINGIZE
  5725. #AC_C_PROTOTYPES
  5726. #checkpoint
  5727. cat >confcache <<\_ACEOF
  5728. # This file is a shell script that caches the results of configure
  5729. # tests run on this system so they can be shared between configure
  5730. # scripts and configure runs, see configure's option --config-cache.
  5731. # It is not useful on other systems. If it contains results you don't
  5732. # want to keep, you may remove or edit it.
  5733. #
  5734. # config.status only pays attention to the cache file if you give it
  5735. # the --recheck option to rerun configure.
  5736. #
  5737. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5738. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5739. # following values.
  5740. _ACEOF
  5741. # The following way of writing the cache mishandles newlines in values,
  5742. # but we know of no workaround that is simple, portable, and efficient.
  5743. # So, don't put newlines in cache variables' values.
  5744. # Ultrix sh set writes to stderr and can't be redirected directly,
  5745. # and sets the high bit in the cache file unless we assign to the vars.
  5746. {
  5747. (set) 2>&1 |
  5748. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  5749. *ac_space=\ *)
  5750. # `set' does not quote correctly, so add quotes (double-quote
  5751. # substitution turns \\\\ into \\, and sed turns \\ into \).
  5752. sed -n \
  5753. "s/'/'\\\\''/g;
  5754. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5755. ;;
  5756. *)
  5757. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5758. sed -n \
  5759. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  5760. ;;
  5761. esac;
  5762. } |
  5763. sed '
  5764. t clear
  5765. : clear
  5766. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5767. t end
  5768. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5769. : end' >>confcache
  5770. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  5771. if test -w $cache_file; then
  5772. test "x$cache_file" != "x/dev/null"
  5773. cat confcache >$cache_file
  5774. else
  5775. echo "not updating unwritable cache $cache_file"
  5776. fi
  5777. fi
  5778. rm -f confcache
  5779. echo "$as_me:$LINENO: checking for int" >&5
  5780. echo $ECHO_N "checking for int... $ECHO_C" >&6
  5781. if test "${ac_cv_type_int+set}" = set; then
  5782. echo $ECHO_N "(cached) $ECHO_C" >&6
  5783. else
  5784. cat >conftest.$ac_ext <<_ACEOF
  5785. /* confdefs.h. */
  5786. _ACEOF
  5787. cat confdefs.h >>conftest.$ac_ext
  5788. cat >>conftest.$ac_ext <<_ACEOF
  5789. /* end confdefs.h. */
  5790. $ac_includes_default
  5791. int
  5792. main ()
  5793. {
  5794. if ((int *) 0)
  5795. return 0;
  5796. if (sizeof (int))
  5797. return 0;
  5798. ;
  5799. return 0;
  5800. }
  5801. _ACEOF
  5802. rm -f conftest.$ac_objext
  5803. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5804. (eval $ac_compile) 2>conftest.er1
  5805. ac_status=$?
  5806. grep -v '^ *+' conftest.er1 >conftest.err
  5807. rm -f conftest.er1
  5808. cat conftest.err >&5
  5809. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5810. (exit $ac_status); } &&
  5811. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5812. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5813. (eval $ac_try) 2>&5
  5814. ac_status=$?
  5815. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5816. (exit $ac_status); }; } &&
  5817. { ac_try='test -s conftest.$ac_objext'
  5818. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5819. (eval $ac_try) 2>&5
  5820. ac_status=$?
  5821. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5822. (exit $ac_status); }; }; then
  5823. ac_cv_type_int=yes
  5824. else
  5825. echo "$as_me: failed program was:" >&5
  5826. sed 's/^/| /' conftest.$ac_ext >&5
  5827. ac_cv_type_int=no
  5828. fi
  5829. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5830. fi
  5831. echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
  5832. echo "${ECHO_T}$ac_cv_type_int" >&6
  5833. echo "$as_me:$LINENO: checking size of int" >&5
  5834. echo $ECHO_N "checking size of int... $ECHO_C" >&6
  5835. if test "${ac_cv_sizeof_int+set}" = set; then
  5836. echo $ECHO_N "(cached) $ECHO_C" >&6
  5837. else
  5838. if test "$ac_cv_type_int" = yes; then
  5839. # The cast to unsigned long works around a bug in the HP C Compiler
  5840. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  5841. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  5842. # This bug is HP SR number 8606223364.
  5843. if test "$cross_compiling" = yes; then
  5844. # Depending upon the size, compute the lo and hi bounds.
  5845. cat >conftest.$ac_ext <<_ACEOF
  5846. /* confdefs.h. */
  5847. _ACEOF
  5848. cat confdefs.h >>conftest.$ac_ext
  5849. cat >>conftest.$ac_ext <<_ACEOF
  5850. /* end confdefs.h. */
  5851. $ac_includes_default
  5852. int
  5853. main ()
  5854. {
  5855. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
  5856. test_array [0] = 0
  5857. ;
  5858. return 0;
  5859. }
  5860. _ACEOF
  5861. rm -f conftest.$ac_objext
  5862. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5863. (eval $ac_compile) 2>conftest.er1
  5864. ac_status=$?
  5865. grep -v '^ *+' conftest.er1 >conftest.err
  5866. rm -f conftest.er1
  5867. cat conftest.err >&5
  5868. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5869. (exit $ac_status); } &&
  5870. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5871. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5872. (eval $ac_try) 2>&5
  5873. ac_status=$?
  5874. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5875. (exit $ac_status); }; } &&
  5876. { ac_try='test -s conftest.$ac_objext'
  5877. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5878. (eval $ac_try) 2>&5
  5879. ac_status=$?
  5880. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5881. (exit $ac_status); }; }; then
  5882. ac_lo=0 ac_mid=0
  5883. while :; do
  5884. cat >conftest.$ac_ext <<_ACEOF
  5885. /* confdefs.h. */
  5886. _ACEOF
  5887. cat confdefs.h >>conftest.$ac_ext
  5888. cat >>conftest.$ac_ext <<_ACEOF
  5889. /* end confdefs.h. */
  5890. $ac_includes_default
  5891. int
  5892. main ()
  5893. {
  5894. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  5895. test_array [0] = 0
  5896. ;
  5897. return 0;
  5898. }
  5899. _ACEOF
  5900. rm -f conftest.$ac_objext
  5901. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5902. (eval $ac_compile) 2>conftest.er1
  5903. ac_status=$?
  5904. grep -v '^ *+' conftest.er1 >conftest.err
  5905. rm -f conftest.er1
  5906. cat conftest.err >&5
  5907. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5908. (exit $ac_status); } &&
  5909. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5910. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5911. (eval $ac_try) 2>&5
  5912. ac_status=$?
  5913. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5914. (exit $ac_status); }; } &&
  5915. { ac_try='test -s conftest.$ac_objext'
  5916. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5917. (eval $ac_try) 2>&5
  5918. ac_status=$?
  5919. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5920. (exit $ac_status); }; }; then
  5921. ac_hi=$ac_mid; break
  5922. else
  5923. echo "$as_me: failed program was:" >&5
  5924. sed 's/^/| /' conftest.$ac_ext >&5
  5925. ac_lo=`expr $ac_mid + 1`
  5926. if test $ac_lo -le $ac_mid; then
  5927. ac_lo= ac_hi=
  5928. break
  5929. fi
  5930. ac_mid=`expr 2 '*' $ac_mid + 1`
  5931. fi
  5932. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5933. done
  5934. else
  5935. echo "$as_me: failed program was:" >&5
  5936. sed 's/^/| /' conftest.$ac_ext >&5
  5937. cat >conftest.$ac_ext <<_ACEOF
  5938. /* confdefs.h. */
  5939. _ACEOF
  5940. cat confdefs.h >>conftest.$ac_ext
  5941. cat >>conftest.$ac_ext <<_ACEOF
  5942. /* end confdefs.h. */
  5943. $ac_includes_default
  5944. int
  5945. main ()
  5946. {
  5947. static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
  5948. test_array [0] = 0
  5949. ;
  5950. return 0;
  5951. }
  5952. _ACEOF
  5953. rm -f conftest.$ac_objext
  5954. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5955. (eval $ac_compile) 2>conftest.er1
  5956. ac_status=$?
  5957. grep -v '^ *+' conftest.er1 >conftest.err
  5958. rm -f conftest.er1
  5959. cat conftest.err >&5
  5960. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5961. (exit $ac_status); } &&
  5962. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5963. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5964. (eval $ac_try) 2>&5
  5965. ac_status=$?
  5966. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5967. (exit $ac_status); }; } &&
  5968. { ac_try='test -s conftest.$ac_objext'
  5969. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5970. (eval $ac_try) 2>&5
  5971. ac_status=$?
  5972. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5973. (exit $ac_status); }; }; then
  5974. ac_hi=-1 ac_mid=-1
  5975. while :; do
  5976. cat >conftest.$ac_ext <<_ACEOF
  5977. /* confdefs.h. */
  5978. _ACEOF
  5979. cat confdefs.h >>conftest.$ac_ext
  5980. cat >>conftest.$ac_ext <<_ACEOF
  5981. /* end confdefs.h. */
  5982. $ac_includes_default
  5983. int
  5984. main ()
  5985. {
  5986. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
  5987. test_array [0] = 0
  5988. ;
  5989. return 0;
  5990. }
  5991. _ACEOF
  5992. rm -f conftest.$ac_objext
  5993. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5994. (eval $ac_compile) 2>conftest.er1
  5995. ac_status=$?
  5996. grep -v '^ *+' conftest.er1 >conftest.err
  5997. rm -f conftest.er1
  5998. cat conftest.err >&5
  5999. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6000. (exit $ac_status); } &&
  6001. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6002. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6003. (eval $ac_try) 2>&5
  6004. ac_status=$?
  6005. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6006. (exit $ac_status); }; } &&
  6007. { ac_try='test -s conftest.$ac_objext'
  6008. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6009. (eval $ac_try) 2>&5
  6010. ac_status=$?
  6011. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6012. (exit $ac_status); }; }; then
  6013. ac_lo=$ac_mid; break
  6014. else
  6015. echo "$as_me: failed program was:" >&5
  6016. sed 's/^/| /' conftest.$ac_ext >&5
  6017. ac_hi=`expr '(' $ac_mid ')' - 1`
  6018. if test $ac_mid -le $ac_hi; then
  6019. ac_lo= ac_hi=
  6020. break
  6021. fi
  6022. ac_mid=`expr 2 '*' $ac_mid`
  6023. fi
  6024. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6025. done
  6026. else
  6027. echo "$as_me: failed program was:" >&5
  6028. sed 's/^/| /' conftest.$ac_ext >&5
  6029. ac_lo= ac_hi=
  6030. fi
  6031. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6032. fi
  6033. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6034. # Binary search between lo and hi bounds.
  6035. while test "x$ac_lo" != "x$ac_hi"; do
  6036. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6037. cat >conftest.$ac_ext <<_ACEOF
  6038. /* confdefs.h. */
  6039. _ACEOF
  6040. cat confdefs.h >>conftest.$ac_ext
  6041. cat >>conftest.$ac_ext <<_ACEOF
  6042. /* end confdefs.h. */
  6043. $ac_includes_default
  6044. int
  6045. main ()
  6046. {
  6047. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  6048. test_array [0] = 0
  6049. ;
  6050. return 0;
  6051. }
  6052. _ACEOF
  6053. rm -f conftest.$ac_objext
  6054. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6055. (eval $ac_compile) 2>conftest.er1
  6056. ac_status=$?
  6057. grep -v '^ *+' conftest.er1 >conftest.err
  6058. rm -f conftest.er1
  6059. cat conftest.err >&5
  6060. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6061. (exit $ac_status); } &&
  6062. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6063. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6064. (eval $ac_try) 2>&5
  6065. ac_status=$?
  6066. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6067. (exit $ac_status); }; } &&
  6068. { ac_try='test -s conftest.$ac_objext'
  6069. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6070. (eval $ac_try) 2>&5
  6071. ac_status=$?
  6072. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6073. (exit $ac_status); }; }; then
  6074. ac_hi=$ac_mid
  6075. else
  6076. echo "$as_me: failed program was:" >&5
  6077. sed 's/^/| /' conftest.$ac_ext >&5
  6078. ac_lo=`expr '(' $ac_mid ')' + 1`
  6079. fi
  6080. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6081. done
  6082. case $ac_lo in
  6083. ?*) ac_cv_sizeof_int=$ac_lo;;
  6084. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  6085. See \`config.log' for more details." >&5
  6086. echo "$as_me: error: cannot compute sizeof (int), 77
  6087. See \`config.log' for more details." >&2;}
  6088. { (exit 1); exit 1; }; } ;;
  6089. esac
  6090. else
  6091. if test "$cross_compiling" = yes; then
  6092. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  6093. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  6094. { (exit 1); exit 1; }; }
  6095. else
  6096. cat >conftest.$ac_ext <<_ACEOF
  6097. /* confdefs.h. */
  6098. _ACEOF
  6099. cat confdefs.h >>conftest.$ac_ext
  6100. cat >>conftest.$ac_ext <<_ACEOF
  6101. /* end confdefs.h. */
  6102. $ac_includes_default
  6103. long longval () { return (long) (sizeof (int)); }
  6104. unsigned long ulongval () { return (long) (sizeof (int)); }
  6105. #include <stdio.h>
  6106. #include <stdlib.h>
  6107. int
  6108. main ()
  6109. {
  6110. FILE *f = fopen ("conftest.val", "w");
  6111. if (! f)
  6112. exit (1);
  6113. if (((long) (sizeof (int))) < 0)
  6114. {
  6115. long i = longval ();
  6116. if (i != ((long) (sizeof (int))))
  6117. exit (1);
  6118. fprintf (f, "%ld\n", i);
  6119. }
  6120. else
  6121. {
  6122. unsigned long i = ulongval ();
  6123. if (i != ((long) (sizeof (int))))
  6124. exit (1);
  6125. fprintf (f, "%lu\n", i);
  6126. }
  6127. exit (ferror (f) || fclose (f) != 0);
  6128. ;
  6129. return 0;
  6130. }
  6131. _ACEOF
  6132. rm -f conftest$ac_exeext
  6133. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6134. (eval $ac_link) 2>&5
  6135. ac_status=$?
  6136. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6137. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6138. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6139. (eval $ac_try) 2>&5
  6140. ac_status=$?
  6141. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6142. (exit $ac_status); }; }; then
  6143. ac_cv_sizeof_int=`cat conftest.val`
  6144. else
  6145. echo "$as_me: program exited with status $ac_status" >&5
  6146. echo "$as_me: failed program was:" >&5
  6147. sed 's/^/| /' conftest.$ac_ext >&5
  6148. ( exit $ac_status )
  6149. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  6150. See \`config.log' for more details." >&5
  6151. echo "$as_me: error: cannot compute sizeof (int), 77
  6152. See \`config.log' for more details." >&2;}
  6153. { (exit 1); exit 1; }; }
  6154. fi
  6155. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6156. fi
  6157. fi
  6158. rm -f conftest.val
  6159. else
  6160. ac_cv_sizeof_int=0
  6161. fi
  6162. fi
  6163. echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
  6164. echo "${ECHO_T}$ac_cv_sizeof_int" >&6
  6165. cat >>confdefs.h <<_ACEOF
  6166. #define SIZEOF_INT $ac_cv_sizeof_int
  6167. _ACEOF
  6168. echo "$as_me:$LINENO: checking for short" >&5
  6169. echo $ECHO_N "checking for short... $ECHO_C" >&6
  6170. if test "${ac_cv_type_short+set}" = set; then
  6171. echo $ECHO_N "(cached) $ECHO_C" >&6
  6172. else
  6173. cat >conftest.$ac_ext <<_ACEOF
  6174. /* confdefs.h. */
  6175. _ACEOF
  6176. cat confdefs.h >>conftest.$ac_ext
  6177. cat >>conftest.$ac_ext <<_ACEOF
  6178. /* end confdefs.h. */
  6179. $ac_includes_default
  6180. int
  6181. main ()
  6182. {
  6183. if ((short *) 0)
  6184. return 0;
  6185. if (sizeof (short))
  6186. return 0;
  6187. ;
  6188. return 0;
  6189. }
  6190. _ACEOF
  6191. rm -f conftest.$ac_objext
  6192. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6193. (eval $ac_compile) 2>conftest.er1
  6194. ac_status=$?
  6195. grep -v '^ *+' conftest.er1 >conftest.err
  6196. rm -f conftest.er1
  6197. cat conftest.err >&5
  6198. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6199. (exit $ac_status); } &&
  6200. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6201. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6202. (eval $ac_try) 2>&5
  6203. ac_status=$?
  6204. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6205. (exit $ac_status); }; } &&
  6206. { ac_try='test -s conftest.$ac_objext'
  6207. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6208. (eval $ac_try) 2>&5
  6209. ac_status=$?
  6210. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6211. (exit $ac_status); }; }; then
  6212. ac_cv_type_short=yes
  6213. else
  6214. echo "$as_me: failed program was:" >&5
  6215. sed 's/^/| /' conftest.$ac_ext >&5
  6216. ac_cv_type_short=no
  6217. fi
  6218. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6219. fi
  6220. echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
  6221. echo "${ECHO_T}$ac_cv_type_short" >&6
  6222. echo "$as_me:$LINENO: checking size of short" >&5
  6223. echo $ECHO_N "checking size of short... $ECHO_C" >&6
  6224. if test "${ac_cv_sizeof_short+set}" = set; then
  6225. echo $ECHO_N "(cached) $ECHO_C" >&6
  6226. else
  6227. if test "$ac_cv_type_short" = yes; then
  6228. # The cast to unsigned long works around a bug in the HP C Compiler
  6229. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6230. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6231. # This bug is HP SR number 8606223364.
  6232. if test "$cross_compiling" = yes; then
  6233. # Depending upon the size, compute the lo and hi bounds.
  6234. cat >conftest.$ac_ext <<_ACEOF
  6235. /* confdefs.h. */
  6236. _ACEOF
  6237. cat confdefs.h >>conftest.$ac_ext
  6238. cat >>conftest.$ac_ext <<_ACEOF
  6239. /* end confdefs.h. */
  6240. $ac_includes_default
  6241. int
  6242. main ()
  6243. {
  6244. static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
  6245. test_array [0] = 0
  6246. ;
  6247. return 0;
  6248. }
  6249. _ACEOF
  6250. rm -f conftest.$ac_objext
  6251. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6252. (eval $ac_compile) 2>conftest.er1
  6253. ac_status=$?
  6254. grep -v '^ *+' conftest.er1 >conftest.err
  6255. rm -f conftest.er1
  6256. cat conftest.err >&5
  6257. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6258. (exit $ac_status); } &&
  6259. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6260. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6261. (eval $ac_try) 2>&5
  6262. ac_status=$?
  6263. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6264. (exit $ac_status); }; } &&
  6265. { ac_try='test -s conftest.$ac_objext'
  6266. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6267. (eval $ac_try) 2>&5
  6268. ac_status=$?
  6269. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6270. (exit $ac_status); }; }; then
  6271. ac_lo=0 ac_mid=0
  6272. while :; do
  6273. cat >conftest.$ac_ext <<_ACEOF
  6274. /* confdefs.h. */
  6275. _ACEOF
  6276. cat confdefs.h >>conftest.$ac_ext
  6277. cat >>conftest.$ac_ext <<_ACEOF
  6278. /* end confdefs.h. */
  6279. $ac_includes_default
  6280. int
  6281. main ()
  6282. {
  6283. static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
  6284. test_array [0] = 0
  6285. ;
  6286. return 0;
  6287. }
  6288. _ACEOF
  6289. rm -f conftest.$ac_objext
  6290. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6291. (eval $ac_compile) 2>conftest.er1
  6292. ac_status=$?
  6293. grep -v '^ *+' conftest.er1 >conftest.err
  6294. rm -f conftest.er1
  6295. cat conftest.err >&5
  6296. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6297. (exit $ac_status); } &&
  6298. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6299. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6300. (eval $ac_try) 2>&5
  6301. ac_status=$?
  6302. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6303. (exit $ac_status); }; } &&
  6304. { ac_try='test -s conftest.$ac_objext'
  6305. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6306. (eval $ac_try) 2>&5
  6307. ac_status=$?
  6308. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6309. (exit $ac_status); }; }; then
  6310. ac_hi=$ac_mid; break
  6311. else
  6312. echo "$as_me: failed program was:" >&5
  6313. sed 's/^/| /' conftest.$ac_ext >&5
  6314. ac_lo=`expr $ac_mid + 1`
  6315. if test $ac_lo -le $ac_mid; then
  6316. ac_lo= ac_hi=
  6317. break
  6318. fi
  6319. ac_mid=`expr 2 '*' $ac_mid + 1`
  6320. fi
  6321. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6322. done
  6323. else
  6324. echo "$as_me: failed program was:" >&5
  6325. sed 's/^/| /' conftest.$ac_ext >&5
  6326. cat >conftest.$ac_ext <<_ACEOF
  6327. /* confdefs.h. */
  6328. _ACEOF
  6329. cat confdefs.h >>conftest.$ac_ext
  6330. cat >>conftest.$ac_ext <<_ACEOF
  6331. /* end confdefs.h. */
  6332. $ac_includes_default
  6333. int
  6334. main ()
  6335. {
  6336. static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
  6337. test_array [0] = 0
  6338. ;
  6339. return 0;
  6340. }
  6341. _ACEOF
  6342. rm -f conftest.$ac_objext
  6343. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6344. (eval $ac_compile) 2>conftest.er1
  6345. ac_status=$?
  6346. grep -v '^ *+' conftest.er1 >conftest.err
  6347. rm -f conftest.er1
  6348. cat conftest.err >&5
  6349. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6350. (exit $ac_status); } &&
  6351. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6352. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6353. (eval $ac_try) 2>&5
  6354. ac_status=$?
  6355. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6356. (exit $ac_status); }; } &&
  6357. { ac_try='test -s conftest.$ac_objext'
  6358. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6359. (eval $ac_try) 2>&5
  6360. ac_status=$?
  6361. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6362. (exit $ac_status); }; }; then
  6363. ac_hi=-1 ac_mid=-1
  6364. while :; do
  6365. cat >conftest.$ac_ext <<_ACEOF
  6366. /* confdefs.h. */
  6367. _ACEOF
  6368. cat confdefs.h >>conftest.$ac_ext
  6369. cat >>conftest.$ac_ext <<_ACEOF
  6370. /* end confdefs.h. */
  6371. $ac_includes_default
  6372. int
  6373. main ()
  6374. {
  6375. static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
  6376. test_array [0] = 0
  6377. ;
  6378. return 0;
  6379. }
  6380. _ACEOF
  6381. rm -f conftest.$ac_objext
  6382. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6383. (eval $ac_compile) 2>conftest.er1
  6384. ac_status=$?
  6385. grep -v '^ *+' conftest.er1 >conftest.err
  6386. rm -f conftest.er1
  6387. cat conftest.err >&5
  6388. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6389. (exit $ac_status); } &&
  6390. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6391. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6392. (eval $ac_try) 2>&5
  6393. ac_status=$?
  6394. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6395. (exit $ac_status); }; } &&
  6396. { ac_try='test -s conftest.$ac_objext'
  6397. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6398. (eval $ac_try) 2>&5
  6399. ac_status=$?
  6400. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6401. (exit $ac_status); }; }; then
  6402. ac_lo=$ac_mid; break
  6403. else
  6404. echo "$as_me: failed program was:" >&5
  6405. sed 's/^/| /' conftest.$ac_ext >&5
  6406. ac_hi=`expr '(' $ac_mid ')' - 1`
  6407. if test $ac_mid -le $ac_hi; then
  6408. ac_lo= ac_hi=
  6409. break
  6410. fi
  6411. ac_mid=`expr 2 '*' $ac_mid`
  6412. fi
  6413. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6414. done
  6415. else
  6416. echo "$as_me: failed program was:" >&5
  6417. sed 's/^/| /' conftest.$ac_ext >&5
  6418. ac_lo= ac_hi=
  6419. fi
  6420. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6421. fi
  6422. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6423. # Binary search between lo and hi bounds.
  6424. while test "x$ac_lo" != "x$ac_hi"; do
  6425. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6426. cat >conftest.$ac_ext <<_ACEOF
  6427. /* confdefs.h. */
  6428. _ACEOF
  6429. cat confdefs.h >>conftest.$ac_ext
  6430. cat >>conftest.$ac_ext <<_ACEOF
  6431. /* end confdefs.h. */
  6432. $ac_includes_default
  6433. int
  6434. main ()
  6435. {
  6436. static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
  6437. test_array [0] = 0
  6438. ;
  6439. return 0;
  6440. }
  6441. _ACEOF
  6442. rm -f conftest.$ac_objext
  6443. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6444. (eval $ac_compile) 2>conftest.er1
  6445. ac_status=$?
  6446. grep -v '^ *+' conftest.er1 >conftest.err
  6447. rm -f conftest.er1
  6448. cat conftest.err >&5
  6449. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6450. (exit $ac_status); } &&
  6451. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6452. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6453. (eval $ac_try) 2>&5
  6454. ac_status=$?
  6455. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6456. (exit $ac_status); }; } &&
  6457. { ac_try='test -s conftest.$ac_objext'
  6458. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6459. (eval $ac_try) 2>&5
  6460. ac_status=$?
  6461. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6462. (exit $ac_status); }; }; then
  6463. ac_hi=$ac_mid
  6464. else
  6465. echo "$as_me: failed program was:" >&5
  6466. sed 's/^/| /' conftest.$ac_ext >&5
  6467. ac_lo=`expr '(' $ac_mid ')' + 1`
  6468. fi
  6469. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6470. done
  6471. case $ac_lo in
  6472. ?*) ac_cv_sizeof_short=$ac_lo;;
  6473. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
  6474. See \`config.log' for more details." >&5
  6475. echo "$as_me: error: cannot compute sizeof (short), 77
  6476. See \`config.log' for more details." >&2;}
  6477. { (exit 1); exit 1; }; } ;;
  6478. esac
  6479. else
  6480. if test "$cross_compiling" = yes; then
  6481. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  6482. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  6483. { (exit 1); exit 1; }; }
  6484. else
  6485. cat >conftest.$ac_ext <<_ACEOF
  6486. /* confdefs.h. */
  6487. _ACEOF
  6488. cat confdefs.h >>conftest.$ac_ext
  6489. cat >>conftest.$ac_ext <<_ACEOF
  6490. /* end confdefs.h. */
  6491. $ac_includes_default
  6492. long longval () { return (long) (sizeof (short)); }
  6493. unsigned long ulongval () { return (long) (sizeof (short)); }
  6494. #include <stdio.h>
  6495. #include <stdlib.h>
  6496. int
  6497. main ()
  6498. {
  6499. FILE *f = fopen ("conftest.val", "w");
  6500. if (! f)
  6501. exit (1);
  6502. if (((long) (sizeof (short))) < 0)
  6503. {
  6504. long i = longval ();
  6505. if (i != ((long) (sizeof (short))))
  6506. exit (1);
  6507. fprintf (f, "%ld\n", i);
  6508. }
  6509. else
  6510. {
  6511. unsigned long i = ulongval ();
  6512. if (i != ((long) (sizeof (short))))
  6513. exit (1);
  6514. fprintf (f, "%lu\n", i);
  6515. }
  6516. exit (ferror (f) || fclose (f) != 0);
  6517. ;
  6518. return 0;
  6519. }
  6520. _ACEOF
  6521. rm -f conftest$ac_exeext
  6522. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6523. (eval $ac_link) 2>&5
  6524. ac_status=$?
  6525. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6526. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6527. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6528. (eval $ac_try) 2>&5
  6529. ac_status=$?
  6530. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6531. (exit $ac_status); }; }; then
  6532. ac_cv_sizeof_short=`cat conftest.val`
  6533. else
  6534. echo "$as_me: program exited with status $ac_status" >&5
  6535. echo "$as_me: failed program was:" >&5
  6536. sed 's/^/| /' conftest.$ac_ext >&5
  6537. ( exit $ac_status )
  6538. { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
  6539. See \`config.log' for more details." >&5
  6540. echo "$as_me: error: cannot compute sizeof (short), 77
  6541. See \`config.log' for more details." >&2;}
  6542. { (exit 1); exit 1; }; }
  6543. fi
  6544. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6545. fi
  6546. fi
  6547. rm -f conftest.val
  6548. else
  6549. ac_cv_sizeof_short=0
  6550. fi
  6551. fi
  6552. echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
  6553. echo "${ECHO_T}$ac_cv_sizeof_short" >&6
  6554. cat >>confdefs.h <<_ACEOF
  6555. #define SIZEOF_SHORT $ac_cv_sizeof_short
  6556. _ACEOF
  6557. echo "$as_me:$LINENO: checking for long" >&5
  6558. echo $ECHO_N "checking for long... $ECHO_C" >&6
  6559. if test "${ac_cv_type_long+set}" = set; then
  6560. echo $ECHO_N "(cached) $ECHO_C" >&6
  6561. else
  6562. cat >conftest.$ac_ext <<_ACEOF
  6563. /* confdefs.h. */
  6564. _ACEOF
  6565. cat confdefs.h >>conftest.$ac_ext
  6566. cat >>conftest.$ac_ext <<_ACEOF
  6567. /* end confdefs.h. */
  6568. $ac_includes_default
  6569. int
  6570. main ()
  6571. {
  6572. if ((long *) 0)
  6573. return 0;
  6574. if (sizeof (long))
  6575. return 0;
  6576. ;
  6577. return 0;
  6578. }
  6579. _ACEOF
  6580. rm -f conftest.$ac_objext
  6581. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6582. (eval $ac_compile) 2>conftest.er1
  6583. ac_status=$?
  6584. grep -v '^ *+' conftest.er1 >conftest.err
  6585. rm -f conftest.er1
  6586. cat conftest.err >&5
  6587. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6588. (exit $ac_status); } &&
  6589. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6590. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6591. (eval $ac_try) 2>&5
  6592. ac_status=$?
  6593. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6594. (exit $ac_status); }; } &&
  6595. { ac_try='test -s conftest.$ac_objext'
  6596. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6597. (eval $ac_try) 2>&5
  6598. ac_status=$?
  6599. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6600. (exit $ac_status); }; }; then
  6601. ac_cv_type_long=yes
  6602. else
  6603. echo "$as_me: failed program was:" >&5
  6604. sed 's/^/| /' conftest.$ac_ext >&5
  6605. ac_cv_type_long=no
  6606. fi
  6607. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6608. fi
  6609. echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
  6610. echo "${ECHO_T}$ac_cv_type_long" >&6
  6611. echo "$as_me:$LINENO: checking size of long" >&5
  6612. echo $ECHO_N "checking size of long... $ECHO_C" >&6
  6613. if test "${ac_cv_sizeof_long+set}" = set; then
  6614. echo $ECHO_N "(cached) $ECHO_C" >&6
  6615. else
  6616. if test "$ac_cv_type_long" = yes; then
  6617. # The cast to unsigned long works around a bug in the HP C Compiler
  6618. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6619. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6620. # This bug is HP SR number 8606223364.
  6621. if test "$cross_compiling" = yes; then
  6622. # Depending upon the size, compute the lo and hi bounds.
  6623. cat >conftest.$ac_ext <<_ACEOF
  6624. /* confdefs.h. */
  6625. _ACEOF
  6626. cat confdefs.h >>conftest.$ac_ext
  6627. cat >>conftest.$ac_ext <<_ACEOF
  6628. /* end confdefs.h. */
  6629. $ac_includes_default
  6630. int
  6631. main ()
  6632. {
  6633. static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
  6634. test_array [0] = 0
  6635. ;
  6636. return 0;
  6637. }
  6638. _ACEOF
  6639. rm -f conftest.$ac_objext
  6640. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6641. (eval $ac_compile) 2>conftest.er1
  6642. ac_status=$?
  6643. grep -v '^ *+' conftest.er1 >conftest.err
  6644. rm -f conftest.er1
  6645. cat conftest.err >&5
  6646. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6647. (exit $ac_status); } &&
  6648. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6649. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6650. (eval $ac_try) 2>&5
  6651. ac_status=$?
  6652. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6653. (exit $ac_status); }; } &&
  6654. { ac_try='test -s conftest.$ac_objext'
  6655. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6656. (eval $ac_try) 2>&5
  6657. ac_status=$?
  6658. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6659. (exit $ac_status); }; }; then
  6660. ac_lo=0 ac_mid=0
  6661. while :; do
  6662. cat >conftest.$ac_ext <<_ACEOF
  6663. /* confdefs.h. */
  6664. _ACEOF
  6665. cat confdefs.h >>conftest.$ac_ext
  6666. cat >>conftest.$ac_ext <<_ACEOF
  6667. /* end confdefs.h. */
  6668. $ac_includes_default
  6669. int
  6670. main ()
  6671. {
  6672. static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  6673. test_array [0] = 0
  6674. ;
  6675. return 0;
  6676. }
  6677. _ACEOF
  6678. rm -f conftest.$ac_objext
  6679. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6680. (eval $ac_compile) 2>conftest.er1
  6681. ac_status=$?
  6682. grep -v '^ *+' conftest.er1 >conftest.err
  6683. rm -f conftest.er1
  6684. cat conftest.err >&5
  6685. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6686. (exit $ac_status); } &&
  6687. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6688. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6689. (eval $ac_try) 2>&5
  6690. ac_status=$?
  6691. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6692. (exit $ac_status); }; } &&
  6693. { ac_try='test -s conftest.$ac_objext'
  6694. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6695. (eval $ac_try) 2>&5
  6696. ac_status=$?
  6697. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6698. (exit $ac_status); }; }; then
  6699. ac_hi=$ac_mid; break
  6700. else
  6701. echo "$as_me: failed program was:" >&5
  6702. sed 's/^/| /' conftest.$ac_ext >&5
  6703. ac_lo=`expr $ac_mid + 1`
  6704. if test $ac_lo -le $ac_mid; then
  6705. ac_lo= ac_hi=
  6706. break
  6707. fi
  6708. ac_mid=`expr 2 '*' $ac_mid + 1`
  6709. fi
  6710. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6711. done
  6712. else
  6713. echo "$as_me: failed program was:" >&5
  6714. sed 's/^/| /' conftest.$ac_ext >&5
  6715. cat >conftest.$ac_ext <<_ACEOF
  6716. /* confdefs.h. */
  6717. _ACEOF
  6718. cat confdefs.h >>conftest.$ac_ext
  6719. cat >>conftest.$ac_ext <<_ACEOF
  6720. /* end confdefs.h. */
  6721. $ac_includes_default
  6722. int
  6723. main ()
  6724. {
  6725. static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
  6726. test_array [0] = 0
  6727. ;
  6728. return 0;
  6729. }
  6730. _ACEOF
  6731. rm -f conftest.$ac_objext
  6732. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6733. (eval $ac_compile) 2>conftest.er1
  6734. ac_status=$?
  6735. grep -v '^ *+' conftest.er1 >conftest.err
  6736. rm -f conftest.er1
  6737. cat conftest.err >&5
  6738. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6739. (exit $ac_status); } &&
  6740. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6741. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6742. (eval $ac_try) 2>&5
  6743. ac_status=$?
  6744. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6745. (exit $ac_status); }; } &&
  6746. { ac_try='test -s conftest.$ac_objext'
  6747. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6748. (eval $ac_try) 2>&5
  6749. ac_status=$?
  6750. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6751. (exit $ac_status); }; }; then
  6752. ac_hi=-1 ac_mid=-1
  6753. while :; do
  6754. cat >conftest.$ac_ext <<_ACEOF
  6755. /* confdefs.h. */
  6756. _ACEOF
  6757. cat confdefs.h >>conftest.$ac_ext
  6758. cat >>conftest.$ac_ext <<_ACEOF
  6759. /* end confdefs.h. */
  6760. $ac_includes_default
  6761. int
  6762. main ()
  6763. {
  6764. static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
  6765. test_array [0] = 0
  6766. ;
  6767. return 0;
  6768. }
  6769. _ACEOF
  6770. rm -f conftest.$ac_objext
  6771. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6772. (eval $ac_compile) 2>conftest.er1
  6773. ac_status=$?
  6774. grep -v '^ *+' conftest.er1 >conftest.err
  6775. rm -f conftest.er1
  6776. cat conftest.err >&5
  6777. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6778. (exit $ac_status); } &&
  6779. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6780. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6781. (eval $ac_try) 2>&5
  6782. ac_status=$?
  6783. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6784. (exit $ac_status); }; } &&
  6785. { ac_try='test -s conftest.$ac_objext'
  6786. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6787. (eval $ac_try) 2>&5
  6788. ac_status=$?
  6789. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6790. (exit $ac_status); }; }; then
  6791. ac_lo=$ac_mid; break
  6792. else
  6793. echo "$as_me: failed program was:" >&5
  6794. sed 's/^/| /' conftest.$ac_ext >&5
  6795. ac_hi=`expr '(' $ac_mid ')' - 1`
  6796. if test $ac_mid -le $ac_hi; then
  6797. ac_lo= ac_hi=
  6798. break
  6799. fi
  6800. ac_mid=`expr 2 '*' $ac_mid`
  6801. fi
  6802. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6803. done
  6804. else
  6805. echo "$as_me: failed program was:" >&5
  6806. sed 's/^/| /' conftest.$ac_ext >&5
  6807. ac_lo= ac_hi=
  6808. fi
  6809. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6810. fi
  6811. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6812. # Binary search between lo and hi bounds.
  6813. while test "x$ac_lo" != "x$ac_hi"; do
  6814. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6815. cat >conftest.$ac_ext <<_ACEOF
  6816. /* confdefs.h. */
  6817. _ACEOF
  6818. cat confdefs.h >>conftest.$ac_ext
  6819. cat >>conftest.$ac_ext <<_ACEOF
  6820. /* end confdefs.h. */
  6821. $ac_includes_default
  6822. int
  6823. main ()
  6824. {
  6825. static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  6826. test_array [0] = 0
  6827. ;
  6828. return 0;
  6829. }
  6830. _ACEOF
  6831. rm -f conftest.$ac_objext
  6832. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6833. (eval $ac_compile) 2>conftest.er1
  6834. ac_status=$?
  6835. grep -v '^ *+' conftest.er1 >conftest.err
  6836. rm -f conftest.er1
  6837. cat conftest.err >&5
  6838. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6839. (exit $ac_status); } &&
  6840. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6841. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6842. (eval $ac_try) 2>&5
  6843. ac_status=$?
  6844. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6845. (exit $ac_status); }; } &&
  6846. { ac_try='test -s conftest.$ac_objext'
  6847. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6848. (eval $ac_try) 2>&5
  6849. ac_status=$?
  6850. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6851. (exit $ac_status); }; }; then
  6852. ac_hi=$ac_mid
  6853. else
  6854. echo "$as_me: failed program was:" >&5
  6855. sed 's/^/| /' conftest.$ac_ext >&5
  6856. ac_lo=`expr '(' $ac_mid ')' + 1`
  6857. fi
  6858. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6859. done
  6860. case $ac_lo in
  6861. ?*) ac_cv_sizeof_long=$ac_lo;;
  6862. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  6863. See \`config.log' for more details." >&5
  6864. echo "$as_me: error: cannot compute sizeof (long), 77
  6865. See \`config.log' for more details." >&2;}
  6866. { (exit 1); exit 1; }; } ;;
  6867. esac
  6868. else
  6869. if test "$cross_compiling" = yes; then
  6870. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  6871. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  6872. { (exit 1); exit 1; }; }
  6873. else
  6874. cat >conftest.$ac_ext <<_ACEOF
  6875. /* confdefs.h. */
  6876. _ACEOF
  6877. cat confdefs.h >>conftest.$ac_ext
  6878. cat >>conftest.$ac_ext <<_ACEOF
  6879. /* end confdefs.h. */
  6880. $ac_includes_default
  6881. long longval () { return (long) (sizeof (long)); }
  6882. unsigned long ulongval () { return (long) (sizeof (long)); }
  6883. #include <stdio.h>
  6884. #include <stdlib.h>
  6885. int
  6886. main ()
  6887. {
  6888. FILE *f = fopen ("conftest.val", "w");
  6889. if (! f)
  6890. exit (1);
  6891. if (((long) (sizeof (long))) < 0)
  6892. {
  6893. long i = longval ();
  6894. if (i != ((long) (sizeof (long))))
  6895. exit (1);
  6896. fprintf (f, "%ld\n", i);
  6897. }
  6898. else
  6899. {
  6900. unsigned long i = ulongval ();
  6901. if (i != ((long) (sizeof (long))))
  6902. exit (1);
  6903. fprintf (f, "%lu\n", i);
  6904. }
  6905. exit (ferror (f) || fclose (f) != 0);
  6906. ;
  6907. return 0;
  6908. }
  6909. _ACEOF
  6910. rm -f conftest$ac_exeext
  6911. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6912. (eval $ac_link) 2>&5
  6913. ac_status=$?
  6914. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6915. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6916. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6917. (eval $ac_try) 2>&5
  6918. ac_status=$?
  6919. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6920. (exit $ac_status); }; }; then
  6921. ac_cv_sizeof_long=`cat conftest.val`
  6922. else
  6923. echo "$as_me: program exited with status $ac_status" >&5
  6924. echo "$as_me: failed program was:" >&5
  6925. sed 's/^/| /' conftest.$ac_ext >&5
  6926. ( exit $ac_status )
  6927. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  6928. See \`config.log' for more details." >&5
  6929. echo "$as_me: error: cannot compute sizeof (long), 77
  6930. See \`config.log' for more details." >&2;}
  6931. { (exit 1); exit 1; }; }
  6932. fi
  6933. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6934. fi
  6935. fi
  6936. rm -f conftest.val
  6937. else
  6938. ac_cv_sizeof_long=0
  6939. fi
  6940. fi
  6941. echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  6942. echo "${ECHO_T}$ac_cv_sizeof_long" >&6
  6943. cat >>confdefs.h <<_ACEOF
  6944. #define SIZEOF_LONG $ac_cv_sizeof_long
  6945. _ACEOF
  6946. echo "$as_me:$LINENO: checking for long long" >&5
  6947. echo $ECHO_N "checking for long long... $ECHO_C" >&6
  6948. if test "${ac_cv_type_long_long+set}" = set; then
  6949. echo $ECHO_N "(cached) $ECHO_C" >&6
  6950. else
  6951. cat >conftest.$ac_ext <<_ACEOF
  6952. /* confdefs.h. */
  6953. _ACEOF
  6954. cat confdefs.h >>conftest.$ac_ext
  6955. cat >>conftest.$ac_ext <<_ACEOF
  6956. /* end confdefs.h. */
  6957. $ac_includes_default
  6958. int
  6959. main ()
  6960. {
  6961. if ((long long *) 0)
  6962. return 0;
  6963. if (sizeof (long long))
  6964. return 0;
  6965. ;
  6966. return 0;
  6967. }
  6968. _ACEOF
  6969. rm -f conftest.$ac_objext
  6970. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6971. (eval $ac_compile) 2>conftest.er1
  6972. ac_status=$?
  6973. grep -v '^ *+' conftest.er1 >conftest.err
  6974. rm -f conftest.er1
  6975. cat conftest.err >&5
  6976. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6977. (exit $ac_status); } &&
  6978. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6979. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6980. (eval $ac_try) 2>&5
  6981. ac_status=$?
  6982. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6983. (exit $ac_status); }; } &&
  6984. { ac_try='test -s conftest.$ac_objext'
  6985. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6986. (eval $ac_try) 2>&5
  6987. ac_status=$?
  6988. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6989. (exit $ac_status); }; }; then
  6990. ac_cv_type_long_long=yes
  6991. else
  6992. echo "$as_me: failed program was:" >&5
  6993. sed 's/^/| /' conftest.$ac_ext >&5
  6994. ac_cv_type_long_long=no
  6995. fi
  6996. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6997. fi
  6998. echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
  6999. echo "${ECHO_T}$ac_cv_type_long_long" >&6
  7000. echo "$as_me:$LINENO: checking size of long long" >&5
  7001. echo $ECHO_N "checking size of long long... $ECHO_C" >&6
  7002. if test "${ac_cv_sizeof_long_long+set}" = set; then
  7003. echo $ECHO_N "(cached) $ECHO_C" >&6
  7004. else
  7005. if test "$ac_cv_type_long_long" = yes; then
  7006. # The cast to unsigned long works around a bug in the HP C Compiler
  7007. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  7008. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  7009. # This bug is HP SR number 8606223364.
  7010. if test "$cross_compiling" = yes; then
  7011. # Depending upon the size, compute the lo and hi bounds.
  7012. cat >conftest.$ac_ext <<_ACEOF
  7013. /* confdefs.h. */
  7014. _ACEOF
  7015. cat confdefs.h >>conftest.$ac_ext
  7016. cat >>conftest.$ac_ext <<_ACEOF
  7017. /* end confdefs.h. */
  7018. $ac_includes_default
  7019. int
  7020. main ()
  7021. {
  7022. static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
  7023. test_array [0] = 0
  7024. ;
  7025. return 0;
  7026. }
  7027. _ACEOF
  7028. rm -f conftest.$ac_objext
  7029. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7030. (eval $ac_compile) 2>conftest.er1
  7031. ac_status=$?
  7032. grep -v '^ *+' conftest.er1 >conftest.err
  7033. rm -f conftest.er1
  7034. cat conftest.err >&5
  7035. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7036. (exit $ac_status); } &&
  7037. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  7038. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7039. (eval $ac_try) 2>&5
  7040. ac_status=$?
  7041. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7042. (exit $ac_status); }; } &&
  7043. { ac_try='test -s conftest.$ac_objext'
  7044. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7045. (eval $ac_try) 2>&5
  7046. ac_status=$?
  7047. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7048. (exit $ac_status); }; }; then
  7049. ac_lo=0 ac_mid=0
  7050. while :; do
  7051. cat >conftest.$ac_ext <<_ACEOF
  7052. /* confdefs.h. */
  7053. _ACEOF
  7054. cat confdefs.h >>conftest.$ac_ext
  7055. cat >>conftest.$ac_ext <<_ACEOF
  7056. /* end confdefs.h. */
  7057. $ac_includes_default
  7058. int
  7059. main ()
  7060. {
  7061. static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
  7062. test_array [0] = 0
  7063. ;
  7064. return 0;
  7065. }
  7066. _ACEOF
  7067. rm -f conftest.$ac_objext
  7068. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7069. (eval $ac_compile) 2>conftest.er1
  7070. ac_status=$?
  7071. grep -v '^ *+' conftest.er1 >conftest.err
  7072. rm -f conftest.er1
  7073. cat conftest.err >&5
  7074. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7075. (exit $ac_status); } &&
  7076. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  7077. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7078. (eval $ac_try) 2>&5
  7079. ac_status=$?
  7080. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7081. (exit $ac_status); }; } &&
  7082. { ac_try='test -s conftest.$ac_objext'
  7083. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7084. (eval $ac_try) 2>&5
  7085. ac_status=$?
  7086. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7087. (exit $ac_status); }; }; then
  7088. ac_hi=$ac_mid; break
  7089. else
  7090. echo "$as_me: failed program was:" >&5
  7091. sed 's/^/| /' conftest.$ac_ext >&5
  7092. ac_lo=`expr $ac_mid + 1`
  7093. if test $ac_lo -le $ac_mid; then
  7094. ac_lo= ac_hi=
  7095. break
  7096. fi
  7097. ac_mid=`expr 2 '*' $ac_mid + 1`
  7098. fi
  7099. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7100. done
  7101. else
  7102. echo "$as_me: failed program was:" >&5
  7103. sed 's/^/| /' conftest.$ac_ext >&5
  7104. cat >conftest.$ac_ext <<_ACEOF
  7105. /* confdefs.h. */
  7106. _ACEOF
  7107. cat confdefs.h >>conftest.$ac_ext
  7108. cat >>conftest.$ac_ext <<_ACEOF
  7109. /* end confdefs.h. */
  7110. $ac_includes_default
  7111. int
  7112. main ()
  7113. {
  7114. static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
  7115. test_array [0] = 0
  7116. ;
  7117. return 0;
  7118. }
  7119. _ACEOF
  7120. rm -f conftest.$ac_objext
  7121. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7122. (eval $ac_compile) 2>conftest.er1
  7123. ac_status=$?
  7124. grep -v '^ *+' conftest.er1 >conftest.err
  7125. rm -f conftest.er1
  7126. cat conftest.err >&5
  7127. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7128. (exit $ac_status); } &&
  7129. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  7130. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7131. (eval $ac_try) 2>&5
  7132. ac_status=$?
  7133. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7134. (exit $ac_status); }; } &&
  7135. { ac_try='test -s conftest.$ac_objext'
  7136. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7137. (eval $ac_try) 2>&5
  7138. ac_status=$?
  7139. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7140. (exit $ac_status); }; }; then
  7141. ac_hi=-1 ac_mid=-1
  7142. while :; do
  7143. cat >conftest.$ac_ext <<_ACEOF
  7144. /* confdefs.h. */
  7145. _ACEOF
  7146. cat confdefs.h >>conftest.$ac_ext
  7147. cat >>conftest.$ac_ext <<_ACEOF
  7148. /* end confdefs.h. */
  7149. $ac_includes_default
  7150. int
  7151. main ()
  7152. {
  7153. static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
  7154. test_array [0] = 0
  7155. ;
  7156. return 0;
  7157. }
  7158. _ACEOF
  7159. rm -f conftest.$ac_objext
  7160. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7161. (eval $ac_compile) 2>conftest.er1
  7162. ac_status=$?
  7163. grep -v '^ *+' conftest.er1 >conftest.err
  7164. rm -f conftest.er1
  7165. cat conftest.err >&5
  7166. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7167. (exit $ac_status); } &&
  7168. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  7169. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7170. (eval $ac_try) 2>&5
  7171. ac_status=$?
  7172. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7173. (exit $ac_status); }; } &&
  7174. { ac_try='test -s conftest.$ac_objext'
  7175. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7176. (eval $ac_try) 2>&5
  7177. ac_status=$?
  7178. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7179. (exit $ac_status); }; }; then
  7180. ac_lo=$ac_mid; break
  7181. else
  7182. echo "$as_me: failed program was:" >&5
  7183. sed 's/^/| /' conftest.$ac_ext >&5
  7184. ac_hi=`expr '(' $ac_mid ')' - 1`
  7185. if test $ac_mid -le $ac_hi; then
  7186. ac_lo= ac_hi=
  7187. break
  7188. fi
  7189. ac_mid=`expr 2 '*' $ac_mid`
  7190. fi
  7191. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7192. done
  7193. else
  7194. echo "$as_me: failed program was:" >&5
  7195. sed 's/^/| /' conftest.$ac_ext >&5
  7196. ac_lo= ac_hi=
  7197. fi
  7198. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7199. fi
  7200. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7201. # Binary search between lo and hi bounds.
  7202. while test "x$ac_lo" != "x$ac_hi"; do
  7203. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  7204. cat >conftest.$ac_ext <<_ACEOF
  7205. /* confdefs.h. */
  7206. _ACEOF
  7207. cat confdefs.h >>conftest.$ac_ext
  7208. cat >>conftest.$ac_ext <<_ACEOF
  7209. /* end confdefs.h. */
  7210. $ac_includes_default
  7211. int
  7212. main ()
  7213. {
  7214. static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
  7215. test_array [0] = 0
  7216. ;
  7217. return 0;
  7218. }
  7219. _ACEOF
  7220. rm -f conftest.$ac_objext
  7221. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7222. (eval $ac_compile) 2>conftest.er1
  7223. ac_status=$?
  7224. grep -v '^ *+' conftest.er1 >conftest.err
  7225. rm -f conftest.er1
  7226. cat conftest.err >&5
  7227. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7228. (exit $ac_status); } &&
  7229. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  7230. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7231. (eval $ac_try) 2>&5
  7232. ac_status=$?
  7233. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7234. (exit $ac_status); }; } &&
  7235. { ac_try='test -s conftest.$ac_objext'
  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); }; }; then
  7241. ac_hi=$ac_mid
  7242. else
  7243. echo "$as_me: failed program was:" >&5
  7244. sed 's/^/| /' conftest.$ac_ext >&5
  7245. ac_lo=`expr '(' $ac_mid ')' + 1`
  7246. fi
  7247. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7248. done
  7249. case $ac_lo in
  7250. ?*) ac_cv_sizeof_long_long=$ac_lo;;
  7251. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
  7252. See \`config.log' for more details." >&5
  7253. echo "$as_me: error: cannot compute sizeof (long long), 77
  7254. See \`config.log' for more details." >&2;}
  7255. { (exit 1); exit 1; }; } ;;
  7256. esac
  7257. else
  7258. if test "$cross_compiling" = yes; then
  7259. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  7260. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  7261. { (exit 1); exit 1; }; }
  7262. else
  7263. cat >conftest.$ac_ext <<_ACEOF
  7264. /* confdefs.h. */
  7265. _ACEOF
  7266. cat confdefs.h >>conftest.$ac_ext
  7267. cat >>conftest.$ac_ext <<_ACEOF
  7268. /* end confdefs.h. */
  7269. $ac_includes_default
  7270. long longval () { return (long) (sizeof (long long)); }
  7271. unsigned long ulongval () { return (long) (sizeof (long long)); }
  7272. #include <stdio.h>
  7273. #include <stdlib.h>
  7274. int
  7275. main ()
  7276. {
  7277. FILE *f = fopen ("conftest.val", "w");
  7278. if (! f)
  7279. exit (1);
  7280. if (((long) (sizeof (long long))) < 0)
  7281. {
  7282. long i = longval ();
  7283. if (i != ((long) (sizeof (long long))))
  7284. exit (1);
  7285. fprintf (f, "%ld\n", i);
  7286. }
  7287. else
  7288. {
  7289. unsigned long i = ulongval ();
  7290. if (i != ((long) (sizeof (long long))))
  7291. exit (1);
  7292. fprintf (f, "%lu\n", i);
  7293. }
  7294. exit (ferror (f) || fclose (f) != 0);
  7295. ;
  7296. return 0;
  7297. }
  7298. _ACEOF
  7299. rm -f conftest$ac_exeext
  7300. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7301. (eval $ac_link) 2>&5
  7302. ac_status=$?
  7303. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7304. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7305. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7306. (eval $ac_try) 2>&5
  7307. ac_status=$?
  7308. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7309. (exit $ac_status); }; }; then
  7310. ac_cv_sizeof_long_long=`cat conftest.val`
  7311. else
  7312. echo "$as_me: program exited with status $ac_status" >&5
  7313. echo "$as_me: failed program was:" >&5
  7314. sed 's/^/| /' conftest.$ac_ext >&5
  7315. ( exit $ac_status )
  7316. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
  7317. See \`config.log' for more details." >&5
  7318. echo "$as_me: error: cannot compute sizeof (long long), 77
  7319. See \`config.log' for more details." >&2;}
  7320. { (exit 1); exit 1; }; }
  7321. fi
  7322. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7323. fi
  7324. fi
  7325. rm -f conftest.val
  7326. else
  7327. ac_cv_sizeof_long_long=0
  7328. fi
  7329. fi
  7330. echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
  7331. echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
  7332. cat >>confdefs.h <<_ACEOF
  7333. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  7334. _ACEOF
  7335. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  7336. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  7337. if test "${ac_cv_struct_tm+set}" = set; then
  7338. echo $ECHO_N "(cached) $ECHO_C" >&6
  7339. else
  7340. cat >conftest.$ac_ext <<_ACEOF
  7341. /* confdefs.h. */
  7342. _ACEOF
  7343. cat confdefs.h >>conftest.$ac_ext
  7344. cat >>conftest.$ac_ext <<_ACEOF
  7345. /* end confdefs.h. */
  7346. #include <sys/types.h>
  7347. #include <time.h>
  7348. int
  7349. main ()
  7350. {
  7351. struct tm *tp; tp->tm_sec;
  7352. ;
  7353. return 0;
  7354. }
  7355. _ACEOF
  7356. rm -f conftest.$ac_objext
  7357. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7358. (eval $ac_compile) 2>conftest.er1
  7359. ac_status=$?
  7360. grep -v '^ *+' conftest.er1 >conftest.err
  7361. rm -f conftest.er1
  7362. cat conftest.err >&5
  7363. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7364. (exit $ac_status); } &&
  7365. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  7366. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7367. (eval $ac_try) 2>&5
  7368. ac_status=$?
  7369. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7370. (exit $ac_status); }; } &&
  7371. { ac_try='test -s conftest.$ac_objext'
  7372. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7373. (eval $ac_try) 2>&5
  7374. ac_status=$?
  7375. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7376. (exit $ac_status); }; }; then
  7377. ac_cv_struct_tm=time.h
  7378. else
  7379. echo "$as_me: failed program was:" >&5
  7380. sed 's/^/| /' conftest.$ac_ext >&5
  7381. ac_cv_struct_tm=sys/time.h
  7382. fi
  7383. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7384. fi
  7385. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  7386. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  7387. if test $ac_cv_struct_tm = sys/time.h; then
  7388. cat >>confdefs.h <<\_ACEOF
  7389. #define TM_IN_SYS_TIME 1
  7390. _ACEOF
  7391. fi
  7392. echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
  7393. echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
  7394. if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
  7395. echo $ECHO_N "(cached) $ECHO_C" >&6
  7396. else
  7397. cat >conftest.$ac_ext <<_ACEOF
  7398. /* confdefs.h. */
  7399. _ACEOF
  7400. cat confdefs.h >>conftest.$ac_ext
  7401. cat >>conftest.$ac_ext <<_ACEOF
  7402. /* end confdefs.h. */
  7403. #include <sys/types.h>
  7404. #include <$ac_cv_struct_tm>
  7405. int
  7406. main ()
  7407. {
  7408. static struct tm ac_aggr;
  7409. if (ac_aggr.tm_zone)
  7410. return 0;
  7411. ;
  7412. return 0;
  7413. }
  7414. _ACEOF
  7415. rm -f conftest.$ac_objext
  7416. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7417. (eval $ac_compile) 2>conftest.er1
  7418. ac_status=$?
  7419. grep -v '^ *+' conftest.er1 >conftest.err
  7420. rm -f conftest.er1
  7421. cat conftest.err >&5
  7422. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7423. (exit $ac_status); } &&
  7424. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  7425. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7426. (eval $ac_try) 2>&5
  7427. ac_status=$?
  7428. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7429. (exit $ac_status); }; } &&
  7430. { ac_try='test -s conftest.$ac_objext'
  7431. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7432. (eval $ac_try) 2>&5
  7433. ac_status=$?
  7434. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7435. (exit $ac_status); }; }; then
  7436. ac_cv_member_struct_tm_tm_zone=yes
  7437. else
  7438. echo "$as_me: failed program was:" >&5
  7439. sed 's/^/| /' conftest.$ac_ext >&5
  7440. cat >conftest.$ac_ext <<_ACEOF
  7441. /* confdefs.h. */
  7442. _ACEOF
  7443. cat confdefs.h >>conftest.$ac_ext
  7444. cat >>conftest.$ac_ext <<_ACEOF
  7445. /* end confdefs.h. */
  7446. #include <sys/types.h>
  7447. #include <$ac_cv_struct_tm>
  7448. int
  7449. main ()
  7450. {
  7451. static struct tm ac_aggr;
  7452. if (sizeof ac_aggr.tm_zone)
  7453. return 0;
  7454. ;
  7455. return 0;
  7456. }
  7457. _ACEOF
  7458. rm -f conftest.$ac_objext
  7459. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7460. (eval $ac_compile) 2>conftest.er1
  7461. ac_status=$?
  7462. grep -v '^ *+' conftest.er1 >conftest.err
  7463. rm -f conftest.er1
  7464. cat conftest.err >&5
  7465. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7466. (exit $ac_status); } &&
  7467. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  7468. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7469. (eval $ac_try) 2>&5
  7470. ac_status=$?
  7471. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7472. (exit $ac_status); }; } &&
  7473. { ac_try='test -s conftest.$ac_objext'
  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); }; }; then
  7479. ac_cv_member_struct_tm_tm_zone=yes
  7480. else
  7481. echo "$as_me: failed program was:" >&5
  7482. sed 's/^/| /' conftest.$ac_ext >&5
  7483. ac_cv_member_struct_tm_tm_zone=no
  7484. fi
  7485. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7486. fi
  7487. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7488. fi
  7489. echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
  7490. echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
  7491. if test $ac_cv_member_struct_tm_tm_zone = yes; then
  7492. cat >>confdefs.h <<_ACEOF
  7493. #define HAVE_STRUCT_TM_TM_ZONE 1
  7494. _ACEOF
  7495. fi
  7496. if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
  7497. cat >>confdefs.h <<\_ACEOF
  7498. #define HAVE_TM_ZONE 1
  7499. _ACEOF
  7500. else
  7501. echo "$as_me:$LINENO: checking for tzname" >&5
  7502. echo $ECHO_N "checking for tzname... $ECHO_C" >&6
  7503. if test "${ac_cv_var_tzname+set}" = set; then
  7504. echo $ECHO_N "(cached) $ECHO_C" >&6
  7505. else
  7506. cat >conftest.$ac_ext <<_ACEOF
  7507. /* confdefs.h. */
  7508. _ACEOF
  7509. cat confdefs.h >>conftest.$ac_ext
  7510. cat >>conftest.$ac_ext <<_ACEOF
  7511. /* end confdefs.h. */
  7512. #include <time.h>
  7513. #ifndef tzname /* For SGI. */
  7514. extern char *tzname[]; /* RS6000 and others reject char **tzname. */
  7515. #endif
  7516. int
  7517. main ()
  7518. {
  7519. atoi(*tzname);
  7520. ;
  7521. return 0;
  7522. }
  7523. _ACEOF
  7524. rm -f conftest.$ac_objext conftest$ac_exeext
  7525. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7526. (eval $ac_link) 2>conftest.er1
  7527. ac_status=$?
  7528. grep -v '^ *+' conftest.er1 >conftest.err
  7529. rm -f conftest.er1
  7530. cat conftest.err >&5
  7531. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7532. (exit $ac_status); } &&
  7533. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  7534. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7535. (eval $ac_try) 2>&5
  7536. ac_status=$?
  7537. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7538. (exit $ac_status); }; } &&
  7539. { ac_try='test -s conftest$ac_exeext'
  7540. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7541. (eval $ac_try) 2>&5
  7542. ac_status=$?
  7543. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7544. (exit $ac_status); }; }; then
  7545. ac_cv_var_tzname=yes
  7546. else
  7547. echo "$as_me: failed program was:" >&5
  7548. sed 's/^/| /' conftest.$ac_ext >&5
  7549. ac_cv_var_tzname=no
  7550. fi
  7551. rm -f conftest.err conftest.$ac_objext \
  7552. conftest$ac_exeext conftest.$ac_ext
  7553. fi
  7554. echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
  7555. echo "${ECHO_T}$ac_cv_var_tzname" >&6
  7556. if test $ac_cv_var_tzname = yes; then
  7557. cat >>confdefs.h <<\_ACEOF
  7558. #define HAVE_TZNAME 1
  7559. _ACEOF
  7560. fi
  7561. fi
  7562. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  7563. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  7564. if test "${ac_cv_struct_tm+set}" = set; then
  7565. echo $ECHO_N "(cached) $ECHO_C" >&6
  7566. else
  7567. cat >conftest.$ac_ext <<_ACEOF
  7568. /* confdefs.h. */
  7569. _ACEOF
  7570. cat confdefs.h >>conftest.$ac_ext
  7571. cat >>conftest.$ac_ext <<_ACEOF
  7572. /* end confdefs.h. */
  7573. #include <sys/types.h>
  7574. #include <time.h>
  7575. int
  7576. main ()
  7577. {
  7578. struct tm *tp; tp->tm_sec;
  7579. ;
  7580. return 0;
  7581. }
  7582. _ACEOF
  7583. rm -f conftest.$ac_objext
  7584. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7585. (eval $ac_compile) 2>conftest.er1
  7586. ac_status=$?
  7587. grep -v '^ *+' conftest.er1 >conftest.err
  7588. rm -f conftest.er1
  7589. cat conftest.err >&5
  7590. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7591. (exit $ac_status); } &&
  7592. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  7593. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7594. (eval $ac_try) 2>&5
  7595. ac_status=$?
  7596. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7597. (exit $ac_status); }; } &&
  7598. { ac_try='test -s conftest.$ac_objext'
  7599. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7600. (eval $ac_try) 2>&5
  7601. ac_status=$?
  7602. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7603. (exit $ac_status); }; }; then
  7604. ac_cv_struct_tm=time.h
  7605. else
  7606. echo "$as_me: failed program was:" >&5
  7607. sed 's/^/| /' conftest.$ac_ext >&5
  7608. ac_cv_struct_tm=sys/time.h
  7609. fi
  7610. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7611. fi
  7612. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  7613. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  7614. if test $ac_cv_struct_tm = sys/time.h; then
  7615. cat >>confdefs.h <<\_ACEOF
  7616. #define TM_IN_SYS_TIME 1
  7617. _ACEOF
  7618. fi
  7619. #checkpoint
  7620. cat >confcache <<\_ACEOF
  7621. # This file is a shell script that caches the results of configure
  7622. # tests run on this system so they can be shared between configure
  7623. # scripts and configure runs, see configure's option --config-cache.
  7624. # It is not useful on other systems. If it contains results you don't
  7625. # want to keep, you may remove or edit it.
  7626. #
  7627. # config.status only pays attention to the cache file if you give it
  7628. # the --recheck option to rerun configure.
  7629. #
  7630. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7631. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7632. # following values.
  7633. _ACEOF
  7634. # The following way of writing the cache mishandles newlines in values,
  7635. # but we know of no workaround that is simple, portable, and efficient.
  7636. # So, don't put newlines in cache variables' values.
  7637. # Ultrix sh set writes to stderr and can't be redirected directly,
  7638. # and sets the high bit in the cache file unless we assign to the vars.
  7639. {
  7640. (set) 2>&1 |
  7641. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  7642. *ac_space=\ *)
  7643. # `set' does not quote correctly, so add quotes (double-quote
  7644. # substitution turns \\\\ into \\, and sed turns \\ into \).
  7645. sed -n \
  7646. "s/'/'\\\\''/g;
  7647. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7648. ;;
  7649. *)
  7650. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7651. sed -n \
  7652. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  7653. ;;
  7654. esac;
  7655. } |
  7656. sed '
  7657. t clear
  7658. : clear
  7659. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7660. t end
  7661. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7662. : end' >>confcache
  7663. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  7664. if test -w $cache_file; then
  7665. test "x$cache_file" != "x/dev/null"
  7666. cat confcache >$cache_file
  7667. else
  7668. echo "not updating unwritable cache $cache_file"
  7669. fi
  7670. fi
  7671. rm -f confcache
  7672. # Checks for library functions
  7673. for ac_header in unistd.h vfork.h
  7674. do
  7675. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7676. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7677. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7678. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7679. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7680. echo $ECHO_N "(cached) $ECHO_C" >&6
  7681. fi
  7682. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7683. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7684. else
  7685. # Is the header compilable?
  7686. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7687. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  7688. cat >conftest.$ac_ext <<_ACEOF
  7689. /* confdefs.h. */
  7690. _ACEOF
  7691. cat confdefs.h >>conftest.$ac_ext
  7692. cat >>conftest.$ac_ext <<_ACEOF
  7693. /* end confdefs.h. */
  7694. $ac_includes_default
  7695. #include <$ac_header>
  7696. _ACEOF
  7697. rm -f conftest.$ac_objext
  7698. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7699. (eval $ac_compile) 2>conftest.er1
  7700. ac_status=$?
  7701. grep -v '^ *+' conftest.er1 >conftest.err
  7702. rm -f conftest.er1
  7703. cat conftest.err >&5
  7704. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7705. (exit $ac_status); } &&
  7706. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  7707. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7708. (eval $ac_try) 2>&5
  7709. ac_status=$?
  7710. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7711. (exit $ac_status); }; } &&
  7712. { ac_try='test -s conftest.$ac_objext'
  7713. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7714. (eval $ac_try) 2>&5
  7715. ac_status=$?
  7716. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7717. (exit $ac_status); }; }; then
  7718. ac_header_compiler=yes
  7719. else
  7720. echo "$as_me: failed program was:" >&5
  7721. sed 's/^/| /' conftest.$ac_ext >&5
  7722. ac_header_compiler=no
  7723. fi
  7724. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7725. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7726. echo "${ECHO_T}$ac_header_compiler" >&6
  7727. # Is the header present?
  7728. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7729. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  7730. cat >conftest.$ac_ext <<_ACEOF
  7731. /* confdefs.h. */
  7732. _ACEOF
  7733. cat confdefs.h >>conftest.$ac_ext
  7734. cat >>conftest.$ac_ext <<_ACEOF
  7735. /* end confdefs.h. */
  7736. #include <$ac_header>
  7737. _ACEOF
  7738. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  7739. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  7740. ac_status=$?
  7741. grep -v '^ *+' conftest.er1 >conftest.err
  7742. rm -f conftest.er1
  7743. cat conftest.err >&5
  7744. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7745. (exit $ac_status); } >/dev/null; then
  7746. if test -s conftest.err; then
  7747. ac_cpp_err=$ac_cxx_preproc_warn_flag
  7748. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  7749. else
  7750. ac_cpp_err=
  7751. fi
  7752. else
  7753. ac_cpp_err=yes
  7754. fi
  7755. if test -z "$ac_cpp_err"; then
  7756. ac_header_preproc=yes
  7757. else
  7758. echo "$as_me: failed program was:" >&5
  7759. sed 's/^/| /' conftest.$ac_ext >&5
  7760. ac_header_preproc=no
  7761. fi
  7762. rm -f conftest.err conftest.$ac_ext
  7763. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7764. echo "${ECHO_T}$ac_header_preproc" >&6
  7765. # So? What about this header?
  7766. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  7767. yes:no: )
  7768. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7769. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7770. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7771. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7772. ac_header_preproc=yes
  7773. ;;
  7774. no:yes:* )
  7775. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7776. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7777. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7778. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7779. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7780. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7781. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7782. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7783. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7784. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7785. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7786. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7787. (
  7788. cat <<\_ASBOX
  7789. ## ------------------------------------------ ##
  7790. ## Report this to the AC_PACKAGE_NAME lists. ##
  7791. ## ------------------------------------------ ##
  7792. _ASBOX
  7793. ) |
  7794. sed "s/^/$as_me: WARNING: /" >&2
  7795. ;;
  7796. esac
  7797. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7798. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7799. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7800. echo $ECHO_N "(cached) $ECHO_C" >&6
  7801. else
  7802. eval "$as_ac_Header=\$ac_header_preproc"
  7803. fi
  7804. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7805. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7806. fi
  7807. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7808. cat >>confdefs.h <<_ACEOF
  7809. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7810. _ACEOF
  7811. fi
  7812. done
  7813. for ac_func in fork vfork
  7814. do
  7815. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7816. echo "$as_me:$LINENO: checking for $ac_func" >&5
  7817. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  7818. if eval "test \"\${$as_ac_var+set}\" = set"; then
  7819. echo $ECHO_N "(cached) $ECHO_C" >&6
  7820. else
  7821. cat >conftest.$ac_ext <<_ACEOF
  7822. /* confdefs.h. */
  7823. _ACEOF
  7824. cat confdefs.h >>conftest.$ac_ext
  7825. cat >>conftest.$ac_ext <<_ACEOF
  7826. /* end confdefs.h. */
  7827. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7828. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7829. #define $ac_func innocuous_$ac_func
  7830. /* System header to define __stub macros and hopefully few prototypes,
  7831. which can conflict with char $ac_func (); below.
  7832. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7833. <limits.h> exists even on freestanding compilers. */
  7834. #ifdef __STDC__
  7835. # include <limits.h>
  7836. #else
  7837. # include <assert.h>
  7838. #endif
  7839. #undef $ac_func
  7840. /* Override any gcc2 internal prototype to avoid an error. */
  7841. #ifdef __cplusplus
  7842. extern "C"
  7843. {
  7844. #endif
  7845. /* We use char because int might match the return type of a gcc2
  7846. builtin and then its argument prototype would still apply. */
  7847. char $ac_func ();
  7848. /* The GNU C library defines this for functions which it implements
  7849. to always fail with ENOSYS. Some functions are actually named
  7850. something starting with __ and the normal name is an alias. */
  7851. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  7852. choke me
  7853. #else
  7854. char (*f) () = $ac_func;
  7855. #endif
  7856. #ifdef __cplusplus
  7857. }
  7858. #endif
  7859. int
  7860. main ()
  7861. {
  7862. return f != $ac_func;
  7863. ;
  7864. return 0;
  7865. }
  7866. _ACEOF
  7867. rm -f conftest.$ac_objext conftest$ac_exeext
  7868. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7869. (eval $ac_link) 2>conftest.er1
  7870. ac_status=$?
  7871. grep -v '^ *+' conftest.er1 >conftest.err
  7872. rm -f conftest.er1
  7873. cat conftest.err >&5
  7874. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7875. (exit $ac_status); } &&
  7876. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  7877. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7878. (eval $ac_try) 2>&5
  7879. ac_status=$?
  7880. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7881. (exit $ac_status); }; } &&
  7882. { ac_try='test -s conftest$ac_exeext'
  7883. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7884. (eval $ac_try) 2>&5
  7885. ac_status=$?
  7886. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7887. (exit $ac_status); }; }; then
  7888. eval "$as_ac_var=yes"
  7889. else
  7890. echo "$as_me: failed program was:" >&5
  7891. sed 's/^/| /' conftest.$ac_ext >&5
  7892. eval "$as_ac_var=no"
  7893. fi
  7894. rm -f conftest.err conftest.$ac_objext \
  7895. conftest$ac_exeext conftest.$ac_ext
  7896. fi
  7897. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  7898. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  7899. if test `eval echo '${'$as_ac_var'}'` = yes; then
  7900. cat >>confdefs.h <<_ACEOF
  7901. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7902. _ACEOF
  7903. fi
  7904. done
  7905. if test "x$ac_cv_func_fork" = xyes; then
  7906. echo "$as_me:$LINENO: checking for working fork" >&5
  7907. echo $ECHO_N "checking for working fork... $ECHO_C" >&6
  7908. if test "${ac_cv_func_fork_works+set}" = set; then
  7909. echo $ECHO_N "(cached) $ECHO_C" >&6
  7910. else
  7911. if test "$cross_compiling" = yes; then
  7912. ac_cv_func_fork_works=cross
  7913. else
  7914. cat >conftest.$ac_ext <<_ACEOF
  7915. /* By Ruediger Kuhlmann. */
  7916. #include <sys/types.h>
  7917. #if HAVE_UNISTD_H
  7918. # include <unistd.h>
  7919. #endif
  7920. /* Some systems only have a dummy stub for fork() */
  7921. int main ()
  7922. {
  7923. if (fork() < 0)
  7924. exit (1);
  7925. exit (0);
  7926. }
  7927. _ACEOF
  7928. rm -f conftest$ac_exeext
  7929. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7930. (eval $ac_link) 2>&5
  7931. ac_status=$?
  7932. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7933. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7934. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7935. (eval $ac_try) 2>&5
  7936. ac_status=$?
  7937. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7938. (exit $ac_status); }; }; then
  7939. ac_cv_func_fork_works=yes
  7940. else
  7941. echo "$as_me: program exited with status $ac_status" >&5
  7942. echo "$as_me: failed program was:" >&5
  7943. sed 's/^/| /' conftest.$ac_ext >&5
  7944. ( exit $ac_status )
  7945. ac_cv_func_fork_works=no
  7946. fi
  7947. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7948. fi
  7949. fi
  7950. echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
  7951. echo "${ECHO_T}$ac_cv_func_fork_works" >&6
  7952. else
  7953. ac_cv_func_fork_works=$ac_cv_func_fork
  7954. fi
  7955. if test "x$ac_cv_func_fork_works" = xcross; then
  7956. case $host in
  7957. *-*-amigaos* | *-*-msdosdjgpp*)
  7958. # Override, as these systems have only a dummy fork() stub
  7959. ac_cv_func_fork_works=no
  7960. ;;
  7961. *)
  7962. ac_cv_func_fork_works=yes
  7963. ;;
  7964. esac
  7965. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  7966. echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  7967. fi
  7968. ac_cv_func_vfork_works=$ac_cv_func_vfork
  7969. if test "x$ac_cv_func_vfork" = xyes; then
  7970. echo "$as_me:$LINENO: checking for working vfork" >&5
  7971. echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
  7972. if test "${ac_cv_func_vfork_works+set}" = set; then
  7973. echo $ECHO_N "(cached) $ECHO_C" >&6
  7974. else
  7975. if test "$cross_compiling" = yes; then
  7976. ac_cv_func_vfork_works=cross
  7977. else
  7978. cat >conftest.$ac_ext <<_ACEOF
  7979. /* confdefs.h. */
  7980. _ACEOF
  7981. cat confdefs.h >>conftest.$ac_ext
  7982. cat >>conftest.$ac_ext <<_ACEOF
  7983. /* end confdefs.h. */
  7984. /* Thanks to Paul Eggert for this test. */
  7985. #include <stdio.h>
  7986. #include <stdlib.h>
  7987. #include <sys/types.h>
  7988. #include <sys/stat.h>
  7989. #include <sys/wait.h>
  7990. #if HAVE_UNISTD_H
  7991. # include <unistd.h>
  7992. #endif
  7993. #if HAVE_VFORK_H
  7994. # include <vfork.h>
  7995. #endif
  7996. /* On some sparc systems, changes by the child to local and incoming
  7997. argument registers are propagated back to the parent. The compiler
  7998. is told about this with #include <vfork.h>, but some compilers
  7999. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  8000. static variable whose address is put into a register that is
  8001. clobbered by the vfork. */
  8002. static void
  8003. #ifdef __cplusplus
  8004. sparc_address_test (int arg)
  8005. # else
  8006. sparc_address_test (arg) int arg;
  8007. #endif
  8008. {
  8009. static pid_t child;
  8010. if (!child) {
  8011. child = vfork ();
  8012. if (child < 0) {
  8013. perror ("vfork");
  8014. _exit(2);
  8015. }
  8016. if (!child) {
  8017. arg = getpid();
  8018. write(-1, "", 0);
  8019. _exit (arg);
  8020. }
  8021. }
  8022. }
  8023. int
  8024. main ()
  8025. {
  8026. pid_t parent = getpid ();
  8027. pid_t child;
  8028. sparc_address_test (0);
  8029. child = vfork ();
  8030. if (child == 0) {
  8031. /* Here is another test for sparc vfork register problems. This
  8032. test uses lots of local variables, at least as many local
  8033. variables as main has allocated so far including compiler
  8034. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  8035. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  8036. reuse the register of parent for one of the local variables,
  8037. since it will think that parent can't possibly be used any more
  8038. in this routine. Assigning to the local variable will thus
  8039. munge parent in the parent process. */
  8040. pid_t
  8041. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  8042. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  8043. /* Convince the compiler that p..p7 are live; otherwise, it might
  8044. use the same hardware register for all 8 local variables. */
  8045. if (p != p1 || p != p2 || p != p3 || p != p4
  8046. || p != p5 || p != p6 || p != p7)
  8047. _exit(1);
  8048. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  8049. from child file descriptors. If the child closes a descriptor
  8050. before it execs or exits, this munges the parent's descriptor
  8051. as well. Test for this by closing stdout in the child. */
  8052. _exit(close(fileno(stdout)) != 0);
  8053. } else {
  8054. int status;
  8055. struct stat st;
  8056. while (wait(&status) != child)
  8057. ;
  8058. exit(
  8059. /* Was there some problem with vforking? */
  8060. child < 0
  8061. /* Did the child fail? (This shouldn't happen.) */
  8062. || status
  8063. /* Did the vfork/compiler bug occur? */
  8064. || parent != getpid()
  8065. /* Did the file descriptor bug occur? */
  8066. || fstat(fileno(stdout), &st) != 0
  8067. );
  8068. }
  8069. }
  8070. _ACEOF
  8071. rm -f conftest$ac_exeext
  8072. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8073. (eval $ac_link) 2>&5
  8074. ac_status=$?
  8075. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8076. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8077. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8078. (eval $ac_try) 2>&5
  8079. ac_status=$?
  8080. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8081. (exit $ac_status); }; }; then
  8082. ac_cv_func_vfork_works=yes
  8083. else
  8084. echo "$as_me: program exited with status $ac_status" >&5
  8085. echo "$as_me: failed program was:" >&5
  8086. sed 's/^/| /' conftest.$ac_ext >&5
  8087. ( exit $ac_status )
  8088. ac_cv_func_vfork_works=no
  8089. fi
  8090. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8091. fi
  8092. fi
  8093. echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
  8094. echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
  8095. fi;
  8096. if test "x$ac_cv_func_fork_works" = xcross; then
  8097. ac_cv_func_vfork_works=$ac_cv_func_vfork
  8098. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  8099. echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  8100. fi
  8101. if test "x$ac_cv_func_vfork_works" = xyes; then
  8102. cat >>confdefs.h <<\_ACEOF
  8103. #define HAVE_WORKING_VFORK 1
  8104. _ACEOF
  8105. else
  8106. cat >>confdefs.h <<\_ACEOF
  8107. #define vfork fork
  8108. _ACEOF
  8109. fi
  8110. if test "x$ac_cv_func_fork_works" = xyes; then
  8111. cat >>confdefs.h <<\_ACEOF
  8112. #define HAVE_WORKING_FORK 1
  8113. _ACEOF
  8114. fi
  8115. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  8116. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  8117. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  8118. echo $ECHO_N "(cached) $ECHO_C" >&6
  8119. else
  8120. rm -f conftest.sym conftest.file
  8121. echo >conftest.file
  8122. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  8123. if test "$cross_compiling" = yes; then
  8124. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8125. else
  8126. cat >conftest.$ac_ext <<_ACEOF
  8127. /* confdefs.h. */
  8128. _ACEOF
  8129. cat confdefs.h >>conftest.$ac_ext
  8130. cat >>conftest.$ac_ext <<_ACEOF
  8131. /* end confdefs.h. */
  8132. $ac_includes_default
  8133. int
  8134. main ()
  8135. {
  8136. struct stat sbuf;
  8137. /* Linux will dereference the symlink and fail.
  8138. That is better in the sense that it means we will not
  8139. have to compile and use the lstat wrapper. */
  8140. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  8141. ;
  8142. return 0;
  8143. }
  8144. _ACEOF
  8145. rm -f conftest$ac_exeext
  8146. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8147. (eval $ac_link) 2>&5
  8148. ac_status=$?
  8149. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8150. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8151. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8152. (eval $ac_try) 2>&5
  8153. ac_status=$?
  8154. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8155. (exit $ac_status); }; }; then
  8156. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  8157. else
  8158. echo "$as_me: program exited with status $ac_status" >&5
  8159. echo "$as_me: failed program was:" >&5
  8160. sed 's/^/| /' conftest.$ac_ext >&5
  8161. ( exit $ac_status )
  8162. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8163. fi
  8164. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8165. fi
  8166. else
  8167. # If the `ln -s' command failed, then we probably don't even
  8168. # have an lstat function.
  8169. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8170. fi
  8171. rm -f conftest.sym conftest.file
  8172. fi
  8173. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  8174. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  8175. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  8176. cat >>confdefs.h <<_ACEOF
  8177. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  8178. _ACEOF
  8179. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  8180. case $LIBOBJS in
  8181. "lstat.$ac_objext" | \
  8182. *" lstat.$ac_objext" | \
  8183. "lstat.$ac_objext "* | \
  8184. *" lstat.$ac_objext "* ) ;;
  8185. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  8186. esac
  8187. fi
  8188. echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
  8189. echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
  8190. if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
  8191. echo $ECHO_N "(cached) $ECHO_C" >&6
  8192. else
  8193. if test "$cross_compiling" = yes; then
  8194. ac_cv_func_lstat_empty_string_bug=yes
  8195. else
  8196. cat >conftest.$ac_ext <<_ACEOF
  8197. /* confdefs.h. */
  8198. _ACEOF
  8199. cat confdefs.h >>conftest.$ac_ext
  8200. cat >>conftest.$ac_ext <<_ACEOF
  8201. /* end confdefs.h. */
  8202. $ac_includes_default
  8203. int
  8204. main ()
  8205. {
  8206. struct stat sbuf;
  8207. exit (lstat ("", &sbuf) ? 1 : 0);
  8208. ;
  8209. return 0;
  8210. }
  8211. _ACEOF
  8212. rm -f conftest$ac_exeext
  8213. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8214. (eval $ac_link) 2>&5
  8215. ac_status=$?
  8216. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8217. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8218. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8219. (eval $ac_try) 2>&5
  8220. ac_status=$?
  8221. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8222. (exit $ac_status); }; }; then
  8223. ac_cv_func_lstat_empty_string_bug=yes
  8224. else
  8225. echo "$as_me: program exited with status $ac_status" >&5
  8226. echo "$as_me: failed program was:" >&5
  8227. sed 's/^/| /' conftest.$ac_ext >&5
  8228. ( exit $ac_status )
  8229. ac_cv_func_lstat_empty_string_bug=no
  8230. fi
  8231. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8232. fi
  8233. fi
  8234. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
  8235. echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
  8236. if test $ac_cv_func_lstat_empty_string_bug = yes; then
  8237. case $LIBOBJS in
  8238. "lstat.$ac_objext" | \
  8239. *" lstat.$ac_objext" | \
  8240. "lstat.$ac_objext "* | \
  8241. *" lstat.$ac_objext "* ) ;;
  8242. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  8243. esac
  8244. cat >>confdefs.h <<_ACEOF
  8245. #define HAVE_LSTAT_EMPTY_STRING_BUG 1
  8246. _ACEOF
  8247. fi
  8248. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  8249. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  8250. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  8251. echo $ECHO_N "(cached) $ECHO_C" >&6
  8252. else
  8253. rm -f conftest.sym conftest.file
  8254. echo >conftest.file
  8255. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  8256. if test "$cross_compiling" = yes; then
  8257. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8258. else
  8259. cat >conftest.$ac_ext <<_ACEOF
  8260. /* confdefs.h. */
  8261. _ACEOF
  8262. cat confdefs.h >>conftest.$ac_ext
  8263. cat >>conftest.$ac_ext <<_ACEOF
  8264. /* end confdefs.h. */
  8265. $ac_includes_default
  8266. int
  8267. main ()
  8268. {
  8269. struct stat sbuf;
  8270. /* Linux will dereference the symlink and fail.
  8271. That is better in the sense that it means we will not
  8272. have to compile and use the lstat wrapper. */
  8273. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  8274. ;
  8275. return 0;
  8276. }
  8277. _ACEOF
  8278. rm -f conftest$ac_exeext
  8279. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8280. (eval $ac_link) 2>&5
  8281. ac_status=$?
  8282. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8283. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8284. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8285. (eval $ac_try) 2>&5
  8286. ac_status=$?
  8287. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8288. (exit $ac_status); }; }; then
  8289. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  8290. else
  8291. echo "$as_me: program exited with status $ac_status" >&5
  8292. echo "$as_me: failed program was:" >&5
  8293. sed 's/^/| /' conftest.$ac_ext >&5
  8294. ( exit $ac_status )
  8295. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8296. fi
  8297. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8298. fi
  8299. else
  8300. # If the `ln -s' command failed, then we probably don't even
  8301. # have an lstat function.
  8302. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8303. fi
  8304. rm -f conftest.sym conftest.file
  8305. fi
  8306. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  8307. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  8308. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  8309. cat >>confdefs.h <<_ACEOF
  8310. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  8311. _ACEOF
  8312. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  8313. case $LIBOBJS in
  8314. "lstat.$ac_objext" | \
  8315. *" lstat.$ac_objext" | \
  8316. "lstat.$ac_objext "* | \
  8317. *" lstat.$ac_objext "* ) ;;
  8318. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  8319. esac
  8320. fi
  8321. for ac_header in stdlib.h
  8322. do
  8323. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8324. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8325. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8326. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8327. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8328. echo $ECHO_N "(cached) $ECHO_C" >&6
  8329. fi
  8330. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8331. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8332. else
  8333. # Is the header compilable?
  8334. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8335. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8336. cat >conftest.$ac_ext <<_ACEOF
  8337. /* confdefs.h. */
  8338. _ACEOF
  8339. cat confdefs.h >>conftest.$ac_ext
  8340. cat >>conftest.$ac_ext <<_ACEOF
  8341. /* end confdefs.h. */
  8342. $ac_includes_default
  8343. #include <$ac_header>
  8344. _ACEOF
  8345. rm -f conftest.$ac_objext
  8346. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8347. (eval $ac_compile) 2>conftest.er1
  8348. ac_status=$?
  8349. grep -v '^ *+' conftest.er1 >conftest.err
  8350. rm -f conftest.er1
  8351. cat conftest.err >&5
  8352. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8353. (exit $ac_status); } &&
  8354. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  8355. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8356. (eval $ac_try) 2>&5
  8357. ac_status=$?
  8358. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8359. (exit $ac_status); }; } &&
  8360. { ac_try='test -s conftest.$ac_objext'
  8361. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8362. (eval $ac_try) 2>&5
  8363. ac_status=$?
  8364. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8365. (exit $ac_status); }; }; then
  8366. ac_header_compiler=yes
  8367. else
  8368. echo "$as_me: failed program was:" >&5
  8369. sed 's/^/| /' conftest.$ac_ext >&5
  8370. ac_header_compiler=no
  8371. fi
  8372. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8373. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8374. echo "${ECHO_T}$ac_header_compiler" >&6
  8375. # Is the header present?
  8376. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8377. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8378. cat >conftest.$ac_ext <<_ACEOF
  8379. /* confdefs.h. */
  8380. _ACEOF
  8381. cat confdefs.h >>conftest.$ac_ext
  8382. cat >>conftest.$ac_ext <<_ACEOF
  8383. /* end confdefs.h. */
  8384. #include <$ac_header>
  8385. _ACEOF
  8386. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8387. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8388. ac_status=$?
  8389. grep -v '^ *+' conftest.er1 >conftest.err
  8390. rm -f conftest.er1
  8391. cat conftest.err >&5
  8392. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8393. (exit $ac_status); } >/dev/null; then
  8394. if test -s conftest.err; then
  8395. ac_cpp_err=$ac_cxx_preproc_warn_flag
  8396. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  8397. else
  8398. ac_cpp_err=
  8399. fi
  8400. else
  8401. ac_cpp_err=yes
  8402. fi
  8403. if test -z "$ac_cpp_err"; then
  8404. ac_header_preproc=yes
  8405. else
  8406. echo "$as_me: failed program was:" >&5
  8407. sed 's/^/| /' conftest.$ac_ext >&5
  8408. ac_header_preproc=no
  8409. fi
  8410. rm -f conftest.err conftest.$ac_ext
  8411. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8412. echo "${ECHO_T}$ac_header_preproc" >&6
  8413. # So? What about this header?
  8414. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  8415. yes:no: )
  8416. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8417. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8418. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8419. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8420. ac_header_preproc=yes
  8421. ;;
  8422. no:yes:* )
  8423. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8424. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8425. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8426. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8427. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8428. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8429. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8430. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8431. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8432. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8433. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8434. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8435. (
  8436. cat <<\_ASBOX
  8437. ## ------------------------------------------ ##
  8438. ## Report this to the AC_PACKAGE_NAME lists. ##
  8439. ## ------------------------------------------ ##
  8440. _ASBOX
  8441. ) |
  8442. sed "s/^/$as_me: WARNING: /" >&2
  8443. ;;
  8444. esac
  8445. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8446. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8447. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8448. echo $ECHO_N "(cached) $ECHO_C" >&6
  8449. else
  8450. eval "$as_ac_Header=\$ac_header_preproc"
  8451. fi
  8452. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8453. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8454. fi
  8455. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8456. cat >>confdefs.h <<_ACEOF
  8457. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8458. _ACEOF
  8459. fi
  8460. done
  8461. echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  8462. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
  8463. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  8464. echo $ECHO_N "(cached) $ECHO_C" >&6
  8465. else
  8466. if test "$cross_compiling" = yes; then
  8467. ac_cv_func_malloc_0_nonnull=no
  8468. else
  8469. cat >conftest.$ac_ext <<_ACEOF
  8470. /* confdefs.h. */
  8471. _ACEOF
  8472. cat confdefs.h >>conftest.$ac_ext
  8473. cat >>conftest.$ac_ext <<_ACEOF
  8474. /* end confdefs.h. */
  8475. #if STDC_HEADERS || HAVE_STDLIB_H
  8476. # include <stdlib.h>
  8477. #else
  8478. char *malloc ();
  8479. #endif
  8480. int
  8481. main ()
  8482. {
  8483. exit (malloc (0) ? 0 : 1);
  8484. ;
  8485. return 0;
  8486. }
  8487. _ACEOF
  8488. rm -f conftest$ac_exeext
  8489. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8490. (eval $ac_link) 2>&5
  8491. ac_status=$?
  8492. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8493. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8494. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8495. (eval $ac_try) 2>&5
  8496. ac_status=$?
  8497. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8498. (exit $ac_status); }; }; then
  8499. ac_cv_func_malloc_0_nonnull=yes
  8500. else
  8501. echo "$as_me: program exited with status $ac_status" >&5
  8502. echo "$as_me: failed program was:" >&5
  8503. sed 's/^/| /' conftest.$ac_ext >&5
  8504. ( exit $ac_status )
  8505. ac_cv_func_malloc_0_nonnull=no
  8506. fi
  8507. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8508. fi
  8509. fi
  8510. echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  8511. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
  8512. if test $ac_cv_func_malloc_0_nonnull = yes; then
  8513. cat >>confdefs.h <<\_ACEOF
  8514. #define HAVE_MALLOC 1
  8515. _ACEOF
  8516. else
  8517. cat >>confdefs.h <<\_ACEOF
  8518. #define HAVE_MALLOC 0
  8519. _ACEOF
  8520. case $LIBOBJS in
  8521. "malloc.$ac_objext" | \
  8522. *" malloc.$ac_objext" | \
  8523. "malloc.$ac_objext "* | \
  8524. *" malloc.$ac_objext "* ) ;;
  8525. *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
  8526. esac
  8527. cat >>confdefs.h <<\_ACEOF
  8528. #define malloc rpl_malloc
  8529. _ACEOF
  8530. fi
  8531. for ac_header in stdlib.h sys/time.h unistd.h
  8532. do
  8533. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8534. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8535. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8536. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8537. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8538. echo $ECHO_N "(cached) $ECHO_C" >&6
  8539. fi
  8540. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8541. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8542. else
  8543. # Is the header compilable?
  8544. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8545. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8546. cat >conftest.$ac_ext <<_ACEOF
  8547. /* confdefs.h. */
  8548. _ACEOF
  8549. cat confdefs.h >>conftest.$ac_ext
  8550. cat >>conftest.$ac_ext <<_ACEOF
  8551. /* end confdefs.h. */
  8552. $ac_includes_default
  8553. #include <$ac_header>
  8554. _ACEOF
  8555. rm -f conftest.$ac_objext
  8556. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8557. (eval $ac_compile) 2>conftest.er1
  8558. ac_status=$?
  8559. grep -v '^ *+' conftest.er1 >conftest.err
  8560. rm -f conftest.er1
  8561. cat conftest.err >&5
  8562. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8563. (exit $ac_status); } &&
  8564. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  8565. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8566. (eval $ac_try) 2>&5
  8567. ac_status=$?
  8568. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8569. (exit $ac_status); }; } &&
  8570. { ac_try='test -s conftest.$ac_objext'
  8571. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8572. (eval $ac_try) 2>&5
  8573. ac_status=$?
  8574. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8575. (exit $ac_status); }; }; then
  8576. ac_header_compiler=yes
  8577. else
  8578. echo "$as_me: failed program was:" >&5
  8579. sed 's/^/| /' conftest.$ac_ext >&5
  8580. ac_header_compiler=no
  8581. fi
  8582. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8583. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8584. echo "${ECHO_T}$ac_header_compiler" >&6
  8585. # Is the header present?
  8586. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8587. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8588. cat >conftest.$ac_ext <<_ACEOF
  8589. /* confdefs.h. */
  8590. _ACEOF
  8591. cat confdefs.h >>conftest.$ac_ext
  8592. cat >>conftest.$ac_ext <<_ACEOF
  8593. /* end confdefs.h. */
  8594. #include <$ac_header>
  8595. _ACEOF
  8596. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8597. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8598. ac_status=$?
  8599. grep -v '^ *+' conftest.er1 >conftest.err
  8600. rm -f conftest.er1
  8601. cat conftest.err >&5
  8602. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8603. (exit $ac_status); } >/dev/null; then
  8604. if test -s conftest.err; then
  8605. ac_cpp_err=$ac_cxx_preproc_warn_flag
  8606. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  8607. else
  8608. ac_cpp_err=
  8609. fi
  8610. else
  8611. ac_cpp_err=yes
  8612. fi
  8613. if test -z "$ac_cpp_err"; then
  8614. ac_header_preproc=yes
  8615. else
  8616. echo "$as_me: failed program was:" >&5
  8617. sed 's/^/| /' conftest.$ac_ext >&5
  8618. ac_header_preproc=no
  8619. fi
  8620. rm -f conftest.err conftest.$ac_ext
  8621. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8622. echo "${ECHO_T}$ac_header_preproc" >&6
  8623. # So? What about this header?
  8624. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  8625. yes:no: )
  8626. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8627. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8628. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8629. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8630. ac_header_preproc=yes
  8631. ;;
  8632. no:yes:* )
  8633. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8634. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8635. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8636. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8637. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8638. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8639. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8640. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8641. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8642. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8643. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8644. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8645. (
  8646. cat <<\_ASBOX
  8647. ## ------------------------------------------ ##
  8648. ## Report this to the AC_PACKAGE_NAME lists. ##
  8649. ## ------------------------------------------ ##
  8650. _ASBOX
  8651. ) |
  8652. sed "s/^/$as_me: WARNING: /" >&2
  8653. ;;
  8654. esac
  8655. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8656. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8657. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8658. echo $ECHO_N "(cached) $ECHO_C" >&6
  8659. else
  8660. eval "$as_ac_Header=\$ac_header_preproc"
  8661. fi
  8662. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8663. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8664. fi
  8665. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8666. cat >>confdefs.h <<_ACEOF
  8667. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8668. _ACEOF
  8669. fi
  8670. done
  8671. for ac_func in alarm
  8672. do
  8673. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8674. echo "$as_me:$LINENO: checking for $ac_func" >&5
  8675. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  8676. if eval "test \"\${$as_ac_var+set}\" = set"; then
  8677. echo $ECHO_N "(cached) $ECHO_C" >&6
  8678. else
  8679. cat >conftest.$ac_ext <<_ACEOF
  8680. /* confdefs.h. */
  8681. _ACEOF
  8682. cat confdefs.h >>conftest.$ac_ext
  8683. cat >>conftest.$ac_ext <<_ACEOF
  8684. /* end confdefs.h. */
  8685. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8686. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8687. #define $ac_func innocuous_$ac_func
  8688. /* System header to define __stub macros and hopefully few prototypes,
  8689. which can conflict with char $ac_func (); below.
  8690. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8691. <limits.h> exists even on freestanding compilers. */
  8692. #ifdef __STDC__
  8693. # include <limits.h>
  8694. #else
  8695. # include <assert.h>
  8696. #endif
  8697. #undef $ac_func
  8698. /* Override any gcc2 internal prototype to avoid an error. */
  8699. #ifdef __cplusplus
  8700. extern "C"
  8701. {
  8702. #endif
  8703. /* We use char because int might match the return type of a gcc2
  8704. builtin and then its argument prototype would still apply. */
  8705. char $ac_func ();
  8706. /* The GNU C library defines this for functions which it implements
  8707. to always fail with ENOSYS. Some functions are actually named
  8708. something starting with __ and the normal name is an alias. */
  8709. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  8710. choke me
  8711. #else
  8712. char (*f) () = $ac_func;
  8713. #endif
  8714. #ifdef __cplusplus
  8715. }
  8716. #endif
  8717. int
  8718. main ()
  8719. {
  8720. return f != $ac_func;
  8721. ;
  8722. return 0;
  8723. }
  8724. _ACEOF
  8725. rm -f conftest.$ac_objext conftest$ac_exeext
  8726. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8727. (eval $ac_link) 2>conftest.er1
  8728. ac_status=$?
  8729. grep -v '^ *+' conftest.er1 >conftest.err
  8730. rm -f conftest.er1
  8731. cat conftest.err >&5
  8732. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8733. (exit $ac_status); } &&
  8734. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  8735. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8736. (eval $ac_try) 2>&5
  8737. ac_status=$?
  8738. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8739. (exit $ac_status); }; } &&
  8740. { ac_try='test -s conftest$ac_exeext'
  8741. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8742. (eval $ac_try) 2>&5
  8743. ac_status=$?
  8744. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8745. (exit $ac_status); }; }; then
  8746. eval "$as_ac_var=yes"
  8747. else
  8748. echo "$as_me: failed program was:" >&5
  8749. sed 's/^/| /' conftest.$ac_ext >&5
  8750. eval "$as_ac_var=no"
  8751. fi
  8752. rm -f conftest.err conftest.$ac_objext \
  8753. conftest$ac_exeext conftest.$ac_ext
  8754. fi
  8755. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  8756. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  8757. if test `eval echo '${'$as_ac_var'}'` = yes; then
  8758. cat >>confdefs.h <<_ACEOF
  8759. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8760. _ACEOF
  8761. fi
  8762. done
  8763. echo "$as_me:$LINENO: checking for working mktime" >&5
  8764. echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
  8765. if test "${ac_cv_func_working_mktime+set}" = set; then
  8766. echo $ECHO_N "(cached) $ECHO_C" >&6
  8767. else
  8768. if test "$cross_compiling" = yes; then
  8769. ac_cv_func_working_mktime=no
  8770. else
  8771. cat >conftest.$ac_ext <<_ACEOF
  8772. /* confdefs.h. */
  8773. _ACEOF
  8774. cat confdefs.h >>conftest.$ac_ext
  8775. cat >>conftest.$ac_ext <<_ACEOF
  8776. /* end confdefs.h. */
  8777. /* Test program from Paul Eggert and Tony Leneis. */
  8778. #if TIME_WITH_SYS_TIME
  8779. # include <sys/time.h>
  8780. # include <time.h>
  8781. #else
  8782. # if HAVE_SYS_TIME_H
  8783. # include <sys/time.h>
  8784. # else
  8785. # include <time.h>
  8786. # endif
  8787. #endif
  8788. #if HAVE_STDLIB_H
  8789. # include <stdlib.h>
  8790. #endif
  8791. #if HAVE_UNISTD_H
  8792. # include <unistd.h>
  8793. #endif
  8794. #if !HAVE_ALARM
  8795. # define alarm(X) /* empty */
  8796. #endif
  8797. /* Work around redefinition to rpl_putenv by other config tests. */
  8798. #undef putenv
  8799. static time_t time_t_max;
  8800. static time_t time_t_min;
  8801. /* Values we'll use to set the TZ environment variable. */
  8802. static char *tz_strings[] = {
  8803. (char *) 0, "TZ=GMT0", "TZ=JST-9",
  8804. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  8805. };
  8806. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  8807. /* Fail if mktime fails to convert a date in the spring-forward gap.
  8808. Based on a problem report from Andreas Jaeger. */
  8809. static void
  8810. spring_forward_gap ()
  8811. {
  8812. /* glibc (up to about 1998-10-07) failed this test. */
  8813. struct tm tm;
  8814. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  8815. instead of "TZ=America/Vancouver" in order to detect the bug even
  8816. on systems that don't support the Olson extension, or don't have the
  8817. full zoneinfo tables installed. */
  8818. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  8819. tm.tm_year = 98;
  8820. tm.tm_mon = 3;
  8821. tm.tm_mday = 5;
  8822. tm.tm_hour = 2;
  8823. tm.tm_min = 0;
  8824. tm.tm_sec = 0;
  8825. tm.tm_isdst = -1;
  8826. if (mktime (&tm) == (time_t)-1)
  8827. exit (1);
  8828. }
  8829. static void
  8830. mktime_test1 (now)
  8831. time_t now;
  8832. {
  8833. struct tm *lt;
  8834. if ((lt = localtime (&now)) && mktime (lt) != now)
  8835. exit (1);
  8836. }
  8837. static void
  8838. mktime_test (now)
  8839. time_t now;
  8840. {
  8841. mktime_test1 (now);
  8842. mktime_test1 ((time_t) (time_t_max - now));
  8843. mktime_test1 ((time_t) (time_t_min + now));
  8844. }
  8845. static void
  8846. irix_6_4_bug ()
  8847. {
  8848. /* Based on code from Ariel Faigon. */
  8849. struct tm tm;
  8850. tm.tm_year = 96;
  8851. tm.tm_mon = 3;
  8852. tm.tm_mday = 0;
  8853. tm.tm_hour = 0;
  8854. tm.tm_min = 0;
  8855. tm.tm_sec = 0;
  8856. tm.tm_isdst = -1;
  8857. mktime (&tm);
  8858. if (tm.tm_mon != 2 || tm.tm_mday != 31)
  8859. exit (1);
  8860. }
  8861. static void
  8862. bigtime_test (j)
  8863. int j;
  8864. {
  8865. struct tm tm;
  8866. time_t now;
  8867. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  8868. now = mktime (&tm);
  8869. if (now != (time_t) -1)
  8870. {
  8871. struct tm *lt = localtime (&now);
  8872. if (! (lt
  8873. && lt->tm_year == tm.tm_year
  8874. && lt->tm_mon == tm.tm_mon
  8875. && lt->tm_mday == tm.tm_mday
  8876. && lt->tm_hour == tm.tm_hour
  8877. && lt->tm_min == tm.tm_min
  8878. && lt->tm_sec == tm.tm_sec
  8879. && lt->tm_yday == tm.tm_yday
  8880. && lt->tm_wday == tm.tm_wday
  8881. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  8882. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  8883. exit (1);
  8884. }
  8885. }
  8886. int
  8887. main ()
  8888. {
  8889. time_t t, delta;
  8890. int i, j;
  8891. /* This test makes some buggy mktime implementations loop.
  8892. Give up after 60 seconds; a mktime slower than that
  8893. isn't worth using anyway. */
  8894. alarm (60);
  8895. for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
  8896. continue;
  8897. time_t_max--;
  8898. if ((time_t) -1 < 0)
  8899. for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
  8900. continue;
  8901. delta = time_t_max / 997; /* a suitable prime number */
  8902. for (i = 0; i < N_STRINGS; i++)
  8903. {
  8904. if (tz_strings[i])
  8905. putenv (tz_strings[i]);
  8906. for (t = 0; t <= time_t_max - delta; t += delta)
  8907. mktime_test (t);
  8908. mktime_test ((time_t) 1);
  8909. mktime_test ((time_t) (60 * 60));
  8910. mktime_test ((time_t) (60 * 60 * 24));
  8911. for (j = 1; 0 < j; j *= 2)
  8912. bigtime_test (j);
  8913. bigtime_test (j - 1);
  8914. }
  8915. irix_6_4_bug ();
  8916. spring_forward_gap ();
  8917. exit (0);
  8918. }
  8919. _ACEOF
  8920. rm -f conftest$ac_exeext
  8921. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8922. (eval $ac_link) 2>&5
  8923. ac_status=$?
  8924. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8925. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8926. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8927. (eval $ac_try) 2>&5
  8928. ac_status=$?
  8929. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8930. (exit $ac_status); }; }; then
  8931. ac_cv_func_working_mktime=yes
  8932. else
  8933. echo "$as_me: program exited with status $ac_status" >&5
  8934. echo "$as_me: failed program was:" >&5
  8935. sed 's/^/| /' conftest.$ac_ext >&5
  8936. ( exit $ac_status )
  8937. ac_cv_func_working_mktime=no
  8938. fi
  8939. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8940. fi
  8941. fi
  8942. echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
  8943. echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
  8944. if test $ac_cv_func_working_mktime = no; then
  8945. case $LIBOBJS in
  8946. "mktime.$ac_objext" | \
  8947. *" mktime.$ac_objext" | \
  8948. "mktime.$ac_objext "* | \
  8949. *" mktime.$ac_objext "* ) ;;
  8950. *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
  8951. esac
  8952. fi
  8953. for ac_header in stdlib.h unistd.h
  8954. do
  8955. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8956. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8957. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8958. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8959. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8960. echo $ECHO_N "(cached) $ECHO_C" >&6
  8961. fi
  8962. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8963. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8964. else
  8965. # Is the header compilable?
  8966. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8967. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8968. cat >conftest.$ac_ext <<_ACEOF
  8969. /* confdefs.h. */
  8970. _ACEOF
  8971. cat confdefs.h >>conftest.$ac_ext
  8972. cat >>conftest.$ac_ext <<_ACEOF
  8973. /* end confdefs.h. */
  8974. $ac_includes_default
  8975. #include <$ac_header>
  8976. _ACEOF
  8977. rm -f conftest.$ac_objext
  8978. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8979. (eval $ac_compile) 2>conftest.er1
  8980. ac_status=$?
  8981. grep -v '^ *+' conftest.er1 >conftest.err
  8982. rm -f conftest.er1
  8983. cat conftest.err >&5
  8984. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8985. (exit $ac_status); } &&
  8986. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  8987. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8988. (eval $ac_try) 2>&5
  8989. ac_status=$?
  8990. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8991. (exit $ac_status); }; } &&
  8992. { ac_try='test -s conftest.$ac_objext'
  8993. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8994. (eval $ac_try) 2>&5
  8995. ac_status=$?
  8996. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8997. (exit $ac_status); }; }; then
  8998. ac_header_compiler=yes
  8999. else
  9000. echo "$as_me: failed program was:" >&5
  9001. sed 's/^/| /' conftest.$ac_ext >&5
  9002. ac_header_compiler=no
  9003. fi
  9004. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9005. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9006. echo "${ECHO_T}$ac_header_compiler" >&6
  9007. # Is the header present?
  9008. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9009. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9010. cat >conftest.$ac_ext <<_ACEOF
  9011. /* confdefs.h. */
  9012. _ACEOF
  9013. cat confdefs.h >>conftest.$ac_ext
  9014. cat >>conftest.$ac_ext <<_ACEOF
  9015. /* end confdefs.h. */
  9016. #include <$ac_header>
  9017. _ACEOF
  9018. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9019. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9020. ac_status=$?
  9021. grep -v '^ *+' conftest.er1 >conftest.err
  9022. rm -f conftest.er1
  9023. cat conftest.err >&5
  9024. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9025. (exit $ac_status); } >/dev/null; then
  9026. if test -s conftest.err; then
  9027. ac_cpp_err=$ac_cxx_preproc_warn_flag
  9028. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  9029. else
  9030. ac_cpp_err=
  9031. fi
  9032. else
  9033. ac_cpp_err=yes
  9034. fi
  9035. if test -z "$ac_cpp_err"; then
  9036. ac_header_preproc=yes
  9037. else
  9038. echo "$as_me: failed program was:" >&5
  9039. sed 's/^/| /' conftest.$ac_ext >&5
  9040. ac_header_preproc=no
  9041. fi
  9042. rm -f conftest.err conftest.$ac_ext
  9043. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9044. echo "${ECHO_T}$ac_header_preproc" >&6
  9045. # So? What about this header?
  9046. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  9047. yes:no: )
  9048. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9049. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9050. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9051. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9052. ac_header_preproc=yes
  9053. ;;
  9054. no:yes:* )
  9055. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9056. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9057. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9058. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9059. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9060. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9061. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9062. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9063. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9064. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9065. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9066. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9067. (
  9068. cat <<\_ASBOX
  9069. ## ------------------------------------------ ##
  9070. ## Report this to the AC_PACKAGE_NAME lists. ##
  9071. ## ------------------------------------------ ##
  9072. _ASBOX
  9073. ) |
  9074. sed "s/^/$as_me: WARNING: /" >&2
  9075. ;;
  9076. esac
  9077. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9078. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9079. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9080. echo $ECHO_N "(cached) $ECHO_C" >&6
  9081. else
  9082. eval "$as_ac_Header=\$ac_header_preproc"
  9083. fi
  9084. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9085. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9086. fi
  9087. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9088. cat >>confdefs.h <<_ACEOF
  9089. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9090. _ACEOF
  9091. fi
  9092. done
  9093. for ac_func in getpagesize
  9094. do
  9095. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9096. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9097. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9098. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9099. echo $ECHO_N "(cached) $ECHO_C" >&6
  9100. else
  9101. cat >conftest.$ac_ext <<_ACEOF
  9102. /* confdefs.h. */
  9103. _ACEOF
  9104. cat confdefs.h >>conftest.$ac_ext
  9105. cat >>conftest.$ac_ext <<_ACEOF
  9106. /* end confdefs.h. */
  9107. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9108. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9109. #define $ac_func innocuous_$ac_func
  9110. /* System header to define __stub macros and hopefully few prototypes,
  9111. which can conflict with char $ac_func (); below.
  9112. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9113. <limits.h> exists even on freestanding compilers. */
  9114. #ifdef __STDC__
  9115. # include <limits.h>
  9116. #else
  9117. # include <assert.h>
  9118. #endif
  9119. #undef $ac_func
  9120. /* Override any gcc2 internal prototype to avoid an error. */
  9121. #ifdef __cplusplus
  9122. extern "C"
  9123. {
  9124. #endif
  9125. /* We use char because int might match the return type of a gcc2
  9126. builtin and then its argument prototype would still apply. */
  9127. char $ac_func ();
  9128. /* The GNU C library defines this for functions which it implements
  9129. to always fail with ENOSYS. Some functions are actually named
  9130. something starting with __ and the normal name is an alias. */
  9131. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9132. choke me
  9133. #else
  9134. char (*f) () = $ac_func;
  9135. #endif
  9136. #ifdef __cplusplus
  9137. }
  9138. #endif
  9139. int
  9140. main ()
  9141. {
  9142. return f != $ac_func;
  9143. ;
  9144. return 0;
  9145. }
  9146. _ACEOF
  9147. rm -f conftest.$ac_objext conftest$ac_exeext
  9148. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9149. (eval $ac_link) 2>conftest.er1
  9150. ac_status=$?
  9151. grep -v '^ *+' conftest.er1 >conftest.err
  9152. rm -f conftest.er1
  9153. cat conftest.err >&5
  9154. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9155. (exit $ac_status); } &&
  9156. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  9157. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9158. (eval $ac_try) 2>&5
  9159. ac_status=$?
  9160. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9161. (exit $ac_status); }; } &&
  9162. { ac_try='test -s conftest$ac_exeext'
  9163. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9164. (eval $ac_try) 2>&5
  9165. ac_status=$?
  9166. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9167. (exit $ac_status); }; }; then
  9168. eval "$as_ac_var=yes"
  9169. else
  9170. echo "$as_me: failed program was:" >&5
  9171. sed 's/^/| /' conftest.$ac_ext >&5
  9172. eval "$as_ac_var=no"
  9173. fi
  9174. rm -f conftest.err conftest.$ac_objext \
  9175. conftest$ac_exeext conftest.$ac_ext
  9176. fi
  9177. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9178. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9179. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9180. cat >>confdefs.h <<_ACEOF
  9181. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9182. _ACEOF
  9183. fi
  9184. done
  9185. echo "$as_me:$LINENO: checking for working mmap" >&5
  9186. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
  9187. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  9188. echo $ECHO_N "(cached) $ECHO_C" >&6
  9189. else
  9190. if test "$cross_compiling" = yes; then
  9191. ac_cv_func_mmap_fixed_mapped=no
  9192. else
  9193. cat >conftest.$ac_ext <<_ACEOF
  9194. /* confdefs.h. */
  9195. _ACEOF
  9196. cat confdefs.h >>conftest.$ac_ext
  9197. cat >>conftest.$ac_ext <<_ACEOF
  9198. /* end confdefs.h. */
  9199. $ac_includes_default
  9200. /* malloc might have been renamed as rpl_malloc. */
  9201. #undef malloc
  9202. /* Thanks to Mike Haertel and Jim Avera for this test.
  9203. Here is a matrix of mmap possibilities:
  9204. mmap private not fixed
  9205. mmap private fixed at somewhere currently unmapped
  9206. mmap private fixed at somewhere already mapped
  9207. mmap shared not fixed
  9208. mmap shared fixed at somewhere currently unmapped
  9209. mmap shared fixed at somewhere already mapped
  9210. For private mappings, we should verify that changes cannot be read()
  9211. back from the file, nor mmap's back from the file at a different
  9212. address. (There have been systems where private was not correctly
  9213. implemented like the infamous i386 svr4.0, and systems where the
  9214. VM page cache was not coherent with the file system buffer cache
  9215. like early versions of FreeBSD and possibly contemporary NetBSD.)
  9216. For shared mappings, we should conversely verify that changes get
  9217. propagated back to all the places they're supposed to be.
  9218. Grep wants private fixed already mapped.
  9219. The main things grep needs to know about mmap are:
  9220. * does it exist and is it safe to write into the mmap'd area
  9221. * how to use it (BSD variants) */
  9222. #include <fcntl.h>
  9223. #include <sys/mman.h>
  9224. #if !STDC_HEADERS && !HAVE_STDLIB_H
  9225. char *malloc ();
  9226. #endif
  9227. /* This mess was copied from the GNU getpagesize.h. */
  9228. #if !HAVE_GETPAGESIZE
  9229. /* Assume that all systems that can run configure have sys/param.h. */
  9230. # if !HAVE_SYS_PARAM_H
  9231. # define HAVE_SYS_PARAM_H 1
  9232. # endif
  9233. # ifdef _SC_PAGESIZE
  9234. # define getpagesize() sysconf(_SC_PAGESIZE)
  9235. # else /* no _SC_PAGESIZE */
  9236. # if HAVE_SYS_PARAM_H
  9237. # include <sys/param.h>
  9238. # ifdef EXEC_PAGESIZE
  9239. # define getpagesize() EXEC_PAGESIZE
  9240. # else /* no EXEC_PAGESIZE */
  9241. # ifdef NBPG
  9242. # define getpagesize() NBPG * CLSIZE
  9243. # ifndef CLSIZE
  9244. # define CLSIZE 1
  9245. # endif /* no CLSIZE */
  9246. # else /* no NBPG */
  9247. # ifdef NBPC
  9248. # define getpagesize() NBPC
  9249. # else /* no NBPC */
  9250. # ifdef PAGESIZE
  9251. # define getpagesize() PAGESIZE
  9252. # endif /* PAGESIZE */
  9253. # endif /* no NBPC */
  9254. # endif /* no NBPG */
  9255. # endif /* no EXEC_PAGESIZE */
  9256. # else /* no HAVE_SYS_PARAM_H */
  9257. # define getpagesize() 8192 /* punt totally */
  9258. # endif /* no HAVE_SYS_PARAM_H */
  9259. # endif /* no _SC_PAGESIZE */
  9260. #endif /* no HAVE_GETPAGESIZE */
  9261. int
  9262. main ()
  9263. {
  9264. char *data, *data2, *data3;
  9265. int i, pagesize;
  9266. int fd;
  9267. pagesize = getpagesize ();
  9268. /* First, make a file with some known garbage in it. */
  9269. data = (char *) malloc (pagesize);
  9270. if (!data)
  9271. exit (1);
  9272. for (i = 0; i < pagesize; ++i)
  9273. *(data + i) = rand ();
  9274. umask (0);
  9275. fd = creat ("conftest.mmap", 0600);
  9276. if (fd < 0)
  9277. exit (1);
  9278. if (write (fd, data, pagesize) != pagesize)
  9279. exit (1);
  9280. close (fd);
  9281. /* Next, try to mmap the file at a fixed address which already has
  9282. something else allocated at it. If we can, also make sure that
  9283. we see the same garbage. */
  9284. fd = open ("conftest.mmap", O_RDWR);
  9285. if (fd < 0)
  9286. exit (1);
  9287. data2 = (char *) malloc (2 * pagesize);
  9288. if (!data2)
  9289. exit (1);
  9290. data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
  9291. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  9292. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  9293. exit (1);
  9294. for (i = 0; i < pagesize; ++i)
  9295. if (*(data + i) != *(data2 + i))
  9296. exit (1);
  9297. /* Finally, make sure that changes to the mapped area do not
  9298. percolate back to the file as seen by read(). (This is a bug on
  9299. some variants of i386 svr4.0.) */
  9300. for (i = 0; i < pagesize; ++i)
  9301. *(data2 + i) = *(data2 + i) + 1;
  9302. data3 = (char *) malloc (pagesize);
  9303. if (!data3)
  9304. exit (1);
  9305. if (read (fd, data3, pagesize) != pagesize)
  9306. exit (1);
  9307. for (i = 0; i < pagesize; ++i)
  9308. if (*(data + i) != *(data3 + i))
  9309. exit (1);
  9310. close (fd);
  9311. exit (0);
  9312. }
  9313. _ACEOF
  9314. rm -f conftest$ac_exeext
  9315. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9316. (eval $ac_link) 2>&5
  9317. ac_status=$?
  9318. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9319. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9320. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9321. (eval $ac_try) 2>&5
  9322. ac_status=$?
  9323. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9324. (exit $ac_status); }; }; then
  9325. ac_cv_func_mmap_fixed_mapped=yes
  9326. else
  9327. echo "$as_me: program exited with status $ac_status" >&5
  9328. echo "$as_me: failed program was:" >&5
  9329. sed 's/^/| /' conftest.$ac_ext >&5
  9330. ( exit $ac_status )
  9331. ac_cv_func_mmap_fixed_mapped=no
  9332. fi
  9333. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9334. fi
  9335. fi
  9336. echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  9337. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
  9338. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  9339. cat >>confdefs.h <<\_ACEOF
  9340. #define HAVE_MMAP 1
  9341. _ACEOF
  9342. fi
  9343. rm -f conftest.mmap
  9344. for ac_header in stdlib.h
  9345. do
  9346. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9347. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9348. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9349. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9350. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9351. echo $ECHO_N "(cached) $ECHO_C" >&6
  9352. fi
  9353. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9354. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9355. else
  9356. # Is the header compilable?
  9357. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9358. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9359. cat >conftest.$ac_ext <<_ACEOF
  9360. /* confdefs.h. */
  9361. _ACEOF
  9362. cat confdefs.h >>conftest.$ac_ext
  9363. cat >>conftest.$ac_ext <<_ACEOF
  9364. /* end confdefs.h. */
  9365. $ac_includes_default
  9366. #include <$ac_header>
  9367. _ACEOF
  9368. rm -f conftest.$ac_objext
  9369. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9370. (eval $ac_compile) 2>conftest.er1
  9371. ac_status=$?
  9372. grep -v '^ *+' conftest.er1 >conftest.err
  9373. rm -f conftest.er1
  9374. cat conftest.err >&5
  9375. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9376. (exit $ac_status); } &&
  9377. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  9378. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9379. (eval $ac_try) 2>&5
  9380. ac_status=$?
  9381. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9382. (exit $ac_status); }; } &&
  9383. { ac_try='test -s conftest.$ac_objext'
  9384. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9385. (eval $ac_try) 2>&5
  9386. ac_status=$?
  9387. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9388. (exit $ac_status); }; }; then
  9389. ac_header_compiler=yes
  9390. else
  9391. echo "$as_me: failed program was:" >&5
  9392. sed 's/^/| /' conftest.$ac_ext >&5
  9393. ac_header_compiler=no
  9394. fi
  9395. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9396. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9397. echo "${ECHO_T}$ac_header_compiler" >&6
  9398. # Is the header present?
  9399. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9400. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9401. cat >conftest.$ac_ext <<_ACEOF
  9402. /* confdefs.h. */
  9403. _ACEOF
  9404. cat confdefs.h >>conftest.$ac_ext
  9405. cat >>conftest.$ac_ext <<_ACEOF
  9406. /* end confdefs.h. */
  9407. #include <$ac_header>
  9408. _ACEOF
  9409. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9410. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9411. ac_status=$?
  9412. grep -v '^ *+' conftest.er1 >conftest.err
  9413. rm -f conftest.er1
  9414. cat conftest.err >&5
  9415. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9416. (exit $ac_status); } >/dev/null; then
  9417. if test -s conftest.err; then
  9418. ac_cpp_err=$ac_cxx_preproc_warn_flag
  9419. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  9420. else
  9421. ac_cpp_err=
  9422. fi
  9423. else
  9424. ac_cpp_err=yes
  9425. fi
  9426. if test -z "$ac_cpp_err"; then
  9427. ac_header_preproc=yes
  9428. else
  9429. echo "$as_me: failed program was:" >&5
  9430. sed 's/^/| /' conftest.$ac_ext >&5
  9431. ac_header_preproc=no
  9432. fi
  9433. rm -f conftest.err conftest.$ac_ext
  9434. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9435. echo "${ECHO_T}$ac_header_preproc" >&6
  9436. # So? What about this header?
  9437. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  9438. yes:no: )
  9439. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9440. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9441. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9442. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9443. ac_header_preproc=yes
  9444. ;;
  9445. no:yes:* )
  9446. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9447. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9448. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9449. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9450. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9451. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9452. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9453. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9454. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9455. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9456. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9457. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9458. (
  9459. cat <<\_ASBOX
  9460. ## ------------------------------------------ ##
  9461. ## Report this to the AC_PACKAGE_NAME lists. ##
  9462. ## ------------------------------------------ ##
  9463. _ASBOX
  9464. ) |
  9465. sed "s/^/$as_me: WARNING: /" >&2
  9466. ;;
  9467. esac
  9468. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9469. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9470. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9471. echo $ECHO_N "(cached) $ECHO_C" >&6
  9472. else
  9473. eval "$as_ac_Header=\$ac_header_preproc"
  9474. fi
  9475. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9476. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9477. fi
  9478. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9479. cat >>confdefs.h <<_ACEOF
  9480. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9481. _ACEOF
  9482. fi
  9483. done
  9484. echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
  9485. echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
  9486. if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
  9487. echo $ECHO_N "(cached) $ECHO_C" >&6
  9488. else
  9489. if test "$cross_compiling" = yes; then
  9490. ac_cv_func_realloc_0_nonnull=no
  9491. else
  9492. cat >conftest.$ac_ext <<_ACEOF
  9493. /* confdefs.h. */
  9494. _ACEOF
  9495. cat confdefs.h >>conftest.$ac_ext
  9496. cat >>conftest.$ac_ext <<_ACEOF
  9497. /* end confdefs.h. */
  9498. #if STDC_HEADERS || HAVE_STDLIB_H
  9499. # include <stdlib.h>
  9500. #else
  9501. char *realloc ();
  9502. #endif
  9503. int
  9504. main ()
  9505. {
  9506. exit (realloc (0, 0) ? 0 : 1);
  9507. ;
  9508. return 0;
  9509. }
  9510. _ACEOF
  9511. rm -f conftest$ac_exeext
  9512. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9513. (eval $ac_link) 2>&5
  9514. ac_status=$?
  9515. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9516. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9517. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9518. (eval $ac_try) 2>&5
  9519. ac_status=$?
  9520. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9521. (exit $ac_status); }; }; then
  9522. ac_cv_func_realloc_0_nonnull=yes
  9523. else
  9524. echo "$as_me: program exited with status $ac_status" >&5
  9525. echo "$as_me: failed program was:" >&5
  9526. sed 's/^/| /' conftest.$ac_ext >&5
  9527. ( exit $ac_status )
  9528. ac_cv_func_realloc_0_nonnull=no
  9529. fi
  9530. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9531. fi
  9532. fi
  9533. echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
  9534. echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
  9535. if test $ac_cv_func_realloc_0_nonnull = yes; then
  9536. cat >>confdefs.h <<\_ACEOF
  9537. #define HAVE_REALLOC 1
  9538. _ACEOF
  9539. else
  9540. cat >>confdefs.h <<\_ACEOF
  9541. #define HAVE_REALLOC 0
  9542. _ACEOF
  9543. case $LIBOBJS in
  9544. "realloc.$ac_objext" | \
  9545. *" realloc.$ac_objext" | \
  9546. "realloc.$ac_objext "* | \
  9547. *" realloc.$ac_objext "* ) ;;
  9548. *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
  9549. esac
  9550. cat >>confdefs.h <<\_ACEOF
  9551. #define realloc rpl_realloc
  9552. _ACEOF
  9553. fi
  9554. echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  9555. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
  9556. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  9557. echo $ECHO_N "(cached) $ECHO_C" >&6
  9558. else
  9559. if test "$cross_compiling" = yes; then
  9560. ac_cv_func_stat_empty_string_bug=yes
  9561. else
  9562. cat >conftest.$ac_ext <<_ACEOF
  9563. /* confdefs.h. */
  9564. _ACEOF
  9565. cat confdefs.h >>conftest.$ac_ext
  9566. cat >>conftest.$ac_ext <<_ACEOF
  9567. /* end confdefs.h. */
  9568. $ac_includes_default
  9569. int
  9570. main ()
  9571. {
  9572. struct stat sbuf;
  9573. exit (stat ("", &sbuf) ? 1 : 0);
  9574. ;
  9575. return 0;
  9576. }
  9577. _ACEOF
  9578. rm -f conftest$ac_exeext
  9579. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9580. (eval $ac_link) 2>&5
  9581. ac_status=$?
  9582. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9583. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9584. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9585. (eval $ac_try) 2>&5
  9586. ac_status=$?
  9587. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9588. (exit $ac_status); }; }; then
  9589. ac_cv_func_stat_empty_string_bug=yes
  9590. else
  9591. echo "$as_me: program exited with status $ac_status" >&5
  9592. echo "$as_me: failed program was:" >&5
  9593. sed 's/^/| /' conftest.$ac_ext >&5
  9594. ( exit $ac_status )
  9595. ac_cv_func_stat_empty_string_bug=no
  9596. fi
  9597. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9598. fi
  9599. fi
  9600. echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  9601. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
  9602. if test $ac_cv_func_stat_empty_string_bug = yes; then
  9603. case $LIBOBJS in
  9604. "stat.$ac_objext" | \
  9605. *" stat.$ac_objext" | \
  9606. "stat.$ac_objext "* | \
  9607. *" stat.$ac_objext "* ) ;;
  9608. *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
  9609. esac
  9610. cat >>confdefs.h <<_ACEOF
  9611. #define HAVE_STAT_EMPTY_STRING_BUG 1
  9612. _ACEOF
  9613. fi
  9614. for ac_func in strftime
  9615. do
  9616. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9617. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9618. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9619. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9620. echo $ECHO_N "(cached) $ECHO_C" >&6
  9621. else
  9622. cat >conftest.$ac_ext <<_ACEOF
  9623. /* confdefs.h. */
  9624. _ACEOF
  9625. cat confdefs.h >>conftest.$ac_ext
  9626. cat >>conftest.$ac_ext <<_ACEOF
  9627. /* end confdefs.h. */
  9628. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9629. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9630. #define $ac_func innocuous_$ac_func
  9631. /* System header to define __stub macros and hopefully few prototypes,
  9632. which can conflict with char $ac_func (); below.
  9633. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9634. <limits.h> exists even on freestanding compilers. */
  9635. #ifdef __STDC__
  9636. # include <limits.h>
  9637. #else
  9638. # include <assert.h>
  9639. #endif
  9640. #undef $ac_func
  9641. /* Override any gcc2 internal prototype to avoid an error. */
  9642. #ifdef __cplusplus
  9643. extern "C"
  9644. {
  9645. #endif
  9646. /* We use char because int might match the return type of a gcc2
  9647. builtin and then its argument prototype would still apply. */
  9648. char $ac_func ();
  9649. /* The GNU C library defines this for functions which it implements
  9650. to always fail with ENOSYS. Some functions are actually named
  9651. something starting with __ and the normal name is an alias. */
  9652. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9653. choke me
  9654. #else
  9655. char (*f) () = $ac_func;
  9656. #endif
  9657. #ifdef __cplusplus
  9658. }
  9659. #endif
  9660. int
  9661. main ()
  9662. {
  9663. return f != $ac_func;
  9664. ;
  9665. return 0;
  9666. }
  9667. _ACEOF
  9668. rm -f conftest.$ac_objext conftest$ac_exeext
  9669. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9670. (eval $ac_link) 2>conftest.er1
  9671. ac_status=$?
  9672. grep -v '^ *+' conftest.er1 >conftest.err
  9673. rm -f conftest.er1
  9674. cat conftest.err >&5
  9675. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9676. (exit $ac_status); } &&
  9677. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  9678. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9679. (eval $ac_try) 2>&5
  9680. ac_status=$?
  9681. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9682. (exit $ac_status); }; } &&
  9683. { ac_try='test -s conftest$ac_exeext'
  9684. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9685. (eval $ac_try) 2>&5
  9686. ac_status=$?
  9687. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9688. (exit $ac_status); }; }; then
  9689. eval "$as_ac_var=yes"
  9690. else
  9691. echo "$as_me: failed program was:" >&5
  9692. sed 's/^/| /' conftest.$ac_ext >&5
  9693. eval "$as_ac_var=no"
  9694. fi
  9695. rm -f conftest.err conftest.$ac_objext \
  9696. conftest$ac_exeext conftest.$ac_ext
  9697. fi
  9698. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9699. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9700. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9701. cat >>confdefs.h <<_ACEOF
  9702. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9703. _ACEOF
  9704. else
  9705. # strftime is in -lintl on SCO UNIX.
  9706. echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  9707. echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
  9708. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  9709. echo $ECHO_N "(cached) $ECHO_C" >&6
  9710. else
  9711. ac_check_lib_save_LIBS=$LIBS
  9712. LIBS="-lintl $LIBS"
  9713. cat >conftest.$ac_ext <<_ACEOF
  9714. /* confdefs.h. */
  9715. _ACEOF
  9716. cat confdefs.h >>conftest.$ac_ext
  9717. cat >>conftest.$ac_ext <<_ACEOF
  9718. /* end confdefs.h. */
  9719. /* Override any gcc2 internal prototype to avoid an error. */
  9720. #ifdef __cplusplus
  9721. extern "C"
  9722. #endif
  9723. /* We use char because int might match the return type of a gcc2
  9724. builtin and then its argument prototype would still apply. */
  9725. char strftime ();
  9726. int
  9727. main ()
  9728. {
  9729. strftime ();
  9730. ;
  9731. return 0;
  9732. }
  9733. _ACEOF
  9734. rm -f conftest.$ac_objext conftest$ac_exeext
  9735. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9736. (eval $ac_link) 2>conftest.er1
  9737. ac_status=$?
  9738. grep -v '^ *+' conftest.er1 >conftest.err
  9739. rm -f conftest.er1
  9740. cat conftest.err >&5
  9741. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9742. (exit $ac_status); } &&
  9743. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  9744. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9745. (eval $ac_try) 2>&5
  9746. ac_status=$?
  9747. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9748. (exit $ac_status); }; } &&
  9749. { ac_try='test -s conftest$ac_exeext'
  9750. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9751. (eval $ac_try) 2>&5
  9752. ac_status=$?
  9753. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9754. (exit $ac_status); }; }; then
  9755. ac_cv_lib_intl_strftime=yes
  9756. else
  9757. echo "$as_me: failed program was:" >&5
  9758. sed 's/^/| /' conftest.$ac_ext >&5
  9759. ac_cv_lib_intl_strftime=no
  9760. fi
  9761. rm -f conftest.err conftest.$ac_objext \
  9762. conftest$ac_exeext conftest.$ac_ext
  9763. LIBS=$ac_check_lib_save_LIBS
  9764. fi
  9765. echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  9766. echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
  9767. if test $ac_cv_lib_intl_strftime = yes; then
  9768. cat >>confdefs.h <<\_ACEOF
  9769. #define HAVE_STRFTIME 1
  9770. _ACEOF
  9771. LIBS="-lintl $LIBS"
  9772. fi
  9773. fi
  9774. done
  9775. #checkpoint
  9776. cat >confcache <<\_ACEOF
  9777. # This file is a shell script that caches the results of configure
  9778. # tests run on this system so they can be shared between configure
  9779. # scripts and configure runs, see configure's option --config-cache.
  9780. # It is not useful on other systems. If it contains results you don't
  9781. # want to keep, you may remove or edit it.
  9782. #
  9783. # config.status only pays attention to the cache file if you give it
  9784. # the --recheck option to rerun configure.
  9785. #
  9786. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  9787. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  9788. # following values.
  9789. _ACEOF
  9790. # The following way of writing the cache mishandles newlines in values,
  9791. # but we know of no workaround that is simple, portable, and efficient.
  9792. # So, don't put newlines in cache variables' values.
  9793. # Ultrix sh set writes to stderr and can't be redirected directly,
  9794. # and sets the high bit in the cache file unless we assign to the vars.
  9795. {
  9796. (set) 2>&1 |
  9797. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  9798. *ac_space=\ *)
  9799. # `set' does not quote correctly, so add quotes (double-quote
  9800. # substitution turns \\\\ into \\, and sed turns \\ into \).
  9801. sed -n \
  9802. "s/'/'\\\\''/g;
  9803. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  9804. ;;
  9805. *)
  9806. # `set' quotes correctly as required by POSIX, so do not add quotes.
  9807. sed -n \
  9808. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  9809. ;;
  9810. esac;
  9811. } |
  9812. sed '
  9813. t clear
  9814. : clear
  9815. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  9816. t end
  9817. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  9818. : end' >>confcache
  9819. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  9820. if test -w $cache_file; then
  9821. test "x$cache_file" != "x/dev/null"
  9822. cat confcache >$cache_file
  9823. else
  9824. echo "not updating unwritable cache $cache_file"
  9825. fi
  9826. fi
  9827. rm -f confcache
  9828. for ac_func in clock fsync getrusage isascii inet_aton gethostbyname2
  9829. do
  9830. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9831. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9832. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9833. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9834. echo $ECHO_N "(cached) $ECHO_C" >&6
  9835. else
  9836. cat >conftest.$ac_ext <<_ACEOF
  9837. /* confdefs.h. */
  9838. _ACEOF
  9839. cat confdefs.h >>conftest.$ac_ext
  9840. cat >>conftest.$ac_ext <<_ACEOF
  9841. /* end confdefs.h. */
  9842. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9843. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9844. #define $ac_func innocuous_$ac_func
  9845. /* System header to define __stub macros and hopefully few prototypes,
  9846. which can conflict with char $ac_func (); below.
  9847. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9848. <limits.h> exists even on freestanding compilers. */
  9849. #ifdef __STDC__
  9850. # include <limits.h>
  9851. #else
  9852. # include <assert.h>
  9853. #endif
  9854. #undef $ac_func
  9855. /* Override any gcc2 internal prototype to avoid an error. */
  9856. #ifdef __cplusplus
  9857. extern "C"
  9858. {
  9859. #endif
  9860. /* We use char because int might match the return type of a gcc2
  9861. builtin and then its argument prototype would still apply. */
  9862. char $ac_func ();
  9863. /* The GNU C library defines this for functions which it implements
  9864. to always fail with ENOSYS. Some functions are actually named
  9865. something starting with __ and the normal name is an alias. */
  9866. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9867. choke me
  9868. #else
  9869. char (*f) () = $ac_func;
  9870. #endif
  9871. #ifdef __cplusplus
  9872. }
  9873. #endif
  9874. int
  9875. main ()
  9876. {
  9877. return f != $ac_func;
  9878. ;
  9879. return 0;
  9880. }
  9881. _ACEOF
  9882. rm -f conftest.$ac_objext conftest$ac_exeext
  9883. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9884. (eval $ac_link) 2>conftest.er1
  9885. ac_status=$?
  9886. grep -v '^ *+' conftest.er1 >conftest.err
  9887. rm -f conftest.er1
  9888. cat conftest.err >&5
  9889. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9890. (exit $ac_status); } &&
  9891. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  9892. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9893. (eval $ac_try) 2>&5
  9894. ac_status=$?
  9895. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9896. (exit $ac_status); }; } &&
  9897. { ac_try='test -s conftest$ac_exeext'
  9898. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9899. (eval $ac_try) 2>&5
  9900. ac_status=$?
  9901. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9902. (exit $ac_status); }; }; then
  9903. eval "$as_ac_var=yes"
  9904. else
  9905. echo "$as_me: failed program was:" >&5
  9906. sed 's/^/| /' conftest.$ac_ext >&5
  9907. eval "$as_ac_var=no"
  9908. fi
  9909. rm -f conftest.err conftest.$ac_objext \
  9910. conftest$ac_exeext conftest.$ac_ext
  9911. fi
  9912. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9913. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9914. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9915. cat >>confdefs.h <<_ACEOF
  9916. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9917. _ACEOF
  9918. fi
  9919. done
  9920. for ac_func in getipnodebyname memcpy memset random rename snprintf srandom
  9921. do
  9922. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9923. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9924. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9925. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9926. echo $ECHO_N "(cached) $ECHO_C" >&6
  9927. else
  9928. cat >conftest.$ac_ext <<_ACEOF
  9929. /* confdefs.h. */
  9930. _ACEOF
  9931. cat confdefs.h >>conftest.$ac_ext
  9932. cat >>conftest.$ac_ext <<_ACEOF
  9933. /* end confdefs.h. */
  9934. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9935. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9936. #define $ac_func innocuous_$ac_func
  9937. /* System header to define __stub macros and hopefully few prototypes,
  9938. which can conflict with char $ac_func (); below.
  9939. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9940. <limits.h> exists even on freestanding compilers. */
  9941. #ifdef __STDC__
  9942. # include <limits.h>
  9943. #else
  9944. # include <assert.h>
  9945. #endif
  9946. #undef $ac_func
  9947. /* Override any gcc2 internal prototype to avoid an error. */
  9948. #ifdef __cplusplus
  9949. extern "C"
  9950. {
  9951. #endif
  9952. /* We use char because int might match the return type of a gcc2
  9953. builtin and then its argument prototype would still apply. */
  9954. char $ac_func ();
  9955. /* The GNU C library defines this for functions which it implements
  9956. to always fail with ENOSYS. Some functions are actually named
  9957. something starting with __ and the normal name is an alias. */
  9958. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9959. choke me
  9960. #else
  9961. char (*f) () = $ac_func;
  9962. #endif
  9963. #ifdef __cplusplus
  9964. }
  9965. #endif
  9966. int
  9967. main ()
  9968. {
  9969. return f != $ac_func;
  9970. ;
  9971. return 0;
  9972. }
  9973. _ACEOF
  9974. rm -f conftest.$ac_objext conftest$ac_exeext
  9975. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9976. (eval $ac_link) 2>conftest.er1
  9977. ac_status=$?
  9978. grep -v '^ *+' conftest.er1 >conftest.err
  9979. rm -f conftest.er1
  9980. cat conftest.err >&5
  9981. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9982. (exit $ac_status); } &&
  9983. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  9984. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9985. (eval $ac_try) 2>&5
  9986. ac_status=$?
  9987. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9988. (exit $ac_status); }; } &&
  9989. { ac_try='test -s conftest$ac_exeext'
  9990. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9991. (eval $ac_try) 2>&5
  9992. ac_status=$?
  9993. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9994. (exit $ac_status); }; }; then
  9995. eval "$as_ac_var=yes"
  9996. else
  9997. echo "$as_me: failed program was:" >&5
  9998. sed 's/^/| /' conftest.$ac_ext >&5
  9999. eval "$as_ac_var=no"
  10000. fi
  10001. rm -f conftest.err conftest.$ac_objext \
  10002. conftest$ac_exeext conftest.$ac_ext
  10003. fi
  10004. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10005. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10006. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10007. cat >>confdefs.h <<_ACEOF
  10008. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10009. _ACEOF
  10010. fi
  10011. done
  10012. #checkpoint
  10013. cat >confcache <<\_ACEOF
  10014. # This file is a shell script that caches the results of configure
  10015. # tests run on this system so they can be shared between configure
  10016. # scripts and configure runs, see configure's option --config-cache.
  10017. # It is not useful on other systems. If it contains results you don't
  10018. # want to keep, you may remove or edit it.
  10019. #
  10020. # config.status only pays attention to the cache file if you give it
  10021. # the --recheck option to rerun configure.
  10022. #
  10023. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10024. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10025. # following values.
  10026. _ACEOF
  10027. # The following way of writing the cache mishandles newlines in values,
  10028. # but we know of no workaround that is simple, portable, and efficient.
  10029. # So, don't put newlines in cache variables' values.
  10030. # Ultrix sh set writes to stderr and can't be redirected directly,
  10031. # and sets the high bit in the cache file unless we assign to the vars.
  10032. {
  10033. (set) 2>&1 |
  10034. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10035. *ac_space=\ *)
  10036. # `set' does not quote correctly, so add quotes (double-quote
  10037. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10038. sed -n \
  10039. "s/'/'\\\\''/g;
  10040. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10041. ;;
  10042. *)
  10043. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10044. sed -n \
  10045. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10046. ;;
  10047. esac;
  10048. } |
  10049. sed '
  10050. t clear
  10051. : clear
  10052. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10053. t end
  10054. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10055. : end' >>confcache
  10056. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10057. if test -w $cache_file; then
  10058. test "x$cache_file" != "x/dev/null"
  10059. cat confcache >$cache_file
  10060. else
  10061. echo "not updating unwritable cache $cache_file"
  10062. fi
  10063. fi
  10064. rm -f confcache
  10065. for ac_func in strcasecmp strncasecmp vsnprintf
  10066. do
  10067. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10068. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10069. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10070. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10071. echo $ECHO_N "(cached) $ECHO_C" >&6
  10072. else
  10073. cat >conftest.$ac_ext <<_ACEOF
  10074. /* confdefs.h. */
  10075. _ACEOF
  10076. cat confdefs.h >>conftest.$ac_ext
  10077. cat >>conftest.$ac_ext <<_ACEOF
  10078. /* end confdefs.h. */
  10079. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10080. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10081. #define $ac_func innocuous_$ac_func
  10082. /* System header to define __stub macros and hopefully few prototypes,
  10083. which can conflict with char $ac_func (); below.
  10084. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10085. <limits.h> exists even on freestanding compilers. */
  10086. #ifdef __STDC__
  10087. # include <limits.h>
  10088. #else
  10089. # include <assert.h>
  10090. #endif
  10091. #undef $ac_func
  10092. /* Override any gcc2 internal prototype to avoid an error. */
  10093. #ifdef __cplusplus
  10094. extern "C"
  10095. {
  10096. #endif
  10097. /* We use char because int might match the return type of a gcc2
  10098. builtin and then its argument prototype would still apply. */
  10099. char $ac_func ();
  10100. /* The GNU C library defines this for functions which it implements
  10101. to always fail with ENOSYS. Some functions are actually named
  10102. something starting with __ and the normal name is an alias. */
  10103. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10104. choke me
  10105. #else
  10106. char (*f) () = $ac_func;
  10107. #endif
  10108. #ifdef __cplusplus
  10109. }
  10110. #endif
  10111. int
  10112. main ()
  10113. {
  10114. return f != $ac_func;
  10115. ;
  10116. return 0;
  10117. }
  10118. _ACEOF
  10119. rm -f conftest.$ac_objext conftest$ac_exeext
  10120. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10121. (eval $ac_link) 2>conftest.er1
  10122. ac_status=$?
  10123. grep -v '^ *+' conftest.er1 >conftest.err
  10124. rm -f conftest.er1
  10125. cat conftest.err >&5
  10126. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10127. (exit $ac_status); } &&
  10128. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  10129. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10130. (eval $ac_try) 2>&5
  10131. ac_status=$?
  10132. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10133. (exit $ac_status); }; } &&
  10134. { ac_try='test -s conftest$ac_exeext'
  10135. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10136. (eval $ac_try) 2>&5
  10137. ac_status=$?
  10138. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10139. (exit $ac_status); }; }; then
  10140. eval "$as_ac_var=yes"
  10141. else
  10142. echo "$as_me: failed program was:" >&5
  10143. sed 's/^/| /' conftest.$ac_ext >&5
  10144. eval "$as_ac_var=no"
  10145. fi
  10146. rm -f conftest.err conftest.$ac_objext \
  10147. conftest$ac_exeext conftest.$ac_ext
  10148. fi
  10149. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10150. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10151. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10152. cat >>confdefs.h <<_ACEOF
  10153. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10154. _ACEOF
  10155. fi
  10156. done
  10157. #autoscan suggested this....
  10158. #These are recommended by autoscan, but no code supports it currently
  10159. #AC_CHECK_FUNCS([alarm bzero dup2 getcwd gethostbyaddr gethostbyname gethostname getpass gettimeofday mbrlen
  10160. #mkdir munmap realpath select setlocale socket strchr strerror strpbrk strrchr strstr strtol tzset])
  10161. for ac_func in vsprintf
  10162. do
  10163. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10164. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10165. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10166. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10167. echo $ECHO_N "(cached) $ECHO_C" >&6
  10168. else
  10169. cat >conftest.$ac_ext <<_ACEOF
  10170. /* confdefs.h. */
  10171. _ACEOF
  10172. cat confdefs.h >>conftest.$ac_ext
  10173. cat >>conftest.$ac_ext <<_ACEOF
  10174. /* end confdefs.h. */
  10175. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10176. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10177. #define $ac_func innocuous_$ac_func
  10178. /* System header to define __stub macros and hopefully few prototypes,
  10179. which can conflict with char $ac_func (); below.
  10180. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10181. <limits.h> exists even on freestanding compilers. */
  10182. #ifdef __STDC__
  10183. # include <limits.h>
  10184. #else
  10185. # include <assert.h>
  10186. #endif
  10187. #undef $ac_func
  10188. /* Override any gcc2 internal prototype to avoid an error. */
  10189. #ifdef __cplusplus
  10190. extern "C"
  10191. {
  10192. #endif
  10193. /* We use char because int might match the return type of a gcc2
  10194. builtin and then its argument prototype would still apply. */
  10195. char $ac_func ();
  10196. /* The GNU C library defines this for functions which it implements
  10197. to always fail with ENOSYS. Some functions are actually named
  10198. something starting with __ and the normal name is an alias. */
  10199. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10200. choke me
  10201. #else
  10202. char (*f) () = $ac_func;
  10203. #endif
  10204. #ifdef __cplusplus
  10205. }
  10206. #endif
  10207. int
  10208. main ()
  10209. {
  10210. return f != $ac_func;
  10211. ;
  10212. return 0;
  10213. }
  10214. _ACEOF
  10215. rm -f conftest.$ac_objext conftest$ac_exeext
  10216. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10217. (eval $ac_link) 2>conftest.er1
  10218. ac_status=$?
  10219. grep -v '^ *+' conftest.er1 >conftest.err
  10220. rm -f conftest.er1
  10221. cat conftest.err >&5
  10222. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10223. (exit $ac_status); } &&
  10224. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  10225. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10226. (eval $ac_try) 2>&5
  10227. ac_status=$?
  10228. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10229. (exit $ac_status); }; } &&
  10230. { ac_try='test -s conftest$ac_exeext'
  10231. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10232. (eval $ac_try) 2>&5
  10233. ac_status=$?
  10234. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10235. (exit $ac_status); }; }; then
  10236. eval "$as_ac_var=yes"
  10237. else
  10238. echo "$as_me: failed program was:" >&5
  10239. sed 's/^/| /' conftest.$ac_ext >&5
  10240. eval "$as_ac_var=no"
  10241. fi
  10242. rm -f conftest.err conftest.$ac_objext \
  10243. conftest$ac_exeext conftest.$ac_ext
  10244. fi
  10245. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10246. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10247. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10248. cat >>confdefs.h <<_ACEOF
  10249. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10250. _ACEOF
  10251. fi
  10252. done
  10253. if test "$ac_cv_func_vsprintf" = "no"
  10254. then
  10255. cat << 'EOF' >&2
  10256. configure: error:
  10257. Your system does not have the sprintf/vsprintf libraries.
  10258. These are required to compile almost anything. Sorry.
  10259. EOF
  10260. exit 1
  10261. fi
  10262. for ac_func in uname
  10263. do
  10264. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10265. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10266. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10267. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10268. echo $ECHO_N "(cached) $ECHO_C" >&6
  10269. else
  10270. cat >conftest.$ac_ext <<_ACEOF
  10271. /* confdefs.h. */
  10272. _ACEOF
  10273. cat confdefs.h >>conftest.$ac_ext
  10274. cat >>conftest.$ac_ext <<_ACEOF
  10275. /* end confdefs.h. */
  10276. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10277. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10278. #define $ac_func innocuous_$ac_func
  10279. /* System header to define __stub macros and hopefully few prototypes,
  10280. which can conflict with char $ac_func (); below.
  10281. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10282. <limits.h> exists even on freestanding compilers. */
  10283. #ifdef __STDC__
  10284. # include <limits.h>
  10285. #else
  10286. # include <assert.h>
  10287. #endif
  10288. #undef $ac_func
  10289. /* Override any gcc2 internal prototype to avoid an error. */
  10290. #ifdef __cplusplus
  10291. extern "C"
  10292. {
  10293. #endif
  10294. /* We use char because int might match the return type of a gcc2
  10295. builtin and then its argument prototype would still apply. */
  10296. char $ac_func ();
  10297. /* The GNU C library defines this for functions which it implements
  10298. to always fail with ENOSYS. Some functions are actually named
  10299. something starting with __ and the normal name is an alias. */
  10300. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10301. choke me
  10302. #else
  10303. char (*f) () = $ac_func;
  10304. #endif
  10305. #ifdef __cplusplus
  10306. }
  10307. #endif
  10308. int
  10309. main ()
  10310. {
  10311. return f != $ac_func;
  10312. ;
  10313. return 0;
  10314. }
  10315. _ACEOF
  10316. rm -f conftest.$ac_objext conftest$ac_exeext
  10317. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10318. (eval $ac_link) 2>conftest.er1
  10319. ac_status=$?
  10320. grep -v '^ *+' conftest.er1 >conftest.err
  10321. rm -f conftest.er1
  10322. cat conftest.err >&5
  10323. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10324. (exit $ac_status); } &&
  10325. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  10326. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10327. (eval $ac_try) 2>&5
  10328. ac_status=$?
  10329. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10330. (exit $ac_status); }; } &&
  10331. { ac_try='test -s conftest$ac_exeext'
  10332. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10333. (eval $ac_try) 2>&5
  10334. ac_status=$?
  10335. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10336. (exit $ac_status); }; }; then
  10337. eval "$as_ac_var=yes"
  10338. else
  10339. echo "$as_me: failed program was:" >&5
  10340. sed 's/^/| /' conftest.$ac_ext >&5
  10341. eval "$as_ac_var=no"
  10342. fi
  10343. rm -f conftest.err conftest.$ac_objext \
  10344. conftest$ac_exeext conftest.$ac_ext
  10345. fi
  10346. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10347. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10348. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10349. cat >>confdefs.h <<_ACEOF
  10350. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10351. _ACEOF
  10352. fi
  10353. done
  10354. if test "$ac_cv_func_uname" = "no"
  10355. then
  10356. cat << 'EOF' >&2
  10357. configure: error:
  10358. Your system does not have the uname() function.
  10359. This is required for the botpack.
  10360. EOF
  10361. exit 1
  10362. fi
  10363. # Make sure we have stdc headers, since we can't compile without them
  10364. if test "$ac_cv_header_stdc" = "no"
  10365. then
  10366. cat << 'EOF' >&2
  10367. configure: error:
  10368. Your system must support ANSI C Header files.
  10369. These are required for the language support. Sorry.
  10370. EOF
  10371. exit 1
  10372. fi
  10373. #checkpoint
  10374. cat >confcache <<\_ACEOF
  10375. # This file is a shell script that caches the results of configure
  10376. # tests run on this system so they can be shared between configure
  10377. # scripts and configure runs, see configure's option --config-cache.
  10378. # It is not useful on other systems. If it contains results you don't
  10379. # want to keep, you may remove or edit it.
  10380. #
  10381. # config.status only pays attention to the cache file if you give it
  10382. # the --recheck option to rerun configure.
  10383. #
  10384. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10385. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10386. # following values.
  10387. _ACEOF
  10388. # The following way of writing the cache mishandles newlines in values,
  10389. # but we know of no workaround that is simple, portable, and efficient.
  10390. # So, don't put newlines in cache variables' values.
  10391. # Ultrix sh set writes to stderr and can't be redirected directly,
  10392. # and sets the high bit in the cache file unless we assign to the vars.
  10393. {
  10394. (set) 2>&1 |
  10395. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10396. *ac_space=\ *)
  10397. # `set' does not quote correctly, so add quotes (double-quote
  10398. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10399. sed -n \
  10400. "s/'/'\\\\''/g;
  10401. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10402. ;;
  10403. *)
  10404. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10405. sed -n \
  10406. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10407. ;;
  10408. esac;
  10409. } |
  10410. sed '
  10411. t clear
  10412. : clear
  10413. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10414. t end
  10415. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10416. : end' >>confcache
  10417. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10418. if test -w $cache_file; then
  10419. test "x$cache_file" != "x/dev/null"
  10420. cat confcache >$cache_file
  10421. else
  10422. echo "not updating unwritable cache $cache_file"
  10423. fi
  10424. fi
  10425. rm -f confcache
  10426. VERSION=`grep "char" $srcdir/src/main.c | $AWK '/egg_version/ {print $5}' | sed -e 's/\"//g' | sed -e 's/\;//g'`
  10427. version_num=`echo $VERSION | $AWK 'BEGIN {FS = "."} {printf("%d%02d%02d", $1, $2, $3)}'`
  10428. cat >>confdefs.h <<_ACEOF
  10429. #define EGG_VERSION $version_num
  10430. _ACEOF
  10431. #FIND_WRAPS
  10432. case "$srcdir" in
  10433. [\\/]* | ?:[\\/]*)
  10434. MOD_UPDIR=""
  10435. ;;
  10436. *)
  10437. MOD_UPDIR="../"
  10438. ;;
  10439. esac
  10440. files="src/Makefile.in src/compat/Makefile.in src/crypto/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"
  10441. for mf in $files; do
  10442. # Strip MF so we end up with the name of the file.
  10443. # echo "MF: $mf"
  10444. mf=`echo "$mf" | sed -e 's/:.*$//'`
  10445. dirpart=`(dirname "$mf") 2>/dev/null ||
  10446. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10447. X"$mf" : 'X\(//\)[^/]' \| \
  10448. X"$mf" : 'X\(//\)$' \| \
  10449. X"$mf" : 'X\(/\)' \| \
  10450. . : '\(.\)' 2>/dev/null ||
  10451. echo X"$mf" |
  10452. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  10453. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  10454. /^X\(\/\/\)$/{ s//\1/; q; }
  10455. /^X\(\/\).*/{ s//\1/; q; }
  10456. s/.*/./; q'`
  10457. # echo "dirpart: $dirpart mf: $mf"
  10458. # rm -rf "$dirpart/.deps/"
  10459. rm -f "$dirpart/.deps/includes"
  10460. test -d "$dirpart/.deps" || mkdir "$dirpart/.deps"
  10461. for file in `sed -n -e '
  10462. /^OBJS = .*\\\\$/ {
  10463. s/^OBJS = //
  10464. :loop
  10465. s/\\\\$//
  10466. p
  10467. n
  10468. /\\\\$/ b loop
  10469. p
  10470. }
  10471. /^OBJS = / s/^OBJS = //p' < "$mf"`;
  10472. do
  10473. base=`basename $file .o`
  10474. test -f "$dirpart/$base.c" || continue
  10475. if ! test -f "$dirpart/.deps/$base.Po"; then
  10476. echo '# dummy' > "$dirpart/.deps/$base.Po"
  10477. #Remove the .o file, because it needs to be recompiled for its dependancies.
  10478. if test -f "$dirpart/$base.o"; then
  10479. rm -f "$dirpart/$base.o"
  10480. fi
  10481. fi
  10482. echo "include .deps/$base.Po" >> "$dirpart/.deps/includes"
  10483. echo "_$base.c:" >> "$dirpart/.deps/includes"
  10484. done
  10485. done
  10486. ac_config_files="$ac_config_files Makefile src/Makefile src/compat/Makefile src/crypto/Makefile src/mod/Makefile src/mod/dns.mod/Makefile"
  10487. cat >confcache <<\_ACEOF
  10488. # This file is a shell script that caches the results of configure
  10489. # tests run on this system so they can be shared between configure
  10490. # scripts and configure runs, see configure's option --config-cache.
  10491. # It is not useful on other systems. If it contains results you don't
  10492. # want to keep, you may remove or edit it.
  10493. #
  10494. # config.status only pays attention to the cache file if you give it
  10495. # the --recheck option to rerun configure.
  10496. #
  10497. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10498. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10499. # following values.
  10500. _ACEOF
  10501. # The following way of writing the cache mishandles newlines in values,
  10502. # but we know of no workaround that is simple, portable, and efficient.
  10503. # So, don't put newlines in cache variables' values.
  10504. # Ultrix sh set writes to stderr and can't be redirected directly,
  10505. # and sets the high bit in the cache file unless we assign to the vars.
  10506. {
  10507. (set) 2>&1 |
  10508. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10509. *ac_space=\ *)
  10510. # `set' does not quote correctly, so add quotes (double-quote
  10511. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10512. sed -n \
  10513. "s/'/'\\\\''/g;
  10514. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10515. ;;
  10516. *)
  10517. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10518. sed -n \
  10519. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10520. ;;
  10521. esac;
  10522. } |
  10523. sed '
  10524. t clear
  10525. : clear
  10526. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10527. t end
  10528. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10529. : end' >>confcache
  10530. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10531. if test -w $cache_file; then
  10532. test "x$cache_file" != "x/dev/null"
  10533. cat confcache >$cache_file
  10534. else
  10535. echo "not updating unwritable cache $cache_file"
  10536. fi
  10537. fi
  10538. rm -f confcache
  10539. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  10540. # Let make expand exec_prefix.
  10541. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  10542. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  10543. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  10544. # trailing colons and then remove the whole line if VPATH becomes empty
  10545. # (actually we leave an empty line to preserve line numbers).
  10546. if test "x$srcdir" = x.; then
  10547. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  10548. s/:*\$(srcdir):*/:/;
  10549. s/:*\${srcdir}:*/:/;
  10550. s/:*@srcdir@:*/:/;
  10551. s/^\([^=]*=[ ]*\):*/\1/;
  10552. s/:*$//;
  10553. s/^[^=]*=[ ]*$//;
  10554. }'
  10555. fi
  10556. DEFS=-DHAVE_CONFIG_H
  10557. ac_libobjs=
  10558. ac_ltlibobjs=
  10559. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  10560. # 1. Remove the extension, and $U if already installed.
  10561. ac_i=`echo "$ac_i" |
  10562. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  10563. # 2. Add them.
  10564. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  10565. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  10566. done
  10567. LIBOBJS=$ac_libobjs
  10568. LTLIBOBJS=$ac_ltlibobjs
  10569. : ${CONFIG_STATUS=./config.status}
  10570. ac_clean_files_save=$ac_clean_files
  10571. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  10572. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  10573. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  10574. cat >$CONFIG_STATUS <<_ACEOF
  10575. #! $SHELL
  10576. # Generated by $as_me.
  10577. # Run this file to recreate the current configuration.
  10578. # Compiler output produced by configure, useful for debugging
  10579. # configure, is in config.log if it exists.
  10580. debug=false
  10581. ac_cs_recheck=false
  10582. ac_cs_silent=false
  10583. SHELL=\${CONFIG_SHELL-$SHELL}
  10584. _ACEOF
  10585. cat >>$CONFIG_STATUS <<\_ACEOF
  10586. ## --------------------- ##
  10587. ## M4sh Initialization. ##
  10588. ## --------------------- ##
  10589. # Be Bourne compatible
  10590. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  10591. emulate sh
  10592. NULLCMD=:
  10593. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  10594. # is contrary to our usage. Disable this feature.
  10595. alias -g '${1+"$@"}'='"$@"'
  10596. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  10597. set -o posix
  10598. fi
  10599. DUALCASE=1; export DUALCASE # for MKS sh
  10600. # Support unset when possible.
  10601. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  10602. as_unset=unset
  10603. else
  10604. as_unset=false
  10605. fi
  10606. # Work around bugs in pre-3.0 UWIN ksh.
  10607. $as_unset ENV MAIL MAILPATH
  10608. PS1='$ '
  10609. PS2='> '
  10610. PS4='+ '
  10611. # NLS nuisances.
  10612. for as_var in \
  10613. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  10614. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  10615. LC_TELEPHONE LC_TIME
  10616. do
  10617. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  10618. eval $as_var=C; export $as_var
  10619. else
  10620. $as_unset $as_var
  10621. fi
  10622. done
  10623. # Required to use basename.
  10624. if expr a : '\(a\)' >/dev/null 2>&1; then
  10625. as_expr=expr
  10626. else
  10627. as_expr=false
  10628. fi
  10629. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  10630. as_basename=basename
  10631. else
  10632. as_basename=false
  10633. fi
  10634. # Name of the executable.
  10635. as_me=`$as_basename "$0" ||
  10636. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  10637. X"$0" : 'X\(//\)$' \| \
  10638. X"$0" : 'X\(/\)$' \| \
  10639. . : '\(.\)' 2>/dev/null ||
  10640. echo X/"$0" |
  10641. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  10642. /^X\/\(\/\/\)$/{ s//\1/; q; }
  10643. /^X\/\(\/\).*/{ s//\1/; q; }
  10644. s/.*/./; q'`
  10645. # PATH needs CR, and LINENO needs CR and PATH.
  10646. # Avoid depending upon Character Ranges.
  10647. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  10648. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  10649. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  10650. as_cr_digits='0123456789'
  10651. as_cr_alnum=$as_cr_Letters$as_cr_digits
  10652. # The user is always right.
  10653. if test "${PATH_SEPARATOR+set}" != set; then
  10654. echo "#! /bin/sh" >conf$$.sh
  10655. echo "exit 0" >>conf$$.sh
  10656. chmod +x conf$$.sh
  10657. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  10658. PATH_SEPARATOR=';'
  10659. else
  10660. PATH_SEPARATOR=:
  10661. fi
  10662. rm -f conf$$.sh
  10663. fi
  10664. as_lineno_1=$LINENO
  10665. as_lineno_2=$LINENO
  10666. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  10667. test "x$as_lineno_1" != "x$as_lineno_2" &&
  10668. test "x$as_lineno_3" = "x$as_lineno_2" || {
  10669. # Find who we are. Look in the path if we contain no path at all
  10670. # relative or not.
  10671. case $0 in
  10672. *[\\/]* ) as_myself=$0 ;;
  10673. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10674. for as_dir in $PATH
  10675. do
  10676. IFS=$as_save_IFS
  10677. test -z "$as_dir" && as_dir=.
  10678. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  10679. done
  10680. ;;
  10681. esac
  10682. # We did not find ourselves, most probably we were run as `sh COMMAND'
  10683. # in which case we are not to be found in the path.
  10684. if test "x$as_myself" = x; then
  10685. as_myself=$0
  10686. fi
  10687. if test ! -f "$as_myself"; then
  10688. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  10689. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  10690. { (exit 1); exit 1; }; }
  10691. fi
  10692. case $CONFIG_SHELL in
  10693. '')
  10694. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10695. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  10696. do
  10697. IFS=$as_save_IFS
  10698. test -z "$as_dir" && as_dir=.
  10699. for as_base in sh bash ksh sh5; do
  10700. case $as_dir in
  10701. /*)
  10702. if ("$as_dir/$as_base" -c '
  10703. as_lineno_1=$LINENO
  10704. as_lineno_2=$LINENO
  10705. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  10706. test "x$as_lineno_1" != "x$as_lineno_2" &&
  10707. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  10708. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  10709. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  10710. CONFIG_SHELL=$as_dir/$as_base
  10711. export CONFIG_SHELL
  10712. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  10713. fi;;
  10714. esac
  10715. done
  10716. done
  10717. ;;
  10718. esac
  10719. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  10720. # uniformly replaced by the line number. The first 'sed' inserts a
  10721. # line-number line before each line; the second 'sed' does the real
  10722. # work. The second script uses 'N' to pair each line-number line
  10723. # with the numbered line, and appends trailing '-' during
  10724. # substitution so that $LINENO is not a special case at line end.
  10725. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  10726. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  10727. sed '=' <$as_myself |
  10728. sed '
  10729. N
  10730. s,$,-,
  10731. : loop
  10732. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  10733. t loop
  10734. s,-$,,
  10735. s,^['$as_cr_digits']*\n,,
  10736. ' >$as_me.lineno &&
  10737. chmod +x $as_me.lineno ||
  10738. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  10739. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  10740. { (exit 1); exit 1; }; }
  10741. # Don't try to exec as it changes $[0], causing all sort of problems
  10742. # (the dirname of $[0] is not the place where we might find the
  10743. # original and so on. Autoconf is especially sensible to this).
  10744. . ./$as_me.lineno
  10745. # Exit status is that of the last command.
  10746. exit
  10747. }
  10748. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  10749. *c*,-n*) ECHO_N= ECHO_C='
  10750. ' ECHO_T=' ' ;;
  10751. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  10752. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  10753. esac
  10754. if expr a : '\(a\)' >/dev/null 2>&1; then
  10755. as_expr=expr
  10756. else
  10757. as_expr=false
  10758. fi
  10759. rm -f conf$$ conf$$.exe conf$$.file
  10760. echo >conf$$.file
  10761. if ln -s conf$$.file conf$$ 2>/dev/null; then
  10762. # We could just check for DJGPP; but this test a) works b) is more generic
  10763. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  10764. if test -f conf$$.exe; then
  10765. # Don't use ln at all; we don't have any links
  10766. as_ln_s='cp -p'
  10767. else
  10768. as_ln_s='ln -s'
  10769. fi
  10770. elif ln conf$$.file conf$$ 2>/dev/null; then
  10771. as_ln_s=ln
  10772. else
  10773. as_ln_s='cp -p'
  10774. fi
  10775. rm -f conf$$ conf$$.exe conf$$.file
  10776. if mkdir -p . 2>/dev/null; then
  10777. as_mkdir_p=:
  10778. else
  10779. test -d ./-p && rmdir ./-p
  10780. as_mkdir_p=false
  10781. fi
  10782. as_executable_p="test -f"
  10783. # Sed expression to map a string onto a valid CPP name.
  10784. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  10785. # Sed expression to map a string onto a valid variable name.
  10786. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  10787. # IFS
  10788. # We need space, tab and new line, in precisely that order.
  10789. as_nl='
  10790. '
  10791. IFS=" $as_nl"
  10792. # CDPATH.
  10793. $as_unset CDPATH
  10794. exec 6>&1
  10795. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  10796. # report actual input values of CONFIG_FILES etc. instead of their
  10797. # values after options handling. Logging --version etc. is OK.
  10798. exec 5>>config.log
  10799. {
  10800. echo
  10801. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  10802. ## Running $as_me. ##
  10803. _ASBOX
  10804. } >&5
  10805. cat >&5 <<_CSEOF
  10806. This file was extended by $as_me, which was
  10807. generated by GNU Autoconf 2.59. Invocation command line was
  10808. CONFIG_FILES = $CONFIG_FILES
  10809. CONFIG_HEADERS = $CONFIG_HEADERS
  10810. CONFIG_LINKS = $CONFIG_LINKS
  10811. CONFIG_COMMANDS = $CONFIG_COMMANDS
  10812. $ $0 $@
  10813. _CSEOF
  10814. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  10815. echo >&5
  10816. _ACEOF
  10817. # Files that config.status was made for.
  10818. if test -n "$ac_config_files"; then
  10819. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  10820. fi
  10821. if test -n "$ac_config_headers"; then
  10822. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  10823. fi
  10824. if test -n "$ac_config_links"; then
  10825. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  10826. fi
  10827. if test -n "$ac_config_commands"; then
  10828. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  10829. fi
  10830. cat >>$CONFIG_STATUS <<\_ACEOF
  10831. ac_cs_usage="\
  10832. \`$as_me' instantiates files from templates according to the
  10833. current configuration.
  10834. Usage: $0 [OPTIONS] [FILE]...
  10835. -h, --help print this help, then exit
  10836. -V, --version print version number, then exit
  10837. -q, --quiet do not print progress messages
  10838. -d, --debug don't remove temporary files
  10839. --recheck update $as_me by reconfiguring in the same conditions
  10840. --file=FILE[:TEMPLATE]
  10841. instantiate the configuration file FILE
  10842. --header=FILE[:TEMPLATE]
  10843. instantiate the configuration header FILE
  10844. Configuration files:
  10845. $config_files
  10846. Configuration headers:
  10847. $config_headers
  10848. Report bugs to <bug-autoconf@gnu.org>."
  10849. _ACEOF
  10850. cat >>$CONFIG_STATUS <<_ACEOF
  10851. ac_cs_version="\\
  10852. config.status
  10853. configured by $0, generated by GNU Autoconf 2.59,
  10854. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  10855. Copyright (C) 2003 Free Software Foundation, Inc.
  10856. This config.status script is free software; the Free Software Foundation
  10857. gives unlimited permission to copy, distribute and modify it."
  10858. srcdir=$srcdir
  10859. _ACEOF
  10860. cat >>$CONFIG_STATUS <<\_ACEOF
  10861. # If no file are specified by the user, then we need to provide default
  10862. # value. By we need to know if files were specified by the user.
  10863. ac_need_defaults=:
  10864. while test $# != 0
  10865. do
  10866. case $1 in
  10867. --*=*)
  10868. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  10869. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  10870. ac_shift=:
  10871. ;;
  10872. -*)
  10873. ac_option=$1
  10874. ac_optarg=$2
  10875. ac_shift=shift
  10876. ;;
  10877. *) # This is not an option, so the user has probably given explicit
  10878. # arguments.
  10879. ac_option=$1
  10880. ac_need_defaults=false;;
  10881. esac
  10882. case $ac_option in
  10883. # Handling of the options.
  10884. _ACEOF
  10885. cat >>$CONFIG_STATUS <<\_ACEOF
  10886. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  10887. ac_cs_recheck=: ;;
  10888. --version | --vers* | -V )
  10889. echo "$ac_cs_version"; exit 0 ;;
  10890. --he | --h)
  10891. # Conflict between --help and --header
  10892. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  10893. Try \`$0 --help' for more information." >&5
  10894. echo "$as_me: error: ambiguous option: $1
  10895. Try \`$0 --help' for more information." >&2;}
  10896. { (exit 1); exit 1; }; };;
  10897. --help | --hel | -h )
  10898. echo "$ac_cs_usage"; exit 0 ;;
  10899. --debug | --d* | -d )
  10900. debug=: ;;
  10901. --file | --fil | --fi | --f )
  10902. $ac_shift
  10903. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  10904. ac_need_defaults=false;;
  10905. --header | --heade | --head | --hea )
  10906. $ac_shift
  10907. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  10908. ac_need_defaults=false;;
  10909. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  10910. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  10911. ac_cs_silent=: ;;
  10912. # This is an error.
  10913. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  10914. Try \`$0 --help' for more information." >&5
  10915. echo "$as_me: error: unrecognized option: $1
  10916. Try \`$0 --help' for more information." >&2;}
  10917. { (exit 1); exit 1; }; } ;;
  10918. *) ac_config_targets="$ac_config_targets $1" ;;
  10919. esac
  10920. shift
  10921. done
  10922. ac_configure_extra_args=
  10923. if $ac_cs_silent; then
  10924. exec 6>/dev/null
  10925. ac_configure_extra_args="$ac_configure_extra_args --silent"
  10926. fi
  10927. _ACEOF
  10928. cat >>$CONFIG_STATUS <<_ACEOF
  10929. if \$ac_cs_recheck; then
  10930. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  10931. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  10932. fi
  10933. _ACEOF
  10934. cat >>$CONFIG_STATUS <<\_ACEOF
  10935. for ac_config_target in $ac_config_targets
  10936. do
  10937. case "$ac_config_target" in
  10938. # Handling of arguments.
  10939. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  10940. "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  10941. "src/compat/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/compat/Makefile" ;;
  10942. "src/crypto/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/crypto/Makefile" ;;
  10943. "src/mod/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/mod/Makefile" ;;
  10944. "src/mod/dns.mod/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/mod/dns.mod/Makefile" ;;
  10945. "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  10946. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  10947. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  10948. { (exit 1); exit 1; }; };;
  10949. esac
  10950. done
  10951. # If the user did not use the arguments to specify the items to instantiate,
  10952. # then the envvar interface is used. Set only those that are not.
  10953. # We use the long form for the default assignment because of an extremely
  10954. # bizarre bug on SunOS 4.1.3.
  10955. if $ac_need_defaults; then
  10956. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  10957. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  10958. fi
  10959. # Have a temporary directory for convenience. Make it in the build tree
  10960. # simply because there is no reason to put it here, and in addition,
  10961. # creating and moving files from /tmp can sometimes cause problems.
  10962. # Create a temporary directory, and hook for its removal unless debugging.
  10963. $debug ||
  10964. {
  10965. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  10966. trap '{ (exit 1); exit 1; }' 1 2 13 15
  10967. }
  10968. # Create a (secure) tmp directory for tmp files.
  10969. {
  10970. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  10971. test -n "$tmp" && test -d "$tmp"
  10972. } ||
  10973. {
  10974. tmp=./confstat$$-$RANDOM
  10975. (umask 077 && mkdir $tmp)
  10976. } ||
  10977. {
  10978. echo "$me: cannot create a temporary directory in ." >&2
  10979. { (exit 1); exit 1; }
  10980. }
  10981. _ACEOF
  10982. cat >>$CONFIG_STATUS <<_ACEOF
  10983. #
  10984. # CONFIG_FILES section.
  10985. #
  10986. # No need to generate the scripts if there are no CONFIG_FILES.
  10987. # This happens for instance when ./config.status config.h
  10988. if test -n "\$CONFIG_FILES"; then
  10989. # Protect against being on the right side of a sed subst in config.status.
  10990. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  10991. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  10992. s,@SHELL@,$SHELL,;t t
  10993. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  10994. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  10995. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  10996. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  10997. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  10998. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  10999. s,@exec_prefix@,$exec_prefix,;t t
  11000. s,@prefix@,$prefix,;t t
  11001. s,@program_transform_name@,$program_transform_name,;t t
  11002. s,@bindir@,$bindir,;t t
  11003. s,@sbindir@,$sbindir,;t t
  11004. s,@libexecdir@,$libexecdir,;t t
  11005. s,@datadir@,$datadir,;t t
  11006. s,@sysconfdir@,$sysconfdir,;t t
  11007. s,@sharedstatedir@,$sharedstatedir,;t t
  11008. s,@localstatedir@,$localstatedir,;t t
  11009. s,@libdir@,$libdir,;t t
  11010. s,@includedir@,$includedir,;t t
  11011. s,@oldincludedir@,$oldincludedir,;t t
  11012. s,@infodir@,$infodir,;t t
  11013. s,@mandir@,$mandir,;t t
  11014. s,@build_alias@,$build_alias,;t t
  11015. s,@host_alias@,$host_alias,;t t
  11016. s,@target_alias@,$target_alias,;t t
  11017. s,@DEFS@,$DEFS,;t t
  11018. s,@ECHO_C@,$ECHO_C,;t t
  11019. s,@ECHO_N@,$ECHO_N,;t t
  11020. s,@ECHO_T@,$ECHO_T,;t t
  11021. s,@LIBS@,$LIBS,;t t
  11022. s,@egg_ac_parameters@,$egg_ac_parameters,;t t
  11023. s,@CXX@,$CXX,;t t
  11024. s,@CXXFLAGS@,$CXXFLAGS,;t t
  11025. s,@LDFLAGS@,$LDFLAGS,;t t
  11026. s,@CPPFLAGS@,$CPPFLAGS,;t t
  11027. s,@ac_ct_CXX@,$ac_ct_CXX,;t t
  11028. s,@EXEEXT@,$EXEEXT,;t t
  11029. s,@OBJEXT@,$OBJEXT,;t t
  11030. s,@CXXCPP@,$CXXCPP,;t t
  11031. s,@EGREP@,$EGREP,;t t
  11032. s,@CCDEPMODE@,$CCDEPMODE,;t t
  11033. s,@GCC3@,$GCC3,;t t
  11034. s,@SET_MAKE@,$SET_MAKE,;t t
  11035. s,@HEAD_1@,$HEAD_1,;t t
  11036. s,@AWK@,$AWK,;t t
  11037. s,@BASENAME@,$BASENAME,;t t
  11038. s,@OBJCOPY@,$OBJCOPY,;t t
  11039. s,@STRIP@,$STRIP,;t t
  11040. s,@UNAME@,$UNAME,;t t
  11041. s,@DISTCC@,$DISTCC,;t t
  11042. s,@RESLIB@,$RESLIB,;t t
  11043. s,@RESINCLUDE@,$RESINCLUDE,;t t
  11044. s,@CCDEBUG@,$CCDEBUG,;t t
  11045. s,@ZLIB@,$ZLIB,;t t
  11046. s,@LIBOBJS@,$LIBOBJS,;t t
  11047. s,@VERSION@,$VERSION,;t t
  11048. s,@NUMVER@,$NUMVER,;t t
  11049. s,@MOD_UPDIR@,$MOD_UPDIR,;t t
  11050. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  11051. CEOF
  11052. _ACEOF
  11053. cat >>$CONFIG_STATUS <<\_ACEOF
  11054. # Split the substitutions into bite-sized pieces for seds with
  11055. # small command number limits, like on Digital OSF/1 and HP-UX.
  11056. ac_max_sed_lines=48
  11057. ac_sed_frag=1 # Number of current file.
  11058. ac_beg=1 # First line for current file.
  11059. ac_end=$ac_max_sed_lines # Line after last line for current file.
  11060. ac_more_lines=:
  11061. ac_sed_cmds=
  11062. while $ac_more_lines; do
  11063. if test $ac_beg -gt 1; then
  11064. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  11065. else
  11066. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  11067. fi
  11068. if test ! -s $tmp/subs.frag; then
  11069. ac_more_lines=false
  11070. else
  11071. # The purpose of the label and of the branching condition is to
  11072. # speed up the sed processing (if there are no `@' at all, there
  11073. # is no need to browse any of the substitutions).
  11074. # These are the two extra sed commands mentioned above.
  11075. (echo ':t
  11076. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  11077. if test -z "$ac_sed_cmds"; then
  11078. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  11079. else
  11080. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  11081. fi
  11082. ac_sed_frag=`expr $ac_sed_frag + 1`
  11083. ac_beg=$ac_end
  11084. ac_end=`expr $ac_end + $ac_max_sed_lines`
  11085. fi
  11086. done
  11087. if test -z "$ac_sed_cmds"; then
  11088. ac_sed_cmds=cat
  11089. fi
  11090. fi # test -n "$CONFIG_FILES"
  11091. _ACEOF
  11092. cat >>$CONFIG_STATUS <<\_ACEOF
  11093. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  11094. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  11095. case $ac_file in
  11096. - | *:- | *:-:* ) # input from stdin
  11097. cat >$tmp/stdin
  11098. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11099. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11100. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11101. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11102. * ) ac_file_in=$ac_file.in ;;
  11103. esac
  11104. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  11105. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  11106. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11107. X"$ac_file" : 'X\(//\)[^/]' \| \
  11108. X"$ac_file" : 'X\(//\)$' \| \
  11109. X"$ac_file" : 'X\(/\)' \| \
  11110. . : '\(.\)' 2>/dev/null ||
  11111. echo X"$ac_file" |
  11112. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11113. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11114. /^X\(\/\/\)$/{ s//\1/; q; }
  11115. /^X\(\/\).*/{ s//\1/; q; }
  11116. s/.*/./; q'`
  11117. { if $as_mkdir_p; then
  11118. mkdir -p "$ac_dir"
  11119. else
  11120. as_dir="$ac_dir"
  11121. as_dirs=
  11122. while test ! -d "$as_dir"; do
  11123. as_dirs="$as_dir $as_dirs"
  11124. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  11125. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11126. X"$as_dir" : 'X\(//\)[^/]' \| \
  11127. X"$as_dir" : 'X\(//\)$' \| \
  11128. X"$as_dir" : 'X\(/\)' \| \
  11129. . : '\(.\)' 2>/dev/null ||
  11130. echo X"$as_dir" |
  11131. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11132. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11133. /^X\(\/\/\)$/{ s//\1/; q; }
  11134. /^X\(\/\).*/{ s//\1/; q; }
  11135. s/.*/./; q'`
  11136. done
  11137. test ! -n "$as_dirs" || mkdir $as_dirs
  11138. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  11139. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  11140. { (exit 1); exit 1; }; }; }
  11141. ac_builddir=.
  11142. if test "$ac_dir" != .; then
  11143. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  11144. # A "../" for each directory in $ac_dir_suffix.
  11145. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  11146. else
  11147. ac_dir_suffix= ac_top_builddir=
  11148. fi
  11149. case $srcdir in
  11150. .) # No --srcdir option. We are building in place.
  11151. ac_srcdir=.
  11152. if test -z "$ac_top_builddir"; then
  11153. ac_top_srcdir=.
  11154. else
  11155. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  11156. fi ;;
  11157. [\\/]* | ?:[\\/]* ) # Absolute path.
  11158. ac_srcdir=$srcdir$ac_dir_suffix;
  11159. ac_top_srcdir=$srcdir ;;
  11160. *) # Relative path.
  11161. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  11162. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  11163. esac
  11164. # Do not use `cd foo && pwd` to compute absolute paths, because
  11165. # the directories may not exist.
  11166. case `pwd` in
  11167. .) ac_abs_builddir="$ac_dir";;
  11168. *)
  11169. case "$ac_dir" in
  11170. .) ac_abs_builddir=`pwd`;;
  11171. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  11172. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  11173. esac;;
  11174. esac
  11175. case $ac_abs_builddir in
  11176. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  11177. *)
  11178. case ${ac_top_builddir}. in
  11179. .) ac_abs_top_builddir=$ac_abs_builddir;;
  11180. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  11181. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  11182. esac;;
  11183. esac
  11184. case $ac_abs_builddir in
  11185. .) ac_abs_srcdir=$ac_srcdir;;
  11186. *)
  11187. case $ac_srcdir in
  11188. .) ac_abs_srcdir=$ac_abs_builddir;;
  11189. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  11190. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  11191. esac;;
  11192. esac
  11193. case $ac_abs_builddir in
  11194. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  11195. *)
  11196. case $ac_top_srcdir in
  11197. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  11198. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  11199. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  11200. esac;;
  11201. esac
  11202. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11203. # use $as_me), people would be surprised to read:
  11204. # /* config.h. Generated by config.status. */
  11205. if test x"$ac_file" = x-; then
  11206. configure_input=
  11207. else
  11208. configure_input="$ac_file. "
  11209. fi
  11210. configure_input=$configure_input"Generated from `echo $ac_file_in |
  11211. sed 's,.*/,,'` by configure."
  11212. # First look for the input files in the build tree, otherwise in the
  11213. # src tree.
  11214. ac_file_inputs=`IFS=:
  11215. for f in $ac_file_in; do
  11216. case $f in
  11217. -) echo $tmp/stdin ;;
  11218. [\\/$]*)
  11219. # Absolute (can't be DOS-style, as IFS=:)
  11220. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11221. echo "$as_me: error: cannot find input file: $f" >&2;}
  11222. { (exit 1); exit 1; }; }
  11223. echo "$f";;
  11224. *) # Relative
  11225. if test -f "$f"; then
  11226. # Build tree
  11227. echo "$f"
  11228. elif test -f "$srcdir/$f"; then
  11229. # Source tree
  11230. echo "$srcdir/$f"
  11231. else
  11232. # /dev/null tree
  11233. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11234. echo "$as_me: error: cannot find input file: $f" >&2;}
  11235. { (exit 1); exit 1; }; }
  11236. fi;;
  11237. esac
  11238. done` || { (exit 1); exit 1; }
  11239. if test x"$ac_file" != x-; then
  11240. { echo "$as_me:$LINENO: creating $ac_file" >&5
  11241. echo "$as_me: creating $ac_file" >&6;}
  11242. rm -f "$ac_file"
  11243. fi
  11244. _ACEOF
  11245. cat >>$CONFIG_STATUS <<_ACEOF
  11246. sed "$ac_vpsub
  11247. $extrasub
  11248. _ACEOF
  11249. cat >>$CONFIG_STATUS <<\_ACEOF
  11250. :t
  11251. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  11252. s,@configure_input@,$configure_input,;t t
  11253. s,@srcdir@,$ac_srcdir,;t t
  11254. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  11255. s,@top_srcdir@,$ac_top_srcdir,;t t
  11256. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  11257. s,@builddir@,$ac_builddir,;t t
  11258. s,@abs_builddir@,$ac_abs_builddir,;t t
  11259. s,@top_builddir@,$ac_top_builddir,;t t
  11260. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  11261. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  11262. rm -f $tmp/stdin
  11263. if test x"$ac_file" != x-; then
  11264. mv $tmp/out $ac_file
  11265. else
  11266. cat $tmp/out
  11267. rm -f $tmp/out
  11268. fi
  11269. done
  11270. _ACEOF
  11271. cat >>$CONFIG_STATUS <<\_ACEOF
  11272. #
  11273. # CONFIG_HEADER section.
  11274. #
  11275. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  11276. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  11277. #
  11278. # ac_d sets the value in "#define NAME VALUE" lines.
  11279. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  11280. ac_dB='[ ].*$,\1#\2'
  11281. ac_dC=' '
  11282. ac_dD=',;t'
  11283. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  11284. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  11285. ac_uB='$,\1#\2define\3'
  11286. ac_uC=' '
  11287. ac_uD=',;t'
  11288. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  11289. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  11290. case $ac_file in
  11291. - | *:- | *:-:* ) # input from stdin
  11292. cat >$tmp/stdin
  11293. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11294. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11295. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11296. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11297. * ) ac_file_in=$ac_file.in ;;
  11298. esac
  11299. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  11300. echo "$as_me: creating $ac_file" >&6;}
  11301. # First look for the input files in the build tree, otherwise in the
  11302. # src tree.
  11303. ac_file_inputs=`IFS=:
  11304. for f in $ac_file_in; do
  11305. case $f in
  11306. -) echo $tmp/stdin ;;
  11307. [\\/$]*)
  11308. # Absolute (can't be DOS-style, as IFS=:)
  11309. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11310. echo "$as_me: error: cannot find input file: $f" >&2;}
  11311. { (exit 1); exit 1; }; }
  11312. # Do quote $f, to prevent DOS paths from being IFS'd.
  11313. echo "$f";;
  11314. *) # Relative
  11315. if test -f "$f"; then
  11316. # Build tree
  11317. echo "$f"
  11318. elif test -f "$srcdir/$f"; then
  11319. # Source tree
  11320. echo "$srcdir/$f"
  11321. else
  11322. # /dev/null tree
  11323. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11324. echo "$as_me: error: cannot find input file: $f" >&2;}
  11325. { (exit 1); exit 1; }; }
  11326. fi;;
  11327. esac
  11328. done` || { (exit 1); exit 1; }
  11329. # Remove the trailing spaces.
  11330. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  11331. _ACEOF
  11332. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  11333. # `conftest.undefs', that substitutes the proper values into
  11334. # config.h.in to produce config.h. The first handles `#define'
  11335. # templates, and the second `#undef' templates.
  11336. # And first: Protect against being on the right side of a sed subst in
  11337. # config.status. Protect against being in an unquoted here document
  11338. # in config.status.
  11339. rm -f conftest.defines conftest.undefs
  11340. # Using a here document instead of a string reduces the quoting nightmare.
  11341. # Putting comments in sed scripts is not portable.
  11342. #
  11343. # `end' is used to avoid that the second main sed command (meant for
  11344. # 0-ary CPP macros) applies to n-ary macro definitions.
  11345. # See the Autoconf documentation for `clear'.
  11346. cat >confdef2sed.sed <<\_ACEOF
  11347. s/[\\&,]/\\&/g
  11348. s,[\\$`],\\&,g
  11349. t clear
  11350. : clear
  11351. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  11352. t end
  11353. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  11354. : end
  11355. _ACEOF
  11356. # If some macros were called several times there might be several times
  11357. # the same #defines, which is useless. Nevertheless, we may not want to
  11358. # sort them, since we want the *last* AC-DEFINE to be honored.
  11359. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  11360. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  11361. rm -f confdef2sed.sed
  11362. # This sed command replaces #undef with comments. This is necessary, for
  11363. # example, in the case of _POSIX_SOURCE, which is predefined and required
  11364. # on some systems where configure will not decide to define it.
  11365. cat >>conftest.undefs <<\_ACEOF
  11366. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  11367. _ACEOF
  11368. # Break up conftest.defines because some shells have a limit on the size
  11369. # of here documents, and old seds have small limits too (100 cmds).
  11370. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  11371. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  11372. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  11373. echo ' :' >>$CONFIG_STATUS
  11374. rm -f conftest.tail
  11375. while grep . conftest.defines >/dev/null
  11376. do
  11377. # Write a limited-size here document to $tmp/defines.sed.
  11378. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  11379. # Speed up: don't consider the non `#define' lines.
  11380. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  11381. # Work around the forget-to-reset-the-flag bug.
  11382. echo 't clr' >>$CONFIG_STATUS
  11383. echo ': clr' >>$CONFIG_STATUS
  11384. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  11385. echo 'CEOF
  11386. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  11387. rm -f $tmp/in
  11388. mv $tmp/out $tmp/in
  11389. ' >>$CONFIG_STATUS
  11390. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  11391. rm -f conftest.defines
  11392. mv conftest.tail conftest.defines
  11393. done
  11394. rm -f conftest.defines
  11395. echo ' fi # grep' >>$CONFIG_STATUS
  11396. echo >>$CONFIG_STATUS
  11397. # Break up conftest.undefs because some shells have a limit on the size
  11398. # of here documents, and old seds have small limits too (100 cmds).
  11399. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  11400. rm -f conftest.tail
  11401. while grep . conftest.undefs >/dev/null
  11402. do
  11403. # Write a limited-size here document to $tmp/undefs.sed.
  11404. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  11405. # Speed up: don't consider the non `#undef'
  11406. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  11407. # Work around the forget-to-reset-the-flag bug.
  11408. echo 't clr' >>$CONFIG_STATUS
  11409. echo ': clr' >>$CONFIG_STATUS
  11410. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  11411. echo 'CEOF
  11412. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  11413. rm -f $tmp/in
  11414. mv $tmp/out $tmp/in
  11415. ' >>$CONFIG_STATUS
  11416. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  11417. rm -f conftest.undefs
  11418. mv conftest.tail conftest.undefs
  11419. done
  11420. rm -f conftest.undefs
  11421. cat >>$CONFIG_STATUS <<\_ACEOF
  11422. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11423. # use $as_me), people would be surprised to read:
  11424. # /* config.h. Generated by config.status. */
  11425. if test x"$ac_file" = x-; then
  11426. echo "/* Generated by configure. */" >$tmp/config.h
  11427. else
  11428. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  11429. fi
  11430. cat $tmp/in >>$tmp/config.h
  11431. rm -f $tmp/in
  11432. if test x"$ac_file" != x-; then
  11433. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  11434. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  11435. echo "$as_me: $ac_file is unchanged" >&6;}
  11436. else
  11437. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  11438. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11439. X"$ac_file" : 'X\(//\)[^/]' \| \
  11440. X"$ac_file" : 'X\(//\)$' \| \
  11441. X"$ac_file" : 'X\(/\)' \| \
  11442. . : '\(.\)' 2>/dev/null ||
  11443. echo X"$ac_file" |
  11444. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11445. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11446. /^X\(\/\/\)$/{ s//\1/; q; }
  11447. /^X\(\/\).*/{ s//\1/; q; }
  11448. s/.*/./; q'`
  11449. { if $as_mkdir_p; then
  11450. mkdir -p "$ac_dir"
  11451. else
  11452. as_dir="$ac_dir"
  11453. as_dirs=
  11454. while test ! -d "$as_dir"; do
  11455. as_dirs="$as_dir $as_dirs"
  11456. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  11457. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11458. X"$as_dir" : 'X\(//\)[^/]' \| \
  11459. X"$as_dir" : 'X\(//\)$' \| \
  11460. X"$as_dir" : 'X\(/\)' \| \
  11461. . : '\(.\)' 2>/dev/null ||
  11462. echo X"$as_dir" |
  11463. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11464. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11465. /^X\(\/\/\)$/{ s//\1/; q; }
  11466. /^X\(\/\).*/{ s//\1/; q; }
  11467. s/.*/./; q'`
  11468. done
  11469. test ! -n "$as_dirs" || mkdir $as_dirs
  11470. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  11471. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  11472. { (exit 1); exit 1; }; }; }
  11473. rm -f $ac_file
  11474. mv $tmp/config.h $ac_file
  11475. fi
  11476. else
  11477. cat $tmp/config.h
  11478. rm -f $tmp/config.h
  11479. fi
  11480. done
  11481. _ACEOF
  11482. cat >>$CONFIG_STATUS <<\_ACEOF
  11483. { (exit 0); exit 0; }
  11484. _ACEOF
  11485. chmod +x $CONFIG_STATUS
  11486. ac_clean_files=$ac_clean_files_save
  11487. # configure is writing to config.log, and then calls config.status.
  11488. # config.status does its own redirection, appending to config.log.
  11489. # Unfortunately, on DOS this fails, as config.log is still kept open
  11490. # by configure, so config.status won't be able to write to it; its
  11491. # output is simply discarded. So we exec the FD to /dev/null,
  11492. # effectively closing config.log, so it can be properly (re)opened and
  11493. # appended to by config.status. When coming back to configure, we
  11494. # need to make the FD available again.
  11495. if test "$no_create" != yes; then
  11496. ac_cs_success=:
  11497. ac_config_status_args=
  11498. test "$silent" = yes &&
  11499. ac_config_status_args="$ac_config_status_args --quiet"
  11500. exec 5>/dev/null
  11501. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  11502. exec 5>>config.log
  11503. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  11504. # would make configure fail if this is the last instruction.
  11505. $ac_cs_success || { (exit 1); exit 1; }
  11506. fi