configure 404 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098
  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 < 0x009060af) \
  5508. || ((OPENSSL_VERSION_NUMBER > 0x00907000) && (OPENSSL_VERSION_NUMBER < 0x0090702f))
  5509. #error "Insecure openssl version " OPENSSL_VERSION_TEXT
  5510. #endif
  5511. ;
  5512. return 0;
  5513. }
  5514. _ACEOF
  5515. rm -f conftest.$ac_objext
  5516. if { (ac_try="$ac_compile"
  5517. case "(($ac_try" in
  5518. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5519. *) ac_try_echo=$ac_try;;
  5520. esac
  5521. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5522. $as_echo "$ac_try_echo") >&5
  5523. (eval "$ac_compile") 2>conftest.er1
  5524. ac_status=$?
  5525. grep -v '^ *+' conftest.er1 >conftest.err
  5526. rm -f conftest.er1
  5527. cat conftest.err >&5
  5528. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5529. (exit $ac_status); } && {
  5530. test -z "$ac_cxx_werror_flag" ||
  5531. test ! -s conftest.err
  5532. } && test -s conftest.$ac_objext; then
  5533. { $as_echo "$as_me:$LINENO: result: OK" >&5
  5534. $as_echo "OK" >&6; }
  5535. else
  5536. $as_echo "$as_me: failed program was:" >&5
  5537. sed 's/^/| /' conftest.$ac_ext >&5
  5538. { $as_echo "$as_me:$LINENO: result: too old." >&5
  5539. $as_echo "too old." >&6; }
  5540. { { $as_echo "$as_me:$LINENO: error: OpenSSL version is too old." >&5
  5541. $as_echo "$as_me: error: OpenSSL version is too old." >&2;}
  5542. { (exit 1); exit 1; }; }
  5543. fi
  5544. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5545. CXX="$CXX $SSL_LIBS"
  5546. { $as_echo "$as_me:$LINENO: checking for AES_encrypt in -lcrypto" >&5
  5547. $as_echo_n "checking for AES_encrypt in -lcrypto... " >&6; }
  5548. if test "${ac_cv_lib_crypto_AES_encrypt+set}" = set; then
  5549. $as_echo_n "(cached) " >&6
  5550. else
  5551. ac_check_lib_save_LIBS=$LIBS
  5552. LIBS="-lcrypto $LIBS"
  5553. cat >conftest.$ac_ext <<_ACEOF
  5554. /* confdefs.h. */
  5555. _ACEOF
  5556. cat confdefs.h >>conftest.$ac_ext
  5557. cat >>conftest.$ac_ext <<_ACEOF
  5558. /* end confdefs.h. */
  5559. /* Override any GCC internal prototype to avoid an error.
  5560. Use char because int might match the return type of a GCC
  5561. builtin and then its argument prototype would still apply. */
  5562. #ifdef __cplusplus
  5563. extern "C"
  5564. #endif
  5565. char AES_encrypt ();
  5566. int
  5567. main ()
  5568. {
  5569. return AES_encrypt ();
  5570. ;
  5571. return 0;
  5572. }
  5573. _ACEOF
  5574. rm -f conftest.$ac_objext conftest$ac_exeext
  5575. if { (ac_try="$ac_link"
  5576. case "(($ac_try" in
  5577. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5578. *) ac_try_echo=$ac_try;;
  5579. esac
  5580. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5581. $as_echo "$ac_try_echo") >&5
  5582. (eval "$ac_link") 2>conftest.er1
  5583. ac_status=$?
  5584. grep -v '^ *+' conftest.er1 >conftest.err
  5585. rm -f conftest.er1
  5586. cat conftest.err >&5
  5587. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5588. (exit $ac_status); } && {
  5589. test -z "$ac_cxx_werror_flag" ||
  5590. test ! -s conftest.err
  5591. } && test -s conftest$ac_exeext && {
  5592. test "$cross_compiling" = yes ||
  5593. $as_test_x conftest$ac_exeext
  5594. }; then
  5595. ac_cv_lib_crypto_AES_encrypt=yes
  5596. else
  5597. $as_echo "$as_me: failed program was:" >&5
  5598. sed 's/^/| /' conftest.$ac_ext >&5
  5599. ac_cv_lib_crypto_AES_encrypt=no
  5600. fi
  5601. rm -rf conftest.dSYM
  5602. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5603. conftest$ac_exeext conftest.$ac_ext
  5604. LIBS=$ac_check_lib_save_LIBS
  5605. fi
  5606. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_AES_encrypt" >&5
  5607. $as_echo "$ac_cv_lib_crypto_AES_encrypt" >&6; }
  5608. if test "x$ac_cv_lib_crypto_AES_encrypt" = x""yes; then
  5609. SSL_LIBS="$SSL_LIBS -lcrypto"
  5610. else
  5611. { $as_echo "$as_me:$LINENO: result: not found." >&5
  5612. $as_echo "not found." >&6; }
  5613. { { $as_echo "$as_me:$LINENO: error: Libcrypto/openssl is required." >&5
  5614. $as_echo "$as_me: error: Libcrypto/openssl is required." >&2;}
  5615. { (exit 1); exit 1; }; }
  5616. fi
  5617. CXX="$save_CXX"
  5618. LIBS="$save_LIBS"
  5619. #AC_SUBST(ZLIB)dnl
  5620. # Checks for typedefs, structures, and compiler characteristics
  5621. { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
  5622. $as_echo_n "checking for pid_t... " >&6; }
  5623. if test "${ac_cv_type_pid_t+set}" = set; then
  5624. $as_echo_n "(cached) " >&6
  5625. else
  5626. ac_cv_type_pid_t=no
  5627. cat >conftest.$ac_ext <<_ACEOF
  5628. /* confdefs.h. */
  5629. _ACEOF
  5630. cat confdefs.h >>conftest.$ac_ext
  5631. cat >>conftest.$ac_ext <<_ACEOF
  5632. /* end confdefs.h. */
  5633. $ac_includes_default
  5634. int
  5635. main ()
  5636. {
  5637. if (sizeof (pid_t))
  5638. return 0;
  5639. ;
  5640. return 0;
  5641. }
  5642. _ACEOF
  5643. rm -f conftest.$ac_objext
  5644. if { (ac_try="$ac_compile"
  5645. case "(($ac_try" in
  5646. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5647. *) ac_try_echo=$ac_try;;
  5648. esac
  5649. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5650. $as_echo "$ac_try_echo") >&5
  5651. (eval "$ac_compile") 2>conftest.er1
  5652. ac_status=$?
  5653. grep -v '^ *+' conftest.er1 >conftest.err
  5654. rm -f conftest.er1
  5655. cat conftest.err >&5
  5656. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5657. (exit $ac_status); } && {
  5658. test -z "$ac_cxx_werror_flag" ||
  5659. test ! -s conftest.err
  5660. } && test -s conftest.$ac_objext; then
  5661. cat >conftest.$ac_ext <<_ACEOF
  5662. /* confdefs.h. */
  5663. _ACEOF
  5664. cat confdefs.h >>conftest.$ac_ext
  5665. cat >>conftest.$ac_ext <<_ACEOF
  5666. /* end confdefs.h. */
  5667. $ac_includes_default
  5668. int
  5669. main ()
  5670. {
  5671. if (sizeof ((pid_t)))
  5672. return 0;
  5673. ;
  5674. return 0;
  5675. }
  5676. _ACEOF
  5677. rm -f conftest.$ac_objext
  5678. if { (ac_try="$ac_compile"
  5679. case "(($ac_try" in
  5680. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5681. *) ac_try_echo=$ac_try;;
  5682. esac
  5683. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5684. $as_echo "$ac_try_echo") >&5
  5685. (eval "$ac_compile") 2>conftest.er1
  5686. ac_status=$?
  5687. grep -v '^ *+' conftest.er1 >conftest.err
  5688. rm -f conftest.er1
  5689. cat conftest.err >&5
  5690. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5691. (exit $ac_status); } && {
  5692. test -z "$ac_cxx_werror_flag" ||
  5693. test ! -s conftest.err
  5694. } && test -s conftest.$ac_objext; then
  5695. :
  5696. else
  5697. $as_echo "$as_me: failed program was:" >&5
  5698. sed 's/^/| /' conftest.$ac_ext >&5
  5699. ac_cv_type_pid_t=yes
  5700. fi
  5701. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5702. else
  5703. $as_echo "$as_me: failed program was:" >&5
  5704. sed 's/^/| /' conftest.$ac_ext >&5
  5705. fi
  5706. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5707. fi
  5708. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
  5709. $as_echo "$ac_cv_type_pid_t" >&6; }
  5710. if test "x$ac_cv_type_pid_t" = x""yes; then
  5711. :
  5712. else
  5713. cat >>confdefs.h <<_ACEOF
  5714. #define pid_t int
  5715. _ACEOF
  5716. fi
  5717. { $as_echo "$as_me:$LINENO: checking for size_t" >&5
  5718. $as_echo_n "checking for size_t... " >&6; }
  5719. if test "${ac_cv_type_size_t+set}" = set; then
  5720. $as_echo_n "(cached) " >&6
  5721. else
  5722. ac_cv_type_size_t=no
  5723. cat >conftest.$ac_ext <<_ACEOF
  5724. /* confdefs.h. */
  5725. _ACEOF
  5726. cat confdefs.h >>conftest.$ac_ext
  5727. cat >>conftest.$ac_ext <<_ACEOF
  5728. /* end confdefs.h. */
  5729. $ac_includes_default
  5730. int
  5731. main ()
  5732. {
  5733. if (sizeof (size_t))
  5734. return 0;
  5735. ;
  5736. return 0;
  5737. }
  5738. _ACEOF
  5739. rm -f conftest.$ac_objext
  5740. if { (ac_try="$ac_compile"
  5741. case "(($ac_try" in
  5742. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5743. *) ac_try_echo=$ac_try;;
  5744. esac
  5745. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5746. $as_echo "$ac_try_echo") >&5
  5747. (eval "$ac_compile") 2>conftest.er1
  5748. ac_status=$?
  5749. grep -v '^ *+' conftest.er1 >conftest.err
  5750. rm -f conftest.er1
  5751. cat conftest.err >&5
  5752. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5753. (exit $ac_status); } && {
  5754. test -z "$ac_cxx_werror_flag" ||
  5755. test ! -s conftest.err
  5756. } && test -s conftest.$ac_objext; then
  5757. cat >conftest.$ac_ext <<_ACEOF
  5758. /* confdefs.h. */
  5759. _ACEOF
  5760. cat confdefs.h >>conftest.$ac_ext
  5761. cat >>conftest.$ac_ext <<_ACEOF
  5762. /* end confdefs.h. */
  5763. $ac_includes_default
  5764. int
  5765. main ()
  5766. {
  5767. if (sizeof ((size_t)))
  5768. return 0;
  5769. ;
  5770. return 0;
  5771. }
  5772. _ACEOF
  5773. rm -f conftest.$ac_objext
  5774. if { (ac_try="$ac_compile"
  5775. case "(($ac_try" in
  5776. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5777. *) ac_try_echo=$ac_try;;
  5778. esac
  5779. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5780. $as_echo "$ac_try_echo") >&5
  5781. (eval "$ac_compile") 2>conftest.er1
  5782. ac_status=$?
  5783. grep -v '^ *+' conftest.er1 >conftest.err
  5784. rm -f conftest.er1
  5785. cat conftest.err >&5
  5786. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5787. (exit $ac_status); } && {
  5788. test -z "$ac_cxx_werror_flag" ||
  5789. test ! -s conftest.err
  5790. } && test -s conftest.$ac_objext; then
  5791. :
  5792. else
  5793. $as_echo "$as_me: failed program was:" >&5
  5794. sed 's/^/| /' conftest.$ac_ext >&5
  5795. ac_cv_type_size_t=yes
  5796. fi
  5797. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5798. else
  5799. $as_echo "$as_me: failed program was:" >&5
  5800. sed 's/^/| /' conftest.$ac_ext >&5
  5801. fi
  5802. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5803. fi
  5804. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  5805. $as_echo "$ac_cv_type_size_t" >&6; }
  5806. if test "x$ac_cv_type_size_t" = x""yes; then
  5807. :
  5808. else
  5809. cat >>confdefs.h <<_ACEOF
  5810. #define size_t unsigned int
  5811. _ACEOF
  5812. fi
  5813. { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
  5814. $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  5815. if test "${ac_cv_type_uid_t+set}" = set; then
  5816. $as_echo_n "(cached) " >&6
  5817. else
  5818. cat >conftest.$ac_ext <<_ACEOF
  5819. /* confdefs.h. */
  5820. _ACEOF
  5821. cat confdefs.h >>conftest.$ac_ext
  5822. cat >>conftest.$ac_ext <<_ACEOF
  5823. /* end confdefs.h. */
  5824. #include <sys/types.h>
  5825. _ACEOF
  5826. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5827. $EGREP "uid_t" >/dev/null 2>&1; then
  5828. ac_cv_type_uid_t=yes
  5829. else
  5830. ac_cv_type_uid_t=no
  5831. fi
  5832. rm -f conftest*
  5833. fi
  5834. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
  5835. $as_echo "$ac_cv_type_uid_t" >&6; }
  5836. if test $ac_cv_type_uid_t = no; then
  5837. cat >>confdefs.h <<\_ACEOF
  5838. #define uid_t int
  5839. _ACEOF
  5840. cat >>confdefs.h <<\_ACEOF
  5841. #define gid_t int
  5842. _ACEOF
  5843. fi
  5844. #AC_C_CONST
  5845. { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
  5846. $as_echo_n "checking for working volatile... " >&6; }
  5847. if test "${ac_cv_c_volatile+set}" = set; then
  5848. $as_echo_n "(cached) " >&6
  5849. else
  5850. cat >conftest.$ac_ext <<_ACEOF
  5851. /* confdefs.h. */
  5852. _ACEOF
  5853. cat confdefs.h >>conftest.$ac_ext
  5854. cat >>conftest.$ac_ext <<_ACEOF
  5855. /* end confdefs.h. */
  5856. int
  5857. main ()
  5858. {
  5859. volatile int x;
  5860. int * volatile y = (int *) 0;
  5861. return !x && !y;
  5862. ;
  5863. return 0;
  5864. }
  5865. _ACEOF
  5866. rm -f conftest.$ac_objext
  5867. if { (ac_try="$ac_compile"
  5868. case "(($ac_try" in
  5869. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5870. *) ac_try_echo=$ac_try;;
  5871. esac
  5872. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5873. $as_echo "$ac_try_echo") >&5
  5874. (eval "$ac_compile") 2>conftest.er1
  5875. ac_status=$?
  5876. grep -v '^ *+' conftest.er1 >conftest.err
  5877. rm -f conftest.er1
  5878. cat conftest.err >&5
  5879. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5880. (exit $ac_status); } && {
  5881. test -z "$ac_cxx_werror_flag" ||
  5882. test ! -s conftest.err
  5883. } && test -s conftest.$ac_objext; then
  5884. ac_cv_c_volatile=yes
  5885. else
  5886. $as_echo "$as_me: failed program was:" >&5
  5887. sed 's/^/| /' conftest.$ac_ext >&5
  5888. ac_cv_c_volatile=no
  5889. fi
  5890. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5891. fi
  5892. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  5893. $as_echo "$ac_cv_c_volatile" >&6; }
  5894. if test $ac_cv_c_volatile = no; then
  5895. cat >>confdefs.h <<\_ACEOF
  5896. #define volatile /**/
  5897. _ACEOF
  5898. fi
  5899. { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  5900. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  5901. if test "${ac_cv_c_bigendian+set}" = set; then
  5902. $as_echo_n "(cached) " >&6
  5903. else
  5904. ac_cv_c_bigendian=unknown
  5905. # See if we're dealing with a universal compiler.
  5906. cat >conftest.$ac_ext <<_ACEOF
  5907. /* confdefs.h. */
  5908. _ACEOF
  5909. cat confdefs.h >>conftest.$ac_ext
  5910. cat >>conftest.$ac_ext <<_ACEOF
  5911. /* end confdefs.h. */
  5912. #ifndef __APPLE_CC__
  5913. not a universal capable compiler
  5914. #endif
  5915. typedef int dummy;
  5916. _ACEOF
  5917. rm -f conftest.$ac_objext
  5918. if { (ac_try="$ac_compile"
  5919. case "(($ac_try" in
  5920. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5921. *) ac_try_echo=$ac_try;;
  5922. esac
  5923. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5924. $as_echo "$ac_try_echo") >&5
  5925. (eval "$ac_compile") 2>conftest.er1
  5926. ac_status=$?
  5927. grep -v '^ *+' conftest.er1 >conftest.err
  5928. rm -f conftest.er1
  5929. cat conftest.err >&5
  5930. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5931. (exit $ac_status); } && {
  5932. test -z "$ac_cxx_werror_flag" ||
  5933. test ! -s conftest.err
  5934. } && test -s conftest.$ac_objext; then
  5935. # Check for potential -arch flags. It is not universal unless
  5936. # there are some -arch flags. Note that *ppc* also matches
  5937. # ppc64. This check is also rather less than ideal.
  5938. case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
  5939. *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
  5940. esac
  5941. else
  5942. $as_echo "$as_me: failed program was:" >&5
  5943. sed 's/^/| /' conftest.$ac_ext >&5
  5944. fi
  5945. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5946. if test $ac_cv_c_bigendian = unknown; then
  5947. # See if sys/param.h defines the BYTE_ORDER macro.
  5948. cat >conftest.$ac_ext <<_ACEOF
  5949. /* confdefs.h. */
  5950. _ACEOF
  5951. cat confdefs.h >>conftest.$ac_ext
  5952. cat >>conftest.$ac_ext <<_ACEOF
  5953. /* end confdefs.h. */
  5954. #include <sys/types.h>
  5955. #include <sys/param.h>
  5956. int
  5957. main ()
  5958. {
  5959. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  5960. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  5961. && LITTLE_ENDIAN)
  5962. bogus endian macros
  5963. #endif
  5964. ;
  5965. return 0;
  5966. }
  5967. _ACEOF
  5968. rm -f conftest.$ac_objext
  5969. if { (ac_try="$ac_compile"
  5970. case "(($ac_try" in
  5971. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5972. *) ac_try_echo=$ac_try;;
  5973. esac
  5974. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5975. $as_echo "$ac_try_echo") >&5
  5976. (eval "$ac_compile") 2>conftest.er1
  5977. ac_status=$?
  5978. grep -v '^ *+' conftest.er1 >conftest.err
  5979. rm -f conftest.er1
  5980. cat conftest.err >&5
  5981. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5982. (exit $ac_status); } && {
  5983. test -z "$ac_cxx_werror_flag" ||
  5984. test ! -s conftest.err
  5985. } && test -s conftest.$ac_objext; then
  5986. # It does; now see whether it defined to BIG_ENDIAN or not.
  5987. cat >conftest.$ac_ext <<_ACEOF
  5988. /* confdefs.h. */
  5989. _ACEOF
  5990. cat confdefs.h >>conftest.$ac_ext
  5991. cat >>conftest.$ac_ext <<_ACEOF
  5992. /* end confdefs.h. */
  5993. #include <sys/types.h>
  5994. #include <sys/param.h>
  5995. int
  5996. main ()
  5997. {
  5998. #if BYTE_ORDER != BIG_ENDIAN
  5999. not big endian
  6000. #endif
  6001. ;
  6002. return 0;
  6003. }
  6004. _ACEOF
  6005. rm -f conftest.$ac_objext
  6006. if { (ac_try="$ac_compile"
  6007. case "(($ac_try" in
  6008. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6009. *) ac_try_echo=$ac_try;;
  6010. esac
  6011. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6012. $as_echo "$ac_try_echo") >&5
  6013. (eval "$ac_compile") 2>conftest.er1
  6014. ac_status=$?
  6015. grep -v '^ *+' conftest.er1 >conftest.err
  6016. rm -f conftest.er1
  6017. cat conftest.err >&5
  6018. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6019. (exit $ac_status); } && {
  6020. test -z "$ac_cxx_werror_flag" ||
  6021. test ! -s conftest.err
  6022. } && test -s conftest.$ac_objext; then
  6023. ac_cv_c_bigendian=yes
  6024. else
  6025. $as_echo "$as_me: failed program was:" >&5
  6026. sed 's/^/| /' conftest.$ac_ext >&5
  6027. ac_cv_c_bigendian=no
  6028. fi
  6029. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6030. else
  6031. $as_echo "$as_me: failed program was:" >&5
  6032. sed 's/^/| /' conftest.$ac_ext >&5
  6033. fi
  6034. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6035. fi
  6036. if test $ac_cv_c_bigendian = unknown; then
  6037. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  6038. cat >conftest.$ac_ext <<_ACEOF
  6039. /* confdefs.h. */
  6040. _ACEOF
  6041. cat confdefs.h >>conftest.$ac_ext
  6042. cat >>conftest.$ac_ext <<_ACEOF
  6043. /* end confdefs.h. */
  6044. #include <limits.h>
  6045. int
  6046. main ()
  6047. {
  6048. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  6049. bogus endian macros
  6050. #endif
  6051. ;
  6052. return 0;
  6053. }
  6054. _ACEOF
  6055. rm -f conftest.$ac_objext
  6056. if { (ac_try="$ac_compile"
  6057. case "(($ac_try" in
  6058. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6059. *) ac_try_echo=$ac_try;;
  6060. esac
  6061. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6062. $as_echo "$ac_try_echo") >&5
  6063. (eval "$ac_compile") 2>conftest.er1
  6064. ac_status=$?
  6065. grep -v '^ *+' conftest.er1 >conftest.err
  6066. rm -f conftest.er1
  6067. cat conftest.err >&5
  6068. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6069. (exit $ac_status); } && {
  6070. test -z "$ac_cxx_werror_flag" ||
  6071. test ! -s conftest.err
  6072. } && test -s conftest.$ac_objext; then
  6073. # It does; now see whether it defined to _BIG_ENDIAN or not.
  6074. cat >conftest.$ac_ext <<_ACEOF
  6075. /* confdefs.h. */
  6076. _ACEOF
  6077. cat confdefs.h >>conftest.$ac_ext
  6078. cat >>conftest.$ac_ext <<_ACEOF
  6079. /* end confdefs.h. */
  6080. #include <limits.h>
  6081. int
  6082. main ()
  6083. {
  6084. #ifndef _BIG_ENDIAN
  6085. not big endian
  6086. #endif
  6087. ;
  6088. return 0;
  6089. }
  6090. _ACEOF
  6091. rm -f conftest.$ac_objext
  6092. if { (ac_try="$ac_compile"
  6093. case "(($ac_try" in
  6094. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6095. *) ac_try_echo=$ac_try;;
  6096. esac
  6097. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6098. $as_echo "$ac_try_echo") >&5
  6099. (eval "$ac_compile") 2>conftest.er1
  6100. ac_status=$?
  6101. grep -v '^ *+' conftest.er1 >conftest.err
  6102. rm -f conftest.er1
  6103. cat conftest.err >&5
  6104. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6105. (exit $ac_status); } && {
  6106. test -z "$ac_cxx_werror_flag" ||
  6107. test ! -s conftest.err
  6108. } && test -s conftest.$ac_objext; then
  6109. ac_cv_c_bigendian=yes
  6110. else
  6111. $as_echo "$as_me: failed program was:" >&5
  6112. sed 's/^/| /' conftest.$ac_ext >&5
  6113. ac_cv_c_bigendian=no
  6114. fi
  6115. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6116. else
  6117. $as_echo "$as_me: failed program was:" >&5
  6118. sed 's/^/| /' conftest.$ac_ext >&5
  6119. fi
  6120. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6121. fi
  6122. if test $ac_cv_c_bigendian = unknown; then
  6123. # Compile a test program.
  6124. if test "$cross_compiling" = yes; then
  6125. # Try to guess by grepping values from an object file.
  6126. cat >conftest.$ac_ext <<_ACEOF
  6127. /* confdefs.h. */
  6128. _ACEOF
  6129. cat confdefs.h >>conftest.$ac_ext
  6130. cat >>conftest.$ac_ext <<_ACEOF
  6131. /* end confdefs.h. */
  6132. short int ascii_mm[] =
  6133. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  6134. short int ascii_ii[] =
  6135. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  6136. int use_ascii (int i) {
  6137. return ascii_mm[i] + ascii_ii[i];
  6138. }
  6139. short int ebcdic_ii[] =
  6140. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  6141. short int ebcdic_mm[] =
  6142. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  6143. int use_ebcdic (int i) {
  6144. return ebcdic_mm[i] + ebcdic_ii[i];
  6145. }
  6146. extern int foo;
  6147. int
  6148. main ()
  6149. {
  6150. return use_ascii (foo) == use_ebcdic (foo);
  6151. ;
  6152. return 0;
  6153. }
  6154. _ACEOF
  6155. rm -f conftest.$ac_objext
  6156. if { (ac_try="$ac_compile"
  6157. case "(($ac_try" in
  6158. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6159. *) ac_try_echo=$ac_try;;
  6160. esac
  6161. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6162. $as_echo "$ac_try_echo") >&5
  6163. (eval "$ac_compile") 2>conftest.er1
  6164. ac_status=$?
  6165. grep -v '^ *+' conftest.er1 >conftest.err
  6166. rm -f conftest.er1
  6167. cat conftest.err >&5
  6168. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6169. (exit $ac_status); } && {
  6170. test -z "$ac_cxx_werror_flag" ||
  6171. test ! -s conftest.err
  6172. } && test -s conftest.$ac_objext; then
  6173. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  6174. ac_cv_c_bigendian=yes
  6175. fi
  6176. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  6177. if test "$ac_cv_c_bigendian" = unknown; then
  6178. ac_cv_c_bigendian=no
  6179. else
  6180. # finding both strings is unlikely to happen, but who knows?
  6181. ac_cv_c_bigendian=unknown
  6182. fi
  6183. fi
  6184. else
  6185. $as_echo "$as_me: failed program was:" >&5
  6186. sed 's/^/| /' conftest.$ac_ext >&5
  6187. fi
  6188. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6189. else
  6190. cat >conftest.$ac_ext <<_ACEOF
  6191. /* confdefs.h. */
  6192. _ACEOF
  6193. cat confdefs.h >>conftest.$ac_ext
  6194. cat >>conftest.$ac_ext <<_ACEOF
  6195. /* end confdefs.h. */
  6196. $ac_includes_default
  6197. int
  6198. main ()
  6199. {
  6200. /* Are we little or big endian? From Harbison&Steele. */
  6201. union
  6202. {
  6203. long int l;
  6204. char c[sizeof (long int)];
  6205. } u;
  6206. u.l = 1;
  6207. return u.c[sizeof (long int) - 1] == 1;
  6208. ;
  6209. return 0;
  6210. }
  6211. _ACEOF
  6212. rm -f conftest$ac_exeext
  6213. if { (ac_try="$ac_link"
  6214. case "(($ac_try" in
  6215. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6216. *) ac_try_echo=$ac_try;;
  6217. esac
  6218. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6219. $as_echo "$ac_try_echo") >&5
  6220. (eval "$ac_link") 2>&5
  6221. ac_status=$?
  6222. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6223. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6224. { (case "(($ac_try" in
  6225. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6226. *) ac_try_echo=$ac_try;;
  6227. esac
  6228. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6229. $as_echo "$ac_try_echo") >&5
  6230. (eval "$ac_try") 2>&5
  6231. ac_status=$?
  6232. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6233. (exit $ac_status); }; }; then
  6234. ac_cv_c_bigendian=no
  6235. else
  6236. $as_echo "$as_me: program exited with status $ac_status" >&5
  6237. $as_echo "$as_me: failed program was:" >&5
  6238. sed 's/^/| /' conftest.$ac_ext >&5
  6239. ( exit $ac_status )
  6240. ac_cv_c_bigendian=yes
  6241. fi
  6242. rm -rf conftest.dSYM
  6243. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6244. fi
  6245. fi
  6246. fi
  6247. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  6248. $as_echo "$ac_cv_c_bigendian" >&6; }
  6249. case $ac_cv_c_bigendian in #(
  6250. yes)
  6251. cat >>confdefs.h <<\_ACEOF
  6252. #define B_ENDIAN 1
  6253. _ACEOF
  6254. ;; #(
  6255. no)
  6256. cat >>confdefs.h <<\_ACEOF
  6257. #define L_ENDIAN 1
  6258. _ACEOF
  6259. ;; #(
  6260. universal)
  6261. cat >>confdefs.h <<\_ACEOF
  6262. #define AC_APPLE_UNIVERSAL_BUILD 1
  6263. _ACEOF
  6264. ;; #(
  6265. *)
  6266. { { $as_echo "$as_me:$LINENO: error: unknown endianness
  6267. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  6268. $as_echo "$as_me: error: unknown endianness
  6269. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  6270. { (exit 1); exit 1; }; } ;;
  6271. esac
  6272. #AC_C_INLINE
  6273. { $as_echo "$as_me:$LINENO: checking whether char is unsigned" >&5
  6274. $as_echo_n "checking whether char is unsigned... " >&6; }
  6275. if test "${ac_cv_c_char_unsigned+set}" = set; then
  6276. $as_echo_n "(cached) " >&6
  6277. else
  6278. cat >conftest.$ac_ext <<_ACEOF
  6279. /* confdefs.h. */
  6280. _ACEOF
  6281. cat confdefs.h >>conftest.$ac_ext
  6282. cat >>conftest.$ac_ext <<_ACEOF
  6283. /* end confdefs.h. */
  6284. $ac_includes_default
  6285. int
  6286. main ()
  6287. {
  6288. static int test_array [1 - 2 * !(((char) -1) < 0)];
  6289. test_array [0] = 0
  6290. ;
  6291. return 0;
  6292. }
  6293. _ACEOF
  6294. rm -f conftest.$ac_objext
  6295. if { (ac_try="$ac_compile"
  6296. case "(($ac_try" in
  6297. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6298. *) ac_try_echo=$ac_try;;
  6299. esac
  6300. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6301. $as_echo "$ac_try_echo") >&5
  6302. (eval "$ac_compile") 2>conftest.er1
  6303. ac_status=$?
  6304. grep -v '^ *+' conftest.er1 >conftest.err
  6305. rm -f conftest.er1
  6306. cat conftest.err >&5
  6307. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6308. (exit $ac_status); } && {
  6309. test -z "$ac_cxx_werror_flag" ||
  6310. test ! -s conftest.err
  6311. } && test -s conftest.$ac_objext; then
  6312. ac_cv_c_char_unsigned=no
  6313. else
  6314. $as_echo "$as_me: failed program was:" >&5
  6315. sed 's/^/| /' conftest.$ac_ext >&5
  6316. ac_cv_c_char_unsigned=yes
  6317. fi
  6318. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6319. fi
  6320. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
  6321. $as_echo "$ac_cv_c_char_unsigned" >&6; }
  6322. if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
  6323. cat >>confdefs.h <<\_ACEOF
  6324. #define __CHAR_UNSIGNED__ 1
  6325. _ACEOF
  6326. fi
  6327. #AC_C_STRINGIZE
  6328. #AC_C_PROTOTYPES
  6329. #checkpoint
  6330. cat >confcache <<\_ACEOF
  6331. # This file is a shell script that caches the results of configure
  6332. # tests run on this system so they can be shared between configure
  6333. # scripts and configure runs, see configure's option --config-cache.
  6334. # It is not useful on other systems. If it contains results you don't
  6335. # want to keep, you may remove or edit it.
  6336. #
  6337. # config.status only pays attention to the cache file if you give it
  6338. # the --recheck option to rerun configure.
  6339. #
  6340. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  6341. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  6342. # following values.
  6343. _ACEOF
  6344. # The following way of writing the cache mishandles newlines in values,
  6345. # but we know of no workaround that is simple, portable, and efficient.
  6346. # So, we kill variables containing newlines.
  6347. # Ultrix sh set writes to stderr and can't be redirected directly,
  6348. # and sets the high bit in the cache file unless we assign to the vars.
  6349. (
  6350. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  6351. eval ac_val=\$$ac_var
  6352. case $ac_val in #(
  6353. *${as_nl}*)
  6354. case $ac_var in #(
  6355. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  6356. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  6357. esac
  6358. case $ac_var in #(
  6359. _ | IFS | as_nl) ;; #(
  6360. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  6361. *) $as_unset $ac_var ;;
  6362. esac ;;
  6363. esac
  6364. done
  6365. (set) 2>&1 |
  6366. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  6367. *${as_nl}ac_space=\ *)
  6368. # `set' does not quote correctly, so add quotes (double-quote
  6369. # substitution turns \\\\ into \\, and sed turns \\ into \).
  6370. sed -n \
  6371. "s/'/'\\\\''/g;
  6372. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  6373. ;; #(
  6374. *)
  6375. # `set' quotes correctly as required by POSIX, so do not add quotes.
  6376. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  6377. ;;
  6378. esac |
  6379. sort
  6380. ) |
  6381. sed '
  6382. /^ac_cv_env_/b end
  6383. t clear
  6384. :clear
  6385. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  6386. t end
  6387. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  6388. :end' >>confcache
  6389. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  6390. if test -w "$cache_file"; then
  6391. test "x$cache_file" != "x/dev/null" &&
  6392. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  6393. $as_echo "$as_me: updating cache $cache_file" >&6;}
  6394. cat confcache >$cache_file
  6395. else
  6396. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  6397. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  6398. fi
  6399. fi
  6400. rm -f confcache
  6401. # The cast to long int works around a bug in the HP C Compiler
  6402. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6403. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6404. # This bug is HP SR number 8606223364.
  6405. { $as_echo "$as_me:$LINENO: checking size of short" >&5
  6406. $as_echo_n "checking size of short... " >&6; }
  6407. if test "${ac_cv_sizeof_short+set}" = set; then
  6408. $as_echo_n "(cached) " >&6
  6409. else
  6410. if test "$cross_compiling" = yes; then
  6411. # Depending upon the size, compute the lo and hi bounds.
  6412. cat >conftest.$ac_ext <<_ACEOF
  6413. /* confdefs.h. */
  6414. _ACEOF
  6415. cat confdefs.h >>conftest.$ac_ext
  6416. cat >>conftest.$ac_ext <<_ACEOF
  6417. /* end confdefs.h. */
  6418. $ac_includes_default
  6419. int
  6420. main ()
  6421. {
  6422. static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)];
  6423. test_array [0] = 0
  6424. ;
  6425. return 0;
  6426. }
  6427. _ACEOF
  6428. rm -f conftest.$ac_objext
  6429. if { (ac_try="$ac_compile"
  6430. case "(($ac_try" in
  6431. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6432. *) ac_try_echo=$ac_try;;
  6433. esac
  6434. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6435. $as_echo "$ac_try_echo") >&5
  6436. (eval "$ac_compile") 2>conftest.er1
  6437. ac_status=$?
  6438. grep -v '^ *+' conftest.er1 >conftest.err
  6439. rm -f conftest.er1
  6440. cat conftest.err >&5
  6441. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6442. (exit $ac_status); } && {
  6443. test -z "$ac_cxx_werror_flag" ||
  6444. test ! -s conftest.err
  6445. } && test -s conftest.$ac_objext; then
  6446. ac_lo=0 ac_mid=0
  6447. while :; do
  6448. cat >conftest.$ac_ext <<_ACEOF
  6449. /* confdefs.h. */
  6450. _ACEOF
  6451. cat confdefs.h >>conftest.$ac_ext
  6452. cat >>conftest.$ac_ext <<_ACEOF
  6453. /* end confdefs.h. */
  6454. $ac_includes_default
  6455. int
  6456. main ()
  6457. {
  6458. static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
  6459. test_array [0] = 0
  6460. ;
  6461. return 0;
  6462. }
  6463. _ACEOF
  6464. rm -f conftest.$ac_objext
  6465. if { (ac_try="$ac_compile"
  6466. case "(($ac_try" in
  6467. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6468. *) ac_try_echo=$ac_try;;
  6469. esac
  6470. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6471. $as_echo "$ac_try_echo") >&5
  6472. (eval "$ac_compile") 2>conftest.er1
  6473. ac_status=$?
  6474. grep -v '^ *+' conftest.er1 >conftest.err
  6475. rm -f conftest.er1
  6476. cat conftest.err >&5
  6477. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6478. (exit $ac_status); } && {
  6479. test -z "$ac_cxx_werror_flag" ||
  6480. test ! -s conftest.err
  6481. } && test -s conftest.$ac_objext; then
  6482. ac_hi=$ac_mid; break
  6483. else
  6484. $as_echo "$as_me: failed program was:" >&5
  6485. sed 's/^/| /' conftest.$ac_ext >&5
  6486. ac_lo=`expr $ac_mid + 1`
  6487. if test $ac_lo -le $ac_mid; then
  6488. ac_lo= ac_hi=
  6489. break
  6490. fi
  6491. ac_mid=`expr 2 '*' $ac_mid + 1`
  6492. fi
  6493. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6494. done
  6495. else
  6496. $as_echo "$as_me: failed program was:" >&5
  6497. sed 's/^/| /' conftest.$ac_ext >&5
  6498. cat >conftest.$ac_ext <<_ACEOF
  6499. /* confdefs.h. */
  6500. _ACEOF
  6501. cat confdefs.h >>conftest.$ac_ext
  6502. cat >>conftest.$ac_ext <<_ACEOF
  6503. /* end confdefs.h. */
  6504. $ac_includes_default
  6505. int
  6506. main ()
  6507. {
  6508. static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)];
  6509. test_array [0] = 0
  6510. ;
  6511. return 0;
  6512. }
  6513. _ACEOF
  6514. rm -f conftest.$ac_objext
  6515. if { (ac_try="$ac_compile"
  6516. case "(($ac_try" in
  6517. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6518. *) ac_try_echo=$ac_try;;
  6519. esac
  6520. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6521. $as_echo "$ac_try_echo") >&5
  6522. (eval "$ac_compile") 2>conftest.er1
  6523. ac_status=$?
  6524. grep -v '^ *+' conftest.er1 >conftest.err
  6525. rm -f conftest.er1
  6526. cat conftest.err >&5
  6527. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6528. (exit $ac_status); } && {
  6529. test -z "$ac_cxx_werror_flag" ||
  6530. test ! -s conftest.err
  6531. } && test -s conftest.$ac_objext; then
  6532. ac_hi=-1 ac_mid=-1
  6533. while :; do
  6534. cat >conftest.$ac_ext <<_ACEOF
  6535. /* confdefs.h. */
  6536. _ACEOF
  6537. cat confdefs.h >>conftest.$ac_ext
  6538. cat >>conftest.$ac_ext <<_ACEOF
  6539. /* end confdefs.h. */
  6540. $ac_includes_default
  6541. int
  6542. main ()
  6543. {
  6544. static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)];
  6545. test_array [0] = 0
  6546. ;
  6547. return 0;
  6548. }
  6549. _ACEOF
  6550. rm -f conftest.$ac_objext
  6551. if { (ac_try="$ac_compile"
  6552. case "(($ac_try" in
  6553. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6554. *) ac_try_echo=$ac_try;;
  6555. esac
  6556. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6557. $as_echo "$ac_try_echo") >&5
  6558. (eval "$ac_compile") 2>conftest.er1
  6559. ac_status=$?
  6560. grep -v '^ *+' conftest.er1 >conftest.err
  6561. rm -f conftest.er1
  6562. cat conftest.err >&5
  6563. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6564. (exit $ac_status); } && {
  6565. test -z "$ac_cxx_werror_flag" ||
  6566. test ! -s conftest.err
  6567. } && test -s conftest.$ac_objext; then
  6568. ac_lo=$ac_mid; break
  6569. else
  6570. $as_echo "$as_me: failed program was:" >&5
  6571. sed 's/^/| /' conftest.$ac_ext >&5
  6572. ac_hi=`expr '(' $ac_mid ')' - 1`
  6573. if test $ac_mid -le $ac_hi; then
  6574. ac_lo= ac_hi=
  6575. break
  6576. fi
  6577. ac_mid=`expr 2 '*' $ac_mid`
  6578. fi
  6579. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6580. done
  6581. else
  6582. $as_echo "$as_me: failed program was:" >&5
  6583. sed 's/^/| /' conftest.$ac_ext >&5
  6584. ac_lo= ac_hi=
  6585. fi
  6586. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6587. fi
  6588. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6589. # Binary search between lo and hi bounds.
  6590. while test "x$ac_lo" != "x$ac_hi"; do
  6591. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6592. cat >conftest.$ac_ext <<_ACEOF
  6593. /* confdefs.h. */
  6594. _ACEOF
  6595. cat confdefs.h >>conftest.$ac_ext
  6596. cat >>conftest.$ac_ext <<_ACEOF
  6597. /* end confdefs.h. */
  6598. $ac_includes_default
  6599. int
  6600. main ()
  6601. {
  6602. static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
  6603. test_array [0] = 0
  6604. ;
  6605. return 0;
  6606. }
  6607. _ACEOF
  6608. rm -f conftest.$ac_objext
  6609. if { (ac_try="$ac_compile"
  6610. case "(($ac_try" in
  6611. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6612. *) ac_try_echo=$ac_try;;
  6613. esac
  6614. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6615. $as_echo "$ac_try_echo") >&5
  6616. (eval "$ac_compile") 2>conftest.er1
  6617. ac_status=$?
  6618. grep -v '^ *+' conftest.er1 >conftest.err
  6619. rm -f conftest.er1
  6620. cat conftest.err >&5
  6621. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6622. (exit $ac_status); } && {
  6623. test -z "$ac_cxx_werror_flag" ||
  6624. test ! -s conftest.err
  6625. } && test -s conftest.$ac_objext; then
  6626. ac_hi=$ac_mid
  6627. else
  6628. $as_echo "$as_me: failed program was:" >&5
  6629. sed 's/^/| /' conftest.$ac_ext >&5
  6630. ac_lo=`expr '(' $ac_mid ')' + 1`
  6631. fi
  6632. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6633. done
  6634. case $ac_lo in
  6635. ?*) ac_cv_sizeof_short=$ac_lo;;
  6636. '') if test "$ac_cv_type_short" = yes; then
  6637. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  6638. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6639. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
  6640. See \`config.log' for more details." >&5
  6641. $as_echo "$as_me: error: cannot compute sizeof (short)
  6642. See \`config.log' for more details." >&2;}
  6643. { (exit 77); exit 77; }; }; }
  6644. else
  6645. ac_cv_sizeof_short=0
  6646. fi ;;
  6647. esac
  6648. else
  6649. cat >conftest.$ac_ext <<_ACEOF
  6650. /* confdefs.h. */
  6651. _ACEOF
  6652. cat confdefs.h >>conftest.$ac_ext
  6653. cat >>conftest.$ac_ext <<_ACEOF
  6654. /* end confdefs.h. */
  6655. $ac_includes_default
  6656. static long int longval () { return (long int) (sizeof (short)); }
  6657. static unsigned long int ulongval () { return (long int) (sizeof (short)); }
  6658. #include <stdio.h>
  6659. #include <stdlib.h>
  6660. int
  6661. main ()
  6662. {
  6663. FILE *f = fopen ("conftest.val", "w");
  6664. if (! f)
  6665. return 1;
  6666. if (((long int) (sizeof (short))) < 0)
  6667. {
  6668. long int i = longval ();
  6669. if (i != ((long int) (sizeof (short))))
  6670. return 1;
  6671. fprintf (f, "%ld", i);
  6672. }
  6673. else
  6674. {
  6675. unsigned long int i = ulongval ();
  6676. if (i != ((long int) (sizeof (short))))
  6677. return 1;
  6678. fprintf (f, "%lu", i);
  6679. }
  6680. /* Do not output a trailing newline, as this causes \r\n confusion
  6681. on some platforms. */
  6682. return ferror (f) || fclose (f) != 0;
  6683. ;
  6684. return 0;
  6685. }
  6686. _ACEOF
  6687. rm -f conftest$ac_exeext
  6688. if { (ac_try="$ac_link"
  6689. case "(($ac_try" in
  6690. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6691. *) ac_try_echo=$ac_try;;
  6692. esac
  6693. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6694. $as_echo "$ac_try_echo") >&5
  6695. (eval "$ac_link") 2>&5
  6696. ac_status=$?
  6697. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6698. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6699. { (case "(($ac_try" in
  6700. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6701. *) ac_try_echo=$ac_try;;
  6702. esac
  6703. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6704. $as_echo "$ac_try_echo") >&5
  6705. (eval "$ac_try") 2>&5
  6706. ac_status=$?
  6707. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6708. (exit $ac_status); }; }; then
  6709. ac_cv_sizeof_short=`cat conftest.val`
  6710. else
  6711. $as_echo "$as_me: program exited with status $ac_status" >&5
  6712. $as_echo "$as_me: failed program was:" >&5
  6713. sed 's/^/| /' conftest.$ac_ext >&5
  6714. ( exit $ac_status )
  6715. if test "$ac_cv_type_short" = yes; then
  6716. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  6717. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6718. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
  6719. See \`config.log' for more details." >&5
  6720. $as_echo "$as_me: error: cannot compute sizeof (short)
  6721. See \`config.log' for more details." >&2;}
  6722. { (exit 77); exit 77; }; }; }
  6723. else
  6724. ac_cv_sizeof_short=0
  6725. fi
  6726. fi
  6727. rm -rf conftest.dSYM
  6728. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6729. fi
  6730. rm -f conftest.val
  6731. fi
  6732. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
  6733. $as_echo "$ac_cv_sizeof_short" >&6; }
  6734. cat >>confdefs.h <<_ACEOF
  6735. #define SIZEOF_SHORT $ac_cv_sizeof_short
  6736. _ACEOF
  6737. # The cast to long int works around a bug in the HP C Compiler
  6738. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6739. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6740. # This bug is HP SR number 8606223364.
  6741. { $as_echo "$as_me:$LINENO: checking size of int" >&5
  6742. $as_echo_n "checking size of int... " >&6; }
  6743. if test "${ac_cv_sizeof_int+set}" = set; then
  6744. $as_echo_n "(cached) " >&6
  6745. else
  6746. if test "$cross_compiling" = yes; then
  6747. # Depending upon the size, compute the lo and hi bounds.
  6748. cat >conftest.$ac_ext <<_ACEOF
  6749. /* confdefs.h. */
  6750. _ACEOF
  6751. cat confdefs.h >>conftest.$ac_ext
  6752. cat >>conftest.$ac_ext <<_ACEOF
  6753. /* end confdefs.h. */
  6754. $ac_includes_default
  6755. int
  6756. main ()
  6757. {
  6758. static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
  6759. test_array [0] = 0
  6760. ;
  6761. return 0;
  6762. }
  6763. _ACEOF
  6764. rm -f conftest.$ac_objext
  6765. if { (ac_try="$ac_compile"
  6766. case "(($ac_try" in
  6767. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6768. *) ac_try_echo=$ac_try;;
  6769. esac
  6770. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6771. $as_echo "$ac_try_echo") >&5
  6772. (eval "$ac_compile") 2>conftest.er1
  6773. ac_status=$?
  6774. grep -v '^ *+' conftest.er1 >conftest.err
  6775. rm -f conftest.er1
  6776. cat conftest.err >&5
  6777. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6778. (exit $ac_status); } && {
  6779. test -z "$ac_cxx_werror_flag" ||
  6780. test ! -s conftest.err
  6781. } && test -s conftest.$ac_objext; then
  6782. ac_lo=0 ac_mid=0
  6783. while :; do
  6784. cat >conftest.$ac_ext <<_ACEOF
  6785. /* confdefs.h. */
  6786. _ACEOF
  6787. cat confdefs.h >>conftest.$ac_ext
  6788. cat >>conftest.$ac_ext <<_ACEOF
  6789. /* end confdefs.h. */
  6790. $ac_includes_default
  6791. int
  6792. main ()
  6793. {
  6794. static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
  6795. test_array [0] = 0
  6796. ;
  6797. return 0;
  6798. }
  6799. _ACEOF
  6800. rm -f conftest.$ac_objext
  6801. if { (ac_try="$ac_compile"
  6802. case "(($ac_try" in
  6803. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6804. *) ac_try_echo=$ac_try;;
  6805. esac
  6806. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6807. $as_echo "$ac_try_echo") >&5
  6808. (eval "$ac_compile") 2>conftest.er1
  6809. ac_status=$?
  6810. grep -v '^ *+' conftest.er1 >conftest.err
  6811. rm -f conftest.er1
  6812. cat conftest.err >&5
  6813. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6814. (exit $ac_status); } && {
  6815. test -z "$ac_cxx_werror_flag" ||
  6816. test ! -s conftest.err
  6817. } && test -s conftest.$ac_objext; then
  6818. ac_hi=$ac_mid; break
  6819. else
  6820. $as_echo "$as_me: failed program was:" >&5
  6821. sed 's/^/| /' conftest.$ac_ext >&5
  6822. ac_lo=`expr $ac_mid + 1`
  6823. if test $ac_lo -le $ac_mid; then
  6824. ac_lo= ac_hi=
  6825. break
  6826. fi
  6827. ac_mid=`expr 2 '*' $ac_mid + 1`
  6828. fi
  6829. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6830. done
  6831. else
  6832. $as_echo "$as_me: failed program was:" >&5
  6833. sed 's/^/| /' conftest.$ac_ext >&5
  6834. cat >conftest.$ac_ext <<_ACEOF
  6835. /* confdefs.h. */
  6836. _ACEOF
  6837. cat confdefs.h >>conftest.$ac_ext
  6838. cat >>conftest.$ac_ext <<_ACEOF
  6839. /* end confdefs.h. */
  6840. $ac_includes_default
  6841. int
  6842. main ()
  6843. {
  6844. static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
  6845. test_array [0] = 0
  6846. ;
  6847. return 0;
  6848. }
  6849. _ACEOF
  6850. rm -f conftest.$ac_objext
  6851. if { (ac_try="$ac_compile"
  6852. case "(($ac_try" in
  6853. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6854. *) ac_try_echo=$ac_try;;
  6855. esac
  6856. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6857. $as_echo "$ac_try_echo") >&5
  6858. (eval "$ac_compile") 2>conftest.er1
  6859. ac_status=$?
  6860. grep -v '^ *+' conftest.er1 >conftest.err
  6861. rm -f conftest.er1
  6862. cat conftest.err >&5
  6863. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6864. (exit $ac_status); } && {
  6865. test -z "$ac_cxx_werror_flag" ||
  6866. test ! -s conftest.err
  6867. } && test -s conftest.$ac_objext; then
  6868. ac_hi=-1 ac_mid=-1
  6869. while :; do
  6870. cat >conftest.$ac_ext <<_ACEOF
  6871. /* confdefs.h. */
  6872. _ACEOF
  6873. cat confdefs.h >>conftest.$ac_ext
  6874. cat >>conftest.$ac_ext <<_ACEOF
  6875. /* end confdefs.h. */
  6876. $ac_includes_default
  6877. int
  6878. main ()
  6879. {
  6880. static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
  6881. test_array [0] = 0
  6882. ;
  6883. return 0;
  6884. }
  6885. _ACEOF
  6886. rm -f conftest.$ac_objext
  6887. if { (ac_try="$ac_compile"
  6888. case "(($ac_try" in
  6889. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6890. *) ac_try_echo=$ac_try;;
  6891. esac
  6892. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6893. $as_echo "$ac_try_echo") >&5
  6894. (eval "$ac_compile") 2>conftest.er1
  6895. ac_status=$?
  6896. grep -v '^ *+' conftest.er1 >conftest.err
  6897. rm -f conftest.er1
  6898. cat conftest.err >&5
  6899. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6900. (exit $ac_status); } && {
  6901. test -z "$ac_cxx_werror_flag" ||
  6902. test ! -s conftest.err
  6903. } && test -s conftest.$ac_objext; then
  6904. ac_lo=$ac_mid; break
  6905. else
  6906. $as_echo "$as_me: failed program was:" >&5
  6907. sed 's/^/| /' conftest.$ac_ext >&5
  6908. ac_hi=`expr '(' $ac_mid ')' - 1`
  6909. if test $ac_mid -le $ac_hi; then
  6910. ac_lo= ac_hi=
  6911. break
  6912. fi
  6913. ac_mid=`expr 2 '*' $ac_mid`
  6914. fi
  6915. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6916. done
  6917. else
  6918. $as_echo "$as_me: failed program was:" >&5
  6919. sed 's/^/| /' conftest.$ac_ext >&5
  6920. ac_lo= ac_hi=
  6921. fi
  6922. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6923. fi
  6924. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6925. # Binary search between lo and hi bounds.
  6926. while test "x$ac_lo" != "x$ac_hi"; do
  6927. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6928. cat >conftest.$ac_ext <<_ACEOF
  6929. /* confdefs.h. */
  6930. _ACEOF
  6931. cat confdefs.h >>conftest.$ac_ext
  6932. cat >>conftest.$ac_ext <<_ACEOF
  6933. /* end confdefs.h. */
  6934. $ac_includes_default
  6935. int
  6936. main ()
  6937. {
  6938. static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
  6939. test_array [0] = 0
  6940. ;
  6941. return 0;
  6942. }
  6943. _ACEOF
  6944. rm -f conftest.$ac_objext
  6945. if { (ac_try="$ac_compile"
  6946. case "(($ac_try" in
  6947. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6948. *) ac_try_echo=$ac_try;;
  6949. esac
  6950. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6951. $as_echo "$ac_try_echo") >&5
  6952. (eval "$ac_compile") 2>conftest.er1
  6953. ac_status=$?
  6954. grep -v '^ *+' conftest.er1 >conftest.err
  6955. rm -f conftest.er1
  6956. cat conftest.err >&5
  6957. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6958. (exit $ac_status); } && {
  6959. test -z "$ac_cxx_werror_flag" ||
  6960. test ! -s conftest.err
  6961. } && test -s conftest.$ac_objext; then
  6962. ac_hi=$ac_mid
  6963. else
  6964. $as_echo "$as_me: failed program was:" >&5
  6965. sed 's/^/| /' conftest.$ac_ext >&5
  6966. ac_lo=`expr '(' $ac_mid ')' + 1`
  6967. fi
  6968. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6969. done
  6970. case $ac_lo in
  6971. ?*) ac_cv_sizeof_int=$ac_lo;;
  6972. '') if test "$ac_cv_type_int" = yes; then
  6973. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  6974. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6975. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
  6976. See \`config.log' for more details." >&5
  6977. $as_echo "$as_me: error: cannot compute sizeof (int)
  6978. See \`config.log' for more details." >&2;}
  6979. { (exit 77); exit 77; }; }; }
  6980. else
  6981. ac_cv_sizeof_int=0
  6982. fi ;;
  6983. esac
  6984. else
  6985. cat >conftest.$ac_ext <<_ACEOF
  6986. /* confdefs.h. */
  6987. _ACEOF
  6988. cat confdefs.h >>conftest.$ac_ext
  6989. cat >>conftest.$ac_ext <<_ACEOF
  6990. /* end confdefs.h. */
  6991. $ac_includes_default
  6992. static long int longval () { return (long int) (sizeof (int)); }
  6993. static unsigned long int ulongval () { return (long int) (sizeof (int)); }
  6994. #include <stdio.h>
  6995. #include <stdlib.h>
  6996. int
  6997. main ()
  6998. {
  6999. FILE *f = fopen ("conftest.val", "w");
  7000. if (! f)
  7001. return 1;
  7002. if (((long int) (sizeof (int))) < 0)
  7003. {
  7004. long int i = longval ();
  7005. if (i != ((long int) (sizeof (int))))
  7006. return 1;
  7007. fprintf (f, "%ld", i);
  7008. }
  7009. else
  7010. {
  7011. unsigned long int i = ulongval ();
  7012. if (i != ((long int) (sizeof (int))))
  7013. return 1;
  7014. fprintf (f, "%lu", i);
  7015. }
  7016. /* Do not output a trailing newline, as this causes \r\n confusion
  7017. on some platforms. */
  7018. return ferror (f) || fclose (f) != 0;
  7019. ;
  7020. return 0;
  7021. }
  7022. _ACEOF
  7023. rm -f conftest$ac_exeext
  7024. if { (ac_try="$ac_link"
  7025. case "(($ac_try" in
  7026. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7027. *) ac_try_echo=$ac_try;;
  7028. esac
  7029. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7030. $as_echo "$ac_try_echo") >&5
  7031. (eval "$ac_link") 2>&5
  7032. ac_status=$?
  7033. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7034. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7035. { (case "(($ac_try" in
  7036. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7037. *) ac_try_echo=$ac_try;;
  7038. esac
  7039. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7040. $as_echo "$ac_try_echo") >&5
  7041. (eval "$ac_try") 2>&5
  7042. ac_status=$?
  7043. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7044. (exit $ac_status); }; }; then
  7045. ac_cv_sizeof_int=`cat conftest.val`
  7046. else
  7047. $as_echo "$as_me: program exited with status $ac_status" >&5
  7048. $as_echo "$as_me: failed program was:" >&5
  7049. sed 's/^/| /' conftest.$ac_ext >&5
  7050. ( exit $ac_status )
  7051. if test "$ac_cv_type_int" = yes; then
  7052. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  7053. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7054. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
  7055. See \`config.log' for more details." >&5
  7056. $as_echo "$as_me: error: cannot compute sizeof (int)
  7057. See \`config.log' for more details." >&2;}
  7058. { (exit 77); exit 77; }; }; }
  7059. else
  7060. ac_cv_sizeof_int=0
  7061. fi
  7062. fi
  7063. rm -rf conftest.dSYM
  7064. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7065. fi
  7066. rm -f conftest.val
  7067. fi
  7068. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
  7069. $as_echo "$ac_cv_sizeof_int" >&6; }
  7070. cat >>confdefs.h <<_ACEOF
  7071. #define SIZEOF_INT $ac_cv_sizeof_int
  7072. _ACEOF
  7073. # The cast to long int works around a bug in the HP C Compiler
  7074. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  7075. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  7076. # This bug is HP SR number 8606223364.
  7077. { $as_echo "$as_me:$LINENO: checking size of long" >&5
  7078. $as_echo_n "checking size of long... " >&6; }
  7079. if test "${ac_cv_sizeof_long+set}" = set; then
  7080. $as_echo_n "(cached) " >&6
  7081. else
  7082. if test "$cross_compiling" = yes; then
  7083. # Depending upon the size, compute the lo and hi bounds.
  7084. cat >conftest.$ac_ext <<_ACEOF
  7085. /* confdefs.h. */
  7086. _ACEOF
  7087. cat confdefs.h >>conftest.$ac_ext
  7088. cat >>conftest.$ac_ext <<_ACEOF
  7089. /* end confdefs.h. */
  7090. $ac_includes_default
  7091. int
  7092. main ()
  7093. {
  7094. static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
  7095. test_array [0] = 0
  7096. ;
  7097. return 0;
  7098. }
  7099. _ACEOF
  7100. rm -f conftest.$ac_objext
  7101. if { (ac_try="$ac_compile"
  7102. case "(($ac_try" in
  7103. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7104. *) ac_try_echo=$ac_try;;
  7105. esac
  7106. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7107. $as_echo "$ac_try_echo") >&5
  7108. (eval "$ac_compile") 2>conftest.er1
  7109. ac_status=$?
  7110. grep -v '^ *+' conftest.er1 >conftest.err
  7111. rm -f conftest.er1
  7112. cat conftest.err >&5
  7113. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7114. (exit $ac_status); } && {
  7115. test -z "$ac_cxx_werror_flag" ||
  7116. test ! -s conftest.err
  7117. } && test -s conftest.$ac_objext; then
  7118. ac_lo=0 ac_mid=0
  7119. while :; do
  7120. cat >conftest.$ac_ext <<_ACEOF
  7121. /* confdefs.h. */
  7122. _ACEOF
  7123. cat confdefs.h >>conftest.$ac_ext
  7124. cat >>conftest.$ac_ext <<_ACEOF
  7125. /* end confdefs.h. */
  7126. $ac_includes_default
  7127. int
  7128. main ()
  7129. {
  7130. static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
  7131. test_array [0] = 0
  7132. ;
  7133. return 0;
  7134. }
  7135. _ACEOF
  7136. rm -f conftest.$ac_objext
  7137. if { (ac_try="$ac_compile"
  7138. case "(($ac_try" in
  7139. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7140. *) ac_try_echo=$ac_try;;
  7141. esac
  7142. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7143. $as_echo "$ac_try_echo") >&5
  7144. (eval "$ac_compile") 2>conftest.er1
  7145. ac_status=$?
  7146. grep -v '^ *+' conftest.er1 >conftest.err
  7147. rm -f conftest.er1
  7148. cat conftest.err >&5
  7149. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7150. (exit $ac_status); } && {
  7151. test -z "$ac_cxx_werror_flag" ||
  7152. test ! -s conftest.err
  7153. } && test -s conftest.$ac_objext; then
  7154. ac_hi=$ac_mid; break
  7155. else
  7156. $as_echo "$as_me: failed program was:" >&5
  7157. sed 's/^/| /' conftest.$ac_ext >&5
  7158. ac_lo=`expr $ac_mid + 1`
  7159. if test $ac_lo -le $ac_mid; then
  7160. ac_lo= ac_hi=
  7161. break
  7162. fi
  7163. ac_mid=`expr 2 '*' $ac_mid + 1`
  7164. fi
  7165. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7166. done
  7167. else
  7168. $as_echo "$as_me: failed program was:" >&5
  7169. sed 's/^/| /' conftest.$ac_ext >&5
  7170. cat >conftest.$ac_ext <<_ACEOF
  7171. /* confdefs.h. */
  7172. _ACEOF
  7173. cat confdefs.h >>conftest.$ac_ext
  7174. cat >>conftest.$ac_ext <<_ACEOF
  7175. /* end confdefs.h. */
  7176. $ac_includes_default
  7177. int
  7178. main ()
  7179. {
  7180. static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
  7181. test_array [0] = 0
  7182. ;
  7183. return 0;
  7184. }
  7185. _ACEOF
  7186. rm -f conftest.$ac_objext
  7187. if { (ac_try="$ac_compile"
  7188. case "(($ac_try" in
  7189. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7190. *) ac_try_echo=$ac_try;;
  7191. esac
  7192. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7193. $as_echo "$ac_try_echo") >&5
  7194. (eval "$ac_compile") 2>conftest.er1
  7195. ac_status=$?
  7196. grep -v '^ *+' conftest.er1 >conftest.err
  7197. rm -f conftest.er1
  7198. cat conftest.err >&5
  7199. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7200. (exit $ac_status); } && {
  7201. test -z "$ac_cxx_werror_flag" ||
  7202. test ! -s conftest.err
  7203. } && test -s conftest.$ac_objext; then
  7204. ac_hi=-1 ac_mid=-1
  7205. while :; do
  7206. cat >conftest.$ac_ext <<_ACEOF
  7207. /* confdefs.h. */
  7208. _ACEOF
  7209. cat confdefs.h >>conftest.$ac_ext
  7210. cat >>conftest.$ac_ext <<_ACEOF
  7211. /* end confdefs.h. */
  7212. $ac_includes_default
  7213. int
  7214. main ()
  7215. {
  7216. static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
  7217. test_array [0] = 0
  7218. ;
  7219. return 0;
  7220. }
  7221. _ACEOF
  7222. rm -f conftest.$ac_objext
  7223. if { (ac_try="$ac_compile"
  7224. case "(($ac_try" in
  7225. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7226. *) ac_try_echo=$ac_try;;
  7227. esac
  7228. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7229. $as_echo "$ac_try_echo") >&5
  7230. (eval "$ac_compile") 2>conftest.er1
  7231. ac_status=$?
  7232. grep -v '^ *+' conftest.er1 >conftest.err
  7233. rm -f conftest.er1
  7234. cat conftest.err >&5
  7235. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7236. (exit $ac_status); } && {
  7237. test -z "$ac_cxx_werror_flag" ||
  7238. test ! -s conftest.err
  7239. } && test -s conftest.$ac_objext; then
  7240. ac_lo=$ac_mid; break
  7241. else
  7242. $as_echo "$as_me: failed program was:" >&5
  7243. sed 's/^/| /' conftest.$ac_ext >&5
  7244. ac_hi=`expr '(' $ac_mid ')' - 1`
  7245. if test $ac_mid -le $ac_hi; then
  7246. ac_lo= ac_hi=
  7247. break
  7248. fi
  7249. ac_mid=`expr 2 '*' $ac_mid`
  7250. fi
  7251. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7252. done
  7253. else
  7254. $as_echo "$as_me: failed program was:" >&5
  7255. sed 's/^/| /' conftest.$ac_ext >&5
  7256. ac_lo= ac_hi=
  7257. fi
  7258. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7259. fi
  7260. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7261. # Binary search between lo and hi bounds.
  7262. while test "x$ac_lo" != "x$ac_hi"; do
  7263. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  7264. cat >conftest.$ac_ext <<_ACEOF
  7265. /* confdefs.h. */
  7266. _ACEOF
  7267. cat confdefs.h >>conftest.$ac_ext
  7268. cat >>conftest.$ac_ext <<_ACEOF
  7269. /* end confdefs.h. */
  7270. $ac_includes_default
  7271. int
  7272. main ()
  7273. {
  7274. static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
  7275. test_array [0] = 0
  7276. ;
  7277. return 0;
  7278. }
  7279. _ACEOF
  7280. rm -f conftest.$ac_objext
  7281. if { (ac_try="$ac_compile"
  7282. case "(($ac_try" in
  7283. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7284. *) ac_try_echo=$ac_try;;
  7285. esac
  7286. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7287. $as_echo "$ac_try_echo") >&5
  7288. (eval "$ac_compile") 2>conftest.er1
  7289. ac_status=$?
  7290. grep -v '^ *+' conftest.er1 >conftest.err
  7291. rm -f conftest.er1
  7292. cat conftest.err >&5
  7293. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7294. (exit $ac_status); } && {
  7295. test -z "$ac_cxx_werror_flag" ||
  7296. test ! -s conftest.err
  7297. } && test -s conftest.$ac_objext; then
  7298. ac_hi=$ac_mid
  7299. else
  7300. $as_echo "$as_me: failed program was:" >&5
  7301. sed 's/^/| /' conftest.$ac_ext >&5
  7302. ac_lo=`expr '(' $ac_mid ')' + 1`
  7303. fi
  7304. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7305. done
  7306. case $ac_lo in
  7307. ?*) ac_cv_sizeof_long=$ac_lo;;
  7308. '') if test "$ac_cv_type_long" = yes; then
  7309. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  7310. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7311. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
  7312. See \`config.log' for more details." >&5
  7313. $as_echo "$as_me: error: cannot compute sizeof (long)
  7314. See \`config.log' for more details." >&2;}
  7315. { (exit 77); exit 77; }; }; }
  7316. else
  7317. ac_cv_sizeof_long=0
  7318. fi ;;
  7319. esac
  7320. else
  7321. cat >conftest.$ac_ext <<_ACEOF
  7322. /* confdefs.h. */
  7323. _ACEOF
  7324. cat confdefs.h >>conftest.$ac_ext
  7325. cat >>conftest.$ac_ext <<_ACEOF
  7326. /* end confdefs.h. */
  7327. $ac_includes_default
  7328. static long int longval () { return (long int) (sizeof (long)); }
  7329. static unsigned long int ulongval () { return (long int) (sizeof (long)); }
  7330. #include <stdio.h>
  7331. #include <stdlib.h>
  7332. int
  7333. main ()
  7334. {
  7335. FILE *f = fopen ("conftest.val", "w");
  7336. if (! f)
  7337. return 1;
  7338. if (((long int) (sizeof (long))) < 0)
  7339. {
  7340. long int i = longval ();
  7341. if (i != ((long int) (sizeof (long))))
  7342. return 1;
  7343. fprintf (f, "%ld", i);
  7344. }
  7345. else
  7346. {
  7347. unsigned long int i = ulongval ();
  7348. if (i != ((long int) (sizeof (long))))
  7349. return 1;
  7350. fprintf (f, "%lu", i);
  7351. }
  7352. /* Do not output a trailing newline, as this causes \r\n confusion
  7353. on some platforms. */
  7354. return ferror (f) || fclose (f) != 0;
  7355. ;
  7356. return 0;
  7357. }
  7358. _ACEOF
  7359. rm -f conftest$ac_exeext
  7360. if { (ac_try="$ac_link"
  7361. case "(($ac_try" in
  7362. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7363. *) ac_try_echo=$ac_try;;
  7364. esac
  7365. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7366. $as_echo "$ac_try_echo") >&5
  7367. (eval "$ac_link") 2>&5
  7368. ac_status=$?
  7369. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7370. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7371. { (case "(($ac_try" in
  7372. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7373. *) ac_try_echo=$ac_try;;
  7374. esac
  7375. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7376. $as_echo "$ac_try_echo") >&5
  7377. (eval "$ac_try") 2>&5
  7378. ac_status=$?
  7379. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7380. (exit $ac_status); }; }; then
  7381. ac_cv_sizeof_long=`cat conftest.val`
  7382. else
  7383. $as_echo "$as_me: program exited with status $ac_status" >&5
  7384. $as_echo "$as_me: failed program was:" >&5
  7385. sed 's/^/| /' conftest.$ac_ext >&5
  7386. ( exit $ac_status )
  7387. if test "$ac_cv_type_long" = yes; then
  7388. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  7389. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7390. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
  7391. See \`config.log' for more details." >&5
  7392. $as_echo "$as_me: error: cannot compute sizeof (long)
  7393. See \`config.log' for more details." >&2;}
  7394. { (exit 77); exit 77; }; }; }
  7395. else
  7396. ac_cv_sizeof_long=0
  7397. fi
  7398. fi
  7399. rm -rf conftest.dSYM
  7400. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7401. fi
  7402. rm -f conftest.val
  7403. fi
  7404. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  7405. $as_echo "$ac_cv_sizeof_long" >&6; }
  7406. cat >>confdefs.h <<_ACEOF
  7407. #define SIZEOF_LONG $ac_cv_sizeof_long
  7408. _ACEOF
  7409. # The cast to long int works around a bug in the HP C Compiler
  7410. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  7411. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  7412. # This bug is HP SR number 8606223364.
  7413. { $as_echo "$as_me:$LINENO: checking size of long long" >&5
  7414. $as_echo_n "checking size of long long... " >&6; }
  7415. if test "${ac_cv_sizeof_long_long+set}" = set; then
  7416. $as_echo_n "(cached) " >&6
  7417. else
  7418. if test "$cross_compiling" = yes; then
  7419. # Depending upon the size, compute the lo and hi bounds.
  7420. cat >conftest.$ac_ext <<_ACEOF
  7421. /* confdefs.h. */
  7422. _ACEOF
  7423. cat confdefs.h >>conftest.$ac_ext
  7424. cat >>conftest.$ac_ext <<_ACEOF
  7425. /* end confdefs.h. */
  7426. $ac_includes_default
  7427. int
  7428. main ()
  7429. {
  7430. static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= 0)];
  7431. test_array [0] = 0
  7432. ;
  7433. return 0;
  7434. }
  7435. _ACEOF
  7436. rm -f conftest.$ac_objext
  7437. if { (ac_try="$ac_compile"
  7438. case "(($ac_try" in
  7439. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7440. *) ac_try_echo=$ac_try;;
  7441. esac
  7442. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7443. $as_echo "$ac_try_echo") >&5
  7444. (eval "$ac_compile") 2>conftest.er1
  7445. ac_status=$?
  7446. grep -v '^ *+' conftest.er1 >conftest.err
  7447. rm -f conftest.er1
  7448. cat conftest.err >&5
  7449. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7450. (exit $ac_status); } && {
  7451. test -z "$ac_cxx_werror_flag" ||
  7452. test ! -s conftest.err
  7453. } && test -s conftest.$ac_objext; then
  7454. ac_lo=0 ac_mid=0
  7455. while :; do
  7456. cat >conftest.$ac_ext <<_ACEOF
  7457. /* confdefs.h. */
  7458. _ACEOF
  7459. cat confdefs.h >>conftest.$ac_ext
  7460. cat >>conftest.$ac_ext <<_ACEOF
  7461. /* end confdefs.h. */
  7462. $ac_includes_default
  7463. int
  7464. main ()
  7465. {
  7466. static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
  7467. test_array [0] = 0
  7468. ;
  7469. return 0;
  7470. }
  7471. _ACEOF
  7472. rm -f conftest.$ac_objext
  7473. if { (ac_try="$ac_compile"
  7474. case "(($ac_try" in
  7475. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7476. *) ac_try_echo=$ac_try;;
  7477. esac
  7478. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7479. $as_echo "$ac_try_echo") >&5
  7480. (eval "$ac_compile") 2>conftest.er1
  7481. ac_status=$?
  7482. grep -v '^ *+' conftest.er1 >conftest.err
  7483. rm -f conftest.er1
  7484. cat conftest.err >&5
  7485. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7486. (exit $ac_status); } && {
  7487. test -z "$ac_cxx_werror_flag" ||
  7488. test ! -s conftest.err
  7489. } && test -s conftest.$ac_objext; then
  7490. ac_hi=$ac_mid; break
  7491. else
  7492. $as_echo "$as_me: failed program was:" >&5
  7493. sed 's/^/| /' conftest.$ac_ext >&5
  7494. ac_lo=`expr $ac_mid + 1`
  7495. if test $ac_lo -le $ac_mid; then
  7496. ac_lo= ac_hi=
  7497. break
  7498. fi
  7499. ac_mid=`expr 2 '*' $ac_mid + 1`
  7500. fi
  7501. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7502. done
  7503. else
  7504. $as_echo "$as_me: failed program was:" >&5
  7505. sed 's/^/| /' conftest.$ac_ext >&5
  7506. cat >conftest.$ac_ext <<_ACEOF
  7507. /* confdefs.h. */
  7508. _ACEOF
  7509. cat confdefs.h >>conftest.$ac_ext
  7510. cat >>conftest.$ac_ext <<_ACEOF
  7511. /* end confdefs.h. */
  7512. $ac_includes_default
  7513. int
  7514. main ()
  7515. {
  7516. static int test_array [1 - 2 * !(((long int) (sizeof (long long))) < 0)];
  7517. test_array [0] = 0
  7518. ;
  7519. return 0;
  7520. }
  7521. _ACEOF
  7522. rm -f conftest.$ac_objext
  7523. if { (ac_try="$ac_compile"
  7524. case "(($ac_try" in
  7525. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7526. *) ac_try_echo=$ac_try;;
  7527. esac
  7528. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7529. $as_echo "$ac_try_echo") >&5
  7530. (eval "$ac_compile") 2>conftest.er1
  7531. ac_status=$?
  7532. grep -v '^ *+' conftest.er1 >conftest.err
  7533. rm -f conftest.er1
  7534. cat conftest.err >&5
  7535. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7536. (exit $ac_status); } && {
  7537. test -z "$ac_cxx_werror_flag" ||
  7538. test ! -s conftest.err
  7539. } && test -s conftest.$ac_objext; then
  7540. ac_hi=-1 ac_mid=-1
  7541. while :; do
  7542. cat >conftest.$ac_ext <<_ACEOF
  7543. /* confdefs.h. */
  7544. _ACEOF
  7545. cat confdefs.h >>conftest.$ac_ext
  7546. cat >>conftest.$ac_ext <<_ACEOF
  7547. /* end confdefs.h. */
  7548. $ac_includes_default
  7549. int
  7550. main ()
  7551. {
  7552. static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)];
  7553. test_array [0] = 0
  7554. ;
  7555. return 0;
  7556. }
  7557. _ACEOF
  7558. rm -f conftest.$ac_objext
  7559. if { (ac_try="$ac_compile"
  7560. case "(($ac_try" in
  7561. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7562. *) ac_try_echo=$ac_try;;
  7563. esac
  7564. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7565. $as_echo "$ac_try_echo") >&5
  7566. (eval "$ac_compile") 2>conftest.er1
  7567. ac_status=$?
  7568. grep -v '^ *+' conftest.er1 >conftest.err
  7569. rm -f conftest.er1
  7570. cat conftest.err >&5
  7571. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7572. (exit $ac_status); } && {
  7573. test -z "$ac_cxx_werror_flag" ||
  7574. test ! -s conftest.err
  7575. } && test -s conftest.$ac_objext; then
  7576. ac_lo=$ac_mid; break
  7577. else
  7578. $as_echo "$as_me: failed program was:" >&5
  7579. sed 's/^/| /' conftest.$ac_ext >&5
  7580. ac_hi=`expr '(' $ac_mid ')' - 1`
  7581. if test $ac_mid -le $ac_hi; then
  7582. ac_lo= ac_hi=
  7583. break
  7584. fi
  7585. ac_mid=`expr 2 '*' $ac_mid`
  7586. fi
  7587. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7588. done
  7589. else
  7590. $as_echo "$as_me: failed program was:" >&5
  7591. sed 's/^/| /' conftest.$ac_ext >&5
  7592. ac_lo= ac_hi=
  7593. fi
  7594. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7595. fi
  7596. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7597. # Binary search between lo and hi bounds.
  7598. while test "x$ac_lo" != "x$ac_hi"; do
  7599. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  7600. cat >conftest.$ac_ext <<_ACEOF
  7601. /* confdefs.h. */
  7602. _ACEOF
  7603. cat confdefs.h >>conftest.$ac_ext
  7604. cat >>conftest.$ac_ext <<_ACEOF
  7605. /* end confdefs.h. */
  7606. $ac_includes_default
  7607. int
  7608. main ()
  7609. {
  7610. static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
  7611. test_array [0] = 0
  7612. ;
  7613. return 0;
  7614. }
  7615. _ACEOF
  7616. rm -f conftest.$ac_objext
  7617. if { (ac_try="$ac_compile"
  7618. case "(($ac_try" in
  7619. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7620. *) ac_try_echo=$ac_try;;
  7621. esac
  7622. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7623. $as_echo "$ac_try_echo") >&5
  7624. (eval "$ac_compile") 2>conftest.er1
  7625. ac_status=$?
  7626. grep -v '^ *+' conftest.er1 >conftest.err
  7627. rm -f conftest.er1
  7628. cat conftest.err >&5
  7629. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7630. (exit $ac_status); } && {
  7631. test -z "$ac_cxx_werror_flag" ||
  7632. test ! -s conftest.err
  7633. } && test -s conftest.$ac_objext; then
  7634. ac_hi=$ac_mid
  7635. else
  7636. $as_echo "$as_me: failed program was:" >&5
  7637. sed 's/^/| /' conftest.$ac_ext >&5
  7638. ac_lo=`expr '(' $ac_mid ')' + 1`
  7639. fi
  7640. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7641. done
  7642. case $ac_lo in
  7643. ?*) ac_cv_sizeof_long_long=$ac_lo;;
  7644. '') if test "$ac_cv_type_long_long" = yes; then
  7645. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  7646. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7647. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
  7648. See \`config.log' for more details." >&5
  7649. $as_echo "$as_me: error: cannot compute sizeof (long long)
  7650. See \`config.log' for more details." >&2;}
  7651. { (exit 77); exit 77; }; }; }
  7652. else
  7653. ac_cv_sizeof_long_long=0
  7654. fi ;;
  7655. esac
  7656. else
  7657. cat >conftest.$ac_ext <<_ACEOF
  7658. /* confdefs.h. */
  7659. _ACEOF
  7660. cat confdefs.h >>conftest.$ac_ext
  7661. cat >>conftest.$ac_ext <<_ACEOF
  7662. /* end confdefs.h. */
  7663. $ac_includes_default
  7664. static long int longval () { return (long int) (sizeof (long long)); }
  7665. static unsigned long int ulongval () { return (long int) (sizeof (long long)); }
  7666. #include <stdio.h>
  7667. #include <stdlib.h>
  7668. int
  7669. main ()
  7670. {
  7671. FILE *f = fopen ("conftest.val", "w");
  7672. if (! f)
  7673. return 1;
  7674. if (((long int) (sizeof (long long))) < 0)
  7675. {
  7676. long int i = longval ();
  7677. if (i != ((long int) (sizeof (long long))))
  7678. return 1;
  7679. fprintf (f, "%ld", i);
  7680. }
  7681. else
  7682. {
  7683. unsigned long int i = ulongval ();
  7684. if (i != ((long int) (sizeof (long long))))
  7685. return 1;
  7686. fprintf (f, "%lu", i);
  7687. }
  7688. /* Do not output a trailing newline, as this causes \r\n confusion
  7689. on some platforms. */
  7690. return ferror (f) || fclose (f) != 0;
  7691. ;
  7692. return 0;
  7693. }
  7694. _ACEOF
  7695. rm -f conftest$ac_exeext
  7696. if { (ac_try="$ac_link"
  7697. case "(($ac_try" in
  7698. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7699. *) ac_try_echo=$ac_try;;
  7700. esac
  7701. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7702. $as_echo "$ac_try_echo") >&5
  7703. (eval "$ac_link") 2>&5
  7704. ac_status=$?
  7705. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7706. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7707. { (case "(($ac_try" in
  7708. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7709. *) ac_try_echo=$ac_try;;
  7710. esac
  7711. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7712. $as_echo "$ac_try_echo") >&5
  7713. (eval "$ac_try") 2>&5
  7714. ac_status=$?
  7715. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7716. (exit $ac_status); }; }; then
  7717. ac_cv_sizeof_long_long=`cat conftest.val`
  7718. else
  7719. $as_echo "$as_me: program exited with status $ac_status" >&5
  7720. $as_echo "$as_me: failed program was:" >&5
  7721. sed 's/^/| /' conftest.$ac_ext >&5
  7722. ( exit $ac_status )
  7723. if test "$ac_cv_type_long_long" = yes; then
  7724. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  7725. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7726. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
  7727. See \`config.log' for more details." >&5
  7728. $as_echo "$as_me: error: cannot compute sizeof (long long)
  7729. See \`config.log' for more details." >&2;}
  7730. { (exit 77); exit 77; }; }; }
  7731. else
  7732. ac_cv_sizeof_long_long=0
  7733. fi
  7734. fi
  7735. rm -rf conftest.dSYM
  7736. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7737. fi
  7738. rm -f conftest.val
  7739. fi
  7740. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
  7741. $as_echo "$ac_cv_sizeof_long_long" >&6; }
  7742. cat >>confdefs.h <<_ACEOF
  7743. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  7744. _ACEOF
  7745. # The cast to long int works around a bug in the HP C Compiler
  7746. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  7747. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  7748. # This bug is HP SR number 8606223364.
  7749. { $as_echo "$as_me:$LINENO: checking size of size_t" >&5
  7750. $as_echo_n "checking size of size_t... " >&6; }
  7751. if test "${ac_cv_sizeof_size_t+set}" = set; then
  7752. $as_echo_n "(cached) " >&6
  7753. else
  7754. if test "$cross_compiling" = yes; then
  7755. # Depending upon the size, compute the lo and hi bounds.
  7756. cat >conftest.$ac_ext <<_ACEOF
  7757. /* confdefs.h. */
  7758. _ACEOF
  7759. cat confdefs.h >>conftest.$ac_ext
  7760. cat >>conftest.$ac_ext <<_ACEOF
  7761. /* end confdefs.h. */
  7762. $ac_includes_default
  7763. int
  7764. main ()
  7765. {
  7766. static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
  7767. test_array [0] = 0
  7768. ;
  7769. return 0;
  7770. }
  7771. _ACEOF
  7772. rm -f conftest.$ac_objext
  7773. if { (ac_try="$ac_compile"
  7774. case "(($ac_try" in
  7775. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7776. *) ac_try_echo=$ac_try;;
  7777. esac
  7778. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7779. $as_echo "$ac_try_echo") >&5
  7780. (eval "$ac_compile") 2>conftest.er1
  7781. ac_status=$?
  7782. grep -v '^ *+' conftest.er1 >conftest.err
  7783. rm -f conftest.er1
  7784. cat conftest.err >&5
  7785. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7786. (exit $ac_status); } && {
  7787. test -z "$ac_cxx_werror_flag" ||
  7788. test ! -s conftest.err
  7789. } && test -s conftest.$ac_objext; then
  7790. ac_lo=0 ac_mid=0
  7791. while :; do
  7792. cat >conftest.$ac_ext <<_ACEOF
  7793. /* confdefs.h. */
  7794. _ACEOF
  7795. cat confdefs.h >>conftest.$ac_ext
  7796. cat >>conftest.$ac_ext <<_ACEOF
  7797. /* end confdefs.h. */
  7798. $ac_includes_default
  7799. int
  7800. main ()
  7801. {
  7802. static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
  7803. test_array [0] = 0
  7804. ;
  7805. return 0;
  7806. }
  7807. _ACEOF
  7808. rm -f conftest.$ac_objext
  7809. if { (ac_try="$ac_compile"
  7810. case "(($ac_try" in
  7811. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7812. *) ac_try_echo=$ac_try;;
  7813. esac
  7814. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7815. $as_echo "$ac_try_echo") >&5
  7816. (eval "$ac_compile") 2>conftest.er1
  7817. ac_status=$?
  7818. grep -v '^ *+' conftest.er1 >conftest.err
  7819. rm -f conftest.er1
  7820. cat conftest.err >&5
  7821. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7822. (exit $ac_status); } && {
  7823. test -z "$ac_cxx_werror_flag" ||
  7824. test ! -s conftest.err
  7825. } && test -s conftest.$ac_objext; then
  7826. ac_hi=$ac_mid; break
  7827. else
  7828. $as_echo "$as_me: failed program was:" >&5
  7829. sed 's/^/| /' conftest.$ac_ext >&5
  7830. ac_lo=`expr $ac_mid + 1`
  7831. if test $ac_lo -le $ac_mid; then
  7832. ac_lo= ac_hi=
  7833. break
  7834. fi
  7835. ac_mid=`expr 2 '*' $ac_mid + 1`
  7836. fi
  7837. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7838. done
  7839. else
  7840. $as_echo "$as_me: failed program was:" >&5
  7841. sed 's/^/| /' conftest.$ac_ext >&5
  7842. cat >conftest.$ac_ext <<_ACEOF
  7843. /* confdefs.h. */
  7844. _ACEOF
  7845. cat confdefs.h >>conftest.$ac_ext
  7846. cat >>conftest.$ac_ext <<_ACEOF
  7847. /* end confdefs.h. */
  7848. $ac_includes_default
  7849. int
  7850. main ()
  7851. {
  7852. static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
  7853. test_array [0] = 0
  7854. ;
  7855. return 0;
  7856. }
  7857. _ACEOF
  7858. rm -f conftest.$ac_objext
  7859. if { (ac_try="$ac_compile"
  7860. case "(($ac_try" in
  7861. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7862. *) ac_try_echo=$ac_try;;
  7863. esac
  7864. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7865. $as_echo "$ac_try_echo") >&5
  7866. (eval "$ac_compile") 2>conftest.er1
  7867. ac_status=$?
  7868. grep -v '^ *+' conftest.er1 >conftest.err
  7869. rm -f conftest.er1
  7870. cat conftest.err >&5
  7871. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7872. (exit $ac_status); } && {
  7873. test -z "$ac_cxx_werror_flag" ||
  7874. test ! -s conftest.err
  7875. } && test -s conftest.$ac_objext; then
  7876. ac_hi=-1 ac_mid=-1
  7877. while :; do
  7878. cat >conftest.$ac_ext <<_ACEOF
  7879. /* confdefs.h. */
  7880. _ACEOF
  7881. cat confdefs.h >>conftest.$ac_ext
  7882. cat >>conftest.$ac_ext <<_ACEOF
  7883. /* end confdefs.h. */
  7884. $ac_includes_default
  7885. int
  7886. main ()
  7887. {
  7888. static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
  7889. test_array [0] = 0
  7890. ;
  7891. return 0;
  7892. }
  7893. _ACEOF
  7894. rm -f conftest.$ac_objext
  7895. if { (ac_try="$ac_compile"
  7896. case "(($ac_try" in
  7897. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7898. *) ac_try_echo=$ac_try;;
  7899. esac
  7900. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7901. $as_echo "$ac_try_echo") >&5
  7902. (eval "$ac_compile") 2>conftest.er1
  7903. ac_status=$?
  7904. grep -v '^ *+' conftest.er1 >conftest.err
  7905. rm -f conftest.er1
  7906. cat conftest.err >&5
  7907. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7908. (exit $ac_status); } && {
  7909. test -z "$ac_cxx_werror_flag" ||
  7910. test ! -s conftest.err
  7911. } && test -s conftest.$ac_objext; then
  7912. ac_lo=$ac_mid; break
  7913. else
  7914. $as_echo "$as_me: failed program was:" >&5
  7915. sed 's/^/| /' conftest.$ac_ext >&5
  7916. ac_hi=`expr '(' $ac_mid ')' - 1`
  7917. if test $ac_mid -le $ac_hi; then
  7918. ac_lo= ac_hi=
  7919. break
  7920. fi
  7921. ac_mid=`expr 2 '*' $ac_mid`
  7922. fi
  7923. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7924. done
  7925. else
  7926. $as_echo "$as_me: failed program was:" >&5
  7927. sed 's/^/| /' conftest.$ac_ext >&5
  7928. ac_lo= ac_hi=
  7929. fi
  7930. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7931. fi
  7932. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7933. # Binary search between lo and hi bounds.
  7934. while test "x$ac_lo" != "x$ac_hi"; do
  7935. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  7936. cat >conftest.$ac_ext <<_ACEOF
  7937. /* confdefs.h. */
  7938. _ACEOF
  7939. cat confdefs.h >>conftest.$ac_ext
  7940. cat >>conftest.$ac_ext <<_ACEOF
  7941. /* end confdefs.h. */
  7942. $ac_includes_default
  7943. int
  7944. main ()
  7945. {
  7946. static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
  7947. test_array [0] = 0
  7948. ;
  7949. return 0;
  7950. }
  7951. _ACEOF
  7952. rm -f conftest.$ac_objext
  7953. if { (ac_try="$ac_compile"
  7954. case "(($ac_try" in
  7955. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7956. *) ac_try_echo=$ac_try;;
  7957. esac
  7958. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7959. $as_echo "$ac_try_echo") >&5
  7960. (eval "$ac_compile") 2>conftest.er1
  7961. ac_status=$?
  7962. grep -v '^ *+' conftest.er1 >conftest.err
  7963. rm -f conftest.er1
  7964. cat conftest.err >&5
  7965. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7966. (exit $ac_status); } && {
  7967. test -z "$ac_cxx_werror_flag" ||
  7968. test ! -s conftest.err
  7969. } && test -s conftest.$ac_objext; then
  7970. ac_hi=$ac_mid
  7971. else
  7972. $as_echo "$as_me: failed program was:" >&5
  7973. sed 's/^/| /' conftest.$ac_ext >&5
  7974. ac_lo=`expr '(' $ac_mid ')' + 1`
  7975. fi
  7976. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7977. done
  7978. case $ac_lo in
  7979. ?*) ac_cv_sizeof_size_t=$ac_lo;;
  7980. '') if test "$ac_cv_type_size_t" = yes; then
  7981. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  7982. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7983. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
  7984. See \`config.log' for more details." >&5
  7985. $as_echo "$as_me: error: cannot compute sizeof (size_t)
  7986. See \`config.log' for more details." >&2;}
  7987. { (exit 77); exit 77; }; }; }
  7988. else
  7989. ac_cv_sizeof_size_t=0
  7990. fi ;;
  7991. esac
  7992. else
  7993. cat >conftest.$ac_ext <<_ACEOF
  7994. /* confdefs.h. */
  7995. _ACEOF
  7996. cat confdefs.h >>conftest.$ac_ext
  7997. cat >>conftest.$ac_ext <<_ACEOF
  7998. /* end confdefs.h. */
  7999. $ac_includes_default
  8000. static long int longval () { return (long int) (sizeof (size_t)); }
  8001. static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
  8002. #include <stdio.h>
  8003. #include <stdlib.h>
  8004. int
  8005. main ()
  8006. {
  8007. FILE *f = fopen ("conftest.val", "w");
  8008. if (! f)
  8009. return 1;
  8010. if (((long int) (sizeof (size_t))) < 0)
  8011. {
  8012. long int i = longval ();
  8013. if (i != ((long int) (sizeof (size_t))))
  8014. return 1;
  8015. fprintf (f, "%ld", i);
  8016. }
  8017. else
  8018. {
  8019. unsigned long int i = ulongval ();
  8020. if (i != ((long int) (sizeof (size_t))))
  8021. return 1;
  8022. fprintf (f, "%lu", i);
  8023. }
  8024. /* Do not output a trailing newline, as this causes \r\n confusion
  8025. on some platforms. */
  8026. return ferror (f) || fclose (f) != 0;
  8027. ;
  8028. return 0;
  8029. }
  8030. _ACEOF
  8031. rm -f conftest$ac_exeext
  8032. if { (ac_try="$ac_link"
  8033. case "(($ac_try" in
  8034. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8035. *) ac_try_echo=$ac_try;;
  8036. esac
  8037. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8038. $as_echo "$ac_try_echo") >&5
  8039. (eval "$ac_link") 2>&5
  8040. ac_status=$?
  8041. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8042. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8043. { (case "(($ac_try" in
  8044. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8045. *) ac_try_echo=$ac_try;;
  8046. esac
  8047. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8048. $as_echo "$ac_try_echo") >&5
  8049. (eval "$ac_try") 2>&5
  8050. ac_status=$?
  8051. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8052. (exit $ac_status); }; }; then
  8053. ac_cv_sizeof_size_t=`cat conftest.val`
  8054. else
  8055. $as_echo "$as_me: program exited with status $ac_status" >&5
  8056. $as_echo "$as_me: failed program was:" >&5
  8057. sed 's/^/| /' conftest.$ac_ext >&5
  8058. ( exit $ac_status )
  8059. if test "$ac_cv_type_size_t" = yes; then
  8060. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  8061. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  8062. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
  8063. See \`config.log' for more details." >&5
  8064. $as_echo "$as_me: error: cannot compute sizeof (size_t)
  8065. See \`config.log' for more details." >&2;}
  8066. { (exit 77); exit 77; }; }; }
  8067. else
  8068. ac_cv_sizeof_size_t=0
  8069. fi
  8070. fi
  8071. rm -rf conftest.dSYM
  8072. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8073. fi
  8074. rm -f conftest.val
  8075. fi
  8076. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
  8077. $as_echo "$ac_cv_sizeof_size_t" >&6; }
  8078. cat >>confdefs.h <<_ACEOF
  8079. #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
  8080. _ACEOF
  8081. # The cast to long int works around a bug in the HP C Compiler
  8082. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  8083. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  8084. # This bug is HP SR number 8606223364.
  8085. { $as_echo "$as_me:$LINENO: checking size of ptrdiff_t" >&5
  8086. $as_echo_n "checking size of ptrdiff_t... " >&6; }
  8087. if test "${ac_cv_sizeof_ptrdiff_t+set}" = set; then
  8088. $as_echo_n "(cached) " >&6
  8089. else
  8090. if test "$cross_compiling" = yes; then
  8091. # Depending upon the size, compute the lo and hi bounds.
  8092. cat >conftest.$ac_ext <<_ACEOF
  8093. /* confdefs.h. */
  8094. _ACEOF
  8095. cat confdefs.h >>conftest.$ac_ext
  8096. cat >>conftest.$ac_ext <<_ACEOF
  8097. /* end confdefs.h. */
  8098. $ac_includes_default
  8099. int
  8100. main ()
  8101. {
  8102. static int test_array [1 - 2 * !(((long int) (sizeof (ptrdiff_t))) >= 0)];
  8103. test_array [0] = 0
  8104. ;
  8105. return 0;
  8106. }
  8107. _ACEOF
  8108. rm -f conftest.$ac_objext
  8109. if { (ac_try="$ac_compile"
  8110. case "(($ac_try" in
  8111. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8112. *) ac_try_echo=$ac_try;;
  8113. esac
  8114. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8115. $as_echo "$ac_try_echo") >&5
  8116. (eval "$ac_compile") 2>conftest.er1
  8117. ac_status=$?
  8118. grep -v '^ *+' conftest.er1 >conftest.err
  8119. rm -f conftest.er1
  8120. cat conftest.err >&5
  8121. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8122. (exit $ac_status); } && {
  8123. test -z "$ac_cxx_werror_flag" ||
  8124. test ! -s conftest.err
  8125. } && test -s conftest.$ac_objext; then
  8126. ac_lo=0 ac_mid=0
  8127. while :; do
  8128. cat >conftest.$ac_ext <<_ACEOF
  8129. /* confdefs.h. */
  8130. _ACEOF
  8131. cat confdefs.h >>conftest.$ac_ext
  8132. cat >>conftest.$ac_ext <<_ACEOF
  8133. /* end confdefs.h. */
  8134. $ac_includes_default
  8135. int
  8136. main ()
  8137. {
  8138. static int test_array [1 - 2 * !(((long int) (sizeof (ptrdiff_t))) <= $ac_mid)];
  8139. test_array [0] = 0
  8140. ;
  8141. return 0;
  8142. }
  8143. _ACEOF
  8144. rm -f conftest.$ac_objext
  8145. if { (ac_try="$ac_compile"
  8146. case "(($ac_try" in
  8147. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8148. *) ac_try_echo=$ac_try;;
  8149. esac
  8150. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8151. $as_echo "$ac_try_echo") >&5
  8152. (eval "$ac_compile") 2>conftest.er1
  8153. ac_status=$?
  8154. grep -v '^ *+' conftest.er1 >conftest.err
  8155. rm -f conftest.er1
  8156. cat conftest.err >&5
  8157. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8158. (exit $ac_status); } && {
  8159. test -z "$ac_cxx_werror_flag" ||
  8160. test ! -s conftest.err
  8161. } && test -s conftest.$ac_objext; then
  8162. ac_hi=$ac_mid; break
  8163. else
  8164. $as_echo "$as_me: failed program was:" >&5
  8165. sed 's/^/| /' conftest.$ac_ext >&5
  8166. ac_lo=`expr $ac_mid + 1`
  8167. if test $ac_lo -le $ac_mid; then
  8168. ac_lo= ac_hi=
  8169. break
  8170. fi
  8171. ac_mid=`expr 2 '*' $ac_mid + 1`
  8172. fi
  8173. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8174. done
  8175. else
  8176. $as_echo "$as_me: failed program was:" >&5
  8177. sed 's/^/| /' conftest.$ac_ext >&5
  8178. cat >conftest.$ac_ext <<_ACEOF
  8179. /* confdefs.h. */
  8180. _ACEOF
  8181. cat confdefs.h >>conftest.$ac_ext
  8182. cat >>conftest.$ac_ext <<_ACEOF
  8183. /* end confdefs.h. */
  8184. $ac_includes_default
  8185. int
  8186. main ()
  8187. {
  8188. static int test_array [1 - 2 * !(((long int) (sizeof (ptrdiff_t))) < 0)];
  8189. test_array [0] = 0
  8190. ;
  8191. return 0;
  8192. }
  8193. _ACEOF
  8194. rm -f conftest.$ac_objext
  8195. if { (ac_try="$ac_compile"
  8196. case "(($ac_try" in
  8197. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8198. *) ac_try_echo=$ac_try;;
  8199. esac
  8200. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8201. $as_echo "$ac_try_echo") >&5
  8202. (eval "$ac_compile") 2>conftest.er1
  8203. ac_status=$?
  8204. grep -v '^ *+' conftest.er1 >conftest.err
  8205. rm -f conftest.er1
  8206. cat conftest.err >&5
  8207. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8208. (exit $ac_status); } && {
  8209. test -z "$ac_cxx_werror_flag" ||
  8210. test ! -s conftest.err
  8211. } && test -s conftest.$ac_objext; then
  8212. ac_hi=-1 ac_mid=-1
  8213. while :; do
  8214. cat >conftest.$ac_ext <<_ACEOF
  8215. /* confdefs.h. */
  8216. _ACEOF
  8217. cat confdefs.h >>conftest.$ac_ext
  8218. cat >>conftest.$ac_ext <<_ACEOF
  8219. /* end confdefs.h. */
  8220. $ac_includes_default
  8221. int
  8222. main ()
  8223. {
  8224. static int test_array [1 - 2 * !(((long int) (sizeof (ptrdiff_t))) >= $ac_mid)];
  8225. test_array [0] = 0
  8226. ;
  8227. return 0;
  8228. }
  8229. _ACEOF
  8230. rm -f conftest.$ac_objext
  8231. if { (ac_try="$ac_compile"
  8232. case "(($ac_try" in
  8233. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8234. *) ac_try_echo=$ac_try;;
  8235. esac
  8236. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8237. $as_echo "$ac_try_echo") >&5
  8238. (eval "$ac_compile") 2>conftest.er1
  8239. ac_status=$?
  8240. grep -v '^ *+' conftest.er1 >conftest.err
  8241. rm -f conftest.er1
  8242. cat conftest.err >&5
  8243. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8244. (exit $ac_status); } && {
  8245. test -z "$ac_cxx_werror_flag" ||
  8246. test ! -s conftest.err
  8247. } && test -s conftest.$ac_objext; then
  8248. ac_lo=$ac_mid; break
  8249. else
  8250. $as_echo "$as_me: failed program was:" >&5
  8251. sed 's/^/| /' conftest.$ac_ext >&5
  8252. ac_hi=`expr '(' $ac_mid ')' - 1`
  8253. if test $ac_mid -le $ac_hi; then
  8254. ac_lo= ac_hi=
  8255. break
  8256. fi
  8257. ac_mid=`expr 2 '*' $ac_mid`
  8258. fi
  8259. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8260. done
  8261. else
  8262. $as_echo "$as_me: failed program was:" >&5
  8263. sed 's/^/| /' conftest.$ac_ext >&5
  8264. ac_lo= ac_hi=
  8265. fi
  8266. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8267. fi
  8268. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8269. # Binary search between lo and hi bounds.
  8270. while test "x$ac_lo" != "x$ac_hi"; do
  8271. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  8272. cat >conftest.$ac_ext <<_ACEOF
  8273. /* confdefs.h. */
  8274. _ACEOF
  8275. cat confdefs.h >>conftest.$ac_ext
  8276. cat >>conftest.$ac_ext <<_ACEOF
  8277. /* end confdefs.h. */
  8278. $ac_includes_default
  8279. int
  8280. main ()
  8281. {
  8282. static int test_array [1 - 2 * !(((long int) (sizeof (ptrdiff_t))) <= $ac_mid)];
  8283. test_array [0] = 0
  8284. ;
  8285. return 0;
  8286. }
  8287. _ACEOF
  8288. rm -f conftest.$ac_objext
  8289. if { (ac_try="$ac_compile"
  8290. case "(($ac_try" in
  8291. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8292. *) ac_try_echo=$ac_try;;
  8293. esac
  8294. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8295. $as_echo "$ac_try_echo") >&5
  8296. (eval "$ac_compile") 2>conftest.er1
  8297. ac_status=$?
  8298. grep -v '^ *+' conftest.er1 >conftest.err
  8299. rm -f conftest.er1
  8300. cat conftest.err >&5
  8301. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8302. (exit $ac_status); } && {
  8303. test -z "$ac_cxx_werror_flag" ||
  8304. test ! -s conftest.err
  8305. } && test -s conftest.$ac_objext; then
  8306. ac_hi=$ac_mid
  8307. else
  8308. $as_echo "$as_me: failed program was:" >&5
  8309. sed 's/^/| /' conftest.$ac_ext >&5
  8310. ac_lo=`expr '(' $ac_mid ')' + 1`
  8311. fi
  8312. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8313. done
  8314. case $ac_lo in
  8315. ?*) ac_cv_sizeof_ptrdiff_t=$ac_lo;;
  8316. '') if test "$ac_cv_type_ptrdiff_t" = yes; then
  8317. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  8318. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  8319. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (ptrdiff_t)
  8320. See \`config.log' for more details." >&5
  8321. $as_echo "$as_me: error: cannot compute sizeof (ptrdiff_t)
  8322. See \`config.log' for more details." >&2;}
  8323. { (exit 77); exit 77; }; }; }
  8324. else
  8325. ac_cv_sizeof_ptrdiff_t=0
  8326. fi ;;
  8327. esac
  8328. else
  8329. cat >conftest.$ac_ext <<_ACEOF
  8330. /* confdefs.h. */
  8331. _ACEOF
  8332. cat confdefs.h >>conftest.$ac_ext
  8333. cat >>conftest.$ac_ext <<_ACEOF
  8334. /* end confdefs.h. */
  8335. $ac_includes_default
  8336. static long int longval () { return (long int) (sizeof (ptrdiff_t)); }
  8337. static unsigned long int ulongval () { return (long int) (sizeof (ptrdiff_t)); }
  8338. #include <stdio.h>
  8339. #include <stdlib.h>
  8340. int
  8341. main ()
  8342. {
  8343. FILE *f = fopen ("conftest.val", "w");
  8344. if (! f)
  8345. return 1;
  8346. if (((long int) (sizeof (ptrdiff_t))) < 0)
  8347. {
  8348. long int i = longval ();
  8349. if (i != ((long int) (sizeof (ptrdiff_t))))
  8350. return 1;
  8351. fprintf (f, "%ld", i);
  8352. }
  8353. else
  8354. {
  8355. unsigned long int i = ulongval ();
  8356. if (i != ((long int) (sizeof (ptrdiff_t))))
  8357. return 1;
  8358. fprintf (f, "%lu", i);
  8359. }
  8360. /* Do not output a trailing newline, as this causes \r\n confusion
  8361. on some platforms. */
  8362. return ferror (f) || fclose (f) != 0;
  8363. ;
  8364. return 0;
  8365. }
  8366. _ACEOF
  8367. rm -f conftest$ac_exeext
  8368. if { (ac_try="$ac_link"
  8369. case "(($ac_try" in
  8370. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8371. *) ac_try_echo=$ac_try;;
  8372. esac
  8373. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8374. $as_echo "$ac_try_echo") >&5
  8375. (eval "$ac_link") 2>&5
  8376. ac_status=$?
  8377. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8378. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8379. { (case "(($ac_try" in
  8380. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8381. *) ac_try_echo=$ac_try;;
  8382. esac
  8383. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8384. $as_echo "$ac_try_echo") >&5
  8385. (eval "$ac_try") 2>&5
  8386. ac_status=$?
  8387. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8388. (exit $ac_status); }; }; then
  8389. ac_cv_sizeof_ptrdiff_t=`cat conftest.val`
  8390. else
  8391. $as_echo "$as_me: program exited with status $ac_status" >&5
  8392. $as_echo "$as_me: failed program was:" >&5
  8393. sed 's/^/| /' conftest.$ac_ext >&5
  8394. ( exit $ac_status )
  8395. if test "$ac_cv_type_ptrdiff_t" = yes; then
  8396. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  8397. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  8398. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (ptrdiff_t)
  8399. See \`config.log' for more details." >&5
  8400. $as_echo "$as_me: error: cannot compute sizeof (ptrdiff_t)
  8401. See \`config.log' for more details." >&2;}
  8402. { (exit 77); exit 77; }; }; }
  8403. else
  8404. ac_cv_sizeof_ptrdiff_t=0
  8405. fi
  8406. fi
  8407. rm -rf conftest.dSYM
  8408. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8409. fi
  8410. rm -f conftest.val
  8411. fi
  8412. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_ptrdiff_t" >&5
  8413. $as_echo "$ac_cv_sizeof_ptrdiff_t" >&6; }
  8414. cat >>confdefs.h <<_ACEOF
  8415. #define SIZEOF_PTRDIFF_T $ac_cv_sizeof_ptrdiff_t
  8416. _ACEOF
  8417. # The cast to long int works around a bug in the HP C Compiler
  8418. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  8419. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  8420. # This bug is HP SR number 8606223364.
  8421. { $as_echo "$as_me:$LINENO: checking size of time_t" >&5
  8422. $as_echo_n "checking size of time_t... " >&6; }
  8423. if test "${ac_cv_sizeof_time_t+set}" = set; then
  8424. $as_echo_n "(cached) " >&6
  8425. else
  8426. if test "$cross_compiling" = yes; then
  8427. # Depending upon the size, compute the lo and hi bounds.
  8428. cat >conftest.$ac_ext <<_ACEOF
  8429. /* confdefs.h. */
  8430. _ACEOF
  8431. cat confdefs.h >>conftest.$ac_ext
  8432. cat >>conftest.$ac_ext <<_ACEOF
  8433. /* end confdefs.h. */
  8434. $ac_includes_default
  8435. int
  8436. main ()
  8437. {
  8438. static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) >= 0)];
  8439. test_array [0] = 0
  8440. ;
  8441. return 0;
  8442. }
  8443. _ACEOF
  8444. rm -f conftest.$ac_objext
  8445. if { (ac_try="$ac_compile"
  8446. case "(($ac_try" in
  8447. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8448. *) ac_try_echo=$ac_try;;
  8449. esac
  8450. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8451. $as_echo "$ac_try_echo") >&5
  8452. (eval "$ac_compile") 2>conftest.er1
  8453. ac_status=$?
  8454. grep -v '^ *+' conftest.er1 >conftest.err
  8455. rm -f conftest.er1
  8456. cat conftest.err >&5
  8457. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8458. (exit $ac_status); } && {
  8459. test -z "$ac_cxx_werror_flag" ||
  8460. test ! -s conftest.err
  8461. } && test -s conftest.$ac_objext; then
  8462. ac_lo=0 ac_mid=0
  8463. while :; do
  8464. cat >conftest.$ac_ext <<_ACEOF
  8465. /* confdefs.h. */
  8466. _ACEOF
  8467. cat confdefs.h >>conftest.$ac_ext
  8468. cat >>conftest.$ac_ext <<_ACEOF
  8469. /* end confdefs.h. */
  8470. $ac_includes_default
  8471. int
  8472. main ()
  8473. {
  8474. static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) <= $ac_mid)];
  8475. test_array [0] = 0
  8476. ;
  8477. return 0;
  8478. }
  8479. _ACEOF
  8480. rm -f conftest.$ac_objext
  8481. if { (ac_try="$ac_compile"
  8482. case "(($ac_try" in
  8483. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8484. *) ac_try_echo=$ac_try;;
  8485. esac
  8486. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8487. $as_echo "$ac_try_echo") >&5
  8488. (eval "$ac_compile") 2>conftest.er1
  8489. ac_status=$?
  8490. grep -v '^ *+' conftest.er1 >conftest.err
  8491. rm -f conftest.er1
  8492. cat conftest.err >&5
  8493. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8494. (exit $ac_status); } && {
  8495. test -z "$ac_cxx_werror_flag" ||
  8496. test ! -s conftest.err
  8497. } && test -s conftest.$ac_objext; then
  8498. ac_hi=$ac_mid; break
  8499. else
  8500. $as_echo "$as_me: failed program was:" >&5
  8501. sed 's/^/| /' conftest.$ac_ext >&5
  8502. ac_lo=`expr $ac_mid + 1`
  8503. if test $ac_lo -le $ac_mid; then
  8504. ac_lo= ac_hi=
  8505. break
  8506. fi
  8507. ac_mid=`expr 2 '*' $ac_mid + 1`
  8508. fi
  8509. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8510. done
  8511. else
  8512. $as_echo "$as_me: failed program was:" >&5
  8513. sed 's/^/| /' conftest.$ac_ext >&5
  8514. cat >conftest.$ac_ext <<_ACEOF
  8515. /* confdefs.h. */
  8516. _ACEOF
  8517. cat confdefs.h >>conftest.$ac_ext
  8518. cat >>conftest.$ac_ext <<_ACEOF
  8519. /* end confdefs.h. */
  8520. $ac_includes_default
  8521. int
  8522. main ()
  8523. {
  8524. static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) < 0)];
  8525. test_array [0] = 0
  8526. ;
  8527. return 0;
  8528. }
  8529. _ACEOF
  8530. rm -f conftest.$ac_objext
  8531. if { (ac_try="$ac_compile"
  8532. case "(($ac_try" in
  8533. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8534. *) ac_try_echo=$ac_try;;
  8535. esac
  8536. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8537. $as_echo "$ac_try_echo") >&5
  8538. (eval "$ac_compile") 2>conftest.er1
  8539. ac_status=$?
  8540. grep -v '^ *+' conftest.er1 >conftest.err
  8541. rm -f conftest.er1
  8542. cat conftest.err >&5
  8543. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8544. (exit $ac_status); } && {
  8545. test -z "$ac_cxx_werror_flag" ||
  8546. test ! -s conftest.err
  8547. } && test -s conftest.$ac_objext; then
  8548. ac_hi=-1 ac_mid=-1
  8549. while :; do
  8550. cat >conftest.$ac_ext <<_ACEOF
  8551. /* confdefs.h. */
  8552. _ACEOF
  8553. cat confdefs.h >>conftest.$ac_ext
  8554. cat >>conftest.$ac_ext <<_ACEOF
  8555. /* end confdefs.h. */
  8556. $ac_includes_default
  8557. int
  8558. main ()
  8559. {
  8560. static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) >= $ac_mid)];
  8561. test_array [0] = 0
  8562. ;
  8563. return 0;
  8564. }
  8565. _ACEOF
  8566. rm -f conftest.$ac_objext
  8567. if { (ac_try="$ac_compile"
  8568. case "(($ac_try" in
  8569. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8570. *) ac_try_echo=$ac_try;;
  8571. esac
  8572. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8573. $as_echo "$ac_try_echo") >&5
  8574. (eval "$ac_compile") 2>conftest.er1
  8575. ac_status=$?
  8576. grep -v '^ *+' conftest.er1 >conftest.err
  8577. rm -f conftest.er1
  8578. cat conftest.err >&5
  8579. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8580. (exit $ac_status); } && {
  8581. test -z "$ac_cxx_werror_flag" ||
  8582. test ! -s conftest.err
  8583. } && test -s conftest.$ac_objext; then
  8584. ac_lo=$ac_mid; break
  8585. else
  8586. $as_echo "$as_me: failed program was:" >&5
  8587. sed 's/^/| /' conftest.$ac_ext >&5
  8588. ac_hi=`expr '(' $ac_mid ')' - 1`
  8589. if test $ac_mid -le $ac_hi; then
  8590. ac_lo= ac_hi=
  8591. break
  8592. fi
  8593. ac_mid=`expr 2 '*' $ac_mid`
  8594. fi
  8595. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8596. done
  8597. else
  8598. $as_echo "$as_me: failed program was:" >&5
  8599. sed 's/^/| /' conftest.$ac_ext >&5
  8600. ac_lo= ac_hi=
  8601. fi
  8602. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8603. fi
  8604. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8605. # Binary search between lo and hi bounds.
  8606. while test "x$ac_lo" != "x$ac_hi"; do
  8607. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  8608. cat >conftest.$ac_ext <<_ACEOF
  8609. /* confdefs.h. */
  8610. _ACEOF
  8611. cat confdefs.h >>conftest.$ac_ext
  8612. cat >>conftest.$ac_ext <<_ACEOF
  8613. /* end confdefs.h. */
  8614. $ac_includes_default
  8615. int
  8616. main ()
  8617. {
  8618. static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) <= $ac_mid)];
  8619. test_array [0] = 0
  8620. ;
  8621. return 0;
  8622. }
  8623. _ACEOF
  8624. rm -f conftest.$ac_objext
  8625. if { (ac_try="$ac_compile"
  8626. case "(($ac_try" in
  8627. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8628. *) ac_try_echo=$ac_try;;
  8629. esac
  8630. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8631. $as_echo "$ac_try_echo") >&5
  8632. (eval "$ac_compile") 2>conftest.er1
  8633. ac_status=$?
  8634. grep -v '^ *+' conftest.er1 >conftest.err
  8635. rm -f conftest.er1
  8636. cat conftest.err >&5
  8637. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8638. (exit $ac_status); } && {
  8639. test -z "$ac_cxx_werror_flag" ||
  8640. test ! -s conftest.err
  8641. } && test -s conftest.$ac_objext; then
  8642. ac_hi=$ac_mid
  8643. else
  8644. $as_echo "$as_me: failed program was:" >&5
  8645. sed 's/^/| /' conftest.$ac_ext >&5
  8646. ac_lo=`expr '(' $ac_mid ')' + 1`
  8647. fi
  8648. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8649. done
  8650. case $ac_lo in
  8651. ?*) ac_cv_sizeof_time_t=$ac_lo;;
  8652. '') if test "$ac_cv_type_time_t" = yes; then
  8653. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  8654. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  8655. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (time_t)
  8656. See \`config.log' for more details." >&5
  8657. $as_echo "$as_me: error: cannot compute sizeof (time_t)
  8658. See \`config.log' for more details." >&2;}
  8659. { (exit 77); exit 77; }; }; }
  8660. else
  8661. ac_cv_sizeof_time_t=0
  8662. fi ;;
  8663. esac
  8664. else
  8665. cat >conftest.$ac_ext <<_ACEOF
  8666. /* confdefs.h. */
  8667. _ACEOF
  8668. cat confdefs.h >>conftest.$ac_ext
  8669. cat >>conftest.$ac_ext <<_ACEOF
  8670. /* end confdefs.h. */
  8671. $ac_includes_default
  8672. static long int longval () { return (long int) (sizeof (time_t)); }
  8673. static unsigned long int ulongval () { return (long int) (sizeof (time_t)); }
  8674. #include <stdio.h>
  8675. #include <stdlib.h>
  8676. int
  8677. main ()
  8678. {
  8679. FILE *f = fopen ("conftest.val", "w");
  8680. if (! f)
  8681. return 1;
  8682. if (((long int) (sizeof (time_t))) < 0)
  8683. {
  8684. long int i = longval ();
  8685. if (i != ((long int) (sizeof (time_t))))
  8686. return 1;
  8687. fprintf (f, "%ld", i);
  8688. }
  8689. else
  8690. {
  8691. unsigned long int i = ulongval ();
  8692. if (i != ((long int) (sizeof (time_t))))
  8693. return 1;
  8694. fprintf (f, "%lu", i);
  8695. }
  8696. /* Do not output a trailing newline, as this causes \r\n confusion
  8697. on some platforms. */
  8698. return ferror (f) || fclose (f) != 0;
  8699. ;
  8700. return 0;
  8701. }
  8702. _ACEOF
  8703. rm -f conftest$ac_exeext
  8704. if { (ac_try="$ac_link"
  8705. case "(($ac_try" in
  8706. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8707. *) ac_try_echo=$ac_try;;
  8708. esac
  8709. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8710. $as_echo "$ac_try_echo") >&5
  8711. (eval "$ac_link") 2>&5
  8712. ac_status=$?
  8713. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8714. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8715. { (case "(($ac_try" in
  8716. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8717. *) ac_try_echo=$ac_try;;
  8718. esac
  8719. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8720. $as_echo "$ac_try_echo") >&5
  8721. (eval "$ac_try") 2>&5
  8722. ac_status=$?
  8723. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8724. (exit $ac_status); }; }; then
  8725. ac_cv_sizeof_time_t=`cat conftest.val`
  8726. else
  8727. $as_echo "$as_me: program exited with status $ac_status" >&5
  8728. $as_echo "$as_me: failed program was:" >&5
  8729. sed 's/^/| /' conftest.$ac_ext >&5
  8730. ( exit $ac_status )
  8731. if test "$ac_cv_type_time_t" = yes; then
  8732. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  8733. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  8734. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (time_t)
  8735. See \`config.log' for more details." >&5
  8736. $as_echo "$as_me: error: cannot compute sizeof (time_t)
  8737. See \`config.log' for more details." >&2;}
  8738. { (exit 77); exit 77; }; }; }
  8739. else
  8740. ac_cv_sizeof_time_t=0
  8741. fi
  8742. fi
  8743. rm -rf conftest.dSYM
  8744. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8745. fi
  8746. rm -f conftest.val
  8747. fi
  8748. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
  8749. $as_echo "$ac_cv_sizeof_time_t" >&6; }
  8750. cat >>confdefs.h <<_ACEOF
  8751. #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
  8752. _ACEOF
  8753. { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  8754. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  8755. if test "${ac_cv_struct_tm+set}" = set; then
  8756. $as_echo_n "(cached) " >&6
  8757. else
  8758. cat >conftest.$ac_ext <<_ACEOF
  8759. /* confdefs.h. */
  8760. _ACEOF
  8761. cat confdefs.h >>conftest.$ac_ext
  8762. cat >>conftest.$ac_ext <<_ACEOF
  8763. /* end confdefs.h. */
  8764. #include <sys/types.h>
  8765. #include <time.h>
  8766. int
  8767. main ()
  8768. {
  8769. struct tm tm;
  8770. int *p = &tm.tm_sec;
  8771. return !p;
  8772. ;
  8773. return 0;
  8774. }
  8775. _ACEOF
  8776. rm -f conftest.$ac_objext
  8777. if { (ac_try="$ac_compile"
  8778. case "(($ac_try" in
  8779. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8780. *) ac_try_echo=$ac_try;;
  8781. esac
  8782. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8783. $as_echo "$ac_try_echo") >&5
  8784. (eval "$ac_compile") 2>conftest.er1
  8785. ac_status=$?
  8786. grep -v '^ *+' conftest.er1 >conftest.err
  8787. rm -f conftest.er1
  8788. cat conftest.err >&5
  8789. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8790. (exit $ac_status); } && {
  8791. test -z "$ac_cxx_werror_flag" ||
  8792. test ! -s conftest.err
  8793. } && test -s conftest.$ac_objext; then
  8794. ac_cv_struct_tm=time.h
  8795. else
  8796. $as_echo "$as_me: failed program was:" >&5
  8797. sed 's/^/| /' conftest.$ac_ext >&5
  8798. ac_cv_struct_tm=sys/time.h
  8799. fi
  8800. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8801. fi
  8802. { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  8803. $as_echo "$ac_cv_struct_tm" >&6; }
  8804. if test $ac_cv_struct_tm = sys/time.h; then
  8805. cat >>confdefs.h <<\_ACEOF
  8806. #define TM_IN_SYS_TIME 1
  8807. _ACEOF
  8808. fi
  8809. { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
  8810. $as_echo_n "checking for struct tm.tm_zone... " >&6; }
  8811. if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
  8812. $as_echo_n "(cached) " >&6
  8813. else
  8814. cat >conftest.$ac_ext <<_ACEOF
  8815. /* confdefs.h. */
  8816. _ACEOF
  8817. cat confdefs.h >>conftest.$ac_ext
  8818. cat >>conftest.$ac_ext <<_ACEOF
  8819. /* end confdefs.h. */
  8820. #include <sys/types.h>
  8821. #include <$ac_cv_struct_tm>
  8822. int
  8823. main ()
  8824. {
  8825. static struct tm ac_aggr;
  8826. if (ac_aggr.tm_zone)
  8827. return 0;
  8828. ;
  8829. return 0;
  8830. }
  8831. _ACEOF
  8832. rm -f conftest.$ac_objext
  8833. if { (ac_try="$ac_compile"
  8834. case "(($ac_try" in
  8835. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8836. *) ac_try_echo=$ac_try;;
  8837. esac
  8838. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8839. $as_echo "$ac_try_echo") >&5
  8840. (eval "$ac_compile") 2>conftest.er1
  8841. ac_status=$?
  8842. grep -v '^ *+' conftest.er1 >conftest.err
  8843. rm -f conftest.er1
  8844. cat conftest.err >&5
  8845. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8846. (exit $ac_status); } && {
  8847. test -z "$ac_cxx_werror_flag" ||
  8848. test ! -s conftest.err
  8849. } && test -s conftest.$ac_objext; then
  8850. ac_cv_member_struct_tm_tm_zone=yes
  8851. else
  8852. $as_echo "$as_me: failed program was:" >&5
  8853. sed 's/^/| /' conftest.$ac_ext >&5
  8854. cat >conftest.$ac_ext <<_ACEOF
  8855. /* confdefs.h. */
  8856. _ACEOF
  8857. cat confdefs.h >>conftest.$ac_ext
  8858. cat >>conftest.$ac_ext <<_ACEOF
  8859. /* end confdefs.h. */
  8860. #include <sys/types.h>
  8861. #include <$ac_cv_struct_tm>
  8862. int
  8863. main ()
  8864. {
  8865. static struct tm ac_aggr;
  8866. if (sizeof ac_aggr.tm_zone)
  8867. return 0;
  8868. ;
  8869. return 0;
  8870. }
  8871. _ACEOF
  8872. rm -f conftest.$ac_objext
  8873. if { (ac_try="$ac_compile"
  8874. case "(($ac_try" in
  8875. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8876. *) ac_try_echo=$ac_try;;
  8877. esac
  8878. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8879. $as_echo "$ac_try_echo") >&5
  8880. (eval "$ac_compile") 2>conftest.er1
  8881. ac_status=$?
  8882. grep -v '^ *+' conftest.er1 >conftest.err
  8883. rm -f conftest.er1
  8884. cat conftest.err >&5
  8885. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8886. (exit $ac_status); } && {
  8887. test -z "$ac_cxx_werror_flag" ||
  8888. test ! -s conftest.err
  8889. } && test -s conftest.$ac_objext; then
  8890. ac_cv_member_struct_tm_tm_zone=yes
  8891. else
  8892. $as_echo "$as_me: failed program was:" >&5
  8893. sed 's/^/| /' conftest.$ac_ext >&5
  8894. ac_cv_member_struct_tm_tm_zone=no
  8895. fi
  8896. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8897. fi
  8898. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8899. fi
  8900. { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
  8901. $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
  8902. if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
  8903. cat >>confdefs.h <<_ACEOF
  8904. #define HAVE_STRUCT_TM_TM_ZONE 1
  8905. _ACEOF
  8906. fi
  8907. if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
  8908. cat >>confdefs.h <<\_ACEOF
  8909. #define HAVE_TM_ZONE 1
  8910. _ACEOF
  8911. else
  8912. { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
  8913. $as_echo_n "checking whether tzname is declared... " >&6; }
  8914. if test "${ac_cv_have_decl_tzname+set}" = set; then
  8915. $as_echo_n "(cached) " >&6
  8916. else
  8917. cat >conftest.$ac_ext <<_ACEOF
  8918. /* confdefs.h. */
  8919. _ACEOF
  8920. cat confdefs.h >>conftest.$ac_ext
  8921. cat >>conftest.$ac_ext <<_ACEOF
  8922. /* end confdefs.h. */
  8923. #include <time.h>
  8924. int
  8925. main ()
  8926. {
  8927. #ifndef tzname
  8928. (void) tzname;
  8929. #endif
  8930. ;
  8931. return 0;
  8932. }
  8933. _ACEOF
  8934. rm -f conftest.$ac_objext
  8935. if { (ac_try="$ac_compile"
  8936. case "(($ac_try" in
  8937. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8938. *) ac_try_echo=$ac_try;;
  8939. esac
  8940. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8941. $as_echo "$ac_try_echo") >&5
  8942. (eval "$ac_compile") 2>conftest.er1
  8943. ac_status=$?
  8944. grep -v '^ *+' conftest.er1 >conftest.err
  8945. rm -f conftest.er1
  8946. cat conftest.err >&5
  8947. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8948. (exit $ac_status); } && {
  8949. test -z "$ac_cxx_werror_flag" ||
  8950. test ! -s conftest.err
  8951. } && test -s conftest.$ac_objext; then
  8952. ac_cv_have_decl_tzname=yes
  8953. else
  8954. $as_echo "$as_me: failed program was:" >&5
  8955. sed 's/^/| /' conftest.$ac_ext >&5
  8956. ac_cv_have_decl_tzname=no
  8957. fi
  8958. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8959. fi
  8960. { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
  8961. $as_echo "$ac_cv_have_decl_tzname" >&6; }
  8962. if test "x$ac_cv_have_decl_tzname" = x""yes; then
  8963. cat >>confdefs.h <<_ACEOF
  8964. #define HAVE_DECL_TZNAME 1
  8965. _ACEOF
  8966. else
  8967. cat >>confdefs.h <<_ACEOF
  8968. #define HAVE_DECL_TZNAME 0
  8969. _ACEOF
  8970. fi
  8971. { $as_echo "$as_me:$LINENO: checking for tzname" >&5
  8972. $as_echo_n "checking for tzname... " >&6; }
  8973. if test "${ac_cv_var_tzname+set}" = set; then
  8974. $as_echo_n "(cached) " >&6
  8975. else
  8976. cat >conftest.$ac_ext <<_ACEOF
  8977. /* confdefs.h. */
  8978. _ACEOF
  8979. cat confdefs.h >>conftest.$ac_ext
  8980. cat >>conftest.$ac_ext <<_ACEOF
  8981. /* end confdefs.h. */
  8982. #include <time.h>
  8983. #if !HAVE_DECL_TZNAME
  8984. extern char *tzname[];
  8985. #endif
  8986. int
  8987. main ()
  8988. {
  8989. return tzname[0][0];
  8990. ;
  8991. return 0;
  8992. }
  8993. _ACEOF
  8994. rm -f conftest.$ac_objext conftest$ac_exeext
  8995. if { (ac_try="$ac_link"
  8996. case "(($ac_try" in
  8997. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8998. *) ac_try_echo=$ac_try;;
  8999. esac
  9000. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9001. $as_echo "$ac_try_echo") >&5
  9002. (eval "$ac_link") 2>conftest.er1
  9003. ac_status=$?
  9004. grep -v '^ *+' conftest.er1 >conftest.err
  9005. rm -f conftest.er1
  9006. cat conftest.err >&5
  9007. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9008. (exit $ac_status); } && {
  9009. test -z "$ac_cxx_werror_flag" ||
  9010. test ! -s conftest.err
  9011. } && test -s conftest$ac_exeext && {
  9012. test "$cross_compiling" = yes ||
  9013. $as_test_x conftest$ac_exeext
  9014. }; then
  9015. ac_cv_var_tzname=yes
  9016. else
  9017. $as_echo "$as_me: failed program was:" >&5
  9018. sed 's/^/| /' conftest.$ac_ext >&5
  9019. ac_cv_var_tzname=no
  9020. fi
  9021. rm -rf conftest.dSYM
  9022. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9023. conftest$ac_exeext conftest.$ac_ext
  9024. fi
  9025. { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
  9026. $as_echo "$ac_cv_var_tzname" >&6; }
  9027. if test $ac_cv_var_tzname = yes; then
  9028. cat >>confdefs.h <<\_ACEOF
  9029. #define HAVE_TZNAME 1
  9030. _ACEOF
  9031. fi
  9032. fi
  9033. { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  9034. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  9035. if test "${ac_cv_struct_tm+set}" = set; then
  9036. $as_echo_n "(cached) " >&6
  9037. else
  9038. cat >conftest.$ac_ext <<_ACEOF
  9039. /* confdefs.h. */
  9040. _ACEOF
  9041. cat confdefs.h >>conftest.$ac_ext
  9042. cat >>conftest.$ac_ext <<_ACEOF
  9043. /* end confdefs.h. */
  9044. #include <sys/types.h>
  9045. #include <time.h>
  9046. int
  9047. main ()
  9048. {
  9049. struct tm tm;
  9050. int *p = &tm.tm_sec;
  9051. return !p;
  9052. ;
  9053. return 0;
  9054. }
  9055. _ACEOF
  9056. rm -f conftest.$ac_objext
  9057. if { (ac_try="$ac_compile"
  9058. case "(($ac_try" in
  9059. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9060. *) ac_try_echo=$ac_try;;
  9061. esac
  9062. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9063. $as_echo "$ac_try_echo") >&5
  9064. (eval "$ac_compile") 2>conftest.er1
  9065. ac_status=$?
  9066. grep -v '^ *+' conftest.er1 >conftest.err
  9067. rm -f conftest.er1
  9068. cat conftest.err >&5
  9069. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9070. (exit $ac_status); } && {
  9071. test -z "$ac_cxx_werror_flag" ||
  9072. test ! -s conftest.err
  9073. } && test -s conftest.$ac_objext; then
  9074. ac_cv_struct_tm=time.h
  9075. else
  9076. $as_echo "$as_me: failed program was:" >&5
  9077. sed 's/^/| /' conftest.$ac_ext >&5
  9078. ac_cv_struct_tm=sys/time.h
  9079. fi
  9080. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9081. fi
  9082. { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  9083. $as_echo "$ac_cv_struct_tm" >&6; }
  9084. if test $ac_cv_struct_tm = sys/time.h; then
  9085. cat >>confdefs.h <<\_ACEOF
  9086. #define TM_IN_SYS_TIME 1
  9087. _ACEOF
  9088. fi
  9089. # Checks for library functions
  9090. for ac_header in vfork.h
  9091. do
  9092. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9093. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9094. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  9095. $as_echo_n "checking for $ac_header... " >&6; }
  9096. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9097. $as_echo_n "(cached) " >&6
  9098. fi
  9099. ac_res=`eval 'as_val=${'$as_ac_Header'}
  9100. $as_echo "$as_val"'`
  9101. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  9102. $as_echo "$ac_res" >&6; }
  9103. else
  9104. # Is the header compilable?
  9105. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9106. $as_echo_n "checking $ac_header usability... " >&6; }
  9107. cat >conftest.$ac_ext <<_ACEOF
  9108. /* confdefs.h. */
  9109. _ACEOF
  9110. cat confdefs.h >>conftest.$ac_ext
  9111. cat >>conftest.$ac_ext <<_ACEOF
  9112. /* end confdefs.h. */
  9113. $ac_includes_default
  9114. #include <$ac_header>
  9115. _ACEOF
  9116. rm -f conftest.$ac_objext
  9117. if { (ac_try="$ac_compile"
  9118. case "(($ac_try" in
  9119. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9120. *) ac_try_echo=$ac_try;;
  9121. esac
  9122. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9123. $as_echo "$ac_try_echo") >&5
  9124. (eval "$ac_compile") 2>conftest.er1
  9125. ac_status=$?
  9126. grep -v '^ *+' conftest.er1 >conftest.err
  9127. rm -f conftest.er1
  9128. cat conftest.err >&5
  9129. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9130. (exit $ac_status); } && {
  9131. test -z "$ac_cxx_werror_flag" ||
  9132. test ! -s conftest.err
  9133. } && test -s conftest.$ac_objext; then
  9134. ac_header_compiler=yes
  9135. else
  9136. $as_echo "$as_me: failed program was:" >&5
  9137. sed 's/^/| /' conftest.$ac_ext >&5
  9138. ac_header_compiler=no
  9139. fi
  9140. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9141. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9142. $as_echo "$ac_header_compiler" >&6; }
  9143. # Is the header present?
  9144. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9145. $as_echo_n "checking $ac_header presence... " >&6; }
  9146. cat >conftest.$ac_ext <<_ACEOF
  9147. /* confdefs.h. */
  9148. _ACEOF
  9149. cat confdefs.h >>conftest.$ac_ext
  9150. cat >>conftest.$ac_ext <<_ACEOF
  9151. /* end confdefs.h. */
  9152. #include <$ac_header>
  9153. _ACEOF
  9154. if { (ac_try="$ac_cpp conftest.$ac_ext"
  9155. case "(($ac_try" in
  9156. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9157. *) ac_try_echo=$ac_try;;
  9158. esac
  9159. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9160. $as_echo "$ac_try_echo") >&5
  9161. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9162. ac_status=$?
  9163. grep -v '^ *+' conftest.er1 >conftest.err
  9164. rm -f conftest.er1
  9165. cat conftest.err >&5
  9166. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9167. (exit $ac_status); } >/dev/null && {
  9168. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  9169. test ! -s conftest.err
  9170. }; then
  9171. ac_header_preproc=yes
  9172. else
  9173. $as_echo "$as_me: failed program was:" >&5
  9174. sed 's/^/| /' conftest.$ac_ext >&5
  9175. ac_header_preproc=no
  9176. fi
  9177. rm -f conftest.err conftest.$ac_ext
  9178. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9179. $as_echo "$ac_header_preproc" >&6; }
  9180. # So? What about this header?
  9181. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  9182. yes:no: )
  9183. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9184. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9185. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9186. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9187. ac_header_preproc=yes
  9188. ;;
  9189. no:yes:* )
  9190. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9191. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9192. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9193. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9194. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9195. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9196. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9197. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9198. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9199. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9200. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9201. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9202. ;;
  9203. esac
  9204. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  9205. $as_echo_n "checking for $ac_header... " >&6; }
  9206. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9207. $as_echo_n "(cached) " >&6
  9208. else
  9209. eval "$as_ac_Header=\$ac_header_preproc"
  9210. fi
  9211. ac_res=`eval 'as_val=${'$as_ac_Header'}
  9212. $as_echo "$as_val"'`
  9213. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  9214. $as_echo "$ac_res" >&6; }
  9215. fi
  9216. as_val=`eval 'as_val=${'$as_ac_Header'}
  9217. $as_echo "$as_val"'`
  9218. if test "x$as_val" = x""yes; then
  9219. cat >>confdefs.h <<_ACEOF
  9220. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9221. _ACEOF
  9222. fi
  9223. done
  9224. for ac_func in fork vfork
  9225. do
  9226. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9227. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  9228. $as_echo_n "checking for $ac_func... " >&6; }
  9229. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  9230. $as_echo_n "(cached) " >&6
  9231. else
  9232. cat >conftest.$ac_ext <<_ACEOF
  9233. /* confdefs.h. */
  9234. _ACEOF
  9235. cat confdefs.h >>conftest.$ac_ext
  9236. cat >>conftest.$ac_ext <<_ACEOF
  9237. /* end confdefs.h. */
  9238. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9239. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9240. #define $ac_func innocuous_$ac_func
  9241. /* System header to define __stub macros and hopefully few prototypes,
  9242. which can conflict with char $ac_func (); below.
  9243. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9244. <limits.h> exists even on freestanding compilers. */
  9245. #ifdef __STDC__
  9246. # include <limits.h>
  9247. #else
  9248. # include <assert.h>
  9249. #endif
  9250. #undef $ac_func
  9251. /* Override any GCC internal prototype to avoid an error.
  9252. Use char because int might match the return type of a GCC
  9253. builtin and then its argument prototype would still apply. */
  9254. #ifdef __cplusplus
  9255. extern "C"
  9256. #endif
  9257. char $ac_func ();
  9258. /* The GNU C library defines this for functions which it implements
  9259. to always fail with ENOSYS. Some functions are actually named
  9260. something starting with __ and the normal name is an alias. */
  9261. #if defined __stub_$ac_func || defined __stub___$ac_func
  9262. choke me
  9263. #endif
  9264. int
  9265. main ()
  9266. {
  9267. return $ac_func ();
  9268. ;
  9269. return 0;
  9270. }
  9271. _ACEOF
  9272. rm -f conftest.$ac_objext conftest$ac_exeext
  9273. if { (ac_try="$ac_link"
  9274. case "(($ac_try" in
  9275. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9276. *) ac_try_echo=$ac_try;;
  9277. esac
  9278. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9279. $as_echo "$ac_try_echo") >&5
  9280. (eval "$ac_link") 2>conftest.er1
  9281. ac_status=$?
  9282. grep -v '^ *+' conftest.er1 >conftest.err
  9283. rm -f conftest.er1
  9284. cat conftest.err >&5
  9285. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9286. (exit $ac_status); } && {
  9287. test -z "$ac_cxx_werror_flag" ||
  9288. test ! -s conftest.err
  9289. } && test -s conftest$ac_exeext && {
  9290. test "$cross_compiling" = yes ||
  9291. $as_test_x conftest$ac_exeext
  9292. }; then
  9293. eval "$as_ac_var=yes"
  9294. else
  9295. $as_echo "$as_me: failed program was:" >&5
  9296. sed 's/^/| /' conftest.$ac_ext >&5
  9297. eval "$as_ac_var=no"
  9298. fi
  9299. rm -rf conftest.dSYM
  9300. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9301. conftest$ac_exeext conftest.$ac_ext
  9302. fi
  9303. ac_res=`eval 'as_val=${'$as_ac_var'}
  9304. $as_echo "$as_val"'`
  9305. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  9306. $as_echo "$ac_res" >&6; }
  9307. as_val=`eval 'as_val=${'$as_ac_var'}
  9308. $as_echo "$as_val"'`
  9309. if test "x$as_val" = x""yes; then
  9310. cat >>confdefs.h <<_ACEOF
  9311. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9312. _ACEOF
  9313. fi
  9314. done
  9315. if test "x$ac_cv_func_fork" = xyes; then
  9316. { $as_echo "$as_me:$LINENO: checking for working fork" >&5
  9317. $as_echo_n "checking for working fork... " >&6; }
  9318. if test "${ac_cv_func_fork_works+set}" = set; then
  9319. $as_echo_n "(cached) " >&6
  9320. else
  9321. if test "$cross_compiling" = yes; then
  9322. ac_cv_func_fork_works=cross
  9323. else
  9324. cat >conftest.$ac_ext <<_ACEOF
  9325. /* confdefs.h. */
  9326. _ACEOF
  9327. cat confdefs.h >>conftest.$ac_ext
  9328. cat >>conftest.$ac_ext <<_ACEOF
  9329. /* end confdefs.h. */
  9330. $ac_includes_default
  9331. int
  9332. main ()
  9333. {
  9334. /* By Ruediger Kuhlmann. */
  9335. return fork () < 0;
  9336. ;
  9337. return 0;
  9338. }
  9339. _ACEOF
  9340. rm -f conftest$ac_exeext
  9341. if { (ac_try="$ac_link"
  9342. case "(($ac_try" in
  9343. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9344. *) ac_try_echo=$ac_try;;
  9345. esac
  9346. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9347. $as_echo "$ac_try_echo") >&5
  9348. (eval "$ac_link") 2>&5
  9349. ac_status=$?
  9350. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9351. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9352. { (case "(($ac_try" in
  9353. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9354. *) ac_try_echo=$ac_try;;
  9355. esac
  9356. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9357. $as_echo "$ac_try_echo") >&5
  9358. (eval "$ac_try") 2>&5
  9359. ac_status=$?
  9360. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9361. (exit $ac_status); }; }; then
  9362. ac_cv_func_fork_works=yes
  9363. else
  9364. $as_echo "$as_me: program exited with status $ac_status" >&5
  9365. $as_echo "$as_me: failed program was:" >&5
  9366. sed 's/^/| /' conftest.$ac_ext >&5
  9367. ( exit $ac_status )
  9368. ac_cv_func_fork_works=no
  9369. fi
  9370. rm -rf conftest.dSYM
  9371. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9372. fi
  9373. fi
  9374. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
  9375. $as_echo "$ac_cv_func_fork_works" >&6; }
  9376. else
  9377. ac_cv_func_fork_works=$ac_cv_func_fork
  9378. fi
  9379. if test "x$ac_cv_func_fork_works" = xcross; then
  9380. case $host in
  9381. *-*-amigaos* | *-*-msdosdjgpp*)
  9382. # Override, as these systems have only a dummy fork() stub
  9383. ac_cv_func_fork_works=no
  9384. ;;
  9385. *)
  9386. ac_cv_func_fork_works=yes
  9387. ;;
  9388. esac
  9389. { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  9390. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  9391. fi
  9392. ac_cv_func_vfork_works=$ac_cv_func_vfork
  9393. if test "x$ac_cv_func_vfork" = xyes; then
  9394. { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
  9395. $as_echo_n "checking for working vfork... " >&6; }
  9396. if test "${ac_cv_func_vfork_works+set}" = set; then
  9397. $as_echo_n "(cached) " >&6
  9398. else
  9399. if test "$cross_compiling" = yes; then
  9400. ac_cv_func_vfork_works=cross
  9401. else
  9402. cat >conftest.$ac_ext <<_ACEOF
  9403. /* confdefs.h. */
  9404. _ACEOF
  9405. cat confdefs.h >>conftest.$ac_ext
  9406. cat >>conftest.$ac_ext <<_ACEOF
  9407. /* end confdefs.h. */
  9408. /* Thanks to Paul Eggert for this test. */
  9409. $ac_includes_default
  9410. #include <sys/wait.h>
  9411. #ifdef HAVE_VFORK_H
  9412. # include <vfork.h>
  9413. #endif
  9414. /* On some sparc systems, changes by the child to local and incoming
  9415. argument registers are propagated back to the parent. The compiler
  9416. is told about this with #include <vfork.h>, but some compilers
  9417. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  9418. static variable whose address is put into a register that is
  9419. clobbered by the vfork. */
  9420. static void
  9421. #ifdef __cplusplus
  9422. sparc_address_test (int arg)
  9423. # else
  9424. sparc_address_test (arg) int arg;
  9425. #endif
  9426. {
  9427. static pid_t child;
  9428. if (!child) {
  9429. child = vfork ();
  9430. if (child < 0) {
  9431. perror ("vfork");
  9432. _exit(2);
  9433. }
  9434. if (!child) {
  9435. arg = getpid();
  9436. write(-1, "", 0);
  9437. _exit (arg);
  9438. }
  9439. }
  9440. }
  9441. int
  9442. main ()
  9443. {
  9444. pid_t parent = getpid ();
  9445. pid_t child;
  9446. sparc_address_test (0);
  9447. child = vfork ();
  9448. if (child == 0) {
  9449. /* Here is another test for sparc vfork register problems. This
  9450. test uses lots of local variables, at least as many local
  9451. variables as main has allocated so far including compiler
  9452. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  9453. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  9454. reuse the register of parent for one of the local variables,
  9455. since it will think that parent can't possibly be used any more
  9456. in this routine. Assigning to the local variable will thus
  9457. munge parent in the parent process. */
  9458. pid_t
  9459. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  9460. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  9461. /* Convince the compiler that p..p7 are live; otherwise, it might
  9462. use the same hardware register for all 8 local variables. */
  9463. if (p != p1 || p != p2 || p != p3 || p != p4
  9464. || p != p5 || p != p6 || p != p7)
  9465. _exit(1);
  9466. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  9467. from child file descriptors. If the child closes a descriptor
  9468. before it execs or exits, this munges the parent's descriptor
  9469. as well. Test for this by closing stdout in the child. */
  9470. _exit(close(fileno(stdout)) != 0);
  9471. } else {
  9472. int status;
  9473. struct stat st;
  9474. while (wait(&status) != child)
  9475. ;
  9476. return (
  9477. /* Was there some problem with vforking? */
  9478. child < 0
  9479. /* Did the child fail? (This shouldn't happen.) */
  9480. || status
  9481. /* Did the vfork/compiler bug occur? */
  9482. || parent != getpid()
  9483. /* Did the file descriptor bug occur? */
  9484. || fstat(fileno(stdout), &st) != 0
  9485. );
  9486. }
  9487. }
  9488. _ACEOF
  9489. rm -f conftest$ac_exeext
  9490. if { (ac_try="$ac_link"
  9491. case "(($ac_try" in
  9492. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9493. *) ac_try_echo=$ac_try;;
  9494. esac
  9495. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9496. $as_echo "$ac_try_echo") >&5
  9497. (eval "$ac_link") 2>&5
  9498. ac_status=$?
  9499. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9500. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9501. { (case "(($ac_try" in
  9502. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9503. *) ac_try_echo=$ac_try;;
  9504. esac
  9505. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9506. $as_echo "$ac_try_echo") >&5
  9507. (eval "$ac_try") 2>&5
  9508. ac_status=$?
  9509. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9510. (exit $ac_status); }; }; then
  9511. ac_cv_func_vfork_works=yes
  9512. else
  9513. $as_echo "$as_me: program exited with status $ac_status" >&5
  9514. $as_echo "$as_me: failed program was:" >&5
  9515. sed 's/^/| /' conftest.$ac_ext >&5
  9516. ( exit $ac_status )
  9517. ac_cv_func_vfork_works=no
  9518. fi
  9519. rm -rf conftest.dSYM
  9520. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9521. fi
  9522. fi
  9523. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
  9524. $as_echo "$ac_cv_func_vfork_works" >&6; }
  9525. fi;
  9526. if test "x$ac_cv_func_fork_works" = xcross; then
  9527. ac_cv_func_vfork_works=$ac_cv_func_vfork
  9528. { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  9529. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  9530. fi
  9531. if test "x$ac_cv_func_vfork_works" = xyes; then
  9532. cat >>confdefs.h <<\_ACEOF
  9533. #define HAVE_WORKING_VFORK 1
  9534. _ACEOF
  9535. else
  9536. cat >>confdefs.h <<\_ACEOF
  9537. #define vfork fork
  9538. _ACEOF
  9539. fi
  9540. if test "x$ac_cv_func_fork_works" = xyes; then
  9541. cat >>confdefs.h <<\_ACEOF
  9542. #define HAVE_WORKING_FORK 1
  9543. _ACEOF
  9544. fi
  9545. { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  9546. $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
  9547. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  9548. $as_echo_n "(cached) " >&6
  9549. else
  9550. rm -f conftest.sym conftest.file
  9551. echo >conftest.file
  9552. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  9553. if test "$cross_compiling" = yes; then
  9554. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9555. else
  9556. cat >conftest.$ac_ext <<_ACEOF
  9557. /* confdefs.h. */
  9558. _ACEOF
  9559. cat confdefs.h >>conftest.$ac_ext
  9560. cat >>conftest.$ac_ext <<_ACEOF
  9561. /* end confdefs.h. */
  9562. $ac_includes_default
  9563. int
  9564. main ()
  9565. {
  9566. struct stat sbuf;
  9567. /* Linux will dereference the symlink and fail.
  9568. That is better in the sense that it means we will not
  9569. have to compile and use the lstat wrapper. */
  9570. return lstat ("conftest.sym/", &sbuf) == 0;
  9571. ;
  9572. return 0;
  9573. }
  9574. _ACEOF
  9575. rm -f conftest$ac_exeext
  9576. if { (ac_try="$ac_link"
  9577. case "(($ac_try" in
  9578. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9579. *) ac_try_echo=$ac_try;;
  9580. esac
  9581. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9582. $as_echo "$ac_try_echo") >&5
  9583. (eval "$ac_link") 2>&5
  9584. ac_status=$?
  9585. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9586. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9587. { (case "(($ac_try" in
  9588. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9589. *) ac_try_echo=$ac_try;;
  9590. esac
  9591. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9592. $as_echo "$ac_try_echo") >&5
  9593. (eval "$ac_try") 2>&5
  9594. ac_status=$?
  9595. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9596. (exit $ac_status); }; }; then
  9597. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  9598. else
  9599. $as_echo "$as_me: program exited with status $ac_status" >&5
  9600. $as_echo "$as_me: failed program was:" >&5
  9601. sed 's/^/| /' conftest.$ac_ext >&5
  9602. ( exit $ac_status )
  9603. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9604. fi
  9605. rm -rf conftest.dSYM
  9606. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9607. fi
  9608. else
  9609. # If the `ln -s' command failed, then we probably don't even
  9610. # have an lstat function.
  9611. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9612. fi
  9613. rm -f conftest.sym conftest.file
  9614. fi
  9615. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  9616. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  9617. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  9618. cat >>confdefs.h <<_ACEOF
  9619. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  9620. _ACEOF
  9621. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  9622. case " $LIBOBJS " in
  9623. *" lstat.$ac_objext "* ) ;;
  9624. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  9625. ;;
  9626. esac
  9627. fi
  9628. { $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
  9629. $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
  9630. if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
  9631. $as_echo_n "(cached) " >&6
  9632. else
  9633. if test "$cross_compiling" = yes; then
  9634. ac_cv_func_lstat_empty_string_bug=yes
  9635. else
  9636. cat >conftest.$ac_ext <<_ACEOF
  9637. /* confdefs.h. */
  9638. _ACEOF
  9639. cat confdefs.h >>conftest.$ac_ext
  9640. cat >>conftest.$ac_ext <<_ACEOF
  9641. /* end confdefs.h. */
  9642. $ac_includes_default
  9643. int
  9644. main ()
  9645. {
  9646. struct stat sbuf;
  9647. return lstat ("", &sbuf) == 0;
  9648. ;
  9649. return 0;
  9650. }
  9651. _ACEOF
  9652. rm -f conftest$ac_exeext
  9653. if { (ac_try="$ac_link"
  9654. case "(($ac_try" in
  9655. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9656. *) ac_try_echo=$ac_try;;
  9657. esac
  9658. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9659. $as_echo "$ac_try_echo") >&5
  9660. (eval "$ac_link") 2>&5
  9661. ac_status=$?
  9662. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9663. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9664. { (case "(($ac_try" in
  9665. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9666. *) ac_try_echo=$ac_try;;
  9667. esac
  9668. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9669. $as_echo "$ac_try_echo") >&5
  9670. (eval "$ac_try") 2>&5
  9671. ac_status=$?
  9672. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9673. (exit $ac_status); }; }; then
  9674. ac_cv_func_lstat_empty_string_bug=no
  9675. else
  9676. $as_echo "$as_me: program exited with status $ac_status" >&5
  9677. $as_echo "$as_me: failed program was:" >&5
  9678. sed 's/^/| /' conftest.$ac_ext >&5
  9679. ( exit $ac_status )
  9680. ac_cv_func_lstat_empty_string_bug=yes
  9681. fi
  9682. rm -rf conftest.dSYM
  9683. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9684. fi
  9685. fi
  9686. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
  9687. $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
  9688. if test $ac_cv_func_lstat_empty_string_bug = yes; then
  9689. case " $LIBOBJS " in
  9690. *" lstat.$ac_objext "* ) ;;
  9691. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  9692. ;;
  9693. esac
  9694. cat >>confdefs.h <<_ACEOF
  9695. #define HAVE_LSTAT_EMPTY_STRING_BUG 1
  9696. _ACEOF
  9697. fi
  9698. { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  9699. $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
  9700. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  9701. $as_echo_n "(cached) " >&6
  9702. else
  9703. rm -f conftest.sym conftest.file
  9704. echo >conftest.file
  9705. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  9706. if test "$cross_compiling" = yes; then
  9707. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9708. else
  9709. cat >conftest.$ac_ext <<_ACEOF
  9710. /* confdefs.h. */
  9711. _ACEOF
  9712. cat confdefs.h >>conftest.$ac_ext
  9713. cat >>conftest.$ac_ext <<_ACEOF
  9714. /* end confdefs.h. */
  9715. $ac_includes_default
  9716. int
  9717. main ()
  9718. {
  9719. struct stat sbuf;
  9720. /* Linux will dereference the symlink and fail.
  9721. That is better in the sense that it means we will not
  9722. have to compile and use the lstat wrapper. */
  9723. return lstat ("conftest.sym/", &sbuf) == 0;
  9724. ;
  9725. return 0;
  9726. }
  9727. _ACEOF
  9728. rm -f conftest$ac_exeext
  9729. if { (ac_try="$ac_link"
  9730. case "(($ac_try" in
  9731. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9732. *) ac_try_echo=$ac_try;;
  9733. esac
  9734. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9735. $as_echo "$ac_try_echo") >&5
  9736. (eval "$ac_link") 2>&5
  9737. ac_status=$?
  9738. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9739. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9740. { (case "(($ac_try" in
  9741. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9742. *) ac_try_echo=$ac_try;;
  9743. esac
  9744. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9745. $as_echo "$ac_try_echo") >&5
  9746. (eval "$ac_try") 2>&5
  9747. ac_status=$?
  9748. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9749. (exit $ac_status); }; }; then
  9750. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  9751. else
  9752. $as_echo "$as_me: program exited with status $ac_status" >&5
  9753. $as_echo "$as_me: failed program was:" >&5
  9754. sed 's/^/| /' conftest.$ac_ext >&5
  9755. ( exit $ac_status )
  9756. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9757. fi
  9758. rm -rf conftest.dSYM
  9759. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9760. fi
  9761. else
  9762. # If the `ln -s' command failed, then we probably don't even
  9763. # have an lstat function.
  9764. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9765. fi
  9766. rm -f conftest.sym conftest.file
  9767. fi
  9768. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  9769. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  9770. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  9771. cat >>confdefs.h <<_ACEOF
  9772. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  9773. _ACEOF
  9774. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  9775. case " $LIBOBJS " in
  9776. *" lstat.$ac_objext "* ) ;;
  9777. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  9778. ;;
  9779. esac
  9780. fi
  9781. for ac_header in stdlib.h
  9782. do
  9783. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9784. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9785. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  9786. $as_echo_n "checking for $ac_header... " >&6; }
  9787. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9788. $as_echo_n "(cached) " >&6
  9789. fi
  9790. ac_res=`eval 'as_val=${'$as_ac_Header'}
  9791. $as_echo "$as_val"'`
  9792. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  9793. $as_echo "$ac_res" >&6; }
  9794. else
  9795. # Is the header compilable?
  9796. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9797. $as_echo_n "checking $ac_header usability... " >&6; }
  9798. cat >conftest.$ac_ext <<_ACEOF
  9799. /* confdefs.h. */
  9800. _ACEOF
  9801. cat confdefs.h >>conftest.$ac_ext
  9802. cat >>conftest.$ac_ext <<_ACEOF
  9803. /* end confdefs.h. */
  9804. $ac_includes_default
  9805. #include <$ac_header>
  9806. _ACEOF
  9807. rm -f conftest.$ac_objext
  9808. if { (ac_try="$ac_compile"
  9809. case "(($ac_try" in
  9810. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9811. *) ac_try_echo=$ac_try;;
  9812. esac
  9813. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9814. $as_echo "$ac_try_echo") >&5
  9815. (eval "$ac_compile") 2>conftest.er1
  9816. ac_status=$?
  9817. grep -v '^ *+' conftest.er1 >conftest.err
  9818. rm -f conftest.er1
  9819. cat conftest.err >&5
  9820. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9821. (exit $ac_status); } && {
  9822. test -z "$ac_cxx_werror_flag" ||
  9823. test ! -s conftest.err
  9824. } && test -s conftest.$ac_objext; then
  9825. ac_header_compiler=yes
  9826. else
  9827. $as_echo "$as_me: failed program was:" >&5
  9828. sed 's/^/| /' conftest.$ac_ext >&5
  9829. ac_header_compiler=no
  9830. fi
  9831. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9832. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9833. $as_echo "$ac_header_compiler" >&6; }
  9834. # Is the header present?
  9835. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9836. $as_echo_n "checking $ac_header presence... " >&6; }
  9837. cat >conftest.$ac_ext <<_ACEOF
  9838. /* confdefs.h. */
  9839. _ACEOF
  9840. cat confdefs.h >>conftest.$ac_ext
  9841. cat >>conftest.$ac_ext <<_ACEOF
  9842. /* end confdefs.h. */
  9843. #include <$ac_header>
  9844. _ACEOF
  9845. if { (ac_try="$ac_cpp conftest.$ac_ext"
  9846. case "(($ac_try" in
  9847. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9848. *) ac_try_echo=$ac_try;;
  9849. esac
  9850. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9851. $as_echo "$ac_try_echo") >&5
  9852. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9853. ac_status=$?
  9854. grep -v '^ *+' conftest.er1 >conftest.err
  9855. rm -f conftest.er1
  9856. cat conftest.err >&5
  9857. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9858. (exit $ac_status); } >/dev/null && {
  9859. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  9860. test ! -s conftest.err
  9861. }; then
  9862. ac_header_preproc=yes
  9863. else
  9864. $as_echo "$as_me: failed program was:" >&5
  9865. sed 's/^/| /' conftest.$ac_ext >&5
  9866. ac_header_preproc=no
  9867. fi
  9868. rm -f conftest.err conftest.$ac_ext
  9869. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9870. $as_echo "$ac_header_preproc" >&6; }
  9871. # So? What about this header?
  9872. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  9873. yes:no: )
  9874. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9875. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9876. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9877. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9878. ac_header_preproc=yes
  9879. ;;
  9880. no:yes:* )
  9881. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9882. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9883. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9884. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9885. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9886. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9887. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9888. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9889. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9890. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9891. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9892. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9893. ;;
  9894. esac
  9895. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  9896. $as_echo_n "checking for $ac_header... " >&6; }
  9897. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9898. $as_echo_n "(cached) " >&6
  9899. else
  9900. eval "$as_ac_Header=\$ac_header_preproc"
  9901. fi
  9902. ac_res=`eval 'as_val=${'$as_ac_Header'}
  9903. $as_echo "$as_val"'`
  9904. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  9905. $as_echo "$ac_res" >&6; }
  9906. fi
  9907. as_val=`eval 'as_val=${'$as_ac_Header'}
  9908. $as_echo "$as_val"'`
  9909. if test "x$as_val" = x""yes; then
  9910. cat >>confdefs.h <<_ACEOF
  9911. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9912. _ACEOF
  9913. fi
  9914. done
  9915. { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  9916. $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
  9917. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  9918. $as_echo_n "(cached) " >&6
  9919. else
  9920. if test "$cross_compiling" = yes; then
  9921. ac_cv_func_malloc_0_nonnull=no
  9922. else
  9923. cat >conftest.$ac_ext <<_ACEOF
  9924. /* confdefs.h. */
  9925. _ACEOF
  9926. cat confdefs.h >>conftest.$ac_ext
  9927. cat >>conftest.$ac_ext <<_ACEOF
  9928. /* end confdefs.h. */
  9929. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  9930. # include <stdlib.h>
  9931. #else
  9932. char *malloc ();
  9933. #endif
  9934. int
  9935. main ()
  9936. {
  9937. return ! malloc (0);
  9938. ;
  9939. return 0;
  9940. }
  9941. _ACEOF
  9942. rm -f conftest$ac_exeext
  9943. if { (ac_try="$ac_link"
  9944. case "(($ac_try" in
  9945. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9946. *) ac_try_echo=$ac_try;;
  9947. esac
  9948. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9949. $as_echo "$ac_try_echo") >&5
  9950. (eval "$ac_link") 2>&5
  9951. ac_status=$?
  9952. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9953. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9954. { (case "(($ac_try" in
  9955. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9956. *) ac_try_echo=$ac_try;;
  9957. esac
  9958. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9959. $as_echo "$ac_try_echo") >&5
  9960. (eval "$ac_try") 2>&5
  9961. ac_status=$?
  9962. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9963. (exit $ac_status); }; }; then
  9964. ac_cv_func_malloc_0_nonnull=yes
  9965. else
  9966. $as_echo "$as_me: program exited with status $ac_status" >&5
  9967. $as_echo "$as_me: failed program was:" >&5
  9968. sed 's/^/| /' conftest.$ac_ext >&5
  9969. ( exit $ac_status )
  9970. ac_cv_func_malloc_0_nonnull=no
  9971. fi
  9972. rm -rf conftest.dSYM
  9973. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9974. fi
  9975. fi
  9976. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  9977. $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
  9978. if test $ac_cv_func_malloc_0_nonnull = yes; then
  9979. cat >>confdefs.h <<\_ACEOF
  9980. #define HAVE_MALLOC 1
  9981. _ACEOF
  9982. else
  9983. cat >>confdefs.h <<\_ACEOF
  9984. #define HAVE_MALLOC 0
  9985. _ACEOF
  9986. case " $LIBOBJS " in
  9987. *" malloc.$ac_objext "* ) ;;
  9988. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  9989. ;;
  9990. esac
  9991. cat >>confdefs.h <<\_ACEOF
  9992. #define malloc rpl_malloc
  9993. _ACEOF
  9994. fi
  9995. for ac_header in $ac_header_list
  9996. do
  9997. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9998. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9999. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  10000. $as_echo_n "checking for $ac_header... " >&6; }
  10001. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10002. $as_echo_n "(cached) " >&6
  10003. fi
  10004. ac_res=`eval 'as_val=${'$as_ac_Header'}
  10005. $as_echo "$as_val"'`
  10006. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  10007. $as_echo "$ac_res" >&6; }
  10008. else
  10009. # Is the header compilable?
  10010. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10011. $as_echo_n "checking $ac_header usability... " >&6; }
  10012. cat >conftest.$ac_ext <<_ACEOF
  10013. /* confdefs.h. */
  10014. _ACEOF
  10015. cat confdefs.h >>conftest.$ac_ext
  10016. cat >>conftest.$ac_ext <<_ACEOF
  10017. /* end confdefs.h. */
  10018. $ac_includes_default
  10019. #include <$ac_header>
  10020. _ACEOF
  10021. rm -f conftest.$ac_objext
  10022. if { (ac_try="$ac_compile"
  10023. case "(($ac_try" in
  10024. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10025. *) ac_try_echo=$ac_try;;
  10026. esac
  10027. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10028. $as_echo "$ac_try_echo") >&5
  10029. (eval "$ac_compile") 2>conftest.er1
  10030. ac_status=$?
  10031. grep -v '^ *+' conftest.er1 >conftest.err
  10032. rm -f conftest.er1
  10033. cat conftest.err >&5
  10034. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10035. (exit $ac_status); } && {
  10036. test -z "$ac_cxx_werror_flag" ||
  10037. test ! -s conftest.err
  10038. } && test -s conftest.$ac_objext; then
  10039. ac_header_compiler=yes
  10040. else
  10041. $as_echo "$as_me: failed program was:" >&5
  10042. sed 's/^/| /' conftest.$ac_ext >&5
  10043. ac_header_compiler=no
  10044. fi
  10045. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10046. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10047. $as_echo "$ac_header_compiler" >&6; }
  10048. # Is the header present?
  10049. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10050. $as_echo_n "checking $ac_header presence... " >&6; }
  10051. cat >conftest.$ac_ext <<_ACEOF
  10052. /* confdefs.h. */
  10053. _ACEOF
  10054. cat confdefs.h >>conftest.$ac_ext
  10055. cat >>conftest.$ac_ext <<_ACEOF
  10056. /* end confdefs.h. */
  10057. #include <$ac_header>
  10058. _ACEOF
  10059. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10060. case "(($ac_try" in
  10061. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10062. *) ac_try_echo=$ac_try;;
  10063. esac
  10064. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10065. $as_echo "$ac_try_echo") >&5
  10066. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10067. ac_status=$?
  10068. grep -v '^ *+' conftest.er1 >conftest.err
  10069. rm -f conftest.er1
  10070. cat conftest.err >&5
  10071. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10072. (exit $ac_status); } >/dev/null && {
  10073. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  10074. test ! -s conftest.err
  10075. }; then
  10076. ac_header_preproc=yes
  10077. else
  10078. $as_echo "$as_me: failed program was:" >&5
  10079. sed 's/^/| /' conftest.$ac_ext >&5
  10080. ac_header_preproc=no
  10081. fi
  10082. rm -f conftest.err conftest.$ac_ext
  10083. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10084. $as_echo "$ac_header_preproc" >&6; }
  10085. # So? What about this header?
  10086. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  10087. yes:no: )
  10088. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10089. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10090. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10091. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10092. ac_header_preproc=yes
  10093. ;;
  10094. no:yes:* )
  10095. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10096. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10097. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10098. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10099. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10100. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10101. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10102. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10103. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10104. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10105. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10106. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10107. ;;
  10108. esac
  10109. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  10110. $as_echo_n "checking for $ac_header... " >&6; }
  10111. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10112. $as_echo_n "(cached) " >&6
  10113. else
  10114. eval "$as_ac_Header=\$ac_header_preproc"
  10115. fi
  10116. ac_res=`eval 'as_val=${'$as_ac_Header'}
  10117. $as_echo "$as_val"'`
  10118. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  10119. $as_echo "$ac_res" >&6; }
  10120. fi
  10121. as_val=`eval 'as_val=${'$as_ac_Header'}
  10122. $as_echo "$as_val"'`
  10123. if test "x$as_val" = x""yes; then
  10124. cat >>confdefs.h <<_ACEOF
  10125. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10126. _ACEOF
  10127. fi
  10128. done
  10129. for ac_func in $ac_func_list
  10130. do
  10131. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10132. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  10133. $as_echo_n "checking for $ac_func... " >&6; }
  10134. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  10135. $as_echo_n "(cached) " >&6
  10136. else
  10137. cat >conftest.$ac_ext <<_ACEOF
  10138. /* confdefs.h. */
  10139. _ACEOF
  10140. cat confdefs.h >>conftest.$ac_ext
  10141. cat >>conftest.$ac_ext <<_ACEOF
  10142. /* end confdefs.h. */
  10143. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10144. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10145. #define $ac_func innocuous_$ac_func
  10146. /* System header to define __stub macros and hopefully few prototypes,
  10147. which can conflict with char $ac_func (); below.
  10148. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10149. <limits.h> exists even on freestanding compilers. */
  10150. #ifdef __STDC__
  10151. # include <limits.h>
  10152. #else
  10153. # include <assert.h>
  10154. #endif
  10155. #undef $ac_func
  10156. /* Override any GCC internal prototype to avoid an error.
  10157. Use char because int might match the return type of a GCC
  10158. builtin and then its argument prototype would still apply. */
  10159. #ifdef __cplusplus
  10160. extern "C"
  10161. #endif
  10162. char $ac_func ();
  10163. /* The GNU C library defines this for functions which it implements
  10164. to always fail with ENOSYS. Some functions are actually named
  10165. something starting with __ and the normal name is an alias. */
  10166. #if defined __stub_$ac_func || defined __stub___$ac_func
  10167. choke me
  10168. #endif
  10169. int
  10170. main ()
  10171. {
  10172. return $ac_func ();
  10173. ;
  10174. return 0;
  10175. }
  10176. _ACEOF
  10177. rm -f conftest.$ac_objext conftest$ac_exeext
  10178. if { (ac_try="$ac_link"
  10179. case "(($ac_try" in
  10180. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10181. *) ac_try_echo=$ac_try;;
  10182. esac
  10183. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10184. $as_echo "$ac_try_echo") >&5
  10185. (eval "$ac_link") 2>conftest.er1
  10186. ac_status=$?
  10187. grep -v '^ *+' conftest.er1 >conftest.err
  10188. rm -f conftest.er1
  10189. cat conftest.err >&5
  10190. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10191. (exit $ac_status); } && {
  10192. test -z "$ac_cxx_werror_flag" ||
  10193. test ! -s conftest.err
  10194. } && test -s conftest$ac_exeext && {
  10195. test "$cross_compiling" = yes ||
  10196. $as_test_x conftest$ac_exeext
  10197. }; then
  10198. eval "$as_ac_var=yes"
  10199. else
  10200. $as_echo "$as_me: failed program was:" >&5
  10201. sed 's/^/| /' conftest.$ac_ext >&5
  10202. eval "$as_ac_var=no"
  10203. fi
  10204. rm -rf conftest.dSYM
  10205. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10206. conftest$ac_exeext conftest.$ac_ext
  10207. fi
  10208. ac_res=`eval 'as_val=${'$as_ac_var'}
  10209. $as_echo "$as_val"'`
  10210. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  10211. $as_echo "$ac_res" >&6; }
  10212. as_val=`eval 'as_val=${'$as_ac_var'}
  10213. $as_echo "$as_val"'`
  10214. if test "x$as_val" = x""yes; then
  10215. cat >>confdefs.h <<_ACEOF
  10216. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10217. _ACEOF
  10218. fi
  10219. done
  10220. { $as_echo "$as_me:$LINENO: checking for working mktime" >&5
  10221. $as_echo_n "checking for working mktime... " >&6; }
  10222. if test "${ac_cv_func_working_mktime+set}" = set; then
  10223. $as_echo_n "(cached) " >&6
  10224. else
  10225. if test "$cross_compiling" = yes; then
  10226. ac_cv_func_working_mktime=no
  10227. else
  10228. cat >conftest.$ac_ext <<_ACEOF
  10229. /* confdefs.h. */
  10230. _ACEOF
  10231. cat confdefs.h >>conftest.$ac_ext
  10232. cat >>conftest.$ac_ext <<_ACEOF
  10233. /* end confdefs.h. */
  10234. /* Test program from Paul Eggert and Tony Leneis. */
  10235. #ifdef TIME_WITH_SYS_TIME
  10236. # include <sys/time.h>
  10237. # include <time.h>
  10238. #else
  10239. # ifdef HAVE_SYS_TIME_H
  10240. # include <sys/time.h>
  10241. # else
  10242. # include <time.h>
  10243. # endif
  10244. #endif
  10245. #include <limits.h>
  10246. #include <stdlib.h>
  10247. #ifdef HAVE_UNISTD_H
  10248. # include <unistd.h>
  10249. #endif
  10250. #ifndef HAVE_ALARM
  10251. # define alarm(X) /* empty */
  10252. #endif
  10253. /* Work around redefinition to rpl_putenv by other config tests. */
  10254. #undef putenv
  10255. static time_t time_t_max;
  10256. static time_t time_t_min;
  10257. /* Values we'll use to set the TZ environment variable. */
  10258. static char *tz_strings[] = {
  10259. (char *) 0, "TZ=GMT0", "TZ=JST-9",
  10260. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  10261. };
  10262. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  10263. /* Return 0 if mktime fails to convert a date in the spring-forward gap.
  10264. Based on a problem report from Andreas Jaeger. */
  10265. static int
  10266. spring_forward_gap ()
  10267. {
  10268. /* glibc (up to about 1998-10-07) failed this test. */
  10269. struct tm tm;
  10270. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  10271. instead of "TZ=America/Vancouver" in order to detect the bug even
  10272. on systems that don't support the Olson extension, or don't have the
  10273. full zoneinfo tables installed. */
  10274. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  10275. tm.tm_year = 98;
  10276. tm.tm_mon = 3;
  10277. tm.tm_mday = 5;
  10278. tm.tm_hour = 2;
  10279. tm.tm_min = 0;
  10280. tm.tm_sec = 0;
  10281. tm.tm_isdst = -1;
  10282. return mktime (&tm) != (time_t) -1;
  10283. }
  10284. static int
  10285. mktime_test1 (now)
  10286. time_t now;
  10287. {
  10288. struct tm *lt;
  10289. return ! (lt = localtime (&now)) || mktime (lt) == now;
  10290. }
  10291. static int
  10292. mktime_test (now)
  10293. time_t now;
  10294. {
  10295. return (mktime_test1 (now)
  10296. && mktime_test1 ((time_t) (time_t_max - now))
  10297. && mktime_test1 ((time_t) (time_t_min + now)));
  10298. }
  10299. static int
  10300. irix_6_4_bug ()
  10301. {
  10302. /* Based on code from Ariel Faigon. */
  10303. struct tm tm;
  10304. tm.tm_year = 96;
  10305. tm.tm_mon = 3;
  10306. tm.tm_mday = 0;
  10307. tm.tm_hour = 0;
  10308. tm.tm_min = 0;
  10309. tm.tm_sec = 0;
  10310. tm.tm_isdst = -1;
  10311. mktime (&tm);
  10312. return tm.tm_mon == 2 && tm.tm_mday == 31;
  10313. }
  10314. static int
  10315. bigtime_test (j)
  10316. int j;
  10317. {
  10318. struct tm tm;
  10319. time_t now;
  10320. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  10321. now = mktime (&tm);
  10322. if (now != (time_t) -1)
  10323. {
  10324. struct tm *lt = localtime (&now);
  10325. if (! (lt
  10326. && lt->tm_year == tm.tm_year
  10327. && lt->tm_mon == tm.tm_mon
  10328. && lt->tm_mday == tm.tm_mday
  10329. && lt->tm_hour == tm.tm_hour
  10330. && lt->tm_min == tm.tm_min
  10331. && lt->tm_sec == tm.tm_sec
  10332. && lt->tm_yday == tm.tm_yday
  10333. && lt->tm_wday == tm.tm_wday
  10334. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  10335. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  10336. return 0;
  10337. }
  10338. return 1;
  10339. }
  10340. static int
  10341. year_2050_test ()
  10342. {
  10343. /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
  10344. ignoring leap seconds. */
  10345. unsigned long int answer = 2527315200UL;
  10346. struct tm tm;
  10347. time_t t;
  10348. tm.tm_year = 2050 - 1900;
  10349. tm.tm_mon = 2 - 1;
  10350. tm.tm_mday = 1;
  10351. tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
  10352. tm.tm_isdst = -1;
  10353. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  10354. instead of "TZ=America/Vancouver" in order to detect the bug even
  10355. on systems that don't support the Olson extension, or don't have the
  10356. full zoneinfo tables installed. */
  10357. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  10358. t = mktime (&tm);
  10359. /* Check that the result is either a failure, or close enough
  10360. to the correct answer that we can assume the discrepancy is
  10361. due to leap seconds. */
  10362. return (t == (time_t) -1
  10363. || (0 < t && answer - 120 <= t && t <= answer + 120));
  10364. }
  10365. int
  10366. main ()
  10367. {
  10368. time_t t, delta;
  10369. int i, j;
  10370. /* This test makes some buggy mktime implementations loop.
  10371. Give up after 60 seconds; a mktime slower than that
  10372. isn't worth using anyway. */
  10373. alarm (60);
  10374. for (;;)
  10375. {
  10376. t = (time_t_max << 1) + 1;
  10377. if (t <= time_t_max)
  10378. break;
  10379. time_t_max = t;
  10380. }
  10381. time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
  10382. delta = time_t_max / 997; /* a suitable prime number */
  10383. for (i = 0; i < N_STRINGS; i++)
  10384. {
  10385. if (tz_strings[i])
  10386. putenv (tz_strings[i]);
  10387. for (t = 0; t <= time_t_max - delta; t += delta)
  10388. if (! mktime_test (t))
  10389. return 1;
  10390. if (! (mktime_test ((time_t) 1)
  10391. && mktime_test ((time_t) (60 * 60))
  10392. && mktime_test ((time_t) (60 * 60 * 24))))
  10393. return 1;
  10394. for (j = 1; ; j <<= 1)
  10395. if (! bigtime_test (j))
  10396. return 1;
  10397. else if (INT_MAX / 2 < j)
  10398. break;
  10399. if (! bigtime_test (INT_MAX))
  10400. return 1;
  10401. }
  10402. return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
  10403. }
  10404. _ACEOF
  10405. rm -f conftest$ac_exeext
  10406. if { (ac_try="$ac_link"
  10407. case "(($ac_try" in
  10408. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10409. *) ac_try_echo=$ac_try;;
  10410. esac
  10411. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10412. $as_echo "$ac_try_echo") >&5
  10413. (eval "$ac_link") 2>&5
  10414. ac_status=$?
  10415. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10416. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10417. { (case "(($ac_try" in
  10418. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10419. *) ac_try_echo=$ac_try;;
  10420. esac
  10421. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10422. $as_echo "$ac_try_echo") >&5
  10423. (eval "$ac_try") 2>&5
  10424. ac_status=$?
  10425. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10426. (exit $ac_status); }; }; then
  10427. ac_cv_func_working_mktime=yes
  10428. else
  10429. $as_echo "$as_me: program exited with status $ac_status" >&5
  10430. $as_echo "$as_me: failed program was:" >&5
  10431. sed 's/^/| /' conftest.$ac_ext >&5
  10432. ( exit $ac_status )
  10433. ac_cv_func_working_mktime=no
  10434. fi
  10435. rm -rf conftest.dSYM
  10436. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10437. fi
  10438. fi
  10439. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
  10440. $as_echo "$ac_cv_func_working_mktime" >&6; }
  10441. if test $ac_cv_func_working_mktime = no; then
  10442. case " $LIBOBJS " in
  10443. *" mktime.$ac_objext "* ) ;;
  10444. *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
  10445. ;;
  10446. esac
  10447. fi
  10448. for ac_header in stdlib.h unistd.h
  10449. do
  10450. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10451. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10452. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  10453. $as_echo_n "checking for $ac_header... " >&6; }
  10454. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10455. $as_echo_n "(cached) " >&6
  10456. fi
  10457. ac_res=`eval 'as_val=${'$as_ac_Header'}
  10458. $as_echo "$as_val"'`
  10459. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  10460. $as_echo "$ac_res" >&6; }
  10461. else
  10462. # Is the header compilable?
  10463. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10464. $as_echo_n "checking $ac_header usability... " >&6; }
  10465. cat >conftest.$ac_ext <<_ACEOF
  10466. /* confdefs.h. */
  10467. _ACEOF
  10468. cat confdefs.h >>conftest.$ac_ext
  10469. cat >>conftest.$ac_ext <<_ACEOF
  10470. /* end confdefs.h. */
  10471. $ac_includes_default
  10472. #include <$ac_header>
  10473. _ACEOF
  10474. rm -f conftest.$ac_objext
  10475. if { (ac_try="$ac_compile"
  10476. case "(($ac_try" in
  10477. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10478. *) ac_try_echo=$ac_try;;
  10479. esac
  10480. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10481. $as_echo "$ac_try_echo") >&5
  10482. (eval "$ac_compile") 2>conftest.er1
  10483. ac_status=$?
  10484. grep -v '^ *+' conftest.er1 >conftest.err
  10485. rm -f conftest.er1
  10486. cat conftest.err >&5
  10487. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10488. (exit $ac_status); } && {
  10489. test -z "$ac_cxx_werror_flag" ||
  10490. test ! -s conftest.err
  10491. } && test -s conftest.$ac_objext; then
  10492. ac_header_compiler=yes
  10493. else
  10494. $as_echo "$as_me: failed program was:" >&5
  10495. sed 's/^/| /' conftest.$ac_ext >&5
  10496. ac_header_compiler=no
  10497. fi
  10498. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10499. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10500. $as_echo "$ac_header_compiler" >&6; }
  10501. # Is the header present?
  10502. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10503. $as_echo_n "checking $ac_header presence... " >&6; }
  10504. cat >conftest.$ac_ext <<_ACEOF
  10505. /* confdefs.h. */
  10506. _ACEOF
  10507. cat confdefs.h >>conftest.$ac_ext
  10508. cat >>conftest.$ac_ext <<_ACEOF
  10509. /* end confdefs.h. */
  10510. #include <$ac_header>
  10511. _ACEOF
  10512. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10513. case "(($ac_try" in
  10514. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10515. *) ac_try_echo=$ac_try;;
  10516. esac
  10517. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10518. $as_echo "$ac_try_echo") >&5
  10519. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10520. ac_status=$?
  10521. grep -v '^ *+' conftest.er1 >conftest.err
  10522. rm -f conftest.er1
  10523. cat conftest.err >&5
  10524. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10525. (exit $ac_status); } >/dev/null && {
  10526. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  10527. test ! -s conftest.err
  10528. }; then
  10529. ac_header_preproc=yes
  10530. else
  10531. $as_echo "$as_me: failed program was:" >&5
  10532. sed 's/^/| /' conftest.$ac_ext >&5
  10533. ac_header_preproc=no
  10534. fi
  10535. rm -f conftest.err conftest.$ac_ext
  10536. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10537. $as_echo "$ac_header_preproc" >&6; }
  10538. # So? What about this header?
  10539. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  10540. yes:no: )
  10541. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10542. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10543. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10544. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10545. ac_header_preproc=yes
  10546. ;;
  10547. no:yes:* )
  10548. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10549. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10550. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10551. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10552. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10553. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10554. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10555. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10556. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10557. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10558. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10559. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10560. ;;
  10561. esac
  10562. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  10563. $as_echo_n "checking for $ac_header... " >&6; }
  10564. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10565. $as_echo_n "(cached) " >&6
  10566. else
  10567. eval "$as_ac_Header=\$ac_header_preproc"
  10568. fi
  10569. ac_res=`eval 'as_val=${'$as_ac_Header'}
  10570. $as_echo "$as_val"'`
  10571. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  10572. $as_echo "$ac_res" >&6; }
  10573. fi
  10574. as_val=`eval 'as_val=${'$as_ac_Header'}
  10575. $as_echo "$as_val"'`
  10576. if test "x$as_val" = x""yes; then
  10577. cat >>confdefs.h <<_ACEOF
  10578. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10579. _ACEOF
  10580. fi
  10581. done
  10582. for ac_func in getpagesize
  10583. do
  10584. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10585. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  10586. $as_echo_n "checking for $ac_func... " >&6; }
  10587. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  10588. $as_echo_n "(cached) " >&6
  10589. else
  10590. cat >conftest.$ac_ext <<_ACEOF
  10591. /* confdefs.h. */
  10592. _ACEOF
  10593. cat confdefs.h >>conftest.$ac_ext
  10594. cat >>conftest.$ac_ext <<_ACEOF
  10595. /* end confdefs.h. */
  10596. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10597. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10598. #define $ac_func innocuous_$ac_func
  10599. /* System header to define __stub macros and hopefully few prototypes,
  10600. which can conflict with char $ac_func (); below.
  10601. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10602. <limits.h> exists even on freestanding compilers. */
  10603. #ifdef __STDC__
  10604. # include <limits.h>
  10605. #else
  10606. # include <assert.h>
  10607. #endif
  10608. #undef $ac_func
  10609. /* Override any GCC internal prototype to avoid an error.
  10610. Use char because int might match the return type of a GCC
  10611. builtin and then its argument prototype would still apply. */
  10612. #ifdef __cplusplus
  10613. extern "C"
  10614. #endif
  10615. char $ac_func ();
  10616. /* The GNU C library defines this for functions which it implements
  10617. to always fail with ENOSYS. Some functions are actually named
  10618. something starting with __ and the normal name is an alias. */
  10619. #if defined __stub_$ac_func || defined __stub___$ac_func
  10620. choke me
  10621. #endif
  10622. int
  10623. main ()
  10624. {
  10625. return $ac_func ();
  10626. ;
  10627. return 0;
  10628. }
  10629. _ACEOF
  10630. rm -f conftest.$ac_objext conftest$ac_exeext
  10631. if { (ac_try="$ac_link"
  10632. case "(($ac_try" in
  10633. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10634. *) ac_try_echo=$ac_try;;
  10635. esac
  10636. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10637. $as_echo "$ac_try_echo") >&5
  10638. (eval "$ac_link") 2>conftest.er1
  10639. ac_status=$?
  10640. grep -v '^ *+' conftest.er1 >conftest.err
  10641. rm -f conftest.er1
  10642. cat conftest.err >&5
  10643. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10644. (exit $ac_status); } && {
  10645. test -z "$ac_cxx_werror_flag" ||
  10646. test ! -s conftest.err
  10647. } && test -s conftest$ac_exeext && {
  10648. test "$cross_compiling" = yes ||
  10649. $as_test_x conftest$ac_exeext
  10650. }; then
  10651. eval "$as_ac_var=yes"
  10652. else
  10653. $as_echo "$as_me: failed program was:" >&5
  10654. sed 's/^/| /' conftest.$ac_ext >&5
  10655. eval "$as_ac_var=no"
  10656. fi
  10657. rm -rf conftest.dSYM
  10658. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10659. conftest$ac_exeext conftest.$ac_ext
  10660. fi
  10661. ac_res=`eval 'as_val=${'$as_ac_var'}
  10662. $as_echo "$as_val"'`
  10663. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  10664. $as_echo "$ac_res" >&6; }
  10665. as_val=`eval 'as_val=${'$as_ac_var'}
  10666. $as_echo "$as_val"'`
  10667. if test "x$as_val" = x""yes; then
  10668. cat >>confdefs.h <<_ACEOF
  10669. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10670. _ACEOF
  10671. fi
  10672. done
  10673. { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
  10674. $as_echo_n "checking for working mmap... " >&6; }
  10675. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  10676. $as_echo_n "(cached) " >&6
  10677. else
  10678. if test "$cross_compiling" = yes; then
  10679. ac_cv_func_mmap_fixed_mapped=no
  10680. else
  10681. cat >conftest.$ac_ext <<_ACEOF
  10682. /* confdefs.h. */
  10683. _ACEOF
  10684. cat confdefs.h >>conftest.$ac_ext
  10685. cat >>conftest.$ac_ext <<_ACEOF
  10686. /* end confdefs.h. */
  10687. $ac_includes_default
  10688. /* malloc might have been renamed as rpl_malloc. */
  10689. #undef malloc
  10690. /* Thanks to Mike Haertel and Jim Avera for this test.
  10691. Here is a matrix of mmap possibilities:
  10692. mmap private not fixed
  10693. mmap private fixed at somewhere currently unmapped
  10694. mmap private fixed at somewhere already mapped
  10695. mmap shared not fixed
  10696. mmap shared fixed at somewhere currently unmapped
  10697. mmap shared fixed at somewhere already mapped
  10698. For private mappings, we should verify that changes cannot be read()
  10699. back from the file, nor mmap's back from the file at a different
  10700. address. (There have been systems where private was not correctly
  10701. implemented like the infamous i386 svr4.0, and systems where the
  10702. VM page cache was not coherent with the file system buffer cache
  10703. like early versions of FreeBSD and possibly contemporary NetBSD.)
  10704. For shared mappings, we should conversely verify that changes get
  10705. propagated back to all the places they're supposed to be.
  10706. Grep wants private fixed already mapped.
  10707. The main things grep needs to know about mmap are:
  10708. * does it exist and is it safe to write into the mmap'd area
  10709. * how to use it (BSD variants) */
  10710. #include <fcntl.h>
  10711. #include <sys/mman.h>
  10712. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  10713. char *malloc ();
  10714. #endif
  10715. /* This mess was copied from the GNU getpagesize.h. */
  10716. #ifndef HAVE_GETPAGESIZE
  10717. /* Assume that all systems that can run configure have sys/param.h. */
  10718. # ifndef HAVE_SYS_PARAM_H
  10719. # define HAVE_SYS_PARAM_H 1
  10720. # endif
  10721. # ifdef _SC_PAGESIZE
  10722. # define getpagesize() sysconf(_SC_PAGESIZE)
  10723. # else /* no _SC_PAGESIZE */
  10724. # ifdef HAVE_SYS_PARAM_H
  10725. # include <sys/param.h>
  10726. # ifdef EXEC_PAGESIZE
  10727. # define getpagesize() EXEC_PAGESIZE
  10728. # else /* no EXEC_PAGESIZE */
  10729. # ifdef NBPG
  10730. # define getpagesize() NBPG * CLSIZE
  10731. # ifndef CLSIZE
  10732. # define CLSIZE 1
  10733. # endif /* no CLSIZE */
  10734. # else /* no NBPG */
  10735. # ifdef NBPC
  10736. # define getpagesize() NBPC
  10737. # else /* no NBPC */
  10738. # ifdef PAGESIZE
  10739. # define getpagesize() PAGESIZE
  10740. # endif /* PAGESIZE */
  10741. # endif /* no NBPC */
  10742. # endif /* no NBPG */
  10743. # endif /* no EXEC_PAGESIZE */
  10744. # else /* no HAVE_SYS_PARAM_H */
  10745. # define getpagesize() 8192 /* punt totally */
  10746. # endif /* no HAVE_SYS_PARAM_H */
  10747. # endif /* no _SC_PAGESIZE */
  10748. #endif /* no HAVE_GETPAGESIZE */
  10749. int
  10750. main ()
  10751. {
  10752. char *data, *data2, *data3;
  10753. int i, pagesize;
  10754. int fd;
  10755. pagesize = getpagesize ();
  10756. /* First, make a file with some known garbage in it. */
  10757. data = (char *) malloc (pagesize);
  10758. if (!data)
  10759. return 1;
  10760. for (i = 0; i < pagesize; ++i)
  10761. *(data + i) = rand ();
  10762. umask (0);
  10763. fd = creat ("conftest.mmap", 0600);
  10764. if (fd < 0)
  10765. return 1;
  10766. if (write (fd, data, pagesize) != pagesize)
  10767. return 1;
  10768. close (fd);
  10769. /* Next, try to mmap the file at a fixed address which already has
  10770. something else allocated at it. If we can, also make sure that
  10771. we see the same garbage. */
  10772. fd = open ("conftest.mmap", O_RDWR);
  10773. if (fd < 0)
  10774. return 1;
  10775. data2 = (char *) malloc (2 * pagesize);
  10776. if (!data2)
  10777. return 1;
  10778. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  10779. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  10780. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  10781. return 1;
  10782. for (i = 0; i < pagesize; ++i)
  10783. if (*(data + i) != *(data2 + i))
  10784. return 1;
  10785. /* Finally, make sure that changes to the mapped area do not
  10786. percolate back to the file as seen by read(). (This is a bug on
  10787. some variants of i386 svr4.0.) */
  10788. for (i = 0; i < pagesize; ++i)
  10789. *(data2 + i) = *(data2 + i) + 1;
  10790. data3 = (char *) malloc (pagesize);
  10791. if (!data3)
  10792. return 1;
  10793. if (read (fd, data3, pagesize) != pagesize)
  10794. return 1;
  10795. for (i = 0; i < pagesize; ++i)
  10796. if (*(data + i) != *(data3 + i))
  10797. return 1;
  10798. close (fd);
  10799. return 0;
  10800. }
  10801. _ACEOF
  10802. rm -f conftest$ac_exeext
  10803. if { (ac_try="$ac_link"
  10804. case "(($ac_try" in
  10805. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10806. *) ac_try_echo=$ac_try;;
  10807. esac
  10808. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10809. $as_echo "$ac_try_echo") >&5
  10810. (eval "$ac_link") 2>&5
  10811. ac_status=$?
  10812. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10813. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10814. { (case "(($ac_try" in
  10815. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10816. *) ac_try_echo=$ac_try;;
  10817. esac
  10818. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10819. $as_echo "$ac_try_echo") >&5
  10820. (eval "$ac_try") 2>&5
  10821. ac_status=$?
  10822. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10823. (exit $ac_status); }; }; then
  10824. ac_cv_func_mmap_fixed_mapped=yes
  10825. else
  10826. $as_echo "$as_me: program exited with status $ac_status" >&5
  10827. $as_echo "$as_me: failed program was:" >&5
  10828. sed 's/^/| /' conftest.$ac_ext >&5
  10829. ( exit $ac_status )
  10830. ac_cv_func_mmap_fixed_mapped=no
  10831. fi
  10832. rm -rf conftest.dSYM
  10833. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10834. fi
  10835. fi
  10836. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  10837. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  10838. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  10839. cat >>confdefs.h <<\_ACEOF
  10840. #define HAVE_MMAP 1
  10841. _ACEOF
  10842. fi
  10843. rm -f conftest.mmap
  10844. for ac_header in stdlib.h
  10845. do
  10846. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10847. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10848. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  10849. $as_echo_n "checking for $ac_header... " >&6; }
  10850. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10851. $as_echo_n "(cached) " >&6
  10852. fi
  10853. ac_res=`eval 'as_val=${'$as_ac_Header'}
  10854. $as_echo "$as_val"'`
  10855. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  10856. $as_echo "$ac_res" >&6; }
  10857. else
  10858. # Is the header compilable?
  10859. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10860. $as_echo_n "checking $ac_header usability... " >&6; }
  10861. cat >conftest.$ac_ext <<_ACEOF
  10862. /* confdefs.h. */
  10863. _ACEOF
  10864. cat confdefs.h >>conftest.$ac_ext
  10865. cat >>conftest.$ac_ext <<_ACEOF
  10866. /* end confdefs.h. */
  10867. $ac_includes_default
  10868. #include <$ac_header>
  10869. _ACEOF
  10870. rm -f conftest.$ac_objext
  10871. if { (ac_try="$ac_compile"
  10872. case "(($ac_try" in
  10873. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10874. *) ac_try_echo=$ac_try;;
  10875. esac
  10876. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10877. $as_echo "$ac_try_echo") >&5
  10878. (eval "$ac_compile") 2>conftest.er1
  10879. ac_status=$?
  10880. grep -v '^ *+' conftest.er1 >conftest.err
  10881. rm -f conftest.er1
  10882. cat conftest.err >&5
  10883. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10884. (exit $ac_status); } && {
  10885. test -z "$ac_cxx_werror_flag" ||
  10886. test ! -s conftest.err
  10887. } && test -s conftest.$ac_objext; then
  10888. ac_header_compiler=yes
  10889. else
  10890. $as_echo "$as_me: failed program was:" >&5
  10891. sed 's/^/| /' conftest.$ac_ext >&5
  10892. ac_header_compiler=no
  10893. fi
  10894. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10895. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10896. $as_echo "$ac_header_compiler" >&6; }
  10897. # Is the header present?
  10898. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10899. $as_echo_n "checking $ac_header presence... " >&6; }
  10900. cat >conftest.$ac_ext <<_ACEOF
  10901. /* confdefs.h. */
  10902. _ACEOF
  10903. cat confdefs.h >>conftest.$ac_ext
  10904. cat >>conftest.$ac_ext <<_ACEOF
  10905. /* end confdefs.h. */
  10906. #include <$ac_header>
  10907. _ACEOF
  10908. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10909. case "(($ac_try" in
  10910. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10911. *) ac_try_echo=$ac_try;;
  10912. esac
  10913. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10914. $as_echo "$ac_try_echo") >&5
  10915. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10916. ac_status=$?
  10917. grep -v '^ *+' conftest.er1 >conftest.err
  10918. rm -f conftest.er1
  10919. cat conftest.err >&5
  10920. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10921. (exit $ac_status); } >/dev/null && {
  10922. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  10923. test ! -s conftest.err
  10924. }; then
  10925. ac_header_preproc=yes
  10926. else
  10927. $as_echo "$as_me: failed program was:" >&5
  10928. sed 's/^/| /' conftest.$ac_ext >&5
  10929. ac_header_preproc=no
  10930. fi
  10931. rm -f conftest.err conftest.$ac_ext
  10932. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10933. $as_echo "$ac_header_preproc" >&6; }
  10934. # So? What about this header?
  10935. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  10936. yes:no: )
  10937. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10938. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10939. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10940. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10941. ac_header_preproc=yes
  10942. ;;
  10943. no:yes:* )
  10944. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10945. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10946. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10947. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10948. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10949. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10950. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10951. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10952. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10953. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10954. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10955. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10956. ;;
  10957. esac
  10958. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  10959. $as_echo_n "checking for $ac_header... " >&6; }
  10960. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10961. $as_echo_n "(cached) " >&6
  10962. else
  10963. eval "$as_ac_Header=\$ac_header_preproc"
  10964. fi
  10965. ac_res=`eval 'as_val=${'$as_ac_Header'}
  10966. $as_echo "$as_val"'`
  10967. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  10968. $as_echo "$ac_res" >&6; }
  10969. fi
  10970. as_val=`eval 'as_val=${'$as_ac_Header'}
  10971. $as_echo "$as_val"'`
  10972. if test "x$as_val" = x""yes; then
  10973. cat >>confdefs.h <<_ACEOF
  10974. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10975. _ACEOF
  10976. fi
  10977. done
  10978. { $as_echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
  10979. $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
  10980. if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
  10981. $as_echo_n "(cached) " >&6
  10982. else
  10983. if test "$cross_compiling" = yes; then
  10984. ac_cv_func_realloc_0_nonnull=no
  10985. else
  10986. cat >conftest.$ac_ext <<_ACEOF
  10987. /* confdefs.h. */
  10988. _ACEOF
  10989. cat confdefs.h >>conftest.$ac_ext
  10990. cat >>conftest.$ac_ext <<_ACEOF
  10991. /* end confdefs.h. */
  10992. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  10993. # include <stdlib.h>
  10994. #else
  10995. char *realloc ();
  10996. #endif
  10997. int
  10998. main ()
  10999. {
  11000. return ! realloc (0, 0);
  11001. ;
  11002. return 0;
  11003. }
  11004. _ACEOF
  11005. rm -f conftest$ac_exeext
  11006. if { (ac_try="$ac_link"
  11007. case "(($ac_try" in
  11008. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11009. *) ac_try_echo=$ac_try;;
  11010. esac
  11011. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11012. $as_echo "$ac_try_echo") >&5
  11013. (eval "$ac_link") 2>&5
  11014. ac_status=$?
  11015. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11016. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  11017. { (case "(($ac_try" in
  11018. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11019. *) ac_try_echo=$ac_try;;
  11020. esac
  11021. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11022. $as_echo "$ac_try_echo") >&5
  11023. (eval "$ac_try") 2>&5
  11024. ac_status=$?
  11025. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11026. (exit $ac_status); }; }; then
  11027. ac_cv_func_realloc_0_nonnull=yes
  11028. else
  11029. $as_echo "$as_me: program exited with status $ac_status" >&5
  11030. $as_echo "$as_me: failed program was:" >&5
  11031. sed 's/^/| /' conftest.$ac_ext >&5
  11032. ( exit $ac_status )
  11033. ac_cv_func_realloc_0_nonnull=no
  11034. fi
  11035. rm -rf conftest.dSYM
  11036. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  11037. fi
  11038. fi
  11039. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
  11040. $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
  11041. if test $ac_cv_func_realloc_0_nonnull = yes; then
  11042. cat >>confdefs.h <<\_ACEOF
  11043. #define HAVE_REALLOC 1
  11044. _ACEOF
  11045. else
  11046. cat >>confdefs.h <<\_ACEOF
  11047. #define HAVE_REALLOC 0
  11048. _ACEOF
  11049. case " $LIBOBJS " in
  11050. *" realloc.$ac_objext "* ) ;;
  11051. *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
  11052. ;;
  11053. esac
  11054. cat >>confdefs.h <<\_ACEOF
  11055. #define realloc rpl_realloc
  11056. _ACEOF
  11057. fi
  11058. { $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  11059. $as_echo_n "checking whether stat accepts an empty string... " >&6; }
  11060. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  11061. $as_echo_n "(cached) " >&6
  11062. else
  11063. if test "$cross_compiling" = yes; then
  11064. ac_cv_func_stat_empty_string_bug=yes
  11065. else
  11066. cat >conftest.$ac_ext <<_ACEOF
  11067. /* confdefs.h. */
  11068. _ACEOF
  11069. cat confdefs.h >>conftest.$ac_ext
  11070. cat >>conftest.$ac_ext <<_ACEOF
  11071. /* end confdefs.h. */
  11072. $ac_includes_default
  11073. int
  11074. main ()
  11075. {
  11076. struct stat sbuf;
  11077. return stat ("", &sbuf) == 0;
  11078. ;
  11079. return 0;
  11080. }
  11081. _ACEOF
  11082. rm -f conftest$ac_exeext
  11083. if { (ac_try="$ac_link"
  11084. case "(($ac_try" in
  11085. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11086. *) ac_try_echo=$ac_try;;
  11087. esac
  11088. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11089. $as_echo "$ac_try_echo") >&5
  11090. (eval "$ac_link") 2>&5
  11091. ac_status=$?
  11092. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11093. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  11094. { (case "(($ac_try" in
  11095. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11096. *) ac_try_echo=$ac_try;;
  11097. esac
  11098. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11099. $as_echo "$ac_try_echo") >&5
  11100. (eval "$ac_try") 2>&5
  11101. ac_status=$?
  11102. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11103. (exit $ac_status); }; }; then
  11104. ac_cv_func_stat_empty_string_bug=no
  11105. else
  11106. $as_echo "$as_me: program exited with status $ac_status" >&5
  11107. $as_echo "$as_me: failed program was:" >&5
  11108. sed 's/^/| /' conftest.$ac_ext >&5
  11109. ( exit $ac_status )
  11110. ac_cv_func_stat_empty_string_bug=yes
  11111. fi
  11112. rm -rf conftest.dSYM
  11113. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  11114. fi
  11115. fi
  11116. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  11117. $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
  11118. if test $ac_cv_func_stat_empty_string_bug = yes; then
  11119. case " $LIBOBJS " in
  11120. *" stat.$ac_objext "* ) ;;
  11121. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  11122. ;;
  11123. esac
  11124. cat >>confdefs.h <<_ACEOF
  11125. #define HAVE_STAT_EMPTY_STRING_BUG 1
  11126. _ACEOF
  11127. fi
  11128. { $as_echo "$as_me:$LINENO: checking for struct timespec" >&5
  11129. $as_echo_n "checking for struct timespec... " >&6; }
  11130. if test "${ac_cv_type_struct_timespec+set}" = set; then
  11131. $as_echo_n "(cached) " >&6
  11132. else
  11133. ac_cv_type_struct_timespec=no
  11134. cat >conftest.$ac_ext <<_ACEOF
  11135. /* confdefs.h. */
  11136. _ACEOF
  11137. cat confdefs.h >>conftest.$ac_ext
  11138. cat >>conftest.$ac_ext <<_ACEOF
  11139. /* end confdefs.h. */
  11140. #include <sys/types.h>
  11141. #include <sys/time.h>
  11142. #include <time.h>
  11143. int
  11144. main ()
  11145. {
  11146. if (sizeof (struct timespec))
  11147. return 0;
  11148. ;
  11149. return 0;
  11150. }
  11151. _ACEOF
  11152. rm -f conftest.$ac_objext
  11153. if { (ac_try="$ac_compile"
  11154. case "(($ac_try" in
  11155. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11156. *) ac_try_echo=$ac_try;;
  11157. esac
  11158. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11159. $as_echo "$ac_try_echo") >&5
  11160. (eval "$ac_compile") 2>conftest.er1
  11161. ac_status=$?
  11162. grep -v '^ *+' conftest.er1 >conftest.err
  11163. rm -f conftest.er1
  11164. cat conftest.err >&5
  11165. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11166. (exit $ac_status); } && {
  11167. test -z "$ac_cxx_werror_flag" ||
  11168. test ! -s conftest.err
  11169. } && test -s conftest.$ac_objext; then
  11170. cat >conftest.$ac_ext <<_ACEOF
  11171. /* confdefs.h. */
  11172. _ACEOF
  11173. cat confdefs.h >>conftest.$ac_ext
  11174. cat >>conftest.$ac_ext <<_ACEOF
  11175. /* end confdefs.h. */
  11176. #include <sys/types.h>
  11177. #include <sys/time.h>
  11178. #include <time.h>
  11179. int
  11180. main ()
  11181. {
  11182. if (sizeof ((struct timespec)))
  11183. return 0;
  11184. ;
  11185. return 0;
  11186. }
  11187. _ACEOF
  11188. rm -f conftest.$ac_objext
  11189. if { (ac_try="$ac_compile"
  11190. case "(($ac_try" in
  11191. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11192. *) ac_try_echo=$ac_try;;
  11193. esac
  11194. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11195. $as_echo "$ac_try_echo") >&5
  11196. (eval "$ac_compile") 2>conftest.er1
  11197. ac_status=$?
  11198. grep -v '^ *+' conftest.er1 >conftest.err
  11199. rm -f conftest.er1
  11200. cat conftest.err >&5
  11201. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11202. (exit $ac_status); } && {
  11203. test -z "$ac_cxx_werror_flag" ||
  11204. test ! -s conftest.err
  11205. } && test -s conftest.$ac_objext; then
  11206. :
  11207. else
  11208. $as_echo "$as_me: failed program was:" >&5
  11209. sed 's/^/| /' conftest.$ac_ext >&5
  11210. ac_cv_type_struct_timespec=yes
  11211. fi
  11212. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11213. else
  11214. $as_echo "$as_me: failed program was:" >&5
  11215. sed 's/^/| /' conftest.$ac_ext >&5
  11216. fi
  11217. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11218. fi
  11219. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5
  11220. $as_echo "$ac_cv_type_struct_timespec" >&6; }
  11221. if test "x$ac_cv_type_struct_timespec" = x""yes; then
  11222. cat >>confdefs.h <<\_ACEOF
  11223. #define HAVE_TIMESPEC 1
  11224. _ACEOF
  11225. fi
  11226. if test X"$ac_cv_type_struct_timespec" != X"no"; then
  11227. { $as_echo "$as_me:$LINENO: checking for struct stat.st_mtim" >&5
  11228. $as_echo_n "checking for struct stat.st_mtim... " >&6; }
  11229. if test "${ac_cv_member_struct_stat_st_mtim+set}" = set; then
  11230. $as_echo_n "(cached) " >&6
  11231. else
  11232. cat >conftest.$ac_ext <<_ACEOF
  11233. /* confdefs.h. */
  11234. _ACEOF
  11235. cat confdefs.h >>conftest.$ac_ext
  11236. cat >>conftest.$ac_ext <<_ACEOF
  11237. /* end confdefs.h. */
  11238. $ac_includes_default
  11239. int
  11240. main ()
  11241. {
  11242. static struct stat ac_aggr;
  11243. if (ac_aggr.st_mtim)
  11244. return 0;
  11245. ;
  11246. return 0;
  11247. }
  11248. _ACEOF
  11249. rm -f conftest.$ac_objext
  11250. if { (ac_try="$ac_compile"
  11251. case "(($ac_try" in
  11252. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11253. *) ac_try_echo=$ac_try;;
  11254. esac
  11255. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11256. $as_echo "$ac_try_echo") >&5
  11257. (eval "$ac_compile") 2>conftest.er1
  11258. ac_status=$?
  11259. grep -v '^ *+' conftest.er1 >conftest.err
  11260. rm -f conftest.er1
  11261. cat conftest.err >&5
  11262. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11263. (exit $ac_status); } && {
  11264. test -z "$ac_cxx_werror_flag" ||
  11265. test ! -s conftest.err
  11266. } && test -s conftest.$ac_objext; then
  11267. ac_cv_member_struct_stat_st_mtim=yes
  11268. else
  11269. $as_echo "$as_me: failed program was:" >&5
  11270. sed 's/^/| /' conftest.$ac_ext >&5
  11271. cat >conftest.$ac_ext <<_ACEOF
  11272. /* confdefs.h. */
  11273. _ACEOF
  11274. cat confdefs.h >>conftest.$ac_ext
  11275. cat >>conftest.$ac_ext <<_ACEOF
  11276. /* end confdefs.h. */
  11277. $ac_includes_default
  11278. int
  11279. main ()
  11280. {
  11281. static struct stat ac_aggr;
  11282. if (sizeof ac_aggr.st_mtim)
  11283. return 0;
  11284. ;
  11285. return 0;
  11286. }
  11287. _ACEOF
  11288. rm -f conftest.$ac_objext
  11289. if { (ac_try="$ac_compile"
  11290. case "(($ac_try" in
  11291. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11292. *) ac_try_echo=$ac_try;;
  11293. esac
  11294. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11295. $as_echo "$ac_try_echo") >&5
  11296. (eval "$ac_compile") 2>conftest.er1
  11297. ac_status=$?
  11298. grep -v '^ *+' conftest.er1 >conftest.err
  11299. rm -f conftest.er1
  11300. cat conftest.err >&5
  11301. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11302. (exit $ac_status); } && {
  11303. test -z "$ac_cxx_werror_flag" ||
  11304. test ! -s conftest.err
  11305. } && test -s conftest.$ac_objext; then
  11306. ac_cv_member_struct_stat_st_mtim=yes
  11307. else
  11308. $as_echo "$as_me: failed program was:" >&5
  11309. sed 's/^/| /' conftest.$ac_ext >&5
  11310. ac_cv_member_struct_stat_st_mtim=no
  11311. fi
  11312. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11313. fi
  11314. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11315. fi
  11316. { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtim" >&5
  11317. $as_echo "$ac_cv_member_struct_stat_st_mtim" >&6; }
  11318. if test "x$ac_cv_member_struct_stat_st_mtim" = x""yes; then
  11319. cat >>confdefs.h <<\_ACEOF
  11320. #define HAVE_ST_MTIM 1
  11321. _ACEOF
  11322. else
  11323. { $as_echo "$as_me:$LINENO: checking for struct stat.st_mtimespec" >&5
  11324. $as_echo_n "checking for struct stat.st_mtimespec... " >&6; }
  11325. if test "${ac_cv_member_struct_stat_st_mtimespec+set}" = set; then
  11326. $as_echo_n "(cached) " >&6
  11327. else
  11328. cat >conftest.$ac_ext <<_ACEOF
  11329. /* confdefs.h. */
  11330. _ACEOF
  11331. cat confdefs.h >>conftest.$ac_ext
  11332. cat >>conftest.$ac_ext <<_ACEOF
  11333. /* end confdefs.h. */
  11334. $ac_includes_default
  11335. int
  11336. main ()
  11337. {
  11338. static struct stat ac_aggr;
  11339. if (ac_aggr.st_mtimespec)
  11340. return 0;
  11341. ;
  11342. return 0;
  11343. }
  11344. _ACEOF
  11345. rm -f conftest.$ac_objext
  11346. if { (ac_try="$ac_compile"
  11347. case "(($ac_try" in
  11348. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11349. *) ac_try_echo=$ac_try;;
  11350. esac
  11351. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11352. $as_echo "$ac_try_echo") >&5
  11353. (eval "$ac_compile") 2>conftest.er1
  11354. ac_status=$?
  11355. grep -v '^ *+' conftest.er1 >conftest.err
  11356. rm -f conftest.er1
  11357. cat conftest.err >&5
  11358. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11359. (exit $ac_status); } && {
  11360. test -z "$ac_cxx_werror_flag" ||
  11361. test ! -s conftest.err
  11362. } && test -s conftest.$ac_objext; then
  11363. ac_cv_member_struct_stat_st_mtimespec=yes
  11364. else
  11365. $as_echo "$as_me: failed program was:" >&5
  11366. sed 's/^/| /' conftest.$ac_ext >&5
  11367. cat >conftest.$ac_ext <<_ACEOF
  11368. /* confdefs.h. */
  11369. _ACEOF
  11370. cat confdefs.h >>conftest.$ac_ext
  11371. cat >>conftest.$ac_ext <<_ACEOF
  11372. /* end confdefs.h. */
  11373. $ac_includes_default
  11374. int
  11375. main ()
  11376. {
  11377. static struct stat ac_aggr;
  11378. if (sizeof ac_aggr.st_mtimespec)
  11379. return 0;
  11380. ;
  11381. return 0;
  11382. }
  11383. _ACEOF
  11384. rm -f conftest.$ac_objext
  11385. if { (ac_try="$ac_compile"
  11386. case "(($ac_try" in
  11387. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11388. *) ac_try_echo=$ac_try;;
  11389. esac
  11390. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11391. $as_echo "$ac_try_echo") >&5
  11392. (eval "$ac_compile") 2>conftest.er1
  11393. ac_status=$?
  11394. grep -v '^ *+' conftest.er1 >conftest.err
  11395. rm -f conftest.er1
  11396. cat conftest.err >&5
  11397. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11398. (exit $ac_status); } && {
  11399. test -z "$ac_cxx_werror_flag" ||
  11400. test ! -s conftest.err
  11401. } && test -s conftest.$ac_objext; then
  11402. ac_cv_member_struct_stat_st_mtimespec=yes
  11403. else
  11404. $as_echo "$as_me: failed program was:" >&5
  11405. sed 's/^/| /' conftest.$ac_ext >&5
  11406. ac_cv_member_struct_stat_st_mtimespec=no
  11407. fi
  11408. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11409. fi
  11410. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11411. fi
  11412. { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtimespec" >&5
  11413. $as_echo "$ac_cv_member_struct_stat_st_mtimespec" >&6; }
  11414. if test "x$ac_cv_member_struct_stat_st_mtimespec" = x""yes; then
  11415. cat >>confdefs.h <<\_ACEOF
  11416. #define HAVE_ST_MTIMESPEC 1
  11417. _ACEOF
  11418. fi
  11419. fi
  11420. { $as_echo "$as_me:$LINENO: checking for two-parameter timespecsub" >&5
  11421. $as_echo_n "checking for two-parameter timespecsub... " >&6; }
  11422. cat >conftest.$ac_ext <<_ACEOF
  11423. /* confdefs.h. */
  11424. _ACEOF
  11425. cat confdefs.h >>conftest.$ac_ext
  11426. cat >>conftest.$ac_ext <<_ACEOF
  11427. /* end confdefs.h. */
  11428. #include <sys/types.h>
  11429. #include <sys/time.h>
  11430. int
  11431. main ()
  11432. {
  11433. struct timespec ts1, ts2;
  11434. ts1.tv_sec = 1; ts1.tv_nsec = 0; ts2.tv_sec = 0; ts2.tv_nsec = 0;
  11435. #ifndef timespecsub
  11436. #error missing timespecsub
  11437. #endif
  11438. timespecsub(&ts1, &ts2);
  11439. ;
  11440. return 0;
  11441. }
  11442. _ACEOF
  11443. rm -f conftest.$ac_objext
  11444. if { (ac_try="$ac_compile"
  11445. case "(($ac_try" in
  11446. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11447. *) ac_try_echo=$ac_try;;
  11448. esac
  11449. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11450. $as_echo "$ac_try_echo") >&5
  11451. (eval "$ac_compile") 2>conftest.er1
  11452. ac_status=$?
  11453. grep -v '^ *+' conftest.er1 >conftest.err
  11454. rm -f conftest.er1
  11455. cat conftest.err >&5
  11456. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11457. (exit $ac_status); } && {
  11458. test -z "$ac_cxx_werror_flag" ||
  11459. test ! -s conftest.err
  11460. } && test -s conftest.$ac_objext; then
  11461. cat >>confdefs.h <<\_ACEOF
  11462. #define HAVE_TIMESPECSUB2 1
  11463. _ACEOF
  11464. { $as_echo "$as_me:$LINENO: result: yes" >&5
  11465. $as_echo "yes" >&6; }
  11466. else
  11467. $as_echo "$as_me: failed program was:" >&5
  11468. sed 's/^/| /' conftest.$ac_ext >&5
  11469. { $as_echo "$as_me:$LINENO: result: no" >&5
  11470. $as_echo "no" >&6; }
  11471. fi
  11472. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11473. fi
  11474. for ac_func in strftime
  11475. do
  11476. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11477. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  11478. $as_echo_n "checking for $ac_func... " >&6; }
  11479. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11480. $as_echo_n "(cached) " >&6
  11481. else
  11482. cat >conftest.$ac_ext <<_ACEOF
  11483. /* confdefs.h. */
  11484. _ACEOF
  11485. cat confdefs.h >>conftest.$ac_ext
  11486. cat >>conftest.$ac_ext <<_ACEOF
  11487. /* end confdefs.h. */
  11488. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11489. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11490. #define $ac_func innocuous_$ac_func
  11491. /* System header to define __stub macros and hopefully few prototypes,
  11492. which can conflict with char $ac_func (); below.
  11493. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11494. <limits.h> exists even on freestanding compilers. */
  11495. #ifdef __STDC__
  11496. # include <limits.h>
  11497. #else
  11498. # include <assert.h>
  11499. #endif
  11500. #undef $ac_func
  11501. /* Override any GCC internal prototype to avoid an error.
  11502. Use char because int might match the return type of a GCC
  11503. builtin and then its argument prototype would still apply. */
  11504. #ifdef __cplusplus
  11505. extern "C"
  11506. #endif
  11507. char $ac_func ();
  11508. /* The GNU C library defines this for functions which it implements
  11509. to always fail with ENOSYS. Some functions are actually named
  11510. something starting with __ and the normal name is an alias. */
  11511. #if defined __stub_$ac_func || defined __stub___$ac_func
  11512. choke me
  11513. #endif
  11514. int
  11515. main ()
  11516. {
  11517. return $ac_func ();
  11518. ;
  11519. return 0;
  11520. }
  11521. _ACEOF
  11522. rm -f conftest.$ac_objext conftest$ac_exeext
  11523. if { (ac_try="$ac_link"
  11524. case "(($ac_try" in
  11525. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11526. *) ac_try_echo=$ac_try;;
  11527. esac
  11528. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11529. $as_echo "$ac_try_echo") >&5
  11530. (eval "$ac_link") 2>conftest.er1
  11531. ac_status=$?
  11532. grep -v '^ *+' conftest.er1 >conftest.err
  11533. rm -f conftest.er1
  11534. cat conftest.err >&5
  11535. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11536. (exit $ac_status); } && {
  11537. test -z "$ac_cxx_werror_flag" ||
  11538. test ! -s conftest.err
  11539. } && test -s conftest$ac_exeext && {
  11540. test "$cross_compiling" = yes ||
  11541. $as_test_x conftest$ac_exeext
  11542. }; then
  11543. eval "$as_ac_var=yes"
  11544. else
  11545. $as_echo "$as_me: failed program was:" >&5
  11546. sed 's/^/| /' conftest.$ac_ext >&5
  11547. eval "$as_ac_var=no"
  11548. fi
  11549. rm -rf conftest.dSYM
  11550. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11551. conftest$ac_exeext conftest.$ac_ext
  11552. fi
  11553. ac_res=`eval 'as_val=${'$as_ac_var'}
  11554. $as_echo "$as_val"'`
  11555. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  11556. $as_echo "$ac_res" >&6; }
  11557. as_val=`eval 'as_val=${'$as_ac_var'}
  11558. $as_echo "$as_val"'`
  11559. if test "x$as_val" = x""yes; then
  11560. cat >>confdefs.h <<_ACEOF
  11561. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11562. _ACEOF
  11563. else
  11564. # strftime is in -lintl on SCO UNIX.
  11565. { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  11566. $as_echo_n "checking for strftime in -lintl... " >&6; }
  11567. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  11568. $as_echo_n "(cached) " >&6
  11569. else
  11570. ac_check_lib_save_LIBS=$LIBS
  11571. LIBS="-lintl $LIBS"
  11572. cat >conftest.$ac_ext <<_ACEOF
  11573. /* confdefs.h. */
  11574. _ACEOF
  11575. cat confdefs.h >>conftest.$ac_ext
  11576. cat >>conftest.$ac_ext <<_ACEOF
  11577. /* end confdefs.h. */
  11578. /* Override any GCC internal prototype to avoid an error.
  11579. Use char because int might match the return type of a GCC
  11580. builtin and then its argument prototype would still apply. */
  11581. #ifdef __cplusplus
  11582. extern "C"
  11583. #endif
  11584. char strftime ();
  11585. int
  11586. main ()
  11587. {
  11588. return strftime ();
  11589. ;
  11590. return 0;
  11591. }
  11592. _ACEOF
  11593. rm -f conftest.$ac_objext conftest$ac_exeext
  11594. if { (ac_try="$ac_link"
  11595. case "(($ac_try" in
  11596. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11597. *) ac_try_echo=$ac_try;;
  11598. esac
  11599. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11600. $as_echo "$ac_try_echo") >&5
  11601. (eval "$ac_link") 2>conftest.er1
  11602. ac_status=$?
  11603. grep -v '^ *+' conftest.er1 >conftest.err
  11604. rm -f conftest.er1
  11605. cat conftest.err >&5
  11606. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11607. (exit $ac_status); } && {
  11608. test -z "$ac_cxx_werror_flag" ||
  11609. test ! -s conftest.err
  11610. } && test -s conftest$ac_exeext && {
  11611. test "$cross_compiling" = yes ||
  11612. $as_test_x conftest$ac_exeext
  11613. }; then
  11614. ac_cv_lib_intl_strftime=yes
  11615. else
  11616. $as_echo "$as_me: failed program was:" >&5
  11617. sed 's/^/| /' conftest.$ac_ext >&5
  11618. ac_cv_lib_intl_strftime=no
  11619. fi
  11620. rm -rf conftest.dSYM
  11621. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11622. conftest$ac_exeext conftest.$ac_ext
  11623. LIBS=$ac_check_lib_save_LIBS
  11624. fi
  11625. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  11626. $as_echo "$ac_cv_lib_intl_strftime" >&6; }
  11627. if test "x$ac_cv_lib_intl_strftime" = x""yes; then
  11628. cat >>confdefs.h <<\_ACEOF
  11629. #define HAVE_STRFTIME 1
  11630. _ACEOF
  11631. LIBS="-lintl $LIBS"
  11632. fi
  11633. fi
  11634. done
  11635. #checkpoint
  11636. cat >confcache <<\_ACEOF
  11637. # This file is a shell script that caches the results of configure
  11638. # tests run on this system so they can be shared between configure
  11639. # scripts and configure runs, see configure's option --config-cache.
  11640. # It is not useful on other systems. If it contains results you don't
  11641. # want to keep, you may remove or edit it.
  11642. #
  11643. # config.status only pays attention to the cache file if you give it
  11644. # the --recheck option to rerun configure.
  11645. #
  11646. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11647. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11648. # following values.
  11649. _ACEOF
  11650. # The following way of writing the cache mishandles newlines in values,
  11651. # but we know of no workaround that is simple, portable, and efficient.
  11652. # So, we kill variables containing newlines.
  11653. # Ultrix sh set writes to stderr and can't be redirected directly,
  11654. # and sets the high bit in the cache file unless we assign to the vars.
  11655. (
  11656. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  11657. eval ac_val=\$$ac_var
  11658. case $ac_val in #(
  11659. *${as_nl}*)
  11660. case $ac_var in #(
  11661. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  11662. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  11663. esac
  11664. case $ac_var in #(
  11665. _ | IFS | as_nl) ;; #(
  11666. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  11667. *) $as_unset $ac_var ;;
  11668. esac ;;
  11669. esac
  11670. done
  11671. (set) 2>&1 |
  11672. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  11673. *${as_nl}ac_space=\ *)
  11674. # `set' does not quote correctly, so add quotes (double-quote
  11675. # substitution turns \\\\ into \\, and sed turns \\ into \).
  11676. sed -n \
  11677. "s/'/'\\\\''/g;
  11678. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11679. ;; #(
  11680. *)
  11681. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11682. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  11683. ;;
  11684. esac |
  11685. sort
  11686. ) |
  11687. sed '
  11688. /^ac_cv_env_/b end
  11689. t clear
  11690. :clear
  11691. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11692. t end
  11693. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11694. :end' >>confcache
  11695. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  11696. if test -w "$cache_file"; then
  11697. test "x$cache_file" != "x/dev/null" &&
  11698. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  11699. $as_echo "$as_me: updating cache $cache_file" >&6;}
  11700. cat confcache >$cache_file
  11701. else
  11702. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  11703. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  11704. fi
  11705. fi
  11706. rm -f confcache
  11707. for ac_func in clock fsync getrusage isascii getpassphrase
  11708. do
  11709. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11710. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  11711. $as_echo_n "checking for $ac_func... " >&6; }
  11712. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11713. $as_echo_n "(cached) " >&6
  11714. else
  11715. cat >conftest.$ac_ext <<_ACEOF
  11716. /* confdefs.h. */
  11717. _ACEOF
  11718. cat confdefs.h >>conftest.$ac_ext
  11719. cat >>conftest.$ac_ext <<_ACEOF
  11720. /* end confdefs.h. */
  11721. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11722. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11723. #define $ac_func innocuous_$ac_func
  11724. /* System header to define __stub macros and hopefully few prototypes,
  11725. which can conflict with char $ac_func (); below.
  11726. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11727. <limits.h> exists even on freestanding compilers. */
  11728. #ifdef __STDC__
  11729. # include <limits.h>
  11730. #else
  11731. # include <assert.h>
  11732. #endif
  11733. #undef $ac_func
  11734. /* Override any GCC internal prototype to avoid an error.
  11735. Use char because int might match the return type of a GCC
  11736. builtin and then its argument prototype would still apply. */
  11737. #ifdef __cplusplus
  11738. extern "C"
  11739. #endif
  11740. char $ac_func ();
  11741. /* The GNU C library defines this for functions which it implements
  11742. to always fail with ENOSYS. Some functions are actually named
  11743. something starting with __ and the normal name is an alias. */
  11744. #if defined __stub_$ac_func || defined __stub___$ac_func
  11745. choke me
  11746. #endif
  11747. int
  11748. main ()
  11749. {
  11750. return $ac_func ();
  11751. ;
  11752. return 0;
  11753. }
  11754. _ACEOF
  11755. rm -f conftest.$ac_objext conftest$ac_exeext
  11756. if { (ac_try="$ac_link"
  11757. case "(($ac_try" in
  11758. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11759. *) ac_try_echo=$ac_try;;
  11760. esac
  11761. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11762. $as_echo "$ac_try_echo") >&5
  11763. (eval "$ac_link") 2>conftest.er1
  11764. ac_status=$?
  11765. grep -v '^ *+' conftest.er1 >conftest.err
  11766. rm -f conftest.er1
  11767. cat conftest.err >&5
  11768. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11769. (exit $ac_status); } && {
  11770. test -z "$ac_cxx_werror_flag" ||
  11771. test ! -s conftest.err
  11772. } && test -s conftest$ac_exeext && {
  11773. test "$cross_compiling" = yes ||
  11774. $as_test_x conftest$ac_exeext
  11775. }; then
  11776. eval "$as_ac_var=yes"
  11777. else
  11778. $as_echo "$as_me: failed program was:" >&5
  11779. sed 's/^/| /' conftest.$ac_ext >&5
  11780. eval "$as_ac_var=no"
  11781. fi
  11782. rm -rf conftest.dSYM
  11783. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11784. conftest$ac_exeext conftest.$ac_ext
  11785. fi
  11786. ac_res=`eval 'as_val=${'$as_ac_var'}
  11787. $as_echo "$as_val"'`
  11788. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  11789. $as_echo "$ac_res" >&6; }
  11790. as_val=`eval 'as_val=${'$as_ac_var'}
  11791. $as_echo "$as_val"'`
  11792. if test "x$as_val" = x""yes; then
  11793. cat >>confdefs.h <<_ACEOF
  11794. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11795. _ACEOF
  11796. fi
  11797. done
  11798. for ac_func in memcpy memset random rename snprintf srandom gettime
  11799. do
  11800. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11801. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  11802. $as_echo_n "checking for $ac_func... " >&6; }
  11803. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11804. $as_echo_n "(cached) " >&6
  11805. else
  11806. cat >conftest.$ac_ext <<_ACEOF
  11807. /* confdefs.h. */
  11808. _ACEOF
  11809. cat confdefs.h >>conftest.$ac_ext
  11810. cat >>conftest.$ac_ext <<_ACEOF
  11811. /* end confdefs.h. */
  11812. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11813. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11814. #define $ac_func innocuous_$ac_func
  11815. /* System header to define __stub macros and hopefully few prototypes,
  11816. which can conflict with char $ac_func (); below.
  11817. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11818. <limits.h> exists even on freestanding compilers. */
  11819. #ifdef __STDC__
  11820. # include <limits.h>
  11821. #else
  11822. # include <assert.h>
  11823. #endif
  11824. #undef $ac_func
  11825. /* Override any GCC internal prototype to avoid an error.
  11826. Use char because int might match the return type of a GCC
  11827. builtin and then its argument prototype would still apply. */
  11828. #ifdef __cplusplus
  11829. extern "C"
  11830. #endif
  11831. char $ac_func ();
  11832. /* The GNU C library defines this for functions which it implements
  11833. to always fail with ENOSYS. Some functions are actually named
  11834. something starting with __ and the normal name is an alias. */
  11835. #if defined __stub_$ac_func || defined __stub___$ac_func
  11836. choke me
  11837. #endif
  11838. int
  11839. main ()
  11840. {
  11841. return $ac_func ();
  11842. ;
  11843. return 0;
  11844. }
  11845. _ACEOF
  11846. rm -f conftest.$ac_objext conftest$ac_exeext
  11847. if { (ac_try="$ac_link"
  11848. case "(($ac_try" in
  11849. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11850. *) ac_try_echo=$ac_try;;
  11851. esac
  11852. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11853. $as_echo "$ac_try_echo") >&5
  11854. (eval "$ac_link") 2>conftest.er1
  11855. ac_status=$?
  11856. grep -v '^ *+' conftest.er1 >conftest.err
  11857. rm -f conftest.er1
  11858. cat conftest.err >&5
  11859. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11860. (exit $ac_status); } && {
  11861. test -z "$ac_cxx_werror_flag" ||
  11862. test ! -s conftest.err
  11863. } && test -s conftest$ac_exeext && {
  11864. test "$cross_compiling" = yes ||
  11865. $as_test_x conftest$ac_exeext
  11866. }; then
  11867. eval "$as_ac_var=yes"
  11868. else
  11869. $as_echo "$as_me: failed program was:" >&5
  11870. sed 's/^/| /' conftest.$ac_ext >&5
  11871. eval "$as_ac_var=no"
  11872. fi
  11873. rm -rf conftest.dSYM
  11874. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11875. conftest$ac_exeext conftest.$ac_ext
  11876. fi
  11877. ac_res=`eval 'as_val=${'$as_ac_var'}
  11878. $as_echo "$as_val"'`
  11879. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  11880. $as_echo "$ac_res" >&6; }
  11881. as_val=`eval 'as_val=${'$as_ac_var'}
  11882. $as_echo "$as_val"'`
  11883. if test "x$as_val" = x""yes; then
  11884. cat >>confdefs.h <<_ACEOF
  11885. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11886. _ACEOF
  11887. fi
  11888. done
  11889. #checkpoint
  11890. cat >confcache <<\_ACEOF
  11891. # This file is a shell script that caches the results of configure
  11892. # tests run on this system so they can be shared between configure
  11893. # scripts and configure runs, see configure's option --config-cache.
  11894. # It is not useful on other systems. If it contains results you don't
  11895. # want to keep, you may remove or edit it.
  11896. #
  11897. # config.status only pays attention to the cache file if you give it
  11898. # the --recheck option to rerun configure.
  11899. #
  11900. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11901. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11902. # following values.
  11903. _ACEOF
  11904. # The following way of writing the cache mishandles newlines in values,
  11905. # but we know of no workaround that is simple, portable, and efficient.
  11906. # So, we kill variables containing newlines.
  11907. # Ultrix sh set writes to stderr and can't be redirected directly,
  11908. # and sets the high bit in the cache file unless we assign to the vars.
  11909. (
  11910. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  11911. eval ac_val=\$$ac_var
  11912. case $ac_val in #(
  11913. *${as_nl}*)
  11914. case $ac_var in #(
  11915. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  11916. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  11917. esac
  11918. case $ac_var in #(
  11919. _ | IFS | as_nl) ;; #(
  11920. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  11921. *) $as_unset $ac_var ;;
  11922. esac ;;
  11923. esac
  11924. done
  11925. (set) 2>&1 |
  11926. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  11927. *${as_nl}ac_space=\ *)
  11928. # `set' does not quote correctly, so add quotes (double-quote
  11929. # substitution turns \\\\ into \\, and sed turns \\ into \).
  11930. sed -n \
  11931. "s/'/'\\\\''/g;
  11932. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11933. ;; #(
  11934. *)
  11935. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11936. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  11937. ;;
  11938. esac |
  11939. sort
  11940. ) |
  11941. sed '
  11942. /^ac_cv_env_/b end
  11943. t clear
  11944. :clear
  11945. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11946. t end
  11947. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11948. :end' >>confcache
  11949. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  11950. if test -w "$cache_file"; then
  11951. test "x$cache_file" != "x/dev/null" &&
  11952. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  11953. $as_echo "$as_me: updating cache $cache_file" >&6;}
  11954. cat confcache >$cache_file
  11955. else
  11956. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  11957. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  11958. fi
  11959. fi
  11960. rm -f confcache
  11961. for ac_func in strcasecmp strncasecmp vsnprintf
  11962. do
  11963. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11964. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  11965. $as_echo_n "checking for $ac_func... " >&6; }
  11966. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11967. $as_echo_n "(cached) " >&6
  11968. else
  11969. cat >conftest.$ac_ext <<_ACEOF
  11970. /* confdefs.h. */
  11971. _ACEOF
  11972. cat confdefs.h >>conftest.$ac_ext
  11973. cat >>conftest.$ac_ext <<_ACEOF
  11974. /* end confdefs.h. */
  11975. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11976. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11977. #define $ac_func innocuous_$ac_func
  11978. /* System header to define __stub macros and hopefully few prototypes,
  11979. which can conflict with char $ac_func (); below.
  11980. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11981. <limits.h> exists even on freestanding compilers. */
  11982. #ifdef __STDC__
  11983. # include <limits.h>
  11984. #else
  11985. # include <assert.h>
  11986. #endif
  11987. #undef $ac_func
  11988. /* Override any GCC internal prototype to avoid an error.
  11989. Use char because int might match the return type of a GCC
  11990. builtin and then its argument prototype would still apply. */
  11991. #ifdef __cplusplus
  11992. extern "C"
  11993. #endif
  11994. char $ac_func ();
  11995. /* The GNU C library defines this for functions which it implements
  11996. to always fail with ENOSYS. Some functions are actually named
  11997. something starting with __ and the normal name is an alias. */
  11998. #if defined __stub_$ac_func || defined __stub___$ac_func
  11999. choke me
  12000. #endif
  12001. int
  12002. main ()
  12003. {
  12004. return $ac_func ();
  12005. ;
  12006. return 0;
  12007. }
  12008. _ACEOF
  12009. rm -f conftest.$ac_objext conftest$ac_exeext
  12010. if { (ac_try="$ac_link"
  12011. case "(($ac_try" in
  12012. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12013. *) ac_try_echo=$ac_try;;
  12014. esac
  12015. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12016. $as_echo "$ac_try_echo") >&5
  12017. (eval "$ac_link") 2>conftest.er1
  12018. ac_status=$?
  12019. grep -v '^ *+' conftest.er1 >conftest.err
  12020. rm -f conftest.er1
  12021. cat conftest.err >&5
  12022. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12023. (exit $ac_status); } && {
  12024. test -z "$ac_cxx_werror_flag" ||
  12025. test ! -s conftest.err
  12026. } && test -s conftest$ac_exeext && {
  12027. test "$cross_compiling" = yes ||
  12028. $as_test_x conftest$ac_exeext
  12029. }; then
  12030. eval "$as_ac_var=yes"
  12031. else
  12032. $as_echo "$as_me: failed program was:" >&5
  12033. sed 's/^/| /' conftest.$ac_ext >&5
  12034. eval "$as_ac_var=no"
  12035. fi
  12036. rm -rf conftest.dSYM
  12037. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12038. conftest$ac_exeext conftest.$ac_ext
  12039. fi
  12040. ac_res=`eval 'as_val=${'$as_ac_var'}
  12041. $as_echo "$as_val"'`
  12042. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  12043. $as_echo "$ac_res" >&6; }
  12044. as_val=`eval 'as_val=${'$as_ac_var'}
  12045. $as_echo "$as_val"'`
  12046. if test "x$as_val" = x""yes; then
  12047. cat >>confdefs.h <<_ACEOF
  12048. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12049. _ACEOF
  12050. fi
  12051. done
  12052. #autoscan suggested this....
  12053. #These are recommended by autoscan, but no code supports it currently
  12054. #AC_CHECK_FUNCS([alarm bzero dup2 getcwd gethostbyaddr gethostbyname gethostname getpass gettimeofday mbrlen
  12055. #mkdir munmap realpath select setlocale socket strchr strerror strpbrk strrchr strstr strtol tzset])
  12056. for ac_func in vsprintf
  12057. do
  12058. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12059. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  12060. $as_echo_n "checking for $ac_func... " >&6; }
  12061. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  12062. $as_echo_n "(cached) " >&6
  12063. else
  12064. cat >conftest.$ac_ext <<_ACEOF
  12065. /* confdefs.h. */
  12066. _ACEOF
  12067. cat confdefs.h >>conftest.$ac_ext
  12068. cat >>conftest.$ac_ext <<_ACEOF
  12069. /* end confdefs.h. */
  12070. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  12071. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  12072. #define $ac_func innocuous_$ac_func
  12073. /* System header to define __stub macros and hopefully few prototypes,
  12074. which can conflict with char $ac_func (); below.
  12075. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  12076. <limits.h> exists even on freestanding compilers. */
  12077. #ifdef __STDC__
  12078. # include <limits.h>
  12079. #else
  12080. # include <assert.h>
  12081. #endif
  12082. #undef $ac_func
  12083. /* Override any GCC internal prototype to avoid an error.
  12084. Use char because int might match the return type of a GCC
  12085. builtin and then its argument prototype would still apply. */
  12086. #ifdef __cplusplus
  12087. extern "C"
  12088. #endif
  12089. char $ac_func ();
  12090. /* The GNU C library defines this for functions which it implements
  12091. to always fail with ENOSYS. Some functions are actually named
  12092. something starting with __ and the normal name is an alias. */
  12093. #if defined __stub_$ac_func || defined __stub___$ac_func
  12094. choke me
  12095. #endif
  12096. int
  12097. main ()
  12098. {
  12099. return $ac_func ();
  12100. ;
  12101. return 0;
  12102. }
  12103. _ACEOF
  12104. rm -f conftest.$ac_objext conftest$ac_exeext
  12105. if { (ac_try="$ac_link"
  12106. case "(($ac_try" in
  12107. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12108. *) ac_try_echo=$ac_try;;
  12109. esac
  12110. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12111. $as_echo "$ac_try_echo") >&5
  12112. (eval "$ac_link") 2>conftest.er1
  12113. ac_status=$?
  12114. grep -v '^ *+' conftest.er1 >conftest.err
  12115. rm -f conftest.er1
  12116. cat conftest.err >&5
  12117. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12118. (exit $ac_status); } && {
  12119. test -z "$ac_cxx_werror_flag" ||
  12120. test ! -s conftest.err
  12121. } && test -s conftest$ac_exeext && {
  12122. test "$cross_compiling" = yes ||
  12123. $as_test_x conftest$ac_exeext
  12124. }; then
  12125. eval "$as_ac_var=yes"
  12126. else
  12127. $as_echo "$as_me: failed program was:" >&5
  12128. sed 's/^/| /' conftest.$ac_ext >&5
  12129. eval "$as_ac_var=no"
  12130. fi
  12131. rm -rf conftest.dSYM
  12132. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12133. conftest$ac_exeext conftest.$ac_ext
  12134. fi
  12135. ac_res=`eval 'as_val=${'$as_ac_var'}
  12136. $as_echo "$as_val"'`
  12137. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  12138. $as_echo "$ac_res" >&6; }
  12139. as_val=`eval 'as_val=${'$as_ac_var'}
  12140. $as_echo "$as_val"'`
  12141. if test "x$as_val" = x""yes; then
  12142. cat >>confdefs.h <<_ACEOF
  12143. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12144. _ACEOF
  12145. fi
  12146. done
  12147. if test "$ac_cv_func_vsprintf" = "no"
  12148. then
  12149. cat << 'EOF' >&2
  12150. configure: error:
  12151. Your system does not have the sprintf/vsprintf libraries.
  12152. These are required to compile almost anything. Sorry.
  12153. EOF
  12154. exit 1
  12155. fi
  12156. for ac_func in uname
  12157. do
  12158. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12159. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  12160. $as_echo_n "checking for $ac_func... " >&6; }
  12161. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  12162. $as_echo_n "(cached) " >&6
  12163. else
  12164. cat >conftest.$ac_ext <<_ACEOF
  12165. /* confdefs.h. */
  12166. _ACEOF
  12167. cat confdefs.h >>conftest.$ac_ext
  12168. cat >>conftest.$ac_ext <<_ACEOF
  12169. /* end confdefs.h. */
  12170. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  12171. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  12172. #define $ac_func innocuous_$ac_func
  12173. /* System header to define __stub macros and hopefully few prototypes,
  12174. which can conflict with char $ac_func (); below.
  12175. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  12176. <limits.h> exists even on freestanding compilers. */
  12177. #ifdef __STDC__
  12178. # include <limits.h>
  12179. #else
  12180. # include <assert.h>
  12181. #endif
  12182. #undef $ac_func
  12183. /* Override any GCC internal prototype to avoid an error.
  12184. Use char because int might match the return type of a GCC
  12185. builtin and then its argument prototype would still apply. */
  12186. #ifdef __cplusplus
  12187. extern "C"
  12188. #endif
  12189. char $ac_func ();
  12190. /* The GNU C library defines this for functions which it implements
  12191. to always fail with ENOSYS. Some functions are actually named
  12192. something starting with __ and the normal name is an alias. */
  12193. #if defined __stub_$ac_func || defined __stub___$ac_func
  12194. choke me
  12195. #endif
  12196. int
  12197. main ()
  12198. {
  12199. return $ac_func ();
  12200. ;
  12201. return 0;
  12202. }
  12203. _ACEOF
  12204. rm -f conftest.$ac_objext conftest$ac_exeext
  12205. if { (ac_try="$ac_link"
  12206. case "(($ac_try" in
  12207. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12208. *) ac_try_echo=$ac_try;;
  12209. esac
  12210. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12211. $as_echo "$ac_try_echo") >&5
  12212. (eval "$ac_link") 2>conftest.er1
  12213. ac_status=$?
  12214. grep -v '^ *+' conftest.er1 >conftest.err
  12215. rm -f conftest.er1
  12216. cat conftest.err >&5
  12217. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12218. (exit $ac_status); } && {
  12219. test -z "$ac_cxx_werror_flag" ||
  12220. test ! -s conftest.err
  12221. } && test -s conftest$ac_exeext && {
  12222. test "$cross_compiling" = yes ||
  12223. $as_test_x conftest$ac_exeext
  12224. }; then
  12225. eval "$as_ac_var=yes"
  12226. else
  12227. $as_echo "$as_me: failed program was:" >&5
  12228. sed 's/^/| /' conftest.$ac_ext >&5
  12229. eval "$as_ac_var=no"
  12230. fi
  12231. rm -rf conftest.dSYM
  12232. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12233. conftest$ac_exeext conftest.$ac_ext
  12234. fi
  12235. ac_res=`eval 'as_val=${'$as_ac_var'}
  12236. $as_echo "$as_val"'`
  12237. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  12238. $as_echo "$ac_res" >&6; }
  12239. as_val=`eval 'as_val=${'$as_ac_var'}
  12240. $as_echo "$as_val"'`
  12241. if test "x$as_val" = x""yes; then
  12242. cat >>confdefs.h <<_ACEOF
  12243. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12244. _ACEOF
  12245. fi
  12246. done
  12247. if test "$ac_cv_func_uname" = "no"
  12248. then
  12249. cat << 'EOF' >&2
  12250. configure: error:
  12251. Your system does not have the uname() function.
  12252. This is required for the botpack.
  12253. EOF
  12254. exit 1
  12255. fi
  12256. # Make sure we have stdc headers, since we can't compile without them
  12257. if test "$ac_cv_header_stdc" = "no"
  12258. then
  12259. cat << 'EOF' >&2
  12260. configure: error:
  12261. Your system must support ANSI C Header files.
  12262. These are required for the language support. Sorry.
  12263. EOF
  12264. exit 1
  12265. fi
  12266. #checkpoint
  12267. cat >confcache <<\_ACEOF
  12268. # This file is a shell script that caches the results of configure
  12269. # tests run on this system so they can be shared between configure
  12270. # scripts and configure runs, see configure's option --config-cache.
  12271. # It is not useful on other systems. If it contains results you don't
  12272. # want to keep, you may remove or edit it.
  12273. #
  12274. # config.status only pays attention to the cache file if you give it
  12275. # the --recheck option to rerun configure.
  12276. #
  12277. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  12278. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  12279. # following values.
  12280. _ACEOF
  12281. # The following way of writing the cache mishandles newlines in values,
  12282. # but we know of no workaround that is simple, portable, and efficient.
  12283. # So, we kill variables containing newlines.
  12284. # Ultrix sh set writes to stderr and can't be redirected directly,
  12285. # and sets the high bit in the cache file unless we assign to the vars.
  12286. (
  12287. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  12288. eval ac_val=\$$ac_var
  12289. case $ac_val in #(
  12290. *${as_nl}*)
  12291. case $ac_var in #(
  12292. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  12293. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  12294. esac
  12295. case $ac_var in #(
  12296. _ | IFS | as_nl) ;; #(
  12297. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  12298. *) $as_unset $ac_var ;;
  12299. esac ;;
  12300. esac
  12301. done
  12302. (set) 2>&1 |
  12303. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  12304. *${as_nl}ac_space=\ *)
  12305. # `set' does not quote correctly, so add quotes (double-quote
  12306. # substitution turns \\\\ into \\, and sed turns \\ into \).
  12307. sed -n \
  12308. "s/'/'\\\\''/g;
  12309. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  12310. ;; #(
  12311. *)
  12312. # `set' quotes correctly as required by POSIX, so do not add quotes.
  12313. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  12314. ;;
  12315. esac |
  12316. sort
  12317. ) |
  12318. sed '
  12319. /^ac_cv_env_/b end
  12320. t clear
  12321. :clear
  12322. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  12323. t end
  12324. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  12325. :end' >>confcache
  12326. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  12327. if test -w "$cache_file"; then
  12328. test "x$cache_file" != "x/dev/null" &&
  12329. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  12330. $as_echo "$as_me: updating cache $cache_file" >&6;}
  12331. cat confcache >$cache_file
  12332. else
  12333. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  12334. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  12335. fi
  12336. fi
  12337. rm -f confcache
  12338. VERSION=`grep "char" $srcdir/src/main.c | $AWK '/egg_version/ {print $5}' | sed -e 's/\"//g' | sed -e 's/\;//g'`
  12339. version_num=`echo $VERSION | $AWK 'BEGIN {FS = "."} {printf("%d%02d%02d", $1, $2, $3)}'`
  12340. cat >>confdefs.h <<_ACEOF
  12341. #define EGG_VERSION $version_num
  12342. _ACEOF
  12343. #FIND_WRAPS
  12344. case "$srcdir" in
  12345. [\\/]* | ?:[\\/]*)
  12346. MOD_UPDIR=""
  12347. ;;
  12348. *)
  12349. MOD_UPDIR="../"
  12350. ;;
  12351. esac
  12352. 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"
  12353. for mf in $files; do
  12354. # Strip MF so we end up with the name of the file.
  12355. # echo "MF: $mf"
  12356. mf=`echo "$mf" | sed -e 's/:.*$//'`
  12357. dirpart=`$as_dirname -- "$mf" ||
  12358. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12359. X"$mf" : 'X\(//\)[^/]' \| \
  12360. X"$mf" : 'X\(//\)$' \| \
  12361. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  12362. $as_echo X"$mf" |
  12363. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12364. s//\1/
  12365. q
  12366. }
  12367. /^X\(\/\/\)[^/].*/{
  12368. s//\1/
  12369. q
  12370. }
  12371. /^X\(\/\/\)$/{
  12372. s//\1/
  12373. q
  12374. }
  12375. /^X\(\/\).*/{
  12376. s//\1/
  12377. q
  12378. }
  12379. s/.*/./; q'`
  12380. # echo "dirpart: $dirpart mf: $mf"
  12381. # rm -rf "$dirpart/.deps/"
  12382. rm -f "$dirpart/.deps/includes"
  12383. test -d "$dirpart/.deps" || mkdir "$dirpart/.deps"
  12384. for file in `sed -n -e '
  12385. /^OBJS = .*\\\\$/ {
  12386. s/^OBJS = //
  12387. :loop
  12388. s/\\\\$//
  12389. p
  12390. n
  12391. /\\\\$/ b loop
  12392. p
  12393. }
  12394. /^OBJS = / s/^OBJS = //p' < "$mf"`;
  12395. do
  12396. base=`basename $file .o`
  12397. test -f "$dirpart/$base.c" || continue
  12398. if ! test -f "$dirpart/.deps/$base.Po"; then
  12399. echo '# dummy' > "$dirpart/.deps/$base.Po"
  12400. #Remove the .o file, because it needs to be recompiled for its dependancies.
  12401. if test -f "$dirpart/$base.o"; then
  12402. rm -f "$dirpart/$base.o"
  12403. fi
  12404. fi
  12405. echo "include .deps/$base.Po" >> "$dirpart/.deps/includes"
  12406. echo "_$base.c:" >> "$dirpart/.deps/includes"
  12407. done
  12408. done
  12409. ac_config_files="$ac_config_files Makefile lib/Makefile src/Makefile src/compat/Makefile src/crypto/Makefile src/mod/Makefile src/buildinfo.h"
  12410. cat >confcache <<\_ACEOF
  12411. # This file is a shell script that caches the results of configure
  12412. # tests run on this system so they can be shared between configure
  12413. # scripts and configure runs, see configure's option --config-cache.
  12414. # It is not useful on other systems. If it contains results you don't
  12415. # want to keep, you may remove or edit it.
  12416. #
  12417. # config.status only pays attention to the cache file if you give it
  12418. # the --recheck option to rerun configure.
  12419. #
  12420. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  12421. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  12422. # following values.
  12423. _ACEOF
  12424. # The following way of writing the cache mishandles newlines in values,
  12425. # but we know of no workaround that is simple, portable, and efficient.
  12426. # So, we kill variables containing newlines.
  12427. # Ultrix sh set writes to stderr and can't be redirected directly,
  12428. # and sets the high bit in the cache file unless we assign to the vars.
  12429. (
  12430. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  12431. eval ac_val=\$$ac_var
  12432. case $ac_val in #(
  12433. *${as_nl}*)
  12434. case $ac_var in #(
  12435. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  12436. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  12437. esac
  12438. case $ac_var in #(
  12439. _ | IFS | as_nl) ;; #(
  12440. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  12441. *) $as_unset $ac_var ;;
  12442. esac ;;
  12443. esac
  12444. done
  12445. (set) 2>&1 |
  12446. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  12447. *${as_nl}ac_space=\ *)
  12448. # `set' does not quote correctly, so add quotes (double-quote
  12449. # substitution turns \\\\ into \\, and sed turns \\ into \).
  12450. sed -n \
  12451. "s/'/'\\\\''/g;
  12452. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  12453. ;; #(
  12454. *)
  12455. # `set' quotes correctly as required by POSIX, so do not add quotes.
  12456. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  12457. ;;
  12458. esac |
  12459. sort
  12460. ) |
  12461. sed '
  12462. /^ac_cv_env_/b end
  12463. t clear
  12464. :clear
  12465. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  12466. t end
  12467. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  12468. :end' >>confcache
  12469. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  12470. if test -w "$cache_file"; then
  12471. test "x$cache_file" != "x/dev/null" &&
  12472. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  12473. $as_echo "$as_me: updating cache $cache_file" >&6;}
  12474. cat confcache >$cache_file
  12475. else
  12476. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  12477. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  12478. fi
  12479. fi
  12480. rm -f confcache
  12481. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  12482. # Let make expand exec_prefix.
  12483. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  12484. DEFS=-DHAVE_CONFIG_H
  12485. ac_libobjs=
  12486. ac_ltlibobjs=
  12487. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  12488. # 1. Remove the extension, and $U if already installed.
  12489. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  12490. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  12491. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  12492. # will be set to the directory where LIBOBJS objects are built.
  12493. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  12494. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  12495. done
  12496. LIBOBJS=$ac_libobjs
  12497. LTLIBOBJS=$ac_ltlibobjs
  12498. : ${CONFIG_STATUS=./config.status}
  12499. ac_write_fail=0
  12500. ac_clean_files_save=$ac_clean_files
  12501. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  12502. { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  12503. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  12504. cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12505. #! $SHELL
  12506. # Generated by $as_me.
  12507. # Run this file to recreate the current configuration.
  12508. # Compiler output produced by configure, useful for debugging
  12509. # configure, is in config.log if it exists.
  12510. debug=false
  12511. ac_cs_recheck=false
  12512. ac_cs_silent=false
  12513. SHELL=\${CONFIG_SHELL-$SHELL}
  12514. _ACEOF
  12515. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12516. ## --------------------- ##
  12517. ## M4sh Initialization. ##
  12518. ## --------------------- ##
  12519. # Be more Bourne compatible
  12520. DUALCASE=1; export DUALCASE # for MKS sh
  12521. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  12522. emulate sh
  12523. NULLCMD=:
  12524. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  12525. # is contrary to our usage. Disable this feature.
  12526. alias -g '${1+"$@"}'='"$@"'
  12527. setopt NO_GLOB_SUBST
  12528. else
  12529. case `(set -o) 2>/dev/null` in
  12530. *posix*) set -o posix ;;
  12531. esac
  12532. fi
  12533. # PATH needs CR
  12534. # Avoid depending upon Character Ranges.
  12535. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  12536. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  12537. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  12538. as_cr_digits='0123456789'
  12539. as_cr_alnum=$as_cr_Letters$as_cr_digits
  12540. as_nl='
  12541. '
  12542. export as_nl
  12543. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  12544. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  12545. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  12546. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  12547. if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  12548. as_echo='printf %s\n'
  12549. as_echo_n='printf %s'
  12550. else
  12551. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  12552. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  12553. as_echo_n='/usr/ucb/echo -n'
  12554. else
  12555. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  12556. as_echo_n_body='eval
  12557. arg=$1;
  12558. case $arg in
  12559. *"$as_nl"*)
  12560. expr "X$arg" : "X\\(.*\\)$as_nl";
  12561. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  12562. esac;
  12563. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  12564. '
  12565. export as_echo_n_body
  12566. as_echo_n='sh -c $as_echo_n_body as_echo'
  12567. fi
  12568. export as_echo_body
  12569. as_echo='sh -c $as_echo_body as_echo'
  12570. fi
  12571. # The user is always right.
  12572. if test "${PATH_SEPARATOR+set}" != set; then
  12573. PATH_SEPARATOR=:
  12574. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  12575. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  12576. PATH_SEPARATOR=';'
  12577. }
  12578. fi
  12579. # Support unset when possible.
  12580. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  12581. as_unset=unset
  12582. else
  12583. as_unset=false
  12584. fi
  12585. # IFS
  12586. # We need space, tab and new line, in precisely that order. Quoting is
  12587. # there to prevent editors from complaining about space-tab.
  12588. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  12589. # splitting by setting IFS to empty value.)
  12590. IFS=" "" $as_nl"
  12591. # Find who we are. Look in the path if we contain no directory separator.
  12592. case $0 in
  12593. *[\\/]* ) as_myself=$0 ;;
  12594. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12595. for as_dir in $PATH
  12596. do
  12597. IFS=$as_save_IFS
  12598. test -z "$as_dir" && as_dir=.
  12599. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  12600. done
  12601. IFS=$as_save_IFS
  12602. ;;
  12603. esac
  12604. # We did not find ourselves, most probably we were run as `sh COMMAND'
  12605. # in which case we are not to be found in the path.
  12606. if test "x$as_myself" = x; then
  12607. as_myself=$0
  12608. fi
  12609. if test ! -f "$as_myself"; then
  12610. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  12611. { (exit 1); exit 1; }
  12612. fi
  12613. # Work around bugs in pre-3.0 UWIN ksh.
  12614. for as_var in ENV MAIL MAILPATH
  12615. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  12616. done
  12617. PS1='$ '
  12618. PS2='> '
  12619. PS4='+ '
  12620. # NLS nuisances.
  12621. LC_ALL=C
  12622. export LC_ALL
  12623. LANGUAGE=C
  12624. export LANGUAGE
  12625. # Required to use basename.
  12626. if expr a : '\(a\)' >/dev/null 2>&1 &&
  12627. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  12628. as_expr=expr
  12629. else
  12630. as_expr=false
  12631. fi
  12632. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  12633. as_basename=basename
  12634. else
  12635. as_basename=false
  12636. fi
  12637. # Name of the executable.
  12638. as_me=`$as_basename -- "$0" ||
  12639. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  12640. X"$0" : 'X\(//\)$' \| \
  12641. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  12642. $as_echo X/"$0" |
  12643. sed '/^.*\/\([^/][^/]*\)\/*$/{
  12644. s//\1/
  12645. q
  12646. }
  12647. /^X\/\(\/\/\)$/{
  12648. s//\1/
  12649. q
  12650. }
  12651. /^X\/\(\/\).*/{
  12652. s//\1/
  12653. q
  12654. }
  12655. s/.*/./; q'`
  12656. # CDPATH.
  12657. $as_unset CDPATH
  12658. as_lineno_1=$LINENO
  12659. as_lineno_2=$LINENO
  12660. test "x$as_lineno_1" != "x$as_lineno_2" &&
  12661. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  12662. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  12663. # uniformly replaced by the line number. The first 'sed' inserts a
  12664. # line-number line after each line using $LINENO; the second 'sed'
  12665. # does the real work. The second script uses 'N' to pair each
  12666. # line-number line with the line containing $LINENO, and appends
  12667. # trailing '-' during substitution so that $LINENO is not a special
  12668. # case at line end.
  12669. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  12670. # scripts with optimization help from Paolo Bonzini. Blame Lee
  12671. # E. McMahon (1931-1989) for sed's syntax. :-)
  12672. sed -n '
  12673. p
  12674. /[$]LINENO/=
  12675. ' <$as_myself |
  12676. sed '
  12677. s/[$]LINENO.*/&-/
  12678. t lineno
  12679. b
  12680. :lineno
  12681. N
  12682. :loop
  12683. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  12684. t loop
  12685. s/-\n.*//
  12686. ' >$as_me.lineno &&
  12687. chmod +x "$as_me.lineno" ||
  12688. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  12689. { (exit 1); exit 1; }; }
  12690. # Don't try to exec as it changes $[0], causing all sort of problems
  12691. # (the dirname of $[0] is not the place where we might find the
  12692. # original and so on. Autoconf is especially sensitive to this).
  12693. . "./$as_me.lineno"
  12694. # Exit status is that of the last command.
  12695. exit
  12696. }
  12697. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  12698. as_dirname=dirname
  12699. else
  12700. as_dirname=false
  12701. fi
  12702. ECHO_C= ECHO_N= ECHO_T=
  12703. case `echo -n x` in
  12704. -n*)
  12705. case `echo 'x\c'` in
  12706. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  12707. *) ECHO_C='\c';;
  12708. esac;;
  12709. *)
  12710. ECHO_N='-n';;
  12711. esac
  12712. if expr a : '\(a\)' >/dev/null 2>&1 &&
  12713. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  12714. as_expr=expr
  12715. else
  12716. as_expr=false
  12717. fi
  12718. rm -f conf$$ conf$$.exe conf$$.file
  12719. if test -d conf$$.dir; then
  12720. rm -f conf$$.dir/conf$$.file
  12721. else
  12722. rm -f conf$$.dir
  12723. mkdir conf$$.dir 2>/dev/null
  12724. fi
  12725. if (echo >conf$$.file) 2>/dev/null; then
  12726. if ln -s conf$$.file conf$$ 2>/dev/null; then
  12727. as_ln_s='ln -s'
  12728. # ... but there are two gotchas:
  12729. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  12730. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  12731. # In both cases, we have to default to `cp -p'.
  12732. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  12733. as_ln_s='cp -p'
  12734. elif ln conf$$.file conf$$ 2>/dev/null; then
  12735. as_ln_s=ln
  12736. else
  12737. as_ln_s='cp -p'
  12738. fi
  12739. else
  12740. as_ln_s='cp -p'
  12741. fi
  12742. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  12743. rmdir conf$$.dir 2>/dev/null
  12744. if mkdir -p . 2>/dev/null; then
  12745. as_mkdir_p=:
  12746. else
  12747. test -d ./-p && rmdir ./-p
  12748. as_mkdir_p=false
  12749. fi
  12750. if test -x / >/dev/null 2>&1; then
  12751. as_test_x='test -x'
  12752. else
  12753. if ls -dL / >/dev/null 2>&1; then
  12754. as_ls_L_option=L
  12755. else
  12756. as_ls_L_option=
  12757. fi
  12758. as_test_x='
  12759. eval sh -c '\''
  12760. if test -d "$1"; then
  12761. test -d "$1/.";
  12762. else
  12763. case $1 in
  12764. -*)set "./$1";;
  12765. esac;
  12766. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  12767. ???[sx]*):;;*)false;;esac;fi
  12768. '\'' sh
  12769. '
  12770. fi
  12771. as_executable_p=$as_test_x
  12772. # Sed expression to map a string onto a valid CPP name.
  12773. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  12774. # Sed expression to map a string onto a valid variable name.
  12775. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  12776. exec 6>&1
  12777. # Save the log message, to keep $[0] and so on meaningful, and to
  12778. # report actual input values of CONFIG_FILES etc. instead of their
  12779. # values after options handling.
  12780. ac_log="
  12781. This file was extended by $as_me, which was
  12782. generated by GNU Autoconf 2.63. Invocation command line was
  12783. CONFIG_FILES = $CONFIG_FILES
  12784. CONFIG_HEADERS = $CONFIG_HEADERS
  12785. CONFIG_LINKS = $CONFIG_LINKS
  12786. CONFIG_COMMANDS = $CONFIG_COMMANDS
  12787. $ $0 $@
  12788. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  12789. "
  12790. _ACEOF
  12791. case $ac_config_files in *"
  12792. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  12793. esac
  12794. case $ac_config_headers in *"
  12795. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  12796. esac
  12797. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12798. # Files that config.status was made for.
  12799. config_files="$ac_config_files"
  12800. config_headers="$ac_config_headers"
  12801. _ACEOF
  12802. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12803. ac_cs_usage="\
  12804. \`$as_me' instantiates files from templates according to the
  12805. current configuration.
  12806. Usage: $0 [OPTION]... [FILE]...
  12807. -h, --help print this help, then exit
  12808. -V, --version print version number and configuration settings, then exit
  12809. -q, --quiet, --silent
  12810. do not print progress messages
  12811. -d, --debug don't remove temporary files
  12812. --recheck update $as_me by reconfiguring in the same conditions
  12813. --file=FILE[:TEMPLATE]
  12814. instantiate the configuration file FILE
  12815. --header=FILE[:TEMPLATE]
  12816. instantiate the configuration header FILE
  12817. Configuration files:
  12818. $config_files
  12819. Configuration headers:
  12820. $config_headers
  12821. Report bugs to <bug-autoconf@gnu.org>."
  12822. _ACEOF
  12823. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12824. ac_cs_version="\\
  12825. config.status
  12826. configured by $0, generated by GNU Autoconf 2.63,
  12827. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  12828. Copyright (C) 2008 Free Software Foundation, Inc.
  12829. This config.status script is free software; the Free Software Foundation
  12830. gives unlimited permission to copy, distribute and modify it."
  12831. ac_pwd='$ac_pwd'
  12832. srcdir='$srcdir'
  12833. AWK='$AWK'
  12834. test -n "\$AWK" || AWK=awk
  12835. _ACEOF
  12836. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12837. # The default lists apply if the user does not specify any file.
  12838. ac_need_defaults=:
  12839. while test $# != 0
  12840. do
  12841. case $1 in
  12842. --*=*)
  12843. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  12844. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  12845. ac_shift=:
  12846. ;;
  12847. *)
  12848. ac_option=$1
  12849. ac_optarg=$2
  12850. ac_shift=shift
  12851. ;;
  12852. esac
  12853. case $ac_option in
  12854. # Handling of the options.
  12855. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  12856. ac_cs_recheck=: ;;
  12857. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  12858. $as_echo "$ac_cs_version"; exit ;;
  12859. --debug | --debu | --deb | --de | --d | -d )
  12860. debug=: ;;
  12861. --file | --fil | --fi | --f )
  12862. $ac_shift
  12863. case $ac_optarg in
  12864. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  12865. esac
  12866. CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
  12867. ac_need_defaults=false;;
  12868. --header | --heade | --head | --hea )
  12869. $ac_shift
  12870. case $ac_optarg in
  12871. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  12872. esac
  12873. CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
  12874. ac_need_defaults=false;;
  12875. --he | --h)
  12876. # Conflict between --help and --header
  12877. { $as_echo "$as_me: error: ambiguous option: $1
  12878. Try \`$0 --help' for more information." >&2
  12879. { (exit 1); exit 1; }; };;
  12880. --help | --hel | -h )
  12881. $as_echo "$ac_cs_usage"; exit ;;
  12882. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  12883. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  12884. ac_cs_silent=: ;;
  12885. # This is an error.
  12886. -*) { $as_echo "$as_me: error: unrecognized option: $1
  12887. Try \`$0 --help' for more information." >&2
  12888. { (exit 1); exit 1; }; } ;;
  12889. *) ac_config_targets="$ac_config_targets $1"
  12890. ac_need_defaults=false ;;
  12891. esac
  12892. shift
  12893. done
  12894. ac_configure_extra_args=
  12895. if $ac_cs_silent; then
  12896. exec 6>/dev/null
  12897. ac_configure_extra_args="$ac_configure_extra_args --silent"
  12898. fi
  12899. _ACEOF
  12900. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12901. if \$ac_cs_recheck; then
  12902. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  12903. shift
  12904. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  12905. CONFIG_SHELL='$SHELL'
  12906. export CONFIG_SHELL
  12907. exec "\$@"
  12908. fi
  12909. _ACEOF
  12910. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12911. exec 5>>config.log
  12912. {
  12913. echo
  12914. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  12915. ## Running $as_me. ##
  12916. _ASBOX
  12917. $as_echo "$ac_log"
  12918. } >&5
  12919. _ACEOF
  12920. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12921. _ACEOF
  12922. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12923. # Handling of arguments.
  12924. for ac_config_target in $ac_config_targets
  12925. do
  12926. case $ac_config_target in
  12927. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  12928. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  12929. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  12930. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  12931. "src/compat/Makefile") CONFIG_FILES="$CONFIG_FILES src/compat/Makefile" ;;
  12932. "src/crypto/Makefile") CONFIG_FILES="$CONFIG_FILES src/crypto/Makefile" ;;
  12933. "src/mod/Makefile") CONFIG_FILES="$CONFIG_FILES src/mod/Makefile" ;;
  12934. "src/buildinfo.h") CONFIG_FILES="$CONFIG_FILES src/buildinfo.h" ;;
  12935. *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  12936. $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  12937. { (exit 1); exit 1; }; };;
  12938. esac
  12939. done
  12940. # If the user did not use the arguments to specify the items to instantiate,
  12941. # then the envvar interface is used. Set only those that are not.
  12942. # We use the long form for the default assignment because of an extremely
  12943. # bizarre bug on SunOS 4.1.3.
  12944. if $ac_need_defaults; then
  12945. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  12946. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  12947. fi
  12948. # Have a temporary directory for convenience. Make it in the build tree
  12949. # simply because there is no reason against having it here, and in addition,
  12950. # creating and moving files from /tmp can sometimes cause problems.
  12951. # Hook for its removal unless debugging.
  12952. # Note that there is a small window in which the directory will not be cleaned:
  12953. # after its creation but before its name has been assigned to `$tmp'.
  12954. $debug ||
  12955. {
  12956. tmp=
  12957. trap 'exit_status=$?
  12958. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  12959. ' 0
  12960. trap '{ (exit 1); exit 1; }' 1 2 13 15
  12961. }
  12962. # Create a (secure) tmp directory for tmp files.
  12963. {
  12964. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  12965. test -n "$tmp" && test -d "$tmp"
  12966. } ||
  12967. {
  12968. tmp=./conf$$-$RANDOM
  12969. (umask 077 && mkdir "$tmp")
  12970. } ||
  12971. {
  12972. $as_echo "$as_me: cannot create a temporary directory in ." >&2
  12973. { (exit 1); exit 1; }
  12974. }
  12975. # Set up the scripts for CONFIG_FILES section.
  12976. # No need to generate them if there are no CONFIG_FILES.
  12977. # This happens for instance with `./config.status config.h'.
  12978. if test -n "$CONFIG_FILES"; then
  12979. ac_cr=' '
  12980. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  12981. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  12982. ac_cs_awk_cr='\\r'
  12983. else
  12984. ac_cs_awk_cr=$ac_cr
  12985. fi
  12986. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  12987. _ACEOF
  12988. {
  12989. echo "cat >conf$$subs.awk <<_ACEOF" &&
  12990. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  12991. echo "_ACEOF"
  12992. } >conf$$subs.sh ||
  12993. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  12994. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  12995. { (exit 1); exit 1; }; }
  12996. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  12997. ac_delim='%!_!# '
  12998. for ac_last_try in false false false false false :; do
  12999. . ./conf$$subs.sh ||
  13000. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  13001. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  13002. { (exit 1); exit 1; }; }
  13003. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  13004. if test $ac_delim_n = $ac_delim_num; then
  13005. break
  13006. elif $ac_last_try; then
  13007. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  13008. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  13009. { (exit 1); exit 1; }; }
  13010. else
  13011. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  13012. fi
  13013. done
  13014. rm -f conf$$subs.sh
  13015. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13016. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  13017. _ACEOF
  13018. sed -n '
  13019. h
  13020. s/^/S["/; s/!.*/"]=/
  13021. p
  13022. g
  13023. s/^[^!]*!//
  13024. :repl
  13025. t repl
  13026. s/'"$ac_delim"'$//
  13027. t delim
  13028. :nl
  13029. h
  13030. s/\(.\{148\}\).*/\1/
  13031. t more1
  13032. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  13033. p
  13034. n
  13035. b repl
  13036. :more1
  13037. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  13038. p
  13039. g
  13040. s/.\{148\}//
  13041. t nl
  13042. :delim
  13043. h
  13044. s/\(.\{148\}\).*/\1/
  13045. t more2
  13046. s/["\\]/\\&/g; s/^/"/; s/$/"/
  13047. p
  13048. b
  13049. :more2
  13050. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  13051. p
  13052. g
  13053. s/.\{148\}//
  13054. t delim
  13055. ' <conf$$subs.awk | sed '
  13056. /^[^""]/{
  13057. N
  13058. s/\n//
  13059. }
  13060. ' >>$CONFIG_STATUS || ac_write_fail=1
  13061. rm -f conf$$subs.awk
  13062. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13063. _ACAWK
  13064. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  13065. for (key in S) S_is_set[key] = 1
  13066. FS = ""
  13067. }
  13068. {
  13069. line = $ 0
  13070. nfields = split(line, field, "@")
  13071. substed = 0
  13072. len = length(field[1])
  13073. for (i = 2; i < nfields; i++) {
  13074. key = field[i]
  13075. keylen = length(key)
  13076. if (S_is_set[key]) {
  13077. value = S[key]
  13078. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  13079. len += length(value) + length(field[++i])
  13080. substed = 1
  13081. } else
  13082. len += 1 + keylen
  13083. }
  13084. print line
  13085. }
  13086. _ACAWK
  13087. _ACEOF
  13088. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13089. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  13090. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  13091. else
  13092. cat
  13093. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  13094. || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
  13095. $as_echo "$as_me: error: could not setup config files machinery" >&2;}
  13096. { (exit 1); exit 1; }; }
  13097. _ACEOF
  13098. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  13099. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  13100. # trailing colons and then remove the whole line if VPATH becomes empty
  13101. # (actually we leave an empty line to preserve line numbers).
  13102. if test "x$srcdir" = x.; then
  13103. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  13104. s/:*\$(srcdir):*/:/
  13105. s/:*\${srcdir}:*/:/
  13106. s/:*@srcdir@:*/:/
  13107. s/^\([^=]*=[ ]*\):*/\1/
  13108. s/:*$//
  13109. s/^[^=]*=[ ]*$//
  13110. }'
  13111. fi
  13112. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13113. fi # test -n "$CONFIG_FILES"
  13114. # Set up the scripts for CONFIG_HEADERS section.
  13115. # No need to generate them if there are no CONFIG_HEADERS.
  13116. # This happens for instance with `./config.status Makefile'.
  13117. if test -n "$CONFIG_HEADERS"; then
  13118. cat >"$tmp/defines.awk" <<\_ACAWK ||
  13119. BEGIN {
  13120. _ACEOF
  13121. # Transform confdefs.h into an awk script `defines.awk', embedded as
  13122. # here-document in config.status, that substitutes the proper values into
  13123. # config.h.in to produce config.h.
  13124. # Create a delimiter string that does not exist in confdefs.h, to ease
  13125. # handling of long lines.
  13126. ac_delim='%!_!# '
  13127. for ac_last_try in false false :; do
  13128. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  13129. if test -z "$ac_t"; then
  13130. break
  13131. elif $ac_last_try; then
  13132. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
  13133. $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
  13134. { (exit 1); exit 1; }; }
  13135. else
  13136. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  13137. fi
  13138. done
  13139. # For the awk script, D is an array of macro values keyed by name,
  13140. # likewise P contains macro parameters if any. Preserve backslash
  13141. # newline sequences.
  13142. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  13143. sed -n '
  13144. s/.\{148\}/&'"$ac_delim"'/g
  13145. t rset
  13146. :rset
  13147. s/^[ ]*#[ ]*define[ ][ ]*/ /
  13148. t def
  13149. d
  13150. :def
  13151. s/\\$//
  13152. t bsnl
  13153. s/["\\]/\\&/g
  13154. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  13155. D["\1"]=" \3"/p
  13156. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  13157. d
  13158. :bsnl
  13159. s/["\\]/\\&/g
  13160. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  13161. D["\1"]=" \3\\\\\\n"\\/p
  13162. t cont
  13163. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  13164. t cont
  13165. d
  13166. :cont
  13167. n
  13168. s/.\{148\}/&'"$ac_delim"'/g
  13169. t clear
  13170. :clear
  13171. s/\\$//
  13172. t bsnlc
  13173. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  13174. d
  13175. :bsnlc
  13176. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  13177. b cont
  13178. ' <confdefs.h | sed '
  13179. s/'"$ac_delim"'/"\\\
  13180. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  13181. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13182. for (key in D) D_is_set[key] = 1
  13183. FS = ""
  13184. }
  13185. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  13186. line = \$ 0
  13187. split(line, arg, " ")
  13188. if (arg[1] == "#") {
  13189. defundef = arg[2]
  13190. mac1 = arg[3]
  13191. } else {
  13192. defundef = substr(arg[1], 2)
  13193. mac1 = arg[2]
  13194. }
  13195. split(mac1, mac2, "(") #)
  13196. macro = mac2[1]
  13197. prefix = substr(line, 1, index(line, defundef) - 1)
  13198. if (D_is_set[macro]) {
  13199. # Preserve the white space surrounding the "#".
  13200. print prefix "define", macro P[macro] D[macro]
  13201. next
  13202. } else {
  13203. # Replace #undef with comments. This is necessary, for example,
  13204. # in the case of _POSIX_SOURCE, which is predefined and required
  13205. # on some systems where configure will not decide to define it.
  13206. if (defundef == "undef") {
  13207. print "/*", prefix defundef, macro, "*/"
  13208. next
  13209. }
  13210. }
  13211. }
  13212. { print }
  13213. _ACAWK
  13214. _ACEOF
  13215. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13216. { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
  13217. $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
  13218. { (exit 1); exit 1; }; }
  13219. fi # test -n "$CONFIG_HEADERS"
  13220. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
  13221. shift
  13222. for ac_tag
  13223. do
  13224. case $ac_tag in
  13225. :[FHLC]) ac_mode=$ac_tag; continue;;
  13226. esac
  13227. case $ac_mode$ac_tag in
  13228. :[FHL]*:*);;
  13229. :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
  13230. $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
  13231. { (exit 1); exit 1; }; };;
  13232. :[FH]-) ac_tag=-:-;;
  13233. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  13234. esac
  13235. ac_save_IFS=$IFS
  13236. IFS=:
  13237. set x $ac_tag
  13238. IFS=$ac_save_IFS
  13239. shift
  13240. ac_file=$1
  13241. shift
  13242. case $ac_mode in
  13243. :L) ac_source=$1;;
  13244. :[FH])
  13245. ac_file_inputs=
  13246. for ac_f
  13247. do
  13248. case $ac_f in
  13249. -) ac_f="$tmp/stdin";;
  13250. *) # Look for the file first in the build tree, then in the source tree
  13251. # (if the path is not absolute). The absolute path cannot be DOS-style,
  13252. # because $ac_f cannot contain `:'.
  13253. test -f "$ac_f" ||
  13254. case $ac_f in
  13255. [\\/$]*) false;;
  13256. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  13257. esac ||
  13258. { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  13259. $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  13260. { (exit 1); exit 1; }; };;
  13261. esac
  13262. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  13263. ac_file_inputs="$ac_file_inputs '$ac_f'"
  13264. done
  13265. # Let's still pretend it is `configure' which instantiates (i.e., don't
  13266. # use $as_me), people would be surprised to read:
  13267. # /* config.h. Generated by config.status. */
  13268. configure_input='Generated from '`
  13269. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  13270. `' by configure.'
  13271. if test x"$ac_file" != x-; then
  13272. configure_input="$ac_file. $configure_input"
  13273. { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
  13274. $as_echo "$as_me: creating $ac_file" >&6;}
  13275. fi
  13276. # Neutralize special characters interpreted by sed in replacement strings.
  13277. case $configure_input in #(
  13278. *\&* | *\|* | *\\* )
  13279. ac_sed_conf_input=`$as_echo "$configure_input" |
  13280. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  13281. *) ac_sed_conf_input=$configure_input;;
  13282. esac
  13283. case $ac_tag in
  13284. *:-:* | *:-) cat >"$tmp/stdin" \
  13285. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  13286. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  13287. { (exit 1); exit 1; }; } ;;
  13288. esac
  13289. ;;
  13290. esac
  13291. ac_dir=`$as_dirname -- "$ac_file" ||
  13292. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13293. X"$ac_file" : 'X\(//\)[^/]' \| \
  13294. X"$ac_file" : 'X\(//\)$' \| \
  13295. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  13296. $as_echo X"$ac_file" |
  13297. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13298. s//\1/
  13299. q
  13300. }
  13301. /^X\(\/\/\)[^/].*/{
  13302. s//\1/
  13303. q
  13304. }
  13305. /^X\(\/\/\)$/{
  13306. s//\1/
  13307. q
  13308. }
  13309. /^X\(\/\).*/{
  13310. s//\1/
  13311. q
  13312. }
  13313. s/.*/./; q'`
  13314. { as_dir="$ac_dir"
  13315. case $as_dir in #(
  13316. -*) as_dir=./$as_dir;;
  13317. esac
  13318. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  13319. as_dirs=
  13320. while :; do
  13321. case $as_dir in #(
  13322. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  13323. *) as_qdir=$as_dir;;
  13324. esac
  13325. as_dirs="'$as_qdir' $as_dirs"
  13326. as_dir=`$as_dirname -- "$as_dir" ||
  13327. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13328. X"$as_dir" : 'X\(//\)[^/]' \| \
  13329. X"$as_dir" : 'X\(//\)$' \| \
  13330. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  13331. $as_echo X"$as_dir" |
  13332. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13333. s//\1/
  13334. q
  13335. }
  13336. /^X\(\/\/\)[^/].*/{
  13337. s//\1/
  13338. q
  13339. }
  13340. /^X\(\/\/\)$/{
  13341. s//\1/
  13342. q
  13343. }
  13344. /^X\(\/\).*/{
  13345. s//\1/
  13346. q
  13347. }
  13348. s/.*/./; q'`
  13349. test -d "$as_dir" && break
  13350. done
  13351. test -z "$as_dirs" || eval "mkdir $as_dirs"
  13352. } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  13353. $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  13354. { (exit 1); exit 1; }; }; }
  13355. ac_builddir=.
  13356. case "$ac_dir" in
  13357. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13358. *)
  13359. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  13360. # A ".." for each directory in $ac_dir_suffix.
  13361. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  13362. case $ac_top_builddir_sub in
  13363. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13364. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  13365. esac ;;
  13366. esac
  13367. ac_abs_top_builddir=$ac_pwd
  13368. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  13369. # for backward compatibility:
  13370. ac_top_builddir=$ac_top_build_prefix
  13371. case $srcdir in
  13372. .) # We are building in place.
  13373. ac_srcdir=.
  13374. ac_top_srcdir=$ac_top_builddir_sub
  13375. ac_abs_top_srcdir=$ac_pwd ;;
  13376. [\\/]* | ?:[\\/]* ) # Absolute name.
  13377. ac_srcdir=$srcdir$ac_dir_suffix;
  13378. ac_top_srcdir=$srcdir
  13379. ac_abs_top_srcdir=$srcdir ;;
  13380. *) # Relative name.
  13381. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  13382. ac_top_srcdir=$ac_top_build_prefix$srcdir
  13383. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  13384. esac
  13385. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  13386. case $ac_mode in
  13387. :F)
  13388. #
  13389. # CONFIG_FILE
  13390. #
  13391. _ACEOF
  13392. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13393. # If the template does not know about datarootdir, expand it.
  13394. # FIXME: This hack should be removed a few years after 2.60.
  13395. ac_datarootdir_hack=; ac_datarootdir_seen=
  13396. ac_sed_dataroot='
  13397. /datarootdir/ {
  13398. p
  13399. q
  13400. }
  13401. /@datadir@/p
  13402. /@docdir@/p
  13403. /@infodir@/p
  13404. /@localedir@/p
  13405. /@mandir@/p
  13406. '
  13407. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  13408. *datarootdir*) ac_datarootdir_seen=yes;;
  13409. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  13410. { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  13411. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  13412. _ACEOF
  13413. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13414. ac_datarootdir_hack='
  13415. s&@datadir@&$datadir&g
  13416. s&@docdir@&$docdir&g
  13417. s&@infodir@&$infodir&g
  13418. s&@localedir@&$localedir&g
  13419. s&@mandir@&$mandir&g
  13420. s&\\\${datarootdir}&$datarootdir&g' ;;
  13421. esac
  13422. _ACEOF
  13423. # Neutralize VPATH when `$srcdir' = `.'.
  13424. # Shell code in configure.ac might set extrasub.
  13425. # FIXME: do we really want to maintain this feature?
  13426. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13427. ac_sed_extra="$ac_vpsub
  13428. $extrasub
  13429. _ACEOF
  13430. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13431. :t
  13432. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  13433. s|@configure_input@|$ac_sed_conf_input|;t t
  13434. s&@top_builddir@&$ac_top_builddir_sub&;t t
  13435. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  13436. s&@srcdir@&$ac_srcdir&;t t
  13437. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  13438. s&@top_srcdir@&$ac_top_srcdir&;t t
  13439. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  13440. s&@builddir@&$ac_builddir&;t t
  13441. s&@abs_builddir@&$ac_abs_builddir&;t t
  13442. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  13443. $ac_datarootdir_hack
  13444. "
  13445. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  13446. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  13447. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  13448. { (exit 1); exit 1; }; }
  13449. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  13450. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  13451. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  13452. { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13453. which seems to be undefined. Please make sure it is defined." >&5
  13454. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13455. which seems to be undefined. Please make sure it is defined." >&2;}
  13456. rm -f "$tmp/stdin"
  13457. case $ac_file in
  13458. -) cat "$tmp/out" && rm -f "$tmp/out";;
  13459. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  13460. esac \
  13461. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  13462. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  13463. { (exit 1); exit 1; }; }
  13464. ;;
  13465. :H)
  13466. #
  13467. # CONFIG_HEADER
  13468. #
  13469. if test x"$ac_file" != x-; then
  13470. {
  13471. $as_echo "/* $configure_input */" \
  13472. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  13473. } >"$tmp/config.h" \
  13474. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  13475. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  13476. { (exit 1); exit 1; }; }
  13477. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  13478. { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  13479. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  13480. else
  13481. rm -f "$ac_file"
  13482. mv "$tmp/config.h" "$ac_file" \
  13483. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  13484. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  13485. { (exit 1); exit 1; }; }
  13486. fi
  13487. else
  13488. $as_echo "/* $configure_input */" \
  13489. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  13490. || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
  13491. $as_echo "$as_me: error: could not create -" >&2;}
  13492. { (exit 1); exit 1; }; }
  13493. fi
  13494. ;;
  13495. esac
  13496. done # for ac_tag
  13497. { (exit 0); exit 0; }
  13498. _ACEOF
  13499. chmod +x $CONFIG_STATUS
  13500. ac_clean_files=$ac_clean_files_save
  13501. test $ac_write_fail = 0 ||
  13502. { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
  13503. $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
  13504. { (exit 1); exit 1; }; }
  13505. # configure is writing to config.log, and then calls config.status.
  13506. # config.status does its own redirection, appending to config.log.
  13507. # Unfortunately, on DOS this fails, as config.log is still kept open
  13508. # by configure, so config.status won't be able to write to it; its
  13509. # output is simply discarded. So we exec the FD to /dev/null,
  13510. # effectively closing config.log, so it can be properly (re)opened and
  13511. # appended to by config.status. When coming back to configure, we
  13512. # need to make the FD available again.
  13513. if test "$no_create" != yes; then
  13514. ac_cs_success=:
  13515. ac_config_status_args=
  13516. test "$silent" = yes &&
  13517. ac_config_status_args="$ac_config_status_args --quiet"
  13518. exec 5>/dev/null
  13519. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  13520. exec 5>>config.log
  13521. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  13522. # would make configure fail if this is the last instruction.
  13523. $ac_cs_success || { (exit 1); exit 1; }
  13524. fi
  13525. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  13526. { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  13527. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  13528. fi
  13529. echo ""
  13530. echo ""
  13531. echo "------------ Configuring BDLIB ------------"
  13532. if test -d .git; then
  13533. git submodule init
  13534. git submodule update
  13535. fi
  13536. test -f lib/bdlib/configure && cd lib/bdlib && ./configure