configure 404 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113
  1. #! /bin/sh
  2. # From configure.ac Revision.
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated by GNU Autoconf 2.63.
  5. #
  6. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  7. # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  8. # This configure script is free software; the Free Software Foundation
  9. # gives unlimited permission to copy, distribute and modify it.
  10. #
  11. # Copyright (c) 2003 - 2009 Bryan Drewery
  12. ## --------------------- ##
  13. ## M4sh Initialization. ##
  14. ## --------------------- ##
  15. # Be more Bourne compatible
  16. DUALCASE=1; export DUALCASE # for MKS sh
  17. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  18. emulate sh
  19. NULLCMD=:
  20. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  21. # is contrary to our usage. Disable this feature.
  22. alias -g '${1+"$@"}'='"$@"'
  23. setopt NO_GLOB_SUBST
  24. else
  25. case `(set -o) 2>/dev/null` in
  26. *posix*) set -o posix ;;
  27. esac
  28. fi
  29. # PATH needs CR
  30. # Avoid depending upon Character Ranges.
  31. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  32. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  33. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  34. as_cr_digits='0123456789'
  35. as_cr_alnum=$as_cr_Letters$as_cr_digits
  36. as_nl='
  37. '
  38. export as_nl
  39. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  40. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  41. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  42. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  43. if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='printf %s\n'
  45. as_echo_n='printf %s'
  46. else
  47. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  48. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  49. as_echo_n='/usr/ucb/echo -n'
  50. else
  51. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  52. as_echo_n_body='eval
  53. arg=$1;
  54. case $arg in
  55. *"$as_nl"*)
  56. expr "X$arg" : "X\\(.*\\)$as_nl";
  57. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  58. esac;
  59. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  60. '
  61. export as_echo_n_body
  62. as_echo_n='sh -c $as_echo_n_body as_echo'
  63. fi
  64. export as_echo_body
  65. as_echo='sh -c $as_echo_body as_echo'
  66. fi
  67. # The user is always right.
  68. if test "${PATH_SEPARATOR+set}" != set; then
  69. PATH_SEPARATOR=:
  70. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  71. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  72. PATH_SEPARATOR=';'
  73. }
  74. fi
  75. # Support unset when possible.
  76. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  77. as_unset=unset
  78. else
  79. as_unset=false
  80. fi
  81. # IFS
  82. # We need space, tab and new line, in precisely that order. Quoting is
  83. # there to prevent editors from complaining about space-tab.
  84. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  85. # splitting by setting IFS to empty value.)
  86. IFS=" "" $as_nl"
  87. # Find who we are. Look in the path if we contain no directory separator.
  88. case $0 in
  89. *[\\/]* ) as_myself=$0 ;;
  90. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  91. for as_dir in $PATH
  92. do
  93. IFS=$as_save_IFS
  94. test -z "$as_dir" && as_dir=.
  95. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  96. done
  97. IFS=$as_save_IFS
  98. ;;
  99. esac
  100. # We did not find ourselves, most probably we were run as `sh COMMAND'
  101. # in which case we are not to be found in the path.
  102. if test "x$as_myself" = x; then
  103. as_myself=$0
  104. fi
  105. if test ! -f "$as_myself"; then
  106. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  107. { (exit 1); exit 1; }
  108. fi
  109. # Work around bugs in pre-3.0 UWIN ksh.
  110. for as_var in ENV MAIL MAILPATH
  111. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # Required to use basename.
  122. if expr a : '\(a\)' >/dev/null 2>&1 &&
  123. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  124. as_expr=expr
  125. else
  126. as_expr=false
  127. fi
  128. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  129. as_basename=basename
  130. else
  131. as_basename=false
  132. fi
  133. # Name of the executable.
  134. as_me=`$as_basename -- "$0" ||
  135. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  136. X"$0" : 'X\(//\)$' \| \
  137. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  138. $as_echo X/"$0" |
  139. sed '/^.*\/\([^/][^/]*\)\/*$/{
  140. s//\1/
  141. q
  142. }
  143. /^X\/\(\/\/\)$/{
  144. s//\1/
  145. q
  146. }
  147. /^X\/\(\/\).*/{
  148. s//\1/
  149. q
  150. }
  151. s/.*/./; q'`
  152. # CDPATH.
  153. $as_unset CDPATH
  154. if test "x$CONFIG_SHELL" = x; then
  155. if (eval ":") 2>/dev/null; then
  156. as_have_required=yes
  157. else
  158. as_have_required=no
  159. fi
  160. if test $as_have_required = yes && (eval ":
  161. (as_func_return () {
  162. (exit \$1)
  163. }
  164. as_func_success () {
  165. as_func_return 0
  166. }
  167. as_func_failure () {
  168. as_func_return 1
  169. }
  170. as_func_ret_success () {
  171. return 0
  172. }
  173. as_func_ret_failure () {
  174. return 1
  175. }
  176. exitcode=0
  177. if as_func_success; then
  178. :
  179. else
  180. exitcode=1
  181. echo as_func_success failed.
  182. fi
  183. if as_func_failure; then
  184. exitcode=1
  185. echo as_func_failure succeeded.
  186. fi
  187. if as_func_ret_success; then
  188. :
  189. else
  190. exitcode=1
  191. echo as_func_ret_success failed.
  192. fi
  193. if as_func_ret_failure; then
  194. exitcode=1
  195. echo as_func_ret_failure succeeded.
  196. fi
  197. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  198. :
  199. else
  200. exitcode=1
  201. echo positional parameters were not saved.
  202. fi
  203. test \$exitcode = 0) || { (exit 1); exit 1; }
  204. (
  205. as_lineno_1=\$LINENO
  206. as_lineno_2=\$LINENO
  207. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  208. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  209. ") 2> /dev/null; then
  210. :
  211. else
  212. as_candidate_shells=
  213. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  214. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  215. do
  216. IFS=$as_save_IFS
  217. test -z "$as_dir" && as_dir=.
  218. case $as_dir in
  219. /*)
  220. for as_base in sh bash ksh sh5; do
  221. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  222. done;;
  223. esac
  224. done
  225. IFS=$as_save_IFS
  226. for as_shell in $as_candidate_shells $SHELL; do
  227. # Try only shells that exist, to save several forks.
  228. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  229. { ("$as_shell") 2> /dev/null <<\_ASEOF
  230. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  231. emulate sh
  232. NULLCMD=:
  233. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  234. # is contrary to our usage. Disable this feature.
  235. alias -g '${1+"$@"}'='"$@"'
  236. setopt NO_GLOB_SUBST
  237. else
  238. case `(set -o) 2>/dev/null` in
  239. *posix*) set -o posix ;;
  240. esac
  241. fi
  242. :
  243. _ASEOF
  244. }; then
  245. CONFIG_SHELL=$as_shell
  246. as_have_required=yes
  247. if { "$as_shell" 2> /dev/null <<\_ASEOF
  248. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  249. emulate sh
  250. NULLCMD=:
  251. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  252. # is contrary to our usage. Disable this feature.
  253. alias -g '${1+"$@"}'='"$@"'
  254. setopt NO_GLOB_SUBST
  255. else
  256. case `(set -o) 2>/dev/null` in
  257. *posix*) set -o posix ;;
  258. esac
  259. fi
  260. :
  261. (as_func_return () {
  262. (exit $1)
  263. }
  264. as_func_success () {
  265. as_func_return 0
  266. }
  267. as_func_failure () {
  268. as_func_return 1
  269. }
  270. as_func_ret_success () {
  271. return 0
  272. }
  273. as_func_ret_failure () {
  274. return 1
  275. }
  276. exitcode=0
  277. if as_func_success; then
  278. :
  279. else
  280. exitcode=1
  281. echo as_func_success failed.
  282. fi
  283. if as_func_failure; then
  284. exitcode=1
  285. echo as_func_failure succeeded.
  286. fi
  287. if as_func_ret_success; then
  288. :
  289. else
  290. exitcode=1
  291. echo as_func_ret_success failed.
  292. fi
  293. if as_func_ret_failure; then
  294. exitcode=1
  295. echo as_func_ret_failure succeeded.
  296. fi
  297. if ( set x; as_func_ret_success y && test x = "$1" ); then
  298. :
  299. else
  300. exitcode=1
  301. echo positional parameters were not saved.
  302. fi
  303. test $exitcode = 0) || { (exit 1); exit 1; }
  304. (
  305. as_lineno_1=$LINENO
  306. as_lineno_2=$LINENO
  307. test "x$as_lineno_1" != "x$as_lineno_2" &&
  308. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  309. _ASEOF
  310. }; then
  311. break
  312. fi
  313. fi
  314. done
  315. if test "x$CONFIG_SHELL" != x; then
  316. for as_var in BASH_ENV ENV
  317. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  318. done
  319. export CONFIG_SHELL
  320. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  321. fi
  322. if test $as_have_required = no; then
  323. echo This script requires a shell more modern than all the
  324. echo shells that I found on your system. Please install a
  325. echo modern shell, or manually run the script under such a
  326. echo shell if you do have one.
  327. { (exit 1); exit 1; }
  328. fi
  329. fi
  330. fi
  331. (eval "as_func_return () {
  332. (exit \$1)
  333. }
  334. as_func_success () {
  335. as_func_return 0
  336. }
  337. as_func_failure () {
  338. as_func_return 1
  339. }
  340. as_func_ret_success () {
  341. return 0
  342. }
  343. as_func_ret_failure () {
  344. return 1
  345. }
  346. exitcode=0
  347. if as_func_success; then
  348. :
  349. else
  350. exitcode=1
  351. echo as_func_success failed.
  352. fi
  353. if as_func_failure; then
  354. exitcode=1
  355. echo as_func_failure succeeded.
  356. fi
  357. if as_func_ret_success; then
  358. :
  359. else
  360. exitcode=1
  361. echo as_func_ret_success failed.
  362. fi
  363. if as_func_ret_failure; then
  364. exitcode=1
  365. echo as_func_ret_failure succeeded.
  366. fi
  367. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  368. :
  369. else
  370. exitcode=1
  371. echo positional parameters were not saved.
  372. fi
  373. test \$exitcode = 0") || {
  374. echo No shell found that supports shell functions.
  375. echo Please tell bug-autoconf@gnu.org about your system,
  376. echo including any error possibly output before this message.
  377. echo This can help us improve future autoconf versions.
  378. echo Configuration will now proceed without shell functions.
  379. }
  380. as_lineno_1=$LINENO
  381. as_lineno_2=$LINENO
  382. test "x$as_lineno_1" != "x$as_lineno_2" &&
  383. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  384. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  385. # uniformly replaced by the line number. The first 'sed' inserts a
  386. # line-number line after each line using $LINENO; the second 'sed'
  387. # does the real work. The second script uses 'N' to pair each
  388. # line-number line with the line containing $LINENO, and appends
  389. # trailing '-' during substitution so that $LINENO is not a special
  390. # case at line end.
  391. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  392. # scripts with optimization help from Paolo Bonzini. Blame Lee
  393. # E. McMahon (1931-1989) for sed's syntax. :-)
  394. sed -n '
  395. p
  396. /[$]LINENO/=
  397. ' <$as_myself |
  398. sed '
  399. s/[$]LINENO.*/&-/
  400. t lineno
  401. b
  402. :lineno
  403. N
  404. :loop
  405. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  406. t loop
  407. s/-\n.*//
  408. ' >$as_me.lineno &&
  409. chmod +x "$as_me.lineno" ||
  410. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  411. { (exit 1); exit 1; }; }
  412. # Don't try to exec as it changes $[0], causing all sort of problems
  413. # (the dirname of $[0] is not the place where we might find the
  414. # original and so on. Autoconf is especially sensitive to this).
  415. . "./$as_me.lineno"
  416. # Exit status is that of the last command.
  417. exit
  418. }
  419. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  420. as_dirname=dirname
  421. else
  422. as_dirname=false
  423. fi
  424. ECHO_C= ECHO_N= ECHO_T=
  425. case `echo -n x` in
  426. -n*)
  427. case `echo 'x\c'` in
  428. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  429. *) ECHO_C='\c';;
  430. esac;;
  431. *)
  432. ECHO_N='-n';;
  433. esac
  434. if expr a : '\(a\)' >/dev/null 2>&1 &&
  435. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  436. as_expr=expr
  437. else
  438. as_expr=false
  439. fi
  440. rm -f conf$$ conf$$.exe conf$$.file
  441. if test -d conf$$.dir; then
  442. rm -f conf$$.dir/conf$$.file
  443. else
  444. rm -f conf$$.dir
  445. mkdir conf$$.dir 2>/dev/null
  446. fi
  447. if (echo >conf$$.file) 2>/dev/null; then
  448. if ln -s conf$$.file conf$$ 2>/dev/null; then
  449. as_ln_s='ln -s'
  450. # ... but there are two gotchas:
  451. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  452. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  453. # In both cases, we have to default to `cp -p'.
  454. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  455. as_ln_s='cp -p'
  456. elif ln conf$$.file conf$$ 2>/dev/null; then
  457. as_ln_s=ln
  458. else
  459. as_ln_s='cp -p'
  460. fi
  461. else
  462. as_ln_s='cp -p'
  463. fi
  464. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  465. rmdir conf$$.dir 2>/dev/null
  466. if mkdir -p . 2>/dev/null; then
  467. as_mkdir_p=:
  468. else
  469. test -d ./-p && rmdir ./-p
  470. as_mkdir_p=false
  471. fi
  472. if test -x / >/dev/null 2>&1; then
  473. as_test_x='test -x'
  474. else
  475. if ls -dL / >/dev/null 2>&1; then
  476. as_ls_L_option=L
  477. else
  478. as_ls_L_option=
  479. fi
  480. as_test_x='
  481. eval sh -c '\''
  482. if test -d "$1"; then
  483. test -d "$1/.";
  484. else
  485. case $1 in
  486. -*)set "./$1";;
  487. esac;
  488. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  489. ???[sx]*):;;*)false;;esac;fi
  490. '\'' sh
  491. '
  492. fi
  493. as_executable_p=$as_test_x
  494. # Sed expression to map a string onto a valid CPP name.
  495. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  496. # Sed expression to map a string onto a valid variable name.
  497. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  498. exec 7<&0 </dev/null 6>&1
  499. # Name of the host.
  500. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  501. # so uname gets run too.
  502. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  503. #
  504. # Initializations.
  505. #
  506. ac_default_prefix=/usr/local
  507. ac_clean_files=
  508. ac_config_libobj_dir=.
  509. LIBOBJS=
  510. cross_compiling=no
  511. subdirs=
  512. MFLAGS=
  513. MAKEFLAGS=
  514. SHELL=${CONFIG_SHELL-/bin/sh}
  515. # Identity of this package.
  516. PACKAGE_NAME=
  517. PACKAGE_TARNAME=
  518. PACKAGE_VERSION=
  519. PACKAGE_STRING=
  520. PACKAGE_BUGREPORT=
  521. ac_unique_file="wraith"
  522. ac_unique_file="src/eggdrop.h"
  523. # Factoring default headers for most tests.
  524. ac_includes_default="\
  525. #include <stdio.h>
  526. #ifdef HAVE_SYS_TYPES_H
  527. # include <sys/types.h>
  528. #endif
  529. #ifdef HAVE_SYS_STAT_H
  530. # include <sys/stat.h>
  531. #endif
  532. #ifdef STDC_HEADERS
  533. # include <stdlib.h>
  534. # include <stddef.h>
  535. #else
  536. # ifdef HAVE_STDLIB_H
  537. # include <stdlib.h>
  538. # endif
  539. #endif
  540. #ifdef HAVE_STRING_H
  541. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  542. # include <memory.h>
  543. # endif
  544. # include <string.h>
  545. #endif
  546. #ifdef HAVE_STRINGS_H
  547. # include <strings.h>
  548. #endif
  549. #ifdef HAVE_INTTYPES_H
  550. # include <inttypes.h>
  551. #endif
  552. #ifdef HAVE_STDINT_H
  553. # include <stdint.h>
  554. #endif
  555. #ifdef HAVE_UNISTD_H
  556. # include <unistd.h>
  557. #endif"
  558. ac_header_list=
  559. ac_func_list=
  560. ac_subst_vars='LTLIBOBJS
  561. MOD_UPDIR
  562. NUMVER
  563. VERSION
  564. LIBOBJS
  565. SSL_LIBS
  566. SSL_INCLUDES
  567. CCDEBUG
  568. STATIC
  569. BUILDARCH
  570. BUILDOS
  571. DISTCC
  572. CCACHE
  573. UNAME
  574. DIFF
  575. STRIP
  576. OBJCOPY
  577. BASENAME
  578. AWK
  579. HEAD_1
  580. SET_MAKE
  581. GCC4DEB
  582. GCC3DEB
  583. GCC3
  584. CCDEPMODE
  585. EGREP
  586. GREP
  587. CXXCPP
  588. OBJEXT
  589. EXEEXT
  590. ac_ct_CXX
  591. CPPFLAGS
  592. LDFLAGS
  593. CXXFLAGS
  594. CXX
  595. egg_ac_parameters
  596. target_alias
  597. host_alias
  598. build_alias
  599. LIBS
  600. ECHO_T
  601. ECHO_N
  602. ECHO_C
  603. DEFS
  604. mandir
  605. localedir
  606. libdir
  607. psdir
  608. pdfdir
  609. dvidir
  610. htmldir
  611. infodir
  612. docdir
  613. oldincludedir
  614. includedir
  615. localstatedir
  616. sharedstatedir
  617. sysconfdir
  618. datadir
  619. datarootdir
  620. libexecdir
  621. sbindir
  622. bindir
  623. program_transform_name
  624. prefix
  625. exec_prefix
  626. PACKAGE_BUGREPORT
  627. PACKAGE_STRING
  628. PACKAGE_VERSION
  629. PACKAGE_TARNAME
  630. PACKAGE_NAME
  631. PATH_SEPARATOR
  632. SHELL'
  633. ac_subst_files=''
  634. ac_user_opts='
  635. enable_option_checking
  636. enable_ipv6
  637. with_openssl
  638. '
  639. ac_precious_vars='build_alias
  640. host_alias
  641. target_alias
  642. CXX
  643. CXXFLAGS
  644. LDFLAGS
  645. LIBS
  646. CPPFLAGS
  647. CCC
  648. CXXCPP'
  649. # Initialize some variables set by options.
  650. ac_init_help=
  651. ac_init_version=false
  652. ac_unrecognized_opts=
  653. ac_unrecognized_sep=
  654. # The variables have the same names as the options, with
  655. # dashes changed to underlines.
  656. cache_file=./config.cache
  657. exec_prefix=NONE
  658. no_create=
  659. no_recursion=
  660. prefix=NONE
  661. program_prefix=NONE
  662. program_suffix=NONE
  663. program_transform_name=s,x,x,
  664. silent=
  665. site=
  666. srcdir=
  667. verbose=
  668. x_includes=NONE
  669. x_libraries=NONE
  670. # Installation directory options.
  671. # These are left unexpanded so users can "make install exec_prefix=/foo"
  672. # and all the variables that are supposed to be based on exec_prefix
  673. # by default will actually change.
  674. # Use braces instead of parens because sh, perl, etc. also accept them.
  675. # (The list follows the same order as the GNU Coding Standards.)
  676. bindir='${exec_prefix}/bin'
  677. sbindir='${exec_prefix}/sbin'
  678. libexecdir='${exec_prefix}/libexec'
  679. datarootdir='${prefix}/share'
  680. datadir='${datarootdir}'
  681. sysconfdir='${prefix}/etc'
  682. sharedstatedir='${prefix}/com'
  683. localstatedir='${prefix}/var'
  684. includedir='${prefix}/include'
  685. oldincludedir='/usr/include'
  686. docdir='${datarootdir}/doc/${PACKAGE}'
  687. infodir='${datarootdir}/info'
  688. htmldir='${docdir}'
  689. dvidir='${docdir}'
  690. pdfdir='${docdir}'
  691. psdir='${docdir}'
  692. libdir='${exec_prefix}/lib'
  693. localedir='${datarootdir}/locale'
  694. mandir='${datarootdir}/man'
  695. ac_prev=
  696. ac_dashdash=
  697. for ac_option
  698. do
  699. # If the previous option needs an argument, assign it.
  700. if test -n "$ac_prev"; then
  701. eval $ac_prev=\$ac_option
  702. ac_prev=
  703. continue
  704. fi
  705. case $ac_option in
  706. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  707. *) ac_optarg=yes ;;
  708. esac
  709. # Accept the important Cygnus configure options, so we can diagnose typos.
  710. case $ac_dashdash$ac_option in
  711. --)
  712. ac_dashdash=yes ;;
  713. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  714. ac_prev=bindir ;;
  715. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  716. bindir=$ac_optarg ;;
  717. -build | --build | --buil | --bui | --bu)
  718. ac_prev=build_alias ;;
  719. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  720. build_alias=$ac_optarg ;;
  721. -cache-file | --cache-file | --cache-fil | --cache-fi \
  722. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  723. ac_prev=cache_file ;;
  724. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  725. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  726. cache_file=$ac_optarg ;;
  727. --config-cache | -C)
  728. cache_file=config.cache ;;
  729. -datadir | --datadir | --datadi | --datad)
  730. ac_prev=datadir ;;
  731. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  732. datadir=$ac_optarg ;;
  733. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  734. | --dataroo | --dataro | --datar)
  735. ac_prev=datarootdir ;;
  736. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  737. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  738. datarootdir=$ac_optarg ;;
  739. -disable-* | --disable-*)
  740. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  741. # Reject names that are not valid shell variable names.
  742. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  743. { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  744. { (exit 1); exit 1; }; }
  745. ac_useropt_orig=$ac_useropt
  746. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  747. case $ac_user_opts in
  748. *"
  749. "enable_$ac_useropt"
  750. "*) ;;
  751. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  752. ac_unrecognized_sep=', ';;
  753. esac
  754. eval enable_$ac_useropt=no ;;
  755. -docdir | --docdir | --docdi | --doc | --do)
  756. ac_prev=docdir ;;
  757. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  758. docdir=$ac_optarg ;;
  759. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  760. ac_prev=dvidir ;;
  761. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  762. dvidir=$ac_optarg ;;
  763. -enable-* | --enable-*)
  764. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  765. # Reject names that are not valid shell variable names.
  766. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  767. { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  768. { (exit 1); exit 1; }; }
  769. ac_useropt_orig=$ac_useropt
  770. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  771. case $ac_user_opts in
  772. *"
  773. "enable_$ac_useropt"
  774. "*) ;;
  775. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  776. ac_unrecognized_sep=', ';;
  777. esac
  778. eval enable_$ac_useropt=\$ac_optarg ;;
  779. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  780. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  781. | --exec | --exe | --ex)
  782. ac_prev=exec_prefix ;;
  783. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  784. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  785. | --exec=* | --exe=* | --ex=*)
  786. exec_prefix=$ac_optarg ;;
  787. -gas | --gas | --ga | --g)
  788. # Obsolete; use --with-gas.
  789. with_gas=yes ;;
  790. -help | --help | --hel | --he | -h)
  791. ac_init_help=long ;;
  792. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  793. ac_init_help=recursive ;;
  794. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  795. ac_init_help=short ;;
  796. -host | --host | --hos | --ho)
  797. ac_prev=host_alias ;;
  798. -host=* | --host=* | --hos=* | --ho=*)
  799. host_alias=$ac_optarg ;;
  800. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  801. ac_prev=htmldir ;;
  802. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  803. | --ht=*)
  804. htmldir=$ac_optarg ;;
  805. -includedir | --includedir | --includedi | --included | --include \
  806. | --includ | --inclu | --incl | --inc)
  807. ac_prev=includedir ;;
  808. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  809. | --includ=* | --inclu=* | --incl=* | --inc=*)
  810. includedir=$ac_optarg ;;
  811. -infodir | --infodir | --infodi | --infod | --info | --inf)
  812. ac_prev=infodir ;;
  813. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  814. infodir=$ac_optarg ;;
  815. -libdir | --libdir | --libdi | --libd)
  816. ac_prev=libdir ;;
  817. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  818. libdir=$ac_optarg ;;
  819. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  820. | --libexe | --libex | --libe)
  821. ac_prev=libexecdir ;;
  822. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  823. | --libexe=* | --libex=* | --libe=*)
  824. libexecdir=$ac_optarg ;;
  825. -localedir | --localedir | --localedi | --localed | --locale)
  826. ac_prev=localedir ;;
  827. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  828. localedir=$ac_optarg ;;
  829. -localstatedir | --localstatedir | --localstatedi | --localstated \
  830. | --localstate | --localstat | --localsta | --localst | --locals)
  831. ac_prev=localstatedir ;;
  832. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  833. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  834. localstatedir=$ac_optarg ;;
  835. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  836. ac_prev=mandir ;;
  837. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  838. mandir=$ac_optarg ;;
  839. -nfp | --nfp | --nf)
  840. # Obsolete; use --without-fp.
  841. with_fp=no ;;
  842. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  843. | --no-cr | --no-c | -n)
  844. no_create=yes ;;
  845. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  846. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  847. no_recursion=yes ;;
  848. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  849. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  850. | --oldin | --oldi | --old | --ol | --o)
  851. ac_prev=oldincludedir ;;
  852. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  853. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  854. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  855. oldincludedir=$ac_optarg ;;
  856. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  857. ac_prev=prefix ;;
  858. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  859. prefix=$ac_optarg ;;
  860. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  861. | --program-pre | --program-pr | --program-p)
  862. ac_prev=program_prefix ;;
  863. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  864. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  865. program_prefix=$ac_optarg ;;
  866. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  867. | --program-suf | --program-su | --program-s)
  868. ac_prev=program_suffix ;;
  869. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  870. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  871. program_suffix=$ac_optarg ;;
  872. -program-transform-name | --program-transform-name \
  873. | --program-transform-nam | --program-transform-na \
  874. | --program-transform-n | --program-transform- \
  875. | --program-transform | --program-transfor \
  876. | --program-transfo | --program-transf \
  877. | --program-trans | --program-tran \
  878. | --progr-tra | --program-tr | --program-t)
  879. ac_prev=program_transform_name ;;
  880. -program-transform-name=* | --program-transform-name=* \
  881. | --program-transform-nam=* | --program-transform-na=* \
  882. | --program-transform-n=* | --program-transform-=* \
  883. | --program-transform=* | --program-transfor=* \
  884. | --program-transfo=* | --program-transf=* \
  885. | --program-trans=* | --program-tran=* \
  886. | --progr-tra=* | --program-tr=* | --program-t=*)
  887. program_transform_name=$ac_optarg ;;
  888. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  889. ac_prev=pdfdir ;;
  890. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  891. pdfdir=$ac_optarg ;;
  892. -psdir | --psdir | --psdi | --psd | --ps)
  893. ac_prev=psdir ;;
  894. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  895. psdir=$ac_optarg ;;
  896. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  897. | -silent | --silent | --silen | --sile | --sil)
  898. silent=yes ;;
  899. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  900. ac_prev=sbindir ;;
  901. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  902. | --sbi=* | --sb=*)
  903. sbindir=$ac_optarg ;;
  904. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  905. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  906. | --sharedst | --shareds | --shared | --share | --shar \
  907. | --sha | --sh)
  908. ac_prev=sharedstatedir ;;
  909. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  910. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  911. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  912. | --sha=* | --sh=*)
  913. sharedstatedir=$ac_optarg ;;
  914. -site | --site | --sit)
  915. ac_prev=site ;;
  916. -site=* | --site=* | --sit=*)
  917. site=$ac_optarg ;;
  918. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  919. ac_prev=srcdir ;;
  920. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  921. srcdir=$ac_optarg ;;
  922. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  923. | --syscon | --sysco | --sysc | --sys | --sy)
  924. ac_prev=sysconfdir ;;
  925. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  926. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  927. sysconfdir=$ac_optarg ;;
  928. -target | --target | --targe | --targ | --tar | --ta | --t)
  929. ac_prev=target_alias ;;
  930. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  931. target_alias=$ac_optarg ;;
  932. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  933. verbose=yes ;;
  934. -version | --version | --versio | --versi | --vers | -V)
  935. ac_init_version=: ;;
  936. -with-* | --with-*)
  937. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  938. # Reject names that are not valid shell variable names.
  939. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  940. { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  941. { (exit 1); exit 1; }; }
  942. ac_useropt_orig=$ac_useropt
  943. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  944. case $ac_user_opts in
  945. *"
  946. "with_$ac_useropt"
  947. "*) ;;
  948. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  949. ac_unrecognized_sep=', ';;
  950. esac
  951. eval with_$ac_useropt=\$ac_optarg ;;
  952. -without-* | --without-*)
  953. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  954. # Reject names that are not valid shell variable names.
  955. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  956. { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  957. { (exit 1); exit 1; }; }
  958. ac_useropt_orig=$ac_useropt
  959. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  960. case $ac_user_opts in
  961. *"
  962. "with_$ac_useropt"
  963. "*) ;;
  964. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  965. ac_unrecognized_sep=', ';;
  966. esac
  967. eval with_$ac_useropt=no ;;
  968. --x)
  969. # Obsolete; use --with-x.
  970. with_x=yes ;;
  971. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  972. | --x-incl | --x-inc | --x-in | --x-i)
  973. ac_prev=x_includes ;;
  974. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  975. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  976. x_includes=$ac_optarg ;;
  977. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  978. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  979. ac_prev=x_libraries ;;
  980. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  981. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  982. x_libraries=$ac_optarg ;;
  983. -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
  984. Try \`$0 --help' for more information." >&2
  985. { (exit 1); exit 1; }; }
  986. ;;
  987. *=*)
  988. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  989. # Reject names that are not valid shell variable names.
  990. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  991. { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  992. { (exit 1); exit 1; }; }
  993. eval $ac_envvar=\$ac_optarg
  994. export $ac_envvar ;;
  995. *)
  996. # FIXME: should be removed in autoconf 3.0.
  997. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  998. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  999. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1000. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1001. ;;
  1002. esac
  1003. done
  1004. if test -n "$ac_prev"; then
  1005. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1006. { $as_echo "$as_me: error: missing argument to $ac_option" >&2
  1007. { (exit 1); exit 1; }; }
  1008. fi
  1009. if test -n "$ac_unrecognized_opts"; then
  1010. case $enable_option_checking in
  1011. no) ;;
  1012. fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
  1013. { (exit 1); exit 1; }; } ;;
  1014. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1015. esac
  1016. fi
  1017. # Check all directory arguments for consistency.
  1018. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1019. datadir sysconfdir sharedstatedir localstatedir includedir \
  1020. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1021. libdir localedir mandir
  1022. do
  1023. eval ac_val=\$$ac_var
  1024. # Remove trailing slashes.
  1025. case $ac_val in
  1026. */ )
  1027. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1028. eval $ac_var=\$ac_val;;
  1029. esac
  1030. # Be sure to have absolute directory names.
  1031. case $ac_val in
  1032. [\\/$]* | ?:[\\/]* ) continue;;
  1033. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1034. esac
  1035. { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1036. { (exit 1); exit 1; }; }
  1037. done
  1038. # There might be people who depend on the old broken behavior: `$host'
  1039. # used to hold the argument of --host etc.
  1040. # FIXME: To remove some day.
  1041. build=$build_alias
  1042. host=$host_alias
  1043. target=$target_alias
  1044. # FIXME: To remove some day.
  1045. if test "x$host_alias" != x; then
  1046. if test "x$build_alias" = x; then
  1047. cross_compiling=maybe
  1048. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1049. If a cross compiler is detected then cross compile mode will be used." >&2
  1050. elif test "x$build_alias" != "x$host_alias"; then
  1051. cross_compiling=yes
  1052. fi
  1053. fi
  1054. ac_tool_prefix=
  1055. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1056. test "$silent" = yes && exec 6>/dev/null
  1057. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1058. ac_ls_di=`ls -di .` &&
  1059. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1060. { $as_echo "$as_me: error: working directory cannot be determined" >&2
  1061. { (exit 1); exit 1; }; }
  1062. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1063. { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
  1064. { (exit 1); exit 1; }; }
  1065. # Find the source files, if location was not specified.
  1066. if test -z "$srcdir"; then
  1067. ac_srcdir_defaulted=yes
  1068. # Try the directory containing this script, then the parent directory.
  1069. ac_confdir=`$as_dirname -- "$as_myself" ||
  1070. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1071. X"$as_myself" : 'X\(//\)[^/]' \| \
  1072. X"$as_myself" : 'X\(//\)$' \| \
  1073. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1074. $as_echo X"$as_myself" |
  1075. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1076. s//\1/
  1077. q
  1078. }
  1079. /^X\(\/\/\)[^/].*/{
  1080. s//\1/
  1081. q
  1082. }
  1083. /^X\(\/\/\)$/{
  1084. s//\1/
  1085. q
  1086. }
  1087. /^X\(\/\).*/{
  1088. s//\1/
  1089. q
  1090. }
  1091. s/.*/./; q'`
  1092. srcdir=$ac_confdir
  1093. if test ! -r "$srcdir/$ac_unique_file"; then
  1094. srcdir=..
  1095. fi
  1096. else
  1097. ac_srcdir_defaulted=no
  1098. fi
  1099. if test ! -r "$srcdir/$ac_unique_file"; then
  1100. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1101. { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1102. { (exit 1); exit 1; }; }
  1103. fi
  1104. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1105. ac_abs_confdir=`(
  1106. cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
  1107. { (exit 1); exit 1; }; }
  1108. pwd)`
  1109. # When building in place, set srcdir=.
  1110. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1111. srcdir=.
  1112. fi
  1113. # Remove unnecessary trailing slashes from srcdir.
  1114. # Double slashes in file names in object file debugging info
  1115. # mess up M-x gdb in Emacs.
  1116. case $srcdir in
  1117. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1118. esac
  1119. for ac_var in $ac_precious_vars; do
  1120. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1121. eval ac_env_${ac_var}_value=\$${ac_var}
  1122. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1123. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1124. done
  1125. #
  1126. # Report the --help message.
  1127. #
  1128. if test "$ac_init_help" = "long"; then
  1129. # Omit some internal or obsolete options to make the list less imposing.
  1130. # This message is too long to be a string in the A/UX 3.1 sh.
  1131. cat <<_ACEOF
  1132. \`configure' configures this package to adapt to many kinds of systems.
  1133. Usage: $0 [OPTION]... [VAR=VALUE]...
  1134. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1135. VAR=VALUE. See below for descriptions of some of the useful variables.
  1136. Defaults for the options are specified in brackets.
  1137. Configuration:
  1138. -h, --help display this help and exit
  1139. --help=short display options specific to this package
  1140. --help=recursive display the short help of all the included packages
  1141. -V, --version display version information and exit
  1142. -q, --quiet, --silent do not print \`checking...' messages
  1143. --cache-file=FILE cache test results in FILE [disabled]
  1144. -C, --config-cache alias for \`--cache-file=config.cache'
  1145. -n, --no-create do not create output files
  1146. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1147. Installation directories:
  1148. --prefix=PREFIX install architecture-independent files in PREFIX
  1149. [$ac_default_prefix]
  1150. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1151. [PREFIX]
  1152. By default, \`make install' will install all the files in
  1153. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1154. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1155. for instance \`--prefix=\$HOME'.
  1156. For better control, use the options below.
  1157. Fine tuning of the installation directories:
  1158. --bindir=DIR user executables [EPREFIX/bin]
  1159. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1160. --libexecdir=DIR program executables [EPREFIX/libexec]
  1161. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1162. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1163. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1164. --libdir=DIR object code libraries [EPREFIX/lib]
  1165. --includedir=DIR C header files [PREFIX/include]
  1166. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1167. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1168. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1169. --infodir=DIR info documentation [DATAROOTDIR/info]
  1170. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1171. --mandir=DIR man documentation [DATAROOTDIR/man]
  1172. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1173. --htmldir=DIR html documentation [DOCDIR]
  1174. --dvidir=DIR dvi documentation [DOCDIR]
  1175. --pdfdir=DIR pdf documentation [DOCDIR]
  1176. --psdir=DIR ps documentation [DOCDIR]
  1177. _ACEOF
  1178. cat <<\_ACEOF
  1179. _ACEOF
  1180. fi
  1181. if test -n "$ac_init_help"; then
  1182. cat <<\_ACEOF
  1183. Optional Features:
  1184. --disable-option-checking ignore unrecognized --enable/--with options
  1185. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1186. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1187. --disable-ipv6 disable IPv6 support
  1188. Optional Packages:
  1189. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1190. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1191. --with-openssl=DIR Path to OpenSSL
  1192. Some influential environment variables:
  1193. CXX C++ compiler command
  1194. CXXFLAGS C++ compiler flags
  1195. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1196. nonstandard directory <lib dir>
  1197. LIBS libraries to pass to the linker, e.g. -l<library>
  1198. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1199. you have headers in a nonstandard directory <include dir>
  1200. CXXCPP C++ preprocessor
  1201. Use these variables to override the choices made by `configure' or to help
  1202. it to find libraries and programs with nonstandard names/locations.
  1203. _ACEOF
  1204. ac_status=$?
  1205. fi
  1206. if test "$ac_init_help" = "recursive"; then
  1207. # If there are subdirs, report their specific --help.
  1208. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1209. test -d "$ac_dir" ||
  1210. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1211. continue
  1212. ac_builddir=.
  1213. case "$ac_dir" in
  1214. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1215. *)
  1216. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1217. # A ".." for each directory in $ac_dir_suffix.
  1218. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1219. case $ac_top_builddir_sub in
  1220. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1221. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1222. esac ;;
  1223. esac
  1224. ac_abs_top_builddir=$ac_pwd
  1225. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1226. # for backward compatibility:
  1227. ac_top_builddir=$ac_top_build_prefix
  1228. case $srcdir in
  1229. .) # We are building in place.
  1230. ac_srcdir=.
  1231. ac_top_srcdir=$ac_top_builddir_sub
  1232. ac_abs_top_srcdir=$ac_pwd ;;
  1233. [\\/]* | ?:[\\/]* ) # Absolute name.
  1234. ac_srcdir=$srcdir$ac_dir_suffix;
  1235. ac_top_srcdir=$srcdir
  1236. ac_abs_top_srcdir=$srcdir ;;
  1237. *) # Relative name.
  1238. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1239. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1240. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1241. esac
  1242. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1243. cd "$ac_dir" || { ac_status=$?; continue; }
  1244. # Check for guested configure.
  1245. if test -f "$ac_srcdir/configure.gnu"; then
  1246. echo &&
  1247. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1248. elif test -f "$ac_srcdir/configure"; then
  1249. echo &&
  1250. $SHELL "$ac_srcdir/configure" --help=recursive
  1251. else
  1252. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1253. fi || ac_status=$?
  1254. cd "$ac_pwd" || { ac_status=$?; break; }
  1255. done
  1256. fi
  1257. test -n "$ac_init_help" && exit $ac_status
  1258. if $ac_init_version; then
  1259. cat <<\_ACEOF
  1260. configure
  1261. generated by GNU Autoconf 2.63
  1262. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1263. 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  1264. This configure script is free software; the Free Software Foundation
  1265. gives unlimited permission to copy, distribute and modify it.
  1266. Copyright (c) 2003 - 2009 Bryan Drewery
  1267. _ACEOF
  1268. exit
  1269. fi
  1270. cat >config.log <<_ACEOF
  1271. This file contains any messages produced by compilers while
  1272. running configure, to aid debugging if configure makes a mistake.
  1273. It was created by $as_me, which was
  1274. generated by GNU Autoconf 2.63. Invocation command line was
  1275. $ $0 $@
  1276. _ACEOF
  1277. exec 5>>config.log
  1278. {
  1279. cat <<_ASUNAME
  1280. ## --------- ##
  1281. ## Platform. ##
  1282. ## --------- ##
  1283. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1284. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1285. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1286. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1287. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1288. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1289. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1290. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1291. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1292. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1293. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1294. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1295. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1296. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1297. _ASUNAME
  1298. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1299. for as_dir in $PATH
  1300. do
  1301. IFS=$as_save_IFS
  1302. test -z "$as_dir" && as_dir=.
  1303. $as_echo "PATH: $as_dir"
  1304. done
  1305. IFS=$as_save_IFS
  1306. } >&5
  1307. cat >&5 <<_ACEOF
  1308. ## ----------- ##
  1309. ## Core tests. ##
  1310. ## ----------- ##
  1311. _ACEOF
  1312. # Keep a trace of the command line.
  1313. # Strip out --no-create and --no-recursion so they do not pile up.
  1314. # Strip out --silent because we don't want to record it for future runs.
  1315. # Also quote any args containing shell meta-characters.
  1316. # Make two passes to allow for proper duplicate-argument suppression.
  1317. ac_configure_args=
  1318. ac_configure_args0=
  1319. ac_configure_args1=
  1320. ac_must_keep_next=false
  1321. for ac_pass in 1 2
  1322. do
  1323. for ac_arg
  1324. do
  1325. case $ac_arg in
  1326. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1327. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1328. | -silent | --silent | --silen | --sile | --sil)
  1329. continue ;;
  1330. *\'*)
  1331. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1332. esac
  1333. case $ac_pass in
  1334. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1335. 2)
  1336. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1337. if test $ac_must_keep_next = true; then
  1338. ac_must_keep_next=false # Got value, back to normal.
  1339. else
  1340. case $ac_arg in
  1341. *=* | --config-cache | -C | -disable-* | --disable-* \
  1342. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1343. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1344. | -with-* | --with-* | -without-* | --without-* | --x)
  1345. case "$ac_configure_args0 " in
  1346. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1347. esac
  1348. ;;
  1349. -* ) ac_must_keep_next=true ;;
  1350. esac
  1351. fi
  1352. ac_configure_args="$ac_configure_args '$ac_arg'"
  1353. ;;
  1354. esac
  1355. done
  1356. done
  1357. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1358. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1359. # When interrupted or exit'd, cleanup temporary files, and complete
  1360. # config.log. We remove comments because anyway the quotes in there
  1361. # would cause problems or look ugly.
  1362. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1363. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1364. trap 'exit_status=$?
  1365. # Save into config.log some information that might help in debugging.
  1366. {
  1367. echo
  1368. cat <<\_ASBOX
  1369. ## ---------------- ##
  1370. ## Cache variables. ##
  1371. ## ---------------- ##
  1372. _ASBOX
  1373. echo
  1374. # The following way of writing the cache mishandles newlines in values,
  1375. (
  1376. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1377. eval ac_val=\$$ac_var
  1378. case $ac_val in #(
  1379. *${as_nl}*)
  1380. case $ac_var in #(
  1381. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  1382. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1383. esac
  1384. case $ac_var in #(
  1385. _ | IFS | as_nl) ;; #(
  1386. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1387. *) $as_unset $ac_var ;;
  1388. esac ;;
  1389. esac
  1390. done
  1391. (set) 2>&1 |
  1392. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1393. *${as_nl}ac_space=\ *)
  1394. sed -n \
  1395. "s/'\''/'\''\\\\'\'''\''/g;
  1396. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1397. ;; #(
  1398. *)
  1399. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1400. ;;
  1401. esac |
  1402. sort
  1403. )
  1404. echo
  1405. cat <<\_ASBOX
  1406. ## ----------------- ##
  1407. ## Output variables. ##
  1408. ## ----------------- ##
  1409. _ASBOX
  1410. echo
  1411. for ac_var in $ac_subst_vars
  1412. do
  1413. eval ac_val=\$$ac_var
  1414. case $ac_val in
  1415. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1416. esac
  1417. $as_echo "$ac_var='\''$ac_val'\''"
  1418. done | sort
  1419. echo
  1420. if test -n "$ac_subst_files"; then
  1421. cat <<\_ASBOX
  1422. ## ------------------- ##
  1423. ## File substitutions. ##
  1424. ## ------------------- ##
  1425. _ASBOX
  1426. echo
  1427. for ac_var in $ac_subst_files
  1428. do
  1429. eval ac_val=\$$ac_var
  1430. case $ac_val in
  1431. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1432. esac
  1433. $as_echo "$ac_var='\''$ac_val'\''"
  1434. done | sort
  1435. echo
  1436. fi
  1437. if test -s confdefs.h; then
  1438. cat <<\_ASBOX
  1439. ## ----------- ##
  1440. ## confdefs.h. ##
  1441. ## ----------- ##
  1442. _ASBOX
  1443. echo
  1444. cat confdefs.h
  1445. echo
  1446. fi
  1447. test "$ac_signal" != 0 &&
  1448. $as_echo "$as_me: caught signal $ac_signal"
  1449. $as_echo "$as_me: exit $exit_status"
  1450. } >&5
  1451. rm -f core *.core core.conftest.* &&
  1452. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1453. exit $exit_status
  1454. ' 0
  1455. for ac_signal in 1 2 13 15; do
  1456. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1457. done
  1458. ac_signal=0
  1459. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1460. rm -f -r conftest* confdefs.h
  1461. # Predefined preprocessor variables.
  1462. cat >>confdefs.h <<_ACEOF
  1463. #define PACKAGE_NAME "$PACKAGE_NAME"
  1464. _ACEOF
  1465. cat >>confdefs.h <<_ACEOF
  1466. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1467. _ACEOF
  1468. cat >>confdefs.h <<_ACEOF
  1469. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1470. _ACEOF
  1471. cat >>confdefs.h <<_ACEOF
  1472. #define PACKAGE_STRING "$PACKAGE_STRING"
  1473. _ACEOF
  1474. cat >>confdefs.h <<_ACEOF
  1475. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1476. _ACEOF
  1477. # Let the site file select an alternate cache file if it wants to.
  1478. # Prefer an explicitly selected file to automatically selected ones.
  1479. ac_site_file1=NONE
  1480. ac_site_file2=NONE
  1481. if test -n "$CONFIG_SITE"; then
  1482. ac_site_file1=$CONFIG_SITE
  1483. elif test "x$prefix" != xNONE; then
  1484. ac_site_file1=$prefix/share/config.site
  1485. ac_site_file2=$prefix/etc/config.site
  1486. else
  1487. ac_site_file1=$ac_default_prefix/share/config.site
  1488. ac_site_file2=$ac_default_prefix/etc/config.site
  1489. fi
  1490. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1491. do
  1492. test "x$ac_site_file" = xNONE && continue
  1493. if test -r "$ac_site_file"; then
  1494. { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1495. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1496. sed 's/^/| /' "$ac_site_file" >&5
  1497. . "$ac_site_file"
  1498. fi
  1499. done
  1500. if test -r "$cache_file"; then
  1501. # Some versions of bash will fail to source /dev/null (special
  1502. # files actually), so we avoid doing that.
  1503. if test -f "$cache_file"; then
  1504. { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1505. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1506. case $cache_file in
  1507. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1508. *) . "./$cache_file";;
  1509. esac
  1510. fi
  1511. else
  1512. { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1513. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1514. >$cache_file
  1515. fi
  1516. ac_header_list="$ac_header_list sys/time.h"
  1517. ac_header_list="$ac_header_list unistd.h"
  1518. ac_func_list="$ac_func_list alarm"
  1519. # Check that the precious variables saved in the cache have kept the same
  1520. # value.
  1521. ac_cache_corrupted=false
  1522. for ac_var in $ac_precious_vars; do
  1523. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1524. eval ac_new_set=\$ac_env_${ac_var}_set
  1525. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1526. eval ac_new_val=\$ac_env_${ac_var}_value
  1527. case $ac_old_set,$ac_new_set in
  1528. set,)
  1529. { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1530. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1531. ac_cache_corrupted=: ;;
  1532. ,set)
  1533. { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1534. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1535. ac_cache_corrupted=: ;;
  1536. ,);;
  1537. *)
  1538. if test "x$ac_old_val" != "x$ac_new_val"; then
  1539. # differences in whitespace do not lead to failure.
  1540. ac_old_val_w=`echo x $ac_old_val`
  1541. ac_new_val_w=`echo x $ac_new_val`
  1542. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1543. { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1544. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1545. ac_cache_corrupted=:
  1546. else
  1547. { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1548. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1549. eval $ac_var=\$ac_old_val
  1550. fi
  1551. { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
  1552. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1553. { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
  1554. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1555. fi;;
  1556. esac
  1557. # Pass precious variables to config.status.
  1558. if test "$ac_new_set" = set; then
  1559. case $ac_new_val in
  1560. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1561. *) ac_arg=$ac_var=$ac_new_val ;;
  1562. esac
  1563. case " $ac_configure_args " in
  1564. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1565. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1566. esac
  1567. fi
  1568. done
  1569. if $ac_cache_corrupted; then
  1570. { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  1571. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1572. { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1573. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1574. { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1575. $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1576. { (exit 1); exit 1; }; }
  1577. fi
  1578. ac_ext=c
  1579. ac_cpp='$CPP $CPPFLAGS'
  1580. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1581. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1582. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1583. ac_config_headers="$ac_config_headers config.h"
  1584. # Remove --cache-file and --srcdir arguments so they do not pile up.
  1585. egg_ac_parameters=
  1586. ac_prev=
  1587. for ac_arg in $ac_configure_args; do
  1588. if test -n "$ac_prev"; then
  1589. ac_prev=
  1590. continue
  1591. fi
  1592. case $ac_arg in
  1593. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1594. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1595. ac_prev=cache_file ;;
  1596. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1597. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  1598. | --c=*)
  1599. ;;
  1600. --config-cache | -C)
  1601. ;;
  1602. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1603. ac_prev=srcdir ;;
  1604. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1605. ;;
  1606. *) egg_ac_parameters="$egg_ac_parameters $ac_arg" ;;
  1607. esac
  1608. done
  1609. # Setup build environment
  1610. #AC_REQUIRE_CPP
  1611. ac_ext=cpp
  1612. ac_cpp='$CXXCPP $CPPFLAGS'
  1613. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1614. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1615. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  1616. ac_ext=cpp
  1617. ac_cpp='$CXXCPP $CPPFLAGS'
  1618. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1619. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1620. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  1621. if test -z "$CXX"; then
  1622. if test -n "$CCC"; then
  1623. CXX=$CCC
  1624. else
  1625. if test -n "$ac_tool_prefix"; then
  1626. for ac_prog in g++-4.4 g++-4.4.1 g++-4.4.2 g++-4.4.0 g++44 g++4 g++-3.3 g++33 g++-3 g++3 g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  1627. do
  1628. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1629. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1630. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  1631. $as_echo_n "checking for $ac_word... " >&6; }
  1632. if test "${ac_cv_prog_CXX+set}" = set; then
  1633. $as_echo_n "(cached) " >&6
  1634. else
  1635. if test -n "$CXX"; then
  1636. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  1637. else
  1638. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1639. for as_dir in $PATH
  1640. do
  1641. IFS=$as_save_IFS
  1642. test -z "$as_dir" && as_dir=.
  1643. for ac_exec_ext in '' $ac_executable_extensions; do
  1644. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1645. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  1646. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1647. break 2
  1648. fi
  1649. done
  1650. done
  1651. IFS=$as_save_IFS
  1652. fi
  1653. fi
  1654. CXX=$ac_cv_prog_CXX
  1655. if test -n "$CXX"; then
  1656. { $as_echo "$as_me:$LINENO: result: $CXX" >&5
  1657. $as_echo "$CXX" >&6; }
  1658. else
  1659. { $as_echo "$as_me:$LINENO: result: no" >&5
  1660. $as_echo "no" >&6; }
  1661. fi
  1662. test -n "$CXX" && break
  1663. done
  1664. fi
  1665. if test -z "$CXX"; then
  1666. ac_ct_CXX=$CXX
  1667. for ac_prog in g++-4.4 g++-4.4.1 g++-4.4.2 g++-4.4.0 g++44 g++4 g++-3.3 g++33 g++-3 g++3 g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  1668. do
  1669. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1670. set dummy $ac_prog; ac_word=$2
  1671. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  1672. $as_echo_n "checking for $ac_word... " >&6; }
  1673. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  1674. $as_echo_n "(cached) " >&6
  1675. else
  1676. if test -n "$ac_ct_CXX"; then
  1677. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  1678. else
  1679. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1680. for as_dir in $PATH
  1681. do
  1682. IFS=$as_save_IFS
  1683. test -z "$as_dir" && as_dir=.
  1684. for ac_exec_ext in '' $ac_executable_extensions; do
  1685. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1686. ac_cv_prog_ac_ct_CXX="$ac_prog"
  1687. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1688. break 2
  1689. fi
  1690. done
  1691. done
  1692. IFS=$as_save_IFS
  1693. fi
  1694. fi
  1695. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  1696. if test -n "$ac_ct_CXX"; then
  1697. { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  1698. $as_echo "$ac_ct_CXX" >&6; }
  1699. else
  1700. { $as_echo "$as_me:$LINENO: result: no" >&5
  1701. $as_echo "no" >&6; }
  1702. fi
  1703. test -n "$ac_ct_CXX" && break
  1704. done
  1705. if test "x$ac_ct_CXX" = x; then
  1706. CXX="g++"
  1707. else
  1708. case $cross_compiling:$ac_tool_warned in
  1709. yes:)
  1710. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  1711. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  1712. ac_tool_warned=yes ;;
  1713. esac
  1714. CXX=$ac_ct_CXX
  1715. fi
  1716. fi
  1717. fi
  1718. fi
  1719. # Provide some information about the compiler.
  1720. $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  1721. set X $ac_compile
  1722. ac_compiler=$2
  1723. { (ac_try="$ac_compiler --version >&5"
  1724. case "(($ac_try" in
  1725. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1726. *) ac_try_echo=$ac_try;;
  1727. esac
  1728. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  1729. $as_echo "$ac_try_echo") >&5
  1730. (eval "$ac_compiler --version >&5") 2>&5
  1731. ac_status=$?
  1732. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1733. (exit $ac_status); }
  1734. { (ac_try="$ac_compiler -v >&5"
  1735. case "(($ac_try" in
  1736. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1737. *) ac_try_echo=$ac_try;;
  1738. esac
  1739. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  1740. $as_echo "$ac_try_echo") >&5
  1741. (eval "$ac_compiler -v >&5") 2>&5
  1742. ac_status=$?
  1743. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1744. (exit $ac_status); }
  1745. { (ac_try="$ac_compiler -V >&5"
  1746. case "(($ac_try" in
  1747. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1748. *) ac_try_echo=$ac_try;;
  1749. esac
  1750. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  1751. $as_echo "$ac_try_echo") >&5
  1752. (eval "$ac_compiler -V >&5") 2>&5
  1753. ac_status=$?
  1754. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1755. (exit $ac_status); }
  1756. cat >conftest.$ac_ext <<_ACEOF
  1757. /* confdefs.h. */
  1758. _ACEOF
  1759. cat confdefs.h >>conftest.$ac_ext
  1760. cat >>conftest.$ac_ext <<_ACEOF
  1761. /* end confdefs.h. */
  1762. int
  1763. main ()
  1764. {
  1765. ;
  1766. return 0;
  1767. }
  1768. _ACEOF
  1769. ac_clean_files_save=$ac_clean_files
  1770. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  1771. # Try to create an executable without -o first, disregard a.out.
  1772. # It will help us diagnose broken compilers, and finding out an intuition
  1773. # of exeext.
  1774. { $as_echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
  1775. $as_echo_n "checking for C++ compiler default output file name... " >&6; }
  1776. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1777. # The possible output files:
  1778. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  1779. ac_rmfiles=
  1780. for ac_file in $ac_files
  1781. do
  1782. case $ac_file in
  1783. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  1784. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  1785. esac
  1786. done
  1787. rm -f $ac_rmfiles
  1788. if { (ac_try="$ac_link_default"
  1789. case "(($ac_try" in
  1790. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1791. *) ac_try_echo=$ac_try;;
  1792. esac
  1793. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  1794. $as_echo "$ac_try_echo") >&5
  1795. (eval "$ac_link_default") 2>&5
  1796. ac_status=$?
  1797. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1798. (exit $ac_status); }; then
  1799. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  1800. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  1801. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  1802. # so that the user can short-circuit this test for compilers unknown to
  1803. # Autoconf.
  1804. for ac_file in $ac_files ''
  1805. do
  1806. test -f "$ac_file" || continue
  1807. case $ac_file in
  1808. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  1809. ;;
  1810. [ab].out )
  1811. # We found the default executable, but exeext='' is most
  1812. # certainly right.
  1813. break;;
  1814. *.* )
  1815. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  1816. then :; else
  1817. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1818. fi
  1819. # We set ac_cv_exeext here because the later test for it is not
  1820. # safe: cross compilers may not add the suffix if given an `-o'
  1821. # argument, so we may need to know it at that point already.
  1822. # Even if this section looks crufty: it has the advantage of
  1823. # actually working.
  1824. break;;
  1825. * )
  1826. break;;
  1827. esac
  1828. done
  1829. test "$ac_cv_exeext" = no && ac_cv_exeext=
  1830. else
  1831. ac_file=''
  1832. fi
  1833. { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
  1834. $as_echo "$ac_file" >&6; }
  1835. if test -z "$ac_file"; then
  1836. $as_echo "$as_me: failed program was:" >&5
  1837. sed 's/^/| /' conftest.$ac_ext >&5
  1838. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  1839. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1840. { { $as_echo "$as_me:$LINENO: error: C++ compiler cannot create executables
  1841. See \`config.log' for more details." >&5
  1842. $as_echo "$as_me: error: C++ compiler cannot create executables
  1843. See \`config.log' for more details." >&2;}
  1844. { (exit 77); exit 77; }; }; }
  1845. fi
  1846. ac_exeext=$ac_cv_exeext
  1847. # Check that the compiler produces executables we can run. If not, either
  1848. # the compiler is broken, or we cross compile.
  1849. { $as_echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
  1850. $as_echo_n "checking whether the C++ compiler works... " >&6; }
  1851. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1852. # If not cross compiling, check that we can run a simple program.
  1853. if test "$cross_compiling" != yes; then
  1854. if { ac_try='./$ac_file'
  1855. { (case "(($ac_try" in
  1856. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1857. *) ac_try_echo=$ac_try;;
  1858. esac
  1859. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  1860. $as_echo "$ac_try_echo") >&5
  1861. (eval "$ac_try") 2>&5
  1862. ac_status=$?
  1863. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1864. (exit $ac_status); }; }; then
  1865. cross_compiling=no
  1866. else
  1867. if test "$cross_compiling" = maybe; then
  1868. cross_compiling=yes
  1869. else
  1870. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  1871. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1872. { { $as_echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
  1873. If you meant to cross compile, use \`--host'.
  1874. See \`config.log' for more details." >&5
  1875. $as_echo "$as_me: error: cannot run C++ compiled programs.
  1876. If you meant to cross compile, use \`--host'.
  1877. See \`config.log' for more details." >&2;}
  1878. { (exit 1); exit 1; }; }; }
  1879. fi
  1880. fi
  1881. fi
  1882. { $as_echo "$as_me:$LINENO: result: yes" >&5
  1883. $as_echo "yes" >&6; }
  1884. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  1885. ac_clean_files=$ac_clean_files_save
  1886. # Check that the compiler produces executables we can run. If not, either
  1887. # the compiler is broken, or we cross compile.
  1888. { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  1889. $as_echo_n "checking whether we are cross compiling... " >&6; }
  1890. { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
  1891. $as_echo "$cross_compiling" >&6; }
  1892. { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
  1893. $as_echo_n "checking for suffix of executables... " >&6; }
  1894. if { (ac_try="$ac_link"
  1895. case "(($ac_try" in
  1896. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1897. *) ac_try_echo=$ac_try;;
  1898. esac
  1899. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  1900. $as_echo "$ac_try_echo") >&5
  1901. (eval "$ac_link") 2>&5
  1902. ac_status=$?
  1903. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1904. (exit $ac_status); }; then
  1905. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  1906. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  1907. # work properly (i.e., refer to `conftest.exe'), while it won't with
  1908. # `rm'.
  1909. for ac_file in conftest.exe conftest conftest.*; do
  1910. test -f "$ac_file" || continue
  1911. case $ac_file in
  1912. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  1913. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1914. break;;
  1915. * ) break;;
  1916. esac
  1917. done
  1918. else
  1919. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  1920. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1921. { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  1922. See \`config.log' for more details." >&5
  1923. $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  1924. See \`config.log' for more details." >&2;}
  1925. { (exit 1); exit 1; }; }; }
  1926. fi
  1927. rm -f conftest$ac_cv_exeext
  1928. { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  1929. $as_echo "$ac_cv_exeext" >&6; }
  1930. rm -f conftest.$ac_ext
  1931. EXEEXT=$ac_cv_exeext
  1932. ac_exeext=$EXEEXT
  1933. { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
  1934. $as_echo_n "checking for suffix of object files... " >&6; }
  1935. if test "${ac_cv_objext+set}" = set; then
  1936. $as_echo_n "(cached) " >&6
  1937. else
  1938. cat >conftest.$ac_ext <<_ACEOF
  1939. /* confdefs.h. */
  1940. _ACEOF
  1941. cat confdefs.h >>conftest.$ac_ext
  1942. cat >>conftest.$ac_ext <<_ACEOF
  1943. /* end confdefs.h. */
  1944. int
  1945. main ()
  1946. {
  1947. ;
  1948. return 0;
  1949. }
  1950. _ACEOF
  1951. rm -f conftest.o conftest.obj
  1952. if { (ac_try="$ac_compile"
  1953. case "(($ac_try" in
  1954. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1955. *) ac_try_echo=$ac_try;;
  1956. esac
  1957. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  1958. $as_echo "$ac_try_echo") >&5
  1959. (eval "$ac_compile") 2>&5
  1960. ac_status=$?
  1961. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1962. (exit $ac_status); }; then
  1963. for ac_file in conftest.o conftest.obj conftest.*; do
  1964. test -f "$ac_file" || continue;
  1965. case $ac_file in
  1966. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  1967. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  1968. break;;
  1969. esac
  1970. done
  1971. else
  1972. $as_echo "$as_me: failed program was:" >&5
  1973. sed 's/^/| /' conftest.$ac_ext >&5
  1974. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  1975. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1976. { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  1977. See \`config.log' for more details." >&5
  1978. $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
  1979. See \`config.log' for more details." >&2;}
  1980. { (exit 1); exit 1; }; }; }
  1981. fi
  1982. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  1983. fi
  1984. { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  1985. $as_echo "$ac_cv_objext" >&6; }
  1986. OBJEXT=$ac_cv_objext
  1987. ac_objext=$OBJEXT
  1988. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  1989. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  1990. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  1991. $as_echo_n "(cached) " >&6
  1992. else
  1993. cat >conftest.$ac_ext <<_ACEOF
  1994. /* confdefs.h. */
  1995. _ACEOF
  1996. cat confdefs.h >>conftest.$ac_ext
  1997. cat >>conftest.$ac_ext <<_ACEOF
  1998. /* end confdefs.h. */
  1999. int
  2000. main ()
  2001. {
  2002. #ifndef __GNUC__
  2003. choke me
  2004. #endif
  2005. ;
  2006. return 0;
  2007. }
  2008. _ACEOF
  2009. rm -f conftest.$ac_objext
  2010. if { (ac_try="$ac_compile"
  2011. case "(($ac_try" in
  2012. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2013. *) ac_try_echo=$ac_try;;
  2014. esac
  2015. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2016. $as_echo "$ac_try_echo") >&5
  2017. (eval "$ac_compile") 2>conftest.er1
  2018. ac_status=$?
  2019. grep -v '^ *+' conftest.er1 >conftest.err
  2020. rm -f conftest.er1
  2021. cat conftest.err >&5
  2022. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2023. (exit $ac_status); } && {
  2024. test -z "$ac_cxx_werror_flag" ||
  2025. test ! -s conftest.err
  2026. } && test -s conftest.$ac_objext; then
  2027. ac_compiler_gnu=yes
  2028. else
  2029. $as_echo "$as_me: failed program was:" >&5
  2030. sed 's/^/| /' conftest.$ac_ext >&5
  2031. ac_compiler_gnu=no
  2032. fi
  2033. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2034. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2035. fi
  2036. { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  2037. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  2038. if test $ac_compiler_gnu = yes; then
  2039. GXX=yes
  2040. else
  2041. GXX=
  2042. fi
  2043. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2044. ac_save_CXXFLAGS=$CXXFLAGS
  2045. { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  2046. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  2047. if test "${ac_cv_prog_cxx_g+set}" = set; then
  2048. $as_echo_n "(cached) " >&6
  2049. else
  2050. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  2051. ac_cxx_werror_flag=yes
  2052. ac_cv_prog_cxx_g=no
  2053. CXXFLAGS="-g"
  2054. cat >conftest.$ac_ext <<_ACEOF
  2055. /* confdefs.h. */
  2056. _ACEOF
  2057. cat confdefs.h >>conftest.$ac_ext
  2058. cat >>conftest.$ac_ext <<_ACEOF
  2059. /* end confdefs.h. */
  2060. int
  2061. main ()
  2062. {
  2063. ;
  2064. return 0;
  2065. }
  2066. _ACEOF
  2067. rm -f conftest.$ac_objext
  2068. if { (ac_try="$ac_compile"
  2069. case "(($ac_try" in
  2070. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2071. *) ac_try_echo=$ac_try;;
  2072. esac
  2073. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2074. $as_echo "$ac_try_echo") >&5
  2075. (eval "$ac_compile") 2>conftest.er1
  2076. ac_status=$?
  2077. grep -v '^ *+' conftest.er1 >conftest.err
  2078. rm -f conftest.er1
  2079. cat conftest.err >&5
  2080. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2081. (exit $ac_status); } && {
  2082. test -z "$ac_cxx_werror_flag" ||
  2083. test ! -s conftest.err
  2084. } && test -s conftest.$ac_objext; then
  2085. ac_cv_prog_cxx_g=yes
  2086. else
  2087. $as_echo "$as_me: failed program was:" >&5
  2088. sed 's/^/| /' conftest.$ac_ext >&5
  2089. CXXFLAGS=""
  2090. cat >conftest.$ac_ext <<_ACEOF
  2091. /* confdefs.h. */
  2092. _ACEOF
  2093. cat confdefs.h >>conftest.$ac_ext
  2094. cat >>conftest.$ac_ext <<_ACEOF
  2095. /* end confdefs.h. */
  2096. int
  2097. main ()
  2098. {
  2099. ;
  2100. return 0;
  2101. }
  2102. _ACEOF
  2103. rm -f conftest.$ac_objext
  2104. if { (ac_try="$ac_compile"
  2105. case "(($ac_try" in
  2106. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2107. *) ac_try_echo=$ac_try;;
  2108. esac
  2109. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2110. $as_echo "$ac_try_echo") >&5
  2111. (eval "$ac_compile") 2>conftest.er1
  2112. ac_status=$?
  2113. grep -v '^ *+' conftest.er1 >conftest.err
  2114. rm -f conftest.er1
  2115. cat conftest.err >&5
  2116. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2117. (exit $ac_status); } && {
  2118. test -z "$ac_cxx_werror_flag" ||
  2119. test ! -s conftest.err
  2120. } && test -s conftest.$ac_objext; then
  2121. :
  2122. else
  2123. $as_echo "$as_me: failed program was:" >&5
  2124. sed 's/^/| /' conftest.$ac_ext >&5
  2125. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2126. CXXFLAGS="-g"
  2127. cat >conftest.$ac_ext <<_ACEOF
  2128. /* confdefs.h. */
  2129. _ACEOF
  2130. cat confdefs.h >>conftest.$ac_ext
  2131. cat >>conftest.$ac_ext <<_ACEOF
  2132. /* end confdefs.h. */
  2133. int
  2134. main ()
  2135. {
  2136. ;
  2137. return 0;
  2138. }
  2139. _ACEOF
  2140. rm -f conftest.$ac_objext
  2141. if { (ac_try="$ac_compile"
  2142. case "(($ac_try" in
  2143. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2144. *) ac_try_echo=$ac_try;;
  2145. esac
  2146. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2147. $as_echo "$ac_try_echo") >&5
  2148. (eval "$ac_compile") 2>conftest.er1
  2149. ac_status=$?
  2150. grep -v '^ *+' conftest.er1 >conftest.err
  2151. rm -f conftest.er1
  2152. cat conftest.err >&5
  2153. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2154. (exit $ac_status); } && {
  2155. test -z "$ac_cxx_werror_flag" ||
  2156. test ! -s conftest.err
  2157. } && test -s conftest.$ac_objext; then
  2158. ac_cv_prog_cxx_g=yes
  2159. else
  2160. $as_echo "$as_me: failed program was:" >&5
  2161. sed 's/^/| /' conftest.$ac_ext >&5
  2162. fi
  2163. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2164. fi
  2165. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2166. fi
  2167. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2168. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2169. fi
  2170. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  2171. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  2172. if test "$ac_test_CXXFLAGS" = set; then
  2173. CXXFLAGS=$ac_save_CXXFLAGS
  2174. elif test $ac_cv_prog_cxx_g = yes; then
  2175. if test "$GXX" = yes; then
  2176. CXXFLAGS="-g -O2"
  2177. else
  2178. CXXFLAGS="-g"
  2179. fi
  2180. else
  2181. if test "$GXX" = yes; then
  2182. CXXFLAGS="-O2"
  2183. else
  2184. CXXFLAGS=
  2185. fi
  2186. fi
  2187. ac_ext=cpp
  2188. ac_cpp='$CXXCPP $CPPFLAGS'
  2189. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2190. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2191. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2192. if test "${cross_compiling-x}" = "x"
  2193. then
  2194. cat << 'EOF' >&2
  2195. configure: error:
  2196. This system does not appear to have a working C compiler.
  2197. A working C compiler is required to compile Eggdrop.
  2198. EOF
  2199. exit 1
  2200. fi
  2201. if test -n "$GXX"; then
  2202. CXXFLAGS="$CXXFLAGS"
  2203. fi
  2204. # Crazy machines
  2205. ac_ext=cpp
  2206. ac_cpp='$CXXCPP $CPPFLAGS'
  2207. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2208. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2209. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2210. { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  2211. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  2212. if test -z "$CXXCPP"; then
  2213. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  2214. $as_echo_n "(cached) " >&6
  2215. else
  2216. # Double quotes because CXXCPP needs to be expanded
  2217. for CXXCPP in "$CXX -E" "/lib/cpp"
  2218. do
  2219. ac_preproc_ok=false
  2220. for ac_cxx_preproc_warn_flag in '' yes
  2221. do
  2222. # Use a header file that comes with gcc, so configuring glibc
  2223. # with a fresh cross-compiler works.
  2224. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2225. # <limits.h> exists even on freestanding compilers.
  2226. # On the NeXT, cc -E runs the code through the compiler's parser,
  2227. # not just through cpp. "Syntax error" is here to catch this case.
  2228. cat >conftest.$ac_ext <<_ACEOF
  2229. /* confdefs.h. */
  2230. _ACEOF
  2231. cat confdefs.h >>conftest.$ac_ext
  2232. cat >>conftest.$ac_ext <<_ACEOF
  2233. /* end confdefs.h. */
  2234. #ifdef __STDC__
  2235. # include <limits.h>
  2236. #else
  2237. # include <assert.h>
  2238. #endif
  2239. Syntax error
  2240. _ACEOF
  2241. if { (ac_try="$ac_cpp conftest.$ac_ext"
  2242. case "(($ac_try" in
  2243. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2244. *) ac_try_echo=$ac_try;;
  2245. esac
  2246. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2247. $as_echo "$ac_try_echo") >&5
  2248. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2249. ac_status=$?
  2250. grep -v '^ *+' conftest.er1 >conftest.err
  2251. rm -f conftest.er1
  2252. cat conftest.err >&5
  2253. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2254. (exit $ac_status); } >/dev/null && {
  2255. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2256. test ! -s conftest.err
  2257. }; then
  2258. :
  2259. else
  2260. $as_echo "$as_me: failed program was:" >&5
  2261. sed 's/^/| /' conftest.$ac_ext >&5
  2262. # Broken: fails on valid input.
  2263. continue
  2264. fi
  2265. rm -f conftest.err conftest.$ac_ext
  2266. # OK, works on sane cases. Now check whether nonexistent headers
  2267. # can be detected and how.
  2268. cat >conftest.$ac_ext <<_ACEOF
  2269. /* confdefs.h. */
  2270. _ACEOF
  2271. cat confdefs.h >>conftest.$ac_ext
  2272. cat >>conftest.$ac_ext <<_ACEOF
  2273. /* end confdefs.h. */
  2274. #include <ac_nonexistent.h>
  2275. _ACEOF
  2276. if { (ac_try="$ac_cpp conftest.$ac_ext"
  2277. case "(($ac_try" in
  2278. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2279. *) ac_try_echo=$ac_try;;
  2280. esac
  2281. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2282. $as_echo "$ac_try_echo") >&5
  2283. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2284. ac_status=$?
  2285. grep -v '^ *+' conftest.er1 >conftest.err
  2286. rm -f conftest.er1
  2287. cat conftest.err >&5
  2288. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2289. (exit $ac_status); } >/dev/null && {
  2290. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2291. test ! -s conftest.err
  2292. }; then
  2293. # Broken: success on invalid input.
  2294. continue
  2295. else
  2296. $as_echo "$as_me: failed program was:" >&5
  2297. sed 's/^/| /' conftest.$ac_ext >&5
  2298. # Passes both tests.
  2299. ac_preproc_ok=:
  2300. break
  2301. fi
  2302. rm -f conftest.err conftest.$ac_ext
  2303. done
  2304. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2305. rm -f conftest.err conftest.$ac_ext
  2306. if $ac_preproc_ok; then
  2307. break
  2308. fi
  2309. done
  2310. ac_cv_prog_CXXCPP=$CXXCPP
  2311. fi
  2312. CXXCPP=$ac_cv_prog_CXXCPP
  2313. else
  2314. ac_cv_prog_CXXCPP=$CXXCPP
  2315. fi
  2316. { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
  2317. $as_echo "$CXXCPP" >&6; }
  2318. ac_preproc_ok=false
  2319. for ac_cxx_preproc_warn_flag in '' yes
  2320. do
  2321. # Use a header file that comes with gcc, so configuring glibc
  2322. # with a fresh cross-compiler works.
  2323. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2324. # <limits.h> exists even on freestanding compilers.
  2325. # On the NeXT, cc -E runs the code through the compiler's parser,
  2326. # not just through cpp. "Syntax error" is here to catch this case.
  2327. cat >conftest.$ac_ext <<_ACEOF
  2328. /* confdefs.h. */
  2329. _ACEOF
  2330. cat confdefs.h >>conftest.$ac_ext
  2331. cat >>conftest.$ac_ext <<_ACEOF
  2332. /* end confdefs.h. */
  2333. #ifdef __STDC__
  2334. # include <limits.h>
  2335. #else
  2336. # include <assert.h>
  2337. #endif
  2338. Syntax error
  2339. _ACEOF
  2340. if { (ac_try="$ac_cpp conftest.$ac_ext"
  2341. case "(($ac_try" in
  2342. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2343. *) ac_try_echo=$ac_try;;
  2344. esac
  2345. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2346. $as_echo "$ac_try_echo") >&5
  2347. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2348. ac_status=$?
  2349. grep -v '^ *+' conftest.er1 >conftest.err
  2350. rm -f conftest.er1
  2351. cat conftest.err >&5
  2352. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2353. (exit $ac_status); } >/dev/null && {
  2354. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2355. test ! -s conftest.err
  2356. }; then
  2357. :
  2358. else
  2359. $as_echo "$as_me: failed program was:" >&5
  2360. sed 's/^/| /' conftest.$ac_ext >&5
  2361. # Broken: fails on valid input.
  2362. continue
  2363. fi
  2364. rm -f conftest.err conftest.$ac_ext
  2365. # OK, works on sane cases. Now check whether nonexistent headers
  2366. # can be detected and how.
  2367. cat >conftest.$ac_ext <<_ACEOF
  2368. /* confdefs.h. */
  2369. _ACEOF
  2370. cat confdefs.h >>conftest.$ac_ext
  2371. cat >>conftest.$ac_ext <<_ACEOF
  2372. /* end confdefs.h. */
  2373. #include <ac_nonexistent.h>
  2374. _ACEOF
  2375. if { (ac_try="$ac_cpp conftest.$ac_ext"
  2376. case "(($ac_try" in
  2377. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2378. *) ac_try_echo=$ac_try;;
  2379. esac
  2380. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2381. $as_echo "$ac_try_echo") >&5
  2382. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2383. ac_status=$?
  2384. grep -v '^ *+' conftest.er1 >conftest.err
  2385. rm -f conftest.er1
  2386. cat conftest.err >&5
  2387. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2388. (exit $ac_status); } >/dev/null && {
  2389. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2390. test ! -s conftest.err
  2391. }; then
  2392. # Broken: success on invalid input.
  2393. continue
  2394. else
  2395. $as_echo "$as_me: failed program was:" >&5
  2396. sed 's/^/| /' conftest.$ac_ext >&5
  2397. # Passes both tests.
  2398. ac_preproc_ok=:
  2399. break
  2400. fi
  2401. rm -f conftest.err conftest.$ac_ext
  2402. done
  2403. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2404. rm -f conftest.err conftest.$ac_ext
  2405. if $ac_preproc_ok; then
  2406. :
  2407. else
  2408. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2409. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2410. { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  2411. See \`config.log' for more details." >&5
  2412. $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  2413. See \`config.log' for more details." >&2;}
  2414. { (exit 1); exit 1; }; }; }
  2415. fi
  2416. ac_ext=cpp
  2417. ac_cpp='$CXXCPP $CPPFLAGS'
  2418. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2419. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2420. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2421. { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  2422. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  2423. if test "${ac_cv_path_GREP+set}" = set; then
  2424. $as_echo_n "(cached) " >&6
  2425. else
  2426. if test -z "$GREP"; then
  2427. ac_path_GREP_found=false
  2428. # Loop through the user's path and test for each of PROGNAME-LIST
  2429. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2430. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  2431. do
  2432. IFS=$as_save_IFS
  2433. test -z "$as_dir" && as_dir=.
  2434. for ac_prog in grep ggrep; do
  2435. for ac_exec_ext in '' $ac_executable_extensions; do
  2436. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  2437. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  2438. # Check for GNU ac_path_GREP and select it if it is found.
  2439. # Check for GNU $ac_path_GREP
  2440. case `"$ac_path_GREP" --version 2>&1` in
  2441. *GNU*)
  2442. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  2443. *)
  2444. ac_count=0
  2445. $as_echo_n 0123456789 >"conftest.in"
  2446. while :
  2447. do
  2448. cat "conftest.in" "conftest.in" >"conftest.tmp"
  2449. mv "conftest.tmp" "conftest.in"
  2450. cp "conftest.in" "conftest.nl"
  2451. $as_echo 'GREP' >> "conftest.nl"
  2452. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  2453. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  2454. ac_count=`expr $ac_count + 1`
  2455. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  2456. # Best one so far, save it but keep looking for a better one
  2457. ac_cv_path_GREP="$ac_path_GREP"
  2458. ac_path_GREP_max=$ac_count
  2459. fi
  2460. # 10*(2^10) chars as input seems more than enough
  2461. test $ac_count -gt 10 && break
  2462. done
  2463. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  2464. esac
  2465. $ac_path_GREP_found && break 3
  2466. done
  2467. done
  2468. done
  2469. IFS=$as_save_IFS
  2470. if test -z "$ac_cv_path_GREP"; then
  2471. { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  2472. $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  2473. { (exit 1); exit 1; }; }
  2474. fi
  2475. else
  2476. ac_cv_path_GREP=$GREP
  2477. fi
  2478. fi
  2479. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  2480. $as_echo "$ac_cv_path_GREP" >&6; }
  2481. GREP="$ac_cv_path_GREP"
  2482. { $as_echo "$as_me:$LINENO: checking for egrep" >&5
  2483. $as_echo_n "checking for egrep... " >&6; }
  2484. if test "${ac_cv_path_EGREP+set}" = set; then
  2485. $as_echo_n "(cached) " >&6
  2486. else
  2487. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  2488. then ac_cv_path_EGREP="$GREP -E"
  2489. else
  2490. if test -z "$EGREP"; then
  2491. ac_path_EGREP_found=false
  2492. # Loop through the user's path and test for each of PROGNAME-LIST
  2493. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2494. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  2495. do
  2496. IFS=$as_save_IFS
  2497. test -z "$as_dir" && as_dir=.
  2498. for ac_prog in egrep; do
  2499. for ac_exec_ext in '' $ac_executable_extensions; do
  2500. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  2501. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  2502. # Check for GNU ac_path_EGREP and select it if it is found.
  2503. # Check for GNU $ac_path_EGREP
  2504. case `"$ac_path_EGREP" --version 2>&1` in
  2505. *GNU*)
  2506. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  2507. *)
  2508. ac_count=0
  2509. $as_echo_n 0123456789 >"conftest.in"
  2510. while :
  2511. do
  2512. cat "conftest.in" "conftest.in" >"conftest.tmp"
  2513. mv "conftest.tmp" "conftest.in"
  2514. cp "conftest.in" "conftest.nl"
  2515. $as_echo 'EGREP' >> "conftest.nl"
  2516. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  2517. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  2518. ac_count=`expr $ac_count + 1`
  2519. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  2520. # Best one so far, save it but keep looking for a better one
  2521. ac_cv_path_EGREP="$ac_path_EGREP"
  2522. ac_path_EGREP_max=$ac_count
  2523. fi
  2524. # 10*(2^10) chars as input seems more than enough
  2525. test $ac_count -gt 10 && break
  2526. done
  2527. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  2528. esac
  2529. $ac_path_EGREP_found && break 3
  2530. done
  2531. done
  2532. done
  2533. IFS=$as_save_IFS
  2534. if test -z "$ac_cv_path_EGREP"; then
  2535. { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  2536. $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  2537. { (exit 1); exit 1; }; }
  2538. fi
  2539. else
  2540. ac_cv_path_EGREP=$EGREP
  2541. fi
  2542. fi
  2543. fi
  2544. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  2545. $as_echo "$ac_cv_path_EGREP" >&6; }
  2546. EGREP="$ac_cv_path_EGREP"
  2547. { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  2548. $as_echo_n "checking for ANSI C header files... " >&6; }
  2549. if test "${ac_cv_header_stdc+set}" = set; then
  2550. $as_echo_n "(cached) " >&6
  2551. else
  2552. cat >conftest.$ac_ext <<_ACEOF
  2553. /* confdefs.h. */
  2554. _ACEOF
  2555. cat confdefs.h >>conftest.$ac_ext
  2556. cat >>conftest.$ac_ext <<_ACEOF
  2557. /* end confdefs.h. */
  2558. #include <stdlib.h>
  2559. #include <stdarg.h>
  2560. #include <string.h>
  2561. #include <float.h>
  2562. int
  2563. main ()
  2564. {
  2565. ;
  2566. return 0;
  2567. }
  2568. _ACEOF
  2569. rm -f conftest.$ac_objext
  2570. if { (ac_try="$ac_compile"
  2571. case "(($ac_try" in
  2572. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2573. *) ac_try_echo=$ac_try;;
  2574. esac
  2575. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2576. $as_echo "$ac_try_echo") >&5
  2577. (eval "$ac_compile") 2>conftest.er1
  2578. ac_status=$?
  2579. grep -v '^ *+' conftest.er1 >conftest.err
  2580. rm -f conftest.er1
  2581. cat conftest.err >&5
  2582. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2583. (exit $ac_status); } && {
  2584. test -z "$ac_cxx_werror_flag" ||
  2585. test ! -s conftest.err
  2586. } && test -s conftest.$ac_objext; then
  2587. ac_cv_header_stdc=yes
  2588. else
  2589. $as_echo "$as_me: failed program was:" >&5
  2590. sed 's/^/| /' conftest.$ac_ext >&5
  2591. ac_cv_header_stdc=no
  2592. fi
  2593. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2594. if test $ac_cv_header_stdc = yes; then
  2595. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  2596. cat >conftest.$ac_ext <<_ACEOF
  2597. /* confdefs.h. */
  2598. _ACEOF
  2599. cat confdefs.h >>conftest.$ac_ext
  2600. cat >>conftest.$ac_ext <<_ACEOF
  2601. /* end confdefs.h. */
  2602. #include <string.h>
  2603. _ACEOF
  2604. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2605. $EGREP "memchr" >/dev/null 2>&1; then
  2606. :
  2607. else
  2608. ac_cv_header_stdc=no
  2609. fi
  2610. rm -f conftest*
  2611. fi
  2612. if test $ac_cv_header_stdc = yes; then
  2613. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  2614. cat >conftest.$ac_ext <<_ACEOF
  2615. /* confdefs.h. */
  2616. _ACEOF
  2617. cat confdefs.h >>conftest.$ac_ext
  2618. cat >>conftest.$ac_ext <<_ACEOF
  2619. /* end confdefs.h. */
  2620. #include <stdlib.h>
  2621. _ACEOF
  2622. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2623. $EGREP "free" >/dev/null 2>&1; then
  2624. :
  2625. else
  2626. ac_cv_header_stdc=no
  2627. fi
  2628. rm -f conftest*
  2629. fi
  2630. if test $ac_cv_header_stdc = yes; then
  2631. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  2632. if test "$cross_compiling" = yes; then
  2633. :
  2634. else
  2635. cat >conftest.$ac_ext <<_ACEOF
  2636. /* confdefs.h. */
  2637. _ACEOF
  2638. cat confdefs.h >>conftest.$ac_ext
  2639. cat >>conftest.$ac_ext <<_ACEOF
  2640. /* end confdefs.h. */
  2641. #include <ctype.h>
  2642. #include <stdlib.h>
  2643. #if ((' ' & 0x0FF) == 0x020)
  2644. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  2645. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  2646. #else
  2647. # define ISLOWER(c) \
  2648. (('a' <= (c) && (c) <= 'i') \
  2649. || ('j' <= (c) && (c) <= 'r') \
  2650. || ('s' <= (c) && (c) <= 'z'))
  2651. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  2652. #endif
  2653. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  2654. int
  2655. main ()
  2656. {
  2657. int i;
  2658. for (i = 0; i < 256; i++)
  2659. if (XOR (islower (i), ISLOWER (i))
  2660. || toupper (i) != TOUPPER (i))
  2661. return 2;
  2662. return 0;
  2663. }
  2664. _ACEOF
  2665. rm -f conftest$ac_exeext
  2666. if { (ac_try="$ac_link"
  2667. case "(($ac_try" in
  2668. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2669. *) ac_try_echo=$ac_try;;
  2670. esac
  2671. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2672. $as_echo "$ac_try_echo") >&5
  2673. (eval "$ac_link") 2>&5
  2674. ac_status=$?
  2675. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2676. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  2677. { (case "(($ac_try" in
  2678. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2679. *) ac_try_echo=$ac_try;;
  2680. esac
  2681. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2682. $as_echo "$ac_try_echo") >&5
  2683. (eval "$ac_try") 2>&5
  2684. ac_status=$?
  2685. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2686. (exit $ac_status); }; }; then
  2687. :
  2688. else
  2689. $as_echo "$as_me: program exited with status $ac_status" >&5
  2690. $as_echo "$as_me: failed program was:" >&5
  2691. sed 's/^/| /' conftest.$ac_ext >&5
  2692. ( exit $ac_status )
  2693. ac_cv_header_stdc=no
  2694. fi
  2695. rm -rf conftest.dSYM
  2696. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  2697. fi
  2698. fi
  2699. fi
  2700. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  2701. $as_echo "$ac_cv_header_stdc" >&6; }
  2702. if test $ac_cv_header_stdc = yes; then
  2703. cat >>confdefs.h <<\_ACEOF
  2704. #define STDC_HEADERS 1
  2705. _ACEOF
  2706. fi
  2707. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  2708. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  2709. inttypes.h stdint.h unistd.h
  2710. do
  2711. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  2712. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  2713. $as_echo_n "checking for $ac_header... " >&6; }
  2714. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  2715. $as_echo_n "(cached) " >&6
  2716. else
  2717. cat >conftest.$ac_ext <<_ACEOF
  2718. /* confdefs.h. */
  2719. _ACEOF
  2720. cat confdefs.h >>conftest.$ac_ext
  2721. cat >>conftest.$ac_ext <<_ACEOF
  2722. /* end confdefs.h. */
  2723. $ac_includes_default
  2724. #include <$ac_header>
  2725. _ACEOF
  2726. rm -f conftest.$ac_objext
  2727. if { (ac_try="$ac_compile"
  2728. case "(($ac_try" in
  2729. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2730. *) ac_try_echo=$ac_try;;
  2731. esac
  2732. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2733. $as_echo "$ac_try_echo") >&5
  2734. (eval "$ac_compile") 2>conftest.er1
  2735. ac_status=$?
  2736. grep -v '^ *+' conftest.er1 >conftest.err
  2737. rm -f conftest.er1
  2738. cat conftest.err >&5
  2739. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2740. (exit $ac_status); } && {
  2741. test -z "$ac_cxx_werror_flag" ||
  2742. test ! -s conftest.err
  2743. } && test -s conftest.$ac_objext; then
  2744. eval "$as_ac_Header=yes"
  2745. else
  2746. $as_echo "$as_me: failed program was:" >&5
  2747. sed 's/^/| /' conftest.$ac_ext >&5
  2748. eval "$as_ac_Header=no"
  2749. fi
  2750. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2751. fi
  2752. ac_res=`eval 'as_val=${'$as_ac_Header'}
  2753. $as_echo "$as_val"'`
  2754. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  2755. $as_echo "$ac_res" >&6; }
  2756. as_val=`eval 'as_val=${'$as_ac_Header'}
  2757. $as_echo "$as_val"'`
  2758. if test "x$as_val" = x""yes; then
  2759. cat >>confdefs.h <<_ACEOF
  2760. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  2761. _ACEOF
  2762. fi
  2763. done
  2764. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2765. { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
  2766. $as_echo_n "checking for minix/config.h... " >&6; }
  2767. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2768. $as_echo_n "(cached) " >&6
  2769. fi
  2770. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  2771. $as_echo "$ac_cv_header_minix_config_h" >&6; }
  2772. else
  2773. # Is the header compilable?
  2774. { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
  2775. $as_echo_n "checking minix/config.h usability... " >&6; }
  2776. cat >conftest.$ac_ext <<_ACEOF
  2777. /* confdefs.h. */
  2778. _ACEOF
  2779. cat confdefs.h >>conftest.$ac_ext
  2780. cat >>conftest.$ac_ext <<_ACEOF
  2781. /* end confdefs.h. */
  2782. $ac_includes_default
  2783. #include <minix/config.h>
  2784. _ACEOF
  2785. rm -f conftest.$ac_objext
  2786. if { (ac_try="$ac_compile"
  2787. case "(($ac_try" in
  2788. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2789. *) ac_try_echo=$ac_try;;
  2790. esac
  2791. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2792. $as_echo "$ac_try_echo") >&5
  2793. (eval "$ac_compile") 2>conftest.er1
  2794. ac_status=$?
  2795. grep -v '^ *+' conftest.er1 >conftest.err
  2796. rm -f conftest.er1
  2797. cat conftest.err >&5
  2798. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2799. (exit $ac_status); } && {
  2800. test -z "$ac_cxx_werror_flag" ||
  2801. test ! -s conftest.err
  2802. } && test -s conftest.$ac_objext; then
  2803. ac_header_compiler=yes
  2804. else
  2805. $as_echo "$as_me: failed program was:" >&5
  2806. sed 's/^/| /' conftest.$ac_ext >&5
  2807. ac_header_compiler=no
  2808. fi
  2809. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2810. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  2811. $as_echo "$ac_header_compiler" >&6; }
  2812. # Is the header present?
  2813. { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
  2814. $as_echo_n "checking minix/config.h presence... " >&6; }
  2815. cat >conftest.$ac_ext <<_ACEOF
  2816. /* confdefs.h. */
  2817. _ACEOF
  2818. cat confdefs.h >>conftest.$ac_ext
  2819. cat >>conftest.$ac_ext <<_ACEOF
  2820. /* end confdefs.h. */
  2821. #include <minix/config.h>
  2822. _ACEOF
  2823. if { (ac_try="$ac_cpp conftest.$ac_ext"
  2824. case "(($ac_try" in
  2825. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2826. *) ac_try_echo=$ac_try;;
  2827. esac
  2828. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2829. $as_echo "$ac_try_echo") >&5
  2830. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2831. ac_status=$?
  2832. grep -v '^ *+' conftest.er1 >conftest.err
  2833. rm -f conftest.er1
  2834. cat conftest.err >&5
  2835. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2836. (exit $ac_status); } >/dev/null && {
  2837. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2838. test ! -s conftest.err
  2839. }; then
  2840. ac_header_preproc=yes
  2841. else
  2842. $as_echo "$as_me: failed program was:" >&5
  2843. sed 's/^/| /' conftest.$ac_ext >&5
  2844. ac_header_preproc=no
  2845. fi
  2846. rm -f conftest.err conftest.$ac_ext
  2847. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  2848. $as_echo "$ac_header_preproc" >&6; }
  2849. # So? What about this header?
  2850. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  2851. yes:no: )
  2852. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
  2853. $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2854. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
  2855. $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
  2856. ac_header_preproc=yes
  2857. ;;
  2858. no:yes:* )
  2859. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
  2860. $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
  2861. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
  2862. $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
  2863. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
  2864. $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
  2865. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
  2866. $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
  2867. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
  2868. $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
  2869. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
  2870. $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
  2871. ;;
  2872. esac
  2873. { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
  2874. $as_echo_n "checking for minix/config.h... " >&6; }
  2875. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2876. $as_echo_n "(cached) " >&6
  2877. else
  2878. ac_cv_header_minix_config_h=$ac_header_preproc
  2879. fi
  2880. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  2881. $as_echo "$ac_cv_header_minix_config_h" >&6; }
  2882. fi
  2883. if test "x$ac_cv_header_minix_config_h" = x""yes; then
  2884. MINIX=yes
  2885. else
  2886. MINIX=
  2887. fi
  2888. if test "$MINIX" = yes; then
  2889. cat >>confdefs.h <<\_ACEOF
  2890. #define _POSIX_SOURCE 1
  2891. _ACEOF
  2892. cat >>confdefs.h <<\_ACEOF
  2893. #define _POSIX_1_SOURCE 2
  2894. _ACEOF
  2895. cat >>confdefs.h <<\_ACEOF
  2896. #define _MINIX 1
  2897. _ACEOF
  2898. fi
  2899. { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
  2900. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  2901. if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
  2902. $as_echo_n "(cached) " >&6
  2903. else
  2904. cat >conftest.$ac_ext <<_ACEOF
  2905. /* confdefs.h. */
  2906. _ACEOF
  2907. cat confdefs.h >>conftest.$ac_ext
  2908. cat >>conftest.$ac_ext <<_ACEOF
  2909. /* end confdefs.h. */
  2910. # define __EXTENSIONS__ 1
  2911. $ac_includes_default
  2912. int
  2913. main ()
  2914. {
  2915. ;
  2916. return 0;
  2917. }
  2918. _ACEOF
  2919. rm -f conftest.$ac_objext
  2920. if { (ac_try="$ac_compile"
  2921. case "(($ac_try" in
  2922. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2923. *) ac_try_echo=$ac_try;;
  2924. esac
  2925. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2926. $as_echo "$ac_try_echo") >&5
  2927. (eval "$ac_compile") 2>conftest.er1
  2928. ac_status=$?
  2929. grep -v '^ *+' conftest.er1 >conftest.err
  2930. rm -f conftest.er1
  2931. cat conftest.err >&5
  2932. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2933. (exit $ac_status); } && {
  2934. test -z "$ac_cxx_werror_flag" ||
  2935. test ! -s conftest.err
  2936. } && test -s conftest.$ac_objext; then
  2937. ac_cv_safe_to_define___extensions__=yes
  2938. else
  2939. $as_echo "$as_me: failed program was:" >&5
  2940. sed 's/^/| /' conftest.$ac_ext >&5
  2941. ac_cv_safe_to_define___extensions__=no
  2942. fi
  2943. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2944. fi
  2945. { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
  2946. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  2947. test $ac_cv_safe_to_define___extensions__ = yes &&
  2948. cat >>confdefs.h <<\_ACEOF
  2949. #define __EXTENSIONS__ 1
  2950. _ACEOF
  2951. cat >>confdefs.h <<\_ACEOF
  2952. #define _ALL_SOURCE 1
  2953. _ACEOF
  2954. cat >>confdefs.h <<\_ACEOF
  2955. #define _GNU_SOURCE 1
  2956. _ACEOF
  2957. cat >>confdefs.h <<\_ACEOF
  2958. #define _POSIX_PTHREAD_SEMANTICS 1
  2959. _ACEOF
  2960. cat >>confdefs.h <<\_ACEOF
  2961. #define _TANDEM_SOURCE 1
  2962. _ACEOF
  2963. { $as_echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
  2964. $as_echo_n "checking for strerror in -lcposix... " >&6; }
  2965. if test "${ac_cv_lib_cposix_strerror+set}" = set; then
  2966. $as_echo_n "(cached) " >&6
  2967. else
  2968. ac_check_lib_save_LIBS=$LIBS
  2969. LIBS="-lcposix $LIBS"
  2970. cat >conftest.$ac_ext <<_ACEOF
  2971. /* confdefs.h. */
  2972. _ACEOF
  2973. cat confdefs.h >>conftest.$ac_ext
  2974. cat >>conftest.$ac_ext <<_ACEOF
  2975. /* end confdefs.h. */
  2976. /* Override any GCC internal prototype to avoid an error.
  2977. Use char because int might match the return type of a GCC
  2978. builtin and then its argument prototype would still apply. */
  2979. #ifdef __cplusplus
  2980. extern "C"
  2981. #endif
  2982. char strerror ();
  2983. int
  2984. main ()
  2985. {
  2986. return strerror ();
  2987. ;
  2988. return 0;
  2989. }
  2990. _ACEOF
  2991. rm -f conftest.$ac_objext conftest$ac_exeext
  2992. if { (ac_try="$ac_link"
  2993. case "(($ac_try" in
  2994. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2995. *) ac_try_echo=$ac_try;;
  2996. esac
  2997. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2998. $as_echo "$ac_try_echo") >&5
  2999. (eval "$ac_link") 2>conftest.er1
  3000. ac_status=$?
  3001. grep -v '^ *+' conftest.er1 >conftest.err
  3002. rm -f conftest.er1
  3003. cat conftest.err >&5
  3004. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3005. (exit $ac_status); } && {
  3006. test -z "$ac_cxx_werror_flag" ||
  3007. test ! -s conftest.err
  3008. } && test -s conftest$ac_exeext && {
  3009. test "$cross_compiling" = yes ||
  3010. $as_test_x conftest$ac_exeext
  3011. }; then
  3012. ac_cv_lib_cposix_strerror=yes
  3013. else
  3014. $as_echo "$as_me: failed program was:" >&5
  3015. sed 's/^/| /' conftest.$ac_ext >&5
  3016. ac_cv_lib_cposix_strerror=no
  3017. fi
  3018. rm -rf conftest.dSYM
  3019. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  3020. conftest$ac_exeext conftest.$ac_ext
  3021. LIBS=$ac_check_lib_save_LIBS
  3022. fi
  3023. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
  3024. $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
  3025. if test "x$ac_cv_lib_cposix_strerror" = x""yes; then
  3026. LIBS="$LIBS -lcposix"
  3027. fi
  3028. if test "${ac_cv_header_minix_config_h+set}" = set; then
  3029. { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
  3030. $as_echo_n "checking for minix/config.h... " >&6; }
  3031. if test "${ac_cv_header_minix_config_h+set}" = set; then
  3032. $as_echo_n "(cached) " >&6
  3033. fi
  3034. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  3035. $as_echo "$ac_cv_header_minix_config_h" >&6; }
  3036. else
  3037. # Is the header compilable?
  3038. { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
  3039. $as_echo_n "checking minix/config.h usability... " >&6; }
  3040. cat >conftest.$ac_ext <<_ACEOF
  3041. /* confdefs.h. */
  3042. _ACEOF
  3043. cat confdefs.h >>conftest.$ac_ext
  3044. cat >>conftest.$ac_ext <<_ACEOF
  3045. /* end confdefs.h. */
  3046. $ac_includes_default
  3047. #include <minix/config.h>
  3048. _ACEOF
  3049. rm -f conftest.$ac_objext
  3050. if { (ac_try="$ac_compile"
  3051. case "(($ac_try" in
  3052. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3053. *) ac_try_echo=$ac_try;;
  3054. esac
  3055. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3056. $as_echo "$ac_try_echo") >&5
  3057. (eval "$ac_compile") 2>conftest.er1
  3058. ac_status=$?
  3059. grep -v '^ *+' conftest.er1 >conftest.err
  3060. rm -f conftest.er1
  3061. cat conftest.err >&5
  3062. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3063. (exit $ac_status); } && {
  3064. test -z "$ac_cxx_werror_flag" ||
  3065. test ! -s conftest.err
  3066. } && test -s conftest.$ac_objext; then
  3067. ac_header_compiler=yes
  3068. else
  3069. $as_echo "$as_me: failed program was:" >&5
  3070. sed 's/^/| /' conftest.$ac_ext >&5
  3071. ac_header_compiler=no
  3072. fi
  3073. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3074. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  3075. $as_echo "$ac_header_compiler" >&6; }
  3076. # Is the header present?
  3077. { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
  3078. $as_echo_n "checking minix/config.h presence... " >&6; }
  3079. cat >conftest.$ac_ext <<_ACEOF
  3080. /* confdefs.h. */
  3081. _ACEOF
  3082. cat confdefs.h >>conftest.$ac_ext
  3083. cat >>conftest.$ac_ext <<_ACEOF
  3084. /* end confdefs.h. */
  3085. #include <minix/config.h>
  3086. _ACEOF
  3087. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3088. case "(($ac_try" in
  3089. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3090. *) ac_try_echo=$ac_try;;
  3091. esac
  3092. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3093. $as_echo "$ac_try_echo") >&5
  3094. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3095. ac_status=$?
  3096. grep -v '^ *+' conftest.er1 >conftest.err
  3097. rm -f conftest.er1
  3098. cat conftest.err >&5
  3099. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3100. (exit $ac_status); } >/dev/null && {
  3101. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  3102. test ! -s conftest.err
  3103. }; then
  3104. ac_header_preproc=yes
  3105. else
  3106. $as_echo "$as_me: failed program was:" >&5
  3107. sed 's/^/| /' conftest.$ac_ext >&5
  3108. ac_header_preproc=no
  3109. fi
  3110. rm -f conftest.err conftest.$ac_ext
  3111. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  3112. $as_echo "$ac_header_preproc" >&6; }
  3113. # So? What about this header?
  3114. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  3115. yes:no: )
  3116. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
  3117. $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  3118. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
  3119. $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
  3120. ac_header_preproc=yes
  3121. ;;
  3122. no:yes:* )
  3123. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
  3124. $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
  3125. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
  3126. $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
  3127. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
  3128. $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
  3129. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
  3130. $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
  3131. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
  3132. $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
  3133. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
  3134. $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
  3135. ;;
  3136. esac
  3137. { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
  3138. $as_echo_n "checking for minix/config.h... " >&6; }
  3139. if test "${ac_cv_header_minix_config_h+set}" = set; then
  3140. $as_echo_n "(cached) " >&6
  3141. else
  3142. ac_cv_header_minix_config_h=$ac_header_preproc
  3143. fi
  3144. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  3145. $as_echo "$ac_cv_header_minix_config_h" >&6; }
  3146. fi
  3147. if test "x$ac_cv_header_minix_config_h" = x""yes; then
  3148. MINIX=yes
  3149. else
  3150. MINIX=
  3151. fi
  3152. if test "$MINIX" = yes; then
  3153. cat >>confdefs.h <<\_ACEOF
  3154. #define _POSIX_SOURCE 1
  3155. _ACEOF
  3156. cat >>confdefs.h <<\_ACEOF
  3157. #define _POSIX_1_SOURCE 2
  3158. _ACEOF
  3159. cat >>confdefs.h <<\_ACEOF
  3160. #define _MINIX 1
  3161. _ACEOF
  3162. fi
  3163. { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
  3164. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  3165. if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
  3166. $as_echo_n "(cached) " >&6
  3167. else
  3168. cat >conftest.$ac_ext <<_ACEOF
  3169. /* confdefs.h. */
  3170. _ACEOF
  3171. cat confdefs.h >>conftest.$ac_ext
  3172. cat >>conftest.$ac_ext <<_ACEOF
  3173. /* end confdefs.h. */
  3174. # define __EXTENSIONS__ 1
  3175. $ac_includes_default
  3176. int
  3177. main ()
  3178. {
  3179. ;
  3180. return 0;
  3181. }
  3182. _ACEOF
  3183. rm -f conftest.$ac_objext
  3184. if { (ac_try="$ac_compile"
  3185. case "(($ac_try" in
  3186. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3187. *) ac_try_echo=$ac_try;;
  3188. esac
  3189. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3190. $as_echo "$ac_try_echo") >&5
  3191. (eval "$ac_compile") 2>conftest.er1
  3192. ac_status=$?
  3193. grep -v '^ *+' conftest.er1 >conftest.err
  3194. rm -f conftest.er1
  3195. cat conftest.err >&5
  3196. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3197. (exit $ac_status); } && {
  3198. test -z "$ac_cxx_werror_flag" ||
  3199. test ! -s conftest.err
  3200. } && test -s conftest.$ac_objext; then
  3201. ac_cv_safe_to_define___extensions__=yes
  3202. else
  3203. $as_echo "$as_me: failed program was:" >&5
  3204. sed 's/^/| /' conftest.$ac_ext >&5
  3205. ac_cv_safe_to_define___extensions__=no
  3206. fi
  3207. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3208. fi
  3209. { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
  3210. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  3211. test $ac_cv_safe_to_define___extensions__ = yes &&
  3212. cat >>confdefs.h <<\_ACEOF
  3213. #define __EXTENSIONS__ 1
  3214. _ACEOF
  3215. cat >>confdefs.h <<\_ACEOF
  3216. #define _ALL_SOURCE 1
  3217. _ACEOF
  3218. cat >>confdefs.h <<\_ACEOF
  3219. #define _GNU_SOURCE 1
  3220. _ACEOF
  3221. cat >>confdefs.h <<\_ACEOF
  3222. #define _POSIX_PTHREAD_SEMANTICS 1
  3223. _ACEOF
  3224. cat >>confdefs.h <<\_ACEOF
  3225. #define _TANDEM_SOURCE 1
  3226. _ACEOF
  3227. #checkpoint
  3228. cat >confcache <<\_ACEOF
  3229. # This file is a shell script that caches the results of configure
  3230. # tests run on this system so they can be shared between configure
  3231. # scripts and configure runs, see configure's option --config-cache.
  3232. # It is not useful on other systems. If it contains results you don't
  3233. # want to keep, you may remove or edit it.
  3234. #
  3235. # config.status only pays attention to the cache file if you give it
  3236. # the --recheck option to rerun configure.
  3237. #
  3238. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  3239. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  3240. # following values.
  3241. _ACEOF
  3242. # The following way of writing the cache mishandles newlines in values,
  3243. # but we know of no workaround that is simple, portable, and efficient.
  3244. # So, we kill variables containing newlines.
  3245. # Ultrix sh set writes to stderr and can't be redirected directly,
  3246. # and sets the high bit in the cache file unless we assign to the vars.
  3247. (
  3248. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  3249. eval ac_val=\$$ac_var
  3250. case $ac_val in #(
  3251. *${as_nl}*)
  3252. case $ac_var in #(
  3253. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  3254. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  3255. esac
  3256. case $ac_var in #(
  3257. _ | IFS | as_nl) ;; #(
  3258. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  3259. *) $as_unset $ac_var ;;
  3260. esac ;;
  3261. esac
  3262. done
  3263. (set) 2>&1 |
  3264. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  3265. *${as_nl}ac_space=\ *)
  3266. # `set' does not quote correctly, so add quotes (double-quote
  3267. # substitution turns \\\\ into \\, and sed turns \\ into \).
  3268. sed -n \
  3269. "s/'/'\\\\''/g;
  3270. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  3271. ;; #(
  3272. *)
  3273. # `set' quotes correctly as required by POSIX, so do not add quotes.
  3274. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  3275. ;;
  3276. esac |
  3277. sort
  3278. ) |
  3279. sed '
  3280. /^ac_cv_env_/b end
  3281. t clear
  3282. :clear
  3283. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  3284. t end
  3285. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  3286. :end' >>confcache
  3287. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  3288. if test -w "$cache_file"; then
  3289. test "x$cache_file" != "x/dev/null" &&
  3290. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  3291. $as_echo "$as_me: updating cache $cache_file" >&6;}
  3292. cat confcache >$cache_file
  3293. else
  3294. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  3295. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  3296. fi
  3297. fi
  3298. rm -f confcache
  3299. # Speedup compile
  3300. if test -n "$GXX" && test -z "$no_wall"; then
  3301. { $as_echo "$as_me:$LINENO: checking whether the compiler understands -Wall" >&5
  3302. $as_echo_n "checking whether the compiler understands -Wall... " >&6; }
  3303. if test "${egg_cv_var_ccwall+set}" = set; then
  3304. $as_echo_n "(cached) " >&6
  3305. else
  3306. ac_old_CXXFLAGS="$CXXFLAGS"
  3307. CXXFLAGS="$CXXFLAGS -Wall"
  3308. cat >conftest.$ac_ext <<_ACEOF
  3309. int main ()
  3310. {
  3311. return(0);
  3312. }
  3313. _ACEOF
  3314. rm -f conftest.$ac_objext
  3315. if { (ac_try="$ac_compile"
  3316. case "(($ac_try" in
  3317. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3318. *) ac_try_echo=$ac_try;;
  3319. esac
  3320. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3321. $as_echo "$ac_try_echo") >&5
  3322. (eval "$ac_compile") 2>conftest.er1
  3323. ac_status=$?
  3324. grep -v '^ *+' conftest.er1 >conftest.err
  3325. rm -f conftest.er1
  3326. cat conftest.err >&5
  3327. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3328. (exit $ac_status); } && {
  3329. test -z "$ac_cxx_werror_flag" ||
  3330. test ! -s conftest.err
  3331. } && test -s conftest.$ac_objext; then
  3332. egg_cv_var_ccwall="yes"
  3333. else
  3334. $as_echo "$as_me: failed program was:" >&5
  3335. sed 's/^/| /' conftest.$ac_ext >&5
  3336. egg_cv_var_ccwall="no"
  3337. fi
  3338. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3339. CXXFLAGS="$ac_old_CXXFLAGS"
  3340. fi
  3341. { $as_echo "$as_me:$LINENO: result: $egg_cv_var_ccwall" >&5
  3342. $as_echo "$egg_cv_var_ccwall" >&6; }
  3343. if test "$egg_cv_var_ccwall" = "yes"; then
  3344. CXXFLAGS="$CXXFLAGS -Wall"
  3345. fi
  3346. fi
  3347. if test -n "$GXX" && test -z "$no_pipe"; then
  3348. { $as_echo "$as_me:$LINENO: checking whether the compiler understands -pipe" >&5
  3349. $as_echo_n "checking whether the compiler understands -pipe... " >&6; }
  3350. if test "${egg_cv_var_ccpipe+set}" = set; then
  3351. $as_echo_n "(cached) " >&6
  3352. else
  3353. ac_old_CXX="$CXX"
  3354. CXX="$CXX -pipe"
  3355. cat >conftest.$ac_ext <<_ACEOF
  3356. int main ()
  3357. {
  3358. return(0);
  3359. }
  3360. _ACEOF
  3361. rm -f conftest.$ac_objext
  3362. if { (ac_try="$ac_compile"
  3363. case "(($ac_try" in
  3364. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3365. *) ac_try_echo=$ac_try;;
  3366. esac
  3367. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3368. $as_echo "$ac_try_echo") >&5
  3369. (eval "$ac_compile") 2>conftest.er1
  3370. ac_status=$?
  3371. grep -v '^ *+' conftest.er1 >conftest.err
  3372. rm -f conftest.er1
  3373. cat conftest.err >&5
  3374. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3375. (exit $ac_status); } && {
  3376. test -z "$ac_cxx_werror_flag" ||
  3377. test ! -s conftest.err
  3378. } && test -s conftest.$ac_objext; then
  3379. egg_cv_var_ccpipe="yes"
  3380. else
  3381. $as_echo "$as_me: failed program was:" >&5
  3382. sed 's/^/| /' conftest.$ac_ext >&5
  3383. egg_cv_var_ccpipe="no"
  3384. fi
  3385. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3386. CXX="$ac_old_CXX"
  3387. fi
  3388. { $as_echo "$as_me:$LINENO: result: $egg_cv_var_ccpipe" >&5
  3389. $as_echo "$egg_cv_var_ccpipe" >&6; }
  3390. if test "$egg_cv_var_ccpipe" = "yes"; then
  3391. CXX="$CXX -pipe"
  3392. fi
  3393. fi
  3394. CCDEPMODE=gcc
  3395. num=`$CXX -dumpversion | sed "s/^\\\(.\\\).*/\\\1/"`
  3396. if test $num -ge "3"; then
  3397. CCDEPMODE=gcc3
  3398. # GCC3="-Wpadded -Wpacked -Wno-unused-parameter -Wmissing-format-attribute -Wdisabled-optimization"
  3399. GCC3="-W -Wno-unused-parameter -Wdisabled-optimization -Wno-write-strings -Wno-format-security -fno-strict-aliasing -Woverloaded-virtual -Wno-format-y2k"
  3400. GCC3DEB="-Wno-disabled-optimization -Wmissing-format-attribute"
  3401. fi
  3402. if test $num -ge "4"; then
  3403. GCC4DEB="-fstack-protector-all"
  3404. fi
  3405. #checkpoint
  3406. cat >confcache <<\_ACEOF
  3407. # This file is a shell script that caches the results of configure
  3408. # tests run on this system so they can be shared between configure
  3409. # scripts and configure runs, see configure's option --config-cache.
  3410. # It is not useful on other systems. If it contains results you don't
  3411. # want to keep, you may remove or edit it.
  3412. #
  3413. # config.status only pays attention to the cache file if you give it
  3414. # the --recheck option to rerun configure.
  3415. #
  3416. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  3417. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  3418. # following values.
  3419. _ACEOF
  3420. # The following way of writing the cache mishandles newlines in values,
  3421. # but we know of no workaround that is simple, portable, and efficient.
  3422. # So, we kill variables containing newlines.
  3423. # Ultrix sh set writes to stderr and can't be redirected directly,
  3424. # and sets the high bit in the cache file unless we assign to the vars.
  3425. (
  3426. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  3427. eval ac_val=\$$ac_var
  3428. case $ac_val in #(
  3429. *${as_nl}*)
  3430. case $ac_var in #(
  3431. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  3432. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  3433. esac
  3434. case $ac_var in #(
  3435. _ | IFS | as_nl) ;; #(
  3436. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  3437. *) $as_unset $ac_var ;;
  3438. esac ;;
  3439. esac
  3440. done
  3441. (set) 2>&1 |
  3442. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  3443. *${as_nl}ac_space=\ *)
  3444. # `set' does not quote correctly, so add quotes (double-quote
  3445. # substitution turns \\\\ into \\, and sed turns \\ into \).
  3446. sed -n \
  3447. "s/'/'\\\\''/g;
  3448. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  3449. ;; #(
  3450. *)
  3451. # `set' quotes correctly as required by POSIX, so do not add quotes.
  3452. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  3453. ;;
  3454. esac |
  3455. sort
  3456. ) |
  3457. sed '
  3458. /^ac_cv_env_/b end
  3459. t clear
  3460. :clear
  3461. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  3462. t end
  3463. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  3464. :end' >>confcache
  3465. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  3466. if test -w "$cache_file"; then
  3467. test "x$cache_file" != "x/dev/null" &&
  3468. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  3469. $as_echo "$as_me: updating cache $cache_file" >&6;}
  3470. cat confcache >$cache_file
  3471. else
  3472. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  3473. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  3474. fi
  3475. fi
  3476. rm -f confcache
  3477. # Checks for programs
  3478. { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3479. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3480. set x ${MAKE-make}
  3481. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3482. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  3483. $as_echo_n "(cached) " >&6
  3484. else
  3485. cat >conftest.make <<\_ACEOF
  3486. SHELL = /bin/sh
  3487. all:
  3488. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3489. _ACEOF
  3490. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  3491. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3492. *@@@%%%=?*=@@@%%%*)
  3493. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3494. *)
  3495. eval ac_cv_prog_make_${ac_make}_set=no;;
  3496. esac
  3497. rm -f conftest.make
  3498. fi
  3499. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3500. { $as_echo "$as_me:$LINENO: result: yes" >&5
  3501. $as_echo "yes" >&6; }
  3502. SET_MAKE=
  3503. else
  3504. { $as_echo "$as_me:$LINENO: result: no" >&5
  3505. $as_echo "no" >&6; }
  3506. SET_MAKE="MAKE=${MAKE-make}"
  3507. fi
  3508. cat << 'EOF' > conftest.head
  3509. a
  3510. b
  3511. c
  3512. EOF
  3513. for ac_prog in 'head -1' 'head -n 1' 'sed 1q';
  3514. do
  3515. { $as_echo "$as_me:$LINENO: checking whether $ac_prog works" >&5
  3516. $as_echo_n "checking whether $ac_prog works... " >&6; }
  3517. if test "${ac_cv_prog_HEAD_1+set}" = set; then
  3518. $as_echo_n "(cached) " >&6
  3519. else
  3520. if test -n "$HEAD_1"
  3521. then
  3522. ac_cv_prog_HEAD_1="$HEAD_1" # Let the user override the test.
  3523. else
  3524. if test "`cat conftest.head | $ac_prog`" = "a";
  3525. then
  3526. { $as_echo "$as_me:$LINENO: result: yes" >&5
  3527. $as_echo "yes" >&6; }
  3528. ac_cv_prog_HEAD_1=$ac_prog
  3529. else
  3530. { $as_echo "$as_me:$LINENO: result: no" >&5
  3531. $as_echo "no" >&6; }
  3532. fi
  3533. fi
  3534. fi
  3535. test -n "$ac_cv_prog_HEAD_1" && break
  3536. done
  3537. if test "${ac_cv_prog_HEAD_1-x}" = "x"
  3538. then
  3539. cat << 'EOF' >&2
  3540. configure: error:
  3541. This system seems to lack a working 'head -1' or 'head -n 1' command.
  3542. A working 'head -1' (or equivalent) command is required to compile Eggdrop.
  3543. EOF
  3544. exit 1
  3545. fi
  3546. rm -f conftest.head
  3547. HEAD_1=$ac_cv_prog_HEAD_1
  3548. # awk is needed for Tcl library and header checks, and eggdrop version subst
  3549. for ac_prog in gawk mawk nawk awk
  3550. do
  3551. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3552. set dummy $ac_prog; ac_word=$2
  3553. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3554. $as_echo_n "checking for $ac_word... " >&6; }
  3555. if test "${ac_cv_prog_AWK+set}" = set; then
  3556. $as_echo_n "(cached) " >&6
  3557. else
  3558. if test -n "$AWK"; then
  3559. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3560. else
  3561. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3562. for as_dir in $PATH
  3563. do
  3564. IFS=$as_save_IFS
  3565. test -z "$as_dir" && as_dir=.
  3566. for ac_exec_ext in '' $ac_executable_extensions; do
  3567. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3568. ac_cv_prog_AWK="$ac_prog"
  3569. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3570. break 2
  3571. fi
  3572. done
  3573. done
  3574. IFS=$as_save_IFS
  3575. fi
  3576. fi
  3577. AWK=$ac_cv_prog_AWK
  3578. if test -n "$AWK"; then
  3579. { $as_echo "$as_me:$LINENO: result: $AWK" >&5
  3580. $as_echo "$AWK" >&6; }
  3581. else
  3582. { $as_echo "$as_me:$LINENO: result: no" >&5
  3583. $as_echo "no" >&6; }
  3584. fi
  3585. test -n "$AWK" && break
  3586. done
  3587. if test "${AWK-x}" = "x"
  3588. then
  3589. cat << 'EOF' >&2
  3590. configure: error:
  3591. This system seems to lack a working 'awk' command.
  3592. A working 'awk' command is required to compile Eggdrop.
  3593. EOF
  3594. exit 1
  3595. fi
  3596. # basename is needed for Tcl library and header checks
  3597. # Extract the first word of "basename", so it can be a program name with args.
  3598. set dummy basename; ac_word=$2
  3599. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3600. $as_echo_n "checking for $ac_word... " >&6; }
  3601. if test "${ac_cv_prog_BASENAME+set}" = set; then
  3602. $as_echo_n "(cached) " >&6
  3603. else
  3604. if test -n "$BASENAME"; then
  3605. ac_cv_prog_BASENAME="$BASENAME" # Let the user override the test.
  3606. else
  3607. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3608. for as_dir in $PATH
  3609. do
  3610. IFS=$as_save_IFS
  3611. test -z "$as_dir" && as_dir=.
  3612. for ac_exec_ext in '' $ac_executable_extensions; do
  3613. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3614. ac_cv_prog_BASENAME="basename"
  3615. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3616. break 2
  3617. fi
  3618. done
  3619. done
  3620. IFS=$as_save_IFS
  3621. fi
  3622. fi
  3623. BASENAME=$ac_cv_prog_BASENAME
  3624. if test -n "$BASENAME"; then
  3625. { $as_echo "$as_me:$LINENO: result: $BASENAME" >&5
  3626. $as_echo "$BASENAME" >&6; }
  3627. else
  3628. { $as_echo "$as_me:$LINENO: result: no" >&5
  3629. $as_echo "no" >&6; }
  3630. fi
  3631. if test "${BASENAME-x}" = "x"
  3632. then
  3633. cat << 'EOF' >&2
  3634. configure: error:
  3635. This system seems to lack a working 'basename' command.
  3636. A working 'basename' command is required to compile Eggdrop.
  3637. EOF
  3638. exit 1
  3639. fi
  3640. # Extract the first word of "objcopy", so it can be a program name with args.
  3641. set dummy objcopy; ac_word=$2
  3642. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3643. $as_echo_n "checking for $ac_word... " >&6; }
  3644. if test "${ac_cv_prog_OBJCOPY+set}" = set; then
  3645. $as_echo_n "(cached) " >&6
  3646. else
  3647. if test -n "$OBJCOPY"; then
  3648. ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
  3649. else
  3650. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3651. for as_dir in $PATH
  3652. do
  3653. IFS=$as_save_IFS
  3654. test -z "$as_dir" && as_dir=.
  3655. for ac_exec_ext in '' $ac_executable_extensions; do
  3656. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3657. ac_cv_prog_OBJCOPY="objcopy --remove-section=.note --remove-section=.comment"
  3658. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3659. break 2
  3660. fi
  3661. done
  3662. done
  3663. IFS=$as_save_IFS
  3664. test -z "$ac_cv_prog_OBJCOPY" && ac_cv_prog_OBJCOPY="touch"
  3665. fi
  3666. fi
  3667. OBJCOPY=$ac_cv_prog_OBJCOPY
  3668. if test -n "$OBJCOPY"; then
  3669. { $as_echo "$as_me:$LINENO: result: $OBJCOPY" >&5
  3670. $as_echo "$OBJCOPY" >&6; }
  3671. else
  3672. { $as_echo "$as_me:$LINENO: result: no" >&5
  3673. $as_echo "no" >&6; }
  3674. fi
  3675. # Extract the first word of "strip", so it can be a program name with args.
  3676. set dummy strip; ac_word=$2
  3677. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3678. $as_echo_n "checking for $ac_word... " >&6; }
  3679. if test "${ac_cv_prog_STRIP+set}" = set; then
  3680. $as_echo_n "(cached) " >&6
  3681. else
  3682. if test -n "$STRIP"; then
  3683. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3684. else
  3685. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3686. for as_dir in $PATH
  3687. do
  3688. IFS=$as_save_IFS
  3689. test -z "$as_dir" && as_dir=.
  3690. for ac_exec_ext in '' $ac_executable_extensions; do
  3691. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3692. ac_cv_prog_STRIP="strip"
  3693. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3694. break 2
  3695. fi
  3696. done
  3697. done
  3698. IFS=$as_save_IFS
  3699. test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="touch"
  3700. fi
  3701. fi
  3702. STRIP=$ac_cv_prog_STRIP
  3703. if test -n "$STRIP"; then
  3704. { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
  3705. $as_echo "$STRIP" >&6; }
  3706. else
  3707. { $as_echo "$as_me:$LINENO: result: no" >&5
  3708. $as_echo "no" >&6; }
  3709. fi
  3710. # Extract the first word of "gdiff", so it can be a program name with args.
  3711. set dummy gdiff; ac_word=$2
  3712. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3713. $as_echo_n "checking for $ac_word... " >&6; }
  3714. if test "${ac_cv_prog_DIFF+set}" = set; then
  3715. $as_echo_n "(cached) " >&6
  3716. else
  3717. if test -n "$DIFF"; then
  3718. ac_cv_prog_DIFF="$DIFF" # Let the user override the test.
  3719. else
  3720. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3721. for as_dir in $PATH
  3722. do
  3723. IFS=$as_save_IFS
  3724. test -z "$as_dir" && as_dir=.
  3725. for ac_exec_ext in '' $ac_executable_extensions; do
  3726. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3727. ac_cv_prog_DIFF="gdiff"
  3728. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3729. break 2
  3730. fi
  3731. done
  3732. done
  3733. IFS=$as_save_IFS
  3734. test -z "$ac_cv_prog_DIFF" && ac_cv_prog_DIFF="diff"
  3735. fi
  3736. fi
  3737. DIFF=$ac_cv_prog_DIFF
  3738. if test -n "$DIFF"; then
  3739. { $as_echo "$as_me:$LINENO: result: $DIFF" >&5
  3740. $as_echo "$DIFF" >&6; }
  3741. else
  3742. { $as_echo "$as_me:$LINENO: result: no" >&5
  3743. $as_echo "no" >&6; }
  3744. fi
  3745. # Extract the first word of "uname", so it can be a program name with args.
  3746. set dummy uname; ac_word=$2
  3747. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3748. $as_echo_n "checking for $ac_word... " >&6; }
  3749. if test "${ac_cv_prog_UNAME+set}" = set; then
  3750. $as_echo_n "(cached) " >&6
  3751. else
  3752. if test -n "$UNAME"; then
  3753. ac_cv_prog_UNAME="$UNAME" # Let the user override the test.
  3754. else
  3755. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3756. for as_dir in $PATH
  3757. do
  3758. IFS=$as_save_IFS
  3759. test -z "$as_dir" && as_dir=.
  3760. for ac_exec_ext in '' $ac_executable_extensions; do
  3761. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3762. ac_cv_prog_UNAME="uname"
  3763. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3764. break 2
  3765. fi
  3766. done
  3767. done
  3768. IFS=$as_save_IFS
  3769. fi
  3770. fi
  3771. UNAME=$ac_cv_prog_UNAME
  3772. if test -n "$UNAME"; then
  3773. { $as_echo "$as_me:$LINENO: result: $UNAME" >&5
  3774. $as_echo "$UNAME" >&6; }
  3775. else
  3776. { $as_echo "$as_me:$LINENO: result: no" >&5
  3777. $as_echo "no" >&6; }
  3778. fi
  3779. # Extract the first word of "ccache", so it can be a program name with args.
  3780. set dummy ccache; ac_word=$2
  3781. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3782. $as_echo_n "checking for $ac_word... " >&6; }
  3783. if test "${ac_cv_prog_CCACHE+set}" = set; then
  3784. $as_echo_n "(cached) " >&6
  3785. else
  3786. if test -n "$CCACHE"; then
  3787. ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
  3788. else
  3789. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3790. for as_dir in $PATH
  3791. do
  3792. IFS=$as_save_IFS
  3793. test -z "$as_dir" && as_dir=.
  3794. for ac_exec_ext in '' $ac_executable_extensions; do
  3795. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3796. ac_cv_prog_CCACHE="ccache"
  3797. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3798. break 2
  3799. fi
  3800. done
  3801. done
  3802. IFS=$as_save_IFS
  3803. fi
  3804. fi
  3805. CCACHE=$ac_cv_prog_CCACHE
  3806. if test -n "$CCACHE"; then
  3807. { $as_echo "$as_me:$LINENO: result: $CCACHE" >&5
  3808. $as_echo "$CCACHE" >&6; }
  3809. else
  3810. { $as_echo "$as_me:$LINENO: result: no" >&5
  3811. $as_echo "no" >&6; }
  3812. fi
  3813. # Extract the first word of "distcc", so it can be a program name with args.
  3814. set dummy distcc; ac_word=$2
  3815. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3816. $as_echo_n "checking for $ac_word... " >&6; }
  3817. if test "${ac_cv_prog_DISTCC+set}" = set; then
  3818. $as_echo_n "(cached) " >&6
  3819. else
  3820. if test -n "$DISTCC"; then
  3821. ac_cv_prog_DISTCC="$DISTCC" # Let the user override the test.
  3822. else
  3823. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3824. for as_dir in $PATH
  3825. do
  3826. IFS=$as_save_IFS
  3827. test -z "$as_dir" && as_dir=.
  3828. for ac_exec_ext in '' $ac_executable_extensions; do
  3829. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3830. ac_cv_prog_DISTCC="distcc"
  3831. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3832. break 2
  3833. fi
  3834. done
  3835. done
  3836. IFS=$as_save_IFS
  3837. fi
  3838. fi
  3839. DISTCC=$ac_cv_prog_DISTCC
  3840. if test -n "$DISTCC"; then
  3841. { $as_echo "$as_me:$LINENO: result: $DISTCC" >&5
  3842. $as_echo "$DISTCC" >&6; }
  3843. else
  3844. { $as_echo "$as_me:$LINENO: result: no" >&5
  3845. $as_echo "no" >&6; }
  3846. fi
  3847. # Test the os and set the module linking settings
  3848. EGG_CYGWIN=no
  3849. USE_STATIC=yes
  3850. { $as_echo "$as_me:$LINENO: checking system type" >&5
  3851. $as_echo_n "checking system type... " >&6; }
  3852. if test "${egg_cv_var_system_type+set}" = set; then
  3853. $as_echo_n "(cached) " >&6
  3854. else
  3855. egg_cv_var_system_type=`$UNAME -s`
  3856. fi
  3857. { $as_echo "$as_me:$LINENO: result: $egg_cv_var_system_type" >&5
  3858. $as_echo "$egg_cv_var_system_type" >&6; }
  3859. { $as_echo "$as_me:$LINENO: checking system release" >&5
  3860. $as_echo_n "checking system release... " >&6; }
  3861. if test "${egg_cv_var_system_release+set}" = set; then
  3862. $as_echo_n "(cached) " >&6
  3863. else
  3864. egg_cv_var_system_release=`$UNAME -r`
  3865. fi
  3866. { $as_echo "$as_me:$LINENO: result: $egg_cv_var_system_release" >&5
  3867. $as_echo "$egg_cv_var_system_release" >&6; }
  3868. { $as_echo "$as_me:$LINENO: checking system machine" >&5
  3869. $as_echo_n "checking system machine... " >&6; }
  3870. if test "${egg_cv_var_system_machine+set}" = set; then
  3871. $as_echo_n "(cached) " >&6
  3872. else
  3873. egg_cv_var_system_machine=`$UNAME -m`
  3874. fi
  3875. { $as_echo "$as_me:$LINENO: result: $egg_cv_var_system_machine" >&5
  3876. $as_echo "$egg_cv_var_system_machine" >&6; }
  3877. BUILDOS="$egg_cv_var_system_type"
  3878. BUILDARCH="$egg_cv_var_system_machine"
  3879. USE_GENERIC_I486="yes"
  3880. case "$egg_cv_var_system_type" in
  3881. BSD/OS)
  3882. ;;
  3883. CYGWI*)
  3884. { $as_echo "$as_me:$LINENO: checking how to access the Win32 API" >&5
  3885. $as_echo_n "checking how to access the Win32 API... " >&6; }
  3886. WIN32FLAGS=
  3887. cat >conftest.$ac_ext <<_ACEOF
  3888. /* confdefs.h. */
  3889. _ACEOF
  3890. cat confdefs.h >>conftest.$ac_ext
  3891. cat >>conftest.$ac_ext <<_ACEOF
  3892. /* end confdefs.h. */
  3893. int
  3894. main ()
  3895. {
  3896. #ifndef WIN32
  3897. # ifndef _WIN32
  3898. # error WIN32 or _WIN32 not defined
  3899. # endif
  3900. #endif
  3901. ;
  3902. return 0;
  3903. }
  3904. _ACEOF
  3905. rm -f conftest.$ac_objext
  3906. if { (ac_try="$ac_compile"
  3907. case "(($ac_try" in
  3908. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3909. *) ac_try_echo=$ac_try;;
  3910. esac
  3911. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3912. $as_echo "$ac_try_echo") >&5
  3913. (eval "$ac_compile") 2>conftest.er1
  3914. ac_status=$?
  3915. grep -v '^ *+' conftest.er1 >conftest.err
  3916. rm -f conftest.er1
  3917. cat conftest.err >&5
  3918. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3919. (exit $ac_status); } && {
  3920. test -z "$ac_cxx_werror_flag" ||
  3921. test ! -s conftest.err
  3922. } && test -s conftest.$ac_objext; then
  3923. { $as_echo "$as_me:$LINENO: result: present by default" >&5
  3924. $as_echo "present by default" >&6; }
  3925. else
  3926. $as_echo "$as_me: failed program was:" >&5
  3927. sed 's/^/| /' conftest.$ac_ext >&5
  3928. ac_compile_save="$ac_compile"
  3929. save_CXX="$CXX"
  3930. ac_compile="$ac_compile -mwin32"
  3931. CXX="$CXX -mwin32"
  3932. cat >conftest.$ac_ext <<_ACEOF
  3933. /* confdefs.h. */
  3934. _ACEOF
  3935. cat confdefs.h >>conftest.$ac_ext
  3936. cat >>conftest.$ac_ext <<_ACEOF
  3937. /* end confdefs.h. */
  3938. int
  3939. main ()
  3940. {
  3941. #ifndef WIN32
  3942. # ifndef _WIN32
  3943. # error WIN32 or _WIN32 not defined
  3944. # endif
  3945. #endif
  3946. ;
  3947. return 0;
  3948. }
  3949. _ACEOF
  3950. rm -f conftest.$ac_objext
  3951. if { (ac_try="$ac_compile"
  3952. case "(($ac_try" in
  3953. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3954. *) ac_try_echo=$ac_try;;
  3955. esac
  3956. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3957. $as_echo "$ac_try_echo") >&5
  3958. (eval "$ac_compile") 2>conftest.er1
  3959. ac_status=$?
  3960. grep -v '^ *+' conftest.er1 >conftest.err
  3961. rm -f conftest.er1
  3962. cat conftest.err >&5
  3963. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3964. (exit $ac_status); } && {
  3965. test -z "$ac_cxx_werror_flag" ||
  3966. test ! -s conftest.err
  3967. } && test -s conftest.$ac_objext; then
  3968. { $as_echo "$as_me:$LINENO: result: found via -mwin32" >&5
  3969. $as_echo "found via -mwin32" >&6; }
  3970. ac_compile="$ac_compile_save"
  3971. CXX="$save_CXX"
  3972. WIN32FLAGS="-mwin32"
  3973. else
  3974. $as_echo "$as_me: failed program was:" >&5
  3975. sed 's/^/| /' conftest.$ac_ext >&5
  3976. ac_compile="$ac_compile_save"
  3977. CXX="$save_CXX"
  3978. { $as_echo "$as_me:$LINENO: result: not found" >&5
  3979. $as_echo "not found" >&6; }
  3980. fi
  3981. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3982. fi
  3983. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3984. CXX="$CXX $WIN32FLAGS"
  3985. EGG_CYGWIN="yes"
  3986. if test $EGG_CYGWIN = "yes"; then
  3987. { $as_echo "$as_me:$LINENO: checking for /usr/lib/binmode.o" >&5
  3988. $as_echo_n "checking for /usr/lib/binmode.o... " >&6; }
  3989. if test -r /usr/lib/binmode.o; then
  3990. { $as_echo "$as_me:$LINENO: result: yes" >&5
  3991. $as_echo "yes" >&6; }
  3992. LIBS="$LIBS /usr/lib/binmode.o"
  3993. else
  3994. { $as_echo "$as_me:$LINENO: result: no" >&5
  3995. $as_echo "no" >&6; }
  3996. { $as_echo "$as_me:$LINENO: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&5
  3997. $as_echo "$as_me: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&2;}
  3998. fi
  3999. fi
  4000. cat >>confdefs.h <<\_ACEOF
  4001. #define CYGWIN_HACKS 1
  4002. _ACEOF
  4003. cat >>confdefs.h <<\_ACEOF
  4004. #define WIN32_LEAN_AND_MEAN 1
  4005. _ACEOF
  4006. ;;
  4007. IRIX)
  4008. ;;
  4009. HP-UX)
  4010. cat >>confdefs.h <<\_ACEOF
  4011. #define MD32_XARRAY 1
  4012. _ACEOF
  4013. ;;
  4014. Ultrix)
  4015. SHELL=/bin/sh5
  4016. ;;
  4017. SINIX*)
  4018. ;;
  4019. BeOS)
  4020. ;;
  4021. Linux)
  4022. ;;
  4023. Lynx)
  4024. ;;
  4025. QNX)
  4026. ;;
  4027. OSF1)
  4028. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  4029. V*)
  4030. if test "$AWK" = "gawk"
  4031. then
  4032. AWK=awk
  4033. fi
  4034. ;;
  4035. 1.0|1.1|1.2)
  4036. cat >>confdefs.h <<\_ACEOF
  4037. #define OSF1_HACKS 1
  4038. _ACEOF
  4039. ;;
  4040. 1.*)
  4041. cat >>confdefs.h <<\_ACEOF
  4042. #define OSF1_HACKS 1
  4043. _ACEOF
  4044. ;;
  4045. *)
  4046. ;;
  4047. esac
  4048. cat >>confdefs.h <<\_ACEOF
  4049. #define STOP_UAC 1
  4050. _ACEOF
  4051. cat >>confdefs.h <<\_ACEOF
  4052. #define BROKEN_SNPRINTF 1
  4053. _ACEOF
  4054. ;;
  4055. SunOS)
  4056. SUNOS="yes"
  4057. USE_STATIC="no"
  4058. ;;
  4059. Darwin)
  4060. USE_STATIC="no"
  4061. USE_GENERIC_I486="no"
  4062. ;;
  4063. *BSD)
  4064. # FreeBSD/OpenBSD/NetBSD
  4065. ;;
  4066. *)
  4067. { $as_echo "$as_me:$LINENO: checking if system is Mach based" >&5
  4068. $as_echo_n "checking if system is Mach based... " >&6; }
  4069. if test -r /mach
  4070. then
  4071. { $as_echo "$as_me:$LINENO: result: yes" >&5
  4072. $as_echo "yes" >&6; }
  4073. cat >>confdefs.h <<\_ACEOF
  4074. #define BORGCUBES 1
  4075. _ACEOF
  4076. else
  4077. { $as_echo "$as_me:$LINENO: result: no" >&5
  4078. $as_echo "no" >&6; }
  4079. { $as_echo "$as_me:$LINENO: checking if system is QNX" >&5
  4080. $as_echo_n "checking if system is QNX... " >&6; }
  4081. if test -r /cmds
  4082. then
  4083. { $as_echo "$as_me:$LINENO: result: yes" >&5
  4084. $as_echo "yes" >&6; }
  4085. else
  4086. { $as_echo "$as_me:$LINENO: result: no" >&5
  4087. $as_echo "no" >&6; }
  4088. { $as_echo "$as_me:$LINENO: result: Something unknown!" >&5
  4089. $as_echo "Something unknown!" >&6; }
  4090. fi
  4091. fi
  4092. ;;
  4093. esac
  4094. case "$egg_cv_var_system_machine" in
  4095. i*)
  4096. if test "$USE_GENERIC_I486" = "yes"; then
  4097. CXX="$CXX -march=i486"
  4098. BUILDARCH="i486"
  4099. fi
  4100. ;;
  4101. *)
  4102. ;;
  4103. esac
  4104. # Check for IPv6 support
  4105. #EGG_IPV6_SUPPORTED
  4106. { $as_echo "$as_me:$LINENO: checking whether or not you disabled IPv6 support" >&5
  4107. $as_echo_n "checking whether or not you disabled IPv6 support... " >&6; }
  4108. # Check whether --enable-ipv6 was given.
  4109. if test "${enable_ipv6+set}" = set; then
  4110. enableval=$enable_ipv6; ac_cv_dipv6="yes"
  4111. { $as_echo "$as_me:$LINENO: result: yes" >&5
  4112. $as_echo "yes" >&6; }
  4113. else
  4114. ac_cv_dipv6="no"
  4115. if test "$egg_cv_ipv6_supported" = "no"; then
  4116. ac_cv_dipv6="no"
  4117. fi
  4118. { $as_echo "$as_me:$LINENO: result: $ac_cv_dipv6" >&5
  4119. $as_echo "$ac_cv_dipv6" >&6; }
  4120. fi
  4121. if ! test "$EGG_CYGWIN" = "yes"; then
  4122. if test "$ac_cv_dipv6" = "no"; then
  4123. cat >>confdefs.h <<\_ACEOF
  4124. #define USE_IPV6 1
  4125. _ACEOF
  4126. fi
  4127. fi
  4128. { $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
  4129. $as_echo_n "checking for socklen_t... " >&6; }
  4130. if test "${egg_cv_socklen_t+set}" = set; then
  4131. $as_echo_n "(cached) " >&6
  4132. else
  4133. if test "$cross_compiling" = yes; then
  4134. egg_cv_socklen_t=no
  4135. else
  4136. cat >conftest.$ac_ext <<_ACEOF
  4137. /* confdefs.h. */
  4138. _ACEOF
  4139. cat confdefs.h >>conftest.$ac_ext
  4140. cat >>conftest.$ac_ext <<_ACEOF
  4141. /* end confdefs.h. */
  4142. #include <unistd.h>
  4143. #include <sys/types.h>
  4144. #include <sys/socket.h>
  4145. #include <netinet/in.h>
  4146. #include <arpa/inet.h>
  4147. int main()
  4148. {
  4149. socklen_t test = sizeof(int);
  4150. return 0;
  4151. }
  4152. _ACEOF
  4153. rm -f conftest$ac_exeext
  4154. if { (ac_try="$ac_link"
  4155. case "(($ac_try" in
  4156. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4157. *) ac_try_echo=$ac_try;;
  4158. esac
  4159. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4160. $as_echo "$ac_try_echo") >&5
  4161. (eval "$ac_link") 2>&5
  4162. ac_status=$?
  4163. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4164. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4165. { (case "(($ac_try" in
  4166. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4167. *) ac_try_echo=$ac_try;;
  4168. esac
  4169. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4170. $as_echo "$ac_try_echo") >&5
  4171. (eval "$ac_try") 2>&5
  4172. ac_status=$?
  4173. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4174. (exit $ac_status); }; }; then
  4175. egg_cv_socklen_t=yes
  4176. else
  4177. $as_echo "$as_me: program exited with status $ac_status" >&5
  4178. $as_echo "$as_me: failed program was:" >&5
  4179. sed 's/^/| /' conftest.$ac_ext >&5
  4180. ( exit $ac_status )
  4181. egg_cv_socklen_t=no
  4182. fi
  4183. rm -rf conftest.dSYM
  4184. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4185. fi
  4186. fi
  4187. if test "$egg_cv_socklen_t" = "yes"; then
  4188. cat >>confdefs.h <<\_ACEOF
  4189. #define HAVE_SOCKLEN_T 1
  4190. _ACEOF
  4191. { $as_echo "$as_me:$LINENO: result: yes" >&5
  4192. $as_echo "yes" >&6; }
  4193. else
  4194. { $as_echo "$as_me:$LINENO: result: no" >&5
  4195. $as_echo "no" >&6; }
  4196. fi
  4197. # Check for inconsistent random() functions
  4198. { $as_echo "$as_me:$LINENO: checking for random limit" >&5
  4199. $as_echo_n "checking for random limit... " >&6; }
  4200. case "$egg_cv_var_system_type" in
  4201. SunOS) RMAX=0x7FFFFFFF
  4202. ;;
  4203. *) RMAX=RAND_MAX
  4204. ;;
  4205. esac
  4206. { $as_echo "$as_me:$LINENO: result: $RMAX" >&5
  4207. $as_echo "$RMAX" >&6; }
  4208. cat >>confdefs.h <<_ACEOF
  4209. #define RANDOM_MAX $RMAX
  4210. _ACEOF
  4211. # Create static binaries
  4212. if test "$USE_STATIC" = "yes"
  4213. then
  4214. if test -n "$GXX"
  4215. then
  4216. { $as_echo "$as_me:$LINENO: checking whether the compiler understands -static" >&5
  4217. $as_echo_n "checking whether the compiler understands -static... " >&6; }
  4218. if test "${egg_cv_var_ccstatic+set}" = set; then
  4219. $as_echo_n "(cached) " >&6
  4220. else
  4221. cat >conftest.$ac_ext <<_ACEOF
  4222. /* confdefs.h. */
  4223. _ACEOF
  4224. cat confdefs.h >>conftest.$ac_ext
  4225. cat >>conftest.$ac_ext <<_ACEOF
  4226. /* end confdefs.h. */
  4227. int
  4228. main ()
  4229. {
  4230. ;
  4231. return 0;
  4232. }
  4233. _ACEOF
  4234. rm -f conftest.$ac_objext
  4235. if { (ac_try="$ac_compile"
  4236. case "(($ac_try" in
  4237. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4238. *) ac_try_echo=$ac_try;;
  4239. esac
  4240. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4241. $as_echo "$ac_try_echo") >&5
  4242. (eval "$ac_compile") 2>conftest.er1
  4243. ac_status=$?
  4244. grep -v '^ *+' conftest.er1 >conftest.err
  4245. rm -f conftest.er1
  4246. cat conftest.err >&5
  4247. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4248. (exit $ac_status); } && {
  4249. test -z "$ac_cxx_werror_flag" ||
  4250. test ! -s conftest.err
  4251. } && test -s conftest.$ac_objext; then
  4252. egg_cv_var_ccstatic="yes"
  4253. else
  4254. $as_echo "$as_me: failed program was:" >&5
  4255. sed 's/^/| /' conftest.$ac_ext >&5
  4256. egg_cv_var_ccstatic="no"
  4257. fi
  4258. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4259. fi
  4260. { $as_echo "$as_me:$LINENO: result: $egg_cv_var_ccstatic" >&5
  4261. $as_echo "$egg_cv_var_ccstatic" >&6; }
  4262. if ! test "$egg_cv_var_ccstatic" = "yes"
  4263. then
  4264. cat << 'EOF' >&2
  4265. configure: error:
  4266. Your OS or C++ compiler does not support -static.
  4267. This compile flag is required for the botpack on this OS.
  4268. EOF
  4269. exit 1
  4270. fi
  4271. fi
  4272. STATIC="-static"
  4273. else
  4274. STATIC=""
  4275. fi
  4276. #checkpoint
  4277. cat >confcache <<\_ACEOF
  4278. # This file is a shell script that caches the results of configure
  4279. # tests run on this system so they can be shared between configure
  4280. # scripts and configure runs, see configure's option --config-cache.
  4281. # It is not useful on other systems. If it contains results you don't
  4282. # want to keep, you may remove or edit it.
  4283. #
  4284. # config.status only pays attention to the cache file if you give it
  4285. # the --recheck option to rerun configure.
  4286. #
  4287. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4288. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4289. # following values.
  4290. _ACEOF
  4291. # The following way of writing the cache mishandles newlines in values,
  4292. # but we know of no workaround that is simple, portable, and efficient.
  4293. # So, we kill variables containing newlines.
  4294. # Ultrix sh set writes to stderr and can't be redirected directly,
  4295. # and sets the high bit in the cache file unless we assign to the vars.
  4296. (
  4297. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  4298. eval ac_val=\$$ac_var
  4299. case $ac_val in #(
  4300. *${as_nl}*)
  4301. case $ac_var in #(
  4302. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  4303. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  4304. esac
  4305. case $ac_var in #(
  4306. _ | IFS | as_nl) ;; #(
  4307. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  4308. *) $as_unset $ac_var ;;
  4309. esac ;;
  4310. esac
  4311. done
  4312. (set) 2>&1 |
  4313. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  4314. *${as_nl}ac_space=\ *)
  4315. # `set' does not quote correctly, so add quotes (double-quote
  4316. # substitution turns \\\\ into \\, and sed turns \\ into \).
  4317. sed -n \
  4318. "s/'/'\\\\''/g;
  4319. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4320. ;; #(
  4321. *)
  4322. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4323. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  4324. ;;
  4325. esac |
  4326. sort
  4327. ) |
  4328. sed '
  4329. /^ac_cv_env_/b end
  4330. t clear
  4331. :clear
  4332. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4333. t end
  4334. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4335. :end' >>confcache
  4336. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  4337. if test -w "$cache_file"; then
  4338. test "x$cache_file" != "x/dev/null" &&
  4339. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  4340. $as_echo "$as_me: updating cache $cache_file" >&6;}
  4341. cat confcache >$cache_file
  4342. else
  4343. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  4344. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  4345. fi
  4346. fi
  4347. rm -f confcache
  4348. # Checks for system libraries
  4349. { $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
  4350. $as_echo_n "checking for socket in -lsocket... " >&6; }
  4351. if test "${ac_cv_lib_socket_socket+set}" = set; then
  4352. $as_echo_n "(cached) " >&6
  4353. else
  4354. ac_check_lib_save_LIBS=$LIBS
  4355. LIBS="-lsocket $LIBS"
  4356. cat >conftest.$ac_ext <<_ACEOF
  4357. /* confdefs.h. */
  4358. _ACEOF
  4359. cat confdefs.h >>conftest.$ac_ext
  4360. cat >>conftest.$ac_ext <<_ACEOF
  4361. /* end confdefs.h. */
  4362. /* Override any GCC internal prototype to avoid an error.
  4363. Use char because int might match the return type of a GCC
  4364. builtin and then its argument prototype would still apply. */
  4365. #ifdef __cplusplus
  4366. extern "C"
  4367. #endif
  4368. char socket ();
  4369. int
  4370. main ()
  4371. {
  4372. return socket ();
  4373. ;
  4374. return 0;
  4375. }
  4376. _ACEOF
  4377. rm -f conftest.$ac_objext conftest$ac_exeext
  4378. if { (ac_try="$ac_link"
  4379. case "(($ac_try" in
  4380. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4381. *) ac_try_echo=$ac_try;;
  4382. esac
  4383. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4384. $as_echo "$ac_try_echo") >&5
  4385. (eval "$ac_link") 2>conftest.er1
  4386. ac_status=$?
  4387. grep -v '^ *+' conftest.er1 >conftest.err
  4388. rm -f conftest.er1
  4389. cat conftest.err >&5
  4390. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4391. (exit $ac_status); } && {
  4392. test -z "$ac_cxx_werror_flag" ||
  4393. test ! -s conftest.err
  4394. } && test -s conftest$ac_exeext && {
  4395. test "$cross_compiling" = yes ||
  4396. $as_test_x conftest$ac_exeext
  4397. }; then
  4398. ac_cv_lib_socket_socket=yes
  4399. else
  4400. $as_echo "$as_me: failed program was:" >&5
  4401. sed 's/^/| /' conftest.$ac_ext >&5
  4402. ac_cv_lib_socket_socket=no
  4403. fi
  4404. rm -rf conftest.dSYM
  4405. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4406. conftest$ac_exeext conftest.$ac_ext
  4407. LIBS=$ac_check_lib_save_LIBS
  4408. fi
  4409. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
  4410. $as_echo "$ac_cv_lib_socket_socket" >&6; }
  4411. if test "x$ac_cv_lib_socket_socket" = x""yes; then
  4412. cat >>confdefs.h <<_ACEOF
  4413. #define HAVE_LIBSOCKET 1
  4414. _ACEOF
  4415. LIBS="-lsocket $LIBS"
  4416. fi
  4417. # AC_CHECK_LIB(nsl, connect)
  4418. # AC_CHECK_LIB(dl, dlopen)
  4419. # AC_CHECK_LIB(nsl, gethostbyname)
  4420. # AC_CHECK_LIB(dns, gethostbyname)
  4421. # AC_CHECK_LIB(z, gzopen, ZLIB="-lz")
  4422. # This is needed for Tcl libraries compiled with thread support
  4423. # AC_CHECK_LIB(pthread, pthread_mutex_init, [dnl
  4424. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4425. # ac_cv_lib_pthread="-lpthread"], [dnl
  4426. # AC_CHECK_LIB(pthread, __pthread_mutex_init, [dnl
  4427. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4428. # ac_cv_lib_pthread="-lpthread"], [dnl
  4429. # AC_CHECK_LIB(pthreads, pthread_mutex_init, [dnl
  4430. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4431. # ac_cv_lib_pthread="-lpthreads"], [dnl
  4432. # AC_CHECK_FUNC(pthread_mutex_init, [dnl
  4433. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4434. # ac_cv_lib_pthread=""],
  4435. # ac_cv_lib_pthread_pthread_mutex_init=no)])])])
  4436. if test "$SUNOS" = "yes"; then
  4437. # For suns without yp
  4438. { $as_echo "$as_me:$LINENO: checking for main in -ldl" >&5
  4439. $as_echo_n "checking for main in -ldl... " >&6; }
  4440. if test "${ac_cv_lib_dl_main+set}" = set; then
  4441. $as_echo_n "(cached) " >&6
  4442. else
  4443. ac_check_lib_save_LIBS=$LIBS
  4444. LIBS="-ldl $LIBS"
  4445. cat >conftest.$ac_ext <<_ACEOF
  4446. /* confdefs.h. */
  4447. _ACEOF
  4448. cat confdefs.h >>conftest.$ac_ext
  4449. cat >>conftest.$ac_ext <<_ACEOF
  4450. /* end confdefs.h. */
  4451. int
  4452. main ()
  4453. {
  4454. return main ();
  4455. ;
  4456. return 0;
  4457. }
  4458. _ACEOF
  4459. rm -f conftest.$ac_objext conftest$ac_exeext
  4460. if { (ac_try="$ac_link"
  4461. case "(($ac_try" in
  4462. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4463. *) ac_try_echo=$ac_try;;
  4464. esac
  4465. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4466. $as_echo "$ac_try_echo") >&5
  4467. (eval "$ac_link") 2>conftest.er1
  4468. ac_status=$?
  4469. grep -v '^ *+' conftest.er1 >conftest.err
  4470. rm -f conftest.er1
  4471. cat conftest.err >&5
  4472. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4473. (exit $ac_status); } && {
  4474. test -z "$ac_cxx_werror_flag" ||
  4475. test ! -s conftest.err
  4476. } && test -s conftest$ac_exeext && {
  4477. test "$cross_compiling" = yes ||
  4478. $as_test_x conftest$ac_exeext
  4479. }; then
  4480. ac_cv_lib_dl_main=yes
  4481. else
  4482. $as_echo "$as_me: failed program was:" >&5
  4483. sed 's/^/| /' conftest.$ac_ext >&5
  4484. ac_cv_lib_dl_main=no
  4485. fi
  4486. rm -rf conftest.dSYM
  4487. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4488. conftest$ac_exeext conftest.$ac_ext
  4489. LIBS=$ac_check_lib_save_LIBS
  4490. fi
  4491. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
  4492. $as_echo "$ac_cv_lib_dl_main" >&6; }
  4493. if test "x$ac_cv_lib_dl_main" = x""yes; then
  4494. cat >>confdefs.h <<_ACEOF
  4495. #define HAVE_LIBDL 1
  4496. _ACEOF
  4497. LIBS="-ldl $LIBS"
  4498. fi
  4499. { $as_echo "$as_me:$LINENO: checking for main in -lsocket" >&5
  4500. $as_echo_n "checking for main in -lsocket... " >&6; }
  4501. if test "${ac_cv_lib_socket_main+set}" = set; then
  4502. $as_echo_n "(cached) " >&6
  4503. else
  4504. ac_check_lib_save_LIBS=$LIBS
  4505. LIBS="-lsocket $LIBS"
  4506. cat >conftest.$ac_ext <<_ACEOF
  4507. /* confdefs.h. */
  4508. _ACEOF
  4509. cat confdefs.h >>conftest.$ac_ext
  4510. cat >>conftest.$ac_ext <<_ACEOF
  4511. /* end confdefs.h. */
  4512. int
  4513. main ()
  4514. {
  4515. return main ();
  4516. ;
  4517. return 0;
  4518. }
  4519. _ACEOF
  4520. rm -f conftest.$ac_objext conftest$ac_exeext
  4521. if { (ac_try="$ac_link"
  4522. case "(($ac_try" in
  4523. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4524. *) ac_try_echo=$ac_try;;
  4525. esac
  4526. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4527. $as_echo "$ac_try_echo") >&5
  4528. (eval "$ac_link") 2>conftest.er1
  4529. ac_status=$?
  4530. grep -v '^ *+' conftest.er1 >conftest.err
  4531. rm -f conftest.er1
  4532. cat conftest.err >&5
  4533. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4534. (exit $ac_status); } && {
  4535. test -z "$ac_cxx_werror_flag" ||
  4536. test ! -s conftest.err
  4537. } && test -s conftest$ac_exeext && {
  4538. test "$cross_compiling" = yes ||
  4539. $as_test_x conftest$ac_exeext
  4540. }; then
  4541. ac_cv_lib_socket_main=yes
  4542. else
  4543. $as_echo "$as_me: failed program was:" >&5
  4544. sed 's/^/| /' conftest.$ac_ext >&5
  4545. ac_cv_lib_socket_main=no
  4546. fi
  4547. rm -rf conftest.dSYM
  4548. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4549. conftest$ac_exeext conftest.$ac_ext
  4550. LIBS=$ac_check_lib_save_LIBS
  4551. fi
  4552. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
  4553. $as_echo "$ac_cv_lib_socket_main" >&6; }
  4554. if test "x$ac_cv_lib_socket_main" = x""yes; then
  4555. cat >>confdefs.h <<_ACEOF
  4556. #define HAVE_LIBSOCKET 1
  4557. _ACEOF
  4558. LIBS="-lsocket $LIBS"
  4559. fi
  4560. { $as_echo "$as_me:$LINENO: checking for main in -lnsl" >&5
  4561. $as_echo_n "checking for main in -lnsl... " >&6; }
  4562. if test "${ac_cv_lib_nsl_main+set}" = set; then
  4563. $as_echo_n "(cached) " >&6
  4564. else
  4565. ac_check_lib_save_LIBS=$LIBS
  4566. LIBS="-lnsl $LIBS"
  4567. cat >conftest.$ac_ext <<_ACEOF
  4568. /* confdefs.h. */
  4569. _ACEOF
  4570. cat confdefs.h >>conftest.$ac_ext
  4571. cat >>conftest.$ac_ext <<_ACEOF
  4572. /* end confdefs.h. */
  4573. int
  4574. main ()
  4575. {
  4576. return main ();
  4577. ;
  4578. return 0;
  4579. }
  4580. _ACEOF
  4581. rm -f conftest.$ac_objext conftest$ac_exeext
  4582. if { (ac_try="$ac_link"
  4583. case "(($ac_try" in
  4584. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4585. *) ac_try_echo=$ac_try;;
  4586. esac
  4587. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4588. $as_echo "$ac_try_echo") >&5
  4589. (eval "$ac_link") 2>conftest.er1
  4590. ac_status=$?
  4591. grep -v '^ *+' conftest.er1 >conftest.err
  4592. rm -f conftest.er1
  4593. cat conftest.err >&5
  4594. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4595. (exit $ac_status); } && {
  4596. test -z "$ac_cxx_werror_flag" ||
  4597. test ! -s conftest.err
  4598. } && test -s conftest$ac_exeext && {
  4599. test "$cross_compiling" = yes ||
  4600. $as_test_x conftest$ac_exeext
  4601. }; then
  4602. ac_cv_lib_nsl_main=yes
  4603. else
  4604. $as_echo "$as_me: failed program was:" >&5
  4605. sed 's/^/| /' conftest.$ac_ext >&5
  4606. ac_cv_lib_nsl_main=no
  4607. fi
  4608. rm -rf conftest.dSYM
  4609. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4610. conftest$ac_exeext conftest.$ac_ext
  4611. LIBS=$ac_check_lib_save_LIBS
  4612. fi
  4613. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
  4614. $as_echo "$ac_cv_lib_nsl_main" >&6; }
  4615. if test "x$ac_cv_lib_nsl_main" = x""yes; then
  4616. cat >>confdefs.h <<_ACEOF
  4617. #define HAVE_LIBNSL 1
  4618. _ACEOF
  4619. LIBS="-lnsl $LIBS"
  4620. fi
  4621. fi
  4622. # Checks for header files
  4623. ac_header_dirent=no
  4624. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  4625. as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  4626. { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  4627. $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
  4628. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4629. $as_echo_n "(cached) " >&6
  4630. else
  4631. cat >conftest.$ac_ext <<_ACEOF
  4632. /* confdefs.h. */
  4633. _ACEOF
  4634. cat confdefs.h >>conftest.$ac_ext
  4635. cat >>conftest.$ac_ext <<_ACEOF
  4636. /* end confdefs.h. */
  4637. #include <sys/types.h>
  4638. #include <$ac_hdr>
  4639. int
  4640. main ()
  4641. {
  4642. if ((DIR *) 0)
  4643. return 0;
  4644. ;
  4645. return 0;
  4646. }
  4647. _ACEOF
  4648. rm -f conftest.$ac_objext
  4649. if { (ac_try="$ac_compile"
  4650. case "(($ac_try" in
  4651. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4652. *) ac_try_echo=$ac_try;;
  4653. esac
  4654. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4655. $as_echo "$ac_try_echo") >&5
  4656. (eval "$ac_compile") 2>conftest.er1
  4657. ac_status=$?
  4658. grep -v '^ *+' conftest.er1 >conftest.err
  4659. rm -f conftest.er1
  4660. cat conftest.err >&5
  4661. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4662. (exit $ac_status); } && {
  4663. test -z "$ac_cxx_werror_flag" ||
  4664. test ! -s conftest.err
  4665. } && test -s conftest.$ac_objext; then
  4666. eval "$as_ac_Header=yes"
  4667. else
  4668. $as_echo "$as_me: failed program was:" >&5
  4669. sed 's/^/| /' conftest.$ac_ext >&5
  4670. eval "$as_ac_Header=no"
  4671. fi
  4672. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4673. fi
  4674. ac_res=`eval 'as_val=${'$as_ac_Header'}
  4675. $as_echo "$as_val"'`
  4676. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  4677. $as_echo "$ac_res" >&6; }
  4678. as_val=`eval 'as_val=${'$as_ac_Header'}
  4679. $as_echo "$as_val"'`
  4680. if test "x$as_val" = x""yes; then
  4681. cat >>confdefs.h <<_ACEOF
  4682. #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  4683. _ACEOF
  4684. ac_header_dirent=$ac_hdr; break
  4685. fi
  4686. done
  4687. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  4688. if test $ac_header_dirent = dirent.h; then
  4689. { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
  4690. $as_echo_n "checking for library containing opendir... " >&6; }
  4691. if test "${ac_cv_search_opendir+set}" = set; then
  4692. $as_echo_n "(cached) " >&6
  4693. else
  4694. ac_func_search_save_LIBS=$LIBS
  4695. cat >conftest.$ac_ext <<_ACEOF
  4696. /* confdefs.h. */
  4697. _ACEOF
  4698. cat confdefs.h >>conftest.$ac_ext
  4699. cat >>conftest.$ac_ext <<_ACEOF
  4700. /* end confdefs.h. */
  4701. /* Override any GCC internal prototype to avoid an error.
  4702. Use char because int might match the return type of a GCC
  4703. builtin and then its argument prototype would still apply. */
  4704. #ifdef __cplusplus
  4705. extern "C"
  4706. #endif
  4707. char opendir ();
  4708. int
  4709. main ()
  4710. {
  4711. return opendir ();
  4712. ;
  4713. return 0;
  4714. }
  4715. _ACEOF
  4716. for ac_lib in '' dir; do
  4717. if test -z "$ac_lib"; then
  4718. ac_res="none required"
  4719. else
  4720. ac_res=-l$ac_lib
  4721. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4722. fi
  4723. rm -f conftest.$ac_objext conftest$ac_exeext
  4724. if { (ac_try="$ac_link"
  4725. case "(($ac_try" in
  4726. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4727. *) ac_try_echo=$ac_try;;
  4728. esac
  4729. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4730. $as_echo "$ac_try_echo") >&5
  4731. (eval "$ac_link") 2>conftest.er1
  4732. ac_status=$?
  4733. grep -v '^ *+' conftest.er1 >conftest.err
  4734. rm -f conftest.er1
  4735. cat conftest.err >&5
  4736. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4737. (exit $ac_status); } && {
  4738. test -z "$ac_cxx_werror_flag" ||
  4739. test ! -s conftest.err
  4740. } && test -s conftest$ac_exeext && {
  4741. test "$cross_compiling" = yes ||
  4742. $as_test_x conftest$ac_exeext
  4743. }; then
  4744. ac_cv_search_opendir=$ac_res
  4745. else
  4746. $as_echo "$as_me: failed program was:" >&5
  4747. sed 's/^/| /' conftest.$ac_ext >&5
  4748. fi
  4749. rm -rf conftest.dSYM
  4750. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4751. conftest$ac_exeext
  4752. if test "${ac_cv_search_opendir+set}" = set; then
  4753. break
  4754. fi
  4755. done
  4756. if test "${ac_cv_search_opendir+set}" = set; then
  4757. :
  4758. else
  4759. ac_cv_search_opendir=no
  4760. fi
  4761. rm conftest.$ac_ext
  4762. LIBS=$ac_func_search_save_LIBS
  4763. fi
  4764. { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  4765. $as_echo "$ac_cv_search_opendir" >&6; }
  4766. ac_res=$ac_cv_search_opendir
  4767. if test "$ac_res" != no; then
  4768. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  4769. fi
  4770. else
  4771. { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
  4772. $as_echo_n "checking for library containing opendir... " >&6; }
  4773. if test "${ac_cv_search_opendir+set}" = set; then
  4774. $as_echo_n "(cached) " >&6
  4775. else
  4776. ac_func_search_save_LIBS=$LIBS
  4777. cat >conftest.$ac_ext <<_ACEOF
  4778. /* confdefs.h. */
  4779. _ACEOF
  4780. cat confdefs.h >>conftest.$ac_ext
  4781. cat >>conftest.$ac_ext <<_ACEOF
  4782. /* end confdefs.h. */
  4783. /* Override any GCC internal prototype to avoid an error.
  4784. Use char because int might match the return type of a GCC
  4785. builtin and then its argument prototype would still apply. */
  4786. #ifdef __cplusplus
  4787. extern "C"
  4788. #endif
  4789. char opendir ();
  4790. int
  4791. main ()
  4792. {
  4793. return opendir ();
  4794. ;
  4795. return 0;
  4796. }
  4797. _ACEOF
  4798. for ac_lib in '' x; do
  4799. if test -z "$ac_lib"; then
  4800. ac_res="none required"
  4801. else
  4802. ac_res=-l$ac_lib
  4803. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4804. fi
  4805. rm -f conftest.$ac_objext conftest$ac_exeext
  4806. if { (ac_try="$ac_link"
  4807. case "(($ac_try" in
  4808. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4809. *) ac_try_echo=$ac_try;;
  4810. esac
  4811. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4812. $as_echo "$ac_try_echo") >&5
  4813. (eval "$ac_link") 2>conftest.er1
  4814. ac_status=$?
  4815. grep -v '^ *+' conftest.er1 >conftest.err
  4816. rm -f conftest.er1
  4817. cat conftest.err >&5
  4818. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4819. (exit $ac_status); } && {
  4820. test -z "$ac_cxx_werror_flag" ||
  4821. test ! -s conftest.err
  4822. } && test -s conftest$ac_exeext && {
  4823. test "$cross_compiling" = yes ||
  4824. $as_test_x conftest$ac_exeext
  4825. }; then
  4826. ac_cv_search_opendir=$ac_res
  4827. else
  4828. $as_echo "$as_me: failed program was:" >&5
  4829. sed 's/^/| /' conftest.$ac_ext >&5
  4830. fi
  4831. rm -rf conftest.dSYM
  4832. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4833. conftest$ac_exeext
  4834. if test "${ac_cv_search_opendir+set}" = set; then
  4835. break
  4836. fi
  4837. done
  4838. if test "${ac_cv_search_opendir+set}" = set; then
  4839. :
  4840. else
  4841. ac_cv_search_opendir=no
  4842. fi
  4843. rm conftest.$ac_ext
  4844. LIBS=$ac_func_search_save_LIBS
  4845. fi
  4846. { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  4847. $as_echo "$ac_cv_search_opendir" >&6; }
  4848. ac_res=$ac_cv_search_opendir
  4849. if test "$ac_res" != no; then
  4850. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  4851. fi
  4852. fi
  4853. { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  4854. $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  4855. if test "${ac_cv_header_sys_wait_h+set}" = set; then
  4856. $as_echo_n "(cached) " >&6
  4857. else
  4858. cat >conftest.$ac_ext <<_ACEOF
  4859. /* confdefs.h. */
  4860. _ACEOF
  4861. cat confdefs.h >>conftest.$ac_ext
  4862. cat >>conftest.$ac_ext <<_ACEOF
  4863. /* end confdefs.h. */
  4864. #include <sys/types.h>
  4865. #include <sys/wait.h>
  4866. #ifndef WEXITSTATUS
  4867. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  4868. #endif
  4869. #ifndef WIFEXITED
  4870. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  4871. #endif
  4872. int
  4873. main ()
  4874. {
  4875. int s;
  4876. wait (&s);
  4877. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  4878. ;
  4879. return 0;
  4880. }
  4881. _ACEOF
  4882. rm -f conftest.$ac_objext
  4883. if { (ac_try="$ac_compile"
  4884. case "(($ac_try" in
  4885. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4886. *) ac_try_echo=$ac_try;;
  4887. esac
  4888. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4889. $as_echo "$ac_try_echo") >&5
  4890. (eval "$ac_compile") 2>conftest.er1
  4891. ac_status=$?
  4892. grep -v '^ *+' conftest.er1 >conftest.err
  4893. rm -f conftest.er1
  4894. cat conftest.err >&5
  4895. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4896. (exit $ac_status); } && {
  4897. test -z "$ac_cxx_werror_flag" ||
  4898. test ! -s conftest.err
  4899. } && test -s conftest.$ac_objext; then
  4900. ac_cv_header_sys_wait_h=yes
  4901. else
  4902. $as_echo "$as_me: failed program was:" >&5
  4903. sed 's/^/| /' conftest.$ac_ext >&5
  4904. ac_cv_header_sys_wait_h=no
  4905. fi
  4906. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4907. fi
  4908. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  4909. $as_echo "$ac_cv_header_sys_wait_h" >&6; }
  4910. if test $ac_cv_header_sys_wait_h = yes; then
  4911. cat >>confdefs.h <<\_ACEOF
  4912. #define HAVE_SYS_WAIT_H 1
  4913. _ACEOF
  4914. fi
  4915. { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  4916. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  4917. if test "${ac_cv_header_time+set}" = set; then
  4918. $as_echo_n "(cached) " >&6
  4919. else
  4920. cat >conftest.$ac_ext <<_ACEOF
  4921. /* confdefs.h. */
  4922. _ACEOF
  4923. cat confdefs.h >>conftest.$ac_ext
  4924. cat >>conftest.$ac_ext <<_ACEOF
  4925. /* end confdefs.h. */
  4926. #include <sys/types.h>
  4927. #include <sys/time.h>
  4928. #include <time.h>
  4929. int
  4930. main ()
  4931. {
  4932. if ((struct tm *) 0)
  4933. return 0;
  4934. ;
  4935. return 0;
  4936. }
  4937. _ACEOF
  4938. rm -f conftest.$ac_objext
  4939. if { (ac_try="$ac_compile"
  4940. case "(($ac_try" in
  4941. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4942. *) ac_try_echo=$ac_try;;
  4943. esac
  4944. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4945. $as_echo "$ac_try_echo") >&5
  4946. (eval "$ac_compile") 2>conftest.er1
  4947. ac_status=$?
  4948. grep -v '^ *+' conftest.er1 >conftest.err
  4949. rm -f conftest.er1
  4950. cat conftest.err >&5
  4951. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4952. (exit $ac_status); } && {
  4953. test -z "$ac_cxx_werror_flag" ||
  4954. test ! -s conftest.err
  4955. } && test -s conftest.$ac_objext; then
  4956. ac_cv_header_time=yes
  4957. else
  4958. $as_echo "$as_me: failed program was:" >&5
  4959. sed 's/^/| /' conftest.$ac_ext >&5
  4960. ac_cv_header_time=no
  4961. fi
  4962. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4963. fi
  4964. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  4965. $as_echo "$ac_cv_header_time" >&6; }
  4966. if test $ac_cv_header_time = yes; then
  4967. cat >>confdefs.h <<\_ACEOF
  4968. #define TIME_WITH_SYS_TIME 1
  4969. _ACEOF
  4970. fi
  4971. { $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
  4972. $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
  4973. if test "${ac_cv_header_stat_broken+set}" = set; then
  4974. $as_echo_n "(cached) " >&6
  4975. else
  4976. cat >conftest.$ac_ext <<_ACEOF
  4977. /* confdefs.h. */
  4978. _ACEOF
  4979. cat confdefs.h >>conftest.$ac_ext
  4980. cat >>conftest.$ac_ext <<_ACEOF
  4981. /* end confdefs.h. */
  4982. #include <sys/types.h>
  4983. #include <sys/stat.h>
  4984. #if defined S_ISBLK && defined S_IFDIR
  4985. extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
  4986. #endif
  4987. #if defined S_ISBLK && defined S_IFCHR
  4988. extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
  4989. #endif
  4990. #if defined S_ISLNK && defined S_IFREG
  4991. extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
  4992. #endif
  4993. #if defined S_ISSOCK && defined S_IFREG
  4994. extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
  4995. #endif
  4996. _ACEOF
  4997. rm -f conftest.$ac_objext
  4998. if { (ac_try="$ac_compile"
  4999. case "(($ac_try" in
  5000. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5001. *) ac_try_echo=$ac_try;;
  5002. esac
  5003. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5004. $as_echo "$ac_try_echo") >&5
  5005. (eval "$ac_compile") 2>conftest.er1
  5006. ac_status=$?
  5007. grep -v '^ *+' conftest.er1 >conftest.err
  5008. rm -f conftest.er1
  5009. cat conftest.err >&5
  5010. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5011. (exit $ac_status); } && {
  5012. test -z "$ac_cxx_werror_flag" ||
  5013. test ! -s conftest.err
  5014. } && test -s conftest.$ac_objext; then
  5015. ac_cv_header_stat_broken=no
  5016. else
  5017. $as_echo "$as_me: failed program was:" >&5
  5018. sed 's/^/| /' conftest.$ac_ext >&5
  5019. ac_cv_header_stat_broken=yes
  5020. fi
  5021. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5022. fi
  5023. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
  5024. $as_echo "$ac_cv_header_stat_broken" >&6; }
  5025. if test $ac_cv_header_stat_broken = yes; then
  5026. cat >>confdefs.h <<\_ACEOF
  5027. #define STAT_MACROS_BROKEN 1
  5028. _ACEOF
  5029. fi
  5030. #checkpoint
  5031. cat >confcache <<\_ACEOF
  5032. # This file is a shell script that caches the results of configure
  5033. # tests run on this system so they can be shared between configure
  5034. # scripts and configure runs, see configure's option --config-cache.
  5035. # It is not useful on other systems. If it contains results you don't
  5036. # want to keep, you may remove or edit it.
  5037. #
  5038. # config.status only pays attention to the cache file if you give it
  5039. # the --recheck option to rerun configure.
  5040. #
  5041. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5042. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5043. # following values.
  5044. _ACEOF
  5045. # The following way of writing the cache mishandles newlines in values,
  5046. # but we know of no workaround that is simple, portable, and efficient.
  5047. # So, we kill variables containing newlines.
  5048. # Ultrix sh set writes to stderr and can't be redirected directly,
  5049. # and sets the high bit in the cache file unless we assign to the vars.
  5050. (
  5051. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  5052. eval ac_val=\$$ac_var
  5053. case $ac_val in #(
  5054. *${as_nl}*)
  5055. case $ac_var in #(
  5056. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  5057. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  5058. esac
  5059. case $ac_var in #(
  5060. _ | IFS | as_nl) ;; #(
  5061. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  5062. *) $as_unset $ac_var ;;
  5063. esac ;;
  5064. esac
  5065. done
  5066. (set) 2>&1 |
  5067. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  5068. *${as_nl}ac_space=\ *)
  5069. # `set' does not quote correctly, so add quotes (double-quote
  5070. # substitution turns \\\\ into \\, and sed turns \\ into \).
  5071. sed -n \
  5072. "s/'/'\\\\''/g;
  5073. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5074. ;; #(
  5075. *)
  5076. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5077. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  5078. ;;
  5079. esac |
  5080. sort
  5081. ) |
  5082. sed '
  5083. /^ac_cv_env_/b end
  5084. t clear
  5085. :clear
  5086. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5087. t end
  5088. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5089. :end' >>confcache
  5090. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  5091. if test -w "$cache_file"; then
  5092. test "x$cache_file" != "x/dev/null" &&
  5093. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  5094. $as_echo "$as_me: updating cache $cache_file" >&6;}
  5095. cat confcache >$cache_file
  5096. else
  5097. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  5098. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  5099. fi
  5100. fi
  5101. rm -f confcache
  5102. for ac_header in stdarg.h std_arg.h arpa/inet.h fcntl.h limits.h locale.h netdb.h netinet/in.h
  5103. do
  5104. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5105. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5106. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  5107. $as_echo_n "checking for $ac_header... " >&6; }
  5108. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5109. $as_echo_n "(cached) " >&6
  5110. fi
  5111. ac_res=`eval 'as_val=${'$as_ac_Header'}
  5112. $as_echo "$as_val"'`
  5113. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  5114. $as_echo "$ac_res" >&6; }
  5115. else
  5116. # Is the header compilable?
  5117. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5118. $as_echo_n "checking $ac_header usability... " >&6; }
  5119. cat >conftest.$ac_ext <<_ACEOF
  5120. /* confdefs.h. */
  5121. _ACEOF
  5122. cat confdefs.h >>conftest.$ac_ext
  5123. cat >>conftest.$ac_ext <<_ACEOF
  5124. /* end confdefs.h. */
  5125. $ac_includes_default
  5126. #include <$ac_header>
  5127. _ACEOF
  5128. rm -f conftest.$ac_objext
  5129. if { (ac_try="$ac_compile"
  5130. case "(($ac_try" in
  5131. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5132. *) ac_try_echo=$ac_try;;
  5133. esac
  5134. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5135. $as_echo "$ac_try_echo") >&5
  5136. (eval "$ac_compile") 2>conftest.er1
  5137. ac_status=$?
  5138. grep -v '^ *+' conftest.er1 >conftest.err
  5139. rm -f conftest.er1
  5140. cat conftest.err >&5
  5141. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5142. (exit $ac_status); } && {
  5143. test -z "$ac_cxx_werror_flag" ||
  5144. test ! -s conftest.err
  5145. } && test -s conftest.$ac_objext; then
  5146. ac_header_compiler=yes
  5147. else
  5148. $as_echo "$as_me: failed program was:" >&5
  5149. sed 's/^/| /' conftest.$ac_ext >&5
  5150. ac_header_compiler=no
  5151. fi
  5152. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5153. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5154. $as_echo "$ac_header_compiler" >&6; }
  5155. # Is the header present?
  5156. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5157. $as_echo_n "checking $ac_header presence... " >&6; }
  5158. cat >conftest.$ac_ext <<_ACEOF
  5159. /* confdefs.h. */
  5160. _ACEOF
  5161. cat confdefs.h >>conftest.$ac_ext
  5162. cat >>conftest.$ac_ext <<_ACEOF
  5163. /* end confdefs.h. */
  5164. #include <$ac_header>
  5165. _ACEOF
  5166. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5167. case "(($ac_try" in
  5168. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5169. *) ac_try_echo=$ac_try;;
  5170. esac
  5171. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5172. $as_echo "$ac_try_echo") >&5
  5173. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5174. ac_status=$?
  5175. grep -v '^ *+' conftest.er1 >conftest.err
  5176. rm -f conftest.er1
  5177. cat conftest.err >&5
  5178. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5179. (exit $ac_status); } >/dev/null && {
  5180. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5181. test ! -s conftest.err
  5182. }; then
  5183. ac_header_preproc=yes
  5184. else
  5185. $as_echo "$as_me: failed program was:" >&5
  5186. sed 's/^/| /' conftest.$ac_ext >&5
  5187. ac_header_preproc=no
  5188. fi
  5189. rm -f conftest.err conftest.$ac_ext
  5190. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5191. $as_echo "$ac_header_preproc" >&6; }
  5192. # So? What about this header?
  5193. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  5194. yes:no: )
  5195. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5196. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5197. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5198. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5199. ac_header_preproc=yes
  5200. ;;
  5201. no:yes:* )
  5202. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5203. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5204. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5205. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5206. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5207. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5208. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5209. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5210. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5211. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5212. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5213. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5214. ;;
  5215. esac
  5216. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  5217. $as_echo_n "checking for $ac_header... " >&6; }
  5218. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5219. $as_echo_n "(cached) " >&6
  5220. else
  5221. eval "$as_ac_Header=\$ac_header_preproc"
  5222. fi
  5223. ac_res=`eval 'as_val=${'$as_ac_Header'}
  5224. $as_echo "$as_val"'`
  5225. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  5226. $as_echo "$ac_res" >&6; }
  5227. fi
  5228. as_val=`eval 'as_val=${'$as_ac_Header'}
  5229. $as_echo "$as_val"'`
  5230. if test "x$as_val" = x""yes; then
  5231. cat >>confdefs.h <<_ACEOF
  5232. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5233. _ACEOF
  5234. fi
  5235. done
  5236. for ac_header in sys/file.h sys/ioctl.h sys/param.h sys/socket.h wchar.h sys/ptrace.h paths.h
  5237. do
  5238. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5239. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5240. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  5241. $as_echo_n "checking for $ac_header... " >&6; }
  5242. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5243. $as_echo_n "(cached) " >&6
  5244. fi
  5245. ac_res=`eval 'as_val=${'$as_ac_Header'}
  5246. $as_echo "$as_val"'`
  5247. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  5248. $as_echo "$ac_res" >&6; }
  5249. else
  5250. # Is the header compilable?
  5251. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5252. $as_echo_n "checking $ac_header usability... " >&6; }
  5253. cat >conftest.$ac_ext <<_ACEOF
  5254. /* confdefs.h. */
  5255. _ACEOF
  5256. cat confdefs.h >>conftest.$ac_ext
  5257. cat >>conftest.$ac_ext <<_ACEOF
  5258. /* end confdefs.h. */
  5259. $ac_includes_default
  5260. #include <$ac_header>
  5261. _ACEOF
  5262. rm -f conftest.$ac_objext
  5263. if { (ac_try="$ac_compile"
  5264. case "(($ac_try" in
  5265. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5266. *) ac_try_echo=$ac_try;;
  5267. esac
  5268. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5269. $as_echo "$ac_try_echo") >&5
  5270. (eval "$ac_compile") 2>conftest.er1
  5271. ac_status=$?
  5272. grep -v '^ *+' conftest.er1 >conftest.err
  5273. rm -f conftest.er1
  5274. cat conftest.err >&5
  5275. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5276. (exit $ac_status); } && {
  5277. test -z "$ac_cxx_werror_flag" ||
  5278. test ! -s conftest.err
  5279. } && test -s conftest.$ac_objext; then
  5280. ac_header_compiler=yes
  5281. else
  5282. $as_echo "$as_me: failed program was:" >&5
  5283. sed 's/^/| /' conftest.$ac_ext >&5
  5284. ac_header_compiler=no
  5285. fi
  5286. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5287. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5288. $as_echo "$ac_header_compiler" >&6; }
  5289. # Is the header present?
  5290. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5291. $as_echo_n "checking $ac_header presence... " >&6; }
  5292. cat >conftest.$ac_ext <<_ACEOF
  5293. /* confdefs.h. */
  5294. _ACEOF
  5295. cat confdefs.h >>conftest.$ac_ext
  5296. cat >>conftest.$ac_ext <<_ACEOF
  5297. /* end confdefs.h. */
  5298. #include <$ac_header>
  5299. _ACEOF
  5300. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5301. case "(($ac_try" in
  5302. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5303. *) ac_try_echo=$ac_try;;
  5304. esac
  5305. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5306. $as_echo "$ac_try_echo") >&5
  5307. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5308. ac_status=$?
  5309. grep -v '^ *+' conftest.er1 >conftest.err
  5310. rm -f conftest.er1
  5311. cat conftest.err >&5
  5312. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5313. (exit $ac_status); } >/dev/null && {
  5314. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5315. test ! -s conftest.err
  5316. }; then
  5317. ac_header_preproc=yes
  5318. else
  5319. $as_echo "$as_me: failed program was:" >&5
  5320. sed 's/^/| /' conftest.$ac_ext >&5
  5321. ac_header_preproc=no
  5322. fi
  5323. rm -f conftest.err conftest.$ac_ext
  5324. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5325. $as_echo "$ac_header_preproc" >&6; }
  5326. # So? What about this header?
  5327. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  5328. yes:no: )
  5329. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5330. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5331. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5332. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5333. ac_header_preproc=yes
  5334. ;;
  5335. no:yes:* )
  5336. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5337. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5338. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5339. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5340. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5341. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5342. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5343. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5344. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5345. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5346. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5347. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5348. ;;
  5349. esac
  5350. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  5351. $as_echo_n "checking for $ac_header... " >&6; }
  5352. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5353. $as_echo_n "(cached) " >&6
  5354. else
  5355. eval "$as_ac_Header=\$ac_header_preproc"
  5356. fi
  5357. ac_res=`eval 'as_val=${'$as_ac_Header'}
  5358. $as_echo "$as_val"'`
  5359. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  5360. $as_echo "$ac_res" >&6; }
  5361. fi
  5362. as_val=`eval 'as_val=${'$as_ac_Header'}
  5363. $as_echo "$as_val"'`
  5364. if test "x$as_val" = x""yes; then
  5365. cat >>confdefs.h <<_ACEOF
  5366. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5367. _ACEOF
  5368. fi
  5369. done
  5370. #checkpoint
  5371. cat >confcache <<\_ACEOF
  5372. # This file is a shell script that caches the results of configure
  5373. # tests run on this system so they can be shared between configure
  5374. # scripts and configure runs, see configure's option --config-cache.
  5375. # It is not useful on other systems. If it contains results you don't
  5376. # want to keep, you may remove or edit it.
  5377. #
  5378. # config.status only pays attention to the cache file if you give it
  5379. # the --recheck option to rerun configure.
  5380. #
  5381. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5382. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5383. # following values.
  5384. _ACEOF
  5385. # The following way of writing the cache mishandles newlines in values,
  5386. # but we know of no workaround that is simple, portable, and efficient.
  5387. # So, we kill variables containing newlines.
  5388. # Ultrix sh set writes to stderr and can't be redirected directly,
  5389. # and sets the high bit in the cache file unless we assign to the vars.
  5390. (
  5391. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  5392. eval ac_val=\$$ac_var
  5393. case $ac_val in #(
  5394. *${as_nl}*)
  5395. case $ac_var in #(
  5396. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  5397. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  5398. esac
  5399. case $ac_var in #(
  5400. _ | IFS | as_nl) ;; #(
  5401. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  5402. *) $as_unset $ac_var ;;
  5403. esac ;;
  5404. esac
  5405. done
  5406. (set) 2>&1 |
  5407. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  5408. *${as_nl}ac_space=\ *)
  5409. # `set' does not quote correctly, so add quotes (double-quote
  5410. # substitution turns \\\\ into \\, and sed turns \\ into \).
  5411. sed -n \
  5412. "s/'/'\\\\''/g;
  5413. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5414. ;; #(
  5415. *)
  5416. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5417. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  5418. ;;
  5419. esac |
  5420. sort
  5421. ) |
  5422. sed '
  5423. /^ac_cv_env_/b end
  5424. t clear
  5425. :clear
  5426. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5427. t end
  5428. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5429. :end' >>confcache
  5430. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  5431. if test -w "$cache_file"; then
  5432. test "x$cache_file" != "x/dev/null" &&
  5433. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  5434. $as_echo "$as_me: updating cache $cache_file" >&6;}
  5435. cat confcache >$cache_file
  5436. else
  5437. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  5438. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  5439. fi
  5440. fi
  5441. rm -f confcache
  5442. #AC_CHECK_HEADERS(openssl/ssl.h openssl/crypto.h)
  5443. #AC_CHECK_HEADERS(zlib.h)
  5444. #EGG_CHECK_ZLIB
  5445. { $as_echo "$as_me:$LINENO: checking for path to OpenSSL" >&5
  5446. $as_echo_n "checking for path to OpenSSL... " >&6; }
  5447. # Check whether --with-openssl was given.
  5448. if test "${with_openssl+set}" = set; then
  5449. withval=$with_openssl; cf_with_openssl=$withval
  5450. else
  5451. cf_with_openssl="auto"
  5452. fi
  5453. cf_openssl_basedir=""
  5454. if test "$cf_with_openssl" != "auto"; then
  5455. cf_openssl_basedir="`echo ${cf_with_openssl} | sed 's/\/$//'`"
  5456. else
  5457. for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/local/openssl; do
  5458. if test -f "${dirs}/include/openssl/opensslv.h" ; then
  5459. cf_openssl_basedir="${dirs}"
  5460. break
  5461. fi
  5462. done
  5463. unset dirs
  5464. fi
  5465. if test ! -z "$cf_openssl_basedir"; then
  5466. if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then
  5467. SSL_INCLUDES="-I${cf_openssl_basedir}/include"
  5468. SSL_LIBS="-L${cf_openssl_basedir}/lib"
  5469. else
  5470. cf_openssl_basedir=""
  5471. fi
  5472. else
  5473. if test -f "/usr/include/openssl/opensslv.h" ; then
  5474. cf_openssl_basedir="/usr"
  5475. fi
  5476. fi
  5477. if test ! -z "$cf_openssl_basedir"; then
  5478. { $as_echo "$as_me:$LINENO: result: $cf_openssl_basedir" >&5
  5479. $as_echo "$cf_openssl_basedir" >&6; }
  5480. else
  5481. { $as_echo "$as_me:$LINENO: result: not found" >&5
  5482. $as_echo "not found" >&6; }
  5483. { { $as_echo "$as_me:$LINENO: error: OpenSSL is required." >&5
  5484. $as_echo "$as_me: error: OpenSSL is required." >&2;}
  5485. { (exit 1); exit 1; }; }
  5486. fi
  5487. unset cf_openssl_basedir
  5488. save_CXX="$CXX"
  5489. CXX="$CXX $SSL_INCLUDES"
  5490. save_LIBS="$LIBS"
  5491. LIBS="$LIBS $SSL_LIBS"
  5492. { $as_echo "$as_me:$LINENO: checking for OpenSSL version" >&5
  5493. $as_echo_n "checking for OpenSSL version... " >&6; }
  5494. cat >conftest.$ac_ext <<_ACEOF
  5495. /* confdefs.h. */
  5496. _ACEOF
  5497. cat confdefs.h >>conftest.$ac_ext
  5498. cat >>conftest.$ac_ext <<_ACEOF
  5499. /* end confdefs.h. */
  5500. #include <openssl/opensslv.h>
  5501. int
  5502. main ()
  5503. {
  5504. #if !defined(OPENSSL_VERSION_NUMBER)
  5505. #error "Missing openssl version"
  5506. #endif
  5507. #if (OPENSSL_VERSION_NUMBER < 0x0090800f)
  5508. #error "Old/Insecure OpenSSL version " OPENSSL_VERSION_TEXT
  5509. #endif
  5510. ;
  5511. return 0;
  5512. }
  5513. _ACEOF
  5514. rm -f conftest.$ac_objext
  5515. if { (ac_try="$ac_compile"
  5516. case "(($ac_try" in
  5517. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5518. *) ac_try_echo=$ac_try;;
  5519. esac
  5520. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5521. $as_echo "$ac_try_echo") >&5
  5522. (eval "$ac_compile") 2>conftest.er1
  5523. ac_status=$?
  5524. grep -v '^ *+' conftest.er1 >conftest.err
  5525. rm -f conftest.er1
  5526. cat conftest.err >&5
  5527. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5528. (exit $ac_status); } && {
  5529. test -z "$ac_cxx_werror_flag" ||
  5530. test ! -s conftest.err
  5531. } && test -s conftest.$ac_objext; then
  5532. { $as_echo "$as_me:$LINENO: result: OK" >&5
  5533. $as_echo "OK" >&6; }
  5534. else
  5535. $as_echo "$as_me: failed program was:" >&5
  5536. sed 's/^/| /' conftest.$ac_ext >&5
  5537. { $as_echo "$as_me:$LINENO: result: too old." >&5
  5538. $as_echo "too old." >&6; }
  5539. { { $as_echo "$as_me:$LINENO: error: OpenSSL version is too old." >&5
  5540. $as_echo "$as_me: error: OpenSSL version is too old." >&2;}
  5541. { (exit 1); exit 1; }; }
  5542. fi
  5543. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5544. CXX="$CXX $SSL_LIBS"
  5545. { $as_echo "$as_me:$LINENO: checking for AES_encrypt in -lcrypto" >&5
  5546. $as_echo_n "checking for AES_encrypt in -lcrypto... " >&6; }
  5547. if test "${ac_cv_lib_crypto_AES_encrypt+set}" = set; then
  5548. $as_echo_n "(cached) " >&6
  5549. else
  5550. ac_check_lib_save_LIBS=$LIBS
  5551. LIBS="-lcrypto $LIBS"
  5552. cat >conftest.$ac_ext <<_ACEOF
  5553. /* confdefs.h. */
  5554. _ACEOF
  5555. cat confdefs.h >>conftest.$ac_ext
  5556. cat >>conftest.$ac_ext <<_ACEOF
  5557. /* end confdefs.h. */
  5558. /* Override any GCC internal prototype to avoid an error.
  5559. Use char because int might match the return type of a GCC
  5560. builtin and then its argument prototype would still apply. */
  5561. #ifdef __cplusplus
  5562. extern "C"
  5563. #endif
  5564. char AES_encrypt ();
  5565. int
  5566. main ()
  5567. {
  5568. return AES_encrypt ();
  5569. ;
  5570. return 0;
  5571. }
  5572. _ACEOF
  5573. rm -f conftest.$ac_objext conftest$ac_exeext
  5574. if { (ac_try="$ac_link"
  5575. case "(($ac_try" in
  5576. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5577. *) ac_try_echo=$ac_try;;
  5578. esac
  5579. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5580. $as_echo "$ac_try_echo") >&5
  5581. (eval "$ac_link") 2>conftest.er1
  5582. ac_status=$?
  5583. grep -v '^ *+' conftest.er1 >conftest.err
  5584. rm -f conftest.er1
  5585. cat conftest.err >&5
  5586. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5587. (exit $ac_status); } && {
  5588. test -z "$ac_cxx_werror_flag" ||
  5589. test ! -s conftest.err
  5590. } && test -s conftest$ac_exeext && {
  5591. test "$cross_compiling" = yes ||
  5592. $as_test_x conftest$ac_exeext
  5593. }; then
  5594. ac_cv_lib_crypto_AES_encrypt=yes
  5595. else
  5596. $as_echo "$as_me: failed program was:" >&5
  5597. sed 's/^/| /' conftest.$ac_ext >&5
  5598. ac_cv_lib_crypto_AES_encrypt=no
  5599. fi
  5600. rm -rf conftest.dSYM
  5601. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5602. conftest$ac_exeext conftest.$ac_ext
  5603. LIBS=$ac_check_lib_save_LIBS
  5604. fi
  5605. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_AES_encrypt" >&5
  5606. $as_echo "$ac_cv_lib_crypto_AES_encrypt" >&6; }
  5607. if test "x$ac_cv_lib_crypto_AES_encrypt" = x""yes; then
  5608. SSL_LIBS="$SSL_LIBS -lcrypto"
  5609. else
  5610. { $as_echo "$as_me:$LINENO: result: not found." >&5
  5611. $as_echo "not found." >&6; }
  5612. { { $as_echo "$as_me:$LINENO: error: Libcrypto/openssl is required." >&5
  5613. $as_echo "$as_me: error: Libcrypto/openssl is required." >&2;}
  5614. { (exit 1); exit 1; }; }
  5615. fi
  5616. CXX="$save_CXX"
  5617. LIBS="$save_LIBS"
  5618. #AC_SUBST(ZLIB)dnl
  5619. # Checks for typedefs, structures, and compiler characteristics
  5620. { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
  5621. $as_echo_n "checking for pid_t... " >&6; }
  5622. if test "${ac_cv_type_pid_t+set}" = set; then
  5623. $as_echo_n "(cached) " >&6
  5624. else
  5625. ac_cv_type_pid_t=no
  5626. cat >conftest.$ac_ext <<_ACEOF
  5627. /* confdefs.h. */
  5628. _ACEOF
  5629. cat confdefs.h >>conftest.$ac_ext
  5630. cat >>conftest.$ac_ext <<_ACEOF
  5631. /* end confdefs.h. */
  5632. $ac_includes_default
  5633. int
  5634. main ()
  5635. {
  5636. if (sizeof (pid_t))
  5637. return 0;
  5638. ;
  5639. return 0;
  5640. }
  5641. _ACEOF
  5642. rm -f conftest.$ac_objext
  5643. if { (ac_try="$ac_compile"
  5644. case "(($ac_try" in
  5645. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5646. *) ac_try_echo=$ac_try;;
  5647. esac
  5648. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5649. $as_echo "$ac_try_echo") >&5
  5650. (eval "$ac_compile") 2>conftest.er1
  5651. ac_status=$?
  5652. grep -v '^ *+' conftest.er1 >conftest.err
  5653. rm -f conftest.er1
  5654. cat conftest.err >&5
  5655. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5656. (exit $ac_status); } && {
  5657. test -z "$ac_cxx_werror_flag" ||
  5658. test ! -s conftest.err
  5659. } && test -s conftest.$ac_objext; then
  5660. cat >conftest.$ac_ext <<_ACEOF
  5661. /* confdefs.h. */
  5662. _ACEOF
  5663. cat confdefs.h >>conftest.$ac_ext
  5664. cat >>conftest.$ac_ext <<_ACEOF
  5665. /* end confdefs.h. */
  5666. $ac_includes_default
  5667. int
  5668. main ()
  5669. {
  5670. if (sizeof ((pid_t)))
  5671. return 0;
  5672. ;
  5673. return 0;
  5674. }
  5675. _ACEOF
  5676. rm -f conftest.$ac_objext
  5677. if { (ac_try="$ac_compile"
  5678. case "(($ac_try" in
  5679. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5680. *) ac_try_echo=$ac_try;;
  5681. esac
  5682. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5683. $as_echo "$ac_try_echo") >&5
  5684. (eval "$ac_compile") 2>conftest.er1
  5685. ac_status=$?
  5686. grep -v '^ *+' conftest.er1 >conftest.err
  5687. rm -f conftest.er1
  5688. cat conftest.err >&5
  5689. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5690. (exit $ac_status); } && {
  5691. test -z "$ac_cxx_werror_flag" ||
  5692. test ! -s conftest.err
  5693. } && test -s conftest.$ac_objext; then
  5694. :
  5695. else
  5696. $as_echo "$as_me: failed program was:" >&5
  5697. sed 's/^/| /' conftest.$ac_ext >&5
  5698. ac_cv_type_pid_t=yes
  5699. fi
  5700. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5701. else
  5702. $as_echo "$as_me: failed program was:" >&5
  5703. sed 's/^/| /' conftest.$ac_ext >&5
  5704. fi
  5705. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5706. fi
  5707. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
  5708. $as_echo "$ac_cv_type_pid_t" >&6; }
  5709. if test "x$ac_cv_type_pid_t" = x""yes; then
  5710. :
  5711. else
  5712. cat >>confdefs.h <<_ACEOF
  5713. #define pid_t int
  5714. _ACEOF
  5715. fi
  5716. { $as_echo "$as_me:$LINENO: checking for size_t" >&5
  5717. $as_echo_n "checking for size_t... " >&6; }
  5718. if test "${ac_cv_type_size_t+set}" = set; then
  5719. $as_echo_n "(cached) " >&6
  5720. else
  5721. ac_cv_type_size_t=no
  5722. cat >conftest.$ac_ext <<_ACEOF
  5723. /* confdefs.h. */
  5724. _ACEOF
  5725. cat confdefs.h >>conftest.$ac_ext
  5726. cat >>conftest.$ac_ext <<_ACEOF
  5727. /* end confdefs.h. */
  5728. $ac_includes_default
  5729. int
  5730. main ()
  5731. {
  5732. if (sizeof (size_t))
  5733. return 0;
  5734. ;
  5735. return 0;
  5736. }
  5737. _ACEOF
  5738. rm -f conftest.$ac_objext
  5739. if { (ac_try="$ac_compile"
  5740. case "(($ac_try" in
  5741. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5742. *) ac_try_echo=$ac_try;;
  5743. esac
  5744. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5745. $as_echo "$ac_try_echo") >&5
  5746. (eval "$ac_compile") 2>conftest.er1
  5747. ac_status=$?
  5748. grep -v '^ *+' conftest.er1 >conftest.err
  5749. rm -f conftest.er1
  5750. cat conftest.err >&5
  5751. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5752. (exit $ac_status); } && {
  5753. test -z "$ac_cxx_werror_flag" ||
  5754. test ! -s conftest.err
  5755. } && test -s conftest.$ac_objext; then
  5756. cat >conftest.$ac_ext <<_ACEOF
  5757. /* confdefs.h. */
  5758. _ACEOF
  5759. cat confdefs.h >>conftest.$ac_ext
  5760. cat >>conftest.$ac_ext <<_ACEOF
  5761. /* end confdefs.h. */
  5762. $ac_includes_default
  5763. int
  5764. main ()
  5765. {
  5766. if (sizeof ((size_t)))
  5767. return 0;
  5768. ;
  5769. return 0;
  5770. }
  5771. _ACEOF
  5772. rm -f conftest.$ac_objext
  5773. if { (ac_try="$ac_compile"
  5774. case "(($ac_try" in
  5775. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5776. *) ac_try_echo=$ac_try;;
  5777. esac
  5778. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5779. $as_echo "$ac_try_echo") >&5
  5780. (eval "$ac_compile") 2>conftest.er1
  5781. ac_status=$?
  5782. grep -v '^ *+' conftest.er1 >conftest.err
  5783. rm -f conftest.er1
  5784. cat conftest.err >&5
  5785. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5786. (exit $ac_status); } && {
  5787. test -z "$ac_cxx_werror_flag" ||
  5788. test ! -s conftest.err
  5789. } && test -s conftest.$ac_objext; then
  5790. :
  5791. else
  5792. $as_echo "$as_me: failed program was:" >&5
  5793. sed 's/^/| /' conftest.$ac_ext >&5
  5794. ac_cv_type_size_t=yes
  5795. fi
  5796. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5797. else
  5798. $as_echo "$as_me: failed program was:" >&5
  5799. sed 's/^/| /' conftest.$ac_ext >&5
  5800. fi
  5801. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5802. fi
  5803. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  5804. $as_echo "$ac_cv_type_size_t" >&6; }
  5805. if test "x$ac_cv_type_size_t" = x""yes; then
  5806. :
  5807. else
  5808. cat >>confdefs.h <<_ACEOF
  5809. #define size_t unsigned int
  5810. _ACEOF
  5811. fi
  5812. { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
  5813. $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  5814. if test "${ac_cv_type_uid_t+set}" = set; then
  5815. $as_echo_n "(cached) " >&6
  5816. else
  5817. cat >conftest.$ac_ext <<_ACEOF
  5818. /* confdefs.h. */
  5819. _ACEOF
  5820. cat confdefs.h >>conftest.$ac_ext
  5821. cat >>conftest.$ac_ext <<_ACEOF
  5822. /* end confdefs.h. */
  5823. #include <sys/types.h>
  5824. _ACEOF
  5825. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5826. $EGREP "uid_t" >/dev/null 2>&1; then
  5827. ac_cv_type_uid_t=yes
  5828. else
  5829. ac_cv_type_uid_t=no
  5830. fi
  5831. rm -f conftest*
  5832. fi
  5833. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
  5834. $as_echo "$ac_cv_type_uid_t" >&6; }
  5835. if test $ac_cv_type_uid_t = no; then
  5836. cat >>confdefs.h <<\_ACEOF
  5837. #define uid_t int
  5838. _ACEOF
  5839. cat >>confdefs.h <<\_ACEOF
  5840. #define gid_t int
  5841. _ACEOF
  5842. fi
  5843. #AC_C_CONST
  5844. { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
  5845. $as_echo_n "checking for working volatile... " >&6; }
  5846. if test "${ac_cv_c_volatile+set}" = set; then
  5847. $as_echo_n "(cached) " >&6
  5848. else
  5849. cat >conftest.$ac_ext <<_ACEOF
  5850. /* confdefs.h. */
  5851. _ACEOF
  5852. cat confdefs.h >>conftest.$ac_ext
  5853. cat >>conftest.$ac_ext <<_ACEOF
  5854. /* end confdefs.h. */
  5855. int
  5856. main ()
  5857. {
  5858. volatile int x;
  5859. int * volatile y = (int *) 0;
  5860. return !x && !y;
  5861. ;
  5862. return 0;
  5863. }
  5864. _ACEOF
  5865. rm -f conftest.$ac_objext
  5866. if { (ac_try="$ac_compile"
  5867. case "(($ac_try" in
  5868. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5869. *) ac_try_echo=$ac_try;;
  5870. esac
  5871. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5872. $as_echo "$ac_try_echo") >&5
  5873. (eval "$ac_compile") 2>conftest.er1
  5874. ac_status=$?
  5875. grep -v '^ *+' conftest.er1 >conftest.err
  5876. rm -f conftest.er1
  5877. cat conftest.err >&5
  5878. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5879. (exit $ac_status); } && {
  5880. test -z "$ac_cxx_werror_flag" ||
  5881. test ! -s conftest.err
  5882. } && test -s conftest.$ac_objext; then
  5883. ac_cv_c_volatile=yes
  5884. else
  5885. $as_echo "$as_me: failed program was:" >&5
  5886. sed 's/^/| /' conftest.$ac_ext >&5
  5887. ac_cv_c_volatile=no
  5888. fi
  5889. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5890. fi
  5891. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  5892. $as_echo "$ac_cv_c_volatile" >&6; }
  5893. if test $ac_cv_c_volatile = no; then
  5894. cat >>confdefs.h <<\_ACEOF
  5895. #define volatile /**/
  5896. _ACEOF
  5897. fi
  5898. { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  5899. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  5900. if test "${ac_cv_c_bigendian+set}" = set; then
  5901. $as_echo_n "(cached) " >&6
  5902. else
  5903. ac_cv_c_bigendian=unknown
  5904. # See if we're dealing with a universal compiler.
  5905. cat >conftest.$ac_ext <<_ACEOF
  5906. /* confdefs.h. */
  5907. _ACEOF
  5908. cat confdefs.h >>conftest.$ac_ext
  5909. cat >>conftest.$ac_ext <<_ACEOF
  5910. /* end confdefs.h. */
  5911. #ifndef __APPLE_CC__
  5912. not a universal capable compiler
  5913. #endif
  5914. typedef int dummy;
  5915. _ACEOF
  5916. rm -f conftest.$ac_objext
  5917. if { (ac_try="$ac_compile"
  5918. case "(($ac_try" in
  5919. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5920. *) ac_try_echo=$ac_try;;
  5921. esac
  5922. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5923. $as_echo "$ac_try_echo") >&5
  5924. (eval "$ac_compile") 2>conftest.er1
  5925. ac_status=$?
  5926. grep -v '^ *+' conftest.er1 >conftest.err
  5927. rm -f conftest.er1
  5928. cat conftest.err >&5
  5929. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5930. (exit $ac_status); } && {
  5931. test -z "$ac_cxx_werror_flag" ||
  5932. test ! -s conftest.err
  5933. } && test -s conftest.$ac_objext; then
  5934. # Check for potential -arch flags. It is not universal unless
  5935. # there are some -arch flags. Note that *ppc* also matches
  5936. # ppc64. This check is also rather less than ideal.
  5937. case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
  5938. *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
  5939. esac
  5940. else
  5941. $as_echo "$as_me: failed program was:" >&5
  5942. sed 's/^/| /' conftest.$ac_ext >&5
  5943. fi
  5944. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5945. if test $ac_cv_c_bigendian = unknown; then
  5946. # See if sys/param.h defines the BYTE_ORDER macro.
  5947. cat >conftest.$ac_ext <<_ACEOF
  5948. /* confdefs.h. */
  5949. _ACEOF
  5950. cat confdefs.h >>conftest.$ac_ext
  5951. cat >>conftest.$ac_ext <<_ACEOF
  5952. /* end confdefs.h. */
  5953. #include <sys/types.h>
  5954. #include <sys/param.h>
  5955. int
  5956. main ()
  5957. {
  5958. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  5959. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  5960. && LITTLE_ENDIAN)
  5961. bogus endian macros
  5962. #endif
  5963. ;
  5964. return 0;
  5965. }
  5966. _ACEOF
  5967. rm -f conftest.$ac_objext
  5968. if { (ac_try="$ac_compile"
  5969. case "(($ac_try" in
  5970. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5971. *) ac_try_echo=$ac_try;;
  5972. esac
  5973. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5974. $as_echo "$ac_try_echo") >&5
  5975. (eval "$ac_compile") 2>conftest.er1
  5976. ac_status=$?
  5977. grep -v '^ *+' conftest.er1 >conftest.err
  5978. rm -f conftest.er1
  5979. cat conftest.err >&5
  5980. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5981. (exit $ac_status); } && {
  5982. test -z "$ac_cxx_werror_flag" ||
  5983. test ! -s conftest.err
  5984. } && test -s conftest.$ac_objext; then
  5985. # It does; now see whether it defined to BIG_ENDIAN or not.
  5986. cat >conftest.$ac_ext <<_ACEOF
  5987. /* confdefs.h. */
  5988. _ACEOF
  5989. cat confdefs.h >>conftest.$ac_ext
  5990. cat >>conftest.$ac_ext <<_ACEOF
  5991. /* end confdefs.h. */
  5992. #include <sys/types.h>
  5993. #include <sys/param.h>
  5994. int
  5995. main ()
  5996. {
  5997. #if BYTE_ORDER != BIG_ENDIAN
  5998. not big endian
  5999. #endif
  6000. ;
  6001. return 0;
  6002. }
  6003. _ACEOF
  6004. rm -f conftest.$ac_objext
  6005. if { (ac_try="$ac_compile"
  6006. case "(($ac_try" in
  6007. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6008. *) ac_try_echo=$ac_try;;
  6009. esac
  6010. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6011. $as_echo "$ac_try_echo") >&5
  6012. (eval "$ac_compile") 2>conftest.er1
  6013. ac_status=$?
  6014. grep -v '^ *+' conftest.er1 >conftest.err
  6015. rm -f conftest.er1
  6016. cat conftest.err >&5
  6017. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6018. (exit $ac_status); } && {
  6019. test -z "$ac_cxx_werror_flag" ||
  6020. test ! -s conftest.err
  6021. } && test -s conftest.$ac_objext; then
  6022. ac_cv_c_bigendian=yes
  6023. else
  6024. $as_echo "$as_me: failed program was:" >&5
  6025. sed 's/^/| /' conftest.$ac_ext >&5
  6026. ac_cv_c_bigendian=no
  6027. fi
  6028. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6029. else
  6030. $as_echo "$as_me: failed program was:" >&5
  6031. sed 's/^/| /' conftest.$ac_ext >&5
  6032. fi
  6033. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6034. fi
  6035. if test $ac_cv_c_bigendian = unknown; then
  6036. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  6037. cat >conftest.$ac_ext <<_ACEOF
  6038. /* confdefs.h. */
  6039. _ACEOF
  6040. cat confdefs.h >>conftest.$ac_ext
  6041. cat >>conftest.$ac_ext <<_ACEOF
  6042. /* end confdefs.h. */
  6043. #include <limits.h>
  6044. int
  6045. main ()
  6046. {
  6047. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  6048. bogus endian macros
  6049. #endif
  6050. ;
  6051. return 0;
  6052. }
  6053. _ACEOF
  6054. rm -f conftest.$ac_objext
  6055. if { (ac_try="$ac_compile"
  6056. case "(($ac_try" in
  6057. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6058. *) ac_try_echo=$ac_try;;
  6059. esac
  6060. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6061. $as_echo "$ac_try_echo") >&5
  6062. (eval "$ac_compile") 2>conftest.er1
  6063. ac_status=$?
  6064. grep -v '^ *+' conftest.er1 >conftest.err
  6065. rm -f conftest.er1
  6066. cat conftest.err >&5
  6067. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6068. (exit $ac_status); } && {
  6069. test -z "$ac_cxx_werror_flag" ||
  6070. test ! -s conftest.err
  6071. } && test -s conftest.$ac_objext; then
  6072. # It does; now see whether it defined to _BIG_ENDIAN or not.
  6073. cat >conftest.$ac_ext <<_ACEOF
  6074. /* confdefs.h. */
  6075. _ACEOF
  6076. cat confdefs.h >>conftest.$ac_ext
  6077. cat >>conftest.$ac_ext <<_ACEOF
  6078. /* end confdefs.h. */
  6079. #include <limits.h>
  6080. int
  6081. main ()
  6082. {
  6083. #ifndef _BIG_ENDIAN
  6084. not big endian
  6085. #endif
  6086. ;
  6087. return 0;
  6088. }
  6089. _ACEOF
  6090. rm -f conftest.$ac_objext
  6091. if { (ac_try="$ac_compile"
  6092. case "(($ac_try" in
  6093. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6094. *) ac_try_echo=$ac_try;;
  6095. esac
  6096. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6097. $as_echo "$ac_try_echo") >&5
  6098. (eval "$ac_compile") 2>conftest.er1
  6099. ac_status=$?
  6100. grep -v '^ *+' conftest.er1 >conftest.err
  6101. rm -f conftest.er1
  6102. cat conftest.err >&5
  6103. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6104. (exit $ac_status); } && {
  6105. test -z "$ac_cxx_werror_flag" ||
  6106. test ! -s conftest.err
  6107. } && test -s conftest.$ac_objext; then
  6108. ac_cv_c_bigendian=yes
  6109. else
  6110. $as_echo "$as_me: failed program was:" >&5
  6111. sed 's/^/| /' conftest.$ac_ext >&5
  6112. ac_cv_c_bigendian=no
  6113. fi
  6114. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6115. else
  6116. $as_echo "$as_me: failed program was:" >&5
  6117. sed 's/^/| /' conftest.$ac_ext >&5
  6118. fi
  6119. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6120. fi
  6121. if test $ac_cv_c_bigendian = unknown; then
  6122. # Compile a test program.
  6123. if test "$cross_compiling" = yes; then
  6124. # Try to guess by grepping values from an object file.
  6125. cat >conftest.$ac_ext <<_ACEOF
  6126. /* confdefs.h. */
  6127. _ACEOF
  6128. cat confdefs.h >>conftest.$ac_ext
  6129. cat >>conftest.$ac_ext <<_ACEOF
  6130. /* end confdefs.h. */
  6131. short int ascii_mm[] =
  6132. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  6133. short int ascii_ii[] =
  6134. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  6135. int use_ascii (int i) {
  6136. return ascii_mm[i] + ascii_ii[i];
  6137. }
  6138. short int ebcdic_ii[] =
  6139. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  6140. short int ebcdic_mm[] =
  6141. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  6142. int use_ebcdic (int i) {
  6143. return ebcdic_mm[i] + ebcdic_ii[i];
  6144. }
  6145. extern int foo;
  6146. int
  6147. main ()
  6148. {
  6149. return use_ascii (foo) == use_ebcdic (foo);
  6150. ;
  6151. return 0;
  6152. }
  6153. _ACEOF
  6154. rm -f conftest.$ac_objext
  6155. if { (ac_try="$ac_compile"
  6156. case "(($ac_try" in
  6157. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6158. *) ac_try_echo=$ac_try;;
  6159. esac
  6160. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6161. $as_echo "$ac_try_echo") >&5
  6162. (eval "$ac_compile") 2>conftest.er1
  6163. ac_status=$?
  6164. grep -v '^ *+' conftest.er1 >conftest.err
  6165. rm -f conftest.er1
  6166. cat conftest.err >&5
  6167. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6168. (exit $ac_status); } && {
  6169. test -z "$ac_cxx_werror_flag" ||
  6170. test ! -s conftest.err
  6171. } && test -s conftest.$ac_objext; then
  6172. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  6173. ac_cv_c_bigendian=yes
  6174. fi
  6175. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  6176. if test "$ac_cv_c_bigendian" = unknown; then
  6177. ac_cv_c_bigendian=no
  6178. else
  6179. # finding both strings is unlikely to happen, but who knows?
  6180. ac_cv_c_bigendian=unknown
  6181. fi
  6182. fi
  6183. else
  6184. $as_echo "$as_me: failed program was:" >&5
  6185. sed 's/^/| /' conftest.$ac_ext >&5
  6186. fi
  6187. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6188. else
  6189. cat >conftest.$ac_ext <<_ACEOF
  6190. /* confdefs.h. */
  6191. _ACEOF
  6192. cat confdefs.h >>conftest.$ac_ext
  6193. cat >>conftest.$ac_ext <<_ACEOF
  6194. /* end confdefs.h. */
  6195. $ac_includes_default
  6196. int
  6197. main ()
  6198. {
  6199. /* Are we little or big endian? From Harbison&Steele. */
  6200. union
  6201. {
  6202. long int l;
  6203. char c[sizeof (long int)];
  6204. } u;
  6205. u.l = 1;
  6206. return u.c[sizeof (long int) - 1] == 1;
  6207. ;
  6208. return 0;
  6209. }
  6210. _ACEOF
  6211. rm -f conftest$ac_exeext
  6212. if { (ac_try="$ac_link"
  6213. case "(($ac_try" in
  6214. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6215. *) ac_try_echo=$ac_try;;
  6216. esac
  6217. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6218. $as_echo "$ac_try_echo") >&5
  6219. (eval "$ac_link") 2>&5
  6220. ac_status=$?
  6221. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6222. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6223. { (case "(($ac_try" in
  6224. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6225. *) ac_try_echo=$ac_try;;
  6226. esac
  6227. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6228. $as_echo "$ac_try_echo") >&5
  6229. (eval "$ac_try") 2>&5
  6230. ac_status=$?
  6231. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6232. (exit $ac_status); }; }; then
  6233. ac_cv_c_bigendian=no
  6234. else
  6235. $as_echo "$as_me: program exited with status $ac_status" >&5
  6236. $as_echo "$as_me: failed program was:" >&5
  6237. sed 's/^/| /' conftest.$ac_ext >&5
  6238. ( exit $ac_status )
  6239. ac_cv_c_bigendian=yes
  6240. fi
  6241. rm -rf conftest.dSYM
  6242. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6243. fi
  6244. fi
  6245. fi
  6246. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  6247. $as_echo "$ac_cv_c_bigendian" >&6; }
  6248. case $ac_cv_c_bigendian in #(
  6249. yes)
  6250. cat >>confdefs.h <<\_ACEOF
  6251. #define B_ENDIAN 1
  6252. _ACEOF
  6253. ;; #(
  6254. no)
  6255. cat >>confdefs.h <<\_ACEOF
  6256. #define L_ENDIAN 1
  6257. _ACEOF
  6258. ;; #(
  6259. universal)
  6260. cat >>confdefs.h <<\_ACEOF
  6261. #define AC_APPLE_UNIVERSAL_BUILD 1
  6262. _ACEOF
  6263. ;; #(
  6264. *)
  6265. { { $as_echo "$as_me:$LINENO: error: unknown endianness
  6266. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  6267. $as_echo "$as_me: error: unknown endianness
  6268. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  6269. { (exit 1); exit 1; }; } ;;
  6270. esac
  6271. #AC_C_INLINE
  6272. { $as_echo "$as_me:$LINENO: checking whether char is unsigned" >&5
  6273. $as_echo_n "checking whether char is unsigned... " >&6; }
  6274. if test "${ac_cv_c_char_unsigned+set}" = set; then
  6275. $as_echo_n "(cached) " >&6
  6276. else
  6277. cat >conftest.$ac_ext <<_ACEOF
  6278. /* confdefs.h. */
  6279. _ACEOF
  6280. cat confdefs.h >>conftest.$ac_ext
  6281. cat >>conftest.$ac_ext <<_ACEOF
  6282. /* end confdefs.h. */
  6283. $ac_includes_default
  6284. int
  6285. main ()
  6286. {
  6287. static int test_array [1 - 2 * !(((char) -1) < 0)];
  6288. test_array [0] = 0
  6289. ;
  6290. return 0;
  6291. }
  6292. _ACEOF
  6293. rm -f conftest.$ac_objext
  6294. if { (ac_try="$ac_compile"
  6295. case "(($ac_try" in
  6296. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6297. *) ac_try_echo=$ac_try;;
  6298. esac
  6299. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6300. $as_echo "$ac_try_echo") >&5
  6301. (eval "$ac_compile") 2>conftest.er1
  6302. ac_status=$?
  6303. grep -v '^ *+' conftest.er1 >conftest.err
  6304. rm -f conftest.er1
  6305. cat conftest.err >&5
  6306. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6307. (exit $ac_status); } && {
  6308. test -z "$ac_cxx_werror_flag" ||
  6309. test ! -s conftest.err
  6310. } && test -s conftest.$ac_objext; then
  6311. ac_cv_c_char_unsigned=no
  6312. else
  6313. $as_echo "$as_me: failed program was:" >&5
  6314. sed 's/^/| /' conftest.$ac_ext >&5
  6315. ac_cv_c_char_unsigned=yes
  6316. fi
  6317. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6318. fi
  6319. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
  6320. $as_echo "$ac_cv_c_char_unsigned" >&6; }
  6321. if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
  6322. cat >>confdefs.h <<\_ACEOF
  6323. #define __CHAR_UNSIGNED__ 1
  6324. _ACEOF
  6325. fi
  6326. #AC_C_STRINGIZE
  6327. #AC_C_PROTOTYPES
  6328. #checkpoint
  6329. cat >confcache <<\_ACEOF
  6330. # This file is a shell script that caches the results of configure
  6331. # tests run on this system so they can be shared between configure
  6332. # scripts and configure runs, see configure's option --config-cache.
  6333. # It is not useful on other systems. If it contains results you don't
  6334. # want to keep, you may remove or edit it.
  6335. #
  6336. # config.status only pays attention to the cache file if you give it
  6337. # the --recheck option to rerun configure.
  6338. #
  6339. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  6340. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  6341. # following values.
  6342. _ACEOF
  6343. # The following way of writing the cache mishandles newlines in values,
  6344. # but we know of no workaround that is simple, portable, and efficient.
  6345. # So, we kill variables containing newlines.
  6346. # Ultrix sh set writes to stderr and can't be redirected directly,
  6347. # and sets the high bit in the cache file unless we assign to the vars.
  6348. (
  6349. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  6350. eval ac_val=\$$ac_var
  6351. case $ac_val in #(
  6352. *${as_nl}*)
  6353. case $ac_var in #(
  6354. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  6355. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  6356. esac
  6357. case $ac_var in #(
  6358. _ | IFS | as_nl) ;; #(
  6359. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  6360. *) $as_unset $ac_var ;;
  6361. esac ;;
  6362. esac
  6363. done
  6364. (set) 2>&1 |
  6365. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  6366. *${as_nl}ac_space=\ *)
  6367. # `set' does not quote correctly, so add quotes (double-quote
  6368. # substitution turns \\\\ into \\, and sed turns \\ into \).
  6369. sed -n \
  6370. "s/'/'\\\\''/g;
  6371. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  6372. ;; #(
  6373. *)
  6374. # `set' quotes correctly as required by POSIX, so do not add quotes.
  6375. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  6376. ;;
  6377. esac |
  6378. sort
  6379. ) |
  6380. sed '
  6381. /^ac_cv_env_/b end
  6382. t clear
  6383. :clear
  6384. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  6385. t end
  6386. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  6387. :end' >>confcache
  6388. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  6389. if test -w "$cache_file"; then
  6390. test "x$cache_file" != "x/dev/null" &&
  6391. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  6392. $as_echo "$as_me: updating cache $cache_file" >&6;}
  6393. cat confcache >$cache_file
  6394. else
  6395. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  6396. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  6397. fi
  6398. fi
  6399. rm -f confcache
  6400. # The cast to long int works around a bug in the HP C Compiler
  6401. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6402. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6403. # This bug is HP SR number 8606223364.
  6404. { $as_echo "$as_me:$LINENO: checking size of short" >&5
  6405. $as_echo_n "checking size of short... " >&6; }
  6406. if test "${ac_cv_sizeof_short+set}" = set; then
  6407. $as_echo_n "(cached) " >&6
  6408. else
  6409. if test "$cross_compiling" = yes; then
  6410. # Depending upon the size, compute the lo and hi bounds.
  6411. cat >conftest.$ac_ext <<_ACEOF
  6412. /* confdefs.h. */
  6413. _ACEOF
  6414. cat confdefs.h >>conftest.$ac_ext
  6415. cat >>conftest.$ac_ext <<_ACEOF
  6416. /* end confdefs.h. */
  6417. $ac_includes_default
  6418. int
  6419. main ()
  6420. {
  6421. static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)];
  6422. test_array [0] = 0
  6423. ;
  6424. return 0;
  6425. }
  6426. _ACEOF
  6427. rm -f conftest.$ac_objext
  6428. if { (ac_try="$ac_compile"
  6429. case "(($ac_try" in
  6430. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6431. *) ac_try_echo=$ac_try;;
  6432. esac
  6433. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6434. $as_echo "$ac_try_echo") >&5
  6435. (eval "$ac_compile") 2>conftest.er1
  6436. ac_status=$?
  6437. grep -v '^ *+' conftest.er1 >conftest.err
  6438. rm -f conftest.er1
  6439. cat conftest.err >&5
  6440. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6441. (exit $ac_status); } && {
  6442. test -z "$ac_cxx_werror_flag" ||
  6443. test ! -s conftest.err
  6444. } && test -s conftest.$ac_objext; then
  6445. ac_lo=0 ac_mid=0
  6446. while :; do
  6447. cat >conftest.$ac_ext <<_ACEOF
  6448. /* confdefs.h. */
  6449. _ACEOF
  6450. cat confdefs.h >>conftest.$ac_ext
  6451. cat >>conftest.$ac_ext <<_ACEOF
  6452. /* end confdefs.h. */
  6453. $ac_includes_default
  6454. int
  6455. main ()
  6456. {
  6457. static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
  6458. test_array [0] = 0
  6459. ;
  6460. return 0;
  6461. }
  6462. _ACEOF
  6463. rm -f conftest.$ac_objext
  6464. if { (ac_try="$ac_compile"
  6465. case "(($ac_try" in
  6466. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6467. *) ac_try_echo=$ac_try;;
  6468. esac
  6469. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6470. $as_echo "$ac_try_echo") >&5
  6471. (eval "$ac_compile") 2>conftest.er1
  6472. ac_status=$?
  6473. grep -v '^ *+' conftest.er1 >conftest.err
  6474. rm -f conftest.er1
  6475. cat conftest.err >&5
  6476. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6477. (exit $ac_status); } && {
  6478. test -z "$ac_cxx_werror_flag" ||
  6479. test ! -s conftest.err
  6480. } && test -s conftest.$ac_objext; then
  6481. ac_hi=$ac_mid; break
  6482. else
  6483. $as_echo "$as_me: failed program was:" >&5
  6484. sed 's/^/| /' conftest.$ac_ext >&5
  6485. ac_lo=`expr $ac_mid + 1`
  6486. if test $ac_lo -le $ac_mid; then
  6487. ac_lo= ac_hi=
  6488. break
  6489. fi
  6490. ac_mid=`expr 2 '*' $ac_mid + 1`
  6491. fi
  6492. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6493. done
  6494. else
  6495. $as_echo "$as_me: failed program was:" >&5
  6496. sed 's/^/| /' conftest.$ac_ext >&5
  6497. cat >conftest.$ac_ext <<_ACEOF
  6498. /* confdefs.h. */
  6499. _ACEOF
  6500. cat confdefs.h >>conftest.$ac_ext
  6501. cat >>conftest.$ac_ext <<_ACEOF
  6502. /* end confdefs.h. */
  6503. $ac_includes_default
  6504. int
  6505. main ()
  6506. {
  6507. static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)];
  6508. test_array [0] = 0
  6509. ;
  6510. return 0;
  6511. }
  6512. _ACEOF
  6513. rm -f conftest.$ac_objext
  6514. if { (ac_try="$ac_compile"
  6515. case "(($ac_try" in
  6516. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6517. *) ac_try_echo=$ac_try;;
  6518. esac
  6519. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6520. $as_echo "$ac_try_echo") >&5
  6521. (eval "$ac_compile") 2>conftest.er1
  6522. ac_status=$?
  6523. grep -v '^ *+' conftest.er1 >conftest.err
  6524. rm -f conftest.er1
  6525. cat conftest.err >&5
  6526. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6527. (exit $ac_status); } && {
  6528. test -z "$ac_cxx_werror_flag" ||
  6529. test ! -s conftest.err
  6530. } && test -s conftest.$ac_objext; then
  6531. ac_hi=-1 ac_mid=-1
  6532. while :; do
  6533. cat >conftest.$ac_ext <<_ACEOF
  6534. /* confdefs.h. */
  6535. _ACEOF
  6536. cat confdefs.h >>conftest.$ac_ext
  6537. cat >>conftest.$ac_ext <<_ACEOF
  6538. /* end confdefs.h. */
  6539. $ac_includes_default
  6540. int
  6541. main ()
  6542. {
  6543. static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)];
  6544. test_array [0] = 0
  6545. ;
  6546. return 0;
  6547. }
  6548. _ACEOF
  6549. rm -f conftest.$ac_objext
  6550. if { (ac_try="$ac_compile"
  6551. case "(($ac_try" in
  6552. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6553. *) ac_try_echo=$ac_try;;
  6554. esac
  6555. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6556. $as_echo "$ac_try_echo") >&5
  6557. (eval "$ac_compile") 2>conftest.er1
  6558. ac_status=$?
  6559. grep -v '^ *+' conftest.er1 >conftest.err
  6560. rm -f conftest.er1
  6561. cat conftest.err >&5
  6562. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6563. (exit $ac_status); } && {
  6564. test -z "$ac_cxx_werror_flag" ||
  6565. test ! -s conftest.err
  6566. } && test -s conftest.$ac_objext; then
  6567. ac_lo=$ac_mid; break
  6568. else
  6569. $as_echo "$as_me: failed program was:" >&5
  6570. sed 's/^/| /' conftest.$ac_ext >&5
  6571. ac_hi=`expr '(' $ac_mid ')' - 1`
  6572. if test $ac_mid -le $ac_hi; then
  6573. ac_lo= ac_hi=
  6574. break
  6575. fi
  6576. ac_mid=`expr 2 '*' $ac_mid`
  6577. fi
  6578. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6579. done
  6580. else
  6581. $as_echo "$as_me: failed program was:" >&5
  6582. sed 's/^/| /' conftest.$ac_ext >&5
  6583. ac_lo= ac_hi=
  6584. fi
  6585. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6586. fi
  6587. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6588. # Binary search between lo and hi bounds.
  6589. while test "x$ac_lo" != "x$ac_hi"; do
  6590. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6591. cat >conftest.$ac_ext <<_ACEOF
  6592. /* confdefs.h. */
  6593. _ACEOF
  6594. cat confdefs.h >>conftest.$ac_ext
  6595. cat >>conftest.$ac_ext <<_ACEOF
  6596. /* end confdefs.h. */
  6597. $ac_includes_default
  6598. int
  6599. main ()
  6600. {
  6601. static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
  6602. test_array [0] = 0
  6603. ;
  6604. return 0;
  6605. }
  6606. _ACEOF
  6607. rm -f conftest.$ac_objext
  6608. if { (ac_try="$ac_compile"
  6609. case "(($ac_try" in
  6610. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6611. *) ac_try_echo=$ac_try;;
  6612. esac
  6613. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6614. $as_echo "$ac_try_echo") >&5
  6615. (eval "$ac_compile") 2>conftest.er1
  6616. ac_status=$?
  6617. grep -v '^ *+' conftest.er1 >conftest.err
  6618. rm -f conftest.er1
  6619. cat conftest.err >&5
  6620. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6621. (exit $ac_status); } && {
  6622. test -z "$ac_cxx_werror_flag" ||
  6623. test ! -s conftest.err
  6624. } && test -s conftest.$ac_objext; then
  6625. ac_hi=$ac_mid
  6626. else
  6627. $as_echo "$as_me: failed program was:" >&5
  6628. sed 's/^/| /' conftest.$ac_ext >&5
  6629. ac_lo=`expr '(' $ac_mid ')' + 1`
  6630. fi
  6631. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6632. done
  6633. case $ac_lo in
  6634. ?*) ac_cv_sizeof_short=$ac_lo;;
  6635. '') if test "$ac_cv_type_short" = yes; then
  6636. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  6637. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6638. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
  6639. See \`config.log' for more details." >&5
  6640. $as_echo "$as_me: error: cannot compute sizeof (short)
  6641. See \`config.log' for more details." >&2;}
  6642. { (exit 77); exit 77; }; }; }
  6643. else
  6644. ac_cv_sizeof_short=0
  6645. fi ;;
  6646. esac
  6647. else
  6648. cat >conftest.$ac_ext <<_ACEOF
  6649. /* confdefs.h. */
  6650. _ACEOF
  6651. cat confdefs.h >>conftest.$ac_ext
  6652. cat >>conftest.$ac_ext <<_ACEOF
  6653. /* end confdefs.h. */
  6654. $ac_includes_default
  6655. static long int longval () { return (long int) (sizeof (short)); }
  6656. static unsigned long int ulongval () { return (long int) (sizeof (short)); }
  6657. #include <stdio.h>
  6658. #include <stdlib.h>
  6659. int
  6660. main ()
  6661. {
  6662. FILE *f = fopen ("conftest.val", "w");
  6663. if (! f)
  6664. return 1;
  6665. if (((long int) (sizeof (short))) < 0)
  6666. {
  6667. long int i = longval ();
  6668. if (i != ((long int) (sizeof (short))))
  6669. return 1;
  6670. fprintf (f, "%ld", i);
  6671. }
  6672. else
  6673. {
  6674. unsigned long int i = ulongval ();
  6675. if (i != ((long int) (sizeof (short))))
  6676. return 1;
  6677. fprintf (f, "%lu", i);
  6678. }
  6679. /* Do not output a trailing newline, as this causes \r\n confusion
  6680. on some platforms. */
  6681. return ferror (f) || fclose (f) != 0;
  6682. ;
  6683. return 0;
  6684. }
  6685. _ACEOF
  6686. rm -f conftest$ac_exeext
  6687. if { (ac_try="$ac_link"
  6688. case "(($ac_try" in
  6689. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6690. *) ac_try_echo=$ac_try;;
  6691. esac
  6692. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6693. $as_echo "$ac_try_echo") >&5
  6694. (eval "$ac_link") 2>&5
  6695. ac_status=$?
  6696. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6697. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6698. { (case "(($ac_try" in
  6699. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6700. *) ac_try_echo=$ac_try;;
  6701. esac
  6702. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6703. $as_echo "$ac_try_echo") >&5
  6704. (eval "$ac_try") 2>&5
  6705. ac_status=$?
  6706. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6707. (exit $ac_status); }; }; then
  6708. ac_cv_sizeof_short=`cat conftest.val`
  6709. else
  6710. $as_echo "$as_me: program exited with status $ac_status" >&5
  6711. $as_echo "$as_me: failed program was:" >&5
  6712. sed 's/^/| /' conftest.$ac_ext >&5
  6713. ( exit $ac_status )
  6714. if test "$ac_cv_type_short" = yes; then
  6715. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  6716. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6717. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
  6718. See \`config.log' for more details." >&5
  6719. $as_echo "$as_me: error: cannot compute sizeof (short)
  6720. See \`config.log' for more details." >&2;}
  6721. { (exit 77); exit 77; }; }; }
  6722. else
  6723. ac_cv_sizeof_short=0
  6724. fi
  6725. fi
  6726. rm -rf conftest.dSYM
  6727. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6728. fi
  6729. rm -f conftest.val
  6730. fi
  6731. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
  6732. $as_echo "$ac_cv_sizeof_short" >&6; }
  6733. cat >>confdefs.h <<_ACEOF
  6734. #define SIZEOF_SHORT $ac_cv_sizeof_short
  6735. _ACEOF
  6736. # The cast to long int works around a bug in the HP C Compiler
  6737. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6738. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6739. # This bug is HP SR number 8606223364.
  6740. { $as_echo "$as_me:$LINENO: checking size of int" >&5
  6741. $as_echo_n "checking size of int... " >&6; }
  6742. if test "${ac_cv_sizeof_int+set}" = set; then
  6743. $as_echo_n "(cached) " >&6
  6744. else
  6745. if test "$cross_compiling" = yes; then
  6746. # Depending upon the size, compute the lo and hi bounds.
  6747. cat >conftest.$ac_ext <<_ACEOF
  6748. /* confdefs.h. */
  6749. _ACEOF
  6750. cat confdefs.h >>conftest.$ac_ext
  6751. cat >>conftest.$ac_ext <<_ACEOF
  6752. /* end confdefs.h. */
  6753. $ac_includes_default
  6754. int
  6755. main ()
  6756. {
  6757. static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
  6758. test_array [0] = 0
  6759. ;
  6760. return 0;
  6761. }
  6762. _ACEOF
  6763. rm -f conftest.$ac_objext
  6764. if { (ac_try="$ac_compile"
  6765. case "(($ac_try" in
  6766. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6767. *) ac_try_echo=$ac_try;;
  6768. esac
  6769. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6770. $as_echo "$ac_try_echo") >&5
  6771. (eval "$ac_compile") 2>conftest.er1
  6772. ac_status=$?
  6773. grep -v '^ *+' conftest.er1 >conftest.err
  6774. rm -f conftest.er1
  6775. cat conftest.err >&5
  6776. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6777. (exit $ac_status); } && {
  6778. test -z "$ac_cxx_werror_flag" ||
  6779. test ! -s conftest.err
  6780. } && test -s conftest.$ac_objext; then
  6781. ac_lo=0 ac_mid=0
  6782. while :; do
  6783. cat >conftest.$ac_ext <<_ACEOF
  6784. /* confdefs.h. */
  6785. _ACEOF
  6786. cat confdefs.h >>conftest.$ac_ext
  6787. cat >>conftest.$ac_ext <<_ACEOF
  6788. /* end confdefs.h. */
  6789. $ac_includes_default
  6790. int
  6791. main ()
  6792. {
  6793. static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
  6794. test_array [0] = 0
  6795. ;
  6796. return 0;
  6797. }
  6798. _ACEOF
  6799. rm -f conftest.$ac_objext
  6800. if { (ac_try="$ac_compile"
  6801. case "(($ac_try" in
  6802. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6803. *) ac_try_echo=$ac_try;;
  6804. esac
  6805. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6806. $as_echo "$ac_try_echo") >&5
  6807. (eval "$ac_compile") 2>conftest.er1
  6808. ac_status=$?
  6809. grep -v '^ *+' conftest.er1 >conftest.err
  6810. rm -f conftest.er1
  6811. cat conftest.err >&5
  6812. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6813. (exit $ac_status); } && {
  6814. test -z "$ac_cxx_werror_flag" ||
  6815. test ! -s conftest.err
  6816. } && test -s conftest.$ac_objext; then
  6817. ac_hi=$ac_mid; break
  6818. else
  6819. $as_echo "$as_me: failed program was:" >&5
  6820. sed 's/^/| /' conftest.$ac_ext >&5
  6821. ac_lo=`expr $ac_mid + 1`
  6822. if test $ac_lo -le $ac_mid; then
  6823. ac_lo= ac_hi=
  6824. break
  6825. fi
  6826. ac_mid=`expr 2 '*' $ac_mid + 1`
  6827. fi
  6828. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6829. done
  6830. else
  6831. $as_echo "$as_me: failed program was:" >&5
  6832. sed 's/^/| /' conftest.$ac_ext >&5
  6833. cat >conftest.$ac_ext <<_ACEOF
  6834. /* confdefs.h. */
  6835. _ACEOF
  6836. cat confdefs.h >>conftest.$ac_ext
  6837. cat >>conftest.$ac_ext <<_ACEOF
  6838. /* end confdefs.h. */
  6839. $ac_includes_default
  6840. int
  6841. main ()
  6842. {
  6843. static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
  6844. test_array [0] = 0
  6845. ;
  6846. return 0;
  6847. }
  6848. _ACEOF
  6849. rm -f conftest.$ac_objext
  6850. if { (ac_try="$ac_compile"
  6851. case "(($ac_try" in
  6852. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6853. *) ac_try_echo=$ac_try;;
  6854. esac
  6855. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6856. $as_echo "$ac_try_echo") >&5
  6857. (eval "$ac_compile") 2>conftest.er1
  6858. ac_status=$?
  6859. grep -v '^ *+' conftest.er1 >conftest.err
  6860. rm -f conftest.er1
  6861. cat conftest.err >&5
  6862. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6863. (exit $ac_status); } && {
  6864. test -z "$ac_cxx_werror_flag" ||
  6865. test ! -s conftest.err
  6866. } && test -s conftest.$ac_objext; then
  6867. ac_hi=-1 ac_mid=-1
  6868. while :; do
  6869. cat >conftest.$ac_ext <<_ACEOF
  6870. /* confdefs.h. */
  6871. _ACEOF
  6872. cat confdefs.h >>conftest.$ac_ext
  6873. cat >>conftest.$ac_ext <<_ACEOF
  6874. /* end confdefs.h. */
  6875. $ac_includes_default
  6876. int
  6877. main ()
  6878. {
  6879. static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
  6880. test_array [0] = 0
  6881. ;
  6882. return 0;
  6883. }
  6884. _ACEOF
  6885. rm -f conftest.$ac_objext
  6886. if { (ac_try="$ac_compile"
  6887. case "(($ac_try" in
  6888. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6889. *) ac_try_echo=$ac_try;;
  6890. esac
  6891. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6892. $as_echo "$ac_try_echo") >&5
  6893. (eval "$ac_compile") 2>conftest.er1
  6894. ac_status=$?
  6895. grep -v '^ *+' conftest.er1 >conftest.err
  6896. rm -f conftest.er1
  6897. cat conftest.err >&5
  6898. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6899. (exit $ac_status); } && {
  6900. test -z "$ac_cxx_werror_flag" ||
  6901. test ! -s conftest.err
  6902. } && test -s conftest.$ac_objext; then
  6903. ac_lo=$ac_mid; break
  6904. else
  6905. $as_echo "$as_me: failed program was:" >&5
  6906. sed 's/^/| /' conftest.$ac_ext >&5
  6907. ac_hi=`expr '(' $ac_mid ')' - 1`
  6908. if test $ac_mid -le $ac_hi; then
  6909. ac_lo= ac_hi=
  6910. break
  6911. fi
  6912. ac_mid=`expr 2 '*' $ac_mid`
  6913. fi
  6914. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6915. done
  6916. else
  6917. $as_echo "$as_me: failed program was:" >&5
  6918. sed 's/^/| /' conftest.$ac_ext >&5
  6919. ac_lo= ac_hi=
  6920. fi
  6921. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6922. fi
  6923. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6924. # Binary search between lo and hi bounds.
  6925. while test "x$ac_lo" != "x$ac_hi"; do
  6926. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6927. cat >conftest.$ac_ext <<_ACEOF
  6928. /* confdefs.h. */
  6929. _ACEOF
  6930. cat confdefs.h >>conftest.$ac_ext
  6931. cat >>conftest.$ac_ext <<_ACEOF
  6932. /* end confdefs.h. */
  6933. $ac_includes_default
  6934. int
  6935. main ()
  6936. {
  6937. static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
  6938. test_array [0] = 0
  6939. ;
  6940. return 0;
  6941. }
  6942. _ACEOF
  6943. rm -f conftest.$ac_objext
  6944. if { (ac_try="$ac_compile"
  6945. case "(($ac_try" in
  6946. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6947. *) ac_try_echo=$ac_try;;
  6948. esac
  6949. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6950. $as_echo "$ac_try_echo") >&5
  6951. (eval "$ac_compile") 2>conftest.er1
  6952. ac_status=$?
  6953. grep -v '^ *+' conftest.er1 >conftest.err
  6954. rm -f conftest.er1
  6955. cat conftest.err >&5
  6956. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6957. (exit $ac_status); } && {
  6958. test -z "$ac_cxx_werror_flag" ||
  6959. test ! -s conftest.err
  6960. } && test -s conftest.$ac_objext; then
  6961. ac_hi=$ac_mid
  6962. else
  6963. $as_echo "$as_me: failed program was:" >&5
  6964. sed 's/^/| /' conftest.$ac_ext >&5
  6965. ac_lo=`expr '(' $ac_mid ')' + 1`
  6966. fi
  6967. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6968. done
  6969. case $ac_lo in
  6970. ?*) ac_cv_sizeof_int=$ac_lo;;
  6971. '') if test "$ac_cv_type_int" = yes; then
  6972. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  6973. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6974. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
  6975. See \`config.log' for more details." >&5
  6976. $as_echo "$as_me: error: cannot compute sizeof (int)
  6977. See \`config.log' for more details." >&2;}
  6978. { (exit 77); exit 77; }; }; }
  6979. else
  6980. ac_cv_sizeof_int=0
  6981. fi ;;
  6982. esac
  6983. else
  6984. cat >conftest.$ac_ext <<_ACEOF
  6985. /* confdefs.h. */
  6986. _ACEOF
  6987. cat confdefs.h >>conftest.$ac_ext
  6988. cat >>conftest.$ac_ext <<_ACEOF
  6989. /* end confdefs.h. */
  6990. $ac_includes_default
  6991. static long int longval () { return (long int) (sizeof (int)); }
  6992. static unsigned long int ulongval () { return (long int) (sizeof (int)); }
  6993. #include <stdio.h>
  6994. #include <stdlib.h>
  6995. int
  6996. main ()
  6997. {
  6998. FILE *f = fopen ("conftest.val", "w");
  6999. if (! f)
  7000. return 1;
  7001. if (((long int) (sizeof (int))) < 0)
  7002. {
  7003. long int i = longval ();
  7004. if (i != ((long int) (sizeof (int))))
  7005. return 1;
  7006. fprintf (f, "%ld", i);
  7007. }
  7008. else
  7009. {
  7010. unsigned long int i = ulongval ();
  7011. if (i != ((long int) (sizeof (int))))
  7012. return 1;
  7013. fprintf (f, "%lu", i);
  7014. }
  7015. /* Do not output a trailing newline, as this causes \r\n confusion
  7016. on some platforms. */
  7017. return ferror (f) || fclose (f) != 0;
  7018. ;
  7019. return 0;
  7020. }
  7021. _ACEOF
  7022. rm -f conftest$ac_exeext
  7023. if { (ac_try="$ac_link"
  7024. case "(($ac_try" in
  7025. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7026. *) ac_try_echo=$ac_try;;
  7027. esac
  7028. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7029. $as_echo "$ac_try_echo") >&5
  7030. (eval "$ac_link") 2>&5
  7031. ac_status=$?
  7032. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7033. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7034. { (case "(($ac_try" in
  7035. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7036. *) ac_try_echo=$ac_try;;
  7037. esac
  7038. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7039. $as_echo "$ac_try_echo") >&5
  7040. (eval "$ac_try") 2>&5
  7041. ac_status=$?
  7042. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7043. (exit $ac_status); }; }; then
  7044. ac_cv_sizeof_int=`cat conftest.val`
  7045. else
  7046. $as_echo "$as_me: program exited with status $ac_status" >&5
  7047. $as_echo "$as_me: failed program was:" >&5
  7048. sed 's/^/| /' conftest.$ac_ext >&5
  7049. ( exit $ac_status )
  7050. if test "$ac_cv_type_int" = yes; then
  7051. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  7052. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7053. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
  7054. See \`config.log' for more details." >&5
  7055. $as_echo "$as_me: error: cannot compute sizeof (int)
  7056. See \`config.log' for more details." >&2;}
  7057. { (exit 77); exit 77; }; }; }
  7058. else
  7059. ac_cv_sizeof_int=0
  7060. fi
  7061. fi
  7062. rm -rf conftest.dSYM
  7063. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7064. fi
  7065. rm -f conftest.val
  7066. fi
  7067. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
  7068. $as_echo "$ac_cv_sizeof_int" >&6; }
  7069. cat >>confdefs.h <<_ACEOF
  7070. #define SIZEOF_INT $ac_cv_sizeof_int
  7071. _ACEOF
  7072. # The cast to long int works around a bug in the HP C Compiler
  7073. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  7074. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  7075. # This bug is HP SR number 8606223364.
  7076. { $as_echo "$as_me:$LINENO: checking size of long" >&5
  7077. $as_echo_n "checking size of long... " >&6; }
  7078. if test "${ac_cv_sizeof_long+set}" = set; then
  7079. $as_echo_n "(cached) " >&6
  7080. else
  7081. if test "$cross_compiling" = yes; then
  7082. # Depending upon the size, compute the lo and hi bounds.
  7083. cat >conftest.$ac_ext <<_ACEOF
  7084. /* confdefs.h. */
  7085. _ACEOF
  7086. cat confdefs.h >>conftest.$ac_ext
  7087. cat >>conftest.$ac_ext <<_ACEOF
  7088. /* end confdefs.h. */
  7089. $ac_includes_default
  7090. int
  7091. main ()
  7092. {
  7093. static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
  7094. test_array [0] = 0
  7095. ;
  7096. return 0;
  7097. }
  7098. _ACEOF
  7099. rm -f conftest.$ac_objext
  7100. if { (ac_try="$ac_compile"
  7101. case "(($ac_try" in
  7102. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7103. *) ac_try_echo=$ac_try;;
  7104. esac
  7105. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7106. $as_echo "$ac_try_echo") >&5
  7107. (eval "$ac_compile") 2>conftest.er1
  7108. ac_status=$?
  7109. grep -v '^ *+' conftest.er1 >conftest.err
  7110. rm -f conftest.er1
  7111. cat conftest.err >&5
  7112. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7113. (exit $ac_status); } && {
  7114. test -z "$ac_cxx_werror_flag" ||
  7115. test ! -s conftest.err
  7116. } && test -s conftest.$ac_objext; then
  7117. ac_lo=0 ac_mid=0
  7118. while :; do
  7119. cat >conftest.$ac_ext <<_ACEOF
  7120. /* confdefs.h. */
  7121. _ACEOF
  7122. cat confdefs.h >>conftest.$ac_ext
  7123. cat >>conftest.$ac_ext <<_ACEOF
  7124. /* end confdefs.h. */
  7125. $ac_includes_default
  7126. int
  7127. main ()
  7128. {
  7129. static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
  7130. test_array [0] = 0
  7131. ;
  7132. return 0;
  7133. }
  7134. _ACEOF
  7135. rm -f conftest.$ac_objext
  7136. if { (ac_try="$ac_compile"
  7137. case "(($ac_try" in
  7138. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7139. *) ac_try_echo=$ac_try;;
  7140. esac
  7141. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7142. $as_echo "$ac_try_echo") >&5
  7143. (eval "$ac_compile") 2>conftest.er1
  7144. ac_status=$?
  7145. grep -v '^ *+' conftest.er1 >conftest.err
  7146. rm -f conftest.er1
  7147. cat conftest.err >&5
  7148. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7149. (exit $ac_status); } && {
  7150. test -z "$ac_cxx_werror_flag" ||
  7151. test ! -s conftest.err
  7152. } && test -s conftest.$ac_objext; then
  7153. ac_hi=$ac_mid; break
  7154. else
  7155. $as_echo "$as_me: failed program was:" >&5
  7156. sed 's/^/| /' conftest.$ac_ext >&5
  7157. ac_lo=`expr $ac_mid + 1`
  7158. if test $ac_lo -le $ac_mid; then
  7159. ac_lo= ac_hi=
  7160. break
  7161. fi
  7162. ac_mid=`expr 2 '*' $ac_mid + 1`
  7163. fi
  7164. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7165. done
  7166. else
  7167. $as_echo "$as_me: failed program was:" >&5
  7168. sed 's/^/| /' conftest.$ac_ext >&5
  7169. cat >conftest.$ac_ext <<_ACEOF
  7170. /* confdefs.h. */
  7171. _ACEOF
  7172. cat confdefs.h >>conftest.$ac_ext
  7173. cat >>conftest.$ac_ext <<_ACEOF
  7174. /* end confdefs.h. */
  7175. $ac_includes_default
  7176. int
  7177. main ()
  7178. {
  7179. static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
  7180. test_array [0] = 0
  7181. ;
  7182. return 0;
  7183. }
  7184. _ACEOF
  7185. rm -f conftest.$ac_objext
  7186. if { (ac_try="$ac_compile"
  7187. case "(($ac_try" in
  7188. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7189. *) ac_try_echo=$ac_try;;
  7190. esac
  7191. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7192. $as_echo "$ac_try_echo") >&5
  7193. (eval "$ac_compile") 2>conftest.er1
  7194. ac_status=$?
  7195. grep -v '^ *+' conftest.er1 >conftest.err
  7196. rm -f conftest.er1
  7197. cat conftest.err >&5
  7198. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7199. (exit $ac_status); } && {
  7200. test -z "$ac_cxx_werror_flag" ||
  7201. test ! -s conftest.err
  7202. } && test -s conftest.$ac_objext; then
  7203. ac_hi=-1 ac_mid=-1
  7204. while :; do
  7205. cat >conftest.$ac_ext <<_ACEOF
  7206. /* confdefs.h. */
  7207. _ACEOF
  7208. cat confdefs.h >>conftest.$ac_ext
  7209. cat >>conftest.$ac_ext <<_ACEOF
  7210. /* end confdefs.h. */
  7211. $ac_includes_default
  7212. int
  7213. main ()
  7214. {
  7215. static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
  7216. test_array [0] = 0
  7217. ;
  7218. return 0;
  7219. }
  7220. _ACEOF
  7221. rm -f conftest.$ac_objext
  7222. if { (ac_try="$ac_compile"
  7223. case "(($ac_try" in
  7224. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7225. *) ac_try_echo=$ac_try;;
  7226. esac
  7227. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7228. $as_echo "$ac_try_echo") >&5
  7229. (eval "$ac_compile") 2>conftest.er1
  7230. ac_status=$?
  7231. grep -v '^ *+' conftest.er1 >conftest.err
  7232. rm -f conftest.er1
  7233. cat conftest.err >&5
  7234. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7235. (exit $ac_status); } && {
  7236. test -z "$ac_cxx_werror_flag" ||
  7237. test ! -s conftest.err
  7238. } && test -s conftest.$ac_objext; then
  7239. ac_lo=$ac_mid; break
  7240. else
  7241. $as_echo "$as_me: failed program was:" >&5
  7242. sed 's/^/| /' conftest.$ac_ext >&5
  7243. ac_hi=`expr '(' $ac_mid ')' - 1`
  7244. if test $ac_mid -le $ac_hi; then
  7245. ac_lo= ac_hi=
  7246. break
  7247. fi
  7248. ac_mid=`expr 2 '*' $ac_mid`
  7249. fi
  7250. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7251. done
  7252. else
  7253. $as_echo "$as_me: failed program was:" >&5
  7254. sed 's/^/| /' conftest.$ac_ext >&5
  7255. ac_lo= ac_hi=
  7256. fi
  7257. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7258. fi
  7259. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7260. # Binary search between lo and hi bounds.
  7261. while test "x$ac_lo" != "x$ac_hi"; do
  7262. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  7263. cat >conftest.$ac_ext <<_ACEOF
  7264. /* confdefs.h. */
  7265. _ACEOF
  7266. cat confdefs.h >>conftest.$ac_ext
  7267. cat >>conftest.$ac_ext <<_ACEOF
  7268. /* end confdefs.h. */
  7269. $ac_includes_default
  7270. int
  7271. main ()
  7272. {
  7273. static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
  7274. test_array [0] = 0
  7275. ;
  7276. return 0;
  7277. }
  7278. _ACEOF
  7279. rm -f conftest.$ac_objext
  7280. if { (ac_try="$ac_compile"
  7281. case "(($ac_try" in
  7282. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7283. *) ac_try_echo=$ac_try;;
  7284. esac
  7285. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7286. $as_echo "$ac_try_echo") >&5
  7287. (eval "$ac_compile") 2>conftest.er1
  7288. ac_status=$?
  7289. grep -v '^ *+' conftest.er1 >conftest.err
  7290. rm -f conftest.er1
  7291. cat conftest.err >&5
  7292. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7293. (exit $ac_status); } && {
  7294. test -z "$ac_cxx_werror_flag" ||
  7295. test ! -s conftest.err
  7296. } && test -s conftest.$ac_objext; then
  7297. ac_hi=$ac_mid
  7298. else
  7299. $as_echo "$as_me: failed program was:" >&5
  7300. sed 's/^/| /' conftest.$ac_ext >&5
  7301. ac_lo=`expr '(' $ac_mid ')' + 1`
  7302. fi
  7303. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7304. done
  7305. case $ac_lo in
  7306. ?*) ac_cv_sizeof_long=$ac_lo;;
  7307. '') if test "$ac_cv_type_long" = yes; then
  7308. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  7309. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7310. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
  7311. See \`config.log' for more details." >&5
  7312. $as_echo "$as_me: error: cannot compute sizeof (long)
  7313. See \`config.log' for more details." >&2;}
  7314. { (exit 77); exit 77; }; }; }
  7315. else
  7316. ac_cv_sizeof_long=0
  7317. fi ;;
  7318. esac
  7319. else
  7320. cat >conftest.$ac_ext <<_ACEOF
  7321. /* confdefs.h. */
  7322. _ACEOF
  7323. cat confdefs.h >>conftest.$ac_ext
  7324. cat >>conftest.$ac_ext <<_ACEOF
  7325. /* end confdefs.h. */
  7326. $ac_includes_default
  7327. static long int longval () { return (long int) (sizeof (long)); }
  7328. static unsigned long int ulongval () { return (long int) (sizeof (long)); }
  7329. #include <stdio.h>
  7330. #include <stdlib.h>
  7331. int
  7332. main ()
  7333. {
  7334. FILE *f = fopen ("conftest.val", "w");
  7335. if (! f)
  7336. return 1;
  7337. if (((long int) (sizeof (long))) < 0)
  7338. {
  7339. long int i = longval ();
  7340. if (i != ((long int) (sizeof (long))))
  7341. return 1;
  7342. fprintf (f, "%ld", i);
  7343. }
  7344. else
  7345. {
  7346. unsigned long int i = ulongval ();
  7347. if (i != ((long int) (sizeof (long))))
  7348. return 1;
  7349. fprintf (f, "%lu", i);
  7350. }
  7351. /* Do not output a trailing newline, as this causes \r\n confusion
  7352. on some platforms. */
  7353. return ferror (f) || fclose (f) != 0;
  7354. ;
  7355. return 0;
  7356. }
  7357. _ACEOF
  7358. rm -f conftest$ac_exeext
  7359. if { (ac_try="$ac_link"
  7360. case "(($ac_try" in
  7361. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7362. *) ac_try_echo=$ac_try;;
  7363. esac
  7364. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7365. $as_echo "$ac_try_echo") >&5
  7366. (eval "$ac_link") 2>&5
  7367. ac_status=$?
  7368. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7369. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7370. { (case "(($ac_try" in
  7371. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7372. *) ac_try_echo=$ac_try;;
  7373. esac
  7374. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7375. $as_echo "$ac_try_echo") >&5
  7376. (eval "$ac_try") 2>&5
  7377. ac_status=$?
  7378. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7379. (exit $ac_status); }; }; then
  7380. ac_cv_sizeof_long=`cat conftest.val`
  7381. else
  7382. $as_echo "$as_me: program exited with status $ac_status" >&5
  7383. $as_echo "$as_me: failed program was:" >&5
  7384. sed 's/^/| /' conftest.$ac_ext >&5
  7385. ( exit $ac_status )
  7386. if test "$ac_cv_type_long" = yes; then
  7387. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  7388. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7389. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
  7390. See \`config.log' for more details." >&5
  7391. $as_echo "$as_me: error: cannot compute sizeof (long)
  7392. See \`config.log' for more details." >&2;}
  7393. { (exit 77); exit 77; }; }; }
  7394. else
  7395. ac_cv_sizeof_long=0
  7396. fi
  7397. fi
  7398. rm -rf conftest.dSYM
  7399. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7400. fi
  7401. rm -f conftest.val
  7402. fi
  7403. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  7404. $as_echo "$ac_cv_sizeof_long" >&6; }
  7405. cat >>confdefs.h <<_ACEOF
  7406. #define SIZEOF_LONG $ac_cv_sizeof_long
  7407. _ACEOF
  7408. # The cast to long int works around a bug in the HP C Compiler
  7409. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  7410. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  7411. # This bug is HP SR number 8606223364.
  7412. { $as_echo "$as_me:$LINENO: checking size of long long" >&5
  7413. $as_echo_n "checking size of long long... " >&6; }
  7414. if test "${ac_cv_sizeof_long_long+set}" = set; then
  7415. $as_echo_n "(cached) " >&6
  7416. else
  7417. if test "$cross_compiling" = yes; then
  7418. # Depending upon the size, compute the lo and hi bounds.
  7419. cat >conftest.$ac_ext <<_ACEOF
  7420. /* confdefs.h. */
  7421. _ACEOF
  7422. cat confdefs.h >>conftest.$ac_ext
  7423. cat >>conftest.$ac_ext <<_ACEOF
  7424. /* end confdefs.h. */
  7425. $ac_includes_default
  7426. int
  7427. main ()
  7428. {
  7429. static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= 0)];
  7430. test_array [0] = 0
  7431. ;
  7432. return 0;
  7433. }
  7434. _ACEOF
  7435. rm -f conftest.$ac_objext
  7436. if { (ac_try="$ac_compile"
  7437. case "(($ac_try" in
  7438. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7439. *) ac_try_echo=$ac_try;;
  7440. esac
  7441. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7442. $as_echo "$ac_try_echo") >&5
  7443. (eval "$ac_compile") 2>conftest.er1
  7444. ac_status=$?
  7445. grep -v '^ *+' conftest.er1 >conftest.err
  7446. rm -f conftest.er1
  7447. cat conftest.err >&5
  7448. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7449. (exit $ac_status); } && {
  7450. test -z "$ac_cxx_werror_flag" ||
  7451. test ! -s conftest.err
  7452. } && test -s conftest.$ac_objext; then
  7453. ac_lo=0 ac_mid=0
  7454. while :; do
  7455. cat >conftest.$ac_ext <<_ACEOF
  7456. /* confdefs.h. */
  7457. _ACEOF
  7458. cat confdefs.h >>conftest.$ac_ext
  7459. cat >>conftest.$ac_ext <<_ACEOF
  7460. /* end confdefs.h. */
  7461. $ac_includes_default
  7462. int
  7463. main ()
  7464. {
  7465. static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
  7466. test_array [0] = 0
  7467. ;
  7468. return 0;
  7469. }
  7470. _ACEOF
  7471. rm -f conftest.$ac_objext
  7472. if { (ac_try="$ac_compile"
  7473. case "(($ac_try" in
  7474. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7475. *) ac_try_echo=$ac_try;;
  7476. esac
  7477. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7478. $as_echo "$ac_try_echo") >&5
  7479. (eval "$ac_compile") 2>conftest.er1
  7480. ac_status=$?
  7481. grep -v '^ *+' conftest.er1 >conftest.err
  7482. rm -f conftest.er1
  7483. cat conftest.err >&5
  7484. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7485. (exit $ac_status); } && {
  7486. test -z "$ac_cxx_werror_flag" ||
  7487. test ! -s conftest.err
  7488. } && test -s conftest.$ac_objext; then
  7489. ac_hi=$ac_mid; break
  7490. else
  7491. $as_echo "$as_me: failed program was:" >&5
  7492. sed 's/^/| /' conftest.$ac_ext >&5
  7493. ac_lo=`expr $ac_mid + 1`
  7494. if test $ac_lo -le $ac_mid; then
  7495. ac_lo= ac_hi=
  7496. break
  7497. fi
  7498. ac_mid=`expr 2 '*' $ac_mid + 1`
  7499. fi
  7500. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7501. done
  7502. else
  7503. $as_echo "$as_me: failed program was:" >&5
  7504. sed 's/^/| /' conftest.$ac_ext >&5
  7505. cat >conftest.$ac_ext <<_ACEOF
  7506. /* confdefs.h. */
  7507. _ACEOF
  7508. cat confdefs.h >>conftest.$ac_ext
  7509. cat >>conftest.$ac_ext <<_ACEOF
  7510. /* end confdefs.h. */
  7511. $ac_includes_default
  7512. int
  7513. main ()
  7514. {
  7515. static int test_array [1 - 2 * !(((long int) (sizeof (long long))) < 0)];
  7516. test_array [0] = 0
  7517. ;
  7518. return 0;
  7519. }
  7520. _ACEOF
  7521. rm -f conftest.$ac_objext
  7522. if { (ac_try="$ac_compile"
  7523. case "(($ac_try" in
  7524. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7525. *) ac_try_echo=$ac_try;;
  7526. esac
  7527. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7528. $as_echo "$ac_try_echo") >&5
  7529. (eval "$ac_compile") 2>conftest.er1
  7530. ac_status=$?
  7531. grep -v '^ *+' conftest.er1 >conftest.err
  7532. rm -f conftest.er1
  7533. cat conftest.err >&5
  7534. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7535. (exit $ac_status); } && {
  7536. test -z "$ac_cxx_werror_flag" ||
  7537. test ! -s conftest.err
  7538. } && test -s conftest.$ac_objext; then
  7539. ac_hi=-1 ac_mid=-1
  7540. while :; do
  7541. cat >conftest.$ac_ext <<_ACEOF
  7542. /* confdefs.h. */
  7543. _ACEOF
  7544. cat confdefs.h >>conftest.$ac_ext
  7545. cat >>conftest.$ac_ext <<_ACEOF
  7546. /* end confdefs.h. */
  7547. $ac_includes_default
  7548. int
  7549. main ()
  7550. {
  7551. static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)];
  7552. test_array [0] = 0
  7553. ;
  7554. return 0;
  7555. }
  7556. _ACEOF
  7557. rm -f conftest.$ac_objext
  7558. if { (ac_try="$ac_compile"
  7559. case "(($ac_try" in
  7560. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7561. *) ac_try_echo=$ac_try;;
  7562. esac
  7563. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7564. $as_echo "$ac_try_echo") >&5
  7565. (eval "$ac_compile") 2>conftest.er1
  7566. ac_status=$?
  7567. grep -v '^ *+' conftest.er1 >conftest.err
  7568. rm -f conftest.er1
  7569. cat conftest.err >&5
  7570. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7571. (exit $ac_status); } && {
  7572. test -z "$ac_cxx_werror_flag" ||
  7573. test ! -s conftest.err
  7574. } && test -s conftest.$ac_objext; then
  7575. ac_lo=$ac_mid; break
  7576. else
  7577. $as_echo "$as_me: failed program was:" >&5
  7578. sed 's/^/| /' conftest.$ac_ext >&5
  7579. ac_hi=`expr '(' $ac_mid ')' - 1`
  7580. if test $ac_mid -le $ac_hi; then
  7581. ac_lo= ac_hi=
  7582. break
  7583. fi
  7584. ac_mid=`expr 2 '*' $ac_mid`
  7585. fi
  7586. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7587. done
  7588. else
  7589. $as_echo "$as_me: failed program was:" >&5
  7590. sed 's/^/| /' conftest.$ac_ext >&5
  7591. ac_lo= ac_hi=
  7592. fi
  7593. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7594. fi
  7595. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7596. # Binary search between lo and hi bounds.
  7597. while test "x$ac_lo" != "x$ac_hi"; do
  7598. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  7599. cat >conftest.$ac_ext <<_ACEOF
  7600. /* confdefs.h. */
  7601. _ACEOF
  7602. cat confdefs.h >>conftest.$ac_ext
  7603. cat >>conftest.$ac_ext <<_ACEOF
  7604. /* end confdefs.h. */
  7605. $ac_includes_default
  7606. int
  7607. main ()
  7608. {
  7609. static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
  7610. test_array [0] = 0
  7611. ;
  7612. return 0;
  7613. }
  7614. _ACEOF
  7615. rm -f conftest.$ac_objext
  7616. if { (ac_try="$ac_compile"
  7617. case "(($ac_try" in
  7618. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7619. *) ac_try_echo=$ac_try;;
  7620. esac
  7621. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7622. $as_echo "$ac_try_echo") >&5
  7623. (eval "$ac_compile") 2>conftest.er1
  7624. ac_status=$?
  7625. grep -v '^ *+' conftest.er1 >conftest.err
  7626. rm -f conftest.er1
  7627. cat conftest.err >&5
  7628. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7629. (exit $ac_status); } && {
  7630. test -z "$ac_cxx_werror_flag" ||
  7631. test ! -s conftest.err
  7632. } && test -s conftest.$ac_objext; then
  7633. ac_hi=$ac_mid
  7634. else
  7635. $as_echo "$as_me: failed program was:" >&5
  7636. sed 's/^/| /' conftest.$ac_ext >&5
  7637. ac_lo=`expr '(' $ac_mid ')' + 1`
  7638. fi
  7639. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7640. done
  7641. case $ac_lo in
  7642. ?*) ac_cv_sizeof_long_long=$ac_lo;;
  7643. '') if test "$ac_cv_type_long_long" = yes; then
  7644. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  7645. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7646. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
  7647. See \`config.log' for more details." >&5
  7648. $as_echo "$as_me: error: cannot compute sizeof (long long)
  7649. See \`config.log' for more details." >&2;}
  7650. { (exit 77); exit 77; }; }; }
  7651. else
  7652. ac_cv_sizeof_long_long=0
  7653. fi ;;
  7654. esac
  7655. else
  7656. cat >conftest.$ac_ext <<_ACEOF
  7657. /* confdefs.h. */
  7658. _ACEOF
  7659. cat confdefs.h >>conftest.$ac_ext
  7660. cat >>conftest.$ac_ext <<_ACEOF
  7661. /* end confdefs.h. */
  7662. $ac_includes_default
  7663. static long int longval () { return (long int) (sizeof (long long)); }
  7664. static unsigned long int ulongval () { return (long int) (sizeof (long long)); }
  7665. #include <stdio.h>
  7666. #include <stdlib.h>
  7667. int
  7668. main ()
  7669. {
  7670. FILE *f = fopen ("conftest.val", "w");
  7671. if (! f)
  7672. return 1;
  7673. if (((long int) (sizeof (long long))) < 0)
  7674. {
  7675. long int i = longval ();
  7676. if (i != ((long int) (sizeof (long long))))
  7677. return 1;
  7678. fprintf (f, "%ld", i);
  7679. }
  7680. else
  7681. {
  7682. unsigned long int i = ulongval ();
  7683. if (i != ((long int) (sizeof (long long))))
  7684. return 1;
  7685. fprintf (f, "%lu", i);
  7686. }
  7687. /* Do not output a trailing newline, as this causes \r\n confusion
  7688. on some platforms. */
  7689. return ferror (f) || fclose (f) != 0;
  7690. ;
  7691. return 0;
  7692. }
  7693. _ACEOF
  7694. rm -f conftest$ac_exeext
  7695. if { (ac_try="$ac_link"
  7696. case "(($ac_try" in
  7697. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7698. *) ac_try_echo=$ac_try;;
  7699. esac
  7700. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7701. $as_echo "$ac_try_echo") >&5
  7702. (eval "$ac_link") 2>&5
  7703. ac_status=$?
  7704. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7705. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7706. { (case "(($ac_try" in
  7707. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7708. *) ac_try_echo=$ac_try;;
  7709. esac
  7710. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7711. $as_echo "$ac_try_echo") >&5
  7712. (eval "$ac_try") 2>&5
  7713. ac_status=$?
  7714. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7715. (exit $ac_status); }; }; then
  7716. ac_cv_sizeof_long_long=`cat conftest.val`
  7717. else
  7718. $as_echo "$as_me: program exited with status $ac_status" >&5
  7719. $as_echo "$as_me: failed program was:" >&5
  7720. sed 's/^/| /' conftest.$ac_ext >&5
  7721. ( exit $ac_status )
  7722. if test "$ac_cv_type_long_long" = yes; then
  7723. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  7724. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7725. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
  7726. See \`config.log' for more details." >&5
  7727. $as_echo "$as_me: error: cannot compute sizeof (long long)
  7728. See \`config.log' for more details." >&2;}
  7729. { (exit 77); exit 77; }; }; }
  7730. else
  7731. ac_cv_sizeof_long_long=0
  7732. fi
  7733. fi
  7734. rm -rf conftest.dSYM
  7735. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7736. fi
  7737. rm -f conftest.val
  7738. fi
  7739. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
  7740. $as_echo "$ac_cv_sizeof_long_long" >&6; }
  7741. cat >>confdefs.h <<_ACEOF
  7742. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  7743. _ACEOF
  7744. # The cast to long int works around a bug in the HP C Compiler
  7745. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  7746. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  7747. # This bug is HP SR number 8606223364.
  7748. { $as_echo "$as_me:$LINENO: checking size of size_t" >&5
  7749. $as_echo_n "checking size of size_t... " >&6; }
  7750. if test "${ac_cv_sizeof_size_t+set}" = set; then
  7751. $as_echo_n "(cached) " >&6
  7752. else
  7753. if test "$cross_compiling" = yes; then
  7754. # Depending upon the size, compute the lo and hi bounds.
  7755. cat >conftest.$ac_ext <<_ACEOF
  7756. /* confdefs.h. */
  7757. _ACEOF
  7758. cat confdefs.h >>conftest.$ac_ext
  7759. cat >>conftest.$ac_ext <<_ACEOF
  7760. /* end confdefs.h. */
  7761. $ac_includes_default
  7762. int
  7763. main ()
  7764. {
  7765. static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
  7766. test_array [0] = 0
  7767. ;
  7768. return 0;
  7769. }
  7770. _ACEOF
  7771. rm -f conftest.$ac_objext
  7772. if { (ac_try="$ac_compile"
  7773. case "(($ac_try" in
  7774. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7775. *) ac_try_echo=$ac_try;;
  7776. esac
  7777. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7778. $as_echo "$ac_try_echo") >&5
  7779. (eval "$ac_compile") 2>conftest.er1
  7780. ac_status=$?
  7781. grep -v '^ *+' conftest.er1 >conftest.err
  7782. rm -f conftest.er1
  7783. cat conftest.err >&5
  7784. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7785. (exit $ac_status); } && {
  7786. test -z "$ac_cxx_werror_flag" ||
  7787. test ! -s conftest.err
  7788. } && test -s conftest.$ac_objext; then
  7789. ac_lo=0 ac_mid=0
  7790. while :; do
  7791. cat >conftest.$ac_ext <<_ACEOF
  7792. /* confdefs.h. */
  7793. _ACEOF
  7794. cat confdefs.h >>conftest.$ac_ext
  7795. cat >>conftest.$ac_ext <<_ACEOF
  7796. /* end confdefs.h. */
  7797. $ac_includes_default
  7798. int
  7799. main ()
  7800. {
  7801. static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
  7802. test_array [0] = 0
  7803. ;
  7804. return 0;
  7805. }
  7806. _ACEOF
  7807. rm -f conftest.$ac_objext
  7808. if { (ac_try="$ac_compile"
  7809. case "(($ac_try" in
  7810. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7811. *) ac_try_echo=$ac_try;;
  7812. esac
  7813. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7814. $as_echo "$ac_try_echo") >&5
  7815. (eval "$ac_compile") 2>conftest.er1
  7816. ac_status=$?
  7817. grep -v '^ *+' conftest.er1 >conftest.err
  7818. rm -f conftest.er1
  7819. cat conftest.err >&5
  7820. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7821. (exit $ac_status); } && {
  7822. test -z "$ac_cxx_werror_flag" ||
  7823. test ! -s conftest.err
  7824. } && test -s conftest.$ac_objext; then
  7825. ac_hi=$ac_mid; break
  7826. else
  7827. $as_echo "$as_me: failed program was:" >&5
  7828. sed 's/^/| /' conftest.$ac_ext >&5
  7829. ac_lo=`expr $ac_mid + 1`
  7830. if test $ac_lo -le $ac_mid; then
  7831. ac_lo= ac_hi=
  7832. break
  7833. fi
  7834. ac_mid=`expr 2 '*' $ac_mid + 1`
  7835. fi
  7836. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7837. done
  7838. else
  7839. $as_echo "$as_me: failed program was:" >&5
  7840. sed 's/^/| /' conftest.$ac_ext >&5
  7841. cat >conftest.$ac_ext <<_ACEOF
  7842. /* confdefs.h. */
  7843. _ACEOF
  7844. cat confdefs.h >>conftest.$ac_ext
  7845. cat >>conftest.$ac_ext <<_ACEOF
  7846. /* end confdefs.h. */
  7847. $ac_includes_default
  7848. int
  7849. main ()
  7850. {
  7851. static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
  7852. test_array [0] = 0
  7853. ;
  7854. return 0;
  7855. }
  7856. _ACEOF
  7857. rm -f conftest.$ac_objext
  7858. if { (ac_try="$ac_compile"
  7859. case "(($ac_try" in
  7860. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7861. *) ac_try_echo=$ac_try;;
  7862. esac
  7863. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7864. $as_echo "$ac_try_echo") >&5
  7865. (eval "$ac_compile") 2>conftest.er1
  7866. ac_status=$?
  7867. grep -v '^ *+' conftest.er1 >conftest.err
  7868. rm -f conftest.er1
  7869. cat conftest.err >&5
  7870. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7871. (exit $ac_status); } && {
  7872. test -z "$ac_cxx_werror_flag" ||
  7873. test ! -s conftest.err
  7874. } && test -s conftest.$ac_objext; then
  7875. ac_hi=-1 ac_mid=-1
  7876. while :; do
  7877. cat >conftest.$ac_ext <<_ACEOF
  7878. /* confdefs.h. */
  7879. _ACEOF
  7880. cat confdefs.h >>conftest.$ac_ext
  7881. cat >>conftest.$ac_ext <<_ACEOF
  7882. /* end confdefs.h. */
  7883. $ac_includes_default
  7884. int
  7885. main ()
  7886. {
  7887. static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
  7888. test_array [0] = 0
  7889. ;
  7890. return 0;
  7891. }
  7892. _ACEOF
  7893. rm -f conftest.$ac_objext
  7894. if { (ac_try="$ac_compile"
  7895. case "(($ac_try" in
  7896. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7897. *) ac_try_echo=$ac_try;;
  7898. esac
  7899. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7900. $as_echo "$ac_try_echo") >&5
  7901. (eval "$ac_compile") 2>conftest.er1
  7902. ac_status=$?
  7903. grep -v '^ *+' conftest.er1 >conftest.err
  7904. rm -f conftest.er1
  7905. cat conftest.err >&5
  7906. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7907. (exit $ac_status); } && {
  7908. test -z "$ac_cxx_werror_flag" ||
  7909. test ! -s conftest.err
  7910. } && test -s conftest.$ac_objext; then
  7911. ac_lo=$ac_mid; break
  7912. else
  7913. $as_echo "$as_me: failed program was:" >&5
  7914. sed 's/^/| /' conftest.$ac_ext >&5
  7915. ac_hi=`expr '(' $ac_mid ')' - 1`
  7916. if test $ac_mid -le $ac_hi; then
  7917. ac_lo= ac_hi=
  7918. break
  7919. fi
  7920. ac_mid=`expr 2 '*' $ac_mid`
  7921. fi
  7922. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7923. done
  7924. else
  7925. $as_echo "$as_me: failed program was:" >&5
  7926. sed 's/^/| /' conftest.$ac_ext >&5
  7927. ac_lo= ac_hi=
  7928. fi
  7929. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7930. fi
  7931. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7932. # Binary search between lo and hi bounds.
  7933. while test "x$ac_lo" != "x$ac_hi"; do
  7934. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  7935. cat >conftest.$ac_ext <<_ACEOF
  7936. /* confdefs.h. */
  7937. _ACEOF
  7938. cat confdefs.h >>conftest.$ac_ext
  7939. cat >>conftest.$ac_ext <<_ACEOF
  7940. /* end confdefs.h. */
  7941. $ac_includes_default
  7942. int
  7943. main ()
  7944. {
  7945. static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
  7946. test_array [0] = 0
  7947. ;
  7948. return 0;
  7949. }
  7950. _ACEOF
  7951. rm -f conftest.$ac_objext
  7952. if { (ac_try="$ac_compile"
  7953. case "(($ac_try" in
  7954. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7955. *) ac_try_echo=$ac_try;;
  7956. esac
  7957. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7958. $as_echo "$ac_try_echo") >&5
  7959. (eval "$ac_compile") 2>conftest.er1
  7960. ac_status=$?
  7961. grep -v '^ *+' conftest.er1 >conftest.err
  7962. rm -f conftest.er1
  7963. cat conftest.err >&5
  7964. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7965. (exit $ac_status); } && {
  7966. test -z "$ac_cxx_werror_flag" ||
  7967. test ! -s conftest.err
  7968. } && test -s conftest.$ac_objext; then
  7969. ac_hi=$ac_mid
  7970. else
  7971. $as_echo "$as_me: failed program was:" >&5
  7972. sed 's/^/| /' conftest.$ac_ext >&5
  7973. ac_lo=`expr '(' $ac_mid ')' + 1`
  7974. fi
  7975. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7976. done
  7977. case $ac_lo in
  7978. ?*) ac_cv_sizeof_size_t=$ac_lo;;
  7979. '') if test "$ac_cv_type_size_t" = yes; then
  7980. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  7981. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7982. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
  7983. See \`config.log' for more details." >&5
  7984. $as_echo "$as_me: error: cannot compute sizeof (size_t)
  7985. See \`config.log' for more details." >&2;}
  7986. { (exit 77); exit 77; }; }; }
  7987. else
  7988. ac_cv_sizeof_size_t=0
  7989. fi ;;
  7990. esac
  7991. else
  7992. cat >conftest.$ac_ext <<_ACEOF
  7993. /* confdefs.h. */
  7994. _ACEOF
  7995. cat confdefs.h >>conftest.$ac_ext
  7996. cat >>conftest.$ac_ext <<_ACEOF
  7997. /* end confdefs.h. */
  7998. $ac_includes_default
  7999. static long int longval () { return (long int) (sizeof (size_t)); }
  8000. static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
  8001. #include <stdio.h>
  8002. #include <stdlib.h>
  8003. int
  8004. main ()
  8005. {
  8006. FILE *f = fopen ("conftest.val", "w");
  8007. if (! f)
  8008. return 1;
  8009. if (((long int) (sizeof (size_t))) < 0)
  8010. {
  8011. long int i = longval ();
  8012. if (i != ((long int) (sizeof (size_t))))
  8013. return 1;
  8014. fprintf (f, "%ld", i);
  8015. }
  8016. else
  8017. {
  8018. unsigned long int i = ulongval ();
  8019. if (i != ((long int) (sizeof (size_t))))
  8020. return 1;
  8021. fprintf (f, "%lu", i);
  8022. }
  8023. /* Do not output a trailing newline, as this causes \r\n confusion
  8024. on some platforms. */
  8025. return ferror (f) || fclose (f) != 0;
  8026. ;
  8027. return 0;
  8028. }
  8029. _ACEOF
  8030. rm -f conftest$ac_exeext
  8031. if { (ac_try="$ac_link"
  8032. case "(($ac_try" in
  8033. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8034. *) ac_try_echo=$ac_try;;
  8035. esac
  8036. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8037. $as_echo "$ac_try_echo") >&5
  8038. (eval "$ac_link") 2>&5
  8039. ac_status=$?
  8040. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8041. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8042. { (case "(($ac_try" in
  8043. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8044. *) ac_try_echo=$ac_try;;
  8045. esac
  8046. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8047. $as_echo "$ac_try_echo") >&5
  8048. (eval "$ac_try") 2>&5
  8049. ac_status=$?
  8050. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8051. (exit $ac_status); }; }; then
  8052. ac_cv_sizeof_size_t=`cat conftest.val`
  8053. else
  8054. $as_echo "$as_me: program exited with status $ac_status" >&5
  8055. $as_echo "$as_me: failed program was:" >&5
  8056. sed 's/^/| /' conftest.$ac_ext >&5
  8057. ( exit $ac_status )
  8058. if test "$ac_cv_type_size_t" = yes; then
  8059. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  8060. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  8061. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
  8062. See \`config.log' for more details." >&5
  8063. $as_echo "$as_me: error: cannot compute sizeof (size_t)
  8064. See \`config.log' for more details." >&2;}
  8065. { (exit 77); exit 77; }; }; }
  8066. else
  8067. ac_cv_sizeof_size_t=0
  8068. fi
  8069. fi
  8070. rm -rf conftest.dSYM
  8071. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8072. fi
  8073. rm -f conftest.val
  8074. fi
  8075. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
  8076. $as_echo "$ac_cv_sizeof_size_t" >&6; }
  8077. cat >>confdefs.h <<_ACEOF
  8078. #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
  8079. _ACEOF
  8080. # The cast to long int works around a bug in the HP C Compiler
  8081. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  8082. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  8083. # This bug is HP SR number 8606223364.
  8084. { $as_echo "$as_me:$LINENO: checking size of ptrdiff_t" >&5
  8085. $as_echo_n "checking size of ptrdiff_t... " >&6; }
  8086. if test "${ac_cv_sizeof_ptrdiff_t+set}" = set; then
  8087. $as_echo_n "(cached) " >&6
  8088. else
  8089. if test "$cross_compiling" = yes; then
  8090. # Depending upon the size, compute the lo and hi bounds.
  8091. cat >conftest.$ac_ext <<_ACEOF
  8092. /* confdefs.h. */
  8093. _ACEOF
  8094. cat confdefs.h >>conftest.$ac_ext
  8095. cat >>conftest.$ac_ext <<_ACEOF
  8096. /* end confdefs.h. */
  8097. $ac_includes_default
  8098. int
  8099. main ()
  8100. {
  8101. static int test_array [1 - 2 * !(((long int) (sizeof (ptrdiff_t))) >= 0)];
  8102. test_array [0] = 0
  8103. ;
  8104. return 0;
  8105. }
  8106. _ACEOF
  8107. rm -f conftest.$ac_objext
  8108. if { (ac_try="$ac_compile"
  8109. case "(($ac_try" in
  8110. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8111. *) ac_try_echo=$ac_try;;
  8112. esac
  8113. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8114. $as_echo "$ac_try_echo") >&5
  8115. (eval "$ac_compile") 2>conftest.er1
  8116. ac_status=$?
  8117. grep -v '^ *+' conftest.er1 >conftest.err
  8118. rm -f conftest.er1
  8119. cat conftest.err >&5
  8120. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8121. (exit $ac_status); } && {
  8122. test -z "$ac_cxx_werror_flag" ||
  8123. test ! -s conftest.err
  8124. } && test -s conftest.$ac_objext; then
  8125. ac_lo=0 ac_mid=0
  8126. while :; do
  8127. cat >conftest.$ac_ext <<_ACEOF
  8128. /* confdefs.h. */
  8129. _ACEOF
  8130. cat confdefs.h >>conftest.$ac_ext
  8131. cat >>conftest.$ac_ext <<_ACEOF
  8132. /* end confdefs.h. */
  8133. $ac_includes_default
  8134. int
  8135. main ()
  8136. {
  8137. static int test_array [1 - 2 * !(((long int) (sizeof (ptrdiff_t))) <= $ac_mid)];
  8138. test_array [0] = 0
  8139. ;
  8140. return 0;
  8141. }
  8142. _ACEOF
  8143. rm -f conftest.$ac_objext
  8144. if { (ac_try="$ac_compile"
  8145. case "(($ac_try" in
  8146. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8147. *) ac_try_echo=$ac_try;;
  8148. esac
  8149. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8150. $as_echo "$ac_try_echo") >&5
  8151. (eval "$ac_compile") 2>conftest.er1
  8152. ac_status=$?
  8153. grep -v '^ *+' conftest.er1 >conftest.err
  8154. rm -f conftest.er1
  8155. cat conftest.err >&5
  8156. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8157. (exit $ac_status); } && {
  8158. test -z "$ac_cxx_werror_flag" ||
  8159. test ! -s conftest.err
  8160. } && test -s conftest.$ac_objext; then
  8161. ac_hi=$ac_mid; break
  8162. else
  8163. $as_echo "$as_me: failed program was:" >&5
  8164. sed 's/^/| /' conftest.$ac_ext >&5
  8165. ac_lo=`expr $ac_mid + 1`
  8166. if test $ac_lo -le $ac_mid; then
  8167. ac_lo= ac_hi=
  8168. break
  8169. fi
  8170. ac_mid=`expr 2 '*' $ac_mid + 1`
  8171. fi
  8172. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8173. done
  8174. else
  8175. $as_echo "$as_me: failed program was:" >&5
  8176. sed 's/^/| /' conftest.$ac_ext >&5
  8177. cat >conftest.$ac_ext <<_ACEOF
  8178. /* confdefs.h. */
  8179. _ACEOF
  8180. cat confdefs.h >>conftest.$ac_ext
  8181. cat >>conftest.$ac_ext <<_ACEOF
  8182. /* end confdefs.h. */
  8183. $ac_includes_default
  8184. int
  8185. main ()
  8186. {
  8187. static int test_array [1 - 2 * !(((long int) (sizeof (ptrdiff_t))) < 0)];
  8188. test_array [0] = 0
  8189. ;
  8190. return 0;
  8191. }
  8192. _ACEOF
  8193. rm -f conftest.$ac_objext
  8194. if { (ac_try="$ac_compile"
  8195. case "(($ac_try" in
  8196. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8197. *) ac_try_echo=$ac_try;;
  8198. esac
  8199. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8200. $as_echo "$ac_try_echo") >&5
  8201. (eval "$ac_compile") 2>conftest.er1
  8202. ac_status=$?
  8203. grep -v '^ *+' conftest.er1 >conftest.err
  8204. rm -f conftest.er1
  8205. cat conftest.err >&5
  8206. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8207. (exit $ac_status); } && {
  8208. test -z "$ac_cxx_werror_flag" ||
  8209. test ! -s conftest.err
  8210. } && test -s conftest.$ac_objext; then
  8211. ac_hi=-1 ac_mid=-1
  8212. while :; do
  8213. cat >conftest.$ac_ext <<_ACEOF
  8214. /* confdefs.h. */
  8215. _ACEOF
  8216. cat confdefs.h >>conftest.$ac_ext
  8217. cat >>conftest.$ac_ext <<_ACEOF
  8218. /* end confdefs.h. */
  8219. $ac_includes_default
  8220. int
  8221. main ()
  8222. {
  8223. static int test_array [1 - 2 * !(((long int) (sizeof (ptrdiff_t))) >= $ac_mid)];
  8224. test_array [0] = 0
  8225. ;
  8226. return 0;
  8227. }
  8228. _ACEOF
  8229. rm -f conftest.$ac_objext
  8230. if { (ac_try="$ac_compile"
  8231. case "(($ac_try" in
  8232. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8233. *) ac_try_echo=$ac_try;;
  8234. esac
  8235. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8236. $as_echo "$ac_try_echo") >&5
  8237. (eval "$ac_compile") 2>conftest.er1
  8238. ac_status=$?
  8239. grep -v '^ *+' conftest.er1 >conftest.err
  8240. rm -f conftest.er1
  8241. cat conftest.err >&5
  8242. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8243. (exit $ac_status); } && {
  8244. test -z "$ac_cxx_werror_flag" ||
  8245. test ! -s conftest.err
  8246. } && test -s conftest.$ac_objext; then
  8247. ac_lo=$ac_mid; break
  8248. else
  8249. $as_echo "$as_me: failed program was:" >&5
  8250. sed 's/^/| /' conftest.$ac_ext >&5
  8251. ac_hi=`expr '(' $ac_mid ')' - 1`
  8252. if test $ac_mid -le $ac_hi; then
  8253. ac_lo= ac_hi=
  8254. break
  8255. fi
  8256. ac_mid=`expr 2 '*' $ac_mid`
  8257. fi
  8258. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8259. done
  8260. else
  8261. $as_echo "$as_me: failed program was:" >&5
  8262. sed 's/^/| /' conftest.$ac_ext >&5
  8263. ac_lo= ac_hi=
  8264. fi
  8265. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8266. fi
  8267. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8268. # Binary search between lo and hi bounds.
  8269. while test "x$ac_lo" != "x$ac_hi"; do
  8270. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  8271. cat >conftest.$ac_ext <<_ACEOF
  8272. /* confdefs.h. */
  8273. _ACEOF
  8274. cat confdefs.h >>conftest.$ac_ext
  8275. cat >>conftest.$ac_ext <<_ACEOF
  8276. /* end confdefs.h. */
  8277. $ac_includes_default
  8278. int
  8279. main ()
  8280. {
  8281. static int test_array [1 - 2 * !(((long int) (sizeof (ptrdiff_t))) <= $ac_mid)];
  8282. test_array [0] = 0
  8283. ;
  8284. return 0;
  8285. }
  8286. _ACEOF
  8287. rm -f conftest.$ac_objext
  8288. if { (ac_try="$ac_compile"
  8289. case "(($ac_try" in
  8290. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8291. *) ac_try_echo=$ac_try;;
  8292. esac
  8293. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8294. $as_echo "$ac_try_echo") >&5
  8295. (eval "$ac_compile") 2>conftest.er1
  8296. ac_status=$?
  8297. grep -v '^ *+' conftest.er1 >conftest.err
  8298. rm -f conftest.er1
  8299. cat conftest.err >&5
  8300. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8301. (exit $ac_status); } && {
  8302. test -z "$ac_cxx_werror_flag" ||
  8303. test ! -s conftest.err
  8304. } && test -s conftest.$ac_objext; then
  8305. ac_hi=$ac_mid
  8306. else
  8307. $as_echo "$as_me: failed program was:" >&5
  8308. sed 's/^/| /' conftest.$ac_ext >&5
  8309. ac_lo=`expr '(' $ac_mid ')' + 1`
  8310. fi
  8311. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8312. done
  8313. case $ac_lo in
  8314. ?*) ac_cv_sizeof_ptrdiff_t=$ac_lo;;
  8315. '') if test "$ac_cv_type_ptrdiff_t" = yes; then
  8316. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  8317. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  8318. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (ptrdiff_t)
  8319. See \`config.log' for more details." >&5
  8320. $as_echo "$as_me: error: cannot compute sizeof (ptrdiff_t)
  8321. See \`config.log' for more details." >&2;}
  8322. { (exit 77); exit 77; }; }; }
  8323. else
  8324. ac_cv_sizeof_ptrdiff_t=0
  8325. fi ;;
  8326. esac
  8327. else
  8328. cat >conftest.$ac_ext <<_ACEOF
  8329. /* confdefs.h. */
  8330. _ACEOF
  8331. cat confdefs.h >>conftest.$ac_ext
  8332. cat >>conftest.$ac_ext <<_ACEOF
  8333. /* end confdefs.h. */
  8334. $ac_includes_default
  8335. static long int longval () { return (long int) (sizeof (ptrdiff_t)); }
  8336. static unsigned long int ulongval () { return (long int) (sizeof (ptrdiff_t)); }
  8337. #include <stdio.h>
  8338. #include <stdlib.h>
  8339. int
  8340. main ()
  8341. {
  8342. FILE *f = fopen ("conftest.val", "w");
  8343. if (! f)
  8344. return 1;
  8345. if (((long int) (sizeof (ptrdiff_t))) < 0)
  8346. {
  8347. long int i = longval ();
  8348. if (i != ((long int) (sizeof (ptrdiff_t))))
  8349. return 1;
  8350. fprintf (f, "%ld", i);
  8351. }
  8352. else
  8353. {
  8354. unsigned long int i = ulongval ();
  8355. if (i != ((long int) (sizeof (ptrdiff_t))))
  8356. return 1;
  8357. fprintf (f, "%lu", i);
  8358. }
  8359. /* Do not output a trailing newline, as this causes \r\n confusion
  8360. on some platforms. */
  8361. return ferror (f) || fclose (f) != 0;
  8362. ;
  8363. return 0;
  8364. }
  8365. _ACEOF
  8366. rm -f conftest$ac_exeext
  8367. if { (ac_try="$ac_link"
  8368. case "(($ac_try" in
  8369. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8370. *) ac_try_echo=$ac_try;;
  8371. esac
  8372. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8373. $as_echo "$ac_try_echo") >&5
  8374. (eval "$ac_link") 2>&5
  8375. ac_status=$?
  8376. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8377. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8378. { (case "(($ac_try" in
  8379. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8380. *) ac_try_echo=$ac_try;;
  8381. esac
  8382. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8383. $as_echo "$ac_try_echo") >&5
  8384. (eval "$ac_try") 2>&5
  8385. ac_status=$?
  8386. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8387. (exit $ac_status); }; }; then
  8388. ac_cv_sizeof_ptrdiff_t=`cat conftest.val`
  8389. else
  8390. $as_echo "$as_me: program exited with status $ac_status" >&5
  8391. $as_echo "$as_me: failed program was:" >&5
  8392. sed 's/^/| /' conftest.$ac_ext >&5
  8393. ( exit $ac_status )
  8394. if test "$ac_cv_type_ptrdiff_t" = yes; then
  8395. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  8396. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  8397. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (ptrdiff_t)
  8398. See \`config.log' for more details." >&5
  8399. $as_echo "$as_me: error: cannot compute sizeof (ptrdiff_t)
  8400. See \`config.log' for more details." >&2;}
  8401. { (exit 77); exit 77; }; }; }
  8402. else
  8403. ac_cv_sizeof_ptrdiff_t=0
  8404. fi
  8405. fi
  8406. rm -rf conftest.dSYM
  8407. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8408. fi
  8409. rm -f conftest.val
  8410. fi
  8411. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_ptrdiff_t" >&5
  8412. $as_echo "$ac_cv_sizeof_ptrdiff_t" >&6; }
  8413. cat >>confdefs.h <<_ACEOF
  8414. #define SIZEOF_PTRDIFF_T $ac_cv_sizeof_ptrdiff_t
  8415. _ACEOF
  8416. # The cast to long int works around a bug in the HP C Compiler
  8417. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  8418. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  8419. # This bug is HP SR number 8606223364.
  8420. { $as_echo "$as_me:$LINENO: checking size of time_t" >&5
  8421. $as_echo_n "checking size of time_t... " >&6; }
  8422. if test "${ac_cv_sizeof_time_t+set}" = set; then
  8423. $as_echo_n "(cached) " >&6
  8424. else
  8425. if test "$cross_compiling" = yes; then
  8426. # Depending upon the size, compute the lo and hi bounds.
  8427. cat >conftest.$ac_ext <<_ACEOF
  8428. /* confdefs.h. */
  8429. _ACEOF
  8430. cat confdefs.h >>conftest.$ac_ext
  8431. cat >>conftest.$ac_ext <<_ACEOF
  8432. /* end confdefs.h. */
  8433. $ac_includes_default
  8434. int
  8435. main ()
  8436. {
  8437. static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) >= 0)];
  8438. test_array [0] = 0
  8439. ;
  8440. return 0;
  8441. }
  8442. _ACEOF
  8443. rm -f conftest.$ac_objext
  8444. if { (ac_try="$ac_compile"
  8445. case "(($ac_try" in
  8446. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8447. *) ac_try_echo=$ac_try;;
  8448. esac
  8449. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8450. $as_echo "$ac_try_echo") >&5
  8451. (eval "$ac_compile") 2>conftest.er1
  8452. ac_status=$?
  8453. grep -v '^ *+' conftest.er1 >conftest.err
  8454. rm -f conftest.er1
  8455. cat conftest.err >&5
  8456. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8457. (exit $ac_status); } && {
  8458. test -z "$ac_cxx_werror_flag" ||
  8459. test ! -s conftest.err
  8460. } && test -s conftest.$ac_objext; then
  8461. ac_lo=0 ac_mid=0
  8462. while :; do
  8463. cat >conftest.$ac_ext <<_ACEOF
  8464. /* confdefs.h. */
  8465. _ACEOF
  8466. cat confdefs.h >>conftest.$ac_ext
  8467. cat >>conftest.$ac_ext <<_ACEOF
  8468. /* end confdefs.h. */
  8469. $ac_includes_default
  8470. int
  8471. main ()
  8472. {
  8473. static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) <= $ac_mid)];
  8474. test_array [0] = 0
  8475. ;
  8476. return 0;
  8477. }
  8478. _ACEOF
  8479. rm -f conftest.$ac_objext
  8480. if { (ac_try="$ac_compile"
  8481. case "(($ac_try" in
  8482. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8483. *) ac_try_echo=$ac_try;;
  8484. esac
  8485. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8486. $as_echo "$ac_try_echo") >&5
  8487. (eval "$ac_compile") 2>conftest.er1
  8488. ac_status=$?
  8489. grep -v '^ *+' conftest.er1 >conftest.err
  8490. rm -f conftest.er1
  8491. cat conftest.err >&5
  8492. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8493. (exit $ac_status); } && {
  8494. test -z "$ac_cxx_werror_flag" ||
  8495. test ! -s conftest.err
  8496. } && test -s conftest.$ac_objext; then
  8497. ac_hi=$ac_mid; break
  8498. else
  8499. $as_echo "$as_me: failed program was:" >&5
  8500. sed 's/^/| /' conftest.$ac_ext >&5
  8501. ac_lo=`expr $ac_mid + 1`
  8502. if test $ac_lo -le $ac_mid; then
  8503. ac_lo= ac_hi=
  8504. break
  8505. fi
  8506. ac_mid=`expr 2 '*' $ac_mid + 1`
  8507. fi
  8508. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8509. done
  8510. else
  8511. $as_echo "$as_me: failed program was:" >&5
  8512. sed 's/^/| /' conftest.$ac_ext >&5
  8513. cat >conftest.$ac_ext <<_ACEOF
  8514. /* confdefs.h. */
  8515. _ACEOF
  8516. cat confdefs.h >>conftest.$ac_ext
  8517. cat >>conftest.$ac_ext <<_ACEOF
  8518. /* end confdefs.h. */
  8519. $ac_includes_default
  8520. int
  8521. main ()
  8522. {
  8523. static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) < 0)];
  8524. test_array [0] = 0
  8525. ;
  8526. return 0;
  8527. }
  8528. _ACEOF
  8529. rm -f conftest.$ac_objext
  8530. if { (ac_try="$ac_compile"
  8531. case "(($ac_try" in
  8532. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8533. *) ac_try_echo=$ac_try;;
  8534. esac
  8535. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8536. $as_echo "$ac_try_echo") >&5
  8537. (eval "$ac_compile") 2>conftest.er1
  8538. ac_status=$?
  8539. grep -v '^ *+' conftest.er1 >conftest.err
  8540. rm -f conftest.er1
  8541. cat conftest.err >&5
  8542. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8543. (exit $ac_status); } && {
  8544. test -z "$ac_cxx_werror_flag" ||
  8545. test ! -s conftest.err
  8546. } && test -s conftest.$ac_objext; then
  8547. ac_hi=-1 ac_mid=-1
  8548. while :; do
  8549. cat >conftest.$ac_ext <<_ACEOF
  8550. /* confdefs.h. */
  8551. _ACEOF
  8552. cat confdefs.h >>conftest.$ac_ext
  8553. cat >>conftest.$ac_ext <<_ACEOF
  8554. /* end confdefs.h. */
  8555. $ac_includes_default
  8556. int
  8557. main ()
  8558. {
  8559. static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) >= $ac_mid)];
  8560. test_array [0] = 0
  8561. ;
  8562. return 0;
  8563. }
  8564. _ACEOF
  8565. rm -f conftest.$ac_objext
  8566. if { (ac_try="$ac_compile"
  8567. case "(($ac_try" in
  8568. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8569. *) ac_try_echo=$ac_try;;
  8570. esac
  8571. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8572. $as_echo "$ac_try_echo") >&5
  8573. (eval "$ac_compile") 2>conftest.er1
  8574. ac_status=$?
  8575. grep -v '^ *+' conftest.er1 >conftest.err
  8576. rm -f conftest.er1
  8577. cat conftest.err >&5
  8578. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8579. (exit $ac_status); } && {
  8580. test -z "$ac_cxx_werror_flag" ||
  8581. test ! -s conftest.err
  8582. } && test -s conftest.$ac_objext; then
  8583. ac_lo=$ac_mid; break
  8584. else
  8585. $as_echo "$as_me: failed program was:" >&5
  8586. sed 's/^/| /' conftest.$ac_ext >&5
  8587. ac_hi=`expr '(' $ac_mid ')' - 1`
  8588. if test $ac_mid -le $ac_hi; then
  8589. ac_lo= ac_hi=
  8590. break
  8591. fi
  8592. ac_mid=`expr 2 '*' $ac_mid`
  8593. fi
  8594. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8595. done
  8596. else
  8597. $as_echo "$as_me: failed program was:" >&5
  8598. sed 's/^/| /' conftest.$ac_ext >&5
  8599. ac_lo= ac_hi=
  8600. fi
  8601. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8602. fi
  8603. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8604. # Binary search between lo and hi bounds.
  8605. while test "x$ac_lo" != "x$ac_hi"; do
  8606. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  8607. cat >conftest.$ac_ext <<_ACEOF
  8608. /* confdefs.h. */
  8609. _ACEOF
  8610. cat confdefs.h >>conftest.$ac_ext
  8611. cat >>conftest.$ac_ext <<_ACEOF
  8612. /* end confdefs.h. */
  8613. $ac_includes_default
  8614. int
  8615. main ()
  8616. {
  8617. static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) <= $ac_mid)];
  8618. test_array [0] = 0
  8619. ;
  8620. return 0;
  8621. }
  8622. _ACEOF
  8623. rm -f conftest.$ac_objext
  8624. if { (ac_try="$ac_compile"
  8625. case "(($ac_try" in
  8626. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8627. *) ac_try_echo=$ac_try;;
  8628. esac
  8629. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8630. $as_echo "$ac_try_echo") >&5
  8631. (eval "$ac_compile") 2>conftest.er1
  8632. ac_status=$?
  8633. grep -v '^ *+' conftest.er1 >conftest.err
  8634. rm -f conftest.er1
  8635. cat conftest.err >&5
  8636. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8637. (exit $ac_status); } && {
  8638. test -z "$ac_cxx_werror_flag" ||
  8639. test ! -s conftest.err
  8640. } && test -s conftest.$ac_objext; then
  8641. ac_hi=$ac_mid
  8642. else
  8643. $as_echo "$as_me: failed program was:" >&5
  8644. sed 's/^/| /' conftest.$ac_ext >&5
  8645. ac_lo=`expr '(' $ac_mid ')' + 1`
  8646. fi
  8647. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8648. done
  8649. case $ac_lo in
  8650. ?*) ac_cv_sizeof_time_t=$ac_lo;;
  8651. '') if test "$ac_cv_type_time_t" = yes; then
  8652. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  8653. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  8654. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (time_t)
  8655. See \`config.log' for more details." >&5
  8656. $as_echo "$as_me: error: cannot compute sizeof (time_t)
  8657. See \`config.log' for more details." >&2;}
  8658. { (exit 77); exit 77; }; }; }
  8659. else
  8660. ac_cv_sizeof_time_t=0
  8661. fi ;;
  8662. esac
  8663. else
  8664. cat >conftest.$ac_ext <<_ACEOF
  8665. /* confdefs.h. */
  8666. _ACEOF
  8667. cat confdefs.h >>conftest.$ac_ext
  8668. cat >>conftest.$ac_ext <<_ACEOF
  8669. /* end confdefs.h. */
  8670. $ac_includes_default
  8671. static long int longval () { return (long int) (sizeof (time_t)); }
  8672. static unsigned long int ulongval () { return (long int) (sizeof (time_t)); }
  8673. #include <stdio.h>
  8674. #include <stdlib.h>
  8675. int
  8676. main ()
  8677. {
  8678. FILE *f = fopen ("conftest.val", "w");
  8679. if (! f)
  8680. return 1;
  8681. if (((long int) (sizeof (time_t))) < 0)
  8682. {
  8683. long int i = longval ();
  8684. if (i != ((long int) (sizeof (time_t))))
  8685. return 1;
  8686. fprintf (f, "%ld", i);
  8687. }
  8688. else
  8689. {
  8690. unsigned long int i = ulongval ();
  8691. if (i != ((long int) (sizeof (time_t))))
  8692. return 1;
  8693. fprintf (f, "%lu", i);
  8694. }
  8695. /* Do not output a trailing newline, as this causes \r\n confusion
  8696. on some platforms. */
  8697. return ferror (f) || fclose (f) != 0;
  8698. ;
  8699. return 0;
  8700. }
  8701. _ACEOF
  8702. rm -f conftest$ac_exeext
  8703. if { (ac_try="$ac_link"
  8704. case "(($ac_try" in
  8705. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8706. *) ac_try_echo=$ac_try;;
  8707. esac
  8708. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8709. $as_echo "$ac_try_echo") >&5
  8710. (eval "$ac_link") 2>&5
  8711. ac_status=$?
  8712. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8713. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8714. { (case "(($ac_try" in
  8715. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8716. *) ac_try_echo=$ac_try;;
  8717. esac
  8718. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8719. $as_echo "$ac_try_echo") >&5
  8720. (eval "$ac_try") 2>&5
  8721. ac_status=$?
  8722. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8723. (exit $ac_status); }; }; then
  8724. ac_cv_sizeof_time_t=`cat conftest.val`
  8725. else
  8726. $as_echo "$as_me: program exited with status $ac_status" >&5
  8727. $as_echo "$as_me: failed program was:" >&5
  8728. sed 's/^/| /' conftest.$ac_ext >&5
  8729. ( exit $ac_status )
  8730. if test "$ac_cv_type_time_t" = yes; then
  8731. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  8732. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  8733. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (time_t)
  8734. See \`config.log' for more details." >&5
  8735. $as_echo "$as_me: error: cannot compute sizeof (time_t)
  8736. See \`config.log' for more details." >&2;}
  8737. { (exit 77); exit 77; }; }; }
  8738. else
  8739. ac_cv_sizeof_time_t=0
  8740. fi
  8741. fi
  8742. rm -rf conftest.dSYM
  8743. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8744. fi
  8745. rm -f conftest.val
  8746. fi
  8747. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
  8748. $as_echo "$ac_cv_sizeof_time_t" >&6; }
  8749. cat >>confdefs.h <<_ACEOF
  8750. #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
  8751. _ACEOF
  8752. { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  8753. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  8754. if test "${ac_cv_struct_tm+set}" = set; then
  8755. $as_echo_n "(cached) " >&6
  8756. else
  8757. cat >conftest.$ac_ext <<_ACEOF
  8758. /* confdefs.h. */
  8759. _ACEOF
  8760. cat confdefs.h >>conftest.$ac_ext
  8761. cat >>conftest.$ac_ext <<_ACEOF
  8762. /* end confdefs.h. */
  8763. #include <sys/types.h>
  8764. #include <time.h>
  8765. int
  8766. main ()
  8767. {
  8768. struct tm tm;
  8769. int *p = &tm.tm_sec;
  8770. return !p;
  8771. ;
  8772. return 0;
  8773. }
  8774. _ACEOF
  8775. rm -f conftest.$ac_objext
  8776. if { (ac_try="$ac_compile"
  8777. case "(($ac_try" in
  8778. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8779. *) ac_try_echo=$ac_try;;
  8780. esac
  8781. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8782. $as_echo "$ac_try_echo") >&5
  8783. (eval "$ac_compile") 2>conftest.er1
  8784. ac_status=$?
  8785. grep -v '^ *+' conftest.er1 >conftest.err
  8786. rm -f conftest.er1
  8787. cat conftest.err >&5
  8788. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8789. (exit $ac_status); } && {
  8790. test -z "$ac_cxx_werror_flag" ||
  8791. test ! -s conftest.err
  8792. } && test -s conftest.$ac_objext; then
  8793. ac_cv_struct_tm=time.h
  8794. else
  8795. $as_echo "$as_me: failed program was:" >&5
  8796. sed 's/^/| /' conftest.$ac_ext >&5
  8797. ac_cv_struct_tm=sys/time.h
  8798. fi
  8799. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8800. fi
  8801. { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  8802. $as_echo "$ac_cv_struct_tm" >&6; }
  8803. if test $ac_cv_struct_tm = sys/time.h; then
  8804. cat >>confdefs.h <<\_ACEOF
  8805. #define TM_IN_SYS_TIME 1
  8806. _ACEOF
  8807. fi
  8808. { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
  8809. $as_echo_n "checking for struct tm.tm_zone... " >&6; }
  8810. if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
  8811. $as_echo_n "(cached) " >&6
  8812. else
  8813. cat >conftest.$ac_ext <<_ACEOF
  8814. /* confdefs.h. */
  8815. _ACEOF
  8816. cat confdefs.h >>conftest.$ac_ext
  8817. cat >>conftest.$ac_ext <<_ACEOF
  8818. /* end confdefs.h. */
  8819. #include <sys/types.h>
  8820. #include <$ac_cv_struct_tm>
  8821. int
  8822. main ()
  8823. {
  8824. static struct tm ac_aggr;
  8825. if (ac_aggr.tm_zone)
  8826. return 0;
  8827. ;
  8828. return 0;
  8829. }
  8830. _ACEOF
  8831. rm -f conftest.$ac_objext
  8832. if { (ac_try="$ac_compile"
  8833. case "(($ac_try" in
  8834. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8835. *) ac_try_echo=$ac_try;;
  8836. esac
  8837. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8838. $as_echo "$ac_try_echo") >&5
  8839. (eval "$ac_compile") 2>conftest.er1
  8840. ac_status=$?
  8841. grep -v '^ *+' conftest.er1 >conftest.err
  8842. rm -f conftest.er1
  8843. cat conftest.err >&5
  8844. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8845. (exit $ac_status); } && {
  8846. test -z "$ac_cxx_werror_flag" ||
  8847. test ! -s conftest.err
  8848. } && test -s conftest.$ac_objext; then
  8849. ac_cv_member_struct_tm_tm_zone=yes
  8850. else
  8851. $as_echo "$as_me: failed program was:" >&5
  8852. sed 's/^/| /' conftest.$ac_ext >&5
  8853. cat >conftest.$ac_ext <<_ACEOF
  8854. /* confdefs.h. */
  8855. _ACEOF
  8856. cat confdefs.h >>conftest.$ac_ext
  8857. cat >>conftest.$ac_ext <<_ACEOF
  8858. /* end confdefs.h. */
  8859. #include <sys/types.h>
  8860. #include <$ac_cv_struct_tm>
  8861. int
  8862. main ()
  8863. {
  8864. static struct tm ac_aggr;
  8865. if (sizeof ac_aggr.tm_zone)
  8866. return 0;
  8867. ;
  8868. return 0;
  8869. }
  8870. _ACEOF
  8871. rm -f conftest.$ac_objext
  8872. if { (ac_try="$ac_compile"
  8873. case "(($ac_try" in
  8874. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8875. *) ac_try_echo=$ac_try;;
  8876. esac
  8877. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8878. $as_echo "$ac_try_echo") >&5
  8879. (eval "$ac_compile") 2>conftest.er1
  8880. ac_status=$?
  8881. grep -v '^ *+' conftest.er1 >conftest.err
  8882. rm -f conftest.er1
  8883. cat conftest.err >&5
  8884. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8885. (exit $ac_status); } && {
  8886. test -z "$ac_cxx_werror_flag" ||
  8887. test ! -s conftest.err
  8888. } && test -s conftest.$ac_objext; then
  8889. ac_cv_member_struct_tm_tm_zone=yes
  8890. else
  8891. $as_echo "$as_me: failed program was:" >&5
  8892. sed 's/^/| /' conftest.$ac_ext >&5
  8893. ac_cv_member_struct_tm_tm_zone=no
  8894. fi
  8895. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8896. fi
  8897. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8898. fi
  8899. { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
  8900. $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
  8901. if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
  8902. cat >>confdefs.h <<_ACEOF
  8903. #define HAVE_STRUCT_TM_TM_ZONE 1
  8904. _ACEOF
  8905. fi
  8906. if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
  8907. cat >>confdefs.h <<\_ACEOF
  8908. #define HAVE_TM_ZONE 1
  8909. _ACEOF
  8910. else
  8911. { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
  8912. $as_echo_n "checking whether tzname is declared... " >&6; }
  8913. if test "${ac_cv_have_decl_tzname+set}" = set; then
  8914. $as_echo_n "(cached) " >&6
  8915. else
  8916. cat >conftest.$ac_ext <<_ACEOF
  8917. /* confdefs.h. */
  8918. _ACEOF
  8919. cat confdefs.h >>conftest.$ac_ext
  8920. cat >>conftest.$ac_ext <<_ACEOF
  8921. /* end confdefs.h. */
  8922. #include <time.h>
  8923. int
  8924. main ()
  8925. {
  8926. #ifndef tzname
  8927. (void) tzname;
  8928. #endif
  8929. ;
  8930. return 0;
  8931. }
  8932. _ACEOF
  8933. rm -f conftest.$ac_objext
  8934. if { (ac_try="$ac_compile"
  8935. case "(($ac_try" in
  8936. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8937. *) ac_try_echo=$ac_try;;
  8938. esac
  8939. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8940. $as_echo "$ac_try_echo") >&5
  8941. (eval "$ac_compile") 2>conftest.er1
  8942. ac_status=$?
  8943. grep -v '^ *+' conftest.er1 >conftest.err
  8944. rm -f conftest.er1
  8945. cat conftest.err >&5
  8946. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8947. (exit $ac_status); } && {
  8948. test -z "$ac_cxx_werror_flag" ||
  8949. test ! -s conftest.err
  8950. } && test -s conftest.$ac_objext; then
  8951. ac_cv_have_decl_tzname=yes
  8952. else
  8953. $as_echo "$as_me: failed program was:" >&5
  8954. sed 's/^/| /' conftest.$ac_ext >&5
  8955. ac_cv_have_decl_tzname=no
  8956. fi
  8957. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8958. fi
  8959. { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
  8960. $as_echo "$ac_cv_have_decl_tzname" >&6; }
  8961. if test "x$ac_cv_have_decl_tzname" = x""yes; then
  8962. cat >>confdefs.h <<_ACEOF
  8963. #define HAVE_DECL_TZNAME 1
  8964. _ACEOF
  8965. else
  8966. cat >>confdefs.h <<_ACEOF
  8967. #define HAVE_DECL_TZNAME 0
  8968. _ACEOF
  8969. fi
  8970. { $as_echo "$as_me:$LINENO: checking for tzname" >&5
  8971. $as_echo_n "checking for tzname... " >&6; }
  8972. if test "${ac_cv_var_tzname+set}" = set; then
  8973. $as_echo_n "(cached) " >&6
  8974. else
  8975. cat >conftest.$ac_ext <<_ACEOF
  8976. /* confdefs.h. */
  8977. _ACEOF
  8978. cat confdefs.h >>conftest.$ac_ext
  8979. cat >>conftest.$ac_ext <<_ACEOF
  8980. /* end confdefs.h. */
  8981. #include <time.h>
  8982. #if !HAVE_DECL_TZNAME
  8983. extern char *tzname[];
  8984. #endif
  8985. int
  8986. main ()
  8987. {
  8988. return tzname[0][0];
  8989. ;
  8990. return 0;
  8991. }
  8992. _ACEOF
  8993. rm -f conftest.$ac_objext conftest$ac_exeext
  8994. if { (ac_try="$ac_link"
  8995. case "(($ac_try" in
  8996. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8997. *) ac_try_echo=$ac_try;;
  8998. esac
  8999. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9000. $as_echo "$ac_try_echo") >&5
  9001. (eval "$ac_link") 2>conftest.er1
  9002. ac_status=$?
  9003. grep -v '^ *+' conftest.er1 >conftest.err
  9004. rm -f conftest.er1
  9005. cat conftest.err >&5
  9006. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9007. (exit $ac_status); } && {
  9008. test -z "$ac_cxx_werror_flag" ||
  9009. test ! -s conftest.err
  9010. } && test -s conftest$ac_exeext && {
  9011. test "$cross_compiling" = yes ||
  9012. $as_test_x conftest$ac_exeext
  9013. }; then
  9014. ac_cv_var_tzname=yes
  9015. else
  9016. $as_echo "$as_me: failed program was:" >&5
  9017. sed 's/^/| /' conftest.$ac_ext >&5
  9018. ac_cv_var_tzname=no
  9019. fi
  9020. rm -rf conftest.dSYM
  9021. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9022. conftest$ac_exeext conftest.$ac_ext
  9023. fi
  9024. { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
  9025. $as_echo "$ac_cv_var_tzname" >&6; }
  9026. if test $ac_cv_var_tzname = yes; then
  9027. cat >>confdefs.h <<\_ACEOF
  9028. #define HAVE_TZNAME 1
  9029. _ACEOF
  9030. fi
  9031. fi
  9032. { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  9033. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  9034. if test "${ac_cv_struct_tm+set}" = set; then
  9035. $as_echo_n "(cached) " >&6
  9036. else
  9037. cat >conftest.$ac_ext <<_ACEOF
  9038. /* confdefs.h. */
  9039. _ACEOF
  9040. cat confdefs.h >>conftest.$ac_ext
  9041. cat >>conftest.$ac_ext <<_ACEOF
  9042. /* end confdefs.h. */
  9043. #include <sys/types.h>
  9044. #include <time.h>
  9045. int
  9046. main ()
  9047. {
  9048. struct tm tm;
  9049. int *p = &tm.tm_sec;
  9050. return !p;
  9051. ;
  9052. return 0;
  9053. }
  9054. _ACEOF
  9055. rm -f conftest.$ac_objext
  9056. if { (ac_try="$ac_compile"
  9057. case "(($ac_try" in
  9058. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9059. *) ac_try_echo=$ac_try;;
  9060. esac
  9061. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9062. $as_echo "$ac_try_echo") >&5
  9063. (eval "$ac_compile") 2>conftest.er1
  9064. ac_status=$?
  9065. grep -v '^ *+' conftest.er1 >conftest.err
  9066. rm -f conftest.er1
  9067. cat conftest.err >&5
  9068. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9069. (exit $ac_status); } && {
  9070. test -z "$ac_cxx_werror_flag" ||
  9071. test ! -s conftest.err
  9072. } && test -s conftest.$ac_objext; then
  9073. ac_cv_struct_tm=time.h
  9074. else
  9075. $as_echo "$as_me: failed program was:" >&5
  9076. sed 's/^/| /' conftest.$ac_ext >&5
  9077. ac_cv_struct_tm=sys/time.h
  9078. fi
  9079. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9080. fi
  9081. { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  9082. $as_echo "$ac_cv_struct_tm" >&6; }
  9083. if test $ac_cv_struct_tm = sys/time.h; then
  9084. cat >>confdefs.h <<\_ACEOF
  9085. #define TM_IN_SYS_TIME 1
  9086. _ACEOF
  9087. fi
  9088. # Checks for library functions
  9089. for ac_header in vfork.h
  9090. do
  9091. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9092. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9093. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  9094. $as_echo_n "checking for $ac_header... " >&6; }
  9095. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9096. $as_echo_n "(cached) " >&6
  9097. fi
  9098. ac_res=`eval 'as_val=${'$as_ac_Header'}
  9099. $as_echo "$as_val"'`
  9100. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  9101. $as_echo "$ac_res" >&6; }
  9102. else
  9103. # Is the header compilable?
  9104. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9105. $as_echo_n "checking $ac_header usability... " >&6; }
  9106. cat >conftest.$ac_ext <<_ACEOF
  9107. /* confdefs.h. */
  9108. _ACEOF
  9109. cat confdefs.h >>conftest.$ac_ext
  9110. cat >>conftest.$ac_ext <<_ACEOF
  9111. /* end confdefs.h. */
  9112. $ac_includes_default
  9113. #include <$ac_header>
  9114. _ACEOF
  9115. rm -f conftest.$ac_objext
  9116. if { (ac_try="$ac_compile"
  9117. case "(($ac_try" in
  9118. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9119. *) ac_try_echo=$ac_try;;
  9120. esac
  9121. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9122. $as_echo "$ac_try_echo") >&5
  9123. (eval "$ac_compile") 2>conftest.er1
  9124. ac_status=$?
  9125. grep -v '^ *+' conftest.er1 >conftest.err
  9126. rm -f conftest.er1
  9127. cat conftest.err >&5
  9128. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9129. (exit $ac_status); } && {
  9130. test -z "$ac_cxx_werror_flag" ||
  9131. test ! -s conftest.err
  9132. } && test -s conftest.$ac_objext; then
  9133. ac_header_compiler=yes
  9134. else
  9135. $as_echo "$as_me: failed program was:" >&5
  9136. sed 's/^/| /' conftest.$ac_ext >&5
  9137. ac_header_compiler=no
  9138. fi
  9139. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9140. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9141. $as_echo "$ac_header_compiler" >&6; }
  9142. # Is the header present?
  9143. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9144. $as_echo_n "checking $ac_header presence... " >&6; }
  9145. cat >conftest.$ac_ext <<_ACEOF
  9146. /* confdefs.h. */
  9147. _ACEOF
  9148. cat confdefs.h >>conftest.$ac_ext
  9149. cat >>conftest.$ac_ext <<_ACEOF
  9150. /* end confdefs.h. */
  9151. #include <$ac_header>
  9152. _ACEOF
  9153. if { (ac_try="$ac_cpp conftest.$ac_ext"
  9154. case "(($ac_try" in
  9155. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9156. *) ac_try_echo=$ac_try;;
  9157. esac
  9158. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9159. $as_echo "$ac_try_echo") >&5
  9160. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9161. ac_status=$?
  9162. grep -v '^ *+' conftest.er1 >conftest.err
  9163. rm -f conftest.er1
  9164. cat conftest.err >&5
  9165. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9166. (exit $ac_status); } >/dev/null && {
  9167. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  9168. test ! -s conftest.err
  9169. }; then
  9170. ac_header_preproc=yes
  9171. else
  9172. $as_echo "$as_me: failed program was:" >&5
  9173. sed 's/^/| /' conftest.$ac_ext >&5
  9174. ac_header_preproc=no
  9175. fi
  9176. rm -f conftest.err conftest.$ac_ext
  9177. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9178. $as_echo "$ac_header_preproc" >&6; }
  9179. # So? What about this header?
  9180. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  9181. yes:no: )
  9182. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9183. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9184. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9185. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9186. ac_header_preproc=yes
  9187. ;;
  9188. no:yes:* )
  9189. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9190. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9191. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9192. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9193. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9194. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9195. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9196. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9197. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9198. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9199. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9200. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9201. ;;
  9202. esac
  9203. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  9204. $as_echo_n "checking for $ac_header... " >&6; }
  9205. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9206. $as_echo_n "(cached) " >&6
  9207. else
  9208. eval "$as_ac_Header=\$ac_header_preproc"
  9209. fi
  9210. ac_res=`eval 'as_val=${'$as_ac_Header'}
  9211. $as_echo "$as_val"'`
  9212. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  9213. $as_echo "$ac_res" >&6; }
  9214. fi
  9215. as_val=`eval 'as_val=${'$as_ac_Header'}
  9216. $as_echo "$as_val"'`
  9217. if test "x$as_val" = x""yes; then
  9218. cat >>confdefs.h <<_ACEOF
  9219. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9220. _ACEOF
  9221. fi
  9222. done
  9223. for ac_func in fork vfork
  9224. do
  9225. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9226. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  9227. $as_echo_n "checking for $ac_func... " >&6; }
  9228. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  9229. $as_echo_n "(cached) " >&6
  9230. else
  9231. cat >conftest.$ac_ext <<_ACEOF
  9232. /* confdefs.h. */
  9233. _ACEOF
  9234. cat confdefs.h >>conftest.$ac_ext
  9235. cat >>conftest.$ac_ext <<_ACEOF
  9236. /* end confdefs.h. */
  9237. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9238. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9239. #define $ac_func innocuous_$ac_func
  9240. /* System header to define __stub macros and hopefully few prototypes,
  9241. which can conflict with char $ac_func (); below.
  9242. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9243. <limits.h> exists even on freestanding compilers. */
  9244. #ifdef __STDC__
  9245. # include <limits.h>
  9246. #else
  9247. # include <assert.h>
  9248. #endif
  9249. #undef $ac_func
  9250. /* Override any GCC internal prototype to avoid an error.
  9251. Use char because int might match the return type of a GCC
  9252. builtin and then its argument prototype would still apply. */
  9253. #ifdef __cplusplus
  9254. extern "C"
  9255. #endif
  9256. char $ac_func ();
  9257. /* The GNU C library defines this for functions which it implements
  9258. to always fail with ENOSYS. Some functions are actually named
  9259. something starting with __ and the normal name is an alias. */
  9260. #if defined __stub_$ac_func || defined __stub___$ac_func
  9261. choke me
  9262. #endif
  9263. int
  9264. main ()
  9265. {
  9266. return $ac_func ();
  9267. ;
  9268. return 0;
  9269. }
  9270. _ACEOF
  9271. rm -f conftest.$ac_objext conftest$ac_exeext
  9272. if { (ac_try="$ac_link"
  9273. case "(($ac_try" in
  9274. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9275. *) ac_try_echo=$ac_try;;
  9276. esac
  9277. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9278. $as_echo "$ac_try_echo") >&5
  9279. (eval "$ac_link") 2>conftest.er1
  9280. ac_status=$?
  9281. grep -v '^ *+' conftest.er1 >conftest.err
  9282. rm -f conftest.er1
  9283. cat conftest.err >&5
  9284. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9285. (exit $ac_status); } && {
  9286. test -z "$ac_cxx_werror_flag" ||
  9287. test ! -s conftest.err
  9288. } && test -s conftest$ac_exeext && {
  9289. test "$cross_compiling" = yes ||
  9290. $as_test_x conftest$ac_exeext
  9291. }; then
  9292. eval "$as_ac_var=yes"
  9293. else
  9294. $as_echo "$as_me: failed program was:" >&5
  9295. sed 's/^/| /' conftest.$ac_ext >&5
  9296. eval "$as_ac_var=no"
  9297. fi
  9298. rm -rf conftest.dSYM
  9299. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9300. conftest$ac_exeext conftest.$ac_ext
  9301. fi
  9302. ac_res=`eval 'as_val=${'$as_ac_var'}
  9303. $as_echo "$as_val"'`
  9304. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  9305. $as_echo "$ac_res" >&6; }
  9306. as_val=`eval 'as_val=${'$as_ac_var'}
  9307. $as_echo "$as_val"'`
  9308. if test "x$as_val" = x""yes; then
  9309. cat >>confdefs.h <<_ACEOF
  9310. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9311. _ACEOF
  9312. fi
  9313. done
  9314. if test "x$ac_cv_func_fork" = xyes; then
  9315. { $as_echo "$as_me:$LINENO: checking for working fork" >&5
  9316. $as_echo_n "checking for working fork... " >&6; }
  9317. if test "${ac_cv_func_fork_works+set}" = set; then
  9318. $as_echo_n "(cached) " >&6
  9319. else
  9320. if test "$cross_compiling" = yes; then
  9321. ac_cv_func_fork_works=cross
  9322. else
  9323. cat >conftest.$ac_ext <<_ACEOF
  9324. /* confdefs.h. */
  9325. _ACEOF
  9326. cat confdefs.h >>conftest.$ac_ext
  9327. cat >>conftest.$ac_ext <<_ACEOF
  9328. /* end confdefs.h. */
  9329. $ac_includes_default
  9330. int
  9331. main ()
  9332. {
  9333. /* By Ruediger Kuhlmann. */
  9334. return fork () < 0;
  9335. ;
  9336. return 0;
  9337. }
  9338. _ACEOF
  9339. rm -f conftest$ac_exeext
  9340. if { (ac_try="$ac_link"
  9341. case "(($ac_try" in
  9342. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9343. *) ac_try_echo=$ac_try;;
  9344. esac
  9345. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9346. $as_echo "$ac_try_echo") >&5
  9347. (eval "$ac_link") 2>&5
  9348. ac_status=$?
  9349. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9350. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9351. { (case "(($ac_try" in
  9352. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9353. *) ac_try_echo=$ac_try;;
  9354. esac
  9355. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9356. $as_echo "$ac_try_echo") >&5
  9357. (eval "$ac_try") 2>&5
  9358. ac_status=$?
  9359. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9360. (exit $ac_status); }; }; then
  9361. ac_cv_func_fork_works=yes
  9362. else
  9363. $as_echo "$as_me: program exited with status $ac_status" >&5
  9364. $as_echo "$as_me: failed program was:" >&5
  9365. sed 's/^/| /' conftest.$ac_ext >&5
  9366. ( exit $ac_status )
  9367. ac_cv_func_fork_works=no
  9368. fi
  9369. rm -rf conftest.dSYM
  9370. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9371. fi
  9372. fi
  9373. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
  9374. $as_echo "$ac_cv_func_fork_works" >&6; }
  9375. else
  9376. ac_cv_func_fork_works=$ac_cv_func_fork
  9377. fi
  9378. if test "x$ac_cv_func_fork_works" = xcross; then
  9379. case $host in
  9380. *-*-amigaos* | *-*-msdosdjgpp*)
  9381. # Override, as these systems have only a dummy fork() stub
  9382. ac_cv_func_fork_works=no
  9383. ;;
  9384. *)
  9385. ac_cv_func_fork_works=yes
  9386. ;;
  9387. esac
  9388. { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  9389. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  9390. fi
  9391. ac_cv_func_vfork_works=$ac_cv_func_vfork
  9392. if test "x$ac_cv_func_vfork" = xyes; then
  9393. { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
  9394. $as_echo_n "checking for working vfork... " >&6; }
  9395. if test "${ac_cv_func_vfork_works+set}" = set; then
  9396. $as_echo_n "(cached) " >&6
  9397. else
  9398. if test "$cross_compiling" = yes; then
  9399. ac_cv_func_vfork_works=cross
  9400. else
  9401. cat >conftest.$ac_ext <<_ACEOF
  9402. /* confdefs.h. */
  9403. _ACEOF
  9404. cat confdefs.h >>conftest.$ac_ext
  9405. cat >>conftest.$ac_ext <<_ACEOF
  9406. /* end confdefs.h. */
  9407. /* Thanks to Paul Eggert for this test. */
  9408. $ac_includes_default
  9409. #include <sys/wait.h>
  9410. #ifdef HAVE_VFORK_H
  9411. # include <vfork.h>
  9412. #endif
  9413. /* On some sparc systems, changes by the child to local and incoming
  9414. argument registers are propagated back to the parent. The compiler
  9415. is told about this with #include <vfork.h>, but some compilers
  9416. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  9417. static variable whose address is put into a register that is
  9418. clobbered by the vfork. */
  9419. static void
  9420. #ifdef __cplusplus
  9421. sparc_address_test (int arg)
  9422. # else
  9423. sparc_address_test (arg) int arg;
  9424. #endif
  9425. {
  9426. static pid_t child;
  9427. if (!child) {
  9428. child = vfork ();
  9429. if (child < 0) {
  9430. perror ("vfork");
  9431. _exit(2);
  9432. }
  9433. if (!child) {
  9434. arg = getpid();
  9435. write(-1, "", 0);
  9436. _exit (arg);
  9437. }
  9438. }
  9439. }
  9440. int
  9441. main ()
  9442. {
  9443. pid_t parent = getpid ();
  9444. pid_t child;
  9445. sparc_address_test (0);
  9446. child = vfork ();
  9447. if (child == 0) {
  9448. /* Here is another test for sparc vfork register problems. This
  9449. test uses lots of local variables, at least as many local
  9450. variables as main has allocated so far including compiler
  9451. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  9452. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  9453. reuse the register of parent for one of the local variables,
  9454. since it will think that parent can't possibly be used any more
  9455. in this routine. Assigning to the local variable will thus
  9456. munge parent in the parent process. */
  9457. pid_t
  9458. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  9459. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  9460. /* Convince the compiler that p..p7 are live; otherwise, it might
  9461. use the same hardware register for all 8 local variables. */
  9462. if (p != p1 || p != p2 || p != p3 || p != p4
  9463. || p != p5 || p != p6 || p != p7)
  9464. _exit(1);
  9465. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  9466. from child file descriptors. If the child closes a descriptor
  9467. before it execs or exits, this munges the parent's descriptor
  9468. as well. Test for this by closing stdout in the child. */
  9469. _exit(close(fileno(stdout)) != 0);
  9470. } else {
  9471. int status;
  9472. struct stat st;
  9473. while (wait(&status) != child)
  9474. ;
  9475. return (
  9476. /* Was there some problem with vforking? */
  9477. child < 0
  9478. /* Did the child fail? (This shouldn't happen.) */
  9479. || status
  9480. /* Did the vfork/compiler bug occur? */
  9481. || parent != getpid()
  9482. /* Did the file descriptor bug occur? */
  9483. || fstat(fileno(stdout), &st) != 0
  9484. );
  9485. }
  9486. }
  9487. _ACEOF
  9488. rm -f conftest$ac_exeext
  9489. if { (ac_try="$ac_link"
  9490. case "(($ac_try" in
  9491. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9492. *) ac_try_echo=$ac_try;;
  9493. esac
  9494. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9495. $as_echo "$ac_try_echo") >&5
  9496. (eval "$ac_link") 2>&5
  9497. ac_status=$?
  9498. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9499. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9500. { (case "(($ac_try" in
  9501. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9502. *) ac_try_echo=$ac_try;;
  9503. esac
  9504. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9505. $as_echo "$ac_try_echo") >&5
  9506. (eval "$ac_try") 2>&5
  9507. ac_status=$?
  9508. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9509. (exit $ac_status); }; }; then
  9510. ac_cv_func_vfork_works=yes
  9511. else
  9512. $as_echo "$as_me: program exited with status $ac_status" >&5
  9513. $as_echo "$as_me: failed program was:" >&5
  9514. sed 's/^/| /' conftest.$ac_ext >&5
  9515. ( exit $ac_status )
  9516. ac_cv_func_vfork_works=no
  9517. fi
  9518. rm -rf conftest.dSYM
  9519. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9520. fi
  9521. fi
  9522. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
  9523. $as_echo "$ac_cv_func_vfork_works" >&6; }
  9524. fi;
  9525. if test "x$ac_cv_func_fork_works" = xcross; then
  9526. ac_cv_func_vfork_works=$ac_cv_func_vfork
  9527. { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  9528. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  9529. fi
  9530. if test "x$ac_cv_func_vfork_works" = xyes; then
  9531. cat >>confdefs.h <<\_ACEOF
  9532. #define HAVE_WORKING_VFORK 1
  9533. _ACEOF
  9534. else
  9535. cat >>confdefs.h <<\_ACEOF
  9536. #define vfork fork
  9537. _ACEOF
  9538. fi
  9539. if test "x$ac_cv_func_fork_works" = xyes; then
  9540. cat >>confdefs.h <<\_ACEOF
  9541. #define HAVE_WORKING_FORK 1
  9542. _ACEOF
  9543. fi
  9544. { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  9545. $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
  9546. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  9547. $as_echo_n "(cached) " >&6
  9548. else
  9549. rm -f conftest.sym conftest.file
  9550. echo >conftest.file
  9551. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  9552. if test "$cross_compiling" = yes; then
  9553. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9554. else
  9555. cat >conftest.$ac_ext <<_ACEOF
  9556. /* confdefs.h. */
  9557. _ACEOF
  9558. cat confdefs.h >>conftest.$ac_ext
  9559. cat >>conftest.$ac_ext <<_ACEOF
  9560. /* end confdefs.h. */
  9561. $ac_includes_default
  9562. int
  9563. main ()
  9564. {
  9565. struct stat sbuf;
  9566. /* Linux will dereference the symlink and fail.
  9567. That is better in the sense that it means we will not
  9568. have to compile and use the lstat wrapper. */
  9569. return lstat ("conftest.sym/", &sbuf) == 0;
  9570. ;
  9571. return 0;
  9572. }
  9573. _ACEOF
  9574. rm -f conftest$ac_exeext
  9575. if { (ac_try="$ac_link"
  9576. case "(($ac_try" in
  9577. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9578. *) ac_try_echo=$ac_try;;
  9579. esac
  9580. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9581. $as_echo "$ac_try_echo") >&5
  9582. (eval "$ac_link") 2>&5
  9583. ac_status=$?
  9584. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9585. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9586. { (case "(($ac_try" in
  9587. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9588. *) ac_try_echo=$ac_try;;
  9589. esac
  9590. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9591. $as_echo "$ac_try_echo") >&5
  9592. (eval "$ac_try") 2>&5
  9593. ac_status=$?
  9594. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9595. (exit $ac_status); }; }; then
  9596. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  9597. else
  9598. $as_echo "$as_me: program exited with status $ac_status" >&5
  9599. $as_echo "$as_me: failed program was:" >&5
  9600. sed 's/^/| /' conftest.$ac_ext >&5
  9601. ( exit $ac_status )
  9602. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9603. fi
  9604. rm -rf conftest.dSYM
  9605. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9606. fi
  9607. else
  9608. # If the `ln -s' command failed, then we probably don't even
  9609. # have an lstat function.
  9610. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9611. fi
  9612. rm -f conftest.sym conftest.file
  9613. fi
  9614. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  9615. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  9616. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  9617. cat >>confdefs.h <<_ACEOF
  9618. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  9619. _ACEOF
  9620. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  9621. case " $LIBOBJS " in
  9622. *" lstat.$ac_objext "* ) ;;
  9623. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  9624. ;;
  9625. esac
  9626. fi
  9627. { $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
  9628. $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
  9629. if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
  9630. $as_echo_n "(cached) " >&6
  9631. else
  9632. if test "$cross_compiling" = yes; then
  9633. ac_cv_func_lstat_empty_string_bug=yes
  9634. else
  9635. cat >conftest.$ac_ext <<_ACEOF
  9636. /* confdefs.h. */
  9637. _ACEOF
  9638. cat confdefs.h >>conftest.$ac_ext
  9639. cat >>conftest.$ac_ext <<_ACEOF
  9640. /* end confdefs.h. */
  9641. $ac_includes_default
  9642. int
  9643. main ()
  9644. {
  9645. struct stat sbuf;
  9646. return lstat ("", &sbuf) == 0;
  9647. ;
  9648. return 0;
  9649. }
  9650. _ACEOF
  9651. rm -f conftest$ac_exeext
  9652. if { (ac_try="$ac_link"
  9653. case "(($ac_try" in
  9654. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9655. *) ac_try_echo=$ac_try;;
  9656. esac
  9657. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9658. $as_echo "$ac_try_echo") >&5
  9659. (eval "$ac_link") 2>&5
  9660. ac_status=$?
  9661. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9662. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9663. { (case "(($ac_try" in
  9664. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9665. *) ac_try_echo=$ac_try;;
  9666. esac
  9667. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9668. $as_echo "$ac_try_echo") >&5
  9669. (eval "$ac_try") 2>&5
  9670. ac_status=$?
  9671. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9672. (exit $ac_status); }; }; then
  9673. ac_cv_func_lstat_empty_string_bug=no
  9674. else
  9675. $as_echo "$as_me: program exited with status $ac_status" >&5
  9676. $as_echo "$as_me: failed program was:" >&5
  9677. sed 's/^/| /' conftest.$ac_ext >&5
  9678. ( exit $ac_status )
  9679. ac_cv_func_lstat_empty_string_bug=yes
  9680. fi
  9681. rm -rf conftest.dSYM
  9682. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9683. fi
  9684. fi
  9685. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
  9686. $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
  9687. if test $ac_cv_func_lstat_empty_string_bug = yes; then
  9688. case " $LIBOBJS " in
  9689. *" lstat.$ac_objext "* ) ;;
  9690. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  9691. ;;
  9692. esac
  9693. cat >>confdefs.h <<_ACEOF
  9694. #define HAVE_LSTAT_EMPTY_STRING_BUG 1
  9695. _ACEOF
  9696. fi
  9697. { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  9698. $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
  9699. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  9700. $as_echo_n "(cached) " >&6
  9701. else
  9702. rm -f conftest.sym conftest.file
  9703. echo >conftest.file
  9704. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  9705. if test "$cross_compiling" = yes; then
  9706. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9707. else
  9708. cat >conftest.$ac_ext <<_ACEOF
  9709. /* confdefs.h. */
  9710. _ACEOF
  9711. cat confdefs.h >>conftest.$ac_ext
  9712. cat >>conftest.$ac_ext <<_ACEOF
  9713. /* end confdefs.h. */
  9714. $ac_includes_default
  9715. int
  9716. main ()
  9717. {
  9718. struct stat sbuf;
  9719. /* Linux will dereference the symlink and fail.
  9720. That is better in the sense that it means we will not
  9721. have to compile and use the lstat wrapper. */
  9722. return lstat ("conftest.sym/", &sbuf) == 0;
  9723. ;
  9724. return 0;
  9725. }
  9726. _ACEOF
  9727. rm -f conftest$ac_exeext
  9728. if { (ac_try="$ac_link"
  9729. case "(($ac_try" in
  9730. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9731. *) ac_try_echo=$ac_try;;
  9732. esac
  9733. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9734. $as_echo "$ac_try_echo") >&5
  9735. (eval "$ac_link") 2>&5
  9736. ac_status=$?
  9737. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9738. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9739. { (case "(($ac_try" in
  9740. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9741. *) ac_try_echo=$ac_try;;
  9742. esac
  9743. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9744. $as_echo "$ac_try_echo") >&5
  9745. (eval "$ac_try") 2>&5
  9746. ac_status=$?
  9747. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9748. (exit $ac_status); }; }; then
  9749. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  9750. else
  9751. $as_echo "$as_me: program exited with status $ac_status" >&5
  9752. $as_echo "$as_me: failed program was:" >&5
  9753. sed 's/^/| /' conftest.$ac_ext >&5
  9754. ( exit $ac_status )
  9755. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9756. fi
  9757. rm -rf conftest.dSYM
  9758. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9759. fi
  9760. else
  9761. # If the `ln -s' command failed, then we probably don't even
  9762. # have an lstat function.
  9763. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9764. fi
  9765. rm -f conftest.sym conftest.file
  9766. fi
  9767. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  9768. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  9769. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  9770. cat >>confdefs.h <<_ACEOF
  9771. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  9772. _ACEOF
  9773. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  9774. case " $LIBOBJS " in
  9775. *" lstat.$ac_objext "* ) ;;
  9776. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  9777. ;;
  9778. esac
  9779. fi
  9780. for ac_header in stdlib.h
  9781. do
  9782. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9783. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9784. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  9785. $as_echo_n "checking for $ac_header... " >&6; }
  9786. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9787. $as_echo_n "(cached) " >&6
  9788. fi
  9789. ac_res=`eval 'as_val=${'$as_ac_Header'}
  9790. $as_echo "$as_val"'`
  9791. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  9792. $as_echo "$ac_res" >&6; }
  9793. else
  9794. # Is the header compilable?
  9795. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9796. $as_echo_n "checking $ac_header usability... " >&6; }
  9797. cat >conftest.$ac_ext <<_ACEOF
  9798. /* confdefs.h. */
  9799. _ACEOF
  9800. cat confdefs.h >>conftest.$ac_ext
  9801. cat >>conftest.$ac_ext <<_ACEOF
  9802. /* end confdefs.h. */
  9803. $ac_includes_default
  9804. #include <$ac_header>
  9805. _ACEOF
  9806. rm -f conftest.$ac_objext
  9807. if { (ac_try="$ac_compile"
  9808. case "(($ac_try" in
  9809. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9810. *) ac_try_echo=$ac_try;;
  9811. esac
  9812. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9813. $as_echo "$ac_try_echo") >&5
  9814. (eval "$ac_compile") 2>conftest.er1
  9815. ac_status=$?
  9816. grep -v '^ *+' conftest.er1 >conftest.err
  9817. rm -f conftest.er1
  9818. cat conftest.err >&5
  9819. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9820. (exit $ac_status); } && {
  9821. test -z "$ac_cxx_werror_flag" ||
  9822. test ! -s conftest.err
  9823. } && test -s conftest.$ac_objext; then
  9824. ac_header_compiler=yes
  9825. else
  9826. $as_echo "$as_me: failed program was:" >&5
  9827. sed 's/^/| /' conftest.$ac_ext >&5
  9828. ac_header_compiler=no
  9829. fi
  9830. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9831. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9832. $as_echo "$ac_header_compiler" >&6; }
  9833. # Is the header present?
  9834. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9835. $as_echo_n "checking $ac_header presence... " >&6; }
  9836. cat >conftest.$ac_ext <<_ACEOF
  9837. /* confdefs.h. */
  9838. _ACEOF
  9839. cat confdefs.h >>conftest.$ac_ext
  9840. cat >>conftest.$ac_ext <<_ACEOF
  9841. /* end confdefs.h. */
  9842. #include <$ac_header>
  9843. _ACEOF
  9844. if { (ac_try="$ac_cpp conftest.$ac_ext"
  9845. case "(($ac_try" in
  9846. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9847. *) ac_try_echo=$ac_try;;
  9848. esac
  9849. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9850. $as_echo "$ac_try_echo") >&5
  9851. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9852. ac_status=$?
  9853. grep -v '^ *+' conftest.er1 >conftest.err
  9854. rm -f conftest.er1
  9855. cat conftest.err >&5
  9856. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9857. (exit $ac_status); } >/dev/null && {
  9858. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  9859. test ! -s conftest.err
  9860. }; then
  9861. ac_header_preproc=yes
  9862. else
  9863. $as_echo "$as_me: failed program was:" >&5
  9864. sed 's/^/| /' conftest.$ac_ext >&5
  9865. ac_header_preproc=no
  9866. fi
  9867. rm -f conftest.err conftest.$ac_ext
  9868. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9869. $as_echo "$ac_header_preproc" >&6; }
  9870. # So? What about this header?
  9871. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  9872. yes:no: )
  9873. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9874. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9875. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9876. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9877. ac_header_preproc=yes
  9878. ;;
  9879. no:yes:* )
  9880. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9881. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9882. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9883. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9884. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9885. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9886. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9887. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9888. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9889. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9890. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9891. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9892. ;;
  9893. esac
  9894. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  9895. $as_echo_n "checking for $ac_header... " >&6; }
  9896. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9897. $as_echo_n "(cached) " >&6
  9898. else
  9899. eval "$as_ac_Header=\$ac_header_preproc"
  9900. fi
  9901. ac_res=`eval 'as_val=${'$as_ac_Header'}
  9902. $as_echo "$as_val"'`
  9903. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  9904. $as_echo "$ac_res" >&6; }
  9905. fi
  9906. as_val=`eval 'as_val=${'$as_ac_Header'}
  9907. $as_echo "$as_val"'`
  9908. if test "x$as_val" = x""yes; then
  9909. cat >>confdefs.h <<_ACEOF
  9910. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9911. _ACEOF
  9912. fi
  9913. done
  9914. { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  9915. $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
  9916. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  9917. $as_echo_n "(cached) " >&6
  9918. else
  9919. if test "$cross_compiling" = yes; then
  9920. ac_cv_func_malloc_0_nonnull=no
  9921. else
  9922. cat >conftest.$ac_ext <<_ACEOF
  9923. /* confdefs.h. */
  9924. _ACEOF
  9925. cat confdefs.h >>conftest.$ac_ext
  9926. cat >>conftest.$ac_ext <<_ACEOF
  9927. /* end confdefs.h. */
  9928. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  9929. # include <stdlib.h>
  9930. #else
  9931. char *malloc ();
  9932. #endif
  9933. int
  9934. main ()
  9935. {
  9936. return ! malloc (0);
  9937. ;
  9938. return 0;
  9939. }
  9940. _ACEOF
  9941. rm -f conftest$ac_exeext
  9942. if { (ac_try="$ac_link"
  9943. case "(($ac_try" in
  9944. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9945. *) ac_try_echo=$ac_try;;
  9946. esac
  9947. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9948. $as_echo "$ac_try_echo") >&5
  9949. (eval "$ac_link") 2>&5
  9950. ac_status=$?
  9951. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9952. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9953. { (case "(($ac_try" in
  9954. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9955. *) ac_try_echo=$ac_try;;
  9956. esac
  9957. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9958. $as_echo "$ac_try_echo") >&5
  9959. (eval "$ac_try") 2>&5
  9960. ac_status=$?
  9961. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9962. (exit $ac_status); }; }; then
  9963. ac_cv_func_malloc_0_nonnull=yes
  9964. else
  9965. $as_echo "$as_me: program exited with status $ac_status" >&5
  9966. $as_echo "$as_me: failed program was:" >&5
  9967. sed 's/^/| /' conftest.$ac_ext >&5
  9968. ( exit $ac_status )
  9969. ac_cv_func_malloc_0_nonnull=no
  9970. fi
  9971. rm -rf conftest.dSYM
  9972. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9973. fi
  9974. fi
  9975. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  9976. $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
  9977. if test $ac_cv_func_malloc_0_nonnull = yes; then
  9978. cat >>confdefs.h <<\_ACEOF
  9979. #define HAVE_MALLOC 1
  9980. _ACEOF
  9981. else
  9982. cat >>confdefs.h <<\_ACEOF
  9983. #define HAVE_MALLOC 0
  9984. _ACEOF
  9985. case " $LIBOBJS " in
  9986. *" malloc.$ac_objext "* ) ;;
  9987. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  9988. ;;
  9989. esac
  9990. cat >>confdefs.h <<\_ACEOF
  9991. #define malloc rpl_malloc
  9992. _ACEOF
  9993. fi
  9994. for ac_header in $ac_header_list
  9995. do
  9996. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9997. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9998. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  9999. $as_echo_n "checking for $ac_header... " >&6; }
  10000. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10001. $as_echo_n "(cached) " >&6
  10002. fi
  10003. ac_res=`eval 'as_val=${'$as_ac_Header'}
  10004. $as_echo "$as_val"'`
  10005. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  10006. $as_echo "$ac_res" >&6; }
  10007. else
  10008. # Is the header compilable?
  10009. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10010. $as_echo_n "checking $ac_header usability... " >&6; }
  10011. cat >conftest.$ac_ext <<_ACEOF
  10012. /* confdefs.h. */
  10013. _ACEOF
  10014. cat confdefs.h >>conftest.$ac_ext
  10015. cat >>conftest.$ac_ext <<_ACEOF
  10016. /* end confdefs.h. */
  10017. $ac_includes_default
  10018. #include <$ac_header>
  10019. _ACEOF
  10020. rm -f conftest.$ac_objext
  10021. if { (ac_try="$ac_compile"
  10022. case "(($ac_try" in
  10023. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10024. *) ac_try_echo=$ac_try;;
  10025. esac
  10026. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10027. $as_echo "$ac_try_echo") >&5
  10028. (eval "$ac_compile") 2>conftest.er1
  10029. ac_status=$?
  10030. grep -v '^ *+' conftest.er1 >conftest.err
  10031. rm -f conftest.er1
  10032. cat conftest.err >&5
  10033. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10034. (exit $ac_status); } && {
  10035. test -z "$ac_cxx_werror_flag" ||
  10036. test ! -s conftest.err
  10037. } && test -s conftest.$ac_objext; then
  10038. ac_header_compiler=yes
  10039. else
  10040. $as_echo "$as_me: failed program was:" >&5
  10041. sed 's/^/| /' conftest.$ac_ext >&5
  10042. ac_header_compiler=no
  10043. fi
  10044. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10045. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10046. $as_echo "$ac_header_compiler" >&6; }
  10047. # Is the header present?
  10048. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10049. $as_echo_n "checking $ac_header presence... " >&6; }
  10050. cat >conftest.$ac_ext <<_ACEOF
  10051. /* confdefs.h. */
  10052. _ACEOF
  10053. cat confdefs.h >>conftest.$ac_ext
  10054. cat >>conftest.$ac_ext <<_ACEOF
  10055. /* end confdefs.h. */
  10056. #include <$ac_header>
  10057. _ACEOF
  10058. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10059. case "(($ac_try" in
  10060. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10061. *) ac_try_echo=$ac_try;;
  10062. esac
  10063. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10064. $as_echo "$ac_try_echo") >&5
  10065. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10066. ac_status=$?
  10067. grep -v '^ *+' conftest.er1 >conftest.err
  10068. rm -f conftest.er1
  10069. cat conftest.err >&5
  10070. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10071. (exit $ac_status); } >/dev/null && {
  10072. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  10073. test ! -s conftest.err
  10074. }; then
  10075. ac_header_preproc=yes
  10076. else
  10077. $as_echo "$as_me: failed program was:" >&5
  10078. sed 's/^/| /' conftest.$ac_ext >&5
  10079. ac_header_preproc=no
  10080. fi
  10081. rm -f conftest.err conftest.$ac_ext
  10082. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10083. $as_echo "$ac_header_preproc" >&6; }
  10084. # So? What about this header?
  10085. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  10086. yes:no: )
  10087. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10088. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10089. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10090. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10091. ac_header_preproc=yes
  10092. ;;
  10093. no:yes:* )
  10094. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10095. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10096. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10097. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10098. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10099. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10100. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10101. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10102. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10103. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10104. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10105. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10106. ;;
  10107. esac
  10108. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  10109. $as_echo_n "checking for $ac_header... " >&6; }
  10110. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10111. $as_echo_n "(cached) " >&6
  10112. else
  10113. eval "$as_ac_Header=\$ac_header_preproc"
  10114. fi
  10115. ac_res=`eval 'as_val=${'$as_ac_Header'}
  10116. $as_echo "$as_val"'`
  10117. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  10118. $as_echo "$ac_res" >&6; }
  10119. fi
  10120. as_val=`eval 'as_val=${'$as_ac_Header'}
  10121. $as_echo "$as_val"'`
  10122. if test "x$as_val" = x""yes; then
  10123. cat >>confdefs.h <<_ACEOF
  10124. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10125. _ACEOF
  10126. fi
  10127. done
  10128. for ac_func in $ac_func_list
  10129. do
  10130. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10131. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  10132. $as_echo_n "checking for $ac_func... " >&6; }
  10133. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  10134. $as_echo_n "(cached) " >&6
  10135. else
  10136. cat >conftest.$ac_ext <<_ACEOF
  10137. /* confdefs.h. */
  10138. _ACEOF
  10139. cat confdefs.h >>conftest.$ac_ext
  10140. cat >>conftest.$ac_ext <<_ACEOF
  10141. /* end confdefs.h. */
  10142. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10143. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10144. #define $ac_func innocuous_$ac_func
  10145. /* System header to define __stub macros and hopefully few prototypes,
  10146. which can conflict with char $ac_func (); below.
  10147. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10148. <limits.h> exists even on freestanding compilers. */
  10149. #ifdef __STDC__
  10150. # include <limits.h>
  10151. #else
  10152. # include <assert.h>
  10153. #endif
  10154. #undef $ac_func
  10155. /* Override any GCC internal prototype to avoid an error.
  10156. Use char because int might match the return type of a GCC
  10157. builtin and then its argument prototype would still apply. */
  10158. #ifdef __cplusplus
  10159. extern "C"
  10160. #endif
  10161. char $ac_func ();
  10162. /* The GNU C library defines this for functions which it implements
  10163. to always fail with ENOSYS. Some functions are actually named
  10164. something starting with __ and the normal name is an alias. */
  10165. #if defined __stub_$ac_func || defined __stub___$ac_func
  10166. choke me
  10167. #endif
  10168. int
  10169. main ()
  10170. {
  10171. return $ac_func ();
  10172. ;
  10173. return 0;
  10174. }
  10175. _ACEOF
  10176. rm -f conftest.$ac_objext conftest$ac_exeext
  10177. if { (ac_try="$ac_link"
  10178. case "(($ac_try" in
  10179. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10180. *) ac_try_echo=$ac_try;;
  10181. esac
  10182. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10183. $as_echo "$ac_try_echo") >&5
  10184. (eval "$ac_link") 2>conftest.er1
  10185. ac_status=$?
  10186. grep -v '^ *+' conftest.er1 >conftest.err
  10187. rm -f conftest.er1
  10188. cat conftest.err >&5
  10189. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10190. (exit $ac_status); } && {
  10191. test -z "$ac_cxx_werror_flag" ||
  10192. test ! -s conftest.err
  10193. } && test -s conftest$ac_exeext && {
  10194. test "$cross_compiling" = yes ||
  10195. $as_test_x conftest$ac_exeext
  10196. }; then
  10197. eval "$as_ac_var=yes"
  10198. else
  10199. $as_echo "$as_me: failed program was:" >&5
  10200. sed 's/^/| /' conftest.$ac_ext >&5
  10201. eval "$as_ac_var=no"
  10202. fi
  10203. rm -rf conftest.dSYM
  10204. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10205. conftest$ac_exeext conftest.$ac_ext
  10206. fi
  10207. ac_res=`eval 'as_val=${'$as_ac_var'}
  10208. $as_echo "$as_val"'`
  10209. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  10210. $as_echo "$ac_res" >&6; }
  10211. as_val=`eval 'as_val=${'$as_ac_var'}
  10212. $as_echo "$as_val"'`
  10213. if test "x$as_val" = x""yes; then
  10214. cat >>confdefs.h <<_ACEOF
  10215. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10216. _ACEOF
  10217. fi
  10218. done
  10219. { $as_echo "$as_me:$LINENO: checking for working mktime" >&5
  10220. $as_echo_n "checking for working mktime... " >&6; }
  10221. if test "${ac_cv_func_working_mktime+set}" = set; then
  10222. $as_echo_n "(cached) " >&6
  10223. else
  10224. if test "$cross_compiling" = yes; then
  10225. ac_cv_func_working_mktime=no
  10226. else
  10227. cat >conftest.$ac_ext <<_ACEOF
  10228. /* confdefs.h. */
  10229. _ACEOF
  10230. cat confdefs.h >>conftest.$ac_ext
  10231. cat >>conftest.$ac_ext <<_ACEOF
  10232. /* end confdefs.h. */
  10233. /* Test program from Paul Eggert and Tony Leneis. */
  10234. #ifdef TIME_WITH_SYS_TIME
  10235. # include <sys/time.h>
  10236. # include <time.h>
  10237. #else
  10238. # ifdef HAVE_SYS_TIME_H
  10239. # include <sys/time.h>
  10240. # else
  10241. # include <time.h>
  10242. # endif
  10243. #endif
  10244. #include <limits.h>
  10245. #include <stdlib.h>
  10246. #ifdef HAVE_UNISTD_H
  10247. # include <unistd.h>
  10248. #endif
  10249. #ifndef HAVE_ALARM
  10250. # define alarm(X) /* empty */
  10251. #endif
  10252. /* Work around redefinition to rpl_putenv by other config tests. */
  10253. #undef putenv
  10254. static time_t time_t_max;
  10255. static time_t time_t_min;
  10256. /* Values we'll use to set the TZ environment variable. */
  10257. static char *tz_strings[] = {
  10258. (char *) 0, "TZ=GMT0", "TZ=JST-9",
  10259. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  10260. };
  10261. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  10262. /* Return 0 if mktime fails to convert a date in the spring-forward gap.
  10263. Based on a problem report from Andreas Jaeger. */
  10264. static int
  10265. spring_forward_gap ()
  10266. {
  10267. /* glibc (up to about 1998-10-07) failed this test. */
  10268. struct tm tm;
  10269. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  10270. instead of "TZ=America/Vancouver" in order to detect the bug even
  10271. on systems that don't support the Olson extension, or don't have the
  10272. full zoneinfo tables installed. */
  10273. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  10274. tm.tm_year = 98;
  10275. tm.tm_mon = 3;
  10276. tm.tm_mday = 5;
  10277. tm.tm_hour = 2;
  10278. tm.tm_min = 0;
  10279. tm.tm_sec = 0;
  10280. tm.tm_isdst = -1;
  10281. return mktime (&tm) != (time_t) -1;
  10282. }
  10283. static int
  10284. mktime_test1 (now)
  10285. time_t now;
  10286. {
  10287. struct tm *lt;
  10288. return ! (lt = localtime (&now)) || mktime (lt) == now;
  10289. }
  10290. static int
  10291. mktime_test (now)
  10292. time_t now;
  10293. {
  10294. return (mktime_test1 (now)
  10295. && mktime_test1 ((time_t) (time_t_max - now))
  10296. && mktime_test1 ((time_t) (time_t_min + now)));
  10297. }
  10298. static int
  10299. irix_6_4_bug ()
  10300. {
  10301. /* Based on code from Ariel Faigon. */
  10302. struct tm tm;
  10303. tm.tm_year = 96;
  10304. tm.tm_mon = 3;
  10305. tm.tm_mday = 0;
  10306. tm.tm_hour = 0;
  10307. tm.tm_min = 0;
  10308. tm.tm_sec = 0;
  10309. tm.tm_isdst = -1;
  10310. mktime (&tm);
  10311. return tm.tm_mon == 2 && tm.tm_mday == 31;
  10312. }
  10313. static int
  10314. bigtime_test (j)
  10315. int j;
  10316. {
  10317. struct tm tm;
  10318. time_t now;
  10319. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  10320. now = mktime (&tm);
  10321. if (now != (time_t) -1)
  10322. {
  10323. struct tm *lt = localtime (&now);
  10324. if (! (lt
  10325. && lt->tm_year == tm.tm_year
  10326. && lt->tm_mon == tm.tm_mon
  10327. && lt->tm_mday == tm.tm_mday
  10328. && lt->tm_hour == tm.tm_hour
  10329. && lt->tm_min == tm.tm_min
  10330. && lt->tm_sec == tm.tm_sec
  10331. && lt->tm_yday == tm.tm_yday
  10332. && lt->tm_wday == tm.tm_wday
  10333. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  10334. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  10335. return 0;
  10336. }
  10337. return 1;
  10338. }
  10339. static int
  10340. year_2050_test ()
  10341. {
  10342. /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
  10343. ignoring leap seconds. */
  10344. unsigned long int answer = 2527315200UL;
  10345. struct tm tm;
  10346. time_t t;
  10347. tm.tm_year = 2050 - 1900;
  10348. tm.tm_mon = 2 - 1;
  10349. tm.tm_mday = 1;
  10350. tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
  10351. tm.tm_isdst = -1;
  10352. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  10353. instead of "TZ=America/Vancouver" in order to detect the bug even
  10354. on systems that don't support the Olson extension, or don't have the
  10355. full zoneinfo tables installed. */
  10356. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  10357. t = mktime (&tm);
  10358. /* Check that the result is either a failure, or close enough
  10359. to the correct answer that we can assume the discrepancy is
  10360. due to leap seconds. */
  10361. return (t == (time_t) -1
  10362. || (0 < t && answer - 120 <= t && t <= answer + 120));
  10363. }
  10364. int
  10365. main ()
  10366. {
  10367. time_t t, delta;
  10368. int i, j;
  10369. /* This test makes some buggy mktime implementations loop.
  10370. Give up after 60 seconds; a mktime slower than that
  10371. isn't worth using anyway. */
  10372. alarm (60);
  10373. for (;;)
  10374. {
  10375. t = (time_t_max << 1) + 1;
  10376. if (t <= time_t_max)
  10377. break;
  10378. time_t_max = t;
  10379. }
  10380. time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
  10381. delta = time_t_max / 997; /* a suitable prime number */
  10382. for (i = 0; i < N_STRINGS; i++)
  10383. {
  10384. if (tz_strings[i])
  10385. putenv (tz_strings[i]);
  10386. for (t = 0; t <= time_t_max - delta; t += delta)
  10387. if (! mktime_test (t))
  10388. return 1;
  10389. if (! (mktime_test ((time_t) 1)
  10390. && mktime_test ((time_t) (60 * 60))
  10391. && mktime_test ((time_t) (60 * 60 * 24))))
  10392. return 1;
  10393. for (j = 1; ; j <<= 1)
  10394. if (! bigtime_test (j))
  10395. return 1;
  10396. else if (INT_MAX / 2 < j)
  10397. break;
  10398. if (! bigtime_test (INT_MAX))
  10399. return 1;
  10400. }
  10401. return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
  10402. }
  10403. _ACEOF
  10404. rm -f conftest$ac_exeext
  10405. if { (ac_try="$ac_link"
  10406. case "(($ac_try" in
  10407. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10408. *) ac_try_echo=$ac_try;;
  10409. esac
  10410. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10411. $as_echo "$ac_try_echo") >&5
  10412. (eval "$ac_link") 2>&5
  10413. ac_status=$?
  10414. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10415. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10416. { (case "(($ac_try" in
  10417. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10418. *) ac_try_echo=$ac_try;;
  10419. esac
  10420. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10421. $as_echo "$ac_try_echo") >&5
  10422. (eval "$ac_try") 2>&5
  10423. ac_status=$?
  10424. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10425. (exit $ac_status); }; }; then
  10426. ac_cv_func_working_mktime=yes
  10427. else
  10428. $as_echo "$as_me: program exited with status $ac_status" >&5
  10429. $as_echo "$as_me: failed program was:" >&5
  10430. sed 's/^/| /' conftest.$ac_ext >&5
  10431. ( exit $ac_status )
  10432. ac_cv_func_working_mktime=no
  10433. fi
  10434. rm -rf conftest.dSYM
  10435. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10436. fi
  10437. fi
  10438. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
  10439. $as_echo "$ac_cv_func_working_mktime" >&6; }
  10440. if test $ac_cv_func_working_mktime = no; then
  10441. case " $LIBOBJS " in
  10442. *" mktime.$ac_objext "* ) ;;
  10443. *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
  10444. ;;
  10445. esac
  10446. fi
  10447. for ac_header in stdlib.h unistd.h
  10448. do
  10449. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10450. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10451. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  10452. $as_echo_n "checking for $ac_header... " >&6; }
  10453. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10454. $as_echo_n "(cached) " >&6
  10455. fi
  10456. ac_res=`eval 'as_val=${'$as_ac_Header'}
  10457. $as_echo "$as_val"'`
  10458. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  10459. $as_echo "$ac_res" >&6; }
  10460. else
  10461. # Is the header compilable?
  10462. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10463. $as_echo_n "checking $ac_header usability... " >&6; }
  10464. cat >conftest.$ac_ext <<_ACEOF
  10465. /* confdefs.h. */
  10466. _ACEOF
  10467. cat confdefs.h >>conftest.$ac_ext
  10468. cat >>conftest.$ac_ext <<_ACEOF
  10469. /* end confdefs.h. */
  10470. $ac_includes_default
  10471. #include <$ac_header>
  10472. _ACEOF
  10473. rm -f conftest.$ac_objext
  10474. if { (ac_try="$ac_compile"
  10475. case "(($ac_try" in
  10476. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10477. *) ac_try_echo=$ac_try;;
  10478. esac
  10479. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10480. $as_echo "$ac_try_echo") >&5
  10481. (eval "$ac_compile") 2>conftest.er1
  10482. ac_status=$?
  10483. grep -v '^ *+' conftest.er1 >conftest.err
  10484. rm -f conftest.er1
  10485. cat conftest.err >&5
  10486. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10487. (exit $ac_status); } && {
  10488. test -z "$ac_cxx_werror_flag" ||
  10489. test ! -s conftest.err
  10490. } && test -s conftest.$ac_objext; then
  10491. ac_header_compiler=yes
  10492. else
  10493. $as_echo "$as_me: failed program was:" >&5
  10494. sed 's/^/| /' conftest.$ac_ext >&5
  10495. ac_header_compiler=no
  10496. fi
  10497. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10498. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10499. $as_echo "$ac_header_compiler" >&6; }
  10500. # Is the header present?
  10501. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10502. $as_echo_n "checking $ac_header presence... " >&6; }
  10503. cat >conftest.$ac_ext <<_ACEOF
  10504. /* confdefs.h. */
  10505. _ACEOF
  10506. cat confdefs.h >>conftest.$ac_ext
  10507. cat >>conftest.$ac_ext <<_ACEOF
  10508. /* end confdefs.h. */
  10509. #include <$ac_header>
  10510. _ACEOF
  10511. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10512. case "(($ac_try" in
  10513. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10514. *) ac_try_echo=$ac_try;;
  10515. esac
  10516. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10517. $as_echo "$ac_try_echo") >&5
  10518. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10519. ac_status=$?
  10520. grep -v '^ *+' conftest.er1 >conftest.err
  10521. rm -f conftest.er1
  10522. cat conftest.err >&5
  10523. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10524. (exit $ac_status); } >/dev/null && {
  10525. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  10526. test ! -s conftest.err
  10527. }; then
  10528. ac_header_preproc=yes
  10529. else
  10530. $as_echo "$as_me: failed program was:" >&5
  10531. sed 's/^/| /' conftest.$ac_ext >&5
  10532. ac_header_preproc=no
  10533. fi
  10534. rm -f conftest.err conftest.$ac_ext
  10535. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10536. $as_echo "$ac_header_preproc" >&6; }
  10537. # So? What about this header?
  10538. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  10539. yes:no: )
  10540. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10541. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10542. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10543. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10544. ac_header_preproc=yes
  10545. ;;
  10546. no:yes:* )
  10547. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10548. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10549. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10550. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10551. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10552. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10553. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10554. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10555. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10556. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10557. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10558. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10559. ;;
  10560. esac
  10561. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  10562. $as_echo_n "checking for $ac_header... " >&6; }
  10563. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10564. $as_echo_n "(cached) " >&6
  10565. else
  10566. eval "$as_ac_Header=\$ac_header_preproc"
  10567. fi
  10568. ac_res=`eval 'as_val=${'$as_ac_Header'}
  10569. $as_echo "$as_val"'`
  10570. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  10571. $as_echo "$ac_res" >&6; }
  10572. fi
  10573. as_val=`eval 'as_val=${'$as_ac_Header'}
  10574. $as_echo "$as_val"'`
  10575. if test "x$as_val" = x""yes; then
  10576. cat >>confdefs.h <<_ACEOF
  10577. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10578. _ACEOF
  10579. fi
  10580. done
  10581. for ac_func in getpagesize
  10582. do
  10583. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10584. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  10585. $as_echo_n "checking for $ac_func... " >&6; }
  10586. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  10587. $as_echo_n "(cached) " >&6
  10588. else
  10589. cat >conftest.$ac_ext <<_ACEOF
  10590. /* confdefs.h. */
  10591. _ACEOF
  10592. cat confdefs.h >>conftest.$ac_ext
  10593. cat >>conftest.$ac_ext <<_ACEOF
  10594. /* end confdefs.h. */
  10595. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10596. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10597. #define $ac_func innocuous_$ac_func
  10598. /* System header to define __stub macros and hopefully few prototypes,
  10599. which can conflict with char $ac_func (); below.
  10600. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10601. <limits.h> exists even on freestanding compilers. */
  10602. #ifdef __STDC__
  10603. # include <limits.h>
  10604. #else
  10605. # include <assert.h>
  10606. #endif
  10607. #undef $ac_func
  10608. /* Override any GCC internal prototype to avoid an error.
  10609. Use char because int might match the return type of a GCC
  10610. builtin and then its argument prototype would still apply. */
  10611. #ifdef __cplusplus
  10612. extern "C"
  10613. #endif
  10614. char $ac_func ();
  10615. /* The GNU C library defines this for functions which it implements
  10616. to always fail with ENOSYS. Some functions are actually named
  10617. something starting with __ and the normal name is an alias. */
  10618. #if defined __stub_$ac_func || defined __stub___$ac_func
  10619. choke me
  10620. #endif
  10621. int
  10622. main ()
  10623. {
  10624. return $ac_func ();
  10625. ;
  10626. return 0;
  10627. }
  10628. _ACEOF
  10629. rm -f conftest.$ac_objext conftest$ac_exeext
  10630. if { (ac_try="$ac_link"
  10631. case "(($ac_try" in
  10632. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10633. *) ac_try_echo=$ac_try;;
  10634. esac
  10635. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10636. $as_echo "$ac_try_echo") >&5
  10637. (eval "$ac_link") 2>conftest.er1
  10638. ac_status=$?
  10639. grep -v '^ *+' conftest.er1 >conftest.err
  10640. rm -f conftest.er1
  10641. cat conftest.err >&5
  10642. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10643. (exit $ac_status); } && {
  10644. test -z "$ac_cxx_werror_flag" ||
  10645. test ! -s conftest.err
  10646. } && test -s conftest$ac_exeext && {
  10647. test "$cross_compiling" = yes ||
  10648. $as_test_x conftest$ac_exeext
  10649. }; then
  10650. eval "$as_ac_var=yes"
  10651. else
  10652. $as_echo "$as_me: failed program was:" >&5
  10653. sed 's/^/| /' conftest.$ac_ext >&5
  10654. eval "$as_ac_var=no"
  10655. fi
  10656. rm -rf conftest.dSYM
  10657. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10658. conftest$ac_exeext conftest.$ac_ext
  10659. fi
  10660. ac_res=`eval 'as_val=${'$as_ac_var'}
  10661. $as_echo "$as_val"'`
  10662. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  10663. $as_echo "$ac_res" >&6; }
  10664. as_val=`eval 'as_val=${'$as_ac_var'}
  10665. $as_echo "$as_val"'`
  10666. if test "x$as_val" = x""yes; then
  10667. cat >>confdefs.h <<_ACEOF
  10668. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10669. _ACEOF
  10670. fi
  10671. done
  10672. { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
  10673. $as_echo_n "checking for working mmap... " >&6; }
  10674. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  10675. $as_echo_n "(cached) " >&6
  10676. else
  10677. if test "$cross_compiling" = yes; then
  10678. ac_cv_func_mmap_fixed_mapped=no
  10679. else
  10680. cat >conftest.$ac_ext <<_ACEOF
  10681. /* confdefs.h. */
  10682. _ACEOF
  10683. cat confdefs.h >>conftest.$ac_ext
  10684. cat >>conftest.$ac_ext <<_ACEOF
  10685. /* end confdefs.h. */
  10686. $ac_includes_default
  10687. /* malloc might have been renamed as rpl_malloc. */
  10688. #undef malloc
  10689. /* Thanks to Mike Haertel and Jim Avera for this test.
  10690. Here is a matrix of mmap possibilities:
  10691. mmap private not fixed
  10692. mmap private fixed at somewhere currently unmapped
  10693. mmap private fixed at somewhere already mapped
  10694. mmap shared not fixed
  10695. mmap shared fixed at somewhere currently unmapped
  10696. mmap shared fixed at somewhere already mapped
  10697. For private mappings, we should verify that changes cannot be read()
  10698. back from the file, nor mmap's back from the file at a different
  10699. address. (There have been systems where private was not correctly
  10700. implemented like the infamous i386 svr4.0, and systems where the
  10701. VM page cache was not coherent with the file system buffer cache
  10702. like early versions of FreeBSD and possibly contemporary NetBSD.)
  10703. For shared mappings, we should conversely verify that changes get
  10704. propagated back to all the places they're supposed to be.
  10705. Grep wants private fixed already mapped.
  10706. The main things grep needs to know about mmap are:
  10707. * does it exist and is it safe to write into the mmap'd area
  10708. * how to use it (BSD variants) */
  10709. #include <fcntl.h>
  10710. #include <sys/mman.h>
  10711. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  10712. char *malloc ();
  10713. #endif
  10714. /* This mess was copied from the GNU getpagesize.h. */
  10715. #ifndef HAVE_GETPAGESIZE
  10716. /* Assume that all systems that can run configure have sys/param.h. */
  10717. # ifndef HAVE_SYS_PARAM_H
  10718. # define HAVE_SYS_PARAM_H 1
  10719. # endif
  10720. # ifdef _SC_PAGESIZE
  10721. # define getpagesize() sysconf(_SC_PAGESIZE)
  10722. # else /* no _SC_PAGESIZE */
  10723. # ifdef HAVE_SYS_PARAM_H
  10724. # include <sys/param.h>
  10725. # ifdef EXEC_PAGESIZE
  10726. # define getpagesize() EXEC_PAGESIZE
  10727. # else /* no EXEC_PAGESIZE */
  10728. # ifdef NBPG
  10729. # define getpagesize() NBPG * CLSIZE
  10730. # ifndef CLSIZE
  10731. # define CLSIZE 1
  10732. # endif /* no CLSIZE */
  10733. # else /* no NBPG */
  10734. # ifdef NBPC
  10735. # define getpagesize() NBPC
  10736. # else /* no NBPC */
  10737. # ifdef PAGESIZE
  10738. # define getpagesize() PAGESIZE
  10739. # endif /* PAGESIZE */
  10740. # endif /* no NBPC */
  10741. # endif /* no NBPG */
  10742. # endif /* no EXEC_PAGESIZE */
  10743. # else /* no HAVE_SYS_PARAM_H */
  10744. # define getpagesize() 8192 /* punt totally */
  10745. # endif /* no HAVE_SYS_PARAM_H */
  10746. # endif /* no _SC_PAGESIZE */
  10747. #endif /* no HAVE_GETPAGESIZE */
  10748. int
  10749. main ()
  10750. {
  10751. char *data, *data2, *data3;
  10752. int i, pagesize;
  10753. int fd;
  10754. pagesize = getpagesize ();
  10755. /* First, make a file with some known garbage in it. */
  10756. data = (char *) malloc (pagesize);
  10757. if (!data)
  10758. return 1;
  10759. for (i = 0; i < pagesize; ++i)
  10760. *(data + i) = rand ();
  10761. umask (0);
  10762. fd = creat ("conftest.mmap", 0600);
  10763. if (fd < 0)
  10764. return 1;
  10765. if (write (fd, data, pagesize) != pagesize)
  10766. return 1;
  10767. close (fd);
  10768. /* Next, try to mmap the file at a fixed address which already has
  10769. something else allocated at it. If we can, also make sure that
  10770. we see the same garbage. */
  10771. fd = open ("conftest.mmap", O_RDWR);
  10772. if (fd < 0)
  10773. return 1;
  10774. data2 = (char *) malloc (2 * pagesize);
  10775. if (!data2)
  10776. return 1;
  10777. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  10778. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  10779. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  10780. return 1;
  10781. for (i = 0; i < pagesize; ++i)
  10782. if (*(data + i) != *(data2 + i))
  10783. return 1;
  10784. /* Finally, make sure that changes to the mapped area do not
  10785. percolate back to the file as seen by read(). (This is a bug on
  10786. some variants of i386 svr4.0.) */
  10787. for (i = 0; i < pagesize; ++i)
  10788. *(data2 + i) = *(data2 + i) + 1;
  10789. data3 = (char *) malloc (pagesize);
  10790. if (!data3)
  10791. return 1;
  10792. if (read (fd, data3, pagesize) != pagesize)
  10793. return 1;
  10794. for (i = 0; i < pagesize; ++i)
  10795. if (*(data + i) != *(data3 + i))
  10796. return 1;
  10797. close (fd);
  10798. return 0;
  10799. }
  10800. _ACEOF
  10801. rm -f conftest$ac_exeext
  10802. if { (ac_try="$ac_link"
  10803. case "(($ac_try" in
  10804. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10805. *) ac_try_echo=$ac_try;;
  10806. esac
  10807. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10808. $as_echo "$ac_try_echo") >&5
  10809. (eval "$ac_link") 2>&5
  10810. ac_status=$?
  10811. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10812. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10813. { (case "(($ac_try" in
  10814. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10815. *) ac_try_echo=$ac_try;;
  10816. esac
  10817. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10818. $as_echo "$ac_try_echo") >&5
  10819. (eval "$ac_try") 2>&5
  10820. ac_status=$?
  10821. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10822. (exit $ac_status); }; }; then
  10823. ac_cv_func_mmap_fixed_mapped=yes
  10824. else
  10825. $as_echo "$as_me: program exited with status $ac_status" >&5
  10826. $as_echo "$as_me: failed program was:" >&5
  10827. sed 's/^/| /' conftest.$ac_ext >&5
  10828. ( exit $ac_status )
  10829. ac_cv_func_mmap_fixed_mapped=no
  10830. fi
  10831. rm -rf conftest.dSYM
  10832. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10833. fi
  10834. fi
  10835. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  10836. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  10837. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  10838. cat >>confdefs.h <<\_ACEOF
  10839. #define HAVE_MMAP 1
  10840. _ACEOF
  10841. fi
  10842. rm -f conftest.mmap
  10843. for ac_header in stdlib.h
  10844. do
  10845. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10846. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10847. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  10848. $as_echo_n "checking for $ac_header... " >&6; }
  10849. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10850. $as_echo_n "(cached) " >&6
  10851. fi
  10852. ac_res=`eval 'as_val=${'$as_ac_Header'}
  10853. $as_echo "$as_val"'`
  10854. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  10855. $as_echo "$ac_res" >&6; }
  10856. else
  10857. # Is the header compilable?
  10858. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10859. $as_echo_n "checking $ac_header usability... " >&6; }
  10860. cat >conftest.$ac_ext <<_ACEOF
  10861. /* confdefs.h. */
  10862. _ACEOF
  10863. cat confdefs.h >>conftest.$ac_ext
  10864. cat >>conftest.$ac_ext <<_ACEOF
  10865. /* end confdefs.h. */
  10866. $ac_includes_default
  10867. #include <$ac_header>
  10868. _ACEOF
  10869. rm -f conftest.$ac_objext
  10870. if { (ac_try="$ac_compile"
  10871. case "(($ac_try" in
  10872. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10873. *) ac_try_echo=$ac_try;;
  10874. esac
  10875. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10876. $as_echo "$ac_try_echo") >&5
  10877. (eval "$ac_compile") 2>conftest.er1
  10878. ac_status=$?
  10879. grep -v '^ *+' conftest.er1 >conftest.err
  10880. rm -f conftest.er1
  10881. cat conftest.err >&5
  10882. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10883. (exit $ac_status); } && {
  10884. test -z "$ac_cxx_werror_flag" ||
  10885. test ! -s conftest.err
  10886. } && test -s conftest.$ac_objext; then
  10887. ac_header_compiler=yes
  10888. else
  10889. $as_echo "$as_me: failed program was:" >&5
  10890. sed 's/^/| /' conftest.$ac_ext >&5
  10891. ac_header_compiler=no
  10892. fi
  10893. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10894. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10895. $as_echo "$ac_header_compiler" >&6; }
  10896. # Is the header present?
  10897. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10898. $as_echo_n "checking $ac_header presence... " >&6; }
  10899. cat >conftest.$ac_ext <<_ACEOF
  10900. /* confdefs.h. */
  10901. _ACEOF
  10902. cat confdefs.h >>conftest.$ac_ext
  10903. cat >>conftest.$ac_ext <<_ACEOF
  10904. /* end confdefs.h. */
  10905. #include <$ac_header>
  10906. _ACEOF
  10907. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10908. case "(($ac_try" in
  10909. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10910. *) ac_try_echo=$ac_try;;
  10911. esac
  10912. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10913. $as_echo "$ac_try_echo") >&5
  10914. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10915. ac_status=$?
  10916. grep -v '^ *+' conftest.er1 >conftest.err
  10917. rm -f conftest.er1
  10918. cat conftest.err >&5
  10919. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10920. (exit $ac_status); } >/dev/null && {
  10921. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  10922. test ! -s conftest.err
  10923. }; then
  10924. ac_header_preproc=yes
  10925. else
  10926. $as_echo "$as_me: failed program was:" >&5
  10927. sed 's/^/| /' conftest.$ac_ext >&5
  10928. ac_header_preproc=no
  10929. fi
  10930. rm -f conftest.err conftest.$ac_ext
  10931. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10932. $as_echo "$ac_header_preproc" >&6; }
  10933. # So? What about this header?
  10934. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  10935. yes:no: )
  10936. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10937. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10938. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10939. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10940. ac_header_preproc=yes
  10941. ;;
  10942. no:yes:* )
  10943. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10944. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10945. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10946. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10947. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10948. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10949. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10950. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10951. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10952. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10953. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10954. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10955. ;;
  10956. esac
  10957. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  10958. $as_echo_n "checking for $ac_header... " >&6; }
  10959. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10960. $as_echo_n "(cached) " >&6
  10961. else
  10962. eval "$as_ac_Header=\$ac_header_preproc"
  10963. fi
  10964. ac_res=`eval 'as_val=${'$as_ac_Header'}
  10965. $as_echo "$as_val"'`
  10966. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  10967. $as_echo "$ac_res" >&6; }
  10968. fi
  10969. as_val=`eval 'as_val=${'$as_ac_Header'}
  10970. $as_echo "$as_val"'`
  10971. if test "x$as_val" = x""yes; then
  10972. cat >>confdefs.h <<_ACEOF
  10973. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10974. _ACEOF
  10975. fi
  10976. done
  10977. { $as_echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
  10978. $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
  10979. if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
  10980. $as_echo_n "(cached) " >&6
  10981. else
  10982. if test "$cross_compiling" = yes; then
  10983. ac_cv_func_realloc_0_nonnull=no
  10984. else
  10985. cat >conftest.$ac_ext <<_ACEOF
  10986. /* confdefs.h. */
  10987. _ACEOF
  10988. cat confdefs.h >>conftest.$ac_ext
  10989. cat >>conftest.$ac_ext <<_ACEOF
  10990. /* end confdefs.h. */
  10991. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  10992. # include <stdlib.h>
  10993. #else
  10994. char *realloc ();
  10995. #endif
  10996. int
  10997. main ()
  10998. {
  10999. return ! realloc (0, 0);
  11000. ;
  11001. return 0;
  11002. }
  11003. _ACEOF
  11004. rm -f conftest$ac_exeext
  11005. if { (ac_try="$ac_link"
  11006. case "(($ac_try" in
  11007. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11008. *) ac_try_echo=$ac_try;;
  11009. esac
  11010. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11011. $as_echo "$ac_try_echo") >&5
  11012. (eval "$ac_link") 2>&5
  11013. ac_status=$?
  11014. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11015. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  11016. { (case "(($ac_try" in
  11017. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11018. *) ac_try_echo=$ac_try;;
  11019. esac
  11020. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11021. $as_echo "$ac_try_echo") >&5
  11022. (eval "$ac_try") 2>&5
  11023. ac_status=$?
  11024. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11025. (exit $ac_status); }; }; then
  11026. ac_cv_func_realloc_0_nonnull=yes
  11027. else
  11028. $as_echo "$as_me: program exited with status $ac_status" >&5
  11029. $as_echo "$as_me: failed program was:" >&5
  11030. sed 's/^/| /' conftest.$ac_ext >&5
  11031. ( exit $ac_status )
  11032. ac_cv_func_realloc_0_nonnull=no
  11033. fi
  11034. rm -rf conftest.dSYM
  11035. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  11036. fi
  11037. fi
  11038. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
  11039. $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
  11040. if test $ac_cv_func_realloc_0_nonnull = yes; then
  11041. cat >>confdefs.h <<\_ACEOF
  11042. #define HAVE_REALLOC 1
  11043. _ACEOF
  11044. else
  11045. cat >>confdefs.h <<\_ACEOF
  11046. #define HAVE_REALLOC 0
  11047. _ACEOF
  11048. case " $LIBOBJS " in
  11049. *" realloc.$ac_objext "* ) ;;
  11050. *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
  11051. ;;
  11052. esac
  11053. cat >>confdefs.h <<\_ACEOF
  11054. #define realloc rpl_realloc
  11055. _ACEOF
  11056. fi
  11057. { $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  11058. $as_echo_n "checking whether stat accepts an empty string... " >&6; }
  11059. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  11060. $as_echo_n "(cached) " >&6
  11061. else
  11062. if test "$cross_compiling" = yes; then
  11063. ac_cv_func_stat_empty_string_bug=yes
  11064. else
  11065. cat >conftest.$ac_ext <<_ACEOF
  11066. /* confdefs.h. */
  11067. _ACEOF
  11068. cat confdefs.h >>conftest.$ac_ext
  11069. cat >>conftest.$ac_ext <<_ACEOF
  11070. /* end confdefs.h. */
  11071. $ac_includes_default
  11072. int
  11073. main ()
  11074. {
  11075. struct stat sbuf;
  11076. return stat ("", &sbuf) == 0;
  11077. ;
  11078. return 0;
  11079. }
  11080. _ACEOF
  11081. rm -f conftest$ac_exeext
  11082. if { (ac_try="$ac_link"
  11083. case "(($ac_try" in
  11084. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11085. *) ac_try_echo=$ac_try;;
  11086. esac
  11087. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11088. $as_echo "$ac_try_echo") >&5
  11089. (eval "$ac_link") 2>&5
  11090. ac_status=$?
  11091. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11092. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  11093. { (case "(($ac_try" in
  11094. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11095. *) ac_try_echo=$ac_try;;
  11096. esac
  11097. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11098. $as_echo "$ac_try_echo") >&5
  11099. (eval "$ac_try") 2>&5
  11100. ac_status=$?
  11101. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11102. (exit $ac_status); }; }; then
  11103. ac_cv_func_stat_empty_string_bug=no
  11104. else
  11105. $as_echo "$as_me: program exited with status $ac_status" >&5
  11106. $as_echo "$as_me: failed program was:" >&5
  11107. sed 's/^/| /' conftest.$ac_ext >&5
  11108. ( exit $ac_status )
  11109. ac_cv_func_stat_empty_string_bug=yes
  11110. fi
  11111. rm -rf conftest.dSYM
  11112. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  11113. fi
  11114. fi
  11115. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  11116. $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
  11117. if test $ac_cv_func_stat_empty_string_bug = yes; then
  11118. case " $LIBOBJS " in
  11119. *" stat.$ac_objext "* ) ;;
  11120. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  11121. ;;
  11122. esac
  11123. cat >>confdefs.h <<_ACEOF
  11124. #define HAVE_STAT_EMPTY_STRING_BUG 1
  11125. _ACEOF
  11126. fi
  11127. { $as_echo "$as_me:$LINENO: checking for struct timespec" >&5
  11128. $as_echo_n "checking for struct timespec... " >&6; }
  11129. if test "${ac_cv_type_struct_timespec+set}" = set; then
  11130. $as_echo_n "(cached) " >&6
  11131. else
  11132. ac_cv_type_struct_timespec=no
  11133. cat >conftest.$ac_ext <<_ACEOF
  11134. /* confdefs.h. */
  11135. _ACEOF
  11136. cat confdefs.h >>conftest.$ac_ext
  11137. cat >>conftest.$ac_ext <<_ACEOF
  11138. /* end confdefs.h. */
  11139. #include <sys/types.h>
  11140. #include <sys/time.h>
  11141. #include <time.h>
  11142. int
  11143. main ()
  11144. {
  11145. if (sizeof (struct timespec))
  11146. return 0;
  11147. ;
  11148. return 0;
  11149. }
  11150. _ACEOF
  11151. rm -f conftest.$ac_objext
  11152. if { (ac_try="$ac_compile"
  11153. case "(($ac_try" in
  11154. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11155. *) ac_try_echo=$ac_try;;
  11156. esac
  11157. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11158. $as_echo "$ac_try_echo") >&5
  11159. (eval "$ac_compile") 2>conftest.er1
  11160. ac_status=$?
  11161. grep -v '^ *+' conftest.er1 >conftest.err
  11162. rm -f conftest.er1
  11163. cat conftest.err >&5
  11164. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11165. (exit $ac_status); } && {
  11166. test -z "$ac_cxx_werror_flag" ||
  11167. test ! -s conftest.err
  11168. } && test -s conftest.$ac_objext; then
  11169. cat >conftest.$ac_ext <<_ACEOF
  11170. /* confdefs.h. */
  11171. _ACEOF
  11172. cat confdefs.h >>conftest.$ac_ext
  11173. cat >>conftest.$ac_ext <<_ACEOF
  11174. /* end confdefs.h. */
  11175. #include <sys/types.h>
  11176. #include <sys/time.h>
  11177. #include <time.h>
  11178. int
  11179. main ()
  11180. {
  11181. if (sizeof ((struct timespec)))
  11182. return 0;
  11183. ;
  11184. return 0;
  11185. }
  11186. _ACEOF
  11187. rm -f conftest.$ac_objext
  11188. if { (ac_try="$ac_compile"
  11189. case "(($ac_try" in
  11190. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11191. *) ac_try_echo=$ac_try;;
  11192. esac
  11193. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11194. $as_echo "$ac_try_echo") >&5
  11195. (eval "$ac_compile") 2>conftest.er1
  11196. ac_status=$?
  11197. grep -v '^ *+' conftest.er1 >conftest.err
  11198. rm -f conftest.er1
  11199. cat conftest.err >&5
  11200. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11201. (exit $ac_status); } && {
  11202. test -z "$ac_cxx_werror_flag" ||
  11203. test ! -s conftest.err
  11204. } && test -s conftest.$ac_objext; then
  11205. :
  11206. else
  11207. $as_echo "$as_me: failed program was:" >&5
  11208. sed 's/^/| /' conftest.$ac_ext >&5
  11209. ac_cv_type_struct_timespec=yes
  11210. fi
  11211. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11212. else
  11213. $as_echo "$as_me: failed program was:" >&5
  11214. sed 's/^/| /' conftest.$ac_ext >&5
  11215. fi
  11216. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11217. fi
  11218. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5
  11219. $as_echo "$ac_cv_type_struct_timespec" >&6; }
  11220. if test "x$ac_cv_type_struct_timespec" = x""yes; then
  11221. cat >>confdefs.h <<\_ACEOF
  11222. #define HAVE_TIMESPEC 1
  11223. _ACEOF
  11224. fi
  11225. if test X"$ac_cv_type_struct_timespec" != X"no"; then
  11226. { $as_echo "$as_me:$LINENO: checking for struct stat.st_mtim" >&5
  11227. $as_echo_n "checking for struct stat.st_mtim... " >&6; }
  11228. if test "${ac_cv_member_struct_stat_st_mtim+set}" = set; then
  11229. $as_echo_n "(cached) " >&6
  11230. else
  11231. cat >conftest.$ac_ext <<_ACEOF
  11232. /* confdefs.h. */
  11233. _ACEOF
  11234. cat confdefs.h >>conftest.$ac_ext
  11235. cat >>conftest.$ac_ext <<_ACEOF
  11236. /* end confdefs.h. */
  11237. $ac_includes_default
  11238. int
  11239. main ()
  11240. {
  11241. static struct stat ac_aggr;
  11242. if (ac_aggr.st_mtim)
  11243. return 0;
  11244. ;
  11245. return 0;
  11246. }
  11247. _ACEOF
  11248. rm -f conftest.$ac_objext
  11249. if { (ac_try="$ac_compile"
  11250. case "(($ac_try" in
  11251. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11252. *) ac_try_echo=$ac_try;;
  11253. esac
  11254. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11255. $as_echo "$ac_try_echo") >&5
  11256. (eval "$ac_compile") 2>conftest.er1
  11257. ac_status=$?
  11258. grep -v '^ *+' conftest.er1 >conftest.err
  11259. rm -f conftest.er1
  11260. cat conftest.err >&5
  11261. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11262. (exit $ac_status); } && {
  11263. test -z "$ac_cxx_werror_flag" ||
  11264. test ! -s conftest.err
  11265. } && test -s conftest.$ac_objext; then
  11266. ac_cv_member_struct_stat_st_mtim=yes
  11267. else
  11268. $as_echo "$as_me: failed program was:" >&5
  11269. sed 's/^/| /' conftest.$ac_ext >&5
  11270. cat >conftest.$ac_ext <<_ACEOF
  11271. /* confdefs.h. */
  11272. _ACEOF
  11273. cat confdefs.h >>conftest.$ac_ext
  11274. cat >>conftest.$ac_ext <<_ACEOF
  11275. /* end confdefs.h. */
  11276. $ac_includes_default
  11277. int
  11278. main ()
  11279. {
  11280. static struct stat ac_aggr;
  11281. if (sizeof ac_aggr.st_mtim)
  11282. return 0;
  11283. ;
  11284. return 0;
  11285. }
  11286. _ACEOF
  11287. rm -f conftest.$ac_objext
  11288. if { (ac_try="$ac_compile"
  11289. case "(($ac_try" in
  11290. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11291. *) ac_try_echo=$ac_try;;
  11292. esac
  11293. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11294. $as_echo "$ac_try_echo") >&5
  11295. (eval "$ac_compile") 2>conftest.er1
  11296. ac_status=$?
  11297. grep -v '^ *+' conftest.er1 >conftest.err
  11298. rm -f conftest.er1
  11299. cat conftest.err >&5
  11300. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11301. (exit $ac_status); } && {
  11302. test -z "$ac_cxx_werror_flag" ||
  11303. test ! -s conftest.err
  11304. } && test -s conftest.$ac_objext; then
  11305. ac_cv_member_struct_stat_st_mtim=yes
  11306. else
  11307. $as_echo "$as_me: failed program was:" >&5
  11308. sed 's/^/| /' conftest.$ac_ext >&5
  11309. ac_cv_member_struct_stat_st_mtim=no
  11310. fi
  11311. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11312. fi
  11313. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11314. fi
  11315. { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtim" >&5
  11316. $as_echo "$ac_cv_member_struct_stat_st_mtim" >&6; }
  11317. if test "x$ac_cv_member_struct_stat_st_mtim" = x""yes; then
  11318. cat >>confdefs.h <<\_ACEOF
  11319. #define HAVE_ST_MTIM 1
  11320. _ACEOF
  11321. else
  11322. { $as_echo "$as_me:$LINENO: checking for struct stat.st_mtimespec" >&5
  11323. $as_echo_n "checking for struct stat.st_mtimespec... " >&6; }
  11324. if test "${ac_cv_member_struct_stat_st_mtimespec+set}" = set; then
  11325. $as_echo_n "(cached) " >&6
  11326. else
  11327. cat >conftest.$ac_ext <<_ACEOF
  11328. /* confdefs.h. */
  11329. _ACEOF
  11330. cat confdefs.h >>conftest.$ac_ext
  11331. cat >>conftest.$ac_ext <<_ACEOF
  11332. /* end confdefs.h. */
  11333. $ac_includes_default
  11334. int
  11335. main ()
  11336. {
  11337. static struct stat ac_aggr;
  11338. if (ac_aggr.st_mtimespec)
  11339. return 0;
  11340. ;
  11341. return 0;
  11342. }
  11343. _ACEOF
  11344. rm -f conftest.$ac_objext
  11345. if { (ac_try="$ac_compile"
  11346. case "(($ac_try" in
  11347. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11348. *) ac_try_echo=$ac_try;;
  11349. esac
  11350. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11351. $as_echo "$ac_try_echo") >&5
  11352. (eval "$ac_compile") 2>conftest.er1
  11353. ac_status=$?
  11354. grep -v '^ *+' conftest.er1 >conftest.err
  11355. rm -f conftest.er1
  11356. cat conftest.err >&5
  11357. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11358. (exit $ac_status); } && {
  11359. test -z "$ac_cxx_werror_flag" ||
  11360. test ! -s conftest.err
  11361. } && test -s conftest.$ac_objext; then
  11362. ac_cv_member_struct_stat_st_mtimespec=yes
  11363. else
  11364. $as_echo "$as_me: failed program was:" >&5
  11365. sed 's/^/| /' conftest.$ac_ext >&5
  11366. cat >conftest.$ac_ext <<_ACEOF
  11367. /* confdefs.h. */
  11368. _ACEOF
  11369. cat confdefs.h >>conftest.$ac_ext
  11370. cat >>conftest.$ac_ext <<_ACEOF
  11371. /* end confdefs.h. */
  11372. $ac_includes_default
  11373. int
  11374. main ()
  11375. {
  11376. static struct stat ac_aggr;
  11377. if (sizeof ac_aggr.st_mtimespec)
  11378. return 0;
  11379. ;
  11380. return 0;
  11381. }
  11382. _ACEOF
  11383. rm -f conftest.$ac_objext
  11384. if { (ac_try="$ac_compile"
  11385. case "(($ac_try" in
  11386. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11387. *) ac_try_echo=$ac_try;;
  11388. esac
  11389. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11390. $as_echo "$ac_try_echo") >&5
  11391. (eval "$ac_compile") 2>conftest.er1
  11392. ac_status=$?
  11393. grep -v '^ *+' conftest.er1 >conftest.err
  11394. rm -f conftest.er1
  11395. cat conftest.err >&5
  11396. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11397. (exit $ac_status); } && {
  11398. test -z "$ac_cxx_werror_flag" ||
  11399. test ! -s conftest.err
  11400. } && test -s conftest.$ac_objext; then
  11401. ac_cv_member_struct_stat_st_mtimespec=yes
  11402. else
  11403. $as_echo "$as_me: failed program was:" >&5
  11404. sed 's/^/| /' conftest.$ac_ext >&5
  11405. ac_cv_member_struct_stat_st_mtimespec=no
  11406. fi
  11407. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11408. fi
  11409. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11410. fi
  11411. { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtimespec" >&5
  11412. $as_echo "$ac_cv_member_struct_stat_st_mtimespec" >&6; }
  11413. if test "x$ac_cv_member_struct_stat_st_mtimespec" = x""yes; then
  11414. cat >>confdefs.h <<\_ACEOF
  11415. #define HAVE_ST_MTIMESPEC 1
  11416. _ACEOF
  11417. fi
  11418. fi
  11419. { $as_echo "$as_me:$LINENO: checking for two-parameter timespecsub" >&5
  11420. $as_echo_n "checking for two-parameter timespecsub... " >&6; }
  11421. cat >conftest.$ac_ext <<_ACEOF
  11422. /* confdefs.h. */
  11423. _ACEOF
  11424. cat confdefs.h >>conftest.$ac_ext
  11425. cat >>conftest.$ac_ext <<_ACEOF
  11426. /* end confdefs.h. */
  11427. #include <sys/types.h>
  11428. #include <sys/time.h>
  11429. int
  11430. main ()
  11431. {
  11432. struct timespec ts1, ts2;
  11433. ts1.tv_sec = 1; ts1.tv_nsec = 0; ts2.tv_sec = 0; ts2.tv_nsec = 0;
  11434. #ifndef timespecsub
  11435. #error missing timespecsub
  11436. #endif
  11437. timespecsub(&ts1, &ts2);
  11438. ;
  11439. return 0;
  11440. }
  11441. _ACEOF
  11442. rm -f conftest.$ac_objext
  11443. if { (ac_try="$ac_compile"
  11444. case "(($ac_try" in
  11445. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11446. *) ac_try_echo=$ac_try;;
  11447. esac
  11448. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11449. $as_echo "$ac_try_echo") >&5
  11450. (eval "$ac_compile") 2>conftest.er1
  11451. ac_status=$?
  11452. grep -v '^ *+' conftest.er1 >conftest.err
  11453. rm -f conftest.er1
  11454. cat conftest.err >&5
  11455. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11456. (exit $ac_status); } && {
  11457. test -z "$ac_cxx_werror_flag" ||
  11458. test ! -s conftest.err
  11459. } && test -s conftest.$ac_objext; then
  11460. cat >>confdefs.h <<\_ACEOF
  11461. #define HAVE_TIMESPECSUB2 1
  11462. _ACEOF
  11463. { $as_echo "$as_me:$LINENO: result: yes" >&5
  11464. $as_echo "yes" >&6; }
  11465. else
  11466. $as_echo "$as_me: failed program was:" >&5
  11467. sed 's/^/| /' conftest.$ac_ext >&5
  11468. { $as_echo "$as_me:$LINENO: result: no" >&5
  11469. $as_echo "no" >&6; }
  11470. fi
  11471. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11472. fi
  11473. for ac_func in strftime
  11474. do
  11475. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11476. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  11477. $as_echo_n "checking for $ac_func... " >&6; }
  11478. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11479. $as_echo_n "(cached) " >&6
  11480. else
  11481. cat >conftest.$ac_ext <<_ACEOF
  11482. /* confdefs.h. */
  11483. _ACEOF
  11484. cat confdefs.h >>conftest.$ac_ext
  11485. cat >>conftest.$ac_ext <<_ACEOF
  11486. /* end confdefs.h. */
  11487. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11488. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11489. #define $ac_func innocuous_$ac_func
  11490. /* System header to define __stub macros and hopefully few prototypes,
  11491. which can conflict with char $ac_func (); below.
  11492. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11493. <limits.h> exists even on freestanding compilers. */
  11494. #ifdef __STDC__
  11495. # include <limits.h>
  11496. #else
  11497. # include <assert.h>
  11498. #endif
  11499. #undef $ac_func
  11500. /* Override any GCC internal prototype to avoid an error.
  11501. Use char because int might match the return type of a GCC
  11502. builtin and then its argument prototype would still apply. */
  11503. #ifdef __cplusplus
  11504. extern "C"
  11505. #endif
  11506. char $ac_func ();
  11507. /* The GNU C library defines this for functions which it implements
  11508. to always fail with ENOSYS. Some functions are actually named
  11509. something starting with __ and the normal name is an alias. */
  11510. #if defined __stub_$ac_func || defined __stub___$ac_func
  11511. choke me
  11512. #endif
  11513. int
  11514. main ()
  11515. {
  11516. return $ac_func ();
  11517. ;
  11518. return 0;
  11519. }
  11520. _ACEOF
  11521. rm -f conftest.$ac_objext conftest$ac_exeext
  11522. if { (ac_try="$ac_link"
  11523. case "(($ac_try" in
  11524. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11525. *) ac_try_echo=$ac_try;;
  11526. esac
  11527. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11528. $as_echo "$ac_try_echo") >&5
  11529. (eval "$ac_link") 2>conftest.er1
  11530. ac_status=$?
  11531. grep -v '^ *+' conftest.er1 >conftest.err
  11532. rm -f conftest.er1
  11533. cat conftest.err >&5
  11534. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11535. (exit $ac_status); } && {
  11536. test -z "$ac_cxx_werror_flag" ||
  11537. test ! -s conftest.err
  11538. } && test -s conftest$ac_exeext && {
  11539. test "$cross_compiling" = yes ||
  11540. $as_test_x conftest$ac_exeext
  11541. }; then
  11542. eval "$as_ac_var=yes"
  11543. else
  11544. $as_echo "$as_me: failed program was:" >&5
  11545. sed 's/^/| /' conftest.$ac_ext >&5
  11546. eval "$as_ac_var=no"
  11547. fi
  11548. rm -rf conftest.dSYM
  11549. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11550. conftest$ac_exeext conftest.$ac_ext
  11551. fi
  11552. ac_res=`eval 'as_val=${'$as_ac_var'}
  11553. $as_echo "$as_val"'`
  11554. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  11555. $as_echo "$ac_res" >&6; }
  11556. as_val=`eval 'as_val=${'$as_ac_var'}
  11557. $as_echo "$as_val"'`
  11558. if test "x$as_val" = x""yes; then
  11559. cat >>confdefs.h <<_ACEOF
  11560. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11561. _ACEOF
  11562. else
  11563. # strftime is in -lintl on SCO UNIX.
  11564. { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  11565. $as_echo_n "checking for strftime in -lintl... " >&6; }
  11566. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  11567. $as_echo_n "(cached) " >&6
  11568. else
  11569. ac_check_lib_save_LIBS=$LIBS
  11570. LIBS="-lintl $LIBS"
  11571. cat >conftest.$ac_ext <<_ACEOF
  11572. /* confdefs.h. */
  11573. _ACEOF
  11574. cat confdefs.h >>conftest.$ac_ext
  11575. cat >>conftest.$ac_ext <<_ACEOF
  11576. /* end confdefs.h. */
  11577. /* Override any GCC internal prototype to avoid an error.
  11578. Use char because int might match the return type of a GCC
  11579. builtin and then its argument prototype would still apply. */
  11580. #ifdef __cplusplus
  11581. extern "C"
  11582. #endif
  11583. char strftime ();
  11584. int
  11585. main ()
  11586. {
  11587. return strftime ();
  11588. ;
  11589. return 0;
  11590. }
  11591. _ACEOF
  11592. rm -f conftest.$ac_objext conftest$ac_exeext
  11593. if { (ac_try="$ac_link"
  11594. case "(($ac_try" in
  11595. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11596. *) ac_try_echo=$ac_try;;
  11597. esac
  11598. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11599. $as_echo "$ac_try_echo") >&5
  11600. (eval "$ac_link") 2>conftest.er1
  11601. ac_status=$?
  11602. grep -v '^ *+' conftest.er1 >conftest.err
  11603. rm -f conftest.er1
  11604. cat conftest.err >&5
  11605. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11606. (exit $ac_status); } && {
  11607. test -z "$ac_cxx_werror_flag" ||
  11608. test ! -s conftest.err
  11609. } && test -s conftest$ac_exeext && {
  11610. test "$cross_compiling" = yes ||
  11611. $as_test_x conftest$ac_exeext
  11612. }; then
  11613. ac_cv_lib_intl_strftime=yes
  11614. else
  11615. $as_echo "$as_me: failed program was:" >&5
  11616. sed 's/^/| /' conftest.$ac_ext >&5
  11617. ac_cv_lib_intl_strftime=no
  11618. fi
  11619. rm -rf conftest.dSYM
  11620. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11621. conftest$ac_exeext conftest.$ac_ext
  11622. LIBS=$ac_check_lib_save_LIBS
  11623. fi
  11624. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  11625. $as_echo "$ac_cv_lib_intl_strftime" >&6; }
  11626. if test "x$ac_cv_lib_intl_strftime" = x""yes; then
  11627. cat >>confdefs.h <<\_ACEOF
  11628. #define HAVE_STRFTIME 1
  11629. _ACEOF
  11630. LIBS="-lintl $LIBS"
  11631. fi
  11632. fi
  11633. done
  11634. #checkpoint
  11635. cat >confcache <<\_ACEOF
  11636. # This file is a shell script that caches the results of configure
  11637. # tests run on this system so they can be shared between configure
  11638. # scripts and configure runs, see configure's option --config-cache.
  11639. # It is not useful on other systems. If it contains results you don't
  11640. # want to keep, you may remove or edit it.
  11641. #
  11642. # config.status only pays attention to the cache file if you give it
  11643. # the --recheck option to rerun configure.
  11644. #
  11645. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11646. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11647. # following values.
  11648. _ACEOF
  11649. # The following way of writing the cache mishandles newlines in values,
  11650. # but we know of no workaround that is simple, portable, and efficient.
  11651. # So, we kill variables containing newlines.
  11652. # Ultrix sh set writes to stderr and can't be redirected directly,
  11653. # and sets the high bit in the cache file unless we assign to the vars.
  11654. (
  11655. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  11656. eval ac_val=\$$ac_var
  11657. case $ac_val in #(
  11658. *${as_nl}*)
  11659. case $ac_var in #(
  11660. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  11661. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  11662. esac
  11663. case $ac_var in #(
  11664. _ | IFS | as_nl) ;; #(
  11665. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  11666. *) $as_unset $ac_var ;;
  11667. esac ;;
  11668. esac
  11669. done
  11670. (set) 2>&1 |
  11671. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  11672. *${as_nl}ac_space=\ *)
  11673. # `set' does not quote correctly, so add quotes (double-quote
  11674. # substitution turns \\\\ into \\, and sed turns \\ into \).
  11675. sed -n \
  11676. "s/'/'\\\\''/g;
  11677. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11678. ;; #(
  11679. *)
  11680. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11681. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  11682. ;;
  11683. esac |
  11684. sort
  11685. ) |
  11686. sed '
  11687. /^ac_cv_env_/b end
  11688. t clear
  11689. :clear
  11690. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11691. t end
  11692. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11693. :end' >>confcache
  11694. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  11695. if test -w "$cache_file"; then
  11696. test "x$cache_file" != "x/dev/null" &&
  11697. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  11698. $as_echo "$as_me: updating cache $cache_file" >&6;}
  11699. cat confcache >$cache_file
  11700. else
  11701. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  11702. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  11703. fi
  11704. fi
  11705. rm -f confcache
  11706. for ac_func in clock fsync getrusage isascii getpassphrase
  11707. do
  11708. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11709. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  11710. $as_echo_n "checking for $ac_func... " >&6; }
  11711. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11712. $as_echo_n "(cached) " >&6
  11713. else
  11714. cat >conftest.$ac_ext <<_ACEOF
  11715. /* confdefs.h. */
  11716. _ACEOF
  11717. cat confdefs.h >>conftest.$ac_ext
  11718. cat >>conftest.$ac_ext <<_ACEOF
  11719. /* end confdefs.h. */
  11720. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11721. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11722. #define $ac_func innocuous_$ac_func
  11723. /* System header to define __stub macros and hopefully few prototypes,
  11724. which can conflict with char $ac_func (); below.
  11725. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11726. <limits.h> exists even on freestanding compilers. */
  11727. #ifdef __STDC__
  11728. # include <limits.h>
  11729. #else
  11730. # include <assert.h>
  11731. #endif
  11732. #undef $ac_func
  11733. /* Override any GCC internal prototype to avoid an error.
  11734. Use char because int might match the return type of a GCC
  11735. builtin and then its argument prototype would still apply. */
  11736. #ifdef __cplusplus
  11737. extern "C"
  11738. #endif
  11739. char $ac_func ();
  11740. /* The GNU C library defines this for functions which it implements
  11741. to always fail with ENOSYS. Some functions are actually named
  11742. something starting with __ and the normal name is an alias. */
  11743. #if defined __stub_$ac_func || defined __stub___$ac_func
  11744. choke me
  11745. #endif
  11746. int
  11747. main ()
  11748. {
  11749. return $ac_func ();
  11750. ;
  11751. return 0;
  11752. }
  11753. _ACEOF
  11754. rm -f conftest.$ac_objext conftest$ac_exeext
  11755. if { (ac_try="$ac_link"
  11756. case "(($ac_try" in
  11757. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11758. *) ac_try_echo=$ac_try;;
  11759. esac
  11760. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11761. $as_echo "$ac_try_echo") >&5
  11762. (eval "$ac_link") 2>conftest.er1
  11763. ac_status=$?
  11764. grep -v '^ *+' conftest.er1 >conftest.err
  11765. rm -f conftest.er1
  11766. cat conftest.err >&5
  11767. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11768. (exit $ac_status); } && {
  11769. test -z "$ac_cxx_werror_flag" ||
  11770. test ! -s conftest.err
  11771. } && test -s conftest$ac_exeext && {
  11772. test "$cross_compiling" = yes ||
  11773. $as_test_x conftest$ac_exeext
  11774. }; then
  11775. eval "$as_ac_var=yes"
  11776. else
  11777. $as_echo "$as_me: failed program was:" >&5
  11778. sed 's/^/| /' conftest.$ac_ext >&5
  11779. eval "$as_ac_var=no"
  11780. fi
  11781. rm -rf conftest.dSYM
  11782. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11783. conftest$ac_exeext conftest.$ac_ext
  11784. fi
  11785. ac_res=`eval 'as_val=${'$as_ac_var'}
  11786. $as_echo "$as_val"'`
  11787. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  11788. $as_echo "$ac_res" >&6; }
  11789. as_val=`eval 'as_val=${'$as_ac_var'}
  11790. $as_echo "$as_val"'`
  11791. if test "x$as_val" = x""yes; then
  11792. cat >>confdefs.h <<_ACEOF
  11793. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11794. _ACEOF
  11795. fi
  11796. done
  11797. for ac_func in memcpy memset random rename snprintf srandom gettime
  11798. do
  11799. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11800. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  11801. $as_echo_n "checking for $ac_func... " >&6; }
  11802. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11803. $as_echo_n "(cached) " >&6
  11804. else
  11805. cat >conftest.$ac_ext <<_ACEOF
  11806. /* confdefs.h. */
  11807. _ACEOF
  11808. cat confdefs.h >>conftest.$ac_ext
  11809. cat >>conftest.$ac_ext <<_ACEOF
  11810. /* end confdefs.h. */
  11811. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11812. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11813. #define $ac_func innocuous_$ac_func
  11814. /* System header to define __stub macros and hopefully few prototypes,
  11815. which can conflict with char $ac_func (); below.
  11816. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11817. <limits.h> exists even on freestanding compilers. */
  11818. #ifdef __STDC__
  11819. # include <limits.h>
  11820. #else
  11821. # include <assert.h>
  11822. #endif
  11823. #undef $ac_func
  11824. /* Override any GCC internal prototype to avoid an error.
  11825. Use char because int might match the return type of a GCC
  11826. builtin and then its argument prototype would still apply. */
  11827. #ifdef __cplusplus
  11828. extern "C"
  11829. #endif
  11830. char $ac_func ();
  11831. /* The GNU C library defines this for functions which it implements
  11832. to always fail with ENOSYS. Some functions are actually named
  11833. something starting with __ and the normal name is an alias. */
  11834. #if defined __stub_$ac_func || defined __stub___$ac_func
  11835. choke me
  11836. #endif
  11837. int
  11838. main ()
  11839. {
  11840. return $ac_func ();
  11841. ;
  11842. return 0;
  11843. }
  11844. _ACEOF
  11845. rm -f conftest.$ac_objext conftest$ac_exeext
  11846. if { (ac_try="$ac_link"
  11847. case "(($ac_try" in
  11848. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11849. *) ac_try_echo=$ac_try;;
  11850. esac
  11851. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11852. $as_echo "$ac_try_echo") >&5
  11853. (eval "$ac_link") 2>conftest.er1
  11854. ac_status=$?
  11855. grep -v '^ *+' conftest.er1 >conftest.err
  11856. rm -f conftest.er1
  11857. cat conftest.err >&5
  11858. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11859. (exit $ac_status); } && {
  11860. test -z "$ac_cxx_werror_flag" ||
  11861. test ! -s conftest.err
  11862. } && test -s conftest$ac_exeext && {
  11863. test "$cross_compiling" = yes ||
  11864. $as_test_x conftest$ac_exeext
  11865. }; then
  11866. eval "$as_ac_var=yes"
  11867. else
  11868. $as_echo "$as_me: failed program was:" >&5
  11869. sed 's/^/| /' conftest.$ac_ext >&5
  11870. eval "$as_ac_var=no"
  11871. fi
  11872. rm -rf conftest.dSYM
  11873. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11874. conftest$ac_exeext conftest.$ac_ext
  11875. fi
  11876. ac_res=`eval 'as_val=${'$as_ac_var'}
  11877. $as_echo "$as_val"'`
  11878. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  11879. $as_echo "$ac_res" >&6; }
  11880. as_val=`eval 'as_val=${'$as_ac_var'}
  11881. $as_echo "$as_val"'`
  11882. if test "x$as_val" = x""yes; then
  11883. cat >>confdefs.h <<_ACEOF
  11884. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11885. _ACEOF
  11886. fi
  11887. done
  11888. #checkpoint
  11889. cat >confcache <<\_ACEOF
  11890. # This file is a shell script that caches the results of configure
  11891. # tests run on this system so they can be shared between configure
  11892. # scripts and configure runs, see configure's option --config-cache.
  11893. # It is not useful on other systems. If it contains results you don't
  11894. # want to keep, you may remove or edit it.
  11895. #
  11896. # config.status only pays attention to the cache file if you give it
  11897. # the --recheck option to rerun configure.
  11898. #
  11899. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11900. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11901. # following values.
  11902. _ACEOF
  11903. # The following way of writing the cache mishandles newlines in values,
  11904. # but we know of no workaround that is simple, portable, and efficient.
  11905. # So, we kill variables containing newlines.
  11906. # Ultrix sh set writes to stderr and can't be redirected directly,
  11907. # and sets the high bit in the cache file unless we assign to the vars.
  11908. (
  11909. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  11910. eval ac_val=\$$ac_var
  11911. case $ac_val in #(
  11912. *${as_nl}*)
  11913. case $ac_var in #(
  11914. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  11915. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  11916. esac
  11917. case $ac_var in #(
  11918. _ | IFS | as_nl) ;; #(
  11919. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  11920. *) $as_unset $ac_var ;;
  11921. esac ;;
  11922. esac
  11923. done
  11924. (set) 2>&1 |
  11925. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  11926. *${as_nl}ac_space=\ *)
  11927. # `set' does not quote correctly, so add quotes (double-quote
  11928. # substitution turns \\\\ into \\, and sed turns \\ into \).
  11929. sed -n \
  11930. "s/'/'\\\\''/g;
  11931. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11932. ;; #(
  11933. *)
  11934. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11935. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  11936. ;;
  11937. esac |
  11938. sort
  11939. ) |
  11940. sed '
  11941. /^ac_cv_env_/b end
  11942. t clear
  11943. :clear
  11944. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11945. t end
  11946. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11947. :end' >>confcache
  11948. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  11949. if test -w "$cache_file"; then
  11950. test "x$cache_file" != "x/dev/null" &&
  11951. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  11952. $as_echo "$as_me: updating cache $cache_file" >&6;}
  11953. cat confcache >$cache_file
  11954. else
  11955. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  11956. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  11957. fi
  11958. fi
  11959. rm -f confcache
  11960. for ac_func in strcasecmp strncasecmp vsnprintf
  11961. do
  11962. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11963. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  11964. $as_echo_n "checking for $ac_func... " >&6; }
  11965. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11966. $as_echo_n "(cached) " >&6
  11967. else
  11968. cat >conftest.$ac_ext <<_ACEOF
  11969. /* confdefs.h. */
  11970. _ACEOF
  11971. cat confdefs.h >>conftest.$ac_ext
  11972. cat >>conftest.$ac_ext <<_ACEOF
  11973. /* end confdefs.h. */
  11974. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11975. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11976. #define $ac_func innocuous_$ac_func
  11977. /* System header to define __stub macros and hopefully few prototypes,
  11978. which can conflict with char $ac_func (); below.
  11979. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11980. <limits.h> exists even on freestanding compilers. */
  11981. #ifdef __STDC__
  11982. # include <limits.h>
  11983. #else
  11984. # include <assert.h>
  11985. #endif
  11986. #undef $ac_func
  11987. /* Override any GCC internal prototype to avoid an error.
  11988. Use char because int might match the return type of a GCC
  11989. builtin and then its argument prototype would still apply. */
  11990. #ifdef __cplusplus
  11991. extern "C"
  11992. #endif
  11993. char $ac_func ();
  11994. /* The GNU C library defines this for functions which it implements
  11995. to always fail with ENOSYS. Some functions are actually named
  11996. something starting with __ and the normal name is an alias. */
  11997. #if defined __stub_$ac_func || defined __stub___$ac_func
  11998. choke me
  11999. #endif
  12000. int
  12001. main ()
  12002. {
  12003. return $ac_func ();
  12004. ;
  12005. return 0;
  12006. }
  12007. _ACEOF
  12008. rm -f conftest.$ac_objext conftest$ac_exeext
  12009. if { (ac_try="$ac_link"
  12010. case "(($ac_try" in
  12011. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12012. *) ac_try_echo=$ac_try;;
  12013. esac
  12014. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12015. $as_echo "$ac_try_echo") >&5
  12016. (eval "$ac_link") 2>conftest.er1
  12017. ac_status=$?
  12018. grep -v '^ *+' conftest.er1 >conftest.err
  12019. rm -f conftest.er1
  12020. cat conftest.err >&5
  12021. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12022. (exit $ac_status); } && {
  12023. test -z "$ac_cxx_werror_flag" ||
  12024. test ! -s conftest.err
  12025. } && test -s conftest$ac_exeext && {
  12026. test "$cross_compiling" = yes ||
  12027. $as_test_x conftest$ac_exeext
  12028. }; then
  12029. eval "$as_ac_var=yes"
  12030. else
  12031. $as_echo "$as_me: failed program was:" >&5
  12032. sed 's/^/| /' conftest.$ac_ext >&5
  12033. eval "$as_ac_var=no"
  12034. fi
  12035. rm -rf conftest.dSYM
  12036. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12037. conftest$ac_exeext conftest.$ac_ext
  12038. fi
  12039. ac_res=`eval 'as_val=${'$as_ac_var'}
  12040. $as_echo "$as_val"'`
  12041. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  12042. $as_echo "$ac_res" >&6; }
  12043. as_val=`eval 'as_val=${'$as_ac_var'}
  12044. $as_echo "$as_val"'`
  12045. if test "x$as_val" = x""yes; then
  12046. cat >>confdefs.h <<_ACEOF
  12047. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12048. _ACEOF
  12049. fi
  12050. done
  12051. #autoscan suggested this....
  12052. #These are recommended by autoscan, but no code supports it currently
  12053. #AC_CHECK_FUNCS([alarm bzero dup2 getcwd gethostbyaddr gethostbyname gethostname getpass gettimeofday mbrlen
  12054. #mkdir munmap realpath select setlocale socket strchr strerror strpbrk strrchr strstr strtol tzset])
  12055. for ac_func in vsprintf
  12056. do
  12057. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12058. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  12059. $as_echo_n "checking for $ac_func... " >&6; }
  12060. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  12061. $as_echo_n "(cached) " >&6
  12062. else
  12063. cat >conftest.$ac_ext <<_ACEOF
  12064. /* confdefs.h. */
  12065. _ACEOF
  12066. cat confdefs.h >>conftest.$ac_ext
  12067. cat >>conftest.$ac_ext <<_ACEOF
  12068. /* end confdefs.h. */
  12069. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  12070. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  12071. #define $ac_func innocuous_$ac_func
  12072. /* System header to define __stub macros and hopefully few prototypes,
  12073. which can conflict with char $ac_func (); below.
  12074. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  12075. <limits.h> exists even on freestanding compilers. */
  12076. #ifdef __STDC__
  12077. # include <limits.h>
  12078. #else
  12079. # include <assert.h>
  12080. #endif
  12081. #undef $ac_func
  12082. /* Override any GCC internal prototype to avoid an error.
  12083. Use char because int might match the return type of a GCC
  12084. builtin and then its argument prototype would still apply. */
  12085. #ifdef __cplusplus
  12086. extern "C"
  12087. #endif
  12088. char $ac_func ();
  12089. /* The GNU C library defines this for functions which it implements
  12090. to always fail with ENOSYS. Some functions are actually named
  12091. something starting with __ and the normal name is an alias. */
  12092. #if defined __stub_$ac_func || defined __stub___$ac_func
  12093. choke me
  12094. #endif
  12095. int
  12096. main ()
  12097. {
  12098. return $ac_func ();
  12099. ;
  12100. return 0;
  12101. }
  12102. _ACEOF
  12103. rm -f conftest.$ac_objext conftest$ac_exeext
  12104. if { (ac_try="$ac_link"
  12105. case "(($ac_try" in
  12106. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12107. *) ac_try_echo=$ac_try;;
  12108. esac
  12109. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12110. $as_echo "$ac_try_echo") >&5
  12111. (eval "$ac_link") 2>conftest.er1
  12112. ac_status=$?
  12113. grep -v '^ *+' conftest.er1 >conftest.err
  12114. rm -f conftest.er1
  12115. cat conftest.err >&5
  12116. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12117. (exit $ac_status); } && {
  12118. test -z "$ac_cxx_werror_flag" ||
  12119. test ! -s conftest.err
  12120. } && test -s conftest$ac_exeext && {
  12121. test "$cross_compiling" = yes ||
  12122. $as_test_x conftest$ac_exeext
  12123. }; then
  12124. eval "$as_ac_var=yes"
  12125. else
  12126. $as_echo "$as_me: failed program was:" >&5
  12127. sed 's/^/| /' conftest.$ac_ext >&5
  12128. eval "$as_ac_var=no"
  12129. fi
  12130. rm -rf conftest.dSYM
  12131. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12132. conftest$ac_exeext conftest.$ac_ext
  12133. fi
  12134. ac_res=`eval 'as_val=${'$as_ac_var'}
  12135. $as_echo "$as_val"'`
  12136. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  12137. $as_echo "$ac_res" >&6; }
  12138. as_val=`eval 'as_val=${'$as_ac_var'}
  12139. $as_echo "$as_val"'`
  12140. if test "x$as_val" = x""yes; then
  12141. cat >>confdefs.h <<_ACEOF
  12142. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12143. _ACEOF
  12144. fi
  12145. done
  12146. if test "$ac_cv_func_vsprintf" = "no"
  12147. then
  12148. cat << 'EOF' >&2
  12149. configure: error:
  12150. Your system does not have the sprintf/vsprintf libraries.
  12151. These are required to compile almost anything. Sorry.
  12152. EOF
  12153. exit 1
  12154. fi
  12155. for ac_func in uname
  12156. do
  12157. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12158. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  12159. $as_echo_n "checking for $ac_func... " >&6; }
  12160. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  12161. $as_echo_n "(cached) " >&6
  12162. else
  12163. cat >conftest.$ac_ext <<_ACEOF
  12164. /* confdefs.h. */
  12165. _ACEOF
  12166. cat confdefs.h >>conftest.$ac_ext
  12167. cat >>conftest.$ac_ext <<_ACEOF
  12168. /* end confdefs.h. */
  12169. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  12170. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  12171. #define $ac_func innocuous_$ac_func
  12172. /* System header to define __stub macros and hopefully few prototypes,
  12173. which can conflict with char $ac_func (); below.
  12174. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  12175. <limits.h> exists even on freestanding compilers. */
  12176. #ifdef __STDC__
  12177. # include <limits.h>
  12178. #else
  12179. # include <assert.h>
  12180. #endif
  12181. #undef $ac_func
  12182. /* Override any GCC internal prototype to avoid an error.
  12183. Use char because int might match the return type of a GCC
  12184. builtin and then its argument prototype would still apply. */
  12185. #ifdef __cplusplus
  12186. extern "C"
  12187. #endif
  12188. char $ac_func ();
  12189. /* The GNU C library defines this for functions which it implements
  12190. to always fail with ENOSYS. Some functions are actually named
  12191. something starting with __ and the normal name is an alias. */
  12192. #if defined __stub_$ac_func || defined __stub___$ac_func
  12193. choke me
  12194. #endif
  12195. int
  12196. main ()
  12197. {
  12198. return $ac_func ();
  12199. ;
  12200. return 0;
  12201. }
  12202. _ACEOF
  12203. rm -f conftest.$ac_objext conftest$ac_exeext
  12204. if { (ac_try="$ac_link"
  12205. case "(($ac_try" in
  12206. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12207. *) ac_try_echo=$ac_try;;
  12208. esac
  12209. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12210. $as_echo "$ac_try_echo") >&5
  12211. (eval "$ac_link") 2>conftest.er1
  12212. ac_status=$?
  12213. grep -v '^ *+' conftest.er1 >conftest.err
  12214. rm -f conftest.er1
  12215. cat conftest.err >&5
  12216. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12217. (exit $ac_status); } && {
  12218. test -z "$ac_cxx_werror_flag" ||
  12219. test ! -s conftest.err
  12220. } && test -s conftest$ac_exeext && {
  12221. test "$cross_compiling" = yes ||
  12222. $as_test_x conftest$ac_exeext
  12223. }; then
  12224. eval "$as_ac_var=yes"
  12225. else
  12226. $as_echo "$as_me: failed program was:" >&5
  12227. sed 's/^/| /' conftest.$ac_ext >&5
  12228. eval "$as_ac_var=no"
  12229. fi
  12230. rm -rf conftest.dSYM
  12231. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12232. conftest$ac_exeext conftest.$ac_ext
  12233. fi
  12234. ac_res=`eval 'as_val=${'$as_ac_var'}
  12235. $as_echo "$as_val"'`
  12236. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  12237. $as_echo "$ac_res" >&6; }
  12238. as_val=`eval 'as_val=${'$as_ac_var'}
  12239. $as_echo "$as_val"'`
  12240. if test "x$as_val" = x""yes; then
  12241. cat >>confdefs.h <<_ACEOF
  12242. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12243. _ACEOF
  12244. fi
  12245. done
  12246. if test "$ac_cv_func_uname" = "no"
  12247. then
  12248. cat << 'EOF' >&2
  12249. configure: error:
  12250. Your system does not have the uname() function.
  12251. This is required for the botpack.
  12252. EOF
  12253. exit 1
  12254. fi
  12255. # Make sure we have stdc headers, since we can't compile without them
  12256. if test "$ac_cv_header_stdc" = "no"
  12257. then
  12258. cat << 'EOF' >&2
  12259. configure: error:
  12260. Your system must support ANSI C Header files.
  12261. These are required for the language support. Sorry.
  12262. EOF
  12263. exit 1
  12264. fi
  12265. #checkpoint
  12266. cat >confcache <<\_ACEOF
  12267. # This file is a shell script that caches the results of configure
  12268. # tests run on this system so they can be shared between configure
  12269. # scripts and configure runs, see configure's option --config-cache.
  12270. # It is not useful on other systems. If it contains results you don't
  12271. # want to keep, you may remove or edit it.
  12272. #
  12273. # config.status only pays attention to the cache file if you give it
  12274. # the --recheck option to rerun configure.
  12275. #
  12276. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  12277. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  12278. # following values.
  12279. _ACEOF
  12280. # The following way of writing the cache mishandles newlines in values,
  12281. # but we know of no workaround that is simple, portable, and efficient.
  12282. # So, we kill variables containing newlines.
  12283. # Ultrix sh set writes to stderr and can't be redirected directly,
  12284. # and sets the high bit in the cache file unless we assign to the vars.
  12285. (
  12286. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  12287. eval ac_val=\$$ac_var
  12288. case $ac_val in #(
  12289. *${as_nl}*)
  12290. case $ac_var in #(
  12291. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  12292. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  12293. esac
  12294. case $ac_var in #(
  12295. _ | IFS | as_nl) ;; #(
  12296. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  12297. *) $as_unset $ac_var ;;
  12298. esac ;;
  12299. esac
  12300. done
  12301. (set) 2>&1 |
  12302. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  12303. *${as_nl}ac_space=\ *)
  12304. # `set' does not quote correctly, so add quotes (double-quote
  12305. # substitution turns \\\\ into \\, and sed turns \\ into \).
  12306. sed -n \
  12307. "s/'/'\\\\''/g;
  12308. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  12309. ;; #(
  12310. *)
  12311. # `set' quotes correctly as required by POSIX, so do not add quotes.
  12312. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  12313. ;;
  12314. esac |
  12315. sort
  12316. ) |
  12317. sed '
  12318. /^ac_cv_env_/b end
  12319. t clear
  12320. :clear
  12321. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  12322. t end
  12323. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  12324. :end' >>confcache
  12325. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  12326. if test -w "$cache_file"; then
  12327. test "x$cache_file" != "x/dev/null" &&
  12328. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  12329. $as_echo "$as_me: updating cache $cache_file" >&6;}
  12330. cat confcache >$cache_file
  12331. else
  12332. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  12333. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  12334. fi
  12335. fi
  12336. rm -f confcache
  12337. VERSION=`grep "char" $srcdir/src/main.c | $AWK '/egg_version/ {print $5}' | sed -e 's/\"//g' | sed -e 's/\;//g'`
  12338. version_num=`echo $VERSION | $AWK 'BEGIN {FS = "."} {printf("%d%02d%02d", $1, $2, $3)}'`
  12339. cat >>confdefs.h <<_ACEOF
  12340. #define EGG_VERSION $version_num
  12341. _ACEOF
  12342. #FIND_WRAPS
  12343. case "$srcdir" in
  12344. [\\/]* | ?:[\\/]*)
  12345. MOD_UPDIR=""
  12346. ;;
  12347. *)
  12348. MOD_UPDIR="../"
  12349. ;;
  12350. esac
  12351. 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/server.mod/Makefile src/mod/share.mod/Makefile src/mod/transfer.mod/Makefile src/mod/update.mod/Makefile"
  12352. for mf in $files; do
  12353. # Strip MF so we end up with the name of the file.
  12354. # echo "MF: $mf"
  12355. mf=`echo "$mf" | sed -e 's/:.*$//'`
  12356. dirpart=`$as_dirname -- "$mf" ||
  12357. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12358. X"$mf" : 'X\(//\)[^/]' \| \
  12359. X"$mf" : 'X\(//\)$' \| \
  12360. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  12361. $as_echo X"$mf" |
  12362. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12363. s//\1/
  12364. q
  12365. }
  12366. /^X\(\/\/\)[^/].*/{
  12367. s//\1/
  12368. q
  12369. }
  12370. /^X\(\/\/\)$/{
  12371. s//\1/
  12372. q
  12373. }
  12374. /^X\(\/\).*/{
  12375. s//\1/
  12376. q
  12377. }
  12378. s/.*/./; q'`
  12379. # echo "dirpart: $dirpart mf: $mf"
  12380. # rm -rf "$dirpart/.deps/"
  12381. rm -f "$dirpart/.deps/includes"
  12382. test -d "$dirpart/.deps" || mkdir "$dirpart/.deps"
  12383. for file in `sed -n -e '
  12384. /^OBJS = .*\\\\$/ {
  12385. s/^OBJS = //
  12386. :loop
  12387. s/\\\\$//
  12388. p
  12389. n
  12390. /\\\\$/ b loop
  12391. p
  12392. }
  12393. /^OBJS = / s/^OBJS = //p' < "$mf"`;
  12394. do
  12395. base=`basename $file .o`
  12396. test -f "$dirpart/$base.c" || continue
  12397. if ! test -f "$dirpart/.deps/$base.Po"; then
  12398. echo '# dummy' > "$dirpart/.deps/$base.Po"
  12399. #Remove the .o file, because it needs to be recompiled for its dependancies.
  12400. if test -f "$dirpart/$base.o"; then
  12401. rm -f "$dirpart/$base.o"
  12402. fi
  12403. fi
  12404. echo "include .deps/$base.Po" >> "$dirpart/.deps/includes"
  12405. echo "_$base.c:" >> "$dirpart/.deps/includes"
  12406. done
  12407. done
  12408. ac_config_files="$ac_config_files Makefile lib/Makefile src/Makefile src/compat/Makefile src/crypto/Makefile src/mod/Makefile src/buildinfo.h"
  12409. cat >confcache <<\_ACEOF
  12410. # This file is a shell script that caches the results of configure
  12411. # tests run on this system so they can be shared between configure
  12412. # scripts and configure runs, see configure's option --config-cache.
  12413. # It is not useful on other systems. If it contains results you don't
  12414. # want to keep, you may remove or edit it.
  12415. #
  12416. # config.status only pays attention to the cache file if you give it
  12417. # the --recheck option to rerun configure.
  12418. #
  12419. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  12420. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  12421. # following values.
  12422. _ACEOF
  12423. # The following way of writing the cache mishandles newlines in values,
  12424. # but we know of no workaround that is simple, portable, and efficient.
  12425. # So, we kill variables containing newlines.
  12426. # Ultrix sh set writes to stderr and can't be redirected directly,
  12427. # and sets the high bit in the cache file unless we assign to the vars.
  12428. (
  12429. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  12430. eval ac_val=\$$ac_var
  12431. case $ac_val in #(
  12432. *${as_nl}*)
  12433. case $ac_var in #(
  12434. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  12435. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  12436. esac
  12437. case $ac_var in #(
  12438. _ | IFS | as_nl) ;; #(
  12439. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  12440. *) $as_unset $ac_var ;;
  12441. esac ;;
  12442. esac
  12443. done
  12444. (set) 2>&1 |
  12445. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  12446. *${as_nl}ac_space=\ *)
  12447. # `set' does not quote correctly, so add quotes (double-quote
  12448. # substitution turns \\\\ into \\, and sed turns \\ into \).
  12449. sed -n \
  12450. "s/'/'\\\\''/g;
  12451. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  12452. ;; #(
  12453. *)
  12454. # `set' quotes correctly as required by POSIX, so do not add quotes.
  12455. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  12456. ;;
  12457. esac |
  12458. sort
  12459. ) |
  12460. sed '
  12461. /^ac_cv_env_/b end
  12462. t clear
  12463. :clear
  12464. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  12465. t end
  12466. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  12467. :end' >>confcache
  12468. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  12469. if test -w "$cache_file"; then
  12470. test "x$cache_file" != "x/dev/null" &&
  12471. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  12472. $as_echo "$as_me: updating cache $cache_file" >&6;}
  12473. cat confcache >$cache_file
  12474. else
  12475. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  12476. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  12477. fi
  12478. fi
  12479. rm -f confcache
  12480. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  12481. # Let make expand exec_prefix.
  12482. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  12483. DEFS=-DHAVE_CONFIG_H
  12484. ac_libobjs=
  12485. ac_ltlibobjs=
  12486. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  12487. # 1. Remove the extension, and $U if already installed.
  12488. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  12489. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  12490. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  12491. # will be set to the directory where LIBOBJS objects are built.
  12492. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  12493. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  12494. done
  12495. LIBOBJS=$ac_libobjs
  12496. LTLIBOBJS=$ac_ltlibobjs
  12497. : ${CONFIG_STATUS=./config.status}
  12498. ac_write_fail=0
  12499. ac_clean_files_save=$ac_clean_files
  12500. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  12501. { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  12502. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  12503. cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12504. #! $SHELL
  12505. # Generated by $as_me.
  12506. # Run this file to recreate the current configuration.
  12507. # Compiler output produced by configure, useful for debugging
  12508. # configure, is in config.log if it exists.
  12509. debug=false
  12510. ac_cs_recheck=false
  12511. ac_cs_silent=false
  12512. SHELL=\${CONFIG_SHELL-$SHELL}
  12513. _ACEOF
  12514. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12515. ## --------------------- ##
  12516. ## M4sh Initialization. ##
  12517. ## --------------------- ##
  12518. # Be more Bourne compatible
  12519. DUALCASE=1; export DUALCASE # for MKS sh
  12520. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  12521. emulate sh
  12522. NULLCMD=:
  12523. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  12524. # is contrary to our usage. Disable this feature.
  12525. alias -g '${1+"$@"}'='"$@"'
  12526. setopt NO_GLOB_SUBST
  12527. else
  12528. case `(set -o) 2>/dev/null` in
  12529. *posix*) set -o posix ;;
  12530. esac
  12531. fi
  12532. # PATH needs CR
  12533. # Avoid depending upon Character Ranges.
  12534. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  12535. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  12536. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  12537. as_cr_digits='0123456789'
  12538. as_cr_alnum=$as_cr_Letters$as_cr_digits
  12539. as_nl='
  12540. '
  12541. export as_nl
  12542. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  12543. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  12544. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  12545. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  12546. if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  12547. as_echo='printf %s\n'
  12548. as_echo_n='printf %s'
  12549. else
  12550. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  12551. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  12552. as_echo_n='/usr/ucb/echo -n'
  12553. else
  12554. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  12555. as_echo_n_body='eval
  12556. arg=$1;
  12557. case $arg in
  12558. *"$as_nl"*)
  12559. expr "X$arg" : "X\\(.*\\)$as_nl";
  12560. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  12561. esac;
  12562. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  12563. '
  12564. export as_echo_n_body
  12565. as_echo_n='sh -c $as_echo_n_body as_echo'
  12566. fi
  12567. export as_echo_body
  12568. as_echo='sh -c $as_echo_body as_echo'
  12569. fi
  12570. # The user is always right.
  12571. if test "${PATH_SEPARATOR+set}" != set; then
  12572. PATH_SEPARATOR=:
  12573. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  12574. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  12575. PATH_SEPARATOR=';'
  12576. }
  12577. fi
  12578. # Support unset when possible.
  12579. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  12580. as_unset=unset
  12581. else
  12582. as_unset=false
  12583. fi
  12584. # IFS
  12585. # We need space, tab and new line, in precisely that order. Quoting is
  12586. # there to prevent editors from complaining about space-tab.
  12587. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  12588. # splitting by setting IFS to empty value.)
  12589. IFS=" "" $as_nl"
  12590. # Find who we are. Look in the path if we contain no directory separator.
  12591. case $0 in
  12592. *[\\/]* ) as_myself=$0 ;;
  12593. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12594. for as_dir in $PATH
  12595. do
  12596. IFS=$as_save_IFS
  12597. test -z "$as_dir" && as_dir=.
  12598. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  12599. done
  12600. IFS=$as_save_IFS
  12601. ;;
  12602. esac
  12603. # We did not find ourselves, most probably we were run as `sh COMMAND'
  12604. # in which case we are not to be found in the path.
  12605. if test "x$as_myself" = x; then
  12606. as_myself=$0
  12607. fi
  12608. if test ! -f "$as_myself"; then
  12609. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  12610. { (exit 1); exit 1; }
  12611. fi
  12612. # Work around bugs in pre-3.0 UWIN ksh.
  12613. for as_var in ENV MAIL MAILPATH
  12614. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  12615. done
  12616. PS1='$ '
  12617. PS2='> '
  12618. PS4='+ '
  12619. # NLS nuisances.
  12620. LC_ALL=C
  12621. export LC_ALL
  12622. LANGUAGE=C
  12623. export LANGUAGE
  12624. # Required to use basename.
  12625. if expr a : '\(a\)' >/dev/null 2>&1 &&
  12626. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  12627. as_expr=expr
  12628. else
  12629. as_expr=false
  12630. fi
  12631. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  12632. as_basename=basename
  12633. else
  12634. as_basename=false
  12635. fi
  12636. # Name of the executable.
  12637. as_me=`$as_basename -- "$0" ||
  12638. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  12639. X"$0" : 'X\(//\)$' \| \
  12640. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  12641. $as_echo X/"$0" |
  12642. sed '/^.*\/\([^/][^/]*\)\/*$/{
  12643. s//\1/
  12644. q
  12645. }
  12646. /^X\/\(\/\/\)$/{
  12647. s//\1/
  12648. q
  12649. }
  12650. /^X\/\(\/\).*/{
  12651. s//\1/
  12652. q
  12653. }
  12654. s/.*/./; q'`
  12655. # CDPATH.
  12656. $as_unset CDPATH
  12657. as_lineno_1=$LINENO
  12658. as_lineno_2=$LINENO
  12659. test "x$as_lineno_1" != "x$as_lineno_2" &&
  12660. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  12661. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  12662. # uniformly replaced by the line number. The first 'sed' inserts a
  12663. # line-number line after each line using $LINENO; the second 'sed'
  12664. # does the real work. The second script uses 'N' to pair each
  12665. # line-number line with the line containing $LINENO, and appends
  12666. # trailing '-' during substitution so that $LINENO is not a special
  12667. # case at line end.
  12668. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  12669. # scripts with optimization help from Paolo Bonzini. Blame Lee
  12670. # E. McMahon (1931-1989) for sed's syntax. :-)
  12671. sed -n '
  12672. p
  12673. /[$]LINENO/=
  12674. ' <$as_myself |
  12675. sed '
  12676. s/[$]LINENO.*/&-/
  12677. t lineno
  12678. b
  12679. :lineno
  12680. N
  12681. :loop
  12682. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  12683. t loop
  12684. s/-\n.*//
  12685. ' >$as_me.lineno &&
  12686. chmod +x "$as_me.lineno" ||
  12687. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  12688. { (exit 1); exit 1; }; }
  12689. # Don't try to exec as it changes $[0], causing all sort of problems
  12690. # (the dirname of $[0] is not the place where we might find the
  12691. # original and so on. Autoconf is especially sensitive to this).
  12692. . "./$as_me.lineno"
  12693. # Exit status is that of the last command.
  12694. exit
  12695. }
  12696. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  12697. as_dirname=dirname
  12698. else
  12699. as_dirname=false
  12700. fi
  12701. ECHO_C= ECHO_N= ECHO_T=
  12702. case `echo -n x` in
  12703. -n*)
  12704. case `echo 'x\c'` in
  12705. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  12706. *) ECHO_C='\c';;
  12707. esac;;
  12708. *)
  12709. ECHO_N='-n';;
  12710. esac
  12711. if expr a : '\(a\)' >/dev/null 2>&1 &&
  12712. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  12713. as_expr=expr
  12714. else
  12715. as_expr=false
  12716. fi
  12717. rm -f conf$$ conf$$.exe conf$$.file
  12718. if test -d conf$$.dir; then
  12719. rm -f conf$$.dir/conf$$.file
  12720. else
  12721. rm -f conf$$.dir
  12722. mkdir conf$$.dir 2>/dev/null
  12723. fi
  12724. if (echo >conf$$.file) 2>/dev/null; then
  12725. if ln -s conf$$.file conf$$ 2>/dev/null; then
  12726. as_ln_s='ln -s'
  12727. # ... but there are two gotchas:
  12728. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  12729. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  12730. # In both cases, we have to default to `cp -p'.
  12731. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  12732. as_ln_s='cp -p'
  12733. elif ln conf$$.file conf$$ 2>/dev/null; then
  12734. as_ln_s=ln
  12735. else
  12736. as_ln_s='cp -p'
  12737. fi
  12738. else
  12739. as_ln_s='cp -p'
  12740. fi
  12741. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  12742. rmdir conf$$.dir 2>/dev/null
  12743. if mkdir -p . 2>/dev/null; then
  12744. as_mkdir_p=:
  12745. else
  12746. test -d ./-p && rmdir ./-p
  12747. as_mkdir_p=false
  12748. fi
  12749. if test -x / >/dev/null 2>&1; then
  12750. as_test_x='test -x'
  12751. else
  12752. if ls -dL / >/dev/null 2>&1; then
  12753. as_ls_L_option=L
  12754. else
  12755. as_ls_L_option=
  12756. fi
  12757. as_test_x='
  12758. eval sh -c '\''
  12759. if test -d "$1"; then
  12760. test -d "$1/.";
  12761. else
  12762. case $1 in
  12763. -*)set "./$1";;
  12764. esac;
  12765. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  12766. ???[sx]*):;;*)false;;esac;fi
  12767. '\'' sh
  12768. '
  12769. fi
  12770. as_executable_p=$as_test_x
  12771. # Sed expression to map a string onto a valid CPP name.
  12772. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  12773. # Sed expression to map a string onto a valid variable name.
  12774. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  12775. exec 6>&1
  12776. # Save the log message, to keep $[0] and so on meaningful, and to
  12777. # report actual input values of CONFIG_FILES etc. instead of their
  12778. # values after options handling.
  12779. ac_log="
  12780. This file was extended by $as_me, which was
  12781. generated by GNU Autoconf 2.63. Invocation command line was
  12782. CONFIG_FILES = $CONFIG_FILES
  12783. CONFIG_HEADERS = $CONFIG_HEADERS
  12784. CONFIG_LINKS = $CONFIG_LINKS
  12785. CONFIG_COMMANDS = $CONFIG_COMMANDS
  12786. $ $0 $@
  12787. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  12788. "
  12789. _ACEOF
  12790. case $ac_config_files in *"
  12791. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  12792. esac
  12793. case $ac_config_headers in *"
  12794. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  12795. esac
  12796. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12797. # Files that config.status was made for.
  12798. config_files="$ac_config_files"
  12799. config_headers="$ac_config_headers"
  12800. _ACEOF
  12801. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12802. ac_cs_usage="\
  12803. \`$as_me' instantiates files from templates according to the
  12804. current configuration.
  12805. Usage: $0 [OPTION]... [FILE]...
  12806. -h, --help print this help, then exit
  12807. -V, --version print version number and configuration settings, then exit
  12808. -q, --quiet, --silent
  12809. do not print progress messages
  12810. -d, --debug don't remove temporary files
  12811. --recheck update $as_me by reconfiguring in the same conditions
  12812. --file=FILE[:TEMPLATE]
  12813. instantiate the configuration file FILE
  12814. --header=FILE[:TEMPLATE]
  12815. instantiate the configuration header FILE
  12816. Configuration files:
  12817. $config_files
  12818. Configuration headers:
  12819. $config_headers
  12820. Report bugs to <bug-autoconf@gnu.org>."
  12821. _ACEOF
  12822. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12823. ac_cs_version="\\
  12824. config.status
  12825. configured by $0, generated by GNU Autoconf 2.63,
  12826. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  12827. Copyright (C) 2008 Free Software Foundation, Inc.
  12828. This config.status script is free software; the Free Software Foundation
  12829. gives unlimited permission to copy, distribute and modify it."
  12830. ac_pwd='$ac_pwd'
  12831. srcdir='$srcdir'
  12832. AWK='$AWK'
  12833. test -n "\$AWK" || AWK=awk
  12834. _ACEOF
  12835. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12836. # The default lists apply if the user does not specify any file.
  12837. ac_need_defaults=:
  12838. while test $# != 0
  12839. do
  12840. case $1 in
  12841. --*=*)
  12842. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  12843. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  12844. ac_shift=:
  12845. ;;
  12846. *)
  12847. ac_option=$1
  12848. ac_optarg=$2
  12849. ac_shift=shift
  12850. ;;
  12851. esac
  12852. case $ac_option in
  12853. # Handling of the options.
  12854. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  12855. ac_cs_recheck=: ;;
  12856. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  12857. $as_echo "$ac_cs_version"; exit ;;
  12858. --debug | --debu | --deb | --de | --d | -d )
  12859. debug=: ;;
  12860. --file | --fil | --fi | --f )
  12861. $ac_shift
  12862. case $ac_optarg in
  12863. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  12864. esac
  12865. CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
  12866. ac_need_defaults=false;;
  12867. --header | --heade | --head | --hea )
  12868. $ac_shift
  12869. case $ac_optarg in
  12870. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  12871. esac
  12872. CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
  12873. ac_need_defaults=false;;
  12874. --he | --h)
  12875. # Conflict between --help and --header
  12876. { $as_echo "$as_me: error: ambiguous option: $1
  12877. Try \`$0 --help' for more information." >&2
  12878. { (exit 1); exit 1; }; };;
  12879. --help | --hel | -h )
  12880. $as_echo "$ac_cs_usage"; exit ;;
  12881. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  12882. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  12883. ac_cs_silent=: ;;
  12884. # This is an error.
  12885. -*) { $as_echo "$as_me: error: unrecognized option: $1
  12886. Try \`$0 --help' for more information." >&2
  12887. { (exit 1); exit 1; }; } ;;
  12888. *) ac_config_targets="$ac_config_targets $1"
  12889. ac_need_defaults=false ;;
  12890. esac
  12891. shift
  12892. done
  12893. ac_configure_extra_args=
  12894. if $ac_cs_silent; then
  12895. exec 6>/dev/null
  12896. ac_configure_extra_args="$ac_configure_extra_args --silent"
  12897. fi
  12898. _ACEOF
  12899. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12900. if \$ac_cs_recheck; then
  12901. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  12902. shift
  12903. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  12904. CONFIG_SHELL='$SHELL'
  12905. export CONFIG_SHELL
  12906. exec "\$@"
  12907. fi
  12908. _ACEOF
  12909. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12910. exec 5>>config.log
  12911. {
  12912. echo
  12913. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  12914. ## Running $as_me. ##
  12915. _ASBOX
  12916. $as_echo "$ac_log"
  12917. } >&5
  12918. _ACEOF
  12919. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12920. _ACEOF
  12921. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12922. # Handling of arguments.
  12923. for ac_config_target in $ac_config_targets
  12924. do
  12925. case $ac_config_target in
  12926. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  12927. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  12928. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  12929. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  12930. "src/compat/Makefile") CONFIG_FILES="$CONFIG_FILES src/compat/Makefile" ;;
  12931. "src/crypto/Makefile") CONFIG_FILES="$CONFIG_FILES src/crypto/Makefile" ;;
  12932. "src/mod/Makefile") CONFIG_FILES="$CONFIG_FILES src/mod/Makefile" ;;
  12933. "src/buildinfo.h") CONFIG_FILES="$CONFIG_FILES src/buildinfo.h" ;;
  12934. *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  12935. $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  12936. { (exit 1); exit 1; }; };;
  12937. esac
  12938. done
  12939. # If the user did not use the arguments to specify the items to instantiate,
  12940. # then the envvar interface is used. Set only those that are not.
  12941. # We use the long form for the default assignment because of an extremely
  12942. # bizarre bug on SunOS 4.1.3.
  12943. if $ac_need_defaults; then
  12944. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  12945. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  12946. fi
  12947. # Have a temporary directory for convenience. Make it in the build tree
  12948. # simply because there is no reason against having it here, and in addition,
  12949. # creating and moving files from /tmp can sometimes cause problems.
  12950. # Hook for its removal unless debugging.
  12951. # Note that there is a small window in which the directory will not be cleaned:
  12952. # after its creation but before its name has been assigned to `$tmp'.
  12953. $debug ||
  12954. {
  12955. tmp=
  12956. trap 'exit_status=$?
  12957. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  12958. ' 0
  12959. trap '{ (exit 1); exit 1; }' 1 2 13 15
  12960. }
  12961. # Create a (secure) tmp directory for tmp files.
  12962. {
  12963. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  12964. test -n "$tmp" && test -d "$tmp"
  12965. } ||
  12966. {
  12967. tmp=./conf$$-$RANDOM
  12968. (umask 077 && mkdir "$tmp")
  12969. } ||
  12970. {
  12971. $as_echo "$as_me: cannot create a temporary directory in ." >&2
  12972. { (exit 1); exit 1; }
  12973. }
  12974. # Set up the scripts for CONFIG_FILES section.
  12975. # No need to generate them if there are no CONFIG_FILES.
  12976. # This happens for instance with `./config.status config.h'.
  12977. if test -n "$CONFIG_FILES"; then
  12978. ac_cr=' '
  12979. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  12980. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  12981. ac_cs_awk_cr='\\r'
  12982. else
  12983. ac_cs_awk_cr=$ac_cr
  12984. fi
  12985. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  12986. _ACEOF
  12987. {
  12988. echo "cat >conf$$subs.awk <<_ACEOF" &&
  12989. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  12990. echo "_ACEOF"
  12991. } >conf$$subs.sh ||
  12992. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  12993. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  12994. { (exit 1); exit 1; }; }
  12995. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  12996. ac_delim='%!_!# '
  12997. for ac_last_try in false false false false false :; do
  12998. . ./conf$$subs.sh ||
  12999. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  13000. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  13001. { (exit 1); exit 1; }; }
  13002. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  13003. if test $ac_delim_n = $ac_delim_num; then
  13004. break
  13005. elif $ac_last_try; then
  13006. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  13007. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  13008. { (exit 1); exit 1; }; }
  13009. else
  13010. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  13011. fi
  13012. done
  13013. rm -f conf$$subs.sh
  13014. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13015. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  13016. _ACEOF
  13017. sed -n '
  13018. h
  13019. s/^/S["/; s/!.*/"]=/
  13020. p
  13021. g
  13022. s/^[^!]*!//
  13023. :repl
  13024. t repl
  13025. s/'"$ac_delim"'$//
  13026. t delim
  13027. :nl
  13028. h
  13029. s/\(.\{148\}\).*/\1/
  13030. t more1
  13031. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  13032. p
  13033. n
  13034. b repl
  13035. :more1
  13036. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  13037. p
  13038. g
  13039. s/.\{148\}//
  13040. t nl
  13041. :delim
  13042. h
  13043. s/\(.\{148\}\).*/\1/
  13044. t more2
  13045. s/["\\]/\\&/g; s/^/"/; s/$/"/
  13046. p
  13047. b
  13048. :more2
  13049. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  13050. p
  13051. g
  13052. s/.\{148\}//
  13053. t delim
  13054. ' <conf$$subs.awk | sed '
  13055. /^[^""]/{
  13056. N
  13057. s/\n//
  13058. }
  13059. ' >>$CONFIG_STATUS || ac_write_fail=1
  13060. rm -f conf$$subs.awk
  13061. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13062. _ACAWK
  13063. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  13064. for (key in S) S_is_set[key] = 1
  13065. FS = ""
  13066. }
  13067. {
  13068. line = $ 0
  13069. nfields = split(line, field, "@")
  13070. substed = 0
  13071. len = length(field[1])
  13072. for (i = 2; i < nfields; i++) {
  13073. key = field[i]
  13074. keylen = length(key)
  13075. if (S_is_set[key]) {
  13076. value = S[key]
  13077. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  13078. len += length(value) + length(field[++i])
  13079. substed = 1
  13080. } else
  13081. len += 1 + keylen
  13082. }
  13083. print line
  13084. }
  13085. _ACAWK
  13086. _ACEOF
  13087. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13088. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  13089. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  13090. else
  13091. cat
  13092. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  13093. || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
  13094. $as_echo "$as_me: error: could not setup config files machinery" >&2;}
  13095. { (exit 1); exit 1; }; }
  13096. _ACEOF
  13097. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  13098. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  13099. # trailing colons and then remove the whole line if VPATH becomes empty
  13100. # (actually we leave an empty line to preserve line numbers).
  13101. if test "x$srcdir" = x.; then
  13102. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  13103. s/:*\$(srcdir):*/:/
  13104. s/:*\${srcdir}:*/:/
  13105. s/:*@srcdir@:*/:/
  13106. s/^\([^=]*=[ ]*\):*/\1/
  13107. s/:*$//
  13108. s/^[^=]*=[ ]*$//
  13109. }'
  13110. fi
  13111. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13112. fi # test -n "$CONFIG_FILES"
  13113. # Set up the scripts for CONFIG_HEADERS section.
  13114. # No need to generate them if there are no CONFIG_HEADERS.
  13115. # This happens for instance with `./config.status Makefile'.
  13116. if test -n "$CONFIG_HEADERS"; then
  13117. cat >"$tmp/defines.awk" <<\_ACAWK ||
  13118. BEGIN {
  13119. _ACEOF
  13120. # Transform confdefs.h into an awk script `defines.awk', embedded as
  13121. # here-document in config.status, that substitutes the proper values into
  13122. # config.h.in to produce config.h.
  13123. # Create a delimiter string that does not exist in confdefs.h, to ease
  13124. # handling of long lines.
  13125. ac_delim='%!_!# '
  13126. for ac_last_try in false false :; do
  13127. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  13128. if test -z "$ac_t"; then
  13129. break
  13130. elif $ac_last_try; then
  13131. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
  13132. $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
  13133. { (exit 1); exit 1; }; }
  13134. else
  13135. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  13136. fi
  13137. done
  13138. # For the awk script, D is an array of macro values keyed by name,
  13139. # likewise P contains macro parameters if any. Preserve backslash
  13140. # newline sequences.
  13141. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  13142. sed -n '
  13143. s/.\{148\}/&'"$ac_delim"'/g
  13144. t rset
  13145. :rset
  13146. s/^[ ]*#[ ]*define[ ][ ]*/ /
  13147. t def
  13148. d
  13149. :def
  13150. s/\\$//
  13151. t bsnl
  13152. s/["\\]/\\&/g
  13153. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  13154. D["\1"]=" \3"/p
  13155. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  13156. d
  13157. :bsnl
  13158. s/["\\]/\\&/g
  13159. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  13160. D["\1"]=" \3\\\\\\n"\\/p
  13161. t cont
  13162. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  13163. t cont
  13164. d
  13165. :cont
  13166. n
  13167. s/.\{148\}/&'"$ac_delim"'/g
  13168. t clear
  13169. :clear
  13170. s/\\$//
  13171. t bsnlc
  13172. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  13173. d
  13174. :bsnlc
  13175. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  13176. b cont
  13177. ' <confdefs.h | sed '
  13178. s/'"$ac_delim"'/"\\\
  13179. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  13180. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13181. for (key in D) D_is_set[key] = 1
  13182. FS = ""
  13183. }
  13184. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  13185. line = \$ 0
  13186. split(line, arg, " ")
  13187. if (arg[1] == "#") {
  13188. defundef = arg[2]
  13189. mac1 = arg[3]
  13190. } else {
  13191. defundef = substr(arg[1], 2)
  13192. mac1 = arg[2]
  13193. }
  13194. split(mac1, mac2, "(") #)
  13195. macro = mac2[1]
  13196. prefix = substr(line, 1, index(line, defundef) - 1)
  13197. if (D_is_set[macro]) {
  13198. # Preserve the white space surrounding the "#".
  13199. print prefix "define", macro P[macro] D[macro]
  13200. next
  13201. } else {
  13202. # Replace #undef with comments. This is necessary, for example,
  13203. # in the case of _POSIX_SOURCE, which is predefined and required
  13204. # on some systems where configure will not decide to define it.
  13205. if (defundef == "undef") {
  13206. print "/*", prefix defundef, macro, "*/"
  13207. next
  13208. }
  13209. }
  13210. }
  13211. { print }
  13212. _ACAWK
  13213. _ACEOF
  13214. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13215. { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
  13216. $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
  13217. { (exit 1); exit 1; }; }
  13218. fi # test -n "$CONFIG_HEADERS"
  13219. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
  13220. shift
  13221. for ac_tag
  13222. do
  13223. case $ac_tag in
  13224. :[FHLC]) ac_mode=$ac_tag; continue;;
  13225. esac
  13226. case $ac_mode$ac_tag in
  13227. :[FHL]*:*);;
  13228. :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
  13229. $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
  13230. { (exit 1); exit 1; }; };;
  13231. :[FH]-) ac_tag=-:-;;
  13232. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  13233. esac
  13234. ac_save_IFS=$IFS
  13235. IFS=:
  13236. set x $ac_tag
  13237. IFS=$ac_save_IFS
  13238. shift
  13239. ac_file=$1
  13240. shift
  13241. case $ac_mode in
  13242. :L) ac_source=$1;;
  13243. :[FH])
  13244. ac_file_inputs=
  13245. for ac_f
  13246. do
  13247. case $ac_f in
  13248. -) ac_f="$tmp/stdin";;
  13249. *) # Look for the file first in the build tree, then in the source tree
  13250. # (if the path is not absolute). The absolute path cannot be DOS-style,
  13251. # because $ac_f cannot contain `:'.
  13252. test -f "$ac_f" ||
  13253. case $ac_f in
  13254. [\\/$]*) false;;
  13255. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  13256. esac ||
  13257. { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  13258. $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  13259. { (exit 1); exit 1; }; };;
  13260. esac
  13261. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  13262. ac_file_inputs="$ac_file_inputs '$ac_f'"
  13263. done
  13264. # Let's still pretend it is `configure' which instantiates (i.e., don't
  13265. # use $as_me), people would be surprised to read:
  13266. # /* config.h. Generated by config.status. */
  13267. configure_input='Generated from '`
  13268. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  13269. `' by configure.'
  13270. if test x"$ac_file" != x-; then
  13271. configure_input="$ac_file. $configure_input"
  13272. { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
  13273. $as_echo "$as_me: creating $ac_file" >&6;}
  13274. fi
  13275. # Neutralize special characters interpreted by sed in replacement strings.
  13276. case $configure_input in #(
  13277. *\&* | *\|* | *\\* )
  13278. ac_sed_conf_input=`$as_echo "$configure_input" |
  13279. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  13280. *) ac_sed_conf_input=$configure_input;;
  13281. esac
  13282. case $ac_tag in
  13283. *:-:* | *:-) cat >"$tmp/stdin" \
  13284. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  13285. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  13286. { (exit 1); exit 1; }; } ;;
  13287. esac
  13288. ;;
  13289. esac
  13290. ac_dir=`$as_dirname -- "$ac_file" ||
  13291. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13292. X"$ac_file" : 'X\(//\)[^/]' \| \
  13293. X"$ac_file" : 'X\(//\)$' \| \
  13294. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  13295. $as_echo X"$ac_file" |
  13296. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13297. s//\1/
  13298. q
  13299. }
  13300. /^X\(\/\/\)[^/].*/{
  13301. s//\1/
  13302. q
  13303. }
  13304. /^X\(\/\/\)$/{
  13305. s//\1/
  13306. q
  13307. }
  13308. /^X\(\/\).*/{
  13309. s//\1/
  13310. q
  13311. }
  13312. s/.*/./; q'`
  13313. { as_dir="$ac_dir"
  13314. case $as_dir in #(
  13315. -*) as_dir=./$as_dir;;
  13316. esac
  13317. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  13318. as_dirs=
  13319. while :; do
  13320. case $as_dir in #(
  13321. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  13322. *) as_qdir=$as_dir;;
  13323. esac
  13324. as_dirs="'$as_qdir' $as_dirs"
  13325. as_dir=`$as_dirname -- "$as_dir" ||
  13326. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13327. X"$as_dir" : 'X\(//\)[^/]' \| \
  13328. X"$as_dir" : 'X\(//\)$' \| \
  13329. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  13330. $as_echo X"$as_dir" |
  13331. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13332. s//\1/
  13333. q
  13334. }
  13335. /^X\(\/\/\)[^/].*/{
  13336. s//\1/
  13337. q
  13338. }
  13339. /^X\(\/\/\)$/{
  13340. s//\1/
  13341. q
  13342. }
  13343. /^X\(\/\).*/{
  13344. s//\1/
  13345. q
  13346. }
  13347. s/.*/./; q'`
  13348. test -d "$as_dir" && break
  13349. done
  13350. test -z "$as_dirs" || eval "mkdir $as_dirs"
  13351. } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  13352. $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  13353. { (exit 1); exit 1; }; }; }
  13354. ac_builddir=.
  13355. case "$ac_dir" in
  13356. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13357. *)
  13358. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  13359. # A ".." for each directory in $ac_dir_suffix.
  13360. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  13361. case $ac_top_builddir_sub in
  13362. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13363. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  13364. esac ;;
  13365. esac
  13366. ac_abs_top_builddir=$ac_pwd
  13367. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  13368. # for backward compatibility:
  13369. ac_top_builddir=$ac_top_build_prefix
  13370. case $srcdir in
  13371. .) # We are building in place.
  13372. ac_srcdir=.
  13373. ac_top_srcdir=$ac_top_builddir_sub
  13374. ac_abs_top_srcdir=$ac_pwd ;;
  13375. [\\/]* | ?:[\\/]* ) # Absolute name.
  13376. ac_srcdir=$srcdir$ac_dir_suffix;
  13377. ac_top_srcdir=$srcdir
  13378. ac_abs_top_srcdir=$srcdir ;;
  13379. *) # Relative name.
  13380. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  13381. ac_top_srcdir=$ac_top_build_prefix$srcdir
  13382. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  13383. esac
  13384. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  13385. case $ac_mode in
  13386. :F)
  13387. #
  13388. # CONFIG_FILE
  13389. #
  13390. _ACEOF
  13391. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13392. # If the template does not know about datarootdir, expand it.
  13393. # FIXME: This hack should be removed a few years after 2.60.
  13394. ac_datarootdir_hack=; ac_datarootdir_seen=
  13395. ac_sed_dataroot='
  13396. /datarootdir/ {
  13397. p
  13398. q
  13399. }
  13400. /@datadir@/p
  13401. /@docdir@/p
  13402. /@infodir@/p
  13403. /@localedir@/p
  13404. /@mandir@/p
  13405. '
  13406. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  13407. *datarootdir*) ac_datarootdir_seen=yes;;
  13408. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  13409. { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  13410. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  13411. _ACEOF
  13412. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13413. ac_datarootdir_hack='
  13414. s&@datadir@&$datadir&g
  13415. s&@docdir@&$docdir&g
  13416. s&@infodir@&$infodir&g
  13417. s&@localedir@&$localedir&g
  13418. s&@mandir@&$mandir&g
  13419. s&\\\${datarootdir}&$datarootdir&g' ;;
  13420. esac
  13421. _ACEOF
  13422. # Neutralize VPATH when `$srcdir' = `.'.
  13423. # Shell code in configure.ac might set extrasub.
  13424. # FIXME: do we really want to maintain this feature?
  13425. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13426. ac_sed_extra="$ac_vpsub
  13427. $extrasub
  13428. _ACEOF
  13429. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13430. :t
  13431. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  13432. s|@configure_input@|$ac_sed_conf_input|;t t
  13433. s&@top_builddir@&$ac_top_builddir_sub&;t t
  13434. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  13435. s&@srcdir@&$ac_srcdir&;t t
  13436. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  13437. s&@top_srcdir@&$ac_top_srcdir&;t t
  13438. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  13439. s&@builddir@&$ac_builddir&;t t
  13440. s&@abs_builddir@&$ac_abs_builddir&;t t
  13441. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  13442. $ac_datarootdir_hack
  13443. "
  13444. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  13445. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  13446. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  13447. { (exit 1); exit 1; }; }
  13448. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  13449. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  13450. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  13451. { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13452. which seems to be undefined. Please make sure it is defined." >&5
  13453. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13454. which seems to be undefined. Please make sure it is defined." >&2;}
  13455. rm -f "$tmp/stdin"
  13456. case $ac_file in
  13457. -) cat "$tmp/out" && rm -f "$tmp/out";;
  13458. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  13459. esac \
  13460. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  13461. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  13462. { (exit 1); exit 1; }; }
  13463. ;;
  13464. :H)
  13465. #
  13466. # CONFIG_HEADER
  13467. #
  13468. if test x"$ac_file" != x-; then
  13469. {
  13470. $as_echo "/* $configure_input */" \
  13471. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  13472. } >"$tmp/config.h" \
  13473. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  13474. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  13475. { (exit 1); exit 1; }; }
  13476. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  13477. { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  13478. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  13479. else
  13480. rm -f "$ac_file"
  13481. mv "$tmp/config.h" "$ac_file" \
  13482. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  13483. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  13484. { (exit 1); exit 1; }; }
  13485. fi
  13486. else
  13487. $as_echo "/* $configure_input */" \
  13488. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  13489. || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
  13490. $as_echo "$as_me: error: could not create -" >&2;}
  13491. { (exit 1); exit 1; }; }
  13492. fi
  13493. ;;
  13494. esac
  13495. done # for ac_tag
  13496. { (exit 0); exit 0; }
  13497. _ACEOF
  13498. chmod +x $CONFIG_STATUS
  13499. ac_clean_files=$ac_clean_files_save
  13500. test $ac_write_fail = 0 ||
  13501. { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
  13502. $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
  13503. { (exit 1); exit 1; }; }
  13504. # configure is writing to config.log, and then calls config.status.
  13505. # config.status does its own redirection, appending to config.log.
  13506. # Unfortunately, on DOS this fails, as config.log is still kept open
  13507. # by configure, so config.status won't be able to write to it; its
  13508. # output is simply discarded. So we exec the FD to /dev/null,
  13509. # effectively closing config.log, so it can be properly (re)opened and
  13510. # appended to by config.status. When coming back to configure, we
  13511. # need to make the FD available again.
  13512. if test "$no_create" != yes; then
  13513. ac_cs_success=:
  13514. ac_config_status_args=
  13515. test "$silent" = yes &&
  13516. ac_config_status_args="$ac_config_status_args --quiet"
  13517. exec 5>/dev/null
  13518. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  13519. exec 5>>config.log
  13520. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  13521. # would make configure fail if this is the last instruction.
  13522. $ac_cs_success || { (exit 1); exit 1; }
  13523. fi
  13524. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  13525. { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  13526. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  13527. fi
  13528. GIT_REQUIRED=1
  13529. if [ "$GIT_REQUIRED" = "1" ]; then
  13530. if ! test -d .git; then
  13531. echo ""
  13532. echo ""
  13533. echo "You have downloaded a GIT version of wraith."
  13534. echo "Either 'git clone' from a git repository or download a source tarball"
  13535. echo "A distribution version can be found at http://wraith.botpack.net/wiki/Download"
  13536. echo ""
  13537. echo ""
  13538. exit 1
  13539. fi
  13540. fi
  13541. echo ""
  13542. echo ""
  13543. echo "------------ Configuring BDLIB ------------"
  13544. if test -d .git; then
  13545. git submodule init
  13546. git submodule update
  13547. fi
  13548. test -f lib/bdlib/configure && cd lib/bdlib && ./configure