configure 350 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533
  1. #! /bin/sh
  2. # From configure.ac Revision: 1.47 .
  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. /* By Ruediger Kuhlmann. */
  7481. #include <sys/types.h>
  7482. #if HAVE_UNISTD_H
  7483. # include <unistd.h>
  7484. #endif
  7485. /* Some systems only have a dummy stub for fork() */
  7486. int main ()
  7487. {
  7488. if (fork() < 0)
  7489. exit (1);
  7490. exit (0);
  7491. }
  7492. _ACEOF
  7493. rm -f conftest$ac_exeext
  7494. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7495. (eval $ac_link) 2>&5
  7496. ac_status=$?
  7497. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7498. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7499. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7500. (eval $ac_try) 2>&5
  7501. ac_status=$?
  7502. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7503. (exit $ac_status); }; }; then
  7504. ac_cv_func_fork_works=yes
  7505. else
  7506. echo "$as_me: program exited with status $ac_status" >&5
  7507. echo "$as_me: failed program was:" >&5
  7508. sed 's/^/| /' conftest.$ac_ext >&5
  7509. ( exit $ac_status )
  7510. ac_cv_func_fork_works=no
  7511. fi
  7512. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7513. fi
  7514. fi
  7515. echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
  7516. echo "${ECHO_T}$ac_cv_func_fork_works" >&6
  7517. else
  7518. ac_cv_func_fork_works=$ac_cv_func_fork
  7519. fi
  7520. if test "x$ac_cv_func_fork_works" = xcross; then
  7521. case $host in
  7522. *-*-amigaos* | *-*-msdosdjgpp*)
  7523. # Override, as these systems have only a dummy fork() stub
  7524. ac_cv_func_fork_works=no
  7525. ;;
  7526. *)
  7527. ac_cv_func_fork_works=yes
  7528. ;;
  7529. esac
  7530. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  7531. echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  7532. fi
  7533. ac_cv_func_vfork_works=$ac_cv_func_vfork
  7534. if test "x$ac_cv_func_vfork" = xyes; then
  7535. echo "$as_me:$LINENO: checking for working vfork" >&5
  7536. echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
  7537. if test "${ac_cv_func_vfork_works+set}" = set; then
  7538. echo $ECHO_N "(cached) $ECHO_C" >&6
  7539. else
  7540. if test "$cross_compiling" = yes; then
  7541. ac_cv_func_vfork_works=cross
  7542. else
  7543. cat >conftest.$ac_ext <<_ACEOF
  7544. /* confdefs.h. */
  7545. _ACEOF
  7546. cat confdefs.h >>conftest.$ac_ext
  7547. cat >>conftest.$ac_ext <<_ACEOF
  7548. /* end confdefs.h. */
  7549. /* Thanks to Paul Eggert for this test. */
  7550. #include <stdio.h>
  7551. #include <stdlib.h>
  7552. #include <sys/types.h>
  7553. #include <sys/stat.h>
  7554. #include <sys/wait.h>
  7555. #if HAVE_UNISTD_H
  7556. # include <unistd.h>
  7557. #endif
  7558. #if HAVE_VFORK_H
  7559. # include <vfork.h>
  7560. #endif
  7561. /* On some sparc systems, changes by the child to local and incoming
  7562. argument registers are propagated back to the parent. The compiler
  7563. is told about this with #include <vfork.h>, but some compilers
  7564. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  7565. static variable whose address is put into a register that is
  7566. clobbered by the vfork. */
  7567. static void
  7568. #ifdef __cplusplus
  7569. sparc_address_test (int arg)
  7570. # else
  7571. sparc_address_test (arg) int arg;
  7572. #endif
  7573. {
  7574. static pid_t child;
  7575. if (!child) {
  7576. child = vfork ();
  7577. if (child < 0) {
  7578. perror ("vfork");
  7579. _exit(2);
  7580. }
  7581. if (!child) {
  7582. arg = getpid();
  7583. write(-1, "", 0);
  7584. _exit (arg);
  7585. }
  7586. }
  7587. }
  7588. int
  7589. main ()
  7590. {
  7591. pid_t parent = getpid ();
  7592. pid_t child;
  7593. sparc_address_test (0);
  7594. child = vfork ();
  7595. if (child == 0) {
  7596. /* Here is another test for sparc vfork register problems. This
  7597. test uses lots of local variables, at least as many local
  7598. variables as main has allocated so far including compiler
  7599. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  7600. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  7601. reuse the register of parent for one of the local variables,
  7602. since it will think that parent can't possibly be used any more
  7603. in this routine. Assigning to the local variable will thus
  7604. munge parent in the parent process. */
  7605. pid_t
  7606. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  7607. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  7608. /* Convince the compiler that p..p7 are live; otherwise, it might
  7609. use the same hardware register for all 8 local variables. */
  7610. if (p != p1 || p != p2 || p != p3 || p != p4
  7611. || p != p5 || p != p6 || p != p7)
  7612. _exit(1);
  7613. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  7614. from child file descriptors. If the child closes a descriptor
  7615. before it execs or exits, this munges the parent's descriptor
  7616. as well. Test for this by closing stdout in the child. */
  7617. _exit(close(fileno(stdout)) != 0);
  7618. } else {
  7619. int status;
  7620. struct stat st;
  7621. while (wait(&status) != child)
  7622. ;
  7623. exit(
  7624. /* Was there some problem with vforking? */
  7625. child < 0
  7626. /* Did the child fail? (This shouldn't happen.) */
  7627. || status
  7628. /* Did the vfork/compiler bug occur? */
  7629. || parent != getpid()
  7630. /* Did the file descriptor bug occur? */
  7631. || fstat(fileno(stdout), &st) != 0
  7632. );
  7633. }
  7634. }
  7635. _ACEOF
  7636. rm -f conftest$ac_exeext
  7637. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7638. (eval $ac_link) 2>&5
  7639. ac_status=$?
  7640. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7641. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7642. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7643. (eval $ac_try) 2>&5
  7644. ac_status=$?
  7645. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7646. (exit $ac_status); }; }; then
  7647. ac_cv_func_vfork_works=yes
  7648. else
  7649. echo "$as_me: program exited with status $ac_status" >&5
  7650. echo "$as_me: failed program was:" >&5
  7651. sed 's/^/| /' conftest.$ac_ext >&5
  7652. ( exit $ac_status )
  7653. ac_cv_func_vfork_works=no
  7654. fi
  7655. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7656. fi
  7657. fi
  7658. echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
  7659. echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
  7660. fi;
  7661. if test "x$ac_cv_func_fork_works" = xcross; then
  7662. ac_cv_func_vfork_works=$ac_cv_func_vfork
  7663. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  7664. echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  7665. fi
  7666. if test "x$ac_cv_func_vfork_works" = xyes; then
  7667. cat >>confdefs.h <<\_ACEOF
  7668. #define HAVE_WORKING_VFORK 1
  7669. _ACEOF
  7670. else
  7671. cat >>confdefs.h <<\_ACEOF
  7672. #define vfork fork
  7673. _ACEOF
  7674. fi
  7675. if test "x$ac_cv_func_fork_works" = xyes; then
  7676. cat >>confdefs.h <<\_ACEOF
  7677. #define HAVE_WORKING_FORK 1
  7678. _ACEOF
  7679. fi
  7680. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  7681. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  7682. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  7683. echo $ECHO_N "(cached) $ECHO_C" >&6
  7684. else
  7685. rm -f conftest.sym conftest.file
  7686. echo >conftest.file
  7687. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  7688. if test "$cross_compiling" = yes; then
  7689. ac_cv_func_lstat_dereferences_slashed_symlink=no
  7690. else
  7691. cat >conftest.$ac_ext <<_ACEOF
  7692. /* confdefs.h. */
  7693. _ACEOF
  7694. cat confdefs.h >>conftest.$ac_ext
  7695. cat >>conftest.$ac_ext <<_ACEOF
  7696. /* end confdefs.h. */
  7697. $ac_includes_default
  7698. int
  7699. main ()
  7700. {
  7701. struct stat sbuf;
  7702. /* Linux will dereference the symlink and fail.
  7703. That is better in the sense that it means we will not
  7704. have to compile and use the lstat wrapper. */
  7705. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  7706. ;
  7707. return 0;
  7708. }
  7709. _ACEOF
  7710. rm -f conftest$ac_exeext
  7711. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7712. (eval $ac_link) 2>&5
  7713. ac_status=$?
  7714. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7715. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7716. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7717. (eval $ac_try) 2>&5
  7718. ac_status=$?
  7719. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7720. (exit $ac_status); }; }; then
  7721. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  7722. else
  7723. echo "$as_me: program exited with status $ac_status" >&5
  7724. echo "$as_me: failed program was:" >&5
  7725. sed 's/^/| /' conftest.$ac_ext >&5
  7726. ( exit $ac_status )
  7727. ac_cv_func_lstat_dereferences_slashed_symlink=no
  7728. fi
  7729. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7730. fi
  7731. else
  7732. # If the `ln -s' command failed, then we probably don't even
  7733. # have an lstat function.
  7734. ac_cv_func_lstat_dereferences_slashed_symlink=no
  7735. fi
  7736. rm -f conftest.sym conftest.file
  7737. fi
  7738. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  7739. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  7740. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  7741. cat >>confdefs.h <<_ACEOF
  7742. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  7743. _ACEOF
  7744. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  7745. case $LIBOBJS in
  7746. "lstat.$ac_objext" | \
  7747. *" lstat.$ac_objext" | \
  7748. "lstat.$ac_objext "* | \
  7749. *" lstat.$ac_objext "* ) ;;
  7750. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  7751. esac
  7752. fi
  7753. echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
  7754. echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
  7755. if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
  7756. echo $ECHO_N "(cached) $ECHO_C" >&6
  7757. else
  7758. if test "$cross_compiling" = yes; then
  7759. ac_cv_func_lstat_empty_string_bug=yes
  7760. else
  7761. cat >conftest.$ac_ext <<_ACEOF
  7762. /* confdefs.h. */
  7763. _ACEOF
  7764. cat confdefs.h >>conftest.$ac_ext
  7765. cat >>conftest.$ac_ext <<_ACEOF
  7766. /* end confdefs.h. */
  7767. $ac_includes_default
  7768. int
  7769. main ()
  7770. {
  7771. struct stat sbuf;
  7772. exit (lstat ("", &sbuf) ? 1 : 0);
  7773. ;
  7774. return 0;
  7775. }
  7776. _ACEOF
  7777. rm -f conftest$ac_exeext
  7778. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7779. (eval $ac_link) 2>&5
  7780. ac_status=$?
  7781. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7782. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7783. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7784. (eval $ac_try) 2>&5
  7785. ac_status=$?
  7786. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7787. (exit $ac_status); }; }; then
  7788. ac_cv_func_lstat_empty_string_bug=yes
  7789. else
  7790. echo "$as_me: program exited with status $ac_status" >&5
  7791. echo "$as_me: failed program was:" >&5
  7792. sed 's/^/| /' conftest.$ac_ext >&5
  7793. ( exit $ac_status )
  7794. ac_cv_func_lstat_empty_string_bug=no
  7795. fi
  7796. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7797. fi
  7798. fi
  7799. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
  7800. echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
  7801. if test $ac_cv_func_lstat_empty_string_bug = yes; then
  7802. case $LIBOBJS in
  7803. "lstat.$ac_objext" | \
  7804. *" lstat.$ac_objext" | \
  7805. "lstat.$ac_objext "* | \
  7806. *" lstat.$ac_objext "* ) ;;
  7807. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  7808. esac
  7809. cat >>confdefs.h <<_ACEOF
  7810. #define HAVE_LSTAT_EMPTY_STRING_BUG 1
  7811. _ACEOF
  7812. fi
  7813. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  7814. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  7815. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  7816. echo $ECHO_N "(cached) $ECHO_C" >&6
  7817. else
  7818. rm -f conftest.sym conftest.file
  7819. echo >conftest.file
  7820. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  7821. if test "$cross_compiling" = yes; then
  7822. ac_cv_func_lstat_dereferences_slashed_symlink=no
  7823. else
  7824. cat >conftest.$ac_ext <<_ACEOF
  7825. /* confdefs.h. */
  7826. _ACEOF
  7827. cat confdefs.h >>conftest.$ac_ext
  7828. cat >>conftest.$ac_ext <<_ACEOF
  7829. /* end confdefs.h. */
  7830. $ac_includes_default
  7831. int
  7832. main ()
  7833. {
  7834. struct stat sbuf;
  7835. /* Linux will dereference the symlink and fail.
  7836. That is better in the sense that it means we will not
  7837. have to compile and use the lstat wrapper. */
  7838. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  7839. ;
  7840. return 0;
  7841. }
  7842. _ACEOF
  7843. rm -f conftest$ac_exeext
  7844. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7845. (eval $ac_link) 2>&5
  7846. ac_status=$?
  7847. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7848. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7849. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7850. (eval $ac_try) 2>&5
  7851. ac_status=$?
  7852. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7853. (exit $ac_status); }; }; then
  7854. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  7855. else
  7856. echo "$as_me: program exited with status $ac_status" >&5
  7857. echo "$as_me: failed program was:" >&5
  7858. sed 's/^/| /' conftest.$ac_ext >&5
  7859. ( exit $ac_status )
  7860. ac_cv_func_lstat_dereferences_slashed_symlink=no
  7861. fi
  7862. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7863. fi
  7864. else
  7865. # If the `ln -s' command failed, then we probably don't even
  7866. # have an lstat function.
  7867. ac_cv_func_lstat_dereferences_slashed_symlink=no
  7868. fi
  7869. rm -f conftest.sym conftest.file
  7870. fi
  7871. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  7872. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  7873. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  7874. cat >>confdefs.h <<_ACEOF
  7875. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  7876. _ACEOF
  7877. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  7878. case $LIBOBJS in
  7879. "lstat.$ac_objext" | \
  7880. *" lstat.$ac_objext" | \
  7881. "lstat.$ac_objext "* | \
  7882. *" lstat.$ac_objext "* ) ;;
  7883. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  7884. esac
  7885. fi
  7886. for ac_header in stdlib.h
  7887. do
  7888. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7889. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7890. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7891. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7892. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7893. echo $ECHO_N "(cached) $ECHO_C" >&6
  7894. fi
  7895. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7896. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7897. else
  7898. # Is the header compilable?
  7899. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7900. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  7901. cat >conftest.$ac_ext <<_ACEOF
  7902. /* confdefs.h. */
  7903. _ACEOF
  7904. cat confdefs.h >>conftest.$ac_ext
  7905. cat >>conftest.$ac_ext <<_ACEOF
  7906. /* end confdefs.h. */
  7907. $ac_includes_default
  7908. #include <$ac_header>
  7909. _ACEOF
  7910. rm -f conftest.$ac_objext
  7911. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7912. (eval $ac_compile) 2>conftest.er1
  7913. ac_status=$?
  7914. grep -v '^ *+' conftest.er1 >conftest.err
  7915. rm -f conftest.er1
  7916. cat conftest.err >&5
  7917. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7918. (exit $ac_status); } &&
  7919. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  7920. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7921. (eval $ac_try) 2>&5
  7922. ac_status=$?
  7923. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7924. (exit $ac_status); }; } &&
  7925. { ac_try='test -s conftest.$ac_objext'
  7926. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7927. (eval $ac_try) 2>&5
  7928. ac_status=$?
  7929. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7930. (exit $ac_status); }; }; then
  7931. ac_header_compiler=yes
  7932. else
  7933. echo "$as_me: failed program was:" >&5
  7934. sed 's/^/| /' conftest.$ac_ext >&5
  7935. ac_header_compiler=no
  7936. fi
  7937. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7938. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7939. echo "${ECHO_T}$ac_header_compiler" >&6
  7940. # Is the header present?
  7941. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7942. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  7943. cat >conftest.$ac_ext <<_ACEOF
  7944. /* confdefs.h. */
  7945. _ACEOF
  7946. cat confdefs.h >>conftest.$ac_ext
  7947. cat >>conftest.$ac_ext <<_ACEOF
  7948. /* end confdefs.h. */
  7949. #include <$ac_header>
  7950. _ACEOF
  7951. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  7952. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  7953. ac_status=$?
  7954. grep -v '^ *+' conftest.er1 >conftest.err
  7955. rm -f conftest.er1
  7956. cat conftest.err >&5
  7957. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7958. (exit $ac_status); } >/dev/null; then
  7959. if test -s conftest.err; then
  7960. ac_cpp_err=$ac_cxx_preproc_warn_flag
  7961. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  7962. else
  7963. ac_cpp_err=
  7964. fi
  7965. else
  7966. ac_cpp_err=yes
  7967. fi
  7968. if test -z "$ac_cpp_err"; then
  7969. ac_header_preproc=yes
  7970. else
  7971. echo "$as_me: failed program was:" >&5
  7972. sed 's/^/| /' conftest.$ac_ext >&5
  7973. ac_header_preproc=no
  7974. fi
  7975. rm -f conftest.err conftest.$ac_ext
  7976. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7977. echo "${ECHO_T}$ac_header_preproc" >&6
  7978. # So? What about this header?
  7979. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  7980. yes:no: )
  7981. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7982. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7983. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7984. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7985. ac_header_preproc=yes
  7986. ;;
  7987. no:yes:* )
  7988. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7989. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7990. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7991. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7992. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7993. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7994. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7995. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7996. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7997. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7998. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7999. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8000. (
  8001. cat <<\_ASBOX
  8002. ## ------------------------------------------ ##
  8003. ## Report this to the AC_PACKAGE_NAME lists. ##
  8004. ## ------------------------------------------ ##
  8005. _ASBOX
  8006. ) |
  8007. sed "s/^/$as_me: WARNING: /" >&2
  8008. ;;
  8009. esac
  8010. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8011. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8012. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8013. echo $ECHO_N "(cached) $ECHO_C" >&6
  8014. else
  8015. eval "$as_ac_Header=\$ac_header_preproc"
  8016. fi
  8017. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8018. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8019. fi
  8020. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8021. cat >>confdefs.h <<_ACEOF
  8022. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8023. _ACEOF
  8024. fi
  8025. done
  8026. echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  8027. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
  8028. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  8029. echo $ECHO_N "(cached) $ECHO_C" >&6
  8030. else
  8031. if test "$cross_compiling" = yes; then
  8032. ac_cv_func_malloc_0_nonnull=no
  8033. else
  8034. cat >conftest.$ac_ext <<_ACEOF
  8035. /* confdefs.h. */
  8036. _ACEOF
  8037. cat confdefs.h >>conftest.$ac_ext
  8038. cat >>conftest.$ac_ext <<_ACEOF
  8039. /* end confdefs.h. */
  8040. #if STDC_HEADERS || HAVE_STDLIB_H
  8041. # include <stdlib.h>
  8042. #else
  8043. char *malloc ();
  8044. #endif
  8045. int
  8046. main ()
  8047. {
  8048. exit (malloc (0) ? 0 : 1);
  8049. ;
  8050. return 0;
  8051. }
  8052. _ACEOF
  8053. rm -f conftest$ac_exeext
  8054. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8055. (eval $ac_link) 2>&5
  8056. ac_status=$?
  8057. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8058. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8059. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8060. (eval $ac_try) 2>&5
  8061. ac_status=$?
  8062. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8063. (exit $ac_status); }; }; then
  8064. ac_cv_func_malloc_0_nonnull=yes
  8065. else
  8066. echo "$as_me: program exited with status $ac_status" >&5
  8067. echo "$as_me: failed program was:" >&5
  8068. sed 's/^/| /' conftest.$ac_ext >&5
  8069. ( exit $ac_status )
  8070. ac_cv_func_malloc_0_nonnull=no
  8071. fi
  8072. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8073. fi
  8074. fi
  8075. echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  8076. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
  8077. if test $ac_cv_func_malloc_0_nonnull = yes; then
  8078. cat >>confdefs.h <<\_ACEOF
  8079. #define HAVE_MALLOC 1
  8080. _ACEOF
  8081. else
  8082. cat >>confdefs.h <<\_ACEOF
  8083. #define HAVE_MALLOC 0
  8084. _ACEOF
  8085. case $LIBOBJS in
  8086. "malloc.$ac_objext" | \
  8087. *" malloc.$ac_objext" | \
  8088. "malloc.$ac_objext "* | \
  8089. *" malloc.$ac_objext "* ) ;;
  8090. *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
  8091. esac
  8092. cat >>confdefs.h <<\_ACEOF
  8093. #define malloc rpl_malloc
  8094. _ACEOF
  8095. fi
  8096. for ac_header in stdlib.h sys/time.h unistd.h
  8097. do
  8098. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8099. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8100. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8101. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8102. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8103. echo $ECHO_N "(cached) $ECHO_C" >&6
  8104. fi
  8105. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8106. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8107. else
  8108. # Is the header compilable?
  8109. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8110. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8111. cat >conftest.$ac_ext <<_ACEOF
  8112. /* confdefs.h. */
  8113. _ACEOF
  8114. cat confdefs.h >>conftest.$ac_ext
  8115. cat >>conftest.$ac_ext <<_ACEOF
  8116. /* end confdefs.h. */
  8117. $ac_includes_default
  8118. #include <$ac_header>
  8119. _ACEOF
  8120. rm -f conftest.$ac_objext
  8121. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8122. (eval $ac_compile) 2>conftest.er1
  8123. ac_status=$?
  8124. grep -v '^ *+' conftest.er1 >conftest.err
  8125. rm -f conftest.er1
  8126. cat conftest.err >&5
  8127. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8128. (exit $ac_status); } &&
  8129. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  8130. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8131. (eval $ac_try) 2>&5
  8132. ac_status=$?
  8133. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8134. (exit $ac_status); }; } &&
  8135. { ac_try='test -s conftest.$ac_objext'
  8136. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8137. (eval $ac_try) 2>&5
  8138. ac_status=$?
  8139. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8140. (exit $ac_status); }; }; then
  8141. ac_header_compiler=yes
  8142. else
  8143. echo "$as_me: failed program was:" >&5
  8144. sed 's/^/| /' conftest.$ac_ext >&5
  8145. ac_header_compiler=no
  8146. fi
  8147. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8148. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8149. echo "${ECHO_T}$ac_header_compiler" >&6
  8150. # Is the header present?
  8151. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8152. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8153. cat >conftest.$ac_ext <<_ACEOF
  8154. /* confdefs.h. */
  8155. _ACEOF
  8156. cat confdefs.h >>conftest.$ac_ext
  8157. cat >>conftest.$ac_ext <<_ACEOF
  8158. /* end confdefs.h. */
  8159. #include <$ac_header>
  8160. _ACEOF
  8161. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8162. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8163. ac_status=$?
  8164. grep -v '^ *+' conftest.er1 >conftest.err
  8165. rm -f conftest.er1
  8166. cat conftest.err >&5
  8167. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8168. (exit $ac_status); } >/dev/null; then
  8169. if test -s conftest.err; then
  8170. ac_cpp_err=$ac_cxx_preproc_warn_flag
  8171. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  8172. else
  8173. ac_cpp_err=
  8174. fi
  8175. else
  8176. ac_cpp_err=yes
  8177. fi
  8178. if test -z "$ac_cpp_err"; then
  8179. ac_header_preproc=yes
  8180. else
  8181. echo "$as_me: failed program was:" >&5
  8182. sed 's/^/| /' conftest.$ac_ext >&5
  8183. ac_header_preproc=no
  8184. fi
  8185. rm -f conftest.err conftest.$ac_ext
  8186. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8187. echo "${ECHO_T}$ac_header_preproc" >&6
  8188. # So? What about this header?
  8189. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  8190. yes:no: )
  8191. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8192. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8193. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8194. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8195. ac_header_preproc=yes
  8196. ;;
  8197. no:yes:* )
  8198. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8199. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8200. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8201. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8202. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8203. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8204. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8205. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8206. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8207. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8208. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8209. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8210. (
  8211. cat <<\_ASBOX
  8212. ## ------------------------------------------ ##
  8213. ## Report this to the AC_PACKAGE_NAME lists. ##
  8214. ## ------------------------------------------ ##
  8215. _ASBOX
  8216. ) |
  8217. sed "s/^/$as_me: WARNING: /" >&2
  8218. ;;
  8219. esac
  8220. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8221. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8222. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8223. echo $ECHO_N "(cached) $ECHO_C" >&6
  8224. else
  8225. eval "$as_ac_Header=\$ac_header_preproc"
  8226. fi
  8227. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8228. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8229. fi
  8230. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8231. cat >>confdefs.h <<_ACEOF
  8232. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8233. _ACEOF
  8234. fi
  8235. done
  8236. for ac_func in alarm
  8237. do
  8238. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8239. echo "$as_me:$LINENO: checking for $ac_func" >&5
  8240. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  8241. if eval "test \"\${$as_ac_var+set}\" = set"; then
  8242. echo $ECHO_N "(cached) $ECHO_C" >&6
  8243. else
  8244. cat >conftest.$ac_ext <<_ACEOF
  8245. /* confdefs.h. */
  8246. _ACEOF
  8247. cat confdefs.h >>conftest.$ac_ext
  8248. cat >>conftest.$ac_ext <<_ACEOF
  8249. /* end confdefs.h. */
  8250. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8251. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8252. #define $ac_func innocuous_$ac_func
  8253. /* System header to define __stub macros and hopefully few prototypes,
  8254. which can conflict with char $ac_func (); below.
  8255. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8256. <limits.h> exists even on freestanding compilers. */
  8257. #ifdef __STDC__
  8258. # include <limits.h>
  8259. #else
  8260. # include <assert.h>
  8261. #endif
  8262. #undef $ac_func
  8263. /* Override any gcc2 internal prototype to avoid an error. */
  8264. #ifdef __cplusplus
  8265. extern "C"
  8266. {
  8267. #endif
  8268. /* We use char because int might match the return type of a gcc2
  8269. builtin and then its argument prototype would still apply. */
  8270. char $ac_func ();
  8271. /* The GNU C library defines this for functions which it implements
  8272. to always fail with ENOSYS. Some functions are actually named
  8273. something starting with __ and the normal name is an alias. */
  8274. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  8275. choke me
  8276. #else
  8277. char (*f) () = $ac_func;
  8278. #endif
  8279. #ifdef __cplusplus
  8280. }
  8281. #endif
  8282. int
  8283. main ()
  8284. {
  8285. return f != $ac_func;
  8286. ;
  8287. return 0;
  8288. }
  8289. _ACEOF
  8290. rm -f conftest.$ac_objext conftest$ac_exeext
  8291. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8292. (eval $ac_link) 2>conftest.er1
  8293. ac_status=$?
  8294. grep -v '^ *+' conftest.er1 >conftest.err
  8295. rm -f conftest.er1
  8296. cat conftest.err >&5
  8297. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8298. (exit $ac_status); } &&
  8299. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  8300. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8301. (eval $ac_try) 2>&5
  8302. ac_status=$?
  8303. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8304. (exit $ac_status); }; } &&
  8305. { ac_try='test -s conftest$ac_exeext'
  8306. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8307. (eval $ac_try) 2>&5
  8308. ac_status=$?
  8309. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8310. (exit $ac_status); }; }; then
  8311. eval "$as_ac_var=yes"
  8312. else
  8313. echo "$as_me: failed program was:" >&5
  8314. sed 's/^/| /' conftest.$ac_ext >&5
  8315. eval "$as_ac_var=no"
  8316. fi
  8317. rm -f conftest.err conftest.$ac_objext \
  8318. conftest$ac_exeext conftest.$ac_ext
  8319. fi
  8320. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  8321. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  8322. if test `eval echo '${'$as_ac_var'}'` = yes; then
  8323. cat >>confdefs.h <<_ACEOF
  8324. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8325. _ACEOF
  8326. fi
  8327. done
  8328. echo "$as_me:$LINENO: checking for working mktime" >&5
  8329. echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
  8330. if test "${ac_cv_func_working_mktime+set}" = set; then
  8331. echo $ECHO_N "(cached) $ECHO_C" >&6
  8332. else
  8333. if test "$cross_compiling" = yes; then
  8334. ac_cv_func_working_mktime=no
  8335. else
  8336. cat >conftest.$ac_ext <<_ACEOF
  8337. /* confdefs.h. */
  8338. _ACEOF
  8339. cat confdefs.h >>conftest.$ac_ext
  8340. cat >>conftest.$ac_ext <<_ACEOF
  8341. /* end confdefs.h. */
  8342. /* Test program from Paul Eggert and Tony Leneis. */
  8343. #if TIME_WITH_SYS_TIME
  8344. # include <sys/time.h>
  8345. # include <time.h>
  8346. #else
  8347. # if HAVE_SYS_TIME_H
  8348. # include <sys/time.h>
  8349. # else
  8350. # include <time.h>
  8351. # endif
  8352. #endif
  8353. #if HAVE_STDLIB_H
  8354. # include <stdlib.h>
  8355. #endif
  8356. #if HAVE_UNISTD_H
  8357. # include <unistd.h>
  8358. #endif
  8359. #if !HAVE_ALARM
  8360. # define alarm(X) /* empty */
  8361. #endif
  8362. /* Work around redefinition to rpl_putenv by other config tests. */
  8363. #undef putenv
  8364. static time_t time_t_max;
  8365. static time_t time_t_min;
  8366. /* Values we'll use to set the TZ environment variable. */
  8367. static char *tz_strings[] = {
  8368. (char *) 0, "TZ=GMT0", "TZ=JST-9",
  8369. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  8370. };
  8371. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  8372. /* Fail if mktime fails to convert a date in the spring-forward gap.
  8373. Based on a problem report from Andreas Jaeger. */
  8374. static void
  8375. spring_forward_gap ()
  8376. {
  8377. /* glibc (up to about 1998-10-07) failed this test. */
  8378. struct tm tm;
  8379. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  8380. instead of "TZ=America/Vancouver" in order to detect the bug even
  8381. on systems that don't support the Olson extension, or don't have the
  8382. full zoneinfo tables installed. */
  8383. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  8384. tm.tm_year = 98;
  8385. tm.tm_mon = 3;
  8386. tm.tm_mday = 5;
  8387. tm.tm_hour = 2;
  8388. tm.tm_min = 0;
  8389. tm.tm_sec = 0;
  8390. tm.tm_isdst = -1;
  8391. if (mktime (&tm) == (time_t)-1)
  8392. exit (1);
  8393. }
  8394. static void
  8395. mktime_test1 (now)
  8396. time_t now;
  8397. {
  8398. struct tm *lt;
  8399. if ((lt = localtime (&now)) && mktime (lt) != now)
  8400. exit (1);
  8401. }
  8402. static void
  8403. mktime_test (now)
  8404. time_t now;
  8405. {
  8406. mktime_test1 (now);
  8407. mktime_test1 ((time_t) (time_t_max - now));
  8408. mktime_test1 ((time_t) (time_t_min + now));
  8409. }
  8410. static void
  8411. irix_6_4_bug ()
  8412. {
  8413. /* Based on code from Ariel Faigon. */
  8414. struct tm tm;
  8415. tm.tm_year = 96;
  8416. tm.tm_mon = 3;
  8417. tm.tm_mday = 0;
  8418. tm.tm_hour = 0;
  8419. tm.tm_min = 0;
  8420. tm.tm_sec = 0;
  8421. tm.tm_isdst = -1;
  8422. mktime (&tm);
  8423. if (tm.tm_mon != 2 || tm.tm_mday != 31)
  8424. exit (1);
  8425. }
  8426. static void
  8427. bigtime_test (j)
  8428. int j;
  8429. {
  8430. struct tm tm;
  8431. time_t now;
  8432. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  8433. now = mktime (&tm);
  8434. if (now != (time_t) -1)
  8435. {
  8436. struct tm *lt = localtime (&now);
  8437. if (! (lt
  8438. && lt->tm_year == tm.tm_year
  8439. && lt->tm_mon == tm.tm_mon
  8440. && lt->tm_mday == tm.tm_mday
  8441. && lt->tm_hour == tm.tm_hour
  8442. && lt->tm_min == tm.tm_min
  8443. && lt->tm_sec == tm.tm_sec
  8444. && lt->tm_yday == tm.tm_yday
  8445. && lt->tm_wday == tm.tm_wday
  8446. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  8447. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  8448. exit (1);
  8449. }
  8450. }
  8451. int
  8452. main ()
  8453. {
  8454. time_t t, delta;
  8455. int i, j;
  8456. /* This test makes some buggy mktime implementations loop.
  8457. Give up after 60 seconds; a mktime slower than that
  8458. isn't worth using anyway. */
  8459. alarm (60);
  8460. for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
  8461. continue;
  8462. time_t_max--;
  8463. if ((time_t) -1 < 0)
  8464. for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
  8465. continue;
  8466. delta = time_t_max / 997; /* a suitable prime number */
  8467. for (i = 0; i < N_STRINGS; i++)
  8468. {
  8469. if (tz_strings[i])
  8470. putenv (tz_strings[i]);
  8471. for (t = 0; t <= time_t_max - delta; t += delta)
  8472. mktime_test (t);
  8473. mktime_test ((time_t) 1);
  8474. mktime_test ((time_t) (60 * 60));
  8475. mktime_test ((time_t) (60 * 60 * 24));
  8476. for (j = 1; 0 < j; j *= 2)
  8477. bigtime_test (j);
  8478. bigtime_test (j - 1);
  8479. }
  8480. irix_6_4_bug ();
  8481. spring_forward_gap ();
  8482. exit (0);
  8483. }
  8484. _ACEOF
  8485. rm -f conftest$ac_exeext
  8486. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8487. (eval $ac_link) 2>&5
  8488. ac_status=$?
  8489. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8490. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8491. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8492. (eval $ac_try) 2>&5
  8493. ac_status=$?
  8494. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8495. (exit $ac_status); }; }; then
  8496. ac_cv_func_working_mktime=yes
  8497. else
  8498. echo "$as_me: program exited with status $ac_status" >&5
  8499. echo "$as_me: failed program was:" >&5
  8500. sed 's/^/| /' conftest.$ac_ext >&5
  8501. ( exit $ac_status )
  8502. ac_cv_func_working_mktime=no
  8503. fi
  8504. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8505. fi
  8506. fi
  8507. echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
  8508. echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
  8509. if test $ac_cv_func_working_mktime = no; then
  8510. case $LIBOBJS in
  8511. "mktime.$ac_objext" | \
  8512. *" mktime.$ac_objext" | \
  8513. "mktime.$ac_objext "* | \
  8514. *" mktime.$ac_objext "* ) ;;
  8515. *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
  8516. esac
  8517. fi
  8518. for ac_header in stdlib.h unistd.h
  8519. do
  8520. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8521. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8522. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8523. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8524. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8525. echo $ECHO_N "(cached) $ECHO_C" >&6
  8526. fi
  8527. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8528. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8529. else
  8530. # Is the header compilable?
  8531. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8532. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8533. cat >conftest.$ac_ext <<_ACEOF
  8534. /* confdefs.h. */
  8535. _ACEOF
  8536. cat confdefs.h >>conftest.$ac_ext
  8537. cat >>conftest.$ac_ext <<_ACEOF
  8538. /* end confdefs.h. */
  8539. $ac_includes_default
  8540. #include <$ac_header>
  8541. _ACEOF
  8542. rm -f conftest.$ac_objext
  8543. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8544. (eval $ac_compile) 2>conftest.er1
  8545. ac_status=$?
  8546. grep -v '^ *+' conftest.er1 >conftest.err
  8547. rm -f conftest.er1
  8548. cat conftest.err >&5
  8549. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8550. (exit $ac_status); } &&
  8551. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  8552. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8553. (eval $ac_try) 2>&5
  8554. ac_status=$?
  8555. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8556. (exit $ac_status); }; } &&
  8557. { ac_try='test -s conftest.$ac_objext'
  8558. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8559. (eval $ac_try) 2>&5
  8560. ac_status=$?
  8561. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8562. (exit $ac_status); }; }; then
  8563. ac_header_compiler=yes
  8564. else
  8565. echo "$as_me: failed program was:" >&5
  8566. sed 's/^/| /' conftest.$ac_ext >&5
  8567. ac_header_compiler=no
  8568. fi
  8569. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8570. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8571. echo "${ECHO_T}$ac_header_compiler" >&6
  8572. # Is the header present?
  8573. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8574. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8575. cat >conftest.$ac_ext <<_ACEOF
  8576. /* confdefs.h. */
  8577. _ACEOF
  8578. cat confdefs.h >>conftest.$ac_ext
  8579. cat >>conftest.$ac_ext <<_ACEOF
  8580. /* end confdefs.h. */
  8581. #include <$ac_header>
  8582. _ACEOF
  8583. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8584. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8585. ac_status=$?
  8586. grep -v '^ *+' conftest.er1 >conftest.err
  8587. rm -f conftest.er1
  8588. cat conftest.err >&5
  8589. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8590. (exit $ac_status); } >/dev/null; then
  8591. if test -s conftest.err; then
  8592. ac_cpp_err=$ac_cxx_preproc_warn_flag
  8593. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  8594. else
  8595. ac_cpp_err=
  8596. fi
  8597. else
  8598. ac_cpp_err=yes
  8599. fi
  8600. if test -z "$ac_cpp_err"; then
  8601. ac_header_preproc=yes
  8602. else
  8603. echo "$as_me: failed program was:" >&5
  8604. sed 's/^/| /' conftest.$ac_ext >&5
  8605. ac_header_preproc=no
  8606. fi
  8607. rm -f conftest.err conftest.$ac_ext
  8608. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8609. echo "${ECHO_T}$ac_header_preproc" >&6
  8610. # So? What about this header?
  8611. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  8612. yes:no: )
  8613. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8614. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8615. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8616. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8617. ac_header_preproc=yes
  8618. ;;
  8619. no:yes:* )
  8620. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8621. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8622. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8623. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8624. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8625. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8626. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8627. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8628. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8629. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8630. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8631. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8632. (
  8633. cat <<\_ASBOX
  8634. ## ------------------------------------------ ##
  8635. ## Report this to the AC_PACKAGE_NAME lists. ##
  8636. ## ------------------------------------------ ##
  8637. _ASBOX
  8638. ) |
  8639. sed "s/^/$as_me: WARNING: /" >&2
  8640. ;;
  8641. esac
  8642. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8643. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8644. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8645. echo $ECHO_N "(cached) $ECHO_C" >&6
  8646. else
  8647. eval "$as_ac_Header=\$ac_header_preproc"
  8648. fi
  8649. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8650. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8651. fi
  8652. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8653. cat >>confdefs.h <<_ACEOF
  8654. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8655. _ACEOF
  8656. fi
  8657. done
  8658. for ac_func in getpagesize
  8659. do
  8660. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8661. echo "$as_me:$LINENO: checking for $ac_func" >&5
  8662. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  8663. if eval "test \"\${$as_ac_var+set}\" = set"; then
  8664. echo $ECHO_N "(cached) $ECHO_C" >&6
  8665. else
  8666. cat >conftest.$ac_ext <<_ACEOF
  8667. /* confdefs.h. */
  8668. _ACEOF
  8669. cat confdefs.h >>conftest.$ac_ext
  8670. cat >>conftest.$ac_ext <<_ACEOF
  8671. /* end confdefs.h. */
  8672. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8673. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8674. #define $ac_func innocuous_$ac_func
  8675. /* System header to define __stub macros and hopefully few prototypes,
  8676. which can conflict with char $ac_func (); below.
  8677. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8678. <limits.h> exists even on freestanding compilers. */
  8679. #ifdef __STDC__
  8680. # include <limits.h>
  8681. #else
  8682. # include <assert.h>
  8683. #endif
  8684. #undef $ac_func
  8685. /* Override any gcc2 internal prototype to avoid an error. */
  8686. #ifdef __cplusplus
  8687. extern "C"
  8688. {
  8689. #endif
  8690. /* We use char because int might match the return type of a gcc2
  8691. builtin and then its argument prototype would still apply. */
  8692. char $ac_func ();
  8693. /* The GNU C library defines this for functions which it implements
  8694. to always fail with ENOSYS. Some functions are actually named
  8695. something starting with __ and the normal name is an alias. */
  8696. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  8697. choke me
  8698. #else
  8699. char (*f) () = $ac_func;
  8700. #endif
  8701. #ifdef __cplusplus
  8702. }
  8703. #endif
  8704. int
  8705. main ()
  8706. {
  8707. return f != $ac_func;
  8708. ;
  8709. return 0;
  8710. }
  8711. _ACEOF
  8712. rm -f conftest.$ac_objext conftest$ac_exeext
  8713. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8714. (eval $ac_link) 2>conftest.er1
  8715. ac_status=$?
  8716. grep -v '^ *+' conftest.er1 >conftest.err
  8717. rm -f conftest.er1
  8718. cat conftest.err >&5
  8719. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8720. (exit $ac_status); } &&
  8721. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  8722. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8723. (eval $ac_try) 2>&5
  8724. ac_status=$?
  8725. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8726. (exit $ac_status); }; } &&
  8727. { ac_try='test -s conftest$ac_exeext'
  8728. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8729. (eval $ac_try) 2>&5
  8730. ac_status=$?
  8731. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8732. (exit $ac_status); }; }; then
  8733. eval "$as_ac_var=yes"
  8734. else
  8735. echo "$as_me: failed program was:" >&5
  8736. sed 's/^/| /' conftest.$ac_ext >&5
  8737. eval "$as_ac_var=no"
  8738. fi
  8739. rm -f conftest.err conftest.$ac_objext \
  8740. conftest$ac_exeext conftest.$ac_ext
  8741. fi
  8742. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  8743. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  8744. if test `eval echo '${'$as_ac_var'}'` = yes; then
  8745. cat >>confdefs.h <<_ACEOF
  8746. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8747. _ACEOF
  8748. fi
  8749. done
  8750. echo "$as_me:$LINENO: checking for working mmap" >&5
  8751. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
  8752. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  8753. echo $ECHO_N "(cached) $ECHO_C" >&6
  8754. else
  8755. if test "$cross_compiling" = yes; then
  8756. ac_cv_func_mmap_fixed_mapped=no
  8757. else
  8758. cat >conftest.$ac_ext <<_ACEOF
  8759. /* confdefs.h. */
  8760. _ACEOF
  8761. cat confdefs.h >>conftest.$ac_ext
  8762. cat >>conftest.$ac_ext <<_ACEOF
  8763. /* end confdefs.h. */
  8764. $ac_includes_default
  8765. /* malloc might have been renamed as rpl_malloc. */
  8766. #undef malloc
  8767. /* Thanks to Mike Haertel and Jim Avera for this test.
  8768. Here is a matrix of mmap possibilities:
  8769. mmap private not fixed
  8770. mmap private fixed at somewhere currently unmapped
  8771. mmap private fixed at somewhere already mapped
  8772. mmap shared not fixed
  8773. mmap shared fixed at somewhere currently unmapped
  8774. mmap shared fixed at somewhere already mapped
  8775. For private mappings, we should verify that changes cannot be read()
  8776. back from the file, nor mmap's back from the file at a different
  8777. address. (There have been systems where private was not correctly
  8778. implemented like the infamous i386 svr4.0, and systems where the
  8779. VM page cache was not coherent with the file system buffer cache
  8780. like early versions of FreeBSD and possibly contemporary NetBSD.)
  8781. For shared mappings, we should conversely verify that changes get
  8782. propagated back to all the places they're supposed to be.
  8783. Grep wants private fixed already mapped.
  8784. The main things grep needs to know about mmap are:
  8785. * does it exist and is it safe to write into the mmap'd area
  8786. * how to use it (BSD variants) */
  8787. #include <fcntl.h>
  8788. #include <sys/mman.h>
  8789. #if !STDC_HEADERS && !HAVE_STDLIB_H
  8790. char *malloc ();
  8791. #endif
  8792. /* This mess was copied from the GNU getpagesize.h. */
  8793. #if !HAVE_GETPAGESIZE
  8794. /* Assume that all systems that can run configure have sys/param.h. */
  8795. # if !HAVE_SYS_PARAM_H
  8796. # define HAVE_SYS_PARAM_H 1
  8797. # endif
  8798. # ifdef _SC_PAGESIZE
  8799. # define getpagesize() sysconf(_SC_PAGESIZE)
  8800. # else /* no _SC_PAGESIZE */
  8801. # if HAVE_SYS_PARAM_H
  8802. # include <sys/param.h>
  8803. # ifdef EXEC_PAGESIZE
  8804. # define getpagesize() EXEC_PAGESIZE
  8805. # else /* no EXEC_PAGESIZE */
  8806. # ifdef NBPG
  8807. # define getpagesize() NBPG * CLSIZE
  8808. # ifndef CLSIZE
  8809. # define CLSIZE 1
  8810. # endif /* no CLSIZE */
  8811. # else /* no NBPG */
  8812. # ifdef NBPC
  8813. # define getpagesize() NBPC
  8814. # else /* no NBPC */
  8815. # ifdef PAGESIZE
  8816. # define getpagesize() PAGESIZE
  8817. # endif /* PAGESIZE */
  8818. # endif /* no NBPC */
  8819. # endif /* no NBPG */
  8820. # endif /* no EXEC_PAGESIZE */
  8821. # else /* no HAVE_SYS_PARAM_H */
  8822. # define getpagesize() 8192 /* punt totally */
  8823. # endif /* no HAVE_SYS_PARAM_H */
  8824. # endif /* no _SC_PAGESIZE */
  8825. #endif /* no HAVE_GETPAGESIZE */
  8826. int
  8827. main ()
  8828. {
  8829. char *data, *data2, *data3;
  8830. int i, pagesize;
  8831. int fd;
  8832. pagesize = getpagesize ();
  8833. /* First, make a file with some known garbage in it. */
  8834. data = (char *) malloc (pagesize);
  8835. if (!data)
  8836. exit (1);
  8837. for (i = 0; i < pagesize; ++i)
  8838. *(data + i) = rand ();
  8839. umask (0);
  8840. fd = creat ("conftest.mmap", 0600);
  8841. if (fd < 0)
  8842. exit (1);
  8843. if (write (fd, data, pagesize) != pagesize)
  8844. exit (1);
  8845. close (fd);
  8846. /* Next, try to mmap the file at a fixed address which already has
  8847. something else allocated at it. If we can, also make sure that
  8848. we see the same garbage. */
  8849. fd = open ("conftest.mmap", O_RDWR);
  8850. if (fd < 0)
  8851. exit (1);
  8852. data2 = (char *) malloc (2 * pagesize);
  8853. if (!data2)
  8854. exit (1);
  8855. data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
  8856. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  8857. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  8858. exit (1);
  8859. for (i = 0; i < pagesize; ++i)
  8860. if (*(data + i) != *(data2 + i))
  8861. exit (1);
  8862. /* Finally, make sure that changes to the mapped area do not
  8863. percolate back to the file as seen by read(). (This is a bug on
  8864. some variants of i386 svr4.0.) */
  8865. for (i = 0; i < pagesize; ++i)
  8866. *(data2 + i) = *(data2 + i) + 1;
  8867. data3 = (char *) malloc (pagesize);
  8868. if (!data3)
  8869. exit (1);
  8870. if (read (fd, data3, pagesize) != pagesize)
  8871. exit (1);
  8872. for (i = 0; i < pagesize; ++i)
  8873. if (*(data + i) != *(data3 + i))
  8874. exit (1);
  8875. close (fd);
  8876. exit (0);
  8877. }
  8878. _ACEOF
  8879. rm -f conftest$ac_exeext
  8880. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8881. (eval $ac_link) 2>&5
  8882. ac_status=$?
  8883. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8884. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8885. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8886. (eval $ac_try) 2>&5
  8887. ac_status=$?
  8888. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8889. (exit $ac_status); }; }; then
  8890. ac_cv_func_mmap_fixed_mapped=yes
  8891. else
  8892. echo "$as_me: program exited with status $ac_status" >&5
  8893. echo "$as_me: failed program was:" >&5
  8894. sed 's/^/| /' conftest.$ac_ext >&5
  8895. ( exit $ac_status )
  8896. ac_cv_func_mmap_fixed_mapped=no
  8897. fi
  8898. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8899. fi
  8900. fi
  8901. echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  8902. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
  8903. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  8904. cat >>confdefs.h <<\_ACEOF
  8905. #define HAVE_MMAP 1
  8906. _ACEOF
  8907. fi
  8908. rm -f conftest.mmap
  8909. for ac_header in stdlib.h
  8910. do
  8911. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8912. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8913. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8914. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8915. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8916. echo $ECHO_N "(cached) $ECHO_C" >&6
  8917. fi
  8918. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8919. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8920. else
  8921. # Is the header compilable?
  8922. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8923. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8924. cat >conftest.$ac_ext <<_ACEOF
  8925. /* confdefs.h. */
  8926. _ACEOF
  8927. cat confdefs.h >>conftest.$ac_ext
  8928. cat >>conftest.$ac_ext <<_ACEOF
  8929. /* end confdefs.h. */
  8930. $ac_includes_default
  8931. #include <$ac_header>
  8932. _ACEOF
  8933. rm -f conftest.$ac_objext
  8934. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8935. (eval $ac_compile) 2>conftest.er1
  8936. ac_status=$?
  8937. grep -v '^ *+' conftest.er1 >conftest.err
  8938. rm -f conftest.er1
  8939. cat conftest.err >&5
  8940. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8941. (exit $ac_status); } &&
  8942. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  8943. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8944. (eval $ac_try) 2>&5
  8945. ac_status=$?
  8946. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8947. (exit $ac_status); }; } &&
  8948. { ac_try='test -s conftest.$ac_objext'
  8949. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8950. (eval $ac_try) 2>&5
  8951. ac_status=$?
  8952. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8953. (exit $ac_status); }; }; then
  8954. ac_header_compiler=yes
  8955. else
  8956. echo "$as_me: failed program was:" >&5
  8957. sed 's/^/| /' conftest.$ac_ext >&5
  8958. ac_header_compiler=no
  8959. fi
  8960. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8961. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8962. echo "${ECHO_T}$ac_header_compiler" >&6
  8963. # Is the header present?
  8964. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8965. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8966. cat >conftest.$ac_ext <<_ACEOF
  8967. /* confdefs.h. */
  8968. _ACEOF
  8969. cat confdefs.h >>conftest.$ac_ext
  8970. cat >>conftest.$ac_ext <<_ACEOF
  8971. /* end confdefs.h. */
  8972. #include <$ac_header>
  8973. _ACEOF
  8974. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8975. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8976. ac_status=$?
  8977. grep -v '^ *+' conftest.er1 >conftest.err
  8978. rm -f conftest.er1
  8979. cat conftest.err >&5
  8980. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8981. (exit $ac_status); } >/dev/null; then
  8982. if test -s conftest.err; then
  8983. ac_cpp_err=$ac_cxx_preproc_warn_flag
  8984. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  8985. else
  8986. ac_cpp_err=
  8987. fi
  8988. else
  8989. ac_cpp_err=yes
  8990. fi
  8991. if test -z "$ac_cpp_err"; then
  8992. ac_header_preproc=yes
  8993. else
  8994. echo "$as_me: failed program was:" >&5
  8995. sed 's/^/| /' conftest.$ac_ext >&5
  8996. ac_header_preproc=no
  8997. fi
  8998. rm -f conftest.err conftest.$ac_ext
  8999. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9000. echo "${ECHO_T}$ac_header_preproc" >&6
  9001. # So? What about this header?
  9002. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  9003. yes:no: )
  9004. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9005. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9006. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9007. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9008. ac_header_preproc=yes
  9009. ;;
  9010. no:yes:* )
  9011. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9012. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9013. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9014. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9015. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9016. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9017. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9018. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9019. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9020. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9021. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9022. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9023. (
  9024. cat <<\_ASBOX
  9025. ## ------------------------------------------ ##
  9026. ## Report this to the AC_PACKAGE_NAME lists. ##
  9027. ## ------------------------------------------ ##
  9028. _ASBOX
  9029. ) |
  9030. sed "s/^/$as_me: WARNING: /" >&2
  9031. ;;
  9032. esac
  9033. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9034. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9035. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9036. echo $ECHO_N "(cached) $ECHO_C" >&6
  9037. else
  9038. eval "$as_ac_Header=\$ac_header_preproc"
  9039. fi
  9040. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9041. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9042. fi
  9043. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9044. cat >>confdefs.h <<_ACEOF
  9045. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9046. _ACEOF
  9047. fi
  9048. done
  9049. echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
  9050. echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
  9051. if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
  9052. echo $ECHO_N "(cached) $ECHO_C" >&6
  9053. else
  9054. if test "$cross_compiling" = yes; then
  9055. ac_cv_func_realloc_0_nonnull=no
  9056. else
  9057. cat >conftest.$ac_ext <<_ACEOF
  9058. /* confdefs.h. */
  9059. _ACEOF
  9060. cat confdefs.h >>conftest.$ac_ext
  9061. cat >>conftest.$ac_ext <<_ACEOF
  9062. /* end confdefs.h. */
  9063. #if STDC_HEADERS || HAVE_STDLIB_H
  9064. # include <stdlib.h>
  9065. #else
  9066. char *realloc ();
  9067. #endif
  9068. int
  9069. main ()
  9070. {
  9071. exit (realloc (0, 0) ? 0 : 1);
  9072. ;
  9073. return 0;
  9074. }
  9075. _ACEOF
  9076. rm -f conftest$ac_exeext
  9077. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9078. (eval $ac_link) 2>&5
  9079. ac_status=$?
  9080. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9081. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9082. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9083. (eval $ac_try) 2>&5
  9084. ac_status=$?
  9085. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9086. (exit $ac_status); }; }; then
  9087. ac_cv_func_realloc_0_nonnull=yes
  9088. else
  9089. echo "$as_me: program exited with status $ac_status" >&5
  9090. echo "$as_me: failed program was:" >&5
  9091. sed 's/^/| /' conftest.$ac_ext >&5
  9092. ( exit $ac_status )
  9093. ac_cv_func_realloc_0_nonnull=no
  9094. fi
  9095. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9096. fi
  9097. fi
  9098. echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
  9099. echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
  9100. if test $ac_cv_func_realloc_0_nonnull = yes; then
  9101. cat >>confdefs.h <<\_ACEOF
  9102. #define HAVE_REALLOC 1
  9103. _ACEOF
  9104. else
  9105. cat >>confdefs.h <<\_ACEOF
  9106. #define HAVE_REALLOC 0
  9107. _ACEOF
  9108. case $LIBOBJS in
  9109. "realloc.$ac_objext" | \
  9110. *" realloc.$ac_objext" | \
  9111. "realloc.$ac_objext "* | \
  9112. *" realloc.$ac_objext "* ) ;;
  9113. *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
  9114. esac
  9115. cat >>confdefs.h <<\_ACEOF
  9116. #define realloc rpl_realloc
  9117. _ACEOF
  9118. fi
  9119. echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  9120. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
  9121. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  9122. echo $ECHO_N "(cached) $ECHO_C" >&6
  9123. else
  9124. if test "$cross_compiling" = yes; then
  9125. ac_cv_func_stat_empty_string_bug=yes
  9126. else
  9127. cat >conftest.$ac_ext <<_ACEOF
  9128. /* confdefs.h. */
  9129. _ACEOF
  9130. cat confdefs.h >>conftest.$ac_ext
  9131. cat >>conftest.$ac_ext <<_ACEOF
  9132. /* end confdefs.h. */
  9133. $ac_includes_default
  9134. int
  9135. main ()
  9136. {
  9137. struct stat sbuf;
  9138. exit (stat ("", &sbuf) ? 1 : 0);
  9139. ;
  9140. return 0;
  9141. }
  9142. _ACEOF
  9143. rm -f conftest$ac_exeext
  9144. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9145. (eval $ac_link) 2>&5
  9146. ac_status=$?
  9147. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9148. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9149. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9150. (eval $ac_try) 2>&5
  9151. ac_status=$?
  9152. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9153. (exit $ac_status); }; }; then
  9154. ac_cv_func_stat_empty_string_bug=yes
  9155. else
  9156. echo "$as_me: program exited with status $ac_status" >&5
  9157. echo "$as_me: failed program was:" >&5
  9158. sed 's/^/| /' conftest.$ac_ext >&5
  9159. ( exit $ac_status )
  9160. ac_cv_func_stat_empty_string_bug=no
  9161. fi
  9162. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9163. fi
  9164. fi
  9165. echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  9166. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
  9167. if test $ac_cv_func_stat_empty_string_bug = yes; then
  9168. case $LIBOBJS in
  9169. "stat.$ac_objext" | \
  9170. *" stat.$ac_objext" | \
  9171. "stat.$ac_objext "* | \
  9172. *" stat.$ac_objext "* ) ;;
  9173. *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
  9174. esac
  9175. cat >>confdefs.h <<_ACEOF
  9176. #define HAVE_STAT_EMPTY_STRING_BUG 1
  9177. _ACEOF
  9178. fi
  9179. echo "$as_me:$LINENO: checking for struct timespec" >&5
  9180. echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6
  9181. if test "${ac_cv_type_struct_timespec+set}" = set; then
  9182. echo $ECHO_N "(cached) $ECHO_C" >&6
  9183. else
  9184. cat >conftest.$ac_ext <<_ACEOF
  9185. /* confdefs.h. */
  9186. _ACEOF
  9187. cat confdefs.h >>conftest.$ac_ext
  9188. cat >>conftest.$ac_ext <<_ACEOF
  9189. /* end confdefs.h. */
  9190. #include <sys/types.h>
  9191. #include <sys/time.h>
  9192. #include <time.h>
  9193. int
  9194. main ()
  9195. {
  9196. if ((struct timespec *) 0)
  9197. return 0;
  9198. if (sizeof (struct timespec))
  9199. return 0;
  9200. ;
  9201. return 0;
  9202. }
  9203. _ACEOF
  9204. rm -f conftest.$ac_objext
  9205. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9206. (eval $ac_compile) 2>conftest.er1
  9207. ac_status=$?
  9208. grep -v '^ *+' conftest.er1 >conftest.err
  9209. rm -f conftest.er1
  9210. cat conftest.err >&5
  9211. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9212. (exit $ac_status); } &&
  9213. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  9214. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9215. (eval $ac_try) 2>&5
  9216. ac_status=$?
  9217. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9218. (exit $ac_status); }; } &&
  9219. { ac_try='test -s conftest.$ac_objext'
  9220. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9221. (eval $ac_try) 2>&5
  9222. ac_status=$?
  9223. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9224. (exit $ac_status); }; }; then
  9225. ac_cv_type_struct_timespec=yes
  9226. else
  9227. echo "$as_me: failed program was:" >&5
  9228. sed 's/^/| /' conftest.$ac_ext >&5
  9229. ac_cv_type_struct_timespec=no
  9230. fi
  9231. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9232. fi
  9233. echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5
  9234. echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6
  9235. if test $ac_cv_type_struct_timespec = yes; then
  9236. cat >>confdefs.h <<\_ACEOF
  9237. #define HAVE_TIMESPEC 1
  9238. _ACEOF
  9239. fi
  9240. if test X"$ac_cv_type_struct_timespec" != X"no"; then
  9241. echo "$as_me:$LINENO: checking for struct stat.st_mtim" >&5
  9242. echo $ECHO_N "checking for struct stat.st_mtim... $ECHO_C" >&6
  9243. if test "${ac_cv_member_struct_stat_st_mtim+set}" = set; then
  9244. echo $ECHO_N "(cached) $ECHO_C" >&6
  9245. else
  9246. cat >conftest.$ac_ext <<_ACEOF
  9247. /* confdefs.h. */
  9248. _ACEOF
  9249. cat confdefs.h >>conftest.$ac_ext
  9250. cat >>conftest.$ac_ext <<_ACEOF
  9251. /* end confdefs.h. */
  9252. $ac_includes_default
  9253. int
  9254. main ()
  9255. {
  9256. static struct stat ac_aggr;
  9257. if (ac_aggr.st_mtim)
  9258. return 0;
  9259. ;
  9260. return 0;
  9261. }
  9262. _ACEOF
  9263. rm -f conftest.$ac_objext
  9264. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9265. (eval $ac_compile) 2>conftest.er1
  9266. ac_status=$?
  9267. grep -v '^ *+' conftest.er1 >conftest.err
  9268. rm -f conftest.er1
  9269. cat conftest.err >&5
  9270. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9271. (exit $ac_status); } &&
  9272. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  9273. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9274. (eval $ac_try) 2>&5
  9275. ac_status=$?
  9276. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9277. (exit $ac_status); }; } &&
  9278. { ac_try='test -s conftest.$ac_objext'
  9279. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9280. (eval $ac_try) 2>&5
  9281. ac_status=$?
  9282. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9283. (exit $ac_status); }; }; then
  9284. ac_cv_member_struct_stat_st_mtim=yes
  9285. else
  9286. echo "$as_me: failed program was:" >&5
  9287. sed 's/^/| /' conftest.$ac_ext >&5
  9288. cat >conftest.$ac_ext <<_ACEOF
  9289. /* confdefs.h. */
  9290. _ACEOF
  9291. cat confdefs.h >>conftest.$ac_ext
  9292. cat >>conftest.$ac_ext <<_ACEOF
  9293. /* end confdefs.h. */
  9294. $ac_includes_default
  9295. int
  9296. main ()
  9297. {
  9298. static struct stat ac_aggr;
  9299. if (sizeof ac_aggr.st_mtim)
  9300. return 0;
  9301. ;
  9302. return 0;
  9303. }
  9304. _ACEOF
  9305. rm -f conftest.$ac_objext
  9306. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9307. (eval $ac_compile) 2>conftest.er1
  9308. ac_status=$?
  9309. grep -v '^ *+' conftest.er1 >conftest.err
  9310. rm -f conftest.er1
  9311. cat conftest.err >&5
  9312. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9313. (exit $ac_status); } &&
  9314. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  9315. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9316. (eval $ac_try) 2>&5
  9317. ac_status=$?
  9318. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9319. (exit $ac_status); }; } &&
  9320. { ac_try='test -s conftest.$ac_objext'
  9321. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9322. (eval $ac_try) 2>&5
  9323. ac_status=$?
  9324. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9325. (exit $ac_status); }; }; then
  9326. ac_cv_member_struct_stat_st_mtim=yes
  9327. else
  9328. echo "$as_me: failed program was:" >&5
  9329. sed 's/^/| /' conftest.$ac_ext >&5
  9330. ac_cv_member_struct_stat_st_mtim=no
  9331. fi
  9332. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9333. fi
  9334. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9335. fi
  9336. echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtim" >&5
  9337. echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtim" >&6
  9338. if test $ac_cv_member_struct_stat_st_mtim = yes; then
  9339. cat >>confdefs.h <<\_ACEOF
  9340. #define HAVE_ST_MTIM 1
  9341. _ACEOF
  9342. else
  9343. echo "$as_me:$LINENO: checking for struct stat.st_mtimespec" >&5
  9344. echo $ECHO_N "checking for struct stat.st_mtimespec... $ECHO_C" >&6
  9345. if test "${ac_cv_member_struct_stat_st_mtimespec+set}" = set; then
  9346. echo $ECHO_N "(cached) $ECHO_C" >&6
  9347. else
  9348. cat >conftest.$ac_ext <<_ACEOF
  9349. /* confdefs.h. */
  9350. _ACEOF
  9351. cat confdefs.h >>conftest.$ac_ext
  9352. cat >>conftest.$ac_ext <<_ACEOF
  9353. /* end confdefs.h. */
  9354. $ac_includes_default
  9355. int
  9356. main ()
  9357. {
  9358. static struct stat ac_aggr;
  9359. if (ac_aggr.st_mtimespec)
  9360. return 0;
  9361. ;
  9362. return 0;
  9363. }
  9364. _ACEOF
  9365. rm -f conftest.$ac_objext
  9366. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9367. (eval $ac_compile) 2>conftest.er1
  9368. ac_status=$?
  9369. grep -v '^ *+' conftest.er1 >conftest.err
  9370. rm -f conftest.er1
  9371. cat conftest.err >&5
  9372. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9373. (exit $ac_status); } &&
  9374. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  9375. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9376. (eval $ac_try) 2>&5
  9377. ac_status=$?
  9378. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9379. (exit $ac_status); }; } &&
  9380. { ac_try='test -s conftest.$ac_objext'
  9381. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9382. (eval $ac_try) 2>&5
  9383. ac_status=$?
  9384. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9385. (exit $ac_status); }; }; then
  9386. ac_cv_member_struct_stat_st_mtimespec=yes
  9387. else
  9388. echo "$as_me: failed program was:" >&5
  9389. sed 's/^/| /' conftest.$ac_ext >&5
  9390. cat >conftest.$ac_ext <<_ACEOF
  9391. /* confdefs.h. */
  9392. _ACEOF
  9393. cat confdefs.h >>conftest.$ac_ext
  9394. cat >>conftest.$ac_ext <<_ACEOF
  9395. /* end confdefs.h. */
  9396. $ac_includes_default
  9397. int
  9398. main ()
  9399. {
  9400. static struct stat ac_aggr;
  9401. if (sizeof ac_aggr.st_mtimespec)
  9402. return 0;
  9403. ;
  9404. return 0;
  9405. }
  9406. _ACEOF
  9407. rm -f conftest.$ac_objext
  9408. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9409. (eval $ac_compile) 2>conftest.er1
  9410. ac_status=$?
  9411. grep -v '^ *+' conftest.er1 >conftest.err
  9412. rm -f conftest.er1
  9413. cat conftest.err >&5
  9414. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9415. (exit $ac_status); } &&
  9416. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  9417. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9418. (eval $ac_try) 2>&5
  9419. ac_status=$?
  9420. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9421. (exit $ac_status); }; } &&
  9422. { ac_try='test -s conftest.$ac_objext'
  9423. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9424. (eval $ac_try) 2>&5
  9425. ac_status=$?
  9426. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9427. (exit $ac_status); }; }; then
  9428. ac_cv_member_struct_stat_st_mtimespec=yes
  9429. else
  9430. echo "$as_me: failed program was:" >&5
  9431. sed 's/^/| /' conftest.$ac_ext >&5
  9432. ac_cv_member_struct_stat_st_mtimespec=no
  9433. fi
  9434. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9435. fi
  9436. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9437. fi
  9438. echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtimespec" >&5
  9439. echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtimespec" >&6
  9440. if test $ac_cv_member_struct_stat_st_mtimespec = yes; then
  9441. cat >>confdefs.h <<\_ACEOF
  9442. #define HAVE_ST_MTIMESPEC 1
  9443. _ACEOF
  9444. fi
  9445. fi
  9446. echo "$as_me:$LINENO: checking for two-parameter timespecsub" >&5
  9447. echo $ECHO_N "checking for two-parameter timespecsub... $ECHO_C" >&6
  9448. cat >conftest.$ac_ext <<_ACEOF
  9449. /* confdefs.h. */
  9450. _ACEOF
  9451. cat confdefs.h >>conftest.$ac_ext
  9452. cat >>conftest.$ac_ext <<_ACEOF
  9453. /* end confdefs.h. */
  9454. #include <sys/types.h>
  9455. #include <sys/time.h>
  9456. int
  9457. main ()
  9458. {
  9459. struct timespec ts1, ts2;
  9460. ts1.tv_sec = 1; ts1.tv_nsec = 0; ts2.tv_sec = 0; ts2.tv_nsec = 0;
  9461. #ifndef timespecsub
  9462. #error missing timespecsub
  9463. #endif
  9464. timespecsub(&ts1, &ts2);
  9465. ;
  9466. return 0;
  9467. }
  9468. _ACEOF
  9469. rm -f conftest.$ac_objext
  9470. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9471. (eval $ac_compile) 2>conftest.er1
  9472. ac_status=$?
  9473. grep -v '^ *+' conftest.er1 >conftest.err
  9474. rm -f conftest.er1
  9475. cat conftest.err >&5
  9476. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9477. (exit $ac_status); } &&
  9478. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  9479. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9480. (eval $ac_try) 2>&5
  9481. ac_status=$?
  9482. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9483. (exit $ac_status); }; } &&
  9484. { ac_try='test -s conftest.$ac_objext'
  9485. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9486. (eval $ac_try) 2>&5
  9487. ac_status=$?
  9488. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9489. (exit $ac_status); }; }; then
  9490. cat >>confdefs.h <<\_ACEOF
  9491. #define HAVE_TIMESPECSUB2 1
  9492. _ACEOF
  9493. echo "$as_me:$LINENO: result: yes" >&5
  9494. echo "${ECHO_T}yes" >&6
  9495. else
  9496. echo "$as_me: failed program was:" >&5
  9497. sed 's/^/| /' conftest.$ac_ext >&5
  9498. echo "$as_me:$LINENO: result: no" >&5
  9499. echo "${ECHO_T}no" >&6
  9500. fi
  9501. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9502. fi
  9503. for ac_func in strftime
  9504. do
  9505. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9506. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9507. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9508. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9509. echo $ECHO_N "(cached) $ECHO_C" >&6
  9510. else
  9511. cat >conftest.$ac_ext <<_ACEOF
  9512. /* confdefs.h. */
  9513. _ACEOF
  9514. cat confdefs.h >>conftest.$ac_ext
  9515. cat >>conftest.$ac_ext <<_ACEOF
  9516. /* end confdefs.h. */
  9517. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9518. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9519. #define $ac_func innocuous_$ac_func
  9520. /* System header to define __stub macros and hopefully few prototypes,
  9521. which can conflict with char $ac_func (); below.
  9522. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9523. <limits.h> exists even on freestanding compilers. */
  9524. #ifdef __STDC__
  9525. # include <limits.h>
  9526. #else
  9527. # include <assert.h>
  9528. #endif
  9529. #undef $ac_func
  9530. /* Override any gcc2 internal prototype to avoid an error. */
  9531. #ifdef __cplusplus
  9532. extern "C"
  9533. {
  9534. #endif
  9535. /* We use char because int might match the return type of a gcc2
  9536. builtin and then its argument prototype would still apply. */
  9537. char $ac_func ();
  9538. /* The GNU C library defines this for functions which it implements
  9539. to always fail with ENOSYS. Some functions are actually named
  9540. something starting with __ and the normal name is an alias. */
  9541. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9542. choke me
  9543. #else
  9544. char (*f) () = $ac_func;
  9545. #endif
  9546. #ifdef __cplusplus
  9547. }
  9548. #endif
  9549. int
  9550. main ()
  9551. {
  9552. return f != $ac_func;
  9553. ;
  9554. return 0;
  9555. }
  9556. _ACEOF
  9557. rm -f conftest.$ac_objext conftest$ac_exeext
  9558. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9559. (eval $ac_link) 2>conftest.er1
  9560. ac_status=$?
  9561. grep -v '^ *+' conftest.er1 >conftest.err
  9562. rm -f conftest.er1
  9563. cat conftest.err >&5
  9564. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9565. (exit $ac_status); } &&
  9566. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  9567. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9568. (eval $ac_try) 2>&5
  9569. ac_status=$?
  9570. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9571. (exit $ac_status); }; } &&
  9572. { ac_try='test -s conftest$ac_exeext'
  9573. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9574. (eval $ac_try) 2>&5
  9575. ac_status=$?
  9576. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9577. (exit $ac_status); }; }; then
  9578. eval "$as_ac_var=yes"
  9579. else
  9580. echo "$as_me: failed program was:" >&5
  9581. sed 's/^/| /' conftest.$ac_ext >&5
  9582. eval "$as_ac_var=no"
  9583. fi
  9584. rm -f conftest.err conftest.$ac_objext \
  9585. conftest$ac_exeext conftest.$ac_ext
  9586. fi
  9587. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9588. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9589. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9590. cat >>confdefs.h <<_ACEOF
  9591. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9592. _ACEOF
  9593. else
  9594. # strftime is in -lintl on SCO UNIX.
  9595. echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  9596. echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
  9597. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  9598. echo $ECHO_N "(cached) $ECHO_C" >&6
  9599. else
  9600. ac_check_lib_save_LIBS=$LIBS
  9601. LIBS="-lintl $LIBS"
  9602. cat >conftest.$ac_ext <<_ACEOF
  9603. /* confdefs.h. */
  9604. _ACEOF
  9605. cat confdefs.h >>conftest.$ac_ext
  9606. cat >>conftest.$ac_ext <<_ACEOF
  9607. /* end confdefs.h. */
  9608. /* Override any gcc2 internal prototype to avoid an error. */
  9609. #ifdef __cplusplus
  9610. extern "C"
  9611. #endif
  9612. /* We use char because int might match the return type of a gcc2
  9613. builtin and then its argument prototype would still apply. */
  9614. char strftime ();
  9615. int
  9616. main ()
  9617. {
  9618. strftime ();
  9619. ;
  9620. return 0;
  9621. }
  9622. _ACEOF
  9623. rm -f conftest.$ac_objext conftest$ac_exeext
  9624. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9625. (eval $ac_link) 2>conftest.er1
  9626. ac_status=$?
  9627. grep -v '^ *+' conftest.er1 >conftest.err
  9628. rm -f conftest.er1
  9629. cat conftest.err >&5
  9630. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9631. (exit $ac_status); } &&
  9632. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  9633. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9634. (eval $ac_try) 2>&5
  9635. ac_status=$?
  9636. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9637. (exit $ac_status); }; } &&
  9638. { ac_try='test -s conftest$ac_exeext'
  9639. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9640. (eval $ac_try) 2>&5
  9641. ac_status=$?
  9642. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9643. (exit $ac_status); }; }; then
  9644. ac_cv_lib_intl_strftime=yes
  9645. else
  9646. echo "$as_me: failed program was:" >&5
  9647. sed 's/^/| /' conftest.$ac_ext >&5
  9648. ac_cv_lib_intl_strftime=no
  9649. fi
  9650. rm -f conftest.err conftest.$ac_objext \
  9651. conftest$ac_exeext conftest.$ac_ext
  9652. LIBS=$ac_check_lib_save_LIBS
  9653. fi
  9654. echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  9655. echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
  9656. if test $ac_cv_lib_intl_strftime = yes; then
  9657. cat >>confdefs.h <<\_ACEOF
  9658. #define HAVE_STRFTIME 1
  9659. _ACEOF
  9660. LIBS="-lintl $LIBS"
  9661. fi
  9662. fi
  9663. done
  9664. #checkpoint
  9665. cat >confcache <<\_ACEOF
  9666. # This file is a shell script that caches the results of configure
  9667. # tests run on this system so they can be shared between configure
  9668. # scripts and configure runs, see configure's option --config-cache.
  9669. # It is not useful on other systems. If it contains results you don't
  9670. # want to keep, you may remove or edit it.
  9671. #
  9672. # config.status only pays attention to the cache file if you give it
  9673. # the --recheck option to rerun configure.
  9674. #
  9675. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  9676. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  9677. # following values.
  9678. _ACEOF
  9679. # The following way of writing the cache mishandles newlines in values,
  9680. # but we know of no workaround that is simple, portable, and efficient.
  9681. # So, don't put newlines in cache variables' values.
  9682. # Ultrix sh set writes to stderr and can't be redirected directly,
  9683. # and sets the high bit in the cache file unless we assign to the vars.
  9684. {
  9685. (set) 2>&1 |
  9686. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  9687. *ac_space=\ *)
  9688. # `set' does not quote correctly, so add quotes (double-quote
  9689. # substitution turns \\\\ into \\, and sed turns \\ into \).
  9690. sed -n \
  9691. "s/'/'\\\\''/g;
  9692. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  9693. ;;
  9694. *)
  9695. # `set' quotes correctly as required by POSIX, so do not add quotes.
  9696. sed -n \
  9697. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  9698. ;;
  9699. esac;
  9700. } |
  9701. sed '
  9702. t clear
  9703. : clear
  9704. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  9705. t end
  9706. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  9707. : end' >>confcache
  9708. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  9709. if test -w $cache_file; then
  9710. test "x$cache_file" != "x/dev/null"
  9711. cat confcache >$cache_file
  9712. else
  9713. echo "not updating unwritable cache $cache_file"
  9714. fi
  9715. fi
  9716. rm -f confcache
  9717. for ac_func in clock fsync getrusage isascii inet_aton
  9718. do
  9719. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9720. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9721. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9722. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9723. echo $ECHO_N "(cached) $ECHO_C" >&6
  9724. else
  9725. cat >conftest.$ac_ext <<_ACEOF
  9726. /* confdefs.h. */
  9727. _ACEOF
  9728. cat confdefs.h >>conftest.$ac_ext
  9729. cat >>conftest.$ac_ext <<_ACEOF
  9730. /* end confdefs.h. */
  9731. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9732. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9733. #define $ac_func innocuous_$ac_func
  9734. /* System header to define __stub macros and hopefully few prototypes,
  9735. which can conflict with char $ac_func (); below.
  9736. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9737. <limits.h> exists even on freestanding compilers. */
  9738. #ifdef __STDC__
  9739. # include <limits.h>
  9740. #else
  9741. # include <assert.h>
  9742. #endif
  9743. #undef $ac_func
  9744. /* Override any gcc2 internal prototype to avoid an error. */
  9745. #ifdef __cplusplus
  9746. extern "C"
  9747. {
  9748. #endif
  9749. /* We use char because int might match the return type of a gcc2
  9750. builtin and then its argument prototype would still apply. */
  9751. char $ac_func ();
  9752. /* The GNU C library defines this for functions which it implements
  9753. to always fail with ENOSYS. Some functions are actually named
  9754. something starting with __ and the normal name is an alias. */
  9755. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9756. choke me
  9757. #else
  9758. char (*f) () = $ac_func;
  9759. #endif
  9760. #ifdef __cplusplus
  9761. }
  9762. #endif
  9763. int
  9764. main ()
  9765. {
  9766. return f != $ac_func;
  9767. ;
  9768. return 0;
  9769. }
  9770. _ACEOF
  9771. rm -f conftest.$ac_objext conftest$ac_exeext
  9772. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9773. (eval $ac_link) 2>conftest.er1
  9774. ac_status=$?
  9775. grep -v '^ *+' conftest.er1 >conftest.err
  9776. rm -f conftest.er1
  9777. cat conftest.err >&5
  9778. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9779. (exit $ac_status); } &&
  9780. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  9781. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9782. (eval $ac_try) 2>&5
  9783. ac_status=$?
  9784. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9785. (exit $ac_status); }; } &&
  9786. { ac_try='test -s conftest$ac_exeext'
  9787. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9788. (eval $ac_try) 2>&5
  9789. ac_status=$?
  9790. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9791. (exit $ac_status); }; }; then
  9792. eval "$as_ac_var=yes"
  9793. else
  9794. echo "$as_me: failed program was:" >&5
  9795. sed 's/^/| /' conftest.$ac_ext >&5
  9796. eval "$as_ac_var=no"
  9797. fi
  9798. rm -f conftest.err conftest.$ac_objext \
  9799. conftest$ac_exeext conftest.$ac_ext
  9800. fi
  9801. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9802. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9803. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9804. cat >>confdefs.h <<_ACEOF
  9805. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9806. _ACEOF
  9807. fi
  9808. done
  9809. for ac_func in memcpy memset random rename snprintf srandom gettime
  9810. do
  9811. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9812. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9813. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9814. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9815. echo $ECHO_N "(cached) $ECHO_C" >&6
  9816. else
  9817. cat >conftest.$ac_ext <<_ACEOF
  9818. /* confdefs.h. */
  9819. _ACEOF
  9820. cat confdefs.h >>conftest.$ac_ext
  9821. cat >>conftest.$ac_ext <<_ACEOF
  9822. /* end confdefs.h. */
  9823. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9824. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9825. #define $ac_func innocuous_$ac_func
  9826. /* System header to define __stub macros and hopefully few prototypes,
  9827. which can conflict with char $ac_func (); below.
  9828. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9829. <limits.h> exists even on freestanding compilers. */
  9830. #ifdef __STDC__
  9831. # include <limits.h>
  9832. #else
  9833. # include <assert.h>
  9834. #endif
  9835. #undef $ac_func
  9836. /* Override any gcc2 internal prototype to avoid an error. */
  9837. #ifdef __cplusplus
  9838. extern "C"
  9839. {
  9840. #endif
  9841. /* We use char because int might match the return type of a gcc2
  9842. builtin and then its argument prototype would still apply. */
  9843. char $ac_func ();
  9844. /* The GNU C library defines this for functions which it implements
  9845. to always fail with ENOSYS. Some functions are actually named
  9846. something starting with __ and the normal name is an alias. */
  9847. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9848. choke me
  9849. #else
  9850. char (*f) () = $ac_func;
  9851. #endif
  9852. #ifdef __cplusplus
  9853. }
  9854. #endif
  9855. int
  9856. main ()
  9857. {
  9858. return f != $ac_func;
  9859. ;
  9860. return 0;
  9861. }
  9862. _ACEOF
  9863. rm -f conftest.$ac_objext conftest$ac_exeext
  9864. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9865. (eval $ac_link) 2>conftest.er1
  9866. ac_status=$?
  9867. grep -v '^ *+' conftest.er1 >conftest.err
  9868. rm -f conftest.er1
  9869. cat conftest.err >&5
  9870. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9871. (exit $ac_status); } &&
  9872. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  9873. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9874. (eval $ac_try) 2>&5
  9875. ac_status=$?
  9876. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9877. (exit $ac_status); }; } &&
  9878. { ac_try='test -s conftest$ac_exeext'
  9879. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9880. (eval $ac_try) 2>&5
  9881. ac_status=$?
  9882. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9883. (exit $ac_status); }; }; then
  9884. eval "$as_ac_var=yes"
  9885. else
  9886. echo "$as_me: failed program was:" >&5
  9887. sed 's/^/| /' conftest.$ac_ext >&5
  9888. eval "$as_ac_var=no"
  9889. fi
  9890. rm -f conftest.err conftest.$ac_objext \
  9891. conftest$ac_exeext conftest.$ac_ext
  9892. fi
  9893. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9894. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9895. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9896. cat >>confdefs.h <<_ACEOF
  9897. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9898. _ACEOF
  9899. fi
  9900. done
  9901. #checkpoint
  9902. cat >confcache <<\_ACEOF
  9903. # This file is a shell script that caches the results of configure
  9904. # tests run on this system so they can be shared between configure
  9905. # scripts and configure runs, see configure's option --config-cache.
  9906. # It is not useful on other systems. If it contains results you don't
  9907. # want to keep, you may remove or edit it.
  9908. #
  9909. # config.status only pays attention to the cache file if you give it
  9910. # the --recheck option to rerun configure.
  9911. #
  9912. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  9913. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  9914. # following values.
  9915. _ACEOF
  9916. # The following way of writing the cache mishandles newlines in values,
  9917. # but we know of no workaround that is simple, portable, and efficient.
  9918. # So, don't put newlines in cache variables' values.
  9919. # Ultrix sh set writes to stderr and can't be redirected directly,
  9920. # and sets the high bit in the cache file unless we assign to the vars.
  9921. {
  9922. (set) 2>&1 |
  9923. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  9924. *ac_space=\ *)
  9925. # `set' does not quote correctly, so add quotes (double-quote
  9926. # substitution turns \\\\ into \\, and sed turns \\ into \).
  9927. sed -n \
  9928. "s/'/'\\\\''/g;
  9929. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  9930. ;;
  9931. *)
  9932. # `set' quotes correctly as required by POSIX, so do not add quotes.
  9933. sed -n \
  9934. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  9935. ;;
  9936. esac;
  9937. } |
  9938. sed '
  9939. t clear
  9940. : clear
  9941. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  9942. t end
  9943. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  9944. : end' >>confcache
  9945. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  9946. if test -w $cache_file; then
  9947. test "x$cache_file" != "x/dev/null"
  9948. cat confcache >$cache_file
  9949. else
  9950. echo "not updating unwritable cache $cache_file"
  9951. fi
  9952. fi
  9953. rm -f confcache
  9954. for ac_func in strcasecmp strncasecmp vsnprintf
  9955. do
  9956. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9957. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9958. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9959. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9960. echo $ECHO_N "(cached) $ECHO_C" >&6
  9961. else
  9962. cat >conftest.$ac_ext <<_ACEOF
  9963. /* confdefs.h. */
  9964. _ACEOF
  9965. cat confdefs.h >>conftest.$ac_ext
  9966. cat >>conftest.$ac_ext <<_ACEOF
  9967. /* end confdefs.h. */
  9968. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9969. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9970. #define $ac_func innocuous_$ac_func
  9971. /* System header to define __stub macros and hopefully few prototypes,
  9972. which can conflict with char $ac_func (); below.
  9973. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9974. <limits.h> exists even on freestanding compilers. */
  9975. #ifdef __STDC__
  9976. # include <limits.h>
  9977. #else
  9978. # include <assert.h>
  9979. #endif
  9980. #undef $ac_func
  9981. /* Override any gcc2 internal prototype to avoid an error. */
  9982. #ifdef __cplusplus
  9983. extern "C"
  9984. {
  9985. #endif
  9986. /* We use char because int might match the return type of a gcc2
  9987. builtin and then its argument prototype would still apply. */
  9988. char $ac_func ();
  9989. /* The GNU C library defines this for functions which it implements
  9990. to always fail with ENOSYS. Some functions are actually named
  9991. something starting with __ and the normal name is an alias. */
  9992. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9993. choke me
  9994. #else
  9995. char (*f) () = $ac_func;
  9996. #endif
  9997. #ifdef __cplusplus
  9998. }
  9999. #endif
  10000. int
  10001. main ()
  10002. {
  10003. return f != $ac_func;
  10004. ;
  10005. return 0;
  10006. }
  10007. _ACEOF
  10008. rm -f conftest.$ac_objext conftest$ac_exeext
  10009. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10010. (eval $ac_link) 2>conftest.er1
  10011. ac_status=$?
  10012. grep -v '^ *+' conftest.er1 >conftest.err
  10013. rm -f conftest.er1
  10014. cat conftest.err >&5
  10015. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10016. (exit $ac_status); } &&
  10017. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  10018. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10019. (eval $ac_try) 2>&5
  10020. ac_status=$?
  10021. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10022. (exit $ac_status); }; } &&
  10023. { ac_try='test -s conftest$ac_exeext'
  10024. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10025. (eval $ac_try) 2>&5
  10026. ac_status=$?
  10027. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10028. (exit $ac_status); }; }; then
  10029. eval "$as_ac_var=yes"
  10030. else
  10031. echo "$as_me: failed program was:" >&5
  10032. sed 's/^/| /' conftest.$ac_ext >&5
  10033. eval "$as_ac_var=no"
  10034. fi
  10035. rm -f conftest.err conftest.$ac_objext \
  10036. conftest$ac_exeext conftest.$ac_ext
  10037. fi
  10038. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10039. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10040. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10041. cat >>confdefs.h <<_ACEOF
  10042. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10043. _ACEOF
  10044. fi
  10045. done
  10046. #autoscan suggested this....
  10047. #These are recommended by autoscan, but no code supports it currently
  10048. #AC_CHECK_FUNCS([alarm bzero dup2 getcwd gethostbyaddr gethostbyname gethostname getpass gettimeofday mbrlen
  10049. #mkdir munmap realpath select setlocale socket strchr strerror strpbrk strrchr strstr strtol tzset])
  10050. for ac_func in vsprintf
  10051. do
  10052. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10053. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10054. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10055. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10056. echo $ECHO_N "(cached) $ECHO_C" >&6
  10057. else
  10058. cat >conftest.$ac_ext <<_ACEOF
  10059. /* confdefs.h. */
  10060. _ACEOF
  10061. cat confdefs.h >>conftest.$ac_ext
  10062. cat >>conftest.$ac_ext <<_ACEOF
  10063. /* end confdefs.h. */
  10064. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10065. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10066. #define $ac_func innocuous_$ac_func
  10067. /* System header to define __stub macros and hopefully few prototypes,
  10068. which can conflict with char $ac_func (); below.
  10069. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10070. <limits.h> exists even on freestanding compilers. */
  10071. #ifdef __STDC__
  10072. # include <limits.h>
  10073. #else
  10074. # include <assert.h>
  10075. #endif
  10076. #undef $ac_func
  10077. /* Override any gcc2 internal prototype to avoid an error. */
  10078. #ifdef __cplusplus
  10079. extern "C"
  10080. {
  10081. #endif
  10082. /* We use char because int might match the return type of a gcc2
  10083. builtin and then its argument prototype would still apply. */
  10084. char $ac_func ();
  10085. /* The GNU C library defines this for functions which it implements
  10086. to always fail with ENOSYS. Some functions are actually named
  10087. something starting with __ and the normal name is an alias. */
  10088. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10089. choke me
  10090. #else
  10091. char (*f) () = $ac_func;
  10092. #endif
  10093. #ifdef __cplusplus
  10094. }
  10095. #endif
  10096. int
  10097. main ()
  10098. {
  10099. return f != $ac_func;
  10100. ;
  10101. return 0;
  10102. }
  10103. _ACEOF
  10104. rm -f conftest.$ac_objext conftest$ac_exeext
  10105. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10106. (eval $ac_link) 2>conftest.er1
  10107. ac_status=$?
  10108. grep -v '^ *+' conftest.er1 >conftest.err
  10109. rm -f conftest.er1
  10110. cat conftest.err >&5
  10111. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10112. (exit $ac_status); } &&
  10113. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  10114. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10115. (eval $ac_try) 2>&5
  10116. ac_status=$?
  10117. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10118. (exit $ac_status); }; } &&
  10119. { ac_try='test -s conftest$ac_exeext'
  10120. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10121. (eval $ac_try) 2>&5
  10122. ac_status=$?
  10123. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10124. (exit $ac_status); }; }; then
  10125. eval "$as_ac_var=yes"
  10126. else
  10127. echo "$as_me: failed program was:" >&5
  10128. sed 's/^/| /' conftest.$ac_ext >&5
  10129. eval "$as_ac_var=no"
  10130. fi
  10131. rm -f conftest.err conftest.$ac_objext \
  10132. conftest$ac_exeext conftest.$ac_ext
  10133. fi
  10134. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10135. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10136. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10137. cat >>confdefs.h <<_ACEOF
  10138. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10139. _ACEOF
  10140. fi
  10141. done
  10142. if test "$ac_cv_func_vsprintf" = "no"
  10143. then
  10144. cat << 'EOF' >&2
  10145. configure: error:
  10146. Your system does not have the sprintf/vsprintf libraries.
  10147. These are required to compile almost anything. Sorry.
  10148. EOF
  10149. exit 1
  10150. fi
  10151. for ac_func in uname
  10152. do
  10153. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10154. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10155. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10156. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10157. echo $ECHO_N "(cached) $ECHO_C" >&6
  10158. else
  10159. cat >conftest.$ac_ext <<_ACEOF
  10160. /* confdefs.h. */
  10161. _ACEOF
  10162. cat confdefs.h >>conftest.$ac_ext
  10163. cat >>conftest.$ac_ext <<_ACEOF
  10164. /* end confdefs.h. */
  10165. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10166. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10167. #define $ac_func innocuous_$ac_func
  10168. /* System header to define __stub macros and hopefully few prototypes,
  10169. which can conflict with char $ac_func (); below.
  10170. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10171. <limits.h> exists even on freestanding compilers. */
  10172. #ifdef __STDC__
  10173. # include <limits.h>
  10174. #else
  10175. # include <assert.h>
  10176. #endif
  10177. #undef $ac_func
  10178. /* Override any gcc2 internal prototype to avoid an error. */
  10179. #ifdef __cplusplus
  10180. extern "C"
  10181. {
  10182. #endif
  10183. /* We use char because int might match the return type of a gcc2
  10184. builtin and then its argument prototype would still apply. */
  10185. char $ac_func ();
  10186. /* The GNU C library defines this for functions which it implements
  10187. to always fail with ENOSYS. Some functions are actually named
  10188. something starting with __ and the normal name is an alias. */
  10189. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10190. choke me
  10191. #else
  10192. char (*f) () = $ac_func;
  10193. #endif
  10194. #ifdef __cplusplus
  10195. }
  10196. #endif
  10197. int
  10198. main ()
  10199. {
  10200. return f != $ac_func;
  10201. ;
  10202. return 0;
  10203. }
  10204. _ACEOF
  10205. rm -f conftest.$ac_objext conftest$ac_exeext
  10206. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10207. (eval $ac_link) 2>conftest.er1
  10208. ac_status=$?
  10209. grep -v '^ *+' conftest.er1 >conftest.err
  10210. rm -f conftest.er1
  10211. cat conftest.err >&5
  10212. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10213. (exit $ac_status); } &&
  10214. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  10215. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10216. (eval $ac_try) 2>&5
  10217. ac_status=$?
  10218. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10219. (exit $ac_status); }; } &&
  10220. { ac_try='test -s conftest$ac_exeext'
  10221. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10222. (eval $ac_try) 2>&5
  10223. ac_status=$?
  10224. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10225. (exit $ac_status); }; }; then
  10226. eval "$as_ac_var=yes"
  10227. else
  10228. echo "$as_me: failed program was:" >&5
  10229. sed 's/^/| /' conftest.$ac_ext >&5
  10230. eval "$as_ac_var=no"
  10231. fi
  10232. rm -f conftest.err conftest.$ac_objext \
  10233. conftest$ac_exeext conftest.$ac_ext
  10234. fi
  10235. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10236. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10237. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10238. cat >>confdefs.h <<_ACEOF
  10239. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10240. _ACEOF
  10241. fi
  10242. done
  10243. if test "$ac_cv_func_uname" = "no"
  10244. then
  10245. cat << 'EOF' >&2
  10246. configure: error:
  10247. Your system does not have the uname() function.
  10248. This is required for the botpack.
  10249. EOF
  10250. exit 1
  10251. fi
  10252. # Make sure we have stdc headers, since we can't compile without them
  10253. if test "$ac_cv_header_stdc" = "no"
  10254. then
  10255. cat << 'EOF' >&2
  10256. configure: error:
  10257. Your system must support ANSI C Header files.
  10258. These are required for the language support. Sorry.
  10259. EOF
  10260. exit 1
  10261. fi
  10262. #checkpoint
  10263. cat >confcache <<\_ACEOF
  10264. # This file is a shell script that caches the results of configure
  10265. # tests run on this system so they can be shared between configure
  10266. # scripts and configure runs, see configure's option --config-cache.
  10267. # It is not useful on other systems. If it contains results you don't
  10268. # want to keep, you may remove or edit it.
  10269. #
  10270. # config.status only pays attention to the cache file if you give it
  10271. # the --recheck option to rerun configure.
  10272. #
  10273. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10274. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10275. # following values.
  10276. _ACEOF
  10277. # The following way of writing the cache mishandles newlines in values,
  10278. # but we know of no workaround that is simple, portable, and efficient.
  10279. # So, don't put newlines in cache variables' values.
  10280. # Ultrix sh set writes to stderr and can't be redirected directly,
  10281. # and sets the high bit in the cache file unless we assign to the vars.
  10282. {
  10283. (set) 2>&1 |
  10284. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10285. *ac_space=\ *)
  10286. # `set' does not quote correctly, so add quotes (double-quote
  10287. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10288. sed -n \
  10289. "s/'/'\\\\''/g;
  10290. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10291. ;;
  10292. *)
  10293. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10294. sed -n \
  10295. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10296. ;;
  10297. esac;
  10298. } |
  10299. sed '
  10300. t clear
  10301. : clear
  10302. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10303. t end
  10304. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10305. : end' >>confcache
  10306. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10307. if test -w $cache_file; then
  10308. test "x$cache_file" != "x/dev/null"
  10309. cat confcache >$cache_file
  10310. else
  10311. echo "not updating unwritable cache $cache_file"
  10312. fi
  10313. fi
  10314. rm -f confcache
  10315. VERSION=`grep "char" $srcdir/src/main.c | $AWK '/egg_version/ {print $5}' | sed -e 's/\"//g' | sed -e 's/\;//g'`
  10316. version_num=`echo $VERSION | $AWK 'BEGIN {FS = "."} {printf("%d%02d%02d", $1, $2, $3)}'`
  10317. cat >>confdefs.h <<_ACEOF
  10318. #define EGG_VERSION $version_num
  10319. _ACEOF
  10320. #FIND_WRAPS
  10321. case "$srcdir" in
  10322. [\\/]* | ?:[\\/]*)
  10323. MOD_UPDIR=""
  10324. ;;
  10325. *)
  10326. MOD_UPDIR="../"
  10327. ;;
  10328. esac
  10329. 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"
  10330. for mf in $files; do
  10331. # Strip MF so we end up with the name of the file.
  10332. # echo "MF: $mf"
  10333. mf=`echo "$mf" | sed -e 's/:.*$//'`
  10334. dirpart=`(dirname "$mf") 2>/dev/null ||
  10335. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10336. X"$mf" : 'X\(//\)[^/]' \| \
  10337. X"$mf" : 'X\(//\)$' \| \
  10338. X"$mf" : 'X\(/\)' \| \
  10339. . : '\(.\)' 2>/dev/null ||
  10340. echo X"$mf" |
  10341. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  10342. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  10343. /^X\(\/\/\)$/{ s//\1/; q; }
  10344. /^X\(\/\).*/{ s//\1/; q; }
  10345. s/.*/./; q'`
  10346. # echo "dirpart: $dirpart mf: $mf"
  10347. # rm -rf "$dirpart/.deps/"
  10348. rm -f "$dirpart/.deps/includes"
  10349. test -d "$dirpart/.deps" || mkdir "$dirpart/.deps"
  10350. for file in `sed -n -e '
  10351. /^OBJS = .*\\\\$/ {
  10352. s/^OBJS = //
  10353. :loop
  10354. s/\\\\$//
  10355. p
  10356. n
  10357. /\\\\$/ b loop
  10358. p
  10359. }
  10360. /^OBJS = / s/^OBJS = //p' < "$mf"`;
  10361. do
  10362. base=`basename $file .o`
  10363. test -f "$dirpart/$base.c" || continue
  10364. if ! test -f "$dirpart/.deps/$base.Po"; then
  10365. echo '# dummy' > "$dirpart/.deps/$base.Po"
  10366. #Remove the .o file, because it needs to be recompiled for its dependancies.
  10367. if test -f "$dirpart/$base.o"; then
  10368. rm -f "$dirpart/$base.o"
  10369. fi
  10370. fi
  10371. echo "include .deps/$base.Po" >> "$dirpart/.deps/includes"
  10372. echo "_$base.c:" >> "$dirpart/.deps/includes"
  10373. done
  10374. done
  10375. ac_config_files="$ac_config_files Makefile src/Makefile src/compat/Makefile src/crypto/Makefile src/mod/Makefile"
  10376. cat >confcache <<\_ACEOF
  10377. # This file is a shell script that caches the results of configure
  10378. # tests run on this system so they can be shared between configure
  10379. # scripts and configure runs, see configure's option --config-cache.
  10380. # It is not useful on other systems. If it contains results you don't
  10381. # want to keep, you may remove or edit it.
  10382. #
  10383. # config.status only pays attention to the cache file if you give it
  10384. # the --recheck option to rerun configure.
  10385. #
  10386. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10387. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10388. # following values.
  10389. _ACEOF
  10390. # The following way of writing the cache mishandles newlines in values,
  10391. # but we know of no workaround that is simple, portable, and efficient.
  10392. # So, don't put newlines in cache variables' values.
  10393. # Ultrix sh set writes to stderr and can't be redirected directly,
  10394. # and sets the high bit in the cache file unless we assign to the vars.
  10395. {
  10396. (set) 2>&1 |
  10397. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10398. *ac_space=\ *)
  10399. # `set' does not quote correctly, so add quotes (double-quote
  10400. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10401. sed -n \
  10402. "s/'/'\\\\''/g;
  10403. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10404. ;;
  10405. *)
  10406. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10407. sed -n \
  10408. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10409. ;;
  10410. esac;
  10411. } |
  10412. sed '
  10413. t clear
  10414. : clear
  10415. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10416. t end
  10417. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10418. : end' >>confcache
  10419. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10420. if test -w $cache_file; then
  10421. test "x$cache_file" != "x/dev/null"
  10422. cat confcache >$cache_file
  10423. else
  10424. echo "not updating unwritable cache $cache_file"
  10425. fi
  10426. fi
  10427. rm -f confcache
  10428. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  10429. # Let make expand exec_prefix.
  10430. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  10431. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  10432. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  10433. # trailing colons and then remove the whole line if VPATH becomes empty
  10434. # (actually we leave an empty line to preserve line numbers).
  10435. if test "x$srcdir" = x.; then
  10436. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  10437. s/:*\$(srcdir):*/:/;
  10438. s/:*\${srcdir}:*/:/;
  10439. s/:*@srcdir@:*/:/;
  10440. s/^\([^=]*=[ ]*\):*/\1/;
  10441. s/:*$//;
  10442. s/^[^=]*=[ ]*$//;
  10443. }'
  10444. fi
  10445. DEFS=-DHAVE_CONFIG_H
  10446. ac_libobjs=
  10447. ac_ltlibobjs=
  10448. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  10449. # 1. Remove the extension, and $U if already installed.
  10450. ac_i=`echo "$ac_i" |
  10451. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  10452. # 2. Add them.
  10453. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  10454. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  10455. done
  10456. LIBOBJS=$ac_libobjs
  10457. LTLIBOBJS=$ac_ltlibobjs
  10458. : ${CONFIG_STATUS=./config.status}
  10459. ac_clean_files_save=$ac_clean_files
  10460. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  10461. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  10462. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  10463. cat >$CONFIG_STATUS <<_ACEOF
  10464. #! $SHELL
  10465. # Generated by $as_me.
  10466. # Run this file to recreate the current configuration.
  10467. # Compiler output produced by configure, useful for debugging
  10468. # configure, is in config.log if it exists.
  10469. debug=false
  10470. ac_cs_recheck=false
  10471. ac_cs_silent=false
  10472. SHELL=\${CONFIG_SHELL-$SHELL}
  10473. _ACEOF
  10474. cat >>$CONFIG_STATUS <<\_ACEOF
  10475. ## --------------------- ##
  10476. ## M4sh Initialization. ##
  10477. ## --------------------- ##
  10478. # Be Bourne compatible
  10479. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  10480. emulate sh
  10481. NULLCMD=:
  10482. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  10483. # is contrary to our usage. Disable this feature.
  10484. alias -g '${1+"$@"}'='"$@"'
  10485. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  10486. set -o posix
  10487. fi
  10488. DUALCASE=1; export DUALCASE # for MKS sh
  10489. # Support unset when possible.
  10490. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  10491. as_unset=unset
  10492. else
  10493. as_unset=false
  10494. fi
  10495. # Work around bugs in pre-3.0 UWIN ksh.
  10496. $as_unset ENV MAIL MAILPATH
  10497. PS1='$ '
  10498. PS2='> '
  10499. PS4='+ '
  10500. # NLS nuisances.
  10501. for as_var in \
  10502. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  10503. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  10504. LC_TELEPHONE LC_TIME
  10505. do
  10506. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  10507. eval $as_var=C; export $as_var
  10508. else
  10509. $as_unset $as_var
  10510. fi
  10511. done
  10512. # Required to use basename.
  10513. if expr a : '\(a\)' >/dev/null 2>&1; then
  10514. as_expr=expr
  10515. else
  10516. as_expr=false
  10517. fi
  10518. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  10519. as_basename=basename
  10520. else
  10521. as_basename=false
  10522. fi
  10523. # Name of the executable.
  10524. as_me=`$as_basename "$0" ||
  10525. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  10526. X"$0" : 'X\(//\)$' \| \
  10527. X"$0" : 'X\(/\)$' \| \
  10528. . : '\(.\)' 2>/dev/null ||
  10529. echo X/"$0" |
  10530. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  10531. /^X\/\(\/\/\)$/{ s//\1/; q; }
  10532. /^X\/\(\/\).*/{ s//\1/; q; }
  10533. s/.*/./; q'`
  10534. # PATH needs CR, and LINENO needs CR and PATH.
  10535. # Avoid depending upon Character Ranges.
  10536. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  10537. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  10538. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  10539. as_cr_digits='0123456789'
  10540. as_cr_alnum=$as_cr_Letters$as_cr_digits
  10541. # The user is always right.
  10542. if test "${PATH_SEPARATOR+set}" != set; then
  10543. echo "#! /bin/sh" >conf$$.sh
  10544. echo "exit 0" >>conf$$.sh
  10545. chmod +x conf$$.sh
  10546. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  10547. PATH_SEPARATOR=';'
  10548. else
  10549. PATH_SEPARATOR=:
  10550. fi
  10551. rm -f conf$$.sh
  10552. fi
  10553. as_lineno_1=$LINENO
  10554. as_lineno_2=$LINENO
  10555. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  10556. test "x$as_lineno_1" != "x$as_lineno_2" &&
  10557. test "x$as_lineno_3" = "x$as_lineno_2" || {
  10558. # Find who we are. Look in the path if we contain no path at all
  10559. # relative or not.
  10560. case $0 in
  10561. *[\\/]* ) as_myself=$0 ;;
  10562. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10563. for as_dir in $PATH
  10564. do
  10565. IFS=$as_save_IFS
  10566. test -z "$as_dir" && as_dir=.
  10567. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  10568. done
  10569. ;;
  10570. esac
  10571. # We did not find ourselves, most probably we were run as `sh COMMAND'
  10572. # in which case we are not to be found in the path.
  10573. if test "x$as_myself" = x; then
  10574. as_myself=$0
  10575. fi
  10576. if test ! -f "$as_myself"; then
  10577. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  10578. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  10579. { (exit 1); exit 1; }; }
  10580. fi
  10581. case $CONFIG_SHELL in
  10582. '')
  10583. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10584. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  10585. do
  10586. IFS=$as_save_IFS
  10587. test -z "$as_dir" && as_dir=.
  10588. for as_base in sh bash ksh sh5; do
  10589. case $as_dir in
  10590. /*)
  10591. if ("$as_dir/$as_base" -c '
  10592. as_lineno_1=$LINENO
  10593. as_lineno_2=$LINENO
  10594. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  10595. test "x$as_lineno_1" != "x$as_lineno_2" &&
  10596. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  10597. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  10598. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  10599. CONFIG_SHELL=$as_dir/$as_base
  10600. export CONFIG_SHELL
  10601. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  10602. fi;;
  10603. esac
  10604. done
  10605. done
  10606. ;;
  10607. esac
  10608. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  10609. # uniformly replaced by the line number. The first 'sed' inserts a
  10610. # line-number line before each line; the second 'sed' does the real
  10611. # work. The second script uses 'N' to pair each line-number line
  10612. # with the numbered line, and appends trailing '-' during
  10613. # substitution so that $LINENO is not a special case at line end.
  10614. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  10615. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  10616. sed '=' <$as_myself |
  10617. sed '
  10618. N
  10619. s,$,-,
  10620. : loop
  10621. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  10622. t loop
  10623. s,-$,,
  10624. s,^['$as_cr_digits']*\n,,
  10625. ' >$as_me.lineno &&
  10626. chmod +x $as_me.lineno ||
  10627. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  10628. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  10629. { (exit 1); exit 1; }; }
  10630. # Don't try to exec as it changes $[0], causing all sort of problems
  10631. # (the dirname of $[0] is not the place where we might find the
  10632. # original and so on. Autoconf is especially sensible to this).
  10633. . ./$as_me.lineno
  10634. # Exit status is that of the last command.
  10635. exit
  10636. }
  10637. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  10638. *c*,-n*) ECHO_N= ECHO_C='
  10639. ' ECHO_T=' ' ;;
  10640. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  10641. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  10642. esac
  10643. if expr a : '\(a\)' >/dev/null 2>&1; then
  10644. as_expr=expr
  10645. else
  10646. as_expr=false
  10647. fi
  10648. rm -f conf$$ conf$$.exe conf$$.file
  10649. echo >conf$$.file
  10650. if ln -s conf$$.file conf$$ 2>/dev/null; then
  10651. # We could just check for DJGPP; but this test a) works b) is more generic
  10652. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  10653. if test -f conf$$.exe; then
  10654. # Don't use ln at all; we don't have any links
  10655. as_ln_s='cp -p'
  10656. else
  10657. as_ln_s='ln -s'
  10658. fi
  10659. elif ln conf$$.file conf$$ 2>/dev/null; then
  10660. as_ln_s=ln
  10661. else
  10662. as_ln_s='cp -p'
  10663. fi
  10664. rm -f conf$$ conf$$.exe conf$$.file
  10665. if mkdir -p . 2>/dev/null; then
  10666. as_mkdir_p=:
  10667. else
  10668. test -d ./-p && rmdir ./-p
  10669. as_mkdir_p=false
  10670. fi
  10671. as_executable_p="test -f"
  10672. # Sed expression to map a string onto a valid CPP name.
  10673. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  10674. # Sed expression to map a string onto a valid variable name.
  10675. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  10676. # IFS
  10677. # We need space, tab and new line, in precisely that order.
  10678. as_nl='
  10679. '
  10680. IFS=" $as_nl"
  10681. # CDPATH.
  10682. $as_unset CDPATH
  10683. exec 6>&1
  10684. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  10685. # report actual input values of CONFIG_FILES etc. instead of their
  10686. # values after options handling. Logging --version etc. is OK.
  10687. exec 5>>config.log
  10688. {
  10689. echo
  10690. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  10691. ## Running $as_me. ##
  10692. _ASBOX
  10693. } >&5
  10694. cat >&5 <<_CSEOF
  10695. This file was extended by $as_me, which was
  10696. generated by GNU Autoconf 2.59. Invocation command line was
  10697. CONFIG_FILES = $CONFIG_FILES
  10698. CONFIG_HEADERS = $CONFIG_HEADERS
  10699. CONFIG_LINKS = $CONFIG_LINKS
  10700. CONFIG_COMMANDS = $CONFIG_COMMANDS
  10701. $ $0 $@
  10702. _CSEOF
  10703. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  10704. echo >&5
  10705. _ACEOF
  10706. # Files that config.status was made for.
  10707. if test -n "$ac_config_files"; then
  10708. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  10709. fi
  10710. if test -n "$ac_config_headers"; then
  10711. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  10712. fi
  10713. if test -n "$ac_config_links"; then
  10714. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  10715. fi
  10716. if test -n "$ac_config_commands"; then
  10717. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  10718. fi
  10719. cat >>$CONFIG_STATUS <<\_ACEOF
  10720. ac_cs_usage="\
  10721. \`$as_me' instantiates files from templates according to the
  10722. current configuration.
  10723. Usage: $0 [OPTIONS] [FILE]...
  10724. -h, --help print this help, then exit
  10725. -V, --version print version number, then exit
  10726. -q, --quiet do not print progress messages
  10727. -d, --debug don't remove temporary files
  10728. --recheck update $as_me by reconfiguring in the same conditions
  10729. --file=FILE[:TEMPLATE]
  10730. instantiate the configuration file FILE
  10731. --header=FILE[:TEMPLATE]
  10732. instantiate the configuration header FILE
  10733. Configuration files:
  10734. $config_files
  10735. Configuration headers:
  10736. $config_headers
  10737. Report bugs to <bug-autoconf@gnu.org>."
  10738. _ACEOF
  10739. cat >>$CONFIG_STATUS <<_ACEOF
  10740. ac_cs_version="\\
  10741. config.status
  10742. configured by $0, generated by GNU Autoconf 2.59,
  10743. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  10744. Copyright (C) 2003 Free Software Foundation, Inc.
  10745. This config.status script is free software; the Free Software Foundation
  10746. gives unlimited permission to copy, distribute and modify it."
  10747. srcdir=$srcdir
  10748. _ACEOF
  10749. cat >>$CONFIG_STATUS <<\_ACEOF
  10750. # If no file are specified by the user, then we need to provide default
  10751. # value. By we need to know if files were specified by the user.
  10752. ac_need_defaults=:
  10753. while test $# != 0
  10754. do
  10755. case $1 in
  10756. --*=*)
  10757. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  10758. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  10759. ac_shift=:
  10760. ;;
  10761. -*)
  10762. ac_option=$1
  10763. ac_optarg=$2
  10764. ac_shift=shift
  10765. ;;
  10766. *) # This is not an option, so the user has probably given explicit
  10767. # arguments.
  10768. ac_option=$1
  10769. ac_need_defaults=false;;
  10770. esac
  10771. case $ac_option in
  10772. # Handling of the options.
  10773. _ACEOF
  10774. cat >>$CONFIG_STATUS <<\_ACEOF
  10775. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  10776. ac_cs_recheck=: ;;
  10777. --version | --vers* | -V )
  10778. echo "$ac_cs_version"; exit 0 ;;
  10779. --he | --h)
  10780. # Conflict between --help and --header
  10781. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  10782. Try \`$0 --help' for more information." >&5
  10783. echo "$as_me: error: ambiguous option: $1
  10784. Try \`$0 --help' for more information." >&2;}
  10785. { (exit 1); exit 1; }; };;
  10786. --help | --hel | -h )
  10787. echo "$ac_cs_usage"; exit 0 ;;
  10788. --debug | --d* | -d )
  10789. debug=: ;;
  10790. --file | --fil | --fi | --f )
  10791. $ac_shift
  10792. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  10793. ac_need_defaults=false;;
  10794. --header | --heade | --head | --hea )
  10795. $ac_shift
  10796. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  10797. ac_need_defaults=false;;
  10798. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  10799. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  10800. ac_cs_silent=: ;;
  10801. # This is an error.
  10802. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  10803. Try \`$0 --help' for more information." >&5
  10804. echo "$as_me: error: unrecognized option: $1
  10805. Try \`$0 --help' for more information." >&2;}
  10806. { (exit 1); exit 1; }; } ;;
  10807. *) ac_config_targets="$ac_config_targets $1" ;;
  10808. esac
  10809. shift
  10810. done
  10811. ac_configure_extra_args=
  10812. if $ac_cs_silent; then
  10813. exec 6>/dev/null
  10814. ac_configure_extra_args="$ac_configure_extra_args --silent"
  10815. fi
  10816. _ACEOF
  10817. cat >>$CONFIG_STATUS <<_ACEOF
  10818. if \$ac_cs_recheck; then
  10819. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  10820. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  10821. fi
  10822. _ACEOF
  10823. cat >>$CONFIG_STATUS <<\_ACEOF
  10824. for ac_config_target in $ac_config_targets
  10825. do
  10826. case "$ac_config_target" in
  10827. # Handling of arguments.
  10828. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  10829. "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  10830. "src/compat/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/compat/Makefile" ;;
  10831. "src/crypto/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/crypto/Makefile" ;;
  10832. "src/mod/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/mod/Makefile" ;;
  10833. "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  10834. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  10835. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  10836. { (exit 1); exit 1; }; };;
  10837. esac
  10838. done
  10839. # If the user did not use the arguments to specify the items to instantiate,
  10840. # then the envvar interface is used. Set only those that are not.
  10841. # We use the long form for the default assignment because of an extremely
  10842. # bizarre bug on SunOS 4.1.3.
  10843. if $ac_need_defaults; then
  10844. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  10845. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  10846. fi
  10847. # Have a temporary directory for convenience. Make it in the build tree
  10848. # simply because there is no reason to put it here, and in addition,
  10849. # creating and moving files from /tmp can sometimes cause problems.
  10850. # Create a temporary directory, and hook for its removal unless debugging.
  10851. $debug ||
  10852. {
  10853. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  10854. trap '{ (exit 1); exit 1; }' 1 2 13 15
  10855. }
  10856. # Create a (secure) tmp directory for tmp files.
  10857. {
  10858. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  10859. test -n "$tmp" && test -d "$tmp"
  10860. } ||
  10861. {
  10862. tmp=./confstat$$-$RANDOM
  10863. (umask 077 && mkdir $tmp)
  10864. } ||
  10865. {
  10866. echo "$me: cannot create a temporary directory in ." >&2
  10867. { (exit 1); exit 1; }
  10868. }
  10869. _ACEOF
  10870. cat >>$CONFIG_STATUS <<_ACEOF
  10871. #
  10872. # CONFIG_FILES section.
  10873. #
  10874. # No need to generate the scripts if there are no CONFIG_FILES.
  10875. # This happens for instance when ./config.status config.h
  10876. if test -n "\$CONFIG_FILES"; then
  10877. # Protect against being on the right side of a sed subst in config.status.
  10878. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  10879. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  10880. s,@SHELL@,$SHELL,;t t
  10881. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  10882. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  10883. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  10884. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  10885. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  10886. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  10887. s,@exec_prefix@,$exec_prefix,;t t
  10888. s,@prefix@,$prefix,;t t
  10889. s,@program_transform_name@,$program_transform_name,;t t
  10890. s,@bindir@,$bindir,;t t
  10891. s,@sbindir@,$sbindir,;t t
  10892. s,@libexecdir@,$libexecdir,;t t
  10893. s,@datadir@,$datadir,;t t
  10894. s,@sysconfdir@,$sysconfdir,;t t
  10895. s,@sharedstatedir@,$sharedstatedir,;t t
  10896. s,@localstatedir@,$localstatedir,;t t
  10897. s,@libdir@,$libdir,;t t
  10898. s,@includedir@,$includedir,;t t
  10899. s,@oldincludedir@,$oldincludedir,;t t
  10900. s,@infodir@,$infodir,;t t
  10901. s,@mandir@,$mandir,;t t
  10902. s,@build_alias@,$build_alias,;t t
  10903. s,@host_alias@,$host_alias,;t t
  10904. s,@target_alias@,$target_alias,;t t
  10905. s,@DEFS@,$DEFS,;t t
  10906. s,@ECHO_C@,$ECHO_C,;t t
  10907. s,@ECHO_N@,$ECHO_N,;t t
  10908. s,@ECHO_T@,$ECHO_T,;t t
  10909. s,@LIBS@,$LIBS,;t t
  10910. s,@egg_ac_parameters@,$egg_ac_parameters,;t t
  10911. s,@CXX@,$CXX,;t t
  10912. s,@CXXFLAGS@,$CXXFLAGS,;t t
  10913. s,@LDFLAGS@,$LDFLAGS,;t t
  10914. s,@CPPFLAGS@,$CPPFLAGS,;t t
  10915. s,@ac_ct_CXX@,$ac_ct_CXX,;t t
  10916. s,@EXEEXT@,$EXEEXT,;t t
  10917. s,@OBJEXT@,$OBJEXT,;t t
  10918. s,@CXXCPP@,$CXXCPP,;t t
  10919. s,@EGREP@,$EGREP,;t t
  10920. s,@CCDEPMODE@,$CCDEPMODE,;t t
  10921. s,@GCC3@,$GCC3,;t t
  10922. s,@SET_MAKE@,$SET_MAKE,;t t
  10923. s,@HEAD_1@,$HEAD_1,;t t
  10924. s,@AWK@,$AWK,;t t
  10925. s,@BASENAME@,$BASENAME,;t t
  10926. s,@OBJCOPY@,$OBJCOPY,;t t
  10927. s,@STRIP@,$STRIP,;t t
  10928. s,@DIFF@,$DIFF,;t t
  10929. s,@UNAME@,$UNAME,;t t
  10930. s,@CCACHE@,$CCACHE,;t t
  10931. s,@DISTCC@,$DISTCC,;t t
  10932. s,@CCDEBUG@,$CCDEBUG,;t t
  10933. s,@ZLIB@,$ZLIB,;t t
  10934. s,@LIBOBJS@,$LIBOBJS,;t t
  10935. s,@VERSION@,$VERSION,;t t
  10936. s,@NUMVER@,$NUMVER,;t t
  10937. s,@MOD_UPDIR@,$MOD_UPDIR,;t t
  10938. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  10939. CEOF
  10940. _ACEOF
  10941. cat >>$CONFIG_STATUS <<\_ACEOF
  10942. # Split the substitutions into bite-sized pieces for seds with
  10943. # small command number limits, like on Digital OSF/1 and HP-UX.
  10944. ac_max_sed_lines=48
  10945. ac_sed_frag=1 # Number of current file.
  10946. ac_beg=1 # First line for current file.
  10947. ac_end=$ac_max_sed_lines # Line after last line for current file.
  10948. ac_more_lines=:
  10949. ac_sed_cmds=
  10950. while $ac_more_lines; do
  10951. if test $ac_beg -gt 1; then
  10952. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  10953. else
  10954. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  10955. fi
  10956. if test ! -s $tmp/subs.frag; then
  10957. ac_more_lines=false
  10958. else
  10959. # The purpose of the label and of the branching condition is to
  10960. # speed up the sed processing (if there are no `@' at all, there
  10961. # is no need to browse any of the substitutions).
  10962. # These are the two extra sed commands mentioned above.
  10963. (echo ':t
  10964. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  10965. if test -z "$ac_sed_cmds"; then
  10966. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  10967. else
  10968. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  10969. fi
  10970. ac_sed_frag=`expr $ac_sed_frag + 1`
  10971. ac_beg=$ac_end
  10972. ac_end=`expr $ac_end + $ac_max_sed_lines`
  10973. fi
  10974. done
  10975. if test -z "$ac_sed_cmds"; then
  10976. ac_sed_cmds=cat
  10977. fi
  10978. fi # test -n "$CONFIG_FILES"
  10979. _ACEOF
  10980. cat >>$CONFIG_STATUS <<\_ACEOF
  10981. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  10982. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  10983. case $ac_file in
  10984. - | *:- | *:-:* ) # input from stdin
  10985. cat >$tmp/stdin
  10986. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  10987. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  10988. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  10989. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  10990. * ) ac_file_in=$ac_file.in ;;
  10991. esac
  10992. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  10993. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  10994. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10995. X"$ac_file" : 'X\(//\)[^/]' \| \
  10996. X"$ac_file" : 'X\(//\)$' \| \
  10997. X"$ac_file" : 'X\(/\)' \| \
  10998. . : '\(.\)' 2>/dev/null ||
  10999. echo X"$ac_file" |
  11000. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11001. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11002. /^X\(\/\/\)$/{ s//\1/; q; }
  11003. /^X\(\/\).*/{ s//\1/; q; }
  11004. s/.*/./; q'`
  11005. { if $as_mkdir_p; then
  11006. mkdir -p "$ac_dir"
  11007. else
  11008. as_dir="$ac_dir"
  11009. as_dirs=
  11010. while test ! -d "$as_dir"; do
  11011. as_dirs="$as_dir $as_dirs"
  11012. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  11013. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11014. X"$as_dir" : 'X\(//\)[^/]' \| \
  11015. X"$as_dir" : 'X\(//\)$' \| \
  11016. X"$as_dir" : 'X\(/\)' \| \
  11017. . : '\(.\)' 2>/dev/null ||
  11018. echo X"$as_dir" |
  11019. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11020. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11021. /^X\(\/\/\)$/{ s//\1/; q; }
  11022. /^X\(\/\).*/{ s//\1/; q; }
  11023. s/.*/./; q'`
  11024. done
  11025. test ! -n "$as_dirs" || mkdir $as_dirs
  11026. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  11027. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  11028. { (exit 1); exit 1; }; }; }
  11029. ac_builddir=.
  11030. if test "$ac_dir" != .; then
  11031. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  11032. # A "../" for each directory in $ac_dir_suffix.
  11033. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  11034. else
  11035. ac_dir_suffix= ac_top_builddir=
  11036. fi
  11037. case $srcdir in
  11038. .) # No --srcdir option. We are building in place.
  11039. ac_srcdir=.
  11040. if test -z "$ac_top_builddir"; then
  11041. ac_top_srcdir=.
  11042. else
  11043. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  11044. fi ;;
  11045. [\\/]* | ?:[\\/]* ) # Absolute path.
  11046. ac_srcdir=$srcdir$ac_dir_suffix;
  11047. ac_top_srcdir=$srcdir ;;
  11048. *) # Relative path.
  11049. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  11050. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  11051. esac
  11052. # Do not use `cd foo && pwd` to compute absolute paths, because
  11053. # the directories may not exist.
  11054. case `pwd` in
  11055. .) ac_abs_builddir="$ac_dir";;
  11056. *)
  11057. case "$ac_dir" in
  11058. .) ac_abs_builddir=`pwd`;;
  11059. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  11060. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  11061. esac;;
  11062. esac
  11063. case $ac_abs_builddir in
  11064. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  11065. *)
  11066. case ${ac_top_builddir}. in
  11067. .) ac_abs_top_builddir=$ac_abs_builddir;;
  11068. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  11069. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  11070. esac;;
  11071. esac
  11072. case $ac_abs_builddir in
  11073. .) ac_abs_srcdir=$ac_srcdir;;
  11074. *)
  11075. case $ac_srcdir in
  11076. .) ac_abs_srcdir=$ac_abs_builddir;;
  11077. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  11078. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  11079. esac;;
  11080. esac
  11081. case $ac_abs_builddir in
  11082. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  11083. *)
  11084. case $ac_top_srcdir in
  11085. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  11086. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  11087. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  11088. esac;;
  11089. esac
  11090. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11091. # use $as_me), people would be surprised to read:
  11092. # /* config.h. Generated by config.status. */
  11093. if test x"$ac_file" = x-; then
  11094. configure_input=
  11095. else
  11096. configure_input="$ac_file. "
  11097. fi
  11098. configure_input=$configure_input"Generated from `echo $ac_file_in |
  11099. sed 's,.*/,,'` by configure."
  11100. # First look for the input files in the build tree, otherwise in the
  11101. # src tree.
  11102. ac_file_inputs=`IFS=:
  11103. for f in $ac_file_in; do
  11104. case $f in
  11105. -) echo $tmp/stdin ;;
  11106. [\\/$]*)
  11107. # Absolute (can't be DOS-style, as IFS=:)
  11108. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11109. echo "$as_me: error: cannot find input file: $f" >&2;}
  11110. { (exit 1); exit 1; }; }
  11111. echo "$f";;
  11112. *) # Relative
  11113. if test -f "$f"; then
  11114. # Build tree
  11115. echo "$f"
  11116. elif test -f "$srcdir/$f"; then
  11117. # Source tree
  11118. echo "$srcdir/$f"
  11119. else
  11120. # /dev/null tree
  11121. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11122. echo "$as_me: error: cannot find input file: $f" >&2;}
  11123. { (exit 1); exit 1; }; }
  11124. fi;;
  11125. esac
  11126. done` || { (exit 1); exit 1; }
  11127. if test x"$ac_file" != x-; then
  11128. { echo "$as_me:$LINENO: creating $ac_file" >&5
  11129. echo "$as_me: creating $ac_file" >&6;}
  11130. rm -f "$ac_file"
  11131. fi
  11132. _ACEOF
  11133. cat >>$CONFIG_STATUS <<_ACEOF
  11134. sed "$ac_vpsub
  11135. $extrasub
  11136. _ACEOF
  11137. cat >>$CONFIG_STATUS <<\_ACEOF
  11138. :t
  11139. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  11140. s,@configure_input@,$configure_input,;t t
  11141. s,@srcdir@,$ac_srcdir,;t t
  11142. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  11143. s,@top_srcdir@,$ac_top_srcdir,;t t
  11144. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  11145. s,@builddir@,$ac_builddir,;t t
  11146. s,@abs_builddir@,$ac_abs_builddir,;t t
  11147. s,@top_builddir@,$ac_top_builddir,;t t
  11148. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  11149. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  11150. rm -f $tmp/stdin
  11151. if test x"$ac_file" != x-; then
  11152. mv $tmp/out $ac_file
  11153. else
  11154. cat $tmp/out
  11155. rm -f $tmp/out
  11156. fi
  11157. done
  11158. _ACEOF
  11159. cat >>$CONFIG_STATUS <<\_ACEOF
  11160. #
  11161. # CONFIG_HEADER section.
  11162. #
  11163. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  11164. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  11165. #
  11166. # ac_d sets the value in "#define NAME VALUE" lines.
  11167. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  11168. ac_dB='[ ].*$,\1#\2'
  11169. ac_dC=' '
  11170. ac_dD=',;t'
  11171. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  11172. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  11173. ac_uB='$,\1#\2define\3'
  11174. ac_uC=' '
  11175. ac_uD=',;t'
  11176. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  11177. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  11178. case $ac_file in
  11179. - | *:- | *:-:* ) # input from stdin
  11180. cat >$tmp/stdin
  11181. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11182. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11183. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11184. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11185. * ) ac_file_in=$ac_file.in ;;
  11186. esac
  11187. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  11188. echo "$as_me: creating $ac_file" >&6;}
  11189. # First look for the input files in the build tree, otherwise in the
  11190. # src tree.
  11191. ac_file_inputs=`IFS=:
  11192. for f in $ac_file_in; do
  11193. case $f in
  11194. -) echo $tmp/stdin ;;
  11195. [\\/$]*)
  11196. # Absolute (can't be DOS-style, as IFS=:)
  11197. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11198. echo "$as_me: error: cannot find input file: $f" >&2;}
  11199. { (exit 1); exit 1; }; }
  11200. # Do quote $f, to prevent DOS paths from being IFS'd.
  11201. echo "$f";;
  11202. *) # Relative
  11203. if test -f "$f"; then
  11204. # Build tree
  11205. echo "$f"
  11206. elif test -f "$srcdir/$f"; then
  11207. # Source tree
  11208. echo "$srcdir/$f"
  11209. else
  11210. # /dev/null tree
  11211. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11212. echo "$as_me: error: cannot find input file: $f" >&2;}
  11213. { (exit 1); exit 1; }; }
  11214. fi;;
  11215. esac
  11216. done` || { (exit 1); exit 1; }
  11217. # Remove the trailing spaces.
  11218. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  11219. _ACEOF
  11220. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  11221. # `conftest.undefs', that substitutes the proper values into
  11222. # config.h.in to produce config.h. The first handles `#define'
  11223. # templates, and the second `#undef' templates.
  11224. # And first: Protect against being on the right side of a sed subst in
  11225. # config.status. Protect against being in an unquoted here document
  11226. # in config.status.
  11227. rm -f conftest.defines conftest.undefs
  11228. # Using a here document instead of a string reduces the quoting nightmare.
  11229. # Putting comments in sed scripts is not portable.
  11230. #
  11231. # `end' is used to avoid that the second main sed command (meant for
  11232. # 0-ary CPP macros) applies to n-ary macro definitions.
  11233. # See the Autoconf documentation for `clear'.
  11234. cat >confdef2sed.sed <<\_ACEOF
  11235. s/[\\&,]/\\&/g
  11236. s,[\\$`],\\&,g
  11237. t clear
  11238. : clear
  11239. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  11240. t end
  11241. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  11242. : end
  11243. _ACEOF
  11244. # If some macros were called several times there might be several times
  11245. # the same #defines, which is useless. Nevertheless, we may not want to
  11246. # sort them, since we want the *last* AC-DEFINE to be honored.
  11247. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  11248. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  11249. rm -f confdef2sed.sed
  11250. # This sed command replaces #undef with comments. This is necessary, for
  11251. # example, in the case of _POSIX_SOURCE, which is predefined and required
  11252. # on some systems where configure will not decide to define it.
  11253. cat >>conftest.undefs <<\_ACEOF
  11254. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  11255. _ACEOF
  11256. # Break up conftest.defines because some shells have a limit on the size
  11257. # of here documents, and old seds have small limits too (100 cmds).
  11258. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  11259. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  11260. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  11261. echo ' :' >>$CONFIG_STATUS
  11262. rm -f conftest.tail
  11263. while grep . conftest.defines >/dev/null
  11264. do
  11265. # Write a limited-size here document to $tmp/defines.sed.
  11266. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  11267. # Speed up: don't consider the non `#define' lines.
  11268. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  11269. # Work around the forget-to-reset-the-flag bug.
  11270. echo 't clr' >>$CONFIG_STATUS
  11271. echo ': clr' >>$CONFIG_STATUS
  11272. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  11273. echo 'CEOF
  11274. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  11275. rm -f $tmp/in
  11276. mv $tmp/out $tmp/in
  11277. ' >>$CONFIG_STATUS
  11278. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  11279. rm -f conftest.defines
  11280. mv conftest.tail conftest.defines
  11281. done
  11282. rm -f conftest.defines
  11283. echo ' fi # grep' >>$CONFIG_STATUS
  11284. echo >>$CONFIG_STATUS
  11285. # Break up conftest.undefs because some shells have a limit on the size
  11286. # of here documents, and old seds have small limits too (100 cmds).
  11287. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  11288. rm -f conftest.tail
  11289. while grep . conftest.undefs >/dev/null
  11290. do
  11291. # Write a limited-size here document to $tmp/undefs.sed.
  11292. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  11293. # Speed up: don't consider the non `#undef'
  11294. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  11295. # Work around the forget-to-reset-the-flag bug.
  11296. echo 't clr' >>$CONFIG_STATUS
  11297. echo ': clr' >>$CONFIG_STATUS
  11298. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  11299. echo 'CEOF
  11300. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  11301. rm -f $tmp/in
  11302. mv $tmp/out $tmp/in
  11303. ' >>$CONFIG_STATUS
  11304. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  11305. rm -f conftest.undefs
  11306. mv conftest.tail conftest.undefs
  11307. done
  11308. rm -f conftest.undefs
  11309. cat >>$CONFIG_STATUS <<\_ACEOF
  11310. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11311. # use $as_me), people would be surprised to read:
  11312. # /* config.h. Generated by config.status. */
  11313. if test x"$ac_file" = x-; then
  11314. echo "/* Generated by configure. */" >$tmp/config.h
  11315. else
  11316. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  11317. fi
  11318. cat $tmp/in >>$tmp/config.h
  11319. rm -f $tmp/in
  11320. if test x"$ac_file" != x-; then
  11321. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  11322. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  11323. echo "$as_me: $ac_file is unchanged" >&6;}
  11324. else
  11325. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  11326. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11327. X"$ac_file" : 'X\(//\)[^/]' \| \
  11328. X"$ac_file" : 'X\(//\)$' \| \
  11329. X"$ac_file" : 'X\(/\)' \| \
  11330. . : '\(.\)' 2>/dev/null ||
  11331. echo X"$ac_file" |
  11332. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11333. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11334. /^X\(\/\/\)$/{ s//\1/; q; }
  11335. /^X\(\/\).*/{ s//\1/; q; }
  11336. s/.*/./; q'`
  11337. { if $as_mkdir_p; then
  11338. mkdir -p "$ac_dir"
  11339. else
  11340. as_dir="$ac_dir"
  11341. as_dirs=
  11342. while test ! -d "$as_dir"; do
  11343. as_dirs="$as_dir $as_dirs"
  11344. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  11345. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11346. X"$as_dir" : 'X\(//\)[^/]' \| \
  11347. X"$as_dir" : 'X\(//\)$' \| \
  11348. X"$as_dir" : 'X\(/\)' \| \
  11349. . : '\(.\)' 2>/dev/null ||
  11350. echo X"$as_dir" |
  11351. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11352. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11353. /^X\(\/\/\)$/{ s//\1/; q; }
  11354. /^X\(\/\).*/{ s//\1/; q; }
  11355. s/.*/./; q'`
  11356. done
  11357. test ! -n "$as_dirs" || mkdir $as_dirs
  11358. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  11359. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  11360. { (exit 1); exit 1; }; }; }
  11361. rm -f $ac_file
  11362. mv $tmp/config.h $ac_file
  11363. fi
  11364. else
  11365. cat $tmp/config.h
  11366. rm -f $tmp/config.h
  11367. fi
  11368. done
  11369. _ACEOF
  11370. cat >>$CONFIG_STATUS <<\_ACEOF
  11371. { (exit 0); exit 0; }
  11372. _ACEOF
  11373. chmod +x $CONFIG_STATUS
  11374. ac_clean_files=$ac_clean_files_save
  11375. # configure is writing to config.log, and then calls config.status.
  11376. # config.status does its own redirection, appending to config.log.
  11377. # Unfortunately, on DOS this fails, as config.log is still kept open
  11378. # by configure, so config.status won't be able to write to it; its
  11379. # output is simply discarded. So we exec the FD to /dev/null,
  11380. # effectively closing config.log, so it can be properly (re)opened and
  11381. # appended to by config.status. When coming back to configure, we
  11382. # need to make the FD available again.
  11383. if test "$no_create" != yes; then
  11384. ac_cs_success=:
  11385. ac_config_status_args=
  11386. test "$silent" = yes &&
  11387. ac_config_status_args="$ac_config_status_args --quiet"
  11388. exec 5>/dev/null
  11389. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  11390. exec 5>>config.log
  11391. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  11392. # would make configure fail if this is the last instruction.
  11393. $ac_cs_success || { (exit 1); exit 1; }
  11394. fi