configure 350 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539
  1. #! /bin/sh
  2. # From configure.ac Revision: 2576 .
  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 DIFF UNAME CCACHE DISTCC 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++-3.3 g++33 g++-3 g++3 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++-3.3 g++33 g++-3 g++3 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 library containing strerror" >&5
  1945. echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
  1946. if test "${ac_cv_search_strerror+set}" = set; then
  1947. echo $ECHO_N "(cached) $ECHO_C" >&6
  1948. else
  1949. ac_func_search_save_LIBS=$LIBS
  1950. ac_cv_search_strerror=no
  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_search_strerror="none required"
  1994. else
  1995. echo "$as_me: failed program was:" >&5
  1996. sed 's/^/| /' conftest.$ac_ext >&5
  1997. fi
  1998. rm -f conftest.err conftest.$ac_objext \
  1999. conftest$ac_exeext conftest.$ac_ext
  2000. if test "$ac_cv_search_strerror" = no; then
  2001. for ac_lib in cposix; do
  2002. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  2003. cat >conftest.$ac_ext <<_ACEOF
  2004. /* confdefs.h. */
  2005. _ACEOF
  2006. cat confdefs.h >>conftest.$ac_ext
  2007. cat >>conftest.$ac_ext <<_ACEOF
  2008. /* end confdefs.h. */
  2009. /* Override any gcc2 internal prototype to avoid an error. */
  2010. #ifdef __cplusplus
  2011. extern "C"
  2012. #endif
  2013. /* We use char because int might match the return type of a gcc2
  2014. builtin and then its argument prototype would still apply. */
  2015. char strerror ();
  2016. int
  2017. main ()
  2018. {
  2019. strerror ();
  2020. ;
  2021. return 0;
  2022. }
  2023. _ACEOF
  2024. rm -f conftest.$ac_objext conftest$ac_exeext
  2025. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2026. (eval $ac_link) 2>conftest.er1
  2027. ac_status=$?
  2028. grep -v '^ *+' conftest.er1 >conftest.err
  2029. rm -f conftest.er1
  2030. cat conftest.err >&5
  2031. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2032. (exit $ac_status); } &&
  2033. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2034. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2035. (eval $ac_try) 2>&5
  2036. ac_status=$?
  2037. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2038. (exit $ac_status); }; } &&
  2039. { ac_try='test -s conftest$ac_exeext'
  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); }; }; then
  2045. ac_cv_search_strerror="-l$ac_lib"
  2046. break
  2047. else
  2048. echo "$as_me: failed program was:" >&5
  2049. sed 's/^/| /' conftest.$ac_ext >&5
  2050. fi
  2051. rm -f conftest.err conftest.$ac_objext \
  2052. conftest$ac_exeext conftest.$ac_ext
  2053. done
  2054. fi
  2055. LIBS=$ac_func_search_save_LIBS
  2056. fi
  2057. echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
  2058. echo "${ECHO_T}$ac_cv_search_strerror" >&6
  2059. if test "$ac_cv_search_strerror" != no; then
  2060. test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
  2061. fi
  2062. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  2063. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  2064. if test "${ac_cv_header_stdc+set}" = set; then
  2065. echo $ECHO_N "(cached) $ECHO_C" >&6
  2066. else
  2067. cat >conftest.$ac_ext <<_ACEOF
  2068. /* confdefs.h. */
  2069. _ACEOF
  2070. cat confdefs.h >>conftest.$ac_ext
  2071. cat >>conftest.$ac_ext <<_ACEOF
  2072. /* end confdefs.h. */
  2073. #include <stdlib.h>
  2074. #include <stdarg.h>
  2075. #include <string.h>
  2076. #include <float.h>
  2077. int
  2078. main ()
  2079. {
  2080. ;
  2081. return 0;
  2082. }
  2083. _ACEOF
  2084. rm -f conftest.$ac_objext
  2085. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2086. (eval $ac_compile) 2>conftest.er1
  2087. ac_status=$?
  2088. grep -v '^ *+' conftest.er1 >conftest.err
  2089. rm -f conftest.er1
  2090. cat conftest.err >&5
  2091. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2092. (exit $ac_status); } &&
  2093. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2094. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2095. (eval $ac_try) 2>&5
  2096. ac_status=$?
  2097. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2098. (exit $ac_status); }; } &&
  2099. { ac_try='test -s conftest.$ac_objext'
  2100. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2101. (eval $ac_try) 2>&5
  2102. ac_status=$?
  2103. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2104. (exit $ac_status); }; }; then
  2105. ac_cv_header_stdc=yes
  2106. else
  2107. echo "$as_me: failed program was:" >&5
  2108. sed 's/^/| /' conftest.$ac_ext >&5
  2109. ac_cv_header_stdc=no
  2110. fi
  2111. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2112. if test $ac_cv_header_stdc = yes; then
  2113. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  2114. cat >conftest.$ac_ext <<_ACEOF
  2115. /* confdefs.h. */
  2116. _ACEOF
  2117. cat confdefs.h >>conftest.$ac_ext
  2118. cat >>conftest.$ac_ext <<_ACEOF
  2119. /* end confdefs.h. */
  2120. #include <string.h>
  2121. _ACEOF
  2122. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2123. $EGREP "memchr" >/dev/null 2>&1; then
  2124. :
  2125. else
  2126. ac_cv_header_stdc=no
  2127. fi
  2128. rm -f conftest*
  2129. fi
  2130. if test $ac_cv_header_stdc = yes; then
  2131. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  2132. cat >conftest.$ac_ext <<_ACEOF
  2133. /* confdefs.h. */
  2134. _ACEOF
  2135. cat confdefs.h >>conftest.$ac_ext
  2136. cat >>conftest.$ac_ext <<_ACEOF
  2137. /* end confdefs.h. */
  2138. #include <stdlib.h>
  2139. _ACEOF
  2140. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2141. $EGREP "free" >/dev/null 2>&1; then
  2142. :
  2143. else
  2144. ac_cv_header_stdc=no
  2145. fi
  2146. rm -f conftest*
  2147. fi
  2148. if test $ac_cv_header_stdc = yes; then
  2149. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  2150. if test "$cross_compiling" = yes; then
  2151. :
  2152. else
  2153. cat >conftest.$ac_ext <<_ACEOF
  2154. /* confdefs.h. */
  2155. _ACEOF
  2156. cat confdefs.h >>conftest.$ac_ext
  2157. cat >>conftest.$ac_ext <<_ACEOF
  2158. /* end confdefs.h. */
  2159. #include <ctype.h>
  2160. #if ((' ' & 0x0FF) == 0x020)
  2161. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  2162. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  2163. #else
  2164. # define ISLOWER(c) \
  2165. (('a' <= (c) && (c) <= 'i') \
  2166. || ('j' <= (c) && (c) <= 'r') \
  2167. || ('s' <= (c) && (c) <= 'z'))
  2168. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  2169. #endif
  2170. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  2171. int
  2172. main ()
  2173. {
  2174. int i;
  2175. for (i = 0; i < 256; i++)
  2176. if (XOR (islower (i), ISLOWER (i))
  2177. || toupper (i) != TOUPPER (i))
  2178. exit(2);
  2179. exit (0);
  2180. }
  2181. _ACEOF
  2182. rm -f conftest$ac_exeext
  2183. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2184. (eval $ac_link) 2>&5
  2185. ac_status=$?
  2186. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2187. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  2188. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2189. (eval $ac_try) 2>&5
  2190. ac_status=$?
  2191. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2192. (exit $ac_status); }; }; then
  2193. :
  2194. else
  2195. echo "$as_me: program exited with status $ac_status" >&5
  2196. echo "$as_me: failed program was:" >&5
  2197. sed 's/^/| /' conftest.$ac_ext >&5
  2198. ( exit $ac_status )
  2199. ac_cv_header_stdc=no
  2200. fi
  2201. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  2202. fi
  2203. fi
  2204. fi
  2205. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  2206. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  2207. if test $ac_cv_header_stdc = yes; then
  2208. cat >>confdefs.h <<\_ACEOF
  2209. #define STDC_HEADERS 1
  2210. _ACEOF
  2211. fi
  2212. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  2213. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  2214. inttypes.h stdint.h unistd.h
  2215. do
  2216. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  2217. echo "$as_me:$LINENO: checking for $ac_header" >&5
  2218. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  2219. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  2220. echo $ECHO_N "(cached) $ECHO_C" >&6
  2221. else
  2222. cat >conftest.$ac_ext <<_ACEOF
  2223. /* confdefs.h. */
  2224. _ACEOF
  2225. cat confdefs.h >>conftest.$ac_ext
  2226. cat >>conftest.$ac_ext <<_ACEOF
  2227. /* end confdefs.h. */
  2228. $ac_includes_default
  2229. #include <$ac_header>
  2230. _ACEOF
  2231. rm -f conftest.$ac_objext
  2232. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2233. (eval $ac_compile) 2>conftest.er1
  2234. ac_status=$?
  2235. grep -v '^ *+' conftest.er1 >conftest.err
  2236. rm -f conftest.er1
  2237. cat conftest.err >&5
  2238. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2239. (exit $ac_status); } &&
  2240. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2241. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2242. (eval $ac_try) 2>&5
  2243. ac_status=$?
  2244. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2245. (exit $ac_status); }; } &&
  2246. { ac_try='test -s conftest.$ac_objext'
  2247. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2248. (eval $ac_try) 2>&5
  2249. ac_status=$?
  2250. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2251. (exit $ac_status); }; }; then
  2252. eval "$as_ac_Header=yes"
  2253. else
  2254. echo "$as_me: failed program was:" >&5
  2255. sed 's/^/| /' conftest.$ac_ext >&5
  2256. eval "$as_ac_Header=no"
  2257. fi
  2258. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2259. fi
  2260. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  2261. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  2262. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  2263. cat >>confdefs.h <<_ACEOF
  2264. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  2265. _ACEOF
  2266. fi
  2267. done
  2268. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2269. echo "$as_me:$LINENO: checking for minix/config.h" >&5
  2270. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
  2271. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2272. echo $ECHO_N "(cached) $ECHO_C" >&6
  2273. fi
  2274. echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  2275. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
  2276. else
  2277. # Is the header compilable?
  2278. echo "$as_me:$LINENO: checking minix/config.h usability" >&5
  2279. echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
  2280. cat >conftest.$ac_ext <<_ACEOF
  2281. /* confdefs.h. */
  2282. _ACEOF
  2283. cat confdefs.h >>conftest.$ac_ext
  2284. cat >>conftest.$ac_ext <<_ACEOF
  2285. /* end confdefs.h. */
  2286. $ac_includes_default
  2287. #include <minix/config.h>
  2288. _ACEOF
  2289. rm -f conftest.$ac_objext
  2290. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2291. (eval $ac_compile) 2>conftest.er1
  2292. ac_status=$?
  2293. grep -v '^ *+' conftest.er1 >conftest.err
  2294. rm -f conftest.er1
  2295. cat conftest.err >&5
  2296. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2297. (exit $ac_status); } &&
  2298. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2299. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2300. (eval $ac_try) 2>&5
  2301. ac_status=$?
  2302. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2303. (exit $ac_status); }; } &&
  2304. { ac_try='test -s conftest.$ac_objext'
  2305. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2306. (eval $ac_try) 2>&5
  2307. ac_status=$?
  2308. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2309. (exit $ac_status); }; }; then
  2310. ac_header_compiler=yes
  2311. else
  2312. echo "$as_me: failed program was:" >&5
  2313. sed 's/^/| /' conftest.$ac_ext >&5
  2314. ac_header_compiler=no
  2315. fi
  2316. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2317. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  2318. echo "${ECHO_T}$ac_header_compiler" >&6
  2319. # Is the header present?
  2320. echo "$as_me:$LINENO: checking minix/config.h presence" >&5
  2321. echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
  2322. cat >conftest.$ac_ext <<_ACEOF
  2323. /* confdefs.h. */
  2324. _ACEOF
  2325. cat confdefs.h >>conftest.$ac_ext
  2326. cat >>conftest.$ac_ext <<_ACEOF
  2327. /* end confdefs.h. */
  2328. #include <minix/config.h>
  2329. _ACEOF
  2330. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2331. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2332. ac_status=$?
  2333. grep -v '^ *+' conftest.er1 >conftest.err
  2334. rm -f conftest.er1
  2335. cat conftest.err >&5
  2336. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2337. (exit $ac_status); } >/dev/null; then
  2338. if test -s conftest.err; then
  2339. ac_cpp_err=$ac_cxx_preproc_warn_flag
  2340. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  2341. else
  2342. ac_cpp_err=
  2343. fi
  2344. else
  2345. ac_cpp_err=yes
  2346. fi
  2347. if test -z "$ac_cpp_err"; then
  2348. ac_header_preproc=yes
  2349. else
  2350. echo "$as_me: failed program was:" >&5
  2351. sed 's/^/| /' conftest.$ac_ext >&5
  2352. ac_header_preproc=no
  2353. fi
  2354. rm -f conftest.err conftest.$ac_ext
  2355. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  2356. echo "${ECHO_T}$ac_header_preproc" >&6
  2357. # So? What about this header?
  2358. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  2359. yes:no: )
  2360. { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
  2361. echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2362. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
  2363. echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
  2364. ac_header_preproc=yes
  2365. ;;
  2366. no:yes:* )
  2367. { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
  2368. echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
  2369. { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
  2370. echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
  2371. { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
  2372. echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
  2373. { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
  2374. echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
  2375. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
  2376. echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
  2377. { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
  2378. echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
  2379. (
  2380. cat <<\_ASBOX
  2381. ## ------------------------------------------ ##
  2382. ## Report this to the AC_PACKAGE_NAME lists. ##
  2383. ## ------------------------------------------ ##
  2384. _ASBOX
  2385. ) |
  2386. sed "s/^/$as_me: WARNING: /" >&2
  2387. ;;
  2388. esac
  2389. echo "$as_me:$LINENO: checking for minix/config.h" >&5
  2390. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
  2391. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2392. echo $ECHO_N "(cached) $ECHO_C" >&6
  2393. else
  2394. ac_cv_header_minix_config_h=$ac_header_preproc
  2395. fi
  2396. echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  2397. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
  2398. fi
  2399. if test $ac_cv_header_minix_config_h = yes; then
  2400. MINIX=yes
  2401. else
  2402. MINIX=
  2403. fi
  2404. if test "$MINIX" = yes; then
  2405. cat >>confdefs.h <<\_ACEOF
  2406. #define _POSIX_SOURCE 1
  2407. _ACEOF
  2408. cat >>confdefs.h <<\_ACEOF
  2409. #define _POSIX_1_SOURCE 2
  2410. _ACEOF
  2411. cat >>confdefs.h <<\_ACEOF
  2412. #define _MINIX 1
  2413. _ACEOF
  2414. fi
  2415. #checkpoint
  2416. cat >confcache <<\_ACEOF
  2417. # This file is a shell script that caches the results of configure
  2418. # tests run on this system so they can be shared between configure
  2419. # scripts and configure runs, see configure's option --config-cache.
  2420. # It is not useful on other systems. If it contains results you don't
  2421. # want to keep, you may remove or edit it.
  2422. #
  2423. # config.status only pays attention to the cache file if you give it
  2424. # the --recheck option to rerun configure.
  2425. #
  2426. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  2427. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  2428. # following values.
  2429. _ACEOF
  2430. # The following way of writing the cache mishandles newlines in values,
  2431. # but we know of no workaround that is simple, portable, and efficient.
  2432. # So, don't put newlines in cache variables' values.
  2433. # Ultrix sh set writes to stderr and can't be redirected directly,
  2434. # and sets the high bit in the cache file unless we assign to the vars.
  2435. {
  2436. (set) 2>&1 |
  2437. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  2438. *ac_space=\ *)
  2439. # `set' does not quote correctly, so add quotes (double-quote
  2440. # substitution turns \\\\ into \\, and sed turns \\ into \).
  2441. sed -n \
  2442. "s/'/'\\\\''/g;
  2443. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  2444. ;;
  2445. *)
  2446. # `set' quotes correctly as required by POSIX, so do not add quotes.
  2447. sed -n \
  2448. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  2449. ;;
  2450. esac;
  2451. } |
  2452. sed '
  2453. t clear
  2454. : clear
  2455. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  2456. t end
  2457. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  2458. : end' >>confcache
  2459. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  2460. if test -w $cache_file; then
  2461. test "x$cache_file" != "x/dev/null"
  2462. cat confcache >$cache_file
  2463. else
  2464. echo "not updating unwritable cache $cache_file"
  2465. fi
  2466. fi
  2467. rm -f confcache
  2468. # Speedup compile
  2469. if test -n "$GXX" && test -z "$no_wall"; then
  2470. echo "$as_me:$LINENO: checking whether the compiler understands -Wall" >&5
  2471. echo $ECHO_N "checking whether the compiler understands -Wall... $ECHO_C" >&6
  2472. if test "${egg_cv_var_ccwall+set}" = set; then
  2473. echo $ECHO_N "(cached) $ECHO_C" >&6
  2474. else
  2475. ac_old_CXXFLAGS="$CXXFLAGS"
  2476. CXXFLAGS="$CXXFLAGS -Wall"
  2477. cat >conftest.$ac_ext <<_ACEOF
  2478. int main ()
  2479. {
  2480. return(0);
  2481. }
  2482. _ACEOF
  2483. rm -f conftest.$ac_objext
  2484. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2485. (eval $ac_compile) 2>conftest.er1
  2486. ac_status=$?
  2487. grep -v '^ *+' conftest.er1 >conftest.err
  2488. rm -f conftest.er1
  2489. cat conftest.err >&5
  2490. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2491. (exit $ac_status); } &&
  2492. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2493. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2494. (eval $ac_try) 2>&5
  2495. ac_status=$?
  2496. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2497. (exit $ac_status); }; } &&
  2498. { ac_try='test -s conftest.$ac_objext'
  2499. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2500. (eval $ac_try) 2>&5
  2501. ac_status=$?
  2502. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2503. (exit $ac_status); }; }; then
  2504. egg_cv_var_ccwall="yes"
  2505. else
  2506. echo "$as_me: failed program was:" >&5
  2507. sed 's/^/| /' conftest.$ac_ext >&5
  2508. egg_cv_var_ccwall="no"
  2509. fi
  2510. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2511. CXXFLAGS="$ac_old_CXXFLAGS"
  2512. fi
  2513. echo "$as_me:$LINENO: result: $egg_cv_var_ccwall" >&5
  2514. echo "${ECHO_T}$egg_cv_var_ccwall" >&6
  2515. if test "$egg_cv_var_ccwall" = "yes"; then
  2516. CXXFLAGS="$CXXFLAGS -Wall"
  2517. fi
  2518. fi
  2519. if test -n "$GXX" && test -z "$no_pipe"; then
  2520. echo "$as_me:$LINENO: checking whether the compiler understands -pipe" >&5
  2521. echo $ECHO_N "checking whether the compiler understands -pipe... $ECHO_C" >&6
  2522. if test "${egg_cv_var_ccpipe+set}" = set; then
  2523. echo $ECHO_N "(cached) $ECHO_C" >&6
  2524. else
  2525. ac_old_CXX="$CXX"
  2526. CXX="$CXX -pipe"
  2527. cat >conftest.$ac_ext <<_ACEOF
  2528. int main ()
  2529. {
  2530. return(0);
  2531. }
  2532. _ACEOF
  2533. rm -f conftest.$ac_objext
  2534. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2535. (eval $ac_compile) 2>conftest.er1
  2536. ac_status=$?
  2537. grep -v '^ *+' conftest.er1 >conftest.err
  2538. rm -f conftest.er1
  2539. cat conftest.err >&5
  2540. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2541. (exit $ac_status); } &&
  2542. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2543. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2544. (eval $ac_try) 2>&5
  2545. ac_status=$?
  2546. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2547. (exit $ac_status); }; } &&
  2548. { ac_try='test -s conftest.$ac_objext'
  2549. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2550. (eval $ac_try) 2>&5
  2551. ac_status=$?
  2552. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2553. (exit $ac_status); }; }; then
  2554. egg_cv_var_ccpipe="yes"
  2555. else
  2556. echo "$as_me: failed program was:" >&5
  2557. sed 's/^/| /' conftest.$ac_ext >&5
  2558. egg_cv_var_ccpipe="no"
  2559. fi
  2560. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2561. CXX="$ac_old_CXX"
  2562. fi
  2563. echo "$as_me:$LINENO: result: $egg_cv_var_ccpipe" >&5
  2564. echo "${ECHO_T}$egg_cv_var_ccpipe" >&6
  2565. if test "$egg_cv_var_ccpipe" = "yes"; then
  2566. CXX="$CXX -pipe"
  2567. fi
  2568. fi
  2569. CCDEPMODE=gcc
  2570. num=`$CXX -dumpversion | sed "s/^\\\(.\\\).*/\\\1/"`
  2571. if test $num = "3"; then
  2572. CCDEPMODE=gcc3
  2573. # GCC3="-Wpadded -Wpacked -Wno-unused-parameter -Wmissing-format-attribute -Wdisabled-optimization"
  2574. GCC3="-W -Wno-unused-parameter -Wdisabled-optimization -Wmissing-format-attribute"
  2575. fi
  2576. #checkpoint
  2577. cat >confcache <<\_ACEOF
  2578. # This file is a shell script that caches the results of configure
  2579. # tests run on this system so they can be shared between configure
  2580. # scripts and configure runs, see configure's option --config-cache.
  2581. # It is not useful on other systems. If it contains results you don't
  2582. # want to keep, you may remove or edit it.
  2583. #
  2584. # config.status only pays attention to the cache file if you give it
  2585. # the --recheck option to rerun configure.
  2586. #
  2587. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  2588. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  2589. # following values.
  2590. _ACEOF
  2591. # The following way of writing the cache mishandles newlines in values,
  2592. # but we know of no workaround that is simple, portable, and efficient.
  2593. # So, don't put newlines in cache variables' values.
  2594. # Ultrix sh set writes to stderr and can't be redirected directly,
  2595. # and sets the high bit in the cache file unless we assign to the vars.
  2596. {
  2597. (set) 2>&1 |
  2598. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  2599. *ac_space=\ *)
  2600. # `set' does not quote correctly, so add quotes (double-quote
  2601. # substitution turns \\\\ into \\, and sed turns \\ into \).
  2602. sed -n \
  2603. "s/'/'\\\\''/g;
  2604. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  2605. ;;
  2606. *)
  2607. # `set' quotes correctly as required by POSIX, so do not add quotes.
  2608. sed -n \
  2609. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  2610. ;;
  2611. esac;
  2612. } |
  2613. sed '
  2614. t clear
  2615. : clear
  2616. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  2617. t end
  2618. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  2619. : end' >>confcache
  2620. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  2621. if test -w $cache_file; then
  2622. test "x$cache_file" != "x/dev/null"
  2623. cat confcache >$cache_file
  2624. else
  2625. echo "not updating unwritable cache $cache_file"
  2626. fi
  2627. fi
  2628. rm -f confcache
  2629. # Checks for programs
  2630. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2631. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  2632. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  2633. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  2634. echo $ECHO_N "(cached) $ECHO_C" >&6
  2635. else
  2636. cat >conftest.make <<\_ACEOF
  2637. all:
  2638. @echo 'ac_maketemp="$(MAKE)"'
  2639. _ACEOF
  2640. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2641. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  2642. if test -n "$ac_maketemp"; then
  2643. eval ac_cv_prog_make_${ac_make}_set=yes
  2644. else
  2645. eval ac_cv_prog_make_${ac_make}_set=no
  2646. fi
  2647. rm -f conftest.make
  2648. fi
  2649. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  2650. echo "$as_me:$LINENO: result: yes" >&5
  2651. echo "${ECHO_T}yes" >&6
  2652. SET_MAKE=
  2653. else
  2654. echo "$as_me:$LINENO: result: no" >&5
  2655. echo "${ECHO_T}no" >&6
  2656. SET_MAKE="MAKE=${MAKE-make}"
  2657. fi
  2658. cat << 'EOF' > conftest.head
  2659. a
  2660. b
  2661. c
  2662. EOF
  2663. for ac_prog in 'head -1' 'head -n 1' 'sed 1q';
  2664. do
  2665. echo "$as_me:$LINENO: checking whether $ac_prog works" >&5
  2666. echo $ECHO_N "checking whether $ac_prog works... $ECHO_C" >&6
  2667. if test "${ac_cv_prog_HEAD_1+set}" = set; then
  2668. echo $ECHO_N "(cached) $ECHO_C" >&6
  2669. else
  2670. if test -n "$HEAD_1"
  2671. then
  2672. ac_cv_prog_HEAD_1="$HEAD_1" # Let the user override the test.
  2673. else
  2674. if test "`cat conftest.head | $ac_prog`" = "a";
  2675. then
  2676. echo "$as_me:$LINENO: result: yes" >&5
  2677. echo "${ECHO_T}yes" >&6
  2678. ac_cv_prog_HEAD_1=$ac_prog
  2679. else
  2680. echo "$as_me:$LINENO: result: no" >&5
  2681. echo "${ECHO_T}no" >&6
  2682. fi
  2683. fi
  2684. fi
  2685. test -n "$ac_cv_prog_HEAD_1" && break
  2686. done
  2687. if test "${ac_cv_prog_HEAD_1-x}" = "x"
  2688. then
  2689. cat << 'EOF' >&2
  2690. configure: error:
  2691. This system seems to lack a working 'head -1' or 'head -n 1' command.
  2692. A working 'head -1' (or equivalent) command is required to compile Eggdrop.
  2693. EOF
  2694. exit 1
  2695. fi
  2696. rm -f conftest.head
  2697. HEAD_1=$ac_cv_prog_HEAD_1
  2698. # awk is needed for Tcl library and header checks, and eggdrop version subst
  2699. for ac_prog in gawk mawk nawk awk
  2700. do
  2701. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2702. set dummy $ac_prog; ac_word=$2
  2703. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2704. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2705. if test "${ac_cv_prog_AWK+set}" = set; then
  2706. echo $ECHO_N "(cached) $ECHO_C" >&6
  2707. else
  2708. if test -n "$AWK"; then
  2709. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2710. else
  2711. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2712. for as_dir in $PATH
  2713. do
  2714. IFS=$as_save_IFS
  2715. test -z "$as_dir" && as_dir=.
  2716. for ac_exec_ext in '' $ac_executable_extensions; do
  2717. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2718. ac_cv_prog_AWK="$ac_prog"
  2719. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2720. break 2
  2721. fi
  2722. done
  2723. done
  2724. fi
  2725. fi
  2726. AWK=$ac_cv_prog_AWK
  2727. if test -n "$AWK"; then
  2728. echo "$as_me:$LINENO: result: $AWK" >&5
  2729. echo "${ECHO_T}$AWK" >&6
  2730. else
  2731. echo "$as_me:$LINENO: result: no" >&5
  2732. echo "${ECHO_T}no" >&6
  2733. fi
  2734. test -n "$AWK" && break
  2735. done
  2736. if test "${AWK-x}" = "x"
  2737. then
  2738. cat << 'EOF' >&2
  2739. configure: error:
  2740. This system seems to lack a working 'awk' command.
  2741. A working 'awk' command is required to compile Eggdrop.
  2742. EOF
  2743. exit 1
  2744. fi
  2745. # basename is needed for Tcl library and header checks
  2746. # Extract the first word of "basename", so it can be a program name with args.
  2747. set dummy basename; ac_word=$2
  2748. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2749. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2750. if test "${ac_cv_prog_BASENAME+set}" = set; then
  2751. echo $ECHO_N "(cached) $ECHO_C" >&6
  2752. else
  2753. if test -n "$BASENAME"; then
  2754. ac_cv_prog_BASENAME="$BASENAME" # Let the user override the test.
  2755. else
  2756. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2757. for as_dir in $PATH
  2758. do
  2759. IFS=$as_save_IFS
  2760. test -z "$as_dir" && as_dir=.
  2761. for ac_exec_ext in '' $ac_executable_extensions; do
  2762. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2763. ac_cv_prog_BASENAME="basename"
  2764. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2765. break 2
  2766. fi
  2767. done
  2768. done
  2769. fi
  2770. fi
  2771. BASENAME=$ac_cv_prog_BASENAME
  2772. if test -n "$BASENAME"; then
  2773. echo "$as_me:$LINENO: result: $BASENAME" >&5
  2774. echo "${ECHO_T}$BASENAME" >&6
  2775. else
  2776. echo "$as_me:$LINENO: result: no" >&5
  2777. echo "${ECHO_T}no" >&6
  2778. fi
  2779. if test "${BASENAME-x}" = "x"
  2780. then
  2781. cat << 'EOF' >&2
  2782. configure: error:
  2783. This system seems to lack a working 'basename' command.
  2784. A working 'basename' command is required to compile Eggdrop.
  2785. EOF
  2786. exit 1
  2787. fi
  2788. # Extract the first word of "objcopy", so it can be a program name with args.
  2789. set dummy objcopy; ac_word=$2
  2790. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2791. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2792. if test "${ac_cv_prog_OBJCOPY+set}" = set; then
  2793. echo $ECHO_N "(cached) $ECHO_C" >&6
  2794. else
  2795. if test -n "$OBJCOPY"; then
  2796. ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
  2797. else
  2798. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2799. for as_dir in $PATH
  2800. do
  2801. IFS=$as_save_IFS
  2802. test -z "$as_dir" && as_dir=.
  2803. for ac_exec_ext in '' $ac_executable_extensions; do
  2804. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2805. ac_cv_prog_OBJCOPY="objcopy --remove-section=.note --remove-section=.comment"
  2806. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2807. break 2
  2808. fi
  2809. done
  2810. done
  2811. test -z "$ac_cv_prog_OBJCOPY" && ac_cv_prog_OBJCOPY="touch"
  2812. fi
  2813. fi
  2814. OBJCOPY=$ac_cv_prog_OBJCOPY
  2815. if test -n "$OBJCOPY"; then
  2816. echo "$as_me:$LINENO: result: $OBJCOPY" >&5
  2817. echo "${ECHO_T}$OBJCOPY" >&6
  2818. else
  2819. echo "$as_me:$LINENO: result: no" >&5
  2820. echo "${ECHO_T}no" >&6
  2821. fi
  2822. # Extract the first word of "strip", so it can be a program name with args.
  2823. set dummy strip; ac_word=$2
  2824. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2825. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2826. if test "${ac_cv_prog_STRIP+set}" = set; then
  2827. echo $ECHO_N "(cached) $ECHO_C" >&6
  2828. else
  2829. if test -n "$STRIP"; then
  2830. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2831. else
  2832. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2833. for as_dir in $PATH
  2834. do
  2835. IFS=$as_save_IFS
  2836. test -z "$as_dir" && as_dir=.
  2837. for ac_exec_ext in '' $ac_executable_extensions; do
  2838. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2839. ac_cv_prog_STRIP="strip"
  2840. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2841. break 2
  2842. fi
  2843. done
  2844. done
  2845. test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="touch"
  2846. fi
  2847. fi
  2848. STRIP=$ac_cv_prog_STRIP
  2849. if test -n "$STRIP"; then
  2850. echo "$as_me:$LINENO: result: $STRIP" >&5
  2851. echo "${ECHO_T}$STRIP" >&6
  2852. else
  2853. echo "$as_me:$LINENO: result: no" >&5
  2854. echo "${ECHO_T}no" >&6
  2855. fi
  2856. # Extract the first word of "gdiff", so it can be a program name with args.
  2857. set dummy gdiff; ac_word=$2
  2858. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2859. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2860. if test "${ac_cv_prog_DIFF+set}" = set; then
  2861. echo $ECHO_N "(cached) $ECHO_C" >&6
  2862. else
  2863. if test -n "$DIFF"; then
  2864. ac_cv_prog_DIFF="$DIFF" # Let the user override the test.
  2865. else
  2866. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2867. for as_dir in $PATH
  2868. do
  2869. IFS=$as_save_IFS
  2870. test -z "$as_dir" && as_dir=.
  2871. for ac_exec_ext in '' $ac_executable_extensions; do
  2872. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2873. ac_cv_prog_DIFF="gdiff"
  2874. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2875. break 2
  2876. fi
  2877. done
  2878. done
  2879. test -z "$ac_cv_prog_DIFF" && ac_cv_prog_DIFF="diff"
  2880. fi
  2881. fi
  2882. DIFF=$ac_cv_prog_DIFF
  2883. if test -n "$DIFF"; then
  2884. echo "$as_me:$LINENO: result: $DIFF" >&5
  2885. echo "${ECHO_T}$DIFF" >&6
  2886. else
  2887. echo "$as_me:$LINENO: result: no" >&5
  2888. echo "${ECHO_T}no" >&6
  2889. fi
  2890. # Extract the first word of "uname", so it can be a program name with args.
  2891. set dummy uname; ac_word=$2
  2892. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2893. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2894. if test "${ac_cv_prog_UNAME+set}" = set; then
  2895. echo $ECHO_N "(cached) $ECHO_C" >&6
  2896. else
  2897. if test -n "$UNAME"; then
  2898. ac_cv_prog_UNAME="$UNAME" # Let the user override the test.
  2899. else
  2900. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2901. for as_dir in $PATH
  2902. do
  2903. IFS=$as_save_IFS
  2904. test -z "$as_dir" && as_dir=.
  2905. for ac_exec_ext in '' $ac_executable_extensions; do
  2906. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2907. ac_cv_prog_UNAME="uname"
  2908. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2909. break 2
  2910. fi
  2911. done
  2912. done
  2913. fi
  2914. fi
  2915. UNAME=$ac_cv_prog_UNAME
  2916. if test -n "$UNAME"; then
  2917. echo "$as_me:$LINENO: result: $UNAME" >&5
  2918. echo "${ECHO_T}$UNAME" >&6
  2919. else
  2920. echo "$as_me:$LINENO: result: no" >&5
  2921. echo "${ECHO_T}no" >&6
  2922. fi
  2923. # Extract the first word of "ccache", so it can be a program name with args.
  2924. set dummy ccache; ac_word=$2
  2925. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2926. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2927. if test "${ac_cv_prog_CCACHE+set}" = set; then
  2928. echo $ECHO_N "(cached) $ECHO_C" >&6
  2929. else
  2930. if test -n "$CCACHE"; then
  2931. ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
  2932. else
  2933. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2934. for as_dir in $PATH
  2935. do
  2936. IFS=$as_save_IFS
  2937. test -z "$as_dir" && as_dir=.
  2938. for ac_exec_ext in '' $ac_executable_extensions; do
  2939. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2940. ac_cv_prog_CCACHE="ccache"
  2941. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2942. break 2
  2943. fi
  2944. done
  2945. done
  2946. fi
  2947. fi
  2948. CCACHE=$ac_cv_prog_CCACHE
  2949. if test -n "$CCACHE"; then
  2950. echo "$as_me:$LINENO: result: $CCACHE" >&5
  2951. echo "${ECHO_T}$CCACHE" >&6
  2952. else
  2953. echo "$as_me:$LINENO: result: no" >&5
  2954. echo "${ECHO_T}no" >&6
  2955. fi
  2956. # Extract the first word of "distcc", so it can be a program name with args.
  2957. set dummy distcc; ac_word=$2
  2958. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2959. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2960. if test "${ac_cv_prog_DISTCC+set}" = set; then
  2961. echo $ECHO_N "(cached) $ECHO_C" >&6
  2962. else
  2963. if test -n "$DISTCC"; then
  2964. ac_cv_prog_DISTCC="$DISTCC" # Let the user override the test.
  2965. else
  2966. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2967. for as_dir in $PATH
  2968. do
  2969. IFS=$as_save_IFS
  2970. test -z "$as_dir" && as_dir=.
  2971. for ac_exec_ext in '' $ac_executable_extensions; do
  2972. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2973. ac_cv_prog_DISTCC="distcc"
  2974. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2975. break 2
  2976. fi
  2977. done
  2978. done
  2979. fi
  2980. fi
  2981. DISTCC=$ac_cv_prog_DISTCC
  2982. if test -n "$DISTCC"; then
  2983. echo "$as_me:$LINENO: result: $DISTCC" >&5
  2984. echo "${ECHO_T}$DISTCC" >&6
  2985. else
  2986. echo "$as_me:$LINENO: result: no" >&5
  2987. echo "${ECHO_T}no" >&6
  2988. fi
  2989. # Test the os and set the module linking settings
  2990. EGG_CYGWIN=no
  2991. echo "$as_me:$LINENO: checking system type" >&5
  2992. echo $ECHO_N "checking system type... $ECHO_C" >&6
  2993. if test "${egg_cv_var_system_type+set}" = set; then
  2994. echo $ECHO_N "(cached) $ECHO_C" >&6
  2995. else
  2996. egg_cv_var_system_type=`$UNAME -s`
  2997. fi
  2998. echo "$as_me:$LINENO: result: $egg_cv_var_system_type" >&5
  2999. echo "${ECHO_T}$egg_cv_var_system_type" >&6
  3000. echo "$as_me:$LINENO: checking system release" >&5
  3001. echo $ECHO_N "checking system release... $ECHO_C" >&6
  3002. if test "${egg_cv_var_system_release+set}" = set; then
  3003. echo $ECHO_N "(cached) $ECHO_C" >&6
  3004. else
  3005. egg_cv_var_system_release=`$UNAME -r`
  3006. fi
  3007. echo "$as_me:$LINENO: result: $egg_cv_var_system_release" >&5
  3008. echo "${ECHO_T}$egg_cv_var_system_release" >&6
  3009. echo "$as_me:$LINENO: checking system machine" >&5
  3010. echo $ECHO_N "checking system machine... $ECHO_C" >&6
  3011. if test "${egg_cv_var_system_machine+set}" = set; then
  3012. echo $ECHO_N "(cached) $ECHO_C" >&6
  3013. else
  3014. egg_cv_var_system_machine=`$UNAME -m`
  3015. fi
  3016. echo "$as_me:$LINENO: result: $egg_cv_var_system_machine" >&5
  3017. echo "${ECHO_T}$egg_cv_var_system_machine" >&6
  3018. case "$egg_cv_var_system_machine" in
  3019. i*)
  3020. CXX="$CXX -march=i486"
  3021. ;;
  3022. *)
  3023. ;;
  3024. esac
  3025. case "$egg_cv_var_system_type" in
  3026. BSD/OS)
  3027. ;;
  3028. CYGWI*)
  3029. echo "$as_me:$LINENO: checking how to access the Win32 API" >&5
  3030. echo $ECHO_N "checking how to access the Win32 API... $ECHO_C" >&6
  3031. WIN32FLAGS=
  3032. cat >conftest.$ac_ext <<_ACEOF
  3033. /* confdefs.h. */
  3034. _ACEOF
  3035. cat confdefs.h >>conftest.$ac_ext
  3036. cat >>conftest.$ac_ext <<_ACEOF
  3037. /* end confdefs.h. */
  3038. int
  3039. main ()
  3040. {
  3041. #ifndef WIN32
  3042. # ifndef _WIN32
  3043. # error WIN32 or _WIN32 not defined
  3044. # endif
  3045. #endif
  3046. ;
  3047. return 0;
  3048. }
  3049. _ACEOF
  3050. rm -f conftest.$ac_objext
  3051. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3052. (eval $ac_compile) 2>conftest.er1
  3053. ac_status=$?
  3054. grep -v '^ *+' conftest.er1 >conftest.err
  3055. rm -f conftest.er1
  3056. cat conftest.err >&5
  3057. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3058. (exit $ac_status); } &&
  3059. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3060. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3061. (eval $ac_try) 2>&5
  3062. ac_status=$?
  3063. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3064. (exit $ac_status); }; } &&
  3065. { ac_try='test -s conftest.$ac_objext'
  3066. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3067. (eval $ac_try) 2>&5
  3068. ac_status=$?
  3069. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3070. (exit $ac_status); }; }; then
  3071. echo "$as_me:$LINENO: result: present by default" >&5
  3072. echo "${ECHO_T}present by default" >&6
  3073. else
  3074. echo "$as_me: failed program was:" >&5
  3075. sed 's/^/| /' conftest.$ac_ext >&5
  3076. ac_compile_save="$ac_compile"
  3077. save_CXX="$CXX"
  3078. ac_compile="$ac_compile -mwin32"
  3079. CXX="$CXX -mwin32"
  3080. cat >conftest.$ac_ext <<_ACEOF
  3081. /* confdefs.h. */
  3082. _ACEOF
  3083. cat confdefs.h >>conftest.$ac_ext
  3084. cat >>conftest.$ac_ext <<_ACEOF
  3085. /* end confdefs.h. */
  3086. int
  3087. main ()
  3088. {
  3089. #ifndef WIN32
  3090. # ifndef _WIN32
  3091. # error WIN32 or _WIN32 not defined
  3092. # endif
  3093. #endif
  3094. ;
  3095. return 0;
  3096. }
  3097. _ACEOF
  3098. rm -f conftest.$ac_objext
  3099. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3100. (eval $ac_compile) 2>conftest.er1
  3101. ac_status=$?
  3102. grep -v '^ *+' conftest.er1 >conftest.err
  3103. rm -f conftest.er1
  3104. cat conftest.err >&5
  3105. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3106. (exit $ac_status); } &&
  3107. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3108. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3109. (eval $ac_try) 2>&5
  3110. ac_status=$?
  3111. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3112. (exit $ac_status); }; } &&
  3113. { ac_try='test -s conftest.$ac_objext'
  3114. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3115. (eval $ac_try) 2>&5
  3116. ac_status=$?
  3117. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3118. (exit $ac_status); }; }; then
  3119. echo "$as_me:$LINENO: result: found via -mwin32" >&5
  3120. echo "${ECHO_T}found via -mwin32" >&6
  3121. ac_compile="$ac_compile_save"
  3122. CXX="$save_CXX"
  3123. WIN32FLAGS="-mwin32"
  3124. else
  3125. echo "$as_me: failed program was:" >&5
  3126. sed 's/^/| /' conftest.$ac_ext >&5
  3127. ac_compile="$ac_compile_save"
  3128. CXX="$save_CXX"
  3129. echo "$as_me:$LINENO: result: not found" >&5
  3130. echo "${ECHO_T}not found" >&6
  3131. fi
  3132. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3133. fi
  3134. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3135. CXX="$CXX $WIN32FLAGS"
  3136. EGG_CYGWIN="yes"
  3137. if test $EGG_CYGWIN = "yes"; then
  3138. echo "$as_me:$LINENO: checking for /usr/lib/binmode.o" >&5
  3139. echo $ECHO_N "checking for /usr/lib/binmode.o... $ECHO_C" >&6
  3140. if test -r /usr/lib/binmode.o; then
  3141. echo "$as_me:$LINENO: result: yes" >&5
  3142. echo "${ECHO_T}yes" >&6
  3143. LIBS="$LIBS /usr/lib/binmode.o"
  3144. else
  3145. echo "$as_me:$LINENO: result: no" >&5
  3146. echo "${ECHO_T}no" >&6
  3147. { echo "$as_me:$LINENO: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&5
  3148. echo "$as_me: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&2;}
  3149. fi
  3150. fi
  3151. cat >>confdefs.h <<\_ACEOF
  3152. #define CYGWIN_HACKS 1
  3153. _ACEOF
  3154. cat >>confdefs.h <<\_ACEOF
  3155. #define WIN32_LEAN_AND_MEAN 1
  3156. _ACEOF
  3157. ;;
  3158. IRIX)
  3159. ;;
  3160. HP-UX)
  3161. cat >>confdefs.h <<\_ACEOF
  3162. #define MD32_XARRAY 1
  3163. _ACEOF
  3164. ;;
  3165. Ultrix)
  3166. SHELL=/bin/sh5
  3167. ;;
  3168. SINIX*)
  3169. ;;
  3170. BeOS)
  3171. ;;
  3172. Linux)
  3173. ;;
  3174. Lynx)
  3175. ;;
  3176. QNX)
  3177. ;;
  3178. OSF1)
  3179. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  3180. V*)
  3181. if test "$AWK" = "gawk"
  3182. then
  3183. AWK=awk
  3184. fi
  3185. ;;
  3186. 1.0|1.1|1.2)
  3187. cat >>confdefs.h <<\_ACEOF
  3188. #define OSF1_HACKS 1
  3189. _ACEOF
  3190. ;;
  3191. 1.*)
  3192. cat >>confdefs.h <<\_ACEOF
  3193. #define OSF1_HACKS 1
  3194. _ACEOF
  3195. ;;
  3196. *)
  3197. ;;
  3198. esac
  3199. cat >>confdefs.h <<\_ACEOF
  3200. #define STOP_UAC 1
  3201. _ACEOF
  3202. cat >>confdefs.h <<\_ACEOF
  3203. #define BROKEN_SNPRINTF 1
  3204. _ACEOF
  3205. ;;
  3206. SunOS)
  3207. SUNOS="yes"
  3208. ;;
  3209. *BSD)
  3210. # FreeBSD/OpenBSD/NetBSD
  3211. ;;
  3212. *)
  3213. echo "$as_me:$LINENO: checking if system is Mach based" >&5
  3214. echo $ECHO_N "checking if system is Mach based... $ECHO_C" >&6
  3215. if test -r /mach
  3216. then
  3217. echo "$as_me:$LINENO: result: yes" >&5
  3218. echo "${ECHO_T}yes" >&6
  3219. cat >>confdefs.h <<\_ACEOF
  3220. #define BORGCUBES 1
  3221. _ACEOF
  3222. else
  3223. echo "$as_me:$LINENO: result: no" >&5
  3224. echo "${ECHO_T}no" >&6
  3225. echo "$as_me:$LINENO: checking if system is QNX" >&5
  3226. echo $ECHO_N "checking if system is QNX... $ECHO_C" >&6
  3227. if test -r /cmds
  3228. then
  3229. echo "$as_me:$LINENO: result: yes" >&5
  3230. echo "${ECHO_T}yes" >&6
  3231. else
  3232. echo "$as_me:$LINENO: result: no" >&5
  3233. echo "${ECHO_T}no" >&6
  3234. echo "$as_me:$LINENO: result: Something unknown!" >&5
  3235. echo "${ECHO_T}Something unknown!" >&6
  3236. echo "$as_me:$LINENO: result: If you get dynamic modules to work, be sure to let the devel team know HOW :)" >&5
  3237. echo "${ECHO_T}If you get dynamic modules to work, be sure to let the devel team know HOW :)" >&6
  3238. fi
  3239. fi
  3240. ;;
  3241. esac
  3242. # Check for IPv6 support
  3243. #EGG_IPV6_SUPPORTED
  3244. echo "$as_me:$LINENO: checking whether or not you disabled IPv6 support" >&5
  3245. echo $ECHO_N "checking whether or not you disabled IPv6 support... $ECHO_C" >&6
  3246. # Check whether --enable-ipv6 or --disable-ipv6 was given.
  3247. if test "${enable_ipv6+set}" = set; then
  3248. enableval="$enable_ipv6"
  3249. ac_cv_dipv6="yes"
  3250. echo "$as_me:$LINENO: result: yes" >&5
  3251. echo "${ECHO_T}yes" >&6
  3252. else
  3253. ac_cv_dipv6="no"
  3254. if test "$egg_cv_ipv6_supported" = "no"; then
  3255. ac_cv_dipv6="no"
  3256. fi
  3257. echo "$as_me:$LINENO: result: $ac_cv_dipv6" >&5
  3258. echo "${ECHO_T}$ac_cv_dipv6" >&6
  3259. fi;
  3260. if ! test "$EGG_CYGWIN" = "yes"; then
  3261. if test "$ac_cv_dipv6" = "no"; then
  3262. cat >>confdefs.h <<\_ACEOF
  3263. #define USE_IPV6 1
  3264. _ACEOF
  3265. fi
  3266. fi
  3267. echo "$as_me:$LINENO: checking for socklen_t" >&5
  3268. echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
  3269. if test "${egg_cv_socklen_t+set}" = set; then
  3270. echo $ECHO_N "(cached) $ECHO_C" >&6
  3271. else
  3272. if test "$cross_compiling" = yes; then
  3273. egg_cv_socklen_t=no
  3274. else
  3275. cat >conftest.$ac_ext <<_ACEOF
  3276. /* confdefs.h. */
  3277. _ACEOF
  3278. cat confdefs.h >>conftest.$ac_ext
  3279. cat >>conftest.$ac_ext <<_ACEOF
  3280. /* end confdefs.h. */
  3281. #include <unistd.h>
  3282. #include <sys/types.h>
  3283. #include <sys/socket.h>
  3284. #include <netinet/in.h>
  3285. #include <arpa/inet.h>
  3286. int main()
  3287. {
  3288. socklen_t test = sizeof(int);
  3289. return 0;
  3290. }
  3291. _ACEOF
  3292. rm -f conftest$ac_exeext
  3293. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3294. (eval $ac_link) 2>&5
  3295. ac_status=$?
  3296. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3297. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3298. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3299. (eval $ac_try) 2>&5
  3300. ac_status=$?
  3301. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3302. (exit $ac_status); }; }; then
  3303. egg_cv_socklen_t=yes
  3304. else
  3305. echo "$as_me: program exited with status $ac_status" >&5
  3306. echo "$as_me: failed program was:" >&5
  3307. sed 's/^/| /' conftest.$ac_ext >&5
  3308. ( exit $ac_status )
  3309. egg_cv_socklen_t=no
  3310. fi
  3311. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3312. fi
  3313. fi
  3314. if test "$egg_cv_socklen_t" = "yes"; then
  3315. cat >>confdefs.h <<\_ACEOF
  3316. #define HAVE_SOCKLEN_T 1
  3317. _ACEOF
  3318. echo "$as_me:$LINENO: result: yes" >&5
  3319. echo "${ECHO_T}yes" >&6
  3320. else
  3321. echo "$as_me:$LINENO: result: no" >&5
  3322. echo "${ECHO_T}no" >&6
  3323. fi
  3324. # Check for inconsistent random() functions
  3325. echo "$as_me:$LINENO: checking for random limit" >&5
  3326. echo $ECHO_N "checking for random limit... $ECHO_C" >&6
  3327. case "$egg_cv_var_system_type" in
  3328. SunOS) RMAX=0x7FFFFFFF
  3329. ;;
  3330. *) RMAX=RAND_MAX
  3331. ;;
  3332. esac
  3333. echo "$as_me:$LINENO: result: $RMAX" >&5
  3334. echo "${ECHO_T}$RMAX" >&6
  3335. cat >>confdefs.h <<_ACEOF
  3336. #define RANDOM_MAX $RMAX
  3337. _ACEOF
  3338. # Create static binaries
  3339. if test -z "$no_static"
  3340. then
  3341. if test -n "$GXX"
  3342. then
  3343. echo "$as_me:$LINENO: checking whether the compiler understands -static" >&5
  3344. echo $ECHO_N "checking whether the compiler understands -static... $ECHO_C" >&6
  3345. if test "${egg_cv_var_ccstatic+set}" = set; then
  3346. echo $ECHO_N "(cached) $ECHO_C" >&6
  3347. else
  3348. ac_old_CXX="$CXX"
  3349. CXX="$CXX -static"
  3350. cat >conftest.$ac_ext <<_ACEOF
  3351. /* confdefs.h. */
  3352. _ACEOF
  3353. cat confdefs.h >>conftest.$ac_ext
  3354. cat >>conftest.$ac_ext <<_ACEOF
  3355. /* end confdefs.h. */
  3356. int
  3357. main ()
  3358. {
  3359. ;
  3360. return 0;
  3361. }
  3362. _ACEOF
  3363. rm -f conftest.$ac_objext
  3364. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3365. (eval $ac_compile) 2>conftest.er1
  3366. ac_status=$?
  3367. grep -v '^ *+' conftest.er1 >conftest.err
  3368. rm -f conftest.er1
  3369. cat conftest.err >&5
  3370. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3371. (exit $ac_status); } &&
  3372. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3373. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3374. (eval $ac_try) 2>&5
  3375. ac_status=$?
  3376. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3377. (exit $ac_status); }; } &&
  3378. { ac_try='test -s conftest.$ac_objext'
  3379. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3380. (eval $ac_try) 2>&5
  3381. ac_status=$?
  3382. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3383. (exit $ac_status); }; }; then
  3384. egg_cv_var_ccstatic="yes"
  3385. else
  3386. echo "$as_me: failed program was:" >&5
  3387. sed 's/^/| /' conftest.$ac_ext >&5
  3388. egg_cv_var_ccstatic="no"
  3389. fi
  3390. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3391. CXX="$ac_old_CXX"
  3392. fi
  3393. echo "$as_me:$LINENO: result: $egg_cv_var_ccstatic" >&5
  3394. echo "${ECHO_T}$egg_cv_var_ccstatic" >&6
  3395. if test "$egg_cv_var_ccstatic" = "yes"
  3396. then
  3397. CCDEBUG="$CXX"
  3398. CXX="$CXX -static"
  3399. else
  3400. cat << 'EOF' >&2
  3401. configure: error:
  3402. Your C compiler does not support -static.
  3403. This compile flag is required for the botpack.
  3404. EOF
  3405. exit 1
  3406. fi
  3407. fi
  3408. fi
  3409. #checkpoint
  3410. cat >confcache <<\_ACEOF
  3411. # This file is a shell script that caches the results of configure
  3412. # tests run on this system so they can be shared between configure
  3413. # scripts and configure runs, see configure's option --config-cache.
  3414. # It is not useful on other systems. If it contains results you don't
  3415. # want to keep, you may remove or edit it.
  3416. #
  3417. # config.status only pays attention to the cache file if you give it
  3418. # the --recheck option to rerun configure.
  3419. #
  3420. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  3421. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  3422. # following values.
  3423. _ACEOF
  3424. # The following way of writing the cache mishandles newlines in values,
  3425. # but we know of no workaround that is simple, portable, and efficient.
  3426. # So, don't put newlines in cache variables' values.
  3427. # Ultrix sh set writes to stderr and can't be redirected directly,
  3428. # and sets the high bit in the cache file unless we assign to the vars.
  3429. {
  3430. (set) 2>&1 |
  3431. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  3432. *ac_space=\ *)
  3433. # `set' does not quote correctly, so add quotes (double-quote
  3434. # substitution turns \\\\ into \\, and sed turns \\ into \).
  3435. sed -n \
  3436. "s/'/'\\\\''/g;
  3437. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  3438. ;;
  3439. *)
  3440. # `set' quotes correctly as required by POSIX, so do not add quotes.
  3441. sed -n \
  3442. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  3443. ;;
  3444. esac;
  3445. } |
  3446. sed '
  3447. t clear
  3448. : clear
  3449. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  3450. t end
  3451. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  3452. : end' >>confcache
  3453. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  3454. if test -w $cache_file; then
  3455. test "x$cache_file" != "x/dev/null"
  3456. cat confcache >$cache_file
  3457. else
  3458. echo "not updating unwritable cache $cache_file"
  3459. fi
  3460. fi
  3461. rm -f confcache
  3462. # Checks for system libraries
  3463. echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
  3464. echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
  3465. if test "${ac_cv_lib_socket_socket+set}" = set; then
  3466. echo $ECHO_N "(cached) $ECHO_C" >&6
  3467. else
  3468. ac_check_lib_save_LIBS=$LIBS
  3469. LIBS="-lsocket $LIBS"
  3470. cat >conftest.$ac_ext <<_ACEOF
  3471. /* confdefs.h. */
  3472. _ACEOF
  3473. cat confdefs.h >>conftest.$ac_ext
  3474. cat >>conftest.$ac_ext <<_ACEOF
  3475. /* end confdefs.h. */
  3476. /* Override any gcc2 internal prototype to avoid an error. */
  3477. #ifdef __cplusplus
  3478. extern "C"
  3479. #endif
  3480. /* We use char because int might match the return type of a gcc2
  3481. builtin and then its argument prototype would still apply. */
  3482. char socket ();
  3483. int
  3484. main ()
  3485. {
  3486. socket ();
  3487. ;
  3488. return 0;
  3489. }
  3490. _ACEOF
  3491. rm -f conftest.$ac_objext conftest$ac_exeext
  3492. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3493. (eval $ac_link) 2>conftest.er1
  3494. ac_status=$?
  3495. grep -v '^ *+' conftest.er1 >conftest.err
  3496. rm -f conftest.er1
  3497. cat conftest.err >&5
  3498. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3499. (exit $ac_status); } &&
  3500. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3501. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3502. (eval $ac_try) 2>&5
  3503. ac_status=$?
  3504. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3505. (exit $ac_status); }; } &&
  3506. { ac_try='test -s conftest$ac_exeext'
  3507. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3508. (eval $ac_try) 2>&5
  3509. ac_status=$?
  3510. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3511. (exit $ac_status); }; }; then
  3512. ac_cv_lib_socket_socket=yes
  3513. else
  3514. echo "$as_me: failed program was:" >&5
  3515. sed 's/^/| /' conftest.$ac_ext >&5
  3516. ac_cv_lib_socket_socket=no
  3517. fi
  3518. rm -f conftest.err conftest.$ac_objext \
  3519. conftest$ac_exeext conftest.$ac_ext
  3520. LIBS=$ac_check_lib_save_LIBS
  3521. fi
  3522. echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
  3523. echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
  3524. if test $ac_cv_lib_socket_socket = yes; then
  3525. cat >>confdefs.h <<_ACEOF
  3526. #define HAVE_LIBSOCKET 1
  3527. _ACEOF
  3528. LIBS="-lsocket $LIBS"
  3529. fi
  3530. echo "$as_me:$LINENO: checking for connect in -lnsl" >&5
  3531. echo $ECHO_N "checking for connect in -lnsl... $ECHO_C" >&6
  3532. if test "${ac_cv_lib_nsl_connect+set}" = set; then
  3533. echo $ECHO_N "(cached) $ECHO_C" >&6
  3534. else
  3535. ac_check_lib_save_LIBS=$LIBS
  3536. LIBS="-lnsl $LIBS"
  3537. cat >conftest.$ac_ext <<_ACEOF
  3538. /* confdefs.h. */
  3539. _ACEOF
  3540. cat confdefs.h >>conftest.$ac_ext
  3541. cat >>conftest.$ac_ext <<_ACEOF
  3542. /* end confdefs.h. */
  3543. /* Override any gcc2 internal prototype to avoid an error. */
  3544. #ifdef __cplusplus
  3545. extern "C"
  3546. #endif
  3547. /* We use char because int might match the return type of a gcc2
  3548. builtin and then its argument prototype would still apply. */
  3549. char connect ();
  3550. int
  3551. main ()
  3552. {
  3553. connect ();
  3554. ;
  3555. return 0;
  3556. }
  3557. _ACEOF
  3558. rm -f conftest.$ac_objext conftest$ac_exeext
  3559. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3560. (eval $ac_link) 2>conftest.er1
  3561. ac_status=$?
  3562. grep -v '^ *+' conftest.er1 >conftest.err
  3563. rm -f conftest.er1
  3564. cat conftest.err >&5
  3565. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3566. (exit $ac_status); } &&
  3567. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3568. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3569. (eval $ac_try) 2>&5
  3570. ac_status=$?
  3571. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3572. (exit $ac_status); }; } &&
  3573. { ac_try='test -s conftest$ac_exeext'
  3574. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3575. (eval $ac_try) 2>&5
  3576. ac_status=$?
  3577. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3578. (exit $ac_status); }; }; then
  3579. ac_cv_lib_nsl_connect=yes
  3580. else
  3581. echo "$as_me: failed program was:" >&5
  3582. sed 's/^/| /' conftest.$ac_ext >&5
  3583. ac_cv_lib_nsl_connect=no
  3584. fi
  3585. rm -f conftest.err conftest.$ac_objext \
  3586. conftest$ac_exeext conftest.$ac_ext
  3587. LIBS=$ac_check_lib_save_LIBS
  3588. fi
  3589. echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_connect" >&5
  3590. echo "${ECHO_T}$ac_cv_lib_nsl_connect" >&6
  3591. if test $ac_cv_lib_nsl_connect = yes; then
  3592. cat >>confdefs.h <<_ACEOF
  3593. #define HAVE_LIBNSL 1
  3594. _ACEOF
  3595. LIBS="-lnsl $LIBS"
  3596. fi
  3597. # AC_CHECK_LIB(dl, dlopen)
  3598. echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
  3599. echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
  3600. if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
  3601. echo $ECHO_N "(cached) $ECHO_C" >&6
  3602. else
  3603. ac_check_lib_save_LIBS=$LIBS
  3604. LIBS="-lnsl $LIBS"
  3605. cat >conftest.$ac_ext <<_ACEOF
  3606. /* confdefs.h. */
  3607. _ACEOF
  3608. cat confdefs.h >>conftest.$ac_ext
  3609. cat >>conftest.$ac_ext <<_ACEOF
  3610. /* end confdefs.h. */
  3611. /* Override any gcc2 internal prototype to avoid an error. */
  3612. #ifdef __cplusplus
  3613. extern "C"
  3614. #endif
  3615. /* We use char because int might match the return type of a gcc2
  3616. builtin and then its argument prototype would still apply. */
  3617. char gethostbyname ();
  3618. int
  3619. main ()
  3620. {
  3621. gethostbyname ();
  3622. ;
  3623. return 0;
  3624. }
  3625. _ACEOF
  3626. rm -f conftest.$ac_objext conftest$ac_exeext
  3627. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3628. (eval $ac_link) 2>conftest.er1
  3629. ac_status=$?
  3630. grep -v '^ *+' conftest.er1 >conftest.err
  3631. rm -f conftest.er1
  3632. cat conftest.err >&5
  3633. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3634. (exit $ac_status); } &&
  3635. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3636. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3637. (eval $ac_try) 2>&5
  3638. ac_status=$?
  3639. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3640. (exit $ac_status); }; } &&
  3641. { ac_try='test -s conftest$ac_exeext'
  3642. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3643. (eval $ac_try) 2>&5
  3644. ac_status=$?
  3645. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3646. (exit $ac_status); }; }; then
  3647. ac_cv_lib_nsl_gethostbyname=yes
  3648. else
  3649. echo "$as_me: failed program was:" >&5
  3650. sed 's/^/| /' conftest.$ac_ext >&5
  3651. ac_cv_lib_nsl_gethostbyname=no
  3652. fi
  3653. rm -f conftest.err conftest.$ac_objext \
  3654. conftest$ac_exeext conftest.$ac_ext
  3655. LIBS=$ac_check_lib_save_LIBS
  3656. fi
  3657. echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
  3658. echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
  3659. if test $ac_cv_lib_nsl_gethostbyname = yes; then
  3660. cat >>confdefs.h <<_ACEOF
  3661. #define HAVE_LIBNSL 1
  3662. _ACEOF
  3663. LIBS="-lnsl $LIBS"
  3664. fi
  3665. echo "$as_me:$LINENO: checking for gethostbyname in -ldns" >&5
  3666. echo $ECHO_N "checking for gethostbyname in -ldns... $ECHO_C" >&6
  3667. if test "${ac_cv_lib_dns_gethostbyname+set}" = set; then
  3668. echo $ECHO_N "(cached) $ECHO_C" >&6
  3669. else
  3670. ac_check_lib_save_LIBS=$LIBS
  3671. LIBS="-ldns $LIBS"
  3672. cat >conftest.$ac_ext <<_ACEOF
  3673. /* confdefs.h. */
  3674. _ACEOF
  3675. cat confdefs.h >>conftest.$ac_ext
  3676. cat >>conftest.$ac_ext <<_ACEOF
  3677. /* end confdefs.h. */
  3678. /* Override any gcc2 internal prototype to avoid an error. */
  3679. #ifdef __cplusplus
  3680. extern "C"
  3681. #endif
  3682. /* We use char because int might match the return type of a gcc2
  3683. builtin and then its argument prototype would still apply. */
  3684. char gethostbyname ();
  3685. int
  3686. main ()
  3687. {
  3688. gethostbyname ();
  3689. ;
  3690. return 0;
  3691. }
  3692. _ACEOF
  3693. rm -f conftest.$ac_objext conftest$ac_exeext
  3694. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3695. (eval $ac_link) 2>conftest.er1
  3696. ac_status=$?
  3697. grep -v '^ *+' conftest.er1 >conftest.err
  3698. rm -f conftest.er1
  3699. cat conftest.err >&5
  3700. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3701. (exit $ac_status); } &&
  3702. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3703. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3704. (eval $ac_try) 2>&5
  3705. ac_status=$?
  3706. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3707. (exit $ac_status); }; } &&
  3708. { ac_try='test -s conftest$ac_exeext'
  3709. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3710. (eval $ac_try) 2>&5
  3711. ac_status=$?
  3712. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3713. (exit $ac_status); }; }; then
  3714. ac_cv_lib_dns_gethostbyname=yes
  3715. else
  3716. echo "$as_me: failed program was:" >&5
  3717. sed 's/^/| /' conftest.$ac_ext >&5
  3718. ac_cv_lib_dns_gethostbyname=no
  3719. fi
  3720. rm -f conftest.err conftest.$ac_objext \
  3721. conftest$ac_exeext conftest.$ac_ext
  3722. LIBS=$ac_check_lib_save_LIBS
  3723. fi
  3724. echo "$as_me:$LINENO: result: $ac_cv_lib_dns_gethostbyname" >&5
  3725. echo "${ECHO_T}$ac_cv_lib_dns_gethostbyname" >&6
  3726. if test $ac_cv_lib_dns_gethostbyname = yes; then
  3727. cat >>confdefs.h <<_ACEOF
  3728. #define HAVE_LIBDNS 1
  3729. _ACEOF
  3730. LIBS="-ldns $LIBS"
  3731. fi
  3732. # AC_CHECK_LIB(z, gzopen, ZLIB="-lz")
  3733. # AC_CHECK_LIB(ssl, SSL_accept, SSL="-lssl -lcrypto", SSL="", -lcrypto)
  3734. # AC_CHECK_LIB(ssl, SSL_accept, SSL="-lcrypto", SSL="", -lcrypto)
  3735. # This is needed for Tcl libraries compiled with thread support
  3736. # AC_CHECK_LIB(pthread, pthread_mutex_init, [dnl
  3737. # ac_cv_lib_pthread_pthread_mutex_init=yes
  3738. # ac_cv_lib_pthread="-lpthread"], [dnl
  3739. # AC_CHECK_LIB(pthread, __pthread_mutex_init, [dnl
  3740. # ac_cv_lib_pthread_pthread_mutex_init=yes
  3741. # ac_cv_lib_pthread="-lpthread"], [dnl
  3742. # AC_CHECK_LIB(pthreads, pthread_mutex_init, [dnl
  3743. # ac_cv_lib_pthread_pthread_mutex_init=yes
  3744. # ac_cv_lib_pthread="-lpthreads"], [dnl
  3745. # AC_CHECK_FUNC(pthread_mutex_init, [dnl
  3746. # ac_cv_lib_pthread_pthread_mutex_init=yes
  3747. # ac_cv_lib_pthread=""],
  3748. # ac_cv_lib_pthread_pthread_mutex_init=no)])])])
  3749. if test "$SUNOS" = "yes"; then
  3750. # For suns without yp
  3751. echo "$as_me:$LINENO: checking for main in -ldl" >&5
  3752. echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
  3753. if test "${ac_cv_lib_dl_main+set}" = set; then
  3754. echo $ECHO_N "(cached) $ECHO_C" >&6
  3755. else
  3756. ac_check_lib_save_LIBS=$LIBS
  3757. LIBS="-ldl $LIBS"
  3758. cat >conftest.$ac_ext <<_ACEOF
  3759. /* confdefs.h. */
  3760. _ACEOF
  3761. cat confdefs.h >>conftest.$ac_ext
  3762. cat >>conftest.$ac_ext <<_ACEOF
  3763. /* end confdefs.h. */
  3764. int
  3765. main ()
  3766. {
  3767. main ();
  3768. ;
  3769. return 0;
  3770. }
  3771. _ACEOF
  3772. rm -f conftest.$ac_objext conftest$ac_exeext
  3773. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3774. (eval $ac_link) 2>conftest.er1
  3775. ac_status=$?
  3776. grep -v '^ *+' conftest.er1 >conftest.err
  3777. rm -f conftest.er1
  3778. cat conftest.err >&5
  3779. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3780. (exit $ac_status); } &&
  3781. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3782. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3783. (eval $ac_try) 2>&5
  3784. ac_status=$?
  3785. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3786. (exit $ac_status); }; } &&
  3787. { ac_try='test -s conftest$ac_exeext'
  3788. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3789. (eval $ac_try) 2>&5
  3790. ac_status=$?
  3791. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3792. (exit $ac_status); }; }; then
  3793. ac_cv_lib_dl_main=yes
  3794. else
  3795. echo "$as_me: failed program was:" >&5
  3796. sed 's/^/| /' conftest.$ac_ext >&5
  3797. ac_cv_lib_dl_main=no
  3798. fi
  3799. rm -f conftest.err conftest.$ac_objext \
  3800. conftest$ac_exeext conftest.$ac_ext
  3801. LIBS=$ac_check_lib_save_LIBS
  3802. fi
  3803. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
  3804. echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
  3805. if test $ac_cv_lib_dl_main = yes; then
  3806. cat >>confdefs.h <<_ACEOF
  3807. #define HAVE_LIBDL 1
  3808. _ACEOF
  3809. LIBS="-ldl $LIBS"
  3810. fi
  3811. echo "$as_me:$LINENO: checking for main in -lsocket" >&5
  3812. echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
  3813. if test "${ac_cv_lib_socket_main+set}" = set; then
  3814. echo $ECHO_N "(cached) $ECHO_C" >&6
  3815. else
  3816. ac_check_lib_save_LIBS=$LIBS
  3817. LIBS="-lsocket $LIBS"
  3818. cat >conftest.$ac_ext <<_ACEOF
  3819. /* confdefs.h. */
  3820. _ACEOF
  3821. cat confdefs.h >>conftest.$ac_ext
  3822. cat >>conftest.$ac_ext <<_ACEOF
  3823. /* end confdefs.h. */
  3824. int
  3825. main ()
  3826. {
  3827. main ();
  3828. ;
  3829. return 0;
  3830. }
  3831. _ACEOF
  3832. rm -f conftest.$ac_objext conftest$ac_exeext
  3833. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3834. (eval $ac_link) 2>conftest.er1
  3835. ac_status=$?
  3836. grep -v '^ *+' conftest.er1 >conftest.err
  3837. rm -f conftest.er1
  3838. cat conftest.err >&5
  3839. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3840. (exit $ac_status); } &&
  3841. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3842. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3843. (eval $ac_try) 2>&5
  3844. ac_status=$?
  3845. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3846. (exit $ac_status); }; } &&
  3847. { ac_try='test -s conftest$ac_exeext'
  3848. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3849. (eval $ac_try) 2>&5
  3850. ac_status=$?
  3851. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3852. (exit $ac_status); }; }; then
  3853. ac_cv_lib_socket_main=yes
  3854. else
  3855. echo "$as_me: failed program was:" >&5
  3856. sed 's/^/| /' conftest.$ac_ext >&5
  3857. ac_cv_lib_socket_main=no
  3858. fi
  3859. rm -f conftest.err conftest.$ac_objext \
  3860. conftest$ac_exeext conftest.$ac_ext
  3861. LIBS=$ac_check_lib_save_LIBS
  3862. fi
  3863. echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
  3864. echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
  3865. if test $ac_cv_lib_socket_main = yes; then
  3866. cat >>confdefs.h <<_ACEOF
  3867. #define HAVE_LIBSOCKET 1
  3868. _ACEOF
  3869. LIBS="-lsocket $LIBS"
  3870. fi
  3871. echo "$as_me:$LINENO: checking for main in -lnsl" >&5
  3872. echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
  3873. if test "${ac_cv_lib_nsl_main+set}" = set; then
  3874. echo $ECHO_N "(cached) $ECHO_C" >&6
  3875. else
  3876. ac_check_lib_save_LIBS=$LIBS
  3877. LIBS="-lnsl $LIBS"
  3878. cat >conftest.$ac_ext <<_ACEOF
  3879. /* confdefs.h. */
  3880. _ACEOF
  3881. cat confdefs.h >>conftest.$ac_ext
  3882. cat >>conftest.$ac_ext <<_ACEOF
  3883. /* end confdefs.h. */
  3884. int
  3885. main ()
  3886. {
  3887. main ();
  3888. ;
  3889. return 0;
  3890. }
  3891. _ACEOF
  3892. rm -f conftest.$ac_objext conftest$ac_exeext
  3893. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3894. (eval $ac_link) 2>conftest.er1
  3895. ac_status=$?
  3896. grep -v '^ *+' conftest.er1 >conftest.err
  3897. rm -f conftest.er1
  3898. cat conftest.err >&5
  3899. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3900. (exit $ac_status); } &&
  3901. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3902. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3903. (eval $ac_try) 2>&5
  3904. ac_status=$?
  3905. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3906. (exit $ac_status); }; } &&
  3907. { ac_try='test -s conftest$ac_exeext'
  3908. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3909. (eval $ac_try) 2>&5
  3910. ac_status=$?
  3911. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3912. (exit $ac_status); }; }; then
  3913. ac_cv_lib_nsl_main=yes
  3914. else
  3915. echo "$as_me: failed program was:" >&5
  3916. sed 's/^/| /' conftest.$ac_ext >&5
  3917. ac_cv_lib_nsl_main=no
  3918. fi
  3919. rm -f conftest.err conftest.$ac_objext \
  3920. conftest$ac_exeext conftest.$ac_ext
  3921. LIBS=$ac_check_lib_save_LIBS
  3922. fi
  3923. echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
  3924. echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
  3925. if test $ac_cv_lib_nsl_main = yes; then
  3926. cat >>confdefs.h <<_ACEOF
  3927. #define HAVE_LIBNSL 1
  3928. _ACEOF
  3929. LIBS="-lnsl $LIBS"
  3930. fi
  3931. fi
  3932. # Checks for header files
  3933. ac_header_dirent=no
  3934. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  3935. as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  3936. echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  3937. echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
  3938. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3939. echo $ECHO_N "(cached) $ECHO_C" >&6
  3940. else
  3941. cat >conftest.$ac_ext <<_ACEOF
  3942. /* confdefs.h. */
  3943. _ACEOF
  3944. cat confdefs.h >>conftest.$ac_ext
  3945. cat >>conftest.$ac_ext <<_ACEOF
  3946. /* end confdefs.h. */
  3947. #include <sys/types.h>
  3948. #include <$ac_hdr>
  3949. int
  3950. main ()
  3951. {
  3952. if ((DIR *) 0)
  3953. return 0;
  3954. ;
  3955. return 0;
  3956. }
  3957. _ACEOF
  3958. rm -f conftest.$ac_objext
  3959. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3960. (eval $ac_compile) 2>conftest.er1
  3961. ac_status=$?
  3962. grep -v '^ *+' conftest.er1 >conftest.err
  3963. rm -f conftest.er1
  3964. cat conftest.err >&5
  3965. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3966. (exit $ac_status); } &&
  3967. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3968. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3969. (eval $ac_try) 2>&5
  3970. ac_status=$?
  3971. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3972. (exit $ac_status); }; } &&
  3973. { ac_try='test -s conftest.$ac_objext'
  3974. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3975. (eval $ac_try) 2>&5
  3976. ac_status=$?
  3977. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3978. (exit $ac_status); }; }; then
  3979. eval "$as_ac_Header=yes"
  3980. else
  3981. echo "$as_me: failed program was:" >&5
  3982. sed 's/^/| /' conftest.$ac_ext >&5
  3983. eval "$as_ac_Header=no"
  3984. fi
  3985. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3986. fi
  3987. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3988. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3989. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  3990. cat >>confdefs.h <<_ACEOF
  3991. #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  3992. _ACEOF
  3993. ac_header_dirent=$ac_hdr; break
  3994. fi
  3995. done
  3996. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  3997. if test $ac_header_dirent = dirent.h; then
  3998. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  3999. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  4000. if test "${ac_cv_search_opendir+set}" = set; then
  4001. echo $ECHO_N "(cached) $ECHO_C" >&6
  4002. else
  4003. ac_func_search_save_LIBS=$LIBS
  4004. ac_cv_search_opendir=no
  4005. cat >conftest.$ac_ext <<_ACEOF
  4006. /* confdefs.h. */
  4007. _ACEOF
  4008. cat confdefs.h >>conftest.$ac_ext
  4009. cat >>conftest.$ac_ext <<_ACEOF
  4010. /* end confdefs.h. */
  4011. /* Override any gcc2 internal prototype to avoid an error. */
  4012. #ifdef __cplusplus
  4013. extern "C"
  4014. #endif
  4015. /* We use char because int might match the return type of a gcc2
  4016. builtin and then its argument prototype would still apply. */
  4017. char opendir ();
  4018. int
  4019. main ()
  4020. {
  4021. opendir ();
  4022. ;
  4023. return 0;
  4024. }
  4025. _ACEOF
  4026. rm -f conftest.$ac_objext conftest$ac_exeext
  4027. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4028. (eval $ac_link) 2>conftest.er1
  4029. ac_status=$?
  4030. grep -v '^ *+' conftest.er1 >conftest.err
  4031. rm -f conftest.er1
  4032. cat conftest.err >&5
  4033. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4034. (exit $ac_status); } &&
  4035. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4036. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4037. (eval $ac_try) 2>&5
  4038. ac_status=$?
  4039. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4040. (exit $ac_status); }; } &&
  4041. { ac_try='test -s conftest$ac_exeext'
  4042. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4043. (eval $ac_try) 2>&5
  4044. ac_status=$?
  4045. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4046. (exit $ac_status); }; }; then
  4047. ac_cv_search_opendir="none required"
  4048. else
  4049. echo "$as_me: failed program was:" >&5
  4050. sed 's/^/| /' conftest.$ac_ext >&5
  4051. fi
  4052. rm -f conftest.err conftest.$ac_objext \
  4053. conftest$ac_exeext conftest.$ac_ext
  4054. if test "$ac_cv_search_opendir" = no; then
  4055. for ac_lib in dir; do
  4056. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4057. cat >conftest.$ac_ext <<_ACEOF
  4058. /* confdefs.h. */
  4059. _ACEOF
  4060. cat confdefs.h >>conftest.$ac_ext
  4061. cat >>conftest.$ac_ext <<_ACEOF
  4062. /* end confdefs.h. */
  4063. /* Override any gcc2 internal prototype to avoid an error. */
  4064. #ifdef __cplusplus
  4065. extern "C"
  4066. #endif
  4067. /* We use char because int might match the return type of a gcc2
  4068. builtin and then its argument prototype would still apply. */
  4069. char opendir ();
  4070. int
  4071. main ()
  4072. {
  4073. opendir ();
  4074. ;
  4075. return 0;
  4076. }
  4077. _ACEOF
  4078. rm -f conftest.$ac_objext conftest$ac_exeext
  4079. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4080. (eval $ac_link) 2>conftest.er1
  4081. ac_status=$?
  4082. grep -v '^ *+' conftest.er1 >conftest.err
  4083. rm -f conftest.er1
  4084. cat conftest.err >&5
  4085. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4086. (exit $ac_status); } &&
  4087. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4088. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4089. (eval $ac_try) 2>&5
  4090. ac_status=$?
  4091. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4092. (exit $ac_status); }; } &&
  4093. { ac_try='test -s conftest$ac_exeext'
  4094. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4095. (eval $ac_try) 2>&5
  4096. ac_status=$?
  4097. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4098. (exit $ac_status); }; }; then
  4099. ac_cv_search_opendir="-l$ac_lib"
  4100. break
  4101. else
  4102. echo "$as_me: failed program was:" >&5
  4103. sed 's/^/| /' conftest.$ac_ext >&5
  4104. fi
  4105. rm -f conftest.err conftest.$ac_objext \
  4106. conftest$ac_exeext conftest.$ac_ext
  4107. done
  4108. fi
  4109. LIBS=$ac_func_search_save_LIBS
  4110. fi
  4111. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  4112. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  4113. if test "$ac_cv_search_opendir" != no; then
  4114. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  4115. fi
  4116. else
  4117. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  4118. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  4119. if test "${ac_cv_search_opendir+set}" = set; then
  4120. echo $ECHO_N "(cached) $ECHO_C" >&6
  4121. else
  4122. ac_func_search_save_LIBS=$LIBS
  4123. ac_cv_search_opendir=no
  4124. cat >conftest.$ac_ext <<_ACEOF
  4125. /* confdefs.h. */
  4126. _ACEOF
  4127. cat confdefs.h >>conftest.$ac_ext
  4128. cat >>conftest.$ac_ext <<_ACEOF
  4129. /* end confdefs.h. */
  4130. /* Override any gcc2 internal prototype to avoid an error. */
  4131. #ifdef __cplusplus
  4132. extern "C"
  4133. #endif
  4134. /* We use char because int might match the return type of a gcc2
  4135. builtin and then its argument prototype would still apply. */
  4136. char opendir ();
  4137. int
  4138. main ()
  4139. {
  4140. opendir ();
  4141. ;
  4142. return 0;
  4143. }
  4144. _ACEOF
  4145. rm -f conftest.$ac_objext conftest$ac_exeext
  4146. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4147. (eval $ac_link) 2>conftest.er1
  4148. ac_status=$?
  4149. grep -v '^ *+' conftest.er1 >conftest.err
  4150. rm -f conftest.er1
  4151. cat conftest.err >&5
  4152. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4153. (exit $ac_status); } &&
  4154. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4155. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4156. (eval $ac_try) 2>&5
  4157. ac_status=$?
  4158. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4159. (exit $ac_status); }; } &&
  4160. { ac_try='test -s conftest$ac_exeext'
  4161. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4162. (eval $ac_try) 2>&5
  4163. ac_status=$?
  4164. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4165. (exit $ac_status); }; }; then
  4166. ac_cv_search_opendir="none required"
  4167. else
  4168. echo "$as_me: failed program was:" >&5
  4169. sed 's/^/| /' conftest.$ac_ext >&5
  4170. fi
  4171. rm -f conftest.err conftest.$ac_objext \
  4172. conftest$ac_exeext conftest.$ac_ext
  4173. if test "$ac_cv_search_opendir" = no; then
  4174. for ac_lib in x; do
  4175. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4176. cat >conftest.$ac_ext <<_ACEOF
  4177. /* confdefs.h. */
  4178. _ACEOF
  4179. cat confdefs.h >>conftest.$ac_ext
  4180. cat >>conftest.$ac_ext <<_ACEOF
  4181. /* end confdefs.h. */
  4182. /* Override any gcc2 internal prototype to avoid an error. */
  4183. #ifdef __cplusplus
  4184. extern "C"
  4185. #endif
  4186. /* We use char because int might match the return type of a gcc2
  4187. builtin and then its argument prototype would still apply. */
  4188. char opendir ();
  4189. int
  4190. main ()
  4191. {
  4192. opendir ();
  4193. ;
  4194. return 0;
  4195. }
  4196. _ACEOF
  4197. rm -f conftest.$ac_objext conftest$ac_exeext
  4198. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4199. (eval $ac_link) 2>conftest.er1
  4200. ac_status=$?
  4201. grep -v '^ *+' conftest.er1 >conftest.err
  4202. rm -f conftest.er1
  4203. cat conftest.err >&5
  4204. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4205. (exit $ac_status); } &&
  4206. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4207. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4208. (eval $ac_try) 2>&5
  4209. ac_status=$?
  4210. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4211. (exit $ac_status); }; } &&
  4212. { ac_try='test -s conftest$ac_exeext'
  4213. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4214. (eval $ac_try) 2>&5
  4215. ac_status=$?
  4216. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4217. (exit $ac_status); }; }; then
  4218. ac_cv_search_opendir="-l$ac_lib"
  4219. break
  4220. else
  4221. echo "$as_me: failed program was:" >&5
  4222. sed 's/^/| /' conftest.$ac_ext >&5
  4223. fi
  4224. rm -f conftest.err conftest.$ac_objext \
  4225. conftest$ac_exeext conftest.$ac_ext
  4226. done
  4227. fi
  4228. LIBS=$ac_func_search_save_LIBS
  4229. fi
  4230. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  4231. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  4232. if test "$ac_cv_search_opendir" != no; then
  4233. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  4234. fi
  4235. fi
  4236. echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  4237. echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
  4238. if test "${ac_cv_header_sys_wait_h+set}" = set; then
  4239. echo $ECHO_N "(cached) $ECHO_C" >&6
  4240. else
  4241. cat >conftest.$ac_ext <<_ACEOF
  4242. /* confdefs.h. */
  4243. _ACEOF
  4244. cat confdefs.h >>conftest.$ac_ext
  4245. cat >>conftest.$ac_ext <<_ACEOF
  4246. /* end confdefs.h. */
  4247. #include <sys/types.h>
  4248. #include <sys/wait.h>
  4249. #ifndef WEXITSTATUS
  4250. # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  4251. #endif
  4252. #ifndef WIFEXITED
  4253. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  4254. #endif
  4255. int
  4256. main ()
  4257. {
  4258. int s;
  4259. wait (&s);
  4260. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  4261. ;
  4262. return 0;
  4263. }
  4264. _ACEOF
  4265. rm -f conftest.$ac_objext
  4266. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4267. (eval $ac_compile) 2>conftest.er1
  4268. ac_status=$?
  4269. grep -v '^ *+' conftest.er1 >conftest.err
  4270. rm -f conftest.er1
  4271. cat conftest.err >&5
  4272. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4273. (exit $ac_status); } &&
  4274. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4275. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4276. (eval $ac_try) 2>&5
  4277. ac_status=$?
  4278. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4279. (exit $ac_status); }; } &&
  4280. { ac_try='test -s conftest.$ac_objext'
  4281. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4282. (eval $ac_try) 2>&5
  4283. ac_status=$?
  4284. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4285. (exit $ac_status); }; }; then
  4286. ac_cv_header_sys_wait_h=yes
  4287. else
  4288. echo "$as_me: failed program was:" >&5
  4289. sed 's/^/| /' conftest.$ac_ext >&5
  4290. ac_cv_header_sys_wait_h=no
  4291. fi
  4292. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4293. fi
  4294. echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  4295. echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
  4296. if test $ac_cv_header_sys_wait_h = yes; then
  4297. cat >>confdefs.h <<\_ACEOF
  4298. #define HAVE_SYS_WAIT_H 1
  4299. _ACEOF
  4300. fi
  4301. echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  4302. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
  4303. if test "${ac_cv_header_time+set}" = set; then
  4304. echo $ECHO_N "(cached) $ECHO_C" >&6
  4305. else
  4306. cat >conftest.$ac_ext <<_ACEOF
  4307. /* confdefs.h. */
  4308. _ACEOF
  4309. cat confdefs.h >>conftest.$ac_ext
  4310. cat >>conftest.$ac_ext <<_ACEOF
  4311. /* end confdefs.h. */
  4312. #include <sys/types.h>
  4313. #include <sys/time.h>
  4314. #include <time.h>
  4315. int
  4316. main ()
  4317. {
  4318. if ((struct tm *) 0)
  4319. return 0;
  4320. ;
  4321. return 0;
  4322. }
  4323. _ACEOF
  4324. rm -f conftest.$ac_objext
  4325. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4326. (eval $ac_compile) 2>conftest.er1
  4327. ac_status=$?
  4328. grep -v '^ *+' conftest.er1 >conftest.err
  4329. rm -f conftest.er1
  4330. cat conftest.err >&5
  4331. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4332. (exit $ac_status); } &&
  4333. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4334. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4335. (eval $ac_try) 2>&5
  4336. ac_status=$?
  4337. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4338. (exit $ac_status); }; } &&
  4339. { ac_try='test -s conftest.$ac_objext'
  4340. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4341. (eval $ac_try) 2>&5
  4342. ac_status=$?
  4343. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4344. (exit $ac_status); }; }; then
  4345. ac_cv_header_time=yes
  4346. else
  4347. echo "$as_me: failed program was:" >&5
  4348. sed 's/^/| /' conftest.$ac_ext >&5
  4349. ac_cv_header_time=no
  4350. fi
  4351. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4352. fi
  4353. echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  4354. echo "${ECHO_T}$ac_cv_header_time" >&6
  4355. if test $ac_cv_header_time = yes; then
  4356. cat >>confdefs.h <<\_ACEOF
  4357. #define TIME_WITH_SYS_TIME 1
  4358. _ACEOF
  4359. fi
  4360. echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
  4361. echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
  4362. if test "${ac_cv_header_stat_broken+set}" = set; then
  4363. echo $ECHO_N "(cached) $ECHO_C" >&6
  4364. else
  4365. cat >conftest.$ac_ext <<_ACEOF
  4366. /* confdefs.h. */
  4367. _ACEOF
  4368. cat confdefs.h >>conftest.$ac_ext
  4369. cat >>conftest.$ac_ext <<_ACEOF
  4370. /* end confdefs.h. */
  4371. #include <sys/types.h>
  4372. #include <sys/stat.h>
  4373. #if defined(S_ISBLK) && defined(S_IFDIR)
  4374. # if S_ISBLK (S_IFDIR)
  4375. You lose.
  4376. # endif
  4377. #endif
  4378. #if defined(S_ISBLK) && defined(S_IFCHR)
  4379. # if S_ISBLK (S_IFCHR)
  4380. You lose.
  4381. # endif
  4382. #endif
  4383. #if defined(S_ISLNK) && defined(S_IFREG)
  4384. # if S_ISLNK (S_IFREG)
  4385. You lose.
  4386. # endif
  4387. #endif
  4388. #if defined(S_ISSOCK) && defined(S_IFREG)
  4389. # if S_ISSOCK (S_IFREG)
  4390. You lose.
  4391. # endif
  4392. #endif
  4393. _ACEOF
  4394. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4395. $EGREP "You lose" >/dev/null 2>&1; then
  4396. ac_cv_header_stat_broken=yes
  4397. else
  4398. ac_cv_header_stat_broken=no
  4399. fi
  4400. rm -f conftest*
  4401. fi
  4402. echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
  4403. echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
  4404. if test $ac_cv_header_stat_broken = yes; then
  4405. cat >>confdefs.h <<\_ACEOF
  4406. #define STAT_MACROS_BROKEN 1
  4407. _ACEOF
  4408. fi
  4409. #checkpoint
  4410. cat >confcache <<\_ACEOF
  4411. # This file is a shell script that caches the results of configure
  4412. # tests run on this system so they can be shared between configure
  4413. # scripts and configure runs, see configure's option --config-cache.
  4414. # It is not useful on other systems. If it contains results you don't
  4415. # want to keep, you may remove or edit it.
  4416. #
  4417. # config.status only pays attention to the cache file if you give it
  4418. # the --recheck option to rerun configure.
  4419. #
  4420. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4421. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4422. # following values.
  4423. _ACEOF
  4424. # The following way of writing the cache mishandles newlines in values,
  4425. # but we know of no workaround that is simple, portable, and efficient.
  4426. # So, don't put newlines in cache variables' values.
  4427. # Ultrix sh set writes to stderr and can't be redirected directly,
  4428. # and sets the high bit in the cache file unless we assign to the vars.
  4429. {
  4430. (set) 2>&1 |
  4431. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  4432. *ac_space=\ *)
  4433. # `set' does not quote correctly, so add quotes (double-quote
  4434. # substitution turns \\\\ into \\, and sed turns \\ into \).
  4435. sed -n \
  4436. "s/'/'\\\\''/g;
  4437. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4438. ;;
  4439. *)
  4440. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4441. sed -n \
  4442. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  4443. ;;
  4444. esac;
  4445. } |
  4446. sed '
  4447. t clear
  4448. : clear
  4449. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4450. t end
  4451. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4452. : end' >>confcache
  4453. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  4454. if test -w $cache_file; then
  4455. test "x$cache_file" != "x/dev/null"
  4456. cat confcache >$cache_file
  4457. else
  4458. echo "not updating unwritable cache $cache_file"
  4459. fi
  4460. fi
  4461. rm -f confcache
  4462. for ac_header in stdarg.h std_arg.h arpa/inet.h fcntl.h limits.h locale.h netdb.h netinet/in.h
  4463. do
  4464. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4465. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4466. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4467. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4468. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4469. echo $ECHO_N "(cached) $ECHO_C" >&6
  4470. fi
  4471. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4472. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4473. else
  4474. # Is the header compilable?
  4475. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4476. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  4477. cat >conftest.$ac_ext <<_ACEOF
  4478. /* confdefs.h. */
  4479. _ACEOF
  4480. cat confdefs.h >>conftest.$ac_ext
  4481. cat >>conftest.$ac_ext <<_ACEOF
  4482. /* end confdefs.h. */
  4483. $ac_includes_default
  4484. #include <$ac_header>
  4485. _ACEOF
  4486. rm -f conftest.$ac_objext
  4487. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4488. (eval $ac_compile) 2>conftest.er1
  4489. ac_status=$?
  4490. grep -v '^ *+' conftest.er1 >conftest.err
  4491. rm -f conftest.er1
  4492. cat conftest.err >&5
  4493. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4494. (exit $ac_status); } &&
  4495. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4496. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4497. (eval $ac_try) 2>&5
  4498. ac_status=$?
  4499. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4500. (exit $ac_status); }; } &&
  4501. { ac_try='test -s conftest.$ac_objext'
  4502. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4503. (eval $ac_try) 2>&5
  4504. ac_status=$?
  4505. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4506. (exit $ac_status); }; }; then
  4507. ac_header_compiler=yes
  4508. else
  4509. echo "$as_me: failed program was:" >&5
  4510. sed 's/^/| /' conftest.$ac_ext >&5
  4511. ac_header_compiler=no
  4512. fi
  4513. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4514. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4515. echo "${ECHO_T}$ac_header_compiler" >&6
  4516. # Is the header present?
  4517. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4518. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  4519. cat >conftest.$ac_ext <<_ACEOF
  4520. /* confdefs.h. */
  4521. _ACEOF
  4522. cat confdefs.h >>conftest.$ac_ext
  4523. cat >>conftest.$ac_ext <<_ACEOF
  4524. /* end confdefs.h. */
  4525. #include <$ac_header>
  4526. _ACEOF
  4527. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4528. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4529. ac_status=$?
  4530. grep -v '^ *+' conftest.er1 >conftest.err
  4531. rm -f conftest.er1
  4532. cat conftest.err >&5
  4533. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4534. (exit $ac_status); } >/dev/null; then
  4535. if test -s conftest.err; then
  4536. ac_cpp_err=$ac_cxx_preproc_warn_flag
  4537. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  4538. else
  4539. ac_cpp_err=
  4540. fi
  4541. else
  4542. ac_cpp_err=yes
  4543. fi
  4544. if test -z "$ac_cpp_err"; then
  4545. ac_header_preproc=yes
  4546. else
  4547. echo "$as_me: failed program was:" >&5
  4548. sed 's/^/| /' conftest.$ac_ext >&5
  4549. ac_header_preproc=no
  4550. fi
  4551. rm -f conftest.err conftest.$ac_ext
  4552. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4553. echo "${ECHO_T}$ac_header_preproc" >&6
  4554. # So? What about this header?
  4555. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  4556. yes:no: )
  4557. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4558. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4559. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  4560. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  4561. ac_header_preproc=yes
  4562. ;;
  4563. no:yes:* )
  4564. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4565. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4566. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4567. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4568. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  4569. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  4570. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  4571. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  4572. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4573. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4574. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  4575. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  4576. (
  4577. cat <<\_ASBOX
  4578. ## ------------------------------------------ ##
  4579. ## Report this to the AC_PACKAGE_NAME lists. ##
  4580. ## ------------------------------------------ ##
  4581. _ASBOX
  4582. ) |
  4583. sed "s/^/$as_me: WARNING: /" >&2
  4584. ;;
  4585. esac
  4586. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4587. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4588. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4589. echo $ECHO_N "(cached) $ECHO_C" >&6
  4590. else
  4591. eval "$as_ac_Header=\$ac_header_preproc"
  4592. fi
  4593. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4594. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4595. fi
  4596. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4597. cat >>confdefs.h <<_ACEOF
  4598. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4599. _ACEOF
  4600. fi
  4601. done
  4602. for ac_header in sys/file.h sys/ioctl.h sys/param.h sys/socket.h wchar.h sys/ptrace.h paths.h
  4603. do
  4604. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4605. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4606. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4607. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4608. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4609. echo $ECHO_N "(cached) $ECHO_C" >&6
  4610. fi
  4611. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4612. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4613. else
  4614. # Is the header compilable?
  4615. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4616. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  4617. cat >conftest.$ac_ext <<_ACEOF
  4618. /* confdefs.h. */
  4619. _ACEOF
  4620. cat confdefs.h >>conftest.$ac_ext
  4621. cat >>conftest.$ac_ext <<_ACEOF
  4622. /* end confdefs.h. */
  4623. $ac_includes_default
  4624. #include <$ac_header>
  4625. _ACEOF
  4626. rm -f conftest.$ac_objext
  4627. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4628. (eval $ac_compile) 2>conftest.er1
  4629. ac_status=$?
  4630. grep -v '^ *+' conftest.er1 >conftest.err
  4631. rm -f conftest.er1
  4632. cat conftest.err >&5
  4633. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4634. (exit $ac_status); } &&
  4635. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4636. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4637. (eval $ac_try) 2>&5
  4638. ac_status=$?
  4639. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4640. (exit $ac_status); }; } &&
  4641. { ac_try='test -s conftest.$ac_objext'
  4642. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4643. (eval $ac_try) 2>&5
  4644. ac_status=$?
  4645. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4646. (exit $ac_status); }; }; then
  4647. ac_header_compiler=yes
  4648. else
  4649. echo "$as_me: failed program was:" >&5
  4650. sed 's/^/| /' conftest.$ac_ext >&5
  4651. ac_header_compiler=no
  4652. fi
  4653. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4654. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4655. echo "${ECHO_T}$ac_header_compiler" >&6
  4656. # Is the header present?
  4657. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4658. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  4659. cat >conftest.$ac_ext <<_ACEOF
  4660. /* confdefs.h. */
  4661. _ACEOF
  4662. cat confdefs.h >>conftest.$ac_ext
  4663. cat >>conftest.$ac_ext <<_ACEOF
  4664. /* end confdefs.h. */
  4665. #include <$ac_header>
  4666. _ACEOF
  4667. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4668. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4669. ac_status=$?
  4670. grep -v '^ *+' conftest.er1 >conftest.err
  4671. rm -f conftest.er1
  4672. cat conftest.err >&5
  4673. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4674. (exit $ac_status); } >/dev/null; then
  4675. if test -s conftest.err; then
  4676. ac_cpp_err=$ac_cxx_preproc_warn_flag
  4677. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  4678. else
  4679. ac_cpp_err=
  4680. fi
  4681. else
  4682. ac_cpp_err=yes
  4683. fi
  4684. if test -z "$ac_cpp_err"; then
  4685. ac_header_preproc=yes
  4686. else
  4687. echo "$as_me: failed program was:" >&5
  4688. sed 's/^/| /' conftest.$ac_ext >&5
  4689. ac_header_preproc=no
  4690. fi
  4691. rm -f conftest.err conftest.$ac_ext
  4692. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4693. echo "${ECHO_T}$ac_header_preproc" >&6
  4694. # So? What about this header?
  4695. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  4696. yes:no: )
  4697. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4698. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4699. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  4700. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  4701. ac_header_preproc=yes
  4702. ;;
  4703. no:yes:* )
  4704. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4705. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4706. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4707. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4708. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  4709. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  4710. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  4711. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  4712. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4713. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4714. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  4715. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  4716. (
  4717. cat <<\_ASBOX
  4718. ## ------------------------------------------ ##
  4719. ## Report this to the AC_PACKAGE_NAME lists. ##
  4720. ## ------------------------------------------ ##
  4721. _ASBOX
  4722. ) |
  4723. sed "s/^/$as_me: WARNING: /" >&2
  4724. ;;
  4725. esac
  4726. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4727. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4728. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4729. echo $ECHO_N "(cached) $ECHO_C" >&6
  4730. else
  4731. eval "$as_ac_Header=\$ac_header_preproc"
  4732. fi
  4733. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4734. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4735. fi
  4736. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4737. cat >>confdefs.h <<_ACEOF
  4738. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4739. _ACEOF
  4740. fi
  4741. done
  4742. #checkpoint
  4743. cat >confcache <<\_ACEOF
  4744. # This file is a shell script that caches the results of configure
  4745. # tests run on this system so they can be shared between configure
  4746. # scripts and configure runs, see configure's option --config-cache.
  4747. # It is not useful on other systems. If it contains results you don't
  4748. # want to keep, you may remove or edit it.
  4749. #
  4750. # config.status only pays attention to the cache file if you give it
  4751. # the --recheck option to rerun configure.
  4752. #
  4753. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4754. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4755. # following values.
  4756. _ACEOF
  4757. # The following way of writing the cache mishandles newlines in values,
  4758. # but we know of no workaround that is simple, portable, and efficient.
  4759. # So, don't put newlines in cache variables' values.
  4760. # Ultrix sh set writes to stderr and can't be redirected directly,
  4761. # and sets the high bit in the cache file unless we assign to the vars.
  4762. {
  4763. (set) 2>&1 |
  4764. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  4765. *ac_space=\ *)
  4766. # `set' does not quote correctly, so add quotes (double-quote
  4767. # substitution turns \\\\ into \\, and sed turns \\ into \).
  4768. sed -n \
  4769. "s/'/'\\\\''/g;
  4770. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4771. ;;
  4772. *)
  4773. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4774. sed -n \
  4775. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  4776. ;;
  4777. esac;
  4778. } |
  4779. sed '
  4780. t clear
  4781. : clear
  4782. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4783. t end
  4784. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4785. : end' >>confcache
  4786. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  4787. if test -w $cache_file; then
  4788. test "x$cache_file" != "x/dev/null"
  4789. cat confcache >$cache_file
  4790. else
  4791. echo "not updating unwritable cache $cache_file"
  4792. fi
  4793. fi
  4794. rm -f confcache
  4795. #AC_CHECK_HEADERS(openssl/ssl.h openssl/crypto.h)
  4796. #AC_CHECK_HEADERS(zlib.h)
  4797. #EGG_CHECK_ZLIB
  4798. #EGG_CHECK_SSL
  4799. #AC_SUBST(SSL)dnl
  4800. # Checks for typedefs, structures, and compiler characteristics
  4801. echo "$as_me:$LINENO: checking for pid_t" >&5
  4802. echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
  4803. if test "${ac_cv_type_pid_t+set}" = set; then
  4804. echo $ECHO_N "(cached) $ECHO_C" >&6
  4805. else
  4806. cat >conftest.$ac_ext <<_ACEOF
  4807. /* confdefs.h. */
  4808. _ACEOF
  4809. cat confdefs.h >>conftest.$ac_ext
  4810. cat >>conftest.$ac_ext <<_ACEOF
  4811. /* end confdefs.h. */
  4812. $ac_includes_default
  4813. int
  4814. main ()
  4815. {
  4816. if ((pid_t *) 0)
  4817. return 0;
  4818. if (sizeof (pid_t))
  4819. return 0;
  4820. ;
  4821. return 0;
  4822. }
  4823. _ACEOF
  4824. rm -f conftest.$ac_objext
  4825. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4826. (eval $ac_compile) 2>conftest.er1
  4827. ac_status=$?
  4828. grep -v '^ *+' conftest.er1 >conftest.err
  4829. rm -f conftest.er1
  4830. cat conftest.err >&5
  4831. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4832. (exit $ac_status); } &&
  4833. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4834. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4835. (eval $ac_try) 2>&5
  4836. ac_status=$?
  4837. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4838. (exit $ac_status); }; } &&
  4839. { ac_try='test -s conftest.$ac_objext'
  4840. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4841. (eval $ac_try) 2>&5
  4842. ac_status=$?
  4843. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4844. (exit $ac_status); }; }; then
  4845. ac_cv_type_pid_t=yes
  4846. else
  4847. echo "$as_me: failed program was:" >&5
  4848. sed 's/^/| /' conftest.$ac_ext >&5
  4849. ac_cv_type_pid_t=no
  4850. fi
  4851. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4852. fi
  4853. echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
  4854. echo "${ECHO_T}$ac_cv_type_pid_t" >&6
  4855. if test $ac_cv_type_pid_t = yes; then
  4856. :
  4857. else
  4858. cat >>confdefs.h <<_ACEOF
  4859. #define pid_t int
  4860. _ACEOF
  4861. fi
  4862. echo "$as_me:$LINENO: checking for size_t" >&5
  4863. echo $ECHO_N "checking for size_t... $ECHO_C" >&6
  4864. if test "${ac_cv_type_size_t+set}" = set; then
  4865. echo $ECHO_N "(cached) $ECHO_C" >&6
  4866. else
  4867. cat >conftest.$ac_ext <<_ACEOF
  4868. /* confdefs.h. */
  4869. _ACEOF
  4870. cat confdefs.h >>conftest.$ac_ext
  4871. cat >>conftest.$ac_ext <<_ACEOF
  4872. /* end confdefs.h. */
  4873. $ac_includes_default
  4874. int
  4875. main ()
  4876. {
  4877. if ((size_t *) 0)
  4878. return 0;
  4879. if (sizeof (size_t))
  4880. return 0;
  4881. ;
  4882. return 0;
  4883. }
  4884. _ACEOF
  4885. rm -f conftest.$ac_objext
  4886. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4887. (eval $ac_compile) 2>conftest.er1
  4888. ac_status=$?
  4889. grep -v '^ *+' conftest.er1 >conftest.err
  4890. rm -f conftest.er1
  4891. cat conftest.err >&5
  4892. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4893. (exit $ac_status); } &&
  4894. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4895. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4896. (eval $ac_try) 2>&5
  4897. ac_status=$?
  4898. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4899. (exit $ac_status); }; } &&
  4900. { ac_try='test -s conftest.$ac_objext'
  4901. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4902. (eval $ac_try) 2>&5
  4903. ac_status=$?
  4904. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4905. (exit $ac_status); }; }; then
  4906. ac_cv_type_size_t=yes
  4907. else
  4908. echo "$as_me: failed program was:" >&5
  4909. sed 's/^/| /' conftest.$ac_ext >&5
  4910. ac_cv_type_size_t=no
  4911. fi
  4912. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4913. fi
  4914. echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  4915. echo "${ECHO_T}$ac_cv_type_size_t" >&6
  4916. if test $ac_cv_type_size_t = yes; then
  4917. :
  4918. else
  4919. cat >>confdefs.h <<_ACEOF
  4920. #define size_t unsigned
  4921. _ACEOF
  4922. fi
  4923. echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
  4924. echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
  4925. if test "${ac_cv_type_uid_t+set}" = set; then
  4926. echo $ECHO_N "(cached) $ECHO_C" >&6
  4927. else
  4928. cat >conftest.$ac_ext <<_ACEOF
  4929. /* confdefs.h. */
  4930. _ACEOF
  4931. cat confdefs.h >>conftest.$ac_ext
  4932. cat >>conftest.$ac_ext <<_ACEOF
  4933. /* end confdefs.h. */
  4934. #include <sys/types.h>
  4935. _ACEOF
  4936. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4937. $EGREP "uid_t" >/dev/null 2>&1; then
  4938. ac_cv_type_uid_t=yes
  4939. else
  4940. ac_cv_type_uid_t=no
  4941. fi
  4942. rm -f conftest*
  4943. fi
  4944. echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
  4945. echo "${ECHO_T}$ac_cv_type_uid_t" >&6
  4946. if test $ac_cv_type_uid_t = no; then
  4947. cat >>confdefs.h <<\_ACEOF
  4948. #define uid_t int
  4949. _ACEOF
  4950. cat >>confdefs.h <<\_ACEOF
  4951. #define gid_t int
  4952. _ACEOF
  4953. fi
  4954. #AC_C_CONST
  4955. echo "$as_me:$LINENO: checking for working volatile" >&5
  4956. echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
  4957. if test "${ac_cv_c_volatile+set}" = set; then
  4958. echo $ECHO_N "(cached) $ECHO_C" >&6
  4959. else
  4960. cat >conftest.$ac_ext <<_ACEOF
  4961. /* confdefs.h. */
  4962. _ACEOF
  4963. cat confdefs.h >>conftest.$ac_ext
  4964. cat >>conftest.$ac_ext <<_ACEOF
  4965. /* end confdefs.h. */
  4966. int
  4967. main ()
  4968. {
  4969. volatile int x;
  4970. int * volatile y;
  4971. ;
  4972. return 0;
  4973. }
  4974. _ACEOF
  4975. rm -f conftest.$ac_objext
  4976. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4977. (eval $ac_compile) 2>conftest.er1
  4978. ac_status=$?
  4979. grep -v '^ *+' conftest.er1 >conftest.err
  4980. rm -f conftest.er1
  4981. cat conftest.err >&5
  4982. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4983. (exit $ac_status); } &&
  4984. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4985. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4986. (eval $ac_try) 2>&5
  4987. ac_status=$?
  4988. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4989. (exit $ac_status); }; } &&
  4990. { ac_try='test -s conftest.$ac_objext'
  4991. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4992. (eval $ac_try) 2>&5
  4993. ac_status=$?
  4994. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4995. (exit $ac_status); }; }; then
  4996. ac_cv_c_volatile=yes
  4997. else
  4998. echo "$as_me: failed program was:" >&5
  4999. sed 's/^/| /' conftest.$ac_ext >&5
  5000. ac_cv_c_volatile=no
  5001. fi
  5002. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5003. fi
  5004. echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  5005. echo "${ECHO_T}$ac_cv_c_volatile" >&6
  5006. if test $ac_cv_c_volatile = no; then
  5007. cat >>confdefs.h <<\_ACEOF
  5008. #define volatile
  5009. _ACEOF
  5010. fi
  5011. echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  5012. echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
  5013. if test "${ac_cv_c_bigendian+set}" = set; then
  5014. echo $ECHO_N "(cached) $ECHO_C" >&6
  5015. else
  5016. # See if sys/param.h defines the BYTE_ORDER macro.
  5017. cat >conftest.$ac_ext <<_ACEOF
  5018. /* confdefs.h. */
  5019. _ACEOF
  5020. cat confdefs.h >>conftest.$ac_ext
  5021. cat >>conftest.$ac_ext <<_ACEOF
  5022. /* end confdefs.h. */
  5023. #include <sys/types.h>
  5024. #include <sys/param.h>
  5025. int
  5026. main ()
  5027. {
  5028. #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
  5029. bogus endian macros
  5030. #endif
  5031. ;
  5032. return 0;
  5033. }
  5034. _ACEOF
  5035. rm -f conftest.$ac_objext
  5036. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5037. (eval $ac_compile) 2>conftest.er1
  5038. ac_status=$?
  5039. grep -v '^ *+' conftest.er1 >conftest.err
  5040. rm -f conftest.er1
  5041. cat conftest.err >&5
  5042. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5043. (exit $ac_status); } &&
  5044. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5045. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5046. (eval $ac_try) 2>&5
  5047. ac_status=$?
  5048. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5049. (exit $ac_status); }; } &&
  5050. { ac_try='test -s conftest.$ac_objext'
  5051. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5052. (eval $ac_try) 2>&5
  5053. ac_status=$?
  5054. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5055. (exit $ac_status); }; }; then
  5056. # It does; now see whether it defined to BIG_ENDIAN or not.
  5057. cat >conftest.$ac_ext <<_ACEOF
  5058. /* confdefs.h. */
  5059. _ACEOF
  5060. cat confdefs.h >>conftest.$ac_ext
  5061. cat >>conftest.$ac_ext <<_ACEOF
  5062. /* end confdefs.h. */
  5063. #include <sys/types.h>
  5064. #include <sys/param.h>
  5065. int
  5066. main ()
  5067. {
  5068. #if BYTE_ORDER != BIG_ENDIAN
  5069. not big endian
  5070. #endif
  5071. ;
  5072. return 0;
  5073. }
  5074. _ACEOF
  5075. rm -f conftest.$ac_objext
  5076. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5077. (eval $ac_compile) 2>conftest.er1
  5078. ac_status=$?
  5079. grep -v '^ *+' conftest.er1 >conftest.err
  5080. rm -f conftest.er1
  5081. cat conftest.err >&5
  5082. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5083. (exit $ac_status); } &&
  5084. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5085. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5086. (eval $ac_try) 2>&5
  5087. ac_status=$?
  5088. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5089. (exit $ac_status); }; } &&
  5090. { ac_try='test -s conftest.$ac_objext'
  5091. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5092. (eval $ac_try) 2>&5
  5093. ac_status=$?
  5094. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5095. (exit $ac_status); }; }; then
  5096. ac_cv_c_bigendian=yes
  5097. else
  5098. echo "$as_me: failed program was:" >&5
  5099. sed 's/^/| /' conftest.$ac_ext >&5
  5100. ac_cv_c_bigendian=no
  5101. fi
  5102. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5103. else
  5104. echo "$as_me: failed program was:" >&5
  5105. sed 's/^/| /' conftest.$ac_ext >&5
  5106. # It does not; compile a test program.
  5107. if test "$cross_compiling" = yes; then
  5108. # try to guess the endianness by grepping values into an object file
  5109. ac_cv_c_bigendian=unknown
  5110. cat >conftest.$ac_ext <<_ACEOF
  5111. /* confdefs.h. */
  5112. _ACEOF
  5113. cat confdefs.h >>conftest.$ac_ext
  5114. cat >>conftest.$ac_ext <<_ACEOF
  5115. /* end confdefs.h. */
  5116. short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  5117. short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  5118. void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
  5119. short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  5120. short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  5121. void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
  5122. int
  5123. main ()
  5124. {
  5125. _ascii (); _ebcdic ();
  5126. ;
  5127. return 0;
  5128. }
  5129. _ACEOF
  5130. rm -f conftest.$ac_objext
  5131. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5132. (eval $ac_compile) 2>conftest.er1
  5133. ac_status=$?
  5134. grep -v '^ *+' conftest.er1 >conftest.err
  5135. rm -f conftest.er1
  5136. cat conftest.err >&5
  5137. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5138. (exit $ac_status); } &&
  5139. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5140. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5141. (eval $ac_try) 2>&5
  5142. ac_status=$?
  5143. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5144. (exit $ac_status); }; } &&
  5145. { ac_try='test -s conftest.$ac_objext'
  5146. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5147. (eval $ac_try) 2>&5
  5148. ac_status=$?
  5149. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5150. (exit $ac_status); }; }; then
  5151. if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  5152. ac_cv_c_bigendian=yes
  5153. fi
  5154. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  5155. if test "$ac_cv_c_bigendian" = unknown; then
  5156. ac_cv_c_bigendian=no
  5157. else
  5158. # finding both strings is unlikely to happen, but who knows?
  5159. ac_cv_c_bigendian=unknown
  5160. fi
  5161. fi
  5162. else
  5163. echo "$as_me: failed program was:" >&5
  5164. sed 's/^/| /' conftest.$ac_ext >&5
  5165. fi
  5166. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5167. else
  5168. cat >conftest.$ac_ext <<_ACEOF
  5169. /* confdefs.h. */
  5170. _ACEOF
  5171. cat confdefs.h >>conftest.$ac_ext
  5172. cat >>conftest.$ac_ext <<_ACEOF
  5173. /* end confdefs.h. */
  5174. int
  5175. main ()
  5176. {
  5177. /* Are we little or big endian? From Harbison&Steele. */
  5178. union
  5179. {
  5180. long l;
  5181. char c[sizeof (long)];
  5182. } u;
  5183. u.l = 1;
  5184. exit (u.c[sizeof (long) - 1] == 1);
  5185. }
  5186. _ACEOF
  5187. rm -f conftest$ac_exeext
  5188. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5189. (eval $ac_link) 2>&5
  5190. ac_status=$?
  5191. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5192. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5193. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5194. (eval $ac_try) 2>&5
  5195. ac_status=$?
  5196. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5197. (exit $ac_status); }; }; then
  5198. ac_cv_c_bigendian=no
  5199. else
  5200. echo "$as_me: program exited with status $ac_status" >&5
  5201. echo "$as_me: failed program was:" >&5
  5202. sed 's/^/| /' conftest.$ac_ext >&5
  5203. ( exit $ac_status )
  5204. ac_cv_c_bigendian=yes
  5205. fi
  5206. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5207. fi
  5208. fi
  5209. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5210. fi
  5211. echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  5212. echo "${ECHO_T}$ac_cv_c_bigendian" >&6
  5213. case $ac_cv_c_bigendian in
  5214. yes)
  5215. cat >>confdefs.h <<\_ACEOF
  5216. #define B_ENDIAN 1
  5217. _ACEOF
  5218. ;;
  5219. no)
  5220. cat >>confdefs.h <<\_ACEOF
  5221. #define L_ENDIAN 1
  5222. _ACEOF
  5223. ;;
  5224. *)
  5225. { { echo "$as_me:$LINENO: error: unknown endianness
  5226. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  5227. echo "$as_me: error: unknown endianness
  5228. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  5229. { (exit 1); exit 1; }; } ;;
  5230. esac
  5231. #AC_C_INLINE
  5232. echo "$as_me:$LINENO: checking whether char is unsigned" >&5
  5233. echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
  5234. if test "${ac_cv_c_char_unsigned+set}" = set; then
  5235. echo $ECHO_N "(cached) $ECHO_C" >&6
  5236. else
  5237. cat >conftest.$ac_ext <<_ACEOF
  5238. /* confdefs.h. */
  5239. _ACEOF
  5240. cat confdefs.h >>conftest.$ac_ext
  5241. cat >>conftest.$ac_ext <<_ACEOF
  5242. /* end confdefs.h. */
  5243. $ac_includes_default
  5244. int
  5245. main ()
  5246. {
  5247. static int test_array [1 - 2 * !(((char) -1) < 0)];
  5248. test_array [0] = 0
  5249. ;
  5250. return 0;
  5251. }
  5252. _ACEOF
  5253. rm -f conftest.$ac_objext
  5254. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5255. (eval $ac_compile) 2>conftest.er1
  5256. ac_status=$?
  5257. grep -v '^ *+' conftest.er1 >conftest.err
  5258. rm -f conftest.er1
  5259. cat conftest.err >&5
  5260. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5261. (exit $ac_status); } &&
  5262. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5263. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5264. (eval $ac_try) 2>&5
  5265. ac_status=$?
  5266. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5267. (exit $ac_status); }; } &&
  5268. { ac_try='test -s conftest.$ac_objext'
  5269. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5270. (eval $ac_try) 2>&5
  5271. ac_status=$?
  5272. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5273. (exit $ac_status); }; }; then
  5274. ac_cv_c_char_unsigned=no
  5275. else
  5276. echo "$as_me: failed program was:" >&5
  5277. sed 's/^/| /' conftest.$ac_ext >&5
  5278. ac_cv_c_char_unsigned=yes
  5279. fi
  5280. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5281. fi
  5282. echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
  5283. echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
  5284. if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
  5285. cat >>confdefs.h <<\_ACEOF
  5286. #define __CHAR_UNSIGNED__ 1
  5287. _ACEOF
  5288. fi
  5289. #AC_C_STRINGIZE
  5290. #AC_C_PROTOTYPES
  5291. #checkpoint
  5292. cat >confcache <<\_ACEOF
  5293. # This file is a shell script that caches the results of configure
  5294. # tests run on this system so they can be shared between configure
  5295. # scripts and configure runs, see configure's option --config-cache.
  5296. # It is not useful on other systems. If it contains results you don't
  5297. # want to keep, you may remove or edit it.
  5298. #
  5299. # config.status only pays attention to the cache file if you give it
  5300. # the --recheck option to rerun configure.
  5301. #
  5302. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5303. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5304. # following values.
  5305. _ACEOF
  5306. # The following way of writing the cache mishandles newlines in values,
  5307. # but we know of no workaround that is simple, portable, and efficient.
  5308. # So, don't put newlines in cache variables' values.
  5309. # Ultrix sh set writes to stderr and can't be redirected directly,
  5310. # and sets the high bit in the cache file unless we assign to the vars.
  5311. {
  5312. (set) 2>&1 |
  5313. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  5314. *ac_space=\ *)
  5315. # `set' does not quote correctly, so add quotes (double-quote
  5316. # substitution turns \\\\ into \\, and sed turns \\ into \).
  5317. sed -n \
  5318. "s/'/'\\\\''/g;
  5319. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5320. ;;
  5321. *)
  5322. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5323. sed -n \
  5324. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  5325. ;;
  5326. esac;
  5327. } |
  5328. sed '
  5329. t clear
  5330. : clear
  5331. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5332. t end
  5333. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5334. : end' >>confcache
  5335. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  5336. if test -w $cache_file; then
  5337. test "x$cache_file" != "x/dev/null"
  5338. cat confcache >$cache_file
  5339. else
  5340. echo "not updating unwritable cache $cache_file"
  5341. fi
  5342. fi
  5343. rm -f confcache
  5344. echo "$as_me:$LINENO: checking for int" >&5
  5345. echo $ECHO_N "checking for int... $ECHO_C" >&6
  5346. if test "${ac_cv_type_int+set}" = set; then
  5347. echo $ECHO_N "(cached) $ECHO_C" >&6
  5348. else
  5349. cat >conftest.$ac_ext <<_ACEOF
  5350. /* confdefs.h. */
  5351. _ACEOF
  5352. cat confdefs.h >>conftest.$ac_ext
  5353. cat >>conftest.$ac_ext <<_ACEOF
  5354. /* end confdefs.h. */
  5355. $ac_includes_default
  5356. int
  5357. main ()
  5358. {
  5359. if ((int *) 0)
  5360. return 0;
  5361. if (sizeof (int))
  5362. return 0;
  5363. ;
  5364. return 0;
  5365. }
  5366. _ACEOF
  5367. rm -f conftest.$ac_objext
  5368. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5369. (eval $ac_compile) 2>conftest.er1
  5370. ac_status=$?
  5371. grep -v '^ *+' conftest.er1 >conftest.err
  5372. rm -f conftest.er1
  5373. cat conftest.err >&5
  5374. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5375. (exit $ac_status); } &&
  5376. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5377. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5378. (eval $ac_try) 2>&5
  5379. ac_status=$?
  5380. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5381. (exit $ac_status); }; } &&
  5382. { ac_try='test -s conftest.$ac_objext'
  5383. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5384. (eval $ac_try) 2>&5
  5385. ac_status=$?
  5386. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5387. (exit $ac_status); }; }; then
  5388. ac_cv_type_int=yes
  5389. else
  5390. echo "$as_me: failed program was:" >&5
  5391. sed 's/^/| /' conftest.$ac_ext >&5
  5392. ac_cv_type_int=no
  5393. fi
  5394. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5395. fi
  5396. echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
  5397. echo "${ECHO_T}$ac_cv_type_int" >&6
  5398. echo "$as_me:$LINENO: checking size of int" >&5
  5399. echo $ECHO_N "checking size of int... $ECHO_C" >&6
  5400. if test "${ac_cv_sizeof_int+set}" = set; then
  5401. echo $ECHO_N "(cached) $ECHO_C" >&6
  5402. else
  5403. if test "$ac_cv_type_int" = yes; then
  5404. # The cast to unsigned long works around a bug in the HP C Compiler
  5405. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  5406. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  5407. # This bug is HP SR number 8606223364.
  5408. if test "$cross_compiling" = yes; then
  5409. # Depending upon the size, compute the lo and hi bounds.
  5410. cat >conftest.$ac_ext <<_ACEOF
  5411. /* confdefs.h. */
  5412. _ACEOF
  5413. cat confdefs.h >>conftest.$ac_ext
  5414. cat >>conftest.$ac_ext <<_ACEOF
  5415. /* end confdefs.h. */
  5416. $ac_includes_default
  5417. int
  5418. main ()
  5419. {
  5420. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
  5421. test_array [0] = 0
  5422. ;
  5423. return 0;
  5424. }
  5425. _ACEOF
  5426. rm -f conftest.$ac_objext
  5427. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5428. (eval $ac_compile) 2>conftest.er1
  5429. ac_status=$?
  5430. grep -v '^ *+' conftest.er1 >conftest.err
  5431. rm -f conftest.er1
  5432. cat conftest.err >&5
  5433. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5434. (exit $ac_status); } &&
  5435. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5436. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5437. (eval $ac_try) 2>&5
  5438. ac_status=$?
  5439. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5440. (exit $ac_status); }; } &&
  5441. { ac_try='test -s conftest.$ac_objext'
  5442. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5443. (eval $ac_try) 2>&5
  5444. ac_status=$?
  5445. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5446. (exit $ac_status); }; }; then
  5447. ac_lo=0 ac_mid=0
  5448. while :; do
  5449. cat >conftest.$ac_ext <<_ACEOF
  5450. /* confdefs.h. */
  5451. _ACEOF
  5452. cat confdefs.h >>conftest.$ac_ext
  5453. cat >>conftest.$ac_ext <<_ACEOF
  5454. /* end confdefs.h. */
  5455. $ac_includes_default
  5456. int
  5457. main ()
  5458. {
  5459. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  5460. test_array [0] = 0
  5461. ;
  5462. return 0;
  5463. }
  5464. _ACEOF
  5465. rm -f conftest.$ac_objext
  5466. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5467. (eval $ac_compile) 2>conftest.er1
  5468. ac_status=$?
  5469. grep -v '^ *+' conftest.er1 >conftest.err
  5470. rm -f conftest.er1
  5471. cat conftest.err >&5
  5472. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5473. (exit $ac_status); } &&
  5474. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5475. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5476. (eval $ac_try) 2>&5
  5477. ac_status=$?
  5478. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5479. (exit $ac_status); }; } &&
  5480. { ac_try='test -s conftest.$ac_objext'
  5481. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5482. (eval $ac_try) 2>&5
  5483. ac_status=$?
  5484. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5485. (exit $ac_status); }; }; then
  5486. ac_hi=$ac_mid; break
  5487. else
  5488. echo "$as_me: failed program was:" >&5
  5489. sed 's/^/| /' conftest.$ac_ext >&5
  5490. ac_lo=`expr $ac_mid + 1`
  5491. if test $ac_lo -le $ac_mid; then
  5492. ac_lo= ac_hi=
  5493. break
  5494. fi
  5495. ac_mid=`expr 2 '*' $ac_mid + 1`
  5496. fi
  5497. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5498. done
  5499. else
  5500. echo "$as_me: failed program was:" >&5
  5501. sed 's/^/| /' conftest.$ac_ext >&5
  5502. cat >conftest.$ac_ext <<_ACEOF
  5503. /* confdefs.h. */
  5504. _ACEOF
  5505. cat confdefs.h >>conftest.$ac_ext
  5506. cat >>conftest.$ac_ext <<_ACEOF
  5507. /* end confdefs.h. */
  5508. $ac_includes_default
  5509. int
  5510. main ()
  5511. {
  5512. static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
  5513. test_array [0] = 0
  5514. ;
  5515. return 0;
  5516. }
  5517. _ACEOF
  5518. rm -f conftest.$ac_objext
  5519. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5520. (eval $ac_compile) 2>conftest.er1
  5521. ac_status=$?
  5522. grep -v '^ *+' conftest.er1 >conftest.err
  5523. rm -f conftest.er1
  5524. cat conftest.err >&5
  5525. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5526. (exit $ac_status); } &&
  5527. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5528. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5529. (eval $ac_try) 2>&5
  5530. ac_status=$?
  5531. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5532. (exit $ac_status); }; } &&
  5533. { ac_try='test -s conftest.$ac_objext'
  5534. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5535. (eval $ac_try) 2>&5
  5536. ac_status=$?
  5537. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5538. (exit $ac_status); }; }; then
  5539. ac_hi=-1 ac_mid=-1
  5540. while :; do
  5541. cat >conftest.$ac_ext <<_ACEOF
  5542. /* confdefs.h. */
  5543. _ACEOF
  5544. cat confdefs.h >>conftest.$ac_ext
  5545. cat >>conftest.$ac_ext <<_ACEOF
  5546. /* end confdefs.h. */
  5547. $ac_includes_default
  5548. int
  5549. main ()
  5550. {
  5551. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
  5552. test_array [0] = 0
  5553. ;
  5554. return 0;
  5555. }
  5556. _ACEOF
  5557. rm -f conftest.$ac_objext
  5558. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5559. (eval $ac_compile) 2>conftest.er1
  5560. ac_status=$?
  5561. grep -v '^ *+' conftest.er1 >conftest.err
  5562. rm -f conftest.er1
  5563. cat conftest.err >&5
  5564. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5565. (exit $ac_status); } &&
  5566. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5567. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5568. (eval $ac_try) 2>&5
  5569. ac_status=$?
  5570. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5571. (exit $ac_status); }; } &&
  5572. { ac_try='test -s conftest.$ac_objext'
  5573. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5574. (eval $ac_try) 2>&5
  5575. ac_status=$?
  5576. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5577. (exit $ac_status); }; }; then
  5578. ac_lo=$ac_mid; break
  5579. else
  5580. echo "$as_me: failed program was:" >&5
  5581. sed 's/^/| /' conftest.$ac_ext >&5
  5582. ac_hi=`expr '(' $ac_mid ')' - 1`
  5583. if test $ac_mid -le $ac_hi; then
  5584. ac_lo= ac_hi=
  5585. break
  5586. fi
  5587. ac_mid=`expr 2 '*' $ac_mid`
  5588. fi
  5589. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5590. done
  5591. else
  5592. echo "$as_me: failed program was:" >&5
  5593. sed 's/^/| /' conftest.$ac_ext >&5
  5594. ac_lo= ac_hi=
  5595. fi
  5596. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5597. fi
  5598. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5599. # Binary search between lo and hi bounds.
  5600. while test "x$ac_lo" != "x$ac_hi"; do
  5601. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  5602. cat >conftest.$ac_ext <<_ACEOF
  5603. /* confdefs.h. */
  5604. _ACEOF
  5605. cat confdefs.h >>conftest.$ac_ext
  5606. cat >>conftest.$ac_ext <<_ACEOF
  5607. /* end confdefs.h. */
  5608. $ac_includes_default
  5609. int
  5610. main ()
  5611. {
  5612. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  5613. test_array [0] = 0
  5614. ;
  5615. return 0;
  5616. }
  5617. _ACEOF
  5618. rm -f conftest.$ac_objext
  5619. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5620. (eval $ac_compile) 2>conftest.er1
  5621. ac_status=$?
  5622. grep -v '^ *+' conftest.er1 >conftest.err
  5623. rm -f conftest.er1
  5624. cat conftest.err >&5
  5625. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5626. (exit $ac_status); } &&
  5627. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5628. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5629. (eval $ac_try) 2>&5
  5630. ac_status=$?
  5631. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5632. (exit $ac_status); }; } &&
  5633. { ac_try='test -s conftest.$ac_objext'
  5634. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5635. (eval $ac_try) 2>&5
  5636. ac_status=$?
  5637. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5638. (exit $ac_status); }; }; then
  5639. ac_hi=$ac_mid
  5640. else
  5641. echo "$as_me: failed program was:" >&5
  5642. sed 's/^/| /' conftest.$ac_ext >&5
  5643. ac_lo=`expr '(' $ac_mid ')' + 1`
  5644. fi
  5645. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5646. done
  5647. case $ac_lo in
  5648. ?*) ac_cv_sizeof_int=$ac_lo;;
  5649. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  5650. See \`config.log' for more details." >&5
  5651. echo "$as_me: error: cannot compute sizeof (int), 77
  5652. See \`config.log' for more details." >&2;}
  5653. { (exit 1); exit 1; }; } ;;
  5654. esac
  5655. else
  5656. if test "$cross_compiling" = yes; then
  5657. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  5658. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  5659. { (exit 1); exit 1; }; }
  5660. else
  5661. cat >conftest.$ac_ext <<_ACEOF
  5662. /* confdefs.h. */
  5663. _ACEOF
  5664. cat confdefs.h >>conftest.$ac_ext
  5665. cat >>conftest.$ac_ext <<_ACEOF
  5666. /* end confdefs.h. */
  5667. $ac_includes_default
  5668. long longval () { return (long) (sizeof (int)); }
  5669. unsigned long ulongval () { return (long) (sizeof (int)); }
  5670. #include <stdio.h>
  5671. #include <stdlib.h>
  5672. int
  5673. main ()
  5674. {
  5675. FILE *f = fopen ("conftest.val", "w");
  5676. if (! f)
  5677. exit (1);
  5678. if (((long) (sizeof (int))) < 0)
  5679. {
  5680. long i = longval ();
  5681. if (i != ((long) (sizeof (int))))
  5682. exit (1);
  5683. fprintf (f, "%ld\n", i);
  5684. }
  5685. else
  5686. {
  5687. unsigned long i = ulongval ();
  5688. if (i != ((long) (sizeof (int))))
  5689. exit (1);
  5690. fprintf (f, "%lu\n", i);
  5691. }
  5692. exit (ferror (f) || fclose (f) != 0);
  5693. ;
  5694. return 0;
  5695. }
  5696. _ACEOF
  5697. rm -f conftest$ac_exeext
  5698. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5699. (eval $ac_link) 2>&5
  5700. ac_status=$?
  5701. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5702. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5703. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5704. (eval $ac_try) 2>&5
  5705. ac_status=$?
  5706. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5707. (exit $ac_status); }; }; then
  5708. ac_cv_sizeof_int=`cat conftest.val`
  5709. else
  5710. echo "$as_me: program exited with status $ac_status" >&5
  5711. echo "$as_me: failed program was:" >&5
  5712. sed 's/^/| /' conftest.$ac_ext >&5
  5713. ( exit $ac_status )
  5714. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  5715. See \`config.log' for more details." >&5
  5716. echo "$as_me: error: cannot compute sizeof (int), 77
  5717. See \`config.log' for more details." >&2;}
  5718. { (exit 1); exit 1; }; }
  5719. fi
  5720. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5721. fi
  5722. fi
  5723. rm -f conftest.val
  5724. else
  5725. ac_cv_sizeof_int=0
  5726. fi
  5727. fi
  5728. echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
  5729. echo "${ECHO_T}$ac_cv_sizeof_int" >&6
  5730. cat >>confdefs.h <<_ACEOF
  5731. #define SIZEOF_INT $ac_cv_sizeof_int
  5732. _ACEOF
  5733. echo "$as_me:$LINENO: checking for short" >&5
  5734. echo $ECHO_N "checking for short... $ECHO_C" >&6
  5735. if test "${ac_cv_type_short+set}" = set; then
  5736. echo $ECHO_N "(cached) $ECHO_C" >&6
  5737. else
  5738. cat >conftest.$ac_ext <<_ACEOF
  5739. /* confdefs.h. */
  5740. _ACEOF
  5741. cat confdefs.h >>conftest.$ac_ext
  5742. cat >>conftest.$ac_ext <<_ACEOF
  5743. /* end confdefs.h. */
  5744. $ac_includes_default
  5745. int
  5746. main ()
  5747. {
  5748. if ((short *) 0)
  5749. return 0;
  5750. if (sizeof (short))
  5751. return 0;
  5752. ;
  5753. return 0;
  5754. }
  5755. _ACEOF
  5756. rm -f conftest.$ac_objext
  5757. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5758. (eval $ac_compile) 2>conftest.er1
  5759. ac_status=$?
  5760. grep -v '^ *+' conftest.er1 >conftest.err
  5761. rm -f conftest.er1
  5762. cat conftest.err >&5
  5763. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5764. (exit $ac_status); } &&
  5765. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5766. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5767. (eval $ac_try) 2>&5
  5768. ac_status=$?
  5769. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5770. (exit $ac_status); }; } &&
  5771. { ac_try='test -s conftest.$ac_objext'
  5772. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5773. (eval $ac_try) 2>&5
  5774. ac_status=$?
  5775. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5776. (exit $ac_status); }; }; then
  5777. ac_cv_type_short=yes
  5778. else
  5779. echo "$as_me: failed program was:" >&5
  5780. sed 's/^/| /' conftest.$ac_ext >&5
  5781. ac_cv_type_short=no
  5782. fi
  5783. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5784. fi
  5785. echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
  5786. echo "${ECHO_T}$ac_cv_type_short" >&6
  5787. echo "$as_me:$LINENO: checking size of short" >&5
  5788. echo $ECHO_N "checking size of short... $ECHO_C" >&6
  5789. if test "${ac_cv_sizeof_short+set}" = set; then
  5790. echo $ECHO_N "(cached) $ECHO_C" >&6
  5791. else
  5792. if test "$ac_cv_type_short" = yes; then
  5793. # The cast to unsigned long works around a bug in the HP C Compiler
  5794. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  5795. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  5796. # This bug is HP SR number 8606223364.
  5797. if test "$cross_compiling" = yes; then
  5798. # Depending upon the size, compute the lo and hi bounds.
  5799. cat >conftest.$ac_ext <<_ACEOF
  5800. /* confdefs.h. */
  5801. _ACEOF
  5802. cat confdefs.h >>conftest.$ac_ext
  5803. cat >>conftest.$ac_ext <<_ACEOF
  5804. /* end confdefs.h. */
  5805. $ac_includes_default
  5806. int
  5807. main ()
  5808. {
  5809. static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
  5810. test_array [0] = 0
  5811. ;
  5812. return 0;
  5813. }
  5814. _ACEOF
  5815. rm -f conftest.$ac_objext
  5816. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5817. (eval $ac_compile) 2>conftest.er1
  5818. ac_status=$?
  5819. grep -v '^ *+' conftest.er1 >conftest.err
  5820. rm -f conftest.er1
  5821. cat conftest.err >&5
  5822. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5823. (exit $ac_status); } &&
  5824. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5825. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5826. (eval $ac_try) 2>&5
  5827. ac_status=$?
  5828. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5829. (exit $ac_status); }; } &&
  5830. { ac_try='test -s conftest.$ac_objext'
  5831. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5832. (eval $ac_try) 2>&5
  5833. ac_status=$?
  5834. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5835. (exit $ac_status); }; }; then
  5836. ac_lo=0 ac_mid=0
  5837. while :; do
  5838. cat >conftest.$ac_ext <<_ACEOF
  5839. /* confdefs.h. */
  5840. _ACEOF
  5841. cat confdefs.h >>conftest.$ac_ext
  5842. cat >>conftest.$ac_ext <<_ACEOF
  5843. /* end confdefs.h. */
  5844. $ac_includes_default
  5845. int
  5846. main ()
  5847. {
  5848. static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
  5849. test_array [0] = 0
  5850. ;
  5851. return 0;
  5852. }
  5853. _ACEOF
  5854. rm -f conftest.$ac_objext
  5855. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5856. (eval $ac_compile) 2>conftest.er1
  5857. ac_status=$?
  5858. grep -v '^ *+' conftest.er1 >conftest.err
  5859. rm -f conftest.er1
  5860. cat conftest.err >&5
  5861. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5862. (exit $ac_status); } &&
  5863. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5864. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5865. (eval $ac_try) 2>&5
  5866. ac_status=$?
  5867. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5868. (exit $ac_status); }; } &&
  5869. { ac_try='test -s conftest.$ac_objext'
  5870. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5871. (eval $ac_try) 2>&5
  5872. ac_status=$?
  5873. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5874. (exit $ac_status); }; }; then
  5875. ac_hi=$ac_mid; break
  5876. else
  5877. echo "$as_me: failed program was:" >&5
  5878. sed 's/^/| /' conftest.$ac_ext >&5
  5879. ac_lo=`expr $ac_mid + 1`
  5880. if test $ac_lo -le $ac_mid; then
  5881. ac_lo= ac_hi=
  5882. break
  5883. fi
  5884. ac_mid=`expr 2 '*' $ac_mid + 1`
  5885. fi
  5886. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5887. done
  5888. else
  5889. echo "$as_me: failed program was:" >&5
  5890. sed 's/^/| /' conftest.$ac_ext >&5
  5891. cat >conftest.$ac_ext <<_ACEOF
  5892. /* confdefs.h. */
  5893. _ACEOF
  5894. cat confdefs.h >>conftest.$ac_ext
  5895. cat >>conftest.$ac_ext <<_ACEOF
  5896. /* end confdefs.h. */
  5897. $ac_includes_default
  5898. int
  5899. main ()
  5900. {
  5901. static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
  5902. test_array [0] = 0
  5903. ;
  5904. return 0;
  5905. }
  5906. _ACEOF
  5907. rm -f conftest.$ac_objext
  5908. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5909. (eval $ac_compile) 2>conftest.er1
  5910. ac_status=$?
  5911. grep -v '^ *+' conftest.er1 >conftest.err
  5912. rm -f conftest.er1
  5913. cat conftest.err >&5
  5914. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5915. (exit $ac_status); } &&
  5916. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5917. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5918. (eval $ac_try) 2>&5
  5919. ac_status=$?
  5920. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5921. (exit $ac_status); }; } &&
  5922. { ac_try='test -s conftest.$ac_objext'
  5923. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5924. (eval $ac_try) 2>&5
  5925. ac_status=$?
  5926. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5927. (exit $ac_status); }; }; then
  5928. ac_hi=-1 ac_mid=-1
  5929. while :; do
  5930. cat >conftest.$ac_ext <<_ACEOF
  5931. /* confdefs.h. */
  5932. _ACEOF
  5933. cat confdefs.h >>conftest.$ac_ext
  5934. cat >>conftest.$ac_ext <<_ACEOF
  5935. /* end confdefs.h. */
  5936. $ac_includes_default
  5937. int
  5938. main ()
  5939. {
  5940. static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
  5941. test_array [0] = 0
  5942. ;
  5943. return 0;
  5944. }
  5945. _ACEOF
  5946. rm -f conftest.$ac_objext
  5947. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5948. (eval $ac_compile) 2>conftest.er1
  5949. ac_status=$?
  5950. grep -v '^ *+' conftest.er1 >conftest.err
  5951. rm -f conftest.er1
  5952. cat conftest.err >&5
  5953. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5954. (exit $ac_status); } &&
  5955. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5956. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5957. (eval $ac_try) 2>&5
  5958. ac_status=$?
  5959. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5960. (exit $ac_status); }; } &&
  5961. { ac_try='test -s conftest.$ac_objext'
  5962. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5963. (eval $ac_try) 2>&5
  5964. ac_status=$?
  5965. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5966. (exit $ac_status); }; }; then
  5967. ac_lo=$ac_mid; break
  5968. else
  5969. echo "$as_me: failed program was:" >&5
  5970. sed 's/^/| /' conftest.$ac_ext >&5
  5971. ac_hi=`expr '(' $ac_mid ')' - 1`
  5972. if test $ac_mid -le $ac_hi; then
  5973. ac_lo= ac_hi=
  5974. break
  5975. fi
  5976. ac_mid=`expr 2 '*' $ac_mid`
  5977. fi
  5978. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5979. done
  5980. else
  5981. echo "$as_me: failed program was:" >&5
  5982. sed 's/^/| /' conftest.$ac_ext >&5
  5983. ac_lo= ac_hi=
  5984. fi
  5985. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5986. fi
  5987. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5988. # Binary search between lo and hi bounds.
  5989. while test "x$ac_lo" != "x$ac_hi"; do
  5990. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  5991. cat >conftest.$ac_ext <<_ACEOF
  5992. /* confdefs.h. */
  5993. _ACEOF
  5994. cat confdefs.h >>conftest.$ac_ext
  5995. cat >>conftest.$ac_ext <<_ACEOF
  5996. /* end confdefs.h. */
  5997. $ac_includes_default
  5998. int
  5999. main ()
  6000. {
  6001. static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
  6002. test_array [0] = 0
  6003. ;
  6004. return 0;
  6005. }
  6006. _ACEOF
  6007. rm -f conftest.$ac_objext
  6008. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6009. (eval $ac_compile) 2>conftest.er1
  6010. ac_status=$?
  6011. grep -v '^ *+' conftest.er1 >conftest.err
  6012. rm -f conftest.er1
  6013. cat conftest.err >&5
  6014. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6015. (exit $ac_status); } &&
  6016. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6017. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6018. (eval $ac_try) 2>&5
  6019. ac_status=$?
  6020. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6021. (exit $ac_status); }; } &&
  6022. { ac_try='test -s conftest.$ac_objext'
  6023. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6024. (eval $ac_try) 2>&5
  6025. ac_status=$?
  6026. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6027. (exit $ac_status); }; }; then
  6028. ac_hi=$ac_mid
  6029. else
  6030. echo "$as_me: failed program was:" >&5
  6031. sed 's/^/| /' conftest.$ac_ext >&5
  6032. ac_lo=`expr '(' $ac_mid ')' + 1`
  6033. fi
  6034. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6035. done
  6036. case $ac_lo in
  6037. ?*) ac_cv_sizeof_short=$ac_lo;;
  6038. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
  6039. See \`config.log' for more details." >&5
  6040. echo "$as_me: error: cannot compute sizeof (short), 77
  6041. See \`config.log' for more details." >&2;}
  6042. { (exit 1); exit 1; }; } ;;
  6043. esac
  6044. else
  6045. if test "$cross_compiling" = yes; then
  6046. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  6047. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  6048. { (exit 1); exit 1; }; }
  6049. else
  6050. cat >conftest.$ac_ext <<_ACEOF
  6051. /* confdefs.h. */
  6052. _ACEOF
  6053. cat confdefs.h >>conftest.$ac_ext
  6054. cat >>conftest.$ac_ext <<_ACEOF
  6055. /* end confdefs.h. */
  6056. $ac_includes_default
  6057. long longval () { return (long) (sizeof (short)); }
  6058. unsigned long ulongval () { return (long) (sizeof (short)); }
  6059. #include <stdio.h>
  6060. #include <stdlib.h>
  6061. int
  6062. main ()
  6063. {
  6064. FILE *f = fopen ("conftest.val", "w");
  6065. if (! f)
  6066. exit (1);
  6067. if (((long) (sizeof (short))) < 0)
  6068. {
  6069. long i = longval ();
  6070. if (i != ((long) (sizeof (short))))
  6071. exit (1);
  6072. fprintf (f, "%ld\n", i);
  6073. }
  6074. else
  6075. {
  6076. unsigned long i = ulongval ();
  6077. if (i != ((long) (sizeof (short))))
  6078. exit (1);
  6079. fprintf (f, "%lu\n", i);
  6080. }
  6081. exit (ferror (f) || fclose (f) != 0);
  6082. ;
  6083. return 0;
  6084. }
  6085. _ACEOF
  6086. rm -f conftest$ac_exeext
  6087. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6088. (eval $ac_link) 2>&5
  6089. ac_status=$?
  6090. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6091. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6092. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6093. (eval $ac_try) 2>&5
  6094. ac_status=$?
  6095. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6096. (exit $ac_status); }; }; then
  6097. ac_cv_sizeof_short=`cat conftest.val`
  6098. else
  6099. echo "$as_me: program exited with status $ac_status" >&5
  6100. echo "$as_me: failed program was:" >&5
  6101. sed 's/^/| /' conftest.$ac_ext >&5
  6102. ( exit $ac_status )
  6103. { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
  6104. See \`config.log' for more details." >&5
  6105. echo "$as_me: error: cannot compute sizeof (short), 77
  6106. See \`config.log' for more details." >&2;}
  6107. { (exit 1); exit 1; }; }
  6108. fi
  6109. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6110. fi
  6111. fi
  6112. rm -f conftest.val
  6113. else
  6114. ac_cv_sizeof_short=0
  6115. fi
  6116. fi
  6117. echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
  6118. echo "${ECHO_T}$ac_cv_sizeof_short" >&6
  6119. cat >>confdefs.h <<_ACEOF
  6120. #define SIZEOF_SHORT $ac_cv_sizeof_short
  6121. _ACEOF
  6122. echo "$as_me:$LINENO: checking for long" >&5
  6123. echo $ECHO_N "checking for long... $ECHO_C" >&6
  6124. if test "${ac_cv_type_long+set}" = set; then
  6125. echo $ECHO_N "(cached) $ECHO_C" >&6
  6126. else
  6127. cat >conftest.$ac_ext <<_ACEOF
  6128. /* confdefs.h. */
  6129. _ACEOF
  6130. cat confdefs.h >>conftest.$ac_ext
  6131. cat >>conftest.$ac_ext <<_ACEOF
  6132. /* end confdefs.h. */
  6133. $ac_includes_default
  6134. int
  6135. main ()
  6136. {
  6137. if ((long *) 0)
  6138. return 0;
  6139. if (sizeof (long))
  6140. return 0;
  6141. ;
  6142. return 0;
  6143. }
  6144. _ACEOF
  6145. rm -f conftest.$ac_objext
  6146. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6147. (eval $ac_compile) 2>conftest.er1
  6148. ac_status=$?
  6149. grep -v '^ *+' conftest.er1 >conftest.err
  6150. rm -f conftest.er1
  6151. cat conftest.err >&5
  6152. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6153. (exit $ac_status); } &&
  6154. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6155. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6156. (eval $ac_try) 2>&5
  6157. ac_status=$?
  6158. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6159. (exit $ac_status); }; } &&
  6160. { ac_try='test -s conftest.$ac_objext'
  6161. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6162. (eval $ac_try) 2>&5
  6163. ac_status=$?
  6164. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6165. (exit $ac_status); }; }; then
  6166. ac_cv_type_long=yes
  6167. else
  6168. echo "$as_me: failed program was:" >&5
  6169. sed 's/^/| /' conftest.$ac_ext >&5
  6170. ac_cv_type_long=no
  6171. fi
  6172. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6173. fi
  6174. echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
  6175. echo "${ECHO_T}$ac_cv_type_long" >&6
  6176. echo "$as_me:$LINENO: checking size of long" >&5
  6177. echo $ECHO_N "checking size of long... $ECHO_C" >&6
  6178. if test "${ac_cv_sizeof_long+set}" = set; then
  6179. echo $ECHO_N "(cached) $ECHO_C" >&6
  6180. else
  6181. if test "$ac_cv_type_long" = yes; then
  6182. # The cast to unsigned long works around a bug in the HP C Compiler
  6183. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6184. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6185. # This bug is HP SR number 8606223364.
  6186. if test "$cross_compiling" = yes; then
  6187. # Depending upon the size, compute the lo and hi bounds.
  6188. cat >conftest.$ac_ext <<_ACEOF
  6189. /* confdefs.h. */
  6190. _ACEOF
  6191. cat confdefs.h >>conftest.$ac_ext
  6192. cat >>conftest.$ac_ext <<_ACEOF
  6193. /* end confdefs.h. */
  6194. $ac_includes_default
  6195. int
  6196. main ()
  6197. {
  6198. static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
  6199. test_array [0] = 0
  6200. ;
  6201. return 0;
  6202. }
  6203. _ACEOF
  6204. rm -f conftest.$ac_objext
  6205. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6206. (eval $ac_compile) 2>conftest.er1
  6207. ac_status=$?
  6208. grep -v '^ *+' conftest.er1 >conftest.err
  6209. rm -f conftest.er1
  6210. cat conftest.err >&5
  6211. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6212. (exit $ac_status); } &&
  6213. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6214. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6215. (eval $ac_try) 2>&5
  6216. ac_status=$?
  6217. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6218. (exit $ac_status); }; } &&
  6219. { ac_try='test -s conftest.$ac_objext'
  6220. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6221. (eval $ac_try) 2>&5
  6222. ac_status=$?
  6223. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6224. (exit $ac_status); }; }; then
  6225. ac_lo=0 ac_mid=0
  6226. while :; do
  6227. cat >conftest.$ac_ext <<_ACEOF
  6228. /* confdefs.h. */
  6229. _ACEOF
  6230. cat confdefs.h >>conftest.$ac_ext
  6231. cat >>conftest.$ac_ext <<_ACEOF
  6232. /* end confdefs.h. */
  6233. $ac_includes_default
  6234. int
  6235. main ()
  6236. {
  6237. static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  6238. test_array [0] = 0
  6239. ;
  6240. return 0;
  6241. }
  6242. _ACEOF
  6243. rm -f conftest.$ac_objext
  6244. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6245. (eval $ac_compile) 2>conftest.er1
  6246. ac_status=$?
  6247. grep -v '^ *+' conftest.er1 >conftest.err
  6248. rm -f conftest.er1
  6249. cat conftest.err >&5
  6250. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6251. (exit $ac_status); } &&
  6252. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6253. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6254. (eval $ac_try) 2>&5
  6255. ac_status=$?
  6256. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6257. (exit $ac_status); }; } &&
  6258. { ac_try='test -s conftest.$ac_objext'
  6259. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6260. (eval $ac_try) 2>&5
  6261. ac_status=$?
  6262. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6263. (exit $ac_status); }; }; then
  6264. ac_hi=$ac_mid; break
  6265. else
  6266. echo "$as_me: failed program was:" >&5
  6267. sed 's/^/| /' conftest.$ac_ext >&5
  6268. ac_lo=`expr $ac_mid + 1`
  6269. if test $ac_lo -le $ac_mid; then
  6270. ac_lo= ac_hi=
  6271. break
  6272. fi
  6273. ac_mid=`expr 2 '*' $ac_mid + 1`
  6274. fi
  6275. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6276. done
  6277. else
  6278. echo "$as_me: failed program was:" >&5
  6279. sed 's/^/| /' conftest.$ac_ext >&5
  6280. cat >conftest.$ac_ext <<_ACEOF
  6281. /* confdefs.h. */
  6282. _ACEOF
  6283. cat confdefs.h >>conftest.$ac_ext
  6284. cat >>conftest.$ac_ext <<_ACEOF
  6285. /* end confdefs.h. */
  6286. $ac_includes_default
  6287. int
  6288. main ()
  6289. {
  6290. static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
  6291. test_array [0] = 0
  6292. ;
  6293. return 0;
  6294. }
  6295. _ACEOF
  6296. rm -f conftest.$ac_objext
  6297. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6298. (eval $ac_compile) 2>conftest.er1
  6299. ac_status=$?
  6300. grep -v '^ *+' conftest.er1 >conftest.err
  6301. rm -f conftest.er1
  6302. cat conftest.err >&5
  6303. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6304. (exit $ac_status); } &&
  6305. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6306. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6307. (eval $ac_try) 2>&5
  6308. ac_status=$?
  6309. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6310. (exit $ac_status); }; } &&
  6311. { ac_try='test -s conftest.$ac_objext'
  6312. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6313. (eval $ac_try) 2>&5
  6314. ac_status=$?
  6315. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6316. (exit $ac_status); }; }; then
  6317. ac_hi=-1 ac_mid=-1
  6318. while :; do
  6319. cat >conftest.$ac_ext <<_ACEOF
  6320. /* confdefs.h. */
  6321. _ACEOF
  6322. cat confdefs.h >>conftest.$ac_ext
  6323. cat >>conftest.$ac_ext <<_ACEOF
  6324. /* end confdefs.h. */
  6325. $ac_includes_default
  6326. int
  6327. main ()
  6328. {
  6329. static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
  6330. test_array [0] = 0
  6331. ;
  6332. return 0;
  6333. }
  6334. _ACEOF
  6335. rm -f conftest.$ac_objext
  6336. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6337. (eval $ac_compile) 2>conftest.er1
  6338. ac_status=$?
  6339. grep -v '^ *+' conftest.er1 >conftest.err
  6340. rm -f conftest.er1
  6341. cat conftest.err >&5
  6342. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6343. (exit $ac_status); } &&
  6344. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6345. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6346. (eval $ac_try) 2>&5
  6347. ac_status=$?
  6348. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6349. (exit $ac_status); }; } &&
  6350. { ac_try='test -s conftest.$ac_objext'
  6351. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6352. (eval $ac_try) 2>&5
  6353. ac_status=$?
  6354. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6355. (exit $ac_status); }; }; then
  6356. ac_lo=$ac_mid; break
  6357. else
  6358. echo "$as_me: failed program was:" >&5
  6359. sed 's/^/| /' conftest.$ac_ext >&5
  6360. ac_hi=`expr '(' $ac_mid ')' - 1`
  6361. if test $ac_mid -le $ac_hi; then
  6362. ac_lo= ac_hi=
  6363. break
  6364. fi
  6365. ac_mid=`expr 2 '*' $ac_mid`
  6366. fi
  6367. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6368. done
  6369. else
  6370. echo "$as_me: failed program was:" >&5
  6371. sed 's/^/| /' conftest.$ac_ext >&5
  6372. ac_lo= ac_hi=
  6373. fi
  6374. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6375. fi
  6376. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6377. # Binary search between lo and hi bounds.
  6378. while test "x$ac_lo" != "x$ac_hi"; do
  6379. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6380. cat >conftest.$ac_ext <<_ACEOF
  6381. /* confdefs.h. */
  6382. _ACEOF
  6383. cat confdefs.h >>conftest.$ac_ext
  6384. cat >>conftest.$ac_ext <<_ACEOF
  6385. /* end confdefs.h. */
  6386. $ac_includes_default
  6387. int
  6388. main ()
  6389. {
  6390. static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  6391. test_array [0] = 0
  6392. ;
  6393. return 0;
  6394. }
  6395. _ACEOF
  6396. rm -f conftest.$ac_objext
  6397. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6398. (eval $ac_compile) 2>conftest.er1
  6399. ac_status=$?
  6400. grep -v '^ *+' conftest.er1 >conftest.err
  6401. rm -f conftest.er1
  6402. cat conftest.err >&5
  6403. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6404. (exit $ac_status); } &&
  6405. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6406. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6407. (eval $ac_try) 2>&5
  6408. ac_status=$?
  6409. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6410. (exit $ac_status); }; } &&
  6411. { ac_try='test -s conftest.$ac_objext'
  6412. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6413. (eval $ac_try) 2>&5
  6414. ac_status=$?
  6415. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6416. (exit $ac_status); }; }; then
  6417. ac_hi=$ac_mid
  6418. else
  6419. echo "$as_me: failed program was:" >&5
  6420. sed 's/^/| /' conftest.$ac_ext >&5
  6421. ac_lo=`expr '(' $ac_mid ')' + 1`
  6422. fi
  6423. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6424. done
  6425. case $ac_lo in
  6426. ?*) ac_cv_sizeof_long=$ac_lo;;
  6427. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  6428. See \`config.log' for more details." >&5
  6429. echo "$as_me: error: cannot compute sizeof (long), 77
  6430. See \`config.log' for more details." >&2;}
  6431. { (exit 1); exit 1; }; } ;;
  6432. esac
  6433. else
  6434. if test "$cross_compiling" = yes; then
  6435. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  6436. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  6437. { (exit 1); exit 1; }; }
  6438. else
  6439. cat >conftest.$ac_ext <<_ACEOF
  6440. /* confdefs.h. */
  6441. _ACEOF
  6442. cat confdefs.h >>conftest.$ac_ext
  6443. cat >>conftest.$ac_ext <<_ACEOF
  6444. /* end confdefs.h. */
  6445. $ac_includes_default
  6446. long longval () { return (long) (sizeof (long)); }
  6447. unsigned long ulongval () { return (long) (sizeof (long)); }
  6448. #include <stdio.h>
  6449. #include <stdlib.h>
  6450. int
  6451. main ()
  6452. {
  6453. FILE *f = fopen ("conftest.val", "w");
  6454. if (! f)
  6455. exit (1);
  6456. if (((long) (sizeof (long))) < 0)
  6457. {
  6458. long i = longval ();
  6459. if (i != ((long) (sizeof (long))))
  6460. exit (1);
  6461. fprintf (f, "%ld\n", i);
  6462. }
  6463. else
  6464. {
  6465. unsigned long i = ulongval ();
  6466. if (i != ((long) (sizeof (long))))
  6467. exit (1);
  6468. fprintf (f, "%lu\n", i);
  6469. }
  6470. exit (ferror (f) || fclose (f) != 0);
  6471. ;
  6472. return 0;
  6473. }
  6474. _ACEOF
  6475. rm -f conftest$ac_exeext
  6476. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6477. (eval $ac_link) 2>&5
  6478. ac_status=$?
  6479. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6480. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6481. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6482. (eval $ac_try) 2>&5
  6483. ac_status=$?
  6484. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6485. (exit $ac_status); }; }; then
  6486. ac_cv_sizeof_long=`cat conftest.val`
  6487. else
  6488. echo "$as_me: program exited with status $ac_status" >&5
  6489. echo "$as_me: failed program was:" >&5
  6490. sed 's/^/| /' conftest.$ac_ext >&5
  6491. ( exit $ac_status )
  6492. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  6493. See \`config.log' for more details." >&5
  6494. echo "$as_me: error: cannot compute sizeof (long), 77
  6495. See \`config.log' for more details." >&2;}
  6496. { (exit 1); exit 1; }; }
  6497. fi
  6498. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6499. fi
  6500. fi
  6501. rm -f conftest.val
  6502. else
  6503. ac_cv_sizeof_long=0
  6504. fi
  6505. fi
  6506. echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  6507. echo "${ECHO_T}$ac_cv_sizeof_long" >&6
  6508. cat >>confdefs.h <<_ACEOF
  6509. #define SIZEOF_LONG $ac_cv_sizeof_long
  6510. _ACEOF
  6511. echo "$as_me:$LINENO: checking for long long" >&5
  6512. echo $ECHO_N "checking for long long... $ECHO_C" >&6
  6513. if test "${ac_cv_type_long_long+set}" = set; then
  6514. echo $ECHO_N "(cached) $ECHO_C" >&6
  6515. else
  6516. cat >conftest.$ac_ext <<_ACEOF
  6517. /* confdefs.h. */
  6518. _ACEOF
  6519. cat confdefs.h >>conftest.$ac_ext
  6520. cat >>conftest.$ac_ext <<_ACEOF
  6521. /* end confdefs.h. */
  6522. $ac_includes_default
  6523. int
  6524. main ()
  6525. {
  6526. if ((long long *) 0)
  6527. return 0;
  6528. if (sizeof (long long))
  6529. return 0;
  6530. ;
  6531. return 0;
  6532. }
  6533. _ACEOF
  6534. rm -f conftest.$ac_objext
  6535. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6536. (eval $ac_compile) 2>conftest.er1
  6537. ac_status=$?
  6538. grep -v '^ *+' conftest.er1 >conftest.err
  6539. rm -f conftest.er1
  6540. cat conftest.err >&5
  6541. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6542. (exit $ac_status); } &&
  6543. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6544. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6545. (eval $ac_try) 2>&5
  6546. ac_status=$?
  6547. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6548. (exit $ac_status); }; } &&
  6549. { ac_try='test -s conftest.$ac_objext'
  6550. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6551. (eval $ac_try) 2>&5
  6552. ac_status=$?
  6553. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6554. (exit $ac_status); }; }; then
  6555. ac_cv_type_long_long=yes
  6556. else
  6557. echo "$as_me: failed program was:" >&5
  6558. sed 's/^/| /' conftest.$ac_ext >&5
  6559. ac_cv_type_long_long=no
  6560. fi
  6561. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6562. fi
  6563. echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
  6564. echo "${ECHO_T}$ac_cv_type_long_long" >&6
  6565. echo "$as_me:$LINENO: checking size of long long" >&5
  6566. echo $ECHO_N "checking size of long long... $ECHO_C" >&6
  6567. if test "${ac_cv_sizeof_long_long+set}" = set; then
  6568. echo $ECHO_N "(cached) $ECHO_C" >&6
  6569. else
  6570. if test "$ac_cv_type_long_long" = yes; then
  6571. # The cast to unsigned long works around a bug in the HP C Compiler
  6572. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6573. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6574. # This bug is HP SR number 8606223364.
  6575. if test "$cross_compiling" = yes; then
  6576. # Depending upon the size, compute the lo and hi bounds.
  6577. cat >conftest.$ac_ext <<_ACEOF
  6578. /* confdefs.h. */
  6579. _ACEOF
  6580. cat confdefs.h >>conftest.$ac_ext
  6581. cat >>conftest.$ac_ext <<_ACEOF
  6582. /* end confdefs.h. */
  6583. $ac_includes_default
  6584. int
  6585. main ()
  6586. {
  6587. static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
  6588. test_array [0] = 0
  6589. ;
  6590. return 0;
  6591. }
  6592. _ACEOF
  6593. rm -f conftest.$ac_objext
  6594. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6595. (eval $ac_compile) 2>conftest.er1
  6596. ac_status=$?
  6597. grep -v '^ *+' conftest.er1 >conftest.err
  6598. rm -f conftest.er1
  6599. cat conftest.err >&5
  6600. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6601. (exit $ac_status); } &&
  6602. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6603. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6604. (eval $ac_try) 2>&5
  6605. ac_status=$?
  6606. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6607. (exit $ac_status); }; } &&
  6608. { ac_try='test -s conftest.$ac_objext'
  6609. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6610. (eval $ac_try) 2>&5
  6611. ac_status=$?
  6612. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6613. (exit $ac_status); }; }; then
  6614. ac_lo=0 ac_mid=0
  6615. while :; do
  6616. cat >conftest.$ac_ext <<_ACEOF
  6617. /* confdefs.h. */
  6618. _ACEOF
  6619. cat confdefs.h >>conftest.$ac_ext
  6620. cat >>conftest.$ac_ext <<_ACEOF
  6621. /* end confdefs.h. */
  6622. $ac_includes_default
  6623. int
  6624. main ()
  6625. {
  6626. static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
  6627. test_array [0] = 0
  6628. ;
  6629. return 0;
  6630. }
  6631. _ACEOF
  6632. rm -f conftest.$ac_objext
  6633. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6634. (eval $ac_compile) 2>conftest.er1
  6635. ac_status=$?
  6636. grep -v '^ *+' conftest.er1 >conftest.err
  6637. rm -f conftest.er1
  6638. cat conftest.err >&5
  6639. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6640. (exit $ac_status); } &&
  6641. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6642. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6643. (eval $ac_try) 2>&5
  6644. ac_status=$?
  6645. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6646. (exit $ac_status); }; } &&
  6647. { ac_try='test -s conftest.$ac_objext'
  6648. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6649. (eval $ac_try) 2>&5
  6650. ac_status=$?
  6651. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6652. (exit $ac_status); }; }; then
  6653. ac_hi=$ac_mid; break
  6654. else
  6655. echo "$as_me: failed program was:" >&5
  6656. sed 's/^/| /' conftest.$ac_ext >&5
  6657. ac_lo=`expr $ac_mid + 1`
  6658. if test $ac_lo -le $ac_mid; then
  6659. ac_lo= ac_hi=
  6660. break
  6661. fi
  6662. ac_mid=`expr 2 '*' $ac_mid + 1`
  6663. fi
  6664. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6665. done
  6666. else
  6667. echo "$as_me: failed program was:" >&5
  6668. sed 's/^/| /' conftest.$ac_ext >&5
  6669. cat >conftest.$ac_ext <<_ACEOF
  6670. /* confdefs.h. */
  6671. _ACEOF
  6672. cat confdefs.h >>conftest.$ac_ext
  6673. cat >>conftest.$ac_ext <<_ACEOF
  6674. /* end confdefs.h. */
  6675. $ac_includes_default
  6676. int
  6677. main ()
  6678. {
  6679. static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
  6680. test_array [0] = 0
  6681. ;
  6682. return 0;
  6683. }
  6684. _ACEOF
  6685. rm -f conftest.$ac_objext
  6686. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6687. (eval $ac_compile) 2>conftest.er1
  6688. ac_status=$?
  6689. grep -v '^ *+' conftest.er1 >conftest.err
  6690. rm -f conftest.er1
  6691. cat conftest.err >&5
  6692. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6693. (exit $ac_status); } &&
  6694. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6695. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6696. (eval $ac_try) 2>&5
  6697. ac_status=$?
  6698. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6699. (exit $ac_status); }; } &&
  6700. { ac_try='test -s conftest.$ac_objext'
  6701. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6702. (eval $ac_try) 2>&5
  6703. ac_status=$?
  6704. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6705. (exit $ac_status); }; }; then
  6706. ac_hi=-1 ac_mid=-1
  6707. while :; do
  6708. cat >conftest.$ac_ext <<_ACEOF
  6709. /* confdefs.h. */
  6710. _ACEOF
  6711. cat confdefs.h >>conftest.$ac_ext
  6712. cat >>conftest.$ac_ext <<_ACEOF
  6713. /* end confdefs.h. */
  6714. $ac_includes_default
  6715. int
  6716. main ()
  6717. {
  6718. static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
  6719. test_array [0] = 0
  6720. ;
  6721. return 0;
  6722. }
  6723. _ACEOF
  6724. rm -f conftest.$ac_objext
  6725. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6726. (eval $ac_compile) 2>conftest.er1
  6727. ac_status=$?
  6728. grep -v '^ *+' conftest.er1 >conftest.err
  6729. rm -f conftest.er1
  6730. cat conftest.err >&5
  6731. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6732. (exit $ac_status); } &&
  6733. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6734. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6735. (eval $ac_try) 2>&5
  6736. ac_status=$?
  6737. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6738. (exit $ac_status); }; } &&
  6739. { ac_try='test -s conftest.$ac_objext'
  6740. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6741. (eval $ac_try) 2>&5
  6742. ac_status=$?
  6743. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6744. (exit $ac_status); }; }; then
  6745. ac_lo=$ac_mid; break
  6746. else
  6747. echo "$as_me: failed program was:" >&5
  6748. sed 's/^/| /' conftest.$ac_ext >&5
  6749. ac_hi=`expr '(' $ac_mid ')' - 1`
  6750. if test $ac_mid -le $ac_hi; then
  6751. ac_lo= ac_hi=
  6752. break
  6753. fi
  6754. ac_mid=`expr 2 '*' $ac_mid`
  6755. fi
  6756. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6757. done
  6758. else
  6759. echo "$as_me: failed program was:" >&5
  6760. sed 's/^/| /' conftest.$ac_ext >&5
  6761. ac_lo= ac_hi=
  6762. fi
  6763. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6764. fi
  6765. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6766. # Binary search between lo and hi bounds.
  6767. while test "x$ac_lo" != "x$ac_hi"; do
  6768. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6769. cat >conftest.$ac_ext <<_ACEOF
  6770. /* confdefs.h. */
  6771. _ACEOF
  6772. cat confdefs.h >>conftest.$ac_ext
  6773. cat >>conftest.$ac_ext <<_ACEOF
  6774. /* end confdefs.h. */
  6775. $ac_includes_default
  6776. int
  6777. main ()
  6778. {
  6779. static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
  6780. test_array [0] = 0
  6781. ;
  6782. return 0;
  6783. }
  6784. _ACEOF
  6785. rm -f conftest.$ac_objext
  6786. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6787. (eval $ac_compile) 2>conftest.er1
  6788. ac_status=$?
  6789. grep -v '^ *+' conftest.er1 >conftest.err
  6790. rm -f conftest.er1
  6791. cat conftest.err >&5
  6792. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6793. (exit $ac_status); } &&
  6794. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6795. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6796. (eval $ac_try) 2>&5
  6797. ac_status=$?
  6798. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6799. (exit $ac_status); }; } &&
  6800. { ac_try='test -s conftest.$ac_objext'
  6801. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6802. (eval $ac_try) 2>&5
  6803. ac_status=$?
  6804. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6805. (exit $ac_status); }; }; then
  6806. ac_hi=$ac_mid
  6807. else
  6808. echo "$as_me: failed program was:" >&5
  6809. sed 's/^/| /' conftest.$ac_ext >&5
  6810. ac_lo=`expr '(' $ac_mid ')' + 1`
  6811. fi
  6812. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6813. done
  6814. case $ac_lo in
  6815. ?*) ac_cv_sizeof_long_long=$ac_lo;;
  6816. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
  6817. See \`config.log' for more details." >&5
  6818. echo "$as_me: error: cannot compute sizeof (long long), 77
  6819. See \`config.log' for more details." >&2;}
  6820. { (exit 1); exit 1; }; } ;;
  6821. esac
  6822. else
  6823. if test "$cross_compiling" = yes; then
  6824. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  6825. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  6826. { (exit 1); exit 1; }; }
  6827. else
  6828. cat >conftest.$ac_ext <<_ACEOF
  6829. /* confdefs.h. */
  6830. _ACEOF
  6831. cat confdefs.h >>conftest.$ac_ext
  6832. cat >>conftest.$ac_ext <<_ACEOF
  6833. /* end confdefs.h. */
  6834. $ac_includes_default
  6835. long longval () { return (long) (sizeof (long long)); }
  6836. unsigned long ulongval () { return (long) (sizeof (long long)); }
  6837. #include <stdio.h>
  6838. #include <stdlib.h>
  6839. int
  6840. main ()
  6841. {
  6842. FILE *f = fopen ("conftest.val", "w");
  6843. if (! f)
  6844. exit (1);
  6845. if (((long) (sizeof (long long))) < 0)
  6846. {
  6847. long i = longval ();
  6848. if (i != ((long) (sizeof (long long))))
  6849. exit (1);
  6850. fprintf (f, "%ld\n", i);
  6851. }
  6852. else
  6853. {
  6854. unsigned long i = ulongval ();
  6855. if (i != ((long) (sizeof (long long))))
  6856. exit (1);
  6857. fprintf (f, "%lu\n", i);
  6858. }
  6859. exit (ferror (f) || fclose (f) != 0);
  6860. ;
  6861. return 0;
  6862. }
  6863. _ACEOF
  6864. rm -f conftest$ac_exeext
  6865. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6866. (eval $ac_link) 2>&5
  6867. ac_status=$?
  6868. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6869. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6870. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6871. (eval $ac_try) 2>&5
  6872. ac_status=$?
  6873. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6874. (exit $ac_status); }; }; then
  6875. ac_cv_sizeof_long_long=`cat conftest.val`
  6876. else
  6877. echo "$as_me: program exited with status $ac_status" >&5
  6878. echo "$as_me: failed program was:" >&5
  6879. sed 's/^/| /' conftest.$ac_ext >&5
  6880. ( exit $ac_status )
  6881. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
  6882. See \`config.log' for more details." >&5
  6883. echo "$as_me: error: cannot compute sizeof (long long), 77
  6884. See \`config.log' for more details." >&2;}
  6885. { (exit 1); exit 1; }; }
  6886. fi
  6887. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6888. fi
  6889. fi
  6890. rm -f conftest.val
  6891. else
  6892. ac_cv_sizeof_long_long=0
  6893. fi
  6894. fi
  6895. echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
  6896. echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
  6897. cat >>confdefs.h <<_ACEOF
  6898. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  6899. _ACEOF
  6900. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  6901. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  6902. if test "${ac_cv_struct_tm+set}" = set; then
  6903. echo $ECHO_N "(cached) $ECHO_C" >&6
  6904. else
  6905. cat >conftest.$ac_ext <<_ACEOF
  6906. /* confdefs.h. */
  6907. _ACEOF
  6908. cat confdefs.h >>conftest.$ac_ext
  6909. cat >>conftest.$ac_ext <<_ACEOF
  6910. /* end confdefs.h. */
  6911. #include <sys/types.h>
  6912. #include <time.h>
  6913. int
  6914. main ()
  6915. {
  6916. struct tm *tp; tp->tm_sec;
  6917. ;
  6918. return 0;
  6919. }
  6920. _ACEOF
  6921. rm -f conftest.$ac_objext
  6922. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6923. (eval $ac_compile) 2>conftest.er1
  6924. ac_status=$?
  6925. grep -v '^ *+' conftest.er1 >conftest.err
  6926. rm -f conftest.er1
  6927. cat conftest.err >&5
  6928. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6929. (exit $ac_status); } &&
  6930. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6931. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6932. (eval $ac_try) 2>&5
  6933. ac_status=$?
  6934. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6935. (exit $ac_status); }; } &&
  6936. { ac_try='test -s conftest.$ac_objext'
  6937. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6938. (eval $ac_try) 2>&5
  6939. ac_status=$?
  6940. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6941. (exit $ac_status); }; }; then
  6942. ac_cv_struct_tm=time.h
  6943. else
  6944. echo "$as_me: failed program was:" >&5
  6945. sed 's/^/| /' conftest.$ac_ext >&5
  6946. ac_cv_struct_tm=sys/time.h
  6947. fi
  6948. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6949. fi
  6950. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  6951. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  6952. if test $ac_cv_struct_tm = sys/time.h; then
  6953. cat >>confdefs.h <<\_ACEOF
  6954. #define TM_IN_SYS_TIME 1
  6955. _ACEOF
  6956. fi
  6957. echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
  6958. echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
  6959. if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
  6960. echo $ECHO_N "(cached) $ECHO_C" >&6
  6961. else
  6962. cat >conftest.$ac_ext <<_ACEOF
  6963. /* confdefs.h. */
  6964. _ACEOF
  6965. cat confdefs.h >>conftest.$ac_ext
  6966. cat >>conftest.$ac_ext <<_ACEOF
  6967. /* end confdefs.h. */
  6968. #include <sys/types.h>
  6969. #include <$ac_cv_struct_tm>
  6970. int
  6971. main ()
  6972. {
  6973. static struct tm ac_aggr;
  6974. if (ac_aggr.tm_zone)
  6975. return 0;
  6976. ;
  6977. return 0;
  6978. }
  6979. _ACEOF
  6980. rm -f conftest.$ac_objext
  6981. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6982. (eval $ac_compile) 2>conftest.er1
  6983. ac_status=$?
  6984. grep -v '^ *+' conftest.er1 >conftest.err
  6985. rm -f conftest.er1
  6986. cat conftest.err >&5
  6987. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6988. (exit $ac_status); } &&
  6989. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6990. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6991. (eval $ac_try) 2>&5
  6992. ac_status=$?
  6993. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6994. (exit $ac_status); }; } &&
  6995. { ac_try='test -s conftest.$ac_objext'
  6996. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6997. (eval $ac_try) 2>&5
  6998. ac_status=$?
  6999. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7000. (exit $ac_status); }; }; then
  7001. ac_cv_member_struct_tm_tm_zone=yes
  7002. else
  7003. echo "$as_me: failed program was:" >&5
  7004. sed 's/^/| /' conftest.$ac_ext >&5
  7005. cat >conftest.$ac_ext <<_ACEOF
  7006. /* confdefs.h. */
  7007. _ACEOF
  7008. cat confdefs.h >>conftest.$ac_ext
  7009. cat >>conftest.$ac_ext <<_ACEOF
  7010. /* end confdefs.h. */
  7011. #include <sys/types.h>
  7012. #include <$ac_cv_struct_tm>
  7013. int
  7014. main ()
  7015. {
  7016. static struct tm ac_aggr;
  7017. if (sizeof ac_aggr.tm_zone)
  7018. return 0;
  7019. ;
  7020. return 0;
  7021. }
  7022. _ACEOF
  7023. rm -f conftest.$ac_objext
  7024. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7025. (eval $ac_compile) 2>conftest.er1
  7026. ac_status=$?
  7027. grep -v '^ *+' conftest.er1 >conftest.err
  7028. rm -f conftest.er1
  7029. cat conftest.err >&5
  7030. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7031. (exit $ac_status); } &&
  7032. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  7033. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7034. (eval $ac_try) 2>&5
  7035. ac_status=$?
  7036. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7037. (exit $ac_status); }; } &&
  7038. { ac_try='test -s conftest.$ac_objext'
  7039. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7040. (eval $ac_try) 2>&5
  7041. ac_status=$?
  7042. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7043. (exit $ac_status); }; }; then
  7044. ac_cv_member_struct_tm_tm_zone=yes
  7045. else
  7046. echo "$as_me: failed program was:" >&5
  7047. sed 's/^/| /' conftest.$ac_ext >&5
  7048. ac_cv_member_struct_tm_tm_zone=no
  7049. fi
  7050. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7051. fi
  7052. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7053. fi
  7054. echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
  7055. echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
  7056. if test $ac_cv_member_struct_tm_tm_zone = yes; then
  7057. cat >>confdefs.h <<_ACEOF
  7058. #define HAVE_STRUCT_TM_TM_ZONE 1
  7059. _ACEOF
  7060. fi
  7061. if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
  7062. cat >>confdefs.h <<\_ACEOF
  7063. #define HAVE_TM_ZONE 1
  7064. _ACEOF
  7065. else
  7066. echo "$as_me:$LINENO: checking for tzname" >&5
  7067. echo $ECHO_N "checking for tzname... $ECHO_C" >&6
  7068. if test "${ac_cv_var_tzname+set}" = set; then
  7069. echo $ECHO_N "(cached) $ECHO_C" >&6
  7070. else
  7071. cat >conftest.$ac_ext <<_ACEOF
  7072. /* confdefs.h. */
  7073. _ACEOF
  7074. cat confdefs.h >>conftest.$ac_ext
  7075. cat >>conftest.$ac_ext <<_ACEOF
  7076. /* end confdefs.h. */
  7077. #include <time.h>
  7078. #ifndef tzname /* For SGI. */
  7079. extern char *tzname[]; /* RS6000 and others reject char **tzname. */
  7080. #endif
  7081. int
  7082. main ()
  7083. {
  7084. atoi(*tzname);
  7085. ;
  7086. return 0;
  7087. }
  7088. _ACEOF
  7089. rm -f conftest.$ac_objext conftest$ac_exeext
  7090. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7091. (eval $ac_link) 2>conftest.er1
  7092. ac_status=$?
  7093. grep -v '^ *+' conftest.er1 >conftest.err
  7094. rm -f conftest.er1
  7095. cat conftest.err >&5
  7096. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7097. (exit $ac_status); } &&
  7098. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  7099. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7100. (eval $ac_try) 2>&5
  7101. ac_status=$?
  7102. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7103. (exit $ac_status); }; } &&
  7104. { ac_try='test -s conftest$ac_exeext'
  7105. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7106. (eval $ac_try) 2>&5
  7107. ac_status=$?
  7108. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7109. (exit $ac_status); }; }; then
  7110. ac_cv_var_tzname=yes
  7111. else
  7112. echo "$as_me: failed program was:" >&5
  7113. sed 's/^/| /' conftest.$ac_ext >&5
  7114. ac_cv_var_tzname=no
  7115. fi
  7116. rm -f conftest.err conftest.$ac_objext \
  7117. conftest$ac_exeext conftest.$ac_ext
  7118. fi
  7119. echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
  7120. echo "${ECHO_T}$ac_cv_var_tzname" >&6
  7121. if test $ac_cv_var_tzname = yes; then
  7122. cat >>confdefs.h <<\_ACEOF
  7123. #define HAVE_TZNAME 1
  7124. _ACEOF
  7125. fi
  7126. fi
  7127. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  7128. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  7129. if test "${ac_cv_struct_tm+set}" = set; then
  7130. echo $ECHO_N "(cached) $ECHO_C" >&6
  7131. else
  7132. cat >conftest.$ac_ext <<_ACEOF
  7133. /* confdefs.h. */
  7134. _ACEOF
  7135. cat confdefs.h >>conftest.$ac_ext
  7136. cat >>conftest.$ac_ext <<_ACEOF
  7137. /* end confdefs.h. */
  7138. #include <sys/types.h>
  7139. #include <time.h>
  7140. int
  7141. main ()
  7142. {
  7143. struct tm *tp; tp->tm_sec;
  7144. ;
  7145. return 0;
  7146. }
  7147. _ACEOF
  7148. rm -f conftest.$ac_objext
  7149. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7150. (eval $ac_compile) 2>conftest.er1
  7151. ac_status=$?
  7152. grep -v '^ *+' conftest.er1 >conftest.err
  7153. rm -f conftest.er1
  7154. cat conftest.err >&5
  7155. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7156. (exit $ac_status); } &&
  7157. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  7158. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7159. (eval $ac_try) 2>&5
  7160. ac_status=$?
  7161. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7162. (exit $ac_status); }; } &&
  7163. { ac_try='test -s conftest.$ac_objext'
  7164. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7165. (eval $ac_try) 2>&5
  7166. ac_status=$?
  7167. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7168. (exit $ac_status); }; }; then
  7169. ac_cv_struct_tm=time.h
  7170. else
  7171. echo "$as_me: failed program was:" >&5
  7172. sed 's/^/| /' conftest.$ac_ext >&5
  7173. ac_cv_struct_tm=sys/time.h
  7174. fi
  7175. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7176. fi
  7177. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  7178. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  7179. if test $ac_cv_struct_tm = sys/time.h; then
  7180. cat >>confdefs.h <<\_ACEOF
  7181. #define TM_IN_SYS_TIME 1
  7182. _ACEOF
  7183. fi
  7184. #checkpoint
  7185. cat >confcache <<\_ACEOF
  7186. # This file is a shell script that caches the results of configure
  7187. # tests run on this system so they can be shared between configure
  7188. # scripts and configure runs, see configure's option --config-cache.
  7189. # It is not useful on other systems. If it contains results you don't
  7190. # want to keep, you may remove or edit it.
  7191. #
  7192. # config.status only pays attention to the cache file if you give it
  7193. # the --recheck option to rerun configure.
  7194. #
  7195. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7196. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7197. # following values.
  7198. _ACEOF
  7199. # The following way of writing the cache mishandles newlines in values,
  7200. # but we know of no workaround that is simple, portable, and efficient.
  7201. # So, don't put newlines in cache variables' values.
  7202. # Ultrix sh set writes to stderr and can't be redirected directly,
  7203. # and sets the high bit in the cache file unless we assign to the vars.
  7204. {
  7205. (set) 2>&1 |
  7206. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  7207. *ac_space=\ *)
  7208. # `set' does not quote correctly, so add quotes (double-quote
  7209. # substitution turns \\\\ into \\, and sed turns \\ into \).
  7210. sed -n \
  7211. "s/'/'\\\\''/g;
  7212. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7213. ;;
  7214. *)
  7215. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7216. sed -n \
  7217. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  7218. ;;
  7219. esac;
  7220. } |
  7221. sed '
  7222. t clear
  7223. : clear
  7224. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7225. t end
  7226. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7227. : end' >>confcache
  7228. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  7229. if test -w $cache_file; then
  7230. test "x$cache_file" != "x/dev/null"
  7231. cat confcache >$cache_file
  7232. else
  7233. echo "not updating unwritable cache $cache_file"
  7234. fi
  7235. fi
  7236. rm -f confcache
  7237. # Checks for library functions
  7238. for ac_header in unistd.h vfork.h
  7239. do
  7240. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7241. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7242. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7243. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7244. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7245. echo $ECHO_N "(cached) $ECHO_C" >&6
  7246. fi
  7247. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7248. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7249. else
  7250. # Is the header compilable?
  7251. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7252. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  7253. cat >conftest.$ac_ext <<_ACEOF
  7254. /* confdefs.h. */
  7255. _ACEOF
  7256. cat confdefs.h >>conftest.$ac_ext
  7257. cat >>conftest.$ac_ext <<_ACEOF
  7258. /* end confdefs.h. */
  7259. $ac_includes_default
  7260. #include <$ac_header>
  7261. _ACEOF
  7262. rm -f conftest.$ac_objext
  7263. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7264. (eval $ac_compile) 2>conftest.er1
  7265. ac_status=$?
  7266. grep -v '^ *+' conftest.er1 >conftest.err
  7267. rm -f conftest.er1
  7268. cat conftest.err >&5
  7269. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7270. (exit $ac_status); } &&
  7271. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  7272. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7273. (eval $ac_try) 2>&5
  7274. ac_status=$?
  7275. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7276. (exit $ac_status); }; } &&
  7277. { ac_try='test -s conftest.$ac_objext'
  7278. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7279. (eval $ac_try) 2>&5
  7280. ac_status=$?
  7281. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7282. (exit $ac_status); }; }; then
  7283. ac_header_compiler=yes
  7284. else
  7285. echo "$as_me: failed program was:" >&5
  7286. sed 's/^/| /' conftest.$ac_ext >&5
  7287. ac_header_compiler=no
  7288. fi
  7289. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7290. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7291. echo "${ECHO_T}$ac_header_compiler" >&6
  7292. # Is the header present?
  7293. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7294. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  7295. cat >conftest.$ac_ext <<_ACEOF
  7296. /* confdefs.h. */
  7297. _ACEOF
  7298. cat confdefs.h >>conftest.$ac_ext
  7299. cat >>conftest.$ac_ext <<_ACEOF
  7300. /* end confdefs.h. */
  7301. #include <$ac_header>
  7302. _ACEOF
  7303. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  7304. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  7305. ac_status=$?
  7306. grep -v '^ *+' conftest.er1 >conftest.err
  7307. rm -f conftest.er1
  7308. cat conftest.err >&5
  7309. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7310. (exit $ac_status); } >/dev/null; then
  7311. if test -s conftest.err; then
  7312. ac_cpp_err=$ac_cxx_preproc_warn_flag
  7313. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  7314. else
  7315. ac_cpp_err=
  7316. fi
  7317. else
  7318. ac_cpp_err=yes
  7319. fi
  7320. if test -z "$ac_cpp_err"; then
  7321. ac_header_preproc=yes
  7322. else
  7323. echo "$as_me: failed program was:" >&5
  7324. sed 's/^/| /' conftest.$ac_ext >&5
  7325. ac_header_preproc=no
  7326. fi
  7327. rm -f conftest.err conftest.$ac_ext
  7328. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7329. echo "${ECHO_T}$ac_header_preproc" >&6
  7330. # So? What about this header?
  7331. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  7332. yes:no: )
  7333. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7334. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7335. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7336. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7337. ac_header_preproc=yes
  7338. ;;
  7339. no:yes:* )
  7340. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7341. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7342. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7343. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7344. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7345. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7346. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7347. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7348. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7349. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7350. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7351. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7352. (
  7353. cat <<\_ASBOX
  7354. ## ------------------------------------------ ##
  7355. ## Report this to the AC_PACKAGE_NAME lists. ##
  7356. ## ------------------------------------------ ##
  7357. _ASBOX
  7358. ) |
  7359. sed "s/^/$as_me: WARNING: /" >&2
  7360. ;;
  7361. esac
  7362. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7363. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7364. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7365. echo $ECHO_N "(cached) $ECHO_C" >&6
  7366. else
  7367. eval "$as_ac_Header=\$ac_header_preproc"
  7368. fi
  7369. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7370. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7371. fi
  7372. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7373. cat >>confdefs.h <<_ACEOF
  7374. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7375. _ACEOF
  7376. fi
  7377. done
  7378. for ac_func in fork vfork
  7379. do
  7380. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7381. echo "$as_me:$LINENO: checking for $ac_func" >&5
  7382. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  7383. if eval "test \"\${$as_ac_var+set}\" = set"; then
  7384. echo $ECHO_N "(cached) $ECHO_C" >&6
  7385. else
  7386. cat >conftest.$ac_ext <<_ACEOF
  7387. /* confdefs.h. */
  7388. _ACEOF
  7389. cat confdefs.h >>conftest.$ac_ext
  7390. cat >>conftest.$ac_ext <<_ACEOF
  7391. /* end confdefs.h. */
  7392. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7393. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7394. #define $ac_func innocuous_$ac_func
  7395. /* System header to define __stub macros and hopefully few prototypes,
  7396. which can conflict with char $ac_func (); below.
  7397. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7398. <limits.h> exists even on freestanding compilers. */
  7399. #ifdef __STDC__
  7400. # include <limits.h>
  7401. #else
  7402. # include <assert.h>
  7403. #endif
  7404. #undef $ac_func
  7405. /* Override any gcc2 internal prototype to avoid an error. */
  7406. #ifdef __cplusplus
  7407. extern "C"
  7408. {
  7409. #endif
  7410. /* We use char because int might match the return type of a gcc2
  7411. builtin and then its argument prototype would still apply. */
  7412. char $ac_func ();
  7413. /* The GNU C library defines this for functions which it implements
  7414. to always fail with ENOSYS. Some functions are actually named
  7415. something starting with __ and the normal name is an alias. */
  7416. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  7417. choke me
  7418. #else
  7419. char (*f) () = $ac_func;
  7420. #endif
  7421. #ifdef __cplusplus
  7422. }
  7423. #endif
  7424. int
  7425. main ()
  7426. {
  7427. return f != $ac_func;
  7428. ;
  7429. return 0;
  7430. }
  7431. _ACEOF
  7432. rm -f conftest.$ac_objext conftest$ac_exeext
  7433. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7434. (eval $ac_link) 2>conftest.er1
  7435. ac_status=$?
  7436. grep -v '^ *+' conftest.er1 >conftest.err
  7437. rm -f conftest.er1
  7438. cat conftest.err >&5
  7439. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7440. (exit $ac_status); } &&
  7441. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  7442. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7443. (eval $ac_try) 2>&5
  7444. ac_status=$?
  7445. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7446. (exit $ac_status); }; } &&
  7447. { ac_try='test -s conftest$ac_exeext'
  7448. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7449. (eval $ac_try) 2>&5
  7450. ac_status=$?
  7451. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7452. (exit $ac_status); }; }; then
  7453. eval "$as_ac_var=yes"
  7454. else
  7455. echo "$as_me: failed program was:" >&5
  7456. sed 's/^/| /' conftest.$ac_ext >&5
  7457. eval "$as_ac_var=no"
  7458. fi
  7459. rm -f conftest.err conftest.$ac_objext \
  7460. conftest$ac_exeext conftest.$ac_ext
  7461. fi
  7462. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  7463. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  7464. if test `eval echo '${'$as_ac_var'}'` = yes; then
  7465. cat >>confdefs.h <<_ACEOF
  7466. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7467. _ACEOF
  7468. fi
  7469. done
  7470. if test "x$ac_cv_func_fork" = xyes; then
  7471. echo "$as_me:$LINENO: checking for working fork" >&5
  7472. echo $ECHO_N "checking for working fork... $ECHO_C" >&6
  7473. if test "${ac_cv_func_fork_works+set}" = set; then
  7474. echo $ECHO_N "(cached) $ECHO_C" >&6
  7475. else
  7476. if test "$cross_compiling" = yes; then
  7477. ac_cv_func_fork_works=cross
  7478. else
  7479. cat >conftest.$ac_ext <<_ACEOF
  7480. /* confdefs.h. */
  7481. _ACEOF
  7482. cat confdefs.h >>conftest.$ac_ext
  7483. cat >>conftest.$ac_ext <<_ACEOF
  7484. /* end confdefs.h. */
  7485. $ac_includes_default
  7486. int
  7487. main ()
  7488. {
  7489. /* By Ruediger Kuhlmann. */
  7490. if (fork() < 0)
  7491. exit (1);
  7492. exit (0);
  7493. ;
  7494. return 0;
  7495. }
  7496. _ACEOF
  7497. rm -f conftest$ac_exeext
  7498. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7499. (eval $ac_link) 2>&5
  7500. ac_status=$?
  7501. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7502. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7503. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7504. (eval $ac_try) 2>&5
  7505. ac_status=$?
  7506. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7507. (exit $ac_status); }; }; then
  7508. ac_cv_func_fork_works=yes
  7509. else
  7510. echo "$as_me: program exited with status $ac_status" >&5
  7511. echo "$as_me: failed program was:" >&5
  7512. sed 's/^/| /' conftest.$ac_ext >&5
  7513. ( exit $ac_status )
  7514. ac_cv_func_fork_works=no
  7515. fi
  7516. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7517. fi
  7518. fi
  7519. echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
  7520. echo "${ECHO_T}$ac_cv_func_fork_works" >&6
  7521. else
  7522. ac_cv_func_fork_works=$ac_cv_func_fork
  7523. fi
  7524. if test "x$ac_cv_func_fork_works" = xcross; then
  7525. case $host in
  7526. *-*-amigaos* | *-*-msdosdjgpp*)
  7527. # Override, as these systems have only a dummy fork() stub
  7528. ac_cv_func_fork_works=no
  7529. ;;
  7530. *)
  7531. ac_cv_func_fork_works=yes
  7532. ;;
  7533. esac
  7534. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  7535. echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  7536. fi
  7537. ac_cv_func_vfork_works=$ac_cv_func_vfork
  7538. if test "x$ac_cv_func_vfork" = xyes; then
  7539. echo "$as_me:$LINENO: checking for working vfork" >&5
  7540. echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
  7541. if test "${ac_cv_func_vfork_works+set}" = set; then
  7542. echo $ECHO_N "(cached) $ECHO_C" >&6
  7543. else
  7544. if test "$cross_compiling" = yes; then
  7545. ac_cv_func_vfork_works=cross
  7546. else
  7547. cat >conftest.$ac_ext <<_ACEOF
  7548. /* confdefs.h. */
  7549. _ACEOF
  7550. cat confdefs.h >>conftest.$ac_ext
  7551. cat >>conftest.$ac_ext <<_ACEOF
  7552. /* end confdefs.h. */
  7553. /* Thanks to Paul Eggert for this test. */
  7554. #include <stdio.h>
  7555. #include <stdlib.h>
  7556. #include <sys/types.h>
  7557. #include <sys/stat.h>
  7558. #include <sys/wait.h>
  7559. #if HAVE_UNISTD_H
  7560. # include <unistd.h>
  7561. #endif
  7562. #if HAVE_VFORK_H
  7563. # include <vfork.h>
  7564. #endif
  7565. /* On some sparc systems, changes by the child to local and incoming
  7566. argument registers are propagated back to the parent. The compiler
  7567. is told about this with #include <vfork.h>, but some compilers
  7568. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  7569. static variable whose address is put into a register that is
  7570. clobbered by the vfork. */
  7571. static void
  7572. #ifdef __cplusplus
  7573. sparc_address_test (int arg)
  7574. # else
  7575. sparc_address_test (arg) int arg;
  7576. #endif
  7577. {
  7578. static pid_t child;
  7579. if (!child) {
  7580. child = vfork ();
  7581. if (child < 0) {
  7582. perror ("vfork");
  7583. _exit(2);
  7584. }
  7585. if (!child) {
  7586. arg = getpid();
  7587. write(-1, "", 0);
  7588. _exit (arg);
  7589. }
  7590. }
  7591. }
  7592. int
  7593. main ()
  7594. {
  7595. pid_t parent = getpid ();
  7596. pid_t child;
  7597. sparc_address_test (0);
  7598. child = vfork ();
  7599. if (child == 0) {
  7600. /* Here is another test for sparc vfork register problems. This
  7601. test uses lots of local variables, at least as many local
  7602. variables as main has allocated so far including compiler
  7603. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  7604. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  7605. reuse the register of parent for one of the local variables,
  7606. since it will think that parent can't possibly be used any more
  7607. in this routine. Assigning to the local variable will thus
  7608. munge parent in the parent process. */
  7609. pid_t
  7610. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  7611. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  7612. /* Convince the compiler that p..p7 are live; otherwise, it might
  7613. use the same hardware register for all 8 local variables. */
  7614. if (p != p1 || p != p2 || p != p3 || p != p4
  7615. || p != p5 || p != p6 || p != p7)
  7616. _exit(1);
  7617. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  7618. from child file descriptors. If the child closes a descriptor
  7619. before it execs or exits, this munges the parent's descriptor
  7620. as well. Test for this by closing stdout in the child. */
  7621. _exit(close(fileno(stdout)) != 0);
  7622. } else {
  7623. int status;
  7624. struct stat st;
  7625. while (wait(&status) != child)
  7626. ;
  7627. exit(
  7628. /* Was there some problem with vforking? */
  7629. child < 0
  7630. /* Did the child fail? (This shouldn't happen.) */
  7631. || status
  7632. /* Did the vfork/compiler bug occur? */
  7633. || parent != getpid()
  7634. /* Did the file descriptor bug occur? */
  7635. || fstat(fileno(stdout), &st) != 0
  7636. );
  7637. }
  7638. }
  7639. _ACEOF
  7640. rm -f conftest$ac_exeext
  7641. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7642. (eval $ac_link) 2>&5
  7643. ac_status=$?
  7644. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7645. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7646. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7647. (eval $ac_try) 2>&5
  7648. ac_status=$?
  7649. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7650. (exit $ac_status); }; }; then
  7651. ac_cv_func_vfork_works=yes
  7652. else
  7653. echo "$as_me: program exited with status $ac_status" >&5
  7654. echo "$as_me: failed program was:" >&5
  7655. sed 's/^/| /' conftest.$ac_ext >&5
  7656. ( exit $ac_status )
  7657. ac_cv_func_vfork_works=no
  7658. fi
  7659. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7660. fi
  7661. fi
  7662. echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
  7663. echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
  7664. fi;
  7665. if test "x$ac_cv_func_fork_works" = xcross; then
  7666. ac_cv_func_vfork_works=$ac_cv_func_vfork
  7667. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  7668. echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  7669. fi
  7670. if test "x$ac_cv_func_vfork_works" = xyes; then
  7671. cat >>confdefs.h <<\_ACEOF
  7672. #define HAVE_WORKING_VFORK 1
  7673. _ACEOF
  7674. else
  7675. cat >>confdefs.h <<\_ACEOF
  7676. #define vfork fork
  7677. _ACEOF
  7678. fi
  7679. if test "x$ac_cv_func_fork_works" = xyes; then
  7680. cat >>confdefs.h <<\_ACEOF
  7681. #define HAVE_WORKING_FORK 1
  7682. _ACEOF
  7683. fi
  7684. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  7685. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  7686. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  7687. echo $ECHO_N "(cached) $ECHO_C" >&6
  7688. else
  7689. rm -f conftest.sym conftest.file
  7690. echo >conftest.file
  7691. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  7692. if test "$cross_compiling" = yes; then
  7693. ac_cv_func_lstat_dereferences_slashed_symlink=no
  7694. else
  7695. cat >conftest.$ac_ext <<_ACEOF
  7696. /* confdefs.h. */
  7697. _ACEOF
  7698. cat confdefs.h >>conftest.$ac_ext
  7699. cat >>conftest.$ac_ext <<_ACEOF
  7700. /* end confdefs.h. */
  7701. $ac_includes_default
  7702. int
  7703. main ()
  7704. {
  7705. struct stat sbuf;
  7706. /* Linux will dereference the symlink and fail.
  7707. That is better in the sense that it means we will not
  7708. have to compile and use the lstat wrapper. */
  7709. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  7710. ;
  7711. return 0;
  7712. }
  7713. _ACEOF
  7714. rm -f conftest$ac_exeext
  7715. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7716. (eval $ac_link) 2>&5
  7717. ac_status=$?
  7718. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7719. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7720. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7721. (eval $ac_try) 2>&5
  7722. ac_status=$?
  7723. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7724. (exit $ac_status); }; }; then
  7725. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  7726. else
  7727. echo "$as_me: program exited with status $ac_status" >&5
  7728. echo "$as_me: failed program was:" >&5
  7729. sed 's/^/| /' conftest.$ac_ext >&5
  7730. ( exit $ac_status )
  7731. ac_cv_func_lstat_dereferences_slashed_symlink=no
  7732. fi
  7733. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7734. fi
  7735. else
  7736. # If the `ln -s' command failed, then we probably don't even
  7737. # have an lstat function.
  7738. ac_cv_func_lstat_dereferences_slashed_symlink=no
  7739. fi
  7740. rm -f conftest.sym conftest.file
  7741. fi
  7742. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  7743. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  7744. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  7745. cat >>confdefs.h <<_ACEOF
  7746. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  7747. _ACEOF
  7748. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  7749. case $LIBOBJS in
  7750. "lstat.$ac_objext" | \
  7751. *" lstat.$ac_objext" | \
  7752. "lstat.$ac_objext "* | \
  7753. *" lstat.$ac_objext "* ) ;;
  7754. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  7755. esac
  7756. fi
  7757. echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
  7758. echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
  7759. if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
  7760. echo $ECHO_N "(cached) $ECHO_C" >&6
  7761. else
  7762. if test "$cross_compiling" = yes; then
  7763. ac_cv_func_lstat_empty_string_bug=yes
  7764. else
  7765. cat >conftest.$ac_ext <<_ACEOF
  7766. /* confdefs.h. */
  7767. _ACEOF
  7768. cat confdefs.h >>conftest.$ac_ext
  7769. cat >>conftest.$ac_ext <<_ACEOF
  7770. /* end confdefs.h. */
  7771. $ac_includes_default
  7772. int
  7773. main ()
  7774. {
  7775. struct stat sbuf;
  7776. exit (lstat ("", &sbuf) ? 1 : 0);
  7777. ;
  7778. return 0;
  7779. }
  7780. _ACEOF
  7781. rm -f conftest$ac_exeext
  7782. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7783. (eval $ac_link) 2>&5
  7784. ac_status=$?
  7785. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7786. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7787. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7788. (eval $ac_try) 2>&5
  7789. ac_status=$?
  7790. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7791. (exit $ac_status); }; }; then
  7792. ac_cv_func_lstat_empty_string_bug=yes
  7793. else
  7794. echo "$as_me: program exited with status $ac_status" >&5
  7795. echo "$as_me: failed program was:" >&5
  7796. sed 's/^/| /' conftest.$ac_ext >&5
  7797. ( exit $ac_status )
  7798. ac_cv_func_lstat_empty_string_bug=no
  7799. fi
  7800. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7801. fi
  7802. fi
  7803. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
  7804. echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
  7805. if test $ac_cv_func_lstat_empty_string_bug = yes; then
  7806. case $LIBOBJS in
  7807. "lstat.$ac_objext" | \
  7808. *" lstat.$ac_objext" | \
  7809. "lstat.$ac_objext "* | \
  7810. *" lstat.$ac_objext "* ) ;;
  7811. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  7812. esac
  7813. cat >>confdefs.h <<_ACEOF
  7814. #define HAVE_LSTAT_EMPTY_STRING_BUG 1
  7815. _ACEOF
  7816. fi
  7817. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  7818. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  7819. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  7820. echo $ECHO_N "(cached) $ECHO_C" >&6
  7821. else
  7822. rm -f conftest.sym conftest.file
  7823. echo >conftest.file
  7824. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  7825. if test "$cross_compiling" = yes; then
  7826. ac_cv_func_lstat_dereferences_slashed_symlink=no
  7827. else
  7828. cat >conftest.$ac_ext <<_ACEOF
  7829. /* confdefs.h. */
  7830. _ACEOF
  7831. cat confdefs.h >>conftest.$ac_ext
  7832. cat >>conftest.$ac_ext <<_ACEOF
  7833. /* end confdefs.h. */
  7834. $ac_includes_default
  7835. int
  7836. main ()
  7837. {
  7838. struct stat sbuf;
  7839. /* Linux will dereference the symlink and fail.
  7840. That is better in the sense that it means we will not
  7841. have to compile and use the lstat wrapper. */
  7842. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  7843. ;
  7844. return 0;
  7845. }
  7846. _ACEOF
  7847. rm -f conftest$ac_exeext
  7848. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7849. (eval $ac_link) 2>&5
  7850. ac_status=$?
  7851. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7852. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7853. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7854. (eval $ac_try) 2>&5
  7855. ac_status=$?
  7856. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7857. (exit $ac_status); }; }; then
  7858. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  7859. else
  7860. echo "$as_me: program exited with status $ac_status" >&5
  7861. echo "$as_me: failed program was:" >&5
  7862. sed 's/^/| /' conftest.$ac_ext >&5
  7863. ( exit $ac_status )
  7864. ac_cv_func_lstat_dereferences_slashed_symlink=no
  7865. fi
  7866. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7867. fi
  7868. else
  7869. # If the `ln -s' command failed, then we probably don't even
  7870. # have an lstat function.
  7871. ac_cv_func_lstat_dereferences_slashed_symlink=no
  7872. fi
  7873. rm -f conftest.sym conftest.file
  7874. fi
  7875. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  7876. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  7877. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  7878. cat >>confdefs.h <<_ACEOF
  7879. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  7880. _ACEOF
  7881. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  7882. case $LIBOBJS in
  7883. "lstat.$ac_objext" | \
  7884. *" lstat.$ac_objext" | \
  7885. "lstat.$ac_objext "* | \
  7886. *" lstat.$ac_objext "* ) ;;
  7887. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  7888. esac
  7889. fi
  7890. for ac_header in stdlib.h
  7891. do
  7892. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7893. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7894. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7895. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7896. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7897. echo $ECHO_N "(cached) $ECHO_C" >&6
  7898. fi
  7899. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7900. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7901. else
  7902. # Is the header compilable?
  7903. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7904. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  7905. cat >conftest.$ac_ext <<_ACEOF
  7906. /* confdefs.h. */
  7907. _ACEOF
  7908. cat confdefs.h >>conftest.$ac_ext
  7909. cat >>conftest.$ac_ext <<_ACEOF
  7910. /* end confdefs.h. */
  7911. $ac_includes_default
  7912. #include <$ac_header>
  7913. _ACEOF
  7914. rm -f conftest.$ac_objext
  7915. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7916. (eval $ac_compile) 2>conftest.er1
  7917. ac_status=$?
  7918. grep -v '^ *+' conftest.er1 >conftest.err
  7919. rm -f conftest.er1
  7920. cat conftest.err >&5
  7921. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7922. (exit $ac_status); } &&
  7923. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  7924. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7925. (eval $ac_try) 2>&5
  7926. ac_status=$?
  7927. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7928. (exit $ac_status); }; } &&
  7929. { ac_try='test -s conftest.$ac_objext'
  7930. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7931. (eval $ac_try) 2>&5
  7932. ac_status=$?
  7933. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7934. (exit $ac_status); }; }; then
  7935. ac_header_compiler=yes
  7936. else
  7937. echo "$as_me: failed program was:" >&5
  7938. sed 's/^/| /' conftest.$ac_ext >&5
  7939. ac_header_compiler=no
  7940. fi
  7941. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7942. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7943. echo "${ECHO_T}$ac_header_compiler" >&6
  7944. # Is the header present?
  7945. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7946. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  7947. cat >conftest.$ac_ext <<_ACEOF
  7948. /* confdefs.h. */
  7949. _ACEOF
  7950. cat confdefs.h >>conftest.$ac_ext
  7951. cat >>conftest.$ac_ext <<_ACEOF
  7952. /* end confdefs.h. */
  7953. #include <$ac_header>
  7954. _ACEOF
  7955. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  7956. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  7957. ac_status=$?
  7958. grep -v '^ *+' conftest.er1 >conftest.err
  7959. rm -f conftest.er1
  7960. cat conftest.err >&5
  7961. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7962. (exit $ac_status); } >/dev/null; then
  7963. if test -s conftest.err; then
  7964. ac_cpp_err=$ac_cxx_preproc_warn_flag
  7965. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  7966. else
  7967. ac_cpp_err=
  7968. fi
  7969. else
  7970. ac_cpp_err=yes
  7971. fi
  7972. if test -z "$ac_cpp_err"; then
  7973. ac_header_preproc=yes
  7974. else
  7975. echo "$as_me: failed program was:" >&5
  7976. sed 's/^/| /' conftest.$ac_ext >&5
  7977. ac_header_preproc=no
  7978. fi
  7979. rm -f conftest.err conftest.$ac_ext
  7980. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7981. echo "${ECHO_T}$ac_header_preproc" >&6
  7982. # So? What about this header?
  7983. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  7984. yes:no: )
  7985. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7986. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7987. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7988. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7989. ac_header_preproc=yes
  7990. ;;
  7991. no:yes:* )
  7992. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7993. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7994. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7995. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7996. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7997. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7998. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7999. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8000. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8001. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8002. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8003. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8004. (
  8005. cat <<\_ASBOX
  8006. ## ------------------------------------------ ##
  8007. ## Report this to the AC_PACKAGE_NAME lists. ##
  8008. ## ------------------------------------------ ##
  8009. _ASBOX
  8010. ) |
  8011. sed "s/^/$as_me: WARNING: /" >&2
  8012. ;;
  8013. esac
  8014. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8015. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8016. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8017. echo $ECHO_N "(cached) $ECHO_C" >&6
  8018. else
  8019. eval "$as_ac_Header=\$ac_header_preproc"
  8020. fi
  8021. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8022. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8023. fi
  8024. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8025. cat >>confdefs.h <<_ACEOF
  8026. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8027. _ACEOF
  8028. fi
  8029. done
  8030. echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  8031. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
  8032. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  8033. echo $ECHO_N "(cached) $ECHO_C" >&6
  8034. else
  8035. if test "$cross_compiling" = yes; then
  8036. ac_cv_func_malloc_0_nonnull=no
  8037. else
  8038. cat >conftest.$ac_ext <<_ACEOF
  8039. /* confdefs.h. */
  8040. _ACEOF
  8041. cat confdefs.h >>conftest.$ac_ext
  8042. cat >>conftest.$ac_ext <<_ACEOF
  8043. /* end confdefs.h. */
  8044. #if STDC_HEADERS || HAVE_STDLIB_H
  8045. # include <stdlib.h>
  8046. #else
  8047. char *malloc ();
  8048. #endif
  8049. int
  8050. main ()
  8051. {
  8052. exit (malloc (0) ? 0 : 1);
  8053. ;
  8054. return 0;
  8055. }
  8056. _ACEOF
  8057. rm -f conftest$ac_exeext
  8058. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8059. (eval $ac_link) 2>&5
  8060. ac_status=$?
  8061. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8062. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8063. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8064. (eval $ac_try) 2>&5
  8065. ac_status=$?
  8066. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8067. (exit $ac_status); }; }; then
  8068. ac_cv_func_malloc_0_nonnull=yes
  8069. else
  8070. echo "$as_me: program exited with status $ac_status" >&5
  8071. echo "$as_me: failed program was:" >&5
  8072. sed 's/^/| /' conftest.$ac_ext >&5
  8073. ( exit $ac_status )
  8074. ac_cv_func_malloc_0_nonnull=no
  8075. fi
  8076. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8077. fi
  8078. fi
  8079. echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  8080. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
  8081. if test $ac_cv_func_malloc_0_nonnull = yes; then
  8082. cat >>confdefs.h <<\_ACEOF
  8083. #define HAVE_MALLOC 1
  8084. _ACEOF
  8085. else
  8086. cat >>confdefs.h <<\_ACEOF
  8087. #define HAVE_MALLOC 0
  8088. _ACEOF
  8089. case $LIBOBJS in
  8090. "malloc.$ac_objext" | \
  8091. *" malloc.$ac_objext" | \
  8092. "malloc.$ac_objext "* | \
  8093. *" malloc.$ac_objext "* ) ;;
  8094. *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
  8095. esac
  8096. cat >>confdefs.h <<\_ACEOF
  8097. #define malloc rpl_malloc
  8098. _ACEOF
  8099. fi
  8100. for ac_header in stdlib.h sys/time.h unistd.h
  8101. do
  8102. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8103. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8104. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8105. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8106. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8107. echo $ECHO_N "(cached) $ECHO_C" >&6
  8108. fi
  8109. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8110. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8111. else
  8112. # Is the header compilable?
  8113. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8114. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8115. cat >conftest.$ac_ext <<_ACEOF
  8116. /* confdefs.h. */
  8117. _ACEOF
  8118. cat confdefs.h >>conftest.$ac_ext
  8119. cat >>conftest.$ac_ext <<_ACEOF
  8120. /* end confdefs.h. */
  8121. $ac_includes_default
  8122. #include <$ac_header>
  8123. _ACEOF
  8124. rm -f conftest.$ac_objext
  8125. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8126. (eval $ac_compile) 2>conftest.er1
  8127. ac_status=$?
  8128. grep -v '^ *+' conftest.er1 >conftest.err
  8129. rm -f conftest.er1
  8130. cat conftest.err >&5
  8131. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8132. (exit $ac_status); } &&
  8133. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  8134. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8135. (eval $ac_try) 2>&5
  8136. ac_status=$?
  8137. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8138. (exit $ac_status); }; } &&
  8139. { ac_try='test -s conftest.$ac_objext'
  8140. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8141. (eval $ac_try) 2>&5
  8142. ac_status=$?
  8143. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8144. (exit $ac_status); }; }; then
  8145. ac_header_compiler=yes
  8146. else
  8147. echo "$as_me: failed program was:" >&5
  8148. sed 's/^/| /' conftest.$ac_ext >&5
  8149. ac_header_compiler=no
  8150. fi
  8151. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8152. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8153. echo "${ECHO_T}$ac_header_compiler" >&6
  8154. # Is the header present?
  8155. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8156. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8157. cat >conftest.$ac_ext <<_ACEOF
  8158. /* confdefs.h. */
  8159. _ACEOF
  8160. cat confdefs.h >>conftest.$ac_ext
  8161. cat >>conftest.$ac_ext <<_ACEOF
  8162. /* end confdefs.h. */
  8163. #include <$ac_header>
  8164. _ACEOF
  8165. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8166. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8167. ac_status=$?
  8168. grep -v '^ *+' conftest.er1 >conftest.err
  8169. rm -f conftest.er1
  8170. cat conftest.err >&5
  8171. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8172. (exit $ac_status); } >/dev/null; then
  8173. if test -s conftest.err; then
  8174. ac_cpp_err=$ac_cxx_preproc_warn_flag
  8175. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  8176. else
  8177. ac_cpp_err=
  8178. fi
  8179. else
  8180. ac_cpp_err=yes
  8181. fi
  8182. if test -z "$ac_cpp_err"; then
  8183. ac_header_preproc=yes
  8184. else
  8185. echo "$as_me: failed program was:" >&5
  8186. sed 's/^/| /' conftest.$ac_ext >&5
  8187. ac_header_preproc=no
  8188. fi
  8189. rm -f conftest.err conftest.$ac_ext
  8190. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8191. echo "${ECHO_T}$ac_header_preproc" >&6
  8192. # So? What about this header?
  8193. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  8194. yes:no: )
  8195. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8196. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8197. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8198. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8199. ac_header_preproc=yes
  8200. ;;
  8201. no:yes:* )
  8202. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8203. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8204. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8205. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8206. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8207. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8208. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8209. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8210. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8211. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8212. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8213. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8214. (
  8215. cat <<\_ASBOX
  8216. ## ------------------------------------------ ##
  8217. ## Report this to the AC_PACKAGE_NAME lists. ##
  8218. ## ------------------------------------------ ##
  8219. _ASBOX
  8220. ) |
  8221. sed "s/^/$as_me: WARNING: /" >&2
  8222. ;;
  8223. esac
  8224. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8225. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8226. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8227. echo $ECHO_N "(cached) $ECHO_C" >&6
  8228. else
  8229. eval "$as_ac_Header=\$ac_header_preproc"
  8230. fi
  8231. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8232. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8233. fi
  8234. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8235. cat >>confdefs.h <<_ACEOF
  8236. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8237. _ACEOF
  8238. fi
  8239. done
  8240. for ac_func in alarm
  8241. do
  8242. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8243. echo "$as_me:$LINENO: checking for $ac_func" >&5
  8244. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  8245. if eval "test \"\${$as_ac_var+set}\" = set"; then
  8246. echo $ECHO_N "(cached) $ECHO_C" >&6
  8247. else
  8248. cat >conftest.$ac_ext <<_ACEOF
  8249. /* confdefs.h. */
  8250. _ACEOF
  8251. cat confdefs.h >>conftest.$ac_ext
  8252. cat >>conftest.$ac_ext <<_ACEOF
  8253. /* end confdefs.h. */
  8254. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8255. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8256. #define $ac_func innocuous_$ac_func
  8257. /* System header to define __stub macros and hopefully few prototypes,
  8258. which can conflict with char $ac_func (); below.
  8259. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8260. <limits.h> exists even on freestanding compilers. */
  8261. #ifdef __STDC__
  8262. # include <limits.h>
  8263. #else
  8264. # include <assert.h>
  8265. #endif
  8266. #undef $ac_func
  8267. /* Override any gcc2 internal prototype to avoid an error. */
  8268. #ifdef __cplusplus
  8269. extern "C"
  8270. {
  8271. #endif
  8272. /* We use char because int might match the return type of a gcc2
  8273. builtin and then its argument prototype would still apply. */
  8274. char $ac_func ();
  8275. /* The GNU C library defines this for functions which it implements
  8276. to always fail with ENOSYS. Some functions are actually named
  8277. something starting with __ and the normal name is an alias. */
  8278. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  8279. choke me
  8280. #else
  8281. char (*f) () = $ac_func;
  8282. #endif
  8283. #ifdef __cplusplus
  8284. }
  8285. #endif
  8286. int
  8287. main ()
  8288. {
  8289. return f != $ac_func;
  8290. ;
  8291. return 0;
  8292. }
  8293. _ACEOF
  8294. rm -f conftest.$ac_objext conftest$ac_exeext
  8295. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8296. (eval $ac_link) 2>conftest.er1
  8297. ac_status=$?
  8298. grep -v '^ *+' conftest.er1 >conftest.err
  8299. rm -f conftest.er1
  8300. cat conftest.err >&5
  8301. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8302. (exit $ac_status); } &&
  8303. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  8304. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8305. (eval $ac_try) 2>&5
  8306. ac_status=$?
  8307. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8308. (exit $ac_status); }; } &&
  8309. { ac_try='test -s conftest$ac_exeext'
  8310. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8311. (eval $ac_try) 2>&5
  8312. ac_status=$?
  8313. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8314. (exit $ac_status); }; }; then
  8315. eval "$as_ac_var=yes"
  8316. else
  8317. echo "$as_me: failed program was:" >&5
  8318. sed 's/^/| /' conftest.$ac_ext >&5
  8319. eval "$as_ac_var=no"
  8320. fi
  8321. rm -f conftest.err conftest.$ac_objext \
  8322. conftest$ac_exeext conftest.$ac_ext
  8323. fi
  8324. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  8325. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  8326. if test `eval echo '${'$as_ac_var'}'` = yes; then
  8327. cat >>confdefs.h <<_ACEOF
  8328. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8329. _ACEOF
  8330. fi
  8331. done
  8332. echo "$as_me:$LINENO: checking for working mktime" >&5
  8333. echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
  8334. if test "${ac_cv_func_working_mktime+set}" = set; then
  8335. echo $ECHO_N "(cached) $ECHO_C" >&6
  8336. else
  8337. if test "$cross_compiling" = yes; then
  8338. ac_cv_func_working_mktime=no
  8339. else
  8340. cat >conftest.$ac_ext <<_ACEOF
  8341. /* confdefs.h. */
  8342. _ACEOF
  8343. cat confdefs.h >>conftest.$ac_ext
  8344. cat >>conftest.$ac_ext <<_ACEOF
  8345. /* end confdefs.h. */
  8346. /* Test program from Paul Eggert and Tony Leneis. */
  8347. #if TIME_WITH_SYS_TIME
  8348. # include <sys/time.h>
  8349. # include <time.h>
  8350. #else
  8351. # if HAVE_SYS_TIME_H
  8352. # include <sys/time.h>
  8353. # else
  8354. # include <time.h>
  8355. # endif
  8356. #endif
  8357. #if HAVE_STDLIB_H
  8358. # include <stdlib.h>
  8359. #endif
  8360. #if HAVE_UNISTD_H
  8361. # include <unistd.h>
  8362. #endif
  8363. #if !HAVE_ALARM
  8364. # define alarm(X) /* empty */
  8365. #endif
  8366. /* Work around redefinition to rpl_putenv by other config tests. */
  8367. #undef putenv
  8368. static time_t time_t_max;
  8369. static time_t time_t_min;
  8370. /* Values we'll use to set the TZ environment variable. */
  8371. static char *tz_strings[] = {
  8372. (char *) 0, "TZ=GMT0", "TZ=JST-9",
  8373. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  8374. };
  8375. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  8376. /* Fail if mktime fails to convert a date in the spring-forward gap.
  8377. Based on a problem report from Andreas Jaeger. */
  8378. static void
  8379. spring_forward_gap ()
  8380. {
  8381. /* glibc (up to about 1998-10-07) failed this test. */
  8382. struct tm tm;
  8383. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  8384. instead of "TZ=America/Vancouver" in order to detect the bug even
  8385. on systems that don't support the Olson extension, or don't have the
  8386. full zoneinfo tables installed. */
  8387. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  8388. tm.tm_year = 98;
  8389. tm.tm_mon = 3;
  8390. tm.tm_mday = 5;
  8391. tm.tm_hour = 2;
  8392. tm.tm_min = 0;
  8393. tm.tm_sec = 0;
  8394. tm.tm_isdst = -1;
  8395. if (mktime (&tm) == (time_t)-1)
  8396. exit (1);
  8397. }
  8398. static void
  8399. mktime_test1 (now)
  8400. time_t now;
  8401. {
  8402. struct tm *lt;
  8403. if ((lt = localtime (&now)) && mktime (lt) != now)
  8404. exit (1);
  8405. }
  8406. static void
  8407. mktime_test (now)
  8408. time_t now;
  8409. {
  8410. mktime_test1 (now);
  8411. mktime_test1 ((time_t) (time_t_max - now));
  8412. mktime_test1 ((time_t) (time_t_min + now));
  8413. }
  8414. static void
  8415. irix_6_4_bug ()
  8416. {
  8417. /* Based on code from Ariel Faigon. */
  8418. struct tm tm;
  8419. tm.tm_year = 96;
  8420. tm.tm_mon = 3;
  8421. tm.tm_mday = 0;
  8422. tm.tm_hour = 0;
  8423. tm.tm_min = 0;
  8424. tm.tm_sec = 0;
  8425. tm.tm_isdst = -1;
  8426. mktime (&tm);
  8427. if (tm.tm_mon != 2 || tm.tm_mday != 31)
  8428. exit (1);
  8429. }
  8430. static void
  8431. bigtime_test (j)
  8432. int j;
  8433. {
  8434. struct tm tm;
  8435. time_t now;
  8436. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  8437. now = mktime (&tm);
  8438. if (now != (time_t) -1)
  8439. {
  8440. struct tm *lt = localtime (&now);
  8441. if (! (lt
  8442. && lt->tm_year == tm.tm_year
  8443. && lt->tm_mon == tm.tm_mon
  8444. && lt->tm_mday == tm.tm_mday
  8445. && lt->tm_hour == tm.tm_hour
  8446. && lt->tm_min == tm.tm_min
  8447. && lt->tm_sec == tm.tm_sec
  8448. && lt->tm_yday == tm.tm_yday
  8449. && lt->tm_wday == tm.tm_wday
  8450. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  8451. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  8452. exit (1);
  8453. }
  8454. }
  8455. int
  8456. main ()
  8457. {
  8458. time_t t, delta;
  8459. int i, j;
  8460. /* This test makes some buggy mktime implementations loop.
  8461. Give up after 60 seconds; a mktime slower than that
  8462. isn't worth using anyway. */
  8463. alarm (60);
  8464. for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
  8465. continue;
  8466. time_t_max--;
  8467. if ((time_t) -1 < 0)
  8468. for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
  8469. continue;
  8470. delta = time_t_max / 997; /* a suitable prime number */
  8471. for (i = 0; i < N_STRINGS; i++)
  8472. {
  8473. if (tz_strings[i])
  8474. putenv (tz_strings[i]);
  8475. for (t = 0; t <= time_t_max - delta; t += delta)
  8476. mktime_test (t);
  8477. mktime_test ((time_t) 1);
  8478. mktime_test ((time_t) (60 * 60));
  8479. mktime_test ((time_t) (60 * 60 * 24));
  8480. for (j = 1; 0 < j; j *= 2)
  8481. bigtime_test (j);
  8482. bigtime_test (j - 1);
  8483. }
  8484. irix_6_4_bug ();
  8485. spring_forward_gap ();
  8486. exit (0);
  8487. }
  8488. _ACEOF
  8489. rm -f conftest$ac_exeext
  8490. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8491. (eval $ac_link) 2>&5
  8492. ac_status=$?
  8493. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8494. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8495. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8496. (eval $ac_try) 2>&5
  8497. ac_status=$?
  8498. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8499. (exit $ac_status); }; }; then
  8500. ac_cv_func_working_mktime=yes
  8501. else
  8502. echo "$as_me: program exited with status $ac_status" >&5
  8503. echo "$as_me: failed program was:" >&5
  8504. sed 's/^/| /' conftest.$ac_ext >&5
  8505. ( exit $ac_status )
  8506. ac_cv_func_working_mktime=no
  8507. fi
  8508. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8509. fi
  8510. fi
  8511. echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
  8512. echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
  8513. if test $ac_cv_func_working_mktime = no; then
  8514. case $LIBOBJS in
  8515. "mktime.$ac_objext" | \
  8516. *" mktime.$ac_objext" | \
  8517. "mktime.$ac_objext "* | \
  8518. *" mktime.$ac_objext "* ) ;;
  8519. *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
  8520. esac
  8521. fi
  8522. for ac_header in stdlib.h unistd.h
  8523. do
  8524. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8525. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8526. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8527. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8528. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8529. echo $ECHO_N "(cached) $ECHO_C" >&6
  8530. fi
  8531. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8532. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8533. else
  8534. # Is the header compilable?
  8535. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8536. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8537. cat >conftest.$ac_ext <<_ACEOF
  8538. /* confdefs.h. */
  8539. _ACEOF
  8540. cat confdefs.h >>conftest.$ac_ext
  8541. cat >>conftest.$ac_ext <<_ACEOF
  8542. /* end confdefs.h. */
  8543. $ac_includes_default
  8544. #include <$ac_header>
  8545. _ACEOF
  8546. rm -f conftest.$ac_objext
  8547. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8548. (eval $ac_compile) 2>conftest.er1
  8549. ac_status=$?
  8550. grep -v '^ *+' conftest.er1 >conftest.err
  8551. rm -f conftest.er1
  8552. cat conftest.err >&5
  8553. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8554. (exit $ac_status); } &&
  8555. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  8556. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8557. (eval $ac_try) 2>&5
  8558. ac_status=$?
  8559. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8560. (exit $ac_status); }; } &&
  8561. { ac_try='test -s conftest.$ac_objext'
  8562. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8563. (eval $ac_try) 2>&5
  8564. ac_status=$?
  8565. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8566. (exit $ac_status); }; }; then
  8567. ac_header_compiler=yes
  8568. else
  8569. echo "$as_me: failed program was:" >&5
  8570. sed 's/^/| /' conftest.$ac_ext >&5
  8571. ac_header_compiler=no
  8572. fi
  8573. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8574. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8575. echo "${ECHO_T}$ac_header_compiler" >&6
  8576. # Is the header present?
  8577. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8578. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8579. cat >conftest.$ac_ext <<_ACEOF
  8580. /* confdefs.h. */
  8581. _ACEOF
  8582. cat confdefs.h >>conftest.$ac_ext
  8583. cat >>conftest.$ac_ext <<_ACEOF
  8584. /* end confdefs.h. */
  8585. #include <$ac_header>
  8586. _ACEOF
  8587. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8588. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8589. ac_status=$?
  8590. grep -v '^ *+' conftest.er1 >conftest.err
  8591. rm -f conftest.er1
  8592. cat conftest.err >&5
  8593. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8594. (exit $ac_status); } >/dev/null; then
  8595. if test -s conftest.err; then
  8596. ac_cpp_err=$ac_cxx_preproc_warn_flag
  8597. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  8598. else
  8599. ac_cpp_err=
  8600. fi
  8601. else
  8602. ac_cpp_err=yes
  8603. fi
  8604. if test -z "$ac_cpp_err"; then
  8605. ac_header_preproc=yes
  8606. else
  8607. echo "$as_me: failed program was:" >&5
  8608. sed 's/^/| /' conftest.$ac_ext >&5
  8609. ac_header_preproc=no
  8610. fi
  8611. rm -f conftest.err conftest.$ac_ext
  8612. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8613. echo "${ECHO_T}$ac_header_preproc" >&6
  8614. # So? What about this header?
  8615. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  8616. yes:no: )
  8617. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8618. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8619. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8620. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8621. ac_header_preproc=yes
  8622. ;;
  8623. no:yes:* )
  8624. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8625. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8626. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8627. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8628. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8629. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8630. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8631. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8632. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8633. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8634. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8635. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8636. (
  8637. cat <<\_ASBOX
  8638. ## ------------------------------------------ ##
  8639. ## Report this to the AC_PACKAGE_NAME lists. ##
  8640. ## ------------------------------------------ ##
  8641. _ASBOX
  8642. ) |
  8643. sed "s/^/$as_me: WARNING: /" >&2
  8644. ;;
  8645. esac
  8646. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8647. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8648. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8649. echo $ECHO_N "(cached) $ECHO_C" >&6
  8650. else
  8651. eval "$as_ac_Header=\$ac_header_preproc"
  8652. fi
  8653. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8654. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8655. fi
  8656. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8657. cat >>confdefs.h <<_ACEOF
  8658. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8659. _ACEOF
  8660. fi
  8661. done
  8662. for ac_func in getpagesize
  8663. do
  8664. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8665. echo "$as_me:$LINENO: checking for $ac_func" >&5
  8666. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  8667. if eval "test \"\${$as_ac_var+set}\" = set"; then
  8668. echo $ECHO_N "(cached) $ECHO_C" >&6
  8669. else
  8670. cat >conftest.$ac_ext <<_ACEOF
  8671. /* confdefs.h. */
  8672. _ACEOF
  8673. cat confdefs.h >>conftest.$ac_ext
  8674. cat >>conftest.$ac_ext <<_ACEOF
  8675. /* end confdefs.h. */
  8676. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8677. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8678. #define $ac_func innocuous_$ac_func
  8679. /* System header to define __stub macros and hopefully few prototypes,
  8680. which can conflict with char $ac_func (); below.
  8681. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8682. <limits.h> exists even on freestanding compilers. */
  8683. #ifdef __STDC__
  8684. # include <limits.h>
  8685. #else
  8686. # include <assert.h>
  8687. #endif
  8688. #undef $ac_func
  8689. /* Override any gcc2 internal prototype to avoid an error. */
  8690. #ifdef __cplusplus
  8691. extern "C"
  8692. {
  8693. #endif
  8694. /* We use char because int might match the return type of a gcc2
  8695. builtin and then its argument prototype would still apply. */
  8696. char $ac_func ();
  8697. /* The GNU C library defines this for functions which it implements
  8698. to always fail with ENOSYS. Some functions are actually named
  8699. something starting with __ and the normal name is an alias. */
  8700. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  8701. choke me
  8702. #else
  8703. char (*f) () = $ac_func;
  8704. #endif
  8705. #ifdef __cplusplus
  8706. }
  8707. #endif
  8708. int
  8709. main ()
  8710. {
  8711. return f != $ac_func;
  8712. ;
  8713. return 0;
  8714. }
  8715. _ACEOF
  8716. rm -f conftest.$ac_objext conftest$ac_exeext
  8717. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8718. (eval $ac_link) 2>conftest.er1
  8719. ac_status=$?
  8720. grep -v '^ *+' conftest.er1 >conftest.err
  8721. rm -f conftest.er1
  8722. cat conftest.err >&5
  8723. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8724. (exit $ac_status); } &&
  8725. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  8726. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8727. (eval $ac_try) 2>&5
  8728. ac_status=$?
  8729. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8730. (exit $ac_status); }; } &&
  8731. { ac_try='test -s conftest$ac_exeext'
  8732. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8733. (eval $ac_try) 2>&5
  8734. ac_status=$?
  8735. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8736. (exit $ac_status); }; }; then
  8737. eval "$as_ac_var=yes"
  8738. else
  8739. echo "$as_me: failed program was:" >&5
  8740. sed 's/^/| /' conftest.$ac_ext >&5
  8741. eval "$as_ac_var=no"
  8742. fi
  8743. rm -f conftest.err conftest.$ac_objext \
  8744. conftest$ac_exeext conftest.$ac_ext
  8745. fi
  8746. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  8747. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  8748. if test `eval echo '${'$as_ac_var'}'` = yes; then
  8749. cat >>confdefs.h <<_ACEOF
  8750. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8751. _ACEOF
  8752. fi
  8753. done
  8754. echo "$as_me:$LINENO: checking for working mmap" >&5
  8755. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
  8756. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  8757. echo $ECHO_N "(cached) $ECHO_C" >&6
  8758. else
  8759. if test "$cross_compiling" = yes; then
  8760. ac_cv_func_mmap_fixed_mapped=no
  8761. else
  8762. cat >conftest.$ac_ext <<_ACEOF
  8763. /* confdefs.h. */
  8764. _ACEOF
  8765. cat confdefs.h >>conftest.$ac_ext
  8766. cat >>conftest.$ac_ext <<_ACEOF
  8767. /* end confdefs.h. */
  8768. $ac_includes_default
  8769. /* malloc might have been renamed as rpl_malloc. */
  8770. #undef malloc
  8771. /* Thanks to Mike Haertel and Jim Avera for this test.
  8772. Here is a matrix of mmap possibilities:
  8773. mmap private not fixed
  8774. mmap private fixed at somewhere currently unmapped
  8775. mmap private fixed at somewhere already mapped
  8776. mmap shared not fixed
  8777. mmap shared fixed at somewhere currently unmapped
  8778. mmap shared fixed at somewhere already mapped
  8779. For private mappings, we should verify that changes cannot be read()
  8780. back from the file, nor mmap's back from the file at a different
  8781. address. (There have been systems where private was not correctly
  8782. implemented like the infamous i386 svr4.0, and systems where the
  8783. VM page cache was not coherent with the file system buffer cache
  8784. like early versions of FreeBSD and possibly contemporary NetBSD.)
  8785. For shared mappings, we should conversely verify that changes get
  8786. propagated back to all the places they're supposed to be.
  8787. Grep wants private fixed already mapped.
  8788. The main things grep needs to know about mmap are:
  8789. * does it exist and is it safe to write into the mmap'd area
  8790. * how to use it (BSD variants) */
  8791. #include <fcntl.h>
  8792. #include <sys/mman.h>
  8793. #if !STDC_HEADERS && !HAVE_STDLIB_H
  8794. char *malloc ();
  8795. #endif
  8796. /* This mess was copied from the GNU getpagesize.h. */
  8797. #if !HAVE_GETPAGESIZE
  8798. /* Assume that all systems that can run configure have sys/param.h. */
  8799. # if !HAVE_SYS_PARAM_H
  8800. # define HAVE_SYS_PARAM_H 1
  8801. # endif
  8802. # ifdef _SC_PAGESIZE
  8803. # define getpagesize() sysconf(_SC_PAGESIZE)
  8804. # else /* no _SC_PAGESIZE */
  8805. # if HAVE_SYS_PARAM_H
  8806. # include <sys/param.h>
  8807. # ifdef EXEC_PAGESIZE
  8808. # define getpagesize() EXEC_PAGESIZE
  8809. # else /* no EXEC_PAGESIZE */
  8810. # ifdef NBPG
  8811. # define getpagesize() NBPG * CLSIZE
  8812. # ifndef CLSIZE
  8813. # define CLSIZE 1
  8814. # endif /* no CLSIZE */
  8815. # else /* no NBPG */
  8816. # ifdef NBPC
  8817. # define getpagesize() NBPC
  8818. # else /* no NBPC */
  8819. # ifdef PAGESIZE
  8820. # define getpagesize() PAGESIZE
  8821. # endif /* PAGESIZE */
  8822. # endif /* no NBPC */
  8823. # endif /* no NBPG */
  8824. # endif /* no EXEC_PAGESIZE */
  8825. # else /* no HAVE_SYS_PARAM_H */
  8826. # define getpagesize() 8192 /* punt totally */
  8827. # endif /* no HAVE_SYS_PARAM_H */
  8828. # endif /* no _SC_PAGESIZE */
  8829. #endif /* no HAVE_GETPAGESIZE */
  8830. int
  8831. main ()
  8832. {
  8833. char *data, *data2, *data3;
  8834. int i, pagesize;
  8835. int fd;
  8836. pagesize = getpagesize ();
  8837. /* First, make a file with some known garbage in it. */
  8838. data = (char *) malloc (pagesize);
  8839. if (!data)
  8840. exit (1);
  8841. for (i = 0; i < pagesize; ++i)
  8842. *(data + i) = rand ();
  8843. umask (0);
  8844. fd = creat ("conftest.mmap", 0600);
  8845. if (fd < 0)
  8846. exit (1);
  8847. if (write (fd, data, pagesize) != pagesize)
  8848. exit (1);
  8849. close (fd);
  8850. /* Next, try to mmap the file at a fixed address which already has
  8851. something else allocated at it. If we can, also make sure that
  8852. we see the same garbage. */
  8853. fd = open ("conftest.mmap", O_RDWR);
  8854. if (fd < 0)
  8855. exit (1);
  8856. data2 = (char *) malloc (2 * pagesize);
  8857. if (!data2)
  8858. exit (1);
  8859. data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
  8860. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  8861. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  8862. exit (1);
  8863. for (i = 0; i < pagesize; ++i)
  8864. if (*(data + i) != *(data2 + i))
  8865. exit (1);
  8866. /* Finally, make sure that changes to the mapped area do not
  8867. percolate back to the file as seen by read(). (This is a bug on
  8868. some variants of i386 svr4.0.) */
  8869. for (i = 0; i < pagesize; ++i)
  8870. *(data2 + i) = *(data2 + i) + 1;
  8871. data3 = (char *) malloc (pagesize);
  8872. if (!data3)
  8873. exit (1);
  8874. if (read (fd, data3, pagesize) != pagesize)
  8875. exit (1);
  8876. for (i = 0; i < pagesize; ++i)
  8877. if (*(data + i) != *(data3 + i))
  8878. exit (1);
  8879. close (fd);
  8880. exit (0);
  8881. }
  8882. _ACEOF
  8883. rm -f conftest$ac_exeext
  8884. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8885. (eval $ac_link) 2>&5
  8886. ac_status=$?
  8887. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8888. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8889. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8890. (eval $ac_try) 2>&5
  8891. ac_status=$?
  8892. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8893. (exit $ac_status); }; }; then
  8894. ac_cv_func_mmap_fixed_mapped=yes
  8895. else
  8896. echo "$as_me: program exited with status $ac_status" >&5
  8897. echo "$as_me: failed program was:" >&5
  8898. sed 's/^/| /' conftest.$ac_ext >&5
  8899. ( exit $ac_status )
  8900. ac_cv_func_mmap_fixed_mapped=no
  8901. fi
  8902. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8903. fi
  8904. fi
  8905. echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  8906. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
  8907. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  8908. cat >>confdefs.h <<\_ACEOF
  8909. #define HAVE_MMAP 1
  8910. _ACEOF
  8911. fi
  8912. rm -f conftest.mmap
  8913. for ac_header in stdlib.h
  8914. do
  8915. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8916. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8917. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8918. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8919. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8920. echo $ECHO_N "(cached) $ECHO_C" >&6
  8921. fi
  8922. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8923. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8924. else
  8925. # Is the header compilable?
  8926. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8927. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8928. cat >conftest.$ac_ext <<_ACEOF
  8929. /* confdefs.h. */
  8930. _ACEOF
  8931. cat confdefs.h >>conftest.$ac_ext
  8932. cat >>conftest.$ac_ext <<_ACEOF
  8933. /* end confdefs.h. */
  8934. $ac_includes_default
  8935. #include <$ac_header>
  8936. _ACEOF
  8937. rm -f conftest.$ac_objext
  8938. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8939. (eval $ac_compile) 2>conftest.er1
  8940. ac_status=$?
  8941. grep -v '^ *+' conftest.er1 >conftest.err
  8942. rm -f conftest.er1
  8943. cat conftest.err >&5
  8944. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8945. (exit $ac_status); } &&
  8946. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  8947. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8948. (eval $ac_try) 2>&5
  8949. ac_status=$?
  8950. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8951. (exit $ac_status); }; } &&
  8952. { ac_try='test -s conftest.$ac_objext'
  8953. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8954. (eval $ac_try) 2>&5
  8955. ac_status=$?
  8956. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8957. (exit $ac_status); }; }; then
  8958. ac_header_compiler=yes
  8959. else
  8960. echo "$as_me: failed program was:" >&5
  8961. sed 's/^/| /' conftest.$ac_ext >&5
  8962. ac_header_compiler=no
  8963. fi
  8964. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8965. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8966. echo "${ECHO_T}$ac_header_compiler" >&6
  8967. # Is the header present?
  8968. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8969. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8970. cat >conftest.$ac_ext <<_ACEOF
  8971. /* confdefs.h. */
  8972. _ACEOF
  8973. cat confdefs.h >>conftest.$ac_ext
  8974. cat >>conftest.$ac_ext <<_ACEOF
  8975. /* end confdefs.h. */
  8976. #include <$ac_header>
  8977. _ACEOF
  8978. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8979. (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
  8986. if test -s conftest.err; then
  8987. ac_cpp_err=$ac_cxx_preproc_warn_flag
  8988. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  8989. else
  8990. ac_cpp_err=
  8991. fi
  8992. else
  8993. ac_cpp_err=yes
  8994. fi
  8995. if test -z "$ac_cpp_err"; then
  8996. ac_header_preproc=yes
  8997. else
  8998. echo "$as_me: failed program was:" >&5
  8999. sed 's/^/| /' conftest.$ac_ext >&5
  9000. ac_header_preproc=no
  9001. fi
  9002. rm -f conftest.err conftest.$ac_ext
  9003. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9004. echo "${ECHO_T}$ac_header_preproc" >&6
  9005. # So? What about this header?
  9006. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  9007. yes:no: )
  9008. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9009. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9010. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9011. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9012. ac_header_preproc=yes
  9013. ;;
  9014. no:yes:* )
  9015. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9016. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9017. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9018. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9019. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9020. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9021. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9022. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9023. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9024. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9025. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9026. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9027. (
  9028. cat <<\_ASBOX
  9029. ## ------------------------------------------ ##
  9030. ## Report this to the AC_PACKAGE_NAME lists. ##
  9031. ## ------------------------------------------ ##
  9032. _ASBOX
  9033. ) |
  9034. sed "s/^/$as_me: WARNING: /" >&2
  9035. ;;
  9036. esac
  9037. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9038. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9039. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9040. echo $ECHO_N "(cached) $ECHO_C" >&6
  9041. else
  9042. eval "$as_ac_Header=\$ac_header_preproc"
  9043. fi
  9044. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9045. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9046. fi
  9047. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9048. cat >>confdefs.h <<_ACEOF
  9049. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9050. _ACEOF
  9051. fi
  9052. done
  9053. echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
  9054. echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
  9055. if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
  9056. echo $ECHO_N "(cached) $ECHO_C" >&6
  9057. else
  9058. if test "$cross_compiling" = yes; then
  9059. ac_cv_func_realloc_0_nonnull=no
  9060. else
  9061. cat >conftest.$ac_ext <<_ACEOF
  9062. /* confdefs.h. */
  9063. _ACEOF
  9064. cat confdefs.h >>conftest.$ac_ext
  9065. cat >>conftest.$ac_ext <<_ACEOF
  9066. /* end confdefs.h. */
  9067. #if STDC_HEADERS || HAVE_STDLIB_H
  9068. # include <stdlib.h>
  9069. #else
  9070. char *realloc ();
  9071. #endif
  9072. int
  9073. main ()
  9074. {
  9075. exit (realloc (0, 0) ? 0 : 1);
  9076. ;
  9077. return 0;
  9078. }
  9079. _ACEOF
  9080. rm -f conftest$ac_exeext
  9081. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9082. (eval $ac_link) 2>&5
  9083. ac_status=$?
  9084. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9085. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9086. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9087. (eval $ac_try) 2>&5
  9088. ac_status=$?
  9089. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9090. (exit $ac_status); }; }; then
  9091. ac_cv_func_realloc_0_nonnull=yes
  9092. else
  9093. echo "$as_me: program exited with status $ac_status" >&5
  9094. echo "$as_me: failed program was:" >&5
  9095. sed 's/^/| /' conftest.$ac_ext >&5
  9096. ( exit $ac_status )
  9097. ac_cv_func_realloc_0_nonnull=no
  9098. fi
  9099. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9100. fi
  9101. fi
  9102. echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
  9103. echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
  9104. if test $ac_cv_func_realloc_0_nonnull = yes; then
  9105. cat >>confdefs.h <<\_ACEOF
  9106. #define HAVE_REALLOC 1
  9107. _ACEOF
  9108. else
  9109. cat >>confdefs.h <<\_ACEOF
  9110. #define HAVE_REALLOC 0
  9111. _ACEOF
  9112. case $LIBOBJS in
  9113. "realloc.$ac_objext" | \
  9114. *" realloc.$ac_objext" | \
  9115. "realloc.$ac_objext "* | \
  9116. *" realloc.$ac_objext "* ) ;;
  9117. *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
  9118. esac
  9119. cat >>confdefs.h <<\_ACEOF
  9120. #define realloc rpl_realloc
  9121. _ACEOF
  9122. fi
  9123. echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  9124. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
  9125. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  9126. echo $ECHO_N "(cached) $ECHO_C" >&6
  9127. else
  9128. if test "$cross_compiling" = yes; then
  9129. ac_cv_func_stat_empty_string_bug=yes
  9130. else
  9131. cat >conftest.$ac_ext <<_ACEOF
  9132. /* confdefs.h. */
  9133. _ACEOF
  9134. cat confdefs.h >>conftest.$ac_ext
  9135. cat >>conftest.$ac_ext <<_ACEOF
  9136. /* end confdefs.h. */
  9137. $ac_includes_default
  9138. int
  9139. main ()
  9140. {
  9141. struct stat sbuf;
  9142. exit (stat ("", &sbuf) ? 1 : 0);
  9143. ;
  9144. return 0;
  9145. }
  9146. _ACEOF
  9147. rm -f conftest$ac_exeext
  9148. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9149. (eval $ac_link) 2>&5
  9150. ac_status=$?
  9151. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9152. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9153. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9154. (eval $ac_try) 2>&5
  9155. ac_status=$?
  9156. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9157. (exit $ac_status); }; }; then
  9158. ac_cv_func_stat_empty_string_bug=yes
  9159. else
  9160. echo "$as_me: program exited with status $ac_status" >&5
  9161. echo "$as_me: failed program was:" >&5
  9162. sed 's/^/| /' conftest.$ac_ext >&5
  9163. ( exit $ac_status )
  9164. ac_cv_func_stat_empty_string_bug=no
  9165. fi
  9166. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9167. fi
  9168. fi
  9169. echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  9170. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
  9171. if test $ac_cv_func_stat_empty_string_bug = yes; then
  9172. case $LIBOBJS in
  9173. "stat.$ac_objext" | \
  9174. *" stat.$ac_objext" | \
  9175. "stat.$ac_objext "* | \
  9176. *" stat.$ac_objext "* ) ;;
  9177. *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
  9178. esac
  9179. cat >>confdefs.h <<_ACEOF
  9180. #define HAVE_STAT_EMPTY_STRING_BUG 1
  9181. _ACEOF
  9182. fi
  9183. echo "$as_me:$LINENO: checking for struct timespec" >&5
  9184. echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6
  9185. if test "${ac_cv_type_struct_timespec+set}" = set; then
  9186. echo $ECHO_N "(cached) $ECHO_C" >&6
  9187. else
  9188. cat >conftest.$ac_ext <<_ACEOF
  9189. /* confdefs.h. */
  9190. _ACEOF
  9191. cat confdefs.h >>conftest.$ac_ext
  9192. cat >>conftest.$ac_ext <<_ACEOF
  9193. /* end confdefs.h. */
  9194. #include <sys/types.h>
  9195. #include <sys/time.h>
  9196. #include <time.h>
  9197. int
  9198. main ()
  9199. {
  9200. if ((struct timespec *) 0)
  9201. return 0;
  9202. if (sizeof (struct timespec))
  9203. return 0;
  9204. ;
  9205. return 0;
  9206. }
  9207. _ACEOF
  9208. rm -f conftest.$ac_objext
  9209. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9210. (eval $ac_compile) 2>conftest.er1
  9211. ac_status=$?
  9212. grep -v '^ *+' conftest.er1 >conftest.err
  9213. rm -f conftest.er1
  9214. cat conftest.err >&5
  9215. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9216. (exit $ac_status); } &&
  9217. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  9218. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9219. (eval $ac_try) 2>&5
  9220. ac_status=$?
  9221. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9222. (exit $ac_status); }; } &&
  9223. { ac_try='test -s conftest.$ac_objext'
  9224. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9225. (eval $ac_try) 2>&5
  9226. ac_status=$?
  9227. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9228. (exit $ac_status); }; }; then
  9229. ac_cv_type_struct_timespec=yes
  9230. else
  9231. echo "$as_me: failed program was:" >&5
  9232. sed 's/^/| /' conftest.$ac_ext >&5
  9233. ac_cv_type_struct_timespec=no
  9234. fi
  9235. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9236. fi
  9237. echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5
  9238. echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6
  9239. if test $ac_cv_type_struct_timespec = yes; then
  9240. cat >>confdefs.h <<\_ACEOF
  9241. #define HAVE_TIMESPEC 1
  9242. _ACEOF
  9243. fi
  9244. if test X"$ac_cv_type_struct_timespec" != X"no"; then
  9245. echo "$as_me:$LINENO: checking for struct stat.st_mtim" >&5
  9246. echo $ECHO_N "checking for struct stat.st_mtim... $ECHO_C" >&6
  9247. if test "${ac_cv_member_struct_stat_st_mtim+set}" = set; then
  9248. echo $ECHO_N "(cached) $ECHO_C" >&6
  9249. else
  9250. cat >conftest.$ac_ext <<_ACEOF
  9251. /* confdefs.h. */
  9252. _ACEOF
  9253. cat confdefs.h >>conftest.$ac_ext
  9254. cat >>conftest.$ac_ext <<_ACEOF
  9255. /* end confdefs.h. */
  9256. $ac_includes_default
  9257. int
  9258. main ()
  9259. {
  9260. static struct stat ac_aggr;
  9261. if (ac_aggr.st_mtim)
  9262. return 0;
  9263. ;
  9264. return 0;
  9265. }
  9266. _ACEOF
  9267. rm -f conftest.$ac_objext
  9268. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9269. (eval $ac_compile) 2>conftest.er1
  9270. ac_status=$?
  9271. grep -v '^ *+' conftest.er1 >conftest.err
  9272. rm -f conftest.er1
  9273. cat conftest.err >&5
  9274. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9275. (exit $ac_status); } &&
  9276. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  9277. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9278. (eval $ac_try) 2>&5
  9279. ac_status=$?
  9280. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9281. (exit $ac_status); }; } &&
  9282. { ac_try='test -s conftest.$ac_objext'
  9283. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9284. (eval $ac_try) 2>&5
  9285. ac_status=$?
  9286. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9287. (exit $ac_status); }; }; then
  9288. ac_cv_member_struct_stat_st_mtim=yes
  9289. else
  9290. echo "$as_me: failed program was:" >&5
  9291. sed 's/^/| /' conftest.$ac_ext >&5
  9292. cat >conftest.$ac_ext <<_ACEOF
  9293. /* confdefs.h. */
  9294. _ACEOF
  9295. cat confdefs.h >>conftest.$ac_ext
  9296. cat >>conftest.$ac_ext <<_ACEOF
  9297. /* end confdefs.h. */
  9298. $ac_includes_default
  9299. int
  9300. main ()
  9301. {
  9302. static struct stat ac_aggr;
  9303. if (sizeof ac_aggr.st_mtim)
  9304. return 0;
  9305. ;
  9306. return 0;
  9307. }
  9308. _ACEOF
  9309. rm -f conftest.$ac_objext
  9310. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9311. (eval $ac_compile) 2>conftest.er1
  9312. ac_status=$?
  9313. grep -v '^ *+' conftest.er1 >conftest.err
  9314. rm -f conftest.er1
  9315. cat conftest.err >&5
  9316. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9317. (exit $ac_status); } &&
  9318. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  9319. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9320. (eval $ac_try) 2>&5
  9321. ac_status=$?
  9322. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9323. (exit $ac_status); }; } &&
  9324. { ac_try='test -s conftest.$ac_objext'
  9325. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9326. (eval $ac_try) 2>&5
  9327. ac_status=$?
  9328. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9329. (exit $ac_status); }; }; then
  9330. ac_cv_member_struct_stat_st_mtim=yes
  9331. else
  9332. echo "$as_me: failed program was:" >&5
  9333. sed 's/^/| /' conftest.$ac_ext >&5
  9334. ac_cv_member_struct_stat_st_mtim=no
  9335. fi
  9336. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9337. fi
  9338. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9339. fi
  9340. echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtim" >&5
  9341. echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtim" >&6
  9342. if test $ac_cv_member_struct_stat_st_mtim = yes; then
  9343. cat >>confdefs.h <<\_ACEOF
  9344. #define HAVE_ST_MTIM 1
  9345. _ACEOF
  9346. else
  9347. echo "$as_me:$LINENO: checking for struct stat.st_mtimespec" >&5
  9348. echo $ECHO_N "checking for struct stat.st_mtimespec... $ECHO_C" >&6
  9349. if test "${ac_cv_member_struct_stat_st_mtimespec+set}" = set; then
  9350. echo $ECHO_N "(cached) $ECHO_C" >&6
  9351. else
  9352. cat >conftest.$ac_ext <<_ACEOF
  9353. /* confdefs.h. */
  9354. _ACEOF
  9355. cat confdefs.h >>conftest.$ac_ext
  9356. cat >>conftest.$ac_ext <<_ACEOF
  9357. /* end confdefs.h. */
  9358. $ac_includes_default
  9359. int
  9360. main ()
  9361. {
  9362. static struct stat ac_aggr;
  9363. if (ac_aggr.st_mtimespec)
  9364. return 0;
  9365. ;
  9366. return 0;
  9367. }
  9368. _ACEOF
  9369. rm -f conftest.$ac_objext
  9370. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9371. (eval $ac_compile) 2>conftest.er1
  9372. ac_status=$?
  9373. grep -v '^ *+' conftest.er1 >conftest.err
  9374. rm -f conftest.er1
  9375. cat conftest.err >&5
  9376. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9377. (exit $ac_status); } &&
  9378. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  9379. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9380. (eval $ac_try) 2>&5
  9381. ac_status=$?
  9382. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9383. (exit $ac_status); }; } &&
  9384. { ac_try='test -s conftest.$ac_objext'
  9385. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9386. (eval $ac_try) 2>&5
  9387. ac_status=$?
  9388. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9389. (exit $ac_status); }; }; then
  9390. ac_cv_member_struct_stat_st_mtimespec=yes
  9391. else
  9392. echo "$as_me: failed program was:" >&5
  9393. sed 's/^/| /' conftest.$ac_ext >&5
  9394. cat >conftest.$ac_ext <<_ACEOF
  9395. /* confdefs.h. */
  9396. _ACEOF
  9397. cat confdefs.h >>conftest.$ac_ext
  9398. cat >>conftest.$ac_ext <<_ACEOF
  9399. /* end confdefs.h. */
  9400. $ac_includes_default
  9401. int
  9402. main ()
  9403. {
  9404. static struct stat ac_aggr;
  9405. if (sizeof ac_aggr.st_mtimespec)
  9406. return 0;
  9407. ;
  9408. return 0;
  9409. }
  9410. _ACEOF
  9411. rm -f conftest.$ac_objext
  9412. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9413. (eval $ac_compile) 2>conftest.er1
  9414. ac_status=$?
  9415. grep -v '^ *+' conftest.er1 >conftest.err
  9416. rm -f conftest.er1
  9417. cat conftest.err >&5
  9418. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9419. (exit $ac_status); } &&
  9420. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  9421. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9422. (eval $ac_try) 2>&5
  9423. ac_status=$?
  9424. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9425. (exit $ac_status); }; } &&
  9426. { ac_try='test -s conftest.$ac_objext'
  9427. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9428. (eval $ac_try) 2>&5
  9429. ac_status=$?
  9430. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9431. (exit $ac_status); }; }; then
  9432. ac_cv_member_struct_stat_st_mtimespec=yes
  9433. else
  9434. echo "$as_me: failed program was:" >&5
  9435. sed 's/^/| /' conftest.$ac_ext >&5
  9436. ac_cv_member_struct_stat_st_mtimespec=no
  9437. fi
  9438. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9439. fi
  9440. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9441. fi
  9442. echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtimespec" >&5
  9443. echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtimespec" >&6
  9444. if test $ac_cv_member_struct_stat_st_mtimespec = yes; then
  9445. cat >>confdefs.h <<\_ACEOF
  9446. #define HAVE_ST_MTIMESPEC 1
  9447. _ACEOF
  9448. fi
  9449. fi
  9450. echo "$as_me:$LINENO: checking for two-parameter timespecsub" >&5
  9451. echo $ECHO_N "checking for two-parameter timespecsub... $ECHO_C" >&6
  9452. cat >conftest.$ac_ext <<_ACEOF
  9453. /* confdefs.h. */
  9454. _ACEOF
  9455. cat confdefs.h >>conftest.$ac_ext
  9456. cat >>conftest.$ac_ext <<_ACEOF
  9457. /* end confdefs.h. */
  9458. #include <sys/types.h>
  9459. #include <sys/time.h>
  9460. int
  9461. main ()
  9462. {
  9463. struct timespec ts1, ts2;
  9464. ts1.tv_sec = 1; ts1.tv_nsec = 0; ts2.tv_sec = 0; ts2.tv_nsec = 0;
  9465. #ifndef timespecsub
  9466. #error missing timespecsub
  9467. #endif
  9468. timespecsub(&ts1, &ts2);
  9469. ;
  9470. return 0;
  9471. }
  9472. _ACEOF
  9473. rm -f conftest.$ac_objext
  9474. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9475. (eval $ac_compile) 2>conftest.er1
  9476. ac_status=$?
  9477. grep -v '^ *+' conftest.er1 >conftest.err
  9478. rm -f conftest.er1
  9479. cat conftest.err >&5
  9480. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9481. (exit $ac_status); } &&
  9482. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  9483. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9484. (eval $ac_try) 2>&5
  9485. ac_status=$?
  9486. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9487. (exit $ac_status); }; } &&
  9488. { ac_try='test -s conftest.$ac_objext'
  9489. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9490. (eval $ac_try) 2>&5
  9491. ac_status=$?
  9492. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9493. (exit $ac_status); }; }; then
  9494. cat >>confdefs.h <<\_ACEOF
  9495. #define HAVE_TIMESPECSUB2 1
  9496. _ACEOF
  9497. echo "$as_me:$LINENO: result: yes" >&5
  9498. echo "${ECHO_T}yes" >&6
  9499. else
  9500. echo "$as_me: failed program was:" >&5
  9501. sed 's/^/| /' conftest.$ac_ext >&5
  9502. echo "$as_me:$LINENO: result: no" >&5
  9503. echo "${ECHO_T}no" >&6
  9504. fi
  9505. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9506. fi
  9507. for ac_func in strftime
  9508. do
  9509. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9510. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9511. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9512. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9513. echo $ECHO_N "(cached) $ECHO_C" >&6
  9514. else
  9515. cat >conftest.$ac_ext <<_ACEOF
  9516. /* confdefs.h. */
  9517. _ACEOF
  9518. cat confdefs.h >>conftest.$ac_ext
  9519. cat >>conftest.$ac_ext <<_ACEOF
  9520. /* end confdefs.h. */
  9521. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9522. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9523. #define $ac_func innocuous_$ac_func
  9524. /* System header to define __stub macros and hopefully few prototypes,
  9525. which can conflict with char $ac_func (); below.
  9526. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9527. <limits.h> exists even on freestanding compilers. */
  9528. #ifdef __STDC__
  9529. # include <limits.h>
  9530. #else
  9531. # include <assert.h>
  9532. #endif
  9533. #undef $ac_func
  9534. /* Override any gcc2 internal prototype to avoid an error. */
  9535. #ifdef __cplusplus
  9536. extern "C"
  9537. {
  9538. #endif
  9539. /* We use char because int might match the return type of a gcc2
  9540. builtin and then its argument prototype would still apply. */
  9541. char $ac_func ();
  9542. /* The GNU C library defines this for functions which it implements
  9543. to always fail with ENOSYS. Some functions are actually named
  9544. something starting with __ and the normal name is an alias. */
  9545. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9546. choke me
  9547. #else
  9548. char (*f) () = $ac_func;
  9549. #endif
  9550. #ifdef __cplusplus
  9551. }
  9552. #endif
  9553. int
  9554. main ()
  9555. {
  9556. return f != $ac_func;
  9557. ;
  9558. return 0;
  9559. }
  9560. _ACEOF
  9561. rm -f conftest.$ac_objext conftest$ac_exeext
  9562. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9563. (eval $ac_link) 2>conftest.er1
  9564. ac_status=$?
  9565. grep -v '^ *+' conftest.er1 >conftest.err
  9566. rm -f conftest.er1
  9567. cat conftest.err >&5
  9568. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9569. (exit $ac_status); } &&
  9570. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  9571. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9572. (eval $ac_try) 2>&5
  9573. ac_status=$?
  9574. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9575. (exit $ac_status); }; } &&
  9576. { ac_try='test -s conftest$ac_exeext'
  9577. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9578. (eval $ac_try) 2>&5
  9579. ac_status=$?
  9580. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9581. (exit $ac_status); }; }; then
  9582. eval "$as_ac_var=yes"
  9583. else
  9584. echo "$as_me: failed program was:" >&5
  9585. sed 's/^/| /' conftest.$ac_ext >&5
  9586. eval "$as_ac_var=no"
  9587. fi
  9588. rm -f conftest.err conftest.$ac_objext \
  9589. conftest$ac_exeext conftest.$ac_ext
  9590. fi
  9591. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9592. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9593. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9594. cat >>confdefs.h <<_ACEOF
  9595. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9596. _ACEOF
  9597. else
  9598. # strftime is in -lintl on SCO UNIX.
  9599. echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  9600. echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
  9601. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  9602. echo $ECHO_N "(cached) $ECHO_C" >&6
  9603. else
  9604. ac_check_lib_save_LIBS=$LIBS
  9605. LIBS="-lintl $LIBS"
  9606. cat >conftest.$ac_ext <<_ACEOF
  9607. /* confdefs.h. */
  9608. _ACEOF
  9609. cat confdefs.h >>conftest.$ac_ext
  9610. cat >>conftest.$ac_ext <<_ACEOF
  9611. /* end confdefs.h. */
  9612. /* Override any gcc2 internal prototype to avoid an error. */
  9613. #ifdef __cplusplus
  9614. extern "C"
  9615. #endif
  9616. /* We use char because int might match the return type of a gcc2
  9617. builtin and then its argument prototype would still apply. */
  9618. char strftime ();
  9619. int
  9620. main ()
  9621. {
  9622. strftime ();
  9623. ;
  9624. return 0;
  9625. }
  9626. _ACEOF
  9627. rm -f conftest.$ac_objext conftest$ac_exeext
  9628. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9629. (eval $ac_link) 2>conftest.er1
  9630. ac_status=$?
  9631. grep -v '^ *+' conftest.er1 >conftest.err
  9632. rm -f conftest.er1
  9633. cat conftest.err >&5
  9634. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9635. (exit $ac_status); } &&
  9636. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  9637. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9638. (eval $ac_try) 2>&5
  9639. ac_status=$?
  9640. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9641. (exit $ac_status); }; } &&
  9642. { ac_try='test -s conftest$ac_exeext'
  9643. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9644. (eval $ac_try) 2>&5
  9645. ac_status=$?
  9646. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9647. (exit $ac_status); }; }; then
  9648. ac_cv_lib_intl_strftime=yes
  9649. else
  9650. echo "$as_me: failed program was:" >&5
  9651. sed 's/^/| /' conftest.$ac_ext >&5
  9652. ac_cv_lib_intl_strftime=no
  9653. fi
  9654. rm -f conftest.err conftest.$ac_objext \
  9655. conftest$ac_exeext conftest.$ac_ext
  9656. LIBS=$ac_check_lib_save_LIBS
  9657. fi
  9658. echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  9659. echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
  9660. if test $ac_cv_lib_intl_strftime = yes; then
  9661. cat >>confdefs.h <<\_ACEOF
  9662. #define HAVE_STRFTIME 1
  9663. _ACEOF
  9664. LIBS="-lintl $LIBS"
  9665. fi
  9666. fi
  9667. done
  9668. #checkpoint
  9669. cat >confcache <<\_ACEOF
  9670. # This file is a shell script that caches the results of configure
  9671. # tests run on this system so they can be shared between configure
  9672. # scripts and configure runs, see configure's option --config-cache.
  9673. # It is not useful on other systems. If it contains results you don't
  9674. # want to keep, you may remove or edit it.
  9675. #
  9676. # config.status only pays attention to the cache file if you give it
  9677. # the --recheck option to rerun configure.
  9678. #
  9679. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  9680. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  9681. # following values.
  9682. _ACEOF
  9683. # The following way of writing the cache mishandles newlines in values,
  9684. # but we know of no workaround that is simple, portable, and efficient.
  9685. # So, don't put newlines in cache variables' values.
  9686. # Ultrix sh set writes to stderr and can't be redirected directly,
  9687. # and sets the high bit in the cache file unless we assign to the vars.
  9688. {
  9689. (set) 2>&1 |
  9690. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  9691. *ac_space=\ *)
  9692. # `set' does not quote correctly, so add quotes (double-quote
  9693. # substitution turns \\\\ into \\, and sed turns \\ into \).
  9694. sed -n \
  9695. "s/'/'\\\\''/g;
  9696. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  9697. ;;
  9698. *)
  9699. # `set' quotes correctly as required by POSIX, so do not add quotes.
  9700. sed -n \
  9701. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  9702. ;;
  9703. esac;
  9704. } |
  9705. sed '
  9706. t clear
  9707. : clear
  9708. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  9709. t end
  9710. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  9711. : end' >>confcache
  9712. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  9713. if test -w $cache_file; then
  9714. test "x$cache_file" != "x/dev/null"
  9715. cat confcache >$cache_file
  9716. else
  9717. echo "not updating unwritable cache $cache_file"
  9718. fi
  9719. fi
  9720. rm -f confcache
  9721. for ac_func in clock fsync getrusage isascii inet_aton
  9722. do
  9723. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9724. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9725. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9726. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9727. echo $ECHO_N "(cached) $ECHO_C" >&6
  9728. else
  9729. cat >conftest.$ac_ext <<_ACEOF
  9730. /* confdefs.h. */
  9731. _ACEOF
  9732. cat confdefs.h >>conftest.$ac_ext
  9733. cat >>conftest.$ac_ext <<_ACEOF
  9734. /* end confdefs.h. */
  9735. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9736. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9737. #define $ac_func innocuous_$ac_func
  9738. /* System header to define __stub macros and hopefully few prototypes,
  9739. which can conflict with char $ac_func (); below.
  9740. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9741. <limits.h> exists even on freestanding compilers. */
  9742. #ifdef __STDC__
  9743. # include <limits.h>
  9744. #else
  9745. # include <assert.h>
  9746. #endif
  9747. #undef $ac_func
  9748. /* Override any gcc2 internal prototype to avoid an error. */
  9749. #ifdef __cplusplus
  9750. extern "C"
  9751. {
  9752. #endif
  9753. /* We use char because int might match the return type of a gcc2
  9754. builtin and then its argument prototype would still apply. */
  9755. char $ac_func ();
  9756. /* The GNU C library defines this for functions which it implements
  9757. to always fail with ENOSYS. Some functions are actually named
  9758. something starting with __ and the normal name is an alias. */
  9759. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9760. choke me
  9761. #else
  9762. char (*f) () = $ac_func;
  9763. #endif
  9764. #ifdef __cplusplus
  9765. }
  9766. #endif
  9767. int
  9768. main ()
  9769. {
  9770. return f != $ac_func;
  9771. ;
  9772. return 0;
  9773. }
  9774. _ACEOF
  9775. rm -f conftest.$ac_objext conftest$ac_exeext
  9776. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9777. (eval $ac_link) 2>conftest.er1
  9778. ac_status=$?
  9779. grep -v '^ *+' conftest.er1 >conftest.err
  9780. rm -f conftest.er1
  9781. cat conftest.err >&5
  9782. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9783. (exit $ac_status); } &&
  9784. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  9785. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9786. (eval $ac_try) 2>&5
  9787. ac_status=$?
  9788. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9789. (exit $ac_status); }; } &&
  9790. { ac_try='test -s conftest$ac_exeext'
  9791. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9792. (eval $ac_try) 2>&5
  9793. ac_status=$?
  9794. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9795. (exit $ac_status); }; }; then
  9796. eval "$as_ac_var=yes"
  9797. else
  9798. echo "$as_me: failed program was:" >&5
  9799. sed 's/^/| /' conftest.$ac_ext >&5
  9800. eval "$as_ac_var=no"
  9801. fi
  9802. rm -f conftest.err conftest.$ac_objext \
  9803. conftest$ac_exeext conftest.$ac_ext
  9804. fi
  9805. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9806. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9807. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9808. cat >>confdefs.h <<_ACEOF
  9809. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9810. _ACEOF
  9811. fi
  9812. done
  9813. for ac_func in memcpy memset random rename snprintf srandom gettime
  9814. do
  9815. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9816. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9817. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9818. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9819. echo $ECHO_N "(cached) $ECHO_C" >&6
  9820. else
  9821. cat >conftest.$ac_ext <<_ACEOF
  9822. /* confdefs.h. */
  9823. _ACEOF
  9824. cat confdefs.h >>conftest.$ac_ext
  9825. cat >>conftest.$ac_ext <<_ACEOF
  9826. /* end confdefs.h. */
  9827. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9828. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9829. #define $ac_func innocuous_$ac_func
  9830. /* System header to define __stub macros and hopefully few prototypes,
  9831. which can conflict with char $ac_func (); below.
  9832. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9833. <limits.h> exists even on freestanding compilers. */
  9834. #ifdef __STDC__
  9835. # include <limits.h>
  9836. #else
  9837. # include <assert.h>
  9838. #endif
  9839. #undef $ac_func
  9840. /* Override any gcc2 internal prototype to avoid an error. */
  9841. #ifdef __cplusplus
  9842. extern "C"
  9843. {
  9844. #endif
  9845. /* We use char because int might match the return type of a gcc2
  9846. builtin and then its argument prototype would still apply. */
  9847. char $ac_func ();
  9848. /* The GNU C library defines this for functions which it implements
  9849. to always fail with ENOSYS. Some functions are actually named
  9850. something starting with __ and the normal name is an alias. */
  9851. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9852. choke me
  9853. #else
  9854. char (*f) () = $ac_func;
  9855. #endif
  9856. #ifdef __cplusplus
  9857. }
  9858. #endif
  9859. int
  9860. main ()
  9861. {
  9862. return f != $ac_func;
  9863. ;
  9864. return 0;
  9865. }
  9866. _ACEOF
  9867. rm -f conftest.$ac_objext conftest$ac_exeext
  9868. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9869. (eval $ac_link) 2>conftest.er1
  9870. ac_status=$?
  9871. grep -v '^ *+' conftest.er1 >conftest.err
  9872. rm -f conftest.er1
  9873. cat conftest.err >&5
  9874. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9875. (exit $ac_status); } &&
  9876. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  9877. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9878. (eval $ac_try) 2>&5
  9879. ac_status=$?
  9880. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9881. (exit $ac_status); }; } &&
  9882. { ac_try='test -s conftest$ac_exeext'
  9883. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9884. (eval $ac_try) 2>&5
  9885. ac_status=$?
  9886. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9887. (exit $ac_status); }; }; then
  9888. eval "$as_ac_var=yes"
  9889. else
  9890. echo "$as_me: failed program was:" >&5
  9891. sed 's/^/| /' conftest.$ac_ext >&5
  9892. eval "$as_ac_var=no"
  9893. fi
  9894. rm -f conftest.err conftest.$ac_objext \
  9895. conftest$ac_exeext conftest.$ac_ext
  9896. fi
  9897. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9898. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9899. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9900. cat >>confdefs.h <<_ACEOF
  9901. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9902. _ACEOF
  9903. fi
  9904. done
  9905. #checkpoint
  9906. cat >confcache <<\_ACEOF
  9907. # This file is a shell script that caches the results of configure
  9908. # tests run on this system so they can be shared between configure
  9909. # scripts and configure runs, see configure's option --config-cache.
  9910. # It is not useful on other systems. If it contains results you don't
  9911. # want to keep, you may remove or edit it.
  9912. #
  9913. # config.status only pays attention to the cache file if you give it
  9914. # the --recheck option to rerun configure.
  9915. #
  9916. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  9917. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  9918. # following values.
  9919. _ACEOF
  9920. # The following way of writing the cache mishandles newlines in values,
  9921. # but we know of no workaround that is simple, portable, and efficient.
  9922. # So, don't put newlines in cache variables' values.
  9923. # Ultrix sh set writes to stderr and can't be redirected directly,
  9924. # and sets the high bit in the cache file unless we assign to the vars.
  9925. {
  9926. (set) 2>&1 |
  9927. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  9928. *ac_space=\ *)
  9929. # `set' does not quote correctly, so add quotes (double-quote
  9930. # substitution turns \\\\ into \\, and sed turns \\ into \).
  9931. sed -n \
  9932. "s/'/'\\\\''/g;
  9933. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  9934. ;;
  9935. *)
  9936. # `set' quotes correctly as required by POSIX, so do not add quotes.
  9937. sed -n \
  9938. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  9939. ;;
  9940. esac;
  9941. } |
  9942. sed '
  9943. t clear
  9944. : clear
  9945. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  9946. t end
  9947. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  9948. : end' >>confcache
  9949. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  9950. if test -w $cache_file; then
  9951. test "x$cache_file" != "x/dev/null"
  9952. cat confcache >$cache_file
  9953. else
  9954. echo "not updating unwritable cache $cache_file"
  9955. fi
  9956. fi
  9957. rm -f confcache
  9958. for ac_func in strcasecmp strncasecmp vsnprintf
  9959. do
  9960. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9961. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9962. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9963. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9964. echo $ECHO_N "(cached) $ECHO_C" >&6
  9965. else
  9966. cat >conftest.$ac_ext <<_ACEOF
  9967. /* confdefs.h. */
  9968. _ACEOF
  9969. cat confdefs.h >>conftest.$ac_ext
  9970. cat >>conftest.$ac_ext <<_ACEOF
  9971. /* end confdefs.h. */
  9972. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9973. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9974. #define $ac_func innocuous_$ac_func
  9975. /* System header to define __stub macros and hopefully few prototypes,
  9976. which can conflict with char $ac_func (); below.
  9977. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9978. <limits.h> exists even on freestanding compilers. */
  9979. #ifdef __STDC__
  9980. # include <limits.h>
  9981. #else
  9982. # include <assert.h>
  9983. #endif
  9984. #undef $ac_func
  9985. /* Override any gcc2 internal prototype to avoid an error. */
  9986. #ifdef __cplusplus
  9987. extern "C"
  9988. {
  9989. #endif
  9990. /* We use char because int might match the return type of a gcc2
  9991. builtin and then its argument prototype would still apply. */
  9992. char $ac_func ();
  9993. /* The GNU C library defines this for functions which it implements
  9994. to always fail with ENOSYS. Some functions are actually named
  9995. something starting with __ and the normal name is an alias. */
  9996. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9997. choke me
  9998. #else
  9999. char (*f) () = $ac_func;
  10000. #endif
  10001. #ifdef __cplusplus
  10002. }
  10003. #endif
  10004. int
  10005. main ()
  10006. {
  10007. return f != $ac_func;
  10008. ;
  10009. return 0;
  10010. }
  10011. _ACEOF
  10012. rm -f conftest.$ac_objext conftest$ac_exeext
  10013. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10014. (eval $ac_link) 2>conftest.er1
  10015. ac_status=$?
  10016. grep -v '^ *+' conftest.er1 >conftest.err
  10017. rm -f conftest.er1
  10018. cat conftest.err >&5
  10019. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10020. (exit $ac_status); } &&
  10021. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  10022. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10023. (eval $ac_try) 2>&5
  10024. ac_status=$?
  10025. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10026. (exit $ac_status); }; } &&
  10027. { ac_try='test -s conftest$ac_exeext'
  10028. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10029. (eval $ac_try) 2>&5
  10030. ac_status=$?
  10031. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10032. (exit $ac_status); }; }; then
  10033. eval "$as_ac_var=yes"
  10034. else
  10035. echo "$as_me: failed program was:" >&5
  10036. sed 's/^/| /' conftest.$ac_ext >&5
  10037. eval "$as_ac_var=no"
  10038. fi
  10039. rm -f conftest.err conftest.$ac_objext \
  10040. conftest$ac_exeext conftest.$ac_ext
  10041. fi
  10042. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10043. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10044. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10045. cat >>confdefs.h <<_ACEOF
  10046. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10047. _ACEOF
  10048. fi
  10049. done
  10050. #autoscan suggested this....
  10051. #These are recommended by autoscan, but no code supports it currently
  10052. #AC_CHECK_FUNCS([alarm bzero dup2 getcwd gethostbyaddr gethostbyname gethostname getpass gettimeofday mbrlen
  10053. #mkdir munmap realpath select setlocale socket strchr strerror strpbrk strrchr strstr strtol tzset])
  10054. for ac_func in vsprintf
  10055. do
  10056. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10057. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10058. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10059. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10060. echo $ECHO_N "(cached) $ECHO_C" >&6
  10061. else
  10062. cat >conftest.$ac_ext <<_ACEOF
  10063. /* confdefs.h. */
  10064. _ACEOF
  10065. cat confdefs.h >>conftest.$ac_ext
  10066. cat >>conftest.$ac_ext <<_ACEOF
  10067. /* end confdefs.h. */
  10068. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10069. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10070. #define $ac_func innocuous_$ac_func
  10071. /* System header to define __stub macros and hopefully few prototypes,
  10072. which can conflict with char $ac_func (); below.
  10073. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10074. <limits.h> exists even on freestanding compilers. */
  10075. #ifdef __STDC__
  10076. # include <limits.h>
  10077. #else
  10078. # include <assert.h>
  10079. #endif
  10080. #undef $ac_func
  10081. /* Override any gcc2 internal prototype to avoid an error. */
  10082. #ifdef __cplusplus
  10083. extern "C"
  10084. {
  10085. #endif
  10086. /* We use char because int might match the return type of a gcc2
  10087. builtin and then its argument prototype would still apply. */
  10088. char $ac_func ();
  10089. /* The GNU C library defines this for functions which it implements
  10090. to always fail with ENOSYS. Some functions are actually named
  10091. something starting with __ and the normal name is an alias. */
  10092. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10093. choke me
  10094. #else
  10095. char (*f) () = $ac_func;
  10096. #endif
  10097. #ifdef __cplusplus
  10098. }
  10099. #endif
  10100. int
  10101. main ()
  10102. {
  10103. return f != $ac_func;
  10104. ;
  10105. return 0;
  10106. }
  10107. _ACEOF
  10108. rm -f conftest.$ac_objext conftest$ac_exeext
  10109. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10110. (eval $ac_link) 2>conftest.er1
  10111. ac_status=$?
  10112. grep -v '^ *+' conftest.er1 >conftest.err
  10113. rm -f conftest.er1
  10114. cat conftest.err >&5
  10115. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10116. (exit $ac_status); } &&
  10117. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  10118. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10119. (eval $ac_try) 2>&5
  10120. ac_status=$?
  10121. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10122. (exit $ac_status); }; } &&
  10123. { ac_try='test -s conftest$ac_exeext'
  10124. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10125. (eval $ac_try) 2>&5
  10126. ac_status=$?
  10127. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10128. (exit $ac_status); }; }; then
  10129. eval "$as_ac_var=yes"
  10130. else
  10131. echo "$as_me: failed program was:" >&5
  10132. sed 's/^/| /' conftest.$ac_ext >&5
  10133. eval "$as_ac_var=no"
  10134. fi
  10135. rm -f conftest.err conftest.$ac_objext \
  10136. conftest$ac_exeext conftest.$ac_ext
  10137. fi
  10138. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10139. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10140. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10141. cat >>confdefs.h <<_ACEOF
  10142. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10143. _ACEOF
  10144. fi
  10145. done
  10146. if test "$ac_cv_func_vsprintf" = "no"
  10147. then
  10148. cat << 'EOF' >&2
  10149. configure: error:
  10150. Your system does not have the sprintf/vsprintf libraries.
  10151. These are required to compile almost anything. Sorry.
  10152. EOF
  10153. exit 1
  10154. fi
  10155. for ac_func in uname
  10156. do
  10157. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10158. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10159. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10160. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10161. echo $ECHO_N "(cached) $ECHO_C" >&6
  10162. else
  10163. cat >conftest.$ac_ext <<_ACEOF
  10164. /* confdefs.h. */
  10165. _ACEOF
  10166. cat confdefs.h >>conftest.$ac_ext
  10167. cat >>conftest.$ac_ext <<_ACEOF
  10168. /* end confdefs.h. */
  10169. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10170. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10171. #define $ac_func innocuous_$ac_func
  10172. /* System header to define __stub macros and hopefully few prototypes,
  10173. which can conflict with char $ac_func (); below.
  10174. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10175. <limits.h> exists even on freestanding compilers. */
  10176. #ifdef __STDC__
  10177. # include <limits.h>
  10178. #else
  10179. # include <assert.h>
  10180. #endif
  10181. #undef $ac_func
  10182. /* Override any gcc2 internal prototype to avoid an error. */
  10183. #ifdef __cplusplus
  10184. extern "C"
  10185. {
  10186. #endif
  10187. /* We use char because int might match the return type of a gcc2
  10188. builtin and then its argument prototype would still apply. */
  10189. char $ac_func ();
  10190. /* The GNU C library defines this for functions which it implements
  10191. to always fail with ENOSYS. Some functions are actually named
  10192. something starting with __ and the normal name is an alias. */
  10193. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10194. choke me
  10195. #else
  10196. char (*f) () = $ac_func;
  10197. #endif
  10198. #ifdef __cplusplus
  10199. }
  10200. #endif
  10201. int
  10202. main ()
  10203. {
  10204. return f != $ac_func;
  10205. ;
  10206. return 0;
  10207. }
  10208. _ACEOF
  10209. rm -f conftest.$ac_objext conftest$ac_exeext
  10210. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10211. (eval $ac_link) 2>conftest.er1
  10212. ac_status=$?
  10213. grep -v '^ *+' conftest.er1 >conftest.err
  10214. rm -f conftest.er1
  10215. cat conftest.err >&5
  10216. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10217. (exit $ac_status); } &&
  10218. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  10219. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10220. (eval $ac_try) 2>&5
  10221. ac_status=$?
  10222. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10223. (exit $ac_status); }; } &&
  10224. { ac_try='test -s conftest$ac_exeext'
  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); }; }; then
  10230. eval "$as_ac_var=yes"
  10231. else
  10232. echo "$as_me: failed program was:" >&5
  10233. sed 's/^/| /' conftest.$ac_ext >&5
  10234. eval "$as_ac_var=no"
  10235. fi
  10236. rm -f conftest.err conftest.$ac_objext \
  10237. conftest$ac_exeext conftest.$ac_ext
  10238. fi
  10239. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10240. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10241. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10242. cat >>confdefs.h <<_ACEOF
  10243. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10244. _ACEOF
  10245. fi
  10246. done
  10247. if test "$ac_cv_func_uname" = "no"
  10248. then
  10249. cat << 'EOF' >&2
  10250. configure: error:
  10251. Your system does not have the uname() function.
  10252. This is required for the botpack.
  10253. EOF
  10254. exit 1
  10255. fi
  10256. # Make sure we have stdc headers, since we can't compile without them
  10257. if test "$ac_cv_header_stdc" = "no"
  10258. then
  10259. cat << 'EOF' >&2
  10260. configure: error:
  10261. Your system must support ANSI C Header files.
  10262. These are required for the language support. Sorry.
  10263. EOF
  10264. exit 1
  10265. fi
  10266. #checkpoint
  10267. cat >confcache <<\_ACEOF
  10268. # This file is a shell script that caches the results of configure
  10269. # tests run on this system so they can be shared between configure
  10270. # scripts and configure runs, see configure's option --config-cache.
  10271. # It is not useful on other systems. If it contains results you don't
  10272. # want to keep, you may remove or edit it.
  10273. #
  10274. # config.status only pays attention to the cache file if you give it
  10275. # the --recheck option to rerun configure.
  10276. #
  10277. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10278. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10279. # following values.
  10280. _ACEOF
  10281. # The following way of writing the cache mishandles newlines in values,
  10282. # but we know of no workaround that is simple, portable, and efficient.
  10283. # So, don't put newlines in cache variables' values.
  10284. # Ultrix sh set writes to stderr and can't be redirected directly,
  10285. # and sets the high bit in the cache file unless we assign to the vars.
  10286. {
  10287. (set) 2>&1 |
  10288. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10289. *ac_space=\ *)
  10290. # `set' does not quote correctly, so add quotes (double-quote
  10291. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10292. sed -n \
  10293. "s/'/'\\\\''/g;
  10294. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10295. ;;
  10296. *)
  10297. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10298. sed -n \
  10299. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10300. ;;
  10301. esac;
  10302. } |
  10303. sed '
  10304. t clear
  10305. : clear
  10306. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10307. t end
  10308. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10309. : end' >>confcache
  10310. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10311. if test -w $cache_file; then
  10312. test "x$cache_file" != "x/dev/null"
  10313. cat confcache >$cache_file
  10314. else
  10315. echo "not updating unwritable cache $cache_file"
  10316. fi
  10317. fi
  10318. rm -f confcache
  10319. VERSION=`grep "char" $srcdir/src/main.c | $AWK '/egg_version/ {print $5}' | sed -e 's/\"//g' | sed -e 's/\;//g'`
  10320. version_num=`echo $VERSION | $AWK 'BEGIN {FS = "."} {printf("%d%02d%02d", $1, $2, $3)}'`
  10321. cat >>confdefs.h <<_ACEOF
  10322. #define EGG_VERSION $version_num
  10323. _ACEOF
  10324. #FIND_WRAPS
  10325. case "$srcdir" in
  10326. [\\/]* | ?:[\\/]*)
  10327. MOD_UPDIR=""
  10328. ;;
  10329. *)
  10330. MOD_UPDIR="../"
  10331. ;;
  10332. esac
  10333. 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/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"
  10334. for mf in $files; do
  10335. # Strip MF so we end up with the name of the file.
  10336. # echo "MF: $mf"
  10337. mf=`echo "$mf" | sed -e 's/:.*$//'`
  10338. dirpart=`(dirname "$mf") 2>/dev/null ||
  10339. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10340. X"$mf" : 'X\(//\)[^/]' \| \
  10341. X"$mf" : 'X\(//\)$' \| \
  10342. X"$mf" : 'X\(/\)' \| \
  10343. . : '\(.\)' 2>/dev/null ||
  10344. echo X"$mf" |
  10345. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  10346. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  10347. /^X\(\/\/\)$/{ s//\1/; q; }
  10348. /^X\(\/\).*/{ s//\1/; q; }
  10349. s/.*/./; q'`
  10350. # echo "dirpart: $dirpart mf: $mf"
  10351. # rm -rf "$dirpart/.deps/"
  10352. rm -f "$dirpart/.deps/includes"
  10353. test -d "$dirpart/.deps" || mkdir "$dirpart/.deps"
  10354. for file in `sed -n -e '
  10355. /^OBJS = .*\\\\$/ {
  10356. s/^OBJS = //
  10357. :loop
  10358. s/\\\\$//
  10359. p
  10360. n
  10361. /\\\\$/ b loop
  10362. p
  10363. }
  10364. /^OBJS = / s/^OBJS = //p' < "$mf"`;
  10365. do
  10366. base=`basename $file .o`
  10367. test -f "$dirpart/$base.c" || continue
  10368. if ! test -f "$dirpart/.deps/$base.Po"; then
  10369. echo '# dummy' > "$dirpart/.deps/$base.Po"
  10370. #Remove the .o file, because it needs to be recompiled for its dependancies.
  10371. if test -f "$dirpart/$base.o"; then
  10372. rm -f "$dirpart/$base.o"
  10373. fi
  10374. fi
  10375. echo "include .deps/$base.Po" >> "$dirpart/.deps/includes"
  10376. echo "_$base.c:" >> "$dirpart/.deps/includes"
  10377. done
  10378. done
  10379. ac_config_files="$ac_config_files Makefile src/Makefile src/compat/Makefile src/crypto/Makefile src/mod/Makefile"
  10380. cat >confcache <<\_ACEOF
  10381. # This file is a shell script that caches the results of configure
  10382. # tests run on this system so they can be shared between configure
  10383. # scripts and configure runs, see configure's option --config-cache.
  10384. # It is not useful on other systems. If it contains results you don't
  10385. # want to keep, you may remove or edit it.
  10386. #
  10387. # config.status only pays attention to the cache file if you give it
  10388. # the --recheck option to rerun configure.
  10389. #
  10390. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10391. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10392. # following values.
  10393. _ACEOF
  10394. # The following way of writing the cache mishandles newlines in values,
  10395. # but we know of no workaround that is simple, portable, and efficient.
  10396. # So, don't put newlines in cache variables' values.
  10397. # Ultrix sh set writes to stderr and can't be redirected directly,
  10398. # and sets the high bit in the cache file unless we assign to the vars.
  10399. {
  10400. (set) 2>&1 |
  10401. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10402. *ac_space=\ *)
  10403. # `set' does not quote correctly, so add quotes (double-quote
  10404. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10405. sed -n \
  10406. "s/'/'\\\\''/g;
  10407. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10408. ;;
  10409. *)
  10410. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10411. sed -n \
  10412. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10413. ;;
  10414. esac;
  10415. } |
  10416. sed '
  10417. t clear
  10418. : clear
  10419. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10420. t end
  10421. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10422. : end' >>confcache
  10423. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10424. if test -w $cache_file; then
  10425. test "x$cache_file" != "x/dev/null"
  10426. cat confcache >$cache_file
  10427. else
  10428. echo "not updating unwritable cache $cache_file"
  10429. fi
  10430. fi
  10431. rm -f confcache
  10432. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  10433. # Let make expand exec_prefix.
  10434. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  10435. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  10436. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  10437. # trailing colons and then remove the whole line if VPATH becomes empty
  10438. # (actually we leave an empty line to preserve line numbers).
  10439. if test "x$srcdir" = x.; then
  10440. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  10441. s/:*\$(srcdir):*/:/;
  10442. s/:*\${srcdir}:*/:/;
  10443. s/:*@srcdir@:*/:/;
  10444. s/^\([^=]*=[ ]*\):*/\1/;
  10445. s/:*$//;
  10446. s/^[^=]*=[ ]*$//;
  10447. }'
  10448. fi
  10449. DEFS=-DHAVE_CONFIG_H
  10450. ac_libobjs=
  10451. ac_ltlibobjs=
  10452. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  10453. # 1. Remove the extension, and $U if already installed.
  10454. ac_i=`echo "$ac_i" |
  10455. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  10456. # 2. Add them.
  10457. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  10458. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  10459. done
  10460. LIBOBJS=$ac_libobjs
  10461. LTLIBOBJS=$ac_ltlibobjs
  10462. : ${CONFIG_STATUS=./config.status}
  10463. ac_clean_files_save=$ac_clean_files
  10464. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  10465. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  10466. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  10467. cat >$CONFIG_STATUS <<_ACEOF
  10468. #! $SHELL
  10469. # Generated by $as_me.
  10470. # Run this file to recreate the current configuration.
  10471. # Compiler output produced by configure, useful for debugging
  10472. # configure, is in config.log if it exists.
  10473. debug=false
  10474. ac_cs_recheck=false
  10475. ac_cs_silent=false
  10476. SHELL=\${CONFIG_SHELL-$SHELL}
  10477. _ACEOF
  10478. cat >>$CONFIG_STATUS <<\_ACEOF
  10479. ## --------------------- ##
  10480. ## M4sh Initialization. ##
  10481. ## --------------------- ##
  10482. # Be Bourne compatible
  10483. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  10484. emulate sh
  10485. NULLCMD=:
  10486. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  10487. # is contrary to our usage. Disable this feature.
  10488. alias -g '${1+"$@"}'='"$@"'
  10489. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  10490. set -o posix
  10491. fi
  10492. DUALCASE=1; export DUALCASE # for MKS sh
  10493. # Support unset when possible.
  10494. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  10495. as_unset=unset
  10496. else
  10497. as_unset=false
  10498. fi
  10499. # Work around bugs in pre-3.0 UWIN ksh.
  10500. $as_unset ENV MAIL MAILPATH
  10501. PS1='$ '
  10502. PS2='> '
  10503. PS4='+ '
  10504. # NLS nuisances.
  10505. for as_var in \
  10506. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  10507. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  10508. LC_TELEPHONE LC_TIME
  10509. do
  10510. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  10511. eval $as_var=C; export $as_var
  10512. else
  10513. $as_unset $as_var
  10514. fi
  10515. done
  10516. # Required to use basename.
  10517. if expr a : '\(a\)' >/dev/null 2>&1; then
  10518. as_expr=expr
  10519. else
  10520. as_expr=false
  10521. fi
  10522. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  10523. as_basename=basename
  10524. else
  10525. as_basename=false
  10526. fi
  10527. # Name of the executable.
  10528. as_me=`$as_basename "$0" ||
  10529. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  10530. X"$0" : 'X\(//\)$' \| \
  10531. X"$0" : 'X\(/\)$' \| \
  10532. . : '\(.\)' 2>/dev/null ||
  10533. echo X/"$0" |
  10534. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  10535. /^X\/\(\/\/\)$/{ s//\1/; q; }
  10536. /^X\/\(\/\).*/{ s//\1/; q; }
  10537. s/.*/./; q'`
  10538. # PATH needs CR, and LINENO needs CR and PATH.
  10539. # Avoid depending upon Character Ranges.
  10540. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  10541. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  10542. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  10543. as_cr_digits='0123456789'
  10544. as_cr_alnum=$as_cr_Letters$as_cr_digits
  10545. # The user is always right.
  10546. if test "${PATH_SEPARATOR+set}" != set; then
  10547. echo "#! /bin/sh" >conf$$.sh
  10548. echo "exit 0" >>conf$$.sh
  10549. chmod +x conf$$.sh
  10550. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  10551. PATH_SEPARATOR=';'
  10552. else
  10553. PATH_SEPARATOR=:
  10554. fi
  10555. rm -f conf$$.sh
  10556. fi
  10557. as_lineno_1=$LINENO
  10558. as_lineno_2=$LINENO
  10559. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  10560. test "x$as_lineno_1" != "x$as_lineno_2" &&
  10561. test "x$as_lineno_3" = "x$as_lineno_2" || {
  10562. # Find who we are. Look in the path if we contain no path at all
  10563. # relative or not.
  10564. case $0 in
  10565. *[\\/]* ) as_myself=$0 ;;
  10566. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10567. for as_dir in $PATH
  10568. do
  10569. IFS=$as_save_IFS
  10570. test -z "$as_dir" && as_dir=.
  10571. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  10572. done
  10573. ;;
  10574. esac
  10575. # We did not find ourselves, most probably we were run as `sh COMMAND'
  10576. # in which case we are not to be found in the path.
  10577. if test "x$as_myself" = x; then
  10578. as_myself=$0
  10579. fi
  10580. if test ! -f "$as_myself"; then
  10581. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  10582. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  10583. { (exit 1); exit 1; }; }
  10584. fi
  10585. case $CONFIG_SHELL in
  10586. '')
  10587. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10588. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  10589. do
  10590. IFS=$as_save_IFS
  10591. test -z "$as_dir" && as_dir=.
  10592. for as_base in sh bash ksh sh5; do
  10593. case $as_dir in
  10594. /*)
  10595. if ("$as_dir/$as_base" -c '
  10596. as_lineno_1=$LINENO
  10597. as_lineno_2=$LINENO
  10598. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  10599. test "x$as_lineno_1" != "x$as_lineno_2" &&
  10600. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  10601. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  10602. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  10603. CONFIG_SHELL=$as_dir/$as_base
  10604. export CONFIG_SHELL
  10605. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  10606. fi;;
  10607. esac
  10608. done
  10609. done
  10610. ;;
  10611. esac
  10612. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  10613. # uniformly replaced by the line number. The first 'sed' inserts a
  10614. # line-number line before each line; the second 'sed' does the real
  10615. # work. The second script uses 'N' to pair each line-number line
  10616. # with the numbered line, and appends trailing '-' during
  10617. # substitution so that $LINENO is not a special case at line end.
  10618. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  10619. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  10620. sed '=' <$as_myself |
  10621. sed '
  10622. N
  10623. s,$,-,
  10624. : loop
  10625. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  10626. t loop
  10627. s,-$,,
  10628. s,^['$as_cr_digits']*\n,,
  10629. ' >$as_me.lineno &&
  10630. chmod +x $as_me.lineno ||
  10631. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  10632. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  10633. { (exit 1); exit 1; }; }
  10634. # Don't try to exec as it changes $[0], causing all sort of problems
  10635. # (the dirname of $[0] is not the place where we might find the
  10636. # original and so on. Autoconf is especially sensible to this).
  10637. . ./$as_me.lineno
  10638. # Exit status is that of the last command.
  10639. exit
  10640. }
  10641. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  10642. *c*,-n*) ECHO_N= ECHO_C='
  10643. ' ECHO_T=' ' ;;
  10644. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  10645. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  10646. esac
  10647. if expr a : '\(a\)' >/dev/null 2>&1; then
  10648. as_expr=expr
  10649. else
  10650. as_expr=false
  10651. fi
  10652. rm -f conf$$ conf$$.exe conf$$.file
  10653. echo >conf$$.file
  10654. if ln -s conf$$.file conf$$ 2>/dev/null; then
  10655. # We could just check for DJGPP; but this test a) works b) is more generic
  10656. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  10657. if test -f conf$$.exe; then
  10658. # Don't use ln at all; we don't have any links
  10659. as_ln_s='cp -p'
  10660. else
  10661. as_ln_s='ln -s'
  10662. fi
  10663. elif ln conf$$.file conf$$ 2>/dev/null; then
  10664. as_ln_s=ln
  10665. else
  10666. as_ln_s='cp -p'
  10667. fi
  10668. rm -f conf$$ conf$$.exe conf$$.file
  10669. if mkdir -p . 2>/dev/null; then
  10670. as_mkdir_p=:
  10671. else
  10672. test -d ./-p && rmdir ./-p
  10673. as_mkdir_p=false
  10674. fi
  10675. as_executable_p="test -f"
  10676. # Sed expression to map a string onto a valid CPP name.
  10677. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  10678. # Sed expression to map a string onto a valid variable name.
  10679. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  10680. # IFS
  10681. # We need space, tab and new line, in precisely that order.
  10682. as_nl='
  10683. '
  10684. IFS=" $as_nl"
  10685. # CDPATH.
  10686. $as_unset CDPATH
  10687. exec 6>&1
  10688. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  10689. # report actual input values of CONFIG_FILES etc. instead of their
  10690. # values after options handling. Logging --version etc. is OK.
  10691. exec 5>>config.log
  10692. {
  10693. echo
  10694. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  10695. ## Running $as_me. ##
  10696. _ASBOX
  10697. } >&5
  10698. cat >&5 <<_CSEOF
  10699. This file was extended by $as_me, which was
  10700. generated by GNU Autoconf 2.59. Invocation command line was
  10701. CONFIG_FILES = $CONFIG_FILES
  10702. CONFIG_HEADERS = $CONFIG_HEADERS
  10703. CONFIG_LINKS = $CONFIG_LINKS
  10704. CONFIG_COMMANDS = $CONFIG_COMMANDS
  10705. $ $0 $@
  10706. _CSEOF
  10707. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  10708. echo >&5
  10709. _ACEOF
  10710. # Files that config.status was made for.
  10711. if test -n "$ac_config_files"; then
  10712. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  10713. fi
  10714. if test -n "$ac_config_headers"; then
  10715. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  10716. fi
  10717. if test -n "$ac_config_links"; then
  10718. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  10719. fi
  10720. if test -n "$ac_config_commands"; then
  10721. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  10722. fi
  10723. cat >>$CONFIG_STATUS <<\_ACEOF
  10724. ac_cs_usage="\
  10725. \`$as_me' instantiates files from templates according to the
  10726. current configuration.
  10727. Usage: $0 [OPTIONS] [FILE]...
  10728. -h, --help print this help, then exit
  10729. -V, --version print version number, then exit
  10730. -q, --quiet do not print progress messages
  10731. -d, --debug don't remove temporary files
  10732. --recheck update $as_me by reconfiguring in the same conditions
  10733. --file=FILE[:TEMPLATE]
  10734. instantiate the configuration file FILE
  10735. --header=FILE[:TEMPLATE]
  10736. instantiate the configuration header FILE
  10737. Configuration files:
  10738. $config_files
  10739. Configuration headers:
  10740. $config_headers
  10741. Report bugs to <bug-autoconf@gnu.org>."
  10742. _ACEOF
  10743. cat >>$CONFIG_STATUS <<_ACEOF
  10744. ac_cs_version="\\
  10745. config.status
  10746. configured by $0, generated by GNU Autoconf 2.59,
  10747. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  10748. Copyright (C) 2003 Free Software Foundation, Inc.
  10749. This config.status script is free software; the Free Software Foundation
  10750. gives unlimited permission to copy, distribute and modify it."
  10751. srcdir=$srcdir
  10752. _ACEOF
  10753. cat >>$CONFIG_STATUS <<\_ACEOF
  10754. # If no file are specified by the user, then we need to provide default
  10755. # value. By we need to know if files were specified by the user.
  10756. ac_need_defaults=:
  10757. while test $# != 0
  10758. do
  10759. case $1 in
  10760. --*=*)
  10761. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  10762. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  10763. ac_shift=:
  10764. ;;
  10765. -*)
  10766. ac_option=$1
  10767. ac_optarg=$2
  10768. ac_shift=shift
  10769. ;;
  10770. *) # This is not an option, so the user has probably given explicit
  10771. # arguments.
  10772. ac_option=$1
  10773. ac_need_defaults=false;;
  10774. esac
  10775. case $ac_option in
  10776. # Handling of the options.
  10777. _ACEOF
  10778. cat >>$CONFIG_STATUS <<\_ACEOF
  10779. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  10780. ac_cs_recheck=: ;;
  10781. --version | --vers* | -V )
  10782. echo "$ac_cs_version"; exit 0 ;;
  10783. --he | --h)
  10784. # Conflict between --help and --header
  10785. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  10786. Try \`$0 --help' for more information." >&5
  10787. echo "$as_me: error: ambiguous option: $1
  10788. Try \`$0 --help' for more information." >&2;}
  10789. { (exit 1); exit 1; }; };;
  10790. --help | --hel | -h )
  10791. echo "$ac_cs_usage"; exit 0 ;;
  10792. --debug | --d* | -d )
  10793. debug=: ;;
  10794. --file | --fil | --fi | --f )
  10795. $ac_shift
  10796. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  10797. ac_need_defaults=false;;
  10798. --header | --heade | --head | --hea )
  10799. $ac_shift
  10800. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  10801. ac_need_defaults=false;;
  10802. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  10803. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  10804. ac_cs_silent=: ;;
  10805. # This is an error.
  10806. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  10807. Try \`$0 --help' for more information." >&5
  10808. echo "$as_me: error: unrecognized option: $1
  10809. Try \`$0 --help' for more information." >&2;}
  10810. { (exit 1); exit 1; }; } ;;
  10811. *) ac_config_targets="$ac_config_targets $1" ;;
  10812. esac
  10813. shift
  10814. done
  10815. ac_configure_extra_args=
  10816. if $ac_cs_silent; then
  10817. exec 6>/dev/null
  10818. ac_configure_extra_args="$ac_configure_extra_args --silent"
  10819. fi
  10820. _ACEOF
  10821. cat >>$CONFIG_STATUS <<_ACEOF
  10822. if \$ac_cs_recheck; then
  10823. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  10824. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  10825. fi
  10826. _ACEOF
  10827. cat >>$CONFIG_STATUS <<\_ACEOF
  10828. for ac_config_target in $ac_config_targets
  10829. do
  10830. case "$ac_config_target" in
  10831. # Handling of arguments.
  10832. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  10833. "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  10834. "src/compat/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/compat/Makefile" ;;
  10835. "src/crypto/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/crypto/Makefile" ;;
  10836. "src/mod/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/mod/Makefile" ;;
  10837. "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  10838. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  10839. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  10840. { (exit 1); exit 1; }; };;
  10841. esac
  10842. done
  10843. # If the user did not use the arguments to specify the items to instantiate,
  10844. # then the envvar interface is used. Set only those that are not.
  10845. # We use the long form for the default assignment because of an extremely
  10846. # bizarre bug on SunOS 4.1.3.
  10847. if $ac_need_defaults; then
  10848. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  10849. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  10850. fi
  10851. # Have a temporary directory for convenience. Make it in the build tree
  10852. # simply because there is no reason to put it here, and in addition,
  10853. # creating and moving files from /tmp can sometimes cause problems.
  10854. # Create a temporary directory, and hook for its removal unless debugging.
  10855. $debug ||
  10856. {
  10857. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  10858. trap '{ (exit 1); exit 1; }' 1 2 13 15
  10859. }
  10860. # Create a (secure) tmp directory for tmp files.
  10861. {
  10862. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  10863. test -n "$tmp" && test -d "$tmp"
  10864. } ||
  10865. {
  10866. tmp=./confstat$$-$RANDOM
  10867. (umask 077 && mkdir $tmp)
  10868. } ||
  10869. {
  10870. echo "$me: cannot create a temporary directory in ." >&2
  10871. { (exit 1); exit 1; }
  10872. }
  10873. _ACEOF
  10874. cat >>$CONFIG_STATUS <<_ACEOF
  10875. #
  10876. # CONFIG_FILES section.
  10877. #
  10878. # No need to generate the scripts if there are no CONFIG_FILES.
  10879. # This happens for instance when ./config.status config.h
  10880. if test -n "\$CONFIG_FILES"; then
  10881. # Protect against being on the right side of a sed subst in config.status.
  10882. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  10883. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  10884. s,@SHELL@,$SHELL,;t t
  10885. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  10886. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  10887. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  10888. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  10889. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  10890. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  10891. s,@exec_prefix@,$exec_prefix,;t t
  10892. s,@prefix@,$prefix,;t t
  10893. s,@program_transform_name@,$program_transform_name,;t t
  10894. s,@bindir@,$bindir,;t t
  10895. s,@sbindir@,$sbindir,;t t
  10896. s,@libexecdir@,$libexecdir,;t t
  10897. s,@datadir@,$datadir,;t t
  10898. s,@sysconfdir@,$sysconfdir,;t t
  10899. s,@sharedstatedir@,$sharedstatedir,;t t
  10900. s,@localstatedir@,$localstatedir,;t t
  10901. s,@libdir@,$libdir,;t t
  10902. s,@includedir@,$includedir,;t t
  10903. s,@oldincludedir@,$oldincludedir,;t t
  10904. s,@infodir@,$infodir,;t t
  10905. s,@mandir@,$mandir,;t t
  10906. s,@build_alias@,$build_alias,;t t
  10907. s,@host_alias@,$host_alias,;t t
  10908. s,@target_alias@,$target_alias,;t t
  10909. s,@DEFS@,$DEFS,;t t
  10910. s,@ECHO_C@,$ECHO_C,;t t
  10911. s,@ECHO_N@,$ECHO_N,;t t
  10912. s,@ECHO_T@,$ECHO_T,;t t
  10913. s,@LIBS@,$LIBS,;t t
  10914. s,@egg_ac_parameters@,$egg_ac_parameters,;t t
  10915. s,@CXX@,$CXX,;t t
  10916. s,@CXXFLAGS@,$CXXFLAGS,;t t
  10917. s,@LDFLAGS@,$LDFLAGS,;t t
  10918. s,@CPPFLAGS@,$CPPFLAGS,;t t
  10919. s,@ac_ct_CXX@,$ac_ct_CXX,;t t
  10920. s,@EXEEXT@,$EXEEXT,;t t
  10921. s,@OBJEXT@,$OBJEXT,;t t
  10922. s,@CXXCPP@,$CXXCPP,;t t
  10923. s,@EGREP@,$EGREP,;t t
  10924. s,@CCDEPMODE@,$CCDEPMODE,;t t
  10925. s,@GCC3@,$GCC3,;t t
  10926. s,@SET_MAKE@,$SET_MAKE,;t t
  10927. s,@HEAD_1@,$HEAD_1,;t t
  10928. s,@AWK@,$AWK,;t t
  10929. s,@BASENAME@,$BASENAME,;t t
  10930. s,@OBJCOPY@,$OBJCOPY,;t t
  10931. s,@STRIP@,$STRIP,;t t
  10932. s,@DIFF@,$DIFF,;t t
  10933. s,@UNAME@,$UNAME,;t t
  10934. s,@CCACHE@,$CCACHE,;t t
  10935. s,@DISTCC@,$DISTCC,;t t
  10936. s,@CCDEBUG@,$CCDEBUG,;t t
  10937. s,@ZLIB@,$ZLIB,;t t
  10938. s,@LIBOBJS@,$LIBOBJS,;t t
  10939. s,@VERSION@,$VERSION,;t t
  10940. s,@NUMVER@,$NUMVER,;t t
  10941. s,@MOD_UPDIR@,$MOD_UPDIR,;t t
  10942. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  10943. CEOF
  10944. _ACEOF
  10945. cat >>$CONFIG_STATUS <<\_ACEOF
  10946. # Split the substitutions into bite-sized pieces for seds with
  10947. # small command number limits, like on Digital OSF/1 and HP-UX.
  10948. ac_max_sed_lines=48
  10949. ac_sed_frag=1 # Number of current file.
  10950. ac_beg=1 # First line for current file.
  10951. ac_end=$ac_max_sed_lines # Line after last line for current file.
  10952. ac_more_lines=:
  10953. ac_sed_cmds=
  10954. while $ac_more_lines; do
  10955. if test $ac_beg -gt 1; then
  10956. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  10957. else
  10958. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  10959. fi
  10960. if test ! -s $tmp/subs.frag; then
  10961. ac_more_lines=false
  10962. else
  10963. # The purpose of the label and of the branching condition is to
  10964. # speed up the sed processing (if there are no `@' at all, there
  10965. # is no need to browse any of the substitutions).
  10966. # These are the two extra sed commands mentioned above.
  10967. (echo ':t
  10968. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  10969. if test -z "$ac_sed_cmds"; then
  10970. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  10971. else
  10972. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  10973. fi
  10974. ac_sed_frag=`expr $ac_sed_frag + 1`
  10975. ac_beg=$ac_end
  10976. ac_end=`expr $ac_end + $ac_max_sed_lines`
  10977. fi
  10978. done
  10979. if test -z "$ac_sed_cmds"; then
  10980. ac_sed_cmds=cat
  10981. fi
  10982. fi # test -n "$CONFIG_FILES"
  10983. _ACEOF
  10984. cat >>$CONFIG_STATUS <<\_ACEOF
  10985. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  10986. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  10987. case $ac_file in
  10988. - | *:- | *:-:* ) # input from stdin
  10989. cat >$tmp/stdin
  10990. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  10991. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  10992. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  10993. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  10994. * ) ac_file_in=$ac_file.in ;;
  10995. esac
  10996. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  10997. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  10998. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10999. X"$ac_file" : 'X\(//\)[^/]' \| \
  11000. X"$ac_file" : 'X\(//\)$' \| \
  11001. X"$ac_file" : 'X\(/\)' \| \
  11002. . : '\(.\)' 2>/dev/null ||
  11003. echo X"$ac_file" |
  11004. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11005. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11006. /^X\(\/\/\)$/{ s//\1/; q; }
  11007. /^X\(\/\).*/{ s//\1/; q; }
  11008. s/.*/./; q'`
  11009. { if $as_mkdir_p; then
  11010. mkdir -p "$ac_dir"
  11011. else
  11012. as_dir="$ac_dir"
  11013. as_dirs=
  11014. while test ! -d "$as_dir"; do
  11015. as_dirs="$as_dir $as_dirs"
  11016. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  11017. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11018. X"$as_dir" : 'X\(//\)[^/]' \| \
  11019. X"$as_dir" : 'X\(//\)$' \| \
  11020. X"$as_dir" : 'X\(/\)' \| \
  11021. . : '\(.\)' 2>/dev/null ||
  11022. echo X"$as_dir" |
  11023. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11024. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11025. /^X\(\/\/\)$/{ s//\1/; q; }
  11026. /^X\(\/\).*/{ s//\1/; q; }
  11027. s/.*/./; q'`
  11028. done
  11029. test ! -n "$as_dirs" || mkdir $as_dirs
  11030. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  11031. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  11032. { (exit 1); exit 1; }; }; }
  11033. ac_builddir=.
  11034. if test "$ac_dir" != .; then
  11035. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  11036. # A "../" for each directory in $ac_dir_suffix.
  11037. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  11038. else
  11039. ac_dir_suffix= ac_top_builddir=
  11040. fi
  11041. case $srcdir in
  11042. .) # No --srcdir option. We are building in place.
  11043. ac_srcdir=.
  11044. if test -z "$ac_top_builddir"; then
  11045. ac_top_srcdir=.
  11046. else
  11047. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  11048. fi ;;
  11049. [\\/]* | ?:[\\/]* ) # Absolute path.
  11050. ac_srcdir=$srcdir$ac_dir_suffix;
  11051. ac_top_srcdir=$srcdir ;;
  11052. *) # Relative path.
  11053. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  11054. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  11055. esac
  11056. # Do not use `cd foo && pwd` to compute absolute paths, because
  11057. # the directories may not exist.
  11058. case `pwd` in
  11059. .) ac_abs_builddir="$ac_dir";;
  11060. *)
  11061. case "$ac_dir" in
  11062. .) ac_abs_builddir=`pwd`;;
  11063. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  11064. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  11065. esac;;
  11066. esac
  11067. case $ac_abs_builddir in
  11068. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  11069. *)
  11070. case ${ac_top_builddir}. in
  11071. .) ac_abs_top_builddir=$ac_abs_builddir;;
  11072. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  11073. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  11074. esac;;
  11075. esac
  11076. case $ac_abs_builddir in
  11077. .) ac_abs_srcdir=$ac_srcdir;;
  11078. *)
  11079. case $ac_srcdir in
  11080. .) ac_abs_srcdir=$ac_abs_builddir;;
  11081. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  11082. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  11083. esac;;
  11084. esac
  11085. case $ac_abs_builddir in
  11086. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  11087. *)
  11088. case $ac_top_srcdir in
  11089. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  11090. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  11091. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  11092. esac;;
  11093. esac
  11094. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11095. # use $as_me), people would be surprised to read:
  11096. # /* config.h. Generated by config.status. */
  11097. if test x"$ac_file" = x-; then
  11098. configure_input=
  11099. else
  11100. configure_input="$ac_file. "
  11101. fi
  11102. configure_input=$configure_input"Generated from `echo $ac_file_in |
  11103. sed 's,.*/,,'` by configure."
  11104. # First look for the input files in the build tree, otherwise in the
  11105. # src tree.
  11106. ac_file_inputs=`IFS=:
  11107. for f in $ac_file_in; do
  11108. case $f in
  11109. -) echo $tmp/stdin ;;
  11110. [\\/$]*)
  11111. # Absolute (can't be DOS-style, as IFS=:)
  11112. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11113. echo "$as_me: error: cannot find input file: $f" >&2;}
  11114. { (exit 1); exit 1; }; }
  11115. echo "$f";;
  11116. *) # Relative
  11117. if test -f "$f"; then
  11118. # Build tree
  11119. echo "$f"
  11120. elif test -f "$srcdir/$f"; then
  11121. # Source tree
  11122. echo "$srcdir/$f"
  11123. else
  11124. # /dev/null tree
  11125. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11126. echo "$as_me: error: cannot find input file: $f" >&2;}
  11127. { (exit 1); exit 1; }; }
  11128. fi;;
  11129. esac
  11130. done` || { (exit 1); exit 1; }
  11131. if test x"$ac_file" != x-; then
  11132. { echo "$as_me:$LINENO: creating $ac_file" >&5
  11133. echo "$as_me: creating $ac_file" >&6;}
  11134. rm -f "$ac_file"
  11135. fi
  11136. _ACEOF
  11137. cat >>$CONFIG_STATUS <<_ACEOF
  11138. sed "$ac_vpsub
  11139. $extrasub
  11140. _ACEOF
  11141. cat >>$CONFIG_STATUS <<\_ACEOF
  11142. :t
  11143. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  11144. s,@configure_input@,$configure_input,;t t
  11145. s,@srcdir@,$ac_srcdir,;t t
  11146. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  11147. s,@top_srcdir@,$ac_top_srcdir,;t t
  11148. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  11149. s,@builddir@,$ac_builddir,;t t
  11150. s,@abs_builddir@,$ac_abs_builddir,;t t
  11151. s,@top_builddir@,$ac_top_builddir,;t t
  11152. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  11153. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  11154. rm -f $tmp/stdin
  11155. if test x"$ac_file" != x-; then
  11156. mv $tmp/out $ac_file
  11157. else
  11158. cat $tmp/out
  11159. rm -f $tmp/out
  11160. fi
  11161. done
  11162. _ACEOF
  11163. cat >>$CONFIG_STATUS <<\_ACEOF
  11164. #
  11165. # CONFIG_HEADER section.
  11166. #
  11167. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  11168. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  11169. #
  11170. # ac_d sets the value in "#define NAME VALUE" lines.
  11171. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  11172. ac_dB='[ ].*$,\1#\2'
  11173. ac_dC=' '
  11174. ac_dD=',;t'
  11175. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  11176. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  11177. ac_uB='$,\1#\2define\3'
  11178. ac_uC=' '
  11179. ac_uD=',;t'
  11180. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  11181. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  11182. case $ac_file in
  11183. - | *:- | *:-:* ) # input from stdin
  11184. cat >$tmp/stdin
  11185. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11186. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11187. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11188. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11189. * ) ac_file_in=$ac_file.in ;;
  11190. esac
  11191. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  11192. echo "$as_me: creating $ac_file" >&6;}
  11193. # First look for the input files in the build tree, otherwise in the
  11194. # src tree.
  11195. ac_file_inputs=`IFS=:
  11196. for f in $ac_file_in; do
  11197. case $f in
  11198. -) echo $tmp/stdin ;;
  11199. [\\/$]*)
  11200. # Absolute (can't be DOS-style, as IFS=:)
  11201. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11202. echo "$as_me: error: cannot find input file: $f" >&2;}
  11203. { (exit 1); exit 1; }; }
  11204. # Do quote $f, to prevent DOS paths from being IFS'd.
  11205. echo "$f";;
  11206. *) # Relative
  11207. if test -f "$f"; then
  11208. # Build tree
  11209. echo "$f"
  11210. elif test -f "$srcdir/$f"; then
  11211. # Source tree
  11212. echo "$srcdir/$f"
  11213. else
  11214. # /dev/null tree
  11215. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11216. echo "$as_me: error: cannot find input file: $f" >&2;}
  11217. { (exit 1); exit 1; }; }
  11218. fi;;
  11219. esac
  11220. done` || { (exit 1); exit 1; }
  11221. # Remove the trailing spaces.
  11222. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  11223. _ACEOF
  11224. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  11225. # `conftest.undefs', that substitutes the proper values into
  11226. # config.h.in to produce config.h. The first handles `#define'
  11227. # templates, and the second `#undef' templates.
  11228. # And first: Protect against being on the right side of a sed subst in
  11229. # config.status. Protect against being in an unquoted here document
  11230. # in config.status.
  11231. rm -f conftest.defines conftest.undefs
  11232. # Using a here document instead of a string reduces the quoting nightmare.
  11233. # Putting comments in sed scripts is not portable.
  11234. #
  11235. # `end' is used to avoid that the second main sed command (meant for
  11236. # 0-ary CPP macros) applies to n-ary macro definitions.
  11237. # See the Autoconf documentation for `clear'.
  11238. cat >confdef2sed.sed <<\_ACEOF
  11239. s/[\\&,]/\\&/g
  11240. s,[\\$`],\\&,g
  11241. t clear
  11242. : clear
  11243. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  11244. t end
  11245. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  11246. : end
  11247. _ACEOF
  11248. # If some macros were called several times there might be several times
  11249. # the same #defines, which is useless. Nevertheless, we may not want to
  11250. # sort them, since we want the *last* AC-DEFINE to be honored.
  11251. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  11252. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  11253. rm -f confdef2sed.sed
  11254. # This sed command replaces #undef with comments. This is necessary, for
  11255. # example, in the case of _POSIX_SOURCE, which is predefined and required
  11256. # on some systems where configure will not decide to define it.
  11257. cat >>conftest.undefs <<\_ACEOF
  11258. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  11259. _ACEOF
  11260. # Break up conftest.defines because some shells have a limit on the size
  11261. # of here documents, and old seds have small limits too (100 cmds).
  11262. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  11263. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  11264. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  11265. echo ' :' >>$CONFIG_STATUS
  11266. rm -f conftest.tail
  11267. while grep . conftest.defines >/dev/null
  11268. do
  11269. # Write a limited-size here document to $tmp/defines.sed.
  11270. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  11271. # Speed up: don't consider the non `#define' lines.
  11272. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  11273. # Work around the forget-to-reset-the-flag bug.
  11274. echo 't clr' >>$CONFIG_STATUS
  11275. echo ': clr' >>$CONFIG_STATUS
  11276. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  11277. echo 'CEOF
  11278. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  11279. rm -f $tmp/in
  11280. mv $tmp/out $tmp/in
  11281. ' >>$CONFIG_STATUS
  11282. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  11283. rm -f conftest.defines
  11284. mv conftest.tail conftest.defines
  11285. done
  11286. rm -f conftest.defines
  11287. echo ' fi # grep' >>$CONFIG_STATUS
  11288. echo >>$CONFIG_STATUS
  11289. # Break up conftest.undefs because some shells have a limit on the size
  11290. # of here documents, and old seds have small limits too (100 cmds).
  11291. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  11292. rm -f conftest.tail
  11293. while grep . conftest.undefs >/dev/null
  11294. do
  11295. # Write a limited-size here document to $tmp/undefs.sed.
  11296. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  11297. # Speed up: don't consider the non `#undef'
  11298. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  11299. # Work around the forget-to-reset-the-flag bug.
  11300. echo 't clr' >>$CONFIG_STATUS
  11301. echo ': clr' >>$CONFIG_STATUS
  11302. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  11303. echo 'CEOF
  11304. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  11305. rm -f $tmp/in
  11306. mv $tmp/out $tmp/in
  11307. ' >>$CONFIG_STATUS
  11308. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  11309. rm -f conftest.undefs
  11310. mv conftest.tail conftest.undefs
  11311. done
  11312. rm -f conftest.undefs
  11313. cat >>$CONFIG_STATUS <<\_ACEOF
  11314. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11315. # use $as_me), people would be surprised to read:
  11316. # /* config.h. Generated by config.status. */
  11317. if test x"$ac_file" = x-; then
  11318. echo "/* Generated by configure. */" >$tmp/config.h
  11319. else
  11320. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  11321. fi
  11322. cat $tmp/in >>$tmp/config.h
  11323. rm -f $tmp/in
  11324. if test x"$ac_file" != x-; then
  11325. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  11326. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  11327. echo "$as_me: $ac_file is unchanged" >&6;}
  11328. else
  11329. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  11330. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11331. X"$ac_file" : 'X\(//\)[^/]' \| \
  11332. X"$ac_file" : 'X\(//\)$' \| \
  11333. X"$ac_file" : 'X\(/\)' \| \
  11334. . : '\(.\)' 2>/dev/null ||
  11335. echo X"$ac_file" |
  11336. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11337. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11338. /^X\(\/\/\)$/{ s//\1/; q; }
  11339. /^X\(\/\).*/{ s//\1/; q; }
  11340. s/.*/./; q'`
  11341. { if $as_mkdir_p; then
  11342. mkdir -p "$ac_dir"
  11343. else
  11344. as_dir="$ac_dir"
  11345. as_dirs=
  11346. while test ! -d "$as_dir"; do
  11347. as_dirs="$as_dir $as_dirs"
  11348. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  11349. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11350. X"$as_dir" : 'X\(//\)[^/]' \| \
  11351. X"$as_dir" : 'X\(//\)$' \| \
  11352. X"$as_dir" : 'X\(/\)' \| \
  11353. . : '\(.\)' 2>/dev/null ||
  11354. echo X"$as_dir" |
  11355. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11356. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11357. /^X\(\/\/\)$/{ s//\1/; q; }
  11358. /^X\(\/\).*/{ s//\1/; q; }
  11359. s/.*/./; q'`
  11360. done
  11361. test ! -n "$as_dirs" || mkdir $as_dirs
  11362. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  11363. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  11364. { (exit 1); exit 1; }; }; }
  11365. rm -f $ac_file
  11366. mv $tmp/config.h $ac_file
  11367. fi
  11368. else
  11369. cat $tmp/config.h
  11370. rm -f $tmp/config.h
  11371. fi
  11372. done
  11373. _ACEOF
  11374. cat >>$CONFIG_STATUS <<\_ACEOF
  11375. { (exit 0); exit 0; }
  11376. _ACEOF
  11377. chmod +x $CONFIG_STATUS
  11378. ac_clean_files=$ac_clean_files_save
  11379. # configure is writing to config.log, and then calls config.status.
  11380. # config.status does its own redirection, appending to config.log.
  11381. # Unfortunately, on DOS this fails, as config.log is still kept open
  11382. # by configure, so config.status won't be able to write to it; its
  11383. # output is simply discarded. So we exec the FD to /dev/null,
  11384. # effectively closing config.log, so it can be properly (re)opened and
  11385. # appended to by config.status. When coming back to configure, we
  11386. # need to make the FD available again.
  11387. if test "$no_create" != yes; then
  11388. ac_cs_success=:
  11389. ac_config_status_args=
  11390. test "$silent" = yes &&
  11391. ac_config_status_args="$ac_config_status_args --quiet"
  11392. exec 5>/dev/null
  11393. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  11394. exec 5>>config.log
  11395. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  11396. # would make configure fail if this is the last instruction.
  11397. $ac_cs_success || { (exit 1); exit 1; }
  11398. fi